Remove unused Makefile variables STARTFLAGS.
[bpt/emacs.git] / src / ChangeLog
... / ...
CommitLineData
12010-05-16 Glenn Morris <rgm@gnu.org>
2
3 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
4 Remove ${STARTFLAGS}, nothing ever sets it.
5
62010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
7
8 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
9
102010-05-16 Glenn Morris <rgm@gnu.org>
11
12 * Makefile.in (LIBX_BASE): Always define.
13
14 * Makefile.in (LIBX_OTHER): Move out of cpp section.
15
16 * Makefile.in (LIBXT): Always define.
17
182010-05-15 Glenn Morris <rgm@gnu.org>
19
20 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
21
22 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
23 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
24
252010-05-15 Ken Raeburn <raeburn@raeburn.org>
26
27 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an
28 rvalue. (bug#5916)
29 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
30
31 * emacs.c (main): Initialize initial-environment and
32 process-environment before generating from env, not after.
33
34 Handle --version reasonably in CANNOT_DUMP configuration.
35 * emacs.c (emacs_version, emacs_copyright): New string variables.
36 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
37 (syms_of_emacs): Defvar them, and initialize them from the C
38 string variables.
39 (main): If initialization hasn't been done, print initial version
40 info from the C strings, instead of starting an interactive session.
41
422010-05-15 Eli Zaretskii <eliz@gnu.org>
43
44 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
45 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
46 (bidi_paragraph_init): Remove redundant assertion that we are at
47 the beginning of a line after call to bidi_find_paragraph_start.
48
49 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
50 (syms_of_xdisp): Defsubr it.
51
52 * Makefile.in: Fix MSDOS-related comments.
53
542010-05-15 Glenn Morris <rgm@gnu.org>
55
56 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
57 (really-lwlib, really-oldXMenu): Always define.
58 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
59
60 * Makefile.in: Simplify cpp conditional.
61
62 * Makefile.in (${ns_appdir}): Simplify using umask.
63
64 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
65
662010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
67
68 * eval.c (specbind): Remove left-over duplicate test.
69 Disallow let-binding frame-local vars. Add comment.
70
712010-05-14 Eli Zaretskii <eliz@gnu.org>
72
73 Make the cache of bidi iterator states dynamically allocated.
74 * bidi.c (bidi_cache_shrink): New function.
75 (bidi_init_it): Call it.
76 (bidi_cache_iterator_state): Enlarge the cache if needed.
77
78 * bidi.c (bidi_move_to_visually_next): Rename from
79 bidi_get_next_char_visually. All callers changed.
80
812010-05-14 Kenichi Handa <handa@m17n.org>
82
83 * dispextern.h (struct composition_it): New member reversed_p.
84
85 * composite.c (composition_compute_stop_pos): Search backward if
86 ENDPOS < CHARPOS.
87 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
88 Set CMP_IT->reversed_p.
89 (composition_update_it): Pay attention to CMP_IT->reversed_p.
90
91 * xdisp.c (set_iterator_to_next):
92 Call composition_compute_stop_pos with negative ENDPOS if we are
93 scanning backward. Call composition_compute_stop_pos if scan
94 direction is changed.
95 (next_element_from_buffer): Call composition_compute_stop_pos with
96 negative ENDPOS if we are scanning backward.
97 (next_element_from_composition): Pay attention to
98 IT->cmp_it.reversed_p.
99
1002010-05-14 Kenichi Handa <handa@m17n.org>
101
102 * font.c (font_range): Return the range for the font found at
103 first.
104
1052010-05-14 Glenn Morris <rgm@gnu.org>
106
107 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
108
109 * Makefile.in (mktime, X11, register): Move undefs to configure.
110
111 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
112 (MSDOS_X_OBJ): New variable.
113 (MSDOS_SUPPORT_REAL): New constant.
114 (MSDOS_SUPPORT): Set as a variable, not with cpp.
115 (obj): Use MSDOS_X_OBJ.
116 (lisp): Use MSDOS_SUPPORT as a variable.
117
118 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
119 (GPM_MOUSE_SUPPORT): Now it's a constant.
120 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
121 not cpp.
122
123 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
124 (ns_appresdir): Remove, unused.
125
126 * Makefile.in (SHELL): Move outside cpp section.
127
128 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
129
1302010-05-13 Glenn Morris <rgm@gnu.org>
131
132 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
133 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
134
135 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
136 HAVE_WINDOW_SYSTEM must be too.
137
138 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
139 (lisp): Remove WINNT_SUPPORT.
140
141 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
142 Let configure set these variables (to empty) in this case as well.
143
144 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
145 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
146
147 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
148 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
149 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
150 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
151 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
152 the values output by configure.
153 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
154
1552010-05-12 Glenn Morris <rgm@gnu.org>
156
157 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
158 (LINKER_WAS_SPECIFIED): Remove.
159
160 * Makefile.in (LIB_GCC): Set using configure, not cpp.
161 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
162 * m/arm.h (LIB_GCC) [GNU_LINUX]:
163 * s/cygwin.h (LIB_GCC):
164 * s/freebsd.h (LIB_GCC):
165 * s/gnu-linux.h (LIB_GCC):
166 * s/msdos.h (LIB_GCC):
167 * s/netbsd.h (LIB_GCC):
168 Move to configure.
169
1702010-05-11 Karel Klic <kklic@redhat.com>
171
172 * ftfont.c: Fix incorrect parentheses of #if condition for
173 definining M17N_FLT_USE_NEW_FEATURE.
174
1752010-05-11 Glenn Morris <rgm@gnu.org>
176
177 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
178 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
179
1802010-05-10 Eli Zaretskii <eliz@gnu.org>
181
182 * xdisp.c (init_iterator): Don't turn on bidi reordering in
183 unibyte buffers. See
184 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
185
1862010-05-10 Glenn Morris <rgm@gnu.org>
187
188 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
189 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
190 (LIBES): Use LIBS_SYSTEM as a variable.
191 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
192 * s/aix4-2.h (LIBS_SYSTEM):
193 * s/freebsd.h (LIBS_SYSTEM):
194 * s/hpux10-20.h (LIBS_SYSTEM):
195 * s/sol2-6.h (LIBS_SYSTEM):
196 * s/unixware.h (LIBS_SYSTEM):
197 Move to configure.
198
199 * s/aix4-2.h (MAIL_USE_LOCKF):
200 * s/bsd-common.h (MAIL_USE_FLOCK):
201 * s/darwin.h (MAIL_USE_FLOCK):
202 * s/gnu-linux.h (MAIL_USE_FLOCK):
203 * s/irix6-5.h (MAIL_USE_FLOCK):
204 * s/template.h (MAIL_USE_FLOCK):
205 Move to configure.
206
2072010-05-08 Chong Yidong <cyd@stupidchicken.com>
208
209 * Version 23.2 released.
210
2112010-05-08 Andreas Schwab <schwab@linux-m68k.org>
212
213 * composite.c (autocmp_chars): Save point as marker before calling
214 auto-composition-function (Bug#5984).
215
216 * lisp.h (restore_point_unwind): Add prototype.
217
218 * fileio.c (restore_point_unwind): Remove static attribute.
219
2202010-05-08 Kenichi Handa <handa@m17n.org>
221
222 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
223 new feature of libotf and m17n-flt.
224 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
225 Call OTF_check_features even if no specific feature is given.
226 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
227 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
228 that OUT is NULL. Use OTF_drive_gsub_with_log and
229 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
230 OTF_drive_gpos.
231 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
232 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
233 Setup mflt_enable_new_feature and mflt_try_otf.
234
2352010-05-08 Jan Djärv <jan.h.d@swipnet.se>
236
237 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
238
239 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
240 box and toolbar (Bug #6139).
241 (xg_create_tool_bar): Remove comment (Bug #6139).
242 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
243 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
244
2452010-05-08 Juanma Barranquero <lekktu@gmail.com>
246
247 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
248 Update dependencies.
249
2502010-05-08 Eli Zaretskii <eliz@gnu.org>
251
252 * fringe.c (update_window_fringes): Set up truncation bitmaps for
253 R2L lines.
254
2552010-05-08 Glenn Morris <rgm@gnu.org>
256
257 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
258
259 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
260 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
261 (termcapobj): Replace with TERMCAP_OBJ.
262 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
263 (LIBES): Use LIBS_TERMCAP as a variable.
264
265 * s/freebsd.h (osreldate.h): No longer include, since this file
266 does not use __FreeBSD_version any more.
267
268 * s/aix4-2.h (TERMINFO):
269 * s/cygwin.h (TERMINFO):
270 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
271 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
272 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
273 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
274 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
275 * s/irix6-5.h (TERMINFO):
276 * s/netbsd.h (LIBS_TERMCAP):
277 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
278 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
279 * s/usg5-4.h (TERMINFO):
280 Move to configure.
281
2822010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
283
284 * eval.c (unbind_to): Don't unbind a local binding into the global
285 binding when the local binding disappeared. Inversely, don't unbind
286 a global binding into a newly created local binding.
287 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
288 can specify the frame to use, when applicable. Adjust callers.
289
2902010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
291 Stefan Monnier <monnier@iro.umontreal.ca>
292
293 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
294
2952010-05-07 Eli Zaretskii <eliz@gnu.org>
296
297 * w32fns.c: Include w32.h.
298 (Fw32_shell_execute): Decode the error message before passing it
299 to `error'. (Bug#6126)
300
301 * msdos.c (dos_set_window_size):
302 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
303 instead of `XSYMBOL (foo)->value'.
304
3052010-05-07 Eli Zaretskii <eliz@gnu.org>
306
307 Fix the MS-DOS build, broken by autoconfiscation.
308
309 * Makefile.in: Don't use Make-style comments past the "start of
310 cpp stuff" line.
311 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
312
313 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
314 edited directly by msdos/sed1v2.inp).
315
3162010-05-07 Glenn Morris <rgm@gnu.org>
317
318 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
319 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
320 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
321 move out of cpp section.
322 * s/freebsd.h (LD_SWITCH_SYSTEM):
323 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
324 * s/netbsd.h (LD_SWITCH_SYSTEM):
325 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
326
3272010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
328
329 Define LIB_STANDARD and START_FILES using autoconf.
330 * s/usg5-4.h (LIB_STANDARD):
331 * s/netbsd.h (START_FILES):
332 * s/irix6-5.h (LIB_STANDARD):
333 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
334 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
335 * s/freebsd.h (START_FILES):
336 * s/darwin.h (START_FILES):
337 * s/cygwin.h (START_FILES):
338 * s/aix4-2.h (LIB_STANDARD):
339 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
340 * Makefile.in (STARTFILES): Rename to START_FILES, define using
341 autoconf, not cpp.
342
3432010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
344
345 Remove NEED_BSDTTY and NEED_UNISTD_H.
346 * s/hpux10-20.h (NEED_BSDTTY): Remove.
347 * s/aix4-2.h (NEED_UNISTD_H): Remove.
348 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
349 <sys/ptyio.h> and <unistd.h>.
350
351 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
352
353 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
354 * s/gnu.h (START_FILES): Remove empty definition.
355
3562010-05-06 Jan Djärv <jan.h.d@swipnet.se>
357
358 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
359
3602010-05-06 Glenn Morris <rgm@gnu.org>
361
362 * Makefile.in (CPP, LN_S): Remove unused variables.
363
3642010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
365
366 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
367
3682010-05-05 Lawrence Mitchell <wence@gmx.li>
369
370 * m/sparc.h: Fix typo in earlier change.
371
3722010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
373
374 Misc tweaks.
375 * eval.c (Fdefvaralias): Remove unintended nested if.
376 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
377
3782010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
379
380 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
381
3822010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
383
384 Remove BSD_PGRPS.
385 * s/bsd-common.h (BSD_PGRPS): Remove undef.
386 * s/gnu-linux.h (BSD_PGRPS): Remove.
387 * term.c (dissociate_if_controlling_tty):
388 * sysdep.c (narrow_foreground_group, widen_foreground_group)
389 (init_sys_modes, reset_sys_modes):
390 * emacs.c (main):
391 * callproc.c (Fcall_process, child_setup): Remove code depending
392 on BSD_PGRPS.
393
394 Remove POSIX_SIGNALS.
395 * s/usg5-4.h (POSIX_SIGNALS):
396 * s/netbsd.h (POSIX_SIGNALS):
397 * s/msdos.h (POSIX_SIGNALS):
398 * s/ms-w32.h (POSIX_SIGNALS):
399 * s/hpux11.h (POSIX_SIGNALS):
400 * s/gnu.h (POSIX_SIGNALS):
401 * s/gnu-linux.h (POSIX_SIGNALS):
402 * s/freebsd.h (POSIX_SIGNALS):
403 * s/darwin.h (POSIX_SIGNALS):
404 * s/cygwin.h (POSIX_SIGNALS):
405 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
406 * s/unixware.h:
407 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
408 * process.c (create_process):
409 * syssignal.h:
410 * sysdep.c (wait_for_termination, init_signals):
411 * process.c (create_process):
412 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
413 remove all code that assumes the contrary.
414
4152010-05-04 Glenn Morris <rgm@gnu.org>
416
417 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
418 variable.
419 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
420 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
421 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
422 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
423 LD_SWITCH_SYSTEM_tmp.
424 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
425 New variables, set by configure.
426
427 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
428 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
429 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
430 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
431 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
432
433 * s/aix4-2.h (C_SWITCH_SYSTEM):
434 * m/alpha.h (C_SWITCH_MACHINE):
435 Move to configure.in.
436 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
437 New variables, set by configure.
438 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
439 $c_switch_machine and $c_switch_system.
440
4412010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
442
443 * s/hpux10-20.h (LIB_STANDARD): New definition.
444 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
445 on it, not used anymore.
446
4472010-05-03 Chong Yidong <cyd@stupidchicken.com>
448
449 * eval.c (internal_condition_case_n): Rename from
450 internal_condition_case_2.
451 (internal_condition_case_2): New function.
452
453 * xdisp.c (safe_call): Use internal_condition_case_n.
454
455 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
456 (internal_delete_file, Frename_file): Callers changed.
457
458 * buffer.c (Fkill_buffer):
459 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
460
461 * lisp.h: Update prototypes.
462
4632010-05-03 Glenn Morris <rgm@gnu.org>
464
465 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
466 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
467 (LIBXT): Set with configure, not cpp.
468 (LIBX): Remove.
469 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
470
4712010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
472
473 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
474 The FreeBSD is not needed, the default works, Solaris version is
475 not needed, and the remaining case is not supported by configure.
476
4772010-05-02 Jan Djärv <jan.h.d@swipnet.se>
478
479 * xsmfns.c (CHDIR_OPT): New define.
480 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
481 restarting emacs.
482
483 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
484 shut_down_emacs.
485
486 * emacs.c (USAGE1): Mention --chdir.
487 (main): Handle --chdir.
488 (standard_args): Add --chdir.
489 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
490 #5552).
491
4922010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
493
494 Remove LD_SWITCH_MACHINE.
495 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
496 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
497
498 Clean up IRIX code.
499 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
500 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
501
502 Clean up AIX code.
503 * m/ibmrs6000.inp: Remove file, unused.
504 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
505 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
506 definition ...
507 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
508
509 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
510 unused.
511
5122010-05-01 Eli Zaretskii <eliz@gnu.org>
513
514 Emulate POSIX_SIGNALS on MS-Windows.
515
516 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
517 (SIG_SETMASK, SIG_UNBLOCK): Define.
518
519 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
520 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
521 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
522
523 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
524 New stubs.
525
526 Miscellaneous fixes of bidi display.
527
528 * xdisp.c (find_row_end): New function, refactored from display_line.
529 (display_line): Use it.
530 (extend_face_to_end_of_line): In almost-filled rows, extend only
531 if the row is R2L and not continued.
532 (display_line): Fix prepending of truncation glyphs to R2L rows.
533 Preserve overlay and string info in row->end.
534 (insert_left_trunc_glyphs): Support addition of left truncation
535 glyphs to R2L rows.
536 (set_cursor_from_row): Don't place cursor on the vertical border
537 glyph between adjacent windows. Fix a crash when a display string
538 is continued to the next line. Don't return zero if cursor was
539 found by `cursor' property of a display string.
540 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
541 test for that explicitly.
542
5432010-05-01 Glenn Morris <rgm@gnu.org>
544
545 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
546 for clarity.
547 (OTHER_OBJ): Remove.
548 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
549 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
550
5512010-05-01 Karel Klíč <kklic@redhat.com>
552
553 * fileio.c (Ffile_selinux_context): Context functions may return null.
554
5552010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
556
557 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
558
5592010-04-30 Glenn Morris <rgm@gnu.org>
560
561 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
562 (OTHER_OBJ): Define as a separate variable, for clarity.
563
5642010-04-30 Jan Djärv <jan.h.d@swipnet.se>
565
566 * xsettings.c: include limits.h and update file comment.
567
5682010-04-30 Glenn Morris <rgm@gnu.org>
569
570 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
571 Set with configure, not cpp.
572 (LIBW): Remove, replace with $TOOLKIT_LIBW.
573
574 * Makefile.in (mallocobj): Remove.
575 (otherobj): Simplify using @OTHER_OBJ@.
576
577 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
578 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
579 Don't bother making nsgui.h dependency platform-specific.
580
581 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
582
5832010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
584
585 * process.c (read_process_output, exec_sentinel): Don't burp if the
586 sentinel/filter kills the current buffer (bug#6060).
587
588 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
589 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
590 Remove unused var `args'.
591 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
592 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
593 * doc.c (store_function_docstring): Use XSETCAR.
594
5952010-04-28 Glenn Morris <rgm@gnu.org>
596
597 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
598 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
599
600 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
601
602 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
603 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
604
605 * Makefile.in (FONT_OBJ): New, set by configure.
606 (FONT_DRIVERS): Use $FONT_OBJ.
607
608 * Makefile.in (LIBXMU): Set with configure, not cpp.
609 * s/aix4-2.h (LIBXMU):
610 * s/hpux10-20.h (LIBXMU):
611 Remove definition, now set in configure.
612
613 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
614
615 * m/amdx86-64.h [i386]: Move this test to configure.in.
616
6172010-04-27 Glenn Morris <rgm@gnu.org>
618
619 * Makefile.in (LIBXTR6): Set with configure, not cpp.
620 * s/unixware.h (NEED_LIBW): Remove definition.
621
622 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
623 (TOOLKIT_LIBW): New, set by configure.
624 (@X_TOOLKIT_TYPE@): No longer define it.
625
626 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
627 (MOTIF_LIBW): Set with configure, not cpp.
628 * s/aix4-2.h (LIB_MOTIF):
629 * s/gnu-linux.h (LIB_MOTIF):
630 * s/unixware.h (LIB_MOTIF): Move to configure.in.
631
6322010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
633
634 Reduce CPP usage.
635 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
636 (obj): Use autoconf for unexec instead of cpp.
637 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
638 definitions and undefs. Inline definitions in the only user.
639 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
640
6412010-04-27 Glenn Morris <rgm@gnu.org>
642
643 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
644 since the defaults (set by the system file) are fine in most cases.
645 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
646 * m/ibms390x.h (START_FILES, LIB_STANDARD):
647 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
648 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
649 Remove definitions, since they are set correctly in s/gnu-linux.h.
650 * s/freebsd.h (START_FILES, LIB_STANDARD):
651 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
652 * s/hpux10-20.h (START_FILES):
653 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
654 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
655
656 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
657 (MOTIF_LIBW): Use $LIBXP.
658 (otherobj): Use $WIDGET_OBJ.
659
6602010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
661
662 * Makefile.in (LIBS_MACHINE): Remove, unused.
663
664 Use autoconf instead of cpp for LIB_MATH.
665 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
666 * s/cygwin.h (LIB_MATH): Likewise.
667 * Makefile.in (LIB_MATH): Do not define with cpp.
668 (LIBES): Use autoconf for LIB_MATH.
669
6702010-04-26 Kenichi Handa <handa@m17n.org>
671
672 * composite.c (Ffind_composition_internal): Fix the return value
673 for an automatic composition.
674
6752010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
676
677 Remove all NO_ARG_ARRAY uses.
678 * fns.c (concat2, concat3, nconc2):
679 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
680 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
681 * m/xtensa.h (NO_ARG_ARRAY):
682 * m/template.h (NO_ARG_ARRAY):
683 * m/sparc.h (NO_ARG_ARRAY):
684 * m/sh3.h (NO_ARG_ARRAY):
685 * m/mips.h (NO_ARG_ARRAY):
686 * m/macppc.h (NO_ARG_ARRAY):
687 * m/iris4d.h (NO_ARG_ARRAY):
688 * m/intel386.h (NO_ARG_ARRAY):
689 * m/ibms390x.h (NO_ARG_ARRAY):
690 * m/ibms390.h (NO_ARG_ARRAY):
691 * m/ibmrs6000.h (NO_ARG_ARRAY):
692 * m/ia64.h (NO_ARG_ARRAY):
693 * m/hp800.h (NO_ARG_ARRAY):
694 * m/arm.h (NO_ARG_ARRAY):
695 * m/amdx86-64.h (NO_ARG_ARRAY):
696 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
697
6982010-04-25 Eli Zaretskii <eliz@gnu.org>
699
700 * xdisp.c (display_line): Don't assume 2nd call to
701 get_next_display_element cannot return zero. (Bug#6030)
702 (iterate_out_of_display_property): New function, body from pop_it.
703 (pop_it): Use it.
704
7052010-04-24 Glenn Morris <rgm@gnu.org>
706
707 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
708 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
709 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
710 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
711
7122010-04-24 Eli Zaretskii <eliz@gnu.org>
713
714 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
715 use `get_next_display_element' and `set_iterator_to_next' to
716 advance to the next character, when looking for the character that
717 begins the next row.
718
719 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
720 definition of "struct Lisp_Symbol".
721
7222010-04-24 Glenn Morris <rgm@gnu.org>
723
724 * Makefile.in (CRT_DIR): New variable, set by configure.
725 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
726 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
727
7282010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
729
730 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
731
732 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
733
734 Remove redundant flags.
735 * s/freebsd.h (C_SWITCH_SYSTEM):
736 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
737 * s/netbsd.h (C_SWITCH_SYSTEM):
738 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
739 of these.
740
741 Simplify m/intel386.h.
742 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
743 user: ecrt0.c.
744 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
745 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
746 the only user: s/unixware.h.
747 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
748 from m/intel386.h.
749 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
750 moved here from m/intel386.h.
751
752 * m/mips.h: Remove #if 0 code.
753
7542010-04-23 Eli Zaretskii <eliz@gnu.org>
755
756 Fix display of composed characters from L2R scripts in bidi buffers.
757 * xdisp.c (set_iterator_to_next, next_element_from_composition):
758 After advancing IT past the composition, resync the bidi iterator
759 with IT's position. (Bug#5977)
760
7612010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
762
763 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
764 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
765
7662010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
767
768 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
769
7702010-04-23 Eli Zaretskii <eliz@gnu.org>
771
772 Support `display' text properties and overlay strings in bidi buffers.
773 * xdisp.c (pop_it): When the stack is popped after displaying
774 from a string, bidi-iterate to exit from the text portion covered
775 by the `display' property or overlay. (Bug#5988, bug#5920)
776
7772010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
778
779 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
780 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
781
782 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
783 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
784
785 Simplify STARTFILES definition.
786 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
787 relying on Makefile.in to define it.
788 * s/cygwin.h (START_FILES): Likewise.
789 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
790
791 Clean up Solaris code.
792 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
793 (LIB_MOTIF): Remove, configure takes care of this.
794 (NOT_USING_MOTIF): Remove, unused.
795 * xrdb.c: Remove #if 0-ed #include.
796 (SYSV): Remove conditional for old SysV.
797 * sysdep.c (closedir): Remove conditional code for Solaris,
798 Solaris has closedir.
799
8002010-04-22 Jan Djärv <jan.h.d@swipnet.se>
801
802 * xsettings.c (read_and_apply_settings): Check if current_font is
803 NULL before strcmp (Bug#6001).
804
8052010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
806
807 Clean up HP-UX files.
808 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
809 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
810 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
811 * s/hpux10-20.h: ... to the only user, here.
812
8132010-04-21 Eli Zaretskii <eliz@gnu.org>
814
815 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
816 use buffer-local values of paragraph-start and paragraph-separate.
817 <paragraph_start_re, paragraph_separate_re>: Rename from
818 fallback_paragraph_start_re and fallback_paragraph_separate_re.
819 (Bug#5992)
820
8212010-04-21 Jan Djärv <jan.h.d@swipnet.se>
822
823 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
824 current_tool_bar_style are new.
825 (store_config_changed_event): Rename from store_font_changed_event.
826 (XSETTINGS_TOOL_BAR_STYLE): New define.
827 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
828 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
829 HAVE_XFT.
830 (something_changedCB): store_font_changed_event is now
831 store_config_changed_event
832 (parse_settings): Rename from parse_xft_settings. Read
833 non-xft xsettings outside #ifdef HAVE_XFT.
834 (read_settings): Renamed from read_xft_settings.
835 (apply_xft_settings): Take current settings as parameter. Do not
836 call read_(xft)_settings.
837 (read_and_apply_settings): New function.
838 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
839 read_and_apply_settings if there are settings to be read.
840 (init_xsettings): Renamed from init_xfd_settings.
841 Call read_and_apply_settings unconditionally.
842 (xsettings_initialize): Call init_xsettings.
843 (Ftool_bar_get_system_style): New function.
844 (syms_of_xsettings): Define Qmonospace_font_name and
845 Qtool_bar_style. Initialize current_tool_bar_style to nil.
846 defsubr Stool_bar_get_system_style. Fprovide on
847 dynamic-setting.
848 Move misplaced HAVE_GCONF
849
850 * xsettings.h (Ftool_bar_get_system_style): Declare.
851
852 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
853 Qtext, Qboth, Qboth_horiz are new.
854 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
855 Vtool_bar_style, tool_bar_max_label_size.
856
857 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
858
859 * keyboard.c: QClabel is new.
860 (parse_tool_bar_item): Take out QClabel from tool bar items.
861 Try to construct a label if ther is no QClabel.
862 (syms_of_keyboard): Intern :label as QClabel.
863
864 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
865 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
866 New.
867
868 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
869 dynamic-setting.el.
870
871 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
872 (xg_make_tool_item, xg_show_toolbar_item): New function.
873 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
874 Call xg_make_tool_item to make a tool bar item.
875 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
876
877 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
878 into account for toolbars.
879
8802010-04-21 Jan Djärv <jan.h.d@swipnet.se>
881
882 * data.c (make_blv): Declarations before code (Bug#5993).
883
8842010-04-21 Glenn Morris <rgm@gnu.org>
885
886 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
887 Define using autoconf, not cpp.
888 (LIBXSM): New variable, set by autoconf.
889 (LIBXT): Use $LIBXSM.
890
8912010-04-21 Dan Nicolaescu <local_user@dannlt>
892
893 Remove NOMULTIPLEJOBS, unused.
894 * s/template.h (NOMULTIPLEJOBS):
895 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
896
897 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
898 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
899 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
900 detects -znocombreloc and passes it to the linker
901 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
902
9032010-04-21 Glenn Morris <rgm@gnu.org>
904
905 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
906
9072010-04-21 Karel Klíč <kklic@redhat.com>
908
909 * Makefile.in (LIBSELINUX_LIBS): New.
910 (LIBES): Add $LIBSELINUX_LIBS.
911 * eval.c, lisp.h (call7): New function.
912 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
913 (Ffile_selinux_context, Fset_file_selinux_context):
914 New functions.
915 (Fcopy_file): New parameter preserve-selinux-context.
916 (Frename_file): Preserve selinux context when renaming by copy-file.
917
9182010-04-21 Juanma Barranquero <lekktu@gmail.com>
919 Eli Zaretskii <eliz@gnu.org>
920
921 Don't depend on cm.c or termcap.c on Windows, use stubs.
922 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
923 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
924 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
925 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
926 (sys_tputs, sys_tgetstr): New stubs.
927 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
928 (tputs, tgetstr): New; define to sys_*.
929
9302010-04-20 Juanma Barranquero <lekktu@gmail.com>
931
932 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
933
9342010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
935
936 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
937 Just signal a warning rather than an error when inside a let.
938 (Fmake_variable_frame_local): Add the same test.
939
940 * font.c (syms_of_font): Make the style table vars read-only.
941
942 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
943 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
944
945 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
946
9472010-04-20 Eli Zaretskii <eliz@gnu.org>
948
949 Fix R2L paragraph display on TTY.
950
951 * xdisp.c (unproduce_glyphs): New function.
952 (display_line): Use it when produced glyphs are discarded from R2L
953 glyph rows.
954 (append_composite_glyph): In R2L rows, prepend the glyph rather
955 than appending it.
956
957 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
958 rather than append it. Set up the resolved_level and bidi_type
959 attributes of the appended glyph.
960 (produce_special_glyphs): Mirror the backslash continuation
961 character in R2L lines.
962
963 Implement display of R2L paragraphs in GUI sessions.
964
965 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
966 append_stretch_glyph.
967 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
968 off-by-one error in computing x at end of text in the row.
969 (append_stretch_glyph): In reversed row, prepend the glyph rather
970 than append it. Set resolved_level and bidi_type of the glyph.
971 (extend_face_to_end_of_line): If the row is reversed, prepend a
972 stretch glyph whose width is such that the rightmost glyph will be
973 drawn at the right margin of the window. Fix off-by-one error on
974 TTY frames in testing whether a line needs face extension. Fix
975 face extension at ZV. If this is the last glyph row, use
976 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
977 region face.
978 (set_cursor_from_row, display_line): Use
979 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
980 row->continuation_lines_width.
981 (next_element_from_buffer): Don't call bidi_paragraph_init if we
982 are at ZV. Fixes a crash when reseated to ZV by
983 try_window_reusing_current_matrix.
984 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
985 which happens with R2L glyph rows. Fixes a crash when inserting a
986 character at end of an R2L line.
987 (set_cursor_from_row): Don't be fooled by truncated rows: don't
988 treat them as having zero-width characters. Improve comments.
989 Don't reverse pos_before and pos_after for reversed glyph rows.
990 Set cursor.x to negative value when the cursor might be on the
991 left fringe.
992 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
993 left fringe, not the right one.
994 (notice_overwritten_cursor, draw_phys_cursor_glyph)
995 (erase_phys_cursor): For reversed cursor_row, support cursor on
996 the left fringe.
997
998 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
999 of continuation indicators on the fringes.
1000 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
1001 left fringe.
1002
1003 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
1004 draw cursor on the left fringe.
1005
1006 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
1007 cursor on the left fringe.
1008
1009 * dispnew.c (update_text_area): Handle reversed desired rows when
1010 the cursor is on the left fringe.
1011 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
1012 below, not by 0, for when the cursor is on the left fringe.
1013
10142010-04-20 Jan Djärv <jan.h.d@swipnet.se>
1015
1016 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
1017 widget is a scrollbar.
1018
10192010-04-20 Kenichi Handa <handa@m17n.org>
1020
1021 * charset.c (char_charset): Consider Vcharset_non_preferred_head
1022 only when the arg CHARSET_LIST is nil.
1023
10242010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
1025
1026 Make variable forwarding explicit rather the using special values.
1027 Basically, this makes the structure of buffer-local values and object
1028 forwarding explicit in the type of Lisp_Symbols rather than use
1029 special Lisp_Objects for that. This tends to lead to slightly more
1030 verbose code, but is more C-like, simpler, and makes it easier to make
1031 sure we handled all cases, among other things by letting the compiler
1032 help us check it.
1033 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
1034 Removing forwarding objects.
1035 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
1036 (struct Lisp_Symbol): Make the various forms of variable-forwarding
1037 explicit rather than hiding them inside Lisp_Object "values".
1038 (XFWDTYPE): New macro.
1039 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
1040 (XBUFFER_LOCAL_VALUE): Remove.
1041 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
1042 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
1043 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
1044 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
1045 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
1046 Remove the Lisp_Misc_* header.
1047 (struct Lisp_Buffer_Local_Value): Redefine.
1048 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
1049 (struct Lisp_Misc_Any): Add filler to get the right size.
1050 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
1051 Lisp_Intfwd.
1052 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
1053 (DEFVAR_KBOARD): Allocate a forwarding object.
1054 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
1055 (let_shadows_global_binding_p): New function.
1056 (union Lisp_Val_Fwd): New type.
1057 (make_blv): New function.
1058 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
1059 (store_symval_forwarding, swap_in_global_binding, Fboundp)
1060 (swap_in_symval_forwarding, find_symbol_value, Fset)
1061 (let_shadows_buffer_binding_p, set_internal, default_value)
1062 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
1063 (Fkill_local_variable, Fmake_variable_frame_local)
1064 (Flocal_variable_p, Flocal_variable_if_set_p)
1065 (Fvariable_binding_locus):
1066 * xdisp.c (select_frame_for_redisplay):
1067 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
1068 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
1069 * frame.c (store_frame_param):
1070 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
1071 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
1072 value structure.
1073 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
1074 (clone_per_buffer_values): Only adjust markers into the current buffer.
1075 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
1076 (Fbuffer_local_value, set_buffer_internal_1)
1077 (swap_out_buffer_local_variables):
1078 Adapt to the new symbol value structure.
1079 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
1080 (defvar_per_buffer): Take a new arg for the fwd object.
1081 (buffer_lisp_local_variables): Return a proper alist (different fix
1082 for bug#4138).
1083 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
1084 (Fgarbage_collect): Don't handle buffer_defaults specially.
1085 (mark_object): Handle new symbol value structure rather than the old
1086 special Lisp_Misc_* objects.
1087 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
1088 * term.c (set_tty_color_mode):
1089 * bidi.c (bidi_initialize): Don't access the ->value field directly.
1090 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
1091 a buffer_local_flags.
1092 * print.c (print_object): Get rid of impossible forwarding objects.
1093
10942010-04-19 Eli Zaretskii <eliz@gnu.org>
1095
1096 * bidi.c (bidi_get_type, bidi_get_category)
1097 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
1098 (bidi_type_of_next_char, bidi_level_of_next_char):
1099 Declare static. Use `INLINE' rather than `inline'.
1100
11012010-04-19 Juanma Barranquero <lekktu@gmail.com>
1102
1103 * dired.c (Ffile_attributes): Fix typo in docstring.
1104
11052010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
1106
1107 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
1108 NSInteger (Bug#5811).
1109
11102010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1111
1112 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
1113 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
1114
11152010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1116
1117 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
1118
11192010-04-19 Chong Yidong <cyd@stupidchicken.com>
1120
1121 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
1122 terminal frames (Bug#5837).
1123
11242010-04-19 Eli Zaretskii <eliz@gnu.org>
1125
1126 * .gdbinit (xsubchartable): New command.
1127
11282010-04-19 Eli Zaretskii <eliz@gnu.org>
1129
1130 * xdisp.c (display_line): Don't write beyond the last glyph row in
1131 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
1132 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
1133 and
1134 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
1135
11362010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
1137
1138 * alloc.c (Fpurecopy): Hash-cons if requested.
1139 (syms_of_alloc): Update purify-flag docstring.
1140
11412010-04-18 Jan Djärv <jan.h.d@swipnet.se>
1142
1143 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
1144 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
1145
11462010-04-17 Eli Zaretskii <eliz@gnu.org>
1147
1148 Fix a crash when an NSM character is inserted at BEGV.
1149
1150 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
1151 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
1152 NEUTRAL_B or UNKNOWN_BT.
1153
11542010-04-16 Eli Zaretskii <eliz@gnu.org>
1155
1156 * xdisp.c (set_cursor_from_row): Don't consider possibility of
1157 other rows with cursor unless they are different from this row and
1158 this row is part of a continued line. (Bug#5943)
1159
11602010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
1161
1162 * s/freebsd.h: Restore osreldate.h include.
1163 Suggested by Naohiro Aota.
1164
11652010-04-16 Jan Djärv <jan.h.d@swipnet.se>
1166
1167 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
1168
11692010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
1170
1171 * s/cygwin.h: Avoid linking against static libgcc.
1172
11732010-04-15 Juri Linkov <juri@jurta.org>
1174
1175 * window.c: Add Qscroll_command.
1176 Remove Vscroll_preserve_screen_position_commands.
1177 (window_scroll_pixel_based, window_scroll_line_based): Check the
1178 `scroll-command' property on the last command instead of searching
1179 the last command in Vscroll_preserve_screen_position_commands.
1180 (syms_of_window): Initialize and staticpro `Qscroll_command'.
1181 Put Qscroll_command property on Qscroll_up and Qscroll_down.
1182 (scroll-preserve-screen-position): Doc fix.
1183 (Vscroll_preserve_screen_position_commands): Remove variable.
1184
11852010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
1186
1187 * xdisp.c (message): Do not use NO_ARG_ARRAY.
1188
11892010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
1190
1191 Reduce cpp use in Makefile.in.
1192 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
1193 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
1194 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
1195 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
1196 (CRT0_COMPILE): Remove, inline it in the only user.
1197
11982010-04-14 Juri Linkov <juri@jurta.org>
1199
1200 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
1201 `scroll-up-command' and `M-v' from `scroll-down' to
1202 `scroll-down-command'.
1203
12042010-04-14 Juri Linkov <juri@jurta.org>
1205
1206 * window.c (Vscroll_preserve_screen_position_commands): New variable
1207 with the default value as the list of Qscroll_down and Qscroll_up.
1208 (window_scroll_pixel_based, window_scroll_line_based): Search the
1209 last command in the list Vscroll_preserve_screen_position_commands
1210 instead of comparing with Qscroll_up and Qscroll_down.
1211
12122010-04-13 Jan Djärv <jan.h.d@swipnet.se>
1213
1214 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
1215 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
1216 does that.
1217
1218 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
1219 to zero.
1220
12212010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
1222
1223 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
1224
1225 Try to solve the problem of spurious EOF chars in long lines of text
1226 sent to interactive subprocesses.
1227 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
1228 (system_process_attributes): Remove unused var `ttotal'.
1229 * process.c (send_process): Don't bother breaking long line with EOF
1230 chars when talking to ttys any more.
1231 (wait_reading_process_output): Output a warning when called in such
1232 a way that it could block without being interruptible.
1233
1234 Try to detect file modification within the same second.
1235 * buffer.h (struct buffer): New field modtime_size.
1236 * buffer.c (reset_buffer): Initialize it.
1237 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
1238 (Fverify_visited_file_modtime): Check it.
1239 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
1240 (Fset_visited_file_modtime): Set (or clear) it.
1241
12422010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
1243
1244 * process.c (status_notify): Remove unused var `ro'.
1245
12462010-04-12 Jan Djärv <jan.h.d@swipnet.se>
1247
1248 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
1249 more than one visual (Bug#5938).
1250
12512010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
1252
1253 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
1254 Undefine.
1255
12562010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
1257
1258 Remove C_SWITCH_SYSTEM_TEMACS.
1259 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
1260 (malloc, realloc, free): Use emacs, not temacs for conditional
1261 definition.
1262
1263 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
1264 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
1265
1266 Use autoconf, not cpp for some variables.
1267 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
1268 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
1269 (ALL_CFLAGS): Use them as make variables.
1270 (really-lwlib, really-oldXMenu): Do not pass them.
1271
12722010-04-11 Jan Djärv <jan.h.d@swipnet.se>
1273
1274 * xmenu.c (apply_systemfont_to_dialog): New.
1275 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
1276
12772010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
1278
1279 * process.c (exec_sentinel): Preserve current-buffer.
1280
1281 * process.c (read_process_output): Move the save-current-buffer to
1282 apply to both the filter and the non-filter branches.
1283
12842010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
1285
1286 * s/msdos.h (UNEXEC): New definition.
1287
12882010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1289
1290 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
1291 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
1292
1293 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
1294 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
1295 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
1296 TRY_WINDOW_CHECK_MARGINS.
1297
1298 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
1299 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
1300 width only when it is for padding.
1301
13022010-04-09 Jan Djärv <jan.h.d@swipnet.se>
1303
1304 * xfns.c (Fx_show_tip): Call try_window in a loop until
1305 fonts_changed_p is zero (Bug#2423).
1306
13072010-04-08 Eli Zaretskii <eliz@gnu.org>
1308
1309 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
1310 the end of TEXT_AREA. (Bug#5856)
1311
13122010-04-08 Jan Djärv <jan.h.d@swipnet.se>
1313
1314 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
1315 HAVE_GCONF.
1316
13172010-04-08 Eli Zaretskii <eliz@gnu.org>
1318
1319 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
1320 prev.orig_type, for resolving type of NSM. (Bug#5858)
1321
13222010-04-08 Jan Djärv <jan.h.d@swipnet.se>
1323
1324 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
1325 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
1326 in current_font.
1327 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
1328 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
1329 New functions.
1330 (syms_of_xsettings): Initialize current_font.
1331 defsubr Sfont_get_system_normal_font.
1332
1333 * xsettings.h (Ffont_get_system_normal_font,
1334 xsettings_get_system_normal_font): Declare.
1335
1336 * xfns.c (extern xlwmenu_default_font): Remove.
1337 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
1338 to xlwmenu.c.
1339
1340 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
1341 menu items in UTF-8.
1342
1343 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
1344 (apply_systemfont_to_menu): New function.
1345 (set_frame_menubar, create_and_show_popup_menu): Call
1346 apply_systemfont_to_menu.
1347
13482010-04-07 Jan Djärv <jan.h.d@swipnet.se>
1349
1350 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
1351 FRAME_LINE_TO_PIXEL_Y.
1352
1353 * xterm.c (x_set_window_size_1): Don't add border_width/height to
1354 pixelwidth/height.
1355
13562010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
1357
1358 Simplify code for HP machines.
1359 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
1360 for GNU_LINUX, not needed.
1361 (UNEXEC, NEED_BSDTTY): Move definitions...
1362 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
1363
1364 * m/iris4d.h (UNEXEC): Move definition ...
1365 * s/irix6-5.h (UNEXEC): ... here.
1366
13672010-04-04 Jan Djärv <jan.h.d@swipnet.se>
1368
1369 * xfns.c (set_machine_and_pid_properties): New function.
1370 (Fx_create_frame): Call set_machine_and_pid_properties.
1371
13722010-04-03 Eli Zaretskii <eliz@gnu.org>
1373
1374 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
1375 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
1376 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
1377
1378 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
1379 in this function. (Bug#5703)
1380
13812010-04-03 Chong Yidong <cyd@stupidchicken.com>
1382
1383 * nsterm.h: Fix last change.
1384
13852010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
1386
1387 * m/intel386.h (NO_REMAP): Move definition ...
1388 * s/msdos.h (NO_REMAP): ... here.
1389
1390 * m/vax.h (CRT0_DUMMIES): Remove, unused.
1391
1392 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
1393 used on those platforms.
1394
13952010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
1396
1397 Remove extern errno declarations.
1398 * xterm.c:
1399 * xrdb.c:
1400 * w32term.c:
1401 * unexec.c:
1402 * unexaix.c:
1403 * sysdep.c:
1404 * process.c:
1405 * lread.c:
1406 * keyboard.c:
1407 * floatfns.c:
1408 * filelock.c:
1409 * fileio.c:
1410 * emacs.c (main):
1411 * ecrt0.c:
1412 * dispnew.c:
1413 * callproc.c:
1414 * buffer.c: Remove errno extern declarations.
1415 * s/netbsd.h (NEED_ERRNO): Remove.
1416
14172010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
1418
1419 Remove all uses of LIBX11_SYSTEM.
1420 * Makefile.in (LIBX11_SYSTEM): Remove.
1421 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
1422 instead.
1423
14242010-04-01 Eli Zaretskii <eliz@gnu.org>
1425
1426 Remove support for DJGPP v1.x (bug#5813).
1427
1428 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
1429 * s/msdos.h:
1430 * unexec.c (make_hdr, copy_text_and_data):
1431 * sysdep.c (wait_for_termination, sys_subshell):
1432 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
1433 (IT_set_terminal_modes, __write, _rename, gethostname)
1434 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
1435 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
1436 the value of __DJGPP__.
1437 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
1438 compatibility code.
1439 * lread.c:
1440 * gmalloc.c (memalign):
1441 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
1442 * emacs.c (main):
1443 * dosfns.c (init_dosfns):
1444 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
1445
14462010-04-01 Eli Zaretskii <eliz@gnu.org>
1447
1448 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
1449 string with `cursor' property comes from an `after-string'
1450 overlay. (Bug#5816)
1451
14522010-04-01 Glenn Morris <rgm@gnu.org>
1453
1454 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
1455 Define as Makefile variables.
1456 (LIBX): Use above variables rather than directly using autoconf.
1457
14582010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
1459
1460 Clean up BSD_SYSTEM use.
1461 * xterm.c:
1462 * process.c:
1463 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
1464 for including <sys/ioctl.h>.
1465 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
1466 code is only used for MSDOS.
1467
14682010-03-31 Juri Linkov <juri@jurta.org>
1469
1470 * image.c: Add `Qextension_data'.
1471 (syms_of_image): Initialize and staticpro `Qextension_data'.
1472 (Fimage_metadata): Rename from `Fimage_extension_data'.
1473 (gif_load): Put GIF extension data to the property
1474 `Qextension_data'.
1475
14762010-04-05 Chong Yidong <cyd@stupidchicken.com>
1477
1478 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
1479 terminal frames (Bug#5837).
1480
14812010-03-31 Chong Yidong <cyd@stupidchicken.com>
1482
1483 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
1484 * nsterm.h: Fix prototype.
1485
14862010-03-31 Eli Zaretskii <eliz@gnu.org>
1487
1488 * xdisp.c (highlight_trailing_whitespace): Support highlight of
1489 trailing whitespace in right-to-left rows.
1490
14912010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
1492
1493 Get rid of the direct_output optimizations.
1494 * keyboard.c (nonundocount): Remove extern declaration.
1495 (command_loop_1): Remove brittle optimisation for cheap and
1496 common operations.
1497 * xdisp.c (redisplay_internal): Don't bother checking
1498 redisplay_performed_directly_p any more.
1499 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
1500 any more.
1501 * dispnew.c (redisplay_performed_directly_p)
1502 (direct_output_for_insert, direct_output_forward_char):
1503 * dispextern.h (redisplay_performed_directly_p)
1504 (direct_output_for_insert, direct_output_forward_char): Remove.
1505 * cmds.c (nonundocount): Make it static.
1506
15072010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
1508
1509 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
1510
15112010-03-31 Jan Djärv <jan.h.d@swipnet.se>
1512
1513 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
1514 invisible (Bug#5766).
1515
15162010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
1517
1518 * xdisp.c (x_consider_frame_title, update_window_cursor):
1519 Remove HAVE_NS conditionals.
1520 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
1521
1522 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
1523 filename for the title.
1524 (ns_set_doc_edited): Do nothing if the selected window is a
1525 minibuffer window.
1526
1527 * nsterm.h: Add prototypes for ns_set_name_as_filename and
1528 ns_set_doc_edited.
1529
1530 * nsterm.m: Remove unneeded prototype.
1531
15322010-03-31 Glenn Morris <rgm@gnu.org>
1533
1534 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
1535 in the DOC file. (Bug#5336)
1536
15372010-03-31 Chong Yidong <cyd@stupidchicken.com>
1538
1539 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
1540
15412010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
1542
1543 * window.c (keys_of_window): Remove redundant/overridden bindings.
1544
15452010-03-30 Eli Zaretskii <eliz@gnu.org>
1546
1547 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
1548 Restore original behavior when the iterator is not bidi_p.
1549
15502010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
1551
1552 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
1553
15542010-03-30 Eli Zaretskii <eliz@gnu.org>
1555
1556 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
1557 are outside the range of cached character positions.
1558
15592010-03-30 Juanma Barranquero <lekktu@gmail.com>
1560
1561 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
1562
15632010-03-30 Eli Zaretskii <eliz@gnu.org>
1564
1565 Initial support for bidirectional editing.
1566
1567 * Makefile.in (obj): Include bidi.o.
1568 (bidi.o): New target.
1569
1570 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
1571 ($(BLD)/bidi.$(O)): New target.
1572
1573 * bidi.c: New file.
1574
1575 * buffer.h (struct buffer): New members bidi_display_reordering
1576 and bidi_paragraph_direction.
1577
1578 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
1579 and bidi_paragraph_direction.
1580 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
1581 and bidi-paragraph-direction.
1582 (Fbuffer_swap_text): Swap the values of
1583 bidi_display_reordering and bidi_paragraph_direction.
1584
1585 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
1586 (bidi_type_t, bidi_dir_t): New types.
1587 (bidi_saved_info, bidi_stack, bidi_it): New structures.
1588 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
1589 prev_stop, base_level_stop, and eol_pos.
1590 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
1591 (IT_STACK_SIZE): Enlarge to 5.
1592 (struct glyph_row): New member reversed_p.
1593 <string_buffer_position>: Update prototype.
1594 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
1595 glyph_row if bidi_it.paragraph_dir == R2L.
1596 (struct glyph): New members resolved_level and bidi_type.
1597
1598 * dispnew.c (direct_output_forward_char): Give up if we need bidi
1599 processing or buffer's direction is right-to-left.
1600 (prepare_desired_row): Preserve the reversed_p flag.
1601 (row_equal_p): Compare the reversed_p attributes as well.
1602
1603 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
1604 bidi_init_it and set it->paragraph_embedding from the current
1605 buffer's value of bidi_paragraph_direction.
1606 (reseat_1): Initialize bidi_it.first_elt.
1607 (set_iterator_to_next, next_element_from_buffer): Use the value of
1608 paragraph_embedding to determine the paragraph direction.
1609 (set_iterator_to_next): Under bidi reordering, call
1610 bidi_get_next_char_visually. Call bidi_paragraph_init if the
1611 new_paragraph flag is set in the bidi iterator.
1612 (next_element_from_buffer): If bidi_it.first_elt is set,
1613 initialize paragraph direction and find the first character to
1614 display in the visual order. If reseated to a middle of a line,
1615 prime the bidi iterator starting at the line's beginning. Handle
1616 the situation where we overstepped stop_charpos due to
1617 non-linearity of the bidi iteration. Likewise for when we back up
1618 beyond the previous stop_charpos. When moving across stop_charpos,
1619 record it in prev_stop.
1620 (display_line): Set row->end and it->start for the next row to the
1621 next character in logical order. Always extend reversed_p rows to
1622 the end of line, even if they end at ZV. Copy the reversed_p flag
1623 to the next glyph row. Keep calling set_cursor_from_row for
1624 bidi-reordered rows even if we already have a possible candidate
1625 for cursor position. Set row_end after all the row's glyphs have
1626 been produced, by looping over the glyphs. Record the position
1627 after EOL in it->eol_pos, and use it to set end_pos of the last
1628 row produced for a continued line.
1629 <Qright_to_left, Qleft_to_right>: New variables.
1630 (syms_of_xdisp): Initialize and staticpro them.
1631 (string_buffer_position_lim): New function.
1632 (string_buffer_position): Most of code moved to
1633 string_buffer_position_lim. Last argument and return value are
1634 now EMACS_INT; all callers changed.
1635 (set_cursor_from_row): Rewritten to support bidirectional text and
1636 reversed glyph rows.
1637 (text_outside_line_unchanged_p, try_window_id): Disable
1638 optimizations if we are reordering bidirectional text and the
1639 paragraph direction can be affected by the change.
1640 (append_glyph, append_composite_glyph)
1641 (produce_image_glyph, append_stretch_glyph): Set the
1642 resolved_level and bidi_type members of each glyph.
1643 (append_glyph): If the glyph row is reversed, prepend the glyph
1644 rather than appending it.
1645 (handle_stop_backwards): New function.
1646 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
1647 (reseat): call handle_stop_backwards to recompute prev_stop and
1648 base_level_stop for the new position.
1649 (handle_invisible_prop): Under bidi iteration, skip invisible text
1650 using bidi_get_next_char_visually. If we are `reseat'ed, init the
1651 paragraph direction. Update IT->prev_stop after skipping
1652 invisible text.
1653 (move_it_in_display_line_to): New variables prev_method
1654 and prev_pos. Compare for strict equality in
1655 BUFFER_POS_REACHED_P.
1656 (try_cursor_movement): Examine all the candidate rows that occlude
1657 point, to return the best match. If rows are bidi-reordered
1658 and point moved backwards, back up to the row that is not a
1659 continuation line, and start looking for a suitable row from
1660 there.
1661
1662 * term.c (append_glyph): Reverse glyphs by pre-pending them,
1663 rather than appending, if the glyph_row's reversed_p flag is set.
1664 Set the resolved_level and bidi_type members of each glyph.
1665
1666 * .gdbinit (pbiditype): New command.
1667 (pgx): Use it to display bidi level and type of the glyph.
1668 (pitx): Display some bidi information about the iterator.
1669 (prowlims, pmtxrows): New commands.
1670
16712010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
1672
1673 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
1674 * s/usg5-4.h (LIBS_DEBUG):
1675 * s/irix6-5.h (C_DEBUG_SWITCH):
1676 * s/gnu-linux.h (LIBS_DEBUG):
1677 * s/darwin.h (LIBS_DEBUG):
1678 * s/bsd-common.h (LIBS_DEBUG):
1679 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
1680 * m/iris4d.h (LIBS_DEBUG):
1681 * m/hp800.h (LIBS_DEBUG): Remove definitions.
1682
1683 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
1684 (LIBS_DEBUG): Remove definition.
1685
16862010-03-27 Chong Yidong <cyd@stupidchicken.com>
1687
1688 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
1689 Windows.
1690
16912010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1692
1693 * process.c (Fmake_network_process): Don't call turn_on_atimers around
1694 `connect' (Bug#5723).
1695
16962010-03-25 Helmut Eller <eller.helmut@gmail.com>
1697
1698 * process.c (Fmake_network_process): Call `select' for interrupted
1699 `connect' rather than creating new socket (Bug#5173).
1700
17012010-03-24 Jan Djärv <jan.h.d@swipnet.se>
1702
1703 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
1704
1705 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
1706
1707 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
1708
17092010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1710
1711 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
1712 XLoadQueryFont.
1713
17142010-03-24 Kenichi Handa <handa@m17n.org>
1715
1716 * coding.c (decode_coding_ccl): Fix previous change for the
1717 multibyte case.
1718 (encode_coding_ccl): Don't setup ccl program here. Fix for the
1719 case that the output buffer is fullfilled.
1720 (encode_coding): Setup ccl program here.
1721
17222010-03-24 Andreas Politz <politza@fh-trier.de> (tiny change)
1723
1724 * editfns.c (Fformat): Account for string precision when computing
1725 field width (Bug#5710).
1726
17272010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
1728
1729 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
1730
1731 Simplify LIBS_MACHINE definitions.
1732 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
1733 * m/iris4d.h (LIBS_MACHINE): Likewise.
1734 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
1735 * s/aix4-2.h (LIBS_SYSTEM): ... here.
1736 * s/netbsd.h: Remove commented out code.
1737
17382010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
1739
1740 Remove dead code dealing with POSIX_SIGNALS.
1741 * atimer.c (set_alarm): Remove dead code, all USG systems define
1742 POSIX_SIGNALS.
1743 * data.c (arith_error): Likewise.
1744 * keyboard.c (input_available_signal, handle_user_signal)
1745 (interrupt_signal): Likewise.
1746 * process.c (sigchld_handler): Likewise.
1747 (create_process): Remove if 0 code. Remove HPUX conditional when
1748 !defined (POSIX_SIGNALS), it cannot be true.
1749 * syssignal.h: Remove USG5_4 and USG conditionals when
1750 !POSIX_SIGNALS, they cannot be true.
1751
1752 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
1753 NO_SOCK_SIGIO, not used anymore.
1754
17552010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
1756
1757 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
1758 support vax on BSDs.
1759
1760 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
1761 * s/aix4-2.h (ORDINARY_LINK): ... here.
1762
17632010-03-21 Andreas Schwab <schwab@linux-m68k.org>
1764
1765 * Makefile.in (abs_builddir): Define.
1766 (bootstrap_exe): Use it.
1767 (VPATH): Use $(srcdir) instead of @srcdir@.
1768
17692010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
1770
1771 * Makefile.in (bootstrap_exe): Use an absolute name.
1772
17732010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
1774
1775 Remove support for old GNU/Linux using libc version 5.
1776 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
1777 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
1778
1779 Consolidate redundant definitions in s/bsd-common.h.
1780 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
1781 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
1782 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
1783 doing it in all files that include this one.
1784 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
1785 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
1786 (LDAV_SYMBOL, KERNEL_FILE): Remove.
1787 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
1788 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
1789 (LDAV_SYMBOL, KERNEL_FILE): Remove.
1790 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
1791 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
1792 (LDAV_SYMBOL, KERNEL_FILE): Remove.
1793
1794 Consolidate redundant definitions.
1795 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
1796 it's undefined in all files that include this one.
1797 (POSIX_SIGNALS): Define here instead of doing it in all files that
1798 include this one.
1799 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
1800 (POSIX_SIGNALS): Do not define.
1801 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
1802 (POSIX_SIGNALS): Do not define.
1803 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
1804 (POSIX_SIGNALS): Do not define.
1805
1806 Remove support for old UNIX System V systems.
1807 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
1808 * s/usg-5-4-2.h: Remove.
1809
1810 Remove support for Solaris on PPC and for old versions.
1811 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
1812 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
1813 that cancel each other.
1814 * s/sol2-3.h:
1815 * s/sol2-4.h:
1816 * s/sol2-5.h: Remove.
1817 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
1818 (NO_REMAP): Remove, unused.
1819 (UNEXEC): Move definition ...
1820 * s/aix4-2.h (UNEXEC): ... here.
1821
1822 * s/openbsd.h: Remove support for non-ELF and for systems that do
1823 not support shared libraries.
1824 * s/netbsd.h:
1825 * s/freebsd.h: Likewise.
1826
18272010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
1828
1829 Remove non-working support for lynxos 3.0.
1830 * s/lynxos.h: Remove file.
1831
1832 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
1833 COFF_BSD_SYMBOLS, nothing defines it anymore.
1834
18352010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
1836
1837 Remove obsolete uses of HAVE_SHM.
1838 * emacs.c (standard_args):
1839 (Fdump_emacs):
1840 (syms_of_emacs): Remove code depending on HAVE_SHM.
1841
1842 * alloc.c: Remove HAVE_SHM dependent definition.
1843
1844 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
1845
18462010-03-18 Glenn Morris <rgm@gnu.org>
1847
1848 * emacs.c (USAGE4): Hard-code bug address.
1849 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
1850 (bug_reporting_address): Remove.
1851 (main): Don't call bug_reporting_address.
1852
1853 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
1854 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
1855
18562010-03-15 Chong Yidong <cyd@stupidchicken.com>
1857
1858 * xfns.c (Fx_create_frame):
1859 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
1860 on left.
1861
18622010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
1863
1864 * editfns.c (Fformat): Account for string precision when computing
1865 field width (Bug#5710).
1866
18672010-03-12 Chong Yidong <cyd@stupidchicken.com>
1868
1869 * xfns.c (Fx_create_frame): Set default to Qright.
1870
1871 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
1872 all window systems.
1873
18742010-03-12 Eli Zaretskii <eliz@gnu.org>
1875
1876 These changes remove termcap.c from the build on Posix platforms.
1877 * Makefile.in (termcapobj): Move termcap.o from here...
1878 (MSDOS_OBJ): ...to here.
1879 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
1880 now identical to when LIBS_TERMCAP is defined.
1881
1882 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
1883
1884 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
1885
1886 * config.in: Regenerated. (See top-level ChangeLog.)
1887
18882010-03-10 Chong Yidong <cyd@stupidchicken.com>
1889
1890 * Branch for 23.2.
1891
18922010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
1893
1894 Cleanup setup of gl_state in various parts of the code.
1895 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
1896 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
1897 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
1898 (skip_chars):
1899 * regex.c (regex_compile): Use it.
1900 (re_compile_pattern): Don't set gl_state.current_syntax_table since
1901 it's now set in regex_compile when/if we need it.
1902
19032010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
1904
1905 Make it possible to C-g in a tight bytecode loop again (bug#5680).
1906 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
1907 (QUIT): Use it to consolidate code and remove redundancy.
1908 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
1909
1910 * regex.c (regex_compile): Setup gl_state as well.
1911
1912 * syntax.c (skip_chars): Setup gl_state (bug#3823).
1913 (in_classes): Use CONSP before XCAR/XCDR.
1914
19152010-03-03 Chong Yidong <cyd@stupidchicken.com>
1916
1917 * keymap.c (Fwhere_is_internal): Use Fequal to compare
1918 definitions, so that keyboard macros are correctly handled
1919 (Bug#5481).
1920
19212010-03-02 Eli Zaretskii <eliz@gnu.org>
1922
1923 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
1924 text that could be relocated inside the call to emacs_mule_char.
1925 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
1926 (CODING_DECODE_CHAR): Add a comment describing its purpose.
1927
19282010-03-02 Kenichi Handa <handa@m17n.org>
1929
1930 * character.c (parse_str_as_multibyte): Fix handling of the
1931 multibyte form of raw-bytes.
1932 (str_as_multibyte): Likewise.
1933
1934 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
1935 form of raw-bytes.
1936
19372010-02-28 Chong Yidong <cyd@stupidchicken.com>
1938
1939 * charset.c (load_charset_map_from_file)
1940 (load_charset_map_from_vector): Zero out allocated
1941 charset_map_entries before using them.
1942
19432010-02-27 Andreas Schwab <schwab@linux-m68k.org>
1944
1945 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
1946
19472010-02-27 Chong Yidong <cyd@stupidchicken.com>
1948
1949 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
1950 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
1951
19522010-02-26 Kenichi Handa <handa@m17n.org>
1953
1954 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
1955
1956 * xdisp.c (reseat_to_string): Fix previous change.
1957
19582010-02-26 David Reitter <david.reitter@gmail.com>
1959
1960 * nsfont.m (nsfont_draw): ns_antialias_text should be a
1961 Lisp_Object (Bug#4736).
1962
19632010-02-25 Kenichi Handa <handa@m17n.org>
1964
1965 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
1966
19672010-02-24 Jan Djärv <jan.h.d@swipnet.se>
1968
1969 * xterm.c (XTflash): Move declarations before statements.
1970
1971 * gtkutil.c (xg_get_gdk_display): Remove (unused).
1972 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
1973 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
1974 (xg_create_tool_bar): Remove unused variables.
1975 (x_wm_set_size_hint): Move declarations before statements.
1976 (xg_create_frame_widgets): Remove variable grav,
1977
19782010-02-21 Chong Yidong <cyd@stupidchicken.com>
1979
1980 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
1981
19822010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
1983
1984 * term.c (fatal): Add a final \n if needed (bug#5596).
1985
19862010-02-18 Chong Yidong <cyd@stupidchicken.com>
1987
1988 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
1989
19902010-02-18 Glenn Morris <rgm@gnu.org>
1991
1992 * callint.c (Finteractive): Doc fix.
1993
19942010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
1995
1996 * coding.c (record_conversion_result):
1997 Handle CODING_RESULT_INSUFFICIENT_DST.
1998 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
1999 memory allocation error.
2000
20012010-02-17 Kenichi Handa <handa@m17n.org>
2002
2003 * coding.c (decode_coding_ccl): Don't setup ccl program here.
2004 Fix for the case that the output buffer is fullfilled.
2005 (decode_coding): Setup ccl program here. Keep looping when the
2006 decoder stopped because the output buffer is
2007 fullfilled (bug#5534).
2008
2009 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
2010
20112010-02-13 Jan Djärv <jan.h.d@swipnet.se>
2012
2013 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
2014 bug #5571.
2015 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
2016 overdrawn.
2017
20182010-02-10 Jan Djärv <jan.h.d@swipnet.se>
2019
2020 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
2021 doing_interact here.
2022 (ice_connection_closed): New function.
2023 (x_session_check_input, smc_die_CB, ice_io_error_handler)
2024 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
2025 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
2026 returns I/O error.
2027 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
2028 bug #5512.
2029
20302010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
2031
2032 * nsfont.m (nsfont_open): The system's value for the font descent
2033 is negative, so round it down to avoid clipping.
2034
20352010-02-06 Chong Yidong <cyd@stupidchicken.com>
2036
2037 * charset.c (load_charset_map_from_file)
2038 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
2039 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
2040
20412010-02-05 Chong Yidong <cyd@stupidchicken.com>
2042
2043 * charset.c (load_charset_map_from_file): Allocate large
2044 charset_map_entries structure on the heap rather than the stack.
2045 (Bug#5526).
2046
20472010-01-31 Kenichi Handa <handa@m17n.org>
2048
2049 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
2050 size in NAME is invalid, return -1 (Bug#5396).
2051
20522010-01-31 Chong Yidong <cyd@stupidchicken.com>
2053
2054 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
2055 <deactivated@gmail.com> (Bug#3605).
2056
20572010-01-31 David De La Harpe Golden <david@harpegolden.net>
2058
2059 * fileio.c (Frename_file): Correctly rename symlinks to
2060 directories (Bug#5496).
2061
20622010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
2063
2064 * nsterm.m (ns_ring_bell): Handle visible bell like X.
2065
20662010-01-30 Andreas Schwab <schwab@linux-m68k.org>
2067
2068 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
2069
20702010-01-29 Chong Yidong <cyd@stupidchicken.com>
2071
2072 * frame.c (DEFAULT_ROWS): Change default to 35.
2073
2074 * xfns.c (x_default_font_parameter): Change default XFT font to
2075 monospace-10 (Bug#3643).
2076
20772010-01-29 Eli Zaretskii <eliz@gnu.org>
2078
2079 * w32inevt.c (key_event): Remove unnecessary comparison of
2080 event->uChar.AsciiChar with 128.
2081
20822010-01-28 Chong Yidong <cyd@stupidchicken.com>
2083
2084 * fileio.c (Frename_file): Fix last change (Bug#5487).
2085
2086 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
2087
2088 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
2089
20902010-01-28 Jan Djärv <jan.h.d@swipnet.se>
2091
2092 * xfns.c (Fx_create_frame): Remove window size matching code from
2093 2010-01-15.
2094 (x_get_current_desktop, x_get_desktop_workarea): Remove
2095
20962010-01-27 Jason Rumney <jasonr@gnu.org>
2097
2098 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
2099 (key_event): Use unicode for characters 128 and higher (Bug#4567).
2100
21012010-01-27 Kenichi Handa <handa@m17n.org>
2102
2103 * regex.c (analyse_first): Fix setting of fastmap for unibyte
2104 pattern string (Bug#4209).
2105
21062010-01-27 David De La Harpe Golden <david@harpegolden.net>
2107
2108 * fileio.c (Frename_file): Call copy-directory and
2109 delete-directory for directories, in order to handle cross-device
2110 renaming (Bug#3353).
2111
21122010-01-25 Jan Djärv <jan.h.d@swipnet.se>
2113
2114 * xfns.c (Fx_create_frame): If frame height is too big, try
2115 sizes 24 and 10. Bug #3643.
2116
21172010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
2118
2119 Try and fix bug#788, hopefully for real this time.
2120 * keymap.c (shadow_lookup): Add `remap' arg.
2121 (describe_map, describe_vector): Update calls to shadow_lookup.
2122 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
2123 `remapped' so this flag is applicable to `sequence'. Be careful to
2124 perform remapping during shadow_lookup check of remapped_sequences.
2125
21262010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
2127
2128 * image.c (png_load): Use png_sig_cmp instead of the obsolete
2129 png_check_sig, which has been removed in libpng 1.4.
2130
21312010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
2132
2133 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
2134 lacks this header file).
2135
21362010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2137
2138 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
2139 as in Emacs 22.
2140
21412010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2142
2143 * lisp.h (make_pure_string): String pointer arg now points to const.
2144
2145 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
2146 args now point to const.
2147
21482010-01-22 Eli Zaretskii <eliz@gnu.org>
2149
2150 * lread.c (Fload): Don't treat files without .elc extension as
2151 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
2152 them. (bug#5303)
2153
21542010-01-20 Kenichi Handa <handa@m17n.org>
2155
2156 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
2157 treat the source as actual byte sequence.
2158
21592010-01-19 Alan Mackenzie <acm@muc.de>
2160
2161 Fix spurious before-change-functions invocation from (insert ?\n).
2162 * textprop.c (set_text_properties): Rename parameter
2163 `signal_after_change_p' to `coherent_change_p', and make the
2164 invocation of `modify_region' conditional on it.
2165
21662010-01-19 Jan Djärv <jan.h.d@swipnet.se>
2167
2168 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
2169 for debug purpose.
2170 (syms_of_xsettings): Declare xft-settings.
2171
21722010-01-18 Chong Yidong <cyd@stupidchicken.com>
2173
2174 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
2175
21762010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
2177
2178 * xterm.c (event_handler_gdk): Block input (Bug#5037).
2179
21802010-01-16 Chong Yidong <cyd@stupidchicken.com>
2181
2182 * emacs.c (standard_args): Adjust arg priorities to reflect how
2183 they are processed in startup.el.
2184
21852010-01-16 Andreas Schwab <schwab@linux-m68k.org>
2186
2187 * Makefile.in (lisp, shortlisp): Update.
2188
21892010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
2190
2191 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
2192 code, link the new kboard into all_kboard before running Lisp code,
2193 and protect the new terminal with GCPRO (Bug#5365).
2194 (x_term_init): Remove unused var `atom'.
2195 (x_delete_display, x_delete_terminal): Remove unused var `i'.
2196
21972010-01-15 Jan Djärv <jan.h.d@swipnet.se>
2198
2199 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
2200 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
2201 to find out usable size of the desktop. Don't make frames larger than
2202 this. Bug #3643.
2203
22042010-01-15 Kenichi Handa <handa@m17n.org>
2205
2206 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
2207
22082010-01-15 Chong Yidong <cyd@stupidchicken.com>
2209
2210 * nsterm.m (Qnone): Define.
2211
2212 * nsfns.m (Qnone): Move definition to nsterm.m.
2213
22142010-01-14 Kenichi Handa <handa@m17n.org>
2215
2216 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
2217 systems.
2218
22192010-01-14 Kenichi Handa <handa@m17n.org>
2220
2221 Make auto-composition work on all buffers even if they are
2222 fundamental mode.
2223
2224 * composite.c (Vauto_composition_mode): New variable.
2225 (composition_compute_stop_pos): Check Vauto_composition_mode
2226 instead of Vauto_composition_function.
2227 (composition_adjust_point, Ffind_composition_internal): Likewise.
2228 (syms_of_composite): Declare Lisp variable
2229 "auto-composition-mode" here.
2230
22312010-01-13 Chong Yidong <cyd@stupidchicken.com>
2232
2233 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
2234 during call to vendor-specific-keysyms (Bug#5365).
2235
22362010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2237
2238 * keyboard.c (input_available_signal) [SYNC_INPUT]:
2239 Call SIGNAL_THREAD_CHECK (Bug#5333).
2240
2241 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
2242 Call SIGNAL_THREAD_CHECK.
2243
22442010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
2245
2246 Try to fix bug#5314. This is probably not the final word, tho.
2247 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
2248 recent-auto-save-p as a side-effect.
2249 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
2250 * buffer.c (Fkill_buffer, reset_buffer):
2251 * editfns.c (Fsubst_char_in_region):
2252 * fileio.c (Finsert_file_contents, Fdo_auto_save)
2253 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
2254
22552010-01-13 Kenichi Handa <handa@m17n.org>
2256
2257 Display buffer name, etc. in mode line by composing correctly.
2258
2259 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
2260 STRING is not nil.
2261 (display_mode_element): Adjust for the change of
2262 decode_mode_spec and display_line.
2263 (decode_mode_spec): Change arg MULTIBYTE to STRING.
2264 (display_string): Handle the case that STRING is non-null and
2265 LISP_STRING is not nil.
2266
2267 * xterm.c (x_draw_composite_glyph_string_foreground):
2268 Pay attention to s->face->overstrike.
2269
2270 * composite.c (composition_reseat_it): Don't check PT if STRING is
2271 non nil.
2272
22732010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2274
2275 * keyboard.c (read_char): Don't apply previous change when current
2276 buffer is unchanged by command execution.
2277
22782010-01-12 Jan Djärv <jan.h.d@swipnet.se>
2279
2280 * keyboard.c (read_char): Return after executing from special map.
2281
22822010-01-12 Glenn Morris <rgm@gnu.org>
2283
2284 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
2285 bug-gnu-emacs rather than emacs-pretest-bug.
2286
22872010-01-11 Chong Yidong <cyd@stupidchicken.com>
2288
2289 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
2290 initializing the Lisp variables that depend on them.
2291
22922010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2293
2294 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
2295 Clear areas that will not be updated after change of menu bar lines.
2296 Clear the menu bar window's current matrix when the window gets empty.
2297
22982010-01-09 Chong Yidong <cyd@stupidchicken.com>
2299
2300 * intervals.h, textprop.c (extend_property_ranges): Return value
2301 and args changed. Discard properties that begin at or after the
2302 new end (Bug#5306).
2303
2304 * editfns.c (Fformat): Caller changed.
2305
2306 * nsterm.m (ns_set_default_prefs): Delete function.
2307 (syms_of_nsterm): Initialize ns_command_modifier,
2308 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
2309 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
2310
2311 * xdisp.c (pos_visible_p): Check for invisible text at the correct
2312 position (Bug#4040).
2313
23142010-01-09 Eli Zaretskii <eliz@gnu.org>
2315
2316 * editfns.c (Ffloat_time): Doc fix.
2317
23182010-01-09 Jan Djärv <jan.h.d@swipnet.se>
2319
2320 * xfns.c (Fx_create_frame): Don't create frame larger than display
2321 by default bug#3643.
2322
23232010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2324
2325 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
2326 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
2327 windows above internal border.
2328
2329 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
2330 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
2331 windows above internal border.
2332
2333 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
2334 tool bar windows specially.
2335
2336 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
2337
2338 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
2339 specially.
2340 (XTflash): Take account of menu bar height.
2341
2342 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
2343 specially.
2344
23452010-01-08 Jan Djärv <jan.h.d@swipnet.se>
2346
2347 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
2348 also be true before we can return early (bug #5339).
2349
23502010-01-06 David Reitter <david.reitter@gmail.com>
2351
2352 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
2353 (Fns_display_usable_bounds): Rewrite, computing bounds properly
2354 (Bug#3233).
2355
23562010-01-06 Jan Djärv <jan.h.d@swipnet.se>
2357
2358 * font.c (font_open_entity): Enable chache and call cached_font_ok
2359 for the driver if defined.
2360 (QCuser_spec): New symbol.
2361 (font_spec_from_name): Save name as user-spec.
2362 (font_load_for_lface): Keep user-spec instead of name.
2363 (font_open_by_name): Save name as user-spec.
2364 (syms_of_font): Initialize QCuser_spec.
2365 (font_clear_prop): Clear name if it exists in font (bug#5157).
2366
2367 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
2368 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
2369 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
2370
2371 * font.h (struct font_driver): Add cached_font_ok.
2372
2373 * xterm.c (x_clear_frame): Queue draw for scroll bars.
2374
23752010-01-05 Jan Djärv <jan.h.d@swipnet.se>
2376
2377 * xterm.c (x_new_font): Move code for setting rows/cols before
2378 resizing ...
2379 (x_set_window_size): ... to here. Bug #2568.
2380
2381 * gtkutil.c (xg_clear_under_internal_border): New function.
2382 (xg_frame_resized, xg_frame_set_char_size):
2383 Call xg_clear_under_internal_border.
2384 (xg_update_scrollbar_pos): Clear under old scroll bar position.
2385
23862010-01-05 Chong Yidong <cyd@stupidchicken.com>
2387
2388 * keyboard.c (read_key_sequence): Catch keyboard switch after
2389 making a new tty frame (Bug#5095).
2390
23912010-01-05 Kenichi Handa <handa@m17n.org>
2392
2393 * fontset.c (fontset_find_font): Fix getting the frame pointer.
2394
23952010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
2396
2397 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
2398 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
2399 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
2400
24012010-01-03 Michael Albinus <michael.albinus@gmx.de>
2402
2403 * dbusbind.c (xd_add_watch): Improve debug message.
2404 (xd_remove_watch): Improve debug message. If DATA is the session
2405 bus, unset D-Bus session environment.
2406 (Fdbus_init_bus): Pass the bus as argument to
2407 dbus_connection_set_watch_functions. (Bug#5283)
2408
24092010-01-01 Chong Yidong <cyd@stupidchicken.com>
2410
2411 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
2412
2413 * lread.c (syms_of_lread): Make it clearer that these are the
2414 names of loaded files (Bug#5068).
2415
2416 * eval.c (run_hook_with_args): Handle the case where the global
2417 value has the obsolete single-function form (Bug#5026).
2418
24192009-12-27 Chong Yidong <cyd@stupidchicken.com>
2420
2421 * minibuf.c (Fall_completions): Minor optimization.
2422
24232009-12-26 Eli Zaretskii <eliz@gnu.org>
2424
2425 * .gdbinit (pgx): Fix display of composite glyphs.
2426 Display cmp.from and cmp.to as well.
2427 (pitx): Fix last change.
2428
24292009-12-25 Kenichi Handa <handa@m17n.org>
2430
2431 * composite.h (composition_adjust_point): Update prototype.
2432
2433 * composite.c (composition_reseat_it): Don't make a composition
2434 spanning over point.
2435 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
2436 composable characters.
2437 (composition_adjust_point): New arg NEW_PT. Callers changed.
2438
2439 * keyboard.c (command_loop_1): Force redisplay if the last point
2440 was within a composition.
2441 (adjust_point_for_property): Don't adjust point for automatic
2442 composition when called after buffer modification.
2443
24442009-12-19 Eli Zaretskii <eliz@gnu.org>
2445
2446 * .gdbinit (pitx): Don't use enum names, use their values.
2447 Remove reference to non-existing value GET_FROM_COMPOSITION.
2448 (pgx): Don't use enum names, use their values.
2449 (pitmethod): New helper command.
2450 (pitx): Use it to display iteration method.
2451 (pgrowit): New command.
2452
2453 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
2454
2455 Update dependencies in Makefile.in.
2456
2457 * Makefile.in (alloc.o): Depend on termhooks.h.
2458 (atimer.o): Depend on blockinput.h.
2459 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
2460 and frame.h.
2461 (callint.o): Depend on systime.h, coding.h, and composite.h.
2462 (callproc.o): Depend on buffer.h.
2463 (casefiddle.o): Don't depend on charset.h.
2464 (casetab.o): Depend on character.h.
2465 (ccl.o): Depend on composite.h.
2466 (chartab.o): Depend on ccl.h.
2467 (cm.o): Depend on dispextern.h.
2468 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
2469 (coding.o): Don't depend on $(INTERVALS_H).
2470 (composite.o): Don't depend on dispextern.h explicitly (it's in
2471 $(INTERVALS_H)). Depend on ccl.h.
2472 (data.o): Depend on systime.h, coding.h, composite.h,
2473 dispextern.h, font.h, and ccl.h.
2474 (dired.o): Depend on composite.h.
2475 (dispnew.o): Depend on coding.h. Don't depend explicitly on
2476 composite.h (it's in $(INTERVALS_H)).
2477 (doc.o): Depend on systime.h, coding.h, and composite.h.
2478 (editfns.o): Don't depend explicitly on dispextern.h.
2479 (emacs.o): Depend on frame.h and coding.h.
2480 (eval.o): Depend on coding.h, composite.h, and xterm.h.
2481 (fileio.o): Depend on frame.h and commands.h. Don't depend
2482 explicitly on dispextern.h.
2483 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
2484 composite.h.
2485 (fns.o): Don't depend on termhooks.h.
2486 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
2487 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
2488 coding.h, $(INTERVALS_H), window.h, xterm.h.
2489 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
2490 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
2491 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
2492 fontset.h, ccl.h, and ftfont.h.
2493 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
2494 (gtkutil.o): Depend on dispextern.h and composite.h.
2495 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
2496 termhooks.h, and ccl.h.
2497 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
2498 (intervals.o): Depend on systime.h and coding.h.
2499 (keyboard.o): Depend on composite.h and coding.h.
2500 (keymap.o): Depend on coding.h and frame.h.
2501 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
2502 (macros.o): Depend on systime.h, coding.h, and composite.h.
2503 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
2504 and atimer.h.
2505 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
2506 dispextern.h explicitly.
2507 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
2508 Don't depend explicitly on dispextern.h and composite.h.
2509 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
2510 (regex.o): Don't depend on charset.h.
2511 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
2512 (search.o): Don't depend explicitly on composite.h.
2513 (sound.o): Depend on atimer.h and systime.h.
2514 (syntax.o): Don't depend explicitly on composite.h.
2515 (sysdep.o): Depend on coding.h and composite.h.
2516 (term.o): Depend on xterm.h and buffer.h.
2517 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
2518 (textprop.o): Don't depend on dispextern.h explicitly.
2519 (undo.o): Depend on dispextern.h.
2520 (window.o): Depend on coding.h and termhooks.h. Don't depend on
2521 dispextern.h and composite.h explicitly.
2522 (xdisp.o): Depend on ccl.h.
2523 (xfaces.o): Depend on coding.h and ccl.h.
2524 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
2525 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
2526 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
2527 ftfont.h.
2528 (xgselect.o): New dependency.
2529 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
2530 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
2531 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
2532 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
2533 (xsmfns.o): Depend on frame.h and dispextern.h.
2534 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
2535 sysselect.h.
2536
25372009-12-19 Andreas Schwab <schwab@linux-m68k.org>
2538
2539 * font.c (Fclear_font_cache): Pass correct cache argument to
2540 font_clear_cache.
2541
25422009-12-16 Andreas Schwab <schwab@linux-m68k.org>
2543
2544 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
2545 twice.
2546
25472009-12-15 Chong Yidong <cyd@stupidchicken.com>
2548
2549 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
2550 calling file-remote-p. Reported by Jim Meyering.
2551
25522009-12-15 Michael Albinus <michael.albinus@gmx.de>
2553
2554 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
2555 avoid compiler warnings. (Bug #5217)
2556
25572009-12-14 Kenichi Handa <handa@m17n.org>
2558
2559 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
2560 in 8-bit encoding.
2561
25622009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
2563
2564 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
2565 tooltip windows.
2566
25672009-12-13 Jan Djärv <jan.h.d@swipnet.se>
2568
2569 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
2570 Xatom_net_window_type.
2571
2572 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
2573 Xatom_net_window_type.
2574
2575 * xterm.c (my_log_handler): New function.
2576 (x_term_init): Set my_log_handler as log handler during gtk_init
2577 so we can filter out buggy messages. (Bug #5120).
2578
2579 * xterm.c (xg_scroll_callback): Parameter list changed,
2580 use parameter GtkScrollType to determine scroll/line/page.
2581 Only allow dragging if a button < 4 is grabbed (bug #5177).
2582 (xg_end_scroll_callback): New function.
2583 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
2584 xg_create_scroll_bar.
2585
2586 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
2587 (scroll_end_callback): Remove.
2588 (xg_create_scroll_bar): Add parameter end_callback, bind it to
2589 button-release-event. Replace value-changed event with change-value,
2590 bug #5177,
2591 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
2592 bug #5177.
2593
2594 * gtkutil.h (XG_LAST_SB_DATA): Remove.
2595 (xg_create_scroll_bar): Add GCallback end_callback.
2596
2597 * xftfont.c (QClcdfilter): New variable.
2598 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
2599 (syms_of_xftfont): Initialize QClcdfilter.
2600
26012009-12-12 Jan Djärv <jan.h.d@swipnet.se>
2602
2603 * xsettings.c (struct xsettings): Add member seen.
2604 (parse_xft_settings): Update member seen with what we have read.
2605 Return non-zero if Xft-settings have been parsed, 0 otherwise.
2606 (apply_xft_settings): Only update Xft settings with what member seen
2607 indicates as new.
2608
26092009-12-12 Eli Zaretskii <eliz@gnu.org>
2610
2611 * dispextern.h (struct text_pos): Use EMACS_INT;
2612 (struct glyph): Use EMACS_INT for charpos.
2613 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
2614 region_beg_charpos, region_end_charpos,
2615 redisplay_end_trigger_charpos, and also for
2616 iterator_stack_entry.end_charpos and
2617 iterator_stack_entry.stop_charpos.
2618
26192009-12-12 Jan Djärv <jan.h.d@swipnet.se>
2620
2621 * gtkutil.c (scroll_end_callback): New function (bug #5177).
2622 (xg_create_scroll_bar): Call scroll_end_callback on button release
2623 event (bug #5177).
2624 (xg_event_is_for_scrollbar): != replaced with ==.
2625
26262009-12-12 Kenichi Handa <handa@m17n.org>
2627
2628 * ftfont.c (struct ftfont_info): New member matrix.
2629 (ftfont_open): Setup xftfont_info->matrix.
2630 (MFLTFontFT): New member matrix.
2631 (FLOOR, CEIL, ROUND): New macros.
2632 (ftfont_get_metrics): Handle matrix transformation.
2633 (ftfont_shape_by_flt): New arg matrix. Callers changed.
2634
2635 * xftfont.c (struct xftfont_info): New member matrix.
2636 (xftfont_open): Setup xftfont_info->matrix.
2637
26382009-12-10 Kenichi Handa <handa@m17n.org>
2639
2640 * xdisp.c (append_space_for_newline): Consider face-remapping.
2641
26422009-12-09 Andreas Schwab <schwab@linux-m68k.org>
2643
2644 * xsettings.c: Include "keyboard.h".
2645
2646 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
2647
2648 Fix implicit function declarations.
2649 * cmds.c: Include "frame.h".
2650 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
2651 * frame.h: Move declaration of delete_frame outside of
2652 HAVE_WINDOW_SYSTEM.
2653
26542009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
2655
2656 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
2657
2658 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
2659 GTK builds.
2660
26612009-12-07 Andreas Schwab <schwab@linux-m68k.org>
2662
2663 * unexelf.c (unexec): Don't search for .data twice.
2664
26652009-12-05 Chong Yidong <cyd@stupidchicken.com>
2666
2667 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
2668 if push failed.
2669 (handle_line_prefix): Set avoid_cursor_p here. Check return value
2670 of push_display_prop (Bug#5000).
2671
2672 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
2673 value of font_list_entities (Bug#5085).
2674
26752009-12-04 Juanma Barranquero <lekktu@gmail.com>
2676
2677 Fix `string-to-number' to deal consistently with integers and floats.
2678 * lread.c (isfloat_string): New argument ignore_trailing to accept all
2679 trailing characters, not just whitespace.
2680 (read1): Pass new arg 0 to keep old behavior.
2681 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
2682 trailing chars, as it is already done for integers. Doc fixes.
2683 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
2684
26852009-12-04 Eli Zaretskii <eliz@gnu.org>
2686
2687 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
2688 Delete unused enumeration value.
2689
26902009-12-03 Eli Zaretskii <eliz@gnu.org>
2691
2692 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
2693
26942009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
2695
2696 * process.c (Fmake_network_process): Fix up the tests for
2697 "connectionless socket", so they DTRT for seqpacket sockets as well.
2698
26992009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
2700
2701 * process.c (Qseqpacket): New symbol.
2702 (HAVE_SEQPACKET): New macro.
2703 (Fmake_network_process): Accept new :type `seqpacket'.
2704 (init_process): Add `seqpacket' feature when applicable.
2705 (syms_of_process): Initialize Qseqpacket.
2706
27072009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2708
2709 * font.c (font_load_for_lface, font_open_by_name): Don't store name
2710 if entity is Qnil.
2711
27122009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
2713
2714 * print.c (print_preprocess): Preprocess the key_and_value table of
2715 hashtables, even tho they're "hidden" (bug#5082).
2716
27172009-11-29 Jan Djärv <jan.h.d@swipnet.se>
2718
2719 * frame.c (frame_make_pointer_invisible)
2720 (frame_make_pointer_visible): Declare f before statements.
2721
27222009-11-28 Eli Zaretskii <eliz@gnu.org>
2723
2724 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
2725 omitted dependencies on lisp.h.
2726
27272009-11-27 Jan Djärv <jan.h.d@swipnet.se>
2728
2729 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
2730 is NULL.
2731
2732 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
2733
2734 * frame.c (frame_make_pointer_invisible)
2735 (frame_make_pointer_visible): Just return if there isn't any selected
2736 frame.
2737
2738 * search.c (simple_search): Remove warning by making *p const.
2739
27402009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
2741
2742 * xdisp.c (power_letter): Remove duplicate const.
2743
27442009-11-25 Jan Djärv <jan.h.d@swipnet.se>
2745
2746 * term.c (delete_tty): Remove check for last terminal (bug#4970).
2747
2748 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
2749 defaults (bug #5025).
2750
27512009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
2752
2753 * insdel.c (adjust_markers_for_delete): Move it in the
2754 right direction! (bug#4803)
2755
27562009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2757
2758 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
2759
2760 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
2761
27622009-11-24 Glenn Morris <rgm@gnu.org>
2763
2764 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
2765
27662009-11-23 Jan Djärv <jan.h.d@swipnet.se>
2767
2768 * Makefile.in: Must create deps for ecrt0.o in its rule.
2769
2770 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
2771 because that is what Gtk+ font dialog understands.
2772
2773 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
2774 of Fcopy_sequence.
2775 (font_open_by_name): Put name given into QCname for font-object returned.
2776
2777 * frame.c (x_set_font): Save original font name as frame parameter
2778 font-parameter.
2779
2780 * xsettings.c (set_default_xft_settings): New function.
2781 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
2782 is found.
2783
27842009-11-22 Andreas Schwab <schwab@linux-m68k.org>
2785
2786 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
2787 searching backwards through multibyte buffer.
2788
27892009-11-21 Jan Djärv <jan.h.d@swipnet.se>
2790
2791 * xterm.c: #include xgselect.h.
2792 (x_initialize): Call xgselect_initialize.
2793
2794 * xsettings.c (something_changedCB): C++ comments => C comments.
2795 (init_gconf): Do not deal with any GLib file descriptors, xg_select
2796 does that now.
2797
2798 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
2799 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
2800 (scroll_bar_button_cb): Remove.
2801 (create_menus): C++ comments => C comments. Don't bind grab-notify
2802 event.
2803 (xg_create_scroll_bar): Don't bind button-press-event and
2804 button-release-event.
2805
2806 * process.c: Include xgselect.h if defined (USE_GTK) ||
2807 defined (HAVE_GCONF).
2808 (wait_reading_process_output): Call xg_select for the same condition.
2809
2810 * xgselect.c (xg_select): New function to better integrate with
2811 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
2812
2813 * xgselect.h: New file, declare xg_select, xgselect_initialize.
2814
2815 * Makefile.in (XOBJ): Add xgselect.o.
2816
28172009-11-21 Andreas Schwab <schwab@linux-m68k.org>
2818
2819 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
2820 Remove ignored second argument. All callers changed.
2821 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
2822 (RE_STRING_CHAR_AND_LENGTH): Likewise.
2823 * xdisp.c (string_char_and_length): Likewise.
2824
28252009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
2826
2827 * xterm.c (x_new_font):
2828 * print.c (print_object):
2829 * cmds.c (Fself_insert_command): Move declarations before statements.
2830
28312009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
2832
2833 * s/cygwin.h: Remove unneeded linker flags.
2834
28352009-11-20 Jan Djärv <jan.h.d@swipnet.se>
2836
2837 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
2838
2839 * xsettings.h: Declare xsettings_get_system_font.
2840
2841 * xsettings.c (xsettings_get_system_font): New function.
2842 (init_gconf): No use initiating gconf unless we have Xft also.
2843 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
2844 HAVE_GCONF.
2845
2846 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
2847 add a blank entry so it doesn't collapse into nothing.
2848
28492009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
2850
2851 * lread.c (Funintern): Comment out last change.
2852
28532009-11-19 Richard Stallman <rms@gnu.org>
2854
2855 * lread.c (Funintern): Error if symbol is t or nil.
2856
28572009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
2858
2859 * insdel.c (make_gap_larger): Don't make as many assumptions about the
2860 representation of Lisp integers.
2861 Reported by MJ Chan <mjchan.inbox@gmail.com>.
2862
28632009-11-17 Andreas Schwab <schwab@linux-m68k.org>
2864
2865 * lisp.h: Remove declaration of Ffont_get_system_font.
2866 * xfns.c: Move include of "xsettings.h".
2867 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
2868
28692009-11-17 Jan Djärv <jan.h.d@swipnet.se>
2870
2871 * xsettings.c (something_changedCB, Ffont_get_system_font):
2872 Check use_system_font.
2873 (syms_of_xsettings): DEFVAR font-use-system-font.
2874
28752009-11-17 Andreas Schwab <schwab@linux-m68k.org>
2876
2877 * xfns.c (x_default_font_parameter): Remove dead assignment.
2878
2879 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
2880
28812009-11-17 Jan Djärv <jan.h.d@swipnet.se>
2882
2883 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
2884 not have FC_LCD_*. #define them if not there.
2885
2886 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
2887
2888 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
2889
2890 * xterm.c (handle_one_xevent): Call xft_settings_event for
2891 ClientMessage, PropertyNotify and DestroyNotify.
2892 (x_term_init): If we have XFT, get DPI from Xft.dpi.
2893 Call xsettings_initialize.
2894
2895 * xftfont.c (xftfont_fix_match): New function.
2896 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
2897 Call xftfont_fix_match after XftFontMatch.
2898
2899 * xfont.c (xfont_driver): Initialize all members.
2900
2901 * xfns.c (x_default_font_parameter):
2902 Try font from Ffont_get_system_font.
2903 Do not get font from x_default_parameter if we got one from
2904 Ffont_get_system_font.
2905 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
2906
2907 * w32font.c (w32font_driver): Initialize all members.
2908
2909 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
2910
2911 * lisp.h: Declare syms_of_xsettings.
2912
2913 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
2914 Handle CONFIG_CHANGED_EVENT.
2915
2916 * ftfont.c (ftfont_filter_properties): New function.
2917
2918 * frame.c (x_set_font): Remove unused variable lval.
2919
2920 * font.h (struct font_driver): Add filter_properties.
2921
2922 * font.c (font_put_extra): Don't return if val is nil, it means
2923 boolean option is off.
2924 (font_parse_fcname): Collect all extra properties in extra_props
2925 and call filter_properties for all drivers with extra_props and
2926 font as parameter.
2927 (font_open_entity): Do not use cache, it does not pick up new
2928 fontconfig settings like hinting.
2929 (font_load_for_lface): If spec had a name in it, store it in entity.
2930
2931 * emacs.c (main): Call syms_of_xsettings
2932
2933 * config.in: HAVE_GCONF is new.
2934
2935 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
2936 xsettings.o is new.
2937
29382009-11-17 Kenichi Handa <handa@m17n.org>
2939
2940 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
2941 back to the default font in case that no suitable font is found.
2942
29432009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
2944
2945 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
2946 Suggested by Chad Brown <yandros@mit.edu>.
2947 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
2948
29492009-11-16 Jan Djärv <jan.h.d@swipnet.se>
2950
2951 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
2952
29532009-11-14 Andreas Schwab <schwab@linux-m68k.org>
2954
2955 * Makefile.in: Ignore errors from mkdir when creating deps directory.
2956
29572009-11-14 Jan Djärv <jan.h.d@swipnet.se>
2958
2959 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
2960 has a parent.
2961
2962 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
2963 dependency files in deps/. Include those files into Makefile.
2964
2965 * config.in: Generated (AUTO_DEPEND).
2966
29672009-11-13 Michael Albinus <michael.albinus@gmx.de>
2968
2969 * dbusbind.c (Vdbus_registered_objects_table): Rename from
2970 Vdbus_registered_functions_table, because it contains also
2971 properties. Fix docstring.
2972 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
2973
29742009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
2975
2976 * alloc.c (mark_object): Don't reprocess marked strings.
2977 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
2978 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
2979
29802009-11-13 Kenichi Handa <handa@m17n.org>
2981
2982 * category.c (word_boundary_p): Adjust for the change of the
2983 semantics of Vword_combining_categories.
2984 (Vword_combining_categories): Describe the slight change of the
2985 semantics.
2986
29872009-11-13 Eli Zaretskii <eliz@gnu.org>
2988
2989 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
2990
2991 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
2992
29932009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
2994
2995 * xdisp.c (syms_of_xdisp): Fix typo in last change.
2996
29972009-11-12 Juanma Barranquero <lekktu@gmail.com>
2998
2999 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
3000
30012009-11-11 David Reitter <david.reitter@gmail.com>
3002
3003 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
3004 variables to fix 2009-11-09 change.
3005
30062009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
3007
3008 * process.c (ifflag_def): Make flag_sym constant.
3009 (Fnetwork_interface_info): Use a constant pointer.
3010 (ifflag_table):
3011 * xfns.c (cursor_bits):
3012 * xdisp.c (power_letter):
3013 * termcap.c (speeds, esctab):
3014 * sysdep.c (baud_convert):
3015 * keyboard.c (lispy_accent_codes, modifier_names):
3016 * image.c (xbm_format, xpm_format, pbm_format, png_format)
3017 (jpeg_format, tiff_format, gif_format, svg_format)
3018 (interlace_start, interlace_increment, gs_format):
3019 * gtkutil.c (separator_names):
3020 * fringe.c (swap_nibble):
3021 * fns.c (base64_value_to_char, base64_char_to_value):
3022 * fileio.c (make_temp_name_tbl):
3023 * coding.c (suffixes): Make constant.
3024
3025 * frame.c (make_initial_frame):
3026 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
3027 build_string.
3028 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
3029
3030 * s/freebsd.h:
3031 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
3032
3033 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
3034 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
3035
3036 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
3037 * xterm.c (syms_of_xterm):
3038 * xfaces.c (syms_of_xfaces):
3039 * xdisp.c (syms_of_xdisp):
3040 * lread.c (syms_of_lread):
3041 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
3042 build_string.
3043
3044 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
3045
30462009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
3047
3048 * fns.c (Fplist_get): Merge the active and the commented out code.
3049
30502009-11-10 Jan Djärv <jan.h.d@swipnet.se>
3051
3052 * keyboard.h: Declare timer_check.
3053
3054 * keyboard.c (timer_check_2): New function that does what the old
3055 timer_check did.
3056 (timer_check): Call timer_check_2 until -1 or a non-zero time is
3057 returned, i.e. don't return -1 with timers pending.
3058
3059 * process.c: Remove extern declaration of timer_check.
3060
3061 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
3062 even if timer_check returned -1.
3063
3064 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
3065 xg_dialog_data.
3066 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
3067 the event loop.
3068 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
3069 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
3070 Destroy the dialog after xg_dialog_run.
3071
30722009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
3073
3074 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
3075
30762009-11-10 Jan Djärv <jan.h.d@swipnet.se>
3077
3078 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
3079
30802009-11-09 Juanma Barranquero <lekktu@gmail.com>
3081
3082 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
3083
30842009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
3085
3086 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
3087 w32menu.c, and nsmenu.m.
3088 Simplify the obsolete case where position is nil.
3089 (cleanup_popup_menu): New function, moved from nsmenu.m.
3090 (struct skp): Remove slot `notreal'.
3091 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
3092 adjust callers.
3093 (single_menu_item): Adjust call to parse_menu_item.
3094 (syms_of_menu): Defsubr x-popup-menu.
3095 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
3096 (keymap_panes): Don't export any more.
3097 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
3098 (xmenu_show): Declare.
3099 * keyboard.c (parse_menu_item): Remove arg `notreal'.
3100 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
3101 * keyboard.h (parse_menu_item): Update declaration.
3102 * xmenu.c (Fx_popup_menu): Remove.
3103 (syms_of_xmenu): Don't defsubr x-popup-menu.
3104 * w32menu.c (Fx_popup_menu): Remove.
3105 (syms_of_w32menu): Don't defsubr x-popup-menu.
3106 * nsmenu.m (cleanup_popup_menu): Remove.
3107 (ns_menu_show): Rename from ns_popup_menu and remove all the code
3108 moved to menu.c's Fx_popup_menu.
3109 (Fx_popup_menu): Remove.
3110 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
3111 menu_items (it's done in menu.c already).
3112
31132009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
3114
3115 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
3116 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
3117
31182009-11-08 Chong Yidong <cyd@stupidchicken.com>
3119
3120 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
3121 xmenu_show. Hide any tooltip before opening a menu.
3122 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
3123 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
3124
31252009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
3126
3127 Let integers use up 2 tags to give them one extra bit and thus double
3128 their range.
3129 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
3130 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
3131 New macros.
3132 (enum Lisp_Type): Use them. Give explicit values.
3133 (Lisp_Type_Limit): Remove.
3134 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
3135 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
3136 Pay attention to USE_2_TAGS_FOR_INTS.
3137 (INTEGERP): Use LISP_INT_TAG_P.
3138 * fns.c (internal_equal): Simplify the default case.
3139 (sxhash): Use case_Lisp_Int.
3140 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
3141 any more.
3142 (Ftype_of): Use case_Lisp_Int.
3143 (store_symval_forwarding): Take into account the fact that Ints can
3144 now have more than one tag.
3145 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
3146 buffer_slot_type_mismatch):
3147 * xfaces.c (face_attr_equal_p):
3148 * print.c (print_object):
3149 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
3150 Use case_Lisp_Int.
3151
31522009-11-06 Eli Zaretskii <eliz@gnu.org>
3153
3154 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
3155
3156 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
3157 warning.
3158
31592009-11-06 Jan Djärv <jan.h.d@swipnet.se>
3160
3161 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
3162
3163 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
3164
3165 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
3166 ButtonPressRelease and MotionNotify (bug#4870).
3167
31682009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
3169
3170 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
3171
3172 * xterm.c (syms_of_xterm):
3173 * xselect.c (syms_of_xselect):
3174 * xmenu.c (syms_of_xmenu):
3175 * xfns.c (syms_of_xfns):
3176 * xfaces.c (syms_of_xfaces):
3177 * xdisp.c (syms_of_xdisp):
3178 * window.c (syms_of_window):
3179 * w32fns.c (syms_of_w32fns):
3180 * undo.c (syms_of_undo):
3181 * textprop.c (syms_of_textprop):
3182 * terminal.c (syms_of_terminal):
3183 * syntax.c (syms_of_syntax):
3184 * sound.c (syms_of_sound):
3185 * search.c (syms_of_search):
3186 * print.c (syms_of_print):
3187 * minibuf.c (syms_of_minibuf):
3188 * macros.c (syms_of_macros):
3189 * keymap.c (syms_of_keymap, initial_define_key)
3190 (initial_define_lispy_key):
3191 * keyboard.c (syms_of_keyboard):
3192 * insdel.c (syms_of_insdel):
3193 * image.c (syms_of_image):
3194 * fringe.c (syms_of_fringe):
3195 * frame.c (syms_of_frame):
3196 * fontset.c (syms_of_fontset):
3197 * fns.c (syms_of_fns):
3198 * fns.c (syms_of_fns):
3199 * fileio.c (syms_of_fileio):
3200 * fileio.c (syms_of_fileio):
3201 * eval.c (syms_of_eval):
3202 * doc.c (syms_of_doc):
3203 * dispnew.c (syms_of_display):
3204 * dired.c (syms_of_dired):
3205 * dbusbind.c (syms_of_dbusbind):
3206 * data.c (syms_of_data):
3207 * composite.c (syms_of_composite):
3208 * coding.c (syms_of_coding):
3209 * cmds.c (syms_of_cmds):
3210 * charset.c (define_charset_internal, syms_of_character):
3211 * ccl.c (syms_of_ccl):
3212 * category.c (syms_of_category, init_category_once):
3213 * casetab.c (syms_of_casetab):
3214 * casefiddle.c (syms_of_casefiddle):
3215 * callint.c (syms_of_callint):
3216 * bytecode.c (syms_of_bytecode):
3217 * buffer.c (keys_of_buffer, syms_of_buffer):
3218 * alloc.c (syms_of_alloc):
3219 * process.c (syms_of_process, init_process):
3220 * lread.c (syms_of_lread, init_obarray):
3221 * font.c (build_style_table):
3222 * emacs.c (syms_of_emacs, main): Replace calls to intern with
3223 intern_c_string, calls to make_pure_string with
3224 make_pure_c_string. Use pure_cons instead of Fcons.
3225
3226 * process.c (socket_options): Make it const.
3227 (set_socket_option, init_process): Use a const pointer.
3228
3229 * lread.c (intern_c_string): New function.
3230 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
3231 (defvar_int): Uset it. Make the name const char*.
3232
3233 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
3234 (defvar_int): Update prototypes.
3235 (DEFUN, EXFUN): Support for prototypes is now required.
3236 (intern_c_string): New prototype.
3237 (struct Lisp_Subr): Make symbol_name constant.
3238
3239 * font.c (struct table_entry): Remove unused member. Make NAMES
3240 constant.
3241 (weight_table, slant_table, width_table): Make constant.
3242
3243 * emacs.c (struct standard_args): Make name and longname constant.
3244
3245 * character.h (DEFSYM): Use intern_c_string.
3246
32472009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
3248
3249 * alloc.c (make_pure_c_string): New function.
3250
3251 * eval.c (Fautoload): Purecopy all arguments.
3252
32532009-11-05 Kenichi Handa <handa@m17n.org>
3254
3255 * fileio.c (Finsert_file_contents): Be sure set coding-system of
3256 the buffer in case of replace.
3257
32582009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
3259
3260 * puresize.h (BASE_PURESIZE): Increase to 1620000.
3261
32622009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
3263
3264 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
3265 when applicable (bug#4851).
3266
3267 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
3268 (P_): Support for prototypes is now required.
3269
32702009-10-31 Chong Yidong <cyd@stupidchicken.com>
3271
3272 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
3273 (Bug#4827).
3274
32752009-10-30 Eli Zaretskii <eliz@gnu.org>
3276
3277 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
3278
32792009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
3280
3281 * puresize.h (BASE_PURESIZE): Increase to 1470000.
3282
3283 * lread.c (Fload): Purecopy the file name when building
3284 Vpreloaded_file_list.
3285
32862009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
3287
3288 * w32fns.c (syms_of_w32fns): Change default value of
3289 w32-scroll-lock-modifier to nil. (Bug#2827)
3290
32912009-10-26 Juanma Barranquero <lekktu@gmail.com>
3292
3293 * minibuf.c (Fall_completions): Fix typos in docstring.
3294
32952009-10-26 Andreas Schwab <schwab@redhat.com>
3296
3297 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
3298
32992009-10-26 Juanma Barranquero <lekktu@gmail.com>
3300
3301 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
3302 For delta < 0, skip check that only makes sense when the mini-window
3303 is going to be enlarged. (Bug#4534)
3304
33052009-10-25 Chong Yidong <cyd@stupidchicken.com>
3306
3307 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
3308 string in menu maps (Bug#4471).
3309
33102009-10-24 Chong Yidong <cyd@stupidchicken.com>
3311
3312 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
3313 FRAME_NS_VIEW on terminal frames (Bug#4765).
3314
33152009-10-24 Andreas Schwab <schwab@linux-m68k.org>
3316
3317 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
3318 DBUS_TYPE_UINTnn separately to get proper sign extension.
3319
3320 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
3321 can properly handle unsigned types.
3322 (make_uid, make_gid): Remove.
3323
3324 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
3325 types again.
3326
3327 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
3328 (system_process_attributes): Likewise.
3329
33302009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
3331
3332 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
3333
3334 * eval.c (Fautoload): Purecopy the filename. Simplify.
3335
3336 * category.c (Fdefine_category): Purecopy docstring.
3337
33382009-10-23 Andreas Schwab <schwab@linux-m68k.org>
3339
3340 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
3341
3342 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
3343
33442009-10-23 Chong Yidong <cyd@stupidchicken.com>
3345
3346 * window.c (Fwindow_edges, Fwindow_pixel_edges)
3347 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
3348 (Bug#4775).
3349
33502009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
3351
3352 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
3353 (init_fileio_once):
3354 * lisp.h (init_fileio_once): Remove.
3355 * emacs.c (main): Don't call init_fileio_once.
3356
33572009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
3358
3359 * puresize.h (BASE_PURESIZE): Increase to 1430000.
3360
33612009-10-21 Andreas Schwab <schwab@linux-m68k.org>
3362
3363 * doprnt.c (doprnt): Fix overflow check.
3364
33652009-10-21 Jan Djärv <jan.h.d@swipnet.se>
3366
3367 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
3368
3369 * xterm.h (x_wait_for_event): Declare it.
3370
3371 * xterm.c (pending_event_wait): New variable.
3372 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
3373 see pending_event_wait.eventtype.
3374 (handle_one_xevent): Don't change gravity when parent changes.
3375 (x_new_font): Call change_frame_size with new rows/columns before we
3376 try to resize the frame.
3377 (x_wait_for_event): New function.
3378 (x_set_window_size_1): Don't change gravity unless change_gravity
3379 is set.
3380 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
3381 don't change frame size, instead wait for the ConfigureNotify.
3382 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
3383 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
3384 (x_initialize): Initialize pending_event_wait.
3385
3386 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
3387 size.
3388
3389 * widget.c (EmacsFrameSetValues): Add comment.
3390 (EmacsFrameSetCharSize): Just call x_set_window_size.
3391
3392 * gtkutil.c (xg_frame_set_char_size): Flush events and call
3393 x_wait_for_event.
3394 (flush_and_sync): Remove again.
3395 (xg_get_font_name): Suggest monospace if no previous font is known.
3396
33972009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
3398
3399 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
3400 8th bit, since that only made sense in the ASCII world (bug#4751).
3401
34022009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3403
3404 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
3405 processing pending events when event is filtered for input method.
3406 (Bug#3681)
3407
34082009-10-20 Juanma Barranquero <lekktu@gmail.com>
3409
3410 * fns.c: Add #endif accidentally removed in previous change.
3411
34122009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
3413
3414 * fns.c: Remove code for unsupported system: MAC_OS.
3415 * image.c: Likewise. Include setjmp.h.
3416
34172009-10-19 Jan Djärv <jan.h.d@swipnet.se>
3418
3419 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
3420 pixel -1 (bug #4742).
3421
34222009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
3423
3424 * process.c (create_pty): Remove conditionals for no longer
3425 supported systems: UNIPLUS and RTU.
3426
3427 * xterm.c:
3428 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
3429
3430 * alloc.c: Do not define struct catchtag.
3431 * eval.c: Move struct catchtag definition ...
3432 * lisp.h: ... here.
3433
3434 * image.c: Move png.h #include earlier to avoid warnings.
3435
3436 * xterm.c:
3437 * xsmfns.c:
3438 * xselect.c:
3439 * xrdb.c:
3440 * xmenu.c:
3441 * xftfont.c:
3442 * xfont.c:
3443 * xfns.c:
3444 * xfaces.c:
3445 * xdisp.c:
3446 * window.c:
3447 * widget.c:
3448 * w32xfns.c:
3449 * w32uniscribe.c:
3450 * w32term.c:
3451 * w32select.c:
3452 * w32reg.c:
3453 * w32proc.c:
3454 * w32menu.c:
3455 * w32inevt.c:
3456 * w32heap.c:
3457 * w32font.c:
3458 * w32fns.c:
3459 * w32console.c:
3460 * w32.c:
3461 * w16select.c:
3462 * vm-limit.c:
3463 * unexsol.c:
3464 * unexec.c:
3465 * unexcw.c:
3466 * unexaix.c:
3467 * undo.c:
3468 * tparam.c:
3469 * textprop.c:
3470 * terminfo.c:
3471 * terminal.c:
3472 * termcap.c:
3473 * term.c:
3474 * syntax.c:
3475 * sound.c:
3476 * sheap.c:
3477 * search.c:
3478 * scroll.c:
3479 * region-cache.c:
3480 * regex.c:
3481 * ralloc.c:
3482 * process.c:
3483 * print.c:
3484 * nsterm.m:
3485 * nsselect.m:
3486 * nsmenu.m:
3487 * nsimage.m:
3488 * nsfont.m:
3489 * nsfns.m:
3490 * msdos.c:
3491 * minibuf.c:
3492 * menu.c:
3493 * marker.c:
3494 * macros.c:
3495 * keymap.c:
3496 * keyboard.c:
3497 * intervals.c:
3498 * insdel.c:
3499 * indent.c:
3500 * gtkutil.c:
3501 * ftxfont.c:
3502 * ftfont.c:
3503 * fringe.c:
3504 * frame.c:
3505 * fontset.c:
3506 * font.c:
3507 * fns.c:
3508 * floatfns.c:
3509 * filelock.c:
3510 * fileio.c:
3511 * emacs.c:
3512 * editfns.c:
3513 * dosfns.c:
3514 * doprnt.c:
3515 * doc.c:
3516 * dispnew.c:
3517 * dired.c:
3518 * dbusbind.c:
3519 * data.c:
3520 * composite.c:
3521 * coding.c:
3522 * cmds.c:
3523 * cm.c:
3524 * chartab.c:
3525 * charset.c:
3526 * character.c:
3527 * ccl.c:
3528 * category.c:
3529 * casetab.c:
3530 * casefiddle.c:
3531 * callproc.c:
3532 * callint.c:
3533 * bytecode.c:
3534 * buffer.c:
3535 * atimer.c: Include setjmp.h. (Bug#4643)
3536
35372009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
3538
3539 Remove leftover table unibyte_to_multibyte_table.
3540 * character.c (unibyte_to_multibyte_table): Remove.
3541 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
3542 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
3543 * character.h (UNIBYTE_TO_CHAR): New macro.
3544 (MAKE_CHAR_MULTIBYTE): Use it.
3545 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
3546 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
3547 (message_dolog, set_message_1):
3548 * search.c (Freplace_match):
3549 * editfns.c (Fcompare_buffer_substrings):
3550 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
3551 (concat):
3552 * insdel.c (copy_text, count_size_as_multibyte):
3553 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
3554 * term.c (produce_glyphs):
3555 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
3556 * regex.c (RE_CHAR_TO_MULTIBYTE):
3557 * cmds.c (internal_self_insert):
3558 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
3559
3560 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
3561
35622009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
3563
3564 * puresize.h (BASE_PURESIZE): Increase to 1310000.
3565
35662009-10-16 Juanma Barranquero <lekktu@gmail.com>
3567
3568 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
3569
35702009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
3571
3572 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
3573 still needed under Tiger.
3574
3575 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
3576
3577 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
3578 __Apple__.
3579
3580 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
3581
35822009-10-15 Kenichi Handa <handa@m17n.org>
3583
3584 * print.c (print_object): Escape a symbol like "2E10" too.
3585
35862009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
3587
3588 Cleanups and changes for 64-bit compile under Snow Leopard.
3589 Based on suggestions by Erik Charlebois.
3590
3591 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
3592
3593 * nsfont.m (ns_char_width): Replace deprecated call.
3594 (ns_findfonts, nsfont_list_family): Use long format in printf, and
3595 cast argument.
3596 (nsfont_open): Use ns_char_width() everywhere.
3597 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
3598
3599 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
3600
3601 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
3602 where appropriate.
3603
3604 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
3605 where appropriate.
3606 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
3607 Use stringWithUTF8String.
3608 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
3609
3610 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
3611 Add formal protocol mention to inheritance.
3612 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
3613
3614 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
3615 Fix printf format.
3616 (ns_query_color): Use CGFloat where appropriate.
3617 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
3618 (EmacsScroller-mouseDown:): Use long format in printf, and cast
3619 argument.
3620
3621 * config.in (NS_HAVE_NSINTEGER): Drop.
3622
3623 * dbusbind.c (dbus-method-return-internal)
3624 (dbus-method-error-internal): Use long format in printf, and cast
3625 argument.
3626
3627 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
3628 in printf, and cast argument.
3629
3630 * process.c (list_processes_1): Use long format in printf, and
3631 cast argument.
3632
36332009-10-11 Glenn Morris <rgm@gnu.org>
3634
3635 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
3636
36372009-10-08 Jan Djärv <jan.h.d@swipnet.se>
3638
3639 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
3640 menu bar with a small width so it doesn't enlarge the frame.
3641
36422009-10-08 Juanma Barranquero <lekktu@gmail.com>
3643
3644 * fontset.c (Fset_fontset_font): Fix typos in error messages.
3645
36462009-10-06 Glenn Morris <rgm@gnu.org>
3647
3648 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
3649 SOME_MACHINE_LISP (this enters indirectly via DOC).
3650
36512009-10-05 Eli Zaretskii <eliz@gnu.org>
3652
3653 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
3654
36552009-10-04 Eli Zaretskii <eliz@gnu.org>
3656
3657 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
3658 Doc fix.
3659
36602009-10-03 Martin Rudalics <rudalics@gmx.at>
3661
3662 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
3663
36642009-10-02 Michael Albinus <michael.albinus@gmx.de>
3665
3666 * lisp.h (Qdelete_directory_internal): Remove, because it is not
3667 used anymore outside fileio.c.
3668
3669 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
3670
36712009-10-01 Juanma Barranquero <lekktu@gmail.com>
3672
3673 * lisp.h (Qdelete_directory_internal):
3674 Declare, instead of Qdelete_directory.
3675
3676 * w32fns.c (Fsystem_move_file_to_trash): Use it.
3677
36782009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
3679
3680 * eval.c (Fcalled_interactively_p): Add `kind' argument.
3681
36822009-10-01 Michael Albinus <michael.albinus@gmx.de>
3683
3684 * fileio.c (Fdelete_directory_internal): Rename from
3685 Fdelete_directory. It is not a command anymore. It has no file
3686 name handler.
3687
36882009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
3689
3690 * xdisp.c (get_next_display_element): Use an enum in last change.
3691
36922009-09-28 Kenichi Handa <handa@m17n.org>
3693
3694 * xdisp.c (get_next_display_element): Pay attention to
3695 unibyte_display_via_language_environment in handling
3696 Vnobreak_char_display.
3697
36982009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
3699
3700 * nsterm.h (ns_app_name): New extern variable.
3701
3702 * nsterm.m (ns_app_name): New variable.
3703 (ns_term_init): Set and use it.
3704 (ns_term_shutdown): Use it.
3705
3706 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
3707 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
3708
3709 * nsfns.m (ns_set_name_iconic, ns_set_name)
3710 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
3711 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
3712
3713 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
3714 Remove double-casting in client_data comparison.
3715
37162009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3717
3718 * keyboard.c (make_lispy_event): Remember last wheel direction.
3719 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
3720
37212009-09-26 Glenn Morris <rgm@gnu.org>
3722
3723 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
3724 internal.elc. Add term/pc-win.elc.
3725 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
3726 term/x-win.elc.
3727 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
3728 term/w32-win.elc.
3729 (NS_SUPPORT): New.
3730 (lisp): Add NS_SUPPORT.
3731 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
3732
37332009-09-25 David Reitter <david.reitter@gmail.com>
3734
3735 * nsmenu.m (EmacsMenu-clear): Recognize application menu
3736 on Mac OS X 10.6+ (bug#4513).
3737
37382009-09-24 Juanma Barranquero <lekktu@gmail.com>
3739
3740 * frame.c (xrdb_get_resource): Return nil for empty string resources;
3741 some parts of Emacs code (like font selection) don't grok them.
3742 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
3743
37442009-09-24 Andreas Schwab <schwab@redhat.com>
3745
3746 * coding.c (decode_coding_iso_2022): Fix operator precedence.
3747
37482009-09-24 Juanma Barranquero <lekktu@gmail.com>
3749
3750 * dired.c (Fdirectory_files): Fix typo in docstring.
3751
37522009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
3753
3754 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
3755 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
3756 (EmacsScroller-setPosition:portion:whole:): Remove -display call
3757 under GNUstep.
3758 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
3759
3760 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
3761 glyph advancement.
3762
37632009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
3764
3765 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
3766 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
3767
3768 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
3769 deleted (bug #4492).
3770
3771 * nsfont.m (Vns_reg_to_script): New lisp variable.
3772 (syms_of_nsfont): Declare it.
3773 (ns_registry_to_script): New function.
3774 (ns_get_req_script): Call it.
3775 (ns_findfonts): Don't give up on non-unicode registry.
3776
3777 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
3778
37792009-09-20 Tom Tromey <tromey@redhat.com>
3780
3781 * eval.c (find_handler_clause): Make stack-trace-on-error work in
3782 batch mode (bug#4228).
3783
37842009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
3785
3786 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
3787 carefully. (Bug #4339)
3788
37892009-09-18 Chong Yidong <cyd@stupidchicken.com>
3790
3791 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
3792
37932009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
3794
3795 * emacs.c (inhibit_x_resources): Update doc string for NS.
3796 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
3797 legacy code for -NXHost. Fix error printf in daemon case.
3798
3799 * nsterm.h (ns_no_defaults): Remove.
3800
3801 * nsterm.m (ns_no_defaults): Remove.
3802 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
3803 (ns_use_qd_smoothing): Remove legacy variable.
3804 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
3805 don't update the NSWindow itself.
3806 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
3807 state detection and store user rect ourselves. (Bug #3581)
3808
3809 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
3810 ns_use_qd_smoothing.
3811
3812 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
3813 platform versions. Drop support for emacs-20-style face specs.
3814 (x-close-connection): Drop PSFlush() under OS X.
3815 (x-focus-frame): Activate the app first. (Bug #4180)
3816
38172009-09-17 Juanma Barranquero <lekktu@gmail.com>
3818
3819 * emacs.c (inhibit_x_resources): New variable.
3820 (main) [HAVE_NS]: Don't process --quick command line option.
3821 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
3822
3823 * lisp.h (inhibit_x_resources): Declare it extern.
3824
3825 * w32reg.c (x_get_string_resource):
3826 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
3827
38282009-09-17 Eli Zaretskii <eliz@gnu.org>
3829
3830 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
3831 Add lisp/term/internal.elc.
3832
38332009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
3834
3835 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
3836 (bug#4461).
3837
38382009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
3839
3840 * puresize.h (BASE_PURESIZE): Increase to 1290000.
3841
3842 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
3843 (OBJECTS_MACHINE): Remove, unused.
3844
38452009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
3846
3847 * frame.c (x_get_resource_string): Remove unused.
3848
38492009-09-15 Jan Djärv <jan.h.d@swipnet.se>
3850
3851 * xterm.c (x_new_font): Call change_frame_size before calling
3852 x_set_window_size, in case frame size won't change.
3853
3854 * frame.c (x_set_font): Remove dead code.
3855
38562009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
3857
3858 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
3859
38602009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
3861
3862 * lread.c (Fload): Don't output a message after loading an obsolete
3863 package any more (done in Lisp now).
3864
38652009-09-12 Chong Yidong <cyd@stupidchicken.com>
3866
3867 * fns.c (syms_of_fns): Doc fix (Bug#4227).
3868
38692009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
3870
3871 * keymap.c (Fwhere_is_internal): Use nconc2.
3872
38732009-09-11 Alan Mackenzie <acm@muc.de>
3874
3875 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
3876 batch mode.
3877
38782009-09-11 Andreas Schwab <schwab@linux-m68k.org>
3879
3880 * xdisp.c (display_mode_element): Detect cycles.
3881
38822009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
3883
3884 * keymap.c (where_is_internal): Don't erroneously return nil right after
3885 filling the cache.
3886 (where_is_internal_1): Fix up typo.
3887
38882009-09-11 Glenn Morris <rgm@gnu.org>
3889
3890 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
3891 share a common doc-string.
3892
38932009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
3894
3895 * keymap.c (get_keymap): Return the actual keymap symbol rather than
3896 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
3897
3898 * keymap.c (QCadvertised_binding): New constant.
3899 (syms_of_keymap): Initialize it.
3900 (Fwhere_is_internal): Try and use bindings from :advertised-binding
3901 if applicable.
3902
39032009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
3904
3905 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
3906 (parse_menu_item): Streamline since bindings are recomputed all the
3907 time anyway. Don't bother checking Vdefine_key_rebound_commands any
3908 more and don't support lmenu's menu-alias any more either.
3909
3910 * keymap.c (where_is_internal_data): Make noindirect a boolean.
3911 (where_is_internal): Strip it down to only traverse the keymaps.
3912 Move the cache handling from Fwhere_is_internal to here.
3913 (Fwhere_is_internal): Move the handling of remapping and the choice of
3914 the best binding from where_is_internal to here.
3915 Unify the cached/noncached paths, so remapping is also handled
3916 correctly when the cache is used, and so the cache can be used to
3917 speed up remap-handling when applicable.
3918 Give preference to non-remapped bindings.
3919 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
3920 non-remapped bindings.
3921 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
3922 command remapping.
3923
3924 * xdisp.c (display_mode_element): Move list length limit from 50 to
3925 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
3926
39272009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
3928
3929 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
3930
39312009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
3932
3933 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
3934 (Bug#4334)
3935
3936 * keymap.c (where_is_internal): Filter out shadowed remappings.
3937 Assume that where_is_internal returns unshadowed bindings to simplify
3938 the code and get rid of the gotos. Use ASIZE.
3939
39402009-09-04 Jan Djärv <jan.h.d@swipnet.se>
3941
3942 * xterm.c (x_focus_changed): If we get a focusout and pointer
3943 is invisible, make it visible.
3944
3945 * xterm.h: Remove condition for declaration of
3946 x_*_window_to_frame.
3947
39482009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
3949
3950 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
3951 initial terminal as well.
3952
39532009-09-02 Jan Djärv <jan.h.d@swipnet.se>
3954
3955 * xterm.h: Rename x_non_menubar_window_to_frame to
3956 x_menubar_window_to_frame.
3957
3958 * xterm.c: Remove declarations also in xterm.h.
3959 (XTmouse_position): Do not return valid positions
3960 for clicks in the menubar and the toolbar for Gtk+.
3961
3962 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
3963 if the widget for the event has the same top level as a frame,
3964 return the frame.
3965 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
3966 internal windows, bug #4122.
3967 (x_non_menubar_window_to_frame): Remove.
3968
39692009-09-02 Glenn Morris <rgm@gnu.org>
3970
3971 * buffer.c (default-major-mode): Move most of the doc from here...
3972 (major-mode): ... to here.
3973
39742009-08-30 Nick Roberts <nickrob@snap.net.nz>
3975
3976 * process.c (wait_reading_process_output): Keep the descriptor
3977 when pty is used by a non-child process, e.g., in I/O buffer of
3978 GDB this allows inferior to be restarted.
3979
39802009-08-29 Eli Zaretskii <eliz@gnu.org>
3981
3982 * xdisp.c (redisplay_internal): Remove redundant test and collapse
3983 both branches into one.
3984
39852009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
3986
3987 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
3988 (main): Use enable-multibyte-characters rather than
3989 default-enable-multibyte-characters. Output a warning message when
3990 running a unibyte session.
3991
39922009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3993
3994 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
3995 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
3996 (copy_data_segment): Also copy __program_vars section.
3997 (copy_dyld_info) [LC_DYLD_INFO]: New function.
3998 (dump_it) [LC_DYLD_INFO]: Use it.
3999
4000 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
4001
40022009-08-28 Eli Zaretskii <eliz@gnu.org>
4003
4004 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
4005 $(SRC)/buildobj.h.
4006 (buildobj.h): Renamed from $(SRC)/buildobj.h.
4007 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
4008 $(SRC)/buildobj.h.
4009 (clean): Add buildobj.h.
4010
40112009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
4012
4013 * print.c (print_object): Set escapeflag to 1 when printing
4014 hashtable keys and values.
4015
40162009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
4017
4018 * lread.c (read_integer): Use doubles (and potentially return a float
4019 number) as we do in string-to-number.
4020 (read1): Use strtol to read integers, signal errors on strtol's
4021 overflow and use floats if strtol's output is too large for
4022 Elisp integers.
4023
40242009-08-27 Eli Zaretskii <eliz@gnu.org>
4025
4026 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
4027 (make-buildobj-SH): Fix last change.
4028 (SRC): Move to before where it's first used.
4029
40302009-08-27 Kenichi Handa <handa@m17n.org>
4031
4032 * process.c (send_process): Use encode_coding_object instead of
4033 encode_coding_string to perform eol-conversion even if the string
4034 is unibyte.
4035
4036 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
4037 character.
4038
4039 * cmds.c (Fself_insert_command): Avoid unnecessay
4040 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
4041
40422009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
4043
4044 * callproc.c (Fcall_process): Remove always true #if.
4045
4046 * lisp.h: Replace #if 0 code for checking with text pointing to
4047 the --enable-checking configure flag.
4048
4049 * emacs.c (main): Mention the --enable-profiling configure flag
4050 instead of using CFLAGS.
4051
40522009-08-26 Ken Raeburn <raeburn@raeburn.org>
4053
4054 * Makefile.in (buildobj.h): New target.
4055 (doc.o): Depend on it.
4056 (temacs${EXEEXT}): Don't generate buildobj.lst.
4057 (mostlyclean): Delete buildobj.h, not buildobj.lst.
4058 * makefile.w32-in ($(SRC)/buildobj.h): New target.
4059 ($(BLD)/doc.$(O)): Depend on it.
4060 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
4061 provided by Eli Zaretskii.)
4062 ($(TEMACS)): Don't generate buildobj.lst.
4063 * doc.c: Include buildobj.h.
4064 (buildobj): New static variable.
4065 (Fsnarf_documentation): Use it, instead of opening and reading
4066 buildobj.lst.
4067
40682009-08-25 Michael Albinus <michael.albinus@gmx.de>
4069
4070 * dbusbind.c (Fdbus_call_method)
4071 (Fdbus_call_method_asynchronously): Use English numeric format for
4072 timeout values in doc string.
4073
40742009-08-25 Kenichi Handa <handa@m17n.org>
4075
4076 * alloc.c (mark_char_table): New function.
4077 (mark_object): Use mark_char_table for a char-table.
4078
4079 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
4080 (CHAR_TABLE_REF): Use it.
4081
40822009-08-23 Ken Raeburn <raeburn@raeburn.org>
4083
4084 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
4085 before invoking the newly build emacs to check for load-path
4086 shadowing.
4087
40882009-08-22 Glenn Morris <rgm@gnu.org>
4089
4090 * Makefile.in (bootstrap_exe): New variable.
4091 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
4092 Use ${bootstrap_exe}.
4093
40942009-08-22 Eli Zaretskii <eliz@gnu.org>
4095
4096 * coding.h (encode_coding_string): Don't encode unibyte strings.
4097 (Bug#4047)
4098
40992009-08-22 Michael Albinus <michael.albinus@gmx.de>
4100
4101 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
4102
4103 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
4104 intended as hotfix only.
4105 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
4106
41072009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4108
4109 * nsterm.m (ns_get_color): Update documentation properly for last
4110 change, and clean up loose ends in the code left by it. Fix
4111 longstanding bug with 16-bit hex parsing, and add support for
4112 yet another X11 format (rgb:r/g/b) for compatibility.
4113 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
4114 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
4115
41162009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
4117
4118 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
4119
41202009-08-20 Michael Albinus <michael.albinus@gmx.de>
4121
4122 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
4123 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
4124 (xd_initialize, xd_pending_messages): Check, whether
4125 $DBUS_SESSION_BUS_ADDRESS is set.
4126
41272009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4128
4129 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
4130
4131 * nsterm.m (ns_get_color): Remove incompatible color formats again.
4132
41332009-08-20 Glenn Morris <rgm@gnu.org>
4134
4135 * emacs.c (system-type): Doc fix.
4136
41372009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
4138
4139 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
4140 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
4141
41422009-08-18 Michael Albinus <michael.albinus@gmx.de>
4143
4144 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
4145 New functions.
4146 (xd_initialize): Revert change from 2009-08-16.
4147
41482009-08-18 Kenichi Handa <handa@m17n.org>
4149
4150 * fontset.c (Ffontset_font): If a nil element is found in a
4151 font-group vector, return nil.
4152
41532009-08-17 Chong Yidong <cyd@stupidchicken.com>
4154
4155 * process.c (status_notify): Don't perform redisplay.
4156 (Fdelete_process, list_processes_1, process_send_signal):
4157 Expliticly perform redisplay.
4158 (wait_reading_process_output): Always check process status, but
4159 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
4160
41612009-08-17 Ken Raeburn <raeburn@raeburn.org>
4162
4163 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
4164 (XFLOAT_INIT): New macro for storing a float value.
4165 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
4166 * fns.c (sxhash): Copy out the value of a float in order to
4167 examine its bytes.
4168 * dbusbind.c (xd_append_arg): Likewise.
4169
4170 * emacs.c (main): Don't call syms_of_data twice.
4171
41722009-08-16 Michael Albinus <michael.albinus@gmx.de>
4173
4174 * dbusbind.c (xd_initialize): Add connection file descriptor to
4175 input_wait_mask, in order to let select() detect, whether a new
4176 message has been arrived.
4177 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
4178
41792009-08-15 Michael Albinus <michael.albinus@gmx.de>
4180
4181 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
4182 New functions.
4183
4184 * lisp.h (xd_pending_messages): Declare.
4185
4186 * keyboard.c (readable_events): Call xd_pending_messages.
4187
41882009-08-15 Chong Yidong <cyd@stupidchicken.com>
4189
4190 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
4191
4192 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
4193
4194 * buffer.c (set_buffer_internal_1)
4195 (swap_out_buffer_local_variables): Check for unbound local
4196 variables (Bug#4138).
4197
41982009-08-14 Eli Zaretskii <eliz@gnu.org>
4199
4200 * process.c (create_pty): Fix last change.
4201
42022009-08-13 Chong Yidong <cyd@stupidchicken.com>
4203
4204 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
4205 (xbm_load_image): Caller changed.
4206 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
4207
42082009-08-13 Nick Roberts <nickrob@snap.net.nz>
4209
4210 * process.c (create_pty): New function.
4211 (Fstart_process): Use it to allow Emacs to just associate a pty
4212 with the buffer. See associated change in gdb-mi.el.
4213 (list_processes_1): Deal with no program name.
4214 (start_process_unwind): Use pid == -2 to mean no process.
4215
42162009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
4217
4218 * cmds.c (nonundocount): New global variable.
4219 (keys_of_cmds): Initialize it.
4220 (Fself_insert_command): Use it to combine upto 20 sequential chars
4221 into a single undo entry, just like the Qself_insert_command code in
4222 keyboard.c does.
4223 Call frame_make_pointer_invisible, also like the Qself_insert_command
4224 code in keyboard.c does.
4225 * keyboard.c (command_loop_1): Use the new global nonundocount rather
4226 than its own local replacement for it.
4227
42282009-08-10 Ken Raeburn <raeburn@raeburn.org>
4229
4230 * fns.c (concat): Don't re-set string length to its current value.
4231
4232 * coding.h (decode_coding_string, encode_coding_string):
4233 Use SBYTES macro.
4234
4235 * doprnt.c (doprnt_lisp): Delete unused function.
4236 (doprnt): Merge with doprnt1, discarding lispstrings code.
4237 * lisp.h (doprnt_lisp): Don't declare.
4238
42392009-08-07 Juri Linkov <juri@jurta.org>
4240
4241 * puresize.h (BASE_PURESIZE): Increase to 1270000.
4242
42432009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
4244
4245 * print.c (syms_of_print): Undo previous change.
4246
42472009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
4248
4249 * lread.c (read1, syms_of_lread): Read hashtables back from the
4250 readable format.
4251
4252 * print.c (print_preprocess, print_object): Print hashtables fully
4253 and readably.
4254 (syms_of_print): Provide 'hashtable-print-readable.
4255
42562009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
4257
4258 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
4259 no family set.
4260 (nsfont_open): Handle case when entity has no family.
4261
42622009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
4263
4264 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
4265 element, not a list, for match case.
4266
42672009-07-28 Kenichi Handa <handa@m17n.org>
4268
4269 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
4270 rigidly.
4271
4272 * xfont.c (xfont_list_pattern): Don't ignore the return value of
4273 font_parse_xlfd. Check font properties more rigidly.
4274
42752009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
4276
4277 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
4278 bsd-common.h.
4279
42802009-07-27 Kenichi Handa <handa@m17n.org>
4281
4282 * xfaces.c (face_with_height): Call font_clear_prop.
4283
42842009-07-26 Chong Yidong <cyd@stupidchicken.com>
4285
4286 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
4287
4288 * xterm.c (x_term_init): Use Qx.
4289
4290 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
4291
4292 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4293 (ns_get_color): Revert 2009-07-16 change.
4294
42952009-07-25 Eli Zaretskii <eliz@gnu.org>
4296
4297 * lread.c (syms_of_lread) <force_load_messages>: New variable.
4298 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
4299
43002009-07-25 Ken Raeburn <raeburn@raeburn.org>
4301
4302 * coding.h (decode_coding_string, encode_coding_string):
4303 Use SCHARS macro.
4304
4305 * lread.c: Rewrite 2009-07-21 changes.
4306 (load_depth): Delete.
4307 (Qload_in_progress): New variable.
4308 (load_unwind): Don't reference load_depth or load_in_progress.
4309 (Fload): Likewise; specbind Qload_in_progress instead.
4310 (init_lread): Don't initialize load_depth.
4311 (syms_of_lread): Initialize and protect Qload_in_progress.
4312
43132009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4314
4315 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
4316
43172009-07-23 Yavor Doganov <yavor@gnu.org>
4318
4319 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
4320
43212009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
4322
4323 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
4324 Bugs 3792, 3720, 2402.
4325 (ns_lookup_indexed_color): Check for bad index.
4326 (ns_index_color): Init unused slot to 0.
4327 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
4328 Bug 3714, possibly 3082.
4329
43302009-07-22 Jason Rumney <jasonr@gnu.org>
4331
4332 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
4333 Position IME window at cursor (Bug#2570).
4334 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
4335 (globals_of_w32fns): Dynamically load functions required above.
4336
4337 * w32term.c (w32_draw_window_cursor): Send message to reposition
4338 any IME window.
4339
43402009-07-21 Chong Yidong <cyd@stupidchicken.com>
4341
4342 * fileio.c: Revert 2009-07-16 changes.
4343 (Vauto_save_include_big_deletions): New variable.
4344 (Fdo_auto_save): Disable auto-save only if
4345 auto-save-include-big-deletions is nil.
4346
43472009-07-21 Chong Yidong <cyd@stupidchicken.com>
4348
4349 * xdisp.c (move_it_to): For continued lines ending in a tab, take
4350 the overflowed pixels into account (Bug#3879).
4351
43522009-07-21 Ken Raeburn <raeburn@raeburn.org>
4353
4354 * lread.c (load_depth): New variable.
4355 (Fload, load_unwind, init_lread): Set it to the load recursion
4356 depth; set load_in_progress as a simple boolean based on the
4357 current load_depth. (Bug#3892)
4358
43592009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4360
4361 * nsfont.m (ns_has_attribute): Remove.
4362 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
4363
43642009-07-18 Juri Linkov <juri@jurta.org>
4365
4366 * process.c (Fset_process_query_on_exit_flag): Mention killing
4367 a buffer in docstring.
4368
43692009-07-17 Kenichi Handa <handa@m17n.org>
4370
4371 * casetab.c (shuffle): Fix the logic of setting up the cycle.
4372
43732009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4374
4375 * nsfns.m (Fns_set_alpha): Remove function.
4376 (syms_of_nsfns): Don't defsubr it.
4377
4378 * nsterm.m (ns_get_color): Remove incompatible color formats.
4379 (ns_color_to_lisp): Generate #rrggbb color format string.
4380
43812009-07-16 Richard Stallman <rms@gnu.org>
4382
4383 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
4384 (Fset_buffer_auto_saved): Handle save_length = -2.
4385
43862009-07-16 Chong Yidong <cyd@stupidchicken.com>
4387
4388 * xterm.c (Qx_gtk_map_stock): New var.
4389
4390 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
4391 of calling intern each time.
4392
43932009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4394
4395 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
4396 does tiling.
4397
4398 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
4399
44002009-07-14 Kenichi Handa <handa@m17n.org>
4401
4402 * font.c (font_vconcat_entity_vectors): New function.
4403 (struct font_sort_data): New member font_driver_preference.
4404 (font_compare): Check font_driver_preference.
4405 (font_sort_entities): The format of the first argument changed.
4406 (font_delete_unmatched): Likewise.
4407 (font_list_entities): The return type changed.
4408 (font_select_entity): The format of the second argument changed.
4409 (font_find_for_lface): Adjuste for the above changes.
4410 Don't suppress the checking of C even if the repertory supports it.
4411 (Flist_fonts): Adjust for the above changes.
4412
4413 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
4414 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
4415 Reject a font who has adstyle property that is different from a
4416 langname derived from registry property.
4417 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
4418
44192009-07-13 Eli Zaretskii <eliz@gnu.org>
4420
4421 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
4422 local copy of dirfilename.
4423
44242009-07-13 Kenichi Handa <handa@m17n.org>
4425
4426 * chartab.c (sub_char_table_ref_and_range): Fix the range check
4427 against max_char.
4428
4429 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
4430 calling XSYMBOL (sym).
4431
44322009-07-11 Eli Zaretskii <eliz@gnu.org>
4433
4434 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
4435 New function.
4436 (directory_files_internal) [WINDOWSNT]:
4437 Bind w32-get-true-file-attributes to either t or nil, depending whether
4438 the filesystem of the directory is fast or slow.
4439
4440 * w32.c (logon_network_drive): Don't assume PATH is an absolute
4441 file name.
4442 (is_slow_fs): New function.
4443 (stat): Use it to determine whether to issue more system calls to
4444 get accurate file attributes, when w32-get-true-file-attributes is
4445 `local'.
4446
44472009-07-10 Jan Djärv <jan.h.d@swipnet.se>
4448
4449 * xfns.c (Fx_select_font): Remember last font selected in
4450 x_last_font_name and use that the next time. Also try the frame
4451 parameter font-parameter as default to the font dialog.
4452
44532009-07-10 Kenichi Handa <handa@m17n.org>
4454
4455 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
4456
44572009-07-09 Eli Zaretskii <eliz@gnu.org>
4458
4459 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
4460
4461 * w32.c (stat): Treat UNC file names as residing on remote
4462 drives. (Bug#3542)
4463
44642009-07-09 Kenichi Handa <handa@m17n.org>
4465
4466 * fontset.c (fontset_find_font): Fix previous change.
4467
44682009-07-08 Michael Albinus <michael.albinus@gmx.de>
4469
4470 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
4471 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
4472 error flag.
4473
44742009-07-08 Kenichi Handa <handa@m17n.org>
4475
4476 * fontset.c (fontset_find_font): Fix the logic of handling
4477 charset_matched.
4478 (font_for_char): Delete unused var.
4479 (generate_ascii_font_name): Delete it.
4480
4481 * coding.h (JIS_TO_SJIS2): Fix the code range check.
4482
4483 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
4484 (encode_coding_sjis): Fix the code range check.
4485
44862009-07-07 Chong Yidong <cyd@stupidchicken.com>
4487
4488 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
4489 (Fexpand_file_name): Copy string data properly (Bug#3772).
4490
44912009-07-07 Jan Djärv <jan.h.d@swipnet.se>
4492
4493 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
4494 first MapNotify.
4495
44962009-07-07 Kenichi Handa <handa@m17n.org>
4497
4498 * character.h (unibyte_has_multibyte_table): Delete extern.
4499 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
4500
4501 * charset.c (Fset_charset_priority): Update charset_unibyte.
4502 (syms_of_charset): Initialize charset_unibyte.
4503
4504 * character.c (unibyte_has_multibyte_table): Delete it.
4505 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
4506 charset_unibyte.
4507 (multibyte_char_to_unibyte_safe): Likewise.
4508 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
4509
4510 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
4511 (x_produce_glyphs): Likewise.
4512
4513 * .gdbinit (xcharset): Fix the treating $arg0.
4514
45152009-07-04 Eli Zaretskii <eliz@gnu.org>
4516
4517 Emulation of `getloadavg' on MS-Windows.
4518 * w32.c: Include float.h.
4519 (g_b_init_get_native_system_info, g_b_init_get_system_times)
4520 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
4521 (get_native_system_info, get_system_times): New functions.
4522 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
4523 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
4524 (globals_of_w32): Initialize g_b_init_get_native_system_info,
4525 g_b_init_get_system_times, and num_of_processors.
4526
45272009-07-03 Jason Rumney <jasonr@gnu.org>
4528
4529 * w32term.c (w32_initialize): Use standard types.
4530
45312009-07-03 Eli Zaretskii <eliz@gnu.org>
4532
4533 * dired.c (Ffile_attributes): Decode user and group names by the
4534 locale's encoding. (Bug#3443)
4535
45362009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
4537
4538 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
4539 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
4540
4541 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
4542
4543 * term.c (init_tty): Remove spurious #ifdef.
4544
4545 * m/mips.h: Mention this file is also used for netbsd.
4546 * m/pmax.h: Remove file.
4547
45482009-07-03 Jan Djärv <jan.h.d@swipnet.se>
4549
4550 * xterm.h (struct x_display_info): Add invisible_cursor.
4551 (struct x_output): Add current_cursor.
4552
4553 * xterm.c (XTtoggle_invisible_pointer): New function.
4554 (x_define_frame_cursor): Don't define cursor if invisible or the
4555 same as before. Set current_cursor.
4556 (x_create_terminal): Set toggle_invisible_pointer_hook.
4557
4558 * xfns.c (make_invisible_cursor): New function.
4559 (x_set_mouse_color): Call make_invisible_cursor.
4560 Set current_cursor.
4561 (x_window): Set current_cursor.
4562
4563 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
4564
4565 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
4566 inserting a character.
4567 (read_avail_input): Call frame_make_pointer_visible.
4568
4569 * frame.c (Vmake_pointer_invisible): New variable.
4570 (frame_make_pointer_invisible, frame_make_pointer_visible):
4571 New functions.
4572 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
4573
4574 * frame.h: Declare frame_make_pointer_invisible and
4575 frame_make_pointer_visible.
4576 (struct frame): Add pointer_invisible.
4577
45782009-07-02 Jan Djärv <jan.h.d@swipnet.se>
4579
4580 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
4581 frame isn't visible.
4582 (xg_frame_resized): If width/height is -1, get size of window
4583 from X server.
4584
4585 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
4586 for MapNotify.
4587
4588 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
4589 here or call change_frame_size. Just call flush_and_sync.
4590 (flush_and_sync): Reintroduce.
4591
45922009-07-01 Jan Djärv <jan.h.d@swipnet.se>
4593
4594 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
4595
4596 * xterm.c (x_handle_net_wm_state): Also look for sticky.
4597 (x_term_init): Initialize Xatom_net_wm_state_sticky.
4598
4599 * frame.h: Declare Qsticky.
4600
4601 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
4602
4603 * nsfns.m (ns_frame_parm_handlers): Ditto.
4604
4605 * frame.c: Declare Qsticky.
4606 (frame_parms): Add sticky.
4607
4608 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
4609
4610 * xterm.h: Declare x_set_sticky.
4611
4612 * xterm.c (x_set_sticky): New function.
4613
4614 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
4615 (xg_tool_bar_menu_proxy): Attach enter/leave events to
4616 xg_tool_bar_proxy_help_callback.
4617
4618 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
4619
4620 * frame.c: Qmaximized is new.
4621 (x_set_frame_parameters): Do not handle fullscreen specially.
4622 Only set width and height if explicitly set.
4623 (x_set_fullscreen): Handle Qmaximized.
4624 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
4625 (syms_of_frame): Initialize Qmaximized.
4626
4627 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
4628 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
4629
4630 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
4631 for Expose event. Add call to x_check_fullscreen for MapNotify event.
4632 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
4633 set gravity to NorthWestGravity when USE_GTK.
4634 (set_wm_state): New function.
4635 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
4636 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
4637 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
4638 or the case when no window manager is running. That means remove calls
4639 to x_real_positions and x_fullscreen_adjust.
4640
4641 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
4642 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
4643 flush_and_sync.
4644 (xg_height_changed): New function.
4645 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
4646 and gtk_window_set_policy. Set frame gravity after parsing the
4647 geometry string.
4648 (xg_update_frame_menubar, free_frame_menubar)
4649 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
4650 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
4651 Remove calls to xg_frame_set_char_size.
4652
46532009-07-01 Kenichi Handa <handa@m17n.org>
4654
4655 * keyboard.c (decode_keyboard_code): New function.
4656 (tty_read_avail_input): Decode the input bytes if necessary.
4657
4658 * coding.c (setup_coding_system):
4659 Initialize coding->carryover_bytes to 0.
4660 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
4661 use Qno_conversion.
4662
46632009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4664
4665 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
4666
46672009-06-30 Chong Yidong <cyd@stupidchicken.com>
4668
4669 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
4670
46712009-06-30 Jason Rumney <jasonr@gnu.org>
4672
4673 * w32term.c (w32_initialize): Use GetModuleHandle for library that
4674 is already loaded.
4675 Set user model ID if supported (bug#1849).
4676
46772009-06-29 Jim Meyering <meyering@redhat.com>
4678
4679 Remove useless if-before-xfree test.
4680 * nsfont.m (nsfont_close): Remove useless test.
4681 * term.c (delete_tty): Likewise.
4682 * w32.c (system_process_attributes): Likewise.
4683 * w32font.c (w32font_close): Likewise.
4684 * xfaces.c (x_free_gc): Likewise.
4685 * xselect.c (buffer): Likewise.
4686
46872009-06-28 Andreas Schwab <schwab@linux-m68k.org>
4688
4689 * process.c (send_process): Keep decoded string in a local
4690 variable and protect it from GC. (Bug#3521)
4691
46922009-06-28 Eli Zaretskii <eliz@gnu.org>
4693
4694 * term.c (create_tty_output) [MSDOS]: #ifdef away.
4695 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
4696
46972009-06-28 Chong Yidong <cyd@stupidchicken.com>
4698
4699 * xdisp.c (start_display, handle_face_prop)
4700 (move_it_vertically_backward, cursor_row_fully_visible_p)
4701 (redisplay_window, try_window_id, produce_image_glyph):
4702 Delete some #ifdef-ed out code chunks that are now obsolete.
4703
4704 * xterm.c (x_update_window_begin, x_new_focus_frame)
4705 (x_scroll_bar_handle_click, handle_one_xevent)
4706 (handle_one_xevent, XTread_socket, x_focus_on_frame)
4707 (x_make_frame_visible, x_make_frame_invisible)
4708 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
4709 code chunks that are now obsolete.
4710
47112009-06-28 Michael Albinus <michael.albinus@gmx.de>
4712
4713 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
4714 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
4715 for hours, when optimzation is enabled.
4716 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
4717 (xd_read_message): Make them static.
4718
47192009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
4720
4721 * term.c (turn_on_face): Allow simultaneously bold and dim
4722 terminal faces (Bug#3530).
4723
47242009-06-27 Chong Yidong <cyd@stupidchicken.com>
4725
4726 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
4727
4728 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
4729 truncation glyphs (Bug#3686).
4730
47312009-06-27 Glenn Morris <rgm@gnu.org>
4732
4733 * m/pmax.h: Restore file, with only netbsd portions.
4734
47352009-06-26 David Reitter <david.reitter@gmail.com>
4736
4737 * nsterm.m (keydown): Avoid infinite loop.
4738
47392009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
4740
4741 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
4742 the arg FORCE_SYMBOL.
4743
47442009-06-25 Kenichi Handa <handa@m17n.org>
4745
4746 * fontset.c (fontset_find_font): When a usable rfont_def is found
4747 in a fallback font-group, make it the first element of the group.
4748
47492009-06-24 Chong Yidong <cyd@stupidchicken.com>
4750
4751 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
4752
47532009-06-24 Kenichi Handa <handa@m17n.org>
4754
4755 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
4756 set for C.
4757 (fontset_font): Record the availability of a font for C both in
4758 the realized fontsets of the current one and the default one.
4759
47602009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
4761
4762 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
4763 conditional, it is always defined on AIX.
4764
47652009-06-23 Miles Bader <miles@gnu.org>
4766
4767 * window.c (Vrecenter_redisplay): New variable.
4768 (syms_of_window): Initialize it.
4769 (Qtty): New extern declaration.
4770 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
4771
47722009-06-23 Jim Meyering <meyering@redhat.com>
4773
4774 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
4775 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
4776 pointer dereferences are guaranteed to be valid.
4777
47782009-06-23 Kenichi Handa <handa@m17n.org>
4779
4780 * emacs.c (main): Call init_font ().
4781
4782 * font.h (Vfont_log): Extern it.
4783 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
4784
4785 * font.c (font_sort_entities, font_list_entities)
4786 (font_matching_entity, font_open_entity)
4787 (font_close_object): Change font_add_log to FONT_ADD_LOG.
4788 (Vfont_log): Delete static.
4789 (font_log_env_checked): Delete this variable.
4790 (font_add_log): Don't check font_log_env_checked.
4791 (font_deferred_log): Check Vfont_log.
4792 (init_font): New function.
4793
4794 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
4795
4796 * w32font.c: Change font_add_log to FONT_ADD_LOG.
4797
4798 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
4799
4800 * xfont.c: Change font_add_log to FONT_ADD_LOG.
4801
4802 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
4803 (face_for_char): Don't call font_deferred_log here.
4804 (font_for_char): Likewise.
4805
48062009-06-22 Chong Yidong <cyd@stupidchicken.com>
4807
4808 * w32term.c (x_draw_glyph_string): Use the glyph string's width
4809 rather than its background_width for drawing the overline and
4810 underline (Bug#489).
4811
4812 * xterm.c (x_draw_glyph_string): Use the glyph string's width
4813 rather than its background_width for drawing the overline and
4814 underline (Bug#489).
4815 (xg_default_icon_file): New variable.
4816 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
4817 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
4818
4819 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
4820 (load_overlay_strings): Remove externs.
4821 (fast_find_position): Function deleted.
4822 (mouse_face_from_buffer_pos): New function, based on
4823 fast_find_position. Correctly handle before-strings,
4824 display-strings, and after-strings (Bug#1220).
4825 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
4826
48272009-06-21 Chong Yidong <cyd@stupidchicken.com>
4828
4829 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4830 (move_it_in_display_line_to, move_it_in_display_line_to)
4831 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
4832
48332009-06-21 Chong Yidong <cyd@stupidchicken.com>
4834
4835 * Branch for 23.1.
4836
48372009-06-21 Jason Rumney <jasonr@gnu.org>
4838
4839 * w32term.c (keyboard_codepage): New static variable.
4840 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
4841 (w32_read_socket) [WM_CHAR]: Use it to decode character
4842 input (bug#3237).
4843 (w32_initialize): Initialize it.
4844 (codepage_for_locale): New function.
4845
48462009-06-20 Ken Raeburn <raeburn@raeburn.org>
4847
4848 * process.c (status_message): Pass Faset index argument as a lisp
4849 object, so as to work with USE_LISP_UNION_TYPE.
4850
48512009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4852
4853 * coding.c (Ffind_coding_systems_region_internal):
4854 Cache checked characters.
4855
48562009-06-18 Kenichi Handa <handa@m17n.org>
4857
4858 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
4859
48602009-06-18 Andreas Schwab <aschwab@redhat.com>
4861
4862 * xdisp.c (redisplay_internal): Check that the frame is still
4863 live after redisplay of its windows.
4864 (redisplay_windows): Check that the window is still live.
4865
48662009-06-17 Andreas Schwab <schwab@linux-m68k.org>
4867
4868 * coding.c (detect_coding_utf_16): Fix previous change.
4869
48702009-06-16 Kenichi Handa <handa@m17n.org>
4871
4872 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
4873 UTF-16 by checking the dispersion of Eth and Oth bytes.
4874
48752009-06-15 Andreas Schwab <schwab@linux-m68k.org>
4876
4877 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
4878
48792009-06-15 Kenichi Handa <handa@m17n.org>
4880
4881 * process.c (status_message): Fix previous change. Be sure to
4882 decode a localized string.
4883
48842009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4885
4886 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
4887 add comment explaining why.
4888
48892009-06-14 Sidney Markowitz <sidney@sidney.com>
4890
4891 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
4892
48932009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
4894
4895 * nsfont.m (ns_attribute_value): Remove.
4896 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
4897 (ns_has_attribute): Shrink the normal range.
4898 (ns_findfonts): Don't worry about requested spec in determining
4899 need for synthItal.
4900 (ns_get_covering_families): Retain scriptToFamilies.
4901
49022009-06-14 Seiji Zenitani <zenitani@mac.com>
4903
4904 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
4905
49062009-06-11 Kenichi Handa <handa@m17n.org>
4907
4908 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
4909 overhang for the static composition case.
4910
49112009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4912
4913 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
4914 overhang for the automatic composition case.
4915
4916 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
4917 composition case.
4918
49192009-06-10 Chong Yidong <cyd@stupidchicken.com>
4920
4921 * xdisp.c (get_next_display_element): When handling wrap-prefix
4922 and line-prefix, treat \n as a control character (bug#3502).
4923
49242009-06-10 Kenichi Handa <handa@m17n.org>
4925
4926 * font.c (font_parse_family_registry): Fix for one-char foundry.
4927 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
4928
49292009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
4930
4931 * process.c (status_message): Fix handling of multibyte signal
4932 string (Bug#3499).
4933
49342009-06-09 Jim Meyering <meyering@redhat.com>
4935
4936 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
4937 color name is missing.
4938
49392009-06-09 Kenichi Handa <handa@m17n.org>
4940
4941 * charset.c (Fmap_charset_chars): In docstring, state clearly that
4942 FROM-CODE and TO-CODE are codepoints of CHARSET.
4943
49442009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
4945
4946 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
4947
49482009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
4949
4950 Changes to support :script/:lang/:otf in NS font driver.
4951 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
4952 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
4953 indicate not part of font driver interface, and change callers.
4954 (ns_get_family): Remove pointless null check.
4955 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
4956 ns_spec_to_descriptor, ns_descriptor_to_entity.
4957 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
4958 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
4959 (ns_spec_to_descriptor, ns_descriptor_to_entity)
4960 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
4961 (ns_get_req_script, ns_accumulate_script_ranges)
4962 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
4963 New functions.
4964 (nsfont_list, nsfont_match): Use ns_findfonts.
4965 (nsfont_open): Use font descriptor instead of traits.
4966 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
4967 (dump_glyphstring): Rename to ns_dump_glyphstring.
4968
4969 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
4970
4971 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
4972
4973 * fontset.c (fontset_from_font): Remove NS-specific code.
4974
49752009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
4976
4977 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
4978 nonactive windows.
4979
49802009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
4981
4982 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
4983
49842009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
4985
4986 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
4987
49882009-06-07 Chong Yidong <cyd@stupidchicken.com>
4989
4990 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
4991 account for the overflowing of newlines into the last glyph on the
4992 display line (Bug#3482).
4993
49942009-06-05 David Reitter <david.reitter@gmail.com>
4995
4996 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
4997 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
4998 Fns_selection_exists_p, Fns_selection_owner_p.
4999
50002009-06-03 Jason Rumney <jasonr@gnu.org>
5001
5002 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
5003 available. (Bug#3379)
5004
50052009-05-29 Kenichi Handa <handa@m17n.org>
5006
5007 * coding.c (get_translation_table):
5008 Check Venable_character_translation.
5009
50102009-05-26 David Reitter <david.reitter@gmail.com>
5011
5012 * nsterm.m (ns_raise_frame): Only raise frame if visible.
5013 (x_make_frame_visible): Move frame to front rather than calling
5014 ns_raise_frame().
5015 (keyDown:): Do not swallow events that aren't re-sent if frame
5016 isn't key window.
5017 (drawRect:): Do not set visibility/iconified flags because
5018 drawRect may be called by NSView even if the frame is hidden.
5019
5020 * nsfns.m (Fx_create_frame): Follow other ports in
5021 determining visibility; default to t. Ensure async_visible is set.
5022
50232009-05-23 Eli Zaretskii <eliz@gnu.org>
5024
5025 * dired.c (Ffile_attributes): Doc fix.
5026
50272009-05-22 Chong Yidong <cyd@stupidchicken.com>
5028
5029 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
5030
50312009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
5032
5033 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
5034 and xfont_scratch_props.
5035 (syms_of_xfont): Do it here instead.
5036 (xfont_find_ccl_program): Delete, unused.
5037 (xfont_open): Delete unused var `i'.
5038
50392009-05-21 Kenichi Handa <handa@m17n.org>
5040
5041 * fontset.c (Qlatin): Don't make it static.
5042
5043 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
5044 New functions.
5045 (xfont_scripts_cache, xfont_scratch_props): New variables.
5046 (Qlatin, Vscalable_fonts_allowed): Extern it.
5047 (xfont_list_pattern): Argument changed. Callers changed.
5048 Check Vscalable_fonts_allowed. Check the support of a script.
5049 (xfont_list): Don't reject a font spec with :script property.
5050 (xfont_has_char): Fix setting of encoding.
5051 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
5052 xfont_scratch_props.
5053
50542009-05-19 Kenichi Handa <handa@m17n.org>
5055
5056 * font.c (font_sort_entities): Rename from font_sort_entites.
5057 Callers changed.
5058
50592009-05-18 Kenichi Handa <handa@m17n.org>
5060
5061 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
5062
50632009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
5064
5065 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
5066 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
5067
50682009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5069
5070 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
5071 (x_delete_terminal): Dissociate resource database from display and
5072 then call XrmDestroyDatabase before closing display.
5073
50742009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
5075
5076 * nsterm.m (ns_read_socket): Remove unused variable.
5077 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
5078 whether selected frame is viable before raising it (based on patch
5079 by David Reitter), and improve commentary.
5080 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
5081
50822009-05-15 Kenichi Handa <handa@m17n.org>
5083
5084 * font.c (Ffont_spec): Check arguments.
5085
50862009-05-14 Chong Yidong <cyd@stupidchicken.com>
5087
5088 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
5089 weight when testing attributes (Bug#3282).
5090
50912009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5092
5093 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
5094 what we expect to get in the next ConfigureNotify event.
5095
5096 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
5097 before Xft one (Bug#1696).
5098
50992009-05-07 David Reitter <david.reitter@gmail.com>
5100
5101 * nsfns.m (Fx_display_planes): Compute bitplanes using
5102 NSBitsPerPixelFromDepth (Bug#3207).
5103
51042009-05-10 Chong Yidong <cyd@stupidchicken.com>
5105
5106 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
5107
51082009-05-10 Ulrich Mueller <ulm@gentoo.org>
5109
5110 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
5111
51122009-05-07 David Reitter <david.reitter@gmail.com>
5113
5114 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
5115 Respect mouse face background.
5116
51172009-05-07 David Reitter <david.reitter@gmail.com>
5118
5119 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
5120 Mouse movement/highlight: bracket drawing operations
5121 in ns_update_begin and ns_update_end.
5122
51232009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
5124
5125 * nsfns.m (ns_get_screen): Rewrite.
5126 Don't presume selected-frame is of type `ns'.
5127
5128 * font.c (font_update_drivers): Sanity fallback to avoid disabling
5129 all drivers.
5130
5131 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
5132
51332009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5134
5135 * keyboard.h (add_user_signal): Fix typo in extern.
5136
5137 * lisp.h (add_user_signal): Remove extern.
5138
5139 * unexelf.c (unexec): Consider a section to precede the .bss section
5140 if its addresses overlap that of .bss.
5141 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
5142 instead of dumping process.
5143
51442009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
5145
5146 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
5147
51482009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
5149
5150 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
5151
51522009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
5153
5154 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
5155 any statements.
5156
51572009-05-02 Andreas Schwab <schwab@linux-m68k.org>
5158
5159 * process.c (read_process_output): Make sure the current buffer is
5160 always restored.
5161
5162 * coding.c (record_conversion_result): Don't modify
5163 Vlast_code_conversion_error for successful result.
5164 (alloc_destination): Don't clobber conversion result. (Bug#1650)
5165
51662009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
5167
5168 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
5169 (load_charset_map): Remove unnecessary code.
5170
51712009-04-30 David Reitter <david.reitter@gmail.com>
5172
5173 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
5174 through f24.
5175
51762009-04-30 Chong Yidong <cyd@stupidchicken.com>
5177
5178 * xfaces.c (face_at_buffer_position): New arg base_face_id.
5179
5180 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
5181 face_at_buffer_position.
5182 (face_before_or_after_it_pos, get_next_display_element)
5183 (note_mouse_highlight): Update face_at_buffer_position call.
5184
5185 * term.c (term_mouse_highlight):
5186 * msdos.c (IT_note_mouse_highlight):
5187 * fontset.c (Finternal_char_font):
5188 * font.c (font_at, font_range): Update face_at_buffer_position call.
5189
5190 * dispextern.h (face_at_buffer_position): Update prototype.
5191
51922009-04-30 Kenichi Handa <handa@m17n.org>
5193
5194 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
5195
51962009-04-29 Andreas Schwab <schwab@linux-m68k.org>
5197
5198 * callproc.c (Fcall_process): Fix GC protection. Make sure
5199 current buffer is always restored.
5200
52012009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5202
5203 * atimer.c (init_atimer): Also clear stopped_atimers.
5204
5205 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
5206
5207 * process.c (create_process): Clean up merger residues of
5208 2008-07-17 change.
5209
52102009-04-29 Ulrich Mueller <ulm@gentoo.org>
5211
5212 * lread.c (Vread_circle): New variable.
5213 (read1): Disable recursive read if Vread_circle is nil.
5214
52152009-04-29 Kenichi Handa <handa@m17n.org>
5216
5217 * fontset.h (set_default_ascii_font): Delete extern.
5218
5219 * fontset.c (set_default_ascii_font): Delete this unused function.
5220
5221 * frame.c (x_set_font): When ARG is a font-object, check if the
5222 font-object matches with the ASCII font-spec of the frame's
5223 fontset. If not, create a new fontset for the frame. (Bug #3075)
5224
52252009-04-28 Andreas Schwab <schwab@linux-m68k.org>
5226
5227 * fns.c (Flocale_info): Protect vector from GC during decoding.
5228
5229 * process.c (Fstart_process): Protect argv strings from GC during
5230 encoding.
5231
52322009-04-27 Andreas Schwab <schwab@linux-m68k.org>
5233
5234 * sysdep.c: Include <ctype.h>.
5235
52362009-04-27 David Reitter <david.reitter@gmail.com>
5237
5238 * nsfont.m (nsfont_open): Remove unused variable shrink.
5239 Remove commented-out code.
5240
52412009-04-26 Johan Bockgård <bojohan@gnu.org>
5242
5243 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
5244
52452009-04-25 Jason Rumney <jasonr@gnu.org>
5246
5247 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
5248
52492009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5250
5251 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
5252 Swap bytes in short integer if fringe bitmap width > 8.
5253
52542009-04-23 Kenichi Handa <handa@m17n.org>
5255
5256 * xfaces.c (Fx_list_fonts): If a font size is specified in
5257 PATTERN, set it in returned scalable fonts.
5258
52592009-04-22 Chong Yidong <cyd@stupidchicken.com>
5260
5261 * keyboard.c (Fset_input_meta_mode): Doc fix.
5262
5263 * dispnew.c (Fsend_string_to_terminal): Doc fix.
5264
5265 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
5266
5267 * coding.c (Fterminal_coding_system): Doc fix.
5268
5269 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
5270 (Fx_display_pixel_height, Fx_display_planes)
5271 (Fx_display_color_cells, Fx_server_max_request_size)
5272 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
5273 (Fx_display_mm_height, Fx_display_mm_width)
5274 (Fx_display_backing_store, Fx_display_visual_class)
5275 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
5276 Doc fixes, replacing "terminal id" with "terminal object".
5277 (check_x_display_info): Handle terminal objects instead of
5278 terminal ids.
5279
5280 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
5281 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
5282 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
5283 Doc fixes, replacing "terminal id" with "terminal object".
5284
52852009-04-21 Kenichi Handa <handa@m17n.org>
5286
5287 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
5288 (font_score): Check AVGWIDTH too.
5289
5290 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
5291 worst case.
5292 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
5293 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
5294
52952009-04-19 Jason Rumney <jasonr@gnu.org>
5296
5297 The following changes fix Bug#3005 for wide glyphs on each platform,
5298 without reintroducing Bug#1258 for stretch glyphs.
5299
5300 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
5301 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
5302 get_phys_cursor_geometry.
5303
5304 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
5305 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
5306 using get_phys_cursor_geometry.
5307
5308 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
5309 correctly calculated.
5310
53112009-04-19 Jan Djärv <jan.h.d@swipnet.se>
5312
5313 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
5314 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
5315 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
5316 is deprecated.
5317
53182009-04-18 Andreas Schwab <schwab@linux-m68k.org>
5319
5320 * font.c (font_put_frame_data): Use xfree instead of free.
5321
53222009-04-17 Juanma Barranquero <lekktu@gmail.com>
5323
5324 * w32font.c (Qja, Qko): Remove declarations.
5325 (syms_of_w32font): Don't DEFSYM them.
5326
53272009-04-17 Chong Yidong <cyd@stupidchicken.com>
5328
5329 * font.c (Qja, Qko): Move definitions here from ftfont.c.
5330
5331 * font.h (Qja, Qko): Extern them.
5332
5333 * ftfont.c (Qja, Qko): Remove declarations.
5334
5335 * xfont.c (Qja, Qko): Remove declarations.
5336
53372009-04-17 Kenichi Handa <handa@m17n.org>
5338
5339 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
5340 string from a vector to handle Latin-1 characters correctly.
5341
5342 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
5343 entity even if the cache hits.
5344
53452009-04-16 Andreas Schwab <schwab@linux-m68k.org>
5346
5347 * search.c (boyer_moore): Use zero as marker value for a possible
5348 match instead of depending on overflow behavior. (Bug#2844)
5349
5350 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
5351 * lisp.h: Adjust prototypes.
5352
53532009-04-16 Chong Yidong <cyd@stupidchicken.com>
5354
5355 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
5356 change (Bug#3003).
5357
53582009-04-16 Kenichi Handa <handa@m17n.org>
5359
5360 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
5361
5362 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
5363 adstyle.
5364
5365 * ftfont.c (Qja, Qko): Don't make them static.
5366 (enum ftfont_cache_for): New enum.
5367 (fc_charset_table): Undo the previous change.
5368 (ftfont_get_latin1_charset): Delete it.
5369 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
5370 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
5371 non-scarable font, try to get AVERAGE_WIDTH.
5372 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
5373 Change ft_face_cache from a list of a hash-table. Don't check
5374 `ja' and `ko' adstyle here.
5375 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
5376 FTFONT_CACHE_FOR_CHARET.
5377 (ftfont_get_charset): Undo the previous change.
5378 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
5379 (ftfont_close): Likewise.
5380 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
5381
5382 * font.c (font_sort_entites): Change the meaning of the arg
5383 BEST-ONLY. Don't optimize for VEC of lenght 1.
5384 (font_select_entity): Just return the value of font_sort_entites.
5385
5386 * xfaces.c (merge_face_vectors): Reflect font properties in
5387 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
5388 font_clear_prop if a face attribute doesn't change.
5389
5390 * charset.h (charset_ksc5601): Extern it.
5391
5392 * charset.c (charset_ksc5601): New variable.
5393 (Fdefine_charset_internal): Set charset_ksc5601.
5394 (init_charset_once): Initialize charset_ksc5601 to -1.
5395
53962009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
5397
5398 * fileio.c (history_delete_duplicates): Remove unused declaration.
5399
5400 * callint.c (history_delete_duplicates): New declaration.
5401 (Fcall_interactively): Remove command history duplicates when
5402 history_delete_duplicates is true.
5403
54042009-04-14 Eli Zaretskii <eliz@gnu.org>
5405
5406 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
5407
54082009-04-14 Kenichi Handa <handa@m17n.org>
5409
5410 * font.c (Ffont_info): Fix docstring. Fix the second element of
5411 the returned value (bug#2949).
5412
54132009-04-14 Chong Yidong <cyd@stupidchicken.com>
5414
5415 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
5416
54172009-04-14 Kenichi Handa <handa@m17n.org>
5418
5419 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
5420 encoding charset is ascii_compatible.
5421
5422 * charset.c (Fdefine_charset_internal): Make charset
5423 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
5424 code_offset is 0, and covers all ASCII characters.
5425
54262009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
5427
5428 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
5429 (ns_string_to_pasteboard_internal):
5430 * nsmenu.m (process_dialog):
5431 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
5432 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
5433 * lisp.h (Fx_load_color_file): Declare.
5434
54352009-04-13 Kenichi Handa <handa@m17n.org>
5436
5437 * font.c (font_delete_unmatched): Preserve the order of list elements.
5438 (font_select_entity): Suppress the code to optimize for the same
5439 kind of fonts.
5440 (font_load_for_lface): Get a font that supports at least ASCII
5441 characters.
5442
5443 * ftfont.c (Qja, Qko): New variables.
5444 (fc_charset_table): Delete uniquifier data for iso8859-1.
5445 (ftfont_get_latin1_charset): New function.
5446 (get_adstyle_property): New function.
5447 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
5448 bitmap fonts.
5449 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
5450 Delete iso-8859-1 range from the charset of fonts whose adstyle is
5451 `ko' or `ja'.
5452 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
5453 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
5454 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
5455 property.
5456 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
5457 (syms_of_ftfont): DEFSYM Qja and Qko.
5458
54592009-04-09 Kenichi Handa <handa@m17n.org>
5460
5461 * charset.c (map_charset_chars): For a charset of `superset'
5462 method, fix calculation of code range.
5463
5464 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
5465 from the list of extra properties.
5466 (font_clear_prop): Be sure to delete `:name' font property.
5467
54682009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5469
5470 * dispnew.c (redraw_overlapping_rows): Fix detection of
5471 overlapping for topmost and bottommost rows.
5472
5473 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
5474
54752009-04-06 Jason Rumney <jasonr@gnu.org>
5476
5477 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
5478
54792009-04-06 Kenichi Handa <handa@m17n.org>
5480
5481 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
5482
5483 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
5484
54852009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5486
5487 * ftfont.c (ftfont_open): Fix checking of the return value of
5488 FT_Load_Char. Fix setting font->underline_thickness.
5489
54902009-04-04 Chong Yidong <cyd@stupidchicken.com>
5491
5492 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
5493 (Fterminal_parameters, Fterminal_parameter)
5494 (Fset_terminal_parameter): In doc string, refer to terminal
5495 objects rather than terminal ids.
5496
54972009-04-04 Eli Zaretskii <eliz@gnu.org>
5498
5499 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
5500 ret_lim_data. (Bug#2867)
5501
55022009-04-03 Chong Yidong <cyd@stupidchicken.com>
5503
5504 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
5505 so they don't get wider than the window, matching 2006-01-23
5506 change to the partner function in xdisp.c (Bug#2800).
5507
55082009-04-03 Kenichi Handa <handa@m17n.org>
5509
5510 * print.c (print_object): Make each lowest sub_char_table start a
5511 new line (Bug#2866).
5512
55132009-04-02 Kenichi Handa <handa@m17n.org>
5514
5515 * fontset.c (fontset_font): Record no-font when a fontset
5516 explicitly tells not to try another font-specs.
5517
55182009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
5519
5520 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
5521
55222009-03-30 Kenichi Handa <handa@m17n.org>
5523
5524 * fontset.c (fontset_from_font): Specify only registry in a
5525 font-spec for all characters supported by that registry.
5526
5527 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
5528 even if HAVE_M17N_FLT is not defined.
5529
55302009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
5531
5532 * ftfont.c: Conditionalize prototyping and use of
5533 ftfont_variation_glyphs.
5534
55352009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
5536
5537 * frame.c (delete_frame): Work around compiler bug.
5538
5539 * editfns.c (general_insert_function): Adjust to insdel.c changes.
5540 * insdel.c (prepare_to_modify_buffer, signal_before_change):
5541 Some more EMACS_INT.
5542 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
5543
5544 * xdisp.c (dump_glyph): Fix typo.
5545
5546 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
5547 (adjust_markers_gap_motion, adjust_markers_for_delete)
5548 (adjust_markers_for_insert, adjust_point)
5549 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
5550 (make_gap, copy_text, count_size_as_multibyte, insert)
5551 (insert_and_inherit, insert_before_markers)
5552 (insert_before_markers_and_inherit, insert_1)
5553 (count_combining_before, count_combining_after, insert_1_both)
5554 (insert_from_string, insert_from_string_before_markers)
5555 (insert_from_string_1, insert_from_gap, insert_from_buffer)
5556 (insert_from_buffer_1, adjust_after_replace)
5557 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
5558 (replace_range_2, del_range, del_range_1, del_range_byte)
5559 (del_range_both, del_range_2, modify_region)
5560 (prepare_to_modify_buffer, signal_before_change)
5561 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
5562 for buffer positions and sizes.
5563 * lisp.h: Adjust prototypes accordingly.
5564
5565 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
5566 (non_regular_inserted, non_regular_nbytes, read_non_regular)
5567 (Finsert_file_contents): Use EMACS_INT for buffer positions.
5568
5569 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
5570
55712009-03-27 Jan Djärv <jan.h.d@swipnet.se>
5572
5573 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
5574 lines and columns so we keep the same pixel height and width.
5575
5576 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
5577 the property _NET_WM_STATE has changed.
5578 (x_handle_net_wm_state): New function to update frame parameter
5579 fullscreen.
5580 (x_term_init): Initialize atoms for _NET_WM_STATE.
5581
5582 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
5583
55842009-03-27 Kevin Ryde <user42@zip.com.au>
5585
5586 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
5587 Gpm_GetEvent as an error that justifies closing the filedescriptor.
5588 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
5589 (Fgpm_mouse_stop): Pass that new parameter.
5590 * termhooks.h (close_gpm): Adjust prototype.
5591
55922009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
5593
5594 * lisp.h (Fx_focus_frame): Declare.
5595
5596 * callint.c (Fcall_interactively): For '^' just delegate the work to
5597 handle-shift-selection.
5598 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
5599
56002009-03-24 Chong Yidong <cyd@stupidchicken.com>
5601
5602 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
5603
5604 * data.c (Qinteractive_form): New variable.
5605 (Finteractive_form): Use it.
5606
5607 * eval.c (Fcommandp): Use Qinteractive_form.
5608
56092009-03-24 Jason Rumney <jasonr@gnu.org>
5610
5611 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
5612 Calculate total size precisely. Decode environment variables
5613 before substituting. (Bug#38)
5614
56152009-03-24 Kenichi Handa <handa@m17n.org>
5616
5617 * font.c (find_font_encoding): Return Qnil for unsupported
5618 encoding (Bug#2722).
5619
56202009-03-23 Jan Djärv <jan.h.d@swipnet.se>
5621
5622 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
5623 that gdpy is set.
5624
56252009-03-22 Alan Mackenzie <acm@muc.de>
5626
5627 * callint.c (Finteractive): Clarify the doc string - even
5628 promptless elements need \n separators.
5629
56302009-03-22 Jason Rumney <jasonr@gnu.org>
5631
5632 * w32term.c (syms_of_w32term): Doc fix for
5633 x-use-underline-position-properties.
5634
56352009-03-21 Eli Zaretskii <eliz@gnu.org>
5636
5637 * w32.c (getpwuid): Change argument type to unsigned.
5638 (struct w32_id): Change type of `rid' member to unsigned.
5639 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
5640 argument ID to unsigned. All callers changed.
5641 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
5642
56432009-03-20 Eli Zaretskii <eliz@gnu.org>
5644
5645 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
5646 negative, produce a float value.
5647
5648 * dired.c (make_uid, make_gid): New functions.
5649 (Ffile_attributes): Use them to avoid negative UID and GID.
5650
56512009-03-20 Juanma Barranquero <lekktu@gmail.com>
5652
5653 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
5654 (syms_of_keyboard) <command-hook-internal, input-method-function>:
5655 Fix typos in docstrings.
5656
56572009-03-19 Kenichi Handa <handa@m17n.org>
5658
5659 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
5660 changed, use font_load_for_lface to get a new font object.
5661 Call free_realized_fontset after handling ASCII font change.
5662
5663 * frame.c (x_set_font): Handle the case that ARG is a cons.
5664
56652009-03-19 Glenn Morris <rgm@gnu.org>
5666
5667 * fileio.c (Fsubstitute_in_file_name): Doc fix.
5668
56692009-03-19 Chong Yidong <cyd@stupidchicken.com>
5670
5671 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
5672
56732009-03-19 Kenichi Handa <handa@m17n.org>
5674
5675 * charset.c (load_charset_map_from_file): When a mapfile can't be
5676 loaded, signal an error.
5677
56782009-03-18 Eli Zaretskii <eliz@gnu.org>
5679
5680 * dired.c (Ffile_attributes): Make sure UID and GID are always
5681 positive, even if the value is too large for a positive EMACS_INT.
5682 Doc fix.
5683
5684 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
5685
56862009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5687
5688 * xmenu.c (xdialog_show): Move Fredisplay call ...
5689 (Fx_popup_dialog): ... here.
5690
56912009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
5692
5693 * dired.c (file_name_completion): Disable the first optimization just
5694 installed, since it is not implemented correctly.
5695
56962009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
5697
5698 * dired.c (file_name_completion): Check completion-ignored-extensions
5699 only if the entry can affect bestmatch.
5700 Stop the search early, as Ftry_completion already does.
5701
57022009-03-17 Chong Yidong <cyd@stupidchicken.com>
5703
5704 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
5705
57062009-03-15 Chong Yidong <cyd@stupidchicken.com>
5707
5708 * keyboard.c (parse_menu_item): Don't display remappings as menu
5709 equivalent bindings (Bug#788).
5710
57112009-03-15 Jason Rumney <jasonr@gnu.org>
5712
5713 * w32term.h (WM_EMACS_PAINT): New message.
5714 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
5715 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
5716 before passing to lisp thread. (Bug#950)
5717
57182009-03-14 David Reitter <david.reitter@gmail.com>
5719
5720 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
5721 variable as it was never reset.
5722 (ns_term_init): Remove initialization of Lisp-settable defaults
5723 and ns_expand_space.
5724 (-setPanelFromDefaultValues): Remove ns_expand_space.
5725 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
5726 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
5727 i.e. no additional spacing, similar to Carbon port.
5728
5729 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
5730 * nsfns.m (ns-popup-prefs-panel): Remove.
5731
57322009-03-14 Jan Djärv <jan.h.d@swipnet.se>
5733
5734 * sound.c (alsa_configure): Remove call to deprecated
5735 snd_pcm_sw_params_set_xfer_align.
5736
57372009-03-14 Stephen Berman <stephen.berman@gmx.net>
5738
5739 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
5740 after clicking in a detached tool bar.
5741 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
5742
57432009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
5744
5745 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
5746 int/Lisp_Object mixup).
5747
57482009-03-13 Kenichi Handa <handa@m17n.org>
5749
5750 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
5751 Handle NAME nil and t correctly. Callers changed.
5752 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
5753 (set_fontset_font): Change ARG to a vector. Handle range_list in
5754 ARG correctly.
5755 (Fset_fontset_font): Fix the case that TARGET is both a script
5756 name and charset name. Adjust the arg to set_fontset_font for
5757 the above change.
5758 (fontset_from_font): Fix previous change.
5759 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
5760 entry. If FONTSET is the default fontset, don't set the extra
5761 slot of the returning char-table.
5762
57632009-03-12 Juanma Barranquero <lekktu@gmail.com>
5764
5765 * nsfns.m (Fx_close_connection): Doc fix.
5766 (Fns_do_applescript): Reflow docstring.
5767 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
5768 (Fx_display_pixel_width, Fx_display_pixel_height)
5769 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
5770 Fix typos in docstrings.
5771 (Fns_set_alpha): Fix typos in error messages.
5772
57732009-03-12 David Reitter <david.reitter@gmail.com>
5774
5775 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
5776 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
5777 were used for such events.
5778
5779 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
5780 (toggleToolbar, performDragOperation, runHelp): Use it.
5781
5782 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
5783 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
5784
57852009-03-11 Kenichi Handa <handa@m17n.org>
5786
5787 * font.h (font_open_by_spec): Extern it.
5788
5789 * font.c (font_open_by_spec): New function.
5790 (font_open_by_name): Use font_open_by_spec.
5791
5792 * frame.c (x_set_font): When ARG is a font-object, don't alter the
5793 fontset of the frame.
5794
5795 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
5796 modify the default font of frames that use this fontset.
5797 (num_auto_fontsets): New variable.
5798 (fontset_from_font): Use num_auto_fontsets to decide a fontset
5799 name. Be sure to set FONTSET_ASCII to the correct font name.
5800 (update_auto_fontset_alist): New function.
5801
58022009-03-11 Juanma Barranquero <lekktu@gmail.com>
5803
5804 * makefile.w32-in: Update dependencies.
5805
58062009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
5807
5808 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
5809
58102009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
5811
5812 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
5813
58142009-03-10 Chong Yidong <cyd@stupidchicken.com>
5815
5816 * lread.c (Feval_buffer): Doc fix.
5817
58182009-03-09 Kenichi Handa <handa@m17n.org>
5819
5820 * charset.c (Qfile_name_handler_alist): Extern it.
5821 (load_charset_map_from_file): Temporarily bind
5822 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
5823
58242009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
5825
5826 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
5827 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
5828
58292009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
5830
5831 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
5832 (x_set_window_size): Change back to calculated method of setting
5833 toolbar height under Cocoa. (Bug#2546)
5834 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
5835 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
5836
5837 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
5838
5839 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
5840 accelerator in parens under GNUstep.
5841
58422009-03-06 Kenichi Handa <handa@m17n.org>
5843
5844 These changes are to detect incorrect composition sequence without
5845 looking ahead the source. (Bug#2370)
5846
5847 * coding.h: Include "composite.h".
5848 (enum compisition_state): New enum.
5849 (struct compisition_status): New struct.
5850 (struct iso_2022_spec): New member cmp_status.
5851 (struct emacs_mule_spec): New struct.
5852 (struct coding_system): New members ctext_extended_segment_len and
5853 embedded_utf_8. Change the union member
5854 spec.emacs_mule_full_support to spec.emacs_mule.
5855
5856 * coding.c (CODING_ISO_CMP_STATUS): New macro.
5857 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
5858 (MAX_ANNOTATION_LENGTH): Define to 5.
5859 (ADD_COMPOSITION_DATA): New arg nbytes.
5860 (emacs_mule_char): New arg cmp_status.
5861 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
5862 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
5863 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
5864 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
5865 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
5866 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
5867 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
5868 (EMACS_MULE_COMPOSITION_END): New macro.
5869 (emacs_mule_finish_composition): New function.
5870 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
5871 (decode_coding_emacs_mule): Avoid long looking ahead while
5872 handling composition.
5873 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
5874 (ENCODE_COMPOSITION_RULE): New macro.
5875 (finish_composition): New function.
5876 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
5877 (DECODE_COMPOSITION_START): New implementation.
5878 (DECODE_COMPOSITION_END): Likewise.
5879 (STORE_COMPOSITION_RULE): New macro.
5880 (decode_coding_iso_2022): Avoid long looking ahead while handling
5881 composition, CTEXT extended segment, and embedded UTF-8.
5882 (setup_coding_system): For a coding of type iso-2022, reset
5883 CODING_ISO_EXTSEGMENT_LEN (coding) and
5884 CODING_ISO_EMBEDDED_UTF_8 (coding).
5885 (get_translation): Delete arguments last_block, from_nchars,
5886 to_nchars. Callers changed.
5887 (produce_chars): Don't modify charbuf. Adjusted for the change of
5888 get_translation.
5889 (produce_composition): Adjust for the new annotation sequence.
5890 (handle_composition_annotation): Likewise.
5891 (consume_chars): Adjust for the change of get_translation.
5892
58932009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
5894
5895 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
5896
58972009-03-05 Kenichi Handa <handa@m17n.org>
5898
5899 * font.c (font_select_entity): New function.
5900 (font_find_for_lface): Use font_select_entity to select a font.
5901
5902 * fontset.c (fontset_find_font): If a font found without
5903 restricting to the characters C doesn't support C, try to find a
5904 font with C restriction.
5905
59062009-03-04 Nikolaj Schumacher <me@nschum.de>
5907
5908 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
5909
59102009-03-04 Jason Rumney <jasonr@gnu.org>
5911
5912 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
5913 characters that have already been read. (Bug#2569)
5914
5915 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
5916 Log an error message if check_image_size failed.
5917 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
5918 (gs_load): Mention max-image-size in size error message. (Bug#2560)
5919
59202009-03-02 Eli Zaretskii <eliz@gnu.org>
5921
5922 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
5923 when decoding process output.
5924
59252009-03-01 Richard M Stallman <rms@gnu.org>
5926
5927 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
5928
5929 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
5930
59312009-02-28 Eli Zaretskii <eliz@gnu.org>
5932
5933 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
5934 (decode_coding_emacs_mule, decode_coding_iso_2022)
5935 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
5936 (decode_coding_raw_text, decode_coding_charset)
5937 (setup_coding_system, decode_eol, decode_coding, consume_chars):
5938 Honor inhibit-eol-conversion. (Bug #2186)
5939
59402009-02-28 Jason Rumney <jasonr@gnu.org>
5941
5942 * coding.c (detect_coding_charset): If not checking latin extra,
5943 fail on characters between 0x80 and 0xA0. (Bug#2354)
5944
59452009-02-28 Eli Zaretskii <eliz@gnu.org>
5946
5947 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
5948 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
5949
59502009-02-27 Glenn Morris <rgm@gnu.org>
5951
5952 * callint.c (Finteractive): Doc fix.
5953
59542009-02-27 Kenichi Handa <handa@m17n.org>
5955
5956 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
5957
59582009-02-27 Chong Yidong <cyd@stupidchicken.com>
5959
5960 * font.c (font_style_to_value): Set value for unknown symbols to
5961 100 instead of 255.
5962 (weight_table, slant_table, width_table): Treat "unspecified" as
5963 the default value.
5964
59652009-02-26 Juanma Barranquero <lekktu@gmail.com>
5966
5967 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
5968
59692009-02-25 Juanma Barranquero <lekktu@gmail.com>
5970
5971 * lread.c (Fload): Stop checking Vloads_in_progress and signal
5972 error as soon as a recursive load is detected.
5973
59742009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5975
5976 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
5977 before caching.
5978
59792009-02-24 Kenichi Handa <handa@m17n.org>
5980
5981 * fontset.c (fontset_find_font): Fix the condition for checking
5982 unavailable font.
5983
59842009-02-24 Glenn Morris <rgm@gnu.org>
5985
5986 * xfaces.c (Finternal_set_font_selection_order): Remove leading
5987 whitespace that confuses documentation.
5988
59892009-02-23 Miles Bader <miles@gnu.org>
5990
5991 * process.c (Flist_system_processes, Fprocess_attributes)
5992 (syms_of_process): Rename `system-process-attributes' to
5993 `process-attributes'.
5994
59952009-02-22 Andreas Schwab <schwab@linux-m68k.org>
5996
5997 * coding.h (struct coding_system): Make safe_charsets a pointer to
5998 unsigned char.
5999 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
6000 being 255.
6001 (SAFE_CHARSET_P): Likewise.
6002 (setup_iso_safe_charsets): Properly setup safe_charsets.
6003 (Fdefine_coding_system_internal): Likewise.
6004 (setup_coding_system): Likewise. Remove unneeded casts.
6005 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
6006 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
6007 unneeded casts.
6008
6009 * insdel.c (del_range_2): Don't modify gap contents when called
6010 from decode_coding_object. (Bug#1809)
6011
60122009-02-21 Chong Yidong <cyd@stupidchicken.com>
6013
6014 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
6015 Qfont_object.
6016 (Ftype_of): Recognize font objects.
6017
6018 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
6019
6020 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
6021 moved to data.c.
6022
60232009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6024
6025 * nsterm.m (x_make_frame_invisible): Unset async_visible,
6026 async_iconified. Based on a patch by Christian Lynbech
6027 <christian.lynbech@tieto.com>.
6028 (EmacsView-windowDidMiniaturize:): Unset async_visible.
6029
60302009-02-20 Glenn Morris <rgm@gnu.org>
6031
6032 * syntax.c (Fskip_chars_forward): Fix doc typo.
6033
60342009-02-20 Chong Yidong <cyd@stupidchicken.com>
6035
6036 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
6037
60382009-02-19 Chong Yidong <cyd@stupidchicken.com>
6039
6040 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
6041
60422009-02-19 Kenichi Handa <handa@m17n.org>
6043
6044 * coding.c (detect_coding): Preserve coding->mode.
6045 Don't overflow coding->carryover. (Bug#2370)
6046
60472009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
6048
6049 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
6050
60512009-02-18 Kenichi Handa <handa@m17n.org>
6052
6053 * font.c (font_check_otf_features): Fix handling of `nil' element.
6054 (Ffont_spec): Describe :lang and :otf in the docstring.
6055
60562009-02-16 Andreas Schwab <schwab@suse.de>
6057
6058 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
6059 string.
6060
60612009-02-16 Kenichi Handa <handa@m17n.org>
6062
6063 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
6064 (Bug#1723)
6065
60662009-02-14 Chong Yidong <cyd@stupidchicken.com>
6067
6068 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
6069
6070 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
6071 (handle_line_prefix): Suppress wrapping of wrap prefixes.
6072
60732009-02-14 Eli Zaretskii <eliz@gnu.org>
6074
6075 * msdos.c (MAX_SCREEN_BUF): New macro.
6076 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
6077 Encode the entire run of glyphs sharing the same face, instead of
6078 doing that one glyph at a time (fixes a bug with displaying
6079 double-size characters).
6080
60812009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
6082
6083 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
6084
6085 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
6086 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
6087 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
6088
6089 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
6090 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
6091
60922009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
6093
6094 * keyboard.c (adjust_point_for_property): Allow stopping between two
6095 invisible areas.
6096
60972009-02-12 Jason Rumney <jasonr@gnu.org>
6098
6099 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
6100 (add_font_entity_to_list): Call check_face_name even when family
6101 is unspecified.
6102
6103 * w32term.c (x_display_pixel_height, x_display_pixel_width):
6104 Release DC when finished. Use NULL window to refer to desktop.
6105 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
6106
6107 * w32font.c (add_font_entity_to_list): Fix check for substituted
6108 raster fonts. (Bug#2219)
6109
61102009-02-12 Kenichi Handa <handa@m17n.org>
6111
6112 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
6113 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
6114 (autocmp_chars): Use fast_looking_at. Don't compose more
6115 characters than MAX_COMPOSITION_COMPONENTS.
6116 (find_automatic_composition): While looking forward and backward,
6117 check static composition. Fix where to stop looking forward.
6118 (composition_adjust_point): Fix checking of static composition.
6119 (Fcomposition_get_gstring): Pay attention to
6120 MAX_COMPOSITION_COMPONENTS.
6121
6122 * lisp.h (fast_looking_at): Extern it.
6123
6124 * search.c (fast_looking_at): New function.
6125
6126 * term.c (encode_terminal_code): Adjust for the change of
6127 <struct glyph>.u.cmp.to.
6128 (append_composite_glyph): Likewise.
6129
6130 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
6131 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
6132 composition.
6133 (append_composite_glyph): Adjust for the change of
6134 <strcut glyph>.u.cmp.to.
6135
61362009-02-11 Juanma Barranquero <lekktu@gmail.com>
6137
6138 * casetab.c (init_casetab_once):
6139 * coding.c (ALLOC_CONVERSION_WORK_AREA):
6140 * font.c (font_update_lface):
6141 * fontset.c (Fnew_fontset):
6142 * ftfont.c (ftfont_drive_otf):
6143 * xfont.c (xfont_open):
6144 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
6145
61462009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
6147
6148 * fileio.c (Fwrite_region): !NILP -> CONSP.
6149
61502009-02-10 Andreas Schwab <schwab@suse.de>
6151
6152 * process.c (send_process): Properly relocate pointer into data
6153 when using encoded data. (Bug#2272)
6154
61552009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
6156
6157 * coding.c (detect_coding_charset): Fix previous change.
6158
61592009-02-08 Jason Rumney <jasonr@gnu.org>
6160
6161 * w32fns.c (w32_hide_hourglass): Handle case where frame
6162 disappeared while hourglass was displayed. (Bug #2193)
6163
61642009-02-07 Andreas Schwab <schwab@suse.de>
6165
6166 * unexelf.c (unexec): Fix error message.
6167
61682009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
6169
6170 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
6171 when modal window is active. (Bug #2152)
6172 (applicationShouldTerminate:): Remove now-unneeded while loop
6173 around NSRunAlertPanel.
6174
6175 * nsmenu.m (popupSession): New file-global variable.
6176 (pop_down_menu): End the popupSession before closing dialog.
6177 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
6178 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
6179 don't query NSApp for events (just sleep instead).
6180
61812009-02-07 Eli Zaretskii <eliz@gnu.org>
6182
6183 * coding.c (syms_of_coding) <translation-table-for-input>:
6184 Modify doc string to discourage use for character code unification.
6185
61862009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6187
6188 * atimer.c (run_timers): Update pending_atimers.
6189
61902009-02-06 Chong Yidong <cyd@stupidchicken.com>
6191
6192 * image.c (svg_load_image): Fix last change.
6193
6194 * xfns.c (Fx_create_frame): Signal an error if no font is
6195 found (Bug#2147).
6196
61972009-02-05 Juanma Barranquero <lekktu@gmail.com>
6198
6199 * character.c (syms_of_character) <script-representative-chars>:
6200 Fix typo in docstring.
6201
62022009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6203
6204 * nsmenu.m (pop_down_menu): New function.
6205 (ns_popup_dialog): Call it on unwind.
6206 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
6207 call timer_check() (Bug#2154).
6208 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
6209 handling_signal is set.
6210 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
6211
6212 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
6213
6214 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
6215
6216 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
6217
6218 * keyboard.c (poll_for_input_1, handle_async_input):
6219 Set handling_signal under HAVE_NS.
6220
62212009-02-04 Glenn Morris <rgm@gnu.org>
6222
6223 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
6224
62252009-02-04 Kenichi Handa <handa@m17n.org>
6226
6227 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
6228
6229 * charset.c (Fchar_charset): New optional arg restriction.
6230
6231 * coding.h (coding_system_charset_list): Extern it.
6232
6233 * coding.c (coding_system_charset_list): New function.
6234
6235 * composite.c: Include coding.h and termhooks.h.
6236 (composition_gstring_p): Fix for the terminal case.
6237 (composition_gstring_width): Likewise.
6238 (fill_gstring_body): Likewise.
6239 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
6240 the frame.
6241 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
6242 is within a composition.
6243 (Fcomposition_get_gstring): Fix the terminal case.
6244
6245 * term.c (encode_terminal_code): Fix handling of composition.
6246 (produce_composite_glyph): For static composition, get pixel_width
6247 from struct composition.
6248
62492009-02-02 Andreas Schwab <schwab@suse.de>
6250
6251 * unexelf.c (unexec): Handle unaligned bss offset.
6252
62532009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6254
6255 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
6256 XT,w32read_socket changes to ns_read_socket.
6257
6258 * keyboard.c (handle_interrupt): Don't call
6259 quit_throw_to_read_char() under NS.
6260
6261 * blockinput.h: Remove NS-specific code.
6262
62632009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
6264
6265 * dispnew.c (window_change_signal): Don't try to get the size of a
6266 suspended tty frame.
6267 * term.c (Fresume_tty): Resize if the size has changed while the
6268 tty was suspended.
6269
6270 * alloc.c (mark_stack): Properly conditionalize previous change.
6271
62722009-01-30 Juanma Barranquero <lekktu@gmail.com>
6273
6274 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
6275 * w32term.c (w32_read_socket) [SYNC_INPUT]:
6276 Remove; this code is not used on Windows.
6277
62782009-01-30 Eli Zaretskii <eliz@gnu.org>
6279
6280 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
6281 EOLs that also has stray ^M characters.
6282
62832009-01-30 Juanma Barranquero <lekktu@gmail.com>
6284
6285 * atimer.c (run_timers, alarm_signal_handler):
6286 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
6287 * w32inevt.c (w32_console_read_socket):
6288 * w32term.c (w32_read_socket):
6289 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
6290
62912009-01-30 Chong Yidong <cyd@stupidchicken.com>
6292
6293 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
6294 Initialize it as a relative filename pattern.
6295 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
6296 (Fcall_process_region): Simplify temp file creation using
6297 temporary-file-directory.
6298
62992009-01-29 Eli Zaretskii <eliz@gnu.org>
6300
6301 * msdos.c: Rename pending_signals to msdos_pending_signals.
6302 (sig_suspender, sigprocmask): Adjust.
6303
63042009-01-29 Chong Yidong <cyd@stupidchicken.com>
6305
6306 * keyboard.c (pending_signals): New var.
6307 (poll_for_input, input_available_signal, init_keyboard): Set it.
6308 (process_pending_signals): New function.
6309
6310 * lisp.h (QUIT): Check pending_signals instead of
6311 interrupt_input_pending. Use process_pending_signals.
6312
6313 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
6314
6315 * process.c (wait_reading_process_output): Use process_pending_signals.
6316
6317 * sysdep.c (emacs_write): Use process_pending_signals.
6318
6319 * xterm.c (XTread_socket): Update pending_signals.
6320
6321 * w32term.c (w32_read_socket): Update pending_signals.
6322
6323 * w32inevt.c (w32_console_read_socket): Update pending_signals.
6324
63252009-01-29 Kenichi Handa <handa@m17n.org>
6326
6327 * xftfont.c (xftfont_has_char): New function.
6328 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
6329
63302009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6331
6332 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
6333 under GNUstep.
6334 (ns_query_color): New declaration.
6335
6336 * nsterm.m (ns_confirm_quit): New variable.
6337 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
6338 (EmacsApp-applicationShouldTerminate:): Use it.
6339 (EmacsPrefsController): Let user set it.
6340 (ns_query_color): New function.
6341 (ns_defined_color): Use it.
6342 (ns_initialize): Drop.
6343 (ns_term_init): Add two lines from ns_initialize(), and set
6344 input_interrupt_mode to nil.
6345
6346 * image.c (svg_load_image): Don't right-shift background RGB when
6347 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
6348
63492009-01-28 Kenichi Handa <handa@m17n.org>
6350
6351 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
6352 (fontset_get_font_group): Remember that no font-group is specified
6353 for C.
6354
63552009-01-27 Chong Yidong <cyd@stupidchicken.com>
6356
6357 * fns.c (concat): Check for string overflow (bug#1787).
6358
6359 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
6360 Quadruple undo limits (bug#1501).
6361
63622009-01-27 Kenichi Handa <handa@m17n.org>
6363
6364 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
6365 directly use GT_Get_Char_index.
6366
6367 * xftfont.c (struct xftfont_info): New member `index'.
6368
6369 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
6370 (Ffontset_font): Adjust for the change of fontset entry.
6371
63722009-01-26 Kenichi Handa <handa@m17n.org>
6373
6374 * fontset.c (fontset_find_font): Fix handling of non-cons return
6375 value of fontset_get_font_group.
6376 (fontset_font): Revert last change.
6377
63782009-01-26 Jason Rumney <jasonr@gnu.org>
6379
6380 * w32font.c (w32font_list_internal): Return quickly if registry is
6381 unknown. Simplify final return.
6382 (add_font_entity_to_list): Break complex logic down into more
6383 manageable chunks. Move unknown registry check to
6384 w32font_list_internal.
6385
63862009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
6387
6388 Changes to remove Feval calls from GUI under NS.
6389
6390 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
6391 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
6392 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
6393
6394 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
6395 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
6396 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
6397 instead of NON_ASCII_KEYSTROKE_EVENT.
6398 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
6399 (EmacsApp-applicationShouldTerminate:): Query user.
6400 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
6401 instead of Feval.
6402
6403 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
6404
6405 * keyboard.c (kbd_buffer_get_event): Check for it.
6406 (keys_of_keyboard): Define lispy keys for
6407 ns-put/unput-working-text.
6408
6409 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
6410 versions.
6411 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
6412
64132009-01-25 Chong Yidong <cyd@stupidchicken.com>
6414
6415 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
6416 setting current_buffer directly. (Bug#2044)
6417
64182009-01-24 Chong Yidong <cyd@stupidchicken.com>
6419
6420 * fontset.c (fontset_font): If we know there is no font, don't do
6421 any work. (Bug#1952, bug#1990).
6422
6423 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
6424
64252009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6426
6427 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
6428 (ns_no_defaults): New declaration.
6429 (main): Use it.
6430
6431 * nsterm.h (ns_no_defaults): New declaration.
6432
6433 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
6434
6435 * nsterm.m (ns_no_defaults): New variable.
6436 (ns_initialize): Don't read defaults when ns_no_defaults.
6437 (EmacsView-readSelectionFromPasteboard:)
6438 (writeSelectionToPasteboard:types:): New stubbed-out methods for
6439 NSServicesRequests protocol. (Bug#1435)
6440 (ns_dumpglyphs_stretch): New function.
6441 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
6442 of 2008-11-15 to other terms. (Bug#615)
6443
6444 * nsimage.m (setPixmapData:): Set to ignore image DPI.
6445
64462009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
6447
6448 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
6449 call for Sparc64.
6450
64512009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6452
6453 * nsfns.m:
6454 * nsgui.h:
6455 * nsmenu.m:
6456 * nsselect.m:
6457 * nsterm.h:
6458 * nsterm.m: Remove '23' comments that indicated code added during
6459 update from emacs-20 -> emacs-23.
6460
64612009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6462
6463 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
6464 ns_alternate_modifier. (Bug#1217)
6465
6466 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
6467 Display all shortcuts, including those w/o super modifier.
6468
6469 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
6470
64712009-01-22 Chong Yidong <cyd@stupidchicken.com>
6472
6473 * fileio.c (Vwrite_region_post_annotation_function)
6474 (Vwrite_region_annotation_buffers): New vars.
6475 (build_annotations_unwind): Just reset
6476 Vwrite_region_annotation_buffers.
6477 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
6478 Call write-region-post-annotation-function.
6479 (build_annotations): Add to Vwrite_region_annotation_buffers if
6480 buffer changes.
6481
64822009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6483
6484 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
6485 Tiger.
6486 * nsfns.m (ns_do_applescript):
6487 Conditionalize typeUTF16ExternalRepresentation on Tiger.
6488
64892009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
6490
6491 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
6492
64932009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6494
6495 * nsmenu.m (NSMENUPROFILE): Change #if style.
6496
6497 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
6498
6499 * nsterm.m (x_set_frame_alpha): Add prototype.
6500 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
6501 handle Ctrl-tab. (Bug#1841)
6502 (ns_get_color): Use unsigned long long for scanned hex string value.
6503 (ns_term_shutdown): Abort on non SIGTERM signals.
6504 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
6505 (EmacsPrefsController-setPanelFromDefaultValues): New function.
6506 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
6507 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
6508 (ns_defined_color): Fix settings of the XColor variable fields:
6509 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
6510
6511 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
6512 DPI. (Bug#1316)
6513 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
6514 values in onTiger section.
6515
65162009-01-19 Chong Yidong <cyd@stupidchicken.com>
6517
6518 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
6519 Check return value of font_spec_from_name.
6520 (Fx_list_fonts): Doc fix. (Bug#1951)
6521
6522 * font.c (font_spec_from_name): Return Qnil if font name could not
6523 be parsed.
6524 (font_parse_name): Treat a `?' character as part of an XLFD.
6525
6526 * fns.c (Fsubstring): Doc fix.
6527
65282009-01-19 Kenichi Handa <handa@m17n.org>
6529
6530 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
6531 (ftfont_list): Likewise.
6532
65332009-01-18 Juanma Barranquero <lekktu@gmail.com>
6534
6535 * dbusbind.c (Fdbus_register_signal):
6536 * process.c (conv_sockaddr_to_lisp):
6537 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
6538
6539 * callproc.c (Fgetenv_internal): Doc fix.
6540
65412009-01-16 Chong Yidong <cyd@stupidchicken.com>
6542
6543 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
6544 it is not even used.
6545
65462009-01-16 Glenn Morris <rgm@gnu.org>
6547
6548 * font.c (Ffont_variation_glyphs): Silence compiler.
6549
65502009-01-15 Juanma Barranquero <lekktu@gmail.com>
6551
6552 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
6553 Reported by David Robinow <drobinow@gmail.com>.
6554
65552009-01-15 Kenichi Handa <handa@m17n.org>
6556
6557 * coding.c (detect_coding_system): Fix handling of null_byte_found.
6558
65592009-01-14 Jason Rumney <jasonr@gnu.org>
6560
6561 * frame.c (x_set_font): Always store a font to the font parameter,
6562 never a fontset. (Bug#1562)
6563
65642009-01-14 Kenichi Handa <handa@m17n.org>
6565
6566 * coding.c (TWO_MORE_BYTES): New macro.
6567 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
6568
65692009-01-13 Chong Yidong <cyd@stupidchicken.com>
6570
6571 * font.c (font_clear_prop): If clearing the family, clear the font
6572 width index too.
6573
6574 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
6575
65762009-01-12 Juanma Barranquero <lekktu@gmail.com>
6577
6578 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
6579 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
6580 functions, use sizeof.
6581
65822009-01-12 Martin Rudalics <rudalics@gmx.at>
6583
6584 * keyboard.c (read_char): Fix case where last_nonmenu_event
6585 returned a bad value with submenus. (Bug#447)
6586
65872009-01-12 Chong Yidong <cyd@stupidchicken.com>
6588
6589 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
6590 family, clear the font width index too.
6591
65922009-01-11 Jason Rumney <jasonr@gnu.org>
6593
6594 * keyboard.c (cmd_error_internal): Exit when errors occur before
6595 frame creation and not in daemon mode. (Bug#1836)
6596
65972009-01-10 Chong Yidong <cyd@stupidchicken.com>
6598
6599 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
6600 of a display vector, backtrack.
6601 (try_window_reusing_current_matrix): Check glyph type before
6602 referencing charpos member.
6603
66042009-01-10 Eli Zaretskii <eliz@gnu.org>
6605
6606 Fix Bug #876:
6607
6608 * coding.c (inhibit_null_byte_detection): New variable.
6609 (detect_coding, detect_coding_system): Don't pay attention to null
6610 bytes if inhibit_null_byte_detection is non-zero.
6611 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
6612 <inhibit-iso-escape-detection>: Doc fix.
6613
66142009-01-09 Jason Rumney <jasonr@gnu.org>
6615
6616 * w32font.c (add_font_entity_to_list): Don't report unknown
6617 Windows charset as any unrecognized registry. (Bug#1548)
6618 Only report Unicode Plane 2 fonts as unicode-sip.
6619
66202009-01-09 Chong Yidong <cyd@stupidchicken.com>
6621
6622 * xfaces.c (Fx_font_family_list): Delete function.
6623 Move compatibility version to faces.el.
6624
6625 * font.c (Ffont_family_list): Return a list of strings, not symbols.
6626
66272009-01-09 Martin Rudalics <rudalics@gmx.at>
6628
6629 * frame.c (x_set_frame_parameters): Remember requested value for
6630 fullscreen before it's reset by the parameter handler.
6631
66322009-01-09 Glenn Morris <rgm@gnu.org>
6633
6634 * keyboard.c (last_command_char): For clarity, rename to...
6635 (last_command_event): ... and update all users.
6636 (last_input_char): For clarity, rename to...
6637 (last_input_event): ... and update all users.
6638 (last-command-char, last-input-char): Move to subr.el as aliases.
6639 * cmds.c, commands.h: Update for last_command_char rename.
6640
66412009-01-08 Chong Yidong <cyd@stupidchicken.com>
6642
6643 * font.c (font_open_for_lface): Handle unspecified height attribute.
6644
66452009-01-08 Jason Rumney <jasonr@gnu.org>
6646
6647 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
6648 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
6649 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
6650 Don't declare.
6651 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
6652 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
6653
66542009-01-07 Kenichi Handa <handa@m17n.org>
6655
6656 * fileio.c (Finsert_file_contents): In the case of replace,
6657 remember the coding system used for decoding in
6658 coding_system (Bug#1039).
6659
6660 * coding.c (decode_coding_utf_8): Check byte_after_cr before
6661 breaking the loop. (Bug#870)
6662 (decode_coding_utf_16, decode_coding_emacs_mule)
6663 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
6664 (decode_coding_charset): Likewise.
6665
66662009-01-05 Martin Rudalics <rudalics@gmx.at>
6667
6668 * frame.c (x_set_frame_parameters): Make sure height (width) get
6669 applied when fullwidth (fullheight) is set. (Bug#1522)
6670
66712009-01-04 Juanma Barranquero <lekktu@gmail.com>
6672
6673 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
6674 (utc_base): Declare as ULONGLONG, not long double.
6675 (convert_time_raw): Delete.
6676 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
6677 (initialize_utc_base): New function.
6678 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
6679 (convert_from_time_t): Use initialize_utc_base; compute result with
6680 64-bit arithmetic.
6681 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
6682
66832009-01-03 Eli Zaretskii <eliz@gnu.org>
6684
6685 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
6686 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
6687 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
6688 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
6689 [!subprocesses]: Define.
6690 (syms_of_process) [!subprocesses]: Intern and staticpro them.
6691 (Flist_system_processes, Fsystem_process_attributes)
6692 [!subprocesses]: Call list_system_processes and
6693 system_process_attributes instead of returning Qnil.
6694
6695 * dosfns.c (system_process_attributes, list_system_processes):
6696 New functions.
6697
6698 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
6699
6700 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
6701 Don't use the default (no-op) implementation.
6702
67032009-01-03 Jason Rumney <jasonr@gnu.org>
6704
6705 * keyboard.c (parse_modifiers_uncached): Wheel events are
6706 clicks (bug#687).
6707
6708 * w32term.c (x_query_colors, x_query_color): New functions.
6709
6710 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
6711 (svg_load_image): Cast returned pointers from dynamically loaded
6712 functions. Eliminate W32 specific code.
6713
67142009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
6715
6716 * nsfns.m (x_set_foreground_color, x_set_background_color)
6717 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
6718 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
6719 x_ prefix instead of ns_. Update references.
6720 (syms_of_nsfns): Add a FIXME comment.
6721
6722 * nsterm.m (x_set_cursor_type): New prototype.
6723 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
6724
6725 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
6726 for Solaris instead of incorrectly providing Qutime and Qcutime.
6727
67282009-01-02 Eli Zaretskii <eliz@gnu.org>
6729
6730 * w32.c (process_times): Compute sum of utime and stime.
6731 (system_process_attributes): Add Qtime to the alist.
6732
6733 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
6734 and add them to the alist.
6735
6736 * process.c (top level) <Qtime, Qctime>: New variables.
6737 (syms_of_process): staticpro them.
6738 (Fsystem_process_attributes): Add their documentation to the doc
6739 string.
6740
6741 * process.h: Declare Qtime and Qctime.
6742
67432009-01-02 Jason Rumney <jasonr@gnu.org>
6744
6745 * image.c (Qgobject): New symbol.
6746 (syms_of_image): Initialize it.
6747 (init_svg_functions): Load some functions from gobject library.
6748
67492009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
6750
6751 * frame.c (make_terminal_frame): Remove redundant code and useless
6752 block.
6753
67542009-01-01 Andreas Schwab <schwab@suse.de>
6755
6756 * process.c (conv_sockaddr_to_lisp): Add workaround for
6757 getsockname bug on BSD.
6758
67592009-01-01 Chong Yidong <cyd@stupidchicken.com>
6760
6761 * xfns.c (x_create_tip_frame): Set border width of the X window.
6762
6763 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
6764
67652009-01-01 Jason Rumney <jasonr@gnu.org>
6766
6767 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
6768 Don't block input, as per earlier xterm.c changes.
6769
67702008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
6771
6772 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
6773 (ns_appkit_version_int): New function.
6774 (x-server-version): Use ns_appkit_version_int and follow 21+
6775 convention of returning 3 integers.
6776
67772008-12-30 Kenichi Handa <handa@m17n.org>
6778
6779 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
6780 (CHAR_SURROGATE_PAIR_P): New macro.
6781
6782 * font.h (struct font_driver): New member get_variation_glyphs.
6783
6784 * font.c (font_range): Don't require a font for a variation selector.
6785 (Ffont_variation_glyphs): New function.
6786 (syms_of_font): Defsubr it.
6787
6788 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
6789 ftfont_variation_glyphs.
6790 (setup_otf_gstring): New function.
6791 (ftfont_drive_otf): Use it.
6792 (ftfont_shape_by_flt): Handle variation selector.
6793 (ftfont_variation_glyphs): New function.
6794
67952008-12-30 Martin Rudalics <rudalics@gmx.at>
6796
6797 * frame.c (Vemacs_iconified): Remove.
6798
67992008-12-30 Jason Rumney <jasonr@gnu.org>
6800
6801 * frame.c (store_frame_param, x_get_arg): Enable newer code on
6802 WINDOWSNT too, as related changes have already been synced. (Bug#117)
6803
68042008-12-30 Chong Yidong <cyd@stupidchicken.com>
6805
6806 * indent.c (Fvertical_motion): Don't advance iterator if we have
6807 reseated to the desired position.
6808
6809 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
6810 checking for pos match.
6811
68122008-12-30 Kenichi Handa <handa@m17n.org>
6813
6814 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
6815 just get the low 8-bit of the code.
6816
6817 * font.c (font_intern_prop): Validate str as multibyte.
6818
68192008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
6820
6821 * dispextern.h (struct face): Move lface and hash from the middle
6822 of bitfields.
6823
6824 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
6825
68262008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
6827
6828 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
6829 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
6830 instead of intervals.h.
6831
68322008-12-26 Andreas Schwab <schwab@suse.de>
6833
6834 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
6835 cons.
6836
68372008-12-26 Martin Rudalics <rudalics@gmx.at>
6838
6839 * textprop.c (Qminibuffer_prompt): New variable.
6840 (syms_of_textprop): Initialize it.
6841 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
6842 in minibuffer-prompt face. (Bug#1662)
6843
68442008-12-25 Jason Rumney <jasonr@gnu.org>
6845
6846 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
6847
68482008-12-24 Jason Rumney <jasonr@gnu.org>
6849
6850 * ralloc.c (r_alloc_reset_variable): New function.
6851
6852 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
6853 record of what points where. (Bug#716)
6854
68552008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
6856
6857 * minibuf.c (read_minibuf): Follow the non-interactive case when
6858 running as a daemon, before detaching.
6859
68602008-12-22 Andreas Schwab <schwab@suse.de>
6861
6862 * buffer.c (init_buffer): Use realloc instead of xrealloc.
6863 * gtkutil.c (free_widget_value): Use xfree instead of free.
6864
68652008-12-22 Martin Rudalics <rudalics@gmx.at>
6866
6867 * frame.c (delete_frame): New function derived from
6868 Fdelete_frame to handle Qnoelisp value for FORCE argument.
6869 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
6870 (Fdelete_frame): Call delete_frame. Remove line from doc-string
6871 saying that FORCE non-nil doesn't run `delete-frame-functions'.
6872 * frame.h: Extern delete_frame.
6873 * window.c (window_loop):
6874 * terminal.c (delete_terminal):
6875 * xterm.c (x_connection_closed):
6876 * xfns.c (Fx_hide_tip):
6877 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
6878
68792008-12-21 Jason Rumney <jasonr@gnu.org>
6880
6881 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
6882 when character maps to .notdef character.
6883
68842008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
6885
6886 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
6887
68882008-12-20 Jason Rumney <jasonr@gnu.org>
6889
6890 * frame.c (Fmake_terminal_frame): Raise an error when called from
6891 a graphical frame on Windows. (Bug#1325)
6892
68932008-12-20 Jan Djärv <jan.h.d@swipnet.se>
6894
6895 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
6896
68972008-12-20 Chong Yidong <cyd@stupidchicken.com>
6898
6899 * minibuf.c (Fread_buffer): Doc fix.
6900
69012008-12-20 Jason Rumney <jasonr@gnu.org>
6902
6903 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
6904 server name in UNC paths. (Bug#719)
6905
6906 * coding.c (decode_coding): Clear chars_at_source flag when using
6907 charbuf. (Bug#1035)
6908
69092008-12-19 Daniel Engeler <engeler@gmail.com>
6910
6911 * sysdep.c (serial_configure): Fix typo.
6912
69132008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
6914
6915 * sysdep.c: Include alloca.h.
6916 (system_process_attributes): Add implementation for Solaris.
6917
6918 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
6919
69202008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
6921
6922 Reorganize implementation of Flist_system_processes and
6923 Fsystem_process_attributes. No functional changes.
6924 * process.c: Don't #include pwd.h, grp.h and limits.h.
6925 (Flist_system_processes): Just call list_system_processes.
6926 (Fsystem_process_attributes): Just call system_process_attributes.
6927 (procfs_list_system_processes, time_from_jiffies)
6928 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
6929 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
6930
6931 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
6932 (list_system_processes): Rename from
6933 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
6934 Provide a do nothing implementation.
6935 (system_process_attributes): Rename from
6936 procfs_list_system_processes.
6937 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
6938 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
6939
6940 * w32.c (list_system_processes): Rename from
6941 w32_list_system_processes.
6942 (system_process_attributes): Rename from
6943 w32_system_process_attributes.
6944
6945 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
6946
6947 * process.h (w32_list_system_processes)
6948 (w32_system_process_attributes): Remove.
6949 (list_system_processes, system_process_attributes):
6950 New prototypes.
6951
69522008-12-19 Kenichi Handa <handa@m17n.org>
6953
6954 * xfont.c (xfont_decode_coding_xlfd): New function.
6955 (xfont_encode_coding_xlfd): New function.
6956 (xfont_list_pattern): Decode XLFD by iso-8859-1.
6957 (xfont_list): Decode and encode XLFD by iso-8859-1.
6958 (xfont_match): Likewise.
6959 (xfont_list_family): Likewise.
6960 (xfont_open): Likewise.
6961
6962 * ftfont.c (ftfont_open): Generate a multibyte string if given
6963 names are utf-8.
6964
6965 * xftfont.c (xftfont_open): Generate a multibyte string if given
6966 names are utf-8.
6967
69682008-12-18 Jan Djärv <jan.h.d@swipnet.se>
6969
6970 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
6971 changed.
6972 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
6973 clicked on a detached tool bar button.
6974
69752008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
6976
6977 * emacs.c (main): Print and error and exit when no data is read
6978 from the pipe.
6979
69802008-12-17 Jason Rumney <jasonr@gnu.org>
6981
6982 * w32font.c (w32font_has_char): Always return -1.
6983
69842008-12-16 Kenichi Handa <handa@m17n.org>
6985
6986 * font.c (font_open_entity): Fix previous change.
6987
69882008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
6989
6990 * process.c: Include <limits.h>.
6991
69922008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
6993
6994 * font.c (font_update_drivers): Fix mistake in reconstructing the
6995 driver list.
6996
69972008-12-16 Chong Yidong <cyd@stupidchicken.com>
6998
6999 * font.c (font_clear_cache): Fix format of font cache data.
7000
70012008-12-15 Chong Yidong <cyd@stupidchicken.com>
7002
7003 * xftfont.c (xftfont_open): Free Xft font pattern if
7004 XftFontOpenPattern fails.
7005
7006 * xterm.c (x_free_frame_resources): Remove extraneous call to
7007 free_frame_faces.
7008
70092008-12-13 Chong Yidong <cyd@stupidchicken.com>
7010
7011 * xterm.c (x_delete_display): Move xim_close_dpy call to
7012 x_delete_terminal.
7013 (x_delete_terminal): Call xim_close_dpy.
7014
70152008-12-13 Jason Rumney <jasonr@gnu.org>
7016
7017 * w32font.c (intern_font_name): New function.
7018 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
7019 (w32font_open_internal, Fx_select_font): Decode font name.
7020 (fill_in_logfont, list_all_matching_fonts): Encode font name.
7021
7022 * w32font.h (intern_font_name): Declare new function.
7023
7024 * w32uniscribe.c (add_opentype_font_name_to_list):
7025 Use intern_font_name.
7026
70272008-12-13 Chong Yidong <cyd@stupidchicken.com>
7028
7029 * frame.c (Fdelete_frame): Call free_font_driver_list.
7030
7031 * font.c (free_font_driver_list): Implement missing function.
7032
7033 * w32term.c (w32_term_init): Don't initialize the image cache
7034 here; it will be done in init_frame_faces.
7035
7036 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
7037 (struct x_display_info): Remove unused member null_pixel. New
7038 member xim_callback_data.
7039
7040 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
7041 (xim_initialize): Save pointer to callback function data.
7042 (xim_close_dpy): Free callback function data. Call XCloseIM,
7043 reverting 2008-11-04 change by David Smith.
7044 (x_term_init): Don't initialize the image cache here; it will be
7045 done in init_frame_faces. Remove ancient "null_pixel" cruft.
7046 (x_delete_display): Free x_dnd_atoms member.
7047
70482008-12-13 Kenichi Handa <handa@m17n.org>
7049
7050 * font.c (font_rescale_ratio): Moved from xfaces.c.
7051 Argument type changed. Handle a font-spec too.
7052 (font_score): Check Vface_font_rescale_alist.
7053 (font_open_entity): Likewise. (Bug#1547)
7054
7055 * xfaces.c (font_rescale_ratio): Moved to font.c.
7056
70572008-12-13 Chong Yidong <cyd@stupidchicken.com>
7058
7059 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
7060
70612008-12-12 Jason Rumney <jasonr@gnu.org>
7062
7063 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
7064 Vwindow_system_version to the real w32 major version.
7065
70662008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
7067
7068 * term.c (init_tty): Move setting the terminal name before the
7069 potential user: maybe_fatal.
7070
70712008-12-11 Chong Yidong <cyd@stupidchicken.com>
7072
7073 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
7074 all callers changed. Call free_frame_faces to free the face cache.
7075
70762008-12-11 Jason Rumney <jasonr@gnu.org>
7077
7078 * w32font.c (fill_in_logfont): Don't assume symbol script means
7079 SYMBOL_CHARSET. (Bug#547)
7080
7081 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
7082 size for surrogates. (Bug#1096, bug#872)
7083
70842008-12-11 Juanma Barranquero <lekktu@gmail.com>
7085
7086 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
7087
70882008-12-11 Juanma Barranquero <lekktu@gmail.com>
7089
7090 * process.c (Fsystem_process_attributes, syms_of_process):
7091 Fix typo in name of Ssystem_process_attributes.
7092 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
7093
70942008-12-11 Juanma Barranquero <lekktu@gmail.com>
7095
7096 * syntax.c (Fmodify_syntax_entry): Doc fix.
7097
70982008-12-10 Juanma Barranquero <lekktu@gmail.com>
7099
7100 * font.c (Ffont_spec): Move usage to end of docstring.
7101
71022008-12-10 Jason Rumney <jasonr@gnu.org>
7103
7104 * w32font.c (Qcham): New symbol.
7105 (font_supported_scripts): Add cham, and comments for other new
7106 scripts in bitfield from OpenType spec.
7107 (add_font_entity_to_list): Limit unicode-sip fonts to those that
7108 contain characters beyond the bmp.
7109
71102008-12-10 Kenichi Handa <handa@m17n.org>
7111
7112 * ftfont.c (fc_charset_table): Add "unicode-sip".
7113 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7114 Qunicode_sip.
7115
71162008-12-10 Juanma Barranquero <lekktu@gmail.com>
7117
7118 * coding.c (QCdefault_char): Rename from QCdefalut_char.
7119 (Fcoding_system_put): Use QCdefault_char.
7120 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
7121
71222008-12-09 Chong Yidong <cyd@stupidchicken.com>
7123
7124 * xftfont.c (syms_of_xftfont): Fix typo.
7125
7126 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
7127
71282008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
7129
7130 * emacs.c (main): Close daemon_pipe on exec.
7131
71322008-12-08 Chong Yidong <cyd@stupidchicken.com>
7133
7134 * termchar.h (struct tty): New members termcap_term_buffer and
7135 termcap_strings_buffer.
7136
7137 * term.c (encode_terminal_code): Free any previous memory blocks
7138 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
7139 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
7140 All callers changed.
7141 (init_tty): Store termcap data and string buffers in new struct
7142 tty members termcap_term_buffer and termcap_strings_buffer.
7143 (delete_tty): Free them.
7144 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
7145
71462008-12-07 Seiji Zenitani <zenitani@mac.com>
7147
7148 * nsfns.m (ns_set_background_color): Remove code duplication.
7149 It was a substitute for face-transparency on OS X 10.3.
7150
71512008-12-06 Chong Yidong <cyd@stupidchicken.com>
7152
7153 * coding.c (make_conversion_work_buffer): Disable buffer
7154 modification hooks in the work buffer.
7155
71562008-12-05 Eli Zaretskii <eliz@gnu.org>
7157
7158 * process.c (procfs_system_process_attributes): If `nread' has a
7159 negative value, assign zero to it.
7160
71612008-12-05 Chong Yidong <cyd@stupidchicken.com>
7162
7163 * eval.c (Vdebug_on_error): Doc fix.
7164
71652008-12-05 Kenichi Handa <handa@m17n.org>
7166
7167 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
7168 second character is a combining character.
7169
71702008-12-05 Eli Zaretskii <eliz@gnu.org>
7171
7172 * process.c (procfs_system_process_attributes): Don't use cmd,
7173 cmdsize, and q without initializing them first.
7174
71752008-12-04 Jason Rumney <jasonr@gnu.org>
7176
7177 * w32font.c (w32font_draw): Initialize orig_clip before getting
7178 it, and delete it when finished.
7179
71802008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
7181
7182 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
7183 case when running as a daemon before detaching.
7184
71852008-12-03 Juanma Barranquero <lekktu@gmail.com>
7186
7187 * w32.c (init_environment): Don't unload library shell32.dll.
7188
71892008-12-03 Kenichi Handa <handa@m17n.org>
7190
7191 * font.c (font_at): Set `multibyte' at first.
7192
7193 * coding.c (decode_coding_charset): Check type of an element of
7194 vector VALIDS.
7195 (encode_coding_emacs_mule): Be sure to set `code'.
7196
7197 * fontset.c (face_for_char): Handle invalid charset property correctly.
7198 (font_for_char): Likewise.
7199
72002008-12-03 Chong Yidong <cyd@stupidchicken.com>
7201
7202 * font.c (Fopen_font): Compute pixel size correctly.
7203 (font_update_lface): Handle fonts with corrupted size specs,
7204 i.e. non-int and non-float.
7205
7206 * ftfont.c (ftfont_match): Initialize entity variable.
7207 (ftfont_resolve_generic_family): Avoid using uninitialized var.
7208 (ftfont_list_family): Initialize list var earlier.
7209
7210 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
7211
7212 * xterm.c (x_draw_glyph_string): Fall back on
7213 underline_minimum_offset for underline position.
7214
72152008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
7216
7217 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
7218
7219 * character.c (c_string_width): Specify the type for LEN.
7220
72212008-12-03 Kenichi Handa <handa@m17n.org>
7222
7223 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
7224 (decode_coding_utf_8): Likewise.
7225 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
7226 (produce_chars): Initialize consumed_chars to 0.
7227
72282008-12-02 Chong Yidong <cyd@stupidchicken.com>
7229
7230 * keyboard.c (make_lispy_position): Only use PT if the selected
7231 window is current.
7232
72332008-12-02 Andreas Schwab <schwab@suse.de>
7234
7235 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
7236
7237 * doprnt.c (doprnt1): Fix size of charbuf.
7238
72392008-12-02 Chong Yidong <cyd@stupidchicken.com>
7240
7241 * keyboard.c (timer_check): Revert last change.
7242
72432008-12-02 Juanma Barranquero <lekktu@gmail.com>
7244
7245 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
7246
72472008-12-01 Juanma Barranquero <lekktu@gmail.com>
7248
7249 * makefile.w32-in: Update dependencies.
7250 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
7251
72522008-12-01 Andreas Schwab <schwab@suse.de>
7253
7254 * font.c (register_font_driver): Use xmalloc.
7255 (font_put_frame_data): Likewise.
7256
72572008-12-01 Chong Yidong <cyd@stupidchicken.com>
7258
7259 * xfaces.c (realize_x_face): Make abort condition clearer.
7260
7261 * gtkutil.c (update_frame_tool_bar): Initialize variable.
7262
72632008-11-30 Chong Yidong <cyd@stupidchicken.com>
7264
7265 * keyboard.c (timer_check): After a timer runs, ensure that the
7266 selected window's buffer is current.
7267
72682008-11-30 Juanma Barranquero <lekktu@gmail.com>
7269
7270 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
7271 It was accidentally restored by the Unicode merge.
7272
7273 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
7274
72752008-11-29 Juanma Barranquero <lekktu@gmail.com>
7276
7277 * w32proc.c: Include "coding.h".
7278 (Fw32_short_file_name): Encode filename passed to Windows API.
7279 (Fw32_long_file_name): Encode filename passed to Windows API and
7280 decode back the result. (Bug#1433)
7281
72822008-11-29 Kenichi Handa <handa@m17n.org>
7283
7284 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
7285 not before accessing it.
7286
7287 * charset.c (Fdefine_charset_internal): After calculating
7288 min_char, max_char, and fastmap, copy the charset structure again.
7289 (encode_char): Fix the previous change.
7290
72912008-11-28 Seiji Zenitani <zenitani@mac.com>
7292
7293 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
7294
7295 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
7296
7297 * nsterm.m (x_set_frame_alpha): New function.
7298
72992008-11-27 Eli Zaretskii <eliz@gnu.org>
7300
7301 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
7302
73032008-11-27 Juanma Barranquero <lekktu@gmail.com>
7304
7305 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
7306 pointer to check_face_name.
7307
73082008-11-27 Kenichi Handa <handa@m17n.org>
7309
7310 * category.h (SET_CATEGORY_SET): Call set_category_set.
7311 (set_category_set): Extern it.
7312
7313 * category.c (hash_get_category_set): New function.
7314 (Fmodify_category_entry): Adjusted for the change of
7315 char_table_ref_and_range. Call hash_get_category_set to get a
7316 category set to store in the table.
7317
7318 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
7319 Funify_charset.
7320
7321 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
7322 (DECODE_CHAR): Check if the decoder vector is ready.
7323 (ENCODE_CHAR): Check if the encoder char-table is ready.
7324 (maybe_unify_char): Extern it.
7325
7326 * charset.c (Vchar_unified_charset_table): Delete it.
7327 (inhibit_load_charset_map): New variable.
7328 (temp_charset_work): New variable.
7329 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
7330 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
7331 New macros.
7332 (load_charset_map): Meaning of control_flag changed. If
7333 inhibit_load_charset_map is nonzero, setup a table in
7334 temp_charset_work.
7335 (load_charset): New argument control_flag.
7336 (map_charset_for_dump): New function.
7337 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
7338 map_charset_for_dump.
7339 (Fdefine_charset_internal): If the charset method is MAP, load
7340 mapping tables by calling load_charset.
7341 (Funify_charset): Don't load a mapping table but directly set
7342 Vchar_unify_table.
7343 (maybe_unify_char): New function.
7344 (decode_char): Don't handle the deleted method MAP_DEFERRED.
7345 Handle the case of inhibit_load_charset_map being nonzero.
7346 (encode_char): Don't handle the deleted method MAP_DEFERRED.
7347 Handle the case of inhibit_load_charset_map being nonzero.
7348 (Fclear_charset_maps): Just free temp_charset_work.
7349 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
7350 variable.
7351
7352 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
7353 change of char_table_ref_and_range.
7354 (char_table_ref_and_range): Change the meaning of argument FROM
7355 and TO. Now the caller must provide initial values for *FROM
7356 and *TO.
7357
7358 * fontset.c (fontset_add): Adjusted for the change of
7359 char_table_ref_and_range.
7360 (fontset_get_font_group): Likewise.
7361 (Ffontset_info): Likewise.
7362
7363 * keymap.c (describe_vector): Adjusted for the change of
7364 char_table_ref_and_range. For char-table, put boundary between
7365 non-ASCII and 8-bit characters.
7366
7367 * print.c (print_object): For bool-vector, delete unnecessary
7368 check of ASCII_BYTE_P.
7369
73702008-11-26 Jason Rumney <jasonr@gnu.org>
7371
7372 * w32font.c (w32font_open_internal): Don't include external
7373 leading in font height. (Bug#879)
7374
73752008-11-26 Glenn Morris <rgm@gnu.org>
7376
7377 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
7378 redefinition with ifdef. (Bug#1383)
7379
73802008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7381
7382 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
7383
73842008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
7385
7386 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
7387 New EmacsView methods.
7388 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
7389 Fixes bug #1048,1357,1414.
7390
73912008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7392
7393 Fix bug #1362.
7394 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
7395 is not an indexed color.
7396 * nsterm.m (free_indexed_color): Add argument checking.
7397 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
7398
73992008-11-24 Chong Yidong <cyd@stupidchicken.com>
7400
7401 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
7402 Document confirm-after-completion value for
7403 minibuffer-completion-confirm.
7404
74052008-11-24 Jason Rumney <jasonr@gnu.org>
7406
7407 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
7408 warning.
7409
74102008-11-23 Jason Rumney <jasonr@gnu.org>
7411
7412 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
7413 restored before returning.
7414
7415 * w32font.c (check_face_name): New function.
7416 (add_font_entity_to_list): Use it to filter out common substituted
7417 fonts. (Bug#642)
7418
74192008-11-22 Martin Rudalics <rudalics@gmx.at>
7420
7421 * buffer.c (Fswitch_to_buffer): Reword and mention new option
7422 confirm-nonexistent-file-or-buffer in doc-string.
7423
74242008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
7425
7426 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
7427 Fix copy/paste typo. Add checks.
7428
74292008-11-21 Kenichi Handa <handa@m17n.org>
7430
7431 * coding.c (detect_coding_iso_2022): Reject invalid composition
7432 sequence.
7433 (DECODE_COMPOSITION_START): If the current source is the last
7434 block, and the current composition doesn't end, regard this
7435 sequence as invalid.
7436 (decode_coding_iso_2022): Handle invalid composition sequence.
7437
74382008-11-20 Martin Rudalics <rudalics@gmx.at>
7439
7440 * window.c (coordinates_in_window): Don't return
7441 ON_VERTICAL_BORDER for the rightmost position of a mode/header
7442 line when the window is not the rightmost one. (Bug#1372)
7443
74442008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
7445
7446 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
7447
74482008-11-15 Eli Zaretskii <eliz@gnu.org>
7449
7450 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
7451 and bright_bg if noninteractive is non-zero.
7452
74532008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7454
7455 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
7456 x_draw_glyph_string_background.
7457
7458 * w32term.c (x_draw_glyph_string): Likewise.
7459
74602008-11-15 Chong Yidong <cyd@stupidchicken.com>
7461
7462 * xterm.c (x_draw_glyph_string): Stop drawing the background of
7463 the next glyph string once past the overhang width.
7464
7465 * nsterm.m (ns_draw_glyph_string): Likewise.
7466
7467 * w32term.c (x_draw_glyph_string): Likewise.
7468
74692008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
7470
7471 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
7472 double file close.
7473
74742008-11-14 Martin Rudalics <rudalics@gmx.at>
7475
7476 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
7477 dedicated status of window before attempting to display another
7478 buffer in it.
7479
74802008-11-14 Juanma Barranquero <lekktu@gmail.com>
7481
7482 * msdos.c (Fmsdos_long_file_names):
7483 (syms_of_msdos) <dos-unsupported-char-glyph>:
7484 * dosfns.c (Fint86): Fix typos in docstrings.
7485
74862008-11-14 Eli Zaretskii <eliz@gnu.org>
7487
7488 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
7489
74902008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
7491
7492 * puresize.h (BASE_PURESIZE): Increase to 1260000.
7493
74942008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
7495
7496 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
7497
7498 * frame.h: Negative alpha means "don't touch".
7499
7500 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
7501
7502 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
7503
75042008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
7505
7506 * hftctl.c:
7507 * chpdef.h:
7508 * acldef.h: Remove files used only for systems no longer supported.
7509
7510 * Makefile.in: Fix .o alphabetical ordering.
7511 (hftctl.o): Remove dependency, file removed.
7512 (keymap.o, print.o): Depend on charset.h.
7513
75142008-11-10 Kenichi Handa <handa@m17n.org>
7515
7516 * character.c (Fget_byte): Fix and make it faster for unibyte target.
7517
75182008-11-08 Chong Yidong <cyd@stupidchicken.com>
7519
7520 * dired.c (file_name_completion): If completion_ignore_case is
7521 enabled, ignore case when checking completion-regexp-list.
7522
75232008-11-08 Eli Zaretskii <eliz@gnu.org>
7524
7525 * vm-limit.c (get_lim_data): Fix last change.
7526
75272008-11-08 Kenichi Handa <handa@m17n.org>
7528
7529 * character.c (Fget_byte): New function.
7530 (syms_of_character): Defsubr Fget_byte.
7531
75322008-11-07 Chong Yidong <cyd@stupidchicken.com>
7533
7534 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
7535 cursor position is valid after scrolling.
7536
75372008-11-06 Juanma Barranquero <lekktu@gmail.com>
7538
7539 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
7540
75412008-11-06 Glenn Morris <rgm@gnu.org>
7542
7543 * xterm.c (handle_one_xevent): Don't let popup menus cause
7544 mouse-autoselect-window related window switching. (Bug#1261)
7545
75462008-11-04 David Smith <davidsmith@acm.org> (tiny change)
7547
7548 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
7549
75502008-11-04 Andreas Schwab <schwab@suse.de>
7551
7552 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
7553
75542008-11-03 Chong Yidong <cyd@stupidchicken.com>
7555
7556 * xfns.c (Fx_wm_set_size_hint): New function.
7557
75582008-11-03 Martin Rudalics <rudalics@gmx.at>
7559
7560 * textprop.c (Fprevious_single_char_property_change): Return 0
7561 when there's no change in a string. (Bug#1301)
7562
75632008-11-02 Martin Rudalics <rudalics@gmx.at>
7564
7565 * frame.c (do_switch_frame): New argument NORECORD passed to
7566 Fselect_window.
7567 (Fselect_frame): New argument NORECORD passed to
7568 do_switch_frame.
7569 (Fset_frame_selected_window): New argument NORECORD passed to
7570 Fselect_frame.
7571 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
7572 in call of do_switch_frame.
7573 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
7574 Handle NORECORD argument in call of Fselect_frame.
7575 * lisp.h (do_switch_frame, Fselect_frame)
7576 (Fset_frame_selected_window): Adjust declarations.
7577 * window.c (select_frame_norecord): New function.
7578 (run_window_configuration_change_hook): Use it and call
7579 Fselect_frame with NORECORD set.
7580 (Fselect_window): Pass NORECORD to Fselect_frame.
7581 (Fset_window_configuration): Handle NORECORD argument in call of
7582 do_switch_frame.
7583 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
7584 Fset_frame_selected_window.
7585 * keyboard.c (command_loop_1): Handle NORECORD in call of
7586 Fselect_frame (currently ifdefd).
7587
75882008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
7589
7590 * emacs.c (USAGE2): Untabify.
7591
75922008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
7593
7594 * composite.c (fill_gstring_header): Fix copy/paste typo.
7595
75962008-10-31 Martin Rudalics <rudalics@gmx.at>
7597
7598 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
7599 (Fother_window): Rename argument and rewrite doc-string.
7600 (select_window_norecord): Fix return value. (Bug#1276)
7601
76022008-10-30 Juanma Barranquero <lekktu@gmail.com>
7603
7604 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
7605 new frames overriding foreground for tooltips. Based on similar patch
7606 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
7607
76082008-10-29 Chong Yidong <cyd@stupidchicken.com>
7609
7610 * emacs.c (Fdaemon_initialized): Initialize nfd.
7611
76122008-10-29 Martin Rudalics <rudalics@gmx.at>
7613
7614 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
7615 (Fwindow_text_height): Clarify doc-strings.
7616 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
7617 doc-string of window-scroll-functions.
7618
76192008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
7620
7621 * category.c (syms_of_category): Fix typo in docstring.
7622
76232008-10-28 Juanma Barranquero <lekktu@gmail.com>
7624
7625 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
7626 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
7627 Fix typos in docstrings.
7628
76292008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
7630
7631 * emacs.c (daemon_pipe): Make non-static.
7632 (IS_DAEMON): Move definition ...
7633 * lisp.h (IS_DAEMON): ... here.
7634 (daemon_pipe): Declare.
7635 (is_daemon): Remove.
7636 * dispnew.c (init_display): Use IS_DAEMON.
7637
76382008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
7639
7640 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
7641 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
7642
7643 * emacs.c (is_daemon): Remove.
7644 (main): Don't set is_daemon.
7645 (IS_DAEMON): New macro.
7646 (Fdaemonp, Fdaemon_initialized): Use it.
7647 (Fdaemon_initialized): Write a char into the pipe to make sure the
7648 parent exits.
7649 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
7650
76512008-10-27 Chong Yidong <cyd@stupidchicken.com>
7652
7653 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
7654 over-sized glyph, draw it with the default glyph width.
7655
7656 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
7657 glyph, draw it with the default glyph width.
7658
7659 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
7660 glyph, draw it with the default glyph width.
7661
7662 * xdisp.c (try_scrolling): When computing the distance from the
7663 scroll margin to PT, try moving some distance past the window
7664 bottom before giving up.
7665
76662008-10-27 Martin Rudalics <rudalics@gmx.at>
7667
7668 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
7669 (Fset_window_buffer): Explain in doc-string that a window can be
7670 "strongly" dedicated to its buffer.
7671
76722008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
7673
7674 * emacs.c (daemon_name): New variable.
7675 (main): Deal with --daemon=SERVER_NAME.
7676 (Fdaemonp): Return a name if one was passed to --daemon.
7677
76782008-10-26 Romain Francoise <romain@orebokech.com>
7679
7680 * emacs.c (daemon_pipe): New variable.
7681 (main): Create a pipe before forking, make the parent exit only after
7682 the child has closed its end of the pipe. Move closing the
7683 descriptors ...
7684 (Fdaemon_initialized): ... here. New function.
7685
76862008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
7687
7688 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
7689 the previous unoptimized table.
7690
7691 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
7692 the distinction between non-nil and non-t value of `dedicated'.
7693
76942008-10-25 Chong Yidong <cyd@stupidchicken.com>
7695
7696 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
7697 read_char_minibuf_menu_text is large enough to hold the menu string.
7698
76992008-10-25 Martin Rudalics <rudalics@gmx.at>
7700
7701 * window.c (Fget_buffer_window, Fdelete_windows_on)
7702 (Freplace_buffer_in_windows): Make buffer argument optional and
7703 rename to buffer_or_name.
7704
77052008-10-24 Chong Yidong <cyd@stupidchicken.com>
7706
7707 * xdisp.c (handle_single_display_spec, handle_display_prop):
7708 Undo 2005-05-16 change.
7709 (handle_stop): Pop iterator if it's loaded with an empty string.
7710 (get_overlay_strings_1): Don't save iterator if it's loaded with
7711 an empty string (bug#1201).
7712
77132008-10-24 Kenichi Handa <handa@m17n.org>
7714
7715 * ftfont.c (ftfont_otf_features): Fix previous change.
7716 (ftfont_otf_capability): Check FeatureList.FeatureCount before
7717 calling ftfont_otf_features.
7718
77192008-10-24 Kenichi Handa <handa@m17n.org>
7720
7721 * font.c (font_match_p): Fix for the case that a vector of
7722 characters is in script-representative-chars.
7723
77242008-10-24 Michael Albinus <michael.albinus@gmx.de>
7725
7726 * dbusbind.c (xd_in_read_queued_messages): New variable.
7727 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
7728 (xd_read_queued_messages): Catch Qdbus_error from the macros.
7729 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
7730 macro. (Bug#1186)
7731
77322008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
7733
7734 * s/sol2-10.h: New file.
7735
77362008-10-23 Juanma Barranquero <lekktu@gmail.com>
7737
7738 * xdisp.c (fill_glyph_string): Fix typo in source (though the
7739 poor beast has survived 9+ years and the jump from xterm.c!).
7740
77412008-10-23 Martin Rudalics <rudalics@gmx.at>
7742
7743 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
7744 Reword doc-string.
7745 (Fbury_buffer): In doc-string say what happens to the buffer's window.
7746
77472008-10-23 Juanma Barranquero <lekktu@gmail.com>
7748
7749 * character.c (syms_of_character) <script-representative-chars>:
7750 <unicode-category-table>: Doc fixes.
7751
77522008-10-23 Noah Friedman <friedman@splode.com>
7753
7754 * coding.c (make_conversion_work_buffer): Check that
7755 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
7756 Fget_buffer_create.
7757
77582008-10-23 Kenichi Handa <handa@m17n.org>
7759
7760 * font.c (font_add_log): Check the values of extra properties.
7761
77622008-10-22 Martin Rudalics <rudalics@gmx.at>
7763
7764 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
7765 Reword doc-string.
7766 (Fset_window_parameter): Use NILP.
7767 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
7768 (Frecenter): Use "selected" instead of "current" window in doc-strings.
7769
77702008-10-22 Juanma Barranquero <lekktu@gmail.com>
7771
7772 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
7773
77742008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7775
7776 * nsfns.m (ns_appkit_version): New function.
7777 (x-server-version): Use it.
7778 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
7779 (x-server-vendor): Don't check_ns().
7780
7781 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
7782
77832008-10-22 Juanma Barranquero <lekktu@gmail.com>
7784
7785 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
7786 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
7787
77882008-10-22 Kenichi Handa <handa@m17n.org>
7789
7790 * syntax.c (scan_words): Call word_boundary_p instead of comparing
7791 scripts.
7792
7793 * category.c (word_boundary_p): Check scripts instead of charset.
7794 Handle nil value in word-separating-categories and
7795 word-combining-categories.
7796 (syms_of_category): Fix docstrings of word-separating-categories
7797 and word-combining-categories.
7798
77992008-10-21 Eli Zaretskii <eliz@gnu.org>
7800
7801 * coding.c (Fencode_coding_region, Fdecode_coding_region)
7802 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
7803
78042008-10-21 Martin Rudalics <rudalics@gmx.at>
7805
7806 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
7807 Rename arg "buffer" to "buffer_or_name".
7808 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
7809 it optional.
7810 (no_switch_window): Remove since the return value is not used.
7811 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
7812 Consider window as dedicated when Fwindow_dedicated_p returns a
7813 non-nil value.
7814 * lisp.h: Remove prototype for no_switch_window.
7815
78162008-10-21 Jan Djärv <jan.h.d@swipnet.se>
7817
7818 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
7819 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
7820
78212008-10-21 Kenichi Handa <handa@m17n.org>
7822
7823 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
7824 check Vlatin_extra_code_table.
7825
78262008-10-20 Eli Zaretskii <eliz@gnu.org>
7827
7828 * fileio.c (Fset_file_modes): Doc fix.
7829
78302008-10-19 Michael Albinus <michael.albinus@gmx.de>
7831
7832 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
7833 in arrays.
7834
78352008-10-19 Martin Rudalics <rudalics@gmx.at>
7836
7837 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
7838 Mention kill-buffer in doc-string.
7839 (Fset_window_buffer): Reinsert tem check removed in last commit.
7840 (Fenlarge_window, Fshrink_window): Have argument names and
7841 doc-string follow Elisp manual more closely.
7842
78432008-10-18 Eli Zaretskii <eliz@gnu.org>
7844
7845 * fileio.c (Fset_file_modes): Doc fix.
7846
78472008-10-18 Martin Rudalics <rudalics@gmx.at>
7848
7849 * window.c (Fwindow_width, Fset_window_start)
7850 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
7851 (Fdelete_windows_on, Freplace_buffer_in_windows):
7852 Make doc-strings follow code and Elisp manual more closely.
7853 (Fwindow_dedicated_p): Make window argument optional.
7854 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
7855 (Fset_window_buffer): Respect any non-nil dedicated value for
7856 window. Rename "buffer" argument to "buffer_or_name".
7857
78582008-10-18 Ulrich Mueller <ulm@gentoo.org>
7859
7860 * m/sh3.h: New file, machine description for SuperH.
7861
78622008-10-17 Martin Rudalics <rudalics@gmx.at>
7863
7864 * window.c (Fsplit_window): Rename arg horflag to horizontal.
7865
78662008-10-17 Kenichi Handa <handa@m17n.org>
7867
7868 * ftfont.c (ftfont_otf_features): Fix indexing
7869 gsub_gpos->FeatureList.Feature. Check the validity of indices.
7870
78712008-10-16 Magnus Henoch <mange@freemail.hu>
7872
7873 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
7874 (Fdbus_call_method_asynchronously): Ditto.
7875 This change makes C-h f display the argument list.
7876
78772008-10-16 Chong Yidong <cyd@stupidchicken.com>
7878
7879 * fileio.c (Fexpand_file_name): Doc fix.
7880
7881 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
7882 of :foreground and :background equivalent to unspecified (20.x
7883 compatibility).
7884
78852008-10-15 Eli Zaretskii <eliz@gnu.org>
7886
7887 * buffer.c (syms_of_buffer): Doc fix.
7888
78892008-10-14 Kenichi Handa <handa@m17n.org>
7890
7891 * font.c (font_clear_prop): When clearing font width, clear the
7892 average width field too.
7893
78942008-10-12 Andreas Schwab <schwab@suse.de>
7895
7896 * ftfont.c (ftfont_shape_by_flt): Make static.
7897 * ftfont.h (ftfont_shape_by_flt): Don't declare.
7898
7899 * font.c: Don't include <m17n-flt.h>.
7900
79012008-10-10 Eli Zaretskii <eliz@gnu.org>
7902
7903 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
7904
79052008-10-09 Eli Zaretskii <eliz@gnu.org>
7906
7907 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
7908 away code.
7909
79102008-10-09 Chong Yidong <cyd@stupidchicken.com>
7911
7912 * dispnew.c (update_text_area): Avoid looping due to large glyph
7913 overhangs (bug#1070).
7914
79152008-10-09 Kenichi Handa <handa@m17n.org>
7916
7917 * fontset.c (face_for_char): If face->fontset is negative, just
7918 return ascii_face.
7919
7920 * font.c (font_delete_unmatched): Fix previous change.
7921 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
7922
79232008-10-09 Martin Rudalics <rudalics@gmx.at>
7924
7925 * frame.c (Fraise_frame): On text-only terminals select frame in
7926 order to make it visible. (Bug#1061)
7927
79282008-10-08 Chong Yidong <cyd@stupidchicken.com>
7929
7930 * fontset.c (fontset_find_font): Check frame validity.
7931
79322008-10-07 Chong Yidong <cyd@stupidchicken.com>
7933
7934 * gtkutil.c (xg_display_open): Reset default display if none exists.
7935 (xg_display_close): Allow Emacs to close all displays (bug#985).
7936
79372008-10-06 Andreas Schwab <schwab@suse.de>
7938
7939 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
7940
79412008-10-06 Chong Yidong <cyd@stupidchicken.com>
7942
7943 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
7944
7945 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
7946
7947 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
7948 during initialization.
7949
79502008-10-04 Eli Zaretskii <eliz@gnu.org>
7951
7952 * xdisp.c (redisplay_internal): If frame switched, redisplay the
7953 whole thing on MSDOS frames as well as on a TTY.
7954
7955 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
7956 well as for TTY.
7957 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
7958 well as on a TTY.
7959
7960 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
7961 as well as for TTY.
7962
7963 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
7964
7965 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
7966 MSDOS frames as well.
7967
79682008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
7969
7970 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
7971 correct arguments.
7972 * menu.c (find_and_return_menu_selection): Add cast.
7973
79742008-10-03 Glenn Morris <rgm@gnu.org>
7975
7976 * emacs.c (USAGE1): Add --daemon.
7977
79782008-10-02 Eli Zaretskii <eliz@gnu.org>
7979
7980 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
7981 100, so it's in percents as advertised.
7982
79832008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
7984
7985 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
7986 (ns_output.current_cursor, ns_output.desired_cursor)
7987 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
7988 (FRAME_NEW_CURSOR_COLOR): Remove.
7989
7990 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
7991 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
7992 enumeration (HOLLOW_BOX_CURSOR, etc.).
7993
7994 * nsterm.m (ns_frame_rehighlight): Remove commented code.
7995 (draw_window_cursor): Simplify code.
7996 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
7997 Don't change cursor type. In latter, call rehighlight instead of doing
7998 updates manually.
7999 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
8000 Use core Emacs cursor types.
8001
8002 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
8003
80042008-10-02 Martin Rudalics <rudalics@gmx.at>
8005
8006 * process.c (Faccept_process_output): Fix doc-string.
8007
80082008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
8009
8010 * gmalloc.c (__sbrk): Also define for uClibc.
8011
8012 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
8013 for uClibc.
8014
80152008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8016
8017 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
8018 styles.
8019 (nsfont_open): Reenable the cache.
8020
80212008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8022
8023 * font.c (font_matching_entity): Reflect ATTRS in font selection.
8024 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
8025
80262008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
8027
8028 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
8029 a suspended terminal.
8030
80312008-09-30 Michael Albinus <michael.albinus@gmx.de>
8032
8033 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
8034
80352008-09-30 Eli Zaretskii <eliz@gnu.org>
8036
8037 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
8038
80392008-09-30 Chong Yidong <cyd@stupidchicken.com>
8040
8041 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
8042 in a continued line coincides with a line beginning.
8043
80442008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
8045
8046 * nsfont.m (nsfont_trait_distance): Fix bug.
8047 (nsfont_list): Return a list rather than a vector (syncs with Handa
8048 changes of 2008-05-14).
8049 (nsfont_open): Improve logging.
8050
80512008-09-29 Andreas Schwab <schwab@suse.de>
8052
8053 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
8054
80552008-09-28 Martin Rudalics <rudalics@gmx.at>
8056
8057 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
8058 name as char-resolve-modifiers.
8059 Reported by: Markus Triska <markus.triska@gmx.at>
8060
80612008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
8062
8063 * dispnew.c (init_display): Return earlier when running as a daemon.
8064
80652008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8066
8067 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
8068
80692008-09-27 Eli Zaretskii <eliz@gnu.org>
8070
8071 * composite.c (Fcomposition_get_gstring)
8072 (Fcompose_region_internal, Fcompose_string_internal)
8073 (Ffind_composition_internal): Doc fix.
8074 (syms_of_composite) <compose-chars-after-function>: Doc fix.
8075 (syms_of_composite) <auto-composition-function>: Doc fix.
8076 (syms_of_composite) <composition-function-table>: Doc fix.
8077
80782008-09-25 Chong Yidong <cyd@stupidchicken.com>
8079
8080 * search.c (wordify): New argument for lax word-ends.
8081 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
8082
80832008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
8084
8085 * lisp.h (is_daemon): Declare.
8086 * dispnew.c (init_display): Do not try to initialize the terminal
8087 when running as a daemon.
8088
80892008-09-22 Chong Yidong <cyd@stupidchicken.com>
8090
8091 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
8092 x_display_pixel_height.
8093
80942008-09-22 Martin Rudalics <rudalics@gmx.at>
8095
8096 * undo.c (record_point): Don't call Fundo_boundary for first
8097 change. (Bug#731)
8098
80992008-09-22 Juanma Barranquero <lekktu@gmail.com>
8100
8101 * emacs.c (Fdaemonp): Doc fix.
8102
81032008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
8104
8105 * emacs.c (main): Place #ifdef in the proper place.
8106
81072008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
8108
8109 * emacs.c (standard_args): Add --daemon.
8110 (main): Disconnect from the terminal when --daemon is passed.
8111 (is_daemon): New variable.
8112 (Fdaemonp): New function.
8113 (syms_of_emacs): Defsubr it.
8114
81152008-09-20 Chong Yidong <cyd@stupidchicken.com>
8116
8117 * xdisp.c (get_next_display_element): Handle string display
8118 correctly when checking for the end of a box run.
8119
81202008-09-20 Glenn Morris <rgm@gnu.org>
8121
8122 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
8123 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
8124 (Frename_file): Avoid copying to trash if a rename involves
8125 a delete. (Bug#964).
8126
81272008-09-20 Eli Zaretskii <eliz@gnu.org>
8128
8129 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
8130 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
8131 frames as well as termcap frames.
8132 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
8133 get_named_tty.
8134
81352008-09-19 Eli Zaretskii <eliz@gnu.org>
8136
8137 * process.c (procfs_system_process_attributes): Fix cmdline in
8138 case /proc/PID/cmdline is empty.
8139
8140 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
8141 x_display_pixel_height.
8142
81432008-09-19 Juanma Barranquero <lekktu@gmail.com>
8144
8145 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
8146
8147 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
8148 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
8149
81502008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
8151
8152 * dispextern.h (struct it): Move line_wrap away from the middle of
8153 bitfields. Move voffset in struct iterator_stack_entry after the
8154 bitfields. Move tab_width near after another short.
8155
81562008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
8157
8158 * frame.h (struct frame): Move alpha from the middle of bitfields.
8159
8160 * window.h (struct window): Move frozen_window_start_p after the
8161 rest of the bitfields to reduce padding.
8162
81632008-09-18 Chong Yidong <cyd@stupidchicken.com>
8164
8165 * xterm.h (x_display_info): Remove `height' and `width' members.
8166
8167 * nsterm.h (ns_display_info): Remove `height' and `width' members.
8168
8169 * w32term.h (w32_display_info): Remove `height', `width',
8170 `height_in', and `width_in' members.
8171
8172 * xterm.c (x_display_pixel_height, x_display_pixel_width):
8173 New functions.
8174 (x_calc_absolute_position): Use them.
8175 (x_term_init): Omit removed `height' and `width' members.
8176
8177 * w32term.c (x_display_pixel_height, x_display_pixel_width):
8178 New functions.
8179 (w32_read_socket, x_calc_absolute_position): Use them.
8180 (w32_initialize_display_info, w32_term_init): Omit removed members
8181 of w32_display_info.
8182
8183 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
8184 New functions.
8185 (ns_initialize_display_info): Omit removed members of ns_display_info.
8186
8187 * xterm.c (x_display_pixel_height, x_display_pixel_width):
8188 New functions.
8189 (x_calc_absolute_position): Use them.
8190 (x_term_init): Omit removed `height' and `width' members.
8191
8192 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
8193 (compute_tip_xy):
8194 * frame.c (x_fullscreen_adjust):
8195 * xmenu.c (menu_position_func): Use x_display_pixel_height and
8196 x_display_pixel_width.
8197
81982008-09-18 Kenichi Handa <handa@m17n.org>
8199
8200 * composite.c (fill_gstring_header): Don't check FROM and TO here.
8201 (composition_compute_stop_pos): Fix handling of static composition.
8202 (Fcomposition_get_gstring): Check FROM and TO at first.
8203
82042008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
8205
8206 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
8207 mixup (YAILOM).
8208
82092008-09-17 Chong Yidong <cyd@stupidchicken.com>
8210
8211 * indent.c (Fvertical_motion): Use position reported by iterator
8212 instead of PT for determining screen motion (bug#943).
8213
82142008-09-17 Romain Francoise <romain@orebokech.com>
8215
8216 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
8217
82182008-09-17 Kenichi Handa <handa@m17n.org>
8219
8220 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
8221
8222 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
8223 if necessary.
8224
82252008-09-16 Kenichi Handa <handa@m17n.org>
8226
8227 * coding.c (make_conversion_work_buffer): Avoid calling
8228 Fget_buffer_create if it is not necessary.
8229
82302008-09-15 Martin Rudalics <rudalics@gmx.at>
8231
8232 * window.c (Fselect_window): Don't update window_select_count and
8233 use_time when norecord is not nil.
8234
82352008-09-14 Kenichi Handa <handa@m17n.org>
8236
8237 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
8238 specpdl_ptr.
8239
82402008-09-12 Kenichi Handa <handa@m17n.org>
8241
8242 * indent.c (scan_for_column): Don't handle automatic composition
8243 if the current buffer is not associated with a window.
8244
8245 * composite.c (composition_reseat_it): If the current buffer is
8246 not associated with a window, ignore the automatic composition.
8247 (find_automatic_composition): Likewise.
8248
82492008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
8250
8251 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
8252 (Fgpm_mouse_stop): Use it.
8253 * termhooks.h (close_gpm): Declare.
8254 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
8255 connection if Gpm_GetEvent fails.
8256
8257 * window.c (set_window_buffer): Always preserve current-buffer.
8258
82592008-09-12 Glenn Morris <rgm@gnu.org>
8260
8261 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
8262
82632008-09-11 Glenn Morris <rgm@gnu.org>
8264
8265 * charset.c (charset-map-path): Doc fix.
8266
82672008-09-10 Kenichi Handa <handa@m17n.org>
8268
8269 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
8270
8271 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
8272 compose a grapheme cluster with the preceding base glyph.
8273
8274 * composite.c (composition_compute_stop_pos): Fix previous change.
8275 Reset cmp_it->id to -1 at first.
8276
82772008-09-10 Glenn Morris <rgm@gnu.org>
8278
8279 * Makefile.in (character.o, chartab.o): Fix config.h typo.
8280
82812008-09-09 Chong Yidong <cyd@stupidchicken.com>
8282
8283 * keyboard.c (read_key_sequence): Reapply translation maps when
8284 switching keyboards.
8285
82862008-09-09 Kenichi Handa <handa@m17n.org>
8287
8288 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
8289 characters.
8290
8291 * composite.c (FORWARD_CHAR): Fix calculation
8292 of (POSITION).pos_byte.
8293 (composition_compute_stop_pos): Limit the search of composition to
8294 at most 500 characters ahead. If we reach the limit or find a
8295 newline, set cmp_it->ch to -2 and return 0.
8296 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
8297
82982008-09-08 Kenichi Handa <handa@m17n.org>
8299
8300 * indent.c (Fvertical_motion): Be sure to set
8301 it_overshoot_expected if it.cmp_it.id is non-negative.
8302
83032008-09-07 Andreas Schwab <schwab@suse.de>
8304
8305 * callproc.c (Fcall_process): Don't hold references to string data
8306 across garbage collection. Move initialisation of new_argv down
8307 to avoid compiler bug.
8308
83092008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
8310
8311 * process.c (Fsystem_process_attributes): Doc fix.
8312
83132008-09-07 Chong Yidong <cyd@stupidchicken.com>
8314
8315 * callproc.c (Fcall_process): Canonicalize current directory name.
8316
8317 * xdisp.c (move_it_to): When moving by vpos, ensure that the
8318 iterator advances to the next line if the current line ends in a
8319 continued tab.
8320
83212008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
8322
8323 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
8324 member to point to cmp_from.
8325
8326 * xdisp.c: Doc fix for references to gidx data member.
8327
83282008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
8329
8330 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
8331
83322008-09-07 Kenichi Handa <handa@m17n.org>
8333
8334 * composite.c (FORWARD_CHAR): Check STOP after
8335 incrementing (POSITION).pos.
8336
83372008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
8338
8339 * process.c (Fsystem_process_attributes): Doc fix.
8340
83412008-09-06 Chong Yidong <cyd@stupidchicken.com>
8342
8343 * keyboard.c (Ftop_level): Doc fix.
8344
83452008-09-06 Eli Zaretskii <eliz@gnu.org>
8346
8347 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
8348 minibuffer, don't let lower part of menu invade the echo area.
8349
8350 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
8351 "char *q" to access menu text and advance through it. Revert the
8352 change that displayed ">" instead of ASCII character 0x10.
8353
83542008-09-05 Eli Zaretskii <eliz@gnu.org>
8355
8356 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
8357 toggle boxes and radio buttons on MS-DOS as well.
8358
83592008-09-05 Kenichi Handa <handa@m17n.org>
8360
8361 * composite.c (autocmp_chars): Check lookback count.
8362 (composition_compute_stop_pos): Set cmp_it->lookback.
8363 (composition_reseat_it): Check lookback count.
8364 (struct position_record): New struct.
8365 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
8366 (find_automatic_composition): New function.
8367 (composition_adjust_point): Use find_automatic_composition.
8368
8369 * dispextern.h (struct composition_it): New member lookback.
8370
83712008-09-02 Chong Yidong <cyd@stupidchicken.com>
8372
8373 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
8374 if moving by a single line.
8375
83762008-09-02 Andreas Schwab <schwab@suse.de>
8377
8378 * xterm.c (x_delete_display): Fix merge error.
8379
8380 * fileio.c (Fexpand_file_name): Remove unused variables.
8381
83822008-09-02 Eli Zaretskii <eliz@gnu.org>
8383
8384 * fileio.c (Fexpand_file_name): Copy argument `name' into local
8385 storage on all platforms, not just on DOS_NT.
8386
83872008-09-02 Jason Rumney <jasonr@gnu.org>
8388
8389 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
8390 Ensure mouse is not grabbed after menu is finished.
8391
83922008-09-01 Chong Yidong <cyd@stupidchicken.com>
8393
8394 * xfaces.c (Finternal_set_alternative_font_family_alist)
8395 (Finternal_set_alternative_font_registry_alist): Properly copy
8396 entire alist structure.
8397
83982008-09-01 Kenichi Handa <handa@m17n.org>
8399
8400 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
8401 representative chars of the script is a vector.
8402 (ftfont_list): Handle the case where the representative chars of
8403 the script is a vector.
8404
8405 * character.c (syms_of_character): Docstring of
8406 script-representative-chars fixed.
8407
84082008-08-31 Eli Zaretskii <eliz@gnu.org>
8409
8410 * msdos.c (BUILD_CHAR_GLYPH): New macro.
8411 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
8412 the menu. Allocate larger buffer for `text', to account for
8413 possible ^C characters.
8414
84152008-08-31 Martin Rudalics <rudalics@gmx.at>
8416
8417 * xdisp.c (prepare_menu_bars): Don't call
8418 Vwindow_size_change_functions with arg Qt.
8419
84202008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
8421
8422 * font.h (font_range):
8423 * fileio.c (report_file_error):
8424 * composite.c (composition_update_it): Yet another int/Lisp_Object
8425 mixup (YAILOM).
8426
84272008-08-30 Glenn Morris <rgm@gnu.org>
8428
8429 * data.c (Fmake_variable_frame_local): Doc fix.
8430
8431 * frame.c (Fmodify_frame_parameters): Doc fix.
8432
84332008-08-30 Eli Zaretskii <eliz@gnu.org>
8434
8435 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
8436 needed by GetTokenInformation.
8437 (w32_system_process_attributes): Check return values of all system
8438 APIs.
8439
8440 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
8441 only when the state changes.
8442 (IT_update_begin, IT_update_end): Add termscript trace.
8443
8444 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
8445 clipboard is unavailable. Set dst to NULL if it doesn't point to
8446 malloc'ed data.
8447 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
8448 passing random values to xfree.
8449
8450 * dispnew.c (init_display): Set `tty's association in frame's
8451 parameters alist to the name of the terminal device, if that is known.
8452
84532008-08-29 Jason Rumney <jasonr@gnu.org>
8454
8455 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
8456
84572008-08-29 Eli Zaretskii <eliz@gnu.org>
8458
8459 * composite.c (fill_gstring_body): Avoid compiler warnings.
8460
8461 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
8462 LGLYPH_SET_CODE to avoid compiler warnings.
8463
8464 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
8465
8466 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
8467
8468 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
8469 LGLYPH_SET_CODE.
8470
84712008-08-29 Kenichi Handa <handa@m17n.org>
8472
8473 * fileio.c (report_file_error): Don't downcase the first character
8474 of errstring if it is still unibyte.
8475
84762008-08-29 Kenichi Handa <handa@m17n.org>
8477
8478 These changes are to re-implement the automatic composition so
8479 that it doesn't use text properties.
8480
8481 * Makefile.in (ftfont.o): Depend on composite.h.
8482 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
8483
8484 * character.h (Vunicode_category_table): Extern it.
8485
8486 * character.c (Vunicode_category_table): New variable.
8487 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
8488
8489 * chartab.c (optimize_sub_char_table): Perform more greedy
8490 optimization.
8491
8492 * composite.h (enum composition_method):
8493 Delete COMPOSITION_WITH_GLYPH_STRING.
8494 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
8495 (Vcomposition_function_table): Extern it.
8496 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
8497 (composition_gstring_put_cache, composition_gstring_from_id)
8498 (composition_gstring_p, composition_gstring_width)
8499 (composition_compute_stop_pos, composition_reseat_it)
8500 (composition_update_it, composition_adjust_point): Extern them.
8501 (Fcomposition_get_gstring): EXFUN it.
8502
8503 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
8504 (Vcomposition_function_table)
8505 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
8506 (gstring_hash_table, gstring_work, gstring_work_headers):
8507 New variables.
8508 (gstring_lookup_cache, composition_gstring_put_cache)
8509 (composition_gstring_from_id, composition_gstring_p)
8510 (composition_gstring_width, fill_gstring_header)
8511 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
8512 (composition_reseat_it, composition_update_it)
8513 (composition_adjust_point, Fcomposition_get_gstring): New functions.
8514 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
8515 and gstring_work_headers. DEFVAR_LISP composition-function-table.
8516 Defsubr compostion_get_gstring.
8517
8518 * dispextern.h (struct glyph): New union u.cmp. Delete the member
8519 cmp_id.
8520 (struct glyph_string): Delete the member gidx. New members
8521 cmp_id, cmp_from, and cmp_to.
8522 (enum it_method): Delete GET_FROM_COMPOSITION.
8523 (struct composition_it): New struct.
8524 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
8525 Delete c, len, cmp_id, cmp_len in u.comp.
8526
8527 * font.h (enum lgstring_indices): Delete it.
8528 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
8529 (enum lglyph_indices): Likewise.
8530 (font_range): Adjust extern.
8531 (font_fill_lglyph_metrics): Extern it.
8532
8533 * font.c (QCf): New variable.
8534 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
8535 (font_prepare_composition): Delete this function.
8536 (font_range): Type and arguments changed.
8537 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
8538 (font_fill_lglyph_metrics): New function.
8539 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
8540 (syms_of_font): DEFSYM QCf. Delete defsubr for
8541 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
8542 Defsubr Sfont_shape_gstring.
8543
8544 * fontset.h (font_for_char): Extern it.
8545
8546 * fontset.c (font_for_char): New function.
8547
8548 * ftfont.c: Include composite.h.
8549 (ftfont_resolve_generic_family): Add langset "en" to pattern.
8550 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
8551
8552 * indent.c: Include composite.h and dispextern.h.
8553 (check_composition): Delete this function.
8554 (scan_for_column): Handle composition by
8555 composition_compute_stop_pos, composition_reseat_it, and
8556 composition_update_it.
8557 (compute_motion): Likewise.
8558 (Fvertical_motion): Fix checking of composition.
8559
8560 * keyboard.c (adjust_point_for_property): Check composition by
8561 composition_adjust_point.
8562
8563 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
8564 struct glyph_string.
8565
8566 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
8567 (append_composite_glyph): Adjust for the change of struct it and
8568 struct glyph.
8569 (produce_composite_glyph): Likewise.
8570
8571 * w32term.c (x_draw_composite_glyph_string_foreground):
8572 Adjust for the change of struct glyph_string.
8573 (x_draw_glyph_string): Likewise.
8574
8575 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
8576 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
8577
8578 * xdisp.c: Include font.h.
8579 (it_props): Delete the entry for Qauto_composed.
8580 (init_iterator): Initialize it->cmp_it.id to -1.
8581 (compute_stop_pos): Call composition_compute_stop_pos.
8582 (face_before_or_after_it_pos): Adjust for the change of struct it.
8583 (handle_auto_composed_prop): Delete it.
8584 (handle_composition_prop): Handle only static composition.
8585 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
8586 from xassert. Initialize it->cmp_it.stop_pos.
8587 (push_it): Adjust for the change of struct it.
8588 (pop_it): Likewise.
8589 (get_next_element): Delete next_element_from_composition.
8590 (CHAR_COMPOSED_P): New macro.
8591 (get_next_display_element): For automatic composition, get a face
8592 from the font in the glyph-string.
8593 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
8594 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
8595 (next_element_from_string): Check if the character at the current
8596 position is composed by CHAR_COMPOSED_P.
8597 (next_element_from_buffer): Likewise.
8598 (next_element_from_composition): Adjust for the change of struct it.
8599 Update it->cmp_it.
8600 (dump_glyph): Adjust for the change of struct glyph.
8601 (fill_composite_glyph_string): Adjust for the change of struct
8602 it and struct glyph. Don't handle automatic composition here.
8603 (fill_gstring_glyph_string): New function.
8604 (x_get_glyph_overhangs): Handle automatic composition.
8605 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
8606 (BUILD_GSTRING_GLYPH_STRING): New macro.
8607 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
8608 automatic composition.
8609 (append_composite_glyph): Adjust for the change of struct it and
8610 struct glyph.
8611 (x_produce_glyphs): Adjust for the change of struct it.
8612
8613 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
8614 the change of struct glyph_string.
8615 (x_draw_glyph_string): Likewise.
8616
86172008-08-29 Glenn Morris <rgm@gnu.org>
8618
8619 * buffer.c (word-wrap): Doc fix.
8620 * xdisp.c (truncate-partial-width-windows): Doc fix.
8621 Increase default to 50.
8622
86232008-08-29 Chong Yidong <cyd@stupidchicken.com>
8624
8625 * xdisp.c (update_tool_bar_unwind): New function.
8626 (update_tool_bar): Temporarily set selected frame before building
8627 tool-bar items.
8628
86292008-08-28 Michael Albinus <michael.albinus@gmx.de>
8630
8631 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
8632 snprintf, respectively.
8633 (xd_append_arg): Convert strings with Fstring_make_unibyte.
8634
86352008-08-28 Chong Yidong <cyd@stupidchicken.com>
8636
8637 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
8638 LDFLAGS to GNUstep CC invocation.
8639
86402008-08-27 Chong Yidong <cyd@stupidchicken.com>
8641
8642 * indent.c (Fvertical_motion): Revert last change. Handle the
8643 general case where we are moving forward, and PT spans multiple
8644 screen lines.
8645
8646 * eval.c (find_handler_clause): Temporarily increase
8647 max-lisp-eval-depth while printing the backtrace buffer, to
8648 guarantee that help-mode code can run.
8649
86502008-08-27 Eli Zaretskii <eliz@gnu.org>
8651
8652 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
8653 colors under -rv.
8654 (IT_set_frame_parameters): Don't swap foreground and background
8655 colors if `(reverse . t)' is present in the frame properties.
8656 (internal_terminal_init): Call init_frame_faces only for the
8657 initial frame.
8658
86592008-08-27 Andreas Schwab <schwab@suse.de>
8660
8661 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
8662
86632008-08-27 Andreas Schwab <schwab@suse.de>
8664
8665 * search.c (search_buffer): Set char_base to zero only at the end.
8666
86672008-08-27 Kenichi Handa <handa@m17n.org>
8668
8669 * fileio.c (report_file_error): Fix handling of multibyte error string.
8670
86712008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
8672
8673 * xterm.c (x_term_init): Temporarily hide the partially
8674 initialized terminal while calling vendor-specific-keysyms.
8675
86762008-08-26 Eli Zaretskii <eliz@gnu.org>
8677
8678 * msdos.c (internal_terminal_init): Most initializations done only
8679 once, especially initial_screen_colors[] and termscript open.
8680
86812008-08-26 Chong Yidong <cyd@stupidchicken.com>
8682
8683 * eval.c (Fcondition_case): Doc fix.
8684
8685 * widgetprv.h (EmacsFramePart): Change font member to the new font
8686 struct.
8687
8688 * widget.c: Include character.h and font.h for XSETFONT.
8689 (setup_frame_gcs): Compute X font id from font struct, just once.
8690
86912008-08-26 Eli Zaretskii <eliz@gnu.org>
8692
8693 * term.c (get_named_tty): Fix last change.
8694
86952008-08-26 Chong Yidong <cyd@stupidchicken.com>
8696
8697 * indent.c (Fvertical_motion): If moving forward starting from a
8698 multi-line string, move the iterator to the last line of that string.
8699
87002008-08-25 Eli Zaretskii <eliz@gnu.org>
8701
8702 * frame.c (do_switch_frame): Mark previously displayed frame as
8703 obscured for FRAME_MSDOS_P frames as well.
8704
87052008-08-24 Eli Zaretskii <eliz@gnu.org>
8706
8707 * frame.c (make_terminal_frame): Initialize f->terminal,
8708 f->terminal->reference_count, and scroll bars on MS-DOS as well.
8709 Set the top frame to newly created frame.
8710 (Fmake_terminal_frame): Reuse the_only_display_info.
8711
8712 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
8713 estimating available memory.
8714
87152008-08-23 David Reitter <david.reitter@gmail.com>
8716
8717 * nsterm.m (ns_draw_window_cursor): Don't call
8718 NSDisableScreenUpdates and NSEnableScreenUpdates on
8719 non-NS_IMPL_COCOA systems.
8720
87212008-08-23 Andreas Schwab <schwab@suse.de>
8722
8723 * process.c (procfs_system_process_attributes): Fix use of
8724 uninitialized variables.
8725
87262008-08-23 Eli Zaretskii <eliz@gnu.org>
8727
8728 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
8729
8730 * dispnew.c (init_display): Remove MS-DOS specific conditions for
8731 calling tty-set-up-initial-frame-faces.
8732
8733 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
8734 Allow MSDOS frames along with X frames.
8735
8736 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
8737 addition to output_termcap.
8738
8739 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
8740
8741 * termchar.h (FRAME_TTY): Support output_msdos_raw.
8742 (struct tty_display_info) [MSDOS]: Add fields related to mouse
8743 highlight.
8744
8745 * process.c [!subprocesses]: Define QCname.
8746 (syms_of_process): Intern and staticpro it.
8747
8748 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
8749 Adjust for changes in encoding/decoding routines.
8750 Use encode_coding_object and decode_coding_object instead of
8751 encode_coding and decode_coding.
8752
8753 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
8754
8755 * dosfns.c: Include frame.h before termhooks.h.
8756 (dos_cleanup): Use CURTTY ()->termscript instead of a global
8757 variable termscript.
8758
8759 * s/msdos.h (USER_FULL_NAME): Define.
8760 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
8761
8762 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
8763 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
8764 pw->pw_gecos.
8765
8766 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
8767 SELECTED_FRAME as additional (1st) argument.
8768 (tty_read_avail_input): Handle output_msdos_raw in
8769 addition to output_termcap.
8770
8771 * msdos.c: Include frame.h before termhooks.h.
8772 (mouse_on, mouse_off, mouse_moveto, mouse_init)
8773 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
8774 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
8775 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
8776 (IT_set_terminal_modes, IT_reset_terminal_modes)
8777 (IT_set_frame_parameters): Use tty->termscript instead of a global
8778 variable termscript.
8779 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
8780 global variable terminal_coding. Don't refer to
8781 Vnonascii_translation_table.
8782 (internal_terminal_init): Set Vwindow_system in current_kboard.
8783 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
8784 Announce date and time of session start, if termscript is open.
8785 Don't zero out the_only_display_info (it is done in
8786 term.c:init_tty). Open termscript only of not already open.
8787 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
8788 here instead of dos_ttraw. Don't initialize display if this is an
8789 initial tty. Don't set FRAME_FONT.
8790 (Vwindow_system_version): Bump to 23.
8791 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
8792 is available, set up mouse_position_hook.
8793 (dos_ttraw, IT_set_terminal_modes): If called with initial
8794 terminal, do nothing.
8795 (IT_set_frame_parameters): Handle the Qtty_type frame
8796 parameter by calling internal_terminal_init.
8797 (dos_set_window_size, show_mouse_face)
8798 (clear_mouse_face, IT_note_mode_line_highlight)
8799 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
8800 (dos_rawgetc): Use tty_display_info instead of x_display_info.
8801 (initialize_msdos_display): New function.
8802 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
8803 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
8804 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
8805 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
8806 Accept additional argument: a pointer to a frame. Update all callers.
8807 (request_sigio, unrequest_sigio): Don't define, now defined on
8808 sysdep.c.
8809 (IT_write_glyphs): Rewrite to use encode_terminal_code.
8810
8811 * term.c [MSDOS]: Include msdos.h.
8812 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
8813 conditional to DOS_NT. Allow only one call to this function in a
8814 session. Don't allocate a new struct tty_display_info; instead,
8815 reuse the_only_display_info. Call get_tty_size to get screen
8816 dimensions. Call init_baud_rate to set bad_rate.
8817 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
8818 (Fsuspend_tty) [MSDOS]: Don't close input and output.
8819 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
8820 (get_tty_terminal, get_named_tty, Ftty_type)
8821 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
8822 output_termcap.
8823 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
8824 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
8825 only when subprocesses are supported.
8826
8827 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
8828 f->output_data.x.
8829 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
8830 terminal devices.
8831
8832 * msdos.h: Remove definition of struct x_display_info and struct
8833 x_output.
8834 (FRAME_FONT): Use output_data.tty.
8835 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
8836 (struct x_display_info): Rename from display_info. Update all users in
8837 msdos.c.
8838 (struct x_output): Remove background_pixel and foreground_pixel.
8839 (the_only_display_info): Rename from the_only_x_display.
8840 (dos_ttraw): Update prototype.
8841
8842 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
8843 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
8844
88452008-08-23 Jason Rumney <jasonr@gnu.org>
8846
8847 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
8848 (fn_TIFFSetDirectory): New library function used.
8849 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
8850 (tiff_load): Use :index to select among multiple images. Set count
8851 property when multiple images exist.
8852 (gif_format): Use :index, not :image.
8853
88542008-08-23 Chong Yidong <cyd@stupidchicken.com>
8855
8856 * xdisp.c (try_scrolling): Check INT_MAX instead of
8857 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
8858 to obtain INT_MAX.
8859
88602008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
8861
8862 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
8863
88642008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
8865
8866 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
8867 GNUstep library location.
8868
88692008-08-21 Chong Yidong <cyd@stupidchicken.com>
8870
8871 * xfaces.c (x_update_menu_appearance): Check validity of menu font
8872 before using it.
8873
8874 * puresize.h (BASE_PURESIZE): Increase to 1250000.
8875
88762008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8877
8878 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
8879 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
8880 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
8881 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
8882 (EmacsApp-cursor_blink_handler): Remove declaration.
8883 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
8884 match 01 Feb 2008 changes in xterm.c.
8885 (ns_read_socket): Add cast to avoid warning.
8886 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
8887 GNUstep.
8888
88892008-08-20 Chong Yidong <cyd@stupidchicken.com>
8890
8891 * xselect.c (x_get_foreign_selection): Return nil if desired
8892 selection could not be obtained, instead of signalling an error.
8893
88942008-08-20 David Reitter <david.reitter@gmail.com>
8895
8896 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
8897 * nsterm.m: Remove ns-specific code for cursor blinking.
8898 (ns_draw_window_cursor): Clear cursor properly rather than
8899 redrawing the area. Respect width of bar cursors.
8900 These changes enable the use of generic blink-cursor-mode and
8901 generic cursor types in NS and support smooth cursor movements (do
8902 not blink off after command).
8903 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
8904 Nextstep, too.
8905
89062008-08-19 Kenichi Handa <handa@m17n.org>
8907
8908 * font.c (Vfont_log_deferred): New variable.
8909 (font_add_log): Check Vfont_log_deferred.
8910 (font_deferred_log): New function.
8911
8912 * font.h (font_deferred_log): Extern it.
8913
8914 * fontset.c (reorder_font_vector): Use encoding charset of fonts
8915 for sorting.
8916 (face_for_char): Use deferred log.
8917
89182008-08-18 Kenichi Handa <handa@m17n.org>
8919
8920 * fontset.c (face_for_char): Add font log.
8921
8922 * font.c (font_add_log): Add the font properties :script, :lang,
8923 and :otf in the log.
8924
89252008-08-17 Chong Yidong <cyd@stupidchicken.com>
8926
8927 * xdisp.c: Remove dead code.
8928 (handle_invisible_prop, next_overlay_string): Defer call to
8929 setup_for_ellipsis.
8930 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
8931
89322008-08-15 Chong Yidong <cyd@stupidchicken.com>
8933
8934 * xfaces.c (lookup_derived_face): Properly handle possible zero
8935 return value of get_lface_attributes.
8936 (merge_faces): Don't tell lookup_derived_face to signal an error
8937 if face is not found.
8938
8939 * dired.c (Fdirectory_files): Doc fix.
8940
8941 * process.c (make_process): Initialize kill_without_query struct
8942 member.
8943
89442008-08-15 Eli Zaretskii <eliz@gnu.org>
8945
8946 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
8947 Alternative calculation of totphys for Visual Studio 6.
8948
8949 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
8950
8951 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
8952 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
8953 All users changed.
8954 (stat): Only root directory passed to GetDriveType. Allow RAM
8955 disk as well as local fixed disk when w32-get-true-file-attributes
8956 is set to `local'.
8957 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
8958 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
8959 (w32_cached_id, w32_add_to_cache): New functions.
8960 (get_name_and_id): Look account names in the cache before calling
8961 lookup_account_sid.
8962 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
8963 New initialization flags.
8964 (globals_of_w32): Initialize them to zero.
8965 (w32_system_process_attributes): Use w32_cached_id and
8966 w32_add_to_cache.
8967
89682008-08-14 Lawrence Mitchell <wence@gmx.li>
8969
8970 * lread.c (Fread_char, Fread_char_exclusive): If no character
8971 event is read before timeout is reached, return nil, rather than
8972 converting to a number.
8973
89742008-08-14 Chong Yidong <cyd@stupidchicken.com>
8975
8976 * fns.c (use_dialog_box): Doc fix.
8977
8978 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
8979 on OS X.
8980
89812008-08-13 Chong Yidong <cyd@stupidchicken.com>
8982
8983 * frame.c (Qns_parse_geometry): New var.
8984 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
8985
89862008-08-11 Chong Yidong <cyd@stupidchicken.com>
8987
8988 * xdisp.c (x_produce_glyphs): Handle the case when font has no
8989 space character in calculating tabs.
8990
89912008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
8992
8993 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
8994
89952008-08-10 Glenn Morris <rgm@gnu.org>
8996
8997 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
8998 silence gcc "limited range of data type" warnings in some
8999 make_fixnum_or_float calls.
9000
90012008-08-09 Eli Zaretskii <eliz@gnu.org>
9002
9003 * w32.c (w32_system_process_attributes): If the process does not
9004 exist, return nil.
9005
9006 * w32.c: Include thelp32.h, psapi.h and coding.h.
9007 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
9008 declarations.
9009 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
9010 (Process32Next_Proc): New typedefs.
9011 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
9012 (g_b_init_process32_next, g_b_init_open_thread_token)
9013 (g_b_init_impersonate_self, g_b_init_revert_to_self)
9014 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
9015 (g_b_init_get_process_working_set_size)
9016 (g_b_init_global_memory_status_ex): New static variables.
9017 (globals_of_w32): Initialize them.
9018 (create_toolhelp32_snapshot, process32_first, process32_next)
9019 (open_thread_token, impersonate_self, revert_to_self)
9020 (get_process_memory_info, get_process_working_set_size)
9021 (global_memory_status, global_memory_status_ex): New wrapper
9022 functions.
9023 (w32_list_system_processes, w32_system_process_attributes)
9024 (enable_privilege, restore_privilege, ltime, process_times):
9025 New functions.
9026 (convert_time_raw): New function.
9027 (convert_time): Remove conversion of FILETIME into time in 100
9028 nsec units, call convert_time_raw instead.
9029
9030 * process.h (w32_list_system_processes, w32_system_process_attributes):
9031 Add prototypes.
9032 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
9033 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
9034 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
9035 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
9036
9037 * process.c (Fsystem_process_attributes): Doc fix.
9038
90392008-08-08 Chong Yidong <cyd@stupidchicken.com>
9040
9041 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
9042 a continued multi-char glyph; if so, advance to the actual glyph.
9043
90442008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
9045
9046 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
9047
9048 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
9049 (.m.o): Use it.
9050 * config.in: Regenerate.
9051
90522008-08-07 Chong Yidong <cyd@stupidchicken.com>
9053
9054 * xdisp.c (redisplay_window): Revert last change.
9055 (try_window): Check bottom scroll margin too.
9056
90572008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9058
9059 * config.in: Regenerate.
9060
9061 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
9062 -list-load-path-shadows'.
9063 (nsgui.h): Reduce number of things depending on it.
9064
90652008-08-06 Chong Yidong <cyd@stupidchicken.com>
9066
9067 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
9068 instead of window-end which does the wrong thing at eob.
9069 (try_cursor_movement): Minor optimization.
9070 (redisplay_window): If scroll margin is defined, don't assume
9071 window doesn't need scrolling.
9072
90732008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9074
9075 * config.in: Regenerate.
9076
9077 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
9078 (mostlyclean): Don't delete *.d under NS.
9079
9080 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
9081
90822008-08-06 Kenichi Handa <handa@m17n.org>
9083
9084 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
9085
90862008-08-06 Andreas Schwab <schwab@suse.de>
9087
9088 * config.in: Regenerate.
9089
90902008-08-05 Chong Yidong <cyd@stupidchicken.com>
9091
9092 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
9093 forcing a window start.
9094
9095 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
9096 (auto_save_1): Update modtime when auto-save-list-file-name is on.
9097
90982008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9099
9100 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
9101 argument.
9102
91032008-08-05 Juanma Barranquero <lekktu@gmail.com>
9104
9105 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
9106 <scroll-down-aggressively, before-change-functions>:
9107 <after-change-functions>: Reflow docstrings.
9108
91092008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9110 Ken Raeburn <raeburn@gnu.org>
9111
9112 Dock menu customization, based on a patch by Ken Raeburn, plus some
9113 other fixes.
9114 * nsmenu.m (dockMenu): New variable.
9115 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
9116
9117 * nsterm.h (dockMenu): Declare.
9118
9119 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
9120 (ns_term_init): Initialize dockMenu.
9121 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
9122 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
9123 left.
9124
9125 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
9126
91272008-08-04 Chong Yidong <cyd@stupidchicken.com>
9128
9129 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
9130
9131 * config.in: Regenerate.
9132
91332008-08-04 Seiji Zenitani <zenitani@mac.com>
9134
9135 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
9136
91372008-08-04 Chong Yidong <cyd@stupidchicken.com>
9138
9139 * nsterm.h (find_and_call_menu_selection): Fix prototype.
9140
91412008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9142
9143 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
9144
9145 * keyboard.h: Comment an #endif.
9146
9147 * lisp.h (have_menus_p): Adjust comment.
9148
9149 * menu.c (find_and_return_menu_selection): Fix comparison with
9150 client_data.
9151
9152 * nsmenu.m (popup_activated_flag): New variable.
9153 (popup_activated): New function.
9154 (menu-or-popup-active-p): New exported lisp definition.
9155 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
9156 when popup done.
9157 (ns_popup_dialog): Set popup_activated_flag.
9158
9159 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
9160 version for GNUstep (handled by conditional typedef in nsterm.m).
9161 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
9162 in rgb.txt).
9163
9164 * process.c (init_process): Use DARWIN_OS, not DARWIN.
9165
9166 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
9167
9168 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
9169
9170 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
9171 shortcircuit if popup_activated like GTK and X toolkit.
9172
9173 * m/inter386.h: Change DARWIN to DARWIN_OS.
9174
9175 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
9176 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
9177 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
9178 comment on NO_SOCK_SIGIO.
9179
91802008-08-03 Chong Yidong <cyd@stupidchicken.com>
9181
9182 * nsterm.m (windowDidResize): Remove stopModal call.
9183
91842008-08-03 Andreas Schwab <schwab@suse.de>
9185
9186 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
9187 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
9188
91892008-08-02 Chong Yidong <cyd@stupidchicken.com>
9190
9191 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
9192 Don't use uninitialized pointer variable when using getrlimit.
9193
91942008-08-02 Jason Rumney <jasonr@gnu.org>
9195
9196 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
9197
91982008-08-02 Eli Zaretskii <eliz@gnu.org>
9199
9200 * alloc.c (NSTATICS): Bump to 0x640.
9201
9202 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
9203
9204 * lisp.h: Add prototype for directory_files_internal.
9205
9206 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
9207 New functions.
9208 (syms_of_process): Defsubr them. Add initializations for various
9209 Q* symbols used in procfs_system_process_attributes.
9210 (procfs_list_system_processes, procfs_system_process_attributes)
9211 [HAVE_PROCFS]: New functions.
9212 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
9213 (procfs_get_total_memory): New functions.
9214
92152008-08-01 Juanma Barranquero <lekktu@gmail.com>
9216
9217 * xfaces.c (Fx_load_color_file): Fix previous change;
9218 it is #ifdef WINDOWSNT, not WINDOWS_NT.
9219
92202008-08-01 Michael Albinus <michael.albinus@gmx.de>
9221
9222 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
9223
92242008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9225
9226 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
9227
92282008-08-01 Chong Yidong <cyd@stupidchicken.com>
9229
9230 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
9231
9232 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
9233 define NSApplicationDelegateReplySuccess.
9234 (EmacsView -converstationIdentifier): Use long instead of
9235 NSInteger for GNUstep, since it doesn't have NSInteger.
9236
9237 * xmenu.c: Revert last change.
9238
9239 * keyboard.h: Fix last change.
9240
92412008-08-01 Juanma Barranquero <lekktu@gmail.com>
9242
9243 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
9244 on Windows.
9245
92462008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9247
9248 Warning clearing and clean-up in NS port.
9249 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
9250 Add prototypes.
9251 * nsgui.h (FACE_DEFAULT): Remove, unused.
9252 (XGCValues): Change colors to unsigned long.
9253 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
9254 nsterm.m.
9255 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
9256 (ns_list_fonts): Remove, unused.
9257 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
9258 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
9259 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
9260 (nsfont_draw): Compare face colors to 0, not nil.
9261 * nsmenu.m (struct widget_value): Drop unneeded declaration.
9262 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
9263 (-addSubmenuWithTitle:): Use NSMenuItem class.
9264 (ns_popup_menu): Use NO, not NULL, for enabled setting.
9265 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
9266 (ns_clip_to_row): Make gc arg a BOOL.
9267 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
9268 ns_clip_to_row() call.
9269 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
9270 used). Cast FRAME_FONT assignments.
9271 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
9272 (ns_string_to_lispmod): Change arg to const char.
9273 (ns_term_init): Use NSMenuItem class.
9274 (EmacsApp -openFile:): Move to different section of file.
9275 (EmacsApp -application:openFiles:): Don't return a value, call
9276 -replyToOpenOrPrint:.
9277 (EmacsView -keyDown:): Fix up cast.
9278 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
9279 (EmacsView -menuDown:): Cast tag in call to
9280 find_and_call_menu_selection().
9281 (ns_list_fonts): Remove, unused.
9282 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
9283 (ns_fontname_to_xlfd): Make static.
9284 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
9285 Remove prototypes (now in keyboard.h).
9286 (next_menubar_widget_id): Remove, unused.
9287 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
9288 Remove prototypes (now in keyboard.h).
9289 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
9290
92912008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
9292
9293 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
9294 (floatfns.o): Depend on syssignal.h.
9295 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
9296
9297 * systty.h: Fix previous change that removed BSD_TERMIOS.
9298 Add comments to #ifdefs.
9299
93002008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9301
9302 * w32fns.c (w32-load-color-file): Remove.
9303 (x-open-connection): Use renamed Fx_load_color_file.
9304 * xfaces.c (x-load-color-file): Add.
9305 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
9306 Emacs.clr.
9307 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
9308
93092008-07-31 Michael Albinus <michael.albinus@gmx.de>
9310
9311 * dbusbind.c (Fdbus_call_method_asynchronously)
9312 (Fdbus_method_error_internal): New defuns.
9313 (xd_read_message): Handle also reply messages.
9314 (Vdbus_registered_functions_table): Extend docstring.
9315
93162008-07-31 Juanma Barranquero <lekktu@gmail.com>
9317
9318 * keyboard.c (gobble_input): Fix previous change.
9319
93202008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
9321
9322 * bitmaps/README:
9323 * xfns.c:
9324 * termcap.c:
9325 * term.c:
9326 * syswait.h:
9327 * systty.h:
9328 * systime.h:
9329 * syssignal.h:
9330 * sysdep.c:
9331 * process.h:
9332 * process.c:
9333 * print.c:
9334 * ndir.h:
9335 * lread.c:
9336 * keyboard.c:
9337 * getpagesize.h:
9338 * floatfns.c:
9339 * fileio.c:
9340 * emacs.c:
9341 * doc.c:
9342 * dispnew.c:
9343 * dired.c:
9344 * data.c:
9345 * callproc.c:
9346 * buffer.c:
9347 * README:
9348 * Makefile.in:
9349 * s/template.h:
9350 * s/msdos.h:
9351 * m/vax.h: Remove VMS support.
9352 * s/vms.h:
9353 * vlimit.h:
9354 * uaf.h:
9355 * temacs.opt:
9356 * param.h:
9357 * ioctl.h: Remove file.
9358
93592008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
9360
9361 * s/ms-w32.h (MULTI_KBOARD): Remove.
9362 * xterm.c:
9363 * xselect.c:
9364 * xfns.c:
9365 * window.c:
9366 * w32term.c:
9367 * w32fns.c:
9368 * terminal.c:
9369 * termhooks.h:
9370 * term.c:
9371 * sysdep.c:
9372 * keyboard.h:
9373 * keyboard.c:
9374 * frame.h:
9375 * frame.c:
9376 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
9377 * config.in: Regenerate.
9378
93792008-07-30 Jason Rumney <jasonr@gnu.org>
9380
9381 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
9382
9383 * w32font.c (w32font_encode_char): Leave as unicode if in range.
9384 (w32font_open_internal): Get unicode version of textmetrics.
9385 Don't enable or disable glyph indices here.
9386 (w32font_open): Disable use of glyph indices.
9387
9388 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
9389
93902008-07-30 Chong Yidong <cyd@stupidchicken.com>
9391
9392 * minibuf.c (Vread_buffer_function): Doc fix.
9393
93942008-07-30 John Paul Wallington <jpw@pobox.com>
9395
9396 * minibuf.c (read_buffer_completion_ignore_case): New var.
9397 (Fread_buffer): Use it.
9398
93992008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
9400
9401 * systty.h (sensemode): Remove empty #if. Remove reference to
9402 BSD_TERMIOS, unused.
9403
9404 * sysdep.c: Remove reference to DGUX.
9405 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
9406
9407 * config.in: Regenerate.
9408
94092008-07-30 Jason Rumney <jasonr@gnu.org>
9410
9411 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
9412
94132008-07-29 Jason Rumney <jasonr@gnu.org>
9414
9415 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
9416 is populated.
9417 (uniscribe_encode_char): Always use uniscribe.
9418 Avoid using context if cache is populated.
9419
94202008-07-29 Jan Djärv <jan.h.d@swipnet.se>
9421
9422 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
9423 open menu.
9424
9425 * gtkutil.c (menu_nav_ended): Remove.
9426 (create_menus): Remove signal connect for menu_nav_ended.
9427
94282008-07-28 Chong Yidong <cyd@stupidchicken.com>
9429
9430 * xdisp.c (redisplay_window): Check return value of
9431 compute_window_start_on_continuation_line before forcing a window
9432 start.
9433
94342008-07-28 Jason Rumney <jasonr@gnu.org>
9435
9436 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
9437
9438 * w32term.c (w32_enable_unicode_output, cleartype_active):
9439 Remove obsolete display options.
9440 (x_draw_glyph_string_background): Don't use old cleartype_active
9441 workaround.
9442 (w32_initialize): Remove cleartype_active initialization.
9443 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
9444
94452008-07-28 Andreas Schwab <schwab@suse.de>
9446
9447 * lisp.h (init_weak_hash_tables, syms_of_font)
9448 (xd_read_queued_messages, syms_of_dbusbind): Declare.
9449 (remove_hash_entry): Don't declare.
9450 * eval.c (maybe_call_debugger): Make static and move before use.
9451 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
9452 * xdisp.c: Include "gtkutil.h" if USE_GTK.
9453 * xterm.h (x_set_frame_alpha): Declare.
9454
94552008-07-28 Jan Djärv <jan.h.d@swipnet.se>
9456
9457 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
9458 (create_menus): Connect selection-done to menu_nav_ended.
9459
94602008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
9461
9462 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
9463 Set Vx_resource_name to a fallback. Replace read of 'buffered'
9464 parameter with read of 'alpha' one.
9465 (Qns_frame_parameter): Remove.
9466 * nsselect.m (selection-coding-system)
9467 (next-selection-coding-system, Vselection_coding_system)
9468 (Vnext_selection_coding_system): Drop.
9469
94702008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
9471
9472 * nsfns.m (do-applescript, do_applescript): Rename to
9473 ns-do-applescript, ns_do_applescript, and move within file.
9474
94752008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
9476
9477 Remove support for Mac Carbon.
9478 * mactoolbox.c:
9479 * macterm.h:
9480 * macterm.c:
9481 * macselect.c:
9482 * macmenu.c:
9483 * macgui.h:
9484 * macfns.c:
9485 * mac.c: Remove file.
9486 * s/darwin.h:
9487 * m/intel386.h:
9488 * xfaces.c:
9489 * xdisp.c:
9490 * window.c:
9491 * tparam.c:
9492 * termhooks.h:
9493 * termcap.c:
9494 * term.c:
9495 * syssignal.h:
9496 * sysselect.h:
9497 * sysdep.c:
9498 * process.c:
9499 * lread.c:
9500 * lisp.h:
9501 * keyboard.c:
9502 * image.c:
9503 * fringe.c:
9504 * frame.h:
9505 * frame.c:
9506 * fontset.c:
9507 * font.h:
9508 * font.c:
9509 * fns.c:
9510 * fileio.c:
9511 * emacs.c:
9512 * dispnew.c:
9513 * dispextern.h:
9514 * config.in:
9515 * atimer.c:
9516 * Makefile.in: Remove code for Carbon.
9517
95182008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9519
9520 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
9521
95222008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9523
9524 * macterm.h (kCGBitmapByteOrder32Host): New define for
9525 non-universal SDKs.
9526
9527 * image.c (mac_create_cg_image_from_image, image_load_image_io)
9528 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
9529
9530 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
9531 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
9532
95332008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
9534
9535 * w32inevt.c: Include dispextern.h.
9536
95372008-07-26 Andreas Schwab <schwab@suse.de>
9538
9539 * print.c (print_object): Fix off-by-one in last change.
9540
95412008-07-25 Juanma Barranquero <lekktu@gmail.com>
9542
9543 * term.c (syms_of_term): Don't initialize default_orig_pair,
9544 default_set_foreground and default_set_background on Windows.
9545
95462008-07-25 Jason Rumney <jasonr@gnu.org>
9547
9548 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
9549 ScriptItemize. Clean up return value checking. Remove unused
9550 variables.
9551 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
9552 shaping engine.
9553
9554 * w32font.c (w32font_has_char): Handle the case where we can't
9555 determine the script for a character.
9556
95572008-07-25 Chong Yidong <cyd@stupidchicken.com>
9558
9559 * term.c (syms_of_term): Initialize default_orig_pair,
9560 default_set_foreground, and default_set_background.
9561
9562 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
9563 clash (bug#86).
9564 (getloadavg): Callers changed.
9565
9566 * image.c (svg_load_image): Fix last change.
9567 (svg_load_image): Use rsvg_handle_get_dimensions to check that
9568 image size is valid. Use g_object_unref instead of deprecated
9569 rsvg_handle_free to free rsvg handle.
9570 (x_from_xcolors): Don't initialize pixmap (silence compiler).
9571
95722008-07-25 Jason Rumney <jasonr@gnu.org>
9573
9574 * w32font.c (w32font_encode_char): Encode characters outside BMP as
9575 surrogates before looking up glyph index.
9576 (w32font_text_extents): Encode as surrogates if falling back to
9577 functions that need UTF-16 wide chars.
9578
9579 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
9580 BMP as surrogates before looking up glyph index.
9581
95822008-07-25 Chong Yidong <cyd@stupidchicken.com>
9583
9584 * image.c (svg_load_image): Check for failure in return value of
9585 rsvg_handle_get_pixbuf. Free rsvg handle when done.
9586
95872008-07-25 Jason Rumney <jasonr@gnu.org>
9588
9589 * w32font.c (Fx_select_font): Reverse sense of second arg.
9590
95912008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
9592
9593 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
9594 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
9595
9596 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
9597 (PURESIZE): Use it.
9598
95992008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
9600
9601 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
9602 * m/alpha.h (TEXT_END):
9603 * m/ibmrs6000.h (TEXT_END):
9604 * m/macppc.h (TEXT_END):
9605 * s/darwin.h (TEXT_END):
9606 * s/msdos.h (TEXT_END): Remove, unused.
9607 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
9608 * s/cygwin.h: Remove comment.
9609
9610 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
9611 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
9612 * m/intel386.h (DOT_GLOBAL_START):
9613 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
9614 (USG): Remove, file not used on USG platforms.
9615
9616 * Makefile.in (HAVE_X11): Remove empty #else.
9617
96182008-07-24 Andreas Schwab <schwab@suse.de>
9619
9620 * fileio.c (Finsert_file_contents): Properly adjust undo list
9621 after format conversion.
9622
96232008-07-24 Jan Djärv <jan.h.d@swipnet.se>
9624
9625 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
9626 (menu_nav_ended): Remove.
9627 (create_menus): Remove signal connect for menu_nav_ended.
9628 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
9629 create_menus.
9630 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
9631
96322008-07-23 Jason Rumney <jasonr@gnu.org>
9633
9634 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
9635 with opened font.
9636 (w32font_open): Set font type to gdi.
9637
9638 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
9639
96402008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
9641
9642 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
9643 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
9644 defines it.
9645 * unexec.c (ADDR_CORRECT): Define unconditionally.
9646
9647 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
9648
9649 * unexec.c: Remove code depending on !COFF and USG, the file is
9650 not used for such systems.
9651
9652 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
9653 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
9654 (LD_SWITCH_SYSTEM_1): Remove, update users.
9655
9656 * s/darwin.h (DATA_END):
9657 * m/intel386.h (DATA_END):
9658 * m/ibmrs6000.h (DATA_END):
9659 * m/alpha.h (DATA_END): Remove, unused.
9660
9661 * config.in: Regenerate.
9662 * s/ms-w32.h (subprocesses): Define unconditionally.
9663 * s/template.h (subprocesses): Update comment.
9664 * s/vms.h (subprocesses):
9665 * s/usg5-4.h (subprocesses):
9666 * s/hpux10-20.h (subprocesses):
9667 * s/gnu-linux.h (subprocesses):
9668 * s/cygwin.h (subprocesses):
9669 * s/bsd-common.h (subprocesses):
9670 * s/aix4-2.h (subprocesses):
9671 * s/darwin.h (subprocesses): Do not define, defined by default now.
9672
9673 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
9674 Remove all references.
9675 (temacs): Add GNUstep specific ld flags.
9676
9677 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
9678 similarly to what X does.
9679
96802008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9681
9682 * nsfns.m (x-list-fonts): Remove.
9683 (syms_of_nsfns): Drop the x-list-fonts declaration.
9684 * nsterm.m: Get rid of remaining "//" comments.
9685
96862008-07-22 Chong Yidong <cyd@stupidchicken.com>
9687
9688 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
9689
9690 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
9691 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
9692 (Fns_own_selection_internal, Fx_disown_selection_internal)
9693 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
9694
9695 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
9696 ... */' style of docstrings. Doc fixes.
9697
96982008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
9699
9700 * terminfo.c (UP, BC, PC): Undo previous change.
9701
9702 * nsfns.m: Rename ns prefixed functions/variables to the
9703 corresponding x versions. Update references.
9704
97052008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
9706
9707 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
9708
97092008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
9710
9711 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
9712 Remove forwarding functions.
9713 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
9714 non-static.
9715 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
9716 non-static.
9717 (ns_frame_parm_handlers): Use the new names.
9718 (syms_of_nsfns): Move to the end of file.
9719
9720 * nsterm.m (syms_of_nsterm): Move to the end of file.
9721
9722 * dispnew.c (init_display): Remove code for X10.
9723
97242008-07-22 Jason Rumney <jasonr@gnu.org>
9725
9726 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
9727 bare drive.
9728
97292008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9730
9731 * nsterm.m (syms_of_nsterm): Remove debugging println.
9732
97332008-07-22 David Reitter <david.reitter@gmail.com>
9734
9735 * nsfns.m (do_applescript, F_do_applescript): NS version of the
9736 Carbon implementation of the same functionality: execute arbitrary
9737 AppleScript code.
9738
97392008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9740
9741 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
9742 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
9743 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
9744 (Fx_display_mm_height, Fx_display_mm_width)
9745 (Fx_display_backing_store, Fx_display_visual_class)
9746 (Fx_display_save_under, Fx_open_connection)
9747 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
9748 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
9749 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
9750 (Fx_display_pixel_width, Fx_display_pixel_height)
9751 (Fx_display_usable_bounds, Fx_display_planes)
9752 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
9753 ... */' style of docstrings.
9754
97552008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
9756
9757 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
9758 on this platform.
9759 (mips):
9760 * m/iris4d.h (mips): Do not define.
9761 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
9762
9763 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
9764
9765 * image.c:
9766 * nsfns.m:
9767 * nsselect.m:
9768 * nsterm.h:
9769 * nsterm.m: Rename ns prefixed functions/variables to the
9770 corresponding x versions. Update references.
9771
9772 * m/ibms390x.h (NO_REMAP): Do not undefine.
9773
9774 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
9775
97762008-07-21 Chong Yidong <cyd@stupidchicken.com>
9777
9778 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
9779 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
9780 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
9781 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
9782 (Fns_display_mm_height, Fns_display_mm_width)
9783 (Fns_display_backing_store, Fns_display_visual_class)
9784 (Fns_display_save_under, Fns_open_connection)
9785 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
9786 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
9787 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
9788 (Fns_display_pixel_width, Fns_display_pixel_height)
9789 (Fns_display_usable_bounds, Fx_display_planes)
9790 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
9791
97922008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
9793
9794 * print.c (print_object): Check print_depth before searching for
9795 circularities.
9796
97972008-07-21 Michael Albinus <michael.albinus@gmx.de>
9798
9799 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
9800 only sprintf.
9801
98022008-07-21 Kenichi Handa <handa@m17n.org>
9803
9804 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
9805
98062008-07-20 Andreas Schwab <schwab@suse.de>
9807
9808 * syntax.c (find_start_pos, find_start_value)
9809 (find_start_value_byte, find_start_begv, find_defun_start)
9810 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
9811
98122008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
9813
9814 * s/sol2-3.h: Insert contents of s/sol2.h.
9815 (LD_SWITCH_SYSTEM): Remove redundant definition.
9816 * s/sol2.h: Remove, unused.
9817
98182008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9819
9820 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
9821
98222008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9823
9824 * Makefile.in (ns_appdir): Fix typo in find command.
9825
98262008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
9827
9828 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
9829
9830 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
9831 added not supported anymore.
9832
9833 * s/usg5-4-2.h (LIBS_SYSTEM):
9834 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
9835
9836 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
9837 * s/lynxos.h (GETPGRP_NO_ARG):
9838 * s/hpux10-20.h (NO_SIOCTL_H):
9839 * s/gnu.h (GETPGRP_NO_ARG):
9840 * s/gnu-linux.h (NO_SIOCTL_H):
9841 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
9842 * s/cygwin.h (GETPGRP_NO_ARG):
9843 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
9844 (C_DEBUG_SWITCH): Remove duplicate definition.
9845
9846 * m/ibms390.h: Remove boilerplate comments.
9847
9848 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
9849
9850 * process.c (HAVE_SERIAL): Consolidate ifdefs.
9851 (wait_reading_process_output): Remove code for SunOS, platform not
9852 supported anymore. Use SOLARIS2 instead of sun.
9853
98542008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9855
9856 * font.c (font_open_by_name): Under NS, default lface height to zero.
9857 (font_open_for_lface): Under NS, set size based on frame fontsize.
9858 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
9859 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
9860
98612008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9862
9863 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
9864 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
9865 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
9866 YES/NO.
9867 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
9868 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
9869 * Makefile.in (clean): Clear out build destination dir.
9870
98712008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9872
9873 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
9874 xterm, xselect.
9875 * lisp.h: Remove declaration of hash_remove.
9876 * nsgui.h: Remove redefinitions of hash_remove.
9877 * fns.c (hash_remove): Rename to hash_remove_from_table.
9878
98792008-07-19 Seiji Zenitani <zenitani@mac.com>
9880
9881 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
9882 strdup() the family UTF8String before modifying it.
9883
98842008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9885
9886 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
9887 NS_FACE_BACKGROUND with 0 instead of nil.
9888 * nsfont.m (nsfont_draw): Same.
9889
98902008-07-19 Chong Yidong <cyd@stupidchicken.com>
9891
9892 * nsfns.m (ns_set_background_color): Fix crash.
9893
98942008-07-18 Chong Yidong <cyd@stupidchicken.com>
9895
9896 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
9897
98982008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
9899
9900 * puresize.h (BASE_PURESIZE): Increase to 1240000.
9901
99022008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9903
9904 * gtkutil.c: Include <config.h> instead of "config.h".
9905
9906 * lisp.h (Foverlay_buffer): Add EXFUN.
9907
9908 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
9909 child process to complete child_setup. Undo 2005-09-21 change.
9910
9911 * s/darwin.h: Mention setsid after vfork.
9912
99132008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9914
9915 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
9916 Depend on macgui.h.
9917
9918 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
9919 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
9920
9921 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
9922 and f19.
9923 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
9924
9925 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
9926 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
9927 Remove enumerators.
9928
9929 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
9930 Check if FACE_FROM_ID returns NULL.
9931
99322008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
9933
9934 * w32inevt.c (change_frame_size): Remove extern declaration.
9935 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
9936 change_frame_size.
9937
99382008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
9939
9940 * getloadavg.c: Revert last change (2008-07-15).
9941
99422008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
9943
9944 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
9945 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
9946 from configure.
9947
99482008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
9949
9950 * s/sol2.h:
9951 * s/sol2-4.h: Reorganize conditionals.
9952
9953 * ecrt0.c: Remove code depending on m68000, not used anymore.
9954
9955 * fns.c (hash_remove): Make static.
9956 * lisp.h (hash_remove): Don't prototype.
9957
9958 * m/ibmrs6000.h:
9959 * m/ibms390x.h:
9960 * m/macppc.h: Remove boilerplate comments.
9961
9962 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
9963 Solaris, which does not need them.
9964
9965 * m/vax.h: Remove comments about unsupported systems.
9966
9967 * s/darwin.h: Reorganize ifdefs.
9968
99692008-07-17 Andreas Schwab <schwab@suse.de>
9970
9971 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
9972
99732008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
9974
9975 Use SDATA. Follow coding convention of placing operators at
9976 beginning of next line rather than end of previous line, and placing
9977 spaces around infix operators.
9978
9979 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
9980 in case it was defined already.
9981 USE @GNUSTEP_MAKEFILES@ rather than envvars.
9982 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
9983 ns_default.
9984 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
9985 Lisp_Objects.
9986 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
9987 (ns_defined_color, ns_color_to_lisp): Declare.
9988 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
9989 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
9990 it's accepted even with USE_LISP_UNION_TYPE.
9991 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
9992 (update_frame_tool_bar): Remove apparently obsolete tests for
9993 non-integerness of f->tool_bar_lines.
9994 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
9995 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
9996 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
9997 (nsfont_open): Don't confuse NULL for Qnil.
9998 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
9999 * menu.h (find_and_call_menu_selection):
10000 * menu.c (find_and_call_menu_selection): Use just int for vector size.
10001 (find_and_return_menu_selection): Always return something.
10002 * frame.h: Include dispextern.h for Display_Info.
10003 (display_x_get_resource): Declare.
10004
100052008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
10006
10007 * syntax.c: Remove stdio.h include accidentally introduced in
10008 Emacs.app commit.
10009 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
10010 NS_IMPL_COCOA.
10011 * keyboard.c (handle_async_input, input_available_signal): Remove
10012 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
10013
100142008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
10015
10016 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
10017 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
10018 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
10019 Use SDATA.
10020
10021 * keymap.c: Remove all NS-specific code.
10022 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
10023 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
10024 where_is_preferred_modifier, return a different value depending on how
10025 preferred is the binding.
10026 (where_is_internal): Adjust accordingly.
10027 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
10028 Adjust to new preferred_sequence_p.
10029 (syms_of_keymap): Declare `where-is-preferred-modifier'.
10030 * keyboard.c (parse_solitary_modifier): Not static any more.
10031 * keyboard.h (parse_solitary_modifier): Declare.
10032
100332008-07-16 Andreas Schwab <schwab@suse.de>
10034
10035 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
10036 of easymenu.
10037
100382008-07-16 Chong Yidong <cyd@stupidchicken.com>
10039
10040 * xdisp.c (move_it_in_display_line): Account for word wrap, so
10041 that we don't move off the line.
10042
100432008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
10044
10045 * keyboard.c (Qsuper): Remove.
10046 (parse_menu_item): Don't call where_is_internal specially for NS.
10047
100482008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
10049
10050 * s/gnu-linux.h: Remove boilerplate comments.
10051
10052 * m/alpha.h (__ELF__): Consolidate conditions.
10053
10054 * m/m68k.h (linux): Use GNU_LINUX instead.
10055 Remove boilerplate comments.
10056
10057 * m/intel386.h: Undo refactoring from previous change.
10058 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
10059 too, remove dead code.
10060 (linux): Use GNU_LINUX instead.
10061
100622008-07-16 Jason Rumney <jasonr@gnu.org>
10063
10064 * w32gui.h: Repeat 26 June changes lost by last change.
10065
100662008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
10067
10068 * systty.h: Remove code for Aix on 386, unsupported platform.
10069
10070 * s/ms-w32.h: Remove boilerplate comments.
10071 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
10072
10073 * s/gnu-linux.h (TERM): Remove support.
10074 (HAVE_SYSVIPC): Remove, unused.
10075 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
10076 for this system.
10077
10078 * process.c: Remove support for IRIS, unused.
10079 Remove support for TERM, not relevant anymore.
10080
10081 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
10082 used with the definition.
10083
10084 * s/aix4-2.h (static): Do not undef.
10085
10086 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
10087 only used on Aix.
10088 (HAVE_SYSVIPC): Remove, unused.
10089
10090 * m/hp800.h (CANNOT_DUMP): Do not undef.
10091
10092 * m/alpha.h: Fix comment.
10093
10094 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
10095 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
10096 used by this configuration.
10097 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
10098 * unexec.c: Remove code depending on HPUX and
10099 USG_SHARED_LIBRARIES, not used with this file. Remove code
10100 depending on IRIS, unused. Remove if 0-ed code.
10101
10102 * s/template.h: Remove comments about static.
10103
10104 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
10105 Remove if 0-ed code.
10106 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
10107 were the same as the default.
10108 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
10109 Remove boilerplate comments.
10110 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
10111 (HAVE_SYSVIPC): Remove, unused.
10112 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
10113
10114 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10115 Remove boilerplate comments.
10116 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10117 Remove boilerplate comments.
10118 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10119 Remove boilerplate comments.
10120 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
10121
10122 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
10123 USG systems which do not use DATA_SEG_BITS.
10124 Refactor code. Remove boilerplate comments.
10125
10126 * m/ibms390.h:
10127 * m/m68k.h:
10128 * s/bsd-common.h:
10129 * s/cygwin.h:
10130 * s/darwin.h:
10131 * s/freebsd.h:
10132 * s/gnu.h:
10133 * s/msdos.h: Remove boilerplate comments.
10134
10135 * m/iris4d.h: Remove boilerplate comments and code for systems that
10136 do not use this file.
10137 (IRIS_4D): Remove, unused.
10138
10139 * m/mips.h: Remove boilerplate comments and code for systems that
10140 do not use this file.
10141 (SIGN_EXTEND_CHAR):
10142 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
10143 * unexmips.c: Remove file, unused.
10144
10145 * editfns.c (Fuser_full_name): Replace the only use of
10146 USER_FULL_NAME with its value.
10147 * config.in: Regenerate.
10148
101492008-07-16 David Reitter <david.reitter@gmail.com>
10150
10151 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
10152 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
10153
101542008-07-16 Glenn Morris <rgm@gnu.org>
10155
10156 * emacs.c (system-type): Doc fix.
10157
101582008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
10159
10160 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
10161 If the cache doesn't work, let's fix it, rather than work around it.
10162
101632008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10164
10165 * Makefile.in: Correct additions for nsfont.o in last commit.
10166 * nsfont.m: New file (forgot last commit).
10167
101682008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
10169
10170 * callproc.c (set_initial_environment): Initialize
10171 Vprocess_environment under CANNOT_DUMP (fixes crash when
10172 batch-compiling for bootstrap).
10173
101742008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
10175 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10176
10177 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
10178 fix crash due to different init order.
10179
101802008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10181
10182 Changes and additions for NeXTstep windowing system (Cocoa and
10183 GNUstep) support.
10184
10185 * Makefile.in:
10186 * config.in: Support defines and build commands for NS port.
10187 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
10188 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
10189 * dispextern.h: Include nsgui.h and add needed typedefs under NS
10190 windowing.
10191 (struct face): Add synth_ital field.
10192 * dispnew.c: Include nsterm.h when compiling under NS windowing.
10193 (init_display): Initialize Vinitial_window_system to "ns" when so
10194 compiled.
10195 * emacs.c: Include GSConfig.h when compiling under GNUstep.
10196 (display_arg): Use under NS.
10197 (main): Under NS, allocate autorelease pool and handle command line
10198 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
10199 (standard_args): Add NS-specific args.
10200 (shut_down_emacs): Shut down NS terminal if compiled under NS.
10201 * font.c (DEFAULT_ENCODING): New variable.
10202 (font_find_for_lface): Use it.
10203 (syms_of_font): Load syms_of_nsfont under NS.
10204 * font.h: Declare nsfont_driver when compiled under NS.
10205 * fontset.c: When compiling under NS, include nsterm.h.
10206 (fontset_from_font): Autoconstruct fontset under NS.
10207 * frame.c (various): Under NS, include nsterm.h, add Qns window system
10208 symbol, document and use it.
10209 (do_switch_frame): When for_deletion under Cocoa, add
10210 Fraise_frame(Qnil).
10211 (x_set_frame_parameters): Ensure font attribute changes are picked up.
10212 (x_get_arg): Allow "yes" and "no" as boolean values.
10213 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
10214 Qright under Cocoa.
10215 (focus-follows-mouse): Default to 0 under NS.
10216 * frame.h (enum output_method): Add output_ns.
10217 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
10218 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
10219 (FRAME_WINDOW_P): NS-specific definition.
10220 * fringe.c (max_used_fringe_bitmap): Make public.
10221 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
10222 (getloadavg): Use NeXT code under descendant OS's.
10223 * image.c (includes and header section, x_create_bitmap_from_data)
10224 (x_create_bitmap_from_file, free_bitmap_record, image_background)
10225 (image_background_transparent, x_clear_image_1)
10226 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
10227 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
10228 (x_to_xcolors, x_from_xcolors, x_disable_image)
10229 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
10230 other GUIs, including XPM support using code originally written for
10231 Carbon GUI.
10232 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
10233 using NS API.
10234 (image_ascent): Use font metrics macros instead of direct struct field
10235 access.
10236 * keyboard.c (includes): Add nsterm.h when compiling under NS.
10237 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
10238 Also, handle NS as GTK for menu bar purposes.
10239 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
10240 toolkit where they differ.
10241 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
10242 use cachelist, still needed under NS.
10243 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
10244 (struct widget_value): Define it here for menu.c.
10245 * keymap.c (includes): Include modifier internals.
10246 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
10247 NS.
10248 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
10249 support for preferring sequences using certain modifiers, specified by
10250 the FIRSTONLY argument.
10251 * lisp.h (hash_remove): Rename to avoid name clash when compiling
10252 under NS GNUstep implementation.
10253 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
10254 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
10255 * menu.c: Include nsterm.h under NS.
10256 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
10257 (free_menubar_widget_tree_value, update_submenu_strings)
10258 (find_and_call_menu_selection): Treat NS as X and NT.
10259 (find_and_return_menu_selection): New function, used for popup menus.
10260 * nsgui.h:
10261 * nsterm.h:
10262 * nsfns.m:
10263 * nsimage.m:
10264 * nsmenu.m:
10265 * nsselect.m:
10266 * nsterm.m: New files.
10267 * process.c (wait_reading_process_output): Under NS, call ns_select()
10268 instead of plain select().
10269 * syntax.c (char_quoted): Under NS, avoid a crash when called near
10270 beginning of buffer.
10271 * sysselect.h (init_process): Rename when compiling under Cocoa to
10272 avoid name conflict.
10273 * termhooks.h (display_info): Add ns_display_info to union.
10274 * terminal.c (Fterminal_live_p): Add ns to terminal types.
10275 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
10276 COCOA environment.
10277 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
10278 unexec() signature. (Note, this will dump, but the resulting file
10279 crashes; unexosx is used instead; keeping around for reference and
10280 possible aid in getting dump working under GNUstep.)
10281 * w32gui.h (button_type, widget_value): Remove definitions (now in
10282 keyboard.h).
10283 * window.c: Include nsterm.h when compiling under NS.
10284 * xdisp.c (includes): Include nsterm.h when compiling under NS.
10285 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
10286 other GUI windowing systems.
10287 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
10288 GTK.
10289 (x_consider_frame_title): Under NS, set icon type and frame
10290 modified-state indicator; use ns_set_name_as_filename() when using
10291 formatted title.
10292 (update_window_cursor): Make public when compiling under NS.
10293 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
10294 (hourglass_atimer, Vhourglass_delay
10295 * xfaces.c (header section, init_frame_faces, clear_font_table)
10296 (defined_color, unload_color, x_face_list_fonts)
10297 (prepare_face_for_display): Add NS support parallel to other GUIs.
10298 Emulate GCs like other non-X GUIs.
10299 (split_font_name): Don't lowercase font name under NS.
10300 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
10301 under NS.
10302 * s/darwin.h: Add support for compilation under NS.
10303
103042008-07-15 Jason Rumney <jasonr@gnu.org>
10305
10306 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
10307 (w32_show_hourglass): Rename from show_hourglass.
10308 (w32_hide_hourglass): Rename from hide_hourglass.
10309 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
10310 (Vhourglass_delay): Declare extern.
10311 (hourglass_started): Remove.
10312
10313 * xdisp.c (Vhourglass_delay): Remove static.
10314 (hourglass_started, start_hourglass, cancel_hourglass):
10315 Don't include these versions on WINDOWSNT.
10316
103172008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10318
10319 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
10320 variables (formerly in xfns.c).
10321 (show_hourglass, hide_hourglass): New prototypes (same).
10322 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
10323 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
10324 in xfns.c).
10325 (syms_of_xdisp): Declare/initialize display-hourglass,
10326 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
10327 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
10328 formerly in xfns.c.
10329 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
10330 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
10331 (start_hourglass, cancel_hourglass): Remove.
10332 (show_hourglass, hide_hourglass): Remove prototypes and static
10333 modifiers.
10334 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
10335 hourglass_atimer, hourglass_shown_p declaration/initialization.
10336 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
10337 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
10338 (start_hourglass, cancel_hourglass): Remove.
10339 (show_hourglass, hide_hourglass): Remove prototypes and static
10340 modifiers.
10341 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
10342 hourglass_atimer, hourglass_shown_p declaration/initialization.
10343 * w32fns.c (display_hourglass_p, Vhourglass_delay)
10344 (DEFAULT_HOURGLASS_DELAY): Remove.
10345 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
10346 hourglass_shown_p declaration/initialization.
10347
103482008-07-14 Jason Rumney <jasonr@gnu.org>
10349
10350 * w32fns.c (w32_get_arg): Remove wrapper function.
10351 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
10352 directly.
10353 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
10354
103552008-07-14 Kenichi Handa <handa@m17n.org>
10356
10357 * xfont.c (xfont_open): Add workaround for X's bug.
10358
103592008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
10360
10361 * fontset.c: Include <stdio.h> unconditionally.
10362
103632008-07-13 Michael Albinus <michael.albinus@gmx.de>
10364
10365 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
10366 for filtering.
10367
103682008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
10369
10370 * s/vms.h: Use __GNUC__ instead of _GNUC_.
10371
10372 * m/macppc.h:
10373 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
10374
10375 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
10376 (SPECIAL_EMACS_INT):
10377 * m/ia64.h (SPECIAL_EMACS_INT):
10378 * m/amdx86-64.h (SPECIAL_EMACS_INT):
10379 * s/gnu.h (NLIST_STRUCT):
10380 * s/aix4-2.h (X11R5_INHIBIT_I18N):
10381 * s/gnu-linux.h (LINUX):
10382 * s/msdos.h (HAVE_FACES):
10383 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
10384
10385 * systty.h:
10386 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
10387 anymore.
10388
103892008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
10390
10391 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
10392 always defined as int.
10393
10394 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
10395 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
10396 * s/gnu-linux.h (HAVE_WAIT_HEADER):
10397 * s/freebsd.h (HAVE_WAIT_HEADER):
10398 * s/bsd-common.h (HAVE_UNION_WAIT):
10399 * s/aix4-2.h (HAVE_WAIT_HEADER):
10400 * m/mips.h (HAVE_UNION_WAIT):
10401 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
10402 (COFF, static): Do not define, they are undefined later in the file.
10403
10404 * process.c (update_status): Don't use a union.
10405 (status_convert):
10406 (sigchld_handler): Use int instead of WAITTYPE.
10407
104082008-07-12 Chong Yidong <cyd@stupidchicken.com>
10409
10410 * indent.c (Fvertical_motion): Restore hscroll before moving to
10411 goal column.
10412
104132008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
10414
10415 * lisp.h: Remove left over code.
10416
104172008-07-11 Andreas Schwab <schwab@suse.de>
10418
10419 * lisp.h: Fix logic in last change.
10420
10421 * menu.h: New file.
10422 * menu.c: Include it.
10423 * xmenu.c: Likewise.
10424 * Makefile.in: Update dependencies.
10425
104262008-07-11 Kenichi Handa <handa@m17n.org>
10427
10428 * fontset.c (fontset_from_font): Cancel the previous change.
10429
104302008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
10431
10432 * lisp.h:
10433 * w32heap.c:
10434 * emacs.c:
10435 * alloc.c: Replace all references of NO_UNION_TYPE with
10436 USE_LISP_UNION_TYPE.
10437
10438 * m/xtensa.h (NO_UNION_TYPE):
10439 * m/vax.h (NO_UNION_TYPE):
10440 * m/template.h (NO_UNION_TYPE):
10441 * m/sparc.h (NO_UNION_TYPE):
10442 * m/mips.h (NO_UNION_TYPE):
10443 * m/macppc.h (NO_UNION_TYPE):
10444 * m/m68k.h (NO_UNION_TYPE):
10445 * m/iris4d.h (NO_UNION_TYPE):
10446 * m/intel386.h (NO_UNION_TYPE):
10447 * m/ibms390x.h (NO_UNION_TYPE):
10448 * m/ibms390.h (NO_UNION_TYPE):
10449 * m/ibmrs6000.h (NO_UNION_TYPE):
10450 * m/ia64.h (NO_UNION_TYPE):
10451 * m/hp800.h (NO_UNION_TYPE):
10452 * m/arm.h (NO_UNION_TYPE):
10453 * m/amdx86-64.h (NO_UNION_TYPE):
10454 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
10455 defining it the same.
10456
104572008-07-10 Chong Yidong <cyd@stupidchicken.com>
10458
10459 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
10460
104612008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
10462
10463 * fileio.c:
10464 * sysdep.c:
10465 * systty.h:
10466 * m/ibmrs6000.h:
10467 * m/iris4d.h:
10468 * s/aix4-2.h:
10469 * s/freebsd.h:
10470 * s/gnu-linux.h:
10471 * s/hpux10-20.h:
10472 * s/hpux11.h:
10473 * s/netbsd.h:
10474 * s/sol2-3.h:
10475 * s/sol2-4.h:
10476 * s/sol2.h:
10477 * s/usg5-4.h:
10478 * s/vms.h: Remove references to unused variables.
10479
104802008-07-10 Andreas Schwab <schwab@suse.de>
10481
10482 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
10483 pattern before matching the generic family.
10484
104852008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
10486
10487 * unexec.c:
10488 * s/vms.h:
10489 * s/usg5-4-2.h:
10490 * s/sol2-5.h:
10491 * s/freebsd.h:
10492 * s/darwin.h: Remove dead code.
10493
10494 * m/template.h:
10495 * m/sparc.h:
10496 * m/mips.h:
10497 * m/m68k.h:
10498 * m/iris4d.h:
10499 * m/intel386.h:
10500 * m/ibms390x.h:
10501 * m/ibms390.h:
10502 * m/ia64.h:
10503 * m/hp800.h:
10504 * m/arm.h:
10505 * m/amdx86-64.h: Remove dead code and references to unused
10506 and compiler defined symbols.
10507
10508 * unexmips.c:
10509 * unexelf.c: Remove references to desupported systems.
10510
10511 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
10512
10513 * m/powermac.h: Remove boilerplate comments.
10514 (NO_REMAP): Remove unused definition.
10515
10516 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
10517 define them.
10518
105192008-07-10 Kenichi Handa <handa@m17n.org>
10520
10521 * xfont.c (xfont_open): Log the reason of failure.
10522
105232008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
10524
10525 * fontset.c (fontset_get_font_group):
10526 * font.c (font_check_otf): Specify argument types.
10527
105282008-07-09 Kenichi Handa <handa@m17n.org>
10529
10530 * coding.c (detect_coding_utf_8): Set detect_info->found only when
10531 non-ASCII char is found.
10532
10533 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
10534 (reorder_font_vector): Change the arg preferred_family to font.
10535 Prefer the spec matching with font.
10536 (fontset_get_font_group): New function.
10537 (fontset_find_font): Change the format of an element of a realized
10538 fontset. Use fontset_get_font_group.
10539 (fontset_font): Try the current fontset, the default fontset, the
10540 fallbacks of the current fontset, and the fallbacks of the default
10541 fontset in this order.
10542 (face_for_char): Delete the shortcut to use the current font.
10543 (fontset_from_font): Don't set fonts for Latin in the fontset.
10544
10545 * font.h (font_make_object, font_match_p): Adjust prototypes.
10546
10547 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
10548
10549 * font.c (font_make_object): New arg entity and pixelsize.
10550 (font_check_otf_features, font_check_otf): New functions.
10551 (font_match_p): Check :lang, :script, and :otf properties.
10552
10553 * xfont.c (xfont_open): Adjust it for the change of
10554 font_make_object.
10555 (xfont_text_extents): Fix initial setting of metrics.
10556
10557 * ftfont.c (struct ftfont_info): New member index, delete member
10558 fc_charset_idx. Make the member order compatible with struct
10559 xftfont_info.
10560 (fc_charset_table): Change charset names to registry names.
10561 (ftfont_pattern_entity): Delete the args registry and
10562 fc_charset_idx. Change the value of :font-entity property
10563 to (FONTNAME . INDEX). Always set :registry property to
10564 `iso10646-1'.
10565 (struct ftfont_cache_data): New struct.
10566 (ftfont_lookup_cache): New arg for_face.
10567 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
10568 (ftfont_driver): Set the member otf_capability.
10569 (ftfont_get_charset): Adjust it for the change of
10570 fc_charset_table.
10571 (OTF_TAG_SYM): New macro.
10572 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
10573 for the change of fc_charset_table.
10574 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
10575 ftfont_pattern_entity. Add FC_INDEX to objset.
10576 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
10577 and ftfont_pattern_entity.
10578 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
10579 font_make_object, struct ftfont_info.
10580 (ftfont_has_char): Use ftfont_get_fc_charset.
10581 (ftfont_otf_features, ftfont_otf_capability): New functions.
10582 (ftfont_shape): Use ftfont_get_otf.
10583 (ftfont_text_extents): Fix initial setting of metrics.
10584
10585 * xftfont.c (struct xftfont_info): New member ft_size. Make the
10586 member order compatible with struct ftfont_info.
10587 (xftfont_open): Add FC_CHARSET to the pattern. Set
10588 xftfont_info->ft_size. Don't unlock the face. Check BDF
10589 properties if appropriate.
10590 (xftfont_close): Unlock the face.
10591 (xftfont_anchor_point, xftfont_shape): Deleted.
10592 (syms_of_xftfont): Don't set members anchor_point and shape of
10593 xftfont_driver.
10594
10595 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
10596 font_make_object.
10597
10598 * w32font.c (w32font_open): Adjust it for the change of
10599 font_make_object.
10600 (w32font_open_internal): Don't set properties of font_object here.
10601
106022008-07-08 Chong Yidong <cyd@stupidchicken.com>
10603
10604 * macfns.c (x_create_tip_frame):
10605 * w32fns.c (x_create_tip_frame):
10606 * xfns.c (x_create_tip_frame): Pass parameter argument to
10607 face-set-after-frame-default.
10608
10609 * xfaces.c (Finternal_merge_in_global_face): Save merged
10610 attributes for the default face back into the face vector.
10611
106122008-07-08 Andreas Schwab <schwab@suse.de>
10613
10614 * fontset.h: Declare fontset_from_font. Don't declare
10615 new_fontset_from_font and fontset_from_font_name.
10616 * xterm.c: Include "fontset.h".
10617 * Makefile.in (xterm.o): Update dependencies.
10618
106192008-07-08 Glenn Morris <rgm@gnu.org>
10620
10621 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
10622 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
10623
106242008-07-07 Chong Yidong <cyd@stupidchicken.com>
10625
10626 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
10627 (x_set_frame_parameters): Don't bind it.
10628
106292008-07-07 Juanma Barranquero <lekktu@gmail.com>
10630
10631 * w32fns.c (map_w32_filename): Declare extern.
10632
106332008-07-07 Jason Rumney <jasonr@gnu.org>
10634
10635 * w32term.c (WS_EX_LAYERED): Define if not already.
10636
106372008-07-06 Chong Yidong <cyd@stupidchicken.com>
10638
10639 * xfaces.c (set_font_frame_param): Don't try to set the font
10640 parameter if it is still unspecified in the lface.
10641
106422008-07-05 Chong Yidong <cyd@stupidchicken.com>
10643
10644 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
10645 face if it didn't already exist.
10646
10647 * xdisp.c (try_window_id): Give up if word-wrapping is on.
10648
106492008-07-05 Andreas Schwab <schwab@suse.de>
10650
10651 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
10652
106532008-07-05 Chong Yidong <cyd@stupidchicken.com>
10654
10655 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
10656 word-wrapping.
10657 (IT_DISPLAYING_WHITESPACE): New macro.
10658 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
10659 when word-wrapping. Simplify word-wrapping logic. Use correct
10660 pixel positions when saving copies of the iterator.
10661 (display_line): Use proper wrap point if the last character on a
10662 line was preceded by whitespace.
10663
106642008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
10665
10666 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
10667
106682008-07-04 Kenichi Handa <handa@m17n.org>
10669
10670 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
10671
10672 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
10673
106742008-07-02 Jason Rumney <jasonr@gnu.org>
10675
10676 * xfns.c (syms_of_xfns): Only define x-select-font when both
10677 HAVE_FREETYPE and USE_GTK.
10678
10679 * xdisp.c (next_element_from_display_vector): Move assignment out
10680 of if statement.
10681
106822008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
10683
10684 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
10685
10686 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
10687 (syms_of_fileio): Initialize and export them.
10688 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
10689
10690 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
10691 (Fsystem_move_file_to_trash): New function.
10692 (syms_of_w32fns): Export it to lisp.
10693
106942008-07-01 Jason Rumney <jasonr@gnu.org>
10695
10696 * w32font.c (w32font_text_extents): Don't count overhang as part
10697 of width.
10698
106992008-06-30 Miles Bader <miles@gnu.org>
10700
10701 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
10702 Add `avoid_cursor_p' field.
10703
10704 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
10705 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
10706 (append_glyph, append_composite_glyph, produce_image_glyph)
10707 (append_stretch_glyph): Initialize avoid_cursor_p.
10708 (get_it_property): Rename from `get_line_height_property'.
10709 (x_produce_glyphs): Use get_it_property.
10710 (handle_line_prefix, push_display_prop): New functions.
10711 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
10712 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
10713 New variables.
10714 (syms_of_xdisp): Initialize them.
10715
107162008-06-30 Kenichi Handa <handa@m17n.org>
10717
10718 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
10719 XftDefaultSubstitute (they are called in XftFontMatch).
10720 (xftfont_open): Fix args to ftfont_font_format.
10721
10722 * ftfont.c (fc_charset_table): New member lang.
10723 (ftfont_resolve_generic_family): New arg pattern.
10724 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
10725 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
10726 (ftfont_open): Fix args to ftfont_font_format.
10727 (ftfont_font_format): New arg filename.
10728
107292008-06-30 Chong Yidong <cyd@stupidchicken.com>
10730
10731 * xfaces.c (Finternal_merge_in_global_face): If default face was
10732 modified, realize it again. Update the font face attribute.
10733
107342008-06-29 Jason Rumney <jasonr@gnu.org>
10735
10736 * w32term.c (x_set_frame_alpha): Fix logic.
10737
107382008-06-29 Kenichi Handa <handa@m17n.org>
10739
10740 * fontset.c (Finternal_char_font): Return font-object instead of
10741 font-name.
10742
10743 * composite.c (get_composition_id): Fix the width calculation for TAB.
10744
107452008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
10746
10747 * indent.c (Fvertical_motion): Properly handle float column arg.
10748
107492008-06-28 Jason Rumney <jasonr@gnu.org>
10750
10751 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
10752 (pfnSetLayeredWindowAttributes): New function pointer.
10753 (w32_initialize): Initialize it when supported.
10754 (x_set_frame_alpha): New function.
10755
10756 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
10757 (w32_frame_parm_handlers): Set alpha handler.
10758
10759 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
10760
107612008-06-27 Jason Rumney <jasonr@gnu.org>
10762
10763 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
10764 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
10765 (w32_to_x_charset, x_to_w32_charset)
10766 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
10767 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
10768 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
10769 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
10770 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
10771 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
10772 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
10773 (Qw32_charset_unicode): Remove.
10774 (syms_of_w32fns): Update for above changes.
10775
10776 * w32font.c (w32_to_x_charset, x_to_w32_charset)
10777 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
10778 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
10779 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
10780 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
10781 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
10782 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
10783 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
10784 (syms_of_w32font): Update for above changes.
10785
107862008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
10787
10788 * s/usg5-4.h: Fix previous change: keep the correct branch of a
10789 removed #if.
10790 (USG_SHARED_LIBRARIES): Remove duplicate definition.
10791
107922008-06-26 Juanma Barranquero <lekktu@gmail.com>
10793 Eli Zaretskii <eliz@gnu.org>
10794
10795 * makefile.w32-in (LOCAL_FLAGS):
10796 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
10797
10798 * sysdep.c (_spawnlp, _getpid):
10799 Declare with explicit _cdecl instead of _CRTAPI1.
10800
10801 * editfns.c (Fget_internal_run_time):
10802 Check for WINDOWSNT with #ifdef, not #if.
10803
108042008-06-26 Jason Rumney <jasonr@gnu.org>
10805
10806 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
10807
10808 * w32term.c (x_draw_glyph_string_foreground)
10809 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
10810 Use FONT_HANDLE macro.
10811 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
10812
10813 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
10814 (uniscribe_encode_char): Use FONT_HANDLE macro.
10815
10816 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
10817 (w32font_text_extents): Use precast w32_font.
10818 (w32font_close): Free cached metrics.
10819 (w32font_open_internal): Allocate space for name on stack.
10820
108212008-06-26 Chong Yidong <cyd@stupidchicken.com>
10822
10823 * xdisp.c (extend_face_to_end_of_line): Fix last change.
10824
108252008-06-26 Jason Rumney <jasonr@gnu.org>
10826
10827 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
10828 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
10829
108302008-06-26 Juanma Barranquero <lekktu@gmail.com>
10831
10832 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
10833
108342008-06-26 Jason Rumney <jasonr@gnu.org>
10835
10836 * w32bdf.c, w32bdf.h: Remove obsolete files.
10837
10838 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
10839
10840 * w32gui.h: Don't include w32bdf.h.
10841 (XCharStruct, enum w32_char_font_type, W32FontStruct):
10842 Remove obsolete font support.
10843
10844 * w32font.h (struct w32font_info): Remove compat_w32_font.
10845 Add hfont member.
10846 (FONT_COMPAT): Remove obsolete macro.
10847
10848 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
10849 (w32font_encode_char, w32font_text_extents): Use new hfont member.
10850 (w32font_open_internal): Remove compat code. Set new hfont member.
10851 (Fx_select_font): Use new hfont member.
10852
10853 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
10854 (uniscribe_encode_char): Use new hfont member.
10855
10856 * w32term.c (x_draw_glyph_string_foreground)
10857 (x_draw_composite_glyph_string_foreground): Use new hfont member.
10858 (x_draw_glyph_string): Use metrics in w32font_info.
10859
108602008-06-26 Kenichi Handa <handa@m17n.org>
10861
10862 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
10863
108642008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
10865
10866 * unexnext.c:
10867 * m/ews4800.h:
10868 * m/hp9000s300.h:
10869 * m/ibm370aix.h:
10870 * m/mips-siemens.h:
10871 * m/ncr386.h:
10872 * m/next.h:
10873 * m/pmax.h:
10874 * m/powerpcle.h:
10875 * m/tandem-s2.h:
10876 * s/386bsd.h:
10877 * s/bsd386.h:
10878 * s/bsd4-1.h:
10879 * s/bsd4-2.h:
10880 * s/bsdos2-1.h:
10881 * s/bsdos2.h:
10882 * s/bsdos3.h:
10883 * s/bsdos4.h:
10884 * s/nextstep.h:
10885 * s/ultrix4-3.h:
10886 * s/usg5-0.h:
10887 * s/usg5-2-2.h:
10888 * s/usg5-2.h:
10889 * s/usg5-4-3.h:
10890 * s/ux4800.h:
10891 * s/uxpds.h:
10892 * s/uxpv.h: Remove support for obsolete systems.
10893 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
10894 Remove, insert contents in s/hpux10-20.h.
10895 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
10896 Remove, insert contents in s/aix4-2.h.
10897 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
10898 * s/bsd4-3.h: Rename to ...
10899 * s/bsd-common.h: ... this.
10900 * data.c:
10901 * doc.c:
10902 * ecrt0.c:
10903 * emacs.c:
10904 * fileio.c:
10905 * floatfns.c:
10906 * keyboard.c:
10907 * mem-limits.h:
10908 * print.c:
10909 * process.c:
10910 * sysdep.c:
10911 * syssignal.h:
10912 * systty.h:
10913 * syswait.h:
10914 * term.c:
10915 * unexec.c:
10916 * unexelf.c:
10917 * unexhp9k800.c:
10918 * m/hp800.h:
10919 * m/ibmrs6000.h:
10920 * m/mips.h:
10921 * m/vax.h:
10922 * s/darwin.h:
10923 * s/freebsd.h:
10924 * s/gnu.h:
10925 * s/ms-w32.h:
10926 * s/msdos.h:
10927 * s/netbsd.h:
10928 * s/template.h: Remove references to obsolete variables.
10929
10930 * Makefile.in: Add dependencies for all unexec files.
10931 (admindir): Remove unused variable.
10932 (UNEXEC_SRC): Remove references.
10933
109342008-06-25 Chong Yidong <cyd@stupidchicken.com>
10935
10936 * xfns.c (x_default_font_parameter): If Xft is available, first
10937 try Monospace-12 for the default font.
10938
109392008-06-25 Jason Rumney <jasonr@gnu.org>
10940
10941 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
10942
109432008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
10944
10945 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
10946
10947 * buffer.c (syms_of_buffer): Remove default-word-wrap.
10948
109492008-06-25 Juanma Barranquero <lekktu@gmail.com>
10950
10951 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
10952 <scroll-conservatively>: Fix typo in docstring.
10953
10954 * xselect.c (Fx_send_client_event): Doc fix.
10955
109562008-06-25 Kenichi Handa <handa@m17n.org>
10957
10958 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
10959
10960 * font.c (font_parse_fcname): Remove unused variables.
10961 (font_sort_entites): Delete the arg SPEC. Caller changed.
10962 Fix for the case of ! best_only.
10963 (font_delete_unmatched): Check DPI and AVGWIDTH too.
10964
10965 * lisp.h (Fstring_to_unibyte): EXFUN it.
10966
10967 * character.h (str_to_unibyte): Extern it.
10968
10969 * character.c (str_to_unibyte): New function.
10970
10971 * fns.c (Fstring_to_unibyte): New function.
10972 (syms_of_fns): Defsubr it.
10973
109742008-06-24 Kenichi Handa <handa@m17n.org>
10975
10976 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
10977 DPI too.
10978 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
10979
109802008-06-24 Andreas Schwab <schwab@suse.de>
10981
10982 * Makefile.in (${lispsource}loaddefs.el): Rename from
10983 ../lisp/loaddefs.el.
10984 (bootstrap-clean): Do what distclean does but don't remove
10985 Makefile.
10986 (distclean): Depend on bootstrap-clean and remove Makefile.
10987
109882008-06-24 Chong Yidong <cyd@stupidchicken.com>
10989
10990 * buffer.h (struct buffer): New member word_wrap.
10991
10992 * buffer.c (syms_of_buffer): New variables default-word-wrap and
10993 word-wrap.
10994 (init_buffer_once): Initialize them.
10995
10996 * dispextern.h (struct it): Replace bool truncate_lines_p with a
10997 line_wrap enum possessing three possible values.
10998
10999 * termopts.h: Replace truncate_partial_width_windows with
11000 Vtruncate_partial_width_windows.
11001
11002 * dispnew.c (direct_output_for_insert): Avoid direct output when
11003 inserting a space with word wrap on.
11004
11005 * indent.c (compute_motion): Obey integer values of
11006 truncate-partial-width-windows.
11007
11008 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
11009 replacing truncate_partial_width_windows.
11010 (init_iterator): If Vtruncate_partial_width_windows is an integer,
11011 truncate only if the window width is below that integer.
11012 (start_display, resize_mini_window, produce_stretch_glyph)
11013 (display_string, move_it_in_display_line_to): Use line_wrap.
11014 (back_to_previous_visible_line_start, reseat_1): Reset
11015 string_from_display_prop_p.
11016 (display_line): Extend default face to end of line when wrapping.
11017
110182008-06-24 Kim F. Storm <storm@cua.dk>
11019
11020 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
11021 to wrap continued lines at word boundaries.
11022
110232008-06-24 Jason Rumney <jasonr@gnu.org>
11024
11025 * font.c (Ffont_face_attributes): Multiply pixel size before point
11026 conversion to avoid multiplying rounding error.
11027
110282008-06-23 Jason Rumney <jasonr@gnu.org>
11029
11030 * w32term.c (x_draw_glyph_string_background)
11031 (x_draw_glyph_string): Remove old bdf font code.
11032
11033 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
11034
110352008-06-22 Kenichi Handa <handa@m17n.org>
11036
11037 * font.c (font_find_for_lface): Try the adstyle specified in
11038 the property of LFACE_FONT of LFACE (if any).
11039
110402008-06-21 Seiji Zenitani <zenitani@mac.com>
11041 Ryo Yoshitake <ryo@shiftmode.net>
11042
11043 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
11044
110452008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
11046
11047 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
11048 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
11049 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
11050 (witness-emacs): Remove.
11051 (lisp, shortlisp): Move loaddefs.el earlier.
11052 (mostlyclean): Forget about witness-emacs.
11053
110542008-06-22 Glenn Morris <rgm@gnu.org>
11055
11056 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
11057 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
11058
110592008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
11060
11061 * Makefile.in (PRECOMP): Remove.
11062 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
11063 (witness-emacs): Run `compile-first'.
11064 (.el.elc): Use the new compile-onefile target.
11065
110662008-06-21 Kenichi Handa <handa@m17n.org>
11067
11068 * xftfont.c (xftfont_open): Handle QCembolden only when
11069 FC_EMBOLDEN is defined.
11070
110712008-06-21 Andreas Schwab <schwab@suse.de>
11072
11073 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
11074 (.el.elc): Likewise.
11075
110762008-06-21 Miles Bader <miles@gnu.org>
11077
11078 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
11079 build dir, not the lisp source dir.
11080
110812008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
11082
11083 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
11084 (bootstrapclean): Remove.
11085 (.el.elc): New rule.
11086 (PRECOMP): New var.
11087 (../lisp/subdirs.el): Remove.
11088 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
11089 (witness-emacs): New target.
11090 (mostlyclean): Remove witness-emacs as well.
11091 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
11092 Add witness-emacs dependency.
11093
110942008-06-20 Chong Yidong <cyd@stupidchicken.com>
11095
11096 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
11097 defined by the font.
11098
110992008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11100
11101 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
11102 (bootstrap-clean): New target that keeps TAGS around.
11103 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
11104 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
11105
111062008-06-20 Jason Rumney <jasonr@gnu.org>
11107
11108 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
11109 Remove obsolete font code.
11110
11111 * w32font.c (font_matches_spec): Use csb bitfield from font signature
11112 to determine language support.
11113
111142008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11115
11116 * sysdep.c (cfsetspeed): New fun extracted from the code.
11117 (cfmakeraw): Move before first use.
11118
111192008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
11120
11121 * sysdep.c (cfmakeraw): Provide fallback implementation.
11122 (serial_configure): Provide fallback implementation of cfsetspeed.
11123
111242008-06-20 Kenichi Handa <handa@m17n.org>
11125
11126 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
11127 the pattern.
11128
11129 * fontset.c (fontset_from_font): Copy font_spec before changing
11130 the elements.
11131
11132 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
11133
111342008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11135
11136 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
11137 for explicit `font' parameters.
11138
11139 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
11140
111412008-06-19 Kenichi Handa <handa@m17n.org>
11142
11143 * frame.c: Include <ctype.h>.
11144 (x_set_font_backend): Allow spacing characters in the X resource
11145 for FontBackend.
11146
111472008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
11148
11149 * w32fns.c, xfns.c (Qfont_param): New var.
11150 (syms_of_w32fns): Initialize it.
11151 (x_default_font_parameter): Record explicit `font' into
11152 `font-parameter'.
11153
111542008-06-18 Kenichi Handa <handa@m17n.org>
11155
11156 * font.c (font_parse_xlfd): Fix previous change.
11157 (font_parse_fcname): Don't use :fc-unknown-spec.
11158 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
11159 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
11160 (font_add_log): Prepend the driver name to the resulting fonts.
11161
11162 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
11163 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
11164 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
11165
11166 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
11167 (QCembolden): New variables.
11168 (syms_of_xftfont): DEFSYM them.
11169 (xftfont_open): Call XftFontMatch. Don't trust the result of
11170 XftTextExtents8 if the pixel_size is less than 5.
11171
111722008-06-18 Andreas Schwab <schwab@suse.de>
11173
11174 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
11175 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
11176
111772008-06-18 Jason Rumney <jasonr@gnu.org>
11178
11179 * w32font.c (w32font_list, w32font_match): Add logging.
11180
11181 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
11182
111832008-06-17 Chong Yidong <cyd@stupidchicken.com>
11184
11185 * font.c (font_parse_fcname): Store divider characters for
11186 unknown-spec list. For known key symbols, intern using correct
11187 symbol name.
11188
111892008-06-17 Kenichi Handa <handa@m17n.org>
11190
11191 * xfaces.c (realize_default_face): If the frame is not on window
11192 system, set the fontset of face to nil.
11193
111942008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
11195
11196 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
11197
111982008-06-16 Juanma Barranquero <lekktu@gmail.com>
11199
11200 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
11201 (build_font_name_from_vector): Delete externs.
11202
11203 * xfaces.c (struct font_name): Don't declare.
11204
112052008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
11206
11207 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
11208
112092008-06-16 Chong Yidong <cyd@stupidchicken.com>
11210
11211 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
11212
112132008-06-16 Juanma Barranquero <lekktu@gmail.com>
11214
11215 * font.c (Ffont_spec): Fix usage in docstring.
11216 (Ffont_face_attributes): Doc fix.
11217
112182008-06-16 Andreas Schwab <schwab@suse.de>
11219
11220 * font.c (Ffont_face_attributes): Fix definition.
11221
112222008-06-16 Jason Rumney <jasonr@gnu.org>
11223
11224 * font.h (font_style_symbolic_from_value): Remove.
11225
11226 * font.c (font_style_symbolic_from_value): Remove.
11227 (font_style_symbolic): Revert to pre 2008-06-13 version.
11228
11229 * w32font.c (w32_to_fc_weight): New function.
11230 (w32font_full_name, logfont_to_fcname): Use it.
11231
112322008-06-16 Kenichi Handa <handa@m17n.org>
11233
11234 * font.c (font_check_object): Delete it.
11235 (font_clear_cache): Check if a font-object is alive.
11236 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
11237 font-object to nil.
11238 (font_close_object): Don't check FONT_CLOSE_OBJECT.
11239 (font_at): Don't call font_check_object.
11240 (Ffont_get): Return a symbol for :weight, :slant, and :width.
11241
112422008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
11243
11244 * puresize.h (BASE_PURESIZE): Increase to 1230000.
11245
112462008-06-16 Chong Yidong <cyd@stupidchicken.com>
11247
11248 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
11249
112502008-06-15 Chong Yidong <cyd@stupidchicken.com>
11251
11252 * font.c (font_parse_fcname): Only one decimal point.
11253 (font_unparse_fcname): Handle data in family and foundry indices
11254 as symbols, not strings.
11255 (font_unparse_gtkname, Ffont_face_attributes): New functions.
11256
11257 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
11258
11259 * font.h (font_unparse_gtkname): Add prototype.
11260
112612008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
11262
11263 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
11264
112652008-06-15 Andreas Schwab <schwab@suse.de>
11266
11267 * font.c (font_update_drivers): Fix crash when no drivers match.
11268
112692008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
11270
11271 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
11272 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
11273
112742008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
11275
11276 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
11277
112782008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
11279
11280 * process.c (Fserial_process_configure, Fprocess_send_eof):
11281 Use EQ to compare Lisp_Objects.
11282
112832008-06-13 Jason Rumney <jasonr@gnu.org>
11284
11285 * w32fns.c (Fw32_select_font): Remove old font API function.
11286
11287 * w32font.c (logfont_to_fcname): New function.
11288 (Fx_select_font): New font dialog function compatible with
11289 GTK/fontconfig version.
11290
11291 * font.c (font_style_symbolic_from_value): New function.
11292 (font_style_symbolic): Use it.
11293
11294 * font.h (font_style_symbolic_from_value): Declare new function.
11295
112962008-06-13 Juanma Barranquero <lekktu@gmail.com>
11297
11298 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
11299 <font-width-table>: Fix typos in docstrings.
11300
113012008-06-13 Daniel Engeler <engeler@gmail.com>
11302
11303 These changes add serial port access.
11304 * process.c: Add HAVE_SERIAL.
11305 (Fdelete_process, Fprocess_status, Fset_process_buffer)
11306 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
11307 (list_processes_1, select_wrapper, Fstop_process)
11308 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
11309 (status_notify): Modify to handle serial processes.
11310 [HAVE_SERIAL] (Fserial_process_configure)
11311 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
11312 New functions.
11313 * process.h (struct Lisp_Process): Add `type'.
11314 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
11315 New functions.
11316 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
11317 serial ports.
11318 (serial_open, serial_configure): New functions.
11319 * w32.h: Add FILE_SERIAL.
11320 (struct _child_process): Add ovl_read, ovl_write.
11321
113222008-06-13 Kenichi Handa <handa@m17n.org>
11323
11324 * dispextern.h (enum lface_attribute_index): New member
11325 LFACE_FOUNDRY_INDEX.
11326
11327 * font.c (font_score): Delete arg alternate_families. Check only
11328 weight, slant, width, and size. Ignore the difference of alias
11329 style symbols.
11330 (font_sort_entites): Adjust for the above change. Reflect the
11331 order of font-driver to scores.
11332 (font_list_entities): Don't check alternate_familes here.
11333 (font_clear_prop): Handle foundry.
11334 (font_update_lface): Don't parse "foundry-family" form here.
11335 Handle FONT_FOUNDRY_INDEX.
11336 (font_find_for_lface): Likewise. Handle alternate families here.
11337 If registry is nil, try iso8859-1 and ascii-0.
11338 (font_open_for_lface): Pay attention to size in ENTITY.
11339 (font_open_by_name): Simplify by calling font_load_for_lface.
11340 (free_font_driver_list): Delete it.
11341 (font_update_drivers): Preserve the order of backends.
11342 (syms_of_font): Setting of sort_shift_bits adjusted for the change
11343 of font_score and font_sort_entites.
11344 (font_update_sort_order): Likewise.
11345
11346 * xfaces.c (LFACE_FOUNDRY): New macro.
11347 (check_lface_attrs): Check foundry.
11348 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
11349 (merge_face_vectors): Check foundry.
11350 (merge_face_ref): Likewise.
11351 (Finternal_set_lisp_face_attribute): Likewise.
11352 (x_update_menu_appearance): Likewise.
11353 (Finternal_get_lisp_face_attribute): Likewise.
11354 (lface_hash): Likewise.
11355 (lface_same_font_attributes_p): Likewise.
11356 (x_supports_face_attributes_p): Likewise.
11357 (tty_supports_face_attributes_p): Likewise.
11358 (Finternal_set_alternative_font_family_alist): Intern strings.
11359 (Finternal_set_alternative_font_registry_alist): Downcase strings.
11360 (realize_default_face): Set LFACE_FOUNDRY (lface).
11361
11362 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
11363 font-driver at first.
11364
11365 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
11366
113672008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
11368
11369 * lread.c (Fload): Use xfree, not free on saved_doc_string.
11370
113712008-06-12 Jim Meyering <meyering@redhat.com>
11372
11373 Make unexec_free handle NULL the same way free does.
11374 * unexmacosx.c (unexec_free): Ignore a NULL argument.
11375
113762008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
11377
11378 * character.h (CHAR_TO_BYTE_SAFE): New macro.
11379 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
11380 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
11381 (WEAK_ALIAS): Simplify.
11382 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
11383 when searching a unibyte buffer.
11384
113852008-06-12 Chong Yidong <cyd@stupidchicken.com>
11386
11387 * xfns.c (Fx_select_font): Rename from x-font-dialog.
11388
113892008-06-12 Juanma Barranquero <lekktu@gmail.com>
11390
11391 * w32font.c: Include ctype.h.
11392
113932008-06-11 Jason Rumney <jasonr@gnu.org>
11394
11395 * w32font.c (w32font_encode_char): Detect missing glyphs that are
11396 misreported as space.
11397 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
11398 as aliases for registry iso10646-1.
11399
114002008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
11401
11402 * buffer.c (clone_per_buffer_values): Skip `name'.
11403
114042008-06-11 Chong Yidong <cyd@stupidchicken.com>
11405
11406 * font.c (font_parse_fcname): Fix last change; accept decimal
11407 points in font size.
11408
114092008-06-10 Jason Rumney <jasonr@gnu.org>
11410
11411 * w32uniscribe.c (add_opentype_font_name_to_list):
11412 Skip non unicode fonts.
11413
114142008-06-10 Chong Yidong <cyd@stupidchicken.com>
11415
11416 * xfns.c (Fx_font_dialog): New function.
11417
11418 * gtkutil.c (xg_dialog_response_cb): Rename from
11419 xg_file_response_callback.
11420 (pop_down_dialog): Rename from pop_down_file_dialog.
11421 (xg_get_file_name): Callers changed.
11422 (xg_get_font_name): New function.
11423
11424 * gtkutil.h (xg_get_font_name): Insert prototype.
11425
114262008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
11427
11428 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
11429 x_underline_minimum_display_offset.
11430 (syms_of_xdisp): Declare it here rather than in xterm.c.
11431 * dispextern.h (underline_minimum_offset): Declare it.
11432 * w32term.c (x_draw_glyph_string): Use it.
11433 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
11434 (syms_of_xterm): Don't declare it any more.
11435 (x_draw_glyph_string): Adjust to the new name.
11436
114372008-06-10 David De La Harpe Golden <david@harpegolden.net>
11438
11439 * xterm.c (x_underline_minimum_display_offset): New var.
11440 (x_draw_glyph_string): Use it.
11441 (syms_of_xterm): Declare it.
11442
114432008-06-10 Chong Yidong <cyd@stupidchicken.com>
11444
11445 * font.c (font_parse_fcname): Accept GTK-style font names too.
11446
114472008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
11448
11449 * dired.c (file_name_completion): Don't return t if the match is exact
11450 but with different capitalization.
11451 * minibuf.c (Ftry_completion): Simplify.
11452
11453 * window.c (Vwindow_point_insertion_type): New var.
11454 (set_window_buffer): Use it.
11455 (syms_of_window): Init and export it to Lisp.
11456
114572008-06-10 Kenichi Handa <handa@m17n.org>
11458
11459 * font.h (font_intern_prop): Prototype adjusted.
11460
11461 * font.c (font_intern_prop): New arg force_symbol.
11462 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
11463 Adjust for the change of font_intern_prop.
11464
11465 * ftfont.c (ftfont_pattern_entity):
11466 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
11467 (w32_registry):
11468 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
11469 the change of font_intern_prop.
11470
114712008-06-09 Juanma Barranquero <lekktu@gmail.com>
11472
11473 * w32menu.c (digest_single_submenu): Declare extern.
11474
114752008-06-09 Jason Rumney <jasonr@gnu.org>
11476
11477 * w32term.c (x_make_frame_visible): Use alternate restore flags.
11478
11479 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
11480 (parse_single_submenu): Remove.
11481 (digest_single_submenu): Remove.
11482 (syms_of_w32menu): Don't initialise variables that have moved
11483 to menu.c.
11484 (set_frame_menubar): Sync with version in xmenu.c.
11485 (w32_menu_show): Sync with xmenu_show in xmenu.c.
11486
11487 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
11488 Make static again.
11489
114902008-06-09 Jason Rumney <jasonr@gnu.org>
11491
11492 Changes to w32 files related to the move of common menu code
11493 to menu.c on 2008-06-08 by Chong Yidong.
11494
11495 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
11496 defs to w32gui.h.
11497 (single_keymap_panes, push_menu_item, push_menu_pane):
11498 Make globally visible.
11499
11500 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
11501 (local_free, malloc_widget_value, free_widget_value)
11502 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
11503 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
11504 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
11505 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
11506 (menu_items, menu_items_allocated, menu_items_used)
11507 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
11508 (init_menu_items, finish_menu_items, discard_menu_items)
11509 (grow_menu_items, push_submenu_start, push_submenu_end)
11510 (push_left_right_boundary, push_menu_pane, push_menu_item)
11511 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
11512 (free_menubar_widget_tree_value, parse_single_submenu)
11513 (update_submenu_strings): Remove functions.
11514 (xmalloc_widget_value): Remove and declare extern.
11515
11516 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
11517 (OBJ1): Build it.
11518
11519 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
11520 (local_heap, local_alloc, local_free, malloc_widget_value)
11521 (free_widget_value): Define here.
11522
115232008-06-09 Kenichi Handa <handa@m17n.org>
11524
11525 * font.h (Qascii_0): Extern it.
11526
11527 * font.c (Qascii_0): New variable.
11528 (syms_of_font): DEFSYM it.
11529 (font_open_by_name): If the registry "iso8859-1" fails, try also
11530 "ascii-0".
11531
11532 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
11533
115342008-06-08 Kenichi Handa <handa@m17n.org>
11535
11536 * .gdbinit (xfont): New command.
11537
115382008-06-08 Andreas Schwab <schwab@suse.de>
11539
11540 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
11541 * Makefile.in (menu.o): Update dependencies.
11542
11543 * Makefile.in (obj): Always add menu.o.
11544 * emacs.c (main): Always call syms_of_menu.
11545 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
11546
115472008-06-08 Chong Yidong <cyd@stupidchicken.com>
11548
11549 * Makefile.in: Compile menu.c.
11550
11551 * lisp.h: Declare syms_of_menu.
11552
11553 * emacs.c (main): Call syms_of_menu.
11554
11555 * keyboard.h: Relocate platform-independent menu definitions from
11556 xmenu.c.
11557
11558 * menu.c: New file. Relocate platform-independent menu
11559 definitions from xmenu.c. Suggested by Adrian Robert.
11560
11561 * xmenu.c: Remove platform-independent menu definitions.
11562 (menu_items menu_items_inuse, menu_items_allocated)
11563 (menu_items_used, menu_items_n_panes)
11564 (menu_items_submenu_depth): Move to keyboard.h.
11565 (init_menu_items, finish_menu_items, unuse_menu_items)
11566 (discard_menu_items, restore_menu_items, save_menu_items)
11567 (grow_menu_items, push_submenu_start, push_submenu_end)
11568 (push_left_right_boundary, push_menu_pane, push_menu_item)
11569 (keymap_panes, single_keymap_panes, single_menu_item)
11570 (list_of_panes, list_of_items, find_and_call_menu_selection)
11571 (xmalloc_widget_value, free_menubar_widget_value_tree)
11572 (parse_single_submenu, digest_single_submenu)
11573 (update_submenu_strings): Move to menu.c.
11574
115752008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
11576
11577 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
11578
115792008-06-06 Miles Bader <miles@gnu.org>
11580
11581 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
11582 face, not frame default.
11583
115842008-06-05 Martin Rudalics <rudalics@gmx.at>
11585
11586 * window.c (pop_up_windows, pop_up_frames)
11587 (display_buffer_reuse_frames, Vpop_up_frame_function)
11588 (Vdisplay_buffer_function, Veven_window_heights)
11589 (Vspecial_display_buffer_names, Vspecial_display_regexps)
11590 (Vspecial_display_function, Vsame_window_buffer_names)
11591 (Vsame_window_regexps, split_height_threshold)
11592 (Vsplit_window_preferred_function): Move those vars to window.el.
11593 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
11594 (Fdisplay_buffer): Move those functions to window.el.
11595 (syms_of_window): Remove corresponding declarations.
11596 (display_buffer): New function.
11597 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
11598 * dispnew.c (Flast_nonminibuf_frame): New function.
11599 * buffer.c (Fpop_to_buffer): Move to window.el.
11600
116012008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
11602
11603 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
11604
116052008-06-05 Kenichi Handa <handa@m17n.org>
11606
11607 * coding.c (detect_coding): Fix previous change.
11608 (detect_coding_system): Likewise.
11609
116102008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
11611
11612 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
11613
11614 * keymap.c (Vminibuffer_local_filename_must_match_map):
11615 Rename from Vminibuffer_local_must_match_filename_map.
11616 (syms_of_keymap):
11617 * minibuf.c (Fcompleting_read): Adjust accordingly.
11618 * commands.h: Rename declaration as well.
11619
116202008-06-05 Kenichi Handa <handa@m17n.org>
11621
11622 * font.c (Ffont_spec): Don't use font_parse_family_registry for
11623 family name.
11624 (Ffont_put): Likewise.
11625
11626 * fontset.c (fontset_find_font): Call font_open_for_lface with the
11627 current font-spec.
11628
11629 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
11630 is unspecified.
11631
11632 * xfaces.c (realize_x_face): If the font-related face attributes
11633 are the same as those of default face, realize a new fontset from
11634 default->fontset.
11635 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
11636
116372008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
11638
11639 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
11640 (move_it_in_display_line): New wrapper.
11641
11642 * window.c (window_scroll_pixel_based_preserve_x)
11643 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
11644 (window_scroll_pixel_based, window_scroll_line_based):
11645 Use them to preserve column positions.
11646 (syms_of_window): Initialize them.
11647
11648 * indent.c (Fvertical_motion): Extend first arg to allow passing an
11649 (HPOS . VPOS) pair.
11650
11651 * dispextern.h (move_it_in_display_line): Declare.
11652
116532008-06-05 Juanma Barranquero <lekktu@gmail.com>
11654
11655 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
11656 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
11657 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
11658
116592008-06-04 Juanma Barranquero <lekktu@gmail.com>
11660
11661 * window.c (Fset_window_parameter): Doc fix.
11662 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
11663
116642008-06-04 Joakim Verona <joakim@verona.se>
11665
11666 * window.h (struct window): Add new member window_parameters.
11667
11668 * window.c (Fwindow_parameters, Fwindow_parameter)
11669 (Fset_window_parameter): New defuns.
11670 (syms_of_window): Defsubr the new defuns.
11671 (make_window): Initialize window_parameters to nil.
11672
116732008-06-04 John Paul Wallington <jpw@pobox.com>
11674
11675 * eval.c (Fdefmacro): Doc fix.
11676
116772008-06-04 Kenichi Handa <handa@m17n.org>
11678
11679 * coding.c (detect_coding): Fix handling of coding->head_ascii.
11680 Be sure to call setup_coding_system when we find a proper coding system.
11681 (detect_coding_system): Fix handling of coding->head_ascii.
11682
116832008-06-03 Andreas Schwab <schwab@suse.de>
11684
11685 * font.c (font_prop_validate_spacing): Fix last change.
11686
116872008-06-03 Kenichi Handa <handa@m17n.org>
11688
11689 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
11690 (font_parse_fcname): Fix handling of unknown key.
11691
11692 * xfont.c (xfont_list): Try an alias.
11693
11694 * charset.c (char_charset): Return NULL if the arg charset_list is
11695 specified and C doesn't belong to any of them.
11696
116972008-06-02 Chip Coldwell <coldwell@redhat.com>
11698
11699 * font.c (font_pixel_size): Don't take cdr of an integer.
11700
117012008-06-02 Jim Meyering <meyering@redhat.com>
11702
11703 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
11704 * alloc.c (xfree): Return right away for a NULL arg.
11705 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
11706 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
11707 * mac.c (create_apple_event_from_event_ref): Likewise.
11708 (create_apple_event_from_drag_ref, cfstring_create_normalized):
11709 Likewise.
11710 * doprnt.c (doprnt1): Likewise.
11711 * frame.c (frame): Likewise.
11712 * keyboard.c (wipe_kboard): Likewise.
11713 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
11714 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
11715 * term.c (tty_default_color_capabilities, maybe_fatal)
11716 (delete_tty): Likewise.
11717 * w16select.c (string): Likewise.
11718 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
11719 * w32bdf.c (w32_free_bdf_font): Likewise.
11720 * w32fns.c (w32_unload_font): Likewise.
11721 * w32font.c (w32font_close): Likewise.
11722 * window.c (size_window): Likewise.
11723 * xselect.c (receive_incremental_selection): Likewise.
11724 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
11725 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
11726 * w32.c (stat): Likewise.
11727
11728 Remove useless if-before-free tests.
11729 * editfns.c (Fset_time_zone_rule): Likewise.
11730 * lread.c (nosuffix): Likewise.
11731 * ralloc.c (get_bloc): Likewise.
11732 * regex.c (reg_free): Likewise.
11733 * xftfont.c (xftfont_open, xftfont_close): Likewise.
11734 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
11735 * xsmfns.c (smc_save_yourself_CB): Likewise.
11736
117372008-06-02 Kenichi Handa <handa@m17n.org>
11738
11739 * font.c (font_find_for_lface): Handle float font size.
11740 (font_open_for_lface): Likewise.
11741
11742 * xfaces.c (x_supports_face_attributes_p): Check face->font before
11743 comparing the properties.
11744
117452008-06-01 Jason Rumney <jasonr@gnu.org>
11746
11747 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
11748 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
11749 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
11750 Don't add empty script list.
11751 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
11752
117532008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
11754
11755 * Makefile.in (dot, dotdot): Remove, update users.
11756 ".." has been used elsewhere in the file for a long time.
11757 (LIBXT_STATIC): Remove conditional based on unused variable.
11758
117592008-06-01 Miles Bader <miles@gnu.org>
11760
11761 * xfaces.c (Vface_remapping_alist): New variable.
11762 (syms_of_xfaces): Initialize it.
11763 (enum named_merge_point_kind): New type.
11764 (struct named_merge_point): Add `named_merge_point_kind' field.
11765 (push_named_merge_point): Make cycle detection respect different
11766 named-merge-point kinds.
11767 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
11768 Remove face-name alias resolution.
11769 (lface_from_face_name): New definition using
11770 `lface_from_face_name_no_resolve'.
11771 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
11772 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
11773 (get_lface_attributes): New definition that layers face-remapping on
11774 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
11775 (lookup_basic_face): New function.
11776 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
11777 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
11778 `get_lface_attributes'.
11779 (face_at_buffer_position): Use `lookup_basic_face' to lookup
11780 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
11781 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
11782
11783 * xdisp.c (init_iterator): Pass base_face_id through
11784 `lookup_basic_face' when we actually use it as a face-id.
11785 (handle_single_display_prop): Use `lookup_basic_face' to lookup
11786 DEFAULT_FACE_ID.
11787
11788 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
11789 lookup the initial face-id.
11790
11791 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
11792
117932008-06-01 Juanma Barranquero <lekktu@gmail.com>
11794
11795 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
11796 (Fremove_text_properties): Fix typos in docstrings.
11797
117982008-05-31 Kenichi Handa <handa@m17n.org>
11799
11800 * font.c (font_list_entities): Fix the car part of data to be
11801 stored in the cache.
11802
11803 * ftfont.c (ftfont_font_format): Don't use strcasestr.
11804
118052008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
11806
11807 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
11808 Add a `test' argument so another predicate than `equal' can be used.
11809 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
11810 (map_char_table): Remove unused vars `c' and `i'.
11811 * lisp.h (Foptimize_char_table): Adjust declaration.
11812 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
11813
118142008-05-30 Kenichi Handa <handa@m17n.org>
11815
11816 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
11817 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
11818 defined.
11819
118202008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
11821
11822 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
11823 (Fmake_variable_frame_local): Disallow mixing buffer-local and
11824 frame-local settings for the same variable.
11825
118262008-05-30 Kenichi Handa <handa@m17n.org>
11827
11828 * fontset.c (Ffont_info): Move to font.c.
11829 (syms_of_fontset): Delete defsubr of Sfont_info.
11830
11831 * font.c (font_style_to_value, font_score): Delete casting of the
11832 args to xstcasecmp.
11833 (register_font_driver): Increment num_font_drivers only when
11834 registering the driver globally.
11835 (Ffont_info): Move from fontset.c. Handle a font object too.
11836 (syms_of_font): Defsubr Sfont_info.
11837
118382008-05-29 Kenichi Handa <handa@m17n.org>
11839
11840 * coding.h (enum define_coding_utf8_arg_index): New enum.
11841 (enum coding_attr_index): Change coding_attr_utf_16_bom to
11842 coding_attr_utf_bom.
11843 (enum utf_bom_type): Rename from utf_16_bom_type.
11844 (struct utf_16_spec): Adjust for the above change.
11845 (struct coding_system): Add utf_8_bom in `spec' union.
11846
11847 * coding.c (CODING_UTF_8_BOM): New macro.
11848 (enum coding_category): Delete coding_category_utf_8, add
11849 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
11850 coding_category_utf_8_sig.
11851 (CATEGORY_MASK_UTF_8): Delete it.
11852 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
11853 (CATEGORY_MASK_UTF_8_SIG): New macros.
11854 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
11855 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
11856 CATEGORY_MASK_UTF_8_SIG.
11857 (CATEGORY_MASK_UTF_8): New macro.
11858 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
11859 (detect_coding_utf_8): Check BOM.
11860 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
11861 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
11862 (encode_coding_utf_16): Likewise.
11863 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
11864 (detect_coding, detect_coding_system): Handle utf-8-auto.
11865 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
11866 (syms_of_coding): Fix setting up of Vcoding_category_table.
11867
118682008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
11869
11870 * process.c (Faccept_process_output): If `millisec' is non-nil,
11871 `seconds' default to 0.
11872 (wait_reading_process_output): Also return non-nil if we read output
11873 from a non-running process.
11874
118752008-05-29 Jason Rumney <jasonr@gnu.org>
11876
11877 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
11878 `raster' specified.
11879 (add_font_entity_to_list): Allow non-opentype truetype fonts back
11880 in the uniscribe backend, but disallow any font that has no
11881 unicode subrange support.
11882
118832008-05-29 Juanma Barranquero <lekktu@gmail.com>
11884
11885 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
11886 Fix typos in docstrings.
11887
118882008-05-29 Kenichi Handa <handa@m17n.org>
11889
11890 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
11891 (Fx_family_fonts): Set frame correctly.
11892
118932008-05-28 Jason Rumney <jasonr@gnu.org>
11894
11895 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
11896
118972008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
11898
11899 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
11900 calling build_annotations.
11901
119022008-05-28 Juanma Barranquero <lekktu@gmail.com>
11903
11904 * coding.c (Fdecode_coding_region, Fencode_coding_region)
11905 (Fencode_coding_string):
11906 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
11907 <latin-extra-code-table>: Fix typos in docstrings.
11908 (syms_of_coding) <coding-system-alist>: Doc fix.
11909 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
11910
119112008-05-28 Kenichi Handa <handa@m17n.org>
11912
11913 * fontset.c (Ffont_info): Don't call font_close_object.
11914
11915 * font.c (font_parse_family_registry): Use Ffont_put to validate
11916 foundry and family.
11917 (font_delete_unmatched): Don't check spacing.
11918 (font_list_entities): Add spacing to the spec to list fonts.
11919
11920 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
11921 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
11922
11923 * coding.c (encode_coding_raw_text): Fix previous change.
11924 (encode_coding_object): When the dst_object is a buffer and is
11925 different from src_object, move gap to PT.
11926
119272008-05-27 Chong Yidong <cyd@stupidchicken.com>
11928
11929 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
11930
119312008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
11932
11933 * coding.c (encode_coding_raw_text): Set coding->produced_char for
11934 all branches. Compute it differently.
11935
11936 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
11937
119382008-05-27 Juanma Barranquero <lekktu@gmail.com>
11939
11940 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
11941 into "else if () ... else ...".
11942
119432008-05-27 Jason Rumney <jasonr@gnu.org>
11944
11945 * w32font.c (w32font_open_internal): Determine if glyph indices
11946 are likely to work here.
11947
119482008-05-27 Chong Yidong <cyd@stupidchicken.com>
11949
11950 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
11951 draw overlap glyphs with appropriate highlighting.
11952
119532008-05-27 Kenichi Handa <handa@m17n.org>
11954
11955 * xfont.c (xfont_open): Fix calculation of font->average_width.
11956
119572008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
11958
11959 * casefiddle.c (casify_object): Try to guess better whether the
11960 argument is a byte or a char.
11961
119622008-05-26 Andreas Schwab <schwab@suse.de>
11963
11964 * xselect.c (x_reply_selection_request): Properly handle format == 32.
11965 Always send multiples of format size.
11966
11967 * xterm.c (x_set_frame_alpha): Fix type mismatch.
11968
119692008-05-26 Jason Rumney <jasonr@gnu.org>
11970
11971 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
11972 (compute_metrics): Don't set failure if we just cleared the cache.
11973 (w32_weight_table): Remove unused variable.
11974 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
11975 backwards compatibility.
11976
119772008-05-25 Kenichi Handa <handa@m17n.org>
11978
11979 * w32term.c (x_draw_glyph_string):
11980 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
11981
11982 * xfaces.c: Delete unused function prototypes.
11983 (xstrlwr, font_frame): Delete them.
11984 (clear_face_cache): Delete unused variable.
11985
11986 * xftfont.c (xftfont_open): Delete unused variable.
11987 If underline_thickness is not 1, adjust underline_position.
11988
11989 * ftxfont.c (ftxfont_open): Delete unused variable.
11990
11991 * fontset.c (face_for_char): Optimize for the case of no charset
11992 property.
11993
11994 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
11995 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
11996 (otf_open, font_otf_capability, generate_otf_features)
11997 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
11998 Comment out by surrounding "#if 0" and "#endif" for the moment.
11999 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
12000 (syms_of_font): Codes for accessing above commented out.
12001
120022008-05-24 Eli Zaretskii <eliz@gnu.org>
12003
12004 * w32proc.c: Include dispextern.h.
12005
12006 * w32.c: Include dispextern.h.
12007
120082008-05-23 Juanma Barranquero <lekktu@gmail.com>
12009
12010 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
12011 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
12012 Fix typos in docstrings.
12013
120142008-05-23 Jason Rumney <jasonr@gnu.org>
12015
12016 * xsmfns.c: Remove includes that are already included by config.h.
12017
120182008-05-23 Kenichi Handa <handa@m17n.org>
12019
12020 * charset.c (Qemacs, charset_emacs): New variables.
12021 (char_charset): Fix for non-Unicode characters.
12022 (syms_of_charset): Define charset_emacs.
12023
12024 * w32term.c (x_draw_glyph_string): Be sure to update
12025 s->underline_thickness and s->underline_position. Be sure to draw
12026 underline within the current line area.
12027
12028 * xterm.c (x_draw_glyph_string): Be sure to update
12029 s->underline_thickness and s->underline_position. Be sure to draw
12030 underline within the current line area.
12031
12032 * fontset.c: Delete unused variables and add casting for char *
12033 throughout the file.
12034 (fontset_font): Try the fallback fonts of the current fontset
12035 before consulting the default fontset.
12036
12037 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
12038
12039 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
12040
120412008-05-22 Jason Rumney <jasonr@gnu.org>
12042
12043 * font.c: Don't include strings.h.
12044
12045 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
12046
12047 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
12048 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
12049 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
12050 to call xstrcasecmp.
12051
12052 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
12053
12054 * fontset.c (fs_query_fontset): Use xstrcasecmp.
12055
12056 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
12057
12058 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
12059
120602008-05-22 Kenichi Handa <handa@m17n.org>
12061
12062 * puresize.h (BASE_PURESIZE): Increase to 1220000.
12063
12064 * font.c (font_prop_validate_style): Adjust for the format
12065 change of font_style_table.
12066
12067 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
12068 two args.
12069
12070 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
12071 two args.
12072
120732008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
12074
12075 * minibuf.c (keys_of_minibuf): Delete.
12076 * lisp.h (keys_of_minibuf): Delete.
12077 * emacs.c (main): Don't call keys_of_minibuf.
12078
120792008-05-22 Kenichi Handa <handa@m17n.org>
12080
12081 * ftfont.c (ftfont_resolve_generic_family): Rename from
12082 ftfont_list_generic_family. Return a single family for each
12083 generic family.
12084 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
12085 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
12086 Call font_add_log.
12087 (ftfont_match): Call font_add_log.
12088
12089 * font.h (Ffont_xlfd_name): EXFUN adjusted.
12090 (FONT_DEBUG): Define it.
12091 (font_add_log): Extern it.
12092 (font_assert): Rename from xassert.
12093
12094 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
12095 (xfont_list_family): Call font_add_log.
12096 (xfont_match): Likewise.
12097 (memq_no_quit): Delete.
12098
12099 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
12100 call of Ffont_xlfd_name.
12101
12102 * xfaces.c (struct table_entry, slant_table, weight_table)
12103 (swidth_table): Move to font.c.
12104
12105 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
12106 xassert are changed to font_assert. Delete many unused variables.
12107 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
12108 New variables.
12109 (struct table_entry): Move from xfaces.c and modified.
12110 (weight_table, slant_table, width_table): Move from xfaces.c and
12111 contents adjusted for the change of struct table_entry.
12112 (font_style_to_value, font_style_symbolic): Adjust for the
12113 format change of font_style_table.
12114 (font_parse_family_registry): Don't overwrite existing foundry and
12115 family of font_spec.
12116 (font_score): Fix calculation of diff for sizes.
12117 (font_sort_entites): Call font_add_log.
12118 (font_delete_unmatched): Return a newly created list.
12119 (font_list_entities): Fix previous change. Call font_add_log.
12120 (font_matching_entity, font_open_entity, font_close_entity):
12121 Call font_add_log.
12122 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
12123 (Finternal_set_font_style_table): Delete.
12124 (BUILD_STYLE_TABLE): New macro.
12125 (build_style_table): New function.
12126 (Vfont_log, font_log_env_checked): New variables.
12127 (font_add_log): New function.
12128 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
12129 Declare Lisp variables "font-weight-table", "font-slant-table",
12130 "font-width-table", and "font-log". Initialize font_style_table.
12131
121322008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
12133
12134 * xterm.c (x_set_frame_alpha): Move declarations before statements.
12135
121362008-05-21 Seiji Zenitani <zenitani@mac.com>
12137 Ryo Yoshitake <ryo@shiftmode.net>
12138
12139 * frame.c (Qalpha): Add a new frame parameter `alpha'.
12140 (Vframe_alpha_lower_limit): New variable.
12141 (x_set_alpha): New function.
12142
12143 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
12144
12145 * xfns.c (x-create-frame, Qalpha):
12146 Initialize the frame parameter `alpha'.
12147 * xterm.c (OPAQUE, OPACITY): New.
12148 (x_set_frame_alpha): New function.
12149 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
12150
12151 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
12152 * w32fns.c (w32_frame_parm_handlers): Likewise.
12153
121542008-05-20 Jason Rumney <jasonr@gnu.org>
12155
12156 * w32font.c (add_font_entity_to_list): Don't add non-opentype
12157 truetype fonts to opentype list.
12158
121592008-05-20 Juanma Barranquero <lekktu@gmail.com>
12160
12161 * fontset.c (Ffontset_info): Doc fix.
12162 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
12163 <ignore-relative-composition>: Fix typos in docstrings.
12164
12165 * font.c (syms-of-font) <font-encoding-alist>:
12166 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
12167 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
12168 (Ffont_otf_alternates): Doc fixes.
12169
121702008-05-20 Kenichi Handa <handa@m17n.org>
12171
12172 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
12173 font.h through out the file.
12174 (FONT_DRIVERS): Rename from FONTOBJ.
12175 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
12176 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
12177
12178 * emacs.c (main): Call syms_of_font unconditionally.
12179
12180 * font.h (find_font_encoding): Extern it.
12181
12182 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
12183 fontset.c.
12184 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
12185 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
12186 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
12187 only when HAVE_WINDOW_SYSTEM is defined.
12188 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
12189 when HAVE_WINDOW_SYSTEM is defined.
12190
12191 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
12192 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
12193
12194 * xfaces.c: Include font.h unconditionally.
12195 (merge_face_ref, merge_face_vectors)
12196 (Finternal_set_lisp_face_attribute): Cancel the previous change.
12197
121982008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
12199
12200 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
12201 indirect_variable.
12202 * eval.c (lisp_indirect_variable): New fun.
12203 (Fuser_variable_p): Use it.
12204
122052008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
12206
12207 * lisp.h (indirect_variable):
12208 * data.c (indirect_variable, let_shadows_buffer_binding_p):
12209 Use Lisp_Symbol pointers rather than Lisp_Object.
12210 Adjust callers.
12211 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
12212 To this end, change calling-convention.
12213
12214 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
12215 if some non-hidden buffers are selected by string&pred.
12216
122172008-05-19 Chong Yidong <cyd@stupidchicken.com>
12218
12219 * process.c (wait_reading_process_output): Always check status
12220 when in batch mode.
12221
122222008-05-19 Kenichi Handa <handa@m17n.org>
12223
12224 * font.c (font_list_entities): Fix handling of cache.
12225 (font_matching_entity): Likewise.
12226
12227 * ftfont.c (cs_iso8859_1): Delete.
12228 (ft_face_cache): New variable.
12229 (struct ftfont_info): New member fc_charset_idx.
12230 (ftfont_build_basic_charsets): Delete.
12231 (fc_charset_table): New variable.
12232 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
12233 . FC_CHARSET_IDX) as :font-entity property in the font entity.
12234 Callers changed.
12235 (ftfont_lookup_cache, ftfont_get_charset): New functions.
12236 (ftfont_spec_pattern): New argument fc_charset_idx.
12237 Check registry more rigidly. Change callers.
12238 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
12239 change of :font-entity property of the font.
12240
12241 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
12242 property of the font.
12243
122442008-05-18 Juanma Barranquero <lekktu@gmail.com>
12245
12246 * coding.c (Fcoding_system_p): Rename argument to match docstring.
12247 (Funencodable_char_position, Fcheck_coding_systems_region)
12248 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
12249 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
12250 (Ffind_operation_coding_system, Fset_coding_system_priority)
12251 (Fcoding_system_eol_type): Doc fixes.
12252
122532008-05-17 Glenn Morris <rgm@gnu.org>
12254
12255 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
12256
122572008-05-16 Eli Zaretskii <eliz@gnu.org>
12258
12259 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
12260 and st_gid.
12261
12262 * frame.c (Fdelete_frame): Don't call font_update_drivers if
12263 HAVE_WINDOW_SYSTEM is not defined.
12264
12265 * xfaces.c (merge_face_ref, merge_face_vectors)
12266 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
12267 HAVE_WINDOW_SYSTEM is defined.
12268 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
12269
122702008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
12271
12272 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
12273
122742008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12275
12276 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
12277
122782008-05-15 Kenichi Handa <handa@m17n.org>
12279
12280 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
12281 preference.
12282
122832008-05-15 Glenn Morris <rgm@gnu.org>
12284
12285 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
12286
122872008-05-15 Chong Yidong <cyd@stupidchicken.com>
12288
12289 * fns.c (init_fns): Don't initialize weak_hash_tables here.
12290 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
12291
12292 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
12293
122942008-05-15 Kenichi Handa <handa@m17n.org>
12295
12296 * ftfont.c (ftfont_list): Downcase family name to check generic
12297 families.
12298
12299 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
12300 font-spec for QCfont value.
12301
12302 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
12303 buffer. Check the return value of it.
12304
123052008-05-14 Jason Rumney <jasonr@gnu.org>
12306
12307 * w32term.c (w32_get_glyph_overhangs): Remove.
12308 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
12309
123102008-05-14 Kenichi Handa <handa@m17n.org>
12311
12312 * font.c (font_prop_validate): Make nil a valid value.
12313 (font_clear_cache): Check if the cached vector of entities is nil
12314 or not.
12315
123162008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12317
12318 * emacs.c (main_thread): Conditionalize on
12319 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
12320 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
12321
12322 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
12323 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
12324 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
12325
123262008-05-14 Kenichi Handa <handa@m17n.org>
12327
12328 * coding.c (detect_coding_iso_2022): Ignore a coding category that
12329 has no corresponding coding system.
12330
123312008-05-14 Jason Rumney <jasonr@gnu.org>
12332
12333 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
12334
12335 * w32font.h (w32font_open_internal): Update declaration.
12336
12337 * w32font.c (w32font_open_internal): Change last argument from
12338 w32font_info struct to font object. Fill in font object from
12339 font_entity. Get Outline metrics if possible. Use them to
12340 calculate underline position and thickness. Use xlfd name as name
12341 property. Don't set codepage.
12342 (w32font_open): Pass font_object to w32font_open_internal. Don't
12343 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
12344 (w32font_draw): Use s->font.
12345 (clear_cached_metrics): Don't clear non-existent blocks.
12346
12347 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
12348 font was not found.
12349 (x_draw_glyph_string): Use underline position and thickness from font.
12350
12351 * w32uniscribe.c (uniscribe_open): Pass font_object to
12352 w32font_open_internal.
12353
123542008-05-14 Kenichi Handa <handa@m17n.org>
12355
12356 These changes are to delete all legacy font-handling codes, and
12357 make Emacs use only font-backends.
12358
12359 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
12360 (frame.o, image.o, print.o): Depend on $(FONTSRC).
12361
12362 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
12363
12364 * charset.h (Vcharset_non_preferred_head)
12365 (Vcurrent_iso639_language): Extern them.
12366
12367 * charset.c (Vcharset_non_preferred_head): New variable.
12368 (Vcurrent_iso639_language): New variable.
12369 (syms_of_charset): Declare it as a Lisp variable.
12370 (char_charset): Don't check non preferred charsets. As a last
12371 resort, return charset_unicode.
12372 (Fset_charset_priority): Update Vcharset_non_preferred_head.
12373
12374 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
12375 conditionals. Don't check enable_font_backend. Delete all codes
12376 used only when USE_FONT_BACKEND is not defined.
12377
12378 * dispextern.h (struct glyph_string): Change type of `font' to
12379 `struct font *'.
12380 (struct glyph_string): New member underline_position and
12381 underline_thickness.
12382 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
12383 (struct face): Change type of `font' to `struct font *'. Remove
12384 members `font_name', `font_info_id'.
12385 (per_char_metric, encode_char): Delete externs.
12386 (calc_pixel_width_or_height): Adjust the prototype.
12387
12388 * emacs.c (enable_font_backend): Delete extern.
12389 (main): Don't set enable_font_backend. Don't check the command
12390 line argument "-disable-font-backend".
12391
12392 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
12393 (enum font_property_index): New members FONT_DPI_INDEX,
12394 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
12395 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
12396 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
12397 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
12398 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
12399 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
12400 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
12401 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
12402 (struct font_spec, struct font_entity): New structs.
12403 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
12404 (struct font): Many members from old "struct font_info" moved to
12405 here. Members font and entity deleted.
12406 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
12407 the new font-related objects.
12408 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
12409 (CHECK_FONT_GET_OBJECT): Likewise.
12410 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
12411 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
12412 (struct font_driver): New members case_sensitive anc check. Type
12413 of the member list and open changed.
12414 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
12415 (font_symbolic_width, font_find_object, font_get_spec)
12416 (font_set_lface_from_name): Delete extern.
12417 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
12418
12419 * font.c: Include <strings.h>.
12420 (enable_font_backend): Delete it.
12421 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
12422 (CHECK_VALIDATE_FONT_SPEC): Delete it.
12423 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
12424 (null_string): Delete it.
12425 (null_vector): Make it static.
12426 (font_family_alist): Delete it.
12427 (Qnormal): Extern it.
12428 (QCextra, QClanguage): Delete it.
12429 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
12430 (font_make_spec, font_make_entity, font_make_object)
12431 (font_intern_prop): Renamed from intern_downcase. Don't downcase
12432 the string. Callers changed.
12433 (font_pixel_size): Adjusted for the format change of font-related
12434 objects.
12435 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
12436 (font_style_to_value, font_style_symbolic): New function.
12437 (build_font_family_alist): Delete it.
12438 (font_registry_charsets): Use Fassoc_string instead of
12439 assq_no_quit.
12440 (font_prop_validate_symbol): Don't return null_string.
12441 (font_prop_validate_style): Adjusted for the change of
12442 style-related values in a font vector.
12443 (font_property_table): Delete entries for QClanguage and
12444 QCantialias, add entries for QCavgwidth.
12445 (get_font_prop_index): Delete the 2nd argument FROM.
12446 (font_prop_validate): Arguments changed.
12447 (font_put_extra): Adjusted for the change of font-related objects.
12448 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
12449 (font_parse_fcname, font_unparse_fcname)
12450 (font_prepare_composition): Likewise.
12451 (font_parse_family_registry): Renamed from font_merge_old_spec.
12452 (otf_open): Delete the 1st arg entity.
12453 (font_otf_capability): Adjusted for the above change.
12454 (font_score): New arg alternate_families. Adjusted for the change
12455 of font-related objects.
12456 (font_sort_entites): New arg best_only.
12457 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
12458 Delete them.
12459 (font_match_p): Check alternate families.
12460 (font_find_object): Delete it.
12461 (font_check_object): New function.
12462 (font_clear_cache): Adjusted for the change of font-related objects.
12463 (font_delete_unmatched): New arg.
12464 (font_list_entities): Call font_driver->list with a spec that
12465 doesn't specify style-related properties.
12466 (font_matching_entity): Arguments changed. Caller changed.
12467 (font_open_entity): Adjusted for the change of font-related objects.
12468 (font_close_object, font_has_char, font_encode_char)
12469 (font_get_name, font_get_spec): Likewise.
12470 (font_spec_from_name, font_clear_prop, font_update_lface):
12471 New functions.
12472 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
12473 (font_prepare_for_face, font_done_for_face, font_open_by_name)
12474 (font_at): Adjusted for the change of font-related objects.
12475 (font_range): New function.
12476 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
12477 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
12478 (Fcopy_font_spec, Fmerge_font_spec): New function.
12479 (Ffont_family_list): Renamed from list-families.
12480 (Finternal_set_font_style_table): Arguments changed.
12481 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
12482 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
12483 change of font-related objects.
12484 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
12485
12486 * fontset.h (struct font_info): Delete it. Most members go to
12487 struct font.
12488 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
12489 (enum FONT_SPEC_INDEX): Delete it.
12490 (font_info, list_fonts_func, load_font_func, query_font_func)
12491 (set_frame_fontset_func, find_ccl_program_func)
12492 (get_font_repertory_func, new_fontset_from_font_name): Delete
12493 externs.
12494 (fontset_from_font_name): Extern it.
12495 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
12496 (FONT_INFO_FROM_FACE): Deleted.
12497 (face_for_font): Adjust prototype.
12498
12499 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
12500 conditionals. Don't check enable_font_backend. Delete all codes
12501 used only when USE_FONT_BACKEND is not defined.
12502 (get_font_info_func, list_font_func, load_font_func)
12503 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
12504 (get_font_repertory_func): Delete them.
12505 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
12506 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
12507 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
12508 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
12509 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
12510 (fontset_compare_rfontdef): New function.
12511 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
12512 rfont-defs by qsort. Adjusted for the change of font-group vector.
12513 (load_font_get_repertory): Deleted.
12514 (fontset_find_font): Use new macros to ref/set elements of
12515 font-def and rfont-def.
12516 (fontset_font): Fix the timing of remembering that no font for C.
12517 (free_face_fontset): Do nothing if the face has no fontset.
12518 (face_suitable_for_char_p): Use new macros to ref/set elements of
12519 rfont-def.
12520 (face_for_char): Likewise. Call face_for_char with font_object.
12521 (fs_load_font): Delete. Delete #pragma surrounding it.
12522 (fs_query_fontset): Use strcasecmp instead of strcmp.
12523 (generate_ascii_font_name): Adjusted for the format change of
12524 font-spec.
12525 (Fset_fontset_font): Likewise. Use new macros to set elements of
12526 font-def.
12527 (Fnew_fontset): Use font_unparse_xlfd to generate
12528 FONTSET_ASCII (fontset).
12529 (new_fontset_from_font_name): Deleted.
12530 (fontset_from_font): Renamed from new_fontset_from_font. Check if
12531 a fontset is already created for the font. FIx updating of
12532 Vfontset_alias_alist.
12533 (fontset_ascii_font): Deleted.
12534 (Ffont_info): Adjusted for the format change of font-spec.
12535 (Finternal_char_font): Likewise.
12536 (Ffontset_info): Likewise.
12537 (syms_of_fontset): Don't check load_font_func.
12538
12539 * fns.c (internal_equal): Handle PREV_FONT.
12540
12541 * frame.h: Delete USE_FONT_BACKEND conditional.
12542
12543 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
12544 conditionals. Don't check enable_font_backend. Delete all codes
12545 used only when USE_FONT_BACKEND is not defined.
12546 (x_set_font): Call x_new_font, not x_new_fontset2.
12547 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
12548 already set for the frame.
12549
12550 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
12551 a font-entity by font_make_entity. Use font_intern_prop instead
12552 of intern_downcase. Use FONT_SET_STYLE to set a style-related
12553 font property. If a font is scalable, set avgwidth property to 0.
12554 Set font-entity property by font_put_extra.
12555 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
12556 (ffont_driver): Adjusted for the change of struct font_driver.
12557 (ftfont_spec_pattern): New function.
12558 (ftfont_list): Return a list, not vector.
12559 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
12560 (ftfont_list_family): Don't downcase names.
12561 (ftfont_free_entity): Deleted.
12562 (ftfont_open): Return a font-object. Adjusted for the change of
12563 struct font. Get underline_thickness and underline_position from
12564 font property. Don't update dpyinfo->smallest_font_height and
12565 dpyinfo->smallest_char_width.
12566 (ftfont_close): Don't free `struct font'.
12567 (ftfont_has_char): Adjusted for the format change of font-entity.
12568 (ftfont_encode_char, ftfont_text_extents): Likewise.
12569
12570 * ftxfont.c (ftxfont_list): Return a list, not vector.
12571 (ftxfont_open): Return a font-object. Adjusted for the change of
12572 struct font. Get underline_thickness and underline_position from
12573 font property. Don't update dpyinfo->smallest_font_height and
12574 dpyinfo->smallest_char_width.
12575 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
12576 (ftxfont_draw): Adjusted for the change of struct font.
12577
12578 * image.c (image_ascent): Don't include "charset.h". Include
12579 "character.h" and "font.h".
12580
12581 * lisp.h (enum pvec_type): New member PREV_FONT.
12582 (Fassoc_string): EXFUN it.
12583
12584 * print.c: Include font.h.
12585 (print_object): Handle font-related objects.
12586
12587 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
12588 conditionals. Don't check enable_font_backend. Delete all codes
12589 used only when USE_FONT_BACKEND is not defined.
12590 (handle_auto_composed_prop): Do nothing if it->f is not on a
12591 window system. Check how many following characters can be
12592 displayed by the same font.
12593 (calc_pixel_width_or_height): Type of the 4th arg is changed to
12594 'struct font *'.
12595 (get_char_face_and_encoding): Assign the whole encoding task to
12596 the `encode-char' method of a font driver.
12597 (fill_composite_glyph_string): Adjusted for the change of `struct
12598 face' and `struct glyph_string'.
12599 (fill_glyph_string): Likewise.
12600 (get_per_char_metric): Arguments changed.
12601 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
12602 and `struct glyph_string'.
12603 (produce_stretch_glyph, calc_line_height_property)
12604 (x_produce_glyphs): Likewise.
12605
12606 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
12607 conditionals. Don't check enable_font_backend. Delete all codes
12608 used only when USE_FONT_BACKEND is not defined. Use
12609 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
12610 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
12611 (Qp): Extern them.
12612 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
12613 Deleted.
12614 (struct font_name): Deleted.
12615 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
12616 (compare_fonts_by_sort_order): New function.
12617 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
12618 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
12619 Deleted.
12620 (Fx_family_fonts): Use font_list_entities, and sort fonts by
12621 compare_fonts_by_sort_order.
12622 (Fx_font_family_list): Call Ffont_family_list.
12623 (face_numeric_value, face_numeric_weight, face_numeric_slant)
12624 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
12625 (face_symbolic_slant, face_symbolic_swidth)
12626 (split_font_name_into_vector, build_font_name_from_vector)
12627 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
12628 (font_rescale_ratio, split_font_name, build_font_name)
12629 (free_font_names, sort_fonts, x_face_list_fonts)
12630 (face_font_available_p, sorted_font_list, cmp_font_names)
12631 (font_list_1, concat_font_list, font_list, remove_duplicates):
12632 Deleted.
12633 (Fx_list_fonts): Use Ffont_list.
12634 (LFACE_AVGWIDTH): Deleted.
12635 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
12636 by FONTP.
12637 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
12638 (set_lface_from_font_name): Delete it.
12639 (set_lface_from_font): Renamed from
12640 set_lface_from_font_and_fontset. Caller changed. Don't set
12641 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
12642 for face.
12643 (merge_face_vectors): Copy font-spec if necessary.
12644 Clear properties of the font-spec if necessary.
12645 (merge_face_ref): Clear properties of the font-spec if necessary.
12646 (Finternal_set_lisp_face_attribute): Likewise.
12647 (set_font_frame_param): Use font_load_for_lface to load a
12648 font-object, and call Fmodify_frame_parameters with it.
12649 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
12650 font name by Ffont_xlfd_name.
12651 (Finternal_lisp_face_attribute_values): Don't check QCweight,
12652 QCslant, and QCwidth.
12653 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
12654 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
12655 Compare fonts by EQ.
12656 (lookup_non_ascii_face): Deleted.
12657 (face_for_font): The 2nd argument changed.
12658 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
12659 Check atomic font properties by case insensitive.
12660 (realize_non_ascii_face): Set face->overstrike correctly.
12661 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
12662 (dump_realized_face): Get font name from
12663 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
12664
12665 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
12666 conditionals. Don't check enable_font_backend. Delete all codes
12667 used only when USE_FONT_BACKEND is not defined.
12668 (xic_create_xfontset): Original code deleted and renamed from
12669 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
12670 (x_make_gc): Don't set GCFont in GCs.
12671 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
12672 opened by "fixed".
12673 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
12674 find_ccl_program_func, query_font_func, set_frame_fontset_func,
12675 get_font_repertory_func.
12676
12677 * xfont.c: Include <stdlib.h> and "ccl.h".
12678 (struct xfont_info): New structure.
12679 (xfont_query_font): Deleted.
12680 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
12681 moved from xterm.c.
12682 (xfont_driver): Adjusted for the change of struct font_driver.
12683 (compare_font_names): New function.
12684 (xfont_list_pattern): Sort font names case insensitively. Make
12685 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
12686 (xfont_list): Return a list, not vector.
12687 (xfont_match): If the font doesn't have QCname property, generate
12688 a name from the other font properties.
12689 (xfont_open): Return a font-object. Adjusted for the change of
12690 struct font. Get underline_thickness and underline_position from
12691 font property. Don't update dpyinfo->smallest_font_height and
12692 dpyinfo->smallest_char_width.
12693 (xfont_close): Don't free struct font.
12694 (xfont_prepare_face): Adjusted for the change of struct font.
12695 (xfont_done_face): Deleted.
12696 (xfont_has_char): Adjusted for the change of struct font.
12697 (xfont_encode_char, xfont_draw): Likewise.
12698 (xfont_check): New function.
12699
12700 * xftfont.c (xftfont_list): Adjusted for the change of `list'
12701 callback function.
12702 (xftfont_match): Adjusted for the format change of font-entity.
12703 (xftfont_open): Adjusted for the format change of font-entity and
12704 font-object. Adjusted for the change of struct font. Return a
12705 font-object. Don't update dpyinfo->smallest_font_height and
12706 dpyinfo->smallest_char_width.
12707 (xftfont_close): Block input while calling XftFontClose.
12708 (xftfont_prepare_face): Don't block input while calling
12709 xftfont_get_colors. Adjusted for the change of struct font.
12710 (xftfont_shape): Return value of error case fixed.
12711
12712 * xrdb.c (x_load_resources): Don't setup a fontset resource.
12713
12714 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
12715 conditionals.
12716 (FONT_WIDTH): Return (f)->max_width.
12717 (struct x_display_info): Delete member `font'.
12718 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
12719 (x_find_ccl_program, x_get_font_repertory): Delete externs.
12720 (struct x_output): Change type of `font' to `struct font *'.
12721
12722 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
12723 conditionals. Don't check enable_font_backend. Delete all codes
12724 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
12725 (x_per_char_metric, x_encode_char): Deleted.
12726 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
12727 (x_compute_glyph_string_overhangs): Adjusted for the change of
12728 `struct face'.
12729 (x_draw_glyph_string_foreground)
12730 (x_draw_composite_glyph_string_foreground): Likewise.
12731 (x_draw_glyph_string): Likewise. Use font->underline_position and
12732 font->underline_thickness.
12733 (x_new_font): Renamed from x_new_fontset2.
12734 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
12735 (x_check_font): Call `check' method of a font driver.
12736 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
12737 (x_query_font, x_get_font_repertory): Deleted.
12738 (x_find_ccl_program): Renamed and moved to xfont.c.
12739 (x_redisplay_interface): Adjusted for the change of `struct
12740 redisplay_interface'.
12741
12742 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
12743 conditionals. Don't check enable_font_backend. Delete all codes
12744 used only when USE_FONT_BACKEND is not defined. Surround non-used
12745 code by "#ifdef OLD_FONT" and "endif".
12746 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
12747
12748 * w32font.h (struct w32font_info): New member.
12749 (FONT_COMPAT): New macro.
12750 (w32font_open_internal): Prototype adjusted.
12751
12752 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
12753 OLD_FONT" and "endif".
12754
12755 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
12756 conditionals. Don't check enable_font_backend. Delete all codes
12757 used only when USE_FONT_BACKEND is not defined.
12758 (w32font_open): Return a font-object. Make a font-object by
12759 font_make_object. Adjusted for the change of struct w32font_info.
12760 (w32font_close): Don't free struct font. Adjusted for the change
12761 of struct w32font_info.
12762 (w32font_encode_char, w32font_text_extents, w32font_draw):
12763 Adjusted for the change of struct w32font_info.
12764 (w32font_draw): Likewise.
12765 (w32font_list_internal): Return a list, not vector.
12766 (w32font_open_internal): Change the 4th arg to font-object.
12767 Adjusted for the change of struct w32font_info and font-object format.
12768 (add_font_name_to_list): Don't downcase names.
12769 (w32_enumfont_pattern_entity): Make a font-entity by
12770 font_make_entity. Adjusted for the format change of font-entity.
12771 Use FONT_SET_STYLE to set a style-related font property. If a
12772 font is scalable, set avgwidth property to 0. Set font-entity
12773 property by font_put_extra.
12774 (font_matches_spec): Adjusted for the format change of font-entity.
12775 (w32_weight_table, w32_decode_weight): New variables.
12776 (w32_encode_weight): New function.
12777 (fill_in_logfont): Adjusted for the format change of font-spec.
12778 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
12779 weight value.
12780 (w32font_driver): Adjusted for the change of struct font_driver.
12781
12782 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
12783 conditionals. Don't check enable_font_backend. Surround non-used
12784 code by "#ifdef OLD_FONT" and "endif".
12785 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
12786 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
12787
12788 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
12789 conditionals. Don't check enable_font_backend. Delete all codes
12790 used only when USE_FONT_BACKEND is not defined. Surround non-used
12791 code by "#ifdef OLD_FONT" and "endif".
12792
12793 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
12794 (uniscribe_open): Return value changed to font-object.
12795 Adjusted for the format change of font-object.
12796 (uniscribe_otf_capability): Adjusted for the change of struct font.
12797 (add_opentype_font_name_to_list): Don't downcase names.
12798 (uniscribe_font_driver): Adjusted for the change of struct
12799 font_driver.
12800
128012008-05-13 Chong Yidong <cyd@stupidchicken.com>
12802
12803 * dispnew.c (update_frame_1): Check if tty output is still valid
12804 before flushing it.
12805
128062008-05-13 Jan Djärv <jan.h.d@swipnet.se>
12807
12808 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
12809 to Gtk+ menus.
12810
128112008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
12812
12813 * dired.c (file_name_completion): Tweak the code so as to always do it
12814 in a single pass. Tighten the scope of some variables.
12815
12816 * dired.c (Qdefault_directory): New var.
12817 (file_name_completion): Use it instead of Fexpand_file_name.
12818 (syms_of_dired): Initialize it.
12819
128202008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
12821
12822 * fileio.c (double_dollars): Remove dead code.
12823
128242008-05-10 Eli Zaretskii <eliz@gnu.org>
12825
12826 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
12827 Mention w32-get-true-file-attributes in doc string.
12828
12829 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
12830
128312008-05-09 Glenn Morris <rgm@gnu.org>
12832
12833 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
12834 2008-04-23.
12835
128362008-05-09 Eli Zaretskii <eliz@gnu.org>
12837
12838 Support for reporting owner and group of each file on MS-Windows:
12839 * dired.c (stat_uname, stat_gname): New functions, with special
12840 implementation for w32.
12841 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
12842
12843 * w32.c: Rename the_passwd_* to dflt_passwd_*.
12844 (dflt_group_name): New static variable.
12845 (dflt_group): Rename from the_group.
12846 (init_user_info): Init dflt_group fields. Get user's group name
12847 from LookupAccountSid.
12848 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
12849 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
12850 New initialization states.
12851 (globals_of_w32): Initialize them to zero. Initialize the default
12852 group name to "None".
12853 (GetFileSecurity_Name): New global var, the name of the function
12854 to call for GetFileSecurity.
12855 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
12856 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
12857 (get_file_security, get_security_descriptor_owner)
12858 (get_security_descriptor_group, is_valid_sid)
12859 (get_file_security_desc, get_rid, get_name_and_id)
12860 (get_file_owner_and_group): New functions.
12861 (stat): Use get_file_security_desc and get_file_owner_and_group to
12862 report the owner and primary group of each file. Don't ignore the
12863 high 32 bits of file's size, now that st_size is 64-bit wide.
12864 Fix test when to get true file attributes.
12865 (init_user_info): Use get_rid instead of equivalent inline code.
12866 (fstat): Don't ignore the high 32 bits of file's size.
12867
128682008-05-09 Chong Yidong <cyd@stupidchicken.com>
12869
12870 * image.c (png_load): Use correct bit-depth for setting background
12871 color.
12872
128732008-05-08 Eli Zaretskii <eliz@gnu.org>
12874
12875 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
12876 epa-hook.elc.
12877
128782008-05-08 Juanma Barranquero <lekktu@gmail.com>
12879
12880 * font.c (Ffont_match_p): Don't use `iff' in docstring.
12881
128822008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
12883
12884 * macfns.c (Fx_create_frame): Make a copy of frame parameters
12885 because the original parameters are in pure storage now.
12886 (mac_window): Remove unused params. Update callers.
12887
128882008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
12889
12890 * lread.c (substitute_object_recurse): Use lower-level primitives.
12891 Don't signal errors when traversing sub-char-tables.
12892 Don't loop over all the possible characters when traversing char-tables.
12893
12894 * print.c (print_preprocess): Add sub-char-tables to the print-table,
12895 just like we do in print.c.
12896
128972008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
12898
12899 * minibuf.c (Ftry_completion): Remove code left over from when we used
12900 scmp instead of Fcompare_strings.
12901
129022008-05-04 Juanma Barranquero <lekktu@gmail.com>
12903
12904 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
12905
129062008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12907
12908 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
12909 Create bitmap context in native byte order.
12910
12911 * macterm.c (XDrawLine)
12912 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
12913 context in native byte order.
12914
129152008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12916
12917 * config.in: Regenerate.
12918
12919 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
12920 New definitions for Image I/O support.
12921 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
12922 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
12923 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
12924 (mac_data_provider_release_data, image_load_image_io)
12925 [USE_MAC_IMAGE_IO]: New functions.
12926 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
12927 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
12928 (init_image_func_pointer) [MAC_OSX]: Remove function.
12929 (image_load_quartz2d) [MAC_OSX]: Check availability of
12930 CGImageCreateWithPNGDataProvider at compile time.
12931 Use lowercase `false' for boolean constant.
12932 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
12933 Use image_load_image_io.
12934 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
12935 Don't check MyCGImageCreateWithPNGDataProvider.
12936 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
12937 Don't call init_image_func_pointer.
12938
12939 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
12940
12941 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
12942 Make variable non-static.
12943 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
12944 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
12945
12946 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
12947 (RED_FROM_ULONG): Mask off higher bits.
12948 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
12949
12950 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
12951 Include AvailabilityMacros.h.
12952 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
12953 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
12954
129552008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
12956
12957 * chartab.c (Fset_char_table_range): If range is t, really set all
12958 chars to that value.
12959
129602008-05-03 Eli Zaretskii <eliz@gnu.org>
12961
12962 * dired.c (Ffile_attributes): Don't allow the device number become
12963 negative.
12964
129652008-05-02 Daiki Ueno <ueno@unixuser.org>
12966
12967 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
12968
129692008-05-02 Juri Linkov <juri@jurta.org>
12970
12971 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
12972 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
12973 DEFAULT argument as a list of default values in docstrings.
12974
129752008-05-01 Chong Yidong <cyd@stupidchicken.com>
12976
12977 * puresize.h (BASE_PURESIZE): Increase to 1210000.
12978
129792008-05-01 Martin Rudalics <rudalics@gmx.at>
12980
12981 * dispnew.c (change_frame_size_1): Preserve small windows when
12982 shrinking frames by calling set_window_height|width with third
12983 arg 2.
12984
12985 * window.h (struct window): Replace field too_small_ok by field
12986 resize_proportionally.
12987
12988 * window.c (make_window): Initialize resize_proportionally.
12989 (enlarge_window): Temporarily set resize_proportionally to make
12990 sure that shrink_windows does scale the window proportionally.
12991 (shrink_windows): When window has resize_proportionally set try
12992 to shrink it proportionally by stealing from other windows.
12993 (struct saved_window, Fset_window_configuration)
12994 (compare_window_configurations): Handle resize_proportionally.
12995 (WINDOW_TOTAL_SIZE): New macro.
12996 (window_min_size, shrink_windows, size_window): Use it.
12997 (check_min_window_sizes): Remove. Invalid values of
12998 window-min-height|width are handled by window_min_size_2 now.
12999 (size_window, Fsplit_window, enlarge_window)
13000 (adjust_window_trailing_edge, grow_mini_window): Don't call
13001 check_min_window_sizes.
13002 (window_min_size_2, window_min_size_1, window_min_size):
13003 New argument safe_p for retrieving "safe" minimum sizes.
13004 (Fdisplay_buffer, Fsplit_window, enlarge_window)
13005 (adjust_window_trailing_edge, grow_mini_window):
13006 Adjust arguments of window_min_size... functions.
13007 (shrink_windows): Argument min_size removed. New argument
13008 safe_p allows shrinking windows to their safe minimum sizes.
13009 Calculate minimum size and decide whether a window shall be
13010 deleted for each window individually.
13011 (size_window): When nodelete_p equals 2, tell shrink_windows to
13012 delete windows only if their new minimum size is no more safe.
13013 (shrink_window_lowest_first): Call window_min_size_1 to make
13014 sure to preserve modeline of bottom-most window when resizing
13015 the minibuffer.
13016 (Fset_window_configuration, Fcurrent_window_configuration)
13017 (compare_window_configurations): Do not handle
13018 window-min-height|width any more.
13019 (syms_of_window): Clarify window-min-height|width doc-strings.
13020
130212008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
13022
13023 * dired.c (file_name_completion): Fix up the encoding/decoding issue
13024 some more. Copy some of the code from Ftry_completions.
13025 Remove special case code that dates back to initial revision when the
13026 slash was only added when necessary and that can't trigger nowadays.
13027
130282008-04-27 Kenichi Handa <handa@m17n.org>
13029
13030 * font.c (font_prop_validate): Signal `error' instead of `font'.
13031
130322008-04-29 Jason Rumney <jasonr@gnu.org>
13033
13034 * w32fns.c (Fw32_battery_status): New defun.
13035 (syms_of_w32fns): Defsubr it.
13036
130372008-04-28 Andreas Schwab <schwab@suse.de>
13038
13039 * dired.c (file_name_completion): Fix another mixing of encoded
13040 and decoded names.
13041
130422008-04-28 Juanma Barranquero <lekktu@gmail.com>
13043
13044 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
13045
130462008-04-27 Juanma Barranquero <lekktu@gmail.com>
13047
13048 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
13049
130502008-04-27 Andreas Schwab <schwab@suse.de>
13051
13052 * dired.c (file_name_completion): Fix inappropriate mixing of
13053 encoded and decoded names.
13054
13055 * xterm.c (XTread_socket): Fix use of uninitialized variable.
13056
13057 * puresize.h (BASE_PURESIZE): Increase to 1200000.
13058
130592008-04-26 Eli Zaretskii <eliz@gnu.org>
13060
13061 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
13062 2008-03-31, it's not needed anymore with `struct stat' definition
13063 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
13064 for the same reasons.
13065
130662008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
13067
13068 * m/sparc.h: Additional redefinitions for GNU/Linux.
13069
130702008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13071
13072 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
13073 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
13074 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
13075 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
13076 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
13077 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
13078 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
13079 Likewise.
13080
13081 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
13082 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
13083 (mac_ax_number_of_characters): Add externs.
13084 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
13085 [USE_MAC_TSM]: Likewise.
13086 (mac_handle_text_input_event) [MAC_OSX]:
13087 Handle kEventTextInputOffsetToPos for no active input area case.
13088 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
13089 (mac_handle_document_access_event)
13090 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
13091 (install_application_handler) [MAC_OSX]: Register handlers for
13092 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
13093 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
13094 Register mac_handle_document_access_event.
13095
13096 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
13097 Make functions non-static.
13098
130992008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
13100
13101 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
13102 (read_file_name_completion_ignore_case, insert_default_directory)
13103 (Qdefault_directory): Move to minibuffer.el.
13104 (Fread_file_name): Call the new `read-file-name' instead.
13105
131062008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13107
13108 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
13109 Make function non-static.
13110 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
13111 Remove function.
13112 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
13113 Move to mactoolbox.c.
13114 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
13115
13116 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
13117 (mac_rect_make): New macro.
13118
13119 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
13120 instead of float.
13121 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
13122 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
13123 (XSetBackground) [USE_CG_DRAWING]: Likewise.
13124 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
13125 CGRectMake.
13126 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
13127 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
13128 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
13129 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
13130 instead of WindowRef in argument type.
13131 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
13132 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
13133 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
13134 instead of DISPLAY. All uses changed.
13135 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
13136 (x_calc_absolute_position): Simplify so as not to use
13137 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
13138
13139 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
13140 instead of WindowRef in argument type.
13141 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
13142 [TARGET_API_MAC_CARBON]: Remove externs.
13143 (create_apple_event, mac_event_parameters_to_lisp)
13144 [TARGET_API_MAC_CARBON]: Add externs.
13145
13146 * mactoolbox.c (Vmac_ts_script_language_on_focus)
13147 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
13148 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
13149 is clicked.
13150 (x_activate_menubar): Remove extern for saved_menu_event_location.
13151 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
13152 Move from mac.c.
13153
131542008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13155
13156 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
13157 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
13158
131592008-04-23 Jason Rumney <jasonr@gnu.org>
13160
13161 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
13162 attributes only for local files.
13163
13164 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
13165 default to Qlocal.
13166
131672008-04-22 Juri Linkov <juri@jurta.org>
13168
13169 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
13170 read-buffer-to-switch instead of using the letter "B".
13171
131722008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
13173
13174 * fileio.c (Qdefault_directory): New variable.
13175 (Fread_file_name): Use it to pass `dir' to the completion functions.
13176
131772008-04-20 Chong Yidong <cyd@stupidchicken.com>
13178
13179 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
13180
131812008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
13182
13183 * keyboard.c (Vpre_help_message): Remove.
13184 (show_help_echo): Remove default C code.
13185
13186 * dired.c (directory_files_internal, file_name_completion):
13187 Only call ENCODE_FILE if the string is indeed decoded.
13188
131892008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
13190
13191 * Makefile.in (TOOLKIT_DEFINES): Remove.
13192 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
13193
131942008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13195
13196 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
13197 (mactoolbox.o): New target.
13198
13199 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
13200 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
13201
13202 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
13203 Use mac_set_frame_window_background instead of XSetWindowBackground.
13204 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
13205 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
13206 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
13207 instead of SetWindowTitleWithCFString.
13208 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
13209 Move function to mactoolbox.c.
13210 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
13211 Use mac_set_window_modified instead of SetWindowModified.
13212 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
13213 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
13214 (Fx_focus_frame): Use mac_front_non_floating_window instead of
13215 FrontNonFloatingWindow. Use mac_activate_window instead of
13216 ActivateWindow. Use mac_active_non_floating_window instead of
13217 ActiveNonFloatingWindow.
13218 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
13219 Use mac_show_hourglass and mac_hide_hourglass.
13220 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
13221 instead of GetGlobalMouse.
13222 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
13223 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
13224 Use mac_bring_window_to_front instead of BringToFront.
13225 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
13226 mactoolbox.c.
13227 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
13228 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
13229 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
13230 mactoolbox.c.
13231
13232 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
13233 (XtPointer): Move typedef from macmenu.c.
13234 (enum button_type): Move enum from macmenu.c.
13235 (widget_value): Move typedef from macmenu.c.
13236 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
13237 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
13238 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
13239 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
13240 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
13241 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
13242 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
13243 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
13244 (Selection): Move typedef from macselect.c.
13245 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
13246 macterm.c.
13247 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
13248 (mac_is_window_collapsed, mac_bring_window_to_front)
13249 (mac_send_window_behind, mac_hide_window, mac_show_window)
13250 (mac_collapse_window, mac_front_non_floating_window)
13251 (mac_active_non_floating_window, mac_activate_window)
13252 (mac_move_window_structure, mac_move_window, mac_size_window)
13253 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
13254
13255 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
13256 (enum mac_menu_kind): Move enum to mactoolbox.c.
13257 (min_menu_id): Move variable to mactoolbox.c.
13258 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
13259 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
13260 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
13261 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
13262 [TARGET_API_MAC_CARBON]: Likewise.
13263 (XtPointer): Move typedef to macgui.h.
13264 (enum button_type): Move enum to macgui.h.
13265 (widget_value): Move typedef to macgui.h.
13266 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
13267 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
13268 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
13269 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
13270 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
13271 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
13272 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
13273 (popup_activated_flag): Make variable non-static.
13274 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
13275 (add_menu_item, fill_menu, dispose_menus):
13276 Move functions to mactoolbox.c.
13277 (restore_show_help_function, menu_target_item_handler)
13278 (install_menu_target_item_handler, mac_handle_dialog_event)
13279 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
13280 [TARGET_API_MAC_CARBON]: Likewise.
13281 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
13282 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
13283 (find_and_call_menu_selection, name_is_separator): Make function
13284 non-static.
13285 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
13286 to mactoolbox.c.
13287 (set_frame_menubar): Don't call install_menu_quit_handler.
13288 (menu_item_selection): New variable.
13289 (mac_menu_show): Use create_and_show_popup_menu.
13290 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
13291 selection but set variable menu_item_selection. All uses changed.
13292 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
13293 Call install_menu_quit_handler. Move to mactoolbox.c.
13294
13295 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
13296 (Selection): Move typedef to macgui.h.
13297 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
13298 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
13299 Make variables non-static.
13300 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
13301 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
13302 Make functions non-static.
13303 (Vmac_service_selection) [MAC_OSX]: Likewise.
13304 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
13305 (mac_valid_selection_target_p, mac_clear_selection)
13306 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
13307 (mac_put_selection_value, mac_selection_has_target_p)
13308 (mac_get_selection_value, mac_get_selection_target_list)
13309 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
13310 Move functions to mactoolbox.c.
13311 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
13312 Likewise.
13313 (copy_scrap_flavor_data, mac_handle_service_event)
13314 (install_service_handler) [MAC_OSX]: Likewise.
13315 (syms_of_macselect) <Vmac_dnd_known_types>:
13316 Use mac_dnd_default_known_types.
13317
13318 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
13319 Move to mactoolbox.c.
13320 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
13321 (Fx_selection_owner_p): Add EXFUN.
13322 (install_window_handler, remove_window_handler, XSetWindowBackground):
13323 Remove externs.
13324 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
13325 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
13326 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
13327 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
13328 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
13329 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
13330 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
13331 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
13332 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
13333 (create_and_show_popup_menu, mac_get_selection_from_symbol)
13334 (mac_valid_selection_target_p, mac_clear_selection)
13335 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
13336 (mac_put_selection_value, mac_selection_has_target_p)
13337 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
13338 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
13339 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
13340 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
13341 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
13342 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
13343 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
13344 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
13345 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
13346
13347 * mactoolbox.c: New file.
13348
133492008-04-18 Jason Rumney <jasonr@gnu.org>
13350
13351 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
13352
133532008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
13354
13355 * character.c (Fmultibyte_char_to_unibyte):
13356 Return latin1 chars unchanged.
13357
13358 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
13359 relocated if it points to `name'.
13360
133612008-04-17 Kenichi Handa <handa@m17n.org>
13362
13363 * data.c (Faset): Allow setting a multibyte character in an
13364 ASCII-only unibyte string.
13365
13366 * lisp.h (STRING_SET_MULTIBYTE): New macro.
13367
133682008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
13369
13370 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
13371 done in config.h.
13372
133732008-04-16 Juanma Barranquero <lekktu@gmail.com>
13374
13375 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
13376 (Fchar_direction): Add usage in the docstring.
13377
133782008-04-15 Chong Yidong <cyd@stupidchicken.com>
13379
13380 * keyboard.c (read_key_sequence): Remove always-true checks.
13381
133822008-04-14 Jason Rumney <jasonr@gnu.org>
13383
13384 * w32font.c (w32font_open_internal): Set max_bounds.descent in
13385 compatibility struct, for better underline positioning.
13386
133872008-04-13 David Hansen <david.hansen@gmx.net>
13388
13389 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
13390 string.
13391
133922008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
13393
13394 * m/hp800.h (XUINT, XSET): Remove.
13395
133962008-04-12 Juanma Barranquero <lekktu@gmail.com>
13397
13398 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
13399 previous change.
13400
134012008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
13402
13403 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
13404 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
13405
134062008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
13407
13408 * keymap.h (map_keymap_canonical): Declare.
13409 * xmenu.c (single_keymap_panes): Use it.
13410
134112008-04-11 Glenn Morris <rgm@gnu.org>
13412
13413 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
13414 set the target's value to that of the alias.
13415
134162008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
13417
13418 * term.c (set_tty_color_mode): Left over typo.
13419
134202008-04-10 Michael Albinus <michael.albinus@gmx.de>
13421
13422 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
13423 only after check for file name handler functions. Signal, when
13424 native functionality is not supported.
13425 (syms_of_fileio): Declare it unconditionally.
13426
134272008-04-10 Jason Rumney <jasonr@gnu.org>
13428
13429 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
13430 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
13431
13432 * w32.c (logon_network_drive): Also logon to remote drives that
13433 are mapped to drive letters.
13434
134352008-04-10 Glenn Morris <rgm@gnu.org>
13436
13437 * xdisp.c (truncate-partial-width-windows): Doc fix.
13438
134392008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
13440
13441 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
13442 Move functions to minibuffer.el.
13443 (syms_of_fileio): Don't declare them.
13444
134452008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
13446
13447 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
13448 (syms_of_minibuf): Remove its initialization.
13449
13450 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
13451
134522008-04-09 Juanma Barranquero <lekktu@gmail.com>
13453
13454 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
13455
134562008-04-09 Jason Rumney <jasonr@gnu.org>
13457
13458 * makefile.w32-in (distclean): Delete makefile too.
13459 (maintainer-clean): New target.
13460
13461 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
13462
13463 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
13464 for new font backend and composite cases.
13465
134662008-04-09 Jan Djärv <jan.h.d@swipnet.se>
13467
13468 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
13469 Most of the code moved to run_timers.
13470 (do_pending_atimers): Call run_timers.
13471 (run_timers): New function.
13472
13473 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
13474 run atimers.
13475
13476 * process.c (wait_reading_process_output): The same as above.
13477
134782008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
13479
13480 * minibuf.c (last_exact_completion): Remove variable.
13481 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
13482 (complete_and_exit_1, complete_and_exit_2)
13483 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
13484 (Fdisplay_completion_list, display_completion_list_1)
13485 (Fminibuffer_completion_help, Fself_insert_and_exit)
13486 (Fexit_minibuffer, Fminibuffer_message): Move functions to
13487 minibuffer.el.
13488 (syms_of_minibuf): Remove corresponding initializations.
13489
13490 * keyboard.c (Qdeactivate_mark): New var.
13491 (command_loop_1): Use it to call `deactivate-mark'.
13492 (syms_of_keyboard): Initialize it.
13493
13494 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
13495 to another frame.
13496 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
13497 Don't call set_tty_color_mode.
13498 (store_frame_param): Reset previous_frame rather than call
13499 set_tty_color_mode.
13500 * term.c (set_tty_color_mode): Rewrite.
13501 * dispextern.h (set_tty_color_mode): New type.
13502 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
13503
135042008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
13505
13506 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
13507 for generic chars, which do not exist any more in emacs-unicode.
13508
135092008-04-08 Michael Albinus <michael.albinus@gmx.de>
13510
13511 * coding.c (detect_coding_emacs_mule)
13512 (Ffind_operation_coding_system): Fix typo.
13513
135142008-04-08 Jason Rumney <jasonr@gnu.org>
13515
13516 * w32uniscribe.c (SNAME): Extract only symbol name.
13517
13518 * w32font.h (struct w32_metric_cache): New struct.
13519 (w32font_info): Use it.
13520 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
13521 (CACHE_BLOCKSIZE): New constants.
13522
13523 * w32font.c (Qja, Qko, Qzh): New symbols.
13524 (syms_of_w32font): Initialise them.
13525 (font_matches_spec): Use them to filter by language.
13526 (recompute_cached_metrics): Remove function.
13527 (compute_metrics, clear_cached_metrics): New functions.
13528 (w32font_encode_char): Use them to manage metric cache.
13529 (w32font_text_extents): Cache metrics for all glyphs on demand.
13530 Delay converting glyph indices to WORD until needed.
13531 (w32font_open_internal): Initialize metric cache to empty.
13532 (registry_to_w32_charset): Charset should always be a symbol.
13533 (fill_in_logfont, list_all_matching_fonts): Family should
13534 always be a symbol.
13535
135362008-04-06 Jason Rumney <jasonr@gnu.org>
13537
13538 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
13539 Give up if glyph indices not supported. Use uniscribe obtained
13540 ABC widths for individual metrics. Map glyph clusters back to
13541 characters using fClusterStart flag. Return number of glyphs
13542 produced, not chars processed.
13543 (uniscribe_shape): Map char at FROM to current glyph.
13544
135452008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13546
13547 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
13548 Use SetMenuItemHierarchicalMenu.
13549
135502008-04-05 Jason Rumney <jasonr@gnu.org>
13551
13552 * image.c (pbm_load): Allow color values up to 65535.
13553 Throw an error if max_color_idx is outside the supported range.
13554 Report an error when image size is invalid.
13555 Read two bytes at a time when raw images have max_color_idx above 255.
13556
135572008-04-05 Eli Zaretskii <eliz@gnu.org>
13558
13559 * w32.c (readdir): If FindFirstFile/FindNextFile return in
13560 cFileName a file name that includes `?' characters, use the 8+3
13561 alias in cAlternateFileName instead.
13562
135632008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
13564
13565 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
13566 append "CCL: Quitted" when the CCL program is quitted.
13567 (setup_ccl_program): Initialize ccl->quit_silently to zero.
13568
13569 * ccl.h (struct ccl_program): New member quit_silently.
13570
135712008-04-05 Chong Yidong <cyd@stupidchicken.com>
13572
13573 * search.c (compile_pattern_1): Treat non-nil and non-string of
13574 search-spaces-regexp as nil.
13575
13576 * minibuf.c (Fassoc_string): Tweak docstring.
13577
135782008-04-05 Eli Zaretskii <eliz@gnu.org>
13579
13580 * dired.c (Ffile_attributes): Support inode numbers wider than 32
13581 bits. Remove ugly WINDOWSNT-specific kludge introduced on
13582 2008-03-14 to force inode be positive.
13583
13584 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
13585 _S_* ones, since we now use our own sys/stat.h.
13586 (stat, fstat): Don't mangle the inode number.
13587 (init_user_info): Don't restrict UID and GID to 0-60000 range.
13588
135892008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
13590
13591 * frame.h (struct frame): Give one more bit to `visible' since we use
13592 values larger than 1 to indicate obscured frames on ttys.
13593
13594 * keymap.c (Qkeymap_canonicalize): New var.
13595 (Fmap_keymap_internal): New fun.
13596 (describe_map): Use keymap-canonicalize.
13597
13598 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
13599 (Fundo_boundary): Set them.
13600 (syms_of_undo): Initialize them.
13601 (record_point): Use them instead of last_point_position*.
13602 (last_undo_buffer): Change type.
13603
136042008-04-04 Jason Rumney <jasonr@gnu.org>
13605
13606 * w32font.c (w32font_text_extents): Use font's ascent and descent.
13607 (recompute_cached_metrics): Don't set ascent and descent per char.
13608
13609 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
13610 (uniscribe_check_otf): Add GC protection before consing.
13611 Rearrange loop for counting features.
13612
136132008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
13614
13615 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
13616 buffer with byte-size of source buffer.
13617
136182008-04-03 Chong Yidong <cyd@stupidchicken.com>
13619
13620 * callint.c (Fcall_interactively): Handle temporary region even
13621 when shift-select-mode is off.
13622
136232008-04-03 Jason Rumney <jasonr@gnu.org>
13624
13625 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
13626
136272008-04-03 Kenichi Handa <handa@m17n.org>
13628
13629 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
13630 (CATEGORY_MASK_UTF_16): Likewise.
13631 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
13632 binary file.
13633 (detect_coding): Add null-byte detection for a binary file.
13634 (detect_coding_system): Likewise.
13635
136362008-04-03 Jason Rumney <jasonr@gnu.org>
13637
13638 * w32uniscribe.c: New file.
13639
13640 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
13641
13642 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
13643
13644 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
13645 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
13646 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
13647 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
13648 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
13649 (Qphonetic): New symbols.
13650 (syms_of_w32font): Initialize them.
13651 (font_supported_scripts): Use them.
13652 (w32font_list_family): List all charsets.
13653 (w32font_text_extents, recompute_cached_metrics): Fix metric
13654 calculations.
13655 (w32_enumfont_pattern_entity): Make full_type a DWORD.
13656 Give opentype fonts their own format.
13657 (font_matches_spec): New arguments backend and logfont.
13658 Handle :otf spec for uniscribe backend.
13659 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
13660 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
13661
13662 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
13663 font backend.
13664 (globals_of_w32fns): Initialize uniscribe font backend.
13665
13666 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
13667 dependencies.
13668 (w32uniscribe.$(O)): New file to build.
13669 (FONT_OBJ): Include w32uniscribe.$(O).
13670 (LIBS): Add uniscribe libraries.
13671
13672 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
13673
136742008-04-02 Chong Yidong <cyd@stupidchicken.com>
13675
13676 * callint.c (Vshift_select_mode): New var.
13677 (Finteractive): Document new ^ spec.
13678 (Fcall_interactively): Call handle-shift-selection if the ^ spec
13679 is present.
13680
13681 * keyboard.c (Vthis_command_keys_shift_translated): New var.
13682 (command_loop_1): Avoid running the direct display versions of
13683 forward-char and backward-char if shift-selection may occur.
13684 (read_key_sequence): Set Vthis_command_keys_shift_translated if
13685 shift-translation takes place.
13686
13687 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
13688 avoid clobbering by define-minor-mode.
13689
13690 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
13691 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
13692
13693 * syntax.c (Fforward_word): Add ^ interactive spec.
13694
13695 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
13696 (Fscroll_right): Add ^ interactive spec.
13697
136982008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
13699
13700 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
13701
13702 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
13703
13704 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
13705
137062008-03-31 Juri Linkov <juri@jurta.org>
13707
13708 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
13709
137102008-03-30 Jan Djärv <jan.h.d@swipnet.se>
13711
13712 * gtkutil.c (xg_set_geometry): Fix indentation.
13713 (xg_resize_outer_widget): Remove.
13714 (x_wm_size_hint_off): Fix indentation.
13715 (xg_frame_set_char_size): Call flush_and_sync after
13716 gtk_window_resize.
13717 (x_wm_set_size_hint): Pass NULL as geometry window to
13718 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
13719 Add menu bar and tool bar height to base height.
13720 (xg_update_frame_menubar, free_frame_menubar)
13721 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
13722 (update_frame_tool_bar, free_frame_tool_bar):
13723 Change xg_resize_outer_widget to xg_frame_set_char_size.
13724
137252008-03-30 Michael Albinus <michael.albinus@gmx.de>
13726
13727 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
13728 (Fdbus_call_method): New parameter TIMEOUT.
13729 (dbus-send-signal): Optimize UNGCPRO call.
13730
137312008-03-29 Juri Linkov <juri@jurta.org>
13732
13733 * window.c (Fdisplay_buffer): Move call to
13734 Vsplit_window_preferred_function out of conditions that check
13735 if window is eligible for vertical splitting.
13736 When Vsplit_window_preferred_function is non-nil, call it and use
13737 its non-nil return value as window. Otherwise, continue doing
13738 vertical splitting using Fsplit_window with arg horflag=nil.
13739 (syms_of_window) <Vsplit_window_preferred_function>: Change the
13740 default value from `split-window' to nil.
13741
137422008-03-29 Juri Linkov <juri@jurta.org>
13743
13744 * callint.c (Fcall_interactively): Revert 2008-03-16 change
13745 for interactive code letters 'b' and 'B'.
13746
137472008-03-29 Eli Zaretskii <eliz@gnu.org>
13748
13749 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
13750 multibyte string.
13751
137522008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
13753
13754 * keyboard.c (pending_funcalls): New var.
13755 (timer_check): Run it.
13756 (syms_of_keyboard): Initialize it.
13757 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
13758 (Vdelete_terminal_functions): New vars.
13759 (syms_of_terminal): Initialize them.
13760 (Fdelete_terminal): Run delete-terminal-functions.
13761 * xdisp.c (safe_eval): Rewrite.
13762 (safe_call2): New fun.
13763 * frame.c (Qdelete_frame_functions): New var.
13764 (syms_of_frame): Initialize it.
13765 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
13766 * lisp.h (safe_call2, pending_funcalls): Declare.
13767
137682008-03-28 Andreas Schwab <schwab@suse.de>
13769
13770 * indent.c (Fmove_to_column): Move declaration before statements.
13771
137722008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
13773
13774 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
13775 (struct frame): Use bit fields for boolean vars.
13776
13777 * process.c (server_accept_connection): Simplify naming.
13778 (emacs_get_tty_pgrp): Use SDATA.
13779
13780 * coding.c (decode_coding_object): Fix last change.
13781
137822008-03-27 Jason Rumney <jasonr@gnu.org>
13783
13784 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
13785
137862008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
13787
13788 * charset.c (Fdefine_charset_internal): Change the way of
13789 registering charsets in Vcharset_order_list.
13790 (syms_of_charset): Make the charset `eight-bit' supplementary.
13791
137922008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
13793
13794 * regex.c (EXTEND_BUFFER): Change order of pointer addition
13795 operations, to avoid having the difference between pointers
13796 overflow.
13797
137982008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
13799
13800 * indent.c (check_display_width): New fun.
13801 (scan_for_column): Use it.
13802
13803 * data.c (syms_of_data): Mark most-positive-fixnum and
13804 most-negative-fixnum as constants.
13805
13806 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
13807
13808 * indent.c (scan_for_column): Extract from current_column_1.
13809 Merge with the same code from Fmove_to_column.
13810 (current_column_1, Fmove_to_column): Use it.
13811
138122008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
13813
13814 * keymap.c (map_keymap_internal): New fun.
13815 (map_keymap): Use it.
13816 (Fmap_keymap_internal): New fun.
13817 (Fmap_keymap): Remove left-out test from before make_save_value.
13818
13819 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
13820
13821 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
13822 Use XCAR/XCDR.
13823
13824 * process.h (struct Lisp_Process): Remove filter_multibyte.
13825 * process.c (QCfilter_multibyte): Remove.
13826 (setup_process_coding_systems): Don't use filter_multibyte.
13827 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
13828 (read_process_output): Don't adjust multibyteness to filter_multibyte.
13829 (Fset_process_filter_multibyte): Change the coding-system to
13830 approximate the previous behavior.
13831 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
13832 coding-system.
13833
13834 * coding.c (decode_coding_object): When not decoding into a buffer,
13835 obey the coding system's preference of (uni|multi)byte.
13836
138372008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
13838
13839 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
13840 every char is changed and has a different byte-length.
13841 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
13842 Fix int -> EMACS_INT.
13843
138442008-03-23 David Hansen <david.hansen@gmx.net>
13845
13846 * dbusbind.c (xd_read_message): Remove extra copying of message
13847 strings. Check for NULL `interface' or `member'.
13848
138492008-03-22 Eli Zaretskii <eliz@gnu.org>
13850
13851 * w32.c (readdir): If FindFirstFile/FindNextFile return in
13852 cFileName a file name that includes `?' characters, use the 8+3
13853 alias in cAlternateFileName instead.
13854
138552008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
13856
13857 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
13858
138592008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
13860
13861 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
13862 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
13863 work on current_buffer only instead (that was already the case
13864 for some of the code anyway).
13865 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
13866 (temp_set_point, temp_set_point_both): Use EMACS_INT.
13867 (SET_PT, SET_PT_BOTH): Adjust.
13868 * intervals.h (set_point, temp_set_point, set_point_both)
13869 (temp_set_point_both): Remove redundant declarations.
13870
138712008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
13872
13873 * fileio.c (Finsert_file_contents):
13874 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
13875 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
13876 when buffer != current_buffer anyway.
13877
138782008-03-20 Andreas Schwab <schwab@suse.de>
13879
13880 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
13881 as default.
13882
138832008-03-19 Jason Rumney <jasonr@gnu.org>
13884
13885 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
13886 (syms_of_w32fns): Initialize them.
13887 (HOURGLASS_ID): New constant.
13888 (x_window_to_frame): Don't check hourglass_window.
13889 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
13890 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
13891 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
13892 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
13893 Only change the cursor if hourglass is not active.
13894 (Fx_create_frame): Initialize frame's current_cursor.
13895 (hourglass_atimer): Remove.
13896 (hourglass_started): New function.
13897 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
13898 (show_hourglass): Adapt to w32, changing argument to frame.
13899
13900 * w32term.h (struct w32_output): Remove hourglass_window.
13901 Add current_cursor.
13902
13903 * eval.c (call_debugger, Fsignal):
13904 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
13905 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
13906 (Fexecute_extended_command, cancel_hourglass_unwind):
13907 * minibuf.c (read_minibuf):
13908 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
13909
139102008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
13911
13912 * window.c (run_funs): New fun.
13913 (run_window_configuration_change_hook): Use it to run the buffer-local
13914 and the global part of the hook.
13915
13916 * xdisp.c (format_mode_line_unwind_data): Add window argument.
13917 (unwind_format_mode_line): Restore selected window.
13918 (x_consider_frame_title, Fformat_mode_line): Set selected window.
13919
139202008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
13921
13922 * editfns.c (Fchar_equal): Check they are valid characters.
13923
13924 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
13925
139262008-03-17 Andreas Schwab <schwab@suse.de>
13927
13928 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
13929 against a charset.
13930
13931 * lisp.h (Fbuffer_list): Declare.
13932
139332008-03-17 Jan Djärv <jan.h.d@swipnet.se>
13934
13935 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
13936 handlebox_widget is != 0.
13937
139382008-03-16 Juri Linkov <juri@jurta.org>
13939
13940 * callint.c (Fcall_interactively): For interactive code letters
13941 'b' and 'B' put the buffer list into the list of default "future"
13942 values of the minibuffer.
13943
139442008-03-16 Andreas Schwab <schwab@suse.de>
13945
13946 * keyboard.c (read_key_sequence): Fix downcasing of letters with
13947 modifiers.
13948
13949 * regex.c (re_match_2_internal): Correct matching of a charset
13950 against latin-1 characters.
13951
139522008-03-16 Kenichi Handa <handa@m17n.org>
13953
13954 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
13955 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
13956 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
13957 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
13958 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
13959 CHAR_STRING_ADVANCE.
13960 (produce_chars): Fix for the case that the source and the
13961 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
13962 instead of CHAR_STRING_ADVANCE.
13963 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
13964 STRING_CHAR_ADVANCE.
13965
139662008-03-15 Andreas Schwab <schwab@suse.de>
13967
13968 * regex.c (re_match_2_internal): Correct matching of eight bit
13969 characters in unibyte strings.
13970
139712008-03-15 Martin Rudalics <rudalics@gmx.at>
13972
13973 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
13974 at end of range when it coincides with the end of the buffer.
13975
139762008-03-14 Eli Zaretskii <eliz@gnu.org>
13977
13978 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
13979
13980 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
13981
139822008-03-14 Jason Rumney <jasonr@gnu.org>
13983
13984 * editfns.c (initial_tz): New variable.
13985 (syms_of_editfns): Initialize it.
13986 (Fset_time_zone_rule): Set it when first called.
13987 Use it when TZSTRING is nil.
13988
13989 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
13990 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
13991 (monitor_from_point_fn, get_monitor_info_fn): New globals.
13992 (globals_of_w32fns): Initialize them.
13993 (compute_tip_xy): Use them to position tooltips.
13994
139952008-03-14 Glenn Morris <rgm@gnu.org>
13996
13997 * emacs.c (main): Revert previous change.
13998 (standard_args): Revert -internal-script back to -scriptload,
13999 and remove the long-option form.
14000
140012008-03-13 Glenn Morris <rgm@gnu.org>
14002
14003 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
14004 Remove option -enable-font-backend.
14005
140062008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
14007
14008 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
14009
140102008-03-11 Jan Djärv <jan.h.d@swipnet.se>
14011
14012 * xterm.c (x_connection_closed): For GTK: If this is the last
14013 terminal just exit without closing the display.
14014
140152008-03-11 Jason Rumney <jasonr@gnu.org>
14016
14017 * w32font.c (w32font_full_name): Use floor to round.
14018
140192008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
14020
14021 * sound.c (alsa_configure): Declare vol at beginning of block.
14022
14023 * fontset.c (Ffontset_info): Remove extra semicolon.
14024
140252008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
14026
14027 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
14028 size of resulting string.
14029
140302008-03-10 Jason Rumney <jasonr@gnu.org>
14031
14032 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
14033
140342008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14035
14036 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
14037 Don't pretend as if characters with display property haven't been
14038 consumed for string-replacing-string case.
14039
140402008-03-08 Kim F. Storm <storm@cua.dk>
14041
14042 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
14043 (get_next_display_element, next_element_from_string)
14044 (next_element_from_ellipsis, next_element_from_buffer): Use it.
14045
140462008-03-08 Andreas Schwab <schwab@suse.de>
14047
14048 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
14049
140502008-03-06 Jason Rumney <jasonr@gnu.org>
14051
14052 * w32font.c (w32_registry): Take font_type argument. Use ANSI
14053 when charset not specified. Only translate ANSI to unicode when
14054 font_type is truetype.
14055 (w32font_coverage_ok): New function.
14056 (add_font_entity_to_list): Use it to filter unsuitable fonts.
14057
140582008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
14059
14060 * lread.c (Fread_char): Resolve modifiers.
14061 (Fread_char_exclusive): Likewise.
14062
14063 * character.c (char_resolve_modifier_mask): New function.
14064 (char_string): Use char_resolve_modifier_mask.
14065 (Fchar_resolve_modifiers): New function.
14066 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
14067 function.
14068
140692008-03-04 Jason Rumney <jasonr@gnu.org>
14070
14071 * makefile.w32-in: Always include w32font.c in the build.
14072 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
14073
140742008-03-04 Andreas Schwab <schwab@suse.de>
14075
14076 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
14077 (versionclean): Likewise.
14078
140792008-03-04 Juanma Barranquero <lekktu@gmail.com>
14080
14081 * .cvsignore: Add oo.
14082
140832008-03-03 Andreas Schwab <schwab@suse.de>
14084
14085 * coding.c (decode_coding_object): Inhibit gap shrinking while
14086 decoding in place.
14087
140882008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
14089
14090 * w32term.c: Remove unused include "gnu.h".
14091 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
14092
14093 * gnu.h: Rename to ...
14094 * emacs-icon.h: ... this.
14095 * xterm.c: Use emacs-icon.h instead of gnu.h.
14096 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
14097
140982008-03-03 Juanma Barranquero <lekktu@gmail.com>
14099
14100 * w32font.c: Include math.h.
14101
141022008-03-03 Jason Rumney <jasonr@gnu.org>
14103
14104 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
14105 Compute options separately.
14106 (w32font_open_internal): Set glyph_idx before caching metrics.
14107
14108 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
14109 Define if system headers don't.
14110 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
14111 (w32font_encode_char): Don't declare here.
14112
14113 * w32font.c (Quniscribe, QCformat): New symbols.
14114 (syms_of_w32font): Define them.
14115 (w32font_has_char): Indicate uncertainty.
14116 (w32font_encode_char): Encode as glyph point. Make static.
14117 (recompute_cached_metrics): New function.
14118 (w32font_open_internal): Use it. Set font to use glyph points
14119 initially. Set format based on type of font.
14120 (w32font_text_extents, w32font_draw): Optionally use glyph points.
14121 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
14122 on it. Set format based on information available here.
14123 (add_font_entity_to_list): Identify backend based on opentype_only.
14124
141252008-03-02 Andreas Schwab <schwab@suse.de>
14126
14127 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
14128
14129 * coding.c (decode_coding_big5, produce_chars):
14130 Fix typos in last change.
14131
141322008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
14133
14134 * gnu.h: New icon.
14135
141362008-03-02 Kenichi Handa <handa@m17n.org>
14137
14138 * coding.c (decode_coding_utf_8): When eol-type of CODING is
14139 `dos', don't decode '\r' if that is the last in the source.
14140 (decode_coding_utf_16, decode_coding_emacs_mule)
14141 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14142 (decode_coding_raw_text, decode_coding_charset): Likewise.
14143 (produce_chars): Don't decode EOL here. Use EMACS_INT.
14144
141452008-03-01 Jason Rumney <jasonr@gnu.org>
14146
14147 * w32font.c (w32font_full_name): Report point size for scalable fonts.
14148
141492008-03-01 Kim F. Storm <storm@cua.dk>
14150
14151 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
14152
141532008-03-01 Jason Rumney <jasonr@gnu.org>
14154
14155 * w32font.c (w32font_full_name): New function.
14156 (w32font_open_internal): Use it.
14157
141582008-03-01 Kim F. Storm <storm@cua.dk>
14159
14160 * dispnew.c (line_draw_cost): Fix invalid glyph check.
14161
141622008-03-01 Jason Rumney <jasonr@gnu.org>
14163
14164 * font.c (font_unparse_fcname): Increase len when style is a symbol.
14165
141662008-03-01 Jan Djärv <jan.h.d@swipnet.se>
14167
14168 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
14169 xg_frame_resized when the event is for the edit widget.
14170
14171 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
14172
14173 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
14174 set_char_size.
14175 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
14176 operations on widgets here. Just set frame size if needed.
14177 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
14178 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
14179 (x_wm_set_size_hint): Set size hints on the edit widget only, not
14180 the whole frame.
14181 (xg_create_tool_bar): Move attachment of the tool bar to
14182 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
14183 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
14184
141852008-03-01 Jason Rumney <jasonr@gnu.org>
14186
14187 * w32fns.c (w32_msg_pump): Disable debug code.
14188
141892008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14190
14191 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
14192
141932008-02-29 Chong Yidong <cyd@stupidchicken.com>
14194
14195 * xdisp.c (next_overlay_string): Don't set
14196 overlay_strings_at_end_processed_p if we're currently reading from
14197 a display string.
14198
141992008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
14200
14201 * xdisp.c (get_overlay_strings_1): Fix typo.
14202
142032008-02-29 Chong Yidong <cyd@stupidchicken.com>
14204
14205 * xdisp.c (get_overlay_strings_1): Add missing argument type.
14206
142072008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
14208
14209 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
14210
14211 * xdisp.c (display_mode_element): Cancel the previous change.
14212 (decode_mode_spec): Likewise.
14213 (handle_auto_composed_prop): Don't make composition if it->string
14214 is a string.
14215
142162008-02-27 Kim F. Storm <storm@cua.dk>
14217
14218 * lisp.h (GLYPH): Change type from int to struct with separate char
14219 and face_id members.
14220 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
14221 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
14222 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
14223 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
14224 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
14225 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
14226 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
14227 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
14228 handle new Lisp glyph code encoding, either an integer or a cons.
14229
14230 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
14231 (GLYPH_ALIAS): Delete.
14232 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
14233 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
14234 (GLYPH_FROM_CHAR): Replace macro by ...
14235 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
14236
14237 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
14238 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
14239 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
14240 (GLYPH_INVALID_P): New macro.
14241 (spec_glyph_lookup_face): Update prototype.
14242
14243 * dispnew.c (line_draw_cost): Adapt to new glyph type.
14244 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
14245 new glyph code encoding.
14246 (spec_glyph_lookup_face): No return value; update passed glyph instead.
14247 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
14248
14249 * xdisp.c (get_next_display_element, next_element_from_display_vector):
14250 Adapt to new glyph type and new glyph code encoding.
14251
14252 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
14253
14254 * indent.c (current_column, current_column_1, Fmove_to_column)
14255 (compute_motion): Adapt to new glyph code encoding.
14256
14257 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
14258
142592008-02-27 Chong Yidong <cyd@stupidchicken.com>
14260
14261 * process.c (wait_reading_process_output): Check for window
14262 changes caused by timers.
14263 Suggested by Johan Bockgård.
14264
142652008-02-27 Glenn Morris <rgm@gnu.org>
14266
14267 * emacs.c (USAGE1): Add `--disable-font-backend'.
14268
142692008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
14270
14271 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
14272 is made to the buffer.
14273
142742008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
14275
14276 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
14277 (face_at_string_position):
14278 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
14279 (face_at_string_position):
14280 * xdisp.c (display_string, next_overlay_change):
14281 * buffer.h (overlays_at):
14282 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
14283 Update callers.
14284
142852008-02-26 Chong Yidong <cyd@stupidchicken.com>
14286
14287 * editfns.c (Fformat): Doc fix.
14288
142892008-02-26 Juanma Barranquero <lekktu@gmail.com>
14290
14291 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
14292 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
14293 (Ffont_otf_alternates, Fquery_font): Doc fixes.
14294
142952008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
14296
14297 * buffer.c (Fbuffer_swap_text): New function.
14298 (syms_of_buffer): Defsubr it.
14299
143002008-02-25 Chong Yidong <cyd@stupidchicken.com>
14301
14302 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
14303
143042008-02-25 Jason Rumney <jasonr@gnu.org>
14305
14306 * w32font.c (w32font_draw): Draw one character at a time when padding.
14307
143082008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
14309
14310 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
14311 Handle a nil arg. Use run_window_configuration_change_hook.
14312 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
14313 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
14314 Use run_window_configuration_change_hook.
14315
143162008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
14317
14318 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
14319 1-pixel width.
14320
143212008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
14322
14323 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
14324 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
14325 if the glyph in the font is zero pixel with.
14326
14327 * dispextern.h (struct glyph_string): New member padding_p.
14328
14329 * w32font.c (w32font_draw): Pay attention to s->padding_p.
14330
14331 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
14332
14333 * xfont.c (xfont_draw): Pay attention to s->padding_p.
14334
14335 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
14336
14337 * font.c: If the font driver doesn't have `shape' function, return Qnil.
14338
143392008-02-25 Jason Rumney <jasonr@gnu.org>
14340
14341 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
14342
143432008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
14344
14345 Allow fine-grained image-cache flushing.
14346 * dispextern.h (struct image): Add `dependencies' field.
14347 (clear_image_caches): Change arg to Lisp_Object.
14348 * image.c (make_image): Initialize `dependencies' field.
14349 (clear_image_cache): Change arg to allow fine-grained flushing.
14350 Perform the flush even if image-cache-eviction-delay is nil.
14351 (clear_image_caches): Change arg to Lisp_Object.
14352 (Fclear_image_cache): Expand meaning of the argument.
14353 (mark_image): Mark `dependencies' field.
14354 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
14355 (lface_hash): Use XHASH rather than XFASTINT.
14356 (face_at_buffer_position): Fix int -> EMACS_INT position.
14357 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
14358 (select_frame_for_redisplay): Remove code duplication.
14359 (redisplay_internal): Adapt arg to call to clear_image_caches.
14360
143612008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
14362
14363 * s/vms4-0.h:
14364 * s/vms4-2.h:
14365 * s/vms4-4.h:
14366 * s/vms5-5.h: Remove, unused.
14367
14368 * s/irix5-2.h:
14369 * s/irix6-0.h:
14370 * s/riscos5.h:
14371 * s/mach-bsd4-3.h:
14372 * m/mips4.h: Remove files for obsolete systems.
14373
14374 * Makefile.in:
14375 * filelock.c:
14376 * unexmips.c:
14377 * m/hp9000s300.h:
14378 * m/iris4d.h:
14379 * s/aix3-1.h:
14380 * s/hpux.h:
14381 * s/msdos.h:
14382 * s/usg5-0.h:
14383 * s/usg5-2-2.h:
14384 * s/usg5-2.h:
14385 * s/usg5-3.h: Remove references to obsolete variables.
14386
14387 * s/irix5-0.h: Remove, move all the contents ...
14388 * s/irix6-5.h: ... here. Simplify.
14389 * config.in: Regenerate.
14390
143912008-02-24 Jason Rumney <jasonr@gnu.org>
14392
14393 * w32term.c (x_draw_glyph_string_background): Clear the background
14394 manually when cleartype is in use.
14395 (x_draw_glyph_string_foreground): Draw text transparently when
14396 cleartype is in use.
14397
14398 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
14399 a font into it unless we have to.
14400
144012008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
14402
14403 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
14404 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
14405
144062008-02-18 Jason Rumney <jasonr@gnu.org>
14407
14408 * w32fns.c (Fw32_shell_execute): Encode parameters.
14409
144102008-02-09 Eli Zaretskii <eliz@gnu.org>
14411
14412 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
14413
144142008-02-05 Juanma Barranquero <lekktu@gmail.com>
14415
14416 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
14417
144182008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
14419
14420 * xterm.c (x_set_offset): Don't change the gravity if
14421 CHANGE_GRAVITY is -1.
14422
144232008-02-23 Chong Yidong <cyd@stupidchicken.com>
14424
14425 * fileio.c (auto_save_error_occurred): New var.
14426 (auto_save_error): Set it.
14427 (Fdo_auto_save): Don't overwrite the error message if an auto-save
14428 error occurred.
14429
144302008-02-23 Eli Zaretskii <eliz@gnu.org>
14431
14432 * w32.c (globals_of_w32): Add initializations for
14433 g_b_init_get_sid_sub_authority and
14434 g_b_init_get_sid_sub_authority_count.
14435
144362008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
14437
14438 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
14439 (font_parse_xlfd): Use them for sanity check.
14440 (Finternal_set_font_style_table): Make sure the table is bijective.
14441
14442 Consolidate the image_cache to the terminal struct.
14443 * termhooks.h (P_): Remove redundant def.
14444 (struct terminal): New field `image_cache'.
14445 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
14446 of FRAME_X_IMAGE_CACHE.
14447 * xterm.h (struct x_display_info): Remove image_cache field.
14448 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
14449 * w32term.h (struct w32_display_info): Remove image_cache field.
14450 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
14451 * macterm.h (struct mac_display_info): Remove image_cache field.
14452 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
14453 * xterm.c (x_term_init):
14454 * w32term.c (w32_term_init):
14455 * macterm.c (mac_term_init): Set the image_cache in the terminal.
14456 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
14457 Remove declarations.
14458 (clear_image_caches, mark_image_cache): New declarations.
14459 * xfaces.c (clear_face_cache):
14460 * xdisp.c (redisplay_internal): Use clear_image_caches.
14461 * image.c (clear_image_cache): Don't check that a frame is on
14462 a window-system before checking if it shares the same cache.
14463 (clear_image_caches): New function.
14464 (Fclear_image_cache): Use it.
14465 (mark_image): Move from allo.c.
14466 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
14467 * alloc.c (mark_image, mark_image_cache): Move to image.c.
14468 (mark_object): Don't call mark_image_cache for frames.
14469 (mark_terminals): Call mark_image_cache.
14470
14471 * lisp.h (Fdelete_terminal): Declare.
14472
14473 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
14474 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
14475 wrong_type_argument.
14476
144772008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
14478
14479 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
14480 malayalam.el, and tamil.el. Add sinhala.el.
14481
144822008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
14483
14484 * xterm.c (x_connection_closed): Consolidate identical tests.
14485 (x_delete_terminal): Don't crash if called via x_connection_closed.
14486
144872008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
14488
14489 * xdisp.c (decode_mode_spec): New arg string.
14490 (display_mode_element): Adjust for the above change.
14491
144922008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
14493
14494 * callint.c (Fcall_interactively): Use AREF.
14495
144962008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
14497
14498 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
14499
145002008-02-18 Jan Djärv <jan.h.d@swipnet.se>
14501
14502 * xfns.c (Fx_show_tip): Set string to " " if empty.
14503
145042008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
14505
14506 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
14507 with Qt.
14508
145092008-02-17 Kenichi Handa <handa@m17n.org>
14510
14511 * ftfont.c (ftfont_shape): Return Lispy number.
14512
14513 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
14514 for GCs.
14515 (Finternal_set_font_selection_order): Call font_update_sort_order
14516 only when enable_font_backend is set.
14517 (realize_x_face): Set face->font_info to that of default face only
14518 when enable_font_backend is set.
14519
14520 * xdisp.c (handle_composition_prop): Set it->c to the fist
14521 character of the composed region.
14522 (fill_composite_glyph_string): Set base_face->font_info to
14523 s->font_info. Get a face for ascii from base_face->ascii_face.
14524 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
14525 with a face already decided.
14526 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
14527 non-negative.
14528 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
14529 call font_prepare_composition unconditionally.
14530
14531 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
14532
14533 * xterm.h (struct x_display_info): New member font.
14534
14535 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
14536 (x_set_mouse_face_gc, x_new_font): Likewise.
14537 (x_term_init): Setup display_info->font.
14538 (x_delete_terminal): Free display_info->font.
14539
14540 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
14541
14542 * ftxfont.c (ftxfont_default_fid): Delete it.
14543 (ftxfont_open): Set xfont->fid to 0.
14544 (ftxfont_end_for_frame): Clear data specific to the frame and the
14545 font-driver.
14546
14547 * xftfont.c (xftfont_default_fid): Delete it.
14548 (xftfont_open): Set xfont->fid to 0.
14549
14550 * fontset.c (FONTSET_OBJLIST): New macro.
14551 (fontset_find_font): Update font-object list of the fontset.
14552 (free_realized_fontset): New function.
14553 (free_face_fontset): Call free_realized_fontset.
14554 (Ffont_info): Call font_close_object only when enable_font_backend
14555 is set.
14556
14557 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
14558 [HAVE_NTGUI]: Include w32term.h.
14559 [MAC_OS]: Include macterm.ch.
14560 (font_otf_ValueRecord): Use make_number.
14561 (font_finish_cache): Fix handling of reference count.
14562 (font_clear_cache): Update num_fonts.
14563 (font_open_entity): Update smallest_char_width and
14564 smallest_font_height of the frame.
14565 (font_close_object): Update num_fonts.
14566 (Fclear_font_cache): Fix finding the target cache data.
14567
145682008-02-16 Glenn Morris <rgm@gnu.org>
14569
14570 * fontset.c (Finternal_char_font): Fix compilation warning.
14571
145722008-02-16 Eli Zaretskii <eliz@gnu.org>
14573
14574 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
14575 instead of char arrays. Enlarge the size of array passed to
14576 get_token_information.
14577
14578 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
14579 warnings.
14580
145812008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
14582
14583 * .gdbinit: Don't set `args', it breaks gdb --args.
14584
145852008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
14586
14587 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
14588 within a narrowed buffer.
14589
145902008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
14591
14592 * coding.c (decode_coding_object, encode_coding_object):
14593 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
14594
145952008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
14596
14597 * coding.c (coding_set_destination): Use BEG_BYTE rather than
14598 hardcoding 1.
14599 (detect_coding_system):
14600 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
14601 (string_char_to_byte, string_byte_to_char, insert_from_gap):
14602 * insdel.c (insert_from_gap):
14603 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
14604 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
14605 (string_to_multibyte):
14606 * character.c (chars_in_text, multibyte_chars_in_text):
14607 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
14608
14609 * character.h (FETCH_STRING_CHAR_ADVANCE)
14610 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
14611 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
14612 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
14613
14614 * casefiddle.c (casify_region): Only call after-change and composition
14615 functions on the part of the region that was changed.
14616
14617 * keyboard.c (read_avail_input):
14618 * frame.c (Fdelete_frame): Call Fdelete_terminal.
14619
146202008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
14621
14622 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
14623 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
14624
146252008-02-11 Juanma Barranquero <lekktu@gmail.com>
14626
14627 * w32menu.c (push_submenu_start, push_submenu_end)
14628 (push_left_right_boundary, push_menu_pane, push_menu_item):
14629 * keyboard.c (read_key_sequence): Don't pass args with side effects
14630 to AREF, it fails when compiling with -DENABLE_CHECKING.
14631
146322008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
14633
14634 * Makefile.in (${lispsource}international/charprop.el):
14635 Delete this target.
14636
14637 * search.c (boyer_moore): Fix incorrect synching of the trunk and
14638 emacs-unicode-2.
14639
146402008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
14641
14642 * terminal.c (Fdelete_terminal): Clean up the `force' path.
14643
146442008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
14645
14646 * frame.c (Qnoelisp): New symbol.
14647 (syms_of_frame): Initialize it.
14648 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
14649 harmless Elisp code, from a strong `force' from x_connection_closed.
14650 * frame.h (Qnoelisp): Declare.
14651 * xterm.c (x_connection_closed): Pass `noelisp'.
14652
14653 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
14654 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
14655 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
14656 rather than `int' for the type of `type'.
14657
146582008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
14659
14660 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
14661
14662 * Makefile.in (GNUC): Remove support for gcc-1.x.
14663
146642008-02-10 Richard Stallman <rms@gnu.org>
14665
14666 * lisp.h (ASET): Use AREF, not ASLOT.
14667
146682008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
14669
14670 * lisp.h (ASET): Check bounds.
14671
146722008-02-10 Glenn Morris <rgm@gnu.org>
14673
14674 * buffer.c (mode-name): Doc fix.
14675
146762008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
14677
14678 * Makefile.in:
14679 * emacs.c:
14680 * gmalloc.c:
14681 * keyboard.c:
14682 * lisp.h:
14683 * m/ibm370aix.h:
14684 * process.c:
14685 * regex.c:
14686 * s/hpux.h:
14687 * sysdep.c:
14688 * sysselect.h:
14689 * systty.h:
14690 * unexec.c:
14691 * w32term.c:
14692 * xsmfns.c:
14693 * xterm.c: Remove code that deals with obsolete variables.
14694
14695 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
14696
14697 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
14698 nothing else needs it anymore.
14699
147002008-02-09 Eli Zaretskii <eliz@gnu.org>
14701
14702 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
14703 instead of unibyte_char_to_multibyte.
14704
147052008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
14706
14707 * s/gnu-linux.h: Remove commented out code.
14708
14709 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
14710
14711 * Makefile.in: Update what RMS says about using autoconf.
14712 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
14713 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
14714 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
14715 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
14716
147172008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
14718
14719 * keymap.c (Fkey_description): Move side effect outside of macro call.
14720
14721 * xfaces.c (Finternal_make_lisp_face):
14722 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
14723
14724 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
14725 (syms_of_fontset): Use ASET.
14726
14727 * fns.c (concat): Move side effect outside of macro call.
14728 (hash_clear): Use ASET.
14729
147302008-02-08 Richard Stallman <rms@gnu.org>
14731
14732 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
14733 If FORCE, and frame has a surrogate minibuffer for another frame,
14734 delete the other frame first.
14735
147362008-02-07 Timo Savola <timo.savola@iki.fi>
14737
14738 * xterm.c (x_detect_focus_change): Handle embed client message.
14739 (handle_one_xevent): Ditto.
14740 (handle_one_xevent): If embedded and we get a button press/release,
14741 request focus.
14742 (xembed_set_info, xembed_send_message): New functions.
14743 (x_make_frame_visible): Call xembed_set_info if embedded.
14744 (x_make_frame_invisible): Call xembed_set_info if embedded.
14745 (x_term_init): Initialize Xatom_XEMBED.
14746 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
14747 (x_iconify_frame): Ditto.
14748
14749 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
14750 (enum xembed_info, enum xembed_message, enum xembed_focus)
14751 (enum xembed_modifier, enum xembed_accelerator): New.
14752 (xembed_set_info, xembed_send_message): Declare.
14753 (FRAME_X_EMBEDDED_P): New.
14754
14755 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
14756 gtk_plug_new.
14757
14758 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
14759 window ID of a frame.
14760 (x_window): Reparent frame if embedded.
14761 (Fx_create_frame): Don't set border width if embedded.
14762
14763 * emacs.c (USAGE3): Add --parent-id.
14764 (standard_args): Ditto.
14765
147662008-02-07 Jan Djärv <jan.h.d@swipnet.se>
14767
14768 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
14769
147702008-02-07 Jim Meyering <meyering@redhat.com>
14771
14772 Use "do...while (0)", not "if (1)...else" in macro definitions.
14773 The latter provokes a warning from gcc about the empty else, when
14774 followed by ";". Also, without that trailing semicolon, it would
14775 silently swallow up any following statement.
14776 * syntax.h (SETUP_SYNTAX_TABLE)
14777 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
14778 * buffer.h (DECODE_POSITION): Likewise.
14779 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
14780 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
14781 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
14782 (FETCH_CHAR_ADVANCE): Likewise.
14783 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
14784
147852008-02-07 Jim Meyering <meyering@redhat.com>
14786
14787 * lread.c [lint]: Don't include <sys/inode.h>.
14788
147892008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
14790
14791 * xselect.c (x_handle_dnd_message):
14792 * xmenu.c (digest_single_submenu, xmenu_show):
14793 * xdisp.c (with_echo_area_buffer_unwind_data)
14794 (format_mode_line_unwind_data, unwind_format_mode_line)
14795 (display_menu_bar):
14796 * eval.c (Ffetch_bytecode):
14797 * doc.c (store_function_docstring):
14798 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
14799 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
14800 * buffer.c (add_overlay_mod_hooklist): Use ASET.
14801
148022008-02-07 Kenichi Handa <handa@m17n.org>
14803
14804 * ftxfont.c (ftxfont_open): Don't set
14805 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
14806
14807 * ftfont.c (ftfont_open): Fix previous change.
14808
148092008-02-06 Jason Rumney <jasonr@gnu.org>
14810
14811 * w32font.c (w32font_text_extents): Fill in lbearing metric.
14812 Use cached metrics for ASCII characters.
14813 (w32font_open_internal): Don't set font's owning_frame.
14814 Cache metrics for ASCII characters.
14815
14816 * w32font.h (struct w32font_info): Add ascii_metrics.
14817 Remove owning_frame.
14818
148192008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
14820
14821 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
14822 to negative value.
14823
14824 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
14825
14826 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
14827
14828 * charset.c (syms_of_charset): Set QCtest and Qeq.
14829
148302008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
14831
14832 * process.c (Fstart_process):
14833 * callproc.c (Fcall_process): Handle the case where
14834 Funhandled_file_name_directory returns nil.
14835
14836 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
14837 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
14838 * font.c (check_gstring): Use them and AREF to access the vector before
14839 we know it's really a gstring.
14840 (Ffont_shape_text): Fix typo.
14841 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
14842
14843 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
14844 Declare.
14845
14846 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
14847
148482008-02-05 Jason Rumney <jasonr@gnu.org>
14849
14850 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
14851 Set smallest_font_height and smallest_char_width in display info.
14852
148532008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
14854
14855 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
14856
148572008-02-05 Miles Bader <miles@gnu.org>
14858
14859 * xfaces.c (get_lface_attributes, merge_named_face)
14860 (lookup_named_face, lookup_derived_face, realize_named_face):
14861 Revert 2008-02-01 change by cyd@stupidchicken.com.
14862
148632008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
14864
14865 * fontset.c (Ffontset_info): Handle the case of inhibitting the
14866 fallback fonts.
14867 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
14868
148692008-02-04 Jason Rumney <jasonr@gnu.org>
14870
14871 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
14872 set full_name.
14873 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
14874
148752008-02-03 Jason Rumney <jasonr@gnu.org>
14876
14877 * makefile.w32-in (OBJ1): Include font.o here.
14878 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
14879
148802008-02-02 Jason Rumney <jasonr@gnu.org>
14881
14882 * makefile.w32-in (temacs): Bump EMHEAP to 21.
14883
148842008-02-01 Jason Rumney <jasonr@gnu.org>
14885
14886 * s/cygwin.h: Define VIRT_ADDR_VARIES.
14887
14888 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
14889
148902008-02-01 Andreas Schwab <schwab@suse.de>
14891
14892 * Makefile.in (shortlisp, lisp): Update for rename of
14893 ../lisp/language/myanmar.el.
14894
148952008-02-01 Chong Yidong <cyd@stupidchicken.com>
14896
14897 * xfaces.c (get_lface_attributes): Delete function.
14898 (merge_named_face, lookup_named_face, lookup_derived_face)
14899 (realize_named_face): Call lface_from_face_name directly, and use
14900 the fact that merge_face_vectors does not alter its FROM argument.
14901
149022008-02-01 Jason Rumney <jasonr@gnu.org>
14903
14904 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
14905 input in the default locale. Handle non-Unicode multibyte input.
14906
149072008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14908
14909 * fontset.c (reorder_font_vector): Exclude nil elements from the
14910 font group. Don't try multiple fonts.
14911 (fontset_font): Adjust for the above change.
14912 (Finternal_char_font): Return nil if the found font doesn't
14913 contain the character ch.
14914
14915 * Makefile.in (lisp, shortlisp): Add cham.el.
14916
149172008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14918
14919 * font.h (FONTP): Make it return 1 also for a font-object.
14920
14921 * .gdbinit (xfontset): New function.
14922
14923 * font.c (font_find_for_lface): Check if the character C is
14924 supported or not only for the first font.
14925
14926 * fontset.c (reorder_font_vector): Fix typo.
14927 (fontset_find_font): Don't add a font-spec specifying a script.
14928 Use 0 (not Qt) for the indication of empty font-group. Change the
14929 format of RFONT-DEF. Return Qt if no font in the font-group
14930 support the character.
14931 (fontset_font): Adjust for the above change. If no font was
14932 found the character, remember that.
14933 (face_for_char): Adjust for the change of RFONT-DEF.
14934 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
14935 no font for the target.
14936 (Finternal_char_font): Adjust for the change of RFONT-DEF.
14937
149382008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14939
14940 * font.c (font_load_for_face): Handle the case that the font in
14941 face->lface is a string.
14942
149432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14944
14945 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
14946
149472008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14948
14949 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
14950 Fix previous change. If the frame is not on a window system,
14951 signal an error.
14952
149532008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14954
14955 * coding.c (decode_coding_object, encode_coding_object): Adjust
14956 marker positions after conversion.
14957
14958 * lisp.h (struct Lisp_Marker): New member need_adjustment.
14959
149602008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14961
14962 * font.c (font_find_for_lface): Fix the handling of the return
14963 value of font_has_char.
14964 (Ffont_shape_text): Fix previous change.
14965
14966 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
14967 (fontset_ref_and_range): Delete it.
14968 (fontset_find_font): Call char_table_ref_and_range instead of
14969 FONTSET_REF_AND_RANGE.
14970 (make_fontset): Don't setup font groups of Latin here.
14971 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
14972 (new_fontset_from_font): Make the specified font the default for
14973 all Latin characters.
14974
149752008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14976
14977 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
14978 is on a window system before accessing the fontset of the frame.
14979
149802008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14981
14982 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
14983
14984 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
14985 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
14986
14987 * font.c (Ffont_shape_text): If the font driver doesn't have a
14988 shaper function, make zero-width glyphs to have at least one-pixel
14989 width. Fix setting of `to' field of glyphs.
14990
149912008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14992
14993 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
14994 glyphs.
14995
14996 * font.h (struct font_driver): Improve docstring of member `shape'.
14997
149982008-02-01 Kenichi Handa <handa@m17n.org>
14999
15000 * composite.c (syms_of_composite): Fix docstring of
15001 auto-composition-function.
15002
15003 * font.h (LGLYPH_SIZE): New macro.
15004
15005 * font.c (Ffont_fill_gstring): Stop filling when a character not
15006 supported by the font is found.
15007 (Ffont_shape_text): When a shape callback function returns nil,
15008 try at most two more times with larger gstring.
15009 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
15010
15011 * xdisp.c (handle_auto_composed_prop): Change the argument to
15012 auto-composition-function.
15013
15014 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
15015 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
15016 Lispy glyph and store it in the lgstring.
15017
15018 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
15019
15020 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
15021
150222008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15023
15024 * font.c (Ffont_shape_text): Avoid unnecessary composition.
15025
15026 * fontset.c (Vfont_encoding_charset_alist): New variable.
15027 (syms_of_fontset): DEFVAR it.
15028 (reorder_font_vector, fontset_find_font): Optimize for the case of
15029 no need of reordering.
15030 (face_for_char): Map the charset property by
15031 Vfont_encoding_charset_alist.
15032
150332008-02-01 Jason Rumney <jasonr@gnu.org>
15034
15035 * w32font.c (logfonts_match): Don't check adstyle here.
15036 (font_matches_spec): Check here against physical font instead.
15037 (add_font_entity_to_list): Avoid some substitutions.
15038
15039 * font.c (font_parse_fcname): Default weight and slant to normal.
15040 (font_score): Prefer normal fonts if weight or slant unspecified.
15041 (font_score) [WINDOWSNT]: Scale weight difference down to closer
15042 match freetype scores.
15043
150442008-02-01 Jason Rumney <jasonr@gnu.org>
15045
15046 * w32font.c (w32font_text_extents): Don't use the frame stored in the
15047 font, as it may have been deleted.
15048 (w32_enumfont_pattern_entity): Map generic family to adstyle using
15049 most common hyphenless variation.
15050 (logfonts_match): Check generic family.
15051 (font_matches_spec): Don't check generic family here.
15052 (fill_in_logfont): Set generic family based on adstyle.
15053
15054 * w32font.h (w32font_get_cache): Update declaration.
15055
150562008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15057
15058 * ftfont.c (ftfont_get_cache): Adjust the argument type.
15059
15060 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
15061 If none of the new drivers are available, call font_update_drivers
15062 with the old drivers.
15063
15064 * w32font.c (w32font_get_cache): Adjust the argument type.
15065
15066 * xfont.c (xfont_get_cache): Adjust the argument type.
15067
15068 * font.h (struct font_driver): Change argument type of get_cache.
15069
15070 * xftfont.c (xftfont_start_for_frame): Delete prototype.
15071
15072 * font.c (Ffont_get): Fix arguments to Fassoc.
15073 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
15074 (font_clear_cache): New function.
15075 (font_list_entities, font_matching_entity): Use font_get_cache.
15076 (font_update_drivers): Call font_clear_cache when finishing a driver.
15077
15078 * fontset.c (fontset_find_font): Fix previous change.
15079
150802008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15081
15082 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
15083 dpyinfo->font_table.
15084 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
15085 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
15086
15087 * font.c (font_at): Handle the case that the arg C is negative.
15088 Handle the unibyte case.
15089 (Ffont_at): Call font_at with the arg C -1.
15090
15091 * xdisp.c (handle_auto_composed_prop): Don't get a character at
15092 the position here, and call font_at with the arg C -1.
15093 Don't check the range of the existing composition at the point.
15094
150952008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15096
15097 * fontset.c (fontset_add): New args charset_id and family.
15098 Change caller.
15099 (load_font_get_repertory, fontset_find_font): Assume that
15100 font_spec is always a font-spec object.
15101 (Fset_fontset_font): Always store a font-spec object in a fontset.
15102
15103 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
15104 instead of get_property_and_range.
15105
151062008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15107
15108 * xftfont.c (struct xftfont_info): Delete the member ft_face.
15109 (xftfont_open): Don't keep locking face.
15110 (xftfont_close): Don't unlock face.
15111 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
15112
15113 * fontset.c (fontset_find_font): Don't prefer a font of
15114 supplementary charset.
15115
151162008-02-01 Kenichi Handa <handa@m17n.org>
15117
15118 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
15119 script, langsys_tag to langsys, new member script.
15120 (OTF_TAG_STR): Terminate by '\0'.
15121 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
15122 listing to the script specified in that property. Fix arg to
15123 OTF_check_features.
15124
151252008-02-01 Jason Rumney <jasonr@gnu.org>
15126
15127 * w32font.h: New file.
15128
15129 * w32font.c: Include it.
15130 (struct w32font_info): Add owning_frame field. Move to w32font.h.
15131 (w32font_open): Set owning_frame.
15132 (w32font_text_extents): Use owning_frame.
15133 (struct font_callback_data): Add opentype_only field.
15134 (add_font_entity_to_list): Use it to filter fonts.
15135 Don't check against full name.
15136 (w32font_list_internal): New function.
15137 (w32font_list): Use it.
15138 (w32font_match_internal): New function.
15139 (w32font_match): Use it.
15140 (w32font_open_internal): New function.
15141 (w32font_open): Use it.
15142 (w32font_get_cache, w32font_close, w32font_has_char)
15143 (w32font_encode_char, w32font_text_extents, w32font_draw):
15144 Make non-static.
15145
15146 * makefile.w32-in (w32font.o): Depend on w32font.h.
15147
151482008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15149
15150 * charset.c (Fdefine_charset_internal): Record a supplementary
15151 charset at the tail of Vcharset_order_list.
15152
15153 * font.c (Ffont_shape_text): Fix the return value.
15154
15155 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
15156
15157 * xdisp.c (handle_auto_composed_prop): Fix previous change.
15158
151592008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15160
15161 * ftfont.c (struct OpenTypeSpec): New struct.
15162 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
15163 (ftfont_get_open_type_spec): New function.
15164 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
15165
15166 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
15167
151682008-02-01 Jason Rumney <jasonr@gnu.org>
15169
15170 * w32font.c (add_font_entity_to_list): Compare only the beginning
15171 of full name.
15172
151732008-02-01 Kenichi Handa <handa@m17n.org>
15174
15175 * xdisp.c (handle_auto_composed_prop): Simplify the code.
15176 Never return HANDLED_RECOMPUTE_PROPS.
15177
151782008-02-01 Kenichi Handa <handa@m17n.org>
15179
15180 * font.c (font_gstring_produce): Delete it.
15181
15182 * composite.h (COMPOSITION_METHOD):
15183 Handle COMPOSITION_WITH_GLYPH_STRING.
15184
151852008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15186
15187 * xfont.c (Qx): Delete.
15188 (syms_of_xfont): Don't initialize Qx.
15189
15190 * composite.h (enum composition_method):
15191 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
15192
151932008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15194
15195 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
15196 (choose_face_font): Accept new form of font-spec.
15197
15198 * frame.h (font_driver_list): Declare it unconditionally.
15199 (struct frame): Define members font_driver_list and font_data_list
15200 unconditionally.
15201
15202 * fontset.c: Include "font.h" unconditionally.
15203 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
15204 (Fset_fontset_font): Accept a font-spec object.
15205
15206 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
15207 PIXEL_SIZE part a wild card.
15208
15209 * dispextern.h (struct glyph_string): Define members clip and
15210 num_clips unconditionally.
15211 (struct face): Define members font_info and extra unconditionally.
15212
15213 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
15214 ftfont_info only when HAVE_LIBOTF is defined.
15215
152162008-02-01 Andreas Schwab <schwab@suse.de>
15217
15218 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
15219 and end.
15220
152212008-02-01 Jason Rumney <jasonr@gnu.org>
15222
15223 * w32font.c (w32font_driver): Add new fields.
15224
152252008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15226
15227 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
15228 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
15229 (LIBES): Add @M17N_FLT_CFLAGS@.
15230
15231 * composite.c (compose_text): Don't treat the new style
15232 composition specially.
15233
15234 * emacs.c (main): Call syms_of_font unconditionally.
15235
15236 * font.h (FONT_ENTITY_NOT_LOADABLE)
15237 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
15238 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
15239 (struct font_driver): New member shape.
15240 (font_registry_charsets): Extern it.
15241 (font_find_for_lface, font_prepare_composition): Adjust prototype.
15242 (font_otf_capability, font_drive_otf): Delete their externs.
15243
15244 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
15245 (font_charset_alist, font_registry_charsets): Move from xfont.c
15246 and rename.
15247 (font_prop_validate_otf): New function.
15248 (font_property_table): Register it for QCotf.
15249 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
15250 (font_drive_otf): Delete.
15251 (font_prepare_composition): New arg F. Adjust for the change of
15252 lispy gstring.
15253 (font_find_for_lface): New arg C.
15254 (font_load_for_face): Adjust for the change of font_find_for_lface.
15255 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
15256 lispy gstring.
15257 (Ffont_shape_text): New function.
15258 (Fopen_font): If the font size is not given, use 12-pixel.
15259 (Ffont_at): New arg STRING.
15260 (syms_of_font): Initalize font_charset_alist.
15261 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
15262 conditionally.
15263
15264 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
15265 fonts of the same font-spec. Change the format of RFONT-DEF.
15266 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
15267 Adjust for the change of RFONT-DEF.
15268 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
15269
15270 * ftfont.h: New file.
15271
15272 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
15273 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
15274 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
15275 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
15276 font_otf_capability and font_drive_otf, set ftfont_shape.
15277 (ftfont_list): Adjust for the change of :otf property value.
15278 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
15279 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
15280 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
15281 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
15282 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
15283 (otf_gstring, gstring, m17n_flt_initialized): New variables.
15284
15285 * w32term.c (x_draw_composite_glyph_string_foreground):
15286 Adjust for the change of lispy gstring.
15287
15288 * xdisp.c (handle_composition_prop): Adjust for the change of
15289 lispy gstring. Call a function for auto-composition with the
15290 third arg it->window.
15291 (fill_composite_glyph_string): Adjust for the change of lispy string.
15292 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
15293
15294 * xfaces.c (set_font_frame_param): Adjust for the change of
15295 font_find_for_lface.
15296
15297 * xfont.c (x_font_charset_alist): Move to font.c and rename.
15298 (xfont_registry_charsets): Likewise. Change caller.
15299 (syms_of_xfont): Don't handle x_font_charset_alist.
15300
15301 * xftfont.c: Include "ftfont.h".
15302 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
15303 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
15304 (xftfont_close) [HAVE_LIBOTF]: Close otf.
15305 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
15306 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
15307 Set xftfont_driver.shape to xftfont_shape.
15308
15309 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
15310 the change of lispy gstring.
15311
153122008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15313
15314 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
15315
153162008-02-01 Jason Rumney <jasonr@gnu.org>
15317
15318 * w32font.c (w32font_draw): Fill background manually.
15319
153202008-02-01 Jason Rumney <jasonr@gnu.org>
15321
15322 * font.c (Qfontp): Remove unused symbol.
15323 (QCantialias): New symbol.
15324 (syms_of_font): Define it.
15325 (font_property_table): Set a validator for QCantialias.
15326
15327 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
15328 Define if not already.
15329 (QCfamily): Share with xfaces.c.
15330 (Qstandard, Qsubpixel, Qnatural): New symbols.
15331 (syms_of_w32font): Define them. Don't define QCfamily here.
15332 (w32_antialias_type, lispy_antialias_type): New functions.
15333 (w32_enumfont_pattern_entity): New arg requested_font.
15334 Set antialias parameter if non-default was requested.
15335 (fill_in_logfont): Fill in lfQuality if :antialias specified.
15336
153372008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15338
15339 * lread.c (read1): Undo the previous change.
15340
153412008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
15342
15343 * frame.c (Fdelete_frame): Call font_update_drivers only when
15344 USE_FONT_BACKEND is defined.
15345
153462008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15347
15348 * font.h (struct font_bitmap): New member bits_per_pixel.
15349 (struct font_driver): New members start_for_frame and end_for_frame.
15350 (struct font_data_list): New struct.
15351 (font_put_frame_data, font_get_frame_data): Extern them.
15352
15353 * frame.h (struct frame): New member font_data_list.
15354
15355 * font.c (font_update_drivers): Call driver->start_for_frame and
15356 driver->end_for_frame at proper timings.
15357 (font_put_frame_data, font_get_frame_data): New functions.
15358 (Ffont_spec): Add usage in the docstring.
15359
15360 * frame.c (make_frame): Initialize f->font_data_list to NULL.
15361 (Fdelete_frame): Call font_update_drivers.
15362
15363 * xftfont.c (struct xftface_info): Delete the member xft_draw.
15364 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
15365 (xftfont_get_xft_draw): New function.
15366 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
15367 (xftfont_end_for_frame): New function.
15368 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
15369
15370 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
15371 Change argument. Cache GCs in the per-frame data.
15372 (struct ftxfont_frame_data): New struct.
15373 (ftxfont_draw_bitmap): New arg gc_fore and flush.
15374 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
15375 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
15376 (ftxfont_end_for_frame): New function.
15377 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
15378
15379 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
15380
153812008-02-01 Kenichi Handa <handa@m17n.org>
15382
15383 * xselect.c (Vselection_coding_system)
15384 (Vnext_selection_coding_system): Delete them.
15385 (syms_of_xselect): Don't declare selection-coding-system and
15386 next-selection-coding-system. They are declared in select.el.
15387
153882008-02-01 Jason Rumney <jasonr@gnu.org>
15389
15390 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
15391
15392 * w32fns.c: Include imm.h.
15393 (get_composition_string_fn, get_ime_context_fn): New optional
15394 system functions.
15395 (globals_of_w32fns): Load them from imm32.dll.
15396 (ignore_ime_char): New flag.
15397 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
15398 WM_IME_ENDCOMPOSITION messages.
15399
15400 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
15401 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
15402
154032008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15404
15405 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
15406 (READCHAR_REPORT_MULTIBYTE): New macro.
15407 (readchar): New 2nd arg MULTIBYTE.
15408 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
15409 Make symbol's name multibyte according to the multibyteness of the
15410 source.
15411
154122008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15413
15414 * xfaces.c (face_for_overlay_string): Call lookup_face with
15415 correct arguments (fix of synching with the trunk).
15416
154172008-02-01 Kenichi Handa <handa@m17n.org>
15418
15419 * font.c (font_prop_validate_symbol, font_prop_validate_style)
15420 (font_prop_validate_non_neg, font_prop_validate_spacing):
15421 Delete argument prop_index.
15422 (font_property_table): Change arguments to validater. Change Callers.
15423 (font_lispy_object): Delete.
15424 (font_at): Use font_find_object instead fo font_lispy_object.
15425
154262008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15427
15428 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
15429 and file names.
15430
154312008-02-01 Jason Rumney <jasonr@gnu.org>
15432
15433 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
15434 (font_matches_spec): Remove debug output.
15435 (add_font_entity_to_list): Avoid using substituted fonts.
15436
154372008-02-01 Jason Rumney <jasonr@gnu.org>
15438
15439 * doc.c (Fsnarf_documentation):
15440 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
15441
154422008-02-01 Miles Bader <miles@gnu.org>
15443
15444 * dispextern.h (struct glyph_row): Only define "clip" field if
15445 HAVE_WINDOW_SYSTEM is defined.
15446
154472008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
15448
15449 Fix up multi-tty merge.
15450
15451 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
15452 and indentation.
15453
15454 * xfaces.c (free_realized_face, clear_face_gcs):
15455 Include font_done_for_face in the input_blocked section, just in case.
15456
15457 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
15458 (get_char_face_and_encoding): Undo last change and remove the *other*
15459 duplicate definition (i.e. keep the one that's better scoped and that
15460 includes code for the font-backend).
15461
15462 * terminal.c (create_terminal): Default keyboard_coding to
15463 `no-conversion' and terminal_coding to `undecided'.
15464
15465 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
15466
15467 * fontset.c (free_realized_fontsets): Check that the table entry does
15468 contain a fontset before trying to compare it to `base'.
15469
15470 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
15471 syms_of_charset, and syms_of_coding earlier because init_window_once
15472 now needs Vcoding_system_hash_table to be setup.
15473
15474 * coding.h (default_buffer_file_coding): Remove.
15475
15476 * coding.c (default_buffer_file_coding): Remove.
15477 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
15478 than ->symbol, and use the terminal-local coding system.
15479 (syms_of_coding): Don't setup the coding-systems that are not
15480 terminal-local.
15481 (Fdefine_coding_system_internal): Use XCAR/XCDR.
15482
15483 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
15484 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
15485
15486 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
15487 in chartab.c and were re-added here by mistake.
15488 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
15489
15490 * doc.c (Fsnarf_documentation):
15491 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
15492 src to etc.
15493
15494 * ChangeLog.10: Add mistakenly removed entry.
15495
154962008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
15497
15498 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
15499
155002008-02-01 Miles Bader <miles@gnu.org>
15501
15502 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
15503 Add extra args to FACE_FOR_CHAR.
15504
155052008-02-01 Kenichi Handa <handa@m17n.org>
15506
15507 * keymap.c (where_is_internal_1): If key is a cons, store the copy
15508 in sequence.
15509
15510 * chartab.c (map_sub_char_table, map_char_table): If the range
15511 contains just one character, call the function with that character
15512 even if the depth is not 3.
15513
155142008-02-01 Jason Rumney <jasonr@gnu.org>
15515
15516 * w32font.c (w32font_text_extents): Calculate metrics for the
15517 whole string.
15518
155192008-02-01 Jason Rumney <jasonr@gnu.org>
15520
15521 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
15522
155232008-02-01 Jason Rumney <jasonr@gnu.org>
15524
15525 * w32term.c (x_set_glyph_string_clipping): Use
15526 get_glyph_string_clip_rects.
15527 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
15528 Adjust for the change of struct glyph_string.
15529
15530 * w32font.c (w32font_draw): Do clipping here.
15531
155322008-02-01 Kenichi Handa <handa@m17n.org>
15533
15534 * xftfont.c (xftfont_draw): Adjust for the change of struct
15535 glyph_string.
15536
15537 * xterm.c (x_set_glyph_string_clipping): Use
15538 get_glyph_string_clip_rects.
15539 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
15540 Adjust for the change of struct glyph_string.
15541
15542 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
15543 the resulting clip(s}.
15544 (expose_overlaps): Add arg r. Change callers. Set it to
15545 row->clip temporarily.
15546 (expose_window): Redraw rows overlapping the exposed area.
15547
15548 * dispextern.h (struct glyph_row): New member clip.
15549 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
15550 clip_height, new member clip, and num_clips.
15551
155522008-02-01 Kenichi Handa <handa@m17n.org>
15553
15554 * data.c (Fchar_or_string_p): Fix docstring.
15555
155562008-02-01 Kenichi Handa <handa@m17n.org>
15557
15558 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
15559 create a temporary XftDraw object.
15560
155612008-02-01 Kenichi Handa <handa@m17n.org>
15562
15563 * font.c (Ffontp): Fix docstring.
15564
15565 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
15566 strong evidence of ISO-2022.
15567
155682008-02-01 Kenichi Handa <handa@m17n.org>
15569
15570 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
15571 SYNTAX_ENTRY_FOLLOW_PARENT.
15572
155732008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
15574
15575 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
15576 its type.
15577 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
15578 Update to the new type of weak_hash_tables and next_weak.
15579
15580 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
15581 a plain C pointer to Lisp_Hash_Table.
15582
15583 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
15584 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
15585 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
15586 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
15587 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
15588 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
15589 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
15590 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
15591 (GC_EQ): Remove since they've been identical to their non-GC_
15592 alter-egos ever since the markbit was eradicated.
15593
15594 * alloc.c:
15595 * buffer.c:
15596 * buffer.h:
15597 * data.c:
15598 * fileio.c:
15599 * filelock.c:
15600 * fns.c:
15601 * frame.h:
15602 * lisp.h:
15603 * macterm.c:
15604 * print.c:
15605 * process.c:
15606 * w32fns.c:
15607 * w32menu.c:
15608 * w32term.c:
15609 * xfns.c:
15610 * xmenu.c:
15611 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
15612
156132008-02-01 Kenichi Handa <handa@m17n.org>
15614
15615 * chartab.c (map_sub_char_table): Make it work for the top-level
15616 char-table. Fix handling of parent char-table.
15617 (map_char_table): Adjust for the above change.
15618
156192008-02-01 Jason Rumney <jasonr@gnu.org>
15620
15621 * w32font.c (Qgdi): Rename from Qw32.
15622
156232008-02-01 Jason Rumney <jasonr@gnu.org>
15624
15625 * w32bdf.c (get_quoted_string): Make function static.
15626
156272008-02-01 Kenichi Handa <handa@m17n.org>
15628
15629 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
15630 bigger ascent and descent than those of the font, use them as
15631 font's ascent and descent.
15632
156332008-02-01 Kenichi Handa <handa@m17n.org>
15634
15635 * Makefile.in (${lispsource}international/charprop.el): Move this
15636 target within "#ifdef HAVE_UNIDATA" and "#endif".
15637
156382008-02-01 Kenichi Handa <handa@m17n.org>
15639
15640 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
15641 (shortlisp): Add ../lisp/language/tai-viet.el.
15642
156432008-02-01 Ulrich Mueller <ulm@gentoo.org>
15644
15645 * Makefile.in (${lispsource}international/charprop.el): Depend on
15646 temacs${EXEEXT}.
15647
156482008-02-01 Jason Rumney <jasonr@gnu.org>
15649
15650 * w32font.c (w32font_close): Delete the GDI font object.
15651
15652 * w32menu.c: Include character.h.
15653
15654 * w32proc.c: Likewise.
15655
15656 * w32select.c: Likewise.
15657
15658 * makefile.w32-in (w32proc.o): Depend on character.h.
15659
156602008-02-01 Jason Rumney <jasonr@gnu.org>
15661
15662 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
15663
15664 * w32menu.c (syms_of_w32menu): Likewise.
15665
15666 * w32proc.c (syms_of_ntproc): Likewise.
15667
15668 * w32select.c (syms_of_w32select): Likewise.
15669
15670 * w32term.c (syms_of_w32term): Likewise.
15671
156722008-02-01 Jason Rumney <jasonr@gnu.org>
15673
15674 * w32font.c (w32font_draw): Delete brush after using it.
15675
156762008-02-01 Jason Rumney <jasonr@gnu.org>
15677
15678 * w32font.c (w32font_open): Don't set font_idx.
15679 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
15680 to font settings.
15681 (w32font_draw): Fill background explicitly.
15682
156832008-02-01 Jason Rumney <jasonr@gnu.org>
15684
15685 * w32term.c (w32_initialize): Don't call w32font_initialize.
15686
15687 * w32font.c (w32font_info): Remove subranges.
15688 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
15689 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
15690 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
15691 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
15692 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
15693 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
15694 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
15695 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
15696 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
15697 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
15698 New symbols.
15699 (font_callback_data): New struct.
15700 (w32font_list, w32font_match): Use it.
15701 (w32font_open): Don't populate subranges.
15702 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
15703 (w32font_encode_char): Always return unicode code-point as-is.
15704 (w32font_text_extents): Supply a transformation matrix to
15705 GetGlyphOutline. Never look up by glyph index. Avoid looping
15706 twice. Use unicode version of GetTexExtentPoint32 instead of
15707 glyph index version.
15708 (set_fonts_frame): Remove.
15709 (w32_enumfont_pattern_entity): Add frame parameter, use it to
15710 set frame parameter. Use backward compatible fake foundries.
15711 Save generic family in extra slot under QCfamily. Make width slot
15712 constant. Save QCspacing value. Save list of scripts instead of
15713 binary subranges.
15714 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
15715 (add_font_entity_to_list): Use font_callback_data struct. Filter
15716 unwanted fonts.
15717 (add_one_font_entity_to_list): Use font_callback_data struct.
15718 (w32_registry): Default to iso10646_1.
15719 (fill_in_logfont): Use dpi from extra slot. Don't bother with
15720 string font registries. Don't fill in font name if it is a generic
15721 family name, fill family instead. Use spacing, family and script
15722 extra info to fill pitch, family and charset fields.
15723 (list_all_matching_fonts): Use font_callback_data struct.
15724 (unicode_range_for_char): Remove.
15725 (font_supported_scripts): New function.
15726 (w32font_initialize): Remove.
15727 (syms_of_w32font): Update which symbols are defined.
15728
157292008-02-01 Jason Rumney <jasonr@gnu.org>
15730
15731 * font.c (font_pixel_size): Reverse assq_no_quit args.
15732
15733 * w32term.h (FONT_WIDTH): Report max width, not average.
15734 (FONT_MAX_WIDTH): Remove.
15735 (FONT_AVG_WIDTH): New macro.
15736
15737 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
15738 redefinition of FONT_WIDTH.
15739
15740 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
15741 (w32_cache_char_metrics): Use FONT_WIDTH.
15742
15743 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
15744
157452008-02-01 Jason Rumney <jasonr@gnu.org>
15746
15747 * w32font.c (w32font_open): Make lfHeight negative.
15748
15749 * w32fns.c (x_default_font_parameter): Use new style font name.
15750 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
15751
157522008-02-01 Jason Rumney <jasonr@gnu.org>
15753
15754 * w32font.c (QCsubranges): New symbol.
15755 (w32font_open, w32font_has_char): Get subranges from subproperty
15756 of extra.
15757 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
15758 (syms_of_w32font): Define :subranges symbol.
15759
15760 * font.c (font_put_extra): Expose externally.
15761
15762 * font.h (font_put_extra): Move declaration from font.c.
15763
15764 * font.c (Ffont_get): Use font driver to determine otf capability.
15765 (adjust_anchor): Check if driver defines anchor_point before using.
15766
15767 * w32font.c (w32font_open): Handle size, height and pixel_size better.
15768 (w32font_draw): Use options.
15769 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
15770 Fix detection of truetype fonts.
15771 (registry_to_w32_charset): Handle charsets other than iso8859-1
15772 expressed as lisp symbols.
15773 (w32_registry): Express charset as lisp symbol.
15774 (fill_in_logfont): Reverse pixel and point height logic.
15775 Don't set width here. Set quality to default.
15776
15777 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
15778 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
15779
15780 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
15781 Remove redundant loop and allocation.
15782
15783 * makefile.w32-in (font.o, w32font.o): New objects.
15784 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
15785 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
15786
15787 * xdisp.c (fill_composite_glyph_string): Make the first arg to
15788 STORE_XCHARB a valid l-value.
15789
15790 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
15791 calculations for non-Truetype fonts.
15792 (x_draw_glyph_string): Sync with xterm.c.
15793 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
15794 Remove redundant code.
15795 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
15796
15797 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
15798 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
15799
15800 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
15801 (x_to_w32_charset, w32_to_x_charset): Expose externally.
15802
15803 * w32font.c: New file for w32 font backend.
15804
158052008-02-01 Kenichi Handa <handa@m17n.org>
15806
15807 * term.c: Don't include "buffer.h" twice.
15808
158092008-02-01 Kenichi Handa <handa@m17n.org>
15810
15811 * character.c (Funibyte_string): New function.
15812 (syms_of_character): Defsubr it.
15813
158142008-02-01 Jason Rumney <jasonr@gnu.org>
15815
15816 * w32term.c [USE_FONT_BACKEND]:
15817 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
15818 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
15819 (x_draw_glyph_string, x_draw_glyph_string_foreground)
15820 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
15821 (x_free_frame_resources): Sync with xterm.c.
15822
158232008-02-01 Andreas Schwab <schwab@suse.de>
15824
15825 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
15826 char-table size.
15827
158282008-02-01 Kenichi Handa <handa@m17n.org>
15829
15830 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
15831
158322008-02-01 Kenichi Handa <handa@m17n.org>
15833
15834 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
15835 font_otf_gpos, add font_drive_otf.
15836
15837 * fontset.c (fontset_find_font): Pay attention to font size
15838 specified for a font.
15839 (reorder_font_vector): Check contents of font_def.
15840
15841 * font.c (struct otf_list): Delete it.
15842 (otf_list): Make it a lisp variable.
15843 (otf_open): Use lispy otf_list.
15844 (generate_otf_features): Rename from parse_gsub_gpos_spec.
15845 (check_otf_features): New function.
15846 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
15847 New functions.
15848 (font_drive_otf): New function merging font_otf_gsub and
15849 font_otf_gpos.
15850 (font_open_for_lface): New arg spec. Change argument order.
15851 (font_load_for_face): Adjust for the change of font_open_for_lface.
15852 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
15853 Ffont_otf_gpos.
15854 (syms_of_font): Staticpro otf_list. Delete defsubr of
15855 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
15856
15857 * xfaces.c (set_font_frame_param): Adjust for the change of
15858 font_open_for_lface.
15859
15860 * font.h (font_open_for_lface): Adjust prototype.
15861 (struct font_driver): Delete members otf_gsub and otf_gpos, add
15862 member otf_drive.
15863 (font_otf_gsub, font_otf_gpos): Delete externs.
15864 (font_drive_otf): Extern it.
15865
158662008-02-01 Kenichi Handa <handa@m17n.org>
15867
15868 * font.c (font_at): If the window W is not on a window system,
15869 return Qnil.
15870
15871 * coding.c (produce_chars, encode_coding): Don't call
15872 insert_from_gap if no characters to produce.
15873
158742008-02-01 Kenichi Handa <handa@m17n.org>
15875
15876 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
15877 Fclear_face_cache.
15878
15879 * xfaces.c (face_for_font): Check also face->font==font->font.font.
15880
158812008-02-01 Miles Bader <miles@gnu.org>
15882
15883 * emacs.c (main): Change default value of `enable_font_backend' to 1.
15884 Parse "--disable-font-backend" option.
15885 (standard_args): Add "--disable-font-backend" option.
15886
158872008-02-01 Kenichi Handa <handa@m17n.org>
15888
15889 * fontset.c (fontset_find_font): New function.
15890 (fontset_font): Use fontset_find_font.
15891 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
15892 Register the specified font for all Latin characters.
15893 (new_fontset_from_font): Register the specified font for all Latin
15894 characters.
15895 (dump_fontset): For a realized fontset, include the base fontset
15896 name in the returned vector.
15897
158982008-02-01 Kenichi Handa <handa@m17n.org>
15899
15900 * character.h (CHAR_STRING): Cast C to unsigned on calling
15901 char_string.
15902
15903 * character.c (char_string): Type of arg C changed to unsigned.
15904 Signal an error if C is an invalid character code.
15905
15906 * editfns.c (general_insert_function, Fchar_to_string):
15907 Use CHARACTERP, not INTEGERP.
15908
159092008-02-01 Kenichi Handa <handa@m17n.org>
15910
15911 * character.h (MIN_MULTIBYTE_LEADING_CODE)
15912 (MAX_MULTIBYTE_LEADING_CODE): New macros.
15913
15914 * regex.c (analyse_first): Fix for multibyte characters in "case
15915 charset:" and "case categoryspec:".
15916
159172008-02-01 Andreas Schwab <schwab@suse.de>
15918
15919 * Makefile.in (LIBES): Move standard libraries to the end.
15920
159212008-02-01 Kenichi Handa <handa@m17n.org>
15922
15923 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
15924 nonzero, don't shrink the buffer nextb.
15925
15926 * buffer.h (struct buffer_text): New member inhibit_shrinking.
15927
15928 * coding.c (coding_alloc_by_making_gap): New arg offset.
15929 (alloc_destination): Call coding_alloc_by_making_gap with the arg
15930 offset.
15931 (decode_coding_iso_2022): Update coding->safe_charsets.
15932 (decode_coding_gap): Temporarily set
15933 current_buffer->text->inhibit_shrinking to 1.
15934
159352008-02-01 Kenichi Handa <handa@m17n.org>
15936
15937 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
15938 indexing into elements of s->cmp and s->char2b.
15939
159402008-02-01 Juanma Barranquero <lekktu@gmail.com>
15941
15942 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
15943
159442008-02-01 Kenichi Handa <handa@m17n.org>
15945
15946 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
15947 target_multibyte instead of multibyte.
15948 (re_match_2_internal): Call bcmp_translate with target_multibyte.
15949 (bcmp_translate): Change the argument name from multibyte to
15950 target_multibyte.
15951
159522008-02-01 Kenichi Handa <handa@m17n.org>
15953
15954 These changes are to compile a regexp into a pattern that can be
15955 used both for multibyte and unibyte targets.
15956
15957 * Makefile.in (search.o): Depend on charset.h.
15958
15959 * character.c (multibyte_char_to_unibyte_safe): New function.
15960
15961 * search.c: Include "charset.h".
15962 (compile_pattern_1): Delete argument multibyte. Don't set
15963 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
15964 (compile_pattern): Don't compare cp->buf.target_multibyte.
15965 Compare cp->buf.charset_unibyte.
15966 (compile_pattern): Set cp->buf.target_multibyte.
15967
15968 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
15969
15970 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
15971
15972 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
15973 multibyte. Change callers.
15974 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
15975 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
15976 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
15977 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
15978 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
15979 (regex_compile): Make the compiled pattern usable both for
15980 multibyte and unibyte targets.
15981 (analyse_first): Make the fastmap usable both for multibyte and
15982 unibyte targets.
15983 (TRANSLATE_VIA_MULTIBYTE): Delete.
15984 (re_match_2_internal): Pay attention to the case that the
15985 multibyteness of bufp and target may be different.
15986
159872008-02-01 Kenichi Handa <handa@m17n.org>
15988
15989 * xdisp.c (x_produce_glyphs): When a font is not found, make the
15990 empty box occupy at least one column width.
15991
159922008-02-01 Miles Bader <miles@gnu.org>
15993
15994 * Makefile.in: Remove redundant HAVE_XFT clause.
15995
159962008-02-01 Kenichi Handa <handa@m17n.org>
15997
15998 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
15999
160002008-02-01 Kenichi Handa <handa@m17n.org>
16001
16002 * fontset.c (Finternal_char_font): Fix for the case of POSITION
16003 being nil.
16004
160052008-02-01 Kenichi Handa <handa@m17n.org>
16006
16007 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
16008
160092008-02-01 Kenichi Handa <handa@m17n.org>
16010
16011 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
16012
160132008-02-01 Kenichi Handa <handa@m17n.org>
16014
16015 * search.c (simple_search): Fix previous change.
16016
160172008-02-01 Kenichi Handa <handa@m17n.org>
16018
16019 * xftfont.c (ftfont_font_format): Extern declaration.
16020
16021 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
16022
16023 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
16024 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
16025
16026 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
16027 (ftfont_font_format): Fix previous change.
16028
16029 * font.h (Ffont_xlfd_name): EXFUN it.
16030
16031 * font.c (font_parse_xlfd): Fix the array size of `f'.
16032 (register_font_driver): Use EQ to compare driver->type.
16033
16034 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
16035 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
16036 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
16037
160382008-02-01 Kenichi Handa <handa@m17n.org>
16039
16040 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
16041 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
16042
160432008-02-01 Kenichi Handa <handa@m17n.org>
16044
16045 * xfont.c (xfont_open): Set font->format.
16046
16047 * xftfont.c (xftfont_open): Set font->format.
16048
16049 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
16050 (ftfont_list): Include FC_FONTFORMAT in FcObject.
16051 (ftfont_open): Set font->format.
16052 (ftfont_font_format): New function.
16053
16054 * font.h (struct font): New member format.
16055
16056 * font.c (Qopentype): New variable.
16057 (syms_of_font): Defsym it.
16058 (Fquery_font): Change the format of the last element of the return
16059 value.
16060
160612008-02-01 Kenichi Handa <handa@m17n.org>
16062
16063 * xfns.c (xic_create_xfontset): Try the default fontset name as a
16064 last resort.
16065
160662008-02-01 Kenichi Handa <handa@m17n.org>
16067
16068 * coding.c (detect_coding_charset): Fix detection of multi-byte
16069 charset.
16070
160712008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
16072
16073 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
16074
160752008-02-01 Kenichi Handa <handa@m17n.org>
16076
16077 * xdisp.c (get_next_display_element): Set it->face_id for the
16078 first component of a composition.
16079 (x_produce_glyphs): Check if the font is changed or not for composition.
16080
160812008-02-01 Kenichi Handa <handa@m17n.org>
16082
16083 * fontset.c (Qlatin): New variable.
16084 (syms_of_fontset): Define it as a lisp symbol.
16085 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
16086
160872008-02-01 Kenichi Handa <handa@m17n.org>
16088
16089 * font.c (font_unparse_fcname): Pay attention to the case that
16090 some of font property is a null string.
16091
160922008-02-01 Kenichi Handa <handa@m17n.org>
16093
16094 * term.c: Include "composite.h".
16095 (encode_terminal_code): Output all components of composition.
16096 Check the size of encode_terminal_src.
16097 (produce_glyphs): For composition, call produce_composite_glyph.
16098 (append_composite_glyph, produce_composite_glyph): New functions.
16099
16100 * xdisp.c (x_produce_glyphs): In handling composition, if a font
16101 is not found, get font_info from the current ascii face.
16102
161032008-02-01 Kenichi Handa <handa@m17n.org>
16104
16105 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
16106 buffer-file-name to Qnil before calling insert_from_buffer.
16107
16108 * font.c (font_unparse_fcname): Pay attention to the case that
16109 foundry is a null string.
16110
161112008-02-01 Kenichi Handa <handa@m17n.org>
16112
16113 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
16114
16115 * font.c (Qunicode_sip): New variable.
16116 (syms_of_font): Declare it as a Lisp symbol.
16117
16118 * font.h (Qunicode_sip): Extern it.
16119
161202008-02-01 Kenichi Handa <handa@m17n.org>
16121
16122 * composite.c (get_composition_id): Pay attention to TAB component.
16123
16124 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
16125 TAB. Adjust for the change of s->char2b which always points to
16126 the first element of allocated memory.
16127
16128 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
16129
16130 * xdisp.c (handle_composition_prop): Set it->c to the first
16131 non-TAB component.
16132 (fill_composite_glyph_string): Change argument.
16133 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
16134 (x_produce_glyphs): Fix handling of left/right padding.
16135
161362008-02-01 Kenichi Handa <handa@m17n.org>
16137
16138 * coding.c (detect_coding_system): Fix for handling off
16139 inhibit_iso_escape_detection. Fix for the case that no coding
16140 system is defined for a specific coding category.
16141
161422008-02-01 Kenichi Handa <handa@m17n.org>
16143
16144 * font.c (font_matching_entity): Delete unused local var.
16145
16146 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
16147 opening a font.
16148
16149 * fileio.c (Finsert_file_contents): On recovering a file, assume
16150 Unix-like eol.
16151 (choose_write_coding_system): On auto-saving a file, force
16152 Unix-like eol.
16153
16154 * coding.c (setup_coding_system): Fix setting of
16155 coding->common_flags based on eol_type.
16156 (coding_inherit_eol_type): If PARENT is not nil, be sure to
16157 inherit from it.
16158
161592008-02-01 Kenichi Handa <handa@m17n.org>
16160
16161 * alloc.c (NSTATICS): Increas to 0x600.
16162
161632008-02-01 Kenichi Handa <handa@m17n.org>
16164
16165 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
16166 (ftfont_list): Don't check :name property.
16167 (ftfont_match): New function.
16168 (ftfont_pattern_entity): If the pattern doesn't contain
16169 FC_SPACING, don't assume FC_MONO.
16170
16171 * font.h (struct font_driver): New member `match'.
16172 (font_update_drivers): Adjust prototype.
16173
16174 * font.c (font_parse_fcname, font_parse_name): Don't change :name
16175 property of FONT.
16176 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
16177 them unconditionally.
16178 (font_matching_entity): New function.
16179 (font_open_by_name): Try font_matching_entity if exact match is
16180 not found.
16181 (font_update_drivers): Delete the arg FONT. Return a list of
16182 actually used backends. Don't free faces, font caches here.
16183 Don't store data in frame parameters. Don't call x_set_font.
16184 (Ffont_spec): Store :name property as is.
16185 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
16186 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
16187 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
16188 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
16189 Call font->driver->otf_gsub instead of font_otf_gsub.
16190
16191 * frame.c (x_set_font_backend): Do more works that were done in
16192 font_update_drivers before.
16193
16194 * xfont.c (xfont_match): New function.
16195 (xfont_driver): Set xfont_driver.match to xfont_match.
16196 (xfont_draw): Set font in GC if necessary.
16197
16198 * ftxfont.c (ftxfont_match): New function.
16199 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
16200
16201 * xftfont.c (xftfont_match): New function.
16202 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
16203
162042008-02-01 Kenichi Handa <handa@m17n.org>
16205
16206 * font.h (struct font): New member scalable.
16207 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
16208 (font_otf_gsub): Adjust prototype.
16209
16210 * font.c (font_otf_capability): Fix handling of the default langsys.
16211 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
16212 Check the contents of SPEC.
16213 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
16214 (check_gstring): New function.
16215 (REPLACEMENT_CHARACTER): New macro.
16216 (font_otf_gsub): New arg alternate_subst. Be sure to set all
16217 glyph codes of GSTRING.
16218 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
16219 (font_prepare_composition): Set cmp->glyph_len.
16220 (font_open_entity): Set font->scalable.
16221 (Ffont_get): Handle :otf property.
16222 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
16223 functions.
16224 (Fquery_font): Use font->font.full_name.
16225 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
16226 Sfont_otf_alternates.
16227
16228 * ftfont.c (ftfont_open): Set font->font.full_name and
16229 font->font.name properly. Fix calculation of font->font.height
16230 and font->min_width.
16231
16232 * ftxfont.c (ftxfont_create_gcs): New function.
16233 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
16234 (ftxfont_draw_backgrond): Fix filling region.
16235 (ftxfont_default_fid): New function.
16236 (ftxfont_open): Set xfont->fid to the return value of
16237 ftxfont_default_fid.
16238 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
16239 (ftxfont_done_face): Free only GCs that are created by
16240 ftxfont_create_gcs.
16241 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
16242
16243 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
16244 Clip to src->width, etc (not src->clip_XXX).
16245
16246 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
16247 FontBackend frame parameter.
16248
162492008-02-01 Kenichi Handa <handa@m17n.org>
16250
16251 * font.h (struct font_driver_list): New member `on'.
16252 (Fclear_font_cache): EXFUN it.
16253 (font_update_drivers): Extern it.
16254
16255 * font.c (font_unparse_fcname): Fix typo (swidth->width).
16256 (font_list_entities): Check driver_list->on.
16257 (register_font_driver): Initalize `on' member to 0.
16258 (font_update_drivers): New function.
16259 (Fclear_font_cache): Check driver_list->on.
16260
16261 * frame.h (Qfont_backend): Extern it.
16262 (x_set_font_backend): Extern it.
16263
16264 * frame.c (Qfont_backend): New variable.
16265 (frame_parms): New element for font-backend.
16266 (x_set_font_backend): New function.
16267
16268 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
16269 FontBackend frame parameter.
16270 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
16271 x_set_font_backend.
16272
16273 * xfont.c (xfont_list): Don't try listing by :name property if the
16274 name is not for XLFD.
16275
162762008-02-01 Kenichi Handa <handa@m17n.org>
16277
16278 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
16279 (LGLYPH_SET_TO): New macros.
16280 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
16281 element of G is vector or not.
16282 (font_at): Extern it.
16283
16284 * font.c: Include window.h.
16285 (font_lispy_object): New function.
16286 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
16287 end of valid glyph.
16288 (font_close_object): Fix getting (struct font *).
16289 (font_at): New function.
16290 (Ffont_get): If FONT is a font-object, get entity from it.
16291 (Ffont_make_gstring): Initialize elements of glyphs with nil.
16292 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
16293 range check.
16294 (Ffont_at): New function.
16295 (syms_of_font): Defsubr Sfont_at.
16296
16297 * xdisp.c (it_props): Move the entry for Qauto_composed to just
16298 before the entry for Qcomposition.
16299 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
16300 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
16301 the font in gstring.
16302 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
16303 LGLYPH_FORM (g) to detect the end of valid glyph.
16304 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
16305 we are composing with gstring.
16306
16307 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
16308 Check if adjustment is vector or not.
16309
16310 * Makefile.in (font.o): Make it depends on window.h.
16311
163122008-02-01 Kenichi Handa <handa@m17n.org>
16313
16314 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
16315 adjustment is vector or not.
16316
163172008-02-01 Miles Bader <miles@gnu.org>
16318
16319 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
16320
163212008-02-01 Kenichi Handa <handa@m17n.org>
16322
16323 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
16324 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
16325 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
16326
16327 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
16328 (DEVICE_DELTA): Fix typo.
16329 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
16330 LGLYPH format.
16331
16332 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
16333 the change of LGLYPH format.
16334
163352008-02-01 Kenichi Handa <handa@m17n.org>
16336
16337 * ftfont.c (ftfont_list): Fix typo.
16338 (ftfont_build_basic_charsets): Don't include letters with diacritics.
16339
163402008-02-01 Jan Djärv <jan.h.d@swipnet.se>
16341
16342 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
16343
16344 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
16345 xftface_info is non-NULL.
16346
163472008-02-01 Jan Djärv <jan.h.d@swipnet.se>
16348
16349 * ftfont.c (ftfont_list): Move misplaced #endif.
16350
163512008-02-01 Kenichi Handa <handa@m17n.org>
16352
16353 * ftfont.c (ftfont_list): Pay attention to the case that
16354 FC_CAPABILITY is not defined.
16355
163562008-02-01 Kenichi Handa <handa@m17n.org>
16357
16358 * xftfont.c (xftfont_open): Set charset related members to -1.
16359
16360 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
16361 QCname.
16362 (ftfont_open): Set charset related members to -1.
16363
16364 * fontset.c (Votf_script_alist): New variable.
16365 (syms_of_fontset): Initialize it.
16366 (fontset_font): Delete unused variable.
16367
16368 * fontset.h (Votf_script_alist): Extern it.
16369
16370 * font.c (font_find_for_lface): Optimize code.
16371
16372 * font.h (font_close_object, font_merge_old_spec): Extern them.
16373
163742008-02-01 Kenichi Handa <handa@m17n.org>
16375
16376 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
16377 (syms_of_font): Initialize them.
16378 (font_pixel_size): Allow float value in dpi.
16379 (font_prop_validate_type): Delete.
16380 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
16381 Change caller.
16382 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
16383 (font_prop_validate_extra): Delete.
16384 (font_prop_validate_spacing): New function.
16385 (font_property_table): Add elements for all known properties.
16386 (get_font_prop_index): Rename from check_font_prop_name. New
16387 argument FROM. Change caller.
16388 (font_prop_validate): Validate all known properties.
16389 (font_put_extra): Delete argument force. Change caller.
16390 (font_expand_wildcards): Make it static. Fix the way of shrinking
16391 the possible range.
16392 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
16393 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
16394 Change caller.
16395 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
16396 (font_parse_fcname): Delete argument merge. Fix parsing of point
16397 size. Don't validate properties values here. Change caller.
16398 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
16399 (font_open_by_name): Delete unused variable.
16400 (Ffont_spec): Likewise. Validate property values.
16401 (Ffont_match_p): New function.
16402
16403 * font.h (QCscalable): Extern it.
16404 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
16405
16406 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
16407
16408 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
16409 (xfont_list_pattern): New function.
16410 (xfont_list): Use xfont_list_pattern.
16411
164122008-02-01 Kenichi Handa <handa@m17n.org>
16413
16414 * font.h (Flist_fonts): EXFUN it.
16415
164162008-02-01 Jason Rumney <jasonr@gnu.org>
16417
16418 * w32term.c (w32_initialize): Add back smoothing_type and
16419 smoothing_enabled definitions.
16420
164212008-02-01 Kenichi Handa <handa@m17n.org>
16422
16423 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
16424 s->face->font on determining underline position.
16425
164262008-02-01 Kenichi Handa <handa@m17n.org>
16427
16428 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
16429 (font_has_char): Accept font-object too.
16430 (font_find_for_lface): Try at first with a size specified in face.
16431
164322008-02-01 Kenichi Handa <handa@m17n.org>
16433
16434 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
16435 font_open_by_name.
16436
164372008-02-01 Kenichi Handa <handa@m17n.org>
16438
16439 * font.h (QCspacing, QCdpi): Extern them.
16440 (enum font_spacing): New enum.
16441 (FONT_PIXEL_SIZE_QUANTUM): New macro.
16442
16443 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
16444 (QCspacing, QCdpi): New variables.
16445 (syms_of_font): Initialize them.
16446 (font_pixel_size): New function.
16447 (font_put_extra): New function.
16448 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
16449 in FONT_EXTRA.
16450 (font_parse_fcname): Handle enumerated values (e.g. bold).
16451 Fix handling font size. Add QCname property that contains only
16452 unknown properties.
16453 (font_score): Change argument. Change caller. Pay attention to
16454 FONT_PIXEL_SIZE_QUANTUM.
16455 (font_sort_entites, font_list_entities, font_find_for_lface)
16456 (font_open_for_lface, font_open_by_name): Fix handling of font size.
16457 (Ffont_spec): Add QCname property that contains only unknown properties.
16458
16459 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
16460 include weight in listing pattern, instead check weight of each
16461 listed font. Don't include scalable in pattern. Pay attention to
16462 FONT_PIXEL_SIZE_QUANTUM.
16463
164642008-02-01 Kenichi Handa <handa@m17n.org>
16465
16466 * font.c (font_parse_fcname): Fix parsing of point-size.
16467 (font_unparse_fcname): Produce symbolic names for style properties.
16468 (font_list_entities): Handle float size correctly.
16469 (font_open_by_name): Prefer `normal' property values if the name
16470 doesn't specify them.
16471
16472 * fontset.c (Finternal_char_font): Use font_get_name, not
16473 Ffont_xlfd_name.
16474
16475 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
16476 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
16477 pattern. Don't force scalable.
16478
16479 * xftfont.c (xftfont_open): For generating a name, start from
16480 96-byte buffer.
16481
164822008-02-01 Jan Djärv <jan.h.d@swipnet.se>
16483
16484 * frame.h (x_new_fontset2): Fix prototype.
16485
164862008-02-01 Kenichi Handa <handa@m17n.org>
16487
16488 * font.h (struct font_driver): Delete member parse_name.
16489 (font_match_p, font_get_spec, font_parse_fcname)
16490 (font_unparse_fcname): Extern them.
16491 (font_get_name): Adjust prototype.
16492
16493 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
16494 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
16495 (font_expand_wildcards): Fix handling ENCODING field. Avoid
16496 unnecessary checks for weight, slant, and swidth.
16497 (font_parse_fcname): New function.
16498 (font_unparse_fcname): New function.
16499 (font_parse_name): New function.
16500 (font_match_p): New function.
16501 (font_get_name): Change return value to Lisp string.
16502 (font_get_spec): New function.
16503 (Qunspecified, Qignore_defface): Don't extern them.
16504 (font_find_for_lface): Assume that LFACE is fully specified.
16505 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
16506 object, use it for FACE.
16507 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
16508 driver->parse_name.
16509 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
16510
16511 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
16512 prototype.
16513
16514 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
16515 argument F. Don't call Fnew_fontset. Instead, directly call
16516 make_fontset.
16517
16518 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
16519
16520 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
16521 of x_new_fontset2.
16522
16523 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
16524 (Qsans__serif): New variables.
16525 (ftfont_generic_family_list): New variable.
16526 (syms_of_ftfont): Initialize the above variables.
16527 (ftfont_pattern_entity): Delete argument NAME.
16528 (ftfont_list_generic_family): New function.
16529 (ftfont_parse_name): Delete this function.
16530 (ftfont_list): Try generic family only when FcFontList found no font.
16531 (ftfont_list_family): Fix args to FcObjectSetBuild.
16532
16533 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
16534 object in attrs[LFACE_FONT_INDEX].
16535 (set_lface_from_font_name): Cancel all changes for font-backend.
16536 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
16537 function.
16538 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
16539 font object in QCfont attribute.
16540 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
16541 (realize_default_face) [USE_FONT_BACKEND]: Call
16542 set_lface_from_font_and_fontset.
16543
16544 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
16545 "fixed", and signal error here if no suitable font was found.
16546
16547 * xfont.c (xfont_parse_name): Delete this function.
16548
16549 * xftfont.c (xftfont_open): Change coding style of error
16550 handling. Generate fontconfig's fontname pattern.
16551
16552 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
16553 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
16554
16555 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
16556 Both args FONTSET and FONT_OBJECT must be existing ones.
16557
165582008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16559
16560 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
16561
165622008-02-01 Kenichi Handa <handa@m17n.org>
16563
16564 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
16565
16566 * font.h (struct font): Fix typo.
16567
16568 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
16569 XLFD_XXX_INDEX.
16570 (enum xlfd_field_mask): New enum.
16571 (intern_font_field): Changed argument. Change caller. If digits
16572 are followed by non-digits, return a symbol.
16573 (font_expand_wildcards): New function.
16574 (font_parse_xlfd): Fix wildcard handling.
16575 (Ffont_spec): If :name is specified, reflect the info in the other
16576 properties.
16577
16578 * ftfont.c (ftfont_pattern_entity): Fix typo.
16579 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
16580 locale.
16581
165822008-02-01 Kenichi Handa <handa@m17n.org>
16583
16584 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
16585
16586 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
16587 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
16588 registry doesn't specify encoding part.
16589 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
16590 (font_open_by_name): At first try parsing the name.
16591 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
16592 as Lisp symbols.
16593
16594 * fontset.c (reorder_font_vector): Pay attention to the case that
16595 the 3rd element of font_def is nil.
16596 (fontset_font): For the default fontset, append one more fontset
16597 elements for a script-based font specification. Don't add script
16598 attribute on finding a font.
16599 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
16600 font name.
16601 (fontset_ascii_font): If a font can't be opened, return nil.
16602
16603 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
16604 (ftfont_pattern_entity): New function.
16605 (ftfont_get_cache): Assume that freetype_font_cache is already
16606 initialized.
16607 (ftfont_list): Handle the case that a file is specified in font
16608 name. Use ftfont_pattern_entity to generate entities.
16609 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
16610 (syms_of_ftfont): Initialize freetype_font_cache.
16611
16612 * xftfont.c (xftfont_open): Make the font name fontconfig's
16613 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
16614 (xftfont_close): Free font->font.name if not NULL.
16615
16616 * xfont.c (xfont_list): If script is specified for a font, return
16617 null_vector.
16618 (xfont_list_family): Declare argument type.
16619
16620 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
16621 name, set LFACE_FONT (lface) to nil.
16622
16623 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
16624 return Qnil.
16625
166262008-02-01 Kenichi Handa <handa@m17n.org>
16627
16628 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
16629 (standard_args): Add "-enable-font-backend".
16630
166312008-02-01 Kenichi Handa <handa@m17n.org>
16632
16633 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
16634 (struct xftdraw_list, xftdraw_list): Delete them.
16635 (register_xftdraw, check_xftdraw): Delete them.
16636 (xftfont_prepare_face): Don't call register_xftdraw.
16637 (xftfont_done_face): Don't call check_xftdraw.
16638 (xftfont_draw): Get background color only when with_background is
16639 nonzero.
16640
16641 * xfont.c (xfont_encode_char): Fix calculation of char2b.
16642
166432008-02-01 Kenichi Handa <handa@m17n.org>
16644
16645 These changes are for the new font handling codes.
16646
16647 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
16648 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
16649 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
16650 (FONTSRC, FONTOBJ): New variables.
16651 (obj): Add $(FONTOBJ).
16652 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
16653 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
16654 @LIBOTF_LIBS@.
16655 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
16656 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
16657
16658 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
16659
16660 * character.h (Vscript_representative_chars): Extern it.
16661
16662 * character.c (Vscript_representative_chars): New variable.
16663 (syms_of_character): Declare it as a Lisp variable.
16664
16665 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
16666 enable_font_backend is nonzero, accept the composition method
16667 COMPOSITION_WITH_GLYPH_STRING.
16668
16669 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
16670 enumeration COMPOSITION_WITH_GLYPH_STRING.
16671
16672 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
16673 members clip_x, clip_y, clip_width, and clip_height.
16674 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
16675
16676 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
16677 --enable-font-backend. Call syms_of_font.
16678
16679 * fns.c (assoc_no_quit): New function.
16680
16681 * fontset.h (FONT_INFO_FROM_FACE): New macro.
16682 (face_for_font, new_fontset_from_font)
16683 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
16684
16685 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
16686 (fontset_font, fontset_ascii, face_for_char)
16687 (make_fontset_for_ascii_face, Ffont_info)
16688 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
16689 is nonzero, use font-backend mechanism.
16690 (find_font_encoding): Make it non-static.
16691 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
16692 New functions.
16693
16694 * frame.h (struct frame): New members resx and resy.
16695 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
16696 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
16697
16698 * frame.c [USE_FONT_BACKEND]: Include "font.h".
16699 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
16700
16701 * lisp.h (assoc_no_quit): Extern it.
16702
16703 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
16704 Through out the file, use FONT_INFO_FROM_FACE instead of
16705 FONT_INFO_FROM_ID, use get_per_char_metric instead of
16706 rif->per_char_metric.
16707 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
16708 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
16709 (get_glyph_face_and_encoding, fill_composite_glyph_string)
16710 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
16711 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
16712 nonzero, use font-backend mechanism.
16713 (get_per_char_metric): New function.
16714
16715 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
16716 (set_lface_from_font_name)
16717 (set_font_frame_param, free_realized_face)
16718 (prepare_face_for_display, clear_face_gcs)
16719 (Finternal_set_font_selection_order, realize_x_face)
16720 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
16721 font-backend mechanism.
16722 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
16723 (load_face_font) [USE_FONT_BACKEND]: Abort.
16724 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
16725 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
16726
16727 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
16728 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
16729 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
16730 nonzero, register all available font drivers. Call
16731 x_default_font_parameter for deciding a font.
16732 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
16733
16734 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
16735 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
16736 (x_set_glyph_string_clipping_exactly)
16737 (x_compute_glyph_string_overhangs)
16738 (x_draw_glyph_string_foreground)
16739 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
16740 (x_free_frame_resources) [USE_FONT_BACKEND]: If
16741 enable_font_backend is nonzero, use font-backend mechanism.
16742 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
16743
167442008-02-01 Kenichi Handa <handa@m17n.org>
16745
16746 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
16747 system_eol_type.
16748 (syms_of_coding): Initialize system_eol_type.
16749
16750 * process.c (Fset_process_coding_system): Inherit system's eol
16751 format if necessary.
16752
167532008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16754
16755 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
16756
167572008-02-01 Kenichi Handa <handa@m17n.org>
16758
16759 * coding.c (decode_eol): Pay attention to buffer relocation in
16760 del_range_2.
16761 (decode_coding): Call decode_eol before restoring undo_list.
16762
167632008-02-01 Kenichi Handa <handa@m17n.org>
16764
16765 * charset.c (Fdefine_charset_internal): Fix setting of
16766 emacs_mule_bytes.
16767
167682008-02-01 Kenichi Handa <handa@m17n.org>
16769
16770 * keyboard.c (read_char): Check if C is a character or not before
16771 looking up Vkeyboard_translate_table.
16772
167732008-02-01 Kenichi Handa <handa@m17n.org>
16774
16775 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
16776 condition to terminate the loop.
16777
167782008-02-01 Kenichi Handa <handa@m17n.org>
16779
16780 * coding.c (produce_composition): Compare charbuf[i] instead of
16781 args[i] against 0.
16782 (Fterminal_coding_system): Use EQ to compare Lisp objects.
16783
167842008-02-01 Kenichi Handa <handa@m17n.org>
16785
16786 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
16787 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
16788 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
16789 detect_coding.
16790 (emacs_mule_char): Handle old style (Emacs 20) component character
16791 of a composition.
16792 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
16793 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
16794 composition rule.
16795 (decode_coding_emacs_mule): Handle invalid bytes correctly.
16796
167972008-02-01 Kenichi Handa <handa@m17n.org>
16798
16799 * coding.c (encode_coding_ccl): Allocate destination dynamically
16800 when necessary.
16801
168022008-02-01 Kenichi Handa <handa@m17n.org>
16803
16804 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
16805 the loop. When quitted, show a proper error message.
16806
168072008-02-01 Kenichi Handa <handa@m17n.org>
16808
16809 * xterm.c (x_set_glyph_string_clipping_exactly): Set
16810 src->clip_head and src->clip_tail temporarily instead of src->hl.
16811
16812 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
16813 character sequence.
16814 (Fccl_execute_on_string): Use ASET, not XSET.
16815
168162008-02-01 Kenichi Handa <handa@m17n.org>
16817
16818 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
16819
168202008-02-01 Kenichi Handa <handa@m17n.org>
16821
16822 * coding.c (decode_coding): Fix the condition of terminating the
16823 decoding loop.
16824
168252008-02-01 Kenichi Handa <handa@m17n.org>
16826
16827 * data.c (Faset): On setting a character bigger than 255 in a
16828 unibyte string, signal an error instead of make the string multibyte.
16829
168302008-02-01 Kenichi Handa <handa@m17n.org>
16831
16832 * charset.c (map_charset_chars): Fix for ascii-compatible charset
16833 made by a mapping table.
16834
168352008-02-01 Kenichi Handa <handa@m17n.org>
16836
16837 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
16838 not.
16839 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
16840 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
16841
16842 * xterm.c (x_draw_composite_glyph_string_foreground): Check
16843 s->face is NULL or not.
16844
168452008-02-01 Kenichi Handa <handa@m17n.org>
16846
16847 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
16848 (x_draw_glyph_string): Fix drawing of right_overhang and
16849 left_overhang around/on cursor.
16850
16851 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
16852
168532008-02-01 Kenichi Handa <handa@m17n.org>
16854
16855 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
16856
168572008-02-01 Kenichi Handa <handa@m17n.org>
16858
16859 * coding.c (Fdefine_coding_system_internal)
16860 (Fdefine_coding_system_alias): Avoid a duplicated element in
16861 Vcoding_system_alist.
16862
168632008-02-01 Kenichi Handa <handa@m17n.org>
16864
16865 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
16866
16867 * coding.c (Qcoding_system_define_form): New variable.
16868 (syms_of_coding): Intern and staticpro it.
16869 (Fcoding_system_p): Check Qcoding_system_define_form.
16870 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
16871
16872 * coding.h (CODING_SYSTEM_P): If ID is not available, call
16873 Fcoding_system_p.
16874 (CHECK_CODING_SYSTEM): If ID is not available, call
16875 Fcheck_coding_system.
16876 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
16877 Try also Fcheck_coding_system.
16878
168792008-02-01 Kenichi Handa <handa@m17n.org>
16880
16881 * coding.c (code_conversion_restore): GCPRO arg.
16882
168832008-02-01 Kenichi Handa <handa@m17n.org>
16884
16885 * character.c (lisp_string_width): Check multibyteness of STRING.
16886
168872008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16888
16889 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
16890 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
16891 (decode_mac_font_name): Use decode_coding_c_string instead of
16892 decode_coding.
16893 (x_load_font): Initialize fontp->fontset to -1. Set
16894 fontp->encoding_type.
16895
168962008-02-01 Kenichi Handa <handa@m17n.org>
16897
16898 * search.c (search_buffer): Give up BM search on case-fold-search
16899 if one of a target character has a case-equivalence of different
16900 byte length even if that target charcter is an ASCII.
16901 (simple_search): Fix calculation of byte length of matched text.
16902 (boyer_moore): Fix handling of case-equivalent multibyte characters.
16903
169042008-02-01 Kenichi Handa <handa@m17n.org>
16905
16906 * coding.c (decode_coding): Fix handling of invalid bytes.
16907
169082008-02-01 Kenichi Handa <handa@m17n.org>
16909
16910 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
16911 Unicode characters.
16912
169132008-02-01 Kenichi Handa <handa@m17n.org>
16914
16915 * coding.c (encode_coding_object): If a pre-write-conversion
16916 function makes a new buffer, kill it.
16917
169182008-02-01 Kenichi Handa <handa@m17n.org>
16919
16920 * coding.c (QCascii_compatible_p): New variable.
16921 (syms_of_coding): Initialize it.
16922 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
16923 calling string_char.
16924 (record_conversion_result): Add `default:' case.
16925 (coding_charset_list): Delete unused variable `coding_type'.
16926 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
16927 property in the plist of the coding system.
16928 (Fcoding_system_put): Check QCascii_compatible_p.
16929
169302008-02-01 Miles Bader <miles@gnu.org>
16931
16932 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
16933 removed calculation of frame `f', as it's now used.
16934
169352008-02-01 Kenichi Handa <handa@m17n.org>
16936
16937 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
16938 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
16939 (UNIDATA): New variable.
16940 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
16941 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
16942 $(RUN_TEMACS) unconditionally.
16943
169442008-02-01 Kenichi Handa <handa@m17n.org>
16945
16946 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
16947 (admindir): New variable.
16948 ($(lispsource)international/charprop.el): New target.
16949
169502008-02-01 Miles Bader <miles@gnu.org>
16951
16952 * character.c (chars-in-region): Remove obsolete function.
16953 (syms_of_character): Remove its initialization.
16954
169552008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
16956
16957 * w32select.c (validate_coding_system)
16958 (setup_windows_coding_system): New functions.
16959 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
16960 setup_windows_coding_system.
16961 (setup_config, Fw32_get_clipboard_data): Use
16962 validate_coding_system.
16963 (Fx_selection_exists): Move call to setup_config to a place
16964 where signals are allowed.
16965
16966 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
16967 (Fcheck_coding_system): Add declarations.
16968
169692008-02-01 Kenichi Handa <handa@m17n.org>
16970
16971 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
16972
169732008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16974
16975 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
16976 string as the second argument for x_new_fontset.
16977
169782008-02-01 Kenichi Handa <handa@m17n.org>
16979
16980 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
16981 (encode_coding_object): Use safe_call instead of call2.
16982
169832008-02-01 Kenichi Handa <handa@m17n.org>
16984
16985 * fontset.c (Fset_fontset_font): Check family element of a given vector.
16986
16987 * Makefile.in (lisp): Include charprop.el.
16988
169892008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16990
16991 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
16992 Not sure if it's unnecessary.
16993
169942008-02-01 Steven Tamm <steventamm@mac.com>
16995
16996 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
16997 some possibly unnecessary fontset checking code that crashed
16998 when creating a new frame.
16999
170002008-02-01 Kenichi Handa <handa@m17n.org>
17001
17002 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
17003 lookup_face.
17004
17005 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
17006
17007 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
17008
170092008-02-01 Kenichi Handa <handa@m17n.org>
17010
17011 * coding.c: Cancel the change done in HEAD on 2008-02-01.
17012 (coding_charset_list): New function.
17013
17014 * coding.h (coding_charset_list): Extern it.
17015
170162008-02-01 Kenichi Handa <handa@m17n.org>
17017
17018 * fontset.c (Fset_fontset_font): Call find_font_encoding with
17019 concatenation of family and registry.
17020
170212008-02-01 Kenichi Handa <handa@m17n.org>
17022
17023 * character.h (BYTE8_STRING): Fix typo.
17024
17025 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
17026 string to multibyte (sync to HEAD).
17027
17028 * casefiddle.c (casify_region): Handle changes in byte-length
17029 using replace_range_2 (sync to HEAD).
17030
170312008-02-01 Andreas Schwab <schwab@suse.de>
17032
17033 * chartab.c (map_char_table): GCPRO table and arg.
17034
170352008-02-01 Kenichi Handa <handa@m17n.org>
17036
17037 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
17038 already at limit.
17039
170402008-02-01 Kenichi Handa <handa@m17n.org>
17041
17042 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
17043 instead of fast_c_string_match_ignore_case.
17044 (find_font_encoding): Change argument to Lisp_Object. Use
17045 fast_string_match_ignore_case instead of
17046 fast_c_string_match_ignore_case. Change caller.
17047
170482008-02-01 Kenichi Handa <handa@m17n.org>
17049
17050 * xdisp.c (get_next_display_element): In unibyte case, decide to
17051 display in octal form by checking a character by
17052 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
17053
17054 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
17055
17056 * character.c (unibyte_has_multibyte_table): New variable.
17057
17058 * character.h (unibyte_has_multibyte_table): Extern it.
17059 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
17060
170612008-02-01 Kenichi Handa <handa@m17n.org>
17062
17063 * coding.c (encode_coding_iso_2022): Fix handling of charset
17064 annotation.
17065
170662008-02-01 Kenichi Handa <handa@m17n.org>
17067
17068 * coding.c (setup_coding_system): If coding_system is nil, use
17069 Qundecided.
17070 (Fterminal_coding_system): Return nil if terminal coding system is
17071 `undecided'.
17072 (syms_of_coding): Define coding-system `undecided' here. Setup
17073 terminal_coding as `undecided'.
17074
170752008-02-01 Kenichi Handa <handa@m17n.org>
17076
17077 * xdisp.c (message_dolog, set_message_1): Call
17078 unibyte_char_to_multibyte with arg type int.
17079
17080 * lread.c (read1): Fix reading of a char-table.
17081
17082 * print.c (print_object): Include sub char-table in circularities
17083 detection.
17084
170852008-02-01 Kenichi Handa <handa@m17n.org>
17086
17087 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
17088 Append the found sequences in car of ARGS instead of prepending.
17089
170902008-02-01 Kenichi Handa <handa@m17n.org>
17091
17092 * fileio.c (report_file_error): Make a unibyte string from
17093 strerror (errorno).
17094 (Fsubstitute_in_file_name): Fix the arg to
17095 unibyte_char_to_multibyte. It is evaluated twice.
17096
170972008-02-01 Kenichi Handa <handa@m17n.org>
17098
17099 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
17100
171012008-02-01 Kenichi Handa <handa@m17n.org>
17102
17103 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
17104 BOM is not found.
17105 (detect_coding, detect_coding_system): Optimization for ISO-2022
17106 when no 8-bit data is found.
17107
171082008-02-01 Jason Rumney <jasonr@gnu.org>
17109
17110 * w32fns.c (x_to_w32_font): Update to use new coding struct.
17111
171122008-02-01 Kenichi Handa <handa@m17n.org>
17113
17114 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
17115 CHARS.
17116
171172008-02-01 Steven Tamm <steventamm@mac.com>
17118
17119 * macterm.c (mac_encode_char): Add charset argument and update
17120 to use encoding_type.
17121 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
17122 switch to pure fontset.
17123 (decode_mac_font_name): Temporarily remove decoding.
17124 (x_font_name_to_mac_font_name): Temporarily remove encoding.
17125 (x_load_font): Temporarily remove encoding.
17126
171272008-02-01 Kenichi Handa <handa@m17n.org>
17128
17129 * xfaces.c (Fface_font): If frame is not on a window system,
17130 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
17131 refer to face->font.
17132 (split_font_name_into_vector, build_font_name_from_vector)
17133 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
17134 when HAVE_WINDOW_SYSTEM is defined.
17135
171362008-02-01 Kenichi Handa <handa@m17n.org>
17137
17138 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
17139 (x_produce_glyphs): Fix setting of members of cmp in case
17140 cmp->glyph_len is zero.
17141
17142 * fontset.c (Fset_fontset_font): Fix docstring.
17143 (Ffontset_info): Make it backward compatible. New arg ALL.
17144
171452008-02-01 Kim F. Storm <storm@cua.dk>
17146
17147 * process.c (read_process_output): Grow decoding_buf when needed;
17148 this could cause a crash in allocate_string and compact_small_strings.
17149
171502008-02-01 Kenichi Handa <handa@m17n.org>
17151
17152 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
17153
171542008-02-01 Kenichi Handa <handa@m17n.org>
17155
17156 * coding.c (setup_coding_system): Set coding->common_flags
17157 correctly for raw-text.
17158 (consume_chars): On encoding unibyte text by raw-text, don't check
17159 multibyte form.
17160 (encode_coding): On encoding by raw-text, never use translation tables.
17161
17162 * fileio.c (e_write): Short cut for the case of no encoding.
17163
171642008-02-01 Kenichi Handa <handa@m17n.org>
17165
17166 * coding.c (detect_coding, detect_coding_system): Delete unused
17167 variables.
17168
171692008-02-01 Kenichi Handa <handa@m17n.org>
17170
17171 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
17172 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
17173
171742008-02-01 Kenichi Handa <handa@m17n.org>
17175
17176 * coding.c (Ffind_coding_systems_region_internal): Include
17177 raw-text and no-conversion in the result.
17178
171792008-02-01 Kenichi Handa <handa@m17n.org>
17180
17181 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
17182 (load_font_get_repertory): Delete unnecessary check of ENCODING of
17183 FONT_DEF.
17184 (font_def_arg, add_arg, from_arg, to_arg): New args.
17185 (set_fontset_font): Change argument.
17186 (Fset_fontset_font): Fix for the case that TARGET is a script
17187 name and charset name.
17188 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
17189
171902008-02-01 Kenichi Handa <handa@m17n.org>
17191
17192 * fontset.c (fontset_font): Rename from fontset_face. Change return
17193 value.
17194 (face_suitable_for_char_p, face_for_char): Adjust for the change
17195 of fontset_font.
17196 (make_fontset_for_ascii_face): Fix setting of the fontset element
17197 for ASCII.
17198 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
17199 to get a font name.
17200 (Ffontset_info): Adjust for the change of fontset_font.
17201
17202 * coding.c (emacs_mule_char): Check invalid code more rigidly.
17203
17204 * character.h (LEADING_CODE_LATIN_1_MIN)
17205 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
17206
172072008-02-01 Kenichi Handa <handa@m17n.org>
17208
17209 * editfns.c (check_translation): New function.
17210 (Ftranslate_region_internal): Handle M:N mapping.
17211
172122008-02-01 Kenichi Handa <handa@m17n.org>
17213
17214 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
17215
172162008-02-01 Kenichi Handa <handa@m17n.org>
17217
17218 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
17219 goto invalid_code.
17220 (decode_coding_iso_2022): Fix handling of invalid designation.
17221
17222 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
17223 after calling code_conversion_save.
17224
172252008-02-01 Kenichi Handa <handa@m17n.org>
17226
17227 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
17228
17229 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
17230
17231 * fontset.c: Include "intervals.h".
17232 (fontset_face): Fix comparing of Lisp_Objects.
17233 (free_face_fontset, new_fontset_from_font_name): Fix
17234 Lisp_Object/int mixup.
17235
17236 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
17237
17238 * coding.c: Add many prototypes for static functions.
17239 (get_translation_table): Allow max_lookup to be NULL.
17240 (decode_coding, Ffind_coding_systems_region_internal)
17241 (Funencodable_char_position, Fcheck_coding_systems_region): Call
17242 get_translation_table with max_lookup NULL.
17243
172442008-02-01 Kenichi Handa <handa@m17n.org>
17245
17246 * coding.c (get_translation_table): Declare it as Lisp_Object.
17247 (LOOKUP_TRANSLATION_TABLE): New macro.
17248 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
17249 instead of CHAR_TABLE_REF.
17250
172512008-02-01 Kenichi Handa <handa@m17n.org>
17252
17253 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
17254 annotation data format.
17255 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
17256 Change arguments FROM and TO to single argument NCHARS. Change caller.
17257 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
17258 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17259 (decode_coding_ccl, decode_coding_charset): Pay attention to
17260 coding->charbuf_used.
17261 (get_translation): New function.
17262 (produce_chars): New arguments translation_table and last_block.
17263 Translate characters here. Return number of carryover chars.
17264 Change caller.
17265 (produce_composition): New argument pos. Change caller.
17266 Adjust for the change of annotation data format.
17267 (produce_charset, produce_annotation): Likewise.
17268 (decode_coding, encode_coding): Don't call translate_chars.
17269 (consume_chars): New arg translation_table. Change caller.
17270 (translate_chars): Delete.
17271 (syms_of_coding): Make translation-table's number of extra slots 2.
17272
172732008-02-01 Kenichi Handa <handa@m17n.org>
17274
17275 * search.c (simple_search): Fix setting this_pos_byte in backward
17276 search.
17277
17278 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
17279 byte sequence.
17280 (detect_coding_ccl): Fix setting of the variable valids.
17281
172822008-02-01 Kenichi Handa <handa@m17n.org>
17283
17284 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
17285
17286 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
17287
17288 * editfns.c (Ftranslate_region_internal): Rename from
17289 Ftranslate_region. Accept a char-table in TABLE.
17290 (syms_of_editfns): Defsubr Stranslate_region_internal.
17291
17292 * xfaces.c (set_lface_from_font_name): If a font is specified for
17293 a frame, generate a fontset from the font.
17294 (build_scalable_font_name): If the scalable font is requested for
17295 a specific size, don't change that size.
17296 (try_font_list): Try a scalable font also in the case that a
17297 pattern string is specified.
17298
172992008-02-01 Kenichi Handa <handa@m17n.org>
17300
17301 * xfaces.c (Fface_font): New optional arg CHARACTER.
17302
173032008-02-01 Kenichi Handa <handa@m17n.org>
17304
17305 * charset.h (CHARSET_OFFSET): New macro.
17306
173072008-02-01 Kenichi Handa <handa@m17n.org>
17308
17309 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
17310
17311 * fontset.c (fontset_face): Handle the case that repertory is a
17312 char-table.
17313 (find_font_encoding): Return nil for unknown encoding.
17314 (Fset_fontset_font): Ignore a font of unknown encoding.
17315
173162008-02-01 Kenichi Handa <handa@m17n.org>
17317
17318 * keymap.c (describe_vector): Handle default value of a char table.
17319
17320 * fontset.c (fontset_face): Handle fallback fonts correctly.
17321 (Ffontset_info): Return infomation about fallback fonts.
17322
173232008-02-01 Kenichi Handa <handa@m17n.org>
17324
17325 * fontset.c (FONTSET_DEFAULT): New macro.
17326 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
17327 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
17328 the case that it is nil.
17329 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
17330 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
17331
17332 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
17333 subset or superset.
17334
173352008-02-01 Kenichi Handa <handa@m17n.org>
17336
17337 * emacs.c (main): Call init_charset after syms_of_XXX.
17338
17339 * charset.c (Vcharset_map_directory): Delete.
17340 (Vcharset_map_path): New variable.
17341 (load_charset_map_from_file): Use Vcharset_map_path instead.
17342 (init_charset): Initialize Vcharset_map_path.
17343 (syms_of_charset): Delete declaration of "charset-map-directory",
17344 add declaration of "charset-map-path".
17345
173462008-02-01 Kenichi Handa <handa@m17n.org>
17347
17348 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
17349 ASCII only string.
17350
17351 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
17352
17353 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
17354 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
17355
173562008-02-01 Kenichi Handa <handa@m17n.org>
17357
17358 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
17359
17360 * coding.c (QCmnemonic, QCdefalut_char)
17361 (QCdecode_translation_table, QCencode_translation_table)
17362 (QCpost_read_conversion, QCpre_write_conversion): New variables.
17363 (get_translation_table): Return a list of translation tables if
17364 necessary.
17365 (decode_coding): Call get_translation_table with ENCODEP 0.
17366 (char_encodable_p): If translation_table is non-nil, always call
17367 translate_char.
17368 (Fdefine_coding_system_internal): Accept list of translation
17369 tables as :encode-translation-table and :decode-translation-table.
17370 (Fcoding_system_put): New function.
17371 (syms_of_coding): Declare new symbols. Defsubr
17372 Scoding_system_put.
17373 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
17374 typically JISX0212.
17375
17376 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
17377 when the charset is superset type.
17378
17379 * character.c (translate_char): Accept list of translation tables.
17380
173812008-02-01 Kenichi Handa <handa@m17n.org>
17382
17383 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
17384 (CODING_ATTR_TRANS_TBL): New macro.
17385
17386 * coding.c (get_translation_table): New function.
17387 (translate_chars): Fix the bug of skipping annotation data.
17388 (decode_coding, encode_coding): Utilize get_translation_table.
17389 (char_encodable_p, Funencodable_char_position): Translate char if
17390 necessary.
17391 (Ffind_coding_systems_region_internal)
17392 (Fcheck_coding_systems_region): Setup translation table for encode
17393 in a coding system attribute vector in advance.
17394 (Fdefine_coding_system_internal): Allow a symbol as translation
17395 table. For shift-jis type coding system, allow 4th charset.
17396
173972008-02-01 Kenichi Handa <handa@m17n.org>
17398
17399 * coding.c (decode_coding_sjis): Check the first byte rigidly.
17400
17401 * xdisp.c (get_next_display_element): Pass -1 as POS to
17402 FACE_FOR_CHAR if displaying a C-string.
17403
174042008-02-01 Kenichi Handa <handa@m17n.org>
17405
17406 * composite.c (get_composition_id): Handle xoff and yoff in a
17407 composition rule.
17408
17409 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
17410 (struct composition): New member lbearing and rbearing.
17411
17412 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
17413 (x_get_glyph_overhangs): Handle a composition glyph.
17414 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
17415
17416 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
17417 composition glyph.
17418
174192008-02-01 Kenichi Handa <handa@m17n.org>
17420
17421 * print.c: Include charset.h.
17422 (Vprint_charset_text_property): New variable.
17423 (Qdefault): Extern it.
17424 (PRINT_STRING_NON_CHARSET_FOUND)
17425 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
17426 (print_check_string_result): New variable.
17427 (print_check_string_charset_prop): New function.
17428 (print_prune_charset_plist): New variable.
17429 (print_prune_string_charset): New function.
17430 (print_object): Call print_prune_string_charset if
17431 Vprint_charset_text_property is not t.
17432 (print_interval): Print nothing if interval->plist is nil.
17433 (syms_of_print): Declare Vprint_charset_text_property as a lisp
17434 variable. Init and staticpro print_prune_charset_plist.
17435
174362008-02-01 Kenichi Handa <handa@m17n.org>
17437
17438 * fontset.c (new_fontset_from_font_name): Use the specified font
17439 for all characters in the new fontset.
17440
17441 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
17442 OBJECT args.
17443
17444 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
17445 OBJECT args for composition too.
17446
17447 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
17448 OBJECT args.
17449
174502008-02-01 Kenichi Handa <handa@m17n.org>
17451
17452 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
17453
17454 * fontset.c (reorder_font_vector): Adjust for the change of
17455 FONT_DEF format.
17456 (fontset_face): New arg id. Change caller.
17457 (face_for_char): New args pos and object.
17458 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
17459 (fs_query_fontset): Check NAME by Fassoc too.
17460 (Fset_fontset_font): Allow non-XLFD font name.
17461 (Ffontset_info): Adjust for the change of FONT_DEF format.
17462
17463 * fontset.h (face_for_char): Adjust prototype.
17464
17465 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
17466 (append_space, extend_face_to_end_of_line)
17467 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
17468 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
17469
17470 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
17471 POS and OBJECT args.
17472
17473 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
17474 POS and OBJECT args.
17475
174762008-02-01 Jason Rumney <jasonr@gnu.org>
17477
17478 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
17479 of GlobalAlloc'ed memory.
17480
174812008-02-01 Kenichi Handa <handa@m17n.org>
17482
17483 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
17484
17485 * charset.h (charset_table_used): Delete extern.
17486
17487 * charset.c (charset_table_used): Make it static.
17488 (map_charset_chars): Fix args to c_function with.
17489
17490 * chartab.c (map_sub_char_table_for_charset): Fix args to
17491 c_function with.
17492
17493 * coding.h (enum coding_result_code): Delete
17494 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
17495
17496 * coding.c (Qinsufficient_source, Qinconsistent_eol)
17497 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
17498 (Vlast_code_conversion_error): New variables.
17499 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
17500 (ONE_MORE_BYTE): Record error if any instead of signaling an
17501 error. If non-ASCII multibyte char is found, return the negative
17502 value of the code. All callers changed to check it.
17503 (ONE_MORE_BYTE_NO_CHECK): Likewise.
17504 (record_conversion_result): New function. Change all codes setting
17505 coding->result to call this function.
17506 (detect_coding_utf_8, decode_coding_utf_8)
17507 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
17508 Don't use the local variable incomplete.
17509 (emacs_mule_char): Change the second arg to `const'.
17510 (decode_coding): Fix of flushing out unprocessed data.
17511 (make_conversion_work_buffer): Fix making of a work buffer.
17512 (decode_coding_object): Return coding->dst_object.
17513
17514 * fontset.c (set_fontset_font): Fix args.
17515
17516 * lisp.h (CHARACTERBITS): Define as 22.
17517
17518 * process.c (send_process): Be sure to set coding->src_multibyte.
17519
17520 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
17521
175222008-02-01 Kenichi Handa <handa@m17n.org>
17523
17524 * xdisp.c (handle_auto_composed_prop): Give limit to
17525 Fnext_single_char_property_change.
17526
175272008-02-01 Kenichi Handa <handa@m17n.org>
17528
17529 * composite.c (syms_of_composite): Don't make the composition hash
17530 table weak.
17531
17532 * fontset.c (Fset_fontset_font): Fix docstring.
17533
17534 * lisp.h (detect_coding_system): Adjust prototype.
17535
17536 * fileio.c (kill_workbuf_unwind): Delete this function.
17537 (Finsert_file_contents): Adjust the call of detect_coding_system.
17538 Get conversion_buffer by code_conversion_save. Use the macro
17539 CODING_MAY_REQUIRE_DECODING. After decoding, update
17540 coding_system.
17541
17542 * coding.h (make_conversion_work_buffer): Delete extern.
17543 (code_conversion_save): Extern it.
17544
17545 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
17546 (CODING_GET_INFO): Delete argument eol_type. Change callers.
17547 (decode_coding_utf_8): Don't do eol converion.
17548 (detect_coding_utf_16): Check coding->src_chars, not
17549 coding->src_bytes. Add heuristics for those that have no signature.
17550 (decode_coding_emacs_mule, decode_coding_iso_2022)
17551 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
17552 Don't do eol converion.
17553 (adjust_coding_eol_type): Return a new coding system.
17554 (detect_coding): Don't detect eol. Fix for utf-16 detection.
17555 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
17556 each change.
17557 (decode_coding): Pay attention to undo_list. Do eol conversion for
17558 all types of coding-systems (if necessary).
17559 (Vcode_conversion_work_buf_list): Delete it.
17560 (Vcode_conversion_reused_workbuf): Rename from
17561 Vcode_conversion_reused_work_buf.
17562 (Vcode_conversion_workbuf_name): New variable.
17563 (reused_workbuf_in_use): New variable.
17564 (make_conversion_work_buffer): Delete the arg DEPTH.
17565 (code_conversion_restore): Change argument to cons.
17566 (code_conversion_save): Delete the argument BUFFER. Change callers.
17567 (detect_coding_system): New argument src_chars. Change callers.
17568 Fix for utf-16 detection.
17569 (init_coding_once): Don't use ISO_carriage_return.
17570 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
17571 reused_workbuf_in_use.
17572
175732008-02-01 Kenichi Handa <handa@m17n.org>
17574
17575 * keymap.c (store_in_keymap): Pay attention to the case that idx
17576 is a cons specifying a character range.
17577
175782008-02-01 Kenichi Handa <handa@m17n.org>
17579
17580 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
17581 HANDLED_RECOMPUTE_PROPS.
17582
17583 * coding.c (Fdefine_coding_system_internal): Fix checking of
17584 ascii compatibility.
17585
175862008-02-01 Kenichi Handa <handa@m17n.org>
17587
17588 * charset.c (find_charsets_in_text): Delete unused locale variable.
17589 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
17590
17591 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
17592 Resync charset_list to Vemacs_mule_charset_list.
17593
17594 * keymap.c (store_in_keymap): Pay attention to the case that idx
17595 is a cons specifying a character range.
17596
175972008-02-01 Kenichi Handa <handa@m17n.org>
17598
17599 * composite.c (update_compositions): Bind inhibit-read-only, etc
17600 to t before calling remove-list-of-text-properties.
17601
17602 * print.c (print_object): Always print ASCII chars as is.
17603
176042008-02-01 Kenichi Handa <handa@m17n.org>
17605
17606 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
17607
17608 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
17609 is a char table.
17610
176112008-02-01 Kenichi Handa <handa@m17n.org>
17612
17613 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
17614
176152008-02-01 Kenichi Handa <handa@m17n.org>
17616
17617 * xfaces.c (set_lface_from_font_name): Fix for the case that
17618 FONTNAME is not fontset name.
17619
176202008-02-01 Kenichi Handa <handa@m17n.org>
17621
17622 * fns.c (base64_encode_1): Fix previous change.
17623
176242008-02-01 Kenichi Handa <handa@m17n.org>
17625
17626 * fontset.c (set_fontset_font): New function.
17627 (Fset_fontset_font): If a font is specified for a charset, use
17628 map_charset_chars to store the font spec in a fontset.
17629
176302008-02-01 Kenichi Handa <handa@m17n.org>
17631
17632 * fontset.c (fontset_face): Create a fallback fontset on demand.
17633 (make_fontset): Don't create a fallback fontset here.
17634 (free_face_fontset): Free a fallback fontset (if any) too.
17635 (n_auto_fontsets): Delete this variable.
17636 (auto_fontset_alist): New variable.
17637 (new_fontset_from_font_name): Check auto_fontset_alist.
17638 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
17639 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
17640 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
17641 Defsubr Sfontset_list_all.
17642
176432008-02-01 Kenichi Handa <handa@m17n.org>
17644
17645 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
17646
176472008-02-01 Kenichi Handa <handa@m17n.org>
17648
17649 * fontset.c (Fnew_fontset): Check NAME more rigidly.
17650
176512008-02-01 Kenichi Handa <handa@m17n.org>
17652
17653 * editfns.c (Fgoto_char): Fix docstring.
17654
176552008-02-01 Kenichi Handa <handa@m17n.org>
17656
17657 * insdel.c (insert_from_gap): Adjust intervals correctly.
17658
176592008-02-01 Jason Rumney <jasonr@gnu.org>
17660
17661 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
17662 (pfnGetFontUnicodeRanges): New dynamically loaded function.
17663 (w32_initialize): Try to load it.
17664 (x_get_font_repertory): Use it if available.
17665 (w32_encode_char): Add shortcut for unicode output.
17666
17667 * w32fns.c (w32_load_system_font): Default charset to -1.
17668 (x_to_w32_charset): Match all fonts for unicode.
17669 (w32_to_x_charset): New parameter matching. Don't return partial
17670 or wildcard charsets.
17671 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
17672 (w32_codepage_for_font): Return CP_UNICODE for unicode.
17673 (w32_to_x_font): Match charset to real charset.
17674 (enum_font_cb2): Always list unicode versions.
17675
17676 * makefile.w32-in (temacs): Increase EMHEAP.
17677
176782008-02-01 Jason Rumney <jasonr@gnu.org>
17679
17680 * w32term.c (w32_encode_char): New charset parameter.
17681 font_info.encoding becomes encoding_type.
17682 (x_get_font_repertory): New function. Warning: stub only!
17683 (x_new_font): Return quickly if font already set.
17684 (x_new_fontset): fontsetname parameter is Lisp_Object.
17685 Use new fs_query_fontset. Try new_fontset_from_font_name.
17686 Use fontset_name for return value.
17687
17688 * w32term.h: Declare x_get_font_repertory.
17689
17690 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
17691 place of find_charset_in_text. Use encode_coding_object in place
17692 of encode_coding.
17693 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
17694 decode_coding.
17695
17696 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
17697 of x_new_fontset.
17698 (w32_load_system_font): Initialize charset as unicode.
17699 font_info.encoding becomes encoding_type.
17700 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
17701 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
17702 (syms_of_w32fns): Set get_font_repertory_func.
17703
17704 * w32console.c: Include character.h. Use terminal_encode_buffer
17705 from term.c.
17706 (write_glyphs): Use new version of encode_terminal_code. Use
17707 encode_coding_object in place of encode_coding.
17708
17709 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
17710 encoding becomes encoding_type.
17711
17712 * term.c (terminal_encode_buffer): Make externally visible.
17713
17714 * makefile.w32-in: Add character.h dependancies.
17715 (character.o, chartab.o): New targets.
17716
177172008-02-01 Kenichi Handa <handa@m17n.org>
17718
17719 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
17720 CODING_ID_EOL_TYPE.
17721
177222008-02-01 Andreas Schwab <schwab@suse.de>
17723
17724 * coding.c (produce_chars): Revert last change.
17725
177262008-02-01 Kenichi Handa <handa@m17n.org>
17727
17728 * charset.h (charset_unicode): Extern it.
17729
17730 * charset.c (string_xstring_p): Check by (C >= 0x100).
17731 (find_charsets_in_text): Change format of the arc CHARSETS. New
17732 arg MULTIBYTE.
17733 (Ffind_charset_region, Ffind_charset_string): Adjust for the
17734 change of find_charsets_in_text.
17735 (Fsplit_char): Fix doc. Never return unknown.
17736
17737 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
17738
17739 * coding.c (Fdefine_coding_system_alias): Update
17740 Vcoding_system_list.
17741
17742 * fontset.c (load_font_get_repertory): Pay attention to the case
17743 that ENCODING of a font is specified by a char-table.
17744
17745 * xterm.c (x_get_font_repertory): Handle the case that the
17746 encoding of font is other than Unicode.
17747
177482008-02-01 Kenichi Handa <handa@m17n.org>
17749
17750 * term.c (encode_terminal_code): Don't handle glyph-table. Check
17751 if a character is encodable by the terminal coding system. If
17752 not, produces proper number of `?'s. Update
17753 terminal_encode_buffer and terminal_encode_buf_size if necessary.
17754 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
17755
177562008-02-01 Kenichi Handa <handa@m17n.org>
17757
17758 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
17759 variables.
17760 (encode_terminal_code): Change argument. Encode multiple
17761 characters at once. Store the result of encoding in
17762 terminal_encode_buffer.
17763 (write_glyphs, insert_glyphs): Adjust for the change of
17764 encode_terminal_code.
17765 (term_init): Initialize terminal_encode_buffer and
17766 terminal_encode_buf_size.
17767
17768 * coding.c (consume_chars): If coding->src_object is nil, don't
17769 check annotation.
17770
177712008-02-01 Kenichi Handa <handa@m17n.org>
17772
17773 * character.c (char_string): Use ASCII_CHAR_P instead of
17774 SINGLE_BYTE_CHAR_P.
17775
177762008-02-01 Kenichi Handa <handa@m17n.org>
17777
17778 * xdisp.c (handle_auto_composed_prop): Check if the last
17779 characters of auto-composed region is newly composed with the
17780 following characters.
17781 (handle_composition_prop): Fix checking of point being inside
17782 composition.
17783
177842008-02-01 Kenichi Handa <handa@m17n.org>
17785
17786 * fns.c (concat): Don't change multibyteness of the result by
17787 concatenating an 8-bit character.
17788
17789 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
17790 multibyteness of the result when newelt is an 8-bit character.
17791
177922008-02-01 Dave Love <fx@gnu.org>
17793
17794 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
17795 EMACS_INT.
17796
17797 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
17798
17799 * xfaces.c (face_numeric_value): Declare dim size_t.
17800 (Finternal_lisp_face_equal_p): Remove unused f.
17801
17802 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
17803 (MATRIX_ROW): Remove unused vars.
17804 (draw_glyphs, x_insert_glyphs, fast_find_position)
17805 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
17806 byte/char counts.
17807
17808 * regex.c (regex_compile): Remove unused var.
17809
17810 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
17811
17812 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
17813 (Faccessible_keymaps, where_is_internal): Remove unused vars.
17814
17815 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
17816
17817 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
17818
17819 * fileio.c (Fwrite_region): Remove unused var.
17820
17821 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
17822 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
17823
17824 * composite.c (Fremove_list_of_text_properties): Declare.
17825
17826 * coding.c (inhibit_pre_post_conversion): Remove (unused).
17827 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
17828 (coding_inherit_eol_type): Remove unused attrs.
17829 (detect_coding): Cast arg of detect_eol.
17830
17831 * charset.c (syms_of_charset): Remove unused var p.
17832 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
17833 byte/char counts.
17834
17835 * casetab.c (set_case_table): Remove unused var.
17836
17837 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
17838 unused vars.
17839
178402008-02-01 Dave Love <fx@gnu.org>
17841
17842 * xterm.c (x_bitmap_mask): Declare.
17843
178442008-02-01 Dave Love <fx@gnu.org>
17845
17846 * xterm.c (x_term_init): Fix type error.
17847
17848 * lisp.h: Add Funibyte_char_to_multibyte.
17849
17850 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
17851 (Fset_coding_system_priority): Doc fix.
17852
17853 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
17854
17855 * indent.c (check_composition): Make start and end EMACS_INT.
17856
17857 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
17858
17859 * xdisp.c (handle_composition_prop, check_point_in_composition):
17860 Make buffer positions EMACS_INT.
17861
17862 * composite.c (find_composition, run_composition_function)
17863 (update_compositions, Ffind_composition_internal): Make buffer
17864 positions EMACS_INT.
17865
17866 * composite.h (find_composition, update_compositions): Make
17867 position args EMACS_INT.
17868
17869 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
17870
17871 * intervals.c (get_property_and_range):
17872 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
17873
17874 * unexalpha.c: Don't include varargs.h.
17875
178762008-02-01 Dave Love <fx@gnu.org>
17877
17878 * coding.h (ENCODE_UTF_8): New.
17879
17880 * Makefile.in (gtkutil.o): Depend on coding.h.
17881
17882 * coding.c (Fset_coding_system_priority): Doc fix.
17883
178842008-02-01 Kenichi Handa <handa@m17n.org>
17885
17886 * fileio.c (Finsert_file_contents): Call setup_coding_system in
17887 the case of auto saving.
17888
178892008-02-01 Andreas Schwab <schwab@suse.de>
17890
17891 * chartab.c (map_char_table, map_char_table_for_charset): Protect
17892 `range' from GC.
17893
178942008-02-01 Kenichi Handa <handa@m17n.org>
17895
17896 * coding.c (decode_coding_sjis): Check bytes more rigidly.
17897
178982008-02-01 Kenichi Handa <handa@m17n.org>
17899
17900 * fileio.c (choose_write_coding_system): Return a decided coding system.
17901 (Fwrite_region): Set Vlast_coding_system_used to the return value
17902 of choose_write_coding_system.
17903
179042008-02-01 Kenichi Handa <handa@m17n.org>
17905
17906 * charset.c (Fset_charset_priority): Pay attention to duplicated
17907 arguments.
17908
17909 * coding.c (QCcategory): New variable.
17910 (syms_of_coding): Defsym it. Set all elements of
17911 Vcoding_category_table and their symbol values.
17912 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
17913 coding-category-XXX, and coding-category-list.
17914 (Fdefine_coding_system_internal): Add category in the plist.
17915
179162008-02-01 Kenichi Handa <handa@m17n.org>
17917
17918 * callproc.c (Fcall_process): Handle carryover correctly.
17919
17920 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
17921 (raw_text_coding_system): Check NILP (coding_system).
17922 (coding_inherit_eol_type): Check NILP (coding_system) and
17923 NILP (parent).
17924 (consume_chars): Fix for the case of raw-text.
17925
17926 * process.c (read_process_output): Handle carryover correctly.
17927
179282008-02-01 Dave Love <fx@gnu.org>
17929
17930 * regex.c (re_search_2): Fix last change.
17931
179322008-02-01 Kenichi Handa <handa@m17n.org>
17933
17934 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
17935 target_multibyte. Even in a unibyte case, return a converted
17936 multibyte char.
17937 (GET_CHAR_AFTER): New macro.
17938 (PATFETCH): Translate via multibyte char.
17939 (HANDLE_UNIBYTE_RANGE): Delete this macro.
17940 (SETUP_MULTIBYTE_RANGE): New macro.
17941 (regex_compile): Setup compiled code so that its multibyteness
17942 matches that of a target. Fix the handling of "[X-YZ]" using
17943 SETUP_MULTIBYTE_RANGE.
17944 (analyse_first) <charset>: For filling fastmap for all multibyte
17945 characters, don't check by BASE_LEADING_CODE_P.
17946 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
17947 the same as RE_MULTIBYTE_P (bufp) now.
17948 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
17949 (TARGET_CHAR_AND_LENGTH): Delete this macro.
17950 (TRANSLATE_VIA_MULTIBYTE): New macro.
17951 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
17952 It is the same as RE_MULTIBYTE_P (bufp) now.
17953 <exactn>: Translate via multibyte.
17954 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
17955 translate it.
17956 <charset, charset_not>: Fetch a character by
17957 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
17958 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
17959 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
17960 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
17961 by GET_CHAR_AFTER.
17962 (bcmp_translate): Likewise.
17963
17964 * search.c (compile_pattern): Check the member target_multibyte,
17965 not the member multibyte of buf.
17966
17967 * lread.c (read1): While reading a string, set force_singlebyte
17968 and force_multibyte correctly.
17969
17970 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
17971 up of unibyte_to_multibyte_table.
17972
179732008-02-01 Kenichi Handa <handa@m17n.org>
17974
17975 * coding.c (setup_coding_system): If coding has
17976 post-read-conversion or pre-write-conversion, set
17977 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
17978 respectively.
17979 (decode_coding_gap): Run post-read-conversion if any.
17980
17981 * fileio.c (Finsert_file_contents): Even if we read into a
17982 unibyte buffer, check if we must decode the result or not.
17983
179842008-02-01 Kenichi Handa <handa@m17n.org>
17985
17986 * coding.c (make_conversion_work_buffer): Change the work buffer
17987 name to the same one as that of Emacs 21.
17988
179892008-02-01 Kenichi Handa <handa@m17n.org>
17990
17991 * coding.h (make_conversion_work_buffer): Adjust prototype.
17992 (code_conversion_restore): Don't extern it.
17993
17994 * coding.c (detected_mask): Delete unused variable.
17995 (decode_coding_iso_2022): Pay attention to the byte sequence of
17996 CTEXT extended segment, and retain those bytes as is.
17997 (decode_coding_ccl): Delete unused variable `valids'.
17998 (setup_coding_system): Delete unused variable `category'.
17999 (consume_chars): Delete unused variable `category'. Make it work
18000 for non-multibyte case.
18001 (make_conversion_work_buffer): Change argument.
18002 (saved_coding): Delete unused variable.
18003 (code_conversion_restore): Don't check saved_coding->destination.
18004 (code_conversion_save): New function.
18005 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
18006 instead of record_unwind_protect.
18007 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
18008 (detect_coding_system): Delete unused variable `mask'.
18009 (Fdefine_coding_system_internal): Delete unused variable id.
18010
18011 * fileio.c (kill_workbuf_unwind): New function.
18012 (Finsert_file_contents): On replacing, call
18013 make_conversion_work_buffer with correct args, and call
18014 record_unwind_protect with the first arg kill_workbuf_unwind.
18015
18016 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
18017
180182008-02-01 Kenichi Handa <handa@m17n.org>
18019
18020 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
18021 (fontset_add): Fix for the case that TO is less than TO1.
18022 (Ffontset_info): Don't use fallback fontset on checking the
18023 default fontset.
18024 (dump_fontset): New function for debugging.
18025
18026 * coding.c (Fdefine_coding_system_internal): Fix for the case that
18027 coding_type is Qcharset.
18028
180292008-02-01 Kenichi Handa <handa@m17n.org>
18030
18031 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
18032 (map_char_table): Don't inherit the value from the parent on
18033 initializing VAL. Adjust for the above change.
18034
180352008-02-01 Kenichi Handa <handa@m17n.org>
18036
18037 * coding.c (Qsignature, Qendian): Delete these variables.
18038 (syms_of_coding): Don't initialize them.
18039 (CATEGORY_MASK_UTF_16_AUTO): New macro.
18040 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
18041 detect_info->found.
18042 (decode_coding_utf_16): Don't detect BOM here.
18043 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
18044 is NOT utf_16_without_bom.
18045 (setup_coding_system): For a coding system of type utf-16, check
18046 if the attribute :endian is Qbig or not (not nil or not), and set
18047 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
18048 (detect_coding): If coding type is utf-16 and BOM detection is
18049 required, detect it.
18050 (Fdefine_coding_system_internal): For a coding system of type
18051 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
18052
180532008-02-01 Kenichi Handa <handa@m17n.org>
18054
18055 * coding.c (coding_set_source): Fix for the case that the current
18056 buffer is different from coding->src_object.
18057 (decode_coding_object): Don't use the conversion work buffer if
18058 DST_OBJECT is a buffer.
18059
180602008-02-01 Dave Love <fx@gnu.org>
18061
18062 * lread.c (read_emacs_mule_char) [len==2]: Index
18063 emacs_mule_charset correctly.
18064
180652008-02-01 Dave Love <fx@gnu.org>
18066
18067 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
18068 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
18069 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
18070 treated specially.)
18071 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
18072 (detected_mask): Remove Big5 bits.
18073
180742008-02-01 Kenichi Handa <handa@m17n.org>
18075
18076 The following changes are to make the font rescaling facility
18077 compatible with Emacs 21.
18078
18079 * xfaces.c (Vface_font_rescale_alist): Rename from
18080 Vface_resizing_fonts.
18081 (struct font_name): Rename member resizing_ratio to rescale_ratio.
18082 (font_rescale_ratio): Rename from font_resizing_ratio.
18083 (split_font_name): Set font->rescale_ratio.
18084 (better_font_p): Pay attention to font->rescale_ratio.
18085 (build_scalable_font_name): Likewise. Change RESX, and RESY
18086 fields.
18087 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
18088
180892008-02-01 Kenichi Handa <handa@m17n.org>
18090
18091 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
18092 (Qutf_16_le): Remove these variables.
18093 (syms_of_coding): Don't DEFSYM them.
18094 (decode_coding_utf_16): Fix handling of BOM.
18095 (encode_coding_utf_16): Fix handling of BOM.
18096
180972008-02-01 Kenichi Handa <handa@m17n.org>
18098
18099 * fileio.c (Finsert_file_contents): On replacing, before decoding
18100 the file into the work buffer, set point of the work buffer to the end.
18101
181022008-02-01 Dave Love <fx@gnu.org>
18103
18104 * coding.c (Fcheck_coding_systems_region): Fix type errors.
18105
181062008-02-01 Dave Love <fx@gnu.org>
18107
18108 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
18109 and fix C types.
18110
181112008-02-01 Kenichi Handa <handa@m17n.org>
18112
18113 * xdisp.c (SKIP_GLYPHS): New macro.
18114 (set_cursor_from_row): Pay attention to string display properties.
18115
18116 * category.c (copy_category_entry): Fix for the case that RANGE
18117 is an integer.
18118
18119 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
18120
18121 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
18122
181232008-02-01 Kenichi Handa <handa@m17n.org>
18124
18125 * charset.c (Fcharset_id_internal): New function.
18126 (syms_of_charset): Defsubr it.
18127
18128 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
18129 with the last arg charset_list acquired from coding.
18130 (Fdefine_coding_system_internal): For ccl-based coding system, fix
18131 the attribute coding_attr_ccl_valids.
18132
18133 * coding.h (enum define_coding_ccl_arg_index): Set the first
18134 member coding_arg_ccl_decoder to coding_arg_max.
18135
18136 * ccl.h (ccl_driver): Adjust prototype.
18137
18138 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
18139 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
18140 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
18141 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
18142 last arg Qnil.
18143
181442008-02-01 Kenichi Handa <handa@m17n.org>
18145
18146 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
18147 call encode_char.
18148
18149 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
18150
181512008-02-01 Dave Love <fx@gnu.org>
18152
18153 * composite.c (syms_of_composite): Make composition_hash_table weak.
18154
181552008-02-01 Kenichi Handa <handa@m17n.org>
18156
18157 * dispextern.h (check_face_attributes, generate_ascii_font_name)
18158 (font_name_registry): Don't extern them.
18159 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
18160
18161 * fontset.h (Qfontset): Don't extern it.
18162 (new_fontset_from_font_name): Extern it.
18163
18164 * fontset.c: Give 8 extra slots to fontset objects.
18165 (Qfontset_info): New variable.
18166 (syms_of_fontset): Defsym it.
18167 (FONTSET_FALLBACK): New macro.
18168 (fontset_face): Try also the default fontset.
18169 (make_fontset): Realize a fallback fontset from the default fontset.
18170 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
18171 using split_font_name_into_vector and build_font_name_from_vector.
18172 (Fset_fontset_font): Access the elements of font_spec by enum
18173 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
18174 name by using split_font_name_into_vector.
18175 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
18176 generate a proper font name from the fontset name. Update
18177 Vfontset_alias_alist.
18178 (n_auto_fontsets): New variable.
18179 (new_fontset_from_font_name): New function.
18180 (Ffont_info): Store the information about fonts generated from the
18181 default fontset in the first extra slot of the returned char-table.
18182
18183 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
18184 (font_name_registry): Delete function.
18185 (split_font_name_into_vector): New function.
18186 (build_font_name_from_vector): New function.
18187 (font_list): The argument REGISTRY is now a list of registry names.
18188 (choose_face_font): If we are choosing an ASCII font, and ATTRS
18189 specifies an explicit font name, return the name as is. Make a
18190 list of registy names.
18191
18192 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
18193 of x_new_fontset.
18194 (Fx_create_frame): Don't call x_new_fontset here. Just use
18195 x_list_fonts to check the existence of fonts.
18196
18197 * xterm.h (x_new_fontset): Adjust prototype.
18198
18199 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
18200 string. Use new_fontset_from_font_name to create a fontset from a
18201 font name.
18202
182032008-02-01 Kenichi Handa <handa@m17n.org>
18204
18205 * syntax.c (Vfind_word_boundary_function_table): New name for
18206 Vnext_word_boundary_function_table.
18207 (find-word-boundary-function-table): New name for
18208 next-word-boundary-function-table.
18209
182102008-02-01 Dave Love <fx@gnu.org>
18211
18212 * Makefile.in: Fix some dependencies.
18213
18214 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
18215 set it to nil before returning.
18216
18217 * composite.c (update_compositions): Fix type error.
18218
18219 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
18220
182212008-02-01 Kenichi Handa <handa@m17n.org>
18222
18223 * xterm.c (x_new_font): Optimize for the case that the font is
18224 already set for the frame.
18225
182262008-02-01 Kenichi Handa <handa@m17n.org>
18227
18228 * chartab.c (char_table_ascii): Check if the char table contents
18229 is sub-char-table or not.
18230 (char_table_set, char_table_set_range): Fix argument to
18231 char_table_ascii.
18232
18233 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
18234 (detect_coding_utf_8, detect_coding_utf_16)
18235 (detect_coding_emacs_mule, detect_coding_iso_2022)
18236 (detect_coding_sjis, detect_coding_big5)
18237 (detect_coding_ccl, detect_coding_charset): Change argument MASK
18238 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
18239 sequence is valid in this coding system. Change callers.
18240 (MAX_ANNOTATION_LENGTH): New macro.
18241 (ADD_ANNOTATION_DATA): New macro.
18242 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
18243 ADD_ANNOTATION_DATA. Change the format of annotation data.
18244 (ADD_CHARSET_DATA): New macro.
18245 (emacs_mule_char): New argument ID. Change callers.
18246 (decode_coding_emacs_mule, decode_coding_iso_2022)
18247 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
18248 Produce charset annotation data in coding->charbuf.
18249 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
18250 to charset annotation data in coding->charbuf.
18251 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
18252 coding->common_flags if the coding system is iso-2022 based and
18253 uses designation.
18254 (produce_composition): Adjust for the new annotation data format.
18255 (produce_charset): New function.
18256 (produce_annotation): Handle charset annotation.
18257 (handle_composition_annotation, handle_charset_annotation): New
18258 functions.
18259 (consume_chars): Handle charset annotation. Utilize the above two
18260 functions.
18261 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
18262 buffer, get the deleted text as a string and set
18263 coding->src_object to that string.
18264 (detect_coding, detect_coding_system): Use the new struct
18265 coding_detection_info.
18266
18267 * coding.h (struct coding_detection_info): New structure.
18268 (struct coding_system): Adjust prototype of the member `detector'.
18269 (CODING_ANNOTATE_CHARSET_MASK): New macro.
18270
182712008-02-01 Kenichi Handa <handa@m17n.org>
18272
18273 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
18274
182752008-02-01 Dave Love <fx@gnu.org>
18276
18277 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
18278 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
18279 to new local and nullify apropos_accumulate before returning.
18280 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
18281
182822008-02-01 Kenichi Handa <handa@m17n.org>
18283
18284 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
18285 correctly.
18286
182872008-02-01 Dave Love <fx@gnu.org>
18288
18289 * fns.c (Flanginfo): Call synchronize_system_time_locale.
18290
182912008-02-01 Kenichi Handa <handa@m17n.org>
18292
18293 The following changes are to make character composition happen
18294 automatically on displaying.
18295
18296 * Makefile.in (lisp, shortlisp): Add composite.elc.
18297
18298 * composite.h (Qauto_composed, Vauto_composition_function)
18299 (Qauto_composition_function): Extern them.
18300
18301 * composite.c (Vcomposition_function_table)
18302 (Qcomposition_function_table): Delete variables.
18303 (Qauto_composed, Vauto_composition_function)
18304 (Qauto_composition_function): New variables.
18305 (run_composition_function): Don't call
18306 compose-chars-after-function.
18307 (update_compositions): Clear `auto-composed' text property.
18308 (compose_chars_in_text): Delete this function.
18309 (syms_of_composite): Staticpro Qauto_composed and
18310 Qauto_composition_function. Declare Vauto_composition_function as
18311 a Lisp variable.
18312
18313 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
18314
18315 * xdisp.c (it_props): Add an entry for Qauto_composed.
18316 (handle_auto_composed_prop): New function.
18317
18318 * xselect.c (selection_data_to_lisp_data): Don't call
18319 compose_chars_in_text.
18320
183212008-02-01 Dave Love <fx@gnu.org>
18322
18323 * keyboard.c (read_char): Modify checking around use of
18324 Vkeyboard_translate_table.
18325
18326 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
18327 and fix C types.
18328
183292008-02-01 Kenichi Handa <handa@m17n.org>
18330
18331 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
18332 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
18333 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
18334 the case that the last byte is '\r' correctly.
18335 (decode_coding): Flush out the unprocessed data correctly.
18336 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
18337
183382008-02-01 Dave Love <fx@gnu.org>
18339
18340 * xterm.c (XTread_socket): Fix changes for defined keysyms.
18341 Add XK_ISO... case.
18342 (xaw_scroll_callback): Revert last change.
18343
183442008-02-01 Kenichi Handa <handa@m17n.org>
18345
18346 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
18347
183482008-02-01 Kenichi Handa <handa@m17n.org>
18349
18350 * xfaces.c (Vface_resizing_fonts): New variable.
18351 (struct font_name): New member `resizing_ratio'.
18352 (font_resizing_ratio): New function.
18353 (split_font_name): Set font->resizing_ratio.
18354 (better_font_p): Pay attention to font->resizing_ratio.
18355 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
18356 RESX, and RESY fields.
18357 (try_alternative_families): Try scalable fonts if
18358 Vscalable_fonts_allowed is not Qt.
18359 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
18360
183612008-02-01 Dave Love <fx@gnu.org>
18362
18363 * xterm.c (xaw_scroll_callback): Cast correctly.
18364
183652008-02-01 Dave Love <fx@gnu.org>
18366
18367 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
18368 (lispy_kana_keys): Comment out.
18369 (make_lispy_event) [XK_kana_A]: Comment out.
18370
18371 * xterm.c (xaw_scroll_callback): Cast call_data.
18372 (XTread_socket): Deal with ASCII keysyms.
18373 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
18374
183752008-02-01 Dave Love <fx@gnu.org>
18376
18377 * xterm.c (Vx_keysym_table): New.
18378 (syms_of_xterm): Initialize it.
18379 (XTread_socket): Use it.
18380 From head: Eliminate incorrect optimization that tried to avoid
18381 decoding the output of X*LookupString.
18382 (x_get_font_repertory): Delete charset declaration.
18383
183842008-02-01 Kenichi Handa <handa@m17n.org>
18385
18386 * coding.c (detect_coding_charset): If only ASCII bytes are found,
18387 return 0.
18388 (Fdefine_coding_system_internal): Setup
18389 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
18390
183912008-02-01 Dave Love <fx@gnu.org>
18392
18393 * coding.c (Fcheck_coding_system): Doc fix.
18394
18395 * editfns.c (Finsert_byte): Return a proper value.
18396
183972008-02-01 Kenichi Handa <handa@m17n.org>
18398
18399 * coding.c (decode_coding): Fix args to translate_chars. Pay
18400 attention to Vstandard_translation_table_for_decode.
18401 (encode_coding): Fix args to translate_chars. Pay attention to
18402 Vstandard_translation_table_for_encode.
18403
18404 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
18405 SINGLE_BYTE_CHAR_P.
18406
18407 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
18408 not by SINGLE_BYTE_CHAR_P.
18409
18410 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
18411 SINGLE_BYTE_CHAR_P.
18412
18413 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
18414 SINGLE_BYTE_CHAR_P.
18415
18416 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
18417 by SINGLE_BYTE_CHAR_P.
18418
18419 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
18420 SINGLE_BYTE_CHAR_P.
18421
184222008-02-01 Dave Love <fx@gnu.org>
18423
18424 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
18425
184262008-02-01 Dave Love <fx@gnu.org>
18427
18428 * fns.c (Flanginfo): Fix typo.
18429
18430 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
18431
184322008-02-01 Kenichi Handa <handa@m17n.org>
18433
18434 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
18435 (detect_coding_emacs_mule, detect_coding_iso_2022)
18436 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
18437 incomplete byte sequence. Don't update *mask when correctly detected.
18438 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
18439 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
18440 (detect_coding, detect_coding_system): Adjust for the changes above.
18441
184422008-02-01 Kenichi Handa <handa@m17n.org>
18443
18444 * character.c (char_string): Rename from
18445 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
18446 (string_char): Rename from string_char.
18447
18448 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
18449 if C is greater than MAX_3_BYTE_CHAR.
18450 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
18451 string_char instead of string_char_with_unification.
18452
184532008-02-01 Dave Love <fx@gnu.org>
18454
18455 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
18456
184572008-02-01 Kenichi Handa <handa@m17n.org>
18458
18459 * keymap.c (push_key_description): Pay attention to force_multibyte.
18460
18461 * regex.c (re_search_2): Fix for the case of unibyte buffer.
18462
184632008-02-01 Dave Love <fx@gnu.org>
18464
18465 * charset.c (define_charset_internal): Rename `supprementary'.
18466
18467 * Makefile.in (lisp, shortlisp): Remove latin-N.
18468
184692008-02-01 Dave Love <fx@gnu.org>
18470
18471 * xfns.c (x_window, x_window): Use use_xim.
18472
18473 * xterm.c (use_xim): Initialize.
18474 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
18475 (x_term_init): Maybe set use_xim.
18476
18477 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
18478
184792008-02-01 Kenichi Handa <handa@m17n.org>
18480
18481 * search.c (search_buffer): Fix case-fold-search of multibyte
18482 characters.
18483 (boyer_moore): Rename the last argument to char_high_bits.
18484
184852008-02-01 Kenichi Handa <handa@m17n.org>
18486
18487 * xdisp.c (display_string): Fix for the case of zero width glyph.
18488
18489 * xfns.c (x_set_font): Change the error message of the case that
18490 x_new_fontset returns Qt.
18491
18492 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
18493 (Finternal_set_lisp_face_attribute): Use signal_error for the
18494 error of invalid fontset.
18495
18496 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
18497 fontset, return Qt.
18498
184992008-02-01 Dave Love <fx@gnu.org>
18500
18501 * unexelf.c (unexec): Make .got handling not SGI-specific.
18502
18503 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
18504
18505 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
18506
18507 * keyboard.c (read_key_sequence): Fix type error.
18508
18509 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
18510 type error.
18511
18512 * fontset.c (fontset_add): Return Lisp_Object.
18513
185142008-02-01 Dave Love <fx@gnu.org>
18515
18516 * charset.h (charset_ordered_list_tick): Declare extern.
18517
185182008-02-01 Kenichi Handa <handa@m17n.org>
18519
18520 The following changes (and some of 2008-02-01 changes of mine) are
18521 for handling syntax, category, and case conversion for unibyte
18522 characters by converting them to multibyte on the fly. With these
18523 changes, we don't have to setup syntax and case tables for unibyte
18524 characters in each language environment.
18525
18526 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
18527 multibyte if necessary.
18528
18529 * bytecode.c (Fbyte_code): Likewise.
18530
18531 * character.h (LEADING_CODE_LATIN_1_MIN)
18532 (LEADING_CODE_LATIN_1_MAX): New macros.
18533 (unibyte_to_multibyte_table): Extern it.
18534 (unibyte_char_to_multibyte): New macro.
18535 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
18536 (CHAR_LEADING_CODE): New macro.
18537 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
18538
18539 * character.c (unibyte_to_multibyte_table): New variable.
18540 (unibyte_char_to_multibyte): Move to character.h and define as macro.
18541 (multibyte_char_to_unibyte): If C is an eight-bit character,
18542 convert it to the corresponding byte value.
18543
18544 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
18545 not 1, signals an error. Update the elements of
18546 unibyte_to_multibyte_table.
18547 (init_charset_once): Initialize unibyte_to_multibyte_table.
18548 (syms_of_charset): Define the charset `iso-8859-1'.
18549
18550 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
18551 as is without converting it to unibyte. In a unibyte buffer,
18552 convert C to multibyte before checking the syntax.
18553
18554 * lisp.h (unibyte_char_to_multibyte): Delete extern.
18555
18556 * minibuf.c (Fminibuffer_complete_word): Use the macro
18557 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
18558
18559 * regex.h (struct re_pattern_buffer): New member target_multibyte.
18560
18561 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
18562 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
18563 that is zero, convert an eight-bit char to multibyte.
18564 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
18565 non-emacs case.
18566 (PATFETCH): Convert an eight-bit char to multibyte.
18567 (HANDLE_UNIBYTE_RANGE): New macro.
18568 (regex_compile): Setup the compiled pattern for multibyte chars
18569 even if the given regex string is unibyte. Use PATFETCH_RAW
18570 instead of PATFETCH in many places. To handle `charset'
18571 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
18572 only for ASCII chars.
18573 (analyse_first) <exactn>: Simplify because the compiled pattern
18574 is multibyte.
18575 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
18576 <charset>: Use CHAR_LEADING_CODE to get leading codes.
18577 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
18578 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
18579 multibyte always 1.
18580 (re_search_2): In emacs, set the locale variable multibyte to 1,
18581 otherwise to 0. New local variable target_multibyte. Check it
18582 to decide the multibyteness of STR1 and STR2. If
18583 target_multibyte is zero, convert unibyte chars to multibyte
18584 before translating and checking fastmap.
18585 (TARGET_CHAR_AND_LENGTH): New macro.
18586 (re_match_2_internal): In emacs, set the locale variable multibyte
18587 to 1, otherwise to 0. New local variable target_multibyte. Check
18588 it to decide the multibyteness of STR1 and STR2. Use
18589 TARGET_CHAR_AND_LENGTH to fetch a character from D.
18590 <charset, charset_not>: If multibyte is nonzero, check fastmap
18591 only for ASCII chars. Call bcmp_translate with
18592 target_multibyte, not with multibyte.
18593 <begline>: Declare the local variable C as `unsigned'.
18594 (bcmp_translate): Change the last arg name to target_multibyte.
18595
18596 * search.c (compile_pattern_1): Don't adjust the multibyteness of
18597 the regexp pattern and the matching target. Set cp->buf.multibyte
18598 to the multibyteness of the regexp pattern. Set
18599 cp->but.target_multibyte to the multibyteness of the matching target.
18600 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
18601 FETCH_STRING_CHAR_ADVANCE.
18602 (Freplace_match): Convert unibyte chars to multibyte.
18603
18604 * syntax.c (char_quoted, back_comment, scan_words)
18605 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
18606 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
18607 unibyte chars to multibyte.
18608 (skip_chars): Delete the arg syntaxp, and move the code for
18609 handling syntaxes to skip_syntaxes. Change callers.
18610 Fix the case that the multibyteness of STRING and the current
18611 buffer doesn't match.
18612 (skip_syntaxes): New function.
18613 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
18614 SINGLE_BYTE_CHAR_P.
18615
186162008-02-01 Kenichi Handa <handa@m17n.org>
18617
18618 * xfaces.c (QCfontset): New variable.
18619 (LFACE_FONTSET): New macro.
18620 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
18621 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
18622 (Finternal_set_lisp_face_attribute)
18623 (Finternal_get_lisp_face_attribute): Handle QCfontset.
18624 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
18625 check also LFACE_FONTSET_INDEX.
18626 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
18627 attrs[LFACE_FONT_INDEX].
18628 (syms_of_xfaces): Intern and staticpro QCfontset.
18629
18630 * dispextern.h (enum lface_attribute_index): New member
18631 LFACE_FONTSET_INDEX.
18632
18633 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
18634
186352008-02-01 Kenichi Handa <handa@m17n.org>
18636
18637 * coding.c (coding_set_destination): Fix coding->destination for
18638 the case converting a region.
18639 (encode_coding_utf_8): Encode eight-bit chars as single byte.
18640 (encode_coding_object): Fix coding->dst_pos and
18641 coding->dst_pos_byte for the case converting a region.
18642
18643 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
18644
18645 * character.h (BYTE8_STRING): New macro.
18646
18647 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
18648
186492008-02-01 Kenichi Handa <handa@m17n.org>
18650
18651 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
18652 characters by octal form.
18653
18654 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
18655
18656 * buffer.h (_fetch_multibyte_char_len): Delete extern.
18657 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
18658 _fetch_multibyte_char_len.
18659 (FETCH_CHAR_AS_MULTIBYTE): New macro.
18660
18661 * casetab.c (set_canon, set_identity, shuffle): Simplify.
18662
18663 * casefiddle.c (casify_object): Simplify. Handle the case that
18664 the case conversion change the byte length.
18665 (casify_region): Likewise.
18666
18667 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
18668
18669 * character.c (_fetch_multibyte_char_len): Delete this variable.
18670 (syms_of_character): Setup Vprintable_chars.
18671
18672 * editfns.c (Fchar_equal): Fix for the unibyte case.
18673 (Finsert_byte): New function.
18674 (syms_of_editfns): Defsubr it.
18675
18676 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
18677 of direct code 0x3ffff.
18678
18679 * search.c (Freplace_match): Fix for the unibyte case.
18680
186812008-02-01 Kenichi Handa <handa@m17n.org>
18682
18683 * lread.c (safe_to_load_p): Fix the logic.
18684
18685 * syntax.c (scan_words): Don't treat characters belonging to
18686 different scripts as constituting a word.
18687
18688 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
18689
18690 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
18691
18692 * emacs.c (main): In the case of --unibyte, instead of aborting on
18693 finding non-empty buffer, make it unibyte.
18694
186952008-02-01 Kenichi Handa <handa@m17n.org>
18696
18697 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
18698 to create a fontset.
18699
187002008-02-01 Dave Love <fx@gnu.org>
18701
18702 * character.c (Funibyte_char_to_multibyte): Doc fix.
18703
18704 * xfns.c [HAVE_STDLIB_H]: Fix last change.
18705
187062008-02-01 Kenichi Handa <handa@m17n.org>
18707
18708 * fontset.c (fontset_add): Make the type `int'.
18709 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
18710
18711 * character.c (unibyte_char_to_multibyte)
18712 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
18713 charset_unibyte, not charset_primary.
18714
18715 * charset.h (charset_unibyte): Extern it instead of charset_primary.
18716
18717 * charset.c (charset_unibyte): Rename from charset_primary.
18718 (Funibyte_charset): Rename from Fprimary_charset.
18719 (Fset_unibyte_charset): Rename from Fset_primary_charset.
18720 (syms_of_charset): Adjust for the above changes.
18721
18722 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
18723 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
18724 it->multibyte_p is zero.
18725
18726 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
18727 Delete extern.
18728
187292008-02-01 Kenichi Handa <handa@m17n.org>
18730
18731 * coding.c (Fdefine_coding_system_internal): Fix category setting
18732 for a coding system of type iso-2022.
18733
187342008-02-01 Kenichi Handa <handa@m17n.org>
18735
18736 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
18737
187382008-02-01 Kenichi Handa <handa@m17n.org>
18739
18740 * syntax.c (Vnext_word_boundary_function_table): New variable.
18741 (next-word-boundary-function-table): Declare it as a Lisp variable
18742 in syms_of_syntax.
18743 (scan_words): Call functions in Vnext_word_boundary_function_table
18744 if any.
18745
18746 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
18747
18748 * fontset.c (fs_load_font): If fontp->charset is not negative,
18749 return fontp without setting its members.
18750
187512008-02-01 Dave Love <fx@gnu.org>
18752
18753 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
18754
18755 * m/sparc.h (HAVE_ALLOCA): Delete.
18756
18757 * s/irix6-5.h: Don't include strings.h.
18758 (bcopy, bzero, bcmp): Don't undef.
18759
18760 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
18761
18762 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
18763 (TIOCSIGSEND): Don't test IRIX6.
18764 (bcopy, bzero, bcmp): Define conditionally.
18765
187662008-02-01 Kenichi Handa <handa@m17n.org>
18767
18768 * buffer.c (Qas, Qmake, Qto): New variables.
18769 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
18770 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
18771
18772 * callproc.c (Fcall_process): Don't call insert_1_both directly if
18773 we are inserting a process output into a multibyte buffer.
18774
18775 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
18776 multibyte_char_to_unibyte.
18777
18778 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
18779 by the primary charset, make it eight-bit char.
18780 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
18781
18782 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
18783 (charset_8_bit__control, charset_8_bit_graphic)
18784 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
18785 (define_charset_internal): New function.
18786 (syms_of_charset): Call define_charset_internal for pre-defined
18787 charsets.
18788
18789 * charset.h (charset_8_bit): Extern it.
18790
18791 * coding.c (make_conversion_work_buffer): Adjust for the change
18792 of Fset_buffer_multibyte.
18793 (encode_coding_raw_text): Increment p0 in the loop.
18794
18795 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
18796
18797 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
18798 for the change of Fset_buffer_multibyte.
18799
18800 * fns.c (Fstring_to_multibyte): New function.
18801 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
18802
188032008-02-01 Dave Love <fx@gnu.org>
18804
18805 * xfns.c (x_put_x_image): Declare args.
18806
18807 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
18808 (try_font_list): Declare an arg.
18809
18810 * xdisp.c (message2_nolog, set_message): Declare an arg.
18811
18812 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
18813
18814 * syntax.c (scan_sexps_forward): Declare an arg.
18815
18816 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
18817 Declare an arg.
18818
18819 * lisp.h (Fnew_fontset): Declare.
18820
18821 * keymap.c (push_key_description): Call CHARACTERP correctly.
18822
18823 * fontset.c (fontset_add): Declare args. Call make_number correctly.
18824 (face_for_char): Delete unused vars.
18825 (Fset_fontset_font): Doc fix. Delete unused vars.
18826
18827 * doc.c (Fsubstitute_command_keys): Delete unused vars.
18828
18829 * composite.c (update_compositions): Declare arg.
18830
18831 * cm.c (calccost, cmgoto): Declare args.
18832
18833 * charset.c: Remove `emacs' conditional. Doc fixes.
18834 (map_char_table_for_charset): Declare.
18835
18836 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
18837
18838 * ccl.c: Remove `emacs' conditional.
18839
188402008-02-01 Kenichi Handa <handa@m17n.org>
18841
18842 The following changes are to allow specifying multiple font
18843 patterns for a character range (specified by script or charset).
18844
18845 * Makefile.in (abbrev.o): Depend on syntax.h.
18846 (xfaces.o): Depend on charset.h.
18847
18848 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
18849 SINGLE_BYTE_CHAR_P.
18850
18851 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
18852
18853 * character.h (Vchar_script_table): Extern it.
18854
18855 * character.c (Vscript_alist): Delete.
18856 (Vchar_script_table, Qchar_script_table): New variable.
18857 (syms_of_character): Declare Vchar_script_table as a lisp variable
18858 and initialize it.
18859
18860 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
18861 have property char-table-extra-slots, make no extra slot.
18862
18863 * dispextern.h (struct face): Delete member `charset'.
18864 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
18865 SINGLE_BYTE_CHAR_P.
18866 (choose_face_font, lookup_non_ascii_face, font_name_registry):
18867 Add prototypes.
18868 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
18869 (generate_ascii_font_name): Rename from generate_ascii_font.
18870
18871 * fontset.h (get_font_repertory_func): New prototype.
18872 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
18873 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
18874
18875 * fontset.c (Qprepend, Qappend): New variables.
18876 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
18877 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
18878 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
18879 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
18880 (fontset_ref_and_range, fontset_add, reorder_font_vector)
18881 (load_font_get_repertory): New functions.
18882 (fontset_set): Delete.
18883 (fontset_face): New arg FACE. Return face ID, not face.
18884 Complete re-write to handle new fontset structure. Change caller.
18885 (free_face_fontset): Use ASET istead of AREF (X) = Y.
18886 (face_for_char): Don't call lookup_face.
18887 (make_fontset_for_ascii_face): New arg FACE.
18888 (fs_load_font): New arg CHARSET_ID. Don't check
18889 Vfont_encoding_alist here.
18890 (find_font_encoding): New function.
18891 (list_fontsets): Use STRINGP, not ! NILP.
18892 (accumulate_script_ranges): New function.
18893 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
18894 re-written to handle new fontset structure.
18895 (Ffontset_font): Return a copy of element.
18896 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
18897 docstring of font-encoding-alist.
18898
18899 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
18900 (Fset_fotset_font): Fix arguments to 5.
18901
18902 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
18903
18904 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
18905 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
18906 (highlight_trailing_whitespace): Adjust for the change of
18907 lookup_named_face.
18908
18909 * xfaces.c: Include charset.h.
18910 (load_face_font): Delete argument C. Change caller.
18911 (generate_ascii_font_name): Rename from generate_ascii_font.
18912 (font_name_registry): New function.
18913 (cache_face): Store ascii faces before non-ascii faces in buckets.
18914 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
18915 Lookup only ascii faces.
18916 (lookup_non_ascii_face): New function.
18917 (lookup_named_face): Delete argument C. Change caller.
18918 (lookup_derived_face): Delete argument C. Change caller.
18919 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
18920 a string, just call font_list with it.
18921 (choose_face_font): Delete arguments FACE and C. New arg
18922 FONT_SPEC. Change caller.
18923 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
18924 Change caller.
18925 (realize_non_ascii_face): New function.
18926 (realize_x_face): Call load_face_font here.
18927 (realize_tty_face): Delete argument C. Change caller.
18928 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
18929 get a face ID.
18930 (dump_realized_face): Don't print charset of FACE.
18931
18932 * xfns.c (x_set_font): Always call x_new_fontset and
18933 store_frame_parameter.
18934 (Fx_create_frame): Call x_new_fontset, not x_new_font.
18935 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
18936
18937 * xterm.h (x_get_font_repertory): Extern it.
18938
18939 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
18940 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
18941 it->multibyte_p is zero.
18942 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
18943 (x_new_fontset): If FONTSETNAME doesn't match any existing
18944 fontsets, create a new one.
18945 (x_get_font_repertory): New function.
18946
189472008-02-01 Kenichi Handa <handa@m17n.org>
18948
18949 * coding.c (Ffind_coding_systems_region_internal): Detect an
18950 ASCII only string correctly.
18951
18952 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
18953 version is 0.
18954
189552008-02-01 Kenichi Handa <handa@m17n.org>
18956
18957 * lread.c: Include "coding.h".
18958 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
18959 (load_each_byte, unread_char): New variables.
18960 (readchar_backlog): Delete.
18961 (readchar): Return a character unless load_each_byte is nonzero.
18962 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
18963 cons. If unread_char is not -1, simply return it.
18964 (unreadchar): Handle the case that readcharfun is
18965 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
18966 (read_multibyte): Delete.
18967 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
18968 (read_emacs_mule_char): New functions.
18969 (Fload): Even if the file doesn't have the extension ".elc", if
18970 safe_to_load_p returns a positive version number, assume that the
18971 file contains bytecompiled code. If the version is less than 22,
18972 load the file while decoding multibyte sequences by emacs-mule.
18973 (readevalloop): Don't use readchar_backlog.
18974 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
18975 (Fread_from_string): Pay attention to the case that STREAM is a cons.
18976 (read_escape): Delete the arg BYTEREP.
18977 (read1): Set load_each_byte to 1 temporarily while handling
18978 #@NUMBER. Don't call read_multibyte.
18979 (read_vector): Call Fread with a cons. If readcharfun is
18980 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
18981 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
18982 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
18983 and Qload_force_doc_strings.
18984
189852008-02-01 Kenichi Handa <handa@m17n.org>
18986
18987 * xdisp.c (face_before_or_after_it_pos): Call
18988 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
18989
189902008-02-01 Kenichi Handa <handa@m17n.org>
18991
18992 * character.h (TRAILING_CODE_P): New macro.
18993 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
18994 (string_char_with_unification): Fix prototype.
18995 (Vscript_alist): Extern it.
18996
18997 * character.c (Vscript_alist): New variable.
18998 (string_char_with_unification, str_as_unibyte)
18999 (string_escape_byte8): Add `const' to local variables.
19000 (syms_of_character): Declare script-alist as a Lisp variable.
19001
19002 * charset.h (Vcharset_ordered_list): Extern it.
19003 (charset_ordered_list_tick): Extern it.
19004 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
19005 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
19006 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
19007 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
19008 (Funify_charset): Adjust for the change of Funify_charset.
19009
19010 * charset.c (charset_ordered_list_tick): New variable.
19011 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
19012 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
19013 deunify intead of unify a charset.
19014 (string_xstring_p): Add `const' to local variables.
19015 (find_charsets_in_text): Add `const' to arguments and local variables.
19016 (encode_char): Adjust for the change of Funify_charset. Fix
19017 detecting of invalid code.
19018 (Fset_charset_priority): Increment charset_ordered_list_tick.
19019 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
19020 and TO_CODE.
19021
19022 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
19023 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
19024 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
19025 (decode_coding_ccl, consume_chars)
19026 (Ffind_coding_systems_region_internal)
19027 (Fcheck_coding_systems_region): Add `const' to local variables.
19028
19029 * print.c (print_object): Use octal form for printing the
19030 contents of a bool vector.
19031
190322008-02-01 Dave Love <fx@gnu.org>
19033
19034 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
19035 <version == 20>: Refuse to load.
19036
190372008-02-01 Dave Love <fx@gnu.org>
19038
19039 * fns.c: Move coding.h.
19040 (Qcodeset, Qdays, Qmonths): New.
19041 (concat): Use CHARACTERP instead of INTEGERP.
19042 (Flocale_codeset): Delete.
19043 (Flanginfo): New function.
19044 (syms_of_fns): Change accordingly.
19045
19046 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
19047
190482008-02-01 Dave Love <fx@gnu.org>
19049
19050 * casetab.c (init_casetab_once, init_casetab_once): Fix
19051 CHAR_TABLE_SET call.
19052
19053 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
19054
19055 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
19056
19057 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
19058 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
19059 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
19060
19061 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
19062
19063 * coding.c (ENCODE_DESIGNATION, decode_eol)
19064 (make_conversion_work_buffer, code_conversion_restore)
19065 (Fdefine_coding_system_internal): Convert Lisp types.
19066 (code_conversion_restore): Use EQ, not ==.
19067 (Fencode_coding_string): Fix code_convert_string call.
19068
19069 * coding.h (code_convert_region): Fix prototype.
19070
19071 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
19072
19073 * fontset.c (fontset_ref, fontset_set, fs_load_font)
19074 (Ffontset_info): Convert Lisp types.
19075
19076 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
19077
19078 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
19079
19080 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
19081
19082 * chartab.c: Include "...h", not <...h> in some cases.
19083
19084 * callproc.c (Fcall_process): Remove unused variables.
19085
190862008-02-01 Dave Love <fx@gnu.org>
19087
19088 * coding.c (Fset_coding_system_priority): Allow null arg list.
19089
190902008-02-01 Dave Love <fx@gnu.org>
19091
19092 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
19093 (Fself_insert_and_exit): Use CHARACTERP.
19094
19095 * callproc.c (Fcall_process): Remove unused vars.
19096
19097 * xterm.c (XTread_socket): Add extra dead keysyms.
19098
19099 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
19100
19101 * dispextern.h: Remove prototypes for redraw_frame,
19102 redraw_garbaged_frames.
19103
19104 * cmds.c (Fself_insert_command): Use CHARACTERP.
19105
19106 * chartab.c (make_sub_char_table): Remove unused var.
19107 (Fset_char_table_default, Fmap_char_table): Doc fix.
19108
19109 * keymap.c (access_keymap): Remove generic char code.
19110 (push_key_description): Use CHARACTERP.
19111
191122008-02-01 Dave Love <fx@gnu.org>
19113
19114 * charset.c: Doc fixes.
19115 (Funify_charset): Extra checking.
19116
191172008-02-01 Dave Love <fx@gnu.org>
19118
19119 * lread.c: Remove some unused variables.
19120 (safe_to_load_p): If safe, return the magic number version byte.
19121 (Fload): Maybe use load-with-code-conversion.
19122
191232008-02-01 Kenichi Handa <handa@m17n.org>
19124
19125 * category.c (Fmodify_category_entry): Don't modify the contents
19126 of category_set for characters out of the range. Avoid
19127 unnecessary modification.
19128
19129 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
19130 Vchar_unify_table. The default value of the table is now nil.
19131
19132 * character.c (syms_of_character): Setup Vchar_width_table for
19133 eight-bit-control and raw-byte chars.
19134
19135 * charset.h (enum define_charset_arg_index): Delete
19136 charset_arg_parents and add charset_arg_subset and
19137 charset_arg_superset.
19138 (enum charset_attr_index): Delete charset_parents and add
19139 charset_subset and charset_superset.
19140 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
19141 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
19142 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
19143 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
19144 (CHARSET_SUPERSET): New macros.
19145 (charset_work): Extern it.
19146 (ENCODE_CHAR): Use charset_work.
19147 (CHAR_CHARSET_P): Adjust for the change of encoder format.
19148 (map_charset_chars): Extern it.
19149
19150 * charset.c (load_charset_map): Set the default value of encoder
19151 and deunifier char-tables to nil.
19152 (map_charset_chars): Change argument. Change callers. Use
19153 map_char_table_for_charset instead of map_char_table.
19154 (Fmap_charset_chars): New optional args from_code and to_code.
19155 (Fdefine_charset_internal): Adjust for the change of
19156 `define-charset' (:parents -> :subset or :superset).
19157 (charset_work): New variable.
19158 (encode_char, syms_of_charset): Adjust for the change of
19159 Fdefine_charset_internal.
19160 (Ffind_charset_string): Setup the vector `charsets' correctly.
19161
19162 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
19163 the previous change.
19164 (char_table_ref_and_range): Adjust for the above change.
19165 (map_sub_char_table_for_charset): New function.
19166 (map_char_table_for_charset): New function.
19167
19168 * keymap.c (describe_vector): Handle a char-table directly here.
19169 (describe_char_table): Delete.
19170
19171 * lisp.h (map_charset_chars): Delete.
19172
191732008-02-01 Dave Love <fx@gnu.org>
19174
19175 * fns.c (count_combining): Comment out (unused).
19176 (Flocale_codeset): New.
19177 (syms_of_fns): Defsubr it.
19178
19179 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
19180 (size_t): Remove.
19181
191822008-02-01 Dave Love <fx@gnu.org>
19183
19184 * Makefile.in (chartab.o): Depend on charset.h.
19185
191862008-02-01 Kenichi Handa <handa@m17n.org>
19187
19188 * character.c (syms_of_character): Set the default value of
19189 Vprintable_chars to Qnil.
19190
191912008-02-01 Dave Love <fx@gnu.org>
19192
19193 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
19194
191952008-02-01 Kenichi Handa <handa@m17n.org>
19196
19197 * charset.c (load_charset_map): Handle the case that from < to
19198 correctly.
19199
19200 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
19201 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
19202 Pay attention to raw-8-bit chars.
19203
192042008-02-01 Kenichi Handa <handa@m17n.org>
19205
19206 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
19207 It is not bytecompiled now.
19208
19209 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
19210 (charset_jisx0208): New variables.
19211 (Fdefine_charset_internal): Setup them if appropriate.
19212 (init_charset_once): Initialize them to -1.
19213
19214 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
19215 (charset_jisx0208): Extern them.
19216
19217 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
19218 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
19219 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
19220 (setup_iso_safe_charsets): Fix arguments to Fassq.
19221 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
19222 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
19223 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
19224 (encode_coding_iso_2022): Change the 1st arg to
19225 ENCODE_ISO_CHARACTER to a variable.
19226
192272008-02-01 Kenichi Handa <handa@m17n.org>
19228
19229 * charset.h (enum define_charset_arg_index): New enums
19230 charset_arg_min_code and charset_arg_max_code.
19231 (struct charset): New member char_index_offset.
19232
19233 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
19234 Take charset->char_index_offset into account.
19235 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
19236 args[charset_arg_max_code]. Setup charset.char_index_offset.
19237 (syms_of_charset): Fix args to Fdefine_charset_internal.
19238
192392008-02-01 Dave Love <fx@gnu.org>
19240
19241 * coding.c (decode_coding_utf_8): Reject overlong sequences.
19242
192432008-02-01 Dave Love <fx@gnu.org>
19244
19245 * coding.c: Doc fixes.
19246 (Fcoding_system_aliases): Fix return value.
19247 (Qmac): Remove (duplicated) definition.
19248
192492008-02-01 Dave Love <fx@gnu.org>
19250
19251 * charset.c (Fcharset_priority_list, Fset_charset_priority):
19252 New functions.
19253
19254 * character.c (Fstring): Doc fix.
19255
19256 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
19257
19258 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
19259 (font-encoding-alist): Doc fix.
19260
192612008-02-01 Dave Love <fx@gnu.org>
19262
19263 * term.c (costs_set): Declare static, non-initialized for pcc.
19264 (encode_terminal_code): Remove unused var.
19265
19266 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
19267 for K&R.
19268
19269 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
19270
19271 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
19272 (suffixes): Move out of make_subsidiaries for K&R.
19273
19274 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
19275
19276 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
19277
192782008-02-01 Dave Love <fx@gnu.org>
19279
19280 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
19281
19282 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
19283
192842008-02-01 Yong Lu <lyongu@asia-infonet.com>
19285
19286 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
19287
19288 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
19289
192902008-02-01 Kenichi Handa <handa@m17n.org>
19291
19292 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
19293 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
19294
192952008-02-01 Kenichi Handa <handa@m17n.org>
19296
19297 * coding.c (decode_coding_charset): Adjust for the change of
19298 Fdefine_coding_system_internal.
19299 (Fdefine_coding_system_internal): For a coding system of
19300 `charset' type, store a list of charset IDs in
19301 `charset_attr_charset_valids' element of coding attributes.
19302
193032008-02-01 Kenichi Handa <handa@m17n.org>
19304
19305 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
19306 (emacs_mule_char): New arg src. Delete arg `composition'. Change
19307 caller. Handle 2-byte and 3-byte charsets correctly.
19308 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
19309 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
19310 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
19311 (DECODE_EMACS_MULE_21_COMPOSITION): Call
19312 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
19313 sequence.
19314 (decode_coding_emacs_mule): Handle composition correctly. Rewind
19315 `src' and `consumed_chars' correctly before calling emacs_mule_char.
19316 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
19317 and alt&rule composition.
19318 (decode_coding_iso_2022): Handle composition correctly.
19319 (init_coding_once): Setup emacs_mule_bytes for private charsets.
19320
19321 * charset.c (Fdefine_charset_internal): Fix bug for the case of
19322 re-defining a charset. If the charset has :emacs-mule-id, setup
19323 emacs_mule_bytes.
19324 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
19325
193262008-02-01 Kenichi Handa <handa@m17n.org>
19327
19328 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
19329 (encode_coding_big5, encode_coding_charset): If coding requires safe
19330 encoding, produce a character specified by
19331 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
19332
193332008-02-01 Dave Love <fx@gnu.org>
19334
19335 * xterm.c (XSetIMValues): Declare.
19336
19337 * process.c: Conditionally include sys/wait.h, pty.h.
19338
19339 * print.c (print_object): Fix print format for 64-bit systems.
19340
19341 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
19342
19343 * buffer.c (emacs_strerror): Declare.
19344
19345 * fontset.c (Fclear_face_cache): Declare.
19346 (accumulate_font_info): Comment-out (unused).
19347 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
19348 variables.
19349
19350 * character.h (string_escape_byte8): Declare.
19351
19352 * charset.c (load_charset_map, load_charset_map_from_file): Remove
19353 unused vars.
19354 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
19355 (Fmap_charset_chars): Doc fix.
19356
19357 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
19358 (Fset_coding_system_priority, Fset_coding_system_priority)
19359 (Fdefine_coding_system_internal): Doc fix.
19360
193612008-02-01 Dave Love <fx@gnu.org>
19362
19363 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
19364
193652008-02-01 Kenichi Handa <handa@m17n.org>
19366
19367 * character.c (string_escape_byte8): Make multibyte string with
19368 correct size.
19369
19370 * charset.c (Fmake_char): Delete unnecessary code.
19371
193722008-02-01 Kenichi Handa <handa@m17n.org>
19373
19374 * xfns.c (x_encode_text): Allocate coding.destination here, and
19375 call encode_coding_object with dst_object Qnil.
19376
19377 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
19378 multibyte form correctly.
19379
19380 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
19381 against Vfont_encoding_alist.
19382
19383 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
19384 handling of charset list.
19385 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
19386 (decode_coding_object): Move point to coding->dst_pos before
19387 calling post-read-conversion function.
19388 (encode_coding_object): Give correct arguments to
19389 pre-write-conversion. Ignore the return value of
19390 pre-write-conversion function. Pay attention to the case that
19391 pre-write-conversion changes the current buffer. If dst_object is
19392 Qt, even if coding->src_bytes is zero, allocate at least one byte
19393 to coding->destination.
19394
19395 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
19396
19397 * charset.c (Fmake_char): Make it more backward compatible.
19398 (Fmap_charset_chars): Fix docstring.
19399
194002008-02-01 Dave Love <fx@gnu.org>
19401
19402 * coding.c: Doc fixes.
19403 (Fdefine_coding_system_alias): Use names, not symbols, in
19404 coding-system-alist.
19405
194062008-02-01 Kenichi Handa <handa@m17n.org>
19407
19408 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
19409 of calling free_realized_face.
19410
194112008-02-01 Yong Lu <lyongu@asia-infonet.com>
19412
19413 * charset.c (read_hex): Don't treat SPC as a comment starter.
19414 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
19415 (Fdecode_char): Fix typo.
19416
194172008-02-01 Kenichi Handa <handa@m17n.org>
19418
19419 * charset.h (struct charset): New member `code_space_mask'.
19420
19421 * coding.c (coding_set_source): Delete the local variable beg_byte.
19422 (encode_coding_charset, Fdefine_coding_system_internal):
19423 Delete the local variable charset.
19424 (Fdefine_coding_system_internal): Setup
19425 attrs[coding_attr_charset_valids] correctly.
19426
19427 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
19428 member to check if CODE is valid or not.
19429 (Fdefine_charset_internal): Initialize `code_space_mask' member.
19430 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
19431 is within the range of charset->min_code and carset->max_code.
19432
194332008-02-01 Dave Love <fx@gnu.org>
19434
19435 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
19436
19437 * dispextern.h (generate_ascii_font): Fix return type.
19438
19439 * xfaces.c (generate_ascii_font): Fix arg declaration.
19440
19441 * coding.c (coding_inherit_eol_type)
19442 (Fset_terminal_coding_system_internal)
19443 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
19444
194452008-02-01 Kenichi Handa <handa@m17n.org>
19446
19447 * coding.c (decode_coding_charset, encode_coding_charset): Handle
19448 multiple charsets correctly.
19449
194502008-02-01 Kenichi Handa <handa@m17n.org>
19451
19452 * search.c (boyer_moore): Fix handling of multibyte character
19453 translation.
19454
19455 * xdisp.c (display_mode_element): When the variable `elt' is
19456 changed, update `this' and `lisp_string'.
19457
194582008-02-01 Kenichi Handa <handa@m17n.org>
19459
19460 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
19461
19462 * callproc.c (Fcall_process): Be sure to give the current buffer
19463 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
19464
19465 * charset.c (struct charset_map_entries): New struct.
19466 (load_charset_map): Rename from parse_charset_map. New args
19467 entries and n_entries. Change caller.
19468 (load_charset_map_from_file): Rename from load_charset_map.
19469 Change caller. New arg control_flag. Call load_charset_map at
19470 the tail.
19471 (load_charset_map_from_vector): New function.
19472 (Fdefine_charset_internal): Setup charset.compact_codes_p.
19473 (encode_char): If the charset is compact, change a character index
19474 to a code point.
19475
19476 * coding.c (coding_alloc_by_making_gap): Check the case that the
19477 source and destination are the same correctly.
19478 (decode_coding_raw_text): Set coding->consumed_char and
19479 coding->consumed to 0.
19480 (produce_chars): If coding->chars_at_source is nonzero, update
19481 coding->consumed_char and coding->consumed before calling
19482 alloc_destination.
19483 (Fdefine_coding_system_alias): Register ALIAS in
19484 Vcoding_system_alist.
19485 (syms_of_coding): Define `no-conversion' coding system at the tail.
19486
19487 * fileio.c (Finsert_file_contents): Set coding_system instead of
19488 val. If the current buffer is multibyte, always call
19489 decode_coding_gap.
19490
19491 * xfaces.c (try_font_list): Give higher priority to fontset's
19492 family than face's family.
19493
194942008-02-01 Kenichi Handa <handa@m17n.org>
19495
19496 * callproc.c (Fcall_process): Be sure to give the current buffer
19497 to decode_coding_c_string.
19498
19499 * xfaces.c (try_font_list): Give a family specified in a fontset
19500 higher priority than a family specified in a face.
19501
195022008-02-01 Kenichi Handa <handa@m17n.org>
19503
19504 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
19505 Fix arguments to insert_from_buffer.
19506
19507 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
19508
195092008-02-01 Kenichi Handa <handa@m17n.org>
19510
19511 * coding.c (produce_chars): Set the variable `multibytep' correctly.
19512 (decode_coding_gap): Set coding->dst_multibyte correctly.
19513
195142008-02-01 Kenichi Handa <handa@m17n.org>
19515
19516 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
19517 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
19518 (encode_coding_utf_16): Substitute coding->default_char for
19519 non-Unicode characters.
19520 (decode_coding): Don't call record_insert here.
19521 (setup_coding_system): Initialize `surrogate' of
19522 coding->spec.utf_16 to 0.
19523 (EMIT_ONE_BYTE): Fix for multibyte case.
19524
19525 * insdel.c (insert_from_gap): Call record_insert.
19526
195272008-02-01 Kenichi Handa <handa@m17n.org>
19528
19529 * casefiddle.c (casify_region): Fix multibyte case.
19530
19531 * character.c (c_string_width): Add return type `int'.
19532 (char_string_with_unification): Delete arg ADVANCED.
19533
19534 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
19535 (CHAR_STRING): Adjust for the change of char_string_with_unification.
19536 (CHAR_STRING_ADVANCE): Make it do-while statement.
19537
19538 * chartab.c (sub_char_table_set_range): Optimize for the case
19539 DEPTH == 3. Add workaround code for a GCC optimization bug.
19540
19541 * charset.c (parse_charset_map): Remove an unused variable.
19542
19543 * coding.c: Delete unused variables.
19544
19545 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
19546 earlier. If inserted is zero and the coding system doesn't
19547 require flushing, don't call decode_coding_gap.
19548
19549 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
19550
195512008-02-01 Kenichi Handa <handa@m17n.org>
19552
19553 The following changes are for using Unicode as an internal
19554 character model, and use UTF-8 format for buffer/string
19555 representation.
19556
19557 * .gdbinit (xchartable): Adjust for the change of char table structure.
19558 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
19559
19560 * Makefile.in (obj): Add character.o and chartab.o.
19561 (lisp, shortlisp): Remove utf-8.elc.
19562 (*.o): For many files, change dependency on charset.h to
19563 character.h, and add dependency on character.h.
19564 (character.o, chartab.o): New targets.
19565
19566 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
19567 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
19568 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
19569 of "charset.h".
19570
19571 * dired.c, filelock.c: Include "character.h".
19572
19573 * alloc.c: Include "character.h" instead of "charset.h".
19574 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
19575 (syms_of_alloc): Remove defsubr for Smake_char_table.
19576
19577 * buffer.c: Include "character.h" instead of "charset.h", don't
19578 include "coding.h".
19579 (Fset_buffer_multibyte): Adjust for UTF-8.
19580
19581 * buffer.h: EXFUN Fbuffer_live_p.
19582
19583 * callproc.c: Include "character.h" instead of "charset.h".
19584 (Fcall_process): Big change for the new code-conversion APIs.
19585
19586 * casetab.c: Include "character.h" instead of "charset.h".
19587 (set_canon, set_identity, shuffle): Adjust for the new
19588 map_char_table spec.
19589 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
19590 accessing the char table structure.
19591
19592 * chartab.c: New file that implements char table.
19593
19594 * category.c: Include "character.h".
19595 (copy_category_entry): New function.
19596 (copy_category_table): Call map_char_table and copy_category_entry.
19597 (Fmake_category_table): Initialize all top-level slots.
19598 (char_category_set): New function.
19599 (modify_lower_category_set): Delete.
19600 (Fmodify_category_entry): Call char_table_ref_and_range.
19601
19602 * category.h (CATEGORY_SET): Just call char_category_set.
19603
19604 * ccl.c: Include "character.h".
19605 (Qccl, Qcclp): New variables.
19606 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
19607 it's less than 256.
19608 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
19609 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
19610 and DST type.
19611 (ccl_driver): Change types of argument, adjust code accordingly.
19612 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
19613 ccl_driver.
19614 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
19615
19616 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
19617 New members src_multibyte, dst_multibyte, consumed, and produced.
19618 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
19619 (CODING_SPEC_CCL_PROGRAM): New macro.
19620 (ccl_driver): Update prototype.
19621 (Qccl, Qcclp, Fccl_program_p): Extern them.
19622 (CHECK_CCL_PROGRAM): New macro.
19623
19624 * character.c, character.h, chartab.c: New files.
19625
19626 * charset.c: Mostly re-written. Move character and multibyte sequence
19627 handling codes to character.c.
19628
19629 * charset.h: Mostly re-written. Move character and multibyte sequence
19630 handling codes to character.h.
19631
19632 * coding.c, coding.h: Mostly re-written.
19633
19634 * composite.c: Include "character.h" instead of "charset.h".
19635 (CHAR_WIDTH): Move to character.h.
19636 (HASH_KEY, HASH_VALUE): Delete.
19637
19638 * composite.h (enum composition_method): Change order of enumeration
19639 symbols.
19640
19641 * data.c: Include "character.h" instead of "charset.h".
19642 (Faref): Call CHAR_TABLE_REF for a char table.
19643 (Faset): Call CHAR_TABLE_SET for a char table.
19644
19645 * dispextern.h (free_realized_face, check_face_attribytes)
19646 (generate_ascii_font): Extern them.
19647 (free_realized_multibyte_face): Delete extern.
19648
19649 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
19650 table structure.
19651
19652 * editfns.c: Include "character.h" instead of "charset.h".
19653 (Fchar_to_string): Always call CHAR_STRING.
19654
19655 * emacs.c (main): Call init_charset_once, init_charset,
19656 syms_of_chartab, and syms_of_character.
19657
19658 * fileio.c: Include "character.h" instead of "charset.h".
19659 (Finsert_file_contents): Big change for the new code-conversion API.
19660 (choose_write_coding_system, Fwrite_region): Likewise.
19661 (build_annotations_2): Delete.
19662 (e_write): Big change for the new code-conversion API.
19663
19664 * fns.c: Include "character.h" instead of "charset.h".
19665 (copy_sub_char_table): Move to chartab.c.
19666 (Fcopy_sequence): Call copy_char_table for a char table.
19667 (concat): Delete codes calling count_multibyte.
19668 (string_char_to_byte, string_byte_to_char): Adjust for the new
19669 multibyte form.
19670 (internal_equal): Adjust for the change of char table structure.
19671 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
19672 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
19673 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
19674 (char_table_translate, optimize_sub_char_table)
19675 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
19676 chartab.c.
19677 (char_table_ref_and_index): Delete.
19678 (HASH_KEY, HASH_VALUE): Move to lisp.h.
19679 (Fmd5): Call preferred_coding_system instead of accessing
19680 Vcoding_category_list. Adjust for the new code-conversion API.
19681 (syms_of_fns): Move defsubr for char table related functions to
19682 chartab.c.
19683
19684 * fontset.c: Mostly re-written.
19685
19686 * fontset.h (struct font_info): Change type of the member encoding_type.
19687 (enum FONT_SPEC_INDEX): New enum.
19688 (fontset_font_pattern, fs_load_font): Update prototype.
19689 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
19690
19691 * indent.c: Include "character.h" instead of "charset.h".
19692 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
19693
19694 * insdel.c: Include "character.h" instead of "charset.h".
19695 (copy_text): Don't refer to Vnonascii_translation_table.
19696 (insert_from_gap): New function.
19697
19698 * keyboard.c: Include "character.h" instead of "charset.h".
19699 (command_loop_1): Never call direct_output_forward_char before
19700 a non-ASCII character.
19701 (read_char): If Vkeyboard_translate_table is a char table, always
19702 translate a character.
19703
19704 * keymap.c: Include "character.h".
19705 (store_in_keymap): Handle the case that IDX is a cons.
19706 (Fdefine_key): Handle the case that KEY is a cons and the car part
19707 is also a cons (range).
19708 (push_key_description): Adjust for the new character code.
19709 (describe_vector): Call describe_char_table for a char table.
19710 (describe_char_table): New function.
19711
19712 * keymap.h (describe_char_table): Extern it.
19713
19714 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
19715 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
19716 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
19717 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
19718 Delete.
19719 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
19720 structure.
19721 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
19722 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
19723 (CHARTAB_SIZE_BITS_3): New macros.
19724 (chartab_size): Extern it.
19725 (struct Lisp_Char_Table): Re-design.
19726 (struct Lisp_Sub_Char_Table): New structure.
19727 (HASH_KEY, HASH_VALUE): Move from fns.c.
19728 (CHARACTERBITS): Define as 22.
19729 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
19730 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
19731 (GC_SUB_CHAR_TABLE_P): New macro.
19732 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
19733 (code_convert_string_norecord): Deleted extern.
19734 (init_character_once, syms_of_character, init_charset)
19735 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
19736
19737 * lread.c: Include "character.h".
19738 (read_multibyte): New arg NBYTES.
19739 (read_escape): Change the meaning of returned *BYTEREP.
19740 (to_multibyte): Delete.
19741 (read1): Adjust the handling of char table and string.
19742
19743 * print.c: Include "character.h" instead of "charset.h".
19744 (print_string): Convert 8-bit raw bytes to octal form by
19745 string_escape_byte8.
19746 (print_object): Adjust for the new multibyte form. Print 8-bit
19747 raw bytes always in octal form. Handle sub char table correctly.
19748
19749 * process.c: Include "character.h" instead of "charset.h".
19750 (read_process_output, send_process): Adjust for the new
19751 code-conversion API.
19752
19753 * puresize.h (BASE_PURESIZE): Increase.
19754
19755 * regex.c: Include "character.h" instead of "charset.h".
19756 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
19757 (regex_compile): Accept a range whose starting and ending
19758 character have different leading bytes.
19759 (analyse_first): Adjust for the above change.
19760
19761 * search.c: Include "character.h" instead of "charset.h".
19762 (search_buffer, boyer_moore): Adjust for the new multibyte form.
19763 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
19764
19765 * syntax.c: Include "character.h" instead of "charset.h".
19766 (syntax_parent_lookup): Delete.
19767 (Fmodify_syntax_entry): Accept a cons as CHAR.
19768 (skip_chars): Adjust for the new multibyte form.
19769 (init_syntax_once): Call char_table_set_range instead of directly
19770 accessing the structure of a char table.
19771
19772 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
19773 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
19774 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
19775 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
19776
19777 * term.c: Include "buffer.h" and "character.h".
19778 (encode_terminal_code, write_glyphs): Adjust for the new
19779 code-conversion API.
19780 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
19781
19782 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
19783
19784 * xdisp.c: Include "character.h".
19785 (get_next_display_element): Adjust for the new multibyte form.
19786 (disp_char_vector): Adjust for the new char table structure.
19787 (decode_mode_spec_coding): Adjust for the new structure of
19788 coding system.
19789 (decode_mode_spec): Adjust for the new code-conversion API.
19790
19791 * xfaces.c: Include "character.h" instead of "charset.h".
19792 (load_face_font): Adjust for the change of choose_face_font and
19793 FS_LOAD_FONT.
19794 (generate_ascii_font): New function.
19795 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
19796 (set_font_frame_param): Adjust for the change of choose_face_font.
19797 (free_realized_face): Make it public.
19798 (free_realized_faces_for_fontset): Rename from
19799 free_realized_multibyte_face. Free also faces realized for ASCII.
19800 (choose_face_font): Change arguments. Adjust for the change of
19801 fontset_font_pattern and FS_LOAD_FONT.
19802
19803 * xfns.c: Include "character.h".
19804 (x_encode_text): Adjust for the new code-conversion API.
19805
19806 * xselect.c: Don't include "charset.h".
19807 (selection_data_to_lisp_data): Adjust for the new code conversion API.
19808
19809 * xterm.c: Include "character.h".
19810 (x_encode_char): New argument CHARSET. Change caller.
19811 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
19812 Call ENCODE_CHAR instead of SPLIT_CHAR.
19813 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
19814 CHAR_WIDTH instead of CHARSET_WIDTH.
19815 (XTread_socket): Adjust for the new code-conversion API.
19816 (x_new_font): Adjust for the change of FS_LOAD_FONT.
19817 (x_load_font): Adjust for the change of struct font.
19818
198192008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
19820
19821 * xfaces.c (face_at_buffer_position): Remove unused vars.
19822
198232008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19824
19825 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
19826 Fix overflow checking.
19827
198282008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19829
19830 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
19831 Cancel previous change.
19832
198332008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
19834
19835 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
19836 ccl->eight_bit_control. Fix check for buffer overflow.
19837 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
19838 (ccl_driver): Initialize extra_bytes to 0.
19839
198402008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
19841
19842 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
19843 return it ORed with ctrl_modifier.
19844
198452008-01-29 Miles Bader <miles@gnu.org>
19846
19847 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
19848
198492008-01-28 Jason Rumney <jasonr@gnu.org>
19850
19851 * w32.c (stat): Don't double check for networked drive.
19852
198532008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
19854
19855 * window.c (run_window_configuration_change_hook): New function.
19856 Code extracted from set_window_buffer. Set the selected frame.
19857 (set_window_buffer): Use it.
19858 * window.h (run_window_configuration_change_hook): Declare.
19859 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
19860
19861 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
19862
198632008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
19864
19865 * Makefile.in: Remove references to unused macros.
19866
198672008-01-26 Eli Zaretskii <eliz@gnu.org>
19868
19869 * w32.c (g_b_init_get_sid_sub_authority)
19870 (g_b_init_get_sid_sub_authority_count): New static variables.
19871 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
19872 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
19873 (init_user_info): Use them to retrieve uid and gid.
19874 Use 500/513, the Windows defaults, as Administrator's uid/gid.
19875 (fstat): Use pw_uid and pw_gid from the_passwd structure for
19876 st_uid and st_gid of the file.
19877
198782008-01-26 Jason Rumney <jasonr@gnu.org>
19879
19880 * w32.c (logon_network_drive): New function.
19881 (stat): Use it.
19882
198832008-01-26 Chong Yidong <cyd@stupidchicken.com>
19884
19885 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
19886 invisible text covered with an ellipsis.
19887
198882008-01-25 Richard Stallman <rms@gnu.org>
19889
19890 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
19891 jump back to beginning. Move some other initializations after that.
19892 (Qwindow_text_change_functions, Vwindow_text_change_functions):
19893 New variables.
19894 (syms_of_xdisp): Init them.
19895
19896 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
19897
19898 * buffer.c (reset_buffer_local_variables):
19899 Implement `permanent-local-hook'.
19900 (Qpermanent_local_hook): New variable.
19901 (syms_of_buffer): Init and staticpro it.
19902
199032008-01-25 Michael Albinus <michael.albinus@gmx.de>
19904
19905 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
19906
199072008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
19908
19909 * fns.c (Fclrhash): Return TABLE.
19910
199112008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19912
19913 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
19914 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
19915 is set even without positional changes.
19916 (x_scroll_bar_clear): Set bar->redraw_needed_p.
19917
19918 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
19919
199202008-01-23 Jason Rumney <jasonr@gnu.org>
19921
19922 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
19923
19924 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
19925 the unicode range available in MULE by locale-coding-system.
19926 Improve dbcs lead byte detection. Set event timestamp and modifiers
19927 earlier.
19928
199292008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19930
19931 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
19932 [MAC_OSX] (init_mac_osx_environment): Initialize it.
19933 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
19934 when used on child processes.
19935
199362008-01-21 Michael Albinus <michael.albinus@gmx.de>
19937
19938 * dbusbind.c (Fdbus_method_return_internal): Rename from
19939 Fdbus_method_return.
19940 (Fdbus_unregister_object): Move to dbus.el.
19941 (Fdbus_call_method, Fdbus_method_return_internal)
19942 (Fdbus_send_signal): Improve debug messages.
19943
199442008-01-20 Martin Rudalics <rudalics@gmx.at>
19945
19946 * undo.c (undo_inhibit_record_point): New variable.
19947 (syms_of_undo): Initialize it.
19948 (record_point): Don't record point when undo_inhibit_record_point
19949 is set.
19950
199512008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
19952
19953 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
19954
19955 * xdisp.c (Qauto_hscroll_mode): New var.
19956 (syms_of_xdisp): Initialize it.
19957 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
19958 window's buffer.
19959 (hscroll_windows): Don't check automatic_hscrolling_p here.
19960
19961 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
19962 vscroll if we're setting window-buffer to the value it already has.
19963
199642008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
19965
19966 * m/intel386.h: Remove references to XENIX.
19967
199682008-01-17 Andreas Schwab <schwab@suse.de>
19969
19970 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
19971 instead of HAVE_X86_64_LIB64_DIR.
19972 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
19973
199742008-01-17 Glenn Morris <rgm@gnu.org>
19975
19976 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
19977 to HAVE_X86_64_LIB64_DIR.
19978
199792008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
19980
19981 * s/irix3-3.h:
19982 * s/irix4-0.h:
19983 * s/386-ix.h:
19984 * s/domain.h:
19985 * s/hpux9-x11r4.h:
19986 * s/hpux9shxr4.h: Remove files for systems no longer supported.
19987
19988 * sysdep.c: Remove code containing references to symbols defined
19989 by unsupported systems.
19990
199912008-01-16 Glenn Morris <rgm@gnu.org>
19992
19993 * coding.c (select-safe-coding-system-function): Doc fix.
19994
199952008-01-15 Glenn Morris <rgm@gnu.org>
19996
19997 * config.in: Revert 2008-01-13 change: this is a generated file.
19998
199992008-01-13 Tom Tromey <tromey@redhat.com>
20000
20001 * lisp.h: Fix typo.
20002
200032008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
20004
20005 * m/sequent-ptx.h:
20006 * m/sequent.h:
20007 * s/ptx.h:
20008 * s/ptx4-2.h:
20009 * s/ptx4.h: Remove files for systems no longer supported.
20010
20011 * callproc.c (Fcall_process): Fix previous change.
20012
200132008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
20014
20015 * unexsunos4.c: Remove file, system not supported anymore.
20016
20017 * m/mips.h:
20018 * m/intel386.h:
20019 * callproc.c:
20020 * config.in:
20021 * ecrt0.c:
20022 * emacs.c:
20023 * fileio.c:
20024 * frame.c:
20025 * getpagesize.h:
20026 * keyboard.c:
20027 * lread.c:
20028 * process.c:
20029 * puresize.h:
20030 * sysdep.c:
20031 * systty.h:
20032 * syswait.h:
20033 * unexec.c:
20034 * xdisp.c:
20035 * alloc.c: Remove code containing references to symbols defined by
20036 unsupported systems.
20037
200382008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
20039
20040 * coding.c (detect_coding_mask): Fix previous change.
20041
200422008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
20043
20044 * coding.c (detect_coding_iso2022): New arg
20045 latin_extra_code_state. Allow Latin extra codes only
20046 when *latin_extra_code_state is nonzero.
20047 (detect_coding_mask): If there is a NULL byte, detect the encoding
20048 as UTF-16 or binary. If Latin extra codes exist, detect the
20049 encoding as ISO-2022 only when there's no other proper encoding is
20050 found.
20051
200522008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20053
20054 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
20055 #ifdef MAC_OS.
20056
200572008-01-08 Richard Stallman <rms@gnu.org>
20058
20059 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
20060
200612008-01-06 Nick Roberts <nickrob@snap.net.nz>
20062
20063 * keyboard.c (parse_menu_item): Don't enclose key bindings on
20064 menu bar in parentheses.
20065
200662008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
20067
20068 * m/7300.h:
20069 * m/acorn.h:
20070 * m/alliant-2800.h:
20071 * m/alliant.h:
20072 * m/alliant1.h:
20073 * m/alliant4.h:
20074 * m/altos.h:
20075 * m/amdahl.h:
20076 * m/apollo.h:
20077 * m/att3b.h:
20078 * m/aviion-intel.h:
20079 * m/aviion.h:
20080 * m/celerity.h:
20081 * m/clipper.h:
20082 * m/cnvrgnt.h:
20083 * m/convex.h:
20084 * m/cydra5.h:
20085 * m/delta88k.h:
20086 * m/dpx2.h:
20087 * m/dual.h:
20088 * m/elxsi.h:
20089 * m/f301.h:
20090 * m/gould-np1.h:
20091 * m/gould.h:
20092 * m/i860.h:
20093 * m/ibmps2-aix.h:
20094 * m/ibmrt-aix.h:
20095 * m/ibmrt.h:
20096 * m/irist.h:
20097 * m/is386.h:
20098 * m/isi-ov.h:
20099 * m/mega68.h:
20100 * m/mg1.h:
20101 * m/news-r6.h:
20102 * m/news-risc.h:
20103 * m/news.h:
20104 * m/nh3000.h:
20105 * m/nh4000.h:
20106 * m/ns16000.h:
20107 * m/ns32000.h:
20108 * m/nu.h:
20109 * m/orion.h:
20110 * m/orion105.h:
20111 * m/paragon.h:
20112 * m/pfa50.h:
20113 * m/plexus.h:
20114 * m/pyramid.h:
20115 * m/pyrmips.h:
20116 * m/sh3el.h:
20117 * m/sps7.h:
20118 * m/sr2k.h:
20119 * m/stride.h:
20120 * m/sun1.h:
20121 * m/sun2.h:
20122 * m/sun3-68881.h:
20123 * m/sun3-fpa.h:
20124 * m/sun3-soft.h:
20125 * m/sun3.h:
20126 * m/sun386.h:
20127 * m/symmetry.h:
20128 * m/tad68k.h:
20129 * m/tahoe.h:
20130 * m/targon31.h:
20131 * m/tek4300.h:
20132 * m/tekxd88.h:
20133 * m/tower32.h:
20134 * m/tower32v3.h:
20135 * m/ustation.h:
20136 * m/wicat.h:
20137 * m/xps100.h:
20138 * s/cxux.h:
20139 * s/cxux7.h:
20140 * s/dgux.h:
20141 * s/dgux4.h:
20142 * s/dgux5-4-3.h:
20143 * s/dgux5-4r2.h:
20144 * s/esix.h:
20145 * s/esix5r4.h:
20146 * s/hiuxmpp.h:
20147 * s/hiuxwe2.h:
20148 * s/iris3-5.h:
20149 * s/iris3-6.h:
20150 * s/isc2-2.h:
20151 * s/isc3-0.h:
20152 * s/isc4-0.h:
20153 * s/isc4-1.h:
20154 * s/newsos5.h:
20155 * s/newsos6.h:
20156 * s/osf1.h:
20157 * s/osf5-0.h:
20158 * s/riscix1-1.h:
20159 * s/riscix12.h:
20160 * s/sco4.h:
20161 * s/sco5.h:
20162 * s/sunos4-0.h:
20163 * s/sunos4-1.h:
20164 * s/sunos413.h:
20165 * s/sunos4shr.h:
20166 * s/umax.h:
20167 * s/unipl5-2.h:
20168 * s/xenix.h:
20169 * cxux-crt0.s:
20170 * unexapollo.c:
20171 * unexconvex.c:
20172 * unexenix.c:
20173 * unexsni.c: Remove files for systems no longer supported.
20174
20175 * m/intel386.h: Remove references to unsupported systems.
20176
20177 * w32.c (get_emacs_configuration): Remove reference to i860.
20178
20179 * sysdep.c: Remove dead code.
20180
201812008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
20182
20183 * s/rtu.h:
20184 * m/masscomp.h: Remove files. Platform is obsolete.
20185
201862008-01-04 Michael Albinus <michael.albinus@gmx.de>
20187
20188 * dbusbind.c (Fdbus_method_return): New function.
20189 (xd_read_message): Add the serial number to the event.
20190 (Fdbus_register_method): Activate the function.
20191
201922008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
20193
20194 * keyboard.c (read_key_sequence): Fix typo.
20195
201962008-01-03 Michael Albinus <michael.albinus@gmx.de>
20197
20198 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
20199 (xd_signature, xd_append_arg): Handle element type detection for
20200 empty arrays.
20201 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
20202 SDATA () calls; this must be solved more general.
20203 (Fdbus_register_signal): Use SBYTES instead of strlen.
20204
202052008-01-03 Magnus Henoch <magnus@zemdatav>
20206
20207 * dbusbind.c (xd_append_arg): Use unsigned char instead of
20208 unsigned int for byte values (necessary for big-endian platform).
20209 (Fdbus_call_method): Handle the case of no returned arguments.
20210
202112007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
20212
20213 * dbusbind.c (xd_read_message): Use non-static input_event struct.
20214
202152007-12-31 Magnus Henoch <mange@freemail.hu>
20216
20217 * dbusbind.c (xd_signature): Signature of variant is just "v".
20218
202192007-12-30 Michael Albinus <michael.albinus@gmx.de>
20220
20221 * dbusbind.c: Fix several errors and compiler warnings.
20222 Reported by Tom Tromey <tromey@redhat.com>.
20223 (XD_ERROR, XD_DEBUG_MESSAGE)
20224 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
20225 (xd_append_arg): Part for basic D-Bus types rewritten.
20226 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
20227 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
20228 appropriate.
20229 (xd_read_message): Return Qnil. Don't signal an error; it is not
20230 useful during event reading.
20231 (Fdbus_register_signal): Signal an error if the check for
20232 FUNCTIONP fails.
20233 (Fdbus_register_method): New function. The implementation is not
20234 complete, the call of the function signals an error therefore.
20235 (Fdbus_unregister_object): New function, renamed from
20236 Fdbus_unregister_signal. The initial check signals an error, if
20237 the object is not well formed.
20238
202392007-12-30 Richard Stallman <rms@gnu.org>
20240
20241 * textprop.c (get_char_property_and_overlay):
20242 Signal error if POSITION is out of range in a buffer.
20243
202442007-12-29 Martin Rudalics <rudalics@gmx.at>
20245
20246 * w32fns.c (Fx_create_frame): Make copy of frame parameters
20247 because the original parameters are in pure storage now.
20248
202492007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20250
20251 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
20252
202532007-12-22 Eli Zaretskii <eliz@gnu.org>
20254
20255 * callint.c (syms_of_callint) <command-history>: Add reference to
20256 history-length in the doc string.
20257
202582007-12-17 Jason Rumney <jasonr@gnu.org>
20259
20260 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
20261 before passing as wParam.
20262
202632007-12-22 Michael Albinus <michael.albinus@gmx.de>
20264
20265 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
20266 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
20267 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
20268 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
20269 as number.
20270 (Fdbus_call_method): Fix docstring.
20271
202722007-12-21 Michael Albinus <michael.albinus@gmx.de>
20273
20274 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
20275 New macros.
20276 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
20277 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
20278 Simplify.
20279 (xd_signature): New function.
20280 (xd_append_arg): Compute also signatures. Major rewrite.
20281 (xd_retrieve_arg): Make debug messages friendly.
20282 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
20283 Check for signatures of arguments.
20284
202852007-12-19 Michael Albinus <michael.albinus@gmx.de>
20286
20287 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
20288 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
20289 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
20290 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
20291 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
20292 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
20293 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
20294 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
20295 (xd_retrieve_value): Remove. Functionality included in ...
20296 (xd_append_arg): New function.
20297 (Fdbus_call_method, Fdbus_send_signal): Apply it.
20298
202992007-12-16 Michael Albinus <michael.albinus@gmx.de>
20300
20301 * dbusbind.c (top): Include <stdio.h>.
20302 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
20303 dbus_message_new_method_call and dbus_message_new_signal.
20304 (Fdbus_register_signal): Rename unique_name to uname.
20305 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
20306 non-existing unique name. Fix typos in matching rule. Return an
20307 object which is useful in Fdbus_unregister_signal.
20308 (Fdbus_unregister_signal): Reimplementation, in order to remove
20309 only the corresponding entry.
20310 (Vdbus_registered_functions_table): Change the order of entries.
20311 Apply these changes in xd_read_message and Fdbus_register_signal.
20312
203132007-12-16 Andreas Schwab <schwab@suse.de>
20314
20315 * fileio.c (Finsert_file_contents): Fix overflow check to not
20316 depend on undefined integer overflow.
20317
203182007-12-14 Jason Rumney <jasonr@gnu.org>
20319
20320 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
20321 for characters above 127.
20322
203232007-12-13 Jason Rumney <jasonr@gnu.org>
20324
20325 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
20326 before dereferencing array.
20327 (lookup_vk_code): Remove zero comparison.
20328
203292007-12-14 Michael Albinus <michael.albinus@gmx.de>
20330
20331 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
20332 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
20333 Use `unsigned int' instead of `uint'.
20334 (xd_read_message, Fdbus_register_signal): Split expressions into
20335 multiple lines before operators "&&" and "||", according to the
20336 GNU Coding Standards.
20337
203382007-12-14 Eli Zaretskii <eliz@gnu.org>
20339
20340 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
20341
203422007-12-12 Juri Linkov <juri@jurta.org>
20343
20344 * buffer.c (Frename_buffer): In interactive spec replace
20345 `read-buffer' with `read-string' that uses `buffer-name-history'
20346 as history, and the current buffer's name as default.
20347
203482007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
20349
20350 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
20351 manipulating the backtrace manually.
20352 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
20353 (struct backtrace, backtrace_list): Remove.
20354 (command_loop_1): Remove dead var `no_direct'.
20355
20356 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
20357 preserve non-built-in buffer-local variables.
20358 (Fkill_all_local_variables): Don't re-create&re-set permanent
20359 buffer-local variables.
20360
203612007-12-09 Juri Linkov <juri@jurta.org>
20362
20363 * buffer.c (Frename_buffer): Change interactive spec from "s" to
20364 Lisp code that uses `read-buffer' with current buffer as default.
20365
203662007-12-08 Michael Albinus <michael.albinus@gmx.de>
20367
20368 * dbusbind.c (xd_read_message): Generate an event for every
20369 registered handler. There might be several handlers registered
20370 for the same signal.
20371 (Fdbus_register_signal): Don't overwrite a registration for the
20372 same signal. Add a new registration if handlers are different.
20373 (Vdbus_registered_functions_table): Rework doc string.
20374
203752007-12-07 Michael Albinus <michael.albinus@gmx.de>
20376
20377 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
20378 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
20379 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
20380 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
20381 Unify argument lists.
20382 (xd_read_message, Fdbus_register_signal): Reorder and extend event
20383 arguments and hash table keys. Use unique name for service.
20384 (Fdbus_unregister_signal): Remove checks.
20385 (Vdbus_registered_functions_table): Fix doc string.
20386
203872007-12-05 Magnus Henoch <mange@freemail.hu>
20388
20389 * process.c (make_process): Initialize pty_flag to 0.
20390
203912007-12-05 Jason Rumney <jasonr@gnu.org>
20392
20393 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
20394 specified XBMs.
20395
203962007-12-05 Richard Stallman <rms@gnu.org>
20397
20398 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
20399
204002007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20401
20402 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
20403 New variable.
20404 (mac_try_close_socket) [MAC_OSX]: New function.
20405 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
20406 Update cfsockets_for_select. Replace invalid CFRunLoop source.
20407
20408 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
20409 Use mac_try_close_socket.
20410
204112007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20412
20413 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
20414 reloc_base.
20415 (copy_dysymtab): Compute relocation base here.
20416 (rebase_reloc_address) [__ppc64__]: New function.
20417 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
20418 changed.
20419
204202007-12-05 Jason Rumney <jasonr@gnu.org>
20421
20422 * w32proc.c (sys_spawnve): Quote args with wildcards.
20423
204242007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20425
20426 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
20427 __objc_* sections.
20428 (unrelocate) [_LP64]: Set relocation base to address of data segment.
20429
204302007-12-05 Michael Albinus <michael.albinus@gmx.de>
20431
20432 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
20433 Move check for Vdbus_registered_functions_table to
20434 xd_read_queued_messages.
20435 (xd_read_queued_messages): Protect xd_read_message calls by
20436 internal_condition_case_1.
20437
204382007-12-04 Michael Albinus <michael.albinus@gmx.de>
20439
20440 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
20441 Qdbus_system_bus and Qdbus_session_bus, respectively.
20442 (Vdbus_intern_symbols): Remove.
20443 (Vdbus_registered_functions_table): New hash table.
20444 (XD_SYMBOL_INTERN_SYMBOL): Remove.
20445 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
20446 Rewrite in order to manage registered functions by hash table
20447 Vdbus_registered_functions_table.
20448
204492007-12-03 Jan Djärv <jan.h.d@swipnet.se>
20450
20451 * xterm.c: Update URL to Window Manager Specification in comment.
20452
204532007-12-02 Michael Albinus <michael.albinus@gmx.de>
20454
20455 * config.in (HAVE_DBUS): Add.
20456
20457 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
20458 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
20459 (obj): Add $(DBUS_OBJ).
20460 (LIBES): Add $(DBUS_LIBS).
20461 (dbusbind.o): New target.
20462
20463 * dbusbind.c: New file.
20464
20465 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
20466
20467 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
20468 (Qdbus_event): New Lisp symbol.
20469 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
20470 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
20471 (keys_of_keyboard): Define dbus-event.
20472
20473 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
20474
204752007-12-01 Richard Stallman <rms@gnu.org>
20476
20477 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
20478
204792007-11-30 Jason Rumney <jasonr@gnu.org>
20480
20481 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
20482 (w32con_reset_terminal_modes): Clear screen buffer.
20483 (w32_face_attributes): Don't use color indexes that are out of range.
20484 Only reverse the default colors.
20485
20486 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
20487 WINDOWSNT.
20488
20489 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
20490
204912007-11-29 Jason Rumney <jasonr@gnu.org>
20492
20493 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
20494 (w32_face_attributes): Use Vtty_defined_color_alist to determine
20495 if the terminal colors are initialized.
20496 (unspecified_fg, unspecified_bg): Remove unused declarations.
20497
204982007-11-29 Andreas Schwab <schwab@suse.de>
20499
20500 * keyboard.c (apply_modifiers): Fix typo.
20501
205022007-11-29 Richard Stallman <rms@gnu.org>
20503
20504 * keymap.c (Fcurrent_local_map): Doc fix.
20505
205062007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
20507
20508 * s/gnu-kfreebsd.h: New file.
20509
205102007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
20511
20512 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
20513 Don't cast redundantly.
20514
20515 * keyboard.c (KEY_TO_CHAR): New macro.
20516 (parse_modifiers, apply_modifiers): Accept integer arguments.
20517 (read_key_sequence): Use them to unify the "shift->unshift" mapping
20518 for chars and symbol keys.
20519 After doing such remapping, apply function-key-map again.
20520
205212007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
20522
20523 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
20524 compiled anymore.
20525
205262007-11-26 Andreas Schwab <schwab@suse.de>
20527
20528 * process.c (list_processes_1): Fix indentation level of the
20529 command column.
20530
205312007-11-23 Andreas Schwab <schwab@suse.de>
20532
20533 * editfns.c (Fformat): Handle %c specially since it requires the
20534 argument to be of type int.
20535
205362007-11-23 Markus Triska <markus.triska@gmx.at>
20537
20538 * emacs.c (main): Call init_editfns before init_process, since
20539 init_process sets Vprocess_connection_type depending on OS release.
20540
205412007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
20542
20543 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
20544 (find_symbol_value): Use do_symval_forwarding.
20545
20546 * data.c (set_internal): Set the value in the `cons-cell' (for
20547 Buffer_Local_values) not only for frame-local variables.
20548
205492007-11-22 Andreas Schwab <schwab@suse.de>
20550
20551 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
20552 values to sprintf.
20553 * keymap.c (Fsingle_key_description): Likewise.
20554 * print.c (print_object): Likewise.
20555
205562007-11-22 Jan Djärv <jan.h.d@swipnet.se>
20557
20558 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
20559 file for image is nil.
20560
205612007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
20562
20563 * term.c: Include stdarg.h.
20564 (fatal): Implement using varargs.
20565 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
20566
205672007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
20568
20569 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
20570 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
20571 Update call to buffer_slot_type_mismatch.
20572 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
20573 (buffer_slot_type_mismatch): Update.
20574 * buffer.c (buffer_local_types): Remove.
20575 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
20576 (defvar_per_buffer): Set the type in the buffer_objfwd.
20577
205782007-11-21 Jason Rumney <jasonr@gnu.org>
20579
20580 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
20581 CreateFileMapping returns NULL on failure.
20582
205832007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
20584
20585 * search.c (Fset_match_data): Remove the `evaporate' feature.
20586 (unwind_set_match_data): Don't use the `evaporate' feature.
20587
205882007-11-21 Jason Rumney <jasonr@gnu.org>
20589
20590 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
20591
20592 * w32console.c (w32con_write_glyphs): Remove unused variables.
20593
205942007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
20595
20596 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
20597
20598 * s/darwin.h (MULTI_KBOARD): Remove.
20599
20600 * macfns.c (x_create_tip_frame, Fx_create_frame)
20601 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
20602
206032007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
20604
20605 * buffer.c (Fbuffer_local_value): Remove redundant test.
20606 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
20607 than in `current-buffer' to match the comment.
20608 Do the swap using swap_in_global_binding.
20609
20610 * data.c (store_symval_forwarding, set_internal):
20611 * eval.c (specbind): Remove dead code.
20612
20613 * coding.c (detect_coding, Fupdate_coding_systems_internal):
20614 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
20615 Since we do not want to see internal Lisp_*fwd objects here.
20616
206172007-11-18 Jan Djärv <jan.h.d@swipnet.se>
20618
20619 * sysdep.c (init_system_name): Use getaddrinfo if available.
20620
20621 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
20622 (x_scroll_bar_note_movement): start, end, with, height in struct
20623 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
20624
206252007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
20626
20627 * puresize.h (BASE_PURESIZE): Increase to 1190000.
20628
206292007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
20630
20631 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
20632 This undoes Richard's change of 14-Oct-2002.
20633
20634 * alloc.c (allocate_other_vector):
20635 * lisp.h (allocate_other_vector): Remove.
20636
20637 * window.c (struct save_window_data): Move non-lisp data to the end
20638 and make it `int' rather than Lisp_Object.
20639 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
20640 Done wrap/unwrap integer values.
20641 (Fset_window_configuration, compare_window_configurations):
20642 Update use of fields to their new types.
20643
20644 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
20645 Turn integer fields into `int'. Merge x_window_low and x_window_high.
20646 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
20647 (SET_SCROLL_BAR_X_WINDOW): Remove.
20648 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
20649 Access the new x_window field directly.
20650 * xterm.c (x_scroll_bar_create): Use a pseudovector.
20651 Don't wrap/unwrap integers into Lisp_Objects.
20652 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
20653 (x_scroll_bar_report_motion):
20654 Don't wrap/unwrap integers into Lisp_Objects.
20655 (x_term_init): Use SDATA.
20656 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
20657 (x_scroll_bar_set_handle, x_scroll_bar_remove)
20658 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
20659 (x_scroll_bar_report_motion, x_scroll_bar_clear):
20660 * xfns.c (x_set_background_color):
20661 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
20662 Access the new x_window field directly.
20663
20664 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
20665 (allocate_pseudovector): Make non-static.
20666
20667 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
20668 (allocate_pseudovector): Declare.
20669 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
20670
206712007-11-15 Andreas Schwab <schwab@suse.de>
20672
20673 * editfns.c (Fformat): Correctly format EMACS_INT values.
20674 Also take precision into account when formatting an integer.
20675
20676 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
20677
206782007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
20679
20680 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
20681 (syms_of_keyboard): Defsubr it.
20682
20683 * data.c (swap_in_global_binding): Fix longstanding bug where
20684 store_symval_forwarding was not called with the right second argument,
20685 thus causing objfwd-ing from being dropped.
20686
206872007-11-14 Juanma Barranquero <lekktu@gmail.com>
20688
20689 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
20690 (Fx_display_pixel_height, Fx_display_planes)
20691 (Fx_display_color_cells, Fx_server_max_request_size)
20692 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
20693 (Fx_display_visual_class, Fx_display_save_under):
20694 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
20695 (Fx_display_pixel_height, Fx_display_planes)
20696 (Fx_display_color_cells, Fx_server_max_request_size)
20697 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
20698 (Fx_display_mm_height, Fx_display_mm_width)
20699 (Fx_display_backing_store, Fx_display_visual_class)
20700 (Fw32_select_font, Fx_display_save_under):
20701 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
20702 (Fx_display_pixel_height, Fx_display_planes)
20703 (Fx_display_color_cells, Fx_server_max_request_size)
20704 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
20705 (Fx_display_save_under): Fix typos in docstrings.
20706
207072007-11-14 Juanma Barranquero <lekktu@gmail.com>
20708
20709 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
20710 corresponding to deleted entries; they are an implementation detail.
20711 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
20712 Remove variables.
20713 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
20714 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
20715 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
20716 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
20717 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
20718 (Fw32_define_rgb_color, Fw32_load_color_file)
20719 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
20720 Fix typos in docstrings.
20721 (Fx_server_version): Reflow docstring.
20722 (Fw32_shell_execute): Doc fixes.
20723
207242007-11-13 Juanma Barranquero <lekktu@gmail.com>
20725
20726 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
20727 if w32_parse_hot_key returned nil.
20728
207292007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
20730
20731 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
20732
207332007-11-09 Jason Rumney <jasonr@gnu.org>
20734
20735 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
20736
20737 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
20738
20739 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
20740 Remove W32_SCROLL_BAR_CLICK_EVENT.
20741
20742 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
20743 Add MULTIMEDIA_KEY_EVENT.
20744
20745 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
20746 (lispy_multimedia_keys) [WINDOWSNT]: New array.
20747 (make_lispy_event) [WINDOWSNT]: Use it to translate
20748 MULTIMEDIA_KEY_EVENT.
20749
20750 * w32term.h (WM_APPCOMMAND): Define if not already.
20751 (GET_APPCOMMAND_LPARAM): Likewise.
20752
20753 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
20754 WM_APPCOMMAND.
20755
20756 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
20757 (syms_of_w32fns): Export and initialize it.
20758 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
20759
207602007-11-09 Chong Yidong <cyd@stupidchicken.com>
20761
20762 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
20763 twice.
20764
20765 * xdisp.c (handle_face_prop): Fix last change.
20766
207672007-11-09 Richard Stallman <rms@gnu.org>
20768
20769 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
20770 not just for after-strings and before-strings.
20771 Call face_for_overlay_string and pass the overlay to it.
20772 (handle_display_prop): Determine whether property came from an overlay.
20773 Pass OVERLAY arg to handle_single_display_spec.
20774 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
20775 (load_overlay_strings): Fill in it->string_overlays.
20776 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
20777
20778 * xfaces.c (face_for_overlay_string): Function renamed from
20779 face_at_buffer_position_no_overlays, and add arg OVERLAY.
20780
20781 * dispextern.h (struct it): New elt string_overlays.
20782 New elt from_overlay, also in stack.
20783 Rearrange a few elements.
20784 (face_for_overlay_string): Decl renamed from
20785 face_at_buffer_position_no_overlays, and add argument.
20786
207872007-11-09 Richard Stallman <rms@gnu.org>
20788
20789 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
20790 to get the base face for an overlay string.
20791
20792 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
20793
20794 * xfaces.c (face_at_buffer_position_no_overlays): New function.
20795
20796 * xdisp.c (handle_stop): Move some code out of loop.
20797
207982007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20799
20800 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
20801 Fix conversion from Lisp object to ATSUFontID.
20802
208032007-11-09 Jason Rumney <jasonr@gnu.org>
20804
20805 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
20806
208072007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20808
20809 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
20810 Don't assume regions are aligned to page boundary.
20811 (print_load_command_name): Add LC_UUID if defined.
20812
208132007-11-09 Richard Stallman <rms@gnu.org>
20814
20815 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
20816
208172007-11-07 Jason Rumney <jasonr@gnu.org>
20818
20819 * s/windows95.h: Remove.
20820
208212007-11-06 Jan Djärv <jan.h.d@swipnet.se>
20822
20823 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
20824 abort with a message on unhandled store_type values.
20825
208262007-11-01 Jan Djärv <jan.h.d@swipnet.se>
20827
20828 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
20829 Remove HAVE_X11R5 and HAVE_X11R4.
20830
208312007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
20832
20833 * Makefile.in: Remove references to sunfns.c and sunfns.o.
20834
208352007-11-01 Johan Bockgård <bojohan@gnu.org>
20836
20837 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
20838 Don't set s->stippled_p here, since it has already been set by
20839 x_set_glyph_string_gc from x_draw_glyph_string.
20840
208412007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
20842
20843 * sunfns.c: Remove file.
20844
20845 * m/sun386.h:
20846 * m/sun2.h:
20847 * m/sparc.h: Remove Sun windows code.
20848
208492007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
20850
20851 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
20852 (init_keyboard): Set current_kboard's window-system to nil.
20853 (tty_read_avail_input): Typo.
20854 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
20855
208562007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
20857
20858 * s/usg5-4.h:
20859 * s/usg5-3.h:
20860 * s/ptx.h:
20861 * m/is386.h:
20862 * m/ibmps2-aix.h:
20863 * Makefile.in: Remove all mentions of X10.
20864
20865 * dispnew.c (syms_of_display): Don't mention version 10.
20866
208672007-10-28 Juanma Barranquero <lekktu@gmail.com>
20868
20869 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
20870 ($(BLD)/abbrev.$(O)): Remove.
20871
208722007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
20873
20874 Rewrite abbrev.c in Elisp.
20875 * image.c (Qcount): Don't declare as extern.
20876 (syms_of_image): Initialize and staticpro `Qcount'.
20877 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
20878 * emacs.c (main): Don't call syms_of_abbrev.
20879 * Makefile.in (obj): Remove abbrev.o.
20880 (abbrev.o): Remove.
20881 * abbrev.c: Remove.
20882
208832007-10-26 Martin Rudalics <rudalics@gmx.at>
20884
20885 * window.c (window_min_size_2): Don't count header-line.
20886
208872007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
20888
20889 * frame.h (struct frame): Move all bit fields after the first bit
20890 field to take advantage of the available space. Group all the
20891 chars together to reduce wasted space due to padding.
20892
208932007-10-26 Juanma Barranquero <lekktu@gmail.com>
20894
20895 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
20896
20897 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
20898 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
20899 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
20900 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
20901 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
20902 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
20903 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
20904 (last_marked, mark_object_loop_halt): Make static.
20905
20906 * frame.c (syms_of_frame) <delete-frame-functions>:
20907 Fix typo in docstring.
20908
209092007-10-25 Juanma Barranquero <lekktu@gmail.com>
20910
20911 * w32.c (init_environment): Fix tiny memory leak.
20912 (w32_get_resource): Remove unused variable `ok'.
20913
209142007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
20915
20916 Make `window-system' into a keyboard-local variable (rather than
20917 frame-local as done originally by multi-tty).
20918
20919 * keyboard.h (struct kboard): Add Vwindow_system.
20920 * keyboard.c (init_kboard): Set a default for Vwindow_system.
20921 (mark_kboards): Mark Vwindow_system.
20922
20923 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
20924 (init_display): Don't set the obsolete `window-system' frame-param.
20925
20926 * xterm.c (x_term_init):
20927 * w32term.c (w32_create_terminal):
20928 * term.c (init_tty): Set Vwindow_system.
20929 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
20930 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
20931
20932 * xfns.c (Fx_create_frame, x_create_tip_frame):
20933 * w32fns.c (Fx_create_frame, x_create_tip_frame):
20934 * macfns.c (Fx_create_frame):
20935 Don't set the obsolete `window-system' frame-param.
20936
20937 * frame.h (Qwindow_system): Remove.
20938 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
20939 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
20940
209412007-10-24 Richard Stallman <rms@gnu.org>
20942
20943 * frame.c (x_figure_window_size): For fullscreen case,
20944 set USPosition | PPosition without clobbering rest of window_prompting.
20945
20946 * keyboard.c (Fcurrent_idle_time): Doc fix.
20947
20948 * print.c (Fwith_output_to_temp_buffer): Doc fix.
20949
209502007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
20951
20952 * process.c (unwind_request_sigio): Only define if __ultrix__.
20953
20954 * callproc.c (child_setup): Remove spurious *.
20955
20956 * lisp.h (Fget_text_property): Declare.
20957 (have_menus_p): Declare it here rather than in sys-dep header files.
20958 * macterm.h (have_menus_p):
20959 * msdos.h (have_menus_p):
20960 * xterm.h (have_menus_p): Remove.
20961
20962 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
20963 (Fmake_variable_frame_local): Just check the variable's const-ness
20964 rather than checking nil or t.
20965
209662007-10-22 Jason Rumney <jasonr@gnu.org>
20967
20968 * w32fns.c: Include math.h.
20969 (w32_abort): Declaration moved to nt/config.nt.
20970
20971 * s/ms-w32.h (HAVE_STDLIB_H): Define.
20972 (abort): Redefinition moved to nt/config.nt.
20973
20974 * m/windowsnt.h: Remove.
20975
209762007-10-22 Juanma Barranquero <lekktu@gmail.com>
20977
20978 * emacs.c (Fdump_emacs): Fix typo in message.
20979 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
20980 <installation-directory>: Reflow docstring.
20981
209822007-10-22 Juri Linkov <juri@jurta.org>
20983
20984 * minibuf.c: Allow minibuffer default to be a list of default values.
20985 With empty input use the first element of this list as returned default.
20986 (string_to_object)
20987 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
20988 (read_minibuf): If defalt is cons, set histstring to its car.
20989 (Fread_string): If default_value is cons, set val to its car.
20990 (Fread_buffer): If def is cons, use its car.
20991 (Fcompleting_read): If defalt is cons, set val to its car.
20992
209932007-10-21 Michael Albinus <michael.albinus@gmx.de>
20994
20995 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
20996
209972007-10-20 Juanma Barranquero <lekktu@gmail.com>
20998
20999 * doc.c (Fdocumentation): Check for advice in all cases.
21000
210012007-10-19 Chong Yidong <cyd@stupidchicken.com>
21002
21003 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
21004
210052007-10-19 Richard Stallman <rms@gnu.org>
21006
21007 * doc.c (Fdocumentation): Check for and handle an advised function.
21008
210092007-10-19 Juanma Barranquero <lekktu@gmail.com>
21010
21011 * process.c (Fset_process_filter): Doc fix.
21012
210132007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
21014
21015 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
21016 which caused key-translation-map to applied repeatedly (thus breaking
21017 double-mode).
21018
210192007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
21020
21021 * xselect.c (x_own_selection, x_handle_selection_clear)
21022 (x_clear_frame_selections):
21023 * w32menu.c (list_of_panes, list_of_items):
21024 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
21025 * textprop.c (validate_plist, interval_has_all_properties)
21026 (interval_has_some_properties, interval_has_some_properties_list)
21027 (add_properties, text_property_list):
21028 * process.c (Fget_buffer_process, list_processes_1, status_notify):
21029 * minibuf.c (Fassoc_string):
21030 * macselect.c (x_own_selection, x_clear_frame_selections)
21031 (Fx_disown_selection_internal):
21032 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
21033 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
21034
210352007-10-17 Chong Yidong <cyd@stupidchicken.com>
21036
21037 * process.c: Link to libs for calling res_init() if available.
21038 (Fmake_network_process): Call res_init() before getaddrinfo or
21039 gethostbyname, if possible.
21040
210412007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
21042
21043 * lread.c (read1): Set pvectype for char_tables.
21044
21045 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
21046 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
21047 Add type checks.
21048 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
21049
21050 * alloc.c (free_misc): Use XMISCTYPE.
21051 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
21052
210532007-10-17 Glenn Morris <rgm@gnu.org>
21054
21055 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
21056 (syms_of_minibuf): Add Qcompletion_ignore_case.
21057 * dired.c (Qcompletion_ignore_case): Change to external.
21058 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
21059 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
21060 (Fread_file_name): Use it rather than intern'ing.
21061
21062 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
21063 (Fread_coding_system): Ignore case of user input.
21064
210652007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21066
21067 * xdisp.c (handle_display_prop): Ignore display specs after
21068 replacing one when string text is being replaced.
21069 (handle_single_display_spec): Pretend as if characters with display
21070 property haven't been consumed only when buffer text is being replaced.
21071
210722007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
21073
21074 * xfns.c (Fx_create_frame, Fx_display_list):
21075 * window.c (window_fixed_size_p, enlarge_window)
21076 (shrink_window_lowest_first):
21077 * macterm.c (init_font_name_table):
21078 * macfns.c (Fx_create_frame, Fx_display_list):
21079 * lread.c (close_load_descs):
21080 * keyboard.c (read_char_x_menu_prompt):
21081 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
21082 * coding.c (code_convert_region_unwind): Test the type of an object
21083 rather than just !NILP before extracting data from it.
21084
21085 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
21086
21087 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
21088 (XMISCANY): New macro.
21089 (XMISCTYPE): Use it.
21090 (struct Lisp_Misc_Any): New type.
21091 (union Lisp_Misc): Use it.
21092 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
21093 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
21094 (find_symbol_value, set_internal, default_value, Fset_default)
21095 (Fmake_variable_buffer_local, Fmake_local_variable)
21096 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
21097 (Flocal_variable_if_set_p, Fvariable_binding_locus):
21098 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
21099 * alloc.c (allocate_buffer): Set the size and tag.
21100 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
21101 Use XMISCANY.
21102 (die): Follow the GNU convention for error messages.
21103 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
21104 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
21105 tag any more.
21106 (set_buffer_internal_1):
21107 * frame.c (store_frame_param):
21108 * eval.c (specbind):
21109 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
21110
21111 * doc.c (Fsnarf_documentation): Simplify.
21112
211132007-10-14 Juanma Barranquero <lekktu@gmail.com>
21114
21115 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
21116 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
21117
211182007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
21119
21120 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
21121
211222007-10-14 Juanma Barranquero <lekktu@gmail.com>
21123
21124 * eval.c (do_autoload): Don't save autoloads.
21125
21126 * data.c (Ffset): Save autoload of the function being set.
21127
211282007-10-07 John Paul Wallington <jpw@pobox.com>
21129
21130 * xfns.c (x_create_tip_frame): Set the `display-type' frame
21131 parameter before setting up faces.
21132
211332007-10-13 Eli Zaretskii <eliz@gnu.org>
21134
21135 * ccl.c (Fregister_code_conversion_map):
21136 * keyboard.c (append_tool_bar_item): Reformat last change.
21137
21138 * lisp.h (eabs): Rename from `abs'. All callers changed.
21139
211402007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
21141
21142 * buffer.c (add_overlay_mod_hooklist):
21143 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
21144 * fontset.c (make_fontset):
21145 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
21146 (append_tool_bar_item):
21147 * macmenu.c (grow_menu_items):
21148 * w32menu.c (grow_menu_items):
21149 * xmenu.c (grow_menu_items): Use larger_vector.
21150
211512007-10-13 Eli Zaretskii <eliz@gnu.org>
21152
21153 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
21154 selected frame'' on MSDOS).
21155
211562007-10-12 Martin Rudalics <rudalics@gmx.at>
21157
21158 * frame.c (Qexplicit_name): New variable.
21159 (x_report_frame_params): Report it in parameter alist.
21160 (syms_of_frame): Intern and staticpro it.
21161
211622007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
21163
21164 * macfns.c (x_create_tip_frame): Set terminal for frame.
21165
211662007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
21167
21168 * frame.c (Qenvironment): Remove.
21169 (syms_of_frame) <Qenvironment>: Don't initialize.
21170 (Fdelete_frame): Don't treat the `environment' param specially.
21171 * frame.h (Qenvironment): Don't declare.
21172 * callproc.c (set_initial_environment): Don't set unused frame param.
21173
21174 * frame.c (Fframe_with_environment): Remove.
21175 (syms_of_frame) <Sframe_with_environment>: Don't declare.
21176
21177 * lisp.h (Fframe_with_environment): Don't declare.
21178
211792007-10-10 Juanma Barranquero <lekktu@gmail.com>
21180
21181 * indent.c (indent_tabs_mode, last_known_column)
21182 (last_known_column_modified): Make static.
21183 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
21184
211852007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
21186
21187 * puresize.h (BASE_PURESIZE): Increase to 1170000.
21188
211892007-10-09 Jason Rumney <jasonr@gnu.org>
21190
21191 * w32term.c (x_set_window_size): Disable code that attempts to tell
21192 Lisp code about a size change before it actually happens.
21193
211942007-10-09 Richard Stallman <rms@gnu.org>
21195
21196 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
21197 return HANDLED_RETURN.
21198
211992007-10-08 Martin Rudalics <rudalics@gmx.at>
21200
21201 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
21202 when there's an unread command event.
21203
21204 * frame.c (focus_follows_mouse): Move here from frame.el to allow
21205 window autoselection act appropriately when leaving selected frame.
21206 (syms_of_frame): Initialize focus_follows_mouse.
21207 * frame.h (focus_follows_mouse): Extern it.
21208 * macterm.c (XTread_socket): When focus_follows_mouse is nil
21209 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
21210 * msdos.c (dos_rawgetc): Likewise.
21211 * w32term.c (w32_read_socket): Likewise.
21212 * xterm.c (handle_one_xevent): Likewise.
21213 * xdisp.c (syms_of_xdisp): In doc-string of
21214 mouse-autoselect-window mention focus-follows-mouse.
21215
212162007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21217
21218 * macterm.c (mac_load_query_font): Fix missing return value.
21219 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
21220 Add BLOCK_INPUT.
21221
212222007-10-08 Richard Stallman <rms@gnu.org>
21223
21224 * xdisp.c (get_window_cursor_type): Implement documented behavior
21225 for cursor-in-non-selected-windows = t.
21226
212272007-10-08 Jason Rumney <jasonr@gnu.org>
21228
21229 * w32.c (w32_get_resource): Always close registry keys.
21230
212312007-10-08 Jason Rumney <jasonr@gnu.org>
21232
21233 * makefile.w32-in (LIBS): Add COMCTL32.
21234
21235 * w32fns.c (globals_of_w32fns): Init common controls.
21236
212372007-10-08 Richard Stallman <rms@gnu.org>
21238
21239 * image.c (our_memory_buffer): Rename from omfib_buffer.
21240
212412007-10-08 Richard Stallman <rms@gnu.org>
21242
21243 * buffer.c (Foverlays_at): Doc fix.
21244
212452007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
21246
21247 * fns.c (Fplist_put): Preserve uneven tail data.
21248
212492007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
21250
21251 * termhooks.h (enum event_kind): Remove trailing comma.
21252
21253 * frame.h (enum): Remove trailing comma.
21254
212552007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
21256
21257 * w32proc.c (delete_child): Don't terminate threads of zombies.
21258
212592007-10-08 Martin Rudalics <rudalics@gmx.at>
21260
21261 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
21262
21263 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
21264 last-repeatable-command.
21265 (init_kboard): Initialize Vlast_repeatable_command.
21266 (command_loop_1): Set it to real_this_command unless that was
21267 bound to an input event.
21268 (mark_kboards): Mark it.
21269
212702007-10-08 Richard Stallman <rms@gnu.org>
21271
21272 * eval.c (condition-case): Doc fix.
21273
212742007-10-08 Masatake YAMATO <jet@gyve.org>
21275
21276 * xfaces.c (tty_supports_face_attributes_p): Fix code
21277 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
21278 was copied and not edited.
21279
212802007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
21281
21282 Add new `input-decode-map' keymap and use it for terminal
21283 escape sequences.
21284 * keyboard.h (struct kboard): Add Vinput_decode_map.
21285 Remove Vlocal_key_translation_map.
21286 * keyboard.c (read_key_sequence): Add support for input-decode-map.
21287 (init_kboard): Init input-decode-map.
21288 Replace local-key-translation-map back with key-translation-map.
21289 (syms_of_keyboard): Declare input-decode-map.
21290 Remove local-key-translation-map. Update docstrings.
21291 (mark_kboards): Mark Vinput_decode_map.
21292 Don't mark Vlocal_key_translation_map.
21293 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
21294 Replace local-key-translation-map back with key-translation-map.
21295 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
21296 Bind in input-decode-map rather than function-key-map.
21297
21298 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
21299 This was made redundant by the previous introduction of XSETPVECTYPE.
21300
213012007-10-09 Richard Stallman <rms@gnu.org>
21302
21303 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
21304
213052007-09-29 Richard Stallman <rms@gnu.org>
21306
21307 * eval.c (internal_condition_case_2, internal_condition_case_1)
21308 (internal_condition_case): Reenable abort if x_catching_errors ()
21309 to see if that really happens and why.
21310
213112007-10-06 Andreas Schwab <schwab@suse.de>
21312
21313 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
21314
213152007-10-04 Juanma Barranquero <lekktu@gmail.com>
21316
21317 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
21318
213192007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
21320
21321 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
21322
213232007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
21324
21325 * window.h (struct window):
21326 * window.c (struct save_window_data, struct saved_window):
21327 * termhooks.h (struct terminal):
21328 * process.h (struct Lisp_Process):
21329 * frame.h (struct frame):
21330 * buffer.h (struct buffer):
21331 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
21332 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
21333 The size field of (pseudo)vectors is now unsigned.
21334 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
21335
21336 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
21337 Turn `count' into an integer.
21338
21339 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
21340 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
21341 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
21342 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
21343 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
21344
21345 * alloc.c (allocate_pseudovector): New fun.
21346 (ALLOCATE_PSEUDOVECTOR): New macro.
21347 (allocate_window, allocate_terminal, allocate_frame)
21348 (allocate_process): Use it.
21349 (mark_vectorlike): New function.
21350 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
21351 (mark_terminals): Use it.
21352 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
21353 (Fmake_byte_code): Use XSETPVECTYPE.
21354
21355 * frame.c (Fframe_parameters): Minor simplification.
21356
21357 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
21358
21359 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
21360
21361 * buffer.c (Fget_buffer_create, init_buffer_once):
21362 * lread.c (defsubr):
21363 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
21364
21365 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
21366 defined differently in the m/*.h files.
21367 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
21368 (XSETPVECTYPE): New macro.
21369 (XSETPSEUDOVECTOR): Use it.
21370
21371 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
21372 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
21373
21374 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
21375 * lread.c (defvar_per_buffer):
21376 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
21377
21378 * window.c (candidate_window_p): Only consider as visible frames that
21379 are on the same terminal.
21380
21381 * m/ibms390x.h (MARKBIT): Remove unused macro.
21382
213832007-10-01 Juanma Barranquero <lekktu@gmail.com>
21384
21385 * lread.c (Fload): Fix typo in docstring.
21386
213872007-10-01 Michaël Cadilhac <michael@cadilhac.name>
21388
21389 * floatfns.c (Fexpt): Manually check for overflows, so that a power
21390 of a non-zero value can't yield zero.
21391
213922007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
21393
21394 * term.c (term_clear_mouse_face, term_mouse_highlight)
21395 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
21396
21397 * print.c (safe_debug_print): Use XHASH.
21398
21399 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
21400 Lisp elements such as tags.
21401 (XHASH): New macro.
21402 (EQ): Use it.
21403 (SREF, SSET, STRING_COPYIN): Use SDATA.
21404 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
21405
21406 * alloc.c (mark_terminal): Remove left-over declaration.
21407 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
21408 (allocate_vectorlike): Remove type argument. Adjust callers.
21409 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
21410 Only handle the one remaining MEM_TYPE_VECTORLIKE.
21411
21412 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
21413 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
21414 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
21415 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
21416 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
21417 Use them.
21418
21419 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
21420 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
21421 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
21422
214232007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
21424
21425 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
21426 loaded by default.
21427
214282007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
21429
21430 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
21431 on this tty.
21432 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
21433
21434 * term.c (mouse_face_window): Rename from Qmouse_face_window.
21435 Update all users.
21436 (handle_one_term_event): Use Gpm_DrawPointer.
21437 (Fgpm_mouse_start): Rename from Fterm_open_connection.
21438 Signal errors instead of returning nil. Always return nil.
21439 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
21440 Make it a noop if gpm-mouse was not activated.
21441 (syms_of_term): Update names.
21442
214432007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
21444
21445 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
21446 (init_sys_modes): Check that gpm_tty is the current tty.
21447
21448 * alloc.c (allocate_terminal): Set the vector size to only count the
21449 lisp fields. Initialize those to nil.
21450 (mark_object): Don't treat terminals specially.
21451 (mark_terminal): Remove.
21452 (mark_terminals): Use mark_object instead.
21453
21454 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
21455 the GC to the beginning.
21456
21457 * indent.h:
21458 * indent.c: Use EMACS_INT for ints coming from Elisp data.
21459
21460 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
21461
214622007-09-25 Jason Rumney <jasonr@gnu.org>
21463
21464 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
21465
21466 * w32console.c (create_w32cons_output): Remove.
21467
21468 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
21469
21470 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
21471 (reset_sys_modes): Use reset_terminal_modes_hook.
21472
214732007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
21474
21475 * eval.c (do_autoload): Don't output any message.
21476
214772007-09-24 Juri Linkov <juri@jurta.org>
21478
21479 * emacs.c (standard_args): Change priority of "--no-splash"
21480 from 40 to 3. Add "--no-desktop" with the same priority.
21481
214822007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
21483
21484 * alloc.c (gc_sweep): Check cons cell mark bits word by word
21485 and optimize the case where they are all 1.
21486
214872007-09-23 Johannes Weiner <hannes@saeurebad.de>
21488
21489 * lisp.h (abs): Define if not defined.
21490 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
21491 Don't define `abs', since it's defined in lisp.h.
21492
214932007-09-22 Eli Zaretskii <eliz@gnu.org>
21494
21495 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
21496 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
21497 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
21498 (init_tty): Use DEV_TTY instead of "/dev/tty".
21499 [WINDOWSNT]: No need to protect from NAME arg being null.
21500
215012007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
21502
21503 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
21504 up the tty state.
21505
215062007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
21507
21508 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
21509 (gpm_tty): Change its type.
21510 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
21511 (gpm_tty): Change its type and initialize it.
21512 (Fterm_open_connection): Check the frame is indeed a tty.
21513 Use the new gpm_tty.
21514 (Fterm_close_connection): Use the new gpm_tty.
21515 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
21516 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
21517
215182007-09-21 Juanma Barranquero <lekktu@gmail.com>
21519
21520 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
21521 underline_color, to draw strike-through.
21522
215232007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
21524
21525 * lisp.h (allocate_terminal): Declare.
21526
21527 * window.c (candidate_window_p): Consider frames that are being placed
21528 by the user as somewhere between visible and iconified.
21529 (window_loop): Prefer windows on the current frame.
21530 (Fselect_window): Move the use of select-frame to the beginning so we
21531 can just delegate all the work (it'll call us back anyway).
21532
21533 * frame.c (Qdisplay_environment_variable):
21534 * frame.h (Qdisplay_environment_variable): Delete.
21535
21536 * .gdbinit (xbacktrace): Print the arg's address rather than the value
21537 of the first arg, since that value may be a union.
21538
21539 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
21540 parameter rather than Qdisplay_environment_variable. If all else
21541 fails, look for DISPLAY in initial-environment.
21542
215432007-09-21 Glenn Morris <rgm@gnu.org>
21544
21545 * Makefile.in (emacstool): Remove target.
21546 (lisp, shortlisp): Remove termdev.elc.
21547
215482007-09-21 Markus Triska <markus.triska@gmx.at>
21549
21550 * xterm.c (x_delete_display): Compile session management conditionally.
21551
215522007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
21553
21554 * callproc.c (getenv_internal_1): New function.
21555 (getenv_internal): Use it.
21556 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
21557
21558 * terminal.c (get_terminal): Don't accept ints to represent terminals.
21559 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
21560 (Fset_terminal_parameter): Work with dead terminals as well.
21561 (Fmodify_terminal_parameters): Remove.
21562
21563 * terminal.c (get_terminal): Handle terminals.
21564 Make sure the terminal returned is live.
21565 (create_terminal): Use allocate_terminal.
21566 (mark_terminals): Move to alloc.c.
21567 (delete_terminal): Use terminal->name as liveness status.
21568 NULL out fields after freeing their contents.
21569 Don't deallocate the object.
21570 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
21571 rather than an int.
21572 (Fterminal_live_p): Accept non-integer arguments.
21573 (Fterminal_list): Return terminal objects rather than an ints.
21574
21575 * alloc.c (enum mem_type): New member for `terminal' objects.
21576 (allocate_terminal): New function.
21577 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
21578 Handle terminals.
21579 (mark_terminal): New fun.
21580 (mark_terminals): Move from terminal.c.
21581
21582 * term.c (get_tty_terminal): Don't treat output_initial specially.
21583 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
21584 (delete_tty): Use terminal->name as liveness status.
21585
21586 * termhooks.h (struct terminal): Make it into a pseudovector.
21587 Remove `deleted' replaced by checking `name's nullness.
21588
21589 * print.c (print_object): Handle terminals.
21590
21591 * lisp.h (enum pvec_type): New `terminal' pseudovector.
21592 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
21593
21594 * frame.c (make_terminal_frame):
21595 * keyboard.c (tty_read_avail_input):
21596 * w32term.c (x_delete_terminal):
21597 * xfns.c (Fx_create_frame, x_create_tip_frame):
21598 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
21599
216002007-09-20 Glenn Morris <rgm@gnu.org>
21601
21602 * process.c (Fmake_network_process): Doc fix.
21603
216042007-09-19 Jason Rumney <jasonr@gnu.org>
21605
21606 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
21607
216082007-09-19 Michaël Cadilhac <michael@cadilhac.name>
21609
21610 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
21611 Fix a C warning regarding variable constness.
21612
21613 * xterm.c (handle_one_xevent): Fix a C warning.
21614
216152007-09-18 Jason Rumney <jasonr@gnu.org>
21616
21617 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
21618
216192007-09-17 Jan Djärv <jan.h.d@swipnet.se>
21620
21621 * gtkutil.c (gdpy_def): New variable.
21622 (xg_initialize): Initialize gdpy_def.
21623 (xg_display_close): If no other display exists, set gdpy_def to a
21624 new connection.
21625
216262007-09-16 Jan Djärv <jan.h.d@swipnet.se>
21627
21628 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
21629 when we have no file name for the icon.
21630 (xg_tool_bar_expose_callback): Remove.
21631 (xg_create_tool_bar): Don't connect expose signal to
21632 xg_tool_bar_expose_callback.
21633 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
21634
216352007-09-16 Andreas Schwab <schwab@suse.de>
21636
21637 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
21638 values instead of zapping them.
21639
216402007-09-14 Glenn Morris <rgm@gnu.org>
21641
21642 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
21643 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
21644 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
21645 scope and rename to omfib_buffer for clarity.
21646 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
21647
216482007-09-14 Kenichi Handa <handa@m17n.org>
21649
21650 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
21651
216522007-09-13 Jason Rumney <jasonr@gnu.org>
21653
21654 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
21655
21656 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
21657
21658 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
21659 (mac_term_init): Call here instead, passing rif.
21660
216612007-09-13 Glenn Morris <rgm@gnu.org>
21662
21663 * s/hpux.h: No longer define `static' as nothing.
21664
216652007-09-13 Johan Bockgård <bojohan@gnu.org>
21666
21667 * callint.c (Fcall_interactively): Remove unused var `fun'.
21668
216692007-09-12 Romain Francoise <romain@orebokech.com>
21670
21671 * window.c (prefer_window_split_horizontally, display_buffer):
21672 Revert 2007-09-08 change.
21673
216742007-09-12 Glenn Morris <rgm@gnu.org>
21675
21676 * alloca.c: Remove file.
21677 * Makefile.in (alloca): Do not undef.
21678 (allocaobj, alloca.o): Remove.
21679 (otherobj): Remove allocaobj.
21680 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
21681 * regex.c (C_ALLOCA): Remove all references and code that was only
21682 used when this was defined.
21683 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
21684 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
21685 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
21686
21687 * Makefile.in (SOURCES, unlock, relock): Delete.
21688
21689 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
21690 (menu_grab_callback): All uses changed.
21691
21692 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
21693 (x_reply_selection_request): All uses changed.
21694
216952007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
21696
21697 * lread.c (load_warn_old_style_backquotes): Change message to look
21698 better when it appears in the middle of byte-compiler messages.
21699
217002007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
21701
21702 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
21703
21704 * xterm.c (x_create_terminal): Add comment.
21705
21706 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
21707
217082007-09-10 Richard Stallman <rms@gnu.org>
21709
21710 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
21711
217122007-09-10 Michaël Cadilhac <michael@cadilhac.name>
21713
21714 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
21715 (DEFUN): Document `intspec', use it instead of `prompt'.
21716
21717 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
21718
21719 * data.c (Finteractive_form): If the interactive specification starts
21720 with a `(', use it as a Lisp form.
21721
21722 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
21723 name and file modes.
21724
21725 * callint.c (Fcall_interactively): Comment fixes.
21726
217272007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
21728
21729 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
21730 and compiled functions.
21731
217322007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
21733
21734 * window.c (prefer_window_split_horizontally): New variable.
21735 (display_buffer): Consider splitting window horizontally depending
21736 on prefer_window_split_horizontally.
21737
217382007-09-08 Eli Zaretskii <eliz@gnu.org>
21739
21740 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
21741
217422007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
21743
21744 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
21745
21746 * frame.c (x_set_frame_parameters): Check number is positive before
21747 using XFASTINT.
21748
21749 * window.c (freeze_window_start): Don't presume selected_window holds
21750 a window object.
21751 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
21752
217532007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
21754
21755 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
21756
217572007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
21758
21759 * window.c (Vsplit_window_preferred_function): New var.
21760 (Fdisplay_buffer): Use it.
21761 (syms_of_window): Export, and initialize it.
21762
217632007-09-06 Pixel <pixel@mandriva.com> (tiny change)
21764
21765 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
21766
217672007-09-06 Glenn Morris <rgm@gnu.org>
21768
21769 * gtkutil.c (menu_grab_callback) <cnt>:
21770 * xselect.c (x_reply_selection_request) <cnt>: Move static
21771 variable to file scope.
21772
217732007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
21774
21775 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
21776 consistent values of selected_frame and selected_window.
21777
217782007-09-04 Jason Rumney <jasonr@gnu.org>
21779
21780 * w32console.c (initialize_w32_display): Zero unused hooks.
21781
217822007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
21783
21784 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
21785 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
21786
217872007-09-04 Jason Rumney <jasonr@gnu.org>
21788
21789 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
21790 in w32console.c. Set up input. Remove XXX comments that have been
21791 confirmed as correct.
21792
21793 * s/ms-w32.h (MULTI_KBOARD): Define.
21794
21795 * w32console.c (one_and_only_w32cons): Remove.
21796 (initialize_w32_display): Take terminal argument.
21797
21798 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
21799 initialize_w32_display.
21800 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
21801
21802 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
21803
21804 * keyboard.c (discard_mouse_events): Discard it.
21805 (make_lispy_event): Translate it to a lisp event.
21806 (lispy_wheel_names): Add wheel-left and right events.
21807 (syms_of_keyboard): Enlarge wheel_syms.
21808
21809 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
21810 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
21811
21812 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
21813
21814 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
21815 from WM_MOUSEHWHEEL.
21816 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
21817
21818 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
21819 terminal.
21820
21821 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
21822 keyboard for the terminal.
21823
218242007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
21825
21826 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
21827 (Vresume_tty_hook): Rename from Vresume_tty_functions.
21828 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
21829 and resume-tty-function to resume-tty-hook.
21830 (Fsuspend_tty, Fresume_tty): Use new names.
21831
218322007-09-02 Jan Djärv <jan.h.d@swipnet.se>
21833
21834 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
21835 if it starts with "n:".
21836
218372007-08-31 Jan Djärv <jan.h.d@swipnet.se>
21838
21839 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
21840
218412007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
21842
21843 * frame.h:
21844 * frame.c (Qterm_environment_variable): Remove.
21845 (syms_of_frame): Don't init and staticpro it.
21846
21847 * callproc.c (getenv_internal): Remove special case for $TERM.
21848
21849 * callproc.c (Vinitial_environment): New variable.
21850 (set_initial_environment): Initialize it.
21851 (syms_of_callproc): Declare it.
21852 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
21853 TERM under which a process runs is never related to the TERM in which
21854 Emacs is running.
21855
218562007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
21857
21858 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
21859 * s/darwin.h: ... do it here.
21860
218612007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
21862
21863 * lisp.h (set_initial_environment): Rename from set_global_environment.
21864
21865 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
21866 removed by mistake on the multi-tty branch.
21867
21868 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
21869 (Fmodify_frame_parameters): Return a value.
21870
21871 * image.c (png_load): Comment-out var only used in commented-out code.
21872
21873 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
21874 before passing it to mark_object.
21875
21876 * xfaces.c (internal_resolve_face_name): Return a value.
21877 (internal_resolve_face_name, resolve_face_name_error): Comment out.
21878
21879 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
21880 (x_icon): Comment-out var only used in commented-out code.
21881
218822007-08-29 Romain Francoise <romain@orebokech.com>
21883
21884 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
21885 QUIT hasn't been provided.
21886
218872007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
21888
21889 * callproc.c (child_setup, getenv_internal): Use the
21890 display-environment-variable and term-environment-variable frame params.
21891 (set_initial_environment): Initialise Vprocess_environment.
21892
21893 * config.in: Disable multi-keyboard support on a mac.
21894
21895 * frame.c (Qterm_environment_variable)
21896 (Qdisplay_environment_variable): New variables.
21897 (syms_of_frame): Intern and staticpro them.
21898 (Fmake_terminal_frame): Disable output method test.
21899
21900 * frame.h: Declare them here.
21901
21902 * macfns.c (x_set_mouse_color): Get rif from the frame.
21903 (x_set_tool_bar_lines): Don't use updating_frame.
21904 (mac_window): Add 2 new parameters for consistency with other systems.
21905 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
21906 frame parameters following what is done in X11 and w32. Don't use
21907 FRAME_MAC_DISPLAY_INFO.
21908 (Fx_open_connection, start_hourglass): Remove window-system check.
21909 (x_create_tip_frame): Get the keyboard from the terminal.
21910
21911 * macmenu.c: Reorder includes.
21912 (Fx_popup_menu): Use terminal specific mouse_position_hook.
21913
21914 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
21915 terminal parameter.
21916 (x_clear_frame): Add a frame parameter.
21917 (note_mouse_movement): Get rif from the frame.
21918 (mac_term_init): Initialize the terminal.
21919 (mac_initialize): Make static and move terminal initialization ...
21920 (mac_create_terminal): ... to this new function.
21921
21922 * macterm.h (struct mac_display_info): Add terminal.
21923 (mac_initialize): Delete declaration.
21924
21925 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
21926
21927 * sysdep.c: Comment out text after #endif.
21928
21929 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
21930 is defined. Better initialize ttys in windows. Use terminal
21931 specific mouse_position_hook.
21932
21933 * termhooks.h (union display_info): Add mac_display_info.
21934
21935 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
21936 Set the default minibuffer frame, window_system and the rest of the
21937 frame parameters following what is done in X11.
21938
21939 * w32term.c (w32_initialize): Make static.
21940
21941 * xselect.c (x_handle_selection_clear): Only access
21942 terminal->kboard when MULTI_KBOARD is defined.
21943
21944 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
21945 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
21946
219472007-08-29 Jason Rumney <jasonr@gnu.org>
21948
21949 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
21950 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
21951
21952 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
21953 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
21954
21955 * keyboard.c (restore_kboard_configuration): Only define when
21956 MULTI_KBOARD defined.
21957
21958 * makefile.w32-in: Update dependancies from Makefile.in.
21959 (OBJ1): Add terminal.$(O)
21960
21961 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
21962 Don't define function body.
21963 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
21964
21965 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
21966
21967 * w32.c (request_sigio, unrequest_sigio): Remove.
21968
21969 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
21970 (w32con_clear_frame, w32con_clear_end_of_line)
21971 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
21972 (w32con_delete_glyphs, w32con_set_terminal_window)
21973 (scroll_line, w32_sys_ring_bell): Add frame arg.
21974 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
21975 Add terminal arg.
21976 (PICK_FRAME): Remove.
21977 (w32con_write_glyphs): Use frame specific terminal coding.
21978 (one_and_only_w32cons): New global variable.
21979 (initialize_w32_display): Use it for storing hooks.
21980 (create_w32cons_output): New function.
21981
21982 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
21983 arg a frame.
21984
21985 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
21986 Set window_system.
21987 (x_set_tool_bar_lines): Don't use updating_frame.
21988 (Fx_create_frame): Set terminal and ref count.
21989 (Fx_open_connection): Remove window-system check.
21990
21991 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
21992
21993 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
21994 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
21995 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
21996 Add frame arg.
21997 (x_delete_terminal, w32_create_terminal): New functions.
21998 (w32_term_init): Create a terminal.
21999 (w32_initialize): Move terminal specific initialization to
22000 w32_create_terminal.
22001
22002 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
22003 (w32_clear_rect, w32_clear_area): Use background from frame.
22004 (w32_display_info): Add terminal.
22005 (w32_sys_ring_bell, x_delete_display): Declare here.
22006
22007 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
22008
22009 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
22010
220112007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
22012
22013 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
22014 Fix get_named_tty calls for the controlling tty.
22015
220162007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
22017
22018 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
22019
220202007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
22021
22022 * term.c (tty_insert_glyphs): Add missing first parameter.
22023
220242007-08-29 Károly Lőrentey <karoly@lorentey.hu>
22025
22026 * buffer.c (Fbuffer_list, Fbury_buffer):
22027 Take frame->buried_buffer_list into account.
22028
22029 * cm.c (current_tty): New variable, for cmputc().
22030 (cmputc): Use it.
22031 (cmcheckmagic): Add tty parameter, look up terminal streams there.
22032 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
22033 (cmgoto): Add tty parameter. Pass it on to calccost().
22034 Use emacs_tputs() instead of tputs().
22035
22036 * cm.h (emacs_tputs): New macro to set current_tty, and then call
22037 tputs().
22038 (current_tty): New variable, for cmputc().
22039 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
22040
22041 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
22042 (internal_condition_case, internal_condition_case_1)
22043 (internal_condition_case_2): Don't abort when x_catching_errors.
22044
22045 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
22046 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
22047 prevent crashes caused by bogus longjmps in read_char.
22048
22049 * keymap.h (Fset_keymap_parent): Add EXFUN.
22050
22051 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
22052 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
22053 Remove redundant definition.
22054
22055 * macfns.c (x_set_mouse_color, x_make_gc):
22056 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22057
22058 * w32term.c (x_free_frame_resources):
22059 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22060 (w32_initialize): Use the accessor macros for terminal characteristics.
22061
22062 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
22063 Use the accessor macros for terminal characteristics.
22064 * msdos.c (internal_terminal_init): Use the accessor macros for
22065 terminal characteristics.
22066 (ScreenVisualBell, internal_terminal_init):
22067 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22068
22069 * termopts.h (no_redraw_on_reenter): Declare.
22070
22071 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
22072 (mark_terminals, mark_ttys): Declare.
22073 (Fgarbage_collect): Call them.
22074 (mark_object): Mark buried_buffer_list.
22075
22076 * prefix-args.c: Include stdlib.h for exit.
22077
22078 * syssignal.h: Add comment.
22079
22080 * indent.c: Include stdio.h.
22081
22082 * window.h (Vinitial_window_system): Declare.
22083 (Vwindow_system): Delete declaration.
22084
22085 * fontset.c (Finternal_char_font): Use FRAME_RIF.
22086
22087 * image.c (lookup_image): Don't initialize `c' until the xasserts
22088 have been run.
22089
22090 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
22091 FRAME_FOREGROUND_PIXEL.
22092
22093 * print.c (print_preprocess): Don't lose print_depth levels while
22094 iterating.
22095
22096 * widget.c (update_from_various_frame_slots):
22097 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22098
22099 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
22100 frames.
22101 (window_internal_height): Remove bogus make_number call.
22102 (init_window_once): Call make_terminal_frame with two zero parameters.
22103
22104 * fileio.c (Fread_file_name): Update comment.
22105
22106 * callint.c (Fcall_interactively):
22107 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
22108 Make sure it is correctly unwound.
22109
22110 * xsmfns.c (x_session_close): New function.
22111
22112 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
22113 Delete declarations.
22114
22115 * xterm.h: Remove declaration for x_fully_uncatch_errors.
22116 (x_output): Remove background_pixel and foreground_pixel fields.
22117 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
22118 (x_delete_device, x_session_close): Declare.
22119
22120 * lread.c: Include setjmp.h. Update declaration of `read_char'.
22121 (read_filtered_event): Call `read_char' with a local
22122 `wrong_kboard_jmpbuf'.
22123
22124 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
22125 Don't call single_kboard_state. Use FRAME_RIF.
22126
22127 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
22128 systems.
22129
22130 * lisp.h (set_process_environment): Rename to `set_global_environment'.
22131 (Fframe_with_environment, Fset_input_meta_mode)
22132 (Fset_quit_char): EXFUN.
22133 (x_create_device, tty_output, terminal, tty_display_info): Declare.
22134 (init_sys_modes, reset_sys_modes): Update prototypes.
22135 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
22136
22137 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
22138 Vlocal_key_translation_map, and Vkeyboard_translate_table.
22139 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
22140 Delete declarations.
22141 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
22142 (temporarily_switch_to_single_kboard, tty_read_avail_input):
22143 New declarations.
22144
22145 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
22146 already does that during init_display(). Call syms_of_keymap
22147 before syms_of_keyboard. Call `syms_of_terminal'.
22148 Call set_initial_environment, not set_process_environment.
22149 (shut_down_emacs): Call reset_all_sys_modes() instead of
22150 reset_sys_modes().
22151
22152 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
22153 (internal_resolve_face_name, resolve_face_name_error): New functions.
22154 (resolve_face_name): Protect against loops and errors thrown by Fget.
22155 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
22156 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
22157
22158 * scroll.c: Replace CURTTY() with local variables throughout the
22159 file (where applicable).
22160 (calculate_scrolling, calculate_direct_scrolling)
22161 (scrolling_1, scroll_cost): Use the accessor macros for terminal
22162 characteristics.
22163
22164 * keymap.c (Vfunction_key_map): Remove.
22165 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
22166 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
22167 (Vkey_translation_map): Remove.
22168 (syms_of_keymap): Remove DEFVAR for key-translation-map.
22169 (Fdescribe_buffer_bindings)
22170 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
22171 Update for terminal-local key-translation-map.
22172
22173 * Makefile.in (callproc.o): Update dependencies.
22174 (lisp, shortlisp): Add termdev.elc.
22175 (obj): Add terminal.o.
22176 (terminal.o): Add dependencies.
22177 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
22178 (data.o, fns.o): Add termhooks.h dependency.
22179 (SOME_MACHINE_LISP): Add dnd.elc.
22180 (minibuf.o): Fix typo.
22181 Update dependencies.
22182
22183 * data.c (do_symval_forwarding, store_symval_forwarding)
22184 (find_symbol_value): Use the selected frame's keyboard, not
22185 current_kboard.
22186
22187 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
22188 Vwindow_system.
22189
22190 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
22191 Fmenu_bar_open.
22192 (syms_of_xmenu): Update defsubr.
22193 (mouse_position_for_popup, Fx_popup_menu)
22194 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
22195 (set_frame_menubar, free_frame_menubar)
22196 (create_and_show_popup_menu, xmenu_show)
22197 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
22198 an X frame.
22199
22200 * xselect.c (x_own_selection): Abort if not an X frame.
22201 (some_frame_on_display): Check if it is an X frame.
22202 (x_handle_selection_clear): Deal with MULTI_KBOARD.
22203
22204 * coding.c: Include frame.h and termhooks.h.
22205 (terminal_coding, keyboard_coding): Delete.
22206 (Fset_terminal_coding_system_internal)
22207 (Fset_keyboard_coding_system_internal)
22208 (Fkeyboard_coding_system)
22209 (Fterminal_coding_system): Add a terminal parameter.
22210 Get terminal_coding from the terminal.
22211 (init_coding_once): Don't call setup_coding_system here.
22212
22213 * dispextern.h (set_scroll_region, turn_off_insert)
22214 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
22215 (tty_clear_end_of_line, tty_setup_colors)
22216 (delete_tty, updating_frame)
22217 (produce_special_glyphs, produce_glyphs, write_glyphs)
22218 (insert_glyphs): Remove.
22219 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
22220 (tty_turn_off_highlight, get_tty_size): Add declaration.
22221 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
22222
22223 * frame.h (enum output_method): Add output_initial.
22224 (struct x_output): Delete.
22225 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
22226 Access foreground_pixel and background_pixel directly from the frame.
22227 (tty_display): Delete.
22228 (struct frame): Add buried_buffer_list, foreground_pixel,
22229 background_pixel and terminal. Delete kboard.
22230 (union output_data): Add tty.
22231 (FRAME_KBOARD): Get the kboard from the terminal.
22232 (FRAME_INITIAL_P): New macro.
22233 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
22234 (Qterm_environment_variable, Qdisplay_environment_variable)
22235 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
22236 New declarations.
22237
22238 * termchar.h (tty_output, tty_display_info): New structures.
22239 (tty_list): Declare.
22240 (FRAME_TTY, CURTTY): New macros.
22241 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
22242 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
22243 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
22244 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
22245
22246 * callproc.c: Include frame.h and termhooks.h, for terminal
22247 parameters.
22248 (add_env): New function.
22249 (child_setup): Use it.
22250 (child_setup, getenv_internal): Handle the new Vprocess_environment.
22251 (getenv_internal): Fix get_terminal_param call.
22252 (Fgetenv_internal, egetenv): Update doc.
22253 (syms_of_callproc): Initialize Vprocess_environment to nil.
22254 Register and initialize them. Remove obsolete defvars. Update doc
22255 strings.
22256 (child_setup): Handle Vlocal_environment_variables.
22257 (getenv_internal): Add terminal parameter.
22258 Handle Vlocal_environment_variables.
22259 (Fgetenv_internal): Add terminal parameter.
22260 (child_setup, getenv_internal, Fgetenv_internal): Store the local
22261 environment in a frame (not terminal) parameter. Update doc strings.
22262 (set_initial_environment): Rename from set_global_environment.
22263 Store Emacs environment in initial frame parameter.
22264
22265 * xdisp.c (redisplay_internal): Update references to
22266 `previous_terminal_frame'.
22267 (display_mode_line, Fformat_mode_line): Replace calls to
22268 `push_frame_kboard' with `push_kboard'.
22269 (get_glyph_string_clip_rects): Add extra parentheses and
22270 braces to prevent compiler warnings.
22271 (calc_pixel_width_or_height): Add xassert to check that the
22272 frame is alive. Don't call `lookup_image' on a termcap frame.
22273 (message2_nolog, message3_nolog, redisplay_internal)
22274 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
22275 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
22276 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
22277 (Fx_display_pixel_width, Fx_display_pixel_height)
22278 (Fx_display_planes, Fx_display_color_cells)
22279 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
22280 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
22281 (Fx_display_backing_store, Fx_display_visual_class)
22282 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
22283 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
22284
22285 * xfns.c (x_set_foreground_color x_set_background_color)
22286 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
22287 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22288 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
22289 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
22290 terminal that is being deleted.
22291 (Fx_create_frame): Use `store_frame_param' to set `window-system'
22292 frame parameter, and make sure it overrides any user-supplied setting.
22293 (Fx_close_connection, Fx_synchronize): Unify argument names with
22294 the rest of the DEFUNs.
22295
22296 * dispnew.c (Fsend_string_to_terminal): Update call to
22297 `get_tty_terminal'.
22298 (Fredraw_frame, Fsend_string_to_terminal)
22299 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
22300 FRAME_TERMCAP_P and FRAME_TTY.
22301 (window_change_signal): Don't believe width/height values that are
22302 impossibly small.
22303 (Vinitial_window_system): Rename from Vwindow_system.
22304 (termscript, Wcm, rif): Delete.
22305
22306 * termhooks.h (struct terminal): New struct containing the
22307 previously global text display hooks and new members NAME,
22308 DELETED and PARAM_ALIST.
22309 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
22310 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
22311 (FRAME_RIF): New macros.
22312 (get_terminal_param, get_device): New declarations.
22313 (termscript): Delete declaration.
22314
22315 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
22316 (XTflash, x_free_frame_resources, x_scroll_bar_create)
22317 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
22318 FRAME_FOREGROUND_PIXEL.
22319 (x_fully_uncatch_errors): Disable definition.
22320 (x_scroll_bar_expose): Fix reference to foreground pixel.
22321 (XTread_socket): Disable loop on all X displays.
22322 (x_delete_terminal): Don't set terminal->deleted and let
22323 delete_terminal delete the frames on the terminal.
22324 (x_delete_display): Doc update to reflect changes in
22325 delete_terminal.
22326 (x_display_info) <terminal>: Move member earlier in the struct.
22327 (deleting_tty): Remove old variable.
22328 (Fsuspend_tty): Call clear_tty_hooks.
22329 (Fresume_tty, init_tty): Call set_tty_hooks.
22330 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
22331 errors on X frames.
22332 (x_catch_errors_unwind): Abort if x_error_message is NULL.
22333 (handle_one_xevent): Initialize `f' to NULL.
22334 (x_delete_terminal, x_create_terminal): New functions.
22335 (XTset_terminal_modes, XTreset_terminal_modes)
22336 (XTread_socket, x_connection_closed, x_term_init)
22337 (x_term_init, x_delete_display): Add terminal parameter.
22338 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
22339 X connections.
22340
22341 * frame.c: Include termchar.h.
22342 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
22343 (Qwindow_system, Qenvironment, Qterm_environment_variable)
22344 (Qdisplay_environment_variable): New vars.
22345 (Fframep): Deal with output_initial.
22346 (Fframe-live-p): Doc fix.
22347 (Fwindow-system): New function.
22348 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
22349 (make_terminal_frame): Don't create frames on a terminal that is
22350 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22351 (store_frame_param): Check for found_for_frame before calling XFRAME.
22352 (Fmake_terminal_frame): Handle NULL tty names correctly.
22353 (syms_of_frame): Enhance doc string of `default-frame-alist'.
22354 (Fdelete_frame): Remove unused variable `count'. Don't allow other
22355 frames to refer to a deleted frame in their 'environment parameter.
22356 (Fframe_with_environment): New function.
22357 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
22358 (get_future_frame_param): New function.
22359 (Fmake_terminal_frame): Use it.
22360 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
22361
22362 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
22363 * sysdep.c (reset_sys_modes): Update for renames.
22364
22365 * keyboard.c (tty_read_avail_input): New function.
22366 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
22367 (syms_of_keyboard): Defsubr them.
22368 (Fset_input_meta_mode, Fset_quit_char): New functions.
22369 (Fset_input_mode): Split to above functions.
22370 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
22371 parameter. Use it in call to `read_char'.
22372 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
22373 Set wrong_kboard_jmpbuf correctly in recursive calls.
22374 Use current_kboard to access Vkeyboard_translate_table.
22375 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
22376 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
22377 Update longjmp invocations. Remember the original current_kboard,
22378 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
22379 changes it. Comment out unnecessary calls to
22380 `record_single_kboard_state' and `any_kboard_state'.
22381 Update recursive calls.
22382 (wrong_kboard_jmpbuf): Remove global variable.
22383 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
22384 Handle deleted interrupted_kboards correctly; that is a legal
22385 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
22386 and read_char calls. Abort if interrupted_kboard died in read_char.
22387 (any_kboard_state, single_kboard_state)
22388 (push_frame_kboard): Remove function.
22389 (pop_kboard): Switch out of single_kboard mode if the kboard has
22390 been deleted. Remove unused variable. Help debugging by not
22391 changing current_kboard unnecessarily. Set current_kboard to the
22392 kboard of the selected frame when the stored kboard object has
22393 been deleted before pop_kboard.
22394 (temporarily_switch_to_single_kboard): Change first parameter to a
22395 frame pointer. Throw an error when caller wants to change kboards
22396 while in single_kboard mode. Don't push_kboard if we weren't in
22397 single kboard state. Don't pop_kboard if we popped into any
22398 kboard state.
22399 (restore_kboard_configuration): Abort if pop_kboard changed the
22400 kboard in single_kboard mode. Call pop_kboard only after setting
22401 up single_kboard mode.
22402 (Frecursive_edit): Switch to single_kboard mode only in nested
22403 command loops.
22404 (cmd_error, command_loop, command_loop_1, timer_check):
22405 Comment out unnecessary call to `any_kboard_state' and
22406 `record_single_kboard_state'.
22407 (delete_kboard): Exit single_kboard mode if we have just deleted
22408 that kboard. Use FRAME_KBOARD.
22409 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
22410 `fatal_error_signal'.
22411 (record_single_kboard_state): Don't push_kboard if we weren't in
22412 single kboard state. Don't pop_kboard if we popped into any
22413 kboard state.
22414 (push_frame_kboard): Rename to push_kboard.
22415 (kbd_buffer_get_event): Use FRAME_TERMINAL.
22416 (read_avail_input): Read input from all terminals.
22417 (mark_kboards): Also mark Vkeyboard_translate_table.
22418 (kbd_buffer_store_event_hold): Simplify condition.
22419 (read_key_sequence): Reinitialize fkey and keytran at each replay.
22420 (Vkeyboard_translate_table): Move to struct kboard.
22421 (init_kboard): Initialize Vkeyboard_translate_table.
22422 (syms_of_keyboard): Use DEFVAR_KBOARD to define
22423 Vkeyboard_translate_table. Update doc strings. Update docs of
22424 local-function-key-map and function-key-map.
22425
22426 * terminal.c: New file.
22427
22428 * term.c: Include errno.h.
22429 (Vring_bell_function, device_list, initial_device)
22430 (next_device_id, ring_bell, update_begin, update_end)
22431 (set_terminal_window, cursor_to, raw_cursor_to)
22432 (clear_to_end, clear_frame, clear_end_of_line)
22433 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
22434 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
22435 (syms_of_term): Move their initialization to terminal.c.
22436 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
22437 (Ftty_display_color_cells)
22438 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
22439 (clear_tty_hooks, set_tty_hooks)
22440 (init_tty, maybe_fatal): New functions.
22441 (Ftty_type): Return nil if terminal is not on a tty instead of
22442 throwing an error. Doc update.
22443 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
22444 Doc update. Initialize new subrs and variables.
22445 (delete_tty): Use terminal->deleted.
22446 (tty_set_terminal_modes): Rename from set_terminal_modes.
22447 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
22448 (set_scroll_region): Rename to `tty_set_scroll_region'.
22449 (turn_on_insert): Rename to `tty_turn_on_insert'.
22450 (turn_off_insert): Rename to `tty_turn_off_insert'.
22451 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
22452 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
22453 (toggle_highligh): Rename to `tty_toggle_highlight'.
22454 (background_highlight): Rename to `tty_background_highlight'.
22455 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
22456 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
22457 (tty_set_scroll_region, tty_background_highlight)
22458 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
22459 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
22460 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
22461 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
22462 Add static modifier.
22463 (tty_reset_terminal_modes, tty_set_terminal_window)
22464 (tty_set_scroll_region, tty_background_highlight)
22465 (tty_highlight_if_desired, tty_cursor_to)
22466 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
22467 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
22468 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
22469 renames.
22470
224712007-08-28 Jan Djärv <jan.h.d@swipnet.se>
22472
22473 * keyboard.c: Qrtl is new.
22474 (parse_tool_bar_item): Handle :rtl keyword.
22475 (syms_of_keyboard): Intern :rtl keyword.
22476
22477 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
22478
22479 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
22480 so no Lisp code is executed.
22481 (file_for_image, find_rtl_image): New functions.
22482 (xg_get_image_for_pixmap): Use file_for_image.
22483 (update_frame_tool_bar): If direction is RTL, use RTL image if
22484 defined. Use Gtk stock images if defined.
22485
224862007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22487
22488 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
22489 for nonexistent or zero-width glyph in composition glyph.
22490
224912007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
22492
22493 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
22494
22495 * xdisp.c (Finvisible_p): New function.
22496 (syms_of_xdisp): defsubr it.
22497
224982007-08-24 Juanma Barranquero <lekktu@gmail.com>
22499
22500 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
22501 Doc fixes.
22502
225032007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22504
22505 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
22506
225072007-08-24 Martin Rudalics <rudalics@gmx.at>
22508
22509 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
22510 whether decoding has modified buffer contents.
22511
225122007-08-24 Jason Rumney <jasonr@gnu.org>
22513
22514 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
22515 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
22516 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
22517 (init_svg_functions) [HAVE_NTGUI]: New function.
22518 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
22519 (svg_load_image): Use them.
22520 (svg_load_image) [HAVE_NTGUI]: Implement background.
22521
225222007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22523
22524 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
22525 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
22526 (LIBX): Remove @RSVG_LIBS@.
22527 (LIBES): Add $(RSVG_LIBS).
22528
22529 * image.c (svg_load_image): Blend with specified background if exists.
22530 Use IMAGE_BACKGROUND. Add Mac OS Support.
22531
22532 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
22533 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
22534 Remove macros.
22535 [MAC_OSX] (socket_callback): Do nothing.
22536 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
22537 ReceiveNextEvent.
22538 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
22539 socket_callback.
22540 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
22541
225422007-08-22 Glenn Morris <rgm@gnu.org>
22543
22544 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
22545
225462007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
22547
22548 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
22549
22550 * image.c: Add support for SVG images. Some additional comments
22551 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
22552 (svg_image_p): New function to test for SVG image.
22553 (svg_load): New function to load SVG image.
22554 (svg_load_image): New function, helper for svg_load.
22555 (Qsvg): New Lisp_object.
22556 (svg_keyword_index): New enum.
22557 (svg_format): New static `image_keyword' struct.
22558 (svg_type): New static `image_type' struct.
22559 (librsvg/rsvg.h): Include it.
22560
225612007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
22562
22563 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
22564
225652007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
22566
22567 * lread.c (Qold_style_backquotes): New var.
22568 (syms_of_lread): Init and staticpro it.
22569 (load_warn_old_style_backquotes): New fun.
22570 (Fload): Use them to warn about old style backquotes.
22571 (end_of_file_error, Fload): Remove unused vars.
22572
22573 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
22574
22575 * lread.c (Vold_style_backquotes): New var.
22576 (syms_of_lread): Init and export it to Elisp.
22577 (read1): Set it when we find an old-style (back)quote.
22578
225792007-08-22 Jason Rumney <jasonr@gnu.org>
22580
22581 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
22582
225832007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
22584
22585 * puresize.h (BASE_PURESIZE): Increase to 1140000.
22586
225872007-08-19 Richard Stallman <rms@gnu.org>
22588
22589 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
22590
225912007-08-19 Andreas Schwab <schwab@suse.de>
22592
22593 * alloc.c (pure): Round PURESIZE up.
22594
225952007-08-17 Jan Djärv <jan.h.d@swipnet.se>
22596
22597 * xterm.c (handle_one_xevent): Remove check that mouse click is in
22598 active frame.
22599
226002007-08-16 Richard Stallman <rms@gnu.org>
22601
22602 * eval.c (Fcommandp): Add parens to clarify.
22603
22604 * minibuf.c (Fall_completions): Use enum for type of table.
22605
22606 * emacs.c (USAGE2): Improve text.
22607
226082007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
22609
22610 * term.c (tty_default_color_capabilities): Declare static
22611 variables in file scope, to avoid HPUX compiler problem.
22612
226132007-08-13 Jan Djärv <jan.h.d@swipnet.se>
22614
22615 * gtkutil.c (update_frame_tool_bar): Use -1 as index
22616 to gtk_toolbar_insert.
22617
226182007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
22619
22620 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
22621
22622 * insdel.c (reset_var_on_error): New fun.
22623 (signal_before_change, signal_after_change):
22624 Use it to reset (after|before)-change-functions to nil in case of error.
22625 Bind inhibit-modification-hooks to t.
22626 Don't bind (after|before)-change-functions to nil while they run.
22627
226282007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22629
22630 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
22631 filling pixmap with stippled background.
22632
226332007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22634
22635 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
22636 Don't use invisible frame as parent window for repositioning.
22637
226382007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
22639
22640 * print.c (new_backquote_output): Rename from old_backquote_output.
22641 (print): Inverse its logic (according to its name) so as to match the
22642 behavior of new_backquote_flag in lread.c.
22643
226442007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22645
22646 * gmalloc.c (posix_memalign): New function.
22647
22648 * macterm.c (frame_highlight, frame_unhighlight): Don't call
22649 ActivateControl/DeactivateControl here.
22650 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
22651 frame-notice-user-settings is non-nil.
22652 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
22653 for kEventParamFMFontStyle.
22654 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
22655 mac_pass_command_to_system and mac_pass_control_to_system here.
22656 (XTread_socket): Call ActivateControl/DeactivateControl here.
22657 (XTread_socket) [TARGET_API_MAC_CARBON]:
22658 Check mac_pass_command_to_system and mac_pass_control_to_system here.
22659 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
22660 for window repositioning.
22661
226622007-08-08 Glenn Morris <rgm@gnu.org>
22663
22664 * Replace `iff' in doc-strings and comments.
22665
226662007-08-07 Chong Yidong <cyd@stupidchicken.com>
22667
22668 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
22669
226702007-08-07 Martin Rudalics <rudalics@gmx.at>
22671
22672 * fileio.c (Finsert_file_contents): Run format-decode and
22673 after_insert_file_functions on entire buffer when REPLACE is
22674 non-nil and inhibit modification_hooks and point_motion_hooks.
22675 For consistency, run after_insert_file_functions iff something
22676 got inserted. Move signal_after_change and update_compositions
22677 after code running after_insert_file_functions. Make sure that
22678 undo_list doesn't record intermediate steps of the decoding process.
22679
226802007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22681
22682 * emacs.c (main)
22683 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
22684 Call malloc_enable_thread on interactive startup.
22685
22686 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
22687 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
22688 [USE_PTHREAD]: Conditionalize with it.
22689 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
22690 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
22691 New functions.
22692
226932007-08-06 Chong Yidong <cyd@stupidchicken.com>
22694
22695 * xdisp.c (redisplay_window): When restoring original buffer
22696 position, make sure it is still valid.
22697
22698 * image.c (png_load): Ignore png-supplied background color.
22699
227002007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22701
22702 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
22703 Use kCFAbsoluteTimeIntervalSince1970.
22704
22705 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
22706 New variable.
22707 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
22708 event loop should be quit.
22709 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
22710 Quit dialog event loop if quit_dialog_event_loop is set.
22711
22712 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
22713 (Selection): New typedef. Use instead of ScrapRef.
22714 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
22715 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
22716 (mac_clear_selection): Rename from clear_scrap.
22717 (get_flavor_type_from_symbol): New argument SEL and subsume function of
22718 scrap_has_target_type. All uses changed.
22719 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
22720 (mac_selection_has_target_p): New functions.
22721 (mac_put_selection_value): Rename from put_scrap_string.
22722 (mac_get_selection_value): Rename from get_scrap_string.
22723 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
22724 (put_scrap_private_timestamp, scrap_has_target_type)
22725 (get_scrap_private_timestamp): Remove functions.
22726 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
22727 (x_own_selection, x_get_local_selection):
22728 Use mac_valid_selection_value_p.
22729 (x_own_selection): Don't use put_scrap_private_timestamp.
22730 Record OWNERSHIP-INFO into Vselection_alist instead.
22731 (x_get_local_selection): Don't check type if request is local.
22732 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
22733 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
22734
227352007-08-04 Jan Djärv <jan.h.d@swipnet.se>
22736
22737 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
22738 add comment explaining why.
22739
227402007-08-03 Richard Stallman <rms@gnu.org>
22741
22742 * fileio.c (Fvisited_file_modtime): Use make_time.
22743
227442007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
22745
22746 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
22747 build.
22748
227492007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
22750
22751 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
22752
227532007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
22754
22755 * puresize.h (BASE_PURESIZE): Increase to 1130000.
22756
227572007-07-30 Richard Stallman <rms@gnu.org>
22758
22759 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
22760
227612007-07-29 Jan Djärv <jan.h.d@swipnet.se>
22762
22763 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
22764
227652007-07-28 Nick Roberts <nickrob@snap.net.nz>
22766
22767 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
22768 remote default-directory.
22769
22770 * buffer.c (mode-line-format): Update doc string.
22771
227722007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22773
22774 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
22775 scroll bar gap.
22776 (x_scroll_bar_create): Set bar->fringe_extended_p.
22777 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
22778 on frame edge. Check fringe background extension. Don't clear
22779 extended fringe background area.
22780
22781 * w32term.h (struct scroll_bar): New member fringe_extended_p.
22782 (w32_fill_area): Enclose multiple statements with do ... while (0).
22783
22784 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
22785 Extend fringe background to scroll bar gap.
22786 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
22787 Set bar->fringe_extended_p.
22788 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
22789 Put leftmost/rightmost scroll bars on frame edge. Check fringe
22790 background extension. Don't clear extended fringe background area.
22791
22792 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
22793 New member fringe_extended_p.
22794
227952007-07-25 Glenn Morris <rgm@gnu.org>
22796
22797 * Relicense all FSF files to GPLv3 or later.
22798
22799 * COPYING: Switch to GPLv3.
22800
228012007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
22802
22803 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
22804
22805 * data.c (Finteractive_form): Check for the presence of an
22806 `interactive-form' symbol property more thoroughly.
22807
22808 * data.c (Finteractive_form): Use an `interactive-form' property if
22809 present, analogous to the function-documentation property.
22810
228112007-07-24 Jason Rumney <jasonr@gnu.org>
22812
22813 * w32fns.c (x_real_positions): Get real position from OS instead of
22814 calculating it.
22815
228162007-07-23 Jason Rumney <jasonr@gnu.org>
22817
22818 * filelock.c (current_lock_owner): Allow for @ sign in username.
22819
228202007-07-22 Nick Roberts <nickrob@snap.net.nz>
22821
22822 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
22823 remote default-directory.
22824
22825 * buffer.c (mode-line-format): Describe above case in doc string.
22826
228272007-07-20 Eli Zaretskii <eliz@gnu.org>
22828
22829 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
22830 Define if not defined.
22831
228322007-07-18 Jason Rumney <jasonr@gnu.org>
22833
22834 * w32proc.c (w32_executable_type): Handle 64 bit executables.
22835
228362007-07-18 Richard Stallman <rms@gnu.org>
22837
22838 * data.c (Fsetq_default): Doc fix.
22839
22840 * eval.c (Fsetq): Doc fix.
22841
228422007-07-18 Juanma Barranquero <lekktu@gmail.com>
22843
22844 * coding.c (Ffind_operation_coding_system):
22845 * eval.c (For, Fand): Doc fixes.
22846 Reported by Johan Bockgård.
22847
228482007-07-18 Jan Djärv <jan.h.d@swipnet.se>
22849
22850 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
22851
22852 * xterm.h: Declare x_ewmh_activate_frame.
22853
22854 * xterm.c (x_ewmh_activate_frame): New function.
22855 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
22856
228572007-07-17 Martin Rudalics <rudalics@gmx.at>
22858
22859 * window.c (Fdisplay_buffer): If largest or LRU window is the
22860 only window, split it even if it is not eligible for splitting.
22861 This restores the original behavior broken by the 2007-07-15
22862 change.
22863
228642007-07-17 Glenn Morris <rgm@gnu.org>
22865
22866 * abbrev.c (abbrev_check_chars): New function.
22867 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
22868 Call abbrev_check_chars to check abbrev characters are word
22869 constituents. Doc fix.
22870
228712007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
22872
22873 * process.c (Fstart_process, Fmake_network_process)
22874 (read_process_output): Fix up last changes.
22875
228762007-07-16 Eli Zaretskii <eliz@gnu.org>
22877
22878 * makefile.w32-in (clean): Don't delete *~.
22879
228802007-07-16 Andreas Schwab <schwab@suse.de>
22881
22882 * window.c (Fdisplay_buffer): Use NILP.
22883 (Fset_window_scroll_bars): Likewise.
22884
228852007-07-15 Martin Rudalics <rudalics@gmx.at>
22886
22887 * window.c (window_min_size_2): New function.
22888 (window_min_size_1, size_window, Fdisplay_buffer)
22889 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
22890 windows without mode- or header-lines when window-min-height is
22891 too small.
22892 (size_window): Reset nodelete_p after testing it, following an
22893 earlier note by Kim F. Storm.
22894 (display_buffer): Do not set split_height_threshold to twice the
22895 value of window_min_height to avoid changing the value of a
22896 customizable variable. Rather explicitly check whether the
22897 height of the window that shall be splitted is at least as large
22898 as split_height_threshold.
22899 (Fwindow_full_width_p): New defun.
22900 (syms_of_window): Defsubr it.
22901
22902 * window.h: Add EXFUN for Fwindow_full_width_p.
22903
229042007-07-14 Jason Rumney <jasonr@gnu.org>
22905
22906 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
22907
229082007-07-14 Richard Stallman <rms@gnu.org>
22909
22910 * eval.c (maybe_call_debugger): New function.
22911 (find_handler_clause): Use maybe_call_debugger.
22912 Call it when the handler says `debug'.
22913 Eliminate DEBUGGER_VALUE_PTR.
22914 (Fsignal): Eliminate debugger_value.
22915 (Qdebug): New variable.
22916 (syms_of_eval): Initialize it.
22917
229182007-07-14 Juanma Barranquero <lekktu@gmail.com>
22919
22920 * eval.c (Fprogn):
22921 * keyboard.c (Ftrack_mouse):
22922 * print.c (Fwith_output_to_temp_buffer):
22923 * window.c (Fsave_window_excursion): Doc fix.
22924
229252007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
22926
22927 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
22928
229292007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
22930
22931 * process.h (struct Lisp_Process): Turn slots infd, outfd,
22932 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
22933 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
22934 read_output_delay, and read_output_skip from Lisp_Objects to ints.
22935 Remove unused encoding_carryover.
22936 * process.c: Adjust all functions accordingly.
22937
229382007-07-12 Richard Stallman <rms@gnu.org>
22939
22940 * term.c: Include unistd.h only if HAVE_UNISTD_H.
22941
229422007-07-11 Jason Rumney <jasonr@gnu.org>
22943
22944 * makefile.w32-in (LIBS): Include OLE32.
22945
22946 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
22947 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
22948
229492007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
22950
22951 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
22952 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
22953 from a Lisp_Object into a bare pointer.
22954 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
22955 Adjust the code correspondingly.
22956
22957 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
22958
22959 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
22960 (term_show_mouse_face): Remove unused var `j'.
22961 (handle_one_term_event): Remove unused vars `i' and `j'.
22962 Don't cast return value of ttyname since it's not necessary.
22963
229642007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
22965
22966 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
22967 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
22968
22969 * fns.c (map_char_table): Use an array of int for `indices' rather than
22970 an array of Lisp_Objects (which are only ever integers anyway).
22971 (Fmap_char_table): Update caller.
22972 * lisp.h: Update prototype.
22973 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
22974 * fontset.c (Ffontset_info):
22975 * casetab.c (set_case_table): Update callers.
22976
22977 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
22978
22979 * keymap.c (struct accessible_keymaps_data)
22980 (struct where_is_internal_data): New structures.
22981 (accessible_keymaps_1, where_is_internal_1): Use them to change
22982 interface to adhere to the one used by map_keymap.
22983 (Faccessible_keymaps, where_is_internal): Use map_keymap.
22984 (accessible_keymaps_char_table, where_is_internal_2): Remove.
22985
22986 * keymap.h (map_keymap_function_t): More informative prototype.
22987
229882007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
22989
22990 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
22991 (looking_at_1): Don't change search_regs and last_thing_searched
22992 if `inhibit-changing-match-data' is non-nil.
22993 (string_match_1, search_buffer, set_search_regs): Likewise.
22994 (syms_of_search): Add Lisp level definition for
22995 `inhibit-changing-match-data' and set it to nil.
22996 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
22997 start and end of the match, instead of using values in search_regs.
22998
229992007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
23000
23001 * minibuf.c (Fcompleting_read): New value `confirm-only'
23002 for `require-match'.
23003
230042007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
23005
23006 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
23007 part of the 2007-06-27 change to syms_of_fileio.
23008
230092007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23010
23011 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
23012 Check WINDOWP before using XWINDOW. Consolidate return statements.
23013
230142007-06-27 Richard Stallman <rms@gnu.org>
23015
23016 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
23017
230182007-06-27 Juanma Barranquero <lekktu@gmail.com>
23019
23020 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
23021
230222007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23023
23024 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
23025 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
23026 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
23027 (_free_internal, memalign): Use them.
23028 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
23029 Initialize to PTHREAD_MUTEX_INITIALIZER.
23030 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
23031 (morecore_nolock): Rename from morecore. All uses changed.
23032 Use only nolock versions of internal allocation functions.
23033 (_malloc_internal_nolock, _realloc_internal_nolock)
23034 (_free_internal_nolock): New functions created from
23035 _malloc_internal, _realloc_internal, and _free_internal.
23036 (_malloc_internal, _realloc_internal, _free_internal): Use them.
23037 Copy hook value to automatic variable before its use.
23038 (memalign): Copy hook value to automatic variable before its use.
23039
230402007-06-26 Kenichi Handa <handa@m17n.org>
23041
23042 * coding.c (Ffind_operation_coding_system): Docstring improved.
23043 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
23044
230452007-06-25 David Kastrup <dak@gnu.org>
23046
23047 * keymap.c (Fcurrent_active_maps): Add `position' argument.
23048 (Fwhere_is_internal): Adjust call to `current-active-maps' to
23049 cater for additional parameter.
23050
23051 * keymap.h: Adjust number of parameters to `current-active-maps'.
23052
23053 * doc.c (Fsubstitute_command_keys): Adjust call of
23054 `current-active-maps'.
23055
230562007-06-25 David Kastrup <dak@gnu.org>
23057
23058 * callint.c (Fcall_interactively): Make the parsing of interactive
23059 specs somewhat more readable.
23060
230612007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23062
23063 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
23064 to scroll bar gap also when bitmap fills fringe. Draw only foreground
23065 if extended background has already been filled.
23066
230672007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23068
23069 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
23070 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
23071
23072 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
23073 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
23074 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
23075 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
23076 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
23077 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
23078 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
23079 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
23080 Run timers during dialog popup.
23081 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
23082
230832007-06-21 Jason Rumney <jasonr@gnu.org>
23084
23085 * image.c (convert_mono_to_color_image): Swap fore and background.
23086
230872007-06-20 Jason Rumney <jasonr@gnu.org>
23088
23089 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
23090 (w32_free_bdf_font): Unmap memory not handle.
23091
230922007-06-20 Sam Steingold <sds@gnu.org>
23093
23094 * gmalloc.c (__morecore): Fix the declaration to comply with the
23095 definition.
23096
230972007-06-20 Juanma Barranquero <lekktu@gmail.com>
23098
23099 * w32term.c (w32_delete_display): Remove leftover declaration.
23100 (w32_define_cursor, w32_initialize): Make static.
23101
23102 * w32.c (_wsa_errlist): Fix typo in error message.
23103 (init_environment): Ignore any environment variable from the
23104 registry having a null value.
23105
231062007-06-20 Glenn Morris <rgm@gnu.org>
23107
23108 * Makefile.in (LIBGIF): Default to -lgif.
23109
231102007-06-17 Jason Rumney <jasonr@gnu.org>
23111
23112 * w32menu.c (add_menu_item): Don't use multibyte string functions on
23113 unicode strings.
23114
231152007-06-16 Juanma Barranquero <lekktu@gmail.com>
23116
23117 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
23118 Fix typo in docstring.
23119
231202007-06-16 Eli Zaretskii <eliz@gnu.org>
23121
23122 * w32menu.c (add_menu_item): Escape `&' characters in menu items
23123 and their keybindings.
23124
231252007-06-15 Chong Yidong <cyd@stupidchicken.com>
23126
23127 * composite.c (update_compositions): Fix last fix.
23128
231292007-06-14 Jason Rumney <jasonr@gnu.org>
23130
23131 * w32.c (get_process_times_fn): New function pointer.
23132 (globals_of_w32): Intialize it if present in kernel32.dll.
23133 (w32_get_internal_run_time): New function.
23134
23135 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
23136
231372007-06-14 Kenichi Handa <handa@etlken.m17n.org>
23138
23139 * composite.c (update_compositions): Check the validness of
23140 compositions.
23141
231422007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23143
23144 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
23145 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
23146
23147 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
23148 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
23149
23150 * macgui.h (USE_MAC_TOOLBAR): New define.
23151
23152 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
23153 Return immediately unless popup is activated.
23154
23155 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
23156 background to scroll bar gap.
23157 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
23158 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
23159 scroll bars on frame edge. Check fringe background extension.
23160 Don't clear extended fringe background area.
23161 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
23162 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
23163 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
23164 [USE_MAC_TOOLBAR]: New macros.
23165 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
23166 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
23167 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
23168 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
23169 [USE_MAC_TOOLBAR]: New functions.
23170 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
23171 manually if previous repositioning has failed.
23172 (mac_handle_keyboard_event): Use precomputed event kind.
23173 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
23174 as tool bar item click. Handle mouse movement over tool bar items.
23175
23176 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
23177 toolbar_win_gravity.
23178 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
23179 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
23180 Add externs.
23181
23182 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
23183 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
23184
231852007-06-14 Chong Yidong <cyd@stupidchicken.com>
23186
23187 * image.c (search_image_cache): Remove unused variable.
23188
231892007-06-13 Chong Yidong <cyd@stupidchicken.com>
23190
23191 * xfns.c, xmenu.c: Link to xaw3d if available.
23192
231932007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23194
23195 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
23196 frame_foreground and frame_background.
23197
23198 * image.c (lookup_image): Save frame foreground and background colors.
23199 (search_image_cache): Check if saved and current frame colors match.
23200
232012007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
23202
23203 * regex.c (regex_compile): Remove the `regnum' counter.
23204 Use bufp->re_nsub instead. Add support for \(?N:RE\).
23205
232062007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
23207
23208 * term.c: Include intervals.h to declare Fget_text_property.
23209
232102007-06-10 Jason Rumney <jasonr@gnu.org>
23211
23212 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
23213
232142007-06-08 Juanma Barranquero <lekktu@gmail.com>
23215
23216 * callint.c (Fcall_interactively):
23217 * editfns.c (Fdelete_and_extract_region):
23218 * fileio.c (Fread_file_name):
23219 * fns.c (Fmapconcat):
23220 * keyboard.c (cmd_error_internal):
23221 * keymap.c (Fkey_description):
23222 * lread.c (openp):
23223 * minibuf.c (read_minibuf):
23224 * search.c (wordify):
23225 * sunfns.c (sel_read):
23226 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
23227 * xfns.c (x_default_scroll_bar_color_parameter):
23228 * xmenu.c (menu_help_callback):
23229 * xselect.c (Fx_get_atom_name):
23230 * xterm.c (x_term_init): Use empty_unibyte_string.
23231
232322007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
23233
23234 * alloc.c (init_strings): Initialize canonical empty strings.
23235 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
23236 canonical empty string when the requested size is 0.
23237
23238 * emacs.c (empty_unibyte_string): Rename from empty_string.
23239 (empty_multibyte_string): New canonical empty string.
23240 (syms_of_emacs): Don't initialize empty_string.
23241
23242 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
23243 string, if appropriate.
23244 (empty_unibyte_string, empty_multibyte_string): New externs.
23245 (empty_string): Remove extern.
23246
23247 * lread.c (syms_of_lread): Use empty_unibyte_string.
23248
232492007-06-07 Jason Rumney <jasonr@gnu.org>
23250
23251 * s/ms-w32.h: Don't define HAVE_TZNAME.
23252
23253 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
23254
232552007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23256
23257 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
23258
23259 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
23260 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
23261
23262 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
23263 Don't call next handler.
23264 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
23265 Remove argument. Install handler to application.
23266 (set_frame_menubar): Don't change deep_p.
23267 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
23268 FRAME_OUTER_TO_INNER_DIFF_Y.
23269 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
23270 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
23271 [HAVE_DIALOGS]: New macros.
23272 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
23273 Use them.
23274 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
23275
23276 * macselect.c [MAC_OSX] (install_service_handler): Rename from
23277 init_service_handler. All callers changed. Return OSStatus value.
23278
23279 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
23280 All callers changed so as not to call SetPortWindowPort.
23281 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
23282 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
23283 mac_draw_string_common.
23284 (mac_draw_image_string_qd): Likewise.
23285 (mac_draw_string_common): Use them. Add INLINE.
23286 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
23287 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
23288 GetGlobalMouse.
23289 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
23290 and FRAME_OUTER_TO_INNER_DIFF_Y.
23291 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
23292 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
23293 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
23294 repositioning window to mac_handle_window_event.
23295 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
23296 saving window location to mac_handle_window_event
23297 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
23298 (install_menu_target_item_handler): Remove argument in extern.
23299 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
23300 Also accept command events.
23301 (do_keystroke): New function created from XTread_socket.
23302 (init_command_handler): Remove functions.
23303 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
23304 and save window location by kEventWindowShowing and kEventWindowHiding
23305 handlers here. Don't call next handler for window state change and
23306 focus events.
23307 (mac_handle_application_event, mac_handle_keyboard_event)
23308 [TARGET_API_MAC_CARBON]: New functions.
23309 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
23310 kEventWindowShowing and kEventWindowHiding events. Move installation
23311 of mouse, font, text input and menu target item handlers to
23312 install_application_handler.
23313 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
23314 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
23315 New function.
23316 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
23317 Register it.
23318 (XTread_socket) [TARGET_API_MAC_CARBON]:
23319 Consolidate SendEventToEventTarget calls.
23320 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
23321 Move application activation handler to mac_handle_application_event.
23322 Move keyboard handler to mac_handle_keyboard_event.
23323 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
23324 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
23325 init_command_handler. Call install_application_handler.
23326
23327 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
23328 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
23329
233302007-06-07 Glenn Morris <rgm@gnu.org>
23331
23332 * emacs.c (main): Use `emacs-copyright' in --version output.
23333
233342007-06-06 Chong Yidong <cyd@stupidchicken.com>
23335
23336 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
23337
233382007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23339
23340 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
23341
23342 * macgui.h: Replace WindowPtr with WindowRef.
23343
23344 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
23345 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
23346 Replace ControlHandle with ControlRef.
23347 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
23348
23349 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
23350 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
23351 Replace ControlHandle with ControlRef.
23352 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
23353 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
23354
23355 * macterm.h (struct scroll_bar): Rename member control_handle_low
23356 and control_handle_high to control_ref_low and control_ref_high.
23357 All uses changed.
23358 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
23359 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
23360 respectively. All uses changed.
23361 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
23362 (install_window_handler, remove_window_handler): Replace WindowPtr
23363 with WindowRef in externs.
23364
233652007-06-05 Juanma Barranquero <lekktu@gmail.com>
23366
23367 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
23368
233692007-06-03 Nick Roberts <nickrob@snap.net.nz>
23370
23371 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
23372
23373 * frame.c (Fmouse_position, Fmouse_pixel_position):
23374 Condition on HAVE_GPM too.
23375
23376 * term.c (term_mouse_highlight): Remove unused variables.
23377 (Fterm_open_connection): Set gpm_zerobased to 1.
23378 (term_mouse_movement, term_mouse_click, handle_one_term_event):
23379 Use zero based co-ordinates.
23380 (handle_one_term_event): Report a drag as mouse movement too.
23381
23382 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
23383
233842007-06-03 Chong Yidong <cyd@stupidchicken.com>
23385
23386 * image.c (search_image_cache): New function. Require background
23387 color match if background color is unspecified in the image spec.
23388 (uncache_image, lookup_image): Use it.
23389
233902007-06-01 Juanma Barranquero <lekktu@gmail.com>
23391
23392 * window.c (Fshrink_window): Reflow docstring.
23393
233942007-06-02 Chong Yidong <cyd@stupidchicken.com>
23395
23396 * Version 22.1 released.
23397
233982007-06-01 Richard Stallman <rms@gnu.org>
23399
23400 * xfns.c (x_encode_text): Add GCPRO.
23401
234022007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23403
23404 * xfns.c (x_set_name_internal): Save encoded name before
23405 x_encode_text in case string data is relocated.
23406
234072007-05-31 Richard Stallman <rms@gnu.org>
23408
23409 * buffer.c (syms_of_buffer): Doc fix.
23410
234112007-05-30 Nick Roberts <nickrob@snap.net.nz>
23412
23413 * sysdep.c (init_sys_modes): Add rather than replace with
23414 O_NONBLOCK.
23415
23416 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
23417 term_mouse_moveto.
23418
23419 * termhooks.h (term_mouse_moveto): New extern.
23420
23421 * term.c (mouse_face_window): Rename...
23422 (Qmouse_face_window): ...to this.
23423 (term_show_mouse_face, term_clear_mouse_face)
23424 (term_mouse_highlight): Use Qmouse_face_window.
23425 (term_mouse_moveto): New function.
23426 (term_mouse_position): Make it work.
23427 (syms_of_term): Uncomment assignment to mouse_position_hook.
23428 Staticpro Qmouse_face_window.
23429
234302007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23431
23432 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
23433 around current_column call.
23434
234352007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
23436
23437 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
23438 * xdisp.c (next_element_from_buffer):
23439 * window.c (delete_window):
23440 * term.c (term_mouse_highlight):
23441 * msdos.c (getdefdir):
23442 * macterm.c (mac_create_bitmap_from_bitmap_data)
23443 (init_font_name_table):
23444 * fns.c (Fsxhash):
23445 * data.c (Fmake_local_variable):
23446 * ccl.c (ccl_driver): Likewise.
23447
234482007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23449
23450 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
23451 Call mac_wakeup_from_rne on window size change.
23452
234532007-05-25 Chong Yidong <cyd@stupidchicken.com>
23454
23455 * image.c (uncache_image): Fix typo.
23456
234572007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
23458
23459 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
23460
234612007-05-22 Richard Stallman <rms@gnu.org>
23462
23463 * xterm.c (x_connection_closed): Remove NO_RETURN.
23464
234652007-05-22 Martin Rudalics <rudalics@gmx.at>
23466
23467 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
23468
234692007-05-21 Chong Yidong <cyd@stupidchicken.com>
23470
23471 * image.c (uncache_image): New function.
23472 (Fimage_refresh): New function.
23473
234742007-05-20 Jan Djärv <jan.h.d@swipnet.se>
23475
23476 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
23477
234782007-05-20 Nick Roberts <nickrob@snap.net.nz>
23479
23480 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
23481 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
23482
234832007-05-20 Nick Roberts <nickrob@snap.net.nz>
23484
23485 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
23486 conditional on [HAVE_GPM_H].
23487
234882007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
23489
23490 * syntax.c (skip_chars): Update syntax-table only after we checked that
23491 the new location is valid.
23492
234932007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23494
23495 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
23496 mac_get_window_bounds.
23497
234982007-05-20 Nick Roberts <nickrob@snap.net.nz>
23499
23500 * Makefile.in (LIBGPM): Allow it to be set from configure.
23501 If set then link Emacs with it.
23502
23503 * config.in: Regenerate.
23504
23505 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
23506 New externs.
23507
23508 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
23509 Include gpm.h.
23510 (handle_one_term_event, term_gpm): New externs.
23511
23512 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
23513 and allow it to be interrupted by SIGIO.
23514
23515 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
23516 (wait_reading_process_output): Wait on gpm_fd too.
23517 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
23518 (add_gpm_wait_descriptor_called_flag): New variable.
23519 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
23520
23521 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
23522 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
23523 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
23524 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
23525 (make_lispy_event): Add case GPM_CLICK_EVENT.
23526 (read_avail_input): Handle mouse input.
23527
23528 * term.c (write_glyphs_with_face): New function.
23529 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
23530 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
23531 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
23532 (mouse_face_face_id, term_gpm, pos_x, pos_y)
23533 (last_mouse_x, last_mouse_y): New variables.
23534 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
23535 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
23536 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
23537 (Fterm_close_connection): New functions.
23538 (term_init): Initialise mouse_face_window.
23539
235402007-05-19 Chong Yidong <cyd@stupidchicken.com>
23541
23542 * xdisp.c (redisplay_window): If first window line is a
23543 continuation line, recompute the new window start instead of
23544 recentering.
23545
235462007-05-18 Glenn Morris <rgm@gnu.org>
23547
23548 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
23549 Suggested by Alfred M. Szmidt <ams@gnu.org>.
23550
235512007-05-17 Glenn Morris <rgm@gnu.org>
23552
23553 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
23554
235552007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23556
23557 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
23558 dead key repeat and up events.
23559
235602007-05-14 Chong Yidong <cyd@stupidchicken.com>
23561
23562 * image.c (pbm_load): Check image size for monochrome pbm.
23563
235642007-05-13 Chong Yidong <cyd@stupidchicken.com>
23565
23566 * xterm.c (XTread_socket): Revert last change.
23567
235682007-05-12 Chong Yidong <cyd@stupidchicken.com>
23569
23570 * image.c (pbm_load): Correctly check image size for greyscale pbm.
23571
23572 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
23573
235742007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
23575
23576 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
23577 mixup (YAILOM).
23578
235792007-05-07 Andreas Schwab <schwab@suse.de>
23580
23581 * keymap.c (Flookup_key): Fix typo in last change.
23582
235832007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
23584
23585 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
23586 mapping for unibyte strings.
23587
235882007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23589
23590 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
23591 (Fx_popup_dialog) [MAC_OSX]: Likewise.
23592
235932007-04-29 Richard Stallman <rms@gnu.org>
23594
23595 * insdel.c (replace_range): For undo, record insertion first.
23596
235972007-04-29 Andreas Schwab <schwab@suse.de>
23598
23599 * lisp.h (VECSIZE): Use OFFSETOF.
23600
236012007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23602
23603 * xdisp.c (try_window_reusing_current_matrix): Fix number of
23604 disabled lines.
23605
236062007-04-28 Richard Stallman <rms@gnu.org>
23607
23608 * lread.c (read_escape): In a string, \s is always space.
23609
236102007-04-27 Jan Djärv <jan.h.d@swipnet.se>
23611
23612 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
23613
23614 * gtkutil.c (xg_update_menubar, create_menus): Create empty
23615 submenu for menu bar items.
23616
23617See ChangeLog.10 for earlier changes.
23618
23619;; Local Variables:
23620;; coding: utf-8
23621;; add-log-time-zone-rule: t
23622;; End:
23623
23624 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
23625
23626 This file is part of GNU Emacs.
23627
23628 GNU Emacs is free software: you can redistribute it and/or modify
23629 it under the terms of the GNU General Public License as published by
23630 the Free Software Foundation, either version 3 of the License, or
23631 (at your option) any later version.
23632
23633 GNU Emacs is distributed in the hope that it will be useful,
23634 but WITHOUT ANY WARRANTY; without even the implied warranty of
23635 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23636 GNU General Public License for more details.
23637
23638 You should have received a copy of the GNU General Public License
23639 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
23640
23641;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40