Let htmlfontify recognize face aliases (Bug#6279).
[bpt/emacs.git] / src / ChangeLog
CommitLineData
81ac4f35
GM
12010-05-27 Glenn Morris <rgm@gnu.org>
2
3 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
4 Convert comments to Makefile format.
5
6 * Makefile.in (bootstrap-clean): No more Makefile.c.
7
ccd89fb3
GM
82010-05-26 Glenn Morris <rgm@gnu.org>
9
90278cb6
GM
10 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
11 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
12
ccd89fb3
GM
13 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
14 Remove.
15 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
16
b7050583
KH
172010-05-26 Kenichi Handa <handa@m17n.org>
18
19 * composite.c (composition_compute_stop_pos): Fix condition for
20 backward scanning.
21
e5458003
GM
222010-05-25 Glenn Morris <rgm@gnu.org>
23
c345fe90
GM
24 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
25 Move before TEMACS_LDFLAGS.
26 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
27 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
28
2e0689ab
GM
29 * Makefile.in (NOT_C_CODE): No longer define.
30 (config.h): No longer include.
31
8009a5e8
GM
32 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
33 variables it may reference.
34
e5458003
GM
35 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
36 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
37
10f72a37
KH
382010-05-25 Kenichi Handa <handa@m17n.org>
39
40 * dispextern.h (struct composition_it): New members rule_idx and
41 charpos.
42
43 * xdisp.c (set_iterator_to_next): While scanning backward, assume
44 that the character positions of IT point the last character of the
45 current grapheme cluster.
46 (next_element_from_composition): Don't change character positions
47 of IT.
48 (append_composite_glyph): Set glyph->charpos to
49 it->cmp_it.charpos.
50
51 * composite.c (autocmp_chars): Change the first argument to RULE,
52 and try composition with RULE only.
53 (composition_compute_stop_pos): Record the index number of the
54 composition rule in CMP_IT->rule_idx.
55 (composition_reseat_it): Call autocmp_chars repeatedly until the
56 correct rule of the composition is found.
57 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
58 is at the last character of the current grapheme cluster when
59 CMP_IT->reversed_p is nonzero.
60
171eda53 612010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 62
171eda53
SM
63 * editfns.c (Fbyte_to_string): New function.
64
66a9f7f4
SM
652010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
66
67 * process.c (Fmake_network_process): Set :host to nil if it's not used.
68 Suggested by Masatake YAMATO <yamato@redhat.com>.
69
d8c315d1
EZ
702010-05-23 Eli Zaretskii <eliz@gnu.org>
71
171eda53 72 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 73
0416466c
EZ
742010-05-19 Eli Zaretskii <eliz@gnu.org>
75
11117830 76 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
77
78 * dispextern.h (struct glyph_row): New members minpos and maxpos.
79 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
80 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
81 and maxpos members instead of start.pos and end.pos, respectively.
82
83 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
84 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
85 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
86 (try_window_reusing_current_matrix, try_window_id):
87 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
88 (init_from_display_pos, init_iterator): Use EMACS_INT for
89 character and byte positions.
66a9f7f4 90 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
91 arguments for minimum and maximum buffer positions seen by
92 display_line for this row. Don't use iterator to find the
93 position following the maximum one; instead, increment the
11117830
EZ
94 position found by display_line directly. Fix logic; eol_pos
95 should be tested before the rest. Handle the case of characters
96 delivered from display vector (bug#6036). Fix tests related to
97 it->method. Handle the truncated_on_right_p rows.
98 (RECORD_MAX_MIN_POS): New macro.
99 (display_line): Use it to record the minimum and maximum buffer
100 positions for glyphs in the row being assembled. Record the
101 position of the newline that terminates the line. If word wrap is
102 in effect, restore minimum and maximum positions seen up to the
103 wrap point, when iterator returns to it.
104 (try_window_reusing_current_matrix): Give up if in bidi-reordered
105 row and cursor not already at point. Restore original pre-bidi
106 code for unidirectional buffers.
d36fe237
EZ
107
108 * dispnew.c (increment_row_positions, check_matrix_invariants):
109 Increment and check row->start.pos and row->end.pos, in addition
110 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
111
11117830
EZ
112 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
113 Display truncated_on_left_p and truncated_on_right_p flags.
114 Formatting fixes.
115 (pmtxrows): Display the ordinal number of each row. Don't display
116 rows beyond the last one.
117
118 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
119 it is not copied by bidi_copy_it.
120
6e83d800
EZ
1212010-05-22 Eli Zaretskii <eliz@gnu.org>
122
123 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
124 (Bug#6237)
125
110683ad
CY
1262010-05-22 Chong Yidong <cyd@stupidchicken.com>
127
128 * image.c (Fimage_flush): Rename from image-refresh.
129
98fe5161
CY
1302010-05-21 Chong Yidong <cyd@stupidchicken.com>
131
132 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
133 just one window.
134
135 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
136 (clear_image_cache): If the number of cached images is unusually
137 large, decrease the cache eviction delay (Bug#6230).
138
e8752c66
GM
1392010-05-21 Glenn Morris <rgm@gnu.org>
140
66dbf213
GM
141 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
142 Move these rules to ns.mk.
143 * ns.mk: New file.
144
04384b2d
GM
145 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
146
e8752c66
GM
147 * Makefile.in (CANNOT_DUMP): New, set by configure.
148 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
149
2e2bbddb
JL
1502010-05-20 Juri Linkov <juri@jurta.org>
151
152 * fileio.c (Fdelete_file): Change interative spec to use
153 `read-file-name' like in `find-file-read-args' where the default
154 value is `default-directory' instead of `buffer-file-name'.
155 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
156
31c4aaf6
KR
1572010-05-20 Kevin Ryde <user42@zip.com.au>
158
159 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
160 (Voverriding_terminal_local_map, Vsystem_key_alist)
161 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
162
9d5cf9b6
GM
1632010-05-20 Glenn Morris <rgm@gnu.org>
164
165 * Makefile.in (DEPDIR): New constant.
166 (DEPFLAGS): Set with configure, not cpp.
167 (MKDEPDIR): New, set by configure.
168 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
169 (clean): Use $DEPDIR.
170 (deps_frag): Include from configure.
171 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
172 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
173
ead6f8f5
EZ
174 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
175 reallocation of the cache. (Bug#6210)
176
7f34aec3
GM
1772010-05-19 Glenn Morris <rgm@gnu.org>
178
d494e8f2
GM
179 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
180
c1d0dcfd
GM
181 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
182 (GNULIB_VAR): Remove.
183 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
184
185 * m/ibms390x.h (LINKER):
186 * m/macppc.h (LINKER) [GNU_LINUX]:
187 * s/aix4-2.h (ORDINARY_LINK):
188 * s/cygwin.h (LINKER):
189 * s/darwin.h (ORDINARY_LINK):
190 * s/gnu.h (ORDINARY_LINK):
191 * s/netbsd.h (LINKER):
192 * s/usg5-4.h (ORDINARY_LINK):
193 Move to configure.
194
7f34aec3
GM
195 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
196
754790b6
CY
1972010-05-18 Chong Yidong <cyd@stupidchicken.com>
198
199 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
200 prevent stack overflow if number of arguments is too large
201 (Bug#6214).
202
161e44d1
JB
2032010-05-18 Juanma Barranquero <lekktu@gmail.com>
204
205 * charset.c (load_charset_map_from_file): Don't call close after fclose.
206
be4ff9da
GM
2072010-05-18 Glenn Morris <rgm@gnu.org>
208
9539dc5d
GM
209 * s/gnu-linux.h: Combine two conditionals.
210
211 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
212 $(POST_ALLOC_OBJ).
213
40dc6bf4
GM
214 * Makefile.in (RALLOC_OBJ): New, set by configure.
215 (rallocobj): Replace with the previous variable.
216 (otherobj): Use $RALLOC_OBJ.
217
218 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
219 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
220
be4ff9da
GM
221 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
222 (gmallocobj, vmlimitobj): Replace with previous two variables.
223 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
224
16455a85
GM
2252010-05-17 Glenn Morris <rgm@gnu.org>
226
227 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
228 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
229
5fdb7468
GM
2302010-05-16 Glenn Morris <rgm@gnu.org>
231
7ca1f3f9
GM
232 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
233
7541dad5
GM
234 * Makefile.in (clean): Get rid of HAVE_NS conditional.
235
da53fab9
GM
236 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
237 trailing "/".
238
b02a6645
GM
239 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
240 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
241
8877ca0f
GM
242 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
243 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
244 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
245 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
246 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
247
5fdb7468
GM
248 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
249 Remove ${STARTFLAGS}, nothing ever sets it.
250
95adb4b1
DN
2512010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
252
253 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
254
676b6304
GM
2552010-05-16 Glenn Morris <rgm@gnu.org>
256
9beab9ce
GM
257 * Makefile.in (LIBX_BASE): Always define.
258
8a95f0e7
GM
259 * Makefile.in (LIBX_OTHER): Move out of cpp section.
260
676b6304
GM
261 * Makefile.in (LIBXT): Always define.
262
6e546d18
GM
2632010-05-15 Glenn Morris <rgm@gnu.org>
264
4235ca47 265 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 266
6e546d18
GM
267 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
268 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
269
8c5ff6dd
KR
2702010-05-15 Ken Raeburn <raeburn@raeburn.org>
271
560bb7ae 272 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
273 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
274
8b4eb796
KR
275 * emacs.c (main): Initialize initial-environment and
276 process-environment before generating from env, not after.
277
8c5ff6dd
KR
278 Handle --version reasonably in CANNOT_DUMP configuration.
279 * emacs.c (emacs_version, emacs_copyright): New string variables.
280 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
281 (syms_of_emacs): Defvar them, and initialize them from the C
282 string variables.
283 (main): If initialization hasn't been done, print initial version
284 info from the C strings, instead of starting an interactive session.
285
dbd3f723
EZ
2862010-05-15 Eli Zaretskii <eliz@gnu.org>
287
d20e1419
EZ
288 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
289 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
290 (bidi_paragraph_init): Remove redundant assertion that we are at
291 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
292
293 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
294 (syms_of_xdisp): Defsubr it.
295
d36fe237
EZ
296 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
297
dbd3f723
EZ
298 * Makefile.in: Fix MSDOS-related comments.
299
02be533b
GM
3002010-05-15 Glenn Morris <rgm@gnu.org>
301
1a82cca9
GM
302 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
303 (really-lwlib, really-oldXMenu): Always define.
304 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
305
3df7b338
GM
306 * Makefile.in: Simplify cpp conditional.
307
2b5f541b
GM
308 * Makefile.in (${ns_appdir}): Simplify using umask.
309
02be533b
GM
310 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
311
4e2db1fe
SM
3122010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
313
314 * eval.c (specbind): Remove left-over duplicate test.
315 Disallow let-binding frame-local vars. Add comment.
316
4b292a22
EZ
3172010-05-14 Eli Zaretskii <eliz@gnu.org>
318
2fe72643 319 Make the cache of bidi iterator states dynamically allocated.
1edbd309 320 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
321 (bidi_init_it): Call it.
322 (bidi_cache_iterator_state): Enlarge the cache if needed.
323
4e2db1fe 324 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
325 bidi_get_next_char_visually. All callers changed.
326
82ebc97b
KH
3272010-05-14 Kenichi Handa <handa@m17n.org>
328
329 * dispextern.h (struct composition_it): New member reversed_p.
330
331 * composite.c (composition_compute_stop_pos): Search backward if
332 ENDPOS < CHARPOS.
333 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
334 Set CMP_IT->reversed_p.
b4b6e17e 335 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 336
4e2db1fe
SM
337 * xdisp.c (set_iterator_to_next):
338 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
339 scanning backward. Call composition_compute_stop_pos if scan
340 direction is changed.
341 (next_element_from_buffer): Call composition_compute_stop_pos with
342 negative ENDPOS if we are scanning backward.
343 (next_element_from_composition): Pay attention to
344 IT->cmp_it.reversed_p.
345
0e5d7800
KH
3462010-05-14 Kenichi Handa <handa@m17n.org>
347
560bb7ae 348 * font.c (font_range): Return the range for the font found at first.
0e5d7800 349
cb027b32
GM
3502010-05-14 Glenn Morris <rgm@gnu.org>
351
177b0288
GM
352 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
353
fbc00890
GM
354 * Makefile.in (mktime, X11, register): Move undefs to configure.
355
f14d1dfd
GM
356 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
357 (MSDOS_X_OBJ): New variable.
358 (MSDOS_SUPPORT_REAL): New constant.
359 (MSDOS_SUPPORT): Set as a variable, not with cpp.
360 (obj): Use MSDOS_X_OBJ.
361 (lisp): Use MSDOS_SUPPORT as a variable.
362
11842bd8
GM
363 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
364 (GPM_MOUSE_SUPPORT): Now it's a constant.
365 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
366 not cpp.
367
489d31a4 368 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 369 (ns_appresdir): Remove, unused.
e20f1f07 370
489d31a4
GM
371 * Makefile.in (SHELL): Move outside cpp section.
372
cb027b32
GM
373 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
374
5a903aa9
GM
3752010-05-13 Glenn Morris <rgm@gnu.org>
376
3369c79f
GM
377 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
378 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
379
d5e982a6
GM
380 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
381 HAVE_WINDOW_SYSTEM must be too.
382
6192e163
GM
383 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
384 (lisp): Remove WINNT_SUPPORT.
385
472c5d6b
GM
386 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
387 Let configure set these variables (to empty) in this case as well.
388
0116466b
GM
389 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
390 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
391
5a903aa9
GM
392 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
393 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
394 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
395 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
396 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 397 the values output by configure.
5a903aa9
GM
398 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
399
1a0d7c06
GM
4002010-05-12 Glenn Morris <rgm@gnu.org>
401
b5457f14
GM
402 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
403 (LINKER_WAS_SPECIFIED): Remove.
404
1a0d7c06
GM
405 * Makefile.in (LIB_GCC): Set using configure, not cpp.
406 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
407 * m/arm.h (LIB_GCC) [GNU_LINUX]:
408 * s/cygwin.h (LIB_GCC):
409 * s/freebsd.h (LIB_GCC):
410 * s/gnu-linux.h (LIB_GCC):
411 * s/msdos.h (LIB_GCC):
412 * s/netbsd.h (LIB_GCC):
413 Move to configure.
414
3ffd4615 4152010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
416
417 * ftfont.c: Fix incorrect parentheses of #if condition for
418 definining M17N_FLT_USE_NEW_FEATURE.
419
acddf8ae
GM
4202010-05-11 Glenn Morris <rgm@gnu.org>
421
422 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
423 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
424
ae5e04fa
EZ
4252010-05-10 Eli Zaretskii <eliz@gnu.org>
426
427 * xdisp.c (init_iterator): Don't turn on bidi reordering in
428 unibyte buffers. See
429 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
430
7490175b
GM
4312010-05-10 Glenn Morris <rgm@gnu.org>
432
97efb629
GM
433 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
434 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
435 (LIBES): Use LIBS_SYSTEM as a variable.
436 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
437 * s/aix4-2.h (LIBS_SYSTEM):
438 * s/freebsd.h (LIBS_SYSTEM):
439 * s/hpux10-20.h (LIBS_SYSTEM):
440 * s/sol2-6.h (LIBS_SYSTEM):
441 * s/unixware.h (LIBS_SYSTEM):
442 Move to configure.
443
7490175b
GM
444 * s/aix4-2.h (MAIL_USE_LOCKF):
445 * s/bsd-common.h (MAIL_USE_FLOCK):
446 * s/darwin.h (MAIL_USE_FLOCK):
447 * s/gnu-linux.h (MAIL_USE_FLOCK):
448 * s/irix6-5.h (MAIL_USE_FLOCK):
449 * s/template.h (MAIL_USE_FLOCK):
450 Move to configure.
451
0235128c 4522010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
453
454 * Version 23.2 released.
455
0235128c 4562010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
457
458 * composite.c (autocmp_chars): Save point as marker before calling
459 auto-composition-function (Bug#5984).
460
461 * lisp.h (restore_point_unwind): Add prototype.
462
463 * fileio.c (restore_point_unwind): Remove static attribute.
464
0235128c 4652010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
466
467 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
468 new feature of libotf and m17n-flt.
0235128c
SM
469 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
470 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
471 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
472 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
473 that OUT is NULL. Use OTF_drive_gsub_with_log and
474 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
475 OTF_drive_gpos.
476 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
477 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
478 Setup mflt_enable_new_feature and mflt_try_otf.
479
4721152c
J
4802010-05-08 Jan Djärv <jan.h.d@swipnet.se>
481
482 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
483
484 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
485 box and toolbar (Bug #6139).
486 (xg_create_tool_bar): Remove comment (Bug #6139).
487 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
488 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
489
ee0a16cf
JB
4902010-05-08 Juanma Barranquero <lekktu@gmail.com>
491
492 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
493 Update dependencies.
494
96d79611
EZ
4952010-05-08 Eli Zaretskii <eliz@gnu.org>
496
497 * fringe.c (update_window_fringes): Set up truncation bitmaps for
498 R2L lines.
499
40c17879
GM
5002010-05-08 Glenn Morris <rgm@gnu.org>
501
7b42b29f
GM
502 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
503
40c17879
GM
504 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
505 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
506 (termcapobj): Replace with TERMCAP_OBJ.
507 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
508 (LIBES): Use LIBS_TERMCAP as a variable.
509
510 * s/freebsd.h (osreldate.h): No longer include, since this file
511 does not use __FreeBSD_version any more.
512
513 * s/aix4-2.h (TERMINFO):
514 * s/cygwin.h (TERMINFO):
515 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
516 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
517 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
518 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
519 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
520 * s/irix6-5.h (TERMINFO):
521 * s/netbsd.h (LIBS_TERMCAP):
522 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
523 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
524 * s/usg5-4.h (TERMINFO):
525 Move to configure.
526
94b612ad
SM
5272010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
528
529 * eval.c (unbind_to): Don't unbind a local binding into the global
530 binding when the local binding disappeared. Inversely, don't unbind
531 a global binding into a newly created local binding.
532 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
533 can specify the frame to use, when applicable. Adjust callers.
534
15e12598
VB
5352010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
536 Stefan Monnier <monnier@iro.umontreal.ca>
537
538 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
539
f724825e
EZ
5402010-05-07 Eli Zaretskii <eliz@gnu.org>
541
5cba3209
EZ
542 * w32fns.c: Include w32.h.
543 (Fw32_shell_execute): Decode the error message before passing it
544 to `error'. (Bug#6126)
545
d16bdfc3
EZ
546 * msdos.c (dos_set_window_size):
547 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
548 instead of `XSYMBOL (foo)->value'.
549
59d93e87
EZ
5502010-05-07 Eli Zaretskii <eliz@gnu.org>
551
9fdec8bc
EZ
552 Fix the MS-DOS build, broken by autoconfiscation.
553
554 * Makefile.in: Don't use Make-style comments past the "start of
555 cpp stuff" line.
556 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
557
558 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
559 edited directly by msdos/sed1v2.inp).
f724825e 560
2f86b22b
GM
5612010-05-07 Glenn Morris <rgm@gnu.org>
562
563 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
564 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
565 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
566 move out of cpp section.
567 * s/freebsd.h (LD_SWITCH_SYSTEM):
568 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
569 * s/netbsd.h (LD_SWITCH_SYSTEM):
570 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
571
49ebbd65
DN
5722010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
573
574 Define LIB_STANDARD and START_FILES using autoconf.
575 * s/usg5-4.h (LIB_STANDARD):
576 * s/netbsd.h (START_FILES):
577 * s/irix6-5.h (LIB_STANDARD):
578 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
579 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
580 * s/freebsd.h (START_FILES):
581 * s/darwin.h (START_FILES):
582 * s/cygwin.h (START_FILES):
583 * s/aix4-2.h (LIB_STANDARD):
584 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
585 * Makefile.in (STARTFILES): Rename to START_FILES, define using
586 autoconf, not cpp.
587
d43c06d6
DN
5882010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
589
28823648
DN
590 Remove NEED_BSDTTY and NEED_UNISTD_H.
591 * s/hpux10-20.h (NEED_BSDTTY): Remove.
592 * s/aix4-2.h (NEED_UNISTD_H): Remove.
593 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
594 <sys/ptyio.h> and <unistd.h>.
595
aca00430
DN
596 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
597
d43c06d6
DN
598 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
599 * s/gnu.h (START_FILES): Remove empty definition.
600
3e56b11d
JD
6012010-05-06 Jan Djärv <jan.h.d@swipnet.se>
602
603 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
604
e3cf0cde
GM
6052010-05-06 Glenn Morris <rgm@gnu.org>
606
607 * Makefile.in (CPP, LN_S): Remove unused variables.
608
774b9a60
SM
6092010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
610
611 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
612
4ab92842
LM
6132010-05-05 Lawrence Mitchell <wence@gmx.li>
614
615 * m/sparc.h: Fix typo in earlier change.
616
178f2507
SM
6172010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
618
619 Misc tweaks.
620 * eval.c (Fdefvaralias): Remove unintended nested if.
621 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
622
80f00217 6232010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
624
625 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
626
ef03a4e6
DN
6272010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
628
58eb6cf0
DN
629 Remove BSD_PGRPS.
630 * s/bsd-common.h (BSD_PGRPS): Remove undef.
631 * s/gnu-linux.h (BSD_PGRPS): Remove.
632 * term.c (dissociate_if_controlling_tty):
633 * sysdep.c (narrow_foreground_group, widen_foreground_group)
634 (init_sys_modes, reset_sys_modes):
635 * emacs.c (main):
636 * callproc.c (Fcall_process, child_setup): Remove code depending
637 on BSD_PGRPS.
638
ef03a4e6
DN
639 Remove POSIX_SIGNALS.
640 * s/usg5-4.h (POSIX_SIGNALS):
641 * s/netbsd.h (POSIX_SIGNALS):
642 * s/msdos.h (POSIX_SIGNALS):
643 * s/ms-w32.h (POSIX_SIGNALS):
644 * s/hpux11.h (POSIX_SIGNALS):
645 * s/gnu.h (POSIX_SIGNALS):
646 * s/gnu-linux.h (POSIX_SIGNALS):
647 * s/freebsd.h (POSIX_SIGNALS):
648 * s/darwin.h (POSIX_SIGNALS):
649 * s/cygwin.h (POSIX_SIGNALS):
650 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
651 * s/unixware.h:
652 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
653 * process.c (create_process):
654 * syssignal.h:
655 * sysdep.c (wait_for_termination, init_signals):
656 * process.c (create_process):
657 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
658 remove all code that assumes the contrary.
659
49628785
GM
6602010-05-04 Glenn Morris <rgm@gnu.org>
661
27a2cdfc
GM
662 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
663 variable.
664 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
665 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
666 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
667 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
668 LD_SWITCH_SYSTEM_tmp.
669 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
670 New variables, set by configure.
671
eb21eab5
GM
672 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
673 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
674 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
675 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
676 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
677
49628785
GM
678 * s/aix4-2.h (C_SWITCH_SYSTEM):
679 * m/alpha.h (C_SWITCH_MACHINE):
680 Move to configure.in.
681 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
682 New variables, set by configure.
683 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
684 $c_switch_machine and $c_switch_system.
685
7dff330b
DN
6862010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
687
688 * s/hpux10-20.h (LIB_STANDARD): New definition.
689 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
690 on it, not used anymore.
691
53967e09
CY
6922010-05-03 Chong Yidong <cyd@stupidchicken.com>
693
694 * eval.c (internal_condition_case_n): Rename from
695 internal_condition_case_2.
696 (internal_condition_case_2): New function.
697
698 * xdisp.c (safe_call): Use internal_condition_case_n.
699
700 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
701 (internal_delete_file, Frename_file): Callers changed.
702
703 * buffer.c (Fkill_buffer):
704 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
705
706 * lisp.h: Update prototypes.
707
3dee6fdb
GM
7082010-05-03 Glenn Morris <rgm@gnu.org>
709
710 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
711 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
712 (LIBXT): Set with configure, not cpp.
713 (LIBX): Remove.
714 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
715
a101e0fb
DN
7162010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
717
718 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
719 The FreeBSD is not needed, the default works, Solaris version is
720 not needed, and the remaining case is not supported by configure.
721
f63d0028
JD
7222010-05-02 Jan Djärv <jan.h.d@swipnet.se>
723
724 * xsmfns.c (CHDIR_OPT): New define.
725 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
726 restarting emacs.
727
728 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
729 shut_down_emacs.
730
731 * emacs.c (USAGE1): Mention --chdir.
732 (main): Handle --chdir.
733 (standard_args): Add --chdir.
734 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
735 #5552).
736
e4814a9f
DN
7372010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
738
cd03c74a
DN
739 Remove LD_SWITCH_MACHINE.
740 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
741 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
742
c3a398a1
DN
743 Clean up IRIX code.
744 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
745 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
746
87e7285c
DN
747 Clean up AIX code.
748 * m/ibmrs6000.inp: Remove file, unused.
749 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
750 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
751 definition ...
752 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
753
80f00217
JB
754 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
755 unused.
e4814a9f 756
59ca28de
EZ
7572010-05-01 Eli Zaretskii <eliz@gnu.org>
758
197daef4
EZ
759 Emulate POSIX_SIGNALS on MS-Windows.
760
761 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
762 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
763
764 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
765 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
766 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
767
80f00217
JB
768 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
769 New stubs.
197daef4 770
af7c7572
EZ
771 Miscellaneous fixes of bidi display.
772
59ca28de
EZ
773 * xdisp.c (find_row_end): New function, refactored from display_line.
774 (display_line): Use it.
017ea819
EZ
775 (extend_face_to_end_of_line): In almost-filled rows, extend only
776 if the row is R2L and not continued.
166e930d 777 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 778 Preserve overlay and string info in row->end.
166e930d
EZ
779 (insert_left_trunc_glyphs): Support addition of left truncation
780 glyphs to R2L rows.
b47e0dcf 781 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
782 glyph between adjacent windows. Fix a crash when a display string
783 is continued to the next line. Don't return zero if cursor was
784 found by `cursor' property of a display string.
b47e0dcf
EZ
785 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
786 test for that explicitly.
59ca28de 787
7acac9f4
GM
7882010-05-01 Glenn Morris <rgm@gnu.org>
789
790 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
791 for clarity.
792 (OTHER_OBJ): Remove.
793 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
794 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
795
45841e65
KK
7962010-05-01 Karel Klíč <kklic@redhat.com>
797
798 * fileio.c (Ffile_selinux_context): Context functions may return null.
799
afc61943
DN
8002010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
801
80f00217 802 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 803
5a1bb006
GM
8042010-04-30 Glenn Morris <rgm@gnu.org>
805
806 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
807 (OTHER_OBJ): Define as a separate variable, for clarity.
808
210af043
J
8092010-04-30 Jan Djärv <jan.h.d@swipnet.se>
810
811 * xsettings.c: include limits.h and update file comment.
812
0a7df391
GM
8132010-04-30 Glenn Morris <rgm@gnu.org>
814
d5096f16
GM
815 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
816 Set with configure, not cpp.
817 (LIBW): Remove, replace with $TOOLKIT_LIBW.
818
7eb1ac33
GM
819 * Makefile.in (mallocobj): Remove.
820 (otherobj): Simplify using @OTHER_OBJ@.
821
517d086b
GM
822 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
823 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
824 Don't bother making nsgui.h dependency platform-specific.
825
0a7df391
GM
826 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
827
d6d23852
SM
8282010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
829
d2630aef
SM
830 * process.c (read_process_output, exec_sentinel): Don't burp if the
831 sentinel/filter kills the current buffer (bug#6060).
832
f9dddf52 833 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
834 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
835 Remove unused var `args'.
836 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
837 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
838 * doc.c (store_function_docstring): Use XSETCAR.
839
f1e3642a
GM
8402010-04-28 Glenn Morris <rgm@gnu.org>
841
faf535f8
GM
842 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
843 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
844
c40f9449
GM
845 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
846
658f86ca
GM
847 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
848 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
849
bc0b5f61
GM
850 * Makefile.in (FONT_OBJ): New, set by configure.
851 (FONT_DRIVERS): Use $FONT_OBJ.
852
294c50a0
GM
853 * Makefile.in (LIBXMU): Set with configure, not cpp.
854 * s/aix4-2.h (LIBXMU):
855 * s/hpux10-20.h (LIBXMU):
856 Remove definition, now set in configure.
857
e6ec4e99
GM
858 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
859
f1e3642a
GM
860 * m/amdx86-64.h [i386]: Move this test to configure.in.
861
c6ea2936
GM
8622010-04-27 Glenn Morris <rgm@gnu.org>
863
8fdac2c3
GM
864 * Makefile.in (LIBXTR6): Set with configure, not cpp.
865 * s/unixware.h (NEED_LIBW): Remove definition.
866
986fb647
GM
867 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
868 (TOOLKIT_LIBW): New, set by configure.
869 (@X_TOOLKIT_TYPE@): No longer define it.
870
c6ea2936
GM
871 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
872 (MOTIF_LIBW): Set with configure, not cpp.
873 * s/aix4-2.h (LIB_MOTIF):
874 * s/gnu-linux.h (LIB_MOTIF):
875 * s/unixware.h (LIB_MOTIF): Move to configure.in.
876
aaa36002
DN
8772010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
878
879 Reduce CPP usage.
880 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
881 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
882 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
883 definitions and undefs. Inline definitions in the only user.
884 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 885
b678dd8b
GM
8862010-04-27 Glenn Morris <rgm@gnu.org>
887
76cda504
GM
888 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
889 since the defaults (set by the system file) are fine in most cases.
890 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
891 * m/ibms390x.h (START_FILES, LIB_STANDARD):
892 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
893 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
894 Remove definitions, since they are set correctly in s/gnu-linux.h.
895 * s/freebsd.h (START_FILES, LIB_STANDARD):
896 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
897 * s/hpux10-20.h (START_FILES):
898 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
899 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
900
b678dd8b
GM
901 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
902 (MOTIF_LIBW): Use $LIBXP.
903 (otherobj): Use $WIDGET_OBJ.
904
9452ded1
DN
9052010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
906
7e10844c
DN
907 * Makefile.in (LIBS_MACHINE): Remove, unused.
908
9452ded1
DN
909 Use autoconf instead of cpp for LIB_MATH.
910 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
911 * s/cygwin.h (LIB_MATH): Likewise.
912 * Makefile.in (LIB_MATH): Do not define with cpp.
913 (LIBES): Use autoconf for LIB_MATH.
914
fcebfc6a
KH
9152010-04-26 Kenichi Handa <handa@m17n.org>
916
917 * composite.c (Ffind_composition_internal): Fix the return value
918 for an automatic composition.
919
39e2ad1b
DN
9202010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
921
922 Remove all NO_ARG_ARRAY uses.
923 * fns.c (concat2, concat3, nconc2):
924 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
925 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
926 * m/xtensa.h (NO_ARG_ARRAY):
927 * m/template.h (NO_ARG_ARRAY):
928 * m/sparc.h (NO_ARG_ARRAY):
929 * m/sh3.h (NO_ARG_ARRAY):
930 * m/mips.h (NO_ARG_ARRAY):
931 * m/macppc.h (NO_ARG_ARRAY):
932 * m/iris4d.h (NO_ARG_ARRAY):
933 * m/intel386.h (NO_ARG_ARRAY):
934 * m/ibms390x.h (NO_ARG_ARRAY):
935 * m/ibms390.h (NO_ARG_ARRAY):
936 * m/ibmrs6000.h (NO_ARG_ARRAY):
937 * m/ia64.h (NO_ARG_ARRAY):
938 * m/hp800.h (NO_ARG_ARRAY):
939 * m/arm.h (NO_ARG_ARRAY):
940 * m/amdx86-64.h (NO_ARG_ARRAY):
941 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
942
adf4f59c
EZ
9432010-04-25 Eli Zaretskii <eliz@gnu.org>
944
6bdf5d65
EZ
945 * xdisp.c (display_line): Don't assume 2nd call to
946 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
947 (iterate_out_of_display_property): New function, body from pop_it.
948 (pop_it): Use it.
adf4f59c 949
dfbbda83
GM
9502010-04-24 Glenn Morris <rgm@gnu.org>
951
952 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
953 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
954 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
955 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
956
2d4018aa
EZ
9572010-04-24 Eli Zaretskii <eliz@gnu.org>
958
a49884a6
EZ
959 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
960 use `get_next_display_element' and `set_iterator_to_next' to
961 advance to the next character, when looking for the character that
962 begins the next row.
963
76db6fcc 964 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
965 definition of "struct Lisp_Symbol".
966
70eab5c1
GM
9672010-04-24 Glenn Morris <rgm@gnu.org>
968
969 * Makefile.in (CRT_DIR): New variable, set by configure.
970 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
971 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
972
1ad4cc3d
DN
9732010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
974
e769f484
DN
975 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
976
4196ff33
DN
977 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
978
879b0ee4
DN
979 Remove redundant flags.
980 * s/freebsd.h (C_SWITCH_SYSTEM):
981 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
982 * s/netbsd.h (C_SWITCH_SYSTEM):
983 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
984 of these.
985
03cbbcb8
DN
986 Simplify m/intel386.h.
987 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
988 user: ecrt0.c.
989 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
990 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
991 the only user: s/unixware.h.
992 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
993 from m/intel386.h.
994 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
995 moved here from m/intel386.h.
996
1ad4cc3d
DN
997 * m/mips.h: Remove #if 0 code.
998
8785b888
EZ
9992010-04-23 Eli Zaretskii <eliz@gnu.org>
1000
728588cc
EZ
1001 Fix display of composed characters from L2R scripts in bidi buffers.
1002 * xdisp.c (set_iterator_to_next, next_element_from_composition):
1003 After advancing IT past the composition, resync the bidi iterator
1004 with IT's position. (Bug#5977)
1005
a63f80b4
DN
10062010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
1007
1008 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
1009 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
1010
ff5dec5c
SM
10112010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
1012
1013 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
1014
8785b888
EZ
10152010-04-23 Eli Zaretskii <eliz@gnu.org>
1016
58ccf243 1017 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
1018 * xdisp.c (pop_it): When the stack is popped after displaying
1019 from a string, bidi-iterate to exit from the text portion covered
1020 by the `display' property or overlay. (Bug#5988, bug#5920)
1021
feeb1604
DN
10222010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
1023
8e324eb6
DN
1024 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
1025 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
1026
809fcaba
DN
1027 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
1028 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
1029
ed710380
DN
1030 Simplify STARTFILES definition.
1031 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
1032 relying on Makefile.in to define it.
1033 * s/cygwin.h (START_FILES): Likewise.
1034 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
1035
feeb1604
DN
1036 Clean up Solaris code.
1037 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
1038 (LIB_MOTIF): Remove, configure takes care of this.
1039 (NOT_USING_MOTIF): Remove, unused.
1040 * xrdb.c: Remove #if 0-ed #include.
1041 (SYSV): Remove conditional for old SysV.
1042 * sysdep.c (closedir): Remove conditional code for Solaris,
1043 Solaris has closedir.
1044
a0d0b563
JD
10452010-04-22 Jan Djärv <jan.h.d@swipnet.se>
1046
1047 * xsettings.c (read_and_apply_settings): Check if current_font is
1048 NULL before strcmp (Bug#6001).
1049
56bae7c7
DN
10502010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
1051
1052 Clean up HP-UX files.
1053 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
1054 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
1055 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
1056 * s/hpux10-20.h: ... to the only user, here.
1057
372b7a95
EZ
10582010-04-21 Eli Zaretskii <eliz@gnu.org>
1059
1060 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
1061 use buffer-local values of paragraph-start and paragraph-separate.
1062 <paragraph_start_re, paragraph_separate_re>: Rename from
1063 fallback_paragraph_start_re and fallback_paragraph_separate_re.
1064 (Bug#5992)
1065
f904c0f9
JD
10662010-04-21 Jan Djärv <jan.h.d@swipnet.se>
1067
1068 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
1069 current_tool_bar_style are new.
1070 (store_config_changed_event): Rename from store_font_changed_event.
1071 (XSETTINGS_TOOL_BAR_STYLE): New define.
1072 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
1073 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
1074 HAVE_XFT.
1075 (something_changedCB): store_font_changed_event is now
1076 store_config_changed_event
1077 (parse_settings): Rename from parse_xft_settings. Read
1078 non-xft xsettings outside #ifdef HAVE_XFT.
1079 (read_settings): Renamed from read_xft_settings.
1080 (apply_xft_settings): Take current settings as parameter. Do not
1081 call read_(xft)_settings.
1082 (read_and_apply_settings): New function.
1083 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
1084 read_and_apply_settings if there are settings to be read.
1085 (init_xsettings): Renamed from init_xfd_settings.
1086 Call read_and_apply_settings unconditionally.
1087 (xsettings_initialize): Call init_xsettings.
1088 (Ftool_bar_get_system_style): New function.
1089 (syms_of_xsettings): Define Qmonospace_font_name and
1090 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 1091 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 1092 dynamic-setting.
31a01b90 1093 Move misplaced HAVE_GCONF
f904c0f9
JD
1094
1095 * xsettings.h (Ftool_bar_get_system_style): Declare.
1096
1097 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
1098 Qtext, Qboth, Qboth_horiz are new.
1099 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
1100 Vtool_bar_style, tool_bar_max_label_size.
1101
1102 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
1103
1104 * keyboard.c: QClabel is new.
1105 (parse_tool_bar_item): Take out QClabel from tool bar items.
1106 Try to construct a label if ther is no QClabel.
1107 (syms_of_keyboard): Intern :label as QClabel.
1108
1109 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
1110 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
1111 New.
1112
1113 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
1114 dynamic-setting.el.
1115
1116 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
1117 (xg_make_tool_item, xg_show_toolbar_item): New function.
1118 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
1119 Call xg_make_tool_item to make a tool bar item.
1120 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
1121
1122 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
1123 into account for toolbars.
1124
c632dfda
JD
11252010-04-21 Jan Djärv <jan.h.d@swipnet.se>
1126
1127 * data.c (make_blv): Declarations before code (Bug#5993).
1128
10efe302
GM
11292010-04-21 Glenn Morris <rgm@gnu.org>
1130
1131 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
1132 Define using autoconf, not cpp.
1133 (LIBXSM): New variable, set by autoconf.
1134 (LIBXT): Use $LIBXSM.
1135
4285ac5a
DN
11362010-04-21 Dan Nicolaescu <local_user@dannlt>
1137
3ec759e7
DN
1138 Remove NOMULTIPLEJOBS, unused.
1139 * s/template.h (NOMULTIPLEJOBS):
1140 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
1141
4285ac5a
DN
1142 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
1143 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
1144 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
1145 detects -znocombreloc and passes it to the linker
1146 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
1147
2807228d
GM
11482010-04-21 Glenn Morris <rgm@gnu.org>
1149
1150 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
1151
574c05e2
KK
11522010-04-21 Karel Klíč <kklic@redhat.com>
1153
1154 * Makefile.in (LIBSELINUX_LIBS): New.
1155 (LIBES): Add $LIBSELINUX_LIBS.
1156 * eval.c, lisp.h (call7): New function.
1157 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
1158 (Ffile_selinux_context, Fset_file_selinux_context):
1159 New functions.
1160 (Fcopy_file): New parameter preserve-selinux-context.
1161 (Frename_file): Preserve selinux context when renaming by copy-file.
1162
91eac4bb 11632010-04-21 Juanma Barranquero <lekktu@gmail.com>
4e2af782 1164 Eli Zaretskii <eliz@gnu.org>
91eac4bb 1165
50426a04
JB
1166 Don't depend on cm.c or termcap.c on Windows, use stubs.
1167 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
1168 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
1169 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
1170 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
1171 (sys_tputs, sys_tgetstr): New stubs.
1172 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
1173 (tputs, tgetstr): New; define to sys_*.
91eac4bb 1174
938efb77
JB
11752010-04-20 Juanma Barranquero <lekktu@gmail.com>
1176
1177 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
1178
b4bf28b7
SM
11792010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
1180
8b1e1112
SM
1181 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
1182 Just signal a warning rather than an error when inside a let.
1183 (Fmake_variable_frame_local): Add the same test.
1184
933ac235
SM
1185 * font.c (syms_of_font): Make the style table vars read-only.
1186
b4bf28b7
SM
1187 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
1188 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
1189
1190 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
1191
93d68d0c
EZ
11922010-04-20 Eli Zaretskii <eliz@gnu.org>
1193
1194 Fix R2L paragraph display on TTY.
1195
1196 * xdisp.c (unproduce_glyphs): New function.
1197 (display_line): Use it when produced glyphs are discarded from R2L
1198 glyph rows.
1199 (append_composite_glyph): In R2L rows, prepend the glyph rather
1200 than appending it.
1201
1202 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
1203 rather than append it. Set up the resolved_level and bidi_type
1204 attributes of the appended glyph.
283ccc18
EZ
1205 (produce_special_glyphs): Mirror the backslash continuation
1206 character in R2L lines.
93d68d0c 1207
283ccc18 1208 Implement display of R2L paragraphs in GUI sessions.
26cdf528 1209
283ccc18
EZ
1210 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
1211 append_stretch_glyph.
1212 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
1213 off-by-one error in computing x at end of text in the row.
1214 (append_stretch_glyph): In reversed row, prepend the glyph rather
1215 than append it. Set resolved_level and bidi_type of the glyph.
1216 (extend_face_to_end_of_line): If the row is reversed, prepend a
1217 stretch glyph whose width is such that the rightmost glyph will be
1218 drawn at the right margin of the window. Fix off-by-one error on
1219 TTY frames in testing whether a line needs face extension. Fix
1220 face extension at ZV. If this is the last glyph row, use
1221 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
1222 region face.
1223 (set_cursor_from_row, display_line): Use
26cdf528
EZ
1224 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
1225 row->continuation_lines_width.
283ccc18
EZ
1226 (next_element_from_buffer): Don't call bidi_paragraph_init if we
1227 are at ZV. Fixes a crash when reseated to ZV by
1228 try_window_reusing_current_matrix.
45903529
EZ
1229 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
1230 which happens with R2L glyph rows. Fixes a crash when inserting a
1231 character at end of an R2L line.
283ccc18
EZ
1232 (set_cursor_from_row): Don't be fooled by truncated rows: don't
1233 treat them as having zero-width characters. Improve comments.
1234 Don't reverse pos_before and pos_after for reversed glyph rows.
1235 Set cursor.x to negative value when the cursor might be on the
1236 left fringe.
1237 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
1238 left fringe, not the right one.
f951a506
EZ
1239 (notice_overwritten_cursor, draw_phys_cursor_glyph)
1240 (erase_phys_cursor): For reversed cursor_row, support cursor on
1241 the left fringe.
1242
283ccc18
EZ
1243 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
1244 of continuation indicators on the fringes.
1245 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
1246 left fringe.
1247
f951a506
EZ
1248 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
1249 draw cursor on the left fringe.
1250
1251 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
1252 cursor on the left fringe.
1253
f951a506
EZ
1254 * dispnew.c (update_text_area): Handle reversed desired rows when
1255 the cursor is on the left fringe.
1256 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
1257 below, not by 0, for when the cursor is on the left fringe.
1258
3bb49aaf
JD
12592010-04-20 Jan Djärv <jan.h.d@swipnet.se>
1260
1261 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
1262 widget is a scrollbar.
1263
c0be27fd
KH
12642010-04-20 Kenichi Handa <handa@m17n.org>
1265
1266 * charset.c (char_charset): Consider Vcharset_non_preferred_head
1267 only when the arg CHARSET_LIST is nil.
1268
ce5b453a
SM
12692010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
1270
1271 Make variable forwarding explicit rather the using special values.
1272 Basically, this makes the structure of buffer-local values and object
1273 forwarding explicit in the type of Lisp_Symbols rather than use
1274 special Lisp_Objects for that. This tends to lead to slightly more
1275 verbose code, but is more C-like, simpler, and makes it easier to make
1276 sure we handled all cases, among other things by letting the compiler
1277 help us check it.
1278 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
1279 Removing forwarding objects.
1280 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
1281 (struct Lisp_Symbol): Make the various forms of variable-forwarding
1282 explicit rather than hiding them inside Lisp_Object "values".
1283 (XFWDTYPE): New macro.
1284 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
1285 (XBUFFER_LOCAL_VALUE): Remove.
1286 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
1287 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
1288 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
1289 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
1290 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
1291 Remove the Lisp_Misc_* header.
1292 (struct Lisp_Buffer_Local_Value): Redefine.
1293 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
1294 (struct Lisp_Misc_Any): Add filler to get the right size.
1295 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
1296 Lisp_Intfwd.
1297 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
1298 (DEFVAR_KBOARD): Allocate a forwarding object.
1299 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
1300 (let_shadows_global_binding_p): New function.
1301 (union Lisp_Val_Fwd): New type.
1302 (make_blv): New function.
1303 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
1304 (store_symval_forwarding, swap_in_global_binding, Fboundp)
1305 (swap_in_symval_forwarding, find_symbol_value, Fset)
1306 (let_shadows_buffer_binding_p, set_internal, default_value)
1307 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
1308 (Fkill_local_variable, Fmake_variable_frame_local)
1309 (Flocal_variable_p, Flocal_variable_if_set_p)
1310 (Fvariable_binding_locus):
1311 * xdisp.c (select_frame_for_redisplay):
1312 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
1313 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
1314 * frame.c (store_frame_param):
1315 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
1316 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
1317 value structure.
1318 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
1319 (clone_per_buffer_values): Only adjust markers into the current buffer.
1320 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
1321 (Fbuffer_local_value, set_buffer_internal_1)
1322 (swap_out_buffer_local_variables):
1323 Adapt to the new symbol value structure.
1324 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
1325 (defvar_per_buffer): Take a new arg for the fwd object.
1326 (buffer_lisp_local_variables): Return a proper alist (different fix
1327 for bug#4138).
1328 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
1329 (Fgarbage_collect): Don't handle buffer_defaults specially.
1330 (mark_object): Handle new symbol value structure rather than the old
1331 special Lisp_Misc_* objects.
1332 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
1333 * term.c (set_tty_color_mode):
1334 * bidi.c (bidi_initialize): Don't access the ->value field directly.
1335 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
1336 a buffer_local_flags.
1337 * print.c (print_object): Get rid of impossible forwarding objects.
1338
fd3998ff
EZ
13392010-04-19 Eli Zaretskii <eliz@gnu.org>
1340
1341 * bidi.c (bidi_get_type, bidi_get_category)
1342 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
1343 (bidi_type_of_next_char, bidi_level_of_next_char):
1344 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 1345
e42cd1a7
JB
13462010-04-19 Juanma Barranquero <lekktu@gmail.com>
1347
1348 * dired.c (Ffile_attributes): Fix typo in docstring.
1349
6e104790 13502010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
1351
1352 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
1353 NSInteger (Bug#5811).
1354
6e104790 13552010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
1356
1357 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
1358 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
1359
6e104790 13602010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
1361
1362 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
1363
6e104790
SM
13642010-04-19 Chong Yidong <cyd@stupidchicken.com>
1365
1366 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
1367 terminal frames (Bug#5837).
1368
37dcfea0
EZ
13692010-04-19 Eli Zaretskii <eliz@gnu.org>
1370
d1da276f
EZ
1371 * .gdbinit (xsubchartable): New command.
1372
37dcfea0
EZ
13732010-04-19 Eli Zaretskii <eliz@gnu.org>
1374
1375 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 1376 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
1377 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
1378 and
1379 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
1380
e9515805
SM
13812010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
1382
1383 * alloc.c (Fpurecopy): Hash-cons if requested.
1384 (syms_of_alloc): Update purify-flag docstring.
1385
22aa44a8
JD
13862010-04-18 Jan Djärv <jan.h.d@swipnet.se>
1387
1388 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
1389 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
1390
ebb5722e
EZ
13912010-04-17 Eli Zaretskii <eliz@gnu.org>
1392
1393 Fix a crash when an NSM character is inserted at BEGV.
1394
1395 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
1396 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
1397 NEUTRAL_B or UNKNOWN_BT.
1398
0f4442ef
EZ
13992010-04-16 Eli Zaretskii <eliz@gnu.org>
1400
1401 * xdisp.c (set_cursor_from_row): Don't consider possibility of
1402 other rows with cursor unless they are different from this row and
1403 this row is part of a continued line. (Bug#5943)
1404
7d4e45f8
DN
14052010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
1406
1407 * s/freebsd.h: Restore osreldate.h include.
1408 Suggested by Naohiro Aota.
1409
5ba5ec85
J
14102010-04-16 Jan Djärv <jan.h.d@swipnet.se>
1411
1412 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
1413
20af301d
CY
14142010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
1415
1416 * s/cygwin.h: Avoid linking against static libgcc.
1417
a4b000fb
JL
14182010-04-15 Juri Linkov <juri@jurta.org>
1419
1420 * window.c: Add Qscroll_command.
1421 Remove Vscroll_preserve_screen_position_commands.
1422 (window_scroll_pixel_based, window_scroll_line_based): Check the
1423 `scroll-command' property on the last command instead of searching
1424 the last command in Vscroll_preserve_screen_position_commands.
1425 (syms_of_window): Initialize and staticpro `Qscroll_command'.
1426 Put Qscroll_command property on Qscroll_up and Qscroll_down.
1427 (scroll-preserve-screen-position): Doc fix.
1428 (Vscroll_preserve_screen_position_commands): Remove variable.
1429
bc319ba4
DN
14302010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
1431
6bb24457
DN
1432 * xdisp.c (message): Do not use NO_ARG_ARRAY.
1433
19d4c244
DN
14342010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
1435
1436 Reduce cpp use in Makefile.in.
1437 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
1438 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
1439 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
1440 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
1441 (CRT0_COMPILE): Remove, inline it in the only user.
1442
32129746
JL
14432010-04-14 Juri Linkov <juri@jurta.org>
1444
1445 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
1446 `scroll-up-command' and `M-v' from `scroll-down' to
1447 `scroll-down-command'.
1448
9013a7f8
JL
14492010-04-14 Juri Linkov <juri@jurta.org>
1450
1451 * window.c (Vscroll_preserve_screen_position_commands): New variable
1452 with the default value as the list of Qscroll_down and Qscroll_up.
1453 (window_scroll_pixel_based, window_scroll_line_based): Search the
1454 last command in the list Vscroll_preserve_screen_position_commands
1455 instead of comparing with Qscroll_up and Qscroll_down.
1456
4bef8d26
JD
14572010-04-13 Jan Djärv <jan.h.d@swipnet.se>
1458
92848133
JD
1459 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
1460 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
1461 does that.
1462
4bef8d26
JD
1463 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
1464 to zero.
1465
58b963f7
SM
14662010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
1467
84164a0d
SM
1468 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
1469
2b0a91e7
SM
1470 Try to solve the problem of spurious EOF chars in long lines of text
1471 sent to interactive subprocesses.
1472 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
1473 (system_process_attributes): Remove unused var `ttotal'.
1474 * process.c (send_process): Don't bother breaking long line with EOF
1475 chars when talking to ttys any more.
1476 (wait_reading_process_output): Output a warning when called in such
1477 a way that it could block without being interruptible.
1478
58b963f7
SM
1479 Try to detect file modification within the same second.
1480 * buffer.h (struct buffer): New field modtime_size.
1481 * buffer.c (reset_buffer): Initialize it.
1482 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
1483 (Fverify_visited_file_modtime): Check it.
1484 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
1485 (Fset_visited_file_modtime): Set (or clear) it.
1486
01f5787b
SM
14872010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
1488
1489 * process.c (status_notify): Remove unused var `ro'.
1490
83725342
JD
14912010-04-12 Jan Djärv <jan.h.d@swipnet.se>
1492
1493 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
1494 more than one visual (Bug#5938).
1495
b9465836
DN
14962010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
1497
50426a04
JB
1498 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
1499 Undefine.
b9465836 1500
8d9c8ece
DN
15012010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
1502
b1f52161
DN
1503 Remove C_SWITCH_SYSTEM_TEMACS.
1504 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
1505 (malloc, realloc, free): Use emacs, not temacs for conditional
1506 definition.
1507
1508 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
1509 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
1510
8d9c8ece
DN
1511 Use autoconf, not cpp for some variables.
1512 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
1513 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
1514 (ALL_CFLAGS): Use them as make variables.
1515 (really-lwlib, really-oldXMenu): Do not pass them.
1516
1ecb2d3f
JD
15172010-04-11 Jan Djärv <jan.h.d@swipnet.se>
1518
1519 * xmenu.c (apply_systemfont_to_dialog): New.
1520 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
1521
3a4fa2f2
SM
15222010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
1523
97e53006
SM
1524 * process.c (exec_sentinel): Preserve current-buffer.
1525
3a4fa2f2
SM
1526 * process.c (read_process_output): Move the save-current-buffer to
1527 apply to both the filter and the non-filter branches.
1528
88df7221
DN
15292010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
1530
1531 * s/msdos.h (UNEXEC): New definition.
1532
5634ff85
YM
15332010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1534
6eff5c3d
YM
1535 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
1536 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
1537
1538 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
1539 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
1540 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
1541 TRY_WINDOW_CHECK_MARGINS.
1542
1543 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
1544 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
1545 width only when it is for padding.
5634ff85 1546
b13aef54
J
15472010-04-09 Jan Djärv <jan.h.d@swipnet.se>
1548
1549 * xfns.c (Fx_show_tip): Call try_window in a loop until
1550 fonts_changed_p is zero (Bug#2423).
1551
21d28484
EZ
15522010-04-08 Eli Zaretskii <eliz@gnu.org>
1553
1554 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
1555 the end of TEXT_AREA. (Bug#5856)
1556
0269ef77
JD
15572010-04-08 Jan Djärv <jan.h.d@swipnet.se>
1558
1559 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
1560 HAVE_GCONF.
1561
5930fe97
EZ
15622010-04-08 Eli Zaretskii <eliz@gnu.org>
1563
1564 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
1565 prev.orig_type, for resolving type of NSM. (Bug#5858)
1566
99852628
JD
15672010-04-08 Jan Djärv <jan.h.d@swipnet.se>
1568
1569 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
1570 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
1571 in current_font.
1572 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
1573 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
1574 New functions.
1575 (syms_of_xsettings): Initialize current_font.
1576 defsubr Sfont_get_system_normal_font.
99852628
JD
1577
1578 * xsettings.h (Ffont_get_system_normal_font,
1579 xsettings_get_system_normal_font): Declare.
1580
1581 * xfns.c (extern xlwmenu_default_font): Remove.
1582 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
1583 to xlwmenu.c.
1584
1585 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
1586 menu items in UTF-8.
1587
1588 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
1589 (apply_systemfont_to_menu): New function.
1590 (set_frame_menubar, create_and_show_popup_menu): Call
1591 apply_systemfont_to_menu.
1592
7fc874c4
J
15932010-04-07 Jan Djärv <jan.h.d@swipnet.se>
1594
1595 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
1596 FRAME_LINE_TO_PIXEL_Y.
1597
1598 * xterm.c (x_set_window_size_1): Don't add border_width/height to
1599 pixelwidth/height.
1600
863bf481
DN
16012010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
1602
5e5a3b92
DN
1603 Simplify code for HP machines.
1604 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
1605 for GNU_LINUX, not needed.
1606 (UNEXEC, NEED_BSDTTY): Move definitions...
1607 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
1608
863bf481
DN
1609 * m/iris4d.h (UNEXEC): Move definition ...
1610 * s/irix6-5.h (UNEXEC): ... here.
1611
3e6bec3b
JD
16122010-04-04 Jan Djärv <jan.h.d@swipnet.se>
1613
1614 * xfns.c (set_machine_and_pid_properties): New function.
1615 (Fx_create_frame): Call set_machine_and_pid_properties.
1616
2912322b
SM
16172010-04-03 Eli Zaretskii <eliz@gnu.org>
1618
1502b819
EZ
1619 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
1620 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
1621 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
1622
2912322b
SM
1623 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
1624 in this function. (Bug#5703)
1625
16262010-04-03 Chong Yidong <cyd@stupidchicken.com>
1627
1628 * nsterm.h: Fix last change.
1629
c435b432
DN
16302010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
1631
a568f507
DN
1632 * m/intel386.h (NO_REMAP): Move definition ...
1633 * s/msdos.h (NO_REMAP): ... here.
1634
4cd9f6c2
DN
1635 * m/vax.h (CRT0_DUMMIES): Remove, unused.
1636
c435b432
DN
1637 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
1638 used on those platforms.
1639
42a2c622
DN
16402010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
1641
1642 Remove extern errno declarations.
1643 * xterm.c:
1644 * xrdb.c:
1645 * w32term.c:
1646 * unexec.c:
1647 * unexaix.c:
1648 * sysdep.c:
1649 * process.c:
1650 * lread.c:
1651 * keyboard.c:
1652 * floatfns.c:
1653 * filelock.c:
1654 * fileio.c:
1655 * emacs.c (main):
1656 * ecrt0.c:
1657 * dispnew.c:
1658 * callproc.c:
1659 * buffer.c: Remove errno extern declarations.
1660 * s/netbsd.h (NEED_ERRNO): Remove.
1661
8224f93d
DN
16622010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
1663
1664 Remove all uses of LIBX11_SYSTEM.
1665 * Makefile.in (LIBX11_SYSTEM): Remove.
1666 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
1667 instead.
1668
814062c7
EZ
16692010-04-01 Eli Zaretskii <eliz@gnu.org>
1670
ed68db4d
EZ
1671 Remove support for DJGPP v1.x (bug#5813).
1672
1673 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
1674 * s/msdos.h:
1675 * unexec.c (make_hdr, copy_text_and_data):
1676 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 1677 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
1678 (IT_set_terminal_modes, __write, _rename, gethostname)
1679 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
1680 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
1681 the value of __DJGPP__.
ed68db4d
EZ
1682 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
1683 compatibility code.
8224f93d
DN
1684 * lread.c:
1685 * gmalloc.c (memalign):
1686 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
1687 * emacs.c (main):
1688 * dosfns.c (init_dosfns):
ed68db4d
EZ
1689 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
1690
52f4d8d5
EZ
16912010-04-01 Eli Zaretskii <eliz@gnu.org>
1692
814062c7
EZ
1693 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
1694 string with `cursor' property comes from an `after-string'
1695 overlay. (Bug#5816)
1696
0dc2e11d
GM
16972010-04-01 Glenn Morris <rgm@gnu.org>
1698
1699 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
1700 Define as Makefile variables.
1701 (LIBX): Use above variables rather than directly using autoconf.
1702
1d29df59
DN
17032010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
1704
1705 Clean up BSD_SYSTEM use.
1706 * xterm.c:
1707 * process.c:
1708 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
1709 for including <sys/ioctl.h>.
1710 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
1711 code is only used for MSDOS.
1712
1546c559
JL
17132010-03-31 Juri Linkov <juri@jurta.org>
1714
1715 * image.c: Add `Qextension_data'.
1716 (syms_of_image): Initialize and staticpro `Qextension_data'.
1717 (Fimage_metadata): Rename from `Fimage_extension_data'.
1718 (gif_load): Put GIF extension data to the property
1719 `Qextension_data'.
1720
b8a1d5a1
CY
17212010-04-05 Chong Yidong <cyd@stupidchicken.com>
1722
1723 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
1724 terminal frames (Bug#5837).
1725
6521c534
CY
17262010-03-31 Chong Yidong <cyd@stupidchicken.com>
1727
1728 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
1729 * nsterm.h: Fix prototype.
1730
52c30783
EZ
17312010-03-31 Eli Zaretskii <eliz@gnu.org>
1732
1733 * xdisp.c (highlight_trailing_whitespace): Support highlight of
1734 trailing whitespace in right-to-left rows.
1735
855a0da7
SM
17362010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
1737
1738 Get rid of the direct_output optimizations.
1739 * keyboard.c (nonundocount): Remove extern declaration.
1740 (command_loop_1): Remove brittle optimisation for cheap and
1741 common operations.
1742 * xdisp.c (redisplay_internal): Don't bother checking
1743 redisplay_performed_directly_p any more.
1744 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
1745 any more.
1746 * dispnew.c (redisplay_performed_directly_p)
1747 (direct_output_for_insert, direct_output_forward_char):
1748 * dispextern.h (redisplay_performed_directly_p)
1749 (direct_output_for_insert, direct_output_forward_char): Remove.
1750 * cmds.c (nonundocount): Make it static.
1751
85738751 17522010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
1753
1754 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
1755
85738751 17562010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
1757
1758 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
1759 invisible (Bug#5766).
1760
85738751 17612010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 1762
855a0da7
SM
1763 * xdisp.c (x_consider_frame_title, update_window_cursor):
1764 Remove HAVE_NS conditionals.
194d44e7 1765 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
1766
1767 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
1768 filename for the title.
1769 (ns_set_doc_edited): Do nothing if the selected window is a
1770 minibuffer window.
1771
1772 * nsterm.h: Add prototypes for ns_set_name_as_filename and
1773 ns_set_doc_edited.
1774
1775 * nsterm.m: Remove unneeded prototype.
1776
85738751 17772010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
1778
1779 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
1780 in the DOC file. (Bug#5336)
1781
85738751 17822010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
1783
1784 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
1785
75d1428c
SM
17862010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
1787
1788 * window.c (keys_of_window): Remove redundant/overridden bindings.
1789
82043cfb
EZ
17902010-03-30 Eli Zaretskii <eliz@gnu.org>
1791
1792 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
1793 Restore original behavior when the iterator is not bidi_p.
1794
b5dd0ae7
DN
17952010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
1796
1797 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
1798
bd924a5d
EZ
17992010-03-30 Eli Zaretskii <eliz@gnu.org>
1800
1801 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
1802 are outside the range of cached character positions.
1803
3580374b
JB
18042010-03-30 Juanma Barranquero <lekktu@gmail.com>
1805
1806 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
1807
a7b02820
EZ
18082010-03-30 Eli Zaretskii <eliz@gnu.org>
1809
1810 Initial support for bidirectional editing.
1811
1812 * Makefile.in (obj): Include bidi.o.
1813 (bidi.o): New target.
1814
1815 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
1816 ($(BLD)/bidi.$(O)): New target.
1817
1818 * bidi.c: New file.
1819
1820 * buffer.h (struct buffer): New members bidi_display_reordering
1821 and bidi_paragraph_direction.
1822
1823 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
1824 and bidi_paragraph_direction.
1825 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
1826 and bidi-paragraph-direction.
1827 (Fbuffer_swap_text): Swap the values of
1828 bidi_display_reordering and bidi_paragraph_direction.
1829
1830 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
1831 (bidi_type_t, bidi_dir_t): New types.
1832 (bidi_saved_info, bidi_stack, bidi_it): New structures.
1833 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
1834 prev_stop, base_level_stop, and eol_pos.
1835 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
1836 (IT_STACK_SIZE): Enlarge to 5.
1837 (struct glyph_row): New member reversed_p.
1838 <string_buffer_position>: Update prototype.
1839 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
1840 glyph_row if bidi_it.paragraph_dir == R2L.
1841 (struct glyph): New members resolved_level and bidi_type.
1842
1843 * dispnew.c (direct_output_forward_char): Give up if we need bidi
1844 processing or buffer's direction is right-to-left.
1845 (prepare_desired_row): Preserve the reversed_p flag.
1846 (row_equal_p): Compare the reversed_p attributes as well.
1847
1848 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
1849 bidi_init_it and set it->paragraph_embedding from the current
1850 buffer's value of bidi_paragraph_direction.
1851 (reseat_1): Initialize bidi_it.first_elt.
1852 (set_iterator_to_next, next_element_from_buffer): Use the value of
1853 paragraph_embedding to determine the paragraph direction.
1854 (set_iterator_to_next): Under bidi reordering, call
1855 bidi_get_next_char_visually. Call bidi_paragraph_init if the
1856 new_paragraph flag is set in the bidi iterator.
1857 (next_element_from_buffer): If bidi_it.first_elt is set,
1858 initialize paragraph direction and find the first character to
1859 display in the visual order. If reseated to a middle of a line,
1860 prime the bidi iterator starting at the line's beginning. Handle
1861 the situation where we overstepped stop_charpos due to
1862 non-linearity of the bidi iteration. Likewise for when we back up
1863 beyond the previous stop_charpos. When moving across stop_charpos,
1864 record it in prev_stop.
1865 (display_line): Set row->end and it->start for the next row to the
1866 next character in logical order. Always extend reversed_p rows to
1867 the end of line, even if they end at ZV. Copy the reversed_p flag
1868 to the next glyph row. Keep calling set_cursor_from_row for
1869 bidi-reordered rows even if we already have a possible candidate
1870 for cursor position. Set row_end after all the row's glyphs have
1871 been produced, by looping over the glyphs. Record the position
1872 after EOL in it->eol_pos, and use it to set end_pos of the last
1873 row produced for a continued line.
1874 <Qright_to_left, Qleft_to_right>: New variables.
1875 (syms_of_xdisp): Initialize and staticpro them.
1876 (string_buffer_position_lim): New function.
1877 (string_buffer_position): Most of code moved to
1878 string_buffer_position_lim. Last argument and return value are
1879 now EMACS_INT; all callers changed.
1880 (set_cursor_from_row): Rewritten to support bidirectional text and
1881 reversed glyph rows.
1882 (text_outside_line_unchanged_p, try_window_id): Disable
1883 optimizations if we are reordering bidirectional text and the
1884 paragraph direction can be affected by the change.
1885 (append_glyph, append_composite_glyph)
1886 (produce_image_glyph, append_stretch_glyph): Set the
1887 resolved_level and bidi_type members of each glyph.
1888 (append_glyph): If the glyph row is reversed, prepend the glyph
1889 rather than appending it.
1890 (handle_stop_backwards): New function.
1891 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
1892 (reseat): call handle_stop_backwards to recompute prev_stop and
1893 base_level_stop for the new position.
1894 (handle_invisible_prop): Under bidi iteration, skip invisible text
1895 using bidi_get_next_char_visually. If we are `reseat'ed, init the
1896 paragraph direction. Update IT->prev_stop after skipping
1897 invisible text.
1898 (move_it_in_display_line_to): New variables prev_method
1899 and prev_pos. Compare for strict equality in
1900 BUFFER_POS_REACHED_P.
1901 (try_cursor_movement): Examine all the candidate rows that occlude
1902 point, to return the best match. If rows are bidi-reordered
1903 and point moved backwards, back up to the row that is not a
1904 continuation line, and start looking for a suitable row from
1905 there.
1906
1907 * term.c (append_glyph): Reverse glyphs by pre-pending them,
1908 rather than appending, if the glyph_row's reversed_p flag is set.
1909 Set the resolved_level and bidi_type members of each glyph.
1910
1911 * .gdbinit (pbiditype): New command.
1912 (pgx): Use it to display bidi level and type of the glyph.
1913 (pitx): Display some bidi information about the iterator.
1914 (prowlims, pmtxrows): New commands.
1915
32a8894e
DN
19162010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
1917
1918 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
1919 * s/usg5-4.h (LIBS_DEBUG):
1920 * s/irix6-5.h (C_DEBUG_SWITCH):
1921 * s/gnu-linux.h (LIBS_DEBUG):
1922 * s/darwin.h (LIBS_DEBUG):
1923 * s/bsd-common.h (LIBS_DEBUG):
1924 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
1925 * m/iris4d.h (LIBS_DEBUG):
1926 * m/hp800.h (LIBS_DEBUG): Remove definitions.
1927
1928 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
1929 (LIBS_DEBUG): Remove definition.
1930
649dbf36
CY
19312010-03-27 Chong Yidong <cyd@stupidchicken.com>
1932
1933 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
1934 Windows.
1935
cad4261f
YM
19362010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1937
1938 * process.c (Fmake_network_process): Don't call turn_on_atimers around
1939 `connect' (Bug#5723).
1940
cd591dbc
HE
19412010-03-25 Helmut Eller <eller.helmut@gmail.com>
1942
1943 * process.c (Fmake_network_process): Call `select' for interrupted
1944 `connect' rather than creating new socket (Bug#5173).
1945
e867cb5d 19462010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
1947
1948 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
1949
1950 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
1951
1952 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
1953
e867cb5d 19542010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
1955
1956 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
1957 XLoadQueryFont.
1958
e867cb5d 19592010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
1960
1961 * coding.c (decode_coding_ccl): Fix previous change for the
1962 multibyte case.
fb608df3
KH
1963 (encode_coding_ccl): Don't setup ccl program here. Fix for the
1964 case that the output buffer is fullfilled.
1965 (encode_coding): Setup ccl program here.
fbdc1721 1966
e867cb5d 19672010-03-24 Andreas Politz <politza@fh-trier.de> (tiny change)
35cd7cd6
CY
1968
1969 * editfns.c (Fformat): Account for string precision when computing
1970 field width (Bug#5710).
1971
5845f0ed
DN
19722010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
1973
814fb708
DN
1974 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
1975
5845f0ed
DN
1976 Simplify LIBS_MACHINE definitions.
1977 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
1978 * m/iris4d.h (LIBS_MACHINE): Likewise.
1979 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
1980 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 1981 * s/netbsd.h: Remove commented out code.
5845f0ed 1982
b7064064
DN
19832010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
1984
df7734b2
DN
1985 Remove dead code dealing with POSIX_SIGNALS.
1986 * atimer.c (set_alarm): Remove dead code, all USG systems define
1987 POSIX_SIGNALS.
1988 * data.c (arith_error): Likewise.
1989 * keyboard.c (input_available_signal, handle_user_signal)
1990 (interrupt_signal): Likewise.
1991 * process.c (sigchld_handler): Likewise.
1992 (create_process): Remove if 0 code. Remove HPUX conditional when
1993 !defined (POSIX_SIGNALS), it cannot be true.
1994 * syssignal.h: Remove USG5_4 and USG conditionals when
1995 !POSIX_SIGNALS, they cannot be true.
1996
b7064064
DN
1997 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
1998 NO_SOCK_SIGIO, not used anymore.
1999
55da5ee3
DN
20002010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
2001
0be96e3a
DN
2002 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
2003 support vax on BSDs.
2004
55da5ee3
DN
2005 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
2006 * s/aix4-2.h (ORDINARY_LINK): ... here.
2007
c0282183
AS
20082010-03-21 Andreas Schwab <schwab@linux-m68k.org>
2009
82c3d67a
AS
2010 * Makefile.in (abs_builddir): Define.
2011 (bootstrap_exe): Use it.
2012 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 2013
3613edce
SM
20142010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
2015
2016 * Makefile.in (bootstrap_exe): Use an absolute name.
2017
7f110ddc
DN
20182010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2019
22e87574
DN
2020 Remove support for old GNU/Linux using libc version 5.
2021 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
2022 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
2023
05a670e6
DN
2024 Consolidate redundant definitions in s/bsd-common.h.
2025 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2026 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2027 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
2028 doing it in all files that include this one.
2029 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2030 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2031 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2032 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2033 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2034 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2035 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2036 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2037 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2038
2968f561
DN
2039 Consolidate redundant definitions.
2040 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
2041 it's undefined in all files that include this one.
2042 (POSIX_SIGNALS): Define here instead of doing it in all files that
2043 include this one.
2044 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2045 (POSIX_SIGNALS): Do not define.
2046 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2047 (POSIX_SIGNALS): Do not define.
2048 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2049 (POSIX_SIGNALS): Do not define.
2050
15d25dc0
DN
2051 Remove support for old UNIX System V systems.
2052 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
2053 * s/usg-5-4-2.h: Remove.
2054
07e339e4
DN
2055 Remove support for Solaris on PPC and for old versions.
2056 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
2057 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
2058 that cancel each other.
2059 * s/sol2-3.h:
2060 * s/sol2-4.h:
2061 * s/sol2-5.h: Remove.
2062 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
2063 (NO_REMAP): Remove, unused.
2064 (UNEXEC): Move definition ...
2065 * s/aix4-2.h (UNEXEC): ... here.
2066
7f110ddc
DN
2067 * s/openbsd.h: Remove support for non-ELF and for systems that do
2068 not support shared libraries.
2069 * s/netbsd.h:
2070 * s/freebsd.h: Likewise.
2071
605f35cd
DN
20722010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2073
2074 Remove non-working support for lynxos 3.0.
2075 * s/lynxos.h: Remove file.
2076
2077 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
2078 COFF_BSD_SYMBOLS, nothing defines it anymore.
2079
aed71cf4
DN
20802010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2081
2082 Remove obsolete uses of HAVE_SHM.
2083 * emacs.c (standard_args):
2084 (Fdump_emacs):
2085 (syms_of_emacs): Remove code depending on HAVE_SHM.
2086
2087 * alloc.c: Remove HAVE_SHM dependent definition.
2088
2089 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
2090
aded53ff
GM
20912010-03-18 Glenn Morris <rgm@gnu.org>
2092
17284745
GM
2093 * emacs.c (USAGE4): Hard-code bug address.
2094 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
2095 (bug_reporting_address): Remove.
2096 (main): Don't call bug_reporting_address.
2097
aded53ff
GM
2098 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
2099 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
2100
303500aa
CY
21012010-03-15 Chong Yidong <cyd@stupidchicken.com>
2102
2103 * xfns.c (Fx_create_frame):
2104 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
2105 on left.
2106
cef3058f
CY
21072010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
2108
2109 * editfns.c (Fformat): Account for string precision when computing
2110 field width (Bug#5710).
2111
a647d59d
CY
21122010-03-12 Chong Yidong <cyd@stupidchicken.com>
2113
4fa42018
CY
2114 * xfns.c (Fx_create_frame): Set default to Qright.
2115
a647d59d
CY
2116 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
2117 all window systems.
2118
6da23aaa
EZ
21192010-03-12 Eli Zaretskii <eliz@gnu.org>
2120
a96f6398 2121 These changes remove termcap.c from the build on Posix platforms.
83d02def 2122 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
2123 (MSDOS_OBJ): ...to here.
2124 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
2125 now identical to when LIBS_TERMCAP is defined.
2126
2127 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
2128
2129 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
2130
a96f6398 2131 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 2132
288f9fc0
CY
21332010-03-10 Chong Yidong <cyd@stupidchicken.com>
2134
2135 * Branch for 23.2.
2136
d48cd3f4
SM
21372010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
2138
2139 Cleanup setup of gl_state in various parts of the code.
2140 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
2141 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
2142 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
2143 (skip_chars):
2144 * regex.c (regex_compile): Use it.
2145 (re_compile_pattern): Don't set gl_state.current_syntax_table since
2146 it's now set in regex_compile when/if we need it.
2147
618db430
SM
21482010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
2149
c0335e02
SM
2150 Make it possible to C-g in a tight bytecode loop again (bug#5680).
2151 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
2152 (QUIT): Use it to consolidate code and remove redundancy.
2153 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
2154
254c06a8
SM
2155 * regex.c (regex_compile): Setup gl_state as well.
2156
618db430
SM
2157 * syntax.c (skip_chars): Setup gl_state (bug#3823).
2158 (in_classes): Use CONSP before XCAR/XCDR.
2159
233f0c9f
CY
21602010-03-03 Chong Yidong <cyd@stupidchicken.com>
2161
2162 * keymap.c (Fwhere_is_internal): Use Fequal to compare
2163 definitions, so that keyboard macros are correctly handled
2164 (Bug#5481).
2165
75f80e63
EZ
21662010-03-02 Eli Zaretskii <eliz@gnu.org>
2167
2168 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
2169 text that could be relocated inside the call to emacs_mule_char.
2170 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
2171 (CODING_DECODE_CHAR): Add a comment describing its purpose.
2172
dcfb9bc4
KH
21732010-03-02 Kenichi Handa <handa@m17n.org>
2174
fc9a17bc
KH
2175 * character.c (parse_str_as_multibyte): Fix handling of the
2176 multibyte form of raw-bytes.
2177 (str_as_multibyte): Likewise.
2178
dcfb9bc4
KH
2179 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
2180 form of raw-bytes.
2181
412c01b6
CY
21822010-02-28 Chong Yidong <cyd@stupidchicken.com>
2183
2184 * charset.c (load_charset_map_from_file)
2185 (load_charset_map_from_vector): Zero out allocated
2186 charset_map_entries before using them.
2187
df7e1ea0
AS
21882010-02-27 Andreas Schwab <schwab@linux-m68k.org>
2189
2190 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
2191
fe69a722
CY
21922010-02-27 Chong Yidong <cyd@stupidchicken.com>
2193
4ed28cf4
CY
2194 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
2195 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 2196
7379cfce
KH
21972010-02-26 Kenichi Handa <handa@m17n.org>
2198
f88cc4d6
KH
2199 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
2200
7379cfce
KH
2201 * xdisp.c (reseat_to_string): Fix previous change.
2202
cf2fdcfb
CY
22032010-02-26 David Reitter <david.reitter@gmail.com>
2204
2205 * nsfont.m (nsfont_draw): ns_antialias_text should be a
2206 Lisp_Object (Bug#4736).
2207
cc6c7c75
KH
22082010-02-25 Kenichi Handa <handa@m17n.org>
2209
2210 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
2211
32e737d7
JD
22122010-02-24 Jan Djärv <jan.h.d@swipnet.se>
2213
2214 * xterm.c (XTflash): Move declarations before statements.
2215
2216 * gtkutil.c (xg_get_gdk_display): Remove (unused).
2217 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
2218 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
2219 (xg_create_tool_bar): Remove unused variables.
2220 (x_wm_set_size_hint): Move declarations before statements.
2221 (xg_create_frame_widgets): Remove variable grav,
2222
676cae9f
CY
22232010-02-21 Chong Yidong <cyd@stupidchicken.com>
2224
2225 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
2226
886cc2b8
SM
22272010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
2228
2229 * term.c (fatal): Add a final \n if needed (bug#5596).
2230
ddb2d8e2
CY
22312010-02-18 Chong Yidong <cyd@stupidchicken.com>
2232
2233 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
2234
2a4f8d3d
GM
22352010-02-18 Glenn Morris <rgm@gnu.org>
2236
2237 * callint.c (Finteractive): Doc fix.
2238
ebaf11b6
KH
22392010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
2240
886cc2b8
SM
2241 * coding.c (record_conversion_result):
2242 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
2243 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
2244 memory allocation error.
2245
d0396581
KH
22462010-02-17 Kenichi Handa <handa@m17n.org>
2247
886cc2b8
SM
2248 * coding.c (decode_coding_ccl): Don't setup ccl program here.
2249 Fix for the case that the output buffer is fullfilled.
d0396581
KH
2250 (decode_coding): Setup ccl program here. Keep looping when the
2251 decoder stopped because the output buffer is
2252 fullfilled (bug#5534).
2253
2254 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
2255
98599f74
JD
22562010-02-13 Jan Djärv <jan.h.d@swipnet.se>
2257
471e4f04 2258 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 2259 bug #5571.
886cc2b8 2260 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 2261 overdrawn.
98599f74 2262
182659ae
JD
22632010-02-10 Jan Djärv <jan.h.d@swipnet.se>
2264
2265 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
2266 doing_interact here.
2267 (ice_connection_closed): New function.
2268 (x_session_check_input, smc_die_CB, ice_io_error_handler)
2269 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
2270 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
2271 returns I/O error.
2272 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
2273 bug #5512.
2274
9be32c4e 22752010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
2276
2277 * nsfont.m (nsfont_open): The system's value for the font descent
2278 is negative, so round it down to avoid clipping.
2279
a2f3eb19
CY
22802010-02-06 Chong Yidong <cyd@stupidchicken.com>
2281
2282 * charset.c (load_charset_map_from_file)
2283 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 2284 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 2285
3088147c
CY
22862010-02-05 Chong Yidong <cyd@stupidchicken.com>
2287
2288 * charset.c (load_charset_map_from_file): Allocate large
2289 charset_map_entries structure on the heap rather than the stack.
2290 (Bug#5526).
2291
b57d9029
KH
22922010-01-31 Kenichi Handa <handa@m17n.org>
2293
2294 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 2295 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 2296
c67d885b
CY
22972010-01-31 Chong Yidong <cyd@stupidchicken.com>
2298
2299 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
2300 <deactivated@gmail.com> (Bug#3605).
2301
8fab2362
CY
23022010-01-31 David De La Harpe Golden <david@harpegolden.net>
2303
2304 * fileio.c (Frename_file): Correctly rename symlinks to
2305 directories (Bug#5496).
2306
cb2a62f2
CY
23072010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
2308
2309 * nsterm.m (ns_ring_bell): Handle visible bell like X.
2310
944c7a26
AS
23112010-01-30 Andreas Schwab <schwab@linux-m68k.org>
2312
2313 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
2314
c024ac08
CY
23152010-01-29 Chong Yidong <cyd@stupidchicken.com>
2316
2317 * frame.c (DEFAULT_ROWS): Change default to 35.
2318
2319 * xfns.c (x_default_font_parameter): Change default XFT font to
2320 monospace-10 (Bug#3643).
2321
af93af83
EZ
23222010-01-29 Eli Zaretskii <eliz@gnu.org>
2323
2324 * w32inevt.c (key_event): Remove unnecessary comparison of
2325 event->uChar.AsciiChar with 128.
2326
ca0eb708
CY
23272010-01-28 Chong Yidong <cyd@stupidchicken.com>
2328
b242dbfc
CY
2329 * fileio.c (Frename_file): Fix last change (Bug#5487).
2330
ca0eb708
CY
2331 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
2332
2333 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
2334
45d45af5
JD
23352010-01-28 Jan Djärv <jan.h.d@swipnet.se>
2336
2337 * xfns.c (Fx_create_frame): Remove window size matching code from
2338 2010-01-15.
2339 (x_get_current_desktop, x_get_desktop_workarea): Remove
2340
7e233730
JR
23412010-01-27 Jason Rumney <jasonr@gnu.org>
2342
2343 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 2344 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 2345
86e893e3
KH
23462010-01-27 Kenichi Handa <handa@m17n.org>
2347
2348 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 2349 pattern string (Bug#4209).
86e893e3 2350
8719abec
CY
23512010-01-27 David De La Harpe Golden <david@harpegolden.net>
2352
2353 * fileio.c (Frename_file): Call copy-directory and
2354 delete-directory for directories, in order to handle cross-device
2355 renaming (Bug#3353).
2356
844794c8
JD
23572010-01-25 Jan Djärv <jan.h.d@swipnet.se>
2358
aa3e13b5 2359 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 2360 sizes 24 and 10. Bug #3643.
844794c8 2361
bd4b5750
SM
23622010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
2363
8dc1adf6 2364 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
2365 * keymap.c (shadow_lookup): Add `remap' arg.
2366 (describe_map, describe_vector): Update calls to shadow_lookup.
2367 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
2368 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
2369 perform remapping during shadow_lookup check of remapped_sequences.
2370
285d07e2
CY
23712010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
2372
2373 * image.c (png_load): Use png_sig_cmp instead of the obsolete
2374 png_check_sig, which has been removed in libpng 1.4.
2375
c6d09b8d
CY
23762010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
2377
2378 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
2379 lacks this header file).
2380
3d782998
YM
23812010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2382
2383 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
2384 as in Emacs 22.
2385
2aff7c53
YM
23862010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2387
2388 * lisp.h (make_pure_string): String pointer arg now points to const.
2389
2390 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
2391 args now point to const.
2392
74327f7a
EZ
23932010-01-22 Eli Zaretskii <eliz@gnu.org>
2394
2395 * lread.c (Fload): Don't treat files without .elc extension as
2396 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
2397 them. (bug#5303)
2398
4d1e6632
KH
23992010-01-20 Kenichi Handa <handa@m17n.org>
2400
2401 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
2402 treat the source as actual byte sequence.
2403
1fdede8f
AM
24042010-01-19 Alan Mackenzie <acm@muc.de>
2405
2406 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 2407 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
2408 `signal_after_change_p' to `coherent_change_p', and make the
2409 invocation of `modify_region' conditional on it.
2410
67477f30
JD
24112010-01-19 Jan Djärv <jan.h.d@swipnet.se>
2412
2413 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
2414 for debug purpose.
2415 (syms_of_xsettings): Declare xft-settings.
2416
244b023e
CY
24172010-01-18 Chong Yidong <cyd@stupidchicken.com>
2418
2419 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
2420
617364fe
CY
24212010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
2422
2423 * xterm.c (event_handler_gdk): Block input (Bug#5037).
2424
4fe22cdf
CY
24252010-01-16 Chong Yidong <cyd@stupidchicken.com>
2426
2427 * emacs.c (standard_args): Adjust arg priorities to reflect how
2428 they are processed in startup.el.
2429
e118d2be
AS
24302010-01-16 Andreas Schwab <schwab@linux-m68k.org>
2431
2432 * Makefile.in (lisp, shortlisp): Update.
2433
523ae620
SM
24342010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
2435
2436 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
2437 code, link the new kboard into all_kboard before running Lisp code,
2438 and protect the new terminal with GCPRO (Bug#5365).
2439 (x_term_init): Remove unused var `atom'.
2440 (x_delete_display, x_delete_terminal): Remove unused var `i'.
2441
f0d13888
JD
24422010-01-15 Jan Djärv <jan.h.d@swipnet.se>
2443
2444 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
2445 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
2446 to find out usable size of the desktop. Don't make frames larger than
ac146f82 2447 this. Bug #3643.
f0d13888 2448
cc320f07
KH
24492010-01-15 Kenichi Handa <handa@m17n.org>
2450
2451 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
2452
7ffdf101
CY
24532010-01-15 Chong Yidong <cyd@stupidchicken.com>
2454
2455 * nsterm.m (Qnone): Define.
2456
2457 * nsfns.m (Qnone): Move definition to nsterm.m.
2458
d12bd917
KH
24592010-01-14 Kenichi Handa <handa@m17n.org>
2460
2461 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
2462 systems.
2463
d9a7c140
KH
24642010-01-14 Kenichi Handa <handa@m17n.org>
2465
2466 Make auto-composition work on all buffers even if they are
2467 fundamental mode.
2468
2469 * composite.c (Vauto_composition_mode): New variable.
2470 (composition_compute_stop_pos): Check Vauto_composition_mode
2471 instead of Vauto_composition_function.
2472 (composition_adjust_point, Ffind_composition_internal): Likewise.
2473 (syms_of_composite): Declare Lisp variable
2474 "auto-composition-mode" here.
2475
63286bb2
CY
24762010-01-13 Chong Yidong <cyd@stupidchicken.com>
2477
2478 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
2479 during call to vendor-specific-keysyms (Bug#5365).
2480
c2623ee7
YM
24812010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2482
2483 * keyboard.c (input_available_signal) [SYNC_INPUT]:
2484 Call SIGNAL_THREAD_CHECK (Bug#5333).
2485
2486 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
2487 Call SIGNAL_THREAD_CHECK.
2488
0b5397c2
SM
24892010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
2490
2491 Try to fix bug#5314. This is probably not the final word, tho.
2492 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
2493 recent-auto-save-p as a side-effect.
2494 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
2495 * buffer.c (Fkill_buffer, reset_buffer):
2496 * editfns.c (Fsubst_char_in_region):
2497 * fileio.c (Finsert_file_contents, Fdo_auto_save)
2498 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
2499
dc954cb2
KH
25002010-01-13 Kenichi Handa <handa@m17n.org>
2501
2502 Display buffer name, etc. in mode line by composing correctly.
2503
2504 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
2505 STRING is not nil.
0b5397c2 2506 (display_mode_element): Adjust for the change of
dc954cb2
KH
2507 decode_mode_spec and display_line.
2508 (decode_mode_spec): Change arg MULTIBYTE to STRING.
2509 (display_string): Handle the case that STRING is non-null and
2510 LISP_STRING is not nil.
2511
0b5397c2
SM
2512 * xterm.c (x_draw_composite_glyph_string_foreground):
2513 Pay attention to s->face->overstrike.
dc954cb2
KH
2514
2515 * composite.c (composition_reseat_it): Don't check PT if STRING is
2516 non nil.
2517
4a00eaca
YM
25182010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2519
2520 * keyboard.c (read_char): Don't apply previous change when current
2521 buffer is unchanged by command execution.
2522
60abb287
JD
25232010-01-12 Jan Djärv <jan.h.d@swipnet.se>
2524
2525 * keyboard.c (read_char): Return after executing from special map.
2526
893db5bc
GM
25272010-01-12 Glenn Morris <rgm@gnu.org>
2528
2529 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
2530 bug-gnu-emacs rather than emacs-pretest-bug.
2531
4d03ece0
CY
25322010-01-11 Chong Yidong <cyd@stupidchicken.com>
2533
2534 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
2535 initializing the Lisp variables that depend on them.
2536
1df47e38
YM
25372010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2538
2539 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
2540 Clear areas that will not be updated after change of menu bar lines.
2541 Clear the menu bar window's current matrix when the window gets empty.
2542
2f1c6384
CY
25432010-01-09 Chong Yidong <cyd@stupidchicken.com>
2544
e398c61c
CY
2545 * intervals.h, textprop.c (extend_property_ranges): Return value
2546 and args changed. Discard properties that begin at or after the
2547 new end (Bug#5306).
2548
2549 * editfns.c (Fformat): Caller changed.
2550
e5a29a10
CY
2551 * nsterm.m (ns_set_default_prefs): Delete function.
2552 (syms_of_nsterm): Initialize ns_command_modifier,
2553 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
2554 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
2555
2f1c6384
CY
2556 * xdisp.c (pos_visible_p): Check for invisible text at the correct
2557 position (Bug#4040).
2558
d427a9fa
EZ
25592010-01-09 Eli Zaretskii <eliz@gnu.org>
2560
2561 * editfns.c (Ffloat_time): Doc fix.
2562
21b9df2f
JD
25632010-01-09 Jan Djärv <jan.h.d@swipnet.se>
2564
2565 * xfns.c (Fx_create_frame): Don't create frame larger than display
2566 by default bug#3643.
2567
4b00d3b1
YM
25682010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2569
2570 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
2571 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
2572 windows above internal border.
2573
2574 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
2575 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
2576 windows above internal border.
2577
2578 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
2579 tool bar windows specially.
2580
2581 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
2582
2583 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
2584 specially.
2585 (XTflash): Take account of menu bar height.
2586
2587 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
2588 specially.
2589
5075d853
JD
25902010-01-08 Jan Djärv <jan.h.d@swipnet.se>
2591
ac146f82 2592 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
2593 also be true before we can return early (bug #5339).
2594
474217c8
CY
25952010-01-06 David Reitter <david.reitter@gmail.com>
2596
2597 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
2598 (Fns_display_usable_bounds): Rewrite, computing bounds properly
2599 (Bug#3233).
2600
c0e6d47d
JD
26012010-01-06 Jan Djärv <jan.h.d@swipnet.se>
2602
d0cf45b7
JD
2603 * font.c (font_open_entity): Enable chache and call cached_font_ok
2604 for the driver if defined.
2605 (QCuser_spec): New symbol.
2606 (font_spec_from_name): Save name as user-spec.
2607 (font_load_for_lface): Keep user-spec instead of name.
2608 (font_open_by_name): Save name as user-spec.
2609 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 2610 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
2611
2612 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
2613 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
2614 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
2615
2616 * font.h (struct font_driver): Add cached_font_ok.
2617
c0e6d47d
JD
2618 * xterm.c (x_clear_frame): Queue draw for scroll bars.
2619
7c583cd8
JD
26202010-01-05 Jan Djärv <jan.h.d@swipnet.se>
2621
2622 * xterm.c (x_new_font): Move code for setting rows/cols before
2623 resizing ...
ac146f82 2624 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
2625
2626 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
2627 (xg_frame_resized, xg_frame_set_char_size):
2628 Call xg_clear_under_internal_border.
7c583cd8 2629 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 2630
03f77f0a
CY
26312010-01-05 Chong Yidong <cyd@stupidchicken.com>
2632
2633 * keyboard.c (read_key_sequence): Catch keyboard switch after
2634 making a new tty frame (Bug#5095).
2635
2a1ef5be
KH
26362010-01-05 Kenichi Handa <handa@m17n.org>
2637
2638 * fontset.c (fontset_find_font): Fix getting the frame pointer.
2639
e3eb1dae
SM
26402010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
2641
2642 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
2643 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
2644 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
2645
777013f2
MA
26462010-01-03 Michael Albinus <michael.albinus@gmx.de>
2647
2648 * dbusbind.c (xd_add_watch): Improve debug message.
2649 (xd_remove_watch): Improve debug message. If DATA is the session
2650 bus, unset D-Bus session environment.
2651 (Fdbus_init_bus): Pass the bus as argument to
2652 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 2653
8932b1c2
CY
26542010-01-01 Chong Yidong <cyd@stupidchicken.com>
2655
87231e2c
CY
2656 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
2657
4801c5fa
CY
2658 * lread.c (syms_of_lread): Make it clearer that these are the
2659 names of loaded files (Bug#5068).
2660
8932b1c2
CY
2661 * eval.c (run_hook_with_args): Handle the case where the global
2662 value has the obsolete single-function form (Bug#5026).
2663
11e3c684
CY
26642009-12-27 Chong Yidong <cyd@stupidchicken.com>
2665
2666 * minibuf.c (Fall_completions): Minor optimization.
2667
5b28ce35
EZ
26682009-12-26 Eli Zaretskii <eliz@gnu.org>
2669
5ce6e4f4
JB
2670 * .gdbinit (pgx): Fix display of composite glyphs.
2671 Display cmp.from and cmp.to as well.
2672 (pitx): Fix last change.
5b28ce35 2673
bcffff46
KH
26742009-12-25 Kenichi Handa <handa@m17n.org>
2675
2676 * composite.h (composition_adjust_point): Update prototype.
2677
2678 * composite.c (composition_reseat_it): Don't make a composition
2679 spanning over point.
2680 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
2681 composable characters.
2682 (composition_adjust_point): New arg NEW_PT. Callers changed.
2683
2684 * keyboard.c (command_loop_1): Force redisplay if the last point
2685 was within a composition.
2686 (adjust_point_for_property): Don't adjust point for automatic
2687 composition when called after buffer modification.
2688
3f670e9a
EZ
26892009-12-19 Eli Zaretskii <eliz@gnu.org>
2690
5ce6e4f4
JB
2691 * .gdbinit (pitx): Don't use enum names, use their values.
2692 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
2693 (pgx): Don't use enum names, use their values.
2694 (pitmethod): New helper command.
2695 (pitx): Use it to display iteration method.
2696 (pgrowit): New command.
2697
ad903955
EZ
2698 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
2699
3f670e9a
EZ
2700 Update dependencies in Makefile.in.
2701
2702 * Makefile.in (alloc.o): Depend on termhooks.h.
2703 (atimer.o): Depend on blockinput.h.
2704 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
2705 and frame.h.
2706 (callint.o): Depend on systime.h, coding.h, and composite.h.
2707 (callproc.o): Depend on buffer.h.
2708 (casefiddle.o): Don't depend on charset.h.
2709 (casetab.o): Depend on character.h.
2710 (ccl.o): Depend on composite.h.
2711 (chartab.o): Depend on ccl.h.
2712 (cm.o): Depend on dispextern.h.
2713 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
2714 (coding.o): Don't depend on $(INTERVALS_H).
2715 (composite.o): Don't depend on dispextern.h explicitly (it's in
2716 $(INTERVALS_H)). Depend on ccl.h.
2717 (data.o): Depend on systime.h, coding.h, composite.h,
2718 dispextern.h, font.h, and ccl.h.
2719 (dired.o): Depend on composite.h.
2720 (dispnew.o): Depend on coding.h. Don't depend explicitly on
2721 composite.h (it's in $(INTERVALS_H)).
2722 (doc.o): Depend on systime.h, coding.h, and composite.h.
2723 (editfns.o): Don't depend explicitly on dispextern.h.
2724 (emacs.o): Depend on frame.h and coding.h.
2725 (eval.o): Depend on coding.h, composite.h, and xterm.h.
2726 (fileio.o): Depend on frame.h and commands.h. Don't depend
2727 explicitly on dispextern.h.
2728 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
2729 composite.h.
2730 (fns.o): Don't depend on termhooks.h.
2731 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
2732 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
2733 coding.h, $(INTERVALS_H), window.h, xterm.h.
2734 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
2735 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
2736 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
2737 fontset.h, ccl.h, and ftfont.h.
2738 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
2739 (gtkutil.o): Depend on dispextern.h and composite.h.
2740 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
2741 termhooks.h, and ccl.h.
2742 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
2743 (intervals.o): Depend on systime.h and coding.h.
2744 (keyboard.o): Depend on composite.h and coding.h.
2745 (keymap.o): Depend on coding.h and frame.h.
2746 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
2747 (macros.o): Depend on systime.h, coding.h, and composite.h.
2748 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
2749 and atimer.h.
2750 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
2751 dispextern.h explicitly.
0b5397c2
SM
2752 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
2753 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
2754 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
2755 (regex.o): Don't depend on charset.h.
2756 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
2757 (search.o): Don't depend explicitly on composite.h.
2758 (sound.o): Depend on atimer.h and systime.h.
2759 (syntax.o): Don't depend explicitly on composite.h.
2760 (sysdep.o): Depend on coding.h and composite.h.
2761 (term.o): Depend on xterm.h and buffer.h.
2762 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
2763 (textprop.o): Don't depend on dispextern.h explicitly.
2764 (undo.o): Depend on dispextern.h.
2765 (window.o): Depend on coding.h and termhooks.h. Don't depend on
2766 dispextern.h and composite.h explicitly.
2767 (xdisp.o): Depend on ccl.h.
2768 (xfaces.o): Depend on coding.h and ccl.h.
2769 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
2770 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
2771 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
2772 ftfont.h.
2773 (xgselect.o): New dependency.
2774 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
2775 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
2776 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
2777 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
2778 (xsmfns.o): Depend on frame.h and dispextern.h.
2779 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
2780 sysselect.h.
2781
7a6f7fea
AS
27822009-12-19 Andreas Schwab <schwab@linux-m68k.org>
2783
2784 * font.c (Fclear_font_cache): Pass correct cache argument to
2785 font_clear_cache.
2786
f4c21026
AS
27872009-12-16 Andreas Schwab <schwab@linux-m68k.org>
2788
2789 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
2790 twice.
2791
f7ab0997
CY
27922009-12-15 Chong Yidong <cyd@stupidchicken.com>
2793
2794 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
2795 calling file-remote-p. Reported by Jim Meyering.
2796
fa8e045a
MA
27972009-12-15 Michael Albinus <michael.albinus@gmx.de>
2798
2799 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 2800 avoid compiler warnings. (Bug #5217)
fa8e045a 2801
a63dba42
KH
28022009-12-14 Kenichi Handa <handa@m17n.org>
2803
2804 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
2805 in 8-bit encoding.
2806
5ce6e4f4 28072009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
2808
2809 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
2810 tooltip windows.
2811
223e5fc6
JD
28122009-12-13 Jan Djärv <jan.h.d@swipnet.se>
2813
36acb2a7
JD
2814 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
2815 Xatom_net_window_type.
2816
2817 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
2818 Xatom_net_window_type.
2819
b8f00677
JD
2820 * xterm.c (my_log_handler): New function.
2821 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 2822 so we can filter out buggy messages. (Bug #5120).
b8f00677 2823
e5f0bc9a
JD
2824 * xterm.c (xg_scroll_callback): Parameter list changed,
2825 use parameter GtkScrollType to determine scroll/line/page.
2826 Only allow dragging if a button < 4 is grabbed (bug #5177).
2827 (xg_end_scroll_callback): New function.
2828 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
2829 xg_create_scroll_bar.
2830
2831 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
2832 (scroll_end_callback): Remove.
2833 (xg_create_scroll_bar): Add parameter end_callback, bind it to
2834 button-release-event. Replace value-changed event with change-value,
2835 bug #5177,
2836 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
2837 bug #5177.
2838
2839 * gtkutil.h (XG_LAST_SB_DATA): Remove.
2840 (xg_create_scroll_bar): Add GCallback end_callback.
2841
223e5fc6
JD
2842 * xftfont.c (QClcdfilter): New variable.
2843 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
2844 (syms_of_xftfont): Initialize QClcdfilter.
2845
3c055b77
JD
28462009-12-12 Jan Djärv <jan.h.d@swipnet.se>
2847
2848 * xsettings.c (struct xsettings): Add member seen.
2849 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 2850 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
2851 (apply_xft_settings): Only update Xft settings with what member seen
2852 indicates as new.
2853
05fe33ff
EZ
28542009-12-12 Eli Zaretskii <eliz@gnu.org>
2855
2856 * dispextern.h (struct text_pos): Use EMACS_INT;
2857 (struct glyph): Use EMACS_INT for charpos.
2858 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
2859 region_beg_charpos, region_end_charpos,
2860 redisplay_end_trigger_charpos, and also for
2861 iterator_stack_entry.end_charpos and
2862 iterator_stack_entry.stop_charpos.
2863
e8d7886a
JD
28642009-12-12 Jan Djärv <jan.h.d@swipnet.se>
2865
5ce6e4f4 2866 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
2867 (xg_create_scroll_bar): Call scroll_end_callback on button release
2868 event (bug #5177).
2869 (xg_event_is_for_scrollbar): != replaced with ==.
2870
d0db2ec8
KH
28712009-12-12 Kenichi Handa <handa@m17n.org>
2872
2873 * ftfont.c (struct ftfont_info): New member matrix.
2874 (ftfont_open): Setup xftfont_info->matrix.
2875 (MFLTFontFT): New member matrix.
2876 (FLOOR, CEIL, ROUND): New macros.
2877 (ftfont_get_metrics): Handle matrix transformation.
2878 (ftfont_shape_by_flt): New arg matrix. Callers changed.
2879
2880 * xftfont.c (struct xftfont_info): New member matrix.
2881 (xftfont_open): Setup xftfont_info->matrix.
2882
28832009-12-10 Kenichi Handa <handa@m17n.org>
2884
2885 * xdisp.c (append_space_for_newline): Consider face-remapping.
2886
2cc7b62f
AS
28872009-12-09 Andreas Schwab <schwab@linux-m68k.org>
2888
b87dd913
AS
2889 * xsettings.c: Include "keyboard.h".
2890
eba5eb94
AS
2891 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
2892
2cc7b62f
AS
2893 Fix implicit function declarations.
2894 * cmds.c: Include "frame.h".
2895 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
2896 * frame.h: Move declaration of delete_frame outside of
2897 HAVE_WINDOW_SYSTEM.
2898
a4ef73c8
CY
28992009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
2900
2901 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
2902
2903 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
2904 GTK builds.
2905
944a300c
AS
29062009-12-07 Andreas Schwab <schwab@linux-m68k.org>
2907
2908 * unexelf.c (unexec): Don't search for .data twice.
2909
022eef62
CY
29102009-12-05 Chong Yidong <cyd@stupidchicken.com>
2911
426ac949
CY
2912 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
2913 if push failed.
2914 (handle_line_prefix): Set avoid_cursor_p here. Check return value
2915 of push_display_prop (Bug#5000).
2916
022eef62
CY
2917 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
2918 value of font_list_entities (Bug#5085).
2919
be95bee9
JB
29202009-12-04 Juanma Barranquero <lekktu@gmail.com>
2921
2922 Fix `string-to-number' to deal consistently with integers and floats.
2923 * lread.c (isfloat_string): New argument ignore_trailing to accept all
2924 trailing characters, not just whitespace.
2925 (read1): Pass new arg 0 to keep old behavior.
2926 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
2927 trailing chars, as it is already done for integers. Doc fixes.
2928 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
2929
24c2d7ce
EZ
29302009-12-04 Eli Zaretskii <eliz@gnu.org>
2931
0b5397c2
SM
2932 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
2933 Delete unused enumeration value.
24c2d7ce 2934
7e694795
EZ
29352009-12-03 Eli Zaretskii <eliz@gnu.org>
2936
2937 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
2938
84b31826
SM
29392009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
2940
2941 * process.c (Fmake_network_process): Fix up the tests for
2942 "connectionless socket", so they DTRT for seqpacket sockets as well.
2943
f00c449b
SM
29442009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
2945
2946 * process.c (Qseqpacket): New symbol.
2947 (HAVE_SEQPACKET): New macro.
2948 (Fmake_network_process): Accept new :type `seqpacket'.
2949 (init_process): Add `seqpacket' feature when applicable.
2950 (syms_of_process): Initialize Qseqpacket.
2951
8096a0ff
YM
29522009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2953
2954 * font.c (font_load_for_lface, font_open_by_name): Don't store name
2955 if entity is Qnil.
2956
3e0de07f
SM
29572009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
2958
2959 * print.c (print_preprocess): Preprocess the key_and_value table of
2960 hashtables, even tho they're "hidden" (bug#5082).
2961
abeafb2a
JD
29622009-11-29 Jan Djärv <jan.h.d@swipnet.se>
2963
2964 * frame.c (frame_make_pointer_invisible)
2965 (frame_make_pointer_visible): Declare f before statements.
2966
4bf47195
EZ
29672009-11-28 Eli Zaretskii <eliz@gnu.org>
2968
2969 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
2970 omitted dependencies on lisp.h.
2971
c525b3f2
JD
29722009-11-27 Jan Djärv <jan.h.d@swipnet.se>
2973
ece2d4ed
JD
2974 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
2975 is NULL.
2976
2977 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
2978
2979 * frame.c (frame_make_pointer_invisible)
3e0de07f 2980 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
2981 frame.
2982
c525b3f2
JD
2983 * search.c (simple_search): Remove warning by making *p const.
2984
2f00e299
DN
29852009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
2986
2987 * xdisp.c (power_letter): Remove duplicate const.
2988
084b049b
JD
29892009-11-25 Jan Djärv <jan.h.d@swipnet.se>
2990
a1fadc6f
JD
2991 * term.c (delete_tty): Remove check for last terminal (bug#4970).
2992
5ce6e4f4 2993 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
2994 defaults (bug #5025).
2995
28259cac
SM
29962009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
2997
2998 * insdel.c (adjust_markers_for_delete): Move it in the
2999 right direction! (bug#4803)
3000
e8e14166
YM
30012009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3002
3003 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
3004
3005 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
3006
86677b58
GM
30072009-11-24 Glenn Morris <rgm@gnu.org>
3008
3009 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
3010
581e51e8
JD
30112009-11-23 Jan Djärv <jan.h.d@swipnet.se>
3012
cfc86c7a
JD
3013 * Makefile.in: Must create deps for ecrt0.o in its rule.
3014
581e51e8
JD
3015 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
3016 because that is what Gtk+ font dialog understands.
3017
3018 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
3019 of Fcopy_sequence.
3020 (font_open_by_name): Put name given into QCname for font-object returned.
3021
3022 * frame.c (x_set_font): Save original font name as frame parameter
3023 font-parameter.
3024
3025 * xsettings.c (set_default_xft_settings): New function.
3026 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
3027 is found.
3028
8b264ecb
AS
30292009-11-22 Andreas Schwab <schwab@linux-m68k.org>
3030
3031 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
3032 searching backwards through multibyte buffer.
3033
872870b2
JD
30342009-11-21 Jan Djärv <jan.h.d@swipnet.se>
3035
3036 * xterm.c: #include xgselect.h.
3037 (x_initialize): Call xgselect_initialize.
3038
3039 * xsettings.c (something_changedCB): C++ comments => C comments.
3040 (init_gconf): Do not deal with any GLib file descriptors, xg_select
3041 does that now.
3042
3043 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
3044 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
3045 (scroll_bar_button_cb): Remove.
5ce6e4f4 3046 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
3047 event.
3048 (xg_create_scroll_bar): Don't bind button-press-event and
3049 button-release-event.
3050
3051 * process.c: Include xgselect.h if defined (USE_GTK) ||
3052 defined (HAVE_GCONF).
3053 (wait_reading_process_output): Call xg_select for the same condition.
3054
3055 * xgselect.c (xg_select): New function to better integrate with
3056 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
3057
3058 * xgselect.h: New file, declare xg_select, xgselect_initialize.
3059
3060 * Makefile.in (XOBJ): Add xgselect.o.
3061
62a6e103
AS
30622009-11-21 Andreas Schwab <schwab@linux-m68k.org>
3063
0b5397c2
SM
3064 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
3065 Remove ignored second argument. All callers changed.
62a6e103
AS
3066 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
3067 (RE_STRING_CHAR_AND_LENGTH): Likewise.
3068 * xdisp.c (string_char_and_length): Likewise.
3069
b0ca0f33
DN
30702009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
3071
3072 * xterm.c (x_new_font):
3073 * print.c (print_object):
3074 * cmds.c (Fself_insert_command): Move declarations before statements.
3075
dd5a6279
CY
30762009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
3077
3078 * s/cygwin.h: Remove unneeded linker flags.
3079
4a8e097d
JD
30802009-11-20 Jan Djärv <jan.h.d@swipnet.se>
3081
0d1d0d26
JD
3082 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
3083
3084 * xsettings.h: Declare xsettings_get_system_font.
3085
3086 * xsettings.c (xsettings_get_system_font): New function.
3087 (init_gconf): No use initiating gconf unless we have Xft also.
3088 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
3089 HAVE_GCONF.
3090
4a8e097d
JD
3091 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
3092 add a blank entry so it doesn't collapse into nothing.
3093
8ab1650e
SM
30942009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
3095
3096 * lread.c (Funintern): Comment out last change.
3097
82c602f0
RS
30982009-11-19 Richard Stallman <rms@gnu.org>
3099
3100 * lread.c (Funintern): Error if symbol is t or nil.
3101
87e32266
SM
31022009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
3103
3104 * insdel.c (make_gap_larger): Don't make as many assumptions about the
3105 representation of Lisp integers.
3106 Reported by MJ Chan <mjchan.inbox@gmail.com>.
3107
1b9ac145
AS
31082009-11-17 Andreas Schwab <schwab@linux-m68k.org>
3109
3110 * lisp.h: Remove declaration of Ffont_get_system_font.
3111 * xfns.c: Move include of "xsettings.h".
3112 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
3113
dfb3c4c6
JD
31142009-11-17 Jan Djärv <jan.h.d@swipnet.se>
3115
87e32266
SM
3116 * xsettings.c (something_changedCB, Ffont_get_system_font):
3117 Check use_system_font.
dfb3c4c6
JD
3118 (syms_of_xsettings): DEFVAR font-use-system-font.
3119
9370c1d8
AS
31202009-11-17 Andreas Schwab <schwab@linux-m68k.org>
3121
25fe851a
AS
3122 * xfns.c (x_default_font_parameter): Remove dead assignment.
3123
9370c1d8
AS
3124 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
3125
637fa988
JD
31262009-11-17 Jan Djärv <jan.h.d@swipnet.se>
3127
87e32266 3128 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 3129 not have FC_LCD_*. #define them if not there.
a6eb20d8 3130
87e32266 3131 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 3132
637fa988
JD
3133 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
3134
3135 * xterm.c (handle_one_xevent): Call xft_settings_event for
3136 ClientMessage, PropertyNotify and DestroyNotify.
3137 (x_term_init): If we have XFT, get DPI from Xft.dpi.
3138 Call xsettings_initialize.
3139
3140 * xftfont.c (xftfont_fix_match): New function.
3141 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
3142 Call xftfont_fix_match after XftFontMatch.
3143
3144 * xfont.c (xfont_driver): Initialize all members.
3145
87e32266
SM
3146 * xfns.c (x_default_font_parameter):
3147 Try font from Ffont_get_system_font.
637fa988
JD
3148 Do not get font from x_default_parameter if we got one from
3149 Ffont_get_system_font.
87e32266 3150 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
3151
3152 * w32font.c (w32font_driver): Initialize all members.
3153
3154 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
3155
3156 * lisp.h: Declare syms_of_xsettings.
3157
87e32266
SM
3158 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
3159 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
3160
3161 * ftfont.c (ftfont_filter_properties): New function.
3162
3163 * frame.c (x_set_font): Remove unused variable lval.
3164
87e32266 3165 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
3166
3167 * font.c (font_put_extra): Don't return if val is nil, it means
3168 boolean option is off.
3169 (font_parse_fcname): Collect all extra properties in extra_props
3170 and call filter_properties for all drivers with extra_props and
3171 font as parameter.
87e32266
SM
3172 (font_open_entity): Do not use cache, it does not pick up new
3173 fontconfig settings like hinting.
637fa988
JD
3174 (font_load_for_lface): If spec had a name in it, store it in entity.
3175
3176 * emacs.c (main): Call syms_of_xsettings
3177
3178 * config.in: HAVE_GCONF is new.
3179
3180 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
3181 xsettings.o is new.
3182
5a942932
KH
31832009-11-17 Kenichi Handa <handa@m17n.org>
3184
3185 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
3186 back to the default font in case that no suitable font is found.
3187
b7c7a4d1
SM
31882009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
3189
3190 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
3191 Suggested by Chad Brown <yandros@mit.edu>.
3192 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
3193
072f1e39
JD
31942009-11-16 Jan Djärv <jan.h.d@swipnet.se>
3195
3196 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
3197
5d1e70a2
AS
31982009-11-14 Andreas Schwab <schwab@linux-m68k.org>
3199
87e32266 3200 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 3201
a53cfbe5
JD
32022009-11-14 Jan Djärv <jan.h.d@swipnet.se>
3203
473a99b7
JD
3204 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
3205 has a parent.
3206
a53cfbe5 3207 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 3208 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
3209
3210 * config.in: Generated (AUTO_DEPEND).
3211
f04bb9b2
MA
32122009-11-13 Michael Albinus <michael.albinus@gmx.de>
3213
b7c7a4d1 3214 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
3215 Vdbus_registered_functions_table, because it contains also
3216 properties. Fix docstring.
b7c7a4d1 3217 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 3218
8f11f7ec
SM
32192009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
3220
3221 * alloc.c (mark_object): Don't reprocess marked strings.
3222 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
3223 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
3224
8a605fe8
KH
32252009-11-13 Kenichi Handa <handa@m17n.org>
3226
8f11f7ec 3227 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
3228 semantics of Vword_combining_categories.
3229 (Vword_combining_categories): Describe the slight change of the
3230 semantics.
3231
241c4680
EZ
32322009-11-13 Eli Zaretskii <eliz@gnu.org>
3233
3234 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
3235
3236 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
3237
5d58e44c
SM
32382009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
3239
3240 * xdisp.c (syms_of_xdisp): Fix typo in last change.
3241
5e13f9d3
JB
32422009-11-12 Juanma Barranquero <lekktu@gmail.com>
3243
3244 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
3245
cf54c754
DR
32462009-11-11 David Reitter <david.reitter@gmail.com>
3247
3248 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
3249 variables to fix 2009-11-09 change.
3250
a4ada374
DN
32512009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
3252
91433552
DN
3253 * process.c (ifflag_def): Make flag_sym constant.
3254 (Fnetwork_interface_info): Use a constant pointer.
3255 (ifflag_table):
3256 * xfns.c (cursor_bits):
3257 * xdisp.c (power_letter):
3258 * termcap.c (speeds, esctab):
3259 * sysdep.c (baud_convert):
3260 * keyboard.c (lispy_accent_codes, modifier_names):
3261 * image.c (xbm_format, xpm_format, pbm_format, png_format)
3262 (jpeg_format, tiff_format, gif_format, svg_format)
3263 (interlace_start, interlace_increment, gs_format):
3264 * gtkutil.c (separator_names):
3265 * fringe.c (swap_nibble):
3266 * fns.c (base64_value_to_char, base64_char_to_value):
3267 * fileio.c (make_temp_name_tbl):
3268 * coding.c (suffixes): Make constant.
3269
f4265f6c
DN
3270 * frame.c (make_initial_frame):
3271 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
3272 build_string.
3273 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
3274
04420943
DN
3275 * s/freebsd.h:
3276 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
3277
0a5d24ae
DN
3278 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
3279 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
3280
a4ada374
DN
3281 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
3282 * xterm.c (syms_of_xterm):
3283 * xfaces.c (syms_of_xfaces):
3284 * xdisp.c (syms_of_xdisp):
3285 * lread.c (syms_of_lread):
3286 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
3287 build_string.
91433552 3288
a4ada374
DN
3289 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
3290
af98fc7f
SM
32912009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
3292
8ab1650e 3293 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 3294
e90292a9
JD
32952009-11-10 Jan Djärv <jan.h.d@swipnet.se>
3296
3297 * keyboard.h: Declare timer_check.
3298
3299 * keyboard.c (timer_check_2): New function that does what the old
3300 timer_check did.
3301 (timer_check): Call timer_check_2 until -1 or a non-zero time is
3302 returned, i.e. don't return -1 with timers pending.
3303
3304 * process.c: Remove extern declaration of timer_check.
3305
3306 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
3307 even if timer_check returned -1.
3308
af98fc7f
SM
3309 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
3310 xg_dialog_data.
e90292a9
JD
3311 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
3312 the event loop.
3313 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
3314 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
3315 Destroy the dialog after xg_dialog_run.
3316
045b83c0
SM
33172009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
3318
3319 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
3320
1fb99a3a
JD
33212009-11-10 Jan Djärv <jan.h.d@swipnet.se>
3322
3323 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
3324
04e452cb
JB
33252009-11-09 Juanma Barranquero <lekktu@gmail.com>
3326
3327 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
3328
ef7417fd
SM
33292009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
3330
3331 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
3332 w32menu.c, and nsmenu.m.
3333 Simplify the obsolete case where position is nil.
3334 (cleanup_popup_menu): New function, moved from nsmenu.m.
3335 (struct skp): Remove slot `notreal'.
3336 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
3337 adjust callers.
3338 (single_menu_item): Adjust call to parse_menu_item.
3339 (syms_of_menu): Defsubr x-popup-menu.
3340 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
3341 (keymap_panes): Don't export any more.
3342 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
3343 (xmenu_show): Declare.
3344 * keyboard.c (parse_menu_item): Remove arg `notreal'.
3345 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
3346 * keyboard.h (parse_menu_item): Update declaration.
3347 * xmenu.c (Fx_popup_menu): Remove.
3348 (syms_of_xmenu): Don't defsubr x-popup-menu.
3349 * w32menu.c (Fx_popup_menu): Remove.
3350 (syms_of_w32menu): Don't defsubr x-popup-menu.
3351 * nsmenu.m (cleanup_popup_menu): Remove.
3352 (ns_menu_show): Rename from ns_popup_menu and remove all the code
3353 moved to menu.c's Fx_popup_menu.
3354 (Fx_popup_menu): Remove.
3355 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
3356 menu_items (it's done in menu.c already).
3357
424d6179
SM
33582009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
3359
3360 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
3361 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
3362
c0df13a6 33632009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
3364
3365 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 3366 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
3367 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
3368 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
3369
2de9f71c
SM
33702009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
3371
3372 Let integers use up 2 tags to give them one extra bit and thus double
3373 their range.
3374 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
3375 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
3376 New macros.
3377 (enum Lisp_Type): Use them. Give explicit values.
3378 (Lisp_Type_Limit): Remove.
3379 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
3380 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
3381 Pay attention to USE_2_TAGS_FOR_INTS.
3382 (INTEGERP): Use LISP_INT_TAG_P.
3383 * fns.c (internal_equal): Simplify the default case.
3384 (sxhash): Use case_Lisp_Int.
3385 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
3386 any more.
3387 (Ftype_of): Use case_Lisp_Int.
3388 (store_symval_forwarding): Take into account the fact that Ints can
3389 now have more than one tag.
3390 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
3391 buffer_slot_type_mismatch):
3392 * xfaces.c (face_attr_equal_p):
3393 * print.c (print_object):
3394 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
3395 Use case_Lisp_Int.
3396
323637a2
EZ
33972009-11-06 Eli Zaretskii <eliz@gnu.org>
3398
7ac65b38
EZ
3399 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
3400
323637a2
EZ
3401 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
3402 warning.
3403
e511451f
JD
34042009-11-06 Jan Djärv <jan.h.d@swipnet.se>
3405
3406 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
3407
3408 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
3409
3410 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
3411 ButtonPressRelease and MotionNotify (bug#4870).
3412
5e2327cf
DN
34132009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
3414
5adc433e
DN
3415 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
3416
d67b4f80
DN
3417 * xterm.c (syms_of_xterm):
3418 * xselect.c (syms_of_xselect):
3419 * xmenu.c (syms_of_xmenu):
3420 * xfns.c (syms_of_xfns):
3421 * xfaces.c (syms_of_xfaces):
3422 * xdisp.c (syms_of_xdisp):
3423 * window.c (syms_of_window):
3424 * w32fns.c (syms_of_w32fns):
3425 * undo.c (syms_of_undo):
3426 * textprop.c (syms_of_textprop):
3427 * terminal.c (syms_of_terminal):
3428 * syntax.c (syms_of_syntax):
3429 * sound.c (syms_of_sound):
3430 * search.c (syms_of_search):
3431 * print.c (syms_of_print):
3432 * minibuf.c (syms_of_minibuf):
3433 * macros.c (syms_of_macros):
3434 * keymap.c (syms_of_keymap, initial_define_key)
3435 (initial_define_lispy_key):
3436 * keyboard.c (syms_of_keyboard):
3437 * insdel.c (syms_of_insdel):
3438 * image.c (syms_of_image):
3439 * fringe.c (syms_of_fringe):
3440 * frame.c (syms_of_frame):
3441 * fontset.c (syms_of_fontset):
3442 * fns.c (syms_of_fns):
3443 * fns.c (syms_of_fns):
3444 * fileio.c (syms_of_fileio):
3445 * fileio.c (syms_of_fileio):
3446 * eval.c (syms_of_eval):
3447 * doc.c (syms_of_doc):
3448 * dispnew.c (syms_of_display):
3449 * dired.c (syms_of_dired):
3450 * dbusbind.c (syms_of_dbusbind):
3451 * data.c (syms_of_data):
3452 * composite.c (syms_of_composite):
3453 * coding.c (syms_of_coding):
3454 * cmds.c (syms_of_cmds):
3455 * charset.c (define_charset_internal, syms_of_character):
3456 * ccl.c (syms_of_ccl):
3457 * category.c (syms_of_category, init_category_once):
3458 * casetab.c (syms_of_casetab):
3459 * casefiddle.c (syms_of_casefiddle):
3460 * callint.c (syms_of_callint):
3461 * bytecode.c (syms_of_bytecode):
3462 * buffer.c (keys_of_buffer, syms_of_buffer):
3463 * alloc.c (syms_of_alloc):
3464 * process.c (syms_of_process, init_process):
3465 * lread.c (syms_of_lread, init_obarray):
3466 * font.c (build_style_table):
3467 * emacs.c (syms_of_emacs, main): Replace calls to intern with
3468 intern_c_string, calls to make_pure_string with
3469 make_pure_c_string. Use pure_cons instead of Fcons.
3470
5e2327cf
DN
3471 * process.c (socket_options): Make it const.
3472 (set_socket_option, init_process): Use a const pointer.
3473
3474 * lread.c (intern_c_string): New function.
3475 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
3476 (defvar_int): Uset it. Make the name const char*.
3477
3478 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
3479 (defvar_int): Update prototypes.
3480 (DEFUN, EXFUN): Support for prototypes is now required.
3481 (intern_c_string): New prototype.
3482 (struct Lisp_Subr): Make symbol_name constant.
3483
3484 * font.c (struct table_entry): Remove unused member. Make NAMES
3485 constant.
3486 (weight_table, slant_table, width_table): Make constant.
3487
3488 * emacs.c (struct standard_args): Make name and longname constant.
3489
3490 * character.h (DEFSYM): Use intern_c_string.
3491
a56eaaef
DN
34922009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
3493
3494 * alloc.c (make_pure_c_string): New function.
3495
3496 * eval.c (Fautoload): Purecopy all arguments.
3497
f6a07420
KH
34982009-11-05 Kenichi Handa <handa@m17n.org>
3499
3500 * fileio.c (Finsert_file_contents): Be sure set coding-system of
3501 the buffer in case of replace.
3502
5d28d4b1
DN
35032009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
3504
3505 * puresize.h (BASE_PURESIZE): Increase to 1620000.
3506
b349d111
SM
35072009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
3508
d528b1ce
SM
3509 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
3510 when applicable (bug#4851).
3511
b349d111
SM
3512 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
3513 (P_): Support for prototypes is now required.
3514
c38eb027
CY
35152009-10-31 Chong Yidong <cyd@stupidchicken.com>
3516
3517 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
3518 (Bug#4827).
3519
0405f8d9
EZ
35202009-10-30 Eli Zaretskii <eliz@gnu.org>
3521
d528b1ce 3522 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 3523
ca0a881a
DN
35242009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
3525
3526 * puresize.h (BASE_PURESIZE): Increase to 1470000.
3527
d528b1ce
SM
3528 * lread.c (Fload): Purecopy the file name when building
3529 Vpreloaded_file_list.
ca0a881a 3530
47e0e0e4
JR
35312009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
3532
3533 * w32fns.c (syms_of_w32fns): Change default value of
3534 w32-scroll-lock-modifier to nil. (Bug#2827)
3535
057bce6f
JB
35362009-10-26 Juanma Barranquero <lekktu@gmail.com>
3537
782a943e 3538 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 3539
242bc74c
AS
35402009-10-26 Andreas Schwab <schwab@redhat.com>
3541
3542 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
3543
522d013a
JB
35442009-10-26 Juanma Barranquero <lekktu@gmail.com>
3545
3546 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
3547 For delta < 0, skip check that only makes sense when the mini-window
3548 is going to be enlarged. (Bug#4534)
3549
18060980
CY
35502009-10-25 Chong Yidong <cyd@stupidchicken.com>
3551
3552 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
3553 string in menu maps (Bug#4471).
3554
fec8f0fe
CY
35552009-10-24 Chong Yidong <cyd@stupidchicken.com>
3556
3557 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
3558 FRAME_NS_VIEW on terminal frames (Bug#4765).
3559
10d66ec0
AS
35602009-10-24 Andreas Schwab <schwab@linux-m68k.org>
3561
1cae01f7
AS
3562 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
3563 DBUS_TYPE_UINTnn separately to get proper sign extension.
3564
58a12889
AS
3565 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
3566 can properly handle unsigned types.
d528b1ce 3567 (make_uid, make_gid): Remove.
58a12889 3568
987c9327
AS
3569 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
3570 types again.
3571
522d013a 3572 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
3573 (system_process_attributes): Likewise.
3574
905a9ed3
DN
35752009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
3576
3577 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
3578
3579 * eval.c (Fautoload): Purecopy the filename. Simplify.
3580
3581 * category.c (Fdefine_category): Purecopy docstring.
3582
a599b3e8
AS
35832009-10-23 Andreas Schwab <schwab@linux-m68k.org>
3584
7b792fc9
AS
3585 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
3586
a599b3e8
AS
3587 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
3588
b35ac83e
CY
35892009-10-23 Chong Yidong <cyd@stupidchicken.com>
3590
3591 * window.c (Fwindow_edges, Fwindow_pixel_edges)
3592 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
3593 (Bug#4775).
3594
e8903e00
SM
35952009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
3596
3597 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
3598 (init_fileio_once):
3599 * lisp.h (init_fileio_once): Remove.
3600 * emacs.c (main): Don't call init_fileio_once.
3601
8f43cbf3
DN
36022009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
3603
3604 * puresize.h (BASE_PURESIZE): Increase to 1430000.
3605
26898943
AS
36062009-10-21 Andreas Schwab <schwab@linux-m68k.org>
3607
3608 * doprnt.c (doprnt): Fix overflow check.
3609
5c646d5a
JD
36102009-10-21 Jan Djärv <jan.h.d@swipnet.se>
3611
3132a7ea
JD
3612 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
3613
5c646d5a
JD
3614 * xterm.h (x_wait_for_event): Declare it.
3615
3616 * xterm.c (pending_event_wait): New variable.
3617 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
3618 see pending_event_wait.eventtype.
3619 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
3620 (x_new_font): Call change_frame_size with new rows/columns before we
3621 try to resize the frame.
5c646d5a 3622 (x_wait_for_event): New function.
d528b1ce
SM
3623 (x_set_window_size_1): Don't change gravity unless change_gravity
3624 is set.
5c646d5a
JD
3625 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
3626 don't change frame size, instead wait for the ConfigureNotify.
3627 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
3628 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
3629 (x_initialize): Initialize pending_event_wait.
3630
3631 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
3632 size.
3633
3634 * widget.c (EmacsFrameSetValues): Add comment.
3635 (EmacsFrameSetCharSize): Just call x_set_window_size.
3636
3637 * gtkutil.c (xg_frame_set_char_size): Flush events and call
3638 x_wait_for_event.
d528b1ce 3639 (flush_and_sync): Remove again.
5c646d5a
JD
3640 (xg_get_font_name): Suggest monospace if no previous font is known.
3641
e9c1637d
SM
36422009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
3643
3644 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 3645 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 3646
5a72cccb
YM
36472009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3648
3649 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
3650 processing pending events when event is filtered for input method.
ab04798f 3651 (Bug#3681)
5a72cccb 3652
2629aa37
JB
36532009-10-20 Juanma Barranquero <lekktu@gmail.com>
3654
3655 * fns.c: Add #endif accidentally removed in previous change.
3656
c3417a74
DN
36572009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
3658
3659 * fns.c: Remove code for unsupported system: MAC_OS.
3660 * image.c: Likewise. Include setjmp.h.
3661
9685cef2
JD
36622009-10-19 Jan Djärv <jan.h.d@swipnet.se>
3663
3664 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
3665 pixel -1 (bug #4742).
3666
d7306fe6
DN
36672009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
3668
019d2c4c
DN
3669 * process.c (create_pty): Remove conditionals for no longer
3670 supported systems: UNIPLUS and RTU.
3671
ee6bacd4
DN
3672 * xterm.c:
3673 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
3674
d7306fe6
DN
3675 * alloc.c: Do not define struct catchtag.
3676 * eval.c: Move struct catchtag definition ...
3677 * lisp.h: ... here.
3678
3679 * image.c: Move png.h #include earlier to avoid warnings.
3680
3681 * xterm.c:
3682 * xsmfns.c:
3683 * xselect.c:
3684 * xrdb.c:
3685 * xmenu.c:
3686 * xftfont.c:
3687 * xfont.c:
3688 * xfns.c:
3689 * xfaces.c:
3690 * xdisp.c:
3691 * window.c:
3692 * widget.c:
3693 * w32xfns.c:
3694 * w32uniscribe.c:
3695 * w32term.c:
3696 * w32select.c:
3697 * w32reg.c:
3698 * w32proc.c:
3699 * w32menu.c:
3700 * w32inevt.c:
3701 * w32heap.c:
3702 * w32font.c:
3703 * w32fns.c:
3704 * w32console.c:
3705 * w32.c:
3706 * w16select.c:
3707 * vm-limit.c:
3708 * unexsol.c:
3709 * unexec.c:
3710 * unexcw.c:
3711 * unexaix.c:
3712 * undo.c:
3713 * tparam.c:
3714 * textprop.c:
3715 * terminfo.c:
3716 * terminal.c:
3717 * termcap.c:
3718 * term.c:
3719 * syntax.c:
3720 * sound.c:
3721 * sheap.c:
3722 * search.c:
3723 * scroll.c:
3724 * region-cache.c:
3725 * regex.c:
3726 * ralloc.c:
3727 * process.c:
3728 * print.c:
b024548b
DN
3729 * nsterm.m:
3730 * nsselect.m:
3731 * nsmenu.m:
3732 * nsimage.m:
3733 * nsfont.m:
3734 * nsfns.m:
d7306fe6
DN
3735 * msdos.c:
3736 * minibuf.c:
3737 * menu.c:
3738 * marker.c:
3739 * macros.c:
3740 * keymap.c:
3741 * keyboard.c:
3742 * intervals.c:
3743 * insdel.c:
3744 * indent.c:
3745 * gtkutil.c:
3746 * ftxfont.c:
3747 * ftfont.c:
3748 * fringe.c:
3749 * frame.c:
3750 * fontset.c:
3751 * font.c:
3752 * fns.c:
3753 * floatfns.c:
3754 * filelock.c:
3755 * fileio.c:
3756 * emacs.c:
3757 * editfns.c:
3758 * dosfns.c:
3759 * doprnt.c:
3760 * doc.c:
3761 * dispnew.c:
3762 * dired.c:
3763 * dbusbind.c:
3764 * data.c:
3765 * composite.c:
3766 * coding.c:
3767 * cmds.c:
3768 * cm.c:
3769 * chartab.c:
3770 * charset.c:
3771 * character.c:
3772 * ccl.c:
3773 * category.c:
3774 * casetab.c:
3775 * casefiddle.c:
3776 * callproc.c:
3777 * callint.c:
3778 * bytecode.c:
3779 * buffer.c:
3780 * atimer.c: Include setjmp.h. (Bug#4643)
3781
fd5f21e6
SM
37822009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
3783
4c0354d7
SM
3784 Remove leftover table unibyte_to_multibyte_table.
3785 * character.c (unibyte_to_multibyte_table): Remove.
3786 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
3787 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
3788 * character.h (UNIBYTE_TO_CHAR): New macro.
3789 (MAKE_CHAR_MULTIBYTE): Use it.
3790 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
3791 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
3792 (message_dolog, set_message_1):
3793 * search.c (Freplace_match):
3794 * editfns.c (Fcompare_buffer_substrings):
3795 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
3796 (concat):
3797 * insdel.c (copy_text, count_size_as_multibyte):
3798 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
3799 * term.c (produce_glyphs):
3800 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
3801 * regex.c (RE_CHAR_TO_MULTIBYTE):
3802 * cmds.c (internal_self_insert):
3803 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
3804
fd5f21e6
SM
3805 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
3806
4418646e
DN
38072009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
3808
3809 * puresize.h (BASE_PURESIZE): Increase to 1310000.
3810
35f5c1d2
JB
38112009-10-16 Juanma Barranquero <lekktu@gmail.com>
3812
3813 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
3814
a0cd8f6b
AR
38152009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
3816
3817 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
3818 still needed under Tiger.
3819
3820 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
3821
3822 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
3823 __Apple__.
3824
3825 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
3826
01a8d3fa
KH
38272009-10-15 Kenichi Handa <handa@m17n.org>
3828
3829 * print.c (print_object): Escape a symbol like "2E10" too.
3830
bf6c75c9 38312009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
3832
3833 Cleanups and changes for 64-bit compile under Snow Leopard.
3834 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
3835
3836 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
3837
c5959062 3838 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
3839 (ns_findfonts, nsfont_list_family): Use long format in printf, and
3840 cast argument.
3841 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 3842 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
3843
3844 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
3845
3846 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
3847 where appropriate.
3848
3849 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
3850 where appropriate.
6e4780c5
JB
3851 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
3852 Use stringWithUTF8String.
bf6c75c9
AR
3853 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
3854
6e4780c5
JB
3855 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
3856 Add formal protocol mention to inheritance.
bf6c75c9
AR
3857 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
3858
6e4780c5
JB
3859 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
3860 Fix printf format.
bf6c75c9
AR
3861 (ns_query_color): Use CGFloat where appropriate.
3862 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 3863 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
3864 argument.
3865
3d87f118
AR
3866 * config.in (NS_HAVE_NSINTEGER): Drop.
3867
a95c8102
AR
3868 * dbusbind.c (dbus-method-return-internal)
3869 (dbus-method-error-internal): Use long format in printf, and cast
3870 argument.
3871
3872 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
3873 in printf, and cast argument.
3874
6873acca 3875 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
3876 cast argument.
3877
9ec6f100
GM
38782009-10-11 Glenn Morris <rgm@gnu.org>
3879
3880 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
3881
5be883cd
JD
38822009-10-08 Jan Djärv <jan.h.d@swipnet.se>
3883
3884 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
3885 menu bar with a small width so it doesn't enlarge the frame.
3886
d7a39b51
JB
38872009-10-08 Juanma Barranquero <lekktu@gmail.com>
3888
3889 * fontset.c (Fset_fontset_font): Fix typos in error messages.
3890
0c2b6f8e
GM
38912009-10-06 Glenn Morris <rgm@gnu.org>
3892
3893 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
3894 SOME_MACHINE_LISP (this enters indirectly via DOC).
3895
e02131a2
EZ
38962009-10-05 Eli Zaretskii <eliz@gnu.org>
3897
3898 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
3899
b4744254
EZ
39002009-10-04 Eli Zaretskii <eliz@gnu.org>
3901
3902 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
3903 Doc fix.
3904
dbf64827
JB
39052009-10-03 Martin Rudalics <rudalics@gmx.at>
3906
3907 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
3908
e9a0aef8
MA
39092009-10-02 Michael Albinus <michael.albinus@gmx.de>
3910
d528b1ce 3911 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
3912 used anymore outside fileio.c.
3913
3914 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
3915
64eb2b56
JB
39162009-10-01 Juanma Barranquero <lekktu@gmail.com>
3917
3918 * lisp.h (Qdelete_directory_internal):
3919 Declare, instead of Qdelete_directory.
3920
3921 * w32fns.c (Fsystem_move_file_to_trash): Use it.
3922
9d28c33e
SM
39232009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
3924
3925 * eval.c (Fcalled_interactively_p): Add `kind' argument.
3926
9d8f3bd9
MA
39272009-10-01 Michael Albinus <michael.albinus@gmx.de>
3928
9d28c33e 3929 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
3930 Fdelete_directory. It is not a command anymore. It has no file
3931 name handler.
3932
9694740b
SM
39332009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
3934
3935 * xdisp.c (get_next_display_element): Use an enum in last change.
3936
748e162f
KH
39372009-09-28 Kenichi Handa <handa@m17n.org>
3938
9694740b 3939 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
3940 unibyte_display_via_language_environment in handling
3941 Vnobreak_char_display.
3942
17efd58d
AR
39432009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
3944
3945 * nsterm.h (ns_app_name): New extern variable.
3946
3947 * nsterm.m (ns_app_name): New variable.
3948 (ns_term_init): Set and use it.
3949 (ns_term_shutdown): Use it.
3950
3951 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
3952 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
3953
3954 * nsfns.m (ns_set_name_iconic, ns_set_name)
3955 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
3956 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
3957
9694740b
SM
3958 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
3959 Remove double-casting in client_data comparison.
31c2d412 3960
3208cb35
YM
39612009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3962
3963 * keyboard.c (make_lispy_event): Remember last wheel direction.
3964 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
3965
b7d552d6
GM
39662009-09-26 Glenn Morris <rgm@gnu.org>
3967
3968 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
3969 internal.elc. Add term/pc-win.elc.
3970 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
3971 term/x-win.elc.
3972 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
3973 term/w32-win.elc.
3974 (NS_SUPPORT): New.
3975 (lisp): Add NS_SUPPORT.
3976 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
3977
4ff670a8
DR
39782009-09-25 David Reitter <david.reitter@gmail.com>
3979
3980 * nsmenu.m (EmacsMenu-clear): Recognize application menu
3981 on Mac OS X 10.6+ (bug#4513).
3982
feabfb6c
JB
39832009-09-24 Juanma Barranquero <lekktu@gmail.com>
3984
3985 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
3986 some parts of Emacs code (like font selection) don't grok them.
3987 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 3988
de59072a
AS
39892009-09-24 Andreas Schwab <schwab@redhat.com>
3990
3991 * coding.c (decode_coding_iso_2022): Fix operator precedence.
3992
a489517b
JB
39932009-09-24 Juanma Barranquero <lekktu@gmail.com>
3994
3995 * dired.c (Fdirectory_files): Fix typo in docstring.
3996
0592970c
AR
39972009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
3998
3999 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
4000 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
4001 (EmacsScroller-setPosition:portion:whole:): Remove -display call
4002 under GNUstep.
4003 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
4004
4005 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
4006 glyph advancement.
4007
48e8a88b
AR
40082009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4009
4010 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 4011 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
4012
4013 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
4014 deleted (bug #4492).
4015
e14f0a78
AR
4016 * nsfont.m (Vns_reg_to_script): New lisp variable.
4017 (syms_of_nsfont): Declare it.
4018 (ns_registry_to_script): New function.
4019 (ns_get_req_script): Call it.
4020 (ns_findfonts): Don't give up on non-unicode registry.
4021
4022 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
4023
5b650faa
SM
40242009-09-20 Tom Tromey <tromey@redhat.com>
4025
4026 * eval.c (find_handler_clause): Make stack-trace-on-error work in
4027 batch mode (bug#4228).
4028
a489517b 40292009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
4030
4031 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 4032 carefully. (Bug #4339)
0bae4e09 4033
fcfe06f3
CY
40342009-09-18 Chong Yidong <cyd@stupidchicken.com>
4035
d798ba87 4036 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 4037
31642728
AR
40382009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
4039
4040 * emacs.c (inhibit_x_resources): Update doc string for NS.
4041 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 4042 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
4043
4044 * nsterm.h (ns_no_defaults): Remove.
4045
4046 * nsterm.m (ns_no_defaults): Remove.
4047 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
4048 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
4049 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
4050 don't update the NSWindow itself.
4051 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 4052 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
4053
4054 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
4055 ns_use_qd_smoothing.
4056
4057 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
4058 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 4059 (x-close-connection): Drop PSFlush() under OS X.
a489517b 4060 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 4061
8686ac71
JB
40622009-09-17 Juanma Barranquero <lekktu@gmail.com>
4063
4064 * emacs.c (inhibit_x_resources): New variable.
4065 (main) [HAVE_NS]: Don't process --quick command line option.
4066 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
4067
4068 * lisp.h (inhibit_x_resources): Declare it extern.
4069
4070 * w32reg.c (x_get_string_resource):
4071 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
4072
e227ba05
EZ
40732009-09-17 Eli Zaretskii <eliz@gnu.org>
4074
362654a6
JB
4075 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
4076 Add lisp/term/internal.elc.
e227ba05 4077
742d40e8
SM
40782009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
4079
4080 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
4081 (bug#4461).
4082
005bd5a2
DN
40832009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
4084
4085 * puresize.h (BASE_PURESIZE): Increase to 1290000.
4086
4087 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
4088 (OBJECTS_MACHINE): Remove, unused.
4089
f9af9719
SM
40902009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
4091
4092 * frame.c (x_get_resource_string): Remove unused.
4093
0307c7d2
JD
40942009-09-15 Jan Djärv <jan.h.d@swipnet.se>
4095
4096 * xterm.c (x_new_font): Call change_frame_size before calling
4097 x_set_window_size, in case frame size won't change.
4098
4099 * frame.c (x_set_font): Remove dead code.
4100
428b13d6
SM
41012009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
4102
4103 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
4104
5766c380
SM
41052009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4106
4107 * lread.c (Fload): Don't output a message after loading an obsolete
4108 package any more (done in Lisp now).
4109
2fd0161b
CY
41102009-09-12 Chong Yidong <cyd@stupidchicken.com>
4111
4112 * fns.c (syms_of_fns): Doc fix (Bug#4227).
4113
bc5e75b6
SM
41142009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4115
4116 * keymap.c (Fwhere_is_internal): Use nconc2.
4117
c31c985e
AM
41182009-09-11 Alan Mackenzie <acm@muc.de>
4119
4120 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
4121 batch mode.
4122
78012bd2
AS
41232009-09-11 Andreas Schwab <schwab@linux-m68k.org>
4124
4125 * xdisp.c (display_mode_element): Detect cycles.
4126
9d889332
SM
41272009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
4128
4129 * keymap.c (where_is_internal): Don't erroneously return nil right after
4130 filling the cache.
4131 (where_is_internal_1): Fix up typo.
4132
7ab5d780
GM
41332009-09-11 Glenn Morris <rgm@gnu.org>
4134
4135 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
4136 share a common doc-string.
4137
5238a749
SM
41382009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
4139
66d77eda
SM
4140 * keymap.c (get_keymap): Return the actual keymap symbol rather than
4141 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
4142
5238a749
SM
4143 * keymap.c (QCadvertised_binding): New constant.
4144 (syms_of_keymap): Initialize it.
4145 (Fwhere_is_internal): Try and use bindings from :advertised-binding
4146 if applicable.
4147
19f48442
SM
41482009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
4149
50d4ba39
SM
4150 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
4151 (parse_menu_item): Streamline since bindings are recomputed all the
4152 time anyway. Don't bother checking Vdefine_key_rebound_commands any
4153 more and don't support lmenu's menu-alias any more either.
4154
a88a5372
SM
4155 * keymap.c (where_is_internal_data): Make noindirect a boolean.
4156 (where_is_internal): Strip it down to only traverse the keymaps.
4157 Move the cache handling from Fwhere_is_internal to here.
4158 (Fwhere_is_internal): Move the handling of remapping and the choice of
4159 the best binding from where_is_internal to here.
4160 Unify the cached/noncached paths, so remapping is also handled
4161 correctly when the cache is used, and so the cache can be used to
4162 speed up remap-handling when applicable.
4163 Give preference to non-remapped bindings.
4164 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
4165 non-remapped bindings.
4166 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
4167 command remapping.
4168
19f48442
SM
4169 * xdisp.c (display_mode_element): Move list length limit from 50 to
4170 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
4171
599498c3 41722009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
4173
4174 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
4175
f9b7b5ac
SM
41762009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
4177
a53af587
JB
4178 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
4179 (Bug#4334)
4180
f9b7b5ac
SM
4181 * keymap.c (where_is_internal): Filter out shadowed remappings.
4182 Assume that where_is_internal returns unshadowed bindings to simplify
4183 the code and get rid of the gotos. Use ASIZE.
4184
04f4b72d
JD
41852009-09-04 Jan Djärv <jan.h.d@swipnet.se>
4186
4da146f2
JD
4187 * xterm.c (x_focus_changed): If we get a focusout and pointer
4188 is invisible, make it visible.
4189
04f4b72d
JD
4190 * xterm.h: Remove condition for declaration of
4191 x_*_window_to_frame.
4192
7cef7ce3
SM
41932009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
4194
4195 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
4196 initial terminal as well.
4197
a54fa5b7
JD
41982009-09-02 Jan Djärv <jan.h.d@swipnet.se>
4199
4200 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 4201 x_menubar_window_to_frame.
a54fa5b7 4202
50426a04 4203 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
4204 (XTmouse_position): Do not return valid positions
4205 for clicks in the menubar and the toolbar for Gtk+.
4206
4207 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
4208 if the widget for the event has the same top level as a frame,
4209 return the frame.
4210 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
4211 internal windows, bug #4122.
4212 (x_non_menubar_window_to_frame): Remove.
4213
5a021dd0
GM
42142009-09-02 Glenn Morris <rgm@gnu.org>
4215
4216 * buffer.c (default-major-mode): Move most of the doc from here...
4217 (major-mode): ... to here.
4218
548fe2f3
NR
42192009-08-30 Nick Roberts <nickrob@snap.net.nz>
4220
4221 * process.c (wait_reading_process_output): Keep the descriptor
4222 when pty is used by a non-child process, e.g., in I/O buffer of
4223 GDB this allows inferior to be restarted.
4224
e0840eef
EZ
42252009-08-29 Eli Zaretskii <eliz@gnu.org>
4226
4227 * xdisp.c (redisplay_internal): Remove redundant test and collapse
4228 both branches into one.
4229
82e98df4
SM
42302009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
4231
4232 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
4233 (main): Use enable-multibyte-characters rather than
4234 default-enable-multibyte-characters. Output a warning message when
4235 running a unibyte session.
4236
890617cb
YM
42372009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4238
4239 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
4240 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
4241 (copy_data_segment): Also copy __program_vars section.
4242 (copy_dyld_info) [LC_DYLD_INFO]: New function.
4243 (dump_it) [LC_DYLD_INFO]: Use it.
4244
4245 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
4246
e7adeadc
EZ
42472009-08-28 Eli Zaretskii <eliz@gnu.org>
4248
4249 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
4250 $(SRC)/buildobj.h.
4251 (buildobj.h): Renamed from $(SRC)/buildobj.h.
4252 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
4253 $(SRC)/buildobj.h.
4254 (clean): Add buildobj.h.
4255
3ed8bbdc
TZ
42562009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
4257
4258 * print.c (print_object): Set escapeflag to 1 when printing
4259 hashtable keys and values.
4260
155a6764
SM
42612009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
4262
4263 * lread.c (read_integer): Use doubles (and potentially return a float
4264 number) as we do in string-to-number.
4265 (read1): Use strtol to read integers, signal errors on strtol's
4266 overflow and use floats if strtol's output is too large for
4267 Elisp integers.
4268
877610de
EZ
42692009-08-27 Eli Zaretskii <eliz@gnu.org>
4270
4271 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
4272 (make-buildobj-SH): Fix last change.
4273 (SRC): Move to before where it's first used.
4274
ef73e7be
KH
42752009-08-27 Kenichi Handa <handa@m17n.org>
4276
550c8289
KH
4277 * process.c (send_process): Use encode_coding_object instead of
4278 encode_coding_string to perform eol-conversion even if the string
4279 is unibyte.
4280
60afa08d
KH
4281 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
4282 character.
4283
ef73e7be 4284 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 4285 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 4286
7b3a82d7
DN
42872009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
4288
5654bf63
DN
4289 * callproc.c (Fcall_process): Remove always true #if.
4290
7b3a82d7
DN
4291 * lisp.h: Replace #if 0 code for checking with text pointing to
4292 the --enable-checking configure flag.
4293
4294 * emacs.c (main): Mention the --enable-profiling configure flag
4295 instead of using CFLAGS.
4296
878bde49
KR
42972009-08-26 Ken Raeburn <raeburn@raeburn.org>
4298
4299 * Makefile.in (buildobj.h): New target.
4300 (doc.o): Depend on it.
4301 (temacs${EXEEXT}): Don't generate buildobj.lst.
4302 (mostlyclean): Delete buildobj.h, not buildobj.lst.
4303 * makefile.w32-in ($(SRC)/buildobj.h): New target.
4304 ($(BLD)/doc.$(O)): Depend on it.
4305 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
4306 provided by Eli Zaretskii.)
4307 ($(TEMACS)): Don't generate buildobj.lst.
4308 * doc.c: Include buildobj.h.
4309 (buildobj): New static variable.
4310 (Fsnarf_documentation): Use it, instead of opening and reading
4311 buildobj.lst.
4312
1574224c
MA
43132009-08-25 Michael Albinus <michael.albinus@gmx.de>
4314
4315 * dbusbind.c (Fdbus_call_method)
4316 (Fdbus_call_method_asynchronously): Use English numeric format for
4317 timeout values in doc string.
4318
d9da2f45
KH
43192009-08-25 Kenichi Handa <handa@m17n.org>
4320
ef73e7be
KH
4321 * alloc.c (mark_char_table): New function.
4322 (mark_object): Use mark_char_table for a char-table.
4323
d9da2f45
KH
4324 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
4325 (CHAR_TABLE_REF): Use it.
4326
c8edcc01
KR
43272009-08-23 Ken Raeburn <raeburn@raeburn.org>
4328
4329 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
4330 before invoking the newly build emacs to check for load-path
4331 shadowing.
4332
7763401b
GM
43332009-08-22 Glenn Morris <rgm@gnu.org>
4334
4335 * Makefile.in (bootstrap_exe): New variable.
4336 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
4337 Use ${bootstrap_exe}.
4338
729eadda
EZ
43392009-08-22 Eli Zaretskii <eliz@gnu.org>
4340
4341 * coding.h (encode_coding_string): Don't encode unibyte strings.
4342 (Bug#4047)
4343
eb4c6ace
MA
43442009-08-22 Michael Albinus <michael.albinus@gmx.de>
4345
4346 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
4347
4348 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
4349 intended as hotfix only.
4350 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
4351
36e34d1b
AR
43522009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4353
4354 * nsterm.m (ns_get_color): Update documentation properly for last
4355 change, and clean up loose ends in the code left by it. Fix
4356 longstanding bug with 16-bit hex parsing, and add support for
4357 yet another X11 format (rgb:r/g/b) for compatibility.
4358 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
4359 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
4360
f983eb8a
SM
43612009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
4362
4363 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
4364
3f56d3c6
MA
43652009-08-20 Michael Albinus <michael.albinus@gmx.de>
4366
4367 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
4368 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
4369 (xd_initialize, xd_pending_messages): Check, whether
4370 $DBUS_SESSION_BUS_ADDRESS is set.
4371
fb641d68
YM
43722009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4373
4374 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
4375
4376 * nsterm.m (ns_get_color): Remove incompatible color formats again.
4377
cf59a374
GM
43782009-08-20 Glenn Morris <rgm@gnu.org>
4379
4380 * emacs.c (system-type): Doc fix.
4381
1373f3be
SM
43822009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
4383
4384 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
4385 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
4386
058ed861
MA
43872009-08-18 Michael Albinus <michael.albinus@gmx.de>
4388
1373f3be
SM
4389 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
4390 New functions.
058ed861
MA
4391 (xd_initialize): Revert change from 2009-08-16.
4392
563a866e 43932009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
4394
4395 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 4396 font-group vector, return nil.
5fc05db0 4397
e42bdf01
CY
43982009-08-17 Chong Yidong <cyd@stupidchicken.com>
4399
4400 * process.c (status_notify): Don't perform redisplay.
4401 (Fdelete_process, list_processes_1, process_send_signal):
4402 Expliticly perform redisplay.
4403 (wait_reading_process_output): Always check process status, but
4404 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
4405
4230ab74
KR
44062009-08-17 Ken Raeburn <raeburn@raeburn.org>
4407
1373f3be 4408 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
4409 (XFLOAT_INIT): New macro for storing a float value.
4410 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
4411 * fns.c (sxhash): Copy out the value of a float in order to
4412 examine its bytes.
4413 * dbusbind.c (xd_append_arg): Likewise.
4414
4230ab74
KR
4415 * emacs.c (main): Don't call syms_of_data twice.
4416
a0645cdd
MA
44172009-08-16 Michael Albinus <michael.albinus@gmx.de>
4418
4419 * dbusbind.c (xd_initialize): Add connection file descriptor to
4420 input_wait_mask, in order to let select() detect, whether a new
4421 message has been arrived.
ca4f31ea 4422 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 4423
485db0ba
MA
44242009-08-15 Michael Albinus <michael.albinus@gmx.de>
4425
1373f3be
SM
4426 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
4427 New functions.
485db0ba
MA
4428
4429 * lisp.h (xd_pending_messages): Declare.
4430
4431 * keyboard.c (readable_events): Call xd_pending_messages.
4432
b5b98ff4
CY
44332009-08-15 Chong Yidong <cyd@stupidchicken.com>
4434
1373f3be 4435 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 4436
f8354c6e
CY
4437 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
4438
b5b98ff4
CY
4439 * buffer.c (set_buffer_internal_1)
4440 (swap_out_buffer_local_variables): Check for unbound local
4441 variables (Bug#4138).
4442
8b9fc636
EZ
44432009-08-14 Eli Zaretskii <eliz@gnu.org>
4444
4445 * process.c (create_pty): Fix last change.
4446
ce959360
CY
44472009-08-13 Chong Yidong <cyd@stupidchicken.com>
4448
4449 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
4450 (xbm_load_image): Caller changed.
64b807c9 4451 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 4452
c7baf7e9
NR
44532009-08-13 Nick Roberts <nickrob@snap.net.nz>
4454
4455 * process.c (create_pty): New function.
4456 (Fstart_process): Use it to allow Emacs to just associate a pty
4457 with the buffer. See associated change in gdb-mi.el.
4458 (list_processes_1): Deal with no program name.
4459 (start_process_unwind): Use pid == -2 to mean no process.
4460
1ac9108a
SM
44612009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
4462
4463 * cmds.c (nonundocount): New global variable.
4464 (keys_of_cmds): Initialize it.
4465 (Fself_insert_command): Use it to combine upto 20 sequential chars
4466 into a single undo entry, just like the Qself_insert_command code in
4467 keyboard.c does.
4468 Call frame_make_pointer_invisible, also like the Qself_insert_command
4469 code in keyboard.c does.
4470 * keyboard.c (command_loop_1): Use the new global nonundocount rather
4471 than its own local replacement for it.
4472
e267324c
KR
44732009-08-10 Ken Raeburn <raeburn@raeburn.org>
4474
1ac9108a 4475 * fns.c (concat): Don't re-set string length to its current value.
77437343 4476
1ac9108a
SM
4477 * coding.h (decode_coding_string, encode_coding_string):
4478 Use SBYTES macro.
f0bed503 4479
1ac9108a 4480 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
4481 (doprnt): Merge with doprnt1, discarding lispstrings code.
4482 * lisp.h (doprnt_lisp): Don't declare.
4483
416e006d
JL
44842009-08-07 Juri Linkov <juri@jurta.org>
4485
4486 * puresize.h (BASE_PURESIZE): Increase to 1270000.
4487
6f7d5780
DN
44882009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
4489
4490 * print.c (syms_of_print): Undo previous change.
4491
f19a0f5b
TZ
44922009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
4493
4494 * lread.c (read1, syms_of_lread): Read hashtables back from the
4495 readable format.
4496
4497 * print.c (print_preprocess, print_object): Print hashtables fully
4498 and readably.
4499 (syms_of_print): Provide 'hashtable-print-readable.
4500
b9173dc2
AR
45012009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
4502
4503 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
4504 no family set.
4505 (nsfont_open): Handle case when entity has no family.
4506
1586503c
AR
45072009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
4508
4509 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
4510 element, not a list, for match case.
4511
087048cd
KH
45122009-07-28 Kenichi Handa <handa@m17n.org>
4513
4514 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
4515 rigidly.
4516
4517 * xfont.c (xfont_list_pattern): Don't ignore the return value of
4518 font_parse_xlfd. Check font properties more rigidly.
4519
780c2506
DN
45202009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
4521
31fd7c5c
JB
4522 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
4523 bsd-common.h.
780c2506 4524
a8c0cc18
KH
45252009-07-27 Kenichi Handa <handa@m17n.org>
4526
4527 * xfaces.c (face_with_height): Call font_clear_prop.
4528
4fbe2306
CY
45292009-07-26 Chong Yidong <cyd@stupidchicken.com>
4530
111d9af3
CY
4531 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
4532
4533 * xterm.c (x_term_init): Use Qx.
4534
4fbe2306
CY
4535 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
4536
1ac9108a 4537 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
4538 (ns_get_color): Revert 2009-07-16 change.
4539
beb0b7f9
EZ
45402009-07-25 Eli Zaretskii <eliz@gnu.org>
4541
4542 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 4543 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 4544
2baf5e76
KR
45452009-07-25 Ken Raeburn <raeburn@raeburn.org>
4546
1ac9108a
SM
4547 * coding.h (decode_coding_string, encode_coding_string):
4548 Use SCHARS macro.
8890e5f5 4549
2baf5e76 4550 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 4551 (load_depth): Delete.
2baf5e76
KR
4552 (Qload_in_progress): New variable.
4553 (load_unwind): Don't reference load_depth or load_in_progress.
4554 (Fload): Likewise; specbind Qload_in_progress instead.
4555 (init_lread): Don't initialize load_depth.
4556 (syms_of_lread): Initialize and protect Qload_in_progress.
4557
1395c6f5
AR
45582009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4559
4560 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
4561
4e2f36cf
AR
45622009-07-23 Yavor Doganov <yavor@gnu.org>
4563
4564 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
4565
5dd9a6f7
AR
45662009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
4567
4568 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
4569 Bugs 3792, 3720, 2402.
4570 (ns_lookup_indexed_color): Check for bad index.
4571 (ns_index_color): Init unused slot to 0.
4572 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
4573 Bug 3714, possibly 3082.
5dd9a6f7 4574
c902b920
JR
45752009-07-22 Jason Rumney <jasonr@gnu.org>
4576
1ac9108a
SM
4577 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
4578 Position IME window at cursor (Bug#2570).
c902b920
JR
4579 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
4580 (globals_of_w32fns): Dynamically load functions required above.
4581
4582 * w32term.c (w32_draw_window_cursor): Send message to reposition
4583 any IME window.
4584
090101cf
CY
45852009-07-21 Chong Yidong <cyd@stupidchicken.com>
4586
4587 * fileio.c: Revert 2009-07-16 changes.
4588 (Vauto_save_include_big_deletions): New variable.
4589 (Fdo_auto_save): Disable auto-save only if
4590 auto-save-include-big-deletions is nil.
4591
e6583e3d
CY
45922009-07-21 Chong Yidong <cyd@stupidchicken.com>
4593
4594 * xdisp.c (move_it_to): For continued lines ending in a tab, take
4595 the overflowed pixels into account (Bug#3879).
4596
ece435a5
KR
45972009-07-21 Ken Raeburn <raeburn@raeburn.org>
4598
4599 * lread.c (load_depth): New variable.
4600 (Fload, load_unwind, init_lread): Set it to the load recursion
4601 depth; set load_in_progress as a simple boolean based on the
4602 current load_depth. (Bug#3892)
4603
40b2d973
AR
46042009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4605
4606 * nsfont.m (ns_has_attribute): Remove.
4607 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
4608
10be7e0d
JL
46092009-07-18 Juri Linkov <juri@jurta.org>
4610
4611 * process.c (Fset_process_query_on_exit_flag): Mention killing
4612 a buffer in docstring.
4613
fa055055
KH
46142009-07-17 Kenichi Handa <handa@m17n.org>
4615
4616 * casetab.c (shuffle): Fix the logic of setting up the cycle.
4617
042f7b69
YM
46182009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4619
4620 * nsfns.m (Fns_set_alpha): Remove function.
4621 (syms_of_nsfns): Don't defsubr it.
4622
4623 * nsterm.m (ns_get_color): Remove incompatible color formats.
4624 (ns_color_to_lisp): Generate #rrggbb color format string.
4625
4be941e3
RS
46262009-07-16 Richard Stallman <rms@gnu.org>
4627
4628 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
4629 (Fset_buffer_auto_saved): Handle save_length = -2.
4630
4e6b227d
CY
46312009-07-16 Chong Yidong <cyd@stupidchicken.com>
4632
4633 * xterm.c (Qx_gtk_map_stock): New var.
4634
4635 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
4636 of calling intern each time.
4637
a1856973
YM
46382009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4639
4640 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
4641 does tiling.
4642
4643 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
4644
497e54d8
KH
46452009-07-14 Kenichi Handa <handa@m17n.org>
4646
72d36834
KH
4647 * font.c (font_vconcat_entity_vectors): New function.
4648 (struct font_sort_data): New member font_driver_preference.
4649 (font_compare): Check font_driver_preference.
4650 (font_sort_entities): The format of the first argument changed.
4651 (font_delete_unmatched): Likewise.
4652 (font_list_entities): The return type changed.
4653 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
4654 (font_find_for_lface): Adjuste for the above changes.
4655 Don't suppress the checking of C even if the repertory supports it.
4656 (Flist_fonts): Adjust for the above changes.
72d36834 4657
1ac9108a
SM
4658 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
4659 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
4660 Reject a font who has adstyle property that is different from a
4661 langname derived from registry property.
1ac9108a 4662 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 4663
b6046155
EZ
46642009-07-13 Eli Zaretskii <eliz@gnu.org>
4665
4666 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
4667 local copy of dirfilename.
4668
fb6b6049
KH
46692009-07-13 Kenichi Handa <handa@m17n.org>
4670
e2402a5e
KH
4671 * chartab.c (sub_char_table_ref_and_range): Fix the range check
4672 against max_char.
4673
fb6b6049
KH
4674 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
4675 calling XSYMBOL (sym).
4676
65156807
EZ
46772009-07-11 Eli Zaretskii <eliz@gnu.org>
4678
1ac9108a
SM
4679 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
4680 New function.
4681 (directory_files_internal) [WINDOWSNT]:
4682 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
4683 the filesystem of the directory is fast or slow.
4684
4685 * w32.c (logon_network_drive): Don't assume PATH is an absolute
4686 file name.
4687 (is_slow_fs): New function.
4688 (stat): Use it to determine whether to issue more system calls to
4689 get accurate file attributes, when w32-get-true-file-attributes is
4690 `local'.
4691
e0ab5fcf
JD
46922009-07-10 Jan Djärv <jan.h.d@swipnet.se>
4693
4694 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 4695 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
4696 parameter font-parameter as default to the font dialog.
4697
784ceded
KH
46982009-07-10 Kenichi Handa <handa@m17n.org>
4699
4700 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
4701
fb8edc0b
EZ
47022009-07-09 Eli Zaretskii <eliz@gnu.org>
4703
1ac9108a 4704 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 4705
fb8edc0b
EZ
4706 * w32.c (stat): Treat UNC file names as residing on remote
4707 drives. (Bug#3542)
4708
635c75b1
KH
47092009-07-09 Kenichi Handa <handa@m17n.org>
4710
4711 * fontset.c (fontset_find_font): Fix previous change.
4712
c1d5ce94
MA
47132009-07-08 Michael Albinus <michael.albinus@gmx.de>
4714
4715 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
4716 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
4717 error flag.
4718
edb61b39
KH
47192009-07-08 Kenichi Handa <handa@m17n.org>
4720
374bf7e4
KH
4721 * fontset.c (fontset_find_font): Fix the logic of handling
4722 charset_matched.
4723 (font_for_char): Delete unused var.
4724 (generate_ascii_font_name): Delete it.
4725
edb61b39
KH
4726 * coding.h (JIS_TO_SJIS2): Fix the code range check.
4727
4728 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
4729 (encode_coding_sjis): Fix the code range check.
4730
0f3f018c
CY
47312009-07-07 Chong Yidong <cyd@stupidchicken.com>
4732
4733 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
4734 (Fexpand_file_name): Copy string data properly (Bug#3772).
4735
fcaf6f3a
JD
47362009-07-07 Jan Djärv <jan.h.d@swipnet.se>
4737
4738 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
4739 first MapNotify.
4740
6809ca75
KH
47412009-07-07 Kenichi Handa <handa@m17n.org>
4742
4743 * character.h (unibyte_has_multibyte_table): Delete extern.
4744 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
4745
4746 * charset.c (Fset_charset_priority): Update charset_unibyte.
4747 (syms_of_charset): Initialize charset_unibyte.
4748
4749 * character.c (unibyte_has_multibyte_table): Delete it.
4750 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
4751 charset_unibyte.
4752 (multibyte_char_to_unibyte_safe): Likewise.
4753 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
4754
1ac9108a 4755 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
4756 (x_produce_glyphs): Likewise.
4757
4758 * .gdbinit (xcharset): Fix the treating $arg0.
4759
ad9e2d54
EZ
47602009-07-04 Eli Zaretskii <eliz@gnu.org>
4761
4762 Emulation of `getloadavg' on MS-Windows.
50426a04 4763 * w32.c: Include float.h.
ad9e2d54
EZ
4764 (g_b_init_get_native_system_info, g_b_init_get_system_times)
4765 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
4766 (get_native_system_info, get_system_times): New functions.
4767 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
4768 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
4769 (globals_of_w32): Initialize g_b_init_get_native_system_info,
4770 g_b_init_get_system_times, and num_of_processors.
4771
0a3472c7
JR
47722009-07-03 Jason Rumney <jasonr@gnu.org>
4773
4774 * w32term.c (w32_initialize): Use standard types.
4775
80904120
EZ
47762009-07-03 Eli Zaretskii <eliz@gnu.org>
4777
4778 * dired.c (Ffile_attributes): Decode user and group names by the
4779 locale's encoding. (Bug#3443)
4780
6978862d
DN
47812009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
4782
f8d23104
DN
4783 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
4784 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
4785
4786 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
4787
4788 * term.c (init_tty): Remove spurious #ifdef.
4789
6978862d
DN
4790 * m/mips.h: Mention this file is also used for netbsd.
4791 * m/pmax.h: Remove file.
4792
e044e4fc
JD
47932009-07-03 Jan Djärv <jan.h.d@swipnet.se>
4794
4795 * xterm.h (struct x_display_info): Add invisible_cursor.
4796 (struct x_output): Add current_cursor.
4797
4798 * xterm.c (XTtoggle_invisible_pointer): New function.
4799 (x_define_frame_cursor): Don't define cursor if invisible or the
4800 same as before. Set current_cursor.
4801 (x_create_terminal): Set toggle_invisible_pointer_hook.
4802
4803 * xfns.c (make_invisible_cursor): New function.
4804 (x_set_mouse_color): Call make_invisible_cursor.
4805 Set current_cursor.
4806 (x_window): Set current_cursor.
4807
4808 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
4809
4810 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
4811 inserting a character.
4812 (read_avail_input): Call frame_make_pointer_visible.
4813
4814 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
4815 (frame_make_pointer_invisible, frame_make_pointer_visible):
4816 New functions.
e044e4fc
JD
4817 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
4818
4819 * frame.h: Declare frame_make_pointer_invisible and
4820 frame_make_pointer_visible.
4821 (struct frame): Add pointer_invisible.
4822
574c8efa
JD
48232009-07-02 Jan Djärv <jan.h.d@swipnet.se>
4824
7b507248
JD
4825 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
4826 frame isn't visible.
4827 (xg_frame_resized): If width/height is -1, get size of window
4828 from X server.
4829
4830 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
4831 for MapNotify.
4832
835bdaa7 4833 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 4834 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 4835 (flush_and_sync): Reintroduce.
574c8efa 4836
3f1c6666 48372009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 4838
31fd7c5c 4839 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
4840
4841 * xterm.c (x_handle_net_wm_state): Also look for sticky.
4842 (x_term_init): Initialize Xatom_net_wm_state_sticky.
4843
4844 * frame.h: Declare Qsticky.
4845
cad9ef74
JD
4846 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
4847
4848 * nsfns.m (ns_frame_parm_handlers): Ditto.
4849
4850 * frame.c: Declare Qsticky.
4851 (frame_parms): Add sticky.
4852
4853 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
4854
4855 * xterm.h: Declare x_set_sticky.
4856
4857 * xterm.c (x_set_sticky): New function.
4858
69b16610
JD
4859 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
4860 (xg_tool_bar_menu_proxy): Attach enter/leave events to
4861 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
4862
4863 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
4864
4865 * frame.c: Qmaximized is new.
4866 (x_set_frame_parameters): Do not handle fullscreen specially.
4867 Only set width and height if explicitly set.
4868 (x_set_fullscreen): Handle Qmaximized.
4869 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
4870 (syms_of_frame): Initialize Qmaximized.
4871
1ac9108a
SM
4872 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
4873 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
4874
4875 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
4876 for Expose event. Add call to x_check_fullscreen for MapNotify event.
4877 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
4878 set gravity to NorthWestGravity when USE_GTK.
4879 (set_wm_state): New function.
31fd7c5c 4880 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
4881 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
4882 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 4883 or the case when no window manager is running. That means remove calls
3f1c6666
JD
4884 to x_real_positions and x_fullscreen_adjust.
4885
4886 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
4887 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
4888 flush_and_sync.
4889 (xg_height_changed): New function.
4890 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
4891 and gtk_window_set_policy. Set frame gravity after parsing the
4892 geometry string.
3f1c6666
JD
4893 (xg_update_frame_menubar, free_frame_menubar)
4894 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
4895 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
4896 Remove calls to xg_frame_set_char_size.
4897
fd503d99
KH
48982009-07-01 Kenichi Handa <handa@m17n.org>
4899
4900 * keyboard.c (decode_keyboard_code): New function.
4901 (tty_read_avail_input): Decode the input bytes if necessary.
4902
1ac9108a
SM
4903 * coding.c (setup_coding_system):
4904 Initialize coding->carryover_bytes to 0.
fd503d99
KH
4905 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
4906 use Qno_conversion.
4907
24ed93fb
YM
49082009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4909
4910 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
4911
99061dfc
CY
49122009-06-30 Chong Yidong <cyd@stupidchicken.com>
4913
1ac9108a 4914 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 4915
ff90fbde
JR
49162009-06-30 Jason Rumney <jasonr@gnu.org>
4917
4918 * w32term.c (w32_initialize): Use GetModuleHandle for library that
4919 is already loaded.
4920 Set user model ID if supported (bug#1849).
4921
5f445726
JM
49222009-06-29 Jim Meyering <meyering@redhat.com>
4923
4924 Remove useless if-before-xfree test.
4925 * nsfont.m (nsfont_close): Remove useless test.
4926 * term.c (delete_tty): Likewise.
4927 * w32.c (system_process_attributes): Likewise.
4928 * w32font.c (w32font_close): Likewise.
4929 * xfaces.c (x_free_gc): Likewise.
4930 * xselect.c (buffer): Likewise.
4931
b9607587
AS
49322009-06-28 Andreas Schwab <schwab@linux-m68k.org>
4933
4934 * process.c (send_process): Keep decoded string in a local
4935 variable and protect it from GC. (Bug#3521)
4936
89ba96f4
EZ
49372009-06-28 Eli Zaretskii <eliz@gnu.org>
4938
4939 * term.c (create_tty_output) [MSDOS]: #ifdef away.
4940 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
4941
098a1589
CY
49422009-06-28 Chong Yidong <cyd@stupidchicken.com>
4943
485422be
CY
4944 * xdisp.c (start_display, handle_face_prop)
4945 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
4946 (redisplay_window, try_window_id, produce_image_glyph):
4947 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 4948
098a1589
CY
4949 * xterm.c (x_update_window_begin, x_new_focus_frame)
4950 (x_scroll_bar_handle_click, handle_one_xevent)
4951 (handle_one_xevent, XTread_socket, x_focus_on_frame)
4952 (x_make_frame_visible, x_make_frame_invisible)
4953 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
4954 code chunks that are now obsolete.
4955
78c38319
MA
49562009-06-28 Michael Albinus <michael.albinus@gmx.de>
4957
4958 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
4959 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
4960 for hours, when optimzation is enabled.
4961 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
4962 (xd_read_message): Make them static.
4963
4189ed40
CY
49642009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
4965
4966 * term.c (turn_on_face): Allow simultaneously bold and dim
4967 terminal faces (Bug#3530).
4968
cd9b5e16
CY
49692009-06-27 Chong Yidong <cyd@stupidchicken.com>
4970
4e23bedb
CY
4971 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
4972
cd9b5e16
CY
4973 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
4974 truncation glyphs (Bug#3686).
4975
07cc3c35
GM
49762009-06-27 Glenn Morris <rgm@gnu.org>
4977
4978 * m/pmax.h: Restore file, with only netbsd portions.
4979
31fd7c5c 49802009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 4981
cd9b5e16 4982 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 4983
42d4a64f
KH
49842009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
4985
4986 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
4987 the arg FORCE_SYMBOL.
4988
930fe55b 49892009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
4990
4991 * fontset.c (fontset_find_font): When a usable rfont_def is found
4992 in a fallback font-group, make it the first element of the group.
4993
57ebc3fd
CY
49942009-06-24 Chong Yidong <cyd@stupidchicken.com>
4995
4996 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
4997
f084f942
KH
49982009-06-24 Kenichi Handa <handa@m17n.org>
4999
5000 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
5001 set for C.
5002 (fontset_font): Record the availability of a font for C both in
5003 the realized fontsets of the current one and the default one.
5004
2f686c87
DN
50052009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
5006
5007 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
5008 conditional, it is always defined on AIX.
5009
666e158e
MB
50102009-06-23 Miles Bader <miles@gnu.org>
5011
5012 * window.c (Vrecenter_redisplay): New variable.
5013 (syms_of_window): Initialize it.
5014 (Qtty): New extern declaration.
5015 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
5016
c6da7cd2
JM
50172009-06-23 Jim Meyering <meyering@redhat.com>
5018
1ac9108a
SM
5019 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
5020 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 5021 pointer dereferences are guaranteed to be valid.
c6da7cd2 5022
678dca3d
KH
50232009-06-23 Kenichi Handa <handa@m17n.org>
5024
74d75424
KH
5025 * emacs.c (main): Call init_font ().
5026
5027 * font.h (Vfont_log): Extern it.
5028 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
5029
5030 * font.c (font_sort_entities, font_list_entities)
5031 (font_matching_entity, font_open_entity)
5032 (font_close_object): Change font_add_log to FONT_ADD_LOG.
5033 (Vfont_log): Delete static.
5034 (font_log_env_checked): Delete this variable.
5035 (font_add_log): Don't check font_log_env_checked.
5036 (font_deferred_log): Check Vfont_log.
5037 (init_font): New function.
5038
678dca3d
KH
5039 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
5040
5041 * w32font.c: Change font_add_log to FONT_ADD_LOG.
5042
5043 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
5044
5045 * xfont.c: Change font_add_log to FONT_ADD_LOG.
5046
5047 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
5048 (face_for_char): Don't call font_deferred_log here.
5049 (font_for_char): Likewise.
5050
8a668709
CY
50512009-06-22 Chong Yidong <cyd@stupidchicken.com>
5052
9a01ee33
CY
5053 * w32term.c (x_draw_glyph_string): Use the glyph string's width
5054 rather than its background_width for drawing the overline and
5055 underline (Bug#489).
5056
5057 * xterm.c (x_draw_glyph_string): Use the glyph string's width
5058 rather than its background_width for drawing the overline and
5059 underline (Bug#489).
ec7c9926
CY
5060 (xg_default_icon_file): New variable.
5061 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
5062 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 5063
8a668709
CY
5064 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
5065 (load_overlay_strings): Remove externs.
5066 (fast_find_position): Function deleted.
5067 (mouse_face_from_buffer_pos): New function, based on
5068 fast_find_position. Correctly handle before-strings,
5069 display-strings, and after-strings (Bug#1220).
5070 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
5071
4d4c02d8
CY
50722009-06-21 Chong Yidong <cyd@stupidchicken.com>
5073
1ac9108a 5074 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
5075 (move_it_in_display_line_to, move_it_in_display_line_to)
5076 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
5077
70243478
CY
50782009-06-21 Chong Yidong <cyd@stupidchicken.com>
5079
5080 * Branch for 23.1.
5081
13087e59
JR
50822009-06-21 Jason Rumney <jasonr@gnu.org>
5083
5084 * w32term.c (keyboard_codepage): New static variable.
5085 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
5086 (w32_read_socket) [WM_CHAR]: Use it to decode character
5087 input (bug#3237).
5088 (w32_initialize): Initialize it.
5089 (codepage_for_locale): New function.
5090
4735b74e
KR
50912009-06-20 Ken Raeburn <raeburn@raeburn.org>
5092
5093 * process.c (status_message): Pass Faset index argument as a lisp
5094 object, so as to work with USE_LISP_UNION_TYPE.
5095
0e727afa
YM
50962009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5097
5098 * coding.c (Ffind_coding_systems_region_internal):
5099 Cache checked characters.
5100
cf299835
KH
51012009-06-18 Kenichi Handa <handa@m17n.org>
5102
1ac9108a 5103 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 5104
90f20d94
AS
51052009-06-18 Andreas Schwab <aschwab@redhat.com>
5106
5107 * xdisp.c (redisplay_internal): Check that the frame is still
5108 live after redisplay of its windows.
5109 (redisplay_windows): Check that the window is still live.
5110
7f1faf1c
KH
51112009-06-17 Andreas Schwab <schwab@linux-m68k.org>
5112
5113 * coding.c (detect_coding_utf_16): Fix previous change.
5114
cc13543e
KH
51152009-06-16 Kenichi Handa <handa@m17n.org>
5116
5117 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
5118 UTF-16 by checking the dispersion of Eth and Oth bytes.
5119
977b85f4
AS
51202009-06-15 Andreas Schwab <schwab@linux-m68k.org>
5121
5122 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
5123
66bd43d1
KH
51242009-06-15 Kenichi Handa <handa@m17n.org>
5125
5126 * process.c (status_message): Fix previous change. Be sure to
5127 decode a localized string.
5128
cb5ca9c5
YM
51292009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5130
5131 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
5132 add comment explaining why.
5133
ec7709ba 51342009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 5135
ec7709ba 5136 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 5137
4b7f335c
AR
51382009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
5139
5140 * nsfont.m (ns_attribute_value): Remove.
5141 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
5142 (ns_has_attribute): Shrink the normal range.
5143 (ns_findfonts): Don't worry about requested spec in determining
5144 need for synthItal.
e41820ee 5145 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 5146
73b26103
SZ
51472009-06-14 Seiji Zenitani <zenitani@mac.com>
5148
5149 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
5150
5753e4da
KH
51512009-06-11 Kenichi Handa <handa@m17n.org>
5152
5153 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
5154 overhang for the static composition case.
5155
3561b671
KH
51562009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5157
5753e4da
KH
5158 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
5159 overhang for the automatic composition case.
5160
3561b671
KH
5161 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
5162 composition case.
5163
852bbd41
CY
51642009-06-10 Chong Yidong <cyd@stupidchicken.com>
5165
5166 * xdisp.c (get_next_display_element): When handling wrap-prefix
5167 and line-prefix, treat \n as a control character (bug#3502).
5168
9903d1e6
KH
51692009-06-10 Kenichi Handa <handa@m17n.org>
5170
5171 * font.c (font_parse_family_registry): Fix for one-char foundry.
5172 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
5173
0bcbaaaa
CY
51742009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
5175
5176 * process.c (status_message): Fix handling of multibyte signal
5177 string (Bug#3499).
5178
40aa3f13
JM
51792009-06-09 Jim Meyering <meyering@redhat.com>
5180
1f80c7e2
CY
5181 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
5182 color name is missing.
40aa3f13 5183
72d51285
KH
51842009-06-09 Kenichi Handa <handa@m17n.org>
5185
5186 * charset.c (Fmap_charset_chars): In docstring, state clearly that
5187 FROM-CODE and TO-CODE are codepoints of CHARSET.
5188
c1d04d84
AR
51892009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
5190
5191 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
5192
51932009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
5194
5195 Changes to support :script/:lang/:otf in NS font driver.
5196 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
5197 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
5198 indicate not part of font driver interface, and change callers.
5199 (ns_get_family): Remove pointless null check.
5200 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
5201 ns_spec_to_descriptor, ns_descriptor_to_entity.
5202 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
5203 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
5204 (ns_spec_to_descriptor, ns_descriptor_to_entity)
5205 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
5206 (ns_get_req_script, ns_accumulate_script_ranges)
5207 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
5208 New functions.
5209 (nsfont_list, nsfont_match): Use ns_findfonts.
5210 (nsfont_open): Use font descriptor instead of traits.
5211 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
5212 (dump_glyphstring): Rename to ns_dump_glyphstring.
5213
c7eb9816
AR
5214 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
5215
c1d04d84
AR
5216 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
5217
5218 * fontset.c (fontset_from_font): Remove NS-specific code.
5219
ec7709ba 52202009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
5221
5222 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
5223 nonactive windows.
5224
31fd7c5c 52252009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 5226
1ac9108a 5227 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 5228
68852c13 52292009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
5230
5231 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
5232
6756cd1d
CY
52332009-06-07 Chong Yidong <cyd@stupidchicken.com>
5234
5235 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
5236 account for the overflowing of newlines into the last glyph on the
5237 display line (Bug#3482).
5238
28bf482a
DR
52392009-06-05 David Reitter <david.reitter@gmail.com>
5240
ec7709ba
JB
5241 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
5242 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
5243 Fns_selection_exists_p, Fns_selection_owner_p.
5244
fdb55376
JR
52452009-06-03 Jason Rumney <jasonr@gnu.org>
5246
5247 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
5248 available. (Bug#3379)
5249
05129fbe
KH
52502009-05-29 Kenichi Handa <handa@m17n.org>
5251
1ac9108a
SM
5252 * coding.c (get_translation_table):
5253 Check Venable_character_translation.
05129fbe 5254
ec7709ba 52552009-05-26 David Reitter <david.reitter@gmail.com>
15891144 5256
ec7709ba
JB
5257 * nsterm.m (ns_raise_frame): Only raise frame if visible.
5258 (x_make_frame_visible): Move frame to front rather than calling
15891144 5259 ns_raise_frame().
ec7709ba 5260 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 5261 isn't key window.
ec7709ba 5262 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
5263 drawRect may be called by NSView even if the frame is hidden.
5264
ec7709ba
JB
5265 * nsfns.m (Fx_create_frame): Follow other ports in
5266 determining visibility; default to t. Ensure async_visible is set.
15891144 5267
21f73755
EZ
52682009-05-23 Eli Zaretskii <eliz@gnu.org>
5269
5270 * dired.c (Ffile_attributes): Doc fix.
5271
34001e41
CY
52722009-05-22 Chong Yidong <cyd@stupidchicken.com>
5273
5274 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
5275
46306a17
SM
52762009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
5277
5278 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
5279 and xfont_scratch_props.
5280 (syms_of_xfont): Do it here instead.
5281 (xfont_find_ccl_program): Delete, unused.
5282 (xfont_open): Delete unused var `i'.
5283
ef6e0694
KH
52842009-05-21 Kenichi Handa <handa@m17n.org>
5285
5286 * fontset.c (Qlatin): Don't make it static.
5287
46306a17
SM
5288 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
5289 New functions.
ef6e0694
KH
5290 (xfont_scripts_cache, xfont_scratch_props): New variables.
5291 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
5292 (xfont_list_pattern): Argument changed. Callers changed.
5293 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
5294 (xfont_list): Don't reject a font spec with :script property.
5295 (xfont_has_char): Fix setting of encoding.
5296 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
5297 xfont_scratch_props.
5298
52992009-05-19 Kenichi Handa <handa@m17n.org>
5300
46306a17 5301 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
5302 Callers changed.
5303
53042009-05-18 Kenichi Handa <handa@m17n.org>
5305
5306 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
5307
ac71ced7
SM
53082009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
5309
5310 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
5311 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
5312
1c6d1051
YM
53132009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5314
5315 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
5316 (x_delete_terminal): Dissociate resource database from display and
5317 then call XrmDestroyDatabase before closing display.
5318
9b9b779c
AR
53192009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
5320
5321 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
5322 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
5323 whether selected frame is viable before raising it (based on patch
5324 by David Reitter), and improve commentary.
5325 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 5326
cccd42d5
KH
53272009-05-15 Kenichi Handa <handa@m17n.org>
5328
5329 * font.c (Ffont_spec): Check arguments.
5330
337fbd17
CY
53312009-05-14 Chong Yidong <cyd@stupidchicken.com>
5332
5333 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
5334 weight when testing attributes (Bug#3282).
5335
47a6002f
JD
53362009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5337
5338 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
5339 what we expect to get in the next ConfigureNotify event.
5340
9cb363db
YM
5341 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
5342 before Xft one (Bug#1696).
5343
b9126609
CY
53442009-05-07 David Reitter <david.reitter@gmail.com>
5345
5346 * nsfns.m (Fx_display_planes): Compute bitplanes using
5347 NSBitsPerPixelFromDepth (Bug#3207).
5348
27a69fd9
CY
53492009-05-10 Chong Yidong <cyd@stupidchicken.com>
5350
5351 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
5352
00f37552
TTN
53532009-05-10 Ulrich Mueller <ulm@gentoo.org>
5354
5355 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
5356
2d82a920
DR
53572009-05-07 David Reitter <david.reitter@gmail.com>
5358
ec7709ba
JB
5359 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
5360 Respect mouse face background.
2d82a920 5361
46b0d52d
DR
53622009-05-07 David Reitter <david.reitter@gmail.com>
5363
ec7709ba
JB
5364 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
5365 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
5366 in ns_update_begin and ns_update_end.
5367
ce1b23bb
SM
53682009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
5369
5996e1b7
SM
5370 * nsfns.m (ns_get_screen): Rewrite.
5371 Don't presume selected-frame is of type `ns'.
5372
ba98e3a0
SM
5373 * font.c (font_update_drivers): Sanity fallback to avoid disabling
5374 all drivers.
5375
ce1b23bb
SM
5376 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
5377
bcda200f
YM
53782009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5379
5380 * keyboard.h (add_user_signal): Fix typo in extern.
5381
5382 * lisp.h (add_user_signal): Remove extern.
5383
5384 * unexelf.c (unexec): Consider a section to precede the .bss section
5385 if its addresses overlap that of .bss.
5386 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
5387 instead of dumping process.
5388
864660a2
SM
53892009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
5390
5391 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
5392
50da4e56
SM
53932009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
5394
5395 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
5396
51520a1a
DN
53972009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
5398
5399 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
5400 any statements.
5401
409ea3a1
AS
54022009-05-02 Andreas Schwab <schwab@linux-m68k.org>
5403
59c4c60f
AS
5404 * process.c (read_process_output): Make sure the current buffer is
5405 always restored.
5406
409ea3a1
AS
5407 * coding.c (record_conversion_result): Don't modify
5408 Vlast_code_conversion_error for successful result.
5409 (alloc_destination): Don't clobber conversion result. (Bug#1650)
5410
56f00ed2
KH
54112009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
5412
5413 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 5414 (load_charset_map): Remove unnecessary code.
56f00ed2 5415
4491c9d2
DR
54162009-04-30 David Reitter <david.reitter@gmail.com>
5417
35f5b128 5418 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
5419 through f24.
5420
6970f632
CY
54212009-04-30 Chong Yidong <cyd@stupidchicken.com>
5422
5423 * xfaces.c (face_at_buffer_position): New arg base_face_id.
5424
5425 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
5426 face_at_buffer_position.
5427 (face_before_or_after_it_pos, get_next_display_element)
5428 (note_mouse_highlight): Update face_at_buffer_position call.
5429
5430 * term.c (term_mouse_highlight):
5431 * msdos.c (IT_note_mouse_highlight):
5432 * fontset.c (Finternal_char_font):
35f5b128 5433 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
5434
5435 * dispextern.h (face_at_buffer_position): Update prototype.
5436
0c616f63
KH
54372009-04-30 Kenichi Handa <handa@m17n.org>
5438
35f5b128 5439 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 5440
ad3aaf33
AS
54412009-04-29 Andreas Schwab <schwab@linux-m68k.org>
5442
5443 * callproc.c (Fcall_process): Fix GC protection. Make sure
5444 current buffer is always restored.
5445
c3c963a0
YM
54462009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5447
5448 * atimer.c (init_atimer): Also clear stopped_atimers.
5449
5450 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
5451
7e3386cb
YM
5452 * process.c (create_process): Clean up merger residues of
5453 2008-07-17 change.
5454
91f68422
CY
54552009-04-29 Ulrich Mueller <ulm@gentoo.org>
5456
5457 * lread.c (Vread_circle): New variable.
5458 (read1): Disable recursive read if Vread_circle is nil.
5459
24b34550
KH
54602009-04-29 Kenichi Handa <handa@m17n.org>
5461
5462 * fontset.h (set_default_ascii_font): Delete extern.
5463
5464 * fontset.c (set_default_ascii_font): Delete this unused function.
5465
5466 * frame.c (x_set_font): When ARG is a font-object, check if the
5467 font-object matches with the ASCII font-spec of the frame's
9c358bda 5468 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 5469
77bf07e1
AS
54702009-04-28 Andreas Schwab <schwab@linux-m68k.org>
5471
5472 * fns.c (Flocale_info): Protect vector from GC during decoding.
5473
5474 * process.c (Fstart_process): Protect argv strings from GC during
5475 encoding.
5476
2c55aacf
AS
54772009-04-27 Andreas Schwab <schwab@linux-m68k.org>
5478
5479 * sysdep.c: Include <ctype.h>.
5480
b892d3c9
DR
54812009-04-27 David Reitter <david.reitter@gmail.com>
5482
35f5b128 5483 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
5484 Remove commented-out code.
5485
9d0644c4
JB
54862009-04-26 Johan Bockgård <bojohan@gnu.org>
5487
5488 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
5489
b7053016
JR
54902009-04-25 Jason Rumney <jasonr@gnu.org>
5491
5492 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
5493
4e8231f3
YM
54942009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5495
5496 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
5497 Swap bytes in short integer if fringe bitmap width > 8.
5498
493dcf2c
KH
54992009-04-23 Kenichi Handa <handa@m17n.org>
5500
5501 * xfaces.c (Fx_list_fonts): If a font size is specified in
5502 PATTERN, set it in returned scalable fonts.
5503
401e9e57
CY
55042009-04-22 Chong Yidong <cyd@stupidchicken.com>
5505
708e05dc
CY
5506 * keyboard.c (Fset_input_meta_mode): Doc fix.
5507
5508 * dispnew.c (Fsend_string_to_terminal): Doc fix.
5509
1ac9108a 5510 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
5511
5512 * coding.c (Fterminal_coding_system): Doc fix.
5513
5514 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
5515 (Fx_display_pixel_height, Fx_display_planes)
5516 (Fx_display_color_cells, Fx_server_max_request_size)
5517 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
5518 (Fx_display_mm_height, Fx_display_mm_width)
5519 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
5520 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
5521 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
5522 (check_x_display_info): Handle terminal objects instead of
5523 terminal ids.
5524
401e9e57
CY
5525 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
5526 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
5527 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
5528 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 5529
df80c7f0
KH
55302009-04-21 Kenichi Handa <handa@m17n.org>
5531
5a8f12af 5532 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 5533 (font_score): Check AVGWIDTH too.
908567ef 5534
df80c7f0
KH
5535 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
5536 worst case.
1ac9108a
SM
5537 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
5538 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 5539
705af33f
JR
55402009-04-19 Jason Rumney <jasonr@gnu.org>
5541
5542 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 5543 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
5544
5545 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
5546 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
5547 get_phys_cursor_geometry.
5548
b71ac3dd 5549 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
5550 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
5551 using get_phys_cursor_geometry.
5552
5553 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
5554 correctly calculated.
5555
dc2933eb
JD
55562009-04-19 Jan Djärv <jan.h.d@swipnet.se>
5557
1ac9108a
SM
5558 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
5559 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
5560 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
5561 is deprecated.
5562
973e7849
AS
55632009-04-18 Andreas Schwab <schwab@linux-m68k.org>
5564
5565 * font.c (font_put_frame_data): Use xfree instead of free.
5566
314d66f4
JB
55672009-04-17 Juanma Barranquero <lekktu@gmail.com>
5568
5569 * w32font.c (Qja, Qko): Remove declarations.
5570 (syms_of_w32font): Don't DEFSYM them.
5571
cf702558
CY
55722009-04-17 Chong Yidong <cyd@stupidchicken.com>
5573
5574 * font.c (Qja, Qko): Move definitions here from ftfont.c.
5575
5576 * font.h (Qja, Qko): Extern them.
5577
5578 * ftfont.c (Qja, Qko): Remove declarations.
5579
5580 * xfont.c (Qja, Qko): Remove declarations.
5581
b50504f5
KH
55822009-04-17 Kenichi Handa <handa@m17n.org>
5583
bde25748
KH
5584 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
5585 string from a vector to handle Latin-1 characters correctly.
5586
b50504f5
KH
5587 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
5588 entity even if the cache hits.
5589
f4646fff
AS
55902009-04-16 Andreas Schwab <schwab@linux-m68k.org>
5591
5592 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 5593 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 5594
e7deaab0
AS
5595 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
5596 * lisp.h: Adjust prototypes.
5597
0a0e7d49
CY
55982009-04-16 Chong Yidong <cyd@stupidchicken.com>
5599
5600 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
5601 change (Bug#3003).
5602
3c908a57
KH
56032009-04-16 Kenichi Handa <handa@m17n.org>
5604
1ac9108a 5605 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
5606
5607 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
5608 adstyle.
5609
5610 * ftfont.c (Qja, Qko): Don't make them static.
5611 (enum ftfont_cache_for): New enum.
5612 (fc_charset_table): Undo the previous change.
5613 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
5614 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
5615 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
5616 non-scarable font, try to get AVERAGE_WIDTH.
5617 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
5618 Change ft_face_cache from a list of a hash-table. Don't check
5619 `ja' and `ko' adstyle here.
5620 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
5621 FTFONT_CACHE_FOR_CHARET.
5622 (ftfont_get_charset): Undo the previous change.
1ac9108a 5623 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
5624 (ftfont_close): Likewise.
5625 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
5626
5627 * font.c (font_sort_entites): Change the meaning of the arg
5628 BEST-ONLY. Don't optimize for VEC of lenght 1.
5629 (font_select_entity): Just return the value of font_sort_entites.
5630
5631 * xfaces.c (merge_face_vectors): Reflect font properties in
5632 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
5633 font_clear_prop if a face attribute doesn't change.
5634
3c908a57
KH
5635 * charset.h (charset_ksc5601): Extern it.
5636
5637 * charset.c (charset_ksc5601): New variable.
5638 (Fdefine_charset_internal): Set charset_ksc5601.
5639 (init_charset_once): Initialize charset_ksc5601 to -1.
5640
d65859c3
DN
56412009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
5642
5643 * fileio.c (history_delete_duplicates): Remove unused declaration.
5644
5645 * callint.c (history_delete_duplicates): New declaration.
5646 (Fcall_interactively): Remove command history duplicates when
5647 history_delete_duplicates is true.
5648
3ba010e5
EZ
56492009-04-14 Eli Zaretskii <eliz@gnu.org>
5650
5651 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
5652
06f19b91
KH
56532009-04-14 Kenichi Handa <handa@m17n.org>
5654
5655 * font.c (Ffont_info): Fix docstring. Fix the second element of
5656 the returned value (bug#2949).
5657
2cce8bfc
CY
56582009-04-14 Chong Yidong <cyd@stupidchicken.com>
5659
5660 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
5661
d156542d
KH
56622009-04-14 Kenichi Handa <handa@m17n.org>
5663
5664 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
5665 encoding charset is ascii_compatible.
5666
5667 * charset.c (Fdefine_charset_internal): Make charset
5668 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
5669 code_offset is 0, and covers all ASCII characters.
5670
86fa089e
SM
56712009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
5672
5673 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
5674 (ns_string_to_pasteboard_internal):
5675 * nsmenu.m (process_dialog):
5676 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
5677 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
5678 * lisp.h (Fx_load_color_file): Declare.
5679
a8a3728b
KH
56802009-04-13 Kenichi Handa <handa@m17n.org>
5681
1ac9108a 5682 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
5683 (font_select_entity): Suppress the code to optimize for the same
5684 kind of fonts.
5685 (font_load_for_lface): Get a font that supports at least ASCII
5686 characters.
5687
5688 * ftfont.c (Qja, Qko): New variables.
5689 (fc_charset_table): Delete uniquifier data for iso8859-1.
5690 (ftfont_get_latin1_charset): New function.
5691 (get_adstyle_property): New function.
5692 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
5693 bitmap fonts.
5694 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
5695 Delete iso-8859-1 range from the charset of fonts whose adstyle is
5696 `ko' or `ja'.
5697 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 5698 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
5699 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
5700 property.
5701 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
5702 (syms_of_ftfont): DEFSYM Qja and Qko.
5703
483670b5
KH
57042009-04-09 Kenichi Handa <handa@m17n.org>
5705
12b55765
KH
5706 * charset.c (map_charset_chars): For a charset of `superset'
5707 method, fix calculation of code range.
5708
483670b5
KH
5709 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
5710 from the list of extra properties.
5711 (font_clear_prop): Be sure to delete `:name' font property.
5712
57d3b93b
KH
57132009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5714
b4b2c2ca
YM
5715 * dispnew.c (redraw_overlapping_rows): Fix detection of
5716 overlapping for topmost and bottommost rows.
5717
1ac9108a 5718 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 5719
472c3609
JR
57202009-04-06 Jason Rumney <jasonr@gnu.org>
5721
5722 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
5723
ab193662
KH
57242009-04-06 Kenichi Handa <handa@m17n.org>
5725
5726 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
5727
5728 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
5729
0c26f026
KH
57302009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5731
5732 * ftfont.c (ftfont_open): Fix checking of the return value of
5733 FT_Load_Char. Fix setting font->underline_thickness.
5734
e173bbce
CY
57352009-04-04 Chong Yidong <cyd@stupidchicken.com>
5736
5737 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
5738 (Fterminal_parameters, Fterminal_parameter)
5739 (Fset_terminal_parameter): In doc string, refer to terminal
5740 objects rather than terminal ids.
5741
693a2698
EZ
57422009-04-04 Eli Zaretskii <eliz@gnu.org>
5743
5744 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
5745 ret_lim_data. (Bug#2867)
5746
d5221487
CY
57472009-04-03 Chong Yidong <cyd@stupidchicken.com>
5748
5749 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
5750 so they don't get wider than the window, matching 2006-01-23
5751 change to the partner function in xdisp.c (Bug#2800).
5752
223509a3
KH
57532009-04-03 Kenichi Handa <handa@m17n.org>
5754
5755 * print.c (print_object): Make each lowest sub_char_table start a
5756 new line (Bug#2866).
5757
74fcd0b1
KH
57582009-04-02 Kenichi Handa <handa@m17n.org>
5759
5760 * fontset.c (fontset_font): Record no-font when a fontset
5761 explicitly tells not to try another font-specs.
5762
c542407d
SM
57632009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
5764
5765 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
5766
e3869731
KH
57672009-03-30 Kenichi Handa <handa@m17n.org>
5768
d8d2f142
KH
5769 * fontset.c (fontset_from_font): Specify only registry in a
5770 font-spec for all characters supported by that registry.
5771
e3869731
KH
5772 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
5773 even if HAVE_M17N_FLT is not defined.
5774
5da5f805
CY
57752009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
5776
5777 * ftfont.c: Conditionalize prototyping and use of
5778 ftfont_variation_glyphs.
5779
ab226c50
SM
57802009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
5781
9628fed7
SM
5782 * frame.c (delete_frame): Work around compiler bug.
5783
5784 * editfns.c (general_insert_function): Adjust to insdel.c changes.
5785 * insdel.c (prepare_to_modify_buffer, signal_before_change):
5786 Some more EMACS_INT.
5787 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
5788
5789 * xdisp.c (dump_glyph): Fix typo.
5790
ae19ba7c
SM
5791 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
5792 (adjust_markers_gap_motion, adjust_markers_for_delete)
5793 (adjust_markers_for_insert, adjust_point)
5794 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
5795 (make_gap, copy_text, count_size_as_multibyte, insert)
5796 (insert_and_inherit, insert_before_markers)
5797 (insert_before_markers_and_inherit, insert_1)
5798 (count_combining_before, count_combining_after, insert_1_both)
5799 (insert_from_string, insert_from_string_before_markers)
5800 (insert_from_string_1, insert_from_gap, insert_from_buffer)
5801 (insert_from_buffer_1, adjust_after_replace)
5802 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
5803 (replace_range_2, del_range, del_range_1, del_range_byte)
5804 (del_range_both, del_range_2, modify_region)
5805 (prepare_to_modify_buffer, signal_before_change)
5806 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
5807 for buffer positions and sizes.
5808 * lisp.h: Adjust prototypes accordingly.
5809
5810 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
5811 (non_regular_inserted, non_regular_nbytes, read_non_regular)
5812 (Finsert_file_contents): Use EMACS_INT for buffer positions.
5813
ab226c50
SM
5814 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
5815
46dfb8fb
JD
58162009-03-27 Jan Djärv <jan.h.d@swipnet.se>
5817
5818 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
5819 lines and columns so we keep the same pixel height and width.
5820
5821 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
5822 the property _NET_WM_STATE has changed.
46dfb8fb
JD
5823 (x_handle_net_wm_state): New function to update frame parameter
5824 fullscreen.
5825 (x_term_init): Initialize atoms for _NET_WM_STATE.
5826
5827 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
5828
d347e494
SM
58292009-03-27 Kevin Ryde <user42@zip.com.au>
5830
5831 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
5832 Gpm_GetEvent as an error that justifies closing the filedescriptor.
5833 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
5834 (Fgpm_mouse_stop): Pass that new parameter.
5835 * termhooks.h (close_gpm): Adjust prototype.
5836
84db11d6
SM
58372009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
5838
c95a5008
SM
5839 * lisp.h (Fx_focus_frame): Declare.
5840
84db11d6
SM
5841 * callint.c (Fcall_interactively): For '^' just delegate the work to
5842 handle-shift-selection.
5843 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
5844
0a1958d6
CY
58452009-03-24 Chong Yidong <cyd@stupidchicken.com>
5846
0bfdff23
CY
5847 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
5848
0a1958d6
CY
5849 * data.c (Qinteractive_form): New variable.
5850 (Finteractive_form): Use it.
5851
5852 * eval.c (Fcommandp): Use Qinteractive_form.
5853
58aec0d6
JR
58542009-03-24 Jason Rumney <jasonr@gnu.org>
5855
5856 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
5857 Calculate total size precisely. Decode environment variables
5858 before substituting. (Bug#38)
5859
553dd618
KH
58602009-03-24 Kenichi Handa <handa@m17n.org>
5861
5862 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 5863 encoding (Bug#2722).
553dd618 5864
c39ea606
JD
58652009-03-23 Jan Djärv <jan.h.d@swipnet.se>
5866
5867 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
5868 that gdpy is set.
5869
bc9b2b5e
AM
58702009-03-22 Alan Mackenzie <acm@muc.de>
5871
5872 * callint.c (Finteractive): Clarify the doc string - even
5873 promptless elements need \n separators.
5874
9f995a76
JR
58752009-03-22 Jason Rumney <jasonr@gnu.org>
5876
5877 * w32term.c (syms_of_w32term): Doc fix for
5878 x-use-underline-position-properties.
5879
22749e9a
EZ
58802009-03-21 Eli Zaretskii <eliz@gnu.org>
5881
5882 * w32.c (getpwuid): Change argument type to unsigned.
5883 (struct w32_id): Change type of `rid' member to unsigned.
5884 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
5885 argument ID to unsigned. All callers changed.
5886 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
5887
e00553bf
EZ
58882009-03-20 Eli Zaretskii <eliz@gnu.org>
5889
5890 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
5891 negative, produce a float value.
5892
5893 * dired.c (make_uid, make_gid): New functions.
5894 (Ffile_attributes): Use them to avoid negative UID and GID.
5895
f761d6b6
JB
58962009-03-20 Juanma Barranquero <lekktu@gmail.com>
5897
5898 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
5899 (syms_of_keyboard) <command-hook-internal, input-method-function>:
5900 Fix typos in docstrings.
5901
d507f8d7
KH
59022009-03-19 Kenichi Handa <handa@m17n.org>
5903
5904 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
5905 changed, use font_load_for_lface to get a new font object.
5906 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
5907
5908 * frame.c (x_set_font): Handle the case that ARG is a cons.
5909
c68845e0
GM
59102009-03-19 Glenn Morris <rgm@gnu.org>
5911
5912 * fileio.c (Fsubstitute_in_file_name): Doc fix.
5913
bfa49dd1
CY
59142009-03-19 Chong Yidong <cyd@stupidchicken.com>
5915
5916 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
5917
8458d4c1
KH
59182009-03-19 Kenichi Handa <handa@m17n.org>
5919
5920 * charset.c (load_charset_map_from_file): When a mapfile can't be
5921 loaded, signal an error.
5922
78e7d1fe
EZ
59232009-03-18 Eli Zaretskii <eliz@gnu.org>
5924
5925 * dired.c (Ffile_attributes): Make sure UID and GID are always
5926 positive, even if the value is too large for a positive EMACS_INT.
5927 Doc fix.
5928
5929 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
5930
5da9fdfa
YM
59312009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5932
5933 * xmenu.c (xdialog_show): Move Fredisplay call ...
5934 (Fx_popup_dialog): ... here.
5935
7519c40d
SM
59362009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
5937
5938 * dired.c (file_name_completion): Disable the first optimization just
5939 installed, since it is not implemented correctly.
5940
2cd298e2
SM
59412009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
5942
5943 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 5944 only if the entry can affect bestmatch.
2cd298e2
SM
5945 Stop the search early, as Ftry_completion already does.
5946
48d37adf
CY
59472009-03-17 Chong Yidong <cyd@stupidchicken.com>
5948
e10c9c93 5949 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 5950
9286b16a
CY
59512009-03-15 Chong Yidong <cyd@stupidchicken.com>
5952
5953 * keyboard.c (parse_menu_item): Don't display remappings as menu
5954 equivalent bindings (Bug#788).
5955
f7b146dc
JR
59562009-03-15 Jason Rumney <jasonr@gnu.org>
5957
5958 * w32term.h (WM_EMACS_PAINT): New message.
5959 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
5960 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
5961 before passing to lisp thread. (Bug#950)
5962
f761d6b6 59632009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 5964
d93f9575
CY
5965 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
5966 variable as it was never reset.
5967 (ns_term_init): Remove initialization of Lisp-settable defaults
5968 and ns_expand_space.
5969 (-setPanelFromDefaultValues): Remove ns_expand_space.
5970 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
5971 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
5972 i.e. no additional spacing, similar to Carbon port.
5973
d93f9575
CY
5974 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
5975 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 5976
305018ec
JD
59772009-03-14 Jan Djärv <jan.h.d@swipnet.se>
5978
5979 * sound.c (alsa_configure): Remove call to deprecated
5980 snd_pcm_sw_params_set_xfer_align.
5981
f761d6b6 59822009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
5983
5984 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
5985 after clicking in a detached tool bar.
5986 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
5987
46e722a9
SM
59882009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
5989
348db3dd
SM
5990 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
5991 int/Lisp_Object mixup).
46e722a9 5992
a3d16f39
KH
59932009-03-13 Kenichi Handa <handa@m17n.org>
5994
5995 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 5996 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
5997 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
5998 (set_fontset_font): Change ARG to a vector. Handle range_list in
5999 ARG correctly.
6000 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 6001 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
6002 the above change.
6003 (fontset_from_font): Fix previous change.
fe24f56a 6004 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
6005 entry. If FONTSET is the default fontset, don't set the extra
6006 slot of the returning char-table.
6007
b066e6b6
JB
60082009-03-12 Juanma Barranquero <lekktu@gmail.com>
6009
6010 * nsfns.m (Fx_close_connection): Doc fix.
6011 (Fns_do_applescript): Reflow docstring.
6012 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
6013 (Fx_display_pixel_width, Fx_display_pixel_height)
6014 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
6015 Fix typos in docstrings.
6016 (Fns_set_alpha): Fix typos in error messages.
6017
d472514e 60182009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 6019
d472514e 6020 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
6021 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
6022 were used for such events.
6023
d472514e
JB
6024 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
6025 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 6026
d472514e 6027 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
6028 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
6029
fb930676
KH
60302009-03-11 Kenichi Handa <handa@m17n.org>
6031
ff85581a
KH
6032 * font.h (font_open_by_spec): Extern it.
6033
c50b7e98
KH
6034 * font.c (font_open_by_spec): New function.
6035 (font_open_by_name): Use font_open_by_spec.
6036
fb930676
KH
6037 * frame.c (x_set_font): When ARG is a font-object, don't alter the
6038 fontset of the frame.
6039
6040 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
6041 modify the default font of frames that use this fontset.
6042 (num_auto_fontsets): New variable.
6043 (fontset_from_font): Use num_auto_fontsets to decide a fontset
6044 name. Be sure to set FONTSET_ASCII to the correct font name.
6045 (update_auto_fontset_alist): New function.
6046
df4e8455
JB
60472009-03-11 Juanma Barranquero <lekktu@gmail.com>
6048
6049 * makefile.w32-in: Update dependencies.
6050
0a375797
AR
60512009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6052
6053 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
6054
61313fa3
SM
60552009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
6056
6057 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
6058
b55103fb
CY
60592009-03-10 Chong Yidong <cyd@stupidchicken.com>
6060
6061 * lread.c (Feval_buffer): Doc fix.
6062
dde2559c
KH
60632009-03-09 Kenichi Handa <handa@m17n.org>
6064
6065 * charset.c (Qfile_name_handler_alist): Extern it.
6066 (load_charset_map_from_file): Temporarily bind
6067 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
6068
df4e8455 60692009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 6070
47f588bb
GM
6071 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
6072 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 6073
4ddf94bd
AR
60742009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6075
4c9bdfc2
AR
6076 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
6077 (x_set_window_size): Change back to calculated method of setting
6078 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
6079 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
6080 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
6081
fe41ae9e
AR
6082 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
6083
4c9bdfc2
AR
6084 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
6085 accelerator in parens under GNUstep.
6086
825d0875
KH
60872009-03-06 Kenichi Handa <handa@m17n.org>
6088
6089 These changes are to detect incorrect composition sequence without
f3b3be74 6090 looking ahead the source. (Bug#2370)
825d0875
KH
6091
6092 * coding.h: Include "composite.h".
6093 (enum compisition_state): New enum.
6094 (struct compisition_status): New struct.
6095 (struct iso_2022_spec): New member cmp_status.
6096 (struct emacs_mule_spec): New struct.
6097 (struct coding_system): New members ctext_extended_segment_len and
6098 embedded_utf_8. Change the union member
6099 spec.emacs_mule_full_support to spec.emacs_mule.
6100
6101 * coding.c (CODING_ISO_CMP_STATUS): New macro.
6102 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 6103 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
6104 (ADD_COMPOSITION_DATA): New arg nbytes.
6105 (emacs_mule_char): New arg cmp_status.
6106 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
6107 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
6108 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
6109 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
6110 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
6111 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
6112 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
6113 (EMACS_MULE_COMPOSITION_END): New macro.
6114 (emacs_mule_finish_composition): New function.
6115 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
6116 (decode_coding_emacs_mule): Avoid long looking ahead while
6117 handling composition.
6118 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
6119 (ENCODE_COMPOSITION_RULE): New macro.
6120 (finish_composition): New function.
6121 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
6122 (DECODE_COMPOSITION_START): New implementation.
6123 (DECODE_COMPOSITION_END): Likewise.
6124 (STORE_COMPOSITION_RULE): New macro.
6125 (decode_coding_iso_2022): Avoid long looking ahead while handling
6126 composition, CTEXT extended segment, and embedded UTF-8.
6127 (setup_coding_system): For a coding of type iso-2022, reset
6128 CODING_ISO_EXTSEGMENT_LEN (coding) and
6129 CODING_ISO_EMBEDDED_UTF_8 (coding).
6130 (get_translation): Delete arguments last_block, from_nchars,
6131 to_nchars. Callers changed.
6132 (produce_chars): Don't modify charbuf. Adjusted for the change of
6133 get_translation.
98a326f7 6134 (produce_composition): Adjust for the new annotation sequence.
825d0875 6135 (handle_composition_annotation): Likewise.
98a326f7 6136 (consume_chars): Adjust for the change of get_translation.
825d0875 6137
ccbc4452
AR
61382009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
6139
4ddf94bd 6140 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 6141
988a7ddb
KH
61422009-03-05 Kenichi Handa <handa@m17n.org>
6143
6144 * font.c (font_select_entity): New function.
6145 (font_find_for_lface): Use font_select_entity to select a font.
6146
6147 * fontset.c (fontset_find_font): If a font found without
a8a3728b 6148 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
6149 font with C restriction.
6150
98a326f7 61512009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 6152
be1bce46 6153 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 6154
10ea2b82
JR
61552009-03-04 Jason Rumney <jasonr@gnu.org>
6156
2c93b248 6157 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 6158 characters that have already been read. (Bug#2569)
2c93b248 6159
10ea2b82
JR
6160 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
6161 Log an error message if check_image_size failed.
6162 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 6163 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 6164
71a0c011
EZ
61652009-03-02 Eli Zaretskii <eliz@gnu.org>
6166
6167 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
6168 when decoding process output.
6169
2f63bba8
RS
61702009-03-01 Richard M Stallman <rms@gnu.org>
6171
6172 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
6173
6174 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
6175
0a9564cb
EZ
61762009-02-28 Eli Zaretskii <eliz@gnu.org>
6177
6178 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
6179 (decode_coding_emacs_mule, decode_coding_iso_2022)
6180 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
6181 (decode_coding_raw_text, decode_coding_charset)
6182 (setup_coding_system, decode_eol, decode_coding, consume_chars):
6183 Honor inhibit-eol-conversion. (Bug #2186)
6184
449148b3
JR
61852009-02-28 Jason Rumney <jasonr@gnu.org>
6186
6187 * coding.c (detect_coding_charset): If not checking latin extra,
6188 fail on characters between 0x80 and 0xA0. (Bug#2354)
6189
a4aee864
EZ
61902009-02-28 Eli Zaretskii <eliz@gnu.org>
6191
6192 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 6193 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 6194
d88bee5a
GM
61952009-02-27 Glenn Morris <rgm@gnu.org>
6196
6197 * callint.c (Finteractive): Doc fix.
6198
a808f22d
KH
61992009-02-27 Kenichi Handa <handa@m17n.org>
6200
6201 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
6202
caf8d60c
CY
62032009-02-27 Chong Yidong <cyd@stupidchicken.com>
6204
6205 * font.c (font_style_to_value): Set value for unknown symbols to
6206 100 instead of 255.
b61137ea
CY
6207 (weight_table, slant_table, width_table): Treat "unspecified" as
6208 the default value.
caf8d60c 6209
1a0de25c
JB
62102009-02-26 Juanma Barranquero <lekktu@gmail.com>
6211
6212 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
6213
8fc45744
JB
62142009-02-25 Juanma Barranquero <lekktu@gmail.com>
6215
107bd7d1
JB
6216 * lread.c (Fload): Stop checking Vloads_in_progress and signal
6217 error as soon as a recursive load is detected.
8fc45744 6218
f097e223
AR
62192009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6220
6221 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
6222 before caching.
6223
8810a12f
KH
62242009-02-24 Kenichi Handa <handa@m17n.org>
6225
6226 * fontset.c (fontset_find_font): Fix the condition for checking
6227 unavailable font.
6228
2c7d1565
GM
62292009-02-24 Glenn Morris <rgm@gnu.org>
6230
6231 * xfaces.c (Finternal_set_font_selection_order): Remove leading
6232 whitespace that confuses documentation.
6233
a20878b6
MB
62342009-02-23 Miles Bader <miles@gnu.org>
6235
6236 * process.c (Flist_system_processes, Fprocess_attributes)
6237 (syms_of_process): Rename `system-process-attributes' to
6238 `process-attributes'.
6239
b3b58c01
AS
62402009-02-22 Andreas Schwab <schwab@linux-m68k.org>
6241
1b3b981b
AS
6242 * coding.h (struct coding_system): Make safe_charsets a pointer to
6243 unsigned char.
6244 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
6245 being 255.
6246 (SAFE_CHARSET_P): Likewise.
6247 (setup_iso_safe_charsets): Properly setup safe_charsets.
6248 (Fdefine_coding_system_internal): Likewise.
6249 (setup_coding_system): Likewise. Remove unneeded casts.
6250 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
6251 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
6252 unneeded casts.
6253
b3b58c01
AS
6254 * insdel.c (del_range_2): Don't modify gap contents when called
6255 from decode_coding_object. (Bug#1809)
6256
0b6f228c
CY
62572009-02-21 Chong Yidong <cyd@stupidchicken.com>
6258
6259 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
6260 Qfont_object.
6261 (Ftype_of): Recognize font objects.
6262
6263 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
6264
6265 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
6266 moved to data.c.
6267
52f8870b
AR
62682009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6269
6270 * nsterm.m (x_make_frame_invisible): Unset async_visible,
6271 async_iconified. Based on a patch by Christian Lynbech
6272 <christian.lynbech@tieto.com>.
6273 (EmacsView-windowDidMiniaturize:): Unset async_visible.
6274
7087d5e9
GM
62752009-02-20 Glenn Morris <rgm@gnu.org>
6276
6277 * syntax.c (Fskip_chars_forward): Fix doc typo.
6278
41d2ceef
CY
62792009-02-20 Chong Yidong <cyd@stupidchicken.com>
6280
6281 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
6282
1a3b7ca6
CY
62832009-02-19 Chong Yidong <cyd@stupidchicken.com>
6284
6285 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
6286
73cce38d
KH
62872009-02-19 Kenichi Handa <handa@m17n.org>
6288
6289 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 6290 Don't overflow coding->carryover. (Bug#2370)
73cce38d 6291
a51092ee
DN
62922009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
6293
6294 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
6295
c423ecca
KH
62962009-02-18 Kenichi Handa <handa@m17n.org>
6297
6298 * font.c (font_check_otf_features): Fix handling of `nil' element.
6299 (Ffont_spec): Describe :lang and :otf in the docstring.
6300
4c1958f4
AS
63012009-02-16 Andreas Schwab <schwab@suse.de>
6302
6303 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
6304 string.
6305
5704f39a
KH
63062009-02-16 Kenichi Handa <handa@m17n.org>
6307
6308 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 6309 (Bug#1723)
5704f39a 6310
8f0085aa
CY
63112009-02-14 Chong Yidong <cyd@stupidchicken.com>
6312
a057d86a 6313 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
6314
6315 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
6316 (handle_line_prefix): Suppress wrapping of wrap prefixes.
6317
aff01dd9
EZ
63182009-02-14 Eli Zaretskii <eliz@gnu.org>
6319
6320 * msdos.c (MAX_SCREEN_BUF): New macro.
6321 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
6322 Encode the entire run of glyphs sharing the same face, instead of
6323 doing that one glyph at a time (fixes a bug with displaying
6324 double-size characters).
6325
ba301db3
AR
63262009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
6327
6328 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
6329
6330 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
6331 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 6332 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
6333
6334 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 6335 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 6336
51d861de
SM
63372009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
6338
ac146f82 6339 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
6340 invisible areas.
6341
7fed8996
JR
63422009-02-12 Jason Rumney <jasonr@gnu.org>
6343
631ea4fb
JR
6344 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
6345 (add_font_entity_to_list): Call check_face_name even when family
6346 is unspecified.
6347
cb4a3e42
JR
6348 * w32term.c (x_display_pixel_height, x_display_pixel_width):
6349 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 6350 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 6351
7fed8996 6352 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 6353 raster fonts. (Bug#2219)
7fed8996 6354
895416e3
KH
63552009-02-12 Kenichi Handa <handa@m17n.org>
6356
6357 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
6358 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
6359 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 6360 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
6361 (find_automatic_composition): While looking forward and backward,
6362 check static composition. Fix where to stop looking forward.
6363 (composition_adjust_point): Fix checking of static composition.
6364 (Fcomposition_get_gstring): Pay attention to
1dacf998 6365 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
6366
6367 * lisp.h (fast_looking_at): Extern it.
6368
6369 * search.c (fast_looking_at): New function.
6370
51d861de 6371 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
6372 <struct glyph>.u.cmp.to.
6373 (append_composite_glyph): Likewise.
6374
51d861de 6375 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
6376 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
6377 composition.
51d861de 6378 (append_composite_glyph): Adjust for the change of
895416e3
KH
6379 <strcut glyph>.u.cmp.to.
6380
8510724d
JB
63812009-02-11 Juanma Barranquero <lekktu@gmail.com>
6382
6383 * casetab.c (init_casetab_once):
6384 * coding.c (ALLOC_CONVERSION_WORK_AREA):
6385 * font.c (font_update_lface):
6386 * fontset.c (Fnew_fontset):
6387 * ftfont.c (ftfont_drive_otf):
6388 * xfont.c (xfont_open):
6389 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
6390
294fa707
SM
63912009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
6392
6393 * fileio.c (Fwrite_region): !NILP -> CONSP.
6394
b5bfebec
AS
63952009-02-10 Andreas Schwab <schwab@suse.de>
6396
6397 * process.c (send_process): Properly relocate pointer into data
adab88bd 6398 when using encoded data. (Bug#2272)
b5bfebec 6399
cb84a2be
KH
64002009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
6401
6402 * coding.c (detect_coding_charset): Fix previous change.
6403
89e09428
JR
64042009-02-08 Jason Rumney <jasonr@gnu.org>
6405
6406 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 6407 disappeared while hourglass was displayed. (Bug #2193)
89e09428 6408
4470a277
AS
64092009-02-07 Andreas Schwab <schwab@suse.de>
6410
6411 * unexelf.c (unexec): Fix error message.
6412
3175b12a
AR
64132009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
6414
6415 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 6416 when modal window is active. (Bug #2152)
3175b12a
AR
6417 (applicationShouldTerminate:): Remove now-unneeded while loop
6418 around NSRunAlertPanel.
6419
6420 * nsmenu.m (popupSession): New file-global variable.
6421 (pop_down_menu): End the popupSession before closing dialog.
6422 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
6423 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
6424 don't query NSApp for events (just sleep instead).
6425
8434d0b8
EZ
64262009-02-07 Eli Zaretskii <eliz@gnu.org>
6427
51d861de
SM
6428 * coding.c (syms_of_coding) <translation-table-for-input>:
6429 Modify doc string to discourage use for character code unification.
8434d0b8 6430
aa82edfd
CY
64312009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6432
6433 * atimer.c (run_timers): Update pending_atimers.
6434
2d283c7c
CY
64352009-02-06 Chong Yidong <cyd@stupidchicken.com>
6436
eb306cab
CY
6437 * image.c (svg_load_image): Fix last change.
6438
2d283c7c
CY
6439 * xfns.c (Fx_create_frame): Signal an error if no font is
6440 found (Bug#2147).
6441
4d8e170e
JB
64422009-02-05 Juanma Barranquero <lekktu@gmail.com>
6443
6444 * character.c (syms_of_character) <script-representative-chars>:
6445 Fix typo in docstring.
6446
c96169a0
AR
64472009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6448
6449 * nsmenu.m (pop_down_menu): New function.
6450 (ns_popup_dialog): Call it on unwind.
6451 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
6452 call timer_check() (Bug#2154).
6453 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
6454 handling_signal is set.
6455 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
6456
31fd7c5c 6457 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
6458
6459 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
6460
6461 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
6462
51d861de
SM
6463 * keyboard.c (poll_for_input_1, handle_async_input):
6464 Set handling_signal under HAVE_NS.
c96169a0 6465
aacd8ba1
GM
64662009-02-04 Glenn Morris <rgm@gnu.org>
6467
6468 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
6469
4cb75c4b
KH
64702009-02-04 Kenichi Handa <handa@m17n.org>
6471
6472 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
6473
6474 * charset.c (Fchar_charset): New optional arg restriction.
6475
6476 * coding.h (coding_system_charset_list): Extern it.
6477
6478 * coding.c (coding_system_charset_list): New function.
6479
6480 * composite.c: Include coding.h and termhooks.h.
6481 (composition_gstring_p): Fix for the terminal case.
6482 (composition_gstring_width): Likewise.
6483 (fill_gstring_body): Likewise.
6484 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
6485 the frame.
6486 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
6487 is within a composition.
867d4bb3 6488 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
6489
6490 * term.c (encode_terminal_code): Fix handling of composition.
6491 (produce_composite_glyph): For static composition, get pixel_width
6492 from struct composition.
6493
826ba17e
AS
64942009-02-02 Andreas Schwab <schwab@suse.de>
6495
6496 * unexelf.c (unexec): Handle unaligned bss offset.
6497
8ad093db
AR
64982009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6499
6500 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
6501 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 6502
8ad093db
AR
6503 * keyboard.c (handle_interrupt): Don't call
6504 quit_throw_to_read_char() under NS.
d0a76a6e 6505
8ad093db
AR
6506 * blockinput.h: Remove NS-specific code.
6507
4d18a7a2
DN
65082009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
6509
db878925
DN
6510 * dispnew.c (window_change_signal): Don't try to get the size of a
6511 suspended tty frame.
6512 * term.c (Fresume_tty): Resize if the size has changed while the
6513 tty was suspended.
6514
4d18a7a2
DN
6515 * alloc.c (mark_stack): Properly conditionalize previous change.
6516
8984df7c
JB
65172009-01-30 Juanma Barranquero <lekktu@gmail.com>
6518
6519 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
6520 * w32term.c (w32_read_socket) [SYNC_INPUT]:
6521 Remove; this code is not used on Windows.
6522
75f4f1ac
EZ
65232009-01-30 Eli Zaretskii <eliz@gnu.org>
6524
6525 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
6526 EOLs that also has stray ^M characters.
6527
07a1e794
JB
65282009-01-30 Juanma Barranquero <lekktu@gmail.com>
6529
6530 * atimer.c (run_timers, alarm_signal_handler):
6531 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
6532 * w32inevt.c (w32_console_read_socket):
6533 * w32term.c (w32_read_socket):
6534 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
6535
a8b11cc9
CY
65362009-01-30 Chong Yidong <cyd@stupidchicken.com>
6537
6538 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
6539 Initialize it as a relative filename pattern.
6540 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
6541 (Fcall_process_region): Simplify temp file creation using
6542 temporary-file-directory.
6543
c279587b
EZ
65442009-01-29 Eli Zaretskii <eliz@gnu.org>
6545
6546 * msdos.c: Rename pending_signals to msdos_pending_signals.
6547 (sig_suspender, sigprocmask): Adjust.
6548
a8fe3242
CY
65492009-01-29 Chong Yidong <cyd@stupidchicken.com>
6550
6551 * keyboard.c (pending_signals): New var.
6552 (poll_for_input, input_available_signal, init_keyboard): Set it.
6553 (process_pending_signals): New function.
6554
6555 * lisp.h (QUIT): Check pending_signals instead of
6556 interrupt_input_pending. Use process_pending_signals.
6557
51d861de 6558 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 6559
51d861de 6560 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
6561
6562 * sysdep.c (emacs_write): Use process_pending_signals.
6563
6564 * xterm.c (XTread_socket): Update pending_signals.
6565
6566 * w32term.c (w32_read_socket): Update pending_signals.
6567
6568 * w32inevt.c (w32_console_read_socket): Update pending_signals.
6569
6570a1c4
KH
65702009-01-29 Kenichi Handa <handa@m17n.org>
6571
6572 * xftfont.c (xftfont_has_char): New function.
6573 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
6574
d72a4afa
AR
65752009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6576
6577 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
6578 under GNUstep.
6579 (ns_query_color): New declaration.
6580
6581 * nsterm.m (ns_confirm_quit): New variable.
6582 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
6583 (EmacsApp-applicationShouldTerminate:): Use it.
6584 (EmacsPrefsController): Let user set it.
6585 (ns_query_color): New function.
6586 (ns_defined_color): Use it.
6587 (ns_initialize): Drop.
6588 (ns_term_init): Add two lines from ns_initialize(), and set
6589 input_interrupt_mode to nil.
6590
6591 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 6592 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 6593
9fe78804
KH
65942009-01-28 Kenichi Handa <handa@m17n.org>
6595
6596 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
6597 (fontset_get_font_group): Remember that no font-group is specified
6598 for C.
9fe78804 6599
fa57de36
CY
66002009-01-27 Chong Yidong <cyd@stupidchicken.com>
6601
930600e9
CY
6602 * fns.c (concat): Check for string overflow (bug#1787).
6603
fa57de36
CY
6604 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
6605 Quadruple undo limits (bug#1501).
6606
7179ce7b
KH
66072009-01-27 Kenichi Handa <handa@m17n.org>
6608
6609 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
6610 directly use GT_Get_Char_index.
6611
6612 * xftfont.c (struct xftfont_info): New member `index'.
6613
6614 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 6615 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 6616
5be8fcc0
CY
66172009-01-26 Kenichi Handa <handa@m17n.org>
6618
6619 * fontset.c (fontset_find_font): Fix handling of non-cons return
6620 value of fontset_get_font_group.
6621 (fontset_font): Revert last change.
6622
19ae3e61
JR
66232009-01-26 Jason Rumney <jasonr@gnu.org>
6624
6625 * w32font.c (w32font_list_internal): Return quickly if registry is
6626 unknown. Simplify final return.
6627 (add_font_entity_to_list): Break complex logic down into more
6628 manageable chunks. Move unknown registry check to
6629 w32font_list_internal.
6630
8612b71a
AR
66312009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
6632
6633 Changes to remove Feval calls from GUI under NS.
6634
d8038940
JB
6635 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
6636 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
6637 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
6638
6639 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
6640 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
6641 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
6642 instead of NON_ASCII_KEYSTROKE_EVENT.
6643 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
6644 (EmacsApp-applicationShouldTerminate:): Query user.
6645 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
6646 instead of Feval.
6647
6648 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
6649
6650 * keyboard.c (kbd_buffer_get_event): Check for it.
6651 (keys_of_keyboard): Define lispy keys for
6652 ns-put/unput-working-text.
6653
6654 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
6655 versions.
6656 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
6657
6288ae55
CY
66582009-01-25 Chong Yidong <cyd@stupidchicken.com>
6659
6660 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 6661 setting current_buffer directly. (Bug#2044)
6288ae55 6662
289e7f8f
CY
66632009-01-24 Chong Yidong <cyd@stupidchicken.com>
6664
5ce87308 6665 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 6666 any work. (Bug#1952, bug#1990).
5ce87308 6667
64cc3cf6 6668 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 6669
b3243e6f
AR
66702009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6671
6672 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
6673 (ns_no_defaults): New declaration.
6674 (main): Use it.
e0d2e69a 6675
d900b2af 6676 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 6677
d900b2af 6678 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 6679
d900b2af
AR
6680 * nsterm.m (ns_no_defaults): New variable.
6681 (ns_initialize): Don't read defaults when ns_no_defaults.
6682 (EmacsView-readSelectionFromPasteboard:)
6683 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 6684 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
6685 (ns_dumpglyphs_stretch): New function.
6686 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 6687 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 6688
e0d2e69a
AR
6689 * nsimage.m (setPixmapData:): Set to ignore image DPI.
6690
3ac71f5d
CY
66912009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
6692
6693 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
6694 call for Sparc64.
6695
3fe53a83
AR
66962009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6697
6698 * nsfns.m:
6699 * nsgui.h:
6700 * nsmenu.m:
6701 * nsselect.m:
6702 * nsterm.h:
6703 * nsterm.m: Remove '23' comments that indicated code added during
6704 update from emacs-20 -> emacs-23.
6705
10f87c6f 67062009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
6707
6708 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 6709 ns_alternate_modifier. (Bug#1217)
a3b53a85 6710
c7cef62d
AR
6711 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
6712 Display all shortcuts, including those w/o super modifier.
6713
575fb8bd
AR
6714 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
6715
918b848b
CY
67162009-01-22 Chong Yidong <cyd@stupidchicken.com>
6717
6718 * fileio.c (Vwrite_region_post_annotation_function)
6719 (Vwrite_region_annotation_buffers): New vars.
6720 (build_annotations_unwind): Just reset
6721 Vwrite_region_annotation_buffers.
6722 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
6723 Call write-region-post-annotation-function.
6724 (build_annotations): Add to Vwrite_region_annotation_buffers if
6725 buffer changes.
6726
a39e2539
AR
67272009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6728
6729 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
6730 Tiger.
51d861de
SM
6731 * nsfns.m (ns_do_applescript):
6732 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 6733
35ed44db
AR
67342009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
6735
6736 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
6737
cbe0b5bf
AR
67382009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6739
6740 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 6741
6049d3a0
AR
6742 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
6743
6744 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
6745 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
6746 handle Ctrl-tab. (Bug#1841)
6747 (ns_get_color): Use unsigned long long for scanned hex string value.
6748 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 6749 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 6750 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 6751 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 6752 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 6753 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 6754 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 6755
d3810c21 6756 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 6757 DPI. (Bug#1316)
d3810c21
AR
6758 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
6759 values in onTiger section.
4c7077c3 6760
e301e634
CY
67612009-01-19 Chong Yidong <cyd@stupidchicken.com>
6762
7f82490b
CY
6763 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
6764 Check return value of font_spec_from_name.
64cc3cf6 6765 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
6766
6767 * font.c (font_spec_from_name): Return Qnil if font name could not
6768 be parsed.
6769 (font_parse_name): Treat a `?' character as part of an XLFD.
6770
e301e634
CY
6771 * fns.c (Fsubstring): Doc fix.
6772
1c0db158
KH
67732009-01-19 Kenichi Handa <handa@m17n.org>
6774
51d861de 6775 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
6776 (ftfont_list): Likewise.
6777
acf20901
JB
67782009-01-18 Juanma Barranquero <lekktu@gmail.com>
6779
fff4e459
JB
6780 * dbusbind.c (Fdbus_register_signal):
6781 * process.c (conv_sockaddr_to_lisp):
6782 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
6783
acf20901
JB
6784 * callproc.c (Fgetenv_internal): Doc fix.
6785
e7abcdfb
CY
67862009-01-16 Chong Yidong <cyd@stupidchicken.com>
6787
6788 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
6789 it is not even used.
6790
b60861e6
GM
67912009-01-16 Glenn Morris <rgm@gnu.org>
6792
6793 * font.c (Ffont_variation_glyphs): Silence compiler.
6794
8db52afe
JB
67952009-01-15 Juanma Barranquero <lekktu@gmail.com>
6796
6797 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
6798 Reported by David Robinow <drobinow@gmail.com>.
6799
4cddb209
KH
68002009-01-15 Kenichi Handa <handa@m17n.org>
6801
51d861de 6802 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 6803
f247f67b
JR
68042009-01-14 Jason Rumney <jasonr@gnu.org>
6805
6806 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 6807 never a fontset. (Bug#1562)
f247f67b 6808
f56a4450
KH
68092009-01-14 Kenichi Handa <handa@m17n.org>
6810
6811 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 6812 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 6813
4e99855e
CY
68142009-01-13 Chong Yidong <cyd@stupidchicken.com>
6815
6816 * font.c (font_clear_prop): If clearing the family, clear the font
6817 width index too.
6818
fff4e459 6819 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 6820
24f01470
JB
68212009-01-12 Juanma Barranquero <lekktu@gmail.com>
6822
6823 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
6824 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
6825 functions, use sizeof.
6826
a41240a3
MR
68272009-01-12 Martin Rudalics <rudalics@gmx.at>
6828
6829 * keyboard.c (read_char): Fix case where last_nonmenu_event
6830 returned a bad value with submenus. (Bug#447)
6831
944636b8
CY
68322009-01-12 Chong Yidong <cyd@stupidchicken.com>
6833
6834 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
6835 family, clear the font width index too.
6836
0dad7c6f
JR
68372009-01-11 Jason Rumney <jasonr@gnu.org>
6838
6839 * keyboard.c (cmd_error_internal): Exit when errors occur before
6840 frame creation and not in daemon mode. (Bug#1836)
6841
7c2363af
CY
68422009-01-10 Chong Yidong <cyd@stupidchicken.com>
6843
6844 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
6845 of a display vector, backtrack.
6846 (try_window_reusing_current_matrix): Check glyph type before
6847 referencing charpos member.
6848
97b1b294
EZ
68492009-01-10 Eli Zaretskii <eliz@gnu.org>
6850
6851 Fix Bug #876:
6852
6853 * coding.c (inhibit_null_byte_detection): New variable.
6854 (detect_coding, detect_coding_system): Don't pay attention to null
6855 bytes if inhibit_null_byte_detection is non-zero.
51d861de 6856 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
6857 <inhibit-iso-escape-detection>: Doc fix.
6858
4624b6e3
JR
68592009-01-09 Jason Rumney <jasonr@gnu.org>
6860
6861 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 6862 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
6863 Only report Unicode Plane 2 fonts as unicode-sip.
6864
323b840c
CY
68652009-01-09 Chong Yidong <cyd@stupidchicken.com>
6866
51d861de
SM
6867 * xfaces.c (Fx_font_family_list): Delete function.
6868 Move compatibility version to faces.el.
323b840c 6869
51d861de 6870 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 6871
eba7400d
MR
68722009-01-09 Martin Rudalics <rudalics@gmx.at>
6873
6874 * frame.c (x_set_frame_parameters): Remember requested value for
6875 fullscreen before it's reset by the parameter handler.
6876
4b09796d
GM
68772009-01-09 Glenn Morris <rgm@gnu.org>
6878
6879 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 6880 (last_command_event): ... and update all users.
4b09796d
GM
6881 (last_input_char): For clarity, rename to...
6882 (last_input_event): ... and update all users.
6883 (last-command-char, last-input-char): Move to subr.el as aliases.
6884 * cmds.c, commands.h: Update for last_command_char rename.
6885
14ccea62
CY
68862009-01-08 Chong Yidong <cyd@stupidchicken.com>
6887
51d861de 6888 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 6889
5f004711
JR
68902009-01-08 Jason Rumney <jasonr@gnu.org>
6891
6892 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
6893 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
6894 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
6895 Don't declare.
fff4e459 6896 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
6897 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
6898
b71f6f73
KH
68992009-01-07 Kenichi Handa <handa@m17n.org>
6900
50b06221 6901 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 6902 remember the coding system used for decoding in
50b06221
KH
6903 coding_system (Bug#1039).
6904
b71f6f73 6905 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 6906 breaking the loop. (Bug#870)
b71f6f73
KH
6907 (decode_coding_utf_16, decode_coding_emacs_mule)
6908 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
6909 (decode_coding_charset): Likewise.
6910
56f668f7
MR
69112009-01-05 Martin Rudalics <rudalics@gmx.at>
6912
6913 * frame.c (x_set_frame_parameters): Make sure height (width) get
6914 applied when fullwidth (fullheight) is set. (Bug#1522)
6915
5da9424d
JB
69162009-01-04 Juanma Barranquero <lekktu@gmail.com>
6917
6918 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
6919 (utc_base): Declare as ULONGLONG, not long double.
6920 (convert_time_raw): Delete.
6921 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
6922 (initialize_utc_base): New function.
6923 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
6924 (convert_from_time_t): Use initialize_utc_base; compute result with
6925 64-bit arithmetic.
6926 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
6927
c4605e09
EZ
69282009-01-03 Eli Zaretskii <eliz@gnu.org>
6929
9acef61c 6930 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
6931 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
6932 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
6933 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
6934 [!subprocesses]: Define.
6935 (syms_of_process) [!subprocesses]: Intern and staticpro them.
6936 (Flist_system_processes, Fsystem_process_attributes)
6937 [!subprocesses]: Call list_system_processes and
6938 system_process_attributes instead of returning Qnil.
6939
9acef61c
JB
6940 * dosfns.c (system_process_attributes, list_system_processes):
6941 New functions.
c4605e09
EZ
6942
6943 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
6944
6945 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
6946 Don't use the default (no-op) implementation.
6947
8b7d0a16
JR
69482009-01-03 Jason Rumney <jasonr@gnu.org>
6949
a6d46bc1
JR
6950 * keyboard.c (parse_modifiers_uncached): Wheel events are
6951 clicks (bug#687).
6952
8b7d0a16
JR
6953 * w32term.c (x_query_colors, x_query_color): New functions.
6954
6955 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
6956 (svg_load_image): Cast returned pointers from dynamically loaded
6957 functions. Eliminate W32 specific code.
6958
bfe11752
DN
69592009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
6960
89e2438a
DN
6961 * nsfns.m (x_set_foreground_color, x_set_background_color)
6962 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
6963 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
6964 x_ prefix instead of ns_. Update references.
6965 (syms_of_nsfns): Add a FIXME comment.
6966
6967 * nsterm.m (x_set_cursor_type): New prototype.
6968 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
6969
bfe11752
DN
6970 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
6971 for Solaris instead of incorrectly providing Qutime and Qcutime.
6972
031da700
EZ
69732009-01-02 Eli Zaretskii <eliz@gnu.org>
6974
6975 * w32.c (process_times): Compute sum of utime and stime.
6976 (system_process_attributes): Add Qtime to the alist.
6977
6978 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
6979 and add them to the alist.
6980
6981 * process.c (top level) <Qtime, Qctime>: New variables.
6982 (syms_of_process): staticpro them.
6983 (Fsystem_process_attributes): Add their documentation to the doc
6984 string.
6985
6986 * process.h: Declare Qtime and Qctime.
6987
df23bf08
JR
69882009-01-02 Jason Rumney <jasonr@gnu.org>
6989
9acef61c 6990 * image.c (Qgobject): New symbol.
df23bf08
JR
6991 (syms_of_image): Initialize it.
6992 (init_svg_functions): Load some functions from gobject library.
6993
5bbdf7aa
DN
69942009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
6995
6996 * frame.c (make_terminal_frame): Remove redundant code and useless
6997 block.
6998
63136da6
AS
69992009-01-01 Andreas Schwab <schwab@suse.de>
7000
7001 * process.c (conv_sockaddr_to_lisp): Add workaround for
7002 getsockname bug on BSD.
7003
9ef69046
CY
70042009-01-01 Chong Yidong <cyd@stupidchicken.com>
7005
d6fafbe0
CY
7006 * xfns.c (x_create_tip_frame): Set border width of the X window.
7007
51d861de 7008 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 7009
f9c34147
JR
70102009-01-01 Jason Rumney <jasonr@gnu.org>
7011
9acef61c 7012 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
7013 Don't block input, as per earlier xterm.c changes.
7014
f5497e45
AR
70152008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
7016
7017 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
7018 (ns_appkit_version_int): New function.
7019 (x-server-version): Use ns_appkit_version_int and follow 21+
7020 convention of returning 3 integers.
7021
c19cab20
KH
70222008-12-30 Kenichi Handa <handa@m17n.org>
7023
7024 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
7025 (CHAR_SURROGATE_PAIR_P): New macro.
7026
7027 * font.h (struct font_driver): New member get_variation_glyphs.
7028
9acef61c 7029 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
7030 (Ffont_variation_glyphs): New function.
7031 (syms_of_font): Defsubr it.
7032
7033 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
7034 ftfont_variation_glyphs.
7035 (setup_otf_gstring): New function.
7036 (ftfont_drive_otf): Use it.
7037 (ftfont_shape_by_flt): Handle variation selector.
7038 (ftfont_variation_glyphs): New function.
7039
28cd591f
MR
70402008-12-30 Martin Rudalics <rudalics@gmx.at>
7041
7042 * frame.c (Vemacs_iconified): Remove.
7043
7f714baf
JR
70442008-12-30 Jason Rumney <jasonr@gnu.org>
7045
7046 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 7047 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 7048
9d2d22ab
CY
70492008-12-30 Chong Yidong <cyd@stupidchicken.com>
7050
7051 * indent.c (Fvertical_motion): Don't advance iterator if we have
7052 reseated to the desired position.
7053
7054 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
7055 checking for pos match.
7056
545312c2
KH
70572008-12-30 Kenichi Handa <handa@m17n.org>
7058
1ede3eb6
KH
7059 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
7060 just get the low 8-bit of the code.
7061
545312c2
KH
7062 * font.c (font_intern_prop): Validate str as multibyte.
7063
bd7bbf29
DN
70642008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
7065
31e0750e
DN
7066 * dispextern.h (struct face): Move lface and hash from the middle
7067 of bitfields.
7068
bd7bbf29
DN
7069 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
7070
b5672e7c
DN
70712008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
7072
7073 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
7074 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
7075 instead of intervals.h.
7076
d704470f
AS
70772008-12-26 Andreas Schwab <schwab@suse.de>
7078
7079 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
7080 cons.
7081
54b33868
MR
70822008-12-26 Martin Rudalics <rudalics@gmx.at>
7083
7084 * textprop.c (Qminibuffer_prompt): New variable.
7085 (syms_of_textprop): Initialize it.
7086 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
7087 in minibuffer-prompt face. (Bug#1662)
7088
40b615d6
JR
70892008-12-25 Jason Rumney <jasonr@gnu.org>
7090
7091 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
7092
baae5c2d
JR
70932008-12-24 Jason Rumney <jasonr@gnu.org>
7094
7095 * ralloc.c (r_alloc_reset_variable): New function.
7096
7097 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 7098 record of what points where. (Bug#716)
baae5c2d 7099
a9051c88
DN
71002008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
7101
7102 * minibuf.c (read_minibuf): Follow the non-interactive case when
7103 running as a daemon, before detaching.
7104
8b146312
AS
71052008-12-22 Andreas Schwab <schwab@suse.de>
7106
7107 * buffer.c (init_buffer): Use realloc instead of xrealloc.
7108 * gtkutil.c (free_widget_value): Use xfree instead of free.
7109
56f2de10
MR
71102008-12-22 Martin Rudalics <rudalics@gmx.at>
7111
7112 * frame.c (delete_frame): New function derived from
7113 Fdelete_frame to handle Qnoelisp value for FORCE argument.
7114 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
7115 (Fdelete_frame): Call delete_frame. Remove line from doc-string
7116 saying that FORCE non-nil doesn't run `delete-frame-functions'.
7117 * frame.h: Extern delete_frame.
7118 * window.c (window_loop):
7119 * terminal.c (delete_terminal):
7120 * xterm.c (x_connection_closed):
7121 * xfns.c (Fx_hide_tip):
9acef61c 7122 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 7123
1fc200d6
JR
71242008-12-21 Jason Rumney <jasonr@gnu.org>
7125
7126 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
7127 when character maps to .notdef character.
7128
5e252df2
SM
71292008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
7130
7131 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
7132
99b72cc4
JR
71332008-12-20 Jason Rumney <jasonr@gnu.org>
7134
7135 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 7136 a graphical frame on Windows. (Bug#1325)
99b72cc4 7137
acc49a52
JD
71382008-12-20 Jan Djärv <jan.h.d@swipnet.se>
7139
7140 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
7141
6ea15123
CY
71422008-12-20 Chong Yidong <cyd@stupidchicken.com>
7143
7144 * minibuf.c (Fread_buffer): Doc fix.
7145
b2dab6c8
JR
71462008-12-20 Jason Rumney <jasonr@gnu.org>
7147
54ea0c87 7148 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 7149 server name in UNC paths. (Bug#719)
54ea0c87 7150
b2dab6c8 7151 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 7152 charbuf. (Bug#1035)
b2dab6c8 7153
6d1921be
DN
71542008-12-19 Daniel Engeler <engeler@gmail.com>
7155
7156 * sysdep.c (serial_configure): Fix typo.
7157
53934c98
DN
71582008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
7159
7160 * sysdep.c: Include alloca.h.
f4f634e8
DN
7161 (system_process_attributes): Add implementation for Solaris.
7162
7163 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 7164
06e111a6
DN
71652008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
7166
7167 Reorganize implementation of Flist_system_processes and
7168 Fsystem_process_attributes. No functional changes.
7169 * process.c: Don't #include pwd.h, grp.h and limits.h.
7170 (Flist_system_processes): Just call list_system_processes.
7171 (Fsystem_process_attributes): Just call system_process_attributes.
7172 (procfs_list_system_processes, time_from_jiffies)
7173 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
7174 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
7175
7176 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
7177 (list_system_processes): Rename from
7178 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
7179 Provide a do nothing implementation.
7180 (system_process_attributes): Rename from
7181 procfs_list_system_processes.
7182 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 7183 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
7184
7185 * w32.c (list_system_processes): Rename from
7186 w32_list_system_processes.
7187 (system_process_attributes): Rename from
7188 w32_system_process_attributes.
7189
7190 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
7191
7192 * process.h (w32_list_system_processes)
7193 (w32_system_process_attributes): Remove.
362654a6
JB
7194 (list_system_processes, system_process_attributes):
7195 New prototypes.
06e111a6 7196
6a705b23
KH
71972008-12-19 Kenichi Handa <handa@m17n.org>
7198
7199 * xfont.c (xfont_decode_coding_xlfd): New function.
7200 (xfont_encode_coding_xlfd): New function.
7201 (xfont_list_pattern): Decode XLFD by iso-8859-1.
7202 (xfont_list): Decode and encode XLFD by iso-8859-1.
7203 (xfont_match): Likewise.
7204 (xfont_list_family): Likewise.
7205 (xfont_open): Likewise.
7206
d66c0241 7207 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
7208 names are utf-8.
7209
d66c0241 7210 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
7211 names are utf-8.
7212
5a130941
JD
72132008-12-18 Jan Djärv <jan.h.d@swipnet.se>
7214
7215 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
7216 changed.
bfd20325
JD
7217 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
7218 clicked on a detached tool bar button.
5a130941 7219
fd95644b
DN
72202008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
7221
7222 * emacs.c (main): Print and error and exit when no data is read
7223 from the pipe.
7224
e6eee6ae
JR
72252008-12-17 Jason Rumney <jasonr@gnu.org>
7226
7227 * w32font.c (w32font_has_char): Always return -1.
7228
a35dd56b
KH
72292008-12-16 Kenichi Handa <handa@m17n.org>
7230
7231 * font.c (font_open_entity): Fix previous change.
7232
0e3635c2
DN
72332008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
7234
7235 * process.c: Include <limits.h>.
7236
d4835507 72372008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
7238
7239 * font.c (font_update_drivers): Fix mistake in reconstructing the
7240 driver list.
7241
72422008-12-16 Chong Yidong <cyd@stupidchicken.com>
7243
7244 * font.c (font_clear_cache): Fix format of font cache data.
7245
e2cbc401
CY
72462008-12-15 Chong Yidong <cyd@stupidchicken.com>
7247
7248 * xftfont.c (xftfont_open): Free Xft font pattern if
7249 XftFontOpenPattern fails.
7250
7251 * xterm.c (x_free_frame_resources): Remove extraneous call to
7252 free_frame_faces.
7253
b131d535
CY
72542008-12-13 Chong Yidong <cyd@stupidchicken.com>
7255
7256 * xterm.c (x_delete_display): Move xim_close_dpy call to
7257 x_delete_terminal.
7258 (x_delete_terminal): Call xim_close_dpy.
7259
e6df5336
JR
72602008-12-13 Jason Rumney <jasonr@gnu.org>
7261
7262 * w32font.c (intern_font_name): New function.
7263 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
7264 (w32font_open_internal, Fx_select_font): Decode font name.
7265 (fill_in_logfont, list_all_matching_fonts): Encode font name.
7266
7267 * w32font.h (intern_font_name): Declare new function.
7268
7269 * w32uniscribe.c (add_opentype_font_name_to_list):
7270 Use intern_font_name.
7271
20d68145
CY
72722008-12-13 Chong Yidong <cyd@stupidchicken.com>
7273
9f2554de
CY
7274 * frame.c (Fdelete_frame): Call free_font_driver_list.
7275
3d9bec9a
CY
7276 * font.c (free_font_driver_list): Implement missing function.
7277
20d68145
CY
7278 * w32term.c (w32_term_init): Don't initialize the image cache
7279 here; it will be done in init_frame_faces.
7280
7281 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
7282 (struct x_display_info): Remove unused member null_pixel. New
7283 member xim_callback_data.
7284
7285 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
7286 (xim_initialize): Save pointer to callback function data.
7287 (xim_close_dpy): Free callback function data. Call XCloseIM,
7288 reverting 2008-11-04 change by David Smith.
7289 (x_term_init): Don't initialize the image cache here; it will be
7290 done in init_frame_faces. Remove ancient "null_pixel" cruft.
7291 (x_delete_display): Free x_dnd_atoms member.
7292
96f9306b
KH
72932008-12-13 Kenichi Handa <handa@m17n.org>
7294
6dec9044
JB
7295 * font.c (font_rescale_ratio): Moved from xfaces.c.
7296 Argument type changed. Handle a font-spec too.
96f9306b 7297 (font_score): Check Vface_font_rescale_alist.
6dec9044 7298 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
7299
7300 * xfaces.c (font_rescale_ratio): Moved to font.c.
7301
8d5b4964
CY
73022008-12-13 Chong Yidong <cyd@stupidchicken.com>
7303
7304 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
7305
e6df5336
JR
73062008-12-12 Jason Rumney <jasonr@gnu.org>
7307
7308 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
7309 Vwindow_system_version to the real w32 major version.
7310
97c6058a
DN
73112008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
7312
7313 * term.c (init_tty): Move setting the terminal name before the
7314 potential user: maybe_fatal.
7315
ec4e88d7
CY
73162008-12-11 Chong Yidong <cyd@stupidchicken.com>
7317
d4835507
JB
7318 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
7319 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 7320
b4233ec9
JR
73212008-12-11 Jason Rumney <jasonr@gnu.org>
7322
8ec71e23 7323 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 7324 SYMBOL_CHARSET. (Bug#547)
8ec71e23 7325
b4233ec9 7326 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 7327 size for surrogates. (Bug#1096, bug#872)
b4233ec9 7328
011a0143
JB
73292008-12-11 Juanma Barranquero <lekktu@gmail.com>
7330
7331 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
7332
3c309f34
JB
73332008-12-11 Juanma Barranquero <lekktu@gmail.com>
7334
7335 * process.c (Fsystem_process_attributes, syms_of_process):
7336 Fix typo in name of Ssystem_process_attributes.
7337 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
7338
fedc6ab5
JB
73392008-12-11 Juanma Barranquero <lekktu@gmail.com>
7340
7341 * syntax.c (Fmodify_syntax_entry): Doc fix.
7342
ba3de0e8
JB
73432008-12-10 Juanma Barranquero <lekktu@gmail.com>
7344
7345 * font.c (Ffont_spec): Move usage to end of docstring.
7346
174f1c74
JR
73472008-12-10 Jason Rumney <jasonr@gnu.org>
7348
7349 * w32font.c (Qcham): New symbol.
7350 (font_supported_scripts): Add cham, and comments for other new
7351 scripts in bitfield from OpenType spec.
9d32f818
JR
7352 (add_font_entity_to_list): Limit unicode-sip fonts to those that
7353 contain characters beyond the bmp.
174f1c74 7354
7b649478
KH
73552008-12-10 Kenichi Handa <handa@m17n.org>
7356
7357 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 7358 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
7359 Qunicode_sip.
7360
2133e2d1
JB
73612008-12-10 Juanma Barranquero <lekktu@gmail.com>
7362
7363 * coding.c (QCdefault_char): Rename from QCdefalut_char.
7364 (Fcoding_system_put): Use QCdefault_char.
7365 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
7366
9af886ee
CY
73672008-12-09 Chong Yidong <cyd@stupidchicken.com>
7368
74d819eb
CY
7369 * xftfont.c (syms_of_xftfont): Fix typo.
7370
4ccfa1c0 7371 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 7372
7c19d3ae
DN
73732008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
7374
7375 * emacs.c (main): Close daemon_pipe on exec.
7376
567826bb
CY
73772008-12-08 Chong Yidong <cyd@stupidchicken.com>
7378
7379 * termchar.h (struct tty): New members termcap_term_buffer and
7380 termcap_strings_buffer.
7381
7382 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 7383 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
7384 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
7385 All callers changed.
7386 (init_tty): Store termcap data and string buffers in new struct
7387 tty members termcap_term_buffer and termcap_strings_buffer.
7388 (delete_tty): Free them.
4ccfa1c0 7389 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 7390
aa96c42b
SZ
73912008-12-07 Seiji Zenitani <zenitani@mac.com>
7392
7393 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 7394 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 7395
b7e1d896
CY
73962008-12-06 Chong Yidong <cyd@stupidchicken.com>
7397
7398 * coding.c (make_conversion_work_buffer): Disable buffer
7399 modification hooks in the work buffer.
7400
b5ec91a5
EZ
74012008-12-05 Eli Zaretskii <eliz@gnu.org>
7402
7403 * process.c (procfs_system_process_attributes): If `nread' has a
7404 negative value, assign zero to it.
7405
a5d2a52b
CY
74062008-12-05 Chong Yidong <cyd@stupidchicken.com>
7407
68c5540b 7408 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 7409
7bf1bb21
KH
74102008-12-05 Kenichi Handa <handa@m17n.org>
7411
7412 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
7413 second character is a combining character.
7414
2fdc7d00
EZ
74152008-12-05 Eli Zaretskii <eliz@gnu.org>
7416
7417 * process.c (procfs_system_process_attributes): Don't use cmd,
7418 cmdsize, and q without initializing them first.
7419
bf6bfba8
JR
74202008-12-04 Jason Rumney <jasonr@gnu.org>
7421
7422 * w32font.c (w32font_draw): Initialize orig_clip before getting
7423 it, and delete it when finished.
7424
a3b1a468
DN
74252008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
7426
7427 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
7428 case when running as a daemon before detaching.
7429
8b8be8eb
JB
74302008-12-03 Juanma Barranquero <lekktu@gmail.com>
7431
805f2638 7432 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 7433
b1bde622
KH
74342008-12-03 Kenichi Handa <handa@m17n.org>
7435
e500c47d
KH
7436 * font.c (font_at): Set `multibyte' at first.
7437
ca516334
KH
7438 * coding.c (decode_coding_charset): Check type of an element of
7439 vector VALIDS.
7bf1bb21 7440 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 7441
4ccfa1c0 7442 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
7443 (font_for_char): Likewise.
7444
1e5ecd37
CY
74452008-12-03 Chong Yidong <cyd@stupidchicken.com>
7446
d5b01609 7447 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
7448 (font_update_lface): Handle fonts with corrupted size specs,
7449 i.e. non-int and non-float.
d5b01609 7450
11e3a6e4 7451 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 7452 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 7453 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 7454
ab06788b
CY
7455 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
7456
1e5ecd37 7457 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 7458 underline_minimum_offset for underline position.
1e5ecd37 7459
63c125ab
DN
74602008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
7461
7462 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
7463
7464 * character.c (c_string_width): Specify the type for LEN.
7465
3a8406e1
KH
74662008-12-03 Kenichi Handa <handa@m17n.org>
7467
4ccfa1c0 7468 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 7469 (decode_coding_utf_8): Likewise.
4ccfa1c0 7470 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 7471 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 7472
651df7d9
CY
74732008-12-02 Chong Yidong <cyd@stupidchicken.com>
7474
7475 * keyboard.c (make_lispy_position): Only use PT if the selected
7476 window is current.
7477
1f625c6c
AS
74782008-12-02 Andreas Schwab <schwab@suse.de>
7479
f7741ce9
AS
7480 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
7481
1f625c6c
AS
7482 * doprnt.c (doprnt1): Fix size of charbuf.
7483
92bc2678
CY
74842008-12-02 Chong Yidong <cyd@stupidchicken.com>
7485
7486 * keyboard.c (timer_check): Revert last change.
7487
93b9e8cc
JB
74882008-12-02 Juanma Barranquero <lekktu@gmail.com>
7489
7490 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
7491
fd7a37d5
JB
74922008-12-01 Juanma Barranquero <lekktu@gmail.com>
7493
7494 * makefile.w32-in: Update dependencies.
7495 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
7496
c115043b
AS
74972008-12-01 Andreas Schwab <schwab@suse.de>
7498
7499 * font.c (register_font_driver): Use xmalloc.
7500 (font_put_frame_data): Likewise.
7501
f5668d2a
CY
75022008-12-01 Chong Yidong <cyd@stupidchicken.com>
7503
860d96be
CY
7504 * xfaces.c (realize_x_face): Make abort condition clearer.
7505
f5668d2a
CY
7506 * gtkutil.c (update_frame_tool_bar): Initialize variable.
7507
379c17e7
CY
75082008-11-30 Chong Yidong <cyd@stupidchicken.com>
7509
7510 * keyboard.c (timer_check): After a timer runs, ensure that the
7511 selected window's buffer is current.
7512
35f36d65
JB
75132008-11-30 Juanma Barranquero <lekktu@gmail.com>
7514
f952c61c
JB
7515 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
7516 It was accidentally restored by the Unicode merge.
7517
35f36d65
JB
7518 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
7519
b23077df
JB
75202008-11-29 Juanma Barranquero <lekktu@gmail.com>
7521
7522 * w32proc.c: Include "coding.h".
7523 (Fw32_short_file_name): Encode filename passed to Windows API.
7524 (Fw32_long_file_name): Encode filename passed to Windows API and
7525 decode back the result. (Bug#1433)
7526
b8ebe9dd
KH
75272008-11-29 Kenichi Handa <handa@m17n.org>
7528
8cc53f96
KH
7529 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
7530 not before accessing it.
7531
b8ebe9dd
KH
7532 * charset.c (Fdefine_charset_internal): After calculating
7533 min_char, max_char, and fastmap, copy the charset structure again.
7534 (encode_char): Fix the previous change.
7535
59bc82c0
SZ
75362008-11-28 Seiji Zenitani <zenitani@mac.com>
7537
7538 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
7539
7540 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
7541
7542 * nsterm.m (x_set_frame_alpha): New function.
7543
32247e3d
EZ
75442008-11-27 Eli Zaretskii <eliz@gnu.org>
7545
7546 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
7547
b003e5ff
JB
75482008-11-27 Juanma Barranquero <lekktu@gmail.com>
7549
7550 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
7551 pointer to check_face_name.
7552
708550f5
KH
75532008-11-27 Kenichi Handa <handa@m17n.org>
7554
7555 * category.h (SET_CATEGORY_SET): Call set_category_set.
7556 (set_category_set): Extern it.
7557
7558 * category.c (hash_get_category_set): New function.
7559 (Fmodify_category_entry): Adjusted for the change of
7560 char_table_ref_and_range. Call hash_get_category_set to get a
7561 category set to store in the table.
7562
7563 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
7564 Funify_charset.
7565
2ae37cf0 7566 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
7567 (DECODE_CHAR): Check if the decoder vector is ready.
7568 (ENCODE_CHAR): Check if the encoder char-table is ready.
7569 (maybe_unify_char): Extern it.
7570
7571 * charset.c (Vchar_unified_charset_table): Delete it.
7572 (inhibit_load_charset_map): New variable.
7573 (temp_charset_work): New variable.
7574 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
7575 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
7576 New macros.
7577 (load_charset_map): Meaning of control_flag changed. If
7578 inhibit_load_charset_map is nonzero, setup a table in
7579 temp_charset_work.
7580 (load_charset): New argument control_flag.
7581 (map_charset_for_dump): New function.
7582 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
7583 map_charset_for_dump.
7584 (Fdefine_charset_internal): If the charset method is MAP, load
7585 mapping tables by calling load_charset.
7586 (Funify_charset): Don't load a mapping table but directly set
7587 Vchar_unify_table.
7588 (maybe_unify_char): New function.
7589 (decode_char): Don't handle the deleted method MAP_DEFERRED.
7590 Handle the case of inhibit_load_charset_map being nonzero.
7591 (encode_char): Don't handle the deleted method MAP_DEFERRED.
7592 Handle the case of inhibit_load_charset_map being nonzero.
7593 (Fclear_charset_maps): Just free temp_charset_work.
7594 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
7595 variable.
7596
7597 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
7598 change of char_table_ref_and_range.
7599 (char_table_ref_and_range): Change the meaning of argument FROM
7600 and TO. Now the caller must provide initial values for *FROM
7601 and *TO.
7602
7603 * fontset.c (fontset_add): Adjusted for the change of
7604 char_table_ref_and_range.
7605 (fontset_get_font_group): Likewise.
7606 (Ffontset_info): Likewise.
7607
7608 * keymap.c (describe_vector): Adjusted for the change of
7609 char_table_ref_and_range. For char-table, put boundary between
7610 non-ASCII and 8-bit characters.
7611
7612 * print.c (print_object): For bool-vector, delete unnecessary
7613 check of ASCII_BYTE_P.
7614
9196133b
JR
76152008-11-26 Jason Rumney <jasonr@gnu.org>
7616
7617 * w32font.c (w32font_open_internal): Don't include external
9acef61c 7618 leading in font height. (Bug#879)
9196133b 7619
9f688acf
GM
76202008-11-26 Glenn Morris <rgm@gnu.org>
7621
7622 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
7623 redefinition with ifdef. (Bug#1383)
7624
90d19aff
AR
76252008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7626
7627 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
7628
4ccfa1c0 76292008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
7630
7631 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
7632 New EmacsView methods.
7633 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
7634 Fixes bug #1048,1357,1414.
7635
76362008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7637
7638 Fix bug #1362.
7639 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
7640 is not an indexed color.
7641 * nsterm.m (free_indexed_color): Add argument checking.
7642 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
7643
e7d5ecb3
CY
76442008-11-24 Chong Yidong <cyd@stupidchicken.com>
7645
7646 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
7647 Document confirm-after-completion value for
7648 minibuffer-completion-confirm.
7649
c285743c
JR
76502008-11-24 Jason Rumney <jasonr@gnu.org>
7651
7652 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
7653 warning.
7654
b0857706
JR
76552008-11-23 Jason Rumney <jasonr@gnu.org>
7656
7657 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
7658 restored before returning.
7659
7660 * w32font.c (check_face_name): New function.
7661 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 7662 fonts. (Bug#642)
b0857706 7663
ee50ff07
MR
76642008-11-22 Martin Rudalics <rudalics@gmx.at>
7665
7666 * buffer.c (Fswitch_to_buffer): Reword and mention new option
7667 confirm-nonexistent-file-or-buffer in doc-string.
7668
b8ff72fa
SM
76692008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
7670
7671 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
7672 Fix copy/paste typo. Add checks.
7673
cee53ed4
KH
76742008-11-21 Kenichi Handa <handa@m17n.org>
7675
7676 * coding.c (detect_coding_iso_2022): Reject invalid composition
7677 sequence.
7678 (DECODE_COMPOSITION_START): If the current source is the last
7679 block, and the current composition doesn't end, regard this
7680 sequence as invalid.
7681 (decode_coding_iso_2022): Handle invalid composition sequence.
7682
f6ef1e65
MR
76832008-11-20 Martin Rudalics <rudalics@gmx.at>
7684
7685 * window.c (coordinates_in_window): Don't return
7686 ON_VERTICAL_BORDER for the rightmost position of a mode/header
7687 line when the window is not the rightmost one. (Bug#1372)
7688
e08b1705
MR
76892008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
7690
7691 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
7692
ad98e89f
EZ
76932008-11-15 Eli Zaretskii <eliz@gnu.org>
7694
7695 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
7696 and bright_bg if noninteractive is non-zero.
7697
fb098a4b
CY
76982008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7699
7700 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
7701 x_draw_glyph_string_background.
7702
7703 * w32term.c (x_draw_glyph_string): Likewise.
7704
ce952b6e
CY
77052008-11-15 Chong Yidong <cyd@stupidchicken.com>
7706
7707 * xterm.c (x_draw_glyph_string): Stop drawing the background of
7708 the next glyph string once past the overhang width.
7709
7710 * nsterm.m (ns_draw_glyph_string): Likewise.
7711
7712 * w32term.c (x_draw_glyph_string): Likewise.
7713
26ea7079
CY
77142008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
7715
7716 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
7717 double file close.
7718
1c33c906
MR
77192008-11-14 Martin Rudalics <rudalics@gmx.at>
7720
7721 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
7722 dedicated status of window before attempting to display another
7723 buffer in it.
7724
8fc29035
JB
77252008-11-14 Juanma Barranquero <lekktu@gmail.com>
7726
7727 * msdos.c (Fmsdos_long_file_names):
7728 (syms_of_msdos) <dos-unsupported-char-glyph>:
7729 * dosfns.c (Fint86): Fix typos in docstrings.
7730
55fb4286
EZ
77312008-11-14 Eli Zaretskii <eliz@gnu.org>
7732
7733 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
7734
3fda0315
KY
77352008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
7736
7737 * puresize.h (BASE_PURESIZE): Increase to 1260000.
7738
7e849c17
CY
77392008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
7740
7741 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
7742
7743 * frame.h: Negative alpha means "don't touch".
7744
7745 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
7746
7747 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
7748
b9fd67bd
DN
77492008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
7750
7751 * hftctl.c:
7752 * chpdef.h:
7753 * acldef.h: Remove files used only for systems no longer supported.
7754
7755 * Makefile.in: Fix .o alphabetical ordering.
7756 (hftctl.o): Remove dependency, file removed.
7757 (keymap.o, print.o): Depend on charset.h.
7758
d5998e03
KH
77592008-11-10 Kenichi Handa <handa@m17n.org>
7760
2ae37cf0 7761 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 7762
be70e183
CY
77632008-11-08 Chong Yidong <cyd@stupidchicken.com>
7764
7765 * dired.c (file_name_completion): If completion_ignore_case is
7766 enabled, ignore case when checking completion-regexp-list.
7767
7cf94eac
EZ
77682008-11-08 Eli Zaretskii <eliz@gnu.org>
7769
7770 * vm-limit.c (get_lim_data): Fix last change.
7771
ee107a89
KH
77722008-11-08 Kenichi Handa <handa@m17n.org>
7773
7774 * character.c (Fget_byte): New function.
7775 (syms_of_character): Defsubr Fget_byte.
7776
5fd15622
CY
77772008-11-07 Chong Yidong <cyd@stupidchicken.com>
7778
7779 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
7780 cursor position is valid after scrolling.
7781
13d62fad
JB
77822008-11-06 Juanma Barranquero <lekktu@gmail.com>
7783
7784 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
7785
a1dd2936
GM
77862008-11-06 Glenn Morris <rgm@gnu.org>
7787
7788 * xterm.c (handle_one_xevent): Don't let popup menus cause
7789 mouse-autoselect-window related window switching. (Bug#1261)
7790
860cd236
CY
77912008-11-04 David Smith <davidsmith@acm.org> (tiny change)
7792
7793 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
7794
653a3150
AS
77952008-11-04 Andreas Schwab <schwab@suse.de>
7796
7797 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
7798
870f5cac
CY
77992008-11-03 Chong Yidong <cyd@stupidchicken.com>
7800
7801 * xfns.c (Fx_wm_set_size_hint): New function.
7802
1e02f3cb
MR
78032008-11-03 Martin Rudalics <rudalics@gmx.at>
7804
7805 * textprop.c (Fprevious_single_char_property_change): Return 0
7806 when there's no change in a string. (Bug#1301)
7807
e630dfc6
MR
78082008-11-02 Martin Rudalics <rudalics@gmx.at>
7809
7810 * frame.c (do_switch_frame): New argument NORECORD passed to
7811 Fselect_window.
7812 (Fselect_frame): New argument NORECORD passed to
7813 do_switch_frame.
7814 (Fset_frame_selected_window): New argument NORECORD passed to
7815 Fselect_frame.
7816 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
7817 in call of do_switch_frame.
7818 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
7819 Handle NORECORD argument in call of Fselect_frame.
7820 * lisp.h (do_switch_frame, Fselect_frame)
7821 (Fset_frame_selected_window): Adjust declarations.
7822 * window.c (select_frame_norecord): New function.
7823 (run_window_configuration_change_hook): Use it and call
7824 Fselect_frame with NORECORD set.
7825 (Fselect_window): Pass NORECORD to Fselect_frame.
7826 (Fset_window_configuration): Handle NORECORD argument in call of
7827 do_switch_frame.
7828 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
7829 Fset_frame_selected_window.
7830 * keyboard.c (command_loop_1): Handle NORECORD in call of
7831 Fselect_frame (currently ifdefd).
7832
9020b223
GM
78332008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
7834
7835 * emacs.c (USAGE2): Untabify.
7836
793ffee8
SM
78372008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
7838
7839 * composite.c (fill_gstring_header): Fix copy/paste typo.
7840
ab6d1131
MR
78412008-10-31 Martin Rudalics <rudalics@gmx.at>
7842
7843 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
7844 (Fother_window): Rename argument and rewrite doc-string.
7845 (select_window_norecord): Fix return value. (Bug#1276)
7846
601a9cf1
JB
78472008-10-30 Juanma Barranquero <lekktu@gmail.com>
7848
7849 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
7850 new frames overriding foreground for tooltips. Based on similar patch
7851 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
7852
813b0652
CY
78532008-10-29 Chong Yidong <cyd@stupidchicken.com>
7854
7855 * emacs.c (Fdaemon_initialized): Initialize nfd.
7856
4414f58f
MR
78572008-10-29 Martin Rudalics <rudalics@gmx.at>
7858
7859 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
7860 (Fwindow_text_height): Clarify doc-strings.
7861 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
7862 doc-string of window-scroll-functions.
7863
ecdcaa09
RS
78642008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
7865
7866 * category.c (syms_of_category): Fix typo in docstring.
7867
23fe745a
JB
78682008-10-28 Juanma Barranquero <lekktu@gmail.com>
7869
7870 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
7871 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
7872 Fix typos in docstrings.
7873
ff808935
DN
78742008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
7875
7876 * emacs.c (daemon_pipe): Make non-static.
7877 (IS_DAEMON): Move definition ...
7878 * lisp.h (IS_DAEMON): ... here.
7879 (daemon_pipe): Declare.
7880 (is_daemon): Remove.
7881 * dispnew.c (init_display): Use IS_DAEMON.
7882
fc012771
SM
78832008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
7884
7885 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
7886 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
7887
7888 * emacs.c (is_daemon): Remove.
7889 (main): Don't set is_daemon.
7890 (IS_DAEMON): New macro.
7891 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 7892 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
7893 parent exits.
7894 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
7895
d8bdbe6f
CY
78962008-10-27 Chong Yidong <cyd@stupidchicken.com>
7897
d1a072bf
CY
7898 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
7899 over-sized glyph, draw it with the default glyph width.
7900
e2e325aa
CY
7901 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
7902 glyph, draw it with the default glyph width.
7903
7904 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
7905 glyph, draw it with the default glyph width.
7906
d8bdbe6f
CY
7907 * xdisp.c (try_scrolling): When computing the distance from the
7908 scroll margin to PT, try moving some distance past the window
7909 bottom before giving up.
7910
7bfac547
MR
79112008-10-27 Martin Rudalics <rudalics@gmx.at>
7912
7913 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
7914 (Fset_window_buffer): Explain in doc-string that a window can be
7915 "strongly" dedicated to its buffer.
7916
4ff029f6
DN
79172008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
7918
7919 * emacs.c (daemon_name): New variable.
7920 (main): Deal with --daemon=SERVER_NAME.
7921 (Fdaemonp): Return a name if one was passed to --daemon.
7922
5790ef40
DN
79232008-10-26 Romain Francoise <romain@orebokech.com>
7924
f9bd0df9 7925 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
7926 (main): Create a pipe before forking, make the parent exit only after
7927 the child has closed its end of the pipe. Move closing the
7928 descriptors ...
7929 (Fdaemon_initialized): ... here. New function.
7930
f5385255
SM
79312008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
7932
4d632321
SM
7933 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
7934 the previous unoptimized table.
7935
f5385255
SM
7936 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
7937 the distinction between non-nil and non-t value of `dedicated'.
7938
6c56a0f3
CY
79392008-10-25 Chong Yidong <cyd@stupidchicken.com>
7940
7941 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 7942 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 7943
fec89261
MR
79442008-10-25 Martin Rudalics <rudalics@gmx.at>
7945
7946 * window.c (Fget_buffer_window, Fdelete_windows_on)
7947 (Freplace_buffer_in_windows): Make buffer argument optional and
7948 rename to buffer_or_name.
7949
34fcddd0
CY
79502008-10-24 Chong Yidong <cyd@stupidchicken.com>
7951
f5385255
SM
7952 * xdisp.c (handle_single_display_spec, handle_display_prop):
7953 Undo 2005-05-16 change.
34fcddd0
CY
7954 (handle_stop): Pop iterator if it's loaded with an empty string.
7955 (get_overlay_strings_1): Don't save iterator if it's loaded with
7956 an empty string (bug#1201).
7957
064766f2
KH
79582008-10-24 Kenichi Handa <handa@m17n.org>
7959
7960 * ftfont.c (ftfont_otf_features): Fix previous change.
7961 (ftfont_otf_capability): Check FeatureList.FeatureCount before
7962 calling ftfont_otf_features.
7963
f9bd0df9 79642008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
7965
7966 * font.c (font_match_p): Fix for the case that a vector of
7967 characters is in script-representative-chars.
7968
1dae9197
MA
79692008-10-24 Michael Albinus <michael.albinus@gmx.de>
7970
7971 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 7972 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
7973 (xd_read_queued_messages): Catch Qdbus_error from the macros.
7974 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 7975 macro. (Bug#1186)
1dae9197 7976
f9bd0df9 79772008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
7978
7979 * s/sol2-10.h: New file.
7980
878a4584
JB
79812008-10-23 Juanma Barranquero <lekktu@gmail.com>
7982
7983 * xdisp.c (fill_glyph_string): Fix typo in source (though the
7984 poor beast has survived 9+ years and the jump from xterm.c!).
7985
cd265ca6
MR
79862008-10-23 Martin Rudalics <rudalics@gmx.at>
7987
7988 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
7989 Reword doc-string.
f5385255 7990 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 7991
472a4dc9
JB
79922008-10-23 Juanma Barranquero <lekktu@gmail.com>
7993
7994 * character.c (syms_of_character) <script-representative-chars>:
7995 <unicode-category-table>: Doc fixes.
7996
159bd5a2
NF
79972008-10-23 Noah Friedman <friedman@splode.com>
7998
7999 * coding.c (make_conversion_work_buffer): Check that
8000 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
8001 Fget_buffer_create.
8002
49f9c344
KH
80032008-10-23 Kenichi Handa <handa@m17n.org>
8004
8005 * font.c (font_add_log): Check the values of extra properties.
8006
12bb3111
MR
80072008-10-22 Martin Rudalics <rudalics@gmx.at>
8008
8009 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
8010 Reword doc-string.
8011 (Fset_window_parameter): Use NILP.
8012 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 8013 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 8014
bbeb4e99
JB
80152008-10-22 Juanma Barranquero <lekktu@gmail.com>
8016
8017 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
8018
80192008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
8020
8021 * nsfns.m (ns_appkit_version): New function.
8022 (x-server-version): Use it.
8023 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
8024 (x-server-vendor): Don't check_ns().
8025
8026 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
8027
a9b555d3
JB
80282008-10-22 Juanma Barranquero <lekktu@gmail.com>
8029
8030 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
8031 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
8032
4626499f
KH
80332008-10-22 Kenichi Handa <handa@m17n.org>
8034
e3681952
KH
8035 * syntax.c (scan_words): Call word_boundary_p instead of comparing
8036 scripts.
8037
4626499f
KH
8038 * category.c (word_boundary_p): Check scripts instead of charset.
8039 Handle nil value in word-separating-categories and
8040 word-combining-categories.
8041 (syms_of_category): Fix docstrings of word-separating-categories
8042 and word-combining-categories.
8043
1560f91a
EZ
80442008-10-21 Eli Zaretskii <eliz@gnu.org>
8045
8046 * coding.c (Fencode_coding_region, Fdecode_coding_region)
8047 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
8048
f4668441
MR
80492008-10-21 Martin Rudalics <rudalics@gmx.at>
8050
8051 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
8052 Rename arg "buffer" to "buffer_or_name".
8053 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
8054 it optional.
8055 (no_switch_window): Remove since the return value is not used.
a9b555d3 8056 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
8057 Consider window as dedicated when Fwindow_dedicated_p returns a
8058 non-nil value.
8059 * lisp.h: Remove prototype for no_switch_window.
8060
fd75ddb2
JD
80612008-10-21 Jan Djärv <jan.h.d@swipnet.se>
8062
8063 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 8064 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 8065
07295713
KH
80662008-10-21 Kenichi Handa <handa@m17n.org>
8067
8068 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
8069 check Vlatin_extra_code_table.
8070
712adc82
EZ
80712008-10-20 Eli Zaretskii <eliz@gnu.org>
8072
8073 * fileio.c (Fset_file_modes): Doc fix.
8074
f549eb0b
MA
80752008-10-19 Michael Albinus <michael.albinus@gmx.de>
8076
8077 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
8078 in arrays.
8079
aac0c6e3
MR
80802008-10-19 Martin Rudalics <rudalics@gmx.at>
8081
8082 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
8083 Mention kill-buffer in doc-string.
8084 (Fset_window_buffer): Reinsert tem check removed in last commit.
8085 (Fenlarge_window, Fshrink_window): Have argument names and
8086 doc-string follow Elisp manual more closely.
8087
80882008-10-18 Eli Zaretskii <eliz@gnu.org>
8089
8090 * fileio.c (Fset_file_modes): Doc fix.
8091
80922008-10-18 Martin Rudalics <rudalics@gmx.at>
8093
8094 * window.c (Fwindow_width, Fset_window_start)
8095 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
8096 (Fdelete_windows_on, Freplace_buffer_in_windows):
8097 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
8098 (Fwindow_dedicated_p): Make window argument optional.
8099 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
8100 (Fset_window_buffer): Respect any non-nil dedicated value for
8101 window. Rename "buffer" argument to "buffer_or_name".
8102
81032008-10-18 Ulrich Mueller <ulm@gentoo.org>
8104
8105 * m/sh3.h: New file, machine description for SuperH.
8106
81072008-10-17 Martin Rudalics <rudalics@gmx.at>
8108
8109 * window.c (Fsplit_window): Rename arg horflag to horizontal.
8110
81112008-10-17 Kenichi Handa <handa@m17n.org>
8112
8113 * ftfont.c (ftfont_otf_features): Fix indexing
8114 gsub_gpos->FeatureList.Feature. Check the validity of indices.
8115
81162008-10-16 Magnus Henoch <mange@freemail.hu>
8117
8118 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
8119 (Fdbus_call_method_asynchronously): Ditto.
8120 This change makes C-h f display the argument list.
8121
81222008-10-16 Chong Yidong <cyd@stupidchicken.com>
8123
8124 * fileio.c (Fexpand_file_name): Doc fix.
8125
8126 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
8127 of :foreground and :background equivalent to unspecified (20.x
8128 compatibility).
8129
81302008-10-15 Eli Zaretskii <eliz@gnu.org>
8131
8132 * buffer.c (syms_of_buffer): Doc fix.
8133
81342008-10-14 Kenichi Handa <handa@m17n.org>
8135
8136 * font.c (font_clear_prop): When clearing font width, clear the
8137 average width field too.
8138
81392008-10-12 Andreas Schwab <schwab@suse.de>
8140
8141 * ftfont.c (ftfont_shape_by_flt): Make static.
8142 * ftfont.h (ftfont_shape_by_flt): Don't declare.
8143
8144 * font.c: Don't include <m17n-flt.h>.
8145
81462008-10-10 Eli Zaretskii <eliz@gnu.org>
8147
8148 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
8149
81502008-10-09 Eli Zaretskii <eliz@gnu.org>
8151
8152 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
8153 away code.
8154
81552008-10-09 Chong Yidong <cyd@stupidchicken.com>
8156
8157 * dispnew.c (update_text_area): Avoid looping due to large glyph
8158 overhangs (bug#1070).
8159
81602008-10-09 Kenichi Handa <handa@m17n.org>
8161
8162 * fontset.c (face_for_char): If face->fontset is negative, just
8163 return ascii_face.
8164
f5385255
SM
8165 * font.c (font_delete_unmatched): Fix previous change.
8166 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
8167
81682008-10-09 Martin Rudalics <rudalics@gmx.at>
8169
8170 * frame.c (Fraise_frame): On text-only terminals select frame in
8171 order to make it visible. (Bug#1061)
8172
81732008-10-08 Chong Yidong <cyd@stupidchicken.com>
8174
8175 * fontset.c (fontset_find_font): Check frame validity.
8176
81772008-10-07 Chong Yidong <cyd@stupidchicken.com>
8178
a9b555d3 8179 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
8180 (xg_display_close): Allow Emacs to close all displays (bug#985).
8181
81822008-10-06 Andreas Schwab <schwab@suse.de>
8183
f5385255 8184 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
8185
81862008-10-06 Chong Yidong <cyd@stupidchicken.com>
8187
f5385255 8188 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 8189
a9b555d3 8190 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
8191
8192 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
8193 during initialization.
8194
81952008-10-04 Eli Zaretskii <eliz@gnu.org>
8196
8197 * xdisp.c (redisplay_internal): If frame switched, redisplay the
8198 whole thing on MSDOS frames as well as on a TTY.
8199
8200 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
8201 well as for TTY.
8202 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
8203 well as on a TTY.
8204
8205 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
8206 as well as for TTY.
8207
8208 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
8209
8210 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
8211 MSDOS frames as well.
8212
82132008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
8214
8215 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
8216 correct arguments.
b71ac3dd 8217 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
8218
82192008-10-03 Glenn Morris <rgm@gnu.org>
8220
8221 * emacs.c (USAGE1): Add --daemon.
8222
82232008-10-02 Eli Zaretskii <eliz@gnu.org>
8224
8225 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
8226 100, so it's in percents as advertised.
8227
82282008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
8229
8230 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
8231 (ns_output.current_cursor, ns_output.desired_cursor)
8232 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
8233 (FRAME_NEW_CURSOR_COLOR): Remove.
8234
8235 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 8236 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
8237 enumeration (HOLLOW_BOX_CURSOR, etc.).
8238
8239 * nsterm.m (ns_frame_rehighlight): Remove commented code.
8240 (draw_window_cursor): Simplify code.
f5385255
SM
8241 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
8242 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 8243 updates manually.
a9b555d3
JB
8244 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
8245 Use core Emacs cursor types.
aac0c6e3 8246
b8ff72fa 8247 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
8248
82492008-10-02 Martin Rudalics <rudalics@gmx.at>
8250
8251 * process.c (Faccept_process_output): Fix doc-string.
8252
82532008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
8254
8255 * gmalloc.c (__sbrk): Also define for uClibc.
8256
8257 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
8258 for uClibc.
8259
82602008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8261
8262 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
8263 styles.
8264 (nsfont_open): Reenable the cache.
8265
82662008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8267
8268 * font.c (font_matching_entity): Reflect ATTRS in font selection.
8269 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
8270
82712008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
8272
8273 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
8274 a suspended terminal.
8275
82762008-09-30 Michael Albinus <michael.albinus@gmx.de>
8277
8278 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
8279
82802008-09-30 Eli Zaretskii <eliz@gnu.org>
8281
8282 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
8283
82842008-09-30 Chong Yidong <cyd@stupidchicken.com>
8285
8286 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
8287 in a continued line coincides with a line beginning.
8288
82892008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
8290
8291 * nsfont.m (nsfont_trait_distance): Fix bug.
8292 (nsfont_list): Return a list rather than a vector (syncs with Handa
8293 changes of 2008-05-14).
8294 (nsfont_open): Improve logging.
8295
82962008-09-29 Andreas Schwab <schwab@suse.de>
8297
8298 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
8299
83002008-09-28 Martin Rudalics <rudalics@gmx.at>
8301
8302 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
8303 name as char-resolve-modifiers.
8304 Reported by: Markus Triska <markus.triska@gmx.at>
8305
83062008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
8307
8308 * dispnew.c (init_display): Return earlier when running as a daemon.
8309
83102008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8311
8312 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
8313
83142008-09-27 Eli Zaretskii <eliz@gnu.org>
8315
8316 * composite.c (Fcomposition_get_gstring)
8317 (Fcompose_region_internal, Fcompose_string_internal)
8318 (Ffind_composition_internal): Doc fix.
8319 (syms_of_composite) <compose-chars-after-function>: Doc fix.
8320 (syms_of_composite) <auto-composition-function>: Doc fix.
8321 (syms_of_composite) <composition-function-table>: Doc fix.
8322
83232008-09-25 Chong Yidong <cyd@stupidchicken.com>
8324
8325 * search.c (wordify): New argument for lax word-ends.
8326 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
8327
83282008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
8329
8330 * lisp.h (is_daemon): Declare.
8331 * dispnew.c (init_display): Do not try to initialize the terminal
8332 when running as a daemon.
8333
83342008-09-22 Chong Yidong <cyd@stupidchicken.com>
8335
8336 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
8337 x_display_pixel_height.
8338
83392008-09-22 Martin Rudalics <rudalics@gmx.at>
8340
8341 * undo.c (record_point): Don't call Fundo_boundary for first
8342 change. (Bug#731)
8343
83442008-09-22 Juanma Barranquero <lekktu@gmail.com>
8345
8346 * emacs.c (Fdaemonp): Doc fix.
8347
83482008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
8349
8350 * emacs.c (main): Place #ifdef in the proper place.
8351
83522008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
8353
8354 * emacs.c (standard_args): Add --daemon.
8355 (main): Disconnect from the terminal when --daemon is passed.
8356 (is_daemon): New variable.
8357 (Fdaemonp): New function.
8358 (syms_of_emacs): Defsubr it.
8359
83602008-09-20 Chong Yidong <cyd@stupidchicken.com>
8361
8362 * xdisp.c (get_next_display_element): Handle string display
8363 correctly when checking for the end of a box run.
8364
83652008-09-20 Glenn Morris <rgm@gnu.org>
8366
8367 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
8368 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
8369 (Frename_file): Avoid copying to trash if a rename involves
8370 a delete. (Bug#964).
8371
83722008-09-20 Eli Zaretskii <eliz@gnu.org>
8373
8374 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
8375 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
8376 frames as well as termcap frames.
8377 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
8378 get_named_tty.
8379
83802008-09-19 Eli Zaretskii <eliz@gnu.org>
8381
8382 * process.c (procfs_system_process_attributes): Fix cmdline in
8383 case /proc/PID/cmdline is empty.
8384
8385 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
8386 x_display_pixel_height.
8387
83882008-09-19 Juanma Barranquero <lekktu@gmail.com>
8389
8390 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
8391
8392 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
8393 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
8394
83952008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
8396
8397 * dispextern.h (struct it): Move line_wrap away from the middle of
8398 bitfields. Move voffset in struct iterator_stack_entry after the
8399 bitfields. Move tab_width near after another short.
8400
84012008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
8402
8403 * frame.h (struct frame): Move alpha from the middle of bitfields.
8404
8405 * window.h (struct window): Move frozen_window_start_p after the
8406 rest of the bitfields to reduce padding.
8407
84082008-09-18 Chong Yidong <cyd@stupidchicken.com>
8409
8410 * xterm.h (x_display_info): Remove `height' and `width' members.
8411
8412 * nsterm.h (ns_display_info): Remove `height' and `width' members.
8413
8414 * w32term.h (w32_display_info): Remove `height', `width',
8415 `height_in', and `width_in' members.
8416
b8ff72fa
SM
8417 * xterm.c (x_display_pixel_height, x_display_pixel_width):
8418 New functions.
aac0c6e3
MR
8419 (x_calc_absolute_position): Use them.
8420 (x_term_init): Omit removed `height' and `width' members.
8421
b8ff72fa
SM
8422 * w32term.c (x_display_pixel_height, x_display_pixel_width):
8423 New functions.
aac0c6e3
MR
8424 (w32_read_socket, x_calc_absolute_position): Use them.
8425 (w32_initialize_display_info, w32_term_init): Omit removed members
8426 of w32_display_info.
8427
b8ff72fa
SM
8428 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
8429 New functions.
8430 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 8431
b8ff72fa
SM
8432 * xterm.c (x_display_pixel_height, x_display_pixel_width):
8433 New functions.
aac0c6e3
MR
8434 (x_calc_absolute_position): Use them.
8435 (x_term_init): Omit removed `height' and `width' members.
8436
8437 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
8438 (compute_tip_xy):
8439 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
8440 * xmenu.c (menu_position_func): Use x_display_pixel_height and
8441 x_display_pixel_width.
8442
84432008-09-18 Kenichi Handa <handa@m17n.org>
8444
8445 * composite.c (fill_gstring_header): Don't check FROM and TO here.
8446 (composition_compute_stop_pos): Fix handling of static composition.
8447 (Fcomposition_get_gstring): Check FROM and TO at first.
8448
84492008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
8450
46e722a9 8451 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
8452 mixup (YAILOM).
8453
84542008-09-17 Chong Yidong <cyd@stupidchicken.com>
8455
8456 * indent.c (Fvertical_motion): Use position reported by iterator
8457 instead of PT for determining screen motion (bug#943).
8458
84592008-09-17 Romain Francoise <romain@orebokech.com>
8460
8461 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
8462
84632008-09-17 Kenichi Handa <handa@m17n.org>
8464
8465 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
8466
8467 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
8468 if necessary.
8469
84702008-09-16 Kenichi Handa <handa@m17n.org>
8471
8472 * coding.c (make_conversion_work_buffer): Avoid calling
8473 Fget_buffer_create if it is not necessary.
8474
84752008-09-15 Martin Rudalics <rudalics@gmx.at>
8476
8477 * window.c (Fselect_window): Don't update window_select_count and
8478 use_time when norecord is not nil.
8479
84802008-09-14 Kenichi Handa <handa@m17n.org>
8481
8482 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
8483 specpdl_ptr.
8484
84852008-09-12 Kenichi Handa <handa@m17n.org>
8486
8487 * indent.c (scan_for_column): Don't handle automatic composition
8488 if the current buffer is not associated with a window.
8489
8490 * composite.c (composition_reseat_it): If the current buffer is
8491 not associated with a window, ignore the automatic composition.
8492 (find_automatic_composition): Likewise.
8493
84942008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
8495
8496 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
8497 (Fgpm_mouse_stop): Use it.
8498 * termhooks.h (close_gpm): Declare.
8499 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
8500 connection if Gpm_GetEvent fails.
8501
8502 * window.c (set_window_buffer): Always preserve current-buffer.
8503
85042008-09-12 Glenn Morris <rgm@gnu.org>
8505
8506 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
8507
85082008-09-11 Glenn Morris <rgm@gnu.org>
8509
8510 * charset.c (charset-map-path): Doc fix.
8511
85122008-09-10 Kenichi Handa <handa@m17n.org>
8513
8514 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
8515
8516 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
8517 compose a grapheme cluster with the preceding base glyph.
8518
8519 * composite.c (composition_compute_stop_pos): Fix previous change.
8520 Reset cmp_it->id to -1 at first.
8521
85222008-09-10 Glenn Morris <rgm@gnu.org>
8523
8524 * Makefile.in (character.o, chartab.o): Fix config.h typo.
8525
85262008-09-09 Chong Yidong <cyd@stupidchicken.com>
8527
8528 * keyboard.c (read_key_sequence): Reapply translation maps when
8529 switching keyboards.
8530
85312008-09-09 Kenichi Handa <handa@m17n.org>
8532
8533 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
8534 characters.
8535
8536 * composite.c (FORWARD_CHAR): Fix calculation
8537 of (POSITION).pos_byte.
8538 (composition_compute_stop_pos): Limit the search of composition to
8539 at most 500 characters ahead. If we reach the limit or find a
8540 newline, set cmp_it->ch to -2 and return 0.
8541 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
8542
85432008-09-08 Kenichi Handa <handa@m17n.org>
8544
8545 * indent.c (Fvertical_motion): Be sure to set
8546 it_overshoot_expected if it.cmp_it.id is non-negative.
8547
85482008-09-07 Andreas Schwab <schwab@suse.de>
8549
8550 * callproc.c (Fcall_process): Don't hold references to string data
8551 across garbage collection. Move initialisation of new_argv down
8552 to avoid compiler bug.
8553
85542008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
8555
8556 * process.c (Fsystem_process_attributes): Doc fix.
8557
85582008-09-07 Chong Yidong <cyd@stupidchicken.com>
8559
8560 * callproc.c (Fcall_process): Canonicalize current directory name.
8561
8562 * xdisp.c (move_it_to): When moving by vpos, ensure that the
8563 iterator advances to the next line if the current line ends in a
8564 continued tab.
8565
85662008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
8567
8568 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
8569 member to point to cmp_from.
8570
8571 * xdisp.c: Doc fix for references to gidx data member.
8572
85732008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
8574
8575 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
8576
85772008-09-07 Kenichi Handa <handa@m17n.org>
8578
8579 * composite.c (FORWARD_CHAR): Check STOP after
8580 incrementing (POSITION).pos.
8581
85822008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
8583
8584 * process.c (Fsystem_process_attributes): Doc fix.
8585
85862008-09-06 Chong Yidong <cyd@stupidchicken.com>
8587
8588 * keyboard.c (Ftop_level): Doc fix.
8589
85902008-09-06 Eli Zaretskii <eliz@gnu.org>
8591
8592 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
8593 minibuffer, don't let lower part of menu invade the echo area.
8594
8595 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
8596 "char *q" to access menu text and advance through it. Revert the
8597 change that displayed ">" instead of ASCII character 0x10.
8598
85992008-09-05 Eli Zaretskii <eliz@gnu.org>
8600
8601 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
8602 toggle boxes and radio buttons on MS-DOS as well.
8603
86042008-09-05 Kenichi Handa <handa@m17n.org>
8605
8606 * composite.c (autocmp_chars): Check lookback count.
8607 (composition_compute_stop_pos): Set cmp_it->lookback.
8608 (composition_reseat_it): Check lookback count.
8609 (struct position_record): New struct.
8610 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
8611 (find_automatic_composition): New function.
8612 (composition_adjust_point): Use find_automatic_composition.
8613
8614 * dispextern.h (struct composition_it): New member lookback.
8615
86162008-09-02 Chong Yidong <cyd@stupidchicken.com>
8617
8618 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
8619 if moving by a single line.
8620
86212008-09-02 Andreas Schwab <schwab@suse.de>
8622
8623 * xterm.c (x_delete_display): Fix merge error.
8624
8625 * fileio.c (Fexpand_file_name): Remove unused variables.
8626
86272008-09-02 Eli Zaretskii <eliz@gnu.org>
8628
8629 * fileio.c (Fexpand_file_name): Copy argument `name' into local
8630 storage on all platforms, not just on DOS_NT.
8631
86322008-09-02 Jason Rumney <jasonr@gnu.org>
8633
b8ff72fa
SM
8634 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
8635 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
8636
86372008-09-01 Chong Yidong <cyd@stupidchicken.com>
8638
8639 * xfaces.c (Finternal_set_alternative_font_family_alist)
8640 (Finternal_set_alternative_font_registry_alist): Properly copy
8641 entire alist structure.
8642
86432008-09-01 Kenichi Handa <handa@m17n.org>
8644
d66c0241 8645 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 8646 representative chars of the script is a vector.
d66c0241
JB
8647 (ftfont_list): Handle the case where the representative chars of
8648 the script is a vector.
aac0c6e3
MR
8649
8650 * character.c (syms_of_character): Docstring of
8651 script-representative-chars fixed.
8652
86532008-08-31 Eli Zaretskii <eliz@gnu.org>
8654
8655 * msdos.c (BUILD_CHAR_GLYPH): New macro.
8656 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
8657 the menu. Allocate larger buffer for `text', to account for
8658 possible ^C characters.
8659
86602008-08-31 Martin Rudalics <rudalics@gmx.at>
8661
8662 * xdisp.c (prepare_menu_bars): Don't call
8663 Vwindow_size_change_functions with arg Qt.
8664
86652008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
8666
8667 * font.h (font_range):
8668 * fileio.c (report_file_error):
46e722a9
SM
8669 * composite.c (composition_update_it): Yet another int/Lisp_Object
8670 mixup (YAILOM).
aac0c6e3
MR
8671
86722008-08-30 Glenn Morris <rgm@gnu.org>
8673
8674 * data.c (Fmake_variable_frame_local): Doc fix.
8675
8676 * frame.c (Fmodify_frame_parameters): Doc fix.
8677
86782008-08-30 Eli Zaretskii <eliz@gnu.org>
8679
8680 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
8681 needed by GetTokenInformation.
8682 (w32_system_process_attributes): Check return values of all system
8683 APIs.
8684
8685 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
8686 only when the state changes.
8687 (IT_update_begin, IT_update_end): Add termscript trace.
8688
8689 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
8690 clipboard is unavailable. Set dst to NULL if it doesn't point to
8691 malloc'ed data.
8692 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
8693 passing random values to xfree.
8694
8695 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 8696 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
8697
86982008-08-29 Jason Rumney <jasonr@gnu.org>
8699
8700 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
8701
87022008-08-29 Eli Zaretskii <eliz@gnu.org>
8703
8704 * composite.c (fill_gstring_body): Avoid compiler warnings.
8705
8706 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
8707 LGLYPH_SET_CODE to avoid compiler warnings.
8708
2ae37cf0 8709 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
8710
8711 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
8712
8713 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
8714 LGLYPH_SET_CODE.
8715
87162008-08-29 Kenichi Handa <handa@m17n.org>
8717
8718 * fileio.c (report_file_error): Don't downcase the first character
8719 of errstring if it is still unibyte.
8720
87212008-08-29 Kenichi Handa <handa@m17n.org>
8722
8723 These changes are to re-implement the automatic composition so
8724 that it doesn't use text properties.
8725
8726 * Makefile.in (ftfont.o): Depend on composite.h.
8727 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
8728
8729 * character.h (Vunicode_category_table): Extern it.
8730
8731 * character.c (Vunicode_category_table): New variable.
8732 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
8733
8734 * chartab.c (optimize_sub_char_table): Perform more greedy
8735 optimization.
8736
b8ff72fa
SM
8737 * composite.h (enum composition_method):
8738 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
8739 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
8740 (Vcomposition_function_table): Extern it.
8741 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
8742 (composition_gstring_put_cache, composition_gstring_from_id)
8743 (composition_gstring_p, composition_gstring_width)
8744 (composition_compute_stop_pos, composition_reseat_it)
8745 (composition_update_it, composition_adjust_point): Extern them.
8746 (Fcomposition_get_gstring): EXFUN it.
8747
d66c0241 8748 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
8749 (Vcomposition_function_table)
8750 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
8751 (gstring_hash_table, gstring_work, gstring_work_headers):
8752 New variables.
aac0c6e3
MR
8753 (gstring_lookup_cache, composition_gstring_put_cache)
8754 (composition_gstring_from_id, composition_gstring_p)
8755 (composition_gstring_width, fill_gstring_header)
8756 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
8757 (composition_reseat_it, composition_update_it)
b8ff72fa 8758 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
8759 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
8760 and gstring_work_headers. DEFVAR_LISP composition-function-table.
8761 Defsubr compostion_get_gstring.
8762
8763 * dispextern.h (struct glyph): New union u.cmp. Delete the member
8764 cmp_id.
8765 (struct glyph_string): Delete the member gidx. New members
8766 cmp_id, cmp_from, and cmp_to.
8767 (enum it_method): Delete GET_FROM_COMPOSITION.
8768 (struct composition_it): New struct.
8769 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
8770 Delete c, len, cmp_id, cmp_len in u.comp.
8771
8772 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 8773 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 8774 (enum lglyph_indices): Likewise.
b8ff72fa 8775 (font_range): Adjust extern.
aac0c6e3
MR
8776 (font_fill_lglyph_metrics): Extern it.
8777
8778 * font.c (QCf): New variable.
8779 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
8780 (font_prepare_composition): Delete this function.
8781 (font_range): Type and arguments changed.
8782 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
8783 (font_fill_lglyph_metrics): New function.
b8ff72fa 8784 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 8785 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
8786 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
8787 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
8788
8789 * fontset.h (font_for_char): Extern it.
8790
8791 * fontset.c (font_for_char): New function.
8792
8793 * ftfont.c: Include composite.h.
8794 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 8795 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
8796
8797 * indent.c: Include composite.h and dispextern.h.
8798 (check_composition): Delete this function.
8799 (scan_for_column): Handle composition by
8800 composition_compute_stop_pos, composition_reseat_it, and
8801 composition_update_it.
8802 (compute_motion): Likewise.
8803 (Fvertical_motion): Fix checking of composition.
8804
8805 * keyboard.c (adjust_point_for_property): Check composition by
8806 composition_adjust_point.
8807
b8ff72fa 8808 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
8809 struct glyph_string.
8810
b8ff72fa
SM
8811 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
8812 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
8813 struct glyph.
8814 (produce_composite_glyph): Likewise.
8815
b8ff72fa
SM
8816 * w32term.c (x_draw_composite_glyph_string_foreground):
8817 Adjust for the change of struct glyph_string.
aac0c6e3
MR
8818 (x_draw_glyph_string): Likewise.
8819
8820 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
8821 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
8822
8823 * xdisp.c: Include font.h.
8824 (it_props): Delete the entry for Qauto_composed.
8825 (init_iterator): Initialize it->cmp_it.id to -1.
8826 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 8827 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
8828 (handle_auto_composed_prop): Delete it.
8829 (handle_composition_prop): Handle only static composition.
8830 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
8831 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 8832 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
8833 (pop_it): Likewise.
8834 (get_next_element): Delete next_element_from_composition.
8835 (CHAR_COMPOSED_P): New macro.
8836 (get_next_display_element): For automatic composition, get a face
8837 from the font in the glyph-string.
8838 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 8839 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
8840 (next_element_from_string): Check if the character at the current
8841 position is composed by CHAR_COMPOSED_P.
8842 (next_element_from_buffer): Likewise.
d66c0241
JB
8843 (next_element_from_composition): Adjust for the change of struct it.
8844 Update it->cmp_it.
b8ff72fa
SM
8845 (dump_glyph): Adjust for the change of struct glyph.
8846 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
8847 it and struct glyph. Don't handle automatic composition here.
8848 (fill_gstring_glyph_string): New function.
8849 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 8850 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
8851 (BUILD_GSTRING_GLYPH_STRING): New macro.
8852 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
8853 automatic composition.
b8ff72fa 8854 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 8855 struct glyph.
b8ff72fa 8856 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 8857
b8ff72fa 8858 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
8859 the change of struct glyph_string.
8860 (x_draw_glyph_string): Likewise.
8861
88622008-08-29 Glenn Morris <rgm@gnu.org>
8863
8864 * buffer.c (word-wrap): Doc fix.
8865 * xdisp.c (truncate-partial-width-windows): Doc fix.
8866 Increase default to 50.
8867
88682008-08-29 Chong Yidong <cyd@stupidchicken.com>
8869
8870 * xdisp.c (update_tool_bar_unwind): New function.
8871 (update_tool_bar): Temporarily set selected frame before building
8872 tool-bar items.
8873
88742008-08-28 Michael Albinus <michael.albinus@gmx.de>
8875
8876 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
8877 snprintf, respectively.
8878 (xd_append_arg): Convert strings with Fstring_make_unibyte.
8879
88802008-08-28 Chong Yidong <cyd@stupidchicken.com>
8881
8882 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
8883 LDFLAGS to GNUstep CC invocation.
8884
88852008-08-27 Chong Yidong <cyd@stupidchicken.com>
8886
8887 * indent.c (Fvertical_motion): Revert last change. Handle the
8888 general case where we are moving forward, and PT spans multiple
8889 screen lines.
8890
8891 * eval.c (find_handler_clause): Temporarily increase
8892 max-lisp-eval-depth while printing the backtrace buffer, to
8893 guarantee that help-mode code can run.
8894
88952008-08-27 Eli Zaretskii <eliz@gnu.org>
8896
8897 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
8898 colors under -rv.
8899 (IT_set_frame_parameters): Don't swap foreground and background
8900 colors if `(reverse . t)' is present in the frame properties.
8901 (internal_terminal_init): Call init_frame_faces only for the
8902 initial frame.
8903
89042008-08-27 Andreas Schwab <schwab@suse.de>
8905
8906 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
8907
89082008-08-27 Andreas Schwab <schwab@suse.de>
8909
8910 * search.c (search_buffer): Set char_base to zero only at the end.
8911
89122008-08-27 Kenichi Handa <handa@m17n.org>
8913
b8ff72fa 8914 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
8915
89162008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
8917
8918 * xterm.c (x_term_init): Temporarily hide the partially
8919 initialized terminal while calling vendor-specific-keysyms.
8920
89212008-08-26 Eli Zaretskii <eliz@gnu.org>
8922
8923 * msdos.c (internal_terminal_init): Most initializations done only
8924 once, especially initial_screen_colors[] and termscript open.
8925
89262008-08-26 Chong Yidong <cyd@stupidchicken.com>
8927
8928 * eval.c (Fcondition_case): Doc fix.
8929
8930 * widgetprv.h (EmacsFramePart): Change font member to the new font
8931 struct.
8932
8933 * widget.c: Include character.h and font.h for XSETFONT.
8934 (setup_frame_gcs): Compute X font id from font struct, just once.
8935
89362008-08-26 Eli Zaretskii <eliz@gnu.org>
8937
8938 * term.c (get_named_tty): Fix last change.
8939
89402008-08-26 Chong Yidong <cyd@stupidchicken.com>
8941
8942 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 8943 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
8944
89452008-08-25 Eli Zaretskii <eliz@gnu.org>
8946
8947 * frame.c (do_switch_frame): Mark previously displayed frame as
8948 obscured for FRAME_MSDOS_P frames as well.
8949
89502008-08-24 Eli Zaretskii <eliz@gnu.org>
8951
8952 * frame.c (make_terminal_frame): Initialize f->terminal,
8953 f->terminal->reference_count, and scroll bars on MS-DOS as well.
8954 Set the top frame to newly created frame.
8955 (Fmake_terminal_frame): Reuse the_only_display_info.
8956
8957 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
8958 estimating available memory.
8959
b97439ce 89602008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
8961
8962 * nsterm.m (ns_draw_window_cursor): Don't call
8963 NSDisableScreenUpdates and NSEnableScreenUpdates on
8964 non-NS_IMPL_COCOA systems.
8965
89662008-08-23 Andreas Schwab <schwab@suse.de>
8967
8968 * process.c (procfs_system_process_attributes): Fix use of
8969 uninitialized variables.
8970
89712008-08-23 Eli Zaretskii <eliz@gnu.org>
8972
8973 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
8974
8975 * dispnew.c (init_display): Remove MS-DOS specific conditions for
8976 calling tty-set-up-initial-frame-faces.
8977
b8ff72fa
SM
8978 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
8979 Allow MSDOS frames along with X frames.
aac0c6e3
MR
8980
8981 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
8982 addition to output_termcap.
8983
8984 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
8985
8986 * termchar.h (FRAME_TTY): Support output_msdos_raw.
8987 (struct tty_display_info) [MSDOS]: Add fields related to mouse
8988 highlight.
8989
8990 * process.c [!subprocesses]: Define QCname.
8991 (syms_of_process): Intern and staticpro it.
8992
8993 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
8994 Adjust for changes in encoding/decoding routines.
8995 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
8996 encode_coding and decode_coding.
8997
b8ff72fa 8998 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
8999
9000 * dosfns.c: Include frame.h before termhooks.h.
9001 (dos_cleanup): Use CURTTY ()->termscript instead of a global
9002 variable termscript.
9003
9004 * s/msdos.h (USER_FULL_NAME): Define.
9005 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
9006
9007 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
9008 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
9009 pw->pw_gecos.
9010
9011 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
9012 SELECTED_FRAME as additional (1st) argument.
9013 (tty_read_avail_input): Handle output_msdos_raw in
9014 addition to output_termcap.
9015
9016 * msdos.c: Include frame.h before termhooks.h.
9017 (mouse_on, mouse_off, mouse_moveto, mouse_init)
9018 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
9019 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
9020 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
9021 (IT_set_terminal_modes, IT_reset_terminal_modes)
9022 (IT_set_frame_parameters): Use tty->termscript instead of a global
9023 variable termscript.
9024 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
9025 global variable terminal_coding. Don't refer to
9026 Vnonascii_translation_table.
9027 (internal_terminal_init): Set Vwindow_system in current_kboard.
9028 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
9029 Announce date and time of session start, if termscript is open.
9030 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
9031 term.c:init_tty). Open termscript only of not already open.
9032 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
9033 here instead of dos_ttraw. Don't initialize display if this is an
9034 initial tty. Don't set FRAME_FONT.
9035 (Vwindow_system_version): Bump to 23.
9036 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
9037 is available, set up mouse_position_hook.
9038 (dos_ttraw, IT_set_terminal_modes): If called with initial
9039 terminal, do nothing.
9040 (IT_set_frame_parameters): Handle the Qtty_type frame
9041 parameter by calling internal_terminal_init.
9042 (dos_set_window_size, show_mouse_face)
9043 (clear_mouse_face, IT_note_mode_line_highlight)
9044 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
9045 (dos_rawgetc): Use tty_display_info instead of x_display_info.
9046 (initialize_msdos_display): New function.
9047 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
9048 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
9049 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
9050 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 9051 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
9052 (request_sigio, unrequest_sigio): Don't define, now defined on
9053 sysdep.c.
9054 (IT_write_glyphs): Rewrite to use encode_terminal_code.
9055
9056 * term.c [MSDOS]: Include msdos.h.
9057 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
9058 conditional to DOS_NT. Allow only one call to this function in a
9059 session. Don't allocate a new struct tty_display_info; instead,
9060 reuse the_only_display_info. Call get_tty_size to get screen
9061 dimensions. Call init_baud_rate to set bad_rate.
9062 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
9063 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 9064 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
9065 (get_tty_terminal, get_named_tty, Ftty_type)
9066 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
9067 output_termcap.
b8ff72fa
SM
9068 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
9069 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 9070 only when subprocesses are supported.
aac0c6e3
MR
9071
9072 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
9073 f->output_data.x.
9074 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
9075 terminal devices.
9076
5582fbc7 9077 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
9078 x_output.
9079 (FRAME_FONT): Use output_data.tty.
9080 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
9081 (struct x_display_info): Rename from display_info. Update all users in
9082 msdos.c.
aac0c6e3 9083 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 9084 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
9085 (dos_ttraw): Update prototype.
9086
9087 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
9088 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
9089
90902008-08-23 Jason Rumney <jasonr@gnu.org>
9091
9092 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
9093 (fn_TIFFSetDirectory): New library function used.
9094 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
9095 (tiff_load): Use :index to select among multiple images. Set count
9096 property when multiple images exist.
9097 (gif_format): Use :index, not :image.
9098
90992008-08-23 Chong Yidong <cyd@stupidchicken.com>
9100
9101 * xdisp.c (try_scrolling): Check INT_MAX instead of
9102 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
9103 to obtain INT_MAX.
9104
91052008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
9106
9107 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
9108
91092008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
9110
9111 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
9112 GNUstep library location.
9113
91142008-08-21 Chong Yidong <cyd@stupidchicken.com>
9115
9116 * xfaces.c (x_update_menu_appearance): Check validity of menu font
9117 before using it.
9118
9119 * puresize.h (BASE_PURESIZE): Increase to 1250000.
9120
91212008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9122
9123 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
9124 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
9125 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
9126 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
9127 (EmacsApp-cursor_blink_handler): Remove declaration.
9128 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
9129 match 01 Feb 2008 changes in xterm.c.
9130 (ns_read_socket): Add cast to avoid warning.
9131 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
9132 GNUstep.
9133
91342008-08-20 Chong Yidong <cyd@stupidchicken.com>
9135
9136 * xselect.c (x_get_foreign_selection): Return nil if desired
9137 selection could not be obtained, instead of signalling an error.
9138
91392008-08-20 David Reitter <david.reitter@gmail.com>
9140
9141 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
9142 * nsterm.m: Remove ns-specific code for cursor blinking.
9143 (ns_draw_window_cursor): Clear cursor properly rather than
9144 redrawing the area. Respect width of bar cursors.
9145 These changes enable the use of generic blink-cursor-mode and
9146 generic cursor types in NS and support smooth cursor movements (do
9147 not blink off after command).
9148 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
9149 Nextstep, too.
9150
91512008-08-19 Kenichi Handa <handa@m17n.org>
9152
9153 * font.c (Vfont_log_deferred): New variable.
9154 (font_add_log): Check Vfont_log_deferred.
9155 (font_deferred_log): New function.
9156
9157 * font.h (font_deferred_log): Extern it.
9158
9159 * fontset.c (reorder_font_vector): Use encoding charset of fonts
9160 for sorting.
9161 (face_for_char): Use deferred log.
9162
91632008-08-18 Kenichi Handa <handa@m17n.org>
9164
9165 * fontset.c (face_for_char): Add font log.
9166
9167 * font.c (font_add_log): Add the font properties :script, :lang,
9168 and :otf in the log.
9169
91702008-08-17 Chong Yidong <cyd@stupidchicken.com>
9171
9172 * xdisp.c: Remove dead code.
9173 (handle_invisible_prop, next_overlay_string): Defer call to
9174 setup_for_ellipsis.
9175 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
9176
91772008-08-15 Chong Yidong <cyd@stupidchicken.com>
9178
9179 * xfaces.c (lookup_derived_face): Properly handle possible zero
9180 return value of get_lface_attributes.
9181 (merge_faces): Don't tell lookup_derived_face to signal an error
9182 if face is not found.
9183
9184 * dired.c (Fdirectory_files): Doc fix.
9185
9186 * process.c (make_process): Initialize kill_without_query struct
9187 member.
9188
91892008-08-15 Eli Zaretskii <eliz@gnu.org>
9190
9191 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
9192 Alternative calculation of totphys for Visual Studio 6.
9193
9194 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
9195
9196 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
9197 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
9198 All users changed.
9199 (stat): Only root directory passed to GetDriveType. Allow RAM
9200 disk as well as local fixed disk when w32-get-true-file-attributes
9201 is set to `local'.
9202 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
9203 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
9204 (w32_cached_id, w32_add_to_cache): New functions.
9205 (get_name_and_id): Look account names in the cache before calling
9206 lookup_account_sid.
9207 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
9208 New initialization flags.
9209 (globals_of_w32): Initialize them to zero.
9210 (w32_system_process_attributes): Use w32_cached_id and
9211 w32_add_to_cache.
9212
92132008-08-14 Lawrence Mitchell <wence@gmx.li>
9214
9215 * lread.c (Fread_char, Fread_char_exclusive): If no character
9216 event is read before timeout is reached, return nil, rather than
9217 converting to a number.
9218
92192008-08-14 Chong Yidong <cyd@stupidchicken.com>
9220
9221 * fns.c (use_dialog_box): Doc fix.
9222
9223 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
9224 on OS X.
9225
92262008-08-13 Chong Yidong <cyd@stupidchicken.com>
9227
9228 * frame.c (Qns_parse_geometry): New var.
9229 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
9230
92312008-08-11 Chong Yidong <cyd@stupidchicken.com>
9232
9233 * xdisp.c (x_produce_glyphs): Handle the case when font has no
9234 space character in calculating tabs.
9235
92362008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
9237
9238 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
9239
92402008-08-10 Glenn Morris <rgm@gnu.org>
9241
9242 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
9243 silence gcc "limited range of data type" warnings in some
9244 make_fixnum_or_float calls.
9245
92462008-08-09 Eli Zaretskii <eliz@gnu.org>
9247
9248 * w32.c (w32_system_process_attributes): If the process does not
9249 exist, return nil.
9250
9251 * w32.c: Include thelp32.h, psapi.h and coding.h.
9252 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
9253 declarations.
9254 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
9255 (Process32Next_Proc): New typedefs.
9256 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
9257 (g_b_init_process32_next, g_b_init_open_thread_token)
9258 (g_b_init_impersonate_self, g_b_init_revert_to_self)
9259 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
9260 (g_b_init_get_process_working_set_size)
9261 (g_b_init_global_memory_status_ex): New static variables.
9262 (globals_of_w32): Initialize them.
9263 (create_toolhelp32_snapshot, process32_first, process32_next)
9264 (open_thread_token, impersonate_self, revert_to_self)
9265 (get_process_memory_info, get_process_working_set_size)
9266 (global_memory_status, global_memory_status_ex): New wrapper
9267 functions.
9268 (w32_list_system_processes, w32_system_process_attributes)
9269 (enable_privilege, restore_privilege, ltime, process_times):
9270 New functions.
9271 (convert_time_raw): New function.
9272 (convert_time): Remove conversion of FILETIME into time in 100
9273 nsec units, call convert_time_raw instead.
9274
9275 * process.h (w32_list_system_processes, w32_system_process_attributes):
9276 Add prototypes.
9277 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
9278 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
9279 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
9280 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
9281
9282 * process.c (Fsystem_process_attributes): Doc fix.
9283
92842008-08-08 Chong Yidong <cyd@stupidchicken.com>
9285
9286 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
9287 a continued multi-char glyph; if so, advance to the actual glyph.
9288
92892008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
9290
9291 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
9292
9293 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
9294 (.m.o): Use it.
9295 * config.in: Regenerate.
9296
92972008-08-07 Chong Yidong <cyd@stupidchicken.com>
9298
9299 * xdisp.c (redisplay_window): Revert last change.
9300 (try_window): Check bottom scroll margin too.
9301
93022008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9303
9304 * config.in: Regenerate.
9305
9306 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
9307 -list-load-path-shadows'.
9308 (nsgui.h): Reduce number of things depending on it.
9309
93102008-08-06 Chong Yidong <cyd@stupidchicken.com>
9311
9312 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
9313 instead of window-end which does the wrong thing at eob.
9314 (try_cursor_movement): Minor optimization.
9315 (redisplay_window): If scroll margin is defined, don't assume
9316 window doesn't need scrolling.
9317
93182008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9319
9320 * config.in: Regenerate.
9321
9322 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
9323 (mostlyclean): Don't delete *.d under NS.
9324
9325 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
9326
93272008-08-06 Kenichi Handa <handa@m17n.org>
9328
9329 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
9330
93312008-08-06 Andreas Schwab <schwab@suse.de>
9332
9333 * config.in: Regenerate.
9334
93352008-08-05 Chong Yidong <cyd@stupidchicken.com>
9336
9337 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
9338 forcing a window start.
9339
9340 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
9341 (auto_save_1): Update modtime when auto-save-list-file-name is on.
9342
93432008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9344
9345 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
9346 argument.
9347
93482008-08-05 Juanma Barranquero <lekktu@gmail.com>
9349
9350 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
9351 <scroll-down-aggressively, before-change-functions>:
9352 <after-change-functions>: Reflow docstrings.
9353
93542008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4e2af782 9355 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
9356
9357 Dock menu customization, based on a patch by Ken Raeburn, plus some
9358 other fixes.
9359 * nsmenu.m (dockMenu): New variable.
9360 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
9361
9362 * nsterm.h (dockMenu): Declare.
9363
9364 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
9365 (ns_term_init): Initialize dockMenu.
9366 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
9367 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
9368 left.
9369
9370 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
9371
93722008-08-04 Chong Yidong <cyd@stupidchicken.com>
9373
9374 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
9375
9376 * config.in: Regenerate.
9377
93782008-08-04 Seiji Zenitani <zenitani@mac.com>
9379
9380 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
9381
93822008-08-04 Chong Yidong <cyd@stupidchicken.com>
9383
9384 * nsterm.h (find_and_call_menu_selection): Fix prototype.
9385
93862008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9387
9388 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
9389
9390 * keyboard.h: Comment an #endif.
9391
9392 * lisp.h (have_menus_p): Adjust comment.
9393
9394 * menu.c (find_and_return_menu_selection): Fix comparison with
9395 client_data.
9396
9397 * nsmenu.m (popup_activated_flag): New variable.
9398 (popup_activated): New function.
9399 (menu-or-popup-active-p): New exported lisp definition.
9400 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
9401 when popup done.
9402 (ns_popup_dialog): Set popup_activated_flag.
9403
9404 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
9405 version for GNUstep (handled by conditional typedef in nsterm.m).
9406 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
9407 in rgb.txt).
9408
9409 * process.c (init_process): Use DARWIN_OS, not DARWIN.
9410
9411 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
9412
9413 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
9414
9415 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
9416 shortcircuit if popup_activated like GTK and X toolkit.
9417
9418 * m/inter386.h: Change DARWIN to DARWIN_OS.
9419
9420 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
9421 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
9422 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
9423 comment on NO_SOCK_SIGIO.
9424
94252008-08-03 Chong Yidong <cyd@stupidchicken.com>
9426
9427 * nsterm.m (windowDidResize): Remove stopModal call.
9428
94292008-08-03 Andreas Schwab <schwab@suse.de>
9430
9431 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
9432 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
9433
94342008-08-02 Chong Yidong <cyd@stupidchicken.com>
9435
9436 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
9437 Don't use uninitialized pointer variable when using getrlimit.
9438
94392008-08-02 Jason Rumney <jasonr@gnu.org>
9440
9441 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
9442
94432008-08-02 Eli Zaretskii <eliz@gnu.org>
9444
9445 * alloc.c (NSTATICS): Bump to 0x640.
9446
9447 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
9448
9449 * lisp.h: Add prototype for directory_files_internal.
9450
9451 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
9452 New functions.
9453 (syms_of_process): Defsubr them. Add initializations for various
9454 Q* symbols used in procfs_system_process_attributes.
9455 (procfs_list_system_processes, procfs_system_process_attributes)
9456 [HAVE_PROCFS]: New functions.
9457 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
9458 (procfs_get_total_memory): New functions.
9459
94602008-08-01 Juanma Barranquero <lekktu@gmail.com>
9461
9462 * xfaces.c (Fx_load_color_file): Fix previous change;
9463 it is #ifdef WINDOWSNT, not WINDOWS_NT.
9464
94652008-08-01 Michael Albinus <michael.albinus@gmx.de>
9466
9467 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
9468
94692008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9470
9471 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
9472
94732008-08-01 Chong Yidong <cyd@stupidchicken.com>
9474
9475 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
9476
9477 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
9478 define NSApplicationDelegateReplySuccess.
9479 (EmacsView -converstationIdentifier): Use long instead of
9480 NSInteger for GNUstep, since it doesn't have NSInteger.
9481
9482 * xmenu.c: Revert last change.
9483
9484 * keyboard.h: Fix last change.
9485
94862008-08-01 Juanma Barranquero <lekktu@gmail.com>
9487
9488 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
9489 on Windows.
9490
94912008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9492
9493 Warning clearing and clean-up in NS port.
9494 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
9495 Add prototypes.
9496 * nsgui.h (FACE_DEFAULT): Remove, unused.
9497 (XGCValues): Change colors to unsigned long.
9498 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
9499 nsterm.m.
9500 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
9501 (ns_list_fonts): Remove, unused.
9502 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
9503 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
9504 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
9505 (nsfont_draw): Compare face colors to 0, not nil.
9506 * nsmenu.m (struct widget_value): Drop unneeded declaration.
9507 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
9508 (-addSubmenuWithTitle:): Use NSMenuItem class.
9509 (ns_popup_menu): Use NO, not NULL, for enabled setting.
9510 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
9511 (ns_clip_to_row): Make gc arg a BOOL.
9512 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
9513 ns_clip_to_row() call.
9514 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
9515 used). Cast FRAME_FONT assignments.
9516 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
9517 (ns_string_to_lispmod): Change arg to const char.
9518 (ns_term_init): Use NSMenuItem class.
9519 (EmacsApp -openFile:): Move to different section of file.
9520 (EmacsApp -application:openFiles:): Don't return a value, call
9521 -replyToOpenOrPrint:.
9522 (EmacsView -keyDown:): Fix up cast.
9523 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
9524 (EmacsView -menuDown:): Cast tag in call to
9525 find_and_call_menu_selection().
9526 (ns_list_fonts): Remove, unused.
9527 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
9528 (ns_fontname_to_xlfd): Make static.
9529 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
9530 Remove prototypes (now in keyboard.h).
9531 (next_menubar_widget_id): Remove, unused.
9532 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
9533 Remove prototypes (now in keyboard.h).
9534 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
9535
95362008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
9537
9538 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
9539 (floatfns.o): Depend on syssignal.h.
9540 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
9541
9542 * systty.h: Fix previous change that removed BSD_TERMIOS.
9543 Add comments to #ifdefs.
9544
95452008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9546
9547 * w32fns.c (w32-load-color-file): Remove.
9548 (x-open-connection): Use renamed Fx_load_color_file.
9549 * xfaces.c (x-load-color-file): Add.
9550 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
9551 Emacs.clr.
9552 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
9553
95542008-07-31 Michael Albinus <michael.albinus@gmx.de>
9555
9556 * dbusbind.c (Fdbus_call_method_asynchronously)
9557 (Fdbus_method_error_internal): New defuns.
9558 (xd_read_message): Handle also reply messages.
9559 (Vdbus_registered_functions_table): Extend docstring.
9560
95612008-07-31 Juanma Barranquero <lekktu@gmail.com>
9562
9563 * keyboard.c (gobble_input): Fix previous change.
9564
95652008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
9566
9567 * bitmaps/README:
9568 * xfns.c:
9569 * termcap.c:
9570 * term.c:
9571 * syswait.h:
9572 * systty.h:
9573 * systime.h:
9574 * syssignal.h:
9575 * sysdep.c:
9576 * process.h:
9577 * process.c:
9578 * print.c:
9579 * ndir.h:
9580 * lread.c:
9581 * keyboard.c:
9582 * getpagesize.h:
9583 * floatfns.c:
9584 * fileio.c:
9585 * emacs.c:
9586 * doc.c:
9587 * dispnew.c:
9588 * dired.c:
9589 * data.c:
9590 * callproc.c:
9591 * buffer.c:
9592 * README:
9593 * Makefile.in:
9594 * s/template.h:
9595 * s/msdos.h:
9596 * m/vax.h: Remove VMS support.
9597 * s/vms.h:
9598 * vlimit.h:
9599 * uaf.h:
9600 * temacs.opt:
9601 * param.h:
9602 * ioctl.h: Remove file.
9603
96042008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
9605
9606 * s/ms-w32.h (MULTI_KBOARD): Remove.
9607 * xterm.c:
9608 * xselect.c:
9609 * xfns.c:
9610 * window.c:
9611 * w32term.c:
9612 * w32fns.c:
9613 * terminal.c:
9614 * termhooks.h:
9615 * term.c:
9616 * sysdep.c:
9617 * keyboard.h:
9618 * keyboard.c:
9619 * frame.h:
9620 * frame.c:
9621 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
9622 * config.in: Regenerate.
9623
96242008-07-30 Jason Rumney <jasonr@gnu.org>
9625
9626 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
9627
9628 * w32font.c (w32font_encode_char): Leave as unicode if in range.
9629 (w32font_open_internal): Get unicode version of textmetrics.
9630 Don't enable or disable glyph indices here.
9631 (w32font_open): Disable use of glyph indices.
9632
9633 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
9634
96352008-07-30 Chong Yidong <cyd@stupidchicken.com>
9636
9637 * minibuf.c (Vread_buffer_function): Doc fix.
9638
96392008-07-30 John Paul Wallington <jpw@pobox.com>
9640
9641 * minibuf.c (read_buffer_completion_ignore_case): New var.
9642 (Fread_buffer): Use it.
9643
96442008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
9645
9646 * systty.h (sensemode): Remove empty #if. Remove reference to
9647 BSD_TERMIOS, unused.
9648
9649 * sysdep.c: Remove reference to DGUX.
9650 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
9651
9652 * config.in: Regenerate.
9653
96542008-07-30 Jason Rumney <jasonr@gnu.org>
9655
9656 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
9657
96582008-07-29 Jason Rumney <jasonr@gnu.org>
9659
9660 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
9661 is populated.
9662 (uniscribe_encode_char): Always use uniscribe.
9663 Avoid using context if cache is populated.
9664
96652008-07-29 Jan Djärv <jan.h.d@swipnet.se>
9666
9667 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
9668 open menu.
9669
9670 * gtkutil.c (menu_nav_ended): Remove.
9671 (create_menus): Remove signal connect for menu_nav_ended.
9672
96732008-07-28 Chong Yidong <cyd@stupidchicken.com>
9674
9675 * xdisp.c (redisplay_window): Check return value of
9676 compute_window_start_on_continuation_line before forcing a window
9677 start.
9678
96792008-07-28 Jason Rumney <jasonr@gnu.org>
9680
9681 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
9682
9683 * w32term.c (w32_enable_unicode_output, cleartype_active):
9684 Remove obsolete display options.
9685 (x_draw_glyph_string_background): Don't use old cleartype_active
9686 workaround.
9687 (w32_initialize): Remove cleartype_active initialization.
9688 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
9689
96902008-07-28 Andreas Schwab <schwab@suse.de>
9691
9692 * lisp.h (init_weak_hash_tables, syms_of_font)
9693 (xd_read_queued_messages, syms_of_dbusbind): Declare.
9694 (remove_hash_entry): Don't declare.
9695 * eval.c (maybe_call_debugger): Make static and move before use.
9696 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
9697 * xdisp.c: Include "gtkutil.h" if USE_GTK.
9698 * xterm.h (x_set_frame_alpha): Declare.
9699
97002008-07-28 Jan Djärv <jan.h.d@swipnet.se>
9701
9702 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
9703 (create_menus): Connect selection-done to menu_nav_ended.
9704
97052008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
9706
9707 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
9708 Set Vx_resource_name to a fallback. Replace read of 'buffered'
9709 parameter with read of 'alpha' one.
9710 (Qns_frame_parameter): Remove.
5582fbc7 9711 * nsselect.m (selection-coding-system)
aac0c6e3
MR
9712 (next-selection-coding-system, Vselection_coding_system)
9713 (Vnext_selection_coding_system): Drop.
9714
97152008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
9716
9717 * nsfns.m (do-applescript, do_applescript): Rename to
9718 ns-do-applescript, ns_do_applescript, and move within file.
9719
97202008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
9721
9722 Remove support for Mac Carbon.
9723 * mactoolbox.c:
9724 * macterm.h:
9725 * macterm.c:
9726 * macselect.c:
9727 * macmenu.c:
9728 * macgui.h:
9729 * macfns.c:
9730 * mac.c: Remove file.
9731 * s/darwin.h:
9732 * m/intel386.h:
9733 * xfaces.c:
9734 * xdisp.c:
9735 * window.c:
9736 * tparam.c:
9737 * termhooks.h:
9738 * termcap.c:
9739 * term.c:
9740 * syssignal.h:
9741 * sysselect.h:
9742 * sysdep.c:
9743 * process.c:
9744 * lread.c:
9745 * lisp.h:
9746 * keyboard.c:
9747 * image.c:
9748 * fringe.c:
9749 * frame.h:
9750 * frame.c:
9751 * fontset.c:
9752 * font.h:
9753 * font.c:
9754 * fns.c:
9755 * fileio.c:
9756 * emacs.c:
9757 * dispnew.c:
9758 * dispextern.h:
9759 * config.in:
9760 * atimer.c:
2ae37cf0 9761 * Makefile.in: Remove code for Carbon.
aac0c6e3 9762
f0131492 97632008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
9764
9765 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
9766
97672008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9768
9769 * macterm.h (kCGBitmapByteOrder32Host): New define for
9770 non-universal SDKs.
9771
9772 * image.c (mac_create_cg_image_from_image, image_load_image_io)
9773 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
9774
9775 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
9776 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
9777
97782008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
9779
9780 * w32inevt.c: Include dispextern.h.
9781
97822008-07-26 Andreas Schwab <schwab@suse.de>
9783
9784 * print.c (print_object): Fix off-by-one in last change.
9785
97862008-07-25 Juanma Barranquero <lekktu@gmail.com>
9787
9788 * term.c (syms_of_term): Don't initialize default_orig_pair,
9789 default_set_foreground and default_set_background on Windows.
9790
97912008-07-25 Jason Rumney <jasonr@gnu.org>
9792
9793 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
9794 ScriptItemize. Clean up return value checking. Remove unused
9795 variables.
9796 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
9797 shaping engine.
9798
9799 * w32font.c (w32font_has_char): Handle the case where we can't
9800 determine the script for a character.
9801
98022008-07-25 Chong Yidong <cyd@stupidchicken.com>
9803
9804 * term.c (syms_of_term): Initialize default_orig_pair,
9805 default_set_foreground, and default_set_background.
9806
9807 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
9808 clash (bug#86).
9809 (getloadavg): Callers changed.
9810
9811 * image.c (svg_load_image): Fix last change.
9812 (svg_load_image): Use rsvg_handle_get_dimensions to check that
9813 image size is valid. Use g_object_unref instead of deprecated
9814 rsvg_handle_free to free rsvg handle.
9815 (x_from_xcolors): Don't initialize pixmap (silence compiler).
9816
98172008-07-25 Jason Rumney <jasonr@gnu.org>
9818
9819 * w32font.c (w32font_encode_char): Encode characters outside BMP as
9820 surrogates before looking up glyph index.
9821 (w32font_text_extents): Encode as surrogates if falling back to
9822 functions that need UTF-16 wide chars.
9823
9824 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
9825 BMP as surrogates before looking up glyph index.
9826
98272008-07-25 Chong Yidong <cyd@stupidchicken.com>
9828
9829 * image.c (svg_load_image): Check for failure in return value of
9830 rsvg_handle_get_pixbuf. Free rsvg handle when done.
9831
98322008-07-25 Jason Rumney <jasonr@gnu.org>
9833
9834 * w32font.c (Fx_select_font): Reverse sense of second arg.
9835
98362008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
9837
9838 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
9839 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
9840
9841 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
9842 (PURESIZE): Use it.
9843
98442008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
9845
9846 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
9847 * m/alpha.h (TEXT_END):
9848 * m/ibmrs6000.h (TEXT_END):
9849 * m/macppc.h (TEXT_END):
9850 * s/darwin.h (TEXT_END):
9851 * s/msdos.h (TEXT_END): Remove, unused.
9852 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
9853 * s/cygwin.h: Remove comment.
9854
9855 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
9856 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
9857 * m/intel386.h (DOT_GLOBAL_START):
9858 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
9859 (USG): Remove, file not used on USG platforms.
9860
9861 * Makefile.in (HAVE_X11): Remove empty #else.
9862
98632008-07-24 Andreas Schwab <schwab@suse.de>
9864
9865 * fileio.c (Finsert_file_contents): Properly adjust undo list
9866 after format conversion.
9867
98682008-07-24 Jan Djärv <jan.h.d@swipnet.se>
9869
9870 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
9871 (menu_nav_ended): Remove.
9872 (create_menus): Remove signal connect for menu_nav_ended.
9873 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
9874 create_menus.
9875 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
9876
98772008-07-23 Jason Rumney <jasonr@gnu.org>
9878
9879 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
9880 with opened font.
9881 (w32font_open): Set font type to gdi.
9882
9883 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
9884
98852008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
9886
9887 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
9888 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
9889 defines it.
9890 * unexec.c (ADDR_CORRECT): Define unconditionally.
9891
9892 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
9893
9894 * unexec.c: Remove code depending on !COFF and USG, the file is
9895 not used for such systems.
9896
9897 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
9898 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
9899 (LD_SWITCH_SYSTEM_1): Remove, update users.
9900
9901 * s/darwin.h (DATA_END):
9902 * m/intel386.h (DATA_END):
9903 * m/ibmrs6000.h (DATA_END):
9904 * m/alpha.h (DATA_END): Remove, unused.
9905
9906 * config.in: Regenerate.
9907 * s/ms-w32.h (subprocesses): Define unconditionally.
9908 * s/template.h (subprocesses): Update comment.
9909 * s/vms.h (subprocesses):
9910 * s/usg5-4.h (subprocesses):
9911 * s/hpux10-20.h (subprocesses):
9912 * s/gnu-linux.h (subprocesses):
9913 * s/cygwin.h (subprocesses):
9914 * s/bsd-common.h (subprocesses):
9915 * s/aix4-2.h (subprocesses):
9916 * s/darwin.h (subprocesses): Do not define, defined by default now.
9917
9918 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
9919 Remove all references.
9920 (temacs): Add GNUstep specific ld flags.
9921
9922 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
9923 similarly to what X does.
9924
99252008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9926
9927 * nsfns.m (x-list-fonts): Remove.
9928 (syms_of_nsfns): Drop the x-list-fonts declaration.
9929 * nsterm.m: Get rid of remaining "//" comments.
9930
99312008-07-22 Chong Yidong <cyd@stupidchicken.com>
9932
9933 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
9934
9935 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
9936 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
9937 (Fns_own_selection_internal, Fx_disown_selection_internal)
9938 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
9939
9940 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
9941 ... */' style of docstrings. Doc fixes.
9942
99432008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
9944
9945 * terminfo.c (UP, BC, PC): Undo previous change.
9946
9947 * nsfns.m: Rename ns prefixed functions/variables to the
9948 corresponding x versions. Update references.
9949
99502008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
9951
9952 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
9953
99542008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
9955
9956 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
9957 Remove forwarding functions.
9958 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
9959 non-static.
9960 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
9961 non-static.
9962 (ns_frame_parm_handlers): Use the new names.
9963 (syms_of_nsfns): Move to the end of file.
9964
9965 * nsterm.m (syms_of_nsterm): Move to the end of file.
9966
9967 * dispnew.c (init_display): Remove code for X10.
9968
99692008-07-22 Jason Rumney <jasonr@gnu.org>
9970
9971 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
9972 bare drive.
9973
99742008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9975
9976 * nsterm.m (syms_of_nsterm): Remove debugging println.
9977
99782008-07-22 David Reitter <david.reitter@gmail.com>
9979
9980 * nsfns.m (do_applescript, F_do_applescript): NS version of the
9981 Carbon implementation of the same functionality: execute arbitrary
9982 AppleScript code.
9983
99842008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9985
9986 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
9987 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
9988 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
9989 (Fx_display_mm_height, Fx_display_mm_width)
9990 (Fx_display_backing_store, Fx_display_visual_class)
9991 (Fx_display_save_under, Fx_open_connection)
9992 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
9993 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
9994 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
9995 (Fx_display_pixel_width, Fx_display_pixel_height)
9996 (Fx_display_usable_bounds, Fx_display_planes)
9997 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
9998 ... */' style of docstrings.
9999
100002008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
10001
10002 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
10003 on this platform.
10004 (mips):
10005 * m/iris4d.h (mips): Do not define.
10006 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
10007
10008 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
10009
10010 * image.c:
10011 * nsfns.m:
10012 * nsselect.m:
10013 * nsterm.h:
10014 * nsterm.m: Rename ns prefixed functions/variables to the
10015 corresponding x versions. Update references.
10016
10017 * m/ibms390x.h (NO_REMAP): Do not undefine.
10018
10019 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
10020
100212008-07-21 Chong Yidong <cyd@stupidchicken.com>
10022
10023 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
10024 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
10025 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
10026 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
10027 (Fns_display_mm_height, Fns_display_mm_width)
10028 (Fns_display_backing_store, Fns_display_visual_class)
10029 (Fns_display_save_under, Fns_open_connection)
10030 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
10031 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
10032 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
10033 (Fns_display_pixel_width, Fns_display_pixel_height)
10034 (Fns_display_usable_bounds, Fx_display_planes)
10035 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
10036
100372008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
10038
10039 * print.c (print_object): Check print_depth before searching for
10040 circularities.
10041
100422008-07-21 Michael Albinus <michael.albinus@gmx.de>
10043
10044 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
10045 only sprintf.
10046
100472008-07-21 Kenichi Handa <handa@m17n.org>
10048
10049 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
10050
100512008-07-20 Andreas Schwab <schwab@suse.de>
10052
10053 * syntax.c (find_start_pos, find_start_value)
10054 (find_start_value_byte, find_start_begv, find_defun_start)
10055 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
10056
100572008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
10058
10059 * s/sol2-3.h: Insert contents of s/sol2.h.
10060 (LD_SWITCH_SYSTEM): Remove redundant definition.
10061 * s/sol2.h: Remove, unused.
10062
100632008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10064
10065 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
10066
100672008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10068
10069 * Makefile.in (ns_appdir): Fix typo in find command.
10070
100712008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
10072
10073 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
10074
10075 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
10076 added not supported anymore.
10077
10078 * s/usg5-4-2.h (LIBS_SYSTEM):
10079 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
10080
10081 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
10082 * s/lynxos.h (GETPGRP_NO_ARG):
10083 * s/hpux10-20.h (NO_SIOCTL_H):
10084 * s/gnu.h (GETPGRP_NO_ARG):
10085 * s/gnu-linux.h (NO_SIOCTL_H):
10086 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
10087 * s/cygwin.h (GETPGRP_NO_ARG):
10088 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
10089 (C_DEBUG_SWITCH): Remove duplicate definition.
10090
10091 * m/ibms390.h: Remove boilerplate comments.
10092
10093 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
10094
10095 * process.c (HAVE_SERIAL): Consolidate ifdefs.
10096 (wait_reading_process_output): Remove code for SunOS, platform not
10097 supported anymore. Use SOLARIS2 instead of sun.
10098
100992008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10100
10101 * font.c (font_open_by_name): Under NS, default lface height to zero.
10102 (font_open_for_lface): Under NS, set size based on frame fontsize.
10103 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
10104 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
10105
101062008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10107
10108 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
10109 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
10110 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
10111 YES/NO.
10112 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
10113 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
10114 * Makefile.in (clean): Clear out build destination dir.
10115
101162008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10117
10118 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
10119 xterm, xselect.
10120 * lisp.h: Remove declaration of hash_remove.
10121 * nsgui.h: Remove redefinitions of hash_remove.
10122 * fns.c (hash_remove): Rename to hash_remove_from_table.
10123
101242008-07-19 Seiji Zenitani <zenitani@mac.com>
10125
10126 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
10127 strdup() the family UTF8String before modifying it.
10128
101292008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10130
10131 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
10132 NS_FACE_BACKGROUND with 0 instead of nil.
10133 * nsfont.m (nsfont_draw): Same.
10134
101352008-07-19 Chong Yidong <cyd@stupidchicken.com>
10136
10137 * nsfns.m (ns_set_background_color): Fix crash.
10138
101392008-07-18 Chong Yidong <cyd@stupidchicken.com>
10140
10141 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
10142
101432008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
10144
10145 * puresize.h (BASE_PURESIZE): Increase to 1240000.
10146
101472008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10148
10149 * gtkutil.c: Include <config.h> instead of "config.h".
10150
10151 * lisp.h (Foverlay_buffer): Add EXFUN.
10152
10153 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
10154 child process to complete child_setup. Undo 2005-09-21 change.
10155
10156 * s/darwin.h: Mention setsid after vfork.
10157
101582008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10159
10160 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
10161 Depend on macgui.h.
10162
10163 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
10164 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
10165
10166 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
10167 and f19.
10168 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
10169
10170 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
10171 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
10172 Remove enumerators.
10173
10174 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
10175 Check if FACE_FROM_ID returns NULL.
10176
101772008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
10178
10179 * w32inevt.c (change_frame_size): Remove extern declaration.
10180 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
10181 change_frame_size.
10182
101832008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
10184
10185 * getloadavg.c: Revert last change (2008-07-15).
10186
101872008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
10188
10189 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 10190 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
10191 from configure.
10192
101932008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
10194
10195 * s/sol2.h:
10196 * s/sol2-4.h: Reorganize conditionals.
10197
10198 * ecrt0.c: Remove code depending on m68000, not used anymore.
10199
10200 * fns.c (hash_remove): Make static.
10201 * lisp.h (hash_remove): Don't prototype.
10202
10203 * m/ibmrs6000.h:
10204 * m/ibms390x.h:
10205 * m/macppc.h: Remove boilerplate comments.
10206
10207 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
10208 Solaris, which does not need them.
10209
10210 * m/vax.h: Remove comments about unsupported systems.
10211
10212 * s/darwin.h: Reorganize ifdefs.
10213
102142008-07-17 Andreas Schwab <schwab@suse.de>
10215
10216 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
10217
102182008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
10219
10220 Use SDATA. Follow coding convention of placing operators at
10221 beginning of next line rather than end of previous line, and placing
10222 spaces around infix operators.
10223
10224 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
10225 in case it was defined already.
10226 USE @GNUSTEP_MAKEFILES@ rather than envvars.
10227 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
10228 ns_default.
10229 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
10230 Lisp_Objects.
10231 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
10232 (ns_defined_color, ns_color_to_lisp): Declare.
10233 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
10234 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
10235 it's accepted even with USE_LISP_UNION_TYPE.
10236 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
10237 (update_frame_tool_bar): Remove apparently obsolete tests for
10238 non-integerness of f->tool_bar_lines.
10239 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
10240 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
10241 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
10242 (nsfont_open): Don't confuse NULL for Qnil.
10243 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
10244 * menu.h (find_and_call_menu_selection):
10245 * menu.c (find_and_call_menu_selection): Use just int for vector size.
10246 (find_and_return_menu_selection): Always return something.
10247 * frame.h: Include dispextern.h for Display_Info.
10248 (display_x_get_resource): Declare.
10249
102502008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
10251
10252 * syntax.c: Remove stdio.h include accidentally introduced in
10253 Emacs.app commit.
10254 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
10255 NS_IMPL_COCOA.
10256 * keyboard.c (handle_async_input, input_available_signal): Remove
10257 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
10258
102592008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
10260
10261 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
10262 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
10263 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
10264 Use SDATA.
10265
10266 * keymap.c: Remove all NS-specific code.
10267 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
10268 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
10269 where_is_preferred_modifier, return a different value depending on how
10270 preferred is the binding.
10271 (where_is_internal): Adjust accordingly.
10272 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
10273 Adjust to new preferred_sequence_p.
10274 (syms_of_keymap): Declare `where-is-preferred-modifier'.
10275 * keyboard.c (parse_solitary_modifier): Not static any more.
10276 * keyboard.h (parse_solitary_modifier): Declare.
10277
102782008-07-16 Andreas Schwab <schwab@suse.de>
10279
10280 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
10281 of easymenu.
10282
102832008-07-16 Chong Yidong <cyd@stupidchicken.com>
10284
10285 * xdisp.c (move_it_in_display_line): Account for word wrap, so
10286 that we don't move off the line.
10287
102882008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
10289
10290 * keyboard.c (Qsuper): Remove.
10291 (parse_menu_item): Don't call where_is_internal specially for NS.
10292
102932008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
10294
10295 * s/gnu-linux.h: Remove boilerplate comments.
10296
10297 * m/alpha.h (__ELF__): Consolidate conditions.
10298
10299 * m/m68k.h (linux): Use GNU_LINUX instead.
10300 Remove boilerplate comments.
10301
10302 * m/intel386.h: Undo refactoring from previous change.
10303 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
10304 too, remove dead code.
10305 (linux): Use GNU_LINUX instead.
10306
103072008-07-16 Jason Rumney <jasonr@gnu.org>
10308
10309 * w32gui.h: Repeat 26 June changes lost by last change.
10310
103112008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
10312
10313 * systty.h: Remove code for Aix on 386, unsupported platform.
10314
10315 * s/ms-w32.h: Remove boilerplate comments.
10316 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
10317
10318 * s/gnu-linux.h (TERM): Remove support.
10319 (HAVE_SYSVIPC): Remove, unused.
10320 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
10321 for this system.
10322
10323 * process.c: Remove support for IRIS, unused.
10324 Remove support for TERM, not relevant anymore.
10325
10326 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
10327 used with the definition.
10328
10329 * s/aix4-2.h (static): Do not undef.
10330
10331 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
10332 only used on Aix.
10333 (HAVE_SYSVIPC): Remove, unused.
10334
10335 * m/hp800.h (CANNOT_DUMP): Do not undef.
10336
10337 * m/alpha.h: Fix comment.
10338
10339 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
10340 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
10341 used by this configuration.
10342 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
10343 * unexec.c: Remove code depending on HPUX and
10344 USG_SHARED_LIBRARIES, not used with this file. Remove code
10345 depending on IRIS, unused. Remove if 0-ed code.
10346
10347 * s/template.h: Remove comments about static.
10348
10349 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
10350 Remove if 0-ed code.
10351 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
10352 were the same as the default.
10353 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
10354 Remove boilerplate comments.
10355 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
10356 (HAVE_SYSVIPC): Remove, unused.
10357 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
10358
10359 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10360 Remove boilerplate comments.
10361 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10362 Remove boilerplate comments.
10363 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10364 Remove boilerplate comments.
10365 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
10366
10367 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
10368 USG systems which do not use DATA_SEG_BITS.
10369 Refactor code. Remove boilerplate comments.
10370
10371 * m/ibms390.h:
10372 * m/m68k.h:
10373 * s/bsd-common.h:
10374 * s/cygwin.h:
10375 * s/darwin.h:
10376 * s/freebsd.h:
10377 * s/gnu.h:
10378 * s/msdos.h: Remove boilerplate comments.
10379
10380 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 10381 do not use this file.
aac0c6e3
MR
10382 (IRIS_4D): Remove, unused.
10383
10384 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 10385 do not use this file.
aac0c6e3
MR
10386 (SIGN_EXTEND_CHAR):
10387 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
10388 * unexmips.c: Remove file, unused.
10389
10390 * editfns.c (Fuser_full_name): Replace the only use of
10391 USER_FULL_NAME with its value.
10392 * config.in: Regenerate.
10393
103942008-07-16 David Reitter <david.reitter@gmail.com>
10395
10396 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
10397 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
10398
103992008-07-16 Glenn Morris <rgm@gnu.org>
10400
10401 * emacs.c (system-type): Doc fix.
10402
104032008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
10404
10405 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
10406 If the cache doesn't work, let's fix it, rather than work around it.
10407
104082008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10409
10410 * Makefile.in: Correct additions for nsfont.o in last commit.
10411 * nsfont.m: New file (forgot last commit).
10412
104132008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
10414
10415 * callproc.c (set_initial_environment): Initialize
10416 Vprocess_environment under CANNOT_DUMP (fixes crash when
10417 batch-compiling for bootstrap).
10418
104192008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
4e2af782 10420 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
10421
10422 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
10423 fix crash due to different init order.
10424
104252008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10426
10427 Changes and additions for NeXTstep windowing system (Cocoa and
10428 GNUstep) support.
10429
10430 * Makefile.in:
10431 * config.in: Support defines and build commands for NS port.
10432 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
10433 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
10434 * dispextern.h: Include nsgui.h and add needed typedefs under NS
10435 windowing.
10436 (struct face): Add synth_ital field.
10437 * dispnew.c: Include nsterm.h when compiling under NS windowing.
10438 (init_display): Initialize Vinitial_window_system to "ns" when so
10439 compiled.
10440 * emacs.c: Include GSConfig.h when compiling under GNUstep.
10441 (display_arg): Use under NS.
10442 (main): Under NS, allocate autorelease pool and handle command line
10443 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
10444 (standard_args): Add NS-specific args.
10445 (shut_down_emacs): Shut down NS terminal if compiled under NS.
10446 * font.c (DEFAULT_ENCODING): New variable.
10447 (font_find_for_lface): Use it.
10448 (syms_of_font): Load syms_of_nsfont under NS.
10449 * font.h: Declare nsfont_driver when compiled under NS.
10450 * fontset.c: When compiling under NS, include nsterm.h.
10451 (fontset_from_font): Autoconstruct fontset under NS.
10452 * frame.c (various): Under NS, include nsterm.h, add Qns window system
10453 symbol, document and use it.
10454 (do_switch_frame): When for_deletion under Cocoa, add
10455 Fraise_frame(Qnil).
10456 (x_set_frame_parameters): Ensure font attribute changes are picked up.
10457 (x_get_arg): Allow "yes" and "no" as boolean values.
10458 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
10459 Qright under Cocoa.
10460 (focus-follows-mouse): Default to 0 under NS.
10461 * frame.h (enum output_method): Add output_ns.
10462 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
10463 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
10464 (FRAME_WINDOW_P): NS-specific definition.
10465 * fringe.c (max_used_fringe_bitmap): Make public.
10466 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
10467 (getloadavg): Use NeXT code under descendant OS's.
10468 * image.c (includes and header section, x_create_bitmap_from_data)
10469 (x_create_bitmap_from_file, free_bitmap_record, image_background)
10470 (image_background_transparent, x_clear_image_1)
10471 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
10472 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
10473 (x_to_xcolors, x_from_xcolors, x_disable_image)
10474 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
10475 other GUIs, including XPM support using code originally written for
10476 Carbon GUI.
10477 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
10478 using NS API.
10479 (image_ascent): Use font metrics macros instead of direct struct field
10480 access.
10481 * keyboard.c (includes): Add nsterm.h when compiling under NS.
10482 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
10483 Also, handle NS as GTK for menu bar purposes.
10484 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
10485 toolkit where they differ.
10486 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
10487 use cachelist, still needed under NS.
10488 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
10489 (struct widget_value): Define it here for menu.c.
10490 * keymap.c (includes): Include modifier internals.
10491 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
10492 NS.
10493 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
10494 support for preferring sequences using certain modifiers, specified by
10495 the FIRSTONLY argument.
10496 * lisp.h (hash_remove): Rename to avoid name clash when compiling
10497 under NS GNUstep implementation.
10498 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
10499 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
10500 * menu.c: Include nsterm.h under NS.
10501 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
10502 (free_menubar_widget_tree_value, update_submenu_strings)
10503 (find_and_call_menu_selection): Treat NS as X and NT.
10504 (find_and_return_menu_selection): New function, used for popup menus.
10505 * nsgui.h:
10506 * nsterm.h:
10507 * nsfns.m:
10508 * nsimage.m:
10509 * nsmenu.m:
10510 * nsselect.m:
10511 * nsterm.m: New files.
10512 * process.c (wait_reading_process_output): Under NS, call ns_select()
10513 instead of plain select().
10514 * syntax.c (char_quoted): Under NS, avoid a crash when called near
10515 beginning of buffer.
10516 * sysselect.h (init_process): Rename when compiling under Cocoa to
10517 avoid name conflict.
10518 * termhooks.h (display_info): Add ns_display_info to union.
10519 * terminal.c (Fterminal_live_p): Add ns to terminal types.
10520 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
10521 COCOA environment.
10522 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
10523 unexec() signature. (Note, this will dump, but the resulting file
10524 crashes; unexosx is used instead; keeping around for reference and
10525 possible aid in getting dump working under GNUstep.)
10526 * w32gui.h (button_type, widget_value): Remove definitions (now in
10527 keyboard.h).
10528 * window.c: Include nsterm.h when compiling under NS.
10529 * xdisp.c (includes): Include nsterm.h when compiling under NS.
10530 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
10531 other GUI windowing systems.
10532 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
10533 GTK.
10534 (x_consider_frame_title): Under NS, set icon type and frame
10535 modified-state indicator; use ns_set_name_as_filename() when using
10536 formatted title.
10537 (update_window_cursor): Make public when compiling under NS.
10538 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
10539 (hourglass_atimer, Vhourglass_delay
10540 * xfaces.c (header section, init_frame_faces, clear_font_table)
10541 (defined_color, unload_color, x_face_list_fonts)
10542 (prepare_face_for_display): Add NS support parallel to other GUIs.
10543 Emulate GCs like other non-X GUIs.
10544 (split_font_name): Don't lowercase font name under NS.
10545 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
10546 under NS.
10547 * s/darwin.h: Add support for compilation under NS.
10548
105492008-07-15 Jason Rumney <jasonr@gnu.org>
10550
10551 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
10552 (w32_show_hourglass): Rename from show_hourglass.
10553 (w32_hide_hourglass): Rename from hide_hourglass.
10554 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
10555 (Vhourglass_delay): Declare extern.
10556 (hourglass_started): Remove.
10557
10558 * xdisp.c (Vhourglass_delay): Remove static.
10559 (hourglass_started, start_hourglass, cancel_hourglass):
10560 Don't include these versions on WINDOWSNT.
10561
105622008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10563
10564 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
10565 variables (formerly in xfns.c).
10566 (show_hourglass, hide_hourglass): New prototypes (same).
10567 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
10568 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
10569 in xfns.c).
10570 (syms_of_xdisp): Declare/initialize display-hourglass,
10571 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
10572 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
10573 formerly in xfns.c.
10574 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
10575 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
10576 (start_hourglass, cancel_hourglass): Remove.
10577 (show_hourglass, hide_hourglass): Remove prototypes and static
10578 modifiers.
10579 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
10580 hourglass_atimer, hourglass_shown_p declaration/initialization.
10581 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
10582 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
10583 (start_hourglass, cancel_hourglass): Remove.
10584 (show_hourglass, hide_hourglass): Remove prototypes and static
10585 modifiers.
10586 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
10587 hourglass_atimer, hourglass_shown_p declaration/initialization.
10588 * w32fns.c (display_hourglass_p, Vhourglass_delay)
10589 (DEFAULT_HOURGLASS_DELAY): Remove.
10590 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
10591 hourglass_shown_p declaration/initialization.
10592
105932008-07-14 Jason Rumney <jasonr@gnu.org>
10594
10595 * w32fns.c (w32_get_arg): Remove wrapper function.
10596 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
10597 directly.
10598 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
10599
106002008-07-14 Kenichi Handa <handa@m17n.org>
10601
10602 * xfont.c (xfont_open): Add workaround for X's bug.
10603
106042008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
10605
10606 * fontset.c: Include <stdio.h> unconditionally.
10607
106082008-07-13 Michael Albinus <michael.albinus@gmx.de>
10609
10610 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
10611 for filtering.
10612
106132008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
10614
10615 * s/vms.h: Use __GNUC__ instead of _GNUC_.
10616
10617 * m/macppc.h:
10618 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
10619
10620 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
10621 (SPECIAL_EMACS_INT):
10622 * m/ia64.h (SPECIAL_EMACS_INT):
10623 * m/amdx86-64.h (SPECIAL_EMACS_INT):
10624 * s/gnu.h (NLIST_STRUCT):
10625 * s/aix4-2.h (X11R5_INHIBIT_I18N):
10626 * s/gnu-linux.h (LINUX):
10627 * s/msdos.h (HAVE_FACES):
10628 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
10629
10630 * systty.h:
10631 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
10632 anymore.
10633
106342008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
10635
10636 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
10637 always defined as int.
10638
10639 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
10640 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
10641 * s/gnu-linux.h (HAVE_WAIT_HEADER):
10642 * s/freebsd.h (HAVE_WAIT_HEADER):
10643 * s/bsd-common.h (HAVE_UNION_WAIT):
10644 * s/aix4-2.h (HAVE_WAIT_HEADER):
10645 * m/mips.h (HAVE_UNION_WAIT):
10646 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
10647 (COFF, static): Do not define, they are undefined later in the file.
10648
10649 * process.c (update_status): Don't use a union.
10650 (status_convert):
10651 (sigchld_handler): Use int instead of WAITTYPE.
10652
106532008-07-12 Chong Yidong <cyd@stupidchicken.com>
10654
10655 * indent.c (Fvertical_motion): Restore hscroll before moving to
10656 goal column.
10657
106582008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
10659
10660 * lisp.h: Remove left over code.
10661
106622008-07-11 Andreas Schwab <schwab@suse.de>
10663
10664 * lisp.h: Fix logic in last change.
10665
10666 * menu.h: New file.
10667 * menu.c: Include it.
10668 * xmenu.c: Likewise.
10669 * Makefile.in: Update dependencies.
10670
106712008-07-11 Kenichi Handa <handa@m17n.org>
10672
10673 * fontset.c (fontset_from_font): Cancel the previous change.
10674
106752008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
10676
10677 * lisp.h:
10678 * w32heap.c:
10679 * emacs.c:
10680 * alloc.c: Replace all references of NO_UNION_TYPE with
10681 USE_LISP_UNION_TYPE.
10682
10683 * m/xtensa.h (NO_UNION_TYPE):
10684 * m/vax.h (NO_UNION_TYPE):
10685 * m/template.h (NO_UNION_TYPE):
10686 * m/sparc.h (NO_UNION_TYPE):
10687 * m/mips.h (NO_UNION_TYPE):
10688 * m/macppc.h (NO_UNION_TYPE):
10689 * m/m68k.h (NO_UNION_TYPE):
10690 * m/iris4d.h (NO_UNION_TYPE):
10691 * m/intel386.h (NO_UNION_TYPE):
10692 * m/ibms390x.h (NO_UNION_TYPE):
10693 * m/ibms390.h (NO_UNION_TYPE):
10694 * m/ibmrs6000.h (NO_UNION_TYPE):
10695 * m/ia64.h (NO_UNION_TYPE):
10696 * m/hp800.h (NO_UNION_TYPE):
10697 * m/arm.h (NO_UNION_TYPE):
10698 * m/amdx86-64.h (NO_UNION_TYPE):
10699 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
10700 defining it the same.
10701
107022008-07-10 Chong Yidong <cyd@stupidchicken.com>
10703
10704 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
10705
107062008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
10707
10708 * fileio.c:
50426a04 10709 * sysdep.c:
aac0c6e3
MR
10710 * systty.h:
10711 * m/ibmrs6000.h:
10712 * m/iris4d.h:
10713 * s/aix4-2.h:
10714 * s/freebsd.h:
10715 * s/gnu-linux.h:
10716 * s/hpux10-20.h:
10717 * s/hpux11.h:
10718 * s/netbsd.h:
10719 * s/sol2-3.h:
10720 * s/sol2-4.h:
10721 * s/sol2.h:
10722 * s/usg5-4.h:
10723 * s/vms.h: Remove references to unused variables.
10724
107252008-07-10 Andreas Schwab <schwab@suse.de>
10726
10727 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
10728 pattern before matching the generic family.
10729
107302008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
10731
10732 * unexec.c:
10733 * s/vms.h:
10734 * s/usg5-4-2.h:
10735 * s/sol2-5.h:
10736 * s/freebsd.h:
10737 * s/darwin.h: Remove dead code.
10738
10739 * m/template.h:
10740 * m/sparc.h:
10741 * m/mips.h:
10742 * m/m68k.h:
10743 * m/iris4d.h:
10744 * m/intel386.h:
10745 * m/ibms390x.h:
10746 * m/ibms390.h:
10747 * m/ia64.h:
10748 * m/hp800.h:
10749 * m/arm.h:
10750 * m/amdx86-64.h: Remove dead code and references to unused
10751 and compiler defined symbols.
10752
10753 * unexmips.c:
10754 * unexelf.c: Remove references to desupported systems.
10755
10756 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
10757
10758 * m/powermac.h: Remove boilerplate comments.
10759 (NO_REMAP): Remove unused definition.
10760
10761 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
10762 define them.
10763
107642008-07-10 Kenichi Handa <handa@m17n.org>
10765
10766 * xfont.c (xfont_open): Log the reason of failure.
10767
107682008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
10769
10770 * fontset.c (fontset_get_font_group):
10771 * font.c (font_check_otf): Specify argument types.
10772
107732008-07-09 Kenichi Handa <handa@m17n.org>
10774
10775 * coding.c (detect_coding_utf_8): Set detect_info->found only when
10776 non-ASCII char is found.
10777
10778 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
10779 (reorder_font_vector): Change the arg preferred_family to font.
10780 Prefer the spec matching with font.
10781 (fontset_get_font_group): New function.
10782 (fontset_find_font): Change the format of an element of a realized
10783 fontset. Use fontset_get_font_group.
10784 (fontset_font): Try the current fontset, the default fontset, the
10785 fallbacks of the current fontset, and the fallbacks of the default
10786 fontset in this order.
10787 (face_for_char): Delete the shortcut to use the current font.
10788 (fontset_from_font): Don't set fonts for Latin in the fontset.
10789
10790 * font.h (font_make_object, font_match_p): Adjust prototypes.
10791
10792 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
10793
10794 * font.c (font_make_object): New arg entity and pixelsize.
10795 (font_check_otf_features, font_check_otf): New functions.
10796 (font_match_p): Check :lang, :script, and :otf properties.
10797
10798 * xfont.c (xfont_open): Adjust it for the change of
10799 font_make_object.
10800 (xfont_text_extents): Fix initial setting of metrics.
10801
10802 * ftfont.c (struct ftfont_info): New member index, delete member
10803 fc_charset_idx. Make the member order compatible with struct
10804 xftfont_info.
10805 (fc_charset_table): Change charset names to registry names.
10806 (ftfont_pattern_entity): Delete the args registry and
10807 fc_charset_idx. Change the value of :font-entity property
10808 to (FONTNAME . INDEX). Always set :registry property to
10809 `iso10646-1'.
10810 (struct ftfont_cache_data): New struct.
10811 (ftfont_lookup_cache): New arg for_face.
10812 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
10813 (ftfont_driver): Set the member otf_capability.
10814 (ftfont_get_charset): Adjust it for the change of
10815 fc_charset_table.
10816 (OTF_TAG_SYM): New macro.
10817 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
10818 for the change of fc_charset_table.
10819 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
10820 ftfont_pattern_entity. Add FC_INDEX to objset.
10821 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
10822 and ftfont_pattern_entity.
10823 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
10824 font_make_object, struct ftfont_info.
10825 (ftfont_has_char): Use ftfont_get_fc_charset.
10826 (ftfont_otf_features, ftfont_otf_capability): New functions.
10827 (ftfont_shape): Use ftfont_get_otf.
10828 (ftfont_text_extents): Fix initial setting of metrics.
10829
10830 * xftfont.c (struct xftfont_info): New member ft_size. Make the
10831 member order compatible with struct ftfont_info.
10832 (xftfont_open): Add FC_CHARSET to the pattern. Set
10833 xftfont_info->ft_size. Don't unlock the face. Check BDF
10834 properties if appropriate.
10835 (xftfont_close): Unlock the face.
10836 (xftfont_anchor_point, xftfont_shape): Deleted.
10837 (syms_of_xftfont): Don't set members anchor_point and shape of
10838 xftfont_driver.
10839
10840 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
10841 font_make_object.
10842
10843 * w32font.c (w32font_open): Adjust it for the change of
10844 font_make_object.
10845 (w32font_open_internal): Don't set properties of font_object here.
10846
108472008-07-08 Chong Yidong <cyd@stupidchicken.com>
10848
10849 * macfns.c (x_create_tip_frame):
10850 * w32fns.c (x_create_tip_frame):
10851 * xfns.c (x_create_tip_frame): Pass parameter argument to
10852 face-set-after-frame-default.
10853
10854 * xfaces.c (Finternal_merge_in_global_face): Save merged
10855 attributes for the default face back into the face vector.
10856
108572008-07-08 Andreas Schwab <schwab@suse.de>
10858
10859 * fontset.h: Declare fontset_from_font. Don't declare
10860 new_fontset_from_font and fontset_from_font_name.
10861 * xterm.c: Include "fontset.h".
10862 * Makefile.in (xterm.o): Update dependencies.
10863
108642008-07-08 Glenn Morris <rgm@gnu.org>
10865
10866 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
10867 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
10868
108692008-07-07 Chong Yidong <cyd@stupidchicken.com>
10870
10871 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
10872 (x_set_frame_parameters): Don't bind it.
10873
108742008-07-07 Juanma Barranquero <lekktu@gmail.com>
10875
10876 * w32fns.c (map_w32_filename): Declare extern.
10877
108782008-07-07 Jason Rumney <jasonr@gnu.org>
10879
10880 * w32term.c (WS_EX_LAYERED): Define if not already.
10881
108822008-07-06 Chong Yidong <cyd@stupidchicken.com>
10883
10884 * xfaces.c (set_font_frame_param): Don't try to set the font
10885 parameter if it is still unspecified in the lface.
10886
108872008-07-05 Chong Yidong <cyd@stupidchicken.com>
10888
10889 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
10890 face if it didn't already exist.
10891
10892 * xdisp.c (try_window_id): Give up if word-wrapping is on.
10893
108942008-07-05 Andreas Schwab <schwab@suse.de>
10895
10896 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
10897
108982008-07-05 Chong Yidong <cyd@stupidchicken.com>
10899
10900 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
10901 word-wrapping.
10902 (IT_DISPLAYING_WHITESPACE): New macro.
10903 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
10904 when word-wrapping. Simplify word-wrapping logic. Use correct
10905 pixel positions when saving copies of the iterator.
10906 (display_line): Use proper wrap point if the last character on a
10907 line was preceded by whitespace.
10908
109092008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
10910
10911 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
10912
109132008-07-04 Kenichi Handa <handa@m17n.org>
10914
10915 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
10916
10917 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
10918
109192008-07-02 Jason Rumney <jasonr@gnu.org>
10920
10921 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 10922 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
10923
10924 * xdisp.c (next_element_from_display_vector): Move assignment out
10925 of if statement.
10926
109272008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
10928
10929 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
10930
10931 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
10932 (syms_of_fileio): Initialize and export them.
10933 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
10934
10935 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
10936 (Fsystem_move_file_to_trash): New function.
10937 (syms_of_w32fns): Export it to lisp.
10938
109392008-07-01 Jason Rumney <jasonr@gnu.org>
10940
10941 * w32font.c (w32font_text_extents): Don't count overhang as part
10942 of width.
10943
109442008-06-30 Miles Bader <miles@gnu.org>
10945
10946 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
10947 Add `avoid_cursor_p' field.
10948
10949 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
10950 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
10951 (append_glyph, append_composite_glyph, produce_image_glyph)
10952 (append_stretch_glyph): Initialize avoid_cursor_p.
10953 (get_it_property): Rename from `get_line_height_property'.
10954 (x_produce_glyphs): Use get_it_property.
10955 (handle_line_prefix, push_display_prop): New functions.
10956 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
10957 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
10958 New variables.
10959 (syms_of_xdisp): Initialize them.
10960
109612008-06-30 Kenichi Handa <handa@m17n.org>
10962
10963 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
10964 XftDefaultSubstitute (they are called in XftFontMatch).
10965 (xftfont_open): Fix args to ftfont_font_format.
10966
10967 * ftfont.c (fc_charset_table): New member lang.
10968 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 10969 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
10970 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
10971 (ftfont_open): Fix args to ftfont_font_format.
10972 (ftfont_font_format): New arg filename.
10973
109742008-06-30 Chong Yidong <cyd@stupidchicken.com>
10975
10976 * xfaces.c (Finternal_merge_in_global_face): If default face was
10977 modified, realize it again. Update the font face attribute.
10978
109792008-06-29 Jason Rumney <jasonr@gnu.org>
10980
10981 * w32term.c (x_set_frame_alpha): Fix logic.
10982
109832008-06-29 Kenichi Handa <handa@m17n.org>
10984
10985 * fontset.c (Finternal_char_font): Return font-object instead of
10986 font-name.
10987
10988 * composite.c (get_composition_id): Fix the width calculation for TAB.
10989
109902008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
10991
10992 * indent.c (Fvertical_motion): Properly handle float column arg.
10993
109942008-06-28 Jason Rumney <jasonr@gnu.org>
10995
10996 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
10997 (pfnSetLayeredWindowAttributes): New function pointer.
10998 (w32_initialize): Initialize it when supported.
10999 (x_set_frame_alpha): New function.
11000
11001 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
11002 (w32_frame_parm_handlers): Set alpha handler.
11003
11004 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
11005
110062008-06-27 Jason Rumney <jasonr@gnu.org>
11007
11008 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
11009 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
11010 (w32_to_x_charset, x_to_w32_charset)
11011 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
11012 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
11013 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
11014 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
11015 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
11016 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
11017 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
11018 (Qw32_charset_unicode): Remove.
11019 (syms_of_w32fns): Update for above changes.
11020
11021 * w32font.c (w32_to_x_charset, x_to_w32_charset)
11022 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
11023 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
11024 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
11025 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
11026 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
11027 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
11028 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
11029 (syms_of_w32font): Update for above changes.
11030
110312008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
11032
11033 * s/usg5-4.h: Fix previous change: keep the correct branch of a
11034 removed #if.
11035 (USG_SHARED_LIBRARIES): Remove duplicate definition.
11036
110372008-06-26 Juanma Barranquero <lekktu@gmail.com>
4e2af782 11038 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
11039
11040 * makefile.w32-in (LOCAL_FLAGS):
11041 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
11042
11043 * sysdep.c (_spawnlp, _getpid):
11044 Declare with explicit _cdecl instead of _CRTAPI1.
11045
11046 * editfns.c (Fget_internal_run_time):
11047 Check for WINDOWSNT with #ifdef, not #if.
11048
110492008-06-26 Jason Rumney <jasonr@gnu.org>
11050
11051 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
11052
11053 * w32term.c (x_draw_glyph_string_foreground)
11054 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
11055 Use FONT_HANDLE macro.
11056 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
11057
11058 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
11059 (uniscribe_encode_char): Use FONT_HANDLE macro.
11060
11061 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
11062 (w32font_text_extents): Use precast w32_font.
11063 (w32font_close): Free cached metrics.
11064 (w32font_open_internal): Allocate space for name on stack.
11065
110662008-06-26 Chong Yidong <cyd@stupidchicken.com>
11067
11068 * xdisp.c (extend_face_to_end_of_line): Fix last change.
11069
110702008-06-26 Jason Rumney <jasonr@gnu.org>
11071
11072 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
11073 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
11074
110752008-06-26 Juanma Barranquero <lekktu@gmail.com>
11076
11077 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
11078
110792008-06-26 Jason Rumney <jasonr@gnu.org>
11080
11081 * w32bdf.c, w32bdf.h: Remove obsolete files.
11082
11083 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
11084
11085 * w32gui.h: Don't include w32bdf.h.
11086 (XCharStruct, enum w32_char_font_type, W32FontStruct):
11087 Remove obsolete font support.
11088
11089 * w32font.h (struct w32font_info): Remove compat_w32_font.
11090 Add hfont member.
11091 (FONT_COMPAT): Remove obsolete macro.
11092
11093 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
11094 (w32font_encode_char, w32font_text_extents): Use new hfont member.
11095 (w32font_open_internal): Remove compat code. Set new hfont member.
11096 (Fx_select_font): Use new hfont member.
11097
11098 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
11099 (uniscribe_encode_char): Use new hfont member.
11100
11101 * w32term.c (x_draw_glyph_string_foreground)
11102 (x_draw_composite_glyph_string_foreground): Use new hfont member.
11103 (x_draw_glyph_string): Use metrics in w32font_info.
11104
111052008-06-26 Kenichi Handa <handa@m17n.org>
11106
11107 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
11108
111092008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
11110
11111 * unexnext.c:
11112 * m/ews4800.h:
11113 * m/hp9000s300.h:
11114 * m/ibm370aix.h:
11115 * m/mips-siemens.h:
11116 * m/ncr386.h:
11117 * m/next.h:
11118 * m/pmax.h:
11119 * m/powerpcle.h:
11120 * m/tandem-s2.h:
11121 * s/386bsd.h:
11122 * s/bsd386.h:
11123 * s/bsd4-1.h:
11124 * s/bsd4-2.h:
11125 * s/bsdos2-1.h:
11126 * s/bsdos2.h:
11127 * s/bsdos3.h:
11128 * s/bsdos4.h:
11129 * s/nextstep.h:
11130 * s/ultrix4-3.h:
11131 * s/usg5-0.h:
11132 * s/usg5-2-2.h:
11133 * s/usg5-2.h:
11134 * s/usg5-4-3.h:
11135 * s/ux4800.h:
11136 * s/uxpds.h:
11137 * s/uxpv.h: Remove support for obsolete systems.
11138 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 11139 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
11140 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
11141 Remove, insert contents in s/aix4-2.h.
11142 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
11143 * s/bsd4-3.h: Rename to ...
11144 * s/bsd-common.h: ... this.
11145 * data.c:
11146 * doc.c:
11147 * ecrt0.c:
11148 * emacs.c:
11149 * fileio.c:
11150 * floatfns.c:
11151 * keyboard.c:
11152 * mem-limits.h:
11153 * print.c:
11154 * process.c:
11155 * sysdep.c:
11156 * syssignal.h:
11157 * systty.h:
11158 * syswait.h:
11159 * term.c:
11160 * unexec.c:
11161 * unexelf.c:
11162 * unexhp9k800.c:
11163 * m/hp800.h:
11164 * m/ibmrs6000.h:
11165 * m/mips.h:
11166 * m/vax.h:
11167 * s/darwin.h:
11168 * s/freebsd.h:
11169 * s/gnu.h:
11170 * s/ms-w32.h:
11171 * s/msdos.h:
11172 * s/netbsd.h:
11173 * s/template.h: Remove references to obsolete variables.
11174
11175 * Makefile.in: Add dependencies for all unexec files.
11176 (admindir): Remove unused variable.
11177 (UNEXEC_SRC): Remove references.
11178
111792008-06-25 Chong Yidong <cyd@stupidchicken.com>
11180
11181 * xfns.c (x_default_font_parameter): If Xft is available, first
11182 try Monospace-12 for the default font.
11183
111842008-06-25 Jason Rumney <jasonr@gnu.org>
11185
11186 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
11187
111882008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
11189
11190 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
11191
11192 * buffer.c (syms_of_buffer): Remove default-word-wrap.
11193
111942008-06-25 Juanma Barranquero <lekktu@gmail.com>
11195
11196 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
11197 <scroll-conservatively>: Fix typo in docstring.
11198
11199 * xselect.c (Fx_send_client_event): Doc fix.
11200
112012008-06-25 Kenichi Handa <handa@m17n.org>
11202
11203 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
11204
11205 * font.c (font_parse_fcname): Remove unused variables.
11206 (font_sort_entites): Delete the arg SPEC. Caller changed.
11207 Fix for the case of ! best_only.
11208 (font_delete_unmatched): Check DPI and AVGWIDTH too.
11209
11210 * lisp.h (Fstring_to_unibyte): EXFUN it.
11211
11212 * character.h (str_to_unibyte): Extern it.
11213
11214 * character.c (str_to_unibyte): New function.
11215
11216 * fns.c (Fstring_to_unibyte): New function.
11217 (syms_of_fns): Defsubr it.
11218
112192008-06-24 Kenichi Handa <handa@m17n.org>
11220
11221 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
11222 DPI too.
11223 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
11224
112252008-06-24 Andreas Schwab <schwab@suse.de>
11226
11227 * Makefile.in (${lispsource}loaddefs.el): Rename from
11228 ../lisp/loaddefs.el.
11229 (bootstrap-clean): Do what distclean does but don't remove
11230 Makefile.
11231 (distclean): Depend on bootstrap-clean and remove Makefile.
11232
112332008-06-24 Chong Yidong <cyd@stupidchicken.com>
11234
11235 * buffer.h (struct buffer): New member word_wrap.
11236
11237 * buffer.c (syms_of_buffer): New variables default-word-wrap and
11238 word-wrap.
11239 (init_buffer_once): Initialize them.
11240
11241 * dispextern.h (struct it): Replace bool truncate_lines_p with a
11242 line_wrap enum possessing three possible values.
11243
11244 * termopts.h: Replace truncate_partial_width_windows with
11245 Vtruncate_partial_width_windows.
11246
11247 * dispnew.c (direct_output_for_insert): Avoid direct output when
11248 inserting a space with word wrap on.
11249
11250 * indent.c (compute_motion): Obey integer values of
11251 truncate-partial-width-windows.
11252
11253 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
11254 replacing truncate_partial_width_windows.
11255 (init_iterator): If Vtruncate_partial_width_windows is an integer,
11256 truncate only if the window width is below that integer.
11257 (start_display, resize_mini_window, produce_stretch_glyph)
11258 (display_string, move_it_in_display_line_to): Use line_wrap.
11259 (back_to_previous_visible_line_start, reseat_1): Reset
11260 string_from_display_prop_p.
11261 (display_line): Extend default face to end of line when wrapping.
11262
112632008-06-24 Kim F. Storm <storm@cua.dk>
11264
11265 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
11266 to wrap continued lines at word boundaries.
11267
112682008-06-24 Jason Rumney <jasonr@gnu.org>
11269
11270 * font.c (Ffont_face_attributes): Multiply pixel size before point
11271 conversion to avoid multiplying rounding error.
11272
112732008-06-23 Jason Rumney <jasonr@gnu.org>
11274
11275 * w32term.c (x_draw_glyph_string_background)
11276 (x_draw_glyph_string): Remove old bdf font code.
11277
11278 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
11279
112802008-06-22 Kenichi Handa <handa@m17n.org>
11281
11282 * font.c (font_find_for_lface): Try the adstyle specified in
11283 the property of LFACE_FONT of LFACE (if any).
11284
112852008-06-21 Seiji Zenitani <zenitani@mac.com>
4e2af782 11286 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
11287
11288 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
11289
112902008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
11291
11292 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
11293 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
11294 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
11295 (witness-emacs): Remove.
11296 (lisp, shortlisp): Move loaddefs.el earlier.
11297 (mostlyclean): Forget about witness-emacs.
11298
112992008-06-22 Glenn Morris <rgm@gnu.org>
11300
11301 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
11302 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
11303
113042008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
11305
11306 * Makefile.in (PRECOMP): Remove.
11307 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
11308 (witness-emacs): Run `compile-first'.
11309 (.el.elc): Use the new compile-onefile target.
11310
113112008-06-21 Kenichi Handa <handa@m17n.org>
11312
11313 * xftfont.c (xftfont_open): Handle QCembolden only when
11314 FC_EMBOLDEN is defined.
11315
113162008-06-21 Andreas Schwab <schwab@suse.de>
11317
11318 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
11319 (.el.elc): Likewise.
11320
113212008-06-21 Miles Bader <miles@gnu.org>
11322
11323 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
11324 build dir, not the lisp source dir.
11325
113262008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
11327
11328 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
11329 (bootstrapclean): Remove.
11330 (.el.elc): New rule.
11331 (PRECOMP): New var.
11332 (../lisp/subdirs.el): Remove.
11333 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
11334 (witness-emacs): New target.
11335 (mostlyclean): Remove witness-emacs as well.
11336 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
11337 Add witness-emacs dependency.
11338
113392008-06-20 Chong Yidong <cyd@stupidchicken.com>
11340
11341 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
11342 defined by the font.
11343
113442008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11345
11346 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
11347 (bootstrap-clean): New target that keeps TAGS around.
11348 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
11349 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
11350
113512008-06-20 Jason Rumney <jasonr@gnu.org>
11352
11353 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
11354 Remove obsolete font code.
11355
11356 * w32font.c (font_matches_spec): Use csb bitfield from font signature
11357 to determine language support.
11358
113592008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11360
11361 * sysdep.c (cfsetspeed): New fun extracted from the code.
11362 (cfmakeraw): Move before first use.
11363
113642008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
11365
11366 * sysdep.c (cfmakeraw): Provide fallback implementation.
11367 (serial_configure): Provide fallback implementation of cfsetspeed.
11368
113692008-06-20 Kenichi Handa <handa@m17n.org>
11370
11371 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
11372 the pattern.
11373
11374 * fontset.c (fontset_from_font): Copy font_spec before changing
11375 the elements.
11376
11377 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
11378
113792008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11380
11381 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
11382 for explicit `font' parameters.
11383
11384 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
11385
113862008-06-19 Kenichi Handa <handa@m17n.org>
11387
11388 * frame.c: Include <ctype.h>.
11389 (x_set_font_backend): Allow spacing characters in the X resource
11390 for FontBackend.
11391
113922008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
11393
11394 * w32fns.c, xfns.c (Qfont_param): New var.
11395 (syms_of_w32fns): Initialize it.
11396 (x_default_font_parameter): Record explicit `font' into
11397 `font-parameter'.
11398
113992008-06-18 Kenichi Handa <handa@m17n.org>
11400
11401 * font.c (font_parse_xlfd): Fix previous change.
11402 (font_parse_fcname): Don't use :fc-unknown-spec.
11403 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
11404 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
11405 (font_add_log): Prepend the driver name to the resulting fonts.
11406
11407 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
11408 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
11409 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
11410
11411 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
11412 (QCembolden): New variables.
11413 (syms_of_xftfont): DEFSYM them.
11414 (xftfont_open): Call XftFontMatch. Don't trust the result of
11415 XftTextExtents8 if the pixel_size is less than 5.
11416
114172008-06-18 Andreas Schwab <schwab@suse.de>
11418
11419 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
11420 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
11421
114222008-06-18 Jason Rumney <jasonr@gnu.org>
11423
11424 * w32font.c (w32font_list, w32font_match): Add logging.
11425
11426 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
11427
114282008-06-17 Chong Yidong <cyd@stupidchicken.com>
11429
11430 * font.c (font_parse_fcname): Store divider characters for
11431 unknown-spec list. For known key symbols, intern using correct
11432 symbol name.
11433
114342008-06-17 Kenichi Handa <handa@m17n.org>
11435
11436 * xfaces.c (realize_default_face): If the frame is not on window
11437 system, set the fontset of face to nil.
11438
114392008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
11440
11441 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
11442
114432008-06-16 Juanma Barranquero <lekktu@gmail.com>
11444
11445 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
11446 (build_font_name_from_vector): Delete externs.
11447
11448 * xfaces.c (struct font_name): Don't declare.
11449
114502008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
11451
11452 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
11453
114542008-06-16 Chong Yidong <cyd@stupidchicken.com>
11455
11456 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
11457
114582008-06-16 Juanma Barranquero <lekktu@gmail.com>
11459
11460 * font.c (Ffont_spec): Fix usage in docstring.
11461 (Ffont_face_attributes): Doc fix.
11462
114632008-06-16 Andreas Schwab <schwab@suse.de>
11464
11465 * font.c (Ffont_face_attributes): Fix definition.
11466
114672008-06-16 Jason Rumney <jasonr@gnu.org>
11468
11469 * font.h (font_style_symbolic_from_value): Remove.
11470
11471 * font.c (font_style_symbolic_from_value): Remove.
11472 (font_style_symbolic): Revert to pre 2008-06-13 version.
11473
11474 * w32font.c (w32_to_fc_weight): New function.
11475 (w32font_full_name, logfont_to_fcname): Use it.
11476
114772008-06-16 Kenichi Handa <handa@m17n.org>
11478
11479 * font.c (font_check_object): Delete it.
11480 (font_clear_cache): Check if a font-object is alive.
11481 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
11482 font-object to nil.
11483 (font_close_object): Don't check FONT_CLOSE_OBJECT.
11484 (font_at): Don't call font_check_object.
11485 (Ffont_get): Return a symbol for :weight, :slant, and :width.
11486
114872008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
11488
11489 * puresize.h (BASE_PURESIZE): Increase to 1230000.
11490
114912008-06-16 Chong Yidong <cyd@stupidchicken.com>
11492
11493 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
11494
114952008-06-15 Chong Yidong <cyd@stupidchicken.com>
11496
11497 * font.c (font_parse_fcname): Only one decimal point.
11498 (font_unparse_fcname): Handle data in family and foundry indices
11499 as symbols, not strings.
11500 (font_unparse_gtkname, Ffont_face_attributes): New functions.
11501
11502 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
11503
11504 * font.h (font_unparse_gtkname): Add prototype.
11505
115062008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
11507
11508 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
11509
115102008-06-15 Andreas Schwab <schwab@suse.de>
11511
11512 * font.c (font_update_drivers): Fix crash when no drivers match.
11513
115142008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
11515
11516 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
11517 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
11518
115192008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
11520
11521 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
11522
115232008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
11524
11525 * process.c (Fserial_process_configure, Fprocess_send_eof):
11526 Use EQ to compare Lisp_Objects.
11527
115282008-06-13 Jason Rumney <jasonr@gnu.org>
11529
11530 * w32fns.c (Fw32_select_font): Remove old font API function.
11531
11532 * w32font.c (logfont_to_fcname): New function.
11533 (Fx_select_font): New font dialog function compatible with
11534 GTK/fontconfig version.
11535
11536 * font.c (font_style_symbolic_from_value): New function.
11537 (font_style_symbolic): Use it.
11538
11539 * font.h (font_style_symbolic_from_value): Declare new function.
11540
115412008-06-13 Juanma Barranquero <lekktu@gmail.com>
11542
11543 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
11544 <font-width-table>: Fix typos in docstrings.
11545
115462008-06-13 Daniel Engeler <engeler@gmail.com>
11547
11548 These changes add serial port access.
11549 * process.c: Add HAVE_SERIAL.
11550 (Fdelete_process, Fprocess_status, Fset_process_buffer)
11551 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
11552 (list_processes_1, select_wrapper, Fstop_process)
11553 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
11554 (status_notify): Modify to handle serial processes.
11555 [HAVE_SERIAL] (Fserial_process_configure)
11556 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
11557 New functions.
11558 * process.h (struct Lisp_Process): Add `type'.
11559 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
11560 New functions.
11561 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
11562 serial ports.
b71ac3dd 11563 (serial_open, serial_configure): New functions.
aac0c6e3
MR
11564 * w32.h: Add FILE_SERIAL.
11565 (struct _child_process): Add ovl_read, ovl_write.
11566
115672008-06-13 Kenichi Handa <handa@m17n.org>
11568
11569 * dispextern.h (enum lface_attribute_index): New member
11570 LFACE_FOUNDRY_INDEX.
11571
11572 * font.c (font_score): Delete arg alternate_families. Check only
11573 weight, slant, width, and size. Ignore the difference of alias
11574 style symbols.
11575 (font_sort_entites): Adjust for the above change. Reflect the
11576 order of font-driver to scores.
11577 (font_list_entities): Don't check alternate_familes here.
11578 (font_clear_prop): Handle foundry.
11579 (font_update_lface): Don't parse "foundry-family" form here.
11580 Handle FONT_FOUNDRY_INDEX.
11581 (font_find_for_lface): Likewise. Handle alternate families here.
11582 If registry is nil, try iso8859-1 and ascii-0.
11583 (font_open_for_lface): Pay attention to size in ENTITY.
11584 (font_open_by_name): Simplify by calling font_load_for_lface.
11585 (free_font_driver_list): Delete it.
11586 (font_update_drivers): Preserve the order of backends.
11587 (syms_of_font): Setting of sort_shift_bits adjusted for the change
11588 of font_score and font_sort_entites.
11589 (font_update_sort_order): Likewise.
11590
11591 * xfaces.c (LFACE_FOUNDRY): New macro.
11592 (check_lface_attrs): Check foundry.
11593 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
11594 (merge_face_vectors): Check foundry.
11595 (merge_face_ref): Likewise.
11596 (Finternal_set_lisp_face_attribute): Likewise.
11597 (x_update_menu_appearance): Likewise.
11598 (Finternal_get_lisp_face_attribute): Likewise.
11599 (lface_hash): Likewise.
11600 (lface_same_font_attributes_p): Likewise.
11601 (x_supports_face_attributes_p): Likewise.
11602 (tty_supports_face_attributes_p): Likewise.
11603 (Finternal_set_alternative_font_family_alist): Intern strings.
11604 (Finternal_set_alternative_font_registry_alist): Downcase strings.
11605 (realize_default_face): Set LFACE_FOUNDRY (lface).
11606
11607 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
11608 font-driver at first.
11609
11610 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
11611
116122008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
11613
11614 * lread.c (Fload): Use xfree, not free on saved_doc_string.
11615
116162008-06-12 Jim Meyering <meyering@redhat.com>
11617
11618 Make unexec_free handle NULL the same way free does.
11619 * unexmacosx.c (unexec_free): Ignore a NULL argument.
11620
116212008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
11622
11623 * character.h (CHAR_TO_BYTE_SAFE): New macro.
11624 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
11625 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
11626 (WEAK_ALIAS): Simplify.
11627 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
11628 when searching a unibyte buffer.
11629
116302008-06-12 Chong Yidong <cyd@stupidchicken.com>
11631
11632 * xfns.c (Fx_select_font): Rename from x-font-dialog.
11633
116342008-06-12 Juanma Barranquero <lekktu@gmail.com>
11635
11636 * w32font.c: Include ctype.h.
11637
116382008-06-11 Jason Rumney <jasonr@gnu.org>
11639
11640 * w32font.c (w32font_encode_char): Detect missing glyphs that are
11641 misreported as space.
11642 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
11643 as aliases for registry iso10646-1.
11644
116452008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
11646
11647 * buffer.c (clone_per_buffer_values): Skip `name'.
11648
116492008-06-11 Chong Yidong <cyd@stupidchicken.com>
11650
11651 * font.c (font_parse_fcname): Fix last change; accept decimal
11652 points in font size.
11653
116542008-06-10 Jason Rumney <jasonr@gnu.org>
11655
11656 * w32uniscribe.c (add_opentype_font_name_to_list):
11657 Skip non unicode fonts.
11658
116592008-06-10 Chong Yidong <cyd@stupidchicken.com>
11660
11661 * xfns.c (Fx_font_dialog): New function.
11662
11663 * gtkutil.c (xg_dialog_response_cb): Rename from
11664 xg_file_response_callback.
11665 (pop_down_dialog): Rename from pop_down_file_dialog.
11666 (xg_get_file_name): Callers changed.
11667 (xg_get_font_name): New function.
11668
11669 * gtkutil.h (xg_get_font_name): Insert prototype.
11670
116712008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
11672
11673 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
11674 x_underline_minimum_display_offset.
11675 (syms_of_xdisp): Declare it here rather than in xterm.c.
11676 * dispextern.h (underline_minimum_offset): Declare it.
11677 * w32term.c (x_draw_glyph_string): Use it.
11678 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
11679 (syms_of_xterm): Don't declare it any more.
11680 (x_draw_glyph_string): Adjust to the new name.
11681
8719abec 116822008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
11683
11684 * xterm.c (x_underline_minimum_display_offset): New var.
11685 (x_draw_glyph_string): Use it.
11686 (syms_of_xterm): Declare it.
11687
116882008-06-10 Chong Yidong <cyd@stupidchicken.com>
11689
11690 * font.c (font_parse_fcname): Accept GTK-style font names too.
11691
116922008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
11693
11694 * dired.c (file_name_completion): Don't return t if the match is exact
11695 but with different capitalization.
11696 * minibuf.c (Ftry_completion): Simplify.
11697
11698 * window.c (Vwindow_point_insertion_type): New var.
11699 (set_window_buffer): Use it.
11700 (syms_of_window): Init and export it to Lisp.
11701
117022008-06-10 Kenichi Handa <handa@m17n.org>
11703
11704 * font.h (font_intern_prop): Prototype adjusted.
11705
11706 * font.c (font_intern_prop): New arg force_symbol.
11707 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
11708 Adjust for the change of font_intern_prop.
11709
11710 * ftfont.c (ftfont_pattern_entity):
11711 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
11712 (w32_registry):
11713 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
11714 the change of font_intern_prop.
11715
117162008-06-09 Juanma Barranquero <lekktu@gmail.com>
11717
11718 * w32menu.c (digest_single_submenu): Declare extern.
11719
117202008-06-09 Jason Rumney <jasonr@gnu.org>
11721
11722 * w32term.c (x_make_frame_visible): Use alternate restore flags.
11723
11724 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
11725 (parse_single_submenu): Remove.
11726 (digest_single_submenu): Remove.
11727 (syms_of_w32menu): Don't initialise variables that have moved
11728 to menu.c.
11729 (set_frame_menubar): Sync with version in xmenu.c.
11730 (w32_menu_show): Sync with xmenu_show in xmenu.c.
11731
11732 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
11733 Make static again.
11734
117352008-06-09 Jason Rumney <jasonr@gnu.org>
11736
11737 Changes to w32 files related to the move of common menu code
11738 to menu.c on 2008-06-08 by Chong Yidong.
11739
11740 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
11741 defs to w32gui.h.
11742 (single_keymap_panes, push_menu_item, push_menu_pane):
11743 Make globally visible.
11744
11745 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
11746 (local_free, malloc_widget_value, free_widget_value)
11747 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
11748 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
11749 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
11750 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
11751 (menu_items, menu_items_allocated, menu_items_used)
11752 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
11753 (init_menu_items, finish_menu_items, discard_menu_items)
11754 (grow_menu_items, push_submenu_start, push_submenu_end)
11755 (push_left_right_boundary, push_menu_pane, push_menu_item)
11756 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
11757 (free_menubar_widget_tree_value, parse_single_submenu)
11758 (update_submenu_strings): Remove functions.
11759 (xmalloc_widget_value): Remove and declare extern.
11760
11761 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
11762 (OBJ1): Build it.
11763
11764 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
11765 (local_heap, local_alloc, local_free, malloc_widget_value)
11766 (free_widget_value): Define here.
11767
117682008-06-09 Kenichi Handa <handa@m17n.org>
11769
11770 * font.h (Qascii_0): Extern it.
11771
11772 * font.c (Qascii_0): New variable.
11773 (syms_of_font): DEFSYM it.
11774 (font_open_by_name): If the registry "iso8859-1" fails, try also
11775 "ascii-0".
11776
11777 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
11778
117792008-06-08 Kenichi Handa <handa@m17n.org>
11780
11781 * .gdbinit (xfont): New command.
11782
117832008-06-08 Andreas Schwab <schwab@suse.de>
11784
11785 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
11786 * Makefile.in (menu.o): Update dependencies.
11787
11788 * Makefile.in (obj): Always add menu.o.
11789 * emacs.c (main): Always call syms_of_menu.
11790 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
11791
117922008-06-08 Chong Yidong <cyd@stupidchicken.com>
11793
11794 * Makefile.in: Compile menu.c.
11795
11796 * lisp.h: Declare syms_of_menu.
11797
11798 * emacs.c (main): Call syms_of_menu.
11799
11800 * keyboard.h: Relocate platform-independent menu definitions from
11801 xmenu.c.
11802
11803 * menu.c: New file. Relocate platform-independent menu
11804 definitions from xmenu.c. Suggested by Adrian Robert.
11805
11806 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 11807 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
11808 (menu_items_used, menu_items_n_panes)
11809 (menu_items_submenu_depth): Move to keyboard.h.
11810 (init_menu_items, finish_menu_items, unuse_menu_items)
11811 (discard_menu_items, restore_menu_items, save_menu_items)
11812 (grow_menu_items, push_submenu_start, push_submenu_end)
11813 (push_left_right_boundary, push_menu_pane, push_menu_item)
11814 (keymap_panes, single_keymap_panes, single_menu_item)
11815 (list_of_panes, list_of_items, find_and_call_menu_selection)
11816 (xmalloc_widget_value, free_menubar_widget_value_tree)
11817 (parse_single_submenu, digest_single_submenu)
11818 (update_submenu_strings): Move to menu.c.
11819
118202008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
11821
11822 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
11823
118242008-06-06 Miles Bader <miles@gnu.org>
11825
11826 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
11827 face, not frame default.
11828
118292008-06-05 Martin Rudalics <rudalics@gmx.at>
11830
11831 * window.c (pop_up_windows, pop_up_frames)
11832 (display_buffer_reuse_frames, Vpop_up_frame_function)
11833 (Vdisplay_buffer_function, Veven_window_heights)
11834 (Vspecial_display_buffer_names, Vspecial_display_regexps)
11835 (Vspecial_display_function, Vsame_window_buffer_names)
11836 (Vsame_window_regexps, split_height_threshold)
11837 (Vsplit_window_preferred_function): Move those vars to window.el.
11838 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
11839 (Fdisplay_buffer): Move those functions to window.el.
11840 (syms_of_window): Remove corresponding declarations.
11841 (display_buffer): New function.
11842 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
11843 * dispnew.c (Flast_nonminibuf_frame): New function.
11844 * buffer.c (Fpop_to_buffer): Move to window.el.
11845
118462008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
11847
11848 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
11849
118502008-06-05 Kenichi Handa <handa@m17n.org>
11851
11852 * coding.c (detect_coding): Fix previous change.
11853 (detect_coding_system): Likewise.
11854
118552008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
11856
11857 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
11858
11859 * keymap.c (Vminibuffer_local_filename_must_match_map):
11860 Rename from Vminibuffer_local_must_match_filename_map.
11861 (syms_of_keymap):
11862 * minibuf.c (Fcompleting_read): Adjust accordingly.
11863 * commands.h: Rename declaration as well.
11864
118652008-06-05 Kenichi Handa <handa@m17n.org>
11866
11867 * font.c (Ffont_spec): Don't use font_parse_family_registry for
11868 family name.
11869 (Ffont_put): Likewise.
11870
11871 * fontset.c (fontset_find_font): Call font_open_for_lface with the
11872 current font-spec.
11873
11874 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
11875 is unspecified.
11876
11877 * xfaces.c (realize_x_face): If the font-related face attributes
11878 are the same as those of default face, realize a new fontset from
11879 default->fontset.
11880 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
11881
118822008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
11883
11884 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
11885 (move_it_in_display_line): New wrapper.
11886
11887 * window.c (window_scroll_pixel_based_preserve_x)
11888 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
11889 (window_scroll_pixel_based, window_scroll_line_based):
11890 Use them to preserve column positions.
11891 (syms_of_window): Initialize them.
11892
11893 * indent.c (Fvertical_motion): Extend first arg to allow passing an
11894 (HPOS . VPOS) pair.
11895
11896 * dispextern.h (move_it_in_display_line): Declare.
11897
118982008-06-05 Juanma Barranquero <lekktu@gmail.com>
11899
11900 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
11901 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
11902 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
11903
119042008-06-04 Juanma Barranquero <lekktu@gmail.com>
11905
11906 * window.c (Fset_window_parameter): Doc fix.
11907 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
11908
119092008-06-04 Joakim Verona <joakim@verona.se>
11910
11911 * window.h (struct window): Add new member window_parameters.
11912
11913 * window.c (Fwindow_parameters, Fwindow_parameter)
11914 (Fset_window_parameter): New defuns.
11915 (syms_of_window): Defsubr the new defuns.
11916 (make_window): Initialize window_parameters to nil.
11917
119182008-06-04 John Paul Wallington <jpw@pobox.com>
11919
11920 * eval.c (Fdefmacro): Doc fix.
11921
119222008-06-04 Kenichi Handa <handa@m17n.org>
11923
11924 * coding.c (detect_coding): Fix handling of coding->head_ascii.
11925 Be sure to call setup_coding_system when we find a proper coding system.
11926 (detect_coding_system): Fix handling of coding->head_ascii.
11927
119282008-06-03 Andreas Schwab <schwab@suse.de>
11929
11930 * font.c (font_prop_validate_spacing): Fix last change.
11931
119322008-06-03 Kenichi Handa <handa@m17n.org>
11933
11934 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
11935 (font_parse_fcname): Fix handling of unknown key.
11936
11937 * xfont.c (xfont_list): Try an alias.
11938
11939 * charset.c (char_charset): Return NULL if the arg charset_list is
11940 specified and C doesn't belong to any of them.
11941
119422008-06-02 Chip Coldwell <coldwell@redhat.com>
11943
11944 * font.c (font_pixel_size): Don't take cdr of an integer.
11945
119462008-06-02 Jim Meyering <meyering@redhat.com>
11947
11948 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
11949 * alloc.c (xfree): Return right away for a NULL arg.
11950 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
11951 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
11952 * mac.c (create_apple_event_from_event_ref): Likewise.
11953 (create_apple_event_from_drag_ref, cfstring_create_normalized):
11954 Likewise.
11955 * doprnt.c (doprnt1): Likewise.
11956 * frame.c (frame): Likewise.
11957 * keyboard.c (wipe_kboard): Likewise.
11958 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
11959 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
11960 * term.c (tty_default_color_capabilities, maybe_fatal)
11961 (delete_tty): Likewise.
11962 * w16select.c (string): Likewise.
11963 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
11964 * w32bdf.c (w32_free_bdf_font): Likewise.
11965 * w32fns.c (w32_unload_font): Likewise.
11966 * w32font.c (w32font_close): Likewise.
11967 * window.c (size_window): Likewise.
11968 * xselect.c (receive_incremental_selection): Likewise.
11969 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
11970 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
11971 * w32.c (stat): Likewise.
11972
11973 Remove useless if-before-free tests.
11974 * editfns.c (Fset_time_zone_rule): Likewise.
11975 * lread.c (nosuffix): Likewise.
11976 * ralloc.c (get_bloc): Likewise.
11977 * regex.c (reg_free): Likewise.
11978 * xftfont.c (xftfont_open, xftfont_close): Likewise.
11979 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
11980 * xsmfns.c (smc_save_yourself_CB): Likewise.
11981
119822008-06-02 Kenichi Handa <handa@m17n.org>
11983
11984 * font.c (font_find_for_lface): Handle float font size.
11985 (font_open_for_lface): Likewise.
11986
11987 * xfaces.c (x_supports_face_attributes_p): Check face->font before
11988 comparing the properties.
11989
119902008-06-01 Jason Rumney <jasonr@gnu.org>
11991
11992 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
11993 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
11994 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
11995 Don't add empty script list.
11996 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
11997
119982008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
11999
12000 * Makefile.in (dot, dotdot): Remove, update users.
12001 ".." has been used elsewhere in the file for a long time.
12002 (LIBXT_STATIC): Remove conditional based on unused variable.
12003
120042008-06-01 Miles Bader <miles@gnu.org>
12005
12006 * xfaces.c (Vface_remapping_alist): New variable.
12007 (syms_of_xfaces): Initialize it.
12008 (enum named_merge_point_kind): New type.
12009 (struct named_merge_point): Add `named_merge_point_kind' field.
12010 (push_named_merge_point): Make cycle detection respect different
12011 named-merge-point kinds.
12012 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
12013 Remove face-name alias resolution.
12014 (lface_from_face_name): New definition using
12015 `lface_from_face_name_no_resolve'.
12016 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
12017 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
12018 (get_lface_attributes): New definition that layers face-remapping on
12019 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
12020 (lookup_basic_face): New function.
12021 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
12022 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
12023 `get_lface_attributes'.
12024 (face_at_buffer_position): Use `lookup_basic_face' to lookup
12025 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
12026 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
12027
12028 * xdisp.c (init_iterator): Pass base_face_id through
12029 `lookup_basic_face' when we actually use it as a face-id.
12030 (handle_single_display_prop): Use `lookup_basic_face' to lookup
12031 DEFAULT_FACE_ID.
12032
12033 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
12034 lookup the initial face-id.
12035
12036 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
12037
120382008-06-01 Juanma Barranquero <lekktu@gmail.com>
12039
12040 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
12041 (Fremove_text_properties): Fix typos in docstrings.
12042
120432008-05-31 Kenichi Handa <handa@m17n.org>
12044
12045 * font.c (font_list_entities): Fix the car part of data to be
12046 stored in the cache.
12047
12048 * ftfont.c (ftfont_font_format): Don't use strcasestr.
12049
120502008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
12051
12052 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
12053 Add a `test' argument so another predicate than `equal' can be used.
12054 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
12055 (map_char_table): Remove unused vars `c' and `i'.
12056 * lisp.h (Foptimize_char_table): Adjust declaration.
12057 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
12058
120592008-05-30 Kenichi Handa <handa@m17n.org>
12060
12061 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
12062 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
12063 defined.
12064
120652008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
12066
12067 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
12068 (Fmake_variable_frame_local): Disallow mixing buffer-local and
12069 frame-local settings for the same variable.
12070
120712008-05-30 Kenichi Handa <handa@m17n.org>
12072
12073 * fontset.c (Ffont_info): Move to font.c.
12074 (syms_of_fontset): Delete defsubr of Sfont_info.
12075
12076 * font.c (font_style_to_value, font_score): Delete casting of the
12077 args to xstcasecmp.
12078 (register_font_driver): Increment num_font_drivers only when
12079 registering the driver globally.
12080 (Ffont_info): Move from fontset.c. Handle a font object too.
12081 (syms_of_font): Defsubr Sfont_info.
12082
120832008-05-29 Kenichi Handa <handa@m17n.org>
12084
12085 * coding.h (enum define_coding_utf8_arg_index): New enum.
12086 (enum coding_attr_index): Change coding_attr_utf_16_bom to
12087 coding_attr_utf_bom.
12088 (enum utf_bom_type): Rename from utf_16_bom_type.
12089 (struct utf_16_spec): Adjust for the above change.
12090 (struct coding_system): Add utf_8_bom in `spec' union.
12091
12092 * coding.c (CODING_UTF_8_BOM): New macro.
12093 (enum coding_category): Delete coding_category_utf_8, add
12094 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
12095 coding_category_utf_8_sig.
12096 (CATEGORY_MASK_UTF_8): Delete it.
12097 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
12098 (CATEGORY_MASK_UTF_8_SIG): New macros.
12099 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
12100 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
12101 CATEGORY_MASK_UTF_8_SIG.
12102 (CATEGORY_MASK_UTF_8): New macro.
12103 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
12104 (detect_coding_utf_8): Check BOM.
12105 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
12106 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
12107 (encode_coding_utf_16): Likewise.
12108 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
12109 (detect_coding, detect_coding_system): Handle utf-8-auto.
12110 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
12111 (syms_of_coding): Fix setting up of Vcoding_category_table.
12112
121132008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
12114
12115 * process.c (Faccept_process_output): If `millisec' is non-nil,
12116 `seconds' default to 0.
12117 (wait_reading_process_output): Also return non-nil if we read output
12118 from a non-running process.
12119
121202008-05-29 Jason Rumney <jasonr@gnu.org>
12121
12122 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
12123 `raster' specified.
12124 (add_font_entity_to_list): Allow non-opentype truetype fonts back
12125 in the uniscribe backend, but disallow any font that has no
12126 unicode subrange support.
12127
121282008-05-29 Juanma Barranquero <lekktu@gmail.com>
12129
12130 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
12131 Fix typos in docstrings.
12132
121332008-05-29 Kenichi Handa <handa@m17n.org>
12134
12135 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
12136 (Fx_family_fonts): Set frame correctly.
12137
121382008-05-28 Jason Rumney <jasonr@gnu.org>
12139
12140 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
12141
121422008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
12143
12144 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
12145 calling build_annotations.
12146
121472008-05-28 Juanma Barranquero <lekktu@gmail.com>
12148
12149 * coding.c (Fdecode_coding_region, Fencode_coding_region)
12150 (Fencode_coding_string):
12151 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
12152 <latin-extra-code-table>: Fix typos in docstrings.
12153 (syms_of_coding) <coding-system-alist>: Doc fix.
12154 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
12155
121562008-05-28 Kenichi Handa <handa@m17n.org>
12157
12158 * fontset.c (Ffont_info): Don't call font_close_object.
12159
12160 * font.c (font_parse_family_registry): Use Ffont_put to validate
12161 foundry and family.
12162 (font_delete_unmatched): Don't check spacing.
12163 (font_list_entities): Add spacing to the spec to list fonts.
12164
12165 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
12166 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
12167
12168 * coding.c (encode_coding_raw_text): Fix previous change.
12169 (encode_coding_object): When the dst_object is a buffer and is
12170 different from src_object, move gap to PT.
12171
121722008-05-27 Chong Yidong <cyd@stupidchicken.com>
12173
12174 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
12175
121762008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
12177
12178 * coding.c (encode_coding_raw_text): Set coding->produced_char for
12179 all branches. Compute it differently.
12180
12181 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
12182
121832008-05-27 Juanma Barranquero <lekktu@gmail.com>
12184
12185 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
12186 into "else if () ... else ...".
12187
121882008-05-27 Jason Rumney <jasonr@gnu.org>
12189
12190 * w32font.c (w32font_open_internal): Determine if glyph indices
12191 are likely to work here.
12192
121932008-05-27 Chong Yidong <cyd@stupidchicken.com>
12194
12195 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
12196 draw overlap glyphs with appropriate highlighting.
12197
121982008-05-27 Kenichi Handa <handa@m17n.org>
12199
12200 * xfont.c (xfont_open): Fix calculation of font->average_width.
12201
122022008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
12203
12204 * casefiddle.c (casify_object): Try to guess better whether the
12205 argument is a byte or a char.
12206
122072008-05-26 Andreas Schwab <schwab@suse.de>
12208
12209 * xselect.c (x_reply_selection_request): Properly handle format == 32.
12210 Always send multiples of format size.
12211
12212 * xterm.c (x_set_frame_alpha): Fix type mismatch.
12213
122142008-05-26 Jason Rumney <jasonr@gnu.org>
12215
12216 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
12217 (compute_metrics): Don't set failure if we just cleared the cache.
12218 (w32_weight_table): Remove unused variable.
12219 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
12220 backwards compatibility.
12221
122222008-05-25 Kenichi Handa <handa@m17n.org>
12223
12224 * w32term.c (x_draw_glyph_string):
12225 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
12226
12227 * xfaces.c: Delete unused function prototypes.
12228 (xstrlwr, font_frame): Delete them.
12229 (clear_face_cache): Delete unused variable.
12230
12231 * xftfont.c (xftfont_open): Delete unused variable.
12232 If underline_thickness is not 1, adjust underline_position.
12233
12234 * ftxfont.c (ftxfont_open): Delete unused variable.
12235
12236 * fontset.c (face_for_char): Optimize for the case of no charset
12237 property.
12238
12239 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
12240 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
12241 (otf_open, font_otf_capability, generate_otf_features)
12242 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
12243 Comment out by surrounding "#if 0" and "#endif" for the moment.
12244 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
12245 (syms_of_font): Codes for accessing above commented out.
12246
122472008-05-24 Eli Zaretskii <eliz@gnu.org>
12248
12249 * w32proc.c: Include dispextern.h.
12250
12251 * w32.c: Include dispextern.h.
12252
122532008-05-23 Juanma Barranquero <lekktu@gmail.com>
12254
12255 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
12256 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
12257 Fix typos in docstrings.
12258
122592008-05-23 Jason Rumney <jasonr@gnu.org>
12260
12261 * xsmfns.c: Remove includes that are already included by config.h.
12262
122632008-05-23 Kenichi Handa <handa@m17n.org>
12264
12265 * charset.c (Qemacs, charset_emacs): New variables.
12266 (char_charset): Fix for non-Unicode characters.
12267 (syms_of_charset): Define charset_emacs.
12268
12269 * w32term.c (x_draw_glyph_string): Be sure to update
12270 s->underline_thickness and s->underline_position. Be sure to draw
12271 underline within the current line area.
12272
12273 * xterm.c (x_draw_glyph_string): Be sure to update
12274 s->underline_thickness and s->underline_position. Be sure to draw
12275 underline within the current line area.
12276
12277 * fontset.c: Delete unused variables and add casting for char *
12278 throughout the file.
12279 (fontset_font): Try the fallback fonts of the current fontset
12280 before consulting the default fontset.
12281
12282 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
12283
12284 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
12285
122862008-05-22 Jason Rumney <jasonr@gnu.org>
12287
12288 * font.c: Don't include strings.h.
12289
12290 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
12291
12292 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
12293 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
12294 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
12295 to call xstrcasecmp.
12296
12297 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
12298
12299 * fontset.c (fs_query_fontset): Use xstrcasecmp.
12300
12301 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
12302
12303 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
12304
123052008-05-22 Kenichi Handa <handa@m17n.org>
12306
12307 * puresize.h (BASE_PURESIZE): Increase to 1220000.
12308
12309 * font.c (font_prop_validate_style): Adjust for the format
12310 change of font_style_table.
12311
12312 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
12313 two args.
12314
12315 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
12316 two args.
12317
123182008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
12319
12320 * minibuf.c (keys_of_minibuf): Delete.
12321 * lisp.h (keys_of_minibuf): Delete.
12322 * emacs.c (main): Don't call keys_of_minibuf.
12323
123242008-05-22 Kenichi Handa <handa@m17n.org>
12325
12326 * ftfont.c (ftfont_resolve_generic_family): Rename from
12327 ftfont_list_generic_family. Return a single family for each
12328 generic family.
12329 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
12330 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
12331 Call font_add_log.
12332 (ftfont_match): Call font_add_log.
12333
12334 * font.h (Ffont_xlfd_name): EXFUN adjusted.
12335 (FONT_DEBUG): Define it.
12336 (font_add_log): Extern it.
12337 (font_assert): Rename from xassert.
12338
12339 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
12340 (xfont_list_family): Call font_add_log.
12341 (xfont_match): Likewise.
12342 (memq_no_quit): Delete.
12343
12344 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
12345 call of Ffont_xlfd_name.
12346
12347 * xfaces.c (struct table_entry, slant_table, weight_table)
12348 (swidth_table): Move to font.c.
12349
12350 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
12351 xassert are changed to font_assert. Delete many unused variables.
12352 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
12353 New variables.
12354 (struct table_entry): Move from xfaces.c and modified.
12355 (weight_table, slant_table, width_table): Move from xfaces.c and
12356 contents adjusted for the change of struct table_entry.
12357 (font_style_to_value, font_style_symbolic): Adjust for the
12358 format change of font_style_table.
12359 (font_parse_family_registry): Don't overwrite existing foundry and
12360 family of font_spec.
12361 (font_score): Fix calculation of diff for sizes.
12362 (font_sort_entites): Call font_add_log.
12363 (font_delete_unmatched): Return a newly created list.
12364 (font_list_entities): Fix previous change. Call font_add_log.
12365 (font_matching_entity, font_open_entity, font_close_entity):
12366 Call font_add_log.
12367 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
12368 (Finternal_set_font_style_table): Delete.
12369 (BUILD_STYLE_TABLE): New macro.
12370 (build_style_table): New function.
12371 (Vfont_log, font_log_env_checked): New variables.
12372 (font_add_log): New function.
12373 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
12374 Declare Lisp variables "font-weight-table", "font-slant-table",
12375 "font-width-table", and "font-log". Initialize font_style_table.
12376
123772008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
12378
12379 * xterm.c (x_set_frame_alpha): Move declarations before statements.
12380
123812008-05-21 Seiji Zenitani <zenitani@mac.com>
4e2af782 12382 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
12383
12384 * frame.c (Qalpha): Add a new frame parameter `alpha'.
12385 (Vframe_alpha_lower_limit): New variable.
12386 (x_set_alpha): New function.
12387
12388 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
12389
12390 * xfns.c (x-create-frame, Qalpha):
12391 Initialize the frame parameter `alpha'.
12392 * xterm.c (OPAQUE, OPACITY): New.
12393 (x_set_frame_alpha): New function.
12394 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
12395
12396 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
12397 * w32fns.c (w32_frame_parm_handlers): Likewise.
12398
123992008-05-20 Jason Rumney <jasonr@gnu.org>
12400
12401 * w32font.c (add_font_entity_to_list): Don't add non-opentype
12402 truetype fonts to opentype list.
12403
124042008-05-20 Juanma Barranquero <lekktu@gmail.com>
12405
12406 * fontset.c (Ffontset_info): Doc fix.
12407 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
12408 <ignore-relative-composition>: Fix typos in docstrings.
12409
12410 * font.c (syms-of-font) <font-encoding-alist>:
12411 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
12412 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
12413 (Ffont_otf_alternates): Doc fixes.
12414
124152008-05-20 Kenichi Handa <handa@m17n.org>
12416
12417 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
12418 font.h through out the file.
12419 (FONT_DRIVERS): Rename from FONTOBJ.
12420 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
12421 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
12422
12423 * emacs.c (main): Call syms_of_font unconditionally.
12424
12425 * font.h (find_font_encoding): Extern it.
12426
12427 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
12428 fontset.c.
194d44e7 12429 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
12430 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
12431 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
12432 only when HAVE_WINDOW_SYSTEM is defined.
12433 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
12434 when HAVE_WINDOW_SYSTEM is defined.
12435
12436 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
12437 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
12438
12439 * xfaces.c: Include font.h unconditionally.
12440 (merge_face_ref, merge_face_vectors)
12441 (Finternal_set_lisp_face_attribute): Cancel the previous change.
12442
124432008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
12444
12445 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
12446 indirect_variable.
12447 * eval.c (lisp_indirect_variable): New fun.
12448 (Fuser_variable_p): Use it.
12449
124502008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
12451
12452 * lisp.h (indirect_variable):
12453 * data.c (indirect_variable, let_shadows_buffer_binding_p):
12454 Use Lisp_Symbol pointers rather than Lisp_Object.
12455 Adjust callers.
12456 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
12457 To this end, change calling-convention.
12458
12459 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
12460 if some non-hidden buffers are selected by string&pred.
12461
124622008-05-19 Chong Yidong <cyd@stupidchicken.com>
12463
12464 * process.c (wait_reading_process_output): Always check status
12465 when in batch mode.
12466
124672008-05-19 Kenichi Handa <handa@m17n.org>
12468
12469 * font.c (font_list_entities): Fix handling of cache.
12470 (font_matching_entity): Likewise.
12471
12472 * ftfont.c (cs_iso8859_1): Delete.
12473 (ft_face_cache): New variable.
12474 (struct ftfont_info): New member fc_charset_idx.
12475 (ftfont_build_basic_charsets): Delete.
12476 (fc_charset_table): New variable.
12477 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
12478 . FC_CHARSET_IDX) as :font-entity property in the font entity.
12479 Callers changed.
12480 (ftfont_lookup_cache, ftfont_get_charset): New functions.
12481 (ftfont_spec_pattern): New argument fc_charset_idx.
12482 Check registry more rigidly. Change callers.
12483 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
12484 change of :font-entity property of the font.
12485
12486 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
12487 property of the font.
12488
124892008-05-18 Juanma Barranquero <lekktu@gmail.com>
12490
12491 * coding.c (Fcoding_system_p): Rename argument to match docstring.
12492 (Funencodable_char_position, Fcheck_coding_systems_region)
12493 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
12494 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
12495 (Ffind_operation_coding_system, Fset_coding_system_priority)
12496 (Fcoding_system_eol_type): Doc fixes.
12497
124982008-05-17 Glenn Morris <rgm@gnu.org>
12499
12500 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
12501
125022008-05-16 Eli Zaretskii <eliz@gnu.org>
12503
12504 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
12505 and st_gid.
12506
12507 * frame.c (Fdelete_frame): Don't call font_update_drivers if
12508 HAVE_WINDOW_SYSTEM is not defined.
12509
12510 * xfaces.c (merge_face_ref, merge_face_vectors)
12511 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
12512 HAVE_WINDOW_SYSTEM is defined.
12513 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
12514
125152008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
12516
12517 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
12518
125192008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12520
12521 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
12522
125232008-05-15 Kenichi Handa <handa@m17n.org>
12524
12525 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
12526 preference.
12527
125282008-05-15 Glenn Morris <rgm@gnu.org>
12529
12530 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
12531
125322008-05-15 Chong Yidong <cyd@stupidchicken.com>
12533
12534 * fns.c (init_fns): Don't initialize weak_hash_tables here.
12535 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
12536
12537 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
12538
125392008-05-15 Kenichi Handa <handa@m17n.org>
12540
12541 * ftfont.c (ftfont_list): Downcase family name to check generic
12542 families.
12543
12544 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
12545 font-spec for QCfont value.
12546
12547 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
12548 buffer. Check the return value of it.
12549
125502008-05-14 Jason Rumney <jasonr@gnu.org>
12551
12552 * w32term.c (w32_get_glyph_overhangs): Remove.
12553 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
12554
125552008-05-14 Kenichi Handa <handa@m17n.org>
12556
12557 * font.c (font_prop_validate): Make nil a valid value.
12558 (font_clear_cache): Check if the cached vector of entities is nil
12559 or not.
12560
125612008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12562
12563 * emacs.c (main_thread): Conditionalize on
12564 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
12565 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
12566
12567 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
12568 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
12569 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
12570
125712008-05-14 Kenichi Handa <handa@m17n.org>
12572
12573 * coding.c (detect_coding_iso_2022): Ignore a coding category that
12574 has no corresponding coding system.
12575
125762008-05-14 Jason Rumney <jasonr@gnu.org>
12577
12578 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
12579
12580 * w32font.h (w32font_open_internal): Update declaration.
12581
12582 * w32font.c (w32font_open_internal): Change last argument from
12583 w32font_info struct to font object. Fill in font object from
12584 font_entity. Get Outline metrics if possible. Use them to
12585 calculate underline position and thickness. Use xlfd name as name
12586 property. Don't set codepage.
12587 (w32font_open): Pass font_object to w32font_open_internal. Don't
12588 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
12589 (w32font_draw): Use s->font.
12590 (clear_cached_metrics): Don't clear non-existent blocks.
12591
12592 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
12593 font was not found.
12594 (x_draw_glyph_string): Use underline position and thickness from font.
12595
12596 * w32uniscribe.c (uniscribe_open): Pass font_object to
12597 w32font_open_internal.
12598
125992008-05-14 Kenichi Handa <handa@m17n.org>
12600
12601 These changes are to delete all legacy font-handling codes, and
12602 make Emacs use only font-backends.
12603
12604 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
12605 (frame.o, image.o, print.o): Depend on $(FONTSRC).
12606
12607 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
12608
12609 * charset.h (Vcharset_non_preferred_head)
12610 (Vcurrent_iso639_language): Extern them.
12611
12612 * charset.c (Vcharset_non_preferred_head): New variable.
12613 (Vcurrent_iso639_language): New variable.
12614 (syms_of_charset): Declare it as a Lisp variable.
12615 (char_charset): Don't check non preferred charsets. As a last
12616 resort, return charset_unicode.
12617 (Fset_charset_priority): Update Vcharset_non_preferred_head.
12618
12619 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
12620 conditionals. Don't check enable_font_backend. Delete all codes
12621 used only when USE_FONT_BACKEND is not defined.
12622
12623 * dispextern.h (struct glyph_string): Change type of `font' to
12624 `struct font *'.
12625 (struct glyph_string): New member underline_position and
12626 underline_thickness.
12627 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
12628 (struct face): Change type of `font' to `struct font *'. Remove
12629 members `font_name', `font_info_id'.
12630 (per_char_metric, encode_char): Delete externs.
12631 (calc_pixel_width_or_height): Adjust the prototype.
12632
12633 * emacs.c (enable_font_backend): Delete extern.
12634 (main): Don't set enable_font_backend. Don't check the command
12635 line argument "-disable-font-backend".
12636
12637 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
12638 (enum font_property_index): New members FONT_DPI_INDEX,
12639 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
12640 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
12641 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
12642 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
12643 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
12644 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
12645 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
12646 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
12647 (struct font_spec, struct font_entity): New structs.
12648 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
12649 (struct font): Many members from old "struct font_info" moved to
12650 here. Members font and entity deleted.
12651 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
12652 the new font-related objects.
12653 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
12654 (CHECK_FONT_GET_OBJECT): Likewise.
12655 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
12656 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
12657 (struct font_driver): New members case_sensitive anc check. Type
12658 of the member list and open changed.
12659 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
12660 (font_symbolic_width, font_find_object, font_get_spec)
12661 (font_set_lface_from_name): Delete extern.
12662 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
12663
12664 * font.c: Include <strings.h>.
12665 (enable_font_backend): Delete it.
12666 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
12667 (CHECK_VALIDATE_FONT_SPEC): Delete it.
12668 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
12669 (null_string): Delete it.
12670 (null_vector): Make it static.
12671 (font_family_alist): Delete it.
12672 (Qnormal): Extern it.
12673 (QCextra, QClanguage): Delete it.
12674 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
12675 (font_make_spec, font_make_entity, font_make_object)
12676 (font_intern_prop): Renamed from intern_downcase. Don't downcase
12677 the string. Callers changed.
12678 (font_pixel_size): Adjusted for the format change of font-related
12679 objects.
12680 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
12681 (font_style_to_value, font_style_symbolic): New function.
12682 (build_font_family_alist): Delete it.
12683 (font_registry_charsets): Use Fassoc_string instead of
12684 assq_no_quit.
12685 (font_prop_validate_symbol): Don't return null_string.
12686 (font_prop_validate_style): Adjusted for the change of
12687 style-related values in a font vector.
12688 (font_property_table): Delete entries for QClanguage and
12689 QCantialias, add entries for QCavgwidth.
12690 (get_font_prop_index): Delete the 2nd argument FROM.
12691 (font_prop_validate): Arguments changed.
12692 (font_put_extra): Adjusted for the change of font-related objects.
12693 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
12694 (font_parse_fcname, font_unparse_fcname)
12695 (font_prepare_composition): Likewise.
12696 (font_parse_family_registry): Renamed from font_merge_old_spec.
12697 (otf_open): Delete the 1st arg entity.
12698 (font_otf_capability): Adjusted for the above change.
12699 (font_score): New arg alternate_families. Adjusted for the change
12700 of font-related objects.
12701 (font_sort_entites): New arg best_only.
12702 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
12703 Delete them.
12704 (font_match_p): Check alternate families.
12705 (font_find_object): Delete it.
12706 (font_check_object): New function.
12707 (font_clear_cache): Adjusted for the change of font-related objects.
12708 (font_delete_unmatched): New arg.
12709 (font_list_entities): Call font_driver->list with a spec that
12710 doesn't specify style-related properties.
12711 (font_matching_entity): Arguments changed. Caller changed.
12712 (font_open_entity): Adjusted for the change of font-related objects.
12713 (font_close_object, font_has_char, font_encode_char)
12714 (font_get_name, font_get_spec): Likewise.
12715 (font_spec_from_name, font_clear_prop, font_update_lface):
12716 New functions.
12717 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
12718 (font_prepare_for_face, font_done_for_face, font_open_by_name)
12719 (font_at): Adjusted for the change of font-related objects.
12720 (font_range): New function.
12721 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
12722 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
12723 (Fcopy_font_spec, Fmerge_font_spec): New function.
12724 (Ffont_family_list): Renamed from list-families.
12725 (Finternal_set_font_style_table): Arguments changed.
12726 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
12727 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
12728 change of font-related objects.
12729 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
12730
12731 * fontset.h (struct font_info): Delete it. Most members go to
12732 struct font.
12733 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
12734 (enum FONT_SPEC_INDEX): Delete it.
12735 (font_info, list_fonts_func, load_font_func, query_font_func)
12736 (set_frame_fontset_func, find_ccl_program_func)
12737 (get_font_repertory_func, new_fontset_from_font_name): Delete
12738 externs.
12739 (fontset_from_font_name): Extern it.
12740 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
12741 (FONT_INFO_FROM_FACE): Deleted.
12742 (face_for_font): Adjust prototype.
12743
12744 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
12745 conditionals. Don't check enable_font_backend. Delete all codes
12746 used only when USE_FONT_BACKEND is not defined.
12747 (get_font_info_func, list_font_func, load_font_func)
12748 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
12749 (get_font_repertory_func): Delete them.
12750 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
12751 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
12752 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
12753 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
12754 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
12755 (fontset_compare_rfontdef): New function.
12756 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
12757 rfont-defs by qsort. Adjusted for the change of font-group vector.
12758 (load_font_get_repertory): Deleted.
12759 (fontset_find_font): Use new macros to ref/set elements of
12760 font-def and rfont-def.
12761 (fontset_font): Fix the timing of remembering that no font for C.
12762 (free_face_fontset): Do nothing if the face has no fontset.
12763 (face_suitable_for_char_p): Use new macros to ref/set elements of
12764 rfont-def.
12765 (face_for_char): Likewise. Call face_for_char with font_object.
12766 (fs_load_font): Delete. Delete #pragma surrounding it.
12767 (fs_query_fontset): Use strcasecmp instead of strcmp.
12768 (generate_ascii_font_name): Adjusted for the format change of
12769 font-spec.
12770 (Fset_fontset_font): Likewise. Use new macros to set elements of
12771 font-def.
12772 (Fnew_fontset): Use font_unparse_xlfd to generate
12773 FONTSET_ASCII (fontset).
12774 (new_fontset_from_font_name): Deleted.
12775 (fontset_from_font): Renamed from new_fontset_from_font. Check if
12776 a fontset is already created for the font. FIx updating of
12777 Vfontset_alias_alist.
12778 (fontset_ascii_font): Deleted.
12779 (Ffont_info): Adjusted for the format change of font-spec.
12780 (Finternal_char_font): Likewise.
12781 (Ffontset_info): Likewise.
12782 (syms_of_fontset): Don't check load_font_func.
12783
12784 * fns.c (internal_equal): Handle PREV_FONT.
12785
12786 * frame.h: Delete USE_FONT_BACKEND conditional.
12787
12788 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
12789 conditionals. Don't check enable_font_backend. Delete all codes
12790 used only when USE_FONT_BACKEND is not defined.
12791 (x_set_font): Call x_new_font, not x_new_fontset2.
12792 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
12793 already set for the frame.
12794
12795 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
12796 a font-entity by font_make_entity. Use font_intern_prop instead
12797 of intern_downcase. Use FONT_SET_STYLE to set a style-related
12798 font property. If a font is scalable, set avgwidth property to 0.
12799 Set font-entity property by font_put_extra.
12800 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
12801 (ffont_driver): Adjusted for the change of struct font_driver.
12802 (ftfont_spec_pattern): New function.
12803 (ftfont_list): Return a list, not vector.
12804 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
12805 (ftfont_list_family): Don't downcase names.
12806 (ftfont_free_entity): Deleted.
12807 (ftfont_open): Return a font-object. Adjusted for the change of
12808 struct font. Get underline_thickness and underline_position from
12809 font property. Don't update dpyinfo->smallest_font_height and
12810 dpyinfo->smallest_char_width.
12811 (ftfont_close): Don't free `struct font'.
12812 (ftfont_has_char): Adjusted for the format change of font-entity.
12813 (ftfont_encode_char, ftfont_text_extents): Likewise.
12814
12815 * ftxfont.c (ftxfont_list): Return a list, not vector.
12816 (ftxfont_open): Return a font-object. Adjusted for the change of
12817 struct font. Get underline_thickness and underline_position from
12818 font property. Don't update dpyinfo->smallest_font_height and
12819 dpyinfo->smallest_char_width.
12820 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
12821 (ftxfont_draw): Adjusted for the change of struct font.
12822
12823 * image.c (image_ascent): Don't include "charset.h". Include
12824 "character.h" and "font.h".
12825
12826 * lisp.h (enum pvec_type): New member PREV_FONT.
12827 (Fassoc_string): EXFUN it.
12828
12829 * print.c: Include font.h.
12830 (print_object): Handle font-related objects.
12831
12832 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
12833 conditionals. Don't check enable_font_backend. Delete all codes
12834 used only when USE_FONT_BACKEND is not defined.
12835 (handle_auto_composed_prop): Do nothing if it->f is not on a
12836 window system. Check how many following characters can be
12837 displayed by the same font.
12838 (calc_pixel_width_or_height): Type of the 4th arg is changed to
12839 'struct font *'.
12840 (get_char_face_and_encoding): Assign the whole encoding task to
12841 the `encode-char' method of a font driver.
12842 (fill_composite_glyph_string): Adjusted for the change of `struct
12843 face' and `struct glyph_string'.
12844 (fill_glyph_string): Likewise.
12845 (get_per_char_metric): Arguments changed.
12846 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
12847 and `struct glyph_string'.
12848 (produce_stretch_glyph, calc_line_height_property)
12849 (x_produce_glyphs): Likewise.
12850
12851 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
12852 conditionals. Don't check enable_font_backend. Delete all codes
12853 used only when USE_FONT_BACKEND is not defined. Use
12854 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
12855 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
12856 (Qp): Extern them.
12857 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
12858 Deleted.
12859 (struct font_name): Deleted.
12860 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
12861 (compare_fonts_by_sort_order): New function.
12862 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
12863 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
12864 Deleted.
12865 (Fx_family_fonts): Use font_list_entities, and sort fonts by
12866 compare_fonts_by_sort_order.
12867 (Fx_font_family_list): Call Ffont_family_list.
12868 (face_numeric_value, face_numeric_weight, face_numeric_slant)
12869 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
12870 (face_symbolic_slant, face_symbolic_swidth)
12871 (split_font_name_into_vector, build_font_name_from_vector)
12872 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
12873 (font_rescale_ratio, split_font_name, build_font_name)
12874 (free_font_names, sort_fonts, x_face_list_fonts)
12875 (face_font_available_p, sorted_font_list, cmp_font_names)
12876 (font_list_1, concat_font_list, font_list, remove_duplicates):
12877 Deleted.
12878 (Fx_list_fonts): Use Ffont_list.
12879 (LFACE_AVGWIDTH): Deleted.
12880 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
12881 by FONTP.
12882 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
12883 (set_lface_from_font_name): Delete it.
12884 (set_lface_from_font): Renamed from
12885 set_lface_from_font_and_fontset. Caller changed. Don't set
12886 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
12887 for face.
12888 (merge_face_vectors): Copy font-spec if necessary.
12889 Clear properties of the font-spec if necessary.
12890 (merge_face_ref): Clear properties of the font-spec if necessary.
12891 (Finternal_set_lisp_face_attribute): Likewise.
12892 (set_font_frame_param): Use font_load_for_lface to load a
12893 font-object, and call Fmodify_frame_parameters with it.
12894 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
12895 font name by Ffont_xlfd_name.
12896 (Finternal_lisp_face_attribute_values): Don't check QCweight,
12897 QCslant, and QCwidth.
12898 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
12899 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
12900 Compare fonts by EQ.
12901 (lookup_non_ascii_face): Deleted.
12902 (face_for_font): The 2nd argument changed.
12903 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
12904 Check atomic font properties by case insensitive.
12905 (realize_non_ascii_face): Set face->overstrike correctly.
12906 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
12907 (dump_realized_face): Get font name from
12908 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
12909
12910 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
12911 conditionals. Don't check enable_font_backend. Delete all codes
12912 used only when USE_FONT_BACKEND is not defined.
12913 (xic_create_xfontset): Original code deleted and renamed from
12914 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
12915 (x_make_gc): Don't set GCFont in GCs.
12916 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
12917 opened by "fixed".
12918 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
12919 find_ccl_program_func, query_font_func, set_frame_fontset_func,
12920 get_font_repertory_func.
12921
12922 * xfont.c: Include <stdlib.h> and "ccl.h".
12923 (struct xfont_info): New structure.
12924 (xfont_query_font): Deleted.
12925 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
12926 moved from xterm.c.
12927 (xfont_driver): Adjusted for the change of struct font_driver.
12928 (compare_font_names): New function.
12929 (xfont_list_pattern): Sort font names case insensitively. Make
12930 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
12931 (xfont_list): Return a list, not vector.
12932 (xfont_match): If the font doesn't have QCname property, generate
12933 a name from the other font properties.
12934 (xfont_open): Return a font-object. Adjusted for the change of
12935 struct font. Get underline_thickness and underline_position from
12936 font property. Don't update dpyinfo->smallest_font_height and
12937 dpyinfo->smallest_char_width.
12938 (xfont_close): Don't free struct font.
12939 (xfont_prepare_face): Adjusted for the change of struct font.
12940 (xfont_done_face): Deleted.
12941 (xfont_has_char): Adjusted for the change of struct font.
12942 (xfont_encode_char, xfont_draw): Likewise.
12943 (xfont_check): New function.
12944
12945 * xftfont.c (xftfont_list): Adjusted for the change of `list'
12946 callback function.
12947 (xftfont_match): Adjusted for the format change of font-entity.
12948 (xftfont_open): Adjusted for the format change of font-entity and
12949 font-object. Adjusted for the change of struct font. Return a
12950 font-object. Don't update dpyinfo->smallest_font_height and
12951 dpyinfo->smallest_char_width.
12952 (xftfont_close): Block input while calling XftFontClose.
12953 (xftfont_prepare_face): Don't block input while calling
12954 xftfont_get_colors. Adjusted for the change of struct font.
12955 (xftfont_shape): Return value of error case fixed.
12956
12957 * xrdb.c (x_load_resources): Don't setup a fontset resource.
12958
12959 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
12960 conditionals.
12961 (FONT_WIDTH): Return (f)->max_width.
12962 (struct x_display_info): Delete member `font'.
12963 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
12964 (x_find_ccl_program, x_get_font_repertory): Delete externs.
12965 (struct x_output): Change type of `font' to `struct font *'.
12966
12967 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
12968 conditionals. Don't check enable_font_backend. Delete all codes
12969 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
12970 (x_per_char_metric, x_encode_char): Deleted.
12971 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
12972 (x_compute_glyph_string_overhangs): Adjusted for the change of
12973 `struct face'.
12974 (x_draw_glyph_string_foreground)
12975 (x_draw_composite_glyph_string_foreground): Likewise.
12976 (x_draw_glyph_string): Likewise. Use font->underline_position and
12977 font->underline_thickness.
12978 (x_new_font): Renamed from x_new_fontset2.
12979 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
12980 (x_check_font): Call `check' method of a font driver.
12981 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
12982 (x_query_font, x_get_font_repertory): Deleted.
12983 (x_find_ccl_program): Renamed and moved to xfont.c.
12984 (x_redisplay_interface): Adjusted for the change of `struct
12985 redisplay_interface'.
12986
12987 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
12988 conditionals. Don't check enable_font_backend. Delete all codes
12989 used only when USE_FONT_BACKEND is not defined. Surround non-used
12990 code by "#ifdef OLD_FONT" and "endif".
12991 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
12992
12993 * w32font.h (struct w32font_info): New member.
12994 (FONT_COMPAT): New macro.
12995 (w32font_open_internal): Prototype adjusted.
12996
12997 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
12998 OLD_FONT" and "endif".
12999
13000 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
13001 conditionals. Don't check enable_font_backend. Delete all codes
13002 used only when USE_FONT_BACKEND is not defined.
13003 (w32font_open): Return a font-object. Make a font-object by
13004 font_make_object. Adjusted for the change of struct w32font_info.
13005 (w32font_close): Don't free struct font. Adjusted for the change
13006 of struct w32font_info.
13007 (w32font_encode_char, w32font_text_extents, w32font_draw):
13008 Adjusted for the change of struct w32font_info.
13009 (w32font_draw): Likewise.
13010 (w32font_list_internal): Return a list, not vector.
13011 (w32font_open_internal): Change the 4th arg to font-object.
13012 Adjusted for the change of struct w32font_info and font-object format.
13013 (add_font_name_to_list): Don't downcase names.
13014 (w32_enumfont_pattern_entity): Make a font-entity by
13015 font_make_entity. Adjusted for the format change of font-entity.
13016 Use FONT_SET_STYLE to set a style-related font property. If a
13017 font is scalable, set avgwidth property to 0. Set font-entity
13018 property by font_put_extra.
13019 (font_matches_spec): Adjusted for the format change of font-entity.
13020 (w32_weight_table, w32_decode_weight): New variables.
13021 (w32_encode_weight): New function.
13022 (fill_in_logfont): Adjusted for the format change of font-spec.
13023 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
13024 weight value.
13025 (w32font_driver): Adjusted for the change of struct font_driver.
13026
13027 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
13028 conditionals. Don't check enable_font_backend. Surround non-used
13029 code by "#ifdef OLD_FONT" and "endif".
13030 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
13031 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
13032
13033 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
13034 conditionals. Don't check enable_font_backend. Delete all codes
13035 used only when USE_FONT_BACKEND is not defined. Surround non-used
13036 code by "#ifdef OLD_FONT" and "endif".
13037
13038 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
13039 (uniscribe_open): Return value changed to font-object.
13040 Adjusted for the format change of font-object.
13041 (uniscribe_otf_capability): Adjusted for the change of struct font.
13042 (add_opentype_font_name_to_list): Don't downcase names.
13043 (uniscribe_font_driver): Adjusted for the change of struct
13044 font_driver.
13045
130462008-05-13 Chong Yidong <cyd@stupidchicken.com>
13047
13048 * dispnew.c (update_frame_1): Check if tty output is still valid
13049 before flushing it.
13050
130512008-05-13 Jan Djärv <jan.h.d@swipnet.se>
13052
13053 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
13054 to Gtk+ menus.
13055
130562008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
13057
13058 * dired.c (file_name_completion): Tweak the code so as to always do it
13059 in a single pass. Tighten the scope of some variables.
13060
13061 * dired.c (Qdefault_directory): New var.
13062 (file_name_completion): Use it instead of Fexpand_file_name.
13063 (syms_of_dired): Initialize it.
13064
130652008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
13066
13067 * fileio.c (double_dollars): Remove dead code.
13068
130692008-05-10 Eli Zaretskii <eliz@gnu.org>
13070
13071 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
13072 Mention w32-get-true-file-attributes in doc string.
13073
13074 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
13075
130762008-05-09 Glenn Morris <rgm@gnu.org>
13077
13078 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
13079 2008-04-23.
13080
130812008-05-09 Eli Zaretskii <eliz@gnu.org>
13082
13083 Support for reporting owner and group of each file on MS-Windows:
13084 * dired.c (stat_uname, stat_gname): New functions, with special
13085 implementation for w32.
13086 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
13087
13088 * w32.c: Rename the_passwd_* to dflt_passwd_*.
13089 (dflt_group_name): New static variable.
13090 (dflt_group): Rename from the_group.
13091 (init_user_info): Init dflt_group fields. Get user's group name
13092 from LookupAccountSid.
13093 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
13094 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
13095 New initialization states.
13096 (globals_of_w32): Initialize them to zero. Initialize the default
13097 group name to "None".
13098 (GetFileSecurity_Name): New global var, the name of the function
13099 to call for GetFileSecurity.
13100 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
13101 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
13102 (get_file_security, get_security_descriptor_owner)
13103 (get_security_descriptor_group, is_valid_sid)
13104 (get_file_security_desc, get_rid, get_name_and_id)
13105 (get_file_owner_and_group): New functions.
13106 (stat): Use get_file_security_desc and get_file_owner_and_group to
13107 report the owner and primary group of each file. Don't ignore the
13108 high 32 bits of file's size, now that st_size is 64-bit wide.
13109 Fix test when to get true file attributes.
13110 (init_user_info): Use get_rid instead of equivalent inline code.
13111 (fstat): Don't ignore the high 32 bits of file's size.
13112
131132008-05-09 Chong Yidong <cyd@stupidchicken.com>
13114
13115 * image.c (png_load): Use correct bit-depth for setting background
13116 color.
13117
131182008-05-08 Eli Zaretskii <eliz@gnu.org>
13119
13120 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
13121 epa-hook.elc.
13122
131232008-05-08 Juanma Barranquero <lekktu@gmail.com>
13124
13125 * font.c (Ffont_match_p): Don't use `iff' in docstring.
13126
131272008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
13128
13129 * macfns.c (Fx_create_frame): Make a copy of frame parameters
13130 because the original parameters are in pure storage now.
13131 (mac_window): Remove unused params. Update callers.
13132
131332008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
13134
13135 * lread.c (substitute_object_recurse): Use lower-level primitives.
13136 Don't signal errors when traversing sub-char-tables.
13137 Don't loop over all the possible characters when traversing char-tables.
13138
13139 * print.c (print_preprocess): Add sub-char-tables to the print-table,
13140 just like we do in print.c.
13141
131422008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
13143
13144 * minibuf.c (Ftry_completion): Remove code left over from when we used
13145 scmp instead of Fcompare_strings.
13146
131472008-05-04 Juanma Barranquero <lekktu@gmail.com>
13148
13149 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
13150
131512008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13152
13153 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
13154 Create bitmap context in native byte order.
13155
13156 * macterm.c (XDrawLine)
13157 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
13158 context in native byte order.
13159
131602008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13161
13162 * config.in: Regenerate.
13163
13164 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
13165 New definitions for Image I/O support.
13166 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
13167 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
13168 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
13169 (mac_data_provider_release_data, image_load_image_io)
13170 [USE_MAC_IMAGE_IO]: New functions.
13171 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
13172 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
13173 (init_image_func_pointer) [MAC_OSX]: Remove function.
13174 (image_load_quartz2d) [MAC_OSX]: Check availability of
13175 CGImageCreateWithPNGDataProvider at compile time.
13176 Use lowercase `false' for boolean constant.
13177 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
13178 Use image_load_image_io.
13179 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
13180 Don't check MyCGImageCreateWithPNGDataProvider.
13181 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
13182 Don't call init_image_func_pointer.
13183
13184 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
13185
13186 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
13187 Make variable non-static.
13188 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
13189 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
13190
13191 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
13192 (RED_FROM_ULONG): Mask off higher bits.
13193 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
13194
13195 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
13196 Include AvailabilityMacros.h.
13197 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
13198 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
13199
132002008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
13201
13202 * chartab.c (Fset_char_table_range): If range is t, really set all
13203 chars to that value.
13204
132052008-05-03 Eli Zaretskii <eliz@gnu.org>
13206
13207 * dired.c (Ffile_attributes): Don't allow the device number become
13208 negative.
13209
132102008-05-02 Daiki Ueno <ueno@unixuser.org>
13211
13212 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
13213
132142008-05-02 Juri Linkov <juri@jurta.org>
13215
13216 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
13217 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
13218 DEFAULT argument as a list of default values in docstrings.
13219
132202008-05-01 Chong Yidong <cyd@stupidchicken.com>
13221
13222 * puresize.h (BASE_PURESIZE): Increase to 1210000.
13223
132242008-05-01 Martin Rudalics <rudalics@gmx.at>
13225
13226 * dispnew.c (change_frame_size_1): Preserve small windows when
13227 shrinking frames by calling set_window_height|width with third
13228 arg 2.
13229
13230 * window.h (struct window): Replace field too_small_ok by field
13231 resize_proportionally.
13232
13233 * window.c (make_window): Initialize resize_proportionally.
13234 (enlarge_window): Temporarily set resize_proportionally to make
13235 sure that shrink_windows does scale the window proportionally.
13236 (shrink_windows): When window has resize_proportionally set try
13237 to shrink it proportionally by stealing from other windows.
13238 (struct saved_window, Fset_window_configuration)
13239 (compare_window_configurations): Handle resize_proportionally.
13240 (WINDOW_TOTAL_SIZE): New macro.
13241 (window_min_size, shrink_windows, size_window): Use it.
13242 (check_min_window_sizes): Remove. Invalid values of
13243 window-min-height|width are handled by window_min_size_2 now.
13244 (size_window, Fsplit_window, enlarge_window)
13245 (adjust_window_trailing_edge, grow_mini_window): Don't call
13246 check_min_window_sizes.
13247 (window_min_size_2, window_min_size_1, window_min_size):
13248 New argument safe_p for retrieving "safe" minimum sizes.
13249 (Fdisplay_buffer, Fsplit_window, enlarge_window)
13250 (adjust_window_trailing_edge, grow_mini_window):
13251 Adjust arguments of window_min_size... functions.
13252 (shrink_windows): Argument min_size removed. New argument
13253 safe_p allows shrinking windows to their safe minimum sizes.
13254 Calculate minimum size and decide whether a window shall be
13255 deleted for each window individually.
13256 (size_window): When nodelete_p equals 2, tell shrink_windows to
13257 delete windows only if their new minimum size is no more safe.
13258 (shrink_window_lowest_first): Call window_min_size_1 to make
13259 sure to preserve modeline of bottom-most window when resizing
13260 the minibuffer.
13261 (Fset_window_configuration, Fcurrent_window_configuration)
13262 (compare_window_configurations): Do not handle
13263 window-min-height|width any more.
13264 (syms_of_window): Clarify window-min-height|width doc-strings.
13265
132662008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
13267
13268 * dired.c (file_name_completion): Fix up the encoding/decoding issue
13269 some more. Copy some of the code from Ftry_completions.
13270 Remove special case code that dates back to initial revision when the
13271 slash was only added when necessary and that can't trigger nowadays.
13272
132732008-04-27 Kenichi Handa <handa@m17n.org>
13274
13275 * font.c (font_prop_validate): Signal `error' instead of `font'.
13276
132772008-04-29 Jason Rumney <jasonr@gnu.org>
13278
13279 * w32fns.c (Fw32_battery_status): New defun.
13280 (syms_of_w32fns): Defsubr it.
13281
132822008-04-28 Andreas Schwab <schwab@suse.de>
13283
13284 * dired.c (file_name_completion): Fix another mixing of encoded
13285 and decoded names.
13286
132872008-04-28 Juanma Barranquero <lekktu@gmail.com>
13288
13289 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
13290
132912008-04-27 Juanma Barranquero <lekktu@gmail.com>
13292
13293 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
13294
132952008-04-27 Andreas Schwab <schwab@suse.de>
13296
13297 * dired.c (file_name_completion): Fix inappropriate mixing of
13298 encoded and decoded names.
13299
13300 * xterm.c (XTread_socket): Fix use of uninitialized variable.
13301
13302 * puresize.h (BASE_PURESIZE): Increase to 1200000.
13303
133042008-04-26 Eli Zaretskii <eliz@gnu.org>
13305
13306 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
13307 2008-03-31, it's not needed anymore with `struct stat' definition
13308 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
13309 for the same reasons.
13310
133112008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
13312
13313 * m/sparc.h: Additional redefinitions for GNU/Linux.
13314
133152008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13316
13317 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
13318 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
13319 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
13320 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
13321 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
13322 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
13323 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
13324 Likewise.
13325
13326 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
13327 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
13328 (mac_ax_number_of_characters): Add externs.
13329 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
13330 [USE_MAC_TSM]: Likewise.
13331 (mac_handle_text_input_event) [MAC_OSX]:
13332 Handle kEventTextInputOffsetToPos for no active input area case.
13333 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
13334 (mac_handle_document_access_event)
13335 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
13336 (install_application_handler) [MAC_OSX]: Register handlers for
13337 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
13338 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
13339 Register mac_handle_document_access_event.
13340
13341 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
13342 Make functions non-static.
13343
133442008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
13345
13346 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
13347 (read_file_name_completion_ignore_case, insert_default_directory)
13348 (Qdefault_directory): Move to minibuffer.el.
13349 (Fread_file_name): Call the new `read-file-name' instead.
13350
133512008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13352
13353 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
13354 Make function non-static.
13355 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
13356 Remove function.
13357 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
13358 Move to mactoolbox.c.
13359 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
13360
13361 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
13362 (mac_rect_make): New macro.
13363
13364 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
13365 instead of float.
13366 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
13367 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
13368 (XSetBackground) [USE_CG_DRAWING]: Likewise.
13369 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
13370 CGRectMake.
13371 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
13372 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
13373 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
13374 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
13375 instead of WindowRef in argument type.
13376 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
13377 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
13378 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
13379 instead of DISPLAY. All uses changed.
13380 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
13381 (x_calc_absolute_position): Simplify so as not to use
13382 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
13383
13384 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
13385 instead of WindowRef in argument type.
13386 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
13387 [TARGET_API_MAC_CARBON]: Remove externs.
13388 (create_apple_event, mac_event_parameters_to_lisp)
13389 [TARGET_API_MAC_CARBON]: Add externs.
13390
13391 * mactoolbox.c (Vmac_ts_script_language_on_focus)
13392 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
13393 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
13394 is clicked.
13395 (x_activate_menubar): Remove extern for saved_menu_event_location.
13396 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
13397 Move from mac.c.
13398
133992008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13400
13401 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
13402 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
13403
134042008-04-23 Jason Rumney <jasonr@gnu.org>
13405
13406 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
13407 attributes only for local files.
13408
13409 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
13410 default to Qlocal.
13411
134122008-04-22 Juri Linkov <juri@jurta.org>
13413
13414 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
13415 read-buffer-to-switch instead of using the letter "B".
13416
134172008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
13418
13419 * fileio.c (Qdefault_directory): New variable.
13420 (Fread_file_name): Use it to pass `dir' to the completion functions.
13421
134222008-04-20 Chong Yidong <cyd@stupidchicken.com>
13423
13424 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
13425
134262008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
13427
13428 * keyboard.c (Vpre_help_message): Remove.
13429 (show_help_echo): Remove default C code.
13430
13431 * dired.c (directory_files_internal, file_name_completion):
13432 Only call ENCODE_FILE if the string is indeed decoded.
13433
134342008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
13435
13436 * Makefile.in (TOOLKIT_DEFINES): Remove.
13437 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
13438
134392008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13440
13441 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
13442 (mactoolbox.o): New target.
13443
13444 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
13445 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
13446
13447 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
13448 Use mac_set_frame_window_background instead of XSetWindowBackground.
13449 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
13450 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
13451 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
13452 instead of SetWindowTitleWithCFString.
13453 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
13454 Move function to mactoolbox.c.
13455 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
13456 Use mac_set_window_modified instead of SetWindowModified.
13457 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
13458 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
13459 (Fx_focus_frame): Use mac_front_non_floating_window instead of
13460 FrontNonFloatingWindow. Use mac_activate_window instead of
13461 ActivateWindow. Use mac_active_non_floating_window instead of
13462 ActiveNonFloatingWindow.
13463 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
13464 Use mac_show_hourglass and mac_hide_hourglass.
13465 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
13466 instead of GetGlobalMouse.
13467 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
13468 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
13469 Use mac_bring_window_to_front instead of BringToFront.
13470 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
13471 mactoolbox.c.
13472 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
13473 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
13474 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
13475 mactoolbox.c.
13476
13477 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
13478 (XtPointer): Move typedef from macmenu.c.
13479 (enum button_type): Move enum from macmenu.c.
13480 (widget_value): Move typedef from macmenu.c.
13481 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
13482 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
13483 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
13484 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
13485 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
13486 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
13487 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
13488 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
13489 (Selection): Move typedef from macselect.c.
13490 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
13491 macterm.c.
13492 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
13493 (mac_is_window_collapsed, mac_bring_window_to_front)
13494 (mac_send_window_behind, mac_hide_window, mac_show_window)
13495 (mac_collapse_window, mac_front_non_floating_window)
13496 (mac_active_non_floating_window, mac_activate_window)
13497 (mac_move_window_structure, mac_move_window, mac_size_window)
13498 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
13499
13500 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
13501 (enum mac_menu_kind): Move enum to mactoolbox.c.
13502 (min_menu_id): Move variable to mactoolbox.c.
13503 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
13504 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
13505 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
13506 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
13507 [TARGET_API_MAC_CARBON]: Likewise.
13508 (XtPointer): Move typedef to macgui.h.
13509 (enum button_type): Move enum to macgui.h.
13510 (widget_value): Move typedef to macgui.h.
13511 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
13512 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
13513 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
13514 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
13515 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
13516 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
13517 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
13518 (popup_activated_flag): Make variable non-static.
13519 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
13520 (add_menu_item, fill_menu, dispose_menus):
13521 Move functions to mactoolbox.c.
13522 (restore_show_help_function, menu_target_item_handler)
13523 (install_menu_target_item_handler, mac_handle_dialog_event)
13524 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
13525 [TARGET_API_MAC_CARBON]: Likewise.
13526 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
13527 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
13528 (find_and_call_menu_selection, name_is_separator): Make function
13529 non-static.
13530 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
13531 to mactoolbox.c.
13532 (set_frame_menubar): Don't call install_menu_quit_handler.
13533 (menu_item_selection): New variable.
13534 (mac_menu_show): Use create_and_show_popup_menu.
13535 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
13536 selection but set variable menu_item_selection. All uses changed.
13537 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
13538 Call install_menu_quit_handler. Move to mactoolbox.c.
13539
13540 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
13541 (Selection): Move typedef to macgui.h.
13542 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
13543 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
13544 Make variables non-static.
13545 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
13546 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
13547 Make functions non-static.
13548 (Vmac_service_selection) [MAC_OSX]: Likewise.
13549 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
13550 (mac_valid_selection_target_p, mac_clear_selection)
13551 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
13552 (mac_put_selection_value, mac_selection_has_target_p)
13553 (mac_get_selection_value, mac_get_selection_target_list)
13554 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
13555 Move functions to mactoolbox.c.
13556 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
13557 Likewise.
13558 (copy_scrap_flavor_data, mac_handle_service_event)
13559 (install_service_handler) [MAC_OSX]: Likewise.
13560 (syms_of_macselect) <Vmac_dnd_known_types>:
13561 Use mac_dnd_default_known_types.
13562
13563 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
13564 Move to mactoolbox.c.
13565 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
13566 (Fx_selection_owner_p): Add EXFUN.
13567 (install_window_handler, remove_window_handler, XSetWindowBackground):
13568 Remove externs.
13569 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
13570 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
13571 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
13572 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
13573 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
13574 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
13575 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
13576 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
13577 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
13578 (create_and_show_popup_menu, mac_get_selection_from_symbol)
13579 (mac_valid_selection_target_p, mac_clear_selection)
13580 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
13581 (mac_put_selection_value, mac_selection_has_target_p)
13582 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
13583 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
13584 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
13585 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
13586 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
13587 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
13588 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
13589 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
13590 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
13591
13592 * mactoolbox.c: New file.
13593
135942008-04-18 Jason Rumney <jasonr@gnu.org>
13595
13596 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
13597
135982008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
13599
13600 * character.c (Fmultibyte_char_to_unibyte):
13601 Return latin1 chars unchanged.
13602
13603 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
13604 relocated if it points to `name'.
13605
136062008-04-17 Kenichi Handa <handa@m17n.org>
13607
13608 * data.c (Faset): Allow setting a multibyte character in an
13609 ASCII-only unibyte string.
13610
13611 * lisp.h (STRING_SET_MULTIBYTE): New macro.
13612
136132008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
13614
13615 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
13616 done in config.h.
13617
136182008-04-16 Juanma Barranquero <lekktu@gmail.com>
13619
13620 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
13621 (Fchar_direction): Add usage in the docstring.
13622
136232008-04-15 Chong Yidong <cyd@stupidchicken.com>
13624
13625 * keyboard.c (read_key_sequence): Remove always-true checks.
13626
136272008-04-14 Jason Rumney <jasonr@gnu.org>
13628
13629 * w32font.c (w32font_open_internal): Set max_bounds.descent in
13630 compatibility struct, for better underline positioning.
13631
136322008-04-13 David Hansen <david.hansen@gmx.net>
13633
13634 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
13635 string.
13636
136372008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
13638
13639 * m/hp800.h (XUINT, XSET): Remove.
13640
136412008-04-12 Juanma Barranquero <lekktu@gmail.com>
13642
13643 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
13644 previous change.
13645
136462008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
13647
13648 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
13649 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
13650
136512008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
13652
13653 * keymap.h (map_keymap_canonical): Declare.
13654 * xmenu.c (single_keymap_panes): Use it.
13655
136562008-04-11 Glenn Morris <rgm@gnu.org>
13657
13658 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
13659 set the target's value to that of the alias.
13660
136612008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
13662
13663 * term.c (set_tty_color_mode): Left over typo.
13664
136652008-04-10 Michael Albinus <michael.albinus@gmx.de>
13666
13667 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
13668 only after check for file name handler functions. Signal, when
13669 native functionality is not supported.
13670 (syms_of_fileio): Declare it unconditionally.
13671
136722008-04-10 Jason Rumney <jasonr@gnu.org>
13673
13674 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
13675 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
13676
13677 * w32.c (logon_network_drive): Also logon to remote drives that
13678 are mapped to drive letters.
13679
136802008-04-10 Glenn Morris <rgm@gnu.org>
13681
13682 * xdisp.c (truncate-partial-width-windows): Doc fix.
13683
136842008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
13685
13686 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
13687 Move functions to minibuffer.el.
13688 (syms_of_fileio): Don't declare them.
13689
136902008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
13691
13692 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
13693 (syms_of_minibuf): Remove its initialization.
13694
13695 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
13696
136972008-04-09 Juanma Barranquero <lekktu@gmail.com>
13698
13699 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
13700
137012008-04-09 Jason Rumney <jasonr@gnu.org>
13702
13703 * makefile.w32-in (distclean): Delete makefile too.
13704 (maintainer-clean): New target.
13705
13706 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
13707
13708 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
13709 for new font backend and composite cases.
13710
137112008-04-09 Jan Djärv <jan.h.d@swipnet.se>
13712
13713 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
13714 Most of the code moved to run_timers.
13715 (do_pending_atimers): Call run_timers.
13716 (run_timers): New function.
13717
13718 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
13719 run atimers.
13720
13721 * process.c (wait_reading_process_output): The same as above.
13722
137232008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
13724
13725 * minibuf.c (last_exact_completion): Remove variable.
13726 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
13727 (complete_and_exit_1, complete_and_exit_2)
13728 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
13729 (Fdisplay_completion_list, display_completion_list_1)
13730 (Fminibuffer_completion_help, Fself_insert_and_exit)
13731 (Fexit_minibuffer, Fminibuffer_message): Move functions to
13732 minibuffer.el.
13733 (syms_of_minibuf): Remove corresponding initializations.
13734
13735 * keyboard.c (Qdeactivate_mark): New var.
13736 (command_loop_1): Use it to call `deactivate-mark'.
13737 (syms_of_keyboard): Initialize it.
13738
13739 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
13740 to another frame.
13741 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
13742 Don't call set_tty_color_mode.
13743 (store_frame_param): Reset previous_frame rather than call
13744 set_tty_color_mode.
13745 * term.c (set_tty_color_mode): Rewrite.
13746 * dispextern.h (set_tty_color_mode): New type.
13747 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
13748
137492008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
13750
13751 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
13752 for generic chars, which do not exist any more in emacs-unicode.
13753
137542008-04-08 Michael Albinus <michael.albinus@gmx.de>
13755
13756 * coding.c (detect_coding_emacs_mule)
13757 (Ffind_operation_coding_system): Fix typo.
13758
137592008-04-08 Jason Rumney <jasonr@gnu.org>
13760
13761 * w32uniscribe.c (SNAME): Extract only symbol name.
13762
13763 * w32font.h (struct w32_metric_cache): New struct.
13764 (w32font_info): Use it.
13765 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
13766 (CACHE_BLOCKSIZE): New constants.
13767
13768 * w32font.c (Qja, Qko, Qzh): New symbols.
13769 (syms_of_w32font): Initialise them.
13770 (font_matches_spec): Use them to filter by language.
13771 (recompute_cached_metrics): Remove function.
13772 (compute_metrics, clear_cached_metrics): New functions.
13773 (w32font_encode_char): Use them to manage metric cache.
13774 (w32font_text_extents): Cache metrics for all glyphs on demand.
13775 Delay converting glyph indices to WORD until needed.
13776 (w32font_open_internal): Initialize metric cache to empty.
13777 (registry_to_w32_charset): Charset should always be a symbol.
13778 (fill_in_logfont, list_all_matching_fonts): Family should
13779 always be a symbol.
13780
137812008-04-06 Jason Rumney <jasonr@gnu.org>
13782
13783 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
13784 Give up if glyph indices not supported. Use uniscribe obtained
13785 ABC widths for individual metrics. Map glyph clusters back to
13786 characters using fClusterStart flag. Return number of glyphs
13787 produced, not chars processed.
13788 (uniscribe_shape): Map char at FROM to current glyph.
13789
137902008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13791
13792 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
13793 Use SetMenuItemHierarchicalMenu.
13794
137952008-04-05 Jason Rumney <jasonr@gnu.org>
13796
13797 * image.c (pbm_load): Allow color values up to 65535.
13798 Throw an error if max_color_idx is outside the supported range.
13799 Report an error when image size is invalid.
13800 Read two bytes at a time when raw images have max_color_idx above 255.
13801
138022008-04-05 Eli Zaretskii <eliz@gnu.org>
13803
13804 * w32.c (readdir): If FindFirstFile/FindNextFile return in
13805 cFileName a file name that includes `?' characters, use the 8+3
13806 alias in cAlternateFileName instead.
13807
138082008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
13809
13810 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
13811 append "CCL: Quitted" when the CCL program is quitted.
13812 (setup_ccl_program): Initialize ccl->quit_silently to zero.
13813
13814 * ccl.h (struct ccl_program): New member quit_silently.
13815
138162008-04-05 Chong Yidong <cyd@stupidchicken.com>
13817
13818 * search.c (compile_pattern_1): Treat non-nil and non-string of
13819 search-spaces-regexp as nil.
13820
13821 * minibuf.c (Fassoc_string): Tweak docstring.
13822
138232008-04-05 Eli Zaretskii <eliz@gnu.org>
13824
13825 * dired.c (Ffile_attributes): Support inode numbers wider than 32
13826 bits. Remove ugly WINDOWSNT-specific kludge introduced on
13827 2008-03-14 to force inode be positive.
13828
13829 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
13830 _S_* ones, since we now use our own sys/stat.h.
13831 (stat, fstat): Don't mangle the inode number.
13832 (init_user_info): Don't restrict UID and GID to 0-60000 range.
13833
138342008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
13835
13836 * frame.h (struct frame): Give one more bit to `visible' since we use
13837 values larger than 1 to indicate obscured frames on ttys.
13838
13839 * keymap.c (Qkeymap_canonicalize): New var.
13840 (Fmap_keymap_internal): New fun.
13841 (describe_map): Use keymap-canonicalize.
13842
13843 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
13844 (Fundo_boundary): Set them.
13845 (syms_of_undo): Initialize them.
13846 (record_point): Use them instead of last_point_position*.
13847 (last_undo_buffer): Change type.
13848
138492008-04-04 Jason Rumney <jasonr@gnu.org>
13850
13851 * w32font.c (w32font_text_extents): Use font's ascent and descent.
13852 (recompute_cached_metrics): Don't set ascent and descent per char.
13853
13854 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
13855 (uniscribe_check_otf): Add GC protection before consing.
13856 Rearrange loop for counting features.
13857
138582008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
13859
13860 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
13861 buffer with byte-size of source buffer.
13862
138632008-04-03 Chong Yidong <cyd@stupidchicken.com>
13864
13865 * callint.c (Fcall_interactively): Handle temporary region even
13866 when shift-select-mode is off.
13867
138682008-04-03 Jason Rumney <jasonr@gnu.org>
13869
13870 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
13871
138722008-04-03 Kenichi Handa <handa@m17n.org>
13873
13874 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
13875 (CATEGORY_MASK_UTF_16): Likewise.
13876 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
13877 binary file.
13878 (detect_coding): Add null-byte detection for a binary file.
13879 (detect_coding_system): Likewise.
13880
138812008-04-03 Jason Rumney <jasonr@gnu.org>
13882
13883 * w32uniscribe.c: New file.
13884
13885 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
13886
13887 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
13888
13889 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
13890 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
13891 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
13892 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
13893 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
13894 (Qphonetic): New symbols.
13895 (syms_of_w32font): Initialize them.
13896 (font_supported_scripts): Use them.
13897 (w32font_list_family): List all charsets.
13898 (w32font_text_extents, recompute_cached_metrics): Fix metric
13899 calculations.
13900 (w32_enumfont_pattern_entity): Make full_type a DWORD.
13901 Give opentype fonts their own format.
13902 (font_matches_spec): New arguments backend and logfont.
13903 Handle :otf spec for uniscribe backend.
13904 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
13905 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
13906
13907 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
13908 font backend.
13909 (globals_of_w32fns): Initialize uniscribe font backend.
13910
13911 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
13912 dependencies.
13913 (w32uniscribe.$(O)): New file to build.
13914 (FONT_OBJ): Include w32uniscribe.$(O).
13915 (LIBS): Add uniscribe libraries.
13916
13917 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
13918
139192008-04-02 Chong Yidong <cyd@stupidchicken.com>
13920
13921 * callint.c (Vshift_select_mode): New var.
13922 (Finteractive): Document new ^ spec.
13923 (Fcall_interactively): Call handle-shift-selection if the ^ spec
13924 is present.
13925
13926 * keyboard.c (Vthis_command_keys_shift_translated): New var.
13927 (command_loop_1): Avoid running the direct display versions of
13928 forward-char and backward-char if shift-selection may occur.
13929 (read_key_sequence): Set Vthis_command_keys_shift_translated if
13930 shift-translation takes place.
13931
13932 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
13933 avoid clobbering by define-minor-mode.
13934
13935 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
13936 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
13937
13938 * syntax.c (Fforward_word): Add ^ interactive spec.
13939
13940 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
13941 (Fscroll_right): Add ^ interactive spec.
13942
139432008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
13944
13945 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
13946
13947 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
13948
13949 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
13950
139512008-03-31 Juri Linkov <juri@jurta.org>
13952
13953 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
13954
139552008-03-30 Jan Djärv <jan.h.d@swipnet.se>
13956
13957 * gtkutil.c (xg_set_geometry): Fix indentation.
13958 (xg_resize_outer_widget): Remove.
13959 (x_wm_size_hint_off): Fix indentation.
13960 (xg_frame_set_char_size): Call flush_and_sync after
13961 gtk_window_resize.
13962 (x_wm_set_size_hint): Pass NULL as geometry window to
13963 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
13964 Add menu bar and tool bar height to base height.
13965 (xg_update_frame_menubar, free_frame_menubar)
13966 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
13967 (update_frame_tool_bar, free_frame_tool_bar):
13968 Change xg_resize_outer_widget to xg_frame_set_char_size.
13969
139702008-03-30 Michael Albinus <michael.albinus@gmx.de>
13971
13972 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
13973 (Fdbus_call_method): New parameter TIMEOUT.
13974 (dbus-send-signal): Optimize UNGCPRO call.
13975
139762008-03-29 Juri Linkov <juri@jurta.org>
13977
13978 * window.c (Fdisplay_buffer): Move call to
13979 Vsplit_window_preferred_function out of conditions that check
13980 if window is eligible for vertical splitting.
13981 When Vsplit_window_preferred_function is non-nil, call it and use
13982 its non-nil return value as window. Otherwise, continue doing
13983 vertical splitting using Fsplit_window with arg horflag=nil.
13984 (syms_of_window) <Vsplit_window_preferred_function>: Change the
13985 default value from `split-window' to nil.
13986
139872008-03-29 Juri Linkov <juri@jurta.org>
13988
13989 * callint.c (Fcall_interactively): Revert 2008-03-16 change
13990 for interactive code letters 'b' and 'B'.
13991
139922008-03-29 Eli Zaretskii <eliz@gnu.org>
13993
13994 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
13995 multibyte string.
13996
139972008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
13998
13999 * keyboard.c (pending_funcalls): New var.
14000 (timer_check): Run it.
14001 (syms_of_keyboard): Initialize it.
14002 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
14003 (Vdelete_terminal_functions): New vars.
14004 (syms_of_terminal): Initialize them.
14005 (Fdelete_terminal): Run delete-terminal-functions.
14006 * xdisp.c (safe_eval): Rewrite.
14007 (safe_call2): New fun.
14008 * frame.c (Qdelete_frame_functions): New var.
14009 (syms_of_frame): Initialize it.
14010 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
14011 * lisp.h (safe_call2, pending_funcalls): Declare.
14012
140132008-03-28 Andreas Schwab <schwab@suse.de>
14014
14015 * indent.c (Fmove_to_column): Move declaration before statements.
14016
140172008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
14018
14019 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
14020 (struct frame): Use bit fields for boolean vars.
14021
14022 * process.c (server_accept_connection): Simplify naming.
14023 (emacs_get_tty_pgrp): Use SDATA.
14024
14025 * coding.c (decode_coding_object): Fix last change.
14026
140272008-03-27 Jason Rumney <jasonr@gnu.org>
14028
14029 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
14030
140312008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
14032
14033 * charset.c (Fdefine_charset_internal): Change the way of
14034 registering charsets in Vcharset_order_list.
14035 (syms_of_charset): Make the charset `eight-bit' supplementary.
14036
140372008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
14038
14039 * regex.c (EXTEND_BUFFER): Change order of pointer addition
14040 operations, to avoid having the difference between pointers
14041 overflow.
14042
140432008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
14044
14045 * indent.c (check_display_width): New fun.
14046 (scan_for_column): Use it.
14047
14048 * data.c (syms_of_data): Mark most-positive-fixnum and
14049 most-negative-fixnum as constants.
14050
14051 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
14052
14053 * indent.c (scan_for_column): Extract from current_column_1.
14054 Merge with the same code from Fmove_to_column.
14055 (current_column_1, Fmove_to_column): Use it.
14056
140572008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
14058
14059 * keymap.c (map_keymap_internal): New fun.
14060 (map_keymap): Use it.
14061 (Fmap_keymap_internal): New fun.
14062 (Fmap_keymap): Remove left-out test from before make_save_value.
14063
14064 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
14065
14066 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
14067 Use XCAR/XCDR.
14068
14069 * process.h (struct Lisp_Process): Remove filter_multibyte.
14070 * process.c (QCfilter_multibyte): Remove.
14071 (setup_process_coding_systems): Don't use filter_multibyte.
14072 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
14073 (read_process_output): Don't adjust multibyteness to filter_multibyte.
14074 (Fset_process_filter_multibyte): Change the coding-system to
14075 approximate the previous behavior.
14076 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
14077 coding-system.
14078
14079 * coding.c (decode_coding_object): When not decoding into a buffer,
14080 obey the coding system's preference of (uni|multi)byte.
14081
140822008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
14083
14084 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
14085 every char is changed and has a different byte-length.
14086 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
14087 Fix int -> EMACS_INT.
14088
140892008-03-23 David Hansen <david.hansen@gmx.net>
14090
14091 * dbusbind.c (xd_read_message): Remove extra copying of message
14092 strings. Check for NULL `interface' or `member'.
14093
140942008-03-22 Eli Zaretskii <eliz@gnu.org>
14095
14096 * w32.c (readdir): If FindFirstFile/FindNextFile return in
14097 cFileName a file name that includes `?' characters, use the 8+3
14098 alias in cAlternateFileName instead.
14099
141002008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
14101
14102 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
14103
141042008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
14105
14106 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
14107 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
14108 work on current_buffer only instead (that was already the case
14109 for some of the code anyway).
14110 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
14111 (temp_set_point, temp_set_point_both): Use EMACS_INT.
14112 (SET_PT, SET_PT_BOTH): Adjust.
14113 * intervals.h (set_point, temp_set_point, set_point_both)
14114 (temp_set_point_both): Remove redundant declarations.
14115
141162008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
14117
14118 * fileio.c (Finsert_file_contents):
14119 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
14120 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
14121 when buffer != current_buffer anyway.
14122
141232008-03-20 Andreas Schwab <schwab@suse.de>
14124
14125 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
14126 as default.
14127
141282008-03-19 Jason Rumney <jasonr@gnu.org>
14129
14130 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
14131 (syms_of_w32fns): Initialize them.
14132 (HOURGLASS_ID): New constant.
14133 (x_window_to_frame): Don't check hourglass_window.
14134 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
14135 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
14136 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
14137 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
14138 Only change the cursor if hourglass is not active.
14139 (Fx_create_frame): Initialize frame's current_cursor.
14140 (hourglass_atimer): Remove.
14141 (hourglass_started): New function.
14142 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
14143 (show_hourglass): Adapt to w32, changing argument to frame.
14144
14145 * w32term.h (struct w32_output): Remove hourglass_window.
14146 Add current_cursor.
14147
14148 * eval.c (call_debugger, Fsignal):
14149 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
14150 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
14151 (Fexecute_extended_command, cancel_hourglass_unwind):
14152 * minibuf.c (read_minibuf):
14153 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
14154
141552008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
14156
14157 * window.c (run_funs): New fun.
14158 (run_window_configuration_change_hook): Use it to run the buffer-local
14159 and the global part of the hook.
14160
14161 * xdisp.c (format_mode_line_unwind_data): Add window argument.
14162 (unwind_format_mode_line): Restore selected window.
14163 (x_consider_frame_title, Fformat_mode_line): Set selected window.
14164
141652008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
14166
14167 * editfns.c (Fchar_equal): Check they are valid characters.
14168
14169 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
14170
141712008-03-17 Andreas Schwab <schwab@suse.de>
14172
14173 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
14174 against a charset.
14175
14176 * lisp.h (Fbuffer_list): Declare.
14177
141782008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 14179
aac0c6e3
MR
14180 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
14181 handlebox_widget is != 0.
14182
141832008-03-16 Juri Linkov <juri@jurta.org>
14184
14185 * callint.c (Fcall_interactively): For interactive code letters
14186 'b' and 'B' put the buffer list into the list of default "future"
14187 values of the minibuffer.
14188
141892008-03-16 Andreas Schwab <schwab@suse.de>
14190
14191 * keyboard.c (read_key_sequence): Fix downcasing of letters with
14192 modifiers.
14193
14194 * regex.c (re_match_2_internal): Correct matching of a charset
14195 against latin-1 characters.
14196
141972008-03-16 Kenichi Handa <handa@m17n.org>
14198
14199 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
14200 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
14201 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
14202 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
14203 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
14204 CHAR_STRING_ADVANCE.
14205 (produce_chars): Fix for the case that the source and the
14206 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
14207 instead of CHAR_STRING_ADVANCE.
14208 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
14209 STRING_CHAR_ADVANCE.
14210
142112008-03-15 Andreas Schwab <schwab@suse.de>
14212
14213 * regex.c (re_match_2_internal): Correct matching of eight bit
14214 characters in unibyte strings.
14215
142162008-03-15 Martin Rudalics <rudalics@gmx.at>
14217
14218 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
14219 at end of range when it coincides with the end of the buffer.
14220
142212008-03-14 Eli Zaretskii <eliz@gnu.org>
14222
14223 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
14224
14225 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
14226
142272008-03-14 Jason Rumney <jasonr@gnu.org>
14228
14229 * editfns.c (initial_tz): New variable.
14230 (syms_of_editfns): Initialize it.
14231 (Fset_time_zone_rule): Set it when first called.
14232 Use it when TZSTRING is nil.
14233
14234 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
14235 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
14236 (monitor_from_point_fn, get_monitor_info_fn): New globals.
14237 (globals_of_w32fns): Initialize them.
14238 (compute_tip_xy): Use them to position tooltips.
14239
142402008-03-14 Glenn Morris <rgm@gnu.org>
14241
14242 * emacs.c (main): Revert previous change.
14243 (standard_args): Revert -internal-script back to -scriptload,
14244 and remove the long-option form.
14245
142462008-03-13 Glenn Morris <rgm@gnu.org>
14247
14248 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
14249 Remove option -enable-font-backend.
14250
142512008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
14252
14253 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
14254
142552008-03-11 Jan Djärv <jan.h.d@swipnet.se>
14256
14257 * xterm.c (x_connection_closed): For GTK: If this is the last
14258 terminal just exit without closing the display.
14259
142602008-03-11 Jason Rumney <jasonr@gnu.org>
14261
14262 * w32font.c (w32font_full_name): Use floor to round.
14263
f0131492 142642008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
14265
14266 * sound.c (alsa_configure): Declare vol at beginning of block.
14267
14268 * fontset.c (Ffontset_info): Remove extra semicolon.
14269
142702008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
14271
14272 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
14273 size of resulting string.
14274
142752008-03-10 Jason Rumney <jasonr@gnu.org>
14276
14277 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
14278
142792008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14280
14281 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
14282 Don't pretend as if characters with display property haven't been
14283 consumed for string-replacing-string case.
14284
142852008-03-08 Kim F. Storm <storm@cua.dk>
14286
14287 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
14288 (get_next_display_element, next_element_from_string)
14289 (next_element_from_ellipsis, next_element_from_buffer): Use it.
14290
142912008-03-08 Andreas Schwab <schwab@suse.de>
14292
14293 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
14294
142952008-03-06 Jason Rumney <jasonr@gnu.org>
14296
14297 * w32font.c (w32_registry): Take font_type argument. Use ANSI
14298 when charset not specified. Only translate ANSI to unicode when
14299 font_type is truetype.
14300 (w32font_coverage_ok): New function.
14301 (add_font_entity_to_list): Use it to filter unsuitable fonts.
14302
143032008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
14304
14305 * lread.c (Fread_char): Resolve modifiers.
14306 (Fread_char_exclusive): Likewise.
14307
14308 * character.c (char_resolve_modifier_mask): New function.
14309 (char_string): Use char_resolve_modifier_mask.
14310 (Fchar_resolve_modifiers): New function.
14311 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
14312 function.
14313
143142008-03-04 Jason Rumney <jasonr@gnu.org>
14315
14316 * makefile.w32-in: Always include w32font.c in the build.
14317 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
14318
143192008-03-04 Andreas Schwab <schwab@suse.de>
14320
14321 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
14322 (versionclean): Likewise.
14323
143242008-03-04 Juanma Barranquero <lekktu@gmail.com>
14325
14326 * .cvsignore: Add oo.
14327
143282008-03-03 Andreas Schwab <schwab@suse.de>
14329
14330 * coding.c (decode_coding_object): Inhibit gap shrinking while
14331 decoding in place.
14332
143332008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
14334
14335 * w32term.c: Remove unused include "gnu.h".
14336 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
14337
14338 * gnu.h: Rename to ...
14339 * emacs-icon.h: ... this.
14340 * xterm.c: Use emacs-icon.h instead of gnu.h.
14341 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
14342
143432008-03-03 Juanma Barranquero <lekktu@gmail.com>
14344
14345 * w32font.c: Include math.h.
14346
143472008-03-03 Jason Rumney <jasonr@gnu.org>
14348
14349 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
14350 Compute options separately.
14351 (w32font_open_internal): Set glyph_idx before caching metrics.
14352
14353 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
14354 Define if system headers don't.
14355 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
14356 (w32font_encode_char): Don't declare here.
14357
14358 * w32font.c (Quniscribe, QCformat): New symbols.
14359 (syms_of_w32font): Define them.
14360 (w32font_has_char): Indicate uncertainty.
14361 (w32font_encode_char): Encode as glyph point. Make static.
14362 (recompute_cached_metrics): New function.
14363 (w32font_open_internal): Use it. Set font to use glyph points
14364 initially. Set format based on type of font.
14365 (w32font_text_extents, w32font_draw): Optionally use glyph points.
14366 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
14367 on it. Set format based on information available here.
14368 (add_font_entity_to_list): Identify backend based on opentype_only.
14369
143702008-03-02 Andreas Schwab <schwab@suse.de>
14371
14372 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
14373
14374 * coding.c (decode_coding_big5, produce_chars):
14375 Fix typos in last change.
14376
143772008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
14378
14379 * gnu.h: New icon.
14380
143812008-03-02 Kenichi Handa <handa@m17n.org>
14382
14383 * coding.c (decode_coding_utf_8): When eol-type of CODING is
14384 `dos', don't decode '\r' if that is the last in the source.
14385 (decode_coding_utf_16, decode_coding_emacs_mule)
14386 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14387 (decode_coding_raw_text, decode_coding_charset): Likewise.
14388 (produce_chars): Don't decode EOL here. Use EMACS_INT.
14389
143902008-03-01 Jason Rumney <jasonr@gnu.org>
14391
14392 * w32font.c (w32font_full_name): Report point size for scalable fonts.
14393
143942008-03-01 Kim F. Storm <storm@cua.dk>
14395
14396 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
14397
143982008-03-01 Jason Rumney <jasonr@gnu.org>
14399
14400 * w32font.c (w32font_full_name): New function.
14401 (w32font_open_internal): Use it.
14402
144032008-03-01 Kim F. Storm <storm@cua.dk>
14404
14405 * dispnew.c (line_draw_cost): Fix invalid glyph check.
14406
144072008-03-01 Jason Rumney <jasonr@gnu.org>
14408
14409 * font.c (font_unparse_fcname): Increase len when style is a symbol.
14410
144112008-03-01 Jan Djärv <jan.h.d@swipnet.se>
14412
14413 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
14414 xg_frame_resized when the event is for the edit widget.
14415
14416 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
14417
14418 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
14419 set_char_size.
14420 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
14421 operations on widgets here. Just set frame size if needed.
14422 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
14423 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
14424 (x_wm_set_size_hint): Set size hints on the edit widget only, not
14425 the whole frame.
14426 (xg_create_tool_bar): Move attachment of the tool bar to
14427 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
14428 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
14429
144302008-03-01 Jason Rumney <jasonr@gnu.org>
14431
14432 * w32fns.c (w32_msg_pump): Disable debug code.
14433
144342008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14435
14436 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
14437
144382008-02-29 Chong Yidong <cyd@stupidchicken.com>
14439
14440 * xdisp.c (next_overlay_string): Don't set
14441 overlay_strings_at_end_processed_p if we're currently reading from
14442 a display string.
14443
144442008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
14445
14446 * xdisp.c (get_overlay_strings_1): Fix typo.
14447
144482008-02-29 Chong Yidong <cyd@stupidchicken.com>
14449
14450 * xdisp.c (get_overlay_strings_1): Add missing argument type.
14451
144522008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
14453
14454 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
14455
14456 * xdisp.c (display_mode_element): Cancel the previous change.
14457 (decode_mode_spec): Likewise.
14458 (handle_auto_composed_prop): Don't make composition if it->string
14459 is a string.
14460
144612008-02-27 Kim F. Storm <storm@cua.dk>
14462
14463 * lisp.h (GLYPH): Change type from int to struct with separate char
14464 and face_id members.
14465 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
14466 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
14467 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
14468 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
14469 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
14470 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
14471 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
14472 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
14473 handle new Lisp glyph code encoding, either an integer or a cons.
14474
14475 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
14476 (GLYPH_ALIAS): Delete.
14477 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
14478 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
14479 (GLYPH_FROM_CHAR): Replace macro by ...
14480 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
14481
14482 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
14483 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
14484 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
14485 (GLYPH_INVALID_P): New macro.
14486 (spec_glyph_lookup_face): Update prototype.
14487
14488 * dispnew.c (line_draw_cost): Adapt to new glyph type.
14489 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
14490 new glyph code encoding.
14491 (spec_glyph_lookup_face): No return value; update passed glyph instead.
14492 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
14493
14494 * xdisp.c (get_next_display_element, next_element_from_display_vector):
14495 Adapt to new glyph type and new glyph code encoding.
14496
14497 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
14498
14499 * indent.c (current_column, current_column_1, Fmove_to_column)
14500 (compute_motion): Adapt to new glyph code encoding.
14501
14502 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
14503
145042008-02-27 Chong Yidong <cyd@stupidchicken.com>
14505
14506 * process.c (wait_reading_process_output): Check for window
14507 changes caused by timers.
14508 Suggested by Johan Bockgård.
14509
145102008-02-27 Glenn Morris <rgm@gnu.org>
14511
14512 * emacs.c (USAGE1): Add `--disable-font-backend'.
14513
145142008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
14515
14516 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
14517 is made to the buffer.
14518
145192008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
14520
14521 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
14522 (face_at_string_position):
14523 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
14524 (face_at_string_position):
14525 * xdisp.c (display_string, next_overlay_change):
14526 * buffer.h (overlays_at):
14527 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
14528 Update callers.
14529
145302008-02-26 Chong Yidong <cyd@stupidchicken.com>
14531
14532 * editfns.c (Fformat): Doc fix.
14533
145342008-02-26 Juanma Barranquero <lekktu@gmail.com>
14535
14536 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
14537 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
14538 (Ffont_otf_alternates, Fquery_font): Doc fixes.
14539
145402008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
14541
14542 * buffer.c (Fbuffer_swap_text): New function.
14543 (syms_of_buffer): Defsubr it.
14544
145452008-02-25 Chong Yidong <cyd@stupidchicken.com>
14546
14547 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
14548
145492008-02-25 Jason Rumney <jasonr@gnu.org>
14550
14551 * w32font.c (w32font_draw): Draw one character at a time when padding.
14552
145532008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
14554
14555 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
14556 Handle a nil arg. Use run_window_configuration_change_hook.
14557 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
14558 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
14559 Use run_window_configuration_change_hook.
14560
145612008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
14562
14563 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
14564 1-pixel width.
14565
145662008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
14567
14568 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
14569 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
14570 if the glyph in the font is zero pixel with.
14571
14572 * dispextern.h (struct glyph_string): New member padding_p.
14573
14574 * w32font.c (w32font_draw): Pay attention to s->padding_p.
14575
14576 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
14577
14578 * xfont.c (xfont_draw): Pay attention to s->padding_p.
14579
14580 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
14581
14582 * font.c: If the font driver doesn't have `shape' function, return Qnil.
14583
145842008-02-25 Jason Rumney <jasonr@gnu.org>
14585
14586 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
14587
145882008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
14589
14590 Allow fine-grained image-cache flushing.
14591 * dispextern.h (struct image): Add `dependencies' field.
14592 (clear_image_caches): Change arg to Lisp_Object.
14593 * image.c (make_image): Initialize `dependencies' field.
14594 (clear_image_cache): Change arg to allow fine-grained flushing.
14595 Perform the flush even if image-cache-eviction-delay is nil.
14596 (clear_image_caches): Change arg to Lisp_Object.
14597 (Fclear_image_cache): Expand meaning of the argument.
14598 (mark_image): Mark `dependencies' field.
14599 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
14600 (lface_hash): Use XHASH rather than XFASTINT.
14601 (face_at_buffer_position): Fix int -> EMACS_INT position.
14602 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
14603 (select_frame_for_redisplay): Remove code duplication.
14604 (redisplay_internal): Adapt arg to call to clear_image_caches.
14605
146062008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
14607
14608 * s/vms4-0.h:
14609 * s/vms4-2.h:
14610 * s/vms4-4.h:
14611 * s/vms5-5.h: Remove, unused.
14612
14613 * s/irix5-2.h:
14614 * s/irix6-0.h:
14615 * s/riscos5.h:
14616 * s/mach-bsd4-3.h:
14617 * m/mips4.h: Remove files for obsolete systems.
14618
14619 * Makefile.in:
14620 * filelock.c:
14621 * unexmips.c:
14622 * m/hp9000s300.h:
14623 * m/iris4d.h:
14624 * s/aix3-1.h:
14625 * s/hpux.h:
14626 * s/msdos.h:
14627 * s/usg5-0.h:
14628 * s/usg5-2-2.h:
14629 * s/usg5-2.h:
14630 * s/usg5-3.h: Remove references to obsolete variables.
14631
14632 * s/irix5-0.h: Remove, move all the contents ...
14633 * s/irix6-5.h: ... here. Simplify.
14634 * config.in: Regenerate.
14635
146362008-02-24 Jason Rumney <jasonr@gnu.org>
14637
14638 * w32term.c (x_draw_glyph_string_background): Clear the background
14639 manually when cleartype is in use.
14640 (x_draw_glyph_string_foreground): Draw text transparently when
14641 cleartype is in use.
14642
14643 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
14644 a font into it unless we have to.
14645
146462008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
14647
14648 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
14649 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 14650
aac0c6e3
MR
146512008-02-18 Jason Rumney <jasonr@gnu.org>
14652
14653 * w32fns.c (Fw32_shell_execute): Encode parameters.
14654
146552008-02-09 Eli Zaretskii <eliz@gnu.org>
14656
14657 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
14658
146592008-02-05 Juanma Barranquero <lekktu@gmail.com>
14660
14661 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
14662
146632008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
14664
14665 * xterm.c (x_set_offset): Don't change the gravity if
14666 CHANGE_GRAVITY is -1.
14667
146682008-02-23 Chong Yidong <cyd@stupidchicken.com>
14669
14670 * fileio.c (auto_save_error_occurred): New var.
14671 (auto_save_error): Set it.
14672 (Fdo_auto_save): Don't overwrite the error message if an auto-save
14673 error occurred.
14674
146752008-02-23 Eli Zaretskii <eliz@gnu.org>
14676
14677 * w32.c (globals_of_w32): Add initializations for
14678 g_b_init_get_sid_sub_authority and
14679 g_b_init_get_sid_sub_authority_count.
14680
146812008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
14682
14683 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
14684 (font_parse_xlfd): Use them for sanity check.
14685 (Finternal_set_font_style_table): Make sure the table is bijective.
14686
14687 Consolidate the image_cache to the terminal struct.
14688 * termhooks.h (P_): Remove redundant def.
14689 (struct terminal): New field `image_cache'.
14690 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
14691 of FRAME_X_IMAGE_CACHE.
14692 * xterm.h (struct x_display_info): Remove image_cache field.
14693 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
14694 * w32term.h (struct w32_display_info): Remove image_cache field.
14695 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
14696 * macterm.h (struct mac_display_info): Remove image_cache field.
14697 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
14698 * xterm.c (x_term_init):
14699 * w32term.c (w32_term_init):
14700 * macterm.c (mac_term_init): Set the image_cache in the terminal.
14701 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
14702 Remove declarations.
14703 (clear_image_caches, mark_image_cache): New declarations.
14704 * xfaces.c (clear_face_cache):
14705 * xdisp.c (redisplay_internal): Use clear_image_caches.
14706 * image.c (clear_image_cache): Don't check that a frame is on
14707 a window-system before checking if it shares the same cache.
14708 (clear_image_caches): New function.
14709 (Fclear_image_cache): Use it.
14710 (mark_image): Move from allo.c.
14711 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
14712 * alloc.c (mark_image, mark_image_cache): Move to image.c.
14713 (mark_object): Don't call mark_image_cache for frames.
14714 (mark_terminals): Call mark_image_cache.
14715
14716 * lisp.h (Fdelete_terminal): Declare.
14717
14718 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
14719 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
14720 wrong_type_argument.
14721
147222008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
14723
14724 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
14725 malayalam.el, and tamil.el. Add sinhala.el.
14726
147272008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
14728
14729 * xterm.c (x_connection_closed): Consolidate identical tests.
14730 (x_delete_terminal): Don't crash if called via x_connection_closed.
14731
147322008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
14733
14734 * xdisp.c (decode_mode_spec): New arg string.
14735 (display_mode_element): Adjust for the above change.
14736
147372008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
14738
14739 * callint.c (Fcall_interactively): Use AREF.
14740
147412008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
14742
14743 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
14744
147452008-02-18 Jan Djärv <jan.h.d@swipnet.se>
14746
14747 * xfns.c (Fx_show_tip): Set string to " " if empty.
14748
147492008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
14750
14751 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
14752 with Qt.
14753
147542008-02-17 Kenichi Handa <handa@m17n.org>
14755
14756 * ftfont.c (ftfont_shape): Return Lispy number.
14757
14758 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
14759 for GCs.
14760 (Finternal_set_font_selection_order): Call font_update_sort_order
14761 only when enable_font_backend is set.
14762 (realize_x_face): Set face->font_info to that of default face only
14763 when enable_font_backend is set.
14764
14765 * xdisp.c (handle_composition_prop): Set it->c to the fist
14766 character of the composed region.
14767 (fill_composite_glyph_string): Set base_face->font_info to
14768 s->font_info. Get a face for ascii from base_face->ascii_face.
14769 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
14770 with a face already decided.
14771 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
14772 non-negative.
14773 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
14774 call font_prepare_composition unconditionally.
14775
14776 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
14777
14778 * xterm.h (struct x_display_info): New member font.
14779
14780 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
14781 (x_set_mouse_face_gc, x_new_font): Likewise.
14782 (x_term_init): Setup display_info->font.
14783 (x_delete_terminal): Free display_info->font.
14784
14785 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
14786
14787 * ftxfont.c (ftxfont_default_fid): Delete it.
14788 (ftxfont_open): Set xfont->fid to 0.
14789 (ftxfont_end_for_frame): Clear data specific to the frame and the
14790 font-driver.
14791
14792 * xftfont.c (xftfont_default_fid): Delete it.
14793 (xftfont_open): Set xfont->fid to 0.
14794
14795 * fontset.c (FONTSET_OBJLIST): New macro.
14796 (fontset_find_font): Update font-object list of the fontset.
14797 (free_realized_fontset): New function.
14798 (free_face_fontset): Call free_realized_fontset.
14799 (Ffont_info): Call font_close_object only when enable_font_backend
14800 is set.
14801
14802 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
14803 [HAVE_NTGUI]: Include w32term.h.
14804 [MAC_OS]: Include macterm.ch.
14805 (font_otf_ValueRecord): Use make_number.
14806 (font_finish_cache): Fix handling of reference count.
14807 (font_clear_cache): Update num_fonts.
14808 (font_open_entity): Update smallest_char_width and
14809 smallest_font_height of the frame.
14810 (font_close_object): Update num_fonts.
14811 (Fclear_font_cache): Fix finding the target cache data.
14812
148132008-02-16 Glenn Morris <rgm@gnu.org>
14814
14815 * fontset.c (Finternal_char_font): Fix compilation warning.
14816
148172008-02-16 Eli Zaretskii <eliz@gnu.org>
14818
14819 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
14820 instead of char arrays. Enlarge the size of array passed to
14821 get_token_information.
14822
14823 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
14824 warnings.
14825
148262008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
14827
14828 * .gdbinit: Don't set `args', it breaks gdb --args.
14829
148302008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
14831
14832 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
14833 within a narrowed buffer.
14834
148352008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
14836
14837 * coding.c (decode_coding_object, encode_coding_object):
14838 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
14839
148402008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
14841
14842 * coding.c (coding_set_destination): Use BEG_BYTE rather than
14843 hardcoding 1.
14844 (detect_coding_system):
14845 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
14846 (string_char_to_byte, string_byte_to_char, insert_from_gap):
14847 * insdel.c (insert_from_gap):
14848 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
14849 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
14850 (string_to_multibyte):
14851 * character.c (chars_in_text, multibyte_chars_in_text):
14852 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
14853
14854 * character.h (FETCH_STRING_CHAR_ADVANCE)
14855 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
14856 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
14857 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
14858
14859 * casefiddle.c (casify_region): Only call after-change and composition
14860 functions on the part of the region that was changed.
14861
14862 * keyboard.c (read_avail_input):
14863 * frame.c (Fdelete_frame): Call Fdelete_terminal.
14864
148652008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
14866
14867 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
14868 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
14869
148702008-02-11 Juanma Barranquero <lekktu@gmail.com>
14871
14872 * w32menu.c (push_submenu_start, push_submenu_end)
14873 (push_left_right_boundary, push_menu_pane, push_menu_item):
14874 * keyboard.c (read_key_sequence): Don't pass args with side effects
14875 to AREF, it fails when compiling with -DENABLE_CHECKING.
14876
148772008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
14878
14879 * Makefile.in (${lispsource}international/charprop.el):
14880 Delete this target.
14881
14882 * search.c (boyer_moore): Fix incorrect synching of the trunk and
14883 emacs-unicode-2.
14884
148852008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
14886
14887 * terminal.c (Fdelete_terminal): Clean up the `force' path.
14888
148892008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
14890
14891 * frame.c (Qnoelisp): New symbol.
14892 (syms_of_frame): Initialize it.
14893 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
14894 harmless Elisp code, from a strong `force' from x_connection_closed.
14895 * frame.h (Qnoelisp): Declare.
14896 * xterm.c (x_connection_closed): Pass `noelisp'.
14897
14898 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
14899 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
14900 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
14901 rather than `int' for the type of `type'.
14902
149032008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
14904
14905 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
14906
14907 * Makefile.in (GNUC): Remove support for gcc-1.x.
14908
149092008-02-10 Richard Stallman <rms@gnu.org>
14910
14911 * lisp.h (ASET): Use AREF, not ASLOT.
14912
149132008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
14914
14915 * lisp.h (ASET): Check bounds.
14916
149172008-02-10 Glenn Morris <rgm@gnu.org>
14918
14919 * buffer.c (mode-name): Doc fix.
14920
149212008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
14922
14923 * Makefile.in:
14924 * emacs.c:
14925 * gmalloc.c:
14926 * keyboard.c:
14927 * lisp.h:
14928 * m/ibm370aix.h:
14929 * process.c:
14930 * regex.c:
14931 * s/hpux.h:
14932 * sysdep.c:
14933 * sysselect.h:
14934 * systty.h:
14935 * unexec.c:
14936 * w32term.c:
14937 * xsmfns.c:
14938 * xterm.c: Remove code that deals with obsolete variables.
14939
14940 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
14941
14942 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
14943 nothing else needs it anymore.
14944
149452008-02-09 Eli Zaretskii <eliz@gnu.org>
14946
14947 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
14948 instead of unibyte_char_to_multibyte.
14949
149502008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
14951
14952 * s/gnu-linux.h: Remove commented out code.
14953
14954 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
14955
14956 * Makefile.in: Update what RMS says about using autoconf.
14957 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
14958 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
14959 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
14960 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
14961
149622008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
14963
14964 * keymap.c (Fkey_description): Move side effect outside of macro call.
14965
14966 * xfaces.c (Finternal_make_lisp_face):
14967 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
14968
14969 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
14970 (syms_of_fontset): Use ASET.
14971
14972 * fns.c (concat): Move side effect outside of macro call.
14973 (hash_clear): Use ASET.
14974
149752008-02-08 Richard Stallman <rms@gnu.org>
14976
14977 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
14978 If FORCE, and frame has a surrogate minibuffer for another frame,
14979 delete the other frame first.
14980
149812008-02-07 Timo Savola <timo.savola@iki.fi>
14982
14983 * xterm.c (x_detect_focus_change): Handle embed client message.
14984 (handle_one_xevent): Ditto.
14985 (handle_one_xevent): If embedded and we get a button press/release,
14986 request focus.
14987 (xembed_set_info, xembed_send_message): New functions.
14988 (x_make_frame_visible): Call xembed_set_info if embedded.
14989 (x_make_frame_invisible): Call xembed_set_info if embedded.
14990 (x_term_init): Initialize Xatom_XEMBED.
14991 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
14992 (x_iconify_frame): Ditto.
14993
14994 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
14995 (enum xembed_info, enum xembed_message, enum xembed_focus)
14996 (enum xembed_modifier, enum xembed_accelerator): New.
14997 (xembed_set_info, xembed_send_message): Declare.
14998 (FRAME_X_EMBEDDED_P): New.
14999
15000 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
15001 gtk_plug_new.
15002
15003 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
15004 window ID of a frame.
15005 (x_window): Reparent frame if embedded.
15006 (Fx_create_frame): Don't set border width if embedded.
15007
15008 * emacs.c (USAGE3): Add --parent-id.
15009 (standard_args): Ditto.
15010
150112008-02-07 Jan Djärv <jan.h.d@swipnet.se>
15012
15013 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
15014
150152008-02-07 Jim Meyering <meyering@redhat.com>
15016
15017 Use "do...while (0)", not "if (1)...else" in macro definitions.
15018 The latter provokes a warning from gcc about the empty else, when
15019 followed by ";". Also, without that trailing semicolon, it would
15020 silently swallow up any following statement.
15021 * syntax.h (SETUP_SYNTAX_TABLE)
15022 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
15023 * buffer.h (DECODE_POSITION): Likewise.
15024 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
15025 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
15026 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
15027 (FETCH_CHAR_ADVANCE): Likewise.
15028 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
15029
150302008-02-07 Jim Meyering <meyering@redhat.com>
15031
15032 * lread.c [lint]: Don't include <sys/inode.h>.
15033
150342008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
15035
15036 * xselect.c (x_handle_dnd_message):
15037 * xmenu.c (digest_single_submenu, xmenu_show):
15038 * xdisp.c (with_echo_area_buffer_unwind_data)
15039 (format_mode_line_unwind_data, unwind_format_mode_line)
15040 (display_menu_bar):
15041 * eval.c (Ffetch_bytecode):
15042 * doc.c (store_function_docstring):
15043 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
15044 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
15045 * buffer.c (add_overlay_mod_hooklist): Use ASET.
15046
150472008-02-07 Kenichi Handa <handa@m17n.org>
15048
15049 * ftxfont.c (ftxfont_open): Don't set
15050 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
15051
15052 * ftfont.c (ftfont_open): Fix previous change.
15053
150542008-02-06 Jason Rumney <jasonr@gnu.org>
15055
15056 * w32font.c (w32font_text_extents): Fill in lbearing metric.
15057 Use cached metrics for ASCII characters.
15058 (w32font_open_internal): Don't set font's owning_frame.
15059 Cache metrics for ASCII characters.
15060
15061 * w32font.h (struct w32font_info): Add ascii_metrics.
15062 Remove owning_frame.
15063
150642008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
15065
15066 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
15067 to negative value.
15068
15069 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
15070
15071 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
15072
15073 * charset.c (syms_of_charset): Set QCtest and Qeq.
15074
150752008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
15076
15077 * process.c (Fstart_process):
15078 * callproc.c (Fcall_process): Handle the case where
15079 Funhandled_file_name_directory returns nil.
15080
15081 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
15082 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
15083 * font.c (check_gstring): Use them and AREF to access the vector before
15084 we know it's really a gstring.
15085 (Ffont_shape_text): Fix typo.
46e722a9 15086 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
15087
15088 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
15089 Declare.
15090
15091 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
15092
150932008-02-05 Jason Rumney <jasonr@gnu.org>
15094
15095 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
15096 Set smallest_font_height and smallest_char_width in display info.
15097
150982008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
15099
15100 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
15101
151022008-02-05 Miles Bader <miles@gnu.org>
15103
15104 * xfaces.c (get_lface_attributes, merge_named_face)
15105 (lookup_named_face, lookup_derived_face, realize_named_face):
15106 Revert 2008-02-01 change by cyd@stupidchicken.com.
15107
151082008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
15109
15110 * fontset.c (Ffontset_info): Handle the case of inhibitting the
15111 fallback fonts.
15112 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
15113
151142008-02-04 Jason Rumney <jasonr@gnu.org>
15115
15116 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
15117 set full_name.
15118 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
15119
151202008-02-03 Jason Rumney <jasonr@gnu.org>
15121
15122 * makefile.w32-in (OBJ1): Include font.o here.
15123 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
15124
151252008-02-02 Jason Rumney <jasonr@gnu.org>
15126
15127 * makefile.w32-in (temacs): Bump EMHEAP to 21.
15128
151292008-02-01 Jason Rumney <jasonr@gnu.org>
15130
15131 * s/cygwin.h: Define VIRT_ADDR_VARIES.
15132
15133 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
15134
151352008-02-01 Andreas Schwab <schwab@suse.de>
15136
15137 * Makefile.in (shortlisp, lisp): Update for rename of
15138 ../lisp/language/myanmar.el.
15139
151402008-02-01 Chong Yidong <cyd@stupidchicken.com>
15141
15142 * xfaces.c (get_lface_attributes): Delete function.
15143 (merge_named_face, lookup_named_face, lookup_derived_face)
15144 (realize_named_face): Call lface_from_face_name directly, and use
15145 the fact that merge_face_vectors does not alter its FROM argument.
15146
151472008-02-01 Jason Rumney <jasonr@gnu.org>
15148
15149 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
15150 input in the default locale. Handle non-Unicode multibyte input.
15151
151522008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15153
15154 * fontset.c (reorder_font_vector): Exclude nil elements from the
15155 font group. Don't try multiple fonts.
15156 (fontset_font): Adjust for the above change.
15157 (Finternal_char_font): Return nil if the found font doesn't
15158 contain the character ch.
15159
15160 * Makefile.in (lisp, shortlisp): Add cham.el.
15161
151622008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15163
15164 * font.h (FONTP): Make it return 1 also for a font-object.
15165
15166 * .gdbinit (xfontset): New function.
15167
15168 * font.c (font_find_for_lface): Check if the character C is
15169 supported or not only for the first font.
15170
15171 * fontset.c (reorder_font_vector): Fix typo.
15172 (fontset_find_font): Don't add a font-spec specifying a script.
15173 Use 0 (not Qt) for the indication of empty font-group. Change the
15174 format of RFONT-DEF. Return Qt if no font in the font-group
15175 support the character.
15176 (fontset_font): Adjust for the above change. If no font was
15177 found the character, remember that.
15178 (face_for_char): Adjust for the change of RFONT-DEF.
15179 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
15180 no font for the target.
15181 (Finternal_char_font): Adjust for the change of RFONT-DEF.
15182
151832008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15184
15185 * font.c (font_load_for_face): Handle the case that the font in
15186 face->lface is a string.
15187
151882008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15189
15190 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
15191
151922008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15193
15194 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
15195 Fix previous change. If the frame is not on a window system,
15196 signal an error.
15197
151982008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15199
15200 * coding.c (decode_coding_object, encode_coding_object): Adjust
15201 marker positions after conversion.
15202
15203 * lisp.h (struct Lisp_Marker): New member need_adjustment.
15204
152052008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15206
15207 * font.c (font_find_for_lface): Fix the handling of the return
15208 value of font_has_char.
15209 (Ffont_shape_text): Fix previous change.
15210
15211 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
15212 (fontset_ref_and_range): Delete it.
15213 (fontset_find_font): Call char_table_ref_and_range instead of
15214 FONTSET_REF_AND_RANGE.
15215 (make_fontset): Don't setup font groups of Latin here.
15216 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
15217 (new_fontset_from_font): Make the specified font the default for
15218 all Latin characters.
15219
152202008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15221
15222 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
15223 is on a window system before accessing the fontset of the frame.
15224
152252008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15226
15227 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
15228
15229 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
15230 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
15231
15232 * font.c (Ffont_shape_text): If the font driver doesn't have a
15233 shaper function, make zero-width glyphs to have at least one-pixel
15234 width. Fix setting of `to' field of glyphs.
15235
152362008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15237
15238 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
15239 glyphs.
15240
15241 * font.h (struct font_driver): Improve docstring of member `shape'.
15242
152432008-02-01 Kenichi Handa <handa@m17n.org>
15244
15245 * composite.c (syms_of_composite): Fix docstring of
15246 auto-composition-function.
15247
15248 * font.h (LGLYPH_SIZE): New macro.
15249
15250 * font.c (Ffont_fill_gstring): Stop filling when a character not
15251 supported by the font is found.
15252 (Ffont_shape_text): When a shape callback function returns nil,
15253 try at most two more times with larger gstring.
15254 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
15255
15256 * xdisp.c (handle_auto_composed_prop): Change the argument to
15257 auto-composition-function.
15258
15259 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
15260 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
15261 Lispy glyph and store it in the lgstring.
15262
15263 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
15264
15265 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
15266
152672008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15268
15269 * font.c (Ffont_shape_text): Avoid unnecessary composition.
15270
15271 * fontset.c (Vfont_encoding_charset_alist): New variable.
15272 (syms_of_fontset): DEFVAR it.
15273 (reorder_font_vector, fontset_find_font): Optimize for the case of
15274 no need of reordering.
15275 (face_for_char): Map the charset property by
15276 Vfont_encoding_charset_alist.
15277
152782008-02-01 Jason Rumney <jasonr@gnu.org>
15279
15280 * w32font.c (logfonts_match): Don't check adstyle here.
15281 (font_matches_spec): Check here against physical font instead.
15282 (add_font_entity_to_list): Avoid some substitutions.
15283
15284 * font.c (font_parse_fcname): Default weight and slant to normal.
15285 (font_score): Prefer normal fonts if weight or slant unspecified.
15286 (font_score) [WINDOWSNT]: Scale weight difference down to closer
15287 match freetype scores.
15288
152892008-02-01 Jason Rumney <jasonr@gnu.org>
15290
15291 * w32font.c (w32font_text_extents): Don't use the frame stored in the
15292 font, as it may have been deleted.
15293 (w32_enumfont_pattern_entity): Map generic family to adstyle using
15294 most common hyphenless variation.
15295 (logfonts_match): Check generic family.
15296 (font_matches_spec): Don't check generic family here.
15297 (fill_in_logfont): Set generic family based on adstyle.
15298
15299 * w32font.h (w32font_get_cache): Update declaration.
15300
153012008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15302
15303 * ftfont.c (ftfont_get_cache): Adjust the argument type.
15304
15305 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
15306 If none of the new drivers are available, call font_update_drivers
15307 with the old drivers.
15308
15309 * w32font.c (w32font_get_cache): Adjust the argument type.
15310
15311 * xfont.c (xfont_get_cache): Adjust the argument type.
15312
15313 * font.h (struct font_driver): Change argument type of get_cache.
15314
15315 * xftfont.c (xftfont_start_for_frame): Delete prototype.
15316
15317 * font.c (Ffont_get): Fix arguments to Fassoc.
15318 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
15319 (font_clear_cache): New function.
15320 (font_list_entities, font_matching_entity): Use font_get_cache.
15321 (font_update_drivers): Call font_clear_cache when finishing a driver.
15322
15323 * fontset.c (fontset_find_font): Fix previous change.
15324
153252008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15326
15327 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
15328 dpyinfo->font_table.
15329 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
15330 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
15331
15332 * font.c (font_at): Handle the case that the arg C is negative.
15333 Handle the unibyte case.
15334 (Ffont_at): Call font_at with the arg C -1.
15335
15336 * xdisp.c (handle_auto_composed_prop): Don't get a character at
15337 the position here, and call font_at with the arg C -1.
15338 Don't check the range of the existing composition at the point.
15339
153402008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15341
15342 * fontset.c (fontset_add): New args charset_id and family.
15343 Change caller.
15344 (load_font_get_repertory, fontset_find_font): Assume that
15345 font_spec is always a font-spec object.
15346 (Fset_fontset_font): Always store a font-spec object in a fontset.
15347
15348 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
15349 instead of get_property_and_range.
15350
153512008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15352
15353 * xftfont.c (struct xftfont_info): Delete the member ft_face.
15354 (xftfont_open): Don't keep locking face.
15355 (xftfont_close): Don't unlock face.
15356 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
15357
15358 * fontset.c (fontset_find_font): Don't prefer a font of
15359 supplementary charset.
15360
153612008-02-01 Kenichi Handa <handa@m17n.org>
15362
15363 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
15364 script, langsys_tag to langsys, new member script.
15365 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 15366 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
15367 listing to the script specified in that property. Fix arg to
15368 OTF_check_features.
15369
153702008-02-01 Jason Rumney <jasonr@gnu.org>
15371
15372 * w32font.h: New file.
15373
15374 * w32font.c: Include it.
15375 (struct w32font_info): Add owning_frame field. Move to w32font.h.
15376 (w32font_open): Set owning_frame.
15377 (w32font_text_extents): Use owning_frame.
15378 (struct font_callback_data): Add opentype_only field.
15379 (add_font_entity_to_list): Use it to filter fonts.
15380 Don't check against full name.
15381 (w32font_list_internal): New function.
15382 (w32font_list): Use it.
15383 (w32font_match_internal): New function.
15384 (w32font_match): Use it.
15385 (w32font_open_internal): New function.
15386 (w32font_open): Use it.
15387 (w32font_get_cache, w32font_close, w32font_has_char)
15388 (w32font_encode_char, w32font_text_extents, w32font_draw):
15389 Make non-static.
15390
15391 * makefile.w32-in (w32font.o): Depend on w32font.h.
15392
153932008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15394
15395 * charset.c (Fdefine_charset_internal): Record a supplementary
15396 charset at the tail of Vcharset_order_list.
15397
15398 * font.c (Ffont_shape_text): Fix the return value.
15399
15400 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
15401
15402 * xdisp.c (handle_auto_composed_prop): Fix previous change.
15403
154042008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15405
15406 * ftfont.c (struct OpenTypeSpec): New struct.
15407 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
15408 (ftfont_get_open_type_spec): New function.
15409 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
15410
15411 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
15412
154132008-02-01 Jason Rumney <jasonr@gnu.org>
15414
15415 * w32font.c (add_font_entity_to_list): Compare only the beginning
15416 of full name.
15417
154182008-02-01 Kenichi Handa <handa@m17n.org>
15419
15420 * xdisp.c (handle_auto_composed_prop): Simplify the code.
15421 Never return HANDLED_RECOMPUTE_PROPS.
15422
154232008-02-01 Kenichi Handa <handa@m17n.org>
15424
15425 * font.c (font_gstring_produce): Delete it.
15426
15427 * composite.h (COMPOSITION_METHOD):
15428 Handle COMPOSITION_WITH_GLYPH_STRING.
15429
154302008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15431
15432 * xfont.c (Qx): Delete.
15433 (syms_of_xfont): Don't initialize Qx.
15434
15435 * composite.h (enum composition_method):
15436 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
15437
154382008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15439
15440 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
15441 (choose_face_font): Accept new form of font-spec.
15442
15443 * frame.h (font_driver_list): Declare it unconditionally.
15444 (struct frame): Define members font_driver_list and font_data_list
15445 unconditionally.
15446
15447 * fontset.c: Include "font.h" unconditionally.
15448 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
15449 (Fset_fontset_font): Accept a font-spec object.
15450
15451 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
15452 PIXEL_SIZE part a wild card.
15453
15454 * dispextern.h (struct glyph_string): Define members clip and
15455 num_clips unconditionally.
15456 (struct face): Define members font_info and extra unconditionally.
15457
15458 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
15459 ftfont_info only when HAVE_LIBOTF is defined.
15460
154612008-02-01 Andreas Schwab <schwab@suse.de>
15462
15463 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
15464 and end.
15465
154662008-02-01 Jason Rumney <jasonr@gnu.org>
15467
15468 * w32font.c (w32font_driver): Add new fields.
15469
154702008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15471
15472 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
15473 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
15474 (LIBES): Add @M17N_FLT_CFLAGS@.
15475
15476 * composite.c (compose_text): Don't treat the new style
15477 composition specially.
15478
15479 * emacs.c (main): Call syms_of_font unconditionally.
15480
15481 * font.h (FONT_ENTITY_NOT_LOADABLE)
15482 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
15483 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
15484 (struct font_driver): New member shape.
15485 (font_registry_charsets): Extern it.
15486 (font_find_for_lface, font_prepare_composition): Adjust prototype.
15487 (font_otf_capability, font_drive_otf): Delete their externs.
15488
15489 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
15490 (font_charset_alist, font_registry_charsets): Move from xfont.c
15491 and rename.
15492 (font_prop_validate_otf): New function.
15493 (font_property_table): Register it for QCotf.
15494 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
15495 (font_drive_otf): Delete.
15496 (font_prepare_composition): New arg F. Adjust for the change of
15497 lispy gstring.
15498 (font_find_for_lface): New arg C.
15499 (font_load_for_face): Adjust for the change of font_find_for_lface.
15500 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
15501 lispy gstring.
15502 (Ffont_shape_text): New function.
15503 (Fopen_font): If the font size is not given, use 12-pixel.
15504 (Ffont_at): New arg STRING.
15505 (syms_of_font): Initalize font_charset_alist.
15506 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
15507 conditionally.
15508
15509 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
15510 fonts of the same font-spec. Change the format of RFONT-DEF.
15511 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
15512 Adjust for the change of RFONT-DEF.
15513 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
15514
15515 * ftfont.h: New file.
15516
15517 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
15518 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
15519 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
15520 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
15521 font_otf_capability and font_drive_otf, set ftfont_shape.
15522 (ftfont_list): Adjust for the change of :otf property value.
15523 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
15524 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
15525 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
15526 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
15527 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
15528 (otf_gstring, gstring, m17n_flt_initialized): New variables.
15529
15530 * w32term.c (x_draw_composite_glyph_string_foreground):
15531 Adjust for the change of lispy gstring.
15532
15533 * xdisp.c (handle_composition_prop): Adjust for the change of
15534 lispy gstring. Call a function for auto-composition with the
15535 third arg it->window.
15536 (fill_composite_glyph_string): Adjust for the change of lispy string.
15537 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
15538
15539 * xfaces.c (set_font_frame_param): Adjust for the change of
15540 font_find_for_lface.
15541
15542 * xfont.c (x_font_charset_alist): Move to font.c and rename.
15543 (xfont_registry_charsets): Likewise. Change caller.
15544 (syms_of_xfont): Don't handle x_font_charset_alist.
15545
15546 * xftfont.c: Include "ftfont.h".
15547 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
15548 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
15549 (xftfont_close) [HAVE_LIBOTF]: Close otf.
15550 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
15551 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
15552 Set xftfont_driver.shape to xftfont_shape.
15553
15554 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
15555 the change of lispy gstring.
15556
155572008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15558
15559 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
15560
155612008-02-01 Jason Rumney <jasonr@gnu.org>
15562
15563 * w32font.c (w32font_draw): Fill background manually.
15564
155652008-02-01 Jason Rumney <jasonr@gnu.org>
15566
15567 * font.c (Qfontp): Remove unused symbol.
15568 (QCantialias): New symbol.
15569 (syms_of_font): Define it.
15570 (font_property_table): Set a validator for QCantialias.
15571
15572 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
15573 Define if not already.
15574 (QCfamily): Share with xfaces.c.
15575 (Qstandard, Qsubpixel, Qnatural): New symbols.
15576 (syms_of_w32font): Define them. Don't define QCfamily here.
15577 (w32_antialias_type, lispy_antialias_type): New functions.
15578 (w32_enumfont_pattern_entity): New arg requested_font.
15579 Set antialias parameter if non-default was requested.
15580 (fill_in_logfont): Fill in lfQuality if :antialias specified.
15581
155822008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15583
15584 * lread.c (read1): Undo the previous change.
15585
155862008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
15587
15588 * frame.c (Fdelete_frame): Call font_update_drivers only when
15589 USE_FONT_BACKEND is defined.
15590
155912008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15592
15593 * font.h (struct font_bitmap): New member bits_per_pixel.
15594 (struct font_driver): New members start_for_frame and end_for_frame.
15595 (struct font_data_list): New struct.
15596 (font_put_frame_data, font_get_frame_data): Extern them.
15597
15598 * frame.h (struct frame): New member font_data_list.
15599
15600 * font.c (font_update_drivers): Call driver->start_for_frame and
15601 driver->end_for_frame at proper timings.
15602 (font_put_frame_data, font_get_frame_data): New functions.
15603 (Ffont_spec): Add usage in the docstring.
15604
15605 * frame.c (make_frame): Initialize f->font_data_list to NULL.
15606 (Fdelete_frame): Call font_update_drivers.
15607
15608 * xftfont.c (struct xftface_info): Delete the member xft_draw.
15609 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
15610 (xftfont_get_xft_draw): New function.
15611 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
15612 (xftfont_end_for_frame): New function.
15613 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
15614
15615 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
15616 Change argument. Cache GCs in the per-frame data.
15617 (struct ftxfont_frame_data): New struct.
15618 (ftxfont_draw_bitmap): New arg gc_fore and flush.
15619 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
15620 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
15621 (ftxfont_end_for_frame): New function.
15622 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
15623
15624 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
15625
156262008-02-01 Kenichi Handa <handa@m17n.org>
15627
15628 * xselect.c (Vselection_coding_system)
15629 (Vnext_selection_coding_system): Delete them.
15630 (syms_of_xselect): Don't declare selection-coding-system and
15631 next-selection-coding-system. They are declared in select.el.
15632
156332008-02-01 Jason Rumney <jasonr@gnu.org>
15634
15635 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
15636
15637 * w32fns.c: Include imm.h.
15638 (get_composition_string_fn, get_ime_context_fn): New optional
15639 system functions.
15640 (globals_of_w32fns): Load them from imm32.dll.
15641 (ignore_ime_char): New flag.
15642 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
15643 WM_IME_ENDCOMPOSITION messages.
15644
15645 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
15646 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
15647
156482008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15649
15650 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
15651 (READCHAR_REPORT_MULTIBYTE): New macro.
15652 (readchar): New 2nd arg MULTIBYTE.
15653 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
15654 Make symbol's name multibyte according to the multibyteness of the
15655 source.
15656
156572008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15658
15659 * xfaces.c (face_for_overlay_string): Call lookup_face with
15660 correct arguments (fix of synching with the trunk).
15661
156622008-02-01 Kenichi Handa <handa@m17n.org>
15663
15664 * font.c (font_prop_validate_symbol, font_prop_validate_style)
15665 (font_prop_validate_non_neg, font_prop_validate_spacing):
15666 Delete argument prop_index.
15667 (font_property_table): Change arguments to validater. Change Callers.
15668 (font_lispy_object): Delete.
15669 (font_at): Use font_find_object instead fo font_lispy_object.
15670
156712008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15672
15673 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
15674 and file names.
15675
156762008-02-01 Jason Rumney <jasonr@gnu.org>
15677
15678 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
15679 (font_matches_spec): Remove debug output.
15680 (add_font_entity_to_list): Avoid using substituted fonts.
15681
156822008-02-01 Jason Rumney <jasonr@gnu.org>
15683
15684 * doc.c (Fsnarf_documentation):
15685 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
15686
156872008-02-01 Miles Bader <miles@gnu.org>
15688
15689 * dispextern.h (struct glyph_row): Only define "clip" field if
15690 HAVE_WINDOW_SYSTEM is defined.
15691
156922008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
15693
15694 Fix up multi-tty merge.
15695
15696 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
15697 and indentation.
15698
15699 * xfaces.c (free_realized_face, clear_face_gcs):
15700 Include font_done_for_face in the input_blocked section, just in case.
15701
15702 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
15703 (get_char_face_and_encoding): Undo last change and remove the *other*
15704 duplicate definition (i.e. keep the one that's better scoped and that
15705 includes code for the font-backend).
15706
15707 * terminal.c (create_terminal): Default keyboard_coding to
15708 `no-conversion' and terminal_coding to `undecided'.
15709
15710 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
15711
15712 * fontset.c (free_realized_fontsets): Check that the table entry does
15713 contain a fontset before trying to compare it to `base'.
15714
15715 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
15716 syms_of_charset, and syms_of_coding earlier because init_window_once
15717 now needs Vcoding_system_hash_table to be setup.
15718
15719 * coding.h (default_buffer_file_coding): Remove.
15720
15721 * coding.c (default_buffer_file_coding): Remove.
15722 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
15723 than ->symbol, and use the terminal-local coding system.
15724 (syms_of_coding): Don't setup the coding-systems that are not
15725 terminal-local.
15726 (Fdefine_coding_system_internal): Use XCAR/XCDR.
15727
15728 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
15729 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
15730
15731 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
15732 in chartab.c and were re-added here by mistake.
15733 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
15734
15735 * doc.c (Fsnarf_documentation):
15736 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
15737 src to etc.
15738
15739 * ChangeLog.10: Add mistakenly removed entry.
15740
157412008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
15742
15743 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
15744
157452008-02-01 Miles Bader <miles@gnu.org>
15746
15747 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
15748 Add extra args to FACE_FOR_CHAR.
15749
157502008-02-01 Kenichi Handa <handa@m17n.org>
15751
15752 * keymap.c (where_is_internal_1): If key is a cons, store the copy
15753 in sequence.
15754
15755 * chartab.c (map_sub_char_table, map_char_table): If the range
15756 contains just one character, call the function with that character
15757 even if the depth is not 3.
15758
157592008-02-01 Jason Rumney <jasonr@gnu.org>
15760
15761 * w32font.c (w32font_text_extents): Calculate metrics for the
15762 whole string.
15763
157642008-02-01 Jason Rumney <jasonr@gnu.org>
15765
15766 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
15767
157682008-02-01 Jason Rumney <jasonr@gnu.org>
15769
15770 * w32term.c (x_set_glyph_string_clipping): Use
15771 get_glyph_string_clip_rects.
15772 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
15773 Adjust for the change of struct glyph_string.
15774
15775 * w32font.c (w32font_draw): Do clipping here.
15776
157772008-02-01 Kenichi Handa <handa@m17n.org>
15778
15779 * xftfont.c (xftfont_draw): Adjust for the change of struct
15780 glyph_string.
15781
15782 * xterm.c (x_set_glyph_string_clipping): Use
15783 get_glyph_string_clip_rects.
15784 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
15785 Adjust for the change of struct glyph_string.
15786
15787 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
15788 the resulting clip(s}.
15789 (expose_overlaps): Add arg r. Change callers. Set it to
15790 row->clip temporarily.
15791 (expose_window): Redraw rows overlapping the exposed area.
15792
15793 * dispextern.h (struct glyph_row): New member clip.
15794 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
15795 clip_height, new member clip, and num_clips.
15796
157972008-02-01 Kenichi Handa <handa@m17n.org>
15798
15799 * data.c (Fchar_or_string_p): Fix docstring.
15800
158012008-02-01 Kenichi Handa <handa@m17n.org>
15802
15803 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
15804 create a temporary XftDraw object.
15805
158062008-02-01 Kenichi Handa <handa@m17n.org>
15807
15808 * font.c (Ffontp): Fix docstring.
15809
15810 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
15811 strong evidence of ISO-2022.
15812
158132008-02-01 Kenichi Handa <handa@m17n.org>
15814
15815 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
15816 SYNTAX_ENTRY_FOLLOW_PARENT.
15817
158182008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
15819
15820 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
15821 its type.
15822 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
15823 Update to the new type of weak_hash_tables and next_weak.
15824
15825 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
15826 a plain C pointer to Lisp_Hash_Table.
15827
15828 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
15829 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
15830 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
15831 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
15832 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
15833 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
15834 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
15835 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
15836 (GC_EQ): Remove since they've been identical to their non-GC_
15837 alter-egos ever since the markbit was eradicated.
15838
15839 * alloc.c:
15840 * buffer.c:
15841 * buffer.h:
15842 * data.c:
15843 * fileio.c:
15844 * filelock.c:
15845 * fns.c:
15846 * frame.h:
15847 * lisp.h:
15848 * macterm.c:
15849 * print.c:
15850 * process.c:
15851 * w32fns.c:
15852 * w32menu.c:
15853 * w32term.c:
15854 * xfns.c:
15855 * xmenu.c:
15856 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
15857
158582008-02-01 Kenichi Handa <handa@m17n.org>
15859
15860 * chartab.c (map_sub_char_table): Make it work for the top-level
15861 char-table. Fix handling of parent char-table.
15862 (map_char_table): Adjust for the above change.
15863
158642008-02-01 Jason Rumney <jasonr@gnu.org>
15865
15866 * w32font.c (Qgdi): Rename from Qw32.
15867
158682008-02-01 Jason Rumney <jasonr@gnu.org>
15869
15870 * w32bdf.c (get_quoted_string): Make function static.
15871
158722008-02-01 Kenichi Handa <handa@m17n.org>
15873
15874 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
15875 bigger ascent and descent than those of the font, use them as
15876 font's ascent and descent.
15877
158782008-02-01 Kenichi Handa <handa@m17n.org>
15879
15880 * Makefile.in (${lispsource}international/charprop.el): Move this
15881 target within "#ifdef HAVE_UNIDATA" and "#endif".
15882
158832008-02-01 Kenichi Handa <handa@m17n.org>
15884
15885 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
15886 (shortlisp): Add ../lisp/language/tai-viet.el.
15887
158882008-02-01 Ulrich Mueller <ulm@gentoo.org>
15889
15890 * Makefile.in (${lispsource}international/charprop.el): Depend on
15891 temacs${EXEEXT}.
15892
158932008-02-01 Jason Rumney <jasonr@gnu.org>
15894
15895 * w32font.c (w32font_close): Delete the GDI font object.
15896
15897 * w32menu.c: Include character.h.
15898
15899 * w32proc.c: Likewise.
15900
15901 * w32select.c: Likewise.
15902
15903 * makefile.w32-in (w32proc.o): Depend on character.h.
15904
159052008-02-01 Jason Rumney <jasonr@gnu.org>
15906
15907 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
15908
15909 * w32menu.c (syms_of_w32menu): Likewise.
15910
15911 * w32proc.c (syms_of_ntproc): Likewise.
15912
15913 * w32select.c (syms_of_w32select): Likewise.
15914
15915 * w32term.c (syms_of_w32term): Likewise.
15916
159172008-02-01 Jason Rumney <jasonr@gnu.org>
15918
15919 * w32font.c (w32font_draw): Delete brush after using it.
15920
159212008-02-01 Jason Rumney <jasonr@gnu.org>
15922
15923 * w32font.c (w32font_open): Don't set font_idx.
15924 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
15925 to font settings.
15926 (w32font_draw): Fill background explicitly.
15927
159282008-02-01 Jason Rumney <jasonr@gnu.org>
15929
15930 * w32term.c (w32_initialize): Don't call w32font_initialize.
15931
15932 * w32font.c (w32font_info): Remove subranges.
15933 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
15934 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
15935 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
15936 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
15937 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
15938 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
15939 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
15940 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
15941 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
15942 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
15943 New symbols.
15944 (font_callback_data): New struct.
15945 (w32font_list, w32font_match): Use it.
15946 (w32font_open): Don't populate subranges.
15947 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
15948 (w32font_encode_char): Always return unicode code-point as-is.
15949 (w32font_text_extents): Supply a transformation matrix to
15950 GetGlyphOutline. Never look up by glyph index. Avoid looping
15951 twice. Use unicode version of GetTexExtentPoint32 instead of
15952 glyph index version.
15953 (set_fonts_frame): Remove.
15954 (w32_enumfont_pattern_entity): Add frame parameter, use it to
15955 set frame parameter. Use backward compatible fake foundries.
15956 Save generic family in extra slot under QCfamily. Make width slot
15957 constant. Save QCspacing value. Save list of scripts instead of
15958 binary subranges.
15959 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
15960 (add_font_entity_to_list): Use font_callback_data struct. Filter
15961 unwanted fonts.
15962 (add_one_font_entity_to_list): Use font_callback_data struct.
15963 (w32_registry): Default to iso10646_1.
15964 (fill_in_logfont): Use dpi from extra slot. Don't bother with
15965 string font registries. Don't fill in font name if it is a generic
15966 family name, fill family instead. Use spacing, family and script
15967 extra info to fill pitch, family and charset fields.
15968 (list_all_matching_fonts): Use font_callback_data struct.
15969 (unicode_range_for_char): Remove.
15970 (font_supported_scripts): New function.
15971 (w32font_initialize): Remove.
15972 (syms_of_w32font): Update which symbols are defined.
15973
159742008-02-01 Jason Rumney <jasonr@gnu.org>
15975
15976 * font.c (font_pixel_size): Reverse assq_no_quit args.
15977
15978 * w32term.h (FONT_WIDTH): Report max width, not average.
15979 (FONT_MAX_WIDTH): Remove.
15980 (FONT_AVG_WIDTH): New macro.
15981
15982 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
15983 redefinition of FONT_WIDTH.
15984
15985 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
15986 (w32_cache_char_metrics): Use FONT_WIDTH.
15987
15988 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
15989
159902008-02-01 Jason Rumney <jasonr@gnu.org>
15991
15992 * w32font.c (w32font_open): Make lfHeight negative.
15993
15994 * w32fns.c (x_default_font_parameter): Use new style font name.
15995 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
15996
159972008-02-01 Jason Rumney <jasonr@gnu.org>
15998
15999 * w32font.c (QCsubranges): New symbol.
16000 (w32font_open, w32font_has_char): Get subranges from subproperty
16001 of extra.
16002 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
16003 (syms_of_w32font): Define :subranges symbol.
16004
16005 * font.c (font_put_extra): Expose externally.
16006
16007 * font.h (font_put_extra): Move declaration from font.c.
16008
16009 * font.c (Ffont_get): Use font driver to determine otf capability.
16010 (adjust_anchor): Check if driver defines anchor_point before using.
16011
16012 * w32font.c (w32font_open): Handle size, height and pixel_size better.
16013 (w32font_draw): Use options.
16014 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
16015 Fix detection of truetype fonts.
16016 (registry_to_w32_charset): Handle charsets other than iso8859-1
16017 expressed as lisp symbols.
16018 (w32_registry): Express charset as lisp symbol.
16019 (fill_in_logfont): Reverse pixel and point height logic.
16020 Don't set width here. Set quality to default.
16021
16022 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
16023 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
16024
16025 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
16026 Remove redundant loop and allocation.
16027
16028 * makefile.w32-in (font.o, w32font.o): New objects.
16029 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
16030 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
16031
16032 * xdisp.c (fill_composite_glyph_string): Make the first arg to
16033 STORE_XCHARB a valid l-value.
16034
16035 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
16036 calculations for non-Truetype fonts.
16037 (x_draw_glyph_string): Sync with xterm.c.
16038 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
16039 Remove redundant code.
16040 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
16041
16042 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
16043 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
16044
16045 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
16046 (x_to_w32_charset, w32_to_x_charset): Expose externally.
16047
16048 * w32font.c: New file for w32 font backend.
16049
160502008-02-01 Kenichi Handa <handa@m17n.org>
16051
16052 * term.c: Don't include "buffer.h" twice.
16053
160542008-02-01 Kenichi Handa <handa@m17n.org>
16055
16056 * character.c (Funibyte_string): New function.
16057 (syms_of_character): Defsubr it.
16058
160592008-02-01 Jason Rumney <jasonr@gnu.org>
16060
16061 * w32term.c [USE_FONT_BACKEND]:
16062 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
16063 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
16064 (x_draw_glyph_string, x_draw_glyph_string_foreground)
16065 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
16066 (x_free_frame_resources): Sync with xterm.c.
16067
160682008-02-01 Andreas Schwab <schwab@suse.de>
16069
16070 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
16071 char-table size.
16072
160732008-02-01 Kenichi Handa <handa@m17n.org>
16074
16075 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
16076
160772008-02-01 Kenichi Handa <handa@m17n.org>
16078
16079 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
16080 font_otf_gpos, add font_drive_otf.
16081
16082 * fontset.c (fontset_find_font): Pay attention to font size
16083 specified for a font.
16084 (reorder_font_vector): Check contents of font_def.
16085
16086 * font.c (struct otf_list): Delete it.
16087 (otf_list): Make it a lisp variable.
16088 (otf_open): Use lispy otf_list.
16089 (generate_otf_features): Rename from parse_gsub_gpos_spec.
16090 (check_otf_features): New function.
16091 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
16092 New functions.
16093 (font_drive_otf): New function merging font_otf_gsub and
16094 font_otf_gpos.
16095 (font_open_for_lface): New arg spec. Change argument order.
16096 (font_load_for_face): Adjust for the change of font_open_for_lface.
16097 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
16098 Ffont_otf_gpos.
16099 (syms_of_font): Staticpro otf_list. Delete defsubr of
16100 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
16101
16102 * xfaces.c (set_font_frame_param): Adjust for the change of
16103 font_open_for_lface.
16104
16105 * font.h (font_open_for_lface): Adjust prototype.
16106 (struct font_driver): Delete members otf_gsub and otf_gpos, add
16107 member otf_drive.
16108 (font_otf_gsub, font_otf_gpos): Delete externs.
16109 (font_drive_otf): Extern it.
16110
161112008-02-01 Kenichi Handa <handa@m17n.org>
16112
16113 * font.c (font_at): If the window W is not on a window system,
16114 return Qnil.
16115
16116 * coding.c (produce_chars, encode_coding): Don't call
16117 insert_from_gap if no characters to produce.
16118
161192008-02-01 Kenichi Handa <handa@m17n.org>
16120
16121 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
16122 Fclear_face_cache.
16123
16124 * xfaces.c (face_for_font): Check also face->font==font->font.font.
16125
161262008-02-01 Miles Bader <miles@gnu.org>
16127
16128 * emacs.c (main): Change default value of `enable_font_backend' to 1.
16129 Parse "--disable-font-backend" option.
16130 (standard_args): Add "--disable-font-backend" option.
16131
161322008-02-01 Kenichi Handa <handa@m17n.org>
16133
16134 * fontset.c (fontset_find_font): New function.
16135 (fontset_font): Use fontset_find_font.
16136 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
16137 Register the specified font for all Latin characters.
16138 (new_fontset_from_font): Register the specified font for all Latin
16139 characters.
16140 (dump_fontset): For a realized fontset, include the base fontset
16141 name in the returned vector.
16142
161432008-02-01 Kenichi Handa <handa@m17n.org>
16144
16145 * character.h (CHAR_STRING): Cast C to unsigned on calling
16146 char_string.
16147
16148 * character.c (char_string): Type of arg C changed to unsigned.
16149 Signal an error if C is an invalid character code.
16150
16151 * editfns.c (general_insert_function, Fchar_to_string):
16152 Use CHARACTERP, not INTEGERP.
16153
161542008-02-01 Kenichi Handa <handa@m17n.org>
16155
16156 * character.h (MIN_MULTIBYTE_LEADING_CODE)
16157 (MAX_MULTIBYTE_LEADING_CODE): New macros.
16158
16159 * regex.c (analyse_first): Fix for multibyte characters in "case
16160 charset:" and "case categoryspec:".
16161
161622008-02-01 Andreas Schwab <schwab@suse.de>
16163
16164 * Makefile.in (LIBES): Move standard libraries to the end.
16165
161662008-02-01 Kenichi Handa <handa@m17n.org>
16167
16168 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
16169 nonzero, don't shrink the buffer nextb.
16170
16171 * buffer.h (struct buffer_text): New member inhibit_shrinking.
16172
16173 * coding.c (coding_alloc_by_making_gap): New arg offset.
16174 (alloc_destination): Call coding_alloc_by_making_gap with the arg
16175 offset.
16176 (decode_coding_iso_2022): Update coding->safe_charsets.
16177 (decode_coding_gap): Temporarily set
16178 current_buffer->text->inhibit_shrinking to 1.
16179
161802008-02-01 Kenichi Handa <handa@m17n.org>
16181
16182 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
16183 indexing into elements of s->cmp and s->char2b.
16184
161852008-02-01 Juanma Barranquero <lekktu@gmail.com>
16186
16187 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
16188
161892008-02-01 Kenichi Handa <handa@m17n.org>
16190
16191 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
16192 target_multibyte instead of multibyte.
16193 (re_match_2_internal): Call bcmp_translate with target_multibyte.
16194 (bcmp_translate): Change the argument name from multibyte to
16195 target_multibyte.
16196
161972008-02-01 Kenichi Handa <handa@m17n.org>
16198
16199 These changes are to compile a regexp into a pattern that can be
16200 used both for multibyte and unibyte targets.
16201
16202 * Makefile.in (search.o): Depend on charset.h.
16203
16204 * character.c (multibyte_char_to_unibyte_safe): New function.
16205
16206 * search.c: Include "charset.h".
16207 (compile_pattern_1): Delete argument multibyte. Don't set
16208 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
16209 (compile_pattern): Don't compare cp->buf.target_multibyte.
16210 Compare cp->buf.charset_unibyte.
16211 (compile_pattern): Set cp->buf.target_multibyte.
16212
16213 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
16214
16215 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
16216
16217 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
16218 multibyte. Change callers.
16219 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
16220 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
16221 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
16222 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
16223 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
16224 (regex_compile): Make the compiled pattern usable both for
16225 multibyte and unibyte targets.
16226 (analyse_first): Make the fastmap usable both for multibyte and
16227 unibyte targets.
16228 (TRANSLATE_VIA_MULTIBYTE): Delete.
16229 (re_match_2_internal): Pay attention to the case that the
16230 multibyteness of bufp and target may be different.
16231
162322008-02-01 Kenichi Handa <handa@m17n.org>
16233
16234 * xdisp.c (x_produce_glyphs): When a font is not found, make the
16235 empty box occupy at least one column width.
16236
162372008-02-01 Miles Bader <miles@gnu.org>
16238
16239 * Makefile.in: Remove redundant HAVE_XFT clause.
16240
162412008-02-01 Kenichi Handa <handa@m17n.org>
16242
16243 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
16244
162452008-02-01 Kenichi Handa <handa@m17n.org>
16246
16247 * fontset.c (Finternal_char_font): Fix for the case of POSITION
16248 being nil.
16249
162502008-02-01 Kenichi Handa <handa@m17n.org>
16251
16252 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
16253
162542008-02-01 Kenichi Handa <handa@m17n.org>
16255
16256 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
16257
162582008-02-01 Kenichi Handa <handa@m17n.org>
16259
16260 * search.c (simple_search): Fix previous change.
16261
162622008-02-01 Kenichi Handa <handa@m17n.org>
16263
16264 * xftfont.c (ftfont_font_format): Extern declaration.
16265
16266 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
16267
16268 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
16269 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
16270
16271 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
16272 (ftfont_font_format): Fix previous change.
16273
16274 * font.h (Ffont_xlfd_name): EXFUN it.
16275
16276 * font.c (font_parse_xlfd): Fix the array size of `f'.
16277 (register_font_driver): Use EQ to compare driver->type.
16278
16279 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
16280 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
16281 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
16282
162832008-02-01 Kenichi Handa <handa@m17n.org>
16284
16285 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
16286 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
16287
162882008-02-01 Kenichi Handa <handa@m17n.org>
16289
16290 * xfont.c (xfont_open): Set font->format.
16291
16292 * xftfont.c (xftfont_open): Set font->format.
16293
16294 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
16295 (ftfont_list): Include FC_FONTFORMAT in FcObject.
16296 (ftfont_open): Set font->format.
16297 (ftfont_font_format): New function.
16298
16299 * font.h (struct font): New member format.
16300
16301 * font.c (Qopentype): New variable.
16302 (syms_of_font): Defsym it.
16303 (Fquery_font): Change the format of the last element of the return
16304 value.
16305
163062008-02-01 Kenichi Handa <handa@m17n.org>
16307
16308 * xfns.c (xic_create_xfontset): Try the default fontset name as a
16309 last resort.
16310
163112008-02-01 Kenichi Handa <handa@m17n.org>
16312
16313 * coding.c (detect_coding_charset): Fix detection of multi-byte
16314 charset.
16315
163162008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
16317
16318 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
16319
163202008-02-01 Kenichi Handa <handa@m17n.org>
16321
16322 * xdisp.c (get_next_display_element): Set it->face_id for the
16323 first component of a composition.
16324 (x_produce_glyphs): Check if the font is changed or not for composition.
16325
163262008-02-01 Kenichi Handa <handa@m17n.org>
16327
16328 * fontset.c (Qlatin): New variable.
16329 (syms_of_fontset): Define it as a lisp symbol.
16330 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
16331
163322008-02-01 Kenichi Handa <handa@m17n.org>
16333
16334 * font.c (font_unparse_fcname): Pay attention to the case that
16335 some of font property is a null string.
16336
163372008-02-01 Kenichi Handa <handa@m17n.org>
16338
16339 * term.c: Include "composite.h".
16340 (encode_terminal_code): Output all components of composition.
16341 Check the size of encode_terminal_src.
16342 (produce_glyphs): For composition, call produce_composite_glyph.
16343 (append_composite_glyph, produce_composite_glyph): New functions.
16344
16345 * xdisp.c (x_produce_glyphs): In handling composition, if a font
16346 is not found, get font_info from the current ascii face.
16347
163482008-02-01 Kenichi Handa <handa@m17n.org>
16349
16350 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
16351 buffer-file-name to Qnil before calling insert_from_buffer.
16352
16353 * font.c (font_unparse_fcname): Pay attention to the case that
16354 foundry is a null string.
16355
163562008-02-01 Kenichi Handa <handa@m17n.org>
16357
16358 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
16359
16360 * font.c (Qunicode_sip): New variable.
16361 (syms_of_font): Declare it as a Lisp symbol.
16362
16363 * font.h (Qunicode_sip): Extern it.
16364
163652008-02-01 Kenichi Handa <handa@m17n.org>
16366
16367 * composite.c (get_composition_id): Pay attention to TAB component.
16368
16369 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
16370 TAB. Adjust for the change of s->char2b which always points to
16371 the first element of allocated memory.
16372
16373 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
16374
16375 * xdisp.c (handle_composition_prop): Set it->c to the first
16376 non-TAB component.
16377 (fill_composite_glyph_string): Change argument.
16378 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
16379 (x_produce_glyphs): Fix handling of left/right padding.
16380
163812008-02-01 Kenichi Handa <handa@m17n.org>
16382
16383 * coding.c (detect_coding_system): Fix for handling off
16384 inhibit_iso_escape_detection. Fix for the case that no coding
16385 system is defined for a specific coding category.
16386
163872008-02-01 Kenichi Handa <handa@m17n.org>
16388
16389 * font.c (font_matching_entity): Delete unused local var.
16390
16391 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
16392 opening a font.
16393
16394 * fileio.c (Finsert_file_contents): On recovering a file, assume
16395 Unix-like eol.
16396 (choose_write_coding_system): On auto-saving a file, force
16397 Unix-like eol.
16398
16399 * coding.c (setup_coding_system): Fix setting of
16400 coding->common_flags based on eol_type.
16401 (coding_inherit_eol_type): If PARENT is not nil, be sure to
16402 inherit from it.
16403
164042008-02-01 Kenichi Handa <handa@m17n.org>
16405
16406 * alloc.c (NSTATICS): Increas to 0x600.
16407
164082008-02-01 Kenichi Handa <handa@m17n.org>
16409
16410 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
16411 (ftfont_list): Don't check :name property.
16412 (ftfont_match): New function.
16413 (ftfont_pattern_entity): If the pattern doesn't contain
16414 FC_SPACING, don't assume FC_MONO.
16415
16416 * font.h (struct font_driver): New member `match'.
16417 (font_update_drivers): Adjust prototype.
16418
16419 * font.c (font_parse_fcname, font_parse_name): Don't change :name
16420 property of FONT.
16421 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
16422 them unconditionally.
16423 (font_matching_entity): New function.
16424 (font_open_by_name): Try font_matching_entity if exact match is
16425 not found.
16426 (font_update_drivers): Delete the arg FONT. Return a list of
16427 actually used backends. Don't free faces, font caches here.
16428 Don't store data in frame parameters. Don't call x_set_font.
16429 (Ffont_spec): Store :name property as is.
16430 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
16431 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
16432 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
16433 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
16434 Call font->driver->otf_gsub instead of font_otf_gsub.
16435
16436 * frame.c (x_set_font_backend): Do more works that were done in
16437 font_update_drivers before.
16438
16439 * xfont.c (xfont_match): New function.
16440 (xfont_driver): Set xfont_driver.match to xfont_match.
16441 (xfont_draw): Set font in GC if necessary.
16442
16443 * ftxfont.c (ftxfont_match): New function.
16444 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
16445
16446 * xftfont.c (xftfont_match): New function.
16447 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
16448
164492008-02-01 Kenichi Handa <handa@m17n.org>
16450
16451 * font.h (struct font): New member scalable.
16452 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
16453 (font_otf_gsub): Adjust prototype.
16454
16455 * font.c (font_otf_capability): Fix handling of the default langsys.
16456 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
16457 Check the contents of SPEC.
16458 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
16459 (check_gstring): New function.
16460 (REPLACEMENT_CHARACTER): New macro.
16461 (font_otf_gsub): New arg alternate_subst. Be sure to set all
16462 glyph codes of GSTRING.
16463 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
16464 (font_prepare_composition): Set cmp->glyph_len.
16465 (font_open_entity): Set font->scalable.
16466 (Ffont_get): Handle :otf property.
16467 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
16468 functions.
16469 (Fquery_font): Use font->font.full_name.
16470 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
16471 Sfont_otf_alternates.
16472
16473 * ftfont.c (ftfont_open): Set font->font.full_name and
16474 font->font.name properly. Fix calculation of font->font.height
16475 and font->min_width.
16476
16477 * ftxfont.c (ftxfont_create_gcs): New function.
16478 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
16479 (ftxfont_draw_backgrond): Fix filling region.
16480 (ftxfont_default_fid): New function.
16481 (ftxfont_open): Set xfont->fid to the return value of
16482 ftxfont_default_fid.
16483 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
16484 (ftxfont_done_face): Free only GCs that are created by
16485 ftxfont_create_gcs.
16486 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
16487
16488 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
16489 Clip to src->width, etc (not src->clip_XXX).
16490
16491 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
16492 FontBackend frame parameter.
16493
164942008-02-01 Kenichi Handa <handa@m17n.org>
16495
16496 * font.h (struct font_driver_list): New member `on'.
16497 (Fclear_font_cache): EXFUN it.
16498 (font_update_drivers): Extern it.
16499
16500 * font.c (font_unparse_fcname): Fix typo (swidth->width).
16501 (font_list_entities): Check driver_list->on.
16502 (register_font_driver): Initalize `on' member to 0.
16503 (font_update_drivers): New function.
16504 (Fclear_font_cache): Check driver_list->on.
16505
16506 * frame.h (Qfont_backend): Extern it.
16507 (x_set_font_backend): Extern it.
16508
16509 * frame.c (Qfont_backend): New variable.
16510 (frame_parms): New element for font-backend.
16511 (x_set_font_backend): New function.
16512
16513 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
16514 FontBackend frame parameter.
16515 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
16516 x_set_font_backend.
16517
16518 * xfont.c (xfont_list): Don't try listing by :name property if the
16519 name is not for XLFD.
16520
165212008-02-01 Kenichi Handa <handa@m17n.org>
16522
16523 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
16524 (LGLYPH_SET_TO): New macros.
16525 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
16526 element of G is vector or not.
16527 (font_at): Extern it.
16528
16529 * font.c: Include window.h.
16530 (font_lispy_object): New function.
16531 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
16532 end of valid glyph.
16533 (font_close_object): Fix getting (struct font *).
16534 (font_at): New function.
16535 (Ffont_get): If FONT is a font-object, get entity from it.
16536 (Ffont_make_gstring): Initialize elements of glyphs with nil.
16537 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
16538 range check.
16539 (Ffont_at): New function.
16540 (syms_of_font): Defsubr Sfont_at.
16541
16542 * xdisp.c (it_props): Move the entry for Qauto_composed to just
16543 before the entry for Qcomposition.
16544 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
16545 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
16546 the font in gstring.
16547 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
16548 LGLYPH_FORM (g) to detect the end of valid glyph.
16549 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
16550 we are composing with gstring.
16551
16552 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
16553 Check if adjustment is vector or not.
16554
16555 * Makefile.in (font.o): Make it depends on window.h.
16556
165572008-02-01 Kenichi Handa <handa@m17n.org>
16558
16559 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
16560 adjustment is vector or not.
16561
165622008-02-01 Miles Bader <miles@gnu.org>
16563
16564 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
16565
165662008-02-01 Kenichi Handa <handa@m17n.org>
16567
16568 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
16569 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
16570 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
16571
16572 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
16573 (DEVICE_DELTA): Fix typo.
16574 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
16575 LGLYPH format.
16576
16577 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
16578 the change of LGLYPH format.
16579
165802008-02-01 Kenichi Handa <handa@m17n.org>
16581
16582 * ftfont.c (ftfont_list): Fix typo.
16583 (ftfont_build_basic_charsets): Don't include letters with diacritics.
16584
165852008-02-01 Jan Djärv <jan.h.d@swipnet.se>
16586
16587 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
16588
16589 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
16590 xftface_info is non-NULL.
16591
165922008-02-01 Jan Djärv <jan.h.d@swipnet.se>
16593
16594 * ftfont.c (ftfont_list): Move misplaced #endif.
16595
165962008-02-01 Kenichi Handa <handa@m17n.org>
16597
16598 * ftfont.c (ftfont_list): Pay attention to the case that
16599 FC_CAPABILITY is not defined.
16600
166012008-02-01 Kenichi Handa <handa@m17n.org>
16602
16603 * xftfont.c (xftfont_open): Set charset related members to -1.
16604
16605 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
16606 QCname.
16607 (ftfont_open): Set charset related members to -1.
16608
16609 * fontset.c (Votf_script_alist): New variable.
16610 (syms_of_fontset): Initialize it.
16611 (fontset_font): Delete unused variable.
16612
16613 * fontset.h (Votf_script_alist): Extern it.
16614
16615 * font.c (font_find_for_lface): Optimize code.
16616
16617 * font.h (font_close_object, font_merge_old_spec): Extern them.
16618
166192008-02-01 Kenichi Handa <handa@m17n.org>
16620
16621 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
16622 (syms_of_font): Initialize them.
16623 (font_pixel_size): Allow float value in dpi.
16624 (font_prop_validate_type): Delete.
16625 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
16626 Change caller.
16627 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
16628 (font_prop_validate_extra): Delete.
16629 (font_prop_validate_spacing): New function.
16630 (font_property_table): Add elements for all known properties.
16631 (get_font_prop_index): Rename from check_font_prop_name. New
16632 argument FROM. Change caller.
16633 (font_prop_validate): Validate all known properties.
16634 (font_put_extra): Delete argument force. Change caller.
16635 (font_expand_wildcards): Make it static. Fix the way of shrinking
16636 the possible range.
16637 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
16638 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
16639 Change caller.
16640 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
16641 (font_parse_fcname): Delete argument merge. Fix parsing of point
16642 size. Don't validate properties values here. Change caller.
16643 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
16644 (font_open_by_name): Delete unused variable.
16645 (Ffont_spec): Likewise. Validate property values.
16646 (Ffont_match_p): New function.
16647
16648 * font.h (QCscalable): Extern it.
16649 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
16650
16651 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
16652
16653 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
16654 (xfont_list_pattern): New function.
16655 (xfont_list): Use xfont_list_pattern.
16656
166572008-02-01 Kenichi Handa <handa@m17n.org>
16658
16659 * font.h (Flist_fonts): EXFUN it.
16660
166612008-02-01 Jason Rumney <jasonr@gnu.org>
16662
16663 * w32term.c (w32_initialize): Add back smoothing_type and
16664 smoothing_enabled definitions.
16665
166662008-02-01 Kenichi Handa <handa@m17n.org>
16667
16668 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
16669 s->face->font on determining underline position.
16670
166712008-02-01 Kenichi Handa <handa@m17n.org>
16672
16673 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
16674 (font_has_char): Accept font-object too.
16675 (font_find_for_lface): Try at first with a size specified in face.
16676
166772008-02-01 Kenichi Handa <handa@m17n.org>
16678
16679 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
16680 font_open_by_name.
16681
166822008-02-01 Kenichi Handa <handa@m17n.org>
16683
16684 * font.h (QCspacing, QCdpi): Extern them.
16685 (enum font_spacing): New enum.
16686 (FONT_PIXEL_SIZE_QUANTUM): New macro.
16687
16688 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
16689 (QCspacing, QCdpi): New variables.
16690 (syms_of_font): Initialize them.
16691 (font_pixel_size): New function.
16692 (font_put_extra): New function.
16693 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
16694 in FONT_EXTRA.
16695 (font_parse_fcname): Handle enumerated values (e.g. bold).
16696 Fix handling font size. Add QCname property that contains only
16697 unknown properties.
16698 (font_score): Change argument. Change caller. Pay attention to
16699 FONT_PIXEL_SIZE_QUANTUM.
16700 (font_sort_entites, font_list_entities, font_find_for_lface)
16701 (font_open_for_lface, font_open_by_name): Fix handling of font size.
16702 (Ffont_spec): Add QCname property that contains only unknown properties.
16703
16704 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
16705 include weight in listing pattern, instead check weight of each
16706 listed font. Don't include scalable in pattern. Pay attention to
16707 FONT_PIXEL_SIZE_QUANTUM.
16708
167092008-02-01 Kenichi Handa <handa@m17n.org>
16710
16711 * font.c (font_parse_fcname): Fix parsing of point-size.
16712 (font_unparse_fcname): Produce symbolic names for style properties.
16713 (font_list_entities): Handle float size correctly.
16714 (font_open_by_name): Prefer `normal' property values if the name
16715 doesn't specify them.
16716
16717 * fontset.c (Finternal_char_font): Use font_get_name, not
16718 Ffont_xlfd_name.
16719
16720 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
16721 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
16722 pattern. Don't force scalable.
16723
16724 * xftfont.c (xftfont_open): For generating a name, start from
16725 96-byte buffer.
16726
167272008-02-01 Jan Djärv <jan.h.d@swipnet.se>
16728
16729 * frame.h (x_new_fontset2): Fix prototype.
16730
167312008-02-01 Kenichi Handa <handa@m17n.org>
16732
16733 * font.h (struct font_driver): Delete member parse_name.
16734 (font_match_p, font_get_spec, font_parse_fcname)
16735 (font_unparse_fcname): Extern them.
16736 (font_get_name): Adjust prototype.
16737
16738 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
16739 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
16740 (font_expand_wildcards): Fix handling ENCODING field. Avoid
16741 unnecessary checks for weight, slant, and swidth.
16742 (font_parse_fcname): New function.
16743 (font_unparse_fcname): New function.
16744 (font_parse_name): New function.
16745 (font_match_p): New function.
16746 (font_get_name): Change return value to Lisp string.
16747 (font_get_spec): New function.
16748 (Qunspecified, Qignore_defface): Don't extern them.
16749 (font_find_for_lface): Assume that LFACE is fully specified.
16750 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
16751 object, use it for FACE.
16752 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
16753 driver->parse_name.
16754 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
16755
16756 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
16757 prototype.
16758
16759 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
16760 argument F. Don't call Fnew_fontset. Instead, directly call
16761 make_fontset.
16762
16763 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
16764
16765 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
16766 of x_new_fontset2.
16767
16768 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
16769 (Qsans__serif): New variables.
16770 (ftfont_generic_family_list): New variable.
16771 (syms_of_ftfont): Initialize the above variables.
16772 (ftfont_pattern_entity): Delete argument NAME.
16773 (ftfont_list_generic_family): New function.
16774 (ftfont_parse_name): Delete this function.
16775 (ftfont_list): Try generic family only when FcFontList found no font.
16776 (ftfont_list_family): Fix args to FcObjectSetBuild.
16777
16778 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
16779 object in attrs[LFACE_FONT_INDEX].
16780 (set_lface_from_font_name): Cancel all changes for font-backend.
16781 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
16782 function.
16783 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
16784 font object in QCfont attribute.
16785 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
16786 (realize_default_face) [USE_FONT_BACKEND]: Call
16787 set_lface_from_font_and_fontset.
16788
16789 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
16790 "fixed", and signal error here if no suitable font was found.
16791
16792 * xfont.c (xfont_parse_name): Delete this function.
16793
16794 * xftfont.c (xftfont_open): Change coding style of error
16795 handling. Generate fontconfig's fontname pattern.
16796
16797 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
16798 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
16799
16800 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
16801 Both args FONTSET and FONT_OBJECT must be existing ones.
16802
168032008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16804
16805 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
16806
168072008-02-01 Kenichi Handa <handa@m17n.org>
16808
16809 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
16810
16811 * font.h (struct font): Fix typo.
16812
16813 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
16814 XLFD_XXX_INDEX.
16815 (enum xlfd_field_mask): New enum.
16816 (intern_font_field): Changed argument. Change caller. If digits
16817 are followed by non-digits, return a symbol.
16818 (font_expand_wildcards): New function.
16819 (font_parse_xlfd): Fix wildcard handling.
16820 (Ffont_spec): If :name is specified, reflect the info in the other
16821 properties.
16822
16823 * ftfont.c (ftfont_pattern_entity): Fix typo.
16824 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
16825 locale.
16826
168272008-02-01 Kenichi Handa <handa@m17n.org>
16828
16829 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
16830
16831 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
16832 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
16833 registry doesn't specify encoding part.
16834 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
16835 (font_open_by_name): At first try parsing the name.
16836 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
16837 as Lisp symbols.
16838
16839 * fontset.c (reorder_font_vector): Pay attention to the case that
16840 the 3rd element of font_def is nil.
16841 (fontset_font): For the default fontset, append one more fontset
16842 elements for a script-based font specification. Don't add script
16843 attribute on finding a font.
16844 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
16845 font name.
16846 (fontset_ascii_font): If a font can't be opened, return nil.
16847
16848 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
16849 (ftfont_pattern_entity): New function.
16850 (ftfont_get_cache): Assume that freetype_font_cache is already
16851 initialized.
16852 (ftfont_list): Handle the case that a file is specified in font
16853 name. Use ftfont_pattern_entity to generate entities.
16854 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
16855 (syms_of_ftfont): Initialize freetype_font_cache.
16856
16857 * xftfont.c (xftfont_open): Make the font name fontconfig's
16858 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
16859 (xftfont_close): Free font->font.name if not NULL.
16860
16861 * xfont.c (xfont_list): If script is specified for a font, return
16862 null_vector.
16863 (xfont_list_family): Declare argument type.
16864
16865 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
16866 name, set LFACE_FONT (lface) to nil.
16867
16868 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
16869 return Qnil.
16870
168712008-02-01 Kenichi Handa <handa@m17n.org>
16872
16873 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
16874 (standard_args): Add "-enable-font-backend".
16875
168762008-02-01 Kenichi Handa <handa@m17n.org>
16877
16878 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
16879 (struct xftdraw_list, xftdraw_list): Delete them.
16880 (register_xftdraw, check_xftdraw): Delete them.
16881 (xftfont_prepare_face): Don't call register_xftdraw.
16882 (xftfont_done_face): Don't call check_xftdraw.
16883 (xftfont_draw): Get background color only when with_background is
16884 nonzero.
16885
16886 * xfont.c (xfont_encode_char): Fix calculation of char2b.
16887
168882008-02-01 Kenichi Handa <handa@m17n.org>
16889
16890 These changes are for the new font handling codes.
16891
16892 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
16893 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
16894 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
16895 (FONTSRC, FONTOBJ): New variables.
16896 (obj): Add $(FONTOBJ).
16897 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
16898 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
16899 @LIBOTF_LIBS@.
16900 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
16901 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
16902
16903 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
16904
16905 * character.h (Vscript_representative_chars): Extern it.
16906
16907 * character.c (Vscript_representative_chars): New variable.
16908 (syms_of_character): Declare it as a Lisp variable.
16909
16910 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
16911 enable_font_backend is nonzero, accept the composition method
16912 COMPOSITION_WITH_GLYPH_STRING.
16913
16914 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
16915 enumeration COMPOSITION_WITH_GLYPH_STRING.
16916
16917 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
16918 members clip_x, clip_y, clip_width, and clip_height.
16919 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
16920
16921 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
16922 --enable-font-backend. Call syms_of_font.
16923
16924 * fns.c (assoc_no_quit): New function.
16925
16926 * fontset.h (FONT_INFO_FROM_FACE): New macro.
16927 (face_for_font, new_fontset_from_font)
16928 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
16929
16930 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
16931 (fontset_font, fontset_ascii, face_for_char)
16932 (make_fontset_for_ascii_face, Ffont_info)
16933 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
16934 is nonzero, use font-backend mechanism.
16935 (find_font_encoding): Make it non-static.
16936 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
16937 New functions.
16938
16939 * frame.h (struct frame): New members resx and resy.
16940 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
16941 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
16942
16943 * frame.c [USE_FONT_BACKEND]: Include "font.h".
16944 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
16945
16946 * lisp.h (assoc_no_quit): Extern it.
16947
16948 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
16949 Through out the file, use FONT_INFO_FROM_FACE instead of
16950 FONT_INFO_FROM_ID, use get_per_char_metric instead of
16951 rif->per_char_metric.
16952 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
16953 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
16954 (get_glyph_face_and_encoding, fill_composite_glyph_string)
16955 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
16956 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
16957 nonzero, use font-backend mechanism.
16958 (get_per_char_metric): New function.
16959
16960 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
16961 (set_lface_from_font_name)
16962 (set_font_frame_param, free_realized_face)
16963 (prepare_face_for_display, clear_face_gcs)
16964 (Finternal_set_font_selection_order, realize_x_face)
16965 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
16966 font-backend mechanism.
16967 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
16968 (load_face_font) [USE_FONT_BACKEND]: Abort.
16969 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
16970 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
16971
16972 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
16973 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
16974 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
16975 nonzero, register all available font drivers. Call
16976 x_default_font_parameter for deciding a font.
16977 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
16978
16979 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
16980 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
16981 (x_set_glyph_string_clipping_exactly)
16982 (x_compute_glyph_string_overhangs)
16983 (x_draw_glyph_string_foreground)
16984 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
16985 (x_free_frame_resources) [USE_FONT_BACKEND]: If
16986 enable_font_backend is nonzero, use font-backend mechanism.
16987 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
16988
169892008-02-01 Kenichi Handa <handa@m17n.org>
16990
16991 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
16992 system_eol_type.
16993 (syms_of_coding): Initialize system_eol_type.
16994
16995 * process.c (Fset_process_coding_system): Inherit system's eol
16996 format if necessary.
16997
169982008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16999
17000 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
17001
170022008-02-01 Kenichi Handa <handa@m17n.org>
17003
17004 * coding.c (decode_eol): Pay attention to buffer relocation in
17005 del_range_2.
17006 (decode_coding): Call decode_eol before restoring undo_list.
17007
170082008-02-01 Kenichi Handa <handa@m17n.org>
17009
17010 * charset.c (Fdefine_charset_internal): Fix setting of
17011 emacs_mule_bytes.
17012
170132008-02-01 Kenichi Handa <handa@m17n.org>
17014
17015 * keyboard.c (read_char): Check if C is a character or not before
17016 looking up Vkeyboard_translate_table.
17017
170182008-02-01 Kenichi Handa <handa@m17n.org>
17019
17020 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
17021 condition to terminate the loop.
17022
170232008-02-01 Kenichi Handa <handa@m17n.org>
17024
17025 * coding.c (produce_composition): Compare charbuf[i] instead of
17026 args[i] against 0.
17027 (Fterminal_coding_system): Use EQ to compare Lisp objects.
17028
170292008-02-01 Kenichi Handa <handa@m17n.org>
17030
17031 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
17032 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
17033 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
17034 detect_coding.
17035 (emacs_mule_char): Handle old style (Emacs 20) component character
17036 of a composition.
17037 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
17038 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
17039 composition rule.
17040 (decode_coding_emacs_mule): Handle invalid bytes correctly.
17041
170422008-02-01 Kenichi Handa <handa@m17n.org>
17043
17044 * coding.c (encode_coding_ccl): Allocate destination dynamically
17045 when necessary.
17046
170472008-02-01 Kenichi Handa <handa@m17n.org>
17048
17049 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
17050 the loop. When quitted, show a proper error message.
17051
170522008-02-01 Kenichi Handa <handa@m17n.org>
17053
17054 * xterm.c (x_set_glyph_string_clipping_exactly): Set
17055 src->clip_head and src->clip_tail temporarily instead of src->hl.
17056
17057 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
17058 character sequence.
17059 (Fccl_execute_on_string): Use ASET, not XSET.
17060
170612008-02-01 Kenichi Handa <handa@m17n.org>
17062
17063 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
17064
170652008-02-01 Kenichi Handa <handa@m17n.org>
17066
17067 * coding.c (decode_coding): Fix the condition of terminating the
17068 decoding loop.
17069
170702008-02-01 Kenichi Handa <handa@m17n.org>
17071
17072 * data.c (Faset): On setting a character bigger than 255 in a
17073 unibyte string, signal an error instead of make the string multibyte.
17074
170752008-02-01 Kenichi Handa <handa@m17n.org>
17076
17077 * charset.c (map_charset_chars): Fix for ascii-compatible charset
17078 made by a mapping table.
17079
170802008-02-01 Kenichi Handa <handa@m17n.org>
17081
17082 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
17083 not.
17084 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
17085 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
17086
17087 * xterm.c (x_draw_composite_glyph_string_foreground): Check
17088 s->face is NULL or not.
17089
170902008-02-01 Kenichi Handa <handa@m17n.org>
17091
17092 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
17093 (x_draw_glyph_string): Fix drawing of right_overhang and
17094 left_overhang around/on cursor.
17095
17096 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
17097
170982008-02-01 Kenichi Handa <handa@m17n.org>
17099
17100 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
17101
171022008-02-01 Kenichi Handa <handa@m17n.org>
17103
17104 * coding.c (Fdefine_coding_system_internal)
17105 (Fdefine_coding_system_alias): Avoid a duplicated element in
17106 Vcoding_system_alist.
17107
171082008-02-01 Kenichi Handa <handa@m17n.org>
17109
17110 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
17111
17112 * coding.c (Qcoding_system_define_form): New variable.
17113 (syms_of_coding): Intern and staticpro it.
17114 (Fcoding_system_p): Check Qcoding_system_define_form.
17115 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
17116
17117 * coding.h (CODING_SYSTEM_P): If ID is not available, call
17118 Fcoding_system_p.
17119 (CHECK_CODING_SYSTEM): If ID is not available, call
17120 Fcheck_coding_system.
17121 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
17122 Try also Fcheck_coding_system.
17123
171242008-02-01 Kenichi Handa <handa@m17n.org>
17125
17126 * coding.c (code_conversion_restore): GCPRO arg.
17127
171282008-02-01 Kenichi Handa <handa@m17n.org>
17129
17130 * character.c (lisp_string_width): Check multibyteness of STRING.
17131
171322008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17133
17134 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
17135 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
17136 (decode_mac_font_name): Use decode_coding_c_string instead of
17137 decode_coding.
17138 (x_load_font): Initialize fontp->fontset to -1. Set
17139 fontp->encoding_type.
17140
171412008-02-01 Kenichi Handa <handa@m17n.org>
17142
17143 * search.c (search_buffer): Give up BM search on case-fold-search
17144 if one of a target character has a case-equivalence of different
17145 byte length even if that target charcter is an ASCII.
17146 (simple_search): Fix calculation of byte length of matched text.
17147 (boyer_moore): Fix handling of case-equivalent multibyte characters.
17148
171492008-02-01 Kenichi Handa <handa@m17n.org>
17150
17151 * coding.c (decode_coding): Fix handling of invalid bytes.
17152
171532008-02-01 Kenichi Handa <handa@m17n.org>
17154
17155 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
17156 Unicode characters.
17157
171582008-02-01 Kenichi Handa <handa@m17n.org>
17159
17160 * coding.c (encode_coding_object): If a pre-write-conversion
17161 function makes a new buffer, kill it.
17162
171632008-02-01 Kenichi Handa <handa@m17n.org>
17164
17165 * coding.c (QCascii_compatible_p): New variable.
17166 (syms_of_coding): Initialize it.
17167 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
17168 calling string_char.
17169 (record_conversion_result): Add `default:' case.
17170 (coding_charset_list): Delete unused variable `coding_type'.
17171 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
17172 property in the plist of the coding system.
17173 (Fcoding_system_put): Check QCascii_compatible_p.
17174
171752008-02-01 Miles Bader <miles@gnu.org>
17176
17177 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
17178 removed calculation of frame `f', as it's now used.
17179
171802008-02-01 Kenichi Handa <handa@m17n.org>
17181
17182 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
17183 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
17184 (UNIDATA): New variable.
17185 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
17186 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
17187 $(RUN_TEMACS) unconditionally.
17188
171892008-02-01 Kenichi Handa <handa@m17n.org>
17190
17191 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
17192 (admindir): New variable.
17193 ($(lispsource)international/charprop.el): New target.
17194
171952008-02-01 Miles Bader <miles@gnu.org>
17196
17197 * character.c (chars-in-region): Remove obsolete function.
17198 (syms_of_character): Remove its initialization.
17199
172002008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
17201
17202 * w32select.c (validate_coding_system)
17203 (setup_windows_coding_system): New functions.
17204 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
17205 setup_windows_coding_system.
17206 (setup_config, Fw32_get_clipboard_data): Use
17207 validate_coding_system.
17208 (Fx_selection_exists): Move call to setup_config to a place
17209 where signals are allowed.
17210
17211 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
17212 (Fcheck_coding_system): Add declarations.
17213
172142008-02-01 Kenichi Handa <handa@m17n.org>
17215
17216 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
17217
172182008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17219
17220 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
17221 string as the second argument for x_new_fontset.
17222
172232008-02-01 Kenichi Handa <handa@m17n.org>
17224
17225 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
17226 (encode_coding_object): Use safe_call instead of call2.
17227
172282008-02-01 Kenichi Handa <handa@m17n.org>
17229
17230 * fontset.c (Fset_fontset_font): Check family element of a given vector.
17231
17232 * Makefile.in (lisp): Include charprop.el.
17233
172342008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17235
17236 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
17237 Not sure if it's unnecessary.
17238
172392008-02-01 Steven Tamm <steventamm@mac.com>
17240
17241 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
17242 some possibly unnecessary fontset checking code that crashed
17243 when creating a new frame.
17244
172452008-02-01 Kenichi Handa <handa@m17n.org>
17246
17247 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
17248 lookup_face.
17249
17250 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
17251
17252 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
17253
172542008-02-01 Kenichi Handa <handa@m17n.org>
17255
17256 * coding.c: Cancel the change done in HEAD on 2008-02-01.
17257 (coding_charset_list): New function.
17258
17259 * coding.h (coding_charset_list): Extern it.
17260
172612008-02-01 Kenichi Handa <handa@m17n.org>
17262
17263 * fontset.c (Fset_fontset_font): Call find_font_encoding with
17264 concatenation of family and registry.
17265
172662008-02-01 Kenichi Handa <handa@m17n.org>
17267
17268 * character.h (BYTE8_STRING): Fix typo.
17269
17270 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
17271 string to multibyte (sync to HEAD).
17272
17273 * casefiddle.c (casify_region): Handle changes in byte-length
17274 using replace_range_2 (sync to HEAD).
17275
172762008-02-01 Andreas Schwab <schwab@suse.de>
17277
17278 * chartab.c (map_char_table): GCPRO table and arg.
17279
172802008-02-01 Kenichi Handa <handa@m17n.org>
17281
17282 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
17283 already at limit.
17284
172852008-02-01 Kenichi Handa <handa@m17n.org>
17286
17287 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
17288 instead of fast_c_string_match_ignore_case.
17289 (find_font_encoding): Change argument to Lisp_Object. Use
17290 fast_string_match_ignore_case instead of
17291 fast_c_string_match_ignore_case. Change caller.
17292
172932008-02-01 Kenichi Handa <handa@m17n.org>
17294
17295 * xdisp.c (get_next_display_element): In unibyte case, decide to
17296 display in octal form by checking a character by
17297 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
17298
17299 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
17300
17301 * character.c (unibyte_has_multibyte_table): New variable.
17302
17303 * character.h (unibyte_has_multibyte_table): Extern it.
17304 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
17305
173062008-02-01 Kenichi Handa <handa@m17n.org>
17307
17308 * coding.c (encode_coding_iso_2022): Fix handling of charset
17309 annotation.
17310
173112008-02-01 Kenichi Handa <handa@m17n.org>
17312
17313 * coding.c (setup_coding_system): If coding_system is nil, use
17314 Qundecided.
17315 (Fterminal_coding_system): Return nil if terminal coding system is
17316 `undecided'.
17317 (syms_of_coding): Define coding-system `undecided' here. Setup
17318 terminal_coding as `undecided'.
17319
173202008-02-01 Kenichi Handa <handa@m17n.org>
17321
17322 * xdisp.c (message_dolog, set_message_1): Call
17323 unibyte_char_to_multibyte with arg type int.
17324
17325 * lread.c (read1): Fix reading of a char-table.
17326
17327 * print.c (print_object): Include sub char-table in circularities
17328 detection.
17329
173302008-02-01 Kenichi Handa <handa@m17n.org>
17331
17332 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
17333 Append the found sequences in car of ARGS instead of prepending.
17334
173352008-02-01 Kenichi Handa <handa@m17n.org>
17336
17337 * fileio.c (report_file_error): Make a unibyte string from
17338 strerror (errorno).
17339 (Fsubstitute_in_file_name): Fix the arg to
17340 unibyte_char_to_multibyte. It is evaluated twice.
17341
173422008-02-01 Kenichi Handa <handa@m17n.org>
17343
17344 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
17345
173462008-02-01 Kenichi Handa <handa@m17n.org>
17347
17348 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
17349 BOM is not found.
17350 (detect_coding, detect_coding_system): Optimization for ISO-2022
17351 when no 8-bit data is found.
17352
173532008-02-01 Jason Rumney <jasonr@gnu.org>
17354
17355 * w32fns.c (x_to_w32_font): Update to use new coding struct.
17356
173572008-02-01 Kenichi Handa <handa@m17n.org>
17358
17359 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
17360 CHARS.
17361
173622008-02-01 Steven Tamm <steventamm@mac.com>
17363
17364 * macterm.c (mac_encode_char): Add charset argument and update
17365 to use encoding_type.
17366 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
17367 switch to pure fontset.
17368 (decode_mac_font_name): Temporarily remove decoding.
17369 (x_font_name_to_mac_font_name): Temporarily remove encoding.
17370 (x_load_font): Temporarily remove encoding.
17371
173722008-02-01 Kenichi Handa <handa@m17n.org>
17373
17374 * xfaces.c (Fface_font): If frame is not on a window system,
17375 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
17376 refer to face->font.
17377 (split_font_name_into_vector, build_font_name_from_vector)
17378 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
17379 when HAVE_WINDOW_SYSTEM is defined.
17380
173812008-02-01 Kenichi Handa <handa@m17n.org>
17382
17383 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
17384 (x_produce_glyphs): Fix setting of members of cmp in case
17385 cmp->glyph_len is zero.
17386
17387 * fontset.c (Fset_fontset_font): Fix docstring.
17388 (Ffontset_info): Make it backward compatible. New arg ALL.
17389
173902008-02-01 Kim F. Storm <storm@cua.dk>
17391
17392 * process.c (read_process_output): Grow decoding_buf when needed;
17393 this could cause a crash in allocate_string and compact_small_strings.
17394
173952008-02-01 Kenichi Handa <handa@m17n.org>
17396
17397 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
17398
173992008-02-01 Kenichi Handa <handa@m17n.org>
17400
17401 * coding.c (setup_coding_system): Set coding->common_flags
17402 correctly for raw-text.
17403 (consume_chars): On encoding unibyte text by raw-text, don't check
17404 multibyte form.
17405 (encode_coding): On encoding by raw-text, never use translation tables.
17406
17407 * fileio.c (e_write): Short cut for the case of no encoding.
17408
174092008-02-01 Kenichi Handa <handa@m17n.org>
17410
17411 * coding.c (detect_coding, detect_coding_system): Delete unused
17412 variables.
17413
174142008-02-01 Kenichi Handa <handa@m17n.org>
17415
17416 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
17417 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
17418
174192008-02-01 Kenichi Handa <handa@m17n.org>
17420
17421 * coding.c (Ffind_coding_systems_region_internal): Include
17422 raw-text and no-conversion in the result.
17423
174242008-02-01 Kenichi Handa <handa@m17n.org>
17425
17426 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
17427 (load_font_get_repertory): Delete unnecessary check of ENCODING of
17428 FONT_DEF.
17429 (font_def_arg, add_arg, from_arg, to_arg): New args.
17430 (set_fontset_font): Change argument.
17431 (Fset_fontset_font): Fix for the case that TARGET is a script
17432 name and charset name.
17433 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
17434
174352008-02-01 Kenichi Handa <handa@m17n.org>
17436
17437 * fontset.c (fontset_font): Rename from fontset_face. Change return
17438 value.
17439 (face_suitable_for_char_p, face_for_char): Adjust for the change
17440 of fontset_font.
17441 (make_fontset_for_ascii_face): Fix setting of the fontset element
17442 for ASCII.
17443 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
17444 to get a font name.
17445 (Ffontset_info): Adjust for the change of fontset_font.
17446
17447 * coding.c (emacs_mule_char): Check invalid code more rigidly.
17448
17449 * character.h (LEADING_CODE_LATIN_1_MIN)
17450 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
17451
174522008-02-01 Kenichi Handa <handa@m17n.org>
17453
17454 * editfns.c (check_translation): New function.
17455 (Ftranslate_region_internal): Handle M:N mapping.
17456
174572008-02-01 Kenichi Handa <handa@m17n.org>
17458
17459 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
17460
174612008-02-01 Kenichi Handa <handa@m17n.org>
17462
17463 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
17464 goto invalid_code.
17465 (decode_coding_iso_2022): Fix handling of invalid designation.
17466
17467 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
17468 after calling code_conversion_save.
17469
174702008-02-01 Kenichi Handa <handa@m17n.org>
17471
17472 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
17473
17474 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
17475
17476 * fontset.c: Include "intervals.h".
17477 (fontset_face): Fix comparing of Lisp_Objects.
17478 (free_face_fontset, new_fontset_from_font_name): Fix
17479 Lisp_Object/int mixup.
17480
17481 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
17482
17483 * coding.c: Add many prototypes for static functions.
17484 (get_translation_table): Allow max_lookup to be NULL.
17485 (decode_coding, Ffind_coding_systems_region_internal)
17486 (Funencodable_char_position, Fcheck_coding_systems_region): Call
17487 get_translation_table with max_lookup NULL.
17488
174892008-02-01 Kenichi Handa <handa@m17n.org>
17490
17491 * coding.c (get_translation_table): Declare it as Lisp_Object.
17492 (LOOKUP_TRANSLATION_TABLE): New macro.
17493 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
17494 instead of CHAR_TABLE_REF.
17495
174962008-02-01 Kenichi Handa <handa@m17n.org>
17497
17498 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
17499 annotation data format.
17500 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
17501 Change arguments FROM and TO to single argument NCHARS. Change caller.
17502 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
17503 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17504 (decode_coding_ccl, decode_coding_charset): Pay attention to
17505 coding->charbuf_used.
17506 (get_translation): New function.
17507 (produce_chars): New arguments translation_table and last_block.
17508 Translate characters here. Return number of carryover chars.
17509 Change caller.
17510 (produce_composition): New argument pos. Change caller.
17511 Adjust for the change of annotation data format.
17512 (produce_charset, produce_annotation): Likewise.
17513 (decode_coding, encode_coding): Don't call translate_chars.
17514 (consume_chars): New arg translation_table. Change caller.
17515 (translate_chars): Delete.
17516 (syms_of_coding): Make translation-table's number of extra slots 2.
17517
175182008-02-01 Kenichi Handa <handa@m17n.org>
17519
17520 * search.c (simple_search): Fix setting this_pos_byte in backward
17521 search.
17522
17523 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
17524 byte sequence.
17525 (detect_coding_ccl): Fix setting of the variable valids.
17526
175272008-02-01 Kenichi Handa <handa@m17n.org>
17528
17529 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
17530
17531 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
17532
17533 * editfns.c (Ftranslate_region_internal): Rename from
17534 Ftranslate_region. Accept a char-table in TABLE.
17535 (syms_of_editfns): Defsubr Stranslate_region_internal.
17536
17537 * xfaces.c (set_lface_from_font_name): If a font is specified for
17538 a frame, generate a fontset from the font.
17539 (build_scalable_font_name): If the scalable font is requested for
17540 a specific size, don't change that size.
17541 (try_font_list): Try a scalable font also in the case that a
17542 pattern string is specified.
17543
175442008-02-01 Kenichi Handa <handa@m17n.org>
17545
17546 * xfaces.c (Fface_font): New optional arg CHARACTER.
17547
175482008-02-01 Kenichi Handa <handa@m17n.org>
17549
17550 * charset.h (CHARSET_OFFSET): New macro.
17551
175522008-02-01 Kenichi Handa <handa@m17n.org>
17553
17554 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
17555
17556 * fontset.c (fontset_face): Handle the case that repertory is a
17557 char-table.
17558 (find_font_encoding): Return nil for unknown encoding.
17559 (Fset_fontset_font): Ignore a font of unknown encoding.
17560
175612008-02-01 Kenichi Handa <handa@m17n.org>
17562
17563 * keymap.c (describe_vector): Handle default value of a char table.
17564
17565 * fontset.c (fontset_face): Handle fallback fonts correctly.
17566 (Ffontset_info): Return infomation about fallback fonts.
17567
175682008-02-01 Kenichi Handa <handa@m17n.org>
17569
17570 * fontset.c (FONTSET_DEFAULT): New macro.
17571 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
17572 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
17573 the case that it is nil.
17574 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
17575 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
17576
17577 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
17578 subset or superset.
17579
175802008-02-01 Kenichi Handa <handa@m17n.org>
17581
17582 * emacs.c (main): Call init_charset after syms_of_XXX.
17583
17584 * charset.c (Vcharset_map_directory): Delete.
17585 (Vcharset_map_path): New variable.
17586 (load_charset_map_from_file): Use Vcharset_map_path instead.
17587 (init_charset): Initialize Vcharset_map_path.
17588 (syms_of_charset): Delete declaration of "charset-map-directory",
17589 add declaration of "charset-map-path".
17590
175912008-02-01 Kenichi Handa <handa@m17n.org>
17592
17593 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
17594 ASCII only string.
17595
17596 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
17597
17598 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
17599 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
17600
176012008-02-01 Kenichi Handa <handa@m17n.org>
17602
17603 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
17604
17605 * coding.c (QCmnemonic, QCdefalut_char)
17606 (QCdecode_translation_table, QCencode_translation_table)
17607 (QCpost_read_conversion, QCpre_write_conversion): New variables.
17608 (get_translation_table): Return a list of translation tables if
17609 necessary.
17610 (decode_coding): Call get_translation_table with ENCODEP 0.
17611 (char_encodable_p): If translation_table is non-nil, always call
17612 translate_char.
17613 (Fdefine_coding_system_internal): Accept list of translation
17614 tables as :encode-translation-table and :decode-translation-table.
17615 (Fcoding_system_put): New function.
17616 (syms_of_coding): Declare new symbols. Defsubr
17617 Scoding_system_put.
17618 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
17619 typically JISX0212.
17620
17621 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
17622 when the charset is superset type.
17623
17624 * character.c (translate_char): Accept list of translation tables.
17625
176262008-02-01 Kenichi Handa <handa@m17n.org>
17627
17628 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
17629 (CODING_ATTR_TRANS_TBL): New macro.
17630
17631 * coding.c (get_translation_table): New function.
17632 (translate_chars): Fix the bug of skipping annotation data.
17633 (decode_coding, encode_coding): Utilize get_translation_table.
17634 (char_encodable_p, Funencodable_char_position): Translate char if
17635 necessary.
17636 (Ffind_coding_systems_region_internal)
17637 (Fcheck_coding_systems_region): Setup translation table for encode
17638 in a coding system attribute vector in advance.
17639 (Fdefine_coding_system_internal): Allow a symbol as translation
17640 table. For shift-jis type coding system, allow 4th charset.
17641
176422008-02-01 Kenichi Handa <handa@m17n.org>
17643
17644 * coding.c (decode_coding_sjis): Check the first byte rigidly.
17645
17646 * xdisp.c (get_next_display_element): Pass -1 as POS to
17647 FACE_FOR_CHAR if displaying a C-string.
17648
176492008-02-01 Kenichi Handa <handa@m17n.org>
17650
17651 * composite.c (get_composition_id): Handle xoff and yoff in a
17652 composition rule.
17653
17654 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
17655 (struct composition): New member lbearing and rbearing.
17656
17657 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
17658 (x_get_glyph_overhangs): Handle a composition glyph.
17659 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
17660
17661 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
17662 composition glyph.
17663
176642008-02-01 Kenichi Handa <handa@m17n.org>
17665
17666 * print.c: Include charset.h.
17667 (Vprint_charset_text_property): New variable.
17668 (Qdefault): Extern it.
17669 (PRINT_STRING_NON_CHARSET_FOUND)
17670 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
17671 (print_check_string_result): New variable.
17672 (print_check_string_charset_prop): New function.
17673 (print_prune_charset_plist): New variable.
17674 (print_prune_string_charset): New function.
17675 (print_object): Call print_prune_string_charset if
17676 Vprint_charset_text_property is not t.
17677 (print_interval): Print nothing if interval->plist is nil.
17678 (syms_of_print): Declare Vprint_charset_text_property as a lisp
17679 variable. Init and staticpro print_prune_charset_plist.
17680
176812008-02-01 Kenichi Handa <handa@m17n.org>
17682
17683 * fontset.c (new_fontset_from_font_name): Use the specified font
17684 for all characters in the new fontset.
17685
17686 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
17687 OBJECT args.
17688
17689 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
17690 OBJECT args for composition too.
17691
17692 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
17693 OBJECT args.
17694
176952008-02-01 Kenichi Handa <handa@m17n.org>
17696
17697 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
17698
17699 * fontset.c (reorder_font_vector): Adjust for the change of
17700 FONT_DEF format.
17701 (fontset_face): New arg id. Change caller.
17702 (face_for_char): New args pos and object.
17703 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
17704 (fs_query_fontset): Check NAME by Fassoc too.
17705 (Fset_fontset_font): Allow non-XLFD font name.
17706 (Ffontset_info): Adjust for the change of FONT_DEF format.
17707
17708 * fontset.h (face_for_char): Adjust prototype.
17709
17710 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
17711 (append_space, extend_face_to_end_of_line)
17712 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
17713 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
17714
17715 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
17716 POS and OBJECT args.
17717
17718 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
17719 POS and OBJECT args.
17720
177212008-02-01 Jason Rumney <jasonr@gnu.org>
17722
17723 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
17724 of GlobalAlloc'ed memory.
17725
177262008-02-01 Kenichi Handa <handa@m17n.org>
17727
17728 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
17729
17730 * charset.h (charset_table_used): Delete extern.
17731
17732 * charset.c (charset_table_used): Make it static.
17733 (map_charset_chars): Fix args to c_function with.
17734
17735 * chartab.c (map_sub_char_table_for_charset): Fix args to
17736 c_function with.
17737
17738 * coding.h (enum coding_result_code): Delete
17739 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
17740
17741 * coding.c (Qinsufficient_source, Qinconsistent_eol)
17742 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
17743 (Vlast_code_conversion_error): New variables.
17744 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
17745 (ONE_MORE_BYTE): Record error if any instead of signaling an
17746 error. If non-ASCII multibyte char is found, return the negative
17747 value of the code. All callers changed to check it.
17748 (ONE_MORE_BYTE_NO_CHECK): Likewise.
17749 (record_conversion_result): New function. Change all codes setting
17750 coding->result to call this function.
17751 (detect_coding_utf_8, decode_coding_utf_8)
17752 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
17753 Don't use the local variable incomplete.
17754 (emacs_mule_char): Change the second arg to `const'.
17755 (decode_coding): Fix of flushing out unprocessed data.
17756 (make_conversion_work_buffer): Fix making of a work buffer.
17757 (decode_coding_object): Return coding->dst_object.
17758
17759 * fontset.c (set_fontset_font): Fix args.
17760
17761 * lisp.h (CHARACTERBITS): Define as 22.
17762
17763 * process.c (send_process): Be sure to set coding->src_multibyte.
17764
17765 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
17766
177672008-02-01 Kenichi Handa <handa@m17n.org>
17768
17769 * xdisp.c (handle_auto_composed_prop): Give limit to
17770 Fnext_single_char_property_change.
17771
177722008-02-01 Kenichi Handa <handa@m17n.org>
17773
17774 * composite.c (syms_of_composite): Don't make the composition hash
17775 table weak.
17776
17777 * fontset.c (Fset_fontset_font): Fix docstring.
17778
17779 * lisp.h (detect_coding_system): Adjust prototype.
17780
17781 * fileio.c (kill_workbuf_unwind): Delete this function.
17782 (Finsert_file_contents): Adjust the call of detect_coding_system.
17783 Get conversion_buffer by code_conversion_save. Use the macro
17784 CODING_MAY_REQUIRE_DECODING. After decoding, update
17785 coding_system.
17786
17787 * coding.h (make_conversion_work_buffer): Delete extern.
17788 (code_conversion_save): Extern it.
17789
17790 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
17791 (CODING_GET_INFO): Delete argument eol_type. Change callers.
17792 (decode_coding_utf_8): Don't do eol converion.
17793 (detect_coding_utf_16): Check coding->src_chars, not
17794 coding->src_bytes. Add heuristics for those that have no signature.
17795 (decode_coding_emacs_mule, decode_coding_iso_2022)
17796 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
17797 Don't do eol converion.
17798 (adjust_coding_eol_type): Return a new coding system.
17799 (detect_coding): Don't detect eol. Fix for utf-16 detection.
17800 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
17801 each change.
17802 (decode_coding): Pay attention to undo_list. Do eol conversion for
17803 all types of coding-systems (if necessary).
17804 (Vcode_conversion_work_buf_list): Delete it.
17805 (Vcode_conversion_reused_workbuf): Rename from
17806 Vcode_conversion_reused_work_buf.
17807 (Vcode_conversion_workbuf_name): New variable.
17808 (reused_workbuf_in_use): New variable.
17809 (make_conversion_work_buffer): Delete the arg DEPTH.
17810 (code_conversion_restore): Change argument to cons.
17811 (code_conversion_save): Delete the argument BUFFER. Change callers.
17812 (detect_coding_system): New argument src_chars. Change callers.
17813 Fix for utf-16 detection.
17814 (init_coding_once): Don't use ISO_carriage_return.
17815 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
17816 reused_workbuf_in_use.
17817
178182008-02-01 Kenichi Handa <handa@m17n.org>
17819
17820 * keymap.c (store_in_keymap): Pay attention to the case that idx
17821 is a cons specifying a character range.
17822
178232008-02-01 Kenichi Handa <handa@m17n.org>
17824
17825 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
17826 HANDLED_RECOMPUTE_PROPS.
17827
17828 * coding.c (Fdefine_coding_system_internal): Fix checking of
17829 ascii compatibility.
17830
178312008-02-01 Kenichi Handa <handa@m17n.org>
17832
17833 * charset.c (find_charsets_in_text): Delete unused locale variable.
17834 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
17835
17836 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
17837 Resync charset_list to Vemacs_mule_charset_list.
17838
17839 * keymap.c (store_in_keymap): Pay attention to the case that idx
17840 is a cons specifying a character range.
17841
178422008-02-01 Kenichi Handa <handa@m17n.org>
17843
17844 * composite.c (update_compositions): Bind inhibit-read-only, etc
17845 to t before calling remove-list-of-text-properties.
17846
17847 * print.c (print_object): Always print ASCII chars as is.
17848
178492008-02-01 Kenichi Handa <handa@m17n.org>
17850
17851 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
17852
17853 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
17854 is a char table.
17855
178562008-02-01 Kenichi Handa <handa@m17n.org>
17857
17858 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
17859
178602008-02-01 Kenichi Handa <handa@m17n.org>
17861
17862 * xfaces.c (set_lface_from_font_name): Fix for the case that
17863 FONTNAME is not fontset name.
17864
178652008-02-01 Kenichi Handa <handa@m17n.org>
17866
17867 * fns.c (base64_encode_1): Fix previous change.
17868
178692008-02-01 Kenichi Handa <handa@m17n.org>
17870
17871 * fontset.c (set_fontset_font): New function.
17872 (Fset_fontset_font): If a font is specified for a charset, use
17873 map_charset_chars to store the font spec in a fontset.
17874
178752008-02-01 Kenichi Handa <handa@m17n.org>
17876
17877 * fontset.c (fontset_face): Create a fallback fontset on demand.
17878 (make_fontset): Don't create a fallback fontset here.
17879 (free_face_fontset): Free a fallback fontset (if any) too.
17880 (n_auto_fontsets): Delete this variable.
17881 (auto_fontset_alist): New variable.
17882 (new_fontset_from_font_name): Check auto_fontset_alist.
17883 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
17884 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
17885 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
17886 Defsubr Sfontset_list_all.
17887
178882008-02-01 Kenichi Handa <handa@m17n.org>
17889
17890 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
17891
178922008-02-01 Kenichi Handa <handa@m17n.org>
17893
17894 * fontset.c (Fnew_fontset): Check NAME more rigidly.
17895
178962008-02-01 Kenichi Handa <handa@m17n.org>
17897
17898 * editfns.c (Fgoto_char): Fix docstring.
17899
179002008-02-01 Kenichi Handa <handa@m17n.org>
17901
17902 * insdel.c (insert_from_gap): Adjust intervals correctly.
17903
179042008-02-01 Jason Rumney <jasonr@gnu.org>
17905
17906 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
17907 (pfnGetFontUnicodeRanges): New dynamically loaded function.
17908 (w32_initialize): Try to load it.
17909 (x_get_font_repertory): Use it if available.
17910 (w32_encode_char): Add shortcut for unicode output.
17911
17912 * w32fns.c (w32_load_system_font): Default charset to -1.
17913 (x_to_w32_charset): Match all fonts for unicode.
17914 (w32_to_x_charset): New parameter matching. Don't return partial
17915 or wildcard charsets.
17916 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
17917 (w32_codepage_for_font): Return CP_UNICODE for unicode.
17918 (w32_to_x_font): Match charset to real charset.
17919 (enum_font_cb2): Always list unicode versions.
17920
17921 * makefile.w32-in (temacs): Increase EMHEAP.
17922
179232008-02-01 Jason Rumney <jasonr@gnu.org>
17924
17925 * w32term.c (w32_encode_char): New charset parameter.
17926 font_info.encoding becomes encoding_type.
17927 (x_get_font_repertory): New function. Warning: stub only!
17928 (x_new_font): Return quickly if font already set.
17929 (x_new_fontset): fontsetname parameter is Lisp_Object.
17930 Use new fs_query_fontset. Try new_fontset_from_font_name.
17931 Use fontset_name for return value.
17932
17933 * w32term.h: Declare x_get_font_repertory.
17934
17935 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
17936 place of find_charset_in_text. Use encode_coding_object in place
17937 of encode_coding.
17938 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
17939 decode_coding.
17940
17941 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
17942 of x_new_fontset.
17943 (w32_load_system_font): Initialize charset as unicode.
17944 font_info.encoding becomes encoding_type.
17945 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
17946 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
17947 (syms_of_w32fns): Set get_font_repertory_func.
17948
17949 * w32console.c: Include character.h. Use terminal_encode_buffer
17950 from term.c.
17951 (write_glyphs): Use new version of encode_terminal_code. Use
17952 encode_coding_object in place of encode_coding.
17953
17954 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
17955 encoding becomes encoding_type.
17956
17957 * term.c (terminal_encode_buffer): Make externally visible.
17958
17959 * makefile.w32-in: Add character.h dependancies.
17960 (character.o, chartab.o): New targets.
17961
179622008-02-01 Kenichi Handa <handa@m17n.org>
17963
17964 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
17965 CODING_ID_EOL_TYPE.
17966
179672008-02-01 Andreas Schwab <schwab@suse.de>
17968
17969 * coding.c (produce_chars): Revert last change.
17970
179712008-02-01 Kenichi Handa <handa@m17n.org>
17972
17973 * charset.h (charset_unicode): Extern it.
17974
17975 * charset.c (string_xstring_p): Check by (C >= 0x100).
17976 (find_charsets_in_text): Change format of the arc CHARSETS. New
17977 arg MULTIBYTE.
17978 (Ffind_charset_region, Ffind_charset_string): Adjust for the
17979 change of find_charsets_in_text.
17980 (Fsplit_char): Fix doc. Never return unknown.
17981
17982 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
17983
17984 * coding.c (Fdefine_coding_system_alias): Update
17985 Vcoding_system_list.
17986
17987 * fontset.c (load_font_get_repertory): Pay attention to the case
17988 that ENCODING of a font is specified by a char-table.
17989
17990 * xterm.c (x_get_font_repertory): Handle the case that the
17991 encoding of font is other than Unicode.
17992
179932008-02-01 Kenichi Handa <handa@m17n.org>
17994
17995 * term.c (encode_terminal_code): Don't handle glyph-table. Check
17996 if a character is encodable by the terminal coding system. If
17997 not, produces proper number of `?'s. Update
17998 terminal_encode_buffer and terminal_encode_buf_size if necessary.
17999 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
18000
180012008-02-01 Kenichi Handa <handa@m17n.org>
18002
18003 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
18004 variables.
18005 (encode_terminal_code): Change argument. Encode multiple
18006 characters at once. Store the result of encoding in
18007 terminal_encode_buffer.
18008 (write_glyphs, insert_glyphs): Adjust for the change of
18009 encode_terminal_code.
18010 (term_init): Initialize terminal_encode_buffer and
18011 terminal_encode_buf_size.
18012
18013 * coding.c (consume_chars): If coding->src_object is nil, don't
18014 check annotation.
18015
180162008-02-01 Kenichi Handa <handa@m17n.org>
18017
18018 * character.c (char_string): Use ASCII_CHAR_P instead of
18019 SINGLE_BYTE_CHAR_P.
18020
180212008-02-01 Kenichi Handa <handa@m17n.org>
18022
18023 * xdisp.c (handle_auto_composed_prop): Check if the last
18024 characters of auto-composed region is newly composed with the
18025 following characters.
18026 (handle_composition_prop): Fix checking of point being inside
18027 composition.
18028
180292008-02-01 Kenichi Handa <handa@m17n.org>
18030
18031 * fns.c (concat): Don't change multibyteness of the result by
18032 concatenating an 8-bit character.
18033
18034 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
18035 multibyteness of the result when newelt is an 8-bit character.
18036
180372008-02-01 Dave Love <fx@gnu.org>
18038
18039 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
18040 EMACS_INT.
18041
18042 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
18043
18044 * xfaces.c (face_numeric_value): Declare dim size_t.
18045 (Finternal_lisp_face_equal_p): Remove unused f.
18046
18047 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
18048 (MATRIX_ROW): Remove unused vars.
18049 (draw_glyphs, x_insert_glyphs, fast_find_position)
18050 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
18051 byte/char counts.
18052
18053 * regex.c (regex_compile): Remove unused var.
18054
18055 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
18056
18057 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
18058 (Faccessible_keymaps, where_is_internal): Remove unused vars.
18059
18060 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
18061
18062 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
18063
18064 * fileio.c (Fwrite_region): Remove unused var.
18065
18066 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
18067 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
18068
18069 * composite.c (Fremove_list_of_text_properties): Declare.
18070
18071 * coding.c (inhibit_pre_post_conversion): Remove (unused).
18072 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
18073 (coding_inherit_eol_type): Remove unused attrs.
18074 (detect_coding): Cast arg of detect_eol.
18075
18076 * charset.c (syms_of_charset): Remove unused var p.
18077 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
18078 byte/char counts.
18079
18080 * casetab.c (set_case_table): Remove unused var.
18081
18082 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
18083 unused vars.
18084
180852008-02-01 Dave Love <fx@gnu.org>
18086
18087 * xterm.c (x_bitmap_mask): Declare.
18088
180892008-02-01 Dave Love <fx@gnu.org>
18090
18091 * xterm.c (x_term_init): Fix type error.
18092
18093 * lisp.h: Add Funibyte_char_to_multibyte.
18094
18095 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
18096 (Fset_coding_system_priority): Doc fix.
18097
18098 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
18099
18100 * indent.c (check_composition): Make start and end EMACS_INT.
18101
18102 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
18103
18104 * xdisp.c (handle_composition_prop, check_point_in_composition):
18105 Make buffer positions EMACS_INT.
18106
18107 * composite.c (find_composition, run_composition_function)
18108 (update_compositions, Ffind_composition_internal): Make buffer
18109 positions EMACS_INT.
18110
18111 * composite.h (find_composition, update_compositions): Make
18112 position args EMACS_INT.
18113
18114 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
18115
18116 * intervals.c (get_property_and_range):
18117 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
18118
18119 * unexalpha.c: Don't include varargs.h.
18120
181212008-02-01 Dave Love <fx@gnu.org>
18122
18123 * coding.h (ENCODE_UTF_8): New.
18124
18125 * Makefile.in (gtkutil.o): Depend on coding.h.
18126
18127 * coding.c (Fset_coding_system_priority): Doc fix.
18128
181292008-02-01 Kenichi Handa <handa@m17n.org>
18130
18131 * fileio.c (Finsert_file_contents): Call setup_coding_system in
18132 the case of auto saving.
18133
181342008-02-01 Andreas Schwab <schwab@suse.de>
18135
18136 * chartab.c (map_char_table, map_char_table_for_charset): Protect
18137 `range' from GC.
18138
181392008-02-01 Kenichi Handa <handa@m17n.org>
18140
18141 * coding.c (decode_coding_sjis): Check bytes more rigidly.
18142
181432008-02-01 Kenichi Handa <handa@m17n.org>
18144
18145 * fileio.c (choose_write_coding_system): Return a decided coding system.
18146 (Fwrite_region): Set Vlast_coding_system_used to the return value
18147 of choose_write_coding_system.
18148
181492008-02-01 Kenichi Handa <handa@m17n.org>
18150
18151 * charset.c (Fset_charset_priority): Pay attention to duplicated
18152 arguments.
18153
18154 * coding.c (QCcategory): New variable.
18155 (syms_of_coding): Defsym it. Set all elements of
18156 Vcoding_category_table and their symbol values.
18157 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
18158 coding-category-XXX, and coding-category-list.
18159 (Fdefine_coding_system_internal): Add category in the plist.
18160
181612008-02-01 Kenichi Handa <handa@m17n.org>
18162
18163 * callproc.c (Fcall_process): Handle carryover correctly.
18164
18165 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
18166 (raw_text_coding_system): Check NILP (coding_system).
18167 (coding_inherit_eol_type): Check NILP (coding_system) and
18168 NILP (parent).
18169 (consume_chars): Fix for the case of raw-text.
18170
18171 * process.c (read_process_output): Handle carryover correctly.
18172
181732008-02-01 Dave Love <fx@gnu.org>
18174
18175 * regex.c (re_search_2): Fix last change.
18176
181772008-02-01 Kenichi Handa <handa@m17n.org>
18178
18179 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
18180 target_multibyte. Even in a unibyte case, return a converted
18181 multibyte char.
18182 (GET_CHAR_AFTER): New macro.
18183 (PATFETCH): Translate via multibyte char.
18184 (HANDLE_UNIBYTE_RANGE): Delete this macro.
18185 (SETUP_MULTIBYTE_RANGE): New macro.
18186 (regex_compile): Setup compiled code so that its multibyteness
18187 matches that of a target. Fix the handling of "[X-YZ]" using
18188 SETUP_MULTIBYTE_RANGE.
18189 (analyse_first) <charset>: For filling fastmap for all multibyte
18190 characters, don't check by BASE_LEADING_CODE_P.
18191 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
18192 the same as RE_MULTIBYTE_P (bufp) now.
18193 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
18194 (TARGET_CHAR_AND_LENGTH): Delete this macro.
18195 (TRANSLATE_VIA_MULTIBYTE): New macro.
18196 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
18197 It is the same as RE_MULTIBYTE_P (bufp) now.
18198 <exactn>: Translate via multibyte.
18199 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
18200 translate it.
18201 <charset, charset_not>: Fetch a character by
18202 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
18203 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
18204 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
18205 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
18206 by GET_CHAR_AFTER.
18207 (bcmp_translate): Likewise.
18208
18209 * search.c (compile_pattern): Check the member target_multibyte,
18210 not the member multibyte of buf.
18211
18212 * lread.c (read1): While reading a string, set force_singlebyte
18213 and force_multibyte correctly.
18214
18215 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
18216 up of unibyte_to_multibyte_table.
18217
182182008-02-01 Kenichi Handa <handa@m17n.org>
18219
18220 * coding.c (setup_coding_system): If coding has
18221 post-read-conversion or pre-write-conversion, set
18222 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
18223 respectively.
18224 (decode_coding_gap): Run post-read-conversion if any.
18225
18226 * fileio.c (Finsert_file_contents): Even if we read into a
18227 unibyte buffer, check if we must decode the result or not.
18228
182292008-02-01 Kenichi Handa <handa@m17n.org>
18230
18231 * coding.c (make_conversion_work_buffer): Change the work buffer
18232 name to the same one as that of Emacs 21.
18233
182342008-02-01 Kenichi Handa <handa@m17n.org>
18235
18236 * coding.h (make_conversion_work_buffer): Adjust prototype.
18237 (code_conversion_restore): Don't extern it.
18238
18239 * coding.c (detected_mask): Delete unused variable.
18240 (decode_coding_iso_2022): Pay attention to the byte sequence of
18241 CTEXT extended segment, and retain those bytes as is.
18242 (decode_coding_ccl): Delete unused variable `valids'.
18243 (setup_coding_system): Delete unused variable `category'.
18244 (consume_chars): Delete unused variable `category'. Make it work
18245 for non-multibyte case.
18246 (make_conversion_work_buffer): Change argument.
18247 (saved_coding): Delete unused variable.
18248 (code_conversion_restore): Don't check saved_coding->destination.
18249 (code_conversion_save): New function.
18250 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
18251 instead of record_unwind_protect.
18252 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
18253 (detect_coding_system): Delete unused variable `mask'.
18254 (Fdefine_coding_system_internal): Delete unused variable id.
18255
18256 * fileio.c (kill_workbuf_unwind): New function.
18257 (Finsert_file_contents): On replacing, call
18258 make_conversion_work_buffer with correct args, and call
18259 record_unwind_protect with the first arg kill_workbuf_unwind.
18260
18261 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
18262
182632008-02-01 Kenichi Handa <handa@m17n.org>
18264
18265 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
18266 (fontset_add): Fix for the case that TO is less than TO1.
18267 (Ffontset_info): Don't use fallback fontset on checking the
18268 default fontset.
18269 (dump_fontset): New function for debugging.
18270
18271 * coding.c (Fdefine_coding_system_internal): Fix for the case that
18272 coding_type is Qcharset.
18273
182742008-02-01 Kenichi Handa <handa@m17n.org>
18275
18276 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
18277 (map_char_table): Don't inherit the value from the parent on
18278 initializing VAL. Adjust for the above change.
18279
182802008-02-01 Kenichi Handa <handa@m17n.org>
18281
18282 * coding.c (Qsignature, Qendian): Delete these variables.
18283 (syms_of_coding): Don't initialize them.
18284 (CATEGORY_MASK_UTF_16_AUTO): New macro.
18285 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
18286 detect_info->found.
18287 (decode_coding_utf_16): Don't detect BOM here.
18288 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
18289 is NOT utf_16_without_bom.
18290 (setup_coding_system): For a coding system of type utf-16, check
18291 if the attribute :endian is Qbig or not (not nil or not), and set
18292 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
18293 (detect_coding): If coding type is utf-16 and BOM detection is
18294 required, detect it.
18295 (Fdefine_coding_system_internal): For a coding system of type
18296 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
18297
182982008-02-01 Kenichi Handa <handa@m17n.org>
18299
18300 * coding.c (coding_set_source): Fix for the case that the current
18301 buffer is different from coding->src_object.
18302 (decode_coding_object): Don't use the conversion work buffer if
18303 DST_OBJECT is a buffer.
18304
183052008-02-01 Dave Love <fx@gnu.org>
18306
18307 * lread.c (read_emacs_mule_char) [len==2]: Index
18308 emacs_mule_charset correctly.
18309
183102008-02-01 Dave Love <fx@gnu.org>
18311
18312 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
18313 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
18314 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
18315 treated specially.)
18316 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
18317 (detected_mask): Remove Big5 bits.
18318
183192008-02-01 Kenichi Handa <handa@m17n.org>
18320
18321 The following changes are to make the font rescaling facility
18322 compatible with Emacs 21.
18323
18324 * xfaces.c (Vface_font_rescale_alist): Rename from
18325 Vface_resizing_fonts.
18326 (struct font_name): Rename member resizing_ratio to rescale_ratio.
18327 (font_rescale_ratio): Rename from font_resizing_ratio.
18328 (split_font_name): Set font->rescale_ratio.
18329 (better_font_p): Pay attention to font->rescale_ratio.
18330 (build_scalable_font_name): Likewise. Change RESX, and RESY
18331 fields.
18332 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
18333
183342008-02-01 Kenichi Handa <handa@m17n.org>
18335
18336 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
18337 (Qutf_16_le): Remove these variables.
18338 (syms_of_coding): Don't DEFSYM them.
18339 (decode_coding_utf_16): Fix handling of BOM.
18340 (encode_coding_utf_16): Fix handling of BOM.
18341
183422008-02-01 Kenichi Handa <handa@m17n.org>
18343
18344 * fileio.c (Finsert_file_contents): On replacing, before decoding
18345 the file into the work buffer, set point of the work buffer to the end.
18346
183472008-02-01 Dave Love <fx@gnu.org>
18348
18349 * coding.c (Fcheck_coding_systems_region): Fix type errors.
18350
183512008-02-01 Dave Love <fx@gnu.org>
18352
18353 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
18354 and fix C types.
18355
183562008-02-01 Kenichi Handa <handa@m17n.org>
18357
18358 * xdisp.c (SKIP_GLYPHS): New macro.
18359 (set_cursor_from_row): Pay attention to string display properties.
18360
18361 * category.c (copy_category_entry): Fix for the case that RANGE
18362 is an integer.
18363
18364 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
18365
18366 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
18367
183682008-02-01 Kenichi Handa <handa@m17n.org>
18369
18370 * charset.c (Fcharset_id_internal): New function.
18371 (syms_of_charset): Defsubr it.
18372
18373 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
18374 with the last arg charset_list acquired from coding.
18375 (Fdefine_coding_system_internal): For ccl-based coding system, fix
18376 the attribute coding_attr_ccl_valids.
18377
18378 * coding.h (enum define_coding_ccl_arg_index): Set the first
18379 member coding_arg_ccl_decoder to coding_arg_max.
18380
18381 * ccl.h (ccl_driver): Adjust prototype.
18382
18383 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
18384 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 18385 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
18386 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
18387 last arg Qnil.
18388
183892008-02-01 Kenichi Handa <handa@m17n.org>
18390
18391 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
18392 call encode_char.
18393
18394 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
18395
183962008-02-01 Dave Love <fx@gnu.org>
18397
18398 * composite.c (syms_of_composite): Make composition_hash_table weak.
18399
184002008-02-01 Kenichi Handa <handa@m17n.org>
18401
18402 * dispextern.h (check_face_attributes, generate_ascii_font_name)
18403 (font_name_registry): Don't extern them.
18404 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
18405
18406 * fontset.h (Qfontset): Don't extern it.
18407 (new_fontset_from_font_name): Extern it.
18408
18409 * fontset.c: Give 8 extra slots to fontset objects.
18410 (Qfontset_info): New variable.
18411 (syms_of_fontset): Defsym it.
18412 (FONTSET_FALLBACK): New macro.
18413 (fontset_face): Try also the default fontset.
18414 (make_fontset): Realize a fallback fontset from the default fontset.
18415 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
18416 using split_font_name_into_vector and build_font_name_from_vector.
18417 (Fset_fontset_font): Access the elements of font_spec by enum
18418 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
18419 name by using split_font_name_into_vector.
18420 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
18421 generate a proper font name from the fontset name. Update
18422 Vfontset_alias_alist.
18423 (n_auto_fontsets): New variable.
18424 (new_fontset_from_font_name): New function.
18425 (Ffont_info): Store the information about fonts generated from the
18426 default fontset in the first extra slot of the returned char-table.
18427
18428 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
18429 (font_name_registry): Delete function.
18430 (split_font_name_into_vector): New function.
18431 (build_font_name_from_vector): New function.
18432 (font_list): The argument REGISTRY is now a list of registry names.
18433 (choose_face_font): If we are choosing an ASCII font, and ATTRS
18434 specifies an explicit font name, return the name as is. Make a
18435 list of registy names.
18436
18437 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
18438 of x_new_fontset.
18439 (Fx_create_frame): Don't call x_new_fontset here. Just use
18440 x_list_fonts to check the existence of fonts.
18441
18442 * xterm.h (x_new_fontset): Adjust prototype.
18443
18444 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
18445 string. Use new_fontset_from_font_name to create a fontset from a
18446 font name.
18447
184482008-02-01 Kenichi Handa <handa@m17n.org>
18449
18450 * syntax.c (Vfind_word_boundary_function_table): New name for
18451 Vnext_word_boundary_function_table.
18452 (find-word-boundary-function-table): New name for
18453 next-word-boundary-function-table.
18454
184552008-02-01 Dave Love <fx@gnu.org>
18456
18457 * Makefile.in: Fix some dependencies.
18458
18459 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
18460 set it to nil before returning.
18461
18462 * composite.c (update_compositions): Fix type error.
18463
18464 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
18465
184662008-02-01 Kenichi Handa <handa@m17n.org>
18467
18468 * xterm.c (x_new_font): Optimize for the case that the font is
18469 already set for the frame.
18470
184712008-02-01 Kenichi Handa <handa@m17n.org>
18472
18473 * chartab.c (char_table_ascii): Check if the char table contents
18474 is sub-char-table or not.
18475 (char_table_set, char_table_set_range): Fix argument to
18476 char_table_ascii.
18477
18478 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
18479 (detect_coding_utf_8, detect_coding_utf_16)
18480 (detect_coding_emacs_mule, detect_coding_iso_2022)
18481 (detect_coding_sjis, detect_coding_big5)
18482 (detect_coding_ccl, detect_coding_charset): Change argument MASK
18483 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
18484 sequence is valid in this coding system. Change callers.
18485 (MAX_ANNOTATION_LENGTH): New macro.
18486 (ADD_ANNOTATION_DATA): New macro.
18487 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
18488 ADD_ANNOTATION_DATA. Change the format of annotation data.
18489 (ADD_CHARSET_DATA): New macro.
18490 (emacs_mule_char): New argument ID. Change callers.
18491 (decode_coding_emacs_mule, decode_coding_iso_2022)
18492 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
18493 Produce charset annotation data in coding->charbuf.
18494 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
18495 to charset annotation data in coding->charbuf.
18496 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
18497 coding->common_flags if the coding system is iso-2022 based and
18498 uses designation.
18499 (produce_composition): Adjust for the new annotation data format.
18500 (produce_charset): New function.
18501 (produce_annotation): Handle charset annotation.
18502 (handle_composition_annotation, handle_charset_annotation): New
18503 functions.
18504 (consume_chars): Handle charset annotation. Utilize the above two
18505 functions.
18506 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
18507 buffer, get the deleted text as a string and set
18508 coding->src_object to that string.
18509 (detect_coding, detect_coding_system): Use the new struct
18510 coding_detection_info.
18511
18512 * coding.h (struct coding_detection_info): New structure.
18513 (struct coding_system): Adjust prototype of the member `detector'.
18514 (CODING_ANNOTATE_CHARSET_MASK): New macro.
18515
185162008-02-01 Kenichi Handa <handa@m17n.org>
18517
18518 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
18519
185202008-02-01 Dave Love <fx@gnu.org>
18521
18522 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
18523 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
18524 to new local and nullify apropos_accumulate before returning.
18525 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
18526
185272008-02-01 Kenichi Handa <handa@m17n.org>
18528
18529 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
18530 correctly.
e3eea1fc 18531
aac0c6e3
MR
185322008-02-01 Dave Love <fx@gnu.org>
18533
18534 * fns.c (Flanginfo): Call synchronize_system_time_locale.
18535
185362008-02-01 Kenichi Handa <handa@m17n.org>
18537
18538 The following changes are to make character composition happen
18539 automatically on displaying.
18540
18541 * Makefile.in (lisp, shortlisp): Add composite.elc.
18542
18543 * composite.h (Qauto_composed, Vauto_composition_function)
18544 (Qauto_composition_function): Extern them.
18545
18546 * composite.c (Vcomposition_function_table)
18547 (Qcomposition_function_table): Delete variables.
18548 (Qauto_composed, Vauto_composition_function)
18549 (Qauto_composition_function): New variables.
18550 (run_composition_function): Don't call
18551 compose-chars-after-function.
18552 (update_compositions): Clear `auto-composed' text property.
18553 (compose_chars_in_text): Delete this function.
18554 (syms_of_composite): Staticpro Qauto_composed and
18555 Qauto_composition_function. Declare Vauto_composition_function as
18556 a Lisp variable.
18557
18558 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
18559
18560 * xdisp.c (it_props): Add an entry for Qauto_composed.
18561 (handle_auto_composed_prop): New function.
18562
18563 * xselect.c (selection_data_to_lisp_data): Don't call
18564 compose_chars_in_text.
18565
185662008-02-01 Dave Love <fx@gnu.org>
18567
18568 * keyboard.c (read_char): Modify checking around use of
18569 Vkeyboard_translate_table.
18570
18571 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
18572 and fix C types.
18573
185742008-02-01 Kenichi Handa <handa@m17n.org>
18575
18576 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
18577 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
18578 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
18579 the case that the last byte is '\r' correctly.
18580 (decode_coding): Flush out the unprocessed data correctly.
18581 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
18582
185832008-02-01 Dave Love <fx@gnu.org>
18584
18585 * xterm.c (XTread_socket): Fix changes for defined keysyms.
18586 Add XK_ISO... case.
18587 (xaw_scroll_callback): Revert last change.
18588
185892008-02-01 Kenichi Handa <handa@m17n.org>
18590
18591 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
18592
185932008-02-01 Kenichi Handa <handa@m17n.org>
18594
18595 * xfaces.c (Vface_resizing_fonts): New variable.
18596 (struct font_name): New member `resizing_ratio'.
18597 (font_resizing_ratio): New function.
18598 (split_font_name): Set font->resizing_ratio.
18599 (better_font_p): Pay attention to font->resizing_ratio.
18600 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
18601 RESX, and RESY fields.
18602 (try_alternative_families): Try scalable fonts if
18603 Vscalable_fonts_allowed is not Qt.
18604 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
18605
186062008-02-01 Dave Love <fx@gnu.org>
18607
18608 * xterm.c (xaw_scroll_callback): Cast correctly.
18609
186102008-02-01 Dave Love <fx@gnu.org>
18611
18612 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
18613 (lispy_kana_keys): Comment out.
18614 (make_lispy_event) [XK_kana_A]: Comment out.
18615
18616 * xterm.c (xaw_scroll_callback): Cast call_data.
18617 (XTread_socket): Deal with ASCII keysyms.
18618 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
18619
186202008-02-01 Dave Love <fx@gnu.org>
18621
18622 * xterm.c (Vx_keysym_table): New.
18623 (syms_of_xterm): Initialize it.
18624 (XTread_socket): Use it.
18625 From head: Eliminate incorrect optimization that tried to avoid
18626 decoding the output of X*LookupString.
18627 (x_get_font_repertory): Delete charset declaration.
18628
186292008-02-01 Kenichi Handa <handa@m17n.org>
18630
18631 * coding.c (detect_coding_charset): If only ASCII bytes are found,
18632 return 0.
18633 (Fdefine_coding_system_internal): Setup
18634 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
18635
186362008-02-01 Dave Love <fx@gnu.org>
18637
18638 * coding.c (Fcheck_coding_system): Doc fix.
18639
18640 * editfns.c (Finsert_byte): Return a proper value.
18641
186422008-02-01 Kenichi Handa <handa@m17n.org>
18643
18644 * coding.c (decode_coding): Fix args to translate_chars. Pay
18645 attention to Vstandard_translation_table_for_decode.
18646 (encode_coding): Fix args to translate_chars. Pay attention to
18647 Vstandard_translation_table_for_encode.
18648
18649 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
18650 SINGLE_BYTE_CHAR_P.
18651
18652 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
18653 not by SINGLE_BYTE_CHAR_P.
18654
18655 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
18656 SINGLE_BYTE_CHAR_P.
18657
18658 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
18659 SINGLE_BYTE_CHAR_P.
18660
18661 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
18662 by SINGLE_BYTE_CHAR_P.
18663
18664 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
18665 SINGLE_BYTE_CHAR_P.
18666
186672008-02-01 Dave Love <fx@gnu.org>
18668
18669 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
18670
186712008-02-01 Dave Love <fx@gnu.org>
18672
18673 * fns.c (Flanginfo): Fix typo.
18674
18675 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
18676
186772008-02-01 Kenichi Handa <handa@m17n.org>
18678
18679 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
18680 (detect_coding_emacs_mule, detect_coding_iso_2022)
18681 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
18682 incomplete byte sequence. Don't update *mask when correctly detected.
18683 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
18684 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
18685 (detect_coding, detect_coding_system): Adjust for the changes above.
18686
186872008-02-01 Kenichi Handa <handa@m17n.org>
18688
18689 * character.c (char_string): Rename from
18690 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
18691 (string_char): Rename from string_char.
18692
18693 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
18694 if C is greater than MAX_3_BYTE_CHAR.
18695 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
18696 string_char instead of string_char_with_unification.
18697
186982008-02-01 Dave Love <fx@gnu.org>
18699
18700 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
18701
187022008-02-01 Kenichi Handa <handa@m17n.org>
18703
18704 * keymap.c (push_key_description): Pay attention to force_multibyte.
18705
18706 * regex.c (re_search_2): Fix for the case of unibyte buffer.
18707
187082008-02-01 Dave Love <fx@gnu.org>
18709
18710 * charset.c (define_charset_internal): Rename `supprementary'.
18711
18712 * Makefile.in (lisp, shortlisp): Remove latin-N.
18713
187142008-02-01 Dave Love <fx@gnu.org>
18715
18716 * xfns.c (x_window, x_window): Use use_xim.
18717
18718 * xterm.c (use_xim): Initialize.
18719 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
18720 (x_term_init): Maybe set use_xim.
18721
18722 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
18723
187242008-02-01 Kenichi Handa <handa@m17n.org>
18725
18726 * search.c (search_buffer): Fix case-fold-search of multibyte
18727 characters.
18728 (boyer_moore): Rename the last argument to char_high_bits.
18729
187302008-02-01 Kenichi Handa <handa@m17n.org>
18731
18732 * xdisp.c (display_string): Fix for the case of zero width glyph.
18733
18734 * xfns.c (x_set_font): Change the error message of the case that
18735 x_new_fontset returns Qt.
18736
18737 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
18738 (Finternal_set_lisp_face_attribute): Use signal_error for the
18739 error of invalid fontset.
18740
18741 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
18742 fontset, return Qt.
18743
187442008-02-01 Dave Love <fx@gnu.org>
18745
18746 * unexelf.c (unexec): Make .got handling not SGI-specific.
18747
18748 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
18749
18750 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
18751
18752 * keyboard.c (read_key_sequence): Fix type error.
18753
18754 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
18755 type error.
18756
18757 * fontset.c (fontset_add): Return Lisp_Object.
18758
187592008-02-01 Dave Love <fx@gnu.org>
18760
18761 * charset.h (charset_ordered_list_tick): Declare extern.
18762
187632008-02-01 Kenichi Handa <handa@m17n.org>
18764
18765 The following changes (and some of 2008-02-01 changes of mine) are
18766 for handling syntax, category, and case conversion for unibyte
18767 characters by converting them to multibyte on the fly. With these
18768 changes, we don't have to setup syntax and case tables for unibyte
18769 characters in each language environment.
18770
18771 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
18772 multibyte if necessary.
18773
18774 * bytecode.c (Fbyte_code): Likewise.
18775
18776 * character.h (LEADING_CODE_LATIN_1_MIN)
18777 (LEADING_CODE_LATIN_1_MAX): New macros.
18778 (unibyte_to_multibyte_table): Extern it.
18779 (unibyte_char_to_multibyte): New macro.
18780 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
18781 (CHAR_LEADING_CODE): New macro.
18782 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
18783
18784 * character.c (unibyte_to_multibyte_table): New variable.
18785 (unibyte_char_to_multibyte): Move to character.h and define as macro.
18786 (multibyte_char_to_unibyte): If C is an eight-bit character,
18787 convert it to the corresponding byte value.
18788
18789 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
18790 not 1, signals an error. Update the elements of
18791 unibyte_to_multibyte_table.
18792 (init_charset_once): Initialize unibyte_to_multibyte_table.
18793 (syms_of_charset): Define the charset `iso-8859-1'.
18794
18795 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
18796 as is without converting it to unibyte. In a unibyte buffer,
18797 convert C to multibyte before checking the syntax.
18798
18799 * lisp.h (unibyte_char_to_multibyte): Delete extern.
18800
18801 * minibuf.c (Fminibuffer_complete_word): Use the macro
18802 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
18803
18804 * regex.h (struct re_pattern_buffer): New member target_multibyte.
18805
18806 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
18807 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
18808 that is zero, convert an eight-bit char to multibyte.
18809 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
18810 non-emacs case.
18811 (PATFETCH): Convert an eight-bit char to multibyte.
18812 (HANDLE_UNIBYTE_RANGE): New macro.
18813 (regex_compile): Setup the compiled pattern for multibyte chars
18814 even if the given regex string is unibyte. Use PATFETCH_RAW
18815 instead of PATFETCH in many places. To handle `charset'
18816 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
18817 only for ASCII chars.
18818 (analyse_first) <exactn>: Simplify because the compiled pattern
18819 is multibyte.
18820 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
18821 <charset>: Use CHAR_LEADING_CODE to get leading codes.
18822 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
18823 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
18824 multibyte always 1.
18825 (re_search_2): In emacs, set the locale variable multibyte to 1,
18826 otherwise to 0. New local variable target_multibyte. Check it
18827 to decide the multibyteness of STR1 and STR2. If
18828 target_multibyte is zero, convert unibyte chars to multibyte
18829 before translating and checking fastmap.
18830 (TARGET_CHAR_AND_LENGTH): New macro.
18831 (re_match_2_internal): In emacs, set the locale variable multibyte
18832 to 1, otherwise to 0. New local variable target_multibyte. Check
18833 it to decide the multibyteness of STR1 and STR2. Use
18834 TARGET_CHAR_AND_LENGTH to fetch a character from D.
18835 <charset, charset_not>: If multibyte is nonzero, check fastmap
18836 only for ASCII chars. Call bcmp_translate with
18837 target_multibyte, not with multibyte.
18838 <begline>: Declare the local variable C as `unsigned'.
18839 (bcmp_translate): Change the last arg name to target_multibyte.
18840
18841 * search.c (compile_pattern_1): Don't adjust the multibyteness of
18842 the regexp pattern and the matching target. Set cp->buf.multibyte
18843 to the multibyteness of the regexp pattern. Set
18844 cp->but.target_multibyte to the multibyteness of the matching target.
18845 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
18846 FETCH_STRING_CHAR_ADVANCE.
18847 (Freplace_match): Convert unibyte chars to multibyte.
18848
18849 * syntax.c (char_quoted, back_comment, scan_words)
18850 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
18851 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
18852 unibyte chars to multibyte.
18853 (skip_chars): Delete the arg syntaxp, and move the code for
18854 handling syntaxes to skip_syntaxes. Change callers.
18855 Fix the case that the multibyteness of STRING and the current
18856 buffer doesn't match.
18857 (skip_syntaxes): New function.
18858 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
18859 SINGLE_BYTE_CHAR_P.
18860
188612008-02-01 Kenichi Handa <handa@m17n.org>
18862
18863 * xfaces.c (QCfontset): New variable.
18864 (LFACE_FONTSET): New macro.
18865 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
18866 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
18867 (Finternal_set_lisp_face_attribute)
18868 (Finternal_get_lisp_face_attribute): Handle QCfontset.
18869 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
18870 check also LFACE_FONTSET_INDEX.
18871 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
18872 attrs[LFACE_FONT_INDEX].
18873 (syms_of_xfaces): Intern and staticpro QCfontset.
18874
18875 * dispextern.h (enum lface_attribute_index): New member
18876 LFACE_FONTSET_INDEX.
18877
18878 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
18879
188802008-02-01 Kenichi Handa <handa@m17n.org>
18881
18882 * coding.c (coding_set_destination): Fix coding->destination for
18883 the case converting a region.
18884 (encode_coding_utf_8): Encode eight-bit chars as single byte.
18885 (encode_coding_object): Fix coding->dst_pos and
18886 coding->dst_pos_byte for the case converting a region.
18887
18888 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
18889
18890 * character.h (BYTE8_STRING): New macro.
18891
18892 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
18893
188942008-02-01 Kenichi Handa <handa@m17n.org>
18895
18896 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
18897 characters by octal form.
18898
18899 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
18900
18901 * buffer.h (_fetch_multibyte_char_len): Delete extern.
18902 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
18903 _fetch_multibyte_char_len.
18904 (FETCH_CHAR_AS_MULTIBYTE): New macro.
18905
18906 * casetab.c (set_canon, set_identity, shuffle): Simplify.
18907
18908 * casefiddle.c (casify_object): Simplify. Handle the case that
18909 the case conversion change the byte length.
18910 (casify_region): Likewise.
18911
18912 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
18913
18914 * character.c (_fetch_multibyte_char_len): Delete this variable.
18915 (syms_of_character): Setup Vprintable_chars.
18916
18917 * editfns.c (Fchar_equal): Fix for the unibyte case.
18918 (Finsert_byte): New function.
18919 (syms_of_editfns): Defsubr it.
18920
18921 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
18922 of direct code 0x3ffff.
18923
18924 * search.c (Freplace_match): Fix for the unibyte case.
18925
189262008-02-01 Kenichi Handa <handa@m17n.org>
18927
18928 * lread.c (safe_to_load_p): Fix the logic.
18929
18930 * syntax.c (scan_words): Don't treat characters belonging to
18931 different scripts as constituting a word.
18932
18933 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
18934
18935 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
18936
18937 * emacs.c (main): In the case of --unibyte, instead of aborting on
18938 finding non-empty buffer, make it unibyte.
18939
189402008-02-01 Kenichi Handa <handa@m17n.org>
18941
18942 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
18943 to create a fontset.
18944
189452008-02-01 Dave Love <fx@gnu.org>
18946
18947 * character.c (Funibyte_char_to_multibyte): Doc fix.
18948
18949 * xfns.c [HAVE_STDLIB_H]: Fix last change.
18950
189512008-02-01 Kenichi Handa <handa@m17n.org>
18952
18953 * fontset.c (fontset_add): Make the type `int'.
18954 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
18955
18956 * character.c (unibyte_char_to_multibyte)
18957 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
18958 charset_unibyte, not charset_primary.
18959
18960 * charset.h (charset_unibyte): Extern it instead of charset_primary.
18961
18962 * charset.c (charset_unibyte): Rename from charset_primary.
18963 (Funibyte_charset): Rename from Fprimary_charset.
18964 (Fset_unibyte_charset): Rename from Fset_primary_charset.
18965 (syms_of_charset): Adjust for the above changes.
18966
18967 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
18968 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
18969 it->multibyte_p is zero.
18970
18971 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
18972 Delete extern.
18973
189742008-02-01 Kenichi Handa <handa@m17n.org>
18975
18976 * coding.c (Fdefine_coding_system_internal): Fix category setting
18977 for a coding system of type iso-2022.
18978
189792008-02-01 Kenichi Handa <handa@m17n.org>
18980
18981 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
18982
189832008-02-01 Kenichi Handa <handa@m17n.org>
18984
18985 * syntax.c (Vnext_word_boundary_function_table): New variable.
18986 (next-word-boundary-function-table): Declare it as a Lisp variable
18987 in syms_of_syntax.
18988 (scan_words): Call functions in Vnext_word_boundary_function_table
18989 if any.
18990
18991 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
18992
18993 * fontset.c (fs_load_font): If fontp->charset is not negative,
18994 return fontp without setting its members.
18995
189962008-02-01 Dave Love <fx@gnu.org>
18997
18998 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
18999
19000 * m/sparc.h (HAVE_ALLOCA): Delete.
19001
19002 * s/irix6-5.h: Don't include strings.h.
19003 (bcopy, bzero, bcmp): Don't undef.
19004
19005 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
19006
19007 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
19008 (TIOCSIGSEND): Don't test IRIX6.
19009 (bcopy, bzero, bcmp): Define conditionally.
19010
190112008-02-01 Kenichi Handa <handa@m17n.org>
19012
19013 * buffer.c (Qas, Qmake, Qto): New variables.
19014 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
19015 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
19016
19017 * callproc.c (Fcall_process): Don't call insert_1_both directly if
19018 we are inserting a process output into a multibyte buffer.
19019
19020 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
19021 multibyte_char_to_unibyte.
19022
19023 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
19024 by the primary charset, make it eight-bit char.
19025 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
19026
19027 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
19028 (charset_8_bit__control, charset_8_bit_graphic)
19029 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
19030 (define_charset_internal): New function.
19031 (syms_of_charset): Call define_charset_internal for pre-defined
19032 charsets.
19033
19034 * charset.h (charset_8_bit): Extern it.
19035
19036 * coding.c (make_conversion_work_buffer): Adjust for the change
19037 of Fset_buffer_multibyte.
19038 (encode_coding_raw_text): Increment p0 in the loop.
19039
19040 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
19041
19042 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
19043 for the change of Fset_buffer_multibyte.
19044
19045 * fns.c (Fstring_to_multibyte): New function.
19046 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
19047
190482008-02-01 Dave Love <fx@gnu.org>
19049
19050 * xfns.c (x_put_x_image): Declare args.
19051
19052 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
19053 (try_font_list): Declare an arg.
19054
19055 * xdisp.c (message2_nolog, set_message): Declare an arg.
19056
19057 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
19058
19059 * syntax.c (scan_sexps_forward): Declare an arg.
19060
19061 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
19062 Declare an arg.
19063
19064 * lisp.h (Fnew_fontset): Declare.
19065
19066 * keymap.c (push_key_description): Call CHARACTERP correctly.
19067
19068 * fontset.c (fontset_add): Declare args. Call make_number correctly.
19069 (face_for_char): Delete unused vars.
19070 (Fset_fontset_font): Doc fix. Delete unused vars.
19071
19072 * doc.c (Fsubstitute_command_keys): Delete unused vars.
19073
19074 * composite.c (update_compositions): Declare arg.
19075
19076 * cm.c (calccost, cmgoto): Declare args.
19077
19078 * charset.c: Remove `emacs' conditional. Doc fixes.
19079 (map_char_table_for_charset): Declare.
19080
19081 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
19082
19083 * ccl.c: Remove `emacs' conditional.
19084
190852008-02-01 Kenichi Handa <handa@m17n.org>
19086
19087 The following changes are to allow specifying multiple font
19088 patterns for a character range (specified by script or charset).
19089
19090 * Makefile.in (abbrev.o): Depend on syntax.h.
19091 (xfaces.o): Depend on charset.h.
19092
19093 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
19094 SINGLE_BYTE_CHAR_P.
19095
19096 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
19097
19098 * character.h (Vchar_script_table): Extern it.
19099
19100 * character.c (Vscript_alist): Delete.
19101 (Vchar_script_table, Qchar_script_table): New variable.
19102 (syms_of_character): Declare Vchar_script_table as a lisp variable
19103 and initialize it.
19104
19105 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
19106 have property char-table-extra-slots, make no extra slot.
19107
19108 * dispextern.h (struct face): Delete member `charset'.
19109 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
19110 SINGLE_BYTE_CHAR_P.
19111 (choose_face_font, lookup_non_ascii_face, font_name_registry):
19112 Add prototypes.
19113 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
19114 (generate_ascii_font_name): Rename from generate_ascii_font.
19115
19116 * fontset.h (get_font_repertory_func): New prototype.
19117 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
19118 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
19119
19120 * fontset.c (Qprepend, Qappend): New variables.
19121 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
19122 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
19123 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
19124 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
19125 (fontset_ref_and_range, fontset_add, reorder_font_vector)
19126 (load_font_get_repertory): New functions.
19127 (fontset_set): Delete.
19128 (fontset_face): New arg FACE. Return face ID, not face.
19129 Complete re-write to handle new fontset structure. Change caller.
19130 (free_face_fontset): Use ASET istead of AREF (X) = Y.
19131 (face_for_char): Don't call lookup_face.
19132 (make_fontset_for_ascii_face): New arg FACE.
19133 (fs_load_font): New arg CHARSET_ID. Don't check
19134 Vfont_encoding_alist here.
19135 (find_font_encoding): New function.
19136 (list_fontsets): Use STRINGP, not ! NILP.
19137 (accumulate_script_ranges): New function.
19138 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
19139 re-written to handle new fontset structure.
19140 (Ffontset_font): Return a copy of element.
19141 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
19142 docstring of font-encoding-alist.
19143
19144 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
19145 (Fset_fotset_font): Fix arguments to 5.
19146
19147 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
19148
19149 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
19150 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
19151 (highlight_trailing_whitespace): Adjust for the change of
19152 lookup_named_face.
19153
19154 * xfaces.c: Include charset.h.
19155 (load_face_font): Delete argument C. Change caller.
19156 (generate_ascii_font_name): Rename from generate_ascii_font.
19157 (font_name_registry): New function.
19158 (cache_face): Store ascii faces before non-ascii faces in buckets.
19159 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
19160 Lookup only ascii faces.
19161 (lookup_non_ascii_face): New function.
19162 (lookup_named_face): Delete argument C. Change caller.
19163 (lookup_derived_face): Delete argument C. Change caller.
19164 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
19165 a string, just call font_list with it.
19166 (choose_face_font): Delete arguments FACE and C. New arg
19167 FONT_SPEC. Change caller.
19168 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
19169 Change caller.
19170 (realize_non_ascii_face): New function.
19171 (realize_x_face): Call load_face_font here.
19172 (realize_tty_face): Delete argument C. Change caller.
19173 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
19174 get a face ID.
19175 (dump_realized_face): Don't print charset of FACE.
19176
19177 * xfns.c (x_set_font): Always call x_new_fontset and
19178 store_frame_parameter.
19179 (Fx_create_frame): Call x_new_fontset, not x_new_font.
19180 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
19181
19182 * xterm.h (x_get_font_repertory): Extern it.
19183
19184 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
19185 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
19186 it->multibyte_p is zero.
19187 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
19188 (x_new_fontset): If FONTSETNAME doesn't match any existing
19189 fontsets, create a new one.
19190 (x_get_font_repertory): New function.
19191
191922008-02-01 Kenichi Handa <handa@m17n.org>
19193
19194 * coding.c (Ffind_coding_systems_region_internal): Detect an
19195 ASCII only string correctly.
19196
19197 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
19198 version is 0.
19199
192002008-02-01 Kenichi Handa <handa@m17n.org>
19201
19202 * lread.c: Include "coding.h".
19203 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
19204 (load_each_byte, unread_char): New variables.
19205 (readchar_backlog): Delete.
19206 (readchar): Return a character unless load_each_byte is nonzero.
19207 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
19208 cons. If unread_char is not -1, simply return it.
19209 (unreadchar): Handle the case that readcharfun is
19210 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
19211 (read_multibyte): Delete.
19212 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
19213 (read_emacs_mule_char): New functions.
19214 (Fload): Even if the file doesn't have the extension ".elc", if
19215 safe_to_load_p returns a positive version number, assume that the
19216 file contains bytecompiled code. If the version is less than 22,
19217 load the file while decoding multibyte sequences by emacs-mule.
19218 (readevalloop): Don't use readchar_backlog.
19219 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
19220 (Fread_from_string): Pay attention to the case that STREAM is a cons.
19221 (read_escape): Delete the arg BYTEREP.
19222 (read1): Set load_each_byte to 1 temporarily while handling
19223 #@NUMBER. Don't call read_multibyte.
19224 (read_vector): Call Fread with a cons. If readcharfun is
19225 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
19226 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
19227 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
19228 and Qload_force_doc_strings.
19229
192302008-02-01 Kenichi Handa <handa@m17n.org>
19231
19232 * xdisp.c (face_before_or_after_it_pos): Call
19233 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
19234
192352008-02-01 Kenichi Handa <handa@m17n.org>
19236
19237 * character.h (TRAILING_CODE_P): New macro.
19238 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
19239 (string_char_with_unification): Fix prototype.
19240 (Vscript_alist): Extern it.
19241
19242 * character.c (Vscript_alist): New variable.
19243 (string_char_with_unification, str_as_unibyte)
19244 (string_escape_byte8): Add `const' to local variables.
19245 (syms_of_character): Declare script-alist as a Lisp variable.
19246
19247 * charset.h (Vcharset_ordered_list): Extern it.
19248 (charset_ordered_list_tick): Extern it.
19249 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
19250 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
19251 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
19252 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
19253 (Funify_charset): Adjust for the change of Funify_charset.
19254
19255 * charset.c (charset_ordered_list_tick): New variable.
19256 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
19257 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
19258 deunify intead of unify a charset.
19259 (string_xstring_p): Add `const' to local variables.
19260 (find_charsets_in_text): Add `const' to arguments and local variables.
19261 (encode_char): Adjust for the change of Funify_charset. Fix
19262 detecting of invalid code.
19263 (Fset_charset_priority): Increment charset_ordered_list_tick.
19264 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
19265 and TO_CODE.
19266
19267 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
19268 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
19269 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
19270 (decode_coding_ccl, consume_chars)
19271 (Ffind_coding_systems_region_internal)
19272 (Fcheck_coding_systems_region): Add `const' to local variables.
19273
19274 * print.c (print_object): Use octal form for printing the
19275 contents of a bool vector.
19276
192772008-02-01 Dave Love <fx@gnu.org>
19278
19279 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
19280 <version == 20>: Refuse to load.
19281
192822008-02-01 Dave Love <fx@gnu.org>
19283
19284 * fns.c: Move coding.h.
19285 (Qcodeset, Qdays, Qmonths): New.
19286 (concat): Use CHARACTERP instead of INTEGERP.
19287 (Flocale_codeset): Delete.
19288 (Flanginfo): New function.
19289 (syms_of_fns): Change accordingly.
19290
19291 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
19292
192932008-02-01 Dave Love <fx@gnu.org>
19294
19295 * casetab.c (init_casetab_once, init_casetab_once): Fix
19296 CHAR_TABLE_SET call.
19297
19298 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
19299
19300 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
19301
19302 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
19303 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
19304 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
19305
19306 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
19307
19308 * coding.c (ENCODE_DESIGNATION, decode_eol)
19309 (make_conversion_work_buffer, code_conversion_restore)
19310 (Fdefine_coding_system_internal): Convert Lisp types.
19311 (code_conversion_restore): Use EQ, not ==.
19312 (Fencode_coding_string): Fix code_convert_string call.
19313
19314 * coding.h (code_convert_region): Fix prototype.
19315
19316 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
19317
19318 * fontset.c (fontset_ref, fontset_set, fs_load_font)
19319 (Ffontset_info): Convert Lisp types.
19320
19321 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
19322
19323 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
19324
19325 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
19326
19327 * chartab.c: Include "...h", not <...h> in some cases.
19328
19329 * callproc.c (Fcall_process): Remove unused variables.
19330
193312008-02-01 Dave Love <fx@gnu.org>
19332
19333 * coding.c (Fset_coding_system_priority): Allow null arg list.
19334
193352008-02-01 Dave Love <fx@gnu.org>
19336
19337 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
19338 (Fself_insert_and_exit): Use CHARACTERP.
19339
19340 * callproc.c (Fcall_process): Remove unused vars.
19341
19342 * xterm.c (XTread_socket): Add extra dead keysyms.
19343
19344 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
19345
19346 * dispextern.h: Remove prototypes for redraw_frame,
19347 redraw_garbaged_frames.
19348
19349 * cmds.c (Fself_insert_command): Use CHARACTERP.
19350
19351 * chartab.c (make_sub_char_table): Remove unused var.
19352 (Fset_char_table_default, Fmap_char_table): Doc fix.
19353
19354 * keymap.c (access_keymap): Remove generic char code.
19355 (push_key_description): Use CHARACTERP.
19356
193572008-02-01 Dave Love <fx@gnu.org>
19358
19359 * charset.c: Doc fixes.
19360 (Funify_charset): Extra checking.
19361
193622008-02-01 Dave Love <fx@gnu.org>
19363
19364 * lread.c: Remove some unused variables.
19365 (safe_to_load_p): If safe, return the magic number version byte.
19366 (Fload): Maybe use load-with-code-conversion.
19367
193682008-02-01 Kenichi Handa <handa@m17n.org>
19369
19370 * category.c (Fmodify_category_entry): Don't modify the contents
19371 of category_set for characters out of the range. Avoid
19372 unnecessary modification.
19373
19374 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
19375 Vchar_unify_table. The default value of the table is now nil.
19376
19377 * character.c (syms_of_character): Setup Vchar_width_table for
19378 eight-bit-control and raw-byte chars.
19379
19380 * charset.h (enum define_charset_arg_index): Delete
19381 charset_arg_parents and add charset_arg_subset and
19382 charset_arg_superset.
19383 (enum charset_attr_index): Delete charset_parents and add
19384 charset_subset and charset_superset.
19385 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
19386 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
19387 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
19388 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
19389 (CHARSET_SUPERSET): New macros.
19390 (charset_work): Extern it.
19391 (ENCODE_CHAR): Use charset_work.
19392 (CHAR_CHARSET_P): Adjust for the change of encoder format.
19393 (map_charset_chars): Extern it.
19394
19395 * charset.c (load_charset_map): Set the default value of encoder
19396 and deunifier char-tables to nil.
19397 (map_charset_chars): Change argument. Change callers. Use
19398 map_char_table_for_charset instead of map_char_table.
19399 (Fmap_charset_chars): New optional args from_code and to_code.
19400 (Fdefine_charset_internal): Adjust for the change of
19401 `define-charset' (:parents -> :subset or :superset).
19402 (charset_work): New variable.
19403 (encode_char, syms_of_charset): Adjust for the change of
19404 Fdefine_charset_internal.
19405 (Ffind_charset_string): Setup the vector `charsets' correctly.
19406
19407 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
19408 the previous change.
19409 (char_table_ref_and_range): Adjust for the above change.
19410 (map_sub_char_table_for_charset): New function.
19411 (map_char_table_for_charset): New function.
19412
19413 * keymap.c (describe_vector): Handle a char-table directly here.
19414 (describe_char_table): Delete.
19415
19416 * lisp.h (map_charset_chars): Delete.
19417
194182008-02-01 Dave Love <fx@gnu.org>
19419
19420 * fns.c (count_combining): Comment out (unused).
19421 (Flocale_codeset): New.
19422 (syms_of_fns): Defsubr it.
19423
19424 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
19425 (size_t): Remove.
19426
194272008-02-01 Dave Love <fx@gnu.org>
19428
19429 * Makefile.in (chartab.o): Depend on charset.h.
19430
194312008-02-01 Kenichi Handa <handa@m17n.org>
19432
19433 * character.c (syms_of_character): Set the default value of
19434 Vprintable_chars to Qnil.
19435
194362008-02-01 Dave Love <fx@gnu.org>
19437
19438 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
19439
194402008-02-01 Kenichi Handa <handa@m17n.org>
19441
19442 * charset.c (load_charset_map): Handle the case that from < to
19443 correctly.
19444
19445 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
19446 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
19447 Pay attention to raw-8-bit chars.
19448
194492008-02-01 Kenichi Handa <handa@m17n.org>
19450
19451 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
19452 It is not bytecompiled now.
19453
19454 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
19455 (charset_jisx0208): New variables.
19456 (Fdefine_charset_internal): Setup them if appropriate.
19457 (init_charset_once): Initialize them to -1.
19458
19459 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
19460 (charset_jisx0208): Extern them.
19461
19462 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
19463 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
19464 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
19465 (setup_iso_safe_charsets): Fix arguments to Fassq.
19466 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
19467 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
19468 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
19469 (encode_coding_iso_2022): Change the 1st arg to
19470 ENCODE_ISO_CHARACTER to a variable.
19471
194722008-02-01 Kenichi Handa <handa@m17n.org>
19473
19474 * charset.h (enum define_charset_arg_index): New enums
19475 charset_arg_min_code and charset_arg_max_code.
19476 (struct charset): New member char_index_offset.
19477
19478 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
19479 Take charset->char_index_offset into account.
19480 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
19481 args[charset_arg_max_code]. Setup charset.char_index_offset.
19482 (syms_of_charset): Fix args to Fdefine_charset_internal.
19483
194842008-02-01 Dave Love <fx@gnu.org>
19485
19486 * coding.c (decode_coding_utf_8): Reject overlong sequences.
19487
194882008-02-01 Dave Love <fx@gnu.org>
19489
19490 * coding.c: Doc fixes.
19491 (Fcoding_system_aliases): Fix return value.
19492 (Qmac): Remove (duplicated) definition.
19493
194942008-02-01 Dave Love <fx@gnu.org>
19495
362654a6
JB
19496 * charset.c (Fcharset_priority_list, Fset_charset_priority):
19497 New functions.
aac0c6e3
MR
19498
19499 * character.c (Fstring): Doc fix.
19500
19501 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
19502
362654a6 19503 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
19504 (font-encoding-alist): Doc fix.
19505
195062008-02-01 Dave Love <fx@gnu.org>
19507
19508 * term.c (costs_set): Declare static, non-initialized for pcc.
19509 (encode_terminal_code): Remove unused var.
19510
19511 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
19512 for K&R.
19513
19514 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
19515
19516 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
19517 (suffixes): Move out of make_subsidiaries for K&R.
19518
19519 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
19520
19521 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
19522
195232008-02-01 Dave Love <fx@gnu.org>
19524
19525 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
19526
19527 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
19528
195292008-02-01 Yong Lu <lyongu@asia-infonet.com>
19530
19531 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
19532
19533 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
19534
195352008-02-01 Kenichi Handa <handa@m17n.org>
19536
19537 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
19538 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
19539
195402008-02-01 Kenichi Handa <handa@m17n.org>
19541
19542 * coding.c (decode_coding_charset): Adjust for the change of
19543 Fdefine_coding_system_internal.
19544 (Fdefine_coding_system_internal): For a coding system of
19545 `charset' type, store a list of charset IDs in
19546 `charset_attr_charset_valids' element of coding attributes.
19547
195482008-02-01 Kenichi Handa <handa@m17n.org>
19549
19550 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
19551 (emacs_mule_char): New arg src. Delete arg `composition'. Change
19552 caller. Handle 2-byte and 3-byte charsets correctly.
19553 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
19554 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
19555 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
19556 (DECODE_EMACS_MULE_21_COMPOSITION): Call
19557 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
19558 sequence.
19559 (decode_coding_emacs_mule): Handle composition correctly. Rewind
19560 `src' and `consumed_chars' correctly before calling emacs_mule_char.
19561 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
19562 and alt&rule composition.
19563 (decode_coding_iso_2022): Handle composition correctly.
19564 (init_coding_once): Setup emacs_mule_bytes for private charsets.
19565
19566 * charset.c (Fdefine_charset_internal): Fix bug for the case of
19567 re-defining a charset. If the charset has :emacs-mule-id, setup
19568 emacs_mule_bytes.
19569 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
19570
195712008-02-01 Kenichi Handa <handa@m17n.org>
19572
19573 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
19574 (encode_coding_big5, encode_coding_charset): If coding requires safe
19575 encoding, produce a character specified by
19576 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
19577
195782008-02-01 Dave Love <fx@gnu.org>
19579
19580 * xterm.c (XSetIMValues): Declare.
19581
19582 * process.c: Conditionally include sys/wait.h, pty.h.
19583
19584 * print.c (print_object): Fix print format for 64-bit systems.
19585
19586 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
19587
19588 * buffer.c (emacs_strerror): Declare.
19589
19590 * fontset.c (Fclear_face_cache): Declare.
19591 (accumulate_font_info): Comment-out (unused).
19592 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
19593 variables.
19594
19595 * character.h (string_escape_byte8): Declare.
19596
19597 * charset.c (load_charset_map, load_charset_map_from_file): Remove
19598 unused vars.
19599 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
19600 (Fmap_charset_chars): Doc fix.
19601
19602 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
19603 (Fset_coding_system_priority, Fset_coding_system_priority)
19604 (Fdefine_coding_system_internal): Doc fix.
19605
196062008-02-01 Dave Love <fx@gnu.org>
19607
19608 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
19609
196102008-02-01 Kenichi Handa <handa@m17n.org>
19611
19612 * character.c (string_escape_byte8): Make multibyte string with
19613 correct size.
19614
19615 * charset.c (Fmake_char): Delete unnecessary code.
19616
196172008-02-01 Kenichi Handa <handa@m17n.org>
19618
19619 * xfns.c (x_encode_text): Allocate coding.destination here, and
19620 call encode_coding_object with dst_object Qnil.
19621
19622 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
19623 multibyte form correctly.
19624
19625 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
19626 against Vfont_encoding_alist.
19627
19628 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
19629 handling of charset list.
19630 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
19631 (decode_coding_object): Move point to coding->dst_pos before
19632 calling post-read-conversion function.
19633 (encode_coding_object): Give correct arguments to
19634 pre-write-conversion. Ignore the return value of
19635 pre-write-conversion function. Pay attention to the case that
19636 pre-write-conversion changes the current buffer. If dst_object is
19637 Qt, even if coding->src_bytes is zero, allocate at least one byte
19638 to coding->destination.
19639
19640 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
19641
19642 * charset.c (Fmake_char): Make it more backward compatible.
19643 (Fmap_charset_chars): Fix docstring.
19644
196452008-02-01 Dave Love <fx@gnu.org>
19646
19647 * coding.c: Doc fixes.
19648 (Fdefine_coding_system_alias): Use names, not symbols, in
19649 coding-system-alist.
19650
196512008-02-01 Kenichi Handa <handa@m17n.org>
19652
19653 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
19654 of calling free_realized_face.
19655
196562008-02-01 Yong Lu <lyongu@asia-infonet.com>
19657
19658 * charset.c (read_hex): Don't treat SPC as a comment starter.
19659 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
19660 (Fdecode_char): Fix typo.
19661
196622008-02-01 Kenichi Handa <handa@m17n.org>
19663
19664 * charset.h (struct charset): New member `code_space_mask'.
19665
19666 * coding.c (coding_set_source): Delete the local variable beg_byte.
19667 (encode_coding_charset, Fdefine_coding_system_internal):
19668 Delete the local variable charset.
19669 (Fdefine_coding_system_internal): Setup
19670 attrs[coding_attr_charset_valids] correctly.
19671
19672 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
19673 member to check if CODE is valid or not.
19674 (Fdefine_charset_internal): Initialize `code_space_mask' member.
19675 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
19676 is within the range of charset->min_code and carset->max_code.
19677
196782008-02-01 Dave Love <fx@gnu.org>
19679
19680 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
19681
19682 * dispextern.h (generate_ascii_font): Fix return type.
19683
19684 * xfaces.c (generate_ascii_font): Fix arg declaration.
19685
19686 * coding.c (coding_inherit_eol_type)
19687 (Fset_terminal_coding_system_internal)
19688 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
19689
196902008-02-01 Kenichi Handa <handa@m17n.org>
19691
19692 * coding.c (decode_coding_charset, encode_coding_charset): Handle
19693 multiple charsets correctly.
19694
196952008-02-01 Kenichi Handa <handa@m17n.org>
19696
19697 * search.c (boyer_moore): Fix handling of multibyte character
19698 translation.
19699
19700 * xdisp.c (display_mode_element): When the variable `elt' is
19701 changed, update `this' and `lisp_string'.
19702
197032008-02-01 Kenichi Handa <handa@m17n.org>
19704
19705 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
19706
19707 * callproc.c (Fcall_process): Be sure to give the current buffer
19708 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
19709
19710 * charset.c (struct charset_map_entries): New struct.
19711 (load_charset_map): Rename from parse_charset_map. New args
19712 entries and n_entries. Change caller.
19713 (load_charset_map_from_file): Rename from load_charset_map.
19714 Change caller. New arg control_flag. Call load_charset_map at
19715 the tail.
19716 (load_charset_map_from_vector): New function.
19717 (Fdefine_charset_internal): Setup charset.compact_codes_p.
19718 (encode_char): If the charset is compact, change a character index
19719 to a code point.
19720
19721 * coding.c (coding_alloc_by_making_gap): Check the case that the
19722 source and destination are the same correctly.
19723 (decode_coding_raw_text): Set coding->consumed_char and
19724 coding->consumed to 0.
19725 (produce_chars): If coding->chars_at_source is nonzero, update
19726 coding->consumed_char and coding->consumed before calling
19727 alloc_destination.
19728 (Fdefine_coding_system_alias): Register ALIAS in
19729 Vcoding_system_alist.
19730 (syms_of_coding): Define `no-conversion' coding system at the tail.
19731
19732 * fileio.c (Finsert_file_contents): Set coding_system instead of
19733 val. If the current buffer is multibyte, always call
19734 decode_coding_gap.
19735
19736 * xfaces.c (try_font_list): Give higher priority to fontset's
19737 family than face's family.
19738
197392008-02-01 Kenichi Handa <handa@m17n.org>
19740
19741 * callproc.c (Fcall_process): Be sure to give the current buffer
19742 to decode_coding_c_string.
19743
19744 * xfaces.c (try_font_list): Give a family specified in a fontset
19745 higher priority than a family specified in a face.
19746
197472008-02-01 Kenichi Handa <handa@m17n.org>
19748
19749 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
19750 Fix arguments to insert_from_buffer.
19751
19752 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
19753
197542008-02-01 Kenichi Handa <handa@m17n.org>
19755
19756 * coding.c (produce_chars): Set the variable `multibytep' correctly.
19757 (decode_coding_gap): Set coding->dst_multibyte correctly.
19758
197592008-02-01 Kenichi Handa <handa@m17n.org>
19760
19761 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
19762 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
19763 (encode_coding_utf_16): Substitute coding->default_char for
19764 non-Unicode characters.
19765 (decode_coding): Don't call record_insert here.
19766 (setup_coding_system): Initialize `surrogate' of
19767 coding->spec.utf_16 to 0.
19768 (EMIT_ONE_BYTE): Fix for multibyte case.
19769
19770 * insdel.c (insert_from_gap): Call record_insert.
19771
197722008-02-01 Kenichi Handa <handa@m17n.org>
19773
19774 * casefiddle.c (casify_region): Fix multibyte case.
19775
19776 * character.c (c_string_width): Add return type `int'.
19777 (char_string_with_unification): Delete arg ADVANCED.
19778
19779 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
19780 (CHAR_STRING): Adjust for the change of char_string_with_unification.
19781 (CHAR_STRING_ADVANCE): Make it do-while statement.
19782
19783 * chartab.c (sub_char_table_set_range): Optimize for the case
19784 DEPTH == 3. Add workaround code for a GCC optimization bug.
19785
19786 * charset.c (parse_charset_map): Remove an unused variable.
19787
19788 * coding.c: Delete unused variables.
19789
19790 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
19791 earlier. If inserted is zero and the coding system doesn't
19792 require flushing, don't call decode_coding_gap.
19793
19794 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
19795
197962008-02-01 Kenichi Handa <handa@m17n.org>
19797
19798 The following changes are for using Unicode as an internal
19799 character model, and use UTF-8 format for buffer/string
19800 representation.
19801
19802 * .gdbinit (xchartable): Adjust for the change of char table structure.
19803 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
19804
19805 * Makefile.in (obj): Add character.o and chartab.o.
19806 (lisp, shortlisp): Remove utf-8.elc.
19807 (*.o): For many files, change dependency on charset.h to
19808 character.h, and add dependency on character.h.
19809 (character.o, chartab.o): New targets.
19810
19811 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
19812 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
19813 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
19814 of "charset.h".
19815
19816 * dired.c, filelock.c: Include "character.h".
19817
19818 * alloc.c: Include "character.h" instead of "charset.h".
19819 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
19820 (syms_of_alloc): Remove defsubr for Smake_char_table.
19821
19822 * buffer.c: Include "character.h" instead of "charset.h", don't
19823 include "coding.h".
19824 (Fset_buffer_multibyte): Adjust for UTF-8.
19825
19826 * buffer.h: EXFUN Fbuffer_live_p.
19827
19828 * callproc.c: Include "character.h" instead of "charset.h".
19829 (Fcall_process): Big change for the new code-conversion APIs.
19830
19831 * casetab.c: Include "character.h" instead of "charset.h".
19832 (set_canon, set_identity, shuffle): Adjust for the new
19833 map_char_table spec.
19834 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
19835 accessing the char table structure.
19836
19837 * chartab.c: New file that implements char table.
19838
19839 * category.c: Include "character.h".
19840 (copy_category_entry): New function.
19841 (copy_category_table): Call map_char_table and copy_category_entry.
19842 (Fmake_category_table): Initialize all top-level slots.
19843 (char_category_set): New function.
19844 (modify_lower_category_set): Delete.
19845 (Fmodify_category_entry): Call char_table_ref_and_range.
19846
19847 * category.h (CATEGORY_SET): Just call char_category_set.
19848
19849 * ccl.c: Include "character.h".
19850 (Qccl, Qcclp): New variables.
19851 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
19852 it's less than 256.
19853 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
19854 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
19855 and DST type.
19856 (ccl_driver): Change types of argument, adjust code accordingly.
19857 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
19858 ccl_driver.
19859 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
19860
19861 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
19862 New members src_multibyte, dst_multibyte, consumed, and produced.
19863 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
19864 (CODING_SPEC_CCL_PROGRAM): New macro.
19865 (ccl_driver): Update prototype.
19866 (Qccl, Qcclp, Fccl_program_p): Extern them.
19867 (CHECK_CCL_PROGRAM): New macro.
19868
19869 * character.c, character.h, chartab.c: New files.
19870
19871 * charset.c: Mostly re-written. Move character and multibyte sequence
19872 handling codes to character.c.
19873
19874 * charset.h: Mostly re-written. Move character and multibyte sequence
19875 handling codes to character.h.
19876
19877 * coding.c, coding.h: Mostly re-written.
19878
19879 * composite.c: Include "character.h" instead of "charset.h".
19880 (CHAR_WIDTH): Move to character.h.
19881 (HASH_KEY, HASH_VALUE): Delete.
19882
19883 * composite.h (enum composition_method): Change order of enumeration
19884 symbols.
19885
19886 * data.c: Include "character.h" instead of "charset.h".
19887 (Faref): Call CHAR_TABLE_REF for a char table.
19888 (Faset): Call CHAR_TABLE_SET for a char table.
19889
19890 * dispextern.h (free_realized_face, check_face_attribytes)
19891 (generate_ascii_font): Extern them.
19892 (free_realized_multibyte_face): Delete extern.
19893
19894 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
19895 table structure.
19896
19897 * editfns.c: Include "character.h" instead of "charset.h".
19898 (Fchar_to_string): Always call CHAR_STRING.
19899
19900 * emacs.c (main): Call init_charset_once, init_charset,
19901 syms_of_chartab, and syms_of_character.
19902
19903 * fileio.c: Include "character.h" instead of "charset.h".
19904 (Finsert_file_contents): Big change for the new code-conversion API.
19905 (choose_write_coding_system, Fwrite_region): Likewise.
19906 (build_annotations_2): Delete.
19907 (e_write): Big change for the new code-conversion API.
19908
19909 * fns.c: Include "character.h" instead of "charset.h".
19910 (copy_sub_char_table): Move to chartab.c.
19911 (Fcopy_sequence): Call copy_char_table for a char table.
19912 (concat): Delete codes calling count_multibyte.
19913 (string_char_to_byte, string_byte_to_char): Adjust for the new
19914 multibyte form.
19915 (internal_equal): Adjust for the change of char table structure.
19916 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
19917 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
19918 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
19919 (char_table_translate, optimize_sub_char_table)
19920 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
19921 chartab.c.
19922 (char_table_ref_and_index): Delete.
19923 (HASH_KEY, HASH_VALUE): Move to lisp.h.
19924 (Fmd5): Call preferred_coding_system instead of accessing
19925 Vcoding_category_list. Adjust for the new code-conversion API.
19926 (syms_of_fns): Move defsubr for char table related functions to
19927 chartab.c.
19928
19929 * fontset.c: Mostly re-written.
19930
19931 * fontset.h (struct font_info): Change type of the member encoding_type.
19932 (enum FONT_SPEC_INDEX): New enum.
19933 (fontset_font_pattern, fs_load_font): Update prototype.
19934 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
19935
19936 * indent.c: Include "character.h" instead of "charset.h".
19937 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
19938
19939 * insdel.c: Include "character.h" instead of "charset.h".
19940 (copy_text): Don't refer to Vnonascii_translation_table.
19941 (insert_from_gap): New function.
19942
19943 * keyboard.c: Include "character.h" instead of "charset.h".
19944 (command_loop_1): Never call direct_output_forward_char before
19945 a non-ASCII character.
19946 (read_char): If Vkeyboard_translate_table is a char table, always
19947 translate a character.
19948
19949 * keymap.c: Include "character.h".
19950 (store_in_keymap): Handle the case that IDX is a cons.
19951 (Fdefine_key): Handle the case that KEY is a cons and the car part
19952 is also a cons (range).
19953 (push_key_description): Adjust for the new character code.
19954 (describe_vector): Call describe_char_table for a char table.
19955 (describe_char_table): New function.
19956
19957 * keymap.h (describe_char_table): Extern it.
19958
19959 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
19960 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
19961 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
19962 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
19963 Delete.
19964 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
19965 structure.
19966 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
19967 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
19968 (CHARTAB_SIZE_BITS_3): New macros.
19969 (chartab_size): Extern it.
19970 (struct Lisp_Char_Table): Re-design.
19971 (struct Lisp_Sub_Char_Table): New structure.
19972 (HASH_KEY, HASH_VALUE): Move from fns.c.
19973 (CHARACTERBITS): Define as 22.
19974 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
19975 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
19976 (GC_SUB_CHAR_TABLE_P): New macro.
19977 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
19978 (code_convert_string_norecord): Deleted extern.
19979 (init_character_once, syms_of_character, init_charset)
19980 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
19981
19982 * lread.c: Include "character.h".
19983 (read_multibyte): New arg NBYTES.
19984 (read_escape): Change the meaning of returned *BYTEREP.
19985 (to_multibyte): Delete.
19986 (read1): Adjust the handling of char table and string.
19987
19988 * print.c: Include "character.h" instead of "charset.h".
19989 (print_string): Convert 8-bit raw bytes to octal form by
19990 string_escape_byte8.
19991 (print_object): Adjust for the new multibyte form. Print 8-bit
19992 raw bytes always in octal form. Handle sub char table correctly.
19993
19994 * process.c: Include "character.h" instead of "charset.h".
19995 (read_process_output, send_process): Adjust for the new
19996 code-conversion API.
19997
19998 * puresize.h (BASE_PURESIZE): Increase.
19999
20000 * regex.c: Include "character.h" instead of "charset.h".
20001 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
20002 (regex_compile): Accept a range whose starting and ending
20003 character have different leading bytes.
20004 (analyse_first): Adjust for the above change.
20005
20006 * search.c: Include "character.h" instead of "charset.h".
20007 (search_buffer, boyer_moore): Adjust for the new multibyte form.
20008 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
20009
20010 * syntax.c: Include "character.h" instead of "charset.h".
20011 (syntax_parent_lookup): Delete.
20012 (Fmodify_syntax_entry): Accept a cons as CHAR.
20013 (skip_chars): Adjust for the new multibyte form.
20014 (init_syntax_once): Call char_table_set_range instead of directly
20015 accessing the structure of a char table.
20016
20017 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
20018 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
20019 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
20020 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
20021
20022 * term.c: Include "buffer.h" and "character.h".
20023 (encode_terminal_code, write_glyphs): Adjust for the new
20024 code-conversion API.
20025 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
20026
20027 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
20028
20029 * xdisp.c: Include "character.h".
20030 (get_next_display_element): Adjust for the new multibyte form.
20031 (disp_char_vector): Adjust for the new char table structure.
20032 (decode_mode_spec_coding): Adjust for the new structure of
20033 coding system.
20034 (decode_mode_spec): Adjust for the new code-conversion API.
20035
20036 * xfaces.c: Include "character.h" instead of "charset.h".
20037 (load_face_font): Adjust for the change of choose_face_font and
20038 FS_LOAD_FONT.
20039 (generate_ascii_font): New function.
20040 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
20041 (set_font_frame_param): Adjust for the change of choose_face_font.
20042 (free_realized_face): Make it public.
20043 (free_realized_faces_for_fontset): Rename from
20044 free_realized_multibyte_face. Free also faces realized for ASCII.
20045 (choose_face_font): Change arguments. Adjust for the change of
20046 fontset_font_pattern and FS_LOAD_FONT.
20047
20048 * xfns.c: Include "character.h".
20049 (x_encode_text): Adjust for the new code-conversion API.
20050
20051 * xselect.c: Don't include "charset.h".
20052 (selection_data_to_lisp_data): Adjust for the new code conversion API.
20053
20054 * xterm.c: Include "character.h".
20055 (x_encode_char): New argument CHARSET. Change caller.
20056 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
20057 Call ENCODE_CHAR instead of SPLIT_CHAR.
20058 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
20059 CHAR_WIDTH instead of CHARSET_WIDTH.
20060 (XTread_socket): Adjust for the new code-conversion API.
20061 (x_new_font): Adjust for the change of FS_LOAD_FONT.
20062 (x_load_font): Adjust for the change of struct font.
20063
200642008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
20065
20066 * xfaces.c (face_at_buffer_position): Remove unused vars.
20067
200682008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20069
20070 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
20071 Fix overflow checking.
20072
200732008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20074
20075 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
20076 Cancel previous change.
20077
200782008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
20079
20080 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
20081 ccl->eight_bit_control. Fix check for buffer overflow.
20082 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
20083 (ccl_driver): Initialize extra_bytes to 0.
20084
200852008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
20086
20087 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
20088 return it ORed with ctrl_modifier.
20089
200902008-01-29 Miles Bader <miles@gnu.org>
20091
20092 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
20093
200942008-01-28 Jason Rumney <jasonr@gnu.org>
20095
20096 * w32.c (stat): Don't double check for networked drive.
20097
200982008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
20099
20100 * window.c (run_window_configuration_change_hook): New function.
20101 Code extracted from set_window_buffer. Set the selected frame.
20102 (set_window_buffer): Use it.
20103 * window.h (run_window_configuration_change_hook): Declare.
20104 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
20105
20106 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
20107
201082008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
20109
20110 * Makefile.in: Remove references to unused macros.
20111
201122008-01-26 Eli Zaretskii <eliz@gnu.org>
20113
20114 * w32.c (g_b_init_get_sid_sub_authority)
20115 (g_b_init_get_sid_sub_authority_count): New static variables.
20116 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
20117 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
20118 (init_user_info): Use them to retrieve uid and gid.
20119 Use 500/513, the Windows defaults, as Administrator's uid/gid.
20120 (fstat): Use pw_uid and pw_gid from the_passwd structure for
20121 st_uid and st_gid of the file.
20122
201232008-01-26 Jason Rumney <jasonr@gnu.org>
20124
20125 * w32.c (logon_network_drive): New function.
20126 (stat): Use it.
20127
201282008-01-26 Chong Yidong <cyd@stupidchicken.com>
20129
20130 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
20131 invisible text covered with an ellipsis.
20132
201332008-01-25 Richard Stallman <rms@gnu.org>
20134
20135 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
20136 jump back to beginning. Move some other initializations after that.
20137 (Qwindow_text_change_functions, Vwindow_text_change_functions):
20138 New variables.
20139 (syms_of_xdisp): Init them.
20140
20141 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
20142
20143 * buffer.c (reset_buffer_local_variables):
20144 Implement `permanent-local-hook'.
20145 (Qpermanent_local_hook): New variable.
20146 (syms_of_buffer): Init and staticpro it.
20147
201482008-01-25 Michael Albinus <michael.albinus@gmx.de>
20149
20150 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
20151
201522008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
20153
20154 * fns.c (Fclrhash): Return TABLE.
20155
201562008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20157
20158 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
20159 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
20160 is set even without positional changes.
20161 (x_scroll_bar_clear): Set bar->redraw_needed_p.
20162
20163 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
20164
201652008-01-23 Jason Rumney <jasonr@gnu.org>
20166
20167 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
20168
20169 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
20170 the unicode range available in MULE by locale-coding-system.
20171 Improve dbcs lead byte detection. Set event timestamp and modifiers
20172 earlier.
20173
201742008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20175
20176 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
20177 [MAC_OSX] (init_mac_osx_environment): Initialize it.
20178 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
20179 when used on child processes.
20180
201812008-01-21 Michael Albinus <michael.albinus@gmx.de>
20182
20183 * dbusbind.c (Fdbus_method_return_internal): Rename from
20184 Fdbus_method_return.
20185 (Fdbus_unregister_object): Move to dbus.el.
20186 (Fdbus_call_method, Fdbus_method_return_internal)
20187 (Fdbus_send_signal): Improve debug messages.
20188
201892008-01-20 Martin Rudalics <rudalics@gmx.at>
20190
20191 * undo.c (undo_inhibit_record_point): New variable.
20192 (syms_of_undo): Initialize it.
20193 (record_point): Don't record point when undo_inhibit_record_point
20194 is set.
20195
201962008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
20197
20198 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
20199
20200 * xdisp.c (Qauto_hscroll_mode): New var.
20201 (syms_of_xdisp): Initialize it.
20202 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
20203 window's buffer.
20204 (hscroll_windows): Don't check automatic_hscrolling_p here.
20205
20206 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
20207 vscroll if we're setting window-buffer to the value it already has.
20208
202092008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
20210
20211 * m/intel386.h: Remove references to XENIX.
20212
202132008-01-17 Andreas Schwab <schwab@suse.de>
20214
20215 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
20216 instead of HAVE_X86_64_LIB64_DIR.
20217 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
20218
202192008-01-17 Glenn Morris <rgm@gnu.org>
20220
20221 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
20222 to HAVE_X86_64_LIB64_DIR.
20223
202242008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
20225
20226 * s/irix3-3.h:
20227 * s/irix4-0.h:
20228 * s/386-ix.h:
20229 * s/domain.h:
20230 * s/hpux9-x11r4.h:
20231 * s/hpux9shxr4.h: Remove files for systems no longer supported.
20232
20233 * sysdep.c: Remove code containing references to symbols defined
20234 by unsupported systems.
20235
202362008-01-16 Glenn Morris <rgm@gnu.org>
20237
20238 * coding.c (select-safe-coding-system-function): Doc fix.
20239
202402008-01-15 Glenn Morris <rgm@gnu.org>
20241
20242 * config.in: Revert 2008-01-13 change: this is a generated file.
20243
202442008-01-13 Tom Tromey <tromey@redhat.com>
20245
20246 * lisp.h: Fix typo.
20247
202482008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
20249
20250 * m/sequent-ptx.h:
20251 * m/sequent.h:
20252 * s/ptx.h:
20253 * s/ptx4-2.h:
20254 * s/ptx4.h: Remove files for systems no longer supported.
20255
20256 * callproc.c (Fcall_process): Fix previous change.
20257
202582008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
20259
20260 * unexsunos4.c: Remove file, system not supported anymore.
20261
20262 * m/mips.h:
20263 * m/intel386.h:
20264 * callproc.c:
20265 * config.in:
20266 * ecrt0.c:
20267 * emacs.c:
20268 * fileio.c:
20269 * frame.c:
20270 * getpagesize.h:
20271 * keyboard.c:
20272 * lread.c:
20273 * process.c:
20274 * puresize.h:
20275 * sysdep.c:
20276 * systty.h:
20277 * syswait.h:
20278 * unexec.c:
20279 * xdisp.c:
20280 * alloc.c: Remove code containing references to symbols defined by
20281 unsupported systems.
20282
202832008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
20284
20285 * coding.c (detect_coding_mask): Fix previous change.
20286
202872008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
20288
20289 * coding.c (detect_coding_iso2022): New arg
20290 latin_extra_code_state. Allow Latin extra codes only
20291 when *latin_extra_code_state is nonzero.
20292 (detect_coding_mask): If there is a NULL byte, detect the encoding
20293 as UTF-16 or binary. If Latin extra codes exist, detect the
20294 encoding as ISO-2022 only when there's no other proper encoding is
20295 found.
20296
202972008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20298
20299 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
20300 #ifdef MAC_OS.
20301
203022008-01-08 Richard Stallman <rms@gnu.org>
20303
20304 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
20305
203062008-01-06 Nick Roberts <nickrob@snap.net.nz>
20307
20308 * keyboard.c (parse_menu_item): Don't enclose key bindings on
20309 menu bar in parentheses.
20310
203112008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
20312
20313 * m/7300.h:
20314 * m/acorn.h:
20315 * m/alliant-2800.h:
20316 * m/alliant.h:
20317 * m/alliant1.h:
20318 * m/alliant4.h:
20319 * m/altos.h:
20320 * m/amdahl.h:
20321 * m/apollo.h:
20322 * m/att3b.h:
20323 * m/aviion-intel.h:
20324 * m/aviion.h:
20325 * m/celerity.h:
20326 * m/clipper.h:
20327 * m/cnvrgnt.h:
20328 * m/convex.h:
20329 * m/cydra5.h:
20330 * m/delta88k.h:
20331 * m/dpx2.h:
20332 * m/dual.h:
20333 * m/elxsi.h:
20334 * m/f301.h:
20335 * m/gould-np1.h:
20336 * m/gould.h:
20337 * m/i860.h:
20338 * m/ibmps2-aix.h:
20339 * m/ibmrt-aix.h:
20340 * m/ibmrt.h:
20341 * m/irist.h:
20342 * m/is386.h:
20343 * m/isi-ov.h:
20344 * m/mega68.h:
20345 * m/mg1.h:
20346 * m/news-r6.h:
20347 * m/news-risc.h:
20348 * m/news.h:
20349 * m/nh3000.h:
20350 * m/nh4000.h:
20351 * m/ns16000.h:
20352 * m/ns32000.h:
20353 * m/nu.h:
20354 * m/orion.h:
20355 * m/orion105.h:
20356 * m/paragon.h:
20357 * m/pfa50.h:
20358 * m/plexus.h:
20359 * m/pyramid.h:
20360 * m/pyrmips.h:
20361 * m/sh3el.h:
20362 * m/sps7.h:
20363 * m/sr2k.h:
20364 * m/stride.h:
20365 * m/sun1.h:
20366 * m/sun2.h:
20367 * m/sun3-68881.h:
20368 * m/sun3-fpa.h:
20369 * m/sun3-soft.h:
20370 * m/sun3.h:
20371 * m/sun386.h:
20372 * m/symmetry.h:
20373 * m/tad68k.h:
20374 * m/tahoe.h:
20375 * m/targon31.h:
20376 * m/tek4300.h:
20377 * m/tekxd88.h:
20378 * m/tower32.h:
20379 * m/tower32v3.h:
20380 * m/ustation.h:
20381 * m/wicat.h:
20382 * m/xps100.h:
20383 * s/cxux.h:
20384 * s/cxux7.h:
20385 * s/dgux.h:
20386 * s/dgux4.h:
20387 * s/dgux5-4-3.h:
20388 * s/dgux5-4r2.h:
20389 * s/esix.h:
20390 * s/esix5r4.h:
20391 * s/hiuxmpp.h:
20392 * s/hiuxwe2.h:
20393 * s/iris3-5.h:
20394 * s/iris3-6.h:
20395 * s/isc2-2.h:
20396 * s/isc3-0.h:
20397 * s/isc4-0.h:
20398 * s/isc4-1.h:
20399 * s/newsos5.h:
20400 * s/newsos6.h:
20401 * s/osf1.h:
20402 * s/osf5-0.h:
20403 * s/riscix1-1.h:
20404 * s/riscix12.h:
20405 * s/sco4.h:
20406 * s/sco5.h:
20407 * s/sunos4-0.h:
20408 * s/sunos4-1.h:
20409 * s/sunos413.h:
20410 * s/sunos4shr.h:
20411 * s/umax.h:
20412 * s/unipl5-2.h:
20413 * s/xenix.h:
20414 * cxux-crt0.s:
20415 * unexapollo.c:
20416 * unexconvex.c:
20417 * unexenix.c:
20418 * unexsni.c: Remove files for systems no longer supported.
20419
20420 * m/intel386.h: Remove references to unsupported systems.
20421
20422 * w32.c (get_emacs_configuration): Remove reference to i860.
20423
20424 * sysdep.c: Remove dead code.
20425
204262008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
20427
20428 * s/rtu.h:
20429 * m/masscomp.h: Remove files. Platform is obsolete.
20430
204312008-01-04 Michael Albinus <michael.albinus@gmx.de>
20432
20433 * dbusbind.c (Fdbus_method_return): New function.
20434 (xd_read_message): Add the serial number to the event.
20435 (Fdbus_register_method): Activate the function.
20436
204372008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
20438
20439 * keyboard.c (read_key_sequence): Fix typo.
20440
204412008-01-03 Michael Albinus <michael.albinus@gmx.de>
20442
20443 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
20444 (xd_signature, xd_append_arg): Handle element type detection for
20445 empty arrays.
20446 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
20447 SDATA () calls; this must be solved more general.
20448 (Fdbus_register_signal): Use SBYTES instead of strlen.
20449
204502008-01-03 Magnus Henoch <magnus@zemdatav>
20451
20452 * dbusbind.c (xd_append_arg): Use unsigned char instead of
20453 unsigned int for byte values (necessary for big-endian platform).
20454 (Fdbus_call_method): Handle the case of no returned arguments.
20455
204562007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
20457
20458 * dbusbind.c (xd_read_message): Use non-static input_event struct.
20459
204602007-12-31 Magnus Henoch <mange@freemail.hu>
20461
20462 * dbusbind.c (xd_signature): Signature of variant is just "v".
20463
204642007-12-30 Michael Albinus <michael.albinus@gmx.de>
20465
20466 * dbusbind.c: Fix several errors and compiler warnings.
20467 Reported by Tom Tromey <tromey@redhat.com>.
20468 (XD_ERROR, XD_DEBUG_MESSAGE)
20469 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
20470 (xd_append_arg): Part for basic D-Bus types rewritten.
20471 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
20472 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
20473 appropriate.
20474 (xd_read_message): Return Qnil. Don't signal an error; it is not
20475 useful during event reading.
20476 (Fdbus_register_signal): Signal an error if the check for
20477 FUNCTIONP fails.
20478 (Fdbus_register_method): New function. The implementation is not
20479 complete, the call of the function signals an error therefore.
20480 (Fdbus_unregister_object): New function, renamed from
20481 Fdbus_unregister_signal. The initial check signals an error, if
20482 the object is not well formed.
20483
204842007-12-30 Richard Stallman <rms@gnu.org>
20485
20486 * textprop.c (get_char_property_and_overlay):
20487 Signal error if POSITION is out of range in a buffer.
20488
204892007-12-29 Martin Rudalics <rudalics@gmx.at>
20490
20491 * w32fns.c (Fx_create_frame): Make copy of frame parameters
20492 because the original parameters are in pure storage now.
20493
204942007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20495
20496 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
20497
204982007-12-22 Eli Zaretskii <eliz@gnu.org>
20499
20500 * callint.c (syms_of_callint) <command-history>: Add reference to
20501 history-length in the doc string.
20502
205032007-12-17 Jason Rumney <jasonr@gnu.org>
20504
20505 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
20506 before passing as wParam.
20507
205082007-12-22 Michael Albinus <michael.albinus@gmx.de>
20509
20510 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
20511 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
20512 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
20513 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
20514 as number.
20515 (Fdbus_call_method): Fix docstring.
20516
205172007-12-21 Michael Albinus <michael.albinus@gmx.de>
20518
20519 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
20520 New macros.
20521 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
20522 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
20523 Simplify.
20524 (xd_signature): New function.
20525 (xd_append_arg): Compute also signatures. Major rewrite.
20526 (xd_retrieve_arg): Make debug messages friendly.
20527 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
20528 Check for signatures of arguments.
20529
205302007-12-19 Michael Albinus <michael.albinus@gmx.de>
20531
20532 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
20533 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
20534 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
20535 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
20536 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
20537 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
20538 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
20539 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
20540 (xd_retrieve_value): Remove. Functionality included in ...
20541 (xd_append_arg): New function.
20542 (Fdbus_call_method, Fdbus_send_signal): Apply it.
20543
205442007-12-16 Michael Albinus <michael.albinus@gmx.de>
20545
20546 * dbusbind.c (top): Include <stdio.h>.
20547 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
20548 dbus_message_new_method_call and dbus_message_new_signal.
20549 (Fdbus_register_signal): Rename unique_name to uname.
20550 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
20551 non-existing unique name. Fix typos in matching rule. Return an
20552 object which is useful in Fdbus_unregister_signal.
20553 (Fdbus_unregister_signal): Reimplementation, in order to remove
20554 only the corresponding entry.
20555 (Vdbus_registered_functions_table): Change the order of entries.
20556 Apply these changes in xd_read_message and Fdbus_register_signal.
20557
205582007-12-16 Andreas Schwab <schwab@suse.de>
20559
20560 * fileio.c (Finsert_file_contents): Fix overflow check to not
20561 depend on undefined integer overflow.
20562
205632007-12-14 Jason Rumney <jasonr@gnu.org>
20564
20565 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
20566 for characters above 127.
20567
205682007-12-13 Jason Rumney <jasonr@gnu.org>
20569
20570 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
20571 before dereferencing array.
20572 (lookup_vk_code): Remove zero comparison.
20573
205742007-12-14 Michael Albinus <michael.albinus@gmx.de>
20575
20576 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
20577 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
20578 Use `unsigned int' instead of `uint'.
20579 (xd_read_message, Fdbus_register_signal): Split expressions into
20580 multiple lines before operators "&&" and "||", according to the
20581 GNU Coding Standards.
20582
205832007-12-14 Eli Zaretskii <eliz@gnu.org>
20584
20585 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
20586
205872007-12-12 Juri Linkov <juri@jurta.org>
20588
20589 * buffer.c (Frename_buffer): In interactive spec replace
20590 `read-buffer' with `read-string' that uses `buffer-name-history'
20591 as history, and the current buffer's name as default.
20592
205932007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
20594
20595 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
20596 manipulating the backtrace manually.
20597 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
20598 (struct backtrace, backtrace_list): Remove.
20599 (command_loop_1): Remove dead var `no_direct'.
20600
20601 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
20602 preserve non-built-in buffer-local variables.
20603 (Fkill_all_local_variables): Don't re-create&re-set permanent
20604 buffer-local variables.
20605
206062007-12-09 Juri Linkov <juri@jurta.org>
20607
20608 * buffer.c (Frename_buffer): Change interactive spec from "s" to
20609 Lisp code that uses `read-buffer' with current buffer as default.
20610
206112007-12-08 Michael Albinus <michael.albinus@gmx.de>
20612
20613 * dbusbind.c (xd_read_message): Generate an event for every
20614 registered handler. There might be several handlers registered
20615 for the same signal.
20616 (Fdbus_register_signal): Don't overwrite a registration for the
20617 same signal. Add a new registration if handlers are different.
20618 (Vdbus_registered_functions_table): Rework doc string.
20619
206202007-12-07 Michael Albinus <michael.albinus@gmx.de>
20621
20622 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
20623 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
20624 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
20625 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
20626 Unify argument lists.
20627 (xd_read_message, Fdbus_register_signal): Reorder and extend event
20628 arguments and hash table keys. Use unique name for service.
20629 (Fdbus_unregister_signal): Remove checks.
20630 (Vdbus_registered_functions_table): Fix doc string.
20631
206322007-12-05 Magnus Henoch <mange@freemail.hu>
20633
20634 * process.c (make_process): Initialize pty_flag to 0.
20635
206362007-12-05 Jason Rumney <jasonr@gnu.org>
20637
20638 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
20639 specified XBMs.
20640
206412007-12-05 Richard Stallman <rms@gnu.org>
20642
20643 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
20644
206452007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20646
20647 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
20648 New variable.
20649 (mac_try_close_socket) [MAC_OSX]: New function.
20650 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
20651 Update cfsockets_for_select. Replace invalid CFRunLoop source.
20652
20653 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
20654 Use mac_try_close_socket.
20655
206562007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20657
20658 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
20659 reloc_base.
20660 (copy_dysymtab): Compute relocation base here.
20661 (rebase_reloc_address) [__ppc64__]: New function.
20662 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
20663 changed.
20664
206652007-12-05 Jason Rumney <jasonr@gnu.org>
20666
20667 * w32proc.c (sys_spawnve): Quote args with wildcards.
20668
206692007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20670
20671 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
20672 __objc_* sections.
20673 (unrelocate) [_LP64]: Set relocation base to address of data segment.
20674
206752007-12-05 Michael Albinus <michael.albinus@gmx.de>
20676
20677 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
20678 Move check for Vdbus_registered_functions_table to
20679 xd_read_queued_messages.
20680 (xd_read_queued_messages): Protect xd_read_message calls by
20681 internal_condition_case_1.
20682
206832007-12-04 Michael Albinus <michael.albinus@gmx.de>
20684
20685 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
20686 Qdbus_system_bus and Qdbus_session_bus, respectively.
20687 (Vdbus_intern_symbols): Remove.
20688 (Vdbus_registered_functions_table): New hash table.
20689 (XD_SYMBOL_INTERN_SYMBOL): Remove.
20690 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
20691 Rewrite in order to manage registered functions by hash table
20692 Vdbus_registered_functions_table.
20693
206942007-12-03 Jan Djärv <jan.h.d@swipnet.se>
20695
20696 * xterm.c: Update URL to Window Manager Specification in comment.
20697
206982007-12-02 Michael Albinus <michael.albinus@gmx.de>
20699
20700 * config.in (HAVE_DBUS): Add.
20701
20702 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
20703 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
20704 (obj): Add $(DBUS_OBJ).
20705 (LIBES): Add $(DBUS_LIBS).
20706 (dbusbind.o): New target.
20707
20708 * dbusbind.c: New file.
20709
20710 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
20711
20712 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
20713 (Qdbus_event): New Lisp symbol.
20714 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
20715 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 20716 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
20717
20718 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
20719
207202007-12-01 Richard Stallman <rms@gnu.org>
20721
20722 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
20723
207242007-11-30 Jason Rumney <jasonr@gnu.org>
20725
20726 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
20727 (w32con_reset_terminal_modes): Clear screen buffer.
20728 (w32_face_attributes): Don't use color indexes that are out of range.
20729 Only reverse the default colors.
20730
20731 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
20732 WINDOWSNT.
20733
20734 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
20735
207362007-11-29 Jason Rumney <jasonr@gnu.org>
20737
20738 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
20739 (w32_face_attributes): Use Vtty_defined_color_alist to determine
20740 if the terminal colors are initialized.
20741 (unspecified_fg, unspecified_bg): Remove unused declarations.
20742
207432007-11-29 Andreas Schwab <schwab@suse.de>
20744
20745 * keyboard.c (apply_modifiers): Fix typo.
20746
207472007-11-29 Richard Stallman <rms@gnu.org>
20748
20749 * keymap.c (Fcurrent_local_map): Doc fix.
20750
207512007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
20752
20753 * s/gnu-kfreebsd.h: New file.
20754
207552007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
20756
20757 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
20758 Don't cast redundantly.
20759
20760 * keyboard.c (KEY_TO_CHAR): New macro.
20761 (parse_modifiers, apply_modifiers): Accept integer arguments.
20762 (read_key_sequence): Use them to unify the "shift->unshift" mapping
20763 for chars and symbol keys.
20764 After doing such remapping, apply function-key-map again.
20765
207662007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
20767
20768 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
20769 compiled anymore.
20770
207712007-11-26 Andreas Schwab <schwab@suse.de>
20772
20773 * process.c (list_processes_1): Fix indentation level of the
20774 command column.
20775
207762007-11-23 Andreas Schwab <schwab@suse.de>
20777
20778 * editfns.c (Fformat): Handle %c specially since it requires the
20779 argument to be of type int.
20780
207812007-11-23 Markus Triska <markus.triska@gmx.at>
20782
20783 * emacs.c (main): Call init_editfns before init_process, since
20784 init_process sets Vprocess_connection_type depending on OS release.
20785
207862007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
20787
20788 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
20789 (find_symbol_value): Use do_symval_forwarding.
20790
20791 * data.c (set_internal): Set the value in the `cons-cell' (for
20792 Buffer_Local_values) not only for frame-local variables.
20793
207942007-11-22 Andreas Schwab <schwab@suse.de>
20795
20796 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
20797 values to sprintf.
20798 * keymap.c (Fsingle_key_description): Likewise.
20799 * print.c (print_object): Likewise.
20800
208012007-11-22 Jan Djärv <jan.h.d@swipnet.se>
20802
20803 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
20804 file for image is nil.
20805
208062007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
20807
20808 * term.c: Include stdarg.h.
20809 (fatal): Implement using varargs.
20810 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
20811
208122007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
20813
20814 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
20815 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
20816 Update call to buffer_slot_type_mismatch.
20817 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
20818 (buffer_slot_type_mismatch): Update.
20819 * buffer.c (buffer_local_types): Remove.
20820 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
20821 (defvar_per_buffer): Set the type in the buffer_objfwd.
20822
208232007-11-21 Jason Rumney <jasonr@gnu.org>
20824
20825 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
20826 CreateFileMapping returns NULL on failure.
20827
208282007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
20829
20830 * search.c (Fset_match_data): Remove the `evaporate' feature.
20831 (unwind_set_match_data): Don't use the `evaporate' feature.
20832
208332007-11-21 Jason Rumney <jasonr@gnu.org>
20834
20835 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
20836
20837 * w32console.c (w32con_write_glyphs): Remove unused variables.
20838
208392007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
20840
20841 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
20842
20843 * s/darwin.h (MULTI_KBOARD): Remove.
20844
20845 * macfns.c (x_create_tip_frame, Fx_create_frame)
20846 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
20847
208482007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
20849
20850 * buffer.c (Fbuffer_local_value): Remove redundant test.
20851 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
20852 than in `current-buffer' to match the comment.
20853 Do the swap using swap_in_global_binding.
20854
20855 * data.c (store_symval_forwarding, set_internal):
20856 * eval.c (specbind): Remove dead code.
20857
20858 * coding.c (detect_coding, Fupdate_coding_systems_internal):
20859 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
20860 Since we do not want to see internal Lisp_*fwd objects here.
20861
208622007-11-18 Jan Djärv <jan.h.d@swipnet.se>
20863
20864 * sysdep.c (init_system_name): Use getaddrinfo if available.
20865
20866 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
20867 (x_scroll_bar_note_movement): start, end, with, height in struct
20868 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
20869
208702007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
20871
20872 * puresize.h (BASE_PURESIZE): Increase to 1190000.
20873
208742007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
20875
20876 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
20877 This undoes Richard's change of 14-Oct-2002.
20878
20879 * alloc.c (allocate_other_vector):
20880 * lisp.h (allocate_other_vector): Remove.
20881
20882 * window.c (struct save_window_data): Move non-lisp data to the end
20883 and make it `int' rather than Lisp_Object.
20884 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
20885 Done wrap/unwrap integer values.
20886 (Fset_window_configuration, compare_window_configurations):
20887 Update use of fields to their new types.
20888
20889 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
20890 Turn integer fields into `int'. Merge x_window_low and x_window_high.
20891 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
20892 (SET_SCROLL_BAR_X_WINDOW): Remove.
20893 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
20894 Access the new x_window field directly.
20895 * xterm.c (x_scroll_bar_create): Use a pseudovector.
20896 Don't wrap/unwrap integers into Lisp_Objects.
20897 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
20898 (x_scroll_bar_report_motion):
20899 Don't wrap/unwrap integers into Lisp_Objects.
20900 (x_term_init): Use SDATA.
20901 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
20902 (x_scroll_bar_set_handle, x_scroll_bar_remove)
20903 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
20904 (x_scroll_bar_report_motion, x_scroll_bar_clear):
20905 * xfns.c (x_set_background_color):
20906 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
20907 Access the new x_window field directly.
20908
20909 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
20910 (allocate_pseudovector): Make non-static.
20911
20912 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
20913 (allocate_pseudovector): Declare.
20914 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
20915
209162007-11-15 Andreas Schwab <schwab@suse.de>
20917
20918 * editfns.c (Fformat): Correctly format EMACS_INT values.
20919 Also take precision into account when formatting an integer.
20920
20921 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
20922
209232007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
20924
20925 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
20926 (syms_of_keyboard): Defsubr it.
20927
20928 * data.c (swap_in_global_binding): Fix longstanding bug where
20929 store_symval_forwarding was not called with the right second argument,
20930 thus causing objfwd-ing from being dropped.
20931
209322007-11-14 Juanma Barranquero <lekktu@gmail.com>
20933
20934 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
20935 (Fx_display_pixel_height, Fx_display_planes)
20936 (Fx_display_color_cells, Fx_server_max_request_size)
20937 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
20938 (Fx_display_visual_class, Fx_display_save_under):
20939 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
20940 (Fx_display_pixel_height, Fx_display_planes)
20941 (Fx_display_color_cells, Fx_server_max_request_size)
20942 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
20943 (Fx_display_mm_height, Fx_display_mm_width)
20944 (Fx_display_backing_store, Fx_display_visual_class)
20945 (Fw32_select_font, Fx_display_save_under):
20946 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
20947 (Fx_display_pixel_height, Fx_display_planes)
20948 (Fx_display_color_cells, Fx_server_max_request_size)
20949 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
20950 (Fx_display_save_under): Fix typos in docstrings.
20951
209522007-11-14 Juanma Barranquero <lekktu@gmail.com>
20953
20954 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
20955 corresponding to deleted entries; they are an implementation detail.
20956 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
20957 Remove variables.
20958 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
20959 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
20960 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
20961 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
20962 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
20963 (Fw32_define_rgb_color, Fw32_load_color_file)
20964 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
20965 Fix typos in docstrings.
20966 (Fx_server_version): Reflow docstring.
20967 (Fw32_shell_execute): Doc fixes.
20968
209692007-11-13 Juanma Barranquero <lekktu@gmail.com>
20970
20971 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
20972 if w32_parse_hot_key returned nil.
20973
209742007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
20975
20976 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
20977
209782007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 20979
aac0c6e3
MR
20980 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
20981
20982 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
20983
20984 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
20985 Remove W32_SCROLL_BAR_CLICK_EVENT.
20986
20987 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
20988 Add MULTIMEDIA_KEY_EVENT.
20989
20990 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
20991 (lispy_multimedia_keys) [WINDOWSNT]: New array.
20992 (make_lispy_event) [WINDOWSNT]: Use it to translate
20993 MULTIMEDIA_KEY_EVENT.
20994
20995 * w32term.h (WM_APPCOMMAND): Define if not already.
20996 (GET_APPCOMMAND_LPARAM): Likewise.
20997
20998 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
20999 WM_APPCOMMAND.
21000
21001 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
21002 (syms_of_w32fns): Export and initialize it.
21003 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
21004
210052007-11-09 Chong Yidong <cyd@stupidchicken.com>
21006
21007 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
21008 twice.
21009
21010 * xdisp.c (handle_face_prop): Fix last change.
21011
210122007-11-09 Richard Stallman <rms@gnu.org>
21013
21014 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
21015 not just for after-strings and before-strings.
21016 Call face_for_overlay_string and pass the overlay to it.
21017 (handle_display_prop): Determine whether property came from an overlay.
21018 Pass OVERLAY arg to handle_single_display_spec.
21019 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
21020 (load_overlay_strings): Fill in it->string_overlays.
21021 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
21022
21023 * xfaces.c (face_for_overlay_string): Function renamed from
21024 face_at_buffer_position_no_overlays, and add arg OVERLAY.
21025
21026 * dispextern.h (struct it): New elt string_overlays.
21027 New elt from_overlay, also in stack.
21028 Rearrange a few elements.
21029 (face_for_overlay_string): Decl renamed from
21030 face_at_buffer_position_no_overlays, and add argument.
21031
210322007-11-09 Richard Stallman <rms@gnu.org>
21033
21034 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
21035 to get the base face for an overlay string.
21036
21037 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
21038
21039 * xfaces.c (face_at_buffer_position_no_overlays): New function.
21040
21041 * xdisp.c (handle_stop): Move some code out of loop.
21042
210432007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21044
21045 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
21046 Fix conversion from Lisp object to ATSUFontID.
21047
210482007-11-09 Jason Rumney <jasonr@gnu.org>
21049
21050 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
21051
210522007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21053
21054 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
21055 Don't assume regions are aligned to page boundary.
21056 (print_load_command_name): Add LC_UUID if defined.
21057
210582007-11-09 Richard Stallman <rms@gnu.org>
21059
21060 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
21061
210622007-11-07 Jason Rumney <jasonr@gnu.org>
21063
21064 * s/windows95.h: Remove.
21065
210662007-11-06 Jan Djärv <jan.h.d@swipnet.se>
21067
21068 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
21069 abort with a message on unhandled store_type values.
21070
210712007-11-01 Jan Djärv <jan.h.d@swipnet.se>
21072
21073 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
21074 Remove HAVE_X11R5 and HAVE_X11R4.
21075
210762007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
21077
21078 * Makefile.in: Remove references to sunfns.c and sunfns.o.
21079
210802007-11-01 Johan Bockgård <bojohan@gnu.org>
21081
21082 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
21083 Don't set s->stippled_p here, since it has already been set by
21084 x_set_glyph_string_gc from x_draw_glyph_string.
21085
210862007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
21087
21088 * sunfns.c: Remove file.
21089
21090 * m/sun386.h:
21091 * m/sun2.h:
21092 * m/sparc.h: Remove Sun windows code.
21093
210942007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
21095
21096 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
21097 (init_keyboard): Set current_kboard's window-system to nil.
21098 (tty_read_avail_input): Typo.
21099 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
21100
211012007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
21102
21103 * s/usg5-4.h:
21104 * s/usg5-3.h:
21105 * s/ptx.h:
21106 * m/is386.h:
21107 * m/ibmps2-aix.h:
21108 * Makefile.in: Remove all mentions of X10.
21109
21110 * dispnew.c (syms_of_display): Don't mention version 10.
21111
211122007-10-28 Juanma Barranquero <lekktu@gmail.com>
21113
21114 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
21115 ($(BLD)/abbrev.$(O)): Remove.
21116
211172007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
21118
21119 Rewrite abbrev.c in Elisp.
21120 * image.c (Qcount): Don't declare as extern.
21121 (syms_of_image): Initialize and staticpro `Qcount'.
21122 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
21123 * emacs.c (main): Don't call syms_of_abbrev.
21124 * Makefile.in (obj): Remove abbrev.o.
21125 (abbrev.o): Remove.
21126 * abbrev.c: Remove.
21127
211282007-10-26 Martin Rudalics <rudalics@gmx.at>
21129
21130 * window.c (window_min_size_2): Don't count header-line.
21131
211322007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
21133
21134 * frame.h (struct frame): Move all bit fields after the first bit
21135 field to take advantage of the available space. Group all the
21136 chars together to reduce wasted space due to padding.
21137
211382007-10-26 Juanma Barranquero <lekktu@gmail.com>
21139
21140 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
21141
21142 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
21143 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
21144 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
21145 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
21146 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
21147 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
21148 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
21149 (last_marked, mark_object_loop_halt): Make static.
21150
21151 * frame.c (syms_of_frame) <delete-frame-functions>:
21152 Fix typo in docstring.
21153
211542007-10-25 Juanma Barranquero <lekktu@gmail.com>
21155
21156 * w32.c (init_environment): Fix tiny memory leak.
21157 (w32_get_resource): Remove unused variable `ok'.
21158
211592007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
21160
21161 Make `window-system' into a keyboard-local variable (rather than
21162 frame-local as done originally by multi-tty).
21163
21164 * keyboard.h (struct kboard): Add Vwindow_system.
21165 * keyboard.c (init_kboard): Set a default for Vwindow_system.
21166 (mark_kboards): Mark Vwindow_system.
21167
21168 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
21169 (init_display): Don't set the obsolete `window-system' frame-param.
21170
21171 * xterm.c (x_term_init):
21172 * w32term.c (w32_create_terminal):
21173 * term.c (init_tty): Set Vwindow_system.
21174 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
21175 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
21176
21177 * xfns.c (Fx_create_frame, x_create_tip_frame):
21178 * w32fns.c (Fx_create_frame, x_create_tip_frame):
21179 * macfns.c (Fx_create_frame):
21180 Don't set the obsolete `window-system' frame-param.
21181
21182 * frame.h (Qwindow_system): Remove.
21183 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
21184 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
21185
211862007-10-24 Richard Stallman <rms@gnu.org>
21187
21188 * frame.c (x_figure_window_size): For fullscreen case,
21189 set USPosition | PPosition without clobbering rest of window_prompting.
21190
21191 * keyboard.c (Fcurrent_idle_time): Doc fix.
21192
21193 * print.c (Fwith_output_to_temp_buffer): Doc fix.
21194
211952007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
21196
21197 * process.c (unwind_request_sigio): Only define if __ultrix__.
21198
21199 * callproc.c (child_setup): Remove spurious *.
21200
21201 * lisp.h (Fget_text_property): Declare.
21202 (have_menus_p): Declare it here rather than in sys-dep header files.
21203 * macterm.h (have_menus_p):
21204 * msdos.h (have_menus_p):
21205 * xterm.h (have_menus_p): Remove.
21206
21207 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
21208 (Fmake_variable_frame_local): Just check the variable's const-ness
21209 rather than checking nil or t.
21210
212112007-10-22 Jason Rumney <jasonr@gnu.org>
21212
21213 * w32fns.c: Include math.h.
21214 (w32_abort): Declaration moved to nt/config.nt.
21215
21216 * s/ms-w32.h (HAVE_STDLIB_H): Define.
21217 (abort): Redefinition moved to nt/config.nt.
21218
21219 * m/windowsnt.h: Remove.
21220
212212007-10-22 Juanma Barranquero <lekktu@gmail.com>
21222
21223 * emacs.c (Fdump_emacs): Fix typo in message.
21224 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
21225 <installation-directory>: Reflow docstring.
21226
212272007-10-22 Juri Linkov <juri@jurta.org>
21228
21229 * minibuf.c: Allow minibuffer default to be a list of default values.
21230 With empty input use the first element of this list as returned default.
21231 (string_to_object)
21232 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
21233 (read_minibuf): If defalt is cons, set histstring to its car.
21234 (Fread_string): If default_value is cons, set val to its car.
21235 (Fread_buffer): If def is cons, use its car.
21236 (Fcompleting_read): If defalt is cons, set val to its car.
21237
212382007-10-21 Michael Albinus <michael.albinus@gmx.de>
21239
21240 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
21241
212422007-10-20 Juanma Barranquero <lekktu@gmail.com>
21243
21244 * doc.c (Fdocumentation): Check for advice in all cases.
21245
212462007-10-19 Chong Yidong <cyd@stupidchicken.com>
21247
21248 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
21249
212502007-10-19 Richard Stallman <rms@gnu.org>
21251
21252 * doc.c (Fdocumentation): Check for and handle an advised function.
21253
212542007-10-19 Juanma Barranquero <lekktu@gmail.com>
21255
21256 * process.c (Fset_process_filter): Doc fix.
21257
212582007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
21259
21260 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
21261 which caused key-translation-map to applied repeatedly (thus breaking
21262 double-mode).
21263
212642007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
21265
21266 * xselect.c (x_own_selection, x_handle_selection_clear)
21267 (x_clear_frame_selections):
21268 * w32menu.c (list_of_panes, list_of_items):
21269 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
21270 * textprop.c (validate_plist, interval_has_all_properties)
21271 (interval_has_some_properties, interval_has_some_properties_list)
21272 (add_properties, text_property_list):
21273 * process.c (Fget_buffer_process, list_processes_1, status_notify):
21274 * minibuf.c (Fassoc_string):
21275 * macselect.c (x_own_selection, x_clear_frame_selections)
21276 (Fx_disown_selection_internal):
21277 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
21278 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
21279
212802007-10-17 Chong Yidong <cyd@stupidchicken.com>
21281
21282 * process.c: Link to libs for calling res_init() if available.
21283 (Fmake_network_process): Call res_init() before getaddrinfo or
21284 gethostbyname, if possible.
21285
212862007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
21287
21288 * lread.c (read1): Set pvectype for char_tables.
21289
21290 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
21291 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
21292 Add type checks.
21293 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
21294
21295 * alloc.c (free_misc): Use XMISCTYPE.
21296 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
21297
212982007-10-17 Glenn Morris <rgm@gnu.org>
21299
21300 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
21301 (syms_of_minibuf): Add Qcompletion_ignore_case.
21302 * dired.c (Qcompletion_ignore_case): Change to external.
21303 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
21304 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
21305 (Fread_file_name): Use it rather than intern'ing.
21306
21307 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
21308 (Fread_coding_system): Ignore case of user input.
21309
213102007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21311
21312 * xdisp.c (handle_display_prop): Ignore display specs after
21313 replacing one when string text is being replaced.
21314 (handle_single_display_spec): Pretend as if characters with display
21315 property haven't been consumed only when buffer text is being replaced.
21316
213172007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
21318
21319 * xfns.c (Fx_create_frame, Fx_display_list):
21320 * window.c (window_fixed_size_p, enlarge_window)
21321 (shrink_window_lowest_first):
21322 * macterm.c (init_font_name_table):
21323 * macfns.c (Fx_create_frame, Fx_display_list):
21324 * lread.c (close_load_descs):
21325 * keyboard.c (read_char_x_menu_prompt):
21326 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
21327 * coding.c (code_convert_region_unwind): Test the type of an object
21328 rather than just !NILP before extracting data from it.
21329
21330 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
21331
21332 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
21333 (XMISCANY): New macro.
21334 (XMISCTYPE): Use it.
21335 (struct Lisp_Misc_Any): New type.
21336 (union Lisp_Misc): Use it.
21337 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
21338 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
21339 (find_symbol_value, set_internal, default_value, Fset_default)
21340 (Fmake_variable_buffer_local, Fmake_local_variable)
21341 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
21342 (Flocal_variable_if_set_p, Fvariable_binding_locus):
21343 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
21344 * alloc.c (allocate_buffer): Set the size and tag.
21345 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
21346 Use XMISCANY.
21347 (die): Follow the GNU convention for error messages.
21348 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
21349 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
21350 tag any more.
21351 (set_buffer_internal_1):
21352 * frame.c (store_frame_param):
21353 * eval.c (specbind):
21354 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
21355
21356 * doc.c (Fsnarf_documentation): Simplify.
21357
213582007-10-14 Juanma Barranquero <lekktu@gmail.com>
21359
21360 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
21361 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
21362
213632007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
21364
21365 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
21366
213672007-10-14 Juanma Barranquero <lekktu@gmail.com>
21368
21369 * eval.c (do_autoload): Don't save autoloads.
21370
21371 * data.c (Ffset): Save autoload of the function being set.
21372
213732007-10-07 John Paul Wallington <jpw@pobox.com>
21374
21375 * xfns.c (x_create_tip_frame): Set the `display-type' frame
21376 parameter before setting up faces.
21377
213782007-10-13 Eli Zaretskii <eliz@gnu.org>
21379
21380 * ccl.c (Fregister_code_conversion_map):
21381 * keyboard.c (append_tool_bar_item): Reformat last change.
21382
21383 * lisp.h (eabs): Rename from `abs'. All callers changed.
21384
213852007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
21386
21387 * buffer.c (add_overlay_mod_hooklist):
21388 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
21389 * fontset.c (make_fontset):
21390 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
21391 (append_tool_bar_item):
21392 * macmenu.c (grow_menu_items):
21393 * w32menu.c (grow_menu_items):
21394 * xmenu.c (grow_menu_items): Use larger_vector.
21395
213962007-10-13 Eli Zaretskii <eliz@gnu.org>
21397
21398 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
21399 selected frame'' on MSDOS).
21400
214012007-10-12 Martin Rudalics <rudalics@gmx.at>
21402
21403 * frame.c (Qexplicit_name): New variable.
21404 (x_report_frame_params): Report it in parameter alist.
21405 (syms_of_frame): Intern and staticpro it.
21406
214072007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
21408
21409 * macfns.c (x_create_tip_frame): Set terminal for frame.
21410
214112007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
21412
21413 * frame.c (Qenvironment): Remove.
21414 (syms_of_frame) <Qenvironment>: Don't initialize.
21415 (Fdelete_frame): Don't treat the `environment' param specially.
21416 * frame.h (Qenvironment): Don't declare.
21417 * callproc.c (set_initial_environment): Don't set unused frame param.
21418
21419 * frame.c (Fframe_with_environment): Remove.
21420 (syms_of_frame) <Sframe_with_environment>: Don't declare.
21421
21422 * lisp.h (Fframe_with_environment): Don't declare.
21423
214242007-10-10 Juanma Barranquero <lekktu@gmail.com>
21425
21426 * indent.c (indent_tabs_mode, last_known_column)
21427 (last_known_column_modified): Make static.
21428 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
21429
214302007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
21431
21432 * puresize.h (BASE_PURESIZE): Increase to 1170000.
21433
214342007-10-09 Jason Rumney <jasonr@gnu.org>
21435
21436 * w32term.c (x_set_window_size): Disable code that attempts to tell
21437 Lisp code about a size change before it actually happens.
21438
214392007-10-09 Richard Stallman <rms@gnu.org>
21440
21441 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
21442 return HANDLED_RETURN.
21443
214442007-10-08 Martin Rudalics <rudalics@gmx.at>
21445
21446 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
21447 when there's an unread command event.
21448
21449 * frame.c (focus_follows_mouse): Move here from frame.el to allow
21450 window autoselection act appropriately when leaving selected frame.
21451 (syms_of_frame): Initialize focus_follows_mouse.
21452 * frame.h (focus_follows_mouse): Extern it.
21453 * macterm.c (XTread_socket): When focus_follows_mouse is nil
21454 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
21455 * msdos.c (dos_rawgetc): Likewise.
21456 * w32term.c (w32_read_socket): Likewise.
21457 * xterm.c (handle_one_xevent): Likewise.
21458 * xdisp.c (syms_of_xdisp): In doc-string of
21459 mouse-autoselect-window mention focus-follows-mouse.
21460
214612007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21462
21463 * macterm.c (mac_load_query_font): Fix missing return value.
21464 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
21465 Add BLOCK_INPUT.
21466
214672007-10-08 Richard Stallman <rms@gnu.org>
21468
21469 * xdisp.c (get_window_cursor_type): Implement documented behavior
21470 for cursor-in-non-selected-windows = t.
21471
214722007-10-08 Jason Rumney <jasonr@gnu.org>
21473
21474 * w32.c (w32_get_resource): Always close registry keys.
21475
214762007-10-08 Jason Rumney <jasonr@gnu.org>
21477
21478 * makefile.w32-in (LIBS): Add COMCTL32.
21479
21480 * w32fns.c (globals_of_w32fns): Init common controls.
21481
214822007-10-08 Richard Stallman <rms@gnu.org>
21483
21484 * image.c (our_memory_buffer): Rename from omfib_buffer.
21485
214862007-10-08 Richard Stallman <rms@gnu.org>
21487
21488 * buffer.c (Foverlays_at): Doc fix.
21489
214902007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
21491
21492 * fns.c (Fplist_put): Preserve uneven tail data.
21493
214942007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
21495
21496 * termhooks.h (enum event_kind): Remove trailing comma.
21497
21498 * frame.h (enum): Remove trailing comma.
21499
215002007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
21501
21502 * w32proc.c (delete_child): Don't terminate threads of zombies.
21503
215042007-10-08 Martin Rudalics <rudalics@gmx.at>
21505
21506 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
21507
21508 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
21509 last-repeatable-command.
21510 (init_kboard): Initialize Vlast_repeatable_command.
21511 (command_loop_1): Set it to real_this_command unless that was
21512 bound to an input event.
21513 (mark_kboards): Mark it.
21514
215152007-10-08 Richard Stallman <rms@gnu.org>
21516
21517 * eval.c (condition-case): Doc fix.
21518
215192007-10-08 Masatake YAMATO <jet@gyve.org>
21520
21521 * xfaces.c (tty_supports_face_attributes_p): Fix code
21522 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
21523 was copied and not edited.
21524
215252007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
21526
21527 Add new `input-decode-map' keymap and use it for terminal
21528 escape sequences.
21529 * keyboard.h (struct kboard): Add Vinput_decode_map.
21530 Remove Vlocal_key_translation_map.
21531 * keyboard.c (read_key_sequence): Add support for input-decode-map.
21532 (init_kboard): Init input-decode-map.
21533 Replace local-key-translation-map back with key-translation-map.
21534 (syms_of_keyboard): Declare input-decode-map.
21535 Remove local-key-translation-map. Update docstrings.
21536 (mark_kboards): Mark Vinput_decode_map.
21537 Don't mark Vlocal_key_translation_map.
21538 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
21539 Replace local-key-translation-map back with key-translation-map.
21540 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
21541 Bind in input-decode-map rather than function-key-map.
21542
21543 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
21544 This was made redundant by the previous introduction of XSETPVECTYPE.
21545
215462007-10-09 Richard Stallman <rms@gnu.org>
21547
21548 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
21549
215502007-09-29 Richard Stallman <rms@gnu.org>
21551
21552 * eval.c (internal_condition_case_2, internal_condition_case_1)
21553 (internal_condition_case): Reenable abort if x_catching_errors ()
21554 to see if that really happens and why.
21555
215562007-10-06 Andreas Schwab <schwab@suse.de>
21557
21558 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
21559
215602007-10-04 Juanma Barranquero <lekktu@gmail.com>
21561
21562 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
21563
215642007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
21565
21566 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
21567
215682007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
21569
21570 * window.h (struct window):
21571 * window.c (struct save_window_data, struct saved_window):
21572 * termhooks.h (struct terminal):
21573 * process.h (struct Lisp_Process):
21574 * frame.h (struct frame):
21575 * buffer.h (struct buffer):
21576 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
21577 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
21578 The size field of (pseudo)vectors is now unsigned.
21579 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
21580
21581 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
21582 Turn `count' into an integer.
21583
21584 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
21585 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
21586 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
21587 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
21588 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
21589
21590 * alloc.c (allocate_pseudovector): New fun.
21591 (ALLOCATE_PSEUDOVECTOR): New macro.
21592 (allocate_window, allocate_terminal, allocate_frame)
21593 (allocate_process): Use it.
21594 (mark_vectorlike): New function.
21595 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
21596 (mark_terminals): Use it.
21597 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
21598 (Fmake_byte_code): Use XSETPVECTYPE.
21599
21600 * frame.c (Fframe_parameters): Minor simplification.
21601
21602 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
21603
21604 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
21605
21606 * buffer.c (Fget_buffer_create, init_buffer_once):
21607 * lread.c (defsubr):
21608 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
21609
21610 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
21611 defined differently in the m/*.h files.
21612 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
21613 (XSETPVECTYPE): New macro.
21614 (XSETPSEUDOVECTOR): Use it.
21615
21616 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
21617 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
21618
21619 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
21620 * lread.c (defvar_per_buffer):
21621 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
21622
21623 * window.c (candidate_window_p): Only consider as visible frames that
21624 are on the same terminal.
21625
21626 * m/ibms390x.h (MARKBIT): Remove unused macro.
21627
216282007-10-01 Juanma Barranquero <lekktu@gmail.com>
21629
21630 * lread.c (Fload): Fix typo in docstring.
21631
216322007-10-01 Michaël Cadilhac <michael@cadilhac.name>
21633
21634 * floatfns.c (Fexpt): Manually check for overflows, so that a power
21635 of a non-zero value can't yield zero.
21636
216372007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
21638
21639 * term.c (term_clear_mouse_face, term_mouse_highlight)
21640 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
21641
21642 * print.c (safe_debug_print): Use XHASH.
21643
21644 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
21645 Lisp elements such as tags.
21646 (XHASH): New macro.
21647 (EQ): Use it.
21648 (SREF, SSET, STRING_COPYIN): Use SDATA.
21649 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
21650
21651 * alloc.c (mark_terminal): Remove left-over declaration.
21652 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
21653 (allocate_vectorlike): Remove type argument. Adjust callers.
21654 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
21655 Only handle the one remaining MEM_TYPE_VECTORLIKE.
21656
21657 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
21658 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
21659 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
21660 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
21661 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
21662 Use them.
21663
21664 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
21665 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
21666 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
21667
216682007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
21669
21670 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
21671 loaded by default.
21672
216732007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
21674
21675 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
21676 on this tty.
21677 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
21678
21679 * term.c (mouse_face_window): Rename from Qmouse_face_window.
21680 Update all users.
21681 (handle_one_term_event): Use Gpm_DrawPointer.
21682 (Fgpm_mouse_start): Rename from Fterm_open_connection.
21683 Signal errors instead of returning nil. Always return nil.
21684 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
21685 Make it a noop if gpm-mouse was not activated.
21686 (syms_of_term): Update names.
21687
216882007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
21689
21690 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
21691 (init_sys_modes): Check that gpm_tty is the current tty.
21692
21693 * alloc.c (allocate_terminal): Set the vector size to only count the
21694 lisp fields. Initialize those to nil.
21695 (mark_object): Don't treat terminals specially.
21696 (mark_terminal): Remove.
21697 (mark_terminals): Use mark_object instead.
21698
21699 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
21700 the GC to the beginning.
21701
21702 * indent.h:
21703 * indent.c: Use EMACS_INT for ints coming from Elisp data.
21704
21705 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
21706
217072007-09-25 Jason Rumney <jasonr@gnu.org>
21708
21709 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
21710
21711 * w32console.c (create_w32cons_output): Remove.
21712
21713 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
21714
21715 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
21716 (reset_sys_modes): Use reset_terminal_modes_hook.
21717
217182007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
21719
21720 * eval.c (do_autoload): Don't output any message.
21721
217222007-09-24 Juri Linkov <juri@jurta.org>
21723
21724 * emacs.c (standard_args): Change priority of "--no-splash"
21725 from 40 to 3. Add "--no-desktop" with the same priority.
21726
217272007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
21728
21729 * alloc.c (gc_sweep): Check cons cell mark bits word by word
21730 and optimize the case where they are all 1.
21731
217322007-09-23 Johannes Weiner <hannes@saeurebad.de>
21733
21734 * lisp.h (abs): Define if not defined.
21735 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
21736 Don't define `abs', since it's defined in lisp.h.
21737
217382007-09-22 Eli Zaretskii <eliz@gnu.org>
21739
21740 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
21741 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
21742 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
21743 (init_tty): Use DEV_TTY instead of "/dev/tty".
21744 [WINDOWSNT]: No need to protect from NAME arg being null.
21745
217462007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
21747
21748 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
21749 up the tty state.
21750
217512007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
21752
21753 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
21754 (gpm_tty): Change its type.
21755 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
21756 (gpm_tty): Change its type and initialize it.
21757 (Fterm_open_connection): Check the frame is indeed a tty.
21758 Use the new gpm_tty.
21759 (Fterm_close_connection): Use the new gpm_tty.
21760 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
21761 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
21762
217632007-09-21 Juanma Barranquero <lekktu@gmail.com>
21764
21765 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
21766 underline_color, to draw strike-through.
21767
217682007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
21769
21770 * lisp.h (allocate_terminal): Declare.
21771
21772 * window.c (candidate_window_p): Consider frames that are being placed
21773 by the user as somewhere between visible and iconified.
21774 (window_loop): Prefer windows on the current frame.
21775 (Fselect_window): Move the use of select-frame to the beginning so we
21776 can just delegate all the work (it'll call us back anyway).
21777
21778 * frame.c (Qdisplay_environment_variable):
21779 * frame.h (Qdisplay_environment_variable): Delete.
21780
21781 * .gdbinit (xbacktrace): Print the arg's address rather than the value
21782 of the first arg, since that value may be a union.
21783
21784 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
21785 parameter rather than Qdisplay_environment_variable. If all else
21786 fails, look for DISPLAY in initial-environment.
21787
217882007-09-21 Glenn Morris <rgm@gnu.org>
21789
21790 * Makefile.in (emacstool): Remove target.
21791 (lisp, shortlisp): Remove termdev.elc.
21792
217932007-09-21 Markus Triska <markus.triska@gmx.at>
21794
21795 * xterm.c (x_delete_display): Compile session management conditionally.
21796
217972007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
21798
21799 * callproc.c (getenv_internal_1): New function.
21800 (getenv_internal): Use it.
21801 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
21802
21803 * terminal.c (get_terminal): Don't accept ints to represent terminals.
21804 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
21805 (Fset_terminal_parameter): Work with dead terminals as well.
21806 (Fmodify_terminal_parameters): Remove.
21807
21808 * terminal.c (get_terminal): Handle terminals.
21809 Make sure the terminal returned is live.
21810 (create_terminal): Use allocate_terminal.
21811 (mark_terminals): Move to alloc.c.
21812 (delete_terminal): Use terminal->name as liveness status.
21813 NULL out fields after freeing their contents.
21814 Don't deallocate the object.
21815 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
21816 rather than an int.
21817 (Fterminal_live_p): Accept non-integer arguments.
21818 (Fterminal_list): Return terminal objects rather than an ints.
21819
21820 * alloc.c (enum mem_type): New member for `terminal' objects.
21821 (allocate_terminal): New function.
21822 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
21823 Handle terminals.
21824 (mark_terminal): New fun.
21825 (mark_terminals): Move from terminal.c.
21826
21827 * term.c (get_tty_terminal): Don't treat output_initial specially.
21828 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
21829 (delete_tty): Use terminal->name as liveness status.
21830
21831 * termhooks.h (struct terminal): Make it into a pseudovector.
21832 Remove `deleted' replaced by checking `name's nullness.
21833
21834 * print.c (print_object): Handle terminals.
21835
21836 * lisp.h (enum pvec_type): New `terminal' pseudovector.
21837 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
21838
21839 * frame.c (make_terminal_frame):
21840 * keyboard.c (tty_read_avail_input):
21841 * w32term.c (x_delete_terminal):
21842 * xfns.c (Fx_create_frame, x_create_tip_frame):
21843 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
21844
218452007-09-20 Glenn Morris <rgm@gnu.org>
21846
21847 * process.c (Fmake_network_process): Doc fix.
21848
218492007-09-19 Jason Rumney <jasonr@gnu.org>
21850
21851 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
21852
218532007-09-19 Michaël Cadilhac <michael@cadilhac.name>
21854
21855 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
21856 Fix a C warning regarding variable constness.
21857
21858 * xterm.c (handle_one_xevent): Fix a C warning.
21859
218602007-09-18 Jason Rumney <jasonr@gnu.org>
21861
21862 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
21863
218642007-09-17 Jan Djärv <jan.h.d@swipnet.se>
21865
21866 * gtkutil.c (gdpy_def): New variable.
21867 (xg_initialize): Initialize gdpy_def.
21868 (xg_display_close): If no other display exists, set gdpy_def to a
21869 new connection.
21870
218712007-09-16 Jan Djärv <jan.h.d@swipnet.se>
21872
21873 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
21874 when we have no file name for the icon.
21875 (xg_tool_bar_expose_callback): Remove.
21876 (xg_create_tool_bar): Don't connect expose signal to
21877 xg_tool_bar_expose_callback.
21878 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
21879
218802007-09-16 Andreas Schwab <schwab@suse.de>
21881
21882 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
21883 values instead of zapping them.
21884
218852007-09-14 Glenn Morris <rgm@gnu.org>
21886
21887 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
21888 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
21889 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
21890 scope and rename to omfib_buffer for clarity.
21891 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
21892
218932007-09-14 Kenichi Handa <handa@m17n.org>
21894
21895 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
21896
218972007-09-13 Jason Rumney <jasonr@gnu.org>
21898
21899 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
21900
21901 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
21902
21903 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
21904 (mac_term_init): Call here instead, passing rif.
21905
219062007-09-13 Glenn Morris <rgm@gnu.org>
21907
21908 * s/hpux.h: No longer define `static' as nothing.
21909
219102007-09-13 Johan Bockgård <bojohan@gnu.org>
21911
21912 * callint.c (Fcall_interactively): Remove unused var `fun'.
21913
219142007-09-12 Romain Francoise <romain@orebokech.com>
21915
21916 * window.c (prefer_window_split_horizontally, display_buffer):
21917 Revert 2007-09-08 change.
21918
219192007-09-12 Glenn Morris <rgm@gnu.org>
21920
21921 * alloca.c: Remove file.
21922 * Makefile.in (alloca): Do not undef.
21923 (allocaobj, alloca.o): Remove.
21924 (otherobj): Remove allocaobj.
21925 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
21926 * regex.c (C_ALLOCA): Remove all references and code that was only
21927 used when this was defined.
21928 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
21929 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
21930 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
21931
21932 * Makefile.in (SOURCES, unlock, relock): Delete.
21933
21934 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
21935 (menu_grab_callback): All uses changed.
21936
21937 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
21938 (x_reply_selection_request): All uses changed.
21939
219402007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
21941
21942 * lread.c (load_warn_old_style_backquotes): Change message to look
21943 better when it appears in the middle of byte-compiler messages.
21944
219452007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
21946
21947 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
21948
21949 * xterm.c (x_create_terminal): Add comment.
21950
21951 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
21952
219532007-09-10 Richard Stallman <rms@gnu.org>
21954
21955 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
21956
219572007-09-10 Michaël Cadilhac <michael@cadilhac.name>
21958
21959 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
21960 (DEFUN): Document `intspec', use it instead of `prompt'.
21961
21962 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
21963
21964 * data.c (Finteractive_form): If the interactive specification starts
21965 with a `(', use it as a Lisp form.
21966
21967 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
21968 name and file modes.
21969
21970 * callint.c (Fcall_interactively): Comment fixes.
21971
219722007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
21973
21974 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
21975 and compiled functions.
21976
219772007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
21978
21979 * window.c (prefer_window_split_horizontally): New variable.
21980 (display_buffer): Consider splitting window horizontally depending
21981 on prefer_window_split_horizontally.
21982
219832007-09-08 Eli Zaretskii <eliz@gnu.org>
21984
21985 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
21986
219872007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
21988
21989 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
21990
21991 * frame.c (x_set_frame_parameters): Check number is positive before
21992 using XFASTINT.
21993
21994 * window.c (freeze_window_start): Don't presume selected_window holds
21995 a window object.
21996 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
21997
219982007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
21999
22000 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
22001
220022007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
22003
22004 * window.c (Vsplit_window_preferred_function): New var.
22005 (Fdisplay_buffer): Use it.
22006 (syms_of_window): Export, and initialize it.
22007
220082007-09-06 Pixel <pixel@mandriva.com> (tiny change)
22009
22010 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
22011
220122007-09-06 Glenn Morris <rgm@gnu.org>
22013
22014 * gtkutil.c (menu_grab_callback) <cnt>:
22015 * xselect.c (x_reply_selection_request) <cnt>: Move static
22016 variable to file scope.
22017
220182007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
22019
22020 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
22021 consistent values of selected_frame and selected_window.
22022
220232007-09-04 Jason Rumney <jasonr@gnu.org>
22024
22025 * w32console.c (initialize_w32_display): Zero unused hooks.
22026
220272007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
22028
22029 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
22030 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
22031
220322007-09-04 Jason Rumney <jasonr@gnu.org>
22033
22034 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
22035 in w32console.c. Set up input. Remove XXX comments that have been
22036 confirmed as correct.
22037
22038 * s/ms-w32.h (MULTI_KBOARD): Define.
22039
22040 * w32console.c (one_and_only_w32cons): Remove.
22041 (initialize_w32_display): Take terminal argument.
22042
22043 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
22044 initialize_w32_display.
22045 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
22046
22047 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
22048
22049 * keyboard.c (discard_mouse_events): Discard it.
22050 (make_lispy_event): Translate it to a lisp event.
22051 (lispy_wheel_names): Add wheel-left and right events.
22052 (syms_of_keyboard): Enlarge wheel_syms.
22053
22054 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
22055 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
22056
22057 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
22058
22059 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
22060 from WM_MOUSEHWHEEL.
22061 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
22062
22063 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
22064 terminal.
22065
22066 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
22067 keyboard for the terminal.
22068
220692007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
22070
22071 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
22072 (Vresume_tty_hook): Rename from Vresume_tty_functions.
22073 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
22074 and resume-tty-function to resume-tty-hook.
22075 (Fsuspend_tty, Fresume_tty): Use new names.
22076
220772007-09-02 Jan Djärv <jan.h.d@swipnet.se>
22078
22079 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
22080 if it starts with "n:".
22081
220822007-08-31 Jan Djärv <jan.h.d@swipnet.se>
22083
22084 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
22085
220862007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
22087
22088 * frame.h:
22089 * frame.c (Qterm_environment_variable): Remove.
22090 (syms_of_frame): Don't init and staticpro it.
22091
22092 * callproc.c (getenv_internal): Remove special case for $TERM.
22093
22094 * callproc.c (Vinitial_environment): New variable.
22095 (set_initial_environment): Initialize it.
22096 (syms_of_callproc): Declare it.
22097 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
22098 TERM under which a process runs is never related to the TERM in which
22099 Emacs is running.
22100
221012007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
22102
22103 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
22104 * s/darwin.h: ... do it here.
22105
221062007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
22107
22108 * lisp.h (set_initial_environment): Rename from set_global_environment.
22109
22110 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
22111 removed by mistake on the multi-tty branch.
22112
22113 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
22114 (Fmodify_frame_parameters): Return a value.
22115
22116 * image.c (png_load): Comment-out var only used in commented-out code.
22117
22118 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
22119 before passing it to mark_object.
22120
22121 * xfaces.c (internal_resolve_face_name): Return a value.
22122 (internal_resolve_face_name, resolve_face_name_error): Comment out.
22123
22124 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
22125 (x_icon): Comment-out var only used in commented-out code.
22126
221272007-08-29 Romain Francoise <romain@orebokech.com>
22128
22129 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
22130 QUIT hasn't been provided.
22131
221322007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
22133
22134 * callproc.c (child_setup, getenv_internal): Use the
22135 display-environment-variable and term-environment-variable frame params.
22136 (set_initial_environment): Initialise Vprocess_environment.
22137
22138 * config.in: Disable multi-keyboard support on a mac.
22139
22140 * frame.c (Qterm_environment_variable)
22141 (Qdisplay_environment_variable): New variables.
22142 (syms_of_frame): Intern and staticpro them.
22143 (Fmake_terminal_frame): Disable output method test.
22144
22145 * frame.h: Declare them here.
22146
22147 * macfns.c (x_set_mouse_color): Get rif from the frame.
22148 (x_set_tool_bar_lines): Don't use updating_frame.
22149 (mac_window): Add 2 new parameters for consistency with other systems.
22150 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
22151 frame parameters following what is done in X11 and w32. Don't use
22152 FRAME_MAC_DISPLAY_INFO.
22153 (Fx_open_connection, start_hourglass): Remove window-system check.
22154 (x_create_tip_frame): Get the keyboard from the terminal.
22155
22156 * macmenu.c: Reorder includes.
22157 (Fx_popup_menu): Use terminal specific mouse_position_hook.
22158
22159 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
22160 terminal parameter.
22161 (x_clear_frame): Add a frame parameter.
22162 (note_mouse_movement): Get rif from the frame.
22163 (mac_term_init): Initialize the terminal.
22164 (mac_initialize): Make static and move terminal initialization ...
22165 (mac_create_terminal): ... to this new function.
22166
22167 * macterm.h (struct mac_display_info): Add terminal.
22168 (mac_initialize): Delete declaration.
22169
22170 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
22171
22172 * sysdep.c: Comment out text after #endif.
22173
22174 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
22175 is defined. Better initialize ttys in windows. Use terminal
22176 specific mouse_position_hook.
22177
22178 * termhooks.h (union display_info): Add mac_display_info.
22179
22180 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
22181 Set the default minibuffer frame, window_system and the rest of the
22182 frame parameters following what is done in X11.
22183
22184 * w32term.c (w32_initialize): Make static.
22185
22186 * xselect.c (x_handle_selection_clear): Only access
22187 terminal->kboard when MULTI_KBOARD is defined.
22188
22189 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
22190 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
22191
221922007-08-29 Jason Rumney <jasonr@gnu.org>
22193
22194 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
22195 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
22196
22197 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
22198 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
22199
22200 * keyboard.c (restore_kboard_configuration): Only define when
22201 MULTI_KBOARD defined.
22202
22203 * makefile.w32-in: Update dependancies from Makefile.in.
22204 (OBJ1): Add terminal.$(O)
22205
22206 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
22207 Don't define function body.
22208 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
22209
22210 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
22211
22212 * w32.c (request_sigio, unrequest_sigio): Remove.
22213
22214 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
22215 (w32con_clear_frame, w32con_clear_end_of_line)
22216 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
22217 (w32con_delete_glyphs, w32con_set_terminal_window)
22218 (scroll_line, w32_sys_ring_bell): Add frame arg.
22219 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
22220 Add terminal arg.
22221 (PICK_FRAME): Remove.
22222 (w32con_write_glyphs): Use frame specific terminal coding.
22223 (one_and_only_w32cons): New global variable.
22224 (initialize_w32_display): Use it for storing hooks.
22225 (create_w32cons_output): New function.
22226
22227 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
22228 arg a frame.
22229
22230 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
22231 Set window_system.
22232 (x_set_tool_bar_lines): Don't use updating_frame.
22233 (Fx_create_frame): Set terminal and ref count.
22234 (Fx_open_connection): Remove window-system check.
22235
22236 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
22237
22238 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
22239 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
22240 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
22241 Add frame arg.
22242 (x_delete_terminal, w32_create_terminal): New functions.
22243 (w32_term_init): Create a terminal.
22244 (w32_initialize): Move terminal specific initialization to
22245 w32_create_terminal.
22246
22247 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
22248 (w32_clear_rect, w32_clear_area): Use background from frame.
22249 (w32_display_info): Add terminal.
22250 (w32_sys_ring_bell, x_delete_display): Declare here.
22251
22252 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
22253
22254 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
22255
222562007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
22257
22258 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
22259 Fix get_named_tty calls for the controlling tty.
22260
222612007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
22262
194d44e7 22263 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
22264
222652007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
22266
22267 * term.c (tty_insert_glyphs): Add missing first parameter.
22268
222692007-08-29 Károly Lőrentey <karoly@lorentey.hu>
22270
22271 * buffer.c (Fbuffer_list, Fbury_buffer):
22272 Take frame->buried_buffer_list into account.
22273
22274 * cm.c (current_tty): New variable, for cmputc().
22275 (cmputc): Use it.
22276 (cmcheckmagic): Add tty parameter, look up terminal streams there.
22277 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
22278 (cmgoto): Add tty parameter. Pass it on to calccost().
22279 Use emacs_tputs() instead of tputs().
22280
22281 * cm.h (emacs_tputs): New macro to set current_tty, and then call
22282 tputs().
22283 (current_tty): New variable, for cmputc().
22284 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
22285
22286 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
22287 (internal_condition_case, internal_condition_case_1)
22288 (internal_condition_case_2): Don't abort when x_catching_errors.
22289
22290 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
22291 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
22292 prevent crashes caused by bogus longjmps in read_char.
22293
22294 * keymap.h (Fset_keymap_parent): Add EXFUN.
22295
22296 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
22297 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
22298 Remove redundant definition.
22299
22300 * macfns.c (x_set_mouse_color, x_make_gc):
22301 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22302
22303 * w32term.c (x_free_frame_resources):
22304 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22305 (w32_initialize): Use the accessor macros for terminal characteristics.
22306
22307 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
22308 Use the accessor macros for terminal characteristics.
22309 * msdos.c (internal_terminal_init): Use the accessor macros for
22310 terminal characteristics.
22311 (ScreenVisualBell, internal_terminal_init):
22312 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22313
22314 * termopts.h (no_redraw_on_reenter): Declare.
22315
22316 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
22317 (mark_terminals, mark_ttys): Declare.
22318 (Fgarbage_collect): Call them.
22319 (mark_object): Mark buried_buffer_list.
22320
22321 * prefix-args.c: Include stdlib.h for exit.
22322
22323 * syssignal.h: Add comment.
22324
22325 * indent.c: Include stdio.h.
22326
22327 * window.h (Vinitial_window_system): Declare.
22328 (Vwindow_system): Delete declaration.
22329
22330 * fontset.c (Finternal_char_font): Use FRAME_RIF.
22331
22332 * image.c (lookup_image): Don't initialize `c' until the xasserts
22333 have been run.
22334
22335 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
22336 FRAME_FOREGROUND_PIXEL.
22337
22338 * print.c (print_preprocess): Don't lose print_depth levels while
22339 iterating.
22340
22341 * widget.c (update_from_various_frame_slots):
22342 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22343
22344 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
22345 frames.
22346 (window_internal_height): Remove bogus make_number call.
22347 (init_window_once): Call make_terminal_frame with two zero parameters.
22348
22349 * fileio.c (Fread_file_name): Update comment.
22350
22351 * callint.c (Fcall_interactively):
22352 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
22353 Make sure it is correctly unwound.
22354
22355 * xsmfns.c (x_session_close): New function.
22356
22357 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
22358 Delete declarations.
22359
22360 * xterm.h: Remove declaration for x_fully_uncatch_errors.
22361 (x_output): Remove background_pixel and foreground_pixel fields.
22362 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
22363 (x_delete_device, x_session_close): Declare.
22364
22365 * lread.c: Include setjmp.h. Update declaration of `read_char'.
22366 (read_filtered_event): Call `read_char' with a local
22367 `wrong_kboard_jmpbuf'.
22368
22369 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
22370 Don't call single_kboard_state. Use FRAME_RIF.
22371
22372 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
22373 systems.
22374
22375 * lisp.h (set_process_environment): Rename to `set_global_environment'.
22376 (Fframe_with_environment, Fset_input_meta_mode)
22377 (Fset_quit_char): EXFUN.
22378 (x_create_device, tty_output, terminal, tty_display_info): Declare.
22379 (init_sys_modes, reset_sys_modes): Update prototypes.
22380 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
22381
22382 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
22383 Vlocal_key_translation_map, and Vkeyboard_translate_table.
22384 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
22385 Delete declarations.
22386 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
22387 (temporarily_switch_to_single_kboard, tty_read_avail_input):
22388 New declarations.
22389
22390 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
22391 already does that during init_display(). Call syms_of_keymap
22392 before syms_of_keyboard. Call `syms_of_terminal'.
22393 Call set_initial_environment, not set_process_environment.
22394 (shut_down_emacs): Call reset_all_sys_modes() instead of
22395 reset_sys_modes().
22396
22397 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
22398 (internal_resolve_face_name, resolve_face_name_error): New functions.
22399 (resolve_face_name): Protect against loops and errors thrown by Fget.
22400 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
22401 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
22402
22403 * scroll.c: Replace CURTTY() with local variables throughout the
22404 file (where applicable).
22405 (calculate_scrolling, calculate_direct_scrolling)
22406 (scrolling_1, scroll_cost): Use the accessor macros for terminal
22407 characteristics.
22408
22409 * keymap.c (Vfunction_key_map): Remove.
22410 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
22411 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
22412 (Vkey_translation_map): Remove.
22413 (syms_of_keymap): Remove DEFVAR for key-translation-map.
22414 (Fdescribe_buffer_bindings)
22415 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
22416 Update for terminal-local key-translation-map.
22417
22418 * Makefile.in (callproc.o): Update dependencies.
22419 (lisp, shortlisp): Add termdev.elc.
22420 (obj): Add terminal.o.
22421 (terminal.o): Add dependencies.
22422 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
22423 (data.o, fns.o): Add termhooks.h dependency.
22424 (SOME_MACHINE_LISP): Add dnd.elc.
22425 (minibuf.o): Fix typo.
22426 Update dependencies.
22427
22428 * data.c (do_symval_forwarding, store_symval_forwarding)
22429 (find_symbol_value): Use the selected frame's keyboard, not
22430 current_kboard.
22431
22432 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
22433 Vwindow_system.
22434
22435 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
22436 Fmenu_bar_open.
22437 (syms_of_xmenu): Update defsubr.
22438 (mouse_position_for_popup, Fx_popup_menu)
22439 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
22440 (set_frame_menubar, free_frame_menubar)
b97439ce 22441 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
22442 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
22443 an X frame.
22444
22445 * xselect.c (x_own_selection): Abort if not an X frame.
22446 (some_frame_on_display): Check if it is an X frame.
22447 (x_handle_selection_clear): Deal with MULTI_KBOARD.
22448
22449 * coding.c: Include frame.h and termhooks.h.
22450 (terminal_coding, keyboard_coding): Delete.
22451 (Fset_terminal_coding_system_internal)
22452 (Fset_keyboard_coding_system_internal)
22453 (Fkeyboard_coding_system)
22454 (Fterminal_coding_system): Add a terminal parameter.
22455 Get terminal_coding from the terminal.
22456 (init_coding_once): Don't call setup_coding_system here.
22457
22458 * dispextern.h (set_scroll_region, turn_off_insert)
22459 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
22460 (tty_clear_end_of_line, tty_setup_colors)
22461 (delete_tty, updating_frame)
22462 (produce_special_glyphs, produce_glyphs, write_glyphs)
22463 (insert_glyphs): Remove.
22464 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
22465 (tty_turn_off_highlight, get_tty_size): Add declaration.
22466 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
22467
22468 * frame.h (enum output_method): Add output_initial.
22469 (struct x_output): Delete.
22470 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
22471 Access foreground_pixel and background_pixel directly from the frame.
22472 (tty_display): Delete.
22473 (struct frame): Add buried_buffer_list, foreground_pixel,
22474 background_pixel and terminal. Delete kboard.
22475 (union output_data): Add tty.
22476 (FRAME_KBOARD): Get the kboard from the terminal.
22477 (FRAME_INITIAL_P): New macro.
22478 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
22479 (Qterm_environment_variable, Qdisplay_environment_variable)
22480 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
22481 New declarations.
22482
22483 * termchar.h (tty_output, tty_display_info): New structures.
22484 (tty_list): Declare.
22485 (FRAME_TTY, CURTTY): New macros.
22486 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
22487 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
22488 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
22489 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
22490
22491 * callproc.c: Include frame.h and termhooks.h, for terminal
22492 parameters.
22493 (add_env): New function.
22494 (child_setup): Use it.
22495 (child_setup, getenv_internal): Handle the new Vprocess_environment.
22496 (getenv_internal): Fix get_terminal_param call.
22497 (Fgetenv_internal, egetenv): Update doc.
22498 (syms_of_callproc): Initialize Vprocess_environment to nil.
22499 Register and initialize them. Remove obsolete defvars. Update doc
22500 strings.
22501 (child_setup): Handle Vlocal_environment_variables.
22502 (getenv_internal): Add terminal parameter.
22503 Handle Vlocal_environment_variables.
22504 (Fgetenv_internal): Add terminal parameter.
22505 (child_setup, getenv_internal, Fgetenv_internal): Store the local
22506 environment in a frame (not terminal) parameter. Update doc strings.
22507 (set_initial_environment): Rename from set_global_environment.
22508 Store Emacs environment in initial frame parameter.
22509
22510 * xdisp.c (redisplay_internal): Update references to
22511 `previous_terminal_frame'.
22512 (display_mode_line, Fformat_mode_line): Replace calls to
22513 `push_frame_kboard' with `push_kboard'.
22514 (get_glyph_string_clip_rects): Add extra parentheses and
22515 braces to prevent compiler warnings.
22516 (calc_pixel_width_or_height): Add xassert to check that the
22517 frame is alive. Don't call `lookup_image' on a termcap frame.
22518 (message2_nolog, message3_nolog, redisplay_internal)
22519 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
22520 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
22521 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
22522 (Fx_display_pixel_width, Fx_display_pixel_height)
22523 (Fx_display_planes, Fx_display_color_cells)
22524 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
22525 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
22526 (Fx_display_backing_store, Fx_display_visual_class)
22527 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
22528 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
22529
22530 * xfns.c (x_set_foreground_color x_set_background_color)
22531 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
22532 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22533 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
22534 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
22535 terminal that is being deleted.
22536 (Fx_create_frame): Use `store_frame_param' to set `window-system'
22537 frame parameter, and make sure it overrides any user-supplied setting.
22538 (Fx_close_connection, Fx_synchronize): Unify argument names with
22539 the rest of the DEFUNs.
22540
22541 * dispnew.c (Fsend_string_to_terminal): Update call to
22542 `get_tty_terminal'.
22543 (Fredraw_frame, Fsend_string_to_terminal)
22544 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
22545 FRAME_TERMCAP_P and FRAME_TTY.
22546 (window_change_signal): Don't believe width/height values that are
22547 impossibly small.
22548 (Vinitial_window_system): Rename from Vwindow_system.
22549 (termscript, Wcm, rif): Delete.
22550
22551 * termhooks.h (struct terminal): New struct containing the
22552 previously global text display hooks and new members NAME,
22553 DELETED and PARAM_ALIST.
22554 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
22555 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
22556 (FRAME_RIF): New macros.
22557 (get_terminal_param, get_device): New declarations.
22558 (termscript): Delete declaration.
22559
22560 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
22561 (XTflash, x_free_frame_resources, x_scroll_bar_create)
22562 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
22563 FRAME_FOREGROUND_PIXEL.
22564 (x_fully_uncatch_errors): Disable definition.
22565 (x_scroll_bar_expose): Fix reference to foreground pixel.
22566 (XTread_socket): Disable loop on all X displays.
22567 (x_delete_terminal): Don't set terminal->deleted and let
22568 delete_terminal delete the frames on the terminal.
22569 (x_delete_display): Doc update to reflect changes in
22570 delete_terminal.
22571 (x_display_info) <terminal>: Move member earlier in the struct.
22572 (deleting_tty): Remove old variable.
22573 (Fsuspend_tty): Call clear_tty_hooks.
22574 (Fresume_tty, init_tty): Call set_tty_hooks.
22575 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
22576 errors on X frames.
22577 (x_catch_errors_unwind): Abort if x_error_message is NULL.
22578 (handle_one_xevent): Initialize `f' to NULL.
22579 (x_delete_terminal, x_create_terminal): New functions.
22580 (XTset_terminal_modes, XTreset_terminal_modes)
22581 (XTread_socket, x_connection_closed, x_term_init)
22582 (x_term_init, x_delete_display): Add terminal parameter.
22583 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
22584 X connections.
22585
22586 * frame.c: Include termchar.h.
22587 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
22588 (Qwindow_system, Qenvironment, Qterm_environment_variable)
22589 (Qdisplay_environment_variable): New vars.
22590 (Fframep): Deal with output_initial.
22591 (Fframe-live-p): Doc fix.
22592 (Fwindow-system): New function.
22593 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
22594 (make_terminal_frame): Don't create frames on a terminal that is
22595 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22596 (store_frame_param): Check for found_for_frame before calling XFRAME.
22597 (Fmake_terminal_frame): Handle NULL tty names correctly.
22598 (syms_of_frame): Enhance doc string of `default-frame-alist'.
22599 (Fdelete_frame): Remove unused variable `count'. Don't allow other
22600 frames to refer to a deleted frame in their 'environment parameter.
22601 (Fframe_with_environment): New function.
22602 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
22603 (get_future_frame_param): New function.
22604 (Fmake_terminal_frame): Use it.
22605 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
22606
22607 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
22608 * sysdep.c (reset_sys_modes): Update for renames.
22609
22610 * keyboard.c (tty_read_avail_input): New function.
22611 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
22612 (syms_of_keyboard): Defsubr them.
22613 (Fset_input_meta_mode, Fset_quit_char): New functions.
22614 (Fset_input_mode): Split to above functions.
22615 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
22616 parameter. Use it in call to `read_char'.
22617 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
22618 Set wrong_kboard_jmpbuf correctly in recursive calls.
22619 Use current_kboard to access Vkeyboard_translate_table.
22620 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
22621 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
22622 Update longjmp invocations. Remember the original current_kboard,
22623 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
22624 changes it. Comment out unnecessary calls to
22625 `record_single_kboard_state' and `any_kboard_state'.
22626 Update recursive calls.
22627 (wrong_kboard_jmpbuf): Remove global variable.
22628 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
22629 Handle deleted interrupted_kboards correctly; that is a legal
22630 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
22631 and read_char calls. Abort if interrupted_kboard died in read_char.
22632 (any_kboard_state, single_kboard_state)
22633 (push_frame_kboard): Remove function.
22634 (pop_kboard): Switch out of single_kboard mode if the kboard has
22635 been deleted. Remove unused variable. Help debugging by not
22636 changing current_kboard unnecessarily. Set current_kboard to the
22637 kboard of the selected frame when the stored kboard object has
22638 been deleted before pop_kboard.
22639 (temporarily_switch_to_single_kboard): Change first parameter to a
22640 frame pointer. Throw an error when caller wants to change kboards
22641 while in single_kboard mode. Don't push_kboard if we weren't in
22642 single kboard state. Don't pop_kboard if we popped into any
22643 kboard state.
22644 (restore_kboard_configuration): Abort if pop_kboard changed the
22645 kboard in single_kboard mode. Call pop_kboard only after setting
22646 up single_kboard mode.
22647 (Frecursive_edit): Switch to single_kboard mode only in nested
22648 command loops.
22649 (cmd_error, command_loop, command_loop_1, timer_check):
22650 Comment out unnecessary call to `any_kboard_state' and
22651 `record_single_kboard_state'.
22652 (delete_kboard): Exit single_kboard mode if we have just deleted
22653 that kboard. Use FRAME_KBOARD.
22654 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
22655 `fatal_error_signal'.
22656 (record_single_kboard_state): Don't push_kboard if we weren't in
22657 single kboard state. Don't pop_kboard if we popped into any
22658 kboard state.
22659 (push_frame_kboard): Rename to push_kboard.
22660 (kbd_buffer_get_event): Use FRAME_TERMINAL.
22661 (read_avail_input): Read input from all terminals.
22662 (mark_kboards): Also mark Vkeyboard_translate_table.
22663 (kbd_buffer_store_event_hold): Simplify condition.
22664 (read_key_sequence): Reinitialize fkey and keytran at each replay.
22665 (Vkeyboard_translate_table): Move to struct kboard.
22666 (init_kboard): Initialize Vkeyboard_translate_table.
22667 (syms_of_keyboard): Use DEFVAR_KBOARD to define
22668 Vkeyboard_translate_table. Update doc strings. Update docs of
22669 local-function-key-map and function-key-map.
22670
22671 * terminal.c: New file.
22672
22673 * term.c: Include errno.h.
22674 (Vring_bell_function, device_list, initial_device)
22675 (next_device_id, ring_bell, update_begin, update_end)
22676 (set_terminal_window, cursor_to, raw_cursor_to)
22677 (clear_to_end, clear_frame, clear_end_of_line)
22678 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
22679 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
22680 (syms_of_term): Move their initialization to terminal.c.
22681 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
22682 (Ftty_display_color_cells)
22683 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
22684 (clear_tty_hooks, set_tty_hooks)
22685 (init_tty, maybe_fatal): New functions.
22686 (Ftty_type): Return nil if terminal is not on a tty instead of
22687 throwing an error. Doc update.
22688 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
22689 Doc update. Initialize new subrs and variables.
22690 (delete_tty): Use terminal->deleted.
22691 (tty_set_terminal_modes): Rename from set_terminal_modes.
22692 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
22693 (set_scroll_region): Rename to `tty_set_scroll_region'.
22694 (turn_on_insert): Rename to `tty_turn_on_insert'.
22695 (turn_off_insert): Rename to `tty_turn_off_insert'.
22696 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
22697 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
22698 (toggle_highligh): Rename to `tty_toggle_highlight'.
22699 (background_highlight): Rename to `tty_background_highlight'.
22700 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
22701 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
22702 (tty_set_scroll_region, tty_background_highlight)
22703 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
22704 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
22705 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
22706 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
22707 Add static modifier.
22708 (tty_reset_terminal_modes, tty_set_terminal_window)
22709 (tty_set_scroll_region, tty_background_highlight)
22710 (tty_highlight_if_desired, tty_cursor_to)
22711 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
22712 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
22713 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
22714 renames.
22715
227162007-08-28 Jan Djärv <jan.h.d@swipnet.se>
22717
22718 * keyboard.c: Qrtl is new.
22719 (parse_tool_bar_item): Handle :rtl keyword.
22720 (syms_of_keyboard): Intern :rtl keyword.
22721
22722 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
22723
22724 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
22725 so no Lisp code is executed.
22726 (file_for_image, find_rtl_image): New functions.
22727 (xg_get_image_for_pixmap): Use file_for_image.
22728 (update_frame_tool_bar): If direction is RTL, use RTL image if
22729 defined. Use Gtk stock images if defined.
22730
227312007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22732
22733 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
22734 for nonexistent or zero-width glyph in composition glyph.
22735
227362007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
22737
22738 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
22739
22740 * xdisp.c (Finvisible_p): New function.
22741 (syms_of_xdisp): defsubr it.
22742
227432007-08-24 Juanma Barranquero <lekktu@gmail.com>
22744
22745 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
22746 Doc fixes.
22747
227482007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22749
22750 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
22751
227522007-08-24 Martin Rudalics <rudalics@gmx.at>
22753
22754 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
22755 whether decoding has modified buffer contents.
22756
227572007-08-24 Jason Rumney <jasonr@gnu.org>
22758
22759 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
22760 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
22761 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
22762 (init_svg_functions) [HAVE_NTGUI]: New function.
22763 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
22764 (svg_load_image): Use them.
22765 (svg_load_image) [HAVE_NTGUI]: Implement background.
22766
227672007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22768
22769 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
22770 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
22771 (LIBX): Remove @RSVG_LIBS@.
22772 (LIBES): Add $(RSVG_LIBS).
22773
22774 * image.c (svg_load_image): Blend with specified background if exists.
22775 Use IMAGE_BACKGROUND. Add Mac OS Support.
22776
22777 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
22778 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
22779 Remove macros.
22780 [MAC_OSX] (socket_callback): Do nothing.
22781 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
22782 ReceiveNextEvent.
22783 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
22784 socket_callback.
22785 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
22786
227872007-08-22 Glenn Morris <rgm@gnu.org>
22788
22789 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
22790
227912007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
22792
22793 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
22794
22795 * image.c: Add support for SVG images. Some additional comments
22796 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
22797 (svg_image_p): New function to test for SVG image.
22798 (svg_load): New function to load SVG image.
22799 (svg_load_image): New function, helper for svg_load.
22800 (Qsvg): New Lisp_object.
22801 (svg_keyword_index): New enum.
22802 (svg_format): New static `image_keyword' struct.
22803 (svg_type): New static `image_type' struct.
22804 (librsvg/rsvg.h): Include it.
22805
228062007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
22807
22808 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
22809
228102007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
22811
22812 * lread.c (Qold_style_backquotes): New var.
22813 (syms_of_lread): Init and staticpro it.
22814 (load_warn_old_style_backquotes): New fun.
22815 (Fload): Use them to warn about old style backquotes.
22816 (end_of_file_error, Fload): Remove unused vars.
22817
22818 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
22819
22820 * lread.c (Vold_style_backquotes): New var.
22821 (syms_of_lread): Init and export it to Elisp.
22822 (read1): Set it when we find an old-style (back)quote.
22823
228242007-08-22 Jason Rumney <jasonr@gnu.org>
22825
22826 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
22827
228282007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
22829
22830 * puresize.h (BASE_PURESIZE): Increase to 1140000.
22831
228322007-08-19 Richard Stallman <rms@gnu.org>
22833
22834 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
22835
228362007-08-19 Andreas Schwab <schwab@suse.de>
22837
22838 * alloc.c (pure): Round PURESIZE up.
22839
228402007-08-17 Jan Djärv <jan.h.d@swipnet.se>
22841
22842 * xterm.c (handle_one_xevent): Remove check that mouse click is in
22843 active frame.
22844
228452007-08-16 Richard Stallman <rms@gnu.org>
22846
22847 * eval.c (Fcommandp): Add parens to clarify.
22848
22849 * minibuf.c (Fall_completions): Use enum for type of table.
22850
22851 * emacs.c (USAGE2): Improve text.
22852
228532007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
22854
22855 * term.c (tty_default_color_capabilities): Declare static
22856 variables in file scope, to avoid HPUX compiler problem.
22857
228582007-08-13 Jan Djärv <jan.h.d@swipnet.se>
22859
22860 * gtkutil.c (update_frame_tool_bar): Use -1 as index
22861 to gtk_toolbar_insert.
22862
228632007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
22864
22865 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
22866
22867 * insdel.c (reset_var_on_error): New fun.
22868 (signal_before_change, signal_after_change):
22869 Use it to reset (after|before)-change-functions to nil in case of error.
22870 Bind inhibit-modification-hooks to t.
22871 Don't bind (after|before)-change-functions to nil while they run.
22872
228732007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22874
22875 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
22876 filling pixmap with stippled background.
22877
228782007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22879
22880 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
22881 Don't use invisible frame as parent window for repositioning.
22882
228832007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
22884
22885 * print.c (new_backquote_output): Rename from old_backquote_output.
22886 (print): Inverse its logic (according to its name) so as to match the
22887 behavior of new_backquote_flag in lread.c.
22888
228892007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22890
22891 * gmalloc.c (posix_memalign): New function.
22892
22893 * macterm.c (frame_highlight, frame_unhighlight): Don't call
22894 ActivateControl/DeactivateControl here.
22895 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
22896 frame-notice-user-settings is non-nil.
22897 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
22898 for kEventParamFMFontStyle.
22899 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
22900 mac_pass_command_to_system and mac_pass_control_to_system here.
22901 (XTread_socket): Call ActivateControl/DeactivateControl here.
22902 (XTread_socket) [TARGET_API_MAC_CARBON]:
22903 Check mac_pass_command_to_system and mac_pass_control_to_system here.
22904 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
22905 for window repositioning.
22906
229072007-08-08 Glenn Morris <rgm@gnu.org>
22908
22909 * Replace `iff' in doc-strings and comments.
22910
229112007-08-07 Chong Yidong <cyd@stupidchicken.com>
22912
22913 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
22914
229152007-08-07 Martin Rudalics <rudalics@gmx.at>
22916
22917 * fileio.c (Finsert_file_contents): Run format-decode and
22918 after_insert_file_functions on entire buffer when REPLACE is
22919 non-nil and inhibit modification_hooks and point_motion_hooks.
22920 For consistency, run after_insert_file_functions iff something
22921 got inserted. Move signal_after_change and update_compositions
22922 after code running after_insert_file_functions. Make sure that
22923 undo_list doesn't record intermediate steps of the decoding process.
22924
229252007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22926
22927 * emacs.c (main)
22928 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
22929 Call malloc_enable_thread on interactive startup.
22930
22931 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
22932 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
22933 [USE_PTHREAD]: Conditionalize with it.
22934 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
22935 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
22936 New functions.
22937
229382007-08-06 Chong Yidong <cyd@stupidchicken.com>
22939
22940 * xdisp.c (redisplay_window): When restoring original buffer
22941 position, make sure it is still valid.
22942
22943 * image.c (png_load): Ignore png-supplied background color.
22944
229452007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22946
22947 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
22948 Use kCFAbsoluteTimeIntervalSince1970.
22949
22950 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
22951 New variable.
22952 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
22953 event loop should be quit.
22954 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
22955 Quit dialog event loop if quit_dialog_event_loop is set.
22956
22957 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
22958 (Selection): New typedef. Use instead of ScrapRef.
22959 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
22960 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
22961 (mac_clear_selection): Rename from clear_scrap.
22962 (get_flavor_type_from_symbol): New argument SEL and subsume function of
22963 scrap_has_target_type. All uses changed.
22964 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
22965 (mac_selection_has_target_p): New functions.
22966 (mac_put_selection_value): Rename from put_scrap_string.
22967 (mac_get_selection_value): Rename from get_scrap_string.
22968 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
22969 (put_scrap_private_timestamp, scrap_has_target_type)
22970 (get_scrap_private_timestamp): Remove functions.
22971 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
22972 (x_own_selection, x_get_local_selection):
22973 Use mac_valid_selection_value_p.
22974 (x_own_selection): Don't use put_scrap_private_timestamp.
22975 Record OWNERSHIP-INFO into Vselection_alist instead.
22976 (x_get_local_selection): Don't check type if request is local.
22977 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
22978 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
22979
229802007-08-04 Jan Djärv <jan.h.d@swipnet.se>
22981
22982 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
22983 add comment explaining why.
22984
229852007-08-03 Richard Stallman <rms@gnu.org>
22986
22987 * fileio.c (Fvisited_file_modtime): Use make_time.
22988
229892007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
22990
22991 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
22992 build.
22993
229942007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
22995
22996 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
22997
229982007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
22999
23000 * puresize.h (BASE_PURESIZE): Increase to 1130000.
23001
230022007-07-30 Richard Stallman <rms@gnu.org>
23003
23004 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
23005
230062007-07-29 Jan Djärv <jan.h.d@swipnet.se>
23007
23008 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
23009
230102007-07-28 Nick Roberts <nickrob@snap.net.nz>
23011
23012 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
23013 remote default-directory.
23014
23015 * buffer.c (mode-line-format): Update doc string.
23016
230172007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23018
23019 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
23020 scroll bar gap.
23021 (x_scroll_bar_create): Set bar->fringe_extended_p.
23022 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
23023 on frame edge. Check fringe background extension. Don't clear
23024 extended fringe background area.
23025
23026 * w32term.h (struct scroll_bar): New member fringe_extended_p.
23027 (w32_fill_area): Enclose multiple statements with do ... while (0).
23028
23029 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
23030 Extend fringe background to scroll bar gap.
23031 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
23032 Set bar->fringe_extended_p.
23033 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
23034 Put leftmost/rightmost scroll bars on frame edge. Check fringe
23035 background extension. Don't clear extended fringe background area.
23036
23037 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
23038 New member fringe_extended_p.
23039
230402007-07-25 Glenn Morris <rgm@gnu.org>
23041
23042 * Relicense all FSF files to GPLv3 or later.
23043
23044 * COPYING: Switch to GPLv3.
23045
230462007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
23047
23048 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
23049
23050 * data.c (Finteractive_form): Check for the presence of an
23051 `interactive-form' symbol property more thoroughly.
23052
23053 * data.c (Finteractive_form): Use an `interactive-form' property if
23054 present, analogous to the function-documentation property.
23055
230562007-07-24 Jason Rumney <jasonr@gnu.org>
23057
23058 * w32fns.c (x_real_positions): Get real position from OS instead of
23059 calculating it.
23060
230612007-07-23 Jason Rumney <jasonr@gnu.org>
23062
23063 * filelock.c (current_lock_owner): Allow for @ sign in username.
23064
230652007-07-22 Nick Roberts <nickrob@snap.net.nz>
23066
23067 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
23068 remote default-directory.
23069
23070 * buffer.c (mode-line-format): Describe above case in doc string.
23071
230722007-07-20 Eli Zaretskii <eliz@gnu.org>
23073
23074 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
23075 Define if not defined.
23076
230772007-07-18 Jason Rumney <jasonr@gnu.org>
23078
23079 * w32proc.c (w32_executable_type): Handle 64 bit executables.
23080
230812007-07-18 Richard Stallman <rms@gnu.org>
23082
23083 * data.c (Fsetq_default): Doc fix.
23084
23085 * eval.c (Fsetq): Doc fix.
23086
230872007-07-18 Juanma Barranquero <lekktu@gmail.com>
23088
23089 * coding.c (Ffind_operation_coding_system):
23090 * eval.c (For, Fand): Doc fixes.
23091 Reported by Johan Bockgård.
23092
230932007-07-18 Jan Djärv <jan.h.d@swipnet.se>
23094
23095 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
23096
23097 * xterm.h: Declare x_ewmh_activate_frame.
23098
23099 * xterm.c (x_ewmh_activate_frame): New function.
23100 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
23101
231022007-07-17 Martin Rudalics <rudalics@gmx.at>
23103
23104 * window.c (Fdisplay_buffer): If largest or LRU window is the
23105 only window, split it even if it is not eligible for splitting.
23106 This restores the original behavior broken by the 2007-07-15
23107 change.
23108
231092007-07-17 Glenn Morris <rgm@gnu.org>
23110
23111 * abbrev.c (abbrev_check_chars): New function.
23112 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
23113 Call abbrev_check_chars to check abbrev characters are word
23114 constituents. Doc fix.
23115
231162007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
23117
23118 * process.c (Fstart_process, Fmake_network_process)
23119 (read_process_output): Fix up last changes.
23120
231212007-07-16 Eli Zaretskii <eliz@gnu.org>
23122
23123 * makefile.w32-in (clean): Don't delete *~.
23124
231252007-07-16 Andreas Schwab <schwab@suse.de>
23126
23127 * window.c (Fdisplay_buffer): Use NILP.
23128 (Fset_window_scroll_bars): Likewise.
23129
231302007-07-15 Martin Rudalics <rudalics@gmx.at>
23131
23132 * window.c (window_min_size_2): New function.
23133 (window_min_size_1, size_window, Fdisplay_buffer)
23134 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
23135 windows without mode- or header-lines when window-min-height is
23136 too small.
23137 (size_window): Reset nodelete_p after testing it, following an
23138 earlier note by Kim F. Storm.
23139 (display_buffer): Do not set split_height_threshold to twice the
23140 value of window_min_height to avoid changing the value of a
23141 customizable variable. Rather explicitly check whether the
23142 height of the window that shall be splitted is at least as large
23143 as split_height_threshold.
23144 (Fwindow_full_width_p): New defun.
23145 (syms_of_window): Defsubr it.
23146
23147 * window.h: Add EXFUN for Fwindow_full_width_p.
23148
231492007-07-14 Jason Rumney <jasonr@gnu.org>
23150
23151 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
23152
231532007-07-14 Richard Stallman <rms@gnu.org>
23154
23155 * eval.c (maybe_call_debugger): New function.
23156 (find_handler_clause): Use maybe_call_debugger.
23157 Call it when the handler says `debug'.
23158 Eliminate DEBUGGER_VALUE_PTR.
23159 (Fsignal): Eliminate debugger_value.
23160 (Qdebug): New variable.
23161 (syms_of_eval): Initialize it.
23162
231632007-07-14 Juanma Barranquero <lekktu@gmail.com>
23164
23165 * eval.c (Fprogn):
23166 * keyboard.c (Ftrack_mouse):
23167 * print.c (Fwith_output_to_temp_buffer):
23168 * window.c (Fsave_window_excursion): Doc fix.
23169
231702007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
23171
23172 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
23173
231742007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
23175
23176 * process.h (struct Lisp_Process): Turn slots infd, outfd,
23177 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
23178 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
23179 read_output_delay, and read_output_skip from Lisp_Objects to ints.
23180 Remove unused encoding_carryover.
23181 * process.c: Adjust all functions accordingly.
23182
231832007-07-12 Richard Stallman <rms@gnu.org>
23184
23185 * term.c: Include unistd.h only if HAVE_UNISTD_H.
23186
231872007-07-11 Jason Rumney <jasonr@gnu.org>
23188
23189 * makefile.w32-in (LIBS): Include OLE32.
23190
23191 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
23192 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
23193
231942007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
23195
23196 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
23197 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
23198 from a Lisp_Object into a bare pointer.
23199 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
23200 Adjust the code correspondingly.
23201
23202 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
23203
23204 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
23205 (term_show_mouse_face): Remove unused var `j'.
23206 (handle_one_term_event): Remove unused vars `i' and `j'.
23207 Don't cast return value of ttyname since it's not necessary.
23208
232092007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
23210
23211 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
23212 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
23213
23214 * fns.c (map_char_table): Use an array of int for `indices' rather than
23215 an array of Lisp_Objects (which are only ever integers anyway).
23216 (Fmap_char_table): Update caller.
23217 * lisp.h: Update prototype.
23218 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
23219 * fontset.c (Ffontset_info):
23220 * casetab.c (set_case_table): Update callers.
23221
23222 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
23223
23224 * keymap.c (struct accessible_keymaps_data)
23225 (struct where_is_internal_data): New structures.
23226 (accessible_keymaps_1, where_is_internal_1): Use them to change
23227 interface to adhere to the one used by map_keymap.
23228 (Faccessible_keymaps, where_is_internal): Use map_keymap.
23229 (accessible_keymaps_char_table, where_is_internal_2): Remove.
23230
23231 * keymap.h (map_keymap_function_t): More informative prototype.
23232
232332007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
23234
23235 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
23236 (looking_at_1): Don't change search_regs and last_thing_searched
23237 if `inhibit-changing-match-data' is non-nil.
23238 (string_match_1, search_buffer, set_search_regs): Likewise.
23239 (syms_of_search): Add Lisp level definition for
23240 `inhibit-changing-match-data' and set it to nil.
23241 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
23242 start and end of the match, instead of using values in search_regs.
23243
232442007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
23245
23246 * minibuf.c (Fcompleting_read): New value `confirm-only'
23247 for `require-match'.
23248
232492007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
23250
23251 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
23252 part of the 2007-06-27 change to syms_of_fileio.
23253
232542007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23255
23256 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
23257 Check WINDOWP before using XWINDOW. Consolidate return statements.
23258
232592007-06-27 Richard Stallman <rms@gnu.org>
23260
23261 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
23262
232632007-06-27 Juanma Barranquero <lekktu@gmail.com>
23264
23265 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
23266
232672007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23268
23269 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
23270 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
23271 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
23272 (_free_internal, memalign): Use them.
23273 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
23274 Initialize to PTHREAD_MUTEX_INITIALIZER.
23275 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
23276 (morecore_nolock): Rename from morecore. All uses changed.
23277 Use only nolock versions of internal allocation functions.
23278 (_malloc_internal_nolock, _realloc_internal_nolock)
23279 (_free_internal_nolock): New functions created from
23280 _malloc_internal, _realloc_internal, and _free_internal.
23281 (_malloc_internal, _realloc_internal, _free_internal): Use them.
23282 Copy hook value to automatic variable before its use.
23283 (memalign): Copy hook value to automatic variable before its use.
23284
232852007-06-26 Kenichi Handa <handa@m17n.org>
23286
23287 * coding.c (Ffind_operation_coding_system): Docstring improved.
23288 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
23289
232902007-06-25 David Kastrup <dak@gnu.org>
23291
23292 * keymap.c (Fcurrent_active_maps): Add `position' argument.
23293 (Fwhere_is_internal): Adjust call to `current-active-maps' to
23294 cater for additional parameter.
23295
23296 * keymap.h: Adjust number of parameters to `current-active-maps'.
23297
23298 * doc.c (Fsubstitute_command_keys): Adjust call of
23299 `current-active-maps'.
23300
233012007-06-25 David Kastrup <dak@gnu.org>
23302
23303 * callint.c (Fcall_interactively): Make the parsing of interactive
23304 specs somewhat more readable.
23305
233062007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23307
23308 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
23309 to scroll bar gap also when bitmap fills fringe. Draw only foreground
23310 if extended background has already been filled.
23311
233122007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23313
23314 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
23315 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
23316
23317 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
23318 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
23319 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
23320 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
23321 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
23322 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
23323 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
23324 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
23325 Run timers during dialog popup.
23326 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
23327
233282007-06-21 Jason Rumney <jasonr@gnu.org>
23329
23330 * image.c (convert_mono_to_color_image): Swap fore and background.
23331
233322007-06-20 Jason Rumney <jasonr@gnu.org>
23333
23334 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
23335 (w32_free_bdf_font): Unmap memory not handle.
23336
233372007-06-20 Sam Steingold <sds@gnu.org>
23338
23339 * gmalloc.c (__morecore): Fix the declaration to comply with the
23340 definition.
23341
233422007-06-20 Juanma Barranquero <lekktu@gmail.com>
23343
23344 * w32term.c (w32_delete_display): Remove leftover declaration.
23345 (w32_define_cursor, w32_initialize): Make static.
23346
23347 * w32.c (_wsa_errlist): Fix typo in error message.
23348 (init_environment): Ignore any environment variable from the
23349 registry having a null value.
23350
233512007-06-20 Glenn Morris <rgm@gnu.org>
23352
23353 * Makefile.in (LIBGIF): Default to -lgif.
23354
233552007-06-17 Jason Rumney <jasonr@gnu.org>
23356
23357 * w32menu.c (add_menu_item): Don't use multibyte string functions on
23358 unicode strings.
23359
233602007-06-16 Juanma Barranquero <lekktu@gmail.com>
23361
23362 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
23363 Fix typo in docstring.
23364
233652007-06-16 Eli Zaretskii <eliz@gnu.org>
23366
23367 * w32menu.c (add_menu_item): Escape `&' characters in menu items
23368 and their keybindings.
23369
233702007-06-15 Chong Yidong <cyd@stupidchicken.com>
23371
23372 * composite.c (update_compositions): Fix last fix.
23373
233742007-06-14 Jason Rumney <jasonr@gnu.org>
23375
23376 * w32.c (get_process_times_fn): New function pointer.
23377 (globals_of_w32): Intialize it if present in kernel32.dll.
23378 (w32_get_internal_run_time): New function.
23379
23380 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
23381
233822007-06-14 Kenichi Handa <handa@etlken.m17n.org>
23383
23384 * composite.c (update_compositions): Check the validness of
23385 compositions.
23386
233872007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23388
23389 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
23390 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
23391
23392 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
23393 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
23394
23395 * macgui.h (USE_MAC_TOOLBAR): New define.
23396
23397 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
23398 Return immediately unless popup is activated.
23399
23400 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
23401 background to scroll bar gap.
23402 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
23403 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
23404 scroll bars on frame edge. Check fringe background extension.
23405 Don't clear extended fringe background area.
23406 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
23407 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
23408 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
23409 [USE_MAC_TOOLBAR]: New macros.
23410 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
23411 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
23412 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
23413 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
23414 [USE_MAC_TOOLBAR]: New functions.
23415 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
23416 manually if previous repositioning has failed.
23417 (mac_handle_keyboard_event): Use precomputed event kind.
23418 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
23419 as tool bar item click. Handle mouse movement over tool bar items.
23420
23421 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
23422 toolbar_win_gravity.
23423 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
23424 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
23425 Add externs.
23426
23427 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
23428 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
23429
234302007-06-14 Chong Yidong <cyd@stupidchicken.com>
23431
23432 * image.c (search_image_cache): Remove unused variable.
23433
234342007-06-13 Chong Yidong <cyd@stupidchicken.com>
23435
23436 * xfns.c, xmenu.c: Link to xaw3d if available.
23437
234382007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23439
23440 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
23441 frame_foreground and frame_background.
23442
23443 * image.c (lookup_image): Save frame foreground and background colors.
23444 (search_image_cache): Check if saved and current frame colors match.
23445
234462007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
23447
23448 * regex.c (regex_compile): Remove the `regnum' counter.
23449 Use bufp->re_nsub instead. Add support for \(?N:RE\).
23450
234512007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
23452
23453 * term.c: Include intervals.h to declare Fget_text_property.
23454
234552007-06-10 Jason Rumney <jasonr@gnu.org>
23456
23457 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
23458
234592007-06-08 Juanma Barranquero <lekktu@gmail.com>
23460
23461 * callint.c (Fcall_interactively):
23462 * editfns.c (Fdelete_and_extract_region):
23463 * fileio.c (Fread_file_name):
23464 * fns.c (Fmapconcat):
23465 * keyboard.c (cmd_error_internal):
23466 * keymap.c (Fkey_description):
23467 * lread.c (openp):
23468 * minibuf.c (read_minibuf):
23469 * search.c (wordify):
23470 * sunfns.c (sel_read):
23471 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
23472 * xfns.c (x_default_scroll_bar_color_parameter):
23473 * xmenu.c (menu_help_callback):
23474 * xselect.c (Fx_get_atom_name):
23475 * xterm.c (x_term_init): Use empty_unibyte_string.
23476
234772007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
23478
23479 * alloc.c (init_strings): Initialize canonical empty strings.
23480 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
23481 canonical empty string when the requested size is 0.
23482
23483 * emacs.c (empty_unibyte_string): Rename from empty_string.
23484 (empty_multibyte_string): New canonical empty string.
23485 (syms_of_emacs): Don't initialize empty_string.
23486
23487 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
23488 string, if appropriate.
23489 (empty_unibyte_string, empty_multibyte_string): New externs.
23490 (empty_string): Remove extern.
23491
23492 * lread.c (syms_of_lread): Use empty_unibyte_string.
23493
234942007-06-07 Jason Rumney <jasonr@gnu.org>
23495
23496 * s/ms-w32.h: Don't define HAVE_TZNAME.
23497
23498 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
23499
235002007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23501
23502 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
23503
23504 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
23505 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
23506
23507 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
23508 Don't call next handler.
23509 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
23510 Remove argument. Install handler to application.
23511 (set_frame_menubar): Don't change deep_p.
23512 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
23513 FRAME_OUTER_TO_INNER_DIFF_Y.
23514 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
23515 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
23516 [HAVE_DIALOGS]: New macros.
23517 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
23518 Use them.
23519 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
23520
23521 * macselect.c [MAC_OSX] (install_service_handler): Rename from
23522 init_service_handler. All callers changed. Return OSStatus value.
23523
23524 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
23525 All callers changed so as not to call SetPortWindowPort.
23526 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
23527 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
23528 mac_draw_string_common.
23529 (mac_draw_image_string_qd): Likewise.
23530 (mac_draw_string_common): Use them. Add INLINE.
23531 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
23532 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
23533 GetGlobalMouse.
23534 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
23535 and FRAME_OUTER_TO_INNER_DIFF_Y.
23536 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
23537 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
23538 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
23539 repositioning window to mac_handle_window_event.
23540 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
23541 saving window location to mac_handle_window_event
23542 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
23543 (install_menu_target_item_handler): Remove argument in extern.
23544 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
23545 Also accept command events.
23546 (do_keystroke): New function created from XTread_socket.
23547 (init_command_handler): Remove functions.
23548 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
23549 and save window location by kEventWindowShowing and kEventWindowHiding
23550 handlers here. Don't call next handler for window state change and
23551 focus events.
23552 (mac_handle_application_event, mac_handle_keyboard_event)
23553 [TARGET_API_MAC_CARBON]: New functions.
23554 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
23555 kEventWindowShowing and kEventWindowHiding events. Move installation
23556 of mouse, font, text input and menu target item handlers to
23557 install_application_handler.
23558 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
23559 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
23560 New function.
23561 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
23562 Register it.
23563 (XTread_socket) [TARGET_API_MAC_CARBON]:
23564 Consolidate SendEventToEventTarget calls.
23565 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
23566 Move application activation handler to mac_handle_application_event.
23567 Move keyboard handler to mac_handle_keyboard_event.
23568 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
23569 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
23570 init_command_handler. Call install_application_handler.
23571
23572 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
23573 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
23574
235752007-06-07 Glenn Morris <rgm@gnu.org>
23576
23577 * emacs.c (main): Use `emacs-copyright' in --version output.
23578
235792007-06-06 Chong Yidong <cyd@stupidchicken.com>
23580
23581 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
23582
235832007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23584
23585 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
23586
23587 * macgui.h: Replace WindowPtr with WindowRef.
23588
23589 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
23590 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
23591 Replace ControlHandle with ControlRef.
23592 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
23593
23594 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
23595 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
23596 Replace ControlHandle with ControlRef.
23597 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
23598 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
23599
23600 * macterm.h (struct scroll_bar): Rename member control_handle_low
23601 and control_handle_high to control_ref_low and control_ref_high.
23602 All uses changed.
23603 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
23604 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
23605 respectively. All uses changed.
23606 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
23607 (install_window_handler, remove_window_handler): Replace WindowPtr
23608 with WindowRef in externs.
23609
236102007-06-05 Juanma Barranquero <lekktu@gmail.com>
23611
23612 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
23613
236142007-06-03 Nick Roberts <nickrob@snap.net.nz>
23615
23616 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
23617
23618 * frame.c (Fmouse_position, Fmouse_pixel_position):
23619 Condition on HAVE_GPM too.
23620
23621 * term.c (term_mouse_highlight): Remove unused variables.
23622 (Fterm_open_connection): Set gpm_zerobased to 1.
23623 (term_mouse_movement, term_mouse_click, handle_one_term_event):
23624 Use zero based co-ordinates.
23625 (handle_one_term_event): Report a drag as mouse movement too.
23626
23627 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
23628
236292007-06-03 Chong Yidong <cyd@stupidchicken.com>
23630
23631 * image.c (search_image_cache): New function. Require background
23632 color match if background color is unspecified in the image spec.
23633 (uncache_image, lookup_image): Use it.
23634
236352007-06-01 Juanma Barranquero <lekktu@gmail.com>
23636
23637 * window.c (Fshrink_window): Reflow docstring.
23638
236392007-06-02 Chong Yidong <cyd@stupidchicken.com>
23640
23641 * Version 22.1 released.
23642
236432007-06-01 Richard Stallman <rms@gnu.org>
23644
23645 * xfns.c (x_encode_text): Add GCPRO.
23646
236472007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23648
23649 * xfns.c (x_set_name_internal): Save encoded name before
23650 x_encode_text in case string data is relocated.
23651
236522007-05-31 Richard Stallman <rms@gnu.org>
23653
23654 * buffer.c (syms_of_buffer): Doc fix.
23655
236562007-05-30 Nick Roberts <nickrob@snap.net.nz>
23657
23658 * sysdep.c (init_sys_modes): Add rather than replace with
23659 O_NONBLOCK.
23660
23661 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
23662 term_mouse_moveto.
23663
23664 * termhooks.h (term_mouse_moveto): New extern.
23665
23666 * term.c (mouse_face_window): Rename...
23667 (Qmouse_face_window): ...to this.
23668 (term_show_mouse_face, term_clear_mouse_face)
23669 (term_mouse_highlight): Use Qmouse_face_window.
23670 (term_mouse_moveto): New function.
23671 (term_mouse_position): Make it work.
23672 (syms_of_term): Uncomment assignment to mouse_position_hook.
23673 Staticpro Qmouse_face_window.
23674
236752007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23676
23677 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
23678 around current_column call.
23679
236802007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
23681
23682 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
23683 * xdisp.c (next_element_from_buffer):
23684 * window.c (delete_window):
23685 * term.c (term_mouse_highlight):
23686 * msdos.c (getdefdir):
23687 * macterm.c (mac_create_bitmap_from_bitmap_data)
23688 (init_font_name_table):
23689 * fns.c (Fsxhash):
23690 * data.c (Fmake_local_variable):
23691 * ccl.c (ccl_driver): Likewise.
23692
236932007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23694
23695 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
23696 Call mac_wakeup_from_rne on window size change.
23697
236982007-05-25 Chong Yidong <cyd@stupidchicken.com>
23699
23700 * image.c (uncache_image): Fix typo.
23701
237022007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
23703
23704 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
23705
237062007-05-22 Richard Stallman <rms@gnu.org>
23707
23708 * xterm.c (x_connection_closed): Remove NO_RETURN.
23709
237102007-05-22 Martin Rudalics <rudalics@gmx.at>
23711
23712 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
23713
237142007-05-21 Chong Yidong <cyd@stupidchicken.com>
23715
23716 * image.c (uncache_image): New function.
23717 (Fimage_refresh): New function.
23718
237192007-05-20 Jan Djärv <jan.h.d@swipnet.se>
23720
23721 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
23722
237232007-05-20 Nick Roberts <nickrob@snap.net.nz>
23724
23725 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
23726 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
23727
237282007-05-20 Nick Roberts <nickrob@snap.net.nz>
23729
23730 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
23731 conditional on [HAVE_GPM_H].
23732
237332007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
23734
23735 * syntax.c (skip_chars): Update syntax-table only after we checked that
23736 the new location is valid.
23737
237382007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23739
23740 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
23741 mac_get_window_bounds.
23742
237432007-05-20 Nick Roberts <nickrob@snap.net.nz>
23744
23745 * Makefile.in (LIBGPM): Allow it to be set from configure.
23746 If set then link Emacs with it.
23747
23748 * config.in: Regenerate.
23749
23750 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
23751 New externs.
23752
23753 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
23754 Include gpm.h.
23755 (handle_one_term_event, term_gpm): New externs.
23756
23757 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
23758 and allow it to be interrupted by SIGIO.
23759
23760 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
23761 (wait_reading_process_output): Wait on gpm_fd too.
23762 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
23763 (add_gpm_wait_descriptor_called_flag): New variable.
23764 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
23765
23766 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
23767 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
23768 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
23769 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
23770 (make_lispy_event): Add case GPM_CLICK_EVENT.
23771 (read_avail_input): Handle mouse input.
23772
23773 * term.c (write_glyphs_with_face): New function.
23774 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
23775 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
23776 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
23777 (mouse_face_face_id, term_gpm, pos_x, pos_y)
23778 (last_mouse_x, last_mouse_y): New variables.
23779 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
23780 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
23781 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
23782 (Fterm_close_connection): New functions.
23783 (term_init): Initialise mouse_face_window.
23784
237852007-05-19 Chong Yidong <cyd@stupidchicken.com>
23786
23787 * xdisp.c (redisplay_window): If first window line is a
23788 continuation line, recompute the new window start instead of
23789 recentering.
23790
237912007-05-18 Glenn Morris <rgm@gnu.org>
23792
23793 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
23794 Suggested by Alfred M. Szmidt <ams@gnu.org>.
23795
237962007-05-17 Glenn Morris <rgm@gnu.org>
23797
23798 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
23799
238002007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23801
23802 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
23803 dead key repeat and up events.
23804
238052007-05-14 Chong Yidong <cyd@stupidchicken.com>
23806
23807 * image.c (pbm_load): Check image size for monochrome pbm.
23808
238092007-05-13 Chong Yidong <cyd@stupidchicken.com>
23810
23811 * xterm.c (XTread_socket): Revert last change.
23812
238132007-05-12 Chong Yidong <cyd@stupidchicken.com>
23814
23815 * image.c (pbm_load): Correctly check image size for greyscale pbm.
23816
23817 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
23818
238192007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
23820
23821 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
23822 mixup (YAILOM).
23823
238242007-05-07 Andreas Schwab <schwab@suse.de>
23825
23826 * keymap.c (Flookup_key): Fix typo in last change.
23827
238282007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
23829
23830 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
23831 mapping for unibyte strings.
23832
238332007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23834
23835 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
23836 (Fx_popup_dialog) [MAC_OSX]: Likewise.
23837
238382007-04-29 Richard Stallman <rms@gnu.org>
23839
23840 * insdel.c (replace_range): For undo, record insertion first.
23841
238422007-04-29 Andreas Schwab <schwab@suse.de>
23843
23844 * lisp.h (VECSIZE): Use OFFSETOF.
23845
238462007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23847
23848 * xdisp.c (try_window_reusing_current_matrix): Fix number of
23849 disabled lines.
23850
238512007-04-28 Richard Stallman <rms@gnu.org>
23852
23853 * lread.c (read_escape): In a string, \s is always space.
23854
238552007-04-27 Jan Djärv <jan.h.d@swipnet.se>
23856
23857 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
23858
23859 * gtkutil.c (xg_update_menubar, create_menus): Create empty
23860 submenu for menu bar items.
23861
23862See ChangeLog.10 for earlier changes.
23863
23864;; Local Variables:
23865;; coding: utf-8
23866;; add-log-time-zone-rule: t
aac0c6e3
MR
23867;; End:
23868
e3eb1dae 23869 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
23870
23871 This file is part of GNU Emacs.
23872
23873 GNU Emacs is free software: you can redistribute it and/or modify
23874 it under the terms of the GNU General Public License as published by
23875 the Free Software Foundation, either version 3 of the License, or
23876 (at your option) any later version.
23877
23878 GNU Emacs is distributed in the hope that it will be useful,
23879 but WITHOUT ANY WARRANTY; without even the implied warranty of
23880 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23881 GNU General Public License for more details.
23882
23883 You should have received a copy of the GNU General Public License
23884 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
23885
23886;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40