* src/m/sparc.h: Fix typo in earlier change.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
4ab92842
LM
12010-05-05 Lawrence Mitchell <wence@gmx.li>
2
3 * m/sparc.h: Fix typo in earlier change.
4
178f2507
SM
52010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
6
7 Misc tweaks.
8 * eval.c (Fdefvaralias): Remove unintended nested if.
9 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
10
80f00217 112010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
12
13 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
14
ef03a4e6
DN
152010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
16
58eb6cf0
DN
17 Remove BSD_PGRPS.
18 * s/bsd-common.h (BSD_PGRPS): Remove undef.
19 * s/gnu-linux.h (BSD_PGRPS): Remove.
20 * term.c (dissociate_if_controlling_tty):
21 * sysdep.c (narrow_foreground_group, widen_foreground_group)
22 (init_sys_modes, reset_sys_modes):
23 * emacs.c (main):
24 * callproc.c (Fcall_process, child_setup): Remove code depending
25 on BSD_PGRPS.
26
ef03a4e6
DN
27 Remove POSIX_SIGNALS.
28 * s/usg5-4.h (POSIX_SIGNALS):
29 * s/netbsd.h (POSIX_SIGNALS):
30 * s/msdos.h (POSIX_SIGNALS):
31 * s/ms-w32.h (POSIX_SIGNALS):
32 * s/hpux11.h (POSIX_SIGNALS):
33 * s/gnu.h (POSIX_SIGNALS):
34 * s/gnu-linux.h (POSIX_SIGNALS):
35 * s/freebsd.h (POSIX_SIGNALS):
36 * s/darwin.h (POSIX_SIGNALS):
37 * s/cygwin.h (POSIX_SIGNALS):
38 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
39 * s/unixware.h:
40 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
41 * process.c (create_process):
42 * syssignal.h:
43 * sysdep.c (wait_for_termination, init_signals):
44 * process.c (create_process):
45 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
46 remove all code that assumes the contrary.
47
49628785
GM
482010-05-04 Glenn Morris <rgm@gnu.org>
49
27a2cdfc
GM
50 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
51 variable.
52 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
53 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
54 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
55 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
56 LD_SWITCH_SYSTEM_tmp.
57 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
58 New variables, set by configure.
59
eb21eab5
GM
60 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
61 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
62 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
63 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
64 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
65
49628785
GM
66 * s/aix4-2.h (C_SWITCH_SYSTEM):
67 * m/alpha.h (C_SWITCH_MACHINE):
68 Move to configure.in.
69 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
70 New variables, set by configure.
71 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
72 $c_switch_machine and $c_switch_system.
73
7dff330b
DN
742010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
75
76 * s/hpux10-20.h (LIB_STANDARD): New definition.
77 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
78 on it, not used anymore.
79
53967e09
CY
802010-05-03 Chong Yidong <cyd@stupidchicken.com>
81
82 * eval.c (internal_condition_case_n): Rename from
83 internal_condition_case_2.
84 (internal_condition_case_2): New function.
85
86 * xdisp.c (safe_call): Use internal_condition_case_n.
87
88 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
89 (internal_delete_file, Frename_file): Callers changed.
90
91 * buffer.c (Fkill_buffer):
92 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
93
94 * lisp.h: Update prototypes.
95
3dee6fdb
GM
962010-05-03 Glenn Morris <rgm@gnu.org>
97
98 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
99 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
100 (LIBXT): Set with configure, not cpp.
101 (LIBX): Remove.
102 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
103
a101e0fb
DN
1042010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
105
106 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
107 The FreeBSD is not needed, the default works, Solaris version is
108 not needed, and the remaining case is not supported by configure.
109
f63d0028
JD
1102010-05-02 Jan Djärv <jan.h.d@swipnet.se>
111
112 * xsmfns.c (CHDIR_OPT): New define.
113 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
114 restarting emacs.
115
116 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
117 shut_down_emacs.
118
119 * emacs.c (USAGE1): Mention --chdir.
120 (main): Handle --chdir.
121 (standard_args): Add --chdir.
122 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
123 #5552).
124
e4814a9f
DN
1252010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
126
cd03c74a
DN
127 Remove LD_SWITCH_MACHINE.
128 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
129 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
130
c3a398a1
DN
131 Clean up IRIX code.
132 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
133 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
134
87e7285c
DN
135 Clean up AIX code.
136 * m/ibmrs6000.inp: Remove file, unused.
137 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
138 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
139 definition ...
140 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
141
80f00217
JB
142 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
143 unused.
e4814a9f 144
59ca28de
EZ
1452010-05-01 Eli Zaretskii <eliz@gnu.org>
146
197daef4
EZ
147 Emulate POSIX_SIGNALS on MS-Windows.
148
149 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
150 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
151
152 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
153 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
154 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
155
80f00217
JB
156 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
157 New stubs.
197daef4 158
af7c7572
EZ
159 Miscellaneous fixes of bidi display.
160
59ca28de
EZ
161 * xdisp.c (find_row_end): New function, refactored from display_line.
162 (display_line): Use it.
017ea819
EZ
163 (extend_face_to_end_of_line): In almost-filled rows, extend only
164 if the row is R2L and not continued.
166e930d 165 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 166 Preserve overlay and string info in row->end.
166e930d
EZ
167 (insert_left_trunc_glyphs): Support addition of left truncation
168 glyphs to R2L rows.
b47e0dcf 169 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
170 glyph between adjacent windows. Fix a crash when a display string
171 is continued to the next line. Don't return zero if cursor was
172 found by `cursor' property of a display string.
b47e0dcf
EZ
173 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
174 test for that explicitly.
59ca28de 175
7acac9f4
GM
1762010-05-01 Glenn Morris <rgm@gnu.org>
177
178 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
179 for clarity.
180 (OTHER_OBJ): Remove.
181 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
182 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
183
45841e65
KK
1842010-05-01 Karel Klíč <kklic@redhat.com>
185
186 * fileio.c (Ffile_selinux_context): Context functions may return null.
187
afc61943
DN
1882010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
189
80f00217 190 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 191
5a1bb006
GM
1922010-04-30 Glenn Morris <rgm@gnu.org>
193
194 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
195 (OTHER_OBJ): Define as a separate variable, for clarity.
196
210af043
J
1972010-04-30 Jan Djärv <jan.h.d@swipnet.se>
198
199 * xsettings.c: include limits.h and update file comment.
200
0a7df391
GM
2012010-04-30 Glenn Morris <rgm@gnu.org>
202
d5096f16
GM
203 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
204 Set with configure, not cpp.
205 (LIBW): Remove, replace with $TOOLKIT_LIBW.
206
7eb1ac33
GM
207 * Makefile.in (mallocobj): Remove.
208 (otherobj): Simplify using @OTHER_OBJ@.
209
517d086b
GM
210 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
211 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
212 Don't bother making nsgui.h dependency platform-specific.
213
0a7df391
GM
214 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
215
d6d23852
SM
2162010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
217
d2630aef
SM
218 * process.c (read_process_output, exec_sentinel): Don't burp if the
219 sentinel/filter kills the current buffer (bug#6060).
220
f9dddf52 221 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
222 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
223 Remove unused var `args'.
224 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
225 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
226 * doc.c (store_function_docstring): Use XSETCAR.
227
f1e3642a
GM
2282010-04-28 Glenn Morris <rgm@gnu.org>
229
faf535f8
GM
230 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
231 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
232
c40f9449
GM
233 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
234
658f86ca
GM
235 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
236 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
237
bc0b5f61
GM
238 * Makefile.in (FONT_OBJ): New, set by configure.
239 (FONT_DRIVERS): Use $FONT_OBJ.
240
294c50a0
GM
241 * Makefile.in (LIBXMU): Set with configure, not cpp.
242 * s/aix4-2.h (LIBXMU):
243 * s/hpux10-20.h (LIBXMU):
244 Remove definition, now set in configure.
245
e6ec4e99
GM
246 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
247
f1e3642a
GM
248 * m/amdx86-64.h [i386]: Move this test to configure.in.
249
c6ea2936
GM
2502010-04-27 Glenn Morris <rgm@gnu.org>
251
8fdac2c3
GM
252 * Makefile.in (LIBXTR6): Set with configure, not cpp.
253 * s/unixware.h (NEED_LIBW): Remove definition.
254
986fb647
GM
255 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
256 (TOOLKIT_LIBW): New, set by configure.
257 (@X_TOOLKIT_TYPE@): No longer define it.
258
c6ea2936
GM
259 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
260 (MOTIF_LIBW): Set with configure, not cpp.
261 * s/aix4-2.h (LIB_MOTIF):
262 * s/gnu-linux.h (LIB_MOTIF):
263 * s/unixware.h (LIB_MOTIF): Move to configure.in.
264
aaa36002
DN
2652010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
266
267 Reduce CPP usage.
268 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
269 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
270 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
271 definitions and undefs. Inline definitions in the only user.
272 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 273
b678dd8b
GM
2742010-04-27 Glenn Morris <rgm@gnu.org>
275
76cda504
GM
276 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
277 since the defaults (set by the system file) are fine in most cases.
278 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
279 * m/ibms390x.h (START_FILES, LIB_STANDARD):
280 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
281 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
282 Remove definitions, since they are set correctly in s/gnu-linux.h.
283 * s/freebsd.h (START_FILES, LIB_STANDARD):
284 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
285 * s/hpux10-20.h (START_FILES):
286 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
287 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
288
b678dd8b
GM
289 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
290 (MOTIF_LIBW): Use $LIBXP.
291 (otherobj): Use $WIDGET_OBJ.
292
9452ded1
DN
2932010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
294
7e10844c
DN
295 * Makefile.in (LIBS_MACHINE): Remove, unused.
296
9452ded1
DN
297 Use autoconf instead of cpp for LIB_MATH.
298 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
299 * s/cygwin.h (LIB_MATH): Likewise.
300 * Makefile.in (LIB_MATH): Do not define with cpp.
301 (LIBES): Use autoconf for LIB_MATH.
302
fcebfc6a
KH
3032010-04-26 Kenichi Handa <handa@m17n.org>
304
305 * composite.c (Ffind_composition_internal): Fix the return value
306 for an automatic composition.
307
39e2ad1b
DN
3082010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
309
310 Remove all NO_ARG_ARRAY uses.
311 * fns.c (concat2, concat3, nconc2):
312 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
313 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
314 * m/xtensa.h (NO_ARG_ARRAY):
315 * m/template.h (NO_ARG_ARRAY):
316 * m/sparc.h (NO_ARG_ARRAY):
317 * m/sh3.h (NO_ARG_ARRAY):
318 * m/mips.h (NO_ARG_ARRAY):
319 * m/macppc.h (NO_ARG_ARRAY):
320 * m/iris4d.h (NO_ARG_ARRAY):
321 * m/intel386.h (NO_ARG_ARRAY):
322 * m/ibms390x.h (NO_ARG_ARRAY):
323 * m/ibms390.h (NO_ARG_ARRAY):
324 * m/ibmrs6000.h (NO_ARG_ARRAY):
325 * m/ia64.h (NO_ARG_ARRAY):
326 * m/hp800.h (NO_ARG_ARRAY):
327 * m/arm.h (NO_ARG_ARRAY):
328 * m/amdx86-64.h (NO_ARG_ARRAY):
329 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
330
adf4f59c
EZ
3312010-04-25 Eli Zaretskii <eliz@gnu.org>
332
6bdf5d65
EZ
333 * xdisp.c (display_line): Don't assume 2nd call to
334 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
335 (iterate_out_of_display_property): New function, body from pop_it.
336 (pop_it): Use it.
adf4f59c 337
dfbbda83
GM
3382010-04-24 Glenn Morris <rgm@gnu.org>
339
340 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
341 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
342 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
343 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
344
2d4018aa
EZ
3452010-04-24 Eli Zaretskii <eliz@gnu.org>
346
a49884a6
EZ
347 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
348 use `get_next_display_element' and `set_iterator_to_next' to
349 advance to the next character, when looking for the character that
350 begins the next row.
351
76db6fcc 352 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
353 definition of "struct Lisp_Symbol".
354
70eab5c1
GM
3552010-04-24 Glenn Morris <rgm@gnu.org>
356
357 * Makefile.in (CRT_DIR): New variable, set by configure.
358 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
359 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
360
1ad4cc3d
DN
3612010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
362
e769f484
DN
363 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
364
4196ff33
DN
365 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
366
879b0ee4
DN
367 Remove redundant flags.
368 * s/freebsd.h (C_SWITCH_SYSTEM):
369 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
370 * s/netbsd.h (C_SWITCH_SYSTEM):
371 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
372 of these.
373
03cbbcb8
DN
374 Simplify m/intel386.h.
375 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
376 user: ecrt0.c.
377 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
378 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
379 the only user: s/unixware.h.
380 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
381 from m/intel386.h.
382 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
383 moved here from m/intel386.h.
384
1ad4cc3d
DN
385 * m/mips.h: Remove #if 0 code.
386
8785b888
EZ
3872010-04-23 Eli Zaretskii <eliz@gnu.org>
388
728588cc
EZ
389 Fix display of composed characters from L2R scripts in bidi buffers.
390 * xdisp.c (set_iterator_to_next, next_element_from_composition):
391 After advancing IT past the composition, resync the bidi iterator
392 with IT's position. (Bug#5977)
393
a63f80b4
DN
3942010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
395
396 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
397 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
398
ff5dec5c
SM
3992010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
400
401 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
402
8785b888
EZ
4032010-04-23 Eli Zaretskii <eliz@gnu.org>
404
58ccf243 405 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
406 * xdisp.c (pop_it): When the stack is popped after displaying
407 from a string, bidi-iterate to exit from the text portion covered
408 by the `display' property or overlay. (Bug#5988, bug#5920)
409
feeb1604
DN
4102010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
411
8e324eb6
DN
412 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
413 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
414
809fcaba
DN
415 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
416 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
417
ed710380
DN
418 Simplify STARTFILES definition.
419 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
420 relying on Makefile.in to define it.
421 * s/cygwin.h (START_FILES): Likewise.
422 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
423
feeb1604
DN
424 Clean up Solaris code.
425 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
426 (LIB_MOTIF): Remove, configure takes care of this.
427 (NOT_USING_MOTIF): Remove, unused.
428 * xrdb.c: Remove #if 0-ed #include.
429 (SYSV): Remove conditional for old SysV.
430 * sysdep.c (closedir): Remove conditional code for Solaris,
431 Solaris has closedir.
432
a0d0b563
JD
4332010-04-22 Jan Djärv <jan.h.d@swipnet.se>
434
435 * xsettings.c (read_and_apply_settings): Check if current_font is
436 NULL before strcmp (Bug#6001).
437
56bae7c7
DN
4382010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
439
440 Clean up HP-UX files.
441 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
442 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
443 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
444 * s/hpux10-20.h: ... to the only user, here.
445
372b7a95
EZ
4462010-04-21 Eli Zaretskii <eliz@gnu.org>
447
448 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
449 use buffer-local values of paragraph-start and paragraph-separate.
450 <paragraph_start_re, paragraph_separate_re>: Rename from
451 fallback_paragraph_start_re and fallback_paragraph_separate_re.
452 (Bug#5992)
453
f904c0f9
JD
4542010-04-21 Jan Djärv <jan.h.d@swipnet.se>
455
456 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
457 current_tool_bar_style are new.
458 (store_config_changed_event): Rename from store_font_changed_event.
459 (XSETTINGS_TOOL_BAR_STYLE): New define.
460 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
461 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
462 HAVE_XFT.
463 (something_changedCB): store_font_changed_event is now
464 store_config_changed_event
465 (parse_settings): Rename from parse_xft_settings. Read
466 non-xft xsettings outside #ifdef HAVE_XFT.
467 (read_settings): Renamed from read_xft_settings.
468 (apply_xft_settings): Take current settings as parameter. Do not
469 call read_(xft)_settings.
470 (read_and_apply_settings): New function.
471 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
472 read_and_apply_settings if there are settings to be read.
473 (init_xsettings): Renamed from init_xfd_settings.
474 Call read_and_apply_settings unconditionally.
475 (xsettings_initialize): Call init_xsettings.
476 (Ftool_bar_get_system_style): New function.
477 (syms_of_xsettings): Define Qmonospace_font_name and
478 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 479 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 480 dynamic-setting.
31a01b90 481 Move misplaced HAVE_GCONF
f904c0f9
JD
482
483 * xsettings.h (Ftool_bar_get_system_style): Declare.
484
485 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
486 Qtext, Qboth, Qboth_horiz are new.
487 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
488 Vtool_bar_style, tool_bar_max_label_size.
489
490 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
491
492 * keyboard.c: QClabel is new.
493 (parse_tool_bar_item): Take out QClabel from tool bar items.
494 Try to construct a label if ther is no QClabel.
495 (syms_of_keyboard): Intern :label as QClabel.
496
497 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
498 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
499 New.
500
501 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
502 dynamic-setting.el.
503
504 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
505 (xg_make_tool_item, xg_show_toolbar_item): New function.
506 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
507 Call xg_make_tool_item to make a tool bar item.
508 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
509
510 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
511 into account for toolbars.
512
c632dfda
JD
5132010-04-21 Jan Djärv <jan.h.d@swipnet.se>
514
515 * data.c (make_blv): Declarations before code (Bug#5993).
516
10efe302
GM
5172010-04-21 Glenn Morris <rgm@gnu.org>
518
519 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
520 Define using autoconf, not cpp.
521 (LIBXSM): New variable, set by autoconf.
522 (LIBXT): Use $LIBXSM.
523
4285ac5a
DN
5242010-04-21 Dan Nicolaescu <local_user@dannlt>
525
3ec759e7
DN
526 Remove NOMULTIPLEJOBS, unused.
527 * s/template.h (NOMULTIPLEJOBS):
528 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
529
4285ac5a
DN
530 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
531 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
532 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
533 detects -znocombreloc and passes it to the linker
534 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
535
2807228d
GM
5362010-04-21 Glenn Morris <rgm@gnu.org>
537
538 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
539
574c05e2
KK
5402010-04-21 Karel Klíč <kklic@redhat.com>
541
542 * Makefile.in (LIBSELINUX_LIBS): New.
543 (LIBES): Add $LIBSELINUX_LIBS.
544 * eval.c, lisp.h (call7): New function.
545 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
546 (Ffile_selinux_context, Fset_file_selinux_context):
547 New functions.
548 (Fcopy_file): New parameter preserve-selinux-context.
549 (Frename_file): Preserve selinux context when renaming by copy-file.
550
91eac4bb
JB
5512010-04-21 Juanma Barranquero <lekktu@gmail.com>
552 Eli Zaretskii <eliz@gnu.org>
553
50426a04
JB
554 Don't depend on cm.c or termcap.c on Windows, use stubs.
555 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
556 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
557 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
558 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
559 (sys_tputs, sys_tgetstr): New stubs.
560 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
561 (tputs, tgetstr): New; define to sys_*.
91eac4bb 562
938efb77
JB
5632010-04-20 Juanma Barranquero <lekktu@gmail.com>
564
565 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
566
b4bf28b7
SM
5672010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
568
8b1e1112
SM
569 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
570 Just signal a warning rather than an error when inside a let.
571 (Fmake_variable_frame_local): Add the same test.
572
933ac235
SM
573 * font.c (syms_of_font): Make the style table vars read-only.
574
b4bf28b7
SM
575 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
576 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
577
578 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
579
93d68d0c
EZ
5802010-04-20 Eli Zaretskii <eliz@gnu.org>
581
582 Fix R2L paragraph display on TTY.
583
584 * xdisp.c (unproduce_glyphs): New function.
585 (display_line): Use it when produced glyphs are discarded from R2L
586 glyph rows.
587 (append_composite_glyph): In R2L rows, prepend the glyph rather
588 than appending it.
589
590 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
591 rather than append it. Set up the resolved_level and bidi_type
592 attributes of the appended glyph.
283ccc18
EZ
593 (produce_special_glyphs): Mirror the backslash continuation
594 character in R2L lines.
93d68d0c 595
283ccc18 596 Implement display of R2L paragraphs in GUI sessions.
26cdf528 597
283ccc18
EZ
598 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
599 append_stretch_glyph.
600 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
601 off-by-one error in computing x at end of text in the row.
602 (append_stretch_glyph): In reversed row, prepend the glyph rather
603 than append it. Set resolved_level and bidi_type of the glyph.
604 (extend_face_to_end_of_line): If the row is reversed, prepend a
605 stretch glyph whose width is such that the rightmost glyph will be
606 drawn at the right margin of the window. Fix off-by-one error on
607 TTY frames in testing whether a line needs face extension. Fix
608 face extension at ZV. If this is the last glyph row, use
609 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
610 region face.
611 (set_cursor_from_row, display_line): Use
26cdf528
EZ
612 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
613 row->continuation_lines_width.
283ccc18
EZ
614 (next_element_from_buffer): Don't call bidi_paragraph_init if we
615 are at ZV. Fixes a crash when reseated to ZV by
616 try_window_reusing_current_matrix.
45903529
EZ
617 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
618 which happens with R2L glyph rows. Fixes a crash when inserting a
619 character at end of an R2L line.
283ccc18
EZ
620 (set_cursor_from_row): Don't be fooled by truncated rows: don't
621 treat them as having zero-width characters. Improve comments.
622 Don't reverse pos_before and pos_after for reversed glyph rows.
623 Set cursor.x to negative value when the cursor might be on the
624 left fringe.
625 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
626 left fringe, not the right one.
f951a506
EZ
627 (notice_overwritten_cursor, draw_phys_cursor_glyph)
628 (erase_phys_cursor): For reversed cursor_row, support cursor on
629 the left fringe.
630
283ccc18
EZ
631 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
632 of continuation indicators on the fringes.
633 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
634 left fringe.
635
f951a506
EZ
636 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
637 draw cursor on the left fringe.
638
639 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
640 cursor on the left fringe.
641
f951a506
EZ
642 * dispnew.c (update_text_area): Handle reversed desired rows when
643 the cursor is on the left fringe.
644 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
645 below, not by 0, for when the cursor is on the left fringe.
646
3bb49aaf
JD
6472010-04-20 Jan Djärv <jan.h.d@swipnet.se>
648
649 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
650 widget is a scrollbar.
651
c0be27fd
KH
6522010-04-20 Kenichi Handa <handa@m17n.org>
653
654 * charset.c (char_charset): Consider Vcharset_non_preferred_head
655 only when the arg CHARSET_LIST is nil.
656
ce5b453a
SM
6572010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
658
659 Make variable forwarding explicit rather the using special values.
660 Basically, this makes the structure of buffer-local values and object
661 forwarding explicit in the type of Lisp_Symbols rather than use
662 special Lisp_Objects for that. This tends to lead to slightly more
663 verbose code, but is more C-like, simpler, and makes it easier to make
664 sure we handled all cases, among other things by letting the compiler
665 help us check it.
666 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
667 Removing forwarding objects.
668 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
669 (struct Lisp_Symbol): Make the various forms of variable-forwarding
670 explicit rather than hiding them inside Lisp_Object "values".
671 (XFWDTYPE): New macro.
672 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
673 (XBUFFER_LOCAL_VALUE): Remove.
674 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
675 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
676 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
677 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
678 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
679 Remove the Lisp_Misc_* header.
680 (struct Lisp_Buffer_Local_Value): Redefine.
681 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
682 (struct Lisp_Misc_Any): Add filler to get the right size.
683 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
684 Lisp_Intfwd.
685 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
686 (DEFVAR_KBOARD): Allocate a forwarding object.
687 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
688 (let_shadows_global_binding_p): New function.
689 (union Lisp_Val_Fwd): New type.
690 (make_blv): New function.
691 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
692 (store_symval_forwarding, swap_in_global_binding, Fboundp)
693 (swap_in_symval_forwarding, find_symbol_value, Fset)
694 (let_shadows_buffer_binding_p, set_internal, default_value)
695 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
696 (Fkill_local_variable, Fmake_variable_frame_local)
697 (Flocal_variable_p, Flocal_variable_if_set_p)
698 (Fvariable_binding_locus):
699 * xdisp.c (select_frame_for_redisplay):
700 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
701 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
702 * frame.c (store_frame_param):
703 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
704 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
705 value structure.
706 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
707 (clone_per_buffer_values): Only adjust markers into the current buffer.
708 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
709 (Fbuffer_local_value, set_buffer_internal_1)
710 (swap_out_buffer_local_variables):
711 Adapt to the new symbol value structure.
712 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
713 (defvar_per_buffer): Take a new arg for the fwd object.
714 (buffer_lisp_local_variables): Return a proper alist (different fix
715 for bug#4138).
716 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
717 (Fgarbage_collect): Don't handle buffer_defaults specially.
718 (mark_object): Handle new symbol value structure rather than the old
719 special Lisp_Misc_* objects.
720 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
721 * term.c (set_tty_color_mode):
722 * bidi.c (bidi_initialize): Don't access the ->value field directly.
723 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
724 a buffer_local_flags.
725 * print.c (print_object): Get rid of impossible forwarding objects.
726
fd3998ff
EZ
7272010-04-19 Eli Zaretskii <eliz@gnu.org>
728
729 * bidi.c (bidi_get_type, bidi_get_category)
730 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
731 (bidi_type_of_next_char, bidi_level_of_next_char):
732 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 733
e42cd1a7
JB
7342010-04-19 Juanma Barranquero <lekktu@gmail.com>
735
736 * dired.c (Ffile_attributes): Fix typo in docstring.
737
6e104790 7382010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
739
740 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
741 NSInteger (Bug#5811).
742
6e104790 7432010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
744
745 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
746 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
747
6e104790 7482010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
749
750 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
751
6e104790
SM
7522010-04-19 Chong Yidong <cyd@stupidchicken.com>
753
754 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
755 terminal frames (Bug#5837).
756
37dcfea0
EZ
7572010-04-19 Eli Zaretskii <eliz@gnu.org>
758
d1da276f
EZ
759 * .gdbinit (xsubchartable): New command.
760
37dcfea0
EZ
7612010-04-19 Eli Zaretskii <eliz@gnu.org>
762
763 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 764 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
765 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
766 and
767 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
768
e9515805
SM
7692010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
770
771 * alloc.c (Fpurecopy): Hash-cons if requested.
772 (syms_of_alloc): Update purify-flag docstring.
773
22aa44a8
JD
7742010-04-18 Jan Djärv <jan.h.d@swipnet.se>
775
776 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
777 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
778
ebb5722e
EZ
7792010-04-17 Eli Zaretskii <eliz@gnu.org>
780
781 Fix a crash when an NSM character is inserted at BEGV.
782
783 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
784 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
785 NEUTRAL_B or UNKNOWN_BT.
786
0f4442ef
EZ
7872010-04-16 Eli Zaretskii <eliz@gnu.org>
788
789 * xdisp.c (set_cursor_from_row): Don't consider possibility of
790 other rows with cursor unless they are different from this row and
791 this row is part of a continued line. (Bug#5943)
792
7d4e45f8
DN
7932010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
794
795 * s/freebsd.h: Restore osreldate.h include.
796 Suggested by Naohiro Aota.
797
5ba5ec85
J
7982010-04-16 Jan Djärv <jan.h.d@swipnet.se>
799
800 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
801
20af301d
CY
8022010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
803
804 * s/cygwin.h: Avoid linking against static libgcc.
805
a4b000fb
JL
8062010-04-15 Juri Linkov <juri@jurta.org>
807
808 * window.c: Add Qscroll_command.
809 Remove Vscroll_preserve_screen_position_commands.
810 (window_scroll_pixel_based, window_scroll_line_based): Check the
811 `scroll-command' property on the last command instead of searching
812 the last command in Vscroll_preserve_screen_position_commands.
813 (syms_of_window): Initialize and staticpro `Qscroll_command'.
814 Put Qscroll_command property on Qscroll_up and Qscroll_down.
815 (scroll-preserve-screen-position): Doc fix.
816 (Vscroll_preserve_screen_position_commands): Remove variable.
817
bc319ba4
DN
8182010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
819
6bb24457
DN
820 * xdisp.c (message): Do not use NO_ARG_ARRAY.
821
19d4c244
DN
8222010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
823
824 Reduce cpp use in Makefile.in.
825 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
826 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
827 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
828 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
829 (CRT0_COMPILE): Remove, inline it in the only user.
830
32129746
JL
8312010-04-14 Juri Linkov <juri@jurta.org>
832
833 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
834 `scroll-up-command' and `M-v' from `scroll-down' to
835 `scroll-down-command'.
836
9013a7f8
JL
8372010-04-14 Juri Linkov <juri@jurta.org>
838
839 * window.c (Vscroll_preserve_screen_position_commands): New variable
840 with the default value as the list of Qscroll_down and Qscroll_up.
841 (window_scroll_pixel_based, window_scroll_line_based): Search the
842 last command in the list Vscroll_preserve_screen_position_commands
843 instead of comparing with Qscroll_up and Qscroll_down.
844
4bef8d26
JD
8452010-04-13 Jan Djärv <jan.h.d@swipnet.se>
846
92848133
JD
847 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
848 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
849 does that.
850
4bef8d26
JD
851 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
852 to zero.
853
58b963f7
SM
8542010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
855
84164a0d
SM
856 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
857
2b0a91e7
SM
858 Try to solve the problem of spurious EOF chars in long lines of text
859 sent to interactive subprocesses.
860 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
861 (system_process_attributes): Remove unused var `ttotal'.
862 * process.c (send_process): Don't bother breaking long line with EOF
863 chars when talking to ttys any more.
864 (wait_reading_process_output): Output a warning when called in such
865 a way that it could block without being interruptible.
866
58b963f7
SM
867 Try to detect file modification within the same second.
868 * buffer.h (struct buffer): New field modtime_size.
869 * buffer.c (reset_buffer): Initialize it.
870 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
871 (Fverify_visited_file_modtime): Check it.
872 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
873 (Fset_visited_file_modtime): Set (or clear) it.
874
01f5787b
SM
8752010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
876
877 * process.c (status_notify): Remove unused var `ro'.
878
83725342
JD
8792010-04-12 Jan Djärv <jan.h.d@swipnet.se>
880
881 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
882 more than one visual (Bug#5938).
883
b9465836
DN
8842010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
885
50426a04
JB
886 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
887 Undefine.
b9465836 888
8d9c8ece
DN
8892010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
890
b1f52161
DN
891 Remove C_SWITCH_SYSTEM_TEMACS.
892 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
893 (malloc, realloc, free): Use emacs, not temacs for conditional
894 definition.
895
896 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
897 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
898
8d9c8ece
DN
899 Use autoconf, not cpp for some variables.
900 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
901 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
902 (ALL_CFLAGS): Use them as make variables.
903 (really-lwlib, really-oldXMenu): Do not pass them.
904
1ecb2d3f
JD
9052010-04-11 Jan Djärv <jan.h.d@swipnet.se>
906
907 * xmenu.c (apply_systemfont_to_dialog): New.
908 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
909
3a4fa2f2
SM
9102010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
911
97e53006
SM
912 * process.c (exec_sentinel): Preserve current-buffer.
913
3a4fa2f2
SM
914 * process.c (read_process_output): Move the save-current-buffer to
915 apply to both the filter and the non-filter branches.
916
88df7221
DN
9172010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
918
919 * s/msdos.h (UNEXEC): New definition.
920
5634ff85
YM
9212010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
922
6eff5c3d
YM
923 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
924 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
925
926 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
927 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
928 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
929 TRY_WINDOW_CHECK_MARGINS.
930
931 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
932 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
933 width only when it is for padding.
5634ff85 934
b13aef54
J
9352010-04-09 Jan Djärv <jan.h.d@swipnet.se>
936
937 * xfns.c (Fx_show_tip): Call try_window in a loop until
938 fonts_changed_p is zero (Bug#2423).
939
21d28484
EZ
9402010-04-08 Eli Zaretskii <eliz@gnu.org>
941
942 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
943 the end of TEXT_AREA. (Bug#5856)
944
0269ef77
JD
9452010-04-08 Jan Djärv <jan.h.d@swipnet.se>
946
947 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
948 HAVE_GCONF.
949
5930fe97
EZ
9502010-04-08 Eli Zaretskii <eliz@gnu.org>
951
952 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
953 prev.orig_type, for resolving type of NSM. (Bug#5858)
954
99852628
JD
9552010-04-08 Jan Djärv <jan.h.d@swipnet.se>
956
957 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
958 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
959 in current_font.
960 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
961 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
962 New functions.
963 (syms_of_xsettings): Initialize current_font.
964 defsubr Sfont_get_system_normal_font.
99852628
JD
965
966 * xsettings.h (Ffont_get_system_normal_font,
967 xsettings_get_system_normal_font): Declare.
968
969 * xfns.c (extern xlwmenu_default_font): Remove.
970 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
971 to xlwmenu.c.
972
973 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
974 menu items in UTF-8.
975
976 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
977 (apply_systemfont_to_menu): New function.
978 (set_frame_menubar, create_and_show_popup_menu): Call
979 apply_systemfont_to_menu.
980
7fc874c4
J
9812010-04-07 Jan Djärv <jan.h.d@swipnet.se>
982
983 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
984 FRAME_LINE_TO_PIXEL_Y.
985
986 * xterm.c (x_set_window_size_1): Don't add border_width/height to
987 pixelwidth/height.
988
863bf481
DN
9892010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
990
5e5a3b92
DN
991 Simplify code for HP machines.
992 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
993 for GNU_LINUX, not needed.
994 (UNEXEC, NEED_BSDTTY): Move definitions...
995 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
996
863bf481
DN
997 * m/iris4d.h (UNEXEC): Move definition ...
998 * s/irix6-5.h (UNEXEC): ... here.
999
3e6bec3b
JD
10002010-04-04 Jan Djärv <jan.h.d@swipnet.se>
1001
1002 * xfns.c (set_machine_and_pid_properties): New function.
1003 (Fx_create_frame): Call set_machine_and_pid_properties.
1004
2912322b
SM
10052010-04-03 Eli Zaretskii <eliz@gnu.org>
1006
1502b819
EZ
1007 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
1008 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
1009 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
1010
2912322b
SM
1011 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
1012 in this function. (Bug#5703)
1013
10142010-04-03 Chong Yidong <cyd@stupidchicken.com>
1015
1016 * nsterm.h: Fix last change.
1017
c435b432
DN
10182010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
1019
a568f507
DN
1020 * m/intel386.h (NO_REMAP): Move definition ...
1021 * s/msdos.h (NO_REMAP): ... here.
1022
4cd9f6c2
DN
1023 * m/vax.h (CRT0_DUMMIES): Remove, unused.
1024
c435b432
DN
1025 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
1026 used on those platforms.
1027
42a2c622
DN
10282010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
1029
1030 Remove extern errno declarations.
1031 * xterm.c:
1032 * xrdb.c:
1033 * w32term.c:
1034 * unexec.c:
1035 * unexaix.c:
1036 * sysdep.c:
1037 * process.c:
1038 * lread.c:
1039 * keyboard.c:
1040 * floatfns.c:
1041 * filelock.c:
1042 * fileio.c:
1043 * emacs.c (main):
1044 * ecrt0.c:
1045 * dispnew.c:
1046 * callproc.c:
1047 * buffer.c: Remove errno extern declarations.
1048 * s/netbsd.h (NEED_ERRNO): Remove.
1049
8224f93d
DN
10502010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
1051
1052 Remove all uses of LIBX11_SYSTEM.
1053 * Makefile.in (LIBX11_SYSTEM): Remove.
1054 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
1055 instead.
1056
814062c7
EZ
10572010-04-01 Eli Zaretskii <eliz@gnu.org>
1058
ed68db4d
EZ
1059 Remove support for DJGPP v1.x (bug#5813).
1060
1061 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
1062 * s/msdos.h:
1063 * unexec.c (make_hdr, copy_text_and_data):
1064 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 1065 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
1066 (IT_set_terminal_modes, __write, _rename, gethostname)
1067 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
1068 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
1069 the value of __DJGPP__.
ed68db4d
EZ
1070 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
1071 compatibility code.
8224f93d
DN
1072 * lread.c:
1073 * gmalloc.c (memalign):
1074 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
1075 * emacs.c (main):
1076 * dosfns.c (init_dosfns):
ed68db4d
EZ
1077 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
1078
52f4d8d5
EZ
10792010-04-01 Eli Zaretskii <eliz@gnu.org>
1080
814062c7
EZ
1081 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
1082 string with `cursor' property comes from an `after-string'
1083 overlay. (Bug#5816)
1084
0dc2e11d
GM
10852010-04-01 Glenn Morris <rgm@gnu.org>
1086
1087 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
1088 Define as Makefile variables.
1089 (LIBX): Use above variables rather than directly using autoconf.
1090
1d29df59
DN
10912010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
1092
1093 Clean up BSD_SYSTEM use.
1094 * xterm.c:
1095 * process.c:
1096 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
1097 for including <sys/ioctl.h>.
1098 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
1099 code is only used for MSDOS.
1100
1546c559
JL
11012010-03-31 Juri Linkov <juri@jurta.org>
1102
1103 * image.c: Add `Qextension_data'.
1104 (syms_of_image): Initialize and staticpro `Qextension_data'.
1105 (Fimage_metadata): Rename from `Fimage_extension_data'.
1106 (gif_load): Put GIF extension data to the property
1107 `Qextension_data'.
1108
b8a1d5a1
CY
11092010-04-05 Chong Yidong <cyd@stupidchicken.com>
1110
1111 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
1112 terminal frames (Bug#5837).
1113
6521c534
CY
11142010-03-31 Chong Yidong <cyd@stupidchicken.com>
1115
1116 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
1117 * nsterm.h: Fix prototype.
1118
52c30783
EZ
11192010-03-31 Eli Zaretskii <eliz@gnu.org>
1120
1121 * xdisp.c (highlight_trailing_whitespace): Support highlight of
1122 trailing whitespace in right-to-left rows.
1123
855a0da7
SM
11242010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
1125
1126 Get rid of the direct_output optimizations.
1127 * keyboard.c (nonundocount): Remove extern declaration.
1128 (command_loop_1): Remove brittle optimisation for cheap and
1129 common operations.
1130 * xdisp.c (redisplay_internal): Don't bother checking
1131 redisplay_performed_directly_p any more.
1132 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
1133 any more.
1134 * dispnew.c (redisplay_performed_directly_p)
1135 (direct_output_for_insert, direct_output_forward_char):
1136 * dispextern.h (redisplay_performed_directly_p)
1137 (direct_output_for_insert, direct_output_forward_char): Remove.
1138 * cmds.c (nonundocount): Make it static.
1139
85738751 11402010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
1141
1142 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
1143
85738751 11442010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
1145
1146 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
1147 invisible (Bug#5766).
1148
85738751 11492010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 1150
855a0da7
SM
1151 * xdisp.c (x_consider_frame_title, update_window_cursor):
1152 Remove HAVE_NS conditionals.
194d44e7 1153 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
1154
1155 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
1156 filename for the title.
1157 (ns_set_doc_edited): Do nothing if the selected window is a
1158 minibuffer window.
1159
1160 * nsterm.h: Add prototypes for ns_set_name_as_filename and
1161 ns_set_doc_edited.
1162
1163 * nsterm.m: Remove unneeded prototype.
1164
85738751 11652010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
1166
1167 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
1168 in the DOC file. (Bug#5336)
1169
85738751 11702010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
1171
1172 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
1173
75d1428c
SM
11742010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
1175
1176 * window.c (keys_of_window): Remove redundant/overridden bindings.
1177
82043cfb
EZ
11782010-03-30 Eli Zaretskii <eliz@gnu.org>
1179
1180 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
1181 Restore original behavior when the iterator is not bidi_p.
1182
b5dd0ae7
DN
11832010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
1184
1185 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
1186
bd924a5d
EZ
11872010-03-30 Eli Zaretskii <eliz@gnu.org>
1188
1189 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
1190 are outside the range of cached character positions.
1191
3580374b
JB
11922010-03-30 Juanma Barranquero <lekktu@gmail.com>
1193
1194 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
1195
a7b02820
EZ
11962010-03-30 Eli Zaretskii <eliz@gnu.org>
1197
1198 Initial support for bidirectional editing.
1199
1200 * Makefile.in (obj): Include bidi.o.
1201 (bidi.o): New target.
1202
1203 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
1204 ($(BLD)/bidi.$(O)): New target.
1205
1206 * bidi.c: New file.
1207
1208 * buffer.h (struct buffer): New members bidi_display_reordering
1209 and bidi_paragraph_direction.
1210
1211 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
1212 and bidi_paragraph_direction.
1213 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
1214 and bidi-paragraph-direction.
1215 (Fbuffer_swap_text): Swap the values of
1216 bidi_display_reordering and bidi_paragraph_direction.
1217
1218 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
1219 (bidi_type_t, bidi_dir_t): New types.
1220 (bidi_saved_info, bidi_stack, bidi_it): New structures.
1221 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
1222 prev_stop, base_level_stop, and eol_pos.
1223 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
1224 (IT_STACK_SIZE): Enlarge to 5.
1225 (struct glyph_row): New member reversed_p.
1226 <string_buffer_position>: Update prototype.
1227 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
1228 glyph_row if bidi_it.paragraph_dir == R2L.
1229 (struct glyph): New members resolved_level and bidi_type.
1230
1231 * dispnew.c (direct_output_forward_char): Give up if we need bidi
1232 processing or buffer's direction is right-to-left.
1233 (prepare_desired_row): Preserve the reversed_p flag.
1234 (row_equal_p): Compare the reversed_p attributes as well.
1235
1236 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
1237 bidi_init_it and set it->paragraph_embedding from the current
1238 buffer's value of bidi_paragraph_direction.
1239 (reseat_1): Initialize bidi_it.first_elt.
1240 (set_iterator_to_next, next_element_from_buffer): Use the value of
1241 paragraph_embedding to determine the paragraph direction.
1242 (set_iterator_to_next): Under bidi reordering, call
1243 bidi_get_next_char_visually. Call bidi_paragraph_init if the
1244 new_paragraph flag is set in the bidi iterator.
1245 (next_element_from_buffer): If bidi_it.first_elt is set,
1246 initialize paragraph direction and find the first character to
1247 display in the visual order. If reseated to a middle of a line,
1248 prime the bidi iterator starting at the line's beginning. Handle
1249 the situation where we overstepped stop_charpos due to
1250 non-linearity of the bidi iteration. Likewise for when we back up
1251 beyond the previous stop_charpos. When moving across stop_charpos,
1252 record it in prev_stop.
1253 (display_line): Set row->end and it->start for the next row to the
1254 next character in logical order. Always extend reversed_p rows to
1255 the end of line, even if they end at ZV. Copy the reversed_p flag
1256 to the next glyph row. Keep calling set_cursor_from_row for
1257 bidi-reordered rows even if we already have a possible candidate
1258 for cursor position. Set row_end after all the row's glyphs have
1259 been produced, by looping over the glyphs. Record the position
1260 after EOL in it->eol_pos, and use it to set end_pos of the last
1261 row produced for a continued line.
1262 <Qright_to_left, Qleft_to_right>: New variables.
1263 (syms_of_xdisp): Initialize and staticpro them.
1264 (string_buffer_position_lim): New function.
1265 (string_buffer_position): Most of code moved to
1266 string_buffer_position_lim. Last argument and return value are
1267 now EMACS_INT; all callers changed.
1268 (set_cursor_from_row): Rewritten to support bidirectional text and
1269 reversed glyph rows.
1270 (text_outside_line_unchanged_p, try_window_id): Disable
1271 optimizations if we are reordering bidirectional text and the
1272 paragraph direction can be affected by the change.
1273 (append_glyph, append_composite_glyph)
1274 (produce_image_glyph, append_stretch_glyph): Set the
1275 resolved_level and bidi_type members of each glyph.
1276 (append_glyph): If the glyph row is reversed, prepend the glyph
1277 rather than appending it.
1278 (handle_stop_backwards): New function.
1279 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
1280 (reseat): call handle_stop_backwards to recompute prev_stop and
1281 base_level_stop for the new position.
1282 (handle_invisible_prop): Under bidi iteration, skip invisible text
1283 using bidi_get_next_char_visually. If we are `reseat'ed, init the
1284 paragraph direction. Update IT->prev_stop after skipping
1285 invisible text.
1286 (move_it_in_display_line_to): New variables prev_method
1287 and prev_pos. Compare for strict equality in
1288 BUFFER_POS_REACHED_P.
1289 (try_cursor_movement): Examine all the candidate rows that occlude
1290 point, to return the best match. If rows are bidi-reordered
1291 and point moved backwards, back up to the row that is not a
1292 continuation line, and start looking for a suitable row from
1293 there.
1294
1295 * term.c (append_glyph): Reverse glyphs by pre-pending them,
1296 rather than appending, if the glyph_row's reversed_p flag is set.
1297 Set the resolved_level and bidi_type members of each glyph.
1298
1299 * .gdbinit (pbiditype): New command.
1300 (pgx): Use it to display bidi level and type of the glyph.
1301 (pitx): Display some bidi information about the iterator.
1302 (prowlims, pmtxrows): New commands.
1303
32a8894e
DN
13042010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
1305
1306 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
1307 * s/usg5-4.h (LIBS_DEBUG):
1308 * s/irix6-5.h (C_DEBUG_SWITCH):
1309 * s/gnu-linux.h (LIBS_DEBUG):
1310 * s/darwin.h (LIBS_DEBUG):
1311 * s/bsd-common.h (LIBS_DEBUG):
1312 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
1313 * m/iris4d.h (LIBS_DEBUG):
1314 * m/hp800.h (LIBS_DEBUG): Remove definitions.
1315
1316 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
1317 (LIBS_DEBUG): Remove definition.
1318
649dbf36
CY
13192010-03-27 Chong Yidong <cyd@stupidchicken.com>
1320
1321 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
1322 Windows.
1323
cad4261f
YM
13242010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1325
1326 * process.c (Fmake_network_process): Don't call turn_on_atimers around
1327 `connect' (Bug#5723).
1328
cd591dbc
HE
13292010-03-25 Helmut Eller <eller.helmut@gmail.com>
1330
1331 * process.c (Fmake_network_process): Call `select' for interrupted
1332 `connect' rather than creating new socket (Bug#5173).
1333
e867cb5d 13342010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
1335
1336 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
1337
1338 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
1339
1340 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
1341
e867cb5d 13422010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
1343
1344 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
1345 XLoadQueryFont.
1346
e867cb5d 13472010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
1348
1349 * coding.c (decode_coding_ccl): Fix previous change for the
1350 multibyte case.
fb608df3
KH
1351 (encode_coding_ccl): Don't setup ccl program here. Fix for the
1352 case that the output buffer is fullfilled.
1353 (encode_coding): Setup ccl program here.
fbdc1721 1354
e867cb5d 13552010-03-24 Andreas Politz <politza@fh-trier.de> (tiny change)
35cd7cd6
CY
1356
1357 * editfns.c (Fformat): Account for string precision when computing
1358 field width (Bug#5710).
1359
5845f0ed
DN
13602010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
1361
814fb708
DN
1362 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
1363
5845f0ed
DN
1364 Simplify LIBS_MACHINE definitions.
1365 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
1366 * m/iris4d.h (LIBS_MACHINE): Likewise.
1367 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
1368 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 1369 * s/netbsd.h: Remove commented out code.
5845f0ed 1370
b7064064
DN
13712010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
1372
df7734b2
DN
1373 Remove dead code dealing with POSIX_SIGNALS.
1374 * atimer.c (set_alarm): Remove dead code, all USG systems define
1375 POSIX_SIGNALS.
1376 * data.c (arith_error): Likewise.
1377 * keyboard.c (input_available_signal, handle_user_signal)
1378 (interrupt_signal): Likewise.
1379 * process.c (sigchld_handler): Likewise.
1380 (create_process): Remove if 0 code. Remove HPUX conditional when
1381 !defined (POSIX_SIGNALS), it cannot be true.
1382 * syssignal.h: Remove USG5_4 and USG conditionals when
1383 !POSIX_SIGNALS, they cannot be true.
1384
b7064064
DN
1385 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
1386 NO_SOCK_SIGIO, not used anymore.
1387
55da5ee3
DN
13882010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
1389
0be96e3a
DN
1390 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
1391 support vax on BSDs.
1392
55da5ee3
DN
1393 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
1394 * s/aix4-2.h (ORDINARY_LINK): ... here.
1395
c0282183
AS
13962010-03-21 Andreas Schwab <schwab@linux-m68k.org>
1397
82c3d67a
AS
1398 * Makefile.in (abs_builddir): Define.
1399 (bootstrap_exe): Use it.
1400 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 1401
3613edce
SM
14022010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
1403
1404 * Makefile.in (bootstrap_exe): Use an absolute name.
1405
7f110ddc
DN
14062010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
1407
22e87574
DN
1408 Remove support for old GNU/Linux using libc version 5.
1409 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
1410 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
1411
05a670e6
DN
1412 Consolidate redundant definitions in s/bsd-common.h.
1413 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
1414 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
1415 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
1416 doing it in all files that include this one.
1417 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
1418 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
1419 (LDAV_SYMBOL, KERNEL_FILE): Remove.
1420 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
1421 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
1422 (LDAV_SYMBOL, KERNEL_FILE): Remove.
1423 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
1424 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
1425 (LDAV_SYMBOL, KERNEL_FILE): Remove.
1426
2968f561
DN
1427 Consolidate redundant definitions.
1428 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
1429 it's undefined in all files that include this one.
1430 (POSIX_SIGNALS): Define here instead of doing it in all files that
1431 include this one.
1432 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
1433 (POSIX_SIGNALS): Do not define.
1434 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
1435 (POSIX_SIGNALS): Do not define.
1436 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
1437 (POSIX_SIGNALS): Do not define.
1438
15d25dc0
DN
1439 Remove support for old UNIX System V systems.
1440 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
1441 * s/usg-5-4-2.h: Remove.
1442
07e339e4
DN
1443 Remove support for Solaris on PPC and for old versions.
1444 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
1445 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
1446 that cancel each other.
1447 * s/sol2-3.h:
1448 * s/sol2-4.h:
1449 * s/sol2-5.h: Remove.
1450 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
1451 (NO_REMAP): Remove, unused.
1452 (UNEXEC): Move definition ...
1453 * s/aix4-2.h (UNEXEC): ... here.
1454
7f110ddc
DN
1455 * s/openbsd.h: Remove support for non-ELF and for systems that do
1456 not support shared libraries.
1457 * s/netbsd.h:
1458 * s/freebsd.h: Likewise.
1459
605f35cd
DN
14602010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
1461
1462 Remove non-working support for lynxos 3.0.
1463 * s/lynxos.h: Remove file.
1464
1465 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
1466 COFF_BSD_SYMBOLS, nothing defines it anymore.
1467
aed71cf4
DN
14682010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
1469
1470 Remove obsolete uses of HAVE_SHM.
1471 * emacs.c (standard_args):
1472 (Fdump_emacs):
1473 (syms_of_emacs): Remove code depending on HAVE_SHM.
1474
1475 * alloc.c: Remove HAVE_SHM dependent definition.
1476
1477 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
1478
aded53ff
GM
14792010-03-18 Glenn Morris <rgm@gnu.org>
1480
17284745
GM
1481 * emacs.c (USAGE4): Hard-code bug address.
1482 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
1483 (bug_reporting_address): Remove.
1484 (main): Don't call bug_reporting_address.
1485
aded53ff
GM
1486 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
1487 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
1488
303500aa
CY
14892010-03-15 Chong Yidong <cyd@stupidchicken.com>
1490
1491 * xfns.c (Fx_create_frame):
1492 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
1493 on left.
1494
cef3058f
CY
14952010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
1496
1497 * editfns.c (Fformat): Account for string precision when computing
1498 field width (Bug#5710).
1499
a647d59d
CY
15002010-03-12 Chong Yidong <cyd@stupidchicken.com>
1501
4fa42018
CY
1502 * xfns.c (Fx_create_frame): Set default to Qright.
1503
a647d59d
CY
1504 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
1505 all window systems.
1506
6da23aaa
EZ
15072010-03-12 Eli Zaretskii <eliz@gnu.org>
1508
a96f6398 1509 These changes remove termcap.c from the build on Posix platforms.
83d02def 1510 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
1511 (MSDOS_OBJ): ...to here.
1512 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
1513 now identical to when LIBS_TERMCAP is defined.
1514
1515 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
1516
1517 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
1518
a96f6398 1519 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 1520
288f9fc0
CY
15212010-03-10 Chong Yidong <cyd@stupidchicken.com>
1522
1523 * Branch for 23.2.
1524
d48cd3f4
SM
15252010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
1526
1527 Cleanup setup of gl_state in various parts of the code.
1528 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
1529 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
1530 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
1531 (skip_chars):
1532 * regex.c (regex_compile): Use it.
1533 (re_compile_pattern): Don't set gl_state.current_syntax_table since
1534 it's now set in regex_compile when/if we need it.
1535
618db430
SM
15362010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
1537
c0335e02
SM
1538 Make it possible to C-g in a tight bytecode loop again (bug#5680).
1539 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
1540 (QUIT): Use it to consolidate code and remove redundancy.
1541 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
1542
254c06a8
SM
1543 * regex.c (regex_compile): Setup gl_state as well.
1544
618db430
SM
1545 * syntax.c (skip_chars): Setup gl_state (bug#3823).
1546 (in_classes): Use CONSP before XCAR/XCDR.
1547
233f0c9f
CY
15482010-03-03 Chong Yidong <cyd@stupidchicken.com>
1549
1550 * keymap.c (Fwhere_is_internal): Use Fequal to compare
1551 definitions, so that keyboard macros are correctly handled
1552 (Bug#5481).
1553
75f80e63
EZ
15542010-03-02 Eli Zaretskii <eliz@gnu.org>
1555
1556 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
1557 text that could be relocated inside the call to emacs_mule_char.
1558 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
1559 (CODING_DECODE_CHAR): Add a comment describing its purpose.
1560
dcfb9bc4
KH
15612010-03-02 Kenichi Handa <handa@m17n.org>
1562
fc9a17bc
KH
1563 * character.c (parse_str_as_multibyte): Fix handling of the
1564 multibyte form of raw-bytes.
1565 (str_as_multibyte): Likewise.
1566
dcfb9bc4
KH
1567 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
1568 form of raw-bytes.
1569
412c01b6
CY
15702010-02-28 Chong Yidong <cyd@stupidchicken.com>
1571
1572 * charset.c (load_charset_map_from_file)
1573 (load_charset_map_from_vector): Zero out allocated
1574 charset_map_entries before using them.
1575
df7e1ea0
AS
15762010-02-27 Andreas Schwab <schwab@linux-m68k.org>
1577
1578 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
1579
fe69a722
CY
15802010-02-27 Chong Yidong <cyd@stupidchicken.com>
1581
4ed28cf4
CY
1582 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
1583 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 1584
7379cfce
KH
15852010-02-26 Kenichi Handa <handa@m17n.org>
1586
f88cc4d6
KH
1587 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
1588
7379cfce
KH
1589 * xdisp.c (reseat_to_string): Fix previous change.
1590
cf2fdcfb
CY
15912010-02-26 David Reitter <david.reitter@gmail.com>
1592
1593 * nsfont.m (nsfont_draw): ns_antialias_text should be a
1594 Lisp_Object (Bug#4736).
1595
cc6c7c75
KH
15962010-02-25 Kenichi Handa <handa@m17n.org>
1597
1598 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
1599
32e737d7
JD
16002010-02-24 Jan Djärv <jan.h.d@swipnet.se>
1601
1602 * xterm.c (XTflash): Move declarations before statements.
1603
1604 * gtkutil.c (xg_get_gdk_display): Remove (unused).
1605 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
1606 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
1607 (xg_create_tool_bar): Remove unused variables.
1608 (x_wm_set_size_hint): Move declarations before statements.
1609 (xg_create_frame_widgets): Remove variable grav,
1610
676cae9f
CY
16112010-02-21 Chong Yidong <cyd@stupidchicken.com>
1612
1613 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
1614
886cc2b8
SM
16152010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
1616
1617 * term.c (fatal): Add a final \n if needed (bug#5596).
1618
ddb2d8e2
CY
16192010-02-18 Chong Yidong <cyd@stupidchicken.com>
1620
1621 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
1622
2a4f8d3d
GM
16232010-02-18 Glenn Morris <rgm@gnu.org>
1624
1625 * callint.c (Finteractive): Doc fix.
1626
ebaf11b6
KH
16272010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
1628
886cc2b8
SM
1629 * coding.c (record_conversion_result):
1630 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
1631 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
1632 memory allocation error.
1633
d0396581
KH
16342010-02-17 Kenichi Handa <handa@m17n.org>
1635
886cc2b8
SM
1636 * coding.c (decode_coding_ccl): Don't setup ccl program here.
1637 Fix for the case that the output buffer is fullfilled.
d0396581
KH
1638 (decode_coding): Setup ccl program here. Keep looping when the
1639 decoder stopped because the output buffer is
1640 fullfilled (bug#5534).
1641
1642 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
1643
98599f74
JD
16442010-02-13 Jan Djärv <jan.h.d@swipnet.se>
1645
471e4f04 1646 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 1647 bug #5571.
886cc2b8 1648 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 1649 overdrawn.
98599f74 1650
182659ae
JD
16512010-02-10 Jan Djärv <jan.h.d@swipnet.se>
1652
1653 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
1654 doing_interact here.
1655 (ice_connection_closed): New function.
1656 (x_session_check_input, smc_die_CB, ice_io_error_handler)
1657 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
1658 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
1659 returns I/O error.
1660 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
1661 bug #5512.
1662
9be32c4e 16632010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
1664
1665 * nsfont.m (nsfont_open): The system's value for the font descent
1666 is negative, so round it down to avoid clipping.
1667
a2f3eb19
CY
16682010-02-06 Chong Yidong <cyd@stupidchicken.com>
1669
1670 * charset.c (load_charset_map_from_file)
1671 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 1672 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 1673
3088147c
CY
16742010-02-05 Chong Yidong <cyd@stupidchicken.com>
1675
1676 * charset.c (load_charset_map_from_file): Allocate large
1677 charset_map_entries structure on the heap rather than the stack.
1678 (Bug#5526).
1679
b57d9029
KH
16802010-01-31 Kenichi Handa <handa@m17n.org>
1681
1682 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 1683 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 1684
c67d885b
CY
16852010-01-31 Chong Yidong <cyd@stupidchicken.com>
1686
1687 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
1688 <deactivated@gmail.com> (Bug#3605).
1689
8fab2362
CY
16902010-01-31 David De La Harpe Golden <david@harpegolden.net>
1691
1692 * fileio.c (Frename_file): Correctly rename symlinks to
1693 directories (Bug#5496).
1694
cb2a62f2
CY
16952010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
1696
1697 * nsterm.m (ns_ring_bell): Handle visible bell like X.
1698
944c7a26
AS
16992010-01-30 Andreas Schwab <schwab@linux-m68k.org>
1700
1701 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
1702
c024ac08
CY
17032010-01-29 Chong Yidong <cyd@stupidchicken.com>
1704
1705 * frame.c (DEFAULT_ROWS): Change default to 35.
1706
1707 * xfns.c (x_default_font_parameter): Change default XFT font to
1708 monospace-10 (Bug#3643).
1709
af93af83
EZ
17102010-01-29 Eli Zaretskii <eliz@gnu.org>
1711
1712 * w32inevt.c (key_event): Remove unnecessary comparison of
1713 event->uChar.AsciiChar with 128.
1714
ca0eb708
CY
17152010-01-28 Chong Yidong <cyd@stupidchicken.com>
1716
b242dbfc
CY
1717 * fileio.c (Frename_file): Fix last change (Bug#5487).
1718
ca0eb708
CY
1719 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
1720
1721 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
1722
45d45af5
JD
17232010-01-28 Jan Djärv <jan.h.d@swipnet.se>
1724
1725 * xfns.c (Fx_create_frame): Remove window size matching code from
1726 2010-01-15.
1727 (x_get_current_desktop, x_get_desktop_workarea): Remove
1728
7e233730
JR
17292010-01-27 Jason Rumney <jasonr@gnu.org>
1730
1731 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 1732 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 1733
86e893e3
KH
17342010-01-27 Kenichi Handa <handa@m17n.org>
1735
1736 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 1737 pattern string (Bug#4209).
86e893e3 1738
8719abec
CY
17392010-01-27 David De La Harpe Golden <david@harpegolden.net>
1740
1741 * fileio.c (Frename_file): Call copy-directory and
1742 delete-directory for directories, in order to handle cross-device
1743 renaming (Bug#3353).
1744
844794c8
JD
17452010-01-25 Jan Djärv <jan.h.d@swipnet.se>
1746
aa3e13b5 1747 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 1748 sizes 24 and 10. Bug #3643.
844794c8 1749
bd4b5750
SM
17502010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
1751
8dc1adf6 1752 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
1753 * keymap.c (shadow_lookup): Add `remap' arg.
1754 (describe_map, describe_vector): Update calls to shadow_lookup.
1755 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
1756 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
1757 perform remapping during shadow_lookup check of remapped_sequences.
1758
285d07e2
CY
17592010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
1760
1761 * image.c (png_load): Use png_sig_cmp instead of the obsolete
1762 png_check_sig, which has been removed in libpng 1.4.
1763
c6d09b8d
CY
17642010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
1765
1766 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
1767 lacks this header file).
1768
3d782998
YM
17692010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1770
1771 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
1772 as in Emacs 22.
1773
2aff7c53
YM
17742010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1775
1776 * lisp.h (make_pure_string): String pointer arg now points to const.
1777
1778 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
1779 args now point to const.
1780
74327f7a
EZ
17812010-01-22 Eli Zaretskii <eliz@gnu.org>
1782
1783 * lread.c (Fload): Don't treat files without .elc extension as
1784 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
1785 them. (bug#5303)
1786
4d1e6632
KH
17872010-01-20 Kenichi Handa <handa@m17n.org>
1788
1789 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
1790 treat the source as actual byte sequence.
1791
1fdede8f
AM
17922010-01-19 Alan Mackenzie <acm@muc.de>
1793
1794 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 1795 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
1796 `signal_after_change_p' to `coherent_change_p', and make the
1797 invocation of `modify_region' conditional on it.
1798
67477f30
JD
17992010-01-19 Jan Djärv <jan.h.d@swipnet.se>
1800
1801 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
1802 for debug purpose.
1803 (syms_of_xsettings): Declare xft-settings.
1804
244b023e
CY
18052010-01-18 Chong Yidong <cyd@stupidchicken.com>
1806
1807 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
1808
617364fe
CY
18092010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
1810
1811 * xterm.c (event_handler_gdk): Block input (Bug#5037).
1812
4fe22cdf
CY
18132010-01-16 Chong Yidong <cyd@stupidchicken.com>
1814
1815 * emacs.c (standard_args): Adjust arg priorities to reflect how
1816 they are processed in startup.el.
1817
e118d2be
AS
18182010-01-16 Andreas Schwab <schwab@linux-m68k.org>
1819
1820 * Makefile.in (lisp, shortlisp): Update.
1821
523ae620
SM
18222010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
1823
1824 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
1825 code, link the new kboard into all_kboard before running Lisp code,
1826 and protect the new terminal with GCPRO (Bug#5365).
1827 (x_term_init): Remove unused var `atom'.
1828 (x_delete_display, x_delete_terminal): Remove unused var `i'.
1829
f0d13888
JD
18302010-01-15 Jan Djärv <jan.h.d@swipnet.se>
1831
1832 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
1833 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
1834 to find out usable size of the desktop. Don't make frames larger than
ac146f82 1835 this. Bug #3643.
f0d13888 1836
cc320f07
KH
18372010-01-15 Kenichi Handa <handa@m17n.org>
1838
1839 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
1840
7ffdf101
CY
18412010-01-15 Chong Yidong <cyd@stupidchicken.com>
1842
1843 * nsterm.m (Qnone): Define.
1844
1845 * nsfns.m (Qnone): Move definition to nsterm.m.
1846
d12bd917
KH
18472010-01-14 Kenichi Handa <handa@m17n.org>
1848
1849 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
1850 systems.
1851
d9a7c140
KH
18522010-01-14 Kenichi Handa <handa@m17n.org>
1853
1854 Make auto-composition work on all buffers even if they are
1855 fundamental mode.
1856
1857 * composite.c (Vauto_composition_mode): New variable.
1858 (composition_compute_stop_pos): Check Vauto_composition_mode
1859 instead of Vauto_composition_function.
1860 (composition_adjust_point, Ffind_composition_internal): Likewise.
1861 (syms_of_composite): Declare Lisp variable
1862 "auto-composition-mode" here.
1863
63286bb2
CY
18642010-01-13 Chong Yidong <cyd@stupidchicken.com>
1865
1866 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
1867 during call to vendor-specific-keysyms (Bug#5365).
1868
c2623ee7
YM
18692010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1870
1871 * keyboard.c (input_available_signal) [SYNC_INPUT]:
1872 Call SIGNAL_THREAD_CHECK (Bug#5333).
1873
1874 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
1875 Call SIGNAL_THREAD_CHECK.
1876
0b5397c2
SM
18772010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
1878
1879 Try to fix bug#5314. This is probably not the final word, tho.
1880 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
1881 recent-auto-save-p as a side-effect.
1882 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
1883 * buffer.c (Fkill_buffer, reset_buffer):
1884 * editfns.c (Fsubst_char_in_region):
1885 * fileio.c (Finsert_file_contents, Fdo_auto_save)
1886 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
1887
dc954cb2
KH
18882010-01-13 Kenichi Handa <handa@m17n.org>
1889
1890 Display buffer name, etc. in mode line by composing correctly.
1891
1892 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
1893 STRING is not nil.
0b5397c2 1894 (display_mode_element): Adjust for the change of
dc954cb2
KH
1895 decode_mode_spec and display_line.
1896 (decode_mode_spec): Change arg MULTIBYTE to STRING.
1897 (display_string): Handle the case that STRING is non-null and
1898 LISP_STRING is not nil.
1899
0b5397c2
SM
1900 * xterm.c (x_draw_composite_glyph_string_foreground):
1901 Pay attention to s->face->overstrike.
dc954cb2
KH
1902
1903 * composite.c (composition_reseat_it): Don't check PT if STRING is
1904 non nil.
1905
4a00eaca
YM
19062010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1907
1908 * keyboard.c (read_char): Don't apply previous change when current
1909 buffer is unchanged by command execution.
1910
60abb287
JD
19112010-01-12 Jan Djärv <jan.h.d@swipnet.se>
1912
1913 * keyboard.c (read_char): Return after executing from special map.
1914
893db5bc
GM
19152010-01-12 Glenn Morris <rgm@gnu.org>
1916
1917 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
1918 bug-gnu-emacs rather than emacs-pretest-bug.
1919
4d03ece0
CY
19202010-01-11 Chong Yidong <cyd@stupidchicken.com>
1921
1922 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
1923 initializing the Lisp variables that depend on them.
1924
1df47e38
YM
19252010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1926
1927 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
1928 Clear areas that will not be updated after change of menu bar lines.
1929 Clear the menu bar window's current matrix when the window gets empty.
1930
2f1c6384
CY
19312010-01-09 Chong Yidong <cyd@stupidchicken.com>
1932
e398c61c
CY
1933 * intervals.h, textprop.c (extend_property_ranges): Return value
1934 and args changed. Discard properties that begin at or after the
1935 new end (Bug#5306).
1936
1937 * editfns.c (Fformat): Caller changed.
1938
e5a29a10
CY
1939 * nsterm.m (ns_set_default_prefs): Delete function.
1940 (syms_of_nsterm): Initialize ns_command_modifier,
1941 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
1942 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
1943
2f1c6384
CY
1944 * xdisp.c (pos_visible_p): Check for invisible text at the correct
1945 position (Bug#4040).
1946
d427a9fa
EZ
19472010-01-09 Eli Zaretskii <eliz@gnu.org>
1948
1949 * editfns.c (Ffloat_time): Doc fix.
1950
21b9df2f
JD
19512010-01-09 Jan Djärv <jan.h.d@swipnet.se>
1952
1953 * xfns.c (Fx_create_frame): Don't create frame larger than display
1954 by default bug#3643.
1955
4b00d3b1
YM
19562010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1957
1958 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
1959 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
1960 windows above internal border.
1961
1962 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
1963 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
1964 windows above internal border.
1965
1966 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
1967 tool bar windows specially.
1968
1969 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
1970
1971 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
1972 specially.
1973 (XTflash): Take account of menu bar height.
1974
1975 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
1976 specially.
1977
5075d853
JD
19782010-01-08 Jan Djärv <jan.h.d@swipnet.se>
1979
ac146f82 1980 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
1981 also be true before we can return early (bug #5339).
1982
474217c8
CY
19832010-01-06 David Reitter <david.reitter@gmail.com>
1984
1985 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
1986 (Fns_display_usable_bounds): Rewrite, computing bounds properly
1987 (Bug#3233).
1988
c0e6d47d
JD
19892010-01-06 Jan Djärv <jan.h.d@swipnet.se>
1990
d0cf45b7
JD
1991 * font.c (font_open_entity): Enable chache and call cached_font_ok
1992 for the driver if defined.
1993 (QCuser_spec): New symbol.
1994 (font_spec_from_name): Save name as user-spec.
1995 (font_load_for_lface): Keep user-spec instead of name.
1996 (font_open_by_name): Save name as user-spec.
1997 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 1998 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
1999
2000 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
2001 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
2002 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
2003
2004 * font.h (struct font_driver): Add cached_font_ok.
2005
c0e6d47d
JD
2006 * xterm.c (x_clear_frame): Queue draw for scroll bars.
2007
7c583cd8
JD
20082010-01-05 Jan Djärv <jan.h.d@swipnet.se>
2009
2010 * xterm.c (x_new_font): Move code for setting rows/cols before
2011 resizing ...
ac146f82 2012 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
2013
2014 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
2015 (xg_frame_resized, xg_frame_set_char_size):
2016 Call xg_clear_under_internal_border.
7c583cd8 2017 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 2018
03f77f0a
CY
20192010-01-05 Chong Yidong <cyd@stupidchicken.com>
2020
2021 * keyboard.c (read_key_sequence): Catch keyboard switch after
2022 making a new tty frame (Bug#5095).
2023
2a1ef5be
KH
20242010-01-05 Kenichi Handa <handa@m17n.org>
2025
2026 * fontset.c (fontset_find_font): Fix getting the frame pointer.
2027
e3eb1dae
SM
20282010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
2029
2030 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
2031 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
2032 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
2033
777013f2
MA
20342010-01-03 Michael Albinus <michael.albinus@gmx.de>
2035
2036 * dbusbind.c (xd_add_watch): Improve debug message.
2037 (xd_remove_watch): Improve debug message. If DATA is the session
2038 bus, unset D-Bus session environment.
2039 (Fdbus_init_bus): Pass the bus as argument to
2040 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 2041
8932b1c2
CY
20422010-01-01 Chong Yidong <cyd@stupidchicken.com>
2043
87231e2c
CY
2044 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
2045
4801c5fa
CY
2046 * lread.c (syms_of_lread): Make it clearer that these are the
2047 names of loaded files (Bug#5068).
2048
8932b1c2
CY
2049 * eval.c (run_hook_with_args): Handle the case where the global
2050 value has the obsolete single-function form (Bug#5026).
2051
11e3c684
CY
20522009-12-27 Chong Yidong <cyd@stupidchicken.com>
2053
2054 * minibuf.c (Fall_completions): Minor optimization.
2055
5b28ce35
EZ
20562009-12-26 Eli Zaretskii <eliz@gnu.org>
2057
5ce6e4f4
JB
2058 * .gdbinit (pgx): Fix display of composite glyphs.
2059 Display cmp.from and cmp.to as well.
2060 (pitx): Fix last change.
5b28ce35 2061
bcffff46
KH
20622009-12-25 Kenichi Handa <handa@m17n.org>
2063
2064 * composite.h (composition_adjust_point): Update prototype.
2065
2066 * composite.c (composition_reseat_it): Don't make a composition
2067 spanning over point.
2068 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
2069 composable characters.
2070 (composition_adjust_point): New arg NEW_PT. Callers changed.
2071
2072 * keyboard.c (command_loop_1): Force redisplay if the last point
2073 was within a composition.
2074 (adjust_point_for_property): Don't adjust point for automatic
2075 composition when called after buffer modification.
2076
3f670e9a
EZ
20772009-12-19 Eli Zaretskii <eliz@gnu.org>
2078
5ce6e4f4
JB
2079 * .gdbinit (pitx): Don't use enum names, use their values.
2080 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
2081 (pgx): Don't use enum names, use their values.
2082 (pitmethod): New helper command.
2083 (pitx): Use it to display iteration method.
2084 (pgrowit): New command.
2085
ad903955
EZ
2086 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
2087
3f670e9a
EZ
2088 Update dependencies in Makefile.in.
2089
2090 * Makefile.in (alloc.o): Depend on termhooks.h.
2091 (atimer.o): Depend on blockinput.h.
2092 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
2093 and frame.h.
2094 (callint.o): Depend on systime.h, coding.h, and composite.h.
2095 (callproc.o): Depend on buffer.h.
2096 (casefiddle.o): Don't depend on charset.h.
2097 (casetab.o): Depend on character.h.
2098 (ccl.o): Depend on composite.h.
2099 (chartab.o): Depend on ccl.h.
2100 (cm.o): Depend on dispextern.h.
2101 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
2102 (coding.o): Don't depend on $(INTERVALS_H).
2103 (composite.o): Don't depend on dispextern.h explicitly (it's in
2104 $(INTERVALS_H)). Depend on ccl.h.
2105 (data.o): Depend on systime.h, coding.h, composite.h,
2106 dispextern.h, font.h, and ccl.h.
2107 (dired.o): Depend on composite.h.
2108 (dispnew.o): Depend on coding.h. Don't depend explicitly on
2109 composite.h (it's in $(INTERVALS_H)).
2110 (doc.o): Depend on systime.h, coding.h, and composite.h.
2111 (editfns.o): Don't depend explicitly on dispextern.h.
2112 (emacs.o): Depend on frame.h and coding.h.
2113 (eval.o): Depend on coding.h, composite.h, and xterm.h.
2114 (fileio.o): Depend on frame.h and commands.h. Don't depend
2115 explicitly on dispextern.h.
2116 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
2117 composite.h.
2118 (fns.o): Don't depend on termhooks.h.
2119 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
2120 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
2121 coding.h, $(INTERVALS_H), window.h, xterm.h.
2122 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
2123 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
2124 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
2125 fontset.h, ccl.h, and ftfont.h.
2126 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
2127 (gtkutil.o): Depend on dispextern.h and composite.h.
2128 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
2129 termhooks.h, and ccl.h.
2130 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
2131 (intervals.o): Depend on systime.h and coding.h.
2132 (keyboard.o): Depend on composite.h and coding.h.
2133 (keymap.o): Depend on coding.h and frame.h.
2134 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
2135 (macros.o): Depend on systime.h, coding.h, and composite.h.
2136 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
2137 and atimer.h.
2138 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
2139 dispextern.h explicitly.
0b5397c2
SM
2140 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
2141 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
2142 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
2143 (regex.o): Don't depend on charset.h.
2144 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
2145 (search.o): Don't depend explicitly on composite.h.
2146 (sound.o): Depend on atimer.h and systime.h.
2147 (syntax.o): Don't depend explicitly on composite.h.
2148 (sysdep.o): Depend on coding.h and composite.h.
2149 (term.o): Depend on xterm.h and buffer.h.
2150 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
2151 (textprop.o): Don't depend on dispextern.h explicitly.
2152 (undo.o): Depend on dispextern.h.
2153 (window.o): Depend on coding.h and termhooks.h. Don't depend on
2154 dispextern.h and composite.h explicitly.
2155 (xdisp.o): Depend on ccl.h.
2156 (xfaces.o): Depend on coding.h and ccl.h.
2157 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
2158 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
2159 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
2160 ftfont.h.
2161 (xgselect.o): New dependency.
2162 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
2163 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
2164 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
2165 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
2166 (xsmfns.o): Depend on frame.h and dispextern.h.
2167 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
2168 sysselect.h.
2169
7a6f7fea
AS
21702009-12-19 Andreas Schwab <schwab@linux-m68k.org>
2171
2172 * font.c (Fclear_font_cache): Pass correct cache argument to
2173 font_clear_cache.
2174
f4c21026
AS
21752009-12-16 Andreas Schwab <schwab@linux-m68k.org>
2176
2177 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
2178 twice.
2179
f7ab0997
CY
21802009-12-15 Chong Yidong <cyd@stupidchicken.com>
2181
2182 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
2183 calling file-remote-p. Reported by Jim Meyering.
2184
fa8e045a
MA
21852009-12-15 Michael Albinus <michael.albinus@gmx.de>
2186
2187 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 2188 avoid compiler warnings. (Bug #5217)
fa8e045a 2189
a63dba42
KH
21902009-12-14 Kenichi Handa <handa@m17n.org>
2191
2192 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
2193 in 8-bit encoding.
2194
5ce6e4f4 21952009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
2196
2197 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
2198 tooltip windows.
2199
223e5fc6
JD
22002009-12-13 Jan Djärv <jan.h.d@swipnet.se>
2201
36acb2a7
JD
2202 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
2203 Xatom_net_window_type.
2204
2205 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
2206 Xatom_net_window_type.
2207
b8f00677
JD
2208 * xterm.c (my_log_handler): New function.
2209 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 2210 so we can filter out buggy messages. (Bug #5120).
b8f00677 2211
e5f0bc9a
JD
2212 * xterm.c (xg_scroll_callback): Parameter list changed,
2213 use parameter GtkScrollType to determine scroll/line/page.
2214 Only allow dragging if a button < 4 is grabbed (bug #5177).
2215 (xg_end_scroll_callback): New function.
2216 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
2217 xg_create_scroll_bar.
2218
2219 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
2220 (scroll_end_callback): Remove.
2221 (xg_create_scroll_bar): Add parameter end_callback, bind it to
2222 button-release-event. Replace value-changed event with change-value,
2223 bug #5177,
2224 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
2225 bug #5177.
2226
2227 * gtkutil.h (XG_LAST_SB_DATA): Remove.
2228 (xg_create_scroll_bar): Add GCallback end_callback.
2229
223e5fc6
JD
2230 * xftfont.c (QClcdfilter): New variable.
2231 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
2232 (syms_of_xftfont): Initialize QClcdfilter.
2233
3c055b77
JD
22342009-12-12 Jan Djärv <jan.h.d@swipnet.se>
2235
2236 * xsettings.c (struct xsettings): Add member seen.
2237 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 2238 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
2239 (apply_xft_settings): Only update Xft settings with what member seen
2240 indicates as new.
2241
05fe33ff
EZ
22422009-12-12 Eli Zaretskii <eliz@gnu.org>
2243
2244 * dispextern.h (struct text_pos): Use EMACS_INT;
2245 (struct glyph): Use EMACS_INT for charpos.
2246 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
2247 region_beg_charpos, region_end_charpos,
2248 redisplay_end_trigger_charpos, and also for
2249 iterator_stack_entry.end_charpos and
2250 iterator_stack_entry.stop_charpos.
2251
e8d7886a
JD
22522009-12-12 Jan Djärv <jan.h.d@swipnet.se>
2253
5ce6e4f4 2254 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
2255 (xg_create_scroll_bar): Call scroll_end_callback on button release
2256 event (bug #5177).
2257 (xg_event_is_for_scrollbar): != replaced with ==.
2258
d0db2ec8
KH
22592009-12-12 Kenichi Handa <handa@m17n.org>
2260
2261 * ftfont.c (struct ftfont_info): New member matrix.
2262 (ftfont_open): Setup xftfont_info->matrix.
2263 (MFLTFontFT): New member matrix.
2264 (FLOOR, CEIL, ROUND): New macros.
2265 (ftfont_get_metrics): Handle matrix transformation.
2266 (ftfont_shape_by_flt): New arg matrix. Callers changed.
2267
2268 * xftfont.c (struct xftfont_info): New member matrix.
2269 (xftfont_open): Setup xftfont_info->matrix.
2270
22712009-12-10 Kenichi Handa <handa@m17n.org>
2272
2273 * xdisp.c (append_space_for_newline): Consider face-remapping.
2274
2cc7b62f
AS
22752009-12-09 Andreas Schwab <schwab@linux-m68k.org>
2276
b87dd913
AS
2277 * xsettings.c: Include "keyboard.h".
2278
eba5eb94
AS
2279 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
2280
2cc7b62f
AS
2281 Fix implicit function declarations.
2282 * cmds.c: Include "frame.h".
2283 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
2284 * frame.h: Move declaration of delete_frame outside of
2285 HAVE_WINDOW_SYSTEM.
2286
a4ef73c8
CY
22872009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
2288
2289 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
2290
2291 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
2292 GTK builds.
2293
944a300c
AS
22942009-12-07 Andreas Schwab <schwab@linux-m68k.org>
2295
2296 * unexelf.c (unexec): Don't search for .data twice.
2297
022eef62
CY
22982009-12-05 Chong Yidong <cyd@stupidchicken.com>
2299
426ac949
CY
2300 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
2301 if push failed.
2302 (handle_line_prefix): Set avoid_cursor_p here. Check return value
2303 of push_display_prop (Bug#5000).
2304
022eef62
CY
2305 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
2306 value of font_list_entities (Bug#5085).
2307
be95bee9
JB
23082009-12-04 Juanma Barranquero <lekktu@gmail.com>
2309
2310 Fix `string-to-number' to deal consistently with integers and floats.
2311 * lread.c (isfloat_string): New argument ignore_trailing to accept all
2312 trailing characters, not just whitespace.
2313 (read1): Pass new arg 0 to keep old behavior.
2314 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
2315 trailing chars, as it is already done for integers. Doc fixes.
2316 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
2317
24c2d7ce
EZ
23182009-12-04 Eli Zaretskii <eliz@gnu.org>
2319
0b5397c2
SM
2320 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
2321 Delete unused enumeration value.
24c2d7ce 2322
7e694795
EZ
23232009-12-03 Eli Zaretskii <eliz@gnu.org>
2324
2325 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
2326
84b31826
SM
23272009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
2328
2329 * process.c (Fmake_network_process): Fix up the tests for
2330 "connectionless socket", so they DTRT for seqpacket sockets as well.
2331
f00c449b
SM
23322009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
2333
2334 * process.c (Qseqpacket): New symbol.
2335 (HAVE_SEQPACKET): New macro.
2336 (Fmake_network_process): Accept new :type `seqpacket'.
2337 (init_process): Add `seqpacket' feature when applicable.
2338 (syms_of_process): Initialize Qseqpacket.
2339
8096a0ff
YM
23402009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2341
2342 * font.c (font_load_for_lface, font_open_by_name): Don't store name
2343 if entity is Qnil.
2344
3e0de07f
SM
23452009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
2346
2347 * print.c (print_preprocess): Preprocess the key_and_value table of
2348 hashtables, even tho they're "hidden" (bug#5082).
2349
abeafb2a
JD
23502009-11-29 Jan Djärv <jan.h.d@swipnet.se>
2351
2352 * frame.c (frame_make_pointer_invisible)
2353 (frame_make_pointer_visible): Declare f before statements.
2354
4bf47195
EZ
23552009-11-28 Eli Zaretskii <eliz@gnu.org>
2356
2357 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
2358 omitted dependencies on lisp.h.
2359
c525b3f2
JD
23602009-11-27 Jan Djärv <jan.h.d@swipnet.se>
2361
ece2d4ed
JD
2362 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
2363 is NULL.
2364
2365 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
2366
2367 * frame.c (frame_make_pointer_invisible)
3e0de07f 2368 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
2369 frame.
2370
c525b3f2
JD
2371 * search.c (simple_search): Remove warning by making *p const.
2372
2f00e299
DN
23732009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
2374
2375 * xdisp.c (power_letter): Remove duplicate const.
2376
084b049b
JD
23772009-11-25 Jan Djärv <jan.h.d@swipnet.se>
2378
a1fadc6f
JD
2379 * term.c (delete_tty): Remove check for last terminal (bug#4970).
2380
5ce6e4f4 2381 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
2382 defaults (bug #5025).
2383
28259cac
SM
23842009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
2385
2386 * insdel.c (adjust_markers_for_delete): Move it in the
2387 right direction! (bug#4803)
2388
e8e14166
YM
23892009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2390
2391 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
2392
2393 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
2394
86677b58
GM
23952009-11-24 Glenn Morris <rgm@gnu.org>
2396
2397 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
2398
581e51e8
JD
23992009-11-23 Jan Djärv <jan.h.d@swipnet.se>
2400
cfc86c7a
JD
2401 * Makefile.in: Must create deps for ecrt0.o in its rule.
2402
581e51e8
JD
2403 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
2404 because that is what Gtk+ font dialog understands.
2405
2406 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
2407 of Fcopy_sequence.
2408 (font_open_by_name): Put name given into QCname for font-object returned.
2409
2410 * frame.c (x_set_font): Save original font name as frame parameter
2411 font-parameter.
2412
2413 * xsettings.c (set_default_xft_settings): New function.
2414 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
2415 is found.
2416
8b264ecb
AS
24172009-11-22 Andreas Schwab <schwab@linux-m68k.org>
2418
2419 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
2420 searching backwards through multibyte buffer.
2421
872870b2
JD
24222009-11-21 Jan Djärv <jan.h.d@swipnet.se>
2423
2424 * xterm.c: #include xgselect.h.
2425 (x_initialize): Call xgselect_initialize.
2426
2427 * xsettings.c (something_changedCB): C++ comments => C comments.
2428 (init_gconf): Do not deal with any GLib file descriptors, xg_select
2429 does that now.
2430
2431 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
2432 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
2433 (scroll_bar_button_cb): Remove.
5ce6e4f4 2434 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
2435 event.
2436 (xg_create_scroll_bar): Don't bind button-press-event and
2437 button-release-event.
2438
2439 * process.c: Include xgselect.h if defined (USE_GTK) ||
2440 defined (HAVE_GCONF).
2441 (wait_reading_process_output): Call xg_select for the same condition.
2442
2443 * xgselect.c (xg_select): New function to better integrate with
2444 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
2445
2446 * xgselect.h: New file, declare xg_select, xgselect_initialize.
2447
2448 * Makefile.in (XOBJ): Add xgselect.o.
2449
62a6e103
AS
24502009-11-21 Andreas Schwab <schwab@linux-m68k.org>
2451
0b5397c2
SM
2452 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
2453 Remove ignored second argument. All callers changed.
62a6e103
AS
2454 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
2455 (RE_STRING_CHAR_AND_LENGTH): Likewise.
2456 * xdisp.c (string_char_and_length): Likewise.
2457
b0ca0f33
DN
24582009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
2459
2460 * xterm.c (x_new_font):
2461 * print.c (print_object):
2462 * cmds.c (Fself_insert_command): Move declarations before statements.
2463
dd5a6279
CY
24642009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
2465
2466 * s/cygwin.h: Remove unneeded linker flags.
2467
4a8e097d
JD
24682009-11-20 Jan Djärv <jan.h.d@swipnet.se>
2469
0d1d0d26
JD
2470 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
2471
2472 * xsettings.h: Declare xsettings_get_system_font.
2473
2474 * xsettings.c (xsettings_get_system_font): New function.
2475 (init_gconf): No use initiating gconf unless we have Xft also.
2476 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
2477 HAVE_GCONF.
2478
4a8e097d
JD
2479 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
2480 add a blank entry so it doesn't collapse into nothing.
2481
8ab1650e
SM
24822009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
2483
2484 * lread.c (Funintern): Comment out last change.
2485
82c602f0
RS
24862009-11-19 Richard Stallman <rms@gnu.org>
2487
2488 * lread.c (Funintern): Error if symbol is t or nil.
2489
87e32266
SM
24902009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
2491
2492 * insdel.c (make_gap_larger): Don't make as many assumptions about the
2493 representation of Lisp integers.
2494 Reported by MJ Chan <mjchan.inbox@gmail.com>.
2495
1b9ac145
AS
24962009-11-17 Andreas Schwab <schwab@linux-m68k.org>
2497
2498 * lisp.h: Remove declaration of Ffont_get_system_font.
2499 * xfns.c: Move include of "xsettings.h".
2500 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
2501
dfb3c4c6
JD
25022009-11-17 Jan Djärv <jan.h.d@swipnet.se>
2503
87e32266
SM
2504 * xsettings.c (something_changedCB, Ffont_get_system_font):
2505 Check use_system_font.
dfb3c4c6
JD
2506 (syms_of_xsettings): DEFVAR font-use-system-font.
2507
9370c1d8
AS
25082009-11-17 Andreas Schwab <schwab@linux-m68k.org>
2509
25fe851a
AS
2510 * xfns.c (x_default_font_parameter): Remove dead assignment.
2511
9370c1d8
AS
2512 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
2513
637fa988
JD
25142009-11-17 Jan Djärv <jan.h.d@swipnet.se>
2515
87e32266 2516 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 2517 not have FC_LCD_*. #define them if not there.
a6eb20d8 2518
87e32266 2519 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 2520
637fa988
JD
2521 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
2522
2523 * xterm.c (handle_one_xevent): Call xft_settings_event for
2524 ClientMessage, PropertyNotify and DestroyNotify.
2525 (x_term_init): If we have XFT, get DPI from Xft.dpi.
2526 Call xsettings_initialize.
2527
2528 * xftfont.c (xftfont_fix_match): New function.
2529 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
2530 Call xftfont_fix_match after XftFontMatch.
2531
2532 * xfont.c (xfont_driver): Initialize all members.
2533
87e32266
SM
2534 * xfns.c (x_default_font_parameter):
2535 Try font from Ffont_get_system_font.
637fa988
JD
2536 Do not get font from x_default_parameter if we got one from
2537 Ffont_get_system_font.
87e32266 2538 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
2539
2540 * w32font.c (w32font_driver): Initialize all members.
2541
2542 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
2543
2544 * lisp.h: Declare syms_of_xsettings.
2545
87e32266
SM
2546 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
2547 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
2548
2549 * ftfont.c (ftfont_filter_properties): New function.
2550
2551 * frame.c (x_set_font): Remove unused variable lval.
2552
87e32266 2553 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
2554
2555 * font.c (font_put_extra): Don't return if val is nil, it means
2556 boolean option is off.
2557 (font_parse_fcname): Collect all extra properties in extra_props
2558 and call filter_properties for all drivers with extra_props and
2559 font as parameter.
87e32266
SM
2560 (font_open_entity): Do not use cache, it does not pick up new
2561 fontconfig settings like hinting.
637fa988
JD
2562 (font_load_for_lface): If spec had a name in it, store it in entity.
2563
2564 * emacs.c (main): Call syms_of_xsettings
2565
2566 * config.in: HAVE_GCONF is new.
2567
2568 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
2569 xsettings.o is new.
2570
5a942932
KH
25712009-11-17 Kenichi Handa <handa@m17n.org>
2572
2573 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
2574 back to the default font in case that no suitable font is found.
2575
b7c7a4d1
SM
25762009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
2577
2578 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
2579 Suggested by Chad Brown <yandros@mit.edu>.
2580 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
2581
072f1e39
JD
25822009-11-16 Jan Djärv <jan.h.d@swipnet.se>
2583
2584 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
2585
5d1e70a2
AS
25862009-11-14 Andreas Schwab <schwab@linux-m68k.org>
2587
87e32266 2588 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 2589
a53cfbe5
JD
25902009-11-14 Jan Djärv <jan.h.d@swipnet.se>
2591
473a99b7
JD
2592 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
2593 has a parent.
2594
a53cfbe5 2595 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 2596 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
2597
2598 * config.in: Generated (AUTO_DEPEND).
2599
f04bb9b2
MA
26002009-11-13 Michael Albinus <michael.albinus@gmx.de>
2601
b7c7a4d1 2602 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
2603 Vdbus_registered_functions_table, because it contains also
2604 properties. Fix docstring.
b7c7a4d1 2605 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 2606
8f11f7ec
SM
26072009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
2608
2609 * alloc.c (mark_object): Don't reprocess marked strings.
2610 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
2611 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
2612
8a605fe8
KH
26132009-11-13 Kenichi Handa <handa@m17n.org>
2614
8f11f7ec 2615 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
2616 semantics of Vword_combining_categories.
2617 (Vword_combining_categories): Describe the slight change of the
2618 semantics.
2619
241c4680
EZ
26202009-11-13 Eli Zaretskii <eliz@gnu.org>
2621
2622 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
2623
2624 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
2625
5d58e44c
SM
26262009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
2627
2628 * xdisp.c (syms_of_xdisp): Fix typo in last change.
2629
5e13f9d3
JB
26302009-11-12 Juanma Barranquero <lekktu@gmail.com>
2631
2632 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
2633
cf54c754
DR
26342009-11-11 David Reitter <david.reitter@gmail.com>
2635
2636 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
2637 variables to fix 2009-11-09 change.
2638
a4ada374
DN
26392009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
2640
91433552
DN
2641 * process.c (ifflag_def): Make flag_sym constant.
2642 (Fnetwork_interface_info): Use a constant pointer.
2643 (ifflag_table):
2644 * xfns.c (cursor_bits):
2645 * xdisp.c (power_letter):
2646 * termcap.c (speeds, esctab):
2647 * sysdep.c (baud_convert):
2648 * keyboard.c (lispy_accent_codes, modifier_names):
2649 * image.c (xbm_format, xpm_format, pbm_format, png_format)
2650 (jpeg_format, tiff_format, gif_format, svg_format)
2651 (interlace_start, interlace_increment, gs_format):
2652 * gtkutil.c (separator_names):
2653 * fringe.c (swap_nibble):
2654 * fns.c (base64_value_to_char, base64_char_to_value):
2655 * fileio.c (make_temp_name_tbl):
2656 * coding.c (suffixes): Make constant.
2657
f4265f6c
DN
2658 * frame.c (make_initial_frame):
2659 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
2660 build_string.
2661 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
2662
04420943
DN
2663 * s/freebsd.h:
2664 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
2665
0a5d24ae
DN
2666 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
2667 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
2668
a4ada374
DN
2669 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
2670 * xterm.c (syms_of_xterm):
2671 * xfaces.c (syms_of_xfaces):
2672 * xdisp.c (syms_of_xdisp):
2673 * lread.c (syms_of_lread):
2674 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
2675 build_string.
91433552 2676
a4ada374
DN
2677 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
2678
af98fc7f
SM
26792009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
2680
8ab1650e 2681 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 2682
e90292a9
JD
26832009-11-10 Jan Djärv <jan.h.d@swipnet.se>
2684
2685 * keyboard.h: Declare timer_check.
2686
2687 * keyboard.c (timer_check_2): New function that does what the old
2688 timer_check did.
2689 (timer_check): Call timer_check_2 until -1 or a non-zero time is
2690 returned, i.e. don't return -1 with timers pending.
2691
2692 * process.c: Remove extern declaration of timer_check.
2693
2694 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
2695 even if timer_check returned -1.
2696
af98fc7f
SM
2697 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
2698 xg_dialog_data.
e90292a9
JD
2699 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
2700 the event loop.
2701 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
2702 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
2703 Destroy the dialog after xg_dialog_run.
2704
045b83c0
SM
27052009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
2706
2707 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
2708
1fb99a3a
JD
27092009-11-10 Jan Djärv <jan.h.d@swipnet.se>
2710
2711 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
2712
04e452cb
JB
27132009-11-09 Juanma Barranquero <lekktu@gmail.com>
2714
2715 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
2716
ef7417fd
SM
27172009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
2718
2719 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
2720 w32menu.c, and nsmenu.m.
2721 Simplify the obsolete case where position is nil.
2722 (cleanup_popup_menu): New function, moved from nsmenu.m.
2723 (struct skp): Remove slot `notreal'.
2724 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
2725 adjust callers.
2726 (single_menu_item): Adjust call to parse_menu_item.
2727 (syms_of_menu): Defsubr x-popup-menu.
2728 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
2729 (keymap_panes): Don't export any more.
2730 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
2731 (xmenu_show): Declare.
2732 * keyboard.c (parse_menu_item): Remove arg `notreal'.
2733 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
2734 * keyboard.h (parse_menu_item): Update declaration.
2735 * xmenu.c (Fx_popup_menu): Remove.
2736 (syms_of_xmenu): Don't defsubr x-popup-menu.
2737 * w32menu.c (Fx_popup_menu): Remove.
2738 (syms_of_w32menu): Don't defsubr x-popup-menu.
2739 * nsmenu.m (cleanup_popup_menu): Remove.
2740 (ns_menu_show): Rename from ns_popup_menu and remove all the code
2741 moved to menu.c's Fx_popup_menu.
2742 (Fx_popup_menu): Remove.
2743 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
2744 menu_items (it's done in menu.c already).
2745
424d6179
SM
27462009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
2747
2748 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
2749 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
2750
c0df13a6 27512009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
2752
2753 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 2754 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
2755 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
2756 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
2757
2de9f71c
SM
27582009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
2759
2760 Let integers use up 2 tags to give them one extra bit and thus double
2761 their range.
2762 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
2763 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
2764 New macros.
2765 (enum Lisp_Type): Use them. Give explicit values.
2766 (Lisp_Type_Limit): Remove.
2767 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
2768 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
2769 Pay attention to USE_2_TAGS_FOR_INTS.
2770 (INTEGERP): Use LISP_INT_TAG_P.
2771 * fns.c (internal_equal): Simplify the default case.
2772 (sxhash): Use case_Lisp_Int.
2773 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
2774 any more.
2775 (Ftype_of): Use case_Lisp_Int.
2776 (store_symval_forwarding): Take into account the fact that Ints can
2777 now have more than one tag.
2778 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
2779 buffer_slot_type_mismatch):
2780 * xfaces.c (face_attr_equal_p):
2781 * print.c (print_object):
2782 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
2783 Use case_Lisp_Int.
2784
323637a2
EZ
27852009-11-06 Eli Zaretskii <eliz@gnu.org>
2786
7ac65b38
EZ
2787 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
2788
323637a2
EZ
2789 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
2790 warning.
2791
e511451f
JD
27922009-11-06 Jan Djärv <jan.h.d@swipnet.se>
2793
2794 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
2795
2796 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
2797
2798 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
2799 ButtonPressRelease and MotionNotify (bug#4870).
2800
5e2327cf
DN
28012009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
2802
5adc433e
DN
2803 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
2804
d67b4f80
DN
2805 * xterm.c (syms_of_xterm):
2806 * xselect.c (syms_of_xselect):
2807 * xmenu.c (syms_of_xmenu):
2808 * xfns.c (syms_of_xfns):
2809 * xfaces.c (syms_of_xfaces):
2810 * xdisp.c (syms_of_xdisp):
2811 * window.c (syms_of_window):
2812 * w32fns.c (syms_of_w32fns):
2813 * undo.c (syms_of_undo):
2814 * textprop.c (syms_of_textprop):
2815 * terminal.c (syms_of_terminal):
2816 * syntax.c (syms_of_syntax):
2817 * sound.c (syms_of_sound):
2818 * search.c (syms_of_search):
2819 * print.c (syms_of_print):
2820 * minibuf.c (syms_of_minibuf):
2821 * macros.c (syms_of_macros):
2822 * keymap.c (syms_of_keymap, initial_define_key)
2823 (initial_define_lispy_key):
2824 * keyboard.c (syms_of_keyboard):
2825 * insdel.c (syms_of_insdel):
2826 * image.c (syms_of_image):
2827 * fringe.c (syms_of_fringe):
2828 * frame.c (syms_of_frame):
2829 * fontset.c (syms_of_fontset):
2830 * fns.c (syms_of_fns):
2831 * fns.c (syms_of_fns):
2832 * fileio.c (syms_of_fileio):
2833 * fileio.c (syms_of_fileio):
2834 * eval.c (syms_of_eval):
2835 * doc.c (syms_of_doc):
2836 * dispnew.c (syms_of_display):
2837 * dired.c (syms_of_dired):
2838 * dbusbind.c (syms_of_dbusbind):
2839 * data.c (syms_of_data):
2840 * composite.c (syms_of_composite):
2841 * coding.c (syms_of_coding):
2842 * cmds.c (syms_of_cmds):
2843 * charset.c (define_charset_internal, syms_of_character):
2844 * ccl.c (syms_of_ccl):
2845 * category.c (syms_of_category, init_category_once):
2846 * casetab.c (syms_of_casetab):
2847 * casefiddle.c (syms_of_casefiddle):
2848 * callint.c (syms_of_callint):
2849 * bytecode.c (syms_of_bytecode):
2850 * buffer.c (keys_of_buffer, syms_of_buffer):
2851 * alloc.c (syms_of_alloc):
2852 * process.c (syms_of_process, init_process):
2853 * lread.c (syms_of_lread, init_obarray):
2854 * font.c (build_style_table):
2855 * emacs.c (syms_of_emacs, main): Replace calls to intern with
2856 intern_c_string, calls to make_pure_string with
2857 make_pure_c_string. Use pure_cons instead of Fcons.
2858
5e2327cf
DN
2859 * process.c (socket_options): Make it const.
2860 (set_socket_option, init_process): Use a const pointer.
2861
2862 * lread.c (intern_c_string): New function.
2863 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
2864 (defvar_int): Uset it. Make the name const char*.
2865
2866 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
2867 (defvar_int): Update prototypes.
2868 (DEFUN, EXFUN): Support for prototypes is now required.
2869 (intern_c_string): New prototype.
2870 (struct Lisp_Subr): Make symbol_name constant.
2871
2872 * font.c (struct table_entry): Remove unused member. Make NAMES
2873 constant.
2874 (weight_table, slant_table, width_table): Make constant.
2875
2876 * emacs.c (struct standard_args): Make name and longname constant.
2877
2878 * character.h (DEFSYM): Use intern_c_string.
2879
a56eaaef
DN
28802009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
2881
2882 * alloc.c (make_pure_c_string): New function.
2883
2884 * eval.c (Fautoload): Purecopy all arguments.
2885
f6a07420
KH
28862009-11-05 Kenichi Handa <handa@m17n.org>
2887
2888 * fileio.c (Finsert_file_contents): Be sure set coding-system of
2889 the buffer in case of replace.
2890
5d28d4b1
DN
28912009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
2892
2893 * puresize.h (BASE_PURESIZE): Increase to 1620000.
2894
b349d111
SM
28952009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
2896
d528b1ce
SM
2897 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
2898 when applicable (bug#4851).
2899
b349d111
SM
2900 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
2901 (P_): Support for prototypes is now required.
2902
c38eb027
CY
29032009-10-31 Chong Yidong <cyd@stupidchicken.com>
2904
2905 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
2906 (Bug#4827).
2907
0405f8d9
EZ
29082009-10-30 Eli Zaretskii <eliz@gnu.org>
2909
d528b1ce 2910 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 2911
ca0a881a
DN
29122009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
2913
2914 * puresize.h (BASE_PURESIZE): Increase to 1470000.
2915
d528b1ce
SM
2916 * lread.c (Fload): Purecopy the file name when building
2917 Vpreloaded_file_list.
ca0a881a 2918
47e0e0e4
JR
29192009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
2920
2921 * w32fns.c (syms_of_w32fns): Change default value of
2922 w32-scroll-lock-modifier to nil. (Bug#2827)
2923
057bce6f
JB
29242009-10-26 Juanma Barranquero <lekktu@gmail.com>
2925
782a943e 2926 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 2927
242bc74c
AS
29282009-10-26 Andreas Schwab <schwab@redhat.com>
2929
2930 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
2931
522d013a
JB
29322009-10-26 Juanma Barranquero <lekktu@gmail.com>
2933
2934 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
2935 For delta < 0, skip check that only makes sense when the mini-window
2936 is going to be enlarged. (Bug#4534)
2937
18060980
CY
29382009-10-25 Chong Yidong <cyd@stupidchicken.com>
2939
2940 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
2941 string in menu maps (Bug#4471).
2942
fec8f0fe
CY
29432009-10-24 Chong Yidong <cyd@stupidchicken.com>
2944
2945 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
2946 FRAME_NS_VIEW on terminal frames (Bug#4765).
2947
10d66ec0
AS
29482009-10-24 Andreas Schwab <schwab@linux-m68k.org>
2949
1cae01f7
AS
2950 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
2951 DBUS_TYPE_UINTnn separately to get proper sign extension.
2952
58a12889
AS
2953 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
2954 can properly handle unsigned types.
d528b1ce 2955 (make_uid, make_gid): Remove.
58a12889 2956
987c9327
AS
2957 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
2958 types again.
2959
522d013a 2960 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
2961 (system_process_attributes): Likewise.
2962
905a9ed3
DN
29632009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
2964
2965 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
2966
2967 * eval.c (Fautoload): Purecopy the filename. Simplify.
2968
2969 * category.c (Fdefine_category): Purecopy docstring.
2970
a599b3e8
AS
29712009-10-23 Andreas Schwab <schwab@linux-m68k.org>
2972
7b792fc9
AS
2973 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
2974
a599b3e8
AS
2975 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
2976
b35ac83e
CY
29772009-10-23 Chong Yidong <cyd@stupidchicken.com>
2978
2979 * window.c (Fwindow_edges, Fwindow_pixel_edges)
2980 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
2981 (Bug#4775).
2982
e8903e00
SM
29832009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
2984
2985 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
2986 (init_fileio_once):
2987 * lisp.h (init_fileio_once): Remove.
2988 * emacs.c (main): Don't call init_fileio_once.
2989
8f43cbf3
DN
29902009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
2991
2992 * puresize.h (BASE_PURESIZE): Increase to 1430000.
2993
26898943
AS
29942009-10-21 Andreas Schwab <schwab@linux-m68k.org>
2995
2996 * doprnt.c (doprnt): Fix overflow check.
2997
5c646d5a
JD
29982009-10-21 Jan Djärv <jan.h.d@swipnet.se>
2999
3132a7ea
JD
3000 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
3001
5c646d5a
JD
3002 * xterm.h (x_wait_for_event): Declare it.
3003
3004 * xterm.c (pending_event_wait): New variable.
3005 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
3006 see pending_event_wait.eventtype.
3007 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
3008 (x_new_font): Call change_frame_size with new rows/columns before we
3009 try to resize the frame.
5c646d5a 3010 (x_wait_for_event): New function.
d528b1ce
SM
3011 (x_set_window_size_1): Don't change gravity unless change_gravity
3012 is set.
5c646d5a
JD
3013 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
3014 don't change frame size, instead wait for the ConfigureNotify.
3015 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
3016 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
3017 (x_initialize): Initialize pending_event_wait.
3018
3019 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
3020 size.
3021
3022 * widget.c (EmacsFrameSetValues): Add comment.
3023 (EmacsFrameSetCharSize): Just call x_set_window_size.
3024
3025 * gtkutil.c (xg_frame_set_char_size): Flush events and call
3026 x_wait_for_event.
d528b1ce 3027 (flush_and_sync): Remove again.
5c646d5a
JD
3028 (xg_get_font_name): Suggest monospace if no previous font is known.
3029
e9c1637d
SM
30302009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
3031
3032 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 3033 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 3034
5a72cccb
YM
30352009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3036
3037 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
3038 processing pending events when event is filtered for input method.
ab04798f 3039 (Bug#3681)
5a72cccb 3040
2629aa37
JB
30412009-10-20 Juanma Barranquero <lekktu@gmail.com>
3042
3043 * fns.c: Add #endif accidentally removed in previous change.
3044
c3417a74
DN
30452009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
3046
3047 * fns.c: Remove code for unsupported system: MAC_OS.
3048 * image.c: Likewise. Include setjmp.h.
3049
9685cef2
JD
30502009-10-19 Jan Djärv <jan.h.d@swipnet.se>
3051
3052 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
3053 pixel -1 (bug #4742).
3054
d7306fe6
DN
30552009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
3056
019d2c4c
DN
3057 * process.c (create_pty): Remove conditionals for no longer
3058 supported systems: UNIPLUS and RTU.
3059
ee6bacd4
DN
3060 * xterm.c:
3061 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
3062
d7306fe6
DN
3063 * alloc.c: Do not define struct catchtag.
3064 * eval.c: Move struct catchtag definition ...
3065 * lisp.h: ... here.
3066
3067 * image.c: Move png.h #include earlier to avoid warnings.
3068
3069 * xterm.c:
3070 * xsmfns.c:
3071 * xselect.c:
3072 * xrdb.c:
3073 * xmenu.c:
3074 * xftfont.c:
3075 * xfont.c:
3076 * xfns.c:
3077 * xfaces.c:
3078 * xdisp.c:
3079 * window.c:
3080 * widget.c:
3081 * w32xfns.c:
3082 * w32uniscribe.c:
3083 * w32term.c:
3084 * w32select.c:
3085 * w32reg.c:
3086 * w32proc.c:
3087 * w32menu.c:
3088 * w32inevt.c:
3089 * w32heap.c:
3090 * w32font.c:
3091 * w32fns.c:
3092 * w32console.c:
3093 * w32.c:
3094 * w16select.c:
3095 * vm-limit.c:
3096 * unexsol.c:
3097 * unexec.c:
3098 * unexcw.c:
3099 * unexaix.c:
3100 * undo.c:
3101 * tparam.c:
3102 * textprop.c:
3103 * terminfo.c:
3104 * terminal.c:
3105 * termcap.c:
3106 * term.c:
3107 * syntax.c:
3108 * sound.c:
3109 * sheap.c:
3110 * search.c:
3111 * scroll.c:
3112 * region-cache.c:
3113 * regex.c:
3114 * ralloc.c:
3115 * process.c:
3116 * print.c:
b024548b
DN
3117 * nsterm.m:
3118 * nsselect.m:
3119 * nsmenu.m:
3120 * nsimage.m:
3121 * nsfont.m:
3122 * nsfns.m:
d7306fe6
DN
3123 * msdos.c:
3124 * minibuf.c:
3125 * menu.c:
3126 * marker.c:
3127 * macros.c:
3128 * keymap.c:
3129 * keyboard.c:
3130 * intervals.c:
3131 * insdel.c:
3132 * indent.c:
3133 * gtkutil.c:
3134 * ftxfont.c:
3135 * ftfont.c:
3136 * fringe.c:
3137 * frame.c:
3138 * fontset.c:
3139 * font.c:
3140 * fns.c:
3141 * floatfns.c:
3142 * filelock.c:
3143 * fileio.c:
3144 * emacs.c:
3145 * editfns.c:
3146 * dosfns.c:
3147 * doprnt.c:
3148 * doc.c:
3149 * dispnew.c:
3150 * dired.c:
3151 * dbusbind.c:
3152 * data.c:
3153 * composite.c:
3154 * coding.c:
3155 * cmds.c:
3156 * cm.c:
3157 * chartab.c:
3158 * charset.c:
3159 * character.c:
3160 * ccl.c:
3161 * category.c:
3162 * casetab.c:
3163 * casefiddle.c:
3164 * callproc.c:
3165 * callint.c:
3166 * bytecode.c:
3167 * buffer.c:
3168 * atimer.c: Include setjmp.h. (Bug#4643)
3169
fd5f21e6
SM
31702009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
3171
4c0354d7
SM
3172 Remove leftover table unibyte_to_multibyte_table.
3173 * character.c (unibyte_to_multibyte_table): Remove.
3174 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
3175 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
3176 * character.h (UNIBYTE_TO_CHAR): New macro.
3177 (MAKE_CHAR_MULTIBYTE): Use it.
3178 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
3179 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
3180 (message_dolog, set_message_1):
3181 * search.c (Freplace_match):
3182 * editfns.c (Fcompare_buffer_substrings):
3183 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
3184 (concat):
3185 * insdel.c (copy_text, count_size_as_multibyte):
3186 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
3187 * term.c (produce_glyphs):
3188 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
3189 * regex.c (RE_CHAR_TO_MULTIBYTE):
3190 * cmds.c (internal_self_insert):
3191 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
3192
fd5f21e6
SM
3193 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
3194
4418646e
DN
31952009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
3196
3197 * puresize.h (BASE_PURESIZE): Increase to 1310000.
3198
35f5c1d2
JB
31992009-10-16 Juanma Barranquero <lekktu@gmail.com>
3200
3201 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
3202
a0cd8f6b
AR
32032009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
3204
3205 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
3206 still needed under Tiger.
3207
3208 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
3209
3210 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
3211 __Apple__.
3212
3213 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
3214
01a8d3fa
KH
32152009-10-15 Kenichi Handa <handa@m17n.org>
3216
3217 * print.c (print_object): Escape a symbol like "2E10" too.
3218
bf6c75c9 32192009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
3220
3221 Cleanups and changes for 64-bit compile under Snow Leopard.
3222 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
3223
3224 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
3225
c5959062 3226 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
3227 (ns_findfonts, nsfont_list_family): Use long format in printf, and
3228 cast argument.
3229 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 3230 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
3231
3232 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
3233
3234 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
3235 where appropriate.
3236
3237 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
3238 where appropriate.
6e4780c5
JB
3239 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
3240 Use stringWithUTF8String.
bf6c75c9
AR
3241 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
3242
6e4780c5
JB
3243 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
3244 Add formal protocol mention to inheritance.
bf6c75c9
AR
3245 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
3246
6e4780c5
JB
3247 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
3248 Fix printf format.
bf6c75c9
AR
3249 (ns_query_color): Use CGFloat where appropriate.
3250 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 3251 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
3252 argument.
3253
3d87f118
AR
3254 * config.in (NS_HAVE_NSINTEGER): Drop.
3255
a95c8102
AR
3256 * dbusbind.c (dbus-method-return-internal)
3257 (dbus-method-error-internal): Use long format in printf, and cast
3258 argument.
3259
3260 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
3261 in printf, and cast argument.
3262
6873acca 3263 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
3264 cast argument.
3265
9ec6f100
GM
32662009-10-11 Glenn Morris <rgm@gnu.org>
3267
3268 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
3269
5be883cd
JD
32702009-10-08 Jan Djärv <jan.h.d@swipnet.se>
3271
3272 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
3273 menu bar with a small width so it doesn't enlarge the frame.
3274
d7a39b51
JB
32752009-10-08 Juanma Barranquero <lekktu@gmail.com>
3276
3277 * fontset.c (Fset_fontset_font): Fix typos in error messages.
3278
0c2b6f8e
GM
32792009-10-06 Glenn Morris <rgm@gnu.org>
3280
3281 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
3282 SOME_MACHINE_LISP (this enters indirectly via DOC).
3283
e02131a2
EZ
32842009-10-05 Eli Zaretskii <eliz@gnu.org>
3285
3286 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
3287
b4744254
EZ
32882009-10-04 Eli Zaretskii <eliz@gnu.org>
3289
3290 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
3291 Doc fix.
3292
dbf64827
JB
32932009-10-03 Martin Rudalics <rudalics@gmx.at>
3294
3295 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
3296
e9a0aef8
MA
32972009-10-02 Michael Albinus <michael.albinus@gmx.de>
3298
d528b1ce 3299 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
3300 used anymore outside fileio.c.
3301
3302 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
3303
64eb2b56
JB
33042009-10-01 Juanma Barranquero <lekktu@gmail.com>
3305
3306 * lisp.h (Qdelete_directory_internal):
3307 Declare, instead of Qdelete_directory.
3308
3309 * w32fns.c (Fsystem_move_file_to_trash): Use it.
3310
9d28c33e
SM
33112009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
3312
3313 * eval.c (Fcalled_interactively_p): Add `kind' argument.
3314
9d8f3bd9
MA
33152009-10-01 Michael Albinus <michael.albinus@gmx.de>
3316
9d28c33e 3317 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
3318 Fdelete_directory. It is not a command anymore. It has no file
3319 name handler.
3320
9694740b
SM
33212009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
3322
3323 * xdisp.c (get_next_display_element): Use an enum in last change.
3324
748e162f
KH
33252009-09-28 Kenichi Handa <handa@m17n.org>
3326
9694740b 3327 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
3328 unibyte_display_via_language_environment in handling
3329 Vnobreak_char_display.
3330
17efd58d
AR
33312009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
3332
3333 * nsterm.h (ns_app_name): New extern variable.
3334
3335 * nsterm.m (ns_app_name): New variable.
3336 (ns_term_init): Set and use it.
3337 (ns_term_shutdown): Use it.
3338
3339 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
3340 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
3341
3342 * nsfns.m (ns_set_name_iconic, ns_set_name)
3343 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
3344 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
3345
9694740b
SM
3346 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
3347 Remove double-casting in client_data comparison.
31c2d412 3348
3208cb35
YM
33492009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3350
3351 * keyboard.c (make_lispy_event): Remember last wheel direction.
3352 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
3353
b7d552d6
GM
33542009-09-26 Glenn Morris <rgm@gnu.org>
3355
3356 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
3357 internal.elc. Add term/pc-win.elc.
3358 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
3359 term/x-win.elc.
3360 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
3361 term/w32-win.elc.
3362 (NS_SUPPORT): New.
3363 (lisp): Add NS_SUPPORT.
3364 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
3365
4ff670a8
DR
33662009-09-25 David Reitter <david.reitter@gmail.com>
3367
3368 * nsmenu.m (EmacsMenu-clear): Recognize application menu
3369 on Mac OS X 10.6+ (bug#4513).
3370
feabfb6c
JB
33712009-09-24 Juanma Barranquero <lekktu@gmail.com>
3372
3373 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
3374 some parts of Emacs code (like font selection) don't grok them.
3375 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 3376
de59072a
AS
33772009-09-24 Andreas Schwab <schwab@redhat.com>
3378
3379 * coding.c (decode_coding_iso_2022): Fix operator precedence.
3380
a489517b
JB
33812009-09-24 Juanma Barranquero <lekktu@gmail.com>
3382
3383 * dired.c (Fdirectory_files): Fix typo in docstring.
3384
0592970c
AR
33852009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
3386
3387 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
3388 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
3389 (EmacsScroller-setPosition:portion:whole:): Remove -display call
3390 under GNUstep.
3391 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
3392
3393 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
3394 glyph advancement.
3395
48e8a88b
AR
33962009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
3397
3398 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 3399 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
3400
3401 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
3402 deleted (bug #4492).
3403
e14f0a78
AR
3404 * nsfont.m (Vns_reg_to_script): New lisp variable.
3405 (syms_of_nsfont): Declare it.
3406 (ns_registry_to_script): New function.
3407 (ns_get_req_script): Call it.
3408 (ns_findfonts): Don't give up on non-unicode registry.
3409
3410 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
3411
5b650faa
SM
34122009-09-20 Tom Tromey <tromey@redhat.com>
3413
3414 * eval.c (find_handler_clause): Make stack-trace-on-error work in
3415 batch mode (bug#4228).
3416
a489517b 34172009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
3418
3419 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 3420 carefully. (Bug #4339)
0bae4e09 3421
fcfe06f3
CY
34222009-09-18 Chong Yidong <cyd@stupidchicken.com>
3423
d798ba87 3424 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 3425
31642728
AR
34262009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
3427
3428 * emacs.c (inhibit_x_resources): Update doc string for NS.
3429 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 3430 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
3431
3432 * nsterm.h (ns_no_defaults): Remove.
3433
3434 * nsterm.m (ns_no_defaults): Remove.
3435 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
3436 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
3437 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
3438 don't update the NSWindow itself.
3439 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 3440 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
3441
3442 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
3443 ns_use_qd_smoothing.
3444
3445 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
3446 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 3447 (x-close-connection): Drop PSFlush() under OS X.
a489517b 3448 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 3449
8686ac71
JB
34502009-09-17 Juanma Barranquero <lekktu@gmail.com>
3451
3452 * emacs.c (inhibit_x_resources): New variable.
3453 (main) [HAVE_NS]: Don't process --quick command line option.
3454 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
3455
3456 * lisp.h (inhibit_x_resources): Declare it extern.
3457
3458 * w32reg.c (x_get_string_resource):
3459 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
3460
e227ba05
EZ
34612009-09-17 Eli Zaretskii <eliz@gnu.org>
3462
362654a6
JB
3463 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
3464 Add lisp/term/internal.elc.
e227ba05 3465
742d40e8
SM
34662009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
3467
3468 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
3469 (bug#4461).
3470
005bd5a2
DN
34712009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
3472
3473 * puresize.h (BASE_PURESIZE): Increase to 1290000.
3474
3475 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
3476 (OBJECTS_MACHINE): Remove, unused.
3477
f9af9719
SM
34782009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
3479
3480 * frame.c (x_get_resource_string): Remove unused.
3481
0307c7d2
JD
34822009-09-15 Jan Djärv <jan.h.d@swipnet.se>
3483
3484 * xterm.c (x_new_font): Call change_frame_size before calling
3485 x_set_window_size, in case frame size won't change.
3486
3487 * frame.c (x_set_font): Remove dead code.
3488
428b13d6
SM
34892009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
3490
3491 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
3492
5766c380
SM
34932009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
3494
3495 * lread.c (Fload): Don't output a message after loading an obsolete
3496 package any more (done in Lisp now).
3497
2fd0161b
CY
34982009-09-12 Chong Yidong <cyd@stupidchicken.com>
3499
3500 * fns.c (syms_of_fns): Doc fix (Bug#4227).
3501
bc5e75b6
SM
35022009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
3503
3504 * keymap.c (Fwhere_is_internal): Use nconc2.
3505
c31c985e
AM
35062009-09-11 Alan Mackenzie <acm@muc.de>
3507
3508 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
3509 batch mode.
3510
78012bd2
AS
35112009-09-11 Andreas Schwab <schwab@linux-m68k.org>
3512
3513 * xdisp.c (display_mode_element): Detect cycles.
3514
9d889332
SM
35152009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
3516
3517 * keymap.c (where_is_internal): Don't erroneously return nil right after
3518 filling the cache.
3519 (where_is_internal_1): Fix up typo.
3520
7ab5d780
GM
35212009-09-11 Glenn Morris <rgm@gnu.org>
3522
3523 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
3524 share a common doc-string.
3525
5238a749
SM
35262009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
3527
66d77eda
SM
3528 * keymap.c (get_keymap): Return the actual keymap symbol rather than
3529 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
3530
5238a749
SM
3531 * keymap.c (QCadvertised_binding): New constant.
3532 (syms_of_keymap): Initialize it.
3533 (Fwhere_is_internal): Try and use bindings from :advertised-binding
3534 if applicable.
3535
19f48442
SM
35362009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
3537
50d4ba39
SM
3538 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
3539 (parse_menu_item): Streamline since bindings are recomputed all the
3540 time anyway. Don't bother checking Vdefine_key_rebound_commands any
3541 more and don't support lmenu's menu-alias any more either.
3542
a88a5372
SM
3543 * keymap.c (where_is_internal_data): Make noindirect a boolean.
3544 (where_is_internal): Strip it down to only traverse the keymaps.
3545 Move the cache handling from Fwhere_is_internal to here.
3546 (Fwhere_is_internal): Move the handling of remapping and the choice of
3547 the best binding from where_is_internal to here.
3548 Unify the cached/noncached paths, so remapping is also handled
3549 correctly when the cache is used, and so the cache can be used to
3550 speed up remap-handling when applicable.
3551 Give preference to non-remapped bindings.
3552 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
3553 non-remapped bindings.
3554 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
3555 command remapping.
3556
19f48442
SM
3557 * xdisp.c (display_mode_element): Move list length limit from 50 to
3558 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
3559
599498c3 35602009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
3561
3562 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
3563
f9b7b5ac
SM
35642009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
3565
a53af587
JB
3566 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
3567 (Bug#4334)
3568
f9b7b5ac
SM
3569 * keymap.c (where_is_internal): Filter out shadowed remappings.
3570 Assume that where_is_internal returns unshadowed bindings to simplify
3571 the code and get rid of the gotos. Use ASIZE.
3572
04f4b72d
JD
35732009-09-04 Jan Djärv <jan.h.d@swipnet.se>
3574
4da146f2
JD
3575 * xterm.c (x_focus_changed): If we get a focusout and pointer
3576 is invisible, make it visible.
3577
04f4b72d
JD
3578 * xterm.h: Remove condition for declaration of
3579 x_*_window_to_frame.
3580
7cef7ce3
SM
35812009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
3582
3583 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
3584 initial terminal as well.
3585
a54fa5b7
JD
35862009-09-02 Jan Djärv <jan.h.d@swipnet.se>
3587
3588 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 3589 x_menubar_window_to_frame.
a54fa5b7 3590
50426a04 3591 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
3592 (XTmouse_position): Do not return valid positions
3593 for clicks in the menubar and the toolbar for Gtk+.
3594
3595 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
3596 if the widget for the event has the same top level as a frame,
3597 return the frame.
3598 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
3599 internal windows, bug #4122.
3600 (x_non_menubar_window_to_frame): Remove.
3601
5a021dd0
GM
36022009-09-02 Glenn Morris <rgm@gnu.org>
3603
3604 * buffer.c (default-major-mode): Move most of the doc from here...
3605 (major-mode): ... to here.
3606
548fe2f3
NR
36072009-08-30 Nick Roberts <nickrob@snap.net.nz>
3608
3609 * process.c (wait_reading_process_output): Keep the descriptor
3610 when pty is used by a non-child process, e.g., in I/O buffer of
3611 GDB this allows inferior to be restarted.
3612
e0840eef
EZ
36132009-08-29 Eli Zaretskii <eliz@gnu.org>
3614
3615 * xdisp.c (redisplay_internal): Remove redundant test and collapse
3616 both branches into one.
3617
82e98df4
SM
36182009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
3619
3620 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
3621 (main): Use enable-multibyte-characters rather than
3622 default-enable-multibyte-characters. Output a warning message when
3623 running a unibyte session.
3624
890617cb
YM
36252009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3626
3627 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
3628 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
3629 (copy_data_segment): Also copy __program_vars section.
3630 (copy_dyld_info) [LC_DYLD_INFO]: New function.
3631 (dump_it) [LC_DYLD_INFO]: Use it.
3632
3633 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
3634
e7adeadc
EZ
36352009-08-28 Eli Zaretskii <eliz@gnu.org>
3636
3637 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
3638 $(SRC)/buildobj.h.
3639 (buildobj.h): Renamed from $(SRC)/buildobj.h.
3640 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
3641 $(SRC)/buildobj.h.
3642 (clean): Add buildobj.h.
3643
3ed8bbdc
TZ
36442009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
3645
3646 * print.c (print_object): Set escapeflag to 1 when printing
3647 hashtable keys and values.
3648
155a6764
SM
36492009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
3650
3651 * lread.c (read_integer): Use doubles (and potentially return a float
3652 number) as we do in string-to-number.
3653 (read1): Use strtol to read integers, signal errors on strtol's
3654 overflow and use floats if strtol's output is too large for
3655 Elisp integers.
3656
877610de
EZ
36572009-08-27 Eli Zaretskii <eliz@gnu.org>
3658
3659 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
3660 (make-buildobj-SH): Fix last change.
3661 (SRC): Move to before where it's first used.
3662
ef73e7be
KH
36632009-08-27 Kenichi Handa <handa@m17n.org>
3664
550c8289
KH
3665 * process.c (send_process): Use encode_coding_object instead of
3666 encode_coding_string to perform eol-conversion even if the string
3667 is unibyte.
3668
60afa08d
KH
3669 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
3670 character.
3671
ef73e7be 3672 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 3673 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 3674
7b3a82d7
DN
36752009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
3676
5654bf63
DN
3677 * callproc.c (Fcall_process): Remove always true #if.
3678
7b3a82d7
DN
3679 * lisp.h: Replace #if 0 code for checking with text pointing to
3680 the --enable-checking configure flag.
3681
3682 * emacs.c (main): Mention the --enable-profiling configure flag
3683 instead of using CFLAGS.
3684
878bde49
KR
36852009-08-26 Ken Raeburn <raeburn@raeburn.org>
3686
3687 * Makefile.in (buildobj.h): New target.
3688 (doc.o): Depend on it.
3689 (temacs${EXEEXT}): Don't generate buildobj.lst.
3690 (mostlyclean): Delete buildobj.h, not buildobj.lst.
3691 * makefile.w32-in ($(SRC)/buildobj.h): New target.
3692 ($(BLD)/doc.$(O)): Depend on it.
3693 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
3694 provided by Eli Zaretskii.)
3695 ($(TEMACS)): Don't generate buildobj.lst.
3696 * doc.c: Include buildobj.h.
3697 (buildobj): New static variable.
3698 (Fsnarf_documentation): Use it, instead of opening and reading
3699 buildobj.lst.
3700
1574224c
MA
37012009-08-25 Michael Albinus <michael.albinus@gmx.de>
3702
3703 * dbusbind.c (Fdbus_call_method)
3704 (Fdbus_call_method_asynchronously): Use English numeric format for
3705 timeout values in doc string.
3706
d9da2f45
KH
37072009-08-25 Kenichi Handa <handa@m17n.org>
3708
ef73e7be
KH
3709 * alloc.c (mark_char_table): New function.
3710 (mark_object): Use mark_char_table for a char-table.
3711
d9da2f45
KH
3712 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
3713 (CHAR_TABLE_REF): Use it.
3714
c8edcc01
KR
37152009-08-23 Ken Raeburn <raeburn@raeburn.org>
3716
3717 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
3718 before invoking the newly build emacs to check for load-path
3719 shadowing.
3720
7763401b
GM
37212009-08-22 Glenn Morris <rgm@gnu.org>
3722
3723 * Makefile.in (bootstrap_exe): New variable.
3724 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
3725 Use ${bootstrap_exe}.
3726
729eadda
EZ
37272009-08-22 Eli Zaretskii <eliz@gnu.org>
3728
3729 * coding.h (encode_coding_string): Don't encode unibyte strings.
3730 (Bug#4047)
3731
eb4c6ace
MA
37322009-08-22 Michael Albinus <michael.albinus@gmx.de>
3733
3734 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
3735
3736 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
3737 intended as hotfix only.
3738 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
3739
36e34d1b
AR
37402009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3741
3742 * nsterm.m (ns_get_color): Update documentation properly for last
3743 change, and clean up loose ends in the code left by it. Fix
3744 longstanding bug with 16-bit hex parsing, and add support for
3745 yet another X11 format (rgb:r/g/b) for compatibility.
3746 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
3747 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
3748
f983eb8a
SM
37492009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
3750
3751 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
3752
3f56d3c6
MA
37532009-08-20 Michael Albinus <michael.albinus@gmx.de>
3754
3755 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
3756 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
3757 (xd_initialize, xd_pending_messages): Check, whether
3758 $DBUS_SESSION_BUS_ADDRESS is set.
3759
fb641d68
YM
37602009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3761
3762 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
3763
3764 * nsterm.m (ns_get_color): Remove incompatible color formats again.
3765
cf59a374
GM
37662009-08-20 Glenn Morris <rgm@gnu.org>
3767
3768 * emacs.c (system-type): Doc fix.
3769
1373f3be
SM
37702009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
3771
3772 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
3773 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
3774
058ed861
MA
37752009-08-18 Michael Albinus <michael.albinus@gmx.de>
3776
1373f3be
SM
3777 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
3778 New functions.
058ed861
MA
3779 (xd_initialize): Revert change from 2009-08-16.
3780
563a866e 37812009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
3782
3783 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 3784 font-group vector, return nil.
5fc05db0 3785
e42bdf01
CY
37862009-08-17 Chong Yidong <cyd@stupidchicken.com>
3787
3788 * process.c (status_notify): Don't perform redisplay.
3789 (Fdelete_process, list_processes_1, process_send_signal):
3790 Expliticly perform redisplay.
3791 (wait_reading_process_output): Always check process status, but
3792 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
3793
4230ab74
KR
37942009-08-17 Ken Raeburn <raeburn@raeburn.org>
3795
1373f3be 3796 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
3797 (XFLOAT_INIT): New macro for storing a float value.
3798 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
3799 * fns.c (sxhash): Copy out the value of a float in order to
3800 examine its bytes.
3801 * dbusbind.c (xd_append_arg): Likewise.
3802
4230ab74
KR
3803 * emacs.c (main): Don't call syms_of_data twice.
3804
a0645cdd
MA
38052009-08-16 Michael Albinus <michael.albinus@gmx.de>
3806
3807 * dbusbind.c (xd_initialize): Add connection file descriptor to
3808 input_wait_mask, in order to let select() detect, whether a new
3809 message has been arrived.
ca4f31ea 3810 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 3811
485db0ba
MA
38122009-08-15 Michael Albinus <michael.albinus@gmx.de>
3813
1373f3be
SM
3814 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
3815 New functions.
485db0ba
MA
3816
3817 * lisp.h (xd_pending_messages): Declare.
3818
3819 * keyboard.c (readable_events): Call xd_pending_messages.
3820
b5b98ff4
CY
38212009-08-15 Chong Yidong <cyd@stupidchicken.com>
3822
1373f3be 3823 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 3824
f8354c6e
CY
3825 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
3826
b5b98ff4
CY
3827 * buffer.c (set_buffer_internal_1)
3828 (swap_out_buffer_local_variables): Check for unbound local
3829 variables (Bug#4138).
3830
8b9fc636
EZ
38312009-08-14 Eli Zaretskii <eliz@gnu.org>
3832
3833 * process.c (create_pty): Fix last change.
3834
ce959360
CY
38352009-08-13 Chong Yidong <cyd@stupidchicken.com>
3836
3837 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
3838 (xbm_load_image): Caller changed.
64b807c9 3839 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 3840
c7baf7e9
NR
38412009-08-13 Nick Roberts <nickrob@snap.net.nz>
3842
3843 * process.c (create_pty): New function.
3844 (Fstart_process): Use it to allow Emacs to just associate a pty
3845 with the buffer. See associated change in gdb-mi.el.
3846 (list_processes_1): Deal with no program name.
3847 (start_process_unwind): Use pid == -2 to mean no process.
3848
1ac9108a
SM
38492009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
3850
3851 * cmds.c (nonundocount): New global variable.
3852 (keys_of_cmds): Initialize it.
3853 (Fself_insert_command): Use it to combine upto 20 sequential chars
3854 into a single undo entry, just like the Qself_insert_command code in
3855 keyboard.c does.
3856 Call frame_make_pointer_invisible, also like the Qself_insert_command
3857 code in keyboard.c does.
3858 * keyboard.c (command_loop_1): Use the new global nonundocount rather
3859 than its own local replacement for it.
3860
e267324c
KR
38612009-08-10 Ken Raeburn <raeburn@raeburn.org>
3862
1ac9108a 3863 * fns.c (concat): Don't re-set string length to its current value.
77437343 3864
1ac9108a
SM
3865 * coding.h (decode_coding_string, encode_coding_string):
3866 Use SBYTES macro.
f0bed503 3867
1ac9108a 3868 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
3869 (doprnt): Merge with doprnt1, discarding lispstrings code.
3870 * lisp.h (doprnt_lisp): Don't declare.
3871
416e006d
JL
38722009-08-07 Juri Linkov <juri@jurta.org>
3873
3874 * puresize.h (BASE_PURESIZE): Increase to 1270000.
3875
6f7d5780
DN
38762009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
3877
3878 * print.c (syms_of_print): Undo previous change.
3879
f19a0f5b
TZ
38802009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
3881
3882 * lread.c (read1, syms_of_lread): Read hashtables back from the
3883 readable format.
3884
3885 * print.c (print_preprocess, print_object): Print hashtables fully
3886 and readably.
3887 (syms_of_print): Provide 'hashtable-print-readable.
3888
b9173dc2
AR
38892009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
3890
3891 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
3892 no family set.
3893 (nsfont_open): Handle case when entity has no family.
3894
1586503c
AR
38952009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
3896
3897 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
3898 element, not a list, for match case.
3899
087048cd
KH
39002009-07-28 Kenichi Handa <handa@m17n.org>
3901
3902 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
3903 rigidly.
3904
3905 * xfont.c (xfont_list_pattern): Don't ignore the return value of
3906 font_parse_xlfd. Check font properties more rigidly.
3907
780c2506
DN
39082009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
3909
31fd7c5c
JB
3910 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
3911 bsd-common.h.
780c2506 3912
a8c0cc18
KH
39132009-07-27 Kenichi Handa <handa@m17n.org>
3914
3915 * xfaces.c (face_with_height): Call font_clear_prop.
3916
4fbe2306
CY
39172009-07-26 Chong Yidong <cyd@stupidchicken.com>
3918
111d9af3
CY
3919 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
3920
3921 * xterm.c (x_term_init): Use Qx.
3922
4fbe2306
CY
3923 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
3924
1ac9108a 3925 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
3926 (ns_get_color): Revert 2009-07-16 change.
3927
beb0b7f9
EZ
39282009-07-25 Eli Zaretskii <eliz@gnu.org>
3929
3930 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 3931 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 3932
2baf5e76
KR
39332009-07-25 Ken Raeburn <raeburn@raeburn.org>
3934
1ac9108a
SM
3935 * coding.h (decode_coding_string, encode_coding_string):
3936 Use SCHARS macro.
8890e5f5 3937
2baf5e76 3938 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 3939 (load_depth): Delete.
2baf5e76
KR
3940 (Qload_in_progress): New variable.
3941 (load_unwind): Don't reference load_depth or load_in_progress.
3942 (Fload): Likewise; specbind Qload_in_progress instead.
3943 (init_lread): Don't initialize load_depth.
3944 (syms_of_lread): Initialize and protect Qload_in_progress.
3945
1395c6f5
AR
39462009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
3947
3948 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
3949
4e2f36cf
AR
39502009-07-23 Yavor Doganov <yavor@gnu.org>
3951
3952 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
3953
5dd9a6f7
AR
39542009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
3955
3956 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
3957 Bugs 3792, 3720, 2402.
3958 (ns_lookup_indexed_color): Check for bad index.
3959 (ns_index_color): Init unused slot to 0.
3960 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
3961 Bug 3714, possibly 3082.
5dd9a6f7 3962
c902b920
JR
39632009-07-22 Jason Rumney <jasonr@gnu.org>
3964
1ac9108a
SM
3965 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
3966 Position IME window at cursor (Bug#2570).
c902b920
JR
3967 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
3968 (globals_of_w32fns): Dynamically load functions required above.
3969
3970 * w32term.c (w32_draw_window_cursor): Send message to reposition
3971 any IME window.
3972
090101cf
CY
39732009-07-21 Chong Yidong <cyd@stupidchicken.com>
3974
3975 * fileio.c: Revert 2009-07-16 changes.
3976 (Vauto_save_include_big_deletions): New variable.
3977 (Fdo_auto_save): Disable auto-save only if
3978 auto-save-include-big-deletions is nil.
3979
e6583e3d
CY
39802009-07-21 Chong Yidong <cyd@stupidchicken.com>
3981
3982 * xdisp.c (move_it_to): For continued lines ending in a tab, take
3983 the overflowed pixels into account (Bug#3879).
3984
ece435a5
KR
39852009-07-21 Ken Raeburn <raeburn@raeburn.org>
3986
3987 * lread.c (load_depth): New variable.
3988 (Fload, load_unwind, init_lread): Set it to the load recursion
3989 depth; set load_in_progress as a simple boolean based on the
3990 current load_depth. (Bug#3892)
3991
40b2d973
AR
39922009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
3993
3994 * nsfont.m (ns_has_attribute): Remove.
3995 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
3996
10be7e0d
JL
39972009-07-18 Juri Linkov <juri@jurta.org>
3998
3999 * process.c (Fset_process_query_on_exit_flag): Mention killing
4000 a buffer in docstring.
4001
fa055055
KH
40022009-07-17 Kenichi Handa <handa@m17n.org>
4003
4004 * casetab.c (shuffle): Fix the logic of setting up the cycle.
4005
042f7b69
YM
40062009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4007
4008 * nsfns.m (Fns_set_alpha): Remove function.
4009 (syms_of_nsfns): Don't defsubr it.
4010
4011 * nsterm.m (ns_get_color): Remove incompatible color formats.
4012 (ns_color_to_lisp): Generate #rrggbb color format string.
4013
4be941e3
RS
40142009-07-16 Richard Stallman <rms@gnu.org>
4015
4016 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
4017 (Fset_buffer_auto_saved): Handle save_length = -2.
4018
4e6b227d
CY
40192009-07-16 Chong Yidong <cyd@stupidchicken.com>
4020
4021 * xterm.c (Qx_gtk_map_stock): New var.
4022
4023 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
4024 of calling intern each time.
4025
a1856973
YM
40262009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4027
4028 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
4029 does tiling.
4030
4031 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
4032
497e54d8
KH
40332009-07-14 Kenichi Handa <handa@m17n.org>
4034
72d36834
KH
4035 * font.c (font_vconcat_entity_vectors): New function.
4036 (struct font_sort_data): New member font_driver_preference.
4037 (font_compare): Check font_driver_preference.
4038 (font_sort_entities): The format of the first argument changed.
4039 (font_delete_unmatched): Likewise.
4040 (font_list_entities): The return type changed.
4041 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
4042 (font_find_for_lface): Adjuste for the above changes.
4043 Don't suppress the checking of C even if the repertory supports it.
4044 (Flist_fonts): Adjust for the above changes.
72d36834 4045
1ac9108a
SM
4046 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
4047 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
4048 Reject a font who has adstyle property that is different from a
4049 langname derived from registry property.
1ac9108a 4050 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 4051
b6046155
EZ
40522009-07-13 Eli Zaretskii <eliz@gnu.org>
4053
4054 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
4055 local copy of dirfilename.
4056
fb6b6049
KH
40572009-07-13 Kenichi Handa <handa@m17n.org>
4058
e2402a5e
KH
4059 * chartab.c (sub_char_table_ref_and_range): Fix the range check
4060 against max_char.
4061
fb6b6049
KH
4062 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
4063 calling XSYMBOL (sym).
4064
65156807
EZ
40652009-07-11 Eli Zaretskii <eliz@gnu.org>
4066
1ac9108a
SM
4067 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
4068 New function.
4069 (directory_files_internal) [WINDOWSNT]:
4070 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
4071 the filesystem of the directory is fast or slow.
4072
4073 * w32.c (logon_network_drive): Don't assume PATH is an absolute
4074 file name.
4075 (is_slow_fs): New function.
4076 (stat): Use it to determine whether to issue more system calls to
4077 get accurate file attributes, when w32-get-true-file-attributes is
4078 `local'.
4079
e0ab5fcf
JD
40802009-07-10 Jan Djärv <jan.h.d@swipnet.se>
4081
4082 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 4083 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
4084 parameter font-parameter as default to the font dialog.
4085
784ceded
KH
40862009-07-10 Kenichi Handa <handa@m17n.org>
4087
4088 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
4089
fb8edc0b
EZ
40902009-07-09 Eli Zaretskii <eliz@gnu.org>
4091
1ac9108a 4092 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 4093
fb8edc0b
EZ
4094 * w32.c (stat): Treat UNC file names as residing on remote
4095 drives. (Bug#3542)
4096
635c75b1
KH
40972009-07-09 Kenichi Handa <handa@m17n.org>
4098
4099 * fontset.c (fontset_find_font): Fix previous change.
4100
c1d5ce94
MA
41012009-07-08 Michael Albinus <michael.albinus@gmx.de>
4102
4103 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
4104 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
4105 error flag.
4106
edb61b39
KH
41072009-07-08 Kenichi Handa <handa@m17n.org>
4108
374bf7e4
KH
4109 * fontset.c (fontset_find_font): Fix the logic of handling
4110 charset_matched.
4111 (font_for_char): Delete unused var.
4112 (generate_ascii_font_name): Delete it.
4113
edb61b39
KH
4114 * coding.h (JIS_TO_SJIS2): Fix the code range check.
4115
4116 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
4117 (encode_coding_sjis): Fix the code range check.
4118
0f3f018c
CY
41192009-07-07 Chong Yidong <cyd@stupidchicken.com>
4120
4121 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
4122 (Fexpand_file_name): Copy string data properly (Bug#3772).
4123
fcaf6f3a
JD
41242009-07-07 Jan Djärv <jan.h.d@swipnet.se>
4125
4126 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
4127 first MapNotify.
4128
6809ca75
KH
41292009-07-07 Kenichi Handa <handa@m17n.org>
4130
4131 * character.h (unibyte_has_multibyte_table): Delete extern.
4132 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
4133
4134 * charset.c (Fset_charset_priority): Update charset_unibyte.
4135 (syms_of_charset): Initialize charset_unibyte.
4136
4137 * character.c (unibyte_has_multibyte_table): Delete it.
4138 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
4139 charset_unibyte.
4140 (multibyte_char_to_unibyte_safe): Likewise.
4141 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
4142
1ac9108a 4143 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
4144 (x_produce_glyphs): Likewise.
4145
4146 * .gdbinit (xcharset): Fix the treating $arg0.
4147
ad9e2d54
EZ
41482009-07-04 Eli Zaretskii <eliz@gnu.org>
4149
4150 Emulation of `getloadavg' on MS-Windows.
50426a04 4151 * w32.c: Include float.h.
ad9e2d54
EZ
4152 (g_b_init_get_native_system_info, g_b_init_get_system_times)
4153 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
4154 (get_native_system_info, get_system_times): New functions.
4155 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
4156 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
4157 (globals_of_w32): Initialize g_b_init_get_native_system_info,
4158 g_b_init_get_system_times, and num_of_processors.
4159
0a3472c7
JR
41602009-07-03 Jason Rumney <jasonr@gnu.org>
4161
4162 * w32term.c (w32_initialize): Use standard types.
4163
80904120
EZ
41642009-07-03 Eli Zaretskii <eliz@gnu.org>
4165
4166 * dired.c (Ffile_attributes): Decode user and group names by the
4167 locale's encoding. (Bug#3443)
4168
6978862d
DN
41692009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
4170
f8d23104
DN
4171 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
4172 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
4173
4174 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
4175
4176 * term.c (init_tty): Remove spurious #ifdef.
4177
6978862d
DN
4178 * m/mips.h: Mention this file is also used for netbsd.
4179 * m/pmax.h: Remove file.
4180
e044e4fc
JD
41812009-07-03 Jan Djärv <jan.h.d@swipnet.se>
4182
4183 * xterm.h (struct x_display_info): Add invisible_cursor.
4184 (struct x_output): Add current_cursor.
4185
4186 * xterm.c (XTtoggle_invisible_pointer): New function.
4187 (x_define_frame_cursor): Don't define cursor if invisible or the
4188 same as before. Set current_cursor.
4189 (x_create_terminal): Set toggle_invisible_pointer_hook.
4190
4191 * xfns.c (make_invisible_cursor): New function.
4192 (x_set_mouse_color): Call make_invisible_cursor.
4193 Set current_cursor.
4194 (x_window): Set current_cursor.
4195
4196 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
4197
4198 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
4199 inserting a character.
4200 (read_avail_input): Call frame_make_pointer_visible.
4201
4202 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
4203 (frame_make_pointer_invisible, frame_make_pointer_visible):
4204 New functions.
e044e4fc
JD
4205 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
4206
4207 * frame.h: Declare frame_make_pointer_invisible and
4208 frame_make_pointer_visible.
4209 (struct frame): Add pointer_invisible.
4210
574c8efa
JD
42112009-07-02 Jan Djärv <jan.h.d@swipnet.se>
4212
7b507248
JD
4213 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
4214 frame isn't visible.
4215 (xg_frame_resized): If width/height is -1, get size of window
4216 from X server.
4217
4218 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
4219 for MapNotify.
4220
835bdaa7 4221 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 4222 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 4223 (flush_and_sync): Reintroduce.
574c8efa 4224
3f1c6666 42252009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 4226
31fd7c5c 4227 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
4228
4229 * xterm.c (x_handle_net_wm_state): Also look for sticky.
4230 (x_term_init): Initialize Xatom_net_wm_state_sticky.
4231
4232 * frame.h: Declare Qsticky.
4233
cad9ef74
JD
4234 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
4235
4236 * nsfns.m (ns_frame_parm_handlers): Ditto.
4237
4238 * frame.c: Declare Qsticky.
4239 (frame_parms): Add sticky.
4240
4241 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
4242
4243 * xterm.h: Declare x_set_sticky.
4244
4245 * xterm.c (x_set_sticky): New function.
4246
69b16610
JD
4247 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
4248 (xg_tool_bar_menu_proxy): Attach enter/leave events to
4249 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
4250
4251 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
4252
4253 * frame.c: Qmaximized is new.
4254 (x_set_frame_parameters): Do not handle fullscreen specially.
4255 Only set width and height if explicitly set.
4256 (x_set_fullscreen): Handle Qmaximized.
4257 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
4258 (syms_of_frame): Initialize Qmaximized.
4259
1ac9108a
SM
4260 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
4261 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
4262
4263 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
4264 for Expose event. Add call to x_check_fullscreen for MapNotify event.
4265 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
4266 set gravity to NorthWestGravity when USE_GTK.
4267 (set_wm_state): New function.
31fd7c5c 4268 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
4269 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
4270 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 4271 or the case when no window manager is running. That means remove calls
3f1c6666
JD
4272 to x_real_positions and x_fullscreen_adjust.
4273
4274 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
4275 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
4276 flush_and_sync.
4277 (xg_height_changed): New function.
4278 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
4279 and gtk_window_set_policy. Set frame gravity after parsing the
4280 geometry string.
3f1c6666
JD
4281 (xg_update_frame_menubar, free_frame_menubar)
4282 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
4283 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
4284 Remove calls to xg_frame_set_char_size.
4285
fd503d99
KH
42862009-07-01 Kenichi Handa <handa@m17n.org>
4287
4288 * keyboard.c (decode_keyboard_code): New function.
4289 (tty_read_avail_input): Decode the input bytes if necessary.
4290
1ac9108a
SM
4291 * coding.c (setup_coding_system):
4292 Initialize coding->carryover_bytes to 0.
fd503d99
KH
4293 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
4294 use Qno_conversion.
4295
24ed93fb
YM
42962009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4297
4298 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
4299
99061dfc
CY
43002009-06-30 Chong Yidong <cyd@stupidchicken.com>
4301
1ac9108a 4302 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 4303
ff90fbde
JR
43042009-06-30 Jason Rumney <jasonr@gnu.org>
4305
4306 * w32term.c (w32_initialize): Use GetModuleHandle for library that
4307 is already loaded.
4308 Set user model ID if supported (bug#1849).
4309
5f445726
JM
43102009-06-29 Jim Meyering <meyering@redhat.com>
4311
4312 Remove useless if-before-xfree test.
4313 * nsfont.m (nsfont_close): Remove useless test.
4314 * term.c (delete_tty): Likewise.
4315 * w32.c (system_process_attributes): Likewise.
4316 * w32font.c (w32font_close): Likewise.
4317 * xfaces.c (x_free_gc): Likewise.
4318 * xselect.c (buffer): Likewise.
4319
b9607587
AS
43202009-06-28 Andreas Schwab <schwab@linux-m68k.org>
4321
4322 * process.c (send_process): Keep decoded string in a local
4323 variable and protect it from GC. (Bug#3521)
4324
89ba96f4
EZ
43252009-06-28 Eli Zaretskii <eliz@gnu.org>
4326
4327 * term.c (create_tty_output) [MSDOS]: #ifdef away.
4328 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
4329
098a1589
CY
43302009-06-28 Chong Yidong <cyd@stupidchicken.com>
4331
485422be
CY
4332 * xdisp.c (start_display, handle_face_prop)
4333 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
4334 (redisplay_window, try_window_id, produce_image_glyph):
4335 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 4336
098a1589
CY
4337 * xterm.c (x_update_window_begin, x_new_focus_frame)
4338 (x_scroll_bar_handle_click, handle_one_xevent)
4339 (handle_one_xevent, XTread_socket, x_focus_on_frame)
4340 (x_make_frame_visible, x_make_frame_invisible)
4341 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
4342 code chunks that are now obsolete.
4343
78c38319
MA
43442009-06-28 Michael Albinus <michael.albinus@gmx.de>
4345
4346 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
4347 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
4348 for hours, when optimzation is enabled.
4349 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
4350 (xd_read_message): Make them static.
4351
4189ed40
CY
43522009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
4353
4354 * term.c (turn_on_face): Allow simultaneously bold and dim
4355 terminal faces (Bug#3530).
4356
cd9b5e16
CY
43572009-06-27 Chong Yidong <cyd@stupidchicken.com>
4358
4e23bedb
CY
4359 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
4360
cd9b5e16
CY
4361 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
4362 truncation glyphs (Bug#3686).
4363
07cc3c35
GM
43642009-06-27 Glenn Morris <rgm@gnu.org>
4365
4366 * m/pmax.h: Restore file, with only netbsd portions.
4367
31fd7c5c 43682009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 4369
cd9b5e16 4370 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 4371
42d4a64f
KH
43722009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
4373
4374 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
4375 the arg FORCE_SYMBOL.
4376
930fe55b 43772009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
4378
4379 * fontset.c (fontset_find_font): When a usable rfont_def is found
4380 in a fallback font-group, make it the first element of the group.
4381
57ebc3fd
CY
43822009-06-24 Chong Yidong <cyd@stupidchicken.com>
4383
4384 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
4385
f084f942
KH
43862009-06-24 Kenichi Handa <handa@m17n.org>
4387
4388 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
4389 set for C.
4390 (fontset_font): Record the availability of a font for C both in
4391 the realized fontsets of the current one and the default one.
4392
2f686c87
DN
43932009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
4394
4395 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
4396 conditional, it is always defined on AIX.
4397
666e158e
MB
43982009-06-23 Miles Bader <miles@gnu.org>
4399
4400 * window.c (Vrecenter_redisplay): New variable.
4401 (syms_of_window): Initialize it.
4402 (Qtty): New extern declaration.
4403 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
4404
c6da7cd2
JM
44052009-06-23 Jim Meyering <meyering@redhat.com>
4406
1ac9108a
SM
4407 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
4408 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 4409 pointer dereferences are guaranteed to be valid.
c6da7cd2 4410
678dca3d
KH
44112009-06-23 Kenichi Handa <handa@m17n.org>
4412
74d75424
KH
4413 * emacs.c (main): Call init_font ().
4414
4415 * font.h (Vfont_log): Extern it.
4416 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
4417
4418 * font.c (font_sort_entities, font_list_entities)
4419 (font_matching_entity, font_open_entity)
4420 (font_close_object): Change font_add_log to FONT_ADD_LOG.
4421 (Vfont_log): Delete static.
4422 (font_log_env_checked): Delete this variable.
4423 (font_add_log): Don't check font_log_env_checked.
4424 (font_deferred_log): Check Vfont_log.
4425 (init_font): New function.
4426
678dca3d
KH
4427 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
4428
4429 * w32font.c: Change font_add_log to FONT_ADD_LOG.
4430
4431 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
4432
4433 * xfont.c: Change font_add_log to FONT_ADD_LOG.
4434
4435 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
4436 (face_for_char): Don't call font_deferred_log here.
4437 (font_for_char): Likewise.
4438
8a668709
CY
44392009-06-22 Chong Yidong <cyd@stupidchicken.com>
4440
9a01ee33
CY
4441 * w32term.c (x_draw_glyph_string): Use the glyph string's width
4442 rather than its background_width for drawing the overline and
4443 underline (Bug#489).
4444
4445 * xterm.c (x_draw_glyph_string): Use the glyph string's width
4446 rather than its background_width for drawing the overline and
4447 underline (Bug#489).
ec7c9926
CY
4448 (xg_default_icon_file): New variable.
4449 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
4450 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 4451
8a668709
CY
4452 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
4453 (load_overlay_strings): Remove externs.
4454 (fast_find_position): Function deleted.
4455 (mouse_face_from_buffer_pos): New function, based on
4456 fast_find_position. Correctly handle before-strings,
4457 display-strings, and after-strings (Bug#1220).
4458 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
4459
4d4c02d8
CY
44602009-06-21 Chong Yidong <cyd@stupidchicken.com>
4461
1ac9108a 4462 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
4463 (move_it_in_display_line_to, move_it_in_display_line_to)
4464 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
4465
70243478
CY
44662009-06-21 Chong Yidong <cyd@stupidchicken.com>
4467
4468 * Branch for 23.1.
4469
13087e59
JR
44702009-06-21 Jason Rumney <jasonr@gnu.org>
4471
4472 * w32term.c (keyboard_codepage): New static variable.
4473 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
4474 (w32_read_socket) [WM_CHAR]: Use it to decode character
4475 input (bug#3237).
4476 (w32_initialize): Initialize it.
4477 (codepage_for_locale): New function.
4478
4735b74e
KR
44792009-06-20 Ken Raeburn <raeburn@raeburn.org>
4480
4481 * process.c (status_message): Pass Faset index argument as a lisp
4482 object, so as to work with USE_LISP_UNION_TYPE.
4483
0e727afa
YM
44842009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4485
4486 * coding.c (Ffind_coding_systems_region_internal):
4487 Cache checked characters.
4488
cf299835
KH
44892009-06-18 Kenichi Handa <handa@m17n.org>
4490
1ac9108a 4491 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 4492
90f20d94
AS
44932009-06-18 Andreas Schwab <aschwab@redhat.com>
4494
4495 * xdisp.c (redisplay_internal): Check that the frame is still
4496 live after redisplay of its windows.
4497 (redisplay_windows): Check that the window is still live.
4498
7f1faf1c
KH
44992009-06-17 Andreas Schwab <schwab@linux-m68k.org>
4500
4501 * coding.c (detect_coding_utf_16): Fix previous change.
4502
cc13543e
KH
45032009-06-16 Kenichi Handa <handa@m17n.org>
4504
4505 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
4506 UTF-16 by checking the dispersion of Eth and Oth bytes.
4507
977b85f4
AS
45082009-06-15 Andreas Schwab <schwab@linux-m68k.org>
4509
4510 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
4511
66bd43d1
KH
45122009-06-15 Kenichi Handa <handa@m17n.org>
4513
4514 * process.c (status_message): Fix previous change. Be sure to
4515 decode a localized string.
4516
cb5ca9c5
YM
45172009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4518
4519 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
4520 add comment explaining why.
4521
ec7709ba 45222009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 4523
ec7709ba 4524 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 4525
4b7f335c
AR
45262009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
4527
4528 * nsfont.m (ns_attribute_value): Remove.
4529 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
4530 (ns_has_attribute): Shrink the normal range.
4531 (ns_findfonts): Don't worry about requested spec in determining
4532 need for synthItal.
e41820ee 4533 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 4534
73b26103
SZ
45352009-06-14 Seiji Zenitani <zenitani@mac.com>
4536
4537 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
4538
5753e4da
KH
45392009-06-11 Kenichi Handa <handa@m17n.org>
4540
4541 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
4542 overhang for the static composition case.
4543
3561b671
KH
45442009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4545
5753e4da
KH
4546 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
4547 overhang for the automatic composition case.
4548
3561b671
KH
4549 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
4550 composition case.
4551
852bbd41
CY
45522009-06-10 Chong Yidong <cyd@stupidchicken.com>
4553
4554 * xdisp.c (get_next_display_element): When handling wrap-prefix
4555 and line-prefix, treat \n as a control character (bug#3502).
4556
9903d1e6
KH
45572009-06-10 Kenichi Handa <handa@m17n.org>
4558
4559 * font.c (font_parse_family_registry): Fix for one-char foundry.
4560 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
4561
0bcbaaaa
CY
45622009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
4563
4564 * process.c (status_message): Fix handling of multibyte signal
4565 string (Bug#3499).
4566
40aa3f13
JM
45672009-06-09 Jim Meyering <meyering@redhat.com>
4568
1f80c7e2
CY
4569 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
4570 color name is missing.
40aa3f13 4571
72d51285
KH
45722009-06-09 Kenichi Handa <handa@m17n.org>
4573
4574 * charset.c (Fmap_charset_chars): In docstring, state clearly that
4575 FROM-CODE and TO-CODE are codepoints of CHARSET.
4576
c1d04d84
AR
45772009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
4578
4579 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
4580
45812009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
4582
4583 Changes to support :script/:lang/:otf in NS font driver.
4584 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
4585 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
4586 indicate not part of font driver interface, and change callers.
4587 (ns_get_family): Remove pointless null check.
4588 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
4589 ns_spec_to_descriptor, ns_descriptor_to_entity.
4590 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
4591 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
4592 (ns_spec_to_descriptor, ns_descriptor_to_entity)
4593 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
4594 (ns_get_req_script, ns_accumulate_script_ranges)
4595 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
4596 New functions.
4597 (nsfont_list, nsfont_match): Use ns_findfonts.
4598 (nsfont_open): Use font descriptor instead of traits.
4599 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
4600 (dump_glyphstring): Rename to ns_dump_glyphstring.
4601
c7eb9816
AR
4602 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
4603
c1d04d84
AR
4604 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
4605
4606 * fontset.c (fontset_from_font): Remove NS-specific code.
4607
ec7709ba 46082009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
4609
4610 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
4611 nonactive windows.
4612
31fd7c5c 46132009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 4614
1ac9108a 4615 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 4616
68852c13 46172009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
4618
4619 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
4620
6756cd1d
CY
46212009-06-07 Chong Yidong <cyd@stupidchicken.com>
4622
4623 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
4624 account for the overflowing of newlines into the last glyph on the
4625 display line (Bug#3482).
4626
28bf482a
DR
46272009-06-05 David Reitter <david.reitter@gmail.com>
4628
ec7709ba
JB
4629 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
4630 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
4631 Fns_selection_exists_p, Fns_selection_owner_p.
4632
fdb55376
JR
46332009-06-03 Jason Rumney <jasonr@gnu.org>
4634
4635 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
4636 available. (Bug#3379)
4637
05129fbe
KH
46382009-05-29 Kenichi Handa <handa@m17n.org>
4639
1ac9108a
SM
4640 * coding.c (get_translation_table):
4641 Check Venable_character_translation.
05129fbe 4642
ec7709ba 46432009-05-26 David Reitter <david.reitter@gmail.com>
15891144 4644
ec7709ba
JB
4645 * nsterm.m (ns_raise_frame): Only raise frame if visible.
4646 (x_make_frame_visible): Move frame to front rather than calling
15891144 4647 ns_raise_frame().
ec7709ba 4648 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 4649 isn't key window.
ec7709ba 4650 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
4651 drawRect may be called by NSView even if the frame is hidden.
4652
ec7709ba
JB
4653 * nsfns.m (Fx_create_frame): Follow other ports in
4654 determining visibility; default to t. Ensure async_visible is set.
15891144 4655
21f73755
EZ
46562009-05-23 Eli Zaretskii <eliz@gnu.org>
4657
4658 * dired.c (Ffile_attributes): Doc fix.
4659
34001e41
CY
46602009-05-22 Chong Yidong <cyd@stupidchicken.com>
4661
4662 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
4663
46306a17
SM
46642009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
4665
4666 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
4667 and xfont_scratch_props.
4668 (syms_of_xfont): Do it here instead.
4669 (xfont_find_ccl_program): Delete, unused.
4670 (xfont_open): Delete unused var `i'.
4671
ef6e0694
KH
46722009-05-21 Kenichi Handa <handa@m17n.org>
4673
4674 * fontset.c (Qlatin): Don't make it static.
4675
46306a17
SM
4676 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
4677 New functions.
ef6e0694
KH
4678 (xfont_scripts_cache, xfont_scratch_props): New variables.
4679 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
4680 (xfont_list_pattern): Argument changed. Callers changed.
4681 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
4682 (xfont_list): Don't reject a font spec with :script property.
4683 (xfont_has_char): Fix setting of encoding.
4684 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
4685 xfont_scratch_props.
4686
46872009-05-19 Kenichi Handa <handa@m17n.org>
4688
46306a17 4689 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
4690 Callers changed.
4691
46922009-05-18 Kenichi Handa <handa@m17n.org>
4693
4694 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
4695
ac71ced7
SM
46962009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
4697
4698 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
4699 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
4700
1c6d1051
YM
47012009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4702
4703 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
4704 (x_delete_terminal): Dissociate resource database from display and
4705 then call XrmDestroyDatabase before closing display.
4706
9b9b779c
AR
47072009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
4708
4709 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
4710 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
4711 whether selected frame is viable before raising it (based on patch
4712 by David Reitter), and improve commentary.
4713 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 4714
cccd42d5
KH
47152009-05-15 Kenichi Handa <handa@m17n.org>
4716
4717 * font.c (Ffont_spec): Check arguments.
4718
337fbd17
CY
47192009-05-14 Chong Yidong <cyd@stupidchicken.com>
4720
4721 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
4722 weight when testing attributes (Bug#3282).
4723
47a6002f
JD
47242009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4725
4726 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
4727 what we expect to get in the next ConfigureNotify event.
4728
9cb363db
YM
4729 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
4730 before Xft one (Bug#1696).
4731
b9126609
CY
47322009-05-07 David Reitter <david.reitter@gmail.com>
4733
4734 * nsfns.m (Fx_display_planes): Compute bitplanes using
4735 NSBitsPerPixelFromDepth (Bug#3207).
4736
27a69fd9
CY
47372009-05-10 Chong Yidong <cyd@stupidchicken.com>
4738
4739 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
4740
00f37552
TTN
47412009-05-10 Ulrich Mueller <ulm@gentoo.org>
4742
4743 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
4744
2d82a920
DR
47452009-05-07 David Reitter <david.reitter@gmail.com>
4746
ec7709ba
JB
4747 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
4748 Respect mouse face background.
2d82a920 4749
46b0d52d
DR
47502009-05-07 David Reitter <david.reitter@gmail.com>
4751
ec7709ba
JB
4752 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
4753 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
4754 in ns_update_begin and ns_update_end.
4755
ce1b23bb
SM
47562009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
4757
5996e1b7
SM
4758 * nsfns.m (ns_get_screen): Rewrite.
4759 Don't presume selected-frame is of type `ns'.
4760
ba98e3a0
SM
4761 * font.c (font_update_drivers): Sanity fallback to avoid disabling
4762 all drivers.
4763
ce1b23bb
SM
4764 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
4765
bcda200f
YM
47662009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4767
4768 * keyboard.h (add_user_signal): Fix typo in extern.
4769
4770 * lisp.h (add_user_signal): Remove extern.
4771
4772 * unexelf.c (unexec): Consider a section to precede the .bss section
4773 if its addresses overlap that of .bss.
4774 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
4775 instead of dumping process.
4776
864660a2
SM
47772009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
4778
4779 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
4780
50da4e56
SM
47812009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
4782
4783 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
4784
51520a1a
DN
47852009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
4786
4787 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
4788 any statements.
4789
409ea3a1
AS
47902009-05-02 Andreas Schwab <schwab@linux-m68k.org>
4791
59c4c60f
AS
4792 * process.c (read_process_output): Make sure the current buffer is
4793 always restored.
4794
409ea3a1
AS
4795 * coding.c (record_conversion_result): Don't modify
4796 Vlast_code_conversion_error for successful result.
4797 (alloc_destination): Don't clobber conversion result. (Bug#1650)
4798
56f00ed2
KH
47992009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
4800
4801 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 4802 (load_charset_map): Remove unnecessary code.
56f00ed2 4803
4491c9d2
DR
48042009-04-30 David Reitter <david.reitter@gmail.com>
4805
35f5b128 4806 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
4807 through f24.
4808
6970f632
CY
48092009-04-30 Chong Yidong <cyd@stupidchicken.com>
4810
4811 * xfaces.c (face_at_buffer_position): New arg base_face_id.
4812
4813 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
4814 face_at_buffer_position.
4815 (face_before_or_after_it_pos, get_next_display_element)
4816 (note_mouse_highlight): Update face_at_buffer_position call.
4817
4818 * term.c (term_mouse_highlight):
4819 * msdos.c (IT_note_mouse_highlight):
4820 * fontset.c (Finternal_char_font):
35f5b128 4821 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
4822
4823 * dispextern.h (face_at_buffer_position): Update prototype.
4824
0c616f63
KH
48252009-04-30 Kenichi Handa <handa@m17n.org>
4826
35f5b128 4827 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 4828
ad3aaf33
AS
48292009-04-29 Andreas Schwab <schwab@linux-m68k.org>
4830
4831 * callproc.c (Fcall_process): Fix GC protection. Make sure
4832 current buffer is always restored.
4833
c3c963a0
YM
48342009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4835
4836 * atimer.c (init_atimer): Also clear stopped_atimers.
4837
4838 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
4839
7e3386cb
YM
4840 * process.c (create_process): Clean up merger residues of
4841 2008-07-17 change.
4842
91f68422
CY
48432009-04-29 Ulrich Mueller <ulm@gentoo.org>
4844
4845 * lread.c (Vread_circle): New variable.
4846 (read1): Disable recursive read if Vread_circle is nil.
4847
24b34550
KH
48482009-04-29 Kenichi Handa <handa@m17n.org>
4849
4850 * fontset.h (set_default_ascii_font): Delete extern.
4851
4852 * fontset.c (set_default_ascii_font): Delete this unused function.
4853
4854 * frame.c (x_set_font): When ARG is a font-object, check if the
4855 font-object matches with the ASCII font-spec of the frame's
9c358bda 4856 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 4857
77bf07e1
AS
48582009-04-28 Andreas Schwab <schwab@linux-m68k.org>
4859
4860 * fns.c (Flocale_info): Protect vector from GC during decoding.
4861
4862 * process.c (Fstart_process): Protect argv strings from GC during
4863 encoding.
4864
2c55aacf
AS
48652009-04-27 Andreas Schwab <schwab@linux-m68k.org>
4866
4867 * sysdep.c: Include <ctype.h>.
4868
b892d3c9
DR
48692009-04-27 David Reitter <david.reitter@gmail.com>
4870
35f5b128 4871 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
4872 Remove commented-out code.
4873
9d0644c4
JB
48742009-04-26 Johan Bockgård <bojohan@gnu.org>
4875
4876 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
4877
b7053016
JR
48782009-04-25 Jason Rumney <jasonr@gnu.org>
4879
4880 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
4881
4e8231f3
YM
48822009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4883
4884 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
4885 Swap bytes in short integer if fringe bitmap width > 8.
4886
493dcf2c
KH
48872009-04-23 Kenichi Handa <handa@m17n.org>
4888
4889 * xfaces.c (Fx_list_fonts): If a font size is specified in
4890 PATTERN, set it in returned scalable fonts.
4891
401e9e57
CY
48922009-04-22 Chong Yidong <cyd@stupidchicken.com>
4893
708e05dc
CY
4894 * keyboard.c (Fset_input_meta_mode): Doc fix.
4895
4896 * dispnew.c (Fsend_string_to_terminal): Doc fix.
4897
1ac9108a 4898 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
4899
4900 * coding.c (Fterminal_coding_system): Doc fix.
4901
4902 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
4903 (Fx_display_pixel_height, Fx_display_planes)
4904 (Fx_display_color_cells, Fx_server_max_request_size)
4905 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
4906 (Fx_display_mm_height, Fx_display_mm_width)
4907 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
4908 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
4909 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
4910 (check_x_display_info): Handle terminal objects instead of
4911 terminal ids.
4912
401e9e57
CY
4913 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
4914 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
4915 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
4916 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 4917
df80c7f0
KH
49182009-04-21 Kenichi Handa <handa@m17n.org>
4919
5a8f12af 4920 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 4921 (font_score): Check AVGWIDTH too.
908567ef 4922
df80c7f0
KH
4923 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
4924 worst case.
1ac9108a
SM
4925 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
4926 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 4927
705af33f
JR
49282009-04-19 Jason Rumney <jasonr@gnu.org>
4929
4930 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 4931 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
4932
4933 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
4934 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
4935 get_phys_cursor_geometry.
4936
b71ac3dd 4937 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
4938 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
4939 using get_phys_cursor_geometry.
4940
4941 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
4942 correctly calculated.
4943
dc2933eb
JD
49442009-04-19 Jan Djärv <jan.h.d@swipnet.se>
4945
1ac9108a
SM
4946 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
4947 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
4948 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
4949 is deprecated.
4950
973e7849
AS
49512009-04-18 Andreas Schwab <schwab@linux-m68k.org>
4952
4953 * font.c (font_put_frame_data): Use xfree instead of free.
4954
314d66f4
JB
49552009-04-17 Juanma Barranquero <lekktu@gmail.com>
4956
4957 * w32font.c (Qja, Qko): Remove declarations.
4958 (syms_of_w32font): Don't DEFSYM them.
4959
cf702558
CY
49602009-04-17 Chong Yidong <cyd@stupidchicken.com>
4961
4962 * font.c (Qja, Qko): Move definitions here from ftfont.c.
4963
4964 * font.h (Qja, Qko): Extern them.
4965
4966 * ftfont.c (Qja, Qko): Remove declarations.
4967
4968 * xfont.c (Qja, Qko): Remove declarations.
4969
b50504f5
KH
49702009-04-17 Kenichi Handa <handa@m17n.org>
4971
bde25748
KH
4972 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
4973 string from a vector to handle Latin-1 characters correctly.
4974
b50504f5
KH
4975 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
4976 entity even if the cache hits.
4977
f4646fff
AS
49782009-04-16 Andreas Schwab <schwab@linux-m68k.org>
4979
4980 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 4981 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 4982
e7deaab0
AS
4983 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
4984 * lisp.h: Adjust prototypes.
4985
0a0e7d49
CY
49862009-04-16 Chong Yidong <cyd@stupidchicken.com>
4987
4988 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
4989 change (Bug#3003).
4990
3c908a57
KH
49912009-04-16 Kenichi Handa <handa@m17n.org>
4992
1ac9108a 4993 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
4994
4995 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
4996 adstyle.
4997
4998 * ftfont.c (Qja, Qko): Don't make them static.
4999 (enum ftfont_cache_for): New enum.
5000 (fc_charset_table): Undo the previous change.
5001 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
5002 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
5003 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
5004 non-scarable font, try to get AVERAGE_WIDTH.
5005 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
5006 Change ft_face_cache from a list of a hash-table. Don't check
5007 `ja' and `ko' adstyle here.
5008 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
5009 FTFONT_CACHE_FOR_CHARET.
5010 (ftfont_get_charset): Undo the previous change.
1ac9108a 5011 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
5012 (ftfont_close): Likewise.
5013 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
5014
5015 * font.c (font_sort_entites): Change the meaning of the arg
5016 BEST-ONLY. Don't optimize for VEC of lenght 1.
5017 (font_select_entity): Just return the value of font_sort_entites.
5018
5019 * xfaces.c (merge_face_vectors): Reflect font properties in
5020 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
5021 font_clear_prop if a face attribute doesn't change.
5022
3c908a57
KH
5023 * charset.h (charset_ksc5601): Extern it.
5024
5025 * charset.c (charset_ksc5601): New variable.
5026 (Fdefine_charset_internal): Set charset_ksc5601.
5027 (init_charset_once): Initialize charset_ksc5601 to -1.
5028
d65859c3
DN
50292009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
5030
5031 * fileio.c (history_delete_duplicates): Remove unused declaration.
5032
5033 * callint.c (history_delete_duplicates): New declaration.
5034 (Fcall_interactively): Remove command history duplicates when
5035 history_delete_duplicates is true.
5036
3ba010e5
EZ
50372009-04-14 Eli Zaretskii <eliz@gnu.org>
5038
5039 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
5040
06f19b91
KH
50412009-04-14 Kenichi Handa <handa@m17n.org>
5042
5043 * font.c (Ffont_info): Fix docstring. Fix the second element of
5044 the returned value (bug#2949).
5045
2cce8bfc
CY
50462009-04-14 Chong Yidong <cyd@stupidchicken.com>
5047
5048 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
5049
d156542d
KH
50502009-04-14 Kenichi Handa <handa@m17n.org>
5051
5052 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
5053 encoding charset is ascii_compatible.
5054
5055 * charset.c (Fdefine_charset_internal): Make charset
5056 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
5057 code_offset is 0, and covers all ASCII characters.
5058
86fa089e
SM
50592009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
5060
5061 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
5062 (ns_string_to_pasteboard_internal):
5063 * nsmenu.m (process_dialog):
5064 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
5065 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
5066 * lisp.h (Fx_load_color_file): Declare.
5067
a8a3728b
KH
50682009-04-13 Kenichi Handa <handa@m17n.org>
5069
1ac9108a 5070 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
5071 (font_select_entity): Suppress the code to optimize for the same
5072 kind of fonts.
5073 (font_load_for_lface): Get a font that supports at least ASCII
5074 characters.
5075
5076 * ftfont.c (Qja, Qko): New variables.
5077 (fc_charset_table): Delete uniquifier data for iso8859-1.
5078 (ftfont_get_latin1_charset): New function.
5079 (get_adstyle_property): New function.
5080 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
5081 bitmap fonts.
5082 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
5083 Delete iso-8859-1 range from the charset of fonts whose adstyle is
5084 `ko' or `ja'.
5085 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 5086 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
5087 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
5088 property.
5089 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
5090 (syms_of_ftfont): DEFSYM Qja and Qko.
5091
483670b5
KH
50922009-04-09 Kenichi Handa <handa@m17n.org>
5093
12b55765
KH
5094 * charset.c (map_charset_chars): For a charset of `superset'
5095 method, fix calculation of code range.
5096
483670b5
KH
5097 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
5098 from the list of extra properties.
5099 (font_clear_prop): Be sure to delete `:name' font property.
5100
57d3b93b
KH
51012009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5102
b4b2c2ca
YM
5103 * dispnew.c (redraw_overlapping_rows): Fix detection of
5104 overlapping for topmost and bottommost rows.
5105
1ac9108a 5106 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 5107
472c3609
JR
51082009-04-06 Jason Rumney <jasonr@gnu.org>
5109
5110 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
5111
ab193662
KH
51122009-04-06 Kenichi Handa <handa@m17n.org>
5113
5114 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
5115
5116 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
5117
0c26f026
KH
51182009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5119
5120 * ftfont.c (ftfont_open): Fix checking of the return value of
5121 FT_Load_Char. Fix setting font->underline_thickness.
5122
e173bbce
CY
51232009-04-04 Chong Yidong <cyd@stupidchicken.com>
5124
5125 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
5126 (Fterminal_parameters, Fterminal_parameter)
5127 (Fset_terminal_parameter): In doc string, refer to terminal
5128 objects rather than terminal ids.
5129
693a2698
EZ
51302009-04-04 Eli Zaretskii <eliz@gnu.org>
5131
5132 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
5133 ret_lim_data. (Bug#2867)
5134
d5221487
CY
51352009-04-03 Chong Yidong <cyd@stupidchicken.com>
5136
5137 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
5138 so they don't get wider than the window, matching 2006-01-23
5139 change to the partner function in xdisp.c (Bug#2800).
5140
223509a3
KH
51412009-04-03 Kenichi Handa <handa@m17n.org>
5142
5143 * print.c (print_object): Make each lowest sub_char_table start a
5144 new line (Bug#2866).
5145
74fcd0b1
KH
51462009-04-02 Kenichi Handa <handa@m17n.org>
5147
5148 * fontset.c (fontset_font): Record no-font when a fontset
5149 explicitly tells not to try another font-specs.
5150
c542407d
SM
51512009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
5152
5153 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
5154
e3869731
KH
51552009-03-30 Kenichi Handa <handa@m17n.org>
5156
d8d2f142
KH
5157 * fontset.c (fontset_from_font): Specify only registry in a
5158 font-spec for all characters supported by that registry.
5159
e3869731
KH
5160 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
5161 even if HAVE_M17N_FLT is not defined.
5162
5da5f805
CY
51632009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
5164
5165 * ftfont.c: Conditionalize prototyping and use of
5166 ftfont_variation_glyphs.
5167
ab226c50
SM
51682009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
5169
9628fed7
SM
5170 * frame.c (delete_frame): Work around compiler bug.
5171
5172 * editfns.c (general_insert_function): Adjust to insdel.c changes.
5173 * insdel.c (prepare_to_modify_buffer, signal_before_change):
5174 Some more EMACS_INT.
5175 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
5176
5177 * xdisp.c (dump_glyph): Fix typo.
5178
ae19ba7c
SM
5179 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
5180 (adjust_markers_gap_motion, adjust_markers_for_delete)
5181 (adjust_markers_for_insert, adjust_point)
5182 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
5183 (make_gap, copy_text, count_size_as_multibyte, insert)
5184 (insert_and_inherit, insert_before_markers)
5185 (insert_before_markers_and_inherit, insert_1)
5186 (count_combining_before, count_combining_after, insert_1_both)
5187 (insert_from_string, insert_from_string_before_markers)
5188 (insert_from_string_1, insert_from_gap, insert_from_buffer)
5189 (insert_from_buffer_1, adjust_after_replace)
5190 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
5191 (replace_range_2, del_range, del_range_1, del_range_byte)
5192 (del_range_both, del_range_2, modify_region)
5193 (prepare_to_modify_buffer, signal_before_change)
5194 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
5195 for buffer positions and sizes.
5196 * lisp.h: Adjust prototypes accordingly.
5197
5198 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
5199 (non_regular_inserted, non_regular_nbytes, read_non_regular)
5200 (Finsert_file_contents): Use EMACS_INT for buffer positions.
5201
ab226c50
SM
5202 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
5203
46dfb8fb
JD
52042009-03-27 Jan Djärv <jan.h.d@swipnet.se>
5205
5206 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
5207 lines and columns so we keep the same pixel height and width.
5208
5209 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
5210 the property _NET_WM_STATE has changed.
46dfb8fb
JD
5211 (x_handle_net_wm_state): New function to update frame parameter
5212 fullscreen.
5213 (x_term_init): Initialize atoms for _NET_WM_STATE.
5214
5215 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
5216
d347e494
SM
52172009-03-27 Kevin Ryde <user42@zip.com.au>
5218
5219 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
5220 Gpm_GetEvent as an error that justifies closing the filedescriptor.
5221 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
5222 (Fgpm_mouse_stop): Pass that new parameter.
5223 * termhooks.h (close_gpm): Adjust prototype.
5224
84db11d6
SM
52252009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
5226
c95a5008
SM
5227 * lisp.h (Fx_focus_frame): Declare.
5228
84db11d6
SM
5229 * callint.c (Fcall_interactively): For '^' just delegate the work to
5230 handle-shift-selection.
5231 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
5232
0a1958d6
CY
52332009-03-24 Chong Yidong <cyd@stupidchicken.com>
5234
0bfdff23
CY
5235 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
5236
0a1958d6
CY
5237 * data.c (Qinteractive_form): New variable.
5238 (Finteractive_form): Use it.
5239
5240 * eval.c (Fcommandp): Use Qinteractive_form.
5241
58aec0d6
JR
52422009-03-24 Jason Rumney <jasonr@gnu.org>
5243
5244 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
5245 Calculate total size precisely. Decode environment variables
5246 before substituting. (Bug#38)
5247
553dd618
KH
52482009-03-24 Kenichi Handa <handa@m17n.org>
5249
5250 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 5251 encoding (Bug#2722).
553dd618 5252
c39ea606
JD
52532009-03-23 Jan Djärv <jan.h.d@swipnet.se>
5254
5255 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
5256 that gdpy is set.
5257
bc9b2b5e
AM
52582009-03-22 Alan Mackenzie <acm@muc.de>
5259
5260 * callint.c (Finteractive): Clarify the doc string - even
5261 promptless elements need \n separators.
5262
9f995a76
JR
52632009-03-22 Jason Rumney <jasonr@gnu.org>
5264
5265 * w32term.c (syms_of_w32term): Doc fix for
5266 x-use-underline-position-properties.
5267
22749e9a
EZ
52682009-03-21 Eli Zaretskii <eliz@gnu.org>
5269
5270 * w32.c (getpwuid): Change argument type to unsigned.
5271 (struct w32_id): Change type of `rid' member to unsigned.
5272 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
5273 argument ID to unsigned. All callers changed.
5274 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
5275
e00553bf
EZ
52762009-03-20 Eli Zaretskii <eliz@gnu.org>
5277
5278 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
5279 negative, produce a float value.
5280
5281 * dired.c (make_uid, make_gid): New functions.
5282 (Ffile_attributes): Use them to avoid negative UID and GID.
5283
f761d6b6
JB
52842009-03-20 Juanma Barranquero <lekktu@gmail.com>
5285
5286 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
5287 (syms_of_keyboard) <command-hook-internal, input-method-function>:
5288 Fix typos in docstrings.
5289
d507f8d7
KH
52902009-03-19 Kenichi Handa <handa@m17n.org>
5291
5292 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
5293 changed, use font_load_for_lface to get a new font object.
5294 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
5295
5296 * frame.c (x_set_font): Handle the case that ARG is a cons.
5297
c68845e0
GM
52982009-03-19 Glenn Morris <rgm@gnu.org>
5299
5300 * fileio.c (Fsubstitute_in_file_name): Doc fix.
5301
bfa49dd1
CY
53022009-03-19 Chong Yidong <cyd@stupidchicken.com>
5303
5304 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
5305
8458d4c1
KH
53062009-03-19 Kenichi Handa <handa@m17n.org>
5307
5308 * charset.c (load_charset_map_from_file): When a mapfile can't be
5309 loaded, signal an error.
5310
78e7d1fe
EZ
53112009-03-18 Eli Zaretskii <eliz@gnu.org>
5312
5313 * dired.c (Ffile_attributes): Make sure UID and GID are always
5314 positive, even if the value is too large for a positive EMACS_INT.
5315 Doc fix.
5316
5317 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
5318
5da9fdfa
YM
53192009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5320
5321 * xmenu.c (xdialog_show): Move Fredisplay call ...
5322 (Fx_popup_dialog): ... here.
5323
7519c40d
SM
53242009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
5325
5326 * dired.c (file_name_completion): Disable the first optimization just
5327 installed, since it is not implemented correctly.
5328
2cd298e2
SM
53292009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
5330
5331 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 5332 only if the entry can affect bestmatch.
2cd298e2
SM
5333 Stop the search early, as Ftry_completion already does.
5334
48d37adf
CY
53352009-03-17 Chong Yidong <cyd@stupidchicken.com>
5336
e10c9c93 5337 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 5338
9286b16a
CY
53392009-03-15 Chong Yidong <cyd@stupidchicken.com>
5340
5341 * keyboard.c (parse_menu_item): Don't display remappings as menu
5342 equivalent bindings (Bug#788).
5343
f7b146dc
JR
53442009-03-15 Jason Rumney <jasonr@gnu.org>
5345
5346 * w32term.h (WM_EMACS_PAINT): New message.
5347 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
5348 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
5349 before passing to lisp thread. (Bug#950)
5350
f761d6b6 53512009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 5352
d93f9575
CY
5353 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
5354 variable as it was never reset.
5355 (ns_term_init): Remove initialization of Lisp-settable defaults
5356 and ns_expand_space.
5357 (-setPanelFromDefaultValues): Remove ns_expand_space.
5358 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
5359 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
5360 i.e. no additional spacing, similar to Carbon port.
5361
d93f9575
CY
5362 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
5363 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 5364
305018ec
JD
53652009-03-14 Jan Djärv <jan.h.d@swipnet.se>
5366
5367 * sound.c (alsa_configure): Remove call to deprecated
5368 snd_pcm_sw_params_set_xfer_align.
5369
f761d6b6 53702009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
5371
5372 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
5373 after clicking in a detached tool bar.
5374 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
5375
46e722a9
SM
53762009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
5377
348db3dd
SM
5378 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
5379 int/Lisp_Object mixup).
46e722a9 5380
a3d16f39
KH
53812009-03-13 Kenichi Handa <handa@m17n.org>
5382
5383 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 5384 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
5385 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
5386 (set_fontset_font): Change ARG to a vector. Handle range_list in
5387 ARG correctly.
5388 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 5389 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
5390 the above change.
5391 (fontset_from_font): Fix previous change.
fe24f56a 5392 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
5393 entry. If FONTSET is the default fontset, don't set the extra
5394 slot of the returning char-table.
5395
b066e6b6
JB
53962009-03-12 Juanma Barranquero <lekktu@gmail.com>
5397
5398 * nsfns.m (Fx_close_connection): Doc fix.
5399 (Fns_do_applescript): Reflow docstring.
5400 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
5401 (Fx_display_pixel_width, Fx_display_pixel_height)
5402 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
5403 Fix typos in docstrings.
5404 (Fns_set_alpha): Fix typos in error messages.
5405
d472514e 54062009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 5407
d472514e 5408 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
5409 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
5410 were used for such events.
5411
d472514e
JB
5412 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
5413 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 5414
d472514e 5415 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
5416 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
5417
fb930676
KH
54182009-03-11 Kenichi Handa <handa@m17n.org>
5419
ff85581a
KH
5420 * font.h (font_open_by_spec): Extern it.
5421
c50b7e98
KH
5422 * font.c (font_open_by_spec): New function.
5423 (font_open_by_name): Use font_open_by_spec.
5424
fb930676
KH
5425 * frame.c (x_set_font): When ARG is a font-object, don't alter the
5426 fontset of the frame.
5427
5428 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
5429 modify the default font of frames that use this fontset.
5430 (num_auto_fontsets): New variable.
5431 (fontset_from_font): Use num_auto_fontsets to decide a fontset
5432 name. Be sure to set FONTSET_ASCII to the correct font name.
5433 (update_auto_fontset_alist): New function.
5434
df4e8455
JB
54352009-03-11 Juanma Barranquero <lekktu@gmail.com>
5436
5437 * makefile.w32-in: Update dependencies.
5438
0a375797
AR
54392009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
5440
5441 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
5442
61313fa3
SM
54432009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
5444
5445 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
5446
b55103fb
CY
54472009-03-10 Chong Yidong <cyd@stupidchicken.com>
5448
5449 * lread.c (Feval_buffer): Doc fix.
5450
dde2559c
KH
54512009-03-09 Kenichi Handa <handa@m17n.org>
5452
5453 * charset.c (Qfile_name_handler_alist): Extern it.
5454 (load_charset_map_from_file): Temporarily bind
5455 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
5456
df4e8455 54572009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 5458
47f588bb
GM
5459 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
5460 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 5461
4ddf94bd
AR
54622009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
5463
4c9bdfc2
AR
5464 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
5465 (x_set_window_size): Change back to calculated method of setting
5466 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
5467 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
5468 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
5469
fe41ae9e
AR
5470 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
5471
4c9bdfc2
AR
5472 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
5473 accelerator in parens under GNUstep.
5474
825d0875
KH
54752009-03-06 Kenichi Handa <handa@m17n.org>
5476
5477 These changes are to detect incorrect composition sequence without
f3b3be74 5478 looking ahead the source. (Bug#2370)
825d0875
KH
5479
5480 * coding.h: Include "composite.h".
5481 (enum compisition_state): New enum.
5482 (struct compisition_status): New struct.
5483 (struct iso_2022_spec): New member cmp_status.
5484 (struct emacs_mule_spec): New struct.
5485 (struct coding_system): New members ctext_extended_segment_len and
5486 embedded_utf_8. Change the union member
5487 spec.emacs_mule_full_support to spec.emacs_mule.
5488
5489 * coding.c (CODING_ISO_CMP_STATUS): New macro.
5490 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 5491 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
5492 (ADD_COMPOSITION_DATA): New arg nbytes.
5493 (emacs_mule_char): New arg cmp_status.
5494 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
5495 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
5496 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
5497 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
5498 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
5499 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
5500 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
5501 (EMACS_MULE_COMPOSITION_END): New macro.
5502 (emacs_mule_finish_composition): New function.
5503 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
5504 (decode_coding_emacs_mule): Avoid long looking ahead while
5505 handling composition.
5506 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
5507 (ENCODE_COMPOSITION_RULE): New macro.
5508 (finish_composition): New function.
5509 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
5510 (DECODE_COMPOSITION_START): New implementation.
5511 (DECODE_COMPOSITION_END): Likewise.
5512 (STORE_COMPOSITION_RULE): New macro.
5513 (decode_coding_iso_2022): Avoid long looking ahead while handling
5514 composition, CTEXT extended segment, and embedded UTF-8.
5515 (setup_coding_system): For a coding of type iso-2022, reset
5516 CODING_ISO_EXTSEGMENT_LEN (coding) and
5517 CODING_ISO_EMBEDDED_UTF_8 (coding).
5518 (get_translation): Delete arguments last_block, from_nchars,
5519 to_nchars. Callers changed.
5520 (produce_chars): Don't modify charbuf. Adjusted for the change of
5521 get_translation.
98a326f7 5522 (produce_composition): Adjust for the new annotation sequence.
825d0875 5523 (handle_composition_annotation): Likewise.
98a326f7 5524 (consume_chars): Adjust for the change of get_translation.
825d0875 5525
ccbc4452
AR
55262009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
5527
4ddf94bd 5528 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 5529
988a7ddb
KH
55302009-03-05 Kenichi Handa <handa@m17n.org>
5531
5532 * font.c (font_select_entity): New function.
5533 (font_find_for_lface): Use font_select_entity to select a font.
5534
5535 * fontset.c (fontset_find_font): If a font found without
a8a3728b 5536 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
5537 font with C restriction.
5538
98a326f7 55392009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 5540
be1bce46 5541 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 5542
10ea2b82
JR
55432009-03-04 Jason Rumney <jasonr@gnu.org>
5544
2c93b248 5545 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 5546 characters that have already been read. (Bug#2569)
2c93b248 5547
10ea2b82
JR
5548 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
5549 Log an error message if check_image_size failed.
5550 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 5551 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 5552
71a0c011
EZ
55532009-03-02 Eli Zaretskii <eliz@gnu.org>
5554
5555 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
5556 when decoding process output.
5557
2f63bba8
RS
55582009-03-01 Richard M Stallman <rms@gnu.org>
5559
5560 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
5561
5562 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
5563
0a9564cb
EZ
55642009-02-28 Eli Zaretskii <eliz@gnu.org>
5565
5566 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
5567 (decode_coding_emacs_mule, decode_coding_iso_2022)
5568 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
5569 (decode_coding_raw_text, decode_coding_charset)
5570 (setup_coding_system, decode_eol, decode_coding, consume_chars):
5571 Honor inhibit-eol-conversion. (Bug #2186)
5572
449148b3
JR
55732009-02-28 Jason Rumney <jasonr@gnu.org>
5574
5575 * coding.c (detect_coding_charset): If not checking latin extra,
5576 fail on characters between 0x80 and 0xA0. (Bug#2354)
5577
a4aee864
EZ
55782009-02-28 Eli Zaretskii <eliz@gnu.org>
5579
5580 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 5581 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 5582
d88bee5a
GM
55832009-02-27 Glenn Morris <rgm@gnu.org>
5584
5585 * callint.c (Finteractive): Doc fix.
5586
a808f22d
KH
55872009-02-27 Kenichi Handa <handa@m17n.org>
5588
5589 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
5590
caf8d60c
CY
55912009-02-27 Chong Yidong <cyd@stupidchicken.com>
5592
5593 * font.c (font_style_to_value): Set value for unknown symbols to
5594 100 instead of 255.
b61137ea
CY
5595 (weight_table, slant_table, width_table): Treat "unspecified" as
5596 the default value.
caf8d60c 5597
1a0de25c
JB
55982009-02-26 Juanma Barranquero <lekktu@gmail.com>
5599
5600 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
5601
8fc45744
JB
56022009-02-25 Juanma Barranquero <lekktu@gmail.com>
5603
107bd7d1
JB
5604 * lread.c (Fload): Stop checking Vloads_in_progress and signal
5605 error as soon as a recursive load is detected.
8fc45744 5606
f097e223
AR
56072009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5608
5609 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
5610 before caching.
5611
8810a12f
KH
56122009-02-24 Kenichi Handa <handa@m17n.org>
5613
5614 * fontset.c (fontset_find_font): Fix the condition for checking
5615 unavailable font.
5616
2c7d1565
GM
56172009-02-24 Glenn Morris <rgm@gnu.org>
5618
5619 * xfaces.c (Finternal_set_font_selection_order): Remove leading
5620 whitespace that confuses documentation.
5621
a20878b6
MB
56222009-02-23 Miles Bader <miles@gnu.org>
5623
5624 * process.c (Flist_system_processes, Fprocess_attributes)
5625 (syms_of_process): Rename `system-process-attributes' to
5626 `process-attributes'.
5627
b3b58c01
AS
56282009-02-22 Andreas Schwab <schwab@linux-m68k.org>
5629
1b3b981b
AS
5630 * coding.h (struct coding_system): Make safe_charsets a pointer to
5631 unsigned char.
5632 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
5633 being 255.
5634 (SAFE_CHARSET_P): Likewise.
5635 (setup_iso_safe_charsets): Properly setup safe_charsets.
5636 (Fdefine_coding_system_internal): Likewise.
5637 (setup_coding_system): Likewise. Remove unneeded casts.
5638 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
5639 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
5640 unneeded casts.
5641
b3b58c01
AS
5642 * insdel.c (del_range_2): Don't modify gap contents when called
5643 from decode_coding_object. (Bug#1809)
5644
0b6f228c
CY
56452009-02-21 Chong Yidong <cyd@stupidchicken.com>
5646
5647 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
5648 Qfont_object.
5649 (Ftype_of): Recognize font objects.
5650
5651 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
5652
5653 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
5654 moved to data.c.
5655
52f8870b
AR
56562009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5657
5658 * nsterm.m (x_make_frame_invisible): Unset async_visible,
5659 async_iconified. Based on a patch by Christian Lynbech
5660 <christian.lynbech@tieto.com>.
5661 (EmacsView-windowDidMiniaturize:): Unset async_visible.
5662
7087d5e9
GM
56632009-02-20 Glenn Morris <rgm@gnu.org>
5664
5665 * syntax.c (Fskip_chars_forward): Fix doc typo.
5666
41d2ceef
CY
56672009-02-20 Chong Yidong <cyd@stupidchicken.com>
5668
5669 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
5670
1a3b7ca6
CY
56712009-02-19 Chong Yidong <cyd@stupidchicken.com>
5672
5673 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
5674
73cce38d
KH
56752009-02-19 Kenichi Handa <handa@m17n.org>
5676
5677 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 5678 Don't overflow coding->carryover. (Bug#2370)
73cce38d 5679
a51092ee
DN
56802009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
5681
5682 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
5683
c423ecca
KH
56842009-02-18 Kenichi Handa <handa@m17n.org>
5685
5686 * font.c (font_check_otf_features): Fix handling of `nil' element.
5687 (Ffont_spec): Describe :lang and :otf in the docstring.
5688
4c1958f4
AS
56892009-02-16 Andreas Schwab <schwab@suse.de>
5690
5691 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
5692 string.
5693
5704f39a
KH
56942009-02-16 Kenichi Handa <handa@m17n.org>
5695
5696 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 5697 (Bug#1723)
5704f39a 5698
8f0085aa
CY
56992009-02-14 Chong Yidong <cyd@stupidchicken.com>
5700
a057d86a 5701 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
5702
5703 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
5704 (handle_line_prefix): Suppress wrapping of wrap prefixes.
5705
aff01dd9
EZ
57062009-02-14 Eli Zaretskii <eliz@gnu.org>
5707
5708 * msdos.c (MAX_SCREEN_BUF): New macro.
5709 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
5710 Encode the entire run of glyphs sharing the same face, instead of
5711 doing that one glyph at a time (fixes a bug with displaying
5712 double-size characters).
5713
ba301db3
AR
57142009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
5715
5716 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
5717
5718 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
5719 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 5720 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
5721
5722 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 5723 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 5724
51d861de
SM
57252009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
5726
ac146f82 5727 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
5728 invisible areas.
5729
7fed8996
JR
57302009-02-12 Jason Rumney <jasonr@gnu.org>
5731
631ea4fb
JR
5732 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
5733 (add_font_entity_to_list): Call check_face_name even when family
5734 is unspecified.
5735
cb4a3e42
JR
5736 * w32term.c (x_display_pixel_height, x_display_pixel_width):
5737 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 5738 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 5739
7fed8996 5740 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 5741 raster fonts. (Bug#2219)
7fed8996 5742
895416e3
KH
57432009-02-12 Kenichi Handa <handa@m17n.org>
5744
5745 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
5746 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
5747 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 5748 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
5749 (find_automatic_composition): While looking forward and backward,
5750 check static composition. Fix where to stop looking forward.
5751 (composition_adjust_point): Fix checking of static composition.
5752 (Fcomposition_get_gstring): Pay attention to
1dacf998 5753 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
5754
5755 * lisp.h (fast_looking_at): Extern it.
5756
5757 * search.c (fast_looking_at): New function.
5758
51d861de 5759 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
5760 <struct glyph>.u.cmp.to.
5761 (append_composite_glyph): Likewise.
5762
51d861de 5763 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
5764 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
5765 composition.
51d861de 5766 (append_composite_glyph): Adjust for the change of
895416e3
KH
5767 <strcut glyph>.u.cmp.to.
5768
8510724d
JB
57692009-02-11 Juanma Barranquero <lekktu@gmail.com>
5770
5771 * casetab.c (init_casetab_once):
5772 * coding.c (ALLOC_CONVERSION_WORK_AREA):
5773 * font.c (font_update_lface):
5774 * fontset.c (Fnew_fontset):
5775 * ftfont.c (ftfont_drive_otf):
5776 * xfont.c (xfont_open):
5777 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
5778
294fa707
SM
57792009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
5780
5781 * fileio.c (Fwrite_region): !NILP -> CONSP.
5782
b5bfebec
AS
57832009-02-10 Andreas Schwab <schwab@suse.de>
5784
5785 * process.c (send_process): Properly relocate pointer into data
adab88bd 5786 when using encoded data. (Bug#2272)
b5bfebec 5787
cb84a2be
KH
57882009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
5789
5790 * coding.c (detect_coding_charset): Fix previous change.
5791
89e09428
JR
57922009-02-08 Jason Rumney <jasonr@gnu.org>
5793
5794 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 5795 disappeared while hourglass was displayed. (Bug #2193)
89e09428 5796
4470a277
AS
57972009-02-07 Andreas Schwab <schwab@suse.de>
5798
5799 * unexelf.c (unexec): Fix error message.
5800
3175b12a
AR
58012009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
5802
5803 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 5804 when modal window is active. (Bug #2152)
3175b12a
AR
5805 (applicationShouldTerminate:): Remove now-unneeded while loop
5806 around NSRunAlertPanel.
5807
5808 * nsmenu.m (popupSession): New file-global variable.
5809 (pop_down_menu): End the popupSession before closing dialog.
5810 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
5811 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
5812 don't query NSApp for events (just sleep instead).
5813
8434d0b8
EZ
58142009-02-07 Eli Zaretskii <eliz@gnu.org>
5815
51d861de
SM
5816 * coding.c (syms_of_coding) <translation-table-for-input>:
5817 Modify doc string to discourage use for character code unification.
8434d0b8 5818
aa82edfd
CY
58192009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5820
5821 * atimer.c (run_timers): Update pending_atimers.
5822
2d283c7c
CY
58232009-02-06 Chong Yidong <cyd@stupidchicken.com>
5824
eb306cab
CY
5825 * image.c (svg_load_image): Fix last change.
5826
2d283c7c
CY
5827 * xfns.c (Fx_create_frame): Signal an error if no font is
5828 found (Bug#2147).
5829
4d8e170e
JB
58302009-02-05 Juanma Barranquero <lekktu@gmail.com>
5831
5832 * character.c (syms_of_character) <script-representative-chars>:
5833 Fix typo in docstring.
5834
c96169a0
AR
58352009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
5836
5837 * nsmenu.m (pop_down_menu): New function.
5838 (ns_popup_dialog): Call it on unwind.
5839 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
5840 call timer_check() (Bug#2154).
5841 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
5842 handling_signal is set.
5843 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
5844
31fd7c5c 5845 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
5846
5847 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
5848
5849 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
5850
51d861de
SM
5851 * keyboard.c (poll_for_input_1, handle_async_input):
5852 Set handling_signal under HAVE_NS.
c96169a0 5853
aacd8ba1
GM
58542009-02-04 Glenn Morris <rgm@gnu.org>
5855
5856 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
5857
4cb75c4b
KH
58582009-02-04 Kenichi Handa <handa@m17n.org>
5859
5860 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
5861
5862 * charset.c (Fchar_charset): New optional arg restriction.
5863
5864 * coding.h (coding_system_charset_list): Extern it.
5865
5866 * coding.c (coding_system_charset_list): New function.
5867
5868 * composite.c: Include coding.h and termhooks.h.
5869 (composition_gstring_p): Fix for the terminal case.
5870 (composition_gstring_width): Likewise.
5871 (fill_gstring_body): Likewise.
5872 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
5873 the frame.
5874 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
5875 is within a composition.
867d4bb3 5876 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
5877
5878 * term.c (encode_terminal_code): Fix handling of composition.
5879 (produce_composite_glyph): For static composition, get pixel_width
5880 from struct composition.
5881
826ba17e
AS
58822009-02-02 Andreas Schwab <schwab@suse.de>
5883
5884 * unexelf.c (unexec): Handle unaligned bss offset.
5885
8ad093db
AR
58862009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5887
5888 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
5889 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 5890
8ad093db
AR
5891 * keyboard.c (handle_interrupt): Don't call
5892 quit_throw_to_read_char() under NS.
d0a76a6e 5893
8ad093db
AR
5894 * blockinput.h: Remove NS-specific code.
5895
4d18a7a2
DN
58962009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
5897
db878925
DN
5898 * dispnew.c (window_change_signal): Don't try to get the size of a
5899 suspended tty frame.
5900 * term.c (Fresume_tty): Resize if the size has changed while the
5901 tty was suspended.
5902
4d18a7a2
DN
5903 * alloc.c (mark_stack): Properly conditionalize previous change.
5904
8984df7c
JB
59052009-01-30 Juanma Barranquero <lekktu@gmail.com>
5906
5907 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
5908 * w32term.c (w32_read_socket) [SYNC_INPUT]:
5909 Remove; this code is not used on Windows.
5910
75f4f1ac
EZ
59112009-01-30 Eli Zaretskii <eliz@gnu.org>
5912
5913 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
5914 EOLs that also has stray ^M characters.
5915
07a1e794
JB
59162009-01-30 Juanma Barranquero <lekktu@gmail.com>
5917
5918 * atimer.c (run_timers, alarm_signal_handler):
5919 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
5920 * w32inevt.c (w32_console_read_socket):
5921 * w32term.c (w32_read_socket):
5922 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
5923
a8b11cc9
CY
59242009-01-30 Chong Yidong <cyd@stupidchicken.com>
5925
5926 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
5927 Initialize it as a relative filename pattern.
5928 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
5929 (Fcall_process_region): Simplify temp file creation using
5930 temporary-file-directory.
5931
c279587b
EZ
59322009-01-29 Eli Zaretskii <eliz@gnu.org>
5933
5934 * msdos.c: Rename pending_signals to msdos_pending_signals.
5935 (sig_suspender, sigprocmask): Adjust.
5936
a8fe3242
CY
59372009-01-29 Chong Yidong <cyd@stupidchicken.com>
5938
5939 * keyboard.c (pending_signals): New var.
5940 (poll_for_input, input_available_signal, init_keyboard): Set it.
5941 (process_pending_signals): New function.
5942
5943 * lisp.h (QUIT): Check pending_signals instead of
5944 interrupt_input_pending. Use process_pending_signals.
5945
51d861de 5946 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 5947
51d861de 5948 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
5949
5950 * sysdep.c (emacs_write): Use process_pending_signals.
5951
5952 * xterm.c (XTread_socket): Update pending_signals.
5953
5954 * w32term.c (w32_read_socket): Update pending_signals.
5955
5956 * w32inevt.c (w32_console_read_socket): Update pending_signals.
5957
6570a1c4
KH
59582009-01-29 Kenichi Handa <handa@m17n.org>
5959
5960 * xftfont.c (xftfont_has_char): New function.
5961 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
5962
d72a4afa
AR
59632009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5964
5965 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
5966 under GNUstep.
5967 (ns_query_color): New declaration.
5968
5969 * nsterm.m (ns_confirm_quit): New variable.
5970 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
5971 (EmacsApp-applicationShouldTerminate:): Use it.
5972 (EmacsPrefsController): Let user set it.
5973 (ns_query_color): New function.
5974 (ns_defined_color): Use it.
5975 (ns_initialize): Drop.
5976 (ns_term_init): Add two lines from ns_initialize(), and set
5977 input_interrupt_mode to nil.
5978
5979 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 5980 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 5981
9fe78804
KH
59822009-01-28 Kenichi Handa <handa@m17n.org>
5983
5984 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
5985 (fontset_get_font_group): Remember that no font-group is specified
5986 for C.
9fe78804 5987
fa57de36
CY
59882009-01-27 Chong Yidong <cyd@stupidchicken.com>
5989
930600e9
CY
5990 * fns.c (concat): Check for string overflow (bug#1787).
5991
fa57de36
CY
5992 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
5993 Quadruple undo limits (bug#1501).
5994
7179ce7b
KH
59952009-01-27 Kenichi Handa <handa@m17n.org>
5996
5997 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
5998 directly use GT_Get_Char_index.
5999
6000 * xftfont.c (struct xftfont_info): New member `index'.
6001
6002 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 6003 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 6004
5be8fcc0
CY
60052009-01-26 Kenichi Handa <handa@m17n.org>
6006
6007 * fontset.c (fontset_find_font): Fix handling of non-cons return
6008 value of fontset_get_font_group.
6009 (fontset_font): Revert last change.
6010
19ae3e61
JR
60112009-01-26 Jason Rumney <jasonr@gnu.org>
6012
6013 * w32font.c (w32font_list_internal): Return quickly if registry is
6014 unknown. Simplify final return.
6015 (add_font_entity_to_list): Break complex logic down into more
6016 manageable chunks. Move unknown registry check to
6017 w32font_list_internal.
6018
8612b71a
AR
60192009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
6020
6021 Changes to remove Feval calls from GUI under NS.
6022
d8038940
JB
6023 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
6024 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
6025 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
6026
6027 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
6028 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
6029 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
6030 instead of NON_ASCII_KEYSTROKE_EVENT.
6031 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
6032 (EmacsApp-applicationShouldTerminate:): Query user.
6033 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
6034 instead of Feval.
6035
6036 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
6037
6038 * keyboard.c (kbd_buffer_get_event): Check for it.
6039 (keys_of_keyboard): Define lispy keys for
6040 ns-put/unput-working-text.
6041
6042 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
6043 versions.
6044 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
6045
6288ae55
CY
60462009-01-25 Chong Yidong <cyd@stupidchicken.com>
6047
6048 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 6049 setting current_buffer directly. (Bug#2044)
6288ae55 6050
289e7f8f
CY
60512009-01-24 Chong Yidong <cyd@stupidchicken.com>
6052
5ce87308 6053 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 6054 any work. (Bug#1952, bug#1990).
5ce87308 6055
64cc3cf6 6056 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 6057
b3243e6f
AR
60582009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6059
6060 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
6061 (ns_no_defaults): New declaration.
6062 (main): Use it.
e0d2e69a 6063
d900b2af 6064 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 6065
d900b2af 6066 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 6067
d900b2af
AR
6068 * nsterm.m (ns_no_defaults): New variable.
6069 (ns_initialize): Don't read defaults when ns_no_defaults.
6070 (EmacsView-readSelectionFromPasteboard:)
6071 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 6072 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
6073 (ns_dumpglyphs_stretch): New function.
6074 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 6075 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 6076
e0d2e69a
AR
6077 * nsimage.m (setPixmapData:): Set to ignore image DPI.
6078
3ac71f5d
CY
60792009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
6080
6081 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
6082 call for Sparc64.
6083
3fe53a83
AR
60842009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6085
6086 * nsfns.m:
6087 * nsgui.h:
6088 * nsmenu.m:
6089 * nsselect.m:
6090 * nsterm.h:
6091 * nsterm.m: Remove '23' comments that indicated code added during
6092 update from emacs-20 -> emacs-23.
6093
10f87c6f 60942009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
6095
6096 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 6097 ns_alternate_modifier. (Bug#1217)
a3b53a85 6098
c7cef62d
AR
6099 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
6100 Display all shortcuts, including those w/o super modifier.
6101
575fb8bd
AR
6102 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
6103
918b848b
CY
61042009-01-22 Chong Yidong <cyd@stupidchicken.com>
6105
6106 * fileio.c (Vwrite_region_post_annotation_function)
6107 (Vwrite_region_annotation_buffers): New vars.
6108 (build_annotations_unwind): Just reset
6109 Vwrite_region_annotation_buffers.
6110 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
6111 Call write-region-post-annotation-function.
6112 (build_annotations): Add to Vwrite_region_annotation_buffers if
6113 buffer changes.
6114
a39e2539
AR
61152009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6116
6117 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
6118 Tiger.
51d861de
SM
6119 * nsfns.m (ns_do_applescript):
6120 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 6121
35ed44db
AR
61222009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
6123
6124 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
6125
cbe0b5bf
AR
61262009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6127
6128 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 6129
6049d3a0
AR
6130 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
6131
6132 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
6133 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
6134 handle Ctrl-tab. (Bug#1841)
6135 (ns_get_color): Use unsigned long long for scanned hex string value.
6136 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 6137 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 6138 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 6139 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 6140 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 6141 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 6142 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 6143
d3810c21 6144 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 6145 DPI. (Bug#1316)
d3810c21
AR
6146 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
6147 values in onTiger section.
4c7077c3 6148
e301e634
CY
61492009-01-19 Chong Yidong <cyd@stupidchicken.com>
6150
7f82490b
CY
6151 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
6152 Check return value of font_spec_from_name.
64cc3cf6 6153 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
6154
6155 * font.c (font_spec_from_name): Return Qnil if font name could not
6156 be parsed.
6157 (font_parse_name): Treat a `?' character as part of an XLFD.
6158
e301e634
CY
6159 * fns.c (Fsubstring): Doc fix.
6160
1c0db158
KH
61612009-01-19 Kenichi Handa <handa@m17n.org>
6162
51d861de 6163 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
6164 (ftfont_list): Likewise.
6165
acf20901
JB
61662009-01-18 Juanma Barranquero <lekktu@gmail.com>
6167
fff4e459
JB
6168 * dbusbind.c (Fdbus_register_signal):
6169 * process.c (conv_sockaddr_to_lisp):
6170 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
6171
acf20901
JB
6172 * callproc.c (Fgetenv_internal): Doc fix.
6173
e7abcdfb
CY
61742009-01-16 Chong Yidong <cyd@stupidchicken.com>
6175
6176 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
6177 it is not even used.
6178
b60861e6
GM
61792009-01-16 Glenn Morris <rgm@gnu.org>
6180
6181 * font.c (Ffont_variation_glyphs): Silence compiler.
6182
8db52afe
JB
61832009-01-15 Juanma Barranquero <lekktu@gmail.com>
6184
6185 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
6186 Reported by David Robinow <drobinow@gmail.com>.
6187
4cddb209
KH
61882009-01-15 Kenichi Handa <handa@m17n.org>
6189
51d861de 6190 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 6191
f247f67b
JR
61922009-01-14 Jason Rumney <jasonr@gnu.org>
6193
6194 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 6195 never a fontset. (Bug#1562)
f247f67b 6196
f56a4450
KH
61972009-01-14 Kenichi Handa <handa@m17n.org>
6198
6199 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 6200 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 6201
4e99855e
CY
62022009-01-13 Chong Yidong <cyd@stupidchicken.com>
6203
6204 * font.c (font_clear_prop): If clearing the family, clear the font
6205 width index too.
6206
fff4e459 6207 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 6208
24f01470
JB
62092009-01-12 Juanma Barranquero <lekktu@gmail.com>
6210
6211 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
6212 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
6213 functions, use sizeof.
6214
a41240a3
MR
62152009-01-12 Martin Rudalics <rudalics@gmx.at>
6216
6217 * keyboard.c (read_char): Fix case where last_nonmenu_event
6218 returned a bad value with submenus. (Bug#447)
6219
944636b8
CY
62202009-01-12 Chong Yidong <cyd@stupidchicken.com>
6221
6222 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
6223 family, clear the font width index too.
6224
0dad7c6f
JR
62252009-01-11 Jason Rumney <jasonr@gnu.org>
6226
6227 * keyboard.c (cmd_error_internal): Exit when errors occur before
6228 frame creation and not in daemon mode. (Bug#1836)
6229
7c2363af
CY
62302009-01-10 Chong Yidong <cyd@stupidchicken.com>
6231
6232 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
6233 of a display vector, backtrack.
6234 (try_window_reusing_current_matrix): Check glyph type before
6235 referencing charpos member.
6236
97b1b294
EZ
62372009-01-10 Eli Zaretskii <eliz@gnu.org>
6238
6239 Fix Bug #876:
6240
6241 * coding.c (inhibit_null_byte_detection): New variable.
6242 (detect_coding, detect_coding_system): Don't pay attention to null
6243 bytes if inhibit_null_byte_detection is non-zero.
51d861de 6244 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
6245 <inhibit-iso-escape-detection>: Doc fix.
6246
4624b6e3
JR
62472009-01-09 Jason Rumney <jasonr@gnu.org>
6248
6249 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 6250 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
6251 Only report Unicode Plane 2 fonts as unicode-sip.
6252
323b840c
CY
62532009-01-09 Chong Yidong <cyd@stupidchicken.com>
6254
51d861de
SM
6255 * xfaces.c (Fx_font_family_list): Delete function.
6256 Move compatibility version to faces.el.
323b840c 6257
51d861de 6258 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 6259
eba7400d
MR
62602009-01-09 Martin Rudalics <rudalics@gmx.at>
6261
6262 * frame.c (x_set_frame_parameters): Remember requested value for
6263 fullscreen before it's reset by the parameter handler.
6264
4b09796d
GM
62652009-01-09 Glenn Morris <rgm@gnu.org>
6266
6267 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 6268 (last_command_event): ... and update all users.
4b09796d
GM
6269 (last_input_char): For clarity, rename to...
6270 (last_input_event): ... and update all users.
6271 (last-command-char, last-input-char): Move to subr.el as aliases.
6272 * cmds.c, commands.h: Update for last_command_char rename.
6273
14ccea62
CY
62742009-01-08 Chong Yidong <cyd@stupidchicken.com>
6275
51d861de 6276 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 6277
5f004711
JR
62782009-01-08 Jason Rumney <jasonr@gnu.org>
6279
6280 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
6281 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
6282 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
6283 Don't declare.
fff4e459 6284 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
6285 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
6286
b71f6f73
KH
62872009-01-07 Kenichi Handa <handa@m17n.org>
6288
50b06221 6289 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 6290 remember the coding system used for decoding in
50b06221
KH
6291 coding_system (Bug#1039).
6292
b71f6f73 6293 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 6294 breaking the loop. (Bug#870)
b71f6f73
KH
6295 (decode_coding_utf_16, decode_coding_emacs_mule)
6296 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
6297 (decode_coding_charset): Likewise.
6298
56f668f7
MR
62992009-01-05 Martin Rudalics <rudalics@gmx.at>
6300
6301 * frame.c (x_set_frame_parameters): Make sure height (width) get
6302 applied when fullwidth (fullheight) is set. (Bug#1522)
6303
5da9424d
JB
63042009-01-04 Juanma Barranquero <lekktu@gmail.com>
6305
6306 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
6307 (utc_base): Declare as ULONGLONG, not long double.
6308 (convert_time_raw): Delete.
6309 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
6310 (initialize_utc_base): New function.
6311 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
6312 (convert_from_time_t): Use initialize_utc_base; compute result with
6313 64-bit arithmetic.
6314 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
6315
c4605e09
EZ
63162009-01-03 Eli Zaretskii <eliz@gnu.org>
6317
9acef61c 6318 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
6319 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
6320 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
6321 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
6322 [!subprocesses]: Define.
6323 (syms_of_process) [!subprocesses]: Intern and staticpro them.
6324 (Flist_system_processes, Fsystem_process_attributes)
6325 [!subprocesses]: Call list_system_processes and
6326 system_process_attributes instead of returning Qnil.
6327
9acef61c
JB
6328 * dosfns.c (system_process_attributes, list_system_processes):
6329 New functions.
c4605e09
EZ
6330
6331 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
6332
6333 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
6334 Don't use the default (no-op) implementation.
6335
8b7d0a16
JR
63362009-01-03 Jason Rumney <jasonr@gnu.org>
6337
a6d46bc1
JR
6338 * keyboard.c (parse_modifiers_uncached): Wheel events are
6339 clicks (bug#687).
6340
8b7d0a16
JR
6341 * w32term.c (x_query_colors, x_query_color): New functions.
6342
6343 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
6344 (svg_load_image): Cast returned pointers from dynamically loaded
6345 functions. Eliminate W32 specific code.
6346
bfe11752
DN
63472009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
6348
89e2438a
DN
6349 * nsfns.m (x_set_foreground_color, x_set_background_color)
6350 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
6351 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
6352 x_ prefix instead of ns_. Update references.
6353 (syms_of_nsfns): Add a FIXME comment.
6354
6355 * nsterm.m (x_set_cursor_type): New prototype.
6356 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
6357
bfe11752
DN
6358 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
6359 for Solaris instead of incorrectly providing Qutime and Qcutime.
6360
031da700
EZ
63612009-01-02 Eli Zaretskii <eliz@gnu.org>
6362
6363 * w32.c (process_times): Compute sum of utime and stime.
6364 (system_process_attributes): Add Qtime to the alist.
6365
6366 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
6367 and add them to the alist.
6368
6369 * process.c (top level) <Qtime, Qctime>: New variables.
6370 (syms_of_process): staticpro them.
6371 (Fsystem_process_attributes): Add their documentation to the doc
6372 string.
6373
6374 * process.h: Declare Qtime and Qctime.
6375
df23bf08
JR
63762009-01-02 Jason Rumney <jasonr@gnu.org>
6377
9acef61c 6378 * image.c (Qgobject): New symbol.
df23bf08
JR
6379 (syms_of_image): Initialize it.
6380 (init_svg_functions): Load some functions from gobject library.
6381
5bbdf7aa
DN
63822009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
6383
6384 * frame.c (make_terminal_frame): Remove redundant code and useless
6385 block.
6386
63136da6
AS
63872009-01-01 Andreas Schwab <schwab@suse.de>
6388
6389 * process.c (conv_sockaddr_to_lisp): Add workaround for
6390 getsockname bug on BSD.
6391
9ef69046
CY
63922009-01-01 Chong Yidong <cyd@stupidchicken.com>
6393
d6fafbe0
CY
6394 * xfns.c (x_create_tip_frame): Set border width of the X window.
6395
51d861de 6396 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 6397
f9c34147
JR
63982009-01-01 Jason Rumney <jasonr@gnu.org>
6399
9acef61c 6400 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
6401 Don't block input, as per earlier xterm.c changes.
6402
f5497e45
AR
64032008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
6404
6405 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
6406 (ns_appkit_version_int): New function.
6407 (x-server-version): Use ns_appkit_version_int and follow 21+
6408 convention of returning 3 integers.
6409
c19cab20
KH
64102008-12-30 Kenichi Handa <handa@m17n.org>
6411
6412 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
6413 (CHAR_SURROGATE_PAIR_P): New macro.
6414
6415 * font.h (struct font_driver): New member get_variation_glyphs.
6416
9acef61c 6417 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
6418 (Ffont_variation_glyphs): New function.
6419 (syms_of_font): Defsubr it.
6420
6421 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
6422 ftfont_variation_glyphs.
6423 (setup_otf_gstring): New function.
6424 (ftfont_drive_otf): Use it.
6425 (ftfont_shape_by_flt): Handle variation selector.
6426 (ftfont_variation_glyphs): New function.
6427
28cd591f
MR
64282008-12-30 Martin Rudalics <rudalics@gmx.at>
6429
6430 * frame.c (Vemacs_iconified): Remove.
6431
7f714baf
JR
64322008-12-30 Jason Rumney <jasonr@gnu.org>
6433
6434 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 6435 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 6436
9d2d22ab
CY
64372008-12-30 Chong Yidong <cyd@stupidchicken.com>
6438
6439 * indent.c (Fvertical_motion): Don't advance iterator if we have
6440 reseated to the desired position.
6441
6442 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
6443 checking for pos match.
6444
545312c2
KH
64452008-12-30 Kenichi Handa <handa@m17n.org>
6446
1ede3eb6
KH
6447 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
6448 just get the low 8-bit of the code.
6449
545312c2
KH
6450 * font.c (font_intern_prop): Validate str as multibyte.
6451
bd7bbf29
DN
64522008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
6453
31e0750e
DN
6454 * dispextern.h (struct face): Move lface and hash from the middle
6455 of bitfields.
6456
bd7bbf29
DN
6457 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
6458
b5672e7c
DN
64592008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
6460
6461 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
6462 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
6463 instead of intervals.h.
6464
d704470f
AS
64652008-12-26 Andreas Schwab <schwab@suse.de>
6466
6467 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
6468 cons.
6469
54b33868
MR
64702008-12-26 Martin Rudalics <rudalics@gmx.at>
6471
6472 * textprop.c (Qminibuffer_prompt): New variable.
6473 (syms_of_textprop): Initialize it.
6474 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
6475 in minibuffer-prompt face. (Bug#1662)
6476
40b615d6
JR
64772008-12-25 Jason Rumney <jasonr@gnu.org>
6478
6479 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
6480
baae5c2d
JR
64812008-12-24 Jason Rumney <jasonr@gnu.org>
6482
6483 * ralloc.c (r_alloc_reset_variable): New function.
6484
6485 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 6486 record of what points where. (Bug#716)
baae5c2d 6487
a9051c88
DN
64882008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
6489
6490 * minibuf.c (read_minibuf): Follow the non-interactive case when
6491 running as a daemon, before detaching.
6492
8b146312
AS
64932008-12-22 Andreas Schwab <schwab@suse.de>
6494
6495 * buffer.c (init_buffer): Use realloc instead of xrealloc.
6496 * gtkutil.c (free_widget_value): Use xfree instead of free.
6497
56f2de10
MR
64982008-12-22 Martin Rudalics <rudalics@gmx.at>
6499
6500 * frame.c (delete_frame): New function derived from
6501 Fdelete_frame to handle Qnoelisp value for FORCE argument.
6502 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
6503 (Fdelete_frame): Call delete_frame. Remove line from doc-string
6504 saying that FORCE non-nil doesn't run `delete-frame-functions'.
6505 * frame.h: Extern delete_frame.
6506 * window.c (window_loop):
6507 * terminal.c (delete_terminal):
6508 * xterm.c (x_connection_closed):
6509 * xfns.c (Fx_hide_tip):
9acef61c 6510 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 6511
1fc200d6
JR
65122008-12-21 Jason Rumney <jasonr@gnu.org>
6513
6514 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
6515 when character maps to .notdef character.
6516
5e252df2
SM
65172008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
6518
6519 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
6520
99b72cc4
JR
65212008-12-20 Jason Rumney <jasonr@gnu.org>
6522
6523 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 6524 a graphical frame on Windows. (Bug#1325)
99b72cc4 6525
acc49a52
JD
65262008-12-20 Jan Djärv <jan.h.d@swipnet.se>
6527
6528 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
6529
6ea15123
CY
65302008-12-20 Chong Yidong <cyd@stupidchicken.com>
6531
6532 * minibuf.c (Fread_buffer): Doc fix.
6533
b2dab6c8
JR
65342008-12-20 Jason Rumney <jasonr@gnu.org>
6535
54ea0c87 6536 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 6537 server name in UNC paths. (Bug#719)
54ea0c87 6538
b2dab6c8 6539 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 6540 charbuf. (Bug#1035)
b2dab6c8 6541
6d1921be
DN
65422008-12-19 Daniel Engeler <engeler@gmail.com>
6543
6544 * sysdep.c (serial_configure): Fix typo.
6545
53934c98
DN
65462008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
6547
6548 * sysdep.c: Include alloca.h.
f4f634e8
DN
6549 (system_process_attributes): Add implementation for Solaris.
6550
6551 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 6552
06e111a6
DN
65532008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
6554
6555 Reorganize implementation of Flist_system_processes and
6556 Fsystem_process_attributes. No functional changes.
6557 * process.c: Don't #include pwd.h, grp.h and limits.h.
6558 (Flist_system_processes): Just call list_system_processes.
6559 (Fsystem_process_attributes): Just call system_process_attributes.
6560 (procfs_list_system_processes, time_from_jiffies)
6561 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
6562 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
6563
6564 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
6565 (list_system_processes): Rename from
6566 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
6567 Provide a do nothing implementation.
6568 (system_process_attributes): Rename from
6569 procfs_list_system_processes.
6570 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 6571 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
6572
6573 * w32.c (list_system_processes): Rename from
6574 w32_list_system_processes.
6575 (system_process_attributes): Rename from
6576 w32_system_process_attributes.
6577
6578 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
6579
6580 * process.h (w32_list_system_processes)
6581 (w32_system_process_attributes): Remove.
362654a6
JB
6582 (list_system_processes, system_process_attributes):
6583 New prototypes.
06e111a6 6584
6a705b23
KH
65852008-12-19 Kenichi Handa <handa@m17n.org>
6586
6587 * xfont.c (xfont_decode_coding_xlfd): New function.
6588 (xfont_encode_coding_xlfd): New function.
6589 (xfont_list_pattern): Decode XLFD by iso-8859-1.
6590 (xfont_list): Decode and encode XLFD by iso-8859-1.
6591 (xfont_match): Likewise.
6592 (xfont_list_family): Likewise.
6593 (xfont_open): Likewise.
6594
d66c0241 6595 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
6596 names are utf-8.
6597
d66c0241 6598 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
6599 names are utf-8.
6600
5a130941
JD
66012008-12-18 Jan Djärv <jan.h.d@swipnet.se>
6602
6603 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
6604 changed.
bfd20325
JD
6605 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
6606 clicked on a detached tool bar button.
5a130941 6607
fd95644b
DN
66082008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
6609
6610 * emacs.c (main): Print and error and exit when no data is read
6611 from the pipe.
6612
e6eee6ae
JR
66132008-12-17 Jason Rumney <jasonr@gnu.org>
6614
6615 * w32font.c (w32font_has_char): Always return -1.
6616
a35dd56b
KH
66172008-12-16 Kenichi Handa <handa@m17n.org>
6618
6619 * font.c (font_open_entity): Fix previous change.
6620
0e3635c2
DN
66212008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
6622
6623 * process.c: Include <limits.h>.
6624
d4835507 66252008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
6626
6627 * font.c (font_update_drivers): Fix mistake in reconstructing the
6628 driver list.
6629
66302008-12-16 Chong Yidong <cyd@stupidchicken.com>
6631
6632 * font.c (font_clear_cache): Fix format of font cache data.
6633
e2cbc401
CY
66342008-12-15 Chong Yidong <cyd@stupidchicken.com>
6635
6636 * xftfont.c (xftfont_open): Free Xft font pattern if
6637 XftFontOpenPattern fails.
6638
6639 * xterm.c (x_free_frame_resources): Remove extraneous call to
6640 free_frame_faces.
6641
b131d535
CY
66422008-12-13 Chong Yidong <cyd@stupidchicken.com>
6643
6644 * xterm.c (x_delete_display): Move xim_close_dpy call to
6645 x_delete_terminal.
6646 (x_delete_terminal): Call xim_close_dpy.
6647
e6df5336
JR
66482008-12-13 Jason Rumney <jasonr@gnu.org>
6649
6650 * w32font.c (intern_font_name): New function.
6651 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
6652 (w32font_open_internal, Fx_select_font): Decode font name.
6653 (fill_in_logfont, list_all_matching_fonts): Encode font name.
6654
6655 * w32font.h (intern_font_name): Declare new function.
6656
6657 * w32uniscribe.c (add_opentype_font_name_to_list):
6658 Use intern_font_name.
6659
20d68145
CY
66602008-12-13 Chong Yidong <cyd@stupidchicken.com>
6661
9f2554de
CY
6662 * frame.c (Fdelete_frame): Call free_font_driver_list.
6663
3d9bec9a
CY
6664 * font.c (free_font_driver_list): Implement missing function.
6665
20d68145
CY
6666 * w32term.c (w32_term_init): Don't initialize the image cache
6667 here; it will be done in init_frame_faces.
6668
6669 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
6670 (struct x_display_info): Remove unused member null_pixel. New
6671 member xim_callback_data.
6672
6673 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
6674 (xim_initialize): Save pointer to callback function data.
6675 (xim_close_dpy): Free callback function data. Call XCloseIM,
6676 reverting 2008-11-04 change by David Smith.
6677 (x_term_init): Don't initialize the image cache here; it will be
6678 done in init_frame_faces. Remove ancient "null_pixel" cruft.
6679 (x_delete_display): Free x_dnd_atoms member.
6680
96f9306b
KH
66812008-12-13 Kenichi Handa <handa@m17n.org>
6682
6dec9044
JB
6683 * font.c (font_rescale_ratio): Moved from xfaces.c.
6684 Argument type changed. Handle a font-spec too.
96f9306b 6685 (font_score): Check Vface_font_rescale_alist.
6dec9044 6686 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
6687
6688 * xfaces.c (font_rescale_ratio): Moved to font.c.
6689
8d5b4964
CY
66902008-12-13 Chong Yidong <cyd@stupidchicken.com>
6691
6692 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
6693
e6df5336
JR
66942008-12-12 Jason Rumney <jasonr@gnu.org>
6695
6696 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
6697 Vwindow_system_version to the real w32 major version.
6698
97c6058a
DN
66992008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
6700
6701 * term.c (init_tty): Move setting the terminal name before the
6702 potential user: maybe_fatal.
6703
ec4e88d7
CY
67042008-12-11 Chong Yidong <cyd@stupidchicken.com>
6705
d4835507
JB
6706 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
6707 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 6708
b4233ec9
JR
67092008-12-11 Jason Rumney <jasonr@gnu.org>
6710
8ec71e23 6711 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 6712 SYMBOL_CHARSET. (Bug#547)
8ec71e23 6713
b4233ec9 6714 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 6715 size for surrogates. (Bug#1096, bug#872)
b4233ec9 6716
011a0143
JB
67172008-12-11 Juanma Barranquero <lekktu@gmail.com>
6718
6719 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
6720
3c309f34
JB
67212008-12-11 Juanma Barranquero <lekktu@gmail.com>
6722
6723 * process.c (Fsystem_process_attributes, syms_of_process):
6724 Fix typo in name of Ssystem_process_attributes.
6725 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
6726
fedc6ab5
JB
67272008-12-11 Juanma Barranquero <lekktu@gmail.com>
6728
6729 * syntax.c (Fmodify_syntax_entry): Doc fix.
6730
ba3de0e8
JB
67312008-12-10 Juanma Barranquero <lekktu@gmail.com>
6732
6733 * font.c (Ffont_spec): Move usage to end of docstring.
6734
174f1c74
JR
67352008-12-10 Jason Rumney <jasonr@gnu.org>
6736
6737 * w32font.c (Qcham): New symbol.
6738 (font_supported_scripts): Add cham, and comments for other new
6739 scripts in bitfield from OpenType spec.
9d32f818
JR
6740 (add_font_entity_to_list): Limit unicode-sip fonts to those that
6741 contain characters beyond the bmp.
174f1c74 6742
7b649478
KH
67432008-12-10 Kenichi Handa <handa@m17n.org>
6744
6745 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 6746 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
6747 Qunicode_sip.
6748
2133e2d1
JB
67492008-12-10 Juanma Barranquero <lekktu@gmail.com>
6750
6751 * coding.c (QCdefault_char): Rename from QCdefalut_char.
6752 (Fcoding_system_put): Use QCdefault_char.
6753 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
6754
9af886ee
CY
67552008-12-09 Chong Yidong <cyd@stupidchicken.com>
6756
74d819eb
CY
6757 * xftfont.c (syms_of_xftfont): Fix typo.
6758
4ccfa1c0 6759 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 6760
7c19d3ae
DN
67612008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
6762
6763 * emacs.c (main): Close daemon_pipe on exec.
6764
567826bb
CY
67652008-12-08 Chong Yidong <cyd@stupidchicken.com>
6766
6767 * termchar.h (struct tty): New members termcap_term_buffer and
6768 termcap_strings_buffer.
6769
6770 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 6771 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
6772 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
6773 All callers changed.
6774 (init_tty): Store termcap data and string buffers in new struct
6775 tty members termcap_term_buffer and termcap_strings_buffer.
6776 (delete_tty): Free them.
4ccfa1c0 6777 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 6778
aa96c42b
SZ
67792008-12-07 Seiji Zenitani <zenitani@mac.com>
6780
6781 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 6782 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 6783
b7e1d896
CY
67842008-12-06 Chong Yidong <cyd@stupidchicken.com>
6785
6786 * coding.c (make_conversion_work_buffer): Disable buffer
6787 modification hooks in the work buffer.
6788
b5ec91a5
EZ
67892008-12-05 Eli Zaretskii <eliz@gnu.org>
6790
6791 * process.c (procfs_system_process_attributes): If `nread' has a
6792 negative value, assign zero to it.
6793
a5d2a52b
CY
67942008-12-05 Chong Yidong <cyd@stupidchicken.com>
6795
68c5540b 6796 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 6797
7bf1bb21
KH
67982008-12-05 Kenichi Handa <handa@m17n.org>
6799
6800 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
6801 second character is a combining character.
6802
2fdc7d00
EZ
68032008-12-05 Eli Zaretskii <eliz@gnu.org>
6804
6805 * process.c (procfs_system_process_attributes): Don't use cmd,
6806 cmdsize, and q without initializing them first.
6807
bf6bfba8
JR
68082008-12-04 Jason Rumney <jasonr@gnu.org>
6809
6810 * w32font.c (w32font_draw): Initialize orig_clip before getting
6811 it, and delete it when finished.
6812
a3b1a468
DN
68132008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
6814
6815 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
6816 case when running as a daemon before detaching.
6817
8b8be8eb
JB
68182008-12-03 Juanma Barranquero <lekktu@gmail.com>
6819
805f2638 6820 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 6821
b1bde622
KH
68222008-12-03 Kenichi Handa <handa@m17n.org>
6823
e500c47d
KH
6824 * font.c (font_at): Set `multibyte' at first.
6825
ca516334
KH
6826 * coding.c (decode_coding_charset): Check type of an element of
6827 vector VALIDS.
7bf1bb21 6828 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 6829
4ccfa1c0 6830 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
6831 (font_for_char): Likewise.
6832
1e5ecd37
CY
68332008-12-03 Chong Yidong <cyd@stupidchicken.com>
6834
d5b01609 6835 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
6836 (font_update_lface): Handle fonts with corrupted size specs,
6837 i.e. non-int and non-float.
d5b01609 6838
11e3a6e4 6839 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 6840 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 6841 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 6842
ab06788b
CY
6843 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
6844
1e5ecd37 6845 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 6846 underline_minimum_offset for underline position.
1e5ecd37 6847
63c125ab
DN
68482008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
6849
6850 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
6851
6852 * character.c (c_string_width): Specify the type for LEN.
6853
3a8406e1
KH
68542008-12-03 Kenichi Handa <handa@m17n.org>
6855
4ccfa1c0 6856 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 6857 (decode_coding_utf_8): Likewise.
4ccfa1c0 6858 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 6859 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 6860
651df7d9
CY
68612008-12-02 Chong Yidong <cyd@stupidchicken.com>
6862
6863 * keyboard.c (make_lispy_position): Only use PT if the selected
6864 window is current.
6865
1f625c6c
AS
68662008-12-02 Andreas Schwab <schwab@suse.de>
6867
f7741ce9
AS
6868 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
6869
1f625c6c
AS
6870 * doprnt.c (doprnt1): Fix size of charbuf.
6871
92bc2678
CY
68722008-12-02 Chong Yidong <cyd@stupidchicken.com>
6873
6874 * keyboard.c (timer_check): Revert last change.
6875
93b9e8cc
JB
68762008-12-02 Juanma Barranquero <lekktu@gmail.com>
6877
6878 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
6879
fd7a37d5
JB
68802008-12-01 Juanma Barranquero <lekktu@gmail.com>
6881
6882 * makefile.w32-in: Update dependencies.
6883 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
6884
c115043b
AS
68852008-12-01 Andreas Schwab <schwab@suse.de>
6886
6887 * font.c (register_font_driver): Use xmalloc.
6888 (font_put_frame_data): Likewise.
6889
f5668d2a
CY
68902008-12-01 Chong Yidong <cyd@stupidchicken.com>
6891
860d96be
CY
6892 * xfaces.c (realize_x_face): Make abort condition clearer.
6893
f5668d2a
CY
6894 * gtkutil.c (update_frame_tool_bar): Initialize variable.
6895
379c17e7
CY
68962008-11-30 Chong Yidong <cyd@stupidchicken.com>
6897
6898 * keyboard.c (timer_check): After a timer runs, ensure that the
6899 selected window's buffer is current.
6900
35f36d65
JB
69012008-11-30 Juanma Barranquero <lekktu@gmail.com>
6902
f952c61c
JB
6903 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
6904 It was accidentally restored by the Unicode merge.
6905
35f36d65
JB
6906 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
6907
b23077df
JB
69082008-11-29 Juanma Barranquero <lekktu@gmail.com>
6909
6910 * w32proc.c: Include "coding.h".
6911 (Fw32_short_file_name): Encode filename passed to Windows API.
6912 (Fw32_long_file_name): Encode filename passed to Windows API and
6913 decode back the result. (Bug#1433)
6914
b8ebe9dd
KH
69152008-11-29 Kenichi Handa <handa@m17n.org>
6916
8cc53f96
KH
6917 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
6918 not before accessing it.
6919
b8ebe9dd
KH
6920 * charset.c (Fdefine_charset_internal): After calculating
6921 min_char, max_char, and fastmap, copy the charset structure again.
6922 (encode_char): Fix the previous change.
6923
59bc82c0
SZ
69242008-11-28 Seiji Zenitani <zenitani@mac.com>
6925
6926 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
6927
6928 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
6929
6930 * nsterm.m (x_set_frame_alpha): New function.
6931
32247e3d
EZ
69322008-11-27 Eli Zaretskii <eliz@gnu.org>
6933
6934 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
6935
b003e5ff
JB
69362008-11-27 Juanma Barranquero <lekktu@gmail.com>
6937
6938 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
6939 pointer to check_face_name.
6940
708550f5
KH
69412008-11-27 Kenichi Handa <handa@m17n.org>
6942
6943 * category.h (SET_CATEGORY_SET): Call set_category_set.
6944 (set_category_set): Extern it.
6945
6946 * category.c (hash_get_category_set): New function.
6947 (Fmodify_category_entry): Adjusted for the change of
6948 char_table_ref_and_range. Call hash_get_category_set to get a
6949 category set to store in the table.
6950
6951 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
6952 Funify_charset.
6953
2ae37cf0 6954 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
6955 (DECODE_CHAR): Check if the decoder vector is ready.
6956 (ENCODE_CHAR): Check if the encoder char-table is ready.
6957 (maybe_unify_char): Extern it.
6958
6959 * charset.c (Vchar_unified_charset_table): Delete it.
6960 (inhibit_load_charset_map): New variable.
6961 (temp_charset_work): New variable.
6962 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
6963 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
6964 New macros.
6965 (load_charset_map): Meaning of control_flag changed. If
6966 inhibit_load_charset_map is nonzero, setup a table in
6967 temp_charset_work.
6968 (load_charset): New argument control_flag.
6969 (map_charset_for_dump): New function.
6970 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
6971 map_charset_for_dump.
6972 (Fdefine_charset_internal): If the charset method is MAP, load
6973 mapping tables by calling load_charset.
6974 (Funify_charset): Don't load a mapping table but directly set
6975 Vchar_unify_table.
6976 (maybe_unify_char): New function.
6977 (decode_char): Don't handle the deleted method MAP_DEFERRED.
6978 Handle the case of inhibit_load_charset_map being nonzero.
6979 (encode_char): Don't handle the deleted method MAP_DEFERRED.
6980 Handle the case of inhibit_load_charset_map being nonzero.
6981 (Fclear_charset_maps): Just free temp_charset_work.
6982 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
6983 variable.
6984
6985 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
6986 change of char_table_ref_and_range.
6987 (char_table_ref_and_range): Change the meaning of argument FROM
6988 and TO. Now the caller must provide initial values for *FROM
6989 and *TO.
6990
6991 * fontset.c (fontset_add): Adjusted for the change of
6992 char_table_ref_and_range.
6993 (fontset_get_font_group): Likewise.
6994 (Ffontset_info): Likewise.
6995
6996 * keymap.c (describe_vector): Adjusted for the change of
6997 char_table_ref_and_range. For char-table, put boundary between
6998 non-ASCII and 8-bit characters.
6999
7000 * print.c (print_object): For bool-vector, delete unnecessary
7001 check of ASCII_BYTE_P.
7002
9196133b
JR
70032008-11-26 Jason Rumney <jasonr@gnu.org>
7004
7005 * w32font.c (w32font_open_internal): Don't include external
9acef61c 7006 leading in font height. (Bug#879)
9196133b 7007
9f688acf
GM
70082008-11-26 Glenn Morris <rgm@gnu.org>
7009
7010 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
7011 redefinition with ifdef. (Bug#1383)
7012
90d19aff
AR
70132008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7014
7015 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
7016
4ccfa1c0 70172008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
7018
7019 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
7020 New EmacsView methods.
7021 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
7022 Fixes bug #1048,1357,1414.
7023
70242008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7025
7026 Fix bug #1362.
7027 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
7028 is not an indexed color.
7029 * nsterm.m (free_indexed_color): Add argument checking.
7030 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
7031
e7d5ecb3
CY
70322008-11-24 Chong Yidong <cyd@stupidchicken.com>
7033
7034 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
7035 Document confirm-after-completion value for
7036 minibuffer-completion-confirm.
7037
c285743c
JR
70382008-11-24 Jason Rumney <jasonr@gnu.org>
7039
7040 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
7041 warning.
7042
b0857706
JR
70432008-11-23 Jason Rumney <jasonr@gnu.org>
7044
7045 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
7046 restored before returning.
7047
7048 * w32font.c (check_face_name): New function.
7049 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 7050 fonts. (Bug#642)
b0857706 7051
ee50ff07
MR
70522008-11-22 Martin Rudalics <rudalics@gmx.at>
7053
7054 * buffer.c (Fswitch_to_buffer): Reword and mention new option
7055 confirm-nonexistent-file-or-buffer in doc-string.
7056
b8ff72fa
SM
70572008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
7058
7059 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
7060 Fix copy/paste typo. Add checks.
7061
cee53ed4
KH
70622008-11-21 Kenichi Handa <handa@m17n.org>
7063
7064 * coding.c (detect_coding_iso_2022): Reject invalid composition
7065 sequence.
7066 (DECODE_COMPOSITION_START): If the current source is the last
7067 block, and the current composition doesn't end, regard this
7068 sequence as invalid.
7069 (decode_coding_iso_2022): Handle invalid composition sequence.
7070
f6ef1e65
MR
70712008-11-20 Martin Rudalics <rudalics@gmx.at>
7072
7073 * window.c (coordinates_in_window): Don't return
7074 ON_VERTICAL_BORDER for the rightmost position of a mode/header
7075 line when the window is not the rightmost one. (Bug#1372)
7076
e08b1705
MR
70772008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
7078
7079 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
7080
ad98e89f
EZ
70812008-11-15 Eli Zaretskii <eliz@gnu.org>
7082
7083 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
7084 and bright_bg if noninteractive is non-zero.
7085
fb098a4b
CY
70862008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7087
7088 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
7089 x_draw_glyph_string_background.
7090
7091 * w32term.c (x_draw_glyph_string): Likewise.
7092
ce952b6e
CY
70932008-11-15 Chong Yidong <cyd@stupidchicken.com>
7094
7095 * xterm.c (x_draw_glyph_string): Stop drawing the background of
7096 the next glyph string once past the overhang width.
7097
7098 * nsterm.m (ns_draw_glyph_string): Likewise.
7099
7100 * w32term.c (x_draw_glyph_string): Likewise.
7101
26ea7079
CY
71022008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
7103
7104 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
7105 double file close.
7106
1c33c906
MR
71072008-11-14 Martin Rudalics <rudalics@gmx.at>
7108
7109 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
7110 dedicated status of window before attempting to display another
7111 buffer in it.
7112
8fc29035
JB
71132008-11-14 Juanma Barranquero <lekktu@gmail.com>
7114
7115 * msdos.c (Fmsdos_long_file_names):
7116 (syms_of_msdos) <dos-unsupported-char-glyph>:
7117 * dosfns.c (Fint86): Fix typos in docstrings.
7118
55fb4286
EZ
71192008-11-14 Eli Zaretskii <eliz@gnu.org>
7120
7121 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
7122
3fda0315
KY
71232008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
7124
7125 * puresize.h (BASE_PURESIZE): Increase to 1260000.
7126
7e849c17
CY
71272008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
7128
7129 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
7130
7131 * frame.h: Negative alpha means "don't touch".
7132
7133 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
7134
7135 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
7136
b9fd67bd
DN
71372008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
7138
7139 * hftctl.c:
7140 * chpdef.h:
7141 * acldef.h: Remove files used only for systems no longer supported.
7142
7143 * Makefile.in: Fix .o alphabetical ordering.
7144 (hftctl.o): Remove dependency, file removed.
7145 (keymap.o, print.o): Depend on charset.h.
7146
d5998e03
KH
71472008-11-10 Kenichi Handa <handa@m17n.org>
7148
2ae37cf0 7149 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 7150
be70e183
CY
71512008-11-08 Chong Yidong <cyd@stupidchicken.com>
7152
7153 * dired.c (file_name_completion): If completion_ignore_case is
7154 enabled, ignore case when checking completion-regexp-list.
7155
7cf94eac
EZ
71562008-11-08 Eli Zaretskii <eliz@gnu.org>
7157
7158 * vm-limit.c (get_lim_data): Fix last change.
7159
ee107a89
KH
71602008-11-08 Kenichi Handa <handa@m17n.org>
7161
7162 * character.c (Fget_byte): New function.
7163 (syms_of_character): Defsubr Fget_byte.
7164
5fd15622
CY
71652008-11-07 Chong Yidong <cyd@stupidchicken.com>
7166
7167 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
7168 cursor position is valid after scrolling.
7169
13d62fad
JB
71702008-11-06 Juanma Barranquero <lekktu@gmail.com>
7171
7172 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
7173
a1dd2936
GM
71742008-11-06 Glenn Morris <rgm@gnu.org>
7175
7176 * xterm.c (handle_one_xevent): Don't let popup menus cause
7177 mouse-autoselect-window related window switching. (Bug#1261)
7178
860cd236
CY
71792008-11-04 David Smith <davidsmith@acm.org> (tiny change)
7180
7181 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
7182
653a3150
AS
71832008-11-04 Andreas Schwab <schwab@suse.de>
7184
7185 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
7186
870f5cac
CY
71872008-11-03 Chong Yidong <cyd@stupidchicken.com>
7188
7189 * xfns.c (Fx_wm_set_size_hint): New function.
7190
1e02f3cb
MR
71912008-11-03 Martin Rudalics <rudalics@gmx.at>
7192
7193 * textprop.c (Fprevious_single_char_property_change): Return 0
7194 when there's no change in a string. (Bug#1301)
7195
e630dfc6
MR
71962008-11-02 Martin Rudalics <rudalics@gmx.at>
7197
7198 * frame.c (do_switch_frame): New argument NORECORD passed to
7199 Fselect_window.
7200 (Fselect_frame): New argument NORECORD passed to
7201 do_switch_frame.
7202 (Fset_frame_selected_window): New argument NORECORD passed to
7203 Fselect_frame.
7204 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
7205 in call of do_switch_frame.
7206 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
7207 Handle NORECORD argument in call of Fselect_frame.
7208 * lisp.h (do_switch_frame, Fselect_frame)
7209 (Fset_frame_selected_window): Adjust declarations.
7210 * window.c (select_frame_norecord): New function.
7211 (run_window_configuration_change_hook): Use it and call
7212 Fselect_frame with NORECORD set.
7213 (Fselect_window): Pass NORECORD to Fselect_frame.
7214 (Fset_window_configuration): Handle NORECORD argument in call of
7215 do_switch_frame.
7216 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
7217 Fset_frame_selected_window.
7218 * keyboard.c (command_loop_1): Handle NORECORD in call of
7219 Fselect_frame (currently ifdefd).
7220
9020b223
GM
72212008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
7222
7223 * emacs.c (USAGE2): Untabify.
7224
793ffee8
SM
72252008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
7226
7227 * composite.c (fill_gstring_header): Fix copy/paste typo.
7228
ab6d1131
MR
72292008-10-31 Martin Rudalics <rudalics@gmx.at>
7230
7231 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
7232 (Fother_window): Rename argument and rewrite doc-string.
7233 (select_window_norecord): Fix return value. (Bug#1276)
7234
601a9cf1
JB
72352008-10-30 Juanma Barranquero <lekktu@gmail.com>
7236
7237 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
7238 new frames overriding foreground for tooltips. Based on similar patch
7239 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
7240
813b0652
CY
72412008-10-29 Chong Yidong <cyd@stupidchicken.com>
7242
7243 * emacs.c (Fdaemon_initialized): Initialize nfd.
7244
4414f58f
MR
72452008-10-29 Martin Rudalics <rudalics@gmx.at>
7246
7247 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
7248 (Fwindow_text_height): Clarify doc-strings.
7249 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
7250 doc-string of window-scroll-functions.
7251
ecdcaa09
RS
72522008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
7253
7254 * category.c (syms_of_category): Fix typo in docstring.
7255
23fe745a
JB
72562008-10-28 Juanma Barranquero <lekktu@gmail.com>
7257
7258 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
7259 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
7260 Fix typos in docstrings.
7261
ff808935
DN
72622008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
7263
7264 * emacs.c (daemon_pipe): Make non-static.
7265 (IS_DAEMON): Move definition ...
7266 * lisp.h (IS_DAEMON): ... here.
7267 (daemon_pipe): Declare.
7268 (is_daemon): Remove.
7269 * dispnew.c (init_display): Use IS_DAEMON.
7270
fc012771
SM
72712008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
7272
7273 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
7274 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
7275
7276 * emacs.c (is_daemon): Remove.
7277 (main): Don't set is_daemon.
7278 (IS_DAEMON): New macro.
7279 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 7280 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
7281 parent exits.
7282 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
7283
d8bdbe6f
CY
72842008-10-27 Chong Yidong <cyd@stupidchicken.com>
7285
d1a072bf
CY
7286 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
7287 over-sized glyph, draw it with the default glyph width.
7288
e2e325aa
CY
7289 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
7290 glyph, draw it with the default glyph width.
7291
7292 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
7293 glyph, draw it with the default glyph width.
7294
d8bdbe6f
CY
7295 * xdisp.c (try_scrolling): When computing the distance from the
7296 scroll margin to PT, try moving some distance past the window
7297 bottom before giving up.
7298
7bfac547
MR
72992008-10-27 Martin Rudalics <rudalics@gmx.at>
7300
7301 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
7302 (Fset_window_buffer): Explain in doc-string that a window can be
7303 "strongly" dedicated to its buffer.
7304
4ff029f6
DN
73052008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
7306
7307 * emacs.c (daemon_name): New variable.
7308 (main): Deal with --daemon=SERVER_NAME.
7309 (Fdaemonp): Return a name if one was passed to --daemon.
7310
5790ef40
DN
73112008-10-26 Romain Francoise <romain@orebokech.com>
7312
f9bd0df9 7313 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
7314 (main): Create a pipe before forking, make the parent exit only after
7315 the child has closed its end of the pipe. Move closing the
7316 descriptors ...
7317 (Fdaemon_initialized): ... here. New function.
7318
f5385255
SM
73192008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
7320
4d632321
SM
7321 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
7322 the previous unoptimized table.
7323
f5385255
SM
7324 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
7325 the distinction between non-nil and non-t value of `dedicated'.
7326
6c56a0f3
CY
73272008-10-25 Chong Yidong <cyd@stupidchicken.com>
7328
7329 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 7330 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 7331
fec89261
MR
73322008-10-25 Martin Rudalics <rudalics@gmx.at>
7333
7334 * window.c (Fget_buffer_window, Fdelete_windows_on)
7335 (Freplace_buffer_in_windows): Make buffer argument optional and
7336 rename to buffer_or_name.
7337
34fcddd0
CY
73382008-10-24 Chong Yidong <cyd@stupidchicken.com>
7339
f5385255
SM
7340 * xdisp.c (handle_single_display_spec, handle_display_prop):
7341 Undo 2005-05-16 change.
34fcddd0
CY
7342 (handle_stop): Pop iterator if it's loaded with an empty string.
7343 (get_overlay_strings_1): Don't save iterator if it's loaded with
7344 an empty string (bug#1201).
7345
064766f2
KH
73462008-10-24 Kenichi Handa <handa@m17n.org>
7347
7348 * ftfont.c (ftfont_otf_features): Fix previous change.
7349 (ftfont_otf_capability): Check FeatureList.FeatureCount before
7350 calling ftfont_otf_features.
7351
f9bd0df9 73522008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
7353
7354 * font.c (font_match_p): Fix for the case that a vector of
7355 characters is in script-representative-chars.
7356
1dae9197
MA
73572008-10-24 Michael Albinus <michael.albinus@gmx.de>
7358
7359 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 7360 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
7361 (xd_read_queued_messages): Catch Qdbus_error from the macros.
7362 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 7363 macro. (Bug#1186)
1dae9197 7364
f9bd0df9 73652008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
7366
7367 * s/sol2-10.h: New file.
7368
878a4584
JB
73692008-10-23 Juanma Barranquero <lekktu@gmail.com>
7370
7371 * xdisp.c (fill_glyph_string): Fix typo in source (though the
7372 poor beast has survived 9+ years and the jump from xterm.c!).
7373
cd265ca6
MR
73742008-10-23 Martin Rudalics <rudalics@gmx.at>
7375
7376 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
7377 Reword doc-string.
f5385255 7378 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 7379
472a4dc9
JB
73802008-10-23 Juanma Barranquero <lekktu@gmail.com>
7381
7382 * character.c (syms_of_character) <script-representative-chars>:
7383 <unicode-category-table>: Doc fixes.
7384
159bd5a2
NF
73852008-10-23 Noah Friedman <friedman@splode.com>
7386
7387 * coding.c (make_conversion_work_buffer): Check that
7388 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
7389 Fget_buffer_create.
7390
49f9c344
KH
73912008-10-23 Kenichi Handa <handa@m17n.org>
7392
7393 * font.c (font_add_log): Check the values of extra properties.
7394
12bb3111
MR
73952008-10-22 Martin Rudalics <rudalics@gmx.at>
7396
7397 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
7398 Reword doc-string.
7399 (Fset_window_parameter): Use NILP.
7400 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 7401 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 7402
bbeb4e99
JB
74032008-10-22 Juanma Barranquero <lekktu@gmail.com>
7404
7405 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
7406
74072008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
7408
7409 * nsfns.m (ns_appkit_version): New function.
7410 (x-server-version): Use it.
7411 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
7412 (x-server-vendor): Don't check_ns().
7413
7414 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
7415
a9b555d3
JB
74162008-10-22 Juanma Barranquero <lekktu@gmail.com>
7417
7418 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
7419 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
7420
4626499f
KH
74212008-10-22 Kenichi Handa <handa@m17n.org>
7422
e3681952
KH
7423 * syntax.c (scan_words): Call word_boundary_p instead of comparing
7424 scripts.
7425
4626499f
KH
7426 * category.c (word_boundary_p): Check scripts instead of charset.
7427 Handle nil value in word-separating-categories and
7428 word-combining-categories.
7429 (syms_of_category): Fix docstrings of word-separating-categories
7430 and word-combining-categories.
7431
1560f91a
EZ
74322008-10-21 Eli Zaretskii <eliz@gnu.org>
7433
7434 * coding.c (Fencode_coding_region, Fdecode_coding_region)
7435 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
7436
f4668441
MR
74372008-10-21 Martin Rudalics <rudalics@gmx.at>
7438
7439 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
7440 Rename arg "buffer" to "buffer_or_name".
7441 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
7442 it optional.
7443 (no_switch_window): Remove since the return value is not used.
a9b555d3 7444 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
7445 Consider window as dedicated when Fwindow_dedicated_p returns a
7446 non-nil value.
7447 * lisp.h: Remove prototype for no_switch_window.
7448
fd75ddb2
JD
74492008-10-21 Jan Djärv <jan.h.d@swipnet.se>
7450
7451 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 7452 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 7453
07295713
KH
74542008-10-21 Kenichi Handa <handa@m17n.org>
7455
7456 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
7457 check Vlatin_extra_code_table.
7458
712adc82
EZ
74592008-10-20 Eli Zaretskii <eliz@gnu.org>
7460
7461 * fileio.c (Fset_file_modes): Doc fix.
7462
f549eb0b
MA
74632008-10-19 Michael Albinus <michael.albinus@gmx.de>
7464
7465 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
7466 in arrays.
7467
aac0c6e3
MR
74682008-10-19 Martin Rudalics <rudalics@gmx.at>
7469
7470 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
7471 Mention kill-buffer in doc-string.
7472 (Fset_window_buffer): Reinsert tem check removed in last commit.
7473 (Fenlarge_window, Fshrink_window): Have argument names and
7474 doc-string follow Elisp manual more closely.
7475
74762008-10-18 Eli Zaretskii <eliz@gnu.org>
7477
7478 * fileio.c (Fset_file_modes): Doc fix.
7479
74802008-10-18 Martin Rudalics <rudalics@gmx.at>
7481
7482 * window.c (Fwindow_width, Fset_window_start)
7483 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
7484 (Fdelete_windows_on, Freplace_buffer_in_windows):
7485 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
7486 (Fwindow_dedicated_p): Make window argument optional.
7487 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
7488 (Fset_window_buffer): Respect any non-nil dedicated value for
7489 window. Rename "buffer" argument to "buffer_or_name".
7490
74912008-10-18 Ulrich Mueller <ulm@gentoo.org>
7492
7493 * m/sh3.h: New file, machine description for SuperH.
7494
74952008-10-17 Martin Rudalics <rudalics@gmx.at>
7496
7497 * window.c (Fsplit_window): Rename arg horflag to horizontal.
7498
74992008-10-17 Kenichi Handa <handa@m17n.org>
7500
7501 * ftfont.c (ftfont_otf_features): Fix indexing
7502 gsub_gpos->FeatureList.Feature. Check the validity of indices.
7503
75042008-10-16 Magnus Henoch <mange@freemail.hu>
7505
7506 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
7507 (Fdbus_call_method_asynchronously): Ditto.
7508 This change makes C-h f display the argument list.
7509
75102008-10-16 Chong Yidong <cyd@stupidchicken.com>
7511
7512 * fileio.c (Fexpand_file_name): Doc fix.
7513
7514 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
7515 of :foreground and :background equivalent to unspecified (20.x
7516 compatibility).
7517
75182008-10-15 Eli Zaretskii <eliz@gnu.org>
7519
7520 * buffer.c (syms_of_buffer): Doc fix.
7521
75222008-10-14 Kenichi Handa <handa@m17n.org>
7523
7524 * font.c (font_clear_prop): When clearing font width, clear the
7525 average width field too.
7526
75272008-10-12 Andreas Schwab <schwab@suse.de>
7528
7529 * ftfont.c (ftfont_shape_by_flt): Make static.
7530 * ftfont.h (ftfont_shape_by_flt): Don't declare.
7531
7532 * font.c: Don't include <m17n-flt.h>.
7533
75342008-10-10 Eli Zaretskii <eliz@gnu.org>
7535
7536 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
7537
75382008-10-09 Eli Zaretskii <eliz@gnu.org>
7539
7540 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
7541 away code.
7542
75432008-10-09 Chong Yidong <cyd@stupidchicken.com>
7544
7545 * dispnew.c (update_text_area): Avoid looping due to large glyph
7546 overhangs (bug#1070).
7547
75482008-10-09 Kenichi Handa <handa@m17n.org>
7549
7550 * fontset.c (face_for_char): If face->fontset is negative, just
7551 return ascii_face.
7552
f5385255
SM
7553 * font.c (font_delete_unmatched): Fix previous change.
7554 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
7555
75562008-10-09 Martin Rudalics <rudalics@gmx.at>
7557
7558 * frame.c (Fraise_frame): On text-only terminals select frame in
7559 order to make it visible. (Bug#1061)
7560
75612008-10-08 Chong Yidong <cyd@stupidchicken.com>
7562
7563 * fontset.c (fontset_find_font): Check frame validity.
7564
75652008-10-07 Chong Yidong <cyd@stupidchicken.com>
7566
a9b555d3 7567 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
7568 (xg_display_close): Allow Emacs to close all displays (bug#985).
7569
75702008-10-06 Andreas Schwab <schwab@suse.de>
7571
f5385255 7572 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
7573
75742008-10-06 Chong Yidong <cyd@stupidchicken.com>
7575
f5385255 7576 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 7577
a9b555d3 7578 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
7579
7580 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
7581 during initialization.
7582
75832008-10-04 Eli Zaretskii <eliz@gnu.org>
7584
7585 * xdisp.c (redisplay_internal): If frame switched, redisplay the
7586 whole thing on MSDOS frames as well as on a TTY.
7587
7588 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
7589 well as for TTY.
7590 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
7591 well as on a TTY.
7592
7593 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
7594 as well as for TTY.
7595
7596 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
7597
7598 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
7599 MSDOS frames as well.
7600
76012008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
7602
7603 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
7604 correct arguments.
b71ac3dd 7605 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
7606
76072008-10-03 Glenn Morris <rgm@gnu.org>
7608
7609 * emacs.c (USAGE1): Add --daemon.
7610
76112008-10-02 Eli Zaretskii <eliz@gnu.org>
7612
7613 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
7614 100, so it's in percents as advertised.
7615
76162008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
7617
7618 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
7619 (ns_output.current_cursor, ns_output.desired_cursor)
7620 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
7621 (FRAME_NEW_CURSOR_COLOR): Remove.
7622
7623 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 7624 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
7625 enumeration (HOLLOW_BOX_CURSOR, etc.).
7626
7627 * nsterm.m (ns_frame_rehighlight): Remove commented code.
7628 (draw_window_cursor): Simplify code.
f5385255
SM
7629 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
7630 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 7631 updates manually.
a9b555d3
JB
7632 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
7633 Use core Emacs cursor types.
aac0c6e3 7634
b8ff72fa 7635 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
7636
76372008-10-02 Martin Rudalics <rudalics@gmx.at>
7638
7639 * process.c (Faccept_process_output): Fix doc-string.
7640
76412008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
7642
7643 * gmalloc.c (__sbrk): Also define for uClibc.
7644
7645 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
7646 for uClibc.
7647
76482008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7649
7650 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
7651 styles.
7652 (nsfont_open): Reenable the cache.
7653
76542008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7655
7656 * font.c (font_matching_entity): Reflect ATTRS in font selection.
7657 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
7658
76592008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
7660
7661 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
7662 a suspended terminal.
7663
76642008-09-30 Michael Albinus <michael.albinus@gmx.de>
7665
7666 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
7667
76682008-09-30 Eli Zaretskii <eliz@gnu.org>
7669
7670 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
7671
76722008-09-30 Chong Yidong <cyd@stupidchicken.com>
7673
7674 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
7675 in a continued line coincides with a line beginning.
7676
76772008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
7678
7679 * nsfont.m (nsfont_trait_distance): Fix bug.
7680 (nsfont_list): Return a list rather than a vector (syncs with Handa
7681 changes of 2008-05-14).
7682 (nsfont_open): Improve logging.
7683
76842008-09-29 Andreas Schwab <schwab@suse.de>
7685
7686 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
7687
76882008-09-28 Martin Rudalics <rudalics@gmx.at>
7689
7690 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
7691 name as char-resolve-modifiers.
7692 Reported by: Markus Triska <markus.triska@gmx.at>
7693
76942008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
7695
7696 * dispnew.c (init_display): Return earlier when running as a daemon.
7697
76982008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7699
7700 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
7701
77022008-09-27 Eli Zaretskii <eliz@gnu.org>
7703
7704 * composite.c (Fcomposition_get_gstring)
7705 (Fcompose_region_internal, Fcompose_string_internal)
7706 (Ffind_composition_internal): Doc fix.
7707 (syms_of_composite) <compose-chars-after-function>: Doc fix.
7708 (syms_of_composite) <auto-composition-function>: Doc fix.
7709 (syms_of_composite) <composition-function-table>: Doc fix.
7710
77112008-09-25 Chong Yidong <cyd@stupidchicken.com>
7712
7713 * search.c (wordify): New argument for lax word-ends.
7714 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
7715
77162008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
7717
7718 * lisp.h (is_daemon): Declare.
7719 * dispnew.c (init_display): Do not try to initialize the terminal
7720 when running as a daemon.
7721
77222008-09-22 Chong Yidong <cyd@stupidchicken.com>
7723
7724 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
7725 x_display_pixel_height.
7726
77272008-09-22 Martin Rudalics <rudalics@gmx.at>
7728
7729 * undo.c (record_point): Don't call Fundo_boundary for first
7730 change. (Bug#731)
7731
77322008-09-22 Juanma Barranquero <lekktu@gmail.com>
7733
7734 * emacs.c (Fdaemonp): Doc fix.
7735
77362008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
7737
7738 * emacs.c (main): Place #ifdef in the proper place.
7739
77402008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
7741
7742 * emacs.c (standard_args): Add --daemon.
7743 (main): Disconnect from the terminal when --daemon is passed.
7744 (is_daemon): New variable.
7745 (Fdaemonp): New function.
7746 (syms_of_emacs): Defsubr it.
7747
77482008-09-20 Chong Yidong <cyd@stupidchicken.com>
7749
7750 * xdisp.c (get_next_display_element): Handle string display
7751 correctly when checking for the end of a box run.
7752
77532008-09-20 Glenn Morris <rgm@gnu.org>
7754
7755 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
7756 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
7757 (Frename_file): Avoid copying to trash if a rename involves
7758 a delete. (Bug#964).
7759
77602008-09-20 Eli Zaretskii <eliz@gnu.org>
7761
7762 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
7763 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
7764 frames as well as termcap frames.
7765 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
7766 get_named_tty.
7767
77682008-09-19 Eli Zaretskii <eliz@gnu.org>
7769
7770 * process.c (procfs_system_process_attributes): Fix cmdline in
7771 case /proc/PID/cmdline is empty.
7772
7773 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
7774 x_display_pixel_height.
7775
77762008-09-19 Juanma Barranquero <lekktu@gmail.com>
7777
7778 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
7779
7780 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
7781 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
7782
77832008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
7784
7785 * dispextern.h (struct it): Move line_wrap away from the middle of
7786 bitfields. Move voffset in struct iterator_stack_entry after the
7787 bitfields. Move tab_width near after another short.
7788
77892008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
7790
7791 * frame.h (struct frame): Move alpha from the middle of bitfields.
7792
7793 * window.h (struct window): Move frozen_window_start_p after the
7794 rest of the bitfields to reduce padding.
7795
77962008-09-18 Chong Yidong <cyd@stupidchicken.com>
7797
7798 * xterm.h (x_display_info): Remove `height' and `width' members.
7799
7800 * nsterm.h (ns_display_info): Remove `height' and `width' members.
7801
7802 * w32term.h (w32_display_info): Remove `height', `width',
7803 `height_in', and `width_in' members.
7804
b8ff72fa
SM
7805 * xterm.c (x_display_pixel_height, x_display_pixel_width):
7806 New functions.
aac0c6e3
MR
7807 (x_calc_absolute_position): Use them.
7808 (x_term_init): Omit removed `height' and `width' members.
7809
b8ff72fa
SM
7810 * w32term.c (x_display_pixel_height, x_display_pixel_width):
7811 New functions.
aac0c6e3
MR
7812 (w32_read_socket, x_calc_absolute_position): Use them.
7813 (w32_initialize_display_info, w32_term_init): Omit removed members
7814 of w32_display_info.
7815
b8ff72fa
SM
7816 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
7817 New functions.
7818 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 7819
b8ff72fa
SM
7820 * xterm.c (x_display_pixel_height, x_display_pixel_width):
7821 New functions.
aac0c6e3
MR
7822 (x_calc_absolute_position): Use them.
7823 (x_term_init): Omit removed `height' and `width' members.
7824
7825 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
7826 (compute_tip_xy):
7827 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
7828 * xmenu.c (menu_position_func): Use x_display_pixel_height and
7829 x_display_pixel_width.
7830
78312008-09-18 Kenichi Handa <handa@m17n.org>
7832
7833 * composite.c (fill_gstring_header): Don't check FROM and TO here.
7834 (composition_compute_stop_pos): Fix handling of static composition.
7835 (Fcomposition_get_gstring): Check FROM and TO at first.
7836
78372008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
7838
46e722a9 7839 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
7840 mixup (YAILOM).
7841
78422008-09-17 Chong Yidong <cyd@stupidchicken.com>
7843
7844 * indent.c (Fvertical_motion): Use position reported by iterator
7845 instead of PT for determining screen motion (bug#943).
7846
78472008-09-17 Romain Francoise <romain@orebokech.com>
7848
7849 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
7850
78512008-09-17 Kenichi Handa <handa@m17n.org>
7852
7853 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
7854
7855 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
7856 if necessary.
7857
78582008-09-16 Kenichi Handa <handa@m17n.org>
7859
7860 * coding.c (make_conversion_work_buffer): Avoid calling
7861 Fget_buffer_create if it is not necessary.
7862
78632008-09-15 Martin Rudalics <rudalics@gmx.at>
7864
7865 * window.c (Fselect_window): Don't update window_select_count and
7866 use_time when norecord is not nil.
7867
78682008-09-14 Kenichi Handa <handa@m17n.org>
7869
7870 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
7871 specpdl_ptr.
7872
78732008-09-12 Kenichi Handa <handa@m17n.org>
7874
7875 * indent.c (scan_for_column): Don't handle automatic composition
7876 if the current buffer is not associated with a window.
7877
7878 * composite.c (composition_reseat_it): If the current buffer is
7879 not associated with a window, ignore the automatic composition.
7880 (find_automatic_composition): Likewise.
7881
78822008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
7883
7884 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
7885 (Fgpm_mouse_stop): Use it.
7886 * termhooks.h (close_gpm): Declare.
7887 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
7888 connection if Gpm_GetEvent fails.
7889
7890 * window.c (set_window_buffer): Always preserve current-buffer.
7891
78922008-09-12 Glenn Morris <rgm@gnu.org>
7893
7894 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
7895
78962008-09-11 Glenn Morris <rgm@gnu.org>
7897
7898 * charset.c (charset-map-path): Doc fix.
7899
79002008-09-10 Kenichi Handa <handa@m17n.org>
7901
7902 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
7903
7904 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
7905 compose a grapheme cluster with the preceding base glyph.
7906
7907 * composite.c (composition_compute_stop_pos): Fix previous change.
7908 Reset cmp_it->id to -1 at first.
7909
79102008-09-10 Glenn Morris <rgm@gnu.org>
7911
7912 * Makefile.in (character.o, chartab.o): Fix config.h typo.
7913
79142008-09-09 Chong Yidong <cyd@stupidchicken.com>
7915
7916 * keyboard.c (read_key_sequence): Reapply translation maps when
7917 switching keyboards.
7918
79192008-09-09 Kenichi Handa <handa@m17n.org>
7920
7921 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
7922 characters.
7923
7924 * composite.c (FORWARD_CHAR): Fix calculation
7925 of (POSITION).pos_byte.
7926 (composition_compute_stop_pos): Limit the search of composition to
7927 at most 500 characters ahead. If we reach the limit or find a
7928 newline, set cmp_it->ch to -2 and return 0.
7929 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
7930
79312008-09-08 Kenichi Handa <handa@m17n.org>
7932
7933 * indent.c (Fvertical_motion): Be sure to set
7934 it_overshoot_expected if it.cmp_it.id is non-negative.
7935
79362008-09-07 Andreas Schwab <schwab@suse.de>
7937
7938 * callproc.c (Fcall_process): Don't hold references to string data
7939 across garbage collection. Move initialisation of new_argv down
7940 to avoid compiler bug.
7941
79422008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
7943
7944 * process.c (Fsystem_process_attributes): Doc fix.
7945
79462008-09-07 Chong Yidong <cyd@stupidchicken.com>
7947
7948 * callproc.c (Fcall_process): Canonicalize current directory name.
7949
7950 * xdisp.c (move_it_to): When moving by vpos, ensure that the
7951 iterator advances to the next line if the current line ends in a
7952 continued tab.
7953
79542008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
7955
7956 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
7957 member to point to cmp_from.
7958
7959 * xdisp.c: Doc fix for references to gidx data member.
7960
79612008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
7962
7963 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
7964
79652008-09-07 Kenichi Handa <handa@m17n.org>
7966
7967 * composite.c (FORWARD_CHAR): Check STOP after
7968 incrementing (POSITION).pos.
7969
79702008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
7971
7972 * process.c (Fsystem_process_attributes): Doc fix.
7973
79742008-09-06 Chong Yidong <cyd@stupidchicken.com>
7975
7976 * keyboard.c (Ftop_level): Doc fix.
7977
79782008-09-06 Eli Zaretskii <eliz@gnu.org>
7979
7980 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
7981 minibuffer, don't let lower part of menu invade the echo area.
7982
7983 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
7984 "char *q" to access menu text and advance through it. Revert the
7985 change that displayed ">" instead of ASCII character 0x10.
7986
79872008-09-05 Eli Zaretskii <eliz@gnu.org>
7988
7989 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
7990 toggle boxes and radio buttons on MS-DOS as well.
7991
79922008-09-05 Kenichi Handa <handa@m17n.org>
7993
7994 * composite.c (autocmp_chars): Check lookback count.
7995 (composition_compute_stop_pos): Set cmp_it->lookback.
7996 (composition_reseat_it): Check lookback count.
7997 (struct position_record): New struct.
7998 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
7999 (find_automatic_composition): New function.
8000 (composition_adjust_point): Use find_automatic_composition.
8001
8002 * dispextern.h (struct composition_it): New member lookback.
8003
80042008-09-02 Chong Yidong <cyd@stupidchicken.com>
8005
8006 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
8007 if moving by a single line.
8008
80092008-09-02 Andreas Schwab <schwab@suse.de>
8010
8011 * xterm.c (x_delete_display): Fix merge error.
8012
8013 * fileio.c (Fexpand_file_name): Remove unused variables.
8014
80152008-09-02 Eli Zaretskii <eliz@gnu.org>
8016
8017 * fileio.c (Fexpand_file_name): Copy argument `name' into local
8018 storage on all platforms, not just on DOS_NT.
8019
80202008-09-02 Jason Rumney <jasonr@gnu.org>
8021
b8ff72fa
SM
8022 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
8023 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
8024
80252008-09-01 Chong Yidong <cyd@stupidchicken.com>
8026
8027 * xfaces.c (Finternal_set_alternative_font_family_alist)
8028 (Finternal_set_alternative_font_registry_alist): Properly copy
8029 entire alist structure.
8030
80312008-09-01 Kenichi Handa <handa@m17n.org>
8032
d66c0241 8033 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 8034 representative chars of the script is a vector.
d66c0241
JB
8035 (ftfont_list): Handle the case where the representative chars of
8036 the script is a vector.
aac0c6e3
MR
8037
8038 * character.c (syms_of_character): Docstring of
8039 script-representative-chars fixed.
8040
80412008-08-31 Eli Zaretskii <eliz@gnu.org>
8042
8043 * msdos.c (BUILD_CHAR_GLYPH): New macro.
8044 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
8045 the menu. Allocate larger buffer for `text', to account for
8046 possible ^C characters.
8047
80482008-08-31 Martin Rudalics <rudalics@gmx.at>
8049
8050 * xdisp.c (prepare_menu_bars): Don't call
8051 Vwindow_size_change_functions with arg Qt.
8052
80532008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
8054
8055 * font.h (font_range):
8056 * fileio.c (report_file_error):
46e722a9
SM
8057 * composite.c (composition_update_it): Yet another int/Lisp_Object
8058 mixup (YAILOM).
aac0c6e3
MR
8059
80602008-08-30 Glenn Morris <rgm@gnu.org>
8061
8062 * data.c (Fmake_variable_frame_local): Doc fix.
8063
8064 * frame.c (Fmodify_frame_parameters): Doc fix.
8065
80662008-08-30 Eli Zaretskii <eliz@gnu.org>
8067
8068 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
8069 needed by GetTokenInformation.
8070 (w32_system_process_attributes): Check return values of all system
8071 APIs.
8072
8073 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
8074 only when the state changes.
8075 (IT_update_begin, IT_update_end): Add termscript trace.
8076
8077 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
8078 clipboard is unavailable. Set dst to NULL if it doesn't point to
8079 malloc'ed data.
8080 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
8081 passing random values to xfree.
8082
8083 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 8084 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
8085
80862008-08-29 Jason Rumney <jasonr@gnu.org>
8087
8088 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
8089
80902008-08-29 Eli Zaretskii <eliz@gnu.org>
8091
8092 * composite.c (fill_gstring_body): Avoid compiler warnings.
8093
8094 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
8095 LGLYPH_SET_CODE to avoid compiler warnings.
8096
2ae37cf0 8097 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
8098
8099 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
8100
8101 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
8102 LGLYPH_SET_CODE.
8103
81042008-08-29 Kenichi Handa <handa@m17n.org>
8105
8106 * fileio.c (report_file_error): Don't downcase the first character
8107 of errstring if it is still unibyte.
8108
81092008-08-29 Kenichi Handa <handa@m17n.org>
8110
8111 These changes are to re-implement the automatic composition so
8112 that it doesn't use text properties.
8113
8114 * Makefile.in (ftfont.o): Depend on composite.h.
8115 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
8116
8117 * character.h (Vunicode_category_table): Extern it.
8118
8119 * character.c (Vunicode_category_table): New variable.
8120 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
8121
8122 * chartab.c (optimize_sub_char_table): Perform more greedy
8123 optimization.
8124
b8ff72fa
SM
8125 * composite.h (enum composition_method):
8126 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
8127 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
8128 (Vcomposition_function_table): Extern it.
8129 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
8130 (composition_gstring_put_cache, composition_gstring_from_id)
8131 (composition_gstring_p, composition_gstring_width)
8132 (composition_compute_stop_pos, composition_reseat_it)
8133 (composition_update_it, composition_adjust_point): Extern them.
8134 (Fcomposition_get_gstring): EXFUN it.
8135
d66c0241 8136 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
8137 (Vcomposition_function_table)
8138 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
8139 (gstring_hash_table, gstring_work, gstring_work_headers):
8140 New variables.
aac0c6e3
MR
8141 (gstring_lookup_cache, composition_gstring_put_cache)
8142 (composition_gstring_from_id, composition_gstring_p)
8143 (composition_gstring_width, fill_gstring_header)
8144 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
8145 (composition_reseat_it, composition_update_it)
b8ff72fa 8146 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
8147 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
8148 and gstring_work_headers. DEFVAR_LISP composition-function-table.
8149 Defsubr compostion_get_gstring.
8150
8151 * dispextern.h (struct glyph): New union u.cmp. Delete the member
8152 cmp_id.
8153 (struct glyph_string): Delete the member gidx. New members
8154 cmp_id, cmp_from, and cmp_to.
8155 (enum it_method): Delete GET_FROM_COMPOSITION.
8156 (struct composition_it): New struct.
8157 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
8158 Delete c, len, cmp_id, cmp_len in u.comp.
8159
8160 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 8161 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 8162 (enum lglyph_indices): Likewise.
b8ff72fa 8163 (font_range): Adjust extern.
aac0c6e3
MR
8164 (font_fill_lglyph_metrics): Extern it.
8165
8166 * font.c (QCf): New variable.
8167 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
8168 (font_prepare_composition): Delete this function.
8169 (font_range): Type and arguments changed.
8170 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
8171 (font_fill_lglyph_metrics): New function.
b8ff72fa 8172 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 8173 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
8174 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
8175 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
8176
8177 * fontset.h (font_for_char): Extern it.
8178
8179 * fontset.c (font_for_char): New function.
8180
8181 * ftfont.c: Include composite.h.
8182 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 8183 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
8184
8185 * indent.c: Include composite.h and dispextern.h.
8186 (check_composition): Delete this function.
8187 (scan_for_column): Handle composition by
8188 composition_compute_stop_pos, composition_reseat_it, and
8189 composition_update_it.
8190 (compute_motion): Likewise.
8191 (Fvertical_motion): Fix checking of composition.
8192
8193 * keyboard.c (adjust_point_for_property): Check composition by
8194 composition_adjust_point.
8195
b8ff72fa 8196 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
8197 struct glyph_string.
8198
b8ff72fa
SM
8199 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
8200 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
8201 struct glyph.
8202 (produce_composite_glyph): Likewise.
8203
b8ff72fa
SM
8204 * w32term.c (x_draw_composite_glyph_string_foreground):
8205 Adjust for the change of struct glyph_string.
aac0c6e3
MR
8206 (x_draw_glyph_string): Likewise.
8207
8208 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
8209 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
8210
8211 * xdisp.c: Include font.h.
8212 (it_props): Delete the entry for Qauto_composed.
8213 (init_iterator): Initialize it->cmp_it.id to -1.
8214 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 8215 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
8216 (handle_auto_composed_prop): Delete it.
8217 (handle_composition_prop): Handle only static composition.
8218 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
8219 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 8220 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
8221 (pop_it): Likewise.
8222 (get_next_element): Delete next_element_from_composition.
8223 (CHAR_COMPOSED_P): New macro.
8224 (get_next_display_element): For automatic composition, get a face
8225 from the font in the glyph-string.
8226 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 8227 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
8228 (next_element_from_string): Check if the character at the current
8229 position is composed by CHAR_COMPOSED_P.
8230 (next_element_from_buffer): Likewise.
d66c0241
JB
8231 (next_element_from_composition): Adjust for the change of struct it.
8232 Update it->cmp_it.
b8ff72fa
SM
8233 (dump_glyph): Adjust for the change of struct glyph.
8234 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
8235 it and struct glyph. Don't handle automatic composition here.
8236 (fill_gstring_glyph_string): New function.
8237 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 8238 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
8239 (BUILD_GSTRING_GLYPH_STRING): New macro.
8240 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
8241 automatic composition.
b8ff72fa 8242 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 8243 struct glyph.
b8ff72fa 8244 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 8245
b8ff72fa 8246 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
8247 the change of struct glyph_string.
8248 (x_draw_glyph_string): Likewise.
8249
82502008-08-29 Glenn Morris <rgm@gnu.org>
8251
8252 * buffer.c (word-wrap): Doc fix.
8253 * xdisp.c (truncate-partial-width-windows): Doc fix.
8254 Increase default to 50.
8255
82562008-08-29 Chong Yidong <cyd@stupidchicken.com>
8257
8258 * xdisp.c (update_tool_bar_unwind): New function.
8259 (update_tool_bar): Temporarily set selected frame before building
8260 tool-bar items.
8261
82622008-08-28 Michael Albinus <michael.albinus@gmx.de>
8263
8264 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
8265 snprintf, respectively.
8266 (xd_append_arg): Convert strings with Fstring_make_unibyte.
8267
82682008-08-28 Chong Yidong <cyd@stupidchicken.com>
8269
8270 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
8271 LDFLAGS to GNUstep CC invocation.
8272
82732008-08-27 Chong Yidong <cyd@stupidchicken.com>
8274
8275 * indent.c (Fvertical_motion): Revert last change. Handle the
8276 general case where we are moving forward, and PT spans multiple
8277 screen lines.
8278
8279 * eval.c (find_handler_clause): Temporarily increase
8280 max-lisp-eval-depth while printing the backtrace buffer, to
8281 guarantee that help-mode code can run.
8282
82832008-08-27 Eli Zaretskii <eliz@gnu.org>
8284
8285 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
8286 colors under -rv.
8287 (IT_set_frame_parameters): Don't swap foreground and background
8288 colors if `(reverse . t)' is present in the frame properties.
8289 (internal_terminal_init): Call init_frame_faces only for the
8290 initial frame.
8291
82922008-08-27 Andreas Schwab <schwab@suse.de>
8293
8294 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
8295
82962008-08-27 Andreas Schwab <schwab@suse.de>
8297
8298 * search.c (search_buffer): Set char_base to zero only at the end.
8299
83002008-08-27 Kenichi Handa <handa@m17n.org>
8301
b8ff72fa 8302 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
8303
83042008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
8305
8306 * xterm.c (x_term_init): Temporarily hide the partially
8307 initialized terminal while calling vendor-specific-keysyms.
8308
83092008-08-26 Eli Zaretskii <eliz@gnu.org>
8310
8311 * msdos.c (internal_terminal_init): Most initializations done only
8312 once, especially initial_screen_colors[] and termscript open.
8313
83142008-08-26 Chong Yidong <cyd@stupidchicken.com>
8315
8316 * eval.c (Fcondition_case): Doc fix.
8317
8318 * widgetprv.h (EmacsFramePart): Change font member to the new font
8319 struct.
8320
8321 * widget.c: Include character.h and font.h for XSETFONT.
8322 (setup_frame_gcs): Compute X font id from font struct, just once.
8323
83242008-08-26 Eli Zaretskii <eliz@gnu.org>
8325
8326 * term.c (get_named_tty): Fix last change.
8327
83282008-08-26 Chong Yidong <cyd@stupidchicken.com>
8329
8330 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 8331 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
8332
83332008-08-25 Eli Zaretskii <eliz@gnu.org>
8334
8335 * frame.c (do_switch_frame): Mark previously displayed frame as
8336 obscured for FRAME_MSDOS_P frames as well.
8337
83382008-08-24 Eli Zaretskii <eliz@gnu.org>
8339
8340 * frame.c (make_terminal_frame): Initialize f->terminal,
8341 f->terminal->reference_count, and scroll bars on MS-DOS as well.
8342 Set the top frame to newly created frame.
8343 (Fmake_terminal_frame): Reuse the_only_display_info.
8344
8345 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
8346 estimating available memory.
8347
b97439ce 83482008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
8349
8350 * nsterm.m (ns_draw_window_cursor): Don't call
8351 NSDisableScreenUpdates and NSEnableScreenUpdates on
8352 non-NS_IMPL_COCOA systems.
8353
83542008-08-23 Andreas Schwab <schwab@suse.de>
8355
8356 * process.c (procfs_system_process_attributes): Fix use of
8357 uninitialized variables.
8358
83592008-08-23 Eli Zaretskii <eliz@gnu.org>
8360
8361 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
8362
8363 * dispnew.c (init_display): Remove MS-DOS specific conditions for
8364 calling tty-set-up-initial-frame-faces.
8365
b8ff72fa
SM
8366 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
8367 Allow MSDOS frames along with X frames.
aac0c6e3
MR
8368
8369 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
8370 addition to output_termcap.
8371
8372 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
8373
8374 * termchar.h (FRAME_TTY): Support output_msdos_raw.
8375 (struct tty_display_info) [MSDOS]: Add fields related to mouse
8376 highlight.
8377
8378 * process.c [!subprocesses]: Define QCname.
8379 (syms_of_process): Intern and staticpro it.
8380
8381 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
8382 Adjust for changes in encoding/decoding routines.
8383 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
8384 encode_coding and decode_coding.
8385
b8ff72fa 8386 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
8387
8388 * dosfns.c: Include frame.h before termhooks.h.
8389 (dos_cleanup): Use CURTTY ()->termscript instead of a global
8390 variable termscript.
8391
8392 * s/msdos.h (USER_FULL_NAME): Define.
8393 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
8394
8395 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
8396 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
8397 pw->pw_gecos.
8398
8399 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
8400 SELECTED_FRAME as additional (1st) argument.
8401 (tty_read_avail_input): Handle output_msdos_raw in
8402 addition to output_termcap.
8403
8404 * msdos.c: Include frame.h before termhooks.h.
8405 (mouse_on, mouse_off, mouse_moveto, mouse_init)
8406 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
8407 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
8408 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
8409 (IT_set_terminal_modes, IT_reset_terminal_modes)
8410 (IT_set_frame_parameters): Use tty->termscript instead of a global
8411 variable termscript.
8412 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
8413 global variable terminal_coding. Don't refer to
8414 Vnonascii_translation_table.
8415 (internal_terminal_init): Set Vwindow_system in current_kboard.
8416 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
8417 Announce date and time of session start, if termscript is open.
8418 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
8419 term.c:init_tty). Open termscript only of not already open.
8420 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
8421 here instead of dos_ttraw. Don't initialize display if this is an
8422 initial tty. Don't set FRAME_FONT.
8423 (Vwindow_system_version): Bump to 23.
8424 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
8425 is available, set up mouse_position_hook.
8426 (dos_ttraw, IT_set_terminal_modes): If called with initial
8427 terminal, do nothing.
8428 (IT_set_frame_parameters): Handle the Qtty_type frame
8429 parameter by calling internal_terminal_init.
8430 (dos_set_window_size, show_mouse_face)
8431 (clear_mouse_face, IT_note_mode_line_highlight)
8432 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
8433 (dos_rawgetc): Use tty_display_info instead of x_display_info.
8434 (initialize_msdos_display): New function.
8435 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
8436 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
8437 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
8438 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 8439 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
8440 (request_sigio, unrequest_sigio): Don't define, now defined on
8441 sysdep.c.
8442 (IT_write_glyphs): Rewrite to use encode_terminal_code.
8443
8444 * term.c [MSDOS]: Include msdos.h.
8445 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
8446 conditional to DOS_NT. Allow only one call to this function in a
8447 session. Don't allocate a new struct tty_display_info; instead,
8448 reuse the_only_display_info. Call get_tty_size to get screen
8449 dimensions. Call init_baud_rate to set bad_rate.
8450 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
8451 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 8452 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
8453 (get_tty_terminal, get_named_tty, Ftty_type)
8454 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
8455 output_termcap.
b8ff72fa
SM
8456 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
8457 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 8458 only when subprocesses are supported.
aac0c6e3
MR
8459
8460 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
8461 f->output_data.x.
8462 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
8463 terminal devices.
8464
5582fbc7 8465 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
8466 x_output.
8467 (FRAME_FONT): Use output_data.tty.
8468 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
8469 (struct x_display_info): Rename from display_info. Update all users in
8470 msdos.c.
aac0c6e3 8471 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 8472 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
8473 (dos_ttraw): Update prototype.
8474
8475 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
8476 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
8477
84782008-08-23 Jason Rumney <jasonr@gnu.org>
8479
8480 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
8481 (fn_TIFFSetDirectory): New library function used.
8482 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
8483 (tiff_load): Use :index to select among multiple images. Set count
8484 property when multiple images exist.
8485 (gif_format): Use :index, not :image.
8486
84872008-08-23 Chong Yidong <cyd@stupidchicken.com>
8488
8489 * xdisp.c (try_scrolling): Check INT_MAX instead of
8490 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
8491 to obtain INT_MAX.
8492
84932008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
8494
8495 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
8496
84972008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
8498
8499 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
8500 GNUstep library location.
8501
85022008-08-21 Chong Yidong <cyd@stupidchicken.com>
8503
8504 * xfaces.c (x_update_menu_appearance): Check validity of menu font
8505 before using it.
8506
8507 * puresize.h (BASE_PURESIZE): Increase to 1250000.
8508
85092008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8510
8511 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
8512 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
8513 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
8514 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
8515 (EmacsApp-cursor_blink_handler): Remove declaration.
8516 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
8517 match 01 Feb 2008 changes in xterm.c.
8518 (ns_read_socket): Add cast to avoid warning.
8519 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
8520 GNUstep.
8521
85222008-08-20 Chong Yidong <cyd@stupidchicken.com>
8523
8524 * xselect.c (x_get_foreign_selection): Return nil if desired
8525 selection could not be obtained, instead of signalling an error.
8526
85272008-08-20 David Reitter <david.reitter@gmail.com>
8528
8529 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
8530 * nsterm.m: Remove ns-specific code for cursor blinking.
8531 (ns_draw_window_cursor): Clear cursor properly rather than
8532 redrawing the area. Respect width of bar cursors.
8533 These changes enable the use of generic blink-cursor-mode and
8534 generic cursor types in NS and support smooth cursor movements (do
8535 not blink off after command).
8536 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
8537 Nextstep, too.
8538
85392008-08-19 Kenichi Handa <handa@m17n.org>
8540
8541 * font.c (Vfont_log_deferred): New variable.
8542 (font_add_log): Check Vfont_log_deferred.
8543 (font_deferred_log): New function.
8544
8545 * font.h (font_deferred_log): Extern it.
8546
8547 * fontset.c (reorder_font_vector): Use encoding charset of fonts
8548 for sorting.
8549 (face_for_char): Use deferred log.
8550
85512008-08-18 Kenichi Handa <handa@m17n.org>
8552
8553 * fontset.c (face_for_char): Add font log.
8554
8555 * font.c (font_add_log): Add the font properties :script, :lang,
8556 and :otf in the log.
8557
85582008-08-17 Chong Yidong <cyd@stupidchicken.com>
8559
8560 * xdisp.c: Remove dead code.
8561 (handle_invisible_prop, next_overlay_string): Defer call to
8562 setup_for_ellipsis.
8563 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
8564
85652008-08-15 Chong Yidong <cyd@stupidchicken.com>
8566
8567 * xfaces.c (lookup_derived_face): Properly handle possible zero
8568 return value of get_lface_attributes.
8569 (merge_faces): Don't tell lookup_derived_face to signal an error
8570 if face is not found.
8571
8572 * dired.c (Fdirectory_files): Doc fix.
8573
8574 * process.c (make_process): Initialize kill_without_query struct
8575 member.
8576
85772008-08-15 Eli Zaretskii <eliz@gnu.org>
8578
8579 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
8580 Alternative calculation of totphys for Visual Studio 6.
8581
8582 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
8583
8584 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
8585 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
8586 All users changed.
8587 (stat): Only root directory passed to GetDriveType. Allow RAM
8588 disk as well as local fixed disk when w32-get-true-file-attributes
8589 is set to `local'.
8590 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
8591 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
8592 (w32_cached_id, w32_add_to_cache): New functions.
8593 (get_name_and_id): Look account names in the cache before calling
8594 lookup_account_sid.
8595 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
8596 New initialization flags.
8597 (globals_of_w32): Initialize them to zero.
8598 (w32_system_process_attributes): Use w32_cached_id and
8599 w32_add_to_cache.
8600
86012008-08-14 Lawrence Mitchell <wence@gmx.li>
8602
8603 * lread.c (Fread_char, Fread_char_exclusive): If no character
8604 event is read before timeout is reached, return nil, rather than
8605 converting to a number.
8606
86072008-08-14 Chong Yidong <cyd@stupidchicken.com>
8608
8609 * fns.c (use_dialog_box): Doc fix.
8610
8611 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
8612 on OS X.
8613
86142008-08-13 Chong Yidong <cyd@stupidchicken.com>
8615
8616 * frame.c (Qns_parse_geometry): New var.
8617 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
8618
86192008-08-11 Chong Yidong <cyd@stupidchicken.com>
8620
8621 * xdisp.c (x_produce_glyphs): Handle the case when font has no
8622 space character in calculating tabs.
8623
86242008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
8625
8626 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
8627
86282008-08-10 Glenn Morris <rgm@gnu.org>
8629
8630 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
8631 silence gcc "limited range of data type" warnings in some
8632 make_fixnum_or_float calls.
8633
86342008-08-09 Eli Zaretskii <eliz@gnu.org>
8635
8636 * w32.c (w32_system_process_attributes): If the process does not
8637 exist, return nil.
8638
8639 * w32.c: Include thelp32.h, psapi.h and coding.h.
8640 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
8641 declarations.
8642 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
8643 (Process32Next_Proc): New typedefs.
8644 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
8645 (g_b_init_process32_next, g_b_init_open_thread_token)
8646 (g_b_init_impersonate_self, g_b_init_revert_to_self)
8647 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
8648 (g_b_init_get_process_working_set_size)
8649 (g_b_init_global_memory_status_ex): New static variables.
8650 (globals_of_w32): Initialize them.
8651 (create_toolhelp32_snapshot, process32_first, process32_next)
8652 (open_thread_token, impersonate_self, revert_to_self)
8653 (get_process_memory_info, get_process_working_set_size)
8654 (global_memory_status, global_memory_status_ex): New wrapper
8655 functions.
8656 (w32_list_system_processes, w32_system_process_attributes)
8657 (enable_privilege, restore_privilege, ltime, process_times):
8658 New functions.
8659 (convert_time_raw): New function.
8660 (convert_time): Remove conversion of FILETIME into time in 100
8661 nsec units, call convert_time_raw instead.
8662
8663 * process.h (w32_list_system_processes, w32_system_process_attributes):
8664 Add prototypes.
8665 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
8666 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
8667 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
8668 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
8669
8670 * process.c (Fsystem_process_attributes): Doc fix.
8671
86722008-08-08 Chong Yidong <cyd@stupidchicken.com>
8673
8674 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
8675 a continued multi-char glyph; if so, advance to the actual glyph.
8676
86772008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
8678
8679 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
8680
8681 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
8682 (.m.o): Use it.
8683 * config.in: Regenerate.
8684
86852008-08-07 Chong Yidong <cyd@stupidchicken.com>
8686
8687 * xdisp.c (redisplay_window): Revert last change.
8688 (try_window): Check bottom scroll margin too.
8689
86902008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8691
8692 * config.in: Regenerate.
8693
8694 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
8695 -list-load-path-shadows'.
8696 (nsgui.h): Reduce number of things depending on it.
8697
86982008-08-06 Chong Yidong <cyd@stupidchicken.com>
8699
8700 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
8701 instead of window-end which does the wrong thing at eob.
8702 (try_cursor_movement): Minor optimization.
8703 (redisplay_window): If scroll margin is defined, don't assume
8704 window doesn't need scrolling.
8705
87062008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8707
8708 * config.in: Regenerate.
8709
8710 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
8711 (mostlyclean): Don't delete *.d under NS.
8712
8713 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
8714
87152008-08-06 Kenichi Handa <handa@m17n.org>
8716
8717 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
8718
87192008-08-06 Andreas Schwab <schwab@suse.de>
8720
8721 * config.in: Regenerate.
8722
87232008-08-05 Chong Yidong <cyd@stupidchicken.com>
8724
8725 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
8726 forcing a window start.
8727
8728 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
8729 (auto_save_1): Update modtime when auto-save-list-file-name is on.
8730
87312008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8732
8733 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
8734 argument.
8735
87362008-08-05 Juanma Barranquero <lekktu@gmail.com>
8737
8738 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
8739 <scroll-down-aggressively, before-change-functions>:
8740 <after-change-functions>: Reflow docstrings.
8741
87422008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8743 Ken Raeburn <raeburn@gnu.org>
8744
8745 Dock menu customization, based on a patch by Ken Raeburn, plus some
8746 other fixes.
8747 * nsmenu.m (dockMenu): New variable.
8748 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
8749
8750 * nsterm.h (dockMenu): Declare.
8751
8752 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
8753 (ns_term_init): Initialize dockMenu.
8754 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
8755 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
8756 left.
8757
8758 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
8759
87602008-08-04 Chong Yidong <cyd@stupidchicken.com>
8761
8762 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
8763
8764 * config.in: Regenerate.
8765
87662008-08-04 Seiji Zenitani <zenitani@mac.com>
8767
8768 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
8769
87702008-08-04 Chong Yidong <cyd@stupidchicken.com>
8771
8772 * nsterm.h (find_and_call_menu_selection): Fix prototype.
8773
87742008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8775
8776 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
8777
8778 * keyboard.h: Comment an #endif.
8779
8780 * lisp.h (have_menus_p): Adjust comment.
8781
8782 * menu.c (find_and_return_menu_selection): Fix comparison with
8783 client_data.
8784
8785 * nsmenu.m (popup_activated_flag): New variable.
8786 (popup_activated): New function.
8787 (menu-or-popup-active-p): New exported lisp definition.
8788 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
8789 when popup done.
8790 (ns_popup_dialog): Set popup_activated_flag.
8791
8792 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
8793 version for GNUstep (handled by conditional typedef in nsterm.m).
8794 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
8795 in rgb.txt).
8796
8797 * process.c (init_process): Use DARWIN_OS, not DARWIN.
8798
8799 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
8800
8801 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
8802
8803 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
8804 shortcircuit if popup_activated like GTK and X toolkit.
8805
8806 * m/inter386.h: Change DARWIN to DARWIN_OS.
8807
8808 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
8809 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
8810 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
8811 comment on NO_SOCK_SIGIO.
8812
88132008-08-03 Chong Yidong <cyd@stupidchicken.com>
8814
8815 * nsterm.m (windowDidResize): Remove stopModal call.
8816
88172008-08-03 Andreas Schwab <schwab@suse.de>
8818
8819 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
8820 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
8821
88222008-08-02 Chong Yidong <cyd@stupidchicken.com>
8823
8824 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
8825 Don't use uninitialized pointer variable when using getrlimit.
8826
88272008-08-02 Jason Rumney <jasonr@gnu.org>
8828
8829 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
8830
88312008-08-02 Eli Zaretskii <eliz@gnu.org>
8832
8833 * alloc.c (NSTATICS): Bump to 0x640.
8834
8835 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
8836
8837 * lisp.h: Add prototype for directory_files_internal.
8838
8839 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
8840 New functions.
8841 (syms_of_process): Defsubr them. Add initializations for various
8842 Q* symbols used in procfs_system_process_attributes.
8843 (procfs_list_system_processes, procfs_system_process_attributes)
8844 [HAVE_PROCFS]: New functions.
8845 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
8846 (procfs_get_total_memory): New functions.
8847
88482008-08-01 Juanma Barranquero <lekktu@gmail.com>
8849
8850 * xfaces.c (Fx_load_color_file): Fix previous change;
8851 it is #ifdef WINDOWSNT, not WINDOWS_NT.
8852
88532008-08-01 Michael Albinus <michael.albinus@gmx.de>
8854
8855 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
8856
88572008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8858
8859 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
8860
88612008-08-01 Chong Yidong <cyd@stupidchicken.com>
8862
8863 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
8864
8865 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
8866 define NSApplicationDelegateReplySuccess.
8867 (EmacsView -converstationIdentifier): Use long instead of
8868 NSInteger for GNUstep, since it doesn't have NSInteger.
8869
8870 * xmenu.c: Revert last change.
8871
8872 * keyboard.h: Fix last change.
8873
88742008-08-01 Juanma Barranquero <lekktu@gmail.com>
8875
8876 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
8877 on Windows.
8878
88792008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8880
8881 Warning clearing and clean-up in NS port.
8882 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
8883 Add prototypes.
8884 * nsgui.h (FACE_DEFAULT): Remove, unused.
8885 (XGCValues): Change colors to unsigned long.
8886 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
8887 nsterm.m.
8888 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
8889 (ns_list_fonts): Remove, unused.
8890 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
8891 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
8892 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
8893 (nsfont_draw): Compare face colors to 0, not nil.
8894 * nsmenu.m (struct widget_value): Drop unneeded declaration.
8895 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
8896 (-addSubmenuWithTitle:): Use NSMenuItem class.
8897 (ns_popup_menu): Use NO, not NULL, for enabled setting.
8898 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
8899 (ns_clip_to_row): Make gc arg a BOOL.
8900 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
8901 ns_clip_to_row() call.
8902 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
8903 used). Cast FRAME_FONT assignments.
8904 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
8905 (ns_string_to_lispmod): Change arg to const char.
8906 (ns_term_init): Use NSMenuItem class.
8907 (EmacsApp -openFile:): Move to different section of file.
8908 (EmacsApp -application:openFiles:): Don't return a value, call
8909 -replyToOpenOrPrint:.
8910 (EmacsView -keyDown:): Fix up cast.
8911 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
8912 (EmacsView -menuDown:): Cast tag in call to
8913 find_and_call_menu_selection().
8914 (ns_list_fonts): Remove, unused.
8915 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
8916 (ns_fontname_to_xlfd): Make static.
8917 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
8918 Remove prototypes (now in keyboard.h).
8919 (next_menubar_widget_id): Remove, unused.
8920 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
8921 Remove prototypes (now in keyboard.h).
8922 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
8923
89242008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
8925
8926 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
8927 (floatfns.o): Depend on syssignal.h.
8928 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
8929
8930 * systty.h: Fix previous change that removed BSD_TERMIOS.
8931 Add comments to #ifdefs.
8932
89332008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8934
8935 * w32fns.c (w32-load-color-file): Remove.
8936 (x-open-connection): Use renamed Fx_load_color_file.
8937 * xfaces.c (x-load-color-file): Add.
8938 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
8939 Emacs.clr.
8940 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
8941
89422008-07-31 Michael Albinus <michael.albinus@gmx.de>
8943
8944 * dbusbind.c (Fdbus_call_method_asynchronously)
8945 (Fdbus_method_error_internal): New defuns.
8946 (xd_read_message): Handle also reply messages.
8947 (Vdbus_registered_functions_table): Extend docstring.
8948
89492008-07-31 Juanma Barranquero <lekktu@gmail.com>
8950
8951 * keyboard.c (gobble_input): Fix previous change.
8952
89532008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
8954
8955 * bitmaps/README:
8956 * xfns.c:
8957 * termcap.c:
8958 * term.c:
8959 * syswait.h:
8960 * systty.h:
8961 * systime.h:
8962 * syssignal.h:
8963 * sysdep.c:
8964 * process.h:
8965 * process.c:
8966 * print.c:
8967 * ndir.h:
8968 * lread.c:
8969 * keyboard.c:
8970 * getpagesize.h:
8971 * floatfns.c:
8972 * fileio.c:
8973 * emacs.c:
8974 * doc.c:
8975 * dispnew.c:
8976 * dired.c:
8977 * data.c:
8978 * callproc.c:
8979 * buffer.c:
8980 * README:
8981 * Makefile.in:
8982 * s/template.h:
8983 * s/msdos.h:
8984 * m/vax.h: Remove VMS support.
8985 * s/vms.h:
8986 * vlimit.h:
8987 * uaf.h:
8988 * temacs.opt:
8989 * param.h:
8990 * ioctl.h: Remove file.
8991
89922008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
8993
8994 * s/ms-w32.h (MULTI_KBOARD): Remove.
8995 * xterm.c:
8996 * xselect.c:
8997 * xfns.c:
8998 * window.c:
8999 * w32term.c:
9000 * w32fns.c:
9001 * terminal.c:
9002 * termhooks.h:
9003 * term.c:
9004 * sysdep.c:
9005 * keyboard.h:
9006 * keyboard.c:
9007 * frame.h:
9008 * frame.c:
9009 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
9010 * config.in: Regenerate.
9011
90122008-07-30 Jason Rumney <jasonr@gnu.org>
9013
9014 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
9015
9016 * w32font.c (w32font_encode_char): Leave as unicode if in range.
9017 (w32font_open_internal): Get unicode version of textmetrics.
9018 Don't enable or disable glyph indices here.
9019 (w32font_open): Disable use of glyph indices.
9020
9021 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
9022
90232008-07-30 Chong Yidong <cyd@stupidchicken.com>
9024
9025 * minibuf.c (Vread_buffer_function): Doc fix.
9026
90272008-07-30 John Paul Wallington <jpw@pobox.com>
9028
9029 * minibuf.c (read_buffer_completion_ignore_case): New var.
9030 (Fread_buffer): Use it.
9031
90322008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
9033
9034 * systty.h (sensemode): Remove empty #if. Remove reference to
9035 BSD_TERMIOS, unused.
9036
9037 * sysdep.c: Remove reference to DGUX.
9038 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
9039
9040 * config.in: Regenerate.
9041
90422008-07-30 Jason Rumney <jasonr@gnu.org>
9043
9044 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
9045
90462008-07-29 Jason Rumney <jasonr@gnu.org>
9047
9048 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
9049 is populated.
9050 (uniscribe_encode_char): Always use uniscribe.
9051 Avoid using context if cache is populated.
9052
90532008-07-29 Jan Djärv <jan.h.d@swipnet.se>
9054
9055 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
9056 open menu.
9057
9058 * gtkutil.c (menu_nav_ended): Remove.
9059 (create_menus): Remove signal connect for menu_nav_ended.
9060
90612008-07-28 Chong Yidong <cyd@stupidchicken.com>
9062
9063 * xdisp.c (redisplay_window): Check return value of
9064 compute_window_start_on_continuation_line before forcing a window
9065 start.
9066
90672008-07-28 Jason Rumney <jasonr@gnu.org>
9068
9069 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
9070
9071 * w32term.c (w32_enable_unicode_output, cleartype_active):
9072 Remove obsolete display options.
9073 (x_draw_glyph_string_background): Don't use old cleartype_active
9074 workaround.
9075 (w32_initialize): Remove cleartype_active initialization.
9076 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
9077
90782008-07-28 Andreas Schwab <schwab@suse.de>
9079
9080 * lisp.h (init_weak_hash_tables, syms_of_font)
9081 (xd_read_queued_messages, syms_of_dbusbind): Declare.
9082 (remove_hash_entry): Don't declare.
9083 * eval.c (maybe_call_debugger): Make static and move before use.
9084 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
9085 * xdisp.c: Include "gtkutil.h" if USE_GTK.
9086 * xterm.h (x_set_frame_alpha): Declare.
9087
90882008-07-28 Jan Djärv <jan.h.d@swipnet.se>
9089
9090 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
9091 (create_menus): Connect selection-done to menu_nav_ended.
9092
90932008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
9094
9095 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
9096 Set Vx_resource_name to a fallback. Replace read of 'buffered'
9097 parameter with read of 'alpha' one.
9098 (Qns_frame_parameter): Remove.
5582fbc7 9099 * nsselect.m (selection-coding-system)
aac0c6e3
MR
9100 (next-selection-coding-system, Vselection_coding_system)
9101 (Vnext_selection_coding_system): Drop.
9102
91032008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
9104
9105 * nsfns.m (do-applescript, do_applescript): Rename to
9106 ns-do-applescript, ns_do_applescript, and move within file.
9107
91082008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
9109
9110 Remove support for Mac Carbon.
9111 * mactoolbox.c:
9112 * macterm.h:
9113 * macterm.c:
9114 * macselect.c:
9115 * macmenu.c:
9116 * macgui.h:
9117 * macfns.c:
9118 * mac.c: Remove file.
9119 * s/darwin.h:
9120 * m/intel386.h:
9121 * xfaces.c:
9122 * xdisp.c:
9123 * window.c:
9124 * tparam.c:
9125 * termhooks.h:
9126 * termcap.c:
9127 * term.c:
9128 * syssignal.h:
9129 * sysselect.h:
9130 * sysdep.c:
9131 * process.c:
9132 * lread.c:
9133 * lisp.h:
9134 * keyboard.c:
9135 * image.c:
9136 * fringe.c:
9137 * frame.h:
9138 * frame.c:
9139 * fontset.c:
9140 * font.h:
9141 * font.c:
9142 * fns.c:
9143 * fileio.c:
9144 * emacs.c:
9145 * dispnew.c:
9146 * dispextern.h:
9147 * config.in:
9148 * atimer.c:
2ae37cf0 9149 * Makefile.in: Remove code for Carbon.
aac0c6e3 9150
f0131492 91512008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
9152
9153 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
9154
91552008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9156
9157 * macterm.h (kCGBitmapByteOrder32Host): New define for
9158 non-universal SDKs.
9159
9160 * image.c (mac_create_cg_image_from_image, image_load_image_io)
9161 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
9162
9163 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
9164 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
9165
91662008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
9167
9168 * w32inevt.c: Include dispextern.h.
9169
91702008-07-26 Andreas Schwab <schwab@suse.de>
9171
9172 * print.c (print_object): Fix off-by-one in last change.
9173
91742008-07-25 Juanma Barranquero <lekktu@gmail.com>
9175
9176 * term.c (syms_of_term): Don't initialize default_orig_pair,
9177 default_set_foreground and default_set_background on Windows.
9178
91792008-07-25 Jason Rumney <jasonr@gnu.org>
9180
9181 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
9182 ScriptItemize. Clean up return value checking. Remove unused
9183 variables.
9184 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
9185 shaping engine.
9186
9187 * w32font.c (w32font_has_char): Handle the case where we can't
9188 determine the script for a character.
9189
91902008-07-25 Chong Yidong <cyd@stupidchicken.com>
9191
9192 * term.c (syms_of_term): Initialize default_orig_pair,
9193 default_set_foreground, and default_set_background.
9194
9195 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
9196 clash (bug#86).
9197 (getloadavg): Callers changed.
9198
9199 * image.c (svg_load_image): Fix last change.
9200 (svg_load_image): Use rsvg_handle_get_dimensions to check that
9201 image size is valid. Use g_object_unref instead of deprecated
9202 rsvg_handle_free to free rsvg handle.
9203 (x_from_xcolors): Don't initialize pixmap (silence compiler).
9204
92052008-07-25 Jason Rumney <jasonr@gnu.org>
9206
9207 * w32font.c (w32font_encode_char): Encode characters outside BMP as
9208 surrogates before looking up glyph index.
9209 (w32font_text_extents): Encode as surrogates if falling back to
9210 functions that need UTF-16 wide chars.
9211
9212 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
9213 BMP as surrogates before looking up glyph index.
9214
92152008-07-25 Chong Yidong <cyd@stupidchicken.com>
9216
9217 * image.c (svg_load_image): Check for failure in return value of
9218 rsvg_handle_get_pixbuf. Free rsvg handle when done.
9219
92202008-07-25 Jason Rumney <jasonr@gnu.org>
9221
9222 * w32font.c (Fx_select_font): Reverse sense of second arg.
9223
92242008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
9225
9226 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
9227 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
9228
9229 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
9230 (PURESIZE): Use it.
9231
92322008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
9233
9234 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
9235 * m/alpha.h (TEXT_END):
9236 * m/ibmrs6000.h (TEXT_END):
9237 * m/macppc.h (TEXT_END):
9238 * s/darwin.h (TEXT_END):
9239 * s/msdos.h (TEXT_END): Remove, unused.
9240 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
9241 * s/cygwin.h: Remove comment.
9242
9243 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
9244 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
9245 * m/intel386.h (DOT_GLOBAL_START):
9246 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
9247 (USG): Remove, file not used on USG platforms.
9248
9249 * Makefile.in (HAVE_X11): Remove empty #else.
9250
92512008-07-24 Andreas Schwab <schwab@suse.de>
9252
9253 * fileio.c (Finsert_file_contents): Properly adjust undo list
9254 after format conversion.
9255
92562008-07-24 Jan Djärv <jan.h.d@swipnet.se>
9257
9258 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
9259 (menu_nav_ended): Remove.
9260 (create_menus): Remove signal connect for menu_nav_ended.
9261 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
9262 create_menus.
9263 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
9264
92652008-07-23 Jason Rumney <jasonr@gnu.org>
9266
9267 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
9268 with opened font.
9269 (w32font_open): Set font type to gdi.
9270
9271 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
9272
92732008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
9274
9275 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
9276 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
9277 defines it.
9278 * unexec.c (ADDR_CORRECT): Define unconditionally.
9279
9280 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
9281
9282 * unexec.c: Remove code depending on !COFF and USG, the file is
9283 not used for such systems.
9284
9285 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
9286 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
9287 (LD_SWITCH_SYSTEM_1): Remove, update users.
9288
9289 * s/darwin.h (DATA_END):
9290 * m/intel386.h (DATA_END):
9291 * m/ibmrs6000.h (DATA_END):
9292 * m/alpha.h (DATA_END): Remove, unused.
9293
9294 * config.in: Regenerate.
9295 * s/ms-w32.h (subprocesses): Define unconditionally.
9296 * s/template.h (subprocesses): Update comment.
9297 * s/vms.h (subprocesses):
9298 * s/usg5-4.h (subprocesses):
9299 * s/hpux10-20.h (subprocesses):
9300 * s/gnu-linux.h (subprocesses):
9301 * s/cygwin.h (subprocesses):
9302 * s/bsd-common.h (subprocesses):
9303 * s/aix4-2.h (subprocesses):
9304 * s/darwin.h (subprocesses): Do not define, defined by default now.
9305
9306 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
9307 Remove all references.
9308 (temacs): Add GNUstep specific ld flags.
9309
9310 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
9311 similarly to what X does.
9312
93132008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9314
9315 * nsfns.m (x-list-fonts): Remove.
9316 (syms_of_nsfns): Drop the x-list-fonts declaration.
9317 * nsterm.m: Get rid of remaining "//" comments.
9318
93192008-07-22 Chong Yidong <cyd@stupidchicken.com>
9320
9321 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
9322
9323 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
9324 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
9325 (Fns_own_selection_internal, Fx_disown_selection_internal)
9326 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
9327
9328 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
9329 ... */' style of docstrings. Doc fixes.
9330
93312008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
9332
9333 * terminfo.c (UP, BC, PC): Undo previous change.
9334
9335 * nsfns.m: Rename ns prefixed functions/variables to the
9336 corresponding x versions. Update references.
9337
93382008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
9339
9340 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
9341
93422008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
9343
9344 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
9345 Remove forwarding functions.
9346 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
9347 non-static.
9348 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
9349 non-static.
9350 (ns_frame_parm_handlers): Use the new names.
9351 (syms_of_nsfns): Move to the end of file.
9352
9353 * nsterm.m (syms_of_nsterm): Move to the end of file.
9354
9355 * dispnew.c (init_display): Remove code for X10.
9356
93572008-07-22 Jason Rumney <jasonr@gnu.org>
9358
9359 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
9360 bare drive.
9361
93622008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9363
9364 * nsterm.m (syms_of_nsterm): Remove debugging println.
9365
93662008-07-22 David Reitter <david.reitter@gmail.com>
9367
9368 * nsfns.m (do_applescript, F_do_applescript): NS version of the
9369 Carbon implementation of the same functionality: execute arbitrary
9370 AppleScript code.
9371
93722008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9373
9374 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
9375 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
9376 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
9377 (Fx_display_mm_height, Fx_display_mm_width)
9378 (Fx_display_backing_store, Fx_display_visual_class)
9379 (Fx_display_save_under, Fx_open_connection)
9380 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
9381 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
9382 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
9383 (Fx_display_pixel_width, Fx_display_pixel_height)
9384 (Fx_display_usable_bounds, Fx_display_planes)
9385 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
9386 ... */' style of docstrings.
9387
93882008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
9389
9390 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
9391 on this platform.
9392 (mips):
9393 * m/iris4d.h (mips): Do not define.
9394 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
9395
9396 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
9397
9398 * image.c:
9399 * nsfns.m:
9400 * nsselect.m:
9401 * nsterm.h:
9402 * nsterm.m: Rename ns prefixed functions/variables to the
9403 corresponding x versions. Update references.
9404
9405 * m/ibms390x.h (NO_REMAP): Do not undefine.
9406
9407 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
9408
94092008-07-21 Chong Yidong <cyd@stupidchicken.com>
9410
9411 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
9412 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
9413 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
9414 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
9415 (Fns_display_mm_height, Fns_display_mm_width)
9416 (Fns_display_backing_store, Fns_display_visual_class)
9417 (Fns_display_save_under, Fns_open_connection)
9418 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
9419 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
9420 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
9421 (Fns_display_pixel_width, Fns_display_pixel_height)
9422 (Fns_display_usable_bounds, Fx_display_planes)
9423 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
9424
94252008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
9426
9427 * print.c (print_object): Check print_depth before searching for
9428 circularities.
9429
94302008-07-21 Michael Albinus <michael.albinus@gmx.de>
9431
9432 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
9433 only sprintf.
9434
94352008-07-21 Kenichi Handa <handa@m17n.org>
9436
9437 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
9438
94392008-07-20 Andreas Schwab <schwab@suse.de>
9440
9441 * syntax.c (find_start_pos, find_start_value)
9442 (find_start_value_byte, find_start_begv, find_defun_start)
9443 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
9444
94452008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
9446
9447 * s/sol2-3.h: Insert contents of s/sol2.h.
9448 (LD_SWITCH_SYSTEM): Remove redundant definition.
9449 * s/sol2.h: Remove, unused.
9450
94512008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9452
9453 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
9454
94552008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9456
9457 * Makefile.in (ns_appdir): Fix typo in find command.
9458
94592008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
9460
9461 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
9462
9463 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
9464 added not supported anymore.
9465
9466 * s/usg5-4-2.h (LIBS_SYSTEM):
9467 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
9468
9469 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
9470 * s/lynxos.h (GETPGRP_NO_ARG):
9471 * s/hpux10-20.h (NO_SIOCTL_H):
9472 * s/gnu.h (GETPGRP_NO_ARG):
9473 * s/gnu-linux.h (NO_SIOCTL_H):
9474 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
9475 * s/cygwin.h (GETPGRP_NO_ARG):
9476 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
9477 (C_DEBUG_SWITCH): Remove duplicate definition.
9478
9479 * m/ibms390.h: Remove boilerplate comments.
9480
9481 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
9482
9483 * process.c (HAVE_SERIAL): Consolidate ifdefs.
9484 (wait_reading_process_output): Remove code for SunOS, platform not
9485 supported anymore. Use SOLARIS2 instead of sun.
9486
94872008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9488
9489 * font.c (font_open_by_name): Under NS, default lface height to zero.
9490 (font_open_for_lface): Under NS, set size based on frame fontsize.
9491 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
9492 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
9493
94942008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9495
9496 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
9497 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
9498 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
9499 YES/NO.
9500 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
9501 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
9502 * Makefile.in (clean): Clear out build destination dir.
9503
95042008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9505
9506 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
9507 xterm, xselect.
9508 * lisp.h: Remove declaration of hash_remove.
9509 * nsgui.h: Remove redefinitions of hash_remove.
9510 * fns.c (hash_remove): Rename to hash_remove_from_table.
9511
95122008-07-19 Seiji Zenitani <zenitani@mac.com>
9513
9514 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
9515 strdup() the family UTF8String before modifying it.
9516
95172008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9518
9519 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
9520 NS_FACE_BACKGROUND with 0 instead of nil.
9521 * nsfont.m (nsfont_draw): Same.
9522
95232008-07-19 Chong Yidong <cyd@stupidchicken.com>
9524
9525 * nsfns.m (ns_set_background_color): Fix crash.
9526
95272008-07-18 Chong Yidong <cyd@stupidchicken.com>
9528
9529 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
9530
95312008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
9532
9533 * puresize.h (BASE_PURESIZE): Increase to 1240000.
9534
95352008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9536
9537 * gtkutil.c: Include <config.h> instead of "config.h".
9538
9539 * lisp.h (Foverlay_buffer): Add EXFUN.
9540
9541 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
9542 child process to complete child_setup. Undo 2005-09-21 change.
9543
9544 * s/darwin.h: Mention setsid after vfork.
9545
95462008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9547
9548 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
9549 Depend on macgui.h.
9550
9551 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
9552 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
9553
9554 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
9555 and f19.
9556 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
9557
9558 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
9559 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
9560 Remove enumerators.
9561
9562 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
9563 Check if FACE_FROM_ID returns NULL.
9564
95652008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
9566
9567 * w32inevt.c (change_frame_size): Remove extern declaration.
9568 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
9569 change_frame_size.
9570
95712008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
9572
9573 * getloadavg.c: Revert last change (2008-07-15).
9574
95752008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
9576
9577 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 9578 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
9579 from configure.
9580
95812008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
9582
9583 * s/sol2.h:
9584 * s/sol2-4.h: Reorganize conditionals.
9585
9586 * ecrt0.c: Remove code depending on m68000, not used anymore.
9587
9588 * fns.c (hash_remove): Make static.
9589 * lisp.h (hash_remove): Don't prototype.
9590
9591 * m/ibmrs6000.h:
9592 * m/ibms390x.h:
9593 * m/macppc.h: Remove boilerplate comments.
9594
9595 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
9596 Solaris, which does not need them.
9597
9598 * m/vax.h: Remove comments about unsupported systems.
9599
9600 * s/darwin.h: Reorganize ifdefs.
9601
96022008-07-17 Andreas Schwab <schwab@suse.de>
9603
9604 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
9605
96062008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
9607
9608 Use SDATA. Follow coding convention of placing operators at
9609 beginning of next line rather than end of previous line, and placing
9610 spaces around infix operators.
9611
9612 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
9613 in case it was defined already.
9614 USE @GNUSTEP_MAKEFILES@ rather than envvars.
9615 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
9616 ns_default.
9617 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
9618 Lisp_Objects.
9619 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
9620 (ns_defined_color, ns_color_to_lisp): Declare.
9621 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
9622 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
9623 it's accepted even with USE_LISP_UNION_TYPE.
9624 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
9625 (update_frame_tool_bar): Remove apparently obsolete tests for
9626 non-integerness of f->tool_bar_lines.
9627 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
9628 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
9629 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
9630 (nsfont_open): Don't confuse NULL for Qnil.
9631 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
9632 * menu.h (find_and_call_menu_selection):
9633 * menu.c (find_and_call_menu_selection): Use just int for vector size.
9634 (find_and_return_menu_selection): Always return something.
9635 * frame.h: Include dispextern.h for Display_Info.
9636 (display_x_get_resource): Declare.
9637
96382008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
9639
9640 * syntax.c: Remove stdio.h include accidentally introduced in
9641 Emacs.app commit.
9642 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
9643 NS_IMPL_COCOA.
9644 * keyboard.c (handle_async_input, input_available_signal): Remove
9645 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
9646
96472008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
9648
9649 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
9650 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
9651 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
9652 Use SDATA.
9653
9654 * keymap.c: Remove all NS-specific code.
9655 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
9656 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
9657 where_is_preferred_modifier, return a different value depending on how
9658 preferred is the binding.
9659 (where_is_internal): Adjust accordingly.
9660 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
9661 Adjust to new preferred_sequence_p.
9662 (syms_of_keymap): Declare `where-is-preferred-modifier'.
9663 * keyboard.c (parse_solitary_modifier): Not static any more.
9664 * keyboard.h (parse_solitary_modifier): Declare.
9665
96662008-07-16 Andreas Schwab <schwab@suse.de>
9667
9668 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
9669 of easymenu.
9670
96712008-07-16 Chong Yidong <cyd@stupidchicken.com>
9672
9673 * xdisp.c (move_it_in_display_line): Account for word wrap, so
9674 that we don't move off the line.
9675
96762008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
9677
9678 * keyboard.c (Qsuper): Remove.
9679 (parse_menu_item): Don't call where_is_internal specially for NS.
9680
96812008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
9682
9683 * s/gnu-linux.h: Remove boilerplate comments.
9684
9685 * m/alpha.h (__ELF__): Consolidate conditions.
9686
9687 * m/m68k.h (linux): Use GNU_LINUX instead.
9688 Remove boilerplate comments.
9689
9690 * m/intel386.h: Undo refactoring from previous change.
9691 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
9692 too, remove dead code.
9693 (linux): Use GNU_LINUX instead.
9694
96952008-07-16 Jason Rumney <jasonr@gnu.org>
9696
9697 * w32gui.h: Repeat 26 June changes lost by last change.
9698
96992008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
9700
9701 * systty.h: Remove code for Aix on 386, unsupported platform.
9702
9703 * s/ms-w32.h: Remove boilerplate comments.
9704 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
9705
9706 * s/gnu-linux.h (TERM): Remove support.
9707 (HAVE_SYSVIPC): Remove, unused.
9708 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
9709 for this system.
9710
9711 * process.c: Remove support for IRIS, unused.
9712 Remove support for TERM, not relevant anymore.
9713
9714 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
9715 used with the definition.
9716
9717 * s/aix4-2.h (static): Do not undef.
9718
9719 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
9720 only used on Aix.
9721 (HAVE_SYSVIPC): Remove, unused.
9722
9723 * m/hp800.h (CANNOT_DUMP): Do not undef.
9724
9725 * m/alpha.h: Fix comment.
9726
9727 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
9728 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
9729 used by this configuration.
9730 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
9731 * unexec.c: Remove code depending on HPUX and
9732 USG_SHARED_LIBRARIES, not used with this file. Remove code
9733 depending on IRIS, unused. Remove if 0-ed code.
9734
9735 * s/template.h: Remove comments about static.
9736
9737 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
9738 Remove if 0-ed code.
9739 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
9740 were the same as the default.
9741 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
9742 Remove boilerplate comments.
9743 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
9744 (HAVE_SYSVIPC): Remove, unused.
9745 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
9746
9747 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
9748 Remove boilerplate comments.
9749 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
9750 Remove boilerplate comments.
9751 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
9752 Remove boilerplate comments.
9753 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
9754
9755 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
9756 USG systems which do not use DATA_SEG_BITS.
9757 Refactor code. Remove boilerplate comments.
9758
9759 * m/ibms390.h:
9760 * m/m68k.h:
9761 * s/bsd-common.h:
9762 * s/cygwin.h:
9763 * s/darwin.h:
9764 * s/freebsd.h:
9765 * s/gnu.h:
9766 * s/msdos.h: Remove boilerplate comments.
9767
9768 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 9769 do not use this file.
aac0c6e3
MR
9770 (IRIS_4D): Remove, unused.
9771
9772 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 9773 do not use this file.
aac0c6e3
MR
9774 (SIGN_EXTEND_CHAR):
9775 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
9776 * unexmips.c: Remove file, unused.
9777
9778 * editfns.c (Fuser_full_name): Replace the only use of
9779 USER_FULL_NAME with its value.
9780 * config.in: Regenerate.
9781
97822008-07-16 David Reitter <david.reitter@gmail.com>
9783
9784 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
9785 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
9786
97872008-07-16 Glenn Morris <rgm@gnu.org>
9788
9789 * emacs.c (system-type): Doc fix.
9790
97912008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
9792
9793 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
9794 If the cache doesn't work, let's fix it, rather than work around it.
9795
97962008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9797
9798 * Makefile.in: Correct additions for nsfont.o in last commit.
9799 * nsfont.m: New file (forgot last commit).
9800
98012008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
9802
9803 * callproc.c (set_initial_environment): Initialize
9804 Vprocess_environment under CANNOT_DUMP (fixes crash when
9805 batch-compiling for bootstrap).
9806
98072008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
9808 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9809
9810 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
9811 fix crash due to different init order.
9812
98132008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9814
9815 Changes and additions for NeXTstep windowing system (Cocoa and
9816 GNUstep) support.
9817
9818 * Makefile.in:
9819 * config.in: Support defines and build commands for NS port.
9820 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
9821 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
9822 * dispextern.h: Include nsgui.h and add needed typedefs under NS
9823 windowing.
9824 (struct face): Add synth_ital field.
9825 * dispnew.c: Include nsterm.h when compiling under NS windowing.
9826 (init_display): Initialize Vinitial_window_system to "ns" when so
9827 compiled.
9828 * emacs.c: Include GSConfig.h when compiling under GNUstep.
9829 (display_arg): Use under NS.
9830 (main): Under NS, allocate autorelease pool and handle command line
9831 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
9832 (standard_args): Add NS-specific args.
9833 (shut_down_emacs): Shut down NS terminal if compiled under NS.
9834 * font.c (DEFAULT_ENCODING): New variable.
9835 (font_find_for_lface): Use it.
9836 (syms_of_font): Load syms_of_nsfont under NS.
9837 * font.h: Declare nsfont_driver when compiled under NS.
9838 * fontset.c: When compiling under NS, include nsterm.h.
9839 (fontset_from_font): Autoconstruct fontset under NS.
9840 * frame.c (various): Under NS, include nsterm.h, add Qns window system
9841 symbol, document and use it.
9842 (do_switch_frame): When for_deletion under Cocoa, add
9843 Fraise_frame(Qnil).
9844 (x_set_frame_parameters): Ensure font attribute changes are picked up.
9845 (x_get_arg): Allow "yes" and "no" as boolean values.
9846 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
9847 Qright under Cocoa.
9848 (focus-follows-mouse): Default to 0 under NS.
9849 * frame.h (enum output_method): Add output_ns.
9850 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
9851 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
9852 (FRAME_WINDOW_P): NS-specific definition.
9853 * fringe.c (max_used_fringe_bitmap): Make public.
9854 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
9855 (getloadavg): Use NeXT code under descendant OS's.
9856 * image.c (includes and header section, x_create_bitmap_from_data)
9857 (x_create_bitmap_from_file, free_bitmap_record, image_background)
9858 (image_background_transparent, x_clear_image_1)
9859 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
9860 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
9861 (x_to_xcolors, x_from_xcolors, x_disable_image)
9862 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
9863 other GUIs, including XPM support using code originally written for
9864 Carbon GUI.
9865 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
9866 using NS API.
9867 (image_ascent): Use font metrics macros instead of direct struct field
9868 access.
9869 * keyboard.c (includes): Add nsterm.h when compiling under NS.
9870 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
9871 Also, handle NS as GTK for menu bar purposes.
9872 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
9873 toolkit where they differ.
9874 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
9875 use cachelist, still needed under NS.
9876 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
9877 (struct widget_value): Define it here for menu.c.
9878 * keymap.c (includes): Include modifier internals.
9879 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
9880 NS.
9881 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
9882 support for preferring sequences using certain modifiers, specified by
9883 the FIRSTONLY argument.
9884 * lisp.h (hash_remove): Rename to avoid name clash when compiling
9885 under NS GNUstep implementation.
9886 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
9887 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
9888 * menu.c: Include nsterm.h under NS.
9889 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
9890 (free_menubar_widget_tree_value, update_submenu_strings)
9891 (find_and_call_menu_selection): Treat NS as X and NT.
9892 (find_and_return_menu_selection): New function, used for popup menus.
9893 * nsgui.h:
9894 * nsterm.h:
9895 * nsfns.m:
9896 * nsimage.m:
9897 * nsmenu.m:
9898 * nsselect.m:
9899 * nsterm.m: New files.
9900 * process.c (wait_reading_process_output): Under NS, call ns_select()
9901 instead of plain select().
9902 * syntax.c (char_quoted): Under NS, avoid a crash when called near
9903 beginning of buffer.
9904 * sysselect.h (init_process): Rename when compiling under Cocoa to
9905 avoid name conflict.
9906 * termhooks.h (display_info): Add ns_display_info to union.
9907 * terminal.c (Fterminal_live_p): Add ns to terminal types.
9908 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
9909 COCOA environment.
9910 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
9911 unexec() signature. (Note, this will dump, but the resulting file
9912 crashes; unexosx is used instead; keeping around for reference and
9913 possible aid in getting dump working under GNUstep.)
9914 * w32gui.h (button_type, widget_value): Remove definitions (now in
9915 keyboard.h).
9916 * window.c: Include nsterm.h when compiling under NS.
9917 * xdisp.c (includes): Include nsterm.h when compiling under NS.
9918 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
9919 other GUI windowing systems.
9920 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
9921 GTK.
9922 (x_consider_frame_title): Under NS, set icon type and frame
9923 modified-state indicator; use ns_set_name_as_filename() when using
9924 formatted title.
9925 (update_window_cursor): Make public when compiling under NS.
9926 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
9927 (hourglass_atimer, Vhourglass_delay
9928 * xfaces.c (header section, init_frame_faces, clear_font_table)
9929 (defined_color, unload_color, x_face_list_fonts)
9930 (prepare_face_for_display): Add NS support parallel to other GUIs.
9931 Emulate GCs like other non-X GUIs.
9932 (split_font_name): Don't lowercase font name under NS.
9933 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
9934 under NS.
9935 * s/darwin.h: Add support for compilation under NS.
9936
99372008-07-15 Jason Rumney <jasonr@gnu.org>
9938
9939 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
9940 (w32_show_hourglass): Rename from show_hourglass.
9941 (w32_hide_hourglass): Rename from hide_hourglass.
9942 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
9943 (Vhourglass_delay): Declare extern.
9944 (hourglass_started): Remove.
9945
9946 * xdisp.c (Vhourglass_delay): Remove static.
9947 (hourglass_started, start_hourglass, cancel_hourglass):
9948 Don't include these versions on WINDOWSNT.
9949
99502008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9951
9952 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
9953 variables (formerly in xfns.c).
9954 (show_hourglass, hide_hourglass): New prototypes (same).
9955 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
9956 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
9957 in xfns.c).
9958 (syms_of_xdisp): Declare/initialize display-hourglass,
9959 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
9960 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
9961 formerly in xfns.c.
9962 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
9963 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
9964 (start_hourglass, cancel_hourglass): Remove.
9965 (show_hourglass, hide_hourglass): Remove prototypes and static
9966 modifiers.
9967 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
9968 hourglass_atimer, hourglass_shown_p declaration/initialization.
9969 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
9970 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
9971 (start_hourglass, cancel_hourglass): Remove.
9972 (show_hourglass, hide_hourglass): Remove prototypes and static
9973 modifiers.
9974 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
9975 hourglass_atimer, hourglass_shown_p declaration/initialization.
9976 * w32fns.c (display_hourglass_p, Vhourglass_delay)
9977 (DEFAULT_HOURGLASS_DELAY): Remove.
9978 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
9979 hourglass_shown_p declaration/initialization.
9980
99812008-07-14 Jason Rumney <jasonr@gnu.org>
9982
9983 * w32fns.c (w32_get_arg): Remove wrapper function.
9984 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
9985 directly.
9986 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
9987
99882008-07-14 Kenichi Handa <handa@m17n.org>
9989
9990 * xfont.c (xfont_open): Add workaround for X's bug.
9991
99922008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
9993
9994 * fontset.c: Include <stdio.h> unconditionally.
9995
99962008-07-13 Michael Albinus <michael.albinus@gmx.de>
9997
9998 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
9999 for filtering.
10000
100012008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
10002
10003 * s/vms.h: Use __GNUC__ instead of _GNUC_.
10004
10005 * m/macppc.h:
10006 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
10007
10008 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
10009 (SPECIAL_EMACS_INT):
10010 * m/ia64.h (SPECIAL_EMACS_INT):
10011 * m/amdx86-64.h (SPECIAL_EMACS_INT):
10012 * s/gnu.h (NLIST_STRUCT):
10013 * s/aix4-2.h (X11R5_INHIBIT_I18N):
10014 * s/gnu-linux.h (LINUX):
10015 * s/msdos.h (HAVE_FACES):
10016 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
10017
10018 * systty.h:
10019 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
10020 anymore.
10021
100222008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
10023
10024 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
10025 always defined as int.
10026
10027 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
10028 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
10029 * s/gnu-linux.h (HAVE_WAIT_HEADER):
10030 * s/freebsd.h (HAVE_WAIT_HEADER):
10031 * s/bsd-common.h (HAVE_UNION_WAIT):
10032 * s/aix4-2.h (HAVE_WAIT_HEADER):
10033 * m/mips.h (HAVE_UNION_WAIT):
10034 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
10035 (COFF, static): Do not define, they are undefined later in the file.
10036
10037 * process.c (update_status): Don't use a union.
10038 (status_convert):
10039 (sigchld_handler): Use int instead of WAITTYPE.
10040
100412008-07-12 Chong Yidong <cyd@stupidchicken.com>
10042
10043 * indent.c (Fvertical_motion): Restore hscroll before moving to
10044 goal column.
10045
100462008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
10047
10048 * lisp.h: Remove left over code.
10049
100502008-07-11 Andreas Schwab <schwab@suse.de>
10051
10052 * lisp.h: Fix logic in last change.
10053
10054 * menu.h: New file.
10055 * menu.c: Include it.
10056 * xmenu.c: Likewise.
10057 * Makefile.in: Update dependencies.
10058
100592008-07-11 Kenichi Handa <handa@m17n.org>
10060
10061 * fontset.c (fontset_from_font): Cancel the previous change.
10062
100632008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
10064
10065 * lisp.h:
10066 * w32heap.c:
10067 * emacs.c:
10068 * alloc.c: Replace all references of NO_UNION_TYPE with
10069 USE_LISP_UNION_TYPE.
10070
10071 * m/xtensa.h (NO_UNION_TYPE):
10072 * m/vax.h (NO_UNION_TYPE):
10073 * m/template.h (NO_UNION_TYPE):
10074 * m/sparc.h (NO_UNION_TYPE):
10075 * m/mips.h (NO_UNION_TYPE):
10076 * m/macppc.h (NO_UNION_TYPE):
10077 * m/m68k.h (NO_UNION_TYPE):
10078 * m/iris4d.h (NO_UNION_TYPE):
10079 * m/intel386.h (NO_UNION_TYPE):
10080 * m/ibms390x.h (NO_UNION_TYPE):
10081 * m/ibms390.h (NO_UNION_TYPE):
10082 * m/ibmrs6000.h (NO_UNION_TYPE):
10083 * m/ia64.h (NO_UNION_TYPE):
10084 * m/hp800.h (NO_UNION_TYPE):
10085 * m/arm.h (NO_UNION_TYPE):
10086 * m/amdx86-64.h (NO_UNION_TYPE):
10087 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
10088 defining it the same.
10089
100902008-07-10 Chong Yidong <cyd@stupidchicken.com>
10091
10092 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
10093
100942008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
10095
10096 * fileio.c:
50426a04 10097 * sysdep.c:
aac0c6e3
MR
10098 * systty.h:
10099 * m/ibmrs6000.h:
10100 * m/iris4d.h:
10101 * s/aix4-2.h:
10102 * s/freebsd.h:
10103 * s/gnu-linux.h:
10104 * s/hpux10-20.h:
10105 * s/hpux11.h:
10106 * s/netbsd.h:
10107 * s/sol2-3.h:
10108 * s/sol2-4.h:
10109 * s/sol2.h:
10110 * s/usg5-4.h:
10111 * s/vms.h: Remove references to unused variables.
10112
101132008-07-10 Andreas Schwab <schwab@suse.de>
10114
10115 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
10116 pattern before matching the generic family.
10117
101182008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
10119
10120 * unexec.c:
10121 * s/vms.h:
10122 * s/usg5-4-2.h:
10123 * s/sol2-5.h:
10124 * s/freebsd.h:
10125 * s/darwin.h: Remove dead code.
10126
10127 * m/template.h:
10128 * m/sparc.h:
10129 * m/mips.h:
10130 * m/m68k.h:
10131 * m/iris4d.h:
10132 * m/intel386.h:
10133 * m/ibms390x.h:
10134 * m/ibms390.h:
10135 * m/ia64.h:
10136 * m/hp800.h:
10137 * m/arm.h:
10138 * m/amdx86-64.h: Remove dead code and references to unused
10139 and compiler defined symbols.
10140
10141 * unexmips.c:
10142 * unexelf.c: Remove references to desupported systems.
10143
10144 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
10145
10146 * m/powermac.h: Remove boilerplate comments.
10147 (NO_REMAP): Remove unused definition.
10148
10149 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
10150 define them.
10151
101522008-07-10 Kenichi Handa <handa@m17n.org>
10153
10154 * xfont.c (xfont_open): Log the reason of failure.
10155
101562008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
10157
10158 * fontset.c (fontset_get_font_group):
10159 * font.c (font_check_otf): Specify argument types.
10160
101612008-07-09 Kenichi Handa <handa@m17n.org>
10162
10163 * coding.c (detect_coding_utf_8): Set detect_info->found only when
10164 non-ASCII char is found.
10165
10166 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
10167 (reorder_font_vector): Change the arg preferred_family to font.
10168 Prefer the spec matching with font.
10169 (fontset_get_font_group): New function.
10170 (fontset_find_font): Change the format of an element of a realized
10171 fontset. Use fontset_get_font_group.
10172 (fontset_font): Try the current fontset, the default fontset, the
10173 fallbacks of the current fontset, and the fallbacks of the default
10174 fontset in this order.
10175 (face_for_char): Delete the shortcut to use the current font.
10176 (fontset_from_font): Don't set fonts for Latin in the fontset.
10177
10178 * font.h (font_make_object, font_match_p): Adjust prototypes.
10179
10180 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
10181
10182 * font.c (font_make_object): New arg entity and pixelsize.
10183 (font_check_otf_features, font_check_otf): New functions.
10184 (font_match_p): Check :lang, :script, and :otf properties.
10185
10186 * xfont.c (xfont_open): Adjust it for the change of
10187 font_make_object.
10188 (xfont_text_extents): Fix initial setting of metrics.
10189
10190 * ftfont.c (struct ftfont_info): New member index, delete member
10191 fc_charset_idx. Make the member order compatible with struct
10192 xftfont_info.
10193 (fc_charset_table): Change charset names to registry names.
10194 (ftfont_pattern_entity): Delete the args registry and
10195 fc_charset_idx. Change the value of :font-entity property
10196 to (FONTNAME . INDEX). Always set :registry property to
10197 `iso10646-1'.
10198 (struct ftfont_cache_data): New struct.
10199 (ftfont_lookup_cache): New arg for_face.
10200 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
10201 (ftfont_driver): Set the member otf_capability.
10202 (ftfont_get_charset): Adjust it for the change of
10203 fc_charset_table.
10204 (OTF_TAG_SYM): New macro.
10205 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
10206 for the change of fc_charset_table.
10207 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
10208 ftfont_pattern_entity. Add FC_INDEX to objset.
10209 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
10210 and ftfont_pattern_entity.
10211 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
10212 font_make_object, struct ftfont_info.
10213 (ftfont_has_char): Use ftfont_get_fc_charset.
10214 (ftfont_otf_features, ftfont_otf_capability): New functions.
10215 (ftfont_shape): Use ftfont_get_otf.
10216 (ftfont_text_extents): Fix initial setting of metrics.
10217
10218 * xftfont.c (struct xftfont_info): New member ft_size. Make the
10219 member order compatible with struct ftfont_info.
10220 (xftfont_open): Add FC_CHARSET to the pattern. Set
10221 xftfont_info->ft_size. Don't unlock the face. Check BDF
10222 properties if appropriate.
10223 (xftfont_close): Unlock the face.
10224 (xftfont_anchor_point, xftfont_shape): Deleted.
10225 (syms_of_xftfont): Don't set members anchor_point and shape of
10226 xftfont_driver.
10227
10228 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
10229 font_make_object.
10230
10231 * w32font.c (w32font_open): Adjust it for the change of
10232 font_make_object.
10233 (w32font_open_internal): Don't set properties of font_object here.
10234
102352008-07-08 Chong Yidong <cyd@stupidchicken.com>
10236
10237 * macfns.c (x_create_tip_frame):
10238 * w32fns.c (x_create_tip_frame):
10239 * xfns.c (x_create_tip_frame): Pass parameter argument to
10240 face-set-after-frame-default.
10241
10242 * xfaces.c (Finternal_merge_in_global_face): Save merged
10243 attributes for the default face back into the face vector.
10244
102452008-07-08 Andreas Schwab <schwab@suse.de>
10246
10247 * fontset.h: Declare fontset_from_font. Don't declare
10248 new_fontset_from_font and fontset_from_font_name.
10249 * xterm.c: Include "fontset.h".
10250 * Makefile.in (xterm.o): Update dependencies.
10251
102522008-07-08 Glenn Morris <rgm@gnu.org>
10253
10254 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
10255 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
10256
102572008-07-07 Chong Yidong <cyd@stupidchicken.com>
10258
10259 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
10260 (x_set_frame_parameters): Don't bind it.
10261
102622008-07-07 Juanma Barranquero <lekktu@gmail.com>
10263
10264 * w32fns.c (map_w32_filename): Declare extern.
10265
102662008-07-07 Jason Rumney <jasonr@gnu.org>
10267
10268 * w32term.c (WS_EX_LAYERED): Define if not already.
10269
102702008-07-06 Chong Yidong <cyd@stupidchicken.com>
10271
10272 * xfaces.c (set_font_frame_param): Don't try to set the font
10273 parameter if it is still unspecified in the lface.
10274
102752008-07-05 Chong Yidong <cyd@stupidchicken.com>
10276
10277 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
10278 face if it didn't already exist.
10279
10280 * xdisp.c (try_window_id): Give up if word-wrapping is on.
10281
102822008-07-05 Andreas Schwab <schwab@suse.de>
10283
10284 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
10285
102862008-07-05 Chong Yidong <cyd@stupidchicken.com>
10287
10288 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
10289 word-wrapping.
10290 (IT_DISPLAYING_WHITESPACE): New macro.
10291 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
10292 when word-wrapping. Simplify word-wrapping logic. Use correct
10293 pixel positions when saving copies of the iterator.
10294 (display_line): Use proper wrap point if the last character on a
10295 line was preceded by whitespace.
10296
102972008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
10298
10299 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
10300
103012008-07-04 Kenichi Handa <handa@m17n.org>
10302
10303 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
10304
10305 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
10306
103072008-07-02 Jason Rumney <jasonr@gnu.org>
10308
10309 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 10310 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
10311
10312 * xdisp.c (next_element_from_display_vector): Move assignment out
10313 of if statement.
10314
103152008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
10316
10317 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
10318
10319 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
10320 (syms_of_fileio): Initialize and export them.
10321 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
10322
10323 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
10324 (Fsystem_move_file_to_trash): New function.
10325 (syms_of_w32fns): Export it to lisp.
10326
103272008-07-01 Jason Rumney <jasonr@gnu.org>
10328
10329 * w32font.c (w32font_text_extents): Don't count overhang as part
10330 of width.
10331
103322008-06-30 Miles Bader <miles@gnu.org>
10333
10334 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
10335 Add `avoid_cursor_p' field.
10336
10337 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
10338 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
10339 (append_glyph, append_composite_glyph, produce_image_glyph)
10340 (append_stretch_glyph): Initialize avoid_cursor_p.
10341 (get_it_property): Rename from `get_line_height_property'.
10342 (x_produce_glyphs): Use get_it_property.
10343 (handle_line_prefix, push_display_prop): New functions.
10344 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
10345 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
10346 New variables.
10347 (syms_of_xdisp): Initialize them.
10348
103492008-06-30 Kenichi Handa <handa@m17n.org>
10350
10351 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
10352 XftDefaultSubstitute (they are called in XftFontMatch).
10353 (xftfont_open): Fix args to ftfont_font_format.
10354
10355 * ftfont.c (fc_charset_table): New member lang.
10356 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 10357 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
10358 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
10359 (ftfont_open): Fix args to ftfont_font_format.
10360 (ftfont_font_format): New arg filename.
10361
103622008-06-30 Chong Yidong <cyd@stupidchicken.com>
10363
10364 * xfaces.c (Finternal_merge_in_global_face): If default face was
10365 modified, realize it again. Update the font face attribute.
10366
103672008-06-29 Jason Rumney <jasonr@gnu.org>
10368
10369 * w32term.c (x_set_frame_alpha): Fix logic.
10370
103712008-06-29 Kenichi Handa <handa@m17n.org>
10372
10373 * fontset.c (Finternal_char_font): Return font-object instead of
10374 font-name.
10375
10376 * composite.c (get_composition_id): Fix the width calculation for TAB.
10377
103782008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
10379
10380 * indent.c (Fvertical_motion): Properly handle float column arg.
10381
103822008-06-28 Jason Rumney <jasonr@gnu.org>
10383
10384 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
10385 (pfnSetLayeredWindowAttributes): New function pointer.
10386 (w32_initialize): Initialize it when supported.
10387 (x_set_frame_alpha): New function.
10388
10389 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
10390 (w32_frame_parm_handlers): Set alpha handler.
10391
10392 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
10393
103942008-06-27 Jason Rumney <jasonr@gnu.org>
10395
10396 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
10397 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
10398 (w32_to_x_charset, x_to_w32_charset)
10399 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
10400 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
10401 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
10402 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
10403 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
10404 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
10405 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
10406 (Qw32_charset_unicode): Remove.
10407 (syms_of_w32fns): Update for above changes.
10408
10409 * w32font.c (w32_to_x_charset, x_to_w32_charset)
10410 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
10411 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
10412 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
10413 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
10414 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
10415 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
10416 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
10417 (syms_of_w32font): Update for above changes.
10418
104192008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
10420
10421 * s/usg5-4.h: Fix previous change: keep the correct branch of a
10422 removed #if.
10423 (USG_SHARED_LIBRARIES): Remove duplicate definition.
10424
104252008-06-26 Juanma Barranquero <lekktu@gmail.com>
10426 Eli Zaretskii <eliz@gnu.org>
10427
10428 * makefile.w32-in (LOCAL_FLAGS):
10429 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
10430
10431 * sysdep.c (_spawnlp, _getpid):
10432 Declare with explicit _cdecl instead of _CRTAPI1.
10433
10434 * editfns.c (Fget_internal_run_time):
10435 Check for WINDOWSNT with #ifdef, not #if.
10436
104372008-06-26 Jason Rumney <jasonr@gnu.org>
10438
10439 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
10440
10441 * w32term.c (x_draw_glyph_string_foreground)
10442 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
10443 Use FONT_HANDLE macro.
10444 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
10445
10446 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
10447 (uniscribe_encode_char): Use FONT_HANDLE macro.
10448
10449 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
10450 (w32font_text_extents): Use precast w32_font.
10451 (w32font_close): Free cached metrics.
10452 (w32font_open_internal): Allocate space for name on stack.
10453
104542008-06-26 Chong Yidong <cyd@stupidchicken.com>
10455
10456 * xdisp.c (extend_face_to_end_of_line): Fix last change.
10457
104582008-06-26 Jason Rumney <jasonr@gnu.org>
10459
10460 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
10461 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
10462
104632008-06-26 Juanma Barranquero <lekktu@gmail.com>
10464
10465 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
10466
104672008-06-26 Jason Rumney <jasonr@gnu.org>
10468
10469 * w32bdf.c, w32bdf.h: Remove obsolete files.
10470
10471 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
10472
10473 * w32gui.h: Don't include w32bdf.h.
10474 (XCharStruct, enum w32_char_font_type, W32FontStruct):
10475 Remove obsolete font support.
10476
10477 * w32font.h (struct w32font_info): Remove compat_w32_font.
10478 Add hfont member.
10479 (FONT_COMPAT): Remove obsolete macro.
10480
10481 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
10482 (w32font_encode_char, w32font_text_extents): Use new hfont member.
10483 (w32font_open_internal): Remove compat code. Set new hfont member.
10484 (Fx_select_font): Use new hfont member.
10485
10486 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
10487 (uniscribe_encode_char): Use new hfont member.
10488
10489 * w32term.c (x_draw_glyph_string_foreground)
10490 (x_draw_composite_glyph_string_foreground): Use new hfont member.
10491 (x_draw_glyph_string): Use metrics in w32font_info.
10492
104932008-06-26 Kenichi Handa <handa@m17n.org>
10494
10495 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
10496
104972008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
10498
10499 * unexnext.c:
10500 * m/ews4800.h:
10501 * m/hp9000s300.h:
10502 * m/ibm370aix.h:
10503 * m/mips-siemens.h:
10504 * m/ncr386.h:
10505 * m/next.h:
10506 * m/pmax.h:
10507 * m/powerpcle.h:
10508 * m/tandem-s2.h:
10509 * s/386bsd.h:
10510 * s/bsd386.h:
10511 * s/bsd4-1.h:
10512 * s/bsd4-2.h:
10513 * s/bsdos2-1.h:
10514 * s/bsdos2.h:
10515 * s/bsdos3.h:
10516 * s/bsdos4.h:
10517 * s/nextstep.h:
10518 * s/ultrix4-3.h:
10519 * s/usg5-0.h:
10520 * s/usg5-2-2.h:
10521 * s/usg5-2.h:
10522 * s/usg5-4-3.h:
10523 * s/ux4800.h:
10524 * s/uxpds.h:
10525 * s/uxpv.h: Remove support for obsolete systems.
10526 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 10527 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
10528 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
10529 Remove, insert contents in s/aix4-2.h.
10530 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
10531 * s/bsd4-3.h: Rename to ...
10532 * s/bsd-common.h: ... this.
10533 * data.c:
10534 * doc.c:
10535 * ecrt0.c:
10536 * emacs.c:
10537 * fileio.c:
10538 * floatfns.c:
10539 * keyboard.c:
10540 * mem-limits.h:
10541 * print.c:
10542 * process.c:
10543 * sysdep.c:
10544 * syssignal.h:
10545 * systty.h:
10546 * syswait.h:
10547 * term.c:
10548 * unexec.c:
10549 * unexelf.c:
10550 * unexhp9k800.c:
10551 * m/hp800.h:
10552 * m/ibmrs6000.h:
10553 * m/mips.h:
10554 * m/vax.h:
10555 * s/darwin.h:
10556 * s/freebsd.h:
10557 * s/gnu.h:
10558 * s/ms-w32.h:
10559 * s/msdos.h:
10560 * s/netbsd.h:
10561 * s/template.h: Remove references to obsolete variables.
10562
10563 * Makefile.in: Add dependencies for all unexec files.
10564 (admindir): Remove unused variable.
10565 (UNEXEC_SRC): Remove references.
10566
105672008-06-25 Chong Yidong <cyd@stupidchicken.com>
10568
10569 * xfns.c (x_default_font_parameter): If Xft is available, first
10570 try Monospace-12 for the default font.
10571
105722008-06-25 Jason Rumney <jasonr@gnu.org>
10573
10574 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
10575
105762008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
10577
10578 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
10579
10580 * buffer.c (syms_of_buffer): Remove default-word-wrap.
10581
105822008-06-25 Juanma Barranquero <lekktu@gmail.com>
10583
10584 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
10585 <scroll-conservatively>: Fix typo in docstring.
10586
10587 * xselect.c (Fx_send_client_event): Doc fix.
10588
105892008-06-25 Kenichi Handa <handa@m17n.org>
10590
10591 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
10592
10593 * font.c (font_parse_fcname): Remove unused variables.
10594 (font_sort_entites): Delete the arg SPEC. Caller changed.
10595 Fix for the case of ! best_only.
10596 (font_delete_unmatched): Check DPI and AVGWIDTH too.
10597
10598 * lisp.h (Fstring_to_unibyte): EXFUN it.
10599
10600 * character.h (str_to_unibyte): Extern it.
10601
10602 * character.c (str_to_unibyte): New function.
10603
10604 * fns.c (Fstring_to_unibyte): New function.
10605 (syms_of_fns): Defsubr it.
10606
106072008-06-24 Kenichi Handa <handa@m17n.org>
10608
10609 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
10610 DPI too.
10611 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
10612
106132008-06-24 Andreas Schwab <schwab@suse.de>
10614
10615 * Makefile.in (${lispsource}loaddefs.el): Rename from
10616 ../lisp/loaddefs.el.
10617 (bootstrap-clean): Do what distclean does but don't remove
10618 Makefile.
10619 (distclean): Depend on bootstrap-clean and remove Makefile.
10620
106212008-06-24 Chong Yidong <cyd@stupidchicken.com>
10622
10623 * buffer.h (struct buffer): New member word_wrap.
10624
10625 * buffer.c (syms_of_buffer): New variables default-word-wrap and
10626 word-wrap.
10627 (init_buffer_once): Initialize them.
10628
10629 * dispextern.h (struct it): Replace bool truncate_lines_p with a
10630 line_wrap enum possessing three possible values.
10631
10632 * termopts.h: Replace truncate_partial_width_windows with
10633 Vtruncate_partial_width_windows.
10634
10635 * dispnew.c (direct_output_for_insert): Avoid direct output when
10636 inserting a space with word wrap on.
10637
10638 * indent.c (compute_motion): Obey integer values of
10639 truncate-partial-width-windows.
10640
10641 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
10642 replacing truncate_partial_width_windows.
10643 (init_iterator): If Vtruncate_partial_width_windows is an integer,
10644 truncate only if the window width is below that integer.
10645 (start_display, resize_mini_window, produce_stretch_glyph)
10646 (display_string, move_it_in_display_line_to): Use line_wrap.
10647 (back_to_previous_visible_line_start, reseat_1): Reset
10648 string_from_display_prop_p.
10649 (display_line): Extend default face to end of line when wrapping.
10650
106512008-06-24 Kim F. Storm <storm@cua.dk>
10652
10653 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
10654 to wrap continued lines at word boundaries.
10655
106562008-06-24 Jason Rumney <jasonr@gnu.org>
10657
10658 * font.c (Ffont_face_attributes): Multiply pixel size before point
10659 conversion to avoid multiplying rounding error.
10660
106612008-06-23 Jason Rumney <jasonr@gnu.org>
10662
10663 * w32term.c (x_draw_glyph_string_background)
10664 (x_draw_glyph_string): Remove old bdf font code.
10665
10666 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
10667
106682008-06-22 Kenichi Handa <handa@m17n.org>
10669
10670 * font.c (font_find_for_lface): Try the adstyle specified in
10671 the property of LFACE_FONT of LFACE (if any).
10672
106732008-06-21 Seiji Zenitani <zenitani@mac.com>
10674 Ryo Yoshitake <ryo@shiftmode.net>
10675
10676 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
10677
106782008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
10679
10680 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
10681 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
10682 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
10683 (witness-emacs): Remove.
10684 (lisp, shortlisp): Move loaddefs.el earlier.
10685 (mostlyclean): Forget about witness-emacs.
10686
106872008-06-22 Glenn Morris <rgm@gnu.org>
10688
10689 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
10690 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
10691
106922008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
10693
10694 * Makefile.in (PRECOMP): Remove.
10695 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
10696 (witness-emacs): Run `compile-first'.
10697 (.el.elc): Use the new compile-onefile target.
10698
106992008-06-21 Kenichi Handa <handa@m17n.org>
10700
10701 * xftfont.c (xftfont_open): Handle QCembolden only when
10702 FC_EMBOLDEN is defined.
10703
107042008-06-21 Andreas Schwab <schwab@suse.de>
10705
10706 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
10707 (.el.elc): Likewise.
10708
107092008-06-21 Miles Bader <miles@gnu.org>
10710
10711 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
10712 build dir, not the lisp source dir.
10713
107142008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
10715
10716 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
10717 (bootstrapclean): Remove.
10718 (.el.elc): New rule.
10719 (PRECOMP): New var.
10720 (../lisp/subdirs.el): Remove.
10721 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
10722 (witness-emacs): New target.
10723 (mostlyclean): Remove witness-emacs as well.
10724 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
10725 Add witness-emacs dependency.
10726
107272008-06-20 Chong Yidong <cyd@stupidchicken.com>
10728
10729 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
10730 defined by the font.
10731
107322008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
10733
10734 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
10735 (bootstrap-clean): New target that keeps TAGS around.
10736 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
10737 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
10738
107392008-06-20 Jason Rumney <jasonr@gnu.org>
10740
10741 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
10742 Remove obsolete font code.
10743
10744 * w32font.c (font_matches_spec): Use csb bitfield from font signature
10745 to determine language support.
10746
107472008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
10748
10749 * sysdep.c (cfsetspeed): New fun extracted from the code.
10750 (cfmakeraw): Move before first use.
10751
107522008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
10753
10754 * sysdep.c (cfmakeraw): Provide fallback implementation.
10755 (serial_configure): Provide fallback implementation of cfsetspeed.
10756
107572008-06-20 Kenichi Handa <handa@m17n.org>
10758
10759 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
10760 the pattern.
10761
10762 * fontset.c (fontset_from_font): Copy font_spec before changing
10763 the elements.
10764
10765 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
10766
107672008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
10768
10769 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
10770 for explicit `font' parameters.
10771
10772 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
10773
107742008-06-19 Kenichi Handa <handa@m17n.org>
10775
10776 * frame.c: Include <ctype.h>.
10777 (x_set_font_backend): Allow spacing characters in the X resource
10778 for FontBackend.
10779
107802008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
10781
10782 * w32fns.c, xfns.c (Qfont_param): New var.
10783 (syms_of_w32fns): Initialize it.
10784 (x_default_font_parameter): Record explicit `font' into
10785 `font-parameter'.
10786
107872008-06-18 Kenichi Handa <handa@m17n.org>
10788
10789 * font.c (font_parse_xlfd): Fix previous change.
10790 (font_parse_fcname): Don't use :fc-unknown-spec.
10791 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
10792 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
10793 (font_add_log): Prepend the driver name to the resulting fonts.
10794
10795 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
10796 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
10797 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
10798
10799 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
10800 (QCembolden): New variables.
10801 (syms_of_xftfont): DEFSYM them.
10802 (xftfont_open): Call XftFontMatch. Don't trust the result of
10803 XftTextExtents8 if the pixel_size is less than 5.
10804
108052008-06-18 Andreas Schwab <schwab@suse.de>
10806
10807 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
10808 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
10809
108102008-06-18 Jason Rumney <jasonr@gnu.org>
10811
10812 * w32font.c (w32font_list, w32font_match): Add logging.
10813
10814 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
10815
108162008-06-17 Chong Yidong <cyd@stupidchicken.com>
10817
10818 * font.c (font_parse_fcname): Store divider characters for
10819 unknown-spec list. For known key symbols, intern using correct
10820 symbol name.
10821
108222008-06-17 Kenichi Handa <handa@m17n.org>
10823
10824 * xfaces.c (realize_default_face): If the frame is not on window
10825 system, set the fontset of face to nil.
10826
108272008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
10828
10829 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
10830
108312008-06-16 Juanma Barranquero <lekktu@gmail.com>
10832
10833 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
10834 (build_font_name_from_vector): Delete externs.
10835
10836 * xfaces.c (struct font_name): Don't declare.
10837
108382008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
10839
10840 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
10841
108422008-06-16 Chong Yidong <cyd@stupidchicken.com>
10843
10844 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
10845
108462008-06-16 Juanma Barranquero <lekktu@gmail.com>
10847
10848 * font.c (Ffont_spec): Fix usage in docstring.
10849 (Ffont_face_attributes): Doc fix.
10850
108512008-06-16 Andreas Schwab <schwab@suse.de>
10852
10853 * font.c (Ffont_face_attributes): Fix definition.
10854
108552008-06-16 Jason Rumney <jasonr@gnu.org>
10856
10857 * font.h (font_style_symbolic_from_value): Remove.
10858
10859 * font.c (font_style_symbolic_from_value): Remove.
10860 (font_style_symbolic): Revert to pre 2008-06-13 version.
10861
10862 * w32font.c (w32_to_fc_weight): New function.
10863 (w32font_full_name, logfont_to_fcname): Use it.
10864
108652008-06-16 Kenichi Handa <handa@m17n.org>
10866
10867 * font.c (font_check_object): Delete it.
10868 (font_clear_cache): Check if a font-object is alive.
10869 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
10870 font-object to nil.
10871 (font_close_object): Don't check FONT_CLOSE_OBJECT.
10872 (font_at): Don't call font_check_object.
10873 (Ffont_get): Return a symbol for :weight, :slant, and :width.
10874
108752008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
10876
10877 * puresize.h (BASE_PURESIZE): Increase to 1230000.
10878
108792008-06-16 Chong Yidong <cyd@stupidchicken.com>
10880
10881 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
10882
108832008-06-15 Chong Yidong <cyd@stupidchicken.com>
10884
10885 * font.c (font_parse_fcname): Only one decimal point.
10886 (font_unparse_fcname): Handle data in family and foundry indices
10887 as symbols, not strings.
10888 (font_unparse_gtkname, Ffont_face_attributes): New functions.
10889
10890 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
10891
10892 * font.h (font_unparse_gtkname): Add prototype.
10893
108942008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
10895
10896 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
10897
108982008-06-15 Andreas Schwab <schwab@suse.de>
10899
10900 * font.c (font_update_drivers): Fix crash when no drivers match.
10901
109022008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
10903
10904 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
10905 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
10906
109072008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
10908
10909 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
10910
109112008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
10912
10913 * process.c (Fserial_process_configure, Fprocess_send_eof):
10914 Use EQ to compare Lisp_Objects.
10915
109162008-06-13 Jason Rumney <jasonr@gnu.org>
10917
10918 * w32fns.c (Fw32_select_font): Remove old font API function.
10919
10920 * w32font.c (logfont_to_fcname): New function.
10921 (Fx_select_font): New font dialog function compatible with
10922 GTK/fontconfig version.
10923
10924 * font.c (font_style_symbolic_from_value): New function.
10925 (font_style_symbolic): Use it.
10926
10927 * font.h (font_style_symbolic_from_value): Declare new function.
10928
109292008-06-13 Juanma Barranquero <lekktu@gmail.com>
10930
10931 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
10932 <font-width-table>: Fix typos in docstrings.
10933
109342008-06-13 Daniel Engeler <engeler@gmail.com>
10935
10936 These changes add serial port access.
10937 * process.c: Add HAVE_SERIAL.
10938 (Fdelete_process, Fprocess_status, Fset_process_buffer)
10939 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
10940 (list_processes_1, select_wrapper, Fstop_process)
10941 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
10942 (status_notify): Modify to handle serial processes.
10943 [HAVE_SERIAL] (Fserial_process_configure)
10944 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
10945 New functions.
10946 * process.h (struct Lisp_Process): Add `type'.
10947 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
10948 New functions.
10949 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
10950 serial ports.
b71ac3dd 10951 (serial_open, serial_configure): New functions.
aac0c6e3
MR
10952 * w32.h: Add FILE_SERIAL.
10953 (struct _child_process): Add ovl_read, ovl_write.
10954
109552008-06-13 Kenichi Handa <handa@m17n.org>
10956
10957 * dispextern.h (enum lface_attribute_index): New member
10958 LFACE_FOUNDRY_INDEX.
10959
10960 * font.c (font_score): Delete arg alternate_families. Check only
10961 weight, slant, width, and size. Ignore the difference of alias
10962 style symbols.
10963 (font_sort_entites): Adjust for the above change. Reflect the
10964 order of font-driver to scores.
10965 (font_list_entities): Don't check alternate_familes here.
10966 (font_clear_prop): Handle foundry.
10967 (font_update_lface): Don't parse "foundry-family" form here.
10968 Handle FONT_FOUNDRY_INDEX.
10969 (font_find_for_lface): Likewise. Handle alternate families here.
10970 If registry is nil, try iso8859-1 and ascii-0.
10971 (font_open_for_lface): Pay attention to size in ENTITY.
10972 (font_open_by_name): Simplify by calling font_load_for_lface.
10973 (free_font_driver_list): Delete it.
10974 (font_update_drivers): Preserve the order of backends.
10975 (syms_of_font): Setting of sort_shift_bits adjusted for the change
10976 of font_score and font_sort_entites.
10977 (font_update_sort_order): Likewise.
10978
10979 * xfaces.c (LFACE_FOUNDRY): New macro.
10980 (check_lface_attrs): Check foundry.
10981 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
10982 (merge_face_vectors): Check foundry.
10983 (merge_face_ref): Likewise.
10984 (Finternal_set_lisp_face_attribute): Likewise.
10985 (x_update_menu_appearance): Likewise.
10986 (Finternal_get_lisp_face_attribute): Likewise.
10987 (lface_hash): Likewise.
10988 (lface_same_font_attributes_p): Likewise.
10989 (x_supports_face_attributes_p): Likewise.
10990 (tty_supports_face_attributes_p): Likewise.
10991 (Finternal_set_alternative_font_family_alist): Intern strings.
10992 (Finternal_set_alternative_font_registry_alist): Downcase strings.
10993 (realize_default_face): Set LFACE_FOUNDRY (lface).
10994
10995 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
10996 font-driver at first.
10997
10998 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
10999
110002008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
11001
11002 * lread.c (Fload): Use xfree, not free on saved_doc_string.
11003
110042008-06-12 Jim Meyering <meyering@redhat.com>
11005
11006 Make unexec_free handle NULL the same way free does.
11007 * unexmacosx.c (unexec_free): Ignore a NULL argument.
11008
110092008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
11010
11011 * character.h (CHAR_TO_BYTE_SAFE): New macro.
11012 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
11013 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
11014 (WEAK_ALIAS): Simplify.
11015 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
11016 when searching a unibyte buffer.
11017
110182008-06-12 Chong Yidong <cyd@stupidchicken.com>
11019
11020 * xfns.c (Fx_select_font): Rename from x-font-dialog.
11021
110222008-06-12 Juanma Barranquero <lekktu@gmail.com>
11023
11024 * w32font.c: Include ctype.h.
11025
110262008-06-11 Jason Rumney <jasonr@gnu.org>
11027
11028 * w32font.c (w32font_encode_char): Detect missing glyphs that are
11029 misreported as space.
11030 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
11031 as aliases for registry iso10646-1.
11032
110332008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
11034
11035 * buffer.c (clone_per_buffer_values): Skip `name'.
11036
110372008-06-11 Chong Yidong <cyd@stupidchicken.com>
11038
11039 * font.c (font_parse_fcname): Fix last change; accept decimal
11040 points in font size.
11041
110422008-06-10 Jason Rumney <jasonr@gnu.org>
11043
11044 * w32uniscribe.c (add_opentype_font_name_to_list):
11045 Skip non unicode fonts.
11046
110472008-06-10 Chong Yidong <cyd@stupidchicken.com>
11048
11049 * xfns.c (Fx_font_dialog): New function.
11050
11051 * gtkutil.c (xg_dialog_response_cb): Rename from
11052 xg_file_response_callback.
11053 (pop_down_dialog): Rename from pop_down_file_dialog.
11054 (xg_get_file_name): Callers changed.
11055 (xg_get_font_name): New function.
11056
11057 * gtkutil.h (xg_get_font_name): Insert prototype.
11058
110592008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
11060
11061 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
11062 x_underline_minimum_display_offset.
11063 (syms_of_xdisp): Declare it here rather than in xterm.c.
11064 * dispextern.h (underline_minimum_offset): Declare it.
11065 * w32term.c (x_draw_glyph_string): Use it.
11066 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
11067 (syms_of_xterm): Don't declare it any more.
11068 (x_draw_glyph_string): Adjust to the new name.
11069
8719abec 110702008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
11071
11072 * xterm.c (x_underline_minimum_display_offset): New var.
11073 (x_draw_glyph_string): Use it.
11074 (syms_of_xterm): Declare it.
11075
110762008-06-10 Chong Yidong <cyd@stupidchicken.com>
11077
11078 * font.c (font_parse_fcname): Accept GTK-style font names too.
11079
110802008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
11081
11082 * dired.c (file_name_completion): Don't return t if the match is exact
11083 but with different capitalization.
11084 * minibuf.c (Ftry_completion): Simplify.
11085
11086 * window.c (Vwindow_point_insertion_type): New var.
11087 (set_window_buffer): Use it.
11088 (syms_of_window): Init and export it to Lisp.
11089
110902008-06-10 Kenichi Handa <handa@m17n.org>
11091
11092 * font.h (font_intern_prop): Prototype adjusted.
11093
11094 * font.c (font_intern_prop): New arg force_symbol.
11095 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
11096 Adjust for the change of font_intern_prop.
11097
11098 * ftfont.c (ftfont_pattern_entity):
11099 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
11100 (w32_registry):
11101 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
11102 the change of font_intern_prop.
11103
111042008-06-09 Juanma Barranquero <lekktu@gmail.com>
11105
11106 * w32menu.c (digest_single_submenu): Declare extern.
11107
111082008-06-09 Jason Rumney <jasonr@gnu.org>
11109
11110 * w32term.c (x_make_frame_visible): Use alternate restore flags.
11111
11112 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
11113 (parse_single_submenu): Remove.
11114 (digest_single_submenu): Remove.
11115 (syms_of_w32menu): Don't initialise variables that have moved
11116 to menu.c.
11117 (set_frame_menubar): Sync with version in xmenu.c.
11118 (w32_menu_show): Sync with xmenu_show in xmenu.c.
11119
11120 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
11121 Make static again.
11122
111232008-06-09 Jason Rumney <jasonr@gnu.org>
11124
11125 Changes to w32 files related to the move of common menu code
11126 to menu.c on 2008-06-08 by Chong Yidong.
11127
11128 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
11129 defs to w32gui.h.
11130 (single_keymap_panes, push_menu_item, push_menu_pane):
11131 Make globally visible.
11132
11133 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
11134 (local_free, malloc_widget_value, free_widget_value)
11135 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
11136 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
11137 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
11138 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
11139 (menu_items, menu_items_allocated, menu_items_used)
11140 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
11141 (init_menu_items, finish_menu_items, discard_menu_items)
11142 (grow_menu_items, push_submenu_start, push_submenu_end)
11143 (push_left_right_boundary, push_menu_pane, push_menu_item)
11144 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
11145 (free_menubar_widget_tree_value, parse_single_submenu)
11146 (update_submenu_strings): Remove functions.
11147 (xmalloc_widget_value): Remove and declare extern.
11148
11149 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
11150 (OBJ1): Build it.
11151
11152 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
11153 (local_heap, local_alloc, local_free, malloc_widget_value)
11154 (free_widget_value): Define here.
11155
111562008-06-09 Kenichi Handa <handa@m17n.org>
11157
11158 * font.h (Qascii_0): Extern it.
11159
11160 * font.c (Qascii_0): New variable.
11161 (syms_of_font): DEFSYM it.
11162 (font_open_by_name): If the registry "iso8859-1" fails, try also
11163 "ascii-0".
11164
11165 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
11166
111672008-06-08 Kenichi Handa <handa@m17n.org>
11168
11169 * .gdbinit (xfont): New command.
11170
111712008-06-08 Andreas Schwab <schwab@suse.de>
11172
11173 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
11174 * Makefile.in (menu.o): Update dependencies.
11175
11176 * Makefile.in (obj): Always add menu.o.
11177 * emacs.c (main): Always call syms_of_menu.
11178 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
11179
111802008-06-08 Chong Yidong <cyd@stupidchicken.com>
11181
11182 * Makefile.in: Compile menu.c.
11183
11184 * lisp.h: Declare syms_of_menu.
11185
11186 * emacs.c (main): Call syms_of_menu.
11187
11188 * keyboard.h: Relocate platform-independent menu definitions from
11189 xmenu.c.
11190
11191 * menu.c: New file. Relocate platform-independent menu
11192 definitions from xmenu.c. Suggested by Adrian Robert.
11193
11194 * xmenu.c: Remove platform-independent menu definitions.
11195 (menu_items menu_items_inuse, menu_items_allocated)
11196 (menu_items_used, menu_items_n_panes)
11197 (menu_items_submenu_depth): Move to keyboard.h.
11198 (init_menu_items, finish_menu_items, unuse_menu_items)
11199 (discard_menu_items, restore_menu_items, save_menu_items)
11200 (grow_menu_items, push_submenu_start, push_submenu_end)
11201 (push_left_right_boundary, push_menu_pane, push_menu_item)
11202 (keymap_panes, single_keymap_panes, single_menu_item)
11203 (list_of_panes, list_of_items, find_and_call_menu_selection)
11204 (xmalloc_widget_value, free_menubar_widget_value_tree)
11205 (parse_single_submenu, digest_single_submenu)
11206 (update_submenu_strings): Move to menu.c.
11207
112082008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
11209
11210 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
11211
112122008-06-06 Miles Bader <miles@gnu.org>
11213
11214 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
11215 face, not frame default.
11216
112172008-06-05 Martin Rudalics <rudalics@gmx.at>
11218
11219 * window.c (pop_up_windows, pop_up_frames)
11220 (display_buffer_reuse_frames, Vpop_up_frame_function)
11221 (Vdisplay_buffer_function, Veven_window_heights)
11222 (Vspecial_display_buffer_names, Vspecial_display_regexps)
11223 (Vspecial_display_function, Vsame_window_buffer_names)
11224 (Vsame_window_regexps, split_height_threshold)
11225 (Vsplit_window_preferred_function): Move those vars to window.el.
11226 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
11227 (Fdisplay_buffer): Move those functions to window.el.
11228 (syms_of_window): Remove corresponding declarations.
11229 (display_buffer): New function.
11230 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
11231 * dispnew.c (Flast_nonminibuf_frame): New function.
11232 * buffer.c (Fpop_to_buffer): Move to window.el.
11233
112342008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
11235
11236 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
11237
112382008-06-05 Kenichi Handa <handa@m17n.org>
11239
11240 * coding.c (detect_coding): Fix previous change.
11241 (detect_coding_system): Likewise.
11242
112432008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
11244
11245 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
11246
11247 * keymap.c (Vminibuffer_local_filename_must_match_map):
11248 Rename from Vminibuffer_local_must_match_filename_map.
11249 (syms_of_keymap):
11250 * minibuf.c (Fcompleting_read): Adjust accordingly.
11251 * commands.h: Rename declaration as well.
11252
112532008-06-05 Kenichi Handa <handa@m17n.org>
11254
11255 * font.c (Ffont_spec): Don't use font_parse_family_registry for
11256 family name.
11257 (Ffont_put): Likewise.
11258
11259 * fontset.c (fontset_find_font): Call font_open_for_lface with the
11260 current font-spec.
11261
11262 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
11263 is unspecified.
11264
11265 * xfaces.c (realize_x_face): If the font-related face attributes
11266 are the same as those of default face, realize a new fontset from
11267 default->fontset.
11268 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
11269
112702008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
11271
11272 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
11273 (move_it_in_display_line): New wrapper.
11274
11275 * window.c (window_scroll_pixel_based_preserve_x)
11276 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
11277 (window_scroll_pixel_based, window_scroll_line_based):
11278 Use them to preserve column positions.
11279 (syms_of_window): Initialize them.
11280
11281 * indent.c (Fvertical_motion): Extend first arg to allow passing an
11282 (HPOS . VPOS) pair.
11283
11284 * dispextern.h (move_it_in_display_line): Declare.
11285
112862008-06-05 Juanma Barranquero <lekktu@gmail.com>
11287
11288 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
11289 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
11290 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
11291
112922008-06-04 Juanma Barranquero <lekktu@gmail.com>
11293
11294 * window.c (Fset_window_parameter): Doc fix.
11295 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
11296
112972008-06-04 Joakim Verona <joakim@verona.se>
11298
11299 * window.h (struct window): Add new member window_parameters.
11300
11301 * window.c (Fwindow_parameters, Fwindow_parameter)
11302 (Fset_window_parameter): New defuns.
11303 (syms_of_window): Defsubr the new defuns.
11304 (make_window): Initialize window_parameters to nil.
11305
113062008-06-04 John Paul Wallington <jpw@pobox.com>
11307
11308 * eval.c (Fdefmacro): Doc fix.
11309
113102008-06-04 Kenichi Handa <handa@m17n.org>
11311
11312 * coding.c (detect_coding): Fix handling of coding->head_ascii.
11313 Be sure to call setup_coding_system when we find a proper coding system.
11314 (detect_coding_system): Fix handling of coding->head_ascii.
11315
113162008-06-03 Andreas Schwab <schwab@suse.de>
11317
11318 * font.c (font_prop_validate_spacing): Fix last change.
11319
113202008-06-03 Kenichi Handa <handa@m17n.org>
11321
11322 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
11323 (font_parse_fcname): Fix handling of unknown key.
11324
11325 * xfont.c (xfont_list): Try an alias.
11326
11327 * charset.c (char_charset): Return NULL if the arg charset_list is
11328 specified and C doesn't belong to any of them.
11329
113302008-06-02 Chip Coldwell <coldwell@redhat.com>
11331
11332 * font.c (font_pixel_size): Don't take cdr of an integer.
11333
113342008-06-02 Jim Meyering <meyering@redhat.com>
11335
11336 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
11337 * alloc.c (xfree): Return right away for a NULL arg.
11338 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
11339 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
11340 * mac.c (create_apple_event_from_event_ref): Likewise.
11341 (create_apple_event_from_drag_ref, cfstring_create_normalized):
11342 Likewise.
11343 * doprnt.c (doprnt1): Likewise.
11344 * frame.c (frame): Likewise.
11345 * keyboard.c (wipe_kboard): Likewise.
11346 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
11347 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
11348 * term.c (tty_default_color_capabilities, maybe_fatal)
11349 (delete_tty): Likewise.
11350 * w16select.c (string): Likewise.
11351 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
11352 * w32bdf.c (w32_free_bdf_font): Likewise.
11353 * w32fns.c (w32_unload_font): Likewise.
11354 * w32font.c (w32font_close): Likewise.
11355 * window.c (size_window): Likewise.
11356 * xselect.c (receive_incremental_selection): Likewise.
11357 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
11358 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
11359 * w32.c (stat): Likewise.
11360
11361 Remove useless if-before-free tests.
11362 * editfns.c (Fset_time_zone_rule): Likewise.
11363 * lread.c (nosuffix): Likewise.
11364 * ralloc.c (get_bloc): Likewise.
11365 * regex.c (reg_free): Likewise.
11366 * xftfont.c (xftfont_open, xftfont_close): Likewise.
11367 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
11368 * xsmfns.c (smc_save_yourself_CB): Likewise.
11369
113702008-06-02 Kenichi Handa <handa@m17n.org>
11371
11372 * font.c (font_find_for_lface): Handle float font size.
11373 (font_open_for_lface): Likewise.
11374
11375 * xfaces.c (x_supports_face_attributes_p): Check face->font before
11376 comparing the properties.
11377
113782008-06-01 Jason Rumney <jasonr@gnu.org>
11379
11380 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
11381 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
11382 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
11383 Don't add empty script list.
11384 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
11385
113862008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
11387
11388 * Makefile.in (dot, dotdot): Remove, update users.
11389 ".." has been used elsewhere in the file for a long time.
11390 (LIBXT_STATIC): Remove conditional based on unused variable.
11391
113922008-06-01 Miles Bader <miles@gnu.org>
11393
11394 * xfaces.c (Vface_remapping_alist): New variable.
11395 (syms_of_xfaces): Initialize it.
11396 (enum named_merge_point_kind): New type.
11397 (struct named_merge_point): Add `named_merge_point_kind' field.
11398 (push_named_merge_point): Make cycle detection respect different
11399 named-merge-point kinds.
11400 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
11401 Remove face-name alias resolution.
11402 (lface_from_face_name): New definition using
11403 `lface_from_face_name_no_resolve'.
11404 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
11405 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
11406 (get_lface_attributes): New definition that layers face-remapping on
11407 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
11408 (lookup_basic_face): New function.
11409 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
11410 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
11411 `get_lface_attributes'.
11412 (face_at_buffer_position): Use `lookup_basic_face' to lookup
11413 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
11414 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
11415
11416 * xdisp.c (init_iterator): Pass base_face_id through
11417 `lookup_basic_face' when we actually use it as a face-id.
11418 (handle_single_display_prop): Use `lookup_basic_face' to lookup
11419 DEFAULT_FACE_ID.
11420
11421 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
11422 lookup the initial face-id.
11423
11424 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
11425
114262008-06-01 Juanma Barranquero <lekktu@gmail.com>
11427
11428 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
11429 (Fremove_text_properties): Fix typos in docstrings.
11430
114312008-05-31 Kenichi Handa <handa@m17n.org>
11432
11433 * font.c (font_list_entities): Fix the car part of data to be
11434 stored in the cache.
11435
11436 * ftfont.c (ftfont_font_format): Don't use strcasestr.
11437
114382008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
11439
11440 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
11441 Add a `test' argument so another predicate than `equal' can be used.
11442 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
11443 (map_char_table): Remove unused vars `c' and `i'.
11444 * lisp.h (Foptimize_char_table): Adjust declaration.
11445 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
11446
114472008-05-30 Kenichi Handa <handa@m17n.org>
11448
11449 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
11450 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
11451 defined.
11452
114532008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
11454
11455 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
11456 (Fmake_variable_frame_local): Disallow mixing buffer-local and
11457 frame-local settings for the same variable.
11458
114592008-05-30 Kenichi Handa <handa@m17n.org>
11460
11461 * fontset.c (Ffont_info): Move to font.c.
11462 (syms_of_fontset): Delete defsubr of Sfont_info.
11463
11464 * font.c (font_style_to_value, font_score): Delete casting of the
11465 args to xstcasecmp.
11466 (register_font_driver): Increment num_font_drivers only when
11467 registering the driver globally.
11468 (Ffont_info): Move from fontset.c. Handle a font object too.
11469 (syms_of_font): Defsubr Sfont_info.
11470
114712008-05-29 Kenichi Handa <handa@m17n.org>
11472
11473 * coding.h (enum define_coding_utf8_arg_index): New enum.
11474 (enum coding_attr_index): Change coding_attr_utf_16_bom to
11475 coding_attr_utf_bom.
11476 (enum utf_bom_type): Rename from utf_16_bom_type.
11477 (struct utf_16_spec): Adjust for the above change.
11478 (struct coding_system): Add utf_8_bom in `spec' union.
11479
11480 * coding.c (CODING_UTF_8_BOM): New macro.
11481 (enum coding_category): Delete coding_category_utf_8, add
11482 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
11483 coding_category_utf_8_sig.
11484 (CATEGORY_MASK_UTF_8): Delete it.
11485 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
11486 (CATEGORY_MASK_UTF_8_SIG): New macros.
11487 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
11488 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
11489 CATEGORY_MASK_UTF_8_SIG.
11490 (CATEGORY_MASK_UTF_8): New macro.
11491 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
11492 (detect_coding_utf_8): Check BOM.
11493 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
11494 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
11495 (encode_coding_utf_16): Likewise.
11496 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
11497 (detect_coding, detect_coding_system): Handle utf-8-auto.
11498 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
11499 (syms_of_coding): Fix setting up of Vcoding_category_table.
11500
115012008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
11502
11503 * process.c (Faccept_process_output): If `millisec' is non-nil,
11504 `seconds' default to 0.
11505 (wait_reading_process_output): Also return non-nil if we read output
11506 from a non-running process.
11507
115082008-05-29 Jason Rumney <jasonr@gnu.org>
11509
11510 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
11511 `raster' specified.
11512 (add_font_entity_to_list): Allow non-opentype truetype fonts back
11513 in the uniscribe backend, but disallow any font that has no
11514 unicode subrange support.
11515
115162008-05-29 Juanma Barranquero <lekktu@gmail.com>
11517
11518 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
11519 Fix typos in docstrings.
11520
115212008-05-29 Kenichi Handa <handa@m17n.org>
11522
11523 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
11524 (Fx_family_fonts): Set frame correctly.
11525
115262008-05-28 Jason Rumney <jasonr@gnu.org>
11527
11528 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
11529
115302008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
11531
11532 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
11533 calling build_annotations.
11534
115352008-05-28 Juanma Barranquero <lekktu@gmail.com>
11536
11537 * coding.c (Fdecode_coding_region, Fencode_coding_region)
11538 (Fencode_coding_string):
11539 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
11540 <latin-extra-code-table>: Fix typos in docstrings.
11541 (syms_of_coding) <coding-system-alist>: Doc fix.
11542 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
11543
115442008-05-28 Kenichi Handa <handa@m17n.org>
11545
11546 * fontset.c (Ffont_info): Don't call font_close_object.
11547
11548 * font.c (font_parse_family_registry): Use Ffont_put to validate
11549 foundry and family.
11550 (font_delete_unmatched): Don't check spacing.
11551 (font_list_entities): Add spacing to the spec to list fonts.
11552
11553 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
11554 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
11555
11556 * coding.c (encode_coding_raw_text): Fix previous change.
11557 (encode_coding_object): When the dst_object is a buffer and is
11558 different from src_object, move gap to PT.
11559
115602008-05-27 Chong Yidong <cyd@stupidchicken.com>
11561
11562 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
11563
115642008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
11565
11566 * coding.c (encode_coding_raw_text): Set coding->produced_char for
11567 all branches. Compute it differently.
11568
11569 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
11570
115712008-05-27 Juanma Barranquero <lekktu@gmail.com>
11572
11573 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
11574 into "else if () ... else ...".
11575
115762008-05-27 Jason Rumney <jasonr@gnu.org>
11577
11578 * w32font.c (w32font_open_internal): Determine if glyph indices
11579 are likely to work here.
11580
115812008-05-27 Chong Yidong <cyd@stupidchicken.com>
11582
11583 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
11584 draw overlap glyphs with appropriate highlighting.
11585
115862008-05-27 Kenichi Handa <handa@m17n.org>
11587
11588 * xfont.c (xfont_open): Fix calculation of font->average_width.
11589
115902008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
11591
11592 * casefiddle.c (casify_object): Try to guess better whether the
11593 argument is a byte or a char.
11594
115952008-05-26 Andreas Schwab <schwab@suse.de>
11596
11597 * xselect.c (x_reply_selection_request): Properly handle format == 32.
11598 Always send multiples of format size.
11599
11600 * xterm.c (x_set_frame_alpha): Fix type mismatch.
11601
116022008-05-26 Jason Rumney <jasonr@gnu.org>
11603
11604 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
11605 (compute_metrics): Don't set failure if we just cleared the cache.
11606 (w32_weight_table): Remove unused variable.
11607 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
11608 backwards compatibility.
11609
116102008-05-25 Kenichi Handa <handa@m17n.org>
11611
11612 * w32term.c (x_draw_glyph_string):
11613 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
11614
11615 * xfaces.c: Delete unused function prototypes.
11616 (xstrlwr, font_frame): Delete them.
11617 (clear_face_cache): Delete unused variable.
11618
11619 * xftfont.c (xftfont_open): Delete unused variable.
11620 If underline_thickness is not 1, adjust underline_position.
11621
11622 * ftxfont.c (ftxfont_open): Delete unused variable.
11623
11624 * fontset.c (face_for_char): Optimize for the case of no charset
11625 property.
11626
11627 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
11628 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
11629 (otf_open, font_otf_capability, generate_otf_features)
11630 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
11631 Comment out by surrounding "#if 0" and "#endif" for the moment.
11632 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
11633 (syms_of_font): Codes for accessing above commented out.
11634
116352008-05-24 Eli Zaretskii <eliz@gnu.org>
11636
11637 * w32proc.c: Include dispextern.h.
11638
11639 * w32.c: Include dispextern.h.
11640
116412008-05-23 Juanma Barranquero <lekktu@gmail.com>
11642
11643 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
11644 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
11645 Fix typos in docstrings.
11646
116472008-05-23 Jason Rumney <jasonr@gnu.org>
11648
11649 * xsmfns.c: Remove includes that are already included by config.h.
11650
116512008-05-23 Kenichi Handa <handa@m17n.org>
11652
11653 * charset.c (Qemacs, charset_emacs): New variables.
11654 (char_charset): Fix for non-Unicode characters.
11655 (syms_of_charset): Define charset_emacs.
11656
11657 * w32term.c (x_draw_glyph_string): Be sure to update
11658 s->underline_thickness and s->underline_position. Be sure to draw
11659 underline within the current line area.
11660
11661 * xterm.c (x_draw_glyph_string): Be sure to update
11662 s->underline_thickness and s->underline_position. Be sure to draw
11663 underline within the current line area.
11664
11665 * fontset.c: Delete unused variables and add casting for char *
11666 throughout the file.
11667 (fontset_font): Try the fallback fonts of the current fontset
11668 before consulting the default fontset.
11669
11670 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
11671
11672 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
11673
116742008-05-22 Jason Rumney <jasonr@gnu.org>
11675
11676 * font.c: Don't include strings.h.
11677
11678 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
11679
11680 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
11681 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
11682 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
11683 to call xstrcasecmp.
11684
11685 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
11686
11687 * fontset.c (fs_query_fontset): Use xstrcasecmp.
11688
11689 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
11690
11691 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
11692
116932008-05-22 Kenichi Handa <handa@m17n.org>
11694
11695 * puresize.h (BASE_PURESIZE): Increase to 1220000.
11696
11697 * font.c (font_prop_validate_style): Adjust for the format
11698 change of font_style_table.
11699
11700 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
11701 two args.
11702
11703 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
11704 two args.
11705
117062008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
11707
11708 * minibuf.c (keys_of_minibuf): Delete.
11709 * lisp.h (keys_of_minibuf): Delete.
11710 * emacs.c (main): Don't call keys_of_minibuf.
11711
117122008-05-22 Kenichi Handa <handa@m17n.org>
11713
11714 * ftfont.c (ftfont_resolve_generic_family): Rename from
11715 ftfont_list_generic_family. Return a single family for each
11716 generic family.
11717 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
11718 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
11719 Call font_add_log.
11720 (ftfont_match): Call font_add_log.
11721
11722 * font.h (Ffont_xlfd_name): EXFUN adjusted.
11723 (FONT_DEBUG): Define it.
11724 (font_add_log): Extern it.
11725 (font_assert): Rename from xassert.
11726
11727 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
11728 (xfont_list_family): Call font_add_log.
11729 (xfont_match): Likewise.
11730 (memq_no_quit): Delete.
11731
11732 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
11733 call of Ffont_xlfd_name.
11734
11735 * xfaces.c (struct table_entry, slant_table, weight_table)
11736 (swidth_table): Move to font.c.
11737
11738 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
11739 xassert are changed to font_assert. Delete many unused variables.
11740 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
11741 New variables.
11742 (struct table_entry): Move from xfaces.c and modified.
11743 (weight_table, slant_table, width_table): Move from xfaces.c and
11744 contents adjusted for the change of struct table_entry.
11745 (font_style_to_value, font_style_symbolic): Adjust for the
11746 format change of font_style_table.
11747 (font_parse_family_registry): Don't overwrite existing foundry and
11748 family of font_spec.
11749 (font_score): Fix calculation of diff for sizes.
11750 (font_sort_entites): Call font_add_log.
11751 (font_delete_unmatched): Return a newly created list.
11752 (font_list_entities): Fix previous change. Call font_add_log.
11753 (font_matching_entity, font_open_entity, font_close_entity):
11754 Call font_add_log.
11755 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
11756 (Finternal_set_font_style_table): Delete.
11757 (BUILD_STYLE_TABLE): New macro.
11758 (build_style_table): New function.
11759 (Vfont_log, font_log_env_checked): New variables.
11760 (font_add_log): New function.
11761 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
11762 Declare Lisp variables "font-weight-table", "font-slant-table",
11763 "font-width-table", and "font-log". Initialize font_style_table.
11764
117652008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
11766
11767 * xterm.c (x_set_frame_alpha): Move declarations before statements.
11768
117692008-05-21 Seiji Zenitani <zenitani@mac.com>
11770 Ryo Yoshitake <ryo@shiftmode.net>
11771
11772 * frame.c (Qalpha): Add a new frame parameter `alpha'.
11773 (Vframe_alpha_lower_limit): New variable.
11774 (x_set_alpha): New function.
11775
11776 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
11777
11778 * xfns.c (x-create-frame, Qalpha):
11779 Initialize the frame parameter `alpha'.
11780 * xterm.c (OPAQUE, OPACITY): New.
11781 (x_set_frame_alpha): New function.
11782 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
11783
11784 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
11785 * w32fns.c (w32_frame_parm_handlers): Likewise.
11786
117872008-05-20 Jason Rumney <jasonr@gnu.org>
11788
11789 * w32font.c (add_font_entity_to_list): Don't add non-opentype
11790 truetype fonts to opentype list.
11791
117922008-05-20 Juanma Barranquero <lekktu@gmail.com>
11793
11794 * fontset.c (Ffontset_info): Doc fix.
11795 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
11796 <ignore-relative-composition>: Fix typos in docstrings.
11797
11798 * font.c (syms-of-font) <font-encoding-alist>:
11799 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
11800 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
11801 (Ffont_otf_alternates): Doc fixes.
11802
118032008-05-20 Kenichi Handa <handa@m17n.org>
11804
11805 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
11806 font.h through out the file.
11807 (FONT_DRIVERS): Rename from FONTOBJ.
11808 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
11809 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
11810
11811 * emacs.c (main): Call syms_of_font unconditionally.
11812
11813 * font.h (find_font_encoding): Extern it.
11814
11815 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
11816 fontset.c.
194d44e7 11817 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
11818 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
11819 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
11820 only when HAVE_WINDOW_SYSTEM is defined.
11821 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
11822 when HAVE_WINDOW_SYSTEM is defined.
11823
11824 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
11825 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
11826
11827 * xfaces.c: Include font.h unconditionally.
11828 (merge_face_ref, merge_face_vectors)
11829 (Finternal_set_lisp_face_attribute): Cancel the previous change.
11830
118312008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
11832
11833 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
11834 indirect_variable.
11835 * eval.c (lisp_indirect_variable): New fun.
11836 (Fuser_variable_p): Use it.
11837
118382008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
11839
11840 * lisp.h (indirect_variable):
11841 * data.c (indirect_variable, let_shadows_buffer_binding_p):
11842 Use Lisp_Symbol pointers rather than Lisp_Object.
11843 Adjust callers.
11844 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
11845 To this end, change calling-convention.
11846
11847 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
11848 if some non-hidden buffers are selected by string&pred.
11849
118502008-05-19 Chong Yidong <cyd@stupidchicken.com>
11851
11852 * process.c (wait_reading_process_output): Always check status
11853 when in batch mode.
11854
118552008-05-19 Kenichi Handa <handa@m17n.org>
11856
11857 * font.c (font_list_entities): Fix handling of cache.
11858 (font_matching_entity): Likewise.
11859
11860 * ftfont.c (cs_iso8859_1): Delete.
11861 (ft_face_cache): New variable.
11862 (struct ftfont_info): New member fc_charset_idx.
11863 (ftfont_build_basic_charsets): Delete.
11864 (fc_charset_table): New variable.
11865 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
11866 . FC_CHARSET_IDX) as :font-entity property in the font entity.
11867 Callers changed.
11868 (ftfont_lookup_cache, ftfont_get_charset): New functions.
11869 (ftfont_spec_pattern): New argument fc_charset_idx.
11870 Check registry more rigidly. Change callers.
11871 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
11872 change of :font-entity property of the font.
11873
11874 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
11875 property of the font.
11876
118772008-05-18 Juanma Barranquero <lekktu@gmail.com>
11878
11879 * coding.c (Fcoding_system_p): Rename argument to match docstring.
11880 (Funencodable_char_position, Fcheck_coding_systems_region)
11881 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
11882 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
11883 (Ffind_operation_coding_system, Fset_coding_system_priority)
11884 (Fcoding_system_eol_type): Doc fixes.
11885
118862008-05-17 Glenn Morris <rgm@gnu.org>
11887
11888 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
11889
118902008-05-16 Eli Zaretskii <eliz@gnu.org>
11891
11892 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
11893 and st_gid.
11894
11895 * frame.c (Fdelete_frame): Don't call font_update_drivers if
11896 HAVE_WINDOW_SYSTEM is not defined.
11897
11898 * xfaces.c (merge_face_ref, merge_face_vectors)
11899 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
11900 HAVE_WINDOW_SYSTEM is defined.
11901 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
11902
119032008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
11904
11905 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
11906
119072008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11908
11909 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
11910
119112008-05-15 Kenichi Handa <handa@m17n.org>
11912
11913 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
11914 preference.
11915
119162008-05-15 Glenn Morris <rgm@gnu.org>
11917
11918 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
11919
119202008-05-15 Chong Yidong <cyd@stupidchicken.com>
11921
11922 * fns.c (init_fns): Don't initialize weak_hash_tables here.
11923 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
11924
11925 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
11926
119272008-05-15 Kenichi Handa <handa@m17n.org>
11928
11929 * ftfont.c (ftfont_list): Downcase family name to check generic
11930 families.
11931
11932 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
11933 font-spec for QCfont value.
11934
11935 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
11936 buffer. Check the return value of it.
11937
119382008-05-14 Jason Rumney <jasonr@gnu.org>
11939
11940 * w32term.c (w32_get_glyph_overhangs): Remove.
11941 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
11942
119432008-05-14 Kenichi Handa <handa@m17n.org>
11944
11945 * font.c (font_prop_validate): Make nil a valid value.
11946 (font_clear_cache): Check if the cached vector of entities is nil
11947 or not.
11948
119492008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11950
11951 * emacs.c (main_thread): Conditionalize on
11952 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
11953 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
11954
11955 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
11956 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
11957 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
11958
119592008-05-14 Kenichi Handa <handa@m17n.org>
11960
11961 * coding.c (detect_coding_iso_2022): Ignore a coding category that
11962 has no corresponding coding system.
11963
119642008-05-14 Jason Rumney <jasonr@gnu.org>
11965
11966 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
11967
11968 * w32font.h (w32font_open_internal): Update declaration.
11969
11970 * w32font.c (w32font_open_internal): Change last argument from
11971 w32font_info struct to font object. Fill in font object from
11972 font_entity. Get Outline metrics if possible. Use them to
11973 calculate underline position and thickness. Use xlfd name as name
11974 property. Don't set codepage.
11975 (w32font_open): Pass font_object to w32font_open_internal. Don't
11976 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
11977 (w32font_draw): Use s->font.
11978 (clear_cached_metrics): Don't clear non-existent blocks.
11979
11980 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
11981 font was not found.
11982 (x_draw_glyph_string): Use underline position and thickness from font.
11983
11984 * w32uniscribe.c (uniscribe_open): Pass font_object to
11985 w32font_open_internal.
11986
119872008-05-14 Kenichi Handa <handa@m17n.org>
11988
11989 These changes are to delete all legacy font-handling codes, and
11990 make Emacs use only font-backends.
11991
11992 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
11993 (frame.o, image.o, print.o): Depend on $(FONTSRC).
11994
11995 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
11996
11997 * charset.h (Vcharset_non_preferred_head)
11998 (Vcurrent_iso639_language): Extern them.
11999
12000 * charset.c (Vcharset_non_preferred_head): New variable.
12001 (Vcurrent_iso639_language): New variable.
12002 (syms_of_charset): Declare it as a Lisp variable.
12003 (char_charset): Don't check non preferred charsets. As a last
12004 resort, return charset_unicode.
12005 (Fset_charset_priority): Update Vcharset_non_preferred_head.
12006
12007 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
12008 conditionals. Don't check enable_font_backend. Delete all codes
12009 used only when USE_FONT_BACKEND is not defined.
12010
12011 * dispextern.h (struct glyph_string): Change type of `font' to
12012 `struct font *'.
12013 (struct glyph_string): New member underline_position and
12014 underline_thickness.
12015 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
12016 (struct face): Change type of `font' to `struct font *'. Remove
12017 members `font_name', `font_info_id'.
12018 (per_char_metric, encode_char): Delete externs.
12019 (calc_pixel_width_or_height): Adjust the prototype.
12020
12021 * emacs.c (enable_font_backend): Delete extern.
12022 (main): Don't set enable_font_backend. Don't check the command
12023 line argument "-disable-font-backend".
12024
12025 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
12026 (enum font_property_index): New members FONT_DPI_INDEX,
12027 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
12028 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
12029 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
12030 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
12031 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
12032 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
12033 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
12034 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
12035 (struct font_spec, struct font_entity): New structs.
12036 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
12037 (struct font): Many members from old "struct font_info" moved to
12038 here. Members font and entity deleted.
12039 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
12040 the new font-related objects.
12041 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
12042 (CHECK_FONT_GET_OBJECT): Likewise.
12043 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
12044 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
12045 (struct font_driver): New members case_sensitive anc check. Type
12046 of the member list and open changed.
12047 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
12048 (font_symbolic_width, font_find_object, font_get_spec)
12049 (font_set_lface_from_name): Delete extern.
12050 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
12051
12052 * font.c: Include <strings.h>.
12053 (enable_font_backend): Delete it.
12054 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
12055 (CHECK_VALIDATE_FONT_SPEC): Delete it.
12056 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
12057 (null_string): Delete it.
12058 (null_vector): Make it static.
12059 (font_family_alist): Delete it.
12060 (Qnormal): Extern it.
12061 (QCextra, QClanguage): Delete it.
12062 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
12063 (font_make_spec, font_make_entity, font_make_object)
12064 (font_intern_prop): Renamed from intern_downcase. Don't downcase
12065 the string. Callers changed.
12066 (font_pixel_size): Adjusted for the format change of font-related
12067 objects.
12068 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
12069 (font_style_to_value, font_style_symbolic): New function.
12070 (build_font_family_alist): Delete it.
12071 (font_registry_charsets): Use Fassoc_string instead of
12072 assq_no_quit.
12073 (font_prop_validate_symbol): Don't return null_string.
12074 (font_prop_validate_style): Adjusted for the change of
12075 style-related values in a font vector.
12076 (font_property_table): Delete entries for QClanguage and
12077 QCantialias, add entries for QCavgwidth.
12078 (get_font_prop_index): Delete the 2nd argument FROM.
12079 (font_prop_validate): Arguments changed.
12080 (font_put_extra): Adjusted for the change of font-related objects.
12081 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
12082 (font_parse_fcname, font_unparse_fcname)
12083 (font_prepare_composition): Likewise.
12084 (font_parse_family_registry): Renamed from font_merge_old_spec.
12085 (otf_open): Delete the 1st arg entity.
12086 (font_otf_capability): Adjusted for the above change.
12087 (font_score): New arg alternate_families. Adjusted for the change
12088 of font-related objects.
12089 (font_sort_entites): New arg best_only.
12090 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
12091 Delete them.
12092 (font_match_p): Check alternate families.
12093 (font_find_object): Delete it.
12094 (font_check_object): New function.
12095 (font_clear_cache): Adjusted for the change of font-related objects.
12096 (font_delete_unmatched): New arg.
12097 (font_list_entities): Call font_driver->list with a spec that
12098 doesn't specify style-related properties.
12099 (font_matching_entity): Arguments changed. Caller changed.
12100 (font_open_entity): Adjusted for the change of font-related objects.
12101 (font_close_object, font_has_char, font_encode_char)
12102 (font_get_name, font_get_spec): Likewise.
12103 (font_spec_from_name, font_clear_prop, font_update_lface):
12104 New functions.
12105 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
12106 (font_prepare_for_face, font_done_for_face, font_open_by_name)
12107 (font_at): Adjusted for the change of font-related objects.
12108 (font_range): New function.
12109 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
12110 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
12111 (Fcopy_font_spec, Fmerge_font_spec): New function.
12112 (Ffont_family_list): Renamed from list-families.
12113 (Finternal_set_font_style_table): Arguments changed.
12114 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
12115 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
12116 change of font-related objects.
12117 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
12118
12119 * fontset.h (struct font_info): Delete it. Most members go to
12120 struct font.
12121 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
12122 (enum FONT_SPEC_INDEX): Delete it.
12123 (font_info, list_fonts_func, load_font_func, query_font_func)
12124 (set_frame_fontset_func, find_ccl_program_func)
12125 (get_font_repertory_func, new_fontset_from_font_name): Delete
12126 externs.
12127 (fontset_from_font_name): Extern it.
12128 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
12129 (FONT_INFO_FROM_FACE): Deleted.
12130 (face_for_font): Adjust prototype.
12131
12132 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
12133 conditionals. Don't check enable_font_backend. Delete all codes
12134 used only when USE_FONT_BACKEND is not defined.
12135 (get_font_info_func, list_font_func, load_font_func)
12136 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
12137 (get_font_repertory_func): Delete them.
12138 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
12139 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
12140 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
12141 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
12142 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
12143 (fontset_compare_rfontdef): New function.
12144 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
12145 rfont-defs by qsort. Adjusted for the change of font-group vector.
12146 (load_font_get_repertory): Deleted.
12147 (fontset_find_font): Use new macros to ref/set elements of
12148 font-def and rfont-def.
12149 (fontset_font): Fix the timing of remembering that no font for C.
12150 (free_face_fontset): Do nothing if the face has no fontset.
12151 (face_suitable_for_char_p): Use new macros to ref/set elements of
12152 rfont-def.
12153 (face_for_char): Likewise. Call face_for_char with font_object.
12154 (fs_load_font): Delete. Delete #pragma surrounding it.
12155 (fs_query_fontset): Use strcasecmp instead of strcmp.
12156 (generate_ascii_font_name): Adjusted for the format change of
12157 font-spec.
12158 (Fset_fontset_font): Likewise. Use new macros to set elements of
12159 font-def.
12160 (Fnew_fontset): Use font_unparse_xlfd to generate
12161 FONTSET_ASCII (fontset).
12162 (new_fontset_from_font_name): Deleted.
12163 (fontset_from_font): Renamed from new_fontset_from_font. Check if
12164 a fontset is already created for the font. FIx updating of
12165 Vfontset_alias_alist.
12166 (fontset_ascii_font): Deleted.
12167 (Ffont_info): Adjusted for the format change of font-spec.
12168 (Finternal_char_font): Likewise.
12169 (Ffontset_info): Likewise.
12170 (syms_of_fontset): Don't check load_font_func.
12171
12172 * fns.c (internal_equal): Handle PREV_FONT.
12173
12174 * frame.h: Delete USE_FONT_BACKEND conditional.
12175
12176 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
12177 conditionals. Don't check enable_font_backend. Delete all codes
12178 used only when USE_FONT_BACKEND is not defined.
12179 (x_set_font): Call x_new_font, not x_new_fontset2.
12180 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
12181 already set for the frame.
12182
12183 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
12184 a font-entity by font_make_entity. Use font_intern_prop instead
12185 of intern_downcase. Use FONT_SET_STYLE to set a style-related
12186 font property. If a font is scalable, set avgwidth property to 0.
12187 Set font-entity property by font_put_extra.
12188 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
12189 (ffont_driver): Adjusted for the change of struct font_driver.
12190 (ftfont_spec_pattern): New function.
12191 (ftfont_list): Return a list, not vector.
12192 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
12193 (ftfont_list_family): Don't downcase names.
12194 (ftfont_free_entity): Deleted.
12195 (ftfont_open): Return a font-object. Adjusted for the change of
12196 struct font. Get underline_thickness and underline_position from
12197 font property. Don't update dpyinfo->smallest_font_height and
12198 dpyinfo->smallest_char_width.
12199 (ftfont_close): Don't free `struct font'.
12200 (ftfont_has_char): Adjusted for the format change of font-entity.
12201 (ftfont_encode_char, ftfont_text_extents): Likewise.
12202
12203 * ftxfont.c (ftxfont_list): Return a list, not vector.
12204 (ftxfont_open): Return a font-object. Adjusted for the change of
12205 struct font. Get underline_thickness and underline_position from
12206 font property. Don't update dpyinfo->smallest_font_height and
12207 dpyinfo->smallest_char_width.
12208 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
12209 (ftxfont_draw): Adjusted for the change of struct font.
12210
12211 * image.c (image_ascent): Don't include "charset.h". Include
12212 "character.h" and "font.h".
12213
12214 * lisp.h (enum pvec_type): New member PREV_FONT.
12215 (Fassoc_string): EXFUN it.
12216
12217 * print.c: Include font.h.
12218 (print_object): Handle font-related objects.
12219
12220 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
12221 conditionals. Don't check enable_font_backend. Delete all codes
12222 used only when USE_FONT_BACKEND is not defined.
12223 (handle_auto_composed_prop): Do nothing if it->f is not on a
12224 window system. Check how many following characters can be
12225 displayed by the same font.
12226 (calc_pixel_width_or_height): Type of the 4th arg is changed to
12227 'struct font *'.
12228 (get_char_face_and_encoding): Assign the whole encoding task to
12229 the `encode-char' method of a font driver.
12230 (fill_composite_glyph_string): Adjusted for the change of `struct
12231 face' and `struct glyph_string'.
12232 (fill_glyph_string): Likewise.
12233 (get_per_char_metric): Arguments changed.
12234 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
12235 and `struct glyph_string'.
12236 (produce_stretch_glyph, calc_line_height_property)
12237 (x_produce_glyphs): Likewise.
12238
12239 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
12240 conditionals. Don't check enable_font_backend. Delete all codes
12241 used only when USE_FONT_BACKEND is not defined. Use
12242 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
12243 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
12244 (Qp): Extern them.
12245 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
12246 Deleted.
12247 (struct font_name): Deleted.
12248 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
12249 (compare_fonts_by_sort_order): New function.
12250 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
12251 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
12252 Deleted.
12253 (Fx_family_fonts): Use font_list_entities, and sort fonts by
12254 compare_fonts_by_sort_order.
12255 (Fx_font_family_list): Call Ffont_family_list.
12256 (face_numeric_value, face_numeric_weight, face_numeric_slant)
12257 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
12258 (face_symbolic_slant, face_symbolic_swidth)
12259 (split_font_name_into_vector, build_font_name_from_vector)
12260 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
12261 (font_rescale_ratio, split_font_name, build_font_name)
12262 (free_font_names, sort_fonts, x_face_list_fonts)
12263 (face_font_available_p, sorted_font_list, cmp_font_names)
12264 (font_list_1, concat_font_list, font_list, remove_duplicates):
12265 Deleted.
12266 (Fx_list_fonts): Use Ffont_list.
12267 (LFACE_AVGWIDTH): Deleted.
12268 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
12269 by FONTP.
12270 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
12271 (set_lface_from_font_name): Delete it.
12272 (set_lface_from_font): Renamed from
12273 set_lface_from_font_and_fontset. Caller changed. Don't set
12274 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
12275 for face.
12276 (merge_face_vectors): Copy font-spec if necessary.
12277 Clear properties of the font-spec if necessary.
12278 (merge_face_ref): Clear properties of the font-spec if necessary.
12279 (Finternal_set_lisp_face_attribute): Likewise.
12280 (set_font_frame_param): Use font_load_for_lface to load a
12281 font-object, and call Fmodify_frame_parameters with it.
12282 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
12283 font name by Ffont_xlfd_name.
12284 (Finternal_lisp_face_attribute_values): Don't check QCweight,
12285 QCslant, and QCwidth.
12286 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
12287 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
12288 Compare fonts by EQ.
12289 (lookup_non_ascii_face): Deleted.
12290 (face_for_font): The 2nd argument changed.
12291 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
12292 Check atomic font properties by case insensitive.
12293 (realize_non_ascii_face): Set face->overstrike correctly.
12294 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
12295 (dump_realized_face): Get font name from
12296 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
12297
12298 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
12299 conditionals. Don't check enable_font_backend. Delete all codes
12300 used only when USE_FONT_BACKEND is not defined.
12301 (xic_create_xfontset): Original code deleted and renamed from
12302 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
12303 (x_make_gc): Don't set GCFont in GCs.
12304 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
12305 opened by "fixed".
12306 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
12307 find_ccl_program_func, query_font_func, set_frame_fontset_func,
12308 get_font_repertory_func.
12309
12310 * xfont.c: Include <stdlib.h> and "ccl.h".
12311 (struct xfont_info): New structure.
12312 (xfont_query_font): Deleted.
12313 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
12314 moved from xterm.c.
12315 (xfont_driver): Adjusted for the change of struct font_driver.
12316 (compare_font_names): New function.
12317 (xfont_list_pattern): Sort font names case insensitively. Make
12318 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
12319 (xfont_list): Return a list, not vector.
12320 (xfont_match): If the font doesn't have QCname property, generate
12321 a name from the other font properties.
12322 (xfont_open): Return a font-object. Adjusted for the change of
12323 struct font. Get underline_thickness and underline_position from
12324 font property. Don't update dpyinfo->smallest_font_height and
12325 dpyinfo->smallest_char_width.
12326 (xfont_close): Don't free struct font.
12327 (xfont_prepare_face): Adjusted for the change of struct font.
12328 (xfont_done_face): Deleted.
12329 (xfont_has_char): Adjusted for the change of struct font.
12330 (xfont_encode_char, xfont_draw): Likewise.
12331 (xfont_check): New function.
12332
12333 * xftfont.c (xftfont_list): Adjusted for the change of `list'
12334 callback function.
12335 (xftfont_match): Adjusted for the format change of font-entity.
12336 (xftfont_open): Adjusted for the format change of font-entity and
12337 font-object. Adjusted for the change of struct font. Return a
12338 font-object. Don't update dpyinfo->smallest_font_height and
12339 dpyinfo->smallest_char_width.
12340 (xftfont_close): Block input while calling XftFontClose.
12341 (xftfont_prepare_face): Don't block input while calling
12342 xftfont_get_colors. Adjusted for the change of struct font.
12343 (xftfont_shape): Return value of error case fixed.
12344
12345 * xrdb.c (x_load_resources): Don't setup a fontset resource.
12346
12347 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
12348 conditionals.
12349 (FONT_WIDTH): Return (f)->max_width.
12350 (struct x_display_info): Delete member `font'.
12351 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
12352 (x_find_ccl_program, x_get_font_repertory): Delete externs.
12353 (struct x_output): Change type of `font' to `struct font *'.
12354
12355 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
12356 conditionals. Don't check enable_font_backend. Delete all codes
12357 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
12358 (x_per_char_metric, x_encode_char): Deleted.
12359 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
12360 (x_compute_glyph_string_overhangs): Adjusted for the change of
12361 `struct face'.
12362 (x_draw_glyph_string_foreground)
12363 (x_draw_composite_glyph_string_foreground): Likewise.
12364 (x_draw_glyph_string): Likewise. Use font->underline_position and
12365 font->underline_thickness.
12366 (x_new_font): Renamed from x_new_fontset2.
12367 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
12368 (x_check_font): Call `check' method of a font driver.
12369 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
12370 (x_query_font, x_get_font_repertory): Deleted.
12371 (x_find_ccl_program): Renamed and moved to xfont.c.
12372 (x_redisplay_interface): Adjusted for the change of `struct
12373 redisplay_interface'.
12374
12375 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
12376 conditionals. Don't check enable_font_backend. Delete all codes
12377 used only when USE_FONT_BACKEND is not defined. Surround non-used
12378 code by "#ifdef OLD_FONT" and "endif".
12379 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
12380
12381 * w32font.h (struct w32font_info): New member.
12382 (FONT_COMPAT): New macro.
12383 (w32font_open_internal): Prototype adjusted.
12384
12385 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
12386 OLD_FONT" and "endif".
12387
12388 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
12389 conditionals. Don't check enable_font_backend. Delete all codes
12390 used only when USE_FONT_BACKEND is not defined.
12391 (w32font_open): Return a font-object. Make a font-object by
12392 font_make_object. Adjusted for the change of struct w32font_info.
12393 (w32font_close): Don't free struct font. Adjusted for the change
12394 of struct w32font_info.
12395 (w32font_encode_char, w32font_text_extents, w32font_draw):
12396 Adjusted for the change of struct w32font_info.
12397 (w32font_draw): Likewise.
12398 (w32font_list_internal): Return a list, not vector.
12399 (w32font_open_internal): Change the 4th arg to font-object.
12400 Adjusted for the change of struct w32font_info and font-object format.
12401 (add_font_name_to_list): Don't downcase names.
12402 (w32_enumfont_pattern_entity): Make a font-entity by
12403 font_make_entity. Adjusted for the format change of font-entity.
12404 Use FONT_SET_STYLE to set a style-related font property. If a
12405 font is scalable, set avgwidth property to 0. Set font-entity
12406 property by font_put_extra.
12407 (font_matches_spec): Adjusted for the format change of font-entity.
12408 (w32_weight_table, w32_decode_weight): New variables.
12409 (w32_encode_weight): New function.
12410 (fill_in_logfont): Adjusted for the format change of font-spec.
12411 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
12412 weight value.
12413 (w32font_driver): Adjusted for the change of struct font_driver.
12414
12415 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
12416 conditionals. Don't check enable_font_backend. Surround non-used
12417 code by "#ifdef OLD_FONT" and "endif".
12418 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
12419 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
12420
12421 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
12422 conditionals. Don't check enable_font_backend. Delete all codes
12423 used only when USE_FONT_BACKEND is not defined. Surround non-used
12424 code by "#ifdef OLD_FONT" and "endif".
12425
12426 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
12427 (uniscribe_open): Return value changed to font-object.
12428 Adjusted for the format change of font-object.
12429 (uniscribe_otf_capability): Adjusted for the change of struct font.
12430 (add_opentype_font_name_to_list): Don't downcase names.
12431 (uniscribe_font_driver): Adjusted for the change of struct
12432 font_driver.
12433
124342008-05-13 Chong Yidong <cyd@stupidchicken.com>
12435
12436 * dispnew.c (update_frame_1): Check if tty output is still valid
12437 before flushing it.
12438
124392008-05-13 Jan Djärv <jan.h.d@swipnet.se>
12440
12441 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
12442 to Gtk+ menus.
12443
124442008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
12445
12446 * dired.c (file_name_completion): Tweak the code so as to always do it
12447 in a single pass. Tighten the scope of some variables.
12448
12449 * dired.c (Qdefault_directory): New var.
12450 (file_name_completion): Use it instead of Fexpand_file_name.
12451 (syms_of_dired): Initialize it.
12452
124532008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
12454
12455 * fileio.c (double_dollars): Remove dead code.
12456
124572008-05-10 Eli Zaretskii <eliz@gnu.org>
12458
12459 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
12460 Mention w32-get-true-file-attributes in doc string.
12461
12462 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
12463
124642008-05-09 Glenn Morris <rgm@gnu.org>
12465
12466 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
12467 2008-04-23.
12468
124692008-05-09 Eli Zaretskii <eliz@gnu.org>
12470
12471 Support for reporting owner and group of each file on MS-Windows:
12472 * dired.c (stat_uname, stat_gname): New functions, with special
12473 implementation for w32.
12474 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
12475
12476 * w32.c: Rename the_passwd_* to dflt_passwd_*.
12477 (dflt_group_name): New static variable.
12478 (dflt_group): Rename from the_group.
12479 (init_user_info): Init dflt_group fields. Get user's group name
12480 from LookupAccountSid.
12481 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
12482 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
12483 New initialization states.
12484 (globals_of_w32): Initialize them to zero. Initialize the default
12485 group name to "None".
12486 (GetFileSecurity_Name): New global var, the name of the function
12487 to call for GetFileSecurity.
12488 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
12489 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
12490 (get_file_security, get_security_descriptor_owner)
12491 (get_security_descriptor_group, is_valid_sid)
12492 (get_file_security_desc, get_rid, get_name_and_id)
12493 (get_file_owner_and_group): New functions.
12494 (stat): Use get_file_security_desc and get_file_owner_and_group to
12495 report the owner and primary group of each file. Don't ignore the
12496 high 32 bits of file's size, now that st_size is 64-bit wide.
12497 Fix test when to get true file attributes.
12498 (init_user_info): Use get_rid instead of equivalent inline code.
12499 (fstat): Don't ignore the high 32 bits of file's size.
12500
125012008-05-09 Chong Yidong <cyd@stupidchicken.com>
12502
12503 * image.c (png_load): Use correct bit-depth for setting background
12504 color.
12505
125062008-05-08 Eli Zaretskii <eliz@gnu.org>
12507
12508 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
12509 epa-hook.elc.
12510
125112008-05-08 Juanma Barranquero <lekktu@gmail.com>
12512
12513 * font.c (Ffont_match_p): Don't use `iff' in docstring.
12514
125152008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
12516
12517 * macfns.c (Fx_create_frame): Make a copy of frame parameters
12518 because the original parameters are in pure storage now.
12519 (mac_window): Remove unused params. Update callers.
12520
125212008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
12522
12523 * lread.c (substitute_object_recurse): Use lower-level primitives.
12524 Don't signal errors when traversing sub-char-tables.
12525 Don't loop over all the possible characters when traversing char-tables.
12526
12527 * print.c (print_preprocess): Add sub-char-tables to the print-table,
12528 just like we do in print.c.
12529
125302008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
12531
12532 * minibuf.c (Ftry_completion): Remove code left over from when we used
12533 scmp instead of Fcompare_strings.
12534
125352008-05-04 Juanma Barranquero <lekktu@gmail.com>
12536
12537 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
12538
125392008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12540
12541 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
12542 Create bitmap context in native byte order.
12543
12544 * macterm.c (XDrawLine)
12545 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
12546 context in native byte order.
12547
125482008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12549
12550 * config.in: Regenerate.
12551
12552 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
12553 New definitions for Image I/O support.
12554 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
12555 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
12556 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
12557 (mac_data_provider_release_data, image_load_image_io)
12558 [USE_MAC_IMAGE_IO]: New functions.
12559 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
12560 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
12561 (init_image_func_pointer) [MAC_OSX]: Remove function.
12562 (image_load_quartz2d) [MAC_OSX]: Check availability of
12563 CGImageCreateWithPNGDataProvider at compile time.
12564 Use lowercase `false' for boolean constant.
12565 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
12566 Use image_load_image_io.
12567 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
12568 Don't check MyCGImageCreateWithPNGDataProvider.
12569 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
12570 Don't call init_image_func_pointer.
12571
12572 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
12573
12574 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
12575 Make variable non-static.
12576 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
12577 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
12578
12579 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
12580 (RED_FROM_ULONG): Mask off higher bits.
12581 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
12582
12583 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
12584 Include AvailabilityMacros.h.
12585 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
12586 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
12587
125882008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
12589
12590 * chartab.c (Fset_char_table_range): If range is t, really set all
12591 chars to that value.
12592
125932008-05-03 Eli Zaretskii <eliz@gnu.org>
12594
12595 * dired.c (Ffile_attributes): Don't allow the device number become
12596 negative.
12597
125982008-05-02 Daiki Ueno <ueno@unixuser.org>
12599
12600 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
12601
126022008-05-02 Juri Linkov <juri@jurta.org>
12603
12604 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
12605 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
12606 DEFAULT argument as a list of default values in docstrings.
12607
126082008-05-01 Chong Yidong <cyd@stupidchicken.com>
12609
12610 * puresize.h (BASE_PURESIZE): Increase to 1210000.
12611
126122008-05-01 Martin Rudalics <rudalics@gmx.at>
12613
12614 * dispnew.c (change_frame_size_1): Preserve small windows when
12615 shrinking frames by calling set_window_height|width with third
12616 arg 2.
12617
12618 * window.h (struct window): Replace field too_small_ok by field
12619 resize_proportionally.
12620
12621 * window.c (make_window): Initialize resize_proportionally.
12622 (enlarge_window): Temporarily set resize_proportionally to make
12623 sure that shrink_windows does scale the window proportionally.
12624 (shrink_windows): When window has resize_proportionally set try
12625 to shrink it proportionally by stealing from other windows.
12626 (struct saved_window, Fset_window_configuration)
12627 (compare_window_configurations): Handle resize_proportionally.
12628 (WINDOW_TOTAL_SIZE): New macro.
12629 (window_min_size, shrink_windows, size_window): Use it.
12630 (check_min_window_sizes): Remove. Invalid values of
12631 window-min-height|width are handled by window_min_size_2 now.
12632 (size_window, Fsplit_window, enlarge_window)
12633 (adjust_window_trailing_edge, grow_mini_window): Don't call
12634 check_min_window_sizes.
12635 (window_min_size_2, window_min_size_1, window_min_size):
12636 New argument safe_p for retrieving "safe" minimum sizes.
12637 (Fdisplay_buffer, Fsplit_window, enlarge_window)
12638 (adjust_window_trailing_edge, grow_mini_window):
12639 Adjust arguments of window_min_size... functions.
12640 (shrink_windows): Argument min_size removed. New argument
12641 safe_p allows shrinking windows to their safe minimum sizes.
12642 Calculate minimum size and decide whether a window shall be
12643 deleted for each window individually.
12644 (size_window): When nodelete_p equals 2, tell shrink_windows to
12645 delete windows only if their new minimum size is no more safe.
12646 (shrink_window_lowest_first): Call window_min_size_1 to make
12647 sure to preserve modeline of bottom-most window when resizing
12648 the minibuffer.
12649 (Fset_window_configuration, Fcurrent_window_configuration)
12650 (compare_window_configurations): Do not handle
12651 window-min-height|width any more.
12652 (syms_of_window): Clarify window-min-height|width doc-strings.
12653
126542008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
12655
12656 * dired.c (file_name_completion): Fix up the encoding/decoding issue
12657 some more. Copy some of the code from Ftry_completions.
12658 Remove special case code that dates back to initial revision when the
12659 slash was only added when necessary and that can't trigger nowadays.
12660
126612008-04-27 Kenichi Handa <handa@m17n.org>
12662
12663 * font.c (font_prop_validate): Signal `error' instead of `font'.
12664
126652008-04-29 Jason Rumney <jasonr@gnu.org>
12666
12667 * w32fns.c (Fw32_battery_status): New defun.
12668 (syms_of_w32fns): Defsubr it.
12669
126702008-04-28 Andreas Schwab <schwab@suse.de>
12671
12672 * dired.c (file_name_completion): Fix another mixing of encoded
12673 and decoded names.
12674
126752008-04-28 Juanma Barranquero <lekktu@gmail.com>
12676
12677 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
12678
126792008-04-27 Juanma Barranquero <lekktu@gmail.com>
12680
12681 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
12682
126832008-04-27 Andreas Schwab <schwab@suse.de>
12684
12685 * dired.c (file_name_completion): Fix inappropriate mixing of
12686 encoded and decoded names.
12687
12688 * xterm.c (XTread_socket): Fix use of uninitialized variable.
12689
12690 * puresize.h (BASE_PURESIZE): Increase to 1200000.
12691
126922008-04-26 Eli Zaretskii <eliz@gnu.org>
12693
12694 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
12695 2008-03-31, it's not needed anymore with `struct stat' definition
12696 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
12697 for the same reasons.
12698
126992008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
12700
12701 * m/sparc.h: Additional redefinitions for GNU/Linux.
12702
127032008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12704
12705 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
12706 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
12707 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
12708 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
12709 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
12710 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
12711 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
12712 Likewise.
12713
12714 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
12715 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
12716 (mac_ax_number_of_characters): Add externs.
12717 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
12718 [USE_MAC_TSM]: Likewise.
12719 (mac_handle_text_input_event) [MAC_OSX]:
12720 Handle kEventTextInputOffsetToPos for no active input area case.
12721 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
12722 (mac_handle_document_access_event)
12723 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
12724 (install_application_handler) [MAC_OSX]: Register handlers for
12725 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
12726 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
12727 Register mac_handle_document_access_event.
12728
12729 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
12730 Make functions non-static.
12731
127322008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
12733
12734 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
12735 (read_file_name_completion_ignore_case, insert_default_directory)
12736 (Qdefault_directory): Move to minibuffer.el.
12737 (Fread_file_name): Call the new `read-file-name' instead.
12738
127392008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12740
12741 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
12742 Make function non-static.
12743 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
12744 Remove function.
12745 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
12746 Move to mactoolbox.c.
12747 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
12748
12749 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
12750 (mac_rect_make): New macro.
12751
12752 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
12753 instead of float.
12754 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
12755 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
12756 (XSetBackground) [USE_CG_DRAWING]: Likewise.
12757 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
12758 CGRectMake.
12759 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
12760 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
12761 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
12762 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
12763 instead of WindowRef in argument type.
12764 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
12765 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
12766 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
12767 instead of DISPLAY. All uses changed.
12768 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
12769 (x_calc_absolute_position): Simplify so as not to use
12770 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
12771
12772 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
12773 instead of WindowRef in argument type.
12774 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
12775 [TARGET_API_MAC_CARBON]: Remove externs.
12776 (create_apple_event, mac_event_parameters_to_lisp)
12777 [TARGET_API_MAC_CARBON]: Add externs.
12778
12779 * mactoolbox.c (Vmac_ts_script_language_on_focus)
12780 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
12781 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
12782 is clicked.
12783 (x_activate_menubar): Remove extern for saved_menu_event_location.
12784 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
12785 Move from mac.c.
12786
127872008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12788
12789 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
12790 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
12791
127922008-04-23 Jason Rumney <jasonr@gnu.org>
12793
12794 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
12795 attributes only for local files.
12796
12797 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
12798 default to Qlocal.
12799
128002008-04-22 Juri Linkov <juri@jurta.org>
12801
12802 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
12803 read-buffer-to-switch instead of using the letter "B".
12804
128052008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
12806
12807 * fileio.c (Qdefault_directory): New variable.
12808 (Fread_file_name): Use it to pass `dir' to the completion functions.
12809
128102008-04-20 Chong Yidong <cyd@stupidchicken.com>
12811
12812 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
12813
128142008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
12815
12816 * keyboard.c (Vpre_help_message): Remove.
12817 (show_help_echo): Remove default C code.
12818
12819 * dired.c (directory_files_internal, file_name_completion):
12820 Only call ENCODE_FILE if the string is indeed decoded.
12821
128222008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
12823
12824 * Makefile.in (TOOLKIT_DEFINES): Remove.
12825 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
12826
128272008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12828
12829 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
12830 (mactoolbox.o): New target.
12831
12832 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
12833 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
12834
12835 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
12836 Use mac_set_frame_window_background instead of XSetWindowBackground.
12837 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
12838 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
12839 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
12840 instead of SetWindowTitleWithCFString.
12841 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
12842 Move function to mactoolbox.c.
12843 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
12844 Use mac_set_window_modified instead of SetWindowModified.
12845 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
12846 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
12847 (Fx_focus_frame): Use mac_front_non_floating_window instead of
12848 FrontNonFloatingWindow. Use mac_activate_window instead of
12849 ActivateWindow. Use mac_active_non_floating_window instead of
12850 ActiveNonFloatingWindow.
12851 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
12852 Use mac_show_hourglass and mac_hide_hourglass.
12853 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
12854 instead of GetGlobalMouse.
12855 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
12856 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
12857 Use mac_bring_window_to_front instead of BringToFront.
12858 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
12859 mactoolbox.c.
12860 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
12861 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
12862 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
12863 mactoolbox.c.
12864
12865 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
12866 (XtPointer): Move typedef from macmenu.c.
12867 (enum button_type): Move enum from macmenu.c.
12868 (widget_value): Move typedef from macmenu.c.
12869 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
12870 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
12871 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
12872 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
12873 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
12874 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
12875 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
12876 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
12877 (Selection): Move typedef from macselect.c.
12878 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
12879 macterm.c.
12880 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
12881 (mac_is_window_collapsed, mac_bring_window_to_front)
12882 (mac_send_window_behind, mac_hide_window, mac_show_window)
12883 (mac_collapse_window, mac_front_non_floating_window)
12884 (mac_active_non_floating_window, mac_activate_window)
12885 (mac_move_window_structure, mac_move_window, mac_size_window)
12886 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
12887
12888 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
12889 (enum mac_menu_kind): Move enum to mactoolbox.c.
12890 (min_menu_id): Move variable to mactoolbox.c.
12891 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
12892 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
12893 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
12894 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
12895 [TARGET_API_MAC_CARBON]: Likewise.
12896 (XtPointer): Move typedef to macgui.h.
12897 (enum button_type): Move enum to macgui.h.
12898 (widget_value): Move typedef to macgui.h.
12899 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
12900 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
12901 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
12902 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
12903 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
12904 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
12905 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
12906 (popup_activated_flag): Make variable non-static.
12907 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
12908 (add_menu_item, fill_menu, dispose_menus):
12909 Move functions to mactoolbox.c.
12910 (restore_show_help_function, menu_target_item_handler)
12911 (install_menu_target_item_handler, mac_handle_dialog_event)
12912 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
12913 [TARGET_API_MAC_CARBON]: Likewise.
12914 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
12915 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
12916 (find_and_call_menu_selection, name_is_separator): Make function
12917 non-static.
12918 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
12919 to mactoolbox.c.
12920 (set_frame_menubar): Don't call install_menu_quit_handler.
12921 (menu_item_selection): New variable.
12922 (mac_menu_show): Use create_and_show_popup_menu.
12923 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
12924 selection but set variable menu_item_selection. All uses changed.
12925 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
12926 Call install_menu_quit_handler. Move to mactoolbox.c.
12927
12928 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
12929 (Selection): Move typedef to macgui.h.
12930 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
12931 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
12932 Make variables non-static.
12933 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
12934 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
12935 Make functions non-static.
12936 (Vmac_service_selection) [MAC_OSX]: Likewise.
12937 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
12938 (mac_valid_selection_target_p, mac_clear_selection)
12939 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
12940 (mac_put_selection_value, mac_selection_has_target_p)
12941 (mac_get_selection_value, mac_get_selection_target_list)
12942 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
12943 Move functions to mactoolbox.c.
12944 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
12945 Likewise.
12946 (copy_scrap_flavor_data, mac_handle_service_event)
12947 (install_service_handler) [MAC_OSX]: Likewise.
12948 (syms_of_macselect) <Vmac_dnd_known_types>:
12949 Use mac_dnd_default_known_types.
12950
12951 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
12952 Move to mactoolbox.c.
12953 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
12954 (Fx_selection_owner_p): Add EXFUN.
12955 (install_window_handler, remove_window_handler, XSetWindowBackground):
12956 Remove externs.
12957 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
12958 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
12959 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
12960 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
12961 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
12962 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
12963 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
12964 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
12965 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
12966 (create_and_show_popup_menu, mac_get_selection_from_symbol)
12967 (mac_valid_selection_target_p, mac_clear_selection)
12968 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
12969 (mac_put_selection_value, mac_selection_has_target_p)
12970 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
12971 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
12972 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
12973 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
12974 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
12975 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
12976 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
12977 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
12978 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
12979
12980 * mactoolbox.c: New file.
12981
129822008-04-18 Jason Rumney <jasonr@gnu.org>
12983
12984 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
12985
129862008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
12987
12988 * character.c (Fmultibyte_char_to_unibyte):
12989 Return latin1 chars unchanged.
12990
12991 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
12992 relocated if it points to `name'.
12993
129942008-04-17 Kenichi Handa <handa@m17n.org>
12995
12996 * data.c (Faset): Allow setting a multibyte character in an
12997 ASCII-only unibyte string.
12998
12999 * lisp.h (STRING_SET_MULTIBYTE): New macro.
13000
130012008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
13002
13003 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
13004 done in config.h.
13005
130062008-04-16 Juanma Barranquero <lekktu@gmail.com>
13007
13008 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
13009 (Fchar_direction): Add usage in the docstring.
13010
130112008-04-15 Chong Yidong <cyd@stupidchicken.com>
13012
13013 * keyboard.c (read_key_sequence): Remove always-true checks.
13014
130152008-04-14 Jason Rumney <jasonr@gnu.org>
13016
13017 * w32font.c (w32font_open_internal): Set max_bounds.descent in
13018 compatibility struct, for better underline positioning.
13019
130202008-04-13 David Hansen <david.hansen@gmx.net>
13021
13022 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
13023 string.
13024
130252008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
13026
13027 * m/hp800.h (XUINT, XSET): Remove.
13028
130292008-04-12 Juanma Barranquero <lekktu@gmail.com>
13030
13031 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
13032 previous change.
13033
130342008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
13035
13036 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
13037 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
13038
130392008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
13040
13041 * keymap.h (map_keymap_canonical): Declare.
13042 * xmenu.c (single_keymap_panes): Use it.
13043
130442008-04-11 Glenn Morris <rgm@gnu.org>
13045
13046 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
13047 set the target's value to that of the alias.
13048
130492008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
13050
13051 * term.c (set_tty_color_mode): Left over typo.
13052
130532008-04-10 Michael Albinus <michael.albinus@gmx.de>
13054
13055 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
13056 only after check for file name handler functions. Signal, when
13057 native functionality is not supported.
13058 (syms_of_fileio): Declare it unconditionally.
13059
130602008-04-10 Jason Rumney <jasonr@gnu.org>
13061
13062 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
13063 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
13064
13065 * w32.c (logon_network_drive): Also logon to remote drives that
13066 are mapped to drive letters.
13067
130682008-04-10 Glenn Morris <rgm@gnu.org>
13069
13070 * xdisp.c (truncate-partial-width-windows): Doc fix.
13071
130722008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
13073
13074 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
13075 Move functions to minibuffer.el.
13076 (syms_of_fileio): Don't declare them.
13077
130782008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
13079
13080 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
13081 (syms_of_minibuf): Remove its initialization.
13082
13083 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
13084
130852008-04-09 Juanma Barranquero <lekktu@gmail.com>
13086
13087 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
13088
130892008-04-09 Jason Rumney <jasonr@gnu.org>
13090
13091 * makefile.w32-in (distclean): Delete makefile too.
13092 (maintainer-clean): New target.
13093
13094 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
13095
13096 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
13097 for new font backend and composite cases.
13098
130992008-04-09 Jan Djärv <jan.h.d@swipnet.se>
13100
13101 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
13102 Most of the code moved to run_timers.
13103 (do_pending_atimers): Call run_timers.
13104 (run_timers): New function.
13105
13106 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
13107 run atimers.
13108
13109 * process.c (wait_reading_process_output): The same as above.
13110
131112008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
13112
13113 * minibuf.c (last_exact_completion): Remove variable.
13114 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
13115 (complete_and_exit_1, complete_and_exit_2)
13116 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
13117 (Fdisplay_completion_list, display_completion_list_1)
13118 (Fminibuffer_completion_help, Fself_insert_and_exit)
13119 (Fexit_minibuffer, Fminibuffer_message): Move functions to
13120 minibuffer.el.
13121 (syms_of_minibuf): Remove corresponding initializations.
13122
13123 * keyboard.c (Qdeactivate_mark): New var.
13124 (command_loop_1): Use it to call `deactivate-mark'.
13125 (syms_of_keyboard): Initialize it.
13126
13127 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
13128 to another frame.
13129 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
13130 Don't call set_tty_color_mode.
13131 (store_frame_param): Reset previous_frame rather than call
13132 set_tty_color_mode.
13133 * term.c (set_tty_color_mode): Rewrite.
13134 * dispextern.h (set_tty_color_mode): New type.
13135 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
13136
131372008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
13138
13139 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
13140 for generic chars, which do not exist any more in emacs-unicode.
13141
131422008-04-08 Michael Albinus <michael.albinus@gmx.de>
13143
13144 * coding.c (detect_coding_emacs_mule)
13145 (Ffind_operation_coding_system): Fix typo.
13146
131472008-04-08 Jason Rumney <jasonr@gnu.org>
13148
13149 * w32uniscribe.c (SNAME): Extract only symbol name.
13150
13151 * w32font.h (struct w32_metric_cache): New struct.
13152 (w32font_info): Use it.
13153 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
13154 (CACHE_BLOCKSIZE): New constants.
13155
13156 * w32font.c (Qja, Qko, Qzh): New symbols.
13157 (syms_of_w32font): Initialise them.
13158 (font_matches_spec): Use them to filter by language.
13159 (recompute_cached_metrics): Remove function.
13160 (compute_metrics, clear_cached_metrics): New functions.
13161 (w32font_encode_char): Use them to manage metric cache.
13162 (w32font_text_extents): Cache metrics for all glyphs on demand.
13163 Delay converting glyph indices to WORD until needed.
13164 (w32font_open_internal): Initialize metric cache to empty.
13165 (registry_to_w32_charset): Charset should always be a symbol.
13166 (fill_in_logfont, list_all_matching_fonts): Family should
13167 always be a symbol.
13168
131692008-04-06 Jason Rumney <jasonr@gnu.org>
13170
13171 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
13172 Give up if glyph indices not supported. Use uniscribe obtained
13173 ABC widths for individual metrics. Map glyph clusters back to
13174 characters using fClusterStart flag. Return number of glyphs
13175 produced, not chars processed.
13176 (uniscribe_shape): Map char at FROM to current glyph.
13177
131782008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13179
13180 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
13181 Use SetMenuItemHierarchicalMenu.
13182
131832008-04-05 Jason Rumney <jasonr@gnu.org>
13184
13185 * image.c (pbm_load): Allow color values up to 65535.
13186 Throw an error if max_color_idx is outside the supported range.
13187 Report an error when image size is invalid.
13188 Read two bytes at a time when raw images have max_color_idx above 255.
13189
131902008-04-05 Eli Zaretskii <eliz@gnu.org>
13191
13192 * w32.c (readdir): If FindFirstFile/FindNextFile return in
13193 cFileName a file name that includes `?' characters, use the 8+3
13194 alias in cAlternateFileName instead.
13195
131962008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
13197
13198 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
13199 append "CCL: Quitted" when the CCL program is quitted.
13200 (setup_ccl_program): Initialize ccl->quit_silently to zero.
13201
13202 * ccl.h (struct ccl_program): New member quit_silently.
13203
132042008-04-05 Chong Yidong <cyd@stupidchicken.com>
13205
13206 * search.c (compile_pattern_1): Treat non-nil and non-string of
13207 search-spaces-regexp as nil.
13208
13209 * minibuf.c (Fassoc_string): Tweak docstring.
13210
132112008-04-05 Eli Zaretskii <eliz@gnu.org>
13212
13213 * dired.c (Ffile_attributes): Support inode numbers wider than 32
13214 bits. Remove ugly WINDOWSNT-specific kludge introduced on
13215 2008-03-14 to force inode be positive.
13216
13217 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
13218 _S_* ones, since we now use our own sys/stat.h.
13219 (stat, fstat): Don't mangle the inode number.
13220 (init_user_info): Don't restrict UID and GID to 0-60000 range.
13221
132222008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
13223
13224 * frame.h (struct frame): Give one more bit to `visible' since we use
13225 values larger than 1 to indicate obscured frames on ttys.
13226
13227 * keymap.c (Qkeymap_canonicalize): New var.
13228 (Fmap_keymap_internal): New fun.
13229 (describe_map): Use keymap-canonicalize.
13230
13231 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
13232 (Fundo_boundary): Set them.
13233 (syms_of_undo): Initialize them.
13234 (record_point): Use them instead of last_point_position*.
13235 (last_undo_buffer): Change type.
13236
132372008-04-04 Jason Rumney <jasonr@gnu.org>
13238
13239 * w32font.c (w32font_text_extents): Use font's ascent and descent.
13240 (recompute_cached_metrics): Don't set ascent and descent per char.
13241
13242 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
13243 (uniscribe_check_otf): Add GC protection before consing.
13244 Rearrange loop for counting features.
13245
132462008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
13247
13248 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
13249 buffer with byte-size of source buffer.
13250
132512008-04-03 Chong Yidong <cyd@stupidchicken.com>
13252
13253 * callint.c (Fcall_interactively): Handle temporary region even
13254 when shift-select-mode is off.
13255
132562008-04-03 Jason Rumney <jasonr@gnu.org>
13257
13258 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
13259
132602008-04-03 Kenichi Handa <handa@m17n.org>
13261
13262 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
13263 (CATEGORY_MASK_UTF_16): Likewise.
13264 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
13265 binary file.
13266 (detect_coding): Add null-byte detection for a binary file.
13267 (detect_coding_system): Likewise.
13268
132692008-04-03 Jason Rumney <jasonr@gnu.org>
13270
13271 * w32uniscribe.c: New file.
13272
13273 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
13274
13275 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
13276
13277 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
13278 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
13279 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
13280 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
13281 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
13282 (Qphonetic): New symbols.
13283 (syms_of_w32font): Initialize them.
13284 (font_supported_scripts): Use them.
13285 (w32font_list_family): List all charsets.
13286 (w32font_text_extents, recompute_cached_metrics): Fix metric
13287 calculations.
13288 (w32_enumfont_pattern_entity): Make full_type a DWORD.
13289 Give opentype fonts their own format.
13290 (font_matches_spec): New arguments backend and logfont.
13291 Handle :otf spec for uniscribe backend.
13292 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
13293 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
13294
13295 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
13296 font backend.
13297 (globals_of_w32fns): Initialize uniscribe font backend.
13298
13299 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
13300 dependencies.
13301 (w32uniscribe.$(O)): New file to build.
13302 (FONT_OBJ): Include w32uniscribe.$(O).
13303 (LIBS): Add uniscribe libraries.
13304
13305 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
13306
133072008-04-02 Chong Yidong <cyd@stupidchicken.com>
13308
13309 * callint.c (Vshift_select_mode): New var.
13310 (Finteractive): Document new ^ spec.
13311 (Fcall_interactively): Call handle-shift-selection if the ^ spec
13312 is present.
13313
13314 * keyboard.c (Vthis_command_keys_shift_translated): New var.
13315 (command_loop_1): Avoid running the direct display versions of
13316 forward-char and backward-char if shift-selection may occur.
13317 (read_key_sequence): Set Vthis_command_keys_shift_translated if
13318 shift-translation takes place.
13319
13320 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
13321 avoid clobbering by define-minor-mode.
13322
13323 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
13324 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
13325
13326 * syntax.c (Fforward_word): Add ^ interactive spec.
13327
13328 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
13329 (Fscroll_right): Add ^ interactive spec.
13330
133312008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
13332
13333 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
13334
13335 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
13336
13337 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
13338
133392008-03-31 Juri Linkov <juri@jurta.org>
13340
13341 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
13342
133432008-03-30 Jan Djärv <jan.h.d@swipnet.se>
13344
13345 * gtkutil.c (xg_set_geometry): Fix indentation.
13346 (xg_resize_outer_widget): Remove.
13347 (x_wm_size_hint_off): Fix indentation.
13348 (xg_frame_set_char_size): Call flush_and_sync after
13349 gtk_window_resize.
13350 (x_wm_set_size_hint): Pass NULL as geometry window to
13351 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
13352 Add menu bar and tool bar height to base height.
13353 (xg_update_frame_menubar, free_frame_menubar)
13354 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
13355 (update_frame_tool_bar, free_frame_tool_bar):
13356 Change xg_resize_outer_widget to xg_frame_set_char_size.
13357
133582008-03-30 Michael Albinus <michael.albinus@gmx.de>
13359
13360 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
13361 (Fdbus_call_method): New parameter TIMEOUT.
13362 (dbus-send-signal): Optimize UNGCPRO call.
13363
133642008-03-29 Juri Linkov <juri@jurta.org>
13365
13366 * window.c (Fdisplay_buffer): Move call to
13367 Vsplit_window_preferred_function out of conditions that check
13368 if window is eligible for vertical splitting.
13369 When Vsplit_window_preferred_function is non-nil, call it and use
13370 its non-nil return value as window. Otherwise, continue doing
13371 vertical splitting using Fsplit_window with arg horflag=nil.
13372 (syms_of_window) <Vsplit_window_preferred_function>: Change the
13373 default value from `split-window' to nil.
13374
133752008-03-29 Juri Linkov <juri@jurta.org>
13376
13377 * callint.c (Fcall_interactively): Revert 2008-03-16 change
13378 for interactive code letters 'b' and 'B'.
13379
133802008-03-29 Eli Zaretskii <eliz@gnu.org>
13381
13382 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
13383 multibyte string.
13384
133852008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
13386
13387 * keyboard.c (pending_funcalls): New var.
13388 (timer_check): Run it.
13389 (syms_of_keyboard): Initialize it.
13390 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
13391 (Vdelete_terminal_functions): New vars.
13392 (syms_of_terminal): Initialize them.
13393 (Fdelete_terminal): Run delete-terminal-functions.
13394 * xdisp.c (safe_eval): Rewrite.
13395 (safe_call2): New fun.
13396 * frame.c (Qdelete_frame_functions): New var.
13397 (syms_of_frame): Initialize it.
13398 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
13399 * lisp.h (safe_call2, pending_funcalls): Declare.
13400
134012008-03-28 Andreas Schwab <schwab@suse.de>
13402
13403 * indent.c (Fmove_to_column): Move declaration before statements.
13404
134052008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
13406
13407 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
13408 (struct frame): Use bit fields for boolean vars.
13409
13410 * process.c (server_accept_connection): Simplify naming.
13411 (emacs_get_tty_pgrp): Use SDATA.
13412
13413 * coding.c (decode_coding_object): Fix last change.
13414
134152008-03-27 Jason Rumney <jasonr@gnu.org>
13416
13417 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
13418
134192008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
13420
13421 * charset.c (Fdefine_charset_internal): Change the way of
13422 registering charsets in Vcharset_order_list.
13423 (syms_of_charset): Make the charset `eight-bit' supplementary.
13424
134252008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
13426
13427 * regex.c (EXTEND_BUFFER): Change order of pointer addition
13428 operations, to avoid having the difference between pointers
13429 overflow.
13430
134312008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
13432
13433 * indent.c (check_display_width): New fun.
13434 (scan_for_column): Use it.
13435
13436 * data.c (syms_of_data): Mark most-positive-fixnum and
13437 most-negative-fixnum as constants.
13438
13439 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
13440
13441 * indent.c (scan_for_column): Extract from current_column_1.
13442 Merge with the same code from Fmove_to_column.
13443 (current_column_1, Fmove_to_column): Use it.
13444
134452008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
13446
13447 * keymap.c (map_keymap_internal): New fun.
13448 (map_keymap): Use it.
13449 (Fmap_keymap_internal): New fun.
13450 (Fmap_keymap): Remove left-out test from before make_save_value.
13451
13452 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
13453
13454 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
13455 Use XCAR/XCDR.
13456
13457 * process.h (struct Lisp_Process): Remove filter_multibyte.
13458 * process.c (QCfilter_multibyte): Remove.
13459 (setup_process_coding_systems): Don't use filter_multibyte.
13460 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
13461 (read_process_output): Don't adjust multibyteness to filter_multibyte.
13462 (Fset_process_filter_multibyte): Change the coding-system to
13463 approximate the previous behavior.
13464 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
13465 coding-system.
13466
13467 * coding.c (decode_coding_object): When not decoding into a buffer,
13468 obey the coding system's preference of (uni|multi)byte.
13469
134702008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
13471
13472 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
13473 every char is changed and has a different byte-length.
13474 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
13475 Fix int -> EMACS_INT.
13476
134772008-03-23 David Hansen <david.hansen@gmx.net>
13478
13479 * dbusbind.c (xd_read_message): Remove extra copying of message
13480 strings. Check for NULL `interface' or `member'.
13481
134822008-03-22 Eli Zaretskii <eliz@gnu.org>
13483
13484 * w32.c (readdir): If FindFirstFile/FindNextFile return in
13485 cFileName a file name that includes `?' characters, use the 8+3
13486 alias in cAlternateFileName instead.
13487
134882008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
13489
13490 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
13491
134922008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
13493
13494 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
13495 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
13496 work on current_buffer only instead (that was already the case
13497 for some of the code anyway).
13498 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
13499 (temp_set_point, temp_set_point_both): Use EMACS_INT.
13500 (SET_PT, SET_PT_BOTH): Adjust.
13501 * intervals.h (set_point, temp_set_point, set_point_both)
13502 (temp_set_point_both): Remove redundant declarations.
13503
135042008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
13505
13506 * fileio.c (Finsert_file_contents):
13507 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
13508 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
13509 when buffer != current_buffer anyway.
13510
135112008-03-20 Andreas Schwab <schwab@suse.de>
13512
13513 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
13514 as default.
13515
135162008-03-19 Jason Rumney <jasonr@gnu.org>
13517
13518 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
13519 (syms_of_w32fns): Initialize them.
13520 (HOURGLASS_ID): New constant.
13521 (x_window_to_frame): Don't check hourglass_window.
13522 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
13523 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
13524 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
13525 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
13526 Only change the cursor if hourglass is not active.
13527 (Fx_create_frame): Initialize frame's current_cursor.
13528 (hourglass_atimer): Remove.
13529 (hourglass_started): New function.
13530 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
13531 (show_hourglass): Adapt to w32, changing argument to frame.
13532
13533 * w32term.h (struct w32_output): Remove hourglass_window.
13534 Add current_cursor.
13535
13536 * eval.c (call_debugger, Fsignal):
13537 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
13538 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
13539 (Fexecute_extended_command, cancel_hourglass_unwind):
13540 * minibuf.c (read_minibuf):
13541 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
13542
135432008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
13544
13545 * window.c (run_funs): New fun.
13546 (run_window_configuration_change_hook): Use it to run the buffer-local
13547 and the global part of the hook.
13548
13549 * xdisp.c (format_mode_line_unwind_data): Add window argument.
13550 (unwind_format_mode_line): Restore selected window.
13551 (x_consider_frame_title, Fformat_mode_line): Set selected window.
13552
135532008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
13554
13555 * editfns.c (Fchar_equal): Check they are valid characters.
13556
13557 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
13558
135592008-03-17 Andreas Schwab <schwab@suse.de>
13560
13561 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
13562 against a charset.
13563
13564 * lisp.h (Fbuffer_list): Declare.
13565
135662008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 13567
aac0c6e3
MR
13568 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
13569 handlebox_widget is != 0.
13570
135712008-03-16 Juri Linkov <juri@jurta.org>
13572
13573 * callint.c (Fcall_interactively): For interactive code letters
13574 'b' and 'B' put the buffer list into the list of default "future"
13575 values of the minibuffer.
13576
135772008-03-16 Andreas Schwab <schwab@suse.de>
13578
13579 * keyboard.c (read_key_sequence): Fix downcasing of letters with
13580 modifiers.
13581
13582 * regex.c (re_match_2_internal): Correct matching of a charset
13583 against latin-1 characters.
13584
135852008-03-16 Kenichi Handa <handa@m17n.org>
13586
13587 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
13588 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
13589 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
13590 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
13591 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
13592 CHAR_STRING_ADVANCE.
13593 (produce_chars): Fix for the case that the source and the
13594 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
13595 instead of CHAR_STRING_ADVANCE.
13596 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
13597 STRING_CHAR_ADVANCE.
13598
135992008-03-15 Andreas Schwab <schwab@suse.de>
13600
13601 * regex.c (re_match_2_internal): Correct matching of eight bit
13602 characters in unibyte strings.
13603
136042008-03-15 Martin Rudalics <rudalics@gmx.at>
13605
13606 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
13607 at end of range when it coincides with the end of the buffer.
13608
136092008-03-14 Eli Zaretskii <eliz@gnu.org>
13610
13611 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
13612
13613 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
13614
136152008-03-14 Jason Rumney <jasonr@gnu.org>
13616
13617 * editfns.c (initial_tz): New variable.
13618 (syms_of_editfns): Initialize it.
13619 (Fset_time_zone_rule): Set it when first called.
13620 Use it when TZSTRING is nil.
13621
13622 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
13623 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
13624 (monitor_from_point_fn, get_monitor_info_fn): New globals.
13625 (globals_of_w32fns): Initialize them.
13626 (compute_tip_xy): Use them to position tooltips.
13627
136282008-03-14 Glenn Morris <rgm@gnu.org>
13629
13630 * emacs.c (main): Revert previous change.
13631 (standard_args): Revert -internal-script back to -scriptload,
13632 and remove the long-option form.
13633
136342008-03-13 Glenn Morris <rgm@gnu.org>
13635
13636 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
13637 Remove option -enable-font-backend.
13638
136392008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
13640
13641 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
13642
136432008-03-11 Jan Djärv <jan.h.d@swipnet.se>
13644
13645 * xterm.c (x_connection_closed): For GTK: If this is the last
13646 terminal just exit without closing the display.
13647
136482008-03-11 Jason Rumney <jasonr@gnu.org>
13649
13650 * w32font.c (w32font_full_name): Use floor to round.
13651
f0131492 136522008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
13653
13654 * sound.c (alsa_configure): Declare vol at beginning of block.
13655
13656 * fontset.c (Ffontset_info): Remove extra semicolon.
13657
136582008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
13659
13660 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
13661 size of resulting string.
13662
136632008-03-10 Jason Rumney <jasonr@gnu.org>
13664
13665 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
13666
136672008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13668
13669 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
13670 Don't pretend as if characters with display property haven't been
13671 consumed for string-replacing-string case.
13672
136732008-03-08 Kim F. Storm <storm@cua.dk>
13674
13675 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
13676 (get_next_display_element, next_element_from_string)
13677 (next_element_from_ellipsis, next_element_from_buffer): Use it.
13678
136792008-03-08 Andreas Schwab <schwab@suse.de>
13680
13681 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
13682
136832008-03-06 Jason Rumney <jasonr@gnu.org>
13684
13685 * w32font.c (w32_registry): Take font_type argument. Use ANSI
13686 when charset not specified. Only translate ANSI to unicode when
13687 font_type is truetype.
13688 (w32font_coverage_ok): New function.
13689 (add_font_entity_to_list): Use it to filter unsuitable fonts.
13690
136912008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
13692
13693 * lread.c (Fread_char): Resolve modifiers.
13694 (Fread_char_exclusive): Likewise.
13695
13696 * character.c (char_resolve_modifier_mask): New function.
13697 (char_string): Use char_resolve_modifier_mask.
13698 (Fchar_resolve_modifiers): New function.
13699 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
13700 function.
13701
137022008-03-04 Jason Rumney <jasonr@gnu.org>
13703
13704 * makefile.w32-in: Always include w32font.c in the build.
13705 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
13706
137072008-03-04 Andreas Schwab <schwab@suse.de>
13708
13709 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
13710 (versionclean): Likewise.
13711
137122008-03-04 Juanma Barranquero <lekktu@gmail.com>
13713
13714 * .cvsignore: Add oo.
13715
137162008-03-03 Andreas Schwab <schwab@suse.de>
13717
13718 * coding.c (decode_coding_object): Inhibit gap shrinking while
13719 decoding in place.
13720
137212008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
13722
13723 * w32term.c: Remove unused include "gnu.h".
13724 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
13725
13726 * gnu.h: Rename to ...
13727 * emacs-icon.h: ... this.
13728 * xterm.c: Use emacs-icon.h instead of gnu.h.
13729 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
13730
137312008-03-03 Juanma Barranquero <lekktu@gmail.com>
13732
13733 * w32font.c: Include math.h.
13734
137352008-03-03 Jason Rumney <jasonr@gnu.org>
13736
13737 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
13738 Compute options separately.
13739 (w32font_open_internal): Set glyph_idx before caching metrics.
13740
13741 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
13742 Define if system headers don't.
13743 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
13744 (w32font_encode_char): Don't declare here.
13745
13746 * w32font.c (Quniscribe, QCformat): New symbols.
13747 (syms_of_w32font): Define them.
13748 (w32font_has_char): Indicate uncertainty.
13749 (w32font_encode_char): Encode as glyph point. Make static.
13750 (recompute_cached_metrics): New function.
13751 (w32font_open_internal): Use it. Set font to use glyph points
13752 initially. Set format based on type of font.
13753 (w32font_text_extents, w32font_draw): Optionally use glyph points.
13754 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
13755 on it. Set format based on information available here.
13756 (add_font_entity_to_list): Identify backend based on opentype_only.
13757
137582008-03-02 Andreas Schwab <schwab@suse.de>
13759
13760 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
13761
13762 * coding.c (decode_coding_big5, produce_chars):
13763 Fix typos in last change.
13764
137652008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
13766
13767 * gnu.h: New icon.
13768
137692008-03-02 Kenichi Handa <handa@m17n.org>
13770
13771 * coding.c (decode_coding_utf_8): When eol-type of CODING is
13772 `dos', don't decode '\r' if that is the last in the source.
13773 (decode_coding_utf_16, decode_coding_emacs_mule)
13774 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
13775 (decode_coding_raw_text, decode_coding_charset): Likewise.
13776 (produce_chars): Don't decode EOL here. Use EMACS_INT.
13777
137782008-03-01 Jason Rumney <jasonr@gnu.org>
13779
13780 * w32font.c (w32font_full_name): Report point size for scalable fonts.
13781
137822008-03-01 Kim F. Storm <storm@cua.dk>
13783
13784 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
13785
137862008-03-01 Jason Rumney <jasonr@gnu.org>
13787
13788 * w32font.c (w32font_full_name): New function.
13789 (w32font_open_internal): Use it.
13790
137912008-03-01 Kim F. Storm <storm@cua.dk>
13792
13793 * dispnew.c (line_draw_cost): Fix invalid glyph check.
13794
137952008-03-01 Jason Rumney <jasonr@gnu.org>
13796
13797 * font.c (font_unparse_fcname): Increase len when style is a symbol.
13798
137992008-03-01 Jan Djärv <jan.h.d@swipnet.se>
13800
13801 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
13802 xg_frame_resized when the event is for the edit widget.
13803
13804 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
13805
13806 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
13807 set_char_size.
13808 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
13809 operations on widgets here. Just set frame size if needed.
13810 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
13811 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
13812 (x_wm_set_size_hint): Set size hints on the edit widget only, not
13813 the whole frame.
13814 (xg_create_tool_bar): Move attachment of the tool bar to
13815 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
13816 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
13817
138182008-03-01 Jason Rumney <jasonr@gnu.org>
13819
13820 * w32fns.c (w32_msg_pump): Disable debug code.
13821
138222008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13823
13824 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
13825
138262008-02-29 Chong Yidong <cyd@stupidchicken.com>
13827
13828 * xdisp.c (next_overlay_string): Don't set
13829 overlay_strings_at_end_processed_p if we're currently reading from
13830 a display string.
13831
138322008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
13833
13834 * xdisp.c (get_overlay_strings_1): Fix typo.
13835
138362008-02-29 Chong Yidong <cyd@stupidchicken.com>
13837
13838 * xdisp.c (get_overlay_strings_1): Add missing argument type.
13839
138402008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
13841
13842 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
13843
13844 * xdisp.c (display_mode_element): Cancel the previous change.
13845 (decode_mode_spec): Likewise.
13846 (handle_auto_composed_prop): Don't make composition if it->string
13847 is a string.
13848
138492008-02-27 Kim F. Storm <storm@cua.dk>
13850
13851 * lisp.h (GLYPH): Change type from int to struct with separate char
13852 and face_id members.
13853 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
13854 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
13855 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
13856 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
13857 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
13858 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
13859 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
13860 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
13861 handle new Lisp glyph code encoding, either an integer or a cons.
13862
13863 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
13864 (GLYPH_ALIAS): Delete.
13865 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
13866 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
13867 (GLYPH_FROM_CHAR): Replace macro by ...
13868 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
13869
13870 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
13871 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
13872 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
13873 (GLYPH_INVALID_P): New macro.
13874 (spec_glyph_lookup_face): Update prototype.
13875
13876 * dispnew.c (line_draw_cost): Adapt to new glyph type.
13877 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
13878 new glyph code encoding.
13879 (spec_glyph_lookup_face): No return value; update passed glyph instead.
13880 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
13881
13882 * xdisp.c (get_next_display_element, next_element_from_display_vector):
13883 Adapt to new glyph type and new glyph code encoding.
13884
13885 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
13886
13887 * indent.c (current_column, current_column_1, Fmove_to_column)
13888 (compute_motion): Adapt to new glyph code encoding.
13889
13890 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
13891
138922008-02-27 Chong Yidong <cyd@stupidchicken.com>
13893
13894 * process.c (wait_reading_process_output): Check for window
13895 changes caused by timers.
13896 Suggested by Johan Bockgård.
13897
138982008-02-27 Glenn Morris <rgm@gnu.org>
13899
13900 * emacs.c (USAGE1): Add `--disable-font-backend'.
13901
139022008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
13903
13904 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
13905 is made to the buffer.
13906
139072008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
13908
13909 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
13910 (face_at_string_position):
13911 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
13912 (face_at_string_position):
13913 * xdisp.c (display_string, next_overlay_change):
13914 * buffer.h (overlays_at):
13915 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
13916 Update callers.
13917
139182008-02-26 Chong Yidong <cyd@stupidchicken.com>
13919
13920 * editfns.c (Fformat): Doc fix.
13921
139222008-02-26 Juanma Barranquero <lekktu@gmail.com>
13923
13924 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
13925 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
13926 (Ffont_otf_alternates, Fquery_font): Doc fixes.
13927
139282008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
13929
13930 * buffer.c (Fbuffer_swap_text): New function.
13931 (syms_of_buffer): Defsubr it.
13932
139332008-02-25 Chong Yidong <cyd@stupidchicken.com>
13934
13935 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
13936
139372008-02-25 Jason Rumney <jasonr@gnu.org>
13938
13939 * w32font.c (w32font_draw): Draw one character at a time when padding.
13940
139412008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
13942
13943 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
13944 Handle a nil arg. Use run_window_configuration_change_hook.
13945 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
13946 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
13947 Use run_window_configuration_change_hook.
13948
139492008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
13950
13951 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
13952 1-pixel width.
13953
139542008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
13955
13956 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
13957 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
13958 if the glyph in the font is zero pixel with.
13959
13960 * dispextern.h (struct glyph_string): New member padding_p.
13961
13962 * w32font.c (w32font_draw): Pay attention to s->padding_p.
13963
13964 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
13965
13966 * xfont.c (xfont_draw): Pay attention to s->padding_p.
13967
13968 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
13969
13970 * font.c: If the font driver doesn't have `shape' function, return Qnil.
13971
139722008-02-25 Jason Rumney <jasonr@gnu.org>
13973
13974 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
13975
139762008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
13977
13978 Allow fine-grained image-cache flushing.
13979 * dispextern.h (struct image): Add `dependencies' field.
13980 (clear_image_caches): Change arg to Lisp_Object.
13981 * image.c (make_image): Initialize `dependencies' field.
13982 (clear_image_cache): Change arg to allow fine-grained flushing.
13983 Perform the flush even if image-cache-eviction-delay is nil.
13984 (clear_image_caches): Change arg to Lisp_Object.
13985 (Fclear_image_cache): Expand meaning of the argument.
13986 (mark_image): Mark `dependencies' field.
13987 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
13988 (lface_hash): Use XHASH rather than XFASTINT.
13989 (face_at_buffer_position): Fix int -> EMACS_INT position.
13990 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
13991 (select_frame_for_redisplay): Remove code duplication.
13992 (redisplay_internal): Adapt arg to call to clear_image_caches.
13993
139942008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
13995
13996 * s/vms4-0.h:
13997 * s/vms4-2.h:
13998 * s/vms4-4.h:
13999 * s/vms5-5.h: Remove, unused.
14000
14001 * s/irix5-2.h:
14002 * s/irix6-0.h:
14003 * s/riscos5.h:
14004 * s/mach-bsd4-3.h:
14005 * m/mips4.h: Remove files for obsolete systems.
14006
14007 * Makefile.in:
14008 * filelock.c:
14009 * unexmips.c:
14010 * m/hp9000s300.h:
14011 * m/iris4d.h:
14012 * s/aix3-1.h:
14013 * s/hpux.h:
14014 * s/msdos.h:
14015 * s/usg5-0.h:
14016 * s/usg5-2-2.h:
14017 * s/usg5-2.h:
14018 * s/usg5-3.h: Remove references to obsolete variables.
14019
14020 * s/irix5-0.h: Remove, move all the contents ...
14021 * s/irix6-5.h: ... here. Simplify.
14022 * config.in: Regenerate.
14023
140242008-02-24 Jason Rumney <jasonr@gnu.org>
14025
14026 * w32term.c (x_draw_glyph_string_background): Clear the background
14027 manually when cleartype is in use.
14028 (x_draw_glyph_string_foreground): Draw text transparently when
14029 cleartype is in use.
14030
14031 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
14032 a font into it unless we have to.
14033
140342008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
14035
14036 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
14037 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 14038
aac0c6e3
MR
140392008-02-18 Jason Rumney <jasonr@gnu.org>
14040
14041 * w32fns.c (Fw32_shell_execute): Encode parameters.
14042
140432008-02-09 Eli Zaretskii <eliz@gnu.org>
14044
14045 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
14046
140472008-02-05 Juanma Barranquero <lekktu@gmail.com>
14048
14049 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
14050
140512008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
14052
14053 * xterm.c (x_set_offset): Don't change the gravity if
14054 CHANGE_GRAVITY is -1.
14055
140562008-02-23 Chong Yidong <cyd@stupidchicken.com>
14057
14058 * fileio.c (auto_save_error_occurred): New var.
14059 (auto_save_error): Set it.
14060 (Fdo_auto_save): Don't overwrite the error message if an auto-save
14061 error occurred.
14062
140632008-02-23 Eli Zaretskii <eliz@gnu.org>
14064
14065 * w32.c (globals_of_w32): Add initializations for
14066 g_b_init_get_sid_sub_authority and
14067 g_b_init_get_sid_sub_authority_count.
14068
140692008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
14070
14071 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
14072 (font_parse_xlfd): Use them for sanity check.
14073 (Finternal_set_font_style_table): Make sure the table is bijective.
14074
14075 Consolidate the image_cache to the terminal struct.
14076 * termhooks.h (P_): Remove redundant def.
14077 (struct terminal): New field `image_cache'.
14078 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
14079 of FRAME_X_IMAGE_CACHE.
14080 * xterm.h (struct x_display_info): Remove image_cache field.
14081 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
14082 * w32term.h (struct w32_display_info): Remove image_cache field.
14083 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
14084 * macterm.h (struct mac_display_info): Remove image_cache field.
14085 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
14086 * xterm.c (x_term_init):
14087 * w32term.c (w32_term_init):
14088 * macterm.c (mac_term_init): Set the image_cache in the terminal.
14089 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
14090 Remove declarations.
14091 (clear_image_caches, mark_image_cache): New declarations.
14092 * xfaces.c (clear_face_cache):
14093 * xdisp.c (redisplay_internal): Use clear_image_caches.
14094 * image.c (clear_image_cache): Don't check that a frame is on
14095 a window-system before checking if it shares the same cache.
14096 (clear_image_caches): New function.
14097 (Fclear_image_cache): Use it.
14098 (mark_image): Move from allo.c.
14099 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
14100 * alloc.c (mark_image, mark_image_cache): Move to image.c.
14101 (mark_object): Don't call mark_image_cache for frames.
14102 (mark_terminals): Call mark_image_cache.
14103
14104 * lisp.h (Fdelete_terminal): Declare.
14105
14106 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
14107 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
14108 wrong_type_argument.
14109
141102008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
14111
14112 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
14113 malayalam.el, and tamil.el. Add sinhala.el.
14114
141152008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
14116
14117 * xterm.c (x_connection_closed): Consolidate identical tests.
14118 (x_delete_terminal): Don't crash if called via x_connection_closed.
14119
141202008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
14121
14122 * xdisp.c (decode_mode_spec): New arg string.
14123 (display_mode_element): Adjust for the above change.
14124
141252008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
14126
14127 * callint.c (Fcall_interactively): Use AREF.
14128
141292008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
14130
14131 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
14132
141332008-02-18 Jan Djärv <jan.h.d@swipnet.se>
14134
14135 * xfns.c (Fx_show_tip): Set string to " " if empty.
14136
141372008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
14138
14139 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
14140 with Qt.
14141
141422008-02-17 Kenichi Handa <handa@m17n.org>
14143
14144 * ftfont.c (ftfont_shape): Return Lispy number.
14145
14146 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
14147 for GCs.
14148 (Finternal_set_font_selection_order): Call font_update_sort_order
14149 only when enable_font_backend is set.
14150 (realize_x_face): Set face->font_info to that of default face only
14151 when enable_font_backend is set.
14152
14153 * xdisp.c (handle_composition_prop): Set it->c to the fist
14154 character of the composed region.
14155 (fill_composite_glyph_string): Set base_face->font_info to
14156 s->font_info. Get a face for ascii from base_face->ascii_face.
14157 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
14158 with a face already decided.
14159 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
14160 non-negative.
14161 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
14162 call font_prepare_composition unconditionally.
14163
14164 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
14165
14166 * xterm.h (struct x_display_info): New member font.
14167
14168 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
14169 (x_set_mouse_face_gc, x_new_font): Likewise.
14170 (x_term_init): Setup display_info->font.
14171 (x_delete_terminal): Free display_info->font.
14172
14173 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
14174
14175 * ftxfont.c (ftxfont_default_fid): Delete it.
14176 (ftxfont_open): Set xfont->fid to 0.
14177 (ftxfont_end_for_frame): Clear data specific to the frame and the
14178 font-driver.
14179
14180 * xftfont.c (xftfont_default_fid): Delete it.
14181 (xftfont_open): Set xfont->fid to 0.
14182
14183 * fontset.c (FONTSET_OBJLIST): New macro.
14184 (fontset_find_font): Update font-object list of the fontset.
14185 (free_realized_fontset): New function.
14186 (free_face_fontset): Call free_realized_fontset.
14187 (Ffont_info): Call font_close_object only when enable_font_backend
14188 is set.
14189
14190 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
14191 [HAVE_NTGUI]: Include w32term.h.
14192 [MAC_OS]: Include macterm.ch.
14193 (font_otf_ValueRecord): Use make_number.
14194 (font_finish_cache): Fix handling of reference count.
14195 (font_clear_cache): Update num_fonts.
14196 (font_open_entity): Update smallest_char_width and
14197 smallest_font_height of the frame.
14198 (font_close_object): Update num_fonts.
14199 (Fclear_font_cache): Fix finding the target cache data.
14200
142012008-02-16 Glenn Morris <rgm@gnu.org>
14202
14203 * fontset.c (Finternal_char_font): Fix compilation warning.
14204
142052008-02-16 Eli Zaretskii <eliz@gnu.org>
14206
14207 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
14208 instead of char arrays. Enlarge the size of array passed to
14209 get_token_information.
14210
14211 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
14212 warnings.
14213
142142008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
14215
14216 * .gdbinit: Don't set `args', it breaks gdb --args.
14217
142182008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
14219
14220 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
14221 within a narrowed buffer.
14222
142232008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
14224
14225 * coding.c (decode_coding_object, encode_coding_object):
14226 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
14227
142282008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
14229
14230 * coding.c (coding_set_destination): Use BEG_BYTE rather than
14231 hardcoding 1.
14232 (detect_coding_system):
14233 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
14234 (string_char_to_byte, string_byte_to_char, insert_from_gap):
14235 * insdel.c (insert_from_gap):
14236 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
14237 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
14238 (string_to_multibyte):
14239 * character.c (chars_in_text, multibyte_chars_in_text):
14240 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
14241
14242 * character.h (FETCH_STRING_CHAR_ADVANCE)
14243 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
14244 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
14245 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
14246
14247 * casefiddle.c (casify_region): Only call after-change and composition
14248 functions on the part of the region that was changed.
14249
14250 * keyboard.c (read_avail_input):
14251 * frame.c (Fdelete_frame): Call Fdelete_terminal.
14252
142532008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
14254
14255 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
14256 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
14257
142582008-02-11 Juanma Barranquero <lekktu@gmail.com>
14259
14260 * w32menu.c (push_submenu_start, push_submenu_end)
14261 (push_left_right_boundary, push_menu_pane, push_menu_item):
14262 * keyboard.c (read_key_sequence): Don't pass args with side effects
14263 to AREF, it fails when compiling with -DENABLE_CHECKING.
14264
142652008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
14266
14267 * Makefile.in (${lispsource}international/charprop.el):
14268 Delete this target.
14269
14270 * search.c (boyer_moore): Fix incorrect synching of the trunk and
14271 emacs-unicode-2.
14272
142732008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
14274
14275 * terminal.c (Fdelete_terminal): Clean up the `force' path.
14276
142772008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
14278
14279 * frame.c (Qnoelisp): New symbol.
14280 (syms_of_frame): Initialize it.
14281 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
14282 harmless Elisp code, from a strong `force' from x_connection_closed.
14283 * frame.h (Qnoelisp): Declare.
14284 * xterm.c (x_connection_closed): Pass `noelisp'.
14285
14286 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
14287 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
14288 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
14289 rather than `int' for the type of `type'.
14290
142912008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
14292
14293 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
14294
14295 * Makefile.in (GNUC): Remove support for gcc-1.x.
14296
142972008-02-10 Richard Stallman <rms@gnu.org>
14298
14299 * lisp.h (ASET): Use AREF, not ASLOT.
14300
143012008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
14302
14303 * lisp.h (ASET): Check bounds.
14304
143052008-02-10 Glenn Morris <rgm@gnu.org>
14306
14307 * buffer.c (mode-name): Doc fix.
14308
143092008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
14310
14311 * Makefile.in:
14312 * emacs.c:
14313 * gmalloc.c:
14314 * keyboard.c:
14315 * lisp.h:
14316 * m/ibm370aix.h:
14317 * process.c:
14318 * regex.c:
14319 * s/hpux.h:
14320 * sysdep.c:
14321 * sysselect.h:
14322 * systty.h:
14323 * unexec.c:
14324 * w32term.c:
14325 * xsmfns.c:
14326 * xterm.c: Remove code that deals with obsolete variables.
14327
14328 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
14329
14330 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
14331 nothing else needs it anymore.
14332
143332008-02-09 Eli Zaretskii <eliz@gnu.org>
14334
14335 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
14336 instead of unibyte_char_to_multibyte.
14337
143382008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
14339
14340 * s/gnu-linux.h: Remove commented out code.
14341
14342 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
14343
14344 * Makefile.in: Update what RMS says about using autoconf.
14345 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
14346 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
14347 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
14348 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
14349
143502008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
14351
14352 * keymap.c (Fkey_description): Move side effect outside of macro call.
14353
14354 * xfaces.c (Finternal_make_lisp_face):
14355 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
14356
14357 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
14358 (syms_of_fontset): Use ASET.
14359
14360 * fns.c (concat): Move side effect outside of macro call.
14361 (hash_clear): Use ASET.
14362
143632008-02-08 Richard Stallman <rms@gnu.org>
14364
14365 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
14366 If FORCE, and frame has a surrogate minibuffer for another frame,
14367 delete the other frame first.
14368
143692008-02-07 Timo Savola <timo.savola@iki.fi>
14370
14371 * xterm.c (x_detect_focus_change): Handle embed client message.
14372 (handle_one_xevent): Ditto.
14373 (handle_one_xevent): If embedded and we get a button press/release,
14374 request focus.
14375 (xembed_set_info, xembed_send_message): New functions.
14376 (x_make_frame_visible): Call xembed_set_info if embedded.
14377 (x_make_frame_invisible): Call xembed_set_info if embedded.
14378 (x_term_init): Initialize Xatom_XEMBED.
14379 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
14380 (x_iconify_frame): Ditto.
14381
14382 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
14383 (enum xembed_info, enum xembed_message, enum xembed_focus)
14384 (enum xembed_modifier, enum xembed_accelerator): New.
14385 (xembed_set_info, xembed_send_message): Declare.
14386 (FRAME_X_EMBEDDED_P): New.
14387
14388 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
14389 gtk_plug_new.
14390
14391 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
14392 window ID of a frame.
14393 (x_window): Reparent frame if embedded.
14394 (Fx_create_frame): Don't set border width if embedded.
14395
14396 * emacs.c (USAGE3): Add --parent-id.
14397 (standard_args): Ditto.
14398
143992008-02-07 Jan Djärv <jan.h.d@swipnet.se>
14400
14401 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
14402
144032008-02-07 Jim Meyering <meyering@redhat.com>
14404
14405 Use "do...while (0)", not "if (1)...else" in macro definitions.
14406 The latter provokes a warning from gcc about the empty else, when
14407 followed by ";". Also, without that trailing semicolon, it would
14408 silently swallow up any following statement.
14409 * syntax.h (SETUP_SYNTAX_TABLE)
14410 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
14411 * buffer.h (DECODE_POSITION): Likewise.
14412 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
14413 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
14414 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
14415 (FETCH_CHAR_ADVANCE): Likewise.
14416 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
14417
144182008-02-07 Jim Meyering <meyering@redhat.com>
14419
14420 * lread.c [lint]: Don't include <sys/inode.h>.
14421
144222008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
14423
14424 * xselect.c (x_handle_dnd_message):
14425 * xmenu.c (digest_single_submenu, xmenu_show):
14426 * xdisp.c (with_echo_area_buffer_unwind_data)
14427 (format_mode_line_unwind_data, unwind_format_mode_line)
14428 (display_menu_bar):
14429 * eval.c (Ffetch_bytecode):
14430 * doc.c (store_function_docstring):
14431 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
14432 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
14433 * buffer.c (add_overlay_mod_hooklist): Use ASET.
14434
144352008-02-07 Kenichi Handa <handa@m17n.org>
14436
14437 * ftxfont.c (ftxfont_open): Don't set
14438 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
14439
14440 * ftfont.c (ftfont_open): Fix previous change.
14441
144422008-02-06 Jason Rumney <jasonr@gnu.org>
14443
14444 * w32font.c (w32font_text_extents): Fill in lbearing metric.
14445 Use cached metrics for ASCII characters.
14446 (w32font_open_internal): Don't set font's owning_frame.
14447 Cache metrics for ASCII characters.
14448
14449 * w32font.h (struct w32font_info): Add ascii_metrics.
14450 Remove owning_frame.
14451
144522008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
14453
14454 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
14455 to negative value.
14456
14457 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
14458
14459 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
14460
14461 * charset.c (syms_of_charset): Set QCtest and Qeq.
14462
144632008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
14464
14465 * process.c (Fstart_process):
14466 * callproc.c (Fcall_process): Handle the case where
14467 Funhandled_file_name_directory returns nil.
14468
14469 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
14470 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
14471 * font.c (check_gstring): Use them and AREF to access the vector before
14472 we know it's really a gstring.
14473 (Ffont_shape_text): Fix typo.
46e722a9 14474 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
14475
14476 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
14477 Declare.
14478
14479 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
14480
144812008-02-05 Jason Rumney <jasonr@gnu.org>
14482
14483 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
14484 Set smallest_font_height and smallest_char_width in display info.
14485
144862008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
14487
14488 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
14489
144902008-02-05 Miles Bader <miles@gnu.org>
14491
14492 * xfaces.c (get_lface_attributes, merge_named_face)
14493 (lookup_named_face, lookup_derived_face, realize_named_face):
14494 Revert 2008-02-01 change by cyd@stupidchicken.com.
14495
144962008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
14497
14498 * fontset.c (Ffontset_info): Handle the case of inhibitting the
14499 fallback fonts.
14500 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
14501
145022008-02-04 Jason Rumney <jasonr@gnu.org>
14503
14504 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
14505 set full_name.
14506 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
14507
145082008-02-03 Jason Rumney <jasonr@gnu.org>
14509
14510 * makefile.w32-in (OBJ1): Include font.o here.
14511 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
14512
145132008-02-02 Jason Rumney <jasonr@gnu.org>
14514
14515 * makefile.w32-in (temacs): Bump EMHEAP to 21.
14516
145172008-02-01 Jason Rumney <jasonr@gnu.org>
14518
14519 * s/cygwin.h: Define VIRT_ADDR_VARIES.
14520
14521 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
14522
145232008-02-01 Andreas Schwab <schwab@suse.de>
14524
14525 * Makefile.in (shortlisp, lisp): Update for rename of
14526 ../lisp/language/myanmar.el.
14527
145282008-02-01 Chong Yidong <cyd@stupidchicken.com>
14529
14530 * xfaces.c (get_lface_attributes): Delete function.
14531 (merge_named_face, lookup_named_face, lookup_derived_face)
14532 (realize_named_face): Call lface_from_face_name directly, and use
14533 the fact that merge_face_vectors does not alter its FROM argument.
14534
145352008-02-01 Jason Rumney <jasonr@gnu.org>
14536
14537 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
14538 input in the default locale. Handle non-Unicode multibyte input.
14539
145402008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14541
14542 * fontset.c (reorder_font_vector): Exclude nil elements from the
14543 font group. Don't try multiple fonts.
14544 (fontset_font): Adjust for the above change.
14545 (Finternal_char_font): Return nil if the found font doesn't
14546 contain the character ch.
14547
14548 * Makefile.in (lisp, shortlisp): Add cham.el.
14549
145502008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14551
14552 * font.h (FONTP): Make it return 1 also for a font-object.
14553
14554 * .gdbinit (xfontset): New function.
14555
14556 * font.c (font_find_for_lface): Check if the character C is
14557 supported or not only for the first font.
14558
14559 * fontset.c (reorder_font_vector): Fix typo.
14560 (fontset_find_font): Don't add a font-spec specifying a script.
14561 Use 0 (not Qt) for the indication of empty font-group. Change the
14562 format of RFONT-DEF. Return Qt if no font in the font-group
14563 support the character.
14564 (fontset_font): Adjust for the above change. If no font was
14565 found the character, remember that.
14566 (face_for_char): Adjust for the change of RFONT-DEF.
14567 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
14568 no font for the target.
14569 (Finternal_char_font): Adjust for the change of RFONT-DEF.
14570
145712008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14572
14573 * font.c (font_load_for_face): Handle the case that the font in
14574 face->lface is a string.
14575
145762008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14577
14578 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
14579
145802008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14581
14582 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
14583 Fix previous change. If the frame is not on a window system,
14584 signal an error.
14585
145862008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14587
14588 * coding.c (decode_coding_object, encode_coding_object): Adjust
14589 marker positions after conversion.
14590
14591 * lisp.h (struct Lisp_Marker): New member need_adjustment.
14592
145932008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14594
14595 * font.c (font_find_for_lface): Fix the handling of the return
14596 value of font_has_char.
14597 (Ffont_shape_text): Fix previous change.
14598
14599 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
14600 (fontset_ref_and_range): Delete it.
14601 (fontset_find_font): Call char_table_ref_and_range instead of
14602 FONTSET_REF_AND_RANGE.
14603 (make_fontset): Don't setup font groups of Latin here.
14604 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
14605 (new_fontset_from_font): Make the specified font the default for
14606 all Latin characters.
14607
146082008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14609
14610 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
14611 is on a window system before accessing the fontset of the frame.
14612
146132008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14614
14615 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
14616
14617 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
14618 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
14619
14620 * font.c (Ffont_shape_text): If the font driver doesn't have a
14621 shaper function, make zero-width glyphs to have at least one-pixel
14622 width. Fix setting of `to' field of glyphs.
14623
146242008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14625
14626 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
14627 glyphs.
14628
14629 * font.h (struct font_driver): Improve docstring of member `shape'.
14630
146312008-02-01 Kenichi Handa <handa@m17n.org>
14632
14633 * composite.c (syms_of_composite): Fix docstring of
14634 auto-composition-function.
14635
14636 * font.h (LGLYPH_SIZE): New macro.
14637
14638 * font.c (Ffont_fill_gstring): Stop filling when a character not
14639 supported by the font is found.
14640 (Ffont_shape_text): When a shape callback function returns nil,
14641 try at most two more times with larger gstring.
14642 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
14643
14644 * xdisp.c (handle_auto_composed_prop): Change the argument to
14645 auto-composition-function.
14646
14647 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
14648 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
14649 Lispy glyph and store it in the lgstring.
14650
14651 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
14652
14653 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
14654
146552008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14656
14657 * font.c (Ffont_shape_text): Avoid unnecessary composition.
14658
14659 * fontset.c (Vfont_encoding_charset_alist): New variable.
14660 (syms_of_fontset): DEFVAR it.
14661 (reorder_font_vector, fontset_find_font): Optimize for the case of
14662 no need of reordering.
14663 (face_for_char): Map the charset property by
14664 Vfont_encoding_charset_alist.
14665
146662008-02-01 Jason Rumney <jasonr@gnu.org>
14667
14668 * w32font.c (logfonts_match): Don't check adstyle here.
14669 (font_matches_spec): Check here against physical font instead.
14670 (add_font_entity_to_list): Avoid some substitutions.
14671
14672 * font.c (font_parse_fcname): Default weight and slant to normal.
14673 (font_score): Prefer normal fonts if weight or slant unspecified.
14674 (font_score) [WINDOWSNT]: Scale weight difference down to closer
14675 match freetype scores.
14676
146772008-02-01 Jason Rumney <jasonr@gnu.org>
14678
14679 * w32font.c (w32font_text_extents): Don't use the frame stored in the
14680 font, as it may have been deleted.
14681 (w32_enumfont_pattern_entity): Map generic family to adstyle using
14682 most common hyphenless variation.
14683 (logfonts_match): Check generic family.
14684 (font_matches_spec): Don't check generic family here.
14685 (fill_in_logfont): Set generic family based on adstyle.
14686
14687 * w32font.h (w32font_get_cache): Update declaration.
14688
146892008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14690
14691 * ftfont.c (ftfont_get_cache): Adjust the argument type.
14692
14693 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
14694 If none of the new drivers are available, call font_update_drivers
14695 with the old drivers.
14696
14697 * w32font.c (w32font_get_cache): Adjust the argument type.
14698
14699 * xfont.c (xfont_get_cache): Adjust the argument type.
14700
14701 * font.h (struct font_driver): Change argument type of get_cache.
14702
14703 * xftfont.c (xftfont_start_for_frame): Delete prototype.
14704
14705 * font.c (Ffont_get): Fix arguments to Fassoc.
14706 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
14707 (font_clear_cache): New function.
14708 (font_list_entities, font_matching_entity): Use font_get_cache.
14709 (font_update_drivers): Call font_clear_cache when finishing a driver.
14710
14711 * fontset.c (fontset_find_font): Fix previous change.
14712
147132008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14714
14715 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
14716 dpyinfo->font_table.
14717 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
14718 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
14719
14720 * font.c (font_at): Handle the case that the arg C is negative.
14721 Handle the unibyte case.
14722 (Ffont_at): Call font_at with the arg C -1.
14723
14724 * xdisp.c (handle_auto_composed_prop): Don't get a character at
14725 the position here, and call font_at with the arg C -1.
14726 Don't check the range of the existing composition at the point.
14727
147282008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14729
14730 * fontset.c (fontset_add): New args charset_id and family.
14731 Change caller.
14732 (load_font_get_repertory, fontset_find_font): Assume that
14733 font_spec is always a font-spec object.
14734 (Fset_fontset_font): Always store a font-spec object in a fontset.
14735
14736 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
14737 instead of get_property_and_range.
14738
147392008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14740
14741 * xftfont.c (struct xftfont_info): Delete the member ft_face.
14742 (xftfont_open): Don't keep locking face.
14743 (xftfont_close): Don't unlock face.
14744 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
14745
14746 * fontset.c (fontset_find_font): Don't prefer a font of
14747 supplementary charset.
14748
147492008-02-01 Kenichi Handa <handa@m17n.org>
14750
14751 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
14752 script, langsys_tag to langsys, new member script.
14753 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 14754 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
14755 listing to the script specified in that property. Fix arg to
14756 OTF_check_features.
14757
147582008-02-01 Jason Rumney <jasonr@gnu.org>
14759
14760 * w32font.h: New file.
14761
14762 * w32font.c: Include it.
14763 (struct w32font_info): Add owning_frame field. Move to w32font.h.
14764 (w32font_open): Set owning_frame.
14765 (w32font_text_extents): Use owning_frame.
14766 (struct font_callback_data): Add opentype_only field.
14767 (add_font_entity_to_list): Use it to filter fonts.
14768 Don't check against full name.
14769 (w32font_list_internal): New function.
14770 (w32font_list): Use it.
14771 (w32font_match_internal): New function.
14772 (w32font_match): Use it.
14773 (w32font_open_internal): New function.
14774 (w32font_open): Use it.
14775 (w32font_get_cache, w32font_close, w32font_has_char)
14776 (w32font_encode_char, w32font_text_extents, w32font_draw):
14777 Make non-static.
14778
14779 * makefile.w32-in (w32font.o): Depend on w32font.h.
14780
147812008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14782
14783 * charset.c (Fdefine_charset_internal): Record a supplementary
14784 charset at the tail of Vcharset_order_list.
14785
14786 * font.c (Ffont_shape_text): Fix the return value.
14787
14788 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
14789
14790 * xdisp.c (handle_auto_composed_prop): Fix previous change.
14791
147922008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14793
14794 * ftfont.c (struct OpenTypeSpec): New struct.
14795 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
14796 (ftfont_get_open_type_spec): New function.
14797 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
14798
14799 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
14800
148012008-02-01 Jason Rumney <jasonr@gnu.org>
14802
14803 * w32font.c (add_font_entity_to_list): Compare only the beginning
14804 of full name.
14805
148062008-02-01 Kenichi Handa <handa@m17n.org>
14807
14808 * xdisp.c (handle_auto_composed_prop): Simplify the code.
14809 Never return HANDLED_RECOMPUTE_PROPS.
14810
148112008-02-01 Kenichi Handa <handa@m17n.org>
14812
14813 * font.c (font_gstring_produce): Delete it.
14814
14815 * composite.h (COMPOSITION_METHOD):
14816 Handle COMPOSITION_WITH_GLYPH_STRING.
14817
148182008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14819
14820 * xfont.c (Qx): Delete.
14821 (syms_of_xfont): Don't initialize Qx.
14822
14823 * composite.h (enum composition_method):
14824 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
14825
148262008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14827
14828 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
14829 (choose_face_font): Accept new form of font-spec.
14830
14831 * frame.h (font_driver_list): Declare it unconditionally.
14832 (struct frame): Define members font_driver_list and font_data_list
14833 unconditionally.
14834
14835 * fontset.c: Include "font.h" unconditionally.
14836 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
14837 (Fset_fontset_font): Accept a font-spec object.
14838
14839 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
14840 PIXEL_SIZE part a wild card.
14841
14842 * dispextern.h (struct glyph_string): Define members clip and
14843 num_clips unconditionally.
14844 (struct face): Define members font_info and extra unconditionally.
14845
14846 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
14847 ftfont_info only when HAVE_LIBOTF is defined.
14848
148492008-02-01 Andreas Schwab <schwab@suse.de>
14850
14851 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
14852 and end.
14853
148542008-02-01 Jason Rumney <jasonr@gnu.org>
14855
14856 * w32font.c (w32font_driver): Add new fields.
14857
148582008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14859
14860 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
14861 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
14862 (LIBES): Add @M17N_FLT_CFLAGS@.
14863
14864 * composite.c (compose_text): Don't treat the new style
14865 composition specially.
14866
14867 * emacs.c (main): Call syms_of_font unconditionally.
14868
14869 * font.h (FONT_ENTITY_NOT_LOADABLE)
14870 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
14871 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
14872 (struct font_driver): New member shape.
14873 (font_registry_charsets): Extern it.
14874 (font_find_for_lface, font_prepare_composition): Adjust prototype.
14875 (font_otf_capability, font_drive_otf): Delete their externs.
14876
14877 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
14878 (font_charset_alist, font_registry_charsets): Move from xfont.c
14879 and rename.
14880 (font_prop_validate_otf): New function.
14881 (font_property_table): Register it for QCotf.
14882 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
14883 (font_drive_otf): Delete.
14884 (font_prepare_composition): New arg F. Adjust for the change of
14885 lispy gstring.
14886 (font_find_for_lface): New arg C.
14887 (font_load_for_face): Adjust for the change of font_find_for_lface.
14888 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
14889 lispy gstring.
14890 (Ffont_shape_text): New function.
14891 (Fopen_font): If the font size is not given, use 12-pixel.
14892 (Ffont_at): New arg STRING.
14893 (syms_of_font): Initalize font_charset_alist.
14894 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
14895 conditionally.
14896
14897 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
14898 fonts of the same font-spec. Change the format of RFONT-DEF.
14899 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
14900 Adjust for the change of RFONT-DEF.
14901 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
14902
14903 * ftfont.h: New file.
14904
14905 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
14906 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
14907 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
14908 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
14909 font_otf_capability and font_drive_otf, set ftfont_shape.
14910 (ftfont_list): Adjust for the change of :otf property value.
14911 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
14912 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
14913 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
14914 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
14915 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
14916 (otf_gstring, gstring, m17n_flt_initialized): New variables.
14917
14918 * w32term.c (x_draw_composite_glyph_string_foreground):
14919 Adjust for the change of lispy gstring.
14920
14921 * xdisp.c (handle_composition_prop): Adjust for the change of
14922 lispy gstring. Call a function for auto-composition with the
14923 third arg it->window.
14924 (fill_composite_glyph_string): Adjust for the change of lispy string.
14925 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
14926
14927 * xfaces.c (set_font_frame_param): Adjust for the change of
14928 font_find_for_lface.
14929
14930 * xfont.c (x_font_charset_alist): Move to font.c and rename.
14931 (xfont_registry_charsets): Likewise. Change caller.
14932 (syms_of_xfont): Don't handle x_font_charset_alist.
14933
14934 * xftfont.c: Include "ftfont.h".
14935 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
14936 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
14937 (xftfont_close) [HAVE_LIBOTF]: Close otf.
14938 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
14939 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
14940 Set xftfont_driver.shape to xftfont_shape.
14941
14942 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
14943 the change of lispy gstring.
14944
149452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14946
14947 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
14948
149492008-02-01 Jason Rumney <jasonr@gnu.org>
14950
14951 * w32font.c (w32font_draw): Fill background manually.
14952
149532008-02-01 Jason Rumney <jasonr@gnu.org>
14954
14955 * font.c (Qfontp): Remove unused symbol.
14956 (QCantialias): New symbol.
14957 (syms_of_font): Define it.
14958 (font_property_table): Set a validator for QCantialias.
14959
14960 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
14961 Define if not already.
14962 (QCfamily): Share with xfaces.c.
14963 (Qstandard, Qsubpixel, Qnatural): New symbols.
14964 (syms_of_w32font): Define them. Don't define QCfamily here.
14965 (w32_antialias_type, lispy_antialias_type): New functions.
14966 (w32_enumfont_pattern_entity): New arg requested_font.
14967 Set antialias parameter if non-default was requested.
14968 (fill_in_logfont): Fill in lfQuality if :antialias specified.
14969
149702008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14971
14972 * lread.c (read1): Undo the previous change.
14973
149742008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
14975
14976 * frame.c (Fdelete_frame): Call font_update_drivers only when
14977 USE_FONT_BACKEND is defined.
14978
149792008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14980
14981 * font.h (struct font_bitmap): New member bits_per_pixel.
14982 (struct font_driver): New members start_for_frame and end_for_frame.
14983 (struct font_data_list): New struct.
14984 (font_put_frame_data, font_get_frame_data): Extern them.
14985
14986 * frame.h (struct frame): New member font_data_list.
14987
14988 * font.c (font_update_drivers): Call driver->start_for_frame and
14989 driver->end_for_frame at proper timings.
14990 (font_put_frame_data, font_get_frame_data): New functions.
14991 (Ffont_spec): Add usage in the docstring.
14992
14993 * frame.c (make_frame): Initialize f->font_data_list to NULL.
14994 (Fdelete_frame): Call font_update_drivers.
14995
14996 * xftfont.c (struct xftface_info): Delete the member xft_draw.
14997 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
14998 (xftfont_get_xft_draw): New function.
14999 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
15000 (xftfont_end_for_frame): New function.
15001 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
15002
15003 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
15004 Change argument. Cache GCs in the per-frame data.
15005 (struct ftxfont_frame_data): New struct.
15006 (ftxfont_draw_bitmap): New arg gc_fore and flush.
15007 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
15008 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
15009 (ftxfont_end_for_frame): New function.
15010 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
15011
15012 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
15013
150142008-02-01 Kenichi Handa <handa@m17n.org>
15015
15016 * xselect.c (Vselection_coding_system)
15017 (Vnext_selection_coding_system): Delete them.
15018 (syms_of_xselect): Don't declare selection-coding-system and
15019 next-selection-coding-system. They are declared in select.el.
15020
150212008-02-01 Jason Rumney <jasonr@gnu.org>
15022
15023 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
15024
15025 * w32fns.c: Include imm.h.
15026 (get_composition_string_fn, get_ime_context_fn): New optional
15027 system functions.
15028 (globals_of_w32fns): Load them from imm32.dll.
15029 (ignore_ime_char): New flag.
15030 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
15031 WM_IME_ENDCOMPOSITION messages.
15032
15033 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
15034 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
15035
150362008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15037
15038 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
15039 (READCHAR_REPORT_MULTIBYTE): New macro.
15040 (readchar): New 2nd arg MULTIBYTE.
15041 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
15042 Make symbol's name multibyte according to the multibyteness of the
15043 source.
15044
150452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15046
15047 * xfaces.c (face_for_overlay_string): Call lookup_face with
15048 correct arguments (fix of synching with the trunk).
15049
150502008-02-01 Kenichi Handa <handa@m17n.org>
15051
15052 * font.c (font_prop_validate_symbol, font_prop_validate_style)
15053 (font_prop_validate_non_neg, font_prop_validate_spacing):
15054 Delete argument prop_index.
15055 (font_property_table): Change arguments to validater. Change Callers.
15056 (font_lispy_object): Delete.
15057 (font_at): Use font_find_object instead fo font_lispy_object.
15058
150592008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15060
15061 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
15062 and file names.
15063
150642008-02-01 Jason Rumney <jasonr@gnu.org>
15065
15066 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
15067 (font_matches_spec): Remove debug output.
15068 (add_font_entity_to_list): Avoid using substituted fonts.
15069
150702008-02-01 Jason Rumney <jasonr@gnu.org>
15071
15072 * doc.c (Fsnarf_documentation):
15073 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
15074
150752008-02-01 Miles Bader <miles@gnu.org>
15076
15077 * dispextern.h (struct glyph_row): Only define "clip" field if
15078 HAVE_WINDOW_SYSTEM is defined.
15079
150802008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
15081
15082 Fix up multi-tty merge.
15083
15084 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
15085 and indentation.
15086
15087 * xfaces.c (free_realized_face, clear_face_gcs):
15088 Include font_done_for_face in the input_blocked section, just in case.
15089
15090 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
15091 (get_char_face_and_encoding): Undo last change and remove the *other*
15092 duplicate definition (i.e. keep the one that's better scoped and that
15093 includes code for the font-backend).
15094
15095 * terminal.c (create_terminal): Default keyboard_coding to
15096 `no-conversion' and terminal_coding to `undecided'.
15097
15098 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
15099
15100 * fontset.c (free_realized_fontsets): Check that the table entry does
15101 contain a fontset before trying to compare it to `base'.
15102
15103 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
15104 syms_of_charset, and syms_of_coding earlier because init_window_once
15105 now needs Vcoding_system_hash_table to be setup.
15106
15107 * coding.h (default_buffer_file_coding): Remove.
15108
15109 * coding.c (default_buffer_file_coding): Remove.
15110 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
15111 than ->symbol, and use the terminal-local coding system.
15112 (syms_of_coding): Don't setup the coding-systems that are not
15113 terminal-local.
15114 (Fdefine_coding_system_internal): Use XCAR/XCDR.
15115
15116 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
15117 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
15118
15119 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
15120 in chartab.c and were re-added here by mistake.
15121 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
15122
15123 * doc.c (Fsnarf_documentation):
15124 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
15125 src to etc.
15126
15127 * ChangeLog.10: Add mistakenly removed entry.
15128
151292008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
15130
15131 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
15132
151332008-02-01 Miles Bader <miles@gnu.org>
15134
15135 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
15136 Add extra args to FACE_FOR_CHAR.
15137
151382008-02-01 Kenichi Handa <handa@m17n.org>
15139
15140 * keymap.c (where_is_internal_1): If key is a cons, store the copy
15141 in sequence.
15142
15143 * chartab.c (map_sub_char_table, map_char_table): If the range
15144 contains just one character, call the function with that character
15145 even if the depth is not 3.
15146
151472008-02-01 Jason Rumney <jasonr@gnu.org>
15148
15149 * w32font.c (w32font_text_extents): Calculate metrics for the
15150 whole string.
15151
151522008-02-01 Jason Rumney <jasonr@gnu.org>
15153
15154 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
15155
151562008-02-01 Jason Rumney <jasonr@gnu.org>
15157
15158 * w32term.c (x_set_glyph_string_clipping): Use
15159 get_glyph_string_clip_rects.
15160 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
15161 Adjust for the change of struct glyph_string.
15162
15163 * w32font.c (w32font_draw): Do clipping here.
15164
151652008-02-01 Kenichi Handa <handa@m17n.org>
15166
15167 * xftfont.c (xftfont_draw): Adjust for the change of struct
15168 glyph_string.
15169
15170 * xterm.c (x_set_glyph_string_clipping): Use
15171 get_glyph_string_clip_rects.
15172 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
15173 Adjust for the change of struct glyph_string.
15174
15175 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
15176 the resulting clip(s}.
15177 (expose_overlaps): Add arg r. Change callers. Set it to
15178 row->clip temporarily.
15179 (expose_window): Redraw rows overlapping the exposed area.
15180
15181 * dispextern.h (struct glyph_row): New member clip.
15182 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
15183 clip_height, new member clip, and num_clips.
15184
151852008-02-01 Kenichi Handa <handa@m17n.org>
15186
15187 * data.c (Fchar_or_string_p): Fix docstring.
15188
151892008-02-01 Kenichi Handa <handa@m17n.org>
15190
15191 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
15192 create a temporary XftDraw object.
15193
151942008-02-01 Kenichi Handa <handa@m17n.org>
15195
15196 * font.c (Ffontp): Fix docstring.
15197
15198 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
15199 strong evidence of ISO-2022.
15200
152012008-02-01 Kenichi Handa <handa@m17n.org>
15202
15203 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
15204 SYNTAX_ENTRY_FOLLOW_PARENT.
15205
152062008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
15207
15208 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
15209 its type.
15210 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
15211 Update to the new type of weak_hash_tables and next_weak.
15212
15213 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
15214 a plain C pointer to Lisp_Hash_Table.
15215
15216 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
15217 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
15218 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
15219 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
15220 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
15221 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
15222 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
15223 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
15224 (GC_EQ): Remove since they've been identical to their non-GC_
15225 alter-egos ever since the markbit was eradicated.
15226
15227 * alloc.c:
15228 * buffer.c:
15229 * buffer.h:
15230 * data.c:
15231 * fileio.c:
15232 * filelock.c:
15233 * fns.c:
15234 * frame.h:
15235 * lisp.h:
15236 * macterm.c:
15237 * print.c:
15238 * process.c:
15239 * w32fns.c:
15240 * w32menu.c:
15241 * w32term.c:
15242 * xfns.c:
15243 * xmenu.c:
15244 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
15245
152462008-02-01 Kenichi Handa <handa@m17n.org>
15247
15248 * chartab.c (map_sub_char_table): Make it work for the top-level
15249 char-table. Fix handling of parent char-table.
15250 (map_char_table): Adjust for the above change.
15251
152522008-02-01 Jason Rumney <jasonr@gnu.org>
15253
15254 * w32font.c (Qgdi): Rename from Qw32.
15255
152562008-02-01 Jason Rumney <jasonr@gnu.org>
15257
15258 * w32bdf.c (get_quoted_string): Make function static.
15259
152602008-02-01 Kenichi Handa <handa@m17n.org>
15261
15262 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
15263 bigger ascent and descent than those of the font, use them as
15264 font's ascent and descent.
15265
152662008-02-01 Kenichi Handa <handa@m17n.org>
15267
15268 * Makefile.in (${lispsource}international/charprop.el): Move this
15269 target within "#ifdef HAVE_UNIDATA" and "#endif".
15270
152712008-02-01 Kenichi Handa <handa@m17n.org>
15272
15273 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
15274 (shortlisp): Add ../lisp/language/tai-viet.el.
15275
152762008-02-01 Ulrich Mueller <ulm@gentoo.org>
15277
15278 * Makefile.in (${lispsource}international/charprop.el): Depend on
15279 temacs${EXEEXT}.
15280
152812008-02-01 Jason Rumney <jasonr@gnu.org>
15282
15283 * w32font.c (w32font_close): Delete the GDI font object.
15284
15285 * w32menu.c: Include character.h.
15286
15287 * w32proc.c: Likewise.
15288
15289 * w32select.c: Likewise.
15290
15291 * makefile.w32-in (w32proc.o): Depend on character.h.
15292
152932008-02-01 Jason Rumney <jasonr@gnu.org>
15294
15295 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
15296
15297 * w32menu.c (syms_of_w32menu): Likewise.
15298
15299 * w32proc.c (syms_of_ntproc): Likewise.
15300
15301 * w32select.c (syms_of_w32select): Likewise.
15302
15303 * w32term.c (syms_of_w32term): Likewise.
15304
153052008-02-01 Jason Rumney <jasonr@gnu.org>
15306
15307 * w32font.c (w32font_draw): Delete brush after using it.
15308
153092008-02-01 Jason Rumney <jasonr@gnu.org>
15310
15311 * w32font.c (w32font_open): Don't set font_idx.
15312 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
15313 to font settings.
15314 (w32font_draw): Fill background explicitly.
15315
153162008-02-01 Jason Rumney <jasonr@gnu.org>
15317
15318 * w32term.c (w32_initialize): Don't call w32font_initialize.
15319
15320 * w32font.c (w32font_info): Remove subranges.
15321 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
15322 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
15323 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
15324 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
15325 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
15326 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
15327 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
15328 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
15329 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
15330 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
15331 New symbols.
15332 (font_callback_data): New struct.
15333 (w32font_list, w32font_match): Use it.
15334 (w32font_open): Don't populate subranges.
15335 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
15336 (w32font_encode_char): Always return unicode code-point as-is.
15337 (w32font_text_extents): Supply a transformation matrix to
15338 GetGlyphOutline. Never look up by glyph index. Avoid looping
15339 twice. Use unicode version of GetTexExtentPoint32 instead of
15340 glyph index version.
15341 (set_fonts_frame): Remove.
15342 (w32_enumfont_pattern_entity): Add frame parameter, use it to
15343 set frame parameter. Use backward compatible fake foundries.
15344 Save generic family in extra slot under QCfamily. Make width slot
15345 constant. Save QCspacing value. Save list of scripts instead of
15346 binary subranges.
15347 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
15348 (add_font_entity_to_list): Use font_callback_data struct. Filter
15349 unwanted fonts.
15350 (add_one_font_entity_to_list): Use font_callback_data struct.
15351 (w32_registry): Default to iso10646_1.
15352 (fill_in_logfont): Use dpi from extra slot. Don't bother with
15353 string font registries. Don't fill in font name if it is a generic
15354 family name, fill family instead. Use spacing, family and script
15355 extra info to fill pitch, family and charset fields.
15356 (list_all_matching_fonts): Use font_callback_data struct.
15357 (unicode_range_for_char): Remove.
15358 (font_supported_scripts): New function.
15359 (w32font_initialize): Remove.
15360 (syms_of_w32font): Update which symbols are defined.
15361
153622008-02-01 Jason Rumney <jasonr@gnu.org>
15363
15364 * font.c (font_pixel_size): Reverse assq_no_quit args.
15365
15366 * w32term.h (FONT_WIDTH): Report max width, not average.
15367 (FONT_MAX_WIDTH): Remove.
15368 (FONT_AVG_WIDTH): New macro.
15369
15370 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
15371 redefinition of FONT_WIDTH.
15372
15373 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
15374 (w32_cache_char_metrics): Use FONT_WIDTH.
15375
15376 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
15377
153782008-02-01 Jason Rumney <jasonr@gnu.org>
15379
15380 * w32font.c (w32font_open): Make lfHeight negative.
15381
15382 * w32fns.c (x_default_font_parameter): Use new style font name.
15383 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
15384
153852008-02-01 Jason Rumney <jasonr@gnu.org>
15386
15387 * w32font.c (QCsubranges): New symbol.
15388 (w32font_open, w32font_has_char): Get subranges from subproperty
15389 of extra.
15390 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
15391 (syms_of_w32font): Define :subranges symbol.
15392
15393 * font.c (font_put_extra): Expose externally.
15394
15395 * font.h (font_put_extra): Move declaration from font.c.
15396
15397 * font.c (Ffont_get): Use font driver to determine otf capability.
15398 (adjust_anchor): Check if driver defines anchor_point before using.
15399
15400 * w32font.c (w32font_open): Handle size, height and pixel_size better.
15401 (w32font_draw): Use options.
15402 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
15403 Fix detection of truetype fonts.
15404 (registry_to_w32_charset): Handle charsets other than iso8859-1
15405 expressed as lisp symbols.
15406 (w32_registry): Express charset as lisp symbol.
15407 (fill_in_logfont): Reverse pixel and point height logic.
15408 Don't set width here. Set quality to default.
15409
15410 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
15411 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
15412
15413 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
15414 Remove redundant loop and allocation.
15415
15416 * makefile.w32-in (font.o, w32font.o): New objects.
15417 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
15418 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
15419
15420 * xdisp.c (fill_composite_glyph_string): Make the first arg to
15421 STORE_XCHARB a valid l-value.
15422
15423 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
15424 calculations for non-Truetype fonts.
15425 (x_draw_glyph_string): Sync with xterm.c.
15426 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
15427 Remove redundant code.
15428 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
15429
15430 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
15431 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
15432
15433 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
15434 (x_to_w32_charset, w32_to_x_charset): Expose externally.
15435
15436 * w32font.c: New file for w32 font backend.
15437
154382008-02-01 Kenichi Handa <handa@m17n.org>
15439
15440 * term.c: Don't include "buffer.h" twice.
15441
154422008-02-01 Kenichi Handa <handa@m17n.org>
15443
15444 * character.c (Funibyte_string): New function.
15445 (syms_of_character): Defsubr it.
15446
154472008-02-01 Jason Rumney <jasonr@gnu.org>
15448
15449 * w32term.c [USE_FONT_BACKEND]:
15450 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
15451 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
15452 (x_draw_glyph_string, x_draw_glyph_string_foreground)
15453 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
15454 (x_free_frame_resources): Sync with xterm.c.
15455
154562008-02-01 Andreas Schwab <schwab@suse.de>
15457
15458 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
15459 char-table size.
15460
154612008-02-01 Kenichi Handa <handa@m17n.org>
15462
15463 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
15464
154652008-02-01 Kenichi Handa <handa@m17n.org>
15466
15467 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
15468 font_otf_gpos, add font_drive_otf.
15469
15470 * fontset.c (fontset_find_font): Pay attention to font size
15471 specified for a font.
15472 (reorder_font_vector): Check contents of font_def.
15473
15474 * font.c (struct otf_list): Delete it.
15475 (otf_list): Make it a lisp variable.
15476 (otf_open): Use lispy otf_list.
15477 (generate_otf_features): Rename from parse_gsub_gpos_spec.
15478 (check_otf_features): New function.
15479 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
15480 New functions.
15481 (font_drive_otf): New function merging font_otf_gsub and
15482 font_otf_gpos.
15483 (font_open_for_lface): New arg spec. Change argument order.
15484 (font_load_for_face): Adjust for the change of font_open_for_lface.
15485 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
15486 Ffont_otf_gpos.
15487 (syms_of_font): Staticpro otf_list. Delete defsubr of
15488 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
15489
15490 * xfaces.c (set_font_frame_param): Adjust for the change of
15491 font_open_for_lface.
15492
15493 * font.h (font_open_for_lface): Adjust prototype.
15494 (struct font_driver): Delete members otf_gsub and otf_gpos, add
15495 member otf_drive.
15496 (font_otf_gsub, font_otf_gpos): Delete externs.
15497 (font_drive_otf): Extern it.
15498
154992008-02-01 Kenichi Handa <handa@m17n.org>
15500
15501 * font.c (font_at): If the window W is not on a window system,
15502 return Qnil.
15503
15504 * coding.c (produce_chars, encode_coding): Don't call
15505 insert_from_gap if no characters to produce.
15506
155072008-02-01 Kenichi Handa <handa@m17n.org>
15508
15509 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
15510 Fclear_face_cache.
15511
15512 * xfaces.c (face_for_font): Check also face->font==font->font.font.
15513
155142008-02-01 Miles Bader <miles@gnu.org>
15515
15516 * emacs.c (main): Change default value of `enable_font_backend' to 1.
15517 Parse "--disable-font-backend" option.
15518 (standard_args): Add "--disable-font-backend" option.
15519
155202008-02-01 Kenichi Handa <handa@m17n.org>
15521
15522 * fontset.c (fontset_find_font): New function.
15523 (fontset_font): Use fontset_find_font.
15524 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
15525 Register the specified font for all Latin characters.
15526 (new_fontset_from_font): Register the specified font for all Latin
15527 characters.
15528 (dump_fontset): For a realized fontset, include the base fontset
15529 name in the returned vector.
15530
155312008-02-01 Kenichi Handa <handa@m17n.org>
15532
15533 * character.h (CHAR_STRING): Cast C to unsigned on calling
15534 char_string.
15535
15536 * character.c (char_string): Type of arg C changed to unsigned.
15537 Signal an error if C is an invalid character code.
15538
15539 * editfns.c (general_insert_function, Fchar_to_string):
15540 Use CHARACTERP, not INTEGERP.
15541
155422008-02-01 Kenichi Handa <handa@m17n.org>
15543
15544 * character.h (MIN_MULTIBYTE_LEADING_CODE)
15545 (MAX_MULTIBYTE_LEADING_CODE): New macros.
15546
15547 * regex.c (analyse_first): Fix for multibyte characters in "case
15548 charset:" and "case categoryspec:".
15549
155502008-02-01 Andreas Schwab <schwab@suse.de>
15551
15552 * Makefile.in (LIBES): Move standard libraries to the end.
15553
155542008-02-01 Kenichi Handa <handa@m17n.org>
15555
15556 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
15557 nonzero, don't shrink the buffer nextb.
15558
15559 * buffer.h (struct buffer_text): New member inhibit_shrinking.
15560
15561 * coding.c (coding_alloc_by_making_gap): New arg offset.
15562 (alloc_destination): Call coding_alloc_by_making_gap with the arg
15563 offset.
15564 (decode_coding_iso_2022): Update coding->safe_charsets.
15565 (decode_coding_gap): Temporarily set
15566 current_buffer->text->inhibit_shrinking to 1.
15567
155682008-02-01 Kenichi Handa <handa@m17n.org>
15569
15570 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
15571 indexing into elements of s->cmp and s->char2b.
15572
155732008-02-01 Juanma Barranquero <lekktu@gmail.com>
15574
15575 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
15576
155772008-02-01 Kenichi Handa <handa@m17n.org>
15578
15579 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
15580 target_multibyte instead of multibyte.
15581 (re_match_2_internal): Call bcmp_translate with target_multibyte.
15582 (bcmp_translate): Change the argument name from multibyte to
15583 target_multibyte.
15584
155852008-02-01 Kenichi Handa <handa@m17n.org>
15586
15587 These changes are to compile a regexp into a pattern that can be
15588 used both for multibyte and unibyte targets.
15589
15590 * Makefile.in (search.o): Depend on charset.h.
15591
15592 * character.c (multibyte_char_to_unibyte_safe): New function.
15593
15594 * search.c: Include "charset.h".
15595 (compile_pattern_1): Delete argument multibyte. Don't set
15596 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
15597 (compile_pattern): Don't compare cp->buf.target_multibyte.
15598 Compare cp->buf.charset_unibyte.
15599 (compile_pattern): Set cp->buf.target_multibyte.
15600
15601 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
15602
15603 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
15604
15605 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
15606 multibyte. Change callers.
15607 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
15608 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
15609 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
15610 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
15611 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
15612 (regex_compile): Make the compiled pattern usable both for
15613 multibyte and unibyte targets.
15614 (analyse_first): Make the fastmap usable both for multibyte and
15615 unibyte targets.
15616 (TRANSLATE_VIA_MULTIBYTE): Delete.
15617 (re_match_2_internal): Pay attention to the case that the
15618 multibyteness of bufp and target may be different.
15619
156202008-02-01 Kenichi Handa <handa@m17n.org>
15621
15622 * xdisp.c (x_produce_glyphs): When a font is not found, make the
15623 empty box occupy at least one column width.
15624
156252008-02-01 Miles Bader <miles@gnu.org>
15626
15627 * Makefile.in: Remove redundant HAVE_XFT clause.
15628
156292008-02-01 Kenichi Handa <handa@m17n.org>
15630
15631 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
15632
156332008-02-01 Kenichi Handa <handa@m17n.org>
15634
15635 * fontset.c (Finternal_char_font): Fix for the case of POSITION
15636 being nil.
15637
156382008-02-01 Kenichi Handa <handa@m17n.org>
15639
15640 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
15641
156422008-02-01 Kenichi Handa <handa@m17n.org>
15643
15644 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
15645
156462008-02-01 Kenichi Handa <handa@m17n.org>
15647
15648 * search.c (simple_search): Fix previous change.
15649
156502008-02-01 Kenichi Handa <handa@m17n.org>
15651
15652 * xftfont.c (ftfont_font_format): Extern declaration.
15653
15654 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
15655
15656 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
15657 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
15658
15659 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
15660 (ftfont_font_format): Fix previous change.
15661
15662 * font.h (Ffont_xlfd_name): EXFUN it.
15663
15664 * font.c (font_parse_xlfd): Fix the array size of `f'.
15665 (register_font_driver): Use EQ to compare driver->type.
15666
15667 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
15668 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
15669 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
15670
156712008-02-01 Kenichi Handa <handa@m17n.org>
15672
15673 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
15674 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
15675
156762008-02-01 Kenichi Handa <handa@m17n.org>
15677
15678 * xfont.c (xfont_open): Set font->format.
15679
15680 * xftfont.c (xftfont_open): Set font->format.
15681
15682 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
15683 (ftfont_list): Include FC_FONTFORMAT in FcObject.
15684 (ftfont_open): Set font->format.
15685 (ftfont_font_format): New function.
15686
15687 * font.h (struct font): New member format.
15688
15689 * font.c (Qopentype): New variable.
15690 (syms_of_font): Defsym it.
15691 (Fquery_font): Change the format of the last element of the return
15692 value.
15693
156942008-02-01 Kenichi Handa <handa@m17n.org>
15695
15696 * xfns.c (xic_create_xfontset): Try the default fontset name as a
15697 last resort.
15698
156992008-02-01 Kenichi Handa <handa@m17n.org>
15700
15701 * coding.c (detect_coding_charset): Fix detection of multi-byte
15702 charset.
15703
157042008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
15705
15706 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
15707
157082008-02-01 Kenichi Handa <handa@m17n.org>
15709
15710 * xdisp.c (get_next_display_element): Set it->face_id for the
15711 first component of a composition.
15712 (x_produce_glyphs): Check if the font is changed or not for composition.
15713
157142008-02-01 Kenichi Handa <handa@m17n.org>
15715
15716 * fontset.c (Qlatin): New variable.
15717 (syms_of_fontset): Define it as a lisp symbol.
15718 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
15719
157202008-02-01 Kenichi Handa <handa@m17n.org>
15721
15722 * font.c (font_unparse_fcname): Pay attention to the case that
15723 some of font property is a null string.
15724
157252008-02-01 Kenichi Handa <handa@m17n.org>
15726
15727 * term.c: Include "composite.h".
15728 (encode_terminal_code): Output all components of composition.
15729 Check the size of encode_terminal_src.
15730 (produce_glyphs): For composition, call produce_composite_glyph.
15731 (append_composite_glyph, produce_composite_glyph): New functions.
15732
15733 * xdisp.c (x_produce_glyphs): In handling composition, if a font
15734 is not found, get font_info from the current ascii face.
15735
157362008-02-01 Kenichi Handa <handa@m17n.org>
15737
15738 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
15739 buffer-file-name to Qnil before calling insert_from_buffer.
15740
15741 * font.c (font_unparse_fcname): Pay attention to the case that
15742 foundry is a null string.
15743
157442008-02-01 Kenichi Handa <handa@m17n.org>
15745
15746 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
15747
15748 * font.c (Qunicode_sip): New variable.
15749 (syms_of_font): Declare it as a Lisp symbol.
15750
15751 * font.h (Qunicode_sip): Extern it.
15752
157532008-02-01 Kenichi Handa <handa@m17n.org>
15754
15755 * composite.c (get_composition_id): Pay attention to TAB component.
15756
15757 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
15758 TAB. Adjust for the change of s->char2b which always points to
15759 the first element of allocated memory.
15760
15761 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
15762
15763 * xdisp.c (handle_composition_prop): Set it->c to the first
15764 non-TAB component.
15765 (fill_composite_glyph_string): Change argument.
15766 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
15767 (x_produce_glyphs): Fix handling of left/right padding.
15768
157692008-02-01 Kenichi Handa <handa@m17n.org>
15770
15771 * coding.c (detect_coding_system): Fix for handling off
15772 inhibit_iso_escape_detection. Fix for the case that no coding
15773 system is defined for a specific coding category.
15774
157752008-02-01 Kenichi Handa <handa@m17n.org>
15776
15777 * font.c (font_matching_entity): Delete unused local var.
15778
15779 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
15780 opening a font.
15781
15782 * fileio.c (Finsert_file_contents): On recovering a file, assume
15783 Unix-like eol.
15784 (choose_write_coding_system): On auto-saving a file, force
15785 Unix-like eol.
15786
15787 * coding.c (setup_coding_system): Fix setting of
15788 coding->common_flags based on eol_type.
15789 (coding_inherit_eol_type): If PARENT is not nil, be sure to
15790 inherit from it.
15791
157922008-02-01 Kenichi Handa <handa@m17n.org>
15793
15794 * alloc.c (NSTATICS): Increas to 0x600.
15795
157962008-02-01 Kenichi Handa <handa@m17n.org>
15797
15798 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
15799 (ftfont_list): Don't check :name property.
15800 (ftfont_match): New function.
15801 (ftfont_pattern_entity): If the pattern doesn't contain
15802 FC_SPACING, don't assume FC_MONO.
15803
15804 * font.h (struct font_driver): New member `match'.
15805 (font_update_drivers): Adjust prototype.
15806
15807 * font.c (font_parse_fcname, font_parse_name): Don't change :name
15808 property of FONT.
15809 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
15810 them unconditionally.
15811 (font_matching_entity): New function.
15812 (font_open_by_name): Try font_matching_entity if exact match is
15813 not found.
15814 (font_update_drivers): Delete the arg FONT. Return a list of
15815 actually used backends. Don't free faces, font caches here.
15816 Don't store data in frame parameters. Don't call x_set_font.
15817 (Ffont_spec): Store :name property as is.
15818 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
15819 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
15820 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
15821 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
15822 Call font->driver->otf_gsub instead of font_otf_gsub.
15823
15824 * frame.c (x_set_font_backend): Do more works that were done in
15825 font_update_drivers before.
15826
15827 * xfont.c (xfont_match): New function.
15828 (xfont_driver): Set xfont_driver.match to xfont_match.
15829 (xfont_draw): Set font in GC if necessary.
15830
15831 * ftxfont.c (ftxfont_match): New function.
15832 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
15833
15834 * xftfont.c (xftfont_match): New function.
15835 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
15836
158372008-02-01 Kenichi Handa <handa@m17n.org>
15838
15839 * font.h (struct font): New member scalable.
15840 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
15841 (font_otf_gsub): Adjust prototype.
15842
15843 * font.c (font_otf_capability): Fix handling of the default langsys.
15844 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
15845 Check the contents of SPEC.
15846 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
15847 (check_gstring): New function.
15848 (REPLACEMENT_CHARACTER): New macro.
15849 (font_otf_gsub): New arg alternate_subst. Be sure to set all
15850 glyph codes of GSTRING.
15851 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
15852 (font_prepare_composition): Set cmp->glyph_len.
15853 (font_open_entity): Set font->scalable.
15854 (Ffont_get): Handle :otf property.
15855 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
15856 functions.
15857 (Fquery_font): Use font->font.full_name.
15858 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
15859 Sfont_otf_alternates.
15860
15861 * ftfont.c (ftfont_open): Set font->font.full_name and
15862 font->font.name properly. Fix calculation of font->font.height
15863 and font->min_width.
15864
15865 * ftxfont.c (ftxfont_create_gcs): New function.
15866 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
15867 (ftxfont_draw_backgrond): Fix filling region.
15868 (ftxfont_default_fid): New function.
15869 (ftxfont_open): Set xfont->fid to the return value of
15870 ftxfont_default_fid.
15871 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
15872 (ftxfont_done_face): Free only GCs that are created by
15873 ftxfont_create_gcs.
15874 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
15875
15876 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
15877 Clip to src->width, etc (not src->clip_XXX).
15878
15879 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
15880 FontBackend frame parameter.
15881
158822008-02-01 Kenichi Handa <handa@m17n.org>
15883
15884 * font.h (struct font_driver_list): New member `on'.
15885 (Fclear_font_cache): EXFUN it.
15886 (font_update_drivers): Extern it.
15887
15888 * font.c (font_unparse_fcname): Fix typo (swidth->width).
15889 (font_list_entities): Check driver_list->on.
15890 (register_font_driver): Initalize `on' member to 0.
15891 (font_update_drivers): New function.
15892 (Fclear_font_cache): Check driver_list->on.
15893
15894 * frame.h (Qfont_backend): Extern it.
15895 (x_set_font_backend): Extern it.
15896
15897 * frame.c (Qfont_backend): New variable.
15898 (frame_parms): New element for font-backend.
15899 (x_set_font_backend): New function.
15900
15901 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
15902 FontBackend frame parameter.
15903 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
15904 x_set_font_backend.
15905
15906 * xfont.c (xfont_list): Don't try listing by :name property if the
15907 name is not for XLFD.
15908
159092008-02-01 Kenichi Handa <handa@m17n.org>
15910
15911 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
15912 (LGLYPH_SET_TO): New macros.
15913 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
15914 element of G is vector or not.
15915 (font_at): Extern it.
15916
15917 * font.c: Include window.h.
15918 (font_lispy_object): New function.
15919 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
15920 end of valid glyph.
15921 (font_close_object): Fix getting (struct font *).
15922 (font_at): New function.
15923 (Ffont_get): If FONT is a font-object, get entity from it.
15924 (Ffont_make_gstring): Initialize elements of glyphs with nil.
15925 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
15926 range check.
15927 (Ffont_at): New function.
15928 (syms_of_font): Defsubr Sfont_at.
15929
15930 * xdisp.c (it_props): Move the entry for Qauto_composed to just
15931 before the entry for Qcomposition.
15932 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
15933 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
15934 the font in gstring.
15935 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
15936 LGLYPH_FORM (g) to detect the end of valid glyph.
15937 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
15938 we are composing with gstring.
15939
15940 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
15941 Check if adjustment is vector or not.
15942
15943 * Makefile.in (font.o): Make it depends on window.h.
15944
159452008-02-01 Kenichi Handa <handa@m17n.org>
15946
15947 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
15948 adjustment is vector or not.
15949
159502008-02-01 Miles Bader <miles@gnu.org>
15951
15952 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
15953
159542008-02-01 Kenichi Handa <handa@m17n.org>
15955
15956 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
15957 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
15958 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
15959
15960 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
15961 (DEVICE_DELTA): Fix typo.
15962 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
15963 LGLYPH format.
15964
15965 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
15966 the change of LGLYPH format.
15967
159682008-02-01 Kenichi Handa <handa@m17n.org>
15969
15970 * ftfont.c (ftfont_list): Fix typo.
15971 (ftfont_build_basic_charsets): Don't include letters with diacritics.
15972
159732008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15974
15975 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
15976
15977 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
15978 xftface_info is non-NULL.
15979
159802008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15981
15982 * ftfont.c (ftfont_list): Move misplaced #endif.
15983
159842008-02-01 Kenichi Handa <handa@m17n.org>
15985
15986 * ftfont.c (ftfont_list): Pay attention to the case that
15987 FC_CAPABILITY is not defined.
15988
159892008-02-01 Kenichi Handa <handa@m17n.org>
15990
15991 * xftfont.c (xftfont_open): Set charset related members to -1.
15992
15993 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
15994 QCname.
15995 (ftfont_open): Set charset related members to -1.
15996
15997 * fontset.c (Votf_script_alist): New variable.
15998 (syms_of_fontset): Initialize it.
15999 (fontset_font): Delete unused variable.
16000
16001 * fontset.h (Votf_script_alist): Extern it.
16002
16003 * font.c (font_find_for_lface): Optimize code.
16004
16005 * font.h (font_close_object, font_merge_old_spec): Extern them.
16006
160072008-02-01 Kenichi Handa <handa@m17n.org>
16008
16009 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
16010 (syms_of_font): Initialize them.
16011 (font_pixel_size): Allow float value in dpi.
16012 (font_prop_validate_type): Delete.
16013 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
16014 Change caller.
16015 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
16016 (font_prop_validate_extra): Delete.
16017 (font_prop_validate_spacing): New function.
16018 (font_property_table): Add elements for all known properties.
16019 (get_font_prop_index): Rename from check_font_prop_name. New
16020 argument FROM. Change caller.
16021 (font_prop_validate): Validate all known properties.
16022 (font_put_extra): Delete argument force. Change caller.
16023 (font_expand_wildcards): Make it static. Fix the way of shrinking
16024 the possible range.
16025 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
16026 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
16027 Change caller.
16028 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
16029 (font_parse_fcname): Delete argument merge. Fix parsing of point
16030 size. Don't validate properties values here. Change caller.
16031 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
16032 (font_open_by_name): Delete unused variable.
16033 (Ffont_spec): Likewise. Validate property values.
16034 (Ffont_match_p): New function.
16035
16036 * font.h (QCscalable): Extern it.
16037 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
16038
16039 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
16040
16041 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
16042 (xfont_list_pattern): New function.
16043 (xfont_list): Use xfont_list_pattern.
16044
160452008-02-01 Kenichi Handa <handa@m17n.org>
16046
16047 * font.h (Flist_fonts): EXFUN it.
16048
160492008-02-01 Jason Rumney <jasonr@gnu.org>
16050
16051 * w32term.c (w32_initialize): Add back smoothing_type and
16052 smoothing_enabled definitions.
16053
160542008-02-01 Kenichi Handa <handa@m17n.org>
16055
16056 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
16057 s->face->font on determining underline position.
16058
160592008-02-01 Kenichi Handa <handa@m17n.org>
16060
16061 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
16062 (font_has_char): Accept font-object too.
16063 (font_find_for_lface): Try at first with a size specified in face.
16064
160652008-02-01 Kenichi Handa <handa@m17n.org>
16066
16067 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
16068 font_open_by_name.
16069
160702008-02-01 Kenichi Handa <handa@m17n.org>
16071
16072 * font.h (QCspacing, QCdpi): Extern them.
16073 (enum font_spacing): New enum.
16074 (FONT_PIXEL_SIZE_QUANTUM): New macro.
16075
16076 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
16077 (QCspacing, QCdpi): New variables.
16078 (syms_of_font): Initialize them.
16079 (font_pixel_size): New function.
16080 (font_put_extra): New function.
16081 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
16082 in FONT_EXTRA.
16083 (font_parse_fcname): Handle enumerated values (e.g. bold).
16084 Fix handling font size. Add QCname property that contains only
16085 unknown properties.
16086 (font_score): Change argument. Change caller. Pay attention to
16087 FONT_PIXEL_SIZE_QUANTUM.
16088 (font_sort_entites, font_list_entities, font_find_for_lface)
16089 (font_open_for_lface, font_open_by_name): Fix handling of font size.
16090 (Ffont_spec): Add QCname property that contains only unknown properties.
16091
16092 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
16093 include weight in listing pattern, instead check weight of each
16094 listed font. Don't include scalable in pattern. Pay attention to
16095 FONT_PIXEL_SIZE_QUANTUM.
16096
160972008-02-01 Kenichi Handa <handa@m17n.org>
16098
16099 * font.c (font_parse_fcname): Fix parsing of point-size.
16100 (font_unparse_fcname): Produce symbolic names for style properties.
16101 (font_list_entities): Handle float size correctly.
16102 (font_open_by_name): Prefer `normal' property values if the name
16103 doesn't specify them.
16104
16105 * fontset.c (Finternal_char_font): Use font_get_name, not
16106 Ffont_xlfd_name.
16107
16108 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
16109 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
16110 pattern. Don't force scalable.
16111
16112 * xftfont.c (xftfont_open): For generating a name, start from
16113 96-byte buffer.
16114
161152008-02-01 Jan Djärv <jan.h.d@swipnet.se>
16116
16117 * frame.h (x_new_fontset2): Fix prototype.
16118
161192008-02-01 Kenichi Handa <handa@m17n.org>
16120
16121 * font.h (struct font_driver): Delete member parse_name.
16122 (font_match_p, font_get_spec, font_parse_fcname)
16123 (font_unparse_fcname): Extern them.
16124 (font_get_name): Adjust prototype.
16125
16126 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
16127 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
16128 (font_expand_wildcards): Fix handling ENCODING field. Avoid
16129 unnecessary checks for weight, slant, and swidth.
16130 (font_parse_fcname): New function.
16131 (font_unparse_fcname): New function.
16132 (font_parse_name): New function.
16133 (font_match_p): New function.
16134 (font_get_name): Change return value to Lisp string.
16135 (font_get_spec): New function.
16136 (Qunspecified, Qignore_defface): Don't extern them.
16137 (font_find_for_lface): Assume that LFACE is fully specified.
16138 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
16139 object, use it for FACE.
16140 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
16141 driver->parse_name.
16142 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
16143
16144 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
16145 prototype.
16146
16147 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
16148 argument F. Don't call Fnew_fontset. Instead, directly call
16149 make_fontset.
16150
16151 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
16152
16153 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
16154 of x_new_fontset2.
16155
16156 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
16157 (Qsans__serif): New variables.
16158 (ftfont_generic_family_list): New variable.
16159 (syms_of_ftfont): Initialize the above variables.
16160 (ftfont_pattern_entity): Delete argument NAME.
16161 (ftfont_list_generic_family): New function.
16162 (ftfont_parse_name): Delete this function.
16163 (ftfont_list): Try generic family only when FcFontList found no font.
16164 (ftfont_list_family): Fix args to FcObjectSetBuild.
16165
16166 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
16167 object in attrs[LFACE_FONT_INDEX].
16168 (set_lface_from_font_name): Cancel all changes for font-backend.
16169 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
16170 function.
16171 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
16172 font object in QCfont attribute.
16173 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
16174 (realize_default_face) [USE_FONT_BACKEND]: Call
16175 set_lface_from_font_and_fontset.
16176
16177 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
16178 "fixed", and signal error here if no suitable font was found.
16179
16180 * xfont.c (xfont_parse_name): Delete this function.
16181
16182 * xftfont.c (xftfont_open): Change coding style of error
16183 handling. Generate fontconfig's fontname pattern.
16184
16185 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
16186 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
16187
16188 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
16189 Both args FONTSET and FONT_OBJECT must be existing ones.
16190
161912008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16192
16193 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
16194
161952008-02-01 Kenichi Handa <handa@m17n.org>
16196
16197 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
16198
16199 * font.h (struct font): Fix typo.
16200
16201 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
16202 XLFD_XXX_INDEX.
16203 (enum xlfd_field_mask): New enum.
16204 (intern_font_field): Changed argument. Change caller. If digits
16205 are followed by non-digits, return a symbol.
16206 (font_expand_wildcards): New function.
16207 (font_parse_xlfd): Fix wildcard handling.
16208 (Ffont_spec): If :name is specified, reflect the info in the other
16209 properties.
16210
16211 * ftfont.c (ftfont_pattern_entity): Fix typo.
16212 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
16213 locale.
16214
162152008-02-01 Kenichi Handa <handa@m17n.org>
16216
16217 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
16218
16219 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
16220 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
16221 registry doesn't specify encoding part.
16222 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
16223 (font_open_by_name): At first try parsing the name.
16224 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
16225 as Lisp symbols.
16226
16227 * fontset.c (reorder_font_vector): Pay attention to the case that
16228 the 3rd element of font_def is nil.
16229 (fontset_font): For the default fontset, append one more fontset
16230 elements for a script-based font specification. Don't add script
16231 attribute on finding a font.
16232 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
16233 font name.
16234 (fontset_ascii_font): If a font can't be opened, return nil.
16235
16236 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
16237 (ftfont_pattern_entity): New function.
16238 (ftfont_get_cache): Assume that freetype_font_cache is already
16239 initialized.
16240 (ftfont_list): Handle the case that a file is specified in font
16241 name. Use ftfont_pattern_entity to generate entities.
16242 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
16243 (syms_of_ftfont): Initialize freetype_font_cache.
16244
16245 * xftfont.c (xftfont_open): Make the font name fontconfig's
16246 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
16247 (xftfont_close): Free font->font.name if not NULL.
16248
16249 * xfont.c (xfont_list): If script is specified for a font, return
16250 null_vector.
16251 (xfont_list_family): Declare argument type.
16252
16253 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
16254 name, set LFACE_FONT (lface) to nil.
16255
16256 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
16257 return Qnil.
16258
162592008-02-01 Kenichi Handa <handa@m17n.org>
16260
16261 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
16262 (standard_args): Add "-enable-font-backend".
16263
162642008-02-01 Kenichi Handa <handa@m17n.org>
16265
16266 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
16267 (struct xftdraw_list, xftdraw_list): Delete them.
16268 (register_xftdraw, check_xftdraw): Delete them.
16269 (xftfont_prepare_face): Don't call register_xftdraw.
16270 (xftfont_done_face): Don't call check_xftdraw.
16271 (xftfont_draw): Get background color only when with_background is
16272 nonzero.
16273
16274 * xfont.c (xfont_encode_char): Fix calculation of char2b.
16275
162762008-02-01 Kenichi Handa <handa@m17n.org>
16277
16278 These changes are for the new font handling codes.
16279
16280 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
16281 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
16282 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
16283 (FONTSRC, FONTOBJ): New variables.
16284 (obj): Add $(FONTOBJ).
16285 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
16286 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
16287 @LIBOTF_LIBS@.
16288 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
16289 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
16290
16291 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
16292
16293 * character.h (Vscript_representative_chars): Extern it.
16294
16295 * character.c (Vscript_representative_chars): New variable.
16296 (syms_of_character): Declare it as a Lisp variable.
16297
16298 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
16299 enable_font_backend is nonzero, accept the composition method
16300 COMPOSITION_WITH_GLYPH_STRING.
16301
16302 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
16303 enumeration COMPOSITION_WITH_GLYPH_STRING.
16304
16305 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
16306 members clip_x, clip_y, clip_width, and clip_height.
16307 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
16308
16309 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
16310 --enable-font-backend. Call syms_of_font.
16311
16312 * fns.c (assoc_no_quit): New function.
16313
16314 * fontset.h (FONT_INFO_FROM_FACE): New macro.
16315 (face_for_font, new_fontset_from_font)
16316 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
16317
16318 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
16319 (fontset_font, fontset_ascii, face_for_char)
16320 (make_fontset_for_ascii_face, Ffont_info)
16321 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
16322 is nonzero, use font-backend mechanism.
16323 (find_font_encoding): Make it non-static.
16324 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
16325 New functions.
16326
16327 * frame.h (struct frame): New members resx and resy.
16328 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
16329 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
16330
16331 * frame.c [USE_FONT_BACKEND]: Include "font.h".
16332 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
16333
16334 * lisp.h (assoc_no_quit): Extern it.
16335
16336 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
16337 Through out the file, use FONT_INFO_FROM_FACE instead of
16338 FONT_INFO_FROM_ID, use get_per_char_metric instead of
16339 rif->per_char_metric.
16340 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
16341 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
16342 (get_glyph_face_and_encoding, fill_composite_glyph_string)
16343 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
16344 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
16345 nonzero, use font-backend mechanism.
16346 (get_per_char_metric): New function.
16347
16348 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
16349 (set_lface_from_font_name)
16350 (set_font_frame_param, free_realized_face)
16351 (prepare_face_for_display, clear_face_gcs)
16352 (Finternal_set_font_selection_order, realize_x_face)
16353 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
16354 font-backend mechanism.
16355 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
16356 (load_face_font) [USE_FONT_BACKEND]: Abort.
16357 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
16358 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
16359
16360 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
16361 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
16362 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
16363 nonzero, register all available font drivers. Call
16364 x_default_font_parameter for deciding a font.
16365 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
16366
16367 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
16368 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
16369 (x_set_glyph_string_clipping_exactly)
16370 (x_compute_glyph_string_overhangs)
16371 (x_draw_glyph_string_foreground)
16372 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
16373 (x_free_frame_resources) [USE_FONT_BACKEND]: If
16374 enable_font_backend is nonzero, use font-backend mechanism.
16375 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
16376
163772008-02-01 Kenichi Handa <handa@m17n.org>
16378
16379 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
16380 system_eol_type.
16381 (syms_of_coding): Initialize system_eol_type.
16382
16383 * process.c (Fset_process_coding_system): Inherit system's eol
16384 format if necessary.
16385
163862008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16387
16388 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
16389
163902008-02-01 Kenichi Handa <handa@m17n.org>
16391
16392 * coding.c (decode_eol): Pay attention to buffer relocation in
16393 del_range_2.
16394 (decode_coding): Call decode_eol before restoring undo_list.
16395
163962008-02-01 Kenichi Handa <handa@m17n.org>
16397
16398 * charset.c (Fdefine_charset_internal): Fix setting of
16399 emacs_mule_bytes.
16400
164012008-02-01 Kenichi Handa <handa@m17n.org>
16402
16403 * keyboard.c (read_char): Check if C is a character or not before
16404 looking up Vkeyboard_translate_table.
16405
164062008-02-01 Kenichi Handa <handa@m17n.org>
16407
16408 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
16409 condition to terminate the loop.
16410
164112008-02-01 Kenichi Handa <handa@m17n.org>
16412
16413 * coding.c (produce_composition): Compare charbuf[i] instead of
16414 args[i] against 0.
16415 (Fterminal_coding_system): Use EQ to compare Lisp objects.
16416
164172008-02-01 Kenichi Handa <handa@m17n.org>
16418
16419 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
16420 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
16421 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
16422 detect_coding.
16423 (emacs_mule_char): Handle old style (Emacs 20) component character
16424 of a composition.
16425 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
16426 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
16427 composition rule.
16428 (decode_coding_emacs_mule): Handle invalid bytes correctly.
16429
164302008-02-01 Kenichi Handa <handa@m17n.org>
16431
16432 * coding.c (encode_coding_ccl): Allocate destination dynamically
16433 when necessary.
16434
164352008-02-01 Kenichi Handa <handa@m17n.org>
16436
16437 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
16438 the loop. When quitted, show a proper error message.
16439
164402008-02-01 Kenichi Handa <handa@m17n.org>
16441
16442 * xterm.c (x_set_glyph_string_clipping_exactly): Set
16443 src->clip_head and src->clip_tail temporarily instead of src->hl.
16444
16445 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
16446 character sequence.
16447 (Fccl_execute_on_string): Use ASET, not XSET.
16448
164492008-02-01 Kenichi Handa <handa@m17n.org>
16450
16451 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
16452
164532008-02-01 Kenichi Handa <handa@m17n.org>
16454
16455 * coding.c (decode_coding): Fix the condition of terminating the
16456 decoding loop.
16457
164582008-02-01 Kenichi Handa <handa@m17n.org>
16459
16460 * data.c (Faset): On setting a character bigger than 255 in a
16461 unibyte string, signal an error instead of make the string multibyte.
16462
164632008-02-01 Kenichi Handa <handa@m17n.org>
16464
16465 * charset.c (map_charset_chars): Fix for ascii-compatible charset
16466 made by a mapping table.
16467
164682008-02-01 Kenichi Handa <handa@m17n.org>
16469
16470 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
16471 not.
16472 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
16473 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
16474
16475 * xterm.c (x_draw_composite_glyph_string_foreground): Check
16476 s->face is NULL or not.
16477
164782008-02-01 Kenichi Handa <handa@m17n.org>
16479
16480 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
16481 (x_draw_glyph_string): Fix drawing of right_overhang and
16482 left_overhang around/on cursor.
16483
16484 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
16485
164862008-02-01 Kenichi Handa <handa@m17n.org>
16487
16488 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
16489
164902008-02-01 Kenichi Handa <handa@m17n.org>
16491
16492 * coding.c (Fdefine_coding_system_internal)
16493 (Fdefine_coding_system_alias): Avoid a duplicated element in
16494 Vcoding_system_alist.
16495
164962008-02-01 Kenichi Handa <handa@m17n.org>
16497
16498 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
16499
16500 * coding.c (Qcoding_system_define_form): New variable.
16501 (syms_of_coding): Intern and staticpro it.
16502 (Fcoding_system_p): Check Qcoding_system_define_form.
16503 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
16504
16505 * coding.h (CODING_SYSTEM_P): If ID is not available, call
16506 Fcoding_system_p.
16507 (CHECK_CODING_SYSTEM): If ID is not available, call
16508 Fcheck_coding_system.
16509 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
16510 Try also Fcheck_coding_system.
16511
165122008-02-01 Kenichi Handa <handa@m17n.org>
16513
16514 * coding.c (code_conversion_restore): GCPRO arg.
16515
165162008-02-01 Kenichi Handa <handa@m17n.org>
16517
16518 * character.c (lisp_string_width): Check multibyteness of STRING.
16519
165202008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16521
16522 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
16523 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
16524 (decode_mac_font_name): Use decode_coding_c_string instead of
16525 decode_coding.
16526 (x_load_font): Initialize fontp->fontset to -1. Set
16527 fontp->encoding_type.
16528
165292008-02-01 Kenichi Handa <handa@m17n.org>
16530
16531 * search.c (search_buffer): Give up BM search on case-fold-search
16532 if one of a target character has a case-equivalence of different
16533 byte length even if that target charcter is an ASCII.
16534 (simple_search): Fix calculation of byte length of matched text.
16535 (boyer_moore): Fix handling of case-equivalent multibyte characters.
16536
165372008-02-01 Kenichi Handa <handa@m17n.org>
16538
16539 * coding.c (decode_coding): Fix handling of invalid bytes.
16540
165412008-02-01 Kenichi Handa <handa@m17n.org>
16542
16543 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
16544 Unicode characters.
16545
165462008-02-01 Kenichi Handa <handa@m17n.org>
16547
16548 * coding.c (encode_coding_object): If a pre-write-conversion
16549 function makes a new buffer, kill it.
16550
165512008-02-01 Kenichi Handa <handa@m17n.org>
16552
16553 * coding.c (QCascii_compatible_p): New variable.
16554 (syms_of_coding): Initialize it.
16555 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
16556 calling string_char.
16557 (record_conversion_result): Add `default:' case.
16558 (coding_charset_list): Delete unused variable `coding_type'.
16559 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
16560 property in the plist of the coding system.
16561 (Fcoding_system_put): Check QCascii_compatible_p.
16562
165632008-02-01 Miles Bader <miles@gnu.org>
16564
16565 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
16566 removed calculation of frame `f', as it's now used.
16567
165682008-02-01 Kenichi Handa <handa@m17n.org>
16569
16570 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
16571 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
16572 (UNIDATA): New variable.
16573 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
16574 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
16575 $(RUN_TEMACS) unconditionally.
16576
165772008-02-01 Kenichi Handa <handa@m17n.org>
16578
16579 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
16580 (admindir): New variable.
16581 ($(lispsource)international/charprop.el): New target.
16582
165832008-02-01 Miles Bader <miles@gnu.org>
16584
16585 * character.c (chars-in-region): Remove obsolete function.
16586 (syms_of_character): Remove its initialization.
16587
165882008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
16589
16590 * w32select.c (validate_coding_system)
16591 (setup_windows_coding_system): New functions.
16592 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
16593 setup_windows_coding_system.
16594 (setup_config, Fw32_get_clipboard_data): Use
16595 validate_coding_system.
16596 (Fx_selection_exists): Move call to setup_config to a place
16597 where signals are allowed.
16598
16599 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
16600 (Fcheck_coding_system): Add declarations.
16601
166022008-02-01 Kenichi Handa <handa@m17n.org>
16603
16604 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
16605
166062008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16607
16608 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
16609 string as the second argument for x_new_fontset.
16610
166112008-02-01 Kenichi Handa <handa@m17n.org>
16612
16613 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
16614 (encode_coding_object): Use safe_call instead of call2.
16615
166162008-02-01 Kenichi Handa <handa@m17n.org>
16617
16618 * fontset.c (Fset_fontset_font): Check family element of a given vector.
16619
16620 * Makefile.in (lisp): Include charprop.el.
16621
166222008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16623
16624 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
16625 Not sure if it's unnecessary.
16626
166272008-02-01 Steven Tamm <steventamm@mac.com>
16628
16629 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
16630 some possibly unnecessary fontset checking code that crashed
16631 when creating a new frame.
16632
166332008-02-01 Kenichi Handa <handa@m17n.org>
16634
16635 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
16636 lookup_face.
16637
16638 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
16639
16640 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
16641
166422008-02-01 Kenichi Handa <handa@m17n.org>
16643
16644 * coding.c: Cancel the change done in HEAD on 2008-02-01.
16645 (coding_charset_list): New function.
16646
16647 * coding.h (coding_charset_list): Extern it.
16648
166492008-02-01 Kenichi Handa <handa@m17n.org>
16650
16651 * fontset.c (Fset_fontset_font): Call find_font_encoding with
16652 concatenation of family and registry.
16653
166542008-02-01 Kenichi Handa <handa@m17n.org>
16655
16656 * character.h (BYTE8_STRING): Fix typo.
16657
16658 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
16659 string to multibyte (sync to HEAD).
16660
16661 * casefiddle.c (casify_region): Handle changes in byte-length
16662 using replace_range_2 (sync to HEAD).
16663
166642008-02-01 Andreas Schwab <schwab@suse.de>
16665
16666 * chartab.c (map_char_table): GCPRO table and arg.
16667
166682008-02-01 Kenichi Handa <handa@m17n.org>
16669
16670 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
16671 already at limit.
16672
166732008-02-01 Kenichi Handa <handa@m17n.org>
16674
16675 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
16676 instead of fast_c_string_match_ignore_case.
16677 (find_font_encoding): Change argument to Lisp_Object. Use
16678 fast_string_match_ignore_case instead of
16679 fast_c_string_match_ignore_case. Change caller.
16680
166812008-02-01 Kenichi Handa <handa@m17n.org>
16682
16683 * xdisp.c (get_next_display_element): In unibyte case, decide to
16684 display in octal form by checking a character by
16685 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
16686
16687 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
16688
16689 * character.c (unibyte_has_multibyte_table): New variable.
16690
16691 * character.h (unibyte_has_multibyte_table): Extern it.
16692 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
16693
166942008-02-01 Kenichi Handa <handa@m17n.org>
16695
16696 * coding.c (encode_coding_iso_2022): Fix handling of charset
16697 annotation.
16698
166992008-02-01 Kenichi Handa <handa@m17n.org>
16700
16701 * coding.c (setup_coding_system): If coding_system is nil, use
16702 Qundecided.
16703 (Fterminal_coding_system): Return nil if terminal coding system is
16704 `undecided'.
16705 (syms_of_coding): Define coding-system `undecided' here. Setup
16706 terminal_coding as `undecided'.
16707
167082008-02-01 Kenichi Handa <handa@m17n.org>
16709
16710 * xdisp.c (message_dolog, set_message_1): Call
16711 unibyte_char_to_multibyte with arg type int.
16712
16713 * lread.c (read1): Fix reading of a char-table.
16714
16715 * print.c (print_object): Include sub char-table in circularities
16716 detection.
16717
167182008-02-01 Kenichi Handa <handa@m17n.org>
16719
16720 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
16721 Append the found sequences in car of ARGS instead of prepending.
16722
167232008-02-01 Kenichi Handa <handa@m17n.org>
16724
16725 * fileio.c (report_file_error): Make a unibyte string from
16726 strerror (errorno).
16727 (Fsubstitute_in_file_name): Fix the arg to
16728 unibyte_char_to_multibyte. It is evaluated twice.
16729
167302008-02-01 Kenichi Handa <handa@m17n.org>
16731
16732 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
16733
167342008-02-01 Kenichi Handa <handa@m17n.org>
16735
16736 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
16737 BOM is not found.
16738 (detect_coding, detect_coding_system): Optimization for ISO-2022
16739 when no 8-bit data is found.
16740
167412008-02-01 Jason Rumney <jasonr@gnu.org>
16742
16743 * w32fns.c (x_to_w32_font): Update to use new coding struct.
16744
167452008-02-01 Kenichi Handa <handa@m17n.org>
16746
16747 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
16748 CHARS.
16749
167502008-02-01 Steven Tamm <steventamm@mac.com>
16751
16752 * macterm.c (mac_encode_char): Add charset argument and update
16753 to use encoding_type.
16754 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
16755 switch to pure fontset.
16756 (decode_mac_font_name): Temporarily remove decoding.
16757 (x_font_name_to_mac_font_name): Temporarily remove encoding.
16758 (x_load_font): Temporarily remove encoding.
16759
167602008-02-01 Kenichi Handa <handa@m17n.org>
16761
16762 * xfaces.c (Fface_font): If frame is not on a window system,
16763 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
16764 refer to face->font.
16765 (split_font_name_into_vector, build_font_name_from_vector)
16766 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
16767 when HAVE_WINDOW_SYSTEM is defined.
16768
167692008-02-01 Kenichi Handa <handa@m17n.org>
16770
16771 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
16772 (x_produce_glyphs): Fix setting of members of cmp in case
16773 cmp->glyph_len is zero.
16774
16775 * fontset.c (Fset_fontset_font): Fix docstring.
16776 (Ffontset_info): Make it backward compatible. New arg ALL.
16777
167782008-02-01 Kim F. Storm <storm@cua.dk>
16779
16780 * process.c (read_process_output): Grow decoding_buf when needed;
16781 this could cause a crash in allocate_string and compact_small_strings.
16782
167832008-02-01 Kenichi Handa <handa@m17n.org>
16784
16785 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
16786
167872008-02-01 Kenichi Handa <handa@m17n.org>
16788
16789 * coding.c (setup_coding_system): Set coding->common_flags
16790 correctly for raw-text.
16791 (consume_chars): On encoding unibyte text by raw-text, don't check
16792 multibyte form.
16793 (encode_coding): On encoding by raw-text, never use translation tables.
16794
16795 * fileio.c (e_write): Short cut for the case of no encoding.
16796
167972008-02-01 Kenichi Handa <handa@m17n.org>
16798
16799 * coding.c (detect_coding, detect_coding_system): Delete unused
16800 variables.
16801
168022008-02-01 Kenichi Handa <handa@m17n.org>
16803
16804 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
16805 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
16806
168072008-02-01 Kenichi Handa <handa@m17n.org>
16808
16809 * coding.c (Ffind_coding_systems_region_internal): Include
16810 raw-text and no-conversion in the result.
16811
168122008-02-01 Kenichi Handa <handa@m17n.org>
16813
16814 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
16815 (load_font_get_repertory): Delete unnecessary check of ENCODING of
16816 FONT_DEF.
16817 (font_def_arg, add_arg, from_arg, to_arg): New args.
16818 (set_fontset_font): Change argument.
16819 (Fset_fontset_font): Fix for the case that TARGET is a script
16820 name and charset name.
16821 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
16822
168232008-02-01 Kenichi Handa <handa@m17n.org>
16824
16825 * fontset.c (fontset_font): Rename from fontset_face. Change return
16826 value.
16827 (face_suitable_for_char_p, face_for_char): Adjust for the change
16828 of fontset_font.
16829 (make_fontset_for_ascii_face): Fix setting of the fontset element
16830 for ASCII.
16831 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
16832 to get a font name.
16833 (Ffontset_info): Adjust for the change of fontset_font.
16834
16835 * coding.c (emacs_mule_char): Check invalid code more rigidly.
16836
16837 * character.h (LEADING_CODE_LATIN_1_MIN)
16838 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
16839
168402008-02-01 Kenichi Handa <handa@m17n.org>
16841
16842 * editfns.c (check_translation): New function.
16843 (Ftranslate_region_internal): Handle M:N mapping.
16844
168452008-02-01 Kenichi Handa <handa@m17n.org>
16846
16847 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
16848
168492008-02-01 Kenichi Handa <handa@m17n.org>
16850
16851 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
16852 goto invalid_code.
16853 (decode_coding_iso_2022): Fix handling of invalid designation.
16854
16855 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
16856 after calling code_conversion_save.
16857
168582008-02-01 Kenichi Handa <handa@m17n.org>
16859
16860 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
16861
16862 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
16863
16864 * fontset.c: Include "intervals.h".
16865 (fontset_face): Fix comparing of Lisp_Objects.
16866 (free_face_fontset, new_fontset_from_font_name): Fix
16867 Lisp_Object/int mixup.
16868
16869 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
16870
16871 * coding.c: Add many prototypes for static functions.
16872 (get_translation_table): Allow max_lookup to be NULL.
16873 (decode_coding, Ffind_coding_systems_region_internal)
16874 (Funencodable_char_position, Fcheck_coding_systems_region): Call
16875 get_translation_table with max_lookup NULL.
16876
168772008-02-01 Kenichi Handa <handa@m17n.org>
16878
16879 * coding.c (get_translation_table): Declare it as Lisp_Object.
16880 (LOOKUP_TRANSLATION_TABLE): New macro.
16881 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
16882 instead of CHAR_TABLE_REF.
16883
168842008-02-01 Kenichi Handa <handa@m17n.org>
16885
16886 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
16887 annotation data format.
16888 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
16889 Change arguments FROM and TO to single argument NCHARS. Change caller.
16890 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
16891 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16892 (decode_coding_ccl, decode_coding_charset): Pay attention to
16893 coding->charbuf_used.
16894 (get_translation): New function.
16895 (produce_chars): New arguments translation_table and last_block.
16896 Translate characters here. Return number of carryover chars.
16897 Change caller.
16898 (produce_composition): New argument pos. Change caller.
16899 Adjust for the change of annotation data format.
16900 (produce_charset, produce_annotation): Likewise.
16901 (decode_coding, encode_coding): Don't call translate_chars.
16902 (consume_chars): New arg translation_table. Change caller.
16903 (translate_chars): Delete.
16904 (syms_of_coding): Make translation-table's number of extra slots 2.
16905
169062008-02-01 Kenichi Handa <handa@m17n.org>
16907
16908 * search.c (simple_search): Fix setting this_pos_byte in backward
16909 search.
16910
16911 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
16912 byte sequence.
16913 (detect_coding_ccl): Fix setting of the variable valids.
16914
169152008-02-01 Kenichi Handa <handa@m17n.org>
16916
16917 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
16918
16919 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
16920
16921 * editfns.c (Ftranslate_region_internal): Rename from
16922 Ftranslate_region. Accept a char-table in TABLE.
16923 (syms_of_editfns): Defsubr Stranslate_region_internal.
16924
16925 * xfaces.c (set_lface_from_font_name): If a font is specified for
16926 a frame, generate a fontset from the font.
16927 (build_scalable_font_name): If the scalable font is requested for
16928 a specific size, don't change that size.
16929 (try_font_list): Try a scalable font also in the case that a
16930 pattern string is specified.
16931
169322008-02-01 Kenichi Handa <handa@m17n.org>
16933
16934 * xfaces.c (Fface_font): New optional arg CHARACTER.
16935
169362008-02-01 Kenichi Handa <handa@m17n.org>
16937
16938 * charset.h (CHARSET_OFFSET): New macro.
16939
169402008-02-01 Kenichi Handa <handa@m17n.org>
16941
16942 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
16943
16944 * fontset.c (fontset_face): Handle the case that repertory is a
16945 char-table.
16946 (find_font_encoding): Return nil for unknown encoding.
16947 (Fset_fontset_font): Ignore a font of unknown encoding.
16948
169492008-02-01 Kenichi Handa <handa@m17n.org>
16950
16951 * keymap.c (describe_vector): Handle default value of a char table.
16952
16953 * fontset.c (fontset_face): Handle fallback fonts correctly.
16954 (Ffontset_info): Return infomation about fallback fonts.
16955
169562008-02-01 Kenichi Handa <handa@m17n.org>
16957
16958 * fontset.c (FONTSET_DEFAULT): New macro.
16959 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
16960 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
16961 the case that it is nil.
16962 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
16963 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
16964
16965 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
16966 subset or superset.
16967
169682008-02-01 Kenichi Handa <handa@m17n.org>
16969
16970 * emacs.c (main): Call init_charset after syms_of_XXX.
16971
16972 * charset.c (Vcharset_map_directory): Delete.
16973 (Vcharset_map_path): New variable.
16974 (load_charset_map_from_file): Use Vcharset_map_path instead.
16975 (init_charset): Initialize Vcharset_map_path.
16976 (syms_of_charset): Delete declaration of "charset-map-directory",
16977 add declaration of "charset-map-path".
16978
169792008-02-01 Kenichi Handa <handa@m17n.org>
16980
16981 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
16982 ASCII only string.
16983
16984 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
16985
16986 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
16987 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
16988
169892008-02-01 Kenichi Handa <handa@m17n.org>
16990
16991 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
16992
16993 * coding.c (QCmnemonic, QCdefalut_char)
16994 (QCdecode_translation_table, QCencode_translation_table)
16995 (QCpost_read_conversion, QCpre_write_conversion): New variables.
16996 (get_translation_table): Return a list of translation tables if
16997 necessary.
16998 (decode_coding): Call get_translation_table with ENCODEP 0.
16999 (char_encodable_p): If translation_table is non-nil, always call
17000 translate_char.
17001 (Fdefine_coding_system_internal): Accept list of translation
17002 tables as :encode-translation-table and :decode-translation-table.
17003 (Fcoding_system_put): New function.
17004 (syms_of_coding): Declare new symbols. Defsubr
17005 Scoding_system_put.
17006 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
17007 typically JISX0212.
17008
17009 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
17010 when the charset is superset type.
17011
17012 * character.c (translate_char): Accept list of translation tables.
17013
170142008-02-01 Kenichi Handa <handa@m17n.org>
17015
17016 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
17017 (CODING_ATTR_TRANS_TBL): New macro.
17018
17019 * coding.c (get_translation_table): New function.
17020 (translate_chars): Fix the bug of skipping annotation data.
17021 (decode_coding, encode_coding): Utilize get_translation_table.
17022 (char_encodable_p, Funencodable_char_position): Translate char if
17023 necessary.
17024 (Ffind_coding_systems_region_internal)
17025 (Fcheck_coding_systems_region): Setup translation table for encode
17026 in a coding system attribute vector in advance.
17027 (Fdefine_coding_system_internal): Allow a symbol as translation
17028 table. For shift-jis type coding system, allow 4th charset.
17029
170302008-02-01 Kenichi Handa <handa@m17n.org>
17031
17032 * coding.c (decode_coding_sjis): Check the first byte rigidly.
17033
17034 * xdisp.c (get_next_display_element): Pass -1 as POS to
17035 FACE_FOR_CHAR if displaying a C-string.
17036
170372008-02-01 Kenichi Handa <handa@m17n.org>
17038
17039 * composite.c (get_composition_id): Handle xoff and yoff in a
17040 composition rule.
17041
17042 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
17043 (struct composition): New member lbearing and rbearing.
17044
17045 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
17046 (x_get_glyph_overhangs): Handle a composition glyph.
17047 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
17048
17049 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
17050 composition glyph.
17051
170522008-02-01 Kenichi Handa <handa@m17n.org>
17053
17054 * print.c: Include charset.h.
17055 (Vprint_charset_text_property): New variable.
17056 (Qdefault): Extern it.
17057 (PRINT_STRING_NON_CHARSET_FOUND)
17058 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
17059 (print_check_string_result): New variable.
17060 (print_check_string_charset_prop): New function.
17061 (print_prune_charset_plist): New variable.
17062 (print_prune_string_charset): New function.
17063 (print_object): Call print_prune_string_charset if
17064 Vprint_charset_text_property is not t.
17065 (print_interval): Print nothing if interval->plist is nil.
17066 (syms_of_print): Declare Vprint_charset_text_property as a lisp
17067 variable. Init and staticpro print_prune_charset_plist.
17068
170692008-02-01 Kenichi Handa <handa@m17n.org>
17070
17071 * fontset.c (new_fontset_from_font_name): Use the specified font
17072 for all characters in the new fontset.
17073
17074 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
17075 OBJECT args.
17076
17077 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
17078 OBJECT args for composition too.
17079
17080 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
17081 OBJECT args.
17082
170832008-02-01 Kenichi Handa <handa@m17n.org>
17084
17085 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
17086
17087 * fontset.c (reorder_font_vector): Adjust for the change of
17088 FONT_DEF format.
17089 (fontset_face): New arg id. Change caller.
17090 (face_for_char): New args pos and object.
17091 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
17092 (fs_query_fontset): Check NAME by Fassoc too.
17093 (Fset_fontset_font): Allow non-XLFD font name.
17094 (Ffontset_info): Adjust for the change of FONT_DEF format.
17095
17096 * fontset.h (face_for_char): Adjust prototype.
17097
17098 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
17099 (append_space, extend_face_to_end_of_line)
17100 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
17101 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
17102
17103 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
17104 POS and OBJECT args.
17105
17106 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
17107 POS and OBJECT args.
17108
171092008-02-01 Jason Rumney <jasonr@gnu.org>
17110
17111 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
17112 of GlobalAlloc'ed memory.
17113
171142008-02-01 Kenichi Handa <handa@m17n.org>
17115
17116 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
17117
17118 * charset.h (charset_table_used): Delete extern.
17119
17120 * charset.c (charset_table_used): Make it static.
17121 (map_charset_chars): Fix args to c_function with.
17122
17123 * chartab.c (map_sub_char_table_for_charset): Fix args to
17124 c_function with.
17125
17126 * coding.h (enum coding_result_code): Delete
17127 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
17128
17129 * coding.c (Qinsufficient_source, Qinconsistent_eol)
17130 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
17131 (Vlast_code_conversion_error): New variables.
17132 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
17133 (ONE_MORE_BYTE): Record error if any instead of signaling an
17134 error. If non-ASCII multibyte char is found, return the negative
17135 value of the code. All callers changed to check it.
17136 (ONE_MORE_BYTE_NO_CHECK): Likewise.
17137 (record_conversion_result): New function. Change all codes setting
17138 coding->result to call this function.
17139 (detect_coding_utf_8, decode_coding_utf_8)
17140 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
17141 Don't use the local variable incomplete.
17142 (emacs_mule_char): Change the second arg to `const'.
17143 (decode_coding): Fix of flushing out unprocessed data.
17144 (make_conversion_work_buffer): Fix making of a work buffer.
17145 (decode_coding_object): Return coding->dst_object.
17146
17147 * fontset.c (set_fontset_font): Fix args.
17148
17149 * lisp.h (CHARACTERBITS): Define as 22.
17150
17151 * process.c (send_process): Be sure to set coding->src_multibyte.
17152
17153 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
17154
171552008-02-01 Kenichi Handa <handa@m17n.org>
17156
17157 * xdisp.c (handle_auto_composed_prop): Give limit to
17158 Fnext_single_char_property_change.
17159
171602008-02-01 Kenichi Handa <handa@m17n.org>
17161
17162 * composite.c (syms_of_composite): Don't make the composition hash
17163 table weak.
17164
17165 * fontset.c (Fset_fontset_font): Fix docstring.
17166
17167 * lisp.h (detect_coding_system): Adjust prototype.
17168
17169 * fileio.c (kill_workbuf_unwind): Delete this function.
17170 (Finsert_file_contents): Adjust the call of detect_coding_system.
17171 Get conversion_buffer by code_conversion_save. Use the macro
17172 CODING_MAY_REQUIRE_DECODING. After decoding, update
17173 coding_system.
17174
17175 * coding.h (make_conversion_work_buffer): Delete extern.
17176 (code_conversion_save): Extern it.
17177
17178 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
17179 (CODING_GET_INFO): Delete argument eol_type. Change callers.
17180 (decode_coding_utf_8): Don't do eol converion.
17181 (detect_coding_utf_16): Check coding->src_chars, not
17182 coding->src_bytes. Add heuristics for those that have no signature.
17183 (decode_coding_emacs_mule, decode_coding_iso_2022)
17184 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
17185 Don't do eol converion.
17186 (adjust_coding_eol_type): Return a new coding system.
17187 (detect_coding): Don't detect eol. Fix for utf-16 detection.
17188 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
17189 each change.
17190 (decode_coding): Pay attention to undo_list. Do eol conversion for
17191 all types of coding-systems (if necessary).
17192 (Vcode_conversion_work_buf_list): Delete it.
17193 (Vcode_conversion_reused_workbuf): Rename from
17194 Vcode_conversion_reused_work_buf.
17195 (Vcode_conversion_workbuf_name): New variable.
17196 (reused_workbuf_in_use): New variable.
17197 (make_conversion_work_buffer): Delete the arg DEPTH.
17198 (code_conversion_restore): Change argument to cons.
17199 (code_conversion_save): Delete the argument BUFFER. Change callers.
17200 (detect_coding_system): New argument src_chars. Change callers.
17201 Fix for utf-16 detection.
17202 (init_coding_once): Don't use ISO_carriage_return.
17203 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
17204 reused_workbuf_in_use.
17205
172062008-02-01 Kenichi Handa <handa@m17n.org>
17207
17208 * keymap.c (store_in_keymap): Pay attention to the case that idx
17209 is a cons specifying a character range.
17210
172112008-02-01 Kenichi Handa <handa@m17n.org>
17212
17213 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
17214 HANDLED_RECOMPUTE_PROPS.
17215
17216 * coding.c (Fdefine_coding_system_internal): Fix checking of
17217 ascii compatibility.
17218
172192008-02-01 Kenichi Handa <handa@m17n.org>
17220
17221 * charset.c (find_charsets_in_text): Delete unused locale variable.
17222 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
17223
17224 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
17225 Resync charset_list to Vemacs_mule_charset_list.
17226
17227 * keymap.c (store_in_keymap): Pay attention to the case that idx
17228 is a cons specifying a character range.
17229
172302008-02-01 Kenichi Handa <handa@m17n.org>
17231
17232 * composite.c (update_compositions): Bind inhibit-read-only, etc
17233 to t before calling remove-list-of-text-properties.
17234
17235 * print.c (print_object): Always print ASCII chars as is.
17236
172372008-02-01 Kenichi Handa <handa@m17n.org>
17238
17239 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
17240
17241 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
17242 is a char table.
17243
172442008-02-01 Kenichi Handa <handa@m17n.org>
17245
17246 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
17247
172482008-02-01 Kenichi Handa <handa@m17n.org>
17249
17250 * xfaces.c (set_lface_from_font_name): Fix for the case that
17251 FONTNAME is not fontset name.
17252
172532008-02-01 Kenichi Handa <handa@m17n.org>
17254
17255 * fns.c (base64_encode_1): Fix previous change.
17256
172572008-02-01 Kenichi Handa <handa@m17n.org>
17258
17259 * fontset.c (set_fontset_font): New function.
17260 (Fset_fontset_font): If a font is specified for a charset, use
17261 map_charset_chars to store the font spec in a fontset.
17262
172632008-02-01 Kenichi Handa <handa@m17n.org>
17264
17265 * fontset.c (fontset_face): Create a fallback fontset on demand.
17266 (make_fontset): Don't create a fallback fontset here.
17267 (free_face_fontset): Free a fallback fontset (if any) too.
17268 (n_auto_fontsets): Delete this variable.
17269 (auto_fontset_alist): New variable.
17270 (new_fontset_from_font_name): Check auto_fontset_alist.
17271 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
17272 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
17273 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
17274 Defsubr Sfontset_list_all.
17275
172762008-02-01 Kenichi Handa <handa@m17n.org>
17277
17278 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
17279
172802008-02-01 Kenichi Handa <handa@m17n.org>
17281
17282 * fontset.c (Fnew_fontset): Check NAME more rigidly.
17283
172842008-02-01 Kenichi Handa <handa@m17n.org>
17285
17286 * editfns.c (Fgoto_char): Fix docstring.
17287
172882008-02-01 Kenichi Handa <handa@m17n.org>
17289
17290 * insdel.c (insert_from_gap): Adjust intervals correctly.
17291
172922008-02-01 Jason Rumney <jasonr@gnu.org>
17293
17294 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
17295 (pfnGetFontUnicodeRanges): New dynamically loaded function.
17296 (w32_initialize): Try to load it.
17297 (x_get_font_repertory): Use it if available.
17298 (w32_encode_char): Add shortcut for unicode output.
17299
17300 * w32fns.c (w32_load_system_font): Default charset to -1.
17301 (x_to_w32_charset): Match all fonts for unicode.
17302 (w32_to_x_charset): New parameter matching. Don't return partial
17303 or wildcard charsets.
17304 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
17305 (w32_codepage_for_font): Return CP_UNICODE for unicode.
17306 (w32_to_x_font): Match charset to real charset.
17307 (enum_font_cb2): Always list unicode versions.
17308
17309 * makefile.w32-in (temacs): Increase EMHEAP.
17310
173112008-02-01 Jason Rumney <jasonr@gnu.org>
17312
17313 * w32term.c (w32_encode_char): New charset parameter.
17314 font_info.encoding becomes encoding_type.
17315 (x_get_font_repertory): New function. Warning: stub only!
17316 (x_new_font): Return quickly if font already set.
17317 (x_new_fontset): fontsetname parameter is Lisp_Object.
17318 Use new fs_query_fontset. Try new_fontset_from_font_name.
17319 Use fontset_name for return value.
17320
17321 * w32term.h: Declare x_get_font_repertory.
17322
17323 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
17324 place of find_charset_in_text. Use encode_coding_object in place
17325 of encode_coding.
17326 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
17327 decode_coding.
17328
17329 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
17330 of x_new_fontset.
17331 (w32_load_system_font): Initialize charset as unicode.
17332 font_info.encoding becomes encoding_type.
17333 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
17334 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
17335 (syms_of_w32fns): Set get_font_repertory_func.
17336
17337 * w32console.c: Include character.h. Use terminal_encode_buffer
17338 from term.c.
17339 (write_glyphs): Use new version of encode_terminal_code. Use
17340 encode_coding_object in place of encode_coding.
17341
17342 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
17343 encoding becomes encoding_type.
17344
17345 * term.c (terminal_encode_buffer): Make externally visible.
17346
17347 * makefile.w32-in: Add character.h dependancies.
17348 (character.o, chartab.o): New targets.
17349
173502008-02-01 Kenichi Handa <handa@m17n.org>
17351
17352 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
17353 CODING_ID_EOL_TYPE.
17354
173552008-02-01 Andreas Schwab <schwab@suse.de>
17356
17357 * coding.c (produce_chars): Revert last change.
17358
173592008-02-01 Kenichi Handa <handa@m17n.org>
17360
17361 * charset.h (charset_unicode): Extern it.
17362
17363 * charset.c (string_xstring_p): Check by (C >= 0x100).
17364 (find_charsets_in_text): Change format of the arc CHARSETS. New
17365 arg MULTIBYTE.
17366 (Ffind_charset_region, Ffind_charset_string): Adjust for the
17367 change of find_charsets_in_text.
17368 (Fsplit_char): Fix doc. Never return unknown.
17369
17370 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
17371
17372 * coding.c (Fdefine_coding_system_alias): Update
17373 Vcoding_system_list.
17374
17375 * fontset.c (load_font_get_repertory): Pay attention to the case
17376 that ENCODING of a font is specified by a char-table.
17377
17378 * xterm.c (x_get_font_repertory): Handle the case that the
17379 encoding of font is other than Unicode.
17380
173812008-02-01 Kenichi Handa <handa@m17n.org>
17382
17383 * term.c (encode_terminal_code): Don't handle glyph-table. Check
17384 if a character is encodable by the terminal coding system. If
17385 not, produces proper number of `?'s. Update
17386 terminal_encode_buffer and terminal_encode_buf_size if necessary.
17387 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
17388
173892008-02-01 Kenichi Handa <handa@m17n.org>
17390
17391 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
17392 variables.
17393 (encode_terminal_code): Change argument. Encode multiple
17394 characters at once. Store the result of encoding in
17395 terminal_encode_buffer.
17396 (write_glyphs, insert_glyphs): Adjust for the change of
17397 encode_terminal_code.
17398 (term_init): Initialize terminal_encode_buffer and
17399 terminal_encode_buf_size.
17400
17401 * coding.c (consume_chars): If coding->src_object is nil, don't
17402 check annotation.
17403
174042008-02-01 Kenichi Handa <handa@m17n.org>
17405
17406 * character.c (char_string): Use ASCII_CHAR_P instead of
17407 SINGLE_BYTE_CHAR_P.
17408
174092008-02-01 Kenichi Handa <handa@m17n.org>
17410
17411 * xdisp.c (handle_auto_composed_prop): Check if the last
17412 characters of auto-composed region is newly composed with the
17413 following characters.
17414 (handle_composition_prop): Fix checking of point being inside
17415 composition.
17416
174172008-02-01 Kenichi Handa <handa@m17n.org>
17418
17419 * fns.c (concat): Don't change multibyteness of the result by
17420 concatenating an 8-bit character.
17421
17422 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
17423 multibyteness of the result when newelt is an 8-bit character.
17424
174252008-02-01 Dave Love <fx@gnu.org>
17426
17427 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
17428 EMACS_INT.
17429
17430 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
17431
17432 * xfaces.c (face_numeric_value): Declare dim size_t.
17433 (Finternal_lisp_face_equal_p): Remove unused f.
17434
17435 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
17436 (MATRIX_ROW): Remove unused vars.
17437 (draw_glyphs, x_insert_glyphs, fast_find_position)
17438 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
17439 byte/char counts.
17440
17441 * regex.c (regex_compile): Remove unused var.
17442
17443 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
17444
17445 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
17446 (Faccessible_keymaps, where_is_internal): Remove unused vars.
17447
17448 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
17449
17450 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
17451
17452 * fileio.c (Fwrite_region): Remove unused var.
17453
17454 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
17455 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
17456
17457 * composite.c (Fremove_list_of_text_properties): Declare.
17458
17459 * coding.c (inhibit_pre_post_conversion): Remove (unused).
17460 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
17461 (coding_inherit_eol_type): Remove unused attrs.
17462 (detect_coding): Cast arg of detect_eol.
17463
17464 * charset.c (syms_of_charset): Remove unused var p.
17465 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
17466 byte/char counts.
17467
17468 * casetab.c (set_case_table): Remove unused var.
17469
17470 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
17471 unused vars.
17472
174732008-02-01 Dave Love <fx@gnu.org>
17474
17475 * xterm.c (x_bitmap_mask): Declare.
17476
174772008-02-01 Dave Love <fx@gnu.org>
17478
17479 * xterm.c (x_term_init): Fix type error.
17480
17481 * lisp.h: Add Funibyte_char_to_multibyte.
17482
17483 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
17484 (Fset_coding_system_priority): Doc fix.
17485
17486 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
17487
17488 * indent.c (check_composition): Make start and end EMACS_INT.
17489
17490 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
17491
17492 * xdisp.c (handle_composition_prop, check_point_in_composition):
17493 Make buffer positions EMACS_INT.
17494
17495 * composite.c (find_composition, run_composition_function)
17496 (update_compositions, Ffind_composition_internal): Make buffer
17497 positions EMACS_INT.
17498
17499 * composite.h (find_composition, update_compositions): Make
17500 position args EMACS_INT.
17501
17502 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
17503
17504 * intervals.c (get_property_and_range):
17505 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
17506
17507 * unexalpha.c: Don't include varargs.h.
17508
175092008-02-01 Dave Love <fx@gnu.org>
17510
17511 * coding.h (ENCODE_UTF_8): New.
17512
17513 * Makefile.in (gtkutil.o): Depend on coding.h.
17514
17515 * coding.c (Fset_coding_system_priority): Doc fix.
17516
175172008-02-01 Kenichi Handa <handa@m17n.org>
17518
17519 * fileio.c (Finsert_file_contents): Call setup_coding_system in
17520 the case of auto saving.
17521
175222008-02-01 Andreas Schwab <schwab@suse.de>
17523
17524 * chartab.c (map_char_table, map_char_table_for_charset): Protect
17525 `range' from GC.
17526
175272008-02-01 Kenichi Handa <handa@m17n.org>
17528
17529 * coding.c (decode_coding_sjis): Check bytes more rigidly.
17530
175312008-02-01 Kenichi Handa <handa@m17n.org>
17532
17533 * fileio.c (choose_write_coding_system): Return a decided coding system.
17534 (Fwrite_region): Set Vlast_coding_system_used to the return value
17535 of choose_write_coding_system.
17536
175372008-02-01 Kenichi Handa <handa@m17n.org>
17538
17539 * charset.c (Fset_charset_priority): Pay attention to duplicated
17540 arguments.
17541
17542 * coding.c (QCcategory): New variable.
17543 (syms_of_coding): Defsym it. Set all elements of
17544 Vcoding_category_table and their symbol values.
17545 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
17546 coding-category-XXX, and coding-category-list.
17547 (Fdefine_coding_system_internal): Add category in the plist.
17548
175492008-02-01 Kenichi Handa <handa@m17n.org>
17550
17551 * callproc.c (Fcall_process): Handle carryover correctly.
17552
17553 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
17554 (raw_text_coding_system): Check NILP (coding_system).
17555 (coding_inherit_eol_type): Check NILP (coding_system) and
17556 NILP (parent).
17557 (consume_chars): Fix for the case of raw-text.
17558
17559 * process.c (read_process_output): Handle carryover correctly.
17560
175612008-02-01 Dave Love <fx@gnu.org>
17562
17563 * regex.c (re_search_2): Fix last change.
17564
175652008-02-01 Kenichi Handa <handa@m17n.org>
17566
17567 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
17568 target_multibyte. Even in a unibyte case, return a converted
17569 multibyte char.
17570 (GET_CHAR_AFTER): New macro.
17571 (PATFETCH): Translate via multibyte char.
17572 (HANDLE_UNIBYTE_RANGE): Delete this macro.
17573 (SETUP_MULTIBYTE_RANGE): New macro.
17574 (regex_compile): Setup compiled code so that its multibyteness
17575 matches that of a target. Fix the handling of "[X-YZ]" using
17576 SETUP_MULTIBYTE_RANGE.
17577 (analyse_first) <charset>: For filling fastmap for all multibyte
17578 characters, don't check by BASE_LEADING_CODE_P.
17579 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
17580 the same as RE_MULTIBYTE_P (bufp) now.
17581 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
17582 (TARGET_CHAR_AND_LENGTH): Delete this macro.
17583 (TRANSLATE_VIA_MULTIBYTE): New macro.
17584 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
17585 It is the same as RE_MULTIBYTE_P (bufp) now.
17586 <exactn>: Translate via multibyte.
17587 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
17588 translate it.
17589 <charset, charset_not>: Fetch a character by
17590 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
17591 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
17592 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
17593 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
17594 by GET_CHAR_AFTER.
17595 (bcmp_translate): Likewise.
17596
17597 * search.c (compile_pattern): Check the member target_multibyte,
17598 not the member multibyte of buf.
17599
17600 * lread.c (read1): While reading a string, set force_singlebyte
17601 and force_multibyte correctly.
17602
17603 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
17604 up of unibyte_to_multibyte_table.
17605
176062008-02-01 Kenichi Handa <handa@m17n.org>
17607
17608 * coding.c (setup_coding_system): If coding has
17609 post-read-conversion or pre-write-conversion, set
17610 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
17611 respectively.
17612 (decode_coding_gap): Run post-read-conversion if any.
17613
17614 * fileio.c (Finsert_file_contents): Even if we read into a
17615 unibyte buffer, check if we must decode the result or not.
17616
176172008-02-01 Kenichi Handa <handa@m17n.org>
17618
17619 * coding.c (make_conversion_work_buffer): Change the work buffer
17620 name to the same one as that of Emacs 21.
17621
176222008-02-01 Kenichi Handa <handa@m17n.org>
17623
17624 * coding.h (make_conversion_work_buffer): Adjust prototype.
17625 (code_conversion_restore): Don't extern it.
17626
17627 * coding.c (detected_mask): Delete unused variable.
17628 (decode_coding_iso_2022): Pay attention to the byte sequence of
17629 CTEXT extended segment, and retain those bytes as is.
17630 (decode_coding_ccl): Delete unused variable `valids'.
17631 (setup_coding_system): Delete unused variable `category'.
17632 (consume_chars): Delete unused variable `category'. Make it work
17633 for non-multibyte case.
17634 (make_conversion_work_buffer): Change argument.
17635 (saved_coding): Delete unused variable.
17636 (code_conversion_restore): Don't check saved_coding->destination.
17637 (code_conversion_save): New function.
17638 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
17639 instead of record_unwind_protect.
17640 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
17641 (detect_coding_system): Delete unused variable `mask'.
17642 (Fdefine_coding_system_internal): Delete unused variable id.
17643
17644 * fileio.c (kill_workbuf_unwind): New function.
17645 (Finsert_file_contents): On replacing, call
17646 make_conversion_work_buffer with correct args, and call
17647 record_unwind_protect with the first arg kill_workbuf_unwind.
17648
17649 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
17650
176512008-02-01 Kenichi Handa <handa@m17n.org>
17652
17653 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
17654 (fontset_add): Fix for the case that TO is less than TO1.
17655 (Ffontset_info): Don't use fallback fontset on checking the
17656 default fontset.
17657 (dump_fontset): New function for debugging.
17658
17659 * coding.c (Fdefine_coding_system_internal): Fix for the case that
17660 coding_type is Qcharset.
17661
176622008-02-01 Kenichi Handa <handa@m17n.org>
17663
17664 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
17665 (map_char_table): Don't inherit the value from the parent on
17666 initializing VAL. Adjust for the above change.
17667
176682008-02-01 Kenichi Handa <handa@m17n.org>
17669
17670 * coding.c (Qsignature, Qendian): Delete these variables.
17671 (syms_of_coding): Don't initialize them.
17672 (CATEGORY_MASK_UTF_16_AUTO): New macro.
17673 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
17674 detect_info->found.
17675 (decode_coding_utf_16): Don't detect BOM here.
17676 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
17677 is NOT utf_16_without_bom.
17678 (setup_coding_system): For a coding system of type utf-16, check
17679 if the attribute :endian is Qbig or not (not nil or not), and set
17680 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
17681 (detect_coding): If coding type is utf-16 and BOM detection is
17682 required, detect it.
17683 (Fdefine_coding_system_internal): For a coding system of type
17684 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
17685
176862008-02-01 Kenichi Handa <handa@m17n.org>
17687
17688 * coding.c (coding_set_source): Fix for the case that the current
17689 buffer is different from coding->src_object.
17690 (decode_coding_object): Don't use the conversion work buffer if
17691 DST_OBJECT is a buffer.
17692
176932008-02-01 Dave Love <fx@gnu.org>
17694
17695 * lread.c (read_emacs_mule_char) [len==2]: Index
17696 emacs_mule_charset correctly.
17697
176982008-02-01 Dave Love <fx@gnu.org>
17699
17700 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
17701 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
17702 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
17703 treated specially.)
17704 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
17705 (detected_mask): Remove Big5 bits.
17706
177072008-02-01 Kenichi Handa <handa@m17n.org>
17708
17709 The following changes are to make the font rescaling facility
17710 compatible with Emacs 21.
17711
17712 * xfaces.c (Vface_font_rescale_alist): Rename from
17713 Vface_resizing_fonts.
17714 (struct font_name): Rename member resizing_ratio to rescale_ratio.
17715 (font_rescale_ratio): Rename from font_resizing_ratio.
17716 (split_font_name): Set font->rescale_ratio.
17717 (better_font_p): Pay attention to font->rescale_ratio.
17718 (build_scalable_font_name): Likewise. Change RESX, and RESY
17719 fields.
17720 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
17721
177222008-02-01 Kenichi Handa <handa@m17n.org>
17723
17724 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
17725 (Qutf_16_le): Remove these variables.
17726 (syms_of_coding): Don't DEFSYM them.
17727 (decode_coding_utf_16): Fix handling of BOM.
17728 (encode_coding_utf_16): Fix handling of BOM.
17729
177302008-02-01 Kenichi Handa <handa@m17n.org>
17731
17732 * fileio.c (Finsert_file_contents): On replacing, before decoding
17733 the file into the work buffer, set point of the work buffer to the end.
17734
177352008-02-01 Dave Love <fx@gnu.org>
17736
17737 * coding.c (Fcheck_coding_systems_region): Fix type errors.
17738
177392008-02-01 Dave Love <fx@gnu.org>
17740
17741 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
17742 and fix C types.
17743
177442008-02-01 Kenichi Handa <handa@m17n.org>
17745
17746 * xdisp.c (SKIP_GLYPHS): New macro.
17747 (set_cursor_from_row): Pay attention to string display properties.
17748
17749 * category.c (copy_category_entry): Fix for the case that RANGE
17750 is an integer.
17751
17752 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
17753
17754 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
17755
177562008-02-01 Kenichi Handa <handa@m17n.org>
17757
17758 * charset.c (Fcharset_id_internal): New function.
17759 (syms_of_charset): Defsubr it.
17760
17761 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
17762 with the last arg charset_list acquired from coding.
17763 (Fdefine_coding_system_internal): For ccl-based coding system, fix
17764 the attribute coding_attr_ccl_valids.
17765
17766 * coding.h (enum define_coding_ccl_arg_index): Set the first
17767 member coding_arg_ccl_decoder to coding_arg_max.
17768
17769 * ccl.h (ccl_driver): Adjust prototype.
17770
17771 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
17772 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 17773 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
17774 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
17775 last arg Qnil.
17776
177772008-02-01 Kenichi Handa <handa@m17n.org>
17778
17779 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
17780 call encode_char.
17781
17782 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
17783
177842008-02-01 Dave Love <fx@gnu.org>
17785
17786 * composite.c (syms_of_composite): Make composition_hash_table weak.
17787
177882008-02-01 Kenichi Handa <handa@m17n.org>
17789
17790 * dispextern.h (check_face_attributes, generate_ascii_font_name)
17791 (font_name_registry): Don't extern them.
17792 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
17793
17794 * fontset.h (Qfontset): Don't extern it.
17795 (new_fontset_from_font_name): Extern it.
17796
17797 * fontset.c: Give 8 extra slots to fontset objects.
17798 (Qfontset_info): New variable.
17799 (syms_of_fontset): Defsym it.
17800 (FONTSET_FALLBACK): New macro.
17801 (fontset_face): Try also the default fontset.
17802 (make_fontset): Realize a fallback fontset from the default fontset.
17803 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
17804 using split_font_name_into_vector and build_font_name_from_vector.
17805 (Fset_fontset_font): Access the elements of font_spec by enum
17806 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
17807 name by using split_font_name_into_vector.
17808 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
17809 generate a proper font name from the fontset name. Update
17810 Vfontset_alias_alist.
17811 (n_auto_fontsets): New variable.
17812 (new_fontset_from_font_name): New function.
17813 (Ffont_info): Store the information about fonts generated from the
17814 default fontset in the first extra slot of the returned char-table.
17815
17816 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
17817 (font_name_registry): Delete function.
17818 (split_font_name_into_vector): New function.
17819 (build_font_name_from_vector): New function.
17820 (font_list): The argument REGISTRY is now a list of registry names.
17821 (choose_face_font): If we are choosing an ASCII font, and ATTRS
17822 specifies an explicit font name, return the name as is. Make a
17823 list of registy names.
17824
17825 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
17826 of x_new_fontset.
17827 (Fx_create_frame): Don't call x_new_fontset here. Just use
17828 x_list_fonts to check the existence of fonts.
17829
17830 * xterm.h (x_new_fontset): Adjust prototype.
17831
17832 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
17833 string. Use new_fontset_from_font_name to create a fontset from a
17834 font name.
17835
178362008-02-01 Kenichi Handa <handa@m17n.org>
17837
17838 * syntax.c (Vfind_word_boundary_function_table): New name for
17839 Vnext_word_boundary_function_table.
17840 (find-word-boundary-function-table): New name for
17841 next-word-boundary-function-table.
17842
178432008-02-01 Dave Love <fx@gnu.org>
17844
17845 * Makefile.in: Fix some dependencies.
17846
17847 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
17848 set it to nil before returning.
17849
17850 * composite.c (update_compositions): Fix type error.
17851
17852 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
17853
178542008-02-01 Kenichi Handa <handa@m17n.org>
17855
17856 * xterm.c (x_new_font): Optimize for the case that the font is
17857 already set for the frame.
17858
178592008-02-01 Kenichi Handa <handa@m17n.org>
17860
17861 * chartab.c (char_table_ascii): Check if the char table contents
17862 is sub-char-table or not.
17863 (char_table_set, char_table_set_range): Fix argument to
17864 char_table_ascii.
17865
17866 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
17867 (detect_coding_utf_8, detect_coding_utf_16)
17868 (detect_coding_emacs_mule, detect_coding_iso_2022)
17869 (detect_coding_sjis, detect_coding_big5)
17870 (detect_coding_ccl, detect_coding_charset): Change argument MASK
17871 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
17872 sequence is valid in this coding system. Change callers.
17873 (MAX_ANNOTATION_LENGTH): New macro.
17874 (ADD_ANNOTATION_DATA): New macro.
17875 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
17876 ADD_ANNOTATION_DATA. Change the format of annotation data.
17877 (ADD_CHARSET_DATA): New macro.
17878 (emacs_mule_char): New argument ID. Change callers.
17879 (decode_coding_emacs_mule, decode_coding_iso_2022)
17880 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
17881 Produce charset annotation data in coding->charbuf.
17882 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
17883 to charset annotation data in coding->charbuf.
17884 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
17885 coding->common_flags if the coding system is iso-2022 based and
17886 uses designation.
17887 (produce_composition): Adjust for the new annotation data format.
17888 (produce_charset): New function.
17889 (produce_annotation): Handle charset annotation.
17890 (handle_composition_annotation, handle_charset_annotation): New
17891 functions.
17892 (consume_chars): Handle charset annotation. Utilize the above two
17893 functions.
17894 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
17895 buffer, get the deleted text as a string and set
17896 coding->src_object to that string.
17897 (detect_coding, detect_coding_system): Use the new struct
17898 coding_detection_info.
17899
17900 * coding.h (struct coding_detection_info): New structure.
17901 (struct coding_system): Adjust prototype of the member `detector'.
17902 (CODING_ANNOTATE_CHARSET_MASK): New macro.
17903
179042008-02-01 Kenichi Handa <handa@m17n.org>
17905
17906 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
17907
179082008-02-01 Dave Love <fx@gnu.org>
17909
17910 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
17911 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
17912 to new local and nullify apropos_accumulate before returning.
17913 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
17914
179152008-02-01 Kenichi Handa <handa@m17n.org>
17916
17917 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
17918 correctly.
e3eea1fc 17919
aac0c6e3
MR
179202008-02-01 Dave Love <fx@gnu.org>
17921
17922 * fns.c (Flanginfo): Call synchronize_system_time_locale.
17923
179242008-02-01 Kenichi Handa <handa@m17n.org>
17925
17926 The following changes are to make character composition happen
17927 automatically on displaying.
17928
17929 * Makefile.in (lisp, shortlisp): Add composite.elc.
17930
17931 * composite.h (Qauto_composed, Vauto_composition_function)
17932 (Qauto_composition_function): Extern them.
17933
17934 * composite.c (Vcomposition_function_table)
17935 (Qcomposition_function_table): Delete variables.
17936 (Qauto_composed, Vauto_composition_function)
17937 (Qauto_composition_function): New variables.
17938 (run_composition_function): Don't call
17939 compose-chars-after-function.
17940 (update_compositions): Clear `auto-composed' text property.
17941 (compose_chars_in_text): Delete this function.
17942 (syms_of_composite): Staticpro Qauto_composed and
17943 Qauto_composition_function. Declare Vauto_composition_function as
17944 a Lisp variable.
17945
17946 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
17947
17948 * xdisp.c (it_props): Add an entry for Qauto_composed.
17949 (handle_auto_composed_prop): New function.
17950
17951 * xselect.c (selection_data_to_lisp_data): Don't call
17952 compose_chars_in_text.
17953
179542008-02-01 Dave Love <fx@gnu.org>
17955
17956 * keyboard.c (read_char): Modify checking around use of
17957 Vkeyboard_translate_table.
17958
17959 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
17960 and fix C types.
17961
179622008-02-01 Kenichi Handa <handa@m17n.org>
17963
17964 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
17965 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17966 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
17967 the case that the last byte is '\r' correctly.
17968 (decode_coding): Flush out the unprocessed data correctly.
17969 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
17970
179712008-02-01 Dave Love <fx@gnu.org>
17972
17973 * xterm.c (XTread_socket): Fix changes for defined keysyms.
17974 Add XK_ISO... case.
17975 (xaw_scroll_callback): Revert last change.
17976
179772008-02-01 Kenichi Handa <handa@m17n.org>
17978
17979 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
17980
179812008-02-01 Kenichi Handa <handa@m17n.org>
17982
17983 * xfaces.c (Vface_resizing_fonts): New variable.
17984 (struct font_name): New member `resizing_ratio'.
17985 (font_resizing_ratio): New function.
17986 (split_font_name): Set font->resizing_ratio.
17987 (better_font_p): Pay attention to font->resizing_ratio.
17988 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
17989 RESX, and RESY fields.
17990 (try_alternative_families): Try scalable fonts if
17991 Vscalable_fonts_allowed is not Qt.
17992 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
17993
179942008-02-01 Dave Love <fx@gnu.org>
17995
17996 * xterm.c (xaw_scroll_callback): Cast correctly.
17997
179982008-02-01 Dave Love <fx@gnu.org>
17999
18000 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
18001 (lispy_kana_keys): Comment out.
18002 (make_lispy_event) [XK_kana_A]: Comment out.
18003
18004 * xterm.c (xaw_scroll_callback): Cast call_data.
18005 (XTread_socket): Deal with ASCII keysyms.
18006 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
18007
180082008-02-01 Dave Love <fx@gnu.org>
18009
18010 * xterm.c (Vx_keysym_table): New.
18011 (syms_of_xterm): Initialize it.
18012 (XTread_socket): Use it.
18013 From head: Eliminate incorrect optimization that tried to avoid
18014 decoding the output of X*LookupString.
18015 (x_get_font_repertory): Delete charset declaration.
18016
180172008-02-01 Kenichi Handa <handa@m17n.org>
18018
18019 * coding.c (detect_coding_charset): If only ASCII bytes are found,
18020 return 0.
18021 (Fdefine_coding_system_internal): Setup
18022 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
18023
180242008-02-01 Dave Love <fx@gnu.org>
18025
18026 * coding.c (Fcheck_coding_system): Doc fix.
18027
18028 * editfns.c (Finsert_byte): Return a proper value.
18029
180302008-02-01 Kenichi Handa <handa@m17n.org>
18031
18032 * coding.c (decode_coding): Fix args to translate_chars. Pay
18033 attention to Vstandard_translation_table_for_decode.
18034 (encode_coding): Fix args to translate_chars. Pay attention to
18035 Vstandard_translation_table_for_encode.
18036
18037 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
18038 SINGLE_BYTE_CHAR_P.
18039
18040 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
18041 not by SINGLE_BYTE_CHAR_P.
18042
18043 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
18044 SINGLE_BYTE_CHAR_P.
18045
18046 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
18047 SINGLE_BYTE_CHAR_P.
18048
18049 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
18050 by SINGLE_BYTE_CHAR_P.
18051
18052 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
18053 SINGLE_BYTE_CHAR_P.
18054
180552008-02-01 Dave Love <fx@gnu.org>
18056
18057 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
18058
180592008-02-01 Dave Love <fx@gnu.org>
18060
18061 * fns.c (Flanginfo): Fix typo.
18062
18063 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
18064
180652008-02-01 Kenichi Handa <handa@m17n.org>
18066
18067 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
18068 (detect_coding_emacs_mule, detect_coding_iso_2022)
18069 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
18070 incomplete byte sequence. Don't update *mask when correctly detected.
18071 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
18072 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
18073 (detect_coding, detect_coding_system): Adjust for the changes above.
18074
180752008-02-01 Kenichi Handa <handa@m17n.org>
18076
18077 * character.c (char_string): Rename from
18078 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
18079 (string_char): Rename from string_char.
18080
18081 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
18082 if C is greater than MAX_3_BYTE_CHAR.
18083 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
18084 string_char instead of string_char_with_unification.
18085
180862008-02-01 Dave Love <fx@gnu.org>
18087
18088 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
18089
180902008-02-01 Kenichi Handa <handa@m17n.org>
18091
18092 * keymap.c (push_key_description): Pay attention to force_multibyte.
18093
18094 * regex.c (re_search_2): Fix for the case of unibyte buffer.
18095
180962008-02-01 Dave Love <fx@gnu.org>
18097
18098 * charset.c (define_charset_internal): Rename `supprementary'.
18099
18100 * Makefile.in (lisp, shortlisp): Remove latin-N.
18101
181022008-02-01 Dave Love <fx@gnu.org>
18103
18104 * xfns.c (x_window, x_window): Use use_xim.
18105
18106 * xterm.c (use_xim): Initialize.
18107 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
18108 (x_term_init): Maybe set use_xim.
18109
18110 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
18111
181122008-02-01 Kenichi Handa <handa@m17n.org>
18113
18114 * search.c (search_buffer): Fix case-fold-search of multibyte
18115 characters.
18116 (boyer_moore): Rename the last argument to char_high_bits.
18117
181182008-02-01 Kenichi Handa <handa@m17n.org>
18119
18120 * xdisp.c (display_string): Fix for the case of zero width glyph.
18121
18122 * xfns.c (x_set_font): Change the error message of the case that
18123 x_new_fontset returns Qt.
18124
18125 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
18126 (Finternal_set_lisp_face_attribute): Use signal_error for the
18127 error of invalid fontset.
18128
18129 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
18130 fontset, return Qt.
18131
181322008-02-01 Dave Love <fx@gnu.org>
18133
18134 * unexelf.c (unexec): Make .got handling not SGI-specific.
18135
18136 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
18137
18138 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
18139
18140 * keyboard.c (read_key_sequence): Fix type error.
18141
18142 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
18143 type error.
18144
18145 * fontset.c (fontset_add): Return Lisp_Object.
18146
181472008-02-01 Dave Love <fx@gnu.org>
18148
18149 * charset.h (charset_ordered_list_tick): Declare extern.
18150
181512008-02-01 Kenichi Handa <handa@m17n.org>
18152
18153 The following changes (and some of 2008-02-01 changes of mine) are
18154 for handling syntax, category, and case conversion for unibyte
18155 characters by converting them to multibyte on the fly. With these
18156 changes, we don't have to setup syntax and case tables for unibyte
18157 characters in each language environment.
18158
18159 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
18160 multibyte if necessary.
18161
18162 * bytecode.c (Fbyte_code): Likewise.
18163
18164 * character.h (LEADING_CODE_LATIN_1_MIN)
18165 (LEADING_CODE_LATIN_1_MAX): New macros.
18166 (unibyte_to_multibyte_table): Extern it.
18167 (unibyte_char_to_multibyte): New macro.
18168 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
18169 (CHAR_LEADING_CODE): New macro.
18170 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
18171
18172 * character.c (unibyte_to_multibyte_table): New variable.
18173 (unibyte_char_to_multibyte): Move to character.h and define as macro.
18174 (multibyte_char_to_unibyte): If C is an eight-bit character,
18175 convert it to the corresponding byte value.
18176
18177 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
18178 not 1, signals an error. Update the elements of
18179 unibyte_to_multibyte_table.
18180 (init_charset_once): Initialize unibyte_to_multibyte_table.
18181 (syms_of_charset): Define the charset `iso-8859-1'.
18182
18183 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
18184 as is without converting it to unibyte. In a unibyte buffer,
18185 convert C to multibyte before checking the syntax.
18186
18187 * lisp.h (unibyte_char_to_multibyte): Delete extern.
18188
18189 * minibuf.c (Fminibuffer_complete_word): Use the macro
18190 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
18191
18192 * regex.h (struct re_pattern_buffer): New member target_multibyte.
18193
18194 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
18195 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
18196 that is zero, convert an eight-bit char to multibyte.
18197 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
18198 non-emacs case.
18199 (PATFETCH): Convert an eight-bit char to multibyte.
18200 (HANDLE_UNIBYTE_RANGE): New macro.
18201 (regex_compile): Setup the compiled pattern for multibyte chars
18202 even if the given regex string is unibyte. Use PATFETCH_RAW
18203 instead of PATFETCH in many places. To handle `charset'
18204 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
18205 only for ASCII chars.
18206 (analyse_first) <exactn>: Simplify because the compiled pattern
18207 is multibyte.
18208 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
18209 <charset>: Use CHAR_LEADING_CODE to get leading codes.
18210 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
18211 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
18212 multibyte always 1.
18213 (re_search_2): In emacs, set the locale variable multibyte to 1,
18214 otherwise to 0. New local variable target_multibyte. Check it
18215 to decide the multibyteness of STR1 and STR2. If
18216 target_multibyte is zero, convert unibyte chars to multibyte
18217 before translating and checking fastmap.
18218 (TARGET_CHAR_AND_LENGTH): New macro.
18219 (re_match_2_internal): In emacs, set the locale variable multibyte
18220 to 1, otherwise to 0. New local variable target_multibyte. Check
18221 it to decide the multibyteness of STR1 and STR2. Use
18222 TARGET_CHAR_AND_LENGTH to fetch a character from D.
18223 <charset, charset_not>: If multibyte is nonzero, check fastmap
18224 only for ASCII chars. Call bcmp_translate with
18225 target_multibyte, not with multibyte.
18226 <begline>: Declare the local variable C as `unsigned'.
18227 (bcmp_translate): Change the last arg name to target_multibyte.
18228
18229 * search.c (compile_pattern_1): Don't adjust the multibyteness of
18230 the regexp pattern and the matching target. Set cp->buf.multibyte
18231 to the multibyteness of the regexp pattern. Set
18232 cp->but.target_multibyte to the multibyteness of the matching target.
18233 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
18234 FETCH_STRING_CHAR_ADVANCE.
18235 (Freplace_match): Convert unibyte chars to multibyte.
18236
18237 * syntax.c (char_quoted, back_comment, scan_words)
18238 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
18239 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
18240 unibyte chars to multibyte.
18241 (skip_chars): Delete the arg syntaxp, and move the code for
18242 handling syntaxes to skip_syntaxes. Change callers.
18243 Fix the case that the multibyteness of STRING and the current
18244 buffer doesn't match.
18245 (skip_syntaxes): New function.
18246 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
18247 SINGLE_BYTE_CHAR_P.
18248
182492008-02-01 Kenichi Handa <handa@m17n.org>
18250
18251 * xfaces.c (QCfontset): New variable.
18252 (LFACE_FONTSET): New macro.
18253 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
18254 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
18255 (Finternal_set_lisp_face_attribute)
18256 (Finternal_get_lisp_face_attribute): Handle QCfontset.
18257 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
18258 check also LFACE_FONTSET_INDEX.
18259 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
18260 attrs[LFACE_FONT_INDEX].
18261 (syms_of_xfaces): Intern and staticpro QCfontset.
18262
18263 * dispextern.h (enum lface_attribute_index): New member
18264 LFACE_FONTSET_INDEX.
18265
18266 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
18267
182682008-02-01 Kenichi Handa <handa@m17n.org>
18269
18270 * coding.c (coding_set_destination): Fix coding->destination for
18271 the case converting a region.
18272 (encode_coding_utf_8): Encode eight-bit chars as single byte.
18273 (encode_coding_object): Fix coding->dst_pos and
18274 coding->dst_pos_byte for the case converting a region.
18275
18276 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
18277
18278 * character.h (BYTE8_STRING): New macro.
18279
18280 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
18281
182822008-02-01 Kenichi Handa <handa@m17n.org>
18283
18284 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
18285 characters by octal form.
18286
18287 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
18288
18289 * buffer.h (_fetch_multibyte_char_len): Delete extern.
18290 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
18291 _fetch_multibyte_char_len.
18292 (FETCH_CHAR_AS_MULTIBYTE): New macro.
18293
18294 * casetab.c (set_canon, set_identity, shuffle): Simplify.
18295
18296 * casefiddle.c (casify_object): Simplify. Handle the case that
18297 the case conversion change the byte length.
18298 (casify_region): Likewise.
18299
18300 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
18301
18302 * character.c (_fetch_multibyte_char_len): Delete this variable.
18303 (syms_of_character): Setup Vprintable_chars.
18304
18305 * editfns.c (Fchar_equal): Fix for the unibyte case.
18306 (Finsert_byte): New function.
18307 (syms_of_editfns): Defsubr it.
18308
18309 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
18310 of direct code 0x3ffff.
18311
18312 * search.c (Freplace_match): Fix for the unibyte case.
18313
183142008-02-01 Kenichi Handa <handa@m17n.org>
18315
18316 * lread.c (safe_to_load_p): Fix the logic.
18317
18318 * syntax.c (scan_words): Don't treat characters belonging to
18319 different scripts as constituting a word.
18320
18321 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
18322
18323 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
18324
18325 * emacs.c (main): In the case of --unibyte, instead of aborting on
18326 finding non-empty buffer, make it unibyte.
18327
183282008-02-01 Kenichi Handa <handa@m17n.org>
18329
18330 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
18331 to create a fontset.
18332
183332008-02-01 Dave Love <fx@gnu.org>
18334
18335 * character.c (Funibyte_char_to_multibyte): Doc fix.
18336
18337 * xfns.c [HAVE_STDLIB_H]: Fix last change.
18338
183392008-02-01 Kenichi Handa <handa@m17n.org>
18340
18341 * fontset.c (fontset_add): Make the type `int'.
18342 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
18343
18344 * character.c (unibyte_char_to_multibyte)
18345 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
18346 charset_unibyte, not charset_primary.
18347
18348 * charset.h (charset_unibyte): Extern it instead of charset_primary.
18349
18350 * charset.c (charset_unibyte): Rename from charset_primary.
18351 (Funibyte_charset): Rename from Fprimary_charset.
18352 (Fset_unibyte_charset): Rename from Fset_primary_charset.
18353 (syms_of_charset): Adjust for the above changes.
18354
18355 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
18356 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
18357 it->multibyte_p is zero.
18358
18359 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
18360 Delete extern.
18361
183622008-02-01 Kenichi Handa <handa@m17n.org>
18363
18364 * coding.c (Fdefine_coding_system_internal): Fix category setting
18365 for a coding system of type iso-2022.
18366
183672008-02-01 Kenichi Handa <handa@m17n.org>
18368
18369 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
18370
183712008-02-01 Kenichi Handa <handa@m17n.org>
18372
18373 * syntax.c (Vnext_word_boundary_function_table): New variable.
18374 (next-word-boundary-function-table): Declare it as a Lisp variable
18375 in syms_of_syntax.
18376 (scan_words): Call functions in Vnext_word_boundary_function_table
18377 if any.
18378
18379 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
18380
18381 * fontset.c (fs_load_font): If fontp->charset is not negative,
18382 return fontp without setting its members.
18383
183842008-02-01 Dave Love <fx@gnu.org>
18385
18386 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
18387
18388 * m/sparc.h (HAVE_ALLOCA): Delete.
18389
18390 * s/irix6-5.h: Don't include strings.h.
18391 (bcopy, bzero, bcmp): Don't undef.
18392
18393 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
18394
18395 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
18396 (TIOCSIGSEND): Don't test IRIX6.
18397 (bcopy, bzero, bcmp): Define conditionally.
18398
183992008-02-01 Kenichi Handa <handa@m17n.org>
18400
18401 * buffer.c (Qas, Qmake, Qto): New variables.
18402 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
18403 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
18404
18405 * callproc.c (Fcall_process): Don't call insert_1_both directly if
18406 we are inserting a process output into a multibyte buffer.
18407
18408 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
18409 multibyte_char_to_unibyte.
18410
18411 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
18412 by the primary charset, make it eight-bit char.
18413 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
18414
18415 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
18416 (charset_8_bit__control, charset_8_bit_graphic)
18417 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
18418 (define_charset_internal): New function.
18419 (syms_of_charset): Call define_charset_internal for pre-defined
18420 charsets.
18421
18422 * charset.h (charset_8_bit): Extern it.
18423
18424 * coding.c (make_conversion_work_buffer): Adjust for the change
18425 of Fset_buffer_multibyte.
18426 (encode_coding_raw_text): Increment p0 in the loop.
18427
18428 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
18429
18430 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
18431 for the change of Fset_buffer_multibyte.
18432
18433 * fns.c (Fstring_to_multibyte): New function.
18434 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
18435
184362008-02-01 Dave Love <fx@gnu.org>
18437
18438 * xfns.c (x_put_x_image): Declare args.
18439
18440 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
18441 (try_font_list): Declare an arg.
18442
18443 * xdisp.c (message2_nolog, set_message): Declare an arg.
18444
18445 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
18446
18447 * syntax.c (scan_sexps_forward): Declare an arg.
18448
18449 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
18450 Declare an arg.
18451
18452 * lisp.h (Fnew_fontset): Declare.
18453
18454 * keymap.c (push_key_description): Call CHARACTERP correctly.
18455
18456 * fontset.c (fontset_add): Declare args. Call make_number correctly.
18457 (face_for_char): Delete unused vars.
18458 (Fset_fontset_font): Doc fix. Delete unused vars.
18459
18460 * doc.c (Fsubstitute_command_keys): Delete unused vars.
18461
18462 * composite.c (update_compositions): Declare arg.
18463
18464 * cm.c (calccost, cmgoto): Declare args.
18465
18466 * charset.c: Remove `emacs' conditional. Doc fixes.
18467 (map_char_table_for_charset): Declare.
18468
18469 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
18470
18471 * ccl.c: Remove `emacs' conditional.
18472
184732008-02-01 Kenichi Handa <handa@m17n.org>
18474
18475 The following changes are to allow specifying multiple font
18476 patterns for a character range (specified by script or charset).
18477
18478 * Makefile.in (abbrev.o): Depend on syntax.h.
18479 (xfaces.o): Depend on charset.h.
18480
18481 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
18482 SINGLE_BYTE_CHAR_P.
18483
18484 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
18485
18486 * character.h (Vchar_script_table): Extern it.
18487
18488 * character.c (Vscript_alist): Delete.
18489 (Vchar_script_table, Qchar_script_table): New variable.
18490 (syms_of_character): Declare Vchar_script_table as a lisp variable
18491 and initialize it.
18492
18493 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
18494 have property char-table-extra-slots, make no extra slot.
18495
18496 * dispextern.h (struct face): Delete member `charset'.
18497 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
18498 SINGLE_BYTE_CHAR_P.
18499 (choose_face_font, lookup_non_ascii_face, font_name_registry):
18500 Add prototypes.
18501 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
18502 (generate_ascii_font_name): Rename from generate_ascii_font.
18503
18504 * fontset.h (get_font_repertory_func): New prototype.
18505 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
18506 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
18507
18508 * fontset.c (Qprepend, Qappend): New variables.
18509 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
18510 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
18511 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
18512 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
18513 (fontset_ref_and_range, fontset_add, reorder_font_vector)
18514 (load_font_get_repertory): New functions.
18515 (fontset_set): Delete.
18516 (fontset_face): New arg FACE. Return face ID, not face.
18517 Complete re-write to handle new fontset structure. Change caller.
18518 (free_face_fontset): Use ASET istead of AREF (X) = Y.
18519 (face_for_char): Don't call lookup_face.
18520 (make_fontset_for_ascii_face): New arg FACE.
18521 (fs_load_font): New arg CHARSET_ID. Don't check
18522 Vfont_encoding_alist here.
18523 (find_font_encoding): New function.
18524 (list_fontsets): Use STRINGP, not ! NILP.
18525 (accumulate_script_ranges): New function.
18526 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
18527 re-written to handle new fontset structure.
18528 (Ffontset_font): Return a copy of element.
18529 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
18530 docstring of font-encoding-alist.
18531
18532 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
18533 (Fset_fotset_font): Fix arguments to 5.
18534
18535 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
18536
18537 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
18538 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
18539 (highlight_trailing_whitespace): Adjust for the change of
18540 lookup_named_face.
18541
18542 * xfaces.c: Include charset.h.
18543 (load_face_font): Delete argument C. Change caller.
18544 (generate_ascii_font_name): Rename from generate_ascii_font.
18545 (font_name_registry): New function.
18546 (cache_face): Store ascii faces before non-ascii faces in buckets.
18547 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
18548 Lookup only ascii faces.
18549 (lookup_non_ascii_face): New function.
18550 (lookup_named_face): Delete argument C. Change caller.
18551 (lookup_derived_face): Delete argument C. Change caller.
18552 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
18553 a string, just call font_list with it.
18554 (choose_face_font): Delete arguments FACE and C. New arg
18555 FONT_SPEC. Change caller.
18556 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
18557 Change caller.
18558 (realize_non_ascii_face): New function.
18559 (realize_x_face): Call load_face_font here.
18560 (realize_tty_face): Delete argument C. Change caller.
18561 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
18562 get a face ID.
18563 (dump_realized_face): Don't print charset of FACE.
18564
18565 * xfns.c (x_set_font): Always call x_new_fontset and
18566 store_frame_parameter.
18567 (Fx_create_frame): Call x_new_fontset, not x_new_font.
18568 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
18569
18570 * xterm.h (x_get_font_repertory): Extern it.
18571
18572 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
18573 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
18574 it->multibyte_p is zero.
18575 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
18576 (x_new_fontset): If FONTSETNAME doesn't match any existing
18577 fontsets, create a new one.
18578 (x_get_font_repertory): New function.
18579
185802008-02-01 Kenichi Handa <handa@m17n.org>
18581
18582 * coding.c (Ffind_coding_systems_region_internal): Detect an
18583 ASCII only string correctly.
18584
18585 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
18586 version is 0.
18587
185882008-02-01 Kenichi Handa <handa@m17n.org>
18589
18590 * lread.c: Include "coding.h".
18591 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
18592 (load_each_byte, unread_char): New variables.
18593 (readchar_backlog): Delete.
18594 (readchar): Return a character unless load_each_byte is nonzero.
18595 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
18596 cons. If unread_char is not -1, simply return it.
18597 (unreadchar): Handle the case that readcharfun is
18598 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
18599 (read_multibyte): Delete.
18600 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
18601 (read_emacs_mule_char): New functions.
18602 (Fload): Even if the file doesn't have the extension ".elc", if
18603 safe_to_load_p returns a positive version number, assume that the
18604 file contains bytecompiled code. If the version is less than 22,
18605 load the file while decoding multibyte sequences by emacs-mule.
18606 (readevalloop): Don't use readchar_backlog.
18607 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
18608 (Fread_from_string): Pay attention to the case that STREAM is a cons.
18609 (read_escape): Delete the arg BYTEREP.
18610 (read1): Set load_each_byte to 1 temporarily while handling
18611 #@NUMBER. Don't call read_multibyte.
18612 (read_vector): Call Fread with a cons. If readcharfun is
18613 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
18614 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
18615 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
18616 and Qload_force_doc_strings.
18617
186182008-02-01 Kenichi Handa <handa@m17n.org>
18619
18620 * xdisp.c (face_before_or_after_it_pos): Call
18621 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
18622
186232008-02-01 Kenichi Handa <handa@m17n.org>
18624
18625 * character.h (TRAILING_CODE_P): New macro.
18626 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
18627 (string_char_with_unification): Fix prototype.
18628 (Vscript_alist): Extern it.
18629
18630 * character.c (Vscript_alist): New variable.
18631 (string_char_with_unification, str_as_unibyte)
18632 (string_escape_byte8): Add `const' to local variables.
18633 (syms_of_character): Declare script-alist as a Lisp variable.
18634
18635 * charset.h (Vcharset_ordered_list): Extern it.
18636 (charset_ordered_list_tick): Extern it.
18637 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
18638 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
18639 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
18640 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
18641 (Funify_charset): Adjust for the change of Funify_charset.
18642
18643 * charset.c (charset_ordered_list_tick): New variable.
18644 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
18645 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
18646 deunify intead of unify a charset.
18647 (string_xstring_p): Add `const' to local variables.
18648 (find_charsets_in_text): Add `const' to arguments and local variables.
18649 (encode_char): Adjust for the change of Funify_charset. Fix
18650 detecting of invalid code.
18651 (Fset_charset_priority): Increment charset_ordered_list_tick.
18652 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
18653 and TO_CODE.
18654
18655 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
18656 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
18657 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
18658 (decode_coding_ccl, consume_chars)
18659 (Ffind_coding_systems_region_internal)
18660 (Fcheck_coding_systems_region): Add `const' to local variables.
18661
18662 * print.c (print_object): Use octal form for printing the
18663 contents of a bool vector.
18664
186652008-02-01 Dave Love <fx@gnu.org>
18666
18667 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
18668 <version == 20>: Refuse to load.
18669
186702008-02-01 Dave Love <fx@gnu.org>
18671
18672 * fns.c: Move coding.h.
18673 (Qcodeset, Qdays, Qmonths): New.
18674 (concat): Use CHARACTERP instead of INTEGERP.
18675 (Flocale_codeset): Delete.
18676 (Flanginfo): New function.
18677 (syms_of_fns): Change accordingly.
18678
18679 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
18680
186812008-02-01 Dave Love <fx@gnu.org>
18682
18683 * casetab.c (init_casetab_once, init_casetab_once): Fix
18684 CHAR_TABLE_SET call.
18685
18686 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
18687
18688 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
18689
18690 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
18691 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
18692 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
18693
18694 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
18695
18696 * coding.c (ENCODE_DESIGNATION, decode_eol)
18697 (make_conversion_work_buffer, code_conversion_restore)
18698 (Fdefine_coding_system_internal): Convert Lisp types.
18699 (code_conversion_restore): Use EQ, not ==.
18700 (Fencode_coding_string): Fix code_convert_string call.
18701
18702 * coding.h (code_convert_region): Fix prototype.
18703
18704 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
18705
18706 * fontset.c (fontset_ref, fontset_set, fs_load_font)
18707 (Ffontset_info): Convert Lisp types.
18708
18709 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
18710
18711 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
18712
18713 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
18714
18715 * chartab.c: Include "...h", not <...h> in some cases.
18716
18717 * callproc.c (Fcall_process): Remove unused variables.
18718
187192008-02-01 Dave Love <fx@gnu.org>
18720
18721 * coding.c (Fset_coding_system_priority): Allow null arg list.
18722
187232008-02-01 Dave Love <fx@gnu.org>
18724
18725 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
18726 (Fself_insert_and_exit): Use CHARACTERP.
18727
18728 * callproc.c (Fcall_process): Remove unused vars.
18729
18730 * xterm.c (XTread_socket): Add extra dead keysyms.
18731
18732 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
18733
18734 * dispextern.h: Remove prototypes for redraw_frame,
18735 redraw_garbaged_frames.
18736
18737 * cmds.c (Fself_insert_command): Use CHARACTERP.
18738
18739 * chartab.c (make_sub_char_table): Remove unused var.
18740 (Fset_char_table_default, Fmap_char_table): Doc fix.
18741
18742 * keymap.c (access_keymap): Remove generic char code.
18743 (push_key_description): Use CHARACTERP.
18744
187452008-02-01 Dave Love <fx@gnu.org>
18746
18747 * charset.c: Doc fixes.
18748 (Funify_charset): Extra checking.
18749
187502008-02-01 Dave Love <fx@gnu.org>
18751
18752 * lread.c: Remove some unused variables.
18753 (safe_to_load_p): If safe, return the magic number version byte.
18754 (Fload): Maybe use load-with-code-conversion.
18755
187562008-02-01 Kenichi Handa <handa@m17n.org>
18757
18758 * category.c (Fmodify_category_entry): Don't modify the contents
18759 of category_set for characters out of the range. Avoid
18760 unnecessary modification.
18761
18762 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
18763 Vchar_unify_table. The default value of the table is now nil.
18764
18765 * character.c (syms_of_character): Setup Vchar_width_table for
18766 eight-bit-control and raw-byte chars.
18767
18768 * charset.h (enum define_charset_arg_index): Delete
18769 charset_arg_parents and add charset_arg_subset and
18770 charset_arg_superset.
18771 (enum charset_attr_index): Delete charset_parents and add
18772 charset_subset and charset_superset.
18773 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
18774 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
18775 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
18776 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
18777 (CHARSET_SUPERSET): New macros.
18778 (charset_work): Extern it.
18779 (ENCODE_CHAR): Use charset_work.
18780 (CHAR_CHARSET_P): Adjust for the change of encoder format.
18781 (map_charset_chars): Extern it.
18782
18783 * charset.c (load_charset_map): Set the default value of encoder
18784 and deunifier char-tables to nil.
18785 (map_charset_chars): Change argument. Change callers. Use
18786 map_char_table_for_charset instead of map_char_table.
18787 (Fmap_charset_chars): New optional args from_code and to_code.
18788 (Fdefine_charset_internal): Adjust for the change of
18789 `define-charset' (:parents -> :subset or :superset).
18790 (charset_work): New variable.
18791 (encode_char, syms_of_charset): Adjust for the change of
18792 Fdefine_charset_internal.
18793 (Ffind_charset_string): Setup the vector `charsets' correctly.
18794
18795 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
18796 the previous change.
18797 (char_table_ref_and_range): Adjust for the above change.
18798 (map_sub_char_table_for_charset): New function.
18799 (map_char_table_for_charset): New function.
18800
18801 * keymap.c (describe_vector): Handle a char-table directly here.
18802 (describe_char_table): Delete.
18803
18804 * lisp.h (map_charset_chars): Delete.
18805
188062008-02-01 Dave Love <fx@gnu.org>
18807
18808 * fns.c (count_combining): Comment out (unused).
18809 (Flocale_codeset): New.
18810 (syms_of_fns): Defsubr it.
18811
18812 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
18813 (size_t): Remove.
18814
188152008-02-01 Dave Love <fx@gnu.org>
18816
18817 * Makefile.in (chartab.o): Depend on charset.h.
18818
188192008-02-01 Kenichi Handa <handa@m17n.org>
18820
18821 * character.c (syms_of_character): Set the default value of
18822 Vprintable_chars to Qnil.
18823
188242008-02-01 Dave Love <fx@gnu.org>
18825
18826 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
18827
188282008-02-01 Kenichi Handa <handa@m17n.org>
18829
18830 * charset.c (load_charset_map): Handle the case that from < to
18831 correctly.
18832
18833 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
18834 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
18835 Pay attention to raw-8-bit chars.
18836
188372008-02-01 Kenichi Handa <handa@m17n.org>
18838
18839 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
18840 It is not bytecompiled now.
18841
18842 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
18843 (charset_jisx0208): New variables.
18844 (Fdefine_charset_internal): Setup them if appropriate.
18845 (init_charset_once): Initialize them to -1.
18846
18847 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
18848 (charset_jisx0208): Extern them.
18849
18850 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
18851 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
18852 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
18853 (setup_iso_safe_charsets): Fix arguments to Fassq.
18854 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
18855 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
18856 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
18857 (encode_coding_iso_2022): Change the 1st arg to
18858 ENCODE_ISO_CHARACTER to a variable.
18859
188602008-02-01 Kenichi Handa <handa@m17n.org>
18861
18862 * charset.h (enum define_charset_arg_index): New enums
18863 charset_arg_min_code and charset_arg_max_code.
18864 (struct charset): New member char_index_offset.
18865
18866 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
18867 Take charset->char_index_offset into account.
18868 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
18869 args[charset_arg_max_code]. Setup charset.char_index_offset.
18870 (syms_of_charset): Fix args to Fdefine_charset_internal.
18871
188722008-02-01 Dave Love <fx@gnu.org>
18873
18874 * coding.c (decode_coding_utf_8): Reject overlong sequences.
18875
188762008-02-01 Dave Love <fx@gnu.org>
18877
18878 * coding.c: Doc fixes.
18879 (Fcoding_system_aliases): Fix return value.
18880 (Qmac): Remove (duplicated) definition.
18881
188822008-02-01 Dave Love <fx@gnu.org>
18883
362654a6
JB
18884 * charset.c (Fcharset_priority_list, Fset_charset_priority):
18885 New functions.
aac0c6e3
MR
18886
18887 * character.c (Fstring): Doc fix.
18888
18889 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
18890
362654a6 18891 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
18892 (font-encoding-alist): Doc fix.
18893
188942008-02-01 Dave Love <fx@gnu.org>
18895
18896 * term.c (costs_set): Declare static, non-initialized for pcc.
18897 (encode_terminal_code): Remove unused var.
18898
18899 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
18900 for K&R.
18901
18902 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
18903
18904 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
18905 (suffixes): Move out of make_subsidiaries for K&R.
18906
18907 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
18908
18909 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
18910
189112008-02-01 Dave Love <fx@gnu.org>
18912
18913 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
18914
18915 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
18916
189172008-02-01 Yong Lu <lyongu@asia-infonet.com>
18918
18919 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
18920
18921 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
18922
189232008-02-01 Kenichi Handa <handa@m17n.org>
18924
18925 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
18926 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
18927
189282008-02-01 Kenichi Handa <handa@m17n.org>
18929
18930 * coding.c (decode_coding_charset): Adjust for the change of
18931 Fdefine_coding_system_internal.
18932 (Fdefine_coding_system_internal): For a coding system of
18933 `charset' type, store a list of charset IDs in
18934 `charset_attr_charset_valids' element of coding attributes.
18935
189362008-02-01 Kenichi Handa <handa@m17n.org>
18937
18938 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
18939 (emacs_mule_char): New arg src. Delete arg `composition'. Change
18940 caller. Handle 2-byte and 3-byte charsets correctly.
18941 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
18942 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
18943 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
18944 (DECODE_EMACS_MULE_21_COMPOSITION): Call
18945 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
18946 sequence.
18947 (decode_coding_emacs_mule): Handle composition correctly. Rewind
18948 `src' and `consumed_chars' correctly before calling emacs_mule_char.
18949 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
18950 and alt&rule composition.
18951 (decode_coding_iso_2022): Handle composition correctly.
18952 (init_coding_once): Setup emacs_mule_bytes for private charsets.
18953
18954 * charset.c (Fdefine_charset_internal): Fix bug for the case of
18955 re-defining a charset. If the charset has :emacs-mule-id, setup
18956 emacs_mule_bytes.
18957 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
18958
189592008-02-01 Kenichi Handa <handa@m17n.org>
18960
18961 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
18962 (encode_coding_big5, encode_coding_charset): If coding requires safe
18963 encoding, produce a character specified by
18964 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
18965
189662008-02-01 Dave Love <fx@gnu.org>
18967
18968 * xterm.c (XSetIMValues): Declare.
18969
18970 * process.c: Conditionally include sys/wait.h, pty.h.
18971
18972 * print.c (print_object): Fix print format for 64-bit systems.
18973
18974 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
18975
18976 * buffer.c (emacs_strerror): Declare.
18977
18978 * fontset.c (Fclear_face_cache): Declare.
18979 (accumulate_font_info): Comment-out (unused).
18980 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
18981 variables.
18982
18983 * character.h (string_escape_byte8): Declare.
18984
18985 * charset.c (load_charset_map, load_charset_map_from_file): Remove
18986 unused vars.
18987 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
18988 (Fmap_charset_chars): Doc fix.
18989
18990 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
18991 (Fset_coding_system_priority, Fset_coding_system_priority)
18992 (Fdefine_coding_system_internal): Doc fix.
18993
189942008-02-01 Dave Love <fx@gnu.org>
18995
18996 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
18997
189982008-02-01 Kenichi Handa <handa@m17n.org>
18999
19000 * character.c (string_escape_byte8): Make multibyte string with
19001 correct size.
19002
19003 * charset.c (Fmake_char): Delete unnecessary code.
19004
190052008-02-01 Kenichi Handa <handa@m17n.org>
19006
19007 * xfns.c (x_encode_text): Allocate coding.destination here, and
19008 call encode_coding_object with dst_object Qnil.
19009
19010 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
19011 multibyte form correctly.
19012
19013 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
19014 against Vfont_encoding_alist.
19015
19016 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
19017 handling of charset list.
19018 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
19019 (decode_coding_object): Move point to coding->dst_pos before
19020 calling post-read-conversion function.
19021 (encode_coding_object): Give correct arguments to
19022 pre-write-conversion. Ignore the return value of
19023 pre-write-conversion function. Pay attention to the case that
19024 pre-write-conversion changes the current buffer. If dst_object is
19025 Qt, even if coding->src_bytes is zero, allocate at least one byte
19026 to coding->destination.
19027
19028 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
19029
19030 * charset.c (Fmake_char): Make it more backward compatible.
19031 (Fmap_charset_chars): Fix docstring.
19032
190332008-02-01 Dave Love <fx@gnu.org>
19034
19035 * coding.c: Doc fixes.
19036 (Fdefine_coding_system_alias): Use names, not symbols, in
19037 coding-system-alist.
19038
190392008-02-01 Kenichi Handa <handa@m17n.org>
19040
19041 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
19042 of calling free_realized_face.
19043
190442008-02-01 Yong Lu <lyongu@asia-infonet.com>
19045
19046 * charset.c (read_hex): Don't treat SPC as a comment starter.
19047 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
19048 (Fdecode_char): Fix typo.
19049
190502008-02-01 Kenichi Handa <handa@m17n.org>
19051
19052 * charset.h (struct charset): New member `code_space_mask'.
19053
19054 * coding.c (coding_set_source): Delete the local variable beg_byte.
19055 (encode_coding_charset, Fdefine_coding_system_internal):
19056 Delete the local variable charset.
19057 (Fdefine_coding_system_internal): Setup
19058 attrs[coding_attr_charset_valids] correctly.
19059
19060 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
19061 member to check if CODE is valid or not.
19062 (Fdefine_charset_internal): Initialize `code_space_mask' member.
19063 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
19064 is within the range of charset->min_code and carset->max_code.
19065
190662008-02-01 Dave Love <fx@gnu.org>
19067
19068 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
19069
19070 * dispextern.h (generate_ascii_font): Fix return type.
19071
19072 * xfaces.c (generate_ascii_font): Fix arg declaration.
19073
19074 * coding.c (coding_inherit_eol_type)
19075 (Fset_terminal_coding_system_internal)
19076 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
19077
190782008-02-01 Kenichi Handa <handa@m17n.org>
19079
19080 * coding.c (decode_coding_charset, encode_coding_charset): Handle
19081 multiple charsets correctly.
19082
190832008-02-01 Kenichi Handa <handa@m17n.org>
19084
19085 * search.c (boyer_moore): Fix handling of multibyte character
19086 translation.
19087
19088 * xdisp.c (display_mode_element): When the variable `elt' is
19089 changed, update `this' and `lisp_string'.
19090
190912008-02-01 Kenichi Handa <handa@m17n.org>
19092
19093 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
19094
19095 * callproc.c (Fcall_process): Be sure to give the current buffer
19096 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
19097
19098 * charset.c (struct charset_map_entries): New struct.
19099 (load_charset_map): Rename from parse_charset_map. New args
19100 entries and n_entries. Change caller.
19101 (load_charset_map_from_file): Rename from load_charset_map.
19102 Change caller. New arg control_flag. Call load_charset_map at
19103 the tail.
19104 (load_charset_map_from_vector): New function.
19105 (Fdefine_charset_internal): Setup charset.compact_codes_p.
19106 (encode_char): If the charset is compact, change a character index
19107 to a code point.
19108
19109 * coding.c (coding_alloc_by_making_gap): Check the case that the
19110 source and destination are the same correctly.
19111 (decode_coding_raw_text): Set coding->consumed_char and
19112 coding->consumed to 0.
19113 (produce_chars): If coding->chars_at_source is nonzero, update
19114 coding->consumed_char and coding->consumed before calling
19115 alloc_destination.
19116 (Fdefine_coding_system_alias): Register ALIAS in
19117 Vcoding_system_alist.
19118 (syms_of_coding): Define `no-conversion' coding system at the tail.
19119
19120 * fileio.c (Finsert_file_contents): Set coding_system instead of
19121 val. If the current buffer is multibyte, always call
19122 decode_coding_gap.
19123
19124 * xfaces.c (try_font_list): Give higher priority to fontset's
19125 family than face's family.
19126
191272008-02-01 Kenichi Handa <handa@m17n.org>
19128
19129 * callproc.c (Fcall_process): Be sure to give the current buffer
19130 to decode_coding_c_string.
19131
19132 * xfaces.c (try_font_list): Give a family specified in a fontset
19133 higher priority than a family specified in a face.
19134
191352008-02-01 Kenichi Handa <handa@m17n.org>
19136
19137 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
19138 Fix arguments to insert_from_buffer.
19139
19140 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
19141
191422008-02-01 Kenichi Handa <handa@m17n.org>
19143
19144 * coding.c (produce_chars): Set the variable `multibytep' correctly.
19145 (decode_coding_gap): Set coding->dst_multibyte correctly.
19146
191472008-02-01 Kenichi Handa <handa@m17n.org>
19148
19149 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
19150 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
19151 (encode_coding_utf_16): Substitute coding->default_char for
19152 non-Unicode characters.
19153 (decode_coding): Don't call record_insert here.
19154 (setup_coding_system): Initialize `surrogate' of
19155 coding->spec.utf_16 to 0.
19156 (EMIT_ONE_BYTE): Fix for multibyte case.
19157
19158 * insdel.c (insert_from_gap): Call record_insert.
19159
191602008-02-01 Kenichi Handa <handa@m17n.org>
19161
19162 * casefiddle.c (casify_region): Fix multibyte case.
19163
19164 * character.c (c_string_width): Add return type `int'.
19165 (char_string_with_unification): Delete arg ADVANCED.
19166
19167 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
19168 (CHAR_STRING): Adjust for the change of char_string_with_unification.
19169 (CHAR_STRING_ADVANCE): Make it do-while statement.
19170
19171 * chartab.c (sub_char_table_set_range): Optimize for the case
19172 DEPTH == 3. Add workaround code for a GCC optimization bug.
19173
19174 * charset.c (parse_charset_map): Remove an unused variable.
19175
19176 * coding.c: Delete unused variables.
19177
19178 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
19179 earlier. If inserted is zero and the coding system doesn't
19180 require flushing, don't call decode_coding_gap.
19181
19182 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
19183
191842008-02-01 Kenichi Handa <handa@m17n.org>
19185
19186 The following changes are for using Unicode as an internal
19187 character model, and use UTF-8 format for buffer/string
19188 representation.
19189
19190 * .gdbinit (xchartable): Adjust for the change of char table structure.
19191 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
19192
19193 * Makefile.in (obj): Add character.o and chartab.o.
19194 (lisp, shortlisp): Remove utf-8.elc.
19195 (*.o): For many files, change dependency on charset.h to
19196 character.h, and add dependency on character.h.
19197 (character.o, chartab.o): New targets.
19198
19199 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
19200 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
19201 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
19202 of "charset.h".
19203
19204 * dired.c, filelock.c: Include "character.h".
19205
19206 * alloc.c: Include "character.h" instead of "charset.h".
19207 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
19208 (syms_of_alloc): Remove defsubr for Smake_char_table.
19209
19210 * buffer.c: Include "character.h" instead of "charset.h", don't
19211 include "coding.h".
19212 (Fset_buffer_multibyte): Adjust for UTF-8.
19213
19214 * buffer.h: EXFUN Fbuffer_live_p.
19215
19216 * callproc.c: Include "character.h" instead of "charset.h".
19217 (Fcall_process): Big change for the new code-conversion APIs.
19218
19219 * casetab.c: Include "character.h" instead of "charset.h".
19220 (set_canon, set_identity, shuffle): Adjust for the new
19221 map_char_table spec.
19222 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
19223 accessing the char table structure.
19224
19225 * chartab.c: New file that implements char table.
19226
19227 * category.c: Include "character.h".
19228 (copy_category_entry): New function.
19229 (copy_category_table): Call map_char_table and copy_category_entry.
19230 (Fmake_category_table): Initialize all top-level slots.
19231 (char_category_set): New function.
19232 (modify_lower_category_set): Delete.
19233 (Fmodify_category_entry): Call char_table_ref_and_range.
19234
19235 * category.h (CATEGORY_SET): Just call char_category_set.
19236
19237 * ccl.c: Include "character.h".
19238 (Qccl, Qcclp): New variables.
19239 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
19240 it's less than 256.
19241 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
19242 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
19243 and DST type.
19244 (ccl_driver): Change types of argument, adjust code accordingly.
19245 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
19246 ccl_driver.
19247 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
19248
19249 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
19250 New members src_multibyte, dst_multibyte, consumed, and produced.
19251 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
19252 (CODING_SPEC_CCL_PROGRAM): New macro.
19253 (ccl_driver): Update prototype.
19254 (Qccl, Qcclp, Fccl_program_p): Extern them.
19255 (CHECK_CCL_PROGRAM): New macro.
19256
19257 * character.c, character.h, chartab.c: New files.
19258
19259 * charset.c: Mostly re-written. Move character and multibyte sequence
19260 handling codes to character.c.
19261
19262 * charset.h: Mostly re-written. Move character and multibyte sequence
19263 handling codes to character.h.
19264
19265 * coding.c, coding.h: Mostly re-written.
19266
19267 * composite.c: Include "character.h" instead of "charset.h".
19268 (CHAR_WIDTH): Move to character.h.
19269 (HASH_KEY, HASH_VALUE): Delete.
19270
19271 * composite.h (enum composition_method): Change order of enumeration
19272 symbols.
19273
19274 * data.c: Include "character.h" instead of "charset.h".
19275 (Faref): Call CHAR_TABLE_REF for a char table.
19276 (Faset): Call CHAR_TABLE_SET for a char table.
19277
19278 * dispextern.h (free_realized_face, check_face_attribytes)
19279 (generate_ascii_font): Extern them.
19280 (free_realized_multibyte_face): Delete extern.
19281
19282 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
19283 table structure.
19284
19285 * editfns.c: Include "character.h" instead of "charset.h".
19286 (Fchar_to_string): Always call CHAR_STRING.
19287
19288 * emacs.c (main): Call init_charset_once, init_charset,
19289 syms_of_chartab, and syms_of_character.
19290
19291 * fileio.c: Include "character.h" instead of "charset.h".
19292 (Finsert_file_contents): Big change for the new code-conversion API.
19293 (choose_write_coding_system, Fwrite_region): Likewise.
19294 (build_annotations_2): Delete.
19295 (e_write): Big change for the new code-conversion API.
19296
19297 * fns.c: Include "character.h" instead of "charset.h".
19298 (copy_sub_char_table): Move to chartab.c.
19299 (Fcopy_sequence): Call copy_char_table for a char table.
19300 (concat): Delete codes calling count_multibyte.
19301 (string_char_to_byte, string_byte_to_char): Adjust for the new
19302 multibyte form.
19303 (internal_equal): Adjust for the change of char table structure.
19304 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
19305 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
19306 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
19307 (char_table_translate, optimize_sub_char_table)
19308 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
19309 chartab.c.
19310 (char_table_ref_and_index): Delete.
19311 (HASH_KEY, HASH_VALUE): Move to lisp.h.
19312 (Fmd5): Call preferred_coding_system instead of accessing
19313 Vcoding_category_list. Adjust for the new code-conversion API.
19314 (syms_of_fns): Move defsubr for char table related functions to
19315 chartab.c.
19316
19317 * fontset.c: Mostly re-written.
19318
19319 * fontset.h (struct font_info): Change type of the member encoding_type.
19320 (enum FONT_SPEC_INDEX): New enum.
19321 (fontset_font_pattern, fs_load_font): Update prototype.
19322 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
19323
19324 * indent.c: Include "character.h" instead of "charset.h".
19325 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
19326
19327 * insdel.c: Include "character.h" instead of "charset.h".
19328 (copy_text): Don't refer to Vnonascii_translation_table.
19329 (insert_from_gap): New function.
19330
19331 * keyboard.c: Include "character.h" instead of "charset.h".
19332 (command_loop_1): Never call direct_output_forward_char before
19333 a non-ASCII character.
19334 (read_char): If Vkeyboard_translate_table is a char table, always
19335 translate a character.
19336
19337 * keymap.c: Include "character.h".
19338 (store_in_keymap): Handle the case that IDX is a cons.
19339 (Fdefine_key): Handle the case that KEY is a cons and the car part
19340 is also a cons (range).
19341 (push_key_description): Adjust for the new character code.
19342 (describe_vector): Call describe_char_table for a char table.
19343 (describe_char_table): New function.
19344
19345 * keymap.h (describe_char_table): Extern it.
19346
19347 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
19348 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
19349 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
19350 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
19351 Delete.
19352 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
19353 structure.
19354 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
19355 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
19356 (CHARTAB_SIZE_BITS_3): New macros.
19357 (chartab_size): Extern it.
19358 (struct Lisp_Char_Table): Re-design.
19359 (struct Lisp_Sub_Char_Table): New structure.
19360 (HASH_KEY, HASH_VALUE): Move from fns.c.
19361 (CHARACTERBITS): Define as 22.
19362 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
19363 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
19364 (GC_SUB_CHAR_TABLE_P): New macro.
19365 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
19366 (code_convert_string_norecord): Deleted extern.
19367 (init_character_once, syms_of_character, init_charset)
19368 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
19369
19370 * lread.c: Include "character.h".
19371 (read_multibyte): New arg NBYTES.
19372 (read_escape): Change the meaning of returned *BYTEREP.
19373 (to_multibyte): Delete.
19374 (read1): Adjust the handling of char table and string.
19375
19376 * print.c: Include "character.h" instead of "charset.h".
19377 (print_string): Convert 8-bit raw bytes to octal form by
19378 string_escape_byte8.
19379 (print_object): Adjust for the new multibyte form. Print 8-bit
19380 raw bytes always in octal form. Handle sub char table correctly.
19381
19382 * process.c: Include "character.h" instead of "charset.h".
19383 (read_process_output, send_process): Adjust for the new
19384 code-conversion API.
19385
19386 * puresize.h (BASE_PURESIZE): Increase.
19387
19388 * regex.c: Include "character.h" instead of "charset.h".
19389 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
19390 (regex_compile): Accept a range whose starting and ending
19391 character have different leading bytes.
19392 (analyse_first): Adjust for the above change.
19393
19394 * search.c: Include "character.h" instead of "charset.h".
19395 (search_buffer, boyer_moore): Adjust for the new multibyte form.
19396 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
19397
19398 * syntax.c: Include "character.h" instead of "charset.h".
19399 (syntax_parent_lookup): Delete.
19400 (Fmodify_syntax_entry): Accept a cons as CHAR.
19401 (skip_chars): Adjust for the new multibyte form.
19402 (init_syntax_once): Call char_table_set_range instead of directly
19403 accessing the structure of a char table.
19404
19405 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
19406 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
19407 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
19408 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
19409
19410 * term.c: Include "buffer.h" and "character.h".
19411 (encode_terminal_code, write_glyphs): Adjust for the new
19412 code-conversion API.
19413 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
19414
19415 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
19416
19417 * xdisp.c: Include "character.h".
19418 (get_next_display_element): Adjust for the new multibyte form.
19419 (disp_char_vector): Adjust for the new char table structure.
19420 (decode_mode_spec_coding): Adjust for the new structure of
19421 coding system.
19422 (decode_mode_spec): Adjust for the new code-conversion API.
19423
19424 * xfaces.c: Include "character.h" instead of "charset.h".
19425 (load_face_font): Adjust for the change of choose_face_font and
19426 FS_LOAD_FONT.
19427 (generate_ascii_font): New function.
19428 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
19429 (set_font_frame_param): Adjust for the change of choose_face_font.
19430 (free_realized_face): Make it public.
19431 (free_realized_faces_for_fontset): Rename from
19432 free_realized_multibyte_face. Free also faces realized for ASCII.
19433 (choose_face_font): Change arguments. Adjust for the change of
19434 fontset_font_pattern and FS_LOAD_FONT.
19435
19436 * xfns.c: Include "character.h".
19437 (x_encode_text): Adjust for the new code-conversion API.
19438
19439 * xselect.c: Don't include "charset.h".
19440 (selection_data_to_lisp_data): Adjust for the new code conversion API.
19441
19442 * xterm.c: Include "character.h".
19443 (x_encode_char): New argument CHARSET. Change caller.
19444 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
19445 Call ENCODE_CHAR instead of SPLIT_CHAR.
19446 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
19447 CHAR_WIDTH instead of CHARSET_WIDTH.
19448 (XTread_socket): Adjust for the new code-conversion API.
19449 (x_new_font): Adjust for the change of FS_LOAD_FONT.
19450 (x_load_font): Adjust for the change of struct font.
19451
194522008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
19453
19454 * xfaces.c (face_at_buffer_position): Remove unused vars.
19455
194562008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19457
19458 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
19459 Fix overflow checking.
19460
194612008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19462
19463 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
19464 Cancel previous change.
19465
194662008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
19467
19468 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
19469 ccl->eight_bit_control. Fix check for buffer overflow.
19470 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
19471 (ccl_driver): Initialize extra_bytes to 0.
19472
194732008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
19474
19475 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
19476 return it ORed with ctrl_modifier.
19477
194782008-01-29 Miles Bader <miles@gnu.org>
19479
19480 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
19481
194822008-01-28 Jason Rumney <jasonr@gnu.org>
19483
19484 * w32.c (stat): Don't double check for networked drive.
19485
194862008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
19487
19488 * window.c (run_window_configuration_change_hook): New function.
19489 Code extracted from set_window_buffer. Set the selected frame.
19490 (set_window_buffer): Use it.
19491 * window.h (run_window_configuration_change_hook): Declare.
19492 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
19493
19494 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
19495
194962008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
19497
19498 * Makefile.in: Remove references to unused macros.
19499
195002008-01-26 Eli Zaretskii <eliz@gnu.org>
19501
19502 * w32.c (g_b_init_get_sid_sub_authority)
19503 (g_b_init_get_sid_sub_authority_count): New static variables.
19504 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
19505 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
19506 (init_user_info): Use them to retrieve uid and gid.
19507 Use 500/513, the Windows defaults, as Administrator's uid/gid.
19508 (fstat): Use pw_uid and pw_gid from the_passwd structure for
19509 st_uid and st_gid of the file.
19510
195112008-01-26 Jason Rumney <jasonr@gnu.org>
19512
19513 * w32.c (logon_network_drive): New function.
19514 (stat): Use it.
19515
195162008-01-26 Chong Yidong <cyd@stupidchicken.com>
19517
19518 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
19519 invisible text covered with an ellipsis.
19520
195212008-01-25 Richard Stallman <rms@gnu.org>
19522
19523 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
19524 jump back to beginning. Move some other initializations after that.
19525 (Qwindow_text_change_functions, Vwindow_text_change_functions):
19526 New variables.
19527 (syms_of_xdisp): Init them.
19528
19529 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
19530
19531 * buffer.c (reset_buffer_local_variables):
19532 Implement `permanent-local-hook'.
19533 (Qpermanent_local_hook): New variable.
19534 (syms_of_buffer): Init and staticpro it.
19535
195362008-01-25 Michael Albinus <michael.albinus@gmx.de>
19537
19538 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
19539
195402008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
19541
19542 * fns.c (Fclrhash): Return TABLE.
19543
195442008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19545
19546 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
19547 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
19548 is set even without positional changes.
19549 (x_scroll_bar_clear): Set bar->redraw_needed_p.
19550
19551 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
19552
195532008-01-23 Jason Rumney <jasonr@gnu.org>
19554
19555 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
19556
19557 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
19558 the unicode range available in MULE by locale-coding-system.
19559 Improve dbcs lead byte detection. Set event timestamp and modifiers
19560 earlier.
19561
195622008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19563
19564 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
19565 [MAC_OSX] (init_mac_osx_environment): Initialize it.
19566 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
19567 when used on child processes.
19568
195692008-01-21 Michael Albinus <michael.albinus@gmx.de>
19570
19571 * dbusbind.c (Fdbus_method_return_internal): Rename from
19572 Fdbus_method_return.
19573 (Fdbus_unregister_object): Move to dbus.el.
19574 (Fdbus_call_method, Fdbus_method_return_internal)
19575 (Fdbus_send_signal): Improve debug messages.
19576
195772008-01-20 Martin Rudalics <rudalics@gmx.at>
19578
19579 * undo.c (undo_inhibit_record_point): New variable.
19580 (syms_of_undo): Initialize it.
19581 (record_point): Don't record point when undo_inhibit_record_point
19582 is set.
19583
195842008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
19585
19586 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
19587
19588 * xdisp.c (Qauto_hscroll_mode): New var.
19589 (syms_of_xdisp): Initialize it.
19590 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
19591 window's buffer.
19592 (hscroll_windows): Don't check automatic_hscrolling_p here.
19593
19594 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
19595 vscroll if we're setting window-buffer to the value it already has.
19596
195972008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
19598
19599 * m/intel386.h: Remove references to XENIX.
19600
196012008-01-17 Andreas Schwab <schwab@suse.de>
19602
19603 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
19604 instead of HAVE_X86_64_LIB64_DIR.
19605 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
19606
196072008-01-17 Glenn Morris <rgm@gnu.org>
19608
19609 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
19610 to HAVE_X86_64_LIB64_DIR.
19611
196122008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
19613
19614 * s/irix3-3.h:
19615 * s/irix4-0.h:
19616 * s/386-ix.h:
19617 * s/domain.h:
19618 * s/hpux9-x11r4.h:
19619 * s/hpux9shxr4.h: Remove files for systems no longer supported.
19620
19621 * sysdep.c: Remove code containing references to symbols defined
19622 by unsupported systems.
19623
196242008-01-16 Glenn Morris <rgm@gnu.org>
19625
19626 * coding.c (select-safe-coding-system-function): Doc fix.
19627
196282008-01-15 Glenn Morris <rgm@gnu.org>
19629
19630 * config.in: Revert 2008-01-13 change: this is a generated file.
19631
196322008-01-13 Tom Tromey <tromey@redhat.com>
19633
19634 * lisp.h: Fix typo.
19635
196362008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
19637
19638 * m/sequent-ptx.h:
19639 * m/sequent.h:
19640 * s/ptx.h:
19641 * s/ptx4-2.h:
19642 * s/ptx4.h: Remove files for systems no longer supported.
19643
19644 * callproc.c (Fcall_process): Fix previous change.
19645
196462008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
19647
19648 * unexsunos4.c: Remove file, system not supported anymore.
19649
19650 * m/mips.h:
19651 * m/intel386.h:
19652 * callproc.c:
19653 * config.in:
19654 * ecrt0.c:
19655 * emacs.c:
19656 * fileio.c:
19657 * frame.c:
19658 * getpagesize.h:
19659 * keyboard.c:
19660 * lread.c:
19661 * process.c:
19662 * puresize.h:
19663 * sysdep.c:
19664 * systty.h:
19665 * syswait.h:
19666 * unexec.c:
19667 * xdisp.c:
19668 * alloc.c: Remove code containing references to symbols defined by
19669 unsupported systems.
19670
196712008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
19672
19673 * coding.c (detect_coding_mask): Fix previous change.
19674
196752008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
19676
19677 * coding.c (detect_coding_iso2022): New arg
19678 latin_extra_code_state. Allow Latin extra codes only
19679 when *latin_extra_code_state is nonzero.
19680 (detect_coding_mask): If there is a NULL byte, detect the encoding
19681 as UTF-16 or binary. If Latin extra codes exist, detect the
19682 encoding as ISO-2022 only when there's no other proper encoding is
19683 found.
19684
196852008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19686
19687 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
19688 #ifdef MAC_OS.
19689
196902008-01-08 Richard Stallman <rms@gnu.org>
19691
19692 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
19693
196942008-01-06 Nick Roberts <nickrob@snap.net.nz>
19695
19696 * keyboard.c (parse_menu_item): Don't enclose key bindings on
19697 menu bar in parentheses.
19698
196992008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
19700
19701 * m/7300.h:
19702 * m/acorn.h:
19703 * m/alliant-2800.h:
19704 * m/alliant.h:
19705 * m/alliant1.h:
19706 * m/alliant4.h:
19707 * m/altos.h:
19708 * m/amdahl.h:
19709 * m/apollo.h:
19710 * m/att3b.h:
19711 * m/aviion-intel.h:
19712 * m/aviion.h:
19713 * m/celerity.h:
19714 * m/clipper.h:
19715 * m/cnvrgnt.h:
19716 * m/convex.h:
19717 * m/cydra5.h:
19718 * m/delta88k.h:
19719 * m/dpx2.h:
19720 * m/dual.h:
19721 * m/elxsi.h:
19722 * m/f301.h:
19723 * m/gould-np1.h:
19724 * m/gould.h:
19725 * m/i860.h:
19726 * m/ibmps2-aix.h:
19727 * m/ibmrt-aix.h:
19728 * m/ibmrt.h:
19729 * m/irist.h:
19730 * m/is386.h:
19731 * m/isi-ov.h:
19732 * m/mega68.h:
19733 * m/mg1.h:
19734 * m/news-r6.h:
19735 * m/news-risc.h:
19736 * m/news.h:
19737 * m/nh3000.h:
19738 * m/nh4000.h:
19739 * m/ns16000.h:
19740 * m/ns32000.h:
19741 * m/nu.h:
19742 * m/orion.h:
19743 * m/orion105.h:
19744 * m/paragon.h:
19745 * m/pfa50.h:
19746 * m/plexus.h:
19747 * m/pyramid.h:
19748 * m/pyrmips.h:
19749 * m/sh3el.h:
19750 * m/sps7.h:
19751 * m/sr2k.h:
19752 * m/stride.h:
19753 * m/sun1.h:
19754 * m/sun2.h:
19755 * m/sun3-68881.h:
19756 * m/sun3-fpa.h:
19757 * m/sun3-soft.h:
19758 * m/sun3.h:
19759 * m/sun386.h:
19760 * m/symmetry.h:
19761 * m/tad68k.h:
19762 * m/tahoe.h:
19763 * m/targon31.h:
19764 * m/tek4300.h:
19765 * m/tekxd88.h:
19766 * m/tower32.h:
19767 * m/tower32v3.h:
19768 * m/ustation.h:
19769 * m/wicat.h:
19770 * m/xps100.h:
19771 * s/cxux.h:
19772 * s/cxux7.h:
19773 * s/dgux.h:
19774 * s/dgux4.h:
19775 * s/dgux5-4-3.h:
19776 * s/dgux5-4r2.h:
19777 * s/esix.h:
19778 * s/esix5r4.h:
19779 * s/hiuxmpp.h:
19780 * s/hiuxwe2.h:
19781 * s/iris3-5.h:
19782 * s/iris3-6.h:
19783 * s/isc2-2.h:
19784 * s/isc3-0.h:
19785 * s/isc4-0.h:
19786 * s/isc4-1.h:
19787 * s/newsos5.h:
19788 * s/newsos6.h:
19789 * s/osf1.h:
19790 * s/osf5-0.h:
19791 * s/riscix1-1.h:
19792 * s/riscix12.h:
19793 * s/sco4.h:
19794 * s/sco5.h:
19795 * s/sunos4-0.h:
19796 * s/sunos4-1.h:
19797 * s/sunos413.h:
19798 * s/sunos4shr.h:
19799 * s/umax.h:
19800 * s/unipl5-2.h:
19801 * s/xenix.h:
19802 * cxux-crt0.s:
19803 * unexapollo.c:
19804 * unexconvex.c:
19805 * unexenix.c:
19806 * unexsni.c: Remove files for systems no longer supported.
19807
19808 * m/intel386.h: Remove references to unsupported systems.
19809
19810 * w32.c (get_emacs_configuration): Remove reference to i860.
19811
19812 * sysdep.c: Remove dead code.
19813
198142008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
19815
19816 * s/rtu.h:
19817 * m/masscomp.h: Remove files. Platform is obsolete.
19818
198192008-01-04 Michael Albinus <michael.albinus@gmx.de>
19820
19821 * dbusbind.c (Fdbus_method_return): New function.
19822 (xd_read_message): Add the serial number to the event.
19823 (Fdbus_register_method): Activate the function.
19824
198252008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
19826
19827 * keyboard.c (read_key_sequence): Fix typo.
19828
198292008-01-03 Michael Albinus <michael.albinus@gmx.de>
19830
19831 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
19832 (xd_signature, xd_append_arg): Handle element type detection for
19833 empty arrays.
19834 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
19835 SDATA () calls; this must be solved more general.
19836 (Fdbus_register_signal): Use SBYTES instead of strlen.
19837
198382008-01-03 Magnus Henoch <magnus@zemdatav>
19839
19840 * dbusbind.c (xd_append_arg): Use unsigned char instead of
19841 unsigned int for byte values (necessary for big-endian platform).
19842 (Fdbus_call_method): Handle the case of no returned arguments.
19843
198442007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
19845
19846 * dbusbind.c (xd_read_message): Use non-static input_event struct.
19847
198482007-12-31 Magnus Henoch <mange@freemail.hu>
19849
19850 * dbusbind.c (xd_signature): Signature of variant is just "v".
19851
198522007-12-30 Michael Albinus <michael.albinus@gmx.de>
19853
19854 * dbusbind.c: Fix several errors and compiler warnings.
19855 Reported by Tom Tromey <tromey@redhat.com>.
19856 (XD_ERROR, XD_DEBUG_MESSAGE)
19857 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
19858 (xd_append_arg): Part for basic D-Bus types rewritten.
19859 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
19860 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
19861 appropriate.
19862 (xd_read_message): Return Qnil. Don't signal an error; it is not
19863 useful during event reading.
19864 (Fdbus_register_signal): Signal an error if the check for
19865 FUNCTIONP fails.
19866 (Fdbus_register_method): New function. The implementation is not
19867 complete, the call of the function signals an error therefore.
19868 (Fdbus_unregister_object): New function, renamed from
19869 Fdbus_unregister_signal. The initial check signals an error, if
19870 the object is not well formed.
19871
198722007-12-30 Richard Stallman <rms@gnu.org>
19873
19874 * textprop.c (get_char_property_and_overlay):
19875 Signal error if POSITION is out of range in a buffer.
19876
198772007-12-29 Martin Rudalics <rudalics@gmx.at>
19878
19879 * w32fns.c (Fx_create_frame): Make copy of frame parameters
19880 because the original parameters are in pure storage now.
19881
198822007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19883
19884 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
19885
198862007-12-22 Eli Zaretskii <eliz@gnu.org>
19887
19888 * callint.c (syms_of_callint) <command-history>: Add reference to
19889 history-length in the doc string.
19890
198912007-12-17 Jason Rumney <jasonr@gnu.org>
19892
19893 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
19894 before passing as wParam.
19895
198962007-12-22 Michael Albinus <michael.albinus@gmx.de>
19897
19898 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
19899 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
19900 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
19901 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
19902 as number.
19903 (Fdbus_call_method): Fix docstring.
19904
199052007-12-21 Michael Albinus <michael.albinus@gmx.de>
19906
19907 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
19908 New macros.
19909 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
19910 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
19911 Simplify.
19912 (xd_signature): New function.
19913 (xd_append_arg): Compute also signatures. Major rewrite.
19914 (xd_retrieve_arg): Make debug messages friendly.
19915 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
19916 Check for signatures of arguments.
19917
199182007-12-19 Michael Albinus <michael.albinus@gmx.de>
19919
19920 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
19921 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
19922 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
19923 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
19924 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
19925 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
19926 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
19927 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
19928 (xd_retrieve_value): Remove. Functionality included in ...
19929 (xd_append_arg): New function.
19930 (Fdbus_call_method, Fdbus_send_signal): Apply it.
19931
199322007-12-16 Michael Albinus <michael.albinus@gmx.de>
19933
19934 * dbusbind.c (top): Include <stdio.h>.
19935 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
19936 dbus_message_new_method_call and dbus_message_new_signal.
19937 (Fdbus_register_signal): Rename unique_name to uname.
19938 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
19939 non-existing unique name. Fix typos in matching rule. Return an
19940 object which is useful in Fdbus_unregister_signal.
19941 (Fdbus_unregister_signal): Reimplementation, in order to remove
19942 only the corresponding entry.
19943 (Vdbus_registered_functions_table): Change the order of entries.
19944 Apply these changes in xd_read_message and Fdbus_register_signal.
19945
199462007-12-16 Andreas Schwab <schwab@suse.de>
19947
19948 * fileio.c (Finsert_file_contents): Fix overflow check to not
19949 depend on undefined integer overflow.
19950
199512007-12-14 Jason Rumney <jasonr@gnu.org>
19952
19953 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
19954 for characters above 127.
19955
199562007-12-13 Jason Rumney <jasonr@gnu.org>
19957
19958 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
19959 before dereferencing array.
19960 (lookup_vk_code): Remove zero comparison.
19961
199622007-12-14 Michael Albinus <michael.albinus@gmx.de>
19963
19964 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
19965 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
19966 Use `unsigned int' instead of `uint'.
19967 (xd_read_message, Fdbus_register_signal): Split expressions into
19968 multiple lines before operators "&&" and "||", according to the
19969 GNU Coding Standards.
19970
199712007-12-14 Eli Zaretskii <eliz@gnu.org>
19972
19973 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
19974
199752007-12-12 Juri Linkov <juri@jurta.org>
19976
19977 * buffer.c (Frename_buffer): In interactive spec replace
19978 `read-buffer' with `read-string' that uses `buffer-name-history'
19979 as history, and the current buffer's name as default.
19980
199812007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
19982
19983 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
19984 manipulating the backtrace manually.
19985 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
19986 (struct backtrace, backtrace_list): Remove.
19987 (command_loop_1): Remove dead var `no_direct'.
19988
19989 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
19990 preserve non-built-in buffer-local variables.
19991 (Fkill_all_local_variables): Don't re-create&re-set permanent
19992 buffer-local variables.
19993
199942007-12-09 Juri Linkov <juri@jurta.org>
19995
19996 * buffer.c (Frename_buffer): Change interactive spec from "s" to
19997 Lisp code that uses `read-buffer' with current buffer as default.
19998
199992007-12-08 Michael Albinus <michael.albinus@gmx.de>
20000
20001 * dbusbind.c (xd_read_message): Generate an event for every
20002 registered handler. There might be several handlers registered
20003 for the same signal.
20004 (Fdbus_register_signal): Don't overwrite a registration for the
20005 same signal. Add a new registration if handlers are different.
20006 (Vdbus_registered_functions_table): Rework doc string.
20007
200082007-12-07 Michael Albinus <michael.albinus@gmx.de>
20009
20010 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
20011 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
20012 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
20013 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
20014 Unify argument lists.
20015 (xd_read_message, Fdbus_register_signal): Reorder and extend event
20016 arguments and hash table keys. Use unique name for service.
20017 (Fdbus_unregister_signal): Remove checks.
20018 (Vdbus_registered_functions_table): Fix doc string.
20019
200202007-12-05 Magnus Henoch <mange@freemail.hu>
20021
20022 * process.c (make_process): Initialize pty_flag to 0.
20023
200242007-12-05 Jason Rumney <jasonr@gnu.org>
20025
20026 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
20027 specified XBMs.
20028
200292007-12-05 Richard Stallman <rms@gnu.org>
20030
20031 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
20032
200332007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20034
20035 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
20036 New variable.
20037 (mac_try_close_socket) [MAC_OSX]: New function.
20038 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
20039 Update cfsockets_for_select. Replace invalid CFRunLoop source.
20040
20041 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
20042 Use mac_try_close_socket.
20043
200442007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20045
20046 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
20047 reloc_base.
20048 (copy_dysymtab): Compute relocation base here.
20049 (rebase_reloc_address) [__ppc64__]: New function.
20050 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
20051 changed.
20052
200532007-12-05 Jason Rumney <jasonr@gnu.org>
20054
20055 * w32proc.c (sys_spawnve): Quote args with wildcards.
20056
200572007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20058
20059 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
20060 __objc_* sections.
20061 (unrelocate) [_LP64]: Set relocation base to address of data segment.
20062
200632007-12-05 Michael Albinus <michael.albinus@gmx.de>
20064
20065 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
20066 Move check for Vdbus_registered_functions_table to
20067 xd_read_queued_messages.
20068 (xd_read_queued_messages): Protect xd_read_message calls by
20069 internal_condition_case_1.
20070
200712007-12-04 Michael Albinus <michael.albinus@gmx.de>
20072
20073 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
20074 Qdbus_system_bus and Qdbus_session_bus, respectively.
20075 (Vdbus_intern_symbols): Remove.
20076 (Vdbus_registered_functions_table): New hash table.
20077 (XD_SYMBOL_INTERN_SYMBOL): Remove.
20078 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
20079 Rewrite in order to manage registered functions by hash table
20080 Vdbus_registered_functions_table.
20081
200822007-12-03 Jan Djärv <jan.h.d@swipnet.se>
20083
20084 * xterm.c: Update URL to Window Manager Specification in comment.
20085
200862007-12-02 Michael Albinus <michael.albinus@gmx.de>
20087
20088 * config.in (HAVE_DBUS): Add.
20089
20090 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
20091 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
20092 (obj): Add $(DBUS_OBJ).
20093 (LIBES): Add $(DBUS_LIBS).
20094 (dbusbind.o): New target.
20095
20096 * dbusbind.c: New file.
20097
20098 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
20099
20100 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
20101 (Qdbus_event): New Lisp symbol.
20102 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
20103 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 20104 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
20105
20106 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
20107
201082007-12-01 Richard Stallman <rms@gnu.org>
20109
20110 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
20111
201122007-11-30 Jason Rumney <jasonr@gnu.org>
20113
20114 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
20115 (w32con_reset_terminal_modes): Clear screen buffer.
20116 (w32_face_attributes): Don't use color indexes that are out of range.
20117 Only reverse the default colors.
20118
20119 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
20120 WINDOWSNT.
20121
20122 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
20123
201242007-11-29 Jason Rumney <jasonr@gnu.org>
20125
20126 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
20127 (w32_face_attributes): Use Vtty_defined_color_alist to determine
20128 if the terminal colors are initialized.
20129 (unspecified_fg, unspecified_bg): Remove unused declarations.
20130
201312007-11-29 Andreas Schwab <schwab@suse.de>
20132
20133 * keyboard.c (apply_modifiers): Fix typo.
20134
201352007-11-29 Richard Stallman <rms@gnu.org>
20136
20137 * keymap.c (Fcurrent_local_map): Doc fix.
20138
201392007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
20140
20141 * s/gnu-kfreebsd.h: New file.
20142
201432007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
20144
20145 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
20146 Don't cast redundantly.
20147
20148 * keyboard.c (KEY_TO_CHAR): New macro.
20149 (parse_modifiers, apply_modifiers): Accept integer arguments.
20150 (read_key_sequence): Use them to unify the "shift->unshift" mapping
20151 for chars and symbol keys.
20152 After doing such remapping, apply function-key-map again.
20153
201542007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
20155
20156 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
20157 compiled anymore.
20158
201592007-11-26 Andreas Schwab <schwab@suse.de>
20160
20161 * process.c (list_processes_1): Fix indentation level of the
20162 command column.
20163
201642007-11-23 Andreas Schwab <schwab@suse.de>
20165
20166 * editfns.c (Fformat): Handle %c specially since it requires the
20167 argument to be of type int.
20168
201692007-11-23 Markus Triska <markus.triska@gmx.at>
20170
20171 * emacs.c (main): Call init_editfns before init_process, since
20172 init_process sets Vprocess_connection_type depending on OS release.
20173
201742007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
20175
20176 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
20177 (find_symbol_value): Use do_symval_forwarding.
20178
20179 * data.c (set_internal): Set the value in the `cons-cell' (for
20180 Buffer_Local_values) not only for frame-local variables.
20181
201822007-11-22 Andreas Schwab <schwab@suse.de>
20183
20184 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
20185 values to sprintf.
20186 * keymap.c (Fsingle_key_description): Likewise.
20187 * print.c (print_object): Likewise.
20188
201892007-11-22 Jan Djärv <jan.h.d@swipnet.se>
20190
20191 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
20192 file for image is nil.
20193
201942007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
20195
20196 * term.c: Include stdarg.h.
20197 (fatal): Implement using varargs.
20198 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
20199
202002007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
20201
20202 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
20203 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
20204 Update call to buffer_slot_type_mismatch.
20205 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
20206 (buffer_slot_type_mismatch): Update.
20207 * buffer.c (buffer_local_types): Remove.
20208 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
20209 (defvar_per_buffer): Set the type in the buffer_objfwd.
20210
202112007-11-21 Jason Rumney <jasonr@gnu.org>
20212
20213 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
20214 CreateFileMapping returns NULL on failure.
20215
202162007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
20217
20218 * search.c (Fset_match_data): Remove the `evaporate' feature.
20219 (unwind_set_match_data): Don't use the `evaporate' feature.
20220
202212007-11-21 Jason Rumney <jasonr@gnu.org>
20222
20223 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
20224
20225 * w32console.c (w32con_write_glyphs): Remove unused variables.
20226
202272007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
20228
20229 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
20230
20231 * s/darwin.h (MULTI_KBOARD): Remove.
20232
20233 * macfns.c (x_create_tip_frame, Fx_create_frame)
20234 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
20235
202362007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
20237
20238 * buffer.c (Fbuffer_local_value): Remove redundant test.
20239 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
20240 than in `current-buffer' to match the comment.
20241 Do the swap using swap_in_global_binding.
20242
20243 * data.c (store_symval_forwarding, set_internal):
20244 * eval.c (specbind): Remove dead code.
20245
20246 * coding.c (detect_coding, Fupdate_coding_systems_internal):
20247 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
20248 Since we do not want to see internal Lisp_*fwd objects here.
20249
202502007-11-18 Jan Djärv <jan.h.d@swipnet.se>
20251
20252 * sysdep.c (init_system_name): Use getaddrinfo if available.
20253
20254 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
20255 (x_scroll_bar_note_movement): start, end, with, height in struct
20256 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
20257
202582007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
20259
20260 * puresize.h (BASE_PURESIZE): Increase to 1190000.
20261
202622007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
20263
20264 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
20265 This undoes Richard's change of 14-Oct-2002.
20266
20267 * alloc.c (allocate_other_vector):
20268 * lisp.h (allocate_other_vector): Remove.
20269
20270 * window.c (struct save_window_data): Move non-lisp data to the end
20271 and make it `int' rather than Lisp_Object.
20272 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
20273 Done wrap/unwrap integer values.
20274 (Fset_window_configuration, compare_window_configurations):
20275 Update use of fields to their new types.
20276
20277 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
20278 Turn integer fields into `int'. Merge x_window_low and x_window_high.
20279 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
20280 (SET_SCROLL_BAR_X_WINDOW): Remove.
20281 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
20282 Access the new x_window field directly.
20283 * xterm.c (x_scroll_bar_create): Use a pseudovector.
20284 Don't wrap/unwrap integers into Lisp_Objects.
20285 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
20286 (x_scroll_bar_report_motion):
20287 Don't wrap/unwrap integers into Lisp_Objects.
20288 (x_term_init): Use SDATA.
20289 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
20290 (x_scroll_bar_set_handle, x_scroll_bar_remove)
20291 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
20292 (x_scroll_bar_report_motion, x_scroll_bar_clear):
20293 * xfns.c (x_set_background_color):
20294 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
20295 Access the new x_window field directly.
20296
20297 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
20298 (allocate_pseudovector): Make non-static.
20299
20300 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
20301 (allocate_pseudovector): Declare.
20302 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
20303
203042007-11-15 Andreas Schwab <schwab@suse.de>
20305
20306 * editfns.c (Fformat): Correctly format EMACS_INT values.
20307 Also take precision into account when formatting an integer.
20308
20309 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
20310
203112007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
20312
20313 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
20314 (syms_of_keyboard): Defsubr it.
20315
20316 * data.c (swap_in_global_binding): Fix longstanding bug where
20317 store_symval_forwarding was not called with the right second argument,
20318 thus causing objfwd-ing from being dropped.
20319
203202007-11-14 Juanma Barranquero <lekktu@gmail.com>
20321
20322 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
20323 (Fx_display_pixel_height, Fx_display_planes)
20324 (Fx_display_color_cells, Fx_server_max_request_size)
20325 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
20326 (Fx_display_visual_class, Fx_display_save_under):
20327 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
20328 (Fx_display_pixel_height, Fx_display_planes)
20329 (Fx_display_color_cells, Fx_server_max_request_size)
20330 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
20331 (Fx_display_mm_height, Fx_display_mm_width)
20332 (Fx_display_backing_store, Fx_display_visual_class)
20333 (Fw32_select_font, Fx_display_save_under):
20334 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
20335 (Fx_display_pixel_height, Fx_display_planes)
20336 (Fx_display_color_cells, Fx_server_max_request_size)
20337 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
20338 (Fx_display_save_under): Fix typos in docstrings.
20339
203402007-11-14 Juanma Barranquero <lekktu@gmail.com>
20341
20342 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
20343 corresponding to deleted entries; they are an implementation detail.
20344 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
20345 Remove variables.
20346 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
20347 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
20348 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
20349 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
20350 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
20351 (Fw32_define_rgb_color, Fw32_load_color_file)
20352 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
20353 Fix typos in docstrings.
20354 (Fx_server_version): Reflow docstring.
20355 (Fw32_shell_execute): Doc fixes.
20356
203572007-11-13 Juanma Barranquero <lekktu@gmail.com>
20358
20359 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
20360 if w32_parse_hot_key returned nil.
20361
203622007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
20363
20364 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
20365
203662007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 20367
aac0c6e3
MR
20368 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
20369
20370 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
20371
20372 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
20373 Remove W32_SCROLL_BAR_CLICK_EVENT.
20374
20375 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
20376 Add MULTIMEDIA_KEY_EVENT.
20377
20378 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
20379 (lispy_multimedia_keys) [WINDOWSNT]: New array.
20380 (make_lispy_event) [WINDOWSNT]: Use it to translate
20381 MULTIMEDIA_KEY_EVENT.
20382
20383 * w32term.h (WM_APPCOMMAND): Define if not already.
20384 (GET_APPCOMMAND_LPARAM): Likewise.
20385
20386 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
20387 WM_APPCOMMAND.
20388
20389 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
20390 (syms_of_w32fns): Export and initialize it.
20391 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
20392
203932007-11-09 Chong Yidong <cyd@stupidchicken.com>
20394
20395 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
20396 twice.
20397
20398 * xdisp.c (handle_face_prop): Fix last change.
20399
204002007-11-09 Richard Stallman <rms@gnu.org>
20401
20402 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
20403 not just for after-strings and before-strings.
20404 Call face_for_overlay_string and pass the overlay to it.
20405 (handle_display_prop): Determine whether property came from an overlay.
20406 Pass OVERLAY arg to handle_single_display_spec.
20407 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
20408 (load_overlay_strings): Fill in it->string_overlays.
20409 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
20410
20411 * xfaces.c (face_for_overlay_string): Function renamed from
20412 face_at_buffer_position_no_overlays, and add arg OVERLAY.
20413
20414 * dispextern.h (struct it): New elt string_overlays.
20415 New elt from_overlay, also in stack.
20416 Rearrange a few elements.
20417 (face_for_overlay_string): Decl renamed from
20418 face_at_buffer_position_no_overlays, and add argument.
20419
204202007-11-09 Richard Stallman <rms@gnu.org>
20421
20422 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
20423 to get the base face for an overlay string.
20424
20425 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
20426
20427 * xfaces.c (face_at_buffer_position_no_overlays): New function.
20428
20429 * xdisp.c (handle_stop): Move some code out of loop.
20430
204312007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20432
20433 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
20434 Fix conversion from Lisp object to ATSUFontID.
20435
204362007-11-09 Jason Rumney <jasonr@gnu.org>
20437
20438 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
20439
204402007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20441
20442 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
20443 Don't assume regions are aligned to page boundary.
20444 (print_load_command_name): Add LC_UUID if defined.
20445
204462007-11-09 Richard Stallman <rms@gnu.org>
20447
20448 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
20449
204502007-11-07 Jason Rumney <jasonr@gnu.org>
20451
20452 * s/windows95.h: Remove.
20453
204542007-11-06 Jan Djärv <jan.h.d@swipnet.se>
20455
20456 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
20457 abort with a message on unhandled store_type values.
20458
204592007-11-01 Jan Djärv <jan.h.d@swipnet.se>
20460
20461 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
20462 Remove HAVE_X11R5 and HAVE_X11R4.
20463
204642007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
20465
20466 * Makefile.in: Remove references to sunfns.c and sunfns.o.
20467
204682007-11-01 Johan Bockgård <bojohan@gnu.org>
20469
20470 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
20471 Don't set s->stippled_p here, since it has already been set by
20472 x_set_glyph_string_gc from x_draw_glyph_string.
20473
204742007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
20475
20476 * sunfns.c: Remove file.
20477
20478 * m/sun386.h:
20479 * m/sun2.h:
20480 * m/sparc.h: Remove Sun windows code.
20481
204822007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
20483
20484 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
20485 (init_keyboard): Set current_kboard's window-system to nil.
20486 (tty_read_avail_input): Typo.
20487 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
20488
204892007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
20490
20491 * s/usg5-4.h:
20492 * s/usg5-3.h:
20493 * s/ptx.h:
20494 * m/is386.h:
20495 * m/ibmps2-aix.h:
20496 * Makefile.in: Remove all mentions of X10.
20497
20498 * dispnew.c (syms_of_display): Don't mention version 10.
20499
205002007-10-28 Juanma Barranquero <lekktu@gmail.com>
20501
20502 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
20503 ($(BLD)/abbrev.$(O)): Remove.
20504
205052007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
20506
20507 Rewrite abbrev.c in Elisp.
20508 * image.c (Qcount): Don't declare as extern.
20509 (syms_of_image): Initialize and staticpro `Qcount'.
20510 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
20511 * emacs.c (main): Don't call syms_of_abbrev.
20512 * Makefile.in (obj): Remove abbrev.o.
20513 (abbrev.o): Remove.
20514 * abbrev.c: Remove.
20515
205162007-10-26 Martin Rudalics <rudalics@gmx.at>
20517
20518 * window.c (window_min_size_2): Don't count header-line.
20519
205202007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
20521
20522 * frame.h (struct frame): Move all bit fields after the first bit
20523 field to take advantage of the available space. Group all the
20524 chars together to reduce wasted space due to padding.
20525
205262007-10-26 Juanma Barranquero <lekktu@gmail.com>
20527
20528 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
20529
20530 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
20531 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
20532 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
20533 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
20534 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
20535 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
20536 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
20537 (last_marked, mark_object_loop_halt): Make static.
20538
20539 * frame.c (syms_of_frame) <delete-frame-functions>:
20540 Fix typo in docstring.
20541
205422007-10-25 Juanma Barranquero <lekktu@gmail.com>
20543
20544 * w32.c (init_environment): Fix tiny memory leak.
20545 (w32_get_resource): Remove unused variable `ok'.
20546
205472007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
20548
20549 Make `window-system' into a keyboard-local variable (rather than
20550 frame-local as done originally by multi-tty).
20551
20552 * keyboard.h (struct kboard): Add Vwindow_system.
20553 * keyboard.c (init_kboard): Set a default for Vwindow_system.
20554 (mark_kboards): Mark Vwindow_system.
20555
20556 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
20557 (init_display): Don't set the obsolete `window-system' frame-param.
20558
20559 * xterm.c (x_term_init):
20560 * w32term.c (w32_create_terminal):
20561 * term.c (init_tty): Set Vwindow_system.
20562 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
20563 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
20564
20565 * xfns.c (Fx_create_frame, x_create_tip_frame):
20566 * w32fns.c (Fx_create_frame, x_create_tip_frame):
20567 * macfns.c (Fx_create_frame):
20568 Don't set the obsolete `window-system' frame-param.
20569
20570 * frame.h (Qwindow_system): Remove.
20571 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
20572 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
20573
205742007-10-24 Richard Stallman <rms@gnu.org>
20575
20576 * frame.c (x_figure_window_size): For fullscreen case,
20577 set USPosition | PPosition without clobbering rest of window_prompting.
20578
20579 * keyboard.c (Fcurrent_idle_time): Doc fix.
20580
20581 * print.c (Fwith_output_to_temp_buffer): Doc fix.
20582
205832007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
20584
20585 * process.c (unwind_request_sigio): Only define if __ultrix__.
20586
20587 * callproc.c (child_setup): Remove spurious *.
20588
20589 * lisp.h (Fget_text_property): Declare.
20590 (have_menus_p): Declare it here rather than in sys-dep header files.
20591 * macterm.h (have_menus_p):
20592 * msdos.h (have_menus_p):
20593 * xterm.h (have_menus_p): Remove.
20594
20595 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
20596 (Fmake_variable_frame_local): Just check the variable's const-ness
20597 rather than checking nil or t.
20598
205992007-10-22 Jason Rumney <jasonr@gnu.org>
20600
20601 * w32fns.c: Include math.h.
20602 (w32_abort): Declaration moved to nt/config.nt.
20603
20604 * s/ms-w32.h (HAVE_STDLIB_H): Define.
20605 (abort): Redefinition moved to nt/config.nt.
20606
20607 * m/windowsnt.h: Remove.
20608
206092007-10-22 Juanma Barranquero <lekktu@gmail.com>
20610
20611 * emacs.c (Fdump_emacs): Fix typo in message.
20612 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
20613 <installation-directory>: Reflow docstring.
20614
206152007-10-22 Juri Linkov <juri@jurta.org>
20616
20617 * minibuf.c: Allow minibuffer default to be a list of default values.
20618 With empty input use the first element of this list as returned default.
20619 (string_to_object)
20620 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
20621 (read_minibuf): If defalt is cons, set histstring to its car.
20622 (Fread_string): If default_value is cons, set val to its car.
20623 (Fread_buffer): If def is cons, use its car.
20624 (Fcompleting_read): If defalt is cons, set val to its car.
20625
206262007-10-21 Michael Albinus <michael.albinus@gmx.de>
20627
20628 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
20629
206302007-10-20 Juanma Barranquero <lekktu@gmail.com>
20631
20632 * doc.c (Fdocumentation): Check for advice in all cases.
20633
206342007-10-19 Chong Yidong <cyd@stupidchicken.com>
20635
20636 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
20637
206382007-10-19 Richard Stallman <rms@gnu.org>
20639
20640 * doc.c (Fdocumentation): Check for and handle an advised function.
20641
206422007-10-19 Juanma Barranquero <lekktu@gmail.com>
20643
20644 * process.c (Fset_process_filter): Doc fix.
20645
206462007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
20647
20648 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
20649 which caused key-translation-map to applied repeatedly (thus breaking
20650 double-mode).
20651
206522007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
20653
20654 * xselect.c (x_own_selection, x_handle_selection_clear)
20655 (x_clear_frame_selections):
20656 * w32menu.c (list_of_panes, list_of_items):
20657 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
20658 * textprop.c (validate_plist, interval_has_all_properties)
20659 (interval_has_some_properties, interval_has_some_properties_list)
20660 (add_properties, text_property_list):
20661 * process.c (Fget_buffer_process, list_processes_1, status_notify):
20662 * minibuf.c (Fassoc_string):
20663 * macselect.c (x_own_selection, x_clear_frame_selections)
20664 (Fx_disown_selection_internal):
20665 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
20666 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
20667
206682007-10-17 Chong Yidong <cyd@stupidchicken.com>
20669
20670 * process.c: Link to libs for calling res_init() if available.
20671 (Fmake_network_process): Call res_init() before getaddrinfo or
20672 gethostbyname, if possible.
20673
206742007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
20675
20676 * lread.c (read1): Set pvectype for char_tables.
20677
20678 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
20679 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
20680 Add type checks.
20681 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
20682
20683 * alloc.c (free_misc): Use XMISCTYPE.
20684 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
20685
206862007-10-17 Glenn Morris <rgm@gnu.org>
20687
20688 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
20689 (syms_of_minibuf): Add Qcompletion_ignore_case.
20690 * dired.c (Qcompletion_ignore_case): Change to external.
20691 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
20692 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
20693 (Fread_file_name): Use it rather than intern'ing.
20694
20695 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
20696 (Fread_coding_system): Ignore case of user input.
20697
206982007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20699
20700 * xdisp.c (handle_display_prop): Ignore display specs after
20701 replacing one when string text is being replaced.
20702 (handle_single_display_spec): Pretend as if characters with display
20703 property haven't been consumed only when buffer text is being replaced.
20704
207052007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
20706
20707 * xfns.c (Fx_create_frame, Fx_display_list):
20708 * window.c (window_fixed_size_p, enlarge_window)
20709 (shrink_window_lowest_first):
20710 * macterm.c (init_font_name_table):
20711 * macfns.c (Fx_create_frame, Fx_display_list):
20712 * lread.c (close_load_descs):
20713 * keyboard.c (read_char_x_menu_prompt):
20714 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
20715 * coding.c (code_convert_region_unwind): Test the type of an object
20716 rather than just !NILP before extracting data from it.
20717
20718 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
20719
20720 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
20721 (XMISCANY): New macro.
20722 (XMISCTYPE): Use it.
20723 (struct Lisp_Misc_Any): New type.
20724 (union Lisp_Misc): Use it.
20725 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
20726 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
20727 (find_symbol_value, set_internal, default_value, Fset_default)
20728 (Fmake_variable_buffer_local, Fmake_local_variable)
20729 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
20730 (Flocal_variable_if_set_p, Fvariable_binding_locus):
20731 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
20732 * alloc.c (allocate_buffer): Set the size and tag.
20733 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
20734 Use XMISCANY.
20735 (die): Follow the GNU convention for error messages.
20736 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
20737 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
20738 tag any more.
20739 (set_buffer_internal_1):
20740 * frame.c (store_frame_param):
20741 * eval.c (specbind):
20742 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
20743
20744 * doc.c (Fsnarf_documentation): Simplify.
20745
207462007-10-14 Juanma Barranquero <lekktu@gmail.com>
20747
20748 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
20749 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
20750
207512007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
20752
20753 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
20754
207552007-10-14 Juanma Barranquero <lekktu@gmail.com>
20756
20757 * eval.c (do_autoload): Don't save autoloads.
20758
20759 * data.c (Ffset): Save autoload of the function being set.
20760
207612007-10-07 John Paul Wallington <jpw@pobox.com>
20762
20763 * xfns.c (x_create_tip_frame): Set the `display-type' frame
20764 parameter before setting up faces.
20765
207662007-10-13 Eli Zaretskii <eliz@gnu.org>
20767
20768 * ccl.c (Fregister_code_conversion_map):
20769 * keyboard.c (append_tool_bar_item): Reformat last change.
20770
20771 * lisp.h (eabs): Rename from `abs'. All callers changed.
20772
207732007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
20774
20775 * buffer.c (add_overlay_mod_hooklist):
20776 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
20777 * fontset.c (make_fontset):
20778 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
20779 (append_tool_bar_item):
20780 * macmenu.c (grow_menu_items):
20781 * w32menu.c (grow_menu_items):
20782 * xmenu.c (grow_menu_items): Use larger_vector.
20783
207842007-10-13 Eli Zaretskii <eliz@gnu.org>
20785
20786 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
20787 selected frame'' on MSDOS).
20788
207892007-10-12 Martin Rudalics <rudalics@gmx.at>
20790
20791 * frame.c (Qexplicit_name): New variable.
20792 (x_report_frame_params): Report it in parameter alist.
20793 (syms_of_frame): Intern and staticpro it.
20794
207952007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
20796
20797 * macfns.c (x_create_tip_frame): Set terminal for frame.
20798
207992007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
20800
20801 * frame.c (Qenvironment): Remove.
20802 (syms_of_frame) <Qenvironment>: Don't initialize.
20803 (Fdelete_frame): Don't treat the `environment' param specially.
20804 * frame.h (Qenvironment): Don't declare.
20805 * callproc.c (set_initial_environment): Don't set unused frame param.
20806
20807 * frame.c (Fframe_with_environment): Remove.
20808 (syms_of_frame) <Sframe_with_environment>: Don't declare.
20809
20810 * lisp.h (Fframe_with_environment): Don't declare.
20811
208122007-10-10 Juanma Barranquero <lekktu@gmail.com>
20813
20814 * indent.c (indent_tabs_mode, last_known_column)
20815 (last_known_column_modified): Make static.
20816 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
20817
208182007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
20819
20820 * puresize.h (BASE_PURESIZE): Increase to 1170000.
20821
208222007-10-09 Jason Rumney <jasonr@gnu.org>
20823
20824 * w32term.c (x_set_window_size): Disable code that attempts to tell
20825 Lisp code about a size change before it actually happens.
20826
208272007-10-09 Richard Stallman <rms@gnu.org>
20828
20829 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
20830 return HANDLED_RETURN.
20831
208322007-10-08 Martin Rudalics <rudalics@gmx.at>
20833
20834 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
20835 when there's an unread command event.
20836
20837 * frame.c (focus_follows_mouse): Move here from frame.el to allow
20838 window autoselection act appropriately when leaving selected frame.
20839 (syms_of_frame): Initialize focus_follows_mouse.
20840 * frame.h (focus_follows_mouse): Extern it.
20841 * macterm.c (XTread_socket): When focus_follows_mouse is nil
20842 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
20843 * msdos.c (dos_rawgetc): Likewise.
20844 * w32term.c (w32_read_socket): Likewise.
20845 * xterm.c (handle_one_xevent): Likewise.
20846 * xdisp.c (syms_of_xdisp): In doc-string of
20847 mouse-autoselect-window mention focus-follows-mouse.
20848
208492007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20850
20851 * macterm.c (mac_load_query_font): Fix missing return value.
20852 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
20853 Add BLOCK_INPUT.
20854
208552007-10-08 Richard Stallman <rms@gnu.org>
20856
20857 * xdisp.c (get_window_cursor_type): Implement documented behavior
20858 for cursor-in-non-selected-windows = t.
20859
208602007-10-08 Jason Rumney <jasonr@gnu.org>
20861
20862 * w32.c (w32_get_resource): Always close registry keys.
20863
208642007-10-08 Jason Rumney <jasonr@gnu.org>
20865
20866 * makefile.w32-in (LIBS): Add COMCTL32.
20867
20868 * w32fns.c (globals_of_w32fns): Init common controls.
20869
208702007-10-08 Richard Stallman <rms@gnu.org>
20871
20872 * image.c (our_memory_buffer): Rename from omfib_buffer.
20873
208742007-10-08 Richard Stallman <rms@gnu.org>
20875
20876 * buffer.c (Foverlays_at): Doc fix.
20877
208782007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
20879
20880 * fns.c (Fplist_put): Preserve uneven tail data.
20881
208822007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
20883
20884 * termhooks.h (enum event_kind): Remove trailing comma.
20885
20886 * frame.h (enum): Remove trailing comma.
20887
208882007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
20889
20890 * w32proc.c (delete_child): Don't terminate threads of zombies.
20891
208922007-10-08 Martin Rudalics <rudalics@gmx.at>
20893
20894 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
20895
20896 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
20897 last-repeatable-command.
20898 (init_kboard): Initialize Vlast_repeatable_command.
20899 (command_loop_1): Set it to real_this_command unless that was
20900 bound to an input event.
20901 (mark_kboards): Mark it.
20902
209032007-10-08 Richard Stallman <rms@gnu.org>
20904
20905 * eval.c (condition-case): Doc fix.
20906
209072007-10-08 Masatake YAMATO <jet@gyve.org>
20908
20909 * xfaces.c (tty_supports_face_attributes_p): Fix code
20910 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
20911 was copied and not edited.
20912
209132007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
20914
20915 Add new `input-decode-map' keymap and use it for terminal
20916 escape sequences.
20917 * keyboard.h (struct kboard): Add Vinput_decode_map.
20918 Remove Vlocal_key_translation_map.
20919 * keyboard.c (read_key_sequence): Add support for input-decode-map.
20920 (init_kboard): Init input-decode-map.
20921 Replace local-key-translation-map back with key-translation-map.
20922 (syms_of_keyboard): Declare input-decode-map.
20923 Remove local-key-translation-map. Update docstrings.
20924 (mark_kboards): Mark Vinput_decode_map.
20925 Don't mark Vlocal_key_translation_map.
20926 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
20927 Replace local-key-translation-map back with key-translation-map.
20928 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
20929 Bind in input-decode-map rather than function-key-map.
20930
20931 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
20932 This was made redundant by the previous introduction of XSETPVECTYPE.
20933
209342007-10-09 Richard Stallman <rms@gnu.org>
20935
20936 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
20937
209382007-09-29 Richard Stallman <rms@gnu.org>
20939
20940 * eval.c (internal_condition_case_2, internal_condition_case_1)
20941 (internal_condition_case): Reenable abort if x_catching_errors ()
20942 to see if that really happens and why.
20943
209442007-10-06 Andreas Schwab <schwab@suse.de>
20945
20946 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
20947
209482007-10-04 Juanma Barranquero <lekktu@gmail.com>
20949
20950 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
20951
209522007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
20953
20954 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
20955
209562007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
20957
20958 * window.h (struct window):
20959 * window.c (struct save_window_data, struct saved_window):
20960 * termhooks.h (struct terminal):
20961 * process.h (struct Lisp_Process):
20962 * frame.h (struct frame):
20963 * buffer.h (struct buffer):
20964 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
20965 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
20966 The size field of (pseudo)vectors is now unsigned.
20967 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
20968
20969 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
20970 Turn `count' into an integer.
20971
20972 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
20973 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
20974 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
20975 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
20976 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
20977
20978 * alloc.c (allocate_pseudovector): New fun.
20979 (ALLOCATE_PSEUDOVECTOR): New macro.
20980 (allocate_window, allocate_terminal, allocate_frame)
20981 (allocate_process): Use it.
20982 (mark_vectorlike): New function.
20983 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
20984 (mark_terminals): Use it.
20985 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
20986 (Fmake_byte_code): Use XSETPVECTYPE.
20987
20988 * frame.c (Fframe_parameters): Minor simplification.
20989
20990 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
20991
20992 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
20993
20994 * buffer.c (Fget_buffer_create, init_buffer_once):
20995 * lread.c (defsubr):
20996 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
20997
20998 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
20999 defined differently in the m/*.h files.
21000 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
21001 (XSETPVECTYPE): New macro.
21002 (XSETPSEUDOVECTOR): Use it.
21003
21004 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
21005 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
21006
21007 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
21008 * lread.c (defvar_per_buffer):
21009 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
21010
21011 * window.c (candidate_window_p): Only consider as visible frames that
21012 are on the same terminal.
21013
21014 * m/ibms390x.h (MARKBIT): Remove unused macro.
21015
210162007-10-01 Juanma Barranquero <lekktu@gmail.com>
21017
21018 * lread.c (Fload): Fix typo in docstring.
21019
210202007-10-01 Michaël Cadilhac <michael@cadilhac.name>
21021
21022 * floatfns.c (Fexpt): Manually check for overflows, so that a power
21023 of a non-zero value can't yield zero.
21024
210252007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
21026
21027 * term.c (term_clear_mouse_face, term_mouse_highlight)
21028 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
21029
21030 * print.c (safe_debug_print): Use XHASH.
21031
21032 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
21033 Lisp elements such as tags.
21034 (XHASH): New macro.
21035 (EQ): Use it.
21036 (SREF, SSET, STRING_COPYIN): Use SDATA.
21037 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
21038
21039 * alloc.c (mark_terminal): Remove left-over declaration.
21040 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
21041 (allocate_vectorlike): Remove type argument. Adjust callers.
21042 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
21043 Only handle the one remaining MEM_TYPE_VECTORLIKE.
21044
21045 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
21046 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
21047 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
21048 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
21049 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
21050 Use them.
21051
21052 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
21053 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
21054 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
21055
210562007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
21057
21058 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
21059 loaded by default.
21060
210612007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
21062
21063 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
21064 on this tty.
21065 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
21066
21067 * term.c (mouse_face_window): Rename from Qmouse_face_window.
21068 Update all users.
21069 (handle_one_term_event): Use Gpm_DrawPointer.
21070 (Fgpm_mouse_start): Rename from Fterm_open_connection.
21071 Signal errors instead of returning nil. Always return nil.
21072 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
21073 Make it a noop if gpm-mouse was not activated.
21074 (syms_of_term): Update names.
21075
210762007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
21077
21078 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
21079 (init_sys_modes): Check that gpm_tty is the current tty.
21080
21081 * alloc.c (allocate_terminal): Set the vector size to only count the
21082 lisp fields. Initialize those to nil.
21083 (mark_object): Don't treat terminals specially.
21084 (mark_terminal): Remove.
21085 (mark_terminals): Use mark_object instead.
21086
21087 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
21088 the GC to the beginning.
21089
21090 * indent.h:
21091 * indent.c: Use EMACS_INT for ints coming from Elisp data.
21092
21093 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
21094
210952007-09-25 Jason Rumney <jasonr@gnu.org>
21096
21097 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
21098
21099 * w32console.c (create_w32cons_output): Remove.
21100
21101 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
21102
21103 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
21104 (reset_sys_modes): Use reset_terminal_modes_hook.
21105
211062007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
21107
21108 * eval.c (do_autoload): Don't output any message.
21109
211102007-09-24 Juri Linkov <juri@jurta.org>
21111
21112 * emacs.c (standard_args): Change priority of "--no-splash"
21113 from 40 to 3. Add "--no-desktop" with the same priority.
21114
211152007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
21116
21117 * alloc.c (gc_sweep): Check cons cell mark bits word by word
21118 and optimize the case where they are all 1.
21119
211202007-09-23 Johannes Weiner <hannes@saeurebad.de>
21121
21122 * lisp.h (abs): Define if not defined.
21123 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
21124 Don't define `abs', since it's defined in lisp.h.
21125
211262007-09-22 Eli Zaretskii <eliz@gnu.org>
21127
21128 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
21129 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
21130 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
21131 (init_tty): Use DEV_TTY instead of "/dev/tty".
21132 [WINDOWSNT]: No need to protect from NAME arg being null.
21133
211342007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
21135
21136 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
21137 up the tty state.
21138
211392007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
21140
21141 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
21142 (gpm_tty): Change its type.
21143 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
21144 (gpm_tty): Change its type and initialize it.
21145 (Fterm_open_connection): Check the frame is indeed a tty.
21146 Use the new gpm_tty.
21147 (Fterm_close_connection): Use the new gpm_tty.
21148 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
21149 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
21150
211512007-09-21 Juanma Barranquero <lekktu@gmail.com>
21152
21153 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
21154 underline_color, to draw strike-through.
21155
211562007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
21157
21158 * lisp.h (allocate_terminal): Declare.
21159
21160 * window.c (candidate_window_p): Consider frames that are being placed
21161 by the user as somewhere between visible and iconified.
21162 (window_loop): Prefer windows on the current frame.
21163 (Fselect_window): Move the use of select-frame to the beginning so we
21164 can just delegate all the work (it'll call us back anyway).
21165
21166 * frame.c (Qdisplay_environment_variable):
21167 * frame.h (Qdisplay_environment_variable): Delete.
21168
21169 * .gdbinit (xbacktrace): Print the arg's address rather than the value
21170 of the first arg, since that value may be a union.
21171
21172 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
21173 parameter rather than Qdisplay_environment_variable. If all else
21174 fails, look for DISPLAY in initial-environment.
21175
211762007-09-21 Glenn Morris <rgm@gnu.org>
21177
21178 * Makefile.in (emacstool): Remove target.
21179 (lisp, shortlisp): Remove termdev.elc.
21180
211812007-09-21 Markus Triska <markus.triska@gmx.at>
21182
21183 * xterm.c (x_delete_display): Compile session management conditionally.
21184
211852007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
21186
21187 * callproc.c (getenv_internal_1): New function.
21188 (getenv_internal): Use it.
21189 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
21190
21191 * terminal.c (get_terminal): Don't accept ints to represent terminals.
21192 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
21193 (Fset_terminal_parameter): Work with dead terminals as well.
21194 (Fmodify_terminal_parameters): Remove.
21195
21196 * terminal.c (get_terminal): Handle terminals.
21197 Make sure the terminal returned is live.
21198 (create_terminal): Use allocate_terminal.
21199 (mark_terminals): Move to alloc.c.
21200 (delete_terminal): Use terminal->name as liveness status.
21201 NULL out fields after freeing their contents.
21202 Don't deallocate the object.
21203 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
21204 rather than an int.
21205 (Fterminal_live_p): Accept non-integer arguments.
21206 (Fterminal_list): Return terminal objects rather than an ints.
21207
21208 * alloc.c (enum mem_type): New member for `terminal' objects.
21209 (allocate_terminal): New function.
21210 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
21211 Handle terminals.
21212 (mark_terminal): New fun.
21213 (mark_terminals): Move from terminal.c.
21214
21215 * term.c (get_tty_terminal): Don't treat output_initial specially.
21216 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
21217 (delete_tty): Use terminal->name as liveness status.
21218
21219 * termhooks.h (struct terminal): Make it into a pseudovector.
21220 Remove `deleted' replaced by checking `name's nullness.
21221
21222 * print.c (print_object): Handle terminals.
21223
21224 * lisp.h (enum pvec_type): New `terminal' pseudovector.
21225 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
21226
21227 * frame.c (make_terminal_frame):
21228 * keyboard.c (tty_read_avail_input):
21229 * w32term.c (x_delete_terminal):
21230 * xfns.c (Fx_create_frame, x_create_tip_frame):
21231 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
21232
212332007-09-20 Glenn Morris <rgm@gnu.org>
21234
21235 * process.c (Fmake_network_process): Doc fix.
21236
212372007-09-19 Jason Rumney <jasonr@gnu.org>
21238
21239 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
21240
212412007-09-19 Michaël Cadilhac <michael@cadilhac.name>
21242
21243 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
21244 Fix a C warning regarding variable constness.
21245
21246 * xterm.c (handle_one_xevent): Fix a C warning.
21247
212482007-09-18 Jason Rumney <jasonr@gnu.org>
21249
21250 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
21251
212522007-09-17 Jan Djärv <jan.h.d@swipnet.se>
21253
21254 * gtkutil.c (gdpy_def): New variable.
21255 (xg_initialize): Initialize gdpy_def.
21256 (xg_display_close): If no other display exists, set gdpy_def to a
21257 new connection.
21258
212592007-09-16 Jan Djärv <jan.h.d@swipnet.se>
21260
21261 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
21262 when we have no file name for the icon.
21263 (xg_tool_bar_expose_callback): Remove.
21264 (xg_create_tool_bar): Don't connect expose signal to
21265 xg_tool_bar_expose_callback.
21266 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
21267
212682007-09-16 Andreas Schwab <schwab@suse.de>
21269
21270 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
21271 values instead of zapping them.
21272
212732007-09-14 Glenn Morris <rgm@gnu.org>
21274
21275 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
21276 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
21277 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
21278 scope and rename to omfib_buffer for clarity.
21279 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
21280
212812007-09-14 Kenichi Handa <handa@m17n.org>
21282
21283 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
21284
212852007-09-13 Jason Rumney <jasonr@gnu.org>
21286
21287 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
21288
21289 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
21290
21291 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
21292 (mac_term_init): Call here instead, passing rif.
21293
212942007-09-13 Glenn Morris <rgm@gnu.org>
21295
21296 * s/hpux.h: No longer define `static' as nothing.
21297
212982007-09-13 Johan Bockgård <bojohan@gnu.org>
21299
21300 * callint.c (Fcall_interactively): Remove unused var `fun'.
21301
213022007-09-12 Romain Francoise <romain@orebokech.com>
21303
21304 * window.c (prefer_window_split_horizontally, display_buffer):
21305 Revert 2007-09-08 change.
21306
213072007-09-12 Glenn Morris <rgm@gnu.org>
21308
21309 * alloca.c: Remove file.
21310 * Makefile.in (alloca): Do not undef.
21311 (allocaobj, alloca.o): Remove.
21312 (otherobj): Remove allocaobj.
21313 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
21314 * regex.c (C_ALLOCA): Remove all references and code that was only
21315 used when this was defined.
21316 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
21317 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
21318 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
21319
21320 * Makefile.in (SOURCES, unlock, relock): Delete.
21321
21322 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
21323 (menu_grab_callback): All uses changed.
21324
21325 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
21326 (x_reply_selection_request): All uses changed.
21327
213282007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
21329
21330 * lread.c (load_warn_old_style_backquotes): Change message to look
21331 better when it appears in the middle of byte-compiler messages.
21332
213332007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
21334
21335 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
21336
21337 * xterm.c (x_create_terminal): Add comment.
21338
21339 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
21340
213412007-09-10 Richard Stallman <rms@gnu.org>
21342
21343 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
21344
213452007-09-10 Michaël Cadilhac <michael@cadilhac.name>
21346
21347 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
21348 (DEFUN): Document `intspec', use it instead of `prompt'.
21349
21350 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
21351
21352 * data.c (Finteractive_form): If the interactive specification starts
21353 with a `(', use it as a Lisp form.
21354
21355 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
21356 name and file modes.
21357
21358 * callint.c (Fcall_interactively): Comment fixes.
21359
213602007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
21361
21362 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
21363 and compiled functions.
21364
213652007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
21366
21367 * window.c (prefer_window_split_horizontally): New variable.
21368 (display_buffer): Consider splitting window horizontally depending
21369 on prefer_window_split_horizontally.
21370
213712007-09-08 Eli Zaretskii <eliz@gnu.org>
21372
21373 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
21374
213752007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
21376
21377 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
21378
21379 * frame.c (x_set_frame_parameters): Check number is positive before
21380 using XFASTINT.
21381
21382 * window.c (freeze_window_start): Don't presume selected_window holds
21383 a window object.
21384 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
21385
213862007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
21387
21388 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
21389
213902007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
21391
21392 * window.c (Vsplit_window_preferred_function): New var.
21393 (Fdisplay_buffer): Use it.
21394 (syms_of_window): Export, and initialize it.
21395
213962007-09-06 Pixel <pixel@mandriva.com> (tiny change)
21397
21398 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
21399
214002007-09-06 Glenn Morris <rgm@gnu.org>
21401
21402 * gtkutil.c (menu_grab_callback) <cnt>:
21403 * xselect.c (x_reply_selection_request) <cnt>: Move static
21404 variable to file scope.
21405
214062007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
21407
21408 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
21409 consistent values of selected_frame and selected_window.
21410
214112007-09-04 Jason Rumney <jasonr@gnu.org>
21412
21413 * w32console.c (initialize_w32_display): Zero unused hooks.
21414
214152007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
21416
21417 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
21418 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
21419
214202007-09-04 Jason Rumney <jasonr@gnu.org>
21421
21422 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
21423 in w32console.c. Set up input. Remove XXX comments that have been
21424 confirmed as correct.
21425
21426 * s/ms-w32.h (MULTI_KBOARD): Define.
21427
21428 * w32console.c (one_and_only_w32cons): Remove.
21429 (initialize_w32_display): Take terminal argument.
21430
21431 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
21432 initialize_w32_display.
21433 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
21434
21435 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
21436
21437 * keyboard.c (discard_mouse_events): Discard it.
21438 (make_lispy_event): Translate it to a lisp event.
21439 (lispy_wheel_names): Add wheel-left and right events.
21440 (syms_of_keyboard): Enlarge wheel_syms.
21441
21442 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
21443 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
21444
21445 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
21446
21447 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
21448 from WM_MOUSEHWHEEL.
21449 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
21450
21451 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
21452 terminal.
21453
21454 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
21455 keyboard for the terminal.
21456
214572007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
21458
21459 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
21460 (Vresume_tty_hook): Rename from Vresume_tty_functions.
21461 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
21462 and resume-tty-function to resume-tty-hook.
21463 (Fsuspend_tty, Fresume_tty): Use new names.
21464
214652007-09-02 Jan Djärv <jan.h.d@swipnet.se>
21466
21467 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
21468 if it starts with "n:".
21469
214702007-08-31 Jan Djärv <jan.h.d@swipnet.se>
21471
21472 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
21473
214742007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
21475
21476 * frame.h:
21477 * frame.c (Qterm_environment_variable): Remove.
21478 (syms_of_frame): Don't init and staticpro it.
21479
21480 * callproc.c (getenv_internal): Remove special case for $TERM.
21481
21482 * callproc.c (Vinitial_environment): New variable.
21483 (set_initial_environment): Initialize it.
21484 (syms_of_callproc): Declare it.
21485 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
21486 TERM under which a process runs is never related to the TERM in which
21487 Emacs is running.
21488
214892007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
21490
21491 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
21492 * s/darwin.h: ... do it here.
21493
214942007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
21495
21496 * lisp.h (set_initial_environment): Rename from set_global_environment.
21497
21498 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
21499 removed by mistake on the multi-tty branch.
21500
21501 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
21502 (Fmodify_frame_parameters): Return a value.
21503
21504 * image.c (png_load): Comment-out var only used in commented-out code.
21505
21506 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
21507 before passing it to mark_object.
21508
21509 * xfaces.c (internal_resolve_face_name): Return a value.
21510 (internal_resolve_face_name, resolve_face_name_error): Comment out.
21511
21512 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
21513 (x_icon): Comment-out var only used in commented-out code.
21514
215152007-08-29 Romain Francoise <romain@orebokech.com>
21516
21517 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
21518 QUIT hasn't been provided.
21519
215202007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
21521
21522 * callproc.c (child_setup, getenv_internal): Use the
21523 display-environment-variable and term-environment-variable frame params.
21524 (set_initial_environment): Initialise Vprocess_environment.
21525
21526 * config.in: Disable multi-keyboard support on a mac.
21527
21528 * frame.c (Qterm_environment_variable)
21529 (Qdisplay_environment_variable): New variables.
21530 (syms_of_frame): Intern and staticpro them.
21531 (Fmake_terminal_frame): Disable output method test.
21532
21533 * frame.h: Declare them here.
21534
21535 * macfns.c (x_set_mouse_color): Get rif from the frame.
21536 (x_set_tool_bar_lines): Don't use updating_frame.
21537 (mac_window): Add 2 new parameters for consistency with other systems.
21538 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
21539 frame parameters following what is done in X11 and w32. Don't use
21540 FRAME_MAC_DISPLAY_INFO.
21541 (Fx_open_connection, start_hourglass): Remove window-system check.
21542 (x_create_tip_frame): Get the keyboard from the terminal.
21543
21544 * macmenu.c: Reorder includes.
21545 (Fx_popup_menu): Use terminal specific mouse_position_hook.
21546
21547 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
21548 terminal parameter.
21549 (x_clear_frame): Add a frame parameter.
21550 (note_mouse_movement): Get rif from the frame.
21551 (mac_term_init): Initialize the terminal.
21552 (mac_initialize): Make static and move terminal initialization ...
21553 (mac_create_terminal): ... to this new function.
21554
21555 * macterm.h (struct mac_display_info): Add terminal.
21556 (mac_initialize): Delete declaration.
21557
21558 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
21559
21560 * sysdep.c: Comment out text after #endif.
21561
21562 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
21563 is defined. Better initialize ttys in windows. Use terminal
21564 specific mouse_position_hook.
21565
21566 * termhooks.h (union display_info): Add mac_display_info.
21567
21568 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
21569 Set the default minibuffer frame, window_system and the rest of the
21570 frame parameters following what is done in X11.
21571
21572 * w32term.c (w32_initialize): Make static.
21573
21574 * xselect.c (x_handle_selection_clear): Only access
21575 terminal->kboard when MULTI_KBOARD is defined.
21576
21577 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
21578 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
21579
215802007-08-29 Jason Rumney <jasonr@gnu.org>
21581
21582 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
21583 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
21584
21585 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
21586 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
21587
21588 * keyboard.c (restore_kboard_configuration): Only define when
21589 MULTI_KBOARD defined.
21590
21591 * makefile.w32-in: Update dependancies from Makefile.in.
21592 (OBJ1): Add terminal.$(O)
21593
21594 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
21595 Don't define function body.
21596 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
21597
21598 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
21599
21600 * w32.c (request_sigio, unrequest_sigio): Remove.
21601
21602 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
21603 (w32con_clear_frame, w32con_clear_end_of_line)
21604 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
21605 (w32con_delete_glyphs, w32con_set_terminal_window)
21606 (scroll_line, w32_sys_ring_bell): Add frame arg.
21607 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
21608 Add terminal arg.
21609 (PICK_FRAME): Remove.
21610 (w32con_write_glyphs): Use frame specific terminal coding.
21611 (one_and_only_w32cons): New global variable.
21612 (initialize_w32_display): Use it for storing hooks.
21613 (create_w32cons_output): New function.
21614
21615 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
21616 arg a frame.
21617
21618 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
21619 Set window_system.
21620 (x_set_tool_bar_lines): Don't use updating_frame.
21621 (Fx_create_frame): Set terminal and ref count.
21622 (Fx_open_connection): Remove window-system check.
21623
21624 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
21625
21626 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
21627 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
21628 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
21629 Add frame arg.
21630 (x_delete_terminal, w32_create_terminal): New functions.
21631 (w32_term_init): Create a terminal.
21632 (w32_initialize): Move terminal specific initialization to
21633 w32_create_terminal.
21634
21635 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
21636 (w32_clear_rect, w32_clear_area): Use background from frame.
21637 (w32_display_info): Add terminal.
21638 (w32_sys_ring_bell, x_delete_display): Declare here.
21639
21640 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
21641
21642 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
21643
216442007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
21645
21646 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
21647 Fix get_named_tty calls for the controlling tty.
21648
216492007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
21650
194d44e7 21651 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
21652
216532007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
21654
21655 * term.c (tty_insert_glyphs): Add missing first parameter.
21656
216572007-08-29 Károly Lőrentey <karoly@lorentey.hu>
21658
21659 * buffer.c (Fbuffer_list, Fbury_buffer):
21660 Take frame->buried_buffer_list into account.
21661
21662 * cm.c (current_tty): New variable, for cmputc().
21663 (cmputc): Use it.
21664 (cmcheckmagic): Add tty parameter, look up terminal streams there.
21665 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
21666 (cmgoto): Add tty parameter. Pass it on to calccost().
21667 Use emacs_tputs() instead of tputs().
21668
21669 * cm.h (emacs_tputs): New macro to set current_tty, and then call
21670 tputs().
21671 (current_tty): New variable, for cmputc().
21672 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
21673
21674 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
21675 (internal_condition_case, internal_condition_case_1)
21676 (internal_condition_case_2): Don't abort when x_catching_errors.
21677
21678 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
21679 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
21680 prevent crashes caused by bogus longjmps in read_char.
21681
21682 * keymap.h (Fset_keymap_parent): Add EXFUN.
21683
21684 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
21685 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
21686 Remove redundant definition.
21687
21688 * macfns.c (x_set_mouse_color, x_make_gc):
21689 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21690
21691 * w32term.c (x_free_frame_resources):
21692 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21693 (w32_initialize): Use the accessor macros for terminal characteristics.
21694
21695 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
21696 Use the accessor macros for terminal characteristics.
21697 * msdos.c (internal_terminal_init): Use the accessor macros for
21698 terminal characteristics.
21699 (ScreenVisualBell, internal_terminal_init):
21700 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21701
21702 * termopts.h (no_redraw_on_reenter): Declare.
21703
21704 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
21705 (mark_terminals, mark_ttys): Declare.
21706 (Fgarbage_collect): Call them.
21707 (mark_object): Mark buried_buffer_list.
21708
21709 * prefix-args.c: Include stdlib.h for exit.
21710
21711 * syssignal.h: Add comment.
21712
21713 * indent.c: Include stdio.h.
21714
21715 * window.h (Vinitial_window_system): Declare.
21716 (Vwindow_system): Delete declaration.
21717
21718 * fontset.c (Finternal_char_font): Use FRAME_RIF.
21719
21720 * image.c (lookup_image): Don't initialize `c' until the xasserts
21721 have been run.
21722
21723 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
21724 FRAME_FOREGROUND_PIXEL.
21725
21726 * print.c (print_preprocess): Don't lose print_depth levels while
21727 iterating.
21728
21729 * widget.c (update_from_various_frame_slots):
21730 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21731
21732 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
21733 frames.
21734 (window_internal_height): Remove bogus make_number call.
21735 (init_window_once): Call make_terminal_frame with two zero parameters.
21736
21737 * fileio.c (Fread_file_name): Update comment.
21738
21739 * callint.c (Fcall_interactively):
21740 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
21741 Make sure it is correctly unwound.
21742
21743 * xsmfns.c (x_session_close): New function.
21744
21745 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
21746 Delete declarations.
21747
21748 * xterm.h: Remove declaration for x_fully_uncatch_errors.
21749 (x_output): Remove background_pixel and foreground_pixel fields.
21750 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
21751 (x_delete_device, x_session_close): Declare.
21752
21753 * lread.c: Include setjmp.h. Update declaration of `read_char'.
21754 (read_filtered_event): Call `read_char' with a local
21755 `wrong_kboard_jmpbuf'.
21756
21757 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
21758 Don't call single_kboard_state. Use FRAME_RIF.
21759
21760 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
21761 systems.
21762
21763 * lisp.h (set_process_environment): Rename to `set_global_environment'.
21764 (Fframe_with_environment, Fset_input_meta_mode)
21765 (Fset_quit_char): EXFUN.
21766 (x_create_device, tty_output, terminal, tty_display_info): Declare.
21767 (init_sys_modes, reset_sys_modes): Update prototypes.
21768 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
21769
21770 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
21771 Vlocal_key_translation_map, and Vkeyboard_translate_table.
21772 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
21773 Delete declarations.
21774 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
21775 (temporarily_switch_to_single_kboard, tty_read_avail_input):
21776 New declarations.
21777
21778 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
21779 already does that during init_display(). Call syms_of_keymap
21780 before syms_of_keyboard. Call `syms_of_terminal'.
21781 Call set_initial_environment, not set_process_environment.
21782 (shut_down_emacs): Call reset_all_sys_modes() instead of
21783 reset_sys_modes().
21784
21785 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
21786 (internal_resolve_face_name, resolve_face_name_error): New functions.
21787 (resolve_face_name): Protect against loops and errors thrown by Fget.
21788 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
21789 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
21790
21791 * scroll.c: Replace CURTTY() with local variables throughout the
21792 file (where applicable).
21793 (calculate_scrolling, calculate_direct_scrolling)
21794 (scrolling_1, scroll_cost): Use the accessor macros for terminal
21795 characteristics.
21796
21797 * keymap.c (Vfunction_key_map): Remove.
21798 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
21799 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
21800 (Vkey_translation_map): Remove.
21801 (syms_of_keymap): Remove DEFVAR for key-translation-map.
21802 (Fdescribe_buffer_bindings)
21803 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
21804 Update for terminal-local key-translation-map.
21805
21806 * Makefile.in (callproc.o): Update dependencies.
21807 (lisp, shortlisp): Add termdev.elc.
21808 (obj): Add terminal.o.
21809 (terminal.o): Add dependencies.
21810 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
21811 (data.o, fns.o): Add termhooks.h dependency.
21812 (SOME_MACHINE_LISP): Add dnd.elc.
21813 (minibuf.o): Fix typo.
21814 Update dependencies.
21815
21816 * data.c (do_symval_forwarding, store_symval_forwarding)
21817 (find_symbol_value): Use the selected frame's keyboard, not
21818 current_kboard.
21819
21820 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
21821 Vwindow_system.
21822
21823 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
21824 Fmenu_bar_open.
21825 (syms_of_xmenu): Update defsubr.
21826 (mouse_position_for_popup, Fx_popup_menu)
21827 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
21828 (set_frame_menubar, free_frame_menubar)
b97439ce 21829 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
21830 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
21831 an X frame.
21832
21833 * xselect.c (x_own_selection): Abort if not an X frame.
21834 (some_frame_on_display): Check if it is an X frame.
21835 (x_handle_selection_clear): Deal with MULTI_KBOARD.
21836
21837 * coding.c: Include frame.h and termhooks.h.
21838 (terminal_coding, keyboard_coding): Delete.
21839 (Fset_terminal_coding_system_internal)
21840 (Fset_keyboard_coding_system_internal)
21841 (Fkeyboard_coding_system)
21842 (Fterminal_coding_system): Add a terminal parameter.
21843 Get terminal_coding from the terminal.
21844 (init_coding_once): Don't call setup_coding_system here.
21845
21846 * dispextern.h (set_scroll_region, turn_off_insert)
21847 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
21848 (tty_clear_end_of_line, tty_setup_colors)
21849 (delete_tty, updating_frame)
21850 (produce_special_glyphs, produce_glyphs, write_glyphs)
21851 (insert_glyphs): Remove.
21852 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
21853 (tty_turn_off_highlight, get_tty_size): Add declaration.
21854 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
21855
21856 * frame.h (enum output_method): Add output_initial.
21857 (struct x_output): Delete.
21858 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
21859 Access foreground_pixel and background_pixel directly from the frame.
21860 (tty_display): Delete.
21861 (struct frame): Add buried_buffer_list, foreground_pixel,
21862 background_pixel and terminal. Delete kboard.
21863 (union output_data): Add tty.
21864 (FRAME_KBOARD): Get the kboard from the terminal.
21865 (FRAME_INITIAL_P): New macro.
21866 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
21867 (Qterm_environment_variable, Qdisplay_environment_variable)
21868 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
21869 New declarations.
21870
21871 * termchar.h (tty_output, tty_display_info): New structures.
21872 (tty_list): Declare.
21873 (FRAME_TTY, CURTTY): New macros.
21874 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
21875 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
21876 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
21877 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
21878
21879 * callproc.c: Include frame.h and termhooks.h, for terminal
21880 parameters.
21881 (add_env): New function.
21882 (child_setup): Use it.
21883 (child_setup, getenv_internal): Handle the new Vprocess_environment.
21884 (getenv_internal): Fix get_terminal_param call.
21885 (Fgetenv_internal, egetenv): Update doc.
21886 (syms_of_callproc): Initialize Vprocess_environment to nil.
21887 Register and initialize them. Remove obsolete defvars. Update doc
21888 strings.
21889 (child_setup): Handle Vlocal_environment_variables.
21890 (getenv_internal): Add terminal parameter.
21891 Handle Vlocal_environment_variables.
21892 (Fgetenv_internal): Add terminal parameter.
21893 (child_setup, getenv_internal, Fgetenv_internal): Store the local
21894 environment in a frame (not terminal) parameter. Update doc strings.
21895 (set_initial_environment): Rename from set_global_environment.
21896 Store Emacs environment in initial frame parameter.
21897
21898 * xdisp.c (redisplay_internal): Update references to
21899 `previous_terminal_frame'.
21900 (display_mode_line, Fformat_mode_line): Replace calls to
21901 `push_frame_kboard' with `push_kboard'.
21902 (get_glyph_string_clip_rects): Add extra parentheses and
21903 braces to prevent compiler warnings.
21904 (calc_pixel_width_or_height): Add xassert to check that the
21905 frame is alive. Don't call `lookup_image' on a termcap frame.
21906 (message2_nolog, message3_nolog, redisplay_internal)
21907 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
21908 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
21909 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
21910 (Fx_display_pixel_width, Fx_display_pixel_height)
21911 (Fx_display_planes, Fx_display_color_cells)
21912 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
21913 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
21914 (Fx_display_backing_store, Fx_display_visual_class)
21915 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
21916 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
21917
21918 * xfns.c (x_set_foreground_color x_set_background_color)
21919 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
21920 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21921 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
21922 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
21923 terminal that is being deleted.
21924 (Fx_create_frame): Use `store_frame_param' to set `window-system'
21925 frame parameter, and make sure it overrides any user-supplied setting.
21926 (Fx_close_connection, Fx_synchronize): Unify argument names with
21927 the rest of the DEFUNs.
21928
21929 * dispnew.c (Fsend_string_to_terminal): Update call to
21930 `get_tty_terminal'.
21931 (Fredraw_frame, Fsend_string_to_terminal)
21932 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
21933 FRAME_TERMCAP_P and FRAME_TTY.
21934 (window_change_signal): Don't believe width/height values that are
21935 impossibly small.
21936 (Vinitial_window_system): Rename from Vwindow_system.
21937 (termscript, Wcm, rif): Delete.
21938
21939 * termhooks.h (struct terminal): New struct containing the
21940 previously global text display hooks and new members NAME,
21941 DELETED and PARAM_ALIST.
21942 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
21943 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
21944 (FRAME_RIF): New macros.
21945 (get_terminal_param, get_device): New declarations.
21946 (termscript): Delete declaration.
21947
21948 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
21949 (XTflash, x_free_frame_resources, x_scroll_bar_create)
21950 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
21951 FRAME_FOREGROUND_PIXEL.
21952 (x_fully_uncatch_errors): Disable definition.
21953 (x_scroll_bar_expose): Fix reference to foreground pixel.
21954 (XTread_socket): Disable loop on all X displays.
21955 (x_delete_terminal): Don't set terminal->deleted and let
21956 delete_terminal delete the frames on the terminal.
21957 (x_delete_display): Doc update to reflect changes in
21958 delete_terminal.
21959 (x_display_info) <terminal>: Move member earlier in the struct.
21960 (deleting_tty): Remove old variable.
21961 (Fsuspend_tty): Call clear_tty_hooks.
21962 (Fresume_tty, init_tty): Call set_tty_hooks.
21963 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
21964 errors on X frames.
21965 (x_catch_errors_unwind): Abort if x_error_message is NULL.
21966 (handle_one_xevent): Initialize `f' to NULL.
21967 (x_delete_terminal, x_create_terminal): New functions.
21968 (XTset_terminal_modes, XTreset_terminal_modes)
21969 (XTread_socket, x_connection_closed, x_term_init)
21970 (x_term_init, x_delete_display): Add terminal parameter.
21971 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
21972 X connections.
21973
21974 * frame.c: Include termchar.h.
21975 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
21976 (Qwindow_system, Qenvironment, Qterm_environment_variable)
21977 (Qdisplay_environment_variable): New vars.
21978 (Fframep): Deal with output_initial.
21979 (Fframe-live-p): Doc fix.
21980 (Fwindow-system): New function.
21981 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
21982 (make_terminal_frame): Don't create frames on a terminal that is
21983 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21984 (store_frame_param): Check for found_for_frame before calling XFRAME.
21985 (Fmake_terminal_frame): Handle NULL tty names correctly.
21986 (syms_of_frame): Enhance doc string of `default-frame-alist'.
21987 (Fdelete_frame): Remove unused variable `count'. Don't allow other
21988 frames to refer to a deleted frame in their 'environment parameter.
21989 (Fframe_with_environment): New function.
21990 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
21991 (get_future_frame_param): New function.
21992 (Fmake_terminal_frame): Use it.
21993 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
21994
21995 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
21996 * sysdep.c (reset_sys_modes): Update for renames.
21997
21998 * keyboard.c (tty_read_avail_input): New function.
21999 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
22000 (syms_of_keyboard): Defsubr them.
22001 (Fset_input_meta_mode, Fset_quit_char): New functions.
22002 (Fset_input_mode): Split to above functions.
22003 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
22004 parameter. Use it in call to `read_char'.
22005 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
22006 Set wrong_kboard_jmpbuf correctly in recursive calls.
22007 Use current_kboard to access Vkeyboard_translate_table.
22008 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
22009 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
22010 Update longjmp invocations. Remember the original current_kboard,
22011 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
22012 changes it. Comment out unnecessary calls to
22013 `record_single_kboard_state' and `any_kboard_state'.
22014 Update recursive calls.
22015 (wrong_kboard_jmpbuf): Remove global variable.
22016 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
22017 Handle deleted interrupted_kboards correctly; that is a legal
22018 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
22019 and read_char calls. Abort if interrupted_kboard died in read_char.
22020 (any_kboard_state, single_kboard_state)
22021 (push_frame_kboard): Remove function.
22022 (pop_kboard): Switch out of single_kboard mode if the kboard has
22023 been deleted. Remove unused variable. Help debugging by not
22024 changing current_kboard unnecessarily. Set current_kboard to the
22025 kboard of the selected frame when the stored kboard object has
22026 been deleted before pop_kboard.
22027 (temporarily_switch_to_single_kboard): Change first parameter to a
22028 frame pointer. Throw an error when caller wants to change kboards
22029 while in single_kboard mode. Don't push_kboard if we weren't in
22030 single kboard state. Don't pop_kboard if we popped into any
22031 kboard state.
22032 (restore_kboard_configuration): Abort if pop_kboard changed the
22033 kboard in single_kboard mode. Call pop_kboard only after setting
22034 up single_kboard mode.
22035 (Frecursive_edit): Switch to single_kboard mode only in nested
22036 command loops.
22037 (cmd_error, command_loop, command_loop_1, timer_check):
22038 Comment out unnecessary call to `any_kboard_state' and
22039 `record_single_kboard_state'.
22040 (delete_kboard): Exit single_kboard mode if we have just deleted
22041 that kboard. Use FRAME_KBOARD.
22042 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
22043 `fatal_error_signal'.
22044 (record_single_kboard_state): Don't push_kboard if we weren't in
22045 single kboard state. Don't pop_kboard if we popped into any
22046 kboard state.
22047 (push_frame_kboard): Rename to push_kboard.
22048 (kbd_buffer_get_event): Use FRAME_TERMINAL.
22049 (read_avail_input): Read input from all terminals.
22050 (mark_kboards): Also mark Vkeyboard_translate_table.
22051 (kbd_buffer_store_event_hold): Simplify condition.
22052 (read_key_sequence): Reinitialize fkey and keytran at each replay.
22053 (Vkeyboard_translate_table): Move to struct kboard.
22054 (init_kboard): Initialize Vkeyboard_translate_table.
22055 (syms_of_keyboard): Use DEFVAR_KBOARD to define
22056 Vkeyboard_translate_table. Update doc strings. Update docs of
22057 local-function-key-map and function-key-map.
22058
22059 * terminal.c: New file.
22060
22061 * term.c: Include errno.h.
22062 (Vring_bell_function, device_list, initial_device)
22063 (next_device_id, ring_bell, update_begin, update_end)
22064 (set_terminal_window, cursor_to, raw_cursor_to)
22065 (clear_to_end, clear_frame, clear_end_of_line)
22066 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
22067 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
22068 (syms_of_term): Move their initialization to terminal.c.
22069 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
22070 (Ftty_display_color_cells)
22071 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
22072 (clear_tty_hooks, set_tty_hooks)
22073 (init_tty, maybe_fatal): New functions.
22074 (Ftty_type): Return nil if terminal is not on a tty instead of
22075 throwing an error. Doc update.
22076 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
22077 Doc update. Initialize new subrs and variables.
22078 (delete_tty): Use terminal->deleted.
22079 (tty_set_terminal_modes): Rename from set_terminal_modes.
22080 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
22081 (set_scroll_region): Rename to `tty_set_scroll_region'.
22082 (turn_on_insert): Rename to `tty_turn_on_insert'.
22083 (turn_off_insert): Rename to `tty_turn_off_insert'.
22084 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
22085 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
22086 (toggle_highligh): Rename to `tty_toggle_highlight'.
22087 (background_highlight): Rename to `tty_background_highlight'.
22088 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
22089 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
22090 (tty_set_scroll_region, tty_background_highlight)
22091 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
22092 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
22093 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
22094 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
22095 Add static modifier.
22096 (tty_reset_terminal_modes, tty_set_terminal_window)
22097 (tty_set_scroll_region, tty_background_highlight)
22098 (tty_highlight_if_desired, tty_cursor_to)
22099 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
22100 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
22101 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
22102 renames.
22103
221042007-08-28 Jan Djärv <jan.h.d@swipnet.se>
22105
22106 * keyboard.c: Qrtl is new.
22107 (parse_tool_bar_item): Handle :rtl keyword.
22108 (syms_of_keyboard): Intern :rtl keyword.
22109
22110 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
22111
22112 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
22113 so no Lisp code is executed.
22114 (file_for_image, find_rtl_image): New functions.
22115 (xg_get_image_for_pixmap): Use file_for_image.
22116 (update_frame_tool_bar): If direction is RTL, use RTL image if
22117 defined. Use Gtk stock images if defined.
22118
221192007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22120
22121 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
22122 for nonexistent or zero-width glyph in composition glyph.
22123
221242007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
22125
22126 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
22127
22128 * xdisp.c (Finvisible_p): New function.
22129 (syms_of_xdisp): defsubr it.
22130
221312007-08-24 Juanma Barranquero <lekktu@gmail.com>
22132
22133 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
22134 Doc fixes.
22135
221362007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22137
22138 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
22139
221402007-08-24 Martin Rudalics <rudalics@gmx.at>
22141
22142 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
22143 whether decoding has modified buffer contents.
22144
221452007-08-24 Jason Rumney <jasonr@gnu.org>
22146
22147 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
22148 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
22149 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
22150 (init_svg_functions) [HAVE_NTGUI]: New function.
22151 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
22152 (svg_load_image): Use them.
22153 (svg_load_image) [HAVE_NTGUI]: Implement background.
22154
221552007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22156
22157 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
22158 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
22159 (LIBX): Remove @RSVG_LIBS@.
22160 (LIBES): Add $(RSVG_LIBS).
22161
22162 * image.c (svg_load_image): Blend with specified background if exists.
22163 Use IMAGE_BACKGROUND. Add Mac OS Support.
22164
22165 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
22166 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
22167 Remove macros.
22168 [MAC_OSX] (socket_callback): Do nothing.
22169 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
22170 ReceiveNextEvent.
22171 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
22172 socket_callback.
22173 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
22174
221752007-08-22 Glenn Morris <rgm@gnu.org>
22176
22177 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
22178
221792007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
22180
22181 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
22182
22183 * image.c: Add support for SVG images. Some additional comments
22184 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
22185 (svg_image_p): New function to test for SVG image.
22186 (svg_load): New function to load SVG image.
22187 (svg_load_image): New function, helper for svg_load.
22188 (Qsvg): New Lisp_object.
22189 (svg_keyword_index): New enum.
22190 (svg_format): New static `image_keyword' struct.
22191 (svg_type): New static `image_type' struct.
22192 (librsvg/rsvg.h): Include it.
22193
221942007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
22195
22196 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
22197
221982007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
22199
22200 * lread.c (Qold_style_backquotes): New var.
22201 (syms_of_lread): Init and staticpro it.
22202 (load_warn_old_style_backquotes): New fun.
22203 (Fload): Use them to warn about old style backquotes.
22204 (end_of_file_error, Fload): Remove unused vars.
22205
22206 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
22207
22208 * lread.c (Vold_style_backquotes): New var.
22209 (syms_of_lread): Init and export it to Elisp.
22210 (read1): Set it when we find an old-style (back)quote.
22211
222122007-08-22 Jason Rumney <jasonr@gnu.org>
22213
22214 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
22215
222162007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
22217
22218 * puresize.h (BASE_PURESIZE): Increase to 1140000.
22219
222202007-08-19 Richard Stallman <rms@gnu.org>
22221
22222 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
22223
222242007-08-19 Andreas Schwab <schwab@suse.de>
22225
22226 * alloc.c (pure): Round PURESIZE up.
22227
222282007-08-17 Jan Djärv <jan.h.d@swipnet.se>
22229
22230 * xterm.c (handle_one_xevent): Remove check that mouse click is in
22231 active frame.
22232
222332007-08-16 Richard Stallman <rms@gnu.org>
22234
22235 * eval.c (Fcommandp): Add parens to clarify.
22236
22237 * minibuf.c (Fall_completions): Use enum for type of table.
22238
22239 * emacs.c (USAGE2): Improve text.
22240
222412007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
22242
22243 * term.c (tty_default_color_capabilities): Declare static
22244 variables in file scope, to avoid HPUX compiler problem.
22245
222462007-08-13 Jan Djärv <jan.h.d@swipnet.se>
22247
22248 * gtkutil.c (update_frame_tool_bar): Use -1 as index
22249 to gtk_toolbar_insert.
22250
222512007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
22252
22253 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
22254
22255 * insdel.c (reset_var_on_error): New fun.
22256 (signal_before_change, signal_after_change):
22257 Use it to reset (after|before)-change-functions to nil in case of error.
22258 Bind inhibit-modification-hooks to t.
22259 Don't bind (after|before)-change-functions to nil while they run.
22260
222612007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22262
22263 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
22264 filling pixmap with stippled background.
22265
222662007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22267
22268 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
22269 Don't use invisible frame as parent window for repositioning.
22270
222712007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
22272
22273 * print.c (new_backquote_output): Rename from old_backquote_output.
22274 (print): Inverse its logic (according to its name) so as to match the
22275 behavior of new_backquote_flag in lread.c.
22276
222772007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22278
22279 * gmalloc.c (posix_memalign): New function.
22280
22281 * macterm.c (frame_highlight, frame_unhighlight): Don't call
22282 ActivateControl/DeactivateControl here.
22283 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
22284 frame-notice-user-settings is non-nil.
22285 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
22286 for kEventParamFMFontStyle.
22287 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
22288 mac_pass_command_to_system and mac_pass_control_to_system here.
22289 (XTread_socket): Call ActivateControl/DeactivateControl here.
22290 (XTread_socket) [TARGET_API_MAC_CARBON]:
22291 Check mac_pass_command_to_system and mac_pass_control_to_system here.
22292 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
22293 for window repositioning.
22294
222952007-08-08 Glenn Morris <rgm@gnu.org>
22296
22297 * Replace `iff' in doc-strings and comments.
22298
222992007-08-07 Chong Yidong <cyd@stupidchicken.com>
22300
22301 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
22302
223032007-08-07 Martin Rudalics <rudalics@gmx.at>
22304
22305 * fileio.c (Finsert_file_contents): Run format-decode and
22306 after_insert_file_functions on entire buffer when REPLACE is
22307 non-nil and inhibit modification_hooks and point_motion_hooks.
22308 For consistency, run after_insert_file_functions iff something
22309 got inserted. Move signal_after_change and update_compositions
22310 after code running after_insert_file_functions. Make sure that
22311 undo_list doesn't record intermediate steps of the decoding process.
22312
223132007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22314
22315 * emacs.c (main)
22316 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
22317 Call malloc_enable_thread on interactive startup.
22318
22319 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
22320 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
22321 [USE_PTHREAD]: Conditionalize with it.
22322 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
22323 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
22324 New functions.
22325
223262007-08-06 Chong Yidong <cyd@stupidchicken.com>
22327
22328 * xdisp.c (redisplay_window): When restoring original buffer
22329 position, make sure it is still valid.
22330
22331 * image.c (png_load): Ignore png-supplied background color.
22332
223332007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22334
22335 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
22336 Use kCFAbsoluteTimeIntervalSince1970.
22337
22338 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
22339 New variable.
22340 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
22341 event loop should be quit.
22342 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
22343 Quit dialog event loop if quit_dialog_event_loop is set.
22344
22345 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
22346 (Selection): New typedef. Use instead of ScrapRef.
22347 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
22348 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
22349 (mac_clear_selection): Rename from clear_scrap.
22350 (get_flavor_type_from_symbol): New argument SEL and subsume function of
22351 scrap_has_target_type. All uses changed.
22352 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
22353 (mac_selection_has_target_p): New functions.
22354 (mac_put_selection_value): Rename from put_scrap_string.
22355 (mac_get_selection_value): Rename from get_scrap_string.
22356 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
22357 (put_scrap_private_timestamp, scrap_has_target_type)
22358 (get_scrap_private_timestamp): Remove functions.
22359 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
22360 (x_own_selection, x_get_local_selection):
22361 Use mac_valid_selection_value_p.
22362 (x_own_selection): Don't use put_scrap_private_timestamp.
22363 Record OWNERSHIP-INFO into Vselection_alist instead.
22364 (x_get_local_selection): Don't check type if request is local.
22365 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
22366 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
22367
223682007-08-04 Jan Djärv <jan.h.d@swipnet.se>
22369
22370 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
22371 add comment explaining why.
22372
223732007-08-03 Richard Stallman <rms@gnu.org>
22374
22375 * fileio.c (Fvisited_file_modtime): Use make_time.
22376
223772007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
22378
22379 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
22380 build.
22381
223822007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
22383
22384 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
22385
223862007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
22387
22388 * puresize.h (BASE_PURESIZE): Increase to 1130000.
22389
223902007-07-30 Richard Stallman <rms@gnu.org>
22391
22392 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
22393
223942007-07-29 Jan Djärv <jan.h.d@swipnet.se>
22395
22396 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
22397
223982007-07-28 Nick Roberts <nickrob@snap.net.nz>
22399
22400 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
22401 remote default-directory.
22402
22403 * buffer.c (mode-line-format): Update doc string.
22404
224052007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22406
22407 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
22408 scroll bar gap.
22409 (x_scroll_bar_create): Set bar->fringe_extended_p.
22410 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
22411 on frame edge. Check fringe background extension. Don't clear
22412 extended fringe background area.
22413
22414 * w32term.h (struct scroll_bar): New member fringe_extended_p.
22415 (w32_fill_area): Enclose multiple statements with do ... while (0).
22416
22417 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
22418 Extend fringe background to scroll bar gap.
22419 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
22420 Set bar->fringe_extended_p.
22421 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
22422 Put leftmost/rightmost scroll bars on frame edge. Check fringe
22423 background extension. Don't clear extended fringe background area.
22424
22425 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
22426 New member fringe_extended_p.
22427
224282007-07-25 Glenn Morris <rgm@gnu.org>
22429
22430 * Relicense all FSF files to GPLv3 or later.
22431
22432 * COPYING: Switch to GPLv3.
22433
224342007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
22435
22436 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
22437
22438 * data.c (Finteractive_form): Check for the presence of an
22439 `interactive-form' symbol property more thoroughly.
22440
22441 * data.c (Finteractive_form): Use an `interactive-form' property if
22442 present, analogous to the function-documentation property.
22443
224442007-07-24 Jason Rumney <jasonr@gnu.org>
22445
22446 * w32fns.c (x_real_positions): Get real position from OS instead of
22447 calculating it.
22448
224492007-07-23 Jason Rumney <jasonr@gnu.org>
22450
22451 * filelock.c (current_lock_owner): Allow for @ sign in username.
22452
224532007-07-22 Nick Roberts <nickrob@snap.net.nz>
22454
22455 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
22456 remote default-directory.
22457
22458 * buffer.c (mode-line-format): Describe above case in doc string.
22459
224602007-07-20 Eli Zaretskii <eliz@gnu.org>
22461
22462 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
22463 Define if not defined.
22464
224652007-07-18 Jason Rumney <jasonr@gnu.org>
22466
22467 * w32proc.c (w32_executable_type): Handle 64 bit executables.
22468
224692007-07-18 Richard Stallman <rms@gnu.org>
22470
22471 * data.c (Fsetq_default): Doc fix.
22472
22473 * eval.c (Fsetq): Doc fix.
22474
224752007-07-18 Juanma Barranquero <lekktu@gmail.com>
22476
22477 * coding.c (Ffind_operation_coding_system):
22478 * eval.c (For, Fand): Doc fixes.
22479 Reported by Johan Bockgård.
22480
224812007-07-18 Jan Djärv <jan.h.d@swipnet.se>
22482
22483 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
22484
22485 * xterm.h: Declare x_ewmh_activate_frame.
22486
22487 * xterm.c (x_ewmh_activate_frame): New function.
22488 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
22489
224902007-07-17 Martin Rudalics <rudalics@gmx.at>
22491
22492 * window.c (Fdisplay_buffer): If largest or LRU window is the
22493 only window, split it even if it is not eligible for splitting.
22494 This restores the original behavior broken by the 2007-07-15
22495 change.
22496
224972007-07-17 Glenn Morris <rgm@gnu.org>
22498
22499 * abbrev.c (abbrev_check_chars): New function.
22500 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
22501 Call abbrev_check_chars to check abbrev characters are word
22502 constituents. Doc fix.
22503
225042007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
22505
22506 * process.c (Fstart_process, Fmake_network_process)
22507 (read_process_output): Fix up last changes.
22508
225092007-07-16 Eli Zaretskii <eliz@gnu.org>
22510
22511 * makefile.w32-in (clean): Don't delete *~.
22512
225132007-07-16 Andreas Schwab <schwab@suse.de>
22514
22515 * window.c (Fdisplay_buffer): Use NILP.
22516 (Fset_window_scroll_bars): Likewise.
22517
225182007-07-15 Martin Rudalics <rudalics@gmx.at>
22519
22520 * window.c (window_min_size_2): New function.
22521 (window_min_size_1, size_window, Fdisplay_buffer)
22522 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
22523 windows without mode- or header-lines when window-min-height is
22524 too small.
22525 (size_window): Reset nodelete_p after testing it, following an
22526 earlier note by Kim F. Storm.
22527 (display_buffer): Do not set split_height_threshold to twice the
22528 value of window_min_height to avoid changing the value of a
22529 customizable variable. Rather explicitly check whether the
22530 height of the window that shall be splitted is at least as large
22531 as split_height_threshold.
22532 (Fwindow_full_width_p): New defun.
22533 (syms_of_window): Defsubr it.
22534
22535 * window.h: Add EXFUN for Fwindow_full_width_p.
22536
225372007-07-14 Jason Rumney <jasonr@gnu.org>
22538
22539 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
22540
225412007-07-14 Richard Stallman <rms@gnu.org>
22542
22543 * eval.c (maybe_call_debugger): New function.
22544 (find_handler_clause): Use maybe_call_debugger.
22545 Call it when the handler says `debug'.
22546 Eliminate DEBUGGER_VALUE_PTR.
22547 (Fsignal): Eliminate debugger_value.
22548 (Qdebug): New variable.
22549 (syms_of_eval): Initialize it.
22550
225512007-07-14 Juanma Barranquero <lekktu@gmail.com>
22552
22553 * eval.c (Fprogn):
22554 * keyboard.c (Ftrack_mouse):
22555 * print.c (Fwith_output_to_temp_buffer):
22556 * window.c (Fsave_window_excursion): Doc fix.
22557
225582007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
22559
22560 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
22561
225622007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
22563
22564 * process.h (struct Lisp_Process): Turn slots infd, outfd,
22565 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
22566 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
22567 read_output_delay, and read_output_skip from Lisp_Objects to ints.
22568 Remove unused encoding_carryover.
22569 * process.c: Adjust all functions accordingly.
22570
225712007-07-12 Richard Stallman <rms@gnu.org>
22572
22573 * term.c: Include unistd.h only if HAVE_UNISTD_H.
22574
225752007-07-11 Jason Rumney <jasonr@gnu.org>
22576
22577 * makefile.w32-in (LIBS): Include OLE32.
22578
22579 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
22580 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
22581
225822007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
22583
22584 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
22585 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
22586 from a Lisp_Object into a bare pointer.
22587 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
22588 Adjust the code correspondingly.
22589
22590 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
22591
22592 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
22593 (term_show_mouse_face): Remove unused var `j'.
22594 (handle_one_term_event): Remove unused vars `i' and `j'.
22595 Don't cast return value of ttyname since it's not necessary.
22596
225972007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
22598
22599 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
22600 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
22601
22602 * fns.c (map_char_table): Use an array of int for `indices' rather than
22603 an array of Lisp_Objects (which are only ever integers anyway).
22604 (Fmap_char_table): Update caller.
22605 * lisp.h: Update prototype.
22606 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
22607 * fontset.c (Ffontset_info):
22608 * casetab.c (set_case_table): Update callers.
22609
22610 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
22611
22612 * keymap.c (struct accessible_keymaps_data)
22613 (struct where_is_internal_data): New structures.
22614 (accessible_keymaps_1, where_is_internal_1): Use them to change
22615 interface to adhere to the one used by map_keymap.
22616 (Faccessible_keymaps, where_is_internal): Use map_keymap.
22617 (accessible_keymaps_char_table, where_is_internal_2): Remove.
22618
22619 * keymap.h (map_keymap_function_t): More informative prototype.
22620
226212007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
22622
22623 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
22624 (looking_at_1): Don't change search_regs and last_thing_searched
22625 if `inhibit-changing-match-data' is non-nil.
22626 (string_match_1, search_buffer, set_search_regs): Likewise.
22627 (syms_of_search): Add Lisp level definition for
22628 `inhibit-changing-match-data' and set it to nil.
22629 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
22630 start and end of the match, instead of using values in search_regs.
22631
226322007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
22633
22634 * minibuf.c (Fcompleting_read): New value `confirm-only'
22635 for `require-match'.
22636
226372007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
22638
22639 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
22640 part of the 2007-06-27 change to syms_of_fileio.
22641
226422007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22643
22644 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
22645 Check WINDOWP before using XWINDOW. Consolidate return statements.
22646
226472007-06-27 Richard Stallman <rms@gnu.org>
22648
22649 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
22650
226512007-06-27 Juanma Barranquero <lekktu@gmail.com>
22652
22653 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
22654
226552007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22656
22657 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
22658 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
22659 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
22660 (_free_internal, memalign): Use them.
22661 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
22662 Initialize to PTHREAD_MUTEX_INITIALIZER.
22663 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
22664 (morecore_nolock): Rename from morecore. All uses changed.
22665 Use only nolock versions of internal allocation functions.
22666 (_malloc_internal_nolock, _realloc_internal_nolock)
22667 (_free_internal_nolock): New functions created from
22668 _malloc_internal, _realloc_internal, and _free_internal.
22669 (_malloc_internal, _realloc_internal, _free_internal): Use them.
22670 Copy hook value to automatic variable before its use.
22671 (memalign): Copy hook value to automatic variable before its use.
22672
226732007-06-26 Kenichi Handa <handa@m17n.org>
22674
22675 * coding.c (Ffind_operation_coding_system): Docstring improved.
22676 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
22677
226782007-06-25 David Kastrup <dak@gnu.org>
22679
22680 * keymap.c (Fcurrent_active_maps): Add `position' argument.
22681 (Fwhere_is_internal): Adjust call to `current-active-maps' to
22682 cater for additional parameter.
22683
22684 * keymap.h: Adjust number of parameters to `current-active-maps'.
22685
22686 * doc.c (Fsubstitute_command_keys): Adjust call of
22687 `current-active-maps'.
22688
226892007-06-25 David Kastrup <dak@gnu.org>
22690
22691 * callint.c (Fcall_interactively): Make the parsing of interactive
22692 specs somewhat more readable.
22693
226942007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22695
22696 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
22697 to scroll bar gap also when bitmap fills fringe. Draw only foreground
22698 if extended background has already been filled.
22699
227002007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22701
22702 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
22703 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
22704
22705 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
22706 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
22707 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
22708 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
22709 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
22710 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
22711 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
22712 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
22713 Run timers during dialog popup.
22714 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
22715
227162007-06-21 Jason Rumney <jasonr@gnu.org>
22717
22718 * image.c (convert_mono_to_color_image): Swap fore and background.
22719
227202007-06-20 Jason Rumney <jasonr@gnu.org>
22721
22722 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
22723 (w32_free_bdf_font): Unmap memory not handle.
22724
227252007-06-20 Sam Steingold <sds@gnu.org>
22726
22727 * gmalloc.c (__morecore): Fix the declaration to comply with the
22728 definition.
22729
227302007-06-20 Juanma Barranquero <lekktu@gmail.com>
22731
22732 * w32term.c (w32_delete_display): Remove leftover declaration.
22733 (w32_define_cursor, w32_initialize): Make static.
22734
22735 * w32.c (_wsa_errlist): Fix typo in error message.
22736 (init_environment): Ignore any environment variable from the
22737 registry having a null value.
22738
227392007-06-20 Glenn Morris <rgm@gnu.org>
22740
22741 * Makefile.in (LIBGIF): Default to -lgif.
22742
227432007-06-17 Jason Rumney <jasonr@gnu.org>
22744
22745 * w32menu.c (add_menu_item): Don't use multibyte string functions on
22746 unicode strings.
22747
227482007-06-16 Juanma Barranquero <lekktu@gmail.com>
22749
22750 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
22751 Fix typo in docstring.
22752
227532007-06-16 Eli Zaretskii <eliz@gnu.org>
22754
22755 * w32menu.c (add_menu_item): Escape `&' characters in menu items
22756 and their keybindings.
22757
227582007-06-15 Chong Yidong <cyd@stupidchicken.com>
22759
22760 * composite.c (update_compositions): Fix last fix.
22761
227622007-06-14 Jason Rumney <jasonr@gnu.org>
22763
22764 * w32.c (get_process_times_fn): New function pointer.
22765 (globals_of_w32): Intialize it if present in kernel32.dll.
22766 (w32_get_internal_run_time): New function.
22767
22768 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
22769
227702007-06-14 Kenichi Handa <handa@etlken.m17n.org>
22771
22772 * composite.c (update_compositions): Check the validness of
22773 compositions.
22774
227752007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22776
22777 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
22778 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
22779
22780 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
22781 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
22782
22783 * macgui.h (USE_MAC_TOOLBAR): New define.
22784
22785 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
22786 Return immediately unless popup is activated.
22787
22788 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
22789 background to scroll bar gap.
22790 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
22791 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
22792 scroll bars on frame edge. Check fringe background extension.
22793 Don't clear extended fringe background area.
22794 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
22795 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
22796 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
22797 [USE_MAC_TOOLBAR]: New macros.
22798 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
22799 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
22800 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
22801 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
22802 [USE_MAC_TOOLBAR]: New functions.
22803 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
22804 manually if previous repositioning has failed.
22805 (mac_handle_keyboard_event): Use precomputed event kind.
22806 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
22807 as tool bar item click. Handle mouse movement over tool bar items.
22808
22809 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
22810 toolbar_win_gravity.
22811 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
22812 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
22813 Add externs.
22814
22815 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
22816 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
22817
228182007-06-14 Chong Yidong <cyd@stupidchicken.com>
22819
22820 * image.c (search_image_cache): Remove unused variable.
22821
228222007-06-13 Chong Yidong <cyd@stupidchicken.com>
22823
22824 * xfns.c, xmenu.c: Link to xaw3d if available.
22825
228262007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22827
22828 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
22829 frame_foreground and frame_background.
22830
22831 * image.c (lookup_image): Save frame foreground and background colors.
22832 (search_image_cache): Check if saved and current frame colors match.
22833
228342007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
22835
22836 * regex.c (regex_compile): Remove the `regnum' counter.
22837 Use bufp->re_nsub instead. Add support for \(?N:RE\).
22838
228392007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
22840
22841 * term.c: Include intervals.h to declare Fget_text_property.
22842
228432007-06-10 Jason Rumney <jasonr@gnu.org>
22844
22845 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
22846
228472007-06-08 Juanma Barranquero <lekktu@gmail.com>
22848
22849 * callint.c (Fcall_interactively):
22850 * editfns.c (Fdelete_and_extract_region):
22851 * fileio.c (Fread_file_name):
22852 * fns.c (Fmapconcat):
22853 * keyboard.c (cmd_error_internal):
22854 * keymap.c (Fkey_description):
22855 * lread.c (openp):
22856 * minibuf.c (read_minibuf):
22857 * search.c (wordify):
22858 * sunfns.c (sel_read):
22859 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
22860 * xfns.c (x_default_scroll_bar_color_parameter):
22861 * xmenu.c (menu_help_callback):
22862 * xselect.c (Fx_get_atom_name):
22863 * xterm.c (x_term_init): Use empty_unibyte_string.
22864
228652007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
22866
22867 * alloc.c (init_strings): Initialize canonical empty strings.
22868 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
22869 canonical empty string when the requested size is 0.
22870
22871 * emacs.c (empty_unibyte_string): Rename from empty_string.
22872 (empty_multibyte_string): New canonical empty string.
22873 (syms_of_emacs): Don't initialize empty_string.
22874
22875 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
22876 string, if appropriate.
22877 (empty_unibyte_string, empty_multibyte_string): New externs.
22878 (empty_string): Remove extern.
22879
22880 * lread.c (syms_of_lread): Use empty_unibyte_string.
22881
228822007-06-07 Jason Rumney <jasonr@gnu.org>
22883
22884 * s/ms-w32.h: Don't define HAVE_TZNAME.
22885
22886 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
22887
228882007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22889
22890 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
22891
22892 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
22893 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
22894
22895 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
22896 Don't call next handler.
22897 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
22898 Remove argument. Install handler to application.
22899 (set_frame_menubar): Don't change deep_p.
22900 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
22901 FRAME_OUTER_TO_INNER_DIFF_Y.
22902 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
22903 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
22904 [HAVE_DIALOGS]: New macros.
22905 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
22906 Use them.
22907 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
22908
22909 * macselect.c [MAC_OSX] (install_service_handler): Rename from
22910 init_service_handler. All callers changed. Return OSStatus value.
22911
22912 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
22913 All callers changed so as not to call SetPortWindowPort.
22914 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
22915 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
22916 mac_draw_string_common.
22917 (mac_draw_image_string_qd): Likewise.
22918 (mac_draw_string_common): Use them. Add INLINE.
22919 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
22920 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
22921 GetGlobalMouse.
22922 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
22923 and FRAME_OUTER_TO_INNER_DIFF_Y.
22924 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
22925 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
22926 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
22927 repositioning window to mac_handle_window_event.
22928 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
22929 saving window location to mac_handle_window_event
22930 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
22931 (install_menu_target_item_handler): Remove argument in extern.
22932 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
22933 Also accept command events.
22934 (do_keystroke): New function created from XTread_socket.
22935 (init_command_handler): Remove functions.
22936 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
22937 and save window location by kEventWindowShowing and kEventWindowHiding
22938 handlers here. Don't call next handler for window state change and
22939 focus events.
22940 (mac_handle_application_event, mac_handle_keyboard_event)
22941 [TARGET_API_MAC_CARBON]: New functions.
22942 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
22943 kEventWindowShowing and kEventWindowHiding events. Move installation
22944 of mouse, font, text input and menu target item handlers to
22945 install_application_handler.
22946 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
22947 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
22948 New function.
22949 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
22950 Register it.
22951 (XTread_socket) [TARGET_API_MAC_CARBON]:
22952 Consolidate SendEventToEventTarget calls.
22953 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
22954 Move application activation handler to mac_handle_application_event.
22955 Move keyboard handler to mac_handle_keyboard_event.
22956 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
22957 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
22958 init_command_handler. Call install_application_handler.
22959
22960 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
22961 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
22962
229632007-06-07 Glenn Morris <rgm@gnu.org>
22964
22965 * emacs.c (main): Use `emacs-copyright' in --version output.
22966
229672007-06-06 Chong Yidong <cyd@stupidchicken.com>
22968
22969 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
22970
229712007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22972
22973 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
22974
22975 * macgui.h: Replace WindowPtr with WindowRef.
22976
22977 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
22978 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
22979 Replace ControlHandle with ControlRef.
22980 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
22981
22982 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
22983 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
22984 Replace ControlHandle with ControlRef.
22985 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
22986 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
22987
22988 * macterm.h (struct scroll_bar): Rename member control_handle_low
22989 and control_handle_high to control_ref_low and control_ref_high.
22990 All uses changed.
22991 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
22992 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
22993 respectively. All uses changed.
22994 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
22995 (install_window_handler, remove_window_handler): Replace WindowPtr
22996 with WindowRef in externs.
22997
229982007-06-05 Juanma Barranquero <lekktu@gmail.com>
22999
23000 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
23001
230022007-06-03 Nick Roberts <nickrob@snap.net.nz>
23003
23004 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
23005
23006 * frame.c (Fmouse_position, Fmouse_pixel_position):
23007 Condition on HAVE_GPM too.
23008
23009 * term.c (term_mouse_highlight): Remove unused variables.
23010 (Fterm_open_connection): Set gpm_zerobased to 1.
23011 (term_mouse_movement, term_mouse_click, handle_one_term_event):
23012 Use zero based co-ordinates.
23013 (handle_one_term_event): Report a drag as mouse movement too.
23014
23015 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
23016
230172007-06-03 Chong Yidong <cyd@stupidchicken.com>
23018
23019 * image.c (search_image_cache): New function. Require background
23020 color match if background color is unspecified in the image spec.
23021 (uncache_image, lookup_image): Use it.
23022
230232007-06-01 Juanma Barranquero <lekktu@gmail.com>
23024
23025 * window.c (Fshrink_window): Reflow docstring.
23026
230272007-06-02 Chong Yidong <cyd@stupidchicken.com>
23028
23029 * Version 22.1 released.
23030
230312007-06-01 Richard Stallman <rms@gnu.org>
23032
23033 * xfns.c (x_encode_text): Add GCPRO.
23034
230352007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23036
23037 * xfns.c (x_set_name_internal): Save encoded name before
23038 x_encode_text in case string data is relocated.
23039
230402007-05-31 Richard Stallman <rms@gnu.org>
23041
23042 * buffer.c (syms_of_buffer): Doc fix.
23043
230442007-05-30 Nick Roberts <nickrob@snap.net.nz>
23045
23046 * sysdep.c (init_sys_modes): Add rather than replace with
23047 O_NONBLOCK.
23048
23049 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
23050 term_mouse_moveto.
23051
23052 * termhooks.h (term_mouse_moveto): New extern.
23053
23054 * term.c (mouse_face_window): Rename...
23055 (Qmouse_face_window): ...to this.
23056 (term_show_mouse_face, term_clear_mouse_face)
23057 (term_mouse_highlight): Use Qmouse_face_window.
23058 (term_mouse_moveto): New function.
23059 (term_mouse_position): Make it work.
23060 (syms_of_term): Uncomment assignment to mouse_position_hook.
23061 Staticpro Qmouse_face_window.
23062
230632007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23064
23065 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
23066 around current_column call.
23067
230682007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
23069
23070 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
23071 * xdisp.c (next_element_from_buffer):
23072 * window.c (delete_window):
23073 * term.c (term_mouse_highlight):
23074 * msdos.c (getdefdir):
23075 * macterm.c (mac_create_bitmap_from_bitmap_data)
23076 (init_font_name_table):
23077 * fns.c (Fsxhash):
23078 * data.c (Fmake_local_variable):
23079 * ccl.c (ccl_driver): Likewise.
23080
230812007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23082
23083 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
23084 Call mac_wakeup_from_rne on window size change.
23085
230862007-05-25 Chong Yidong <cyd@stupidchicken.com>
23087
23088 * image.c (uncache_image): Fix typo.
23089
230902007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
23091
23092 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
23093
230942007-05-22 Richard Stallman <rms@gnu.org>
23095
23096 * xterm.c (x_connection_closed): Remove NO_RETURN.
23097
230982007-05-22 Martin Rudalics <rudalics@gmx.at>
23099
23100 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
23101
231022007-05-21 Chong Yidong <cyd@stupidchicken.com>
23103
23104 * image.c (uncache_image): New function.
23105 (Fimage_refresh): New function.
23106
231072007-05-20 Jan Djärv <jan.h.d@swipnet.se>
23108
23109 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
23110
231112007-05-20 Nick Roberts <nickrob@snap.net.nz>
23112
23113 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
23114 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
23115
231162007-05-20 Nick Roberts <nickrob@snap.net.nz>
23117
23118 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
23119 conditional on [HAVE_GPM_H].
23120
231212007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
23122
23123 * syntax.c (skip_chars): Update syntax-table only after we checked that
23124 the new location is valid.
23125
231262007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23127
23128 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
23129 mac_get_window_bounds.
23130
231312007-05-20 Nick Roberts <nickrob@snap.net.nz>
23132
23133 * Makefile.in (LIBGPM): Allow it to be set from configure.
23134 If set then link Emacs with it.
23135
23136 * config.in: Regenerate.
23137
23138 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
23139 New externs.
23140
23141 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
23142 Include gpm.h.
23143 (handle_one_term_event, term_gpm): New externs.
23144
23145 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
23146 and allow it to be interrupted by SIGIO.
23147
23148 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
23149 (wait_reading_process_output): Wait on gpm_fd too.
23150 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
23151 (add_gpm_wait_descriptor_called_flag): New variable.
23152 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
23153
23154 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
23155 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
23156 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
23157 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
23158 (make_lispy_event): Add case GPM_CLICK_EVENT.
23159 (read_avail_input): Handle mouse input.
23160
23161 * term.c (write_glyphs_with_face): New function.
23162 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
23163 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
23164 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
23165 (mouse_face_face_id, term_gpm, pos_x, pos_y)
23166 (last_mouse_x, last_mouse_y): New variables.
23167 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
23168 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
23169 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
23170 (Fterm_close_connection): New functions.
23171 (term_init): Initialise mouse_face_window.
23172
231732007-05-19 Chong Yidong <cyd@stupidchicken.com>
23174
23175 * xdisp.c (redisplay_window): If first window line is a
23176 continuation line, recompute the new window start instead of
23177 recentering.
23178
231792007-05-18 Glenn Morris <rgm@gnu.org>
23180
23181 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
23182 Suggested by Alfred M. Szmidt <ams@gnu.org>.
23183
231842007-05-17 Glenn Morris <rgm@gnu.org>
23185
23186 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
23187
231882007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23189
23190 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
23191 dead key repeat and up events.
23192
231932007-05-14 Chong Yidong <cyd@stupidchicken.com>
23194
23195 * image.c (pbm_load): Check image size for monochrome pbm.
23196
231972007-05-13 Chong Yidong <cyd@stupidchicken.com>
23198
23199 * xterm.c (XTread_socket): Revert last change.
23200
232012007-05-12 Chong Yidong <cyd@stupidchicken.com>
23202
23203 * image.c (pbm_load): Correctly check image size for greyscale pbm.
23204
23205 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
23206
232072007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
23208
23209 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
23210 mixup (YAILOM).
23211
232122007-05-07 Andreas Schwab <schwab@suse.de>
23213
23214 * keymap.c (Flookup_key): Fix typo in last change.
23215
232162007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
23217
23218 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
23219 mapping for unibyte strings.
23220
232212007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23222
23223 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
23224 (Fx_popup_dialog) [MAC_OSX]: Likewise.
23225
232262007-04-29 Richard Stallman <rms@gnu.org>
23227
23228 * insdel.c (replace_range): For undo, record insertion first.
23229
232302007-04-29 Andreas Schwab <schwab@suse.de>
23231
23232 * lisp.h (VECSIZE): Use OFFSETOF.
23233
232342007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23235
23236 * xdisp.c (try_window_reusing_current_matrix): Fix number of
23237 disabled lines.
23238
232392007-04-28 Richard Stallman <rms@gnu.org>
23240
23241 * lread.c (read_escape): In a string, \s is always space.
23242
232432007-04-27 Jan Djärv <jan.h.d@swipnet.se>
23244
23245 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
23246
23247 * gtkutil.c (xg_update_menubar, create_menus): Create empty
23248 submenu for menu bar items.
23249
23250See ChangeLog.10 for earlier changes.
23251
23252;; Local Variables:
23253;; coding: utf-8
23254;; add-log-time-zone-rule: t
aac0c6e3
MR
23255;; End:
23256
e3eb1dae 23257 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
23258
23259 This file is part of GNU Emacs.
23260
23261 GNU Emacs is free software: you can redistribute it and/or modify
23262 it under the terms of the GNU General Public License as published by
23263 the Free Software Foundation, either version 3 of the License, or
23264 (at your option) any later version.
23265
23266 GNU Emacs is distributed in the hope that it will be useful,
23267 but WITHOUT ANY WARRANTY; without even the implied warranty of
23268 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23269 GNU General Public License for more details.
23270
23271 You should have received a copy of the GNU General Public License
23272 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
23273
23274;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40