Fix redisplay crash (Bug#6177).
[bpt/emacs.git] / src / ChangeLog
CommitLineData
f44a59e6
CY
12010-05-27 Chong Yidong <cyd@stupidchicken.com>
2
3 * xdisp.c (redisplay_window): After redisplay, check if point is
4 still valid before setting it (Bug#6177).
5
81ac4f35
GM
62010-05-27 Glenn Morris <rgm@gnu.org>
7
8 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
9 Convert comments to Makefile format.
10
11 * Makefile.in (bootstrap-clean): No more Makefile.c.
12
ccd89fb3
GM
132010-05-26 Glenn Morris <rgm@gnu.org>
14
90278cb6
GM
15 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
16 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
17
ccd89fb3
GM
18 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
19 Remove.
20 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
21
b7050583
KH
222010-05-26 Kenichi Handa <handa@m17n.org>
23
24 * composite.c (composition_compute_stop_pos): Fix condition for
25 backward scanning.
26
e5458003
GM
272010-05-25 Glenn Morris <rgm@gnu.org>
28
c345fe90
GM
29 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
30 Move before TEMACS_LDFLAGS.
31 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
32 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
33
2e0689ab
GM
34 * Makefile.in (NOT_C_CODE): No longer define.
35 (config.h): No longer include.
36
8009a5e8
GM
37 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
38 variables it may reference.
39
e5458003
GM
40 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
41 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
42
10f72a37
KH
432010-05-25 Kenichi Handa <handa@m17n.org>
44
45 * dispextern.h (struct composition_it): New members rule_idx and
46 charpos.
47
48 * xdisp.c (set_iterator_to_next): While scanning backward, assume
49 that the character positions of IT point the last character of the
50 current grapheme cluster.
51 (next_element_from_composition): Don't change character positions
52 of IT.
53 (append_composite_glyph): Set glyph->charpos to
54 it->cmp_it.charpos.
55
56 * composite.c (autocmp_chars): Change the first argument to RULE,
57 and try composition with RULE only.
58 (composition_compute_stop_pos): Record the index number of the
59 composition rule in CMP_IT->rule_idx.
60 (composition_reseat_it): Call autocmp_chars repeatedly until the
61 correct rule of the composition is found.
62 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
63 is at the last character of the current grapheme cluster when
64 CMP_IT->reversed_p is nonzero.
65
171eda53 662010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 67
171eda53
SM
68 * editfns.c (Fbyte_to_string): New function.
69
66a9f7f4
SM
702010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
71
72 * process.c (Fmake_network_process): Set :host to nil if it's not used.
73 Suggested by Masatake YAMATO <yamato@redhat.com>.
74
d8c315d1
EZ
752010-05-23 Eli Zaretskii <eliz@gnu.org>
76
171eda53 77 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 78
0416466c
EZ
792010-05-19 Eli Zaretskii <eliz@gnu.org>
80
11117830 81 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
82
83 * dispextern.h (struct glyph_row): New members minpos and maxpos.
84 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
85 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
86 and maxpos members instead of start.pos and end.pos, respectively.
87
88 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
89 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
90 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
91 (try_window_reusing_current_matrix, try_window_id):
92 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
93 (init_from_display_pos, init_iterator): Use EMACS_INT for
94 character and byte positions.
66a9f7f4 95 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
96 arguments for minimum and maximum buffer positions seen by
97 display_line for this row. Don't use iterator to find the
98 position following the maximum one; instead, increment the
11117830
EZ
99 position found by display_line directly. Fix logic; eol_pos
100 should be tested before the rest. Handle the case of characters
101 delivered from display vector (bug#6036). Fix tests related to
102 it->method. Handle the truncated_on_right_p rows.
103 (RECORD_MAX_MIN_POS): New macro.
104 (display_line): Use it to record the minimum and maximum buffer
105 positions for glyphs in the row being assembled. Record the
106 position of the newline that terminates the line. If word wrap is
107 in effect, restore minimum and maximum positions seen up to the
108 wrap point, when iterator returns to it.
109 (try_window_reusing_current_matrix): Give up if in bidi-reordered
110 row and cursor not already at point. Restore original pre-bidi
111 code for unidirectional buffers.
d36fe237
EZ
112
113 * dispnew.c (increment_row_positions, check_matrix_invariants):
114 Increment and check row->start.pos and row->end.pos, in addition
115 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
116
11117830
EZ
117 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
118 Display truncated_on_left_p and truncated_on_right_p flags.
119 Formatting fixes.
120 (pmtxrows): Display the ordinal number of each row. Don't display
121 rows beyond the last one.
122
123 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
124 it is not copied by bidi_copy_it.
125
6e83d800
EZ
1262010-05-22 Eli Zaretskii <eliz@gnu.org>
127
128 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
129 (Bug#6237)
130
110683ad
CY
1312010-05-22 Chong Yidong <cyd@stupidchicken.com>
132
133 * image.c (Fimage_flush): Rename from image-refresh.
134
98fe5161
CY
1352010-05-21 Chong Yidong <cyd@stupidchicken.com>
136
137 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
138 just one window.
139
140 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
141 (clear_image_cache): If the number of cached images is unusually
142 large, decrease the cache eviction delay (Bug#6230).
143
e8752c66
GM
1442010-05-21 Glenn Morris <rgm@gnu.org>
145
66dbf213
GM
146 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
147 Move these rules to ns.mk.
148 * ns.mk: New file.
149
04384b2d
GM
150 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
151
e8752c66
GM
152 * Makefile.in (CANNOT_DUMP): New, set by configure.
153 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
154
2e2bbddb
JL
1552010-05-20 Juri Linkov <juri@jurta.org>
156
157 * fileio.c (Fdelete_file): Change interative spec to use
158 `read-file-name' like in `find-file-read-args' where the default
159 value is `default-directory' instead of `buffer-file-name'.
160 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
161
31c4aaf6
KR
1622010-05-20 Kevin Ryde <user42@zip.com.au>
163
164 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
165 (Voverriding_terminal_local_map, Vsystem_key_alist)
166 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
167
9d5cf9b6
GM
1682010-05-20 Glenn Morris <rgm@gnu.org>
169
170 * Makefile.in (DEPDIR): New constant.
171 (DEPFLAGS): Set with configure, not cpp.
172 (MKDEPDIR): New, set by configure.
173 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
174 (clean): Use $DEPDIR.
175 (deps_frag): Include from configure.
176 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
177 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
178
ead6f8f5
EZ
179 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
180 reallocation of the cache. (Bug#6210)
181
7f34aec3
GM
1822010-05-19 Glenn Morris <rgm@gnu.org>
183
d494e8f2
GM
184 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
185
c1d0dcfd
GM
186 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
187 (GNULIB_VAR): Remove.
188 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
189
190 * m/ibms390x.h (LINKER):
191 * m/macppc.h (LINKER) [GNU_LINUX]:
192 * s/aix4-2.h (ORDINARY_LINK):
193 * s/cygwin.h (LINKER):
194 * s/darwin.h (ORDINARY_LINK):
195 * s/gnu.h (ORDINARY_LINK):
196 * s/netbsd.h (LINKER):
197 * s/usg5-4.h (ORDINARY_LINK):
198 Move to configure.
199
7f34aec3
GM
200 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
201
754790b6
CY
2022010-05-18 Chong Yidong <cyd@stupidchicken.com>
203
204 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
205 prevent stack overflow if number of arguments is too large
206 (Bug#6214).
207
161e44d1
JB
2082010-05-18 Juanma Barranquero <lekktu@gmail.com>
209
210 * charset.c (load_charset_map_from_file): Don't call close after fclose.
211
be4ff9da
GM
2122010-05-18 Glenn Morris <rgm@gnu.org>
213
9539dc5d
GM
214 * s/gnu-linux.h: Combine two conditionals.
215
216 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
217 $(POST_ALLOC_OBJ).
218
40dc6bf4
GM
219 * Makefile.in (RALLOC_OBJ): New, set by configure.
220 (rallocobj): Replace with the previous variable.
221 (otherobj): Use $RALLOC_OBJ.
222
223 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
224 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
225
be4ff9da
GM
226 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
227 (gmallocobj, vmlimitobj): Replace with previous two variables.
228 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
229
16455a85
GM
2302010-05-17 Glenn Morris <rgm@gnu.org>
231
232 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
233 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
234
5fdb7468
GM
2352010-05-16 Glenn Morris <rgm@gnu.org>
236
7ca1f3f9
GM
237 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
238
7541dad5
GM
239 * Makefile.in (clean): Get rid of HAVE_NS conditional.
240
da53fab9
GM
241 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
242 trailing "/".
243
b02a6645
GM
244 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
245 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
246
8877ca0f
GM
247 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
248 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
249 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
250 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
251 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
252
5fdb7468
GM
253 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
254 Remove ${STARTFLAGS}, nothing ever sets it.
255
95adb4b1
DN
2562010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
257
258 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
259
676b6304
GM
2602010-05-16 Glenn Morris <rgm@gnu.org>
261
9beab9ce
GM
262 * Makefile.in (LIBX_BASE): Always define.
263
8a95f0e7
GM
264 * Makefile.in (LIBX_OTHER): Move out of cpp section.
265
676b6304
GM
266 * Makefile.in (LIBXT): Always define.
267
6e546d18
GM
2682010-05-15 Glenn Morris <rgm@gnu.org>
269
4235ca47 270 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 271
6e546d18
GM
272 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
273 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
274
8c5ff6dd
KR
2752010-05-15 Ken Raeburn <raeburn@raeburn.org>
276
560bb7ae 277 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
278 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
279
8b4eb796
KR
280 * emacs.c (main): Initialize initial-environment and
281 process-environment before generating from env, not after.
282
8c5ff6dd
KR
283 Handle --version reasonably in CANNOT_DUMP configuration.
284 * emacs.c (emacs_version, emacs_copyright): New string variables.
285 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
286 (syms_of_emacs): Defvar them, and initialize them from the C
287 string variables.
288 (main): If initialization hasn't been done, print initial version
289 info from the C strings, instead of starting an interactive session.
290
dbd3f723
EZ
2912010-05-15 Eli Zaretskii <eliz@gnu.org>
292
d20e1419
EZ
293 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
294 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
295 (bidi_paragraph_init): Remove redundant assertion that we are at
296 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
297
298 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
299 (syms_of_xdisp): Defsubr it.
300
d36fe237
EZ
301 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
302
dbd3f723
EZ
303 * Makefile.in: Fix MSDOS-related comments.
304
02be533b
GM
3052010-05-15 Glenn Morris <rgm@gnu.org>
306
1a82cca9
GM
307 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
308 (really-lwlib, really-oldXMenu): Always define.
309 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
310
3df7b338
GM
311 * Makefile.in: Simplify cpp conditional.
312
2b5f541b
GM
313 * Makefile.in (${ns_appdir}): Simplify using umask.
314
02be533b
GM
315 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
316
4e2db1fe
SM
3172010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
318
319 * eval.c (specbind): Remove left-over duplicate test.
320 Disallow let-binding frame-local vars. Add comment.
321
4b292a22
EZ
3222010-05-14 Eli Zaretskii <eliz@gnu.org>
323
2fe72643 324 Make the cache of bidi iterator states dynamically allocated.
1edbd309 325 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
326 (bidi_init_it): Call it.
327 (bidi_cache_iterator_state): Enlarge the cache if needed.
328
4e2db1fe 329 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
330 bidi_get_next_char_visually. All callers changed.
331
82ebc97b
KH
3322010-05-14 Kenichi Handa <handa@m17n.org>
333
334 * dispextern.h (struct composition_it): New member reversed_p.
335
336 * composite.c (composition_compute_stop_pos): Search backward if
337 ENDPOS < CHARPOS.
338 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
339 Set CMP_IT->reversed_p.
b4b6e17e 340 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 341
4e2db1fe
SM
342 * xdisp.c (set_iterator_to_next):
343 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
344 scanning backward. Call composition_compute_stop_pos if scan
345 direction is changed.
346 (next_element_from_buffer): Call composition_compute_stop_pos with
347 negative ENDPOS if we are scanning backward.
348 (next_element_from_composition): Pay attention to
349 IT->cmp_it.reversed_p.
350
0e5d7800
KH
3512010-05-14 Kenichi Handa <handa@m17n.org>
352
560bb7ae 353 * font.c (font_range): Return the range for the font found at first.
0e5d7800 354
cb027b32
GM
3552010-05-14 Glenn Morris <rgm@gnu.org>
356
177b0288
GM
357 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
358
fbc00890
GM
359 * Makefile.in (mktime, X11, register): Move undefs to configure.
360
f14d1dfd
GM
361 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
362 (MSDOS_X_OBJ): New variable.
363 (MSDOS_SUPPORT_REAL): New constant.
364 (MSDOS_SUPPORT): Set as a variable, not with cpp.
365 (obj): Use MSDOS_X_OBJ.
366 (lisp): Use MSDOS_SUPPORT as a variable.
367
11842bd8
GM
368 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
369 (GPM_MOUSE_SUPPORT): Now it's a constant.
370 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
371 not cpp.
372
489d31a4 373 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 374 (ns_appresdir): Remove, unused.
e20f1f07 375
489d31a4
GM
376 * Makefile.in (SHELL): Move outside cpp section.
377
cb027b32
GM
378 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
379
5a903aa9
GM
3802010-05-13 Glenn Morris <rgm@gnu.org>
381
3369c79f
GM
382 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
383 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
384
d5e982a6
GM
385 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
386 HAVE_WINDOW_SYSTEM must be too.
387
6192e163
GM
388 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
389 (lisp): Remove WINNT_SUPPORT.
390
472c5d6b
GM
391 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
392 Let configure set these variables (to empty) in this case as well.
393
0116466b
GM
394 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
395 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
396
5a903aa9
GM
397 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
398 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
399 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
400 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
401 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 402 the values output by configure.
5a903aa9
GM
403 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
404
1a0d7c06
GM
4052010-05-12 Glenn Morris <rgm@gnu.org>
406
b5457f14
GM
407 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
408 (LINKER_WAS_SPECIFIED): Remove.
409
1a0d7c06
GM
410 * Makefile.in (LIB_GCC): Set using configure, not cpp.
411 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
412 * m/arm.h (LIB_GCC) [GNU_LINUX]:
413 * s/cygwin.h (LIB_GCC):
414 * s/freebsd.h (LIB_GCC):
415 * s/gnu-linux.h (LIB_GCC):
416 * s/msdos.h (LIB_GCC):
417 * s/netbsd.h (LIB_GCC):
418 Move to configure.
419
3ffd4615 4202010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
421
422 * ftfont.c: Fix incorrect parentheses of #if condition for
423 definining M17N_FLT_USE_NEW_FEATURE.
424
acddf8ae
GM
4252010-05-11 Glenn Morris <rgm@gnu.org>
426
427 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
428 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
429
ae5e04fa
EZ
4302010-05-10 Eli Zaretskii <eliz@gnu.org>
431
432 * xdisp.c (init_iterator): Don't turn on bidi reordering in
433 unibyte buffers. See
434 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
435
7490175b
GM
4362010-05-10 Glenn Morris <rgm@gnu.org>
437
97efb629
GM
438 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
439 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
440 (LIBES): Use LIBS_SYSTEM as a variable.
441 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
442 * s/aix4-2.h (LIBS_SYSTEM):
443 * s/freebsd.h (LIBS_SYSTEM):
444 * s/hpux10-20.h (LIBS_SYSTEM):
445 * s/sol2-6.h (LIBS_SYSTEM):
446 * s/unixware.h (LIBS_SYSTEM):
447 Move to configure.
448
7490175b
GM
449 * s/aix4-2.h (MAIL_USE_LOCKF):
450 * s/bsd-common.h (MAIL_USE_FLOCK):
451 * s/darwin.h (MAIL_USE_FLOCK):
452 * s/gnu-linux.h (MAIL_USE_FLOCK):
453 * s/irix6-5.h (MAIL_USE_FLOCK):
454 * s/template.h (MAIL_USE_FLOCK):
455 Move to configure.
456
0235128c 4572010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
458
459 * Version 23.2 released.
460
0235128c 4612010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
462
463 * composite.c (autocmp_chars): Save point as marker before calling
464 auto-composition-function (Bug#5984).
465
466 * lisp.h (restore_point_unwind): Add prototype.
467
468 * fileio.c (restore_point_unwind): Remove static attribute.
469
0235128c 4702010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
471
472 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
473 new feature of libotf and m17n-flt.
0235128c
SM
474 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
475 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
476 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
477 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
478 that OUT is NULL. Use OTF_drive_gsub_with_log and
479 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
480 OTF_drive_gpos.
481 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
482 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
483 Setup mflt_enable_new_feature and mflt_try_otf.
484
4721152c
J
4852010-05-08 Jan Djärv <jan.h.d@swipnet.se>
486
487 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
488
489 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
490 box and toolbar (Bug #6139).
491 (xg_create_tool_bar): Remove comment (Bug #6139).
492 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
493 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
494
ee0a16cf
JB
4952010-05-08 Juanma Barranquero <lekktu@gmail.com>
496
497 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
498 Update dependencies.
499
96d79611
EZ
5002010-05-08 Eli Zaretskii <eliz@gnu.org>
501
502 * fringe.c (update_window_fringes): Set up truncation bitmaps for
503 R2L lines.
504
40c17879
GM
5052010-05-08 Glenn Morris <rgm@gnu.org>
506
7b42b29f
GM
507 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
508
40c17879
GM
509 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
510 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
511 (termcapobj): Replace with TERMCAP_OBJ.
512 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
513 (LIBES): Use LIBS_TERMCAP as a variable.
514
515 * s/freebsd.h (osreldate.h): No longer include, since this file
516 does not use __FreeBSD_version any more.
517
518 * s/aix4-2.h (TERMINFO):
519 * s/cygwin.h (TERMINFO):
520 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
521 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
522 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
523 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
524 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
525 * s/irix6-5.h (TERMINFO):
526 * s/netbsd.h (LIBS_TERMCAP):
527 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
528 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
529 * s/usg5-4.h (TERMINFO):
530 Move to configure.
531
94b612ad
SM
5322010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
533
534 * eval.c (unbind_to): Don't unbind a local binding into the global
535 binding when the local binding disappeared. Inversely, don't unbind
536 a global binding into a newly created local binding.
537 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
538 can specify the frame to use, when applicable. Adjust callers.
539
15e12598
VB
5402010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
541 Stefan Monnier <monnier@iro.umontreal.ca>
542
543 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
544
f724825e
EZ
5452010-05-07 Eli Zaretskii <eliz@gnu.org>
546
5cba3209
EZ
547 * w32fns.c: Include w32.h.
548 (Fw32_shell_execute): Decode the error message before passing it
549 to `error'. (Bug#6126)
550
d16bdfc3
EZ
551 * msdos.c (dos_set_window_size):
552 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
553 instead of `XSYMBOL (foo)->value'.
554
59d93e87
EZ
5552010-05-07 Eli Zaretskii <eliz@gnu.org>
556
9fdec8bc
EZ
557 Fix the MS-DOS build, broken by autoconfiscation.
558
559 * Makefile.in: Don't use Make-style comments past the "start of
560 cpp stuff" line.
561 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
562
563 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
564 edited directly by msdos/sed1v2.inp).
f724825e 565
2f86b22b
GM
5662010-05-07 Glenn Morris <rgm@gnu.org>
567
568 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
569 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
570 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
571 move out of cpp section.
572 * s/freebsd.h (LD_SWITCH_SYSTEM):
573 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
574 * s/netbsd.h (LD_SWITCH_SYSTEM):
575 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
576
49ebbd65
DN
5772010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
578
579 Define LIB_STANDARD and START_FILES using autoconf.
580 * s/usg5-4.h (LIB_STANDARD):
581 * s/netbsd.h (START_FILES):
582 * s/irix6-5.h (LIB_STANDARD):
583 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
584 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
585 * s/freebsd.h (START_FILES):
586 * s/darwin.h (START_FILES):
587 * s/cygwin.h (START_FILES):
588 * s/aix4-2.h (LIB_STANDARD):
589 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
590 * Makefile.in (STARTFILES): Rename to START_FILES, define using
591 autoconf, not cpp.
592
d43c06d6
DN
5932010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
594
28823648
DN
595 Remove NEED_BSDTTY and NEED_UNISTD_H.
596 * s/hpux10-20.h (NEED_BSDTTY): Remove.
597 * s/aix4-2.h (NEED_UNISTD_H): Remove.
598 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
599 <sys/ptyio.h> and <unistd.h>.
600
aca00430
DN
601 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
602
d43c06d6
DN
603 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
604 * s/gnu.h (START_FILES): Remove empty definition.
605
3e56b11d
JD
6062010-05-06 Jan Djärv <jan.h.d@swipnet.se>
607
608 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
609
e3cf0cde
GM
6102010-05-06 Glenn Morris <rgm@gnu.org>
611
612 * Makefile.in (CPP, LN_S): Remove unused variables.
613
774b9a60
SM
6142010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
615
616 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
617
4ab92842
LM
6182010-05-05 Lawrence Mitchell <wence@gmx.li>
619
620 * m/sparc.h: Fix typo in earlier change.
621
178f2507
SM
6222010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
623
624 Misc tweaks.
625 * eval.c (Fdefvaralias): Remove unintended nested if.
626 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
627
80f00217 6282010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
629
630 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
631
ef03a4e6
DN
6322010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
633
58eb6cf0
DN
634 Remove BSD_PGRPS.
635 * s/bsd-common.h (BSD_PGRPS): Remove undef.
636 * s/gnu-linux.h (BSD_PGRPS): Remove.
637 * term.c (dissociate_if_controlling_tty):
638 * sysdep.c (narrow_foreground_group, widen_foreground_group)
639 (init_sys_modes, reset_sys_modes):
640 * emacs.c (main):
641 * callproc.c (Fcall_process, child_setup): Remove code depending
642 on BSD_PGRPS.
643
ef03a4e6
DN
644 Remove POSIX_SIGNALS.
645 * s/usg5-4.h (POSIX_SIGNALS):
646 * s/netbsd.h (POSIX_SIGNALS):
647 * s/msdos.h (POSIX_SIGNALS):
648 * s/ms-w32.h (POSIX_SIGNALS):
649 * s/hpux11.h (POSIX_SIGNALS):
650 * s/gnu.h (POSIX_SIGNALS):
651 * s/gnu-linux.h (POSIX_SIGNALS):
652 * s/freebsd.h (POSIX_SIGNALS):
653 * s/darwin.h (POSIX_SIGNALS):
654 * s/cygwin.h (POSIX_SIGNALS):
655 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
656 * s/unixware.h:
657 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
658 * process.c (create_process):
659 * syssignal.h:
660 * sysdep.c (wait_for_termination, init_signals):
661 * process.c (create_process):
662 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
663 remove all code that assumes the contrary.
664
49628785
GM
6652010-05-04 Glenn Morris <rgm@gnu.org>
666
27a2cdfc
GM
667 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
668 variable.
669 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
670 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
671 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
672 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
673 LD_SWITCH_SYSTEM_tmp.
674 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
675 New variables, set by configure.
676
eb21eab5
GM
677 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
678 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
679 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
680 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
681 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
682
49628785
GM
683 * s/aix4-2.h (C_SWITCH_SYSTEM):
684 * m/alpha.h (C_SWITCH_MACHINE):
685 Move to configure.in.
686 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
687 New variables, set by configure.
688 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
689 $c_switch_machine and $c_switch_system.
690
7dff330b
DN
6912010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
692
693 * s/hpux10-20.h (LIB_STANDARD): New definition.
694 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
695 on it, not used anymore.
696
53967e09
CY
6972010-05-03 Chong Yidong <cyd@stupidchicken.com>
698
699 * eval.c (internal_condition_case_n): Rename from
700 internal_condition_case_2.
701 (internal_condition_case_2): New function.
702
703 * xdisp.c (safe_call): Use internal_condition_case_n.
704
705 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
706 (internal_delete_file, Frename_file): Callers changed.
707
708 * buffer.c (Fkill_buffer):
709 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
710
711 * lisp.h: Update prototypes.
712
3dee6fdb
GM
7132010-05-03 Glenn Morris <rgm@gnu.org>
714
715 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
716 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
717 (LIBXT): Set with configure, not cpp.
718 (LIBX): Remove.
719 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
720
a101e0fb
DN
7212010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
722
723 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
724 The FreeBSD is not needed, the default works, Solaris version is
725 not needed, and the remaining case is not supported by configure.
726
f63d0028
JD
7272010-05-02 Jan Djärv <jan.h.d@swipnet.se>
728
729 * xsmfns.c (CHDIR_OPT): New define.
730 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
731 restarting emacs.
732
733 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
734 shut_down_emacs.
735
736 * emacs.c (USAGE1): Mention --chdir.
737 (main): Handle --chdir.
738 (standard_args): Add --chdir.
739 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
740 #5552).
741
e4814a9f
DN
7422010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
743
cd03c74a
DN
744 Remove LD_SWITCH_MACHINE.
745 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
746 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
747
c3a398a1
DN
748 Clean up IRIX code.
749 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
750 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
751
87e7285c
DN
752 Clean up AIX code.
753 * m/ibmrs6000.inp: Remove file, unused.
754 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
755 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
756 definition ...
757 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
758
80f00217
JB
759 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
760 unused.
e4814a9f 761
59ca28de
EZ
7622010-05-01 Eli Zaretskii <eliz@gnu.org>
763
197daef4
EZ
764 Emulate POSIX_SIGNALS on MS-Windows.
765
766 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
767 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
768
769 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
770 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
771 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
772
80f00217
JB
773 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
774 New stubs.
197daef4 775
af7c7572
EZ
776 Miscellaneous fixes of bidi display.
777
59ca28de
EZ
778 * xdisp.c (find_row_end): New function, refactored from display_line.
779 (display_line): Use it.
017ea819
EZ
780 (extend_face_to_end_of_line): In almost-filled rows, extend only
781 if the row is R2L and not continued.
166e930d 782 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 783 Preserve overlay and string info in row->end.
166e930d
EZ
784 (insert_left_trunc_glyphs): Support addition of left truncation
785 glyphs to R2L rows.
b47e0dcf 786 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
787 glyph between adjacent windows. Fix a crash when a display string
788 is continued to the next line. Don't return zero if cursor was
789 found by `cursor' property of a display string.
b47e0dcf
EZ
790 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
791 test for that explicitly.
59ca28de 792
7acac9f4
GM
7932010-05-01 Glenn Morris <rgm@gnu.org>
794
795 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
796 for clarity.
797 (OTHER_OBJ): Remove.
798 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
799 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
800
45841e65
KK
8012010-05-01 Karel Klíč <kklic@redhat.com>
802
803 * fileio.c (Ffile_selinux_context): Context functions may return null.
804
afc61943
DN
8052010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
806
80f00217 807 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 808
5a1bb006
GM
8092010-04-30 Glenn Morris <rgm@gnu.org>
810
811 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
812 (OTHER_OBJ): Define as a separate variable, for clarity.
813
210af043
J
8142010-04-30 Jan Djärv <jan.h.d@swipnet.se>
815
816 * xsettings.c: include limits.h and update file comment.
817
0a7df391
GM
8182010-04-30 Glenn Morris <rgm@gnu.org>
819
d5096f16
GM
820 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
821 Set with configure, not cpp.
822 (LIBW): Remove, replace with $TOOLKIT_LIBW.
823
7eb1ac33
GM
824 * Makefile.in (mallocobj): Remove.
825 (otherobj): Simplify using @OTHER_OBJ@.
826
517d086b
GM
827 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
828 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
829 Don't bother making nsgui.h dependency platform-specific.
830
0a7df391
GM
831 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
832
d6d23852
SM
8332010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
834
d2630aef
SM
835 * process.c (read_process_output, exec_sentinel): Don't burp if the
836 sentinel/filter kills the current buffer (bug#6060).
837
f9dddf52 838 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
839 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
840 Remove unused var `args'.
841 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
842 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
843 * doc.c (store_function_docstring): Use XSETCAR.
844
f1e3642a
GM
8452010-04-28 Glenn Morris <rgm@gnu.org>
846
faf535f8
GM
847 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
848 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
849
c40f9449
GM
850 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
851
658f86ca
GM
852 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
853 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
854
bc0b5f61
GM
855 * Makefile.in (FONT_OBJ): New, set by configure.
856 (FONT_DRIVERS): Use $FONT_OBJ.
857
294c50a0
GM
858 * Makefile.in (LIBXMU): Set with configure, not cpp.
859 * s/aix4-2.h (LIBXMU):
860 * s/hpux10-20.h (LIBXMU):
861 Remove definition, now set in configure.
862
e6ec4e99
GM
863 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
864
f1e3642a
GM
865 * m/amdx86-64.h [i386]: Move this test to configure.in.
866
c6ea2936
GM
8672010-04-27 Glenn Morris <rgm@gnu.org>
868
8fdac2c3
GM
869 * Makefile.in (LIBXTR6): Set with configure, not cpp.
870 * s/unixware.h (NEED_LIBW): Remove definition.
871
986fb647
GM
872 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
873 (TOOLKIT_LIBW): New, set by configure.
874 (@X_TOOLKIT_TYPE@): No longer define it.
875
c6ea2936
GM
876 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
877 (MOTIF_LIBW): Set with configure, not cpp.
878 * s/aix4-2.h (LIB_MOTIF):
879 * s/gnu-linux.h (LIB_MOTIF):
880 * s/unixware.h (LIB_MOTIF): Move to configure.in.
881
aaa36002
DN
8822010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
883
884 Reduce CPP usage.
885 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
886 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
887 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
888 definitions and undefs. Inline definitions in the only user.
889 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 890
b678dd8b
GM
8912010-04-27 Glenn Morris <rgm@gnu.org>
892
76cda504
GM
893 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
894 since the defaults (set by the system file) are fine in most cases.
895 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
896 * m/ibms390x.h (START_FILES, LIB_STANDARD):
897 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
898 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
899 Remove definitions, since they are set correctly in s/gnu-linux.h.
900 * s/freebsd.h (START_FILES, LIB_STANDARD):
901 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
902 * s/hpux10-20.h (START_FILES):
903 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
904 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
905
b678dd8b
GM
906 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
907 (MOTIF_LIBW): Use $LIBXP.
908 (otherobj): Use $WIDGET_OBJ.
909
9452ded1
DN
9102010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
911
7e10844c
DN
912 * Makefile.in (LIBS_MACHINE): Remove, unused.
913
9452ded1
DN
914 Use autoconf instead of cpp for LIB_MATH.
915 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
916 * s/cygwin.h (LIB_MATH): Likewise.
917 * Makefile.in (LIB_MATH): Do not define with cpp.
918 (LIBES): Use autoconf for LIB_MATH.
919
fcebfc6a
KH
9202010-04-26 Kenichi Handa <handa@m17n.org>
921
922 * composite.c (Ffind_composition_internal): Fix the return value
923 for an automatic composition.
924
39e2ad1b
DN
9252010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
926
927 Remove all NO_ARG_ARRAY uses.
928 * fns.c (concat2, concat3, nconc2):
929 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
930 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
931 * m/xtensa.h (NO_ARG_ARRAY):
932 * m/template.h (NO_ARG_ARRAY):
933 * m/sparc.h (NO_ARG_ARRAY):
934 * m/sh3.h (NO_ARG_ARRAY):
935 * m/mips.h (NO_ARG_ARRAY):
936 * m/macppc.h (NO_ARG_ARRAY):
937 * m/iris4d.h (NO_ARG_ARRAY):
938 * m/intel386.h (NO_ARG_ARRAY):
939 * m/ibms390x.h (NO_ARG_ARRAY):
940 * m/ibms390.h (NO_ARG_ARRAY):
941 * m/ibmrs6000.h (NO_ARG_ARRAY):
942 * m/ia64.h (NO_ARG_ARRAY):
943 * m/hp800.h (NO_ARG_ARRAY):
944 * m/arm.h (NO_ARG_ARRAY):
945 * m/amdx86-64.h (NO_ARG_ARRAY):
946 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
947
adf4f59c
EZ
9482010-04-25 Eli Zaretskii <eliz@gnu.org>
949
6bdf5d65
EZ
950 * xdisp.c (display_line): Don't assume 2nd call to
951 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
952 (iterate_out_of_display_property): New function, body from pop_it.
953 (pop_it): Use it.
adf4f59c 954
dfbbda83
GM
9552010-04-24 Glenn Morris <rgm@gnu.org>
956
957 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
958 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
959 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
960 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
961
2d4018aa
EZ
9622010-04-24 Eli Zaretskii <eliz@gnu.org>
963
a49884a6
EZ
964 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
965 use `get_next_display_element' and `set_iterator_to_next' to
966 advance to the next character, when looking for the character that
967 begins the next row.
968
76db6fcc 969 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
970 definition of "struct Lisp_Symbol".
971
70eab5c1
GM
9722010-04-24 Glenn Morris <rgm@gnu.org>
973
974 * Makefile.in (CRT_DIR): New variable, set by configure.
975 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
976 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
977
1ad4cc3d
DN
9782010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
979
e769f484
DN
980 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
981
4196ff33
DN
982 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
983
879b0ee4
DN
984 Remove redundant flags.
985 * s/freebsd.h (C_SWITCH_SYSTEM):
986 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
987 * s/netbsd.h (C_SWITCH_SYSTEM):
988 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
989 of these.
990
03cbbcb8
DN
991 Simplify m/intel386.h.
992 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
993 user: ecrt0.c.
994 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
995 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
996 the only user: s/unixware.h.
997 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
998 from m/intel386.h.
999 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
1000 moved here from m/intel386.h.
1001
1ad4cc3d
DN
1002 * m/mips.h: Remove #if 0 code.
1003
8785b888
EZ
10042010-04-23 Eli Zaretskii <eliz@gnu.org>
1005
728588cc
EZ
1006 Fix display of composed characters from L2R scripts in bidi buffers.
1007 * xdisp.c (set_iterator_to_next, next_element_from_composition):
1008 After advancing IT past the composition, resync the bidi iterator
1009 with IT's position. (Bug#5977)
1010
a63f80b4
DN
10112010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
1012
1013 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
1014 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
1015
ff5dec5c
SM
10162010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
1017
1018 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
1019
8785b888
EZ
10202010-04-23 Eli Zaretskii <eliz@gnu.org>
1021
58ccf243 1022 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
1023 * xdisp.c (pop_it): When the stack is popped after displaying
1024 from a string, bidi-iterate to exit from the text portion covered
1025 by the `display' property or overlay. (Bug#5988, bug#5920)
1026
feeb1604
DN
10272010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
1028
8e324eb6
DN
1029 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
1030 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
1031
809fcaba
DN
1032 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
1033 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
1034
ed710380
DN
1035 Simplify STARTFILES definition.
1036 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
1037 relying on Makefile.in to define it.
1038 * s/cygwin.h (START_FILES): Likewise.
1039 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
1040
feeb1604
DN
1041 Clean up Solaris code.
1042 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
1043 (LIB_MOTIF): Remove, configure takes care of this.
1044 (NOT_USING_MOTIF): Remove, unused.
1045 * xrdb.c: Remove #if 0-ed #include.
1046 (SYSV): Remove conditional for old SysV.
1047 * sysdep.c (closedir): Remove conditional code for Solaris,
1048 Solaris has closedir.
1049
a0d0b563
JD
10502010-04-22 Jan Djärv <jan.h.d@swipnet.se>
1051
1052 * xsettings.c (read_and_apply_settings): Check if current_font is
1053 NULL before strcmp (Bug#6001).
1054
56bae7c7
DN
10552010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
1056
1057 Clean up HP-UX files.
1058 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
1059 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
1060 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
1061 * s/hpux10-20.h: ... to the only user, here.
1062
372b7a95
EZ
10632010-04-21 Eli Zaretskii <eliz@gnu.org>
1064
1065 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
1066 use buffer-local values of paragraph-start and paragraph-separate.
1067 <paragraph_start_re, paragraph_separate_re>: Rename from
1068 fallback_paragraph_start_re and fallback_paragraph_separate_re.
1069 (Bug#5992)
1070
f904c0f9
JD
10712010-04-21 Jan Djärv <jan.h.d@swipnet.se>
1072
1073 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
1074 current_tool_bar_style are new.
1075 (store_config_changed_event): Rename from store_font_changed_event.
1076 (XSETTINGS_TOOL_BAR_STYLE): New define.
1077 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
1078 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
1079 HAVE_XFT.
1080 (something_changedCB): store_font_changed_event is now
1081 store_config_changed_event
1082 (parse_settings): Rename from parse_xft_settings. Read
1083 non-xft xsettings outside #ifdef HAVE_XFT.
1084 (read_settings): Renamed from read_xft_settings.
1085 (apply_xft_settings): Take current settings as parameter. Do not
1086 call read_(xft)_settings.
1087 (read_and_apply_settings): New function.
1088 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
1089 read_and_apply_settings if there are settings to be read.
1090 (init_xsettings): Renamed from init_xfd_settings.
1091 Call read_and_apply_settings unconditionally.
1092 (xsettings_initialize): Call init_xsettings.
1093 (Ftool_bar_get_system_style): New function.
1094 (syms_of_xsettings): Define Qmonospace_font_name and
1095 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 1096 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 1097 dynamic-setting.
31a01b90 1098 Move misplaced HAVE_GCONF
f904c0f9
JD
1099
1100 * xsettings.h (Ftool_bar_get_system_style): Declare.
1101
1102 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
1103 Qtext, Qboth, Qboth_horiz are new.
1104 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
1105 Vtool_bar_style, tool_bar_max_label_size.
1106
1107 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
1108
1109 * keyboard.c: QClabel is new.
1110 (parse_tool_bar_item): Take out QClabel from tool bar items.
1111 Try to construct a label if ther is no QClabel.
1112 (syms_of_keyboard): Intern :label as QClabel.
1113
1114 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
1115 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
1116 New.
1117
1118 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
1119 dynamic-setting.el.
1120
1121 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
1122 (xg_make_tool_item, xg_show_toolbar_item): New function.
1123 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
1124 Call xg_make_tool_item to make a tool bar item.
1125 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
1126
1127 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
1128 into account for toolbars.
1129
c632dfda
JD
11302010-04-21 Jan Djärv <jan.h.d@swipnet.se>
1131
1132 * data.c (make_blv): Declarations before code (Bug#5993).
1133
10efe302
GM
11342010-04-21 Glenn Morris <rgm@gnu.org>
1135
1136 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
1137 Define using autoconf, not cpp.
1138 (LIBXSM): New variable, set by autoconf.
1139 (LIBXT): Use $LIBXSM.
1140
4285ac5a
DN
11412010-04-21 Dan Nicolaescu <local_user@dannlt>
1142
3ec759e7
DN
1143 Remove NOMULTIPLEJOBS, unused.
1144 * s/template.h (NOMULTIPLEJOBS):
1145 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
1146
4285ac5a
DN
1147 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
1148 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
1149 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
1150 detects -znocombreloc and passes it to the linker
1151 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
1152
2807228d
GM
11532010-04-21 Glenn Morris <rgm@gnu.org>
1154
1155 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
1156
574c05e2
KK
11572010-04-21 Karel Klíč <kklic@redhat.com>
1158
1159 * Makefile.in (LIBSELINUX_LIBS): New.
1160 (LIBES): Add $LIBSELINUX_LIBS.
1161 * eval.c, lisp.h (call7): New function.
1162 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
1163 (Ffile_selinux_context, Fset_file_selinux_context):
1164 New functions.
1165 (Fcopy_file): New parameter preserve-selinux-context.
1166 (Frename_file): Preserve selinux context when renaming by copy-file.
1167
91eac4bb 11682010-04-21 Juanma Barranquero <lekktu@gmail.com>
4e2af782 1169 Eli Zaretskii <eliz@gnu.org>
91eac4bb 1170
50426a04
JB
1171 Don't depend on cm.c or termcap.c on Windows, use stubs.
1172 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
1173 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
1174 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
1175 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
1176 (sys_tputs, sys_tgetstr): New stubs.
1177 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
1178 (tputs, tgetstr): New; define to sys_*.
91eac4bb 1179
938efb77
JB
11802010-04-20 Juanma Barranquero <lekktu@gmail.com>
1181
1182 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
1183
b4bf28b7
SM
11842010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
1185
8b1e1112
SM
1186 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
1187 Just signal a warning rather than an error when inside a let.
1188 (Fmake_variable_frame_local): Add the same test.
1189
933ac235
SM
1190 * font.c (syms_of_font): Make the style table vars read-only.
1191
b4bf28b7
SM
1192 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
1193 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
1194
1195 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
1196
93d68d0c
EZ
11972010-04-20 Eli Zaretskii <eliz@gnu.org>
1198
1199 Fix R2L paragraph display on TTY.
1200
1201 * xdisp.c (unproduce_glyphs): New function.
1202 (display_line): Use it when produced glyphs are discarded from R2L
1203 glyph rows.
1204 (append_composite_glyph): In R2L rows, prepend the glyph rather
1205 than appending it.
1206
1207 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
1208 rather than append it. Set up the resolved_level and bidi_type
1209 attributes of the appended glyph.
283ccc18
EZ
1210 (produce_special_glyphs): Mirror the backslash continuation
1211 character in R2L lines.
93d68d0c 1212
283ccc18 1213 Implement display of R2L paragraphs in GUI sessions.
26cdf528 1214
283ccc18
EZ
1215 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
1216 append_stretch_glyph.
1217 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
1218 off-by-one error in computing x at end of text in the row.
1219 (append_stretch_glyph): In reversed row, prepend the glyph rather
1220 than append it. Set resolved_level and bidi_type of the glyph.
1221 (extend_face_to_end_of_line): If the row is reversed, prepend a
1222 stretch glyph whose width is such that the rightmost glyph will be
1223 drawn at the right margin of the window. Fix off-by-one error on
1224 TTY frames in testing whether a line needs face extension. Fix
1225 face extension at ZV. If this is the last glyph row, use
1226 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
1227 region face.
1228 (set_cursor_from_row, display_line): Use
26cdf528
EZ
1229 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
1230 row->continuation_lines_width.
283ccc18
EZ
1231 (next_element_from_buffer): Don't call bidi_paragraph_init if we
1232 are at ZV. Fixes a crash when reseated to ZV by
1233 try_window_reusing_current_matrix.
45903529
EZ
1234 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
1235 which happens with R2L glyph rows. Fixes a crash when inserting a
1236 character at end of an R2L line.
283ccc18
EZ
1237 (set_cursor_from_row): Don't be fooled by truncated rows: don't
1238 treat them as having zero-width characters. Improve comments.
1239 Don't reverse pos_before and pos_after for reversed glyph rows.
1240 Set cursor.x to negative value when the cursor might be on the
1241 left fringe.
1242 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
1243 left fringe, not the right one.
f951a506
EZ
1244 (notice_overwritten_cursor, draw_phys_cursor_glyph)
1245 (erase_phys_cursor): For reversed cursor_row, support cursor on
1246 the left fringe.
1247
283ccc18
EZ
1248 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
1249 of continuation indicators on the fringes.
1250 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
1251 left fringe.
1252
f951a506
EZ
1253 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
1254 draw cursor on the left fringe.
1255
1256 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
1257 cursor on the left fringe.
1258
f951a506
EZ
1259 * dispnew.c (update_text_area): Handle reversed desired rows when
1260 the cursor is on the left fringe.
1261 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
1262 below, not by 0, for when the cursor is on the left fringe.
1263
3bb49aaf
JD
12642010-04-20 Jan Djärv <jan.h.d@swipnet.se>
1265
1266 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
1267 widget is a scrollbar.
1268
c0be27fd
KH
12692010-04-20 Kenichi Handa <handa@m17n.org>
1270
1271 * charset.c (char_charset): Consider Vcharset_non_preferred_head
1272 only when the arg CHARSET_LIST is nil.
1273
ce5b453a
SM
12742010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
1275
1276 Make variable forwarding explicit rather the using special values.
1277 Basically, this makes the structure of buffer-local values and object
1278 forwarding explicit in the type of Lisp_Symbols rather than use
1279 special Lisp_Objects for that. This tends to lead to slightly more
1280 verbose code, but is more C-like, simpler, and makes it easier to make
1281 sure we handled all cases, among other things by letting the compiler
1282 help us check it.
1283 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
1284 Removing forwarding objects.
1285 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
1286 (struct Lisp_Symbol): Make the various forms of variable-forwarding
1287 explicit rather than hiding them inside Lisp_Object "values".
1288 (XFWDTYPE): New macro.
1289 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
1290 (XBUFFER_LOCAL_VALUE): Remove.
1291 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
1292 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
1293 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
1294 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
1295 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
1296 Remove the Lisp_Misc_* header.
1297 (struct Lisp_Buffer_Local_Value): Redefine.
1298 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
1299 (struct Lisp_Misc_Any): Add filler to get the right size.
1300 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
1301 Lisp_Intfwd.
1302 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
1303 (DEFVAR_KBOARD): Allocate a forwarding object.
1304 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
1305 (let_shadows_global_binding_p): New function.
1306 (union Lisp_Val_Fwd): New type.
1307 (make_blv): New function.
1308 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
1309 (store_symval_forwarding, swap_in_global_binding, Fboundp)
1310 (swap_in_symval_forwarding, find_symbol_value, Fset)
1311 (let_shadows_buffer_binding_p, set_internal, default_value)
1312 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
1313 (Fkill_local_variable, Fmake_variable_frame_local)
1314 (Flocal_variable_p, Flocal_variable_if_set_p)
1315 (Fvariable_binding_locus):
1316 * xdisp.c (select_frame_for_redisplay):
1317 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
1318 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
1319 * frame.c (store_frame_param):
1320 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
1321 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
1322 value structure.
1323 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
1324 (clone_per_buffer_values): Only adjust markers into the current buffer.
1325 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
1326 (Fbuffer_local_value, set_buffer_internal_1)
1327 (swap_out_buffer_local_variables):
1328 Adapt to the new symbol value structure.
1329 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
1330 (defvar_per_buffer): Take a new arg for the fwd object.
1331 (buffer_lisp_local_variables): Return a proper alist (different fix
1332 for bug#4138).
1333 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
1334 (Fgarbage_collect): Don't handle buffer_defaults specially.
1335 (mark_object): Handle new symbol value structure rather than the old
1336 special Lisp_Misc_* objects.
1337 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
1338 * term.c (set_tty_color_mode):
1339 * bidi.c (bidi_initialize): Don't access the ->value field directly.
1340 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
1341 a buffer_local_flags.
1342 * print.c (print_object): Get rid of impossible forwarding objects.
1343
fd3998ff
EZ
13442010-04-19 Eli Zaretskii <eliz@gnu.org>
1345
1346 * bidi.c (bidi_get_type, bidi_get_category)
1347 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
1348 (bidi_type_of_next_char, bidi_level_of_next_char):
1349 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 1350
e42cd1a7
JB
13512010-04-19 Juanma Barranquero <lekktu@gmail.com>
1352
1353 * dired.c (Ffile_attributes): Fix typo in docstring.
1354
6e104790 13552010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
1356
1357 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
1358 NSInteger (Bug#5811).
1359
6e104790 13602010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
1361
1362 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
1363 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
1364
6e104790 13652010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
1366
1367 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
1368
6e104790
SM
13692010-04-19 Chong Yidong <cyd@stupidchicken.com>
1370
1371 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
1372 terminal frames (Bug#5837).
1373
37dcfea0
EZ
13742010-04-19 Eli Zaretskii <eliz@gnu.org>
1375
d1da276f
EZ
1376 * .gdbinit (xsubchartable): New command.
1377
37dcfea0
EZ
13782010-04-19 Eli Zaretskii <eliz@gnu.org>
1379
1380 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 1381 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
1382 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
1383 and
1384 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
1385
e9515805
SM
13862010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
1387
1388 * alloc.c (Fpurecopy): Hash-cons if requested.
1389 (syms_of_alloc): Update purify-flag docstring.
1390
22aa44a8
JD
13912010-04-18 Jan Djärv <jan.h.d@swipnet.se>
1392
1393 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
1394 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
1395
ebb5722e
EZ
13962010-04-17 Eli Zaretskii <eliz@gnu.org>
1397
1398 Fix a crash when an NSM character is inserted at BEGV.
1399
1400 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
1401 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
1402 NEUTRAL_B or UNKNOWN_BT.
1403
0f4442ef
EZ
14042010-04-16 Eli Zaretskii <eliz@gnu.org>
1405
1406 * xdisp.c (set_cursor_from_row): Don't consider possibility of
1407 other rows with cursor unless they are different from this row and
1408 this row is part of a continued line. (Bug#5943)
1409
7d4e45f8
DN
14102010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
1411
1412 * s/freebsd.h: Restore osreldate.h include.
1413 Suggested by Naohiro Aota.
1414
5ba5ec85
J
14152010-04-16 Jan Djärv <jan.h.d@swipnet.se>
1416
1417 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
1418
20af301d
CY
14192010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
1420
1421 * s/cygwin.h: Avoid linking against static libgcc.
1422
a4b000fb
JL
14232010-04-15 Juri Linkov <juri@jurta.org>
1424
1425 * window.c: Add Qscroll_command.
1426 Remove Vscroll_preserve_screen_position_commands.
1427 (window_scroll_pixel_based, window_scroll_line_based): Check the
1428 `scroll-command' property on the last command instead of searching
1429 the last command in Vscroll_preserve_screen_position_commands.
1430 (syms_of_window): Initialize and staticpro `Qscroll_command'.
1431 Put Qscroll_command property on Qscroll_up and Qscroll_down.
1432 (scroll-preserve-screen-position): Doc fix.
1433 (Vscroll_preserve_screen_position_commands): Remove variable.
1434
bc319ba4
DN
14352010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
1436
6bb24457
DN
1437 * xdisp.c (message): Do not use NO_ARG_ARRAY.
1438
19d4c244
DN
14392010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
1440
1441 Reduce cpp use in Makefile.in.
1442 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
1443 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
1444 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
1445 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
1446 (CRT0_COMPILE): Remove, inline it in the only user.
1447
32129746
JL
14482010-04-14 Juri Linkov <juri@jurta.org>
1449
1450 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
1451 `scroll-up-command' and `M-v' from `scroll-down' to
1452 `scroll-down-command'.
1453
9013a7f8
JL
14542010-04-14 Juri Linkov <juri@jurta.org>
1455
1456 * window.c (Vscroll_preserve_screen_position_commands): New variable
1457 with the default value as the list of Qscroll_down and Qscroll_up.
1458 (window_scroll_pixel_based, window_scroll_line_based): Search the
1459 last command in the list Vscroll_preserve_screen_position_commands
1460 instead of comparing with Qscroll_up and Qscroll_down.
1461
4bef8d26
JD
14622010-04-13 Jan Djärv <jan.h.d@swipnet.se>
1463
92848133
JD
1464 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
1465 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
1466 does that.
1467
4bef8d26
JD
1468 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
1469 to zero.
1470
58b963f7
SM
14712010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
1472
84164a0d
SM
1473 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
1474
2b0a91e7
SM
1475 Try to solve the problem of spurious EOF chars in long lines of text
1476 sent to interactive subprocesses.
1477 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
1478 (system_process_attributes): Remove unused var `ttotal'.
1479 * process.c (send_process): Don't bother breaking long line with EOF
1480 chars when talking to ttys any more.
1481 (wait_reading_process_output): Output a warning when called in such
1482 a way that it could block without being interruptible.
1483
58b963f7
SM
1484 Try to detect file modification within the same second.
1485 * buffer.h (struct buffer): New field modtime_size.
1486 * buffer.c (reset_buffer): Initialize it.
1487 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
1488 (Fverify_visited_file_modtime): Check it.
1489 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
1490 (Fset_visited_file_modtime): Set (or clear) it.
1491
01f5787b
SM
14922010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
1493
1494 * process.c (status_notify): Remove unused var `ro'.
1495
83725342
JD
14962010-04-12 Jan Djärv <jan.h.d@swipnet.se>
1497
1498 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
1499 more than one visual (Bug#5938).
1500
b9465836
DN
15012010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
1502
50426a04
JB
1503 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
1504 Undefine.
b9465836 1505
8d9c8ece
DN
15062010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
1507
b1f52161
DN
1508 Remove C_SWITCH_SYSTEM_TEMACS.
1509 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
1510 (malloc, realloc, free): Use emacs, not temacs for conditional
1511 definition.
1512
1513 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
1514 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
1515
8d9c8ece
DN
1516 Use autoconf, not cpp for some variables.
1517 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
1518 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
1519 (ALL_CFLAGS): Use them as make variables.
1520 (really-lwlib, really-oldXMenu): Do not pass them.
1521
1ecb2d3f
JD
15222010-04-11 Jan Djärv <jan.h.d@swipnet.se>
1523
1524 * xmenu.c (apply_systemfont_to_dialog): New.
1525 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
1526
3a4fa2f2
SM
15272010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
1528
97e53006
SM
1529 * process.c (exec_sentinel): Preserve current-buffer.
1530
3a4fa2f2
SM
1531 * process.c (read_process_output): Move the save-current-buffer to
1532 apply to both the filter and the non-filter branches.
1533
88df7221
DN
15342010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
1535
1536 * s/msdos.h (UNEXEC): New definition.
1537
5634ff85
YM
15382010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1539
6eff5c3d
YM
1540 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
1541 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
1542
1543 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
1544 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
1545 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
1546 TRY_WINDOW_CHECK_MARGINS.
1547
1548 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
1549 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
1550 width only when it is for padding.
5634ff85 1551
b13aef54
J
15522010-04-09 Jan Djärv <jan.h.d@swipnet.se>
1553
1554 * xfns.c (Fx_show_tip): Call try_window in a loop until
1555 fonts_changed_p is zero (Bug#2423).
1556
21d28484
EZ
15572010-04-08 Eli Zaretskii <eliz@gnu.org>
1558
1559 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
1560 the end of TEXT_AREA. (Bug#5856)
1561
0269ef77
JD
15622010-04-08 Jan Djärv <jan.h.d@swipnet.se>
1563
1564 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
1565 HAVE_GCONF.
1566
5930fe97
EZ
15672010-04-08 Eli Zaretskii <eliz@gnu.org>
1568
1569 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
1570 prev.orig_type, for resolving type of NSM. (Bug#5858)
1571
99852628
JD
15722010-04-08 Jan Djärv <jan.h.d@swipnet.se>
1573
1574 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
1575 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
1576 in current_font.
1577 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
1578 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
1579 New functions.
1580 (syms_of_xsettings): Initialize current_font.
1581 defsubr Sfont_get_system_normal_font.
99852628
JD
1582
1583 * xsettings.h (Ffont_get_system_normal_font,
1584 xsettings_get_system_normal_font): Declare.
1585
1586 * xfns.c (extern xlwmenu_default_font): Remove.
1587 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
1588 to xlwmenu.c.
1589
1590 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
1591 menu items in UTF-8.
1592
1593 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
1594 (apply_systemfont_to_menu): New function.
1595 (set_frame_menubar, create_and_show_popup_menu): Call
1596 apply_systemfont_to_menu.
1597
7fc874c4
J
15982010-04-07 Jan Djärv <jan.h.d@swipnet.se>
1599
1600 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
1601 FRAME_LINE_TO_PIXEL_Y.
1602
1603 * xterm.c (x_set_window_size_1): Don't add border_width/height to
1604 pixelwidth/height.
1605
863bf481
DN
16062010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
1607
5e5a3b92
DN
1608 Simplify code for HP machines.
1609 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
1610 for GNU_LINUX, not needed.
1611 (UNEXEC, NEED_BSDTTY): Move definitions...
1612 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
1613
863bf481
DN
1614 * m/iris4d.h (UNEXEC): Move definition ...
1615 * s/irix6-5.h (UNEXEC): ... here.
1616
3e6bec3b
JD
16172010-04-04 Jan Djärv <jan.h.d@swipnet.se>
1618
1619 * xfns.c (set_machine_and_pid_properties): New function.
1620 (Fx_create_frame): Call set_machine_and_pid_properties.
1621
2912322b
SM
16222010-04-03 Eli Zaretskii <eliz@gnu.org>
1623
1502b819
EZ
1624 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
1625 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
1626 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
1627
2912322b
SM
1628 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
1629 in this function. (Bug#5703)
1630
16312010-04-03 Chong Yidong <cyd@stupidchicken.com>
1632
1633 * nsterm.h: Fix last change.
1634
c435b432
DN
16352010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
1636
a568f507
DN
1637 * m/intel386.h (NO_REMAP): Move definition ...
1638 * s/msdos.h (NO_REMAP): ... here.
1639
4cd9f6c2
DN
1640 * m/vax.h (CRT0_DUMMIES): Remove, unused.
1641
c435b432
DN
1642 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
1643 used on those platforms.
1644
42a2c622
DN
16452010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
1646
1647 Remove extern errno declarations.
1648 * xterm.c:
1649 * xrdb.c:
1650 * w32term.c:
1651 * unexec.c:
1652 * unexaix.c:
1653 * sysdep.c:
1654 * process.c:
1655 * lread.c:
1656 * keyboard.c:
1657 * floatfns.c:
1658 * filelock.c:
1659 * fileio.c:
1660 * emacs.c (main):
1661 * ecrt0.c:
1662 * dispnew.c:
1663 * callproc.c:
1664 * buffer.c: Remove errno extern declarations.
1665 * s/netbsd.h (NEED_ERRNO): Remove.
1666
8224f93d
DN
16672010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
1668
1669 Remove all uses of LIBX11_SYSTEM.
1670 * Makefile.in (LIBX11_SYSTEM): Remove.
1671 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
1672 instead.
1673
814062c7
EZ
16742010-04-01 Eli Zaretskii <eliz@gnu.org>
1675
ed68db4d
EZ
1676 Remove support for DJGPP v1.x (bug#5813).
1677
1678 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
1679 * s/msdos.h:
1680 * unexec.c (make_hdr, copy_text_and_data):
1681 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 1682 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
1683 (IT_set_terminal_modes, __write, _rename, gethostname)
1684 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
1685 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
1686 the value of __DJGPP__.
ed68db4d
EZ
1687 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
1688 compatibility code.
8224f93d
DN
1689 * lread.c:
1690 * gmalloc.c (memalign):
1691 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
1692 * emacs.c (main):
1693 * dosfns.c (init_dosfns):
ed68db4d
EZ
1694 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
1695
52f4d8d5
EZ
16962010-04-01 Eli Zaretskii <eliz@gnu.org>
1697
814062c7
EZ
1698 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
1699 string with `cursor' property comes from an `after-string'
1700 overlay. (Bug#5816)
1701
0dc2e11d
GM
17022010-04-01 Glenn Morris <rgm@gnu.org>
1703
1704 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
1705 Define as Makefile variables.
1706 (LIBX): Use above variables rather than directly using autoconf.
1707
1d29df59
DN
17082010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
1709
1710 Clean up BSD_SYSTEM use.
1711 * xterm.c:
1712 * process.c:
1713 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
1714 for including <sys/ioctl.h>.
1715 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
1716 code is only used for MSDOS.
1717
1546c559
JL
17182010-03-31 Juri Linkov <juri@jurta.org>
1719
1720 * image.c: Add `Qextension_data'.
1721 (syms_of_image): Initialize and staticpro `Qextension_data'.
1722 (Fimage_metadata): Rename from `Fimage_extension_data'.
1723 (gif_load): Put GIF extension data to the property
1724 `Qextension_data'.
1725
b8a1d5a1
CY
17262010-04-05 Chong Yidong <cyd@stupidchicken.com>
1727
1728 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
1729 terminal frames (Bug#5837).
1730
6521c534
CY
17312010-03-31 Chong Yidong <cyd@stupidchicken.com>
1732
1733 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
1734 * nsterm.h: Fix prototype.
1735
52c30783
EZ
17362010-03-31 Eli Zaretskii <eliz@gnu.org>
1737
1738 * xdisp.c (highlight_trailing_whitespace): Support highlight of
1739 trailing whitespace in right-to-left rows.
1740
855a0da7
SM
17412010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
1742
1743 Get rid of the direct_output optimizations.
1744 * keyboard.c (nonundocount): Remove extern declaration.
1745 (command_loop_1): Remove brittle optimisation for cheap and
1746 common operations.
1747 * xdisp.c (redisplay_internal): Don't bother checking
1748 redisplay_performed_directly_p any more.
1749 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
1750 any more.
1751 * dispnew.c (redisplay_performed_directly_p)
1752 (direct_output_for_insert, direct_output_forward_char):
1753 * dispextern.h (redisplay_performed_directly_p)
1754 (direct_output_for_insert, direct_output_forward_char): Remove.
1755 * cmds.c (nonundocount): Make it static.
1756
85738751 17572010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
1758
1759 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
1760
85738751 17612010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
1762
1763 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
1764 invisible (Bug#5766).
1765
85738751 17662010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 1767
855a0da7
SM
1768 * xdisp.c (x_consider_frame_title, update_window_cursor):
1769 Remove HAVE_NS conditionals.
194d44e7 1770 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
1771
1772 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
1773 filename for the title.
1774 (ns_set_doc_edited): Do nothing if the selected window is a
1775 minibuffer window.
1776
1777 * nsterm.h: Add prototypes for ns_set_name_as_filename and
1778 ns_set_doc_edited.
1779
1780 * nsterm.m: Remove unneeded prototype.
1781
85738751 17822010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
1783
1784 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
1785 in the DOC file. (Bug#5336)
1786
85738751 17872010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
1788
1789 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
1790
75d1428c
SM
17912010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
1792
1793 * window.c (keys_of_window): Remove redundant/overridden bindings.
1794
82043cfb
EZ
17952010-03-30 Eli Zaretskii <eliz@gnu.org>
1796
1797 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
1798 Restore original behavior when the iterator is not bidi_p.
1799
b5dd0ae7
DN
18002010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
1801
1802 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
1803
bd924a5d
EZ
18042010-03-30 Eli Zaretskii <eliz@gnu.org>
1805
1806 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
1807 are outside the range of cached character positions.
1808
3580374b
JB
18092010-03-30 Juanma Barranquero <lekktu@gmail.com>
1810
1811 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
1812
a7b02820
EZ
18132010-03-30 Eli Zaretskii <eliz@gnu.org>
1814
1815 Initial support for bidirectional editing.
1816
1817 * Makefile.in (obj): Include bidi.o.
1818 (bidi.o): New target.
1819
1820 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
1821 ($(BLD)/bidi.$(O)): New target.
1822
1823 * bidi.c: New file.
1824
1825 * buffer.h (struct buffer): New members bidi_display_reordering
1826 and bidi_paragraph_direction.
1827
1828 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
1829 and bidi_paragraph_direction.
1830 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
1831 and bidi-paragraph-direction.
1832 (Fbuffer_swap_text): Swap the values of
1833 bidi_display_reordering and bidi_paragraph_direction.
1834
1835 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
1836 (bidi_type_t, bidi_dir_t): New types.
1837 (bidi_saved_info, bidi_stack, bidi_it): New structures.
1838 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
1839 prev_stop, base_level_stop, and eol_pos.
1840 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
1841 (IT_STACK_SIZE): Enlarge to 5.
1842 (struct glyph_row): New member reversed_p.
1843 <string_buffer_position>: Update prototype.
1844 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
1845 glyph_row if bidi_it.paragraph_dir == R2L.
1846 (struct glyph): New members resolved_level and bidi_type.
1847
1848 * dispnew.c (direct_output_forward_char): Give up if we need bidi
1849 processing or buffer's direction is right-to-left.
1850 (prepare_desired_row): Preserve the reversed_p flag.
1851 (row_equal_p): Compare the reversed_p attributes as well.
1852
1853 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
1854 bidi_init_it and set it->paragraph_embedding from the current
1855 buffer's value of bidi_paragraph_direction.
1856 (reseat_1): Initialize bidi_it.first_elt.
1857 (set_iterator_to_next, next_element_from_buffer): Use the value of
1858 paragraph_embedding to determine the paragraph direction.
1859 (set_iterator_to_next): Under bidi reordering, call
1860 bidi_get_next_char_visually. Call bidi_paragraph_init if the
1861 new_paragraph flag is set in the bidi iterator.
1862 (next_element_from_buffer): If bidi_it.first_elt is set,
1863 initialize paragraph direction and find the first character to
1864 display in the visual order. If reseated to a middle of a line,
1865 prime the bidi iterator starting at the line's beginning. Handle
1866 the situation where we overstepped stop_charpos due to
1867 non-linearity of the bidi iteration. Likewise for when we back up
1868 beyond the previous stop_charpos. When moving across stop_charpos,
1869 record it in prev_stop.
1870 (display_line): Set row->end and it->start for the next row to the
1871 next character in logical order. Always extend reversed_p rows to
1872 the end of line, even if they end at ZV. Copy the reversed_p flag
1873 to the next glyph row. Keep calling set_cursor_from_row for
1874 bidi-reordered rows even if we already have a possible candidate
1875 for cursor position. Set row_end after all the row's glyphs have
1876 been produced, by looping over the glyphs. Record the position
1877 after EOL in it->eol_pos, and use it to set end_pos of the last
1878 row produced for a continued line.
1879 <Qright_to_left, Qleft_to_right>: New variables.
1880 (syms_of_xdisp): Initialize and staticpro them.
1881 (string_buffer_position_lim): New function.
1882 (string_buffer_position): Most of code moved to
1883 string_buffer_position_lim. Last argument and return value are
1884 now EMACS_INT; all callers changed.
1885 (set_cursor_from_row): Rewritten to support bidirectional text and
1886 reversed glyph rows.
1887 (text_outside_line_unchanged_p, try_window_id): Disable
1888 optimizations if we are reordering bidirectional text and the
1889 paragraph direction can be affected by the change.
1890 (append_glyph, append_composite_glyph)
1891 (produce_image_glyph, append_stretch_glyph): Set the
1892 resolved_level and bidi_type members of each glyph.
1893 (append_glyph): If the glyph row is reversed, prepend the glyph
1894 rather than appending it.
1895 (handle_stop_backwards): New function.
1896 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
1897 (reseat): call handle_stop_backwards to recompute prev_stop and
1898 base_level_stop for the new position.
1899 (handle_invisible_prop): Under bidi iteration, skip invisible text
1900 using bidi_get_next_char_visually. If we are `reseat'ed, init the
1901 paragraph direction. Update IT->prev_stop after skipping
1902 invisible text.
1903 (move_it_in_display_line_to): New variables prev_method
1904 and prev_pos. Compare for strict equality in
1905 BUFFER_POS_REACHED_P.
1906 (try_cursor_movement): Examine all the candidate rows that occlude
1907 point, to return the best match. If rows are bidi-reordered
1908 and point moved backwards, back up to the row that is not a
1909 continuation line, and start looking for a suitable row from
1910 there.
1911
1912 * term.c (append_glyph): Reverse glyphs by pre-pending them,
1913 rather than appending, if the glyph_row's reversed_p flag is set.
1914 Set the resolved_level and bidi_type members of each glyph.
1915
1916 * .gdbinit (pbiditype): New command.
1917 (pgx): Use it to display bidi level and type of the glyph.
1918 (pitx): Display some bidi information about the iterator.
1919 (prowlims, pmtxrows): New commands.
1920
32a8894e
DN
19212010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
1922
1923 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
1924 * s/usg5-4.h (LIBS_DEBUG):
1925 * s/irix6-5.h (C_DEBUG_SWITCH):
1926 * s/gnu-linux.h (LIBS_DEBUG):
1927 * s/darwin.h (LIBS_DEBUG):
1928 * s/bsd-common.h (LIBS_DEBUG):
1929 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
1930 * m/iris4d.h (LIBS_DEBUG):
1931 * m/hp800.h (LIBS_DEBUG): Remove definitions.
1932
1933 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
1934 (LIBS_DEBUG): Remove definition.
1935
649dbf36
CY
19362010-03-27 Chong Yidong <cyd@stupidchicken.com>
1937
1938 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
1939 Windows.
1940
cad4261f
YM
19412010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1942
1943 * process.c (Fmake_network_process): Don't call turn_on_atimers around
1944 `connect' (Bug#5723).
1945
cd591dbc
HE
19462010-03-25 Helmut Eller <eller.helmut@gmail.com>
1947
1948 * process.c (Fmake_network_process): Call `select' for interrupted
1949 `connect' rather than creating new socket (Bug#5173).
1950
e867cb5d 19512010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
1952
1953 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
1954
1955 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
1956
1957 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
1958
e867cb5d 19592010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
1960
1961 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
1962 XLoadQueryFont.
1963
e867cb5d 19642010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
1965
1966 * coding.c (decode_coding_ccl): Fix previous change for the
1967 multibyte case.
fb608df3
KH
1968 (encode_coding_ccl): Don't setup ccl program here. Fix for the
1969 case that the output buffer is fullfilled.
1970 (encode_coding): Setup ccl program here.
fbdc1721 1971
e867cb5d 19722010-03-24 Andreas Politz <politza@fh-trier.de> (tiny change)
35cd7cd6
CY
1973
1974 * editfns.c (Fformat): Account for string precision when computing
1975 field width (Bug#5710).
1976
5845f0ed
DN
19772010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
1978
814fb708
DN
1979 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
1980
5845f0ed
DN
1981 Simplify LIBS_MACHINE definitions.
1982 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
1983 * m/iris4d.h (LIBS_MACHINE): Likewise.
1984 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
1985 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 1986 * s/netbsd.h: Remove commented out code.
5845f0ed 1987
b7064064
DN
19882010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
1989
df7734b2
DN
1990 Remove dead code dealing with POSIX_SIGNALS.
1991 * atimer.c (set_alarm): Remove dead code, all USG systems define
1992 POSIX_SIGNALS.
1993 * data.c (arith_error): Likewise.
1994 * keyboard.c (input_available_signal, handle_user_signal)
1995 (interrupt_signal): Likewise.
1996 * process.c (sigchld_handler): Likewise.
1997 (create_process): Remove if 0 code. Remove HPUX conditional when
1998 !defined (POSIX_SIGNALS), it cannot be true.
1999 * syssignal.h: Remove USG5_4 and USG conditionals when
2000 !POSIX_SIGNALS, they cannot be true.
2001
b7064064
DN
2002 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
2003 NO_SOCK_SIGIO, not used anymore.
2004
55da5ee3
DN
20052010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
2006
0be96e3a
DN
2007 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
2008 support vax on BSDs.
2009
55da5ee3
DN
2010 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
2011 * s/aix4-2.h (ORDINARY_LINK): ... here.
2012
c0282183
AS
20132010-03-21 Andreas Schwab <schwab@linux-m68k.org>
2014
82c3d67a
AS
2015 * Makefile.in (abs_builddir): Define.
2016 (bootstrap_exe): Use it.
2017 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 2018
3613edce
SM
20192010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
2020
2021 * Makefile.in (bootstrap_exe): Use an absolute name.
2022
7f110ddc
DN
20232010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2024
22e87574
DN
2025 Remove support for old GNU/Linux using libc version 5.
2026 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
2027 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
2028
05a670e6
DN
2029 Consolidate redundant definitions in s/bsd-common.h.
2030 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2031 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2032 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
2033 doing it in all files that include this one.
2034 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2035 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2036 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2037 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2038 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2039 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2040 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2041 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2042 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2043
2968f561
DN
2044 Consolidate redundant definitions.
2045 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
2046 it's undefined in all files that include this one.
2047 (POSIX_SIGNALS): Define here instead of doing it in all files that
2048 include this one.
2049 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2050 (POSIX_SIGNALS): Do not define.
2051 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2052 (POSIX_SIGNALS): Do not define.
2053 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2054 (POSIX_SIGNALS): Do not define.
2055
15d25dc0
DN
2056 Remove support for old UNIX System V systems.
2057 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
2058 * s/usg-5-4-2.h: Remove.
2059
07e339e4
DN
2060 Remove support for Solaris on PPC and for old versions.
2061 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
2062 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
2063 that cancel each other.
2064 * s/sol2-3.h:
2065 * s/sol2-4.h:
2066 * s/sol2-5.h: Remove.
2067 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
2068 (NO_REMAP): Remove, unused.
2069 (UNEXEC): Move definition ...
2070 * s/aix4-2.h (UNEXEC): ... here.
2071
7f110ddc
DN
2072 * s/openbsd.h: Remove support for non-ELF and for systems that do
2073 not support shared libraries.
2074 * s/netbsd.h:
2075 * s/freebsd.h: Likewise.
2076
605f35cd
DN
20772010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2078
2079 Remove non-working support for lynxos 3.0.
2080 * s/lynxos.h: Remove file.
2081
2082 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
2083 COFF_BSD_SYMBOLS, nothing defines it anymore.
2084
aed71cf4
DN
20852010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2086
2087 Remove obsolete uses of HAVE_SHM.
2088 * emacs.c (standard_args):
2089 (Fdump_emacs):
2090 (syms_of_emacs): Remove code depending on HAVE_SHM.
2091
2092 * alloc.c: Remove HAVE_SHM dependent definition.
2093
2094 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
2095
aded53ff
GM
20962010-03-18 Glenn Morris <rgm@gnu.org>
2097
17284745
GM
2098 * emacs.c (USAGE4): Hard-code bug address.
2099 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
2100 (bug_reporting_address): Remove.
2101 (main): Don't call bug_reporting_address.
2102
aded53ff
GM
2103 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
2104 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
2105
303500aa
CY
21062010-03-15 Chong Yidong <cyd@stupidchicken.com>
2107
2108 * xfns.c (Fx_create_frame):
2109 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
2110 on left.
2111
cef3058f
CY
21122010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
2113
2114 * editfns.c (Fformat): Account for string precision when computing
2115 field width (Bug#5710).
2116
a647d59d
CY
21172010-03-12 Chong Yidong <cyd@stupidchicken.com>
2118
4fa42018
CY
2119 * xfns.c (Fx_create_frame): Set default to Qright.
2120
a647d59d
CY
2121 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
2122 all window systems.
2123
6da23aaa
EZ
21242010-03-12 Eli Zaretskii <eliz@gnu.org>
2125
a96f6398 2126 These changes remove termcap.c from the build on Posix platforms.
83d02def 2127 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
2128 (MSDOS_OBJ): ...to here.
2129 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
2130 now identical to when LIBS_TERMCAP is defined.
2131
2132 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
2133
2134 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
2135
a96f6398 2136 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 2137
288f9fc0
CY
21382010-03-10 Chong Yidong <cyd@stupidchicken.com>
2139
2140 * Branch for 23.2.
2141
d48cd3f4
SM
21422010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
2143
2144 Cleanup setup of gl_state in various parts of the code.
2145 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
2146 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
2147 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
2148 (skip_chars):
2149 * regex.c (regex_compile): Use it.
2150 (re_compile_pattern): Don't set gl_state.current_syntax_table since
2151 it's now set in regex_compile when/if we need it.
2152
618db430
SM
21532010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
2154
c0335e02
SM
2155 Make it possible to C-g in a tight bytecode loop again (bug#5680).
2156 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
2157 (QUIT): Use it to consolidate code and remove redundancy.
2158 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
2159
254c06a8
SM
2160 * regex.c (regex_compile): Setup gl_state as well.
2161
618db430
SM
2162 * syntax.c (skip_chars): Setup gl_state (bug#3823).
2163 (in_classes): Use CONSP before XCAR/XCDR.
2164
233f0c9f
CY
21652010-03-03 Chong Yidong <cyd@stupidchicken.com>
2166
2167 * keymap.c (Fwhere_is_internal): Use Fequal to compare
2168 definitions, so that keyboard macros are correctly handled
2169 (Bug#5481).
2170
75f80e63
EZ
21712010-03-02 Eli Zaretskii <eliz@gnu.org>
2172
2173 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
2174 text that could be relocated inside the call to emacs_mule_char.
2175 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
2176 (CODING_DECODE_CHAR): Add a comment describing its purpose.
2177
dcfb9bc4
KH
21782010-03-02 Kenichi Handa <handa@m17n.org>
2179
fc9a17bc
KH
2180 * character.c (parse_str_as_multibyte): Fix handling of the
2181 multibyte form of raw-bytes.
2182 (str_as_multibyte): Likewise.
2183
dcfb9bc4
KH
2184 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
2185 form of raw-bytes.
2186
412c01b6
CY
21872010-02-28 Chong Yidong <cyd@stupidchicken.com>
2188
2189 * charset.c (load_charset_map_from_file)
2190 (load_charset_map_from_vector): Zero out allocated
2191 charset_map_entries before using them.
2192
df7e1ea0
AS
21932010-02-27 Andreas Schwab <schwab@linux-m68k.org>
2194
2195 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
2196
fe69a722
CY
21972010-02-27 Chong Yidong <cyd@stupidchicken.com>
2198
4ed28cf4
CY
2199 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
2200 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 2201
7379cfce
KH
22022010-02-26 Kenichi Handa <handa@m17n.org>
2203
f88cc4d6
KH
2204 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
2205
7379cfce
KH
2206 * xdisp.c (reseat_to_string): Fix previous change.
2207
cf2fdcfb
CY
22082010-02-26 David Reitter <david.reitter@gmail.com>
2209
2210 * nsfont.m (nsfont_draw): ns_antialias_text should be a
2211 Lisp_Object (Bug#4736).
2212
cc6c7c75
KH
22132010-02-25 Kenichi Handa <handa@m17n.org>
2214
2215 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
2216
32e737d7
JD
22172010-02-24 Jan Djärv <jan.h.d@swipnet.se>
2218
2219 * xterm.c (XTflash): Move declarations before statements.
2220
2221 * gtkutil.c (xg_get_gdk_display): Remove (unused).
2222 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
2223 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
2224 (xg_create_tool_bar): Remove unused variables.
2225 (x_wm_set_size_hint): Move declarations before statements.
2226 (xg_create_frame_widgets): Remove variable grav,
2227
676cae9f
CY
22282010-02-21 Chong Yidong <cyd@stupidchicken.com>
2229
2230 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
2231
886cc2b8
SM
22322010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
2233
2234 * term.c (fatal): Add a final \n if needed (bug#5596).
2235
ddb2d8e2
CY
22362010-02-18 Chong Yidong <cyd@stupidchicken.com>
2237
2238 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
2239
2a4f8d3d
GM
22402010-02-18 Glenn Morris <rgm@gnu.org>
2241
2242 * callint.c (Finteractive): Doc fix.
2243
ebaf11b6
KH
22442010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
2245
886cc2b8
SM
2246 * coding.c (record_conversion_result):
2247 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
2248 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
2249 memory allocation error.
2250
d0396581
KH
22512010-02-17 Kenichi Handa <handa@m17n.org>
2252
886cc2b8
SM
2253 * coding.c (decode_coding_ccl): Don't setup ccl program here.
2254 Fix for the case that the output buffer is fullfilled.
d0396581
KH
2255 (decode_coding): Setup ccl program here. Keep looping when the
2256 decoder stopped because the output buffer is
2257 fullfilled (bug#5534).
2258
2259 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
2260
98599f74
JD
22612010-02-13 Jan Djärv <jan.h.d@swipnet.se>
2262
471e4f04 2263 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 2264 bug #5571.
886cc2b8 2265 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 2266 overdrawn.
98599f74 2267
182659ae
JD
22682010-02-10 Jan Djärv <jan.h.d@swipnet.se>
2269
2270 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
2271 doing_interact here.
2272 (ice_connection_closed): New function.
2273 (x_session_check_input, smc_die_CB, ice_io_error_handler)
2274 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
2275 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
2276 returns I/O error.
2277 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
2278 bug #5512.
2279
9be32c4e 22802010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
2281
2282 * nsfont.m (nsfont_open): The system's value for the font descent
2283 is negative, so round it down to avoid clipping.
2284
a2f3eb19
CY
22852010-02-06 Chong Yidong <cyd@stupidchicken.com>
2286
2287 * charset.c (load_charset_map_from_file)
2288 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 2289 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 2290
3088147c
CY
22912010-02-05 Chong Yidong <cyd@stupidchicken.com>
2292
2293 * charset.c (load_charset_map_from_file): Allocate large
2294 charset_map_entries structure on the heap rather than the stack.
2295 (Bug#5526).
2296
b57d9029
KH
22972010-01-31 Kenichi Handa <handa@m17n.org>
2298
2299 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 2300 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 2301
c67d885b
CY
23022010-01-31 Chong Yidong <cyd@stupidchicken.com>
2303
2304 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
2305 <deactivated@gmail.com> (Bug#3605).
2306
8fab2362
CY
23072010-01-31 David De La Harpe Golden <david@harpegolden.net>
2308
2309 * fileio.c (Frename_file): Correctly rename symlinks to
2310 directories (Bug#5496).
2311
cb2a62f2
CY
23122010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
2313
2314 * nsterm.m (ns_ring_bell): Handle visible bell like X.
2315
944c7a26
AS
23162010-01-30 Andreas Schwab <schwab@linux-m68k.org>
2317
2318 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
2319
c024ac08
CY
23202010-01-29 Chong Yidong <cyd@stupidchicken.com>
2321
2322 * frame.c (DEFAULT_ROWS): Change default to 35.
2323
2324 * xfns.c (x_default_font_parameter): Change default XFT font to
2325 monospace-10 (Bug#3643).
2326
af93af83
EZ
23272010-01-29 Eli Zaretskii <eliz@gnu.org>
2328
2329 * w32inevt.c (key_event): Remove unnecessary comparison of
2330 event->uChar.AsciiChar with 128.
2331
ca0eb708
CY
23322010-01-28 Chong Yidong <cyd@stupidchicken.com>
2333
b242dbfc
CY
2334 * fileio.c (Frename_file): Fix last change (Bug#5487).
2335
ca0eb708
CY
2336 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
2337
2338 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
2339
45d45af5
JD
23402010-01-28 Jan Djärv <jan.h.d@swipnet.se>
2341
2342 * xfns.c (Fx_create_frame): Remove window size matching code from
2343 2010-01-15.
2344 (x_get_current_desktop, x_get_desktop_workarea): Remove
2345
7e233730
JR
23462010-01-27 Jason Rumney <jasonr@gnu.org>
2347
2348 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 2349 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 2350
86e893e3
KH
23512010-01-27 Kenichi Handa <handa@m17n.org>
2352
2353 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 2354 pattern string (Bug#4209).
86e893e3 2355
8719abec
CY
23562010-01-27 David De La Harpe Golden <david@harpegolden.net>
2357
2358 * fileio.c (Frename_file): Call copy-directory and
2359 delete-directory for directories, in order to handle cross-device
2360 renaming (Bug#3353).
2361
844794c8
JD
23622010-01-25 Jan Djärv <jan.h.d@swipnet.se>
2363
aa3e13b5 2364 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 2365 sizes 24 and 10. Bug #3643.
844794c8 2366
bd4b5750
SM
23672010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
2368
8dc1adf6 2369 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
2370 * keymap.c (shadow_lookup): Add `remap' arg.
2371 (describe_map, describe_vector): Update calls to shadow_lookup.
2372 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
2373 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
2374 perform remapping during shadow_lookup check of remapped_sequences.
2375
285d07e2
CY
23762010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
2377
2378 * image.c (png_load): Use png_sig_cmp instead of the obsolete
2379 png_check_sig, which has been removed in libpng 1.4.
2380
c6d09b8d
CY
23812010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
2382
2383 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
2384 lacks this header file).
2385
3d782998
YM
23862010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2387
2388 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
2389 as in Emacs 22.
2390
2aff7c53
YM
23912010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2392
2393 * lisp.h (make_pure_string): String pointer arg now points to const.
2394
2395 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
2396 args now point to const.
2397
74327f7a
EZ
23982010-01-22 Eli Zaretskii <eliz@gnu.org>
2399
2400 * lread.c (Fload): Don't treat files without .elc extension as
2401 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
2402 them. (bug#5303)
2403
4d1e6632
KH
24042010-01-20 Kenichi Handa <handa@m17n.org>
2405
2406 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
2407 treat the source as actual byte sequence.
2408
1fdede8f
AM
24092010-01-19 Alan Mackenzie <acm@muc.de>
2410
2411 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 2412 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
2413 `signal_after_change_p' to `coherent_change_p', and make the
2414 invocation of `modify_region' conditional on it.
2415
67477f30
JD
24162010-01-19 Jan Djärv <jan.h.d@swipnet.se>
2417
2418 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
2419 for debug purpose.
2420 (syms_of_xsettings): Declare xft-settings.
2421
244b023e
CY
24222010-01-18 Chong Yidong <cyd@stupidchicken.com>
2423
2424 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
2425
617364fe
CY
24262010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
2427
2428 * xterm.c (event_handler_gdk): Block input (Bug#5037).
2429
4fe22cdf
CY
24302010-01-16 Chong Yidong <cyd@stupidchicken.com>
2431
2432 * emacs.c (standard_args): Adjust arg priorities to reflect how
2433 they are processed in startup.el.
2434
e118d2be
AS
24352010-01-16 Andreas Schwab <schwab@linux-m68k.org>
2436
2437 * Makefile.in (lisp, shortlisp): Update.
2438
523ae620
SM
24392010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
2440
2441 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
2442 code, link the new kboard into all_kboard before running Lisp code,
2443 and protect the new terminal with GCPRO (Bug#5365).
2444 (x_term_init): Remove unused var `atom'.
2445 (x_delete_display, x_delete_terminal): Remove unused var `i'.
2446
f0d13888
JD
24472010-01-15 Jan Djärv <jan.h.d@swipnet.se>
2448
2449 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
2450 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
2451 to find out usable size of the desktop. Don't make frames larger than
ac146f82 2452 this. Bug #3643.
f0d13888 2453
cc320f07
KH
24542010-01-15 Kenichi Handa <handa@m17n.org>
2455
2456 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
2457
7ffdf101
CY
24582010-01-15 Chong Yidong <cyd@stupidchicken.com>
2459
2460 * nsterm.m (Qnone): Define.
2461
2462 * nsfns.m (Qnone): Move definition to nsterm.m.
2463
d12bd917
KH
24642010-01-14 Kenichi Handa <handa@m17n.org>
2465
2466 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
2467 systems.
2468
d9a7c140
KH
24692010-01-14 Kenichi Handa <handa@m17n.org>
2470
2471 Make auto-composition work on all buffers even if they are
2472 fundamental mode.
2473
2474 * composite.c (Vauto_composition_mode): New variable.
2475 (composition_compute_stop_pos): Check Vauto_composition_mode
2476 instead of Vauto_composition_function.
2477 (composition_adjust_point, Ffind_composition_internal): Likewise.
2478 (syms_of_composite): Declare Lisp variable
2479 "auto-composition-mode" here.
2480
63286bb2
CY
24812010-01-13 Chong Yidong <cyd@stupidchicken.com>
2482
2483 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
2484 during call to vendor-specific-keysyms (Bug#5365).
2485
c2623ee7
YM
24862010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2487
2488 * keyboard.c (input_available_signal) [SYNC_INPUT]:
2489 Call SIGNAL_THREAD_CHECK (Bug#5333).
2490
2491 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
2492 Call SIGNAL_THREAD_CHECK.
2493
0b5397c2
SM
24942010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
2495
2496 Try to fix bug#5314. This is probably not the final word, tho.
2497 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
2498 recent-auto-save-p as a side-effect.
2499 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
2500 * buffer.c (Fkill_buffer, reset_buffer):
2501 * editfns.c (Fsubst_char_in_region):
2502 * fileio.c (Finsert_file_contents, Fdo_auto_save)
2503 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
2504
dc954cb2
KH
25052010-01-13 Kenichi Handa <handa@m17n.org>
2506
2507 Display buffer name, etc. in mode line by composing correctly.
2508
2509 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
2510 STRING is not nil.
0b5397c2 2511 (display_mode_element): Adjust for the change of
dc954cb2
KH
2512 decode_mode_spec and display_line.
2513 (decode_mode_spec): Change arg MULTIBYTE to STRING.
2514 (display_string): Handle the case that STRING is non-null and
2515 LISP_STRING is not nil.
2516
0b5397c2
SM
2517 * xterm.c (x_draw_composite_glyph_string_foreground):
2518 Pay attention to s->face->overstrike.
dc954cb2
KH
2519
2520 * composite.c (composition_reseat_it): Don't check PT if STRING is
2521 non nil.
2522
4a00eaca
YM
25232010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2524
2525 * keyboard.c (read_char): Don't apply previous change when current
2526 buffer is unchanged by command execution.
2527
60abb287
JD
25282010-01-12 Jan Djärv <jan.h.d@swipnet.se>
2529
2530 * keyboard.c (read_char): Return after executing from special map.
2531
893db5bc
GM
25322010-01-12 Glenn Morris <rgm@gnu.org>
2533
2534 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
2535 bug-gnu-emacs rather than emacs-pretest-bug.
2536
4d03ece0
CY
25372010-01-11 Chong Yidong <cyd@stupidchicken.com>
2538
2539 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
2540 initializing the Lisp variables that depend on them.
2541
1df47e38
YM
25422010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2543
2544 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
2545 Clear areas that will not be updated after change of menu bar lines.
2546 Clear the menu bar window's current matrix when the window gets empty.
2547
2f1c6384
CY
25482010-01-09 Chong Yidong <cyd@stupidchicken.com>
2549
e398c61c
CY
2550 * intervals.h, textprop.c (extend_property_ranges): Return value
2551 and args changed. Discard properties that begin at or after the
2552 new end (Bug#5306).
2553
2554 * editfns.c (Fformat): Caller changed.
2555
e5a29a10
CY
2556 * nsterm.m (ns_set_default_prefs): Delete function.
2557 (syms_of_nsterm): Initialize ns_command_modifier,
2558 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
2559 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
2560
2f1c6384
CY
2561 * xdisp.c (pos_visible_p): Check for invisible text at the correct
2562 position (Bug#4040).
2563
d427a9fa
EZ
25642010-01-09 Eli Zaretskii <eliz@gnu.org>
2565
2566 * editfns.c (Ffloat_time): Doc fix.
2567
21b9df2f
JD
25682010-01-09 Jan Djärv <jan.h.d@swipnet.se>
2569
2570 * xfns.c (Fx_create_frame): Don't create frame larger than display
2571 by default bug#3643.
2572
4b00d3b1
YM
25732010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2574
2575 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
2576 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
2577 windows above internal border.
2578
2579 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
2580 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
2581 windows above internal border.
2582
2583 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
2584 tool bar windows specially.
2585
2586 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
2587
2588 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
2589 specially.
2590 (XTflash): Take account of menu bar height.
2591
2592 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
2593 specially.
2594
5075d853
JD
25952010-01-08 Jan Djärv <jan.h.d@swipnet.se>
2596
ac146f82 2597 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
2598 also be true before we can return early (bug #5339).
2599
474217c8
CY
26002010-01-06 David Reitter <david.reitter@gmail.com>
2601
2602 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
2603 (Fns_display_usable_bounds): Rewrite, computing bounds properly
2604 (Bug#3233).
2605
c0e6d47d
JD
26062010-01-06 Jan Djärv <jan.h.d@swipnet.se>
2607
d0cf45b7
JD
2608 * font.c (font_open_entity): Enable chache and call cached_font_ok
2609 for the driver if defined.
2610 (QCuser_spec): New symbol.
2611 (font_spec_from_name): Save name as user-spec.
2612 (font_load_for_lface): Keep user-spec instead of name.
2613 (font_open_by_name): Save name as user-spec.
2614 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 2615 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
2616
2617 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
2618 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
2619 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
2620
2621 * font.h (struct font_driver): Add cached_font_ok.
2622
c0e6d47d
JD
2623 * xterm.c (x_clear_frame): Queue draw for scroll bars.
2624
7c583cd8
JD
26252010-01-05 Jan Djärv <jan.h.d@swipnet.se>
2626
2627 * xterm.c (x_new_font): Move code for setting rows/cols before
2628 resizing ...
ac146f82 2629 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
2630
2631 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
2632 (xg_frame_resized, xg_frame_set_char_size):
2633 Call xg_clear_under_internal_border.
7c583cd8 2634 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 2635
03f77f0a
CY
26362010-01-05 Chong Yidong <cyd@stupidchicken.com>
2637
2638 * keyboard.c (read_key_sequence): Catch keyboard switch after
2639 making a new tty frame (Bug#5095).
2640
2a1ef5be
KH
26412010-01-05 Kenichi Handa <handa@m17n.org>
2642
2643 * fontset.c (fontset_find_font): Fix getting the frame pointer.
2644
e3eb1dae
SM
26452010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
2646
2647 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
2648 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
2649 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
2650
777013f2
MA
26512010-01-03 Michael Albinus <michael.albinus@gmx.de>
2652
2653 * dbusbind.c (xd_add_watch): Improve debug message.
2654 (xd_remove_watch): Improve debug message. If DATA is the session
2655 bus, unset D-Bus session environment.
2656 (Fdbus_init_bus): Pass the bus as argument to
2657 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 2658
8932b1c2
CY
26592010-01-01 Chong Yidong <cyd@stupidchicken.com>
2660
87231e2c
CY
2661 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
2662
4801c5fa
CY
2663 * lread.c (syms_of_lread): Make it clearer that these are the
2664 names of loaded files (Bug#5068).
2665
8932b1c2
CY
2666 * eval.c (run_hook_with_args): Handle the case where the global
2667 value has the obsolete single-function form (Bug#5026).
2668
11e3c684
CY
26692009-12-27 Chong Yidong <cyd@stupidchicken.com>
2670
2671 * minibuf.c (Fall_completions): Minor optimization.
2672
5b28ce35
EZ
26732009-12-26 Eli Zaretskii <eliz@gnu.org>
2674
5ce6e4f4
JB
2675 * .gdbinit (pgx): Fix display of composite glyphs.
2676 Display cmp.from and cmp.to as well.
2677 (pitx): Fix last change.
5b28ce35 2678
bcffff46
KH
26792009-12-25 Kenichi Handa <handa@m17n.org>
2680
2681 * composite.h (composition_adjust_point): Update prototype.
2682
2683 * composite.c (composition_reseat_it): Don't make a composition
2684 spanning over point.
2685 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
2686 composable characters.
2687 (composition_adjust_point): New arg NEW_PT. Callers changed.
2688
2689 * keyboard.c (command_loop_1): Force redisplay if the last point
2690 was within a composition.
2691 (adjust_point_for_property): Don't adjust point for automatic
2692 composition when called after buffer modification.
2693
3f670e9a
EZ
26942009-12-19 Eli Zaretskii <eliz@gnu.org>
2695
5ce6e4f4
JB
2696 * .gdbinit (pitx): Don't use enum names, use their values.
2697 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
2698 (pgx): Don't use enum names, use their values.
2699 (pitmethod): New helper command.
2700 (pitx): Use it to display iteration method.
2701 (pgrowit): New command.
2702
ad903955
EZ
2703 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
2704
3f670e9a
EZ
2705 Update dependencies in Makefile.in.
2706
2707 * Makefile.in (alloc.o): Depend on termhooks.h.
2708 (atimer.o): Depend on blockinput.h.
2709 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
2710 and frame.h.
2711 (callint.o): Depend on systime.h, coding.h, and composite.h.
2712 (callproc.o): Depend on buffer.h.
2713 (casefiddle.o): Don't depend on charset.h.
2714 (casetab.o): Depend on character.h.
2715 (ccl.o): Depend on composite.h.
2716 (chartab.o): Depend on ccl.h.
2717 (cm.o): Depend on dispextern.h.
2718 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
2719 (coding.o): Don't depend on $(INTERVALS_H).
2720 (composite.o): Don't depend on dispextern.h explicitly (it's in
2721 $(INTERVALS_H)). Depend on ccl.h.
2722 (data.o): Depend on systime.h, coding.h, composite.h,
2723 dispextern.h, font.h, and ccl.h.
2724 (dired.o): Depend on composite.h.
2725 (dispnew.o): Depend on coding.h. Don't depend explicitly on
2726 composite.h (it's in $(INTERVALS_H)).
2727 (doc.o): Depend on systime.h, coding.h, and composite.h.
2728 (editfns.o): Don't depend explicitly on dispextern.h.
2729 (emacs.o): Depend on frame.h and coding.h.
2730 (eval.o): Depend on coding.h, composite.h, and xterm.h.
2731 (fileio.o): Depend on frame.h and commands.h. Don't depend
2732 explicitly on dispextern.h.
2733 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
2734 composite.h.
2735 (fns.o): Don't depend on termhooks.h.
2736 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
2737 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
2738 coding.h, $(INTERVALS_H), window.h, xterm.h.
2739 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
2740 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
2741 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
2742 fontset.h, ccl.h, and ftfont.h.
2743 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
2744 (gtkutil.o): Depend on dispextern.h and composite.h.
2745 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
2746 termhooks.h, and ccl.h.
2747 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
2748 (intervals.o): Depend on systime.h and coding.h.
2749 (keyboard.o): Depend on composite.h and coding.h.
2750 (keymap.o): Depend on coding.h and frame.h.
2751 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
2752 (macros.o): Depend on systime.h, coding.h, and composite.h.
2753 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
2754 and atimer.h.
2755 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
2756 dispextern.h explicitly.
0b5397c2
SM
2757 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
2758 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
2759 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
2760 (regex.o): Don't depend on charset.h.
2761 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
2762 (search.o): Don't depend explicitly on composite.h.
2763 (sound.o): Depend on atimer.h and systime.h.
2764 (syntax.o): Don't depend explicitly on composite.h.
2765 (sysdep.o): Depend on coding.h and composite.h.
2766 (term.o): Depend on xterm.h and buffer.h.
2767 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
2768 (textprop.o): Don't depend on dispextern.h explicitly.
2769 (undo.o): Depend on dispextern.h.
2770 (window.o): Depend on coding.h and termhooks.h. Don't depend on
2771 dispextern.h and composite.h explicitly.
2772 (xdisp.o): Depend on ccl.h.
2773 (xfaces.o): Depend on coding.h and ccl.h.
2774 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
2775 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
2776 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
2777 ftfont.h.
2778 (xgselect.o): New dependency.
2779 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
2780 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
2781 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
2782 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
2783 (xsmfns.o): Depend on frame.h and dispextern.h.
2784 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
2785 sysselect.h.
2786
7a6f7fea
AS
27872009-12-19 Andreas Schwab <schwab@linux-m68k.org>
2788
2789 * font.c (Fclear_font_cache): Pass correct cache argument to
2790 font_clear_cache.
2791
f4c21026
AS
27922009-12-16 Andreas Schwab <schwab@linux-m68k.org>
2793
2794 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
2795 twice.
2796
f7ab0997
CY
27972009-12-15 Chong Yidong <cyd@stupidchicken.com>
2798
2799 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
2800 calling file-remote-p. Reported by Jim Meyering.
2801
fa8e045a
MA
28022009-12-15 Michael Albinus <michael.albinus@gmx.de>
2803
2804 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 2805 avoid compiler warnings. (Bug #5217)
fa8e045a 2806
a63dba42
KH
28072009-12-14 Kenichi Handa <handa@m17n.org>
2808
2809 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
2810 in 8-bit encoding.
2811
5ce6e4f4 28122009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
2813
2814 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
2815 tooltip windows.
2816
223e5fc6
JD
28172009-12-13 Jan Djärv <jan.h.d@swipnet.se>
2818
36acb2a7
JD
2819 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
2820 Xatom_net_window_type.
2821
2822 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
2823 Xatom_net_window_type.
2824
b8f00677
JD
2825 * xterm.c (my_log_handler): New function.
2826 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 2827 so we can filter out buggy messages. (Bug #5120).
b8f00677 2828
e5f0bc9a
JD
2829 * xterm.c (xg_scroll_callback): Parameter list changed,
2830 use parameter GtkScrollType to determine scroll/line/page.
2831 Only allow dragging if a button < 4 is grabbed (bug #5177).
2832 (xg_end_scroll_callback): New function.
2833 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
2834 xg_create_scroll_bar.
2835
2836 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
2837 (scroll_end_callback): Remove.
2838 (xg_create_scroll_bar): Add parameter end_callback, bind it to
2839 button-release-event. Replace value-changed event with change-value,
2840 bug #5177,
2841 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
2842 bug #5177.
2843
2844 * gtkutil.h (XG_LAST_SB_DATA): Remove.
2845 (xg_create_scroll_bar): Add GCallback end_callback.
2846
223e5fc6
JD
2847 * xftfont.c (QClcdfilter): New variable.
2848 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
2849 (syms_of_xftfont): Initialize QClcdfilter.
2850
3c055b77
JD
28512009-12-12 Jan Djärv <jan.h.d@swipnet.se>
2852
2853 * xsettings.c (struct xsettings): Add member seen.
2854 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 2855 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
2856 (apply_xft_settings): Only update Xft settings with what member seen
2857 indicates as new.
2858
05fe33ff
EZ
28592009-12-12 Eli Zaretskii <eliz@gnu.org>
2860
2861 * dispextern.h (struct text_pos): Use EMACS_INT;
2862 (struct glyph): Use EMACS_INT for charpos.
2863 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
2864 region_beg_charpos, region_end_charpos,
2865 redisplay_end_trigger_charpos, and also for
2866 iterator_stack_entry.end_charpos and
2867 iterator_stack_entry.stop_charpos.
2868
e8d7886a
JD
28692009-12-12 Jan Djärv <jan.h.d@swipnet.se>
2870
5ce6e4f4 2871 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
2872 (xg_create_scroll_bar): Call scroll_end_callback on button release
2873 event (bug #5177).
2874 (xg_event_is_for_scrollbar): != replaced with ==.
2875
d0db2ec8
KH
28762009-12-12 Kenichi Handa <handa@m17n.org>
2877
2878 * ftfont.c (struct ftfont_info): New member matrix.
2879 (ftfont_open): Setup xftfont_info->matrix.
2880 (MFLTFontFT): New member matrix.
2881 (FLOOR, CEIL, ROUND): New macros.
2882 (ftfont_get_metrics): Handle matrix transformation.
2883 (ftfont_shape_by_flt): New arg matrix. Callers changed.
2884
2885 * xftfont.c (struct xftfont_info): New member matrix.
2886 (xftfont_open): Setup xftfont_info->matrix.
2887
28882009-12-10 Kenichi Handa <handa@m17n.org>
2889
2890 * xdisp.c (append_space_for_newline): Consider face-remapping.
2891
2cc7b62f
AS
28922009-12-09 Andreas Schwab <schwab@linux-m68k.org>
2893
b87dd913
AS
2894 * xsettings.c: Include "keyboard.h".
2895
eba5eb94
AS
2896 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
2897
2cc7b62f
AS
2898 Fix implicit function declarations.
2899 * cmds.c: Include "frame.h".
2900 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
2901 * frame.h: Move declaration of delete_frame outside of
2902 HAVE_WINDOW_SYSTEM.
2903
a4ef73c8
CY
29042009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
2905
2906 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
2907
2908 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
2909 GTK builds.
2910
944a300c
AS
29112009-12-07 Andreas Schwab <schwab@linux-m68k.org>
2912
2913 * unexelf.c (unexec): Don't search for .data twice.
2914
022eef62
CY
29152009-12-05 Chong Yidong <cyd@stupidchicken.com>
2916
426ac949
CY
2917 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
2918 if push failed.
2919 (handle_line_prefix): Set avoid_cursor_p here. Check return value
2920 of push_display_prop (Bug#5000).
2921
022eef62
CY
2922 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
2923 value of font_list_entities (Bug#5085).
2924
be95bee9
JB
29252009-12-04 Juanma Barranquero <lekktu@gmail.com>
2926
2927 Fix `string-to-number' to deal consistently with integers and floats.
2928 * lread.c (isfloat_string): New argument ignore_trailing to accept all
2929 trailing characters, not just whitespace.
2930 (read1): Pass new arg 0 to keep old behavior.
2931 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
2932 trailing chars, as it is already done for integers. Doc fixes.
2933 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
2934
24c2d7ce
EZ
29352009-12-04 Eli Zaretskii <eliz@gnu.org>
2936
0b5397c2
SM
2937 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
2938 Delete unused enumeration value.
24c2d7ce 2939
7e694795
EZ
29402009-12-03 Eli Zaretskii <eliz@gnu.org>
2941
2942 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
2943
84b31826
SM
29442009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
2945
2946 * process.c (Fmake_network_process): Fix up the tests for
2947 "connectionless socket", so they DTRT for seqpacket sockets as well.
2948
f00c449b
SM
29492009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
2950
2951 * process.c (Qseqpacket): New symbol.
2952 (HAVE_SEQPACKET): New macro.
2953 (Fmake_network_process): Accept new :type `seqpacket'.
2954 (init_process): Add `seqpacket' feature when applicable.
2955 (syms_of_process): Initialize Qseqpacket.
2956
8096a0ff
YM
29572009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2958
2959 * font.c (font_load_for_lface, font_open_by_name): Don't store name
2960 if entity is Qnil.
2961
3e0de07f
SM
29622009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
2963
2964 * print.c (print_preprocess): Preprocess the key_and_value table of
2965 hashtables, even tho they're "hidden" (bug#5082).
2966
abeafb2a
JD
29672009-11-29 Jan Djärv <jan.h.d@swipnet.se>
2968
2969 * frame.c (frame_make_pointer_invisible)
2970 (frame_make_pointer_visible): Declare f before statements.
2971
4bf47195
EZ
29722009-11-28 Eli Zaretskii <eliz@gnu.org>
2973
2974 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
2975 omitted dependencies on lisp.h.
2976
c525b3f2
JD
29772009-11-27 Jan Djärv <jan.h.d@swipnet.se>
2978
ece2d4ed
JD
2979 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
2980 is NULL.
2981
2982 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
2983
2984 * frame.c (frame_make_pointer_invisible)
3e0de07f 2985 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
2986 frame.
2987
c525b3f2
JD
2988 * search.c (simple_search): Remove warning by making *p const.
2989
2f00e299
DN
29902009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
2991
2992 * xdisp.c (power_letter): Remove duplicate const.
2993
084b049b
JD
29942009-11-25 Jan Djärv <jan.h.d@swipnet.se>
2995
a1fadc6f
JD
2996 * term.c (delete_tty): Remove check for last terminal (bug#4970).
2997
5ce6e4f4 2998 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
2999 defaults (bug #5025).
3000
28259cac
SM
30012009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
3002
3003 * insdel.c (adjust_markers_for_delete): Move it in the
3004 right direction! (bug#4803)
3005
e8e14166
YM
30062009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3007
3008 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
3009
3010 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
3011
86677b58
GM
30122009-11-24 Glenn Morris <rgm@gnu.org>
3013
3014 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
3015
581e51e8
JD
30162009-11-23 Jan Djärv <jan.h.d@swipnet.se>
3017
cfc86c7a
JD
3018 * Makefile.in: Must create deps for ecrt0.o in its rule.
3019
581e51e8
JD
3020 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
3021 because that is what Gtk+ font dialog understands.
3022
3023 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
3024 of Fcopy_sequence.
3025 (font_open_by_name): Put name given into QCname for font-object returned.
3026
3027 * frame.c (x_set_font): Save original font name as frame parameter
3028 font-parameter.
3029
3030 * xsettings.c (set_default_xft_settings): New function.
3031 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
3032 is found.
3033
8b264ecb
AS
30342009-11-22 Andreas Schwab <schwab@linux-m68k.org>
3035
3036 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
3037 searching backwards through multibyte buffer.
3038
872870b2
JD
30392009-11-21 Jan Djärv <jan.h.d@swipnet.se>
3040
3041 * xterm.c: #include xgselect.h.
3042 (x_initialize): Call xgselect_initialize.
3043
3044 * xsettings.c (something_changedCB): C++ comments => C comments.
3045 (init_gconf): Do not deal with any GLib file descriptors, xg_select
3046 does that now.
3047
3048 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
3049 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
3050 (scroll_bar_button_cb): Remove.
5ce6e4f4 3051 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
3052 event.
3053 (xg_create_scroll_bar): Don't bind button-press-event and
3054 button-release-event.
3055
3056 * process.c: Include xgselect.h if defined (USE_GTK) ||
3057 defined (HAVE_GCONF).
3058 (wait_reading_process_output): Call xg_select for the same condition.
3059
3060 * xgselect.c (xg_select): New function to better integrate with
3061 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
3062
3063 * xgselect.h: New file, declare xg_select, xgselect_initialize.
3064
3065 * Makefile.in (XOBJ): Add xgselect.o.
3066
62a6e103
AS
30672009-11-21 Andreas Schwab <schwab@linux-m68k.org>
3068
0b5397c2
SM
3069 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
3070 Remove ignored second argument. All callers changed.
62a6e103
AS
3071 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
3072 (RE_STRING_CHAR_AND_LENGTH): Likewise.
3073 * xdisp.c (string_char_and_length): Likewise.
3074
b0ca0f33
DN
30752009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
3076
3077 * xterm.c (x_new_font):
3078 * print.c (print_object):
3079 * cmds.c (Fself_insert_command): Move declarations before statements.
3080
dd5a6279
CY
30812009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
3082
3083 * s/cygwin.h: Remove unneeded linker flags.
3084
4a8e097d
JD
30852009-11-20 Jan Djärv <jan.h.d@swipnet.se>
3086
0d1d0d26
JD
3087 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
3088
3089 * xsettings.h: Declare xsettings_get_system_font.
3090
3091 * xsettings.c (xsettings_get_system_font): New function.
3092 (init_gconf): No use initiating gconf unless we have Xft also.
3093 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
3094 HAVE_GCONF.
3095
4a8e097d
JD
3096 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
3097 add a blank entry so it doesn't collapse into nothing.
3098
8ab1650e
SM
30992009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
3100
3101 * lread.c (Funintern): Comment out last change.
3102
82c602f0
RS
31032009-11-19 Richard Stallman <rms@gnu.org>
3104
3105 * lread.c (Funintern): Error if symbol is t or nil.
3106
87e32266
SM
31072009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
3108
3109 * insdel.c (make_gap_larger): Don't make as many assumptions about the
3110 representation of Lisp integers.
3111 Reported by MJ Chan <mjchan.inbox@gmail.com>.
3112
1b9ac145
AS
31132009-11-17 Andreas Schwab <schwab@linux-m68k.org>
3114
3115 * lisp.h: Remove declaration of Ffont_get_system_font.
3116 * xfns.c: Move include of "xsettings.h".
3117 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
3118
dfb3c4c6
JD
31192009-11-17 Jan Djärv <jan.h.d@swipnet.se>
3120
87e32266
SM
3121 * xsettings.c (something_changedCB, Ffont_get_system_font):
3122 Check use_system_font.
dfb3c4c6
JD
3123 (syms_of_xsettings): DEFVAR font-use-system-font.
3124
9370c1d8
AS
31252009-11-17 Andreas Schwab <schwab@linux-m68k.org>
3126
25fe851a
AS
3127 * xfns.c (x_default_font_parameter): Remove dead assignment.
3128
9370c1d8
AS
3129 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
3130
637fa988
JD
31312009-11-17 Jan Djärv <jan.h.d@swipnet.se>
3132
87e32266 3133 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 3134 not have FC_LCD_*. #define them if not there.
a6eb20d8 3135
87e32266 3136 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 3137
637fa988
JD
3138 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
3139
3140 * xterm.c (handle_one_xevent): Call xft_settings_event for
3141 ClientMessage, PropertyNotify and DestroyNotify.
3142 (x_term_init): If we have XFT, get DPI from Xft.dpi.
3143 Call xsettings_initialize.
3144
3145 * xftfont.c (xftfont_fix_match): New function.
3146 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
3147 Call xftfont_fix_match after XftFontMatch.
3148
3149 * xfont.c (xfont_driver): Initialize all members.
3150
87e32266
SM
3151 * xfns.c (x_default_font_parameter):
3152 Try font from Ffont_get_system_font.
637fa988
JD
3153 Do not get font from x_default_parameter if we got one from
3154 Ffont_get_system_font.
87e32266 3155 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
3156
3157 * w32font.c (w32font_driver): Initialize all members.
3158
3159 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
3160
3161 * lisp.h: Declare syms_of_xsettings.
3162
87e32266
SM
3163 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
3164 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
3165
3166 * ftfont.c (ftfont_filter_properties): New function.
3167
3168 * frame.c (x_set_font): Remove unused variable lval.
3169
87e32266 3170 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
3171
3172 * font.c (font_put_extra): Don't return if val is nil, it means
3173 boolean option is off.
3174 (font_parse_fcname): Collect all extra properties in extra_props
3175 and call filter_properties for all drivers with extra_props and
3176 font as parameter.
87e32266
SM
3177 (font_open_entity): Do not use cache, it does not pick up new
3178 fontconfig settings like hinting.
637fa988
JD
3179 (font_load_for_lface): If spec had a name in it, store it in entity.
3180
3181 * emacs.c (main): Call syms_of_xsettings
3182
3183 * config.in: HAVE_GCONF is new.
3184
3185 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
3186 xsettings.o is new.
3187
5a942932
KH
31882009-11-17 Kenichi Handa <handa@m17n.org>
3189
3190 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
3191 back to the default font in case that no suitable font is found.
3192
b7c7a4d1
SM
31932009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
3194
3195 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
3196 Suggested by Chad Brown <yandros@mit.edu>.
3197 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
3198
072f1e39
JD
31992009-11-16 Jan Djärv <jan.h.d@swipnet.se>
3200
3201 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
3202
5d1e70a2
AS
32032009-11-14 Andreas Schwab <schwab@linux-m68k.org>
3204
87e32266 3205 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 3206
a53cfbe5
JD
32072009-11-14 Jan Djärv <jan.h.d@swipnet.se>
3208
473a99b7
JD
3209 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
3210 has a parent.
3211
a53cfbe5 3212 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 3213 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
3214
3215 * config.in: Generated (AUTO_DEPEND).
3216
f04bb9b2
MA
32172009-11-13 Michael Albinus <michael.albinus@gmx.de>
3218
b7c7a4d1 3219 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
3220 Vdbus_registered_functions_table, because it contains also
3221 properties. Fix docstring.
b7c7a4d1 3222 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 3223
8f11f7ec
SM
32242009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
3225
3226 * alloc.c (mark_object): Don't reprocess marked strings.
3227 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
3228 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
3229
8a605fe8
KH
32302009-11-13 Kenichi Handa <handa@m17n.org>
3231
8f11f7ec 3232 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
3233 semantics of Vword_combining_categories.
3234 (Vword_combining_categories): Describe the slight change of the
3235 semantics.
3236
241c4680
EZ
32372009-11-13 Eli Zaretskii <eliz@gnu.org>
3238
3239 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
3240
3241 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
3242
5d58e44c
SM
32432009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
3244
3245 * xdisp.c (syms_of_xdisp): Fix typo in last change.
3246
5e13f9d3
JB
32472009-11-12 Juanma Barranquero <lekktu@gmail.com>
3248
3249 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
3250
cf54c754
DR
32512009-11-11 David Reitter <david.reitter@gmail.com>
3252
3253 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
3254 variables to fix 2009-11-09 change.
3255
a4ada374
DN
32562009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
3257
91433552
DN
3258 * process.c (ifflag_def): Make flag_sym constant.
3259 (Fnetwork_interface_info): Use a constant pointer.
3260 (ifflag_table):
3261 * xfns.c (cursor_bits):
3262 * xdisp.c (power_letter):
3263 * termcap.c (speeds, esctab):
3264 * sysdep.c (baud_convert):
3265 * keyboard.c (lispy_accent_codes, modifier_names):
3266 * image.c (xbm_format, xpm_format, pbm_format, png_format)
3267 (jpeg_format, tiff_format, gif_format, svg_format)
3268 (interlace_start, interlace_increment, gs_format):
3269 * gtkutil.c (separator_names):
3270 * fringe.c (swap_nibble):
3271 * fns.c (base64_value_to_char, base64_char_to_value):
3272 * fileio.c (make_temp_name_tbl):
3273 * coding.c (suffixes): Make constant.
3274
f4265f6c
DN
3275 * frame.c (make_initial_frame):
3276 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
3277 build_string.
3278 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
3279
04420943
DN
3280 * s/freebsd.h:
3281 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
3282
0a5d24ae
DN
3283 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
3284 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
3285
a4ada374
DN
3286 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
3287 * xterm.c (syms_of_xterm):
3288 * xfaces.c (syms_of_xfaces):
3289 * xdisp.c (syms_of_xdisp):
3290 * lread.c (syms_of_lread):
3291 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
3292 build_string.
91433552 3293
a4ada374
DN
3294 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
3295
af98fc7f
SM
32962009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
3297
8ab1650e 3298 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 3299
e90292a9
JD
33002009-11-10 Jan Djärv <jan.h.d@swipnet.se>
3301
3302 * keyboard.h: Declare timer_check.
3303
3304 * keyboard.c (timer_check_2): New function that does what the old
3305 timer_check did.
3306 (timer_check): Call timer_check_2 until -1 or a non-zero time is
3307 returned, i.e. don't return -1 with timers pending.
3308
3309 * process.c: Remove extern declaration of timer_check.
3310
3311 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
3312 even if timer_check returned -1.
3313
af98fc7f
SM
3314 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
3315 xg_dialog_data.
e90292a9
JD
3316 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
3317 the event loop.
3318 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
3319 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
3320 Destroy the dialog after xg_dialog_run.
3321
045b83c0
SM
33222009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
3323
3324 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
3325
1fb99a3a
JD
33262009-11-10 Jan Djärv <jan.h.d@swipnet.se>
3327
3328 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
3329
04e452cb
JB
33302009-11-09 Juanma Barranquero <lekktu@gmail.com>
3331
3332 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
3333
ef7417fd
SM
33342009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
3335
3336 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
3337 w32menu.c, and nsmenu.m.
3338 Simplify the obsolete case where position is nil.
3339 (cleanup_popup_menu): New function, moved from nsmenu.m.
3340 (struct skp): Remove slot `notreal'.
3341 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
3342 adjust callers.
3343 (single_menu_item): Adjust call to parse_menu_item.
3344 (syms_of_menu): Defsubr x-popup-menu.
3345 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
3346 (keymap_panes): Don't export any more.
3347 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
3348 (xmenu_show): Declare.
3349 * keyboard.c (parse_menu_item): Remove arg `notreal'.
3350 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
3351 * keyboard.h (parse_menu_item): Update declaration.
3352 * xmenu.c (Fx_popup_menu): Remove.
3353 (syms_of_xmenu): Don't defsubr x-popup-menu.
3354 * w32menu.c (Fx_popup_menu): Remove.
3355 (syms_of_w32menu): Don't defsubr x-popup-menu.
3356 * nsmenu.m (cleanup_popup_menu): Remove.
3357 (ns_menu_show): Rename from ns_popup_menu and remove all the code
3358 moved to menu.c's Fx_popup_menu.
3359 (Fx_popup_menu): Remove.
3360 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
3361 menu_items (it's done in menu.c already).
3362
424d6179
SM
33632009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
3364
3365 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
3366 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
3367
c0df13a6 33682009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
3369
3370 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 3371 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
3372 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
3373 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
3374
2de9f71c
SM
33752009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
3376
3377 Let integers use up 2 tags to give them one extra bit and thus double
3378 their range.
3379 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
3380 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
3381 New macros.
3382 (enum Lisp_Type): Use them. Give explicit values.
3383 (Lisp_Type_Limit): Remove.
3384 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
3385 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
3386 Pay attention to USE_2_TAGS_FOR_INTS.
3387 (INTEGERP): Use LISP_INT_TAG_P.
3388 * fns.c (internal_equal): Simplify the default case.
3389 (sxhash): Use case_Lisp_Int.
3390 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
3391 any more.
3392 (Ftype_of): Use case_Lisp_Int.
3393 (store_symval_forwarding): Take into account the fact that Ints can
3394 now have more than one tag.
3395 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
3396 buffer_slot_type_mismatch):
3397 * xfaces.c (face_attr_equal_p):
3398 * print.c (print_object):
3399 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
3400 Use case_Lisp_Int.
3401
323637a2
EZ
34022009-11-06 Eli Zaretskii <eliz@gnu.org>
3403
7ac65b38
EZ
3404 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
3405
323637a2
EZ
3406 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
3407 warning.
3408
e511451f
JD
34092009-11-06 Jan Djärv <jan.h.d@swipnet.se>
3410
3411 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
3412
3413 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
3414
3415 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
3416 ButtonPressRelease and MotionNotify (bug#4870).
3417
5e2327cf
DN
34182009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
3419
5adc433e
DN
3420 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
3421
d67b4f80
DN
3422 * xterm.c (syms_of_xterm):
3423 * xselect.c (syms_of_xselect):
3424 * xmenu.c (syms_of_xmenu):
3425 * xfns.c (syms_of_xfns):
3426 * xfaces.c (syms_of_xfaces):
3427 * xdisp.c (syms_of_xdisp):
3428 * window.c (syms_of_window):
3429 * w32fns.c (syms_of_w32fns):
3430 * undo.c (syms_of_undo):
3431 * textprop.c (syms_of_textprop):
3432 * terminal.c (syms_of_terminal):
3433 * syntax.c (syms_of_syntax):
3434 * sound.c (syms_of_sound):
3435 * search.c (syms_of_search):
3436 * print.c (syms_of_print):
3437 * minibuf.c (syms_of_minibuf):
3438 * macros.c (syms_of_macros):
3439 * keymap.c (syms_of_keymap, initial_define_key)
3440 (initial_define_lispy_key):
3441 * keyboard.c (syms_of_keyboard):
3442 * insdel.c (syms_of_insdel):
3443 * image.c (syms_of_image):
3444 * fringe.c (syms_of_fringe):
3445 * frame.c (syms_of_frame):
3446 * fontset.c (syms_of_fontset):
3447 * fns.c (syms_of_fns):
3448 * fns.c (syms_of_fns):
3449 * fileio.c (syms_of_fileio):
3450 * fileio.c (syms_of_fileio):
3451 * eval.c (syms_of_eval):
3452 * doc.c (syms_of_doc):
3453 * dispnew.c (syms_of_display):
3454 * dired.c (syms_of_dired):
3455 * dbusbind.c (syms_of_dbusbind):
3456 * data.c (syms_of_data):
3457 * composite.c (syms_of_composite):
3458 * coding.c (syms_of_coding):
3459 * cmds.c (syms_of_cmds):
3460 * charset.c (define_charset_internal, syms_of_character):
3461 * ccl.c (syms_of_ccl):
3462 * category.c (syms_of_category, init_category_once):
3463 * casetab.c (syms_of_casetab):
3464 * casefiddle.c (syms_of_casefiddle):
3465 * callint.c (syms_of_callint):
3466 * bytecode.c (syms_of_bytecode):
3467 * buffer.c (keys_of_buffer, syms_of_buffer):
3468 * alloc.c (syms_of_alloc):
3469 * process.c (syms_of_process, init_process):
3470 * lread.c (syms_of_lread, init_obarray):
3471 * font.c (build_style_table):
3472 * emacs.c (syms_of_emacs, main): Replace calls to intern with
3473 intern_c_string, calls to make_pure_string with
3474 make_pure_c_string. Use pure_cons instead of Fcons.
3475
5e2327cf
DN
3476 * process.c (socket_options): Make it const.
3477 (set_socket_option, init_process): Use a const pointer.
3478
3479 * lread.c (intern_c_string): New function.
3480 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
3481 (defvar_int): Uset it. Make the name const char*.
3482
3483 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
3484 (defvar_int): Update prototypes.
3485 (DEFUN, EXFUN): Support for prototypes is now required.
3486 (intern_c_string): New prototype.
3487 (struct Lisp_Subr): Make symbol_name constant.
3488
3489 * font.c (struct table_entry): Remove unused member. Make NAMES
3490 constant.
3491 (weight_table, slant_table, width_table): Make constant.
3492
3493 * emacs.c (struct standard_args): Make name and longname constant.
3494
3495 * character.h (DEFSYM): Use intern_c_string.
3496
a56eaaef
DN
34972009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
3498
3499 * alloc.c (make_pure_c_string): New function.
3500
3501 * eval.c (Fautoload): Purecopy all arguments.
3502
f6a07420
KH
35032009-11-05 Kenichi Handa <handa@m17n.org>
3504
3505 * fileio.c (Finsert_file_contents): Be sure set coding-system of
3506 the buffer in case of replace.
3507
5d28d4b1
DN
35082009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
3509
3510 * puresize.h (BASE_PURESIZE): Increase to 1620000.
3511
b349d111
SM
35122009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
3513
d528b1ce
SM
3514 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
3515 when applicable (bug#4851).
3516
b349d111
SM
3517 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
3518 (P_): Support for prototypes is now required.
3519
c38eb027
CY
35202009-10-31 Chong Yidong <cyd@stupidchicken.com>
3521
3522 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
3523 (Bug#4827).
3524
0405f8d9
EZ
35252009-10-30 Eli Zaretskii <eliz@gnu.org>
3526
d528b1ce 3527 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 3528
ca0a881a
DN
35292009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
3530
3531 * puresize.h (BASE_PURESIZE): Increase to 1470000.
3532
d528b1ce
SM
3533 * lread.c (Fload): Purecopy the file name when building
3534 Vpreloaded_file_list.
ca0a881a 3535
47e0e0e4
JR
35362009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
3537
3538 * w32fns.c (syms_of_w32fns): Change default value of
3539 w32-scroll-lock-modifier to nil. (Bug#2827)
3540
057bce6f
JB
35412009-10-26 Juanma Barranquero <lekktu@gmail.com>
3542
782a943e 3543 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 3544
242bc74c
AS
35452009-10-26 Andreas Schwab <schwab@redhat.com>
3546
3547 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
3548
522d013a
JB
35492009-10-26 Juanma Barranquero <lekktu@gmail.com>
3550
3551 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
3552 For delta < 0, skip check that only makes sense when the mini-window
3553 is going to be enlarged. (Bug#4534)
3554
18060980
CY
35552009-10-25 Chong Yidong <cyd@stupidchicken.com>
3556
3557 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
3558 string in menu maps (Bug#4471).
3559
fec8f0fe
CY
35602009-10-24 Chong Yidong <cyd@stupidchicken.com>
3561
3562 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
3563 FRAME_NS_VIEW on terminal frames (Bug#4765).
3564
10d66ec0
AS
35652009-10-24 Andreas Schwab <schwab@linux-m68k.org>
3566
1cae01f7
AS
3567 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
3568 DBUS_TYPE_UINTnn separately to get proper sign extension.
3569
58a12889
AS
3570 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
3571 can properly handle unsigned types.
d528b1ce 3572 (make_uid, make_gid): Remove.
58a12889 3573
987c9327
AS
3574 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
3575 types again.
3576
522d013a 3577 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
3578 (system_process_attributes): Likewise.
3579
905a9ed3
DN
35802009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
3581
3582 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
3583
3584 * eval.c (Fautoload): Purecopy the filename. Simplify.
3585
3586 * category.c (Fdefine_category): Purecopy docstring.
3587
a599b3e8
AS
35882009-10-23 Andreas Schwab <schwab@linux-m68k.org>
3589
7b792fc9
AS
3590 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
3591
a599b3e8
AS
3592 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
3593
b35ac83e
CY
35942009-10-23 Chong Yidong <cyd@stupidchicken.com>
3595
3596 * window.c (Fwindow_edges, Fwindow_pixel_edges)
3597 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
3598 (Bug#4775).
3599
e8903e00
SM
36002009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
3601
3602 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
3603 (init_fileio_once):
3604 * lisp.h (init_fileio_once): Remove.
3605 * emacs.c (main): Don't call init_fileio_once.
3606
8f43cbf3
DN
36072009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
3608
3609 * puresize.h (BASE_PURESIZE): Increase to 1430000.
3610
26898943
AS
36112009-10-21 Andreas Schwab <schwab@linux-m68k.org>
3612
3613 * doprnt.c (doprnt): Fix overflow check.
3614
5c646d5a
JD
36152009-10-21 Jan Djärv <jan.h.d@swipnet.se>
3616
3132a7ea
JD
3617 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
3618
5c646d5a
JD
3619 * xterm.h (x_wait_for_event): Declare it.
3620
3621 * xterm.c (pending_event_wait): New variable.
3622 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
3623 see pending_event_wait.eventtype.
3624 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
3625 (x_new_font): Call change_frame_size with new rows/columns before we
3626 try to resize the frame.
5c646d5a 3627 (x_wait_for_event): New function.
d528b1ce
SM
3628 (x_set_window_size_1): Don't change gravity unless change_gravity
3629 is set.
5c646d5a
JD
3630 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
3631 don't change frame size, instead wait for the ConfigureNotify.
3632 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
3633 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
3634 (x_initialize): Initialize pending_event_wait.
3635
3636 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
3637 size.
3638
3639 * widget.c (EmacsFrameSetValues): Add comment.
3640 (EmacsFrameSetCharSize): Just call x_set_window_size.
3641
3642 * gtkutil.c (xg_frame_set_char_size): Flush events and call
3643 x_wait_for_event.
d528b1ce 3644 (flush_and_sync): Remove again.
5c646d5a
JD
3645 (xg_get_font_name): Suggest monospace if no previous font is known.
3646
e9c1637d
SM
36472009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
3648
3649 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 3650 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 3651
5a72cccb
YM
36522009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3653
3654 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
3655 processing pending events when event is filtered for input method.
ab04798f 3656 (Bug#3681)
5a72cccb 3657
2629aa37
JB
36582009-10-20 Juanma Barranquero <lekktu@gmail.com>
3659
3660 * fns.c: Add #endif accidentally removed in previous change.
3661
c3417a74
DN
36622009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
3663
3664 * fns.c: Remove code for unsupported system: MAC_OS.
3665 * image.c: Likewise. Include setjmp.h.
3666
9685cef2
JD
36672009-10-19 Jan Djärv <jan.h.d@swipnet.se>
3668
3669 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
3670 pixel -1 (bug #4742).
3671
d7306fe6
DN
36722009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
3673
019d2c4c
DN
3674 * process.c (create_pty): Remove conditionals for no longer
3675 supported systems: UNIPLUS and RTU.
3676
ee6bacd4
DN
3677 * xterm.c:
3678 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
3679
d7306fe6
DN
3680 * alloc.c: Do not define struct catchtag.
3681 * eval.c: Move struct catchtag definition ...
3682 * lisp.h: ... here.
3683
3684 * image.c: Move png.h #include earlier to avoid warnings.
3685
3686 * xterm.c:
3687 * xsmfns.c:
3688 * xselect.c:
3689 * xrdb.c:
3690 * xmenu.c:
3691 * xftfont.c:
3692 * xfont.c:
3693 * xfns.c:
3694 * xfaces.c:
3695 * xdisp.c:
3696 * window.c:
3697 * widget.c:
3698 * w32xfns.c:
3699 * w32uniscribe.c:
3700 * w32term.c:
3701 * w32select.c:
3702 * w32reg.c:
3703 * w32proc.c:
3704 * w32menu.c:
3705 * w32inevt.c:
3706 * w32heap.c:
3707 * w32font.c:
3708 * w32fns.c:
3709 * w32console.c:
3710 * w32.c:
3711 * w16select.c:
3712 * vm-limit.c:
3713 * unexsol.c:
3714 * unexec.c:
3715 * unexcw.c:
3716 * unexaix.c:
3717 * undo.c:
3718 * tparam.c:
3719 * textprop.c:
3720 * terminfo.c:
3721 * terminal.c:
3722 * termcap.c:
3723 * term.c:
3724 * syntax.c:
3725 * sound.c:
3726 * sheap.c:
3727 * search.c:
3728 * scroll.c:
3729 * region-cache.c:
3730 * regex.c:
3731 * ralloc.c:
3732 * process.c:
3733 * print.c:
b024548b
DN
3734 * nsterm.m:
3735 * nsselect.m:
3736 * nsmenu.m:
3737 * nsimage.m:
3738 * nsfont.m:
3739 * nsfns.m:
d7306fe6
DN
3740 * msdos.c:
3741 * minibuf.c:
3742 * menu.c:
3743 * marker.c:
3744 * macros.c:
3745 * keymap.c:
3746 * keyboard.c:
3747 * intervals.c:
3748 * insdel.c:
3749 * indent.c:
3750 * gtkutil.c:
3751 * ftxfont.c:
3752 * ftfont.c:
3753 * fringe.c:
3754 * frame.c:
3755 * fontset.c:
3756 * font.c:
3757 * fns.c:
3758 * floatfns.c:
3759 * filelock.c:
3760 * fileio.c:
3761 * emacs.c:
3762 * editfns.c:
3763 * dosfns.c:
3764 * doprnt.c:
3765 * doc.c:
3766 * dispnew.c:
3767 * dired.c:
3768 * dbusbind.c:
3769 * data.c:
3770 * composite.c:
3771 * coding.c:
3772 * cmds.c:
3773 * cm.c:
3774 * chartab.c:
3775 * charset.c:
3776 * character.c:
3777 * ccl.c:
3778 * category.c:
3779 * casetab.c:
3780 * casefiddle.c:
3781 * callproc.c:
3782 * callint.c:
3783 * bytecode.c:
3784 * buffer.c:
3785 * atimer.c: Include setjmp.h. (Bug#4643)
3786
fd5f21e6
SM
37872009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
3788
4c0354d7
SM
3789 Remove leftover table unibyte_to_multibyte_table.
3790 * character.c (unibyte_to_multibyte_table): Remove.
3791 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
3792 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
3793 * character.h (UNIBYTE_TO_CHAR): New macro.
3794 (MAKE_CHAR_MULTIBYTE): Use it.
3795 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
3796 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
3797 (message_dolog, set_message_1):
3798 * search.c (Freplace_match):
3799 * editfns.c (Fcompare_buffer_substrings):
3800 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
3801 (concat):
3802 * insdel.c (copy_text, count_size_as_multibyte):
3803 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
3804 * term.c (produce_glyphs):
3805 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
3806 * regex.c (RE_CHAR_TO_MULTIBYTE):
3807 * cmds.c (internal_self_insert):
3808 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
3809
fd5f21e6
SM
3810 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
3811
4418646e
DN
38122009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
3813
3814 * puresize.h (BASE_PURESIZE): Increase to 1310000.
3815
35f5c1d2
JB
38162009-10-16 Juanma Barranquero <lekktu@gmail.com>
3817
3818 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
3819
a0cd8f6b
AR
38202009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
3821
3822 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
3823 still needed under Tiger.
3824
3825 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
3826
3827 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
3828 __Apple__.
3829
3830 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
3831
01a8d3fa
KH
38322009-10-15 Kenichi Handa <handa@m17n.org>
3833
3834 * print.c (print_object): Escape a symbol like "2E10" too.
3835
bf6c75c9 38362009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
3837
3838 Cleanups and changes for 64-bit compile under Snow Leopard.
3839 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
3840
3841 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
3842
c5959062 3843 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
3844 (ns_findfonts, nsfont_list_family): Use long format in printf, and
3845 cast argument.
3846 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 3847 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
3848
3849 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
3850
3851 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
3852 where appropriate.
3853
3854 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
3855 where appropriate.
6e4780c5
JB
3856 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
3857 Use stringWithUTF8String.
bf6c75c9
AR
3858 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
3859
6e4780c5
JB
3860 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
3861 Add formal protocol mention to inheritance.
bf6c75c9
AR
3862 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
3863
6e4780c5
JB
3864 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
3865 Fix printf format.
bf6c75c9
AR
3866 (ns_query_color): Use CGFloat where appropriate.
3867 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 3868 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
3869 argument.
3870
3d87f118
AR
3871 * config.in (NS_HAVE_NSINTEGER): Drop.
3872
a95c8102
AR
3873 * dbusbind.c (dbus-method-return-internal)
3874 (dbus-method-error-internal): Use long format in printf, and cast
3875 argument.
3876
3877 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
3878 in printf, and cast argument.
3879
6873acca 3880 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
3881 cast argument.
3882
9ec6f100
GM
38832009-10-11 Glenn Morris <rgm@gnu.org>
3884
3885 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
3886
5be883cd
JD
38872009-10-08 Jan Djärv <jan.h.d@swipnet.se>
3888
3889 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
3890 menu bar with a small width so it doesn't enlarge the frame.
3891
d7a39b51
JB
38922009-10-08 Juanma Barranquero <lekktu@gmail.com>
3893
3894 * fontset.c (Fset_fontset_font): Fix typos in error messages.
3895
0c2b6f8e
GM
38962009-10-06 Glenn Morris <rgm@gnu.org>
3897
3898 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
3899 SOME_MACHINE_LISP (this enters indirectly via DOC).
3900
e02131a2
EZ
39012009-10-05 Eli Zaretskii <eliz@gnu.org>
3902
3903 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
3904
b4744254
EZ
39052009-10-04 Eli Zaretskii <eliz@gnu.org>
3906
3907 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
3908 Doc fix.
3909
dbf64827
JB
39102009-10-03 Martin Rudalics <rudalics@gmx.at>
3911
3912 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
3913
e9a0aef8
MA
39142009-10-02 Michael Albinus <michael.albinus@gmx.de>
3915
d528b1ce 3916 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
3917 used anymore outside fileio.c.
3918
3919 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
3920
64eb2b56
JB
39212009-10-01 Juanma Barranquero <lekktu@gmail.com>
3922
3923 * lisp.h (Qdelete_directory_internal):
3924 Declare, instead of Qdelete_directory.
3925
3926 * w32fns.c (Fsystem_move_file_to_trash): Use it.
3927
9d28c33e
SM
39282009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
3929
3930 * eval.c (Fcalled_interactively_p): Add `kind' argument.
3931
9d8f3bd9
MA
39322009-10-01 Michael Albinus <michael.albinus@gmx.de>
3933
9d28c33e 3934 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
3935 Fdelete_directory. It is not a command anymore. It has no file
3936 name handler.
3937
9694740b
SM
39382009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
3939
3940 * xdisp.c (get_next_display_element): Use an enum in last change.
3941
748e162f
KH
39422009-09-28 Kenichi Handa <handa@m17n.org>
3943
9694740b 3944 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
3945 unibyte_display_via_language_environment in handling
3946 Vnobreak_char_display.
3947
17efd58d
AR
39482009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
3949
3950 * nsterm.h (ns_app_name): New extern variable.
3951
3952 * nsterm.m (ns_app_name): New variable.
3953 (ns_term_init): Set and use it.
3954 (ns_term_shutdown): Use it.
3955
3956 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
3957 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
3958
3959 * nsfns.m (ns_set_name_iconic, ns_set_name)
3960 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
3961 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
3962
9694740b
SM
3963 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
3964 Remove double-casting in client_data comparison.
31c2d412 3965
3208cb35
YM
39662009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3967
3968 * keyboard.c (make_lispy_event): Remember last wheel direction.
3969 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
3970
b7d552d6
GM
39712009-09-26 Glenn Morris <rgm@gnu.org>
3972
3973 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
3974 internal.elc. Add term/pc-win.elc.
3975 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
3976 term/x-win.elc.
3977 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
3978 term/w32-win.elc.
3979 (NS_SUPPORT): New.
3980 (lisp): Add NS_SUPPORT.
3981 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
3982
4ff670a8
DR
39832009-09-25 David Reitter <david.reitter@gmail.com>
3984
3985 * nsmenu.m (EmacsMenu-clear): Recognize application menu
3986 on Mac OS X 10.6+ (bug#4513).
3987
feabfb6c
JB
39882009-09-24 Juanma Barranquero <lekktu@gmail.com>
3989
3990 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
3991 some parts of Emacs code (like font selection) don't grok them.
3992 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 3993
de59072a
AS
39942009-09-24 Andreas Schwab <schwab@redhat.com>
3995
3996 * coding.c (decode_coding_iso_2022): Fix operator precedence.
3997
a489517b
JB
39982009-09-24 Juanma Barranquero <lekktu@gmail.com>
3999
4000 * dired.c (Fdirectory_files): Fix typo in docstring.
4001
0592970c
AR
40022009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
4003
4004 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
4005 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
4006 (EmacsScroller-setPosition:portion:whole:): Remove -display call
4007 under GNUstep.
4008 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
4009
4010 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
4011 glyph advancement.
4012
48e8a88b
AR
40132009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4014
4015 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 4016 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
4017
4018 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
4019 deleted (bug #4492).
4020
e14f0a78
AR
4021 * nsfont.m (Vns_reg_to_script): New lisp variable.
4022 (syms_of_nsfont): Declare it.
4023 (ns_registry_to_script): New function.
4024 (ns_get_req_script): Call it.
4025 (ns_findfonts): Don't give up on non-unicode registry.
4026
4027 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
4028
5b650faa
SM
40292009-09-20 Tom Tromey <tromey@redhat.com>
4030
4031 * eval.c (find_handler_clause): Make stack-trace-on-error work in
4032 batch mode (bug#4228).
4033
a489517b 40342009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
4035
4036 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 4037 carefully. (Bug #4339)
0bae4e09 4038
fcfe06f3
CY
40392009-09-18 Chong Yidong <cyd@stupidchicken.com>
4040
d798ba87 4041 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 4042
31642728
AR
40432009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
4044
4045 * emacs.c (inhibit_x_resources): Update doc string for NS.
4046 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 4047 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
4048
4049 * nsterm.h (ns_no_defaults): Remove.
4050
4051 * nsterm.m (ns_no_defaults): Remove.
4052 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
4053 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
4054 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
4055 don't update the NSWindow itself.
4056 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 4057 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
4058
4059 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
4060 ns_use_qd_smoothing.
4061
4062 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
4063 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 4064 (x-close-connection): Drop PSFlush() under OS X.
a489517b 4065 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 4066
8686ac71
JB
40672009-09-17 Juanma Barranquero <lekktu@gmail.com>
4068
4069 * emacs.c (inhibit_x_resources): New variable.
4070 (main) [HAVE_NS]: Don't process --quick command line option.
4071 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
4072
4073 * lisp.h (inhibit_x_resources): Declare it extern.
4074
4075 * w32reg.c (x_get_string_resource):
4076 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
4077
e227ba05
EZ
40782009-09-17 Eli Zaretskii <eliz@gnu.org>
4079
362654a6
JB
4080 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
4081 Add lisp/term/internal.elc.
e227ba05 4082
742d40e8
SM
40832009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
4084
4085 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
4086 (bug#4461).
4087
005bd5a2
DN
40882009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
4089
4090 * puresize.h (BASE_PURESIZE): Increase to 1290000.
4091
4092 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
4093 (OBJECTS_MACHINE): Remove, unused.
4094
f9af9719
SM
40952009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
4096
4097 * frame.c (x_get_resource_string): Remove unused.
4098
0307c7d2
JD
40992009-09-15 Jan Djärv <jan.h.d@swipnet.se>
4100
4101 * xterm.c (x_new_font): Call change_frame_size before calling
4102 x_set_window_size, in case frame size won't change.
4103
4104 * frame.c (x_set_font): Remove dead code.
4105
428b13d6
SM
41062009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
4107
4108 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
4109
5766c380
SM
41102009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4111
4112 * lread.c (Fload): Don't output a message after loading an obsolete
4113 package any more (done in Lisp now).
4114
2fd0161b
CY
41152009-09-12 Chong Yidong <cyd@stupidchicken.com>
4116
4117 * fns.c (syms_of_fns): Doc fix (Bug#4227).
4118
bc5e75b6
SM
41192009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4120
4121 * keymap.c (Fwhere_is_internal): Use nconc2.
4122
c31c985e
AM
41232009-09-11 Alan Mackenzie <acm@muc.de>
4124
4125 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
4126 batch mode.
4127
78012bd2
AS
41282009-09-11 Andreas Schwab <schwab@linux-m68k.org>
4129
4130 * xdisp.c (display_mode_element): Detect cycles.
4131
9d889332
SM
41322009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
4133
4134 * keymap.c (where_is_internal): Don't erroneously return nil right after
4135 filling the cache.
4136 (where_is_internal_1): Fix up typo.
4137
7ab5d780
GM
41382009-09-11 Glenn Morris <rgm@gnu.org>
4139
4140 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
4141 share a common doc-string.
4142
5238a749
SM
41432009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
4144
66d77eda
SM
4145 * keymap.c (get_keymap): Return the actual keymap symbol rather than
4146 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
4147
5238a749
SM
4148 * keymap.c (QCadvertised_binding): New constant.
4149 (syms_of_keymap): Initialize it.
4150 (Fwhere_is_internal): Try and use bindings from :advertised-binding
4151 if applicable.
4152
19f48442
SM
41532009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
4154
50d4ba39
SM
4155 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
4156 (parse_menu_item): Streamline since bindings are recomputed all the
4157 time anyway. Don't bother checking Vdefine_key_rebound_commands any
4158 more and don't support lmenu's menu-alias any more either.
4159
a88a5372
SM
4160 * keymap.c (where_is_internal_data): Make noindirect a boolean.
4161 (where_is_internal): Strip it down to only traverse the keymaps.
4162 Move the cache handling from Fwhere_is_internal to here.
4163 (Fwhere_is_internal): Move the handling of remapping and the choice of
4164 the best binding from where_is_internal to here.
4165 Unify the cached/noncached paths, so remapping is also handled
4166 correctly when the cache is used, and so the cache can be used to
4167 speed up remap-handling when applicable.
4168 Give preference to non-remapped bindings.
4169 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
4170 non-remapped bindings.
4171 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
4172 command remapping.
4173
19f48442
SM
4174 * xdisp.c (display_mode_element): Move list length limit from 50 to
4175 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
4176
599498c3 41772009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
4178
4179 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
4180
f9b7b5ac
SM
41812009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
4182
a53af587
JB
4183 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
4184 (Bug#4334)
4185
f9b7b5ac
SM
4186 * keymap.c (where_is_internal): Filter out shadowed remappings.
4187 Assume that where_is_internal returns unshadowed bindings to simplify
4188 the code and get rid of the gotos. Use ASIZE.
4189
04f4b72d
JD
41902009-09-04 Jan Djärv <jan.h.d@swipnet.se>
4191
4da146f2
JD
4192 * xterm.c (x_focus_changed): If we get a focusout and pointer
4193 is invisible, make it visible.
4194
04f4b72d
JD
4195 * xterm.h: Remove condition for declaration of
4196 x_*_window_to_frame.
4197
7cef7ce3
SM
41982009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
4199
4200 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
4201 initial terminal as well.
4202
a54fa5b7
JD
42032009-09-02 Jan Djärv <jan.h.d@swipnet.se>
4204
4205 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 4206 x_menubar_window_to_frame.
a54fa5b7 4207
50426a04 4208 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
4209 (XTmouse_position): Do not return valid positions
4210 for clicks in the menubar and the toolbar for Gtk+.
4211
4212 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
4213 if the widget for the event has the same top level as a frame,
4214 return the frame.
4215 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
4216 internal windows, bug #4122.
4217 (x_non_menubar_window_to_frame): Remove.
4218
5a021dd0
GM
42192009-09-02 Glenn Morris <rgm@gnu.org>
4220
4221 * buffer.c (default-major-mode): Move most of the doc from here...
4222 (major-mode): ... to here.
4223
548fe2f3
NR
42242009-08-30 Nick Roberts <nickrob@snap.net.nz>
4225
4226 * process.c (wait_reading_process_output): Keep the descriptor
4227 when pty is used by a non-child process, e.g., in I/O buffer of
4228 GDB this allows inferior to be restarted.
4229
e0840eef
EZ
42302009-08-29 Eli Zaretskii <eliz@gnu.org>
4231
4232 * xdisp.c (redisplay_internal): Remove redundant test and collapse
4233 both branches into one.
4234
82e98df4
SM
42352009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
4236
4237 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
4238 (main): Use enable-multibyte-characters rather than
4239 default-enable-multibyte-characters. Output a warning message when
4240 running a unibyte session.
4241
890617cb
YM
42422009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4243
4244 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
4245 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
4246 (copy_data_segment): Also copy __program_vars section.
4247 (copy_dyld_info) [LC_DYLD_INFO]: New function.
4248 (dump_it) [LC_DYLD_INFO]: Use it.
4249
4250 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
4251
e7adeadc
EZ
42522009-08-28 Eli Zaretskii <eliz@gnu.org>
4253
4254 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
4255 $(SRC)/buildobj.h.
4256 (buildobj.h): Renamed from $(SRC)/buildobj.h.
4257 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
4258 $(SRC)/buildobj.h.
4259 (clean): Add buildobj.h.
4260
3ed8bbdc
TZ
42612009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
4262
4263 * print.c (print_object): Set escapeflag to 1 when printing
4264 hashtable keys and values.
4265
155a6764
SM
42662009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
4267
4268 * lread.c (read_integer): Use doubles (and potentially return a float
4269 number) as we do in string-to-number.
4270 (read1): Use strtol to read integers, signal errors on strtol's
4271 overflow and use floats if strtol's output is too large for
4272 Elisp integers.
4273
877610de
EZ
42742009-08-27 Eli Zaretskii <eliz@gnu.org>
4275
4276 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
4277 (make-buildobj-SH): Fix last change.
4278 (SRC): Move to before where it's first used.
4279
ef73e7be
KH
42802009-08-27 Kenichi Handa <handa@m17n.org>
4281
550c8289
KH
4282 * process.c (send_process): Use encode_coding_object instead of
4283 encode_coding_string to perform eol-conversion even if the string
4284 is unibyte.
4285
60afa08d
KH
4286 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
4287 character.
4288
ef73e7be 4289 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 4290 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 4291
7b3a82d7
DN
42922009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
4293
5654bf63
DN
4294 * callproc.c (Fcall_process): Remove always true #if.
4295
7b3a82d7
DN
4296 * lisp.h: Replace #if 0 code for checking with text pointing to
4297 the --enable-checking configure flag.
4298
4299 * emacs.c (main): Mention the --enable-profiling configure flag
4300 instead of using CFLAGS.
4301
878bde49
KR
43022009-08-26 Ken Raeburn <raeburn@raeburn.org>
4303
4304 * Makefile.in (buildobj.h): New target.
4305 (doc.o): Depend on it.
4306 (temacs${EXEEXT}): Don't generate buildobj.lst.
4307 (mostlyclean): Delete buildobj.h, not buildobj.lst.
4308 * makefile.w32-in ($(SRC)/buildobj.h): New target.
4309 ($(BLD)/doc.$(O)): Depend on it.
4310 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
4311 provided by Eli Zaretskii.)
4312 ($(TEMACS)): Don't generate buildobj.lst.
4313 * doc.c: Include buildobj.h.
4314 (buildobj): New static variable.
4315 (Fsnarf_documentation): Use it, instead of opening and reading
4316 buildobj.lst.
4317
1574224c
MA
43182009-08-25 Michael Albinus <michael.albinus@gmx.de>
4319
4320 * dbusbind.c (Fdbus_call_method)
4321 (Fdbus_call_method_asynchronously): Use English numeric format for
4322 timeout values in doc string.
4323
d9da2f45
KH
43242009-08-25 Kenichi Handa <handa@m17n.org>
4325
ef73e7be
KH
4326 * alloc.c (mark_char_table): New function.
4327 (mark_object): Use mark_char_table for a char-table.
4328
d9da2f45
KH
4329 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
4330 (CHAR_TABLE_REF): Use it.
4331
c8edcc01
KR
43322009-08-23 Ken Raeburn <raeburn@raeburn.org>
4333
4334 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
4335 before invoking the newly build emacs to check for load-path
4336 shadowing.
4337
7763401b
GM
43382009-08-22 Glenn Morris <rgm@gnu.org>
4339
4340 * Makefile.in (bootstrap_exe): New variable.
4341 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
4342 Use ${bootstrap_exe}.
4343
729eadda
EZ
43442009-08-22 Eli Zaretskii <eliz@gnu.org>
4345
4346 * coding.h (encode_coding_string): Don't encode unibyte strings.
4347 (Bug#4047)
4348
eb4c6ace
MA
43492009-08-22 Michael Albinus <michael.albinus@gmx.de>
4350
4351 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
4352
4353 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
4354 intended as hotfix only.
4355 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
4356
36e34d1b
AR
43572009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4358
4359 * nsterm.m (ns_get_color): Update documentation properly for last
4360 change, and clean up loose ends in the code left by it. Fix
4361 longstanding bug with 16-bit hex parsing, and add support for
4362 yet another X11 format (rgb:r/g/b) for compatibility.
4363 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
4364 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
4365
f983eb8a
SM
43662009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
4367
4368 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
4369
3f56d3c6
MA
43702009-08-20 Michael Albinus <michael.albinus@gmx.de>
4371
4372 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
4373 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
4374 (xd_initialize, xd_pending_messages): Check, whether
4375 $DBUS_SESSION_BUS_ADDRESS is set.
4376
fb641d68
YM
43772009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4378
4379 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
4380
4381 * nsterm.m (ns_get_color): Remove incompatible color formats again.
4382
cf59a374
GM
43832009-08-20 Glenn Morris <rgm@gnu.org>
4384
4385 * emacs.c (system-type): Doc fix.
4386
1373f3be
SM
43872009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
4388
4389 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
4390 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
4391
058ed861
MA
43922009-08-18 Michael Albinus <michael.albinus@gmx.de>
4393
1373f3be
SM
4394 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
4395 New functions.
058ed861
MA
4396 (xd_initialize): Revert change from 2009-08-16.
4397
563a866e 43982009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
4399
4400 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 4401 font-group vector, return nil.
5fc05db0 4402
e42bdf01
CY
44032009-08-17 Chong Yidong <cyd@stupidchicken.com>
4404
4405 * process.c (status_notify): Don't perform redisplay.
4406 (Fdelete_process, list_processes_1, process_send_signal):
4407 Expliticly perform redisplay.
4408 (wait_reading_process_output): Always check process status, but
4409 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
4410
4230ab74
KR
44112009-08-17 Ken Raeburn <raeburn@raeburn.org>
4412
1373f3be 4413 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
4414 (XFLOAT_INIT): New macro for storing a float value.
4415 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
4416 * fns.c (sxhash): Copy out the value of a float in order to
4417 examine its bytes.
4418 * dbusbind.c (xd_append_arg): Likewise.
4419
4230ab74
KR
4420 * emacs.c (main): Don't call syms_of_data twice.
4421
a0645cdd
MA
44222009-08-16 Michael Albinus <michael.albinus@gmx.de>
4423
4424 * dbusbind.c (xd_initialize): Add connection file descriptor to
4425 input_wait_mask, in order to let select() detect, whether a new
4426 message has been arrived.
ca4f31ea 4427 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 4428
485db0ba
MA
44292009-08-15 Michael Albinus <michael.albinus@gmx.de>
4430
1373f3be
SM
4431 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
4432 New functions.
485db0ba
MA
4433
4434 * lisp.h (xd_pending_messages): Declare.
4435
4436 * keyboard.c (readable_events): Call xd_pending_messages.
4437
b5b98ff4
CY
44382009-08-15 Chong Yidong <cyd@stupidchicken.com>
4439
1373f3be 4440 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 4441
f8354c6e
CY
4442 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
4443
b5b98ff4
CY
4444 * buffer.c (set_buffer_internal_1)
4445 (swap_out_buffer_local_variables): Check for unbound local
4446 variables (Bug#4138).
4447
8b9fc636
EZ
44482009-08-14 Eli Zaretskii <eliz@gnu.org>
4449
4450 * process.c (create_pty): Fix last change.
4451
ce959360
CY
44522009-08-13 Chong Yidong <cyd@stupidchicken.com>
4453
4454 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
4455 (xbm_load_image): Caller changed.
64b807c9 4456 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 4457
c7baf7e9
NR
44582009-08-13 Nick Roberts <nickrob@snap.net.nz>
4459
4460 * process.c (create_pty): New function.
4461 (Fstart_process): Use it to allow Emacs to just associate a pty
4462 with the buffer. See associated change in gdb-mi.el.
4463 (list_processes_1): Deal with no program name.
4464 (start_process_unwind): Use pid == -2 to mean no process.
4465
1ac9108a
SM
44662009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
4467
4468 * cmds.c (nonundocount): New global variable.
4469 (keys_of_cmds): Initialize it.
4470 (Fself_insert_command): Use it to combine upto 20 sequential chars
4471 into a single undo entry, just like the Qself_insert_command code in
4472 keyboard.c does.
4473 Call frame_make_pointer_invisible, also like the Qself_insert_command
4474 code in keyboard.c does.
4475 * keyboard.c (command_loop_1): Use the new global nonundocount rather
4476 than its own local replacement for it.
4477
e267324c
KR
44782009-08-10 Ken Raeburn <raeburn@raeburn.org>
4479
1ac9108a 4480 * fns.c (concat): Don't re-set string length to its current value.
77437343 4481
1ac9108a
SM
4482 * coding.h (decode_coding_string, encode_coding_string):
4483 Use SBYTES macro.
f0bed503 4484
1ac9108a 4485 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
4486 (doprnt): Merge with doprnt1, discarding lispstrings code.
4487 * lisp.h (doprnt_lisp): Don't declare.
4488
416e006d
JL
44892009-08-07 Juri Linkov <juri@jurta.org>
4490
4491 * puresize.h (BASE_PURESIZE): Increase to 1270000.
4492
6f7d5780
DN
44932009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
4494
4495 * print.c (syms_of_print): Undo previous change.
4496
f19a0f5b
TZ
44972009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
4498
4499 * lread.c (read1, syms_of_lread): Read hashtables back from the
4500 readable format.
4501
4502 * print.c (print_preprocess, print_object): Print hashtables fully
4503 and readably.
4504 (syms_of_print): Provide 'hashtable-print-readable.
4505
b9173dc2
AR
45062009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
4507
4508 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
4509 no family set.
4510 (nsfont_open): Handle case when entity has no family.
4511
1586503c
AR
45122009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
4513
4514 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
4515 element, not a list, for match case.
4516
087048cd
KH
45172009-07-28 Kenichi Handa <handa@m17n.org>
4518
4519 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
4520 rigidly.
4521
4522 * xfont.c (xfont_list_pattern): Don't ignore the return value of
4523 font_parse_xlfd. Check font properties more rigidly.
4524
780c2506
DN
45252009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
4526
31fd7c5c
JB
4527 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
4528 bsd-common.h.
780c2506 4529
a8c0cc18
KH
45302009-07-27 Kenichi Handa <handa@m17n.org>
4531
4532 * xfaces.c (face_with_height): Call font_clear_prop.
4533
4fbe2306
CY
45342009-07-26 Chong Yidong <cyd@stupidchicken.com>
4535
111d9af3
CY
4536 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
4537
4538 * xterm.c (x_term_init): Use Qx.
4539
4fbe2306
CY
4540 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
4541
1ac9108a 4542 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
4543 (ns_get_color): Revert 2009-07-16 change.
4544
beb0b7f9
EZ
45452009-07-25 Eli Zaretskii <eliz@gnu.org>
4546
4547 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 4548 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 4549
2baf5e76
KR
45502009-07-25 Ken Raeburn <raeburn@raeburn.org>
4551
1ac9108a
SM
4552 * coding.h (decode_coding_string, encode_coding_string):
4553 Use SCHARS macro.
8890e5f5 4554
2baf5e76 4555 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 4556 (load_depth): Delete.
2baf5e76
KR
4557 (Qload_in_progress): New variable.
4558 (load_unwind): Don't reference load_depth or load_in_progress.
4559 (Fload): Likewise; specbind Qload_in_progress instead.
4560 (init_lread): Don't initialize load_depth.
4561 (syms_of_lread): Initialize and protect Qload_in_progress.
4562
1395c6f5
AR
45632009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4564
4565 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
4566
4e2f36cf
AR
45672009-07-23 Yavor Doganov <yavor@gnu.org>
4568
4569 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
4570
5dd9a6f7
AR
45712009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
4572
4573 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
4574 Bugs 3792, 3720, 2402.
4575 (ns_lookup_indexed_color): Check for bad index.
4576 (ns_index_color): Init unused slot to 0.
4577 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
4578 Bug 3714, possibly 3082.
5dd9a6f7 4579
c902b920
JR
45802009-07-22 Jason Rumney <jasonr@gnu.org>
4581
1ac9108a
SM
4582 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
4583 Position IME window at cursor (Bug#2570).
c902b920
JR
4584 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
4585 (globals_of_w32fns): Dynamically load functions required above.
4586
4587 * w32term.c (w32_draw_window_cursor): Send message to reposition
4588 any IME window.
4589
090101cf
CY
45902009-07-21 Chong Yidong <cyd@stupidchicken.com>
4591
4592 * fileio.c: Revert 2009-07-16 changes.
4593 (Vauto_save_include_big_deletions): New variable.
4594 (Fdo_auto_save): Disable auto-save only if
4595 auto-save-include-big-deletions is nil.
4596
e6583e3d
CY
45972009-07-21 Chong Yidong <cyd@stupidchicken.com>
4598
4599 * xdisp.c (move_it_to): For continued lines ending in a tab, take
4600 the overflowed pixels into account (Bug#3879).
4601
ece435a5
KR
46022009-07-21 Ken Raeburn <raeburn@raeburn.org>
4603
4604 * lread.c (load_depth): New variable.
4605 (Fload, load_unwind, init_lread): Set it to the load recursion
4606 depth; set load_in_progress as a simple boolean based on the
4607 current load_depth. (Bug#3892)
4608
40b2d973
AR
46092009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4610
4611 * nsfont.m (ns_has_attribute): Remove.
4612 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
4613
10be7e0d
JL
46142009-07-18 Juri Linkov <juri@jurta.org>
4615
4616 * process.c (Fset_process_query_on_exit_flag): Mention killing
4617 a buffer in docstring.
4618
fa055055
KH
46192009-07-17 Kenichi Handa <handa@m17n.org>
4620
4621 * casetab.c (shuffle): Fix the logic of setting up the cycle.
4622
042f7b69
YM
46232009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4624
4625 * nsfns.m (Fns_set_alpha): Remove function.
4626 (syms_of_nsfns): Don't defsubr it.
4627
4628 * nsterm.m (ns_get_color): Remove incompatible color formats.
4629 (ns_color_to_lisp): Generate #rrggbb color format string.
4630
4be941e3
RS
46312009-07-16 Richard Stallman <rms@gnu.org>
4632
4633 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
4634 (Fset_buffer_auto_saved): Handle save_length = -2.
4635
4e6b227d
CY
46362009-07-16 Chong Yidong <cyd@stupidchicken.com>
4637
4638 * xterm.c (Qx_gtk_map_stock): New var.
4639
4640 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
4641 of calling intern each time.
4642
a1856973
YM
46432009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4644
4645 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
4646 does tiling.
4647
4648 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
4649
497e54d8
KH
46502009-07-14 Kenichi Handa <handa@m17n.org>
4651
72d36834
KH
4652 * font.c (font_vconcat_entity_vectors): New function.
4653 (struct font_sort_data): New member font_driver_preference.
4654 (font_compare): Check font_driver_preference.
4655 (font_sort_entities): The format of the first argument changed.
4656 (font_delete_unmatched): Likewise.
4657 (font_list_entities): The return type changed.
4658 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
4659 (font_find_for_lface): Adjuste for the above changes.
4660 Don't suppress the checking of C even if the repertory supports it.
4661 (Flist_fonts): Adjust for the above changes.
72d36834 4662
1ac9108a
SM
4663 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
4664 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
4665 Reject a font who has adstyle property that is different from a
4666 langname derived from registry property.
1ac9108a 4667 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 4668
b6046155
EZ
46692009-07-13 Eli Zaretskii <eliz@gnu.org>
4670
4671 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
4672 local copy of dirfilename.
4673
fb6b6049
KH
46742009-07-13 Kenichi Handa <handa@m17n.org>
4675
e2402a5e
KH
4676 * chartab.c (sub_char_table_ref_and_range): Fix the range check
4677 against max_char.
4678
fb6b6049
KH
4679 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
4680 calling XSYMBOL (sym).
4681
65156807
EZ
46822009-07-11 Eli Zaretskii <eliz@gnu.org>
4683
1ac9108a
SM
4684 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
4685 New function.
4686 (directory_files_internal) [WINDOWSNT]:
4687 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
4688 the filesystem of the directory is fast or slow.
4689
4690 * w32.c (logon_network_drive): Don't assume PATH is an absolute
4691 file name.
4692 (is_slow_fs): New function.
4693 (stat): Use it to determine whether to issue more system calls to
4694 get accurate file attributes, when w32-get-true-file-attributes is
4695 `local'.
4696
e0ab5fcf
JD
46972009-07-10 Jan Djärv <jan.h.d@swipnet.se>
4698
4699 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 4700 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
4701 parameter font-parameter as default to the font dialog.
4702
784ceded
KH
47032009-07-10 Kenichi Handa <handa@m17n.org>
4704
4705 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
4706
fb8edc0b
EZ
47072009-07-09 Eli Zaretskii <eliz@gnu.org>
4708
1ac9108a 4709 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 4710
fb8edc0b
EZ
4711 * w32.c (stat): Treat UNC file names as residing on remote
4712 drives. (Bug#3542)
4713
635c75b1
KH
47142009-07-09 Kenichi Handa <handa@m17n.org>
4715
4716 * fontset.c (fontset_find_font): Fix previous change.
4717
c1d5ce94
MA
47182009-07-08 Michael Albinus <michael.albinus@gmx.de>
4719
4720 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
4721 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
4722 error flag.
4723
edb61b39
KH
47242009-07-08 Kenichi Handa <handa@m17n.org>
4725
374bf7e4
KH
4726 * fontset.c (fontset_find_font): Fix the logic of handling
4727 charset_matched.
4728 (font_for_char): Delete unused var.
4729 (generate_ascii_font_name): Delete it.
4730
edb61b39
KH
4731 * coding.h (JIS_TO_SJIS2): Fix the code range check.
4732
4733 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
4734 (encode_coding_sjis): Fix the code range check.
4735
0f3f018c
CY
47362009-07-07 Chong Yidong <cyd@stupidchicken.com>
4737
4738 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
4739 (Fexpand_file_name): Copy string data properly (Bug#3772).
4740
fcaf6f3a
JD
47412009-07-07 Jan Djärv <jan.h.d@swipnet.se>
4742
4743 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
4744 first MapNotify.
4745
6809ca75
KH
47462009-07-07 Kenichi Handa <handa@m17n.org>
4747
4748 * character.h (unibyte_has_multibyte_table): Delete extern.
4749 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
4750
4751 * charset.c (Fset_charset_priority): Update charset_unibyte.
4752 (syms_of_charset): Initialize charset_unibyte.
4753
4754 * character.c (unibyte_has_multibyte_table): Delete it.
4755 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
4756 charset_unibyte.
4757 (multibyte_char_to_unibyte_safe): Likewise.
4758 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
4759
1ac9108a 4760 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
4761 (x_produce_glyphs): Likewise.
4762
4763 * .gdbinit (xcharset): Fix the treating $arg0.
4764
ad9e2d54
EZ
47652009-07-04 Eli Zaretskii <eliz@gnu.org>
4766
4767 Emulation of `getloadavg' on MS-Windows.
50426a04 4768 * w32.c: Include float.h.
ad9e2d54
EZ
4769 (g_b_init_get_native_system_info, g_b_init_get_system_times)
4770 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
4771 (get_native_system_info, get_system_times): New functions.
4772 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
4773 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
4774 (globals_of_w32): Initialize g_b_init_get_native_system_info,
4775 g_b_init_get_system_times, and num_of_processors.
4776
0a3472c7
JR
47772009-07-03 Jason Rumney <jasonr@gnu.org>
4778
4779 * w32term.c (w32_initialize): Use standard types.
4780
80904120
EZ
47812009-07-03 Eli Zaretskii <eliz@gnu.org>
4782
4783 * dired.c (Ffile_attributes): Decode user and group names by the
4784 locale's encoding. (Bug#3443)
4785
6978862d
DN
47862009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
4787
f8d23104
DN
4788 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
4789 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
4790
4791 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
4792
4793 * term.c (init_tty): Remove spurious #ifdef.
4794
6978862d
DN
4795 * m/mips.h: Mention this file is also used for netbsd.
4796 * m/pmax.h: Remove file.
4797
e044e4fc
JD
47982009-07-03 Jan Djärv <jan.h.d@swipnet.se>
4799
4800 * xterm.h (struct x_display_info): Add invisible_cursor.
4801 (struct x_output): Add current_cursor.
4802
4803 * xterm.c (XTtoggle_invisible_pointer): New function.
4804 (x_define_frame_cursor): Don't define cursor if invisible or the
4805 same as before. Set current_cursor.
4806 (x_create_terminal): Set toggle_invisible_pointer_hook.
4807
4808 * xfns.c (make_invisible_cursor): New function.
4809 (x_set_mouse_color): Call make_invisible_cursor.
4810 Set current_cursor.
4811 (x_window): Set current_cursor.
4812
4813 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
4814
4815 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
4816 inserting a character.
4817 (read_avail_input): Call frame_make_pointer_visible.
4818
4819 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
4820 (frame_make_pointer_invisible, frame_make_pointer_visible):
4821 New functions.
e044e4fc
JD
4822 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
4823
4824 * frame.h: Declare frame_make_pointer_invisible and
4825 frame_make_pointer_visible.
4826 (struct frame): Add pointer_invisible.
4827
574c8efa
JD
48282009-07-02 Jan Djärv <jan.h.d@swipnet.se>
4829
7b507248
JD
4830 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
4831 frame isn't visible.
4832 (xg_frame_resized): If width/height is -1, get size of window
4833 from X server.
4834
4835 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
4836 for MapNotify.
4837
835bdaa7 4838 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 4839 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 4840 (flush_and_sync): Reintroduce.
574c8efa 4841
3f1c6666 48422009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 4843
31fd7c5c 4844 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
4845
4846 * xterm.c (x_handle_net_wm_state): Also look for sticky.
4847 (x_term_init): Initialize Xatom_net_wm_state_sticky.
4848
4849 * frame.h: Declare Qsticky.
4850
cad9ef74
JD
4851 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
4852
4853 * nsfns.m (ns_frame_parm_handlers): Ditto.
4854
4855 * frame.c: Declare Qsticky.
4856 (frame_parms): Add sticky.
4857
4858 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
4859
4860 * xterm.h: Declare x_set_sticky.
4861
4862 * xterm.c (x_set_sticky): New function.
4863
69b16610
JD
4864 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
4865 (xg_tool_bar_menu_proxy): Attach enter/leave events to
4866 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
4867
4868 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
4869
4870 * frame.c: Qmaximized is new.
4871 (x_set_frame_parameters): Do not handle fullscreen specially.
4872 Only set width and height if explicitly set.
4873 (x_set_fullscreen): Handle Qmaximized.
4874 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
4875 (syms_of_frame): Initialize Qmaximized.
4876
1ac9108a
SM
4877 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
4878 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
4879
4880 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
4881 for Expose event. Add call to x_check_fullscreen for MapNotify event.
4882 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
4883 set gravity to NorthWestGravity when USE_GTK.
4884 (set_wm_state): New function.
31fd7c5c 4885 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
4886 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
4887 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 4888 or the case when no window manager is running. That means remove calls
3f1c6666
JD
4889 to x_real_positions and x_fullscreen_adjust.
4890
4891 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
4892 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
4893 flush_and_sync.
4894 (xg_height_changed): New function.
4895 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
4896 and gtk_window_set_policy. Set frame gravity after parsing the
4897 geometry string.
3f1c6666
JD
4898 (xg_update_frame_menubar, free_frame_menubar)
4899 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
4900 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
4901 Remove calls to xg_frame_set_char_size.
4902
fd503d99
KH
49032009-07-01 Kenichi Handa <handa@m17n.org>
4904
4905 * keyboard.c (decode_keyboard_code): New function.
4906 (tty_read_avail_input): Decode the input bytes if necessary.
4907
1ac9108a
SM
4908 * coding.c (setup_coding_system):
4909 Initialize coding->carryover_bytes to 0.
fd503d99
KH
4910 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
4911 use Qno_conversion.
4912
24ed93fb
YM
49132009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4914
4915 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
4916
99061dfc
CY
49172009-06-30 Chong Yidong <cyd@stupidchicken.com>
4918
1ac9108a 4919 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 4920
ff90fbde
JR
49212009-06-30 Jason Rumney <jasonr@gnu.org>
4922
4923 * w32term.c (w32_initialize): Use GetModuleHandle for library that
4924 is already loaded.
4925 Set user model ID if supported (bug#1849).
4926
5f445726
JM
49272009-06-29 Jim Meyering <meyering@redhat.com>
4928
4929 Remove useless if-before-xfree test.
4930 * nsfont.m (nsfont_close): Remove useless test.
4931 * term.c (delete_tty): Likewise.
4932 * w32.c (system_process_attributes): Likewise.
4933 * w32font.c (w32font_close): Likewise.
4934 * xfaces.c (x_free_gc): Likewise.
4935 * xselect.c (buffer): Likewise.
4936
b9607587
AS
49372009-06-28 Andreas Schwab <schwab@linux-m68k.org>
4938
4939 * process.c (send_process): Keep decoded string in a local
4940 variable and protect it from GC. (Bug#3521)
4941
89ba96f4
EZ
49422009-06-28 Eli Zaretskii <eliz@gnu.org>
4943
4944 * term.c (create_tty_output) [MSDOS]: #ifdef away.
4945 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
4946
098a1589
CY
49472009-06-28 Chong Yidong <cyd@stupidchicken.com>
4948
485422be
CY
4949 * xdisp.c (start_display, handle_face_prop)
4950 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
4951 (redisplay_window, try_window_id, produce_image_glyph):
4952 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 4953
098a1589
CY
4954 * xterm.c (x_update_window_begin, x_new_focus_frame)
4955 (x_scroll_bar_handle_click, handle_one_xevent)
4956 (handle_one_xevent, XTread_socket, x_focus_on_frame)
4957 (x_make_frame_visible, x_make_frame_invisible)
4958 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
4959 code chunks that are now obsolete.
4960
78c38319
MA
49612009-06-28 Michael Albinus <michael.albinus@gmx.de>
4962
4963 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
4964 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
4965 for hours, when optimzation is enabled.
4966 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
4967 (xd_read_message): Make them static.
4968
4189ed40
CY
49692009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
4970
4971 * term.c (turn_on_face): Allow simultaneously bold and dim
4972 terminal faces (Bug#3530).
4973
cd9b5e16
CY
49742009-06-27 Chong Yidong <cyd@stupidchicken.com>
4975
4e23bedb
CY
4976 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
4977
cd9b5e16
CY
4978 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
4979 truncation glyphs (Bug#3686).
4980
07cc3c35
GM
49812009-06-27 Glenn Morris <rgm@gnu.org>
4982
4983 * m/pmax.h: Restore file, with only netbsd portions.
4984
31fd7c5c 49852009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 4986
cd9b5e16 4987 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 4988
42d4a64f
KH
49892009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
4990
4991 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
4992 the arg FORCE_SYMBOL.
4993
930fe55b 49942009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
4995
4996 * fontset.c (fontset_find_font): When a usable rfont_def is found
4997 in a fallback font-group, make it the first element of the group.
4998
57ebc3fd
CY
49992009-06-24 Chong Yidong <cyd@stupidchicken.com>
5000
5001 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
5002
f084f942
KH
50032009-06-24 Kenichi Handa <handa@m17n.org>
5004
5005 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
5006 set for C.
5007 (fontset_font): Record the availability of a font for C both in
5008 the realized fontsets of the current one and the default one.
5009
2f686c87
DN
50102009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
5011
5012 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
5013 conditional, it is always defined on AIX.
5014
666e158e
MB
50152009-06-23 Miles Bader <miles@gnu.org>
5016
5017 * window.c (Vrecenter_redisplay): New variable.
5018 (syms_of_window): Initialize it.
5019 (Qtty): New extern declaration.
5020 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
5021
c6da7cd2
JM
50222009-06-23 Jim Meyering <meyering@redhat.com>
5023
1ac9108a
SM
5024 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
5025 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 5026 pointer dereferences are guaranteed to be valid.
c6da7cd2 5027
678dca3d
KH
50282009-06-23 Kenichi Handa <handa@m17n.org>
5029
74d75424
KH
5030 * emacs.c (main): Call init_font ().
5031
5032 * font.h (Vfont_log): Extern it.
5033 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
5034
5035 * font.c (font_sort_entities, font_list_entities)
5036 (font_matching_entity, font_open_entity)
5037 (font_close_object): Change font_add_log to FONT_ADD_LOG.
5038 (Vfont_log): Delete static.
5039 (font_log_env_checked): Delete this variable.
5040 (font_add_log): Don't check font_log_env_checked.
5041 (font_deferred_log): Check Vfont_log.
5042 (init_font): New function.
5043
678dca3d
KH
5044 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
5045
5046 * w32font.c: Change font_add_log to FONT_ADD_LOG.
5047
5048 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
5049
5050 * xfont.c: Change font_add_log to FONT_ADD_LOG.
5051
5052 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
5053 (face_for_char): Don't call font_deferred_log here.
5054 (font_for_char): Likewise.
5055
8a668709
CY
50562009-06-22 Chong Yidong <cyd@stupidchicken.com>
5057
9a01ee33
CY
5058 * w32term.c (x_draw_glyph_string): Use the glyph string's width
5059 rather than its background_width for drawing the overline and
5060 underline (Bug#489).
5061
5062 * xterm.c (x_draw_glyph_string): Use the glyph string's width
5063 rather than its background_width for drawing the overline and
5064 underline (Bug#489).
ec7c9926
CY
5065 (xg_default_icon_file): New variable.
5066 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
5067 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 5068
8a668709
CY
5069 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
5070 (load_overlay_strings): Remove externs.
5071 (fast_find_position): Function deleted.
5072 (mouse_face_from_buffer_pos): New function, based on
5073 fast_find_position. Correctly handle before-strings,
5074 display-strings, and after-strings (Bug#1220).
5075 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
5076
4d4c02d8
CY
50772009-06-21 Chong Yidong <cyd@stupidchicken.com>
5078
1ac9108a 5079 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
5080 (move_it_in_display_line_to, move_it_in_display_line_to)
5081 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
5082
70243478
CY
50832009-06-21 Chong Yidong <cyd@stupidchicken.com>
5084
5085 * Branch for 23.1.
5086
13087e59
JR
50872009-06-21 Jason Rumney <jasonr@gnu.org>
5088
5089 * w32term.c (keyboard_codepage): New static variable.
5090 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
5091 (w32_read_socket) [WM_CHAR]: Use it to decode character
5092 input (bug#3237).
5093 (w32_initialize): Initialize it.
5094 (codepage_for_locale): New function.
5095
4735b74e
KR
50962009-06-20 Ken Raeburn <raeburn@raeburn.org>
5097
5098 * process.c (status_message): Pass Faset index argument as a lisp
5099 object, so as to work with USE_LISP_UNION_TYPE.
5100
0e727afa
YM
51012009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5102
5103 * coding.c (Ffind_coding_systems_region_internal):
5104 Cache checked characters.
5105
cf299835
KH
51062009-06-18 Kenichi Handa <handa@m17n.org>
5107
1ac9108a 5108 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 5109
90f20d94
AS
51102009-06-18 Andreas Schwab <aschwab@redhat.com>
5111
5112 * xdisp.c (redisplay_internal): Check that the frame is still
5113 live after redisplay of its windows.
5114 (redisplay_windows): Check that the window is still live.
5115
7f1faf1c
KH
51162009-06-17 Andreas Schwab <schwab@linux-m68k.org>
5117
5118 * coding.c (detect_coding_utf_16): Fix previous change.
5119
cc13543e
KH
51202009-06-16 Kenichi Handa <handa@m17n.org>
5121
5122 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
5123 UTF-16 by checking the dispersion of Eth and Oth bytes.
5124
977b85f4
AS
51252009-06-15 Andreas Schwab <schwab@linux-m68k.org>
5126
5127 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
5128
66bd43d1
KH
51292009-06-15 Kenichi Handa <handa@m17n.org>
5130
5131 * process.c (status_message): Fix previous change. Be sure to
5132 decode a localized string.
5133
cb5ca9c5
YM
51342009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5135
5136 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
5137 add comment explaining why.
5138
ec7709ba 51392009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 5140
ec7709ba 5141 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 5142
4b7f335c
AR
51432009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
5144
5145 * nsfont.m (ns_attribute_value): Remove.
5146 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
5147 (ns_has_attribute): Shrink the normal range.
5148 (ns_findfonts): Don't worry about requested spec in determining
5149 need for synthItal.
e41820ee 5150 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 5151
73b26103
SZ
51522009-06-14 Seiji Zenitani <zenitani@mac.com>
5153
5154 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
5155
5753e4da
KH
51562009-06-11 Kenichi Handa <handa@m17n.org>
5157
5158 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
5159 overhang for the static composition case.
5160
3561b671
KH
51612009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5162
5753e4da
KH
5163 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
5164 overhang for the automatic composition case.
5165
3561b671
KH
5166 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
5167 composition case.
5168
852bbd41
CY
51692009-06-10 Chong Yidong <cyd@stupidchicken.com>
5170
5171 * xdisp.c (get_next_display_element): When handling wrap-prefix
5172 and line-prefix, treat \n as a control character (bug#3502).
5173
9903d1e6
KH
51742009-06-10 Kenichi Handa <handa@m17n.org>
5175
5176 * font.c (font_parse_family_registry): Fix for one-char foundry.
5177 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
5178
0bcbaaaa
CY
51792009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
5180
5181 * process.c (status_message): Fix handling of multibyte signal
5182 string (Bug#3499).
5183
40aa3f13
JM
51842009-06-09 Jim Meyering <meyering@redhat.com>
5185
1f80c7e2
CY
5186 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
5187 color name is missing.
40aa3f13 5188
72d51285
KH
51892009-06-09 Kenichi Handa <handa@m17n.org>
5190
5191 * charset.c (Fmap_charset_chars): In docstring, state clearly that
5192 FROM-CODE and TO-CODE are codepoints of CHARSET.
5193
c1d04d84
AR
51942009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
5195
5196 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
5197
51982009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
5199
5200 Changes to support :script/:lang/:otf in NS font driver.
5201 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
5202 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
5203 indicate not part of font driver interface, and change callers.
5204 (ns_get_family): Remove pointless null check.
5205 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
5206 ns_spec_to_descriptor, ns_descriptor_to_entity.
5207 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
5208 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
5209 (ns_spec_to_descriptor, ns_descriptor_to_entity)
5210 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
5211 (ns_get_req_script, ns_accumulate_script_ranges)
5212 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
5213 New functions.
5214 (nsfont_list, nsfont_match): Use ns_findfonts.
5215 (nsfont_open): Use font descriptor instead of traits.
5216 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
5217 (dump_glyphstring): Rename to ns_dump_glyphstring.
5218
c7eb9816
AR
5219 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
5220
c1d04d84
AR
5221 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
5222
5223 * fontset.c (fontset_from_font): Remove NS-specific code.
5224
ec7709ba 52252009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
5226
5227 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
5228 nonactive windows.
5229
31fd7c5c 52302009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 5231
1ac9108a 5232 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 5233
68852c13 52342009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
5235
5236 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
5237
6756cd1d
CY
52382009-06-07 Chong Yidong <cyd@stupidchicken.com>
5239
5240 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
5241 account for the overflowing of newlines into the last glyph on the
5242 display line (Bug#3482).
5243
28bf482a
DR
52442009-06-05 David Reitter <david.reitter@gmail.com>
5245
ec7709ba
JB
5246 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
5247 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
5248 Fns_selection_exists_p, Fns_selection_owner_p.
5249
fdb55376
JR
52502009-06-03 Jason Rumney <jasonr@gnu.org>
5251
5252 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
5253 available. (Bug#3379)
5254
05129fbe
KH
52552009-05-29 Kenichi Handa <handa@m17n.org>
5256
1ac9108a
SM
5257 * coding.c (get_translation_table):
5258 Check Venable_character_translation.
05129fbe 5259
ec7709ba 52602009-05-26 David Reitter <david.reitter@gmail.com>
15891144 5261
ec7709ba
JB
5262 * nsterm.m (ns_raise_frame): Only raise frame if visible.
5263 (x_make_frame_visible): Move frame to front rather than calling
15891144 5264 ns_raise_frame().
ec7709ba 5265 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 5266 isn't key window.
ec7709ba 5267 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
5268 drawRect may be called by NSView even if the frame is hidden.
5269
ec7709ba
JB
5270 * nsfns.m (Fx_create_frame): Follow other ports in
5271 determining visibility; default to t. Ensure async_visible is set.
15891144 5272
21f73755
EZ
52732009-05-23 Eli Zaretskii <eliz@gnu.org>
5274
5275 * dired.c (Ffile_attributes): Doc fix.
5276
34001e41
CY
52772009-05-22 Chong Yidong <cyd@stupidchicken.com>
5278
5279 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
5280
46306a17
SM
52812009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
5282
5283 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
5284 and xfont_scratch_props.
5285 (syms_of_xfont): Do it here instead.
5286 (xfont_find_ccl_program): Delete, unused.
5287 (xfont_open): Delete unused var `i'.
5288
ef6e0694
KH
52892009-05-21 Kenichi Handa <handa@m17n.org>
5290
5291 * fontset.c (Qlatin): Don't make it static.
5292
46306a17
SM
5293 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
5294 New functions.
ef6e0694
KH
5295 (xfont_scripts_cache, xfont_scratch_props): New variables.
5296 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
5297 (xfont_list_pattern): Argument changed. Callers changed.
5298 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
5299 (xfont_list): Don't reject a font spec with :script property.
5300 (xfont_has_char): Fix setting of encoding.
5301 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
5302 xfont_scratch_props.
5303
53042009-05-19 Kenichi Handa <handa@m17n.org>
5305
46306a17 5306 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
5307 Callers changed.
5308
53092009-05-18 Kenichi Handa <handa@m17n.org>
5310
5311 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
5312
ac71ced7
SM
53132009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
5314
5315 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
5316 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
5317
1c6d1051
YM
53182009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5319
5320 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
5321 (x_delete_terminal): Dissociate resource database from display and
5322 then call XrmDestroyDatabase before closing display.
5323
9b9b779c
AR
53242009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
5325
5326 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
5327 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
5328 whether selected frame is viable before raising it (based on patch
5329 by David Reitter), and improve commentary.
5330 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 5331
cccd42d5
KH
53322009-05-15 Kenichi Handa <handa@m17n.org>
5333
5334 * font.c (Ffont_spec): Check arguments.
5335
337fbd17
CY
53362009-05-14 Chong Yidong <cyd@stupidchicken.com>
5337
5338 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
5339 weight when testing attributes (Bug#3282).
5340
47a6002f
JD
53412009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5342
5343 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
5344 what we expect to get in the next ConfigureNotify event.
5345
9cb363db
YM
5346 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
5347 before Xft one (Bug#1696).
5348
b9126609
CY
53492009-05-07 David Reitter <david.reitter@gmail.com>
5350
5351 * nsfns.m (Fx_display_planes): Compute bitplanes using
5352 NSBitsPerPixelFromDepth (Bug#3207).
5353
27a69fd9
CY
53542009-05-10 Chong Yidong <cyd@stupidchicken.com>
5355
5356 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
5357
00f37552
TTN
53582009-05-10 Ulrich Mueller <ulm@gentoo.org>
5359
5360 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
5361
2d82a920
DR
53622009-05-07 David Reitter <david.reitter@gmail.com>
5363
ec7709ba
JB
5364 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
5365 Respect mouse face background.
2d82a920 5366
46b0d52d
DR
53672009-05-07 David Reitter <david.reitter@gmail.com>
5368
ec7709ba
JB
5369 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
5370 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
5371 in ns_update_begin and ns_update_end.
5372
ce1b23bb
SM
53732009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
5374
5996e1b7
SM
5375 * nsfns.m (ns_get_screen): Rewrite.
5376 Don't presume selected-frame is of type `ns'.
5377
ba98e3a0
SM
5378 * font.c (font_update_drivers): Sanity fallback to avoid disabling
5379 all drivers.
5380
ce1b23bb
SM
5381 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
5382
bcda200f
YM
53832009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5384
5385 * keyboard.h (add_user_signal): Fix typo in extern.
5386
5387 * lisp.h (add_user_signal): Remove extern.
5388
5389 * unexelf.c (unexec): Consider a section to precede the .bss section
5390 if its addresses overlap that of .bss.
5391 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
5392 instead of dumping process.
5393
864660a2
SM
53942009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
5395
5396 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
5397
50da4e56
SM
53982009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
5399
5400 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
5401
51520a1a
DN
54022009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
5403
5404 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
5405 any statements.
5406
409ea3a1
AS
54072009-05-02 Andreas Schwab <schwab@linux-m68k.org>
5408
59c4c60f
AS
5409 * process.c (read_process_output): Make sure the current buffer is
5410 always restored.
5411
409ea3a1
AS
5412 * coding.c (record_conversion_result): Don't modify
5413 Vlast_code_conversion_error for successful result.
5414 (alloc_destination): Don't clobber conversion result. (Bug#1650)
5415
56f00ed2
KH
54162009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
5417
5418 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 5419 (load_charset_map): Remove unnecessary code.
56f00ed2 5420
4491c9d2
DR
54212009-04-30 David Reitter <david.reitter@gmail.com>
5422
35f5b128 5423 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
5424 through f24.
5425
6970f632
CY
54262009-04-30 Chong Yidong <cyd@stupidchicken.com>
5427
5428 * xfaces.c (face_at_buffer_position): New arg base_face_id.
5429
5430 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
5431 face_at_buffer_position.
5432 (face_before_or_after_it_pos, get_next_display_element)
5433 (note_mouse_highlight): Update face_at_buffer_position call.
5434
5435 * term.c (term_mouse_highlight):
5436 * msdos.c (IT_note_mouse_highlight):
5437 * fontset.c (Finternal_char_font):
35f5b128 5438 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
5439
5440 * dispextern.h (face_at_buffer_position): Update prototype.
5441
0c616f63
KH
54422009-04-30 Kenichi Handa <handa@m17n.org>
5443
35f5b128 5444 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 5445
ad3aaf33
AS
54462009-04-29 Andreas Schwab <schwab@linux-m68k.org>
5447
5448 * callproc.c (Fcall_process): Fix GC protection. Make sure
5449 current buffer is always restored.
5450
c3c963a0
YM
54512009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5452
5453 * atimer.c (init_atimer): Also clear stopped_atimers.
5454
5455 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
5456
7e3386cb
YM
5457 * process.c (create_process): Clean up merger residues of
5458 2008-07-17 change.
5459
91f68422
CY
54602009-04-29 Ulrich Mueller <ulm@gentoo.org>
5461
5462 * lread.c (Vread_circle): New variable.
5463 (read1): Disable recursive read if Vread_circle is nil.
5464
24b34550
KH
54652009-04-29 Kenichi Handa <handa@m17n.org>
5466
5467 * fontset.h (set_default_ascii_font): Delete extern.
5468
5469 * fontset.c (set_default_ascii_font): Delete this unused function.
5470
5471 * frame.c (x_set_font): When ARG is a font-object, check if the
5472 font-object matches with the ASCII font-spec of the frame's
9c358bda 5473 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 5474
77bf07e1
AS
54752009-04-28 Andreas Schwab <schwab@linux-m68k.org>
5476
5477 * fns.c (Flocale_info): Protect vector from GC during decoding.
5478
5479 * process.c (Fstart_process): Protect argv strings from GC during
5480 encoding.
5481
2c55aacf
AS
54822009-04-27 Andreas Schwab <schwab@linux-m68k.org>
5483
5484 * sysdep.c: Include <ctype.h>.
5485
b892d3c9
DR
54862009-04-27 David Reitter <david.reitter@gmail.com>
5487
35f5b128 5488 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
5489 Remove commented-out code.
5490
9d0644c4
JB
54912009-04-26 Johan Bockgård <bojohan@gnu.org>
5492
5493 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
5494
b7053016
JR
54952009-04-25 Jason Rumney <jasonr@gnu.org>
5496
5497 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
5498
4e8231f3
YM
54992009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5500
5501 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
5502 Swap bytes in short integer if fringe bitmap width > 8.
5503
493dcf2c
KH
55042009-04-23 Kenichi Handa <handa@m17n.org>
5505
5506 * xfaces.c (Fx_list_fonts): If a font size is specified in
5507 PATTERN, set it in returned scalable fonts.
5508
401e9e57
CY
55092009-04-22 Chong Yidong <cyd@stupidchicken.com>
5510
708e05dc
CY
5511 * keyboard.c (Fset_input_meta_mode): Doc fix.
5512
5513 * dispnew.c (Fsend_string_to_terminal): Doc fix.
5514
1ac9108a 5515 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
5516
5517 * coding.c (Fterminal_coding_system): Doc fix.
5518
5519 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
5520 (Fx_display_pixel_height, Fx_display_planes)
5521 (Fx_display_color_cells, Fx_server_max_request_size)
5522 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
5523 (Fx_display_mm_height, Fx_display_mm_width)
5524 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
5525 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
5526 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
5527 (check_x_display_info): Handle terminal objects instead of
5528 terminal ids.
5529
401e9e57
CY
5530 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
5531 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
5532 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
5533 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 5534
df80c7f0
KH
55352009-04-21 Kenichi Handa <handa@m17n.org>
5536
5a8f12af 5537 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 5538 (font_score): Check AVGWIDTH too.
908567ef 5539
df80c7f0
KH
5540 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
5541 worst case.
1ac9108a
SM
5542 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
5543 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 5544
705af33f
JR
55452009-04-19 Jason Rumney <jasonr@gnu.org>
5546
5547 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 5548 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
5549
5550 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
5551 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
5552 get_phys_cursor_geometry.
5553
b71ac3dd 5554 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
5555 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
5556 using get_phys_cursor_geometry.
5557
5558 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
5559 correctly calculated.
5560
dc2933eb
JD
55612009-04-19 Jan Djärv <jan.h.d@swipnet.se>
5562
1ac9108a
SM
5563 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
5564 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
5565 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
5566 is deprecated.
5567
973e7849
AS
55682009-04-18 Andreas Schwab <schwab@linux-m68k.org>
5569
5570 * font.c (font_put_frame_data): Use xfree instead of free.
5571
314d66f4
JB
55722009-04-17 Juanma Barranquero <lekktu@gmail.com>
5573
5574 * w32font.c (Qja, Qko): Remove declarations.
5575 (syms_of_w32font): Don't DEFSYM them.
5576
cf702558
CY
55772009-04-17 Chong Yidong <cyd@stupidchicken.com>
5578
5579 * font.c (Qja, Qko): Move definitions here from ftfont.c.
5580
5581 * font.h (Qja, Qko): Extern them.
5582
5583 * ftfont.c (Qja, Qko): Remove declarations.
5584
5585 * xfont.c (Qja, Qko): Remove declarations.
5586
b50504f5
KH
55872009-04-17 Kenichi Handa <handa@m17n.org>
5588
bde25748
KH
5589 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
5590 string from a vector to handle Latin-1 characters correctly.
5591
b50504f5
KH
5592 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
5593 entity even if the cache hits.
5594
f4646fff
AS
55952009-04-16 Andreas Schwab <schwab@linux-m68k.org>
5596
5597 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 5598 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 5599
e7deaab0
AS
5600 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
5601 * lisp.h: Adjust prototypes.
5602
0a0e7d49
CY
56032009-04-16 Chong Yidong <cyd@stupidchicken.com>
5604
5605 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
5606 change (Bug#3003).
5607
3c908a57
KH
56082009-04-16 Kenichi Handa <handa@m17n.org>
5609
1ac9108a 5610 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
5611
5612 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
5613 adstyle.
5614
5615 * ftfont.c (Qja, Qko): Don't make them static.
5616 (enum ftfont_cache_for): New enum.
5617 (fc_charset_table): Undo the previous change.
5618 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
5619 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
5620 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
5621 non-scarable font, try to get AVERAGE_WIDTH.
5622 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
5623 Change ft_face_cache from a list of a hash-table. Don't check
5624 `ja' and `ko' adstyle here.
5625 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
5626 FTFONT_CACHE_FOR_CHARET.
5627 (ftfont_get_charset): Undo the previous change.
1ac9108a 5628 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
5629 (ftfont_close): Likewise.
5630 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
5631
5632 * font.c (font_sort_entites): Change the meaning of the arg
5633 BEST-ONLY. Don't optimize for VEC of lenght 1.
5634 (font_select_entity): Just return the value of font_sort_entites.
5635
5636 * xfaces.c (merge_face_vectors): Reflect font properties in
5637 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
5638 font_clear_prop if a face attribute doesn't change.
5639
3c908a57
KH
5640 * charset.h (charset_ksc5601): Extern it.
5641
5642 * charset.c (charset_ksc5601): New variable.
5643 (Fdefine_charset_internal): Set charset_ksc5601.
5644 (init_charset_once): Initialize charset_ksc5601 to -1.
5645
d65859c3
DN
56462009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
5647
5648 * fileio.c (history_delete_duplicates): Remove unused declaration.
5649
5650 * callint.c (history_delete_duplicates): New declaration.
5651 (Fcall_interactively): Remove command history duplicates when
5652 history_delete_duplicates is true.
5653
3ba010e5
EZ
56542009-04-14 Eli Zaretskii <eliz@gnu.org>
5655
5656 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
5657
06f19b91
KH
56582009-04-14 Kenichi Handa <handa@m17n.org>
5659
5660 * font.c (Ffont_info): Fix docstring. Fix the second element of
5661 the returned value (bug#2949).
5662
2cce8bfc
CY
56632009-04-14 Chong Yidong <cyd@stupidchicken.com>
5664
5665 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
5666
d156542d
KH
56672009-04-14 Kenichi Handa <handa@m17n.org>
5668
5669 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
5670 encoding charset is ascii_compatible.
5671
5672 * charset.c (Fdefine_charset_internal): Make charset
5673 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
5674 code_offset is 0, and covers all ASCII characters.
5675
86fa089e
SM
56762009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
5677
5678 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
5679 (ns_string_to_pasteboard_internal):
5680 * nsmenu.m (process_dialog):
5681 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
5682 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
5683 * lisp.h (Fx_load_color_file): Declare.
5684
a8a3728b
KH
56852009-04-13 Kenichi Handa <handa@m17n.org>
5686
1ac9108a 5687 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
5688 (font_select_entity): Suppress the code to optimize for the same
5689 kind of fonts.
5690 (font_load_for_lface): Get a font that supports at least ASCII
5691 characters.
5692
5693 * ftfont.c (Qja, Qko): New variables.
5694 (fc_charset_table): Delete uniquifier data for iso8859-1.
5695 (ftfont_get_latin1_charset): New function.
5696 (get_adstyle_property): New function.
5697 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
5698 bitmap fonts.
5699 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
5700 Delete iso-8859-1 range from the charset of fonts whose adstyle is
5701 `ko' or `ja'.
5702 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 5703 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
5704 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
5705 property.
5706 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
5707 (syms_of_ftfont): DEFSYM Qja and Qko.
5708
483670b5
KH
57092009-04-09 Kenichi Handa <handa@m17n.org>
5710
12b55765
KH
5711 * charset.c (map_charset_chars): For a charset of `superset'
5712 method, fix calculation of code range.
5713
483670b5
KH
5714 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
5715 from the list of extra properties.
5716 (font_clear_prop): Be sure to delete `:name' font property.
5717
57d3b93b
KH
57182009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5719
b4b2c2ca
YM
5720 * dispnew.c (redraw_overlapping_rows): Fix detection of
5721 overlapping for topmost and bottommost rows.
5722
1ac9108a 5723 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 5724
472c3609
JR
57252009-04-06 Jason Rumney <jasonr@gnu.org>
5726
5727 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
5728
ab193662
KH
57292009-04-06 Kenichi Handa <handa@m17n.org>
5730
5731 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
5732
5733 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
5734
0c26f026
KH
57352009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5736
5737 * ftfont.c (ftfont_open): Fix checking of the return value of
5738 FT_Load_Char. Fix setting font->underline_thickness.
5739
e173bbce
CY
57402009-04-04 Chong Yidong <cyd@stupidchicken.com>
5741
5742 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
5743 (Fterminal_parameters, Fterminal_parameter)
5744 (Fset_terminal_parameter): In doc string, refer to terminal
5745 objects rather than terminal ids.
5746
693a2698
EZ
57472009-04-04 Eli Zaretskii <eliz@gnu.org>
5748
5749 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
5750 ret_lim_data. (Bug#2867)
5751
d5221487
CY
57522009-04-03 Chong Yidong <cyd@stupidchicken.com>
5753
5754 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
5755 so they don't get wider than the window, matching 2006-01-23
5756 change to the partner function in xdisp.c (Bug#2800).
5757
223509a3
KH
57582009-04-03 Kenichi Handa <handa@m17n.org>
5759
5760 * print.c (print_object): Make each lowest sub_char_table start a
5761 new line (Bug#2866).
5762
74fcd0b1
KH
57632009-04-02 Kenichi Handa <handa@m17n.org>
5764
5765 * fontset.c (fontset_font): Record no-font when a fontset
5766 explicitly tells not to try another font-specs.
5767
c542407d
SM
57682009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
5769
5770 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
5771
e3869731
KH
57722009-03-30 Kenichi Handa <handa@m17n.org>
5773
d8d2f142
KH
5774 * fontset.c (fontset_from_font): Specify only registry in a
5775 font-spec for all characters supported by that registry.
5776
e3869731
KH
5777 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
5778 even if HAVE_M17N_FLT is not defined.
5779
5da5f805
CY
57802009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
5781
5782 * ftfont.c: Conditionalize prototyping and use of
5783 ftfont_variation_glyphs.
5784
ab226c50
SM
57852009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
5786
9628fed7
SM
5787 * frame.c (delete_frame): Work around compiler bug.
5788
5789 * editfns.c (general_insert_function): Adjust to insdel.c changes.
5790 * insdel.c (prepare_to_modify_buffer, signal_before_change):
5791 Some more EMACS_INT.
5792 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
5793
5794 * xdisp.c (dump_glyph): Fix typo.
5795
ae19ba7c
SM
5796 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
5797 (adjust_markers_gap_motion, adjust_markers_for_delete)
5798 (adjust_markers_for_insert, adjust_point)
5799 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
5800 (make_gap, copy_text, count_size_as_multibyte, insert)
5801 (insert_and_inherit, insert_before_markers)
5802 (insert_before_markers_and_inherit, insert_1)
5803 (count_combining_before, count_combining_after, insert_1_both)
5804 (insert_from_string, insert_from_string_before_markers)
5805 (insert_from_string_1, insert_from_gap, insert_from_buffer)
5806 (insert_from_buffer_1, adjust_after_replace)
5807 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
5808 (replace_range_2, del_range, del_range_1, del_range_byte)
5809 (del_range_both, del_range_2, modify_region)
5810 (prepare_to_modify_buffer, signal_before_change)
5811 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
5812 for buffer positions and sizes.
5813 * lisp.h: Adjust prototypes accordingly.
5814
5815 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
5816 (non_regular_inserted, non_regular_nbytes, read_non_regular)
5817 (Finsert_file_contents): Use EMACS_INT for buffer positions.
5818
ab226c50
SM
5819 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
5820
46dfb8fb
JD
58212009-03-27 Jan Djärv <jan.h.d@swipnet.se>
5822
5823 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
5824 lines and columns so we keep the same pixel height and width.
5825
5826 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
5827 the property _NET_WM_STATE has changed.
46dfb8fb
JD
5828 (x_handle_net_wm_state): New function to update frame parameter
5829 fullscreen.
5830 (x_term_init): Initialize atoms for _NET_WM_STATE.
5831
5832 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
5833
d347e494
SM
58342009-03-27 Kevin Ryde <user42@zip.com.au>
5835
5836 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
5837 Gpm_GetEvent as an error that justifies closing the filedescriptor.
5838 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
5839 (Fgpm_mouse_stop): Pass that new parameter.
5840 * termhooks.h (close_gpm): Adjust prototype.
5841
84db11d6
SM
58422009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
5843
c95a5008
SM
5844 * lisp.h (Fx_focus_frame): Declare.
5845
84db11d6
SM
5846 * callint.c (Fcall_interactively): For '^' just delegate the work to
5847 handle-shift-selection.
5848 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
5849
0a1958d6
CY
58502009-03-24 Chong Yidong <cyd@stupidchicken.com>
5851
0bfdff23
CY
5852 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
5853
0a1958d6
CY
5854 * data.c (Qinteractive_form): New variable.
5855 (Finteractive_form): Use it.
5856
5857 * eval.c (Fcommandp): Use Qinteractive_form.
5858
58aec0d6
JR
58592009-03-24 Jason Rumney <jasonr@gnu.org>
5860
5861 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
5862 Calculate total size precisely. Decode environment variables
5863 before substituting. (Bug#38)
5864
553dd618
KH
58652009-03-24 Kenichi Handa <handa@m17n.org>
5866
5867 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 5868 encoding (Bug#2722).
553dd618 5869
c39ea606
JD
58702009-03-23 Jan Djärv <jan.h.d@swipnet.se>
5871
5872 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
5873 that gdpy is set.
5874
bc9b2b5e
AM
58752009-03-22 Alan Mackenzie <acm@muc.de>
5876
5877 * callint.c (Finteractive): Clarify the doc string - even
5878 promptless elements need \n separators.
5879
9f995a76
JR
58802009-03-22 Jason Rumney <jasonr@gnu.org>
5881
5882 * w32term.c (syms_of_w32term): Doc fix for
5883 x-use-underline-position-properties.
5884
22749e9a
EZ
58852009-03-21 Eli Zaretskii <eliz@gnu.org>
5886
5887 * w32.c (getpwuid): Change argument type to unsigned.
5888 (struct w32_id): Change type of `rid' member to unsigned.
5889 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
5890 argument ID to unsigned. All callers changed.
5891 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
5892
e00553bf
EZ
58932009-03-20 Eli Zaretskii <eliz@gnu.org>
5894
5895 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
5896 negative, produce a float value.
5897
5898 * dired.c (make_uid, make_gid): New functions.
5899 (Ffile_attributes): Use them to avoid negative UID and GID.
5900
f761d6b6
JB
59012009-03-20 Juanma Barranquero <lekktu@gmail.com>
5902
5903 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
5904 (syms_of_keyboard) <command-hook-internal, input-method-function>:
5905 Fix typos in docstrings.
5906
d507f8d7
KH
59072009-03-19 Kenichi Handa <handa@m17n.org>
5908
5909 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
5910 changed, use font_load_for_lface to get a new font object.
5911 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
5912
5913 * frame.c (x_set_font): Handle the case that ARG is a cons.
5914
c68845e0
GM
59152009-03-19 Glenn Morris <rgm@gnu.org>
5916
5917 * fileio.c (Fsubstitute_in_file_name): Doc fix.
5918
bfa49dd1
CY
59192009-03-19 Chong Yidong <cyd@stupidchicken.com>
5920
5921 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
5922
8458d4c1
KH
59232009-03-19 Kenichi Handa <handa@m17n.org>
5924
5925 * charset.c (load_charset_map_from_file): When a mapfile can't be
5926 loaded, signal an error.
5927
78e7d1fe
EZ
59282009-03-18 Eli Zaretskii <eliz@gnu.org>
5929
5930 * dired.c (Ffile_attributes): Make sure UID and GID are always
5931 positive, even if the value is too large for a positive EMACS_INT.
5932 Doc fix.
5933
5934 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
5935
5da9fdfa
YM
59362009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5937
5938 * xmenu.c (xdialog_show): Move Fredisplay call ...
5939 (Fx_popup_dialog): ... here.
5940
7519c40d
SM
59412009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
5942
5943 * dired.c (file_name_completion): Disable the first optimization just
5944 installed, since it is not implemented correctly.
5945
2cd298e2
SM
59462009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
5947
5948 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 5949 only if the entry can affect bestmatch.
2cd298e2
SM
5950 Stop the search early, as Ftry_completion already does.
5951
48d37adf
CY
59522009-03-17 Chong Yidong <cyd@stupidchicken.com>
5953
e10c9c93 5954 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 5955
9286b16a
CY
59562009-03-15 Chong Yidong <cyd@stupidchicken.com>
5957
5958 * keyboard.c (parse_menu_item): Don't display remappings as menu
5959 equivalent bindings (Bug#788).
5960
f7b146dc
JR
59612009-03-15 Jason Rumney <jasonr@gnu.org>
5962
5963 * w32term.h (WM_EMACS_PAINT): New message.
5964 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
5965 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
5966 before passing to lisp thread. (Bug#950)
5967
f761d6b6 59682009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 5969
d93f9575
CY
5970 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
5971 variable as it was never reset.
5972 (ns_term_init): Remove initialization of Lisp-settable defaults
5973 and ns_expand_space.
5974 (-setPanelFromDefaultValues): Remove ns_expand_space.
5975 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
5976 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
5977 i.e. no additional spacing, similar to Carbon port.
5978
d93f9575
CY
5979 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
5980 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 5981
305018ec
JD
59822009-03-14 Jan Djärv <jan.h.d@swipnet.se>
5983
5984 * sound.c (alsa_configure): Remove call to deprecated
5985 snd_pcm_sw_params_set_xfer_align.
5986
f761d6b6 59872009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
5988
5989 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
5990 after clicking in a detached tool bar.
5991 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
5992
46e722a9
SM
59932009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
5994
348db3dd
SM
5995 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
5996 int/Lisp_Object mixup).
46e722a9 5997
a3d16f39
KH
59982009-03-13 Kenichi Handa <handa@m17n.org>
5999
6000 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 6001 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
6002 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
6003 (set_fontset_font): Change ARG to a vector. Handle range_list in
6004 ARG correctly.
6005 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 6006 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
6007 the above change.
6008 (fontset_from_font): Fix previous change.
fe24f56a 6009 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
6010 entry. If FONTSET is the default fontset, don't set the extra
6011 slot of the returning char-table.
6012
b066e6b6
JB
60132009-03-12 Juanma Barranquero <lekktu@gmail.com>
6014
6015 * nsfns.m (Fx_close_connection): Doc fix.
6016 (Fns_do_applescript): Reflow docstring.
6017 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
6018 (Fx_display_pixel_width, Fx_display_pixel_height)
6019 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
6020 Fix typos in docstrings.
6021 (Fns_set_alpha): Fix typos in error messages.
6022
d472514e 60232009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 6024
d472514e 6025 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
6026 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
6027 were used for such events.
6028
d472514e
JB
6029 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
6030 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 6031
d472514e 6032 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
6033 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
6034
fb930676
KH
60352009-03-11 Kenichi Handa <handa@m17n.org>
6036
ff85581a
KH
6037 * font.h (font_open_by_spec): Extern it.
6038
c50b7e98
KH
6039 * font.c (font_open_by_spec): New function.
6040 (font_open_by_name): Use font_open_by_spec.
6041
fb930676
KH
6042 * frame.c (x_set_font): When ARG is a font-object, don't alter the
6043 fontset of the frame.
6044
6045 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
6046 modify the default font of frames that use this fontset.
6047 (num_auto_fontsets): New variable.
6048 (fontset_from_font): Use num_auto_fontsets to decide a fontset
6049 name. Be sure to set FONTSET_ASCII to the correct font name.
6050 (update_auto_fontset_alist): New function.
6051
df4e8455
JB
60522009-03-11 Juanma Barranquero <lekktu@gmail.com>
6053
6054 * makefile.w32-in: Update dependencies.
6055
0a375797
AR
60562009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6057
6058 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
6059
61313fa3
SM
60602009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
6061
6062 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
6063
b55103fb
CY
60642009-03-10 Chong Yidong <cyd@stupidchicken.com>
6065
6066 * lread.c (Feval_buffer): Doc fix.
6067
dde2559c
KH
60682009-03-09 Kenichi Handa <handa@m17n.org>
6069
6070 * charset.c (Qfile_name_handler_alist): Extern it.
6071 (load_charset_map_from_file): Temporarily bind
6072 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
6073
df4e8455 60742009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 6075
47f588bb
GM
6076 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
6077 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 6078
4ddf94bd
AR
60792009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6080
4c9bdfc2
AR
6081 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
6082 (x_set_window_size): Change back to calculated method of setting
6083 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
6084 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
6085 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
6086
fe41ae9e
AR
6087 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
6088
4c9bdfc2
AR
6089 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
6090 accelerator in parens under GNUstep.
6091
825d0875
KH
60922009-03-06 Kenichi Handa <handa@m17n.org>
6093
6094 These changes are to detect incorrect composition sequence without
f3b3be74 6095 looking ahead the source. (Bug#2370)
825d0875
KH
6096
6097 * coding.h: Include "composite.h".
6098 (enum compisition_state): New enum.
6099 (struct compisition_status): New struct.
6100 (struct iso_2022_spec): New member cmp_status.
6101 (struct emacs_mule_spec): New struct.
6102 (struct coding_system): New members ctext_extended_segment_len and
6103 embedded_utf_8. Change the union member
6104 spec.emacs_mule_full_support to spec.emacs_mule.
6105
6106 * coding.c (CODING_ISO_CMP_STATUS): New macro.
6107 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 6108 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
6109 (ADD_COMPOSITION_DATA): New arg nbytes.
6110 (emacs_mule_char): New arg cmp_status.
6111 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
6112 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
6113 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
6114 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
6115 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
6116 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
6117 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
6118 (EMACS_MULE_COMPOSITION_END): New macro.
6119 (emacs_mule_finish_composition): New function.
6120 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
6121 (decode_coding_emacs_mule): Avoid long looking ahead while
6122 handling composition.
6123 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
6124 (ENCODE_COMPOSITION_RULE): New macro.
6125 (finish_composition): New function.
6126 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
6127 (DECODE_COMPOSITION_START): New implementation.
6128 (DECODE_COMPOSITION_END): Likewise.
6129 (STORE_COMPOSITION_RULE): New macro.
6130 (decode_coding_iso_2022): Avoid long looking ahead while handling
6131 composition, CTEXT extended segment, and embedded UTF-8.
6132 (setup_coding_system): For a coding of type iso-2022, reset
6133 CODING_ISO_EXTSEGMENT_LEN (coding) and
6134 CODING_ISO_EMBEDDED_UTF_8 (coding).
6135 (get_translation): Delete arguments last_block, from_nchars,
6136 to_nchars. Callers changed.
6137 (produce_chars): Don't modify charbuf. Adjusted for the change of
6138 get_translation.
98a326f7 6139 (produce_composition): Adjust for the new annotation sequence.
825d0875 6140 (handle_composition_annotation): Likewise.
98a326f7 6141 (consume_chars): Adjust for the change of get_translation.
825d0875 6142
ccbc4452
AR
61432009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
6144
4ddf94bd 6145 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 6146
988a7ddb
KH
61472009-03-05 Kenichi Handa <handa@m17n.org>
6148
6149 * font.c (font_select_entity): New function.
6150 (font_find_for_lface): Use font_select_entity to select a font.
6151
6152 * fontset.c (fontset_find_font): If a font found without
a8a3728b 6153 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
6154 font with C restriction.
6155
98a326f7 61562009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 6157
be1bce46 6158 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 6159
10ea2b82
JR
61602009-03-04 Jason Rumney <jasonr@gnu.org>
6161
2c93b248 6162 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 6163 characters that have already been read. (Bug#2569)
2c93b248 6164
10ea2b82
JR
6165 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
6166 Log an error message if check_image_size failed.
6167 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 6168 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 6169
71a0c011
EZ
61702009-03-02 Eli Zaretskii <eliz@gnu.org>
6171
6172 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
6173 when decoding process output.
6174
2f63bba8
RS
61752009-03-01 Richard M Stallman <rms@gnu.org>
6176
6177 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
6178
6179 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
6180
0a9564cb
EZ
61812009-02-28 Eli Zaretskii <eliz@gnu.org>
6182
6183 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
6184 (decode_coding_emacs_mule, decode_coding_iso_2022)
6185 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
6186 (decode_coding_raw_text, decode_coding_charset)
6187 (setup_coding_system, decode_eol, decode_coding, consume_chars):
6188 Honor inhibit-eol-conversion. (Bug #2186)
6189
449148b3
JR
61902009-02-28 Jason Rumney <jasonr@gnu.org>
6191
6192 * coding.c (detect_coding_charset): If not checking latin extra,
6193 fail on characters between 0x80 and 0xA0. (Bug#2354)
6194
a4aee864
EZ
61952009-02-28 Eli Zaretskii <eliz@gnu.org>
6196
6197 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 6198 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 6199
d88bee5a
GM
62002009-02-27 Glenn Morris <rgm@gnu.org>
6201
6202 * callint.c (Finteractive): Doc fix.
6203
a808f22d
KH
62042009-02-27 Kenichi Handa <handa@m17n.org>
6205
6206 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
6207
caf8d60c
CY
62082009-02-27 Chong Yidong <cyd@stupidchicken.com>
6209
6210 * font.c (font_style_to_value): Set value for unknown symbols to
6211 100 instead of 255.
b61137ea
CY
6212 (weight_table, slant_table, width_table): Treat "unspecified" as
6213 the default value.
caf8d60c 6214
1a0de25c
JB
62152009-02-26 Juanma Barranquero <lekktu@gmail.com>
6216
6217 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
6218
8fc45744
JB
62192009-02-25 Juanma Barranquero <lekktu@gmail.com>
6220
107bd7d1
JB
6221 * lread.c (Fload): Stop checking Vloads_in_progress and signal
6222 error as soon as a recursive load is detected.
8fc45744 6223
f097e223
AR
62242009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6225
6226 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
6227 before caching.
6228
8810a12f
KH
62292009-02-24 Kenichi Handa <handa@m17n.org>
6230
6231 * fontset.c (fontset_find_font): Fix the condition for checking
6232 unavailable font.
6233
2c7d1565
GM
62342009-02-24 Glenn Morris <rgm@gnu.org>
6235
6236 * xfaces.c (Finternal_set_font_selection_order): Remove leading
6237 whitespace that confuses documentation.
6238
a20878b6
MB
62392009-02-23 Miles Bader <miles@gnu.org>
6240
6241 * process.c (Flist_system_processes, Fprocess_attributes)
6242 (syms_of_process): Rename `system-process-attributes' to
6243 `process-attributes'.
6244
b3b58c01
AS
62452009-02-22 Andreas Schwab <schwab@linux-m68k.org>
6246
1b3b981b
AS
6247 * coding.h (struct coding_system): Make safe_charsets a pointer to
6248 unsigned char.
6249 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
6250 being 255.
6251 (SAFE_CHARSET_P): Likewise.
6252 (setup_iso_safe_charsets): Properly setup safe_charsets.
6253 (Fdefine_coding_system_internal): Likewise.
6254 (setup_coding_system): Likewise. Remove unneeded casts.
6255 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
6256 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
6257 unneeded casts.
6258
b3b58c01
AS
6259 * insdel.c (del_range_2): Don't modify gap contents when called
6260 from decode_coding_object. (Bug#1809)
6261
0b6f228c
CY
62622009-02-21 Chong Yidong <cyd@stupidchicken.com>
6263
6264 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
6265 Qfont_object.
6266 (Ftype_of): Recognize font objects.
6267
6268 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
6269
6270 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
6271 moved to data.c.
6272
52f8870b
AR
62732009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6274
6275 * nsterm.m (x_make_frame_invisible): Unset async_visible,
6276 async_iconified. Based on a patch by Christian Lynbech
6277 <christian.lynbech@tieto.com>.
6278 (EmacsView-windowDidMiniaturize:): Unset async_visible.
6279
7087d5e9
GM
62802009-02-20 Glenn Morris <rgm@gnu.org>
6281
6282 * syntax.c (Fskip_chars_forward): Fix doc typo.
6283
41d2ceef
CY
62842009-02-20 Chong Yidong <cyd@stupidchicken.com>
6285
6286 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
6287
1a3b7ca6
CY
62882009-02-19 Chong Yidong <cyd@stupidchicken.com>
6289
6290 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
6291
73cce38d
KH
62922009-02-19 Kenichi Handa <handa@m17n.org>
6293
6294 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 6295 Don't overflow coding->carryover. (Bug#2370)
73cce38d 6296
a51092ee
DN
62972009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
6298
6299 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
6300
c423ecca
KH
63012009-02-18 Kenichi Handa <handa@m17n.org>
6302
6303 * font.c (font_check_otf_features): Fix handling of `nil' element.
6304 (Ffont_spec): Describe :lang and :otf in the docstring.
6305
4c1958f4
AS
63062009-02-16 Andreas Schwab <schwab@suse.de>
6307
6308 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
6309 string.
6310
5704f39a
KH
63112009-02-16 Kenichi Handa <handa@m17n.org>
6312
6313 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 6314 (Bug#1723)
5704f39a 6315
8f0085aa
CY
63162009-02-14 Chong Yidong <cyd@stupidchicken.com>
6317
a057d86a 6318 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
6319
6320 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
6321 (handle_line_prefix): Suppress wrapping of wrap prefixes.
6322
aff01dd9
EZ
63232009-02-14 Eli Zaretskii <eliz@gnu.org>
6324
6325 * msdos.c (MAX_SCREEN_BUF): New macro.
6326 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
6327 Encode the entire run of glyphs sharing the same face, instead of
6328 doing that one glyph at a time (fixes a bug with displaying
6329 double-size characters).
6330
ba301db3
AR
63312009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
6332
6333 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
6334
6335 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
6336 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 6337 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
6338
6339 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 6340 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 6341
51d861de
SM
63422009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
6343
ac146f82 6344 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
6345 invisible areas.
6346
7fed8996
JR
63472009-02-12 Jason Rumney <jasonr@gnu.org>
6348
631ea4fb
JR
6349 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
6350 (add_font_entity_to_list): Call check_face_name even when family
6351 is unspecified.
6352
cb4a3e42
JR
6353 * w32term.c (x_display_pixel_height, x_display_pixel_width):
6354 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 6355 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 6356
7fed8996 6357 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 6358 raster fonts. (Bug#2219)
7fed8996 6359
895416e3
KH
63602009-02-12 Kenichi Handa <handa@m17n.org>
6361
6362 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
6363 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
6364 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 6365 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
6366 (find_automatic_composition): While looking forward and backward,
6367 check static composition. Fix where to stop looking forward.
6368 (composition_adjust_point): Fix checking of static composition.
6369 (Fcomposition_get_gstring): Pay attention to
1dacf998 6370 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
6371
6372 * lisp.h (fast_looking_at): Extern it.
6373
6374 * search.c (fast_looking_at): New function.
6375
51d861de 6376 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
6377 <struct glyph>.u.cmp.to.
6378 (append_composite_glyph): Likewise.
6379
51d861de 6380 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
6381 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
6382 composition.
51d861de 6383 (append_composite_glyph): Adjust for the change of
895416e3
KH
6384 <strcut glyph>.u.cmp.to.
6385
8510724d
JB
63862009-02-11 Juanma Barranquero <lekktu@gmail.com>
6387
6388 * casetab.c (init_casetab_once):
6389 * coding.c (ALLOC_CONVERSION_WORK_AREA):
6390 * font.c (font_update_lface):
6391 * fontset.c (Fnew_fontset):
6392 * ftfont.c (ftfont_drive_otf):
6393 * xfont.c (xfont_open):
6394 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
6395
294fa707
SM
63962009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
6397
6398 * fileio.c (Fwrite_region): !NILP -> CONSP.
6399
b5bfebec
AS
64002009-02-10 Andreas Schwab <schwab@suse.de>
6401
6402 * process.c (send_process): Properly relocate pointer into data
adab88bd 6403 when using encoded data. (Bug#2272)
b5bfebec 6404
cb84a2be
KH
64052009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
6406
6407 * coding.c (detect_coding_charset): Fix previous change.
6408
89e09428
JR
64092009-02-08 Jason Rumney <jasonr@gnu.org>
6410
6411 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 6412 disappeared while hourglass was displayed. (Bug #2193)
89e09428 6413
4470a277
AS
64142009-02-07 Andreas Schwab <schwab@suse.de>
6415
6416 * unexelf.c (unexec): Fix error message.
6417
3175b12a
AR
64182009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
6419
6420 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 6421 when modal window is active. (Bug #2152)
3175b12a
AR
6422 (applicationShouldTerminate:): Remove now-unneeded while loop
6423 around NSRunAlertPanel.
6424
6425 * nsmenu.m (popupSession): New file-global variable.
6426 (pop_down_menu): End the popupSession before closing dialog.
6427 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
6428 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
6429 don't query NSApp for events (just sleep instead).
6430
8434d0b8
EZ
64312009-02-07 Eli Zaretskii <eliz@gnu.org>
6432
51d861de
SM
6433 * coding.c (syms_of_coding) <translation-table-for-input>:
6434 Modify doc string to discourage use for character code unification.
8434d0b8 6435
aa82edfd
CY
64362009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6437
6438 * atimer.c (run_timers): Update pending_atimers.
6439
2d283c7c
CY
64402009-02-06 Chong Yidong <cyd@stupidchicken.com>
6441
eb306cab
CY
6442 * image.c (svg_load_image): Fix last change.
6443
2d283c7c
CY
6444 * xfns.c (Fx_create_frame): Signal an error if no font is
6445 found (Bug#2147).
6446
4d8e170e
JB
64472009-02-05 Juanma Barranquero <lekktu@gmail.com>
6448
6449 * character.c (syms_of_character) <script-representative-chars>:
6450 Fix typo in docstring.
6451
c96169a0
AR
64522009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6453
6454 * nsmenu.m (pop_down_menu): New function.
6455 (ns_popup_dialog): Call it on unwind.
6456 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
6457 call timer_check() (Bug#2154).
6458 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
6459 handling_signal is set.
6460 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
6461
31fd7c5c 6462 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
6463
6464 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
6465
6466 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
6467
51d861de
SM
6468 * keyboard.c (poll_for_input_1, handle_async_input):
6469 Set handling_signal under HAVE_NS.
c96169a0 6470
aacd8ba1
GM
64712009-02-04 Glenn Morris <rgm@gnu.org>
6472
6473 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
6474
4cb75c4b
KH
64752009-02-04 Kenichi Handa <handa@m17n.org>
6476
6477 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
6478
6479 * charset.c (Fchar_charset): New optional arg restriction.
6480
6481 * coding.h (coding_system_charset_list): Extern it.
6482
6483 * coding.c (coding_system_charset_list): New function.
6484
6485 * composite.c: Include coding.h and termhooks.h.
6486 (composition_gstring_p): Fix for the terminal case.
6487 (composition_gstring_width): Likewise.
6488 (fill_gstring_body): Likewise.
6489 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
6490 the frame.
6491 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
6492 is within a composition.
867d4bb3 6493 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
6494
6495 * term.c (encode_terminal_code): Fix handling of composition.
6496 (produce_composite_glyph): For static composition, get pixel_width
6497 from struct composition.
6498
826ba17e
AS
64992009-02-02 Andreas Schwab <schwab@suse.de>
6500
6501 * unexelf.c (unexec): Handle unaligned bss offset.
6502
8ad093db
AR
65032009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6504
6505 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
6506 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 6507
8ad093db
AR
6508 * keyboard.c (handle_interrupt): Don't call
6509 quit_throw_to_read_char() under NS.
d0a76a6e 6510
8ad093db
AR
6511 * blockinput.h: Remove NS-specific code.
6512
4d18a7a2
DN
65132009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
6514
db878925
DN
6515 * dispnew.c (window_change_signal): Don't try to get the size of a
6516 suspended tty frame.
6517 * term.c (Fresume_tty): Resize if the size has changed while the
6518 tty was suspended.
6519
4d18a7a2
DN
6520 * alloc.c (mark_stack): Properly conditionalize previous change.
6521
8984df7c
JB
65222009-01-30 Juanma Barranquero <lekktu@gmail.com>
6523
6524 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
6525 * w32term.c (w32_read_socket) [SYNC_INPUT]:
6526 Remove; this code is not used on Windows.
6527
75f4f1ac
EZ
65282009-01-30 Eli Zaretskii <eliz@gnu.org>
6529
6530 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
6531 EOLs that also has stray ^M characters.
6532
07a1e794
JB
65332009-01-30 Juanma Barranquero <lekktu@gmail.com>
6534
6535 * atimer.c (run_timers, alarm_signal_handler):
6536 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
6537 * w32inevt.c (w32_console_read_socket):
6538 * w32term.c (w32_read_socket):
6539 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
6540
a8b11cc9
CY
65412009-01-30 Chong Yidong <cyd@stupidchicken.com>
6542
6543 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
6544 Initialize it as a relative filename pattern.
6545 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
6546 (Fcall_process_region): Simplify temp file creation using
6547 temporary-file-directory.
6548
c279587b
EZ
65492009-01-29 Eli Zaretskii <eliz@gnu.org>
6550
6551 * msdos.c: Rename pending_signals to msdos_pending_signals.
6552 (sig_suspender, sigprocmask): Adjust.
6553
a8fe3242
CY
65542009-01-29 Chong Yidong <cyd@stupidchicken.com>
6555
6556 * keyboard.c (pending_signals): New var.
6557 (poll_for_input, input_available_signal, init_keyboard): Set it.
6558 (process_pending_signals): New function.
6559
6560 * lisp.h (QUIT): Check pending_signals instead of
6561 interrupt_input_pending. Use process_pending_signals.
6562
51d861de 6563 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 6564
51d861de 6565 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
6566
6567 * sysdep.c (emacs_write): Use process_pending_signals.
6568
6569 * xterm.c (XTread_socket): Update pending_signals.
6570
6571 * w32term.c (w32_read_socket): Update pending_signals.
6572
6573 * w32inevt.c (w32_console_read_socket): Update pending_signals.
6574
6570a1c4
KH
65752009-01-29 Kenichi Handa <handa@m17n.org>
6576
6577 * xftfont.c (xftfont_has_char): New function.
6578 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
6579
d72a4afa
AR
65802009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6581
6582 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
6583 under GNUstep.
6584 (ns_query_color): New declaration.
6585
6586 * nsterm.m (ns_confirm_quit): New variable.
6587 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
6588 (EmacsApp-applicationShouldTerminate:): Use it.
6589 (EmacsPrefsController): Let user set it.
6590 (ns_query_color): New function.
6591 (ns_defined_color): Use it.
6592 (ns_initialize): Drop.
6593 (ns_term_init): Add two lines from ns_initialize(), and set
6594 input_interrupt_mode to nil.
6595
6596 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 6597 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 6598
9fe78804
KH
65992009-01-28 Kenichi Handa <handa@m17n.org>
6600
6601 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
6602 (fontset_get_font_group): Remember that no font-group is specified
6603 for C.
9fe78804 6604
fa57de36
CY
66052009-01-27 Chong Yidong <cyd@stupidchicken.com>
6606
930600e9
CY
6607 * fns.c (concat): Check for string overflow (bug#1787).
6608
fa57de36
CY
6609 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
6610 Quadruple undo limits (bug#1501).
6611
7179ce7b
KH
66122009-01-27 Kenichi Handa <handa@m17n.org>
6613
6614 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
6615 directly use GT_Get_Char_index.
6616
6617 * xftfont.c (struct xftfont_info): New member `index'.
6618
6619 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 6620 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 6621
5be8fcc0
CY
66222009-01-26 Kenichi Handa <handa@m17n.org>
6623
6624 * fontset.c (fontset_find_font): Fix handling of non-cons return
6625 value of fontset_get_font_group.
6626 (fontset_font): Revert last change.
6627
19ae3e61
JR
66282009-01-26 Jason Rumney <jasonr@gnu.org>
6629
6630 * w32font.c (w32font_list_internal): Return quickly if registry is
6631 unknown. Simplify final return.
6632 (add_font_entity_to_list): Break complex logic down into more
6633 manageable chunks. Move unknown registry check to
6634 w32font_list_internal.
6635
8612b71a
AR
66362009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
6637
6638 Changes to remove Feval calls from GUI under NS.
6639
d8038940
JB
6640 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
6641 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
6642 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
6643
6644 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
6645 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
6646 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
6647 instead of NON_ASCII_KEYSTROKE_EVENT.
6648 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
6649 (EmacsApp-applicationShouldTerminate:): Query user.
6650 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
6651 instead of Feval.
6652
6653 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
6654
6655 * keyboard.c (kbd_buffer_get_event): Check for it.
6656 (keys_of_keyboard): Define lispy keys for
6657 ns-put/unput-working-text.
6658
6659 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
6660 versions.
6661 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
6662
6288ae55
CY
66632009-01-25 Chong Yidong <cyd@stupidchicken.com>
6664
6665 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 6666 setting current_buffer directly. (Bug#2044)
6288ae55 6667
289e7f8f
CY
66682009-01-24 Chong Yidong <cyd@stupidchicken.com>
6669
5ce87308 6670 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 6671 any work. (Bug#1952, bug#1990).
5ce87308 6672
64cc3cf6 6673 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 6674
b3243e6f
AR
66752009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6676
6677 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
6678 (ns_no_defaults): New declaration.
6679 (main): Use it.
e0d2e69a 6680
d900b2af 6681 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 6682
d900b2af 6683 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 6684
d900b2af
AR
6685 * nsterm.m (ns_no_defaults): New variable.
6686 (ns_initialize): Don't read defaults when ns_no_defaults.
6687 (EmacsView-readSelectionFromPasteboard:)
6688 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 6689 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
6690 (ns_dumpglyphs_stretch): New function.
6691 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 6692 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 6693
e0d2e69a
AR
6694 * nsimage.m (setPixmapData:): Set to ignore image DPI.
6695
3ac71f5d
CY
66962009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
6697
6698 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
6699 call for Sparc64.
6700
3fe53a83
AR
67012009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6702
6703 * nsfns.m:
6704 * nsgui.h:
6705 * nsmenu.m:
6706 * nsselect.m:
6707 * nsterm.h:
6708 * nsterm.m: Remove '23' comments that indicated code added during
6709 update from emacs-20 -> emacs-23.
6710
10f87c6f 67112009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
6712
6713 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 6714 ns_alternate_modifier. (Bug#1217)
a3b53a85 6715
c7cef62d
AR
6716 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
6717 Display all shortcuts, including those w/o super modifier.
6718
575fb8bd
AR
6719 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
6720
918b848b
CY
67212009-01-22 Chong Yidong <cyd@stupidchicken.com>
6722
6723 * fileio.c (Vwrite_region_post_annotation_function)
6724 (Vwrite_region_annotation_buffers): New vars.
6725 (build_annotations_unwind): Just reset
6726 Vwrite_region_annotation_buffers.
6727 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
6728 Call write-region-post-annotation-function.
6729 (build_annotations): Add to Vwrite_region_annotation_buffers if
6730 buffer changes.
6731
a39e2539
AR
67322009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6733
6734 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
6735 Tiger.
51d861de
SM
6736 * nsfns.m (ns_do_applescript):
6737 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 6738
35ed44db
AR
67392009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
6740
6741 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
6742
cbe0b5bf
AR
67432009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6744
6745 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 6746
6049d3a0
AR
6747 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
6748
6749 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
6750 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
6751 handle Ctrl-tab. (Bug#1841)
6752 (ns_get_color): Use unsigned long long for scanned hex string value.
6753 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 6754 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 6755 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 6756 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 6757 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 6758 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 6759 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 6760
d3810c21 6761 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 6762 DPI. (Bug#1316)
d3810c21
AR
6763 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
6764 values in onTiger section.
4c7077c3 6765
e301e634
CY
67662009-01-19 Chong Yidong <cyd@stupidchicken.com>
6767
7f82490b
CY
6768 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
6769 Check return value of font_spec_from_name.
64cc3cf6 6770 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
6771
6772 * font.c (font_spec_from_name): Return Qnil if font name could not
6773 be parsed.
6774 (font_parse_name): Treat a `?' character as part of an XLFD.
6775
e301e634
CY
6776 * fns.c (Fsubstring): Doc fix.
6777
1c0db158
KH
67782009-01-19 Kenichi Handa <handa@m17n.org>
6779
51d861de 6780 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
6781 (ftfont_list): Likewise.
6782
acf20901
JB
67832009-01-18 Juanma Barranquero <lekktu@gmail.com>
6784
fff4e459
JB
6785 * dbusbind.c (Fdbus_register_signal):
6786 * process.c (conv_sockaddr_to_lisp):
6787 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
6788
acf20901
JB
6789 * callproc.c (Fgetenv_internal): Doc fix.
6790
e7abcdfb
CY
67912009-01-16 Chong Yidong <cyd@stupidchicken.com>
6792
6793 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
6794 it is not even used.
6795
b60861e6
GM
67962009-01-16 Glenn Morris <rgm@gnu.org>
6797
6798 * font.c (Ffont_variation_glyphs): Silence compiler.
6799
8db52afe
JB
68002009-01-15 Juanma Barranquero <lekktu@gmail.com>
6801
6802 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
6803 Reported by David Robinow <drobinow@gmail.com>.
6804
4cddb209
KH
68052009-01-15 Kenichi Handa <handa@m17n.org>
6806
51d861de 6807 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 6808
f247f67b
JR
68092009-01-14 Jason Rumney <jasonr@gnu.org>
6810
6811 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 6812 never a fontset. (Bug#1562)
f247f67b 6813
f56a4450
KH
68142009-01-14 Kenichi Handa <handa@m17n.org>
6815
6816 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 6817 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 6818
4e99855e
CY
68192009-01-13 Chong Yidong <cyd@stupidchicken.com>
6820
6821 * font.c (font_clear_prop): If clearing the family, clear the font
6822 width index too.
6823
fff4e459 6824 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 6825
24f01470
JB
68262009-01-12 Juanma Barranquero <lekktu@gmail.com>
6827
6828 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
6829 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
6830 functions, use sizeof.
6831
a41240a3
MR
68322009-01-12 Martin Rudalics <rudalics@gmx.at>
6833
6834 * keyboard.c (read_char): Fix case where last_nonmenu_event
6835 returned a bad value with submenus. (Bug#447)
6836
944636b8
CY
68372009-01-12 Chong Yidong <cyd@stupidchicken.com>
6838
6839 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
6840 family, clear the font width index too.
6841
0dad7c6f
JR
68422009-01-11 Jason Rumney <jasonr@gnu.org>
6843
6844 * keyboard.c (cmd_error_internal): Exit when errors occur before
6845 frame creation and not in daemon mode. (Bug#1836)
6846
7c2363af
CY
68472009-01-10 Chong Yidong <cyd@stupidchicken.com>
6848
6849 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
6850 of a display vector, backtrack.
6851 (try_window_reusing_current_matrix): Check glyph type before
6852 referencing charpos member.
6853
97b1b294
EZ
68542009-01-10 Eli Zaretskii <eliz@gnu.org>
6855
6856 Fix Bug #876:
6857
6858 * coding.c (inhibit_null_byte_detection): New variable.
6859 (detect_coding, detect_coding_system): Don't pay attention to null
6860 bytes if inhibit_null_byte_detection is non-zero.
51d861de 6861 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
6862 <inhibit-iso-escape-detection>: Doc fix.
6863
4624b6e3
JR
68642009-01-09 Jason Rumney <jasonr@gnu.org>
6865
6866 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 6867 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
6868 Only report Unicode Plane 2 fonts as unicode-sip.
6869
323b840c
CY
68702009-01-09 Chong Yidong <cyd@stupidchicken.com>
6871
51d861de
SM
6872 * xfaces.c (Fx_font_family_list): Delete function.
6873 Move compatibility version to faces.el.
323b840c 6874
51d861de 6875 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 6876
eba7400d
MR
68772009-01-09 Martin Rudalics <rudalics@gmx.at>
6878
6879 * frame.c (x_set_frame_parameters): Remember requested value for
6880 fullscreen before it's reset by the parameter handler.
6881
4b09796d
GM
68822009-01-09 Glenn Morris <rgm@gnu.org>
6883
6884 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 6885 (last_command_event): ... and update all users.
4b09796d
GM
6886 (last_input_char): For clarity, rename to...
6887 (last_input_event): ... and update all users.
6888 (last-command-char, last-input-char): Move to subr.el as aliases.
6889 * cmds.c, commands.h: Update for last_command_char rename.
6890
14ccea62
CY
68912009-01-08 Chong Yidong <cyd@stupidchicken.com>
6892
51d861de 6893 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 6894
5f004711
JR
68952009-01-08 Jason Rumney <jasonr@gnu.org>
6896
6897 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
6898 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
6899 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
6900 Don't declare.
fff4e459 6901 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
6902 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
6903
b71f6f73
KH
69042009-01-07 Kenichi Handa <handa@m17n.org>
6905
50b06221 6906 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 6907 remember the coding system used for decoding in
50b06221
KH
6908 coding_system (Bug#1039).
6909
b71f6f73 6910 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 6911 breaking the loop. (Bug#870)
b71f6f73
KH
6912 (decode_coding_utf_16, decode_coding_emacs_mule)
6913 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
6914 (decode_coding_charset): Likewise.
6915
56f668f7
MR
69162009-01-05 Martin Rudalics <rudalics@gmx.at>
6917
6918 * frame.c (x_set_frame_parameters): Make sure height (width) get
6919 applied when fullwidth (fullheight) is set. (Bug#1522)
6920
5da9424d
JB
69212009-01-04 Juanma Barranquero <lekktu@gmail.com>
6922
6923 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
6924 (utc_base): Declare as ULONGLONG, not long double.
6925 (convert_time_raw): Delete.
6926 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
6927 (initialize_utc_base): New function.
6928 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
6929 (convert_from_time_t): Use initialize_utc_base; compute result with
6930 64-bit arithmetic.
6931 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
6932
c4605e09
EZ
69332009-01-03 Eli Zaretskii <eliz@gnu.org>
6934
9acef61c 6935 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
6936 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
6937 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
6938 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
6939 [!subprocesses]: Define.
6940 (syms_of_process) [!subprocesses]: Intern and staticpro them.
6941 (Flist_system_processes, Fsystem_process_attributes)
6942 [!subprocesses]: Call list_system_processes and
6943 system_process_attributes instead of returning Qnil.
6944
9acef61c
JB
6945 * dosfns.c (system_process_attributes, list_system_processes):
6946 New functions.
c4605e09
EZ
6947
6948 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
6949
6950 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
6951 Don't use the default (no-op) implementation.
6952
8b7d0a16
JR
69532009-01-03 Jason Rumney <jasonr@gnu.org>
6954
a6d46bc1
JR
6955 * keyboard.c (parse_modifiers_uncached): Wheel events are
6956 clicks (bug#687).
6957
8b7d0a16
JR
6958 * w32term.c (x_query_colors, x_query_color): New functions.
6959
6960 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
6961 (svg_load_image): Cast returned pointers from dynamically loaded
6962 functions. Eliminate W32 specific code.
6963
bfe11752
DN
69642009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
6965
89e2438a
DN
6966 * nsfns.m (x_set_foreground_color, x_set_background_color)
6967 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
6968 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
6969 x_ prefix instead of ns_. Update references.
6970 (syms_of_nsfns): Add a FIXME comment.
6971
6972 * nsterm.m (x_set_cursor_type): New prototype.
6973 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
6974
bfe11752
DN
6975 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
6976 for Solaris instead of incorrectly providing Qutime and Qcutime.
6977
031da700
EZ
69782009-01-02 Eli Zaretskii <eliz@gnu.org>
6979
6980 * w32.c (process_times): Compute sum of utime and stime.
6981 (system_process_attributes): Add Qtime to the alist.
6982
6983 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
6984 and add them to the alist.
6985
6986 * process.c (top level) <Qtime, Qctime>: New variables.
6987 (syms_of_process): staticpro them.
6988 (Fsystem_process_attributes): Add their documentation to the doc
6989 string.
6990
6991 * process.h: Declare Qtime and Qctime.
6992
df23bf08
JR
69932009-01-02 Jason Rumney <jasonr@gnu.org>
6994
9acef61c 6995 * image.c (Qgobject): New symbol.
df23bf08
JR
6996 (syms_of_image): Initialize it.
6997 (init_svg_functions): Load some functions from gobject library.
6998
5bbdf7aa
DN
69992009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
7000
7001 * frame.c (make_terminal_frame): Remove redundant code and useless
7002 block.
7003
63136da6
AS
70042009-01-01 Andreas Schwab <schwab@suse.de>
7005
7006 * process.c (conv_sockaddr_to_lisp): Add workaround for
7007 getsockname bug on BSD.
7008
9ef69046
CY
70092009-01-01 Chong Yidong <cyd@stupidchicken.com>
7010
d6fafbe0
CY
7011 * xfns.c (x_create_tip_frame): Set border width of the X window.
7012
51d861de 7013 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 7014
f9c34147
JR
70152009-01-01 Jason Rumney <jasonr@gnu.org>
7016
9acef61c 7017 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
7018 Don't block input, as per earlier xterm.c changes.
7019
f5497e45
AR
70202008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
7021
7022 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
7023 (ns_appkit_version_int): New function.
7024 (x-server-version): Use ns_appkit_version_int and follow 21+
7025 convention of returning 3 integers.
7026
c19cab20
KH
70272008-12-30 Kenichi Handa <handa@m17n.org>
7028
7029 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
7030 (CHAR_SURROGATE_PAIR_P): New macro.
7031
7032 * font.h (struct font_driver): New member get_variation_glyphs.
7033
9acef61c 7034 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
7035 (Ffont_variation_glyphs): New function.
7036 (syms_of_font): Defsubr it.
7037
7038 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
7039 ftfont_variation_glyphs.
7040 (setup_otf_gstring): New function.
7041 (ftfont_drive_otf): Use it.
7042 (ftfont_shape_by_flt): Handle variation selector.
7043 (ftfont_variation_glyphs): New function.
7044
28cd591f
MR
70452008-12-30 Martin Rudalics <rudalics@gmx.at>
7046
7047 * frame.c (Vemacs_iconified): Remove.
7048
7f714baf
JR
70492008-12-30 Jason Rumney <jasonr@gnu.org>
7050
7051 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 7052 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 7053
9d2d22ab
CY
70542008-12-30 Chong Yidong <cyd@stupidchicken.com>
7055
7056 * indent.c (Fvertical_motion): Don't advance iterator if we have
7057 reseated to the desired position.
7058
7059 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
7060 checking for pos match.
7061
545312c2
KH
70622008-12-30 Kenichi Handa <handa@m17n.org>
7063
1ede3eb6
KH
7064 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
7065 just get the low 8-bit of the code.
7066
545312c2
KH
7067 * font.c (font_intern_prop): Validate str as multibyte.
7068
bd7bbf29
DN
70692008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
7070
31e0750e
DN
7071 * dispextern.h (struct face): Move lface and hash from the middle
7072 of bitfields.
7073
bd7bbf29
DN
7074 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
7075
b5672e7c
DN
70762008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
7077
7078 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
7079 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
7080 instead of intervals.h.
7081
d704470f
AS
70822008-12-26 Andreas Schwab <schwab@suse.de>
7083
7084 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
7085 cons.
7086
54b33868
MR
70872008-12-26 Martin Rudalics <rudalics@gmx.at>
7088
7089 * textprop.c (Qminibuffer_prompt): New variable.
7090 (syms_of_textprop): Initialize it.
7091 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
7092 in minibuffer-prompt face. (Bug#1662)
7093
40b615d6
JR
70942008-12-25 Jason Rumney <jasonr@gnu.org>
7095
7096 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
7097
baae5c2d
JR
70982008-12-24 Jason Rumney <jasonr@gnu.org>
7099
7100 * ralloc.c (r_alloc_reset_variable): New function.
7101
7102 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 7103 record of what points where. (Bug#716)
baae5c2d 7104
a9051c88
DN
71052008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
7106
7107 * minibuf.c (read_minibuf): Follow the non-interactive case when
7108 running as a daemon, before detaching.
7109
8b146312
AS
71102008-12-22 Andreas Schwab <schwab@suse.de>
7111
7112 * buffer.c (init_buffer): Use realloc instead of xrealloc.
7113 * gtkutil.c (free_widget_value): Use xfree instead of free.
7114
56f2de10
MR
71152008-12-22 Martin Rudalics <rudalics@gmx.at>
7116
7117 * frame.c (delete_frame): New function derived from
7118 Fdelete_frame to handle Qnoelisp value for FORCE argument.
7119 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
7120 (Fdelete_frame): Call delete_frame. Remove line from doc-string
7121 saying that FORCE non-nil doesn't run `delete-frame-functions'.
7122 * frame.h: Extern delete_frame.
7123 * window.c (window_loop):
7124 * terminal.c (delete_terminal):
7125 * xterm.c (x_connection_closed):
7126 * xfns.c (Fx_hide_tip):
9acef61c 7127 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 7128
1fc200d6
JR
71292008-12-21 Jason Rumney <jasonr@gnu.org>
7130
7131 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
7132 when character maps to .notdef character.
7133
5e252df2
SM
71342008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
7135
7136 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
7137
99b72cc4
JR
71382008-12-20 Jason Rumney <jasonr@gnu.org>
7139
7140 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 7141 a graphical frame on Windows. (Bug#1325)
99b72cc4 7142
acc49a52
JD
71432008-12-20 Jan Djärv <jan.h.d@swipnet.se>
7144
7145 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
7146
6ea15123
CY
71472008-12-20 Chong Yidong <cyd@stupidchicken.com>
7148
7149 * minibuf.c (Fread_buffer): Doc fix.
7150
b2dab6c8
JR
71512008-12-20 Jason Rumney <jasonr@gnu.org>
7152
54ea0c87 7153 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 7154 server name in UNC paths. (Bug#719)
54ea0c87 7155
b2dab6c8 7156 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 7157 charbuf. (Bug#1035)
b2dab6c8 7158
6d1921be
DN
71592008-12-19 Daniel Engeler <engeler@gmail.com>
7160
7161 * sysdep.c (serial_configure): Fix typo.
7162
53934c98
DN
71632008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
7164
7165 * sysdep.c: Include alloca.h.
f4f634e8
DN
7166 (system_process_attributes): Add implementation for Solaris.
7167
7168 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 7169
06e111a6
DN
71702008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
7171
7172 Reorganize implementation of Flist_system_processes and
7173 Fsystem_process_attributes. No functional changes.
7174 * process.c: Don't #include pwd.h, grp.h and limits.h.
7175 (Flist_system_processes): Just call list_system_processes.
7176 (Fsystem_process_attributes): Just call system_process_attributes.
7177 (procfs_list_system_processes, time_from_jiffies)
7178 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
7179 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
7180
7181 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
7182 (list_system_processes): Rename from
7183 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
7184 Provide a do nothing implementation.
7185 (system_process_attributes): Rename from
7186 procfs_list_system_processes.
7187 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 7188 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
7189
7190 * w32.c (list_system_processes): Rename from
7191 w32_list_system_processes.
7192 (system_process_attributes): Rename from
7193 w32_system_process_attributes.
7194
7195 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
7196
7197 * process.h (w32_list_system_processes)
7198 (w32_system_process_attributes): Remove.
362654a6
JB
7199 (list_system_processes, system_process_attributes):
7200 New prototypes.
06e111a6 7201
6a705b23
KH
72022008-12-19 Kenichi Handa <handa@m17n.org>
7203
7204 * xfont.c (xfont_decode_coding_xlfd): New function.
7205 (xfont_encode_coding_xlfd): New function.
7206 (xfont_list_pattern): Decode XLFD by iso-8859-1.
7207 (xfont_list): Decode and encode XLFD by iso-8859-1.
7208 (xfont_match): Likewise.
7209 (xfont_list_family): Likewise.
7210 (xfont_open): Likewise.
7211
d66c0241 7212 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
7213 names are utf-8.
7214
d66c0241 7215 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
7216 names are utf-8.
7217
5a130941
JD
72182008-12-18 Jan Djärv <jan.h.d@swipnet.se>
7219
7220 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
7221 changed.
bfd20325
JD
7222 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
7223 clicked on a detached tool bar button.
5a130941 7224
fd95644b
DN
72252008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
7226
7227 * emacs.c (main): Print and error and exit when no data is read
7228 from the pipe.
7229
e6eee6ae
JR
72302008-12-17 Jason Rumney <jasonr@gnu.org>
7231
7232 * w32font.c (w32font_has_char): Always return -1.
7233
a35dd56b
KH
72342008-12-16 Kenichi Handa <handa@m17n.org>
7235
7236 * font.c (font_open_entity): Fix previous change.
7237
0e3635c2
DN
72382008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
7239
7240 * process.c: Include <limits.h>.
7241
d4835507 72422008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
7243
7244 * font.c (font_update_drivers): Fix mistake in reconstructing the
7245 driver list.
7246
72472008-12-16 Chong Yidong <cyd@stupidchicken.com>
7248
7249 * font.c (font_clear_cache): Fix format of font cache data.
7250
e2cbc401
CY
72512008-12-15 Chong Yidong <cyd@stupidchicken.com>
7252
7253 * xftfont.c (xftfont_open): Free Xft font pattern if
7254 XftFontOpenPattern fails.
7255
7256 * xterm.c (x_free_frame_resources): Remove extraneous call to
7257 free_frame_faces.
7258
b131d535
CY
72592008-12-13 Chong Yidong <cyd@stupidchicken.com>
7260
7261 * xterm.c (x_delete_display): Move xim_close_dpy call to
7262 x_delete_terminal.
7263 (x_delete_terminal): Call xim_close_dpy.
7264
e6df5336
JR
72652008-12-13 Jason Rumney <jasonr@gnu.org>
7266
7267 * w32font.c (intern_font_name): New function.
7268 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
7269 (w32font_open_internal, Fx_select_font): Decode font name.
7270 (fill_in_logfont, list_all_matching_fonts): Encode font name.
7271
7272 * w32font.h (intern_font_name): Declare new function.
7273
7274 * w32uniscribe.c (add_opentype_font_name_to_list):
7275 Use intern_font_name.
7276
20d68145
CY
72772008-12-13 Chong Yidong <cyd@stupidchicken.com>
7278
9f2554de
CY
7279 * frame.c (Fdelete_frame): Call free_font_driver_list.
7280
3d9bec9a
CY
7281 * font.c (free_font_driver_list): Implement missing function.
7282
20d68145
CY
7283 * w32term.c (w32_term_init): Don't initialize the image cache
7284 here; it will be done in init_frame_faces.
7285
7286 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
7287 (struct x_display_info): Remove unused member null_pixel. New
7288 member xim_callback_data.
7289
7290 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
7291 (xim_initialize): Save pointer to callback function data.
7292 (xim_close_dpy): Free callback function data. Call XCloseIM,
7293 reverting 2008-11-04 change by David Smith.
7294 (x_term_init): Don't initialize the image cache here; it will be
7295 done in init_frame_faces. Remove ancient "null_pixel" cruft.
7296 (x_delete_display): Free x_dnd_atoms member.
7297
96f9306b
KH
72982008-12-13 Kenichi Handa <handa@m17n.org>
7299
6dec9044
JB
7300 * font.c (font_rescale_ratio): Moved from xfaces.c.
7301 Argument type changed. Handle a font-spec too.
96f9306b 7302 (font_score): Check Vface_font_rescale_alist.
6dec9044 7303 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
7304
7305 * xfaces.c (font_rescale_ratio): Moved to font.c.
7306
8d5b4964
CY
73072008-12-13 Chong Yidong <cyd@stupidchicken.com>
7308
7309 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
7310
e6df5336
JR
73112008-12-12 Jason Rumney <jasonr@gnu.org>
7312
7313 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
7314 Vwindow_system_version to the real w32 major version.
7315
97c6058a
DN
73162008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
7317
7318 * term.c (init_tty): Move setting the terminal name before the
7319 potential user: maybe_fatal.
7320
ec4e88d7
CY
73212008-12-11 Chong Yidong <cyd@stupidchicken.com>
7322
d4835507
JB
7323 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
7324 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 7325
b4233ec9
JR
73262008-12-11 Jason Rumney <jasonr@gnu.org>
7327
8ec71e23 7328 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 7329 SYMBOL_CHARSET. (Bug#547)
8ec71e23 7330
b4233ec9 7331 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 7332 size for surrogates. (Bug#1096, bug#872)
b4233ec9 7333
011a0143
JB
73342008-12-11 Juanma Barranquero <lekktu@gmail.com>
7335
7336 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
7337
3c309f34
JB
73382008-12-11 Juanma Barranquero <lekktu@gmail.com>
7339
7340 * process.c (Fsystem_process_attributes, syms_of_process):
7341 Fix typo in name of Ssystem_process_attributes.
7342 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
7343
fedc6ab5
JB
73442008-12-11 Juanma Barranquero <lekktu@gmail.com>
7345
7346 * syntax.c (Fmodify_syntax_entry): Doc fix.
7347
ba3de0e8
JB
73482008-12-10 Juanma Barranquero <lekktu@gmail.com>
7349
7350 * font.c (Ffont_spec): Move usage to end of docstring.
7351
174f1c74
JR
73522008-12-10 Jason Rumney <jasonr@gnu.org>
7353
7354 * w32font.c (Qcham): New symbol.
7355 (font_supported_scripts): Add cham, and comments for other new
7356 scripts in bitfield from OpenType spec.
9d32f818
JR
7357 (add_font_entity_to_list): Limit unicode-sip fonts to those that
7358 contain characters beyond the bmp.
174f1c74 7359
7b649478
KH
73602008-12-10 Kenichi Handa <handa@m17n.org>
7361
7362 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 7363 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
7364 Qunicode_sip.
7365
2133e2d1
JB
73662008-12-10 Juanma Barranquero <lekktu@gmail.com>
7367
7368 * coding.c (QCdefault_char): Rename from QCdefalut_char.
7369 (Fcoding_system_put): Use QCdefault_char.
7370 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
7371
9af886ee
CY
73722008-12-09 Chong Yidong <cyd@stupidchicken.com>
7373
74d819eb
CY
7374 * xftfont.c (syms_of_xftfont): Fix typo.
7375
4ccfa1c0 7376 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 7377
7c19d3ae
DN
73782008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
7379
7380 * emacs.c (main): Close daemon_pipe on exec.
7381
567826bb
CY
73822008-12-08 Chong Yidong <cyd@stupidchicken.com>
7383
7384 * termchar.h (struct tty): New members termcap_term_buffer and
7385 termcap_strings_buffer.
7386
7387 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 7388 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
7389 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
7390 All callers changed.
7391 (init_tty): Store termcap data and string buffers in new struct
7392 tty members termcap_term_buffer and termcap_strings_buffer.
7393 (delete_tty): Free them.
4ccfa1c0 7394 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 7395
aa96c42b
SZ
73962008-12-07 Seiji Zenitani <zenitani@mac.com>
7397
7398 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 7399 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 7400
b7e1d896
CY
74012008-12-06 Chong Yidong <cyd@stupidchicken.com>
7402
7403 * coding.c (make_conversion_work_buffer): Disable buffer
7404 modification hooks in the work buffer.
7405
b5ec91a5
EZ
74062008-12-05 Eli Zaretskii <eliz@gnu.org>
7407
7408 * process.c (procfs_system_process_attributes): If `nread' has a
7409 negative value, assign zero to it.
7410
a5d2a52b
CY
74112008-12-05 Chong Yidong <cyd@stupidchicken.com>
7412
68c5540b 7413 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 7414
7bf1bb21
KH
74152008-12-05 Kenichi Handa <handa@m17n.org>
7416
7417 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
7418 second character is a combining character.
7419
2fdc7d00
EZ
74202008-12-05 Eli Zaretskii <eliz@gnu.org>
7421
7422 * process.c (procfs_system_process_attributes): Don't use cmd,
7423 cmdsize, and q without initializing them first.
7424
bf6bfba8
JR
74252008-12-04 Jason Rumney <jasonr@gnu.org>
7426
7427 * w32font.c (w32font_draw): Initialize orig_clip before getting
7428 it, and delete it when finished.
7429
a3b1a468
DN
74302008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
7431
7432 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
7433 case when running as a daemon before detaching.
7434
8b8be8eb
JB
74352008-12-03 Juanma Barranquero <lekktu@gmail.com>
7436
805f2638 7437 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 7438
b1bde622
KH
74392008-12-03 Kenichi Handa <handa@m17n.org>
7440
e500c47d
KH
7441 * font.c (font_at): Set `multibyte' at first.
7442
ca516334
KH
7443 * coding.c (decode_coding_charset): Check type of an element of
7444 vector VALIDS.
7bf1bb21 7445 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 7446
4ccfa1c0 7447 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
7448 (font_for_char): Likewise.
7449
1e5ecd37
CY
74502008-12-03 Chong Yidong <cyd@stupidchicken.com>
7451
d5b01609 7452 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
7453 (font_update_lface): Handle fonts with corrupted size specs,
7454 i.e. non-int and non-float.
d5b01609 7455
11e3a6e4 7456 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 7457 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 7458 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 7459
ab06788b
CY
7460 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
7461
1e5ecd37 7462 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 7463 underline_minimum_offset for underline position.
1e5ecd37 7464
63c125ab
DN
74652008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
7466
7467 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
7468
7469 * character.c (c_string_width): Specify the type for LEN.
7470
3a8406e1
KH
74712008-12-03 Kenichi Handa <handa@m17n.org>
7472
4ccfa1c0 7473 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 7474 (decode_coding_utf_8): Likewise.
4ccfa1c0 7475 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 7476 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 7477
651df7d9
CY
74782008-12-02 Chong Yidong <cyd@stupidchicken.com>
7479
7480 * keyboard.c (make_lispy_position): Only use PT if the selected
7481 window is current.
7482
1f625c6c
AS
74832008-12-02 Andreas Schwab <schwab@suse.de>
7484
f7741ce9
AS
7485 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
7486
1f625c6c
AS
7487 * doprnt.c (doprnt1): Fix size of charbuf.
7488
92bc2678
CY
74892008-12-02 Chong Yidong <cyd@stupidchicken.com>
7490
7491 * keyboard.c (timer_check): Revert last change.
7492
93b9e8cc
JB
74932008-12-02 Juanma Barranquero <lekktu@gmail.com>
7494
7495 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
7496
fd7a37d5
JB
74972008-12-01 Juanma Barranquero <lekktu@gmail.com>
7498
7499 * makefile.w32-in: Update dependencies.
7500 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
7501
c115043b
AS
75022008-12-01 Andreas Schwab <schwab@suse.de>
7503
7504 * font.c (register_font_driver): Use xmalloc.
7505 (font_put_frame_data): Likewise.
7506
f5668d2a
CY
75072008-12-01 Chong Yidong <cyd@stupidchicken.com>
7508
860d96be
CY
7509 * xfaces.c (realize_x_face): Make abort condition clearer.
7510
f5668d2a
CY
7511 * gtkutil.c (update_frame_tool_bar): Initialize variable.
7512
379c17e7
CY
75132008-11-30 Chong Yidong <cyd@stupidchicken.com>
7514
7515 * keyboard.c (timer_check): After a timer runs, ensure that the
7516 selected window's buffer is current.
7517
35f36d65
JB
75182008-11-30 Juanma Barranquero <lekktu@gmail.com>
7519
f952c61c
JB
7520 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
7521 It was accidentally restored by the Unicode merge.
7522
35f36d65
JB
7523 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
7524
b23077df
JB
75252008-11-29 Juanma Barranquero <lekktu@gmail.com>
7526
7527 * w32proc.c: Include "coding.h".
7528 (Fw32_short_file_name): Encode filename passed to Windows API.
7529 (Fw32_long_file_name): Encode filename passed to Windows API and
7530 decode back the result. (Bug#1433)
7531
b8ebe9dd
KH
75322008-11-29 Kenichi Handa <handa@m17n.org>
7533
8cc53f96
KH
7534 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
7535 not before accessing it.
7536
b8ebe9dd
KH
7537 * charset.c (Fdefine_charset_internal): After calculating
7538 min_char, max_char, and fastmap, copy the charset structure again.
7539 (encode_char): Fix the previous change.
7540
59bc82c0
SZ
75412008-11-28 Seiji Zenitani <zenitani@mac.com>
7542
7543 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
7544
7545 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
7546
7547 * nsterm.m (x_set_frame_alpha): New function.
7548
32247e3d
EZ
75492008-11-27 Eli Zaretskii <eliz@gnu.org>
7550
7551 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
7552
b003e5ff
JB
75532008-11-27 Juanma Barranquero <lekktu@gmail.com>
7554
7555 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
7556 pointer to check_face_name.
7557
708550f5
KH
75582008-11-27 Kenichi Handa <handa@m17n.org>
7559
7560 * category.h (SET_CATEGORY_SET): Call set_category_set.
7561 (set_category_set): Extern it.
7562
7563 * category.c (hash_get_category_set): New function.
7564 (Fmodify_category_entry): Adjusted for the change of
7565 char_table_ref_and_range. Call hash_get_category_set to get a
7566 category set to store in the table.
7567
7568 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
7569 Funify_charset.
7570
2ae37cf0 7571 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
7572 (DECODE_CHAR): Check if the decoder vector is ready.
7573 (ENCODE_CHAR): Check if the encoder char-table is ready.
7574 (maybe_unify_char): Extern it.
7575
7576 * charset.c (Vchar_unified_charset_table): Delete it.
7577 (inhibit_load_charset_map): New variable.
7578 (temp_charset_work): New variable.
7579 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
7580 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
7581 New macros.
7582 (load_charset_map): Meaning of control_flag changed. If
7583 inhibit_load_charset_map is nonzero, setup a table in
7584 temp_charset_work.
7585 (load_charset): New argument control_flag.
7586 (map_charset_for_dump): New function.
7587 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
7588 map_charset_for_dump.
7589 (Fdefine_charset_internal): If the charset method is MAP, load
7590 mapping tables by calling load_charset.
7591 (Funify_charset): Don't load a mapping table but directly set
7592 Vchar_unify_table.
7593 (maybe_unify_char): New function.
7594 (decode_char): Don't handle the deleted method MAP_DEFERRED.
7595 Handle the case of inhibit_load_charset_map being nonzero.
7596 (encode_char): Don't handle the deleted method MAP_DEFERRED.
7597 Handle the case of inhibit_load_charset_map being nonzero.
7598 (Fclear_charset_maps): Just free temp_charset_work.
7599 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
7600 variable.
7601
7602 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
7603 change of char_table_ref_and_range.
7604 (char_table_ref_and_range): Change the meaning of argument FROM
7605 and TO. Now the caller must provide initial values for *FROM
7606 and *TO.
7607
7608 * fontset.c (fontset_add): Adjusted for the change of
7609 char_table_ref_and_range.
7610 (fontset_get_font_group): Likewise.
7611 (Ffontset_info): Likewise.
7612
7613 * keymap.c (describe_vector): Adjusted for the change of
7614 char_table_ref_and_range. For char-table, put boundary between
7615 non-ASCII and 8-bit characters.
7616
7617 * print.c (print_object): For bool-vector, delete unnecessary
7618 check of ASCII_BYTE_P.
7619
9196133b
JR
76202008-11-26 Jason Rumney <jasonr@gnu.org>
7621
7622 * w32font.c (w32font_open_internal): Don't include external
9acef61c 7623 leading in font height. (Bug#879)
9196133b 7624
9f688acf
GM
76252008-11-26 Glenn Morris <rgm@gnu.org>
7626
7627 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
7628 redefinition with ifdef. (Bug#1383)
7629
90d19aff
AR
76302008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7631
7632 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
7633
4ccfa1c0 76342008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
7635
7636 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
7637 New EmacsView methods.
7638 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
7639 Fixes bug #1048,1357,1414.
7640
76412008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7642
7643 Fix bug #1362.
7644 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
7645 is not an indexed color.
7646 * nsterm.m (free_indexed_color): Add argument checking.
7647 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
7648
e7d5ecb3
CY
76492008-11-24 Chong Yidong <cyd@stupidchicken.com>
7650
7651 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
7652 Document confirm-after-completion value for
7653 minibuffer-completion-confirm.
7654
c285743c
JR
76552008-11-24 Jason Rumney <jasonr@gnu.org>
7656
7657 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
7658 warning.
7659
b0857706
JR
76602008-11-23 Jason Rumney <jasonr@gnu.org>
7661
7662 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
7663 restored before returning.
7664
7665 * w32font.c (check_face_name): New function.
7666 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 7667 fonts. (Bug#642)
b0857706 7668
ee50ff07
MR
76692008-11-22 Martin Rudalics <rudalics@gmx.at>
7670
7671 * buffer.c (Fswitch_to_buffer): Reword and mention new option
7672 confirm-nonexistent-file-or-buffer in doc-string.
7673
b8ff72fa
SM
76742008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
7675
7676 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
7677 Fix copy/paste typo. Add checks.
7678
cee53ed4
KH
76792008-11-21 Kenichi Handa <handa@m17n.org>
7680
7681 * coding.c (detect_coding_iso_2022): Reject invalid composition
7682 sequence.
7683 (DECODE_COMPOSITION_START): If the current source is the last
7684 block, and the current composition doesn't end, regard this
7685 sequence as invalid.
7686 (decode_coding_iso_2022): Handle invalid composition sequence.
7687
f6ef1e65
MR
76882008-11-20 Martin Rudalics <rudalics@gmx.at>
7689
7690 * window.c (coordinates_in_window): Don't return
7691 ON_VERTICAL_BORDER for the rightmost position of a mode/header
7692 line when the window is not the rightmost one. (Bug#1372)
7693
e08b1705
MR
76942008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
7695
7696 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
7697
ad98e89f
EZ
76982008-11-15 Eli Zaretskii <eliz@gnu.org>
7699
7700 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
7701 and bright_bg if noninteractive is non-zero.
7702
fb098a4b
CY
77032008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7704
7705 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
7706 x_draw_glyph_string_background.
7707
7708 * w32term.c (x_draw_glyph_string): Likewise.
7709
ce952b6e
CY
77102008-11-15 Chong Yidong <cyd@stupidchicken.com>
7711
7712 * xterm.c (x_draw_glyph_string): Stop drawing the background of
7713 the next glyph string once past the overhang width.
7714
7715 * nsterm.m (ns_draw_glyph_string): Likewise.
7716
7717 * w32term.c (x_draw_glyph_string): Likewise.
7718
26ea7079
CY
77192008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
7720
7721 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
7722 double file close.
7723
1c33c906
MR
77242008-11-14 Martin Rudalics <rudalics@gmx.at>
7725
7726 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
7727 dedicated status of window before attempting to display another
7728 buffer in it.
7729
8fc29035
JB
77302008-11-14 Juanma Barranquero <lekktu@gmail.com>
7731
7732 * msdos.c (Fmsdos_long_file_names):
7733 (syms_of_msdos) <dos-unsupported-char-glyph>:
7734 * dosfns.c (Fint86): Fix typos in docstrings.
7735
55fb4286
EZ
77362008-11-14 Eli Zaretskii <eliz@gnu.org>
7737
7738 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
7739
3fda0315
KY
77402008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
7741
7742 * puresize.h (BASE_PURESIZE): Increase to 1260000.
7743
7e849c17
CY
77442008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
7745
7746 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
7747
7748 * frame.h: Negative alpha means "don't touch".
7749
7750 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
7751
7752 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
7753
b9fd67bd
DN
77542008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
7755
7756 * hftctl.c:
7757 * chpdef.h:
7758 * acldef.h: Remove files used only for systems no longer supported.
7759
7760 * Makefile.in: Fix .o alphabetical ordering.
7761 (hftctl.o): Remove dependency, file removed.
7762 (keymap.o, print.o): Depend on charset.h.
7763
d5998e03
KH
77642008-11-10 Kenichi Handa <handa@m17n.org>
7765
2ae37cf0 7766 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 7767
be70e183
CY
77682008-11-08 Chong Yidong <cyd@stupidchicken.com>
7769
7770 * dired.c (file_name_completion): If completion_ignore_case is
7771 enabled, ignore case when checking completion-regexp-list.
7772
7cf94eac
EZ
77732008-11-08 Eli Zaretskii <eliz@gnu.org>
7774
7775 * vm-limit.c (get_lim_data): Fix last change.
7776
ee107a89
KH
77772008-11-08 Kenichi Handa <handa@m17n.org>
7778
7779 * character.c (Fget_byte): New function.
7780 (syms_of_character): Defsubr Fget_byte.
7781
5fd15622
CY
77822008-11-07 Chong Yidong <cyd@stupidchicken.com>
7783
7784 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
7785 cursor position is valid after scrolling.
7786
13d62fad
JB
77872008-11-06 Juanma Barranquero <lekktu@gmail.com>
7788
7789 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
7790
a1dd2936
GM
77912008-11-06 Glenn Morris <rgm@gnu.org>
7792
7793 * xterm.c (handle_one_xevent): Don't let popup menus cause
7794 mouse-autoselect-window related window switching. (Bug#1261)
7795
860cd236
CY
77962008-11-04 David Smith <davidsmith@acm.org> (tiny change)
7797
7798 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
7799
653a3150
AS
78002008-11-04 Andreas Schwab <schwab@suse.de>
7801
7802 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
7803
870f5cac
CY
78042008-11-03 Chong Yidong <cyd@stupidchicken.com>
7805
7806 * xfns.c (Fx_wm_set_size_hint): New function.
7807
1e02f3cb
MR
78082008-11-03 Martin Rudalics <rudalics@gmx.at>
7809
7810 * textprop.c (Fprevious_single_char_property_change): Return 0
7811 when there's no change in a string. (Bug#1301)
7812
e630dfc6
MR
78132008-11-02 Martin Rudalics <rudalics@gmx.at>
7814
7815 * frame.c (do_switch_frame): New argument NORECORD passed to
7816 Fselect_window.
7817 (Fselect_frame): New argument NORECORD passed to
7818 do_switch_frame.
7819 (Fset_frame_selected_window): New argument NORECORD passed to
7820 Fselect_frame.
7821 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
7822 in call of do_switch_frame.
7823 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
7824 Handle NORECORD argument in call of Fselect_frame.
7825 * lisp.h (do_switch_frame, Fselect_frame)
7826 (Fset_frame_selected_window): Adjust declarations.
7827 * window.c (select_frame_norecord): New function.
7828 (run_window_configuration_change_hook): Use it and call
7829 Fselect_frame with NORECORD set.
7830 (Fselect_window): Pass NORECORD to Fselect_frame.
7831 (Fset_window_configuration): Handle NORECORD argument in call of
7832 do_switch_frame.
7833 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
7834 Fset_frame_selected_window.
7835 * keyboard.c (command_loop_1): Handle NORECORD in call of
7836 Fselect_frame (currently ifdefd).
7837
9020b223
GM
78382008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
7839
7840 * emacs.c (USAGE2): Untabify.
7841
793ffee8
SM
78422008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
7843
7844 * composite.c (fill_gstring_header): Fix copy/paste typo.
7845
ab6d1131
MR
78462008-10-31 Martin Rudalics <rudalics@gmx.at>
7847
7848 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
7849 (Fother_window): Rename argument and rewrite doc-string.
7850 (select_window_norecord): Fix return value. (Bug#1276)
7851
601a9cf1
JB
78522008-10-30 Juanma Barranquero <lekktu@gmail.com>
7853
7854 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
7855 new frames overriding foreground for tooltips. Based on similar patch
7856 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
7857
813b0652
CY
78582008-10-29 Chong Yidong <cyd@stupidchicken.com>
7859
7860 * emacs.c (Fdaemon_initialized): Initialize nfd.
7861
4414f58f
MR
78622008-10-29 Martin Rudalics <rudalics@gmx.at>
7863
7864 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
7865 (Fwindow_text_height): Clarify doc-strings.
7866 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
7867 doc-string of window-scroll-functions.
7868
ecdcaa09
RS
78692008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
7870
7871 * category.c (syms_of_category): Fix typo in docstring.
7872
23fe745a
JB
78732008-10-28 Juanma Barranquero <lekktu@gmail.com>
7874
7875 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
7876 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
7877 Fix typos in docstrings.
7878
ff808935
DN
78792008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
7880
7881 * emacs.c (daemon_pipe): Make non-static.
7882 (IS_DAEMON): Move definition ...
7883 * lisp.h (IS_DAEMON): ... here.
7884 (daemon_pipe): Declare.
7885 (is_daemon): Remove.
7886 * dispnew.c (init_display): Use IS_DAEMON.
7887
fc012771
SM
78882008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
7889
7890 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
7891 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
7892
7893 * emacs.c (is_daemon): Remove.
7894 (main): Don't set is_daemon.
7895 (IS_DAEMON): New macro.
7896 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 7897 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
7898 parent exits.
7899 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
7900
d8bdbe6f
CY
79012008-10-27 Chong Yidong <cyd@stupidchicken.com>
7902
d1a072bf
CY
7903 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
7904 over-sized glyph, draw it with the default glyph width.
7905
e2e325aa
CY
7906 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
7907 glyph, draw it with the default glyph width.
7908
7909 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
7910 glyph, draw it with the default glyph width.
7911
d8bdbe6f
CY
7912 * xdisp.c (try_scrolling): When computing the distance from the
7913 scroll margin to PT, try moving some distance past the window
7914 bottom before giving up.
7915
7bfac547
MR
79162008-10-27 Martin Rudalics <rudalics@gmx.at>
7917
7918 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
7919 (Fset_window_buffer): Explain in doc-string that a window can be
7920 "strongly" dedicated to its buffer.
7921
4ff029f6
DN
79222008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
7923
7924 * emacs.c (daemon_name): New variable.
7925 (main): Deal with --daemon=SERVER_NAME.
7926 (Fdaemonp): Return a name if one was passed to --daemon.
7927
5790ef40
DN
79282008-10-26 Romain Francoise <romain@orebokech.com>
7929
f9bd0df9 7930 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
7931 (main): Create a pipe before forking, make the parent exit only after
7932 the child has closed its end of the pipe. Move closing the
7933 descriptors ...
7934 (Fdaemon_initialized): ... here. New function.
7935
f5385255
SM
79362008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
7937
4d632321
SM
7938 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
7939 the previous unoptimized table.
7940
f5385255
SM
7941 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
7942 the distinction between non-nil and non-t value of `dedicated'.
7943
6c56a0f3
CY
79442008-10-25 Chong Yidong <cyd@stupidchicken.com>
7945
7946 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 7947 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 7948
fec89261
MR
79492008-10-25 Martin Rudalics <rudalics@gmx.at>
7950
7951 * window.c (Fget_buffer_window, Fdelete_windows_on)
7952 (Freplace_buffer_in_windows): Make buffer argument optional and
7953 rename to buffer_or_name.
7954
34fcddd0
CY
79552008-10-24 Chong Yidong <cyd@stupidchicken.com>
7956
f5385255
SM
7957 * xdisp.c (handle_single_display_spec, handle_display_prop):
7958 Undo 2005-05-16 change.
34fcddd0
CY
7959 (handle_stop): Pop iterator if it's loaded with an empty string.
7960 (get_overlay_strings_1): Don't save iterator if it's loaded with
7961 an empty string (bug#1201).
7962
064766f2
KH
79632008-10-24 Kenichi Handa <handa@m17n.org>
7964
7965 * ftfont.c (ftfont_otf_features): Fix previous change.
7966 (ftfont_otf_capability): Check FeatureList.FeatureCount before
7967 calling ftfont_otf_features.
7968
f9bd0df9 79692008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
7970
7971 * font.c (font_match_p): Fix for the case that a vector of
7972 characters is in script-representative-chars.
7973
1dae9197
MA
79742008-10-24 Michael Albinus <michael.albinus@gmx.de>
7975
7976 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 7977 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
7978 (xd_read_queued_messages): Catch Qdbus_error from the macros.
7979 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 7980 macro. (Bug#1186)
1dae9197 7981
f9bd0df9 79822008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
7983
7984 * s/sol2-10.h: New file.
7985
878a4584
JB
79862008-10-23 Juanma Barranquero <lekktu@gmail.com>
7987
7988 * xdisp.c (fill_glyph_string): Fix typo in source (though the
7989 poor beast has survived 9+ years and the jump from xterm.c!).
7990
cd265ca6
MR
79912008-10-23 Martin Rudalics <rudalics@gmx.at>
7992
7993 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
7994 Reword doc-string.
f5385255 7995 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 7996
472a4dc9
JB
79972008-10-23 Juanma Barranquero <lekktu@gmail.com>
7998
7999 * character.c (syms_of_character) <script-representative-chars>:
8000 <unicode-category-table>: Doc fixes.
8001
159bd5a2
NF
80022008-10-23 Noah Friedman <friedman@splode.com>
8003
8004 * coding.c (make_conversion_work_buffer): Check that
8005 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
8006 Fget_buffer_create.
8007
49f9c344
KH
80082008-10-23 Kenichi Handa <handa@m17n.org>
8009
8010 * font.c (font_add_log): Check the values of extra properties.
8011
12bb3111
MR
80122008-10-22 Martin Rudalics <rudalics@gmx.at>
8013
8014 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
8015 Reword doc-string.
8016 (Fset_window_parameter): Use NILP.
8017 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 8018 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 8019
bbeb4e99
JB
80202008-10-22 Juanma Barranquero <lekktu@gmail.com>
8021
8022 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
8023
80242008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
8025
8026 * nsfns.m (ns_appkit_version): New function.
8027 (x-server-version): Use it.
8028 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
8029 (x-server-vendor): Don't check_ns().
8030
8031 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
8032
a9b555d3
JB
80332008-10-22 Juanma Barranquero <lekktu@gmail.com>
8034
8035 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
8036 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
8037
4626499f
KH
80382008-10-22 Kenichi Handa <handa@m17n.org>
8039
e3681952
KH
8040 * syntax.c (scan_words): Call word_boundary_p instead of comparing
8041 scripts.
8042
4626499f
KH
8043 * category.c (word_boundary_p): Check scripts instead of charset.
8044 Handle nil value in word-separating-categories and
8045 word-combining-categories.
8046 (syms_of_category): Fix docstrings of word-separating-categories
8047 and word-combining-categories.
8048
1560f91a
EZ
80492008-10-21 Eli Zaretskii <eliz@gnu.org>
8050
8051 * coding.c (Fencode_coding_region, Fdecode_coding_region)
8052 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
8053
f4668441
MR
80542008-10-21 Martin Rudalics <rudalics@gmx.at>
8055
8056 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
8057 Rename arg "buffer" to "buffer_or_name".
8058 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
8059 it optional.
8060 (no_switch_window): Remove since the return value is not used.
a9b555d3 8061 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
8062 Consider window as dedicated when Fwindow_dedicated_p returns a
8063 non-nil value.
8064 * lisp.h: Remove prototype for no_switch_window.
8065
fd75ddb2
JD
80662008-10-21 Jan Djärv <jan.h.d@swipnet.se>
8067
8068 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 8069 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 8070
07295713
KH
80712008-10-21 Kenichi Handa <handa@m17n.org>
8072
8073 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
8074 check Vlatin_extra_code_table.
8075
712adc82
EZ
80762008-10-20 Eli Zaretskii <eliz@gnu.org>
8077
8078 * fileio.c (Fset_file_modes): Doc fix.
8079
f549eb0b
MA
80802008-10-19 Michael Albinus <michael.albinus@gmx.de>
8081
8082 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
8083 in arrays.
8084
aac0c6e3
MR
80852008-10-19 Martin Rudalics <rudalics@gmx.at>
8086
8087 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
8088 Mention kill-buffer in doc-string.
8089 (Fset_window_buffer): Reinsert tem check removed in last commit.
8090 (Fenlarge_window, Fshrink_window): Have argument names and
8091 doc-string follow Elisp manual more closely.
8092
80932008-10-18 Eli Zaretskii <eliz@gnu.org>
8094
8095 * fileio.c (Fset_file_modes): Doc fix.
8096
80972008-10-18 Martin Rudalics <rudalics@gmx.at>
8098
8099 * window.c (Fwindow_width, Fset_window_start)
8100 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
8101 (Fdelete_windows_on, Freplace_buffer_in_windows):
8102 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
8103 (Fwindow_dedicated_p): Make window argument optional.
8104 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
8105 (Fset_window_buffer): Respect any non-nil dedicated value for
8106 window. Rename "buffer" argument to "buffer_or_name".
8107
81082008-10-18 Ulrich Mueller <ulm@gentoo.org>
8109
8110 * m/sh3.h: New file, machine description for SuperH.
8111
81122008-10-17 Martin Rudalics <rudalics@gmx.at>
8113
8114 * window.c (Fsplit_window): Rename arg horflag to horizontal.
8115
81162008-10-17 Kenichi Handa <handa@m17n.org>
8117
8118 * ftfont.c (ftfont_otf_features): Fix indexing
8119 gsub_gpos->FeatureList.Feature. Check the validity of indices.
8120
81212008-10-16 Magnus Henoch <mange@freemail.hu>
8122
8123 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
8124 (Fdbus_call_method_asynchronously): Ditto.
8125 This change makes C-h f display the argument list.
8126
81272008-10-16 Chong Yidong <cyd@stupidchicken.com>
8128
8129 * fileio.c (Fexpand_file_name): Doc fix.
8130
8131 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
8132 of :foreground and :background equivalent to unspecified (20.x
8133 compatibility).
8134
81352008-10-15 Eli Zaretskii <eliz@gnu.org>
8136
8137 * buffer.c (syms_of_buffer): Doc fix.
8138
81392008-10-14 Kenichi Handa <handa@m17n.org>
8140
8141 * font.c (font_clear_prop): When clearing font width, clear the
8142 average width field too.
8143
81442008-10-12 Andreas Schwab <schwab@suse.de>
8145
8146 * ftfont.c (ftfont_shape_by_flt): Make static.
8147 * ftfont.h (ftfont_shape_by_flt): Don't declare.
8148
8149 * font.c: Don't include <m17n-flt.h>.
8150
81512008-10-10 Eli Zaretskii <eliz@gnu.org>
8152
8153 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
8154
81552008-10-09 Eli Zaretskii <eliz@gnu.org>
8156
8157 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
8158 away code.
8159
81602008-10-09 Chong Yidong <cyd@stupidchicken.com>
8161
8162 * dispnew.c (update_text_area): Avoid looping due to large glyph
8163 overhangs (bug#1070).
8164
81652008-10-09 Kenichi Handa <handa@m17n.org>
8166
8167 * fontset.c (face_for_char): If face->fontset is negative, just
8168 return ascii_face.
8169
f5385255
SM
8170 * font.c (font_delete_unmatched): Fix previous change.
8171 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
8172
81732008-10-09 Martin Rudalics <rudalics@gmx.at>
8174
8175 * frame.c (Fraise_frame): On text-only terminals select frame in
8176 order to make it visible. (Bug#1061)
8177
81782008-10-08 Chong Yidong <cyd@stupidchicken.com>
8179
8180 * fontset.c (fontset_find_font): Check frame validity.
8181
81822008-10-07 Chong Yidong <cyd@stupidchicken.com>
8183
a9b555d3 8184 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
8185 (xg_display_close): Allow Emacs to close all displays (bug#985).
8186
81872008-10-06 Andreas Schwab <schwab@suse.de>
8188
f5385255 8189 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
8190
81912008-10-06 Chong Yidong <cyd@stupidchicken.com>
8192
f5385255 8193 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 8194
a9b555d3 8195 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
8196
8197 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
8198 during initialization.
8199
82002008-10-04 Eli Zaretskii <eliz@gnu.org>
8201
8202 * xdisp.c (redisplay_internal): If frame switched, redisplay the
8203 whole thing on MSDOS frames as well as on a TTY.
8204
8205 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
8206 well as for TTY.
8207 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
8208 well as on a TTY.
8209
8210 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
8211 as well as for TTY.
8212
8213 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
8214
8215 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
8216 MSDOS frames as well.
8217
82182008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
8219
8220 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
8221 correct arguments.
b71ac3dd 8222 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
8223
82242008-10-03 Glenn Morris <rgm@gnu.org>
8225
8226 * emacs.c (USAGE1): Add --daemon.
8227
82282008-10-02 Eli Zaretskii <eliz@gnu.org>
8229
8230 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
8231 100, so it's in percents as advertised.
8232
82332008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
8234
8235 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
8236 (ns_output.current_cursor, ns_output.desired_cursor)
8237 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
8238 (FRAME_NEW_CURSOR_COLOR): Remove.
8239
8240 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 8241 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
8242 enumeration (HOLLOW_BOX_CURSOR, etc.).
8243
8244 * nsterm.m (ns_frame_rehighlight): Remove commented code.
8245 (draw_window_cursor): Simplify code.
f5385255
SM
8246 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
8247 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 8248 updates manually.
a9b555d3
JB
8249 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
8250 Use core Emacs cursor types.
aac0c6e3 8251
b8ff72fa 8252 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
8253
82542008-10-02 Martin Rudalics <rudalics@gmx.at>
8255
8256 * process.c (Faccept_process_output): Fix doc-string.
8257
82582008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
8259
8260 * gmalloc.c (__sbrk): Also define for uClibc.
8261
8262 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
8263 for uClibc.
8264
82652008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8266
8267 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
8268 styles.
8269 (nsfont_open): Reenable the cache.
8270
82712008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8272
8273 * font.c (font_matching_entity): Reflect ATTRS in font selection.
8274 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
8275
82762008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
8277
8278 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
8279 a suspended terminal.
8280
82812008-09-30 Michael Albinus <michael.albinus@gmx.de>
8282
8283 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
8284
82852008-09-30 Eli Zaretskii <eliz@gnu.org>
8286
8287 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
8288
82892008-09-30 Chong Yidong <cyd@stupidchicken.com>
8290
8291 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
8292 in a continued line coincides with a line beginning.
8293
82942008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
8295
8296 * nsfont.m (nsfont_trait_distance): Fix bug.
8297 (nsfont_list): Return a list rather than a vector (syncs with Handa
8298 changes of 2008-05-14).
8299 (nsfont_open): Improve logging.
8300
83012008-09-29 Andreas Schwab <schwab@suse.de>
8302
8303 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
8304
83052008-09-28 Martin Rudalics <rudalics@gmx.at>
8306
8307 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
8308 name as char-resolve-modifiers.
8309 Reported by: Markus Triska <markus.triska@gmx.at>
8310
83112008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
8312
8313 * dispnew.c (init_display): Return earlier when running as a daemon.
8314
83152008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8316
8317 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
8318
83192008-09-27 Eli Zaretskii <eliz@gnu.org>
8320
8321 * composite.c (Fcomposition_get_gstring)
8322 (Fcompose_region_internal, Fcompose_string_internal)
8323 (Ffind_composition_internal): Doc fix.
8324 (syms_of_composite) <compose-chars-after-function>: Doc fix.
8325 (syms_of_composite) <auto-composition-function>: Doc fix.
8326 (syms_of_composite) <composition-function-table>: Doc fix.
8327
83282008-09-25 Chong Yidong <cyd@stupidchicken.com>
8329
8330 * search.c (wordify): New argument for lax word-ends.
8331 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
8332
83332008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
8334
8335 * lisp.h (is_daemon): Declare.
8336 * dispnew.c (init_display): Do not try to initialize the terminal
8337 when running as a daemon.
8338
83392008-09-22 Chong Yidong <cyd@stupidchicken.com>
8340
8341 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
8342 x_display_pixel_height.
8343
83442008-09-22 Martin Rudalics <rudalics@gmx.at>
8345
8346 * undo.c (record_point): Don't call Fundo_boundary for first
8347 change. (Bug#731)
8348
83492008-09-22 Juanma Barranquero <lekktu@gmail.com>
8350
8351 * emacs.c (Fdaemonp): Doc fix.
8352
83532008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
8354
8355 * emacs.c (main): Place #ifdef in the proper place.
8356
83572008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
8358
8359 * emacs.c (standard_args): Add --daemon.
8360 (main): Disconnect from the terminal when --daemon is passed.
8361 (is_daemon): New variable.
8362 (Fdaemonp): New function.
8363 (syms_of_emacs): Defsubr it.
8364
83652008-09-20 Chong Yidong <cyd@stupidchicken.com>
8366
8367 * xdisp.c (get_next_display_element): Handle string display
8368 correctly when checking for the end of a box run.
8369
83702008-09-20 Glenn Morris <rgm@gnu.org>
8371
8372 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
8373 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
8374 (Frename_file): Avoid copying to trash if a rename involves
8375 a delete. (Bug#964).
8376
83772008-09-20 Eli Zaretskii <eliz@gnu.org>
8378
8379 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
8380 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
8381 frames as well as termcap frames.
8382 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
8383 get_named_tty.
8384
83852008-09-19 Eli Zaretskii <eliz@gnu.org>
8386
8387 * process.c (procfs_system_process_attributes): Fix cmdline in
8388 case /proc/PID/cmdline is empty.
8389
8390 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
8391 x_display_pixel_height.
8392
83932008-09-19 Juanma Barranquero <lekktu@gmail.com>
8394
8395 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
8396
8397 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
8398 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
8399
84002008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
8401
8402 * dispextern.h (struct it): Move line_wrap away from the middle of
8403 bitfields. Move voffset in struct iterator_stack_entry after the
8404 bitfields. Move tab_width near after another short.
8405
84062008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
8407
8408 * frame.h (struct frame): Move alpha from the middle of bitfields.
8409
8410 * window.h (struct window): Move frozen_window_start_p after the
8411 rest of the bitfields to reduce padding.
8412
84132008-09-18 Chong Yidong <cyd@stupidchicken.com>
8414
8415 * xterm.h (x_display_info): Remove `height' and `width' members.
8416
8417 * nsterm.h (ns_display_info): Remove `height' and `width' members.
8418
8419 * w32term.h (w32_display_info): Remove `height', `width',
8420 `height_in', and `width_in' members.
8421
b8ff72fa
SM
8422 * xterm.c (x_display_pixel_height, x_display_pixel_width):
8423 New functions.
aac0c6e3
MR
8424 (x_calc_absolute_position): Use them.
8425 (x_term_init): Omit removed `height' and `width' members.
8426
b8ff72fa
SM
8427 * w32term.c (x_display_pixel_height, x_display_pixel_width):
8428 New functions.
aac0c6e3
MR
8429 (w32_read_socket, x_calc_absolute_position): Use them.
8430 (w32_initialize_display_info, w32_term_init): Omit removed members
8431 of w32_display_info.
8432
b8ff72fa
SM
8433 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
8434 New functions.
8435 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 8436
b8ff72fa
SM
8437 * xterm.c (x_display_pixel_height, x_display_pixel_width):
8438 New functions.
aac0c6e3
MR
8439 (x_calc_absolute_position): Use them.
8440 (x_term_init): Omit removed `height' and `width' members.
8441
8442 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
8443 (compute_tip_xy):
8444 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
8445 * xmenu.c (menu_position_func): Use x_display_pixel_height and
8446 x_display_pixel_width.
8447
84482008-09-18 Kenichi Handa <handa@m17n.org>
8449
8450 * composite.c (fill_gstring_header): Don't check FROM and TO here.
8451 (composition_compute_stop_pos): Fix handling of static composition.
8452 (Fcomposition_get_gstring): Check FROM and TO at first.
8453
84542008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
8455
46e722a9 8456 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
8457 mixup (YAILOM).
8458
84592008-09-17 Chong Yidong <cyd@stupidchicken.com>
8460
8461 * indent.c (Fvertical_motion): Use position reported by iterator
8462 instead of PT for determining screen motion (bug#943).
8463
84642008-09-17 Romain Francoise <romain@orebokech.com>
8465
8466 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
8467
84682008-09-17 Kenichi Handa <handa@m17n.org>
8469
8470 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
8471
8472 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
8473 if necessary.
8474
84752008-09-16 Kenichi Handa <handa@m17n.org>
8476
8477 * coding.c (make_conversion_work_buffer): Avoid calling
8478 Fget_buffer_create if it is not necessary.
8479
84802008-09-15 Martin Rudalics <rudalics@gmx.at>
8481
8482 * window.c (Fselect_window): Don't update window_select_count and
8483 use_time when norecord is not nil.
8484
84852008-09-14 Kenichi Handa <handa@m17n.org>
8486
8487 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
8488 specpdl_ptr.
8489
84902008-09-12 Kenichi Handa <handa@m17n.org>
8491
8492 * indent.c (scan_for_column): Don't handle automatic composition
8493 if the current buffer is not associated with a window.
8494
8495 * composite.c (composition_reseat_it): If the current buffer is
8496 not associated with a window, ignore the automatic composition.
8497 (find_automatic_composition): Likewise.
8498
84992008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
8500
8501 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
8502 (Fgpm_mouse_stop): Use it.
8503 * termhooks.h (close_gpm): Declare.
8504 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
8505 connection if Gpm_GetEvent fails.
8506
8507 * window.c (set_window_buffer): Always preserve current-buffer.
8508
85092008-09-12 Glenn Morris <rgm@gnu.org>
8510
8511 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
8512
85132008-09-11 Glenn Morris <rgm@gnu.org>
8514
8515 * charset.c (charset-map-path): Doc fix.
8516
85172008-09-10 Kenichi Handa <handa@m17n.org>
8518
8519 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
8520
8521 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
8522 compose a grapheme cluster with the preceding base glyph.
8523
8524 * composite.c (composition_compute_stop_pos): Fix previous change.
8525 Reset cmp_it->id to -1 at first.
8526
85272008-09-10 Glenn Morris <rgm@gnu.org>
8528
8529 * Makefile.in (character.o, chartab.o): Fix config.h typo.
8530
85312008-09-09 Chong Yidong <cyd@stupidchicken.com>
8532
8533 * keyboard.c (read_key_sequence): Reapply translation maps when
8534 switching keyboards.
8535
85362008-09-09 Kenichi Handa <handa@m17n.org>
8537
8538 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
8539 characters.
8540
8541 * composite.c (FORWARD_CHAR): Fix calculation
8542 of (POSITION).pos_byte.
8543 (composition_compute_stop_pos): Limit the search of composition to
8544 at most 500 characters ahead. If we reach the limit or find a
8545 newline, set cmp_it->ch to -2 and return 0.
8546 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
8547
85482008-09-08 Kenichi Handa <handa@m17n.org>
8549
8550 * indent.c (Fvertical_motion): Be sure to set
8551 it_overshoot_expected if it.cmp_it.id is non-negative.
8552
85532008-09-07 Andreas Schwab <schwab@suse.de>
8554
8555 * callproc.c (Fcall_process): Don't hold references to string data
8556 across garbage collection. Move initialisation of new_argv down
8557 to avoid compiler bug.
8558
85592008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
8560
8561 * process.c (Fsystem_process_attributes): Doc fix.
8562
85632008-09-07 Chong Yidong <cyd@stupidchicken.com>
8564
8565 * callproc.c (Fcall_process): Canonicalize current directory name.
8566
8567 * xdisp.c (move_it_to): When moving by vpos, ensure that the
8568 iterator advances to the next line if the current line ends in a
8569 continued tab.
8570
85712008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
8572
8573 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
8574 member to point to cmp_from.
8575
8576 * xdisp.c: Doc fix for references to gidx data member.
8577
85782008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
8579
8580 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
8581
85822008-09-07 Kenichi Handa <handa@m17n.org>
8583
8584 * composite.c (FORWARD_CHAR): Check STOP after
8585 incrementing (POSITION).pos.
8586
85872008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
8588
8589 * process.c (Fsystem_process_attributes): Doc fix.
8590
85912008-09-06 Chong Yidong <cyd@stupidchicken.com>
8592
8593 * keyboard.c (Ftop_level): Doc fix.
8594
85952008-09-06 Eli Zaretskii <eliz@gnu.org>
8596
8597 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
8598 minibuffer, don't let lower part of menu invade the echo area.
8599
8600 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
8601 "char *q" to access menu text and advance through it. Revert the
8602 change that displayed ">" instead of ASCII character 0x10.
8603
86042008-09-05 Eli Zaretskii <eliz@gnu.org>
8605
8606 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
8607 toggle boxes and radio buttons on MS-DOS as well.
8608
86092008-09-05 Kenichi Handa <handa@m17n.org>
8610
8611 * composite.c (autocmp_chars): Check lookback count.
8612 (composition_compute_stop_pos): Set cmp_it->lookback.
8613 (composition_reseat_it): Check lookback count.
8614 (struct position_record): New struct.
8615 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
8616 (find_automatic_composition): New function.
8617 (composition_adjust_point): Use find_automatic_composition.
8618
8619 * dispextern.h (struct composition_it): New member lookback.
8620
86212008-09-02 Chong Yidong <cyd@stupidchicken.com>
8622
8623 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
8624 if moving by a single line.
8625
86262008-09-02 Andreas Schwab <schwab@suse.de>
8627
8628 * xterm.c (x_delete_display): Fix merge error.
8629
8630 * fileio.c (Fexpand_file_name): Remove unused variables.
8631
86322008-09-02 Eli Zaretskii <eliz@gnu.org>
8633
8634 * fileio.c (Fexpand_file_name): Copy argument `name' into local
8635 storage on all platforms, not just on DOS_NT.
8636
86372008-09-02 Jason Rumney <jasonr@gnu.org>
8638
b8ff72fa
SM
8639 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
8640 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
8641
86422008-09-01 Chong Yidong <cyd@stupidchicken.com>
8643
8644 * xfaces.c (Finternal_set_alternative_font_family_alist)
8645 (Finternal_set_alternative_font_registry_alist): Properly copy
8646 entire alist structure.
8647
86482008-09-01 Kenichi Handa <handa@m17n.org>
8649
d66c0241 8650 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 8651 representative chars of the script is a vector.
d66c0241
JB
8652 (ftfont_list): Handle the case where the representative chars of
8653 the script is a vector.
aac0c6e3
MR
8654
8655 * character.c (syms_of_character): Docstring of
8656 script-representative-chars fixed.
8657
86582008-08-31 Eli Zaretskii <eliz@gnu.org>
8659
8660 * msdos.c (BUILD_CHAR_GLYPH): New macro.
8661 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
8662 the menu. Allocate larger buffer for `text', to account for
8663 possible ^C characters.
8664
86652008-08-31 Martin Rudalics <rudalics@gmx.at>
8666
8667 * xdisp.c (prepare_menu_bars): Don't call
8668 Vwindow_size_change_functions with arg Qt.
8669
86702008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
8671
8672 * font.h (font_range):
8673 * fileio.c (report_file_error):
46e722a9
SM
8674 * composite.c (composition_update_it): Yet another int/Lisp_Object
8675 mixup (YAILOM).
aac0c6e3
MR
8676
86772008-08-30 Glenn Morris <rgm@gnu.org>
8678
8679 * data.c (Fmake_variable_frame_local): Doc fix.
8680
8681 * frame.c (Fmodify_frame_parameters): Doc fix.
8682
86832008-08-30 Eli Zaretskii <eliz@gnu.org>
8684
8685 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
8686 needed by GetTokenInformation.
8687 (w32_system_process_attributes): Check return values of all system
8688 APIs.
8689
8690 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
8691 only when the state changes.
8692 (IT_update_begin, IT_update_end): Add termscript trace.
8693
8694 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
8695 clipboard is unavailable. Set dst to NULL if it doesn't point to
8696 malloc'ed data.
8697 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
8698 passing random values to xfree.
8699
8700 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 8701 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
8702
87032008-08-29 Jason Rumney <jasonr@gnu.org>
8704
8705 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
8706
87072008-08-29 Eli Zaretskii <eliz@gnu.org>
8708
8709 * composite.c (fill_gstring_body): Avoid compiler warnings.
8710
8711 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
8712 LGLYPH_SET_CODE to avoid compiler warnings.
8713
2ae37cf0 8714 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
8715
8716 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
8717
8718 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
8719 LGLYPH_SET_CODE.
8720
87212008-08-29 Kenichi Handa <handa@m17n.org>
8722
8723 * fileio.c (report_file_error): Don't downcase the first character
8724 of errstring if it is still unibyte.
8725
87262008-08-29 Kenichi Handa <handa@m17n.org>
8727
8728 These changes are to re-implement the automatic composition so
8729 that it doesn't use text properties.
8730
8731 * Makefile.in (ftfont.o): Depend on composite.h.
8732 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
8733
8734 * character.h (Vunicode_category_table): Extern it.
8735
8736 * character.c (Vunicode_category_table): New variable.
8737 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
8738
8739 * chartab.c (optimize_sub_char_table): Perform more greedy
8740 optimization.
8741
b8ff72fa
SM
8742 * composite.h (enum composition_method):
8743 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
8744 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
8745 (Vcomposition_function_table): Extern it.
8746 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
8747 (composition_gstring_put_cache, composition_gstring_from_id)
8748 (composition_gstring_p, composition_gstring_width)
8749 (composition_compute_stop_pos, composition_reseat_it)
8750 (composition_update_it, composition_adjust_point): Extern them.
8751 (Fcomposition_get_gstring): EXFUN it.
8752
d66c0241 8753 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
8754 (Vcomposition_function_table)
8755 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
8756 (gstring_hash_table, gstring_work, gstring_work_headers):
8757 New variables.
aac0c6e3
MR
8758 (gstring_lookup_cache, composition_gstring_put_cache)
8759 (composition_gstring_from_id, composition_gstring_p)
8760 (composition_gstring_width, fill_gstring_header)
8761 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
8762 (composition_reseat_it, composition_update_it)
b8ff72fa 8763 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
8764 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
8765 and gstring_work_headers. DEFVAR_LISP composition-function-table.
8766 Defsubr compostion_get_gstring.
8767
8768 * dispextern.h (struct glyph): New union u.cmp. Delete the member
8769 cmp_id.
8770 (struct glyph_string): Delete the member gidx. New members
8771 cmp_id, cmp_from, and cmp_to.
8772 (enum it_method): Delete GET_FROM_COMPOSITION.
8773 (struct composition_it): New struct.
8774 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
8775 Delete c, len, cmp_id, cmp_len in u.comp.
8776
8777 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 8778 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 8779 (enum lglyph_indices): Likewise.
b8ff72fa 8780 (font_range): Adjust extern.
aac0c6e3
MR
8781 (font_fill_lglyph_metrics): Extern it.
8782
8783 * font.c (QCf): New variable.
8784 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
8785 (font_prepare_composition): Delete this function.
8786 (font_range): Type and arguments changed.
8787 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
8788 (font_fill_lglyph_metrics): New function.
b8ff72fa 8789 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 8790 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
8791 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
8792 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
8793
8794 * fontset.h (font_for_char): Extern it.
8795
8796 * fontset.c (font_for_char): New function.
8797
8798 * ftfont.c: Include composite.h.
8799 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 8800 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
8801
8802 * indent.c: Include composite.h and dispextern.h.
8803 (check_composition): Delete this function.
8804 (scan_for_column): Handle composition by
8805 composition_compute_stop_pos, composition_reseat_it, and
8806 composition_update_it.
8807 (compute_motion): Likewise.
8808 (Fvertical_motion): Fix checking of composition.
8809
8810 * keyboard.c (adjust_point_for_property): Check composition by
8811 composition_adjust_point.
8812
b8ff72fa 8813 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
8814 struct glyph_string.
8815
b8ff72fa
SM
8816 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
8817 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
8818 struct glyph.
8819 (produce_composite_glyph): Likewise.
8820
b8ff72fa
SM
8821 * w32term.c (x_draw_composite_glyph_string_foreground):
8822 Adjust for the change of struct glyph_string.
aac0c6e3
MR
8823 (x_draw_glyph_string): Likewise.
8824
8825 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
8826 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
8827
8828 * xdisp.c: Include font.h.
8829 (it_props): Delete the entry for Qauto_composed.
8830 (init_iterator): Initialize it->cmp_it.id to -1.
8831 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 8832 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
8833 (handle_auto_composed_prop): Delete it.
8834 (handle_composition_prop): Handle only static composition.
8835 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
8836 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 8837 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
8838 (pop_it): Likewise.
8839 (get_next_element): Delete next_element_from_composition.
8840 (CHAR_COMPOSED_P): New macro.
8841 (get_next_display_element): For automatic composition, get a face
8842 from the font in the glyph-string.
8843 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 8844 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
8845 (next_element_from_string): Check if the character at the current
8846 position is composed by CHAR_COMPOSED_P.
8847 (next_element_from_buffer): Likewise.
d66c0241
JB
8848 (next_element_from_composition): Adjust for the change of struct it.
8849 Update it->cmp_it.
b8ff72fa
SM
8850 (dump_glyph): Adjust for the change of struct glyph.
8851 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
8852 it and struct glyph. Don't handle automatic composition here.
8853 (fill_gstring_glyph_string): New function.
8854 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 8855 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
8856 (BUILD_GSTRING_GLYPH_STRING): New macro.
8857 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
8858 automatic composition.
b8ff72fa 8859 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 8860 struct glyph.
b8ff72fa 8861 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 8862
b8ff72fa 8863 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
8864 the change of struct glyph_string.
8865 (x_draw_glyph_string): Likewise.
8866
88672008-08-29 Glenn Morris <rgm@gnu.org>
8868
8869 * buffer.c (word-wrap): Doc fix.
8870 * xdisp.c (truncate-partial-width-windows): Doc fix.
8871 Increase default to 50.
8872
88732008-08-29 Chong Yidong <cyd@stupidchicken.com>
8874
8875 * xdisp.c (update_tool_bar_unwind): New function.
8876 (update_tool_bar): Temporarily set selected frame before building
8877 tool-bar items.
8878
88792008-08-28 Michael Albinus <michael.albinus@gmx.de>
8880
8881 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
8882 snprintf, respectively.
8883 (xd_append_arg): Convert strings with Fstring_make_unibyte.
8884
88852008-08-28 Chong Yidong <cyd@stupidchicken.com>
8886
8887 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
8888 LDFLAGS to GNUstep CC invocation.
8889
88902008-08-27 Chong Yidong <cyd@stupidchicken.com>
8891
8892 * indent.c (Fvertical_motion): Revert last change. Handle the
8893 general case where we are moving forward, and PT spans multiple
8894 screen lines.
8895
8896 * eval.c (find_handler_clause): Temporarily increase
8897 max-lisp-eval-depth while printing the backtrace buffer, to
8898 guarantee that help-mode code can run.
8899
89002008-08-27 Eli Zaretskii <eliz@gnu.org>
8901
8902 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
8903 colors under -rv.
8904 (IT_set_frame_parameters): Don't swap foreground and background
8905 colors if `(reverse . t)' is present in the frame properties.
8906 (internal_terminal_init): Call init_frame_faces only for the
8907 initial frame.
8908
89092008-08-27 Andreas Schwab <schwab@suse.de>
8910
8911 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
8912
89132008-08-27 Andreas Schwab <schwab@suse.de>
8914
8915 * search.c (search_buffer): Set char_base to zero only at the end.
8916
89172008-08-27 Kenichi Handa <handa@m17n.org>
8918
b8ff72fa 8919 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
8920
89212008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
8922
8923 * xterm.c (x_term_init): Temporarily hide the partially
8924 initialized terminal while calling vendor-specific-keysyms.
8925
89262008-08-26 Eli Zaretskii <eliz@gnu.org>
8927
8928 * msdos.c (internal_terminal_init): Most initializations done only
8929 once, especially initial_screen_colors[] and termscript open.
8930
89312008-08-26 Chong Yidong <cyd@stupidchicken.com>
8932
8933 * eval.c (Fcondition_case): Doc fix.
8934
8935 * widgetprv.h (EmacsFramePart): Change font member to the new font
8936 struct.
8937
8938 * widget.c: Include character.h and font.h for XSETFONT.
8939 (setup_frame_gcs): Compute X font id from font struct, just once.
8940
89412008-08-26 Eli Zaretskii <eliz@gnu.org>
8942
8943 * term.c (get_named_tty): Fix last change.
8944
89452008-08-26 Chong Yidong <cyd@stupidchicken.com>
8946
8947 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 8948 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
8949
89502008-08-25 Eli Zaretskii <eliz@gnu.org>
8951
8952 * frame.c (do_switch_frame): Mark previously displayed frame as
8953 obscured for FRAME_MSDOS_P frames as well.
8954
89552008-08-24 Eli Zaretskii <eliz@gnu.org>
8956
8957 * frame.c (make_terminal_frame): Initialize f->terminal,
8958 f->terminal->reference_count, and scroll bars on MS-DOS as well.
8959 Set the top frame to newly created frame.
8960 (Fmake_terminal_frame): Reuse the_only_display_info.
8961
8962 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
8963 estimating available memory.
8964
b97439ce 89652008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
8966
8967 * nsterm.m (ns_draw_window_cursor): Don't call
8968 NSDisableScreenUpdates and NSEnableScreenUpdates on
8969 non-NS_IMPL_COCOA systems.
8970
89712008-08-23 Andreas Schwab <schwab@suse.de>
8972
8973 * process.c (procfs_system_process_attributes): Fix use of
8974 uninitialized variables.
8975
89762008-08-23 Eli Zaretskii <eliz@gnu.org>
8977
8978 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
8979
8980 * dispnew.c (init_display): Remove MS-DOS specific conditions for
8981 calling tty-set-up-initial-frame-faces.
8982
b8ff72fa
SM
8983 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
8984 Allow MSDOS frames along with X frames.
aac0c6e3
MR
8985
8986 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
8987 addition to output_termcap.
8988
8989 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
8990
8991 * termchar.h (FRAME_TTY): Support output_msdos_raw.
8992 (struct tty_display_info) [MSDOS]: Add fields related to mouse
8993 highlight.
8994
8995 * process.c [!subprocesses]: Define QCname.
8996 (syms_of_process): Intern and staticpro it.
8997
8998 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
8999 Adjust for changes in encoding/decoding routines.
9000 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
9001 encode_coding and decode_coding.
9002
b8ff72fa 9003 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
9004
9005 * dosfns.c: Include frame.h before termhooks.h.
9006 (dos_cleanup): Use CURTTY ()->termscript instead of a global
9007 variable termscript.
9008
9009 * s/msdos.h (USER_FULL_NAME): Define.
9010 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
9011
9012 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
9013 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
9014 pw->pw_gecos.
9015
9016 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
9017 SELECTED_FRAME as additional (1st) argument.
9018 (tty_read_avail_input): Handle output_msdos_raw in
9019 addition to output_termcap.
9020
9021 * msdos.c: Include frame.h before termhooks.h.
9022 (mouse_on, mouse_off, mouse_moveto, mouse_init)
9023 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
9024 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
9025 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
9026 (IT_set_terminal_modes, IT_reset_terminal_modes)
9027 (IT_set_frame_parameters): Use tty->termscript instead of a global
9028 variable termscript.
9029 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
9030 global variable terminal_coding. Don't refer to
9031 Vnonascii_translation_table.
9032 (internal_terminal_init): Set Vwindow_system in current_kboard.
9033 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
9034 Announce date and time of session start, if termscript is open.
9035 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
9036 term.c:init_tty). Open termscript only of not already open.
9037 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
9038 here instead of dos_ttraw. Don't initialize display if this is an
9039 initial tty. Don't set FRAME_FONT.
9040 (Vwindow_system_version): Bump to 23.
9041 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
9042 is available, set up mouse_position_hook.
9043 (dos_ttraw, IT_set_terminal_modes): If called with initial
9044 terminal, do nothing.
9045 (IT_set_frame_parameters): Handle the Qtty_type frame
9046 parameter by calling internal_terminal_init.
9047 (dos_set_window_size, show_mouse_face)
9048 (clear_mouse_face, IT_note_mode_line_highlight)
9049 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
9050 (dos_rawgetc): Use tty_display_info instead of x_display_info.
9051 (initialize_msdos_display): New function.
9052 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
9053 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
9054 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
9055 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 9056 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
9057 (request_sigio, unrequest_sigio): Don't define, now defined on
9058 sysdep.c.
9059 (IT_write_glyphs): Rewrite to use encode_terminal_code.
9060
9061 * term.c [MSDOS]: Include msdos.h.
9062 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
9063 conditional to DOS_NT. Allow only one call to this function in a
9064 session. Don't allocate a new struct tty_display_info; instead,
9065 reuse the_only_display_info. Call get_tty_size to get screen
9066 dimensions. Call init_baud_rate to set bad_rate.
9067 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
9068 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 9069 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
9070 (get_tty_terminal, get_named_tty, Ftty_type)
9071 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
9072 output_termcap.
b8ff72fa
SM
9073 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
9074 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 9075 only when subprocesses are supported.
aac0c6e3
MR
9076
9077 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
9078 f->output_data.x.
9079 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
9080 terminal devices.
9081
5582fbc7 9082 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
9083 x_output.
9084 (FRAME_FONT): Use output_data.tty.
9085 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
9086 (struct x_display_info): Rename from display_info. Update all users in
9087 msdos.c.
aac0c6e3 9088 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 9089 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
9090 (dos_ttraw): Update prototype.
9091
9092 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
9093 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
9094
90952008-08-23 Jason Rumney <jasonr@gnu.org>
9096
9097 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
9098 (fn_TIFFSetDirectory): New library function used.
9099 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
9100 (tiff_load): Use :index to select among multiple images. Set count
9101 property when multiple images exist.
9102 (gif_format): Use :index, not :image.
9103
91042008-08-23 Chong Yidong <cyd@stupidchicken.com>
9105
9106 * xdisp.c (try_scrolling): Check INT_MAX instead of
9107 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
9108 to obtain INT_MAX.
9109
91102008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
9111
9112 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
9113
91142008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
9115
9116 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
9117 GNUstep library location.
9118
91192008-08-21 Chong Yidong <cyd@stupidchicken.com>
9120
9121 * xfaces.c (x_update_menu_appearance): Check validity of menu font
9122 before using it.
9123
9124 * puresize.h (BASE_PURESIZE): Increase to 1250000.
9125
91262008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9127
9128 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
9129 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
9130 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
9131 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
9132 (EmacsApp-cursor_blink_handler): Remove declaration.
9133 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
9134 match 01 Feb 2008 changes in xterm.c.
9135 (ns_read_socket): Add cast to avoid warning.
9136 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
9137 GNUstep.
9138
91392008-08-20 Chong Yidong <cyd@stupidchicken.com>
9140
9141 * xselect.c (x_get_foreign_selection): Return nil if desired
9142 selection could not be obtained, instead of signalling an error.
9143
91442008-08-20 David Reitter <david.reitter@gmail.com>
9145
9146 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
9147 * nsterm.m: Remove ns-specific code for cursor blinking.
9148 (ns_draw_window_cursor): Clear cursor properly rather than
9149 redrawing the area. Respect width of bar cursors.
9150 These changes enable the use of generic blink-cursor-mode and
9151 generic cursor types in NS and support smooth cursor movements (do
9152 not blink off after command).
9153 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
9154 Nextstep, too.
9155
91562008-08-19 Kenichi Handa <handa@m17n.org>
9157
9158 * font.c (Vfont_log_deferred): New variable.
9159 (font_add_log): Check Vfont_log_deferred.
9160 (font_deferred_log): New function.
9161
9162 * font.h (font_deferred_log): Extern it.
9163
9164 * fontset.c (reorder_font_vector): Use encoding charset of fonts
9165 for sorting.
9166 (face_for_char): Use deferred log.
9167
91682008-08-18 Kenichi Handa <handa@m17n.org>
9169
9170 * fontset.c (face_for_char): Add font log.
9171
9172 * font.c (font_add_log): Add the font properties :script, :lang,
9173 and :otf in the log.
9174
91752008-08-17 Chong Yidong <cyd@stupidchicken.com>
9176
9177 * xdisp.c: Remove dead code.
9178 (handle_invisible_prop, next_overlay_string): Defer call to
9179 setup_for_ellipsis.
9180 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
9181
91822008-08-15 Chong Yidong <cyd@stupidchicken.com>
9183
9184 * xfaces.c (lookup_derived_face): Properly handle possible zero
9185 return value of get_lface_attributes.
9186 (merge_faces): Don't tell lookup_derived_face to signal an error
9187 if face is not found.
9188
9189 * dired.c (Fdirectory_files): Doc fix.
9190
9191 * process.c (make_process): Initialize kill_without_query struct
9192 member.
9193
91942008-08-15 Eli Zaretskii <eliz@gnu.org>
9195
9196 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
9197 Alternative calculation of totphys for Visual Studio 6.
9198
9199 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
9200
9201 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
9202 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
9203 All users changed.
9204 (stat): Only root directory passed to GetDriveType. Allow RAM
9205 disk as well as local fixed disk when w32-get-true-file-attributes
9206 is set to `local'.
9207 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
9208 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
9209 (w32_cached_id, w32_add_to_cache): New functions.
9210 (get_name_and_id): Look account names in the cache before calling
9211 lookup_account_sid.
9212 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
9213 New initialization flags.
9214 (globals_of_w32): Initialize them to zero.
9215 (w32_system_process_attributes): Use w32_cached_id and
9216 w32_add_to_cache.
9217
92182008-08-14 Lawrence Mitchell <wence@gmx.li>
9219
9220 * lread.c (Fread_char, Fread_char_exclusive): If no character
9221 event is read before timeout is reached, return nil, rather than
9222 converting to a number.
9223
92242008-08-14 Chong Yidong <cyd@stupidchicken.com>
9225
9226 * fns.c (use_dialog_box): Doc fix.
9227
9228 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
9229 on OS X.
9230
92312008-08-13 Chong Yidong <cyd@stupidchicken.com>
9232
9233 * frame.c (Qns_parse_geometry): New var.
9234 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
9235
92362008-08-11 Chong Yidong <cyd@stupidchicken.com>
9237
9238 * xdisp.c (x_produce_glyphs): Handle the case when font has no
9239 space character in calculating tabs.
9240
92412008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
9242
9243 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
9244
92452008-08-10 Glenn Morris <rgm@gnu.org>
9246
9247 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
9248 silence gcc "limited range of data type" warnings in some
9249 make_fixnum_or_float calls.
9250
92512008-08-09 Eli Zaretskii <eliz@gnu.org>
9252
9253 * w32.c (w32_system_process_attributes): If the process does not
9254 exist, return nil.
9255
9256 * w32.c: Include thelp32.h, psapi.h and coding.h.
9257 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
9258 declarations.
9259 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
9260 (Process32Next_Proc): New typedefs.
9261 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
9262 (g_b_init_process32_next, g_b_init_open_thread_token)
9263 (g_b_init_impersonate_self, g_b_init_revert_to_self)
9264 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
9265 (g_b_init_get_process_working_set_size)
9266 (g_b_init_global_memory_status_ex): New static variables.
9267 (globals_of_w32): Initialize them.
9268 (create_toolhelp32_snapshot, process32_first, process32_next)
9269 (open_thread_token, impersonate_self, revert_to_self)
9270 (get_process_memory_info, get_process_working_set_size)
9271 (global_memory_status, global_memory_status_ex): New wrapper
9272 functions.
9273 (w32_list_system_processes, w32_system_process_attributes)
9274 (enable_privilege, restore_privilege, ltime, process_times):
9275 New functions.
9276 (convert_time_raw): New function.
9277 (convert_time): Remove conversion of FILETIME into time in 100
9278 nsec units, call convert_time_raw instead.
9279
9280 * process.h (w32_list_system_processes, w32_system_process_attributes):
9281 Add prototypes.
9282 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
9283 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
9284 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
9285 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
9286
9287 * process.c (Fsystem_process_attributes): Doc fix.
9288
92892008-08-08 Chong Yidong <cyd@stupidchicken.com>
9290
9291 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
9292 a continued multi-char glyph; if so, advance to the actual glyph.
9293
92942008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
9295
9296 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
9297
9298 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
9299 (.m.o): Use it.
9300 * config.in: Regenerate.
9301
93022008-08-07 Chong Yidong <cyd@stupidchicken.com>
9303
9304 * xdisp.c (redisplay_window): Revert last change.
9305 (try_window): Check bottom scroll margin too.
9306
93072008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9308
9309 * config.in: Regenerate.
9310
9311 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
9312 -list-load-path-shadows'.
9313 (nsgui.h): Reduce number of things depending on it.
9314
93152008-08-06 Chong Yidong <cyd@stupidchicken.com>
9316
9317 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
9318 instead of window-end which does the wrong thing at eob.
9319 (try_cursor_movement): Minor optimization.
9320 (redisplay_window): If scroll margin is defined, don't assume
9321 window doesn't need scrolling.
9322
93232008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9324
9325 * config.in: Regenerate.
9326
9327 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
9328 (mostlyclean): Don't delete *.d under NS.
9329
9330 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
9331
93322008-08-06 Kenichi Handa <handa@m17n.org>
9333
9334 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
9335
93362008-08-06 Andreas Schwab <schwab@suse.de>
9337
9338 * config.in: Regenerate.
9339
93402008-08-05 Chong Yidong <cyd@stupidchicken.com>
9341
9342 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
9343 forcing a window start.
9344
9345 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
9346 (auto_save_1): Update modtime when auto-save-list-file-name is on.
9347
93482008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9349
9350 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
9351 argument.
9352
93532008-08-05 Juanma Barranquero <lekktu@gmail.com>
9354
9355 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
9356 <scroll-down-aggressively, before-change-functions>:
9357 <after-change-functions>: Reflow docstrings.
9358
93592008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4e2af782 9360 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
9361
9362 Dock menu customization, based on a patch by Ken Raeburn, plus some
9363 other fixes.
9364 * nsmenu.m (dockMenu): New variable.
9365 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
9366
9367 * nsterm.h (dockMenu): Declare.
9368
9369 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
9370 (ns_term_init): Initialize dockMenu.
9371 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
9372 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
9373 left.
9374
9375 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
9376
93772008-08-04 Chong Yidong <cyd@stupidchicken.com>
9378
9379 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
9380
9381 * config.in: Regenerate.
9382
93832008-08-04 Seiji Zenitani <zenitani@mac.com>
9384
9385 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
9386
93872008-08-04 Chong Yidong <cyd@stupidchicken.com>
9388
9389 * nsterm.h (find_and_call_menu_selection): Fix prototype.
9390
93912008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9392
9393 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
9394
9395 * keyboard.h: Comment an #endif.
9396
9397 * lisp.h (have_menus_p): Adjust comment.
9398
9399 * menu.c (find_and_return_menu_selection): Fix comparison with
9400 client_data.
9401
9402 * nsmenu.m (popup_activated_flag): New variable.
9403 (popup_activated): New function.
9404 (menu-or-popup-active-p): New exported lisp definition.
9405 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
9406 when popup done.
9407 (ns_popup_dialog): Set popup_activated_flag.
9408
9409 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
9410 version for GNUstep (handled by conditional typedef in nsterm.m).
9411 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
9412 in rgb.txt).
9413
9414 * process.c (init_process): Use DARWIN_OS, not DARWIN.
9415
9416 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
9417
9418 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
9419
9420 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
9421 shortcircuit if popup_activated like GTK and X toolkit.
9422
9423 * m/inter386.h: Change DARWIN to DARWIN_OS.
9424
9425 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
9426 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
9427 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
9428 comment on NO_SOCK_SIGIO.
9429
94302008-08-03 Chong Yidong <cyd@stupidchicken.com>
9431
9432 * nsterm.m (windowDidResize): Remove stopModal call.
9433
94342008-08-03 Andreas Schwab <schwab@suse.de>
9435
9436 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
9437 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
9438
94392008-08-02 Chong Yidong <cyd@stupidchicken.com>
9440
9441 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
9442 Don't use uninitialized pointer variable when using getrlimit.
9443
94442008-08-02 Jason Rumney <jasonr@gnu.org>
9445
9446 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
9447
94482008-08-02 Eli Zaretskii <eliz@gnu.org>
9449
9450 * alloc.c (NSTATICS): Bump to 0x640.
9451
9452 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
9453
9454 * lisp.h: Add prototype for directory_files_internal.
9455
9456 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
9457 New functions.
9458 (syms_of_process): Defsubr them. Add initializations for various
9459 Q* symbols used in procfs_system_process_attributes.
9460 (procfs_list_system_processes, procfs_system_process_attributes)
9461 [HAVE_PROCFS]: New functions.
9462 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
9463 (procfs_get_total_memory): New functions.
9464
94652008-08-01 Juanma Barranquero <lekktu@gmail.com>
9466
9467 * xfaces.c (Fx_load_color_file): Fix previous change;
9468 it is #ifdef WINDOWSNT, not WINDOWS_NT.
9469
94702008-08-01 Michael Albinus <michael.albinus@gmx.de>
9471
9472 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
9473
94742008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9475
9476 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
9477
94782008-08-01 Chong Yidong <cyd@stupidchicken.com>
9479
9480 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
9481
9482 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
9483 define NSApplicationDelegateReplySuccess.
9484 (EmacsView -converstationIdentifier): Use long instead of
9485 NSInteger for GNUstep, since it doesn't have NSInteger.
9486
9487 * xmenu.c: Revert last change.
9488
9489 * keyboard.h: Fix last change.
9490
94912008-08-01 Juanma Barranquero <lekktu@gmail.com>
9492
9493 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
9494 on Windows.
9495
94962008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9497
9498 Warning clearing and clean-up in NS port.
9499 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
9500 Add prototypes.
9501 * nsgui.h (FACE_DEFAULT): Remove, unused.
9502 (XGCValues): Change colors to unsigned long.
9503 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
9504 nsterm.m.
9505 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
9506 (ns_list_fonts): Remove, unused.
9507 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
9508 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
9509 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
9510 (nsfont_draw): Compare face colors to 0, not nil.
9511 * nsmenu.m (struct widget_value): Drop unneeded declaration.
9512 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
9513 (-addSubmenuWithTitle:): Use NSMenuItem class.
9514 (ns_popup_menu): Use NO, not NULL, for enabled setting.
9515 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
9516 (ns_clip_to_row): Make gc arg a BOOL.
9517 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
9518 ns_clip_to_row() call.
9519 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
9520 used). Cast FRAME_FONT assignments.
9521 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
9522 (ns_string_to_lispmod): Change arg to const char.
9523 (ns_term_init): Use NSMenuItem class.
9524 (EmacsApp -openFile:): Move to different section of file.
9525 (EmacsApp -application:openFiles:): Don't return a value, call
9526 -replyToOpenOrPrint:.
9527 (EmacsView -keyDown:): Fix up cast.
9528 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
9529 (EmacsView -menuDown:): Cast tag in call to
9530 find_and_call_menu_selection().
9531 (ns_list_fonts): Remove, unused.
9532 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
9533 (ns_fontname_to_xlfd): Make static.
9534 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
9535 Remove prototypes (now in keyboard.h).
9536 (next_menubar_widget_id): Remove, unused.
9537 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
9538 Remove prototypes (now in keyboard.h).
9539 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
9540
95412008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
9542
9543 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
9544 (floatfns.o): Depend on syssignal.h.
9545 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
9546
9547 * systty.h: Fix previous change that removed BSD_TERMIOS.
9548 Add comments to #ifdefs.
9549
95502008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9551
9552 * w32fns.c (w32-load-color-file): Remove.
9553 (x-open-connection): Use renamed Fx_load_color_file.
9554 * xfaces.c (x-load-color-file): Add.
9555 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
9556 Emacs.clr.
9557 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
9558
95592008-07-31 Michael Albinus <michael.albinus@gmx.de>
9560
9561 * dbusbind.c (Fdbus_call_method_asynchronously)
9562 (Fdbus_method_error_internal): New defuns.
9563 (xd_read_message): Handle also reply messages.
9564 (Vdbus_registered_functions_table): Extend docstring.
9565
95662008-07-31 Juanma Barranquero <lekktu@gmail.com>
9567
9568 * keyboard.c (gobble_input): Fix previous change.
9569
95702008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
9571
9572 * bitmaps/README:
9573 * xfns.c:
9574 * termcap.c:
9575 * term.c:
9576 * syswait.h:
9577 * systty.h:
9578 * systime.h:
9579 * syssignal.h:
9580 * sysdep.c:
9581 * process.h:
9582 * process.c:
9583 * print.c:
9584 * ndir.h:
9585 * lread.c:
9586 * keyboard.c:
9587 * getpagesize.h:
9588 * floatfns.c:
9589 * fileio.c:
9590 * emacs.c:
9591 * doc.c:
9592 * dispnew.c:
9593 * dired.c:
9594 * data.c:
9595 * callproc.c:
9596 * buffer.c:
9597 * README:
9598 * Makefile.in:
9599 * s/template.h:
9600 * s/msdos.h:
9601 * m/vax.h: Remove VMS support.
9602 * s/vms.h:
9603 * vlimit.h:
9604 * uaf.h:
9605 * temacs.opt:
9606 * param.h:
9607 * ioctl.h: Remove file.
9608
96092008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
9610
9611 * s/ms-w32.h (MULTI_KBOARD): Remove.
9612 * xterm.c:
9613 * xselect.c:
9614 * xfns.c:
9615 * window.c:
9616 * w32term.c:
9617 * w32fns.c:
9618 * terminal.c:
9619 * termhooks.h:
9620 * term.c:
9621 * sysdep.c:
9622 * keyboard.h:
9623 * keyboard.c:
9624 * frame.h:
9625 * frame.c:
9626 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
9627 * config.in: Regenerate.
9628
96292008-07-30 Jason Rumney <jasonr@gnu.org>
9630
9631 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
9632
9633 * w32font.c (w32font_encode_char): Leave as unicode if in range.
9634 (w32font_open_internal): Get unicode version of textmetrics.
9635 Don't enable or disable glyph indices here.
9636 (w32font_open): Disable use of glyph indices.
9637
9638 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
9639
96402008-07-30 Chong Yidong <cyd@stupidchicken.com>
9641
9642 * minibuf.c (Vread_buffer_function): Doc fix.
9643
96442008-07-30 John Paul Wallington <jpw@pobox.com>
9645
9646 * minibuf.c (read_buffer_completion_ignore_case): New var.
9647 (Fread_buffer): Use it.
9648
96492008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
9650
9651 * systty.h (sensemode): Remove empty #if. Remove reference to
9652 BSD_TERMIOS, unused.
9653
9654 * sysdep.c: Remove reference to DGUX.
9655 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
9656
9657 * config.in: Regenerate.
9658
96592008-07-30 Jason Rumney <jasonr@gnu.org>
9660
9661 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
9662
96632008-07-29 Jason Rumney <jasonr@gnu.org>
9664
9665 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
9666 is populated.
9667 (uniscribe_encode_char): Always use uniscribe.
9668 Avoid using context if cache is populated.
9669
96702008-07-29 Jan Djärv <jan.h.d@swipnet.se>
9671
9672 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
9673 open menu.
9674
9675 * gtkutil.c (menu_nav_ended): Remove.
9676 (create_menus): Remove signal connect for menu_nav_ended.
9677
96782008-07-28 Chong Yidong <cyd@stupidchicken.com>
9679
9680 * xdisp.c (redisplay_window): Check return value of
9681 compute_window_start_on_continuation_line before forcing a window
9682 start.
9683
96842008-07-28 Jason Rumney <jasonr@gnu.org>
9685
9686 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
9687
9688 * w32term.c (w32_enable_unicode_output, cleartype_active):
9689 Remove obsolete display options.
9690 (x_draw_glyph_string_background): Don't use old cleartype_active
9691 workaround.
9692 (w32_initialize): Remove cleartype_active initialization.
9693 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
9694
96952008-07-28 Andreas Schwab <schwab@suse.de>
9696
9697 * lisp.h (init_weak_hash_tables, syms_of_font)
9698 (xd_read_queued_messages, syms_of_dbusbind): Declare.
9699 (remove_hash_entry): Don't declare.
9700 * eval.c (maybe_call_debugger): Make static and move before use.
9701 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
9702 * xdisp.c: Include "gtkutil.h" if USE_GTK.
9703 * xterm.h (x_set_frame_alpha): Declare.
9704
97052008-07-28 Jan Djärv <jan.h.d@swipnet.se>
9706
9707 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
9708 (create_menus): Connect selection-done to menu_nav_ended.
9709
97102008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
9711
9712 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
9713 Set Vx_resource_name to a fallback. Replace read of 'buffered'
9714 parameter with read of 'alpha' one.
9715 (Qns_frame_parameter): Remove.
5582fbc7 9716 * nsselect.m (selection-coding-system)
aac0c6e3
MR
9717 (next-selection-coding-system, Vselection_coding_system)
9718 (Vnext_selection_coding_system): Drop.
9719
97202008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
9721
9722 * nsfns.m (do-applescript, do_applescript): Rename to
9723 ns-do-applescript, ns_do_applescript, and move within file.
9724
97252008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
9726
9727 Remove support for Mac Carbon.
9728 * mactoolbox.c:
9729 * macterm.h:
9730 * macterm.c:
9731 * macselect.c:
9732 * macmenu.c:
9733 * macgui.h:
9734 * macfns.c:
9735 * mac.c: Remove file.
9736 * s/darwin.h:
9737 * m/intel386.h:
9738 * xfaces.c:
9739 * xdisp.c:
9740 * window.c:
9741 * tparam.c:
9742 * termhooks.h:
9743 * termcap.c:
9744 * term.c:
9745 * syssignal.h:
9746 * sysselect.h:
9747 * sysdep.c:
9748 * process.c:
9749 * lread.c:
9750 * lisp.h:
9751 * keyboard.c:
9752 * image.c:
9753 * fringe.c:
9754 * frame.h:
9755 * frame.c:
9756 * fontset.c:
9757 * font.h:
9758 * font.c:
9759 * fns.c:
9760 * fileio.c:
9761 * emacs.c:
9762 * dispnew.c:
9763 * dispextern.h:
9764 * config.in:
9765 * atimer.c:
2ae37cf0 9766 * Makefile.in: Remove code for Carbon.
aac0c6e3 9767
f0131492 97682008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
9769
9770 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
9771
97722008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9773
9774 * macterm.h (kCGBitmapByteOrder32Host): New define for
9775 non-universal SDKs.
9776
9777 * image.c (mac_create_cg_image_from_image, image_load_image_io)
9778 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
9779
9780 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
9781 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
9782
97832008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
9784
9785 * w32inevt.c: Include dispextern.h.
9786
97872008-07-26 Andreas Schwab <schwab@suse.de>
9788
9789 * print.c (print_object): Fix off-by-one in last change.
9790
97912008-07-25 Juanma Barranquero <lekktu@gmail.com>
9792
9793 * term.c (syms_of_term): Don't initialize default_orig_pair,
9794 default_set_foreground and default_set_background on Windows.
9795
97962008-07-25 Jason Rumney <jasonr@gnu.org>
9797
9798 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
9799 ScriptItemize. Clean up return value checking. Remove unused
9800 variables.
9801 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
9802 shaping engine.
9803
9804 * w32font.c (w32font_has_char): Handle the case where we can't
9805 determine the script for a character.
9806
98072008-07-25 Chong Yidong <cyd@stupidchicken.com>
9808
9809 * term.c (syms_of_term): Initialize default_orig_pair,
9810 default_set_foreground, and default_set_background.
9811
9812 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
9813 clash (bug#86).
9814 (getloadavg): Callers changed.
9815
9816 * image.c (svg_load_image): Fix last change.
9817 (svg_load_image): Use rsvg_handle_get_dimensions to check that
9818 image size is valid. Use g_object_unref instead of deprecated
9819 rsvg_handle_free to free rsvg handle.
9820 (x_from_xcolors): Don't initialize pixmap (silence compiler).
9821
98222008-07-25 Jason Rumney <jasonr@gnu.org>
9823
9824 * w32font.c (w32font_encode_char): Encode characters outside BMP as
9825 surrogates before looking up glyph index.
9826 (w32font_text_extents): Encode as surrogates if falling back to
9827 functions that need UTF-16 wide chars.
9828
9829 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
9830 BMP as surrogates before looking up glyph index.
9831
98322008-07-25 Chong Yidong <cyd@stupidchicken.com>
9833
9834 * image.c (svg_load_image): Check for failure in return value of
9835 rsvg_handle_get_pixbuf. Free rsvg handle when done.
9836
98372008-07-25 Jason Rumney <jasonr@gnu.org>
9838
9839 * w32font.c (Fx_select_font): Reverse sense of second arg.
9840
98412008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
9842
9843 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
9844 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
9845
9846 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
9847 (PURESIZE): Use it.
9848
98492008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
9850
9851 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
9852 * m/alpha.h (TEXT_END):
9853 * m/ibmrs6000.h (TEXT_END):
9854 * m/macppc.h (TEXT_END):
9855 * s/darwin.h (TEXT_END):
9856 * s/msdos.h (TEXT_END): Remove, unused.
9857 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
9858 * s/cygwin.h: Remove comment.
9859
9860 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
9861 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
9862 * m/intel386.h (DOT_GLOBAL_START):
9863 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
9864 (USG): Remove, file not used on USG platforms.
9865
9866 * Makefile.in (HAVE_X11): Remove empty #else.
9867
98682008-07-24 Andreas Schwab <schwab@suse.de>
9869
9870 * fileio.c (Finsert_file_contents): Properly adjust undo list
9871 after format conversion.
9872
98732008-07-24 Jan Djärv <jan.h.d@swipnet.se>
9874
9875 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
9876 (menu_nav_ended): Remove.
9877 (create_menus): Remove signal connect for menu_nav_ended.
9878 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
9879 create_menus.
9880 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
9881
98822008-07-23 Jason Rumney <jasonr@gnu.org>
9883
9884 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
9885 with opened font.
9886 (w32font_open): Set font type to gdi.
9887
9888 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
9889
98902008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
9891
9892 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
9893 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
9894 defines it.
9895 * unexec.c (ADDR_CORRECT): Define unconditionally.
9896
9897 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
9898
9899 * unexec.c: Remove code depending on !COFF and USG, the file is
9900 not used for such systems.
9901
9902 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
9903 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
9904 (LD_SWITCH_SYSTEM_1): Remove, update users.
9905
9906 * s/darwin.h (DATA_END):
9907 * m/intel386.h (DATA_END):
9908 * m/ibmrs6000.h (DATA_END):
9909 * m/alpha.h (DATA_END): Remove, unused.
9910
9911 * config.in: Regenerate.
9912 * s/ms-w32.h (subprocesses): Define unconditionally.
9913 * s/template.h (subprocesses): Update comment.
9914 * s/vms.h (subprocesses):
9915 * s/usg5-4.h (subprocesses):
9916 * s/hpux10-20.h (subprocesses):
9917 * s/gnu-linux.h (subprocesses):
9918 * s/cygwin.h (subprocesses):
9919 * s/bsd-common.h (subprocesses):
9920 * s/aix4-2.h (subprocesses):
9921 * s/darwin.h (subprocesses): Do not define, defined by default now.
9922
9923 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
9924 Remove all references.
9925 (temacs): Add GNUstep specific ld flags.
9926
9927 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
9928 similarly to what X does.
9929
99302008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9931
9932 * nsfns.m (x-list-fonts): Remove.
9933 (syms_of_nsfns): Drop the x-list-fonts declaration.
9934 * nsterm.m: Get rid of remaining "//" comments.
9935
99362008-07-22 Chong Yidong <cyd@stupidchicken.com>
9937
9938 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
9939
9940 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
9941 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
9942 (Fns_own_selection_internal, Fx_disown_selection_internal)
9943 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
9944
9945 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
9946 ... */' style of docstrings. Doc fixes.
9947
99482008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
9949
9950 * terminfo.c (UP, BC, PC): Undo previous change.
9951
9952 * nsfns.m: Rename ns prefixed functions/variables to the
9953 corresponding x versions. Update references.
9954
99552008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
9956
9957 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
9958
99592008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
9960
9961 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
9962 Remove forwarding functions.
9963 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
9964 non-static.
9965 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
9966 non-static.
9967 (ns_frame_parm_handlers): Use the new names.
9968 (syms_of_nsfns): Move to the end of file.
9969
9970 * nsterm.m (syms_of_nsterm): Move to the end of file.
9971
9972 * dispnew.c (init_display): Remove code for X10.
9973
99742008-07-22 Jason Rumney <jasonr@gnu.org>
9975
9976 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
9977 bare drive.
9978
99792008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9980
9981 * nsterm.m (syms_of_nsterm): Remove debugging println.
9982
99832008-07-22 David Reitter <david.reitter@gmail.com>
9984
9985 * nsfns.m (do_applescript, F_do_applescript): NS version of the
9986 Carbon implementation of the same functionality: execute arbitrary
9987 AppleScript code.
9988
99892008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9990
9991 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
9992 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
9993 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
9994 (Fx_display_mm_height, Fx_display_mm_width)
9995 (Fx_display_backing_store, Fx_display_visual_class)
9996 (Fx_display_save_under, Fx_open_connection)
9997 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
9998 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
9999 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
10000 (Fx_display_pixel_width, Fx_display_pixel_height)
10001 (Fx_display_usable_bounds, Fx_display_planes)
10002 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
10003 ... */' style of docstrings.
10004
100052008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
10006
10007 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
10008 on this platform.
10009 (mips):
10010 * m/iris4d.h (mips): Do not define.
10011 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
10012
10013 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
10014
10015 * image.c:
10016 * nsfns.m:
10017 * nsselect.m:
10018 * nsterm.h:
10019 * nsterm.m: Rename ns prefixed functions/variables to the
10020 corresponding x versions. Update references.
10021
10022 * m/ibms390x.h (NO_REMAP): Do not undefine.
10023
10024 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
10025
100262008-07-21 Chong Yidong <cyd@stupidchicken.com>
10027
10028 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
10029 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
10030 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
10031 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
10032 (Fns_display_mm_height, Fns_display_mm_width)
10033 (Fns_display_backing_store, Fns_display_visual_class)
10034 (Fns_display_save_under, Fns_open_connection)
10035 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
10036 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
10037 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
10038 (Fns_display_pixel_width, Fns_display_pixel_height)
10039 (Fns_display_usable_bounds, Fx_display_planes)
10040 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
10041
100422008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
10043
10044 * print.c (print_object): Check print_depth before searching for
10045 circularities.
10046
100472008-07-21 Michael Albinus <michael.albinus@gmx.de>
10048
10049 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
10050 only sprintf.
10051
100522008-07-21 Kenichi Handa <handa@m17n.org>
10053
10054 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
10055
100562008-07-20 Andreas Schwab <schwab@suse.de>
10057
10058 * syntax.c (find_start_pos, find_start_value)
10059 (find_start_value_byte, find_start_begv, find_defun_start)
10060 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
10061
100622008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
10063
10064 * s/sol2-3.h: Insert contents of s/sol2.h.
10065 (LD_SWITCH_SYSTEM): Remove redundant definition.
10066 * s/sol2.h: Remove, unused.
10067
100682008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10069
10070 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
10071
100722008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10073
10074 * Makefile.in (ns_appdir): Fix typo in find command.
10075
100762008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
10077
10078 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
10079
10080 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
10081 added not supported anymore.
10082
10083 * s/usg5-4-2.h (LIBS_SYSTEM):
10084 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
10085
10086 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
10087 * s/lynxos.h (GETPGRP_NO_ARG):
10088 * s/hpux10-20.h (NO_SIOCTL_H):
10089 * s/gnu.h (GETPGRP_NO_ARG):
10090 * s/gnu-linux.h (NO_SIOCTL_H):
10091 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
10092 * s/cygwin.h (GETPGRP_NO_ARG):
10093 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
10094 (C_DEBUG_SWITCH): Remove duplicate definition.
10095
10096 * m/ibms390.h: Remove boilerplate comments.
10097
10098 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
10099
10100 * process.c (HAVE_SERIAL): Consolidate ifdefs.
10101 (wait_reading_process_output): Remove code for SunOS, platform not
10102 supported anymore. Use SOLARIS2 instead of sun.
10103
101042008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10105
10106 * font.c (font_open_by_name): Under NS, default lface height to zero.
10107 (font_open_for_lface): Under NS, set size based on frame fontsize.
10108 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
10109 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
10110
101112008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10112
10113 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
10114 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
10115 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
10116 YES/NO.
10117 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
10118 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
10119 * Makefile.in (clean): Clear out build destination dir.
10120
101212008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10122
10123 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
10124 xterm, xselect.
10125 * lisp.h: Remove declaration of hash_remove.
10126 * nsgui.h: Remove redefinitions of hash_remove.
10127 * fns.c (hash_remove): Rename to hash_remove_from_table.
10128
101292008-07-19 Seiji Zenitani <zenitani@mac.com>
10130
10131 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
10132 strdup() the family UTF8String before modifying it.
10133
101342008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10135
10136 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
10137 NS_FACE_BACKGROUND with 0 instead of nil.
10138 * nsfont.m (nsfont_draw): Same.
10139
101402008-07-19 Chong Yidong <cyd@stupidchicken.com>
10141
10142 * nsfns.m (ns_set_background_color): Fix crash.
10143
101442008-07-18 Chong Yidong <cyd@stupidchicken.com>
10145
10146 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
10147
101482008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
10149
10150 * puresize.h (BASE_PURESIZE): Increase to 1240000.
10151
101522008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10153
10154 * gtkutil.c: Include <config.h> instead of "config.h".
10155
10156 * lisp.h (Foverlay_buffer): Add EXFUN.
10157
10158 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
10159 child process to complete child_setup. Undo 2005-09-21 change.
10160
10161 * s/darwin.h: Mention setsid after vfork.
10162
101632008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10164
10165 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
10166 Depend on macgui.h.
10167
10168 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
10169 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
10170
10171 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
10172 and f19.
10173 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
10174
10175 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
10176 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
10177 Remove enumerators.
10178
10179 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
10180 Check if FACE_FROM_ID returns NULL.
10181
101822008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
10183
10184 * w32inevt.c (change_frame_size): Remove extern declaration.
10185 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
10186 change_frame_size.
10187
101882008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
10189
10190 * getloadavg.c: Revert last change (2008-07-15).
10191
101922008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
10193
10194 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 10195 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
10196 from configure.
10197
101982008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
10199
10200 * s/sol2.h:
10201 * s/sol2-4.h: Reorganize conditionals.
10202
10203 * ecrt0.c: Remove code depending on m68000, not used anymore.
10204
10205 * fns.c (hash_remove): Make static.
10206 * lisp.h (hash_remove): Don't prototype.
10207
10208 * m/ibmrs6000.h:
10209 * m/ibms390x.h:
10210 * m/macppc.h: Remove boilerplate comments.
10211
10212 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
10213 Solaris, which does not need them.
10214
10215 * m/vax.h: Remove comments about unsupported systems.
10216
10217 * s/darwin.h: Reorganize ifdefs.
10218
102192008-07-17 Andreas Schwab <schwab@suse.de>
10220
10221 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
10222
102232008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
10224
10225 Use SDATA. Follow coding convention of placing operators at
10226 beginning of next line rather than end of previous line, and placing
10227 spaces around infix operators.
10228
10229 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
10230 in case it was defined already.
10231 USE @GNUSTEP_MAKEFILES@ rather than envvars.
10232 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
10233 ns_default.
10234 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
10235 Lisp_Objects.
10236 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
10237 (ns_defined_color, ns_color_to_lisp): Declare.
10238 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
10239 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
10240 it's accepted even with USE_LISP_UNION_TYPE.
10241 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
10242 (update_frame_tool_bar): Remove apparently obsolete tests for
10243 non-integerness of f->tool_bar_lines.
10244 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
10245 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
10246 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
10247 (nsfont_open): Don't confuse NULL for Qnil.
10248 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
10249 * menu.h (find_and_call_menu_selection):
10250 * menu.c (find_and_call_menu_selection): Use just int for vector size.
10251 (find_and_return_menu_selection): Always return something.
10252 * frame.h: Include dispextern.h for Display_Info.
10253 (display_x_get_resource): Declare.
10254
102552008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
10256
10257 * syntax.c: Remove stdio.h include accidentally introduced in
10258 Emacs.app commit.
10259 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
10260 NS_IMPL_COCOA.
10261 * keyboard.c (handle_async_input, input_available_signal): Remove
10262 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
10263
102642008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
10265
10266 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
10267 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
10268 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
10269 Use SDATA.
10270
10271 * keymap.c: Remove all NS-specific code.
10272 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
10273 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
10274 where_is_preferred_modifier, return a different value depending on how
10275 preferred is the binding.
10276 (where_is_internal): Adjust accordingly.
10277 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
10278 Adjust to new preferred_sequence_p.
10279 (syms_of_keymap): Declare `where-is-preferred-modifier'.
10280 * keyboard.c (parse_solitary_modifier): Not static any more.
10281 * keyboard.h (parse_solitary_modifier): Declare.
10282
102832008-07-16 Andreas Schwab <schwab@suse.de>
10284
10285 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
10286 of easymenu.
10287
102882008-07-16 Chong Yidong <cyd@stupidchicken.com>
10289
10290 * xdisp.c (move_it_in_display_line): Account for word wrap, so
10291 that we don't move off the line.
10292
102932008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
10294
10295 * keyboard.c (Qsuper): Remove.
10296 (parse_menu_item): Don't call where_is_internal specially for NS.
10297
102982008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
10299
10300 * s/gnu-linux.h: Remove boilerplate comments.
10301
10302 * m/alpha.h (__ELF__): Consolidate conditions.
10303
10304 * m/m68k.h (linux): Use GNU_LINUX instead.
10305 Remove boilerplate comments.
10306
10307 * m/intel386.h: Undo refactoring from previous change.
10308 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
10309 too, remove dead code.
10310 (linux): Use GNU_LINUX instead.
10311
103122008-07-16 Jason Rumney <jasonr@gnu.org>
10313
10314 * w32gui.h: Repeat 26 June changes lost by last change.
10315
103162008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
10317
10318 * systty.h: Remove code for Aix on 386, unsupported platform.
10319
10320 * s/ms-w32.h: Remove boilerplate comments.
10321 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
10322
10323 * s/gnu-linux.h (TERM): Remove support.
10324 (HAVE_SYSVIPC): Remove, unused.
10325 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
10326 for this system.
10327
10328 * process.c: Remove support for IRIS, unused.
10329 Remove support for TERM, not relevant anymore.
10330
10331 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
10332 used with the definition.
10333
10334 * s/aix4-2.h (static): Do not undef.
10335
10336 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
10337 only used on Aix.
10338 (HAVE_SYSVIPC): Remove, unused.
10339
10340 * m/hp800.h (CANNOT_DUMP): Do not undef.
10341
10342 * m/alpha.h: Fix comment.
10343
10344 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
10345 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
10346 used by this configuration.
10347 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
10348 * unexec.c: Remove code depending on HPUX and
10349 USG_SHARED_LIBRARIES, not used with this file. Remove code
10350 depending on IRIS, unused. Remove if 0-ed code.
10351
10352 * s/template.h: Remove comments about static.
10353
10354 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
10355 Remove if 0-ed code.
10356 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
10357 were the same as the default.
10358 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
10359 Remove boilerplate comments.
10360 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
10361 (HAVE_SYSVIPC): Remove, unused.
10362 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
10363
10364 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10365 Remove boilerplate comments.
10366 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10367 Remove boilerplate comments.
10368 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10369 Remove boilerplate comments.
10370 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
10371
10372 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
10373 USG systems which do not use DATA_SEG_BITS.
10374 Refactor code. Remove boilerplate comments.
10375
10376 * m/ibms390.h:
10377 * m/m68k.h:
10378 * s/bsd-common.h:
10379 * s/cygwin.h:
10380 * s/darwin.h:
10381 * s/freebsd.h:
10382 * s/gnu.h:
10383 * s/msdos.h: Remove boilerplate comments.
10384
10385 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 10386 do not use this file.
aac0c6e3
MR
10387 (IRIS_4D): Remove, unused.
10388
10389 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 10390 do not use this file.
aac0c6e3
MR
10391 (SIGN_EXTEND_CHAR):
10392 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
10393 * unexmips.c: Remove file, unused.
10394
10395 * editfns.c (Fuser_full_name): Replace the only use of
10396 USER_FULL_NAME with its value.
10397 * config.in: Regenerate.
10398
103992008-07-16 David Reitter <david.reitter@gmail.com>
10400
10401 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
10402 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
10403
104042008-07-16 Glenn Morris <rgm@gnu.org>
10405
10406 * emacs.c (system-type): Doc fix.
10407
104082008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
10409
10410 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
10411 If the cache doesn't work, let's fix it, rather than work around it.
10412
104132008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10414
10415 * Makefile.in: Correct additions for nsfont.o in last commit.
10416 * nsfont.m: New file (forgot last commit).
10417
104182008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
10419
10420 * callproc.c (set_initial_environment): Initialize
10421 Vprocess_environment under CANNOT_DUMP (fixes crash when
10422 batch-compiling for bootstrap).
10423
104242008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
4e2af782 10425 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
10426
10427 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
10428 fix crash due to different init order.
10429
104302008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10431
10432 Changes and additions for NeXTstep windowing system (Cocoa and
10433 GNUstep) support.
10434
10435 * Makefile.in:
10436 * config.in: Support defines and build commands for NS port.
10437 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
10438 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
10439 * dispextern.h: Include nsgui.h and add needed typedefs under NS
10440 windowing.
10441 (struct face): Add synth_ital field.
10442 * dispnew.c: Include nsterm.h when compiling under NS windowing.
10443 (init_display): Initialize Vinitial_window_system to "ns" when so
10444 compiled.
10445 * emacs.c: Include GSConfig.h when compiling under GNUstep.
10446 (display_arg): Use under NS.
10447 (main): Under NS, allocate autorelease pool and handle command line
10448 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
10449 (standard_args): Add NS-specific args.
10450 (shut_down_emacs): Shut down NS terminal if compiled under NS.
10451 * font.c (DEFAULT_ENCODING): New variable.
10452 (font_find_for_lface): Use it.
10453 (syms_of_font): Load syms_of_nsfont under NS.
10454 * font.h: Declare nsfont_driver when compiled under NS.
10455 * fontset.c: When compiling under NS, include nsterm.h.
10456 (fontset_from_font): Autoconstruct fontset under NS.
10457 * frame.c (various): Under NS, include nsterm.h, add Qns window system
10458 symbol, document and use it.
10459 (do_switch_frame): When for_deletion under Cocoa, add
10460 Fraise_frame(Qnil).
10461 (x_set_frame_parameters): Ensure font attribute changes are picked up.
10462 (x_get_arg): Allow "yes" and "no" as boolean values.
10463 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
10464 Qright under Cocoa.
10465 (focus-follows-mouse): Default to 0 under NS.
10466 * frame.h (enum output_method): Add output_ns.
10467 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
10468 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
10469 (FRAME_WINDOW_P): NS-specific definition.
10470 * fringe.c (max_used_fringe_bitmap): Make public.
10471 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
10472 (getloadavg): Use NeXT code under descendant OS's.
10473 * image.c (includes and header section, x_create_bitmap_from_data)
10474 (x_create_bitmap_from_file, free_bitmap_record, image_background)
10475 (image_background_transparent, x_clear_image_1)
10476 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
10477 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
10478 (x_to_xcolors, x_from_xcolors, x_disable_image)
10479 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
10480 other GUIs, including XPM support using code originally written for
10481 Carbon GUI.
10482 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
10483 using NS API.
10484 (image_ascent): Use font metrics macros instead of direct struct field
10485 access.
10486 * keyboard.c (includes): Add nsterm.h when compiling under NS.
10487 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
10488 Also, handle NS as GTK for menu bar purposes.
10489 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
10490 toolkit where they differ.
10491 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
10492 use cachelist, still needed under NS.
10493 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
10494 (struct widget_value): Define it here for menu.c.
10495 * keymap.c (includes): Include modifier internals.
10496 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
10497 NS.
10498 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
10499 support for preferring sequences using certain modifiers, specified by
10500 the FIRSTONLY argument.
10501 * lisp.h (hash_remove): Rename to avoid name clash when compiling
10502 under NS GNUstep implementation.
10503 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
10504 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
10505 * menu.c: Include nsterm.h under NS.
10506 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
10507 (free_menubar_widget_tree_value, update_submenu_strings)
10508 (find_and_call_menu_selection): Treat NS as X and NT.
10509 (find_and_return_menu_selection): New function, used for popup menus.
10510 * nsgui.h:
10511 * nsterm.h:
10512 * nsfns.m:
10513 * nsimage.m:
10514 * nsmenu.m:
10515 * nsselect.m:
10516 * nsterm.m: New files.
10517 * process.c (wait_reading_process_output): Under NS, call ns_select()
10518 instead of plain select().
10519 * syntax.c (char_quoted): Under NS, avoid a crash when called near
10520 beginning of buffer.
10521 * sysselect.h (init_process): Rename when compiling under Cocoa to
10522 avoid name conflict.
10523 * termhooks.h (display_info): Add ns_display_info to union.
10524 * terminal.c (Fterminal_live_p): Add ns to terminal types.
10525 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
10526 COCOA environment.
10527 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
10528 unexec() signature. (Note, this will dump, but the resulting file
10529 crashes; unexosx is used instead; keeping around for reference and
10530 possible aid in getting dump working under GNUstep.)
10531 * w32gui.h (button_type, widget_value): Remove definitions (now in
10532 keyboard.h).
10533 * window.c: Include nsterm.h when compiling under NS.
10534 * xdisp.c (includes): Include nsterm.h when compiling under NS.
10535 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
10536 other GUI windowing systems.
10537 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
10538 GTK.
10539 (x_consider_frame_title): Under NS, set icon type and frame
10540 modified-state indicator; use ns_set_name_as_filename() when using
10541 formatted title.
10542 (update_window_cursor): Make public when compiling under NS.
10543 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
10544 (hourglass_atimer, Vhourglass_delay
10545 * xfaces.c (header section, init_frame_faces, clear_font_table)
10546 (defined_color, unload_color, x_face_list_fonts)
10547 (prepare_face_for_display): Add NS support parallel to other GUIs.
10548 Emulate GCs like other non-X GUIs.
10549 (split_font_name): Don't lowercase font name under NS.
10550 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
10551 under NS.
10552 * s/darwin.h: Add support for compilation under NS.
10553
105542008-07-15 Jason Rumney <jasonr@gnu.org>
10555
10556 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
10557 (w32_show_hourglass): Rename from show_hourglass.
10558 (w32_hide_hourglass): Rename from hide_hourglass.
10559 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
10560 (Vhourglass_delay): Declare extern.
10561 (hourglass_started): Remove.
10562
10563 * xdisp.c (Vhourglass_delay): Remove static.
10564 (hourglass_started, start_hourglass, cancel_hourglass):
10565 Don't include these versions on WINDOWSNT.
10566
105672008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10568
10569 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
10570 variables (formerly in xfns.c).
10571 (show_hourglass, hide_hourglass): New prototypes (same).
10572 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
10573 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
10574 in xfns.c).
10575 (syms_of_xdisp): Declare/initialize display-hourglass,
10576 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
10577 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
10578 formerly in xfns.c.
10579 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
10580 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
10581 (start_hourglass, cancel_hourglass): Remove.
10582 (show_hourglass, hide_hourglass): Remove prototypes and static
10583 modifiers.
10584 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
10585 hourglass_atimer, hourglass_shown_p declaration/initialization.
10586 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
10587 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
10588 (start_hourglass, cancel_hourglass): Remove.
10589 (show_hourglass, hide_hourglass): Remove prototypes and static
10590 modifiers.
10591 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
10592 hourglass_atimer, hourglass_shown_p declaration/initialization.
10593 * w32fns.c (display_hourglass_p, Vhourglass_delay)
10594 (DEFAULT_HOURGLASS_DELAY): Remove.
10595 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
10596 hourglass_shown_p declaration/initialization.
10597
105982008-07-14 Jason Rumney <jasonr@gnu.org>
10599
10600 * w32fns.c (w32_get_arg): Remove wrapper function.
10601 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
10602 directly.
10603 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
10604
106052008-07-14 Kenichi Handa <handa@m17n.org>
10606
10607 * xfont.c (xfont_open): Add workaround for X's bug.
10608
106092008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
10610
10611 * fontset.c: Include <stdio.h> unconditionally.
10612
106132008-07-13 Michael Albinus <michael.albinus@gmx.de>
10614
10615 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
10616 for filtering.
10617
106182008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
10619
10620 * s/vms.h: Use __GNUC__ instead of _GNUC_.
10621
10622 * m/macppc.h:
10623 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
10624
10625 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
10626 (SPECIAL_EMACS_INT):
10627 * m/ia64.h (SPECIAL_EMACS_INT):
10628 * m/amdx86-64.h (SPECIAL_EMACS_INT):
10629 * s/gnu.h (NLIST_STRUCT):
10630 * s/aix4-2.h (X11R5_INHIBIT_I18N):
10631 * s/gnu-linux.h (LINUX):
10632 * s/msdos.h (HAVE_FACES):
10633 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
10634
10635 * systty.h:
10636 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
10637 anymore.
10638
106392008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
10640
10641 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
10642 always defined as int.
10643
10644 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
10645 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
10646 * s/gnu-linux.h (HAVE_WAIT_HEADER):
10647 * s/freebsd.h (HAVE_WAIT_HEADER):
10648 * s/bsd-common.h (HAVE_UNION_WAIT):
10649 * s/aix4-2.h (HAVE_WAIT_HEADER):
10650 * m/mips.h (HAVE_UNION_WAIT):
10651 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
10652 (COFF, static): Do not define, they are undefined later in the file.
10653
10654 * process.c (update_status): Don't use a union.
10655 (status_convert):
10656 (sigchld_handler): Use int instead of WAITTYPE.
10657
106582008-07-12 Chong Yidong <cyd@stupidchicken.com>
10659
10660 * indent.c (Fvertical_motion): Restore hscroll before moving to
10661 goal column.
10662
106632008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
10664
10665 * lisp.h: Remove left over code.
10666
106672008-07-11 Andreas Schwab <schwab@suse.de>
10668
10669 * lisp.h: Fix logic in last change.
10670
10671 * menu.h: New file.
10672 * menu.c: Include it.
10673 * xmenu.c: Likewise.
10674 * Makefile.in: Update dependencies.
10675
106762008-07-11 Kenichi Handa <handa@m17n.org>
10677
10678 * fontset.c (fontset_from_font): Cancel the previous change.
10679
106802008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
10681
10682 * lisp.h:
10683 * w32heap.c:
10684 * emacs.c:
10685 * alloc.c: Replace all references of NO_UNION_TYPE with
10686 USE_LISP_UNION_TYPE.
10687
10688 * m/xtensa.h (NO_UNION_TYPE):
10689 * m/vax.h (NO_UNION_TYPE):
10690 * m/template.h (NO_UNION_TYPE):
10691 * m/sparc.h (NO_UNION_TYPE):
10692 * m/mips.h (NO_UNION_TYPE):
10693 * m/macppc.h (NO_UNION_TYPE):
10694 * m/m68k.h (NO_UNION_TYPE):
10695 * m/iris4d.h (NO_UNION_TYPE):
10696 * m/intel386.h (NO_UNION_TYPE):
10697 * m/ibms390x.h (NO_UNION_TYPE):
10698 * m/ibms390.h (NO_UNION_TYPE):
10699 * m/ibmrs6000.h (NO_UNION_TYPE):
10700 * m/ia64.h (NO_UNION_TYPE):
10701 * m/hp800.h (NO_UNION_TYPE):
10702 * m/arm.h (NO_UNION_TYPE):
10703 * m/amdx86-64.h (NO_UNION_TYPE):
10704 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
10705 defining it the same.
10706
107072008-07-10 Chong Yidong <cyd@stupidchicken.com>
10708
10709 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
10710
107112008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
10712
10713 * fileio.c:
50426a04 10714 * sysdep.c:
aac0c6e3
MR
10715 * systty.h:
10716 * m/ibmrs6000.h:
10717 * m/iris4d.h:
10718 * s/aix4-2.h:
10719 * s/freebsd.h:
10720 * s/gnu-linux.h:
10721 * s/hpux10-20.h:
10722 * s/hpux11.h:
10723 * s/netbsd.h:
10724 * s/sol2-3.h:
10725 * s/sol2-4.h:
10726 * s/sol2.h:
10727 * s/usg5-4.h:
10728 * s/vms.h: Remove references to unused variables.
10729
107302008-07-10 Andreas Schwab <schwab@suse.de>
10731
10732 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
10733 pattern before matching the generic family.
10734
107352008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
10736
10737 * unexec.c:
10738 * s/vms.h:
10739 * s/usg5-4-2.h:
10740 * s/sol2-5.h:
10741 * s/freebsd.h:
10742 * s/darwin.h: Remove dead code.
10743
10744 * m/template.h:
10745 * m/sparc.h:
10746 * m/mips.h:
10747 * m/m68k.h:
10748 * m/iris4d.h:
10749 * m/intel386.h:
10750 * m/ibms390x.h:
10751 * m/ibms390.h:
10752 * m/ia64.h:
10753 * m/hp800.h:
10754 * m/arm.h:
10755 * m/amdx86-64.h: Remove dead code and references to unused
10756 and compiler defined symbols.
10757
10758 * unexmips.c:
10759 * unexelf.c: Remove references to desupported systems.
10760
10761 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
10762
10763 * m/powermac.h: Remove boilerplate comments.
10764 (NO_REMAP): Remove unused definition.
10765
10766 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
10767 define them.
10768
107692008-07-10 Kenichi Handa <handa@m17n.org>
10770
10771 * xfont.c (xfont_open): Log the reason of failure.
10772
107732008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
10774
10775 * fontset.c (fontset_get_font_group):
10776 * font.c (font_check_otf): Specify argument types.
10777
107782008-07-09 Kenichi Handa <handa@m17n.org>
10779
10780 * coding.c (detect_coding_utf_8): Set detect_info->found only when
10781 non-ASCII char is found.
10782
10783 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
10784 (reorder_font_vector): Change the arg preferred_family to font.
10785 Prefer the spec matching with font.
10786 (fontset_get_font_group): New function.
10787 (fontset_find_font): Change the format of an element of a realized
10788 fontset. Use fontset_get_font_group.
10789 (fontset_font): Try the current fontset, the default fontset, the
10790 fallbacks of the current fontset, and the fallbacks of the default
10791 fontset in this order.
10792 (face_for_char): Delete the shortcut to use the current font.
10793 (fontset_from_font): Don't set fonts for Latin in the fontset.
10794
10795 * font.h (font_make_object, font_match_p): Adjust prototypes.
10796
10797 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
10798
10799 * font.c (font_make_object): New arg entity and pixelsize.
10800 (font_check_otf_features, font_check_otf): New functions.
10801 (font_match_p): Check :lang, :script, and :otf properties.
10802
10803 * xfont.c (xfont_open): Adjust it for the change of
10804 font_make_object.
10805 (xfont_text_extents): Fix initial setting of metrics.
10806
10807 * ftfont.c (struct ftfont_info): New member index, delete member
10808 fc_charset_idx. Make the member order compatible with struct
10809 xftfont_info.
10810 (fc_charset_table): Change charset names to registry names.
10811 (ftfont_pattern_entity): Delete the args registry and
10812 fc_charset_idx. Change the value of :font-entity property
10813 to (FONTNAME . INDEX). Always set :registry property to
10814 `iso10646-1'.
10815 (struct ftfont_cache_data): New struct.
10816 (ftfont_lookup_cache): New arg for_face.
10817 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
10818 (ftfont_driver): Set the member otf_capability.
10819 (ftfont_get_charset): Adjust it for the change of
10820 fc_charset_table.
10821 (OTF_TAG_SYM): New macro.
10822 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
10823 for the change of fc_charset_table.
10824 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
10825 ftfont_pattern_entity. Add FC_INDEX to objset.
10826 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
10827 and ftfont_pattern_entity.
10828 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
10829 font_make_object, struct ftfont_info.
10830 (ftfont_has_char): Use ftfont_get_fc_charset.
10831 (ftfont_otf_features, ftfont_otf_capability): New functions.
10832 (ftfont_shape): Use ftfont_get_otf.
10833 (ftfont_text_extents): Fix initial setting of metrics.
10834
10835 * xftfont.c (struct xftfont_info): New member ft_size. Make the
10836 member order compatible with struct ftfont_info.
10837 (xftfont_open): Add FC_CHARSET to the pattern. Set
10838 xftfont_info->ft_size. Don't unlock the face. Check BDF
10839 properties if appropriate.
10840 (xftfont_close): Unlock the face.
10841 (xftfont_anchor_point, xftfont_shape): Deleted.
10842 (syms_of_xftfont): Don't set members anchor_point and shape of
10843 xftfont_driver.
10844
10845 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
10846 font_make_object.
10847
10848 * w32font.c (w32font_open): Adjust it for the change of
10849 font_make_object.
10850 (w32font_open_internal): Don't set properties of font_object here.
10851
108522008-07-08 Chong Yidong <cyd@stupidchicken.com>
10853
10854 * macfns.c (x_create_tip_frame):
10855 * w32fns.c (x_create_tip_frame):
10856 * xfns.c (x_create_tip_frame): Pass parameter argument to
10857 face-set-after-frame-default.
10858
10859 * xfaces.c (Finternal_merge_in_global_face): Save merged
10860 attributes for the default face back into the face vector.
10861
108622008-07-08 Andreas Schwab <schwab@suse.de>
10863
10864 * fontset.h: Declare fontset_from_font. Don't declare
10865 new_fontset_from_font and fontset_from_font_name.
10866 * xterm.c: Include "fontset.h".
10867 * Makefile.in (xterm.o): Update dependencies.
10868
108692008-07-08 Glenn Morris <rgm@gnu.org>
10870
10871 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
10872 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
10873
108742008-07-07 Chong Yidong <cyd@stupidchicken.com>
10875
10876 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
10877 (x_set_frame_parameters): Don't bind it.
10878
108792008-07-07 Juanma Barranquero <lekktu@gmail.com>
10880
10881 * w32fns.c (map_w32_filename): Declare extern.
10882
108832008-07-07 Jason Rumney <jasonr@gnu.org>
10884
10885 * w32term.c (WS_EX_LAYERED): Define if not already.
10886
108872008-07-06 Chong Yidong <cyd@stupidchicken.com>
10888
10889 * xfaces.c (set_font_frame_param): Don't try to set the font
10890 parameter if it is still unspecified in the lface.
10891
108922008-07-05 Chong Yidong <cyd@stupidchicken.com>
10893
10894 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
10895 face if it didn't already exist.
10896
10897 * xdisp.c (try_window_id): Give up if word-wrapping is on.
10898
108992008-07-05 Andreas Schwab <schwab@suse.de>
10900
10901 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
10902
109032008-07-05 Chong Yidong <cyd@stupidchicken.com>
10904
10905 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
10906 word-wrapping.
10907 (IT_DISPLAYING_WHITESPACE): New macro.
10908 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
10909 when word-wrapping. Simplify word-wrapping logic. Use correct
10910 pixel positions when saving copies of the iterator.
10911 (display_line): Use proper wrap point if the last character on a
10912 line was preceded by whitespace.
10913
109142008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
10915
10916 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
10917
109182008-07-04 Kenichi Handa <handa@m17n.org>
10919
10920 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
10921
10922 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
10923
109242008-07-02 Jason Rumney <jasonr@gnu.org>
10925
10926 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 10927 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
10928
10929 * xdisp.c (next_element_from_display_vector): Move assignment out
10930 of if statement.
10931
109322008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
10933
10934 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
10935
10936 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
10937 (syms_of_fileio): Initialize and export them.
10938 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
10939
10940 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
10941 (Fsystem_move_file_to_trash): New function.
10942 (syms_of_w32fns): Export it to lisp.
10943
109442008-07-01 Jason Rumney <jasonr@gnu.org>
10945
10946 * w32font.c (w32font_text_extents): Don't count overhang as part
10947 of width.
10948
109492008-06-30 Miles Bader <miles@gnu.org>
10950
10951 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
10952 Add `avoid_cursor_p' field.
10953
10954 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
10955 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
10956 (append_glyph, append_composite_glyph, produce_image_glyph)
10957 (append_stretch_glyph): Initialize avoid_cursor_p.
10958 (get_it_property): Rename from `get_line_height_property'.
10959 (x_produce_glyphs): Use get_it_property.
10960 (handle_line_prefix, push_display_prop): New functions.
10961 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
10962 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
10963 New variables.
10964 (syms_of_xdisp): Initialize them.
10965
109662008-06-30 Kenichi Handa <handa@m17n.org>
10967
10968 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
10969 XftDefaultSubstitute (they are called in XftFontMatch).
10970 (xftfont_open): Fix args to ftfont_font_format.
10971
10972 * ftfont.c (fc_charset_table): New member lang.
10973 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 10974 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
10975 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
10976 (ftfont_open): Fix args to ftfont_font_format.
10977 (ftfont_font_format): New arg filename.
10978
109792008-06-30 Chong Yidong <cyd@stupidchicken.com>
10980
10981 * xfaces.c (Finternal_merge_in_global_face): If default face was
10982 modified, realize it again. Update the font face attribute.
10983
109842008-06-29 Jason Rumney <jasonr@gnu.org>
10985
10986 * w32term.c (x_set_frame_alpha): Fix logic.
10987
109882008-06-29 Kenichi Handa <handa@m17n.org>
10989
10990 * fontset.c (Finternal_char_font): Return font-object instead of
10991 font-name.
10992
10993 * composite.c (get_composition_id): Fix the width calculation for TAB.
10994
109952008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
10996
10997 * indent.c (Fvertical_motion): Properly handle float column arg.
10998
109992008-06-28 Jason Rumney <jasonr@gnu.org>
11000
11001 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
11002 (pfnSetLayeredWindowAttributes): New function pointer.
11003 (w32_initialize): Initialize it when supported.
11004 (x_set_frame_alpha): New function.
11005
11006 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
11007 (w32_frame_parm_handlers): Set alpha handler.
11008
11009 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
11010
110112008-06-27 Jason Rumney <jasonr@gnu.org>
11012
11013 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
11014 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
11015 (w32_to_x_charset, x_to_w32_charset)
11016 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
11017 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
11018 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
11019 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
11020 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
11021 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
11022 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
11023 (Qw32_charset_unicode): Remove.
11024 (syms_of_w32fns): Update for above changes.
11025
11026 * w32font.c (w32_to_x_charset, x_to_w32_charset)
11027 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
11028 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
11029 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
11030 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
11031 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
11032 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
11033 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
11034 (syms_of_w32font): Update for above changes.
11035
110362008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
11037
11038 * s/usg5-4.h: Fix previous change: keep the correct branch of a
11039 removed #if.
11040 (USG_SHARED_LIBRARIES): Remove duplicate definition.
11041
110422008-06-26 Juanma Barranquero <lekktu@gmail.com>
4e2af782 11043 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
11044
11045 * makefile.w32-in (LOCAL_FLAGS):
11046 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
11047
11048 * sysdep.c (_spawnlp, _getpid):
11049 Declare with explicit _cdecl instead of _CRTAPI1.
11050
11051 * editfns.c (Fget_internal_run_time):
11052 Check for WINDOWSNT with #ifdef, not #if.
11053
110542008-06-26 Jason Rumney <jasonr@gnu.org>
11055
11056 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
11057
11058 * w32term.c (x_draw_glyph_string_foreground)
11059 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
11060 Use FONT_HANDLE macro.
11061 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
11062
11063 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
11064 (uniscribe_encode_char): Use FONT_HANDLE macro.
11065
11066 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
11067 (w32font_text_extents): Use precast w32_font.
11068 (w32font_close): Free cached metrics.
11069 (w32font_open_internal): Allocate space for name on stack.
11070
110712008-06-26 Chong Yidong <cyd@stupidchicken.com>
11072
11073 * xdisp.c (extend_face_to_end_of_line): Fix last change.
11074
110752008-06-26 Jason Rumney <jasonr@gnu.org>
11076
11077 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
11078 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
11079
110802008-06-26 Juanma Barranquero <lekktu@gmail.com>
11081
11082 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
11083
110842008-06-26 Jason Rumney <jasonr@gnu.org>
11085
11086 * w32bdf.c, w32bdf.h: Remove obsolete files.
11087
11088 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
11089
11090 * w32gui.h: Don't include w32bdf.h.
11091 (XCharStruct, enum w32_char_font_type, W32FontStruct):
11092 Remove obsolete font support.
11093
11094 * w32font.h (struct w32font_info): Remove compat_w32_font.
11095 Add hfont member.
11096 (FONT_COMPAT): Remove obsolete macro.
11097
11098 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
11099 (w32font_encode_char, w32font_text_extents): Use new hfont member.
11100 (w32font_open_internal): Remove compat code. Set new hfont member.
11101 (Fx_select_font): Use new hfont member.
11102
11103 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
11104 (uniscribe_encode_char): Use new hfont member.
11105
11106 * w32term.c (x_draw_glyph_string_foreground)
11107 (x_draw_composite_glyph_string_foreground): Use new hfont member.
11108 (x_draw_glyph_string): Use metrics in w32font_info.
11109
111102008-06-26 Kenichi Handa <handa@m17n.org>
11111
11112 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
11113
111142008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
11115
11116 * unexnext.c:
11117 * m/ews4800.h:
11118 * m/hp9000s300.h:
11119 * m/ibm370aix.h:
11120 * m/mips-siemens.h:
11121 * m/ncr386.h:
11122 * m/next.h:
11123 * m/pmax.h:
11124 * m/powerpcle.h:
11125 * m/tandem-s2.h:
11126 * s/386bsd.h:
11127 * s/bsd386.h:
11128 * s/bsd4-1.h:
11129 * s/bsd4-2.h:
11130 * s/bsdos2-1.h:
11131 * s/bsdos2.h:
11132 * s/bsdos3.h:
11133 * s/bsdos4.h:
11134 * s/nextstep.h:
11135 * s/ultrix4-3.h:
11136 * s/usg5-0.h:
11137 * s/usg5-2-2.h:
11138 * s/usg5-2.h:
11139 * s/usg5-4-3.h:
11140 * s/ux4800.h:
11141 * s/uxpds.h:
11142 * s/uxpv.h: Remove support for obsolete systems.
11143 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 11144 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
11145 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
11146 Remove, insert contents in s/aix4-2.h.
11147 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
11148 * s/bsd4-3.h: Rename to ...
11149 * s/bsd-common.h: ... this.
11150 * data.c:
11151 * doc.c:
11152 * ecrt0.c:
11153 * emacs.c:
11154 * fileio.c:
11155 * floatfns.c:
11156 * keyboard.c:
11157 * mem-limits.h:
11158 * print.c:
11159 * process.c:
11160 * sysdep.c:
11161 * syssignal.h:
11162 * systty.h:
11163 * syswait.h:
11164 * term.c:
11165 * unexec.c:
11166 * unexelf.c:
11167 * unexhp9k800.c:
11168 * m/hp800.h:
11169 * m/ibmrs6000.h:
11170 * m/mips.h:
11171 * m/vax.h:
11172 * s/darwin.h:
11173 * s/freebsd.h:
11174 * s/gnu.h:
11175 * s/ms-w32.h:
11176 * s/msdos.h:
11177 * s/netbsd.h:
11178 * s/template.h: Remove references to obsolete variables.
11179
11180 * Makefile.in: Add dependencies for all unexec files.
11181 (admindir): Remove unused variable.
11182 (UNEXEC_SRC): Remove references.
11183
111842008-06-25 Chong Yidong <cyd@stupidchicken.com>
11185
11186 * xfns.c (x_default_font_parameter): If Xft is available, first
11187 try Monospace-12 for the default font.
11188
111892008-06-25 Jason Rumney <jasonr@gnu.org>
11190
11191 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
11192
111932008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
11194
11195 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
11196
11197 * buffer.c (syms_of_buffer): Remove default-word-wrap.
11198
111992008-06-25 Juanma Barranquero <lekktu@gmail.com>
11200
11201 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
11202 <scroll-conservatively>: Fix typo in docstring.
11203
11204 * xselect.c (Fx_send_client_event): Doc fix.
11205
112062008-06-25 Kenichi Handa <handa@m17n.org>
11207
11208 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
11209
11210 * font.c (font_parse_fcname): Remove unused variables.
11211 (font_sort_entites): Delete the arg SPEC. Caller changed.
11212 Fix for the case of ! best_only.
11213 (font_delete_unmatched): Check DPI and AVGWIDTH too.
11214
11215 * lisp.h (Fstring_to_unibyte): EXFUN it.
11216
11217 * character.h (str_to_unibyte): Extern it.
11218
11219 * character.c (str_to_unibyte): New function.
11220
11221 * fns.c (Fstring_to_unibyte): New function.
11222 (syms_of_fns): Defsubr it.
11223
112242008-06-24 Kenichi Handa <handa@m17n.org>
11225
11226 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
11227 DPI too.
11228 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
11229
112302008-06-24 Andreas Schwab <schwab@suse.de>
11231
11232 * Makefile.in (${lispsource}loaddefs.el): Rename from
11233 ../lisp/loaddefs.el.
11234 (bootstrap-clean): Do what distclean does but don't remove
11235 Makefile.
11236 (distclean): Depend on bootstrap-clean and remove Makefile.
11237
112382008-06-24 Chong Yidong <cyd@stupidchicken.com>
11239
11240 * buffer.h (struct buffer): New member word_wrap.
11241
11242 * buffer.c (syms_of_buffer): New variables default-word-wrap and
11243 word-wrap.
11244 (init_buffer_once): Initialize them.
11245
11246 * dispextern.h (struct it): Replace bool truncate_lines_p with a
11247 line_wrap enum possessing three possible values.
11248
11249 * termopts.h: Replace truncate_partial_width_windows with
11250 Vtruncate_partial_width_windows.
11251
11252 * dispnew.c (direct_output_for_insert): Avoid direct output when
11253 inserting a space with word wrap on.
11254
11255 * indent.c (compute_motion): Obey integer values of
11256 truncate-partial-width-windows.
11257
11258 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
11259 replacing truncate_partial_width_windows.
11260 (init_iterator): If Vtruncate_partial_width_windows is an integer,
11261 truncate only if the window width is below that integer.
11262 (start_display, resize_mini_window, produce_stretch_glyph)
11263 (display_string, move_it_in_display_line_to): Use line_wrap.
11264 (back_to_previous_visible_line_start, reseat_1): Reset
11265 string_from_display_prop_p.
11266 (display_line): Extend default face to end of line when wrapping.
11267
112682008-06-24 Kim F. Storm <storm@cua.dk>
11269
11270 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
11271 to wrap continued lines at word boundaries.
11272
112732008-06-24 Jason Rumney <jasonr@gnu.org>
11274
11275 * font.c (Ffont_face_attributes): Multiply pixel size before point
11276 conversion to avoid multiplying rounding error.
11277
112782008-06-23 Jason Rumney <jasonr@gnu.org>
11279
11280 * w32term.c (x_draw_glyph_string_background)
11281 (x_draw_glyph_string): Remove old bdf font code.
11282
11283 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
11284
112852008-06-22 Kenichi Handa <handa@m17n.org>
11286
11287 * font.c (font_find_for_lface): Try the adstyle specified in
11288 the property of LFACE_FONT of LFACE (if any).
11289
112902008-06-21 Seiji Zenitani <zenitani@mac.com>
4e2af782 11291 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
11292
11293 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
11294
112952008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
11296
11297 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
11298 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
11299 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
11300 (witness-emacs): Remove.
11301 (lisp, shortlisp): Move loaddefs.el earlier.
11302 (mostlyclean): Forget about witness-emacs.
11303
113042008-06-22 Glenn Morris <rgm@gnu.org>
11305
11306 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
11307 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
11308
113092008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
11310
11311 * Makefile.in (PRECOMP): Remove.
11312 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
11313 (witness-emacs): Run `compile-first'.
11314 (.el.elc): Use the new compile-onefile target.
11315
113162008-06-21 Kenichi Handa <handa@m17n.org>
11317
11318 * xftfont.c (xftfont_open): Handle QCembolden only when
11319 FC_EMBOLDEN is defined.
11320
113212008-06-21 Andreas Schwab <schwab@suse.de>
11322
11323 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
11324 (.el.elc): Likewise.
11325
113262008-06-21 Miles Bader <miles@gnu.org>
11327
11328 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
11329 build dir, not the lisp source dir.
11330
113312008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
11332
11333 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
11334 (bootstrapclean): Remove.
11335 (.el.elc): New rule.
11336 (PRECOMP): New var.
11337 (../lisp/subdirs.el): Remove.
11338 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
11339 (witness-emacs): New target.
11340 (mostlyclean): Remove witness-emacs as well.
11341 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
11342 Add witness-emacs dependency.
11343
113442008-06-20 Chong Yidong <cyd@stupidchicken.com>
11345
11346 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
11347 defined by the font.
11348
113492008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11350
11351 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
11352 (bootstrap-clean): New target that keeps TAGS around.
11353 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
11354 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
11355
113562008-06-20 Jason Rumney <jasonr@gnu.org>
11357
11358 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
11359 Remove obsolete font code.
11360
11361 * w32font.c (font_matches_spec): Use csb bitfield from font signature
11362 to determine language support.
11363
113642008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11365
11366 * sysdep.c (cfsetspeed): New fun extracted from the code.
11367 (cfmakeraw): Move before first use.
11368
113692008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
11370
11371 * sysdep.c (cfmakeraw): Provide fallback implementation.
11372 (serial_configure): Provide fallback implementation of cfsetspeed.
11373
113742008-06-20 Kenichi Handa <handa@m17n.org>
11375
11376 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
11377 the pattern.
11378
11379 * fontset.c (fontset_from_font): Copy font_spec before changing
11380 the elements.
11381
11382 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
11383
113842008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11385
11386 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
11387 for explicit `font' parameters.
11388
11389 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
11390
113912008-06-19 Kenichi Handa <handa@m17n.org>
11392
11393 * frame.c: Include <ctype.h>.
11394 (x_set_font_backend): Allow spacing characters in the X resource
11395 for FontBackend.
11396
113972008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
11398
11399 * w32fns.c, xfns.c (Qfont_param): New var.
11400 (syms_of_w32fns): Initialize it.
11401 (x_default_font_parameter): Record explicit `font' into
11402 `font-parameter'.
11403
114042008-06-18 Kenichi Handa <handa@m17n.org>
11405
11406 * font.c (font_parse_xlfd): Fix previous change.
11407 (font_parse_fcname): Don't use :fc-unknown-spec.
11408 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
11409 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
11410 (font_add_log): Prepend the driver name to the resulting fonts.
11411
11412 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
11413 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
11414 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
11415
11416 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
11417 (QCembolden): New variables.
11418 (syms_of_xftfont): DEFSYM them.
11419 (xftfont_open): Call XftFontMatch. Don't trust the result of
11420 XftTextExtents8 if the pixel_size is less than 5.
11421
114222008-06-18 Andreas Schwab <schwab@suse.de>
11423
11424 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
11425 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
11426
114272008-06-18 Jason Rumney <jasonr@gnu.org>
11428
11429 * w32font.c (w32font_list, w32font_match): Add logging.
11430
11431 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
11432
114332008-06-17 Chong Yidong <cyd@stupidchicken.com>
11434
11435 * font.c (font_parse_fcname): Store divider characters for
11436 unknown-spec list. For known key symbols, intern using correct
11437 symbol name.
11438
114392008-06-17 Kenichi Handa <handa@m17n.org>
11440
11441 * xfaces.c (realize_default_face): If the frame is not on window
11442 system, set the fontset of face to nil.
11443
114442008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
11445
11446 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
11447
114482008-06-16 Juanma Barranquero <lekktu@gmail.com>
11449
11450 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
11451 (build_font_name_from_vector): Delete externs.
11452
11453 * xfaces.c (struct font_name): Don't declare.
11454
114552008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
11456
11457 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
11458
114592008-06-16 Chong Yidong <cyd@stupidchicken.com>
11460
11461 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
11462
114632008-06-16 Juanma Barranquero <lekktu@gmail.com>
11464
11465 * font.c (Ffont_spec): Fix usage in docstring.
11466 (Ffont_face_attributes): Doc fix.
11467
114682008-06-16 Andreas Schwab <schwab@suse.de>
11469
11470 * font.c (Ffont_face_attributes): Fix definition.
11471
114722008-06-16 Jason Rumney <jasonr@gnu.org>
11473
11474 * font.h (font_style_symbolic_from_value): Remove.
11475
11476 * font.c (font_style_symbolic_from_value): Remove.
11477 (font_style_symbolic): Revert to pre 2008-06-13 version.
11478
11479 * w32font.c (w32_to_fc_weight): New function.
11480 (w32font_full_name, logfont_to_fcname): Use it.
11481
114822008-06-16 Kenichi Handa <handa@m17n.org>
11483
11484 * font.c (font_check_object): Delete it.
11485 (font_clear_cache): Check if a font-object is alive.
11486 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
11487 font-object to nil.
11488 (font_close_object): Don't check FONT_CLOSE_OBJECT.
11489 (font_at): Don't call font_check_object.
11490 (Ffont_get): Return a symbol for :weight, :slant, and :width.
11491
114922008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
11493
11494 * puresize.h (BASE_PURESIZE): Increase to 1230000.
11495
114962008-06-16 Chong Yidong <cyd@stupidchicken.com>
11497
11498 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
11499
115002008-06-15 Chong Yidong <cyd@stupidchicken.com>
11501
11502 * font.c (font_parse_fcname): Only one decimal point.
11503 (font_unparse_fcname): Handle data in family and foundry indices
11504 as symbols, not strings.
11505 (font_unparse_gtkname, Ffont_face_attributes): New functions.
11506
11507 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
11508
11509 * font.h (font_unparse_gtkname): Add prototype.
11510
115112008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
11512
11513 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
11514
115152008-06-15 Andreas Schwab <schwab@suse.de>
11516
11517 * font.c (font_update_drivers): Fix crash when no drivers match.
11518
115192008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
11520
11521 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
11522 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
11523
115242008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
11525
11526 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
11527
115282008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
11529
11530 * process.c (Fserial_process_configure, Fprocess_send_eof):
11531 Use EQ to compare Lisp_Objects.
11532
115332008-06-13 Jason Rumney <jasonr@gnu.org>
11534
11535 * w32fns.c (Fw32_select_font): Remove old font API function.
11536
11537 * w32font.c (logfont_to_fcname): New function.
11538 (Fx_select_font): New font dialog function compatible with
11539 GTK/fontconfig version.
11540
11541 * font.c (font_style_symbolic_from_value): New function.
11542 (font_style_symbolic): Use it.
11543
11544 * font.h (font_style_symbolic_from_value): Declare new function.
11545
115462008-06-13 Juanma Barranquero <lekktu@gmail.com>
11547
11548 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
11549 <font-width-table>: Fix typos in docstrings.
11550
115512008-06-13 Daniel Engeler <engeler@gmail.com>
11552
11553 These changes add serial port access.
11554 * process.c: Add HAVE_SERIAL.
11555 (Fdelete_process, Fprocess_status, Fset_process_buffer)
11556 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
11557 (list_processes_1, select_wrapper, Fstop_process)
11558 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
11559 (status_notify): Modify to handle serial processes.
11560 [HAVE_SERIAL] (Fserial_process_configure)
11561 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
11562 New functions.
11563 * process.h (struct Lisp_Process): Add `type'.
11564 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
11565 New functions.
11566 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
11567 serial ports.
b71ac3dd 11568 (serial_open, serial_configure): New functions.
aac0c6e3
MR
11569 * w32.h: Add FILE_SERIAL.
11570 (struct _child_process): Add ovl_read, ovl_write.
11571
115722008-06-13 Kenichi Handa <handa@m17n.org>
11573
11574 * dispextern.h (enum lface_attribute_index): New member
11575 LFACE_FOUNDRY_INDEX.
11576
11577 * font.c (font_score): Delete arg alternate_families. Check only
11578 weight, slant, width, and size. Ignore the difference of alias
11579 style symbols.
11580 (font_sort_entites): Adjust for the above change. Reflect the
11581 order of font-driver to scores.
11582 (font_list_entities): Don't check alternate_familes here.
11583 (font_clear_prop): Handle foundry.
11584 (font_update_lface): Don't parse "foundry-family" form here.
11585 Handle FONT_FOUNDRY_INDEX.
11586 (font_find_for_lface): Likewise. Handle alternate families here.
11587 If registry is nil, try iso8859-1 and ascii-0.
11588 (font_open_for_lface): Pay attention to size in ENTITY.
11589 (font_open_by_name): Simplify by calling font_load_for_lface.
11590 (free_font_driver_list): Delete it.
11591 (font_update_drivers): Preserve the order of backends.
11592 (syms_of_font): Setting of sort_shift_bits adjusted for the change
11593 of font_score and font_sort_entites.
11594 (font_update_sort_order): Likewise.
11595
11596 * xfaces.c (LFACE_FOUNDRY): New macro.
11597 (check_lface_attrs): Check foundry.
11598 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
11599 (merge_face_vectors): Check foundry.
11600 (merge_face_ref): Likewise.
11601 (Finternal_set_lisp_face_attribute): Likewise.
11602 (x_update_menu_appearance): Likewise.
11603 (Finternal_get_lisp_face_attribute): Likewise.
11604 (lface_hash): Likewise.
11605 (lface_same_font_attributes_p): Likewise.
11606 (x_supports_face_attributes_p): Likewise.
11607 (tty_supports_face_attributes_p): Likewise.
11608 (Finternal_set_alternative_font_family_alist): Intern strings.
11609 (Finternal_set_alternative_font_registry_alist): Downcase strings.
11610 (realize_default_face): Set LFACE_FOUNDRY (lface).
11611
11612 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
11613 font-driver at first.
11614
11615 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
11616
116172008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
11618
11619 * lread.c (Fload): Use xfree, not free on saved_doc_string.
11620
116212008-06-12 Jim Meyering <meyering@redhat.com>
11622
11623 Make unexec_free handle NULL the same way free does.
11624 * unexmacosx.c (unexec_free): Ignore a NULL argument.
11625
116262008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
11627
11628 * character.h (CHAR_TO_BYTE_SAFE): New macro.
11629 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
11630 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
11631 (WEAK_ALIAS): Simplify.
11632 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
11633 when searching a unibyte buffer.
11634
116352008-06-12 Chong Yidong <cyd@stupidchicken.com>
11636
11637 * xfns.c (Fx_select_font): Rename from x-font-dialog.
11638
116392008-06-12 Juanma Barranquero <lekktu@gmail.com>
11640
11641 * w32font.c: Include ctype.h.
11642
116432008-06-11 Jason Rumney <jasonr@gnu.org>
11644
11645 * w32font.c (w32font_encode_char): Detect missing glyphs that are
11646 misreported as space.
11647 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
11648 as aliases for registry iso10646-1.
11649
116502008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
11651
11652 * buffer.c (clone_per_buffer_values): Skip `name'.
11653
116542008-06-11 Chong Yidong <cyd@stupidchicken.com>
11655
11656 * font.c (font_parse_fcname): Fix last change; accept decimal
11657 points in font size.
11658
116592008-06-10 Jason Rumney <jasonr@gnu.org>
11660
11661 * w32uniscribe.c (add_opentype_font_name_to_list):
11662 Skip non unicode fonts.
11663
116642008-06-10 Chong Yidong <cyd@stupidchicken.com>
11665
11666 * xfns.c (Fx_font_dialog): New function.
11667
11668 * gtkutil.c (xg_dialog_response_cb): Rename from
11669 xg_file_response_callback.
11670 (pop_down_dialog): Rename from pop_down_file_dialog.
11671 (xg_get_file_name): Callers changed.
11672 (xg_get_font_name): New function.
11673
11674 * gtkutil.h (xg_get_font_name): Insert prototype.
11675
116762008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
11677
11678 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
11679 x_underline_minimum_display_offset.
11680 (syms_of_xdisp): Declare it here rather than in xterm.c.
11681 * dispextern.h (underline_minimum_offset): Declare it.
11682 * w32term.c (x_draw_glyph_string): Use it.
11683 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
11684 (syms_of_xterm): Don't declare it any more.
11685 (x_draw_glyph_string): Adjust to the new name.
11686
8719abec 116872008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
11688
11689 * xterm.c (x_underline_minimum_display_offset): New var.
11690 (x_draw_glyph_string): Use it.
11691 (syms_of_xterm): Declare it.
11692
116932008-06-10 Chong Yidong <cyd@stupidchicken.com>
11694
11695 * font.c (font_parse_fcname): Accept GTK-style font names too.
11696
116972008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
11698
11699 * dired.c (file_name_completion): Don't return t if the match is exact
11700 but with different capitalization.
11701 * minibuf.c (Ftry_completion): Simplify.
11702
11703 * window.c (Vwindow_point_insertion_type): New var.
11704 (set_window_buffer): Use it.
11705 (syms_of_window): Init and export it to Lisp.
11706
117072008-06-10 Kenichi Handa <handa@m17n.org>
11708
11709 * font.h (font_intern_prop): Prototype adjusted.
11710
11711 * font.c (font_intern_prop): New arg force_symbol.
11712 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
11713 Adjust for the change of font_intern_prop.
11714
11715 * ftfont.c (ftfont_pattern_entity):
11716 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
11717 (w32_registry):
11718 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
11719 the change of font_intern_prop.
11720
117212008-06-09 Juanma Barranquero <lekktu@gmail.com>
11722
11723 * w32menu.c (digest_single_submenu): Declare extern.
11724
117252008-06-09 Jason Rumney <jasonr@gnu.org>
11726
11727 * w32term.c (x_make_frame_visible): Use alternate restore flags.
11728
11729 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
11730 (parse_single_submenu): Remove.
11731 (digest_single_submenu): Remove.
11732 (syms_of_w32menu): Don't initialise variables that have moved
11733 to menu.c.
11734 (set_frame_menubar): Sync with version in xmenu.c.
11735 (w32_menu_show): Sync with xmenu_show in xmenu.c.
11736
11737 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
11738 Make static again.
11739
117402008-06-09 Jason Rumney <jasonr@gnu.org>
11741
11742 Changes to w32 files related to the move of common menu code
11743 to menu.c on 2008-06-08 by Chong Yidong.
11744
11745 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
11746 defs to w32gui.h.
11747 (single_keymap_panes, push_menu_item, push_menu_pane):
11748 Make globally visible.
11749
11750 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
11751 (local_free, malloc_widget_value, free_widget_value)
11752 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
11753 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
11754 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
11755 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
11756 (menu_items, menu_items_allocated, menu_items_used)
11757 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
11758 (init_menu_items, finish_menu_items, discard_menu_items)
11759 (grow_menu_items, push_submenu_start, push_submenu_end)
11760 (push_left_right_boundary, push_menu_pane, push_menu_item)
11761 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
11762 (free_menubar_widget_tree_value, parse_single_submenu)
11763 (update_submenu_strings): Remove functions.
11764 (xmalloc_widget_value): Remove and declare extern.
11765
11766 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
11767 (OBJ1): Build it.
11768
11769 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
11770 (local_heap, local_alloc, local_free, malloc_widget_value)
11771 (free_widget_value): Define here.
11772
117732008-06-09 Kenichi Handa <handa@m17n.org>
11774
11775 * font.h (Qascii_0): Extern it.
11776
11777 * font.c (Qascii_0): New variable.
11778 (syms_of_font): DEFSYM it.
11779 (font_open_by_name): If the registry "iso8859-1" fails, try also
11780 "ascii-0".
11781
11782 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
11783
117842008-06-08 Kenichi Handa <handa@m17n.org>
11785
11786 * .gdbinit (xfont): New command.
11787
117882008-06-08 Andreas Schwab <schwab@suse.de>
11789
11790 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
11791 * Makefile.in (menu.o): Update dependencies.
11792
11793 * Makefile.in (obj): Always add menu.o.
11794 * emacs.c (main): Always call syms_of_menu.
11795 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
11796
117972008-06-08 Chong Yidong <cyd@stupidchicken.com>
11798
11799 * Makefile.in: Compile menu.c.
11800
11801 * lisp.h: Declare syms_of_menu.
11802
11803 * emacs.c (main): Call syms_of_menu.
11804
11805 * keyboard.h: Relocate platform-independent menu definitions from
11806 xmenu.c.
11807
11808 * menu.c: New file. Relocate platform-independent menu
11809 definitions from xmenu.c. Suggested by Adrian Robert.
11810
11811 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 11812 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
11813 (menu_items_used, menu_items_n_panes)
11814 (menu_items_submenu_depth): Move to keyboard.h.
11815 (init_menu_items, finish_menu_items, unuse_menu_items)
11816 (discard_menu_items, restore_menu_items, save_menu_items)
11817 (grow_menu_items, push_submenu_start, push_submenu_end)
11818 (push_left_right_boundary, push_menu_pane, push_menu_item)
11819 (keymap_panes, single_keymap_panes, single_menu_item)
11820 (list_of_panes, list_of_items, find_and_call_menu_selection)
11821 (xmalloc_widget_value, free_menubar_widget_value_tree)
11822 (parse_single_submenu, digest_single_submenu)
11823 (update_submenu_strings): Move to menu.c.
11824
118252008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
11826
11827 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
11828
118292008-06-06 Miles Bader <miles@gnu.org>
11830
11831 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
11832 face, not frame default.
11833
118342008-06-05 Martin Rudalics <rudalics@gmx.at>
11835
11836 * window.c (pop_up_windows, pop_up_frames)
11837 (display_buffer_reuse_frames, Vpop_up_frame_function)
11838 (Vdisplay_buffer_function, Veven_window_heights)
11839 (Vspecial_display_buffer_names, Vspecial_display_regexps)
11840 (Vspecial_display_function, Vsame_window_buffer_names)
11841 (Vsame_window_regexps, split_height_threshold)
11842 (Vsplit_window_preferred_function): Move those vars to window.el.
11843 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
11844 (Fdisplay_buffer): Move those functions to window.el.
11845 (syms_of_window): Remove corresponding declarations.
11846 (display_buffer): New function.
11847 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
11848 * dispnew.c (Flast_nonminibuf_frame): New function.
11849 * buffer.c (Fpop_to_buffer): Move to window.el.
11850
118512008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
11852
11853 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
11854
118552008-06-05 Kenichi Handa <handa@m17n.org>
11856
11857 * coding.c (detect_coding): Fix previous change.
11858 (detect_coding_system): Likewise.
11859
118602008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
11861
11862 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
11863
11864 * keymap.c (Vminibuffer_local_filename_must_match_map):
11865 Rename from Vminibuffer_local_must_match_filename_map.
11866 (syms_of_keymap):
11867 * minibuf.c (Fcompleting_read): Adjust accordingly.
11868 * commands.h: Rename declaration as well.
11869
118702008-06-05 Kenichi Handa <handa@m17n.org>
11871
11872 * font.c (Ffont_spec): Don't use font_parse_family_registry for
11873 family name.
11874 (Ffont_put): Likewise.
11875
11876 * fontset.c (fontset_find_font): Call font_open_for_lface with the
11877 current font-spec.
11878
11879 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
11880 is unspecified.
11881
11882 * xfaces.c (realize_x_face): If the font-related face attributes
11883 are the same as those of default face, realize a new fontset from
11884 default->fontset.
11885 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
11886
118872008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
11888
11889 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
11890 (move_it_in_display_line): New wrapper.
11891
11892 * window.c (window_scroll_pixel_based_preserve_x)
11893 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
11894 (window_scroll_pixel_based, window_scroll_line_based):
11895 Use them to preserve column positions.
11896 (syms_of_window): Initialize them.
11897
11898 * indent.c (Fvertical_motion): Extend first arg to allow passing an
11899 (HPOS . VPOS) pair.
11900
11901 * dispextern.h (move_it_in_display_line): Declare.
11902
119032008-06-05 Juanma Barranquero <lekktu@gmail.com>
11904
11905 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
11906 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
11907 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
11908
119092008-06-04 Juanma Barranquero <lekktu@gmail.com>
11910
11911 * window.c (Fset_window_parameter): Doc fix.
11912 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
11913
119142008-06-04 Joakim Verona <joakim@verona.se>
11915
11916 * window.h (struct window): Add new member window_parameters.
11917
11918 * window.c (Fwindow_parameters, Fwindow_parameter)
11919 (Fset_window_parameter): New defuns.
11920 (syms_of_window): Defsubr the new defuns.
11921 (make_window): Initialize window_parameters to nil.
11922
119232008-06-04 John Paul Wallington <jpw@pobox.com>
11924
11925 * eval.c (Fdefmacro): Doc fix.
11926
119272008-06-04 Kenichi Handa <handa@m17n.org>
11928
11929 * coding.c (detect_coding): Fix handling of coding->head_ascii.
11930 Be sure to call setup_coding_system when we find a proper coding system.
11931 (detect_coding_system): Fix handling of coding->head_ascii.
11932
119332008-06-03 Andreas Schwab <schwab@suse.de>
11934
11935 * font.c (font_prop_validate_spacing): Fix last change.
11936
119372008-06-03 Kenichi Handa <handa@m17n.org>
11938
11939 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
11940 (font_parse_fcname): Fix handling of unknown key.
11941
11942 * xfont.c (xfont_list): Try an alias.
11943
11944 * charset.c (char_charset): Return NULL if the arg charset_list is
11945 specified and C doesn't belong to any of them.
11946
119472008-06-02 Chip Coldwell <coldwell@redhat.com>
11948
11949 * font.c (font_pixel_size): Don't take cdr of an integer.
11950
119512008-06-02 Jim Meyering <meyering@redhat.com>
11952
11953 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
11954 * alloc.c (xfree): Return right away for a NULL arg.
11955 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
11956 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
11957 * mac.c (create_apple_event_from_event_ref): Likewise.
11958 (create_apple_event_from_drag_ref, cfstring_create_normalized):
11959 Likewise.
11960 * doprnt.c (doprnt1): Likewise.
11961 * frame.c (frame): Likewise.
11962 * keyboard.c (wipe_kboard): Likewise.
11963 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
11964 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
11965 * term.c (tty_default_color_capabilities, maybe_fatal)
11966 (delete_tty): Likewise.
11967 * w16select.c (string): Likewise.
11968 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
11969 * w32bdf.c (w32_free_bdf_font): Likewise.
11970 * w32fns.c (w32_unload_font): Likewise.
11971 * w32font.c (w32font_close): Likewise.
11972 * window.c (size_window): Likewise.
11973 * xselect.c (receive_incremental_selection): Likewise.
11974 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
11975 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
11976 * w32.c (stat): Likewise.
11977
11978 Remove useless if-before-free tests.
11979 * editfns.c (Fset_time_zone_rule): Likewise.
11980 * lread.c (nosuffix): Likewise.
11981 * ralloc.c (get_bloc): Likewise.
11982 * regex.c (reg_free): Likewise.
11983 * xftfont.c (xftfont_open, xftfont_close): Likewise.
11984 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
11985 * xsmfns.c (smc_save_yourself_CB): Likewise.
11986
119872008-06-02 Kenichi Handa <handa@m17n.org>
11988
11989 * font.c (font_find_for_lface): Handle float font size.
11990 (font_open_for_lface): Likewise.
11991
11992 * xfaces.c (x_supports_face_attributes_p): Check face->font before
11993 comparing the properties.
11994
119952008-06-01 Jason Rumney <jasonr@gnu.org>
11996
11997 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
11998 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
11999 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
12000 Don't add empty script list.
12001 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
12002
120032008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
12004
12005 * Makefile.in (dot, dotdot): Remove, update users.
12006 ".." has been used elsewhere in the file for a long time.
12007 (LIBXT_STATIC): Remove conditional based on unused variable.
12008
120092008-06-01 Miles Bader <miles@gnu.org>
12010
12011 * xfaces.c (Vface_remapping_alist): New variable.
12012 (syms_of_xfaces): Initialize it.
12013 (enum named_merge_point_kind): New type.
12014 (struct named_merge_point): Add `named_merge_point_kind' field.
12015 (push_named_merge_point): Make cycle detection respect different
12016 named-merge-point kinds.
12017 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
12018 Remove face-name alias resolution.
12019 (lface_from_face_name): New definition using
12020 `lface_from_face_name_no_resolve'.
12021 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
12022 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
12023 (get_lface_attributes): New definition that layers face-remapping on
12024 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
12025 (lookup_basic_face): New function.
12026 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
12027 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
12028 `get_lface_attributes'.
12029 (face_at_buffer_position): Use `lookup_basic_face' to lookup
12030 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
12031 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
12032
12033 * xdisp.c (init_iterator): Pass base_face_id through
12034 `lookup_basic_face' when we actually use it as a face-id.
12035 (handle_single_display_prop): Use `lookup_basic_face' to lookup
12036 DEFAULT_FACE_ID.
12037
12038 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
12039 lookup the initial face-id.
12040
12041 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
12042
120432008-06-01 Juanma Barranquero <lekktu@gmail.com>
12044
12045 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
12046 (Fremove_text_properties): Fix typos in docstrings.
12047
120482008-05-31 Kenichi Handa <handa@m17n.org>
12049
12050 * font.c (font_list_entities): Fix the car part of data to be
12051 stored in the cache.
12052
12053 * ftfont.c (ftfont_font_format): Don't use strcasestr.
12054
120552008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
12056
12057 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
12058 Add a `test' argument so another predicate than `equal' can be used.
12059 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
12060 (map_char_table): Remove unused vars `c' and `i'.
12061 * lisp.h (Foptimize_char_table): Adjust declaration.
12062 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
12063
120642008-05-30 Kenichi Handa <handa@m17n.org>
12065
12066 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
12067 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
12068 defined.
12069
120702008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
12071
12072 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
12073 (Fmake_variable_frame_local): Disallow mixing buffer-local and
12074 frame-local settings for the same variable.
12075
120762008-05-30 Kenichi Handa <handa@m17n.org>
12077
12078 * fontset.c (Ffont_info): Move to font.c.
12079 (syms_of_fontset): Delete defsubr of Sfont_info.
12080
12081 * font.c (font_style_to_value, font_score): Delete casting of the
12082 args to xstcasecmp.
12083 (register_font_driver): Increment num_font_drivers only when
12084 registering the driver globally.
12085 (Ffont_info): Move from fontset.c. Handle a font object too.
12086 (syms_of_font): Defsubr Sfont_info.
12087
120882008-05-29 Kenichi Handa <handa@m17n.org>
12089
12090 * coding.h (enum define_coding_utf8_arg_index): New enum.
12091 (enum coding_attr_index): Change coding_attr_utf_16_bom to
12092 coding_attr_utf_bom.
12093 (enum utf_bom_type): Rename from utf_16_bom_type.
12094 (struct utf_16_spec): Adjust for the above change.
12095 (struct coding_system): Add utf_8_bom in `spec' union.
12096
12097 * coding.c (CODING_UTF_8_BOM): New macro.
12098 (enum coding_category): Delete coding_category_utf_8, add
12099 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
12100 coding_category_utf_8_sig.
12101 (CATEGORY_MASK_UTF_8): Delete it.
12102 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
12103 (CATEGORY_MASK_UTF_8_SIG): New macros.
12104 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
12105 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
12106 CATEGORY_MASK_UTF_8_SIG.
12107 (CATEGORY_MASK_UTF_8): New macro.
12108 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
12109 (detect_coding_utf_8): Check BOM.
12110 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
12111 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
12112 (encode_coding_utf_16): Likewise.
12113 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
12114 (detect_coding, detect_coding_system): Handle utf-8-auto.
12115 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
12116 (syms_of_coding): Fix setting up of Vcoding_category_table.
12117
121182008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
12119
12120 * process.c (Faccept_process_output): If `millisec' is non-nil,
12121 `seconds' default to 0.
12122 (wait_reading_process_output): Also return non-nil if we read output
12123 from a non-running process.
12124
121252008-05-29 Jason Rumney <jasonr@gnu.org>
12126
12127 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
12128 `raster' specified.
12129 (add_font_entity_to_list): Allow non-opentype truetype fonts back
12130 in the uniscribe backend, but disallow any font that has no
12131 unicode subrange support.
12132
121332008-05-29 Juanma Barranquero <lekktu@gmail.com>
12134
12135 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
12136 Fix typos in docstrings.
12137
121382008-05-29 Kenichi Handa <handa@m17n.org>
12139
12140 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
12141 (Fx_family_fonts): Set frame correctly.
12142
121432008-05-28 Jason Rumney <jasonr@gnu.org>
12144
12145 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
12146
121472008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
12148
12149 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
12150 calling build_annotations.
12151
121522008-05-28 Juanma Barranquero <lekktu@gmail.com>
12153
12154 * coding.c (Fdecode_coding_region, Fencode_coding_region)
12155 (Fencode_coding_string):
12156 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
12157 <latin-extra-code-table>: Fix typos in docstrings.
12158 (syms_of_coding) <coding-system-alist>: Doc fix.
12159 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
12160
121612008-05-28 Kenichi Handa <handa@m17n.org>
12162
12163 * fontset.c (Ffont_info): Don't call font_close_object.
12164
12165 * font.c (font_parse_family_registry): Use Ffont_put to validate
12166 foundry and family.
12167 (font_delete_unmatched): Don't check spacing.
12168 (font_list_entities): Add spacing to the spec to list fonts.
12169
12170 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
12171 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
12172
12173 * coding.c (encode_coding_raw_text): Fix previous change.
12174 (encode_coding_object): When the dst_object is a buffer and is
12175 different from src_object, move gap to PT.
12176
121772008-05-27 Chong Yidong <cyd@stupidchicken.com>
12178
12179 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
12180
121812008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
12182
12183 * coding.c (encode_coding_raw_text): Set coding->produced_char for
12184 all branches. Compute it differently.
12185
12186 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
12187
121882008-05-27 Juanma Barranquero <lekktu@gmail.com>
12189
12190 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
12191 into "else if () ... else ...".
12192
121932008-05-27 Jason Rumney <jasonr@gnu.org>
12194
12195 * w32font.c (w32font_open_internal): Determine if glyph indices
12196 are likely to work here.
12197
121982008-05-27 Chong Yidong <cyd@stupidchicken.com>
12199
12200 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
12201 draw overlap glyphs with appropriate highlighting.
12202
122032008-05-27 Kenichi Handa <handa@m17n.org>
12204
12205 * xfont.c (xfont_open): Fix calculation of font->average_width.
12206
122072008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
12208
12209 * casefiddle.c (casify_object): Try to guess better whether the
12210 argument is a byte or a char.
12211
122122008-05-26 Andreas Schwab <schwab@suse.de>
12213
12214 * xselect.c (x_reply_selection_request): Properly handle format == 32.
12215 Always send multiples of format size.
12216
12217 * xterm.c (x_set_frame_alpha): Fix type mismatch.
12218
122192008-05-26 Jason Rumney <jasonr@gnu.org>
12220
12221 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
12222 (compute_metrics): Don't set failure if we just cleared the cache.
12223 (w32_weight_table): Remove unused variable.
12224 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
12225 backwards compatibility.
12226
122272008-05-25 Kenichi Handa <handa@m17n.org>
12228
12229 * w32term.c (x_draw_glyph_string):
12230 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
12231
12232 * xfaces.c: Delete unused function prototypes.
12233 (xstrlwr, font_frame): Delete them.
12234 (clear_face_cache): Delete unused variable.
12235
12236 * xftfont.c (xftfont_open): Delete unused variable.
12237 If underline_thickness is not 1, adjust underline_position.
12238
12239 * ftxfont.c (ftxfont_open): Delete unused variable.
12240
12241 * fontset.c (face_for_char): Optimize for the case of no charset
12242 property.
12243
12244 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
12245 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
12246 (otf_open, font_otf_capability, generate_otf_features)
12247 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
12248 Comment out by surrounding "#if 0" and "#endif" for the moment.
12249 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
12250 (syms_of_font): Codes for accessing above commented out.
12251
122522008-05-24 Eli Zaretskii <eliz@gnu.org>
12253
12254 * w32proc.c: Include dispextern.h.
12255
12256 * w32.c: Include dispextern.h.
12257
122582008-05-23 Juanma Barranquero <lekktu@gmail.com>
12259
12260 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
12261 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
12262 Fix typos in docstrings.
12263
122642008-05-23 Jason Rumney <jasonr@gnu.org>
12265
12266 * xsmfns.c: Remove includes that are already included by config.h.
12267
122682008-05-23 Kenichi Handa <handa@m17n.org>
12269
12270 * charset.c (Qemacs, charset_emacs): New variables.
12271 (char_charset): Fix for non-Unicode characters.
12272 (syms_of_charset): Define charset_emacs.
12273
12274 * w32term.c (x_draw_glyph_string): Be sure to update
12275 s->underline_thickness and s->underline_position. Be sure to draw
12276 underline within the current line area.
12277
12278 * xterm.c (x_draw_glyph_string): Be sure to update
12279 s->underline_thickness and s->underline_position. Be sure to draw
12280 underline within the current line area.
12281
12282 * fontset.c: Delete unused variables and add casting for char *
12283 throughout the file.
12284 (fontset_font): Try the fallback fonts of the current fontset
12285 before consulting the default fontset.
12286
12287 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
12288
12289 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
12290
122912008-05-22 Jason Rumney <jasonr@gnu.org>
12292
12293 * font.c: Don't include strings.h.
12294
12295 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
12296
12297 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
12298 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
12299 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
12300 to call xstrcasecmp.
12301
12302 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
12303
12304 * fontset.c (fs_query_fontset): Use xstrcasecmp.
12305
12306 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
12307
12308 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
12309
123102008-05-22 Kenichi Handa <handa@m17n.org>
12311
12312 * puresize.h (BASE_PURESIZE): Increase to 1220000.
12313
12314 * font.c (font_prop_validate_style): Adjust for the format
12315 change of font_style_table.
12316
12317 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
12318 two args.
12319
12320 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
12321 two args.
12322
123232008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
12324
12325 * minibuf.c (keys_of_minibuf): Delete.
12326 * lisp.h (keys_of_minibuf): Delete.
12327 * emacs.c (main): Don't call keys_of_minibuf.
12328
123292008-05-22 Kenichi Handa <handa@m17n.org>
12330
12331 * ftfont.c (ftfont_resolve_generic_family): Rename from
12332 ftfont_list_generic_family. Return a single family for each
12333 generic family.
12334 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
12335 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
12336 Call font_add_log.
12337 (ftfont_match): Call font_add_log.
12338
12339 * font.h (Ffont_xlfd_name): EXFUN adjusted.
12340 (FONT_DEBUG): Define it.
12341 (font_add_log): Extern it.
12342 (font_assert): Rename from xassert.
12343
12344 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
12345 (xfont_list_family): Call font_add_log.
12346 (xfont_match): Likewise.
12347 (memq_no_quit): Delete.
12348
12349 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
12350 call of Ffont_xlfd_name.
12351
12352 * xfaces.c (struct table_entry, slant_table, weight_table)
12353 (swidth_table): Move to font.c.
12354
12355 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
12356 xassert are changed to font_assert. Delete many unused variables.
12357 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
12358 New variables.
12359 (struct table_entry): Move from xfaces.c and modified.
12360 (weight_table, slant_table, width_table): Move from xfaces.c and
12361 contents adjusted for the change of struct table_entry.
12362 (font_style_to_value, font_style_symbolic): Adjust for the
12363 format change of font_style_table.
12364 (font_parse_family_registry): Don't overwrite existing foundry and
12365 family of font_spec.
12366 (font_score): Fix calculation of diff for sizes.
12367 (font_sort_entites): Call font_add_log.
12368 (font_delete_unmatched): Return a newly created list.
12369 (font_list_entities): Fix previous change. Call font_add_log.
12370 (font_matching_entity, font_open_entity, font_close_entity):
12371 Call font_add_log.
12372 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
12373 (Finternal_set_font_style_table): Delete.
12374 (BUILD_STYLE_TABLE): New macro.
12375 (build_style_table): New function.
12376 (Vfont_log, font_log_env_checked): New variables.
12377 (font_add_log): New function.
12378 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
12379 Declare Lisp variables "font-weight-table", "font-slant-table",
12380 "font-width-table", and "font-log". Initialize font_style_table.
12381
123822008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
12383
12384 * xterm.c (x_set_frame_alpha): Move declarations before statements.
12385
123862008-05-21 Seiji Zenitani <zenitani@mac.com>
4e2af782 12387 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
12388
12389 * frame.c (Qalpha): Add a new frame parameter `alpha'.
12390 (Vframe_alpha_lower_limit): New variable.
12391 (x_set_alpha): New function.
12392
12393 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
12394
12395 * xfns.c (x-create-frame, Qalpha):
12396 Initialize the frame parameter `alpha'.
12397 * xterm.c (OPAQUE, OPACITY): New.
12398 (x_set_frame_alpha): New function.
12399 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
12400
12401 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
12402 * w32fns.c (w32_frame_parm_handlers): Likewise.
12403
124042008-05-20 Jason Rumney <jasonr@gnu.org>
12405
12406 * w32font.c (add_font_entity_to_list): Don't add non-opentype
12407 truetype fonts to opentype list.
12408
124092008-05-20 Juanma Barranquero <lekktu@gmail.com>
12410
12411 * fontset.c (Ffontset_info): Doc fix.
12412 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
12413 <ignore-relative-composition>: Fix typos in docstrings.
12414
12415 * font.c (syms-of-font) <font-encoding-alist>:
12416 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
12417 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
12418 (Ffont_otf_alternates): Doc fixes.
12419
124202008-05-20 Kenichi Handa <handa@m17n.org>
12421
12422 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
12423 font.h through out the file.
12424 (FONT_DRIVERS): Rename from FONTOBJ.
12425 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
12426 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
12427
12428 * emacs.c (main): Call syms_of_font unconditionally.
12429
12430 * font.h (find_font_encoding): Extern it.
12431
12432 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
12433 fontset.c.
194d44e7 12434 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
12435 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
12436 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
12437 only when HAVE_WINDOW_SYSTEM is defined.
12438 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
12439 when HAVE_WINDOW_SYSTEM is defined.
12440
12441 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
12442 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
12443
12444 * xfaces.c: Include font.h unconditionally.
12445 (merge_face_ref, merge_face_vectors)
12446 (Finternal_set_lisp_face_attribute): Cancel the previous change.
12447
124482008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
12449
12450 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
12451 indirect_variable.
12452 * eval.c (lisp_indirect_variable): New fun.
12453 (Fuser_variable_p): Use it.
12454
124552008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
12456
12457 * lisp.h (indirect_variable):
12458 * data.c (indirect_variable, let_shadows_buffer_binding_p):
12459 Use Lisp_Symbol pointers rather than Lisp_Object.
12460 Adjust callers.
12461 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
12462 To this end, change calling-convention.
12463
12464 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
12465 if some non-hidden buffers are selected by string&pred.
12466
124672008-05-19 Chong Yidong <cyd@stupidchicken.com>
12468
12469 * process.c (wait_reading_process_output): Always check status
12470 when in batch mode.
12471
124722008-05-19 Kenichi Handa <handa@m17n.org>
12473
12474 * font.c (font_list_entities): Fix handling of cache.
12475 (font_matching_entity): Likewise.
12476
12477 * ftfont.c (cs_iso8859_1): Delete.
12478 (ft_face_cache): New variable.
12479 (struct ftfont_info): New member fc_charset_idx.
12480 (ftfont_build_basic_charsets): Delete.
12481 (fc_charset_table): New variable.
12482 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
12483 . FC_CHARSET_IDX) as :font-entity property in the font entity.
12484 Callers changed.
12485 (ftfont_lookup_cache, ftfont_get_charset): New functions.
12486 (ftfont_spec_pattern): New argument fc_charset_idx.
12487 Check registry more rigidly. Change callers.
12488 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
12489 change of :font-entity property of the font.
12490
12491 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
12492 property of the font.
12493
124942008-05-18 Juanma Barranquero <lekktu@gmail.com>
12495
12496 * coding.c (Fcoding_system_p): Rename argument to match docstring.
12497 (Funencodable_char_position, Fcheck_coding_systems_region)
12498 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
12499 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
12500 (Ffind_operation_coding_system, Fset_coding_system_priority)
12501 (Fcoding_system_eol_type): Doc fixes.
12502
125032008-05-17 Glenn Morris <rgm@gnu.org>
12504
12505 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
12506
125072008-05-16 Eli Zaretskii <eliz@gnu.org>
12508
12509 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
12510 and st_gid.
12511
12512 * frame.c (Fdelete_frame): Don't call font_update_drivers if
12513 HAVE_WINDOW_SYSTEM is not defined.
12514
12515 * xfaces.c (merge_face_ref, merge_face_vectors)
12516 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
12517 HAVE_WINDOW_SYSTEM is defined.
12518 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
12519
125202008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
12521
12522 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
12523
125242008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12525
12526 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
12527
125282008-05-15 Kenichi Handa <handa@m17n.org>
12529
12530 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
12531 preference.
12532
125332008-05-15 Glenn Morris <rgm@gnu.org>
12534
12535 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
12536
125372008-05-15 Chong Yidong <cyd@stupidchicken.com>
12538
12539 * fns.c (init_fns): Don't initialize weak_hash_tables here.
12540 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
12541
12542 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
12543
125442008-05-15 Kenichi Handa <handa@m17n.org>
12545
12546 * ftfont.c (ftfont_list): Downcase family name to check generic
12547 families.
12548
12549 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
12550 font-spec for QCfont value.
12551
12552 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
12553 buffer. Check the return value of it.
12554
125552008-05-14 Jason Rumney <jasonr@gnu.org>
12556
12557 * w32term.c (w32_get_glyph_overhangs): Remove.
12558 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
12559
125602008-05-14 Kenichi Handa <handa@m17n.org>
12561
12562 * font.c (font_prop_validate): Make nil a valid value.
12563 (font_clear_cache): Check if the cached vector of entities is nil
12564 or not.
12565
125662008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12567
12568 * emacs.c (main_thread): Conditionalize on
12569 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
12570 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
12571
12572 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
12573 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
12574 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
12575
125762008-05-14 Kenichi Handa <handa@m17n.org>
12577
12578 * coding.c (detect_coding_iso_2022): Ignore a coding category that
12579 has no corresponding coding system.
12580
125812008-05-14 Jason Rumney <jasonr@gnu.org>
12582
12583 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
12584
12585 * w32font.h (w32font_open_internal): Update declaration.
12586
12587 * w32font.c (w32font_open_internal): Change last argument from
12588 w32font_info struct to font object. Fill in font object from
12589 font_entity. Get Outline metrics if possible. Use them to
12590 calculate underline position and thickness. Use xlfd name as name
12591 property. Don't set codepage.
12592 (w32font_open): Pass font_object to w32font_open_internal. Don't
12593 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
12594 (w32font_draw): Use s->font.
12595 (clear_cached_metrics): Don't clear non-existent blocks.
12596
12597 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
12598 font was not found.
12599 (x_draw_glyph_string): Use underline position and thickness from font.
12600
12601 * w32uniscribe.c (uniscribe_open): Pass font_object to
12602 w32font_open_internal.
12603
126042008-05-14 Kenichi Handa <handa@m17n.org>
12605
12606 These changes are to delete all legacy font-handling codes, and
12607 make Emacs use only font-backends.
12608
12609 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
12610 (frame.o, image.o, print.o): Depend on $(FONTSRC).
12611
12612 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
12613
12614 * charset.h (Vcharset_non_preferred_head)
12615 (Vcurrent_iso639_language): Extern them.
12616
12617 * charset.c (Vcharset_non_preferred_head): New variable.
12618 (Vcurrent_iso639_language): New variable.
12619 (syms_of_charset): Declare it as a Lisp variable.
12620 (char_charset): Don't check non preferred charsets. As a last
12621 resort, return charset_unicode.
12622 (Fset_charset_priority): Update Vcharset_non_preferred_head.
12623
12624 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
12625 conditionals. Don't check enable_font_backend. Delete all codes
12626 used only when USE_FONT_BACKEND is not defined.
12627
12628 * dispextern.h (struct glyph_string): Change type of `font' to
12629 `struct font *'.
12630 (struct glyph_string): New member underline_position and
12631 underline_thickness.
12632 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
12633 (struct face): Change type of `font' to `struct font *'. Remove
12634 members `font_name', `font_info_id'.
12635 (per_char_metric, encode_char): Delete externs.
12636 (calc_pixel_width_or_height): Adjust the prototype.
12637
12638 * emacs.c (enable_font_backend): Delete extern.
12639 (main): Don't set enable_font_backend. Don't check the command
12640 line argument "-disable-font-backend".
12641
12642 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
12643 (enum font_property_index): New members FONT_DPI_INDEX,
12644 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
12645 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
12646 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
12647 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
12648 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
12649 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
12650 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
12651 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
12652 (struct font_spec, struct font_entity): New structs.
12653 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
12654 (struct font): Many members from old "struct font_info" moved to
12655 here. Members font and entity deleted.
12656 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
12657 the new font-related objects.
12658 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
12659 (CHECK_FONT_GET_OBJECT): Likewise.
12660 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
12661 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
12662 (struct font_driver): New members case_sensitive anc check. Type
12663 of the member list and open changed.
12664 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
12665 (font_symbolic_width, font_find_object, font_get_spec)
12666 (font_set_lface_from_name): Delete extern.
12667 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
12668
12669 * font.c: Include <strings.h>.
12670 (enable_font_backend): Delete it.
12671 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
12672 (CHECK_VALIDATE_FONT_SPEC): Delete it.
12673 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
12674 (null_string): Delete it.
12675 (null_vector): Make it static.
12676 (font_family_alist): Delete it.
12677 (Qnormal): Extern it.
12678 (QCextra, QClanguage): Delete it.
12679 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
12680 (font_make_spec, font_make_entity, font_make_object)
12681 (font_intern_prop): Renamed from intern_downcase. Don't downcase
12682 the string. Callers changed.
12683 (font_pixel_size): Adjusted for the format change of font-related
12684 objects.
12685 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
12686 (font_style_to_value, font_style_symbolic): New function.
12687 (build_font_family_alist): Delete it.
12688 (font_registry_charsets): Use Fassoc_string instead of
12689 assq_no_quit.
12690 (font_prop_validate_symbol): Don't return null_string.
12691 (font_prop_validate_style): Adjusted for the change of
12692 style-related values in a font vector.
12693 (font_property_table): Delete entries for QClanguage and
12694 QCantialias, add entries for QCavgwidth.
12695 (get_font_prop_index): Delete the 2nd argument FROM.
12696 (font_prop_validate): Arguments changed.
12697 (font_put_extra): Adjusted for the change of font-related objects.
12698 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
12699 (font_parse_fcname, font_unparse_fcname)
12700 (font_prepare_composition): Likewise.
12701 (font_parse_family_registry): Renamed from font_merge_old_spec.
12702 (otf_open): Delete the 1st arg entity.
12703 (font_otf_capability): Adjusted for the above change.
12704 (font_score): New arg alternate_families. Adjusted for the change
12705 of font-related objects.
12706 (font_sort_entites): New arg best_only.
12707 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
12708 Delete them.
12709 (font_match_p): Check alternate families.
12710 (font_find_object): Delete it.
12711 (font_check_object): New function.
12712 (font_clear_cache): Adjusted for the change of font-related objects.
12713 (font_delete_unmatched): New arg.
12714 (font_list_entities): Call font_driver->list with a spec that
12715 doesn't specify style-related properties.
12716 (font_matching_entity): Arguments changed. Caller changed.
12717 (font_open_entity): Adjusted for the change of font-related objects.
12718 (font_close_object, font_has_char, font_encode_char)
12719 (font_get_name, font_get_spec): Likewise.
12720 (font_spec_from_name, font_clear_prop, font_update_lface):
12721 New functions.
12722 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
12723 (font_prepare_for_face, font_done_for_face, font_open_by_name)
12724 (font_at): Adjusted for the change of font-related objects.
12725 (font_range): New function.
12726 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
12727 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
12728 (Fcopy_font_spec, Fmerge_font_spec): New function.
12729 (Ffont_family_list): Renamed from list-families.
12730 (Finternal_set_font_style_table): Arguments changed.
12731 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
12732 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
12733 change of font-related objects.
12734 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
12735
12736 * fontset.h (struct font_info): Delete it. Most members go to
12737 struct font.
12738 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
12739 (enum FONT_SPEC_INDEX): Delete it.
12740 (font_info, list_fonts_func, load_font_func, query_font_func)
12741 (set_frame_fontset_func, find_ccl_program_func)
12742 (get_font_repertory_func, new_fontset_from_font_name): Delete
12743 externs.
12744 (fontset_from_font_name): Extern it.
12745 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
12746 (FONT_INFO_FROM_FACE): Deleted.
12747 (face_for_font): Adjust prototype.
12748
12749 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
12750 conditionals. Don't check enable_font_backend. Delete all codes
12751 used only when USE_FONT_BACKEND is not defined.
12752 (get_font_info_func, list_font_func, load_font_func)
12753 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
12754 (get_font_repertory_func): Delete them.
12755 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
12756 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
12757 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
12758 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
12759 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
12760 (fontset_compare_rfontdef): New function.
12761 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
12762 rfont-defs by qsort. Adjusted for the change of font-group vector.
12763 (load_font_get_repertory): Deleted.
12764 (fontset_find_font): Use new macros to ref/set elements of
12765 font-def and rfont-def.
12766 (fontset_font): Fix the timing of remembering that no font for C.
12767 (free_face_fontset): Do nothing if the face has no fontset.
12768 (face_suitable_for_char_p): Use new macros to ref/set elements of
12769 rfont-def.
12770 (face_for_char): Likewise. Call face_for_char with font_object.
12771 (fs_load_font): Delete. Delete #pragma surrounding it.
12772 (fs_query_fontset): Use strcasecmp instead of strcmp.
12773 (generate_ascii_font_name): Adjusted for the format change of
12774 font-spec.
12775 (Fset_fontset_font): Likewise. Use new macros to set elements of
12776 font-def.
12777 (Fnew_fontset): Use font_unparse_xlfd to generate
12778 FONTSET_ASCII (fontset).
12779 (new_fontset_from_font_name): Deleted.
12780 (fontset_from_font): Renamed from new_fontset_from_font. Check if
12781 a fontset is already created for the font. FIx updating of
12782 Vfontset_alias_alist.
12783 (fontset_ascii_font): Deleted.
12784 (Ffont_info): Adjusted for the format change of font-spec.
12785 (Finternal_char_font): Likewise.
12786 (Ffontset_info): Likewise.
12787 (syms_of_fontset): Don't check load_font_func.
12788
12789 * fns.c (internal_equal): Handle PREV_FONT.
12790
12791 * frame.h: Delete USE_FONT_BACKEND conditional.
12792
12793 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
12794 conditionals. Don't check enable_font_backend. Delete all codes
12795 used only when USE_FONT_BACKEND is not defined.
12796 (x_set_font): Call x_new_font, not x_new_fontset2.
12797 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
12798 already set for the frame.
12799
12800 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
12801 a font-entity by font_make_entity. Use font_intern_prop instead
12802 of intern_downcase. Use FONT_SET_STYLE to set a style-related
12803 font property. If a font is scalable, set avgwidth property to 0.
12804 Set font-entity property by font_put_extra.
12805 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
12806 (ffont_driver): Adjusted for the change of struct font_driver.
12807 (ftfont_spec_pattern): New function.
12808 (ftfont_list): Return a list, not vector.
12809 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
12810 (ftfont_list_family): Don't downcase names.
12811 (ftfont_free_entity): Deleted.
12812 (ftfont_open): Return a font-object. Adjusted for the change of
12813 struct font. Get underline_thickness and underline_position from
12814 font property. Don't update dpyinfo->smallest_font_height and
12815 dpyinfo->smallest_char_width.
12816 (ftfont_close): Don't free `struct font'.
12817 (ftfont_has_char): Adjusted for the format change of font-entity.
12818 (ftfont_encode_char, ftfont_text_extents): Likewise.
12819
12820 * ftxfont.c (ftxfont_list): Return a list, not vector.
12821 (ftxfont_open): Return a font-object. Adjusted for the change of
12822 struct font. Get underline_thickness and underline_position from
12823 font property. Don't update dpyinfo->smallest_font_height and
12824 dpyinfo->smallest_char_width.
12825 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
12826 (ftxfont_draw): Adjusted for the change of struct font.
12827
12828 * image.c (image_ascent): Don't include "charset.h". Include
12829 "character.h" and "font.h".
12830
12831 * lisp.h (enum pvec_type): New member PREV_FONT.
12832 (Fassoc_string): EXFUN it.
12833
12834 * print.c: Include font.h.
12835 (print_object): Handle font-related objects.
12836
12837 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
12838 conditionals. Don't check enable_font_backend. Delete all codes
12839 used only when USE_FONT_BACKEND is not defined.
12840 (handle_auto_composed_prop): Do nothing if it->f is not on a
12841 window system. Check how many following characters can be
12842 displayed by the same font.
12843 (calc_pixel_width_or_height): Type of the 4th arg is changed to
12844 'struct font *'.
12845 (get_char_face_and_encoding): Assign the whole encoding task to
12846 the `encode-char' method of a font driver.
12847 (fill_composite_glyph_string): Adjusted for the change of `struct
12848 face' and `struct glyph_string'.
12849 (fill_glyph_string): Likewise.
12850 (get_per_char_metric): Arguments changed.
12851 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
12852 and `struct glyph_string'.
12853 (produce_stretch_glyph, calc_line_height_property)
12854 (x_produce_glyphs): Likewise.
12855
12856 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
12857 conditionals. Don't check enable_font_backend. Delete all codes
12858 used only when USE_FONT_BACKEND is not defined. Use
12859 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
12860 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
12861 (Qp): Extern them.
12862 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
12863 Deleted.
12864 (struct font_name): Deleted.
12865 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
12866 (compare_fonts_by_sort_order): New function.
12867 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
12868 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
12869 Deleted.
12870 (Fx_family_fonts): Use font_list_entities, and sort fonts by
12871 compare_fonts_by_sort_order.
12872 (Fx_font_family_list): Call Ffont_family_list.
12873 (face_numeric_value, face_numeric_weight, face_numeric_slant)
12874 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
12875 (face_symbolic_slant, face_symbolic_swidth)
12876 (split_font_name_into_vector, build_font_name_from_vector)
12877 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
12878 (font_rescale_ratio, split_font_name, build_font_name)
12879 (free_font_names, sort_fonts, x_face_list_fonts)
12880 (face_font_available_p, sorted_font_list, cmp_font_names)
12881 (font_list_1, concat_font_list, font_list, remove_duplicates):
12882 Deleted.
12883 (Fx_list_fonts): Use Ffont_list.
12884 (LFACE_AVGWIDTH): Deleted.
12885 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
12886 by FONTP.
12887 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
12888 (set_lface_from_font_name): Delete it.
12889 (set_lface_from_font): Renamed from
12890 set_lface_from_font_and_fontset. Caller changed. Don't set
12891 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
12892 for face.
12893 (merge_face_vectors): Copy font-spec if necessary.
12894 Clear properties of the font-spec if necessary.
12895 (merge_face_ref): Clear properties of the font-spec if necessary.
12896 (Finternal_set_lisp_face_attribute): Likewise.
12897 (set_font_frame_param): Use font_load_for_lface to load a
12898 font-object, and call Fmodify_frame_parameters with it.
12899 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
12900 font name by Ffont_xlfd_name.
12901 (Finternal_lisp_face_attribute_values): Don't check QCweight,
12902 QCslant, and QCwidth.
12903 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
12904 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
12905 Compare fonts by EQ.
12906 (lookup_non_ascii_face): Deleted.
12907 (face_for_font): The 2nd argument changed.
12908 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
12909 Check atomic font properties by case insensitive.
12910 (realize_non_ascii_face): Set face->overstrike correctly.
12911 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
12912 (dump_realized_face): Get font name from
12913 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
12914
12915 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
12916 conditionals. Don't check enable_font_backend. Delete all codes
12917 used only when USE_FONT_BACKEND is not defined.
12918 (xic_create_xfontset): Original code deleted and renamed from
12919 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
12920 (x_make_gc): Don't set GCFont in GCs.
12921 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
12922 opened by "fixed".
12923 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
12924 find_ccl_program_func, query_font_func, set_frame_fontset_func,
12925 get_font_repertory_func.
12926
12927 * xfont.c: Include <stdlib.h> and "ccl.h".
12928 (struct xfont_info): New structure.
12929 (xfont_query_font): Deleted.
12930 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
12931 moved from xterm.c.
12932 (xfont_driver): Adjusted for the change of struct font_driver.
12933 (compare_font_names): New function.
12934 (xfont_list_pattern): Sort font names case insensitively. Make
12935 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
12936 (xfont_list): Return a list, not vector.
12937 (xfont_match): If the font doesn't have QCname property, generate
12938 a name from the other font properties.
12939 (xfont_open): Return a font-object. Adjusted for the change of
12940 struct font. Get underline_thickness and underline_position from
12941 font property. Don't update dpyinfo->smallest_font_height and
12942 dpyinfo->smallest_char_width.
12943 (xfont_close): Don't free struct font.
12944 (xfont_prepare_face): Adjusted for the change of struct font.
12945 (xfont_done_face): Deleted.
12946 (xfont_has_char): Adjusted for the change of struct font.
12947 (xfont_encode_char, xfont_draw): Likewise.
12948 (xfont_check): New function.
12949
12950 * xftfont.c (xftfont_list): Adjusted for the change of `list'
12951 callback function.
12952 (xftfont_match): Adjusted for the format change of font-entity.
12953 (xftfont_open): Adjusted for the format change of font-entity and
12954 font-object. Adjusted for the change of struct font. Return a
12955 font-object. Don't update dpyinfo->smallest_font_height and
12956 dpyinfo->smallest_char_width.
12957 (xftfont_close): Block input while calling XftFontClose.
12958 (xftfont_prepare_face): Don't block input while calling
12959 xftfont_get_colors. Adjusted for the change of struct font.
12960 (xftfont_shape): Return value of error case fixed.
12961
12962 * xrdb.c (x_load_resources): Don't setup a fontset resource.
12963
12964 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
12965 conditionals.
12966 (FONT_WIDTH): Return (f)->max_width.
12967 (struct x_display_info): Delete member `font'.
12968 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
12969 (x_find_ccl_program, x_get_font_repertory): Delete externs.
12970 (struct x_output): Change type of `font' to `struct font *'.
12971
12972 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
12973 conditionals. Don't check enable_font_backend. Delete all codes
12974 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
12975 (x_per_char_metric, x_encode_char): Deleted.
12976 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
12977 (x_compute_glyph_string_overhangs): Adjusted for the change of
12978 `struct face'.
12979 (x_draw_glyph_string_foreground)
12980 (x_draw_composite_glyph_string_foreground): Likewise.
12981 (x_draw_glyph_string): Likewise. Use font->underline_position and
12982 font->underline_thickness.
12983 (x_new_font): Renamed from x_new_fontset2.
12984 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
12985 (x_check_font): Call `check' method of a font driver.
12986 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
12987 (x_query_font, x_get_font_repertory): Deleted.
12988 (x_find_ccl_program): Renamed and moved to xfont.c.
12989 (x_redisplay_interface): Adjusted for the change of `struct
12990 redisplay_interface'.
12991
12992 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
12993 conditionals. Don't check enable_font_backend. Delete all codes
12994 used only when USE_FONT_BACKEND is not defined. Surround non-used
12995 code by "#ifdef OLD_FONT" and "endif".
12996 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
12997
12998 * w32font.h (struct w32font_info): New member.
12999 (FONT_COMPAT): New macro.
13000 (w32font_open_internal): Prototype adjusted.
13001
13002 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
13003 OLD_FONT" and "endif".
13004
13005 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
13006 conditionals. Don't check enable_font_backend. Delete all codes
13007 used only when USE_FONT_BACKEND is not defined.
13008 (w32font_open): Return a font-object. Make a font-object by
13009 font_make_object. Adjusted for the change of struct w32font_info.
13010 (w32font_close): Don't free struct font. Adjusted for the change
13011 of struct w32font_info.
13012 (w32font_encode_char, w32font_text_extents, w32font_draw):
13013 Adjusted for the change of struct w32font_info.
13014 (w32font_draw): Likewise.
13015 (w32font_list_internal): Return a list, not vector.
13016 (w32font_open_internal): Change the 4th arg to font-object.
13017 Adjusted for the change of struct w32font_info and font-object format.
13018 (add_font_name_to_list): Don't downcase names.
13019 (w32_enumfont_pattern_entity): Make a font-entity by
13020 font_make_entity. Adjusted for the format change of font-entity.
13021 Use FONT_SET_STYLE to set a style-related font property. If a
13022 font is scalable, set avgwidth property to 0. Set font-entity
13023 property by font_put_extra.
13024 (font_matches_spec): Adjusted for the format change of font-entity.
13025 (w32_weight_table, w32_decode_weight): New variables.
13026 (w32_encode_weight): New function.
13027 (fill_in_logfont): Adjusted for the format change of font-spec.
13028 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
13029 weight value.
13030 (w32font_driver): Adjusted for the change of struct font_driver.
13031
13032 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
13033 conditionals. Don't check enable_font_backend. Surround non-used
13034 code by "#ifdef OLD_FONT" and "endif".
13035 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
13036 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
13037
13038 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
13039 conditionals. Don't check enable_font_backend. Delete all codes
13040 used only when USE_FONT_BACKEND is not defined. Surround non-used
13041 code by "#ifdef OLD_FONT" and "endif".
13042
13043 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
13044 (uniscribe_open): Return value changed to font-object.
13045 Adjusted for the format change of font-object.
13046 (uniscribe_otf_capability): Adjusted for the change of struct font.
13047 (add_opentype_font_name_to_list): Don't downcase names.
13048 (uniscribe_font_driver): Adjusted for the change of struct
13049 font_driver.
13050
130512008-05-13 Chong Yidong <cyd@stupidchicken.com>
13052
13053 * dispnew.c (update_frame_1): Check if tty output is still valid
13054 before flushing it.
13055
130562008-05-13 Jan Djärv <jan.h.d@swipnet.se>
13057
13058 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
13059 to Gtk+ menus.
13060
130612008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
13062
13063 * dired.c (file_name_completion): Tweak the code so as to always do it
13064 in a single pass. Tighten the scope of some variables.
13065
13066 * dired.c (Qdefault_directory): New var.
13067 (file_name_completion): Use it instead of Fexpand_file_name.
13068 (syms_of_dired): Initialize it.
13069
130702008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
13071
13072 * fileio.c (double_dollars): Remove dead code.
13073
130742008-05-10 Eli Zaretskii <eliz@gnu.org>
13075
13076 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
13077 Mention w32-get-true-file-attributes in doc string.
13078
13079 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
13080
130812008-05-09 Glenn Morris <rgm@gnu.org>
13082
13083 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
13084 2008-04-23.
13085
130862008-05-09 Eli Zaretskii <eliz@gnu.org>
13087
13088 Support for reporting owner and group of each file on MS-Windows:
13089 * dired.c (stat_uname, stat_gname): New functions, with special
13090 implementation for w32.
13091 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
13092
13093 * w32.c: Rename the_passwd_* to dflt_passwd_*.
13094 (dflt_group_name): New static variable.
13095 (dflt_group): Rename from the_group.
13096 (init_user_info): Init dflt_group fields. Get user's group name
13097 from LookupAccountSid.
13098 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
13099 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
13100 New initialization states.
13101 (globals_of_w32): Initialize them to zero. Initialize the default
13102 group name to "None".
13103 (GetFileSecurity_Name): New global var, the name of the function
13104 to call for GetFileSecurity.
13105 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
13106 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
13107 (get_file_security, get_security_descriptor_owner)
13108 (get_security_descriptor_group, is_valid_sid)
13109 (get_file_security_desc, get_rid, get_name_and_id)
13110 (get_file_owner_and_group): New functions.
13111 (stat): Use get_file_security_desc and get_file_owner_and_group to
13112 report the owner and primary group of each file. Don't ignore the
13113 high 32 bits of file's size, now that st_size is 64-bit wide.
13114 Fix test when to get true file attributes.
13115 (init_user_info): Use get_rid instead of equivalent inline code.
13116 (fstat): Don't ignore the high 32 bits of file's size.
13117
131182008-05-09 Chong Yidong <cyd@stupidchicken.com>
13119
13120 * image.c (png_load): Use correct bit-depth for setting background
13121 color.
13122
131232008-05-08 Eli Zaretskii <eliz@gnu.org>
13124
13125 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
13126 epa-hook.elc.
13127
131282008-05-08 Juanma Barranquero <lekktu@gmail.com>
13129
13130 * font.c (Ffont_match_p): Don't use `iff' in docstring.
13131
131322008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
13133
13134 * macfns.c (Fx_create_frame): Make a copy of frame parameters
13135 because the original parameters are in pure storage now.
13136 (mac_window): Remove unused params. Update callers.
13137
131382008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
13139
13140 * lread.c (substitute_object_recurse): Use lower-level primitives.
13141 Don't signal errors when traversing sub-char-tables.
13142 Don't loop over all the possible characters when traversing char-tables.
13143
13144 * print.c (print_preprocess): Add sub-char-tables to the print-table,
13145 just like we do in print.c.
13146
131472008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
13148
13149 * minibuf.c (Ftry_completion): Remove code left over from when we used
13150 scmp instead of Fcompare_strings.
13151
131522008-05-04 Juanma Barranquero <lekktu@gmail.com>
13153
13154 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
13155
131562008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13157
13158 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
13159 Create bitmap context in native byte order.
13160
13161 * macterm.c (XDrawLine)
13162 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
13163 context in native byte order.
13164
131652008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13166
13167 * config.in: Regenerate.
13168
13169 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
13170 New definitions for Image I/O support.
13171 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
13172 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
13173 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
13174 (mac_data_provider_release_data, image_load_image_io)
13175 [USE_MAC_IMAGE_IO]: New functions.
13176 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
13177 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
13178 (init_image_func_pointer) [MAC_OSX]: Remove function.
13179 (image_load_quartz2d) [MAC_OSX]: Check availability of
13180 CGImageCreateWithPNGDataProvider at compile time.
13181 Use lowercase `false' for boolean constant.
13182 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
13183 Use image_load_image_io.
13184 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
13185 Don't check MyCGImageCreateWithPNGDataProvider.
13186 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
13187 Don't call init_image_func_pointer.
13188
13189 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
13190
13191 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
13192 Make variable non-static.
13193 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
13194 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
13195
13196 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
13197 (RED_FROM_ULONG): Mask off higher bits.
13198 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
13199
13200 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
13201 Include AvailabilityMacros.h.
13202 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
13203 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
13204
132052008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
13206
13207 * chartab.c (Fset_char_table_range): If range is t, really set all
13208 chars to that value.
13209
132102008-05-03 Eli Zaretskii <eliz@gnu.org>
13211
13212 * dired.c (Ffile_attributes): Don't allow the device number become
13213 negative.
13214
132152008-05-02 Daiki Ueno <ueno@unixuser.org>
13216
13217 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
13218
132192008-05-02 Juri Linkov <juri@jurta.org>
13220
13221 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
13222 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
13223 DEFAULT argument as a list of default values in docstrings.
13224
132252008-05-01 Chong Yidong <cyd@stupidchicken.com>
13226
13227 * puresize.h (BASE_PURESIZE): Increase to 1210000.
13228
132292008-05-01 Martin Rudalics <rudalics@gmx.at>
13230
13231 * dispnew.c (change_frame_size_1): Preserve small windows when
13232 shrinking frames by calling set_window_height|width with third
13233 arg 2.
13234
13235 * window.h (struct window): Replace field too_small_ok by field
13236 resize_proportionally.
13237
13238 * window.c (make_window): Initialize resize_proportionally.
13239 (enlarge_window): Temporarily set resize_proportionally to make
13240 sure that shrink_windows does scale the window proportionally.
13241 (shrink_windows): When window has resize_proportionally set try
13242 to shrink it proportionally by stealing from other windows.
13243 (struct saved_window, Fset_window_configuration)
13244 (compare_window_configurations): Handle resize_proportionally.
13245 (WINDOW_TOTAL_SIZE): New macro.
13246 (window_min_size, shrink_windows, size_window): Use it.
13247 (check_min_window_sizes): Remove. Invalid values of
13248 window-min-height|width are handled by window_min_size_2 now.
13249 (size_window, Fsplit_window, enlarge_window)
13250 (adjust_window_trailing_edge, grow_mini_window): Don't call
13251 check_min_window_sizes.
13252 (window_min_size_2, window_min_size_1, window_min_size):
13253 New argument safe_p for retrieving "safe" minimum sizes.
13254 (Fdisplay_buffer, Fsplit_window, enlarge_window)
13255 (adjust_window_trailing_edge, grow_mini_window):
13256 Adjust arguments of window_min_size... functions.
13257 (shrink_windows): Argument min_size removed. New argument
13258 safe_p allows shrinking windows to their safe minimum sizes.
13259 Calculate minimum size and decide whether a window shall be
13260 deleted for each window individually.
13261 (size_window): When nodelete_p equals 2, tell shrink_windows to
13262 delete windows only if their new minimum size is no more safe.
13263 (shrink_window_lowest_first): Call window_min_size_1 to make
13264 sure to preserve modeline of bottom-most window when resizing
13265 the minibuffer.
13266 (Fset_window_configuration, Fcurrent_window_configuration)
13267 (compare_window_configurations): Do not handle
13268 window-min-height|width any more.
13269 (syms_of_window): Clarify window-min-height|width doc-strings.
13270
132712008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
13272
13273 * dired.c (file_name_completion): Fix up the encoding/decoding issue
13274 some more. Copy some of the code from Ftry_completions.
13275 Remove special case code that dates back to initial revision when the
13276 slash was only added when necessary and that can't trigger nowadays.
13277
132782008-04-27 Kenichi Handa <handa@m17n.org>
13279
13280 * font.c (font_prop_validate): Signal `error' instead of `font'.
13281
132822008-04-29 Jason Rumney <jasonr@gnu.org>
13283
13284 * w32fns.c (Fw32_battery_status): New defun.
13285 (syms_of_w32fns): Defsubr it.
13286
132872008-04-28 Andreas Schwab <schwab@suse.de>
13288
13289 * dired.c (file_name_completion): Fix another mixing of encoded
13290 and decoded names.
13291
132922008-04-28 Juanma Barranquero <lekktu@gmail.com>
13293
13294 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
13295
132962008-04-27 Juanma Barranquero <lekktu@gmail.com>
13297
13298 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
13299
133002008-04-27 Andreas Schwab <schwab@suse.de>
13301
13302 * dired.c (file_name_completion): Fix inappropriate mixing of
13303 encoded and decoded names.
13304
13305 * xterm.c (XTread_socket): Fix use of uninitialized variable.
13306
13307 * puresize.h (BASE_PURESIZE): Increase to 1200000.
13308
133092008-04-26 Eli Zaretskii <eliz@gnu.org>
13310
13311 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
13312 2008-03-31, it's not needed anymore with `struct stat' definition
13313 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
13314 for the same reasons.
13315
133162008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
13317
13318 * m/sparc.h: Additional redefinitions for GNU/Linux.
13319
133202008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13321
13322 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
13323 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
13324 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
13325 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
13326 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
13327 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
13328 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
13329 Likewise.
13330
13331 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
13332 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
13333 (mac_ax_number_of_characters): Add externs.
13334 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
13335 [USE_MAC_TSM]: Likewise.
13336 (mac_handle_text_input_event) [MAC_OSX]:
13337 Handle kEventTextInputOffsetToPos for no active input area case.
13338 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
13339 (mac_handle_document_access_event)
13340 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
13341 (install_application_handler) [MAC_OSX]: Register handlers for
13342 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
13343 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
13344 Register mac_handle_document_access_event.
13345
13346 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
13347 Make functions non-static.
13348
133492008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
13350
13351 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
13352 (read_file_name_completion_ignore_case, insert_default_directory)
13353 (Qdefault_directory): Move to minibuffer.el.
13354 (Fread_file_name): Call the new `read-file-name' instead.
13355
133562008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13357
13358 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
13359 Make function non-static.
13360 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
13361 Remove function.
13362 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
13363 Move to mactoolbox.c.
13364 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
13365
13366 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
13367 (mac_rect_make): New macro.
13368
13369 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
13370 instead of float.
13371 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
13372 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
13373 (XSetBackground) [USE_CG_DRAWING]: Likewise.
13374 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
13375 CGRectMake.
13376 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
13377 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
13378 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
13379 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
13380 instead of WindowRef in argument type.
13381 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
13382 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
13383 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
13384 instead of DISPLAY. All uses changed.
13385 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
13386 (x_calc_absolute_position): Simplify so as not to use
13387 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
13388
13389 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
13390 instead of WindowRef in argument type.
13391 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
13392 [TARGET_API_MAC_CARBON]: Remove externs.
13393 (create_apple_event, mac_event_parameters_to_lisp)
13394 [TARGET_API_MAC_CARBON]: Add externs.
13395
13396 * mactoolbox.c (Vmac_ts_script_language_on_focus)
13397 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
13398 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
13399 is clicked.
13400 (x_activate_menubar): Remove extern for saved_menu_event_location.
13401 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
13402 Move from mac.c.
13403
134042008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13405
13406 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
13407 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
13408
134092008-04-23 Jason Rumney <jasonr@gnu.org>
13410
13411 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
13412 attributes only for local files.
13413
13414 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
13415 default to Qlocal.
13416
134172008-04-22 Juri Linkov <juri@jurta.org>
13418
13419 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
13420 read-buffer-to-switch instead of using the letter "B".
13421
134222008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
13423
13424 * fileio.c (Qdefault_directory): New variable.
13425 (Fread_file_name): Use it to pass `dir' to the completion functions.
13426
134272008-04-20 Chong Yidong <cyd@stupidchicken.com>
13428
13429 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
13430
134312008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
13432
13433 * keyboard.c (Vpre_help_message): Remove.
13434 (show_help_echo): Remove default C code.
13435
13436 * dired.c (directory_files_internal, file_name_completion):
13437 Only call ENCODE_FILE if the string is indeed decoded.
13438
134392008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
13440
13441 * Makefile.in (TOOLKIT_DEFINES): Remove.
13442 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
13443
134442008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13445
13446 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
13447 (mactoolbox.o): New target.
13448
13449 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
13450 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
13451
13452 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
13453 Use mac_set_frame_window_background instead of XSetWindowBackground.
13454 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
13455 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
13456 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
13457 instead of SetWindowTitleWithCFString.
13458 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
13459 Move function to mactoolbox.c.
13460 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
13461 Use mac_set_window_modified instead of SetWindowModified.
13462 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
13463 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
13464 (Fx_focus_frame): Use mac_front_non_floating_window instead of
13465 FrontNonFloatingWindow. Use mac_activate_window instead of
13466 ActivateWindow. Use mac_active_non_floating_window instead of
13467 ActiveNonFloatingWindow.
13468 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
13469 Use mac_show_hourglass and mac_hide_hourglass.
13470 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
13471 instead of GetGlobalMouse.
13472 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
13473 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
13474 Use mac_bring_window_to_front instead of BringToFront.
13475 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
13476 mactoolbox.c.
13477 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
13478 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
13479 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
13480 mactoolbox.c.
13481
13482 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
13483 (XtPointer): Move typedef from macmenu.c.
13484 (enum button_type): Move enum from macmenu.c.
13485 (widget_value): Move typedef from macmenu.c.
13486 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
13487 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
13488 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
13489 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
13490 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
13491 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
13492 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
13493 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
13494 (Selection): Move typedef from macselect.c.
13495 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
13496 macterm.c.
13497 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
13498 (mac_is_window_collapsed, mac_bring_window_to_front)
13499 (mac_send_window_behind, mac_hide_window, mac_show_window)
13500 (mac_collapse_window, mac_front_non_floating_window)
13501 (mac_active_non_floating_window, mac_activate_window)
13502 (mac_move_window_structure, mac_move_window, mac_size_window)
13503 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
13504
13505 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
13506 (enum mac_menu_kind): Move enum to mactoolbox.c.
13507 (min_menu_id): Move variable to mactoolbox.c.
13508 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
13509 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
13510 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
13511 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
13512 [TARGET_API_MAC_CARBON]: Likewise.
13513 (XtPointer): Move typedef to macgui.h.
13514 (enum button_type): Move enum to macgui.h.
13515 (widget_value): Move typedef to macgui.h.
13516 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
13517 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
13518 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
13519 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
13520 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
13521 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
13522 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
13523 (popup_activated_flag): Make variable non-static.
13524 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
13525 (add_menu_item, fill_menu, dispose_menus):
13526 Move functions to mactoolbox.c.
13527 (restore_show_help_function, menu_target_item_handler)
13528 (install_menu_target_item_handler, mac_handle_dialog_event)
13529 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
13530 [TARGET_API_MAC_CARBON]: Likewise.
13531 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
13532 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
13533 (find_and_call_menu_selection, name_is_separator): Make function
13534 non-static.
13535 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
13536 to mactoolbox.c.
13537 (set_frame_menubar): Don't call install_menu_quit_handler.
13538 (menu_item_selection): New variable.
13539 (mac_menu_show): Use create_and_show_popup_menu.
13540 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
13541 selection but set variable menu_item_selection. All uses changed.
13542 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
13543 Call install_menu_quit_handler. Move to mactoolbox.c.
13544
13545 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
13546 (Selection): Move typedef to macgui.h.
13547 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
13548 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
13549 Make variables non-static.
13550 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
13551 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
13552 Make functions non-static.
13553 (Vmac_service_selection) [MAC_OSX]: Likewise.
13554 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
13555 (mac_valid_selection_target_p, mac_clear_selection)
13556 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
13557 (mac_put_selection_value, mac_selection_has_target_p)
13558 (mac_get_selection_value, mac_get_selection_target_list)
13559 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
13560 Move functions to mactoolbox.c.
13561 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
13562 Likewise.
13563 (copy_scrap_flavor_data, mac_handle_service_event)
13564 (install_service_handler) [MAC_OSX]: Likewise.
13565 (syms_of_macselect) <Vmac_dnd_known_types>:
13566 Use mac_dnd_default_known_types.
13567
13568 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
13569 Move to mactoolbox.c.
13570 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
13571 (Fx_selection_owner_p): Add EXFUN.
13572 (install_window_handler, remove_window_handler, XSetWindowBackground):
13573 Remove externs.
13574 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
13575 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
13576 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
13577 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
13578 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
13579 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
13580 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
13581 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
13582 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
13583 (create_and_show_popup_menu, mac_get_selection_from_symbol)
13584 (mac_valid_selection_target_p, mac_clear_selection)
13585 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
13586 (mac_put_selection_value, mac_selection_has_target_p)
13587 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
13588 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
13589 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
13590 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
13591 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
13592 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
13593 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
13594 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
13595 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
13596
13597 * mactoolbox.c: New file.
13598
135992008-04-18 Jason Rumney <jasonr@gnu.org>
13600
13601 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
13602
136032008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
13604
13605 * character.c (Fmultibyte_char_to_unibyte):
13606 Return latin1 chars unchanged.
13607
13608 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
13609 relocated if it points to `name'.
13610
136112008-04-17 Kenichi Handa <handa@m17n.org>
13612
13613 * data.c (Faset): Allow setting a multibyte character in an
13614 ASCII-only unibyte string.
13615
13616 * lisp.h (STRING_SET_MULTIBYTE): New macro.
13617
136182008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
13619
13620 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
13621 done in config.h.
13622
136232008-04-16 Juanma Barranquero <lekktu@gmail.com>
13624
13625 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
13626 (Fchar_direction): Add usage in the docstring.
13627
136282008-04-15 Chong Yidong <cyd@stupidchicken.com>
13629
13630 * keyboard.c (read_key_sequence): Remove always-true checks.
13631
136322008-04-14 Jason Rumney <jasonr@gnu.org>
13633
13634 * w32font.c (w32font_open_internal): Set max_bounds.descent in
13635 compatibility struct, for better underline positioning.
13636
136372008-04-13 David Hansen <david.hansen@gmx.net>
13638
13639 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
13640 string.
13641
136422008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
13643
13644 * m/hp800.h (XUINT, XSET): Remove.
13645
136462008-04-12 Juanma Barranquero <lekktu@gmail.com>
13647
13648 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
13649 previous change.
13650
136512008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
13652
13653 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
13654 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
13655
136562008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
13657
13658 * keymap.h (map_keymap_canonical): Declare.
13659 * xmenu.c (single_keymap_panes): Use it.
13660
136612008-04-11 Glenn Morris <rgm@gnu.org>
13662
13663 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
13664 set the target's value to that of the alias.
13665
136662008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
13667
13668 * term.c (set_tty_color_mode): Left over typo.
13669
136702008-04-10 Michael Albinus <michael.albinus@gmx.de>
13671
13672 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
13673 only after check for file name handler functions. Signal, when
13674 native functionality is not supported.
13675 (syms_of_fileio): Declare it unconditionally.
13676
136772008-04-10 Jason Rumney <jasonr@gnu.org>
13678
13679 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
13680 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
13681
13682 * w32.c (logon_network_drive): Also logon to remote drives that
13683 are mapped to drive letters.
13684
136852008-04-10 Glenn Morris <rgm@gnu.org>
13686
13687 * xdisp.c (truncate-partial-width-windows): Doc fix.
13688
136892008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
13690
13691 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
13692 Move functions to minibuffer.el.
13693 (syms_of_fileio): Don't declare them.
13694
136952008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
13696
13697 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
13698 (syms_of_minibuf): Remove its initialization.
13699
13700 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
13701
137022008-04-09 Juanma Barranquero <lekktu@gmail.com>
13703
13704 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
13705
137062008-04-09 Jason Rumney <jasonr@gnu.org>
13707
13708 * makefile.w32-in (distclean): Delete makefile too.
13709 (maintainer-clean): New target.
13710
13711 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
13712
13713 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
13714 for new font backend and composite cases.
13715
137162008-04-09 Jan Djärv <jan.h.d@swipnet.se>
13717
13718 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
13719 Most of the code moved to run_timers.
13720 (do_pending_atimers): Call run_timers.
13721 (run_timers): New function.
13722
13723 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
13724 run atimers.
13725
13726 * process.c (wait_reading_process_output): The same as above.
13727
137282008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
13729
13730 * minibuf.c (last_exact_completion): Remove variable.
13731 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
13732 (complete_and_exit_1, complete_and_exit_2)
13733 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
13734 (Fdisplay_completion_list, display_completion_list_1)
13735 (Fminibuffer_completion_help, Fself_insert_and_exit)
13736 (Fexit_minibuffer, Fminibuffer_message): Move functions to
13737 minibuffer.el.
13738 (syms_of_minibuf): Remove corresponding initializations.
13739
13740 * keyboard.c (Qdeactivate_mark): New var.
13741 (command_loop_1): Use it to call `deactivate-mark'.
13742 (syms_of_keyboard): Initialize it.
13743
13744 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
13745 to another frame.
13746 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
13747 Don't call set_tty_color_mode.
13748 (store_frame_param): Reset previous_frame rather than call
13749 set_tty_color_mode.
13750 * term.c (set_tty_color_mode): Rewrite.
13751 * dispextern.h (set_tty_color_mode): New type.
13752 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
13753
137542008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
13755
13756 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
13757 for generic chars, which do not exist any more in emacs-unicode.
13758
137592008-04-08 Michael Albinus <michael.albinus@gmx.de>
13760
13761 * coding.c (detect_coding_emacs_mule)
13762 (Ffind_operation_coding_system): Fix typo.
13763
137642008-04-08 Jason Rumney <jasonr@gnu.org>
13765
13766 * w32uniscribe.c (SNAME): Extract only symbol name.
13767
13768 * w32font.h (struct w32_metric_cache): New struct.
13769 (w32font_info): Use it.
13770 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
13771 (CACHE_BLOCKSIZE): New constants.
13772
13773 * w32font.c (Qja, Qko, Qzh): New symbols.
13774 (syms_of_w32font): Initialise them.
13775 (font_matches_spec): Use them to filter by language.
13776 (recompute_cached_metrics): Remove function.
13777 (compute_metrics, clear_cached_metrics): New functions.
13778 (w32font_encode_char): Use them to manage metric cache.
13779 (w32font_text_extents): Cache metrics for all glyphs on demand.
13780 Delay converting glyph indices to WORD until needed.
13781 (w32font_open_internal): Initialize metric cache to empty.
13782 (registry_to_w32_charset): Charset should always be a symbol.
13783 (fill_in_logfont, list_all_matching_fonts): Family should
13784 always be a symbol.
13785
137862008-04-06 Jason Rumney <jasonr@gnu.org>
13787
13788 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
13789 Give up if glyph indices not supported. Use uniscribe obtained
13790 ABC widths for individual metrics. Map glyph clusters back to
13791 characters using fClusterStart flag. Return number of glyphs
13792 produced, not chars processed.
13793 (uniscribe_shape): Map char at FROM to current glyph.
13794
137952008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13796
13797 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
13798 Use SetMenuItemHierarchicalMenu.
13799
138002008-04-05 Jason Rumney <jasonr@gnu.org>
13801
13802 * image.c (pbm_load): Allow color values up to 65535.
13803 Throw an error if max_color_idx is outside the supported range.
13804 Report an error when image size is invalid.
13805 Read two bytes at a time when raw images have max_color_idx above 255.
13806
138072008-04-05 Eli Zaretskii <eliz@gnu.org>
13808
13809 * w32.c (readdir): If FindFirstFile/FindNextFile return in
13810 cFileName a file name that includes `?' characters, use the 8+3
13811 alias in cAlternateFileName instead.
13812
138132008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
13814
13815 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
13816 append "CCL: Quitted" when the CCL program is quitted.
13817 (setup_ccl_program): Initialize ccl->quit_silently to zero.
13818
13819 * ccl.h (struct ccl_program): New member quit_silently.
13820
138212008-04-05 Chong Yidong <cyd@stupidchicken.com>
13822
13823 * search.c (compile_pattern_1): Treat non-nil and non-string of
13824 search-spaces-regexp as nil.
13825
13826 * minibuf.c (Fassoc_string): Tweak docstring.
13827
138282008-04-05 Eli Zaretskii <eliz@gnu.org>
13829
13830 * dired.c (Ffile_attributes): Support inode numbers wider than 32
13831 bits. Remove ugly WINDOWSNT-specific kludge introduced on
13832 2008-03-14 to force inode be positive.
13833
13834 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
13835 _S_* ones, since we now use our own sys/stat.h.
13836 (stat, fstat): Don't mangle the inode number.
13837 (init_user_info): Don't restrict UID and GID to 0-60000 range.
13838
138392008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
13840
13841 * frame.h (struct frame): Give one more bit to `visible' since we use
13842 values larger than 1 to indicate obscured frames on ttys.
13843
13844 * keymap.c (Qkeymap_canonicalize): New var.
13845 (Fmap_keymap_internal): New fun.
13846 (describe_map): Use keymap-canonicalize.
13847
13848 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
13849 (Fundo_boundary): Set them.
13850 (syms_of_undo): Initialize them.
13851 (record_point): Use them instead of last_point_position*.
13852 (last_undo_buffer): Change type.
13853
138542008-04-04 Jason Rumney <jasonr@gnu.org>
13855
13856 * w32font.c (w32font_text_extents): Use font's ascent and descent.
13857 (recompute_cached_metrics): Don't set ascent and descent per char.
13858
13859 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
13860 (uniscribe_check_otf): Add GC protection before consing.
13861 Rearrange loop for counting features.
13862
138632008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
13864
13865 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
13866 buffer with byte-size of source buffer.
13867
138682008-04-03 Chong Yidong <cyd@stupidchicken.com>
13869
13870 * callint.c (Fcall_interactively): Handle temporary region even
13871 when shift-select-mode is off.
13872
138732008-04-03 Jason Rumney <jasonr@gnu.org>
13874
13875 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
13876
138772008-04-03 Kenichi Handa <handa@m17n.org>
13878
13879 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
13880 (CATEGORY_MASK_UTF_16): Likewise.
13881 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
13882 binary file.
13883 (detect_coding): Add null-byte detection for a binary file.
13884 (detect_coding_system): Likewise.
13885
138862008-04-03 Jason Rumney <jasonr@gnu.org>
13887
13888 * w32uniscribe.c: New file.
13889
13890 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
13891
13892 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
13893
13894 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
13895 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
13896 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
13897 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
13898 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
13899 (Qphonetic): New symbols.
13900 (syms_of_w32font): Initialize them.
13901 (font_supported_scripts): Use them.
13902 (w32font_list_family): List all charsets.
13903 (w32font_text_extents, recompute_cached_metrics): Fix metric
13904 calculations.
13905 (w32_enumfont_pattern_entity): Make full_type a DWORD.
13906 Give opentype fonts their own format.
13907 (font_matches_spec): New arguments backend and logfont.
13908 Handle :otf spec for uniscribe backend.
13909 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
13910 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
13911
13912 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
13913 font backend.
13914 (globals_of_w32fns): Initialize uniscribe font backend.
13915
13916 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
13917 dependencies.
13918 (w32uniscribe.$(O)): New file to build.
13919 (FONT_OBJ): Include w32uniscribe.$(O).
13920 (LIBS): Add uniscribe libraries.
13921
13922 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
13923
139242008-04-02 Chong Yidong <cyd@stupidchicken.com>
13925
13926 * callint.c (Vshift_select_mode): New var.
13927 (Finteractive): Document new ^ spec.
13928 (Fcall_interactively): Call handle-shift-selection if the ^ spec
13929 is present.
13930
13931 * keyboard.c (Vthis_command_keys_shift_translated): New var.
13932 (command_loop_1): Avoid running the direct display versions of
13933 forward-char and backward-char if shift-selection may occur.
13934 (read_key_sequence): Set Vthis_command_keys_shift_translated if
13935 shift-translation takes place.
13936
13937 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
13938 avoid clobbering by define-minor-mode.
13939
13940 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
13941 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
13942
13943 * syntax.c (Fforward_word): Add ^ interactive spec.
13944
13945 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
13946 (Fscroll_right): Add ^ interactive spec.
13947
139482008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
13949
13950 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
13951
13952 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
13953
13954 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
13955
139562008-03-31 Juri Linkov <juri@jurta.org>
13957
13958 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
13959
139602008-03-30 Jan Djärv <jan.h.d@swipnet.se>
13961
13962 * gtkutil.c (xg_set_geometry): Fix indentation.
13963 (xg_resize_outer_widget): Remove.
13964 (x_wm_size_hint_off): Fix indentation.
13965 (xg_frame_set_char_size): Call flush_and_sync after
13966 gtk_window_resize.
13967 (x_wm_set_size_hint): Pass NULL as geometry window to
13968 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
13969 Add menu bar and tool bar height to base height.
13970 (xg_update_frame_menubar, free_frame_menubar)
13971 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
13972 (update_frame_tool_bar, free_frame_tool_bar):
13973 Change xg_resize_outer_widget to xg_frame_set_char_size.
13974
139752008-03-30 Michael Albinus <michael.albinus@gmx.de>
13976
13977 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
13978 (Fdbus_call_method): New parameter TIMEOUT.
13979 (dbus-send-signal): Optimize UNGCPRO call.
13980
139812008-03-29 Juri Linkov <juri@jurta.org>
13982
13983 * window.c (Fdisplay_buffer): Move call to
13984 Vsplit_window_preferred_function out of conditions that check
13985 if window is eligible for vertical splitting.
13986 When Vsplit_window_preferred_function is non-nil, call it and use
13987 its non-nil return value as window. Otherwise, continue doing
13988 vertical splitting using Fsplit_window with arg horflag=nil.
13989 (syms_of_window) <Vsplit_window_preferred_function>: Change the
13990 default value from `split-window' to nil.
13991
139922008-03-29 Juri Linkov <juri@jurta.org>
13993
13994 * callint.c (Fcall_interactively): Revert 2008-03-16 change
13995 for interactive code letters 'b' and 'B'.
13996
139972008-03-29 Eli Zaretskii <eliz@gnu.org>
13998
13999 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
14000 multibyte string.
14001
140022008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
14003
14004 * keyboard.c (pending_funcalls): New var.
14005 (timer_check): Run it.
14006 (syms_of_keyboard): Initialize it.
14007 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
14008 (Vdelete_terminal_functions): New vars.
14009 (syms_of_terminal): Initialize them.
14010 (Fdelete_terminal): Run delete-terminal-functions.
14011 * xdisp.c (safe_eval): Rewrite.
14012 (safe_call2): New fun.
14013 * frame.c (Qdelete_frame_functions): New var.
14014 (syms_of_frame): Initialize it.
14015 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
14016 * lisp.h (safe_call2, pending_funcalls): Declare.
14017
140182008-03-28 Andreas Schwab <schwab@suse.de>
14019
14020 * indent.c (Fmove_to_column): Move declaration before statements.
14021
140222008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
14023
14024 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
14025 (struct frame): Use bit fields for boolean vars.
14026
14027 * process.c (server_accept_connection): Simplify naming.
14028 (emacs_get_tty_pgrp): Use SDATA.
14029
14030 * coding.c (decode_coding_object): Fix last change.
14031
140322008-03-27 Jason Rumney <jasonr@gnu.org>
14033
14034 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
14035
140362008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
14037
14038 * charset.c (Fdefine_charset_internal): Change the way of
14039 registering charsets in Vcharset_order_list.
14040 (syms_of_charset): Make the charset `eight-bit' supplementary.
14041
140422008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
14043
14044 * regex.c (EXTEND_BUFFER): Change order of pointer addition
14045 operations, to avoid having the difference between pointers
14046 overflow.
14047
140482008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
14049
14050 * indent.c (check_display_width): New fun.
14051 (scan_for_column): Use it.
14052
14053 * data.c (syms_of_data): Mark most-positive-fixnum and
14054 most-negative-fixnum as constants.
14055
14056 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
14057
14058 * indent.c (scan_for_column): Extract from current_column_1.
14059 Merge with the same code from Fmove_to_column.
14060 (current_column_1, Fmove_to_column): Use it.
14061
140622008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
14063
14064 * keymap.c (map_keymap_internal): New fun.
14065 (map_keymap): Use it.
14066 (Fmap_keymap_internal): New fun.
14067 (Fmap_keymap): Remove left-out test from before make_save_value.
14068
14069 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
14070
14071 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
14072 Use XCAR/XCDR.
14073
14074 * process.h (struct Lisp_Process): Remove filter_multibyte.
14075 * process.c (QCfilter_multibyte): Remove.
14076 (setup_process_coding_systems): Don't use filter_multibyte.
14077 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
14078 (read_process_output): Don't adjust multibyteness to filter_multibyte.
14079 (Fset_process_filter_multibyte): Change the coding-system to
14080 approximate the previous behavior.
14081 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
14082 coding-system.
14083
14084 * coding.c (decode_coding_object): When not decoding into a buffer,
14085 obey the coding system's preference of (uni|multi)byte.
14086
140872008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
14088
14089 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
14090 every char is changed and has a different byte-length.
14091 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
14092 Fix int -> EMACS_INT.
14093
140942008-03-23 David Hansen <david.hansen@gmx.net>
14095
14096 * dbusbind.c (xd_read_message): Remove extra copying of message
14097 strings. Check for NULL `interface' or `member'.
14098
140992008-03-22 Eli Zaretskii <eliz@gnu.org>
14100
14101 * w32.c (readdir): If FindFirstFile/FindNextFile return in
14102 cFileName a file name that includes `?' characters, use the 8+3
14103 alias in cAlternateFileName instead.
14104
141052008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
14106
14107 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
14108
141092008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
14110
14111 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
14112 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
14113 work on current_buffer only instead (that was already the case
14114 for some of the code anyway).
14115 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
14116 (temp_set_point, temp_set_point_both): Use EMACS_INT.
14117 (SET_PT, SET_PT_BOTH): Adjust.
14118 * intervals.h (set_point, temp_set_point, set_point_both)
14119 (temp_set_point_both): Remove redundant declarations.
14120
141212008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
14122
14123 * fileio.c (Finsert_file_contents):
14124 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
14125 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
14126 when buffer != current_buffer anyway.
14127
141282008-03-20 Andreas Schwab <schwab@suse.de>
14129
14130 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
14131 as default.
14132
141332008-03-19 Jason Rumney <jasonr@gnu.org>
14134
14135 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
14136 (syms_of_w32fns): Initialize them.
14137 (HOURGLASS_ID): New constant.
14138 (x_window_to_frame): Don't check hourglass_window.
14139 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
14140 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
14141 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
14142 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
14143 Only change the cursor if hourglass is not active.
14144 (Fx_create_frame): Initialize frame's current_cursor.
14145 (hourglass_atimer): Remove.
14146 (hourglass_started): New function.
14147 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
14148 (show_hourglass): Adapt to w32, changing argument to frame.
14149
14150 * w32term.h (struct w32_output): Remove hourglass_window.
14151 Add current_cursor.
14152
14153 * eval.c (call_debugger, Fsignal):
14154 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
14155 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
14156 (Fexecute_extended_command, cancel_hourglass_unwind):
14157 * minibuf.c (read_minibuf):
14158 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
14159
141602008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
14161
14162 * window.c (run_funs): New fun.
14163 (run_window_configuration_change_hook): Use it to run the buffer-local
14164 and the global part of the hook.
14165
14166 * xdisp.c (format_mode_line_unwind_data): Add window argument.
14167 (unwind_format_mode_line): Restore selected window.
14168 (x_consider_frame_title, Fformat_mode_line): Set selected window.
14169
141702008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
14171
14172 * editfns.c (Fchar_equal): Check they are valid characters.
14173
14174 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
14175
141762008-03-17 Andreas Schwab <schwab@suse.de>
14177
14178 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
14179 against a charset.
14180
14181 * lisp.h (Fbuffer_list): Declare.
14182
141832008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 14184
aac0c6e3
MR
14185 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
14186 handlebox_widget is != 0.
14187
141882008-03-16 Juri Linkov <juri@jurta.org>
14189
14190 * callint.c (Fcall_interactively): For interactive code letters
14191 'b' and 'B' put the buffer list into the list of default "future"
14192 values of the minibuffer.
14193
141942008-03-16 Andreas Schwab <schwab@suse.de>
14195
14196 * keyboard.c (read_key_sequence): Fix downcasing of letters with
14197 modifiers.
14198
14199 * regex.c (re_match_2_internal): Correct matching of a charset
14200 against latin-1 characters.
14201
142022008-03-16 Kenichi Handa <handa@m17n.org>
14203
14204 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
14205 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
14206 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
14207 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
14208 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
14209 CHAR_STRING_ADVANCE.
14210 (produce_chars): Fix for the case that the source and the
14211 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
14212 instead of CHAR_STRING_ADVANCE.
14213 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
14214 STRING_CHAR_ADVANCE.
14215
142162008-03-15 Andreas Schwab <schwab@suse.de>
14217
14218 * regex.c (re_match_2_internal): Correct matching of eight bit
14219 characters in unibyte strings.
14220
142212008-03-15 Martin Rudalics <rudalics@gmx.at>
14222
14223 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
14224 at end of range when it coincides with the end of the buffer.
14225
142262008-03-14 Eli Zaretskii <eliz@gnu.org>
14227
14228 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
14229
14230 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
14231
142322008-03-14 Jason Rumney <jasonr@gnu.org>
14233
14234 * editfns.c (initial_tz): New variable.
14235 (syms_of_editfns): Initialize it.
14236 (Fset_time_zone_rule): Set it when first called.
14237 Use it when TZSTRING is nil.
14238
14239 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
14240 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
14241 (monitor_from_point_fn, get_monitor_info_fn): New globals.
14242 (globals_of_w32fns): Initialize them.
14243 (compute_tip_xy): Use them to position tooltips.
14244
142452008-03-14 Glenn Morris <rgm@gnu.org>
14246
14247 * emacs.c (main): Revert previous change.
14248 (standard_args): Revert -internal-script back to -scriptload,
14249 and remove the long-option form.
14250
142512008-03-13 Glenn Morris <rgm@gnu.org>
14252
14253 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
14254 Remove option -enable-font-backend.
14255
142562008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
14257
14258 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
14259
142602008-03-11 Jan Djärv <jan.h.d@swipnet.se>
14261
14262 * xterm.c (x_connection_closed): For GTK: If this is the last
14263 terminal just exit without closing the display.
14264
142652008-03-11 Jason Rumney <jasonr@gnu.org>
14266
14267 * w32font.c (w32font_full_name): Use floor to round.
14268
f0131492 142692008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
14270
14271 * sound.c (alsa_configure): Declare vol at beginning of block.
14272
14273 * fontset.c (Ffontset_info): Remove extra semicolon.
14274
142752008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
14276
14277 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
14278 size of resulting string.
14279
142802008-03-10 Jason Rumney <jasonr@gnu.org>
14281
14282 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
14283
142842008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14285
14286 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
14287 Don't pretend as if characters with display property haven't been
14288 consumed for string-replacing-string case.
14289
142902008-03-08 Kim F. Storm <storm@cua.dk>
14291
14292 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
14293 (get_next_display_element, next_element_from_string)
14294 (next_element_from_ellipsis, next_element_from_buffer): Use it.
14295
142962008-03-08 Andreas Schwab <schwab@suse.de>
14297
14298 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
14299
143002008-03-06 Jason Rumney <jasonr@gnu.org>
14301
14302 * w32font.c (w32_registry): Take font_type argument. Use ANSI
14303 when charset not specified. Only translate ANSI to unicode when
14304 font_type is truetype.
14305 (w32font_coverage_ok): New function.
14306 (add_font_entity_to_list): Use it to filter unsuitable fonts.
14307
143082008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
14309
14310 * lread.c (Fread_char): Resolve modifiers.
14311 (Fread_char_exclusive): Likewise.
14312
14313 * character.c (char_resolve_modifier_mask): New function.
14314 (char_string): Use char_resolve_modifier_mask.
14315 (Fchar_resolve_modifiers): New function.
14316 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
14317 function.
14318
143192008-03-04 Jason Rumney <jasonr@gnu.org>
14320
14321 * makefile.w32-in: Always include w32font.c in the build.
14322 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
14323
143242008-03-04 Andreas Schwab <schwab@suse.de>
14325
14326 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
14327 (versionclean): Likewise.
14328
143292008-03-04 Juanma Barranquero <lekktu@gmail.com>
14330
14331 * .cvsignore: Add oo.
14332
143332008-03-03 Andreas Schwab <schwab@suse.de>
14334
14335 * coding.c (decode_coding_object): Inhibit gap shrinking while
14336 decoding in place.
14337
143382008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
14339
14340 * w32term.c: Remove unused include "gnu.h".
14341 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
14342
14343 * gnu.h: Rename to ...
14344 * emacs-icon.h: ... this.
14345 * xterm.c: Use emacs-icon.h instead of gnu.h.
14346 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
14347
143482008-03-03 Juanma Barranquero <lekktu@gmail.com>
14349
14350 * w32font.c: Include math.h.
14351
143522008-03-03 Jason Rumney <jasonr@gnu.org>
14353
14354 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
14355 Compute options separately.
14356 (w32font_open_internal): Set glyph_idx before caching metrics.
14357
14358 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
14359 Define if system headers don't.
14360 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
14361 (w32font_encode_char): Don't declare here.
14362
14363 * w32font.c (Quniscribe, QCformat): New symbols.
14364 (syms_of_w32font): Define them.
14365 (w32font_has_char): Indicate uncertainty.
14366 (w32font_encode_char): Encode as glyph point. Make static.
14367 (recompute_cached_metrics): New function.
14368 (w32font_open_internal): Use it. Set font to use glyph points
14369 initially. Set format based on type of font.
14370 (w32font_text_extents, w32font_draw): Optionally use glyph points.
14371 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
14372 on it. Set format based on information available here.
14373 (add_font_entity_to_list): Identify backend based on opentype_only.
14374
143752008-03-02 Andreas Schwab <schwab@suse.de>
14376
14377 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
14378
14379 * coding.c (decode_coding_big5, produce_chars):
14380 Fix typos in last change.
14381
143822008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
14383
14384 * gnu.h: New icon.
14385
143862008-03-02 Kenichi Handa <handa@m17n.org>
14387
14388 * coding.c (decode_coding_utf_8): When eol-type of CODING is
14389 `dos', don't decode '\r' if that is the last in the source.
14390 (decode_coding_utf_16, decode_coding_emacs_mule)
14391 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14392 (decode_coding_raw_text, decode_coding_charset): Likewise.
14393 (produce_chars): Don't decode EOL here. Use EMACS_INT.
14394
143952008-03-01 Jason Rumney <jasonr@gnu.org>
14396
14397 * w32font.c (w32font_full_name): Report point size for scalable fonts.
14398
143992008-03-01 Kim F. Storm <storm@cua.dk>
14400
14401 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
14402
144032008-03-01 Jason Rumney <jasonr@gnu.org>
14404
14405 * w32font.c (w32font_full_name): New function.
14406 (w32font_open_internal): Use it.
14407
144082008-03-01 Kim F. Storm <storm@cua.dk>
14409
14410 * dispnew.c (line_draw_cost): Fix invalid glyph check.
14411
144122008-03-01 Jason Rumney <jasonr@gnu.org>
14413
14414 * font.c (font_unparse_fcname): Increase len when style is a symbol.
14415
144162008-03-01 Jan Djärv <jan.h.d@swipnet.se>
14417
14418 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
14419 xg_frame_resized when the event is for the edit widget.
14420
14421 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
14422
14423 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
14424 set_char_size.
14425 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
14426 operations on widgets here. Just set frame size if needed.
14427 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
14428 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
14429 (x_wm_set_size_hint): Set size hints on the edit widget only, not
14430 the whole frame.
14431 (xg_create_tool_bar): Move attachment of the tool bar to
14432 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
14433 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
14434
144352008-03-01 Jason Rumney <jasonr@gnu.org>
14436
14437 * w32fns.c (w32_msg_pump): Disable debug code.
14438
144392008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14440
14441 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
14442
144432008-02-29 Chong Yidong <cyd@stupidchicken.com>
14444
14445 * xdisp.c (next_overlay_string): Don't set
14446 overlay_strings_at_end_processed_p if we're currently reading from
14447 a display string.
14448
144492008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
14450
14451 * xdisp.c (get_overlay_strings_1): Fix typo.
14452
144532008-02-29 Chong Yidong <cyd@stupidchicken.com>
14454
14455 * xdisp.c (get_overlay_strings_1): Add missing argument type.
14456
144572008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
14458
14459 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
14460
14461 * xdisp.c (display_mode_element): Cancel the previous change.
14462 (decode_mode_spec): Likewise.
14463 (handle_auto_composed_prop): Don't make composition if it->string
14464 is a string.
14465
144662008-02-27 Kim F. Storm <storm@cua.dk>
14467
14468 * lisp.h (GLYPH): Change type from int to struct with separate char
14469 and face_id members.
14470 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
14471 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
14472 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
14473 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
14474 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
14475 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
14476 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
14477 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
14478 handle new Lisp glyph code encoding, either an integer or a cons.
14479
14480 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
14481 (GLYPH_ALIAS): Delete.
14482 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
14483 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
14484 (GLYPH_FROM_CHAR): Replace macro by ...
14485 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
14486
14487 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
14488 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
14489 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
14490 (GLYPH_INVALID_P): New macro.
14491 (spec_glyph_lookup_face): Update prototype.
14492
14493 * dispnew.c (line_draw_cost): Adapt to new glyph type.
14494 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
14495 new glyph code encoding.
14496 (spec_glyph_lookup_face): No return value; update passed glyph instead.
14497 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
14498
14499 * xdisp.c (get_next_display_element, next_element_from_display_vector):
14500 Adapt to new glyph type and new glyph code encoding.
14501
14502 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
14503
14504 * indent.c (current_column, current_column_1, Fmove_to_column)
14505 (compute_motion): Adapt to new glyph code encoding.
14506
14507 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
14508
145092008-02-27 Chong Yidong <cyd@stupidchicken.com>
14510
14511 * process.c (wait_reading_process_output): Check for window
14512 changes caused by timers.
14513 Suggested by Johan Bockgård.
14514
145152008-02-27 Glenn Morris <rgm@gnu.org>
14516
14517 * emacs.c (USAGE1): Add `--disable-font-backend'.
14518
145192008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
14520
14521 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
14522 is made to the buffer.
14523
145242008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
14525
14526 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
14527 (face_at_string_position):
14528 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
14529 (face_at_string_position):
14530 * xdisp.c (display_string, next_overlay_change):
14531 * buffer.h (overlays_at):
14532 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
14533 Update callers.
14534
145352008-02-26 Chong Yidong <cyd@stupidchicken.com>
14536
14537 * editfns.c (Fformat): Doc fix.
14538
145392008-02-26 Juanma Barranquero <lekktu@gmail.com>
14540
14541 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
14542 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
14543 (Ffont_otf_alternates, Fquery_font): Doc fixes.
14544
145452008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
14546
14547 * buffer.c (Fbuffer_swap_text): New function.
14548 (syms_of_buffer): Defsubr it.
14549
145502008-02-25 Chong Yidong <cyd@stupidchicken.com>
14551
14552 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
14553
145542008-02-25 Jason Rumney <jasonr@gnu.org>
14555
14556 * w32font.c (w32font_draw): Draw one character at a time when padding.
14557
145582008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
14559
14560 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
14561 Handle a nil arg. Use run_window_configuration_change_hook.
14562 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
14563 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
14564 Use run_window_configuration_change_hook.
14565
145662008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
14567
14568 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
14569 1-pixel width.
14570
145712008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
14572
14573 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
14574 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
14575 if the glyph in the font is zero pixel with.
14576
14577 * dispextern.h (struct glyph_string): New member padding_p.
14578
14579 * w32font.c (w32font_draw): Pay attention to s->padding_p.
14580
14581 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
14582
14583 * xfont.c (xfont_draw): Pay attention to s->padding_p.
14584
14585 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
14586
14587 * font.c: If the font driver doesn't have `shape' function, return Qnil.
14588
145892008-02-25 Jason Rumney <jasonr@gnu.org>
14590
14591 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
14592
145932008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
14594
14595 Allow fine-grained image-cache flushing.
14596 * dispextern.h (struct image): Add `dependencies' field.
14597 (clear_image_caches): Change arg to Lisp_Object.
14598 * image.c (make_image): Initialize `dependencies' field.
14599 (clear_image_cache): Change arg to allow fine-grained flushing.
14600 Perform the flush even if image-cache-eviction-delay is nil.
14601 (clear_image_caches): Change arg to Lisp_Object.
14602 (Fclear_image_cache): Expand meaning of the argument.
14603 (mark_image): Mark `dependencies' field.
14604 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
14605 (lface_hash): Use XHASH rather than XFASTINT.
14606 (face_at_buffer_position): Fix int -> EMACS_INT position.
14607 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
14608 (select_frame_for_redisplay): Remove code duplication.
14609 (redisplay_internal): Adapt arg to call to clear_image_caches.
14610
146112008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
14612
14613 * s/vms4-0.h:
14614 * s/vms4-2.h:
14615 * s/vms4-4.h:
14616 * s/vms5-5.h: Remove, unused.
14617
14618 * s/irix5-2.h:
14619 * s/irix6-0.h:
14620 * s/riscos5.h:
14621 * s/mach-bsd4-3.h:
14622 * m/mips4.h: Remove files for obsolete systems.
14623
14624 * Makefile.in:
14625 * filelock.c:
14626 * unexmips.c:
14627 * m/hp9000s300.h:
14628 * m/iris4d.h:
14629 * s/aix3-1.h:
14630 * s/hpux.h:
14631 * s/msdos.h:
14632 * s/usg5-0.h:
14633 * s/usg5-2-2.h:
14634 * s/usg5-2.h:
14635 * s/usg5-3.h: Remove references to obsolete variables.
14636
14637 * s/irix5-0.h: Remove, move all the contents ...
14638 * s/irix6-5.h: ... here. Simplify.
14639 * config.in: Regenerate.
14640
146412008-02-24 Jason Rumney <jasonr@gnu.org>
14642
14643 * w32term.c (x_draw_glyph_string_background): Clear the background
14644 manually when cleartype is in use.
14645 (x_draw_glyph_string_foreground): Draw text transparently when
14646 cleartype is in use.
14647
14648 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
14649 a font into it unless we have to.
14650
146512008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
14652
14653 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
14654 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 14655
aac0c6e3
MR
146562008-02-18 Jason Rumney <jasonr@gnu.org>
14657
14658 * w32fns.c (Fw32_shell_execute): Encode parameters.
14659
146602008-02-09 Eli Zaretskii <eliz@gnu.org>
14661
14662 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
14663
146642008-02-05 Juanma Barranquero <lekktu@gmail.com>
14665
14666 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
14667
146682008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
14669
14670 * xterm.c (x_set_offset): Don't change the gravity if
14671 CHANGE_GRAVITY is -1.
14672
146732008-02-23 Chong Yidong <cyd@stupidchicken.com>
14674
14675 * fileio.c (auto_save_error_occurred): New var.
14676 (auto_save_error): Set it.
14677 (Fdo_auto_save): Don't overwrite the error message if an auto-save
14678 error occurred.
14679
146802008-02-23 Eli Zaretskii <eliz@gnu.org>
14681
14682 * w32.c (globals_of_w32): Add initializations for
14683 g_b_init_get_sid_sub_authority and
14684 g_b_init_get_sid_sub_authority_count.
14685
146862008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
14687
14688 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
14689 (font_parse_xlfd): Use them for sanity check.
14690 (Finternal_set_font_style_table): Make sure the table is bijective.
14691
14692 Consolidate the image_cache to the terminal struct.
14693 * termhooks.h (P_): Remove redundant def.
14694 (struct terminal): New field `image_cache'.
14695 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
14696 of FRAME_X_IMAGE_CACHE.
14697 * xterm.h (struct x_display_info): Remove image_cache field.
14698 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
14699 * w32term.h (struct w32_display_info): Remove image_cache field.
14700 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
14701 * macterm.h (struct mac_display_info): Remove image_cache field.
14702 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
14703 * xterm.c (x_term_init):
14704 * w32term.c (w32_term_init):
14705 * macterm.c (mac_term_init): Set the image_cache in the terminal.
14706 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
14707 Remove declarations.
14708 (clear_image_caches, mark_image_cache): New declarations.
14709 * xfaces.c (clear_face_cache):
14710 * xdisp.c (redisplay_internal): Use clear_image_caches.
14711 * image.c (clear_image_cache): Don't check that a frame is on
14712 a window-system before checking if it shares the same cache.
14713 (clear_image_caches): New function.
14714 (Fclear_image_cache): Use it.
14715 (mark_image): Move from allo.c.
14716 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
14717 * alloc.c (mark_image, mark_image_cache): Move to image.c.
14718 (mark_object): Don't call mark_image_cache for frames.
14719 (mark_terminals): Call mark_image_cache.
14720
14721 * lisp.h (Fdelete_terminal): Declare.
14722
14723 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
14724 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
14725 wrong_type_argument.
14726
147272008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
14728
14729 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
14730 malayalam.el, and tamil.el. Add sinhala.el.
14731
147322008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
14733
14734 * xterm.c (x_connection_closed): Consolidate identical tests.
14735 (x_delete_terminal): Don't crash if called via x_connection_closed.
14736
147372008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
14738
14739 * xdisp.c (decode_mode_spec): New arg string.
14740 (display_mode_element): Adjust for the above change.
14741
147422008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
14743
14744 * callint.c (Fcall_interactively): Use AREF.
14745
147462008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
14747
14748 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
14749
147502008-02-18 Jan Djärv <jan.h.d@swipnet.se>
14751
14752 * xfns.c (Fx_show_tip): Set string to " " if empty.
14753
147542008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
14755
14756 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
14757 with Qt.
14758
147592008-02-17 Kenichi Handa <handa@m17n.org>
14760
14761 * ftfont.c (ftfont_shape): Return Lispy number.
14762
14763 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
14764 for GCs.
14765 (Finternal_set_font_selection_order): Call font_update_sort_order
14766 only when enable_font_backend is set.
14767 (realize_x_face): Set face->font_info to that of default face only
14768 when enable_font_backend is set.
14769
14770 * xdisp.c (handle_composition_prop): Set it->c to the fist
14771 character of the composed region.
14772 (fill_composite_glyph_string): Set base_face->font_info to
14773 s->font_info. Get a face for ascii from base_face->ascii_face.
14774 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
14775 with a face already decided.
14776 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
14777 non-negative.
14778 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
14779 call font_prepare_composition unconditionally.
14780
14781 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
14782
14783 * xterm.h (struct x_display_info): New member font.
14784
14785 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
14786 (x_set_mouse_face_gc, x_new_font): Likewise.
14787 (x_term_init): Setup display_info->font.
14788 (x_delete_terminal): Free display_info->font.
14789
14790 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
14791
14792 * ftxfont.c (ftxfont_default_fid): Delete it.
14793 (ftxfont_open): Set xfont->fid to 0.
14794 (ftxfont_end_for_frame): Clear data specific to the frame and the
14795 font-driver.
14796
14797 * xftfont.c (xftfont_default_fid): Delete it.
14798 (xftfont_open): Set xfont->fid to 0.
14799
14800 * fontset.c (FONTSET_OBJLIST): New macro.
14801 (fontset_find_font): Update font-object list of the fontset.
14802 (free_realized_fontset): New function.
14803 (free_face_fontset): Call free_realized_fontset.
14804 (Ffont_info): Call font_close_object only when enable_font_backend
14805 is set.
14806
14807 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
14808 [HAVE_NTGUI]: Include w32term.h.
14809 [MAC_OS]: Include macterm.ch.
14810 (font_otf_ValueRecord): Use make_number.
14811 (font_finish_cache): Fix handling of reference count.
14812 (font_clear_cache): Update num_fonts.
14813 (font_open_entity): Update smallest_char_width and
14814 smallest_font_height of the frame.
14815 (font_close_object): Update num_fonts.
14816 (Fclear_font_cache): Fix finding the target cache data.
14817
148182008-02-16 Glenn Morris <rgm@gnu.org>
14819
14820 * fontset.c (Finternal_char_font): Fix compilation warning.
14821
148222008-02-16 Eli Zaretskii <eliz@gnu.org>
14823
14824 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
14825 instead of char arrays. Enlarge the size of array passed to
14826 get_token_information.
14827
14828 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
14829 warnings.
14830
148312008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
14832
14833 * .gdbinit: Don't set `args', it breaks gdb --args.
14834
148352008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
14836
14837 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
14838 within a narrowed buffer.
14839
148402008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
14841
14842 * coding.c (decode_coding_object, encode_coding_object):
14843 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
14844
148452008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
14846
14847 * coding.c (coding_set_destination): Use BEG_BYTE rather than
14848 hardcoding 1.
14849 (detect_coding_system):
14850 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
14851 (string_char_to_byte, string_byte_to_char, insert_from_gap):
14852 * insdel.c (insert_from_gap):
14853 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
14854 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
14855 (string_to_multibyte):
14856 * character.c (chars_in_text, multibyte_chars_in_text):
14857 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
14858
14859 * character.h (FETCH_STRING_CHAR_ADVANCE)
14860 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
14861 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
14862 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
14863
14864 * casefiddle.c (casify_region): Only call after-change and composition
14865 functions on the part of the region that was changed.
14866
14867 * keyboard.c (read_avail_input):
14868 * frame.c (Fdelete_frame): Call Fdelete_terminal.
14869
148702008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
14871
14872 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
14873 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
14874
148752008-02-11 Juanma Barranquero <lekktu@gmail.com>
14876
14877 * w32menu.c (push_submenu_start, push_submenu_end)
14878 (push_left_right_boundary, push_menu_pane, push_menu_item):
14879 * keyboard.c (read_key_sequence): Don't pass args with side effects
14880 to AREF, it fails when compiling with -DENABLE_CHECKING.
14881
148822008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
14883
14884 * Makefile.in (${lispsource}international/charprop.el):
14885 Delete this target.
14886
14887 * search.c (boyer_moore): Fix incorrect synching of the trunk and
14888 emacs-unicode-2.
14889
148902008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
14891
14892 * terminal.c (Fdelete_terminal): Clean up the `force' path.
14893
148942008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
14895
14896 * frame.c (Qnoelisp): New symbol.
14897 (syms_of_frame): Initialize it.
14898 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
14899 harmless Elisp code, from a strong `force' from x_connection_closed.
14900 * frame.h (Qnoelisp): Declare.
14901 * xterm.c (x_connection_closed): Pass `noelisp'.
14902
14903 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
14904 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
14905 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
14906 rather than `int' for the type of `type'.
14907
149082008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
14909
14910 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
14911
14912 * Makefile.in (GNUC): Remove support for gcc-1.x.
14913
149142008-02-10 Richard Stallman <rms@gnu.org>
14915
14916 * lisp.h (ASET): Use AREF, not ASLOT.
14917
149182008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
14919
14920 * lisp.h (ASET): Check bounds.
14921
149222008-02-10 Glenn Morris <rgm@gnu.org>
14923
14924 * buffer.c (mode-name): Doc fix.
14925
149262008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
14927
14928 * Makefile.in:
14929 * emacs.c:
14930 * gmalloc.c:
14931 * keyboard.c:
14932 * lisp.h:
14933 * m/ibm370aix.h:
14934 * process.c:
14935 * regex.c:
14936 * s/hpux.h:
14937 * sysdep.c:
14938 * sysselect.h:
14939 * systty.h:
14940 * unexec.c:
14941 * w32term.c:
14942 * xsmfns.c:
14943 * xterm.c: Remove code that deals with obsolete variables.
14944
14945 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
14946
14947 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
14948 nothing else needs it anymore.
14949
149502008-02-09 Eli Zaretskii <eliz@gnu.org>
14951
14952 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
14953 instead of unibyte_char_to_multibyte.
14954
149552008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
14956
14957 * s/gnu-linux.h: Remove commented out code.
14958
14959 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
14960
14961 * Makefile.in: Update what RMS says about using autoconf.
14962 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
14963 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
14964 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
14965 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
14966
149672008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
14968
14969 * keymap.c (Fkey_description): Move side effect outside of macro call.
14970
14971 * xfaces.c (Finternal_make_lisp_face):
14972 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
14973
14974 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
14975 (syms_of_fontset): Use ASET.
14976
14977 * fns.c (concat): Move side effect outside of macro call.
14978 (hash_clear): Use ASET.
14979
149802008-02-08 Richard Stallman <rms@gnu.org>
14981
14982 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
14983 If FORCE, and frame has a surrogate minibuffer for another frame,
14984 delete the other frame first.
14985
149862008-02-07 Timo Savola <timo.savola@iki.fi>
14987
14988 * xterm.c (x_detect_focus_change): Handle embed client message.
14989 (handle_one_xevent): Ditto.
14990 (handle_one_xevent): If embedded and we get a button press/release,
14991 request focus.
14992 (xembed_set_info, xembed_send_message): New functions.
14993 (x_make_frame_visible): Call xembed_set_info if embedded.
14994 (x_make_frame_invisible): Call xembed_set_info if embedded.
14995 (x_term_init): Initialize Xatom_XEMBED.
14996 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
14997 (x_iconify_frame): Ditto.
14998
14999 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
15000 (enum xembed_info, enum xembed_message, enum xembed_focus)
15001 (enum xembed_modifier, enum xembed_accelerator): New.
15002 (xembed_set_info, xembed_send_message): Declare.
15003 (FRAME_X_EMBEDDED_P): New.
15004
15005 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
15006 gtk_plug_new.
15007
15008 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
15009 window ID of a frame.
15010 (x_window): Reparent frame if embedded.
15011 (Fx_create_frame): Don't set border width if embedded.
15012
15013 * emacs.c (USAGE3): Add --parent-id.
15014 (standard_args): Ditto.
15015
150162008-02-07 Jan Djärv <jan.h.d@swipnet.se>
15017
15018 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
15019
150202008-02-07 Jim Meyering <meyering@redhat.com>
15021
15022 Use "do...while (0)", not "if (1)...else" in macro definitions.
15023 The latter provokes a warning from gcc about the empty else, when
15024 followed by ";". Also, without that trailing semicolon, it would
15025 silently swallow up any following statement.
15026 * syntax.h (SETUP_SYNTAX_TABLE)
15027 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
15028 * buffer.h (DECODE_POSITION): Likewise.
15029 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
15030 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
15031 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
15032 (FETCH_CHAR_ADVANCE): Likewise.
15033 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
15034
150352008-02-07 Jim Meyering <meyering@redhat.com>
15036
15037 * lread.c [lint]: Don't include <sys/inode.h>.
15038
150392008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
15040
15041 * xselect.c (x_handle_dnd_message):
15042 * xmenu.c (digest_single_submenu, xmenu_show):
15043 * xdisp.c (with_echo_area_buffer_unwind_data)
15044 (format_mode_line_unwind_data, unwind_format_mode_line)
15045 (display_menu_bar):
15046 * eval.c (Ffetch_bytecode):
15047 * doc.c (store_function_docstring):
15048 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
15049 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
15050 * buffer.c (add_overlay_mod_hooklist): Use ASET.
15051
150522008-02-07 Kenichi Handa <handa@m17n.org>
15053
15054 * ftxfont.c (ftxfont_open): Don't set
15055 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
15056
15057 * ftfont.c (ftfont_open): Fix previous change.
15058
150592008-02-06 Jason Rumney <jasonr@gnu.org>
15060
15061 * w32font.c (w32font_text_extents): Fill in lbearing metric.
15062 Use cached metrics for ASCII characters.
15063 (w32font_open_internal): Don't set font's owning_frame.
15064 Cache metrics for ASCII characters.
15065
15066 * w32font.h (struct w32font_info): Add ascii_metrics.
15067 Remove owning_frame.
15068
150692008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
15070
15071 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
15072 to negative value.
15073
15074 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
15075
15076 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
15077
15078 * charset.c (syms_of_charset): Set QCtest and Qeq.
15079
150802008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
15081
15082 * process.c (Fstart_process):
15083 * callproc.c (Fcall_process): Handle the case where
15084 Funhandled_file_name_directory returns nil.
15085
15086 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
15087 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
15088 * font.c (check_gstring): Use them and AREF to access the vector before
15089 we know it's really a gstring.
15090 (Ffont_shape_text): Fix typo.
46e722a9 15091 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
15092
15093 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
15094 Declare.
15095
15096 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
15097
150982008-02-05 Jason Rumney <jasonr@gnu.org>
15099
15100 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
15101 Set smallest_font_height and smallest_char_width in display info.
15102
151032008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
15104
15105 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
15106
151072008-02-05 Miles Bader <miles@gnu.org>
15108
15109 * xfaces.c (get_lface_attributes, merge_named_face)
15110 (lookup_named_face, lookup_derived_face, realize_named_face):
15111 Revert 2008-02-01 change by cyd@stupidchicken.com.
15112
151132008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
15114
15115 * fontset.c (Ffontset_info): Handle the case of inhibitting the
15116 fallback fonts.
15117 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
15118
151192008-02-04 Jason Rumney <jasonr@gnu.org>
15120
15121 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
15122 set full_name.
15123 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
15124
151252008-02-03 Jason Rumney <jasonr@gnu.org>
15126
15127 * makefile.w32-in (OBJ1): Include font.o here.
15128 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
15129
151302008-02-02 Jason Rumney <jasonr@gnu.org>
15131
15132 * makefile.w32-in (temacs): Bump EMHEAP to 21.
15133
151342008-02-01 Jason Rumney <jasonr@gnu.org>
15135
15136 * s/cygwin.h: Define VIRT_ADDR_VARIES.
15137
15138 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
15139
151402008-02-01 Andreas Schwab <schwab@suse.de>
15141
15142 * Makefile.in (shortlisp, lisp): Update for rename of
15143 ../lisp/language/myanmar.el.
15144
151452008-02-01 Chong Yidong <cyd@stupidchicken.com>
15146
15147 * xfaces.c (get_lface_attributes): Delete function.
15148 (merge_named_face, lookup_named_face, lookup_derived_face)
15149 (realize_named_face): Call lface_from_face_name directly, and use
15150 the fact that merge_face_vectors does not alter its FROM argument.
15151
151522008-02-01 Jason Rumney <jasonr@gnu.org>
15153
15154 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
15155 input in the default locale. Handle non-Unicode multibyte input.
15156
151572008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15158
15159 * fontset.c (reorder_font_vector): Exclude nil elements from the
15160 font group. Don't try multiple fonts.
15161 (fontset_font): Adjust for the above change.
15162 (Finternal_char_font): Return nil if the found font doesn't
15163 contain the character ch.
15164
15165 * Makefile.in (lisp, shortlisp): Add cham.el.
15166
151672008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15168
15169 * font.h (FONTP): Make it return 1 also for a font-object.
15170
15171 * .gdbinit (xfontset): New function.
15172
15173 * font.c (font_find_for_lface): Check if the character C is
15174 supported or not only for the first font.
15175
15176 * fontset.c (reorder_font_vector): Fix typo.
15177 (fontset_find_font): Don't add a font-spec specifying a script.
15178 Use 0 (not Qt) for the indication of empty font-group. Change the
15179 format of RFONT-DEF. Return Qt if no font in the font-group
15180 support the character.
15181 (fontset_font): Adjust for the above change. If no font was
15182 found the character, remember that.
15183 (face_for_char): Adjust for the change of RFONT-DEF.
15184 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
15185 no font for the target.
15186 (Finternal_char_font): Adjust for the change of RFONT-DEF.
15187
151882008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15189
15190 * font.c (font_load_for_face): Handle the case that the font in
15191 face->lface is a string.
15192
151932008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15194
15195 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
15196
151972008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15198
15199 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
15200 Fix previous change. If the frame is not on a window system,
15201 signal an error.
15202
152032008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15204
15205 * coding.c (decode_coding_object, encode_coding_object): Adjust
15206 marker positions after conversion.
15207
15208 * lisp.h (struct Lisp_Marker): New member need_adjustment.
15209
152102008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15211
15212 * font.c (font_find_for_lface): Fix the handling of the return
15213 value of font_has_char.
15214 (Ffont_shape_text): Fix previous change.
15215
15216 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
15217 (fontset_ref_and_range): Delete it.
15218 (fontset_find_font): Call char_table_ref_and_range instead of
15219 FONTSET_REF_AND_RANGE.
15220 (make_fontset): Don't setup font groups of Latin here.
15221 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
15222 (new_fontset_from_font): Make the specified font the default for
15223 all Latin characters.
15224
152252008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15226
15227 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
15228 is on a window system before accessing the fontset of the frame.
15229
152302008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15231
15232 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
15233
15234 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
15235 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
15236
15237 * font.c (Ffont_shape_text): If the font driver doesn't have a
15238 shaper function, make zero-width glyphs to have at least one-pixel
15239 width. Fix setting of `to' field of glyphs.
15240
152412008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15242
15243 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
15244 glyphs.
15245
15246 * font.h (struct font_driver): Improve docstring of member `shape'.
15247
152482008-02-01 Kenichi Handa <handa@m17n.org>
15249
15250 * composite.c (syms_of_composite): Fix docstring of
15251 auto-composition-function.
15252
15253 * font.h (LGLYPH_SIZE): New macro.
15254
15255 * font.c (Ffont_fill_gstring): Stop filling when a character not
15256 supported by the font is found.
15257 (Ffont_shape_text): When a shape callback function returns nil,
15258 try at most two more times with larger gstring.
15259 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
15260
15261 * xdisp.c (handle_auto_composed_prop): Change the argument to
15262 auto-composition-function.
15263
15264 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
15265 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
15266 Lispy glyph and store it in the lgstring.
15267
15268 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
15269
15270 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
15271
152722008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15273
15274 * font.c (Ffont_shape_text): Avoid unnecessary composition.
15275
15276 * fontset.c (Vfont_encoding_charset_alist): New variable.
15277 (syms_of_fontset): DEFVAR it.
15278 (reorder_font_vector, fontset_find_font): Optimize for the case of
15279 no need of reordering.
15280 (face_for_char): Map the charset property by
15281 Vfont_encoding_charset_alist.
15282
152832008-02-01 Jason Rumney <jasonr@gnu.org>
15284
15285 * w32font.c (logfonts_match): Don't check adstyle here.
15286 (font_matches_spec): Check here against physical font instead.
15287 (add_font_entity_to_list): Avoid some substitutions.
15288
15289 * font.c (font_parse_fcname): Default weight and slant to normal.
15290 (font_score): Prefer normal fonts if weight or slant unspecified.
15291 (font_score) [WINDOWSNT]: Scale weight difference down to closer
15292 match freetype scores.
15293
152942008-02-01 Jason Rumney <jasonr@gnu.org>
15295
15296 * w32font.c (w32font_text_extents): Don't use the frame stored in the
15297 font, as it may have been deleted.
15298 (w32_enumfont_pattern_entity): Map generic family to adstyle using
15299 most common hyphenless variation.
15300 (logfonts_match): Check generic family.
15301 (font_matches_spec): Don't check generic family here.
15302 (fill_in_logfont): Set generic family based on adstyle.
15303
15304 * w32font.h (w32font_get_cache): Update declaration.
15305
153062008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15307
15308 * ftfont.c (ftfont_get_cache): Adjust the argument type.
15309
15310 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
15311 If none of the new drivers are available, call font_update_drivers
15312 with the old drivers.
15313
15314 * w32font.c (w32font_get_cache): Adjust the argument type.
15315
15316 * xfont.c (xfont_get_cache): Adjust the argument type.
15317
15318 * font.h (struct font_driver): Change argument type of get_cache.
15319
15320 * xftfont.c (xftfont_start_for_frame): Delete prototype.
15321
15322 * font.c (Ffont_get): Fix arguments to Fassoc.
15323 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
15324 (font_clear_cache): New function.
15325 (font_list_entities, font_matching_entity): Use font_get_cache.
15326 (font_update_drivers): Call font_clear_cache when finishing a driver.
15327
15328 * fontset.c (fontset_find_font): Fix previous change.
15329
153302008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15331
15332 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
15333 dpyinfo->font_table.
15334 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
15335 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
15336
15337 * font.c (font_at): Handle the case that the arg C is negative.
15338 Handle the unibyte case.
15339 (Ffont_at): Call font_at with the arg C -1.
15340
15341 * xdisp.c (handle_auto_composed_prop): Don't get a character at
15342 the position here, and call font_at with the arg C -1.
15343 Don't check the range of the existing composition at the point.
15344
153452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15346
15347 * fontset.c (fontset_add): New args charset_id and family.
15348 Change caller.
15349 (load_font_get_repertory, fontset_find_font): Assume that
15350 font_spec is always a font-spec object.
15351 (Fset_fontset_font): Always store a font-spec object in a fontset.
15352
15353 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
15354 instead of get_property_and_range.
15355
153562008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15357
15358 * xftfont.c (struct xftfont_info): Delete the member ft_face.
15359 (xftfont_open): Don't keep locking face.
15360 (xftfont_close): Don't unlock face.
15361 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
15362
15363 * fontset.c (fontset_find_font): Don't prefer a font of
15364 supplementary charset.
15365
153662008-02-01 Kenichi Handa <handa@m17n.org>
15367
15368 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
15369 script, langsys_tag to langsys, new member script.
15370 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 15371 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
15372 listing to the script specified in that property. Fix arg to
15373 OTF_check_features.
15374
153752008-02-01 Jason Rumney <jasonr@gnu.org>
15376
15377 * w32font.h: New file.
15378
15379 * w32font.c: Include it.
15380 (struct w32font_info): Add owning_frame field. Move to w32font.h.
15381 (w32font_open): Set owning_frame.
15382 (w32font_text_extents): Use owning_frame.
15383 (struct font_callback_data): Add opentype_only field.
15384 (add_font_entity_to_list): Use it to filter fonts.
15385 Don't check against full name.
15386 (w32font_list_internal): New function.
15387 (w32font_list): Use it.
15388 (w32font_match_internal): New function.
15389 (w32font_match): Use it.
15390 (w32font_open_internal): New function.
15391 (w32font_open): Use it.
15392 (w32font_get_cache, w32font_close, w32font_has_char)
15393 (w32font_encode_char, w32font_text_extents, w32font_draw):
15394 Make non-static.
15395
15396 * makefile.w32-in (w32font.o): Depend on w32font.h.
15397
153982008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15399
15400 * charset.c (Fdefine_charset_internal): Record a supplementary
15401 charset at the tail of Vcharset_order_list.
15402
15403 * font.c (Ffont_shape_text): Fix the return value.
15404
15405 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
15406
15407 * xdisp.c (handle_auto_composed_prop): Fix previous change.
15408
154092008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15410
15411 * ftfont.c (struct OpenTypeSpec): New struct.
15412 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
15413 (ftfont_get_open_type_spec): New function.
15414 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
15415
15416 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
15417
154182008-02-01 Jason Rumney <jasonr@gnu.org>
15419
15420 * w32font.c (add_font_entity_to_list): Compare only the beginning
15421 of full name.
15422
154232008-02-01 Kenichi Handa <handa@m17n.org>
15424
15425 * xdisp.c (handle_auto_composed_prop): Simplify the code.
15426 Never return HANDLED_RECOMPUTE_PROPS.
15427
154282008-02-01 Kenichi Handa <handa@m17n.org>
15429
15430 * font.c (font_gstring_produce): Delete it.
15431
15432 * composite.h (COMPOSITION_METHOD):
15433 Handle COMPOSITION_WITH_GLYPH_STRING.
15434
154352008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15436
15437 * xfont.c (Qx): Delete.
15438 (syms_of_xfont): Don't initialize Qx.
15439
15440 * composite.h (enum composition_method):
15441 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
15442
154432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15444
15445 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
15446 (choose_face_font): Accept new form of font-spec.
15447
15448 * frame.h (font_driver_list): Declare it unconditionally.
15449 (struct frame): Define members font_driver_list and font_data_list
15450 unconditionally.
15451
15452 * fontset.c: Include "font.h" unconditionally.
15453 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
15454 (Fset_fontset_font): Accept a font-spec object.
15455
15456 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
15457 PIXEL_SIZE part a wild card.
15458
15459 * dispextern.h (struct glyph_string): Define members clip and
15460 num_clips unconditionally.
15461 (struct face): Define members font_info and extra unconditionally.
15462
15463 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
15464 ftfont_info only when HAVE_LIBOTF is defined.
15465
154662008-02-01 Andreas Schwab <schwab@suse.de>
15467
15468 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
15469 and end.
15470
154712008-02-01 Jason Rumney <jasonr@gnu.org>
15472
15473 * w32font.c (w32font_driver): Add new fields.
15474
154752008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15476
15477 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
15478 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
15479 (LIBES): Add @M17N_FLT_CFLAGS@.
15480
15481 * composite.c (compose_text): Don't treat the new style
15482 composition specially.
15483
15484 * emacs.c (main): Call syms_of_font unconditionally.
15485
15486 * font.h (FONT_ENTITY_NOT_LOADABLE)
15487 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
15488 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
15489 (struct font_driver): New member shape.
15490 (font_registry_charsets): Extern it.
15491 (font_find_for_lface, font_prepare_composition): Adjust prototype.
15492 (font_otf_capability, font_drive_otf): Delete their externs.
15493
15494 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
15495 (font_charset_alist, font_registry_charsets): Move from xfont.c
15496 and rename.
15497 (font_prop_validate_otf): New function.
15498 (font_property_table): Register it for QCotf.
15499 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
15500 (font_drive_otf): Delete.
15501 (font_prepare_composition): New arg F. Adjust for the change of
15502 lispy gstring.
15503 (font_find_for_lface): New arg C.
15504 (font_load_for_face): Adjust for the change of font_find_for_lface.
15505 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
15506 lispy gstring.
15507 (Ffont_shape_text): New function.
15508 (Fopen_font): If the font size is not given, use 12-pixel.
15509 (Ffont_at): New arg STRING.
15510 (syms_of_font): Initalize font_charset_alist.
15511 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
15512 conditionally.
15513
15514 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
15515 fonts of the same font-spec. Change the format of RFONT-DEF.
15516 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
15517 Adjust for the change of RFONT-DEF.
15518 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
15519
15520 * ftfont.h: New file.
15521
15522 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
15523 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
15524 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
15525 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
15526 font_otf_capability and font_drive_otf, set ftfont_shape.
15527 (ftfont_list): Adjust for the change of :otf property value.
15528 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
15529 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
15530 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
15531 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
15532 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
15533 (otf_gstring, gstring, m17n_flt_initialized): New variables.
15534
15535 * w32term.c (x_draw_composite_glyph_string_foreground):
15536 Adjust for the change of lispy gstring.
15537
15538 * xdisp.c (handle_composition_prop): Adjust for the change of
15539 lispy gstring. Call a function for auto-composition with the
15540 third arg it->window.
15541 (fill_composite_glyph_string): Adjust for the change of lispy string.
15542 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
15543
15544 * xfaces.c (set_font_frame_param): Adjust for the change of
15545 font_find_for_lface.
15546
15547 * xfont.c (x_font_charset_alist): Move to font.c and rename.
15548 (xfont_registry_charsets): Likewise. Change caller.
15549 (syms_of_xfont): Don't handle x_font_charset_alist.
15550
15551 * xftfont.c: Include "ftfont.h".
15552 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
15553 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
15554 (xftfont_close) [HAVE_LIBOTF]: Close otf.
15555 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
15556 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
15557 Set xftfont_driver.shape to xftfont_shape.
15558
15559 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
15560 the change of lispy gstring.
15561
155622008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15563
15564 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
15565
155662008-02-01 Jason Rumney <jasonr@gnu.org>
15567
15568 * w32font.c (w32font_draw): Fill background manually.
15569
155702008-02-01 Jason Rumney <jasonr@gnu.org>
15571
15572 * font.c (Qfontp): Remove unused symbol.
15573 (QCantialias): New symbol.
15574 (syms_of_font): Define it.
15575 (font_property_table): Set a validator for QCantialias.
15576
15577 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
15578 Define if not already.
15579 (QCfamily): Share with xfaces.c.
15580 (Qstandard, Qsubpixel, Qnatural): New symbols.
15581 (syms_of_w32font): Define them. Don't define QCfamily here.
15582 (w32_antialias_type, lispy_antialias_type): New functions.
15583 (w32_enumfont_pattern_entity): New arg requested_font.
15584 Set antialias parameter if non-default was requested.
15585 (fill_in_logfont): Fill in lfQuality if :antialias specified.
15586
155872008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15588
15589 * lread.c (read1): Undo the previous change.
15590
155912008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
15592
15593 * frame.c (Fdelete_frame): Call font_update_drivers only when
15594 USE_FONT_BACKEND is defined.
15595
155962008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15597
15598 * font.h (struct font_bitmap): New member bits_per_pixel.
15599 (struct font_driver): New members start_for_frame and end_for_frame.
15600 (struct font_data_list): New struct.
15601 (font_put_frame_data, font_get_frame_data): Extern them.
15602
15603 * frame.h (struct frame): New member font_data_list.
15604
15605 * font.c (font_update_drivers): Call driver->start_for_frame and
15606 driver->end_for_frame at proper timings.
15607 (font_put_frame_data, font_get_frame_data): New functions.
15608 (Ffont_spec): Add usage in the docstring.
15609
15610 * frame.c (make_frame): Initialize f->font_data_list to NULL.
15611 (Fdelete_frame): Call font_update_drivers.
15612
15613 * xftfont.c (struct xftface_info): Delete the member xft_draw.
15614 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
15615 (xftfont_get_xft_draw): New function.
15616 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
15617 (xftfont_end_for_frame): New function.
15618 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
15619
15620 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
15621 Change argument. Cache GCs in the per-frame data.
15622 (struct ftxfont_frame_data): New struct.
15623 (ftxfont_draw_bitmap): New arg gc_fore and flush.
15624 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
15625 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
15626 (ftxfont_end_for_frame): New function.
15627 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
15628
15629 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
15630
156312008-02-01 Kenichi Handa <handa@m17n.org>
15632
15633 * xselect.c (Vselection_coding_system)
15634 (Vnext_selection_coding_system): Delete them.
15635 (syms_of_xselect): Don't declare selection-coding-system and
15636 next-selection-coding-system. They are declared in select.el.
15637
156382008-02-01 Jason Rumney <jasonr@gnu.org>
15639
15640 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
15641
15642 * w32fns.c: Include imm.h.
15643 (get_composition_string_fn, get_ime_context_fn): New optional
15644 system functions.
15645 (globals_of_w32fns): Load them from imm32.dll.
15646 (ignore_ime_char): New flag.
15647 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
15648 WM_IME_ENDCOMPOSITION messages.
15649
15650 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
15651 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
15652
156532008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15654
15655 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
15656 (READCHAR_REPORT_MULTIBYTE): New macro.
15657 (readchar): New 2nd arg MULTIBYTE.
15658 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
15659 Make symbol's name multibyte according to the multibyteness of the
15660 source.
15661
156622008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15663
15664 * xfaces.c (face_for_overlay_string): Call lookup_face with
15665 correct arguments (fix of synching with the trunk).
15666
156672008-02-01 Kenichi Handa <handa@m17n.org>
15668
15669 * font.c (font_prop_validate_symbol, font_prop_validate_style)
15670 (font_prop_validate_non_neg, font_prop_validate_spacing):
15671 Delete argument prop_index.
15672 (font_property_table): Change arguments to validater. Change Callers.
15673 (font_lispy_object): Delete.
15674 (font_at): Use font_find_object instead fo font_lispy_object.
15675
156762008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15677
15678 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
15679 and file names.
15680
156812008-02-01 Jason Rumney <jasonr@gnu.org>
15682
15683 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
15684 (font_matches_spec): Remove debug output.
15685 (add_font_entity_to_list): Avoid using substituted fonts.
15686
156872008-02-01 Jason Rumney <jasonr@gnu.org>
15688
15689 * doc.c (Fsnarf_documentation):
15690 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
15691
156922008-02-01 Miles Bader <miles@gnu.org>
15693
15694 * dispextern.h (struct glyph_row): Only define "clip" field if
15695 HAVE_WINDOW_SYSTEM is defined.
15696
156972008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
15698
15699 Fix up multi-tty merge.
15700
15701 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
15702 and indentation.
15703
15704 * xfaces.c (free_realized_face, clear_face_gcs):
15705 Include font_done_for_face in the input_blocked section, just in case.
15706
15707 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
15708 (get_char_face_and_encoding): Undo last change and remove the *other*
15709 duplicate definition (i.e. keep the one that's better scoped and that
15710 includes code for the font-backend).
15711
15712 * terminal.c (create_terminal): Default keyboard_coding to
15713 `no-conversion' and terminal_coding to `undecided'.
15714
15715 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
15716
15717 * fontset.c (free_realized_fontsets): Check that the table entry does
15718 contain a fontset before trying to compare it to `base'.
15719
15720 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
15721 syms_of_charset, and syms_of_coding earlier because init_window_once
15722 now needs Vcoding_system_hash_table to be setup.
15723
15724 * coding.h (default_buffer_file_coding): Remove.
15725
15726 * coding.c (default_buffer_file_coding): Remove.
15727 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
15728 than ->symbol, and use the terminal-local coding system.
15729 (syms_of_coding): Don't setup the coding-systems that are not
15730 terminal-local.
15731 (Fdefine_coding_system_internal): Use XCAR/XCDR.
15732
15733 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
15734 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
15735
15736 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
15737 in chartab.c and were re-added here by mistake.
15738 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
15739
15740 * doc.c (Fsnarf_documentation):
15741 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
15742 src to etc.
15743
15744 * ChangeLog.10: Add mistakenly removed entry.
15745
157462008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
15747
15748 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
15749
157502008-02-01 Miles Bader <miles@gnu.org>
15751
15752 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
15753 Add extra args to FACE_FOR_CHAR.
15754
157552008-02-01 Kenichi Handa <handa@m17n.org>
15756
15757 * keymap.c (where_is_internal_1): If key is a cons, store the copy
15758 in sequence.
15759
15760 * chartab.c (map_sub_char_table, map_char_table): If the range
15761 contains just one character, call the function with that character
15762 even if the depth is not 3.
15763
157642008-02-01 Jason Rumney <jasonr@gnu.org>
15765
15766 * w32font.c (w32font_text_extents): Calculate metrics for the
15767 whole string.
15768
157692008-02-01 Jason Rumney <jasonr@gnu.org>
15770
15771 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
15772
157732008-02-01 Jason Rumney <jasonr@gnu.org>
15774
15775 * w32term.c (x_set_glyph_string_clipping): Use
15776 get_glyph_string_clip_rects.
15777 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
15778 Adjust for the change of struct glyph_string.
15779
15780 * w32font.c (w32font_draw): Do clipping here.
15781
157822008-02-01 Kenichi Handa <handa@m17n.org>
15783
15784 * xftfont.c (xftfont_draw): Adjust for the change of struct
15785 glyph_string.
15786
15787 * xterm.c (x_set_glyph_string_clipping): Use
15788 get_glyph_string_clip_rects.
15789 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
15790 Adjust for the change of struct glyph_string.
15791
15792 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
15793 the resulting clip(s}.
15794 (expose_overlaps): Add arg r. Change callers. Set it to
15795 row->clip temporarily.
15796 (expose_window): Redraw rows overlapping the exposed area.
15797
15798 * dispextern.h (struct glyph_row): New member clip.
15799 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
15800 clip_height, new member clip, and num_clips.
15801
158022008-02-01 Kenichi Handa <handa@m17n.org>
15803
15804 * data.c (Fchar_or_string_p): Fix docstring.
15805
158062008-02-01 Kenichi Handa <handa@m17n.org>
15807
15808 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
15809 create a temporary XftDraw object.
15810
158112008-02-01 Kenichi Handa <handa@m17n.org>
15812
15813 * font.c (Ffontp): Fix docstring.
15814
15815 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
15816 strong evidence of ISO-2022.
15817
158182008-02-01 Kenichi Handa <handa@m17n.org>
15819
15820 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
15821 SYNTAX_ENTRY_FOLLOW_PARENT.
15822
158232008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
15824
15825 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
15826 its type.
15827 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
15828 Update to the new type of weak_hash_tables and next_weak.
15829
15830 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
15831 a plain C pointer to Lisp_Hash_Table.
15832
15833 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
15834 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
15835 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
15836 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
15837 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
15838 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
15839 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
15840 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
15841 (GC_EQ): Remove since they've been identical to their non-GC_
15842 alter-egos ever since the markbit was eradicated.
15843
15844 * alloc.c:
15845 * buffer.c:
15846 * buffer.h:
15847 * data.c:
15848 * fileio.c:
15849 * filelock.c:
15850 * fns.c:
15851 * frame.h:
15852 * lisp.h:
15853 * macterm.c:
15854 * print.c:
15855 * process.c:
15856 * w32fns.c:
15857 * w32menu.c:
15858 * w32term.c:
15859 * xfns.c:
15860 * xmenu.c:
15861 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
15862
158632008-02-01 Kenichi Handa <handa@m17n.org>
15864
15865 * chartab.c (map_sub_char_table): Make it work for the top-level
15866 char-table. Fix handling of parent char-table.
15867 (map_char_table): Adjust for the above change.
15868
158692008-02-01 Jason Rumney <jasonr@gnu.org>
15870
15871 * w32font.c (Qgdi): Rename from Qw32.
15872
158732008-02-01 Jason Rumney <jasonr@gnu.org>
15874
15875 * w32bdf.c (get_quoted_string): Make function static.
15876
158772008-02-01 Kenichi Handa <handa@m17n.org>
15878
15879 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
15880 bigger ascent and descent than those of the font, use them as
15881 font's ascent and descent.
15882
158832008-02-01 Kenichi Handa <handa@m17n.org>
15884
15885 * Makefile.in (${lispsource}international/charprop.el): Move this
15886 target within "#ifdef HAVE_UNIDATA" and "#endif".
15887
158882008-02-01 Kenichi Handa <handa@m17n.org>
15889
15890 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
15891 (shortlisp): Add ../lisp/language/tai-viet.el.
15892
158932008-02-01 Ulrich Mueller <ulm@gentoo.org>
15894
15895 * Makefile.in (${lispsource}international/charprop.el): Depend on
15896 temacs${EXEEXT}.
15897
158982008-02-01 Jason Rumney <jasonr@gnu.org>
15899
15900 * w32font.c (w32font_close): Delete the GDI font object.
15901
15902 * w32menu.c: Include character.h.
15903
15904 * w32proc.c: Likewise.
15905
15906 * w32select.c: Likewise.
15907
15908 * makefile.w32-in (w32proc.o): Depend on character.h.
15909
159102008-02-01 Jason Rumney <jasonr@gnu.org>
15911
15912 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
15913
15914 * w32menu.c (syms_of_w32menu): Likewise.
15915
15916 * w32proc.c (syms_of_ntproc): Likewise.
15917
15918 * w32select.c (syms_of_w32select): Likewise.
15919
15920 * w32term.c (syms_of_w32term): Likewise.
15921
159222008-02-01 Jason Rumney <jasonr@gnu.org>
15923
15924 * w32font.c (w32font_draw): Delete brush after using it.
15925
159262008-02-01 Jason Rumney <jasonr@gnu.org>
15927
15928 * w32font.c (w32font_open): Don't set font_idx.
15929 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
15930 to font settings.
15931 (w32font_draw): Fill background explicitly.
15932
159332008-02-01 Jason Rumney <jasonr@gnu.org>
15934
15935 * w32term.c (w32_initialize): Don't call w32font_initialize.
15936
15937 * w32font.c (w32font_info): Remove subranges.
15938 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
15939 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
15940 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
15941 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
15942 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
15943 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
15944 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
15945 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
15946 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
15947 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
15948 New symbols.
15949 (font_callback_data): New struct.
15950 (w32font_list, w32font_match): Use it.
15951 (w32font_open): Don't populate subranges.
15952 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
15953 (w32font_encode_char): Always return unicode code-point as-is.
15954 (w32font_text_extents): Supply a transformation matrix to
15955 GetGlyphOutline. Never look up by glyph index. Avoid looping
15956 twice. Use unicode version of GetTexExtentPoint32 instead of
15957 glyph index version.
15958 (set_fonts_frame): Remove.
15959 (w32_enumfont_pattern_entity): Add frame parameter, use it to
15960 set frame parameter. Use backward compatible fake foundries.
15961 Save generic family in extra slot under QCfamily. Make width slot
15962 constant. Save QCspacing value. Save list of scripts instead of
15963 binary subranges.
15964 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
15965 (add_font_entity_to_list): Use font_callback_data struct. Filter
15966 unwanted fonts.
15967 (add_one_font_entity_to_list): Use font_callback_data struct.
15968 (w32_registry): Default to iso10646_1.
15969 (fill_in_logfont): Use dpi from extra slot. Don't bother with
15970 string font registries. Don't fill in font name if it is a generic
15971 family name, fill family instead. Use spacing, family and script
15972 extra info to fill pitch, family and charset fields.
15973 (list_all_matching_fonts): Use font_callback_data struct.
15974 (unicode_range_for_char): Remove.
15975 (font_supported_scripts): New function.
15976 (w32font_initialize): Remove.
15977 (syms_of_w32font): Update which symbols are defined.
15978
159792008-02-01 Jason Rumney <jasonr@gnu.org>
15980
15981 * font.c (font_pixel_size): Reverse assq_no_quit args.
15982
15983 * w32term.h (FONT_WIDTH): Report max width, not average.
15984 (FONT_MAX_WIDTH): Remove.
15985 (FONT_AVG_WIDTH): New macro.
15986
15987 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
15988 redefinition of FONT_WIDTH.
15989
15990 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
15991 (w32_cache_char_metrics): Use FONT_WIDTH.
15992
15993 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
15994
159952008-02-01 Jason Rumney <jasonr@gnu.org>
15996
15997 * w32font.c (w32font_open): Make lfHeight negative.
15998
15999 * w32fns.c (x_default_font_parameter): Use new style font name.
16000 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
16001
160022008-02-01 Jason Rumney <jasonr@gnu.org>
16003
16004 * w32font.c (QCsubranges): New symbol.
16005 (w32font_open, w32font_has_char): Get subranges from subproperty
16006 of extra.
16007 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
16008 (syms_of_w32font): Define :subranges symbol.
16009
16010 * font.c (font_put_extra): Expose externally.
16011
16012 * font.h (font_put_extra): Move declaration from font.c.
16013
16014 * font.c (Ffont_get): Use font driver to determine otf capability.
16015 (adjust_anchor): Check if driver defines anchor_point before using.
16016
16017 * w32font.c (w32font_open): Handle size, height and pixel_size better.
16018 (w32font_draw): Use options.
16019 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
16020 Fix detection of truetype fonts.
16021 (registry_to_w32_charset): Handle charsets other than iso8859-1
16022 expressed as lisp symbols.
16023 (w32_registry): Express charset as lisp symbol.
16024 (fill_in_logfont): Reverse pixel and point height logic.
16025 Don't set width here. Set quality to default.
16026
16027 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
16028 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
16029
16030 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
16031 Remove redundant loop and allocation.
16032
16033 * makefile.w32-in (font.o, w32font.o): New objects.
16034 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
16035 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
16036
16037 * xdisp.c (fill_composite_glyph_string): Make the first arg to
16038 STORE_XCHARB a valid l-value.
16039
16040 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
16041 calculations for non-Truetype fonts.
16042 (x_draw_glyph_string): Sync with xterm.c.
16043 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
16044 Remove redundant code.
16045 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
16046
16047 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
16048 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
16049
16050 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
16051 (x_to_w32_charset, w32_to_x_charset): Expose externally.
16052
16053 * w32font.c: New file for w32 font backend.
16054
160552008-02-01 Kenichi Handa <handa@m17n.org>
16056
16057 * term.c: Don't include "buffer.h" twice.
16058
160592008-02-01 Kenichi Handa <handa@m17n.org>
16060
16061 * character.c (Funibyte_string): New function.
16062 (syms_of_character): Defsubr it.
16063
160642008-02-01 Jason Rumney <jasonr@gnu.org>
16065
16066 * w32term.c [USE_FONT_BACKEND]:
16067 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
16068 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
16069 (x_draw_glyph_string, x_draw_glyph_string_foreground)
16070 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
16071 (x_free_frame_resources): Sync with xterm.c.
16072
160732008-02-01 Andreas Schwab <schwab@suse.de>
16074
16075 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
16076 char-table size.
16077
160782008-02-01 Kenichi Handa <handa@m17n.org>
16079
16080 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
16081
160822008-02-01 Kenichi Handa <handa@m17n.org>
16083
16084 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
16085 font_otf_gpos, add font_drive_otf.
16086
16087 * fontset.c (fontset_find_font): Pay attention to font size
16088 specified for a font.
16089 (reorder_font_vector): Check contents of font_def.
16090
16091 * font.c (struct otf_list): Delete it.
16092 (otf_list): Make it a lisp variable.
16093 (otf_open): Use lispy otf_list.
16094 (generate_otf_features): Rename from parse_gsub_gpos_spec.
16095 (check_otf_features): New function.
16096 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
16097 New functions.
16098 (font_drive_otf): New function merging font_otf_gsub and
16099 font_otf_gpos.
16100 (font_open_for_lface): New arg spec. Change argument order.
16101 (font_load_for_face): Adjust for the change of font_open_for_lface.
16102 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
16103 Ffont_otf_gpos.
16104 (syms_of_font): Staticpro otf_list. Delete defsubr of
16105 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
16106
16107 * xfaces.c (set_font_frame_param): Adjust for the change of
16108 font_open_for_lface.
16109
16110 * font.h (font_open_for_lface): Adjust prototype.
16111 (struct font_driver): Delete members otf_gsub and otf_gpos, add
16112 member otf_drive.
16113 (font_otf_gsub, font_otf_gpos): Delete externs.
16114 (font_drive_otf): Extern it.
16115
161162008-02-01 Kenichi Handa <handa@m17n.org>
16117
16118 * font.c (font_at): If the window W is not on a window system,
16119 return Qnil.
16120
16121 * coding.c (produce_chars, encode_coding): Don't call
16122 insert_from_gap if no characters to produce.
16123
161242008-02-01 Kenichi Handa <handa@m17n.org>
16125
16126 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
16127 Fclear_face_cache.
16128
16129 * xfaces.c (face_for_font): Check also face->font==font->font.font.
16130
161312008-02-01 Miles Bader <miles@gnu.org>
16132
16133 * emacs.c (main): Change default value of `enable_font_backend' to 1.
16134 Parse "--disable-font-backend" option.
16135 (standard_args): Add "--disable-font-backend" option.
16136
161372008-02-01 Kenichi Handa <handa@m17n.org>
16138
16139 * fontset.c (fontset_find_font): New function.
16140 (fontset_font): Use fontset_find_font.
16141 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
16142 Register the specified font for all Latin characters.
16143 (new_fontset_from_font): Register the specified font for all Latin
16144 characters.
16145 (dump_fontset): For a realized fontset, include the base fontset
16146 name in the returned vector.
16147
161482008-02-01 Kenichi Handa <handa@m17n.org>
16149
16150 * character.h (CHAR_STRING): Cast C to unsigned on calling
16151 char_string.
16152
16153 * character.c (char_string): Type of arg C changed to unsigned.
16154 Signal an error if C is an invalid character code.
16155
16156 * editfns.c (general_insert_function, Fchar_to_string):
16157 Use CHARACTERP, not INTEGERP.
16158
161592008-02-01 Kenichi Handa <handa@m17n.org>
16160
16161 * character.h (MIN_MULTIBYTE_LEADING_CODE)
16162 (MAX_MULTIBYTE_LEADING_CODE): New macros.
16163
16164 * regex.c (analyse_first): Fix for multibyte characters in "case
16165 charset:" and "case categoryspec:".
16166
161672008-02-01 Andreas Schwab <schwab@suse.de>
16168
16169 * Makefile.in (LIBES): Move standard libraries to the end.
16170
161712008-02-01 Kenichi Handa <handa@m17n.org>
16172
16173 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
16174 nonzero, don't shrink the buffer nextb.
16175
16176 * buffer.h (struct buffer_text): New member inhibit_shrinking.
16177
16178 * coding.c (coding_alloc_by_making_gap): New arg offset.
16179 (alloc_destination): Call coding_alloc_by_making_gap with the arg
16180 offset.
16181 (decode_coding_iso_2022): Update coding->safe_charsets.
16182 (decode_coding_gap): Temporarily set
16183 current_buffer->text->inhibit_shrinking to 1.
16184
161852008-02-01 Kenichi Handa <handa@m17n.org>
16186
16187 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
16188 indexing into elements of s->cmp and s->char2b.
16189
161902008-02-01 Juanma Barranquero <lekktu@gmail.com>
16191
16192 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
16193
161942008-02-01 Kenichi Handa <handa@m17n.org>
16195
16196 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
16197 target_multibyte instead of multibyte.
16198 (re_match_2_internal): Call bcmp_translate with target_multibyte.
16199 (bcmp_translate): Change the argument name from multibyte to
16200 target_multibyte.
16201
162022008-02-01 Kenichi Handa <handa@m17n.org>
16203
16204 These changes are to compile a regexp into a pattern that can be
16205 used both for multibyte and unibyte targets.
16206
16207 * Makefile.in (search.o): Depend on charset.h.
16208
16209 * character.c (multibyte_char_to_unibyte_safe): New function.
16210
16211 * search.c: Include "charset.h".
16212 (compile_pattern_1): Delete argument multibyte. Don't set
16213 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
16214 (compile_pattern): Don't compare cp->buf.target_multibyte.
16215 Compare cp->buf.charset_unibyte.
16216 (compile_pattern): Set cp->buf.target_multibyte.
16217
16218 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
16219
16220 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
16221
16222 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
16223 multibyte. Change callers.
16224 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
16225 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
16226 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
16227 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
16228 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
16229 (regex_compile): Make the compiled pattern usable both for
16230 multibyte and unibyte targets.
16231 (analyse_first): Make the fastmap usable both for multibyte and
16232 unibyte targets.
16233 (TRANSLATE_VIA_MULTIBYTE): Delete.
16234 (re_match_2_internal): Pay attention to the case that the
16235 multibyteness of bufp and target may be different.
16236
162372008-02-01 Kenichi Handa <handa@m17n.org>
16238
16239 * xdisp.c (x_produce_glyphs): When a font is not found, make the
16240 empty box occupy at least one column width.
16241
162422008-02-01 Miles Bader <miles@gnu.org>
16243
16244 * Makefile.in: Remove redundant HAVE_XFT clause.
16245
162462008-02-01 Kenichi Handa <handa@m17n.org>
16247
16248 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
16249
162502008-02-01 Kenichi Handa <handa@m17n.org>
16251
16252 * fontset.c (Finternal_char_font): Fix for the case of POSITION
16253 being nil.
16254
162552008-02-01 Kenichi Handa <handa@m17n.org>
16256
16257 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
16258
162592008-02-01 Kenichi Handa <handa@m17n.org>
16260
16261 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
16262
162632008-02-01 Kenichi Handa <handa@m17n.org>
16264
16265 * search.c (simple_search): Fix previous change.
16266
162672008-02-01 Kenichi Handa <handa@m17n.org>
16268
16269 * xftfont.c (ftfont_font_format): Extern declaration.
16270
16271 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
16272
16273 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
16274 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
16275
16276 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
16277 (ftfont_font_format): Fix previous change.
16278
16279 * font.h (Ffont_xlfd_name): EXFUN it.
16280
16281 * font.c (font_parse_xlfd): Fix the array size of `f'.
16282 (register_font_driver): Use EQ to compare driver->type.
16283
16284 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
16285 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
16286 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
16287
162882008-02-01 Kenichi Handa <handa@m17n.org>
16289
16290 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
16291 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
16292
162932008-02-01 Kenichi Handa <handa@m17n.org>
16294
16295 * xfont.c (xfont_open): Set font->format.
16296
16297 * xftfont.c (xftfont_open): Set font->format.
16298
16299 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
16300 (ftfont_list): Include FC_FONTFORMAT in FcObject.
16301 (ftfont_open): Set font->format.
16302 (ftfont_font_format): New function.
16303
16304 * font.h (struct font): New member format.
16305
16306 * font.c (Qopentype): New variable.
16307 (syms_of_font): Defsym it.
16308 (Fquery_font): Change the format of the last element of the return
16309 value.
16310
163112008-02-01 Kenichi Handa <handa@m17n.org>
16312
16313 * xfns.c (xic_create_xfontset): Try the default fontset name as a
16314 last resort.
16315
163162008-02-01 Kenichi Handa <handa@m17n.org>
16317
16318 * coding.c (detect_coding_charset): Fix detection of multi-byte
16319 charset.
16320
163212008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
16322
16323 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
16324
163252008-02-01 Kenichi Handa <handa@m17n.org>
16326
16327 * xdisp.c (get_next_display_element): Set it->face_id for the
16328 first component of a composition.
16329 (x_produce_glyphs): Check if the font is changed or not for composition.
16330
163312008-02-01 Kenichi Handa <handa@m17n.org>
16332
16333 * fontset.c (Qlatin): New variable.
16334 (syms_of_fontset): Define it as a lisp symbol.
16335 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
16336
163372008-02-01 Kenichi Handa <handa@m17n.org>
16338
16339 * font.c (font_unparse_fcname): Pay attention to the case that
16340 some of font property is a null string.
16341
163422008-02-01 Kenichi Handa <handa@m17n.org>
16343
16344 * term.c: Include "composite.h".
16345 (encode_terminal_code): Output all components of composition.
16346 Check the size of encode_terminal_src.
16347 (produce_glyphs): For composition, call produce_composite_glyph.
16348 (append_composite_glyph, produce_composite_glyph): New functions.
16349
16350 * xdisp.c (x_produce_glyphs): In handling composition, if a font
16351 is not found, get font_info from the current ascii face.
16352
163532008-02-01 Kenichi Handa <handa@m17n.org>
16354
16355 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
16356 buffer-file-name to Qnil before calling insert_from_buffer.
16357
16358 * font.c (font_unparse_fcname): Pay attention to the case that
16359 foundry is a null string.
16360
163612008-02-01 Kenichi Handa <handa@m17n.org>
16362
16363 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
16364
16365 * font.c (Qunicode_sip): New variable.
16366 (syms_of_font): Declare it as a Lisp symbol.
16367
16368 * font.h (Qunicode_sip): Extern it.
16369
163702008-02-01 Kenichi Handa <handa@m17n.org>
16371
16372 * composite.c (get_composition_id): Pay attention to TAB component.
16373
16374 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
16375 TAB. Adjust for the change of s->char2b which always points to
16376 the first element of allocated memory.
16377
16378 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
16379
16380 * xdisp.c (handle_composition_prop): Set it->c to the first
16381 non-TAB component.
16382 (fill_composite_glyph_string): Change argument.
16383 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
16384 (x_produce_glyphs): Fix handling of left/right padding.
16385
163862008-02-01 Kenichi Handa <handa@m17n.org>
16387
16388 * coding.c (detect_coding_system): Fix for handling off
16389 inhibit_iso_escape_detection. Fix for the case that no coding
16390 system is defined for a specific coding category.
16391
163922008-02-01 Kenichi Handa <handa@m17n.org>
16393
16394 * font.c (font_matching_entity): Delete unused local var.
16395
16396 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
16397 opening a font.
16398
16399 * fileio.c (Finsert_file_contents): On recovering a file, assume
16400 Unix-like eol.
16401 (choose_write_coding_system): On auto-saving a file, force
16402 Unix-like eol.
16403
16404 * coding.c (setup_coding_system): Fix setting of
16405 coding->common_flags based on eol_type.
16406 (coding_inherit_eol_type): If PARENT is not nil, be sure to
16407 inherit from it.
16408
164092008-02-01 Kenichi Handa <handa@m17n.org>
16410
16411 * alloc.c (NSTATICS): Increas to 0x600.
16412
164132008-02-01 Kenichi Handa <handa@m17n.org>
16414
16415 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
16416 (ftfont_list): Don't check :name property.
16417 (ftfont_match): New function.
16418 (ftfont_pattern_entity): If the pattern doesn't contain
16419 FC_SPACING, don't assume FC_MONO.
16420
16421 * font.h (struct font_driver): New member `match'.
16422 (font_update_drivers): Adjust prototype.
16423
16424 * font.c (font_parse_fcname, font_parse_name): Don't change :name
16425 property of FONT.
16426 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
16427 them unconditionally.
16428 (font_matching_entity): New function.
16429 (font_open_by_name): Try font_matching_entity if exact match is
16430 not found.
16431 (font_update_drivers): Delete the arg FONT. Return a list of
16432 actually used backends. Don't free faces, font caches here.
16433 Don't store data in frame parameters. Don't call x_set_font.
16434 (Ffont_spec): Store :name property as is.
16435 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
16436 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
16437 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
16438 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
16439 Call font->driver->otf_gsub instead of font_otf_gsub.
16440
16441 * frame.c (x_set_font_backend): Do more works that were done in
16442 font_update_drivers before.
16443
16444 * xfont.c (xfont_match): New function.
16445 (xfont_driver): Set xfont_driver.match to xfont_match.
16446 (xfont_draw): Set font in GC if necessary.
16447
16448 * ftxfont.c (ftxfont_match): New function.
16449 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
16450
16451 * xftfont.c (xftfont_match): New function.
16452 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
16453
164542008-02-01 Kenichi Handa <handa@m17n.org>
16455
16456 * font.h (struct font): New member scalable.
16457 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
16458 (font_otf_gsub): Adjust prototype.
16459
16460 * font.c (font_otf_capability): Fix handling of the default langsys.
16461 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
16462 Check the contents of SPEC.
16463 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
16464 (check_gstring): New function.
16465 (REPLACEMENT_CHARACTER): New macro.
16466 (font_otf_gsub): New arg alternate_subst. Be sure to set all
16467 glyph codes of GSTRING.
16468 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
16469 (font_prepare_composition): Set cmp->glyph_len.
16470 (font_open_entity): Set font->scalable.
16471 (Ffont_get): Handle :otf property.
16472 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
16473 functions.
16474 (Fquery_font): Use font->font.full_name.
16475 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
16476 Sfont_otf_alternates.
16477
16478 * ftfont.c (ftfont_open): Set font->font.full_name and
16479 font->font.name properly. Fix calculation of font->font.height
16480 and font->min_width.
16481
16482 * ftxfont.c (ftxfont_create_gcs): New function.
16483 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
16484 (ftxfont_draw_backgrond): Fix filling region.
16485 (ftxfont_default_fid): New function.
16486 (ftxfont_open): Set xfont->fid to the return value of
16487 ftxfont_default_fid.
16488 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
16489 (ftxfont_done_face): Free only GCs that are created by
16490 ftxfont_create_gcs.
16491 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
16492
16493 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
16494 Clip to src->width, etc (not src->clip_XXX).
16495
16496 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
16497 FontBackend frame parameter.
16498
164992008-02-01 Kenichi Handa <handa@m17n.org>
16500
16501 * font.h (struct font_driver_list): New member `on'.
16502 (Fclear_font_cache): EXFUN it.
16503 (font_update_drivers): Extern it.
16504
16505 * font.c (font_unparse_fcname): Fix typo (swidth->width).
16506 (font_list_entities): Check driver_list->on.
16507 (register_font_driver): Initalize `on' member to 0.
16508 (font_update_drivers): New function.
16509 (Fclear_font_cache): Check driver_list->on.
16510
16511 * frame.h (Qfont_backend): Extern it.
16512 (x_set_font_backend): Extern it.
16513
16514 * frame.c (Qfont_backend): New variable.
16515 (frame_parms): New element for font-backend.
16516 (x_set_font_backend): New function.
16517
16518 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
16519 FontBackend frame parameter.
16520 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
16521 x_set_font_backend.
16522
16523 * xfont.c (xfont_list): Don't try listing by :name property if the
16524 name is not for XLFD.
16525
165262008-02-01 Kenichi Handa <handa@m17n.org>
16527
16528 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
16529 (LGLYPH_SET_TO): New macros.
16530 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
16531 element of G is vector or not.
16532 (font_at): Extern it.
16533
16534 * font.c: Include window.h.
16535 (font_lispy_object): New function.
16536 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
16537 end of valid glyph.
16538 (font_close_object): Fix getting (struct font *).
16539 (font_at): New function.
16540 (Ffont_get): If FONT is a font-object, get entity from it.
16541 (Ffont_make_gstring): Initialize elements of glyphs with nil.
16542 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
16543 range check.
16544 (Ffont_at): New function.
16545 (syms_of_font): Defsubr Sfont_at.
16546
16547 * xdisp.c (it_props): Move the entry for Qauto_composed to just
16548 before the entry for Qcomposition.
16549 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
16550 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
16551 the font in gstring.
16552 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
16553 LGLYPH_FORM (g) to detect the end of valid glyph.
16554 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
16555 we are composing with gstring.
16556
16557 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
16558 Check if adjustment is vector or not.
16559
16560 * Makefile.in (font.o): Make it depends on window.h.
16561
165622008-02-01 Kenichi Handa <handa@m17n.org>
16563
16564 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
16565 adjustment is vector or not.
16566
165672008-02-01 Miles Bader <miles@gnu.org>
16568
16569 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
16570
165712008-02-01 Kenichi Handa <handa@m17n.org>
16572
16573 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
16574 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
16575 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
16576
16577 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
16578 (DEVICE_DELTA): Fix typo.
16579 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
16580 LGLYPH format.
16581
16582 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
16583 the change of LGLYPH format.
16584
165852008-02-01 Kenichi Handa <handa@m17n.org>
16586
16587 * ftfont.c (ftfont_list): Fix typo.
16588 (ftfont_build_basic_charsets): Don't include letters with diacritics.
16589
165902008-02-01 Jan Djärv <jan.h.d@swipnet.se>
16591
16592 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
16593
16594 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
16595 xftface_info is non-NULL.
16596
165972008-02-01 Jan Djärv <jan.h.d@swipnet.se>
16598
16599 * ftfont.c (ftfont_list): Move misplaced #endif.
16600
166012008-02-01 Kenichi Handa <handa@m17n.org>
16602
16603 * ftfont.c (ftfont_list): Pay attention to the case that
16604 FC_CAPABILITY is not defined.
16605
166062008-02-01 Kenichi Handa <handa@m17n.org>
16607
16608 * xftfont.c (xftfont_open): Set charset related members to -1.
16609
16610 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
16611 QCname.
16612 (ftfont_open): Set charset related members to -1.
16613
16614 * fontset.c (Votf_script_alist): New variable.
16615 (syms_of_fontset): Initialize it.
16616 (fontset_font): Delete unused variable.
16617
16618 * fontset.h (Votf_script_alist): Extern it.
16619
16620 * font.c (font_find_for_lface): Optimize code.
16621
16622 * font.h (font_close_object, font_merge_old_spec): Extern them.
16623
166242008-02-01 Kenichi Handa <handa@m17n.org>
16625
16626 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
16627 (syms_of_font): Initialize them.
16628 (font_pixel_size): Allow float value in dpi.
16629 (font_prop_validate_type): Delete.
16630 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
16631 Change caller.
16632 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
16633 (font_prop_validate_extra): Delete.
16634 (font_prop_validate_spacing): New function.
16635 (font_property_table): Add elements for all known properties.
16636 (get_font_prop_index): Rename from check_font_prop_name. New
16637 argument FROM. Change caller.
16638 (font_prop_validate): Validate all known properties.
16639 (font_put_extra): Delete argument force. Change caller.
16640 (font_expand_wildcards): Make it static. Fix the way of shrinking
16641 the possible range.
16642 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
16643 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
16644 Change caller.
16645 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
16646 (font_parse_fcname): Delete argument merge. Fix parsing of point
16647 size. Don't validate properties values here. Change caller.
16648 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
16649 (font_open_by_name): Delete unused variable.
16650 (Ffont_spec): Likewise. Validate property values.
16651 (Ffont_match_p): New function.
16652
16653 * font.h (QCscalable): Extern it.
16654 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
16655
16656 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
16657
16658 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
16659 (xfont_list_pattern): New function.
16660 (xfont_list): Use xfont_list_pattern.
16661
166622008-02-01 Kenichi Handa <handa@m17n.org>
16663
16664 * font.h (Flist_fonts): EXFUN it.
16665
166662008-02-01 Jason Rumney <jasonr@gnu.org>
16667
16668 * w32term.c (w32_initialize): Add back smoothing_type and
16669 smoothing_enabled definitions.
16670
166712008-02-01 Kenichi Handa <handa@m17n.org>
16672
16673 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
16674 s->face->font on determining underline position.
16675
166762008-02-01 Kenichi Handa <handa@m17n.org>
16677
16678 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
16679 (font_has_char): Accept font-object too.
16680 (font_find_for_lface): Try at first with a size specified in face.
16681
166822008-02-01 Kenichi Handa <handa@m17n.org>
16683
16684 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
16685 font_open_by_name.
16686
166872008-02-01 Kenichi Handa <handa@m17n.org>
16688
16689 * font.h (QCspacing, QCdpi): Extern them.
16690 (enum font_spacing): New enum.
16691 (FONT_PIXEL_SIZE_QUANTUM): New macro.
16692
16693 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
16694 (QCspacing, QCdpi): New variables.
16695 (syms_of_font): Initialize them.
16696 (font_pixel_size): New function.
16697 (font_put_extra): New function.
16698 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
16699 in FONT_EXTRA.
16700 (font_parse_fcname): Handle enumerated values (e.g. bold).
16701 Fix handling font size. Add QCname property that contains only
16702 unknown properties.
16703 (font_score): Change argument. Change caller. Pay attention to
16704 FONT_PIXEL_SIZE_QUANTUM.
16705 (font_sort_entites, font_list_entities, font_find_for_lface)
16706 (font_open_for_lface, font_open_by_name): Fix handling of font size.
16707 (Ffont_spec): Add QCname property that contains only unknown properties.
16708
16709 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
16710 include weight in listing pattern, instead check weight of each
16711 listed font. Don't include scalable in pattern. Pay attention to
16712 FONT_PIXEL_SIZE_QUANTUM.
16713
167142008-02-01 Kenichi Handa <handa@m17n.org>
16715
16716 * font.c (font_parse_fcname): Fix parsing of point-size.
16717 (font_unparse_fcname): Produce symbolic names for style properties.
16718 (font_list_entities): Handle float size correctly.
16719 (font_open_by_name): Prefer `normal' property values if the name
16720 doesn't specify them.
16721
16722 * fontset.c (Finternal_char_font): Use font_get_name, not
16723 Ffont_xlfd_name.
16724
16725 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
16726 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
16727 pattern. Don't force scalable.
16728
16729 * xftfont.c (xftfont_open): For generating a name, start from
16730 96-byte buffer.
16731
167322008-02-01 Jan Djärv <jan.h.d@swipnet.se>
16733
16734 * frame.h (x_new_fontset2): Fix prototype.
16735
167362008-02-01 Kenichi Handa <handa@m17n.org>
16737
16738 * font.h (struct font_driver): Delete member parse_name.
16739 (font_match_p, font_get_spec, font_parse_fcname)
16740 (font_unparse_fcname): Extern them.
16741 (font_get_name): Adjust prototype.
16742
16743 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
16744 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
16745 (font_expand_wildcards): Fix handling ENCODING field. Avoid
16746 unnecessary checks for weight, slant, and swidth.
16747 (font_parse_fcname): New function.
16748 (font_unparse_fcname): New function.
16749 (font_parse_name): New function.
16750 (font_match_p): New function.
16751 (font_get_name): Change return value to Lisp string.
16752 (font_get_spec): New function.
16753 (Qunspecified, Qignore_defface): Don't extern them.
16754 (font_find_for_lface): Assume that LFACE is fully specified.
16755 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
16756 object, use it for FACE.
16757 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
16758 driver->parse_name.
16759 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
16760
16761 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
16762 prototype.
16763
16764 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
16765 argument F. Don't call Fnew_fontset. Instead, directly call
16766 make_fontset.
16767
16768 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
16769
16770 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
16771 of x_new_fontset2.
16772
16773 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
16774 (Qsans__serif): New variables.
16775 (ftfont_generic_family_list): New variable.
16776 (syms_of_ftfont): Initialize the above variables.
16777 (ftfont_pattern_entity): Delete argument NAME.
16778 (ftfont_list_generic_family): New function.
16779 (ftfont_parse_name): Delete this function.
16780 (ftfont_list): Try generic family only when FcFontList found no font.
16781 (ftfont_list_family): Fix args to FcObjectSetBuild.
16782
16783 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
16784 object in attrs[LFACE_FONT_INDEX].
16785 (set_lface_from_font_name): Cancel all changes for font-backend.
16786 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
16787 function.
16788 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
16789 font object in QCfont attribute.
16790 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
16791 (realize_default_face) [USE_FONT_BACKEND]: Call
16792 set_lface_from_font_and_fontset.
16793
16794 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
16795 "fixed", and signal error here if no suitable font was found.
16796
16797 * xfont.c (xfont_parse_name): Delete this function.
16798
16799 * xftfont.c (xftfont_open): Change coding style of error
16800 handling. Generate fontconfig's fontname pattern.
16801
16802 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
16803 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
16804
16805 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
16806 Both args FONTSET and FONT_OBJECT must be existing ones.
16807
168082008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16809
16810 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
16811
168122008-02-01 Kenichi Handa <handa@m17n.org>
16813
16814 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
16815
16816 * font.h (struct font): Fix typo.
16817
16818 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
16819 XLFD_XXX_INDEX.
16820 (enum xlfd_field_mask): New enum.
16821 (intern_font_field): Changed argument. Change caller. If digits
16822 are followed by non-digits, return a symbol.
16823 (font_expand_wildcards): New function.
16824 (font_parse_xlfd): Fix wildcard handling.
16825 (Ffont_spec): If :name is specified, reflect the info in the other
16826 properties.
16827
16828 * ftfont.c (ftfont_pattern_entity): Fix typo.
16829 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
16830 locale.
16831
168322008-02-01 Kenichi Handa <handa@m17n.org>
16833
16834 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
16835
16836 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
16837 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
16838 registry doesn't specify encoding part.
16839 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
16840 (font_open_by_name): At first try parsing the name.
16841 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
16842 as Lisp symbols.
16843
16844 * fontset.c (reorder_font_vector): Pay attention to the case that
16845 the 3rd element of font_def is nil.
16846 (fontset_font): For the default fontset, append one more fontset
16847 elements for a script-based font specification. Don't add script
16848 attribute on finding a font.
16849 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
16850 font name.
16851 (fontset_ascii_font): If a font can't be opened, return nil.
16852
16853 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
16854 (ftfont_pattern_entity): New function.
16855 (ftfont_get_cache): Assume that freetype_font_cache is already
16856 initialized.
16857 (ftfont_list): Handle the case that a file is specified in font
16858 name. Use ftfont_pattern_entity to generate entities.
16859 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
16860 (syms_of_ftfont): Initialize freetype_font_cache.
16861
16862 * xftfont.c (xftfont_open): Make the font name fontconfig's
16863 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
16864 (xftfont_close): Free font->font.name if not NULL.
16865
16866 * xfont.c (xfont_list): If script is specified for a font, return
16867 null_vector.
16868 (xfont_list_family): Declare argument type.
16869
16870 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
16871 name, set LFACE_FONT (lface) to nil.
16872
16873 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
16874 return Qnil.
16875
168762008-02-01 Kenichi Handa <handa@m17n.org>
16877
16878 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
16879 (standard_args): Add "-enable-font-backend".
16880
168812008-02-01 Kenichi Handa <handa@m17n.org>
16882
16883 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
16884 (struct xftdraw_list, xftdraw_list): Delete them.
16885 (register_xftdraw, check_xftdraw): Delete them.
16886 (xftfont_prepare_face): Don't call register_xftdraw.
16887 (xftfont_done_face): Don't call check_xftdraw.
16888 (xftfont_draw): Get background color only when with_background is
16889 nonzero.
16890
16891 * xfont.c (xfont_encode_char): Fix calculation of char2b.
16892
168932008-02-01 Kenichi Handa <handa@m17n.org>
16894
16895 These changes are for the new font handling codes.
16896
16897 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
16898 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
16899 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
16900 (FONTSRC, FONTOBJ): New variables.
16901 (obj): Add $(FONTOBJ).
16902 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
16903 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
16904 @LIBOTF_LIBS@.
16905 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
16906 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
16907
16908 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
16909
16910 * character.h (Vscript_representative_chars): Extern it.
16911
16912 * character.c (Vscript_representative_chars): New variable.
16913 (syms_of_character): Declare it as a Lisp variable.
16914
16915 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
16916 enable_font_backend is nonzero, accept the composition method
16917 COMPOSITION_WITH_GLYPH_STRING.
16918
16919 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
16920 enumeration COMPOSITION_WITH_GLYPH_STRING.
16921
16922 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
16923 members clip_x, clip_y, clip_width, and clip_height.
16924 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
16925
16926 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
16927 --enable-font-backend. Call syms_of_font.
16928
16929 * fns.c (assoc_no_quit): New function.
16930
16931 * fontset.h (FONT_INFO_FROM_FACE): New macro.
16932 (face_for_font, new_fontset_from_font)
16933 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
16934
16935 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
16936 (fontset_font, fontset_ascii, face_for_char)
16937 (make_fontset_for_ascii_face, Ffont_info)
16938 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
16939 is nonzero, use font-backend mechanism.
16940 (find_font_encoding): Make it non-static.
16941 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
16942 New functions.
16943
16944 * frame.h (struct frame): New members resx and resy.
16945 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
16946 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
16947
16948 * frame.c [USE_FONT_BACKEND]: Include "font.h".
16949 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
16950
16951 * lisp.h (assoc_no_quit): Extern it.
16952
16953 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
16954 Through out the file, use FONT_INFO_FROM_FACE instead of
16955 FONT_INFO_FROM_ID, use get_per_char_metric instead of
16956 rif->per_char_metric.
16957 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
16958 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
16959 (get_glyph_face_and_encoding, fill_composite_glyph_string)
16960 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
16961 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
16962 nonzero, use font-backend mechanism.
16963 (get_per_char_metric): New function.
16964
16965 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
16966 (set_lface_from_font_name)
16967 (set_font_frame_param, free_realized_face)
16968 (prepare_face_for_display, clear_face_gcs)
16969 (Finternal_set_font_selection_order, realize_x_face)
16970 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
16971 font-backend mechanism.
16972 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
16973 (load_face_font) [USE_FONT_BACKEND]: Abort.
16974 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
16975 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
16976
16977 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
16978 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
16979 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
16980 nonzero, register all available font drivers. Call
16981 x_default_font_parameter for deciding a font.
16982 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
16983
16984 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
16985 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
16986 (x_set_glyph_string_clipping_exactly)
16987 (x_compute_glyph_string_overhangs)
16988 (x_draw_glyph_string_foreground)
16989 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
16990 (x_free_frame_resources) [USE_FONT_BACKEND]: If
16991 enable_font_backend is nonzero, use font-backend mechanism.
16992 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
16993
169942008-02-01 Kenichi Handa <handa@m17n.org>
16995
16996 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
16997 system_eol_type.
16998 (syms_of_coding): Initialize system_eol_type.
16999
17000 * process.c (Fset_process_coding_system): Inherit system's eol
17001 format if necessary.
17002
170032008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17004
17005 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
17006
170072008-02-01 Kenichi Handa <handa@m17n.org>
17008
17009 * coding.c (decode_eol): Pay attention to buffer relocation in
17010 del_range_2.
17011 (decode_coding): Call decode_eol before restoring undo_list.
17012
170132008-02-01 Kenichi Handa <handa@m17n.org>
17014
17015 * charset.c (Fdefine_charset_internal): Fix setting of
17016 emacs_mule_bytes.
17017
170182008-02-01 Kenichi Handa <handa@m17n.org>
17019
17020 * keyboard.c (read_char): Check if C is a character or not before
17021 looking up Vkeyboard_translate_table.
17022
170232008-02-01 Kenichi Handa <handa@m17n.org>
17024
17025 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
17026 condition to terminate the loop.
17027
170282008-02-01 Kenichi Handa <handa@m17n.org>
17029
17030 * coding.c (produce_composition): Compare charbuf[i] instead of
17031 args[i] against 0.
17032 (Fterminal_coding_system): Use EQ to compare Lisp objects.
17033
170342008-02-01 Kenichi Handa <handa@m17n.org>
17035
17036 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
17037 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
17038 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
17039 detect_coding.
17040 (emacs_mule_char): Handle old style (Emacs 20) component character
17041 of a composition.
17042 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
17043 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
17044 composition rule.
17045 (decode_coding_emacs_mule): Handle invalid bytes correctly.
17046
170472008-02-01 Kenichi Handa <handa@m17n.org>
17048
17049 * coding.c (encode_coding_ccl): Allocate destination dynamically
17050 when necessary.
17051
170522008-02-01 Kenichi Handa <handa@m17n.org>
17053
17054 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
17055 the loop. When quitted, show a proper error message.
17056
170572008-02-01 Kenichi Handa <handa@m17n.org>
17058
17059 * xterm.c (x_set_glyph_string_clipping_exactly): Set
17060 src->clip_head and src->clip_tail temporarily instead of src->hl.
17061
17062 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
17063 character sequence.
17064 (Fccl_execute_on_string): Use ASET, not XSET.
17065
170662008-02-01 Kenichi Handa <handa@m17n.org>
17067
17068 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
17069
170702008-02-01 Kenichi Handa <handa@m17n.org>
17071
17072 * coding.c (decode_coding): Fix the condition of terminating the
17073 decoding loop.
17074
170752008-02-01 Kenichi Handa <handa@m17n.org>
17076
17077 * data.c (Faset): On setting a character bigger than 255 in a
17078 unibyte string, signal an error instead of make the string multibyte.
17079
170802008-02-01 Kenichi Handa <handa@m17n.org>
17081
17082 * charset.c (map_charset_chars): Fix for ascii-compatible charset
17083 made by a mapping table.
17084
170852008-02-01 Kenichi Handa <handa@m17n.org>
17086
17087 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
17088 not.
17089 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
17090 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
17091
17092 * xterm.c (x_draw_composite_glyph_string_foreground): Check
17093 s->face is NULL or not.
17094
170952008-02-01 Kenichi Handa <handa@m17n.org>
17096
17097 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
17098 (x_draw_glyph_string): Fix drawing of right_overhang and
17099 left_overhang around/on cursor.
17100
17101 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
17102
171032008-02-01 Kenichi Handa <handa@m17n.org>
17104
17105 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
17106
171072008-02-01 Kenichi Handa <handa@m17n.org>
17108
17109 * coding.c (Fdefine_coding_system_internal)
17110 (Fdefine_coding_system_alias): Avoid a duplicated element in
17111 Vcoding_system_alist.
17112
171132008-02-01 Kenichi Handa <handa@m17n.org>
17114
17115 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
17116
17117 * coding.c (Qcoding_system_define_form): New variable.
17118 (syms_of_coding): Intern and staticpro it.
17119 (Fcoding_system_p): Check Qcoding_system_define_form.
17120 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
17121
17122 * coding.h (CODING_SYSTEM_P): If ID is not available, call
17123 Fcoding_system_p.
17124 (CHECK_CODING_SYSTEM): If ID is not available, call
17125 Fcheck_coding_system.
17126 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
17127 Try also Fcheck_coding_system.
17128
171292008-02-01 Kenichi Handa <handa@m17n.org>
17130
17131 * coding.c (code_conversion_restore): GCPRO arg.
17132
171332008-02-01 Kenichi Handa <handa@m17n.org>
17134
17135 * character.c (lisp_string_width): Check multibyteness of STRING.
17136
171372008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17138
17139 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
17140 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
17141 (decode_mac_font_name): Use decode_coding_c_string instead of
17142 decode_coding.
17143 (x_load_font): Initialize fontp->fontset to -1. Set
17144 fontp->encoding_type.
17145
171462008-02-01 Kenichi Handa <handa@m17n.org>
17147
17148 * search.c (search_buffer): Give up BM search on case-fold-search
17149 if one of a target character has a case-equivalence of different
17150 byte length even if that target charcter is an ASCII.
17151 (simple_search): Fix calculation of byte length of matched text.
17152 (boyer_moore): Fix handling of case-equivalent multibyte characters.
17153
171542008-02-01 Kenichi Handa <handa@m17n.org>
17155
17156 * coding.c (decode_coding): Fix handling of invalid bytes.
17157
171582008-02-01 Kenichi Handa <handa@m17n.org>
17159
17160 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
17161 Unicode characters.
17162
171632008-02-01 Kenichi Handa <handa@m17n.org>
17164
17165 * coding.c (encode_coding_object): If a pre-write-conversion
17166 function makes a new buffer, kill it.
17167
171682008-02-01 Kenichi Handa <handa@m17n.org>
17169
17170 * coding.c (QCascii_compatible_p): New variable.
17171 (syms_of_coding): Initialize it.
17172 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
17173 calling string_char.
17174 (record_conversion_result): Add `default:' case.
17175 (coding_charset_list): Delete unused variable `coding_type'.
17176 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
17177 property in the plist of the coding system.
17178 (Fcoding_system_put): Check QCascii_compatible_p.
17179
171802008-02-01 Miles Bader <miles@gnu.org>
17181
17182 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
17183 removed calculation of frame `f', as it's now used.
17184
171852008-02-01 Kenichi Handa <handa@m17n.org>
17186
17187 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
17188 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
17189 (UNIDATA): New variable.
17190 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
17191 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
17192 $(RUN_TEMACS) unconditionally.
17193
171942008-02-01 Kenichi Handa <handa@m17n.org>
17195
17196 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
17197 (admindir): New variable.
17198 ($(lispsource)international/charprop.el): New target.
17199
172002008-02-01 Miles Bader <miles@gnu.org>
17201
17202 * character.c (chars-in-region): Remove obsolete function.
17203 (syms_of_character): Remove its initialization.
17204
172052008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
17206
17207 * w32select.c (validate_coding_system)
17208 (setup_windows_coding_system): New functions.
17209 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
17210 setup_windows_coding_system.
17211 (setup_config, Fw32_get_clipboard_data): Use
17212 validate_coding_system.
17213 (Fx_selection_exists): Move call to setup_config to a place
17214 where signals are allowed.
17215
17216 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
17217 (Fcheck_coding_system): Add declarations.
17218
172192008-02-01 Kenichi Handa <handa@m17n.org>
17220
17221 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
17222
172232008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17224
17225 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
17226 string as the second argument for x_new_fontset.
17227
172282008-02-01 Kenichi Handa <handa@m17n.org>
17229
17230 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
17231 (encode_coding_object): Use safe_call instead of call2.
17232
172332008-02-01 Kenichi Handa <handa@m17n.org>
17234
17235 * fontset.c (Fset_fontset_font): Check family element of a given vector.
17236
17237 * Makefile.in (lisp): Include charprop.el.
17238
172392008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17240
17241 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
17242 Not sure if it's unnecessary.
17243
172442008-02-01 Steven Tamm <steventamm@mac.com>
17245
17246 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
17247 some possibly unnecessary fontset checking code that crashed
17248 when creating a new frame.
17249
172502008-02-01 Kenichi Handa <handa@m17n.org>
17251
17252 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
17253 lookup_face.
17254
17255 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
17256
17257 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
17258
172592008-02-01 Kenichi Handa <handa@m17n.org>
17260
17261 * coding.c: Cancel the change done in HEAD on 2008-02-01.
17262 (coding_charset_list): New function.
17263
17264 * coding.h (coding_charset_list): Extern it.
17265
172662008-02-01 Kenichi Handa <handa@m17n.org>
17267
17268 * fontset.c (Fset_fontset_font): Call find_font_encoding with
17269 concatenation of family and registry.
17270
172712008-02-01 Kenichi Handa <handa@m17n.org>
17272
17273 * character.h (BYTE8_STRING): Fix typo.
17274
17275 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
17276 string to multibyte (sync to HEAD).
17277
17278 * casefiddle.c (casify_region): Handle changes in byte-length
17279 using replace_range_2 (sync to HEAD).
17280
172812008-02-01 Andreas Schwab <schwab@suse.de>
17282
17283 * chartab.c (map_char_table): GCPRO table and arg.
17284
172852008-02-01 Kenichi Handa <handa@m17n.org>
17286
17287 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
17288 already at limit.
17289
172902008-02-01 Kenichi Handa <handa@m17n.org>
17291
17292 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
17293 instead of fast_c_string_match_ignore_case.
17294 (find_font_encoding): Change argument to Lisp_Object. Use
17295 fast_string_match_ignore_case instead of
17296 fast_c_string_match_ignore_case. Change caller.
17297
172982008-02-01 Kenichi Handa <handa@m17n.org>
17299
17300 * xdisp.c (get_next_display_element): In unibyte case, decide to
17301 display in octal form by checking a character by
17302 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
17303
17304 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
17305
17306 * character.c (unibyte_has_multibyte_table): New variable.
17307
17308 * character.h (unibyte_has_multibyte_table): Extern it.
17309 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
17310
173112008-02-01 Kenichi Handa <handa@m17n.org>
17312
17313 * coding.c (encode_coding_iso_2022): Fix handling of charset
17314 annotation.
17315
173162008-02-01 Kenichi Handa <handa@m17n.org>
17317
17318 * coding.c (setup_coding_system): If coding_system is nil, use
17319 Qundecided.
17320 (Fterminal_coding_system): Return nil if terminal coding system is
17321 `undecided'.
17322 (syms_of_coding): Define coding-system `undecided' here. Setup
17323 terminal_coding as `undecided'.
17324
173252008-02-01 Kenichi Handa <handa@m17n.org>
17326
17327 * xdisp.c (message_dolog, set_message_1): Call
17328 unibyte_char_to_multibyte with arg type int.
17329
17330 * lread.c (read1): Fix reading of a char-table.
17331
17332 * print.c (print_object): Include sub char-table in circularities
17333 detection.
17334
173352008-02-01 Kenichi Handa <handa@m17n.org>
17336
17337 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
17338 Append the found sequences in car of ARGS instead of prepending.
17339
173402008-02-01 Kenichi Handa <handa@m17n.org>
17341
17342 * fileio.c (report_file_error): Make a unibyte string from
17343 strerror (errorno).
17344 (Fsubstitute_in_file_name): Fix the arg to
17345 unibyte_char_to_multibyte. It is evaluated twice.
17346
173472008-02-01 Kenichi Handa <handa@m17n.org>
17348
17349 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
17350
173512008-02-01 Kenichi Handa <handa@m17n.org>
17352
17353 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
17354 BOM is not found.
17355 (detect_coding, detect_coding_system): Optimization for ISO-2022
17356 when no 8-bit data is found.
17357
173582008-02-01 Jason Rumney <jasonr@gnu.org>
17359
17360 * w32fns.c (x_to_w32_font): Update to use new coding struct.
17361
173622008-02-01 Kenichi Handa <handa@m17n.org>
17363
17364 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
17365 CHARS.
17366
173672008-02-01 Steven Tamm <steventamm@mac.com>
17368
17369 * macterm.c (mac_encode_char): Add charset argument and update
17370 to use encoding_type.
17371 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
17372 switch to pure fontset.
17373 (decode_mac_font_name): Temporarily remove decoding.
17374 (x_font_name_to_mac_font_name): Temporarily remove encoding.
17375 (x_load_font): Temporarily remove encoding.
17376
173772008-02-01 Kenichi Handa <handa@m17n.org>
17378
17379 * xfaces.c (Fface_font): If frame is not on a window system,
17380 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
17381 refer to face->font.
17382 (split_font_name_into_vector, build_font_name_from_vector)
17383 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
17384 when HAVE_WINDOW_SYSTEM is defined.
17385
173862008-02-01 Kenichi Handa <handa@m17n.org>
17387
17388 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
17389 (x_produce_glyphs): Fix setting of members of cmp in case
17390 cmp->glyph_len is zero.
17391
17392 * fontset.c (Fset_fontset_font): Fix docstring.
17393 (Ffontset_info): Make it backward compatible. New arg ALL.
17394
173952008-02-01 Kim F. Storm <storm@cua.dk>
17396
17397 * process.c (read_process_output): Grow decoding_buf when needed;
17398 this could cause a crash in allocate_string and compact_small_strings.
17399
174002008-02-01 Kenichi Handa <handa@m17n.org>
17401
17402 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
17403
174042008-02-01 Kenichi Handa <handa@m17n.org>
17405
17406 * coding.c (setup_coding_system): Set coding->common_flags
17407 correctly for raw-text.
17408 (consume_chars): On encoding unibyte text by raw-text, don't check
17409 multibyte form.
17410 (encode_coding): On encoding by raw-text, never use translation tables.
17411
17412 * fileio.c (e_write): Short cut for the case of no encoding.
17413
174142008-02-01 Kenichi Handa <handa@m17n.org>
17415
17416 * coding.c (detect_coding, detect_coding_system): Delete unused
17417 variables.
17418
174192008-02-01 Kenichi Handa <handa@m17n.org>
17420
17421 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
17422 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
17423
174242008-02-01 Kenichi Handa <handa@m17n.org>
17425
17426 * coding.c (Ffind_coding_systems_region_internal): Include
17427 raw-text and no-conversion in the result.
17428
174292008-02-01 Kenichi Handa <handa@m17n.org>
17430
17431 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
17432 (load_font_get_repertory): Delete unnecessary check of ENCODING of
17433 FONT_DEF.
17434 (font_def_arg, add_arg, from_arg, to_arg): New args.
17435 (set_fontset_font): Change argument.
17436 (Fset_fontset_font): Fix for the case that TARGET is a script
17437 name and charset name.
17438 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
17439
174402008-02-01 Kenichi Handa <handa@m17n.org>
17441
17442 * fontset.c (fontset_font): Rename from fontset_face. Change return
17443 value.
17444 (face_suitable_for_char_p, face_for_char): Adjust for the change
17445 of fontset_font.
17446 (make_fontset_for_ascii_face): Fix setting of the fontset element
17447 for ASCII.
17448 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
17449 to get a font name.
17450 (Ffontset_info): Adjust for the change of fontset_font.
17451
17452 * coding.c (emacs_mule_char): Check invalid code more rigidly.
17453
17454 * character.h (LEADING_CODE_LATIN_1_MIN)
17455 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
17456
174572008-02-01 Kenichi Handa <handa@m17n.org>
17458
17459 * editfns.c (check_translation): New function.
17460 (Ftranslate_region_internal): Handle M:N mapping.
17461
174622008-02-01 Kenichi Handa <handa@m17n.org>
17463
17464 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
17465
174662008-02-01 Kenichi Handa <handa@m17n.org>
17467
17468 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
17469 goto invalid_code.
17470 (decode_coding_iso_2022): Fix handling of invalid designation.
17471
17472 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
17473 after calling code_conversion_save.
17474
174752008-02-01 Kenichi Handa <handa@m17n.org>
17476
17477 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
17478
17479 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
17480
17481 * fontset.c: Include "intervals.h".
17482 (fontset_face): Fix comparing of Lisp_Objects.
17483 (free_face_fontset, new_fontset_from_font_name): Fix
17484 Lisp_Object/int mixup.
17485
17486 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
17487
17488 * coding.c: Add many prototypes for static functions.
17489 (get_translation_table): Allow max_lookup to be NULL.
17490 (decode_coding, Ffind_coding_systems_region_internal)
17491 (Funencodable_char_position, Fcheck_coding_systems_region): Call
17492 get_translation_table with max_lookup NULL.
17493
174942008-02-01 Kenichi Handa <handa@m17n.org>
17495
17496 * coding.c (get_translation_table): Declare it as Lisp_Object.
17497 (LOOKUP_TRANSLATION_TABLE): New macro.
17498 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
17499 instead of CHAR_TABLE_REF.
17500
175012008-02-01 Kenichi Handa <handa@m17n.org>
17502
17503 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
17504 annotation data format.
17505 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
17506 Change arguments FROM and TO to single argument NCHARS. Change caller.
17507 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
17508 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17509 (decode_coding_ccl, decode_coding_charset): Pay attention to
17510 coding->charbuf_used.
17511 (get_translation): New function.
17512 (produce_chars): New arguments translation_table and last_block.
17513 Translate characters here. Return number of carryover chars.
17514 Change caller.
17515 (produce_composition): New argument pos. Change caller.
17516 Adjust for the change of annotation data format.
17517 (produce_charset, produce_annotation): Likewise.
17518 (decode_coding, encode_coding): Don't call translate_chars.
17519 (consume_chars): New arg translation_table. Change caller.
17520 (translate_chars): Delete.
17521 (syms_of_coding): Make translation-table's number of extra slots 2.
17522
175232008-02-01 Kenichi Handa <handa@m17n.org>
17524
17525 * search.c (simple_search): Fix setting this_pos_byte in backward
17526 search.
17527
17528 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
17529 byte sequence.
17530 (detect_coding_ccl): Fix setting of the variable valids.
17531
175322008-02-01 Kenichi Handa <handa@m17n.org>
17533
17534 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
17535
17536 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
17537
17538 * editfns.c (Ftranslate_region_internal): Rename from
17539 Ftranslate_region. Accept a char-table in TABLE.
17540 (syms_of_editfns): Defsubr Stranslate_region_internal.
17541
17542 * xfaces.c (set_lface_from_font_name): If a font is specified for
17543 a frame, generate a fontset from the font.
17544 (build_scalable_font_name): If the scalable font is requested for
17545 a specific size, don't change that size.
17546 (try_font_list): Try a scalable font also in the case that a
17547 pattern string is specified.
17548
175492008-02-01 Kenichi Handa <handa@m17n.org>
17550
17551 * xfaces.c (Fface_font): New optional arg CHARACTER.
17552
175532008-02-01 Kenichi Handa <handa@m17n.org>
17554
17555 * charset.h (CHARSET_OFFSET): New macro.
17556
175572008-02-01 Kenichi Handa <handa@m17n.org>
17558
17559 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
17560
17561 * fontset.c (fontset_face): Handle the case that repertory is a
17562 char-table.
17563 (find_font_encoding): Return nil for unknown encoding.
17564 (Fset_fontset_font): Ignore a font of unknown encoding.
17565
175662008-02-01 Kenichi Handa <handa@m17n.org>
17567
17568 * keymap.c (describe_vector): Handle default value of a char table.
17569
17570 * fontset.c (fontset_face): Handle fallback fonts correctly.
17571 (Ffontset_info): Return infomation about fallback fonts.
17572
175732008-02-01 Kenichi Handa <handa@m17n.org>
17574
17575 * fontset.c (FONTSET_DEFAULT): New macro.
17576 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
17577 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
17578 the case that it is nil.
17579 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
17580 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
17581
17582 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
17583 subset or superset.
17584
175852008-02-01 Kenichi Handa <handa@m17n.org>
17586
17587 * emacs.c (main): Call init_charset after syms_of_XXX.
17588
17589 * charset.c (Vcharset_map_directory): Delete.
17590 (Vcharset_map_path): New variable.
17591 (load_charset_map_from_file): Use Vcharset_map_path instead.
17592 (init_charset): Initialize Vcharset_map_path.
17593 (syms_of_charset): Delete declaration of "charset-map-directory",
17594 add declaration of "charset-map-path".
17595
175962008-02-01 Kenichi Handa <handa@m17n.org>
17597
17598 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
17599 ASCII only string.
17600
17601 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
17602
17603 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
17604 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
17605
176062008-02-01 Kenichi Handa <handa@m17n.org>
17607
17608 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
17609
17610 * coding.c (QCmnemonic, QCdefalut_char)
17611 (QCdecode_translation_table, QCencode_translation_table)
17612 (QCpost_read_conversion, QCpre_write_conversion): New variables.
17613 (get_translation_table): Return a list of translation tables if
17614 necessary.
17615 (decode_coding): Call get_translation_table with ENCODEP 0.
17616 (char_encodable_p): If translation_table is non-nil, always call
17617 translate_char.
17618 (Fdefine_coding_system_internal): Accept list of translation
17619 tables as :encode-translation-table and :decode-translation-table.
17620 (Fcoding_system_put): New function.
17621 (syms_of_coding): Declare new symbols. Defsubr
17622 Scoding_system_put.
17623 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
17624 typically JISX0212.
17625
17626 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
17627 when the charset is superset type.
17628
17629 * character.c (translate_char): Accept list of translation tables.
17630
176312008-02-01 Kenichi Handa <handa@m17n.org>
17632
17633 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
17634 (CODING_ATTR_TRANS_TBL): New macro.
17635
17636 * coding.c (get_translation_table): New function.
17637 (translate_chars): Fix the bug of skipping annotation data.
17638 (decode_coding, encode_coding): Utilize get_translation_table.
17639 (char_encodable_p, Funencodable_char_position): Translate char if
17640 necessary.
17641 (Ffind_coding_systems_region_internal)
17642 (Fcheck_coding_systems_region): Setup translation table for encode
17643 in a coding system attribute vector in advance.
17644 (Fdefine_coding_system_internal): Allow a symbol as translation
17645 table. For shift-jis type coding system, allow 4th charset.
17646
176472008-02-01 Kenichi Handa <handa@m17n.org>
17648
17649 * coding.c (decode_coding_sjis): Check the first byte rigidly.
17650
17651 * xdisp.c (get_next_display_element): Pass -1 as POS to
17652 FACE_FOR_CHAR if displaying a C-string.
17653
176542008-02-01 Kenichi Handa <handa@m17n.org>
17655
17656 * composite.c (get_composition_id): Handle xoff and yoff in a
17657 composition rule.
17658
17659 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
17660 (struct composition): New member lbearing and rbearing.
17661
17662 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
17663 (x_get_glyph_overhangs): Handle a composition glyph.
17664 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
17665
17666 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
17667 composition glyph.
17668
176692008-02-01 Kenichi Handa <handa@m17n.org>
17670
17671 * print.c: Include charset.h.
17672 (Vprint_charset_text_property): New variable.
17673 (Qdefault): Extern it.
17674 (PRINT_STRING_NON_CHARSET_FOUND)
17675 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
17676 (print_check_string_result): New variable.
17677 (print_check_string_charset_prop): New function.
17678 (print_prune_charset_plist): New variable.
17679 (print_prune_string_charset): New function.
17680 (print_object): Call print_prune_string_charset if
17681 Vprint_charset_text_property is not t.
17682 (print_interval): Print nothing if interval->plist is nil.
17683 (syms_of_print): Declare Vprint_charset_text_property as a lisp
17684 variable. Init and staticpro print_prune_charset_plist.
17685
176862008-02-01 Kenichi Handa <handa@m17n.org>
17687
17688 * fontset.c (new_fontset_from_font_name): Use the specified font
17689 for all characters in the new fontset.
17690
17691 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
17692 OBJECT args.
17693
17694 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
17695 OBJECT args for composition too.
17696
17697 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
17698 OBJECT args.
17699
177002008-02-01 Kenichi Handa <handa@m17n.org>
17701
17702 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
17703
17704 * fontset.c (reorder_font_vector): Adjust for the change of
17705 FONT_DEF format.
17706 (fontset_face): New arg id. Change caller.
17707 (face_for_char): New args pos and object.
17708 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
17709 (fs_query_fontset): Check NAME by Fassoc too.
17710 (Fset_fontset_font): Allow non-XLFD font name.
17711 (Ffontset_info): Adjust for the change of FONT_DEF format.
17712
17713 * fontset.h (face_for_char): Adjust prototype.
17714
17715 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
17716 (append_space, extend_face_to_end_of_line)
17717 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
17718 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
17719
17720 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
17721 POS and OBJECT args.
17722
17723 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
17724 POS and OBJECT args.
17725
177262008-02-01 Jason Rumney <jasonr@gnu.org>
17727
17728 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
17729 of GlobalAlloc'ed memory.
17730
177312008-02-01 Kenichi Handa <handa@m17n.org>
17732
17733 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
17734
17735 * charset.h (charset_table_used): Delete extern.
17736
17737 * charset.c (charset_table_used): Make it static.
17738 (map_charset_chars): Fix args to c_function with.
17739
17740 * chartab.c (map_sub_char_table_for_charset): Fix args to
17741 c_function with.
17742
17743 * coding.h (enum coding_result_code): Delete
17744 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
17745
17746 * coding.c (Qinsufficient_source, Qinconsistent_eol)
17747 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
17748 (Vlast_code_conversion_error): New variables.
17749 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
17750 (ONE_MORE_BYTE): Record error if any instead of signaling an
17751 error. If non-ASCII multibyte char is found, return the negative
17752 value of the code. All callers changed to check it.
17753 (ONE_MORE_BYTE_NO_CHECK): Likewise.
17754 (record_conversion_result): New function. Change all codes setting
17755 coding->result to call this function.
17756 (detect_coding_utf_8, decode_coding_utf_8)
17757 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
17758 Don't use the local variable incomplete.
17759 (emacs_mule_char): Change the second arg to `const'.
17760 (decode_coding): Fix of flushing out unprocessed data.
17761 (make_conversion_work_buffer): Fix making of a work buffer.
17762 (decode_coding_object): Return coding->dst_object.
17763
17764 * fontset.c (set_fontset_font): Fix args.
17765
17766 * lisp.h (CHARACTERBITS): Define as 22.
17767
17768 * process.c (send_process): Be sure to set coding->src_multibyte.
17769
17770 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
17771
177722008-02-01 Kenichi Handa <handa@m17n.org>
17773
17774 * xdisp.c (handle_auto_composed_prop): Give limit to
17775 Fnext_single_char_property_change.
17776
177772008-02-01 Kenichi Handa <handa@m17n.org>
17778
17779 * composite.c (syms_of_composite): Don't make the composition hash
17780 table weak.
17781
17782 * fontset.c (Fset_fontset_font): Fix docstring.
17783
17784 * lisp.h (detect_coding_system): Adjust prototype.
17785
17786 * fileio.c (kill_workbuf_unwind): Delete this function.
17787 (Finsert_file_contents): Adjust the call of detect_coding_system.
17788 Get conversion_buffer by code_conversion_save. Use the macro
17789 CODING_MAY_REQUIRE_DECODING. After decoding, update
17790 coding_system.
17791
17792 * coding.h (make_conversion_work_buffer): Delete extern.
17793 (code_conversion_save): Extern it.
17794
17795 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
17796 (CODING_GET_INFO): Delete argument eol_type. Change callers.
17797 (decode_coding_utf_8): Don't do eol converion.
17798 (detect_coding_utf_16): Check coding->src_chars, not
17799 coding->src_bytes. Add heuristics for those that have no signature.
17800 (decode_coding_emacs_mule, decode_coding_iso_2022)
17801 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
17802 Don't do eol converion.
17803 (adjust_coding_eol_type): Return a new coding system.
17804 (detect_coding): Don't detect eol. Fix for utf-16 detection.
17805 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
17806 each change.
17807 (decode_coding): Pay attention to undo_list. Do eol conversion for
17808 all types of coding-systems (if necessary).
17809 (Vcode_conversion_work_buf_list): Delete it.
17810 (Vcode_conversion_reused_workbuf): Rename from
17811 Vcode_conversion_reused_work_buf.
17812 (Vcode_conversion_workbuf_name): New variable.
17813 (reused_workbuf_in_use): New variable.
17814 (make_conversion_work_buffer): Delete the arg DEPTH.
17815 (code_conversion_restore): Change argument to cons.
17816 (code_conversion_save): Delete the argument BUFFER. Change callers.
17817 (detect_coding_system): New argument src_chars. Change callers.
17818 Fix for utf-16 detection.
17819 (init_coding_once): Don't use ISO_carriage_return.
17820 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
17821 reused_workbuf_in_use.
17822
178232008-02-01 Kenichi Handa <handa@m17n.org>
17824
17825 * keymap.c (store_in_keymap): Pay attention to the case that idx
17826 is a cons specifying a character range.
17827
178282008-02-01 Kenichi Handa <handa@m17n.org>
17829
17830 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
17831 HANDLED_RECOMPUTE_PROPS.
17832
17833 * coding.c (Fdefine_coding_system_internal): Fix checking of
17834 ascii compatibility.
17835
178362008-02-01 Kenichi Handa <handa@m17n.org>
17837
17838 * charset.c (find_charsets_in_text): Delete unused locale variable.
17839 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
17840
17841 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
17842 Resync charset_list to Vemacs_mule_charset_list.
17843
17844 * keymap.c (store_in_keymap): Pay attention to the case that idx
17845 is a cons specifying a character range.
17846
178472008-02-01 Kenichi Handa <handa@m17n.org>
17848
17849 * composite.c (update_compositions): Bind inhibit-read-only, etc
17850 to t before calling remove-list-of-text-properties.
17851
17852 * print.c (print_object): Always print ASCII chars as is.
17853
178542008-02-01 Kenichi Handa <handa@m17n.org>
17855
17856 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
17857
17858 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
17859 is a char table.
17860
178612008-02-01 Kenichi Handa <handa@m17n.org>
17862
17863 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
17864
178652008-02-01 Kenichi Handa <handa@m17n.org>
17866
17867 * xfaces.c (set_lface_from_font_name): Fix for the case that
17868 FONTNAME is not fontset name.
17869
178702008-02-01 Kenichi Handa <handa@m17n.org>
17871
17872 * fns.c (base64_encode_1): Fix previous change.
17873
178742008-02-01 Kenichi Handa <handa@m17n.org>
17875
17876 * fontset.c (set_fontset_font): New function.
17877 (Fset_fontset_font): If a font is specified for a charset, use
17878 map_charset_chars to store the font spec in a fontset.
17879
178802008-02-01 Kenichi Handa <handa@m17n.org>
17881
17882 * fontset.c (fontset_face): Create a fallback fontset on demand.
17883 (make_fontset): Don't create a fallback fontset here.
17884 (free_face_fontset): Free a fallback fontset (if any) too.
17885 (n_auto_fontsets): Delete this variable.
17886 (auto_fontset_alist): New variable.
17887 (new_fontset_from_font_name): Check auto_fontset_alist.
17888 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
17889 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
17890 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
17891 Defsubr Sfontset_list_all.
17892
178932008-02-01 Kenichi Handa <handa@m17n.org>
17894
17895 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
17896
178972008-02-01 Kenichi Handa <handa@m17n.org>
17898
17899 * fontset.c (Fnew_fontset): Check NAME more rigidly.
17900
179012008-02-01 Kenichi Handa <handa@m17n.org>
17902
17903 * editfns.c (Fgoto_char): Fix docstring.
17904
179052008-02-01 Kenichi Handa <handa@m17n.org>
17906
17907 * insdel.c (insert_from_gap): Adjust intervals correctly.
17908
179092008-02-01 Jason Rumney <jasonr@gnu.org>
17910
17911 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
17912 (pfnGetFontUnicodeRanges): New dynamically loaded function.
17913 (w32_initialize): Try to load it.
17914 (x_get_font_repertory): Use it if available.
17915 (w32_encode_char): Add shortcut for unicode output.
17916
17917 * w32fns.c (w32_load_system_font): Default charset to -1.
17918 (x_to_w32_charset): Match all fonts for unicode.
17919 (w32_to_x_charset): New parameter matching. Don't return partial
17920 or wildcard charsets.
17921 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
17922 (w32_codepage_for_font): Return CP_UNICODE for unicode.
17923 (w32_to_x_font): Match charset to real charset.
17924 (enum_font_cb2): Always list unicode versions.
17925
17926 * makefile.w32-in (temacs): Increase EMHEAP.
17927
179282008-02-01 Jason Rumney <jasonr@gnu.org>
17929
17930 * w32term.c (w32_encode_char): New charset parameter.
17931 font_info.encoding becomes encoding_type.
17932 (x_get_font_repertory): New function. Warning: stub only!
17933 (x_new_font): Return quickly if font already set.
17934 (x_new_fontset): fontsetname parameter is Lisp_Object.
17935 Use new fs_query_fontset. Try new_fontset_from_font_name.
17936 Use fontset_name for return value.
17937
17938 * w32term.h: Declare x_get_font_repertory.
17939
17940 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
17941 place of find_charset_in_text. Use encode_coding_object in place
17942 of encode_coding.
17943 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
17944 decode_coding.
17945
17946 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
17947 of x_new_fontset.
17948 (w32_load_system_font): Initialize charset as unicode.
17949 font_info.encoding becomes encoding_type.
17950 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
17951 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
17952 (syms_of_w32fns): Set get_font_repertory_func.
17953
17954 * w32console.c: Include character.h. Use terminal_encode_buffer
17955 from term.c.
17956 (write_glyphs): Use new version of encode_terminal_code. Use
17957 encode_coding_object in place of encode_coding.
17958
17959 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
17960 encoding becomes encoding_type.
17961
17962 * term.c (terminal_encode_buffer): Make externally visible.
17963
17964 * makefile.w32-in: Add character.h dependancies.
17965 (character.o, chartab.o): New targets.
17966
179672008-02-01 Kenichi Handa <handa@m17n.org>
17968
17969 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
17970 CODING_ID_EOL_TYPE.
17971
179722008-02-01 Andreas Schwab <schwab@suse.de>
17973
17974 * coding.c (produce_chars): Revert last change.
17975
179762008-02-01 Kenichi Handa <handa@m17n.org>
17977
17978 * charset.h (charset_unicode): Extern it.
17979
17980 * charset.c (string_xstring_p): Check by (C >= 0x100).
17981 (find_charsets_in_text): Change format of the arc CHARSETS. New
17982 arg MULTIBYTE.
17983 (Ffind_charset_region, Ffind_charset_string): Adjust for the
17984 change of find_charsets_in_text.
17985 (Fsplit_char): Fix doc. Never return unknown.
17986
17987 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
17988
17989 * coding.c (Fdefine_coding_system_alias): Update
17990 Vcoding_system_list.
17991
17992 * fontset.c (load_font_get_repertory): Pay attention to the case
17993 that ENCODING of a font is specified by a char-table.
17994
17995 * xterm.c (x_get_font_repertory): Handle the case that the
17996 encoding of font is other than Unicode.
17997
179982008-02-01 Kenichi Handa <handa@m17n.org>
17999
18000 * term.c (encode_terminal_code): Don't handle glyph-table. Check
18001 if a character is encodable by the terminal coding system. If
18002 not, produces proper number of `?'s. Update
18003 terminal_encode_buffer and terminal_encode_buf_size if necessary.
18004 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
18005
180062008-02-01 Kenichi Handa <handa@m17n.org>
18007
18008 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
18009 variables.
18010 (encode_terminal_code): Change argument. Encode multiple
18011 characters at once. Store the result of encoding in
18012 terminal_encode_buffer.
18013 (write_glyphs, insert_glyphs): Adjust for the change of
18014 encode_terminal_code.
18015 (term_init): Initialize terminal_encode_buffer and
18016 terminal_encode_buf_size.
18017
18018 * coding.c (consume_chars): If coding->src_object is nil, don't
18019 check annotation.
18020
180212008-02-01 Kenichi Handa <handa@m17n.org>
18022
18023 * character.c (char_string): Use ASCII_CHAR_P instead of
18024 SINGLE_BYTE_CHAR_P.
18025
180262008-02-01 Kenichi Handa <handa@m17n.org>
18027
18028 * xdisp.c (handle_auto_composed_prop): Check if the last
18029 characters of auto-composed region is newly composed with the
18030 following characters.
18031 (handle_composition_prop): Fix checking of point being inside
18032 composition.
18033
180342008-02-01 Kenichi Handa <handa@m17n.org>
18035
18036 * fns.c (concat): Don't change multibyteness of the result by
18037 concatenating an 8-bit character.
18038
18039 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
18040 multibyteness of the result when newelt is an 8-bit character.
18041
180422008-02-01 Dave Love <fx@gnu.org>
18043
18044 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
18045 EMACS_INT.
18046
18047 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
18048
18049 * xfaces.c (face_numeric_value): Declare dim size_t.
18050 (Finternal_lisp_face_equal_p): Remove unused f.
18051
18052 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
18053 (MATRIX_ROW): Remove unused vars.
18054 (draw_glyphs, x_insert_glyphs, fast_find_position)
18055 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
18056 byte/char counts.
18057
18058 * regex.c (regex_compile): Remove unused var.
18059
18060 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
18061
18062 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
18063 (Faccessible_keymaps, where_is_internal): Remove unused vars.
18064
18065 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
18066
18067 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
18068
18069 * fileio.c (Fwrite_region): Remove unused var.
18070
18071 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
18072 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
18073
18074 * composite.c (Fremove_list_of_text_properties): Declare.
18075
18076 * coding.c (inhibit_pre_post_conversion): Remove (unused).
18077 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
18078 (coding_inherit_eol_type): Remove unused attrs.
18079 (detect_coding): Cast arg of detect_eol.
18080
18081 * charset.c (syms_of_charset): Remove unused var p.
18082 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
18083 byte/char counts.
18084
18085 * casetab.c (set_case_table): Remove unused var.
18086
18087 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
18088 unused vars.
18089
180902008-02-01 Dave Love <fx@gnu.org>
18091
18092 * xterm.c (x_bitmap_mask): Declare.
18093
180942008-02-01 Dave Love <fx@gnu.org>
18095
18096 * xterm.c (x_term_init): Fix type error.
18097
18098 * lisp.h: Add Funibyte_char_to_multibyte.
18099
18100 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
18101 (Fset_coding_system_priority): Doc fix.
18102
18103 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
18104
18105 * indent.c (check_composition): Make start and end EMACS_INT.
18106
18107 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
18108
18109 * xdisp.c (handle_composition_prop, check_point_in_composition):
18110 Make buffer positions EMACS_INT.
18111
18112 * composite.c (find_composition, run_composition_function)
18113 (update_compositions, Ffind_composition_internal): Make buffer
18114 positions EMACS_INT.
18115
18116 * composite.h (find_composition, update_compositions): Make
18117 position args EMACS_INT.
18118
18119 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
18120
18121 * intervals.c (get_property_and_range):
18122 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
18123
18124 * unexalpha.c: Don't include varargs.h.
18125
181262008-02-01 Dave Love <fx@gnu.org>
18127
18128 * coding.h (ENCODE_UTF_8): New.
18129
18130 * Makefile.in (gtkutil.o): Depend on coding.h.
18131
18132 * coding.c (Fset_coding_system_priority): Doc fix.
18133
181342008-02-01 Kenichi Handa <handa@m17n.org>
18135
18136 * fileio.c (Finsert_file_contents): Call setup_coding_system in
18137 the case of auto saving.
18138
181392008-02-01 Andreas Schwab <schwab@suse.de>
18140
18141 * chartab.c (map_char_table, map_char_table_for_charset): Protect
18142 `range' from GC.
18143
181442008-02-01 Kenichi Handa <handa@m17n.org>
18145
18146 * coding.c (decode_coding_sjis): Check bytes more rigidly.
18147
181482008-02-01 Kenichi Handa <handa@m17n.org>
18149
18150 * fileio.c (choose_write_coding_system): Return a decided coding system.
18151 (Fwrite_region): Set Vlast_coding_system_used to the return value
18152 of choose_write_coding_system.
18153
181542008-02-01 Kenichi Handa <handa@m17n.org>
18155
18156 * charset.c (Fset_charset_priority): Pay attention to duplicated
18157 arguments.
18158
18159 * coding.c (QCcategory): New variable.
18160 (syms_of_coding): Defsym it. Set all elements of
18161 Vcoding_category_table and their symbol values.
18162 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
18163 coding-category-XXX, and coding-category-list.
18164 (Fdefine_coding_system_internal): Add category in the plist.
18165
181662008-02-01 Kenichi Handa <handa@m17n.org>
18167
18168 * callproc.c (Fcall_process): Handle carryover correctly.
18169
18170 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
18171 (raw_text_coding_system): Check NILP (coding_system).
18172 (coding_inherit_eol_type): Check NILP (coding_system) and
18173 NILP (parent).
18174 (consume_chars): Fix for the case of raw-text.
18175
18176 * process.c (read_process_output): Handle carryover correctly.
18177
181782008-02-01 Dave Love <fx@gnu.org>
18179
18180 * regex.c (re_search_2): Fix last change.
18181
181822008-02-01 Kenichi Handa <handa@m17n.org>
18183
18184 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
18185 target_multibyte. Even in a unibyte case, return a converted
18186 multibyte char.
18187 (GET_CHAR_AFTER): New macro.
18188 (PATFETCH): Translate via multibyte char.
18189 (HANDLE_UNIBYTE_RANGE): Delete this macro.
18190 (SETUP_MULTIBYTE_RANGE): New macro.
18191 (regex_compile): Setup compiled code so that its multibyteness
18192 matches that of a target. Fix the handling of "[X-YZ]" using
18193 SETUP_MULTIBYTE_RANGE.
18194 (analyse_first) <charset>: For filling fastmap for all multibyte
18195 characters, don't check by BASE_LEADING_CODE_P.
18196 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
18197 the same as RE_MULTIBYTE_P (bufp) now.
18198 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
18199 (TARGET_CHAR_AND_LENGTH): Delete this macro.
18200 (TRANSLATE_VIA_MULTIBYTE): New macro.
18201 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
18202 It is the same as RE_MULTIBYTE_P (bufp) now.
18203 <exactn>: Translate via multibyte.
18204 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
18205 translate it.
18206 <charset, charset_not>: Fetch a character by
18207 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
18208 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
18209 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
18210 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
18211 by GET_CHAR_AFTER.
18212 (bcmp_translate): Likewise.
18213
18214 * search.c (compile_pattern): Check the member target_multibyte,
18215 not the member multibyte of buf.
18216
18217 * lread.c (read1): While reading a string, set force_singlebyte
18218 and force_multibyte correctly.
18219
18220 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
18221 up of unibyte_to_multibyte_table.
18222
182232008-02-01 Kenichi Handa <handa@m17n.org>
18224
18225 * coding.c (setup_coding_system): If coding has
18226 post-read-conversion or pre-write-conversion, set
18227 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
18228 respectively.
18229 (decode_coding_gap): Run post-read-conversion if any.
18230
18231 * fileio.c (Finsert_file_contents): Even if we read into a
18232 unibyte buffer, check if we must decode the result or not.
18233
182342008-02-01 Kenichi Handa <handa@m17n.org>
18235
18236 * coding.c (make_conversion_work_buffer): Change the work buffer
18237 name to the same one as that of Emacs 21.
18238
182392008-02-01 Kenichi Handa <handa@m17n.org>
18240
18241 * coding.h (make_conversion_work_buffer): Adjust prototype.
18242 (code_conversion_restore): Don't extern it.
18243
18244 * coding.c (detected_mask): Delete unused variable.
18245 (decode_coding_iso_2022): Pay attention to the byte sequence of
18246 CTEXT extended segment, and retain those bytes as is.
18247 (decode_coding_ccl): Delete unused variable `valids'.
18248 (setup_coding_system): Delete unused variable `category'.
18249 (consume_chars): Delete unused variable `category'. Make it work
18250 for non-multibyte case.
18251 (make_conversion_work_buffer): Change argument.
18252 (saved_coding): Delete unused variable.
18253 (code_conversion_restore): Don't check saved_coding->destination.
18254 (code_conversion_save): New function.
18255 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
18256 instead of record_unwind_protect.
18257 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
18258 (detect_coding_system): Delete unused variable `mask'.
18259 (Fdefine_coding_system_internal): Delete unused variable id.
18260
18261 * fileio.c (kill_workbuf_unwind): New function.
18262 (Finsert_file_contents): On replacing, call
18263 make_conversion_work_buffer with correct args, and call
18264 record_unwind_protect with the first arg kill_workbuf_unwind.
18265
18266 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
18267
182682008-02-01 Kenichi Handa <handa@m17n.org>
18269
18270 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
18271 (fontset_add): Fix for the case that TO is less than TO1.
18272 (Ffontset_info): Don't use fallback fontset on checking the
18273 default fontset.
18274 (dump_fontset): New function for debugging.
18275
18276 * coding.c (Fdefine_coding_system_internal): Fix for the case that
18277 coding_type is Qcharset.
18278
182792008-02-01 Kenichi Handa <handa@m17n.org>
18280
18281 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
18282 (map_char_table): Don't inherit the value from the parent on
18283 initializing VAL. Adjust for the above change.
18284
182852008-02-01 Kenichi Handa <handa@m17n.org>
18286
18287 * coding.c (Qsignature, Qendian): Delete these variables.
18288 (syms_of_coding): Don't initialize them.
18289 (CATEGORY_MASK_UTF_16_AUTO): New macro.
18290 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
18291 detect_info->found.
18292 (decode_coding_utf_16): Don't detect BOM here.
18293 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
18294 is NOT utf_16_without_bom.
18295 (setup_coding_system): For a coding system of type utf-16, check
18296 if the attribute :endian is Qbig or not (not nil or not), and set
18297 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
18298 (detect_coding): If coding type is utf-16 and BOM detection is
18299 required, detect it.
18300 (Fdefine_coding_system_internal): For a coding system of type
18301 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
18302
183032008-02-01 Kenichi Handa <handa@m17n.org>
18304
18305 * coding.c (coding_set_source): Fix for the case that the current
18306 buffer is different from coding->src_object.
18307 (decode_coding_object): Don't use the conversion work buffer if
18308 DST_OBJECT is a buffer.
18309
183102008-02-01 Dave Love <fx@gnu.org>
18311
18312 * lread.c (read_emacs_mule_char) [len==2]: Index
18313 emacs_mule_charset correctly.
18314
183152008-02-01 Dave Love <fx@gnu.org>
18316
18317 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
18318 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
18319 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
18320 treated specially.)
18321 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
18322 (detected_mask): Remove Big5 bits.
18323
183242008-02-01 Kenichi Handa <handa@m17n.org>
18325
18326 The following changes are to make the font rescaling facility
18327 compatible with Emacs 21.
18328
18329 * xfaces.c (Vface_font_rescale_alist): Rename from
18330 Vface_resizing_fonts.
18331 (struct font_name): Rename member resizing_ratio to rescale_ratio.
18332 (font_rescale_ratio): Rename from font_resizing_ratio.
18333 (split_font_name): Set font->rescale_ratio.
18334 (better_font_p): Pay attention to font->rescale_ratio.
18335 (build_scalable_font_name): Likewise. Change RESX, and RESY
18336 fields.
18337 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
18338
183392008-02-01 Kenichi Handa <handa@m17n.org>
18340
18341 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
18342 (Qutf_16_le): Remove these variables.
18343 (syms_of_coding): Don't DEFSYM them.
18344 (decode_coding_utf_16): Fix handling of BOM.
18345 (encode_coding_utf_16): Fix handling of BOM.
18346
183472008-02-01 Kenichi Handa <handa@m17n.org>
18348
18349 * fileio.c (Finsert_file_contents): On replacing, before decoding
18350 the file into the work buffer, set point of the work buffer to the end.
18351
183522008-02-01 Dave Love <fx@gnu.org>
18353
18354 * coding.c (Fcheck_coding_systems_region): Fix type errors.
18355
183562008-02-01 Dave Love <fx@gnu.org>
18357
18358 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
18359 and fix C types.
18360
183612008-02-01 Kenichi Handa <handa@m17n.org>
18362
18363 * xdisp.c (SKIP_GLYPHS): New macro.
18364 (set_cursor_from_row): Pay attention to string display properties.
18365
18366 * category.c (copy_category_entry): Fix for the case that RANGE
18367 is an integer.
18368
18369 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
18370
18371 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
18372
183732008-02-01 Kenichi Handa <handa@m17n.org>
18374
18375 * charset.c (Fcharset_id_internal): New function.
18376 (syms_of_charset): Defsubr it.
18377
18378 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
18379 with the last arg charset_list acquired from coding.
18380 (Fdefine_coding_system_internal): For ccl-based coding system, fix
18381 the attribute coding_attr_ccl_valids.
18382
18383 * coding.h (enum define_coding_ccl_arg_index): Set the first
18384 member coding_arg_ccl_decoder to coding_arg_max.
18385
18386 * ccl.h (ccl_driver): Adjust prototype.
18387
18388 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
18389 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 18390 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
18391 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
18392 last arg Qnil.
18393
183942008-02-01 Kenichi Handa <handa@m17n.org>
18395
18396 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
18397 call encode_char.
18398
18399 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
18400
184012008-02-01 Dave Love <fx@gnu.org>
18402
18403 * composite.c (syms_of_composite): Make composition_hash_table weak.
18404
184052008-02-01 Kenichi Handa <handa@m17n.org>
18406
18407 * dispextern.h (check_face_attributes, generate_ascii_font_name)
18408 (font_name_registry): Don't extern them.
18409 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
18410
18411 * fontset.h (Qfontset): Don't extern it.
18412 (new_fontset_from_font_name): Extern it.
18413
18414 * fontset.c: Give 8 extra slots to fontset objects.
18415 (Qfontset_info): New variable.
18416 (syms_of_fontset): Defsym it.
18417 (FONTSET_FALLBACK): New macro.
18418 (fontset_face): Try also the default fontset.
18419 (make_fontset): Realize a fallback fontset from the default fontset.
18420 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
18421 using split_font_name_into_vector and build_font_name_from_vector.
18422 (Fset_fontset_font): Access the elements of font_spec by enum
18423 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
18424 name by using split_font_name_into_vector.
18425 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
18426 generate a proper font name from the fontset name. Update
18427 Vfontset_alias_alist.
18428 (n_auto_fontsets): New variable.
18429 (new_fontset_from_font_name): New function.
18430 (Ffont_info): Store the information about fonts generated from the
18431 default fontset in the first extra slot of the returned char-table.
18432
18433 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
18434 (font_name_registry): Delete function.
18435 (split_font_name_into_vector): New function.
18436 (build_font_name_from_vector): New function.
18437 (font_list): The argument REGISTRY is now a list of registry names.
18438 (choose_face_font): If we are choosing an ASCII font, and ATTRS
18439 specifies an explicit font name, return the name as is. Make a
18440 list of registy names.
18441
18442 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
18443 of x_new_fontset.
18444 (Fx_create_frame): Don't call x_new_fontset here. Just use
18445 x_list_fonts to check the existence of fonts.
18446
18447 * xterm.h (x_new_fontset): Adjust prototype.
18448
18449 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
18450 string. Use new_fontset_from_font_name to create a fontset from a
18451 font name.
18452
184532008-02-01 Kenichi Handa <handa@m17n.org>
18454
18455 * syntax.c (Vfind_word_boundary_function_table): New name for
18456 Vnext_word_boundary_function_table.
18457 (find-word-boundary-function-table): New name for
18458 next-word-boundary-function-table.
18459
184602008-02-01 Dave Love <fx@gnu.org>
18461
18462 * Makefile.in: Fix some dependencies.
18463
18464 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
18465 set it to nil before returning.
18466
18467 * composite.c (update_compositions): Fix type error.
18468
18469 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
18470
184712008-02-01 Kenichi Handa <handa@m17n.org>
18472
18473 * xterm.c (x_new_font): Optimize for the case that the font is
18474 already set for the frame.
18475
184762008-02-01 Kenichi Handa <handa@m17n.org>
18477
18478 * chartab.c (char_table_ascii): Check if the char table contents
18479 is sub-char-table or not.
18480 (char_table_set, char_table_set_range): Fix argument to
18481 char_table_ascii.
18482
18483 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
18484 (detect_coding_utf_8, detect_coding_utf_16)
18485 (detect_coding_emacs_mule, detect_coding_iso_2022)
18486 (detect_coding_sjis, detect_coding_big5)
18487 (detect_coding_ccl, detect_coding_charset): Change argument MASK
18488 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
18489 sequence is valid in this coding system. Change callers.
18490 (MAX_ANNOTATION_LENGTH): New macro.
18491 (ADD_ANNOTATION_DATA): New macro.
18492 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
18493 ADD_ANNOTATION_DATA. Change the format of annotation data.
18494 (ADD_CHARSET_DATA): New macro.
18495 (emacs_mule_char): New argument ID. Change callers.
18496 (decode_coding_emacs_mule, decode_coding_iso_2022)
18497 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
18498 Produce charset annotation data in coding->charbuf.
18499 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
18500 to charset annotation data in coding->charbuf.
18501 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
18502 coding->common_flags if the coding system is iso-2022 based and
18503 uses designation.
18504 (produce_composition): Adjust for the new annotation data format.
18505 (produce_charset): New function.
18506 (produce_annotation): Handle charset annotation.
18507 (handle_composition_annotation, handle_charset_annotation): New
18508 functions.
18509 (consume_chars): Handle charset annotation. Utilize the above two
18510 functions.
18511 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
18512 buffer, get the deleted text as a string and set
18513 coding->src_object to that string.
18514 (detect_coding, detect_coding_system): Use the new struct
18515 coding_detection_info.
18516
18517 * coding.h (struct coding_detection_info): New structure.
18518 (struct coding_system): Adjust prototype of the member `detector'.
18519 (CODING_ANNOTATE_CHARSET_MASK): New macro.
18520
185212008-02-01 Kenichi Handa <handa@m17n.org>
18522
18523 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
18524
185252008-02-01 Dave Love <fx@gnu.org>
18526
18527 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
18528 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
18529 to new local and nullify apropos_accumulate before returning.
18530 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
18531
185322008-02-01 Kenichi Handa <handa@m17n.org>
18533
18534 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
18535 correctly.
e3eea1fc 18536
aac0c6e3
MR
185372008-02-01 Dave Love <fx@gnu.org>
18538
18539 * fns.c (Flanginfo): Call synchronize_system_time_locale.
18540
185412008-02-01 Kenichi Handa <handa@m17n.org>
18542
18543 The following changes are to make character composition happen
18544 automatically on displaying.
18545
18546 * Makefile.in (lisp, shortlisp): Add composite.elc.
18547
18548 * composite.h (Qauto_composed, Vauto_composition_function)
18549 (Qauto_composition_function): Extern them.
18550
18551 * composite.c (Vcomposition_function_table)
18552 (Qcomposition_function_table): Delete variables.
18553 (Qauto_composed, Vauto_composition_function)
18554 (Qauto_composition_function): New variables.
18555 (run_composition_function): Don't call
18556 compose-chars-after-function.
18557 (update_compositions): Clear `auto-composed' text property.
18558 (compose_chars_in_text): Delete this function.
18559 (syms_of_composite): Staticpro Qauto_composed and
18560 Qauto_composition_function. Declare Vauto_composition_function as
18561 a Lisp variable.
18562
18563 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
18564
18565 * xdisp.c (it_props): Add an entry for Qauto_composed.
18566 (handle_auto_composed_prop): New function.
18567
18568 * xselect.c (selection_data_to_lisp_data): Don't call
18569 compose_chars_in_text.
18570
185712008-02-01 Dave Love <fx@gnu.org>
18572
18573 * keyboard.c (read_char): Modify checking around use of
18574 Vkeyboard_translate_table.
18575
18576 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
18577 and fix C types.
18578
185792008-02-01 Kenichi Handa <handa@m17n.org>
18580
18581 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
18582 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
18583 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
18584 the case that the last byte is '\r' correctly.
18585 (decode_coding): Flush out the unprocessed data correctly.
18586 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
18587
185882008-02-01 Dave Love <fx@gnu.org>
18589
18590 * xterm.c (XTread_socket): Fix changes for defined keysyms.
18591 Add XK_ISO... case.
18592 (xaw_scroll_callback): Revert last change.
18593
185942008-02-01 Kenichi Handa <handa@m17n.org>
18595
18596 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
18597
185982008-02-01 Kenichi Handa <handa@m17n.org>
18599
18600 * xfaces.c (Vface_resizing_fonts): New variable.
18601 (struct font_name): New member `resizing_ratio'.
18602 (font_resizing_ratio): New function.
18603 (split_font_name): Set font->resizing_ratio.
18604 (better_font_p): Pay attention to font->resizing_ratio.
18605 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
18606 RESX, and RESY fields.
18607 (try_alternative_families): Try scalable fonts if
18608 Vscalable_fonts_allowed is not Qt.
18609 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
18610
186112008-02-01 Dave Love <fx@gnu.org>
18612
18613 * xterm.c (xaw_scroll_callback): Cast correctly.
18614
186152008-02-01 Dave Love <fx@gnu.org>
18616
18617 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
18618 (lispy_kana_keys): Comment out.
18619 (make_lispy_event) [XK_kana_A]: Comment out.
18620
18621 * xterm.c (xaw_scroll_callback): Cast call_data.
18622 (XTread_socket): Deal with ASCII keysyms.
18623 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
18624
186252008-02-01 Dave Love <fx@gnu.org>
18626
18627 * xterm.c (Vx_keysym_table): New.
18628 (syms_of_xterm): Initialize it.
18629 (XTread_socket): Use it.
18630 From head: Eliminate incorrect optimization that tried to avoid
18631 decoding the output of X*LookupString.
18632 (x_get_font_repertory): Delete charset declaration.
18633
186342008-02-01 Kenichi Handa <handa@m17n.org>
18635
18636 * coding.c (detect_coding_charset): If only ASCII bytes are found,
18637 return 0.
18638 (Fdefine_coding_system_internal): Setup
18639 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
18640
186412008-02-01 Dave Love <fx@gnu.org>
18642
18643 * coding.c (Fcheck_coding_system): Doc fix.
18644
18645 * editfns.c (Finsert_byte): Return a proper value.
18646
186472008-02-01 Kenichi Handa <handa@m17n.org>
18648
18649 * coding.c (decode_coding): Fix args to translate_chars. Pay
18650 attention to Vstandard_translation_table_for_decode.
18651 (encode_coding): Fix args to translate_chars. Pay attention to
18652 Vstandard_translation_table_for_encode.
18653
18654 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
18655 SINGLE_BYTE_CHAR_P.
18656
18657 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
18658 not by SINGLE_BYTE_CHAR_P.
18659
18660 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
18661 SINGLE_BYTE_CHAR_P.
18662
18663 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
18664 SINGLE_BYTE_CHAR_P.
18665
18666 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
18667 by SINGLE_BYTE_CHAR_P.
18668
18669 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
18670 SINGLE_BYTE_CHAR_P.
18671
186722008-02-01 Dave Love <fx@gnu.org>
18673
18674 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
18675
186762008-02-01 Dave Love <fx@gnu.org>
18677
18678 * fns.c (Flanginfo): Fix typo.
18679
18680 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
18681
186822008-02-01 Kenichi Handa <handa@m17n.org>
18683
18684 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
18685 (detect_coding_emacs_mule, detect_coding_iso_2022)
18686 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
18687 incomplete byte sequence. Don't update *mask when correctly detected.
18688 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
18689 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
18690 (detect_coding, detect_coding_system): Adjust for the changes above.
18691
186922008-02-01 Kenichi Handa <handa@m17n.org>
18693
18694 * character.c (char_string): Rename from
18695 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
18696 (string_char): Rename from string_char.
18697
18698 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
18699 if C is greater than MAX_3_BYTE_CHAR.
18700 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
18701 string_char instead of string_char_with_unification.
18702
187032008-02-01 Dave Love <fx@gnu.org>
18704
18705 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
18706
187072008-02-01 Kenichi Handa <handa@m17n.org>
18708
18709 * keymap.c (push_key_description): Pay attention to force_multibyte.
18710
18711 * regex.c (re_search_2): Fix for the case of unibyte buffer.
18712
187132008-02-01 Dave Love <fx@gnu.org>
18714
18715 * charset.c (define_charset_internal): Rename `supprementary'.
18716
18717 * Makefile.in (lisp, shortlisp): Remove latin-N.
18718
187192008-02-01 Dave Love <fx@gnu.org>
18720
18721 * xfns.c (x_window, x_window): Use use_xim.
18722
18723 * xterm.c (use_xim): Initialize.
18724 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
18725 (x_term_init): Maybe set use_xim.
18726
18727 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
18728
187292008-02-01 Kenichi Handa <handa@m17n.org>
18730
18731 * search.c (search_buffer): Fix case-fold-search of multibyte
18732 characters.
18733 (boyer_moore): Rename the last argument to char_high_bits.
18734
187352008-02-01 Kenichi Handa <handa@m17n.org>
18736
18737 * xdisp.c (display_string): Fix for the case of zero width glyph.
18738
18739 * xfns.c (x_set_font): Change the error message of the case that
18740 x_new_fontset returns Qt.
18741
18742 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
18743 (Finternal_set_lisp_face_attribute): Use signal_error for the
18744 error of invalid fontset.
18745
18746 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
18747 fontset, return Qt.
18748
187492008-02-01 Dave Love <fx@gnu.org>
18750
18751 * unexelf.c (unexec): Make .got handling not SGI-specific.
18752
18753 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
18754
18755 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
18756
18757 * keyboard.c (read_key_sequence): Fix type error.
18758
18759 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
18760 type error.
18761
18762 * fontset.c (fontset_add): Return Lisp_Object.
18763
187642008-02-01 Dave Love <fx@gnu.org>
18765
18766 * charset.h (charset_ordered_list_tick): Declare extern.
18767
187682008-02-01 Kenichi Handa <handa@m17n.org>
18769
18770 The following changes (and some of 2008-02-01 changes of mine) are
18771 for handling syntax, category, and case conversion for unibyte
18772 characters by converting them to multibyte on the fly. With these
18773 changes, we don't have to setup syntax and case tables for unibyte
18774 characters in each language environment.
18775
18776 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
18777 multibyte if necessary.
18778
18779 * bytecode.c (Fbyte_code): Likewise.
18780
18781 * character.h (LEADING_CODE_LATIN_1_MIN)
18782 (LEADING_CODE_LATIN_1_MAX): New macros.
18783 (unibyte_to_multibyte_table): Extern it.
18784 (unibyte_char_to_multibyte): New macro.
18785 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
18786 (CHAR_LEADING_CODE): New macro.
18787 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
18788
18789 * character.c (unibyte_to_multibyte_table): New variable.
18790 (unibyte_char_to_multibyte): Move to character.h and define as macro.
18791 (multibyte_char_to_unibyte): If C is an eight-bit character,
18792 convert it to the corresponding byte value.
18793
18794 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
18795 not 1, signals an error. Update the elements of
18796 unibyte_to_multibyte_table.
18797 (init_charset_once): Initialize unibyte_to_multibyte_table.
18798 (syms_of_charset): Define the charset `iso-8859-1'.
18799
18800 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
18801 as is without converting it to unibyte. In a unibyte buffer,
18802 convert C to multibyte before checking the syntax.
18803
18804 * lisp.h (unibyte_char_to_multibyte): Delete extern.
18805
18806 * minibuf.c (Fminibuffer_complete_word): Use the macro
18807 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
18808
18809 * regex.h (struct re_pattern_buffer): New member target_multibyte.
18810
18811 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
18812 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
18813 that is zero, convert an eight-bit char to multibyte.
18814 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
18815 non-emacs case.
18816 (PATFETCH): Convert an eight-bit char to multibyte.
18817 (HANDLE_UNIBYTE_RANGE): New macro.
18818 (regex_compile): Setup the compiled pattern for multibyte chars
18819 even if the given regex string is unibyte. Use PATFETCH_RAW
18820 instead of PATFETCH in many places. To handle `charset'
18821 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
18822 only for ASCII chars.
18823 (analyse_first) <exactn>: Simplify because the compiled pattern
18824 is multibyte.
18825 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
18826 <charset>: Use CHAR_LEADING_CODE to get leading codes.
18827 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
18828 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
18829 multibyte always 1.
18830 (re_search_2): In emacs, set the locale variable multibyte to 1,
18831 otherwise to 0. New local variable target_multibyte. Check it
18832 to decide the multibyteness of STR1 and STR2. If
18833 target_multibyte is zero, convert unibyte chars to multibyte
18834 before translating and checking fastmap.
18835 (TARGET_CHAR_AND_LENGTH): New macro.
18836 (re_match_2_internal): In emacs, set the locale variable multibyte
18837 to 1, otherwise to 0. New local variable target_multibyte. Check
18838 it to decide the multibyteness of STR1 and STR2. Use
18839 TARGET_CHAR_AND_LENGTH to fetch a character from D.
18840 <charset, charset_not>: If multibyte is nonzero, check fastmap
18841 only for ASCII chars. Call bcmp_translate with
18842 target_multibyte, not with multibyte.
18843 <begline>: Declare the local variable C as `unsigned'.
18844 (bcmp_translate): Change the last arg name to target_multibyte.
18845
18846 * search.c (compile_pattern_1): Don't adjust the multibyteness of
18847 the regexp pattern and the matching target. Set cp->buf.multibyte
18848 to the multibyteness of the regexp pattern. Set
18849 cp->but.target_multibyte to the multibyteness of the matching target.
18850 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
18851 FETCH_STRING_CHAR_ADVANCE.
18852 (Freplace_match): Convert unibyte chars to multibyte.
18853
18854 * syntax.c (char_quoted, back_comment, scan_words)
18855 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
18856 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
18857 unibyte chars to multibyte.
18858 (skip_chars): Delete the arg syntaxp, and move the code for
18859 handling syntaxes to skip_syntaxes. Change callers.
18860 Fix the case that the multibyteness of STRING and the current
18861 buffer doesn't match.
18862 (skip_syntaxes): New function.
18863 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
18864 SINGLE_BYTE_CHAR_P.
18865
188662008-02-01 Kenichi Handa <handa@m17n.org>
18867
18868 * xfaces.c (QCfontset): New variable.
18869 (LFACE_FONTSET): New macro.
18870 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
18871 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
18872 (Finternal_set_lisp_face_attribute)
18873 (Finternal_get_lisp_face_attribute): Handle QCfontset.
18874 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
18875 check also LFACE_FONTSET_INDEX.
18876 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
18877 attrs[LFACE_FONT_INDEX].
18878 (syms_of_xfaces): Intern and staticpro QCfontset.
18879
18880 * dispextern.h (enum lface_attribute_index): New member
18881 LFACE_FONTSET_INDEX.
18882
18883 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
18884
188852008-02-01 Kenichi Handa <handa@m17n.org>
18886
18887 * coding.c (coding_set_destination): Fix coding->destination for
18888 the case converting a region.
18889 (encode_coding_utf_8): Encode eight-bit chars as single byte.
18890 (encode_coding_object): Fix coding->dst_pos and
18891 coding->dst_pos_byte for the case converting a region.
18892
18893 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
18894
18895 * character.h (BYTE8_STRING): New macro.
18896
18897 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
18898
188992008-02-01 Kenichi Handa <handa@m17n.org>
18900
18901 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
18902 characters by octal form.
18903
18904 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
18905
18906 * buffer.h (_fetch_multibyte_char_len): Delete extern.
18907 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
18908 _fetch_multibyte_char_len.
18909 (FETCH_CHAR_AS_MULTIBYTE): New macro.
18910
18911 * casetab.c (set_canon, set_identity, shuffle): Simplify.
18912
18913 * casefiddle.c (casify_object): Simplify. Handle the case that
18914 the case conversion change the byte length.
18915 (casify_region): Likewise.
18916
18917 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
18918
18919 * character.c (_fetch_multibyte_char_len): Delete this variable.
18920 (syms_of_character): Setup Vprintable_chars.
18921
18922 * editfns.c (Fchar_equal): Fix for the unibyte case.
18923 (Finsert_byte): New function.
18924 (syms_of_editfns): Defsubr it.
18925
18926 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
18927 of direct code 0x3ffff.
18928
18929 * search.c (Freplace_match): Fix for the unibyte case.
18930
189312008-02-01 Kenichi Handa <handa@m17n.org>
18932
18933 * lread.c (safe_to_load_p): Fix the logic.
18934
18935 * syntax.c (scan_words): Don't treat characters belonging to
18936 different scripts as constituting a word.
18937
18938 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
18939
18940 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
18941
18942 * emacs.c (main): In the case of --unibyte, instead of aborting on
18943 finding non-empty buffer, make it unibyte.
18944
189452008-02-01 Kenichi Handa <handa@m17n.org>
18946
18947 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
18948 to create a fontset.
18949
189502008-02-01 Dave Love <fx@gnu.org>
18951
18952 * character.c (Funibyte_char_to_multibyte): Doc fix.
18953
18954 * xfns.c [HAVE_STDLIB_H]: Fix last change.
18955
189562008-02-01 Kenichi Handa <handa@m17n.org>
18957
18958 * fontset.c (fontset_add): Make the type `int'.
18959 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
18960
18961 * character.c (unibyte_char_to_multibyte)
18962 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
18963 charset_unibyte, not charset_primary.
18964
18965 * charset.h (charset_unibyte): Extern it instead of charset_primary.
18966
18967 * charset.c (charset_unibyte): Rename from charset_primary.
18968 (Funibyte_charset): Rename from Fprimary_charset.
18969 (Fset_unibyte_charset): Rename from Fset_primary_charset.
18970 (syms_of_charset): Adjust for the above changes.
18971
18972 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
18973 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
18974 it->multibyte_p is zero.
18975
18976 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
18977 Delete extern.
18978
189792008-02-01 Kenichi Handa <handa@m17n.org>
18980
18981 * coding.c (Fdefine_coding_system_internal): Fix category setting
18982 for a coding system of type iso-2022.
18983
189842008-02-01 Kenichi Handa <handa@m17n.org>
18985
18986 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
18987
189882008-02-01 Kenichi Handa <handa@m17n.org>
18989
18990 * syntax.c (Vnext_word_boundary_function_table): New variable.
18991 (next-word-boundary-function-table): Declare it as a Lisp variable
18992 in syms_of_syntax.
18993 (scan_words): Call functions in Vnext_word_boundary_function_table
18994 if any.
18995
18996 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
18997
18998 * fontset.c (fs_load_font): If fontp->charset is not negative,
18999 return fontp without setting its members.
19000
190012008-02-01 Dave Love <fx@gnu.org>
19002
19003 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
19004
19005 * m/sparc.h (HAVE_ALLOCA): Delete.
19006
19007 * s/irix6-5.h: Don't include strings.h.
19008 (bcopy, bzero, bcmp): Don't undef.
19009
19010 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
19011
19012 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
19013 (TIOCSIGSEND): Don't test IRIX6.
19014 (bcopy, bzero, bcmp): Define conditionally.
19015
190162008-02-01 Kenichi Handa <handa@m17n.org>
19017
19018 * buffer.c (Qas, Qmake, Qto): New variables.
19019 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
19020 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
19021
19022 * callproc.c (Fcall_process): Don't call insert_1_both directly if
19023 we are inserting a process output into a multibyte buffer.
19024
19025 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
19026 multibyte_char_to_unibyte.
19027
19028 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
19029 by the primary charset, make it eight-bit char.
19030 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
19031
19032 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
19033 (charset_8_bit__control, charset_8_bit_graphic)
19034 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
19035 (define_charset_internal): New function.
19036 (syms_of_charset): Call define_charset_internal for pre-defined
19037 charsets.
19038
19039 * charset.h (charset_8_bit): Extern it.
19040
19041 * coding.c (make_conversion_work_buffer): Adjust for the change
19042 of Fset_buffer_multibyte.
19043 (encode_coding_raw_text): Increment p0 in the loop.
19044
19045 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
19046
19047 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
19048 for the change of Fset_buffer_multibyte.
19049
19050 * fns.c (Fstring_to_multibyte): New function.
19051 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
19052
190532008-02-01 Dave Love <fx@gnu.org>
19054
19055 * xfns.c (x_put_x_image): Declare args.
19056
19057 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
19058 (try_font_list): Declare an arg.
19059
19060 * xdisp.c (message2_nolog, set_message): Declare an arg.
19061
19062 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
19063
19064 * syntax.c (scan_sexps_forward): Declare an arg.
19065
19066 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
19067 Declare an arg.
19068
19069 * lisp.h (Fnew_fontset): Declare.
19070
19071 * keymap.c (push_key_description): Call CHARACTERP correctly.
19072
19073 * fontset.c (fontset_add): Declare args. Call make_number correctly.
19074 (face_for_char): Delete unused vars.
19075 (Fset_fontset_font): Doc fix. Delete unused vars.
19076
19077 * doc.c (Fsubstitute_command_keys): Delete unused vars.
19078
19079 * composite.c (update_compositions): Declare arg.
19080
19081 * cm.c (calccost, cmgoto): Declare args.
19082
19083 * charset.c: Remove `emacs' conditional. Doc fixes.
19084 (map_char_table_for_charset): Declare.
19085
19086 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
19087
19088 * ccl.c: Remove `emacs' conditional.
19089
190902008-02-01 Kenichi Handa <handa@m17n.org>
19091
19092 The following changes are to allow specifying multiple font
19093 patterns for a character range (specified by script or charset).
19094
19095 * Makefile.in (abbrev.o): Depend on syntax.h.
19096 (xfaces.o): Depend on charset.h.
19097
19098 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
19099 SINGLE_BYTE_CHAR_P.
19100
19101 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
19102
19103 * character.h (Vchar_script_table): Extern it.
19104
19105 * character.c (Vscript_alist): Delete.
19106 (Vchar_script_table, Qchar_script_table): New variable.
19107 (syms_of_character): Declare Vchar_script_table as a lisp variable
19108 and initialize it.
19109
19110 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
19111 have property char-table-extra-slots, make no extra slot.
19112
19113 * dispextern.h (struct face): Delete member `charset'.
19114 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
19115 SINGLE_BYTE_CHAR_P.
19116 (choose_face_font, lookup_non_ascii_face, font_name_registry):
19117 Add prototypes.
19118 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
19119 (generate_ascii_font_name): Rename from generate_ascii_font.
19120
19121 * fontset.h (get_font_repertory_func): New prototype.
19122 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
19123 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
19124
19125 * fontset.c (Qprepend, Qappend): New variables.
19126 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
19127 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
19128 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
19129 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
19130 (fontset_ref_and_range, fontset_add, reorder_font_vector)
19131 (load_font_get_repertory): New functions.
19132 (fontset_set): Delete.
19133 (fontset_face): New arg FACE. Return face ID, not face.
19134 Complete re-write to handle new fontset structure. Change caller.
19135 (free_face_fontset): Use ASET istead of AREF (X) = Y.
19136 (face_for_char): Don't call lookup_face.
19137 (make_fontset_for_ascii_face): New arg FACE.
19138 (fs_load_font): New arg CHARSET_ID. Don't check
19139 Vfont_encoding_alist here.
19140 (find_font_encoding): New function.
19141 (list_fontsets): Use STRINGP, not ! NILP.
19142 (accumulate_script_ranges): New function.
19143 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
19144 re-written to handle new fontset structure.
19145 (Ffontset_font): Return a copy of element.
19146 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
19147 docstring of font-encoding-alist.
19148
19149 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
19150 (Fset_fotset_font): Fix arguments to 5.
19151
19152 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
19153
19154 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
19155 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
19156 (highlight_trailing_whitespace): Adjust for the change of
19157 lookup_named_face.
19158
19159 * xfaces.c: Include charset.h.
19160 (load_face_font): Delete argument C. Change caller.
19161 (generate_ascii_font_name): Rename from generate_ascii_font.
19162 (font_name_registry): New function.
19163 (cache_face): Store ascii faces before non-ascii faces in buckets.
19164 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
19165 Lookup only ascii faces.
19166 (lookup_non_ascii_face): New function.
19167 (lookup_named_face): Delete argument C. Change caller.
19168 (lookup_derived_face): Delete argument C. Change caller.
19169 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
19170 a string, just call font_list with it.
19171 (choose_face_font): Delete arguments FACE and C. New arg
19172 FONT_SPEC. Change caller.
19173 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
19174 Change caller.
19175 (realize_non_ascii_face): New function.
19176 (realize_x_face): Call load_face_font here.
19177 (realize_tty_face): Delete argument C. Change caller.
19178 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
19179 get a face ID.
19180 (dump_realized_face): Don't print charset of FACE.
19181
19182 * xfns.c (x_set_font): Always call x_new_fontset and
19183 store_frame_parameter.
19184 (Fx_create_frame): Call x_new_fontset, not x_new_font.
19185 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
19186
19187 * xterm.h (x_get_font_repertory): Extern it.
19188
19189 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
19190 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
19191 it->multibyte_p is zero.
19192 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
19193 (x_new_fontset): If FONTSETNAME doesn't match any existing
19194 fontsets, create a new one.
19195 (x_get_font_repertory): New function.
19196
191972008-02-01 Kenichi Handa <handa@m17n.org>
19198
19199 * coding.c (Ffind_coding_systems_region_internal): Detect an
19200 ASCII only string correctly.
19201
19202 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
19203 version is 0.
19204
192052008-02-01 Kenichi Handa <handa@m17n.org>
19206
19207 * lread.c: Include "coding.h".
19208 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
19209 (load_each_byte, unread_char): New variables.
19210 (readchar_backlog): Delete.
19211 (readchar): Return a character unless load_each_byte is nonzero.
19212 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
19213 cons. If unread_char is not -1, simply return it.
19214 (unreadchar): Handle the case that readcharfun is
19215 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
19216 (read_multibyte): Delete.
19217 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
19218 (read_emacs_mule_char): New functions.
19219 (Fload): Even if the file doesn't have the extension ".elc", if
19220 safe_to_load_p returns a positive version number, assume that the
19221 file contains bytecompiled code. If the version is less than 22,
19222 load the file while decoding multibyte sequences by emacs-mule.
19223 (readevalloop): Don't use readchar_backlog.
19224 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
19225 (Fread_from_string): Pay attention to the case that STREAM is a cons.
19226 (read_escape): Delete the arg BYTEREP.
19227 (read1): Set load_each_byte to 1 temporarily while handling
19228 #@NUMBER. Don't call read_multibyte.
19229 (read_vector): Call Fread with a cons. If readcharfun is
19230 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
19231 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
19232 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
19233 and Qload_force_doc_strings.
19234
192352008-02-01 Kenichi Handa <handa@m17n.org>
19236
19237 * xdisp.c (face_before_or_after_it_pos): Call
19238 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
19239
192402008-02-01 Kenichi Handa <handa@m17n.org>
19241
19242 * character.h (TRAILING_CODE_P): New macro.
19243 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
19244 (string_char_with_unification): Fix prototype.
19245 (Vscript_alist): Extern it.
19246
19247 * character.c (Vscript_alist): New variable.
19248 (string_char_with_unification, str_as_unibyte)
19249 (string_escape_byte8): Add `const' to local variables.
19250 (syms_of_character): Declare script-alist as a Lisp variable.
19251
19252 * charset.h (Vcharset_ordered_list): Extern it.
19253 (charset_ordered_list_tick): Extern it.
19254 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
19255 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
19256 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
19257 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
19258 (Funify_charset): Adjust for the change of Funify_charset.
19259
19260 * charset.c (charset_ordered_list_tick): New variable.
19261 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
19262 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
19263 deunify intead of unify a charset.
19264 (string_xstring_p): Add `const' to local variables.
19265 (find_charsets_in_text): Add `const' to arguments and local variables.
19266 (encode_char): Adjust for the change of Funify_charset. Fix
19267 detecting of invalid code.
19268 (Fset_charset_priority): Increment charset_ordered_list_tick.
19269 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
19270 and TO_CODE.
19271
19272 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
19273 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
19274 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
19275 (decode_coding_ccl, consume_chars)
19276 (Ffind_coding_systems_region_internal)
19277 (Fcheck_coding_systems_region): Add `const' to local variables.
19278
19279 * print.c (print_object): Use octal form for printing the
19280 contents of a bool vector.
19281
192822008-02-01 Dave Love <fx@gnu.org>
19283
19284 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
19285 <version == 20>: Refuse to load.
19286
192872008-02-01 Dave Love <fx@gnu.org>
19288
19289 * fns.c: Move coding.h.
19290 (Qcodeset, Qdays, Qmonths): New.
19291 (concat): Use CHARACTERP instead of INTEGERP.
19292 (Flocale_codeset): Delete.
19293 (Flanginfo): New function.
19294 (syms_of_fns): Change accordingly.
19295
19296 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
19297
192982008-02-01 Dave Love <fx@gnu.org>
19299
19300 * casetab.c (init_casetab_once, init_casetab_once): Fix
19301 CHAR_TABLE_SET call.
19302
19303 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
19304
19305 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
19306
19307 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
19308 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
19309 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
19310
19311 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
19312
19313 * coding.c (ENCODE_DESIGNATION, decode_eol)
19314 (make_conversion_work_buffer, code_conversion_restore)
19315 (Fdefine_coding_system_internal): Convert Lisp types.
19316 (code_conversion_restore): Use EQ, not ==.
19317 (Fencode_coding_string): Fix code_convert_string call.
19318
19319 * coding.h (code_convert_region): Fix prototype.
19320
19321 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
19322
19323 * fontset.c (fontset_ref, fontset_set, fs_load_font)
19324 (Ffontset_info): Convert Lisp types.
19325
19326 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
19327
19328 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
19329
19330 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
19331
19332 * chartab.c: Include "...h", not <...h> in some cases.
19333
19334 * callproc.c (Fcall_process): Remove unused variables.
19335
193362008-02-01 Dave Love <fx@gnu.org>
19337
19338 * coding.c (Fset_coding_system_priority): Allow null arg list.
19339
193402008-02-01 Dave Love <fx@gnu.org>
19341
19342 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
19343 (Fself_insert_and_exit): Use CHARACTERP.
19344
19345 * callproc.c (Fcall_process): Remove unused vars.
19346
19347 * xterm.c (XTread_socket): Add extra dead keysyms.
19348
19349 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
19350
19351 * dispextern.h: Remove prototypes for redraw_frame,
19352 redraw_garbaged_frames.
19353
19354 * cmds.c (Fself_insert_command): Use CHARACTERP.
19355
19356 * chartab.c (make_sub_char_table): Remove unused var.
19357 (Fset_char_table_default, Fmap_char_table): Doc fix.
19358
19359 * keymap.c (access_keymap): Remove generic char code.
19360 (push_key_description): Use CHARACTERP.
19361
193622008-02-01 Dave Love <fx@gnu.org>
19363
19364 * charset.c: Doc fixes.
19365 (Funify_charset): Extra checking.
19366
193672008-02-01 Dave Love <fx@gnu.org>
19368
19369 * lread.c: Remove some unused variables.
19370 (safe_to_load_p): If safe, return the magic number version byte.
19371 (Fload): Maybe use load-with-code-conversion.
19372
193732008-02-01 Kenichi Handa <handa@m17n.org>
19374
19375 * category.c (Fmodify_category_entry): Don't modify the contents
19376 of category_set for characters out of the range. Avoid
19377 unnecessary modification.
19378
19379 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
19380 Vchar_unify_table. The default value of the table is now nil.
19381
19382 * character.c (syms_of_character): Setup Vchar_width_table for
19383 eight-bit-control and raw-byte chars.
19384
19385 * charset.h (enum define_charset_arg_index): Delete
19386 charset_arg_parents and add charset_arg_subset and
19387 charset_arg_superset.
19388 (enum charset_attr_index): Delete charset_parents and add
19389 charset_subset and charset_superset.
19390 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
19391 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
19392 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
19393 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
19394 (CHARSET_SUPERSET): New macros.
19395 (charset_work): Extern it.
19396 (ENCODE_CHAR): Use charset_work.
19397 (CHAR_CHARSET_P): Adjust for the change of encoder format.
19398 (map_charset_chars): Extern it.
19399
19400 * charset.c (load_charset_map): Set the default value of encoder
19401 and deunifier char-tables to nil.
19402 (map_charset_chars): Change argument. Change callers. Use
19403 map_char_table_for_charset instead of map_char_table.
19404 (Fmap_charset_chars): New optional args from_code and to_code.
19405 (Fdefine_charset_internal): Adjust for the change of
19406 `define-charset' (:parents -> :subset or :superset).
19407 (charset_work): New variable.
19408 (encode_char, syms_of_charset): Adjust for the change of
19409 Fdefine_charset_internal.
19410 (Ffind_charset_string): Setup the vector `charsets' correctly.
19411
19412 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
19413 the previous change.
19414 (char_table_ref_and_range): Adjust for the above change.
19415 (map_sub_char_table_for_charset): New function.
19416 (map_char_table_for_charset): New function.
19417
19418 * keymap.c (describe_vector): Handle a char-table directly here.
19419 (describe_char_table): Delete.
19420
19421 * lisp.h (map_charset_chars): Delete.
19422
194232008-02-01 Dave Love <fx@gnu.org>
19424
19425 * fns.c (count_combining): Comment out (unused).
19426 (Flocale_codeset): New.
19427 (syms_of_fns): Defsubr it.
19428
19429 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
19430 (size_t): Remove.
19431
194322008-02-01 Dave Love <fx@gnu.org>
19433
19434 * Makefile.in (chartab.o): Depend on charset.h.
19435
194362008-02-01 Kenichi Handa <handa@m17n.org>
19437
19438 * character.c (syms_of_character): Set the default value of
19439 Vprintable_chars to Qnil.
19440
194412008-02-01 Dave Love <fx@gnu.org>
19442
19443 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
19444
194452008-02-01 Kenichi Handa <handa@m17n.org>
19446
19447 * charset.c (load_charset_map): Handle the case that from < to
19448 correctly.
19449
19450 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
19451 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
19452 Pay attention to raw-8-bit chars.
19453
194542008-02-01 Kenichi Handa <handa@m17n.org>
19455
19456 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
19457 It is not bytecompiled now.
19458
19459 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
19460 (charset_jisx0208): New variables.
19461 (Fdefine_charset_internal): Setup them if appropriate.
19462 (init_charset_once): Initialize them to -1.
19463
19464 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
19465 (charset_jisx0208): Extern them.
19466
19467 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
19468 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
19469 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
19470 (setup_iso_safe_charsets): Fix arguments to Fassq.
19471 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
19472 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
19473 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
19474 (encode_coding_iso_2022): Change the 1st arg to
19475 ENCODE_ISO_CHARACTER to a variable.
19476
194772008-02-01 Kenichi Handa <handa@m17n.org>
19478
19479 * charset.h (enum define_charset_arg_index): New enums
19480 charset_arg_min_code and charset_arg_max_code.
19481 (struct charset): New member char_index_offset.
19482
19483 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
19484 Take charset->char_index_offset into account.
19485 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
19486 args[charset_arg_max_code]. Setup charset.char_index_offset.
19487 (syms_of_charset): Fix args to Fdefine_charset_internal.
19488
194892008-02-01 Dave Love <fx@gnu.org>
19490
19491 * coding.c (decode_coding_utf_8): Reject overlong sequences.
19492
194932008-02-01 Dave Love <fx@gnu.org>
19494
19495 * coding.c: Doc fixes.
19496 (Fcoding_system_aliases): Fix return value.
19497 (Qmac): Remove (duplicated) definition.
19498
194992008-02-01 Dave Love <fx@gnu.org>
19500
362654a6
JB
19501 * charset.c (Fcharset_priority_list, Fset_charset_priority):
19502 New functions.
aac0c6e3
MR
19503
19504 * character.c (Fstring): Doc fix.
19505
19506 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
19507
362654a6 19508 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
19509 (font-encoding-alist): Doc fix.
19510
195112008-02-01 Dave Love <fx@gnu.org>
19512
19513 * term.c (costs_set): Declare static, non-initialized for pcc.
19514 (encode_terminal_code): Remove unused var.
19515
19516 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
19517 for K&R.
19518
19519 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
19520
19521 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
19522 (suffixes): Move out of make_subsidiaries for K&R.
19523
19524 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
19525
19526 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
19527
195282008-02-01 Dave Love <fx@gnu.org>
19529
19530 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
19531
19532 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
19533
195342008-02-01 Yong Lu <lyongu@asia-infonet.com>
19535
19536 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
19537
19538 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
19539
195402008-02-01 Kenichi Handa <handa@m17n.org>
19541
19542 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
19543 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
19544
195452008-02-01 Kenichi Handa <handa@m17n.org>
19546
19547 * coding.c (decode_coding_charset): Adjust for the change of
19548 Fdefine_coding_system_internal.
19549 (Fdefine_coding_system_internal): For a coding system of
19550 `charset' type, store a list of charset IDs in
19551 `charset_attr_charset_valids' element of coding attributes.
19552
195532008-02-01 Kenichi Handa <handa@m17n.org>
19554
19555 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
19556 (emacs_mule_char): New arg src. Delete arg `composition'. Change
19557 caller. Handle 2-byte and 3-byte charsets correctly.
19558 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
19559 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
19560 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
19561 (DECODE_EMACS_MULE_21_COMPOSITION): Call
19562 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
19563 sequence.
19564 (decode_coding_emacs_mule): Handle composition correctly. Rewind
19565 `src' and `consumed_chars' correctly before calling emacs_mule_char.
19566 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
19567 and alt&rule composition.
19568 (decode_coding_iso_2022): Handle composition correctly.
19569 (init_coding_once): Setup emacs_mule_bytes for private charsets.
19570
19571 * charset.c (Fdefine_charset_internal): Fix bug for the case of
19572 re-defining a charset. If the charset has :emacs-mule-id, setup
19573 emacs_mule_bytes.
19574 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
19575
195762008-02-01 Kenichi Handa <handa@m17n.org>
19577
19578 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
19579 (encode_coding_big5, encode_coding_charset): If coding requires safe
19580 encoding, produce a character specified by
19581 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
19582
195832008-02-01 Dave Love <fx@gnu.org>
19584
19585 * xterm.c (XSetIMValues): Declare.
19586
19587 * process.c: Conditionally include sys/wait.h, pty.h.
19588
19589 * print.c (print_object): Fix print format for 64-bit systems.
19590
19591 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
19592
19593 * buffer.c (emacs_strerror): Declare.
19594
19595 * fontset.c (Fclear_face_cache): Declare.
19596 (accumulate_font_info): Comment-out (unused).
19597 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
19598 variables.
19599
19600 * character.h (string_escape_byte8): Declare.
19601
19602 * charset.c (load_charset_map, load_charset_map_from_file): Remove
19603 unused vars.
19604 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
19605 (Fmap_charset_chars): Doc fix.
19606
19607 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
19608 (Fset_coding_system_priority, Fset_coding_system_priority)
19609 (Fdefine_coding_system_internal): Doc fix.
19610
196112008-02-01 Dave Love <fx@gnu.org>
19612
19613 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
19614
196152008-02-01 Kenichi Handa <handa@m17n.org>
19616
19617 * character.c (string_escape_byte8): Make multibyte string with
19618 correct size.
19619
19620 * charset.c (Fmake_char): Delete unnecessary code.
19621
196222008-02-01 Kenichi Handa <handa@m17n.org>
19623
19624 * xfns.c (x_encode_text): Allocate coding.destination here, and
19625 call encode_coding_object with dst_object Qnil.
19626
19627 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
19628 multibyte form correctly.
19629
19630 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
19631 against Vfont_encoding_alist.
19632
19633 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
19634 handling of charset list.
19635 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
19636 (decode_coding_object): Move point to coding->dst_pos before
19637 calling post-read-conversion function.
19638 (encode_coding_object): Give correct arguments to
19639 pre-write-conversion. Ignore the return value of
19640 pre-write-conversion function. Pay attention to the case that
19641 pre-write-conversion changes the current buffer. If dst_object is
19642 Qt, even if coding->src_bytes is zero, allocate at least one byte
19643 to coding->destination.
19644
19645 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
19646
19647 * charset.c (Fmake_char): Make it more backward compatible.
19648 (Fmap_charset_chars): Fix docstring.
19649
196502008-02-01 Dave Love <fx@gnu.org>
19651
19652 * coding.c: Doc fixes.
19653 (Fdefine_coding_system_alias): Use names, not symbols, in
19654 coding-system-alist.
19655
196562008-02-01 Kenichi Handa <handa@m17n.org>
19657
19658 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
19659 of calling free_realized_face.
19660
196612008-02-01 Yong Lu <lyongu@asia-infonet.com>
19662
19663 * charset.c (read_hex): Don't treat SPC as a comment starter.
19664 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
19665 (Fdecode_char): Fix typo.
19666
196672008-02-01 Kenichi Handa <handa@m17n.org>
19668
19669 * charset.h (struct charset): New member `code_space_mask'.
19670
19671 * coding.c (coding_set_source): Delete the local variable beg_byte.
19672 (encode_coding_charset, Fdefine_coding_system_internal):
19673 Delete the local variable charset.
19674 (Fdefine_coding_system_internal): Setup
19675 attrs[coding_attr_charset_valids] correctly.
19676
19677 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
19678 member to check if CODE is valid or not.
19679 (Fdefine_charset_internal): Initialize `code_space_mask' member.
19680 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
19681 is within the range of charset->min_code and carset->max_code.
19682
196832008-02-01 Dave Love <fx@gnu.org>
19684
19685 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
19686
19687 * dispextern.h (generate_ascii_font): Fix return type.
19688
19689 * xfaces.c (generate_ascii_font): Fix arg declaration.
19690
19691 * coding.c (coding_inherit_eol_type)
19692 (Fset_terminal_coding_system_internal)
19693 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
19694
196952008-02-01 Kenichi Handa <handa@m17n.org>
19696
19697 * coding.c (decode_coding_charset, encode_coding_charset): Handle
19698 multiple charsets correctly.
19699
197002008-02-01 Kenichi Handa <handa@m17n.org>
19701
19702 * search.c (boyer_moore): Fix handling of multibyte character
19703 translation.
19704
19705 * xdisp.c (display_mode_element): When the variable `elt' is
19706 changed, update `this' and `lisp_string'.
19707
197082008-02-01 Kenichi Handa <handa@m17n.org>
19709
19710 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
19711
19712 * callproc.c (Fcall_process): Be sure to give the current buffer
19713 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
19714
19715 * charset.c (struct charset_map_entries): New struct.
19716 (load_charset_map): Rename from parse_charset_map. New args
19717 entries and n_entries. Change caller.
19718 (load_charset_map_from_file): Rename from load_charset_map.
19719 Change caller. New arg control_flag. Call load_charset_map at
19720 the tail.
19721 (load_charset_map_from_vector): New function.
19722 (Fdefine_charset_internal): Setup charset.compact_codes_p.
19723 (encode_char): If the charset is compact, change a character index
19724 to a code point.
19725
19726 * coding.c (coding_alloc_by_making_gap): Check the case that the
19727 source and destination are the same correctly.
19728 (decode_coding_raw_text): Set coding->consumed_char and
19729 coding->consumed to 0.
19730 (produce_chars): If coding->chars_at_source is nonzero, update
19731 coding->consumed_char and coding->consumed before calling
19732 alloc_destination.
19733 (Fdefine_coding_system_alias): Register ALIAS in
19734 Vcoding_system_alist.
19735 (syms_of_coding): Define `no-conversion' coding system at the tail.
19736
19737 * fileio.c (Finsert_file_contents): Set coding_system instead of
19738 val. If the current buffer is multibyte, always call
19739 decode_coding_gap.
19740
19741 * xfaces.c (try_font_list): Give higher priority to fontset's
19742 family than face's family.
19743
197442008-02-01 Kenichi Handa <handa@m17n.org>
19745
19746 * callproc.c (Fcall_process): Be sure to give the current buffer
19747 to decode_coding_c_string.
19748
19749 * xfaces.c (try_font_list): Give a family specified in a fontset
19750 higher priority than a family specified in a face.
19751
197522008-02-01 Kenichi Handa <handa@m17n.org>
19753
19754 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
19755 Fix arguments to insert_from_buffer.
19756
19757 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
19758
197592008-02-01 Kenichi Handa <handa@m17n.org>
19760
19761 * coding.c (produce_chars): Set the variable `multibytep' correctly.
19762 (decode_coding_gap): Set coding->dst_multibyte correctly.
19763
197642008-02-01 Kenichi Handa <handa@m17n.org>
19765
19766 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
19767 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
19768 (encode_coding_utf_16): Substitute coding->default_char for
19769 non-Unicode characters.
19770 (decode_coding): Don't call record_insert here.
19771 (setup_coding_system): Initialize `surrogate' of
19772 coding->spec.utf_16 to 0.
19773 (EMIT_ONE_BYTE): Fix for multibyte case.
19774
19775 * insdel.c (insert_from_gap): Call record_insert.
19776
197772008-02-01 Kenichi Handa <handa@m17n.org>
19778
19779 * casefiddle.c (casify_region): Fix multibyte case.
19780
19781 * character.c (c_string_width): Add return type `int'.
19782 (char_string_with_unification): Delete arg ADVANCED.
19783
19784 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
19785 (CHAR_STRING): Adjust for the change of char_string_with_unification.
19786 (CHAR_STRING_ADVANCE): Make it do-while statement.
19787
19788 * chartab.c (sub_char_table_set_range): Optimize for the case
19789 DEPTH == 3. Add workaround code for a GCC optimization bug.
19790
19791 * charset.c (parse_charset_map): Remove an unused variable.
19792
19793 * coding.c: Delete unused variables.
19794
19795 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
19796 earlier. If inserted is zero and the coding system doesn't
19797 require flushing, don't call decode_coding_gap.
19798
19799 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
19800
198012008-02-01 Kenichi Handa <handa@m17n.org>
19802
19803 The following changes are for using Unicode as an internal
19804 character model, and use UTF-8 format for buffer/string
19805 representation.
19806
19807 * .gdbinit (xchartable): Adjust for the change of char table structure.
19808 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
19809
19810 * Makefile.in (obj): Add character.o and chartab.o.
19811 (lisp, shortlisp): Remove utf-8.elc.
19812 (*.o): For many files, change dependency on charset.h to
19813 character.h, and add dependency on character.h.
19814 (character.o, chartab.o): New targets.
19815
19816 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
19817 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
19818 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
19819 of "charset.h".
19820
19821 * dired.c, filelock.c: Include "character.h".
19822
19823 * alloc.c: Include "character.h" instead of "charset.h".
19824 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
19825 (syms_of_alloc): Remove defsubr for Smake_char_table.
19826
19827 * buffer.c: Include "character.h" instead of "charset.h", don't
19828 include "coding.h".
19829 (Fset_buffer_multibyte): Adjust for UTF-8.
19830
19831 * buffer.h: EXFUN Fbuffer_live_p.
19832
19833 * callproc.c: Include "character.h" instead of "charset.h".
19834 (Fcall_process): Big change for the new code-conversion APIs.
19835
19836 * casetab.c: Include "character.h" instead of "charset.h".
19837 (set_canon, set_identity, shuffle): Adjust for the new
19838 map_char_table spec.
19839 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
19840 accessing the char table structure.
19841
19842 * chartab.c: New file that implements char table.
19843
19844 * category.c: Include "character.h".
19845 (copy_category_entry): New function.
19846 (copy_category_table): Call map_char_table and copy_category_entry.
19847 (Fmake_category_table): Initialize all top-level slots.
19848 (char_category_set): New function.
19849 (modify_lower_category_set): Delete.
19850 (Fmodify_category_entry): Call char_table_ref_and_range.
19851
19852 * category.h (CATEGORY_SET): Just call char_category_set.
19853
19854 * ccl.c: Include "character.h".
19855 (Qccl, Qcclp): New variables.
19856 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
19857 it's less than 256.
19858 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
19859 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
19860 and DST type.
19861 (ccl_driver): Change types of argument, adjust code accordingly.
19862 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
19863 ccl_driver.
19864 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
19865
19866 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
19867 New members src_multibyte, dst_multibyte, consumed, and produced.
19868 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
19869 (CODING_SPEC_CCL_PROGRAM): New macro.
19870 (ccl_driver): Update prototype.
19871 (Qccl, Qcclp, Fccl_program_p): Extern them.
19872 (CHECK_CCL_PROGRAM): New macro.
19873
19874 * character.c, character.h, chartab.c: New files.
19875
19876 * charset.c: Mostly re-written. Move character and multibyte sequence
19877 handling codes to character.c.
19878
19879 * charset.h: Mostly re-written. Move character and multibyte sequence
19880 handling codes to character.h.
19881
19882 * coding.c, coding.h: Mostly re-written.
19883
19884 * composite.c: Include "character.h" instead of "charset.h".
19885 (CHAR_WIDTH): Move to character.h.
19886 (HASH_KEY, HASH_VALUE): Delete.
19887
19888 * composite.h (enum composition_method): Change order of enumeration
19889 symbols.
19890
19891 * data.c: Include "character.h" instead of "charset.h".
19892 (Faref): Call CHAR_TABLE_REF for a char table.
19893 (Faset): Call CHAR_TABLE_SET for a char table.
19894
19895 * dispextern.h (free_realized_face, check_face_attribytes)
19896 (generate_ascii_font): Extern them.
19897 (free_realized_multibyte_face): Delete extern.
19898
19899 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
19900 table structure.
19901
19902 * editfns.c: Include "character.h" instead of "charset.h".
19903 (Fchar_to_string): Always call CHAR_STRING.
19904
19905 * emacs.c (main): Call init_charset_once, init_charset,
19906 syms_of_chartab, and syms_of_character.
19907
19908 * fileio.c: Include "character.h" instead of "charset.h".
19909 (Finsert_file_contents): Big change for the new code-conversion API.
19910 (choose_write_coding_system, Fwrite_region): Likewise.
19911 (build_annotations_2): Delete.
19912 (e_write): Big change for the new code-conversion API.
19913
19914 * fns.c: Include "character.h" instead of "charset.h".
19915 (copy_sub_char_table): Move to chartab.c.
19916 (Fcopy_sequence): Call copy_char_table for a char table.
19917 (concat): Delete codes calling count_multibyte.
19918 (string_char_to_byte, string_byte_to_char): Adjust for the new
19919 multibyte form.
19920 (internal_equal): Adjust for the change of char table structure.
19921 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
19922 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
19923 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
19924 (char_table_translate, optimize_sub_char_table)
19925 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
19926 chartab.c.
19927 (char_table_ref_and_index): Delete.
19928 (HASH_KEY, HASH_VALUE): Move to lisp.h.
19929 (Fmd5): Call preferred_coding_system instead of accessing
19930 Vcoding_category_list. Adjust for the new code-conversion API.
19931 (syms_of_fns): Move defsubr for char table related functions to
19932 chartab.c.
19933
19934 * fontset.c: Mostly re-written.
19935
19936 * fontset.h (struct font_info): Change type of the member encoding_type.
19937 (enum FONT_SPEC_INDEX): New enum.
19938 (fontset_font_pattern, fs_load_font): Update prototype.
19939 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
19940
19941 * indent.c: Include "character.h" instead of "charset.h".
19942 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
19943
19944 * insdel.c: Include "character.h" instead of "charset.h".
19945 (copy_text): Don't refer to Vnonascii_translation_table.
19946 (insert_from_gap): New function.
19947
19948 * keyboard.c: Include "character.h" instead of "charset.h".
19949 (command_loop_1): Never call direct_output_forward_char before
19950 a non-ASCII character.
19951 (read_char): If Vkeyboard_translate_table is a char table, always
19952 translate a character.
19953
19954 * keymap.c: Include "character.h".
19955 (store_in_keymap): Handle the case that IDX is a cons.
19956 (Fdefine_key): Handle the case that KEY is a cons and the car part
19957 is also a cons (range).
19958 (push_key_description): Adjust for the new character code.
19959 (describe_vector): Call describe_char_table for a char table.
19960 (describe_char_table): New function.
19961
19962 * keymap.h (describe_char_table): Extern it.
19963
19964 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
19965 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
19966 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
19967 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
19968 Delete.
19969 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
19970 structure.
19971 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
19972 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
19973 (CHARTAB_SIZE_BITS_3): New macros.
19974 (chartab_size): Extern it.
19975 (struct Lisp_Char_Table): Re-design.
19976 (struct Lisp_Sub_Char_Table): New structure.
19977 (HASH_KEY, HASH_VALUE): Move from fns.c.
19978 (CHARACTERBITS): Define as 22.
19979 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
19980 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
19981 (GC_SUB_CHAR_TABLE_P): New macro.
19982 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
19983 (code_convert_string_norecord): Deleted extern.
19984 (init_character_once, syms_of_character, init_charset)
19985 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
19986
19987 * lread.c: Include "character.h".
19988 (read_multibyte): New arg NBYTES.
19989 (read_escape): Change the meaning of returned *BYTEREP.
19990 (to_multibyte): Delete.
19991 (read1): Adjust the handling of char table and string.
19992
19993 * print.c: Include "character.h" instead of "charset.h".
19994 (print_string): Convert 8-bit raw bytes to octal form by
19995 string_escape_byte8.
19996 (print_object): Adjust for the new multibyte form. Print 8-bit
19997 raw bytes always in octal form. Handle sub char table correctly.
19998
19999 * process.c: Include "character.h" instead of "charset.h".
20000 (read_process_output, send_process): Adjust for the new
20001 code-conversion API.
20002
20003 * puresize.h (BASE_PURESIZE): Increase.
20004
20005 * regex.c: Include "character.h" instead of "charset.h".
20006 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
20007 (regex_compile): Accept a range whose starting and ending
20008 character have different leading bytes.
20009 (analyse_first): Adjust for the above change.
20010
20011 * search.c: Include "character.h" instead of "charset.h".
20012 (search_buffer, boyer_moore): Adjust for the new multibyte form.
20013 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
20014
20015 * syntax.c: Include "character.h" instead of "charset.h".
20016 (syntax_parent_lookup): Delete.
20017 (Fmodify_syntax_entry): Accept a cons as CHAR.
20018 (skip_chars): Adjust for the new multibyte form.
20019 (init_syntax_once): Call char_table_set_range instead of directly
20020 accessing the structure of a char table.
20021
20022 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
20023 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
20024 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
20025 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
20026
20027 * term.c: Include "buffer.h" and "character.h".
20028 (encode_terminal_code, write_glyphs): Adjust for the new
20029 code-conversion API.
20030 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
20031
20032 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
20033
20034 * xdisp.c: Include "character.h".
20035 (get_next_display_element): Adjust for the new multibyte form.
20036 (disp_char_vector): Adjust for the new char table structure.
20037 (decode_mode_spec_coding): Adjust for the new structure of
20038 coding system.
20039 (decode_mode_spec): Adjust for the new code-conversion API.
20040
20041 * xfaces.c: Include "character.h" instead of "charset.h".
20042 (load_face_font): Adjust for the change of choose_face_font and
20043 FS_LOAD_FONT.
20044 (generate_ascii_font): New function.
20045 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
20046 (set_font_frame_param): Adjust for the change of choose_face_font.
20047 (free_realized_face): Make it public.
20048 (free_realized_faces_for_fontset): Rename from
20049 free_realized_multibyte_face. Free also faces realized for ASCII.
20050 (choose_face_font): Change arguments. Adjust for the change of
20051 fontset_font_pattern and FS_LOAD_FONT.
20052
20053 * xfns.c: Include "character.h".
20054 (x_encode_text): Adjust for the new code-conversion API.
20055
20056 * xselect.c: Don't include "charset.h".
20057 (selection_data_to_lisp_data): Adjust for the new code conversion API.
20058
20059 * xterm.c: Include "character.h".
20060 (x_encode_char): New argument CHARSET. Change caller.
20061 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
20062 Call ENCODE_CHAR instead of SPLIT_CHAR.
20063 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
20064 CHAR_WIDTH instead of CHARSET_WIDTH.
20065 (XTread_socket): Adjust for the new code-conversion API.
20066 (x_new_font): Adjust for the change of FS_LOAD_FONT.
20067 (x_load_font): Adjust for the change of struct font.
20068
200692008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
20070
20071 * xfaces.c (face_at_buffer_position): Remove unused vars.
20072
200732008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20074
20075 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
20076 Fix overflow checking.
20077
200782008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20079
20080 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
20081 Cancel previous change.
20082
200832008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
20084
20085 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
20086 ccl->eight_bit_control. Fix check for buffer overflow.
20087 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
20088 (ccl_driver): Initialize extra_bytes to 0.
20089
200902008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
20091
20092 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
20093 return it ORed with ctrl_modifier.
20094
200952008-01-29 Miles Bader <miles@gnu.org>
20096
20097 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
20098
200992008-01-28 Jason Rumney <jasonr@gnu.org>
20100
20101 * w32.c (stat): Don't double check for networked drive.
20102
201032008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
20104
20105 * window.c (run_window_configuration_change_hook): New function.
20106 Code extracted from set_window_buffer. Set the selected frame.
20107 (set_window_buffer): Use it.
20108 * window.h (run_window_configuration_change_hook): Declare.
20109 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
20110
20111 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
20112
201132008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
20114
20115 * Makefile.in: Remove references to unused macros.
20116
201172008-01-26 Eli Zaretskii <eliz@gnu.org>
20118
20119 * w32.c (g_b_init_get_sid_sub_authority)
20120 (g_b_init_get_sid_sub_authority_count): New static variables.
20121 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
20122 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
20123 (init_user_info): Use them to retrieve uid and gid.
20124 Use 500/513, the Windows defaults, as Administrator's uid/gid.
20125 (fstat): Use pw_uid and pw_gid from the_passwd structure for
20126 st_uid and st_gid of the file.
20127
201282008-01-26 Jason Rumney <jasonr@gnu.org>
20129
20130 * w32.c (logon_network_drive): New function.
20131 (stat): Use it.
20132
201332008-01-26 Chong Yidong <cyd@stupidchicken.com>
20134
20135 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
20136 invisible text covered with an ellipsis.
20137
201382008-01-25 Richard Stallman <rms@gnu.org>
20139
20140 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
20141 jump back to beginning. Move some other initializations after that.
20142 (Qwindow_text_change_functions, Vwindow_text_change_functions):
20143 New variables.
20144 (syms_of_xdisp): Init them.
20145
20146 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
20147
20148 * buffer.c (reset_buffer_local_variables):
20149 Implement `permanent-local-hook'.
20150 (Qpermanent_local_hook): New variable.
20151 (syms_of_buffer): Init and staticpro it.
20152
201532008-01-25 Michael Albinus <michael.albinus@gmx.de>
20154
20155 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
20156
201572008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
20158
20159 * fns.c (Fclrhash): Return TABLE.
20160
201612008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20162
20163 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
20164 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
20165 is set even without positional changes.
20166 (x_scroll_bar_clear): Set bar->redraw_needed_p.
20167
20168 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
20169
201702008-01-23 Jason Rumney <jasonr@gnu.org>
20171
20172 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
20173
20174 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
20175 the unicode range available in MULE by locale-coding-system.
20176 Improve dbcs lead byte detection. Set event timestamp and modifiers
20177 earlier.
20178
201792008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20180
20181 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
20182 [MAC_OSX] (init_mac_osx_environment): Initialize it.
20183 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
20184 when used on child processes.
20185
201862008-01-21 Michael Albinus <michael.albinus@gmx.de>
20187
20188 * dbusbind.c (Fdbus_method_return_internal): Rename from
20189 Fdbus_method_return.
20190 (Fdbus_unregister_object): Move to dbus.el.
20191 (Fdbus_call_method, Fdbus_method_return_internal)
20192 (Fdbus_send_signal): Improve debug messages.
20193
201942008-01-20 Martin Rudalics <rudalics@gmx.at>
20195
20196 * undo.c (undo_inhibit_record_point): New variable.
20197 (syms_of_undo): Initialize it.
20198 (record_point): Don't record point when undo_inhibit_record_point
20199 is set.
20200
202012008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
20202
20203 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
20204
20205 * xdisp.c (Qauto_hscroll_mode): New var.
20206 (syms_of_xdisp): Initialize it.
20207 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
20208 window's buffer.
20209 (hscroll_windows): Don't check automatic_hscrolling_p here.
20210
20211 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
20212 vscroll if we're setting window-buffer to the value it already has.
20213
202142008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
20215
20216 * m/intel386.h: Remove references to XENIX.
20217
202182008-01-17 Andreas Schwab <schwab@suse.de>
20219
20220 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
20221 instead of HAVE_X86_64_LIB64_DIR.
20222 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
20223
202242008-01-17 Glenn Morris <rgm@gnu.org>
20225
20226 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
20227 to HAVE_X86_64_LIB64_DIR.
20228
202292008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
20230
20231 * s/irix3-3.h:
20232 * s/irix4-0.h:
20233 * s/386-ix.h:
20234 * s/domain.h:
20235 * s/hpux9-x11r4.h:
20236 * s/hpux9shxr4.h: Remove files for systems no longer supported.
20237
20238 * sysdep.c: Remove code containing references to symbols defined
20239 by unsupported systems.
20240
202412008-01-16 Glenn Morris <rgm@gnu.org>
20242
20243 * coding.c (select-safe-coding-system-function): Doc fix.
20244
202452008-01-15 Glenn Morris <rgm@gnu.org>
20246
20247 * config.in: Revert 2008-01-13 change: this is a generated file.
20248
202492008-01-13 Tom Tromey <tromey@redhat.com>
20250
20251 * lisp.h: Fix typo.
20252
202532008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
20254
20255 * m/sequent-ptx.h:
20256 * m/sequent.h:
20257 * s/ptx.h:
20258 * s/ptx4-2.h:
20259 * s/ptx4.h: Remove files for systems no longer supported.
20260
20261 * callproc.c (Fcall_process): Fix previous change.
20262
202632008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
20264
20265 * unexsunos4.c: Remove file, system not supported anymore.
20266
20267 * m/mips.h:
20268 * m/intel386.h:
20269 * callproc.c:
20270 * config.in:
20271 * ecrt0.c:
20272 * emacs.c:
20273 * fileio.c:
20274 * frame.c:
20275 * getpagesize.h:
20276 * keyboard.c:
20277 * lread.c:
20278 * process.c:
20279 * puresize.h:
20280 * sysdep.c:
20281 * systty.h:
20282 * syswait.h:
20283 * unexec.c:
20284 * xdisp.c:
20285 * alloc.c: Remove code containing references to symbols defined by
20286 unsupported systems.
20287
202882008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
20289
20290 * coding.c (detect_coding_mask): Fix previous change.
20291
202922008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
20293
20294 * coding.c (detect_coding_iso2022): New arg
20295 latin_extra_code_state. Allow Latin extra codes only
20296 when *latin_extra_code_state is nonzero.
20297 (detect_coding_mask): If there is a NULL byte, detect the encoding
20298 as UTF-16 or binary. If Latin extra codes exist, detect the
20299 encoding as ISO-2022 only when there's no other proper encoding is
20300 found.
20301
203022008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20303
20304 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
20305 #ifdef MAC_OS.
20306
203072008-01-08 Richard Stallman <rms@gnu.org>
20308
20309 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
20310
203112008-01-06 Nick Roberts <nickrob@snap.net.nz>
20312
20313 * keyboard.c (parse_menu_item): Don't enclose key bindings on
20314 menu bar in parentheses.
20315
203162008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
20317
20318 * m/7300.h:
20319 * m/acorn.h:
20320 * m/alliant-2800.h:
20321 * m/alliant.h:
20322 * m/alliant1.h:
20323 * m/alliant4.h:
20324 * m/altos.h:
20325 * m/amdahl.h:
20326 * m/apollo.h:
20327 * m/att3b.h:
20328 * m/aviion-intel.h:
20329 * m/aviion.h:
20330 * m/celerity.h:
20331 * m/clipper.h:
20332 * m/cnvrgnt.h:
20333 * m/convex.h:
20334 * m/cydra5.h:
20335 * m/delta88k.h:
20336 * m/dpx2.h:
20337 * m/dual.h:
20338 * m/elxsi.h:
20339 * m/f301.h:
20340 * m/gould-np1.h:
20341 * m/gould.h:
20342 * m/i860.h:
20343 * m/ibmps2-aix.h:
20344 * m/ibmrt-aix.h:
20345 * m/ibmrt.h:
20346 * m/irist.h:
20347 * m/is386.h:
20348 * m/isi-ov.h:
20349 * m/mega68.h:
20350 * m/mg1.h:
20351 * m/news-r6.h:
20352 * m/news-risc.h:
20353 * m/news.h:
20354 * m/nh3000.h:
20355 * m/nh4000.h:
20356 * m/ns16000.h:
20357 * m/ns32000.h:
20358 * m/nu.h:
20359 * m/orion.h:
20360 * m/orion105.h:
20361 * m/paragon.h:
20362 * m/pfa50.h:
20363 * m/plexus.h:
20364 * m/pyramid.h:
20365 * m/pyrmips.h:
20366 * m/sh3el.h:
20367 * m/sps7.h:
20368 * m/sr2k.h:
20369 * m/stride.h:
20370 * m/sun1.h:
20371 * m/sun2.h:
20372 * m/sun3-68881.h:
20373 * m/sun3-fpa.h:
20374 * m/sun3-soft.h:
20375 * m/sun3.h:
20376 * m/sun386.h:
20377 * m/symmetry.h:
20378 * m/tad68k.h:
20379 * m/tahoe.h:
20380 * m/targon31.h:
20381 * m/tek4300.h:
20382 * m/tekxd88.h:
20383 * m/tower32.h:
20384 * m/tower32v3.h:
20385 * m/ustation.h:
20386 * m/wicat.h:
20387 * m/xps100.h:
20388 * s/cxux.h:
20389 * s/cxux7.h:
20390 * s/dgux.h:
20391 * s/dgux4.h:
20392 * s/dgux5-4-3.h:
20393 * s/dgux5-4r2.h:
20394 * s/esix.h:
20395 * s/esix5r4.h:
20396 * s/hiuxmpp.h:
20397 * s/hiuxwe2.h:
20398 * s/iris3-5.h:
20399 * s/iris3-6.h:
20400 * s/isc2-2.h:
20401 * s/isc3-0.h:
20402 * s/isc4-0.h:
20403 * s/isc4-1.h:
20404 * s/newsos5.h:
20405 * s/newsos6.h:
20406 * s/osf1.h:
20407 * s/osf5-0.h:
20408 * s/riscix1-1.h:
20409 * s/riscix12.h:
20410 * s/sco4.h:
20411 * s/sco5.h:
20412 * s/sunos4-0.h:
20413 * s/sunos4-1.h:
20414 * s/sunos413.h:
20415 * s/sunos4shr.h:
20416 * s/umax.h:
20417 * s/unipl5-2.h:
20418 * s/xenix.h:
20419 * cxux-crt0.s:
20420 * unexapollo.c:
20421 * unexconvex.c:
20422 * unexenix.c:
20423 * unexsni.c: Remove files for systems no longer supported.
20424
20425 * m/intel386.h: Remove references to unsupported systems.
20426
20427 * w32.c (get_emacs_configuration): Remove reference to i860.
20428
20429 * sysdep.c: Remove dead code.
20430
204312008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
20432
20433 * s/rtu.h:
20434 * m/masscomp.h: Remove files. Platform is obsolete.
20435
204362008-01-04 Michael Albinus <michael.albinus@gmx.de>
20437
20438 * dbusbind.c (Fdbus_method_return): New function.
20439 (xd_read_message): Add the serial number to the event.
20440 (Fdbus_register_method): Activate the function.
20441
204422008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
20443
20444 * keyboard.c (read_key_sequence): Fix typo.
20445
204462008-01-03 Michael Albinus <michael.albinus@gmx.de>
20447
20448 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
20449 (xd_signature, xd_append_arg): Handle element type detection for
20450 empty arrays.
20451 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
20452 SDATA () calls; this must be solved more general.
20453 (Fdbus_register_signal): Use SBYTES instead of strlen.
20454
204552008-01-03 Magnus Henoch <magnus@zemdatav>
20456
20457 * dbusbind.c (xd_append_arg): Use unsigned char instead of
20458 unsigned int for byte values (necessary for big-endian platform).
20459 (Fdbus_call_method): Handle the case of no returned arguments.
20460
204612007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
20462
20463 * dbusbind.c (xd_read_message): Use non-static input_event struct.
20464
204652007-12-31 Magnus Henoch <mange@freemail.hu>
20466
20467 * dbusbind.c (xd_signature): Signature of variant is just "v".
20468
204692007-12-30 Michael Albinus <michael.albinus@gmx.de>
20470
20471 * dbusbind.c: Fix several errors and compiler warnings.
20472 Reported by Tom Tromey <tromey@redhat.com>.
20473 (XD_ERROR, XD_DEBUG_MESSAGE)
20474 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
20475 (xd_append_arg): Part for basic D-Bus types rewritten.
20476 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
20477 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
20478 appropriate.
20479 (xd_read_message): Return Qnil. Don't signal an error; it is not
20480 useful during event reading.
20481 (Fdbus_register_signal): Signal an error if the check for
20482 FUNCTIONP fails.
20483 (Fdbus_register_method): New function. The implementation is not
20484 complete, the call of the function signals an error therefore.
20485 (Fdbus_unregister_object): New function, renamed from
20486 Fdbus_unregister_signal. The initial check signals an error, if
20487 the object is not well formed.
20488
204892007-12-30 Richard Stallman <rms@gnu.org>
20490
20491 * textprop.c (get_char_property_and_overlay):
20492 Signal error if POSITION is out of range in a buffer.
20493
204942007-12-29 Martin Rudalics <rudalics@gmx.at>
20495
20496 * w32fns.c (Fx_create_frame): Make copy of frame parameters
20497 because the original parameters are in pure storage now.
20498
204992007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20500
20501 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
20502
205032007-12-22 Eli Zaretskii <eliz@gnu.org>
20504
20505 * callint.c (syms_of_callint) <command-history>: Add reference to
20506 history-length in the doc string.
20507
205082007-12-17 Jason Rumney <jasonr@gnu.org>
20509
20510 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
20511 before passing as wParam.
20512
205132007-12-22 Michael Albinus <michael.albinus@gmx.de>
20514
20515 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
20516 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
20517 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
20518 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
20519 as number.
20520 (Fdbus_call_method): Fix docstring.
20521
205222007-12-21 Michael Albinus <michael.albinus@gmx.de>
20523
20524 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
20525 New macros.
20526 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
20527 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
20528 Simplify.
20529 (xd_signature): New function.
20530 (xd_append_arg): Compute also signatures. Major rewrite.
20531 (xd_retrieve_arg): Make debug messages friendly.
20532 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
20533 Check for signatures of arguments.
20534
205352007-12-19 Michael Albinus <michael.albinus@gmx.de>
20536
20537 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
20538 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
20539 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
20540 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
20541 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
20542 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
20543 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
20544 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
20545 (xd_retrieve_value): Remove. Functionality included in ...
20546 (xd_append_arg): New function.
20547 (Fdbus_call_method, Fdbus_send_signal): Apply it.
20548
205492007-12-16 Michael Albinus <michael.albinus@gmx.de>
20550
20551 * dbusbind.c (top): Include <stdio.h>.
20552 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
20553 dbus_message_new_method_call and dbus_message_new_signal.
20554 (Fdbus_register_signal): Rename unique_name to uname.
20555 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
20556 non-existing unique name. Fix typos in matching rule. Return an
20557 object which is useful in Fdbus_unregister_signal.
20558 (Fdbus_unregister_signal): Reimplementation, in order to remove
20559 only the corresponding entry.
20560 (Vdbus_registered_functions_table): Change the order of entries.
20561 Apply these changes in xd_read_message and Fdbus_register_signal.
20562
205632007-12-16 Andreas Schwab <schwab@suse.de>
20564
20565 * fileio.c (Finsert_file_contents): Fix overflow check to not
20566 depend on undefined integer overflow.
20567
205682007-12-14 Jason Rumney <jasonr@gnu.org>
20569
20570 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
20571 for characters above 127.
20572
205732007-12-13 Jason Rumney <jasonr@gnu.org>
20574
20575 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
20576 before dereferencing array.
20577 (lookup_vk_code): Remove zero comparison.
20578
205792007-12-14 Michael Albinus <michael.albinus@gmx.de>
20580
20581 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
20582 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
20583 Use `unsigned int' instead of `uint'.
20584 (xd_read_message, Fdbus_register_signal): Split expressions into
20585 multiple lines before operators "&&" and "||", according to the
20586 GNU Coding Standards.
20587
205882007-12-14 Eli Zaretskii <eliz@gnu.org>
20589
20590 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
20591
205922007-12-12 Juri Linkov <juri@jurta.org>
20593
20594 * buffer.c (Frename_buffer): In interactive spec replace
20595 `read-buffer' with `read-string' that uses `buffer-name-history'
20596 as history, and the current buffer's name as default.
20597
205982007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
20599
20600 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
20601 manipulating the backtrace manually.
20602 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
20603 (struct backtrace, backtrace_list): Remove.
20604 (command_loop_1): Remove dead var `no_direct'.
20605
20606 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
20607 preserve non-built-in buffer-local variables.
20608 (Fkill_all_local_variables): Don't re-create&re-set permanent
20609 buffer-local variables.
20610
206112007-12-09 Juri Linkov <juri@jurta.org>
20612
20613 * buffer.c (Frename_buffer): Change interactive spec from "s" to
20614 Lisp code that uses `read-buffer' with current buffer as default.
20615
206162007-12-08 Michael Albinus <michael.albinus@gmx.de>
20617
20618 * dbusbind.c (xd_read_message): Generate an event for every
20619 registered handler. There might be several handlers registered
20620 for the same signal.
20621 (Fdbus_register_signal): Don't overwrite a registration for the
20622 same signal. Add a new registration if handlers are different.
20623 (Vdbus_registered_functions_table): Rework doc string.
20624
206252007-12-07 Michael Albinus <michael.albinus@gmx.de>
20626
20627 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
20628 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
20629 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
20630 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
20631 Unify argument lists.
20632 (xd_read_message, Fdbus_register_signal): Reorder and extend event
20633 arguments and hash table keys. Use unique name for service.
20634 (Fdbus_unregister_signal): Remove checks.
20635 (Vdbus_registered_functions_table): Fix doc string.
20636
206372007-12-05 Magnus Henoch <mange@freemail.hu>
20638
20639 * process.c (make_process): Initialize pty_flag to 0.
20640
206412007-12-05 Jason Rumney <jasonr@gnu.org>
20642
20643 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
20644 specified XBMs.
20645
206462007-12-05 Richard Stallman <rms@gnu.org>
20647
20648 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
20649
206502007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20651
20652 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
20653 New variable.
20654 (mac_try_close_socket) [MAC_OSX]: New function.
20655 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
20656 Update cfsockets_for_select. Replace invalid CFRunLoop source.
20657
20658 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
20659 Use mac_try_close_socket.
20660
206612007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20662
20663 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
20664 reloc_base.
20665 (copy_dysymtab): Compute relocation base here.
20666 (rebase_reloc_address) [__ppc64__]: New function.
20667 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
20668 changed.
20669
206702007-12-05 Jason Rumney <jasonr@gnu.org>
20671
20672 * w32proc.c (sys_spawnve): Quote args with wildcards.
20673
206742007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20675
20676 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
20677 __objc_* sections.
20678 (unrelocate) [_LP64]: Set relocation base to address of data segment.
20679
206802007-12-05 Michael Albinus <michael.albinus@gmx.de>
20681
20682 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
20683 Move check for Vdbus_registered_functions_table to
20684 xd_read_queued_messages.
20685 (xd_read_queued_messages): Protect xd_read_message calls by
20686 internal_condition_case_1.
20687
206882007-12-04 Michael Albinus <michael.albinus@gmx.de>
20689
20690 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
20691 Qdbus_system_bus and Qdbus_session_bus, respectively.
20692 (Vdbus_intern_symbols): Remove.
20693 (Vdbus_registered_functions_table): New hash table.
20694 (XD_SYMBOL_INTERN_SYMBOL): Remove.
20695 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
20696 Rewrite in order to manage registered functions by hash table
20697 Vdbus_registered_functions_table.
20698
206992007-12-03 Jan Djärv <jan.h.d@swipnet.se>
20700
20701 * xterm.c: Update URL to Window Manager Specification in comment.
20702
207032007-12-02 Michael Albinus <michael.albinus@gmx.de>
20704
20705 * config.in (HAVE_DBUS): Add.
20706
20707 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
20708 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
20709 (obj): Add $(DBUS_OBJ).
20710 (LIBES): Add $(DBUS_LIBS).
20711 (dbusbind.o): New target.
20712
20713 * dbusbind.c: New file.
20714
20715 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
20716
20717 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
20718 (Qdbus_event): New Lisp symbol.
20719 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
20720 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 20721 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
20722
20723 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
20724
207252007-12-01 Richard Stallman <rms@gnu.org>
20726
20727 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
20728
207292007-11-30 Jason Rumney <jasonr@gnu.org>
20730
20731 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
20732 (w32con_reset_terminal_modes): Clear screen buffer.
20733 (w32_face_attributes): Don't use color indexes that are out of range.
20734 Only reverse the default colors.
20735
20736 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
20737 WINDOWSNT.
20738
20739 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
20740
207412007-11-29 Jason Rumney <jasonr@gnu.org>
20742
20743 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
20744 (w32_face_attributes): Use Vtty_defined_color_alist to determine
20745 if the terminal colors are initialized.
20746 (unspecified_fg, unspecified_bg): Remove unused declarations.
20747
207482007-11-29 Andreas Schwab <schwab@suse.de>
20749
20750 * keyboard.c (apply_modifiers): Fix typo.
20751
207522007-11-29 Richard Stallman <rms@gnu.org>
20753
20754 * keymap.c (Fcurrent_local_map): Doc fix.
20755
207562007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
20757
20758 * s/gnu-kfreebsd.h: New file.
20759
207602007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
20761
20762 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
20763 Don't cast redundantly.
20764
20765 * keyboard.c (KEY_TO_CHAR): New macro.
20766 (parse_modifiers, apply_modifiers): Accept integer arguments.
20767 (read_key_sequence): Use them to unify the "shift->unshift" mapping
20768 for chars and symbol keys.
20769 After doing such remapping, apply function-key-map again.
20770
207712007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
20772
20773 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
20774 compiled anymore.
20775
207762007-11-26 Andreas Schwab <schwab@suse.de>
20777
20778 * process.c (list_processes_1): Fix indentation level of the
20779 command column.
20780
207812007-11-23 Andreas Schwab <schwab@suse.de>
20782
20783 * editfns.c (Fformat): Handle %c specially since it requires the
20784 argument to be of type int.
20785
207862007-11-23 Markus Triska <markus.triska@gmx.at>
20787
20788 * emacs.c (main): Call init_editfns before init_process, since
20789 init_process sets Vprocess_connection_type depending on OS release.
20790
207912007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
20792
20793 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
20794 (find_symbol_value): Use do_symval_forwarding.
20795
20796 * data.c (set_internal): Set the value in the `cons-cell' (for
20797 Buffer_Local_values) not only for frame-local variables.
20798
207992007-11-22 Andreas Schwab <schwab@suse.de>
20800
20801 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
20802 values to sprintf.
20803 * keymap.c (Fsingle_key_description): Likewise.
20804 * print.c (print_object): Likewise.
20805
208062007-11-22 Jan Djärv <jan.h.d@swipnet.se>
20807
20808 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
20809 file for image is nil.
20810
208112007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
20812
20813 * term.c: Include stdarg.h.
20814 (fatal): Implement using varargs.
20815 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
20816
208172007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
20818
20819 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
20820 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
20821 Update call to buffer_slot_type_mismatch.
20822 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
20823 (buffer_slot_type_mismatch): Update.
20824 * buffer.c (buffer_local_types): Remove.
20825 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
20826 (defvar_per_buffer): Set the type in the buffer_objfwd.
20827
208282007-11-21 Jason Rumney <jasonr@gnu.org>
20829
20830 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
20831 CreateFileMapping returns NULL on failure.
20832
208332007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
20834
20835 * search.c (Fset_match_data): Remove the `evaporate' feature.
20836 (unwind_set_match_data): Don't use the `evaporate' feature.
20837
208382007-11-21 Jason Rumney <jasonr@gnu.org>
20839
20840 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
20841
20842 * w32console.c (w32con_write_glyphs): Remove unused variables.
20843
208442007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
20845
20846 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
20847
20848 * s/darwin.h (MULTI_KBOARD): Remove.
20849
20850 * macfns.c (x_create_tip_frame, Fx_create_frame)
20851 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
20852
208532007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
20854
20855 * buffer.c (Fbuffer_local_value): Remove redundant test.
20856 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
20857 than in `current-buffer' to match the comment.
20858 Do the swap using swap_in_global_binding.
20859
20860 * data.c (store_symval_forwarding, set_internal):
20861 * eval.c (specbind): Remove dead code.
20862
20863 * coding.c (detect_coding, Fupdate_coding_systems_internal):
20864 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
20865 Since we do not want to see internal Lisp_*fwd objects here.
20866
208672007-11-18 Jan Djärv <jan.h.d@swipnet.se>
20868
20869 * sysdep.c (init_system_name): Use getaddrinfo if available.
20870
20871 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
20872 (x_scroll_bar_note_movement): start, end, with, height in struct
20873 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
20874
208752007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
20876
20877 * puresize.h (BASE_PURESIZE): Increase to 1190000.
20878
208792007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
20880
20881 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
20882 This undoes Richard's change of 14-Oct-2002.
20883
20884 * alloc.c (allocate_other_vector):
20885 * lisp.h (allocate_other_vector): Remove.
20886
20887 * window.c (struct save_window_data): Move non-lisp data to the end
20888 and make it `int' rather than Lisp_Object.
20889 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
20890 Done wrap/unwrap integer values.
20891 (Fset_window_configuration, compare_window_configurations):
20892 Update use of fields to their new types.
20893
20894 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
20895 Turn integer fields into `int'. Merge x_window_low and x_window_high.
20896 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
20897 (SET_SCROLL_BAR_X_WINDOW): Remove.
20898 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
20899 Access the new x_window field directly.
20900 * xterm.c (x_scroll_bar_create): Use a pseudovector.
20901 Don't wrap/unwrap integers into Lisp_Objects.
20902 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
20903 (x_scroll_bar_report_motion):
20904 Don't wrap/unwrap integers into Lisp_Objects.
20905 (x_term_init): Use SDATA.
20906 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
20907 (x_scroll_bar_set_handle, x_scroll_bar_remove)
20908 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
20909 (x_scroll_bar_report_motion, x_scroll_bar_clear):
20910 * xfns.c (x_set_background_color):
20911 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
20912 Access the new x_window field directly.
20913
20914 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
20915 (allocate_pseudovector): Make non-static.
20916
20917 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
20918 (allocate_pseudovector): Declare.
20919 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
20920
209212007-11-15 Andreas Schwab <schwab@suse.de>
20922
20923 * editfns.c (Fformat): Correctly format EMACS_INT values.
20924 Also take precision into account when formatting an integer.
20925
20926 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
20927
209282007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
20929
20930 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
20931 (syms_of_keyboard): Defsubr it.
20932
20933 * data.c (swap_in_global_binding): Fix longstanding bug where
20934 store_symval_forwarding was not called with the right second argument,
20935 thus causing objfwd-ing from being dropped.
20936
209372007-11-14 Juanma Barranquero <lekktu@gmail.com>
20938
20939 * macfns.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_backing_store)
20943 (Fx_display_visual_class, Fx_display_save_under):
20944 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
20945 (Fx_display_pixel_height, Fx_display_planes)
20946 (Fx_display_color_cells, Fx_server_max_request_size)
20947 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
20948 (Fx_display_mm_height, Fx_display_mm_width)
20949 (Fx_display_backing_store, Fx_display_visual_class)
20950 (Fw32_select_font, Fx_display_save_under):
20951 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
20952 (Fx_display_pixel_height, Fx_display_planes)
20953 (Fx_display_color_cells, Fx_server_max_request_size)
20954 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
20955 (Fx_display_save_under): Fix typos in docstrings.
20956
209572007-11-14 Juanma Barranquero <lekktu@gmail.com>
20958
20959 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
20960 corresponding to deleted entries; they are an implementation detail.
20961 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
20962 Remove variables.
20963 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
20964 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
20965 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
20966 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
20967 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
20968 (Fw32_define_rgb_color, Fw32_load_color_file)
20969 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
20970 Fix typos in docstrings.
20971 (Fx_server_version): Reflow docstring.
20972 (Fw32_shell_execute): Doc fixes.
20973
209742007-11-13 Juanma Barranquero <lekktu@gmail.com>
20975
20976 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
20977 if w32_parse_hot_key returned nil.
20978
209792007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
20980
20981 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
20982
209832007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 20984
aac0c6e3
MR
20985 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
20986
20987 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
20988
20989 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
20990 Remove W32_SCROLL_BAR_CLICK_EVENT.
20991
20992 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
20993 Add MULTIMEDIA_KEY_EVENT.
20994
20995 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
20996 (lispy_multimedia_keys) [WINDOWSNT]: New array.
20997 (make_lispy_event) [WINDOWSNT]: Use it to translate
20998 MULTIMEDIA_KEY_EVENT.
20999
21000 * w32term.h (WM_APPCOMMAND): Define if not already.
21001 (GET_APPCOMMAND_LPARAM): Likewise.
21002
21003 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
21004 WM_APPCOMMAND.
21005
21006 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
21007 (syms_of_w32fns): Export and initialize it.
21008 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
21009
210102007-11-09 Chong Yidong <cyd@stupidchicken.com>
21011
21012 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
21013 twice.
21014
21015 * xdisp.c (handle_face_prop): Fix last change.
21016
210172007-11-09 Richard Stallman <rms@gnu.org>
21018
21019 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
21020 not just for after-strings and before-strings.
21021 Call face_for_overlay_string and pass the overlay to it.
21022 (handle_display_prop): Determine whether property came from an overlay.
21023 Pass OVERLAY arg to handle_single_display_spec.
21024 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
21025 (load_overlay_strings): Fill in it->string_overlays.
21026 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
21027
21028 * xfaces.c (face_for_overlay_string): Function renamed from
21029 face_at_buffer_position_no_overlays, and add arg OVERLAY.
21030
21031 * dispextern.h (struct it): New elt string_overlays.
21032 New elt from_overlay, also in stack.
21033 Rearrange a few elements.
21034 (face_for_overlay_string): Decl renamed from
21035 face_at_buffer_position_no_overlays, and add argument.
21036
210372007-11-09 Richard Stallman <rms@gnu.org>
21038
21039 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
21040 to get the base face for an overlay string.
21041
21042 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
21043
21044 * xfaces.c (face_at_buffer_position_no_overlays): New function.
21045
21046 * xdisp.c (handle_stop): Move some code out of loop.
21047
210482007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21049
21050 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
21051 Fix conversion from Lisp object to ATSUFontID.
21052
210532007-11-09 Jason Rumney <jasonr@gnu.org>
21054
21055 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
21056
210572007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21058
21059 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
21060 Don't assume regions are aligned to page boundary.
21061 (print_load_command_name): Add LC_UUID if defined.
21062
210632007-11-09 Richard Stallman <rms@gnu.org>
21064
21065 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
21066
210672007-11-07 Jason Rumney <jasonr@gnu.org>
21068
21069 * s/windows95.h: Remove.
21070
210712007-11-06 Jan Djärv <jan.h.d@swipnet.se>
21072
21073 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
21074 abort with a message on unhandled store_type values.
21075
210762007-11-01 Jan Djärv <jan.h.d@swipnet.se>
21077
21078 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
21079 Remove HAVE_X11R5 and HAVE_X11R4.
21080
210812007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
21082
21083 * Makefile.in: Remove references to sunfns.c and sunfns.o.
21084
210852007-11-01 Johan Bockgård <bojohan@gnu.org>
21086
21087 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
21088 Don't set s->stippled_p here, since it has already been set by
21089 x_set_glyph_string_gc from x_draw_glyph_string.
21090
210912007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
21092
21093 * sunfns.c: Remove file.
21094
21095 * m/sun386.h:
21096 * m/sun2.h:
21097 * m/sparc.h: Remove Sun windows code.
21098
210992007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
21100
21101 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
21102 (init_keyboard): Set current_kboard's window-system to nil.
21103 (tty_read_avail_input): Typo.
21104 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
21105
211062007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
21107
21108 * s/usg5-4.h:
21109 * s/usg5-3.h:
21110 * s/ptx.h:
21111 * m/is386.h:
21112 * m/ibmps2-aix.h:
21113 * Makefile.in: Remove all mentions of X10.
21114
21115 * dispnew.c (syms_of_display): Don't mention version 10.
21116
211172007-10-28 Juanma Barranquero <lekktu@gmail.com>
21118
21119 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
21120 ($(BLD)/abbrev.$(O)): Remove.
21121
211222007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
21123
21124 Rewrite abbrev.c in Elisp.
21125 * image.c (Qcount): Don't declare as extern.
21126 (syms_of_image): Initialize and staticpro `Qcount'.
21127 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
21128 * emacs.c (main): Don't call syms_of_abbrev.
21129 * Makefile.in (obj): Remove abbrev.o.
21130 (abbrev.o): Remove.
21131 * abbrev.c: Remove.
21132
211332007-10-26 Martin Rudalics <rudalics@gmx.at>
21134
21135 * window.c (window_min_size_2): Don't count header-line.
21136
211372007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
21138
21139 * frame.h (struct frame): Move all bit fields after the first bit
21140 field to take advantage of the available space. Group all the
21141 chars together to reduce wasted space due to padding.
21142
211432007-10-26 Juanma Barranquero <lekktu@gmail.com>
21144
21145 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
21146
21147 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
21148 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
21149 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
21150 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
21151 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
21152 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
21153 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
21154 (last_marked, mark_object_loop_halt): Make static.
21155
21156 * frame.c (syms_of_frame) <delete-frame-functions>:
21157 Fix typo in docstring.
21158
211592007-10-25 Juanma Barranquero <lekktu@gmail.com>
21160
21161 * w32.c (init_environment): Fix tiny memory leak.
21162 (w32_get_resource): Remove unused variable `ok'.
21163
211642007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
21165
21166 Make `window-system' into a keyboard-local variable (rather than
21167 frame-local as done originally by multi-tty).
21168
21169 * keyboard.h (struct kboard): Add Vwindow_system.
21170 * keyboard.c (init_kboard): Set a default for Vwindow_system.
21171 (mark_kboards): Mark Vwindow_system.
21172
21173 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
21174 (init_display): Don't set the obsolete `window-system' frame-param.
21175
21176 * xterm.c (x_term_init):
21177 * w32term.c (w32_create_terminal):
21178 * term.c (init_tty): Set Vwindow_system.
21179 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
21180 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
21181
21182 * xfns.c (Fx_create_frame, x_create_tip_frame):
21183 * w32fns.c (Fx_create_frame, x_create_tip_frame):
21184 * macfns.c (Fx_create_frame):
21185 Don't set the obsolete `window-system' frame-param.
21186
21187 * frame.h (Qwindow_system): Remove.
21188 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
21189 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
21190
211912007-10-24 Richard Stallman <rms@gnu.org>
21192
21193 * frame.c (x_figure_window_size): For fullscreen case,
21194 set USPosition | PPosition without clobbering rest of window_prompting.
21195
21196 * keyboard.c (Fcurrent_idle_time): Doc fix.
21197
21198 * print.c (Fwith_output_to_temp_buffer): Doc fix.
21199
212002007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
21201
21202 * process.c (unwind_request_sigio): Only define if __ultrix__.
21203
21204 * callproc.c (child_setup): Remove spurious *.
21205
21206 * lisp.h (Fget_text_property): Declare.
21207 (have_menus_p): Declare it here rather than in sys-dep header files.
21208 * macterm.h (have_menus_p):
21209 * msdos.h (have_menus_p):
21210 * xterm.h (have_menus_p): Remove.
21211
21212 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
21213 (Fmake_variable_frame_local): Just check the variable's const-ness
21214 rather than checking nil or t.
21215
212162007-10-22 Jason Rumney <jasonr@gnu.org>
21217
21218 * w32fns.c: Include math.h.
21219 (w32_abort): Declaration moved to nt/config.nt.
21220
21221 * s/ms-w32.h (HAVE_STDLIB_H): Define.
21222 (abort): Redefinition moved to nt/config.nt.
21223
21224 * m/windowsnt.h: Remove.
21225
212262007-10-22 Juanma Barranquero <lekktu@gmail.com>
21227
21228 * emacs.c (Fdump_emacs): Fix typo in message.
21229 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
21230 <installation-directory>: Reflow docstring.
21231
212322007-10-22 Juri Linkov <juri@jurta.org>
21233
21234 * minibuf.c: Allow minibuffer default to be a list of default values.
21235 With empty input use the first element of this list as returned default.
21236 (string_to_object)
21237 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
21238 (read_minibuf): If defalt is cons, set histstring to its car.
21239 (Fread_string): If default_value is cons, set val to its car.
21240 (Fread_buffer): If def is cons, use its car.
21241 (Fcompleting_read): If defalt is cons, set val to its car.
21242
212432007-10-21 Michael Albinus <michael.albinus@gmx.de>
21244
21245 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
21246
212472007-10-20 Juanma Barranquero <lekktu@gmail.com>
21248
21249 * doc.c (Fdocumentation): Check for advice in all cases.
21250
212512007-10-19 Chong Yidong <cyd@stupidchicken.com>
21252
21253 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
21254
212552007-10-19 Richard Stallman <rms@gnu.org>
21256
21257 * doc.c (Fdocumentation): Check for and handle an advised function.
21258
212592007-10-19 Juanma Barranquero <lekktu@gmail.com>
21260
21261 * process.c (Fset_process_filter): Doc fix.
21262
212632007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
21264
21265 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
21266 which caused key-translation-map to applied repeatedly (thus breaking
21267 double-mode).
21268
212692007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
21270
21271 * xselect.c (x_own_selection, x_handle_selection_clear)
21272 (x_clear_frame_selections):
21273 * w32menu.c (list_of_panes, list_of_items):
21274 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
21275 * textprop.c (validate_plist, interval_has_all_properties)
21276 (interval_has_some_properties, interval_has_some_properties_list)
21277 (add_properties, text_property_list):
21278 * process.c (Fget_buffer_process, list_processes_1, status_notify):
21279 * minibuf.c (Fassoc_string):
21280 * macselect.c (x_own_selection, x_clear_frame_selections)
21281 (Fx_disown_selection_internal):
21282 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
21283 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
21284
212852007-10-17 Chong Yidong <cyd@stupidchicken.com>
21286
21287 * process.c: Link to libs for calling res_init() if available.
21288 (Fmake_network_process): Call res_init() before getaddrinfo or
21289 gethostbyname, if possible.
21290
212912007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
21292
21293 * lread.c (read1): Set pvectype for char_tables.
21294
21295 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
21296 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
21297 Add type checks.
21298 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
21299
21300 * alloc.c (free_misc): Use XMISCTYPE.
21301 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
21302
213032007-10-17 Glenn Morris <rgm@gnu.org>
21304
21305 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
21306 (syms_of_minibuf): Add Qcompletion_ignore_case.
21307 * dired.c (Qcompletion_ignore_case): Change to external.
21308 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
21309 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
21310 (Fread_file_name): Use it rather than intern'ing.
21311
21312 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
21313 (Fread_coding_system): Ignore case of user input.
21314
213152007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21316
21317 * xdisp.c (handle_display_prop): Ignore display specs after
21318 replacing one when string text is being replaced.
21319 (handle_single_display_spec): Pretend as if characters with display
21320 property haven't been consumed only when buffer text is being replaced.
21321
213222007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
21323
21324 * xfns.c (Fx_create_frame, Fx_display_list):
21325 * window.c (window_fixed_size_p, enlarge_window)
21326 (shrink_window_lowest_first):
21327 * macterm.c (init_font_name_table):
21328 * macfns.c (Fx_create_frame, Fx_display_list):
21329 * lread.c (close_load_descs):
21330 * keyboard.c (read_char_x_menu_prompt):
21331 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
21332 * coding.c (code_convert_region_unwind): Test the type of an object
21333 rather than just !NILP before extracting data from it.
21334
21335 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
21336
21337 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
21338 (XMISCANY): New macro.
21339 (XMISCTYPE): Use it.
21340 (struct Lisp_Misc_Any): New type.
21341 (union Lisp_Misc): Use it.
21342 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
21343 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
21344 (find_symbol_value, set_internal, default_value, Fset_default)
21345 (Fmake_variable_buffer_local, Fmake_local_variable)
21346 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
21347 (Flocal_variable_if_set_p, Fvariable_binding_locus):
21348 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
21349 * alloc.c (allocate_buffer): Set the size and tag.
21350 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
21351 Use XMISCANY.
21352 (die): Follow the GNU convention for error messages.
21353 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
21354 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
21355 tag any more.
21356 (set_buffer_internal_1):
21357 * frame.c (store_frame_param):
21358 * eval.c (specbind):
21359 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
21360
21361 * doc.c (Fsnarf_documentation): Simplify.
21362
213632007-10-14 Juanma Barranquero <lekktu@gmail.com>
21364
21365 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
21366 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
21367
213682007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
21369
21370 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
21371
213722007-10-14 Juanma Barranquero <lekktu@gmail.com>
21373
21374 * eval.c (do_autoload): Don't save autoloads.
21375
21376 * data.c (Ffset): Save autoload of the function being set.
21377
213782007-10-07 John Paul Wallington <jpw@pobox.com>
21379
21380 * xfns.c (x_create_tip_frame): Set the `display-type' frame
21381 parameter before setting up faces.
21382
213832007-10-13 Eli Zaretskii <eliz@gnu.org>
21384
21385 * ccl.c (Fregister_code_conversion_map):
21386 * keyboard.c (append_tool_bar_item): Reformat last change.
21387
21388 * lisp.h (eabs): Rename from `abs'. All callers changed.
21389
213902007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
21391
21392 * buffer.c (add_overlay_mod_hooklist):
21393 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
21394 * fontset.c (make_fontset):
21395 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
21396 (append_tool_bar_item):
21397 * macmenu.c (grow_menu_items):
21398 * w32menu.c (grow_menu_items):
21399 * xmenu.c (grow_menu_items): Use larger_vector.
21400
214012007-10-13 Eli Zaretskii <eliz@gnu.org>
21402
21403 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
21404 selected frame'' on MSDOS).
21405
214062007-10-12 Martin Rudalics <rudalics@gmx.at>
21407
21408 * frame.c (Qexplicit_name): New variable.
21409 (x_report_frame_params): Report it in parameter alist.
21410 (syms_of_frame): Intern and staticpro it.
21411
214122007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
21413
21414 * macfns.c (x_create_tip_frame): Set terminal for frame.
21415
214162007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
21417
21418 * frame.c (Qenvironment): Remove.
21419 (syms_of_frame) <Qenvironment>: Don't initialize.
21420 (Fdelete_frame): Don't treat the `environment' param specially.
21421 * frame.h (Qenvironment): Don't declare.
21422 * callproc.c (set_initial_environment): Don't set unused frame param.
21423
21424 * frame.c (Fframe_with_environment): Remove.
21425 (syms_of_frame) <Sframe_with_environment>: Don't declare.
21426
21427 * lisp.h (Fframe_with_environment): Don't declare.
21428
214292007-10-10 Juanma Barranquero <lekktu@gmail.com>
21430
21431 * indent.c (indent_tabs_mode, last_known_column)
21432 (last_known_column_modified): Make static.
21433 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
21434
214352007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
21436
21437 * puresize.h (BASE_PURESIZE): Increase to 1170000.
21438
214392007-10-09 Jason Rumney <jasonr@gnu.org>
21440
21441 * w32term.c (x_set_window_size): Disable code that attempts to tell
21442 Lisp code about a size change before it actually happens.
21443
214442007-10-09 Richard Stallman <rms@gnu.org>
21445
21446 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
21447 return HANDLED_RETURN.
21448
214492007-10-08 Martin Rudalics <rudalics@gmx.at>
21450
21451 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
21452 when there's an unread command event.
21453
21454 * frame.c (focus_follows_mouse): Move here from frame.el to allow
21455 window autoselection act appropriately when leaving selected frame.
21456 (syms_of_frame): Initialize focus_follows_mouse.
21457 * frame.h (focus_follows_mouse): Extern it.
21458 * macterm.c (XTread_socket): When focus_follows_mouse is nil
21459 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
21460 * msdos.c (dos_rawgetc): Likewise.
21461 * w32term.c (w32_read_socket): Likewise.
21462 * xterm.c (handle_one_xevent): Likewise.
21463 * xdisp.c (syms_of_xdisp): In doc-string of
21464 mouse-autoselect-window mention focus-follows-mouse.
21465
214662007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21467
21468 * macterm.c (mac_load_query_font): Fix missing return value.
21469 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
21470 Add BLOCK_INPUT.
21471
214722007-10-08 Richard Stallman <rms@gnu.org>
21473
21474 * xdisp.c (get_window_cursor_type): Implement documented behavior
21475 for cursor-in-non-selected-windows = t.
21476
214772007-10-08 Jason Rumney <jasonr@gnu.org>
21478
21479 * w32.c (w32_get_resource): Always close registry keys.
21480
214812007-10-08 Jason Rumney <jasonr@gnu.org>
21482
21483 * makefile.w32-in (LIBS): Add COMCTL32.
21484
21485 * w32fns.c (globals_of_w32fns): Init common controls.
21486
214872007-10-08 Richard Stallman <rms@gnu.org>
21488
21489 * image.c (our_memory_buffer): Rename from omfib_buffer.
21490
214912007-10-08 Richard Stallman <rms@gnu.org>
21492
21493 * buffer.c (Foverlays_at): Doc fix.
21494
214952007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
21496
21497 * fns.c (Fplist_put): Preserve uneven tail data.
21498
214992007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
21500
21501 * termhooks.h (enum event_kind): Remove trailing comma.
21502
21503 * frame.h (enum): Remove trailing comma.
21504
215052007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
21506
21507 * w32proc.c (delete_child): Don't terminate threads of zombies.
21508
215092007-10-08 Martin Rudalics <rudalics@gmx.at>
21510
21511 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
21512
21513 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
21514 last-repeatable-command.
21515 (init_kboard): Initialize Vlast_repeatable_command.
21516 (command_loop_1): Set it to real_this_command unless that was
21517 bound to an input event.
21518 (mark_kboards): Mark it.
21519
215202007-10-08 Richard Stallman <rms@gnu.org>
21521
21522 * eval.c (condition-case): Doc fix.
21523
215242007-10-08 Masatake YAMATO <jet@gyve.org>
21525
21526 * xfaces.c (tty_supports_face_attributes_p): Fix code
21527 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
21528 was copied and not edited.
21529
215302007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
21531
21532 Add new `input-decode-map' keymap and use it for terminal
21533 escape sequences.
21534 * keyboard.h (struct kboard): Add Vinput_decode_map.
21535 Remove Vlocal_key_translation_map.
21536 * keyboard.c (read_key_sequence): Add support for input-decode-map.
21537 (init_kboard): Init input-decode-map.
21538 Replace local-key-translation-map back with key-translation-map.
21539 (syms_of_keyboard): Declare input-decode-map.
21540 Remove local-key-translation-map. Update docstrings.
21541 (mark_kboards): Mark Vinput_decode_map.
21542 Don't mark Vlocal_key_translation_map.
21543 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
21544 Replace local-key-translation-map back with key-translation-map.
21545 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
21546 Bind in input-decode-map rather than function-key-map.
21547
21548 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
21549 This was made redundant by the previous introduction of XSETPVECTYPE.
21550
215512007-10-09 Richard Stallman <rms@gnu.org>
21552
21553 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
21554
215552007-09-29 Richard Stallman <rms@gnu.org>
21556
21557 * eval.c (internal_condition_case_2, internal_condition_case_1)
21558 (internal_condition_case): Reenable abort if x_catching_errors ()
21559 to see if that really happens and why.
21560
215612007-10-06 Andreas Schwab <schwab@suse.de>
21562
21563 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
21564
215652007-10-04 Juanma Barranquero <lekktu@gmail.com>
21566
21567 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
21568
215692007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
21570
21571 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
21572
215732007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
21574
21575 * window.h (struct window):
21576 * window.c (struct save_window_data, struct saved_window):
21577 * termhooks.h (struct terminal):
21578 * process.h (struct Lisp_Process):
21579 * frame.h (struct frame):
21580 * buffer.h (struct buffer):
21581 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
21582 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
21583 The size field of (pseudo)vectors is now unsigned.
21584 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
21585
21586 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
21587 Turn `count' into an integer.
21588
21589 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
21590 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
21591 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
21592 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
21593 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
21594
21595 * alloc.c (allocate_pseudovector): New fun.
21596 (ALLOCATE_PSEUDOVECTOR): New macro.
21597 (allocate_window, allocate_terminal, allocate_frame)
21598 (allocate_process): Use it.
21599 (mark_vectorlike): New function.
21600 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
21601 (mark_terminals): Use it.
21602 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
21603 (Fmake_byte_code): Use XSETPVECTYPE.
21604
21605 * frame.c (Fframe_parameters): Minor simplification.
21606
21607 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
21608
21609 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
21610
21611 * buffer.c (Fget_buffer_create, init_buffer_once):
21612 * lread.c (defsubr):
21613 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
21614
21615 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
21616 defined differently in the m/*.h files.
21617 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
21618 (XSETPVECTYPE): New macro.
21619 (XSETPSEUDOVECTOR): Use it.
21620
21621 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
21622 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
21623
21624 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
21625 * lread.c (defvar_per_buffer):
21626 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
21627
21628 * window.c (candidate_window_p): Only consider as visible frames that
21629 are on the same terminal.
21630
21631 * m/ibms390x.h (MARKBIT): Remove unused macro.
21632
216332007-10-01 Juanma Barranquero <lekktu@gmail.com>
21634
21635 * lread.c (Fload): Fix typo in docstring.
21636
216372007-10-01 Michaël Cadilhac <michael@cadilhac.name>
21638
21639 * floatfns.c (Fexpt): Manually check for overflows, so that a power
21640 of a non-zero value can't yield zero.
21641
216422007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
21643
21644 * term.c (term_clear_mouse_face, term_mouse_highlight)
21645 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
21646
21647 * print.c (safe_debug_print): Use XHASH.
21648
21649 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
21650 Lisp elements such as tags.
21651 (XHASH): New macro.
21652 (EQ): Use it.
21653 (SREF, SSET, STRING_COPYIN): Use SDATA.
21654 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
21655
21656 * alloc.c (mark_terminal): Remove left-over declaration.
21657 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
21658 (allocate_vectorlike): Remove type argument. Adjust callers.
21659 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
21660 Only handle the one remaining MEM_TYPE_VECTORLIKE.
21661
21662 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
21663 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
21664 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
21665 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
21666 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
21667 Use them.
21668
21669 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
21670 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
21671 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
21672
216732007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
21674
21675 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
21676 loaded by default.
21677
216782007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
21679
21680 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
21681 on this tty.
21682 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
21683
21684 * term.c (mouse_face_window): Rename from Qmouse_face_window.
21685 Update all users.
21686 (handle_one_term_event): Use Gpm_DrawPointer.
21687 (Fgpm_mouse_start): Rename from Fterm_open_connection.
21688 Signal errors instead of returning nil. Always return nil.
21689 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
21690 Make it a noop if gpm-mouse was not activated.
21691 (syms_of_term): Update names.
21692
216932007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
21694
21695 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
21696 (init_sys_modes): Check that gpm_tty is the current tty.
21697
21698 * alloc.c (allocate_terminal): Set the vector size to only count the
21699 lisp fields. Initialize those to nil.
21700 (mark_object): Don't treat terminals specially.
21701 (mark_terminal): Remove.
21702 (mark_terminals): Use mark_object instead.
21703
21704 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
21705 the GC to the beginning.
21706
21707 * indent.h:
21708 * indent.c: Use EMACS_INT for ints coming from Elisp data.
21709
21710 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
21711
217122007-09-25 Jason Rumney <jasonr@gnu.org>
21713
21714 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
21715
21716 * w32console.c (create_w32cons_output): Remove.
21717
21718 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
21719
21720 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
21721 (reset_sys_modes): Use reset_terminal_modes_hook.
21722
217232007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
21724
21725 * eval.c (do_autoload): Don't output any message.
21726
217272007-09-24 Juri Linkov <juri@jurta.org>
21728
21729 * emacs.c (standard_args): Change priority of "--no-splash"
21730 from 40 to 3. Add "--no-desktop" with the same priority.
21731
217322007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
21733
21734 * alloc.c (gc_sweep): Check cons cell mark bits word by word
21735 and optimize the case where they are all 1.
21736
217372007-09-23 Johannes Weiner <hannes@saeurebad.de>
21738
21739 * lisp.h (abs): Define if not defined.
21740 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
21741 Don't define `abs', since it's defined in lisp.h.
21742
217432007-09-22 Eli Zaretskii <eliz@gnu.org>
21744
21745 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
21746 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
21747 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
21748 (init_tty): Use DEV_TTY instead of "/dev/tty".
21749 [WINDOWSNT]: No need to protect from NAME arg being null.
21750
217512007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
21752
21753 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
21754 up the tty state.
21755
217562007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
21757
21758 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
21759 (gpm_tty): Change its type.
21760 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
21761 (gpm_tty): Change its type and initialize it.
21762 (Fterm_open_connection): Check the frame is indeed a tty.
21763 Use the new gpm_tty.
21764 (Fterm_close_connection): Use the new gpm_tty.
21765 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
21766 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
21767
217682007-09-21 Juanma Barranquero <lekktu@gmail.com>
21769
21770 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
21771 underline_color, to draw strike-through.
21772
217732007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
21774
21775 * lisp.h (allocate_terminal): Declare.
21776
21777 * window.c (candidate_window_p): Consider frames that are being placed
21778 by the user as somewhere between visible and iconified.
21779 (window_loop): Prefer windows on the current frame.
21780 (Fselect_window): Move the use of select-frame to the beginning so we
21781 can just delegate all the work (it'll call us back anyway).
21782
21783 * frame.c (Qdisplay_environment_variable):
21784 * frame.h (Qdisplay_environment_variable): Delete.
21785
21786 * .gdbinit (xbacktrace): Print the arg's address rather than the value
21787 of the first arg, since that value may be a union.
21788
21789 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
21790 parameter rather than Qdisplay_environment_variable. If all else
21791 fails, look for DISPLAY in initial-environment.
21792
217932007-09-21 Glenn Morris <rgm@gnu.org>
21794
21795 * Makefile.in (emacstool): Remove target.
21796 (lisp, shortlisp): Remove termdev.elc.
21797
217982007-09-21 Markus Triska <markus.triska@gmx.at>
21799
21800 * xterm.c (x_delete_display): Compile session management conditionally.
21801
218022007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
21803
21804 * callproc.c (getenv_internal_1): New function.
21805 (getenv_internal): Use it.
21806 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
21807
21808 * terminal.c (get_terminal): Don't accept ints to represent terminals.
21809 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
21810 (Fset_terminal_parameter): Work with dead terminals as well.
21811 (Fmodify_terminal_parameters): Remove.
21812
21813 * terminal.c (get_terminal): Handle terminals.
21814 Make sure the terminal returned is live.
21815 (create_terminal): Use allocate_terminal.
21816 (mark_terminals): Move to alloc.c.
21817 (delete_terminal): Use terminal->name as liveness status.
21818 NULL out fields after freeing their contents.
21819 Don't deallocate the object.
21820 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
21821 rather than an int.
21822 (Fterminal_live_p): Accept non-integer arguments.
21823 (Fterminal_list): Return terminal objects rather than an ints.
21824
21825 * alloc.c (enum mem_type): New member for `terminal' objects.
21826 (allocate_terminal): New function.
21827 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
21828 Handle terminals.
21829 (mark_terminal): New fun.
21830 (mark_terminals): Move from terminal.c.
21831
21832 * term.c (get_tty_terminal): Don't treat output_initial specially.
21833 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
21834 (delete_tty): Use terminal->name as liveness status.
21835
21836 * termhooks.h (struct terminal): Make it into a pseudovector.
21837 Remove `deleted' replaced by checking `name's nullness.
21838
21839 * print.c (print_object): Handle terminals.
21840
21841 * lisp.h (enum pvec_type): New `terminal' pseudovector.
21842 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
21843
21844 * frame.c (make_terminal_frame):
21845 * keyboard.c (tty_read_avail_input):
21846 * w32term.c (x_delete_terminal):
21847 * xfns.c (Fx_create_frame, x_create_tip_frame):
21848 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
21849
218502007-09-20 Glenn Morris <rgm@gnu.org>
21851
21852 * process.c (Fmake_network_process): Doc fix.
21853
218542007-09-19 Jason Rumney <jasonr@gnu.org>
21855
21856 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
21857
218582007-09-19 Michaël Cadilhac <michael@cadilhac.name>
21859
21860 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
21861 Fix a C warning regarding variable constness.
21862
21863 * xterm.c (handle_one_xevent): Fix a C warning.
21864
218652007-09-18 Jason Rumney <jasonr@gnu.org>
21866
21867 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
21868
218692007-09-17 Jan Djärv <jan.h.d@swipnet.se>
21870
21871 * gtkutil.c (gdpy_def): New variable.
21872 (xg_initialize): Initialize gdpy_def.
21873 (xg_display_close): If no other display exists, set gdpy_def to a
21874 new connection.
21875
218762007-09-16 Jan Djärv <jan.h.d@swipnet.se>
21877
21878 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
21879 when we have no file name for the icon.
21880 (xg_tool_bar_expose_callback): Remove.
21881 (xg_create_tool_bar): Don't connect expose signal to
21882 xg_tool_bar_expose_callback.
21883 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
21884
218852007-09-16 Andreas Schwab <schwab@suse.de>
21886
21887 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
21888 values instead of zapping them.
21889
218902007-09-14 Glenn Morris <rgm@gnu.org>
21891
21892 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
21893 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
21894 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
21895 scope and rename to omfib_buffer for clarity.
21896 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
21897
218982007-09-14 Kenichi Handa <handa@m17n.org>
21899
21900 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
21901
219022007-09-13 Jason Rumney <jasonr@gnu.org>
21903
21904 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
21905
21906 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
21907
21908 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
21909 (mac_term_init): Call here instead, passing rif.
21910
219112007-09-13 Glenn Morris <rgm@gnu.org>
21912
21913 * s/hpux.h: No longer define `static' as nothing.
21914
219152007-09-13 Johan Bockgård <bojohan@gnu.org>
21916
21917 * callint.c (Fcall_interactively): Remove unused var `fun'.
21918
219192007-09-12 Romain Francoise <romain@orebokech.com>
21920
21921 * window.c (prefer_window_split_horizontally, display_buffer):
21922 Revert 2007-09-08 change.
21923
219242007-09-12 Glenn Morris <rgm@gnu.org>
21925
21926 * alloca.c: Remove file.
21927 * Makefile.in (alloca): Do not undef.
21928 (allocaobj, alloca.o): Remove.
21929 (otherobj): Remove allocaobj.
21930 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
21931 * regex.c (C_ALLOCA): Remove all references and code that was only
21932 used when this was defined.
21933 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
21934 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
21935 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
21936
21937 * Makefile.in (SOURCES, unlock, relock): Delete.
21938
21939 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
21940 (menu_grab_callback): All uses changed.
21941
21942 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
21943 (x_reply_selection_request): All uses changed.
21944
219452007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
21946
21947 * lread.c (load_warn_old_style_backquotes): Change message to look
21948 better when it appears in the middle of byte-compiler messages.
21949
219502007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
21951
21952 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
21953
21954 * xterm.c (x_create_terminal): Add comment.
21955
21956 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
21957
219582007-09-10 Richard Stallman <rms@gnu.org>
21959
21960 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
21961
219622007-09-10 Michaël Cadilhac <michael@cadilhac.name>
21963
21964 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
21965 (DEFUN): Document `intspec', use it instead of `prompt'.
21966
21967 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
21968
21969 * data.c (Finteractive_form): If the interactive specification starts
21970 with a `(', use it as a Lisp form.
21971
21972 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
21973 name and file modes.
21974
21975 * callint.c (Fcall_interactively): Comment fixes.
21976
219772007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
21978
21979 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
21980 and compiled functions.
21981
219822007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
21983
21984 * window.c (prefer_window_split_horizontally): New variable.
21985 (display_buffer): Consider splitting window horizontally depending
21986 on prefer_window_split_horizontally.
21987
219882007-09-08 Eli Zaretskii <eliz@gnu.org>
21989
21990 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
21991
219922007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
21993
21994 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
21995
21996 * frame.c (x_set_frame_parameters): Check number is positive before
21997 using XFASTINT.
21998
21999 * window.c (freeze_window_start): Don't presume selected_window holds
22000 a window object.
22001 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
22002
220032007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
22004
22005 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
22006
220072007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
22008
22009 * window.c (Vsplit_window_preferred_function): New var.
22010 (Fdisplay_buffer): Use it.
22011 (syms_of_window): Export, and initialize it.
22012
220132007-09-06 Pixel <pixel@mandriva.com> (tiny change)
22014
22015 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
22016
220172007-09-06 Glenn Morris <rgm@gnu.org>
22018
22019 * gtkutil.c (menu_grab_callback) <cnt>:
22020 * xselect.c (x_reply_selection_request) <cnt>: Move static
22021 variable to file scope.
22022
220232007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
22024
22025 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
22026 consistent values of selected_frame and selected_window.
22027
220282007-09-04 Jason Rumney <jasonr@gnu.org>
22029
22030 * w32console.c (initialize_w32_display): Zero unused hooks.
22031
220322007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
22033
22034 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
22035 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
22036
220372007-09-04 Jason Rumney <jasonr@gnu.org>
22038
22039 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
22040 in w32console.c. Set up input. Remove XXX comments that have been
22041 confirmed as correct.
22042
22043 * s/ms-w32.h (MULTI_KBOARD): Define.
22044
22045 * w32console.c (one_and_only_w32cons): Remove.
22046 (initialize_w32_display): Take terminal argument.
22047
22048 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
22049 initialize_w32_display.
22050 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
22051
22052 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
22053
22054 * keyboard.c (discard_mouse_events): Discard it.
22055 (make_lispy_event): Translate it to a lisp event.
22056 (lispy_wheel_names): Add wheel-left and right events.
22057 (syms_of_keyboard): Enlarge wheel_syms.
22058
22059 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
22060 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
22061
22062 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
22063
22064 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
22065 from WM_MOUSEHWHEEL.
22066 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
22067
22068 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
22069 terminal.
22070
22071 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
22072 keyboard for the terminal.
22073
220742007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
22075
22076 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
22077 (Vresume_tty_hook): Rename from Vresume_tty_functions.
22078 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
22079 and resume-tty-function to resume-tty-hook.
22080 (Fsuspend_tty, Fresume_tty): Use new names.
22081
220822007-09-02 Jan Djärv <jan.h.d@swipnet.se>
22083
22084 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
22085 if it starts with "n:".
22086
220872007-08-31 Jan Djärv <jan.h.d@swipnet.se>
22088
22089 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
22090
220912007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
22092
22093 * frame.h:
22094 * frame.c (Qterm_environment_variable): Remove.
22095 (syms_of_frame): Don't init and staticpro it.
22096
22097 * callproc.c (getenv_internal): Remove special case for $TERM.
22098
22099 * callproc.c (Vinitial_environment): New variable.
22100 (set_initial_environment): Initialize it.
22101 (syms_of_callproc): Declare it.
22102 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
22103 TERM under which a process runs is never related to the TERM in which
22104 Emacs is running.
22105
221062007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
22107
22108 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
22109 * s/darwin.h: ... do it here.
22110
221112007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
22112
22113 * lisp.h (set_initial_environment): Rename from set_global_environment.
22114
22115 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
22116 removed by mistake on the multi-tty branch.
22117
22118 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
22119 (Fmodify_frame_parameters): Return a value.
22120
22121 * image.c (png_load): Comment-out var only used in commented-out code.
22122
22123 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
22124 before passing it to mark_object.
22125
22126 * xfaces.c (internal_resolve_face_name): Return a value.
22127 (internal_resolve_face_name, resolve_face_name_error): Comment out.
22128
22129 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
22130 (x_icon): Comment-out var only used in commented-out code.
22131
221322007-08-29 Romain Francoise <romain@orebokech.com>
22133
22134 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
22135 QUIT hasn't been provided.
22136
221372007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
22138
22139 * callproc.c (child_setup, getenv_internal): Use the
22140 display-environment-variable and term-environment-variable frame params.
22141 (set_initial_environment): Initialise Vprocess_environment.
22142
22143 * config.in: Disable multi-keyboard support on a mac.
22144
22145 * frame.c (Qterm_environment_variable)
22146 (Qdisplay_environment_variable): New variables.
22147 (syms_of_frame): Intern and staticpro them.
22148 (Fmake_terminal_frame): Disable output method test.
22149
22150 * frame.h: Declare them here.
22151
22152 * macfns.c (x_set_mouse_color): Get rif from the frame.
22153 (x_set_tool_bar_lines): Don't use updating_frame.
22154 (mac_window): Add 2 new parameters for consistency with other systems.
22155 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
22156 frame parameters following what is done in X11 and w32. Don't use
22157 FRAME_MAC_DISPLAY_INFO.
22158 (Fx_open_connection, start_hourglass): Remove window-system check.
22159 (x_create_tip_frame): Get the keyboard from the terminal.
22160
22161 * macmenu.c: Reorder includes.
22162 (Fx_popup_menu): Use terminal specific mouse_position_hook.
22163
22164 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
22165 terminal parameter.
22166 (x_clear_frame): Add a frame parameter.
22167 (note_mouse_movement): Get rif from the frame.
22168 (mac_term_init): Initialize the terminal.
22169 (mac_initialize): Make static and move terminal initialization ...
22170 (mac_create_terminal): ... to this new function.
22171
22172 * macterm.h (struct mac_display_info): Add terminal.
22173 (mac_initialize): Delete declaration.
22174
22175 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
22176
22177 * sysdep.c: Comment out text after #endif.
22178
22179 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
22180 is defined. Better initialize ttys in windows. Use terminal
22181 specific mouse_position_hook.
22182
22183 * termhooks.h (union display_info): Add mac_display_info.
22184
22185 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
22186 Set the default minibuffer frame, window_system and the rest of the
22187 frame parameters following what is done in X11.
22188
22189 * w32term.c (w32_initialize): Make static.
22190
22191 * xselect.c (x_handle_selection_clear): Only access
22192 terminal->kboard when MULTI_KBOARD is defined.
22193
22194 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
22195 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
22196
221972007-08-29 Jason Rumney <jasonr@gnu.org>
22198
22199 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
22200 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
22201
22202 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
22203 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
22204
22205 * keyboard.c (restore_kboard_configuration): Only define when
22206 MULTI_KBOARD defined.
22207
22208 * makefile.w32-in: Update dependancies from Makefile.in.
22209 (OBJ1): Add terminal.$(O)
22210
22211 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
22212 Don't define function body.
22213 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
22214
22215 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
22216
22217 * w32.c (request_sigio, unrequest_sigio): Remove.
22218
22219 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
22220 (w32con_clear_frame, w32con_clear_end_of_line)
22221 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
22222 (w32con_delete_glyphs, w32con_set_terminal_window)
22223 (scroll_line, w32_sys_ring_bell): Add frame arg.
22224 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
22225 Add terminal arg.
22226 (PICK_FRAME): Remove.
22227 (w32con_write_glyphs): Use frame specific terminal coding.
22228 (one_and_only_w32cons): New global variable.
22229 (initialize_w32_display): Use it for storing hooks.
22230 (create_w32cons_output): New function.
22231
22232 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
22233 arg a frame.
22234
22235 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
22236 Set window_system.
22237 (x_set_tool_bar_lines): Don't use updating_frame.
22238 (Fx_create_frame): Set terminal and ref count.
22239 (Fx_open_connection): Remove window-system check.
22240
22241 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
22242
22243 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
22244 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
22245 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
22246 Add frame arg.
22247 (x_delete_terminal, w32_create_terminal): New functions.
22248 (w32_term_init): Create a terminal.
22249 (w32_initialize): Move terminal specific initialization to
22250 w32_create_terminal.
22251
22252 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
22253 (w32_clear_rect, w32_clear_area): Use background from frame.
22254 (w32_display_info): Add terminal.
22255 (w32_sys_ring_bell, x_delete_display): Declare here.
22256
22257 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
22258
22259 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
22260
222612007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
22262
22263 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
22264 Fix get_named_tty calls for the controlling tty.
22265
222662007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
22267
194d44e7 22268 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
22269
222702007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
22271
22272 * term.c (tty_insert_glyphs): Add missing first parameter.
22273
222742007-08-29 Károly Lőrentey <karoly@lorentey.hu>
22275
22276 * buffer.c (Fbuffer_list, Fbury_buffer):
22277 Take frame->buried_buffer_list into account.
22278
22279 * cm.c (current_tty): New variable, for cmputc().
22280 (cmputc): Use it.
22281 (cmcheckmagic): Add tty parameter, look up terminal streams there.
22282 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
22283 (cmgoto): Add tty parameter. Pass it on to calccost().
22284 Use emacs_tputs() instead of tputs().
22285
22286 * cm.h (emacs_tputs): New macro to set current_tty, and then call
22287 tputs().
22288 (current_tty): New variable, for cmputc().
22289 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
22290
22291 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
22292 (internal_condition_case, internal_condition_case_1)
22293 (internal_condition_case_2): Don't abort when x_catching_errors.
22294
22295 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
22296 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
22297 prevent crashes caused by bogus longjmps in read_char.
22298
22299 * keymap.h (Fset_keymap_parent): Add EXFUN.
22300
22301 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
22302 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
22303 Remove redundant definition.
22304
22305 * macfns.c (x_set_mouse_color, x_make_gc):
22306 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22307
22308 * w32term.c (x_free_frame_resources):
22309 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22310 (w32_initialize): Use the accessor macros for terminal characteristics.
22311
22312 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
22313 Use the accessor macros for terminal characteristics.
22314 * msdos.c (internal_terminal_init): Use the accessor macros for
22315 terminal characteristics.
22316 (ScreenVisualBell, internal_terminal_init):
22317 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22318
22319 * termopts.h (no_redraw_on_reenter): Declare.
22320
22321 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
22322 (mark_terminals, mark_ttys): Declare.
22323 (Fgarbage_collect): Call them.
22324 (mark_object): Mark buried_buffer_list.
22325
22326 * prefix-args.c: Include stdlib.h for exit.
22327
22328 * syssignal.h: Add comment.
22329
22330 * indent.c: Include stdio.h.
22331
22332 * window.h (Vinitial_window_system): Declare.
22333 (Vwindow_system): Delete declaration.
22334
22335 * fontset.c (Finternal_char_font): Use FRAME_RIF.
22336
22337 * image.c (lookup_image): Don't initialize `c' until the xasserts
22338 have been run.
22339
22340 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
22341 FRAME_FOREGROUND_PIXEL.
22342
22343 * print.c (print_preprocess): Don't lose print_depth levels while
22344 iterating.
22345
22346 * widget.c (update_from_various_frame_slots):
22347 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22348
22349 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
22350 frames.
22351 (window_internal_height): Remove bogus make_number call.
22352 (init_window_once): Call make_terminal_frame with two zero parameters.
22353
22354 * fileio.c (Fread_file_name): Update comment.
22355
22356 * callint.c (Fcall_interactively):
22357 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
22358 Make sure it is correctly unwound.
22359
22360 * xsmfns.c (x_session_close): New function.
22361
22362 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
22363 Delete declarations.
22364
22365 * xterm.h: Remove declaration for x_fully_uncatch_errors.
22366 (x_output): Remove background_pixel and foreground_pixel fields.
22367 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
22368 (x_delete_device, x_session_close): Declare.
22369
22370 * lread.c: Include setjmp.h. Update declaration of `read_char'.
22371 (read_filtered_event): Call `read_char' with a local
22372 `wrong_kboard_jmpbuf'.
22373
22374 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
22375 Don't call single_kboard_state. Use FRAME_RIF.
22376
22377 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
22378 systems.
22379
22380 * lisp.h (set_process_environment): Rename to `set_global_environment'.
22381 (Fframe_with_environment, Fset_input_meta_mode)
22382 (Fset_quit_char): EXFUN.
22383 (x_create_device, tty_output, terminal, tty_display_info): Declare.
22384 (init_sys_modes, reset_sys_modes): Update prototypes.
22385 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
22386
22387 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
22388 Vlocal_key_translation_map, and Vkeyboard_translate_table.
22389 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
22390 Delete declarations.
22391 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
22392 (temporarily_switch_to_single_kboard, tty_read_avail_input):
22393 New declarations.
22394
22395 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
22396 already does that during init_display(). Call syms_of_keymap
22397 before syms_of_keyboard. Call `syms_of_terminal'.
22398 Call set_initial_environment, not set_process_environment.
22399 (shut_down_emacs): Call reset_all_sys_modes() instead of
22400 reset_sys_modes().
22401
22402 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
22403 (internal_resolve_face_name, resolve_face_name_error): New functions.
22404 (resolve_face_name): Protect against loops and errors thrown by Fget.
22405 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
22406 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
22407
22408 * scroll.c: Replace CURTTY() with local variables throughout the
22409 file (where applicable).
22410 (calculate_scrolling, calculate_direct_scrolling)
22411 (scrolling_1, scroll_cost): Use the accessor macros for terminal
22412 characteristics.
22413
22414 * keymap.c (Vfunction_key_map): Remove.
22415 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
22416 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
22417 (Vkey_translation_map): Remove.
22418 (syms_of_keymap): Remove DEFVAR for key-translation-map.
22419 (Fdescribe_buffer_bindings)
22420 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
22421 Update for terminal-local key-translation-map.
22422
22423 * Makefile.in (callproc.o): Update dependencies.
22424 (lisp, shortlisp): Add termdev.elc.
22425 (obj): Add terminal.o.
22426 (terminal.o): Add dependencies.
22427 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
22428 (data.o, fns.o): Add termhooks.h dependency.
22429 (SOME_MACHINE_LISP): Add dnd.elc.
22430 (minibuf.o): Fix typo.
22431 Update dependencies.
22432
22433 * data.c (do_symval_forwarding, store_symval_forwarding)
22434 (find_symbol_value): Use the selected frame's keyboard, not
22435 current_kboard.
22436
22437 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
22438 Vwindow_system.
22439
22440 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
22441 Fmenu_bar_open.
22442 (syms_of_xmenu): Update defsubr.
22443 (mouse_position_for_popup, Fx_popup_menu)
22444 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
22445 (set_frame_menubar, free_frame_menubar)
b97439ce 22446 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
22447 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
22448 an X frame.
22449
22450 * xselect.c (x_own_selection): Abort if not an X frame.
22451 (some_frame_on_display): Check if it is an X frame.
22452 (x_handle_selection_clear): Deal with MULTI_KBOARD.
22453
22454 * coding.c: Include frame.h and termhooks.h.
22455 (terminal_coding, keyboard_coding): Delete.
22456 (Fset_terminal_coding_system_internal)
22457 (Fset_keyboard_coding_system_internal)
22458 (Fkeyboard_coding_system)
22459 (Fterminal_coding_system): Add a terminal parameter.
22460 Get terminal_coding from the terminal.
22461 (init_coding_once): Don't call setup_coding_system here.
22462
22463 * dispextern.h (set_scroll_region, turn_off_insert)
22464 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
22465 (tty_clear_end_of_line, tty_setup_colors)
22466 (delete_tty, updating_frame)
22467 (produce_special_glyphs, produce_glyphs, write_glyphs)
22468 (insert_glyphs): Remove.
22469 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
22470 (tty_turn_off_highlight, get_tty_size): Add declaration.
22471 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
22472
22473 * frame.h (enum output_method): Add output_initial.
22474 (struct x_output): Delete.
22475 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
22476 Access foreground_pixel and background_pixel directly from the frame.
22477 (tty_display): Delete.
22478 (struct frame): Add buried_buffer_list, foreground_pixel,
22479 background_pixel and terminal. Delete kboard.
22480 (union output_data): Add tty.
22481 (FRAME_KBOARD): Get the kboard from the terminal.
22482 (FRAME_INITIAL_P): New macro.
22483 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
22484 (Qterm_environment_variable, Qdisplay_environment_variable)
22485 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
22486 New declarations.
22487
22488 * termchar.h (tty_output, tty_display_info): New structures.
22489 (tty_list): Declare.
22490 (FRAME_TTY, CURTTY): New macros.
22491 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
22492 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
22493 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
22494 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
22495
22496 * callproc.c: Include frame.h and termhooks.h, for terminal
22497 parameters.
22498 (add_env): New function.
22499 (child_setup): Use it.
22500 (child_setup, getenv_internal): Handle the new Vprocess_environment.
22501 (getenv_internal): Fix get_terminal_param call.
22502 (Fgetenv_internal, egetenv): Update doc.
22503 (syms_of_callproc): Initialize Vprocess_environment to nil.
22504 Register and initialize them. Remove obsolete defvars. Update doc
22505 strings.
22506 (child_setup): Handle Vlocal_environment_variables.
22507 (getenv_internal): Add terminal parameter.
22508 Handle Vlocal_environment_variables.
22509 (Fgetenv_internal): Add terminal parameter.
22510 (child_setup, getenv_internal, Fgetenv_internal): Store the local
22511 environment in a frame (not terminal) parameter. Update doc strings.
22512 (set_initial_environment): Rename from set_global_environment.
22513 Store Emacs environment in initial frame parameter.
22514
22515 * xdisp.c (redisplay_internal): Update references to
22516 `previous_terminal_frame'.
22517 (display_mode_line, Fformat_mode_line): Replace calls to
22518 `push_frame_kboard' with `push_kboard'.
22519 (get_glyph_string_clip_rects): Add extra parentheses and
22520 braces to prevent compiler warnings.
22521 (calc_pixel_width_or_height): Add xassert to check that the
22522 frame is alive. Don't call `lookup_image' on a termcap frame.
22523 (message2_nolog, message3_nolog, redisplay_internal)
22524 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
22525 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
22526 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
22527 (Fx_display_pixel_width, Fx_display_pixel_height)
22528 (Fx_display_planes, Fx_display_color_cells)
22529 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
22530 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
22531 (Fx_display_backing_store, Fx_display_visual_class)
22532 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
22533 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
22534
22535 * xfns.c (x_set_foreground_color x_set_background_color)
22536 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
22537 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22538 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
22539 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
22540 terminal that is being deleted.
22541 (Fx_create_frame): Use `store_frame_param' to set `window-system'
22542 frame parameter, and make sure it overrides any user-supplied setting.
22543 (Fx_close_connection, Fx_synchronize): Unify argument names with
22544 the rest of the DEFUNs.
22545
22546 * dispnew.c (Fsend_string_to_terminal): Update call to
22547 `get_tty_terminal'.
22548 (Fredraw_frame, Fsend_string_to_terminal)
22549 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
22550 FRAME_TERMCAP_P and FRAME_TTY.
22551 (window_change_signal): Don't believe width/height values that are
22552 impossibly small.
22553 (Vinitial_window_system): Rename from Vwindow_system.
22554 (termscript, Wcm, rif): Delete.
22555
22556 * termhooks.h (struct terminal): New struct containing the
22557 previously global text display hooks and new members NAME,
22558 DELETED and PARAM_ALIST.
22559 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
22560 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
22561 (FRAME_RIF): New macros.
22562 (get_terminal_param, get_device): New declarations.
22563 (termscript): Delete declaration.
22564
22565 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
22566 (XTflash, x_free_frame_resources, x_scroll_bar_create)
22567 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
22568 FRAME_FOREGROUND_PIXEL.
22569 (x_fully_uncatch_errors): Disable definition.
22570 (x_scroll_bar_expose): Fix reference to foreground pixel.
22571 (XTread_socket): Disable loop on all X displays.
22572 (x_delete_terminal): Don't set terminal->deleted and let
22573 delete_terminal delete the frames on the terminal.
22574 (x_delete_display): Doc update to reflect changes in
22575 delete_terminal.
22576 (x_display_info) <terminal>: Move member earlier in the struct.
22577 (deleting_tty): Remove old variable.
22578 (Fsuspend_tty): Call clear_tty_hooks.
22579 (Fresume_tty, init_tty): Call set_tty_hooks.
22580 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
22581 errors on X frames.
22582 (x_catch_errors_unwind): Abort if x_error_message is NULL.
22583 (handle_one_xevent): Initialize `f' to NULL.
22584 (x_delete_terminal, x_create_terminal): New functions.
22585 (XTset_terminal_modes, XTreset_terminal_modes)
22586 (XTread_socket, x_connection_closed, x_term_init)
22587 (x_term_init, x_delete_display): Add terminal parameter.
22588 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
22589 X connections.
22590
22591 * frame.c: Include termchar.h.
22592 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
22593 (Qwindow_system, Qenvironment, Qterm_environment_variable)
22594 (Qdisplay_environment_variable): New vars.
22595 (Fframep): Deal with output_initial.
22596 (Fframe-live-p): Doc fix.
22597 (Fwindow-system): New function.
22598 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
22599 (make_terminal_frame): Don't create frames on a terminal that is
22600 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22601 (store_frame_param): Check for found_for_frame before calling XFRAME.
22602 (Fmake_terminal_frame): Handle NULL tty names correctly.
22603 (syms_of_frame): Enhance doc string of `default-frame-alist'.
22604 (Fdelete_frame): Remove unused variable `count'. Don't allow other
22605 frames to refer to a deleted frame in their 'environment parameter.
22606 (Fframe_with_environment): New function.
22607 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
22608 (get_future_frame_param): New function.
22609 (Fmake_terminal_frame): Use it.
22610 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
22611
22612 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
22613 * sysdep.c (reset_sys_modes): Update for renames.
22614
22615 * keyboard.c (tty_read_avail_input): New function.
22616 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
22617 (syms_of_keyboard): Defsubr them.
22618 (Fset_input_meta_mode, Fset_quit_char): New functions.
22619 (Fset_input_mode): Split to above functions.
22620 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
22621 parameter. Use it in call to `read_char'.
22622 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
22623 Set wrong_kboard_jmpbuf correctly in recursive calls.
22624 Use current_kboard to access Vkeyboard_translate_table.
22625 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
22626 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
22627 Update longjmp invocations. Remember the original current_kboard,
22628 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
22629 changes it. Comment out unnecessary calls to
22630 `record_single_kboard_state' and `any_kboard_state'.
22631 Update recursive calls.
22632 (wrong_kboard_jmpbuf): Remove global variable.
22633 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
22634 Handle deleted interrupted_kboards correctly; that is a legal
22635 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
22636 and read_char calls. Abort if interrupted_kboard died in read_char.
22637 (any_kboard_state, single_kboard_state)
22638 (push_frame_kboard): Remove function.
22639 (pop_kboard): Switch out of single_kboard mode if the kboard has
22640 been deleted. Remove unused variable. Help debugging by not
22641 changing current_kboard unnecessarily. Set current_kboard to the
22642 kboard of the selected frame when the stored kboard object has
22643 been deleted before pop_kboard.
22644 (temporarily_switch_to_single_kboard): Change first parameter to a
22645 frame pointer. Throw an error when caller wants to change kboards
22646 while in single_kboard mode. Don't push_kboard if we weren't in
22647 single kboard state. Don't pop_kboard if we popped into any
22648 kboard state.
22649 (restore_kboard_configuration): Abort if pop_kboard changed the
22650 kboard in single_kboard mode. Call pop_kboard only after setting
22651 up single_kboard mode.
22652 (Frecursive_edit): Switch to single_kboard mode only in nested
22653 command loops.
22654 (cmd_error, command_loop, command_loop_1, timer_check):
22655 Comment out unnecessary call to `any_kboard_state' and
22656 `record_single_kboard_state'.
22657 (delete_kboard): Exit single_kboard mode if we have just deleted
22658 that kboard. Use FRAME_KBOARD.
22659 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
22660 `fatal_error_signal'.
22661 (record_single_kboard_state): Don't push_kboard if we weren't in
22662 single kboard state. Don't pop_kboard if we popped into any
22663 kboard state.
22664 (push_frame_kboard): Rename to push_kboard.
22665 (kbd_buffer_get_event): Use FRAME_TERMINAL.
22666 (read_avail_input): Read input from all terminals.
22667 (mark_kboards): Also mark Vkeyboard_translate_table.
22668 (kbd_buffer_store_event_hold): Simplify condition.
22669 (read_key_sequence): Reinitialize fkey and keytran at each replay.
22670 (Vkeyboard_translate_table): Move to struct kboard.
22671 (init_kboard): Initialize Vkeyboard_translate_table.
22672 (syms_of_keyboard): Use DEFVAR_KBOARD to define
22673 Vkeyboard_translate_table. Update doc strings. Update docs of
22674 local-function-key-map and function-key-map.
22675
22676 * terminal.c: New file.
22677
22678 * term.c: Include errno.h.
22679 (Vring_bell_function, device_list, initial_device)
22680 (next_device_id, ring_bell, update_begin, update_end)
22681 (set_terminal_window, cursor_to, raw_cursor_to)
22682 (clear_to_end, clear_frame, clear_end_of_line)
22683 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
22684 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
22685 (syms_of_term): Move their initialization to terminal.c.
22686 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
22687 (Ftty_display_color_cells)
22688 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
22689 (clear_tty_hooks, set_tty_hooks)
22690 (init_tty, maybe_fatal): New functions.
22691 (Ftty_type): Return nil if terminal is not on a tty instead of
22692 throwing an error. Doc update.
22693 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
22694 Doc update. Initialize new subrs and variables.
22695 (delete_tty): Use terminal->deleted.
22696 (tty_set_terminal_modes): Rename from set_terminal_modes.
22697 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
22698 (set_scroll_region): Rename to `tty_set_scroll_region'.
22699 (turn_on_insert): Rename to `tty_turn_on_insert'.
22700 (turn_off_insert): Rename to `tty_turn_off_insert'.
22701 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
22702 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
22703 (toggle_highligh): Rename to `tty_toggle_highlight'.
22704 (background_highlight): Rename to `tty_background_highlight'.
22705 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
22706 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
22707 (tty_set_scroll_region, tty_background_highlight)
22708 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
22709 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
22710 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
22711 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
22712 Add static modifier.
22713 (tty_reset_terminal_modes, tty_set_terminal_window)
22714 (tty_set_scroll_region, tty_background_highlight)
22715 (tty_highlight_if_desired, tty_cursor_to)
22716 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
22717 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
22718 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
22719 renames.
22720
227212007-08-28 Jan Djärv <jan.h.d@swipnet.se>
22722
22723 * keyboard.c: Qrtl is new.
22724 (parse_tool_bar_item): Handle :rtl keyword.
22725 (syms_of_keyboard): Intern :rtl keyword.
22726
22727 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
22728
22729 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
22730 so no Lisp code is executed.
22731 (file_for_image, find_rtl_image): New functions.
22732 (xg_get_image_for_pixmap): Use file_for_image.
22733 (update_frame_tool_bar): If direction is RTL, use RTL image if
22734 defined. Use Gtk stock images if defined.
22735
227362007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22737
22738 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
22739 for nonexistent or zero-width glyph in composition glyph.
22740
227412007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
22742
22743 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
22744
22745 * xdisp.c (Finvisible_p): New function.
22746 (syms_of_xdisp): defsubr it.
22747
227482007-08-24 Juanma Barranquero <lekktu@gmail.com>
22749
22750 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
22751 Doc fixes.
22752
227532007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22754
22755 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
22756
227572007-08-24 Martin Rudalics <rudalics@gmx.at>
22758
22759 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
22760 whether decoding has modified buffer contents.
22761
227622007-08-24 Jason Rumney <jasonr@gnu.org>
22763
22764 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
22765 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
22766 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
22767 (init_svg_functions) [HAVE_NTGUI]: New function.
22768 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
22769 (svg_load_image): Use them.
22770 (svg_load_image) [HAVE_NTGUI]: Implement background.
22771
227722007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22773
22774 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
22775 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
22776 (LIBX): Remove @RSVG_LIBS@.
22777 (LIBES): Add $(RSVG_LIBS).
22778
22779 * image.c (svg_load_image): Blend with specified background if exists.
22780 Use IMAGE_BACKGROUND. Add Mac OS Support.
22781
22782 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
22783 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
22784 Remove macros.
22785 [MAC_OSX] (socket_callback): Do nothing.
22786 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
22787 ReceiveNextEvent.
22788 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
22789 socket_callback.
22790 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
22791
227922007-08-22 Glenn Morris <rgm@gnu.org>
22793
22794 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
22795
227962007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
22797
22798 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
22799
22800 * image.c: Add support for SVG images. Some additional comments
22801 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
22802 (svg_image_p): New function to test for SVG image.
22803 (svg_load): New function to load SVG image.
22804 (svg_load_image): New function, helper for svg_load.
22805 (Qsvg): New Lisp_object.
22806 (svg_keyword_index): New enum.
22807 (svg_format): New static `image_keyword' struct.
22808 (svg_type): New static `image_type' struct.
22809 (librsvg/rsvg.h): Include it.
22810
228112007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
22812
22813 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
22814
228152007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
22816
22817 * lread.c (Qold_style_backquotes): New var.
22818 (syms_of_lread): Init and staticpro it.
22819 (load_warn_old_style_backquotes): New fun.
22820 (Fload): Use them to warn about old style backquotes.
22821 (end_of_file_error, Fload): Remove unused vars.
22822
22823 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
22824
22825 * lread.c (Vold_style_backquotes): New var.
22826 (syms_of_lread): Init and export it to Elisp.
22827 (read1): Set it when we find an old-style (back)quote.
22828
228292007-08-22 Jason Rumney <jasonr@gnu.org>
22830
22831 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
22832
228332007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
22834
22835 * puresize.h (BASE_PURESIZE): Increase to 1140000.
22836
228372007-08-19 Richard Stallman <rms@gnu.org>
22838
22839 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
22840
228412007-08-19 Andreas Schwab <schwab@suse.de>
22842
22843 * alloc.c (pure): Round PURESIZE up.
22844
228452007-08-17 Jan Djärv <jan.h.d@swipnet.se>
22846
22847 * xterm.c (handle_one_xevent): Remove check that mouse click is in
22848 active frame.
22849
228502007-08-16 Richard Stallman <rms@gnu.org>
22851
22852 * eval.c (Fcommandp): Add parens to clarify.
22853
22854 * minibuf.c (Fall_completions): Use enum for type of table.
22855
22856 * emacs.c (USAGE2): Improve text.
22857
228582007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
22859
22860 * term.c (tty_default_color_capabilities): Declare static
22861 variables in file scope, to avoid HPUX compiler problem.
22862
228632007-08-13 Jan Djärv <jan.h.d@swipnet.se>
22864
22865 * gtkutil.c (update_frame_tool_bar): Use -1 as index
22866 to gtk_toolbar_insert.
22867
228682007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
22869
22870 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
22871
22872 * insdel.c (reset_var_on_error): New fun.
22873 (signal_before_change, signal_after_change):
22874 Use it to reset (after|before)-change-functions to nil in case of error.
22875 Bind inhibit-modification-hooks to t.
22876 Don't bind (after|before)-change-functions to nil while they run.
22877
228782007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22879
22880 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
22881 filling pixmap with stippled background.
22882
228832007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22884
22885 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
22886 Don't use invisible frame as parent window for repositioning.
22887
228882007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
22889
22890 * print.c (new_backquote_output): Rename from old_backquote_output.
22891 (print): Inverse its logic (according to its name) so as to match the
22892 behavior of new_backquote_flag in lread.c.
22893
228942007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22895
22896 * gmalloc.c (posix_memalign): New function.
22897
22898 * macterm.c (frame_highlight, frame_unhighlight): Don't call
22899 ActivateControl/DeactivateControl here.
22900 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
22901 frame-notice-user-settings is non-nil.
22902 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
22903 for kEventParamFMFontStyle.
22904 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
22905 mac_pass_command_to_system and mac_pass_control_to_system here.
22906 (XTread_socket): Call ActivateControl/DeactivateControl here.
22907 (XTread_socket) [TARGET_API_MAC_CARBON]:
22908 Check mac_pass_command_to_system and mac_pass_control_to_system here.
22909 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
22910 for window repositioning.
22911
229122007-08-08 Glenn Morris <rgm@gnu.org>
22913
22914 * Replace `iff' in doc-strings and comments.
22915
229162007-08-07 Chong Yidong <cyd@stupidchicken.com>
22917
22918 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
22919
229202007-08-07 Martin Rudalics <rudalics@gmx.at>
22921
22922 * fileio.c (Finsert_file_contents): Run format-decode and
22923 after_insert_file_functions on entire buffer when REPLACE is
22924 non-nil and inhibit modification_hooks and point_motion_hooks.
22925 For consistency, run after_insert_file_functions iff something
22926 got inserted. Move signal_after_change and update_compositions
22927 after code running after_insert_file_functions. Make sure that
22928 undo_list doesn't record intermediate steps of the decoding process.
22929
229302007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22931
22932 * emacs.c (main)
22933 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
22934 Call malloc_enable_thread on interactive startup.
22935
22936 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
22937 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
22938 [USE_PTHREAD]: Conditionalize with it.
22939 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
22940 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
22941 New functions.
22942
229432007-08-06 Chong Yidong <cyd@stupidchicken.com>
22944
22945 * xdisp.c (redisplay_window): When restoring original buffer
22946 position, make sure it is still valid.
22947
22948 * image.c (png_load): Ignore png-supplied background color.
22949
229502007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22951
22952 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
22953 Use kCFAbsoluteTimeIntervalSince1970.
22954
22955 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
22956 New variable.
22957 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
22958 event loop should be quit.
22959 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
22960 Quit dialog event loop if quit_dialog_event_loop is set.
22961
22962 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
22963 (Selection): New typedef. Use instead of ScrapRef.
22964 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
22965 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
22966 (mac_clear_selection): Rename from clear_scrap.
22967 (get_flavor_type_from_symbol): New argument SEL and subsume function of
22968 scrap_has_target_type. All uses changed.
22969 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
22970 (mac_selection_has_target_p): New functions.
22971 (mac_put_selection_value): Rename from put_scrap_string.
22972 (mac_get_selection_value): Rename from get_scrap_string.
22973 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
22974 (put_scrap_private_timestamp, scrap_has_target_type)
22975 (get_scrap_private_timestamp): Remove functions.
22976 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
22977 (x_own_selection, x_get_local_selection):
22978 Use mac_valid_selection_value_p.
22979 (x_own_selection): Don't use put_scrap_private_timestamp.
22980 Record OWNERSHIP-INFO into Vselection_alist instead.
22981 (x_get_local_selection): Don't check type if request is local.
22982 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
22983 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
22984
229852007-08-04 Jan Djärv <jan.h.d@swipnet.se>
22986
22987 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
22988 add comment explaining why.
22989
229902007-08-03 Richard Stallman <rms@gnu.org>
22991
22992 * fileio.c (Fvisited_file_modtime): Use make_time.
22993
229942007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
22995
22996 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
22997 build.
22998
229992007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
23000
23001 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
23002
230032007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
23004
23005 * puresize.h (BASE_PURESIZE): Increase to 1130000.
23006
230072007-07-30 Richard Stallman <rms@gnu.org>
23008
23009 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
23010
230112007-07-29 Jan Djärv <jan.h.d@swipnet.se>
23012
23013 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
23014
230152007-07-28 Nick Roberts <nickrob@snap.net.nz>
23016
23017 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
23018 remote default-directory.
23019
23020 * buffer.c (mode-line-format): Update doc string.
23021
230222007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23023
23024 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
23025 scroll bar gap.
23026 (x_scroll_bar_create): Set bar->fringe_extended_p.
23027 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
23028 on frame edge. Check fringe background extension. Don't clear
23029 extended fringe background area.
23030
23031 * w32term.h (struct scroll_bar): New member fringe_extended_p.
23032 (w32_fill_area): Enclose multiple statements with do ... while (0).
23033
23034 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
23035 Extend fringe background to scroll bar gap.
23036 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
23037 Set bar->fringe_extended_p.
23038 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
23039 Put leftmost/rightmost scroll bars on frame edge. Check fringe
23040 background extension. Don't clear extended fringe background area.
23041
23042 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
23043 New member fringe_extended_p.
23044
230452007-07-25 Glenn Morris <rgm@gnu.org>
23046
23047 * Relicense all FSF files to GPLv3 or later.
23048
23049 * COPYING: Switch to GPLv3.
23050
230512007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
23052
23053 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
23054
23055 * data.c (Finteractive_form): Check for the presence of an
23056 `interactive-form' symbol property more thoroughly.
23057
23058 * data.c (Finteractive_form): Use an `interactive-form' property if
23059 present, analogous to the function-documentation property.
23060
230612007-07-24 Jason Rumney <jasonr@gnu.org>
23062
23063 * w32fns.c (x_real_positions): Get real position from OS instead of
23064 calculating it.
23065
230662007-07-23 Jason Rumney <jasonr@gnu.org>
23067
23068 * filelock.c (current_lock_owner): Allow for @ sign in username.
23069
230702007-07-22 Nick Roberts <nickrob@snap.net.nz>
23071
23072 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
23073 remote default-directory.
23074
23075 * buffer.c (mode-line-format): Describe above case in doc string.
23076
230772007-07-20 Eli Zaretskii <eliz@gnu.org>
23078
23079 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
23080 Define if not defined.
23081
230822007-07-18 Jason Rumney <jasonr@gnu.org>
23083
23084 * w32proc.c (w32_executable_type): Handle 64 bit executables.
23085
230862007-07-18 Richard Stallman <rms@gnu.org>
23087
23088 * data.c (Fsetq_default): Doc fix.
23089
23090 * eval.c (Fsetq): Doc fix.
23091
230922007-07-18 Juanma Barranquero <lekktu@gmail.com>
23093
23094 * coding.c (Ffind_operation_coding_system):
23095 * eval.c (For, Fand): Doc fixes.
23096 Reported by Johan Bockgård.
23097
230982007-07-18 Jan Djärv <jan.h.d@swipnet.se>
23099
23100 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
23101
23102 * xterm.h: Declare x_ewmh_activate_frame.
23103
23104 * xterm.c (x_ewmh_activate_frame): New function.
23105 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
23106
231072007-07-17 Martin Rudalics <rudalics@gmx.at>
23108
23109 * window.c (Fdisplay_buffer): If largest or LRU window is the
23110 only window, split it even if it is not eligible for splitting.
23111 This restores the original behavior broken by the 2007-07-15
23112 change.
23113
231142007-07-17 Glenn Morris <rgm@gnu.org>
23115
23116 * abbrev.c (abbrev_check_chars): New function.
23117 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
23118 Call abbrev_check_chars to check abbrev characters are word
23119 constituents. Doc fix.
23120
231212007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
23122
23123 * process.c (Fstart_process, Fmake_network_process)
23124 (read_process_output): Fix up last changes.
23125
231262007-07-16 Eli Zaretskii <eliz@gnu.org>
23127
23128 * makefile.w32-in (clean): Don't delete *~.
23129
231302007-07-16 Andreas Schwab <schwab@suse.de>
23131
23132 * window.c (Fdisplay_buffer): Use NILP.
23133 (Fset_window_scroll_bars): Likewise.
23134
231352007-07-15 Martin Rudalics <rudalics@gmx.at>
23136
23137 * window.c (window_min_size_2): New function.
23138 (window_min_size_1, size_window, Fdisplay_buffer)
23139 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
23140 windows without mode- or header-lines when window-min-height is
23141 too small.
23142 (size_window): Reset nodelete_p after testing it, following an
23143 earlier note by Kim F. Storm.
23144 (display_buffer): Do not set split_height_threshold to twice the
23145 value of window_min_height to avoid changing the value of a
23146 customizable variable. Rather explicitly check whether the
23147 height of the window that shall be splitted is at least as large
23148 as split_height_threshold.
23149 (Fwindow_full_width_p): New defun.
23150 (syms_of_window): Defsubr it.
23151
23152 * window.h: Add EXFUN for Fwindow_full_width_p.
23153
231542007-07-14 Jason Rumney <jasonr@gnu.org>
23155
23156 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
23157
231582007-07-14 Richard Stallman <rms@gnu.org>
23159
23160 * eval.c (maybe_call_debugger): New function.
23161 (find_handler_clause): Use maybe_call_debugger.
23162 Call it when the handler says `debug'.
23163 Eliminate DEBUGGER_VALUE_PTR.
23164 (Fsignal): Eliminate debugger_value.
23165 (Qdebug): New variable.
23166 (syms_of_eval): Initialize it.
23167
231682007-07-14 Juanma Barranquero <lekktu@gmail.com>
23169
23170 * eval.c (Fprogn):
23171 * keyboard.c (Ftrack_mouse):
23172 * print.c (Fwith_output_to_temp_buffer):
23173 * window.c (Fsave_window_excursion): Doc fix.
23174
231752007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
23176
23177 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
23178
231792007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
23180
23181 * process.h (struct Lisp_Process): Turn slots infd, outfd,
23182 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
23183 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
23184 read_output_delay, and read_output_skip from Lisp_Objects to ints.
23185 Remove unused encoding_carryover.
23186 * process.c: Adjust all functions accordingly.
23187
231882007-07-12 Richard Stallman <rms@gnu.org>
23189
23190 * term.c: Include unistd.h only if HAVE_UNISTD_H.
23191
231922007-07-11 Jason Rumney <jasonr@gnu.org>
23193
23194 * makefile.w32-in (LIBS): Include OLE32.
23195
23196 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
23197 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
23198
231992007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
23200
23201 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
23202 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
23203 from a Lisp_Object into a bare pointer.
23204 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
23205 Adjust the code correspondingly.
23206
23207 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
23208
23209 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
23210 (term_show_mouse_face): Remove unused var `j'.
23211 (handle_one_term_event): Remove unused vars `i' and `j'.
23212 Don't cast return value of ttyname since it's not necessary.
23213
232142007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
23215
23216 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
23217 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
23218
23219 * fns.c (map_char_table): Use an array of int for `indices' rather than
23220 an array of Lisp_Objects (which are only ever integers anyway).
23221 (Fmap_char_table): Update caller.
23222 * lisp.h: Update prototype.
23223 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
23224 * fontset.c (Ffontset_info):
23225 * casetab.c (set_case_table): Update callers.
23226
23227 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
23228
23229 * keymap.c (struct accessible_keymaps_data)
23230 (struct where_is_internal_data): New structures.
23231 (accessible_keymaps_1, where_is_internal_1): Use them to change
23232 interface to adhere to the one used by map_keymap.
23233 (Faccessible_keymaps, where_is_internal): Use map_keymap.
23234 (accessible_keymaps_char_table, where_is_internal_2): Remove.
23235
23236 * keymap.h (map_keymap_function_t): More informative prototype.
23237
232382007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
23239
23240 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
23241 (looking_at_1): Don't change search_regs and last_thing_searched
23242 if `inhibit-changing-match-data' is non-nil.
23243 (string_match_1, search_buffer, set_search_regs): Likewise.
23244 (syms_of_search): Add Lisp level definition for
23245 `inhibit-changing-match-data' and set it to nil.
23246 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
23247 start and end of the match, instead of using values in search_regs.
23248
232492007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
23250
23251 * minibuf.c (Fcompleting_read): New value `confirm-only'
23252 for `require-match'.
23253
232542007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
23255
23256 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
23257 part of the 2007-06-27 change to syms_of_fileio.
23258
232592007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23260
23261 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
23262 Check WINDOWP before using XWINDOW. Consolidate return statements.
23263
232642007-06-27 Richard Stallman <rms@gnu.org>
23265
23266 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
23267
232682007-06-27 Juanma Barranquero <lekktu@gmail.com>
23269
23270 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
23271
232722007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23273
23274 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
23275 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
23276 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
23277 (_free_internal, memalign): Use them.
23278 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
23279 Initialize to PTHREAD_MUTEX_INITIALIZER.
23280 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
23281 (morecore_nolock): Rename from morecore. All uses changed.
23282 Use only nolock versions of internal allocation functions.
23283 (_malloc_internal_nolock, _realloc_internal_nolock)
23284 (_free_internal_nolock): New functions created from
23285 _malloc_internal, _realloc_internal, and _free_internal.
23286 (_malloc_internal, _realloc_internal, _free_internal): Use them.
23287 Copy hook value to automatic variable before its use.
23288 (memalign): Copy hook value to automatic variable before its use.
23289
232902007-06-26 Kenichi Handa <handa@m17n.org>
23291
23292 * coding.c (Ffind_operation_coding_system): Docstring improved.
23293 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
23294
232952007-06-25 David Kastrup <dak@gnu.org>
23296
23297 * keymap.c (Fcurrent_active_maps): Add `position' argument.
23298 (Fwhere_is_internal): Adjust call to `current-active-maps' to
23299 cater for additional parameter.
23300
23301 * keymap.h: Adjust number of parameters to `current-active-maps'.
23302
23303 * doc.c (Fsubstitute_command_keys): Adjust call of
23304 `current-active-maps'.
23305
233062007-06-25 David Kastrup <dak@gnu.org>
23307
23308 * callint.c (Fcall_interactively): Make the parsing of interactive
23309 specs somewhat more readable.
23310
233112007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23312
23313 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
23314 to scroll bar gap also when bitmap fills fringe. Draw only foreground
23315 if extended background has already been filled.
23316
233172007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23318
23319 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
23320 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
23321
23322 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
23323 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
23324 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
23325 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
23326 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
23327 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
23328 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
23329 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
23330 Run timers during dialog popup.
23331 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
23332
233332007-06-21 Jason Rumney <jasonr@gnu.org>
23334
23335 * image.c (convert_mono_to_color_image): Swap fore and background.
23336
233372007-06-20 Jason Rumney <jasonr@gnu.org>
23338
23339 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
23340 (w32_free_bdf_font): Unmap memory not handle.
23341
233422007-06-20 Sam Steingold <sds@gnu.org>
23343
23344 * gmalloc.c (__morecore): Fix the declaration to comply with the
23345 definition.
23346
233472007-06-20 Juanma Barranquero <lekktu@gmail.com>
23348
23349 * w32term.c (w32_delete_display): Remove leftover declaration.
23350 (w32_define_cursor, w32_initialize): Make static.
23351
23352 * w32.c (_wsa_errlist): Fix typo in error message.
23353 (init_environment): Ignore any environment variable from the
23354 registry having a null value.
23355
233562007-06-20 Glenn Morris <rgm@gnu.org>
23357
23358 * Makefile.in (LIBGIF): Default to -lgif.
23359
233602007-06-17 Jason Rumney <jasonr@gnu.org>
23361
23362 * w32menu.c (add_menu_item): Don't use multibyte string functions on
23363 unicode strings.
23364
233652007-06-16 Juanma Barranquero <lekktu@gmail.com>
23366
23367 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
23368 Fix typo in docstring.
23369
233702007-06-16 Eli Zaretskii <eliz@gnu.org>
23371
23372 * w32menu.c (add_menu_item): Escape `&' characters in menu items
23373 and their keybindings.
23374
233752007-06-15 Chong Yidong <cyd@stupidchicken.com>
23376
23377 * composite.c (update_compositions): Fix last fix.
23378
233792007-06-14 Jason Rumney <jasonr@gnu.org>
23380
23381 * w32.c (get_process_times_fn): New function pointer.
23382 (globals_of_w32): Intialize it if present in kernel32.dll.
23383 (w32_get_internal_run_time): New function.
23384
23385 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
23386
233872007-06-14 Kenichi Handa <handa@etlken.m17n.org>
23388
23389 * composite.c (update_compositions): Check the validness of
23390 compositions.
23391
233922007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23393
23394 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
23395 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
23396
23397 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
23398 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
23399
23400 * macgui.h (USE_MAC_TOOLBAR): New define.
23401
23402 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
23403 Return immediately unless popup is activated.
23404
23405 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
23406 background to scroll bar gap.
23407 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
23408 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
23409 scroll bars on frame edge. Check fringe background extension.
23410 Don't clear extended fringe background area.
23411 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
23412 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
23413 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
23414 [USE_MAC_TOOLBAR]: New macros.
23415 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
23416 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
23417 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
23418 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
23419 [USE_MAC_TOOLBAR]: New functions.
23420 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
23421 manually if previous repositioning has failed.
23422 (mac_handle_keyboard_event): Use precomputed event kind.
23423 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
23424 as tool bar item click. Handle mouse movement over tool bar items.
23425
23426 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
23427 toolbar_win_gravity.
23428 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
23429 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
23430 Add externs.
23431
23432 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
23433 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
23434
234352007-06-14 Chong Yidong <cyd@stupidchicken.com>
23436
23437 * image.c (search_image_cache): Remove unused variable.
23438
234392007-06-13 Chong Yidong <cyd@stupidchicken.com>
23440
23441 * xfns.c, xmenu.c: Link to xaw3d if available.
23442
234432007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23444
23445 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
23446 frame_foreground and frame_background.
23447
23448 * image.c (lookup_image): Save frame foreground and background colors.
23449 (search_image_cache): Check if saved and current frame colors match.
23450
234512007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
23452
23453 * regex.c (regex_compile): Remove the `regnum' counter.
23454 Use bufp->re_nsub instead. Add support for \(?N:RE\).
23455
234562007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
23457
23458 * term.c: Include intervals.h to declare Fget_text_property.
23459
234602007-06-10 Jason Rumney <jasonr@gnu.org>
23461
23462 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
23463
234642007-06-08 Juanma Barranquero <lekktu@gmail.com>
23465
23466 * callint.c (Fcall_interactively):
23467 * editfns.c (Fdelete_and_extract_region):
23468 * fileio.c (Fread_file_name):
23469 * fns.c (Fmapconcat):
23470 * keyboard.c (cmd_error_internal):
23471 * keymap.c (Fkey_description):
23472 * lread.c (openp):
23473 * minibuf.c (read_minibuf):
23474 * search.c (wordify):
23475 * sunfns.c (sel_read):
23476 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
23477 * xfns.c (x_default_scroll_bar_color_parameter):
23478 * xmenu.c (menu_help_callback):
23479 * xselect.c (Fx_get_atom_name):
23480 * xterm.c (x_term_init): Use empty_unibyte_string.
23481
234822007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
23483
23484 * alloc.c (init_strings): Initialize canonical empty strings.
23485 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
23486 canonical empty string when the requested size is 0.
23487
23488 * emacs.c (empty_unibyte_string): Rename from empty_string.
23489 (empty_multibyte_string): New canonical empty string.
23490 (syms_of_emacs): Don't initialize empty_string.
23491
23492 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
23493 string, if appropriate.
23494 (empty_unibyte_string, empty_multibyte_string): New externs.
23495 (empty_string): Remove extern.
23496
23497 * lread.c (syms_of_lread): Use empty_unibyte_string.
23498
234992007-06-07 Jason Rumney <jasonr@gnu.org>
23500
23501 * s/ms-w32.h: Don't define HAVE_TZNAME.
23502
23503 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
23504
235052007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23506
23507 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
23508
23509 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
23510 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
23511
23512 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
23513 Don't call next handler.
23514 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
23515 Remove argument. Install handler to application.
23516 (set_frame_menubar): Don't change deep_p.
23517 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
23518 FRAME_OUTER_TO_INNER_DIFF_Y.
23519 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
23520 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
23521 [HAVE_DIALOGS]: New macros.
23522 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
23523 Use them.
23524 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
23525
23526 * macselect.c [MAC_OSX] (install_service_handler): Rename from
23527 init_service_handler. All callers changed. Return OSStatus value.
23528
23529 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
23530 All callers changed so as not to call SetPortWindowPort.
23531 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
23532 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
23533 mac_draw_string_common.
23534 (mac_draw_image_string_qd): Likewise.
23535 (mac_draw_string_common): Use them. Add INLINE.
23536 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
23537 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
23538 GetGlobalMouse.
23539 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
23540 and FRAME_OUTER_TO_INNER_DIFF_Y.
23541 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
23542 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
23543 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
23544 repositioning window to mac_handle_window_event.
23545 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
23546 saving window location to mac_handle_window_event
23547 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
23548 (install_menu_target_item_handler): Remove argument in extern.
23549 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
23550 Also accept command events.
23551 (do_keystroke): New function created from XTread_socket.
23552 (init_command_handler): Remove functions.
23553 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
23554 and save window location by kEventWindowShowing and kEventWindowHiding
23555 handlers here. Don't call next handler for window state change and
23556 focus events.
23557 (mac_handle_application_event, mac_handle_keyboard_event)
23558 [TARGET_API_MAC_CARBON]: New functions.
23559 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
23560 kEventWindowShowing and kEventWindowHiding events. Move installation
23561 of mouse, font, text input and menu target item handlers to
23562 install_application_handler.
23563 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
23564 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
23565 New function.
23566 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
23567 Register it.
23568 (XTread_socket) [TARGET_API_MAC_CARBON]:
23569 Consolidate SendEventToEventTarget calls.
23570 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
23571 Move application activation handler to mac_handle_application_event.
23572 Move keyboard handler to mac_handle_keyboard_event.
23573 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
23574 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
23575 init_command_handler. Call install_application_handler.
23576
23577 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
23578 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
23579
235802007-06-07 Glenn Morris <rgm@gnu.org>
23581
23582 * emacs.c (main): Use `emacs-copyright' in --version output.
23583
235842007-06-06 Chong Yidong <cyd@stupidchicken.com>
23585
23586 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
23587
235882007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23589
23590 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
23591
23592 * macgui.h: Replace WindowPtr with WindowRef.
23593
23594 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
23595 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
23596 Replace ControlHandle with ControlRef.
23597 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
23598
23599 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
23600 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
23601 Replace ControlHandle with ControlRef.
23602 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
23603 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
23604
23605 * macterm.h (struct scroll_bar): Rename member control_handle_low
23606 and control_handle_high to control_ref_low and control_ref_high.
23607 All uses changed.
23608 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
23609 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
23610 respectively. All uses changed.
23611 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
23612 (install_window_handler, remove_window_handler): Replace WindowPtr
23613 with WindowRef in externs.
23614
236152007-06-05 Juanma Barranquero <lekktu@gmail.com>
23616
23617 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
23618
236192007-06-03 Nick Roberts <nickrob@snap.net.nz>
23620
23621 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
23622
23623 * frame.c (Fmouse_position, Fmouse_pixel_position):
23624 Condition on HAVE_GPM too.
23625
23626 * term.c (term_mouse_highlight): Remove unused variables.
23627 (Fterm_open_connection): Set gpm_zerobased to 1.
23628 (term_mouse_movement, term_mouse_click, handle_one_term_event):
23629 Use zero based co-ordinates.
23630 (handle_one_term_event): Report a drag as mouse movement too.
23631
23632 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
23633
236342007-06-03 Chong Yidong <cyd@stupidchicken.com>
23635
23636 * image.c (search_image_cache): New function. Require background
23637 color match if background color is unspecified in the image spec.
23638 (uncache_image, lookup_image): Use it.
23639
236402007-06-01 Juanma Barranquero <lekktu@gmail.com>
23641
23642 * window.c (Fshrink_window): Reflow docstring.
23643
236442007-06-02 Chong Yidong <cyd@stupidchicken.com>
23645
23646 * Version 22.1 released.
23647
236482007-06-01 Richard Stallman <rms@gnu.org>
23649
23650 * xfns.c (x_encode_text): Add GCPRO.
23651
236522007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23653
23654 * xfns.c (x_set_name_internal): Save encoded name before
23655 x_encode_text in case string data is relocated.
23656
236572007-05-31 Richard Stallman <rms@gnu.org>
23658
23659 * buffer.c (syms_of_buffer): Doc fix.
23660
236612007-05-30 Nick Roberts <nickrob@snap.net.nz>
23662
23663 * sysdep.c (init_sys_modes): Add rather than replace with
23664 O_NONBLOCK.
23665
23666 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
23667 term_mouse_moveto.
23668
23669 * termhooks.h (term_mouse_moveto): New extern.
23670
23671 * term.c (mouse_face_window): Rename...
23672 (Qmouse_face_window): ...to this.
23673 (term_show_mouse_face, term_clear_mouse_face)
23674 (term_mouse_highlight): Use Qmouse_face_window.
23675 (term_mouse_moveto): New function.
23676 (term_mouse_position): Make it work.
23677 (syms_of_term): Uncomment assignment to mouse_position_hook.
23678 Staticpro Qmouse_face_window.
23679
236802007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23681
23682 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
23683 around current_column call.
23684
236852007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
23686
23687 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
23688 * xdisp.c (next_element_from_buffer):
23689 * window.c (delete_window):
23690 * term.c (term_mouse_highlight):
23691 * msdos.c (getdefdir):
23692 * macterm.c (mac_create_bitmap_from_bitmap_data)
23693 (init_font_name_table):
23694 * fns.c (Fsxhash):
23695 * data.c (Fmake_local_variable):
23696 * ccl.c (ccl_driver): Likewise.
23697
236982007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23699
23700 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
23701 Call mac_wakeup_from_rne on window size change.
23702
237032007-05-25 Chong Yidong <cyd@stupidchicken.com>
23704
23705 * image.c (uncache_image): Fix typo.
23706
237072007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
23708
23709 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
23710
237112007-05-22 Richard Stallman <rms@gnu.org>
23712
23713 * xterm.c (x_connection_closed): Remove NO_RETURN.
23714
237152007-05-22 Martin Rudalics <rudalics@gmx.at>
23716
23717 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
23718
237192007-05-21 Chong Yidong <cyd@stupidchicken.com>
23720
23721 * image.c (uncache_image): New function.
23722 (Fimage_refresh): New function.
23723
237242007-05-20 Jan Djärv <jan.h.d@swipnet.se>
23725
23726 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
23727
237282007-05-20 Nick Roberts <nickrob@snap.net.nz>
23729
23730 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
23731 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
23732
237332007-05-20 Nick Roberts <nickrob@snap.net.nz>
23734
23735 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
23736 conditional on [HAVE_GPM_H].
23737
237382007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
23739
23740 * syntax.c (skip_chars): Update syntax-table only after we checked that
23741 the new location is valid.
23742
237432007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23744
23745 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
23746 mac_get_window_bounds.
23747
237482007-05-20 Nick Roberts <nickrob@snap.net.nz>
23749
23750 * Makefile.in (LIBGPM): Allow it to be set from configure.
23751 If set then link Emacs with it.
23752
23753 * config.in: Regenerate.
23754
23755 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
23756 New externs.
23757
23758 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
23759 Include gpm.h.
23760 (handle_one_term_event, term_gpm): New externs.
23761
23762 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
23763 and allow it to be interrupted by SIGIO.
23764
23765 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
23766 (wait_reading_process_output): Wait on gpm_fd too.
23767 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
23768 (add_gpm_wait_descriptor_called_flag): New variable.
23769 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
23770
23771 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
23772 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
23773 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
23774 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
23775 (make_lispy_event): Add case GPM_CLICK_EVENT.
23776 (read_avail_input): Handle mouse input.
23777
23778 * term.c (write_glyphs_with_face): New function.
23779 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
23780 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
23781 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
23782 (mouse_face_face_id, term_gpm, pos_x, pos_y)
23783 (last_mouse_x, last_mouse_y): New variables.
23784 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
23785 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
23786 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
23787 (Fterm_close_connection): New functions.
23788 (term_init): Initialise mouse_face_window.
23789
237902007-05-19 Chong Yidong <cyd@stupidchicken.com>
23791
23792 * xdisp.c (redisplay_window): If first window line is a
23793 continuation line, recompute the new window start instead of
23794 recentering.
23795
237962007-05-18 Glenn Morris <rgm@gnu.org>
23797
23798 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
23799 Suggested by Alfred M. Szmidt <ams@gnu.org>.
23800
238012007-05-17 Glenn Morris <rgm@gnu.org>
23802
23803 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
23804
238052007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23806
23807 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
23808 dead key repeat and up events.
23809
238102007-05-14 Chong Yidong <cyd@stupidchicken.com>
23811
23812 * image.c (pbm_load): Check image size for monochrome pbm.
23813
238142007-05-13 Chong Yidong <cyd@stupidchicken.com>
23815
23816 * xterm.c (XTread_socket): Revert last change.
23817
238182007-05-12 Chong Yidong <cyd@stupidchicken.com>
23819
23820 * image.c (pbm_load): Correctly check image size for greyscale pbm.
23821
23822 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
23823
238242007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
23825
23826 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
23827 mixup (YAILOM).
23828
238292007-05-07 Andreas Schwab <schwab@suse.de>
23830
23831 * keymap.c (Flookup_key): Fix typo in last change.
23832
238332007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
23834
23835 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
23836 mapping for unibyte strings.
23837
238382007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23839
23840 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
23841 (Fx_popup_dialog) [MAC_OSX]: Likewise.
23842
238432007-04-29 Richard Stallman <rms@gnu.org>
23844
23845 * insdel.c (replace_range): For undo, record insertion first.
23846
238472007-04-29 Andreas Schwab <schwab@suse.de>
23848
23849 * lisp.h (VECSIZE): Use OFFSETOF.
23850
238512007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23852
23853 * xdisp.c (try_window_reusing_current_matrix): Fix number of
23854 disabled lines.
23855
238562007-04-28 Richard Stallman <rms@gnu.org>
23857
23858 * lread.c (read_escape): In a string, \s is always space.
23859
238602007-04-27 Jan Djärv <jan.h.d@swipnet.se>
23861
23862 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
23863
23864 * gtkutil.c (xg_update_menubar, create_menus): Create empty
23865 submenu for menu bar items.
23866
23867See ChangeLog.10 for earlier changes.
23868
23869;; Local Variables:
23870;; coding: utf-8
23871;; add-log-time-zone-rule: t
aac0c6e3
MR
23872;; End:
23873
e3eb1dae 23874 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
23875
23876 This file is part of GNU Emacs.
23877
23878 GNU Emacs is free software: you can redistribute it and/or modify
23879 it under the terms of the GNU General Public License as published by
23880 the Free Software Foundation, either version 3 of the License, or
23881 (at your option) any later version.
23882
23883 GNU Emacs is distributed in the hope that it will be useful,
23884 but WITHOUT ANY WARRANTY; without even the implied warranty of
23885 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23886 GNU General Public License for more details.
23887
23888 You should have received a copy of the GNU General Public License
23889 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
23890
23891;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40