Remove LD_SWITCH_SYSTEM_EXTRA.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
e5458003
GM
12010-05-25 Glenn Morris <rgm@gnu.org>
2
3 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
4 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
5
10f72a37
KH
62010-05-25 Kenichi Handa <handa@m17n.org>
7
8 * dispextern.h (struct composition_it): New members rule_idx and
9 charpos.
10
11 * xdisp.c (set_iterator_to_next): While scanning backward, assume
12 that the character positions of IT point the last character of the
13 current grapheme cluster.
14 (next_element_from_composition): Don't change character positions
15 of IT.
16 (append_composite_glyph): Set glyph->charpos to
17 it->cmp_it.charpos.
18
19 * composite.c (autocmp_chars): Change the first argument to RULE,
20 and try composition with RULE only.
21 (composition_compute_stop_pos): Record the index number of the
22 composition rule in CMP_IT->rule_idx.
23 (composition_reseat_it): Call autocmp_chars repeatedly until the
24 correct rule of the composition is found.
25 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
26 is at the last character of the current grapheme cluster when
27 CMP_IT->reversed_p is nonzero.
28
171eda53 292010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 30
171eda53
SM
31 * editfns.c (Fbyte_to_string): New function.
32
66a9f7f4
SM
332010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
34
35 * process.c (Fmake_network_process): Set :host to nil if it's not used.
36 Suggested by Masatake YAMATO <yamato@redhat.com>.
37
d8c315d1
EZ
382010-05-23 Eli Zaretskii <eliz@gnu.org>
39
171eda53 40 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 41
0416466c
EZ
422010-05-19 Eli Zaretskii <eliz@gnu.org>
43
11117830 44 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
45
46 * dispextern.h (struct glyph_row): New members minpos and maxpos.
47 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
48 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
49 and maxpos members instead of start.pos and end.pos, respectively.
50
51 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
52 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
53 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
54 (try_window_reusing_current_matrix, try_window_id):
55 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
56 (init_from_display_pos, init_iterator): Use EMACS_INT for
57 character and byte positions.
66a9f7f4 58 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
59 arguments for minimum and maximum buffer positions seen by
60 display_line for this row. Don't use iterator to find the
61 position following the maximum one; instead, increment the
11117830
EZ
62 position found by display_line directly. Fix logic; eol_pos
63 should be tested before the rest. Handle the case of characters
64 delivered from display vector (bug#6036). Fix tests related to
65 it->method. Handle the truncated_on_right_p rows.
66 (RECORD_MAX_MIN_POS): New macro.
67 (display_line): Use it to record the minimum and maximum buffer
68 positions for glyphs in the row being assembled. Record the
69 position of the newline that terminates the line. If word wrap is
70 in effect, restore minimum and maximum positions seen up to the
71 wrap point, when iterator returns to it.
72 (try_window_reusing_current_matrix): Give up if in bidi-reordered
73 row and cursor not already at point. Restore original pre-bidi
74 code for unidirectional buffers.
d36fe237
EZ
75
76 * dispnew.c (increment_row_positions, check_matrix_invariants):
77 Increment and check row->start.pos and row->end.pos, in addition
78 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
79
11117830
EZ
80 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
81 Display truncated_on_left_p and truncated_on_right_p flags.
82 Formatting fixes.
83 (pmtxrows): Display the ordinal number of each row. Don't display
84 rows beyond the last one.
85
86 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
87 it is not copied by bidi_copy_it.
88
6e83d800
EZ
892010-05-22 Eli Zaretskii <eliz@gnu.org>
90
91 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
92 (Bug#6237)
93
110683ad
CY
942010-05-22 Chong Yidong <cyd@stupidchicken.com>
95
96 * image.c (Fimage_flush): Rename from image-refresh.
97
98fe5161
CY
982010-05-21 Chong Yidong <cyd@stupidchicken.com>
99
100 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
101 just one window.
102
103 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
104 (clear_image_cache): If the number of cached images is unusually
105 large, decrease the cache eviction delay (Bug#6230).
106
e8752c66
GM
1072010-05-21 Glenn Morris <rgm@gnu.org>
108
66dbf213
GM
109 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
110 Move these rules to ns.mk.
111 * ns.mk: New file.
112
04384b2d
GM
113 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
114
e8752c66
GM
115 * Makefile.in (CANNOT_DUMP): New, set by configure.
116 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
117
2e2bbddb
JL
1182010-05-20 Juri Linkov <juri@jurta.org>
119
120 * fileio.c (Fdelete_file): Change interative spec to use
121 `read-file-name' like in `find-file-read-args' where the default
122 value is `default-directory' instead of `buffer-file-name'.
123 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
124
31c4aaf6
KR
1252010-05-20 Kevin Ryde <user42@zip.com.au>
126
127 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
128 (Voverriding_terminal_local_map, Vsystem_key_alist)
129 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
130
9d5cf9b6
GM
1312010-05-20 Glenn Morris <rgm@gnu.org>
132
133 * Makefile.in (DEPDIR): New constant.
134 (DEPFLAGS): Set with configure, not cpp.
135 (MKDEPDIR): New, set by configure.
136 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
137 (clean): Use $DEPDIR.
138 (deps_frag): Include from configure.
139 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
140 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
141
ead6f8f5
EZ
142 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
143 reallocation of the cache. (Bug#6210)
144
7f34aec3
GM
1452010-05-19 Glenn Morris <rgm@gnu.org>
146
d494e8f2
GM
147 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
148
c1d0dcfd
GM
149 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
150 (GNULIB_VAR): Remove.
151 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
152
153 * m/ibms390x.h (LINKER):
154 * m/macppc.h (LINKER) [GNU_LINUX]:
155 * s/aix4-2.h (ORDINARY_LINK):
156 * s/cygwin.h (LINKER):
157 * s/darwin.h (ORDINARY_LINK):
158 * s/gnu.h (ORDINARY_LINK):
159 * s/netbsd.h (LINKER):
160 * s/usg5-4.h (ORDINARY_LINK):
161 Move to configure.
162
7f34aec3
GM
163 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
164
754790b6
CY
1652010-05-18 Chong Yidong <cyd@stupidchicken.com>
166
167 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
168 prevent stack overflow if number of arguments is too large
169 (Bug#6214).
170
161e44d1
JB
1712010-05-18 Juanma Barranquero <lekktu@gmail.com>
172
173 * charset.c (load_charset_map_from_file): Don't call close after fclose.
174
be4ff9da
GM
1752010-05-18 Glenn Morris <rgm@gnu.org>
176
9539dc5d
GM
177 * s/gnu-linux.h: Combine two conditionals.
178
179 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
180 $(POST_ALLOC_OBJ).
181
40dc6bf4
GM
182 * Makefile.in (RALLOC_OBJ): New, set by configure.
183 (rallocobj): Replace with the previous variable.
184 (otherobj): Use $RALLOC_OBJ.
185
186 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
187 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
188
be4ff9da
GM
189 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
190 (gmallocobj, vmlimitobj): Replace with previous two variables.
191 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
192
16455a85
GM
1932010-05-17 Glenn Morris <rgm@gnu.org>
194
195 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
196 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
197
5fdb7468
GM
1982010-05-16 Glenn Morris <rgm@gnu.org>
199
7ca1f3f9
GM
200 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
201
7541dad5
GM
202 * Makefile.in (clean): Get rid of HAVE_NS conditional.
203
da53fab9
GM
204 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
205 trailing "/".
206
b02a6645
GM
207 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
208 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
209
8877ca0f
GM
210 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
211 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
212 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
213 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
214 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
215
5fdb7468
GM
216 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
217 Remove ${STARTFLAGS}, nothing ever sets it.
218
95adb4b1
DN
2192010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
220
221 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
222
676b6304
GM
2232010-05-16 Glenn Morris <rgm@gnu.org>
224
9beab9ce
GM
225 * Makefile.in (LIBX_BASE): Always define.
226
8a95f0e7
GM
227 * Makefile.in (LIBX_OTHER): Move out of cpp section.
228
676b6304
GM
229 * Makefile.in (LIBXT): Always define.
230
6e546d18
GM
2312010-05-15 Glenn Morris <rgm@gnu.org>
232
4235ca47 233 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 234
6e546d18
GM
235 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
236 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
237
8c5ff6dd
KR
2382010-05-15 Ken Raeburn <raeburn@raeburn.org>
239
560bb7ae 240 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
241 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
242
8b4eb796
KR
243 * emacs.c (main): Initialize initial-environment and
244 process-environment before generating from env, not after.
245
8c5ff6dd
KR
246 Handle --version reasonably in CANNOT_DUMP configuration.
247 * emacs.c (emacs_version, emacs_copyright): New string variables.
248 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
249 (syms_of_emacs): Defvar them, and initialize them from the C
250 string variables.
251 (main): If initialization hasn't been done, print initial version
252 info from the C strings, instead of starting an interactive session.
253
dbd3f723
EZ
2542010-05-15 Eli Zaretskii <eliz@gnu.org>
255
d20e1419
EZ
256 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
257 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
258 (bidi_paragraph_init): Remove redundant assertion that we are at
259 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
260
261 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
262 (syms_of_xdisp): Defsubr it.
263
d36fe237
EZ
264 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
265
dbd3f723
EZ
266 * Makefile.in: Fix MSDOS-related comments.
267
02be533b
GM
2682010-05-15 Glenn Morris <rgm@gnu.org>
269
1a82cca9
GM
270 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
271 (really-lwlib, really-oldXMenu): Always define.
272 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
273
3df7b338
GM
274 * Makefile.in: Simplify cpp conditional.
275
2b5f541b
GM
276 * Makefile.in (${ns_appdir}): Simplify using umask.
277
02be533b
GM
278 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
279
4e2db1fe
SM
2802010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
281
282 * eval.c (specbind): Remove left-over duplicate test.
283 Disallow let-binding frame-local vars. Add comment.
284
4b292a22
EZ
2852010-05-14 Eli Zaretskii <eliz@gnu.org>
286
2fe72643 287 Make the cache of bidi iterator states dynamically allocated.
1edbd309 288 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
289 (bidi_init_it): Call it.
290 (bidi_cache_iterator_state): Enlarge the cache if needed.
291
4e2db1fe 292 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
293 bidi_get_next_char_visually. All callers changed.
294
82ebc97b
KH
2952010-05-14 Kenichi Handa <handa@m17n.org>
296
297 * dispextern.h (struct composition_it): New member reversed_p.
298
299 * composite.c (composition_compute_stop_pos): Search backward if
300 ENDPOS < CHARPOS.
301 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
302 Set CMP_IT->reversed_p.
b4b6e17e 303 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 304
4e2db1fe
SM
305 * xdisp.c (set_iterator_to_next):
306 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
307 scanning backward. Call composition_compute_stop_pos if scan
308 direction is changed.
309 (next_element_from_buffer): Call composition_compute_stop_pos with
310 negative ENDPOS if we are scanning backward.
311 (next_element_from_composition): Pay attention to
312 IT->cmp_it.reversed_p.
313
0e5d7800
KH
3142010-05-14 Kenichi Handa <handa@m17n.org>
315
560bb7ae 316 * font.c (font_range): Return the range for the font found at first.
0e5d7800 317
cb027b32
GM
3182010-05-14 Glenn Morris <rgm@gnu.org>
319
177b0288
GM
320 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
321
fbc00890
GM
322 * Makefile.in (mktime, X11, register): Move undefs to configure.
323
f14d1dfd
GM
324 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
325 (MSDOS_X_OBJ): New variable.
326 (MSDOS_SUPPORT_REAL): New constant.
327 (MSDOS_SUPPORT): Set as a variable, not with cpp.
328 (obj): Use MSDOS_X_OBJ.
329 (lisp): Use MSDOS_SUPPORT as a variable.
330
11842bd8
GM
331 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
332 (GPM_MOUSE_SUPPORT): Now it's a constant.
333 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
334 not cpp.
335
489d31a4 336 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 337 (ns_appresdir): Remove, unused.
e20f1f07 338
489d31a4
GM
339 * Makefile.in (SHELL): Move outside cpp section.
340
cb027b32
GM
341 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
342
5a903aa9
GM
3432010-05-13 Glenn Morris <rgm@gnu.org>
344
3369c79f
GM
345 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
346 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
347
d5e982a6
GM
348 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
349 HAVE_WINDOW_SYSTEM must be too.
350
6192e163
GM
351 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
352 (lisp): Remove WINNT_SUPPORT.
353
472c5d6b
GM
354 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
355 Let configure set these variables (to empty) in this case as well.
356
0116466b
GM
357 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
358 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
359
5a903aa9
GM
360 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
361 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
362 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
363 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
364 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 365 the values output by configure.
5a903aa9
GM
366 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
367
1a0d7c06
GM
3682010-05-12 Glenn Morris <rgm@gnu.org>
369
b5457f14
GM
370 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
371 (LINKER_WAS_SPECIFIED): Remove.
372
1a0d7c06
GM
373 * Makefile.in (LIB_GCC): Set using configure, not cpp.
374 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
375 * m/arm.h (LIB_GCC) [GNU_LINUX]:
376 * s/cygwin.h (LIB_GCC):
377 * s/freebsd.h (LIB_GCC):
378 * s/gnu-linux.h (LIB_GCC):
379 * s/msdos.h (LIB_GCC):
380 * s/netbsd.h (LIB_GCC):
381 Move to configure.
382
3ffd4615 3832010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
384
385 * ftfont.c: Fix incorrect parentheses of #if condition for
386 definining M17N_FLT_USE_NEW_FEATURE.
387
acddf8ae
GM
3882010-05-11 Glenn Morris <rgm@gnu.org>
389
390 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
391 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
392
ae5e04fa
EZ
3932010-05-10 Eli Zaretskii <eliz@gnu.org>
394
395 * xdisp.c (init_iterator): Don't turn on bidi reordering in
396 unibyte buffers. See
397 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
398
7490175b
GM
3992010-05-10 Glenn Morris <rgm@gnu.org>
400
97efb629
GM
401 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
402 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
403 (LIBES): Use LIBS_SYSTEM as a variable.
404 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
405 * s/aix4-2.h (LIBS_SYSTEM):
406 * s/freebsd.h (LIBS_SYSTEM):
407 * s/hpux10-20.h (LIBS_SYSTEM):
408 * s/sol2-6.h (LIBS_SYSTEM):
409 * s/unixware.h (LIBS_SYSTEM):
410 Move to configure.
411
7490175b
GM
412 * s/aix4-2.h (MAIL_USE_LOCKF):
413 * s/bsd-common.h (MAIL_USE_FLOCK):
414 * s/darwin.h (MAIL_USE_FLOCK):
415 * s/gnu-linux.h (MAIL_USE_FLOCK):
416 * s/irix6-5.h (MAIL_USE_FLOCK):
417 * s/template.h (MAIL_USE_FLOCK):
418 Move to configure.
419
0235128c 4202010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
421
422 * Version 23.2 released.
423
0235128c 4242010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
425
426 * composite.c (autocmp_chars): Save point as marker before calling
427 auto-composition-function (Bug#5984).
428
429 * lisp.h (restore_point_unwind): Add prototype.
430
431 * fileio.c (restore_point_unwind): Remove static attribute.
432
0235128c 4332010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
434
435 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
436 new feature of libotf and m17n-flt.
0235128c
SM
437 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
438 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
439 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
440 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
441 that OUT is NULL. Use OTF_drive_gsub_with_log and
442 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
443 OTF_drive_gpos.
444 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
445 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
446 Setup mflt_enable_new_feature and mflt_try_otf.
447
4721152c
J
4482010-05-08 Jan Djärv <jan.h.d@swipnet.se>
449
450 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
451
452 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
453 box and toolbar (Bug #6139).
454 (xg_create_tool_bar): Remove comment (Bug #6139).
455 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
456 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
457
ee0a16cf
JB
4582010-05-08 Juanma Barranquero <lekktu@gmail.com>
459
460 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
461 Update dependencies.
462
96d79611
EZ
4632010-05-08 Eli Zaretskii <eliz@gnu.org>
464
465 * fringe.c (update_window_fringes): Set up truncation bitmaps for
466 R2L lines.
467
40c17879
GM
4682010-05-08 Glenn Morris <rgm@gnu.org>
469
7b42b29f
GM
470 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
471
40c17879
GM
472 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
473 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
474 (termcapobj): Replace with TERMCAP_OBJ.
475 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
476 (LIBES): Use LIBS_TERMCAP as a variable.
477
478 * s/freebsd.h (osreldate.h): No longer include, since this file
479 does not use __FreeBSD_version any more.
480
481 * s/aix4-2.h (TERMINFO):
482 * s/cygwin.h (TERMINFO):
483 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
484 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
485 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
486 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
487 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
488 * s/irix6-5.h (TERMINFO):
489 * s/netbsd.h (LIBS_TERMCAP):
490 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
491 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
492 * s/usg5-4.h (TERMINFO):
493 Move to configure.
494
94b612ad
SM
4952010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
496
497 * eval.c (unbind_to): Don't unbind a local binding into the global
498 binding when the local binding disappeared. Inversely, don't unbind
499 a global binding into a newly created local binding.
500 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
501 can specify the frame to use, when applicable. Adjust callers.
502
15e12598
VB
5032010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
504 Stefan Monnier <monnier@iro.umontreal.ca>
505
506 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
507
f724825e
EZ
5082010-05-07 Eli Zaretskii <eliz@gnu.org>
509
5cba3209
EZ
510 * w32fns.c: Include w32.h.
511 (Fw32_shell_execute): Decode the error message before passing it
512 to `error'. (Bug#6126)
513
d16bdfc3
EZ
514 * msdos.c (dos_set_window_size):
515 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
516 instead of `XSYMBOL (foo)->value'.
517
59d93e87
EZ
5182010-05-07 Eli Zaretskii <eliz@gnu.org>
519
9fdec8bc
EZ
520 Fix the MS-DOS build, broken by autoconfiscation.
521
522 * Makefile.in: Don't use Make-style comments past the "start of
523 cpp stuff" line.
524 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
525
526 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
527 edited directly by msdos/sed1v2.inp).
f724825e 528
2f86b22b
GM
5292010-05-07 Glenn Morris <rgm@gnu.org>
530
531 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
532 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
533 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
534 move out of cpp section.
535 * s/freebsd.h (LD_SWITCH_SYSTEM):
536 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
537 * s/netbsd.h (LD_SWITCH_SYSTEM):
538 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
539
49ebbd65
DN
5402010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
541
542 Define LIB_STANDARD and START_FILES using autoconf.
543 * s/usg5-4.h (LIB_STANDARD):
544 * s/netbsd.h (START_FILES):
545 * s/irix6-5.h (LIB_STANDARD):
546 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
547 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
548 * s/freebsd.h (START_FILES):
549 * s/darwin.h (START_FILES):
550 * s/cygwin.h (START_FILES):
551 * s/aix4-2.h (LIB_STANDARD):
552 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
553 * Makefile.in (STARTFILES): Rename to START_FILES, define using
554 autoconf, not cpp.
555
d43c06d6
DN
5562010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
557
28823648
DN
558 Remove NEED_BSDTTY and NEED_UNISTD_H.
559 * s/hpux10-20.h (NEED_BSDTTY): Remove.
560 * s/aix4-2.h (NEED_UNISTD_H): Remove.
561 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
562 <sys/ptyio.h> and <unistd.h>.
563
aca00430
DN
564 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
565
d43c06d6
DN
566 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
567 * s/gnu.h (START_FILES): Remove empty definition.
568
3e56b11d
JD
5692010-05-06 Jan Djärv <jan.h.d@swipnet.se>
570
571 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
572
e3cf0cde
GM
5732010-05-06 Glenn Morris <rgm@gnu.org>
574
575 * Makefile.in (CPP, LN_S): Remove unused variables.
576
774b9a60
SM
5772010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
578
579 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
580
4ab92842
LM
5812010-05-05 Lawrence Mitchell <wence@gmx.li>
582
583 * m/sparc.h: Fix typo in earlier change.
584
178f2507
SM
5852010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
586
587 Misc tweaks.
588 * eval.c (Fdefvaralias): Remove unintended nested if.
589 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
590
80f00217 5912010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
592
593 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
594
ef03a4e6
DN
5952010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
596
58eb6cf0
DN
597 Remove BSD_PGRPS.
598 * s/bsd-common.h (BSD_PGRPS): Remove undef.
599 * s/gnu-linux.h (BSD_PGRPS): Remove.
600 * term.c (dissociate_if_controlling_tty):
601 * sysdep.c (narrow_foreground_group, widen_foreground_group)
602 (init_sys_modes, reset_sys_modes):
603 * emacs.c (main):
604 * callproc.c (Fcall_process, child_setup): Remove code depending
605 on BSD_PGRPS.
606
ef03a4e6
DN
607 Remove POSIX_SIGNALS.
608 * s/usg5-4.h (POSIX_SIGNALS):
609 * s/netbsd.h (POSIX_SIGNALS):
610 * s/msdos.h (POSIX_SIGNALS):
611 * s/ms-w32.h (POSIX_SIGNALS):
612 * s/hpux11.h (POSIX_SIGNALS):
613 * s/gnu.h (POSIX_SIGNALS):
614 * s/gnu-linux.h (POSIX_SIGNALS):
615 * s/freebsd.h (POSIX_SIGNALS):
616 * s/darwin.h (POSIX_SIGNALS):
617 * s/cygwin.h (POSIX_SIGNALS):
618 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
619 * s/unixware.h:
620 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
621 * process.c (create_process):
622 * syssignal.h:
623 * sysdep.c (wait_for_termination, init_signals):
624 * process.c (create_process):
625 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
626 remove all code that assumes the contrary.
627
49628785
GM
6282010-05-04 Glenn Morris <rgm@gnu.org>
629
27a2cdfc
GM
630 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
631 variable.
632 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
633 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
634 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
635 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
636 LD_SWITCH_SYSTEM_tmp.
637 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
638 New variables, set by configure.
639
eb21eab5
GM
640 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
641 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
642 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
643 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
644 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
645
49628785
GM
646 * s/aix4-2.h (C_SWITCH_SYSTEM):
647 * m/alpha.h (C_SWITCH_MACHINE):
648 Move to configure.in.
649 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
650 New variables, set by configure.
651 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
652 $c_switch_machine and $c_switch_system.
653
7dff330b
DN
6542010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
655
656 * s/hpux10-20.h (LIB_STANDARD): New definition.
657 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
658 on it, not used anymore.
659
53967e09
CY
6602010-05-03 Chong Yidong <cyd@stupidchicken.com>
661
662 * eval.c (internal_condition_case_n): Rename from
663 internal_condition_case_2.
664 (internal_condition_case_2): New function.
665
666 * xdisp.c (safe_call): Use internal_condition_case_n.
667
668 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
669 (internal_delete_file, Frename_file): Callers changed.
670
671 * buffer.c (Fkill_buffer):
672 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
673
674 * lisp.h: Update prototypes.
675
3dee6fdb
GM
6762010-05-03 Glenn Morris <rgm@gnu.org>
677
678 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
679 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
680 (LIBXT): Set with configure, not cpp.
681 (LIBX): Remove.
682 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
683
a101e0fb
DN
6842010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
685
686 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
687 The FreeBSD is not needed, the default works, Solaris version is
688 not needed, and the remaining case is not supported by configure.
689
f63d0028
JD
6902010-05-02 Jan Djärv <jan.h.d@swipnet.se>
691
692 * xsmfns.c (CHDIR_OPT): New define.
693 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
694 restarting emacs.
695
696 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
697 shut_down_emacs.
698
699 * emacs.c (USAGE1): Mention --chdir.
700 (main): Handle --chdir.
701 (standard_args): Add --chdir.
702 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
703 #5552).
704
e4814a9f
DN
7052010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
706
cd03c74a
DN
707 Remove LD_SWITCH_MACHINE.
708 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
709 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
710
c3a398a1
DN
711 Clean up IRIX code.
712 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
713 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
714
87e7285c
DN
715 Clean up AIX code.
716 * m/ibmrs6000.inp: Remove file, unused.
717 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
718 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
719 definition ...
720 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
721
80f00217
JB
722 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
723 unused.
e4814a9f 724
59ca28de
EZ
7252010-05-01 Eli Zaretskii <eliz@gnu.org>
726
197daef4
EZ
727 Emulate POSIX_SIGNALS on MS-Windows.
728
729 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
730 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
731
732 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
733 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
734 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
735
80f00217
JB
736 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
737 New stubs.
197daef4 738
af7c7572
EZ
739 Miscellaneous fixes of bidi display.
740
59ca28de
EZ
741 * xdisp.c (find_row_end): New function, refactored from display_line.
742 (display_line): Use it.
017ea819
EZ
743 (extend_face_to_end_of_line): In almost-filled rows, extend only
744 if the row is R2L and not continued.
166e930d 745 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 746 Preserve overlay and string info in row->end.
166e930d
EZ
747 (insert_left_trunc_glyphs): Support addition of left truncation
748 glyphs to R2L rows.
b47e0dcf 749 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
750 glyph between adjacent windows. Fix a crash when a display string
751 is continued to the next line. Don't return zero if cursor was
752 found by `cursor' property of a display string.
b47e0dcf
EZ
753 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
754 test for that explicitly.
59ca28de 755
7acac9f4
GM
7562010-05-01 Glenn Morris <rgm@gnu.org>
757
758 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
759 for clarity.
760 (OTHER_OBJ): Remove.
761 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
762 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
763
45841e65
KK
7642010-05-01 Karel Klíč <kklic@redhat.com>
765
766 * fileio.c (Ffile_selinux_context): Context functions may return null.
767
afc61943
DN
7682010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
769
80f00217 770 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 771
5a1bb006
GM
7722010-04-30 Glenn Morris <rgm@gnu.org>
773
774 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
775 (OTHER_OBJ): Define as a separate variable, for clarity.
776
210af043
J
7772010-04-30 Jan Djärv <jan.h.d@swipnet.se>
778
779 * xsettings.c: include limits.h and update file comment.
780
0a7df391
GM
7812010-04-30 Glenn Morris <rgm@gnu.org>
782
d5096f16
GM
783 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
784 Set with configure, not cpp.
785 (LIBW): Remove, replace with $TOOLKIT_LIBW.
786
7eb1ac33
GM
787 * Makefile.in (mallocobj): Remove.
788 (otherobj): Simplify using @OTHER_OBJ@.
789
517d086b
GM
790 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
791 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
792 Don't bother making nsgui.h dependency platform-specific.
793
0a7df391
GM
794 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
795
d6d23852
SM
7962010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
797
d2630aef
SM
798 * process.c (read_process_output, exec_sentinel): Don't burp if the
799 sentinel/filter kills the current buffer (bug#6060).
800
f9dddf52 801 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
802 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
803 Remove unused var `args'.
804 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
805 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
806 * doc.c (store_function_docstring): Use XSETCAR.
807
f1e3642a
GM
8082010-04-28 Glenn Morris <rgm@gnu.org>
809
faf535f8
GM
810 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
811 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
812
c40f9449
GM
813 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
814
658f86ca
GM
815 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
816 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
817
bc0b5f61
GM
818 * Makefile.in (FONT_OBJ): New, set by configure.
819 (FONT_DRIVERS): Use $FONT_OBJ.
820
294c50a0
GM
821 * Makefile.in (LIBXMU): Set with configure, not cpp.
822 * s/aix4-2.h (LIBXMU):
823 * s/hpux10-20.h (LIBXMU):
824 Remove definition, now set in configure.
825
e6ec4e99
GM
826 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
827
f1e3642a
GM
828 * m/amdx86-64.h [i386]: Move this test to configure.in.
829
c6ea2936
GM
8302010-04-27 Glenn Morris <rgm@gnu.org>
831
8fdac2c3
GM
832 * Makefile.in (LIBXTR6): Set with configure, not cpp.
833 * s/unixware.h (NEED_LIBW): Remove definition.
834
986fb647
GM
835 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
836 (TOOLKIT_LIBW): New, set by configure.
837 (@X_TOOLKIT_TYPE@): No longer define it.
838
c6ea2936
GM
839 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
840 (MOTIF_LIBW): Set with configure, not cpp.
841 * s/aix4-2.h (LIB_MOTIF):
842 * s/gnu-linux.h (LIB_MOTIF):
843 * s/unixware.h (LIB_MOTIF): Move to configure.in.
844
aaa36002
DN
8452010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
846
847 Reduce CPP usage.
848 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
849 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
850 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
851 definitions and undefs. Inline definitions in the only user.
852 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 853
b678dd8b
GM
8542010-04-27 Glenn Morris <rgm@gnu.org>
855
76cda504
GM
856 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
857 since the defaults (set by the system file) are fine in most cases.
858 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
859 * m/ibms390x.h (START_FILES, LIB_STANDARD):
860 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
861 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
862 Remove definitions, since they are set correctly in s/gnu-linux.h.
863 * s/freebsd.h (START_FILES, LIB_STANDARD):
864 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
865 * s/hpux10-20.h (START_FILES):
866 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
867 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
868
b678dd8b
GM
869 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
870 (MOTIF_LIBW): Use $LIBXP.
871 (otherobj): Use $WIDGET_OBJ.
872
9452ded1
DN
8732010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
874
7e10844c
DN
875 * Makefile.in (LIBS_MACHINE): Remove, unused.
876
9452ded1
DN
877 Use autoconf instead of cpp for LIB_MATH.
878 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
879 * s/cygwin.h (LIB_MATH): Likewise.
880 * Makefile.in (LIB_MATH): Do not define with cpp.
881 (LIBES): Use autoconf for LIB_MATH.
882
fcebfc6a
KH
8832010-04-26 Kenichi Handa <handa@m17n.org>
884
885 * composite.c (Ffind_composition_internal): Fix the return value
886 for an automatic composition.
887
39e2ad1b
DN
8882010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
889
890 Remove all NO_ARG_ARRAY uses.
891 * fns.c (concat2, concat3, nconc2):
892 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
893 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
894 * m/xtensa.h (NO_ARG_ARRAY):
895 * m/template.h (NO_ARG_ARRAY):
896 * m/sparc.h (NO_ARG_ARRAY):
897 * m/sh3.h (NO_ARG_ARRAY):
898 * m/mips.h (NO_ARG_ARRAY):
899 * m/macppc.h (NO_ARG_ARRAY):
900 * m/iris4d.h (NO_ARG_ARRAY):
901 * m/intel386.h (NO_ARG_ARRAY):
902 * m/ibms390x.h (NO_ARG_ARRAY):
903 * m/ibms390.h (NO_ARG_ARRAY):
904 * m/ibmrs6000.h (NO_ARG_ARRAY):
905 * m/ia64.h (NO_ARG_ARRAY):
906 * m/hp800.h (NO_ARG_ARRAY):
907 * m/arm.h (NO_ARG_ARRAY):
908 * m/amdx86-64.h (NO_ARG_ARRAY):
909 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
910
adf4f59c
EZ
9112010-04-25 Eli Zaretskii <eliz@gnu.org>
912
6bdf5d65
EZ
913 * xdisp.c (display_line): Don't assume 2nd call to
914 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
915 (iterate_out_of_display_property): New function, body from pop_it.
916 (pop_it): Use it.
adf4f59c 917
dfbbda83
GM
9182010-04-24 Glenn Morris <rgm@gnu.org>
919
920 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
921 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
922 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
923 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
924
2d4018aa
EZ
9252010-04-24 Eli Zaretskii <eliz@gnu.org>
926
a49884a6
EZ
927 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
928 use `get_next_display_element' and `set_iterator_to_next' to
929 advance to the next character, when looking for the character that
930 begins the next row.
931
76db6fcc 932 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
933 definition of "struct Lisp_Symbol".
934
70eab5c1
GM
9352010-04-24 Glenn Morris <rgm@gnu.org>
936
937 * Makefile.in (CRT_DIR): New variable, set by configure.
938 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
939 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
940
1ad4cc3d
DN
9412010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
942
e769f484
DN
943 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
944
4196ff33
DN
945 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
946
879b0ee4
DN
947 Remove redundant flags.
948 * s/freebsd.h (C_SWITCH_SYSTEM):
949 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
950 * s/netbsd.h (C_SWITCH_SYSTEM):
951 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
952 of these.
953
03cbbcb8
DN
954 Simplify m/intel386.h.
955 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
956 user: ecrt0.c.
957 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
958 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
959 the only user: s/unixware.h.
960 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
961 from m/intel386.h.
962 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
963 moved here from m/intel386.h.
964
1ad4cc3d
DN
965 * m/mips.h: Remove #if 0 code.
966
8785b888
EZ
9672010-04-23 Eli Zaretskii <eliz@gnu.org>
968
728588cc
EZ
969 Fix display of composed characters from L2R scripts in bidi buffers.
970 * xdisp.c (set_iterator_to_next, next_element_from_composition):
971 After advancing IT past the composition, resync the bidi iterator
972 with IT's position. (Bug#5977)
973
a63f80b4
DN
9742010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
975
976 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
977 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
978
ff5dec5c
SM
9792010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
980
981 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
982
8785b888
EZ
9832010-04-23 Eli Zaretskii <eliz@gnu.org>
984
58ccf243 985 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
986 * xdisp.c (pop_it): When the stack is popped after displaying
987 from a string, bidi-iterate to exit from the text portion covered
988 by the `display' property or overlay. (Bug#5988, bug#5920)
989
feeb1604
DN
9902010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
991
8e324eb6
DN
992 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
993 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
994
809fcaba
DN
995 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
996 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
997
ed710380
DN
998 Simplify STARTFILES definition.
999 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
1000 relying on Makefile.in to define it.
1001 * s/cygwin.h (START_FILES): Likewise.
1002 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
1003
feeb1604
DN
1004 Clean up Solaris code.
1005 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
1006 (LIB_MOTIF): Remove, configure takes care of this.
1007 (NOT_USING_MOTIF): Remove, unused.
1008 * xrdb.c: Remove #if 0-ed #include.
1009 (SYSV): Remove conditional for old SysV.
1010 * sysdep.c (closedir): Remove conditional code for Solaris,
1011 Solaris has closedir.
1012
a0d0b563
JD
10132010-04-22 Jan Djärv <jan.h.d@swipnet.se>
1014
1015 * xsettings.c (read_and_apply_settings): Check if current_font is
1016 NULL before strcmp (Bug#6001).
1017
56bae7c7
DN
10182010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
1019
1020 Clean up HP-UX files.
1021 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
1022 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
1023 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
1024 * s/hpux10-20.h: ... to the only user, here.
1025
372b7a95
EZ
10262010-04-21 Eli Zaretskii <eliz@gnu.org>
1027
1028 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
1029 use buffer-local values of paragraph-start and paragraph-separate.
1030 <paragraph_start_re, paragraph_separate_re>: Rename from
1031 fallback_paragraph_start_re and fallback_paragraph_separate_re.
1032 (Bug#5992)
1033
f904c0f9
JD
10342010-04-21 Jan Djärv <jan.h.d@swipnet.se>
1035
1036 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
1037 current_tool_bar_style are new.
1038 (store_config_changed_event): Rename from store_font_changed_event.
1039 (XSETTINGS_TOOL_BAR_STYLE): New define.
1040 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
1041 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
1042 HAVE_XFT.
1043 (something_changedCB): store_font_changed_event is now
1044 store_config_changed_event
1045 (parse_settings): Rename from parse_xft_settings. Read
1046 non-xft xsettings outside #ifdef HAVE_XFT.
1047 (read_settings): Renamed from read_xft_settings.
1048 (apply_xft_settings): Take current settings as parameter. Do not
1049 call read_(xft)_settings.
1050 (read_and_apply_settings): New function.
1051 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
1052 read_and_apply_settings if there are settings to be read.
1053 (init_xsettings): Renamed from init_xfd_settings.
1054 Call read_and_apply_settings unconditionally.
1055 (xsettings_initialize): Call init_xsettings.
1056 (Ftool_bar_get_system_style): New function.
1057 (syms_of_xsettings): Define Qmonospace_font_name and
1058 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 1059 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 1060 dynamic-setting.
31a01b90 1061 Move misplaced HAVE_GCONF
f904c0f9
JD
1062
1063 * xsettings.h (Ftool_bar_get_system_style): Declare.
1064
1065 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
1066 Qtext, Qboth, Qboth_horiz are new.
1067 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
1068 Vtool_bar_style, tool_bar_max_label_size.
1069
1070 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
1071
1072 * keyboard.c: QClabel is new.
1073 (parse_tool_bar_item): Take out QClabel from tool bar items.
1074 Try to construct a label if ther is no QClabel.
1075 (syms_of_keyboard): Intern :label as QClabel.
1076
1077 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
1078 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
1079 New.
1080
1081 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
1082 dynamic-setting.el.
1083
1084 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
1085 (xg_make_tool_item, xg_show_toolbar_item): New function.
1086 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
1087 Call xg_make_tool_item to make a tool bar item.
1088 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
1089
1090 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
1091 into account for toolbars.
1092
c632dfda
JD
10932010-04-21 Jan Djärv <jan.h.d@swipnet.se>
1094
1095 * data.c (make_blv): Declarations before code (Bug#5993).
1096
10efe302
GM
10972010-04-21 Glenn Morris <rgm@gnu.org>
1098
1099 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
1100 Define using autoconf, not cpp.
1101 (LIBXSM): New variable, set by autoconf.
1102 (LIBXT): Use $LIBXSM.
1103
4285ac5a
DN
11042010-04-21 Dan Nicolaescu <local_user@dannlt>
1105
3ec759e7
DN
1106 Remove NOMULTIPLEJOBS, unused.
1107 * s/template.h (NOMULTIPLEJOBS):
1108 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
1109
4285ac5a
DN
1110 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
1111 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
1112 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
1113 detects -znocombreloc and passes it to the linker
1114 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
1115
2807228d
GM
11162010-04-21 Glenn Morris <rgm@gnu.org>
1117
1118 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
1119
574c05e2
KK
11202010-04-21 Karel Klíč <kklic@redhat.com>
1121
1122 * Makefile.in (LIBSELINUX_LIBS): New.
1123 (LIBES): Add $LIBSELINUX_LIBS.
1124 * eval.c, lisp.h (call7): New function.
1125 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
1126 (Ffile_selinux_context, Fset_file_selinux_context):
1127 New functions.
1128 (Fcopy_file): New parameter preserve-selinux-context.
1129 (Frename_file): Preserve selinux context when renaming by copy-file.
1130
91eac4bb 11312010-04-21 Juanma Barranquero <lekktu@gmail.com>
4e2af782 1132 Eli Zaretskii <eliz@gnu.org>
91eac4bb 1133
50426a04
JB
1134 Don't depend on cm.c or termcap.c on Windows, use stubs.
1135 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
1136 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
1137 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
1138 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
1139 (sys_tputs, sys_tgetstr): New stubs.
1140 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
1141 (tputs, tgetstr): New; define to sys_*.
91eac4bb 1142
938efb77
JB
11432010-04-20 Juanma Barranquero <lekktu@gmail.com>
1144
1145 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
1146
b4bf28b7
SM
11472010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
1148
8b1e1112
SM
1149 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
1150 Just signal a warning rather than an error when inside a let.
1151 (Fmake_variable_frame_local): Add the same test.
1152
933ac235
SM
1153 * font.c (syms_of_font): Make the style table vars read-only.
1154
b4bf28b7
SM
1155 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
1156 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
1157
1158 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
1159
93d68d0c
EZ
11602010-04-20 Eli Zaretskii <eliz@gnu.org>
1161
1162 Fix R2L paragraph display on TTY.
1163
1164 * xdisp.c (unproduce_glyphs): New function.
1165 (display_line): Use it when produced glyphs are discarded from R2L
1166 glyph rows.
1167 (append_composite_glyph): In R2L rows, prepend the glyph rather
1168 than appending it.
1169
1170 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
1171 rather than append it. Set up the resolved_level and bidi_type
1172 attributes of the appended glyph.
283ccc18
EZ
1173 (produce_special_glyphs): Mirror the backslash continuation
1174 character in R2L lines.
93d68d0c 1175
283ccc18 1176 Implement display of R2L paragraphs in GUI sessions.
26cdf528 1177
283ccc18
EZ
1178 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
1179 append_stretch_glyph.
1180 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
1181 off-by-one error in computing x at end of text in the row.
1182 (append_stretch_glyph): In reversed row, prepend the glyph rather
1183 than append it. Set resolved_level and bidi_type of the glyph.
1184 (extend_face_to_end_of_line): If the row is reversed, prepend a
1185 stretch glyph whose width is such that the rightmost glyph will be
1186 drawn at the right margin of the window. Fix off-by-one error on
1187 TTY frames in testing whether a line needs face extension. Fix
1188 face extension at ZV. If this is the last glyph row, use
1189 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
1190 region face.
1191 (set_cursor_from_row, display_line): Use
26cdf528
EZ
1192 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
1193 row->continuation_lines_width.
283ccc18
EZ
1194 (next_element_from_buffer): Don't call bidi_paragraph_init if we
1195 are at ZV. Fixes a crash when reseated to ZV by
1196 try_window_reusing_current_matrix.
45903529
EZ
1197 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
1198 which happens with R2L glyph rows. Fixes a crash when inserting a
1199 character at end of an R2L line.
283ccc18
EZ
1200 (set_cursor_from_row): Don't be fooled by truncated rows: don't
1201 treat them as having zero-width characters. Improve comments.
1202 Don't reverse pos_before and pos_after for reversed glyph rows.
1203 Set cursor.x to negative value when the cursor might be on the
1204 left fringe.
1205 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
1206 left fringe, not the right one.
f951a506
EZ
1207 (notice_overwritten_cursor, draw_phys_cursor_glyph)
1208 (erase_phys_cursor): For reversed cursor_row, support cursor on
1209 the left fringe.
1210
283ccc18
EZ
1211 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
1212 of continuation indicators on the fringes.
1213 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
1214 left fringe.
1215
f951a506
EZ
1216 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
1217 draw cursor on the left fringe.
1218
1219 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
1220 cursor on the left fringe.
1221
f951a506
EZ
1222 * dispnew.c (update_text_area): Handle reversed desired rows when
1223 the cursor is on the left fringe.
1224 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
1225 below, not by 0, for when the cursor is on the left fringe.
1226
3bb49aaf
JD
12272010-04-20 Jan Djärv <jan.h.d@swipnet.se>
1228
1229 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
1230 widget is a scrollbar.
1231
c0be27fd
KH
12322010-04-20 Kenichi Handa <handa@m17n.org>
1233
1234 * charset.c (char_charset): Consider Vcharset_non_preferred_head
1235 only when the arg CHARSET_LIST is nil.
1236
ce5b453a
SM
12372010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
1238
1239 Make variable forwarding explicit rather the using special values.
1240 Basically, this makes the structure of buffer-local values and object
1241 forwarding explicit in the type of Lisp_Symbols rather than use
1242 special Lisp_Objects for that. This tends to lead to slightly more
1243 verbose code, but is more C-like, simpler, and makes it easier to make
1244 sure we handled all cases, among other things by letting the compiler
1245 help us check it.
1246 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
1247 Removing forwarding objects.
1248 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
1249 (struct Lisp_Symbol): Make the various forms of variable-forwarding
1250 explicit rather than hiding them inside Lisp_Object "values".
1251 (XFWDTYPE): New macro.
1252 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
1253 (XBUFFER_LOCAL_VALUE): Remove.
1254 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
1255 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
1256 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
1257 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
1258 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
1259 Remove the Lisp_Misc_* header.
1260 (struct Lisp_Buffer_Local_Value): Redefine.
1261 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
1262 (struct Lisp_Misc_Any): Add filler to get the right size.
1263 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
1264 Lisp_Intfwd.
1265 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
1266 (DEFVAR_KBOARD): Allocate a forwarding object.
1267 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
1268 (let_shadows_global_binding_p): New function.
1269 (union Lisp_Val_Fwd): New type.
1270 (make_blv): New function.
1271 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
1272 (store_symval_forwarding, swap_in_global_binding, Fboundp)
1273 (swap_in_symval_forwarding, find_symbol_value, Fset)
1274 (let_shadows_buffer_binding_p, set_internal, default_value)
1275 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
1276 (Fkill_local_variable, Fmake_variable_frame_local)
1277 (Flocal_variable_p, Flocal_variable_if_set_p)
1278 (Fvariable_binding_locus):
1279 * xdisp.c (select_frame_for_redisplay):
1280 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
1281 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
1282 * frame.c (store_frame_param):
1283 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
1284 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
1285 value structure.
1286 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
1287 (clone_per_buffer_values): Only adjust markers into the current buffer.
1288 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
1289 (Fbuffer_local_value, set_buffer_internal_1)
1290 (swap_out_buffer_local_variables):
1291 Adapt to the new symbol value structure.
1292 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
1293 (defvar_per_buffer): Take a new arg for the fwd object.
1294 (buffer_lisp_local_variables): Return a proper alist (different fix
1295 for bug#4138).
1296 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
1297 (Fgarbage_collect): Don't handle buffer_defaults specially.
1298 (mark_object): Handle new symbol value structure rather than the old
1299 special Lisp_Misc_* objects.
1300 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
1301 * term.c (set_tty_color_mode):
1302 * bidi.c (bidi_initialize): Don't access the ->value field directly.
1303 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
1304 a buffer_local_flags.
1305 * print.c (print_object): Get rid of impossible forwarding objects.
1306
fd3998ff
EZ
13072010-04-19 Eli Zaretskii <eliz@gnu.org>
1308
1309 * bidi.c (bidi_get_type, bidi_get_category)
1310 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
1311 (bidi_type_of_next_char, bidi_level_of_next_char):
1312 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 1313
e42cd1a7
JB
13142010-04-19 Juanma Barranquero <lekktu@gmail.com>
1315
1316 * dired.c (Ffile_attributes): Fix typo in docstring.
1317
6e104790 13182010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
1319
1320 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
1321 NSInteger (Bug#5811).
1322
6e104790 13232010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
1324
1325 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
1326 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
1327
6e104790 13282010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
1329
1330 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
1331
6e104790
SM
13322010-04-19 Chong Yidong <cyd@stupidchicken.com>
1333
1334 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
1335 terminal frames (Bug#5837).
1336
37dcfea0
EZ
13372010-04-19 Eli Zaretskii <eliz@gnu.org>
1338
d1da276f
EZ
1339 * .gdbinit (xsubchartable): New command.
1340
37dcfea0
EZ
13412010-04-19 Eli Zaretskii <eliz@gnu.org>
1342
1343 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 1344 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
1345 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
1346 and
1347 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
1348
e9515805
SM
13492010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
1350
1351 * alloc.c (Fpurecopy): Hash-cons if requested.
1352 (syms_of_alloc): Update purify-flag docstring.
1353
22aa44a8
JD
13542010-04-18 Jan Djärv <jan.h.d@swipnet.se>
1355
1356 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
1357 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
1358
ebb5722e
EZ
13592010-04-17 Eli Zaretskii <eliz@gnu.org>
1360
1361 Fix a crash when an NSM character is inserted at BEGV.
1362
1363 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
1364 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
1365 NEUTRAL_B or UNKNOWN_BT.
1366
0f4442ef
EZ
13672010-04-16 Eli Zaretskii <eliz@gnu.org>
1368
1369 * xdisp.c (set_cursor_from_row): Don't consider possibility of
1370 other rows with cursor unless they are different from this row and
1371 this row is part of a continued line. (Bug#5943)
1372
7d4e45f8
DN
13732010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
1374
1375 * s/freebsd.h: Restore osreldate.h include.
1376 Suggested by Naohiro Aota.
1377
5ba5ec85
J
13782010-04-16 Jan Djärv <jan.h.d@swipnet.se>
1379
1380 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
1381
20af301d
CY
13822010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
1383
1384 * s/cygwin.h: Avoid linking against static libgcc.
1385
a4b000fb
JL
13862010-04-15 Juri Linkov <juri@jurta.org>
1387
1388 * window.c: Add Qscroll_command.
1389 Remove Vscroll_preserve_screen_position_commands.
1390 (window_scroll_pixel_based, window_scroll_line_based): Check the
1391 `scroll-command' property on the last command instead of searching
1392 the last command in Vscroll_preserve_screen_position_commands.
1393 (syms_of_window): Initialize and staticpro `Qscroll_command'.
1394 Put Qscroll_command property on Qscroll_up and Qscroll_down.
1395 (scroll-preserve-screen-position): Doc fix.
1396 (Vscroll_preserve_screen_position_commands): Remove variable.
1397
bc319ba4
DN
13982010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
1399
6bb24457
DN
1400 * xdisp.c (message): Do not use NO_ARG_ARRAY.
1401
19d4c244
DN
14022010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
1403
1404 Reduce cpp use in Makefile.in.
1405 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
1406 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
1407 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
1408 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
1409 (CRT0_COMPILE): Remove, inline it in the only user.
1410
32129746
JL
14112010-04-14 Juri Linkov <juri@jurta.org>
1412
1413 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
1414 `scroll-up-command' and `M-v' from `scroll-down' to
1415 `scroll-down-command'.
1416
9013a7f8
JL
14172010-04-14 Juri Linkov <juri@jurta.org>
1418
1419 * window.c (Vscroll_preserve_screen_position_commands): New variable
1420 with the default value as the list of Qscroll_down and Qscroll_up.
1421 (window_scroll_pixel_based, window_scroll_line_based): Search the
1422 last command in the list Vscroll_preserve_screen_position_commands
1423 instead of comparing with Qscroll_up and Qscroll_down.
1424
4bef8d26
JD
14252010-04-13 Jan Djärv <jan.h.d@swipnet.se>
1426
92848133
JD
1427 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
1428 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
1429 does that.
1430
4bef8d26
JD
1431 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
1432 to zero.
1433
58b963f7
SM
14342010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
1435
84164a0d
SM
1436 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
1437
2b0a91e7
SM
1438 Try to solve the problem of spurious EOF chars in long lines of text
1439 sent to interactive subprocesses.
1440 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
1441 (system_process_attributes): Remove unused var `ttotal'.
1442 * process.c (send_process): Don't bother breaking long line with EOF
1443 chars when talking to ttys any more.
1444 (wait_reading_process_output): Output a warning when called in such
1445 a way that it could block without being interruptible.
1446
58b963f7
SM
1447 Try to detect file modification within the same second.
1448 * buffer.h (struct buffer): New field modtime_size.
1449 * buffer.c (reset_buffer): Initialize it.
1450 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
1451 (Fverify_visited_file_modtime): Check it.
1452 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
1453 (Fset_visited_file_modtime): Set (or clear) it.
1454
01f5787b
SM
14552010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
1456
1457 * process.c (status_notify): Remove unused var `ro'.
1458
83725342
JD
14592010-04-12 Jan Djärv <jan.h.d@swipnet.se>
1460
1461 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
1462 more than one visual (Bug#5938).
1463
b9465836
DN
14642010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
1465
50426a04
JB
1466 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
1467 Undefine.
b9465836 1468
8d9c8ece
DN
14692010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
1470
b1f52161
DN
1471 Remove C_SWITCH_SYSTEM_TEMACS.
1472 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
1473 (malloc, realloc, free): Use emacs, not temacs for conditional
1474 definition.
1475
1476 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
1477 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
1478
8d9c8ece
DN
1479 Use autoconf, not cpp for some variables.
1480 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
1481 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
1482 (ALL_CFLAGS): Use them as make variables.
1483 (really-lwlib, really-oldXMenu): Do not pass them.
1484
1ecb2d3f
JD
14852010-04-11 Jan Djärv <jan.h.d@swipnet.se>
1486
1487 * xmenu.c (apply_systemfont_to_dialog): New.
1488 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
1489
3a4fa2f2
SM
14902010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
1491
97e53006
SM
1492 * process.c (exec_sentinel): Preserve current-buffer.
1493
3a4fa2f2
SM
1494 * process.c (read_process_output): Move the save-current-buffer to
1495 apply to both the filter and the non-filter branches.
1496
88df7221
DN
14972010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
1498
1499 * s/msdos.h (UNEXEC): New definition.
1500
5634ff85
YM
15012010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1502
6eff5c3d
YM
1503 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
1504 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
1505
1506 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
1507 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
1508 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
1509 TRY_WINDOW_CHECK_MARGINS.
1510
1511 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
1512 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
1513 width only when it is for padding.
5634ff85 1514
b13aef54
J
15152010-04-09 Jan Djärv <jan.h.d@swipnet.se>
1516
1517 * xfns.c (Fx_show_tip): Call try_window in a loop until
1518 fonts_changed_p is zero (Bug#2423).
1519
21d28484
EZ
15202010-04-08 Eli Zaretskii <eliz@gnu.org>
1521
1522 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
1523 the end of TEXT_AREA. (Bug#5856)
1524
0269ef77
JD
15252010-04-08 Jan Djärv <jan.h.d@swipnet.se>
1526
1527 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
1528 HAVE_GCONF.
1529
5930fe97
EZ
15302010-04-08 Eli Zaretskii <eliz@gnu.org>
1531
1532 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
1533 prev.orig_type, for resolving type of NSM. (Bug#5858)
1534
99852628
JD
15352010-04-08 Jan Djärv <jan.h.d@swipnet.se>
1536
1537 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
1538 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
1539 in current_font.
1540 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
1541 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
1542 New functions.
1543 (syms_of_xsettings): Initialize current_font.
1544 defsubr Sfont_get_system_normal_font.
99852628
JD
1545
1546 * xsettings.h (Ffont_get_system_normal_font,
1547 xsettings_get_system_normal_font): Declare.
1548
1549 * xfns.c (extern xlwmenu_default_font): Remove.
1550 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
1551 to xlwmenu.c.
1552
1553 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
1554 menu items in UTF-8.
1555
1556 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
1557 (apply_systemfont_to_menu): New function.
1558 (set_frame_menubar, create_and_show_popup_menu): Call
1559 apply_systemfont_to_menu.
1560
7fc874c4
J
15612010-04-07 Jan Djärv <jan.h.d@swipnet.se>
1562
1563 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
1564 FRAME_LINE_TO_PIXEL_Y.
1565
1566 * xterm.c (x_set_window_size_1): Don't add border_width/height to
1567 pixelwidth/height.
1568
863bf481
DN
15692010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
1570
5e5a3b92
DN
1571 Simplify code for HP machines.
1572 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
1573 for GNU_LINUX, not needed.
1574 (UNEXEC, NEED_BSDTTY): Move definitions...
1575 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
1576
863bf481
DN
1577 * m/iris4d.h (UNEXEC): Move definition ...
1578 * s/irix6-5.h (UNEXEC): ... here.
1579
3e6bec3b
JD
15802010-04-04 Jan Djärv <jan.h.d@swipnet.se>
1581
1582 * xfns.c (set_machine_and_pid_properties): New function.
1583 (Fx_create_frame): Call set_machine_and_pid_properties.
1584
2912322b
SM
15852010-04-03 Eli Zaretskii <eliz@gnu.org>
1586
1502b819
EZ
1587 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
1588 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
1589 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
1590
2912322b
SM
1591 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
1592 in this function. (Bug#5703)
1593
15942010-04-03 Chong Yidong <cyd@stupidchicken.com>
1595
1596 * nsterm.h: Fix last change.
1597
c435b432
DN
15982010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
1599
a568f507
DN
1600 * m/intel386.h (NO_REMAP): Move definition ...
1601 * s/msdos.h (NO_REMAP): ... here.
1602
4cd9f6c2
DN
1603 * m/vax.h (CRT0_DUMMIES): Remove, unused.
1604
c435b432
DN
1605 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
1606 used on those platforms.
1607
42a2c622
DN
16082010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
1609
1610 Remove extern errno declarations.
1611 * xterm.c:
1612 * xrdb.c:
1613 * w32term.c:
1614 * unexec.c:
1615 * unexaix.c:
1616 * sysdep.c:
1617 * process.c:
1618 * lread.c:
1619 * keyboard.c:
1620 * floatfns.c:
1621 * filelock.c:
1622 * fileio.c:
1623 * emacs.c (main):
1624 * ecrt0.c:
1625 * dispnew.c:
1626 * callproc.c:
1627 * buffer.c: Remove errno extern declarations.
1628 * s/netbsd.h (NEED_ERRNO): Remove.
1629
8224f93d
DN
16302010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
1631
1632 Remove all uses of LIBX11_SYSTEM.
1633 * Makefile.in (LIBX11_SYSTEM): Remove.
1634 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
1635 instead.
1636
814062c7
EZ
16372010-04-01 Eli Zaretskii <eliz@gnu.org>
1638
ed68db4d
EZ
1639 Remove support for DJGPP v1.x (bug#5813).
1640
1641 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
1642 * s/msdos.h:
1643 * unexec.c (make_hdr, copy_text_and_data):
1644 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 1645 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
1646 (IT_set_terminal_modes, __write, _rename, gethostname)
1647 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
1648 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
1649 the value of __DJGPP__.
ed68db4d
EZ
1650 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
1651 compatibility code.
8224f93d
DN
1652 * lread.c:
1653 * gmalloc.c (memalign):
1654 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
1655 * emacs.c (main):
1656 * dosfns.c (init_dosfns):
ed68db4d
EZ
1657 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
1658
52f4d8d5
EZ
16592010-04-01 Eli Zaretskii <eliz@gnu.org>
1660
814062c7
EZ
1661 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
1662 string with `cursor' property comes from an `after-string'
1663 overlay. (Bug#5816)
1664
0dc2e11d
GM
16652010-04-01 Glenn Morris <rgm@gnu.org>
1666
1667 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
1668 Define as Makefile variables.
1669 (LIBX): Use above variables rather than directly using autoconf.
1670
1d29df59
DN
16712010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
1672
1673 Clean up BSD_SYSTEM use.
1674 * xterm.c:
1675 * process.c:
1676 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
1677 for including <sys/ioctl.h>.
1678 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
1679 code is only used for MSDOS.
1680
1546c559
JL
16812010-03-31 Juri Linkov <juri@jurta.org>
1682
1683 * image.c: Add `Qextension_data'.
1684 (syms_of_image): Initialize and staticpro `Qextension_data'.
1685 (Fimage_metadata): Rename from `Fimage_extension_data'.
1686 (gif_load): Put GIF extension data to the property
1687 `Qextension_data'.
1688
b8a1d5a1
CY
16892010-04-05 Chong Yidong <cyd@stupidchicken.com>
1690
1691 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
1692 terminal frames (Bug#5837).
1693
6521c534
CY
16942010-03-31 Chong Yidong <cyd@stupidchicken.com>
1695
1696 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
1697 * nsterm.h: Fix prototype.
1698
52c30783
EZ
16992010-03-31 Eli Zaretskii <eliz@gnu.org>
1700
1701 * xdisp.c (highlight_trailing_whitespace): Support highlight of
1702 trailing whitespace in right-to-left rows.
1703
855a0da7
SM
17042010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
1705
1706 Get rid of the direct_output optimizations.
1707 * keyboard.c (nonundocount): Remove extern declaration.
1708 (command_loop_1): Remove brittle optimisation for cheap and
1709 common operations.
1710 * xdisp.c (redisplay_internal): Don't bother checking
1711 redisplay_performed_directly_p any more.
1712 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
1713 any more.
1714 * dispnew.c (redisplay_performed_directly_p)
1715 (direct_output_for_insert, direct_output_forward_char):
1716 * dispextern.h (redisplay_performed_directly_p)
1717 (direct_output_for_insert, direct_output_forward_char): Remove.
1718 * cmds.c (nonundocount): Make it static.
1719
85738751 17202010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
1721
1722 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
1723
85738751 17242010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
1725
1726 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
1727 invisible (Bug#5766).
1728
85738751 17292010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 1730
855a0da7
SM
1731 * xdisp.c (x_consider_frame_title, update_window_cursor):
1732 Remove HAVE_NS conditionals.
194d44e7 1733 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
1734
1735 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
1736 filename for the title.
1737 (ns_set_doc_edited): Do nothing if the selected window is a
1738 minibuffer window.
1739
1740 * nsterm.h: Add prototypes for ns_set_name_as_filename and
1741 ns_set_doc_edited.
1742
1743 * nsterm.m: Remove unneeded prototype.
1744
85738751 17452010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
1746
1747 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
1748 in the DOC file. (Bug#5336)
1749
85738751 17502010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
1751
1752 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
1753
75d1428c
SM
17542010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
1755
1756 * window.c (keys_of_window): Remove redundant/overridden bindings.
1757
82043cfb
EZ
17582010-03-30 Eli Zaretskii <eliz@gnu.org>
1759
1760 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
1761 Restore original behavior when the iterator is not bidi_p.
1762
b5dd0ae7
DN
17632010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
1764
1765 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
1766
bd924a5d
EZ
17672010-03-30 Eli Zaretskii <eliz@gnu.org>
1768
1769 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
1770 are outside the range of cached character positions.
1771
3580374b
JB
17722010-03-30 Juanma Barranquero <lekktu@gmail.com>
1773
1774 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
1775
a7b02820
EZ
17762010-03-30 Eli Zaretskii <eliz@gnu.org>
1777
1778 Initial support for bidirectional editing.
1779
1780 * Makefile.in (obj): Include bidi.o.
1781 (bidi.o): New target.
1782
1783 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
1784 ($(BLD)/bidi.$(O)): New target.
1785
1786 * bidi.c: New file.
1787
1788 * buffer.h (struct buffer): New members bidi_display_reordering
1789 and bidi_paragraph_direction.
1790
1791 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
1792 and bidi_paragraph_direction.
1793 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
1794 and bidi-paragraph-direction.
1795 (Fbuffer_swap_text): Swap the values of
1796 bidi_display_reordering and bidi_paragraph_direction.
1797
1798 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
1799 (bidi_type_t, bidi_dir_t): New types.
1800 (bidi_saved_info, bidi_stack, bidi_it): New structures.
1801 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
1802 prev_stop, base_level_stop, and eol_pos.
1803 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
1804 (IT_STACK_SIZE): Enlarge to 5.
1805 (struct glyph_row): New member reversed_p.
1806 <string_buffer_position>: Update prototype.
1807 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
1808 glyph_row if bidi_it.paragraph_dir == R2L.
1809 (struct glyph): New members resolved_level and bidi_type.
1810
1811 * dispnew.c (direct_output_forward_char): Give up if we need bidi
1812 processing or buffer's direction is right-to-left.
1813 (prepare_desired_row): Preserve the reversed_p flag.
1814 (row_equal_p): Compare the reversed_p attributes as well.
1815
1816 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
1817 bidi_init_it and set it->paragraph_embedding from the current
1818 buffer's value of bidi_paragraph_direction.
1819 (reseat_1): Initialize bidi_it.first_elt.
1820 (set_iterator_to_next, next_element_from_buffer): Use the value of
1821 paragraph_embedding to determine the paragraph direction.
1822 (set_iterator_to_next): Under bidi reordering, call
1823 bidi_get_next_char_visually. Call bidi_paragraph_init if the
1824 new_paragraph flag is set in the bidi iterator.
1825 (next_element_from_buffer): If bidi_it.first_elt is set,
1826 initialize paragraph direction and find the first character to
1827 display in the visual order. If reseated to a middle of a line,
1828 prime the bidi iterator starting at the line's beginning. Handle
1829 the situation where we overstepped stop_charpos due to
1830 non-linearity of the bidi iteration. Likewise for when we back up
1831 beyond the previous stop_charpos. When moving across stop_charpos,
1832 record it in prev_stop.
1833 (display_line): Set row->end and it->start for the next row to the
1834 next character in logical order. Always extend reversed_p rows to
1835 the end of line, even if they end at ZV. Copy the reversed_p flag
1836 to the next glyph row. Keep calling set_cursor_from_row for
1837 bidi-reordered rows even if we already have a possible candidate
1838 for cursor position. Set row_end after all the row's glyphs have
1839 been produced, by looping over the glyphs. Record the position
1840 after EOL in it->eol_pos, and use it to set end_pos of the last
1841 row produced for a continued line.
1842 <Qright_to_left, Qleft_to_right>: New variables.
1843 (syms_of_xdisp): Initialize and staticpro them.
1844 (string_buffer_position_lim): New function.
1845 (string_buffer_position): Most of code moved to
1846 string_buffer_position_lim. Last argument and return value are
1847 now EMACS_INT; all callers changed.
1848 (set_cursor_from_row): Rewritten to support bidirectional text and
1849 reversed glyph rows.
1850 (text_outside_line_unchanged_p, try_window_id): Disable
1851 optimizations if we are reordering bidirectional text and the
1852 paragraph direction can be affected by the change.
1853 (append_glyph, append_composite_glyph)
1854 (produce_image_glyph, append_stretch_glyph): Set the
1855 resolved_level and bidi_type members of each glyph.
1856 (append_glyph): If the glyph row is reversed, prepend the glyph
1857 rather than appending it.
1858 (handle_stop_backwards): New function.
1859 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
1860 (reseat): call handle_stop_backwards to recompute prev_stop and
1861 base_level_stop for the new position.
1862 (handle_invisible_prop): Under bidi iteration, skip invisible text
1863 using bidi_get_next_char_visually. If we are `reseat'ed, init the
1864 paragraph direction. Update IT->prev_stop after skipping
1865 invisible text.
1866 (move_it_in_display_line_to): New variables prev_method
1867 and prev_pos. Compare for strict equality in
1868 BUFFER_POS_REACHED_P.
1869 (try_cursor_movement): Examine all the candidate rows that occlude
1870 point, to return the best match. If rows are bidi-reordered
1871 and point moved backwards, back up to the row that is not a
1872 continuation line, and start looking for a suitable row from
1873 there.
1874
1875 * term.c (append_glyph): Reverse glyphs by pre-pending them,
1876 rather than appending, if the glyph_row's reversed_p flag is set.
1877 Set the resolved_level and bidi_type members of each glyph.
1878
1879 * .gdbinit (pbiditype): New command.
1880 (pgx): Use it to display bidi level and type of the glyph.
1881 (pitx): Display some bidi information about the iterator.
1882 (prowlims, pmtxrows): New commands.
1883
32a8894e
DN
18842010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
1885
1886 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
1887 * s/usg5-4.h (LIBS_DEBUG):
1888 * s/irix6-5.h (C_DEBUG_SWITCH):
1889 * s/gnu-linux.h (LIBS_DEBUG):
1890 * s/darwin.h (LIBS_DEBUG):
1891 * s/bsd-common.h (LIBS_DEBUG):
1892 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
1893 * m/iris4d.h (LIBS_DEBUG):
1894 * m/hp800.h (LIBS_DEBUG): Remove definitions.
1895
1896 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
1897 (LIBS_DEBUG): Remove definition.
1898
649dbf36
CY
18992010-03-27 Chong Yidong <cyd@stupidchicken.com>
1900
1901 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
1902 Windows.
1903
cad4261f
YM
19042010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1905
1906 * process.c (Fmake_network_process): Don't call turn_on_atimers around
1907 `connect' (Bug#5723).
1908
cd591dbc
HE
19092010-03-25 Helmut Eller <eller.helmut@gmail.com>
1910
1911 * process.c (Fmake_network_process): Call `select' for interrupted
1912 `connect' rather than creating new socket (Bug#5173).
1913
e867cb5d 19142010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
1915
1916 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
1917
1918 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
1919
1920 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
1921
e867cb5d 19222010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
1923
1924 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
1925 XLoadQueryFont.
1926
e867cb5d 19272010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
1928
1929 * coding.c (decode_coding_ccl): Fix previous change for the
1930 multibyte case.
fb608df3
KH
1931 (encode_coding_ccl): Don't setup ccl program here. Fix for the
1932 case that the output buffer is fullfilled.
1933 (encode_coding): Setup ccl program here.
fbdc1721 1934
e867cb5d 19352010-03-24 Andreas Politz <politza@fh-trier.de> (tiny change)
35cd7cd6
CY
1936
1937 * editfns.c (Fformat): Account for string precision when computing
1938 field width (Bug#5710).
1939
5845f0ed
DN
19402010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
1941
814fb708
DN
1942 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
1943
5845f0ed
DN
1944 Simplify LIBS_MACHINE definitions.
1945 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
1946 * m/iris4d.h (LIBS_MACHINE): Likewise.
1947 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
1948 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 1949 * s/netbsd.h: Remove commented out code.
5845f0ed 1950
b7064064
DN
19512010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
1952
df7734b2
DN
1953 Remove dead code dealing with POSIX_SIGNALS.
1954 * atimer.c (set_alarm): Remove dead code, all USG systems define
1955 POSIX_SIGNALS.
1956 * data.c (arith_error): Likewise.
1957 * keyboard.c (input_available_signal, handle_user_signal)
1958 (interrupt_signal): Likewise.
1959 * process.c (sigchld_handler): Likewise.
1960 (create_process): Remove if 0 code. Remove HPUX conditional when
1961 !defined (POSIX_SIGNALS), it cannot be true.
1962 * syssignal.h: Remove USG5_4 and USG conditionals when
1963 !POSIX_SIGNALS, they cannot be true.
1964
b7064064
DN
1965 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
1966 NO_SOCK_SIGIO, not used anymore.
1967
55da5ee3
DN
19682010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
1969
0be96e3a
DN
1970 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
1971 support vax on BSDs.
1972
55da5ee3
DN
1973 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
1974 * s/aix4-2.h (ORDINARY_LINK): ... here.
1975
c0282183
AS
19762010-03-21 Andreas Schwab <schwab@linux-m68k.org>
1977
82c3d67a
AS
1978 * Makefile.in (abs_builddir): Define.
1979 (bootstrap_exe): Use it.
1980 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 1981
3613edce
SM
19822010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
1983
1984 * Makefile.in (bootstrap_exe): Use an absolute name.
1985
7f110ddc
DN
19862010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
1987
22e87574
DN
1988 Remove support for old GNU/Linux using libc version 5.
1989 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
1990 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
1991
05a670e6
DN
1992 Consolidate redundant definitions in s/bsd-common.h.
1993 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
1994 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
1995 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
1996 doing it in all files that include this one.
1997 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
1998 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
1999 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2000 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2001 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2002 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2003 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2004 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2005 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2006
2968f561
DN
2007 Consolidate redundant definitions.
2008 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
2009 it's undefined in all files that include this one.
2010 (POSIX_SIGNALS): Define here instead of doing it in all files that
2011 include this one.
2012 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2013 (POSIX_SIGNALS): Do not define.
2014 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2015 (POSIX_SIGNALS): Do not define.
2016 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2017 (POSIX_SIGNALS): Do not define.
2018
15d25dc0
DN
2019 Remove support for old UNIX System V systems.
2020 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
2021 * s/usg-5-4-2.h: Remove.
2022
07e339e4
DN
2023 Remove support for Solaris on PPC and for old versions.
2024 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
2025 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
2026 that cancel each other.
2027 * s/sol2-3.h:
2028 * s/sol2-4.h:
2029 * s/sol2-5.h: Remove.
2030 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
2031 (NO_REMAP): Remove, unused.
2032 (UNEXEC): Move definition ...
2033 * s/aix4-2.h (UNEXEC): ... here.
2034
7f110ddc
DN
2035 * s/openbsd.h: Remove support for non-ELF and for systems that do
2036 not support shared libraries.
2037 * s/netbsd.h:
2038 * s/freebsd.h: Likewise.
2039
605f35cd
DN
20402010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2041
2042 Remove non-working support for lynxos 3.0.
2043 * s/lynxos.h: Remove file.
2044
2045 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
2046 COFF_BSD_SYMBOLS, nothing defines it anymore.
2047
aed71cf4
DN
20482010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2049
2050 Remove obsolete uses of HAVE_SHM.
2051 * emacs.c (standard_args):
2052 (Fdump_emacs):
2053 (syms_of_emacs): Remove code depending on HAVE_SHM.
2054
2055 * alloc.c: Remove HAVE_SHM dependent definition.
2056
2057 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
2058
aded53ff
GM
20592010-03-18 Glenn Morris <rgm@gnu.org>
2060
17284745
GM
2061 * emacs.c (USAGE4): Hard-code bug address.
2062 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
2063 (bug_reporting_address): Remove.
2064 (main): Don't call bug_reporting_address.
2065
aded53ff
GM
2066 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
2067 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
2068
303500aa
CY
20692010-03-15 Chong Yidong <cyd@stupidchicken.com>
2070
2071 * xfns.c (Fx_create_frame):
2072 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
2073 on left.
2074
cef3058f
CY
20752010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
2076
2077 * editfns.c (Fformat): Account for string precision when computing
2078 field width (Bug#5710).
2079
a647d59d
CY
20802010-03-12 Chong Yidong <cyd@stupidchicken.com>
2081
4fa42018
CY
2082 * xfns.c (Fx_create_frame): Set default to Qright.
2083
a647d59d
CY
2084 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
2085 all window systems.
2086
6da23aaa
EZ
20872010-03-12 Eli Zaretskii <eliz@gnu.org>
2088
a96f6398 2089 These changes remove termcap.c from the build on Posix platforms.
83d02def 2090 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
2091 (MSDOS_OBJ): ...to here.
2092 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
2093 now identical to when LIBS_TERMCAP is defined.
2094
2095 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
2096
2097 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
2098
a96f6398 2099 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 2100
288f9fc0
CY
21012010-03-10 Chong Yidong <cyd@stupidchicken.com>
2102
2103 * Branch for 23.2.
2104
d48cd3f4
SM
21052010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
2106
2107 Cleanup setup of gl_state in various parts of the code.
2108 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
2109 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
2110 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
2111 (skip_chars):
2112 * regex.c (regex_compile): Use it.
2113 (re_compile_pattern): Don't set gl_state.current_syntax_table since
2114 it's now set in regex_compile when/if we need it.
2115
618db430
SM
21162010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
2117
c0335e02
SM
2118 Make it possible to C-g in a tight bytecode loop again (bug#5680).
2119 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
2120 (QUIT): Use it to consolidate code and remove redundancy.
2121 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
2122
254c06a8
SM
2123 * regex.c (regex_compile): Setup gl_state as well.
2124
618db430
SM
2125 * syntax.c (skip_chars): Setup gl_state (bug#3823).
2126 (in_classes): Use CONSP before XCAR/XCDR.
2127
233f0c9f
CY
21282010-03-03 Chong Yidong <cyd@stupidchicken.com>
2129
2130 * keymap.c (Fwhere_is_internal): Use Fequal to compare
2131 definitions, so that keyboard macros are correctly handled
2132 (Bug#5481).
2133
75f80e63
EZ
21342010-03-02 Eli Zaretskii <eliz@gnu.org>
2135
2136 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
2137 text that could be relocated inside the call to emacs_mule_char.
2138 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
2139 (CODING_DECODE_CHAR): Add a comment describing its purpose.
2140
dcfb9bc4
KH
21412010-03-02 Kenichi Handa <handa@m17n.org>
2142
fc9a17bc
KH
2143 * character.c (parse_str_as_multibyte): Fix handling of the
2144 multibyte form of raw-bytes.
2145 (str_as_multibyte): Likewise.
2146
dcfb9bc4
KH
2147 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
2148 form of raw-bytes.
2149
412c01b6
CY
21502010-02-28 Chong Yidong <cyd@stupidchicken.com>
2151
2152 * charset.c (load_charset_map_from_file)
2153 (load_charset_map_from_vector): Zero out allocated
2154 charset_map_entries before using them.
2155
df7e1ea0
AS
21562010-02-27 Andreas Schwab <schwab@linux-m68k.org>
2157
2158 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
2159
fe69a722
CY
21602010-02-27 Chong Yidong <cyd@stupidchicken.com>
2161
4ed28cf4
CY
2162 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
2163 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 2164
7379cfce
KH
21652010-02-26 Kenichi Handa <handa@m17n.org>
2166
f88cc4d6
KH
2167 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
2168
7379cfce
KH
2169 * xdisp.c (reseat_to_string): Fix previous change.
2170
cf2fdcfb
CY
21712010-02-26 David Reitter <david.reitter@gmail.com>
2172
2173 * nsfont.m (nsfont_draw): ns_antialias_text should be a
2174 Lisp_Object (Bug#4736).
2175
cc6c7c75
KH
21762010-02-25 Kenichi Handa <handa@m17n.org>
2177
2178 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
2179
32e737d7
JD
21802010-02-24 Jan Djärv <jan.h.d@swipnet.se>
2181
2182 * xterm.c (XTflash): Move declarations before statements.
2183
2184 * gtkutil.c (xg_get_gdk_display): Remove (unused).
2185 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
2186 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
2187 (xg_create_tool_bar): Remove unused variables.
2188 (x_wm_set_size_hint): Move declarations before statements.
2189 (xg_create_frame_widgets): Remove variable grav,
2190
676cae9f
CY
21912010-02-21 Chong Yidong <cyd@stupidchicken.com>
2192
2193 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
2194
886cc2b8
SM
21952010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
2196
2197 * term.c (fatal): Add a final \n if needed (bug#5596).
2198
ddb2d8e2
CY
21992010-02-18 Chong Yidong <cyd@stupidchicken.com>
2200
2201 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
2202
2a4f8d3d
GM
22032010-02-18 Glenn Morris <rgm@gnu.org>
2204
2205 * callint.c (Finteractive): Doc fix.
2206
ebaf11b6
KH
22072010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
2208
886cc2b8
SM
2209 * coding.c (record_conversion_result):
2210 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
2211 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
2212 memory allocation error.
2213
d0396581
KH
22142010-02-17 Kenichi Handa <handa@m17n.org>
2215
886cc2b8
SM
2216 * coding.c (decode_coding_ccl): Don't setup ccl program here.
2217 Fix for the case that the output buffer is fullfilled.
d0396581
KH
2218 (decode_coding): Setup ccl program here. Keep looping when the
2219 decoder stopped because the output buffer is
2220 fullfilled (bug#5534).
2221
2222 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
2223
98599f74
JD
22242010-02-13 Jan Djärv <jan.h.d@swipnet.se>
2225
471e4f04 2226 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 2227 bug #5571.
886cc2b8 2228 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 2229 overdrawn.
98599f74 2230
182659ae
JD
22312010-02-10 Jan Djärv <jan.h.d@swipnet.se>
2232
2233 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
2234 doing_interact here.
2235 (ice_connection_closed): New function.
2236 (x_session_check_input, smc_die_CB, ice_io_error_handler)
2237 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
2238 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
2239 returns I/O error.
2240 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
2241 bug #5512.
2242
9be32c4e 22432010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
2244
2245 * nsfont.m (nsfont_open): The system's value for the font descent
2246 is negative, so round it down to avoid clipping.
2247
a2f3eb19
CY
22482010-02-06 Chong Yidong <cyd@stupidchicken.com>
2249
2250 * charset.c (load_charset_map_from_file)
2251 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 2252 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 2253
3088147c
CY
22542010-02-05 Chong Yidong <cyd@stupidchicken.com>
2255
2256 * charset.c (load_charset_map_from_file): Allocate large
2257 charset_map_entries structure on the heap rather than the stack.
2258 (Bug#5526).
2259
b57d9029
KH
22602010-01-31 Kenichi Handa <handa@m17n.org>
2261
2262 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 2263 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 2264
c67d885b
CY
22652010-01-31 Chong Yidong <cyd@stupidchicken.com>
2266
2267 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
2268 <deactivated@gmail.com> (Bug#3605).
2269
8fab2362
CY
22702010-01-31 David De La Harpe Golden <david@harpegolden.net>
2271
2272 * fileio.c (Frename_file): Correctly rename symlinks to
2273 directories (Bug#5496).
2274
cb2a62f2
CY
22752010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
2276
2277 * nsterm.m (ns_ring_bell): Handle visible bell like X.
2278
944c7a26
AS
22792010-01-30 Andreas Schwab <schwab@linux-m68k.org>
2280
2281 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
2282
c024ac08
CY
22832010-01-29 Chong Yidong <cyd@stupidchicken.com>
2284
2285 * frame.c (DEFAULT_ROWS): Change default to 35.
2286
2287 * xfns.c (x_default_font_parameter): Change default XFT font to
2288 monospace-10 (Bug#3643).
2289
af93af83
EZ
22902010-01-29 Eli Zaretskii <eliz@gnu.org>
2291
2292 * w32inevt.c (key_event): Remove unnecessary comparison of
2293 event->uChar.AsciiChar with 128.
2294
ca0eb708
CY
22952010-01-28 Chong Yidong <cyd@stupidchicken.com>
2296
b242dbfc
CY
2297 * fileio.c (Frename_file): Fix last change (Bug#5487).
2298
ca0eb708
CY
2299 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
2300
2301 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
2302
45d45af5
JD
23032010-01-28 Jan Djärv <jan.h.d@swipnet.se>
2304
2305 * xfns.c (Fx_create_frame): Remove window size matching code from
2306 2010-01-15.
2307 (x_get_current_desktop, x_get_desktop_workarea): Remove
2308
7e233730
JR
23092010-01-27 Jason Rumney <jasonr@gnu.org>
2310
2311 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 2312 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 2313
86e893e3
KH
23142010-01-27 Kenichi Handa <handa@m17n.org>
2315
2316 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 2317 pattern string (Bug#4209).
86e893e3 2318
8719abec
CY
23192010-01-27 David De La Harpe Golden <david@harpegolden.net>
2320
2321 * fileio.c (Frename_file): Call copy-directory and
2322 delete-directory for directories, in order to handle cross-device
2323 renaming (Bug#3353).
2324
844794c8
JD
23252010-01-25 Jan Djärv <jan.h.d@swipnet.se>
2326
aa3e13b5 2327 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 2328 sizes 24 and 10. Bug #3643.
844794c8 2329
bd4b5750
SM
23302010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
2331
8dc1adf6 2332 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
2333 * keymap.c (shadow_lookup): Add `remap' arg.
2334 (describe_map, describe_vector): Update calls to shadow_lookup.
2335 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
2336 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
2337 perform remapping during shadow_lookup check of remapped_sequences.
2338
285d07e2
CY
23392010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
2340
2341 * image.c (png_load): Use png_sig_cmp instead of the obsolete
2342 png_check_sig, which has been removed in libpng 1.4.
2343
c6d09b8d
CY
23442010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
2345
2346 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
2347 lacks this header file).
2348
3d782998
YM
23492010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2350
2351 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
2352 as in Emacs 22.
2353
2aff7c53
YM
23542010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2355
2356 * lisp.h (make_pure_string): String pointer arg now points to const.
2357
2358 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
2359 args now point to const.
2360
74327f7a
EZ
23612010-01-22 Eli Zaretskii <eliz@gnu.org>
2362
2363 * lread.c (Fload): Don't treat files without .elc extension as
2364 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
2365 them. (bug#5303)
2366
4d1e6632
KH
23672010-01-20 Kenichi Handa <handa@m17n.org>
2368
2369 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
2370 treat the source as actual byte sequence.
2371
1fdede8f
AM
23722010-01-19 Alan Mackenzie <acm@muc.de>
2373
2374 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 2375 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
2376 `signal_after_change_p' to `coherent_change_p', and make the
2377 invocation of `modify_region' conditional on it.
2378
67477f30
JD
23792010-01-19 Jan Djärv <jan.h.d@swipnet.se>
2380
2381 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
2382 for debug purpose.
2383 (syms_of_xsettings): Declare xft-settings.
2384
244b023e
CY
23852010-01-18 Chong Yidong <cyd@stupidchicken.com>
2386
2387 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
2388
617364fe
CY
23892010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
2390
2391 * xterm.c (event_handler_gdk): Block input (Bug#5037).
2392
4fe22cdf
CY
23932010-01-16 Chong Yidong <cyd@stupidchicken.com>
2394
2395 * emacs.c (standard_args): Adjust arg priorities to reflect how
2396 they are processed in startup.el.
2397
e118d2be
AS
23982010-01-16 Andreas Schwab <schwab@linux-m68k.org>
2399
2400 * Makefile.in (lisp, shortlisp): Update.
2401
523ae620
SM
24022010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
2403
2404 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
2405 code, link the new kboard into all_kboard before running Lisp code,
2406 and protect the new terminal with GCPRO (Bug#5365).
2407 (x_term_init): Remove unused var `atom'.
2408 (x_delete_display, x_delete_terminal): Remove unused var `i'.
2409
f0d13888
JD
24102010-01-15 Jan Djärv <jan.h.d@swipnet.se>
2411
2412 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
2413 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
2414 to find out usable size of the desktop. Don't make frames larger than
ac146f82 2415 this. Bug #3643.
f0d13888 2416
cc320f07
KH
24172010-01-15 Kenichi Handa <handa@m17n.org>
2418
2419 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
2420
7ffdf101
CY
24212010-01-15 Chong Yidong <cyd@stupidchicken.com>
2422
2423 * nsterm.m (Qnone): Define.
2424
2425 * nsfns.m (Qnone): Move definition to nsterm.m.
2426
d12bd917
KH
24272010-01-14 Kenichi Handa <handa@m17n.org>
2428
2429 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
2430 systems.
2431
d9a7c140
KH
24322010-01-14 Kenichi Handa <handa@m17n.org>
2433
2434 Make auto-composition work on all buffers even if they are
2435 fundamental mode.
2436
2437 * composite.c (Vauto_composition_mode): New variable.
2438 (composition_compute_stop_pos): Check Vauto_composition_mode
2439 instead of Vauto_composition_function.
2440 (composition_adjust_point, Ffind_composition_internal): Likewise.
2441 (syms_of_composite): Declare Lisp variable
2442 "auto-composition-mode" here.
2443
63286bb2
CY
24442010-01-13 Chong Yidong <cyd@stupidchicken.com>
2445
2446 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
2447 during call to vendor-specific-keysyms (Bug#5365).
2448
c2623ee7
YM
24492010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2450
2451 * keyboard.c (input_available_signal) [SYNC_INPUT]:
2452 Call SIGNAL_THREAD_CHECK (Bug#5333).
2453
2454 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
2455 Call SIGNAL_THREAD_CHECK.
2456
0b5397c2
SM
24572010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
2458
2459 Try to fix bug#5314. This is probably not the final word, tho.
2460 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
2461 recent-auto-save-p as a side-effect.
2462 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
2463 * buffer.c (Fkill_buffer, reset_buffer):
2464 * editfns.c (Fsubst_char_in_region):
2465 * fileio.c (Finsert_file_contents, Fdo_auto_save)
2466 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
2467
dc954cb2
KH
24682010-01-13 Kenichi Handa <handa@m17n.org>
2469
2470 Display buffer name, etc. in mode line by composing correctly.
2471
2472 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
2473 STRING is not nil.
0b5397c2 2474 (display_mode_element): Adjust for the change of
dc954cb2
KH
2475 decode_mode_spec and display_line.
2476 (decode_mode_spec): Change arg MULTIBYTE to STRING.
2477 (display_string): Handle the case that STRING is non-null and
2478 LISP_STRING is not nil.
2479
0b5397c2
SM
2480 * xterm.c (x_draw_composite_glyph_string_foreground):
2481 Pay attention to s->face->overstrike.
dc954cb2
KH
2482
2483 * composite.c (composition_reseat_it): Don't check PT if STRING is
2484 non nil.
2485
4a00eaca
YM
24862010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2487
2488 * keyboard.c (read_char): Don't apply previous change when current
2489 buffer is unchanged by command execution.
2490
60abb287
JD
24912010-01-12 Jan Djärv <jan.h.d@swipnet.se>
2492
2493 * keyboard.c (read_char): Return after executing from special map.
2494
893db5bc
GM
24952010-01-12 Glenn Morris <rgm@gnu.org>
2496
2497 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
2498 bug-gnu-emacs rather than emacs-pretest-bug.
2499
4d03ece0
CY
25002010-01-11 Chong Yidong <cyd@stupidchicken.com>
2501
2502 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
2503 initializing the Lisp variables that depend on them.
2504
1df47e38
YM
25052010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2506
2507 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
2508 Clear areas that will not be updated after change of menu bar lines.
2509 Clear the menu bar window's current matrix when the window gets empty.
2510
2f1c6384
CY
25112010-01-09 Chong Yidong <cyd@stupidchicken.com>
2512
e398c61c
CY
2513 * intervals.h, textprop.c (extend_property_ranges): Return value
2514 and args changed. Discard properties that begin at or after the
2515 new end (Bug#5306).
2516
2517 * editfns.c (Fformat): Caller changed.
2518
e5a29a10
CY
2519 * nsterm.m (ns_set_default_prefs): Delete function.
2520 (syms_of_nsterm): Initialize ns_command_modifier,
2521 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
2522 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
2523
2f1c6384
CY
2524 * xdisp.c (pos_visible_p): Check for invisible text at the correct
2525 position (Bug#4040).
2526
d427a9fa
EZ
25272010-01-09 Eli Zaretskii <eliz@gnu.org>
2528
2529 * editfns.c (Ffloat_time): Doc fix.
2530
21b9df2f
JD
25312010-01-09 Jan Djärv <jan.h.d@swipnet.se>
2532
2533 * xfns.c (Fx_create_frame): Don't create frame larger than display
2534 by default bug#3643.
2535
4b00d3b1
YM
25362010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2537
2538 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
2539 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
2540 windows above internal border.
2541
2542 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
2543 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
2544 windows above internal border.
2545
2546 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
2547 tool bar windows specially.
2548
2549 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
2550
2551 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
2552 specially.
2553 (XTflash): Take account of menu bar height.
2554
2555 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
2556 specially.
2557
5075d853
JD
25582010-01-08 Jan Djärv <jan.h.d@swipnet.se>
2559
ac146f82 2560 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
2561 also be true before we can return early (bug #5339).
2562
474217c8
CY
25632010-01-06 David Reitter <david.reitter@gmail.com>
2564
2565 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
2566 (Fns_display_usable_bounds): Rewrite, computing bounds properly
2567 (Bug#3233).
2568
c0e6d47d
JD
25692010-01-06 Jan Djärv <jan.h.d@swipnet.se>
2570
d0cf45b7
JD
2571 * font.c (font_open_entity): Enable chache and call cached_font_ok
2572 for the driver if defined.
2573 (QCuser_spec): New symbol.
2574 (font_spec_from_name): Save name as user-spec.
2575 (font_load_for_lface): Keep user-spec instead of name.
2576 (font_open_by_name): Save name as user-spec.
2577 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 2578 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
2579
2580 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
2581 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
2582 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
2583
2584 * font.h (struct font_driver): Add cached_font_ok.
2585
c0e6d47d
JD
2586 * xterm.c (x_clear_frame): Queue draw for scroll bars.
2587
7c583cd8
JD
25882010-01-05 Jan Djärv <jan.h.d@swipnet.se>
2589
2590 * xterm.c (x_new_font): Move code for setting rows/cols before
2591 resizing ...
ac146f82 2592 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
2593
2594 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
2595 (xg_frame_resized, xg_frame_set_char_size):
2596 Call xg_clear_under_internal_border.
7c583cd8 2597 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 2598
03f77f0a
CY
25992010-01-05 Chong Yidong <cyd@stupidchicken.com>
2600
2601 * keyboard.c (read_key_sequence): Catch keyboard switch after
2602 making a new tty frame (Bug#5095).
2603
2a1ef5be
KH
26042010-01-05 Kenichi Handa <handa@m17n.org>
2605
2606 * fontset.c (fontset_find_font): Fix getting the frame pointer.
2607
e3eb1dae
SM
26082010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
2609
2610 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
2611 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
2612 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
2613
777013f2
MA
26142010-01-03 Michael Albinus <michael.albinus@gmx.de>
2615
2616 * dbusbind.c (xd_add_watch): Improve debug message.
2617 (xd_remove_watch): Improve debug message. If DATA is the session
2618 bus, unset D-Bus session environment.
2619 (Fdbus_init_bus): Pass the bus as argument to
2620 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 2621
8932b1c2
CY
26222010-01-01 Chong Yidong <cyd@stupidchicken.com>
2623
87231e2c
CY
2624 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
2625
4801c5fa
CY
2626 * lread.c (syms_of_lread): Make it clearer that these are the
2627 names of loaded files (Bug#5068).
2628
8932b1c2
CY
2629 * eval.c (run_hook_with_args): Handle the case where the global
2630 value has the obsolete single-function form (Bug#5026).
2631
11e3c684
CY
26322009-12-27 Chong Yidong <cyd@stupidchicken.com>
2633
2634 * minibuf.c (Fall_completions): Minor optimization.
2635
5b28ce35
EZ
26362009-12-26 Eli Zaretskii <eliz@gnu.org>
2637
5ce6e4f4
JB
2638 * .gdbinit (pgx): Fix display of composite glyphs.
2639 Display cmp.from and cmp.to as well.
2640 (pitx): Fix last change.
5b28ce35 2641
bcffff46
KH
26422009-12-25 Kenichi Handa <handa@m17n.org>
2643
2644 * composite.h (composition_adjust_point): Update prototype.
2645
2646 * composite.c (composition_reseat_it): Don't make a composition
2647 spanning over point.
2648 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
2649 composable characters.
2650 (composition_adjust_point): New arg NEW_PT. Callers changed.
2651
2652 * keyboard.c (command_loop_1): Force redisplay if the last point
2653 was within a composition.
2654 (adjust_point_for_property): Don't adjust point for automatic
2655 composition when called after buffer modification.
2656
3f670e9a
EZ
26572009-12-19 Eli Zaretskii <eliz@gnu.org>
2658
5ce6e4f4
JB
2659 * .gdbinit (pitx): Don't use enum names, use their values.
2660 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
2661 (pgx): Don't use enum names, use their values.
2662 (pitmethod): New helper command.
2663 (pitx): Use it to display iteration method.
2664 (pgrowit): New command.
2665
ad903955
EZ
2666 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
2667
3f670e9a
EZ
2668 Update dependencies in Makefile.in.
2669
2670 * Makefile.in (alloc.o): Depend on termhooks.h.
2671 (atimer.o): Depend on blockinput.h.
2672 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
2673 and frame.h.
2674 (callint.o): Depend on systime.h, coding.h, and composite.h.
2675 (callproc.o): Depend on buffer.h.
2676 (casefiddle.o): Don't depend on charset.h.
2677 (casetab.o): Depend on character.h.
2678 (ccl.o): Depend on composite.h.
2679 (chartab.o): Depend on ccl.h.
2680 (cm.o): Depend on dispextern.h.
2681 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
2682 (coding.o): Don't depend on $(INTERVALS_H).
2683 (composite.o): Don't depend on dispextern.h explicitly (it's in
2684 $(INTERVALS_H)). Depend on ccl.h.
2685 (data.o): Depend on systime.h, coding.h, composite.h,
2686 dispextern.h, font.h, and ccl.h.
2687 (dired.o): Depend on composite.h.
2688 (dispnew.o): Depend on coding.h. Don't depend explicitly on
2689 composite.h (it's in $(INTERVALS_H)).
2690 (doc.o): Depend on systime.h, coding.h, and composite.h.
2691 (editfns.o): Don't depend explicitly on dispextern.h.
2692 (emacs.o): Depend on frame.h and coding.h.
2693 (eval.o): Depend on coding.h, composite.h, and xterm.h.
2694 (fileio.o): Depend on frame.h and commands.h. Don't depend
2695 explicitly on dispextern.h.
2696 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
2697 composite.h.
2698 (fns.o): Don't depend on termhooks.h.
2699 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
2700 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
2701 coding.h, $(INTERVALS_H), window.h, xterm.h.
2702 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
2703 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
2704 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
2705 fontset.h, ccl.h, and ftfont.h.
2706 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
2707 (gtkutil.o): Depend on dispextern.h and composite.h.
2708 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
2709 termhooks.h, and ccl.h.
2710 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
2711 (intervals.o): Depend on systime.h and coding.h.
2712 (keyboard.o): Depend on composite.h and coding.h.
2713 (keymap.o): Depend on coding.h and frame.h.
2714 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
2715 (macros.o): Depend on systime.h, coding.h, and composite.h.
2716 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
2717 and atimer.h.
2718 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
2719 dispextern.h explicitly.
0b5397c2
SM
2720 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
2721 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
2722 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
2723 (regex.o): Don't depend on charset.h.
2724 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
2725 (search.o): Don't depend explicitly on composite.h.
2726 (sound.o): Depend on atimer.h and systime.h.
2727 (syntax.o): Don't depend explicitly on composite.h.
2728 (sysdep.o): Depend on coding.h and composite.h.
2729 (term.o): Depend on xterm.h and buffer.h.
2730 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
2731 (textprop.o): Don't depend on dispextern.h explicitly.
2732 (undo.o): Depend on dispextern.h.
2733 (window.o): Depend on coding.h and termhooks.h. Don't depend on
2734 dispextern.h and composite.h explicitly.
2735 (xdisp.o): Depend on ccl.h.
2736 (xfaces.o): Depend on coding.h and ccl.h.
2737 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
2738 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
2739 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
2740 ftfont.h.
2741 (xgselect.o): New dependency.
2742 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
2743 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
2744 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
2745 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
2746 (xsmfns.o): Depend on frame.h and dispextern.h.
2747 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
2748 sysselect.h.
2749
7a6f7fea
AS
27502009-12-19 Andreas Schwab <schwab@linux-m68k.org>
2751
2752 * font.c (Fclear_font_cache): Pass correct cache argument to
2753 font_clear_cache.
2754
f4c21026
AS
27552009-12-16 Andreas Schwab <schwab@linux-m68k.org>
2756
2757 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
2758 twice.
2759
f7ab0997
CY
27602009-12-15 Chong Yidong <cyd@stupidchicken.com>
2761
2762 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
2763 calling file-remote-p. Reported by Jim Meyering.
2764
fa8e045a
MA
27652009-12-15 Michael Albinus <michael.albinus@gmx.de>
2766
2767 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 2768 avoid compiler warnings. (Bug #5217)
fa8e045a 2769
a63dba42
KH
27702009-12-14 Kenichi Handa <handa@m17n.org>
2771
2772 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
2773 in 8-bit encoding.
2774
5ce6e4f4 27752009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
2776
2777 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
2778 tooltip windows.
2779
223e5fc6
JD
27802009-12-13 Jan Djärv <jan.h.d@swipnet.se>
2781
36acb2a7
JD
2782 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
2783 Xatom_net_window_type.
2784
2785 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
2786 Xatom_net_window_type.
2787
b8f00677
JD
2788 * xterm.c (my_log_handler): New function.
2789 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 2790 so we can filter out buggy messages. (Bug #5120).
b8f00677 2791
e5f0bc9a
JD
2792 * xterm.c (xg_scroll_callback): Parameter list changed,
2793 use parameter GtkScrollType to determine scroll/line/page.
2794 Only allow dragging if a button < 4 is grabbed (bug #5177).
2795 (xg_end_scroll_callback): New function.
2796 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
2797 xg_create_scroll_bar.
2798
2799 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
2800 (scroll_end_callback): Remove.
2801 (xg_create_scroll_bar): Add parameter end_callback, bind it to
2802 button-release-event. Replace value-changed event with change-value,
2803 bug #5177,
2804 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
2805 bug #5177.
2806
2807 * gtkutil.h (XG_LAST_SB_DATA): Remove.
2808 (xg_create_scroll_bar): Add GCallback end_callback.
2809
223e5fc6
JD
2810 * xftfont.c (QClcdfilter): New variable.
2811 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
2812 (syms_of_xftfont): Initialize QClcdfilter.
2813
3c055b77
JD
28142009-12-12 Jan Djärv <jan.h.d@swipnet.se>
2815
2816 * xsettings.c (struct xsettings): Add member seen.
2817 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 2818 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
2819 (apply_xft_settings): Only update Xft settings with what member seen
2820 indicates as new.
2821
05fe33ff
EZ
28222009-12-12 Eli Zaretskii <eliz@gnu.org>
2823
2824 * dispextern.h (struct text_pos): Use EMACS_INT;
2825 (struct glyph): Use EMACS_INT for charpos.
2826 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
2827 region_beg_charpos, region_end_charpos,
2828 redisplay_end_trigger_charpos, and also for
2829 iterator_stack_entry.end_charpos and
2830 iterator_stack_entry.stop_charpos.
2831
e8d7886a
JD
28322009-12-12 Jan Djärv <jan.h.d@swipnet.se>
2833
5ce6e4f4 2834 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
2835 (xg_create_scroll_bar): Call scroll_end_callback on button release
2836 event (bug #5177).
2837 (xg_event_is_for_scrollbar): != replaced with ==.
2838
d0db2ec8
KH
28392009-12-12 Kenichi Handa <handa@m17n.org>
2840
2841 * ftfont.c (struct ftfont_info): New member matrix.
2842 (ftfont_open): Setup xftfont_info->matrix.
2843 (MFLTFontFT): New member matrix.
2844 (FLOOR, CEIL, ROUND): New macros.
2845 (ftfont_get_metrics): Handle matrix transformation.
2846 (ftfont_shape_by_flt): New arg matrix. Callers changed.
2847
2848 * xftfont.c (struct xftfont_info): New member matrix.
2849 (xftfont_open): Setup xftfont_info->matrix.
2850
28512009-12-10 Kenichi Handa <handa@m17n.org>
2852
2853 * xdisp.c (append_space_for_newline): Consider face-remapping.
2854
2cc7b62f
AS
28552009-12-09 Andreas Schwab <schwab@linux-m68k.org>
2856
b87dd913
AS
2857 * xsettings.c: Include "keyboard.h".
2858
eba5eb94
AS
2859 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
2860
2cc7b62f
AS
2861 Fix implicit function declarations.
2862 * cmds.c: Include "frame.h".
2863 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
2864 * frame.h: Move declaration of delete_frame outside of
2865 HAVE_WINDOW_SYSTEM.
2866
a4ef73c8
CY
28672009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
2868
2869 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
2870
2871 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
2872 GTK builds.
2873
944a300c
AS
28742009-12-07 Andreas Schwab <schwab@linux-m68k.org>
2875
2876 * unexelf.c (unexec): Don't search for .data twice.
2877
022eef62
CY
28782009-12-05 Chong Yidong <cyd@stupidchicken.com>
2879
426ac949
CY
2880 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
2881 if push failed.
2882 (handle_line_prefix): Set avoid_cursor_p here. Check return value
2883 of push_display_prop (Bug#5000).
2884
022eef62
CY
2885 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
2886 value of font_list_entities (Bug#5085).
2887
be95bee9
JB
28882009-12-04 Juanma Barranquero <lekktu@gmail.com>
2889
2890 Fix `string-to-number' to deal consistently with integers and floats.
2891 * lread.c (isfloat_string): New argument ignore_trailing to accept all
2892 trailing characters, not just whitespace.
2893 (read1): Pass new arg 0 to keep old behavior.
2894 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
2895 trailing chars, as it is already done for integers. Doc fixes.
2896 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
2897
24c2d7ce
EZ
28982009-12-04 Eli Zaretskii <eliz@gnu.org>
2899
0b5397c2
SM
2900 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
2901 Delete unused enumeration value.
24c2d7ce 2902
7e694795
EZ
29032009-12-03 Eli Zaretskii <eliz@gnu.org>
2904
2905 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
2906
84b31826
SM
29072009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
2908
2909 * process.c (Fmake_network_process): Fix up the tests for
2910 "connectionless socket", so they DTRT for seqpacket sockets as well.
2911
f00c449b
SM
29122009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
2913
2914 * process.c (Qseqpacket): New symbol.
2915 (HAVE_SEQPACKET): New macro.
2916 (Fmake_network_process): Accept new :type `seqpacket'.
2917 (init_process): Add `seqpacket' feature when applicable.
2918 (syms_of_process): Initialize Qseqpacket.
2919
8096a0ff
YM
29202009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2921
2922 * font.c (font_load_for_lface, font_open_by_name): Don't store name
2923 if entity is Qnil.
2924
3e0de07f
SM
29252009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
2926
2927 * print.c (print_preprocess): Preprocess the key_and_value table of
2928 hashtables, even tho they're "hidden" (bug#5082).
2929
abeafb2a
JD
29302009-11-29 Jan Djärv <jan.h.d@swipnet.se>
2931
2932 * frame.c (frame_make_pointer_invisible)
2933 (frame_make_pointer_visible): Declare f before statements.
2934
4bf47195
EZ
29352009-11-28 Eli Zaretskii <eliz@gnu.org>
2936
2937 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
2938 omitted dependencies on lisp.h.
2939
c525b3f2
JD
29402009-11-27 Jan Djärv <jan.h.d@swipnet.se>
2941
ece2d4ed
JD
2942 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
2943 is NULL.
2944
2945 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
2946
2947 * frame.c (frame_make_pointer_invisible)
3e0de07f 2948 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
2949 frame.
2950
c525b3f2
JD
2951 * search.c (simple_search): Remove warning by making *p const.
2952
2f00e299
DN
29532009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
2954
2955 * xdisp.c (power_letter): Remove duplicate const.
2956
084b049b
JD
29572009-11-25 Jan Djärv <jan.h.d@swipnet.se>
2958
a1fadc6f
JD
2959 * term.c (delete_tty): Remove check for last terminal (bug#4970).
2960
5ce6e4f4 2961 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
2962 defaults (bug #5025).
2963
28259cac
SM
29642009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
2965
2966 * insdel.c (adjust_markers_for_delete): Move it in the
2967 right direction! (bug#4803)
2968
e8e14166
YM
29692009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2970
2971 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
2972
2973 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
2974
86677b58
GM
29752009-11-24 Glenn Morris <rgm@gnu.org>
2976
2977 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
2978
581e51e8
JD
29792009-11-23 Jan Djärv <jan.h.d@swipnet.se>
2980
cfc86c7a
JD
2981 * Makefile.in: Must create deps for ecrt0.o in its rule.
2982
581e51e8
JD
2983 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
2984 because that is what Gtk+ font dialog understands.
2985
2986 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
2987 of Fcopy_sequence.
2988 (font_open_by_name): Put name given into QCname for font-object returned.
2989
2990 * frame.c (x_set_font): Save original font name as frame parameter
2991 font-parameter.
2992
2993 * xsettings.c (set_default_xft_settings): New function.
2994 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
2995 is found.
2996
8b264ecb
AS
29972009-11-22 Andreas Schwab <schwab@linux-m68k.org>
2998
2999 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
3000 searching backwards through multibyte buffer.
3001
872870b2
JD
30022009-11-21 Jan Djärv <jan.h.d@swipnet.se>
3003
3004 * xterm.c: #include xgselect.h.
3005 (x_initialize): Call xgselect_initialize.
3006
3007 * xsettings.c (something_changedCB): C++ comments => C comments.
3008 (init_gconf): Do not deal with any GLib file descriptors, xg_select
3009 does that now.
3010
3011 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
3012 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
3013 (scroll_bar_button_cb): Remove.
5ce6e4f4 3014 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
3015 event.
3016 (xg_create_scroll_bar): Don't bind button-press-event and
3017 button-release-event.
3018
3019 * process.c: Include xgselect.h if defined (USE_GTK) ||
3020 defined (HAVE_GCONF).
3021 (wait_reading_process_output): Call xg_select for the same condition.
3022
3023 * xgselect.c (xg_select): New function to better integrate with
3024 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
3025
3026 * xgselect.h: New file, declare xg_select, xgselect_initialize.
3027
3028 * Makefile.in (XOBJ): Add xgselect.o.
3029
62a6e103
AS
30302009-11-21 Andreas Schwab <schwab@linux-m68k.org>
3031
0b5397c2
SM
3032 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
3033 Remove ignored second argument. All callers changed.
62a6e103
AS
3034 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
3035 (RE_STRING_CHAR_AND_LENGTH): Likewise.
3036 * xdisp.c (string_char_and_length): Likewise.
3037
b0ca0f33
DN
30382009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
3039
3040 * xterm.c (x_new_font):
3041 * print.c (print_object):
3042 * cmds.c (Fself_insert_command): Move declarations before statements.
3043
dd5a6279
CY
30442009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
3045
3046 * s/cygwin.h: Remove unneeded linker flags.
3047
4a8e097d
JD
30482009-11-20 Jan Djärv <jan.h.d@swipnet.se>
3049
0d1d0d26
JD
3050 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
3051
3052 * xsettings.h: Declare xsettings_get_system_font.
3053
3054 * xsettings.c (xsettings_get_system_font): New function.
3055 (init_gconf): No use initiating gconf unless we have Xft also.
3056 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
3057 HAVE_GCONF.
3058
4a8e097d
JD
3059 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
3060 add a blank entry so it doesn't collapse into nothing.
3061
8ab1650e
SM
30622009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
3063
3064 * lread.c (Funintern): Comment out last change.
3065
82c602f0
RS
30662009-11-19 Richard Stallman <rms@gnu.org>
3067
3068 * lread.c (Funintern): Error if symbol is t or nil.
3069
87e32266
SM
30702009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
3071
3072 * insdel.c (make_gap_larger): Don't make as many assumptions about the
3073 representation of Lisp integers.
3074 Reported by MJ Chan <mjchan.inbox@gmail.com>.
3075
1b9ac145
AS
30762009-11-17 Andreas Schwab <schwab@linux-m68k.org>
3077
3078 * lisp.h: Remove declaration of Ffont_get_system_font.
3079 * xfns.c: Move include of "xsettings.h".
3080 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
3081
dfb3c4c6
JD
30822009-11-17 Jan Djärv <jan.h.d@swipnet.se>
3083
87e32266
SM
3084 * xsettings.c (something_changedCB, Ffont_get_system_font):
3085 Check use_system_font.
dfb3c4c6
JD
3086 (syms_of_xsettings): DEFVAR font-use-system-font.
3087
9370c1d8
AS
30882009-11-17 Andreas Schwab <schwab@linux-m68k.org>
3089
25fe851a
AS
3090 * xfns.c (x_default_font_parameter): Remove dead assignment.
3091
9370c1d8
AS
3092 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
3093
637fa988
JD
30942009-11-17 Jan Djärv <jan.h.d@swipnet.se>
3095
87e32266 3096 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 3097 not have FC_LCD_*. #define them if not there.
a6eb20d8 3098
87e32266 3099 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 3100
637fa988
JD
3101 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
3102
3103 * xterm.c (handle_one_xevent): Call xft_settings_event for
3104 ClientMessage, PropertyNotify and DestroyNotify.
3105 (x_term_init): If we have XFT, get DPI from Xft.dpi.
3106 Call xsettings_initialize.
3107
3108 * xftfont.c (xftfont_fix_match): New function.
3109 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
3110 Call xftfont_fix_match after XftFontMatch.
3111
3112 * xfont.c (xfont_driver): Initialize all members.
3113
87e32266
SM
3114 * xfns.c (x_default_font_parameter):
3115 Try font from Ffont_get_system_font.
637fa988
JD
3116 Do not get font from x_default_parameter if we got one from
3117 Ffont_get_system_font.
87e32266 3118 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
3119
3120 * w32font.c (w32font_driver): Initialize all members.
3121
3122 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
3123
3124 * lisp.h: Declare syms_of_xsettings.
3125
87e32266
SM
3126 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
3127 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
3128
3129 * ftfont.c (ftfont_filter_properties): New function.
3130
3131 * frame.c (x_set_font): Remove unused variable lval.
3132
87e32266 3133 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
3134
3135 * font.c (font_put_extra): Don't return if val is nil, it means
3136 boolean option is off.
3137 (font_parse_fcname): Collect all extra properties in extra_props
3138 and call filter_properties for all drivers with extra_props and
3139 font as parameter.
87e32266
SM
3140 (font_open_entity): Do not use cache, it does not pick up new
3141 fontconfig settings like hinting.
637fa988
JD
3142 (font_load_for_lface): If spec had a name in it, store it in entity.
3143
3144 * emacs.c (main): Call syms_of_xsettings
3145
3146 * config.in: HAVE_GCONF is new.
3147
3148 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
3149 xsettings.o is new.
3150
5a942932
KH
31512009-11-17 Kenichi Handa <handa@m17n.org>
3152
3153 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
3154 back to the default font in case that no suitable font is found.
3155
b7c7a4d1
SM
31562009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
3157
3158 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
3159 Suggested by Chad Brown <yandros@mit.edu>.
3160 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
3161
072f1e39
JD
31622009-11-16 Jan Djärv <jan.h.d@swipnet.se>
3163
3164 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
3165
5d1e70a2
AS
31662009-11-14 Andreas Schwab <schwab@linux-m68k.org>
3167
87e32266 3168 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 3169
a53cfbe5
JD
31702009-11-14 Jan Djärv <jan.h.d@swipnet.se>
3171
473a99b7
JD
3172 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
3173 has a parent.
3174
a53cfbe5 3175 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 3176 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
3177
3178 * config.in: Generated (AUTO_DEPEND).
3179
f04bb9b2
MA
31802009-11-13 Michael Albinus <michael.albinus@gmx.de>
3181
b7c7a4d1 3182 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
3183 Vdbus_registered_functions_table, because it contains also
3184 properties. Fix docstring.
b7c7a4d1 3185 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 3186
8f11f7ec
SM
31872009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
3188
3189 * alloc.c (mark_object): Don't reprocess marked strings.
3190 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
3191 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
3192
8a605fe8
KH
31932009-11-13 Kenichi Handa <handa@m17n.org>
3194
8f11f7ec 3195 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
3196 semantics of Vword_combining_categories.
3197 (Vword_combining_categories): Describe the slight change of the
3198 semantics.
3199
241c4680
EZ
32002009-11-13 Eli Zaretskii <eliz@gnu.org>
3201
3202 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
3203
3204 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
3205
5d58e44c
SM
32062009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
3207
3208 * xdisp.c (syms_of_xdisp): Fix typo in last change.
3209
5e13f9d3
JB
32102009-11-12 Juanma Barranquero <lekktu@gmail.com>
3211
3212 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
3213
cf54c754
DR
32142009-11-11 David Reitter <david.reitter@gmail.com>
3215
3216 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
3217 variables to fix 2009-11-09 change.
3218
a4ada374
DN
32192009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
3220
91433552
DN
3221 * process.c (ifflag_def): Make flag_sym constant.
3222 (Fnetwork_interface_info): Use a constant pointer.
3223 (ifflag_table):
3224 * xfns.c (cursor_bits):
3225 * xdisp.c (power_letter):
3226 * termcap.c (speeds, esctab):
3227 * sysdep.c (baud_convert):
3228 * keyboard.c (lispy_accent_codes, modifier_names):
3229 * image.c (xbm_format, xpm_format, pbm_format, png_format)
3230 (jpeg_format, tiff_format, gif_format, svg_format)
3231 (interlace_start, interlace_increment, gs_format):
3232 * gtkutil.c (separator_names):
3233 * fringe.c (swap_nibble):
3234 * fns.c (base64_value_to_char, base64_char_to_value):
3235 * fileio.c (make_temp_name_tbl):
3236 * coding.c (suffixes): Make constant.
3237
f4265f6c
DN
3238 * frame.c (make_initial_frame):
3239 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
3240 build_string.
3241 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
3242
04420943
DN
3243 * s/freebsd.h:
3244 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
3245
0a5d24ae
DN
3246 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
3247 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
3248
a4ada374
DN
3249 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
3250 * xterm.c (syms_of_xterm):
3251 * xfaces.c (syms_of_xfaces):
3252 * xdisp.c (syms_of_xdisp):
3253 * lread.c (syms_of_lread):
3254 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
3255 build_string.
91433552 3256
a4ada374
DN
3257 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
3258
af98fc7f
SM
32592009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
3260
8ab1650e 3261 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 3262
e90292a9
JD
32632009-11-10 Jan Djärv <jan.h.d@swipnet.se>
3264
3265 * keyboard.h: Declare timer_check.
3266
3267 * keyboard.c (timer_check_2): New function that does what the old
3268 timer_check did.
3269 (timer_check): Call timer_check_2 until -1 or a non-zero time is
3270 returned, i.e. don't return -1 with timers pending.
3271
3272 * process.c: Remove extern declaration of timer_check.
3273
3274 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
3275 even if timer_check returned -1.
3276
af98fc7f
SM
3277 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
3278 xg_dialog_data.
e90292a9
JD
3279 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
3280 the event loop.
3281 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
3282 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
3283 Destroy the dialog after xg_dialog_run.
3284
045b83c0
SM
32852009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
3286
3287 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
3288
1fb99a3a
JD
32892009-11-10 Jan Djärv <jan.h.d@swipnet.se>
3290
3291 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
3292
04e452cb
JB
32932009-11-09 Juanma Barranquero <lekktu@gmail.com>
3294
3295 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
3296
ef7417fd
SM
32972009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
3298
3299 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
3300 w32menu.c, and nsmenu.m.
3301 Simplify the obsolete case where position is nil.
3302 (cleanup_popup_menu): New function, moved from nsmenu.m.
3303 (struct skp): Remove slot `notreal'.
3304 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
3305 adjust callers.
3306 (single_menu_item): Adjust call to parse_menu_item.
3307 (syms_of_menu): Defsubr x-popup-menu.
3308 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
3309 (keymap_panes): Don't export any more.
3310 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
3311 (xmenu_show): Declare.
3312 * keyboard.c (parse_menu_item): Remove arg `notreal'.
3313 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
3314 * keyboard.h (parse_menu_item): Update declaration.
3315 * xmenu.c (Fx_popup_menu): Remove.
3316 (syms_of_xmenu): Don't defsubr x-popup-menu.
3317 * w32menu.c (Fx_popup_menu): Remove.
3318 (syms_of_w32menu): Don't defsubr x-popup-menu.
3319 * nsmenu.m (cleanup_popup_menu): Remove.
3320 (ns_menu_show): Rename from ns_popup_menu and remove all the code
3321 moved to menu.c's Fx_popup_menu.
3322 (Fx_popup_menu): Remove.
3323 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
3324 menu_items (it's done in menu.c already).
3325
424d6179
SM
33262009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
3327
3328 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
3329 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
3330
c0df13a6 33312009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
3332
3333 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 3334 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
3335 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
3336 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
3337
2de9f71c
SM
33382009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
3339
3340 Let integers use up 2 tags to give them one extra bit and thus double
3341 their range.
3342 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
3343 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
3344 New macros.
3345 (enum Lisp_Type): Use them. Give explicit values.
3346 (Lisp_Type_Limit): Remove.
3347 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
3348 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
3349 Pay attention to USE_2_TAGS_FOR_INTS.
3350 (INTEGERP): Use LISP_INT_TAG_P.
3351 * fns.c (internal_equal): Simplify the default case.
3352 (sxhash): Use case_Lisp_Int.
3353 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
3354 any more.
3355 (Ftype_of): Use case_Lisp_Int.
3356 (store_symval_forwarding): Take into account the fact that Ints can
3357 now have more than one tag.
3358 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
3359 buffer_slot_type_mismatch):
3360 * xfaces.c (face_attr_equal_p):
3361 * print.c (print_object):
3362 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
3363 Use case_Lisp_Int.
3364
323637a2
EZ
33652009-11-06 Eli Zaretskii <eliz@gnu.org>
3366
7ac65b38
EZ
3367 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
3368
323637a2
EZ
3369 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
3370 warning.
3371
e511451f
JD
33722009-11-06 Jan Djärv <jan.h.d@swipnet.se>
3373
3374 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
3375
3376 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
3377
3378 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
3379 ButtonPressRelease and MotionNotify (bug#4870).
3380
5e2327cf
DN
33812009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
3382
5adc433e
DN
3383 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
3384
d67b4f80
DN
3385 * xterm.c (syms_of_xterm):
3386 * xselect.c (syms_of_xselect):
3387 * xmenu.c (syms_of_xmenu):
3388 * xfns.c (syms_of_xfns):
3389 * xfaces.c (syms_of_xfaces):
3390 * xdisp.c (syms_of_xdisp):
3391 * window.c (syms_of_window):
3392 * w32fns.c (syms_of_w32fns):
3393 * undo.c (syms_of_undo):
3394 * textprop.c (syms_of_textprop):
3395 * terminal.c (syms_of_terminal):
3396 * syntax.c (syms_of_syntax):
3397 * sound.c (syms_of_sound):
3398 * search.c (syms_of_search):
3399 * print.c (syms_of_print):
3400 * minibuf.c (syms_of_minibuf):
3401 * macros.c (syms_of_macros):
3402 * keymap.c (syms_of_keymap, initial_define_key)
3403 (initial_define_lispy_key):
3404 * keyboard.c (syms_of_keyboard):
3405 * insdel.c (syms_of_insdel):
3406 * image.c (syms_of_image):
3407 * fringe.c (syms_of_fringe):
3408 * frame.c (syms_of_frame):
3409 * fontset.c (syms_of_fontset):
3410 * fns.c (syms_of_fns):
3411 * fns.c (syms_of_fns):
3412 * fileio.c (syms_of_fileio):
3413 * fileio.c (syms_of_fileio):
3414 * eval.c (syms_of_eval):
3415 * doc.c (syms_of_doc):
3416 * dispnew.c (syms_of_display):
3417 * dired.c (syms_of_dired):
3418 * dbusbind.c (syms_of_dbusbind):
3419 * data.c (syms_of_data):
3420 * composite.c (syms_of_composite):
3421 * coding.c (syms_of_coding):
3422 * cmds.c (syms_of_cmds):
3423 * charset.c (define_charset_internal, syms_of_character):
3424 * ccl.c (syms_of_ccl):
3425 * category.c (syms_of_category, init_category_once):
3426 * casetab.c (syms_of_casetab):
3427 * casefiddle.c (syms_of_casefiddle):
3428 * callint.c (syms_of_callint):
3429 * bytecode.c (syms_of_bytecode):
3430 * buffer.c (keys_of_buffer, syms_of_buffer):
3431 * alloc.c (syms_of_alloc):
3432 * process.c (syms_of_process, init_process):
3433 * lread.c (syms_of_lread, init_obarray):
3434 * font.c (build_style_table):
3435 * emacs.c (syms_of_emacs, main): Replace calls to intern with
3436 intern_c_string, calls to make_pure_string with
3437 make_pure_c_string. Use pure_cons instead of Fcons.
3438
5e2327cf
DN
3439 * process.c (socket_options): Make it const.
3440 (set_socket_option, init_process): Use a const pointer.
3441
3442 * lread.c (intern_c_string): New function.
3443 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
3444 (defvar_int): Uset it. Make the name const char*.
3445
3446 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
3447 (defvar_int): Update prototypes.
3448 (DEFUN, EXFUN): Support for prototypes is now required.
3449 (intern_c_string): New prototype.
3450 (struct Lisp_Subr): Make symbol_name constant.
3451
3452 * font.c (struct table_entry): Remove unused member. Make NAMES
3453 constant.
3454 (weight_table, slant_table, width_table): Make constant.
3455
3456 * emacs.c (struct standard_args): Make name and longname constant.
3457
3458 * character.h (DEFSYM): Use intern_c_string.
3459
a56eaaef
DN
34602009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
3461
3462 * alloc.c (make_pure_c_string): New function.
3463
3464 * eval.c (Fautoload): Purecopy all arguments.
3465
f6a07420
KH
34662009-11-05 Kenichi Handa <handa@m17n.org>
3467
3468 * fileio.c (Finsert_file_contents): Be sure set coding-system of
3469 the buffer in case of replace.
3470
5d28d4b1
DN
34712009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
3472
3473 * puresize.h (BASE_PURESIZE): Increase to 1620000.
3474
b349d111
SM
34752009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
3476
d528b1ce
SM
3477 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
3478 when applicable (bug#4851).
3479
b349d111
SM
3480 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
3481 (P_): Support for prototypes is now required.
3482
c38eb027
CY
34832009-10-31 Chong Yidong <cyd@stupidchicken.com>
3484
3485 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
3486 (Bug#4827).
3487
0405f8d9
EZ
34882009-10-30 Eli Zaretskii <eliz@gnu.org>
3489
d528b1ce 3490 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 3491
ca0a881a
DN
34922009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
3493
3494 * puresize.h (BASE_PURESIZE): Increase to 1470000.
3495
d528b1ce
SM
3496 * lread.c (Fload): Purecopy the file name when building
3497 Vpreloaded_file_list.
ca0a881a 3498
47e0e0e4
JR
34992009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
3500
3501 * w32fns.c (syms_of_w32fns): Change default value of
3502 w32-scroll-lock-modifier to nil. (Bug#2827)
3503
057bce6f
JB
35042009-10-26 Juanma Barranquero <lekktu@gmail.com>
3505
782a943e 3506 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 3507
242bc74c
AS
35082009-10-26 Andreas Schwab <schwab@redhat.com>
3509
3510 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
3511
522d013a
JB
35122009-10-26 Juanma Barranquero <lekktu@gmail.com>
3513
3514 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
3515 For delta < 0, skip check that only makes sense when the mini-window
3516 is going to be enlarged. (Bug#4534)
3517
18060980
CY
35182009-10-25 Chong Yidong <cyd@stupidchicken.com>
3519
3520 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
3521 string in menu maps (Bug#4471).
3522
fec8f0fe
CY
35232009-10-24 Chong Yidong <cyd@stupidchicken.com>
3524
3525 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
3526 FRAME_NS_VIEW on terminal frames (Bug#4765).
3527
10d66ec0
AS
35282009-10-24 Andreas Schwab <schwab@linux-m68k.org>
3529
1cae01f7
AS
3530 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
3531 DBUS_TYPE_UINTnn separately to get proper sign extension.
3532
58a12889
AS
3533 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
3534 can properly handle unsigned types.
d528b1ce 3535 (make_uid, make_gid): Remove.
58a12889 3536
987c9327
AS
3537 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
3538 types again.
3539
522d013a 3540 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
3541 (system_process_attributes): Likewise.
3542
905a9ed3
DN
35432009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
3544
3545 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
3546
3547 * eval.c (Fautoload): Purecopy the filename. Simplify.
3548
3549 * category.c (Fdefine_category): Purecopy docstring.
3550
a599b3e8
AS
35512009-10-23 Andreas Schwab <schwab@linux-m68k.org>
3552
7b792fc9
AS
3553 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
3554
a599b3e8
AS
3555 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
3556
b35ac83e
CY
35572009-10-23 Chong Yidong <cyd@stupidchicken.com>
3558
3559 * window.c (Fwindow_edges, Fwindow_pixel_edges)
3560 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
3561 (Bug#4775).
3562
e8903e00
SM
35632009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
3564
3565 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
3566 (init_fileio_once):
3567 * lisp.h (init_fileio_once): Remove.
3568 * emacs.c (main): Don't call init_fileio_once.
3569
8f43cbf3
DN
35702009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
3571
3572 * puresize.h (BASE_PURESIZE): Increase to 1430000.
3573
26898943
AS
35742009-10-21 Andreas Schwab <schwab@linux-m68k.org>
3575
3576 * doprnt.c (doprnt): Fix overflow check.
3577
5c646d5a
JD
35782009-10-21 Jan Djärv <jan.h.d@swipnet.se>
3579
3132a7ea
JD
3580 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
3581
5c646d5a
JD
3582 * xterm.h (x_wait_for_event): Declare it.
3583
3584 * xterm.c (pending_event_wait): New variable.
3585 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
3586 see pending_event_wait.eventtype.
3587 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
3588 (x_new_font): Call change_frame_size with new rows/columns before we
3589 try to resize the frame.
5c646d5a 3590 (x_wait_for_event): New function.
d528b1ce
SM
3591 (x_set_window_size_1): Don't change gravity unless change_gravity
3592 is set.
5c646d5a
JD
3593 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
3594 don't change frame size, instead wait for the ConfigureNotify.
3595 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
3596 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
3597 (x_initialize): Initialize pending_event_wait.
3598
3599 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
3600 size.
3601
3602 * widget.c (EmacsFrameSetValues): Add comment.
3603 (EmacsFrameSetCharSize): Just call x_set_window_size.
3604
3605 * gtkutil.c (xg_frame_set_char_size): Flush events and call
3606 x_wait_for_event.
d528b1ce 3607 (flush_and_sync): Remove again.
5c646d5a
JD
3608 (xg_get_font_name): Suggest monospace if no previous font is known.
3609
e9c1637d
SM
36102009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
3611
3612 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 3613 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 3614
5a72cccb
YM
36152009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3616
3617 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
3618 processing pending events when event is filtered for input method.
ab04798f 3619 (Bug#3681)
5a72cccb 3620
2629aa37
JB
36212009-10-20 Juanma Barranquero <lekktu@gmail.com>
3622
3623 * fns.c: Add #endif accidentally removed in previous change.
3624
c3417a74
DN
36252009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
3626
3627 * fns.c: Remove code for unsupported system: MAC_OS.
3628 * image.c: Likewise. Include setjmp.h.
3629
9685cef2
JD
36302009-10-19 Jan Djärv <jan.h.d@swipnet.se>
3631
3632 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
3633 pixel -1 (bug #4742).
3634
d7306fe6
DN
36352009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
3636
019d2c4c
DN
3637 * process.c (create_pty): Remove conditionals for no longer
3638 supported systems: UNIPLUS and RTU.
3639
ee6bacd4
DN
3640 * xterm.c:
3641 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
3642
d7306fe6
DN
3643 * alloc.c: Do not define struct catchtag.
3644 * eval.c: Move struct catchtag definition ...
3645 * lisp.h: ... here.
3646
3647 * image.c: Move png.h #include earlier to avoid warnings.
3648
3649 * xterm.c:
3650 * xsmfns.c:
3651 * xselect.c:
3652 * xrdb.c:
3653 * xmenu.c:
3654 * xftfont.c:
3655 * xfont.c:
3656 * xfns.c:
3657 * xfaces.c:
3658 * xdisp.c:
3659 * window.c:
3660 * widget.c:
3661 * w32xfns.c:
3662 * w32uniscribe.c:
3663 * w32term.c:
3664 * w32select.c:
3665 * w32reg.c:
3666 * w32proc.c:
3667 * w32menu.c:
3668 * w32inevt.c:
3669 * w32heap.c:
3670 * w32font.c:
3671 * w32fns.c:
3672 * w32console.c:
3673 * w32.c:
3674 * w16select.c:
3675 * vm-limit.c:
3676 * unexsol.c:
3677 * unexec.c:
3678 * unexcw.c:
3679 * unexaix.c:
3680 * undo.c:
3681 * tparam.c:
3682 * textprop.c:
3683 * terminfo.c:
3684 * terminal.c:
3685 * termcap.c:
3686 * term.c:
3687 * syntax.c:
3688 * sound.c:
3689 * sheap.c:
3690 * search.c:
3691 * scroll.c:
3692 * region-cache.c:
3693 * regex.c:
3694 * ralloc.c:
3695 * process.c:
3696 * print.c:
b024548b
DN
3697 * nsterm.m:
3698 * nsselect.m:
3699 * nsmenu.m:
3700 * nsimage.m:
3701 * nsfont.m:
3702 * nsfns.m:
d7306fe6
DN
3703 * msdos.c:
3704 * minibuf.c:
3705 * menu.c:
3706 * marker.c:
3707 * macros.c:
3708 * keymap.c:
3709 * keyboard.c:
3710 * intervals.c:
3711 * insdel.c:
3712 * indent.c:
3713 * gtkutil.c:
3714 * ftxfont.c:
3715 * ftfont.c:
3716 * fringe.c:
3717 * frame.c:
3718 * fontset.c:
3719 * font.c:
3720 * fns.c:
3721 * floatfns.c:
3722 * filelock.c:
3723 * fileio.c:
3724 * emacs.c:
3725 * editfns.c:
3726 * dosfns.c:
3727 * doprnt.c:
3728 * doc.c:
3729 * dispnew.c:
3730 * dired.c:
3731 * dbusbind.c:
3732 * data.c:
3733 * composite.c:
3734 * coding.c:
3735 * cmds.c:
3736 * cm.c:
3737 * chartab.c:
3738 * charset.c:
3739 * character.c:
3740 * ccl.c:
3741 * category.c:
3742 * casetab.c:
3743 * casefiddle.c:
3744 * callproc.c:
3745 * callint.c:
3746 * bytecode.c:
3747 * buffer.c:
3748 * atimer.c: Include setjmp.h. (Bug#4643)
3749
fd5f21e6
SM
37502009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
3751
4c0354d7
SM
3752 Remove leftover table unibyte_to_multibyte_table.
3753 * character.c (unibyte_to_multibyte_table): Remove.
3754 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
3755 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
3756 * character.h (UNIBYTE_TO_CHAR): New macro.
3757 (MAKE_CHAR_MULTIBYTE): Use it.
3758 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
3759 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
3760 (message_dolog, set_message_1):
3761 * search.c (Freplace_match):
3762 * editfns.c (Fcompare_buffer_substrings):
3763 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
3764 (concat):
3765 * insdel.c (copy_text, count_size_as_multibyte):
3766 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
3767 * term.c (produce_glyphs):
3768 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
3769 * regex.c (RE_CHAR_TO_MULTIBYTE):
3770 * cmds.c (internal_self_insert):
3771 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
3772
fd5f21e6
SM
3773 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
3774
4418646e
DN
37752009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
3776
3777 * puresize.h (BASE_PURESIZE): Increase to 1310000.
3778
35f5c1d2
JB
37792009-10-16 Juanma Barranquero <lekktu@gmail.com>
3780
3781 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
3782
a0cd8f6b
AR
37832009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
3784
3785 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
3786 still needed under Tiger.
3787
3788 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
3789
3790 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
3791 __Apple__.
3792
3793 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
3794
01a8d3fa
KH
37952009-10-15 Kenichi Handa <handa@m17n.org>
3796
3797 * print.c (print_object): Escape a symbol like "2E10" too.
3798
bf6c75c9 37992009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
3800
3801 Cleanups and changes for 64-bit compile under Snow Leopard.
3802 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
3803
3804 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
3805
c5959062 3806 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
3807 (ns_findfonts, nsfont_list_family): Use long format in printf, and
3808 cast argument.
3809 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 3810 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
3811
3812 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
3813
3814 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
3815 where appropriate.
3816
3817 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
3818 where appropriate.
6e4780c5
JB
3819 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
3820 Use stringWithUTF8String.
bf6c75c9
AR
3821 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
3822
6e4780c5
JB
3823 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
3824 Add formal protocol mention to inheritance.
bf6c75c9
AR
3825 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
3826
6e4780c5
JB
3827 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
3828 Fix printf format.
bf6c75c9
AR
3829 (ns_query_color): Use CGFloat where appropriate.
3830 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 3831 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
3832 argument.
3833
3d87f118
AR
3834 * config.in (NS_HAVE_NSINTEGER): Drop.
3835
a95c8102
AR
3836 * dbusbind.c (dbus-method-return-internal)
3837 (dbus-method-error-internal): Use long format in printf, and cast
3838 argument.
3839
3840 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
3841 in printf, and cast argument.
3842
6873acca 3843 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
3844 cast argument.
3845
9ec6f100
GM
38462009-10-11 Glenn Morris <rgm@gnu.org>
3847
3848 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
3849
5be883cd
JD
38502009-10-08 Jan Djärv <jan.h.d@swipnet.se>
3851
3852 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
3853 menu bar with a small width so it doesn't enlarge the frame.
3854
d7a39b51
JB
38552009-10-08 Juanma Barranquero <lekktu@gmail.com>
3856
3857 * fontset.c (Fset_fontset_font): Fix typos in error messages.
3858
0c2b6f8e
GM
38592009-10-06 Glenn Morris <rgm@gnu.org>
3860
3861 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
3862 SOME_MACHINE_LISP (this enters indirectly via DOC).
3863
e02131a2
EZ
38642009-10-05 Eli Zaretskii <eliz@gnu.org>
3865
3866 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
3867
b4744254
EZ
38682009-10-04 Eli Zaretskii <eliz@gnu.org>
3869
3870 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
3871 Doc fix.
3872
dbf64827
JB
38732009-10-03 Martin Rudalics <rudalics@gmx.at>
3874
3875 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
3876
e9a0aef8
MA
38772009-10-02 Michael Albinus <michael.albinus@gmx.de>
3878
d528b1ce 3879 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
3880 used anymore outside fileio.c.
3881
3882 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
3883
64eb2b56
JB
38842009-10-01 Juanma Barranquero <lekktu@gmail.com>
3885
3886 * lisp.h (Qdelete_directory_internal):
3887 Declare, instead of Qdelete_directory.
3888
3889 * w32fns.c (Fsystem_move_file_to_trash): Use it.
3890
9d28c33e
SM
38912009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
3892
3893 * eval.c (Fcalled_interactively_p): Add `kind' argument.
3894
9d8f3bd9
MA
38952009-10-01 Michael Albinus <michael.albinus@gmx.de>
3896
9d28c33e 3897 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
3898 Fdelete_directory. It is not a command anymore. It has no file
3899 name handler.
3900
9694740b
SM
39012009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
3902
3903 * xdisp.c (get_next_display_element): Use an enum in last change.
3904
748e162f
KH
39052009-09-28 Kenichi Handa <handa@m17n.org>
3906
9694740b 3907 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
3908 unibyte_display_via_language_environment in handling
3909 Vnobreak_char_display.
3910
17efd58d
AR
39112009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
3912
3913 * nsterm.h (ns_app_name): New extern variable.
3914
3915 * nsterm.m (ns_app_name): New variable.
3916 (ns_term_init): Set and use it.
3917 (ns_term_shutdown): Use it.
3918
3919 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
3920 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
3921
3922 * nsfns.m (ns_set_name_iconic, ns_set_name)
3923 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
3924 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
3925
9694740b
SM
3926 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
3927 Remove double-casting in client_data comparison.
31c2d412 3928
3208cb35
YM
39292009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3930
3931 * keyboard.c (make_lispy_event): Remember last wheel direction.
3932 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
3933
b7d552d6
GM
39342009-09-26 Glenn Morris <rgm@gnu.org>
3935
3936 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
3937 internal.elc. Add term/pc-win.elc.
3938 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
3939 term/x-win.elc.
3940 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
3941 term/w32-win.elc.
3942 (NS_SUPPORT): New.
3943 (lisp): Add NS_SUPPORT.
3944 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
3945
4ff670a8
DR
39462009-09-25 David Reitter <david.reitter@gmail.com>
3947
3948 * nsmenu.m (EmacsMenu-clear): Recognize application menu
3949 on Mac OS X 10.6+ (bug#4513).
3950
feabfb6c
JB
39512009-09-24 Juanma Barranquero <lekktu@gmail.com>
3952
3953 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
3954 some parts of Emacs code (like font selection) don't grok them.
3955 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 3956
de59072a
AS
39572009-09-24 Andreas Schwab <schwab@redhat.com>
3958
3959 * coding.c (decode_coding_iso_2022): Fix operator precedence.
3960
a489517b
JB
39612009-09-24 Juanma Barranquero <lekktu@gmail.com>
3962
3963 * dired.c (Fdirectory_files): Fix typo in docstring.
3964
0592970c
AR
39652009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
3966
3967 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
3968 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
3969 (EmacsScroller-setPosition:portion:whole:): Remove -display call
3970 under GNUstep.
3971 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
3972
3973 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
3974 glyph advancement.
3975
48e8a88b
AR
39762009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
3977
3978 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 3979 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
3980
3981 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
3982 deleted (bug #4492).
3983
e14f0a78
AR
3984 * nsfont.m (Vns_reg_to_script): New lisp variable.
3985 (syms_of_nsfont): Declare it.
3986 (ns_registry_to_script): New function.
3987 (ns_get_req_script): Call it.
3988 (ns_findfonts): Don't give up on non-unicode registry.
3989
3990 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
3991
5b650faa
SM
39922009-09-20 Tom Tromey <tromey@redhat.com>
3993
3994 * eval.c (find_handler_clause): Make stack-trace-on-error work in
3995 batch mode (bug#4228).
3996
a489517b 39972009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
3998
3999 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 4000 carefully. (Bug #4339)
0bae4e09 4001
fcfe06f3
CY
40022009-09-18 Chong Yidong <cyd@stupidchicken.com>
4003
d798ba87 4004 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 4005
31642728
AR
40062009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
4007
4008 * emacs.c (inhibit_x_resources): Update doc string for NS.
4009 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 4010 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
4011
4012 * nsterm.h (ns_no_defaults): Remove.
4013
4014 * nsterm.m (ns_no_defaults): Remove.
4015 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
4016 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
4017 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
4018 don't update the NSWindow itself.
4019 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 4020 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
4021
4022 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
4023 ns_use_qd_smoothing.
4024
4025 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
4026 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 4027 (x-close-connection): Drop PSFlush() under OS X.
a489517b 4028 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 4029
8686ac71
JB
40302009-09-17 Juanma Barranquero <lekktu@gmail.com>
4031
4032 * emacs.c (inhibit_x_resources): New variable.
4033 (main) [HAVE_NS]: Don't process --quick command line option.
4034 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
4035
4036 * lisp.h (inhibit_x_resources): Declare it extern.
4037
4038 * w32reg.c (x_get_string_resource):
4039 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
4040
e227ba05
EZ
40412009-09-17 Eli Zaretskii <eliz@gnu.org>
4042
362654a6
JB
4043 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
4044 Add lisp/term/internal.elc.
e227ba05 4045
742d40e8
SM
40462009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
4047
4048 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
4049 (bug#4461).
4050
005bd5a2
DN
40512009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
4052
4053 * puresize.h (BASE_PURESIZE): Increase to 1290000.
4054
4055 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
4056 (OBJECTS_MACHINE): Remove, unused.
4057
f9af9719
SM
40582009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
4059
4060 * frame.c (x_get_resource_string): Remove unused.
4061
0307c7d2
JD
40622009-09-15 Jan Djärv <jan.h.d@swipnet.se>
4063
4064 * xterm.c (x_new_font): Call change_frame_size before calling
4065 x_set_window_size, in case frame size won't change.
4066
4067 * frame.c (x_set_font): Remove dead code.
4068
428b13d6
SM
40692009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
4070
4071 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
4072
5766c380
SM
40732009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4074
4075 * lread.c (Fload): Don't output a message after loading an obsolete
4076 package any more (done in Lisp now).
4077
2fd0161b
CY
40782009-09-12 Chong Yidong <cyd@stupidchicken.com>
4079
4080 * fns.c (syms_of_fns): Doc fix (Bug#4227).
4081
bc5e75b6
SM
40822009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4083
4084 * keymap.c (Fwhere_is_internal): Use nconc2.
4085
c31c985e
AM
40862009-09-11 Alan Mackenzie <acm@muc.de>
4087
4088 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
4089 batch mode.
4090
78012bd2
AS
40912009-09-11 Andreas Schwab <schwab@linux-m68k.org>
4092
4093 * xdisp.c (display_mode_element): Detect cycles.
4094
9d889332
SM
40952009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
4096
4097 * keymap.c (where_is_internal): Don't erroneously return nil right after
4098 filling the cache.
4099 (where_is_internal_1): Fix up typo.
4100
7ab5d780
GM
41012009-09-11 Glenn Morris <rgm@gnu.org>
4102
4103 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
4104 share a common doc-string.
4105
5238a749
SM
41062009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
4107
66d77eda
SM
4108 * keymap.c (get_keymap): Return the actual keymap symbol rather than
4109 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
4110
5238a749
SM
4111 * keymap.c (QCadvertised_binding): New constant.
4112 (syms_of_keymap): Initialize it.
4113 (Fwhere_is_internal): Try and use bindings from :advertised-binding
4114 if applicable.
4115
19f48442
SM
41162009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
4117
50d4ba39
SM
4118 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
4119 (parse_menu_item): Streamline since bindings are recomputed all the
4120 time anyway. Don't bother checking Vdefine_key_rebound_commands any
4121 more and don't support lmenu's menu-alias any more either.
4122
a88a5372
SM
4123 * keymap.c (where_is_internal_data): Make noindirect a boolean.
4124 (where_is_internal): Strip it down to only traverse the keymaps.
4125 Move the cache handling from Fwhere_is_internal to here.
4126 (Fwhere_is_internal): Move the handling of remapping and the choice of
4127 the best binding from where_is_internal to here.
4128 Unify the cached/noncached paths, so remapping is also handled
4129 correctly when the cache is used, and so the cache can be used to
4130 speed up remap-handling when applicable.
4131 Give preference to non-remapped bindings.
4132 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
4133 non-remapped bindings.
4134 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
4135 command remapping.
4136
19f48442
SM
4137 * xdisp.c (display_mode_element): Move list length limit from 50 to
4138 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
4139
599498c3 41402009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
4141
4142 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
4143
f9b7b5ac
SM
41442009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
4145
a53af587
JB
4146 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
4147 (Bug#4334)
4148
f9b7b5ac
SM
4149 * keymap.c (where_is_internal): Filter out shadowed remappings.
4150 Assume that where_is_internal returns unshadowed bindings to simplify
4151 the code and get rid of the gotos. Use ASIZE.
4152
04f4b72d
JD
41532009-09-04 Jan Djärv <jan.h.d@swipnet.se>
4154
4da146f2
JD
4155 * xterm.c (x_focus_changed): If we get a focusout and pointer
4156 is invisible, make it visible.
4157
04f4b72d
JD
4158 * xterm.h: Remove condition for declaration of
4159 x_*_window_to_frame.
4160
7cef7ce3
SM
41612009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
4162
4163 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
4164 initial terminal as well.
4165
a54fa5b7
JD
41662009-09-02 Jan Djärv <jan.h.d@swipnet.se>
4167
4168 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 4169 x_menubar_window_to_frame.
a54fa5b7 4170
50426a04 4171 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
4172 (XTmouse_position): Do not return valid positions
4173 for clicks in the menubar and the toolbar for Gtk+.
4174
4175 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
4176 if the widget for the event has the same top level as a frame,
4177 return the frame.
4178 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
4179 internal windows, bug #4122.
4180 (x_non_menubar_window_to_frame): Remove.
4181
5a021dd0
GM
41822009-09-02 Glenn Morris <rgm@gnu.org>
4183
4184 * buffer.c (default-major-mode): Move most of the doc from here...
4185 (major-mode): ... to here.
4186
548fe2f3
NR
41872009-08-30 Nick Roberts <nickrob@snap.net.nz>
4188
4189 * process.c (wait_reading_process_output): Keep the descriptor
4190 when pty is used by a non-child process, e.g., in I/O buffer of
4191 GDB this allows inferior to be restarted.
4192
e0840eef
EZ
41932009-08-29 Eli Zaretskii <eliz@gnu.org>
4194
4195 * xdisp.c (redisplay_internal): Remove redundant test and collapse
4196 both branches into one.
4197
82e98df4
SM
41982009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
4199
4200 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
4201 (main): Use enable-multibyte-characters rather than
4202 default-enable-multibyte-characters. Output a warning message when
4203 running a unibyte session.
4204
890617cb
YM
42052009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4206
4207 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
4208 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
4209 (copy_data_segment): Also copy __program_vars section.
4210 (copy_dyld_info) [LC_DYLD_INFO]: New function.
4211 (dump_it) [LC_DYLD_INFO]: Use it.
4212
4213 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
4214
e7adeadc
EZ
42152009-08-28 Eli Zaretskii <eliz@gnu.org>
4216
4217 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
4218 $(SRC)/buildobj.h.
4219 (buildobj.h): Renamed from $(SRC)/buildobj.h.
4220 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
4221 $(SRC)/buildobj.h.
4222 (clean): Add buildobj.h.
4223
3ed8bbdc
TZ
42242009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
4225
4226 * print.c (print_object): Set escapeflag to 1 when printing
4227 hashtable keys and values.
4228
155a6764
SM
42292009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
4230
4231 * lread.c (read_integer): Use doubles (and potentially return a float
4232 number) as we do in string-to-number.
4233 (read1): Use strtol to read integers, signal errors on strtol's
4234 overflow and use floats if strtol's output is too large for
4235 Elisp integers.
4236
877610de
EZ
42372009-08-27 Eli Zaretskii <eliz@gnu.org>
4238
4239 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
4240 (make-buildobj-SH): Fix last change.
4241 (SRC): Move to before where it's first used.
4242
ef73e7be
KH
42432009-08-27 Kenichi Handa <handa@m17n.org>
4244
550c8289
KH
4245 * process.c (send_process): Use encode_coding_object instead of
4246 encode_coding_string to perform eol-conversion even if the string
4247 is unibyte.
4248
60afa08d
KH
4249 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
4250 character.
4251
ef73e7be 4252 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 4253 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 4254
7b3a82d7
DN
42552009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
4256
5654bf63
DN
4257 * callproc.c (Fcall_process): Remove always true #if.
4258
7b3a82d7
DN
4259 * lisp.h: Replace #if 0 code for checking with text pointing to
4260 the --enable-checking configure flag.
4261
4262 * emacs.c (main): Mention the --enable-profiling configure flag
4263 instead of using CFLAGS.
4264
878bde49
KR
42652009-08-26 Ken Raeburn <raeburn@raeburn.org>
4266
4267 * Makefile.in (buildobj.h): New target.
4268 (doc.o): Depend on it.
4269 (temacs${EXEEXT}): Don't generate buildobj.lst.
4270 (mostlyclean): Delete buildobj.h, not buildobj.lst.
4271 * makefile.w32-in ($(SRC)/buildobj.h): New target.
4272 ($(BLD)/doc.$(O)): Depend on it.
4273 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
4274 provided by Eli Zaretskii.)
4275 ($(TEMACS)): Don't generate buildobj.lst.
4276 * doc.c: Include buildobj.h.
4277 (buildobj): New static variable.
4278 (Fsnarf_documentation): Use it, instead of opening and reading
4279 buildobj.lst.
4280
1574224c
MA
42812009-08-25 Michael Albinus <michael.albinus@gmx.de>
4282
4283 * dbusbind.c (Fdbus_call_method)
4284 (Fdbus_call_method_asynchronously): Use English numeric format for
4285 timeout values in doc string.
4286
d9da2f45
KH
42872009-08-25 Kenichi Handa <handa@m17n.org>
4288
ef73e7be
KH
4289 * alloc.c (mark_char_table): New function.
4290 (mark_object): Use mark_char_table for a char-table.
4291
d9da2f45
KH
4292 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
4293 (CHAR_TABLE_REF): Use it.
4294
c8edcc01
KR
42952009-08-23 Ken Raeburn <raeburn@raeburn.org>
4296
4297 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
4298 before invoking the newly build emacs to check for load-path
4299 shadowing.
4300
7763401b
GM
43012009-08-22 Glenn Morris <rgm@gnu.org>
4302
4303 * Makefile.in (bootstrap_exe): New variable.
4304 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
4305 Use ${bootstrap_exe}.
4306
729eadda
EZ
43072009-08-22 Eli Zaretskii <eliz@gnu.org>
4308
4309 * coding.h (encode_coding_string): Don't encode unibyte strings.
4310 (Bug#4047)
4311
eb4c6ace
MA
43122009-08-22 Michael Albinus <michael.albinus@gmx.de>
4313
4314 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
4315
4316 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
4317 intended as hotfix only.
4318 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
4319
36e34d1b
AR
43202009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4321
4322 * nsterm.m (ns_get_color): Update documentation properly for last
4323 change, and clean up loose ends in the code left by it. Fix
4324 longstanding bug with 16-bit hex parsing, and add support for
4325 yet another X11 format (rgb:r/g/b) for compatibility.
4326 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
4327 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
4328
f983eb8a
SM
43292009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
4330
4331 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
4332
3f56d3c6
MA
43332009-08-20 Michael Albinus <michael.albinus@gmx.de>
4334
4335 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
4336 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
4337 (xd_initialize, xd_pending_messages): Check, whether
4338 $DBUS_SESSION_BUS_ADDRESS is set.
4339
fb641d68
YM
43402009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4341
4342 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
4343
4344 * nsterm.m (ns_get_color): Remove incompatible color formats again.
4345
cf59a374
GM
43462009-08-20 Glenn Morris <rgm@gnu.org>
4347
4348 * emacs.c (system-type): Doc fix.
4349
1373f3be
SM
43502009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
4351
4352 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
4353 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
4354
058ed861
MA
43552009-08-18 Michael Albinus <michael.albinus@gmx.de>
4356
1373f3be
SM
4357 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
4358 New functions.
058ed861
MA
4359 (xd_initialize): Revert change from 2009-08-16.
4360
563a866e 43612009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
4362
4363 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 4364 font-group vector, return nil.
5fc05db0 4365
e42bdf01
CY
43662009-08-17 Chong Yidong <cyd@stupidchicken.com>
4367
4368 * process.c (status_notify): Don't perform redisplay.
4369 (Fdelete_process, list_processes_1, process_send_signal):
4370 Expliticly perform redisplay.
4371 (wait_reading_process_output): Always check process status, but
4372 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
4373
4230ab74
KR
43742009-08-17 Ken Raeburn <raeburn@raeburn.org>
4375
1373f3be 4376 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
4377 (XFLOAT_INIT): New macro for storing a float value.
4378 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
4379 * fns.c (sxhash): Copy out the value of a float in order to
4380 examine its bytes.
4381 * dbusbind.c (xd_append_arg): Likewise.
4382
4230ab74
KR
4383 * emacs.c (main): Don't call syms_of_data twice.
4384
a0645cdd
MA
43852009-08-16 Michael Albinus <michael.albinus@gmx.de>
4386
4387 * dbusbind.c (xd_initialize): Add connection file descriptor to
4388 input_wait_mask, in order to let select() detect, whether a new
4389 message has been arrived.
ca4f31ea 4390 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 4391
485db0ba
MA
43922009-08-15 Michael Albinus <michael.albinus@gmx.de>
4393
1373f3be
SM
4394 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
4395 New functions.
485db0ba
MA
4396
4397 * lisp.h (xd_pending_messages): Declare.
4398
4399 * keyboard.c (readable_events): Call xd_pending_messages.
4400
b5b98ff4
CY
44012009-08-15 Chong Yidong <cyd@stupidchicken.com>
4402
1373f3be 4403 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 4404
f8354c6e
CY
4405 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
4406
b5b98ff4
CY
4407 * buffer.c (set_buffer_internal_1)
4408 (swap_out_buffer_local_variables): Check for unbound local
4409 variables (Bug#4138).
4410
8b9fc636
EZ
44112009-08-14 Eli Zaretskii <eliz@gnu.org>
4412
4413 * process.c (create_pty): Fix last change.
4414
ce959360
CY
44152009-08-13 Chong Yidong <cyd@stupidchicken.com>
4416
4417 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
4418 (xbm_load_image): Caller changed.
64b807c9 4419 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 4420
c7baf7e9
NR
44212009-08-13 Nick Roberts <nickrob@snap.net.nz>
4422
4423 * process.c (create_pty): New function.
4424 (Fstart_process): Use it to allow Emacs to just associate a pty
4425 with the buffer. See associated change in gdb-mi.el.
4426 (list_processes_1): Deal with no program name.
4427 (start_process_unwind): Use pid == -2 to mean no process.
4428
1ac9108a
SM
44292009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
4430
4431 * cmds.c (nonundocount): New global variable.
4432 (keys_of_cmds): Initialize it.
4433 (Fself_insert_command): Use it to combine upto 20 sequential chars
4434 into a single undo entry, just like the Qself_insert_command code in
4435 keyboard.c does.
4436 Call frame_make_pointer_invisible, also like the Qself_insert_command
4437 code in keyboard.c does.
4438 * keyboard.c (command_loop_1): Use the new global nonundocount rather
4439 than its own local replacement for it.
4440
e267324c
KR
44412009-08-10 Ken Raeburn <raeburn@raeburn.org>
4442
1ac9108a 4443 * fns.c (concat): Don't re-set string length to its current value.
77437343 4444
1ac9108a
SM
4445 * coding.h (decode_coding_string, encode_coding_string):
4446 Use SBYTES macro.
f0bed503 4447
1ac9108a 4448 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
4449 (doprnt): Merge with doprnt1, discarding lispstrings code.
4450 * lisp.h (doprnt_lisp): Don't declare.
4451
416e006d
JL
44522009-08-07 Juri Linkov <juri@jurta.org>
4453
4454 * puresize.h (BASE_PURESIZE): Increase to 1270000.
4455
6f7d5780
DN
44562009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
4457
4458 * print.c (syms_of_print): Undo previous change.
4459
f19a0f5b
TZ
44602009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
4461
4462 * lread.c (read1, syms_of_lread): Read hashtables back from the
4463 readable format.
4464
4465 * print.c (print_preprocess, print_object): Print hashtables fully
4466 and readably.
4467 (syms_of_print): Provide 'hashtable-print-readable.
4468
b9173dc2
AR
44692009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
4470
4471 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
4472 no family set.
4473 (nsfont_open): Handle case when entity has no family.
4474
1586503c
AR
44752009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
4476
4477 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
4478 element, not a list, for match case.
4479
087048cd
KH
44802009-07-28 Kenichi Handa <handa@m17n.org>
4481
4482 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
4483 rigidly.
4484
4485 * xfont.c (xfont_list_pattern): Don't ignore the return value of
4486 font_parse_xlfd. Check font properties more rigidly.
4487
780c2506
DN
44882009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
4489
31fd7c5c
JB
4490 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
4491 bsd-common.h.
780c2506 4492
a8c0cc18
KH
44932009-07-27 Kenichi Handa <handa@m17n.org>
4494
4495 * xfaces.c (face_with_height): Call font_clear_prop.
4496
4fbe2306
CY
44972009-07-26 Chong Yidong <cyd@stupidchicken.com>
4498
111d9af3
CY
4499 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
4500
4501 * xterm.c (x_term_init): Use Qx.
4502
4fbe2306
CY
4503 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
4504
1ac9108a 4505 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
4506 (ns_get_color): Revert 2009-07-16 change.
4507
beb0b7f9
EZ
45082009-07-25 Eli Zaretskii <eliz@gnu.org>
4509
4510 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 4511 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 4512
2baf5e76
KR
45132009-07-25 Ken Raeburn <raeburn@raeburn.org>
4514
1ac9108a
SM
4515 * coding.h (decode_coding_string, encode_coding_string):
4516 Use SCHARS macro.
8890e5f5 4517
2baf5e76 4518 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 4519 (load_depth): Delete.
2baf5e76
KR
4520 (Qload_in_progress): New variable.
4521 (load_unwind): Don't reference load_depth or load_in_progress.
4522 (Fload): Likewise; specbind Qload_in_progress instead.
4523 (init_lread): Don't initialize load_depth.
4524 (syms_of_lread): Initialize and protect Qload_in_progress.
4525
1395c6f5
AR
45262009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4527
4528 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
4529
4e2f36cf
AR
45302009-07-23 Yavor Doganov <yavor@gnu.org>
4531
4532 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
4533
5dd9a6f7
AR
45342009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
4535
4536 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
4537 Bugs 3792, 3720, 2402.
4538 (ns_lookup_indexed_color): Check for bad index.
4539 (ns_index_color): Init unused slot to 0.
4540 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
4541 Bug 3714, possibly 3082.
5dd9a6f7 4542
c902b920
JR
45432009-07-22 Jason Rumney <jasonr@gnu.org>
4544
1ac9108a
SM
4545 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
4546 Position IME window at cursor (Bug#2570).
c902b920
JR
4547 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
4548 (globals_of_w32fns): Dynamically load functions required above.
4549
4550 * w32term.c (w32_draw_window_cursor): Send message to reposition
4551 any IME window.
4552
090101cf
CY
45532009-07-21 Chong Yidong <cyd@stupidchicken.com>
4554
4555 * fileio.c: Revert 2009-07-16 changes.
4556 (Vauto_save_include_big_deletions): New variable.
4557 (Fdo_auto_save): Disable auto-save only if
4558 auto-save-include-big-deletions is nil.
4559
e6583e3d
CY
45602009-07-21 Chong Yidong <cyd@stupidchicken.com>
4561
4562 * xdisp.c (move_it_to): For continued lines ending in a tab, take
4563 the overflowed pixels into account (Bug#3879).
4564
ece435a5
KR
45652009-07-21 Ken Raeburn <raeburn@raeburn.org>
4566
4567 * lread.c (load_depth): New variable.
4568 (Fload, load_unwind, init_lread): Set it to the load recursion
4569 depth; set load_in_progress as a simple boolean based on the
4570 current load_depth. (Bug#3892)
4571
40b2d973
AR
45722009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4573
4574 * nsfont.m (ns_has_attribute): Remove.
4575 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
4576
10be7e0d
JL
45772009-07-18 Juri Linkov <juri@jurta.org>
4578
4579 * process.c (Fset_process_query_on_exit_flag): Mention killing
4580 a buffer in docstring.
4581
fa055055
KH
45822009-07-17 Kenichi Handa <handa@m17n.org>
4583
4584 * casetab.c (shuffle): Fix the logic of setting up the cycle.
4585
042f7b69
YM
45862009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4587
4588 * nsfns.m (Fns_set_alpha): Remove function.
4589 (syms_of_nsfns): Don't defsubr it.
4590
4591 * nsterm.m (ns_get_color): Remove incompatible color formats.
4592 (ns_color_to_lisp): Generate #rrggbb color format string.
4593
4be941e3
RS
45942009-07-16 Richard Stallman <rms@gnu.org>
4595
4596 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
4597 (Fset_buffer_auto_saved): Handle save_length = -2.
4598
4e6b227d
CY
45992009-07-16 Chong Yidong <cyd@stupidchicken.com>
4600
4601 * xterm.c (Qx_gtk_map_stock): New var.
4602
4603 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
4604 of calling intern each time.
4605
a1856973
YM
46062009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4607
4608 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
4609 does tiling.
4610
4611 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
4612
497e54d8
KH
46132009-07-14 Kenichi Handa <handa@m17n.org>
4614
72d36834
KH
4615 * font.c (font_vconcat_entity_vectors): New function.
4616 (struct font_sort_data): New member font_driver_preference.
4617 (font_compare): Check font_driver_preference.
4618 (font_sort_entities): The format of the first argument changed.
4619 (font_delete_unmatched): Likewise.
4620 (font_list_entities): The return type changed.
4621 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
4622 (font_find_for_lface): Adjuste for the above changes.
4623 Don't suppress the checking of C even if the repertory supports it.
4624 (Flist_fonts): Adjust for the above changes.
72d36834 4625
1ac9108a
SM
4626 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
4627 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
4628 Reject a font who has adstyle property that is different from a
4629 langname derived from registry property.
1ac9108a 4630 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 4631
b6046155
EZ
46322009-07-13 Eli Zaretskii <eliz@gnu.org>
4633
4634 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
4635 local copy of dirfilename.
4636
fb6b6049
KH
46372009-07-13 Kenichi Handa <handa@m17n.org>
4638
e2402a5e
KH
4639 * chartab.c (sub_char_table_ref_and_range): Fix the range check
4640 against max_char.
4641
fb6b6049
KH
4642 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
4643 calling XSYMBOL (sym).
4644
65156807
EZ
46452009-07-11 Eli Zaretskii <eliz@gnu.org>
4646
1ac9108a
SM
4647 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
4648 New function.
4649 (directory_files_internal) [WINDOWSNT]:
4650 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
4651 the filesystem of the directory is fast or slow.
4652
4653 * w32.c (logon_network_drive): Don't assume PATH is an absolute
4654 file name.
4655 (is_slow_fs): New function.
4656 (stat): Use it to determine whether to issue more system calls to
4657 get accurate file attributes, when w32-get-true-file-attributes is
4658 `local'.
4659
e0ab5fcf
JD
46602009-07-10 Jan Djärv <jan.h.d@swipnet.se>
4661
4662 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 4663 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
4664 parameter font-parameter as default to the font dialog.
4665
784ceded
KH
46662009-07-10 Kenichi Handa <handa@m17n.org>
4667
4668 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
4669
fb8edc0b
EZ
46702009-07-09 Eli Zaretskii <eliz@gnu.org>
4671
1ac9108a 4672 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 4673
fb8edc0b
EZ
4674 * w32.c (stat): Treat UNC file names as residing on remote
4675 drives. (Bug#3542)
4676
635c75b1
KH
46772009-07-09 Kenichi Handa <handa@m17n.org>
4678
4679 * fontset.c (fontset_find_font): Fix previous change.
4680
c1d5ce94
MA
46812009-07-08 Michael Albinus <michael.albinus@gmx.de>
4682
4683 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
4684 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
4685 error flag.
4686
edb61b39
KH
46872009-07-08 Kenichi Handa <handa@m17n.org>
4688
374bf7e4
KH
4689 * fontset.c (fontset_find_font): Fix the logic of handling
4690 charset_matched.
4691 (font_for_char): Delete unused var.
4692 (generate_ascii_font_name): Delete it.
4693
edb61b39
KH
4694 * coding.h (JIS_TO_SJIS2): Fix the code range check.
4695
4696 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
4697 (encode_coding_sjis): Fix the code range check.
4698
0f3f018c
CY
46992009-07-07 Chong Yidong <cyd@stupidchicken.com>
4700
4701 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
4702 (Fexpand_file_name): Copy string data properly (Bug#3772).
4703
fcaf6f3a
JD
47042009-07-07 Jan Djärv <jan.h.d@swipnet.se>
4705
4706 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
4707 first MapNotify.
4708
6809ca75
KH
47092009-07-07 Kenichi Handa <handa@m17n.org>
4710
4711 * character.h (unibyte_has_multibyte_table): Delete extern.
4712 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
4713
4714 * charset.c (Fset_charset_priority): Update charset_unibyte.
4715 (syms_of_charset): Initialize charset_unibyte.
4716
4717 * character.c (unibyte_has_multibyte_table): Delete it.
4718 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
4719 charset_unibyte.
4720 (multibyte_char_to_unibyte_safe): Likewise.
4721 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
4722
1ac9108a 4723 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
4724 (x_produce_glyphs): Likewise.
4725
4726 * .gdbinit (xcharset): Fix the treating $arg0.
4727
ad9e2d54
EZ
47282009-07-04 Eli Zaretskii <eliz@gnu.org>
4729
4730 Emulation of `getloadavg' on MS-Windows.
50426a04 4731 * w32.c: Include float.h.
ad9e2d54
EZ
4732 (g_b_init_get_native_system_info, g_b_init_get_system_times)
4733 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
4734 (get_native_system_info, get_system_times): New functions.
4735 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
4736 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
4737 (globals_of_w32): Initialize g_b_init_get_native_system_info,
4738 g_b_init_get_system_times, and num_of_processors.
4739
0a3472c7
JR
47402009-07-03 Jason Rumney <jasonr@gnu.org>
4741
4742 * w32term.c (w32_initialize): Use standard types.
4743
80904120
EZ
47442009-07-03 Eli Zaretskii <eliz@gnu.org>
4745
4746 * dired.c (Ffile_attributes): Decode user and group names by the
4747 locale's encoding. (Bug#3443)
4748
6978862d
DN
47492009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
4750
f8d23104
DN
4751 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
4752 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
4753
4754 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
4755
4756 * term.c (init_tty): Remove spurious #ifdef.
4757
6978862d
DN
4758 * m/mips.h: Mention this file is also used for netbsd.
4759 * m/pmax.h: Remove file.
4760
e044e4fc
JD
47612009-07-03 Jan Djärv <jan.h.d@swipnet.se>
4762
4763 * xterm.h (struct x_display_info): Add invisible_cursor.
4764 (struct x_output): Add current_cursor.
4765
4766 * xterm.c (XTtoggle_invisible_pointer): New function.
4767 (x_define_frame_cursor): Don't define cursor if invisible or the
4768 same as before. Set current_cursor.
4769 (x_create_terminal): Set toggle_invisible_pointer_hook.
4770
4771 * xfns.c (make_invisible_cursor): New function.
4772 (x_set_mouse_color): Call make_invisible_cursor.
4773 Set current_cursor.
4774 (x_window): Set current_cursor.
4775
4776 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
4777
4778 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
4779 inserting a character.
4780 (read_avail_input): Call frame_make_pointer_visible.
4781
4782 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
4783 (frame_make_pointer_invisible, frame_make_pointer_visible):
4784 New functions.
e044e4fc
JD
4785 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
4786
4787 * frame.h: Declare frame_make_pointer_invisible and
4788 frame_make_pointer_visible.
4789 (struct frame): Add pointer_invisible.
4790
574c8efa
JD
47912009-07-02 Jan Djärv <jan.h.d@swipnet.se>
4792
7b507248
JD
4793 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
4794 frame isn't visible.
4795 (xg_frame_resized): If width/height is -1, get size of window
4796 from X server.
4797
4798 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
4799 for MapNotify.
4800
835bdaa7 4801 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 4802 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 4803 (flush_and_sync): Reintroduce.
574c8efa 4804
3f1c6666 48052009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 4806
31fd7c5c 4807 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
4808
4809 * xterm.c (x_handle_net_wm_state): Also look for sticky.
4810 (x_term_init): Initialize Xatom_net_wm_state_sticky.
4811
4812 * frame.h: Declare Qsticky.
4813
cad9ef74
JD
4814 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
4815
4816 * nsfns.m (ns_frame_parm_handlers): Ditto.
4817
4818 * frame.c: Declare Qsticky.
4819 (frame_parms): Add sticky.
4820
4821 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
4822
4823 * xterm.h: Declare x_set_sticky.
4824
4825 * xterm.c (x_set_sticky): New function.
4826
69b16610
JD
4827 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
4828 (xg_tool_bar_menu_proxy): Attach enter/leave events to
4829 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
4830
4831 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
4832
4833 * frame.c: Qmaximized is new.
4834 (x_set_frame_parameters): Do not handle fullscreen specially.
4835 Only set width and height if explicitly set.
4836 (x_set_fullscreen): Handle Qmaximized.
4837 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
4838 (syms_of_frame): Initialize Qmaximized.
4839
1ac9108a
SM
4840 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
4841 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
4842
4843 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
4844 for Expose event. Add call to x_check_fullscreen for MapNotify event.
4845 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
4846 set gravity to NorthWestGravity when USE_GTK.
4847 (set_wm_state): New function.
31fd7c5c 4848 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
4849 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
4850 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 4851 or the case when no window manager is running. That means remove calls
3f1c6666
JD
4852 to x_real_positions and x_fullscreen_adjust.
4853
4854 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
4855 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
4856 flush_and_sync.
4857 (xg_height_changed): New function.
4858 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
4859 and gtk_window_set_policy. Set frame gravity after parsing the
4860 geometry string.
3f1c6666
JD
4861 (xg_update_frame_menubar, free_frame_menubar)
4862 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
4863 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
4864 Remove calls to xg_frame_set_char_size.
4865
fd503d99
KH
48662009-07-01 Kenichi Handa <handa@m17n.org>
4867
4868 * keyboard.c (decode_keyboard_code): New function.
4869 (tty_read_avail_input): Decode the input bytes if necessary.
4870
1ac9108a
SM
4871 * coding.c (setup_coding_system):
4872 Initialize coding->carryover_bytes to 0.
fd503d99
KH
4873 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
4874 use Qno_conversion.
4875
24ed93fb
YM
48762009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4877
4878 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
4879
99061dfc
CY
48802009-06-30 Chong Yidong <cyd@stupidchicken.com>
4881
1ac9108a 4882 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 4883
ff90fbde
JR
48842009-06-30 Jason Rumney <jasonr@gnu.org>
4885
4886 * w32term.c (w32_initialize): Use GetModuleHandle for library that
4887 is already loaded.
4888 Set user model ID if supported (bug#1849).
4889
5f445726
JM
48902009-06-29 Jim Meyering <meyering@redhat.com>
4891
4892 Remove useless if-before-xfree test.
4893 * nsfont.m (nsfont_close): Remove useless test.
4894 * term.c (delete_tty): Likewise.
4895 * w32.c (system_process_attributes): Likewise.
4896 * w32font.c (w32font_close): Likewise.
4897 * xfaces.c (x_free_gc): Likewise.
4898 * xselect.c (buffer): Likewise.
4899
b9607587
AS
49002009-06-28 Andreas Schwab <schwab@linux-m68k.org>
4901
4902 * process.c (send_process): Keep decoded string in a local
4903 variable and protect it from GC. (Bug#3521)
4904
89ba96f4
EZ
49052009-06-28 Eli Zaretskii <eliz@gnu.org>
4906
4907 * term.c (create_tty_output) [MSDOS]: #ifdef away.
4908 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
4909
098a1589
CY
49102009-06-28 Chong Yidong <cyd@stupidchicken.com>
4911
485422be
CY
4912 * xdisp.c (start_display, handle_face_prop)
4913 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
4914 (redisplay_window, try_window_id, produce_image_glyph):
4915 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 4916
098a1589
CY
4917 * xterm.c (x_update_window_begin, x_new_focus_frame)
4918 (x_scroll_bar_handle_click, handle_one_xevent)
4919 (handle_one_xevent, XTread_socket, x_focus_on_frame)
4920 (x_make_frame_visible, x_make_frame_invisible)
4921 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
4922 code chunks that are now obsolete.
4923
78c38319
MA
49242009-06-28 Michael Albinus <michael.albinus@gmx.de>
4925
4926 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
4927 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
4928 for hours, when optimzation is enabled.
4929 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
4930 (xd_read_message): Make them static.
4931
4189ed40
CY
49322009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
4933
4934 * term.c (turn_on_face): Allow simultaneously bold and dim
4935 terminal faces (Bug#3530).
4936
cd9b5e16
CY
49372009-06-27 Chong Yidong <cyd@stupidchicken.com>
4938
4e23bedb
CY
4939 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
4940
cd9b5e16
CY
4941 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
4942 truncation glyphs (Bug#3686).
4943
07cc3c35
GM
49442009-06-27 Glenn Morris <rgm@gnu.org>
4945
4946 * m/pmax.h: Restore file, with only netbsd portions.
4947
31fd7c5c 49482009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 4949
cd9b5e16 4950 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 4951
42d4a64f
KH
49522009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
4953
4954 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
4955 the arg FORCE_SYMBOL.
4956
930fe55b 49572009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
4958
4959 * fontset.c (fontset_find_font): When a usable rfont_def is found
4960 in a fallback font-group, make it the first element of the group.
4961
57ebc3fd
CY
49622009-06-24 Chong Yidong <cyd@stupidchicken.com>
4963
4964 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
4965
f084f942
KH
49662009-06-24 Kenichi Handa <handa@m17n.org>
4967
4968 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
4969 set for C.
4970 (fontset_font): Record the availability of a font for C both in
4971 the realized fontsets of the current one and the default one.
4972
2f686c87
DN
49732009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
4974
4975 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
4976 conditional, it is always defined on AIX.
4977
666e158e
MB
49782009-06-23 Miles Bader <miles@gnu.org>
4979
4980 * window.c (Vrecenter_redisplay): New variable.
4981 (syms_of_window): Initialize it.
4982 (Qtty): New extern declaration.
4983 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
4984
c6da7cd2
JM
49852009-06-23 Jim Meyering <meyering@redhat.com>
4986
1ac9108a
SM
4987 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
4988 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 4989 pointer dereferences are guaranteed to be valid.
c6da7cd2 4990
678dca3d
KH
49912009-06-23 Kenichi Handa <handa@m17n.org>
4992
74d75424
KH
4993 * emacs.c (main): Call init_font ().
4994
4995 * font.h (Vfont_log): Extern it.
4996 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
4997
4998 * font.c (font_sort_entities, font_list_entities)
4999 (font_matching_entity, font_open_entity)
5000 (font_close_object): Change font_add_log to FONT_ADD_LOG.
5001 (Vfont_log): Delete static.
5002 (font_log_env_checked): Delete this variable.
5003 (font_add_log): Don't check font_log_env_checked.
5004 (font_deferred_log): Check Vfont_log.
5005 (init_font): New function.
5006
678dca3d
KH
5007 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
5008
5009 * w32font.c: Change font_add_log to FONT_ADD_LOG.
5010
5011 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
5012
5013 * xfont.c: Change font_add_log to FONT_ADD_LOG.
5014
5015 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
5016 (face_for_char): Don't call font_deferred_log here.
5017 (font_for_char): Likewise.
5018
8a668709
CY
50192009-06-22 Chong Yidong <cyd@stupidchicken.com>
5020
9a01ee33
CY
5021 * w32term.c (x_draw_glyph_string): Use the glyph string's width
5022 rather than its background_width for drawing the overline and
5023 underline (Bug#489).
5024
5025 * xterm.c (x_draw_glyph_string): Use the glyph string's width
5026 rather than its background_width for drawing the overline and
5027 underline (Bug#489).
ec7c9926
CY
5028 (xg_default_icon_file): New variable.
5029 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
5030 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 5031
8a668709
CY
5032 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
5033 (load_overlay_strings): Remove externs.
5034 (fast_find_position): Function deleted.
5035 (mouse_face_from_buffer_pos): New function, based on
5036 fast_find_position. Correctly handle before-strings,
5037 display-strings, and after-strings (Bug#1220).
5038 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
5039
4d4c02d8
CY
50402009-06-21 Chong Yidong <cyd@stupidchicken.com>
5041
1ac9108a 5042 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
5043 (move_it_in_display_line_to, move_it_in_display_line_to)
5044 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
5045
70243478
CY
50462009-06-21 Chong Yidong <cyd@stupidchicken.com>
5047
5048 * Branch for 23.1.
5049
13087e59
JR
50502009-06-21 Jason Rumney <jasonr@gnu.org>
5051
5052 * w32term.c (keyboard_codepage): New static variable.
5053 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
5054 (w32_read_socket) [WM_CHAR]: Use it to decode character
5055 input (bug#3237).
5056 (w32_initialize): Initialize it.
5057 (codepage_for_locale): New function.
5058
4735b74e
KR
50592009-06-20 Ken Raeburn <raeburn@raeburn.org>
5060
5061 * process.c (status_message): Pass Faset index argument as a lisp
5062 object, so as to work with USE_LISP_UNION_TYPE.
5063
0e727afa
YM
50642009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5065
5066 * coding.c (Ffind_coding_systems_region_internal):
5067 Cache checked characters.
5068
cf299835
KH
50692009-06-18 Kenichi Handa <handa@m17n.org>
5070
1ac9108a 5071 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 5072
90f20d94
AS
50732009-06-18 Andreas Schwab <aschwab@redhat.com>
5074
5075 * xdisp.c (redisplay_internal): Check that the frame is still
5076 live after redisplay of its windows.
5077 (redisplay_windows): Check that the window is still live.
5078
7f1faf1c
KH
50792009-06-17 Andreas Schwab <schwab@linux-m68k.org>
5080
5081 * coding.c (detect_coding_utf_16): Fix previous change.
5082
cc13543e
KH
50832009-06-16 Kenichi Handa <handa@m17n.org>
5084
5085 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
5086 UTF-16 by checking the dispersion of Eth and Oth bytes.
5087
977b85f4
AS
50882009-06-15 Andreas Schwab <schwab@linux-m68k.org>
5089
5090 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
5091
66bd43d1
KH
50922009-06-15 Kenichi Handa <handa@m17n.org>
5093
5094 * process.c (status_message): Fix previous change. Be sure to
5095 decode a localized string.
5096
cb5ca9c5
YM
50972009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5098
5099 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
5100 add comment explaining why.
5101
ec7709ba 51022009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 5103
ec7709ba 5104 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 5105
4b7f335c
AR
51062009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
5107
5108 * nsfont.m (ns_attribute_value): Remove.
5109 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
5110 (ns_has_attribute): Shrink the normal range.
5111 (ns_findfonts): Don't worry about requested spec in determining
5112 need for synthItal.
e41820ee 5113 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 5114
73b26103
SZ
51152009-06-14 Seiji Zenitani <zenitani@mac.com>
5116
5117 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
5118
5753e4da
KH
51192009-06-11 Kenichi Handa <handa@m17n.org>
5120
5121 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
5122 overhang for the static composition case.
5123
3561b671
KH
51242009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5125
5753e4da
KH
5126 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
5127 overhang for the automatic composition case.
5128
3561b671
KH
5129 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
5130 composition case.
5131
852bbd41
CY
51322009-06-10 Chong Yidong <cyd@stupidchicken.com>
5133
5134 * xdisp.c (get_next_display_element): When handling wrap-prefix
5135 and line-prefix, treat \n as a control character (bug#3502).
5136
9903d1e6
KH
51372009-06-10 Kenichi Handa <handa@m17n.org>
5138
5139 * font.c (font_parse_family_registry): Fix for one-char foundry.
5140 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
5141
0bcbaaaa
CY
51422009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
5143
5144 * process.c (status_message): Fix handling of multibyte signal
5145 string (Bug#3499).
5146
40aa3f13
JM
51472009-06-09 Jim Meyering <meyering@redhat.com>
5148
1f80c7e2
CY
5149 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
5150 color name is missing.
40aa3f13 5151
72d51285
KH
51522009-06-09 Kenichi Handa <handa@m17n.org>
5153
5154 * charset.c (Fmap_charset_chars): In docstring, state clearly that
5155 FROM-CODE and TO-CODE are codepoints of CHARSET.
5156
c1d04d84
AR
51572009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
5158
5159 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
5160
51612009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
5162
5163 Changes to support :script/:lang/:otf in NS font driver.
5164 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
5165 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
5166 indicate not part of font driver interface, and change callers.
5167 (ns_get_family): Remove pointless null check.
5168 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
5169 ns_spec_to_descriptor, ns_descriptor_to_entity.
5170 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
5171 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
5172 (ns_spec_to_descriptor, ns_descriptor_to_entity)
5173 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
5174 (ns_get_req_script, ns_accumulate_script_ranges)
5175 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
5176 New functions.
5177 (nsfont_list, nsfont_match): Use ns_findfonts.
5178 (nsfont_open): Use font descriptor instead of traits.
5179 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
5180 (dump_glyphstring): Rename to ns_dump_glyphstring.
5181
c7eb9816
AR
5182 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
5183
c1d04d84
AR
5184 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
5185
5186 * fontset.c (fontset_from_font): Remove NS-specific code.
5187
ec7709ba 51882009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
5189
5190 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
5191 nonactive windows.
5192
31fd7c5c 51932009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 5194
1ac9108a 5195 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 5196
68852c13 51972009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
5198
5199 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
5200
6756cd1d
CY
52012009-06-07 Chong Yidong <cyd@stupidchicken.com>
5202
5203 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
5204 account for the overflowing of newlines into the last glyph on the
5205 display line (Bug#3482).
5206
28bf482a
DR
52072009-06-05 David Reitter <david.reitter@gmail.com>
5208
ec7709ba
JB
5209 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
5210 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
5211 Fns_selection_exists_p, Fns_selection_owner_p.
5212
fdb55376
JR
52132009-06-03 Jason Rumney <jasonr@gnu.org>
5214
5215 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
5216 available. (Bug#3379)
5217
05129fbe
KH
52182009-05-29 Kenichi Handa <handa@m17n.org>
5219
1ac9108a
SM
5220 * coding.c (get_translation_table):
5221 Check Venable_character_translation.
05129fbe 5222
ec7709ba 52232009-05-26 David Reitter <david.reitter@gmail.com>
15891144 5224
ec7709ba
JB
5225 * nsterm.m (ns_raise_frame): Only raise frame if visible.
5226 (x_make_frame_visible): Move frame to front rather than calling
15891144 5227 ns_raise_frame().
ec7709ba 5228 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 5229 isn't key window.
ec7709ba 5230 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
5231 drawRect may be called by NSView even if the frame is hidden.
5232
ec7709ba
JB
5233 * nsfns.m (Fx_create_frame): Follow other ports in
5234 determining visibility; default to t. Ensure async_visible is set.
15891144 5235
21f73755
EZ
52362009-05-23 Eli Zaretskii <eliz@gnu.org>
5237
5238 * dired.c (Ffile_attributes): Doc fix.
5239
34001e41
CY
52402009-05-22 Chong Yidong <cyd@stupidchicken.com>
5241
5242 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
5243
46306a17
SM
52442009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
5245
5246 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
5247 and xfont_scratch_props.
5248 (syms_of_xfont): Do it here instead.
5249 (xfont_find_ccl_program): Delete, unused.
5250 (xfont_open): Delete unused var `i'.
5251
ef6e0694
KH
52522009-05-21 Kenichi Handa <handa@m17n.org>
5253
5254 * fontset.c (Qlatin): Don't make it static.
5255
46306a17
SM
5256 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
5257 New functions.
ef6e0694
KH
5258 (xfont_scripts_cache, xfont_scratch_props): New variables.
5259 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
5260 (xfont_list_pattern): Argument changed. Callers changed.
5261 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
5262 (xfont_list): Don't reject a font spec with :script property.
5263 (xfont_has_char): Fix setting of encoding.
5264 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
5265 xfont_scratch_props.
5266
52672009-05-19 Kenichi Handa <handa@m17n.org>
5268
46306a17 5269 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
5270 Callers changed.
5271
52722009-05-18 Kenichi Handa <handa@m17n.org>
5273
5274 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
5275
ac71ced7
SM
52762009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
5277
5278 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
5279 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
5280
1c6d1051
YM
52812009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5282
5283 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
5284 (x_delete_terminal): Dissociate resource database from display and
5285 then call XrmDestroyDatabase before closing display.
5286
9b9b779c
AR
52872009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
5288
5289 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
5290 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
5291 whether selected frame is viable before raising it (based on patch
5292 by David Reitter), and improve commentary.
5293 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 5294
cccd42d5
KH
52952009-05-15 Kenichi Handa <handa@m17n.org>
5296
5297 * font.c (Ffont_spec): Check arguments.
5298
337fbd17
CY
52992009-05-14 Chong Yidong <cyd@stupidchicken.com>
5300
5301 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
5302 weight when testing attributes (Bug#3282).
5303
47a6002f
JD
53042009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5305
5306 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
5307 what we expect to get in the next ConfigureNotify event.
5308
9cb363db
YM
5309 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
5310 before Xft one (Bug#1696).
5311
b9126609
CY
53122009-05-07 David Reitter <david.reitter@gmail.com>
5313
5314 * nsfns.m (Fx_display_planes): Compute bitplanes using
5315 NSBitsPerPixelFromDepth (Bug#3207).
5316
27a69fd9
CY
53172009-05-10 Chong Yidong <cyd@stupidchicken.com>
5318
5319 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
5320
00f37552
TTN
53212009-05-10 Ulrich Mueller <ulm@gentoo.org>
5322
5323 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
5324
2d82a920
DR
53252009-05-07 David Reitter <david.reitter@gmail.com>
5326
ec7709ba
JB
5327 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
5328 Respect mouse face background.
2d82a920 5329
46b0d52d
DR
53302009-05-07 David Reitter <david.reitter@gmail.com>
5331
ec7709ba
JB
5332 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
5333 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
5334 in ns_update_begin and ns_update_end.
5335
ce1b23bb
SM
53362009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
5337
5996e1b7
SM
5338 * nsfns.m (ns_get_screen): Rewrite.
5339 Don't presume selected-frame is of type `ns'.
5340
ba98e3a0
SM
5341 * font.c (font_update_drivers): Sanity fallback to avoid disabling
5342 all drivers.
5343
ce1b23bb
SM
5344 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
5345
bcda200f
YM
53462009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5347
5348 * keyboard.h (add_user_signal): Fix typo in extern.
5349
5350 * lisp.h (add_user_signal): Remove extern.
5351
5352 * unexelf.c (unexec): Consider a section to precede the .bss section
5353 if its addresses overlap that of .bss.
5354 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
5355 instead of dumping process.
5356
864660a2
SM
53572009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
5358
5359 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
5360
50da4e56
SM
53612009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
5362
5363 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
5364
51520a1a
DN
53652009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
5366
5367 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
5368 any statements.
5369
409ea3a1
AS
53702009-05-02 Andreas Schwab <schwab@linux-m68k.org>
5371
59c4c60f
AS
5372 * process.c (read_process_output): Make sure the current buffer is
5373 always restored.
5374
409ea3a1
AS
5375 * coding.c (record_conversion_result): Don't modify
5376 Vlast_code_conversion_error for successful result.
5377 (alloc_destination): Don't clobber conversion result. (Bug#1650)
5378
56f00ed2
KH
53792009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
5380
5381 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 5382 (load_charset_map): Remove unnecessary code.
56f00ed2 5383
4491c9d2
DR
53842009-04-30 David Reitter <david.reitter@gmail.com>
5385
35f5b128 5386 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
5387 through f24.
5388
6970f632
CY
53892009-04-30 Chong Yidong <cyd@stupidchicken.com>
5390
5391 * xfaces.c (face_at_buffer_position): New arg base_face_id.
5392
5393 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
5394 face_at_buffer_position.
5395 (face_before_or_after_it_pos, get_next_display_element)
5396 (note_mouse_highlight): Update face_at_buffer_position call.
5397
5398 * term.c (term_mouse_highlight):
5399 * msdos.c (IT_note_mouse_highlight):
5400 * fontset.c (Finternal_char_font):
35f5b128 5401 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
5402
5403 * dispextern.h (face_at_buffer_position): Update prototype.
5404
0c616f63
KH
54052009-04-30 Kenichi Handa <handa@m17n.org>
5406
35f5b128 5407 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 5408
ad3aaf33
AS
54092009-04-29 Andreas Schwab <schwab@linux-m68k.org>
5410
5411 * callproc.c (Fcall_process): Fix GC protection. Make sure
5412 current buffer is always restored.
5413
c3c963a0
YM
54142009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5415
5416 * atimer.c (init_atimer): Also clear stopped_atimers.
5417
5418 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
5419
7e3386cb
YM
5420 * process.c (create_process): Clean up merger residues of
5421 2008-07-17 change.
5422
91f68422
CY
54232009-04-29 Ulrich Mueller <ulm@gentoo.org>
5424
5425 * lread.c (Vread_circle): New variable.
5426 (read1): Disable recursive read if Vread_circle is nil.
5427
24b34550
KH
54282009-04-29 Kenichi Handa <handa@m17n.org>
5429
5430 * fontset.h (set_default_ascii_font): Delete extern.
5431
5432 * fontset.c (set_default_ascii_font): Delete this unused function.
5433
5434 * frame.c (x_set_font): When ARG is a font-object, check if the
5435 font-object matches with the ASCII font-spec of the frame's
9c358bda 5436 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 5437
77bf07e1
AS
54382009-04-28 Andreas Schwab <schwab@linux-m68k.org>
5439
5440 * fns.c (Flocale_info): Protect vector from GC during decoding.
5441
5442 * process.c (Fstart_process): Protect argv strings from GC during
5443 encoding.
5444
2c55aacf
AS
54452009-04-27 Andreas Schwab <schwab@linux-m68k.org>
5446
5447 * sysdep.c: Include <ctype.h>.
5448
b892d3c9
DR
54492009-04-27 David Reitter <david.reitter@gmail.com>
5450
35f5b128 5451 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
5452 Remove commented-out code.
5453
9d0644c4
JB
54542009-04-26 Johan Bockgård <bojohan@gnu.org>
5455
5456 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
5457
b7053016
JR
54582009-04-25 Jason Rumney <jasonr@gnu.org>
5459
5460 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
5461
4e8231f3
YM
54622009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5463
5464 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
5465 Swap bytes in short integer if fringe bitmap width > 8.
5466
493dcf2c
KH
54672009-04-23 Kenichi Handa <handa@m17n.org>
5468
5469 * xfaces.c (Fx_list_fonts): If a font size is specified in
5470 PATTERN, set it in returned scalable fonts.
5471
401e9e57
CY
54722009-04-22 Chong Yidong <cyd@stupidchicken.com>
5473
708e05dc
CY
5474 * keyboard.c (Fset_input_meta_mode): Doc fix.
5475
5476 * dispnew.c (Fsend_string_to_terminal): Doc fix.
5477
1ac9108a 5478 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
5479
5480 * coding.c (Fterminal_coding_system): Doc fix.
5481
5482 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
5483 (Fx_display_pixel_height, Fx_display_planes)
5484 (Fx_display_color_cells, Fx_server_max_request_size)
5485 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
5486 (Fx_display_mm_height, Fx_display_mm_width)
5487 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
5488 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
5489 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
5490 (check_x_display_info): Handle terminal objects instead of
5491 terminal ids.
5492
401e9e57
CY
5493 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
5494 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
5495 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
5496 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 5497
df80c7f0
KH
54982009-04-21 Kenichi Handa <handa@m17n.org>
5499
5a8f12af 5500 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 5501 (font_score): Check AVGWIDTH too.
908567ef 5502
df80c7f0
KH
5503 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
5504 worst case.
1ac9108a
SM
5505 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
5506 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 5507
705af33f
JR
55082009-04-19 Jason Rumney <jasonr@gnu.org>
5509
5510 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 5511 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
5512
5513 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
5514 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
5515 get_phys_cursor_geometry.
5516
b71ac3dd 5517 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
5518 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
5519 using get_phys_cursor_geometry.
5520
5521 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
5522 correctly calculated.
5523
dc2933eb
JD
55242009-04-19 Jan Djärv <jan.h.d@swipnet.se>
5525
1ac9108a
SM
5526 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
5527 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
5528 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
5529 is deprecated.
5530
973e7849
AS
55312009-04-18 Andreas Schwab <schwab@linux-m68k.org>
5532
5533 * font.c (font_put_frame_data): Use xfree instead of free.
5534
314d66f4
JB
55352009-04-17 Juanma Barranquero <lekktu@gmail.com>
5536
5537 * w32font.c (Qja, Qko): Remove declarations.
5538 (syms_of_w32font): Don't DEFSYM them.
5539
cf702558
CY
55402009-04-17 Chong Yidong <cyd@stupidchicken.com>
5541
5542 * font.c (Qja, Qko): Move definitions here from ftfont.c.
5543
5544 * font.h (Qja, Qko): Extern them.
5545
5546 * ftfont.c (Qja, Qko): Remove declarations.
5547
5548 * xfont.c (Qja, Qko): Remove declarations.
5549
b50504f5
KH
55502009-04-17 Kenichi Handa <handa@m17n.org>
5551
bde25748
KH
5552 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
5553 string from a vector to handle Latin-1 characters correctly.
5554
b50504f5
KH
5555 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
5556 entity even if the cache hits.
5557
f4646fff
AS
55582009-04-16 Andreas Schwab <schwab@linux-m68k.org>
5559
5560 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 5561 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 5562
e7deaab0
AS
5563 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
5564 * lisp.h: Adjust prototypes.
5565
0a0e7d49
CY
55662009-04-16 Chong Yidong <cyd@stupidchicken.com>
5567
5568 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
5569 change (Bug#3003).
5570
3c908a57
KH
55712009-04-16 Kenichi Handa <handa@m17n.org>
5572
1ac9108a 5573 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
5574
5575 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
5576 adstyle.
5577
5578 * ftfont.c (Qja, Qko): Don't make them static.
5579 (enum ftfont_cache_for): New enum.
5580 (fc_charset_table): Undo the previous change.
5581 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
5582 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
5583 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
5584 non-scarable font, try to get AVERAGE_WIDTH.
5585 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
5586 Change ft_face_cache from a list of a hash-table. Don't check
5587 `ja' and `ko' adstyle here.
5588 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
5589 FTFONT_CACHE_FOR_CHARET.
5590 (ftfont_get_charset): Undo the previous change.
1ac9108a 5591 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
5592 (ftfont_close): Likewise.
5593 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
5594
5595 * font.c (font_sort_entites): Change the meaning of the arg
5596 BEST-ONLY. Don't optimize for VEC of lenght 1.
5597 (font_select_entity): Just return the value of font_sort_entites.
5598
5599 * xfaces.c (merge_face_vectors): Reflect font properties in
5600 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
5601 font_clear_prop if a face attribute doesn't change.
5602
3c908a57
KH
5603 * charset.h (charset_ksc5601): Extern it.
5604
5605 * charset.c (charset_ksc5601): New variable.
5606 (Fdefine_charset_internal): Set charset_ksc5601.
5607 (init_charset_once): Initialize charset_ksc5601 to -1.
5608
d65859c3
DN
56092009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
5610
5611 * fileio.c (history_delete_duplicates): Remove unused declaration.
5612
5613 * callint.c (history_delete_duplicates): New declaration.
5614 (Fcall_interactively): Remove command history duplicates when
5615 history_delete_duplicates is true.
5616
3ba010e5
EZ
56172009-04-14 Eli Zaretskii <eliz@gnu.org>
5618
5619 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
5620
06f19b91
KH
56212009-04-14 Kenichi Handa <handa@m17n.org>
5622
5623 * font.c (Ffont_info): Fix docstring. Fix the second element of
5624 the returned value (bug#2949).
5625
2cce8bfc
CY
56262009-04-14 Chong Yidong <cyd@stupidchicken.com>
5627
5628 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
5629
d156542d
KH
56302009-04-14 Kenichi Handa <handa@m17n.org>
5631
5632 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
5633 encoding charset is ascii_compatible.
5634
5635 * charset.c (Fdefine_charset_internal): Make charset
5636 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
5637 code_offset is 0, and covers all ASCII characters.
5638
86fa089e
SM
56392009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
5640
5641 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
5642 (ns_string_to_pasteboard_internal):
5643 * nsmenu.m (process_dialog):
5644 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
5645 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
5646 * lisp.h (Fx_load_color_file): Declare.
5647
a8a3728b
KH
56482009-04-13 Kenichi Handa <handa@m17n.org>
5649
1ac9108a 5650 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
5651 (font_select_entity): Suppress the code to optimize for the same
5652 kind of fonts.
5653 (font_load_for_lface): Get a font that supports at least ASCII
5654 characters.
5655
5656 * ftfont.c (Qja, Qko): New variables.
5657 (fc_charset_table): Delete uniquifier data for iso8859-1.
5658 (ftfont_get_latin1_charset): New function.
5659 (get_adstyle_property): New function.
5660 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
5661 bitmap fonts.
5662 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
5663 Delete iso-8859-1 range from the charset of fonts whose adstyle is
5664 `ko' or `ja'.
5665 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 5666 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
5667 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
5668 property.
5669 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
5670 (syms_of_ftfont): DEFSYM Qja and Qko.
5671
483670b5
KH
56722009-04-09 Kenichi Handa <handa@m17n.org>
5673
12b55765
KH
5674 * charset.c (map_charset_chars): For a charset of `superset'
5675 method, fix calculation of code range.
5676
483670b5
KH
5677 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
5678 from the list of extra properties.
5679 (font_clear_prop): Be sure to delete `:name' font property.
5680
57d3b93b
KH
56812009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5682
b4b2c2ca
YM
5683 * dispnew.c (redraw_overlapping_rows): Fix detection of
5684 overlapping for topmost and bottommost rows.
5685
1ac9108a 5686 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 5687
472c3609
JR
56882009-04-06 Jason Rumney <jasonr@gnu.org>
5689
5690 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
5691
ab193662
KH
56922009-04-06 Kenichi Handa <handa@m17n.org>
5693
5694 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
5695
5696 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
5697
0c26f026
KH
56982009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5699
5700 * ftfont.c (ftfont_open): Fix checking of the return value of
5701 FT_Load_Char. Fix setting font->underline_thickness.
5702
e173bbce
CY
57032009-04-04 Chong Yidong <cyd@stupidchicken.com>
5704
5705 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
5706 (Fterminal_parameters, Fterminal_parameter)
5707 (Fset_terminal_parameter): In doc string, refer to terminal
5708 objects rather than terminal ids.
5709
693a2698
EZ
57102009-04-04 Eli Zaretskii <eliz@gnu.org>
5711
5712 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
5713 ret_lim_data. (Bug#2867)
5714
d5221487
CY
57152009-04-03 Chong Yidong <cyd@stupidchicken.com>
5716
5717 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
5718 so they don't get wider than the window, matching 2006-01-23
5719 change to the partner function in xdisp.c (Bug#2800).
5720
223509a3
KH
57212009-04-03 Kenichi Handa <handa@m17n.org>
5722
5723 * print.c (print_object): Make each lowest sub_char_table start a
5724 new line (Bug#2866).
5725
74fcd0b1
KH
57262009-04-02 Kenichi Handa <handa@m17n.org>
5727
5728 * fontset.c (fontset_font): Record no-font when a fontset
5729 explicitly tells not to try another font-specs.
5730
c542407d
SM
57312009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
5732
5733 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
5734
e3869731
KH
57352009-03-30 Kenichi Handa <handa@m17n.org>
5736
d8d2f142
KH
5737 * fontset.c (fontset_from_font): Specify only registry in a
5738 font-spec for all characters supported by that registry.
5739
e3869731
KH
5740 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
5741 even if HAVE_M17N_FLT is not defined.
5742
5da5f805
CY
57432009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
5744
5745 * ftfont.c: Conditionalize prototyping and use of
5746 ftfont_variation_glyphs.
5747
ab226c50
SM
57482009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
5749
9628fed7
SM
5750 * frame.c (delete_frame): Work around compiler bug.
5751
5752 * editfns.c (general_insert_function): Adjust to insdel.c changes.
5753 * insdel.c (prepare_to_modify_buffer, signal_before_change):
5754 Some more EMACS_INT.
5755 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
5756
5757 * xdisp.c (dump_glyph): Fix typo.
5758
ae19ba7c
SM
5759 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
5760 (adjust_markers_gap_motion, adjust_markers_for_delete)
5761 (adjust_markers_for_insert, adjust_point)
5762 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
5763 (make_gap, copy_text, count_size_as_multibyte, insert)
5764 (insert_and_inherit, insert_before_markers)
5765 (insert_before_markers_and_inherit, insert_1)
5766 (count_combining_before, count_combining_after, insert_1_both)
5767 (insert_from_string, insert_from_string_before_markers)
5768 (insert_from_string_1, insert_from_gap, insert_from_buffer)
5769 (insert_from_buffer_1, adjust_after_replace)
5770 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
5771 (replace_range_2, del_range, del_range_1, del_range_byte)
5772 (del_range_both, del_range_2, modify_region)
5773 (prepare_to_modify_buffer, signal_before_change)
5774 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
5775 for buffer positions and sizes.
5776 * lisp.h: Adjust prototypes accordingly.
5777
5778 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
5779 (non_regular_inserted, non_regular_nbytes, read_non_regular)
5780 (Finsert_file_contents): Use EMACS_INT for buffer positions.
5781
ab226c50
SM
5782 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
5783
46dfb8fb
JD
57842009-03-27 Jan Djärv <jan.h.d@swipnet.se>
5785
5786 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
5787 lines and columns so we keep the same pixel height and width.
5788
5789 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
5790 the property _NET_WM_STATE has changed.
46dfb8fb
JD
5791 (x_handle_net_wm_state): New function to update frame parameter
5792 fullscreen.
5793 (x_term_init): Initialize atoms for _NET_WM_STATE.
5794
5795 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
5796
d347e494
SM
57972009-03-27 Kevin Ryde <user42@zip.com.au>
5798
5799 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
5800 Gpm_GetEvent as an error that justifies closing the filedescriptor.
5801 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
5802 (Fgpm_mouse_stop): Pass that new parameter.
5803 * termhooks.h (close_gpm): Adjust prototype.
5804
84db11d6
SM
58052009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
5806
c95a5008
SM
5807 * lisp.h (Fx_focus_frame): Declare.
5808
84db11d6
SM
5809 * callint.c (Fcall_interactively): For '^' just delegate the work to
5810 handle-shift-selection.
5811 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
5812
0a1958d6
CY
58132009-03-24 Chong Yidong <cyd@stupidchicken.com>
5814
0bfdff23
CY
5815 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
5816
0a1958d6
CY
5817 * data.c (Qinteractive_form): New variable.
5818 (Finteractive_form): Use it.
5819
5820 * eval.c (Fcommandp): Use Qinteractive_form.
5821
58aec0d6
JR
58222009-03-24 Jason Rumney <jasonr@gnu.org>
5823
5824 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
5825 Calculate total size precisely. Decode environment variables
5826 before substituting. (Bug#38)
5827
553dd618
KH
58282009-03-24 Kenichi Handa <handa@m17n.org>
5829
5830 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 5831 encoding (Bug#2722).
553dd618 5832
c39ea606
JD
58332009-03-23 Jan Djärv <jan.h.d@swipnet.se>
5834
5835 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
5836 that gdpy is set.
5837
bc9b2b5e
AM
58382009-03-22 Alan Mackenzie <acm@muc.de>
5839
5840 * callint.c (Finteractive): Clarify the doc string - even
5841 promptless elements need \n separators.
5842
9f995a76
JR
58432009-03-22 Jason Rumney <jasonr@gnu.org>
5844
5845 * w32term.c (syms_of_w32term): Doc fix for
5846 x-use-underline-position-properties.
5847
22749e9a
EZ
58482009-03-21 Eli Zaretskii <eliz@gnu.org>
5849
5850 * w32.c (getpwuid): Change argument type to unsigned.
5851 (struct w32_id): Change type of `rid' member to unsigned.
5852 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
5853 argument ID to unsigned. All callers changed.
5854 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
5855
e00553bf
EZ
58562009-03-20 Eli Zaretskii <eliz@gnu.org>
5857
5858 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
5859 negative, produce a float value.
5860
5861 * dired.c (make_uid, make_gid): New functions.
5862 (Ffile_attributes): Use them to avoid negative UID and GID.
5863
f761d6b6
JB
58642009-03-20 Juanma Barranquero <lekktu@gmail.com>
5865
5866 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
5867 (syms_of_keyboard) <command-hook-internal, input-method-function>:
5868 Fix typos in docstrings.
5869
d507f8d7
KH
58702009-03-19 Kenichi Handa <handa@m17n.org>
5871
5872 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
5873 changed, use font_load_for_lface to get a new font object.
5874 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
5875
5876 * frame.c (x_set_font): Handle the case that ARG is a cons.
5877
c68845e0
GM
58782009-03-19 Glenn Morris <rgm@gnu.org>
5879
5880 * fileio.c (Fsubstitute_in_file_name): Doc fix.
5881
bfa49dd1
CY
58822009-03-19 Chong Yidong <cyd@stupidchicken.com>
5883
5884 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
5885
8458d4c1
KH
58862009-03-19 Kenichi Handa <handa@m17n.org>
5887
5888 * charset.c (load_charset_map_from_file): When a mapfile can't be
5889 loaded, signal an error.
5890
78e7d1fe
EZ
58912009-03-18 Eli Zaretskii <eliz@gnu.org>
5892
5893 * dired.c (Ffile_attributes): Make sure UID and GID are always
5894 positive, even if the value is too large for a positive EMACS_INT.
5895 Doc fix.
5896
5897 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
5898
5da9fdfa
YM
58992009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5900
5901 * xmenu.c (xdialog_show): Move Fredisplay call ...
5902 (Fx_popup_dialog): ... here.
5903
7519c40d
SM
59042009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
5905
5906 * dired.c (file_name_completion): Disable the first optimization just
5907 installed, since it is not implemented correctly.
5908
2cd298e2
SM
59092009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
5910
5911 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 5912 only if the entry can affect bestmatch.
2cd298e2
SM
5913 Stop the search early, as Ftry_completion already does.
5914
48d37adf
CY
59152009-03-17 Chong Yidong <cyd@stupidchicken.com>
5916
e10c9c93 5917 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 5918
9286b16a
CY
59192009-03-15 Chong Yidong <cyd@stupidchicken.com>
5920
5921 * keyboard.c (parse_menu_item): Don't display remappings as menu
5922 equivalent bindings (Bug#788).
5923
f7b146dc
JR
59242009-03-15 Jason Rumney <jasonr@gnu.org>
5925
5926 * w32term.h (WM_EMACS_PAINT): New message.
5927 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
5928 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
5929 before passing to lisp thread. (Bug#950)
5930
f761d6b6 59312009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 5932
d93f9575
CY
5933 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
5934 variable as it was never reset.
5935 (ns_term_init): Remove initialization of Lisp-settable defaults
5936 and ns_expand_space.
5937 (-setPanelFromDefaultValues): Remove ns_expand_space.
5938 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
5939 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
5940 i.e. no additional spacing, similar to Carbon port.
5941
d93f9575
CY
5942 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
5943 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 5944
305018ec
JD
59452009-03-14 Jan Djärv <jan.h.d@swipnet.se>
5946
5947 * sound.c (alsa_configure): Remove call to deprecated
5948 snd_pcm_sw_params_set_xfer_align.
5949
f761d6b6 59502009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
5951
5952 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
5953 after clicking in a detached tool bar.
5954 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
5955
46e722a9
SM
59562009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
5957
348db3dd
SM
5958 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
5959 int/Lisp_Object mixup).
46e722a9 5960
a3d16f39
KH
59612009-03-13 Kenichi Handa <handa@m17n.org>
5962
5963 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 5964 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
5965 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
5966 (set_fontset_font): Change ARG to a vector. Handle range_list in
5967 ARG correctly.
5968 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 5969 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
5970 the above change.
5971 (fontset_from_font): Fix previous change.
fe24f56a 5972 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
5973 entry. If FONTSET is the default fontset, don't set the extra
5974 slot of the returning char-table.
5975
b066e6b6
JB
59762009-03-12 Juanma Barranquero <lekktu@gmail.com>
5977
5978 * nsfns.m (Fx_close_connection): Doc fix.
5979 (Fns_do_applescript): Reflow docstring.
5980 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
5981 (Fx_display_pixel_width, Fx_display_pixel_height)
5982 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
5983 Fix typos in docstrings.
5984 (Fns_set_alpha): Fix typos in error messages.
5985
d472514e 59862009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 5987
d472514e 5988 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
5989 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
5990 were used for such events.
5991
d472514e
JB
5992 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
5993 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 5994
d472514e 5995 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
5996 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
5997
fb930676
KH
59982009-03-11 Kenichi Handa <handa@m17n.org>
5999
ff85581a
KH
6000 * font.h (font_open_by_spec): Extern it.
6001
c50b7e98
KH
6002 * font.c (font_open_by_spec): New function.
6003 (font_open_by_name): Use font_open_by_spec.
6004
fb930676
KH
6005 * frame.c (x_set_font): When ARG is a font-object, don't alter the
6006 fontset of the frame.
6007
6008 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
6009 modify the default font of frames that use this fontset.
6010 (num_auto_fontsets): New variable.
6011 (fontset_from_font): Use num_auto_fontsets to decide a fontset
6012 name. Be sure to set FONTSET_ASCII to the correct font name.
6013 (update_auto_fontset_alist): New function.
6014
df4e8455
JB
60152009-03-11 Juanma Barranquero <lekktu@gmail.com>
6016
6017 * makefile.w32-in: Update dependencies.
6018
0a375797
AR
60192009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6020
6021 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
6022
61313fa3
SM
60232009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
6024
6025 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
6026
b55103fb
CY
60272009-03-10 Chong Yidong <cyd@stupidchicken.com>
6028
6029 * lread.c (Feval_buffer): Doc fix.
6030
dde2559c
KH
60312009-03-09 Kenichi Handa <handa@m17n.org>
6032
6033 * charset.c (Qfile_name_handler_alist): Extern it.
6034 (load_charset_map_from_file): Temporarily bind
6035 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
6036
df4e8455 60372009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 6038
47f588bb
GM
6039 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
6040 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 6041
4ddf94bd
AR
60422009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6043
4c9bdfc2
AR
6044 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
6045 (x_set_window_size): Change back to calculated method of setting
6046 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
6047 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
6048 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
6049
fe41ae9e
AR
6050 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
6051
4c9bdfc2
AR
6052 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
6053 accelerator in parens under GNUstep.
6054
825d0875
KH
60552009-03-06 Kenichi Handa <handa@m17n.org>
6056
6057 These changes are to detect incorrect composition sequence without
f3b3be74 6058 looking ahead the source. (Bug#2370)
825d0875
KH
6059
6060 * coding.h: Include "composite.h".
6061 (enum compisition_state): New enum.
6062 (struct compisition_status): New struct.
6063 (struct iso_2022_spec): New member cmp_status.
6064 (struct emacs_mule_spec): New struct.
6065 (struct coding_system): New members ctext_extended_segment_len and
6066 embedded_utf_8. Change the union member
6067 spec.emacs_mule_full_support to spec.emacs_mule.
6068
6069 * coding.c (CODING_ISO_CMP_STATUS): New macro.
6070 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 6071 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
6072 (ADD_COMPOSITION_DATA): New arg nbytes.
6073 (emacs_mule_char): New arg cmp_status.
6074 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
6075 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
6076 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
6077 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
6078 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
6079 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
6080 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
6081 (EMACS_MULE_COMPOSITION_END): New macro.
6082 (emacs_mule_finish_composition): New function.
6083 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
6084 (decode_coding_emacs_mule): Avoid long looking ahead while
6085 handling composition.
6086 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
6087 (ENCODE_COMPOSITION_RULE): New macro.
6088 (finish_composition): New function.
6089 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
6090 (DECODE_COMPOSITION_START): New implementation.
6091 (DECODE_COMPOSITION_END): Likewise.
6092 (STORE_COMPOSITION_RULE): New macro.
6093 (decode_coding_iso_2022): Avoid long looking ahead while handling
6094 composition, CTEXT extended segment, and embedded UTF-8.
6095 (setup_coding_system): For a coding of type iso-2022, reset
6096 CODING_ISO_EXTSEGMENT_LEN (coding) and
6097 CODING_ISO_EMBEDDED_UTF_8 (coding).
6098 (get_translation): Delete arguments last_block, from_nchars,
6099 to_nchars. Callers changed.
6100 (produce_chars): Don't modify charbuf. Adjusted for the change of
6101 get_translation.
98a326f7 6102 (produce_composition): Adjust for the new annotation sequence.
825d0875 6103 (handle_composition_annotation): Likewise.
98a326f7 6104 (consume_chars): Adjust for the change of get_translation.
825d0875 6105
ccbc4452
AR
61062009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
6107
4ddf94bd 6108 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 6109
988a7ddb
KH
61102009-03-05 Kenichi Handa <handa@m17n.org>
6111
6112 * font.c (font_select_entity): New function.
6113 (font_find_for_lface): Use font_select_entity to select a font.
6114
6115 * fontset.c (fontset_find_font): If a font found without
a8a3728b 6116 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
6117 font with C restriction.
6118
98a326f7 61192009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 6120
be1bce46 6121 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 6122
10ea2b82
JR
61232009-03-04 Jason Rumney <jasonr@gnu.org>
6124
2c93b248 6125 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 6126 characters that have already been read. (Bug#2569)
2c93b248 6127
10ea2b82
JR
6128 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
6129 Log an error message if check_image_size failed.
6130 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 6131 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 6132
71a0c011
EZ
61332009-03-02 Eli Zaretskii <eliz@gnu.org>
6134
6135 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
6136 when decoding process output.
6137
2f63bba8
RS
61382009-03-01 Richard M Stallman <rms@gnu.org>
6139
6140 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
6141
6142 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
6143
0a9564cb
EZ
61442009-02-28 Eli Zaretskii <eliz@gnu.org>
6145
6146 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
6147 (decode_coding_emacs_mule, decode_coding_iso_2022)
6148 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
6149 (decode_coding_raw_text, decode_coding_charset)
6150 (setup_coding_system, decode_eol, decode_coding, consume_chars):
6151 Honor inhibit-eol-conversion. (Bug #2186)
6152
449148b3
JR
61532009-02-28 Jason Rumney <jasonr@gnu.org>
6154
6155 * coding.c (detect_coding_charset): If not checking latin extra,
6156 fail on characters between 0x80 and 0xA0. (Bug#2354)
6157
a4aee864
EZ
61582009-02-28 Eli Zaretskii <eliz@gnu.org>
6159
6160 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 6161 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 6162
d88bee5a
GM
61632009-02-27 Glenn Morris <rgm@gnu.org>
6164
6165 * callint.c (Finteractive): Doc fix.
6166
a808f22d
KH
61672009-02-27 Kenichi Handa <handa@m17n.org>
6168
6169 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
6170
caf8d60c
CY
61712009-02-27 Chong Yidong <cyd@stupidchicken.com>
6172
6173 * font.c (font_style_to_value): Set value for unknown symbols to
6174 100 instead of 255.
b61137ea
CY
6175 (weight_table, slant_table, width_table): Treat "unspecified" as
6176 the default value.
caf8d60c 6177
1a0de25c
JB
61782009-02-26 Juanma Barranquero <lekktu@gmail.com>
6179
6180 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
6181
8fc45744
JB
61822009-02-25 Juanma Barranquero <lekktu@gmail.com>
6183
107bd7d1
JB
6184 * lread.c (Fload): Stop checking Vloads_in_progress and signal
6185 error as soon as a recursive load is detected.
8fc45744 6186
f097e223
AR
61872009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6188
6189 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
6190 before caching.
6191
8810a12f
KH
61922009-02-24 Kenichi Handa <handa@m17n.org>
6193
6194 * fontset.c (fontset_find_font): Fix the condition for checking
6195 unavailable font.
6196
2c7d1565
GM
61972009-02-24 Glenn Morris <rgm@gnu.org>
6198
6199 * xfaces.c (Finternal_set_font_selection_order): Remove leading
6200 whitespace that confuses documentation.
6201
a20878b6
MB
62022009-02-23 Miles Bader <miles@gnu.org>
6203
6204 * process.c (Flist_system_processes, Fprocess_attributes)
6205 (syms_of_process): Rename `system-process-attributes' to
6206 `process-attributes'.
6207
b3b58c01
AS
62082009-02-22 Andreas Schwab <schwab@linux-m68k.org>
6209
1b3b981b
AS
6210 * coding.h (struct coding_system): Make safe_charsets a pointer to
6211 unsigned char.
6212 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
6213 being 255.
6214 (SAFE_CHARSET_P): Likewise.
6215 (setup_iso_safe_charsets): Properly setup safe_charsets.
6216 (Fdefine_coding_system_internal): Likewise.
6217 (setup_coding_system): Likewise. Remove unneeded casts.
6218 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
6219 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
6220 unneeded casts.
6221
b3b58c01
AS
6222 * insdel.c (del_range_2): Don't modify gap contents when called
6223 from decode_coding_object. (Bug#1809)
6224
0b6f228c
CY
62252009-02-21 Chong Yidong <cyd@stupidchicken.com>
6226
6227 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
6228 Qfont_object.
6229 (Ftype_of): Recognize font objects.
6230
6231 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
6232
6233 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
6234 moved to data.c.
6235
52f8870b
AR
62362009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6237
6238 * nsterm.m (x_make_frame_invisible): Unset async_visible,
6239 async_iconified. Based on a patch by Christian Lynbech
6240 <christian.lynbech@tieto.com>.
6241 (EmacsView-windowDidMiniaturize:): Unset async_visible.
6242
7087d5e9
GM
62432009-02-20 Glenn Morris <rgm@gnu.org>
6244
6245 * syntax.c (Fskip_chars_forward): Fix doc typo.
6246
41d2ceef
CY
62472009-02-20 Chong Yidong <cyd@stupidchicken.com>
6248
6249 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
6250
1a3b7ca6
CY
62512009-02-19 Chong Yidong <cyd@stupidchicken.com>
6252
6253 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
6254
73cce38d
KH
62552009-02-19 Kenichi Handa <handa@m17n.org>
6256
6257 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 6258 Don't overflow coding->carryover. (Bug#2370)
73cce38d 6259
a51092ee
DN
62602009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
6261
6262 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
6263
c423ecca
KH
62642009-02-18 Kenichi Handa <handa@m17n.org>
6265
6266 * font.c (font_check_otf_features): Fix handling of `nil' element.
6267 (Ffont_spec): Describe :lang and :otf in the docstring.
6268
4c1958f4
AS
62692009-02-16 Andreas Schwab <schwab@suse.de>
6270
6271 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
6272 string.
6273
5704f39a
KH
62742009-02-16 Kenichi Handa <handa@m17n.org>
6275
6276 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 6277 (Bug#1723)
5704f39a 6278
8f0085aa
CY
62792009-02-14 Chong Yidong <cyd@stupidchicken.com>
6280
a057d86a 6281 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
6282
6283 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
6284 (handle_line_prefix): Suppress wrapping of wrap prefixes.
6285
aff01dd9
EZ
62862009-02-14 Eli Zaretskii <eliz@gnu.org>
6287
6288 * msdos.c (MAX_SCREEN_BUF): New macro.
6289 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
6290 Encode the entire run of glyphs sharing the same face, instead of
6291 doing that one glyph at a time (fixes a bug with displaying
6292 double-size characters).
6293
ba301db3
AR
62942009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
6295
6296 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
6297
6298 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
6299 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 6300 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
6301
6302 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 6303 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 6304
51d861de
SM
63052009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
6306
ac146f82 6307 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
6308 invisible areas.
6309
7fed8996
JR
63102009-02-12 Jason Rumney <jasonr@gnu.org>
6311
631ea4fb
JR
6312 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
6313 (add_font_entity_to_list): Call check_face_name even when family
6314 is unspecified.
6315
cb4a3e42
JR
6316 * w32term.c (x_display_pixel_height, x_display_pixel_width):
6317 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 6318 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 6319
7fed8996 6320 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 6321 raster fonts. (Bug#2219)
7fed8996 6322
895416e3
KH
63232009-02-12 Kenichi Handa <handa@m17n.org>
6324
6325 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
6326 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
6327 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 6328 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
6329 (find_automatic_composition): While looking forward and backward,
6330 check static composition. Fix where to stop looking forward.
6331 (composition_adjust_point): Fix checking of static composition.
6332 (Fcomposition_get_gstring): Pay attention to
1dacf998 6333 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
6334
6335 * lisp.h (fast_looking_at): Extern it.
6336
6337 * search.c (fast_looking_at): New function.
6338
51d861de 6339 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
6340 <struct glyph>.u.cmp.to.
6341 (append_composite_glyph): Likewise.
6342
51d861de 6343 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
6344 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
6345 composition.
51d861de 6346 (append_composite_glyph): Adjust for the change of
895416e3
KH
6347 <strcut glyph>.u.cmp.to.
6348
8510724d
JB
63492009-02-11 Juanma Barranquero <lekktu@gmail.com>
6350
6351 * casetab.c (init_casetab_once):
6352 * coding.c (ALLOC_CONVERSION_WORK_AREA):
6353 * font.c (font_update_lface):
6354 * fontset.c (Fnew_fontset):
6355 * ftfont.c (ftfont_drive_otf):
6356 * xfont.c (xfont_open):
6357 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
6358
294fa707
SM
63592009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
6360
6361 * fileio.c (Fwrite_region): !NILP -> CONSP.
6362
b5bfebec
AS
63632009-02-10 Andreas Schwab <schwab@suse.de>
6364
6365 * process.c (send_process): Properly relocate pointer into data
adab88bd 6366 when using encoded data. (Bug#2272)
b5bfebec 6367
cb84a2be
KH
63682009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
6369
6370 * coding.c (detect_coding_charset): Fix previous change.
6371
89e09428
JR
63722009-02-08 Jason Rumney <jasonr@gnu.org>
6373
6374 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 6375 disappeared while hourglass was displayed. (Bug #2193)
89e09428 6376
4470a277
AS
63772009-02-07 Andreas Schwab <schwab@suse.de>
6378
6379 * unexelf.c (unexec): Fix error message.
6380
3175b12a
AR
63812009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
6382
6383 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 6384 when modal window is active. (Bug #2152)
3175b12a
AR
6385 (applicationShouldTerminate:): Remove now-unneeded while loop
6386 around NSRunAlertPanel.
6387
6388 * nsmenu.m (popupSession): New file-global variable.
6389 (pop_down_menu): End the popupSession before closing dialog.
6390 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
6391 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
6392 don't query NSApp for events (just sleep instead).
6393
8434d0b8
EZ
63942009-02-07 Eli Zaretskii <eliz@gnu.org>
6395
51d861de
SM
6396 * coding.c (syms_of_coding) <translation-table-for-input>:
6397 Modify doc string to discourage use for character code unification.
8434d0b8 6398
aa82edfd
CY
63992009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6400
6401 * atimer.c (run_timers): Update pending_atimers.
6402
2d283c7c
CY
64032009-02-06 Chong Yidong <cyd@stupidchicken.com>
6404
eb306cab
CY
6405 * image.c (svg_load_image): Fix last change.
6406
2d283c7c
CY
6407 * xfns.c (Fx_create_frame): Signal an error if no font is
6408 found (Bug#2147).
6409
4d8e170e
JB
64102009-02-05 Juanma Barranquero <lekktu@gmail.com>
6411
6412 * character.c (syms_of_character) <script-representative-chars>:
6413 Fix typo in docstring.
6414
c96169a0
AR
64152009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6416
6417 * nsmenu.m (pop_down_menu): New function.
6418 (ns_popup_dialog): Call it on unwind.
6419 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
6420 call timer_check() (Bug#2154).
6421 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
6422 handling_signal is set.
6423 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
6424
31fd7c5c 6425 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
6426
6427 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
6428
6429 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
6430
51d861de
SM
6431 * keyboard.c (poll_for_input_1, handle_async_input):
6432 Set handling_signal under HAVE_NS.
c96169a0 6433
aacd8ba1
GM
64342009-02-04 Glenn Morris <rgm@gnu.org>
6435
6436 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
6437
4cb75c4b
KH
64382009-02-04 Kenichi Handa <handa@m17n.org>
6439
6440 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
6441
6442 * charset.c (Fchar_charset): New optional arg restriction.
6443
6444 * coding.h (coding_system_charset_list): Extern it.
6445
6446 * coding.c (coding_system_charset_list): New function.
6447
6448 * composite.c: Include coding.h and termhooks.h.
6449 (composition_gstring_p): Fix for the terminal case.
6450 (composition_gstring_width): Likewise.
6451 (fill_gstring_body): Likewise.
6452 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
6453 the frame.
6454 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
6455 is within a composition.
867d4bb3 6456 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
6457
6458 * term.c (encode_terminal_code): Fix handling of composition.
6459 (produce_composite_glyph): For static composition, get pixel_width
6460 from struct composition.
6461
826ba17e
AS
64622009-02-02 Andreas Schwab <schwab@suse.de>
6463
6464 * unexelf.c (unexec): Handle unaligned bss offset.
6465
8ad093db
AR
64662009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6467
6468 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
6469 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 6470
8ad093db
AR
6471 * keyboard.c (handle_interrupt): Don't call
6472 quit_throw_to_read_char() under NS.
d0a76a6e 6473
8ad093db
AR
6474 * blockinput.h: Remove NS-specific code.
6475
4d18a7a2
DN
64762009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
6477
db878925
DN
6478 * dispnew.c (window_change_signal): Don't try to get the size of a
6479 suspended tty frame.
6480 * term.c (Fresume_tty): Resize if the size has changed while the
6481 tty was suspended.
6482
4d18a7a2
DN
6483 * alloc.c (mark_stack): Properly conditionalize previous change.
6484
8984df7c
JB
64852009-01-30 Juanma Barranquero <lekktu@gmail.com>
6486
6487 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
6488 * w32term.c (w32_read_socket) [SYNC_INPUT]:
6489 Remove; this code is not used on Windows.
6490
75f4f1ac
EZ
64912009-01-30 Eli Zaretskii <eliz@gnu.org>
6492
6493 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
6494 EOLs that also has stray ^M characters.
6495
07a1e794
JB
64962009-01-30 Juanma Barranquero <lekktu@gmail.com>
6497
6498 * atimer.c (run_timers, alarm_signal_handler):
6499 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
6500 * w32inevt.c (w32_console_read_socket):
6501 * w32term.c (w32_read_socket):
6502 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
6503
a8b11cc9
CY
65042009-01-30 Chong Yidong <cyd@stupidchicken.com>
6505
6506 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
6507 Initialize it as a relative filename pattern.
6508 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
6509 (Fcall_process_region): Simplify temp file creation using
6510 temporary-file-directory.
6511
c279587b
EZ
65122009-01-29 Eli Zaretskii <eliz@gnu.org>
6513
6514 * msdos.c: Rename pending_signals to msdos_pending_signals.
6515 (sig_suspender, sigprocmask): Adjust.
6516
a8fe3242
CY
65172009-01-29 Chong Yidong <cyd@stupidchicken.com>
6518
6519 * keyboard.c (pending_signals): New var.
6520 (poll_for_input, input_available_signal, init_keyboard): Set it.
6521 (process_pending_signals): New function.
6522
6523 * lisp.h (QUIT): Check pending_signals instead of
6524 interrupt_input_pending. Use process_pending_signals.
6525
51d861de 6526 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 6527
51d861de 6528 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
6529
6530 * sysdep.c (emacs_write): Use process_pending_signals.
6531
6532 * xterm.c (XTread_socket): Update pending_signals.
6533
6534 * w32term.c (w32_read_socket): Update pending_signals.
6535
6536 * w32inevt.c (w32_console_read_socket): Update pending_signals.
6537
6570a1c4
KH
65382009-01-29 Kenichi Handa <handa@m17n.org>
6539
6540 * xftfont.c (xftfont_has_char): New function.
6541 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
6542
d72a4afa
AR
65432009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6544
6545 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
6546 under GNUstep.
6547 (ns_query_color): New declaration.
6548
6549 * nsterm.m (ns_confirm_quit): New variable.
6550 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
6551 (EmacsApp-applicationShouldTerminate:): Use it.
6552 (EmacsPrefsController): Let user set it.
6553 (ns_query_color): New function.
6554 (ns_defined_color): Use it.
6555 (ns_initialize): Drop.
6556 (ns_term_init): Add two lines from ns_initialize(), and set
6557 input_interrupt_mode to nil.
6558
6559 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 6560 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 6561
9fe78804
KH
65622009-01-28 Kenichi Handa <handa@m17n.org>
6563
6564 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
6565 (fontset_get_font_group): Remember that no font-group is specified
6566 for C.
9fe78804 6567
fa57de36
CY
65682009-01-27 Chong Yidong <cyd@stupidchicken.com>
6569
930600e9
CY
6570 * fns.c (concat): Check for string overflow (bug#1787).
6571
fa57de36
CY
6572 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
6573 Quadruple undo limits (bug#1501).
6574
7179ce7b
KH
65752009-01-27 Kenichi Handa <handa@m17n.org>
6576
6577 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
6578 directly use GT_Get_Char_index.
6579
6580 * xftfont.c (struct xftfont_info): New member `index'.
6581
6582 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 6583 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 6584
5be8fcc0
CY
65852009-01-26 Kenichi Handa <handa@m17n.org>
6586
6587 * fontset.c (fontset_find_font): Fix handling of non-cons return
6588 value of fontset_get_font_group.
6589 (fontset_font): Revert last change.
6590
19ae3e61
JR
65912009-01-26 Jason Rumney <jasonr@gnu.org>
6592
6593 * w32font.c (w32font_list_internal): Return quickly if registry is
6594 unknown. Simplify final return.
6595 (add_font_entity_to_list): Break complex logic down into more
6596 manageable chunks. Move unknown registry check to
6597 w32font_list_internal.
6598
8612b71a
AR
65992009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
6600
6601 Changes to remove Feval calls from GUI under NS.
6602
d8038940
JB
6603 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
6604 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
6605 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
6606
6607 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
6608 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
6609 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
6610 instead of NON_ASCII_KEYSTROKE_EVENT.
6611 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
6612 (EmacsApp-applicationShouldTerminate:): Query user.
6613 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
6614 instead of Feval.
6615
6616 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
6617
6618 * keyboard.c (kbd_buffer_get_event): Check for it.
6619 (keys_of_keyboard): Define lispy keys for
6620 ns-put/unput-working-text.
6621
6622 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
6623 versions.
6624 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
6625
6288ae55
CY
66262009-01-25 Chong Yidong <cyd@stupidchicken.com>
6627
6628 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 6629 setting current_buffer directly. (Bug#2044)
6288ae55 6630
289e7f8f
CY
66312009-01-24 Chong Yidong <cyd@stupidchicken.com>
6632
5ce87308 6633 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 6634 any work. (Bug#1952, bug#1990).
5ce87308 6635
64cc3cf6 6636 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 6637
b3243e6f
AR
66382009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6639
6640 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
6641 (ns_no_defaults): New declaration.
6642 (main): Use it.
e0d2e69a 6643
d900b2af 6644 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 6645
d900b2af 6646 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 6647
d900b2af
AR
6648 * nsterm.m (ns_no_defaults): New variable.
6649 (ns_initialize): Don't read defaults when ns_no_defaults.
6650 (EmacsView-readSelectionFromPasteboard:)
6651 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 6652 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
6653 (ns_dumpglyphs_stretch): New function.
6654 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 6655 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 6656
e0d2e69a
AR
6657 * nsimage.m (setPixmapData:): Set to ignore image DPI.
6658
3ac71f5d
CY
66592009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
6660
6661 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
6662 call for Sparc64.
6663
3fe53a83
AR
66642009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6665
6666 * nsfns.m:
6667 * nsgui.h:
6668 * nsmenu.m:
6669 * nsselect.m:
6670 * nsterm.h:
6671 * nsterm.m: Remove '23' comments that indicated code added during
6672 update from emacs-20 -> emacs-23.
6673
10f87c6f 66742009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
6675
6676 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 6677 ns_alternate_modifier. (Bug#1217)
a3b53a85 6678
c7cef62d
AR
6679 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
6680 Display all shortcuts, including those w/o super modifier.
6681
575fb8bd
AR
6682 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
6683
918b848b
CY
66842009-01-22 Chong Yidong <cyd@stupidchicken.com>
6685
6686 * fileio.c (Vwrite_region_post_annotation_function)
6687 (Vwrite_region_annotation_buffers): New vars.
6688 (build_annotations_unwind): Just reset
6689 Vwrite_region_annotation_buffers.
6690 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
6691 Call write-region-post-annotation-function.
6692 (build_annotations): Add to Vwrite_region_annotation_buffers if
6693 buffer changes.
6694
a39e2539
AR
66952009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6696
6697 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
6698 Tiger.
51d861de
SM
6699 * nsfns.m (ns_do_applescript):
6700 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 6701
35ed44db
AR
67022009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
6703
6704 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
6705
cbe0b5bf
AR
67062009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6707
6708 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 6709
6049d3a0
AR
6710 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
6711
6712 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
6713 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
6714 handle Ctrl-tab. (Bug#1841)
6715 (ns_get_color): Use unsigned long long for scanned hex string value.
6716 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 6717 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 6718 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 6719 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 6720 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 6721 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 6722 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 6723
d3810c21 6724 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 6725 DPI. (Bug#1316)
d3810c21
AR
6726 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
6727 values in onTiger section.
4c7077c3 6728
e301e634
CY
67292009-01-19 Chong Yidong <cyd@stupidchicken.com>
6730
7f82490b
CY
6731 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
6732 Check return value of font_spec_from_name.
64cc3cf6 6733 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
6734
6735 * font.c (font_spec_from_name): Return Qnil if font name could not
6736 be parsed.
6737 (font_parse_name): Treat a `?' character as part of an XLFD.
6738
e301e634
CY
6739 * fns.c (Fsubstring): Doc fix.
6740
1c0db158
KH
67412009-01-19 Kenichi Handa <handa@m17n.org>
6742
51d861de 6743 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
6744 (ftfont_list): Likewise.
6745
acf20901
JB
67462009-01-18 Juanma Barranquero <lekktu@gmail.com>
6747
fff4e459
JB
6748 * dbusbind.c (Fdbus_register_signal):
6749 * process.c (conv_sockaddr_to_lisp):
6750 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
6751
acf20901
JB
6752 * callproc.c (Fgetenv_internal): Doc fix.
6753
e7abcdfb
CY
67542009-01-16 Chong Yidong <cyd@stupidchicken.com>
6755
6756 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
6757 it is not even used.
6758
b60861e6
GM
67592009-01-16 Glenn Morris <rgm@gnu.org>
6760
6761 * font.c (Ffont_variation_glyphs): Silence compiler.
6762
8db52afe
JB
67632009-01-15 Juanma Barranquero <lekktu@gmail.com>
6764
6765 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
6766 Reported by David Robinow <drobinow@gmail.com>.
6767
4cddb209
KH
67682009-01-15 Kenichi Handa <handa@m17n.org>
6769
51d861de 6770 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 6771
f247f67b
JR
67722009-01-14 Jason Rumney <jasonr@gnu.org>
6773
6774 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 6775 never a fontset. (Bug#1562)
f247f67b 6776
f56a4450
KH
67772009-01-14 Kenichi Handa <handa@m17n.org>
6778
6779 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 6780 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 6781
4e99855e
CY
67822009-01-13 Chong Yidong <cyd@stupidchicken.com>
6783
6784 * font.c (font_clear_prop): If clearing the family, clear the font
6785 width index too.
6786
fff4e459 6787 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 6788
24f01470
JB
67892009-01-12 Juanma Barranquero <lekktu@gmail.com>
6790
6791 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
6792 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
6793 functions, use sizeof.
6794
a41240a3
MR
67952009-01-12 Martin Rudalics <rudalics@gmx.at>
6796
6797 * keyboard.c (read_char): Fix case where last_nonmenu_event
6798 returned a bad value with submenus. (Bug#447)
6799
944636b8
CY
68002009-01-12 Chong Yidong <cyd@stupidchicken.com>
6801
6802 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
6803 family, clear the font width index too.
6804
0dad7c6f
JR
68052009-01-11 Jason Rumney <jasonr@gnu.org>
6806
6807 * keyboard.c (cmd_error_internal): Exit when errors occur before
6808 frame creation and not in daemon mode. (Bug#1836)
6809
7c2363af
CY
68102009-01-10 Chong Yidong <cyd@stupidchicken.com>
6811
6812 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
6813 of a display vector, backtrack.
6814 (try_window_reusing_current_matrix): Check glyph type before
6815 referencing charpos member.
6816
97b1b294
EZ
68172009-01-10 Eli Zaretskii <eliz@gnu.org>
6818
6819 Fix Bug #876:
6820
6821 * coding.c (inhibit_null_byte_detection): New variable.
6822 (detect_coding, detect_coding_system): Don't pay attention to null
6823 bytes if inhibit_null_byte_detection is non-zero.
51d861de 6824 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
6825 <inhibit-iso-escape-detection>: Doc fix.
6826
4624b6e3
JR
68272009-01-09 Jason Rumney <jasonr@gnu.org>
6828
6829 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 6830 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
6831 Only report Unicode Plane 2 fonts as unicode-sip.
6832
323b840c
CY
68332009-01-09 Chong Yidong <cyd@stupidchicken.com>
6834
51d861de
SM
6835 * xfaces.c (Fx_font_family_list): Delete function.
6836 Move compatibility version to faces.el.
323b840c 6837
51d861de 6838 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 6839
eba7400d
MR
68402009-01-09 Martin Rudalics <rudalics@gmx.at>
6841
6842 * frame.c (x_set_frame_parameters): Remember requested value for
6843 fullscreen before it's reset by the parameter handler.
6844
4b09796d
GM
68452009-01-09 Glenn Morris <rgm@gnu.org>
6846
6847 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 6848 (last_command_event): ... and update all users.
4b09796d
GM
6849 (last_input_char): For clarity, rename to...
6850 (last_input_event): ... and update all users.
6851 (last-command-char, last-input-char): Move to subr.el as aliases.
6852 * cmds.c, commands.h: Update for last_command_char rename.
6853
14ccea62
CY
68542009-01-08 Chong Yidong <cyd@stupidchicken.com>
6855
51d861de 6856 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 6857
5f004711
JR
68582009-01-08 Jason Rumney <jasonr@gnu.org>
6859
6860 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
6861 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
6862 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
6863 Don't declare.
fff4e459 6864 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
6865 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
6866
b71f6f73
KH
68672009-01-07 Kenichi Handa <handa@m17n.org>
6868
50b06221 6869 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 6870 remember the coding system used for decoding in
50b06221
KH
6871 coding_system (Bug#1039).
6872
b71f6f73 6873 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 6874 breaking the loop. (Bug#870)
b71f6f73
KH
6875 (decode_coding_utf_16, decode_coding_emacs_mule)
6876 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
6877 (decode_coding_charset): Likewise.
6878
56f668f7
MR
68792009-01-05 Martin Rudalics <rudalics@gmx.at>
6880
6881 * frame.c (x_set_frame_parameters): Make sure height (width) get
6882 applied when fullwidth (fullheight) is set. (Bug#1522)
6883
5da9424d
JB
68842009-01-04 Juanma Barranquero <lekktu@gmail.com>
6885
6886 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
6887 (utc_base): Declare as ULONGLONG, not long double.
6888 (convert_time_raw): Delete.
6889 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
6890 (initialize_utc_base): New function.
6891 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
6892 (convert_from_time_t): Use initialize_utc_base; compute result with
6893 64-bit arithmetic.
6894 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
6895
c4605e09
EZ
68962009-01-03 Eli Zaretskii <eliz@gnu.org>
6897
9acef61c 6898 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
6899 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
6900 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
6901 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
6902 [!subprocesses]: Define.
6903 (syms_of_process) [!subprocesses]: Intern and staticpro them.
6904 (Flist_system_processes, Fsystem_process_attributes)
6905 [!subprocesses]: Call list_system_processes and
6906 system_process_attributes instead of returning Qnil.
6907
9acef61c
JB
6908 * dosfns.c (system_process_attributes, list_system_processes):
6909 New functions.
c4605e09
EZ
6910
6911 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
6912
6913 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
6914 Don't use the default (no-op) implementation.
6915
8b7d0a16
JR
69162009-01-03 Jason Rumney <jasonr@gnu.org>
6917
a6d46bc1
JR
6918 * keyboard.c (parse_modifiers_uncached): Wheel events are
6919 clicks (bug#687).
6920
8b7d0a16
JR
6921 * w32term.c (x_query_colors, x_query_color): New functions.
6922
6923 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
6924 (svg_load_image): Cast returned pointers from dynamically loaded
6925 functions. Eliminate W32 specific code.
6926
bfe11752
DN
69272009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
6928
89e2438a
DN
6929 * nsfns.m (x_set_foreground_color, x_set_background_color)
6930 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
6931 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
6932 x_ prefix instead of ns_. Update references.
6933 (syms_of_nsfns): Add a FIXME comment.
6934
6935 * nsterm.m (x_set_cursor_type): New prototype.
6936 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
6937
bfe11752
DN
6938 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
6939 for Solaris instead of incorrectly providing Qutime and Qcutime.
6940
031da700
EZ
69412009-01-02 Eli Zaretskii <eliz@gnu.org>
6942
6943 * w32.c (process_times): Compute sum of utime and stime.
6944 (system_process_attributes): Add Qtime to the alist.
6945
6946 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
6947 and add them to the alist.
6948
6949 * process.c (top level) <Qtime, Qctime>: New variables.
6950 (syms_of_process): staticpro them.
6951 (Fsystem_process_attributes): Add their documentation to the doc
6952 string.
6953
6954 * process.h: Declare Qtime and Qctime.
6955
df23bf08
JR
69562009-01-02 Jason Rumney <jasonr@gnu.org>
6957
9acef61c 6958 * image.c (Qgobject): New symbol.
df23bf08
JR
6959 (syms_of_image): Initialize it.
6960 (init_svg_functions): Load some functions from gobject library.
6961
5bbdf7aa
DN
69622009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
6963
6964 * frame.c (make_terminal_frame): Remove redundant code and useless
6965 block.
6966
63136da6
AS
69672009-01-01 Andreas Schwab <schwab@suse.de>
6968
6969 * process.c (conv_sockaddr_to_lisp): Add workaround for
6970 getsockname bug on BSD.
6971
9ef69046
CY
69722009-01-01 Chong Yidong <cyd@stupidchicken.com>
6973
d6fafbe0
CY
6974 * xfns.c (x_create_tip_frame): Set border width of the X window.
6975
51d861de 6976 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 6977
f9c34147
JR
69782009-01-01 Jason Rumney <jasonr@gnu.org>
6979
9acef61c 6980 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
6981 Don't block input, as per earlier xterm.c changes.
6982
f5497e45
AR
69832008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
6984
6985 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
6986 (ns_appkit_version_int): New function.
6987 (x-server-version): Use ns_appkit_version_int and follow 21+
6988 convention of returning 3 integers.
6989
c19cab20
KH
69902008-12-30 Kenichi Handa <handa@m17n.org>
6991
6992 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
6993 (CHAR_SURROGATE_PAIR_P): New macro.
6994
6995 * font.h (struct font_driver): New member get_variation_glyphs.
6996
9acef61c 6997 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
6998 (Ffont_variation_glyphs): New function.
6999 (syms_of_font): Defsubr it.
7000
7001 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
7002 ftfont_variation_glyphs.
7003 (setup_otf_gstring): New function.
7004 (ftfont_drive_otf): Use it.
7005 (ftfont_shape_by_flt): Handle variation selector.
7006 (ftfont_variation_glyphs): New function.
7007
28cd591f
MR
70082008-12-30 Martin Rudalics <rudalics@gmx.at>
7009
7010 * frame.c (Vemacs_iconified): Remove.
7011
7f714baf
JR
70122008-12-30 Jason Rumney <jasonr@gnu.org>
7013
7014 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 7015 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 7016
9d2d22ab
CY
70172008-12-30 Chong Yidong <cyd@stupidchicken.com>
7018
7019 * indent.c (Fvertical_motion): Don't advance iterator if we have
7020 reseated to the desired position.
7021
7022 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
7023 checking for pos match.
7024
545312c2
KH
70252008-12-30 Kenichi Handa <handa@m17n.org>
7026
1ede3eb6
KH
7027 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
7028 just get the low 8-bit of the code.
7029
545312c2
KH
7030 * font.c (font_intern_prop): Validate str as multibyte.
7031
bd7bbf29
DN
70322008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
7033
31e0750e
DN
7034 * dispextern.h (struct face): Move lface and hash from the middle
7035 of bitfields.
7036
bd7bbf29
DN
7037 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
7038
b5672e7c
DN
70392008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
7040
7041 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
7042 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
7043 instead of intervals.h.
7044
d704470f
AS
70452008-12-26 Andreas Schwab <schwab@suse.de>
7046
7047 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
7048 cons.
7049
54b33868
MR
70502008-12-26 Martin Rudalics <rudalics@gmx.at>
7051
7052 * textprop.c (Qminibuffer_prompt): New variable.
7053 (syms_of_textprop): Initialize it.
7054 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
7055 in minibuffer-prompt face. (Bug#1662)
7056
40b615d6
JR
70572008-12-25 Jason Rumney <jasonr@gnu.org>
7058
7059 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
7060
baae5c2d
JR
70612008-12-24 Jason Rumney <jasonr@gnu.org>
7062
7063 * ralloc.c (r_alloc_reset_variable): New function.
7064
7065 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 7066 record of what points where. (Bug#716)
baae5c2d 7067
a9051c88
DN
70682008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
7069
7070 * minibuf.c (read_minibuf): Follow the non-interactive case when
7071 running as a daemon, before detaching.
7072
8b146312
AS
70732008-12-22 Andreas Schwab <schwab@suse.de>
7074
7075 * buffer.c (init_buffer): Use realloc instead of xrealloc.
7076 * gtkutil.c (free_widget_value): Use xfree instead of free.
7077
56f2de10
MR
70782008-12-22 Martin Rudalics <rudalics@gmx.at>
7079
7080 * frame.c (delete_frame): New function derived from
7081 Fdelete_frame to handle Qnoelisp value for FORCE argument.
7082 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
7083 (Fdelete_frame): Call delete_frame. Remove line from doc-string
7084 saying that FORCE non-nil doesn't run `delete-frame-functions'.
7085 * frame.h: Extern delete_frame.
7086 * window.c (window_loop):
7087 * terminal.c (delete_terminal):
7088 * xterm.c (x_connection_closed):
7089 * xfns.c (Fx_hide_tip):
9acef61c 7090 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 7091
1fc200d6
JR
70922008-12-21 Jason Rumney <jasonr@gnu.org>
7093
7094 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
7095 when character maps to .notdef character.
7096
5e252df2
SM
70972008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
7098
7099 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
7100
99b72cc4
JR
71012008-12-20 Jason Rumney <jasonr@gnu.org>
7102
7103 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 7104 a graphical frame on Windows. (Bug#1325)
99b72cc4 7105
acc49a52
JD
71062008-12-20 Jan Djärv <jan.h.d@swipnet.se>
7107
7108 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
7109
6ea15123
CY
71102008-12-20 Chong Yidong <cyd@stupidchicken.com>
7111
7112 * minibuf.c (Fread_buffer): Doc fix.
7113
b2dab6c8
JR
71142008-12-20 Jason Rumney <jasonr@gnu.org>
7115
54ea0c87 7116 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 7117 server name in UNC paths. (Bug#719)
54ea0c87 7118
b2dab6c8 7119 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 7120 charbuf. (Bug#1035)
b2dab6c8 7121
6d1921be
DN
71222008-12-19 Daniel Engeler <engeler@gmail.com>
7123
7124 * sysdep.c (serial_configure): Fix typo.
7125
53934c98
DN
71262008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
7127
7128 * sysdep.c: Include alloca.h.
f4f634e8
DN
7129 (system_process_attributes): Add implementation for Solaris.
7130
7131 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 7132
06e111a6
DN
71332008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
7134
7135 Reorganize implementation of Flist_system_processes and
7136 Fsystem_process_attributes. No functional changes.
7137 * process.c: Don't #include pwd.h, grp.h and limits.h.
7138 (Flist_system_processes): Just call list_system_processes.
7139 (Fsystem_process_attributes): Just call system_process_attributes.
7140 (procfs_list_system_processes, time_from_jiffies)
7141 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
7142 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
7143
7144 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
7145 (list_system_processes): Rename from
7146 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
7147 Provide a do nothing implementation.
7148 (system_process_attributes): Rename from
7149 procfs_list_system_processes.
7150 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 7151 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
7152
7153 * w32.c (list_system_processes): Rename from
7154 w32_list_system_processes.
7155 (system_process_attributes): Rename from
7156 w32_system_process_attributes.
7157
7158 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
7159
7160 * process.h (w32_list_system_processes)
7161 (w32_system_process_attributes): Remove.
362654a6
JB
7162 (list_system_processes, system_process_attributes):
7163 New prototypes.
06e111a6 7164
6a705b23
KH
71652008-12-19 Kenichi Handa <handa@m17n.org>
7166
7167 * xfont.c (xfont_decode_coding_xlfd): New function.
7168 (xfont_encode_coding_xlfd): New function.
7169 (xfont_list_pattern): Decode XLFD by iso-8859-1.
7170 (xfont_list): Decode and encode XLFD by iso-8859-1.
7171 (xfont_match): Likewise.
7172 (xfont_list_family): Likewise.
7173 (xfont_open): Likewise.
7174
d66c0241 7175 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
7176 names are utf-8.
7177
d66c0241 7178 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
7179 names are utf-8.
7180
5a130941
JD
71812008-12-18 Jan Djärv <jan.h.d@swipnet.se>
7182
7183 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
7184 changed.
bfd20325
JD
7185 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
7186 clicked on a detached tool bar button.
5a130941 7187
fd95644b
DN
71882008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
7189
7190 * emacs.c (main): Print and error and exit when no data is read
7191 from the pipe.
7192
e6eee6ae
JR
71932008-12-17 Jason Rumney <jasonr@gnu.org>
7194
7195 * w32font.c (w32font_has_char): Always return -1.
7196
a35dd56b
KH
71972008-12-16 Kenichi Handa <handa@m17n.org>
7198
7199 * font.c (font_open_entity): Fix previous change.
7200
0e3635c2
DN
72012008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
7202
7203 * process.c: Include <limits.h>.
7204
d4835507 72052008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
7206
7207 * font.c (font_update_drivers): Fix mistake in reconstructing the
7208 driver list.
7209
72102008-12-16 Chong Yidong <cyd@stupidchicken.com>
7211
7212 * font.c (font_clear_cache): Fix format of font cache data.
7213
e2cbc401
CY
72142008-12-15 Chong Yidong <cyd@stupidchicken.com>
7215
7216 * xftfont.c (xftfont_open): Free Xft font pattern if
7217 XftFontOpenPattern fails.
7218
7219 * xterm.c (x_free_frame_resources): Remove extraneous call to
7220 free_frame_faces.
7221
b131d535
CY
72222008-12-13 Chong Yidong <cyd@stupidchicken.com>
7223
7224 * xterm.c (x_delete_display): Move xim_close_dpy call to
7225 x_delete_terminal.
7226 (x_delete_terminal): Call xim_close_dpy.
7227
e6df5336
JR
72282008-12-13 Jason Rumney <jasonr@gnu.org>
7229
7230 * w32font.c (intern_font_name): New function.
7231 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
7232 (w32font_open_internal, Fx_select_font): Decode font name.
7233 (fill_in_logfont, list_all_matching_fonts): Encode font name.
7234
7235 * w32font.h (intern_font_name): Declare new function.
7236
7237 * w32uniscribe.c (add_opentype_font_name_to_list):
7238 Use intern_font_name.
7239
20d68145
CY
72402008-12-13 Chong Yidong <cyd@stupidchicken.com>
7241
9f2554de
CY
7242 * frame.c (Fdelete_frame): Call free_font_driver_list.
7243
3d9bec9a
CY
7244 * font.c (free_font_driver_list): Implement missing function.
7245
20d68145
CY
7246 * w32term.c (w32_term_init): Don't initialize the image cache
7247 here; it will be done in init_frame_faces.
7248
7249 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
7250 (struct x_display_info): Remove unused member null_pixel. New
7251 member xim_callback_data.
7252
7253 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
7254 (xim_initialize): Save pointer to callback function data.
7255 (xim_close_dpy): Free callback function data. Call XCloseIM,
7256 reverting 2008-11-04 change by David Smith.
7257 (x_term_init): Don't initialize the image cache here; it will be
7258 done in init_frame_faces. Remove ancient "null_pixel" cruft.
7259 (x_delete_display): Free x_dnd_atoms member.
7260
96f9306b
KH
72612008-12-13 Kenichi Handa <handa@m17n.org>
7262
6dec9044
JB
7263 * font.c (font_rescale_ratio): Moved from xfaces.c.
7264 Argument type changed. Handle a font-spec too.
96f9306b 7265 (font_score): Check Vface_font_rescale_alist.
6dec9044 7266 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
7267
7268 * xfaces.c (font_rescale_ratio): Moved to font.c.
7269
8d5b4964
CY
72702008-12-13 Chong Yidong <cyd@stupidchicken.com>
7271
7272 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
7273
e6df5336
JR
72742008-12-12 Jason Rumney <jasonr@gnu.org>
7275
7276 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
7277 Vwindow_system_version to the real w32 major version.
7278
97c6058a
DN
72792008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
7280
7281 * term.c (init_tty): Move setting the terminal name before the
7282 potential user: maybe_fatal.
7283
ec4e88d7
CY
72842008-12-11 Chong Yidong <cyd@stupidchicken.com>
7285
d4835507
JB
7286 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
7287 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 7288
b4233ec9
JR
72892008-12-11 Jason Rumney <jasonr@gnu.org>
7290
8ec71e23 7291 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 7292 SYMBOL_CHARSET. (Bug#547)
8ec71e23 7293
b4233ec9 7294 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 7295 size for surrogates. (Bug#1096, bug#872)
b4233ec9 7296
011a0143
JB
72972008-12-11 Juanma Barranquero <lekktu@gmail.com>
7298
7299 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
7300
3c309f34
JB
73012008-12-11 Juanma Barranquero <lekktu@gmail.com>
7302
7303 * process.c (Fsystem_process_attributes, syms_of_process):
7304 Fix typo in name of Ssystem_process_attributes.
7305 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
7306
fedc6ab5
JB
73072008-12-11 Juanma Barranquero <lekktu@gmail.com>
7308
7309 * syntax.c (Fmodify_syntax_entry): Doc fix.
7310
ba3de0e8
JB
73112008-12-10 Juanma Barranquero <lekktu@gmail.com>
7312
7313 * font.c (Ffont_spec): Move usage to end of docstring.
7314
174f1c74
JR
73152008-12-10 Jason Rumney <jasonr@gnu.org>
7316
7317 * w32font.c (Qcham): New symbol.
7318 (font_supported_scripts): Add cham, and comments for other new
7319 scripts in bitfield from OpenType spec.
9d32f818
JR
7320 (add_font_entity_to_list): Limit unicode-sip fonts to those that
7321 contain characters beyond the bmp.
174f1c74 7322
7b649478
KH
73232008-12-10 Kenichi Handa <handa@m17n.org>
7324
7325 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 7326 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
7327 Qunicode_sip.
7328
2133e2d1
JB
73292008-12-10 Juanma Barranquero <lekktu@gmail.com>
7330
7331 * coding.c (QCdefault_char): Rename from QCdefalut_char.
7332 (Fcoding_system_put): Use QCdefault_char.
7333 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
7334
9af886ee
CY
73352008-12-09 Chong Yidong <cyd@stupidchicken.com>
7336
74d819eb
CY
7337 * xftfont.c (syms_of_xftfont): Fix typo.
7338
4ccfa1c0 7339 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 7340
7c19d3ae
DN
73412008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
7342
7343 * emacs.c (main): Close daemon_pipe on exec.
7344
567826bb
CY
73452008-12-08 Chong Yidong <cyd@stupidchicken.com>
7346
7347 * termchar.h (struct tty): New members termcap_term_buffer and
7348 termcap_strings_buffer.
7349
7350 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 7351 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
7352 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
7353 All callers changed.
7354 (init_tty): Store termcap data and string buffers in new struct
7355 tty members termcap_term_buffer and termcap_strings_buffer.
7356 (delete_tty): Free them.
4ccfa1c0 7357 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 7358
aa96c42b
SZ
73592008-12-07 Seiji Zenitani <zenitani@mac.com>
7360
7361 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 7362 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 7363
b7e1d896
CY
73642008-12-06 Chong Yidong <cyd@stupidchicken.com>
7365
7366 * coding.c (make_conversion_work_buffer): Disable buffer
7367 modification hooks in the work buffer.
7368
b5ec91a5
EZ
73692008-12-05 Eli Zaretskii <eliz@gnu.org>
7370
7371 * process.c (procfs_system_process_attributes): If `nread' has a
7372 negative value, assign zero to it.
7373
a5d2a52b
CY
73742008-12-05 Chong Yidong <cyd@stupidchicken.com>
7375
68c5540b 7376 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 7377
7bf1bb21
KH
73782008-12-05 Kenichi Handa <handa@m17n.org>
7379
7380 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
7381 second character is a combining character.
7382
2fdc7d00
EZ
73832008-12-05 Eli Zaretskii <eliz@gnu.org>
7384
7385 * process.c (procfs_system_process_attributes): Don't use cmd,
7386 cmdsize, and q without initializing them first.
7387
bf6bfba8
JR
73882008-12-04 Jason Rumney <jasonr@gnu.org>
7389
7390 * w32font.c (w32font_draw): Initialize orig_clip before getting
7391 it, and delete it when finished.
7392
a3b1a468
DN
73932008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
7394
7395 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
7396 case when running as a daemon before detaching.
7397
8b8be8eb
JB
73982008-12-03 Juanma Barranquero <lekktu@gmail.com>
7399
805f2638 7400 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 7401
b1bde622
KH
74022008-12-03 Kenichi Handa <handa@m17n.org>
7403
e500c47d
KH
7404 * font.c (font_at): Set `multibyte' at first.
7405
ca516334
KH
7406 * coding.c (decode_coding_charset): Check type of an element of
7407 vector VALIDS.
7bf1bb21 7408 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 7409
4ccfa1c0 7410 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
7411 (font_for_char): Likewise.
7412
1e5ecd37
CY
74132008-12-03 Chong Yidong <cyd@stupidchicken.com>
7414
d5b01609 7415 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
7416 (font_update_lface): Handle fonts with corrupted size specs,
7417 i.e. non-int and non-float.
d5b01609 7418
11e3a6e4 7419 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 7420 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 7421 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 7422
ab06788b
CY
7423 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
7424
1e5ecd37 7425 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 7426 underline_minimum_offset for underline position.
1e5ecd37 7427
63c125ab
DN
74282008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
7429
7430 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
7431
7432 * character.c (c_string_width): Specify the type for LEN.
7433
3a8406e1
KH
74342008-12-03 Kenichi Handa <handa@m17n.org>
7435
4ccfa1c0 7436 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 7437 (decode_coding_utf_8): Likewise.
4ccfa1c0 7438 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 7439 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 7440
651df7d9
CY
74412008-12-02 Chong Yidong <cyd@stupidchicken.com>
7442
7443 * keyboard.c (make_lispy_position): Only use PT if the selected
7444 window is current.
7445
1f625c6c
AS
74462008-12-02 Andreas Schwab <schwab@suse.de>
7447
f7741ce9
AS
7448 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
7449
1f625c6c
AS
7450 * doprnt.c (doprnt1): Fix size of charbuf.
7451
92bc2678
CY
74522008-12-02 Chong Yidong <cyd@stupidchicken.com>
7453
7454 * keyboard.c (timer_check): Revert last change.
7455
93b9e8cc
JB
74562008-12-02 Juanma Barranquero <lekktu@gmail.com>
7457
7458 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
7459
fd7a37d5
JB
74602008-12-01 Juanma Barranquero <lekktu@gmail.com>
7461
7462 * makefile.w32-in: Update dependencies.
7463 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
7464
c115043b
AS
74652008-12-01 Andreas Schwab <schwab@suse.de>
7466
7467 * font.c (register_font_driver): Use xmalloc.
7468 (font_put_frame_data): Likewise.
7469
f5668d2a
CY
74702008-12-01 Chong Yidong <cyd@stupidchicken.com>
7471
860d96be
CY
7472 * xfaces.c (realize_x_face): Make abort condition clearer.
7473
f5668d2a
CY
7474 * gtkutil.c (update_frame_tool_bar): Initialize variable.
7475
379c17e7
CY
74762008-11-30 Chong Yidong <cyd@stupidchicken.com>
7477
7478 * keyboard.c (timer_check): After a timer runs, ensure that the
7479 selected window's buffer is current.
7480
35f36d65
JB
74812008-11-30 Juanma Barranquero <lekktu@gmail.com>
7482
f952c61c
JB
7483 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
7484 It was accidentally restored by the Unicode merge.
7485
35f36d65
JB
7486 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
7487
b23077df
JB
74882008-11-29 Juanma Barranquero <lekktu@gmail.com>
7489
7490 * w32proc.c: Include "coding.h".
7491 (Fw32_short_file_name): Encode filename passed to Windows API.
7492 (Fw32_long_file_name): Encode filename passed to Windows API and
7493 decode back the result. (Bug#1433)
7494
b8ebe9dd
KH
74952008-11-29 Kenichi Handa <handa@m17n.org>
7496
8cc53f96
KH
7497 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
7498 not before accessing it.
7499
b8ebe9dd
KH
7500 * charset.c (Fdefine_charset_internal): After calculating
7501 min_char, max_char, and fastmap, copy the charset structure again.
7502 (encode_char): Fix the previous change.
7503
59bc82c0
SZ
75042008-11-28 Seiji Zenitani <zenitani@mac.com>
7505
7506 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
7507
7508 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
7509
7510 * nsterm.m (x_set_frame_alpha): New function.
7511
32247e3d
EZ
75122008-11-27 Eli Zaretskii <eliz@gnu.org>
7513
7514 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
7515
b003e5ff
JB
75162008-11-27 Juanma Barranquero <lekktu@gmail.com>
7517
7518 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
7519 pointer to check_face_name.
7520
708550f5
KH
75212008-11-27 Kenichi Handa <handa@m17n.org>
7522
7523 * category.h (SET_CATEGORY_SET): Call set_category_set.
7524 (set_category_set): Extern it.
7525
7526 * category.c (hash_get_category_set): New function.
7527 (Fmodify_category_entry): Adjusted for the change of
7528 char_table_ref_and_range. Call hash_get_category_set to get a
7529 category set to store in the table.
7530
7531 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
7532 Funify_charset.
7533
2ae37cf0 7534 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
7535 (DECODE_CHAR): Check if the decoder vector is ready.
7536 (ENCODE_CHAR): Check if the encoder char-table is ready.
7537 (maybe_unify_char): Extern it.
7538
7539 * charset.c (Vchar_unified_charset_table): Delete it.
7540 (inhibit_load_charset_map): New variable.
7541 (temp_charset_work): New variable.
7542 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
7543 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
7544 New macros.
7545 (load_charset_map): Meaning of control_flag changed. If
7546 inhibit_load_charset_map is nonzero, setup a table in
7547 temp_charset_work.
7548 (load_charset): New argument control_flag.
7549 (map_charset_for_dump): New function.
7550 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
7551 map_charset_for_dump.
7552 (Fdefine_charset_internal): If the charset method is MAP, load
7553 mapping tables by calling load_charset.
7554 (Funify_charset): Don't load a mapping table but directly set
7555 Vchar_unify_table.
7556 (maybe_unify_char): New function.
7557 (decode_char): Don't handle the deleted method MAP_DEFERRED.
7558 Handle the case of inhibit_load_charset_map being nonzero.
7559 (encode_char): Don't handle the deleted method MAP_DEFERRED.
7560 Handle the case of inhibit_load_charset_map being nonzero.
7561 (Fclear_charset_maps): Just free temp_charset_work.
7562 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
7563 variable.
7564
7565 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
7566 change of char_table_ref_and_range.
7567 (char_table_ref_and_range): Change the meaning of argument FROM
7568 and TO. Now the caller must provide initial values for *FROM
7569 and *TO.
7570
7571 * fontset.c (fontset_add): Adjusted for the change of
7572 char_table_ref_and_range.
7573 (fontset_get_font_group): Likewise.
7574 (Ffontset_info): Likewise.
7575
7576 * keymap.c (describe_vector): Adjusted for the change of
7577 char_table_ref_and_range. For char-table, put boundary between
7578 non-ASCII and 8-bit characters.
7579
7580 * print.c (print_object): For bool-vector, delete unnecessary
7581 check of ASCII_BYTE_P.
7582
9196133b
JR
75832008-11-26 Jason Rumney <jasonr@gnu.org>
7584
7585 * w32font.c (w32font_open_internal): Don't include external
9acef61c 7586 leading in font height. (Bug#879)
9196133b 7587
9f688acf
GM
75882008-11-26 Glenn Morris <rgm@gnu.org>
7589
7590 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
7591 redefinition with ifdef. (Bug#1383)
7592
90d19aff
AR
75932008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7594
7595 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
7596
4ccfa1c0 75972008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
7598
7599 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
7600 New EmacsView methods.
7601 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
7602 Fixes bug #1048,1357,1414.
7603
76042008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7605
7606 Fix bug #1362.
7607 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
7608 is not an indexed color.
7609 * nsterm.m (free_indexed_color): Add argument checking.
7610 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
7611
e7d5ecb3
CY
76122008-11-24 Chong Yidong <cyd@stupidchicken.com>
7613
7614 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
7615 Document confirm-after-completion value for
7616 minibuffer-completion-confirm.
7617
c285743c
JR
76182008-11-24 Jason Rumney <jasonr@gnu.org>
7619
7620 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
7621 warning.
7622
b0857706
JR
76232008-11-23 Jason Rumney <jasonr@gnu.org>
7624
7625 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
7626 restored before returning.
7627
7628 * w32font.c (check_face_name): New function.
7629 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 7630 fonts. (Bug#642)
b0857706 7631
ee50ff07
MR
76322008-11-22 Martin Rudalics <rudalics@gmx.at>
7633
7634 * buffer.c (Fswitch_to_buffer): Reword and mention new option
7635 confirm-nonexistent-file-or-buffer in doc-string.
7636
b8ff72fa
SM
76372008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
7638
7639 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
7640 Fix copy/paste typo. Add checks.
7641
cee53ed4
KH
76422008-11-21 Kenichi Handa <handa@m17n.org>
7643
7644 * coding.c (detect_coding_iso_2022): Reject invalid composition
7645 sequence.
7646 (DECODE_COMPOSITION_START): If the current source is the last
7647 block, and the current composition doesn't end, regard this
7648 sequence as invalid.
7649 (decode_coding_iso_2022): Handle invalid composition sequence.
7650
f6ef1e65
MR
76512008-11-20 Martin Rudalics <rudalics@gmx.at>
7652
7653 * window.c (coordinates_in_window): Don't return
7654 ON_VERTICAL_BORDER for the rightmost position of a mode/header
7655 line when the window is not the rightmost one. (Bug#1372)
7656
e08b1705
MR
76572008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
7658
7659 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
7660
ad98e89f
EZ
76612008-11-15 Eli Zaretskii <eliz@gnu.org>
7662
7663 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
7664 and bright_bg if noninteractive is non-zero.
7665
fb098a4b
CY
76662008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7667
7668 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
7669 x_draw_glyph_string_background.
7670
7671 * w32term.c (x_draw_glyph_string): Likewise.
7672
ce952b6e
CY
76732008-11-15 Chong Yidong <cyd@stupidchicken.com>
7674
7675 * xterm.c (x_draw_glyph_string): Stop drawing the background of
7676 the next glyph string once past the overhang width.
7677
7678 * nsterm.m (ns_draw_glyph_string): Likewise.
7679
7680 * w32term.c (x_draw_glyph_string): Likewise.
7681
26ea7079
CY
76822008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
7683
7684 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
7685 double file close.
7686
1c33c906
MR
76872008-11-14 Martin Rudalics <rudalics@gmx.at>
7688
7689 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
7690 dedicated status of window before attempting to display another
7691 buffer in it.
7692
8fc29035
JB
76932008-11-14 Juanma Barranquero <lekktu@gmail.com>
7694
7695 * msdos.c (Fmsdos_long_file_names):
7696 (syms_of_msdos) <dos-unsupported-char-glyph>:
7697 * dosfns.c (Fint86): Fix typos in docstrings.
7698
55fb4286
EZ
76992008-11-14 Eli Zaretskii <eliz@gnu.org>
7700
7701 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
7702
3fda0315
KY
77032008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
7704
7705 * puresize.h (BASE_PURESIZE): Increase to 1260000.
7706
7e849c17
CY
77072008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
7708
7709 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
7710
7711 * frame.h: Negative alpha means "don't touch".
7712
7713 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
7714
7715 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
7716
b9fd67bd
DN
77172008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
7718
7719 * hftctl.c:
7720 * chpdef.h:
7721 * acldef.h: Remove files used only for systems no longer supported.
7722
7723 * Makefile.in: Fix .o alphabetical ordering.
7724 (hftctl.o): Remove dependency, file removed.
7725 (keymap.o, print.o): Depend on charset.h.
7726
d5998e03
KH
77272008-11-10 Kenichi Handa <handa@m17n.org>
7728
2ae37cf0 7729 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 7730
be70e183
CY
77312008-11-08 Chong Yidong <cyd@stupidchicken.com>
7732
7733 * dired.c (file_name_completion): If completion_ignore_case is
7734 enabled, ignore case when checking completion-regexp-list.
7735
7cf94eac
EZ
77362008-11-08 Eli Zaretskii <eliz@gnu.org>
7737
7738 * vm-limit.c (get_lim_data): Fix last change.
7739
ee107a89
KH
77402008-11-08 Kenichi Handa <handa@m17n.org>
7741
7742 * character.c (Fget_byte): New function.
7743 (syms_of_character): Defsubr Fget_byte.
7744
5fd15622
CY
77452008-11-07 Chong Yidong <cyd@stupidchicken.com>
7746
7747 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
7748 cursor position is valid after scrolling.
7749
13d62fad
JB
77502008-11-06 Juanma Barranquero <lekktu@gmail.com>
7751
7752 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
7753
a1dd2936
GM
77542008-11-06 Glenn Morris <rgm@gnu.org>
7755
7756 * xterm.c (handle_one_xevent): Don't let popup menus cause
7757 mouse-autoselect-window related window switching. (Bug#1261)
7758
860cd236
CY
77592008-11-04 David Smith <davidsmith@acm.org> (tiny change)
7760
7761 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
7762
653a3150
AS
77632008-11-04 Andreas Schwab <schwab@suse.de>
7764
7765 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
7766
870f5cac
CY
77672008-11-03 Chong Yidong <cyd@stupidchicken.com>
7768
7769 * xfns.c (Fx_wm_set_size_hint): New function.
7770
1e02f3cb
MR
77712008-11-03 Martin Rudalics <rudalics@gmx.at>
7772
7773 * textprop.c (Fprevious_single_char_property_change): Return 0
7774 when there's no change in a string. (Bug#1301)
7775
e630dfc6
MR
77762008-11-02 Martin Rudalics <rudalics@gmx.at>
7777
7778 * frame.c (do_switch_frame): New argument NORECORD passed to
7779 Fselect_window.
7780 (Fselect_frame): New argument NORECORD passed to
7781 do_switch_frame.
7782 (Fset_frame_selected_window): New argument NORECORD passed to
7783 Fselect_frame.
7784 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
7785 in call of do_switch_frame.
7786 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
7787 Handle NORECORD argument in call of Fselect_frame.
7788 * lisp.h (do_switch_frame, Fselect_frame)
7789 (Fset_frame_selected_window): Adjust declarations.
7790 * window.c (select_frame_norecord): New function.
7791 (run_window_configuration_change_hook): Use it and call
7792 Fselect_frame with NORECORD set.
7793 (Fselect_window): Pass NORECORD to Fselect_frame.
7794 (Fset_window_configuration): Handle NORECORD argument in call of
7795 do_switch_frame.
7796 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
7797 Fset_frame_selected_window.
7798 * keyboard.c (command_loop_1): Handle NORECORD in call of
7799 Fselect_frame (currently ifdefd).
7800
9020b223
GM
78012008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
7802
7803 * emacs.c (USAGE2): Untabify.
7804
793ffee8
SM
78052008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
7806
7807 * composite.c (fill_gstring_header): Fix copy/paste typo.
7808
ab6d1131
MR
78092008-10-31 Martin Rudalics <rudalics@gmx.at>
7810
7811 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
7812 (Fother_window): Rename argument and rewrite doc-string.
7813 (select_window_norecord): Fix return value. (Bug#1276)
7814
601a9cf1
JB
78152008-10-30 Juanma Barranquero <lekktu@gmail.com>
7816
7817 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
7818 new frames overriding foreground for tooltips. Based on similar patch
7819 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
7820
813b0652
CY
78212008-10-29 Chong Yidong <cyd@stupidchicken.com>
7822
7823 * emacs.c (Fdaemon_initialized): Initialize nfd.
7824
4414f58f
MR
78252008-10-29 Martin Rudalics <rudalics@gmx.at>
7826
7827 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
7828 (Fwindow_text_height): Clarify doc-strings.
7829 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
7830 doc-string of window-scroll-functions.
7831
ecdcaa09
RS
78322008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
7833
7834 * category.c (syms_of_category): Fix typo in docstring.
7835
23fe745a
JB
78362008-10-28 Juanma Barranquero <lekktu@gmail.com>
7837
7838 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
7839 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
7840 Fix typos in docstrings.
7841
ff808935
DN
78422008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
7843
7844 * emacs.c (daemon_pipe): Make non-static.
7845 (IS_DAEMON): Move definition ...
7846 * lisp.h (IS_DAEMON): ... here.
7847 (daemon_pipe): Declare.
7848 (is_daemon): Remove.
7849 * dispnew.c (init_display): Use IS_DAEMON.
7850
fc012771
SM
78512008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
7852
7853 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
7854 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
7855
7856 * emacs.c (is_daemon): Remove.
7857 (main): Don't set is_daemon.
7858 (IS_DAEMON): New macro.
7859 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 7860 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
7861 parent exits.
7862 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
7863
d8bdbe6f
CY
78642008-10-27 Chong Yidong <cyd@stupidchicken.com>
7865
d1a072bf
CY
7866 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
7867 over-sized glyph, draw it with the default glyph width.
7868
e2e325aa
CY
7869 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
7870 glyph, draw it with the default glyph width.
7871
7872 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
7873 glyph, draw it with the default glyph width.
7874
d8bdbe6f
CY
7875 * xdisp.c (try_scrolling): When computing the distance from the
7876 scroll margin to PT, try moving some distance past the window
7877 bottom before giving up.
7878
7bfac547
MR
78792008-10-27 Martin Rudalics <rudalics@gmx.at>
7880
7881 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
7882 (Fset_window_buffer): Explain in doc-string that a window can be
7883 "strongly" dedicated to its buffer.
7884
4ff029f6
DN
78852008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
7886
7887 * emacs.c (daemon_name): New variable.
7888 (main): Deal with --daemon=SERVER_NAME.
7889 (Fdaemonp): Return a name if one was passed to --daemon.
7890
5790ef40
DN
78912008-10-26 Romain Francoise <romain@orebokech.com>
7892
f9bd0df9 7893 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
7894 (main): Create a pipe before forking, make the parent exit only after
7895 the child has closed its end of the pipe. Move closing the
7896 descriptors ...
7897 (Fdaemon_initialized): ... here. New function.
7898
f5385255
SM
78992008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
7900
4d632321
SM
7901 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
7902 the previous unoptimized table.
7903
f5385255
SM
7904 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
7905 the distinction between non-nil and non-t value of `dedicated'.
7906
6c56a0f3
CY
79072008-10-25 Chong Yidong <cyd@stupidchicken.com>
7908
7909 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 7910 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 7911
fec89261
MR
79122008-10-25 Martin Rudalics <rudalics@gmx.at>
7913
7914 * window.c (Fget_buffer_window, Fdelete_windows_on)
7915 (Freplace_buffer_in_windows): Make buffer argument optional and
7916 rename to buffer_or_name.
7917
34fcddd0
CY
79182008-10-24 Chong Yidong <cyd@stupidchicken.com>
7919
f5385255
SM
7920 * xdisp.c (handle_single_display_spec, handle_display_prop):
7921 Undo 2005-05-16 change.
34fcddd0
CY
7922 (handle_stop): Pop iterator if it's loaded with an empty string.
7923 (get_overlay_strings_1): Don't save iterator if it's loaded with
7924 an empty string (bug#1201).
7925
064766f2
KH
79262008-10-24 Kenichi Handa <handa@m17n.org>
7927
7928 * ftfont.c (ftfont_otf_features): Fix previous change.
7929 (ftfont_otf_capability): Check FeatureList.FeatureCount before
7930 calling ftfont_otf_features.
7931
f9bd0df9 79322008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
7933
7934 * font.c (font_match_p): Fix for the case that a vector of
7935 characters is in script-representative-chars.
7936
1dae9197
MA
79372008-10-24 Michael Albinus <michael.albinus@gmx.de>
7938
7939 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 7940 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
7941 (xd_read_queued_messages): Catch Qdbus_error from the macros.
7942 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 7943 macro. (Bug#1186)
1dae9197 7944
f9bd0df9 79452008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
7946
7947 * s/sol2-10.h: New file.
7948
878a4584
JB
79492008-10-23 Juanma Barranquero <lekktu@gmail.com>
7950
7951 * xdisp.c (fill_glyph_string): Fix typo in source (though the
7952 poor beast has survived 9+ years and the jump from xterm.c!).
7953
cd265ca6
MR
79542008-10-23 Martin Rudalics <rudalics@gmx.at>
7955
7956 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
7957 Reword doc-string.
f5385255 7958 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 7959
472a4dc9
JB
79602008-10-23 Juanma Barranquero <lekktu@gmail.com>
7961
7962 * character.c (syms_of_character) <script-representative-chars>:
7963 <unicode-category-table>: Doc fixes.
7964
159bd5a2
NF
79652008-10-23 Noah Friedman <friedman@splode.com>
7966
7967 * coding.c (make_conversion_work_buffer): Check that
7968 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
7969 Fget_buffer_create.
7970
49f9c344
KH
79712008-10-23 Kenichi Handa <handa@m17n.org>
7972
7973 * font.c (font_add_log): Check the values of extra properties.
7974
12bb3111
MR
79752008-10-22 Martin Rudalics <rudalics@gmx.at>
7976
7977 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
7978 Reword doc-string.
7979 (Fset_window_parameter): Use NILP.
7980 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 7981 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 7982
bbeb4e99
JB
79832008-10-22 Juanma Barranquero <lekktu@gmail.com>
7984
7985 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
7986
79872008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
7988
7989 * nsfns.m (ns_appkit_version): New function.
7990 (x-server-version): Use it.
7991 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
7992 (x-server-vendor): Don't check_ns().
7993
7994 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
7995
a9b555d3
JB
79962008-10-22 Juanma Barranquero <lekktu@gmail.com>
7997
7998 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
7999 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
8000
4626499f
KH
80012008-10-22 Kenichi Handa <handa@m17n.org>
8002
e3681952
KH
8003 * syntax.c (scan_words): Call word_boundary_p instead of comparing
8004 scripts.
8005
4626499f
KH
8006 * category.c (word_boundary_p): Check scripts instead of charset.
8007 Handle nil value in word-separating-categories and
8008 word-combining-categories.
8009 (syms_of_category): Fix docstrings of word-separating-categories
8010 and word-combining-categories.
8011
1560f91a
EZ
80122008-10-21 Eli Zaretskii <eliz@gnu.org>
8013
8014 * coding.c (Fencode_coding_region, Fdecode_coding_region)
8015 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
8016
f4668441
MR
80172008-10-21 Martin Rudalics <rudalics@gmx.at>
8018
8019 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
8020 Rename arg "buffer" to "buffer_or_name".
8021 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
8022 it optional.
8023 (no_switch_window): Remove since the return value is not used.
a9b555d3 8024 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
8025 Consider window as dedicated when Fwindow_dedicated_p returns a
8026 non-nil value.
8027 * lisp.h: Remove prototype for no_switch_window.
8028
fd75ddb2
JD
80292008-10-21 Jan Djärv <jan.h.d@swipnet.se>
8030
8031 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 8032 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 8033
07295713
KH
80342008-10-21 Kenichi Handa <handa@m17n.org>
8035
8036 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
8037 check Vlatin_extra_code_table.
8038
712adc82
EZ
80392008-10-20 Eli Zaretskii <eliz@gnu.org>
8040
8041 * fileio.c (Fset_file_modes): Doc fix.
8042
f549eb0b
MA
80432008-10-19 Michael Albinus <michael.albinus@gmx.de>
8044
8045 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
8046 in arrays.
8047
aac0c6e3
MR
80482008-10-19 Martin Rudalics <rudalics@gmx.at>
8049
8050 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
8051 Mention kill-buffer in doc-string.
8052 (Fset_window_buffer): Reinsert tem check removed in last commit.
8053 (Fenlarge_window, Fshrink_window): Have argument names and
8054 doc-string follow Elisp manual more closely.
8055
80562008-10-18 Eli Zaretskii <eliz@gnu.org>
8057
8058 * fileio.c (Fset_file_modes): Doc fix.
8059
80602008-10-18 Martin Rudalics <rudalics@gmx.at>
8061
8062 * window.c (Fwindow_width, Fset_window_start)
8063 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
8064 (Fdelete_windows_on, Freplace_buffer_in_windows):
8065 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
8066 (Fwindow_dedicated_p): Make window argument optional.
8067 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
8068 (Fset_window_buffer): Respect any non-nil dedicated value for
8069 window. Rename "buffer" argument to "buffer_or_name".
8070
80712008-10-18 Ulrich Mueller <ulm@gentoo.org>
8072
8073 * m/sh3.h: New file, machine description for SuperH.
8074
80752008-10-17 Martin Rudalics <rudalics@gmx.at>
8076
8077 * window.c (Fsplit_window): Rename arg horflag to horizontal.
8078
80792008-10-17 Kenichi Handa <handa@m17n.org>
8080
8081 * ftfont.c (ftfont_otf_features): Fix indexing
8082 gsub_gpos->FeatureList.Feature. Check the validity of indices.
8083
80842008-10-16 Magnus Henoch <mange@freemail.hu>
8085
8086 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
8087 (Fdbus_call_method_asynchronously): Ditto.
8088 This change makes C-h f display the argument list.
8089
80902008-10-16 Chong Yidong <cyd@stupidchicken.com>
8091
8092 * fileio.c (Fexpand_file_name): Doc fix.
8093
8094 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
8095 of :foreground and :background equivalent to unspecified (20.x
8096 compatibility).
8097
80982008-10-15 Eli Zaretskii <eliz@gnu.org>
8099
8100 * buffer.c (syms_of_buffer): Doc fix.
8101
81022008-10-14 Kenichi Handa <handa@m17n.org>
8103
8104 * font.c (font_clear_prop): When clearing font width, clear the
8105 average width field too.
8106
81072008-10-12 Andreas Schwab <schwab@suse.de>
8108
8109 * ftfont.c (ftfont_shape_by_flt): Make static.
8110 * ftfont.h (ftfont_shape_by_flt): Don't declare.
8111
8112 * font.c: Don't include <m17n-flt.h>.
8113
81142008-10-10 Eli Zaretskii <eliz@gnu.org>
8115
8116 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
8117
81182008-10-09 Eli Zaretskii <eliz@gnu.org>
8119
8120 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
8121 away code.
8122
81232008-10-09 Chong Yidong <cyd@stupidchicken.com>
8124
8125 * dispnew.c (update_text_area): Avoid looping due to large glyph
8126 overhangs (bug#1070).
8127
81282008-10-09 Kenichi Handa <handa@m17n.org>
8129
8130 * fontset.c (face_for_char): If face->fontset is negative, just
8131 return ascii_face.
8132
f5385255
SM
8133 * font.c (font_delete_unmatched): Fix previous change.
8134 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
8135
81362008-10-09 Martin Rudalics <rudalics@gmx.at>
8137
8138 * frame.c (Fraise_frame): On text-only terminals select frame in
8139 order to make it visible. (Bug#1061)
8140
81412008-10-08 Chong Yidong <cyd@stupidchicken.com>
8142
8143 * fontset.c (fontset_find_font): Check frame validity.
8144
81452008-10-07 Chong Yidong <cyd@stupidchicken.com>
8146
a9b555d3 8147 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
8148 (xg_display_close): Allow Emacs to close all displays (bug#985).
8149
81502008-10-06 Andreas Schwab <schwab@suse.de>
8151
f5385255 8152 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
8153
81542008-10-06 Chong Yidong <cyd@stupidchicken.com>
8155
f5385255 8156 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 8157
a9b555d3 8158 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
8159
8160 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
8161 during initialization.
8162
81632008-10-04 Eli Zaretskii <eliz@gnu.org>
8164
8165 * xdisp.c (redisplay_internal): If frame switched, redisplay the
8166 whole thing on MSDOS frames as well as on a TTY.
8167
8168 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
8169 well as for TTY.
8170 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
8171 well as on a TTY.
8172
8173 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
8174 as well as for TTY.
8175
8176 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
8177
8178 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
8179 MSDOS frames as well.
8180
81812008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
8182
8183 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
8184 correct arguments.
b71ac3dd 8185 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
8186
81872008-10-03 Glenn Morris <rgm@gnu.org>
8188
8189 * emacs.c (USAGE1): Add --daemon.
8190
81912008-10-02 Eli Zaretskii <eliz@gnu.org>
8192
8193 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
8194 100, so it's in percents as advertised.
8195
81962008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
8197
8198 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
8199 (ns_output.current_cursor, ns_output.desired_cursor)
8200 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
8201 (FRAME_NEW_CURSOR_COLOR): Remove.
8202
8203 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 8204 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
8205 enumeration (HOLLOW_BOX_CURSOR, etc.).
8206
8207 * nsterm.m (ns_frame_rehighlight): Remove commented code.
8208 (draw_window_cursor): Simplify code.
f5385255
SM
8209 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
8210 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 8211 updates manually.
a9b555d3
JB
8212 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
8213 Use core Emacs cursor types.
aac0c6e3 8214
b8ff72fa 8215 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
8216
82172008-10-02 Martin Rudalics <rudalics@gmx.at>
8218
8219 * process.c (Faccept_process_output): Fix doc-string.
8220
82212008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
8222
8223 * gmalloc.c (__sbrk): Also define for uClibc.
8224
8225 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
8226 for uClibc.
8227
82282008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8229
8230 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
8231 styles.
8232 (nsfont_open): Reenable the cache.
8233
82342008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8235
8236 * font.c (font_matching_entity): Reflect ATTRS in font selection.
8237 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
8238
82392008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
8240
8241 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
8242 a suspended terminal.
8243
82442008-09-30 Michael Albinus <michael.albinus@gmx.de>
8245
8246 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
8247
82482008-09-30 Eli Zaretskii <eliz@gnu.org>
8249
8250 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
8251
82522008-09-30 Chong Yidong <cyd@stupidchicken.com>
8253
8254 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
8255 in a continued line coincides with a line beginning.
8256
82572008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
8258
8259 * nsfont.m (nsfont_trait_distance): Fix bug.
8260 (nsfont_list): Return a list rather than a vector (syncs with Handa
8261 changes of 2008-05-14).
8262 (nsfont_open): Improve logging.
8263
82642008-09-29 Andreas Schwab <schwab@suse.de>
8265
8266 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
8267
82682008-09-28 Martin Rudalics <rudalics@gmx.at>
8269
8270 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
8271 name as char-resolve-modifiers.
8272 Reported by: Markus Triska <markus.triska@gmx.at>
8273
82742008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
8275
8276 * dispnew.c (init_display): Return earlier when running as a daemon.
8277
82782008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8279
8280 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
8281
82822008-09-27 Eli Zaretskii <eliz@gnu.org>
8283
8284 * composite.c (Fcomposition_get_gstring)
8285 (Fcompose_region_internal, Fcompose_string_internal)
8286 (Ffind_composition_internal): Doc fix.
8287 (syms_of_composite) <compose-chars-after-function>: Doc fix.
8288 (syms_of_composite) <auto-composition-function>: Doc fix.
8289 (syms_of_composite) <composition-function-table>: Doc fix.
8290
82912008-09-25 Chong Yidong <cyd@stupidchicken.com>
8292
8293 * search.c (wordify): New argument for lax word-ends.
8294 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
8295
82962008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
8297
8298 * lisp.h (is_daemon): Declare.
8299 * dispnew.c (init_display): Do not try to initialize the terminal
8300 when running as a daemon.
8301
83022008-09-22 Chong Yidong <cyd@stupidchicken.com>
8303
8304 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
8305 x_display_pixel_height.
8306
83072008-09-22 Martin Rudalics <rudalics@gmx.at>
8308
8309 * undo.c (record_point): Don't call Fundo_boundary for first
8310 change. (Bug#731)
8311
83122008-09-22 Juanma Barranquero <lekktu@gmail.com>
8313
8314 * emacs.c (Fdaemonp): Doc fix.
8315
83162008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
8317
8318 * emacs.c (main): Place #ifdef in the proper place.
8319
83202008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
8321
8322 * emacs.c (standard_args): Add --daemon.
8323 (main): Disconnect from the terminal when --daemon is passed.
8324 (is_daemon): New variable.
8325 (Fdaemonp): New function.
8326 (syms_of_emacs): Defsubr it.
8327
83282008-09-20 Chong Yidong <cyd@stupidchicken.com>
8329
8330 * xdisp.c (get_next_display_element): Handle string display
8331 correctly when checking for the end of a box run.
8332
83332008-09-20 Glenn Morris <rgm@gnu.org>
8334
8335 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
8336 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
8337 (Frename_file): Avoid copying to trash if a rename involves
8338 a delete. (Bug#964).
8339
83402008-09-20 Eli Zaretskii <eliz@gnu.org>
8341
8342 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
8343 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
8344 frames as well as termcap frames.
8345 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
8346 get_named_tty.
8347
83482008-09-19 Eli Zaretskii <eliz@gnu.org>
8349
8350 * process.c (procfs_system_process_attributes): Fix cmdline in
8351 case /proc/PID/cmdline is empty.
8352
8353 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
8354 x_display_pixel_height.
8355
83562008-09-19 Juanma Barranquero <lekktu@gmail.com>
8357
8358 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
8359
8360 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
8361 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
8362
83632008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
8364
8365 * dispextern.h (struct it): Move line_wrap away from the middle of
8366 bitfields. Move voffset in struct iterator_stack_entry after the
8367 bitfields. Move tab_width near after another short.
8368
83692008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
8370
8371 * frame.h (struct frame): Move alpha from the middle of bitfields.
8372
8373 * window.h (struct window): Move frozen_window_start_p after the
8374 rest of the bitfields to reduce padding.
8375
83762008-09-18 Chong Yidong <cyd@stupidchicken.com>
8377
8378 * xterm.h (x_display_info): Remove `height' and `width' members.
8379
8380 * nsterm.h (ns_display_info): Remove `height' and `width' members.
8381
8382 * w32term.h (w32_display_info): Remove `height', `width',
8383 `height_in', and `width_in' members.
8384
b8ff72fa
SM
8385 * xterm.c (x_display_pixel_height, x_display_pixel_width):
8386 New functions.
aac0c6e3
MR
8387 (x_calc_absolute_position): Use them.
8388 (x_term_init): Omit removed `height' and `width' members.
8389
b8ff72fa
SM
8390 * w32term.c (x_display_pixel_height, x_display_pixel_width):
8391 New functions.
aac0c6e3
MR
8392 (w32_read_socket, x_calc_absolute_position): Use them.
8393 (w32_initialize_display_info, w32_term_init): Omit removed members
8394 of w32_display_info.
8395
b8ff72fa
SM
8396 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
8397 New functions.
8398 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 8399
b8ff72fa
SM
8400 * xterm.c (x_display_pixel_height, x_display_pixel_width):
8401 New functions.
aac0c6e3
MR
8402 (x_calc_absolute_position): Use them.
8403 (x_term_init): Omit removed `height' and `width' members.
8404
8405 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
8406 (compute_tip_xy):
8407 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
8408 * xmenu.c (menu_position_func): Use x_display_pixel_height and
8409 x_display_pixel_width.
8410
84112008-09-18 Kenichi Handa <handa@m17n.org>
8412
8413 * composite.c (fill_gstring_header): Don't check FROM and TO here.
8414 (composition_compute_stop_pos): Fix handling of static composition.
8415 (Fcomposition_get_gstring): Check FROM and TO at first.
8416
84172008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
8418
46e722a9 8419 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
8420 mixup (YAILOM).
8421
84222008-09-17 Chong Yidong <cyd@stupidchicken.com>
8423
8424 * indent.c (Fvertical_motion): Use position reported by iterator
8425 instead of PT for determining screen motion (bug#943).
8426
84272008-09-17 Romain Francoise <romain@orebokech.com>
8428
8429 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
8430
84312008-09-17 Kenichi Handa <handa@m17n.org>
8432
8433 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
8434
8435 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
8436 if necessary.
8437
84382008-09-16 Kenichi Handa <handa@m17n.org>
8439
8440 * coding.c (make_conversion_work_buffer): Avoid calling
8441 Fget_buffer_create if it is not necessary.
8442
84432008-09-15 Martin Rudalics <rudalics@gmx.at>
8444
8445 * window.c (Fselect_window): Don't update window_select_count and
8446 use_time when norecord is not nil.
8447
84482008-09-14 Kenichi Handa <handa@m17n.org>
8449
8450 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
8451 specpdl_ptr.
8452
84532008-09-12 Kenichi Handa <handa@m17n.org>
8454
8455 * indent.c (scan_for_column): Don't handle automatic composition
8456 if the current buffer is not associated with a window.
8457
8458 * composite.c (composition_reseat_it): If the current buffer is
8459 not associated with a window, ignore the automatic composition.
8460 (find_automatic_composition): Likewise.
8461
84622008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
8463
8464 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
8465 (Fgpm_mouse_stop): Use it.
8466 * termhooks.h (close_gpm): Declare.
8467 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
8468 connection if Gpm_GetEvent fails.
8469
8470 * window.c (set_window_buffer): Always preserve current-buffer.
8471
84722008-09-12 Glenn Morris <rgm@gnu.org>
8473
8474 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
8475
84762008-09-11 Glenn Morris <rgm@gnu.org>
8477
8478 * charset.c (charset-map-path): Doc fix.
8479
84802008-09-10 Kenichi Handa <handa@m17n.org>
8481
8482 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
8483
8484 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
8485 compose a grapheme cluster with the preceding base glyph.
8486
8487 * composite.c (composition_compute_stop_pos): Fix previous change.
8488 Reset cmp_it->id to -1 at first.
8489
84902008-09-10 Glenn Morris <rgm@gnu.org>
8491
8492 * Makefile.in (character.o, chartab.o): Fix config.h typo.
8493
84942008-09-09 Chong Yidong <cyd@stupidchicken.com>
8495
8496 * keyboard.c (read_key_sequence): Reapply translation maps when
8497 switching keyboards.
8498
84992008-09-09 Kenichi Handa <handa@m17n.org>
8500
8501 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
8502 characters.
8503
8504 * composite.c (FORWARD_CHAR): Fix calculation
8505 of (POSITION).pos_byte.
8506 (composition_compute_stop_pos): Limit the search of composition to
8507 at most 500 characters ahead. If we reach the limit or find a
8508 newline, set cmp_it->ch to -2 and return 0.
8509 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
8510
85112008-09-08 Kenichi Handa <handa@m17n.org>
8512
8513 * indent.c (Fvertical_motion): Be sure to set
8514 it_overshoot_expected if it.cmp_it.id is non-negative.
8515
85162008-09-07 Andreas Schwab <schwab@suse.de>
8517
8518 * callproc.c (Fcall_process): Don't hold references to string data
8519 across garbage collection. Move initialisation of new_argv down
8520 to avoid compiler bug.
8521
85222008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
8523
8524 * process.c (Fsystem_process_attributes): Doc fix.
8525
85262008-09-07 Chong Yidong <cyd@stupidchicken.com>
8527
8528 * callproc.c (Fcall_process): Canonicalize current directory name.
8529
8530 * xdisp.c (move_it_to): When moving by vpos, ensure that the
8531 iterator advances to the next line if the current line ends in a
8532 continued tab.
8533
85342008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
8535
8536 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
8537 member to point to cmp_from.
8538
8539 * xdisp.c: Doc fix for references to gidx data member.
8540
85412008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
8542
8543 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
8544
85452008-09-07 Kenichi Handa <handa@m17n.org>
8546
8547 * composite.c (FORWARD_CHAR): Check STOP after
8548 incrementing (POSITION).pos.
8549
85502008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
8551
8552 * process.c (Fsystem_process_attributes): Doc fix.
8553
85542008-09-06 Chong Yidong <cyd@stupidchicken.com>
8555
8556 * keyboard.c (Ftop_level): Doc fix.
8557
85582008-09-06 Eli Zaretskii <eliz@gnu.org>
8559
8560 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
8561 minibuffer, don't let lower part of menu invade the echo area.
8562
8563 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
8564 "char *q" to access menu text and advance through it. Revert the
8565 change that displayed ">" instead of ASCII character 0x10.
8566
85672008-09-05 Eli Zaretskii <eliz@gnu.org>
8568
8569 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
8570 toggle boxes and radio buttons on MS-DOS as well.
8571
85722008-09-05 Kenichi Handa <handa@m17n.org>
8573
8574 * composite.c (autocmp_chars): Check lookback count.
8575 (composition_compute_stop_pos): Set cmp_it->lookback.
8576 (composition_reseat_it): Check lookback count.
8577 (struct position_record): New struct.
8578 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
8579 (find_automatic_composition): New function.
8580 (composition_adjust_point): Use find_automatic_composition.
8581
8582 * dispextern.h (struct composition_it): New member lookback.
8583
85842008-09-02 Chong Yidong <cyd@stupidchicken.com>
8585
8586 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
8587 if moving by a single line.
8588
85892008-09-02 Andreas Schwab <schwab@suse.de>
8590
8591 * xterm.c (x_delete_display): Fix merge error.
8592
8593 * fileio.c (Fexpand_file_name): Remove unused variables.
8594
85952008-09-02 Eli Zaretskii <eliz@gnu.org>
8596
8597 * fileio.c (Fexpand_file_name): Copy argument `name' into local
8598 storage on all platforms, not just on DOS_NT.
8599
86002008-09-02 Jason Rumney <jasonr@gnu.org>
8601
b8ff72fa
SM
8602 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
8603 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
8604
86052008-09-01 Chong Yidong <cyd@stupidchicken.com>
8606
8607 * xfaces.c (Finternal_set_alternative_font_family_alist)
8608 (Finternal_set_alternative_font_registry_alist): Properly copy
8609 entire alist structure.
8610
86112008-09-01 Kenichi Handa <handa@m17n.org>
8612
d66c0241 8613 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 8614 representative chars of the script is a vector.
d66c0241
JB
8615 (ftfont_list): Handle the case where the representative chars of
8616 the script is a vector.
aac0c6e3
MR
8617
8618 * character.c (syms_of_character): Docstring of
8619 script-representative-chars fixed.
8620
86212008-08-31 Eli Zaretskii <eliz@gnu.org>
8622
8623 * msdos.c (BUILD_CHAR_GLYPH): New macro.
8624 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
8625 the menu. Allocate larger buffer for `text', to account for
8626 possible ^C characters.
8627
86282008-08-31 Martin Rudalics <rudalics@gmx.at>
8629
8630 * xdisp.c (prepare_menu_bars): Don't call
8631 Vwindow_size_change_functions with arg Qt.
8632
86332008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
8634
8635 * font.h (font_range):
8636 * fileio.c (report_file_error):
46e722a9
SM
8637 * composite.c (composition_update_it): Yet another int/Lisp_Object
8638 mixup (YAILOM).
aac0c6e3
MR
8639
86402008-08-30 Glenn Morris <rgm@gnu.org>
8641
8642 * data.c (Fmake_variable_frame_local): Doc fix.
8643
8644 * frame.c (Fmodify_frame_parameters): Doc fix.
8645
86462008-08-30 Eli Zaretskii <eliz@gnu.org>
8647
8648 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
8649 needed by GetTokenInformation.
8650 (w32_system_process_attributes): Check return values of all system
8651 APIs.
8652
8653 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
8654 only when the state changes.
8655 (IT_update_begin, IT_update_end): Add termscript trace.
8656
8657 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
8658 clipboard is unavailable. Set dst to NULL if it doesn't point to
8659 malloc'ed data.
8660 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
8661 passing random values to xfree.
8662
8663 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 8664 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
8665
86662008-08-29 Jason Rumney <jasonr@gnu.org>
8667
8668 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
8669
86702008-08-29 Eli Zaretskii <eliz@gnu.org>
8671
8672 * composite.c (fill_gstring_body): Avoid compiler warnings.
8673
8674 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
8675 LGLYPH_SET_CODE to avoid compiler warnings.
8676
2ae37cf0 8677 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
8678
8679 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
8680
8681 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
8682 LGLYPH_SET_CODE.
8683
86842008-08-29 Kenichi Handa <handa@m17n.org>
8685
8686 * fileio.c (report_file_error): Don't downcase the first character
8687 of errstring if it is still unibyte.
8688
86892008-08-29 Kenichi Handa <handa@m17n.org>
8690
8691 These changes are to re-implement the automatic composition so
8692 that it doesn't use text properties.
8693
8694 * Makefile.in (ftfont.o): Depend on composite.h.
8695 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
8696
8697 * character.h (Vunicode_category_table): Extern it.
8698
8699 * character.c (Vunicode_category_table): New variable.
8700 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
8701
8702 * chartab.c (optimize_sub_char_table): Perform more greedy
8703 optimization.
8704
b8ff72fa
SM
8705 * composite.h (enum composition_method):
8706 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
8707 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
8708 (Vcomposition_function_table): Extern it.
8709 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
8710 (composition_gstring_put_cache, composition_gstring_from_id)
8711 (composition_gstring_p, composition_gstring_width)
8712 (composition_compute_stop_pos, composition_reseat_it)
8713 (composition_update_it, composition_adjust_point): Extern them.
8714 (Fcomposition_get_gstring): EXFUN it.
8715
d66c0241 8716 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
8717 (Vcomposition_function_table)
8718 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
8719 (gstring_hash_table, gstring_work, gstring_work_headers):
8720 New variables.
aac0c6e3
MR
8721 (gstring_lookup_cache, composition_gstring_put_cache)
8722 (composition_gstring_from_id, composition_gstring_p)
8723 (composition_gstring_width, fill_gstring_header)
8724 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
8725 (composition_reseat_it, composition_update_it)
b8ff72fa 8726 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
8727 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
8728 and gstring_work_headers. DEFVAR_LISP composition-function-table.
8729 Defsubr compostion_get_gstring.
8730
8731 * dispextern.h (struct glyph): New union u.cmp. Delete the member
8732 cmp_id.
8733 (struct glyph_string): Delete the member gidx. New members
8734 cmp_id, cmp_from, and cmp_to.
8735 (enum it_method): Delete GET_FROM_COMPOSITION.
8736 (struct composition_it): New struct.
8737 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
8738 Delete c, len, cmp_id, cmp_len in u.comp.
8739
8740 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 8741 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 8742 (enum lglyph_indices): Likewise.
b8ff72fa 8743 (font_range): Adjust extern.
aac0c6e3
MR
8744 (font_fill_lglyph_metrics): Extern it.
8745
8746 * font.c (QCf): New variable.
8747 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
8748 (font_prepare_composition): Delete this function.
8749 (font_range): Type and arguments changed.
8750 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
8751 (font_fill_lglyph_metrics): New function.
b8ff72fa 8752 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 8753 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
8754 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
8755 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
8756
8757 * fontset.h (font_for_char): Extern it.
8758
8759 * fontset.c (font_for_char): New function.
8760
8761 * ftfont.c: Include composite.h.
8762 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 8763 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
8764
8765 * indent.c: Include composite.h and dispextern.h.
8766 (check_composition): Delete this function.
8767 (scan_for_column): Handle composition by
8768 composition_compute_stop_pos, composition_reseat_it, and
8769 composition_update_it.
8770 (compute_motion): Likewise.
8771 (Fvertical_motion): Fix checking of composition.
8772
8773 * keyboard.c (adjust_point_for_property): Check composition by
8774 composition_adjust_point.
8775
b8ff72fa 8776 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
8777 struct glyph_string.
8778
b8ff72fa
SM
8779 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
8780 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
8781 struct glyph.
8782 (produce_composite_glyph): Likewise.
8783
b8ff72fa
SM
8784 * w32term.c (x_draw_composite_glyph_string_foreground):
8785 Adjust for the change of struct glyph_string.
aac0c6e3
MR
8786 (x_draw_glyph_string): Likewise.
8787
8788 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
8789 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
8790
8791 * xdisp.c: Include font.h.
8792 (it_props): Delete the entry for Qauto_composed.
8793 (init_iterator): Initialize it->cmp_it.id to -1.
8794 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 8795 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
8796 (handle_auto_composed_prop): Delete it.
8797 (handle_composition_prop): Handle only static composition.
8798 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
8799 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 8800 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
8801 (pop_it): Likewise.
8802 (get_next_element): Delete next_element_from_composition.
8803 (CHAR_COMPOSED_P): New macro.
8804 (get_next_display_element): For automatic composition, get a face
8805 from the font in the glyph-string.
8806 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 8807 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
8808 (next_element_from_string): Check if the character at the current
8809 position is composed by CHAR_COMPOSED_P.
8810 (next_element_from_buffer): Likewise.
d66c0241
JB
8811 (next_element_from_composition): Adjust for the change of struct it.
8812 Update it->cmp_it.
b8ff72fa
SM
8813 (dump_glyph): Adjust for the change of struct glyph.
8814 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
8815 it and struct glyph. Don't handle automatic composition here.
8816 (fill_gstring_glyph_string): New function.
8817 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 8818 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
8819 (BUILD_GSTRING_GLYPH_STRING): New macro.
8820 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
8821 automatic composition.
b8ff72fa 8822 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 8823 struct glyph.
b8ff72fa 8824 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 8825
b8ff72fa 8826 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
8827 the change of struct glyph_string.
8828 (x_draw_glyph_string): Likewise.
8829
88302008-08-29 Glenn Morris <rgm@gnu.org>
8831
8832 * buffer.c (word-wrap): Doc fix.
8833 * xdisp.c (truncate-partial-width-windows): Doc fix.
8834 Increase default to 50.
8835
88362008-08-29 Chong Yidong <cyd@stupidchicken.com>
8837
8838 * xdisp.c (update_tool_bar_unwind): New function.
8839 (update_tool_bar): Temporarily set selected frame before building
8840 tool-bar items.
8841
88422008-08-28 Michael Albinus <michael.albinus@gmx.de>
8843
8844 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
8845 snprintf, respectively.
8846 (xd_append_arg): Convert strings with Fstring_make_unibyte.
8847
88482008-08-28 Chong Yidong <cyd@stupidchicken.com>
8849
8850 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
8851 LDFLAGS to GNUstep CC invocation.
8852
88532008-08-27 Chong Yidong <cyd@stupidchicken.com>
8854
8855 * indent.c (Fvertical_motion): Revert last change. Handle the
8856 general case where we are moving forward, and PT spans multiple
8857 screen lines.
8858
8859 * eval.c (find_handler_clause): Temporarily increase
8860 max-lisp-eval-depth while printing the backtrace buffer, to
8861 guarantee that help-mode code can run.
8862
88632008-08-27 Eli Zaretskii <eliz@gnu.org>
8864
8865 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
8866 colors under -rv.
8867 (IT_set_frame_parameters): Don't swap foreground and background
8868 colors if `(reverse . t)' is present in the frame properties.
8869 (internal_terminal_init): Call init_frame_faces only for the
8870 initial frame.
8871
88722008-08-27 Andreas Schwab <schwab@suse.de>
8873
8874 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
8875
88762008-08-27 Andreas Schwab <schwab@suse.de>
8877
8878 * search.c (search_buffer): Set char_base to zero only at the end.
8879
88802008-08-27 Kenichi Handa <handa@m17n.org>
8881
b8ff72fa 8882 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
8883
88842008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
8885
8886 * xterm.c (x_term_init): Temporarily hide the partially
8887 initialized terminal while calling vendor-specific-keysyms.
8888
88892008-08-26 Eli Zaretskii <eliz@gnu.org>
8890
8891 * msdos.c (internal_terminal_init): Most initializations done only
8892 once, especially initial_screen_colors[] and termscript open.
8893
88942008-08-26 Chong Yidong <cyd@stupidchicken.com>
8895
8896 * eval.c (Fcondition_case): Doc fix.
8897
8898 * widgetprv.h (EmacsFramePart): Change font member to the new font
8899 struct.
8900
8901 * widget.c: Include character.h and font.h for XSETFONT.
8902 (setup_frame_gcs): Compute X font id from font struct, just once.
8903
89042008-08-26 Eli Zaretskii <eliz@gnu.org>
8905
8906 * term.c (get_named_tty): Fix last change.
8907
89082008-08-26 Chong Yidong <cyd@stupidchicken.com>
8909
8910 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 8911 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
8912
89132008-08-25 Eli Zaretskii <eliz@gnu.org>
8914
8915 * frame.c (do_switch_frame): Mark previously displayed frame as
8916 obscured for FRAME_MSDOS_P frames as well.
8917
89182008-08-24 Eli Zaretskii <eliz@gnu.org>
8919
8920 * frame.c (make_terminal_frame): Initialize f->terminal,
8921 f->terminal->reference_count, and scroll bars on MS-DOS as well.
8922 Set the top frame to newly created frame.
8923 (Fmake_terminal_frame): Reuse the_only_display_info.
8924
8925 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
8926 estimating available memory.
8927
b97439ce 89282008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
8929
8930 * nsterm.m (ns_draw_window_cursor): Don't call
8931 NSDisableScreenUpdates and NSEnableScreenUpdates on
8932 non-NS_IMPL_COCOA systems.
8933
89342008-08-23 Andreas Schwab <schwab@suse.de>
8935
8936 * process.c (procfs_system_process_attributes): Fix use of
8937 uninitialized variables.
8938
89392008-08-23 Eli Zaretskii <eliz@gnu.org>
8940
8941 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
8942
8943 * dispnew.c (init_display): Remove MS-DOS specific conditions for
8944 calling tty-set-up-initial-frame-faces.
8945
b8ff72fa
SM
8946 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
8947 Allow MSDOS frames along with X frames.
aac0c6e3
MR
8948
8949 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
8950 addition to output_termcap.
8951
8952 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
8953
8954 * termchar.h (FRAME_TTY): Support output_msdos_raw.
8955 (struct tty_display_info) [MSDOS]: Add fields related to mouse
8956 highlight.
8957
8958 * process.c [!subprocesses]: Define QCname.
8959 (syms_of_process): Intern and staticpro it.
8960
8961 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
8962 Adjust for changes in encoding/decoding routines.
8963 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
8964 encode_coding and decode_coding.
8965
b8ff72fa 8966 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
8967
8968 * dosfns.c: Include frame.h before termhooks.h.
8969 (dos_cleanup): Use CURTTY ()->termscript instead of a global
8970 variable termscript.
8971
8972 * s/msdos.h (USER_FULL_NAME): Define.
8973 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
8974
8975 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
8976 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
8977 pw->pw_gecos.
8978
8979 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
8980 SELECTED_FRAME as additional (1st) argument.
8981 (tty_read_avail_input): Handle output_msdos_raw in
8982 addition to output_termcap.
8983
8984 * msdos.c: Include frame.h before termhooks.h.
8985 (mouse_on, mouse_off, mouse_moveto, mouse_init)
8986 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
8987 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
8988 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
8989 (IT_set_terminal_modes, IT_reset_terminal_modes)
8990 (IT_set_frame_parameters): Use tty->termscript instead of a global
8991 variable termscript.
8992 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
8993 global variable terminal_coding. Don't refer to
8994 Vnonascii_translation_table.
8995 (internal_terminal_init): Set Vwindow_system in current_kboard.
8996 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
8997 Announce date and time of session start, if termscript is open.
8998 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
8999 term.c:init_tty). Open termscript only of not already open.
9000 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
9001 here instead of dos_ttraw. Don't initialize display if this is an
9002 initial tty. Don't set FRAME_FONT.
9003 (Vwindow_system_version): Bump to 23.
9004 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
9005 is available, set up mouse_position_hook.
9006 (dos_ttraw, IT_set_terminal_modes): If called with initial
9007 terminal, do nothing.
9008 (IT_set_frame_parameters): Handle the Qtty_type frame
9009 parameter by calling internal_terminal_init.
9010 (dos_set_window_size, show_mouse_face)
9011 (clear_mouse_face, IT_note_mode_line_highlight)
9012 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
9013 (dos_rawgetc): Use tty_display_info instead of x_display_info.
9014 (initialize_msdos_display): New function.
9015 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
9016 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
9017 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
9018 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 9019 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
9020 (request_sigio, unrequest_sigio): Don't define, now defined on
9021 sysdep.c.
9022 (IT_write_glyphs): Rewrite to use encode_terminal_code.
9023
9024 * term.c [MSDOS]: Include msdos.h.
9025 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
9026 conditional to DOS_NT. Allow only one call to this function in a
9027 session. Don't allocate a new struct tty_display_info; instead,
9028 reuse the_only_display_info. Call get_tty_size to get screen
9029 dimensions. Call init_baud_rate to set bad_rate.
9030 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
9031 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 9032 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
9033 (get_tty_terminal, get_named_tty, Ftty_type)
9034 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
9035 output_termcap.
b8ff72fa
SM
9036 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
9037 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 9038 only when subprocesses are supported.
aac0c6e3
MR
9039
9040 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
9041 f->output_data.x.
9042 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
9043 terminal devices.
9044
5582fbc7 9045 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
9046 x_output.
9047 (FRAME_FONT): Use output_data.tty.
9048 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
9049 (struct x_display_info): Rename from display_info. Update all users in
9050 msdos.c.
aac0c6e3 9051 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 9052 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
9053 (dos_ttraw): Update prototype.
9054
9055 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
9056 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
9057
90582008-08-23 Jason Rumney <jasonr@gnu.org>
9059
9060 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
9061 (fn_TIFFSetDirectory): New library function used.
9062 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
9063 (tiff_load): Use :index to select among multiple images. Set count
9064 property when multiple images exist.
9065 (gif_format): Use :index, not :image.
9066
90672008-08-23 Chong Yidong <cyd@stupidchicken.com>
9068
9069 * xdisp.c (try_scrolling): Check INT_MAX instead of
9070 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
9071 to obtain INT_MAX.
9072
90732008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
9074
9075 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
9076
90772008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
9078
9079 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
9080 GNUstep library location.
9081
90822008-08-21 Chong Yidong <cyd@stupidchicken.com>
9083
9084 * xfaces.c (x_update_menu_appearance): Check validity of menu font
9085 before using it.
9086
9087 * puresize.h (BASE_PURESIZE): Increase to 1250000.
9088
90892008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9090
9091 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
9092 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
9093 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
9094 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
9095 (EmacsApp-cursor_blink_handler): Remove declaration.
9096 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
9097 match 01 Feb 2008 changes in xterm.c.
9098 (ns_read_socket): Add cast to avoid warning.
9099 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
9100 GNUstep.
9101
91022008-08-20 Chong Yidong <cyd@stupidchicken.com>
9103
9104 * xselect.c (x_get_foreign_selection): Return nil if desired
9105 selection could not be obtained, instead of signalling an error.
9106
91072008-08-20 David Reitter <david.reitter@gmail.com>
9108
9109 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
9110 * nsterm.m: Remove ns-specific code for cursor blinking.
9111 (ns_draw_window_cursor): Clear cursor properly rather than
9112 redrawing the area. Respect width of bar cursors.
9113 These changes enable the use of generic blink-cursor-mode and
9114 generic cursor types in NS and support smooth cursor movements (do
9115 not blink off after command).
9116 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
9117 Nextstep, too.
9118
91192008-08-19 Kenichi Handa <handa@m17n.org>
9120
9121 * font.c (Vfont_log_deferred): New variable.
9122 (font_add_log): Check Vfont_log_deferred.
9123 (font_deferred_log): New function.
9124
9125 * font.h (font_deferred_log): Extern it.
9126
9127 * fontset.c (reorder_font_vector): Use encoding charset of fonts
9128 for sorting.
9129 (face_for_char): Use deferred log.
9130
91312008-08-18 Kenichi Handa <handa@m17n.org>
9132
9133 * fontset.c (face_for_char): Add font log.
9134
9135 * font.c (font_add_log): Add the font properties :script, :lang,
9136 and :otf in the log.
9137
91382008-08-17 Chong Yidong <cyd@stupidchicken.com>
9139
9140 * xdisp.c: Remove dead code.
9141 (handle_invisible_prop, next_overlay_string): Defer call to
9142 setup_for_ellipsis.
9143 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
9144
91452008-08-15 Chong Yidong <cyd@stupidchicken.com>
9146
9147 * xfaces.c (lookup_derived_face): Properly handle possible zero
9148 return value of get_lface_attributes.
9149 (merge_faces): Don't tell lookup_derived_face to signal an error
9150 if face is not found.
9151
9152 * dired.c (Fdirectory_files): Doc fix.
9153
9154 * process.c (make_process): Initialize kill_without_query struct
9155 member.
9156
91572008-08-15 Eli Zaretskii <eliz@gnu.org>
9158
9159 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
9160 Alternative calculation of totphys for Visual Studio 6.
9161
9162 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
9163
9164 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
9165 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
9166 All users changed.
9167 (stat): Only root directory passed to GetDriveType. Allow RAM
9168 disk as well as local fixed disk when w32-get-true-file-attributes
9169 is set to `local'.
9170 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
9171 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
9172 (w32_cached_id, w32_add_to_cache): New functions.
9173 (get_name_and_id): Look account names in the cache before calling
9174 lookup_account_sid.
9175 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
9176 New initialization flags.
9177 (globals_of_w32): Initialize them to zero.
9178 (w32_system_process_attributes): Use w32_cached_id and
9179 w32_add_to_cache.
9180
91812008-08-14 Lawrence Mitchell <wence@gmx.li>
9182
9183 * lread.c (Fread_char, Fread_char_exclusive): If no character
9184 event is read before timeout is reached, return nil, rather than
9185 converting to a number.
9186
91872008-08-14 Chong Yidong <cyd@stupidchicken.com>
9188
9189 * fns.c (use_dialog_box): Doc fix.
9190
9191 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
9192 on OS X.
9193
91942008-08-13 Chong Yidong <cyd@stupidchicken.com>
9195
9196 * frame.c (Qns_parse_geometry): New var.
9197 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
9198
91992008-08-11 Chong Yidong <cyd@stupidchicken.com>
9200
9201 * xdisp.c (x_produce_glyphs): Handle the case when font has no
9202 space character in calculating tabs.
9203
92042008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
9205
9206 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
9207
92082008-08-10 Glenn Morris <rgm@gnu.org>
9209
9210 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
9211 silence gcc "limited range of data type" warnings in some
9212 make_fixnum_or_float calls.
9213
92142008-08-09 Eli Zaretskii <eliz@gnu.org>
9215
9216 * w32.c (w32_system_process_attributes): If the process does not
9217 exist, return nil.
9218
9219 * w32.c: Include thelp32.h, psapi.h and coding.h.
9220 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
9221 declarations.
9222 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
9223 (Process32Next_Proc): New typedefs.
9224 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
9225 (g_b_init_process32_next, g_b_init_open_thread_token)
9226 (g_b_init_impersonate_self, g_b_init_revert_to_self)
9227 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
9228 (g_b_init_get_process_working_set_size)
9229 (g_b_init_global_memory_status_ex): New static variables.
9230 (globals_of_w32): Initialize them.
9231 (create_toolhelp32_snapshot, process32_first, process32_next)
9232 (open_thread_token, impersonate_self, revert_to_self)
9233 (get_process_memory_info, get_process_working_set_size)
9234 (global_memory_status, global_memory_status_ex): New wrapper
9235 functions.
9236 (w32_list_system_processes, w32_system_process_attributes)
9237 (enable_privilege, restore_privilege, ltime, process_times):
9238 New functions.
9239 (convert_time_raw): New function.
9240 (convert_time): Remove conversion of FILETIME into time in 100
9241 nsec units, call convert_time_raw instead.
9242
9243 * process.h (w32_list_system_processes, w32_system_process_attributes):
9244 Add prototypes.
9245 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
9246 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
9247 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
9248 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
9249
9250 * process.c (Fsystem_process_attributes): Doc fix.
9251
92522008-08-08 Chong Yidong <cyd@stupidchicken.com>
9253
9254 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
9255 a continued multi-char glyph; if so, advance to the actual glyph.
9256
92572008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
9258
9259 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
9260
9261 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
9262 (.m.o): Use it.
9263 * config.in: Regenerate.
9264
92652008-08-07 Chong Yidong <cyd@stupidchicken.com>
9266
9267 * xdisp.c (redisplay_window): Revert last change.
9268 (try_window): Check bottom scroll margin too.
9269
92702008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9271
9272 * config.in: Regenerate.
9273
9274 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
9275 -list-load-path-shadows'.
9276 (nsgui.h): Reduce number of things depending on it.
9277
92782008-08-06 Chong Yidong <cyd@stupidchicken.com>
9279
9280 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
9281 instead of window-end which does the wrong thing at eob.
9282 (try_cursor_movement): Minor optimization.
9283 (redisplay_window): If scroll margin is defined, don't assume
9284 window doesn't need scrolling.
9285
92862008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9287
9288 * config.in: Regenerate.
9289
9290 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
9291 (mostlyclean): Don't delete *.d under NS.
9292
9293 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
9294
92952008-08-06 Kenichi Handa <handa@m17n.org>
9296
9297 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
9298
92992008-08-06 Andreas Schwab <schwab@suse.de>
9300
9301 * config.in: Regenerate.
9302
93032008-08-05 Chong Yidong <cyd@stupidchicken.com>
9304
9305 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
9306 forcing a window start.
9307
9308 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
9309 (auto_save_1): Update modtime when auto-save-list-file-name is on.
9310
93112008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9312
9313 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
9314 argument.
9315
93162008-08-05 Juanma Barranquero <lekktu@gmail.com>
9317
9318 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
9319 <scroll-down-aggressively, before-change-functions>:
9320 <after-change-functions>: Reflow docstrings.
9321
93222008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4e2af782 9323 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
9324
9325 Dock menu customization, based on a patch by Ken Raeburn, plus some
9326 other fixes.
9327 * nsmenu.m (dockMenu): New variable.
9328 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
9329
9330 * nsterm.h (dockMenu): Declare.
9331
9332 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
9333 (ns_term_init): Initialize dockMenu.
9334 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
9335 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
9336 left.
9337
9338 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
9339
93402008-08-04 Chong Yidong <cyd@stupidchicken.com>
9341
9342 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
9343
9344 * config.in: Regenerate.
9345
93462008-08-04 Seiji Zenitani <zenitani@mac.com>
9347
9348 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
9349
93502008-08-04 Chong Yidong <cyd@stupidchicken.com>
9351
9352 * nsterm.h (find_and_call_menu_selection): Fix prototype.
9353
93542008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9355
9356 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
9357
9358 * keyboard.h: Comment an #endif.
9359
9360 * lisp.h (have_menus_p): Adjust comment.
9361
9362 * menu.c (find_and_return_menu_selection): Fix comparison with
9363 client_data.
9364
9365 * nsmenu.m (popup_activated_flag): New variable.
9366 (popup_activated): New function.
9367 (menu-or-popup-active-p): New exported lisp definition.
9368 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
9369 when popup done.
9370 (ns_popup_dialog): Set popup_activated_flag.
9371
9372 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
9373 version for GNUstep (handled by conditional typedef in nsterm.m).
9374 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
9375 in rgb.txt).
9376
9377 * process.c (init_process): Use DARWIN_OS, not DARWIN.
9378
9379 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
9380
9381 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
9382
9383 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
9384 shortcircuit if popup_activated like GTK and X toolkit.
9385
9386 * m/inter386.h: Change DARWIN to DARWIN_OS.
9387
9388 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
9389 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
9390 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
9391 comment on NO_SOCK_SIGIO.
9392
93932008-08-03 Chong Yidong <cyd@stupidchicken.com>
9394
9395 * nsterm.m (windowDidResize): Remove stopModal call.
9396
93972008-08-03 Andreas Schwab <schwab@suse.de>
9398
9399 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
9400 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
9401
94022008-08-02 Chong Yidong <cyd@stupidchicken.com>
9403
9404 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
9405 Don't use uninitialized pointer variable when using getrlimit.
9406
94072008-08-02 Jason Rumney <jasonr@gnu.org>
9408
9409 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
9410
94112008-08-02 Eli Zaretskii <eliz@gnu.org>
9412
9413 * alloc.c (NSTATICS): Bump to 0x640.
9414
9415 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
9416
9417 * lisp.h: Add prototype for directory_files_internal.
9418
9419 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
9420 New functions.
9421 (syms_of_process): Defsubr them. Add initializations for various
9422 Q* symbols used in procfs_system_process_attributes.
9423 (procfs_list_system_processes, procfs_system_process_attributes)
9424 [HAVE_PROCFS]: New functions.
9425 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
9426 (procfs_get_total_memory): New functions.
9427
94282008-08-01 Juanma Barranquero <lekktu@gmail.com>
9429
9430 * xfaces.c (Fx_load_color_file): Fix previous change;
9431 it is #ifdef WINDOWSNT, not WINDOWS_NT.
9432
94332008-08-01 Michael Albinus <michael.albinus@gmx.de>
9434
9435 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
9436
94372008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9438
9439 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
9440
94412008-08-01 Chong Yidong <cyd@stupidchicken.com>
9442
9443 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
9444
9445 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
9446 define NSApplicationDelegateReplySuccess.
9447 (EmacsView -converstationIdentifier): Use long instead of
9448 NSInteger for GNUstep, since it doesn't have NSInteger.
9449
9450 * xmenu.c: Revert last change.
9451
9452 * keyboard.h: Fix last change.
9453
94542008-08-01 Juanma Barranquero <lekktu@gmail.com>
9455
9456 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
9457 on Windows.
9458
94592008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9460
9461 Warning clearing and clean-up in NS port.
9462 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
9463 Add prototypes.
9464 * nsgui.h (FACE_DEFAULT): Remove, unused.
9465 (XGCValues): Change colors to unsigned long.
9466 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
9467 nsterm.m.
9468 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
9469 (ns_list_fonts): Remove, unused.
9470 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
9471 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
9472 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
9473 (nsfont_draw): Compare face colors to 0, not nil.
9474 * nsmenu.m (struct widget_value): Drop unneeded declaration.
9475 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
9476 (-addSubmenuWithTitle:): Use NSMenuItem class.
9477 (ns_popup_menu): Use NO, not NULL, for enabled setting.
9478 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
9479 (ns_clip_to_row): Make gc arg a BOOL.
9480 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
9481 ns_clip_to_row() call.
9482 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
9483 used). Cast FRAME_FONT assignments.
9484 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
9485 (ns_string_to_lispmod): Change arg to const char.
9486 (ns_term_init): Use NSMenuItem class.
9487 (EmacsApp -openFile:): Move to different section of file.
9488 (EmacsApp -application:openFiles:): Don't return a value, call
9489 -replyToOpenOrPrint:.
9490 (EmacsView -keyDown:): Fix up cast.
9491 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
9492 (EmacsView -menuDown:): Cast tag in call to
9493 find_and_call_menu_selection().
9494 (ns_list_fonts): Remove, unused.
9495 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
9496 (ns_fontname_to_xlfd): Make static.
9497 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
9498 Remove prototypes (now in keyboard.h).
9499 (next_menubar_widget_id): Remove, unused.
9500 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
9501 Remove prototypes (now in keyboard.h).
9502 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
9503
95042008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
9505
9506 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
9507 (floatfns.o): Depend on syssignal.h.
9508 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
9509
9510 * systty.h: Fix previous change that removed BSD_TERMIOS.
9511 Add comments to #ifdefs.
9512
95132008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9514
9515 * w32fns.c (w32-load-color-file): Remove.
9516 (x-open-connection): Use renamed Fx_load_color_file.
9517 * xfaces.c (x-load-color-file): Add.
9518 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
9519 Emacs.clr.
9520 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
9521
95222008-07-31 Michael Albinus <michael.albinus@gmx.de>
9523
9524 * dbusbind.c (Fdbus_call_method_asynchronously)
9525 (Fdbus_method_error_internal): New defuns.
9526 (xd_read_message): Handle also reply messages.
9527 (Vdbus_registered_functions_table): Extend docstring.
9528
95292008-07-31 Juanma Barranquero <lekktu@gmail.com>
9530
9531 * keyboard.c (gobble_input): Fix previous change.
9532
95332008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
9534
9535 * bitmaps/README:
9536 * xfns.c:
9537 * termcap.c:
9538 * term.c:
9539 * syswait.h:
9540 * systty.h:
9541 * systime.h:
9542 * syssignal.h:
9543 * sysdep.c:
9544 * process.h:
9545 * process.c:
9546 * print.c:
9547 * ndir.h:
9548 * lread.c:
9549 * keyboard.c:
9550 * getpagesize.h:
9551 * floatfns.c:
9552 * fileio.c:
9553 * emacs.c:
9554 * doc.c:
9555 * dispnew.c:
9556 * dired.c:
9557 * data.c:
9558 * callproc.c:
9559 * buffer.c:
9560 * README:
9561 * Makefile.in:
9562 * s/template.h:
9563 * s/msdos.h:
9564 * m/vax.h: Remove VMS support.
9565 * s/vms.h:
9566 * vlimit.h:
9567 * uaf.h:
9568 * temacs.opt:
9569 * param.h:
9570 * ioctl.h: Remove file.
9571
95722008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
9573
9574 * s/ms-w32.h (MULTI_KBOARD): Remove.
9575 * xterm.c:
9576 * xselect.c:
9577 * xfns.c:
9578 * window.c:
9579 * w32term.c:
9580 * w32fns.c:
9581 * terminal.c:
9582 * termhooks.h:
9583 * term.c:
9584 * sysdep.c:
9585 * keyboard.h:
9586 * keyboard.c:
9587 * frame.h:
9588 * frame.c:
9589 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
9590 * config.in: Regenerate.
9591
95922008-07-30 Jason Rumney <jasonr@gnu.org>
9593
9594 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
9595
9596 * w32font.c (w32font_encode_char): Leave as unicode if in range.
9597 (w32font_open_internal): Get unicode version of textmetrics.
9598 Don't enable or disable glyph indices here.
9599 (w32font_open): Disable use of glyph indices.
9600
9601 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
9602
96032008-07-30 Chong Yidong <cyd@stupidchicken.com>
9604
9605 * minibuf.c (Vread_buffer_function): Doc fix.
9606
96072008-07-30 John Paul Wallington <jpw@pobox.com>
9608
9609 * minibuf.c (read_buffer_completion_ignore_case): New var.
9610 (Fread_buffer): Use it.
9611
96122008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
9613
9614 * systty.h (sensemode): Remove empty #if. Remove reference to
9615 BSD_TERMIOS, unused.
9616
9617 * sysdep.c: Remove reference to DGUX.
9618 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
9619
9620 * config.in: Regenerate.
9621
96222008-07-30 Jason Rumney <jasonr@gnu.org>
9623
9624 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
9625
96262008-07-29 Jason Rumney <jasonr@gnu.org>
9627
9628 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
9629 is populated.
9630 (uniscribe_encode_char): Always use uniscribe.
9631 Avoid using context if cache is populated.
9632
96332008-07-29 Jan Djärv <jan.h.d@swipnet.se>
9634
9635 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
9636 open menu.
9637
9638 * gtkutil.c (menu_nav_ended): Remove.
9639 (create_menus): Remove signal connect for menu_nav_ended.
9640
96412008-07-28 Chong Yidong <cyd@stupidchicken.com>
9642
9643 * xdisp.c (redisplay_window): Check return value of
9644 compute_window_start_on_continuation_line before forcing a window
9645 start.
9646
96472008-07-28 Jason Rumney <jasonr@gnu.org>
9648
9649 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
9650
9651 * w32term.c (w32_enable_unicode_output, cleartype_active):
9652 Remove obsolete display options.
9653 (x_draw_glyph_string_background): Don't use old cleartype_active
9654 workaround.
9655 (w32_initialize): Remove cleartype_active initialization.
9656 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
9657
96582008-07-28 Andreas Schwab <schwab@suse.de>
9659
9660 * lisp.h (init_weak_hash_tables, syms_of_font)
9661 (xd_read_queued_messages, syms_of_dbusbind): Declare.
9662 (remove_hash_entry): Don't declare.
9663 * eval.c (maybe_call_debugger): Make static and move before use.
9664 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
9665 * xdisp.c: Include "gtkutil.h" if USE_GTK.
9666 * xterm.h (x_set_frame_alpha): Declare.
9667
96682008-07-28 Jan Djärv <jan.h.d@swipnet.se>
9669
9670 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
9671 (create_menus): Connect selection-done to menu_nav_ended.
9672
96732008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
9674
9675 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
9676 Set Vx_resource_name to a fallback. Replace read of 'buffered'
9677 parameter with read of 'alpha' one.
9678 (Qns_frame_parameter): Remove.
5582fbc7 9679 * nsselect.m (selection-coding-system)
aac0c6e3
MR
9680 (next-selection-coding-system, Vselection_coding_system)
9681 (Vnext_selection_coding_system): Drop.
9682
96832008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
9684
9685 * nsfns.m (do-applescript, do_applescript): Rename to
9686 ns-do-applescript, ns_do_applescript, and move within file.
9687
96882008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
9689
9690 Remove support for Mac Carbon.
9691 * mactoolbox.c:
9692 * macterm.h:
9693 * macterm.c:
9694 * macselect.c:
9695 * macmenu.c:
9696 * macgui.h:
9697 * macfns.c:
9698 * mac.c: Remove file.
9699 * s/darwin.h:
9700 * m/intel386.h:
9701 * xfaces.c:
9702 * xdisp.c:
9703 * window.c:
9704 * tparam.c:
9705 * termhooks.h:
9706 * termcap.c:
9707 * term.c:
9708 * syssignal.h:
9709 * sysselect.h:
9710 * sysdep.c:
9711 * process.c:
9712 * lread.c:
9713 * lisp.h:
9714 * keyboard.c:
9715 * image.c:
9716 * fringe.c:
9717 * frame.h:
9718 * frame.c:
9719 * fontset.c:
9720 * font.h:
9721 * font.c:
9722 * fns.c:
9723 * fileio.c:
9724 * emacs.c:
9725 * dispnew.c:
9726 * dispextern.h:
9727 * config.in:
9728 * atimer.c:
2ae37cf0 9729 * Makefile.in: Remove code for Carbon.
aac0c6e3 9730
f0131492 97312008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
9732
9733 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
9734
97352008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9736
9737 * macterm.h (kCGBitmapByteOrder32Host): New define for
9738 non-universal SDKs.
9739
9740 * image.c (mac_create_cg_image_from_image, image_load_image_io)
9741 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
9742
9743 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
9744 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
9745
97462008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
9747
9748 * w32inevt.c: Include dispextern.h.
9749
97502008-07-26 Andreas Schwab <schwab@suse.de>
9751
9752 * print.c (print_object): Fix off-by-one in last change.
9753
97542008-07-25 Juanma Barranquero <lekktu@gmail.com>
9755
9756 * term.c (syms_of_term): Don't initialize default_orig_pair,
9757 default_set_foreground and default_set_background on Windows.
9758
97592008-07-25 Jason Rumney <jasonr@gnu.org>
9760
9761 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
9762 ScriptItemize. Clean up return value checking. Remove unused
9763 variables.
9764 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
9765 shaping engine.
9766
9767 * w32font.c (w32font_has_char): Handle the case where we can't
9768 determine the script for a character.
9769
97702008-07-25 Chong Yidong <cyd@stupidchicken.com>
9771
9772 * term.c (syms_of_term): Initialize default_orig_pair,
9773 default_set_foreground, and default_set_background.
9774
9775 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
9776 clash (bug#86).
9777 (getloadavg): Callers changed.
9778
9779 * image.c (svg_load_image): Fix last change.
9780 (svg_load_image): Use rsvg_handle_get_dimensions to check that
9781 image size is valid. Use g_object_unref instead of deprecated
9782 rsvg_handle_free to free rsvg handle.
9783 (x_from_xcolors): Don't initialize pixmap (silence compiler).
9784
97852008-07-25 Jason Rumney <jasonr@gnu.org>
9786
9787 * w32font.c (w32font_encode_char): Encode characters outside BMP as
9788 surrogates before looking up glyph index.
9789 (w32font_text_extents): Encode as surrogates if falling back to
9790 functions that need UTF-16 wide chars.
9791
9792 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
9793 BMP as surrogates before looking up glyph index.
9794
97952008-07-25 Chong Yidong <cyd@stupidchicken.com>
9796
9797 * image.c (svg_load_image): Check for failure in return value of
9798 rsvg_handle_get_pixbuf. Free rsvg handle when done.
9799
98002008-07-25 Jason Rumney <jasonr@gnu.org>
9801
9802 * w32font.c (Fx_select_font): Reverse sense of second arg.
9803
98042008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
9805
9806 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
9807 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
9808
9809 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
9810 (PURESIZE): Use it.
9811
98122008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
9813
9814 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
9815 * m/alpha.h (TEXT_END):
9816 * m/ibmrs6000.h (TEXT_END):
9817 * m/macppc.h (TEXT_END):
9818 * s/darwin.h (TEXT_END):
9819 * s/msdos.h (TEXT_END): Remove, unused.
9820 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
9821 * s/cygwin.h: Remove comment.
9822
9823 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
9824 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
9825 * m/intel386.h (DOT_GLOBAL_START):
9826 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
9827 (USG): Remove, file not used on USG platforms.
9828
9829 * Makefile.in (HAVE_X11): Remove empty #else.
9830
98312008-07-24 Andreas Schwab <schwab@suse.de>
9832
9833 * fileio.c (Finsert_file_contents): Properly adjust undo list
9834 after format conversion.
9835
98362008-07-24 Jan Djärv <jan.h.d@swipnet.se>
9837
9838 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
9839 (menu_nav_ended): Remove.
9840 (create_menus): Remove signal connect for menu_nav_ended.
9841 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
9842 create_menus.
9843 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
9844
98452008-07-23 Jason Rumney <jasonr@gnu.org>
9846
9847 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
9848 with opened font.
9849 (w32font_open): Set font type to gdi.
9850
9851 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
9852
98532008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
9854
9855 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
9856 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
9857 defines it.
9858 * unexec.c (ADDR_CORRECT): Define unconditionally.
9859
9860 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
9861
9862 * unexec.c: Remove code depending on !COFF and USG, the file is
9863 not used for such systems.
9864
9865 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
9866 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
9867 (LD_SWITCH_SYSTEM_1): Remove, update users.
9868
9869 * s/darwin.h (DATA_END):
9870 * m/intel386.h (DATA_END):
9871 * m/ibmrs6000.h (DATA_END):
9872 * m/alpha.h (DATA_END): Remove, unused.
9873
9874 * config.in: Regenerate.
9875 * s/ms-w32.h (subprocesses): Define unconditionally.
9876 * s/template.h (subprocesses): Update comment.
9877 * s/vms.h (subprocesses):
9878 * s/usg5-4.h (subprocesses):
9879 * s/hpux10-20.h (subprocesses):
9880 * s/gnu-linux.h (subprocesses):
9881 * s/cygwin.h (subprocesses):
9882 * s/bsd-common.h (subprocesses):
9883 * s/aix4-2.h (subprocesses):
9884 * s/darwin.h (subprocesses): Do not define, defined by default now.
9885
9886 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
9887 Remove all references.
9888 (temacs): Add GNUstep specific ld flags.
9889
9890 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
9891 similarly to what X does.
9892
98932008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9894
9895 * nsfns.m (x-list-fonts): Remove.
9896 (syms_of_nsfns): Drop the x-list-fonts declaration.
9897 * nsterm.m: Get rid of remaining "//" comments.
9898
98992008-07-22 Chong Yidong <cyd@stupidchicken.com>
9900
9901 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
9902
9903 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
9904 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
9905 (Fns_own_selection_internal, Fx_disown_selection_internal)
9906 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
9907
9908 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
9909 ... */' style of docstrings. Doc fixes.
9910
99112008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
9912
9913 * terminfo.c (UP, BC, PC): Undo previous change.
9914
9915 * nsfns.m: Rename ns prefixed functions/variables to the
9916 corresponding x versions. Update references.
9917
99182008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
9919
9920 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
9921
99222008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
9923
9924 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
9925 Remove forwarding functions.
9926 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
9927 non-static.
9928 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
9929 non-static.
9930 (ns_frame_parm_handlers): Use the new names.
9931 (syms_of_nsfns): Move to the end of file.
9932
9933 * nsterm.m (syms_of_nsterm): Move to the end of file.
9934
9935 * dispnew.c (init_display): Remove code for X10.
9936
99372008-07-22 Jason Rumney <jasonr@gnu.org>
9938
9939 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
9940 bare drive.
9941
99422008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9943
9944 * nsterm.m (syms_of_nsterm): Remove debugging println.
9945
99462008-07-22 David Reitter <david.reitter@gmail.com>
9947
9948 * nsfns.m (do_applescript, F_do_applescript): NS version of the
9949 Carbon implementation of the same functionality: execute arbitrary
9950 AppleScript code.
9951
99522008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9953
9954 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
9955 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
9956 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
9957 (Fx_display_mm_height, Fx_display_mm_width)
9958 (Fx_display_backing_store, Fx_display_visual_class)
9959 (Fx_display_save_under, Fx_open_connection)
9960 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
9961 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
9962 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
9963 (Fx_display_pixel_width, Fx_display_pixel_height)
9964 (Fx_display_usable_bounds, Fx_display_planes)
9965 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
9966 ... */' style of docstrings.
9967
99682008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
9969
9970 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
9971 on this platform.
9972 (mips):
9973 * m/iris4d.h (mips): Do not define.
9974 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
9975
9976 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
9977
9978 * image.c:
9979 * nsfns.m:
9980 * nsselect.m:
9981 * nsterm.h:
9982 * nsterm.m: Rename ns prefixed functions/variables to the
9983 corresponding x versions. Update references.
9984
9985 * m/ibms390x.h (NO_REMAP): Do not undefine.
9986
9987 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
9988
99892008-07-21 Chong Yidong <cyd@stupidchicken.com>
9990
9991 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
9992 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
9993 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
9994 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
9995 (Fns_display_mm_height, Fns_display_mm_width)
9996 (Fns_display_backing_store, Fns_display_visual_class)
9997 (Fns_display_save_under, Fns_open_connection)
9998 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
9999 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
10000 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
10001 (Fns_display_pixel_width, Fns_display_pixel_height)
10002 (Fns_display_usable_bounds, Fx_display_planes)
10003 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
10004
100052008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
10006
10007 * print.c (print_object): Check print_depth before searching for
10008 circularities.
10009
100102008-07-21 Michael Albinus <michael.albinus@gmx.de>
10011
10012 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
10013 only sprintf.
10014
100152008-07-21 Kenichi Handa <handa@m17n.org>
10016
10017 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
10018
100192008-07-20 Andreas Schwab <schwab@suse.de>
10020
10021 * syntax.c (find_start_pos, find_start_value)
10022 (find_start_value_byte, find_start_begv, find_defun_start)
10023 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
10024
100252008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
10026
10027 * s/sol2-3.h: Insert contents of s/sol2.h.
10028 (LD_SWITCH_SYSTEM): Remove redundant definition.
10029 * s/sol2.h: Remove, unused.
10030
100312008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10032
10033 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
10034
100352008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10036
10037 * Makefile.in (ns_appdir): Fix typo in find command.
10038
100392008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
10040
10041 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
10042
10043 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
10044 added not supported anymore.
10045
10046 * s/usg5-4-2.h (LIBS_SYSTEM):
10047 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
10048
10049 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
10050 * s/lynxos.h (GETPGRP_NO_ARG):
10051 * s/hpux10-20.h (NO_SIOCTL_H):
10052 * s/gnu.h (GETPGRP_NO_ARG):
10053 * s/gnu-linux.h (NO_SIOCTL_H):
10054 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
10055 * s/cygwin.h (GETPGRP_NO_ARG):
10056 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
10057 (C_DEBUG_SWITCH): Remove duplicate definition.
10058
10059 * m/ibms390.h: Remove boilerplate comments.
10060
10061 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
10062
10063 * process.c (HAVE_SERIAL): Consolidate ifdefs.
10064 (wait_reading_process_output): Remove code for SunOS, platform not
10065 supported anymore. Use SOLARIS2 instead of sun.
10066
100672008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10068
10069 * font.c (font_open_by_name): Under NS, default lface height to zero.
10070 (font_open_for_lface): Under NS, set size based on frame fontsize.
10071 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
10072 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
10073
100742008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10075
10076 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
10077 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
10078 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
10079 YES/NO.
10080 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
10081 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
10082 * Makefile.in (clean): Clear out build destination dir.
10083
100842008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10085
10086 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
10087 xterm, xselect.
10088 * lisp.h: Remove declaration of hash_remove.
10089 * nsgui.h: Remove redefinitions of hash_remove.
10090 * fns.c (hash_remove): Rename to hash_remove_from_table.
10091
100922008-07-19 Seiji Zenitani <zenitani@mac.com>
10093
10094 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
10095 strdup() the family UTF8String before modifying it.
10096
100972008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10098
10099 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
10100 NS_FACE_BACKGROUND with 0 instead of nil.
10101 * nsfont.m (nsfont_draw): Same.
10102
101032008-07-19 Chong Yidong <cyd@stupidchicken.com>
10104
10105 * nsfns.m (ns_set_background_color): Fix crash.
10106
101072008-07-18 Chong Yidong <cyd@stupidchicken.com>
10108
10109 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
10110
101112008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
10112
10113 * puresize.h (BASE_PURESIZE): Increase to 1240000.
10114
101152008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10116
10117 * gtkutil.c: Include <config.h> instead of "config.h".
10118
10119 * lisp.h (Foverlay_buffer): Add EXFUN.
10120
10121 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
10122 child process to complete child_setup. Undo 2005-09-21 change.
10123
10124 * s/darwin.h: Mention setsid after vfork.
10125
101262008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10127
10128 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
10129 Depend on macgui.h.
10130
10131 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
10132 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
10133
10134 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
10135 and f19.
10136 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
10137
10138 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
10139 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
10140 Remove enumerators.
10141
10142 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
10143 Check if FACE_FROM_ID returns NULL.
10144
101452008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
10146
10147 * w32inevt.c (change_frame_size): Remove extern declaration.
10148 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
10149 change_frame_size.
10150
101512008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
10152
10153 * getloadavg.c: Revert last change (2008-07-15).
10154
101552008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
10156
10157 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 10158 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
10159 from configure.
10160
101612008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
10162
10163 * s/sol2.h:
10164 * s/sol2-4.h: Reorganize conditionals.
10165
10166 * ecrt0.c: Remove code depending on m68000, not used anymore.
10167
10168 * fns.c (hash_remove): Make static.
10169 * lisp.h (hash_remove): Don't prototype.
10170
10171 * m/ibmrs6000.h:
10172 * m/ibms390x.h:
10173 * m/macppc.h: Remove boilerplate comments.
10174
10175 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
10176 Solaris, which does not need them.
10177
10178 * m/vax.h: Remove comments about unsupported systems.
10179
10180 * s/darwin.h: Reorganize ifdefs.
10181
101822008-07-17 Andreas Schwab <schwab@suse.de>
10183
10184 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
10185
101862008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
10187
10188 Use SDATA. Follow coding convention of placing operators at
10189 beginning of next line rather than end of previous line, and placing
10190 spaces around infix operators.
10191
10192 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
10193 in case it was defined already.
10194 USE @GNUSTEP_MAKEFILES@ rather than envvars.
10195 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
10196 ns_default.
10197 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
10198 Lisp_Objects.
10199 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
10200 (ns_defined_color, ns_color_to_lisp): Declare.
10201 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
10202 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
10203 it's accepted even with USE_LISP_UNION_TYPE.
10204 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
10205 (update_frame_tool_bar): Remove apparently obsolete tests for
10206 non-integerness of f->tool_bar_lines.
10207 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
10208 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
10209 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
10210 (nsfont_open): Don't confuse NULL for Qnil.
10211 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
10212 * menu.h (find_and_call_menu_selection):
10213 * menu.c (find_and_call_menu_selection): Use just int for vector size.
10214 (find_and_return_menu_selection): Always return something.
10215 * frame.h: Include dispextern.h for Display_Info.
10216 (display_x_get_resource): Declare.
10217
102182008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
10219
10220 * syntax.c: Remove stdio.h include accidentally introduced in
10221 Emacs.app commit.
10222 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
10223 NS_IMPL_COCOA.
10224 * keyboard.c (handle_async_input, input_available_signal): Remove
10225 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
10226
102272008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
10228
10229 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
10230 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
10231 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
10232 Use SDATA.
10233
10234 * keymap.c: Remove all NS-specific code.
10235 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
10236 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
10237 where_is_preferred_modifier, return a different value depending on how
10238 preferred is the binding.
10239 (where_is_internal): Adjust accordingly.
10240 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
10241 Adjust to new preferred_sequence_p.
10242 (syms_of_keymap): Declare `where-is-preferred-modifier'.
10243 * keyboard.c (parse_solitary_modifier): Not static any more.
10244 * keyboard.h (parse_solitary_modifier): Declare.
10245
102462008-07-16 Andreas Schwab <schwab@suse.de>
10247
10248 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
10249 of easymenu.
10250
102512008-07-16 Chong Yidong <cyd@stupidchicken.com>
10252
10253 * xdisp.c (move_it_in_display_line): Account for word wrap, so
10254 that we don't move off the line.
10255
102562008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
10257
10258 * keyboard.c (Qsuper): Remove.
10259 (parse_menu_item): Don't call where_is_internal specially for NS.
10260
102612008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
10262
10263 * s/gnu-linux.h: Remove boilerplate comments.
10264
10265 * m/alpha.h (__ELF__): Consolidate conditions.
10266
10267 * m/m68k.h (linux): Use GNU_LINUX instead.
10268 Remove boilerplate comments.
10269
10270 * m/intel386.h: Undo refactoring from previous change.
10271 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
10272 too, remove dead code.
10273 (linux): Use GNU_LINUX instead.
10274
102752008-07-16 Jason Rumney <jasonr@gnu.org>
10276
10277 * w32gui.h: Repeat 26 June changes lost by last change.
10278
102792008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
10280
10281 * systty.h: Remove code for Aix on 386, unsupported platform.
10282
10283 * s/ms-w32.h: Remove boilerplate comments.
10284 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
10285
10286 * s/gnu-linux.h (TERM): Remove support.
10287 (HAVE_SYSVIPC): Remove, unused.
10288 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
10289 for this system.
10290
10291 * process.c: Remove support for IRIS, unused.
10292 Remove support for TERM, not relevant anymore.
10293
10294 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
10295 used with the definition.
10296
10297 * s/aix4-2.h (static): Do not undef.
10298
10299 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
10300 only used on Aix.
10301 (HAVE_SYSVIPC): Remove, unused.
10302
10303 * m/hp800.h (CANNOT_DUMP): Do not undef.
10304
10305 * m/alpha.h: Fix comment.
10306
10307 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
10308 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
10309 used by this configuration.
10310 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
10311 * unexec.c: Remove code depending on HPUX and
10312 USG_SHARED_LIBRARIES, not used with this file. Remove code
10313 depending on IRIS, unused. Remove if 0-ed code.
10314
10315 * s/template.h: Remove comments about static.
10316
10317 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
10318 Remove if 0-ed code.
10319 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
10320 were the same as the default.
10321 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
10322 Remove boilerplate comments.
10323 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
10324 (HAVE_SYSVIPC): Remove, unused.
10325 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
10326
10327 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10328 Remove boilerplate comments.
10329 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10330 Remove boilerplate comments.
10331 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10332 Remove boilerplate comments.
10333 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
10334
10335 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
10336 USG systems which do not use DATA_SEG_BITS.
10337 Refactor code. Remove boilerplate comments.
10338
10339 * m/ibms390.h:
10340 * m/m68k.h:
10341 * s/bsd-common.h:
10342 * s/cygwin.h:
10343 * s/darwin.h:
10344 * s/freebsd.h:
10345 * s/gnu.h:
10346 * s/msdos.h: Remove boilerplate comments.
10347
10348 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 10349 do not use this file.
aac0c6e3
MR
10350 (IRIS_4D): Remove, unused.
10351
10352 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 10353 do not use this file.
aac0c6e3
MR
10354 (SIGN_EXTEND_CHAR):
10355 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
10356 * unexmips.c: Remove file, unused.
10357
10358 * editfns.c (Fuser_full_name): Replace the only use of
10359 USER_FULL_NAME with its value.
10360 * config.in: Regenerate.
10361
103622008-07-16 David Reitter <david.reitter@gmail.com>
10363
10364 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
10365 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
10366
103672008-07-16 Glenn Morris <rgm@gnu.org>
10368
10369 * emacs.c (system-type): Doc fix.
10370
103712008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
10372
10373 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
10374 If the cache doesn't work, let's fix it, rather than work around it.
10375
103762008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10377
10378 * Makefile.in: Correct additions for nsfont.o in last commit.
10379 * nsfont.m: New file (forgot last commit).
10380
103812008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
10382
10383 * callproc.c (set_initial_environment): Initialize
10384 Vprocess_environment under CANNOT_DUMP (fixes crash when
10385 batch-compiling for bootstrap).
10386
103872008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
4e2af782 10388 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
10389
10390 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
10391 fix crash due to different init order.
10392
103932008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10394
10395 Changes and additions for NeXTstep windowing system (Cocoa and
10396 GNUstep) support.
10397
10398 * Makefile.in:
10399 * config.in: Support defines and build commands for NS port.
10400 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
10401 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
10402 * dispextern.h: Include nsgui.h and add needed typedefs under NS
10403 windowing.
10404 (struct face): Add synth_ital field.
10405 * dispnew.c: Include nsterm.h when compiling under NS windowing.
10406 (init_display): Initialize Vinitial_window_system to "ns" when so
10407 compiled.
10408 * emacs.c: Include GSConfig.h when compiling under GNUstep.
10409 (display_arg): Use under NS.
10410 (main): Under NS, allocate autorelease pool and handle command line
10411 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
10412 (standard_args): Add NS-specific args.
10413 (shut_down_emacs): Shut down NS terminal if compiled under NS.
10414 * font.c (DEFAULT_ENCODING): New variable.
10415 (font_find_for_lface): Use it.
10416 (syms_of_font): Load syms_of_nsfont under NS.
10417 * font.h: Declare nsfont_driver when compiled under NS.
10418 * fontset.c: When compiling under NS, include nsterm.h.
10419 (fontset_from_font): Autoconstruct fontset under NS.
10420 * frame.c (various): Under NS, include nsterm.h, add Qns window system
10421 symbol, document and use it.
10422 (do_switch_frame): When for_deletion under Cocoa, add
10423 Fraise_frame(Qnil).
10424 (x_set_frame_parameters): Ensure font attribute changes are picked up.
10425 (x_get_arg): Allow "yes" and "no" as boolean values.
10426 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
10427 Qright under Cocoa.
10428 (focus-follows-mouse): Default to 0 under NS.
10429 * frame.h (enum output_method): Add output_ns.
10430 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
10431 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
10432 (FRAME_WINDOW_P): NS-specific definition.
10433 * fringe.c (max_used_fringe_bitmap): Make public.
10434 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
10435 (getloadavg): Use NeXT code under descendant OS's.
10436 * image.c (includes and header section, x_create_bitmap_from_data)
10437 (x_create_bitmap_from_file, free_bitmap_record, image_background)
10438 (image_background_transparent, x_clear_image_1)
10439 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
10440 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
10441 (x_to_xcolors, x_from_xcolors, x_disable_image)
10442 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
10443 other GUIs, including XPM support using code originally written for
10444 Carbon GUI.
10445 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
10446 using NS API.
10447 (image_ascent): Use font metrics macros instead of direct struct field
10448 access.
10449 * keyboard.c (includes): Add nsterm.h when compiling under NS.
10450 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
10451 Also, handle NS as GTK for menu bar purposes.
10452 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
10453 toolkit where they differ.
10454 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
10455 use cachelist, still needed under NS.
10456 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
10457 (struct widget_value): Define it here for menu.c.
10458 * keymap.c (includes): Include modifier internals.
10459 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
10460 NS.
10461 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
10462 support for preferring sequences using certain modifiers, specified by
10463 the FIRSTONLY argument.
10464 * lisp.h (hash_remove): Rename to avoid name clash when compiling
10465 under NS GNUstep implementation.
10466 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
10467 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
10468 * menu.c: Include nsterm.h under NS.
10469 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
10470 (free_menubar_widget_tree_value, update_submenu_strings)
10471 (find_and_call_menu_selection): Treat NS as X and NT.
10472 (find_and_return_menu_selection): New function, used for popup menus.
10473 * nsgui.h:
10474 * nsterm.h:
10475 * nsfns.m:
10476 * nsimage.m:
10477 * nsmenu.m:
10478 * nsselect.m:
10479 * nsterm.m: New files.
10480 * process.c (wait_reading_process_output): Under NS, call ns_select()
10481 instead of plain select().
10482 * syntax.c (char_quoted): Under NS, avoid a crash when called near
10483 beginning of buffer.
10484 * sysselect.h (init_process): Rename when compiling under Cocoa to
10485 avoid name conflict.
10486 * termhooks.h (display_info): Add ns_display_info to union.
10487 * terminal.c (Fterminal_live_p): Add ns to terminal types.
10488 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
10489 COCOA environment.
10490 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
10491 unexec() signature. (Note, this will dump, but the resulting file
10492 crashes; unexosx is used instead; keeping around for reference and
10493 possible aid in getting dump working under GNUstep.)
10494 * w32gui.h (button_type, widget_value): Remove definitions (now in
10495 keyboard.h).
10496 * window.c: Include nsterm.h when compiling under NS.
10497 * xdisp.c (includes): Include nsterm.h when compiling under NS.
10498 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
10499 other GUI windowing systems.
10500 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
10501 GTK.
10502 (x_consider_frame_title): Under NS, set icon type and frame
10503 modified-state indicator; use ns_set_name_as_filename() when using
10504 formatted title.
10505 (update_window_cursor): Make public when compiling under NS.
10506 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
10507 (hourglass_atimer, Vhourglass_delay
10508 * xfaces.c (header section, init_frame_faces, clear_font_table)
10509 (defined_color, unload_color, x_face_list_fonts)
10510 (prepare_face_for_display): Add NS support parallel to other GUIs.
10511 Emulate GCs like other non-X GUIs.
10512 (split_font_name): Don't lowercase font name under NS.
10513 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
10514 under NS.
10515 * s/darwin.h: Add support for compilation under NS.
10516
105172008-07-15 Jason Rumney <jasonr@gnu.org>
10518
10519 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
10520 (w32_show_hourglass): Rename from show_hourglass.
10521 (w32_hide_hourglass): Rename from hide_hourglass.
10522 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
10523 (Vhourglass_delay): Declare extern.
10524 (hourglass_started): Remove.
10525
10526 * xdisp.c (Vhourglass_delay): Remove static.
10527 (hourglass_started, start_hourglass, cancel_hourglass):
10528 Don't include these versions on WINDOWSNT.
10529
105302008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10531
10532 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
10533 variables (formerly in xfns.c).
10534 (show_hourglass, hide_hourglass): New prototypes (same).
10535 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
10536 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
10537 in xfns.c).
10538 (syms_of_xdisp): Declare/initialize display-hourglass,
10539 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
10540 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
10541 formerly in xfns.c.
10542 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
10543 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
10544 (start_hourglass, cancel_hourglass): Remove.
10545 (show_hourglass, hide_hourglass): Remove prototypes and static
10546 modifiers.
10547 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
10548 hourglass_atimer, hourglass_shown_p declaration/initialization.
10549 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
10550 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
10551 (start_hourglass, cancel_hourglass): Remove.
10552 (show_hourglass, hide_hourglass): Remove prototypes and static
10553 modifiers.
10554 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
10555 hourglass_atimer, hourglass_shown_p declaration/initialization.
10556 * w32fns.c (display_hourglass_p, Vhourglass_delay)
10557 (DEFAULT_HOURGLASS_DELAY): Remove.
10558 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
10559 hourglass_shown_p declaration/initialization.
10560
105612008-07-14 Jason Rumney <jasonr@gnu.org>
10562
10563 * w32fns.c (w32_get_arg): Remove wrapper function.
10564 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
10565 directly.
10566 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
10567
105682008-07-14 Kenichi Handa <handa@m17n.org>
10569
10570 * xfont.c (xfont_open): Add workaround for X's bug.
10571
105722008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
10573
10574 * fontset.c: Include <stdio.h> unconditionally.
10575
105762008-07-13 Michael Albinus <michael.albinus@gmx.de>
10577
10578 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
10579 for filtering.
10580
105812008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
10582
10583 * s/vms.h: Use __GNUC__ instead of _GNUC_.
10584
10585 * m/macppc.h:
10586 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
10587
10588 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
10589 (SPECIAL_EMACS_INT):
10590 * m/ia64.h (SPECIAL_EMACS_INT):
10591 * m/amdx86-64.h (SPECIAL_EMACS_INT):
10592 * s/gnu.h (NLIST_STRUCT):
10593 * s/aix4-2.h (X11R5_INHIBIT_I18N):
10594 * s/gnu-linux.h (LINUX):
10595 * s/msdos.h (HAVE_FACES):
10596 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
10597
10598 * systty.h:
10599 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
10600 anymore.
10601
106022008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
10603
10604 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
10605 always defined as int.
10606
10607 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
10608 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
10609 * s/gnu-linux.h (HAVE_WAIT_HEADER):
10610 * s/freebsd.h (HAVE_WAIT_HEADER):
10611 * s/bsd-common.h (HAVE_UNION_WAIT):
10612 * s/aix4-2.h (HAVE_WAIT_HEADER):
10613 * m/mips.h (HAVE_UNION_WAIT):
10614 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
10615 (COFF, static): Do not define, they are undefined later in the file.
10616
10617 * process.c (update_status): Don't use a union.
10618 (status_convert):
10619 (sigchld_handler): Use int instead of WAITTYPE.
10620
106212008-07-12 Chong Yidong <cyd@stupidchicken.com>
10622
10623 * indent.c (Fvertical_motion): Restore hscroll before moving to
10624 goal column.
10625
106262008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
10627
10628 * lisp.h: Remove left over code.
10629
106302008-07-11 Andreas Schwab <schwab@suse.de>
10631
10632 * lisp.h: Fix logic in last change.
10633
10634 * menu.h: New file.
10635 * menu.c: Include it.
10636 * xmenu.c: Likewise.
10637 * Makefile.in: Update dependencies.
10638
106392008-07-11 Kenichi Handa <handa@m17n.org>
10640
10641 * fontset.c (fontset_from_font): Cancel the previous change.
10642
106432008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
10644
10645 * lisp.h:
10646 * w32heap.c:
10647 * emacs.c:
10648 * alloc.c: Replace all references of NO_UNION_TYPE with
10649 USE_LISP_UNION_TYPE.
10650
10651 * m/xtensa.h (NO_UNION_TYPE):
10652 * m/vax.h (NO_UNION_TYPE):
10653 * m/template.h (NO_UNION_TYPE):
10654 * m/sparc.h (NO_UNION_TYPE):
10655 * m/mips.h (NO_UNION_TYPE):
10656 * m/macppc.h (NO_UNION_TYPE):
10657 * m/m68k.h (NO_UNION_TYPE):
10658 * m/iris4d.h (NO_UNION_TYPE):
10659 * m/intel386.h (NO_UNION_TYPE):
10660 * m/ibms390x.h (NO_UNION_TYPE):
10661 * m/ibms390.h (NO_UNION_TYPE):
10662 * m/ibmrs6000.h (NO_UNION_TYPE):
10663 * m/ia64.h (NO_UNION_TYPE):
10664 * m/hp800.h (NO_UNION_TYPE):
10665 * m/arm.h (NO_UNION_TYPE):
10666 * m/amdx86-64.h (NO_UNION_TYPE):
10667 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
10668 defining it the same.
10669
106702008-07-10 Chong Yidong <cyd@stupidchicken.com>
10671
10672 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
10673
106742008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
10675
10676 * fileio.c:
50426a04 10677 * sysdep.c:
aac0c6e3
MR
10678 * systty.h:
10679 * m/ibmrs6000.h:
10680 * m/iris4d.h:
10681 * s/aix4-2.h:
10682 * s/freebsd.h:
10683 * s/gnu-linux.h:
10684 * s/hpux10-20.h:
10685 * s/hpux11.h:
10686 * s/netbsd.h:
10687 * s/sol2-3.h:
10688 * s/sol2-4.h:
10689 * s/sol2.h:
10690 * s/usg5-4.h:
10691 * s/vms.h: Remove references to unused variables.
10692
106932008-07-10 Andreas Schwab <schwab@suse.de>
10694
10695 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
10696 pattern before matching the generic family.
10697
106982008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
10699
10700 * unexec.c:
10701 * s/vms.h:
10702 * s/usg5-4-2.h:
10703 * s/sol2-5.h:
10704 * s/freebsd.h:
10705 * s/darwin.h: Remove dead code.
10706
10707 * m/template.h:
10708 * m/sparc.h:
10709 * m/mips.h:
10710 * m/m68k.h:
10711 * m/iris4d.h:
10712 * m/intel386.h:
10713 * m/ibms390x.h:
10714 * m/ibms390.h:
10715 * m/ia64.h:
10716 * m/hp800.h:
10717 * m/arm.h:
10718 * m/amdx86-64.h: Remove dead code and references to unused
10719 and compiler defined symbols.
10720
10721 * unexmips.c:
10722 * unexelf.c: Remove references to desupported systems.
10723
10724 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
10725
10726 * m/powermac.h: Remove boilerplate comments.
10727 (NO_REMAP): Remove unused definition.
10728
10729 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
10730 define them.
10731
107322008-07-10 Kenichi Handa <handa@m17n.org>
10733
10734 * xfont.c (xfont_open): Log the reason of failure.
10735
107362008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
10737
10738 * fontset.c (fontset_get_font_group):
10739 * font.c (font_check_otf): Specify argument types.
10740
107412008-07-09 Kenichi Handa <handa@m17n.org>
10742
10743 * coding.c (detect_coding_utf_8): Set detect_info->found only when
10744 non-ASCII char is found.
10745
10746 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
10747 (reorder_font_vector): Change the arg preferred_family to font.
10748 Prefer the spec matching with font.
10749 (fontset_get_font_group): New function.
10750 (fontset_find_font): Change the format of an element of a realized
10751 fontset. Use fontset_get_font_group.
10752 (fontset_font): Try the current fontset, the default fontset, the
10753 fallbacks of the current fontset, and the fallbacks of the default
10754 fontset in this order.
10755 (face_for_char): Delete the shortcut to use the current font.
10756 (fontset_from_font): Don't set fonts for Latin in the fontset.
10757
10758 * font.h (font_make_object, font_match_p): Adjust prototypes.
10759
10760 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
10761
10762 * font.c (font_make_object): New arg entity and pixelsize.
10763 (font_check_otf_features, font_check_otf): New functions.
10764 (font_match_p): Check :lang, :script, and :otf properties.
10765
10766 * xfont.c (xfont_open): Adjust it for the change of
10767 font_make_object.
10768 (xfont_text_extents): Fix initial setting of metrics.
10769
10770 * ftfont.c (struct ftfont_info): New member index, delete member
10771 fc_charset_idx. Make the member order compatible with struct
10772 xftfont_info.
10773 (fc_charset_table): Change charset names to registry names.
10774 (ftfont_pattern_entity): Delete the args registry and
10775 fc_charset_idx. Change the value of :font-entity property
10776 to (FONTNAME . INDEX). Always set :registry property to
10777 `iso10646-1'.
10778 (struct ftfont_cache_data): New struct.
10779 (ftfont_lookup_cache): New arg for_face.
10780 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
10781 (ftfont_driver): Set the member otf_capability.
10782 (ftfont_get_charset): Adjust it for the change of
10783 fc_charset_table.
10784 (OTF_TAG_SYM): New macro.
10785 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
10786 for the change of fc_charset_table.
10787 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
10788 ftfont_pattern_entity. Add FC_INDEX to objset.
10789 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
10790 and ftfont_pattern_entity.
10791 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
10792 font_make_object, struct ftfont_info.
10793 (ftfont_has_char): Use ftfont_get_fc_charset.
10794 (ftfont_otf_features, ftfont_otf_capability): New functions.
10795 (ftfont_shape): Use ftfont_get_otf.
10796 (ftfont_text_extents): Fix initial setting of metrics.
10797
10798 * xftfont.c (struct xftfont_info): New member ft_size. Make the
10799 member order compatible with struct ftfont_info.
10800 (xftfont_open): Add FC_CHARSET to the pattern. Set
10801 xftfont_info->ft_size. Don't unlock the face. Check BDF
10802 properties if appropriate.
10803 (xftfont_close): Unlock the face.
10804 (xftfont_anchor_point, xftfont_shape): Deleted.
10805 (syms_of_xftfont): Don't set members anchor_point and shape of
10806 xftfont_driver.
10807
10808 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
10809 font_make_object.
10810
10811 * w32font.c (w32font_open): Adjust it for the change of
10812 font_make_object.
10813 (w32font_open_internal): Don't set properties of font_object here.
10814
108152008-07-08 Chong Yidong <cyd@stupidchicken.com>
10816
10817 * macfns.c (x_create_tip_frame):
10818 * w32fns.c (x_create_tip_frame):
10819 * xfns.c (x_create_tip_frame): Pass parameter argument to
10820 face-set-after-frame-default.
10821
10822 * xfaces.c (Finternal_merge_in_global_face): Save merged
10823 attributes for the default face back into the face vector.
10824
108252008-07-08 Andreas Schwab <schwab@suse.de>
10826
10827 * fontset.h: Declare fontset_from_font. Don't declare
10828 new_fontset_from_font and fontset_from_font_name.
10829 * xterm.c: Include "fontset.h".
10830 * Makefile.in (xterm.o): Update dependencies.
10831
108322008-07-08 Glenn Morris <rgm@gnu.org>
10833
10834 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
10835 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
10836
108372008-07-07 Chong Yidong <cyd@stupidchicken.com>
10838
10839 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
10840 (x_set_frame_parameters): Don't bind it.
10841
108422008-07-07 Juanma Barranquero <lekktu@gmail.com>
10843
10844 * w32fns.c (map_w32_filename): Declare extern.
10845
108462008-07-07 Jason Rumney <jasonr@gnu.org>
10847
10848 * w32term.c (WS_EX_LAYERED): Define if not already.
10849
108502008-07-06 Chong Yidong <cyd@stupidchicken.com>
10851
10852 * xfaces.c (set_font_frame_param): Don't try to set the font
10853 parameter if it is still unspecified in the lface.
10854
108552008-07-05 Chong Yidong <cyd@stupidchicken.com>
10856
10857 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
10858 face if it didn't already exist.
10859
10860 * xdisp.c (try_window_id): Give up if word-wrapping is on.
10861
108622008-07-05 Andreas Schwab <schwab@suse.de>
10863
10864 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
10865
108662008-07-05 Chong Yidong <cyd@stupidchicken.com>
10867
10868 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
10869 word-wrapping.
10870 (IT_DISPLAYING_WHITESPACE): New macro.
10871 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
10872 when word-wrapping. Simplify word-wrapping logic. Use correct
10873 pixel positions when saving copies of the iterator.
10874 (display_line): Use proper wrap point if the last character on a
10875 line was preceded by whitespace.
10876
108772008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
10878
10879 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
10880
108812008-07-04 Kenichi Handa <handa@m17n.org>
10882
10883 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
10884
10885 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
10886
108872008-07-02 Jason Rumney <jasonr@gnu.org>
10888
10889 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 10890 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
10891
10892 * xdisp.c (next_element_from_display_vector): Move assignment out
10893 of if statement.
10894
108952008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
10896
10897 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
10898
10899 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
10900 (syms_of_fileio): Initialize and export them.
10901 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
10902
10903 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
10904 (Fsystem_move_file_to_trash): New function.
10905 (syms_of_w32fns): Export it to lisp.
10906
109072008-07-01 Jason Rumney <jasonr@gnu.org>
10908
10909 * w32font.c (w32font_text_extents): Don't count overhang as part
10910 of width.
10911
109122008-06-30 Miles Bader <miles@gnu.org>
10913
10914 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
10915 Add `avoid_cursor_p' field.
10916
10917 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
10918 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
10919 (append_glyph, append_composite_glyph, produce_image_glyph)
10920 (append_stretch_glyph): Initialize avoid_cursor_p.
10921 (get_it_property): Rename from `get_line_height_property'.
10922 (x_produce_glyphs): Use get_it_property.
10923 (handle_line_prefix, push_display_prop): New functions.
10924 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
10925 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
10926 New variables.
10927 (syms_of_xdisp): Initialize them.
10928
109292008-06-30 Kenichi Handa <handa@m17n.org>
10930
10931 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
10932 XftDefaultSubstitute (they are called in XftFontMatch).
10933 (xftfont_open): Fix args to ftfont_font_format.
10934
10935 * ftfont.c (fc_charset_table): New member lang.
10936 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 10937 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
10938 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
10939 (ftfont_open): Fix args to ftfont_font_format.
10940 (ftfont_font_format): New arg filename.
10941
109422008-06-30 Chong Yidong <cyd@stupidchicken.com>
10943
10944 * xfaces.c (Finternal_merge_in_global_face): If default face was
10945 modified, realize it again. Update the font face attribute.
10946
109472008-06-29 Jason Rumney <jasonr@gnu.org>
10948
10949 * w32term.c (x_set_frame_alpha): Fix logic.
10950
109512008-06-29 Kenichi Handa <handa@m17n.org>
10952
10953 * fontset.c (Finternal_char_font): Return font-object instead of
10954 font-name.
10955
10956 * composite.c (get_composition_id): Fix the width calculation for TAB.
10957
109582008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
10959
10960 * indent.c (Fvertical_motion): Properly handle float column arg.
10961
109622008-06-28 Jason Rumney <jasonr@gnu.org>
10963
10964 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
10965 (pfnSetLayeredWindowAttributes): New function pointer.
10966 (w32_initialize): Initialize it when supported.
10967 (x_set_frame_alpha): New function.
10968
10969 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
10970 (w32_frame_parm_handlers): Set alpha handler.
10971
10972 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
10973
109742008-06-27 Jason Rumney <jasonr@gnu.org>
10975
10976 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
10977 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
10978 (w32_to_x_charset, x_to_w32_charset)
10979 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
10980 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
10981 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
10982 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
10983 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
10984 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
10985 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
10986 (Qw32_charset_unicode): Remove.
10987 (syms_of_w32fns): Update for above changes.
10988
10989 * w32font.c (w32_to_x_charset, x_to_w32_charset)
10990 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
10991 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
10992 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
10993 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
10994 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
10995 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
10996 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
10997 (syms_of_w32font): Update for above changes.
10998
109992008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
11000
11001 * s/usg5-4.h: Fix previous change: keep the correct branch of a
11002 removed #if.
11003 (USG_SHARED_LIBRARIES): Remove duplicate definition.
11004
110052008-06-26 Juanma Barranquero <lekktu@gmail.com>
4e2af782 11006 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
11007
11008 * makefile.w32-in (LOCAL_FLAGS):
11009 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
11010
11011 * sysdep.c (_spawnlp, _getpid):
11012 Declare with explicit _cdecl instead of _CRTAPI1.
11013
11014 * editfns.c (Fget_internal_run_time):
11015 Check for WINDOWSNT with #ifdef, not #if.
11016
110172008-06-26 Jason Rumney <jasonr@gnu.org>
11018
11019 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
11020
11021 * w32term.c (x_draw_glyph_string_foreground)
11022 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
11023 Use FONT_HANDLE macro.
11024 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
11025
11026 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
11027 (uniscribe_encode_char): Use FONT_HANDLE macro.
11028
11029 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
11030 (w32font_text_extents): Use precast w32_font.
11031 (w32font_close): Free cached metrics.
11032 (w32font_open_internal): Allocate space for name on stack.
11033
110342008-06-26 Chong Yidong <cyd@stupidchicken.com>
11035
11036 * xdisp.c (extend_face_to_end_of_line): Fix last change.
11037
110382008-06-26 Jason Rumney <jasonr@gnu.org>
11039
11040 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
11041 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
11042
110432008-06-26 Juanma Barranquero <lekktu@gmail.com>
11044
11045 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
11046
110472008-06-26 Jason Rumney <jasonr@gnu.org>
11048
11049 * w32bdf.c, w32bdf.h: Remove obsolete files.
11050
11051 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
11052
11053 * w32gui.h: Don't include w32bdf.h.
11054 (XCharStruct, enum w32_char_font_type, W32FontStruct):
11055 Remove obsolete font support.
11056
11057 * w32font.h (struct w32font_info): Remove compat_w32_font.
11058 Add hfont member.
11059 (FONT_COMPAT): Remove obsolete macro.
11060
11061 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
11062 (w32font_encode_char, w32font_text_extents): Use new hfont member.
11063 (w32font_open_internal): Remove compat code. Set new hfont member.
11064 (Fx_select_font): Use new hfont member.
11065
11066 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
11067 (uniscribe_encode_char): Use new hfont member.
11068
11069 * w32term.c (x_draw_glyph_string_foreground)
11070 (x_draw_composite_glyph_string_foreground): Use new hfont member.
11071 (x_draw_glyph_string): Use metrics in w32font_info.
11072
110732008-06-26 Kenichi Handa <handa@m17n.org>
11074
11075 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
11076
110772008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
11078
11079 * unexnext.c:
11080 * m/ews4800.h:
11081 * m/hp9000s300.h:
11082 * m/ibm370aix.h:
11083 * m/mips-siemens.h:
11084 * m/ncr386.h:
11085 * m/next.h:
11086 * m/pmax.h:
11087 * m/powerpcle.h:
11088 * m/tandem-s2.h:
11089 * s/386bsd.h:
11090 * s/bsd386.h:
11091 * s/bsd4-1.h:
11092 * s/bsd4-2.h:
11093 * s/bsdos2-1.h:
11094 * s/bsdos2.h:
11095 * s/bsdos3.h:
11096 * s/bsdos4.h:
11097 * s/nextstep.h:
11098 * s/ultrix4-3.h:
11099 * s/usg5-0.h:
11100 * s/usg5-2-2.h:
11101 * s/usg5-2.h:
11102 * s/usg5-4-3.h:
11103 * s/ux4800.h:
11104 * s/uxpds.h:
11105 * s/uxpv.h: Remove support for obsolete systems.
11106 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 11107 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
11108 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
11109 Remove, insert contents in s/aix4-2.h.
11110 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
11111 * s/bsd4-3.h: Rename to ...
11112 * s/bsd-common.h: ... this.
11113 * data.c:
11114 * doc.c:
11115 * ecrt0.c:
11116 * emacs.c:
11117 * fileio.c:
11118 * floatfns.c:
11119 * keyboard.c:
11120 * mem-limits.h:
11121 * print.c:
11122 * process.c:
11123 * sysdep.c:
11124 * syssignal.h:
11125 * systty.h:
11126 * syswait.h:
11127 * term.c:
11128 * unexec.c:
11129 * unexelf.c:
11130 * unexhp9k800.c:
11131 * m/hp800.h:
11132 * m/ibmrs6000.h:
11133 * m/mips.h:
11134 * m/vax.h:
11135 * s/darwin.h:
11136 * s/freebsd.h:
11137 * s/gnu.h:
11138 * s/ms-w32.h:
11139 * s/msdos.h:
11140 * s/netbsd.h:
11141 * s/template.h: Remove references to obsolete variables.
11142
11143 * Makefile.in: Add dependencies for all unexec files.
11144 (admindir): Remove unused variable.
11145 (UNEXEC_SRC): Remove references.
11146
111472008-06-25 Chong Yidong <cyd@stupidchicken.com>
11148
11149 * xfns.c (x_default_font_parameter): If Xft is available, first
11150 try Monospace-12 for the default font.
11151
111522008-06-25 Jason Rumney <jasonr@gnu.org>
11153
11154 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
11155
111562008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
11157
11158 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
11159
11160 * buffer.c (syms_of_buffer): Remove default-word-wrap.
11161
111622008-06-25 Juanma Barranquero <lekktu@gmail.com>
11163
11164 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
11165 <scroll-conservatively>: Fix typo in docstring.
11166
11167 * xselect.c (Fx_send_client_event): Doc fix.
11168
111692008-06-25 Kenichi Handa <handa@m17n.org>
11170
11171 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
11172
11173 * font.c (font_parse_fcname): Remove unused variables.
11174 (font_sort_entites): Delete the arg SPEC. Caller changed.
11175 Fix for the case of ! best_only.
11176 (font_delete_unmatched): Check DPI and AVGWIDTH too.
11177
11178 * lisp.h (Fstring_to_unibyte): EXFUN it.
11179
11180 * character.h (str_to_unibyte): Extern it.
11181
11182 * character.c (str_to_unibyte): New function.
11183
11184 * fns.c (Fstring_to_unibyte): New function.
11185 (syms_of_fns): Defsubr it.
11186
111872008-06-24 Kenichi Handa <handa@m17n.org>
11188
11189 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
11190 DPI too.
11191 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
11192
111932008-06-24 Andreas Schwab <schwab@suse.de>
11194
11195 * Makefile.in (${lispsource}loaddefs.el): Rename from
11196 ../lisp/loaddefs.el.
11197 (bootstrap-clean): Do what distclean does but don't remove
11198 Makefile.
11199 (distclean): Depend on bootstrap-clean and remove Makefile.
11200
112012008-06-24 Chong Yidong <cyd@stupidchicken.com>
11202
11203 * buffer.h (struct buffer): New member word_wrap.
11204
11205 * buffer.c (syms_of_buffer): New variables default-word-wrap and
11206 word-wrap.
11207 (init_buffer_once): Initialize them.
11208
11209 * dispextern.h (struct it): Replace bool truncate_lines_p with a
11210 line_wrap enum possessing three possible values.
11211
11212 * termopts.h: Replace truncate_partial_width_windows with
11213 Vtruncate_partial_width_windows.
11214
11215 * dispnew.c (direct_output_for_insert): Avoid direct output when
11216 inserting a space with word wrap on.
11217
11218 * indent.c (compute_motion): Obey integer values of
11219 truncate-partial-width-windows.
11220
11221 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
11222 replacing truncate_partial_width_windows.
11223 (init_iterator): If Vtruncate_partial_width_windows is an integer,
11224 truncate only if the window width is below that integer.
11225 (start_display, resize_mini_window, produce_stretch_glyph)
11226 (display_string, move_it_in_display_line_to): Use line_wrap.
11227 (back_to_previous_visible_line_start, reseat_1): Reset
11228 string_from_display_prop_p.
11229 (display_line): Extend default face to end of line when wrapping.
11230
112312008-06-24 Kim F. Storm <storm@cua.dk>
11232
11233 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
11234 to wrap continued lines at word boundaries.
11235
112362008-06-24 Jason Rumney <jasonr@gnu.org>
11237
11238 * font.c (Ffont_face_attributes): Multiply pixel size before point
11239 conversion to avoid multiplying rounding error.
11240
112412008-06-23 Jason Rumney <jasonr@gnu.org>
11242
11243 * w32term.c (x_draw_glyph_string_background)
11244 (x_draw_glyph_string): Remove old bdf font code.
11245
11246 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
11247
112482008-06-22 Kenichi Handa <handa@m17n.org>
11249
11250 * font.c (font_find_for_lface): Try the adstyle specified in
11251 the property of LFACE_FONT of LFACE (if any).
11252
112532008-06-21 Seiji Zenitani <zenitani@mac.com>
4e2af782 11254 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
11255
11256 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
11257
112582008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
11259
11260 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
11261 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
11262 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
11263 (witness-emacs): Remove.
11264 (lisp, shortlisp): Move loaddefs.el earlier.
11265 (mostlyclean): Forget about witness-emacs.
11266
112672008-06-22 Glenn Morris <rgm@gnu.org>
11268
11269 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
11270 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
11271
112722008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
11273
11274 * Makefile.in (PRECOMP): Remove.
11275 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
11276 (witness-emacs): Run `compile-first'.
11277 (.el.elc): Use the new compile-onefile target.
11278
112792008-06-21 Kenichi Handa <handa@m17n.org>
11280
11281 * xftfont.c (xftfont_open): Handle QCembolden only when
11282 FC_EMBOLDEN is defined.
11283
112842008-06-21 Andreas Schwab <schwab@suse.de>
11285
11286 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
11287 (.el.elc): Likewise.
11288
112892008-06-21 Miles Bader <miles@gnu.org>
11290
11291 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
11292 build dir, not the lisp source dir.
11293
112942008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
11295
11296 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
11297 (bootstrapclean): Remove.
11298 (.el.elc): New rule.
11299 (PRECOMP): New var.
11300 (../lisp/subdirs.el): Remove.
11301 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
11302 (witness-emacs): New target.
11303 (mostlyclean): Remove witness-emacs as well.
11304 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
11305 Add witness-emacs dependency.
11306
113072008-06-20 Chong Yidong <cyd@stupidchicken.com>
11308
11309 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
11310 defined by the font.
11311
113122008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11313
11314 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
11315 (bootstrap-clean): New target that keeps TAGS around.
11316 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
11317 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
11318
113192008-06-20 Jason Rumney <jasonr@gnu.org>
11320
11321 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
11322 Remove obsolete font code.
11323
11324 * w32font.c (font_matches_spec): Use csb bitfield from font signature
11325 to determine language support.
11326
113272008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11328
11329 * sysdep.c (cfsetspeed): New fun extracted from the code.
11330 (cfmakeraw): Move before first use.
11331
113322008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
11333
11334 * sysdep.c (cfmakeraw): Provide fallback implementation.
11335 (serial_configure): Provide fallback implementation of cfsetspeed.
11336
113372008-06-20 Kenichi Handa <handa@m17n.org>
11338
11339 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
11340 the pattern.
11341
11342 * fontset.c (fontset_from_font): Copy font_spec before changing
11343 the elements.
11344
11345 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
11346
113472008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11348
11349 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
11350 for explicit `font' parameters.
11351
11352 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
11353
113542008-06-19 Kenichi Handa <handa@m17n.org>
11355
11356 * frame.c: Include <ctype.h>.
11357 (x_set_font_backend): Allow spacing characters in the X resource
11358 for FontBackend.
11359
113602008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
11361
11362 * w32fns.c, xfns.c (Qfont_param): New var.
11363 (syms_of_w32fns): Initialize it.
11364 (x_default_font_parameter): Record explicit `font' into
11365 `font-parameter'.
11366
113672008-06-18 Kenichi Handa <handa@m17n.org>
11368
11369 * font.c (font_parse_xlfd): Fix previous change.
11370 (font_parse_fcname): Don't use :fc-unknown-spec.
11371 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
11372 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
11373 (font_add_log): Prepend the driver name to the resulting fonts.
11374
11375 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
11376 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
11377 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
11378
11379 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
11380 (QCembolden): New variables.
11381 (syms_of_xftfont): DEFSYM them.
11382 (xftfont_open): Call XftFontMatch. Don't trust the result of
11383 XftTextExtents8 if the pixel_size is less than 5.
11384
113852008-06-18 Andreas Schwab <schwab@suse.de>
11386
11387 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
11388 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
11389
113902008-06-18 Jason Rumney <jasonr@gnu.org>
11391
11392 * w32font.c (w32font_list, w32font_match): Add logging.
11393
11394 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
11395
113962008-06-17 Chong Yidong <cyd@stupidchicken.com>
11397
11398 * font.c (font_parse_fcname): Store divider characters for
11399 unknown-spec list. For known key symbols, intern using correct
11400 symbol name.
11401
114022008-06-17 Kenichi Handa <handa@m17n.org>
11403
11404 * xfaces.c (realize_default_face): If the frame is not on window
11405 system, set the fontset of face to nil.
11406
114072008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
11408
11409 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
11410
114112008-06-16 Juanma Barranquero <lekktu@gmail.com>
11412
11413 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
11414 (build_font_name_from_vector): Delete externs.
11415
11416 * xfaces.c (struct font_name): Don't declare.
11417
114182008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
11419
11420 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
11421
114222008-06-16 Chong Yidong <cyd@stupidchicken.com>
11423
11424 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
11425
114262008-06-16 Juanma Barranquero <lekktu@gmail.com>
11427
11428 * font.c (Ffont_spec): Fix usage in docstring.
11429 (Ffont_face_attributes): Doc fix.
11430
114312008-06-16 Andreas Schwab <schwab@suse.de>
11432
11433 * font.c (Ffont_face_attributes): Fix definition.
11434
114352008-06-16 Jason Rumney <jasonr@gnu.org>
11436
11437 * font.h (font_style_symbolic_from_value): Remove.
11438
11439 * font.c (font_style_symbolic_from_value): Remove.
11440 (font_style_symbolic): Revert to pre 2008-06-13 version.
11441
11442 * w32font.c (w32_to_fc_weight): New function.
11443 (w32font_full_name, logfont_to_fcname): Use it.
11444
114452008-06-16 Kenichi Handa <handa@m17n.org>
11446
11447 * font.c (font_check_object): Delete it.
11448 (font_clear_cache): Check if a font-object is alive.
11449 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
11450 font-object to nil.
11451 (font_close_object): Don't check FONT_CLOSE_OBJECT.
11452 (font_at): Don't call font_check_object.
11453 (Ffont_get): Return a symbol for :weight, :slant, and :width.
11454
114552008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
11456
11457 * puresize.h (BASE_PURESIZE): Increase to 1230000.
11458
114592008-06-16 Chong Yidong <cyd@stupidchicken.com>
11460
11461 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
11462
114632008-06-15 Chong Yidong <cyd@stupidchicken.com>
11464
11465 * font.c (font_parse_fcname): Only one decimal point.
11466 (font_unparse_fcname): Handle data in family and foundry indices
11467 as symbols, not strings.
11468 (font_unparse_gtkname, Ffont_face_attributes): New functions.
11469
11470 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
11471
11472 * font.h (font_unparse_gtkname): Add prototype.
11473
114742008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
11475
11476 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
11477
114782008-06-15 Andreas Schwab <schwab@suse.de>
11479
11480 * font.c (font_update_drivers): Fix crash when no drivers match.
11481
114822008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
11483
11484 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
11485 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
11486
114872008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
11488
11489 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
11490
114912008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
11492
11493 * process.c (Fserial_process_configure, Fprocess_send_eof):
11494 Use EQ to compare Lisp_Objects.
11495
114962008-06-13 Jason Rumney <jasonr@gnu.org>
11497
11498 * w32fns.c (Fw32_select_font): Remove old font API function.
11499
11500 * w32font.c (logfont_to_fcname): New function.
11501 (Fx_select_font): New font dialog function compatible with
11502 GTK/fontconfig version.
11503
11504 * font.c (font_style_symbolic_from_value): New function.
11505 (font_style_symbolic): Use it.
11506
11507 * font.h (font_style_symbolic_from_value): Declare new function.
11508
115092008-06-13 Juanma Barranquero <lekktu@gmail.com>
11510
11511 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
11512 <font-width-table>: Fix typos in docstrings.
11513
115142008-06-13 Daniel Engeler <engeler@gmail.com>
11515
11516 These changes add serial port access.
11517 * process.c: Add HAVE_SERIAL.
11518 (Fdelete_process, Fprocess_status, Fset_process_buffer)
11519 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
11520 (list_processes_1, select_wrapper, Fstop_process)
11521 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
11522 (status_notify): Modify to handle serial processes.
11523 [HAVE_SERIAL] (Fserial_process_configure)
11524 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
11525 New functions.
11526 * process.h (struct Lisp_Process): Add `type'.
11527 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
11528 New functions.
11529 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
11530 serial ports.
b71ac3dd 11531 (serial_open, serial_configure): New functions.
aac0c6e3
MR
11532 * w32.h: Add FILE_SERIAL.
11533 (struct _child_process): Add ovl_read, ovl_write.
11534
115352008-06-13 Kenichi Handa <handa@m17n.org>
11536
11537 * dispextern.h (enum lface_attribute_index): New member
11538 LFACE_FOUNDRY_INDEX.
11539
11540 * font.c (font_score): Delete arg alternate_families. Check only
11541 weight, slant, width, and size. Ignore the difference of alias
11542 style symbols.
11543 (font_sort_entites): Adjust for the above change. Reflect the
11544 order of font-driver to scores.
11545 (font_list_entities): Don't check alternate_familes here.
11546 (font_clear_prop): Handle foundry.
11547 (font_update_lface): Don't parse "foundry-family" form here.
11548 Handle FONT_FOUNDRY_INDEX.
11549 (font_find_for_lface): Likewise. Handle alternate families here.
11550 If registry is nil, try iso8859-1 and ascii-0.
11551 (font_open_for_lface): Pay attention to size in ENTITY.
11552 (font_open_by_name): Simplify by calling font_load_for_lface.
11553 (free_font_driver_list): Delete it.
11554 (font_update_drivers): Preserve the order of backends.
11555 (syms_of_font): Setting of sort_shift_bits adjusted for the change
11556 of font_score and font_sort_entites.
11557 (font_update_sort_order): Likewise.
11558
11559 * xfaces.c (LFACE_FOUNDRY): New macro.
11560 (check_lface_attrs): Check foundry.
11561 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
11562 (merge_face_vectors): Check foundry.
11563 (merge_face_ref): Likewise.
11564 (Finternal_set_lisp_face_attribute): Likewise.
11565 (x_update_menu_appearance): Likewise.
11566 (Finternal_get_lisp_face_attribute): Likewise.
11567 (lface_hash): Likewise.
11568 (lface_same_font_attributes_p): Likewise.
11569 (x_supports_face_attributes_p): Likewise.
11570 (tty_supports_face_attributes_p): Likewise.
11571 (Finternal_set_alternative_font_family_alist): Intern strings.
11572 (Finternal_set_alternative_font_registry_alist): Downcase strings.
11573 (realize_default_face): Set LFACE_FOUNDRY (lface).
11574
11575 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
11576 font-driver at first.
11577
11578 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
11579
115802008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
11581
11582 * lread.c (Fload): Use xfree, not free on saved_doc_string.
11583
115842008-06-12 Jim Meyering <meyering@redhat.com>
11585
11586 Make unexec_free handle NULL the same way free does.
11587 * unexmacosx.c (unexec_free): Ignore a NULL argument.
11588
115892008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
11590
11591 * character.h (CHAR_TO_BYTE_SAFE): New macro.
11592 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
11593 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
11594 (WEAK_ALIAS): Simplify.
11595 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
11596 when searching a unibyte buffer.
11597
115982008-06-12 Chong Yidong <cyd@stupidchicken.com>
11599
11600 * xfns.c (Fx_select_font): Rename from x-font-dialog.
11601
116022008-06-12 Juanma Barranquero <lekktu@gmail.com>
11603
11604 * w32font.c: Include ctype.h.
11605
116062008-06-11 Jason Rumney <jasonr@gnu.org>
11607
11608 * w32font.c (w32font_encode_char): Detect missing glyphs that are
11609 misreported as space.
11610 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
11611 as aliases for registry iso10646-1.
11612
116132008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
11614
11615 * buffer.c (clone_per_buffer_values): Skip `name'.
11616
116172008-06-11 Chong Yidong <cyd@stupidchicken.com>
11618
11619 * font.c (font_parse_fcname): Fix last change; accept decimal
11620 points in font size.
11621
116222008-06-10 Jason Rumney <jasonr@gnu.org>
11623
11624 * w32uniscribe.c (add_opentype_font_name_to_list):
11625 Skip non unicode fonts.
11626
116272008-06-10 Chong Yidong <cyd@stupidchicken.com>
11628
11629 * xfns.c (Fx_font_dialog): New function.
11630
11631 * gtkutil.c (xg_dialog_response_cb): Rename from
11632 xg_file_response_callback.
11633 (pop_down_dialog): Rename from pop_down_file_dialog.
11634 (xg_get_file_name): Callers changed.
11635 (xg_get_font_name): New function.
11636
11637 * gtkutil.h (xg_get_font_name): Insert prototype.
11638
116392008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
11640
11641 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
11642 x_underline_minimum_display_offset.
11643 (syms_of_xdisp): Declare it here rather than in xterm.c.
11644 * dispextern.h (underline_minimum_offset): Declare it.
11645 * w32term.c (x_draw_glyph_string): Use it.
11646 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
11647 (syms_of_xterm): Don't declare it any more.
11648 (x_draw_glyph_string): Adjust to the new name.
11649
8719abec 116502008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
11651
11652 * xterm.c (x_underline_minimum_display_offset): New var.
11653 (x_draw_glyph_string): Use it.
11654 (syms_of_xterm): Declare it.
11655
116562008-06-10 Chong Yidong <cyd@stupidchicken.com>
11657
11658 * font.c (font_parse_fcname): Accept GTK-style font names too.
11659
116602008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
11661
11662 * dired.c (file_name_completion): Don't return t if the match is exact
11663 but with different capitalization.
11664 * minibuf.c (Ftry_completion): Simplify.
11665
11666 * window.c (Vwindow_point_insertion_type): New var.
11667 (set_window_buffer): Use it.
11668 (syms_of_window): Init and export it to Lisp.
11669
116702008-06-10 Kenichi Handa <handa@m17n.org>
11671
11672 * font.h (font_intern_prop): Prototype adjusted.
11673
11674 * font.c (font_intern_prop): New arg force_symbol.
11675 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
11676 Adjust for the change of font_intern_prop.
11677
11678 * ftfont.c (ftfont_pattern_entity):
11679 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
11680 (w32_registry):
11681 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
11682 the change of font_intern_prop.
11683
116842008-06-09 Juanma Barranquero <lekktu@gmail.com>
11685
11686 * w32menu.c (digest_single_submenu): Declare extern.
11687
116882008-06-09 Jason Rumney <jasonr@gnu.org>
11689
11690 * w32term.c (x_make_frame_visible): Use alternate restore flags.
11691
11692 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
11693 (parse_single_submenu): Remove.
11694 (digest_single_submenu): Remove.
11695 (syms_of_w32menu): Don't initialise variables that have moved
11696 to menu.c.
11697 (set_frame_menubar): Sync with version in xmenu.c.
11698 (w32_menu_show): Sync with xmenu_show in xmenu.c.
11699
11700 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
11701 Make static again.
11702
117032008-06-09 Jason Rumney <jasonr@gnu.org>
11704
11705 Changes to w32 files related to the move of common menu code
11706 to menu.c on 2008-06-08 by Chong Yidong.
11707
11708 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
11709 defs to w32gui.h.
11710 (single_keymap_panes, push_menu_item, push_menu_pane):
11711 Make globally visible.
11712
11713 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
11714 (local_free, malloc_widget_value, free_widget_value)
11715 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
11716 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
11717 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
11718 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
11719 (menu_items, menu_items_allocated, menu_items_used)
11720 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
11721 (init_menu_items, finish_menu_items, discard_menu_items)
11722 (grow_menu_items, push_submenu_start, push_submenu_end)
11723 (push_left_right_boundary, push_menu_pane, push_menu_item)
11724 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
11725 (free_menubar_widget_tree_value, parse_single_submenu)
11726 (update_submenu_strings): Remove functions.
11727 (xmalloc_widget_value): Remove and declare extern.
11728
11729 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
11730 (OBJ1): Build it.
11731
11732 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
11733 (local_heap, local_alloc, local_free, malloc_widget_value)
11734 (free_widget_value): Define here.
11735
117362008-06-09 Kenichi Handa <handa@m17n.org>
11737
11738 * font.h (Qascii_0): Extern it.
11739
11740 * font.c (Qascii_0): New variable.
11741 (syms_of_font): DEFSYM it.
11742 (font_open_by_name): If the registry "iso8859-1" fails, try also
11743 "ascii-0".
11744
11745 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
11746
117472008-06-08 Kenichi Handa <handa@m17n.org>
11748
11749 * .gdbinit (xfont): New command.
11750
117512008-06-08 Andreas Schwab <schwab@suse.de>
11752
11753 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
11754 * Makefile.in (menu.o): Update dependencies.
11755
11756 * Makefile.in (obj): Always add menu.o.
11757 * emacs.c (main): Always call syms_of_menu.
11758 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
11759
117602008-06-08 Chong Yidong <cyd@stupidchicken.com>
11761
11762 * Makefile.in: Compile menu.c.
11763
11764 * lisp.h: Declare syms_of_menu.
11765
11766 * emacs.c (main): Call syms_of_menu.
11767
11768 * keyboard.h: Relocate platform-independent menu definitions from
11769 xmenu.c.
11770
11771 * menu.c: New file. Relocate platform-independent menu
11772 definitions from xmenu.c. Suggested by Adrian Robert.
11773
11774 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 11775 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
11776 (menu_items_used, menu_items_n_panes)
11777 (menu_items_submenu_depth): Move to keyboard.h.
11778 (init_menu_items, finish_menu_items, unuse_menu_items)
11779 (discard_menu_items, restore_menu_items, save_menu_items)
11780 (grow_menu_items, push_submenu_start, push_submenu_end)
11781 (push_left_right_boundary, push_menu_pane, push_menu_item)
11782 (keymap_panes, single_keymap_panes, single_menu_item)
11783 (list_of_panes, list_of_items, find_and_call_menu_selection)
11784 (xmalloc_widget_value, free_menubar_widget_value_tree)
11785 (parse_single_submenu, digest_single_submenu)
11786 (update_submenu_strings): Move to menu.c.
11787
117882008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
11789
11790 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
11791
117922008-06-06 Miles Bader <miles@gnu.org>
11793
11794 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
11795 face, not frame default.
11796
117972008-06-05 Martin Rudalics <rudalics@gmx.at>
11798
11799 * window.c (pop_up_windows, pop_up_frames)
11800 (display_buffer_reuse_frames, Vpop_up_frame_function)
11801 (Vdisplay_buffer_function, Veven_window_heights)
11802 (Vspecial_display_buffer_names, Vspecial_display_regexps)
11803 (Vspecial_display_function, Vsame_window_buffer_names)
11804 (Vsame_window_regexps, split_height_threshold)
11805 (Vsplit_window_preferred_function): Move those vars to window.el.
11806 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
11807 (Fdisplay_buffer): Move those functions to window.el.
11808 (syms_of_window): Remove corresponding declarations.
11809 (display_buffer): New function.
11810 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
11811 * dispnew.c (Flast_nonminibuf_frame): New function.
11812 * buffer.c (Fpop_to_buffer): Move to window.el.
11813
118142008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
11815
11816 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
11817
118182008-06-05 Kenichi Handa <handa@m17n.org>
11819
11820 * coding.c (detect_coding): Fix previous change.
11821 (detect_coding_system): Likewise.
11822
118232008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
11824
11825 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
11826
11827 * keymap.c (Vminibuffer_local_filename_must_match_map):
11828 Rename from Vminibuffer_local_must_match_filename_map.
11829 (syms_of_keymap):
11830 * minibuf.c (Fcompleting_read): Adjust accordingly.
11831 * commands.h: Rename declaration as well.
11832
118332008-06-05 Kenichi Handa <handa@m17n.org>
11834
11835 * font.c (Ffont_spec): Don't use font_parse_family_registry for
11836 family name.
11837 (Ffont_put): Likewise.
11838
11839 * fontset.c (fontset_find_font): Call font_open_for_lface with the
11840 current font-spec.
11841
11842 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
11843 is unspecified.
11844
11845 * xfaces.c (realize_x_face): If the font-related face attributes
11846 are the same as those of default face, realize a new fontset from
11847 default->fontset.
11848 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
11849
118502008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
11851
11852 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
11853 (move_it_in_display_line): New wrapper.
11854
11855 * window.c (window_scroll_pixel_based_preserve_x)
11856 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
11857 (window_scroll_pixel_based, window_scroll_line_based):
11858 Use them to preserve column positions.
11859 (syms_of_window): Initialize them.
11860
11861 * indent.c (Fvertical_motion): Extend first arg to allow passing an
11862 (HPOS . VPOS) pair.
11863
11864 * dispextern.h (move_it_in_display_line): Declare.
11865
118662008-06-05 Juanma Barranquero <lekktu@gmail.com>
11867
11868 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
11869 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
11870 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
11871
118722008-06-04 Juanma Barranquero <lekktu@gmail.com>
11873
11874 * window.c (Fset_window_parameter): Doc fix.
11875 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
11876
118772008-06-04 Joakim Verona <joakim@verona.se>
11878
11879 * window.h (struct window): Add new member window_parameters.
11880
11881 * window.c (Fwindow_parameters, Fwindow_parameter)
11882 (Fset_window_parameter): New defuns.
11883 (syms_of_window): Defsubr the new defuns.
11884 (make_window): Initialize window_parameters to nil.
11885
118862008-06-04 John Paul Wallington <jpw@pobox.com>
11887
11888 * eval.c (Fdefmacro): Doc fix.
11889
118902008-06-04 Kenichi Handa <handa@m17n.org>
11891
11892 * coding.c (detect_coding): Fix handling of coding->head_ascii.
11893 Be sure to call setup_coding_system when we find a proper coding system.
11894 (detect_coding_system): Fix handling of coding->head_ascii.
11895
118962008-06-03 Andreas Schwab <schwab@suse.de>
11897
11898 * font.c (font_prop_validate_spacing): Fix last change.
11899
119002008-06-03 Kenichi Handa <handa@m17n.org>
11901
11902 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
11903 (font_parse_fcname): Fix handling of unknown key.
11904
11905 * xfont.c (xfont_list): Try an alias.
11906
11907 * charset.c (char_charset): Return NULL if the arg charset_list is
11908 specified and C doesn't belong to any of them.
11909
119102008-06-02 Chip Coldwell <coldwell@redhat.com>
11911
11912 * font.c (font_pixel_size): Don't take cdr of an integer.
11913
119142008-06-02 Jim Meyering <meyering@redhat.com>
11915
11916 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
11917 * alloc.c (xfree): Return right away for a NULL arg.
11918 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
11919 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
11920 * mac.c (create_apple_event_from_event_ref): Likewise.
11921 (create_apple_event_from_drag_ref, cfstring_create_normalized):
11922 Likewise.
11923 * doprnt.c (doprnt1): Likewise.
11924 * frame.c (frame): Likewise.
11925 * keyboard.c (wipe_kboard): Likewise.
11926 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
11927 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
11928 * term.c (tty_default_color_capabilities, maybe_fatal)
11929 (delete_tty): Likewise.
11930 * w16select.c (string): Likewise.
11931 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
11932 * w32bdf.c (w32_free_bdf_font): Likewise.
11933 * w32fns.c (w32_unload_font): Likewise.
11934 * w32font.c (w32font_close): Likewise.
11935 * window.c (size_window): Likewise.
11936 * xselect.c (receive_incremental_selection): Likewise.
11937 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
11938 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
11939 * w32.c (stat): Likewise.
11940
11941 Remove useless if-before-free tests.
11942 * editfns.c (Fset_time_zone_rule): Likewise.
11943 * lread.c (nosuffix): Likewise.
11944 * ralloc.c (get_bloc): Likewise.
11945 * regex.c (reg_free): Likewise.
11946 * xftfont.c (xftfont_open, xftfont_close): Likewise.
11947 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
11948 * xsmfns.c (smc_save_yourself_CB): Likewise.
11949
119502008-06-02 Kenichi Handa <handa@m17n.org>
11951
11952 * font.c (font_find_for_lface): Handle float font size.
11953 (font_open_for_lface): Likewise.
11954
11955 * xfaces.c (x_supports_face_attributes_p): Check face->font before
11956 comparing the properties.
11957
119582008-06-01 Jason Rumney <jasonr@gnu.org>
11959
11960 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
11961 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
11962 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
11963 Don't add empty script list.
11964 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
11965
119662008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
11967
11968 * Makefile.in (dot, dotdot): Remove, update users.
11969 ".." has been used elsewhere in the file for a long time.
11970 (LIBXT_STATIC): Remove conditional based on unused variable.
11971
119722008-06-01 Miles Bader <miles@gnu.org>
11973
11974 * xfaces.c (Vface_remapping_alist): New variable.
11975 (syms_of_xfaces): Initialize it.
11976 (enum named_merge_point_kind): New type.
11977 (struct named_merge_point): Add `named_merge_point_kind' field.
11978 (push_named_merge_point): Make cycle detection respect different
11979 named-merge-point kinds.
11980 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
11981 Remove face-name alias resolution.
11982 (lface_from_face_name): New definition using
11983 `lface_from_face_name_no_resolve'.
11984 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
11985 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
11986 (get_lface_attributes): New definition that layers face-remapping on
11987 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
11988 (lookup_basic_face): New function.
11989 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
11990 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
11991 `get_lface_attributes'.
11992 (face_at_buffer_position): Use `lookup_basic_face' to lookup
11993 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
11994 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
11995
11996 * xdisp.c (init_iterator): Pass base_face_id through
11997 `lookup_basic_face' when we actually use it as a face-id.
11998 (handle_single_display_prop): Use `lookup_basic_face' to lookup
11999 DEFAULT_FACE_ID.
12000
12001 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
12002 lookup the initial face-id.
12003
12004 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
12005
120062008-06-01 Juanma Barranquero <lekktu@gmail.com>
12007
12008 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
12009 (Fremove_text_properties): Fix typos in docstrings.
12010
120112008-05-31 Kenichi Handa <handa@m17n.org>
12012
12013 * font.c (font_list_entities): Fix the car part of data to be
12014 stored in the cache.
12015
12016 * ftfont.c (ftfont_font_format): Don't use strcasestr.
12017
120182008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
12019
12020 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
12021 Add a `test' argument so another predicate than `equal' can be used.
12022 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
12023 (map_char_table): Remove unused vars `c' and `i'.
12024 * lisp.h (Foptimize_char_table): Adjust declaration.
12025 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
12026
120272008-05-30 Kenichi Handa <handa@m17n.org>
12028
12029 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
12030 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
12031 defined.
12032
120332008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
12034
12035 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
12036 (Fmake_variable_frame_local): Disallow mixing buffer-local and
12037 frame-local settings for the same variable.
12038
120392008-05-30 Kenichi Handa <handa@m17n.org>
12040
12041 * fontset.c (Ffont_info): Move to font.c.
12042 (syms_of_fontset): Delete defsubr of Sfont_info.
12043
12044 * font.c (font_style_to_value, font_score): Delete casting of the
12045 args to xstcasecmp.
12046 (register_font_driver): Increment num_font_drivers only when
12047 registering the driver globally.
12048 (Ffont_info): Move from fontset.c. Handle a font object too.
12049 (syms_of_font): Defsubr Sfont_info.
12050
120512008-05-29 Kenichi Handa <handa@m17n.org>
12052
12053 * coding.h (enum define_coding_utf8_arg_index): New enum.
12054 (enum coding_attr_index): Change coding_attr_utf_16_bom to
12055 coding_attr_utf_bom.
12056 (enum utf_bom_type): Rename from utf_16_bom_type.
12057 (struct utf_16_spec): Adjust for the above change.
12058 (struct coding_system): Add utf_8_bom in `spec' union.
12059
12060 * coding.c (CODING_UTF_8_BOM): New macro.
12061 (enum coding_category): Delete coding_category_utf_8, add
12062 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
12063 coding_category_utf_8_sig.
12064 (CATEGORY_MASK_UTF_8): Delete it.
12065 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
12066 (CATEGORY_MASK_UTF_8_SIG): New macros.
12067 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
12068 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
12069 CATEGORY_MASK_UTF_8_SIG.
12070 (CATEGORY_MASK_UTF_8): New macro.
12071 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
12072 (detect_coding_utf_8): Check BOM.
12073 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
12074 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
12075 (encode_coding_utf_16): Likewise.
12076 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
12077 (detect_coding, detect_coding_system): Handle utf-8-auto.
12078 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
12079 (syms_of_coding): Fix setting up of Vcoding_category_table.
12080
120812008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
12082
12083 * process.c (Faccept_process_output): If `millisec' is non-nil,
12084 `seconds' default to 0.
12085 (wait_reading_process_output): Also return non-nil if we read output
12086 from a non-running process.
12087
120882008-05-29 Jason Rumney <jasonr@gnu.org>
12089
12090 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
12091 `raster' specified.
12092 (add_font_entity_to_list): Allow non-opentype truetype fonts back
12093 in the uniscribe backend, but disallow any font that has no
12094 unicode subrange support.
12095
120962008-05-29 Juanma Barranquero <lekktu@gmail.com>
12097
12098 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
12099 Fix typos in docstrings.
12100
121012008-05-29 Kenichi Handa <handa@m17n.org>
12102
12103 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
12104 (Fx_family_fonts): Set frame correctly.
12105
121062008-05-28 Jason Rumney <jasonr@gnu.org>
12107
12108 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
12109
121102008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
12111
12112 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
12113 calling build_annotations.
12114
121152008-05-28 Juanma Barranquero <lekktu@gmail.com>
12116
12117 * coding.c (Fdecode_coding_region, Fencode_coding_region)
12118 (Fencode_coding_string):
12119 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
12120 <latin-extra-code-table>: Fix typos in docstrings.
12121 (syms_of_coding) <coding-system-alist>: Doc fix.
12122 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
12123
121242008-05-28 Kenichi Handa <handa@m17n.org>
12125
12126 * fontset.c (Ffont_info): Don't call font_close_object.
12127
12128 * font.c (font_parse_family_registry): Use Ffont_put to validate
12129 foundry and family.
12130 (font_delete_unmatched): Don't check spacing.
12131 (font_list_entities): Add spacing to the spec to list fonts.
12132
12133 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
12134 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
12135
12136 * coding.c (encode_coding_raw_text): Fix previous change.
12137 (encode_coding_object): When the dst_object is a buffer and is
12138 different from src_object, move gap to PT.
12139
121402008-05-27 Chong Yidong <cyd@stupidchicken.com>
12141
12142 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
12143
121442008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
12145
12146 * coding.c (encode_coding_raw_text): Set coding->produced_char for
12147 all branches. Compute it differently.
12148
12149 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
12150
121512008-05-27 Juanma Barranquero <lekktu@gmail.com>
12152
12153 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
12154 into "else if () ... else ...".
12155
121562008-05-27 Jason Rumney <jasonr@gnu.org>
12157
12158 * w32font.c (w32font_open_internal): Determine if glyph indices
12159 are likely to work here.
12160
121612008-05-27 Chong Yidong <cyd@stupidchicken.com>
12162
12163 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
12164 draw overlap glyphs with appropriate highlighting.
12165
121662008-05-27 Kenichi Handa <handa@m17n.org>
12167
12168 * xfont.c (xfont_open): Fix calculation of font->average_width.
12169
121702008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
12171
12172 * casefiddle.c (casify_object): Try to guess better whether the
12173 argument is a byte or a char.
12174
121752008-05-26 Andreas Schwab <schwab@suse.de>
12176
12177 * xselect.c (x_reply_selection_request): Properly handle format == 32.
12178 Always send multiples of format size.
12179
12180 * xterm.c (x_set_frame_alpha): Fix type mismatch.
12181
121822008-05-26 Jason Rumney <jasonr@gnu.org>
12183
12184 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
12185 (compute_metrics): Don't set failure if we just cleared the cache.
12186 (w32_weight_table): Remove unused variable.
12187 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
12188 backwards compatibility.
12189
121902008-05-25 Kenichi Handa <handa@m17n.org>
12191
12192 * w32term.c (x_draw_glyph_string):
12193 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
12194
12195 * xfaces.c: Delete unused function prototypes.
12196 (xstrlwr, font_frame): Delete them.
12197 (clear_face_cache): Delete unused variable.
12198
12199 * xftfont.c (xftfont_open): Delete unused variable.
12200 If underline_thickness is not 1, adjust underline_position.
12201
12202 * ftxfont.c (ftxfont_open): Delete unused variable.
12203
12204 * fontset.c (face_for_char): Optimize for the case of no charset
12205 property.
12206
12207 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
12208 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
12209 (otf_open, font_otf_capability, generate_otf_features)
12210 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
12211 Comment out by surrounding "#if 0" and "#endif" for the moment.
12212 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
12213 (syms_of_font): Codes for accessing above commented out.
12214
122152008-05-24 Eli Zaretskii <eliz@gnu.org>
12216
12217 * w32proc.c: Include dispextern.h.
12218
12219 * w32.c: Include dispextern.h.
12220
122212008-05-23 Juanma Barranquero <lekktu@gmail.com>
12222
12223 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
12224 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
12225 Fix typos in docstrings.
12226
122272008-05-23 Jason Rumney <jasonr@gnu.org>
12228
12229 * xsmfns.c: Remove includes that are already included by config.h.
12230
122312008-05-23 Kenichi Handa <handa@m17n.org>
12232
12233 * charset.c (Qemacs, charset_emacs): New variables.
12234 (char_charset): Fix for non-Unicode characters.
12235 (syms_of_charset): Define charset_emacs.
12236
12237 * w32term.c (x_draw_glyph_string): Be sure to update
12238 s->underline_thickness and s->underline_position. Be sure to draw
12239 underline within the current line area.
12240
12241 * xterm.c (x_draw_glyph_string): Be sure to update
12242 s->underline_thickness and s->underline_position. Be sure to draw
12243 underline within the current line area.
12244
12245 * fontset.c: Delete unused variables and add casting for char *
12246 throughout the file.
12247 (fontset_font): Try the fallback fonts of the current fontset
12248 before consulting the default fontset.
12249
12250 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
12251
12252 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
12253
122542008-05-22 Jason Rumney <jasonr@gnu.org>
12255
12256 * font.c: Don't include strings.h.
12257
12258 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
12259
12260 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
12261 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
12262 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
12263 to call xstrcasecmp.
12264
12265 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
12266
12267 * fontset.c (fs_query_fontset): Use xstrcasecmp.
12268
12269 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
12270
12271 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
12272
122732008-05-22 Kenichi Handa <handa@m17n.org>
12274
12275 * puresize.h (BASE_PURESIZE): Increase to 1220000.
12276
12277 * font.c (font_prop_validate_style): Adjust for the format
12278 change of font_style_table.
12279
12280 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
12281 two args.
12282
12283 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
12284 two args.
12285
122862008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
12287
12288 * minibuf.c (keys_of_minibuf): Delete.
12289 * lisp.h (keys_of_minibuf): Delete.
12290 * emacs.c (main): Don't call keys_of_minibuf.
12291
122922008-05-22 Kenichi Handa <handa@m17n.org>
12293
12294 * ftfont.c (ftfont_resolve_generic_family): Rename from
12295 ftfont_list_generic_family. Return a single family for each
12296 generic family.
12297 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
12298 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
12299 Call font_add_log.
12300 (ftfont_match): Call font_add_log.
12301
12302 * font.h (Ffont_xlfd_name): EXFUN adjusted.
12303 (FONT_DEBUG): Define it.
12304 (font_add_log): Extern it.
12305 (font_assert): Rename from xassert.
12306
12307 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
12308 (xfont_list_family): Call font_add_log.
12309 (xfont_match): Likewise.
12310 (memq_no_quit): Delete.
12311
12312 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
12313 call of Ffont_xlfd_name.
12314
12315 * xfaces.c (struct table_entry, slant_table, weight_table)
12316 (swidth_table): Move to font.c.
12317
12318 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
12319 xassert are changed to font_assert. Delete many unused variables.
12320 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
12321 New variables.
12322 (struct table_entry): Move from xfaces.c and modified.
12323 (weight_table, slant_table, width_table): Move from xfaces.c and
12324 contents adjusted for the change of struct table_entry.
12325 (font_style_to_value, font_style_symbolic): Adjust for the
12326 format change of font_style_table.
12327 (font_parse_family_registry): Don't overwrite existing foundry and
12328 family of font_spec.
12329 (font_score): Fix calculation of diff for sizes.
12330 (font_sort_entites): Call font_add_log.
12331 (font_delete_unmatched): Return a newly created list.
12332 (font_list_entities): Fix previous change. Call font_add_log.
12333 (font_matching_entity, font_open_entity, font_close_entity):
12334 Call font_add_log.
12335 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
12336 (Finternal_set_font_style_table): Delete.
12337 (BUILD_STYLE_TABLE): New macro.
12338 (build_style_table): New function.
12339 (Vfont_log, font_log_env_checked): New variables.
12340 (font_add_log): New function.
12341 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
12342 Declare Lisp variables "font-weight-table", "font-slant-table",
12343 "font-width-table", and "font-log". Initialize font_style_table.
12344
123452008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
12346
12347 * xterm.c (x_set_frame_alpha): Move declarations before statements.
12348
123492008-05-21 Seiji Zenitani <zenitani@mac.com>
4e2af782 12350 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
12351
12352 * frame.c (Qalpha): Add a new frame parameter `alpha'.
12353 (Vframe_alpha_lower_limit): New variable.
12354 (x_set_alpha): New function.
12355
12356 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
12357
12358 * xfns.c (x-create-frame, Qalpha):
12359 Initialize the frame parameter `alpha'.
12360 * xterm.c (OPAQUE, OPACITY): New.
12361 (x_set_frame_alpha): New function.
12362 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
12363
12364 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
12365 * w32fns.c (w32_frame_parm_handlers): Likewise.
12366
123672008-05-20 Jason Rumney <jasonr@gnu.org>
12368
12369 * w32font.c (add_font_entity_to_list): Don't add non-opentype
12370 truetype fonts to opentype list.
12371
123722008-05-20 Juanma Barranquero <lekktu@gmail.com>
12373
12374 * fontset.c (Ffontset_info): Doc fix.
12375 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
12376 <ignore-relative-composition>: Fix typos in docstrings.
12377
12378 * font.c (syms-of-font) <font-encoding-alist>:
12379 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
12380 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
12381 (Ffont_otf_alternates): Doc fixes.
12382
123832008-05-20 Kenichi Handa <handa@m17n.org>
12384
12385 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
12386 font.h through out the file.
12387 (FONT_DRIVERS): Rename from FONTOBJ.
12388 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
12389 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
12390
12391 * emacs.c (main): Call syms_of_font unconditionally.
12392
12393 * font.h (find_font_encoding): Extern it.
12394
12395 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
12396 fontset.c.
194d44e7 12397 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
12398 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
12399 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
12400 only when HAVE_WINDOW_SYSTEM is defined.
12401 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
12402 when HAVE_WINDOW_SYSTEM is defined.
12403
12404 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
12405 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
12406
12407 * xfaces.c: Include font.h unconditionally.
12408 (merge_face_ref, merge_face_vectors)
12409 (Finternal_set_lisp_face_attribute): Cancel the previous change.
12410
124112008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
12412
12413 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
12414 indirect_variable.
12415 * eval.c (lisp_indirect_variable): New fun.
12416 (Fuser_variable_p): Use it.
12417
124182008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
12419
12420 * lisp.h (indirect_variable):
12421 * data.c (indirect_variable, let_shadows_buffer_binding_p):
12422 Use Lisp_Symbol pointers rather than Lisp_Object.
12423 Adjust callers.
12424 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
12425 To this end, change calling-convention.
12426
12427 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
12428 if some non-hidden buffers are selected by string&pred.
12429
124302008-05-19 Chong Yidong <cyd@stupidchicken.com>
12431
12432 * process.c (wait_reading_process_output): Always check status
12433 when in batch mode.
12434
124352008-05-19 Kenichi Handa <handa@m17n.org>
12436
12437 * font.c (font_list_entities): Fix handling of cache.
12438 (font_matching_entity): Likewise.
12439
12440 * ftfont.c (cs_iso8859_1): Delete.
12441 (ft_face_cache): New variable.
12442 (struct ftfont_info): New member fc_charset_idx.
12443 (ftfont_build_basic_charsets): Delete.
12444 (fc_charset_table): New variable.
12445 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
12446 . FC_CHARSET_IDX) as :font-entity property in the font entity.
12447 Callers changed.
12448 (ftfont_lookup_cache, ftfont_get_charset): New functions.
12449 (ftfont_spec_pattern): New argument fc_charset_idx.
12450 Check registry more rigidly. Change callers.
12451 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
12452 change of :font-entity property of the font.
12453
12454 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
12455 property of the font.
12456
124572008-05-18 Juanma Barranquero <lekktu@gmail.com>
12458
12459 * coding.c (Fcoding_system_p): Rename argument to match docstring.
12460 (Funencodable_char_position, Fcheck_coding_systems_region)
12461 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
12462 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
12463 (Ffind_operation_coding_system, Fset_coding_system_priority)
12464 (Fcoding_system_eol_type): Doc fixes.
12465
124662008-05-17 Glenn Morris <rgm@gnu.org>
12467
12468 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
12469
124702008-05-16 Eli Zaretskii <eliz@gnu.org>
12471
12472 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
12473 and st_gid.
12474
12475 * frame.c (Fdelete_frame): Don't call font_update_drivers if
12476 HAVE_WINDOW_SYSTEM is not defined.
12477
12478 * xfaces.c (merge_face_ref, merge_face_vectors)
12479 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
12480 HAVE_WINDOW_SYSTEM is defined.
12481 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
12482
124832008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
12484
12485 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
12486
124872008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12488
12489 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
12490
124912008-05-15 Kenichi Handa <handa@m17n.org>
12492
12493 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
12494 preference.
12495
124962008-05-15 Glenn Morris <rgm@gnu.org>
12497
12498 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
12499
125002008-05-15 Chong Yidong <cyd@stupidchicken.com>
12501
12502 * fns.c (init_fns): Don't initialize weak_hash_tables here.
12503 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
12504
12505 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
12506
125072008-05-15 Kenichi Handa <handa@m17n.org>
12508
12509 * ftfont.c (ftfont_list): Downcase family name to check generic
12510 families.
12511
12512 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
12513 font-spec for QCfont value.
12514
12515 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
12516 buffer. Check the return value of it.
12517
125182008-05-14 Jason Rumney <jasonr@gnu.org>
12519
12520 * w32term.c (w32_get_glyph_overhangs): Remove.
12521 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
12522
125232008-05-14 Kenichi Handa <handa@m17n.org>
12524
12525 * font.c (font_prop_validate): Make nil a valid value.
12526 (font_clear_cache): Check if the cached vector of entities is nil
12527 or not.
12528
125292008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12530
12531 * emacs.c (main_thread): Conditionalize on
12532 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
12533 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
12534
12535 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
12536 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
12537 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
12538
125392008-05-14 Kenichi Handa <handa@m17n.org>
12540
12541 * coding.c (detect_coding_iso_2022): Ignore a coding category that
12542 has no corresponding coding system.
12543
125442008-05-14 Jason Rumney <jasonr@gnu.org>
12545
12546 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
12547
12548 * w32font.h (w32font_open_internal): Update declaration.
12549
12550 * w32font.c (w32font_open_internal): Change last argument from
12551 w32font_info struct to font object. Fill in font object from
12552 font_entity. Get Outline metrics if possible. Use them to
12553 calculate underline position and thickness. Use xlfd name as name
12554 property. Don't set codepage.
12555 (w32font_open): Pass font_object to w32font_open_internal. Don't
12556 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
12557 (w32font_draw): Use s->font.
12558 (clear_cached_metrics): Don't clear non-existent blocks.
12559
12560 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
12561 font was not found.
12562 (x_draw_glyph_string): Use underline position and thickness from font.
12563
12564 * w32uniscribe.c (uniscribe_open): Pass font_object to
12565 w32font_open_internal.
12566
125672008-05-14 Kenichi Handa <handa@m17n.org>
12568
12569 These changes are to delete all legacy font-handling codes, and
12570 make Emacs use only font-backends.
12571
12572 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
12573 (frame.o, image.o, print.o): Depend on $(FONTSRC).
12574
12575 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
12576
12577 * charset.h (Vcharset_non_preferred_head)
12578 (Vcurrent_iso639_language): Extern them.
12579
12580 * charset.c (Vcharset_non_preferred_head): New variable.
12581 (Vcurrent_iso639_language): New variable.
12582 (syms_of_charset): Declare it as a Lisp variable.
12583 (char_charset): Don't check non preferred charsets. As a last
12584 resort, return charset_unicode.
12585 (Fset_charset_priority): Update Vcharset_non_preferred_head.
12586
12587 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
12588 conditionals. Don't check enable_font_backend. Delete all codes
12589 used only when USE_FONT_BACKEND is not defined.
12590
12591 * dispextern.h (struct glyph_string): Change type of `font' to
12592 `struct font *'.
12593 (struct glyph_string): New member underline_position and
12594 underline_thickness.
12595 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
12596 (struct face): Change type of `font' to `struct font *'. Remove
12597 members `font_name', `font_info_id'.
12598 (per_char_metric, encode_char): Delete externs.
12599 (calc_pixel_width_or_height): Adjust the prototype.
12600
12601 * emacs.c (enable_font_backend): Delete extern.
12602 (main): Don't set enable_font_backend. Don't check the command
12603 line argument "-disable-font-backend".
12604
12605 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
12606 (enum font_property_index): New members FONT_DPI_INDEX,
12607 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
12608 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
12609 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
12610 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
12611 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
12612 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
12613 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
12614 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
12615 (struct font_spec, struct font_entity): New structs.
12616 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
12617 (struct font): Many members from old "struct font_info" moved to
12618 here. Members font and entity deleted.
12619 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
12620 the new font-related objects.
12621 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
12622 (CHECK_FONT_GET_OBJECT): Likewise.
12623 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
12624 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
12625 (struct font_driver): New members case_sensitive anc check. Type
12626 of the member list and open changed.
12627 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
12628 (font_symbolic_width, font_find_object, font_get_spec)
12629 (font_set_lface_from_name): Delete extern.
12630 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
12631
12632 * font.c: Include <strings.h>.
12633 (enable_font_backend): Delete it.
12634 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
12635 (CHECK_VALIDATE_FONT_SPEC): Delete it.
12636 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
12637 (null_string): Delete it.
12638 (null_vector): Make it static.
12639 (font_family_alist): Delete it.
12640 (Qnormal): Extern it.
12641 (QCextra, QClanguage): Delete it.
12642 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
12643 (font_make_spec, font_make_entity, font_make_object)
12644 (font_intern_prop): Renamed from intern_downcase. Don't downcase
12645 the string. Callers changed.
12646 (font_pixel_size): Adjusted for the format change of font-related
12647 objects.
12648 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
12649 (font_style_to_value, font_style_symbolic): New function.
12650 (build_font_family_alist): Delete it.
12651 (font_registry_charsets): Use Fassoc_string instead of
12652 assq_no_quit.
12653 (font_prop_validate_symbol): Don't return null_string.
12654 (font_prop_validate_style): Adjusted for the change of
12655 style-related values in a font vector.
12656 (font_property_table): Delete entries for QClanguage and
12657 QCantialias, add entries for QCavgwidth.
12658 (get_font_prop_index): Delete the 2nd argument FROM.
12659 (font_prop_validate): Arguments changed.
12660 (font_put_extra): Adjusted for the change of font-related objects.
12661 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
12662 (font_parse_fcname, font_unparse_fcname)
12663 (font_prepare_composition): Likewise.
12664 (font_parse_family_registry): Renamed from font_merge_old_spec.
12665 (otf_open): Delete the 1st arg entity.
12666 (font_otf_capability): Adjusted for the above change.
12667 (font_score): New arg alternate_families. Adjusted for the change
12668 of font-related objects.
12669 (font_sort_entites): New arg best_only.
12670 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
12671 Delete them.
12672 (font_match_p): Check alternate families.
12673 (font_find_object): Delete it.
12674 (font_check_object): New function.
12675 (font_clear_cache): Adjusted for the change of font-related objects.
12676 (font_delete_unmatched): New arg.
12677 (font_list_entities): Call font_driver->list with a spec that
12678 doesn't specify style-related properties.
12679 (font_matching_entity): Arguments changed. Caller changed.
12680 (font_open_entity): Adjusted for the change of font-related objects.
12681 (font_close_object, font_has_char, font_encode_char)
12682 (font_get_name, font_get_spec): Likewise.
12683 (font_spec_from_name, font_clear_prop, font_update_lface):
12684 New functions.
12685 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
12686 (font_prepare_for_face, font_done_for_face, font_open_by_name)
12687 (font_at): Adjusted for the change of font-related objects.
12688 (font_range): New function.
12689 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
12690 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
12691 (Fcopy_font_spec, Fmerge_font_spec): New function.
12692 (Ffont_family_list): Renamed from list-families.
12693 (Finternal_set_font_style_table): Arguments changed.
12694 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
12695 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
12696 change of font-related objects.
12697 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
12698
12699 * fontset.h (struct font_info): Delete it. Most members go to
12700 struct font.
12701 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
12702 (enum FONT_SPEC_INDEX): Delete it.
12703 (font_info, list_fonts_func, load_font_func, query_font_func)
12704 (set_frame_fontset_func, find_ccl_program_func)
12705 (get_font_repertory_func, new_fontset_from_font_name): Delete
12706 externs.
12707 (fontset_from_font_name): Extern it.
12708 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
12709 (FONT_INFO_FROM_FACE): Deleted.
12710 (face_for_font): Adjust prototype.
12711
12712 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
12713 conditionals. Don't check enable_font_backend. Delete all codes
12714 used only when USE_FONT_BACKEND is not defined.
12715 (get_font_info_func, list_font_func, load_font_func)
12716 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
12717 (get_font_repertory_func): Delete them.
12718 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
12719 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
12720 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
12721 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
12722 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
12723 (fontset_compare_rfontdef): New function.
12724 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
12725 rfont-defs by qsort. Adjusted for the change of font-group vector.
12726 (load_font_get_repertory): Deleted.
12727 (fontset_find_font): Use new macros to ref/set elements of
12728 font-def and rfont-def.
12729 (fontset_font): Fix the timing of remembering that no font for C.
12730 (free_face_fontset): Do nothing if the face has no fontset.
12731 (face_suitable_for_char_p): Use new macros to ref/set elements of
12732 rfont-def.
12733 (face_for_char): Likewise. Call face_for_char with font_object.
12734 (fs_load_font): Delete. Delete #pragma surrounding it.
12735 (fs_query_fontset): Use strcasecmp instead of strcmp.
12736 (generate_ascii_font_name): Adjusted for the format change of
12737 font-spec.
12738 (Fset_fontset_font): Likewise. Use new macros to set elements of
12739 font-def.
12740 (Fnew_fontset): Use font_unparse_xlfd to generate
12741 FONTSET_ASCII (fontset).
12742 (new_fontset_from_font_name): Deleted.
12743 (fontset_from_font): Renamed from new_fontset_from_font. Check if
12744 a fontset is already created for the font. FIx updating of
12745 Vfontset_alias_alist.
12746 (fontset_ascii_font): Deleted.
12747 (Ffont_info): Adjusted for the format change of font-spec.
12748 (Finternal_char_font): Likewise.
12749 (Ffontset_info): Likewise.
12750 (syms_of_fontset): Don't check load_font_func.
12751
12752 * fns.c (internal_equal): Handle PREV_FONT.
12753
12754 * frame.h: Delete USE_FONT_BACKEND conditional.
12755
12756 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
12757 conditionals. Don't check enable_font_backend. Delete all codes
12758 used only when USE_FONT_BACKEND is not defined.
12759 (x_set_font): Call x_new_font, not x_new_fontset2.
12760 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
12761 already set for the frame.
12762
12763 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
12764 a font-entity by font_make_entity. Use font_intern_prop instead
12765 of intern_downcase. Use FONT_SET_STYLE to set a style-related
12766 font property. If a font is scalable, set avgwidth property to 0.
12767 Set font-entity property by font_put_extra.
12768 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
12769 (ffont_driver): Adjusted for the change of struct font_driver.
12770 (ftfont_spec_pattern): New function.
12771 (ftfont_list): Return a list, not vector.
12772 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
12773 (ftfont_list_family): Don't downcase names.
12774 (ftfont_free_entity): Deleted.
12775 (ftfont_open): Return a font-object. Adjusted for the change of
12776 struct font. Get underline_thickness and underline_position from
12777 font property. Don't update dpyinfo->smallest_font_height and
12778 dpyinfo->smallest_char_width.
12779 (ftfont_close): Don't free `struct font'.
12780 (ftfont_has_char): Adjusted for the format change of font-entity.
12781 (ftfont_encode_char, ftfont_text_extents): Likewise.
12782
12783 * ftxfont.c (ftxfont_list): Return a list, not vector.
12784 (ftxfont_open): Return a font-object. Adjusted for the change of
12785 struct font. Get underline_thickness and underline_position from
12786 font property. Don't update dpyinfo->smallest_font_height and
12787 dpyinfo->smallest_char_width.
12788 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
12789 (ftxfont_draw): Adjusted for the change of struct font.
12790
12791 * image.c (image_ascent): Don't include "charset.h". Include
12792 "character.h" and "font.h".
12793
12794 * lisp.h (enum pvec_type): New member PREV_FONT.
12795 (Fassoc_string): EXFUN it.
12796
12797 * print.c: Include font.h.
12798 (print_object): Handle font-related objects.
12799
12800 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
12801 conditionals. Don't check enable_font_backend. Delete all codes
12802 used only when USE_FONT_BACKEND is not defined.
12803 (handle_auto_composed_prop): Do nothing if it->f is not on a
12804 window system. Check how many following characters can be
12805 displayed by the same font.
12806 (calc_pixel_width_or_height): Type of the 4th arg is changed to
12807 'struct font *'.
12808 (get_char_face_and_encoding): Assign the whole encoding task to
12809 the `encode-char' method of a font driver.
12810 (fill_composite_glyph_string): Adjusted for the change of `struct
12811 face' and `struct glyph_string'.
12812 (fill_glyph_string): Likewise.
12813 (get_per_char_metric): Arguments changed.
12814 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
12815 and `struct glyph_string'.
12816 (produce_stretch_glyph, calc_line_height_property)
12817 (x_produce_glyphs): Likewise.
12818
12819 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
12820 conditionals. Don't check enable_font_backend. Delete all codes
12821 used only when USE_FONT_BACKEND is not defined. Use
12822 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
12823 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
12824 (Qp): Extern them.
12825 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
12826 Deleted.
12827 (struct font_name): Deleted.
12828 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
12829 (compare_fonts_by_sort_order): New function.
12830 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
12831 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
12832 Deleted.
12833 (Fx_family_fonts): Use font_list_entities, and sort fonts by
12834 compare_fonts_by_sort_order.
12835 (Fx_font_family_list): Call Ffont_family_list.
12836 (face_numeric_value, face_numeric_weight, face_numeric_slant)
12837 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
12838 (face_symbolic_slant, face_symbolic_swidth)
12839 (split_font_name_into_vector, build_font_name_from_vector)
12840 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
12841 (font_rescale_ratio, split_font_name, build_font_name)
12842 (free_font_names, sort_fonts, x_face_list_fonts)
12843 (face_font_available_p, sorted_font_list, cmp_font_names)
12844 (font_list_1, concat_font_list, font_list, remove_duplicates):
12845 Deleted.
12846 (Fx_list_fonts): Use Ffont_list.
12847 (LFACE_AVGWIDTH): Deleted.
12848 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
12849 by FONTP.
12850 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
12851 (set_lface_from_font_name): Delete it.
12852 (set_lface_from_font): Renamed from
12853 set_lface_from_font_and_fontset. Caller changed. Don't set
12854 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
12855 for face.
12856 (merge_face_vectors): Copy font-spec if necessary.
12857 Clear properties of the font-spec if necessary.
12858 (merge_face_ref): Clear properties of the font-spec if necessary.
12859 (Finternal_set_lisp_face_attribute): Likewise.
12860 (set_font_frame_param): Use font_load_for_lface to load a
12861 font-object, and call Fmodify_frame_parameters with it.
12862 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
12863 font name by Ffont_xlfd_name.
12864 (Finternal_lisp_face_attribute_values): Don't check QCweight,
12865 QCslant, and QCwidth.
12866 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
12867 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
12868 Compare fonts by EQ.
12869 (lookup_non_ascii_face): Deleted.
12870 (face_for_font): The 2nd argument changed.
12871 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
12872 Check atomic font properties by case insensitive.
12873 (realize_non_ascii_face): Set face->overstrike correctly.
12874 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
12875 (dump_realized_face): Get font name from
12876 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
12877
12878 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
12879 conditionals. Don't check enable_font_backend. Delete all codes
12880 used only when USE_FONT_BACKEND is not defined.
12881 (xic_create_xfontset): Original code deleted and renamed from
12882 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
12883 (x_make_gc): Don't set GCFont in GCs.
12884 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
12885 opened by "fixed".
12886 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
12887 find_ccl_program_func, query_font_func, set_frame_fontset_func,
12888 get_font_repertory_func.
12889
12890 * xfont.c: Include <stdlib.h> and "ccl.h".
12891 (struct xfont_info): New structure.
12892 (xfont_query_font): Deleted.
12893 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
12894 moved from xterm.c.
12895 (xfont_driver): Adjusted for the change of struct font_driver.
12896 (compare_font_names): New function.
12897 (xfont_list_pattern): Sort font names case insensitively. Make
12898 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
12899 (xfont_list): Return a list, not vector.
12900 (xfont_match): If the font doesn't have QCname property, generate
12901 a name from the other font properties.
12902 (xfont_open): Return a font-object. Adjusted for the change of
12903 struct font. Get underline_thickness and underline_position from
12904 font property. Don't update dpyinfo->smallest_font_height and
12905 dpyinfo->smallest_char_width.
12906 (xfont_close): Don't free struct font.
12907 (xfont_prepare_face): Adjusted for the change of struct font.
12908 (xfont_done_face): Deleted.
12909 (xfont_has_char): Adjusted for the change of struct font.
12910 (xfont_encode_char, xfont_draw): Likewise.
12911 (xfont_check): New function.
12912
12913 * xftfont.c (xftfont_list): Adjusted for the change of `list'
12914 callback function.
12915 (xftfont_match): Adjusted for the format change of font-entity.
12916 (xftfont_open): Adjusted for the format change of font-entity and
12917 font-object. Adjusted for the change of struct font. Return a
12918 font-object. Don't update dpyinfo->smallest_font_height and
12919 dpyinfo->smallest_char_width.
12920 (xftfont_close): Block input while calling XftFontClose.
12921 (xftfont_prepare_face): Don't block input while calling
12922 xftfont_get_colors. Adjusted for the change of struct font.
12923 (xftfont_shape): Return value of error case fixed.
12924
12925 * xrdb.c (x_load_resources): Don't setup a fontset resource.
12926
12927 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
12928 conditionals.
12929 (FONT_WIDTH): Return (f)->max_width.
12930 (struct x_display_info): Delete member `font'.
12931 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
12932 (x_find_ccl_program, x_get_font_repertory): Delete externs.
12933 (struct x_output): Change type of `font' to `struct font *'.
12934
12935 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
12936 conditionals. Don't check enable_font_backend. Delete all codes
12937 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
12938 (x_per_char_metric, x_encode_char): Deleted.
12939 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
12940 (x_compute_glyph_string_overhangs): Adjusted for the change of
12941 `struct face'.
12942 (x_draw_glyph_string_foreground)
12943 (x_draw_composite_glyph_string_foreground): Likewise.
12944 (x_draw_glyph_string): Likewise. Use font->underline_position and
12945 font->underline_thickness.
12946 (x_new_font): Renamed from x_new_fontset2.
12947 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
12948 (x_check_font): Call `check' method of a font driver.
12949 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
12950 (x_query_font, x_get_font_repertory): Deleted.
12951 (x_find_ccl_program): Renamed and moved to xfont.c.
12952 (x_redisplay_interface): Adjusted for the change of `struct
12953 redisplay_interface'.
12954
12955 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
12956 conditionals. Don't check enable_font_backend. Delete all codes
12957 used only when USE_FONT_BACKEND is not defined. Surround non-used
12958 code by "#ifdef OLD_FONT" and "endif".
12959 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
12960
12961 * w32font.h (struct w32font_info): New member.
12962 (FONT_COMPAT): New macro.
12963 (w32font_open_internal): Prototype adjusted.
12964
12965 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
12966 OLD_FONT" and "endif".
12967
12968 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
12969 conditionals. Don't check enable_font_backend. Delete all codes
12970 used only when USE_FONT_BACKEND is not defined.
12971 (w32font_open): Return a font-object. Make a font-object by
12972 font_make_object. Adjusted for the change of struct w32font_info.
12973 (w32font_close): Don't free struct font. Adjusted for the change
12974 of struct w32font_info.
12975 (w32font_encode_char, w32font_text_extents, w32font_draw):
12976 Adjusted for the change of struct w32font_info.
12977 (w32font_draw): Likewise.
12978 (w32font_list_internal): Return a list, not vector.
12979 (w32font_open_internal): Change the 4th arg to font-object.
12980 Adjusted for the change of struct w32font_info and font-object format.
12981 (add_font_name_to_list): Don't downcase names.
12982 (w32_enumfont_pattern_entity): Make a font-entity by
12983 font_make_entity. Adjusted for the format change of font-entity.
12984 Use FONT_SET_STYLE to set a style-related font property. If a
12985 font is scalable, set avgwidth property to 0. Set font-entity
12986 property by font_put_extra.
12987 (font_matches_spec): Adjusted for the format change of font-entity.
12988 (w32_weight_table, w32_decode_weight): New variables.
12989 (w32_encode_weight): New function.
12990 (fill_in_logfont): Adjusted for the format change of font-spec.
12991 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
12992 weight value.
12993 (w32font_driver): Adjusted for the change of struct font_driver.
12994
12995 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
12996 conditionals. Don't check enable_font_backend. Surround non-used
12997 code by "#ifdef OLD_FONT" and "endif".
12998 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
12999 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
13000
13001 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
13002 conditionals. Don't check enable_font_backend. Delete all codes
13003 used only when USE_FONT_BACKEND is not defined. Surround non-used
13004 code by "#ifdef OLD_FONT" and "endif".
13005
13006 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
13007 (uniscribe_open): Return value changed to font-object.
13008 Adjusted for the format change of font-object.
13009 (uniscribe_otf_capability): Adjusted for the change of struct font.
13010 (add_opentype_font_name_to_list): Don't downcase names.
13011 (uniscribe_font_driver): Adjusted for the change of struct
13012 font_driver.
13013
130142008-05-13 Chong Yidong <cyd@stupidchicken.com>
13015
13016 * dispnew.c (update_frame_1): Check if tty output is still valid
13017 before flushing it.
13018
130192008-05-13 Jan Djärv <jan.h.d@swipnet.se>
13020
13021 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
13022 to Gtk+ menus.
13023
130242008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
13025
13026 * dired.c (file_name_completion): Tweak the code so as to always do it
13027 in a single pass. Tighten the scope of some variables.
13028
13029 * dired.c (Qdefault_directory): New var.
13030 (file_name_completion): Use it instead of Fexpand_file_name.
13031 (syms_of_dired): Initialize it.
13032
130332008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
13034
13035 * fileio.c (double_dollars): Remove dead code.
13036
130372008-05-10 Eli Zaretskii <eliz@gnu.org>
13038
13039 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
13040 Mention w32-get-true-file-attributes in doc string.
13041
13042 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
13043
130442008-05-09 Glenn Morris <rgm@gnu.org>
13045
13046 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
13047 2008-04-23.
13048
130492008-05-09 Eli Zaretskii <eliz@gnu.org>
13050
13051 Support for reporting owner and group of each file on MS-Windows:
13052 * dired.c (stat_uname, stat_gname): New functions, with special
13053 implementation for w32.
13054 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
13055
13056 * w32.c: Rename the_passwd_* to dflt_passwd_*.
13057 (dflt_group_name): New static variable.
13058 (dflt_group): Rename from the_group.
13059 (init_user_info): Init dflt_group fields. Get user's group name
13060 from LookupAccountSid.
13061 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
13062 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
13063 New initialization states.
13064 (globals_of_w32): Initialize them to zero. Initialize the default
13065 group name to "None".
13066 (GetFileSecurity_Name): New global var, the name of the function
13067 to call for GetFileSecurity.
13068 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
13069 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
13070 (get_file_security, get_security_descriptor_owner)
13071 (get_security_descriptor_group, is_valid_sid)
13072 (get_file_security_desc, get_rid, get_name_and_id)
13073 (get_file_owner_and_group): New functions.
13074 (stat): Use get_file_security_desc and get_file_owner_and_group to
13075 report the owner and primary group of each file. Don't ignore the
13076 high 32 bits of file's size, now that st_size is 64-bit wide.
13077 Fix test when to get true file attributes.
13078 (init_user_info): Use get_rid instead of equivalent inline code.
13079 (fstat): Don't ignore the high 32 bits of file's size.
13080
130812008-05-09 Chong Yidong <cyd@stupidchicken.com>
13082
13083 * image.c (png_load): Use correct bit-depth for setting background
13084 color.
13085
130862008-05-08 Eli Zaretskii <eliz@gnu.org>
13087
13088 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
13089 epa-hook.elc.
13090
130912008-05-08 Juanma Barranquero <lekktu@gmail.com>
13092
13093 * font.c (Ffont_match_p): Don't use `iff' in docstring.
13094
130952008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
13096
13097 * macfns.c (Fx_create_frame): Make a copy of frame parameters
13098 because the original parameters are in pure storage now.
13099 (mac_window): Remove unused params. Update callers.
13100
131012008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
13102
13103 * lread.c (substitute_object_recurse): Use lower-level primitives.
13104 Don't signal errors when traversing sub-char-tables.
13105 Don't loop over all the possible characters when traversing char-tables.
13106
13107 * print.c (print_preprocess): Add sub-char-tables to the print-table,
13108 just like we do in print.c.
13109
131102008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
13111
13112 * minibuf.c (Ftry_completion): Remove code left over from when we used
13113 scmp instead of Fcompare_strings.
13114
131152008-05-04 Juanma Barranquero <lekktu@gmail.com>
13116
13117 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
13118
131192008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13120
13121 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
13122 Create bitmap context in native byte order.
13123
13124 * macterm.c (XDrawLine)
13125 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
13126 context in native byte order.
13127
131282008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13129
13130 * config.in: Regenerate.
13131
13132 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
13133 New definitions for Image I/O support.
13134 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
13135 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
13136 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
13137 (mac_data_provider_release_data, image_load_image_io)
13138 [USE_MAC_IMAGE_IO]: New functions.
13139 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
13140 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
13141 (init_image_func_pointer) [MAC_OSX]: Remove function.
13142 (image_load_quartz2d) [MAC_OSX]: Check availability of
13143 CGImageCreateWithPNGDataProvider at compile time.
13144 Use lowercase `false' for boolean constant.
13145 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
13146 Use image_load_image_io.
13147 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
13148 Don't check MyCGImageCreateWithPNGDataProvider.
13149 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
13150 Don't call init_image_func_pointer.
13151
13152 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
13153
13154 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
13155 Make variable non-static.
13156 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
13157 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
13158
13159 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
13160 (RED_FROM_ULONG): Mask off higher bits.
13161 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
13162
13163 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
13164 Include AvailabilityMacros.h.
13165 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
13166 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
13167
131682008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
13169
13170 * chartab.c (Fset_char_table_range): If range is t, really set all
13171 chars to that value.
13172
131732008-05-03 Eli Zaretskii <eliz@gnu.org>
13174
13175 * dired.c (Ffile_attributes): Don't allow the device number become
13176 negative.
13177
131782008-05-02 Daiki Ueno <ueno@unixuser.org>
13179
13180 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
13181
131822008-05-02 Juri Linkov <juri@jurta.org>
13183
13184 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
13185 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
13186 DEFAULT argument as a list of default values in docstrings.
13187
131882008-05-01 Chong Yidong <cyd@stupidchicken.com>
13189
13190 * puresize.h (BASE_PURESIZE): Increase to 1210000.
13191
131922008-05-01 Martin Rudalics <rudalics@gmx.at>
13193
13194 * dispnew.c (change_frame_size_1): Preserve small windows when
13195 shrinking frames by calling set_window_height|width with third
13196 arg 2.
13197
13198 * window.h (struct window): Replace field too_small_ok by field
13199 resize_proportionally.
13200
13201 * window.c (make_window): Initialize resize_proportionally.
13202 (enlarge_window): Temporarily set resize_proportionally to make
13203 sure that shrink_windows does scale the window proportionally.
13204 (shrink_windows): When window has resize_proportionally set try
13205 to shrink it proportionally by stealing from other windows.
13206 (struct saved_window, Fset_window_configuration)
13207 (compare_window_configurations): Handle resize_proportionally.
13208 (WINDOW_TOTAL_SIZE): New macro.
13209 (window_min_size, shrink_windows, size_window): Use it.
13210 (check_min_window_sizes): Remove. Invalid values of
13211 window-min-height|width are handled by window_min_size_2 now.
13212 (size_window, Fsplit_window, enlarge_window)
13213 (adjust_window_trailing_edge, grow_mini_window): Don't call
13214 check_min_window_sizes.
13215 (window_min_size_2, window_min_size_1, window_min_size):
13216 New argument safe_p for retrieving "safe" minimum sizes.
13217 (Fdisplay_buffer, Fsplit_window, enlarge_window)
13218 (adjust_window_trailing_edge, grow_mini_window):
13219 Adjust arguments of window_min_size... functions.
13220 (shrink_windows): Argument min_size removed. New argument
13221 safe_p allows shrinking windows to their safe minimum sizes.
13222 Calculate minimum size and decide whether a window shall be
13223 deleted for each window individually.
13224 (size_window): When nodelete_p equals 2, tell shrink_windows to
13225 delete windows only if their new minimum size is no more safe.
13226 (shrink_window_lowest_first): Call window_min_size_1 to make
13227 sure to preserve modeline of bottom-most window when resizing
13228 the minibuffer.
13229 (Fset_window_configuration, Fcurrent_window_configuration)
13230 (compare_window_configurations): Do not handle
13231 window-min-height|width any more.
13232 (syms_of_window): Clarify window-min-height|width doc-strings.
13233
132342008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
13235
13236 * dired.c (file_name_completion): Fix up the encoding/decoding issue
13237 some more. Copy some of the code from Ftry_completions.
13238 Remove special case code that dates back to initial revision when the
13239 slash was only added when necessary and that can't trigger nowadays.
13240
132412008-04-27 Kenichi Handa <handa@m17n.org>
13242
13243 * font.c (font_prop_validate): Signal `error' instead of `font'.
13244
132452008-04-29 Jason Rumney <jasonr@gnu.org>
13246
13247 * w32fns.c (Fw32_battery_status): New defun.
13248 (syms_of_w32fns): Defsubr it.
13249
132502008-04-28 Andreas Schwab <schwab@suse.de>
13251
13252 * dired.c (file_name_completion): Fix another mixing of encoded
13253 and decoded names.
13254
132552008-04-28 Juanma Barranquero <lekktu@gmail.com>
13256
13257 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
13258
132592008-04-27 Juanma Barranquero <lekktu@gmail.com>
13260
13261 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
13262
132632008-04-27 Andreas Schwab <schwab@suse.de>
13264
13265 * dired.c (file_name_completion): Fix inappropriate mixing of
13266 encoded and decoded names.
13267
13268 * xterm.c (XTread_socket): Fix use of uninitialized variable.
13269
13270 * puresize.h (BASE_PURESIZE): Increase to 1200000.
13271
132722008-04-26 Eli Zaretskii <eliz@gnu.org>
13273
13274 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
13275 2008-03-31, it's not needed anymore with `struct stat' definition
13276 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
13277 for the same reasons.
13278
132792008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
13280
13281 * m/sparc.h: Additional redefinitions for GNU/Linux.
13282
132832008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13284
13285 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
13286 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
13287 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
13288 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
13289 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
13290 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
13291 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
13292 Likewise.
13293
13294 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
13295 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
13296 (mac_ax_number_of_characters): Add externs.
13297 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
13298 [USE_MAC_TSM]: Likewise.
13299 (mac_handle_text_input_event) [MAC_OSX]:
13300 Handle kEventTextInputOffsetToPos for no active input area case.
13301 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
13302 (mac_handle_document_access_event)
13303 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
13304 (install_application_handler) [MAC_OSX]: Register handlers for
13305 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
13306 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
13307 Register mac_handle_document_access_event.
13308
13309 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
13310 Make functions non-static.
13311
133122008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
13313
13314 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
13315 (read_file_name_completion_ignore_case, insert_default_directory)
13316 (Qdefault_directory): Move to minibuffer.el.
13317 (Fread_file_name): Call the new `read-file-name' instead.
13318
133192008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13320
13321 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
13322 Make function non-static.
13323 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
13324 Remove function.
13325 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
13326 Move to mactoolbox.c.
13327 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
13328
13329 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
13330 (mac_rect_make): New macro.
13331
13332 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
13333 instead of float.
13334 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
13335 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
13336 (XSetBackground) [USE_CG_DRAWING]: Likewise.
13337 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
13338 CGRectMake.
13339 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
13340 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
13341 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
13342 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
13343 instead of WindowRef in argument type.
13344 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
13345 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
13346 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
13347 instead of DISPLAY. All uses changed.
13348 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
13349 (x_calc_absolute_position): Simplify so as not to use
13350 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
13351
13352 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
13353 instead of WindowRef in argument type.
13354 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
13355 [TARGET_API_MAC_CARBON]: Remove externs.
13356 (create_apple_event, mac_event_parameters_to_lisp)
13357 [TARGET_API_MAC_CARBON]: Add externs.
13358
13359 * mactoolbox.c (Vmac_ts_script_language_on_focus)
13360 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
13361 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
13362 is clicked.
13363 (x_activate_menubar): Remove extern for saved_menu_event_location.
13364 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
13365 Move from mac.c.
13366
133672008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13368
13369 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
13370 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
13371
133722008-04-23 Jason Rumney <jasonr@gnu.org>
13373
13374 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
13375 attributes only for local files.
13376
13377 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
13378 default to Qlocal.
13379
133802008-04-22 Juri Linkov <juri@jurta.org>
13381
13382 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
13383 read-buffer-to-switch instead of using the letter "B".
13384
133852008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
13386
13387 * fileio.c (Qdefault_directory): New variable.
13388 (Fread_file_name): Use it to pass `dir' to the completion functions.
13389
133902008-04-20 Chong Yidong <cyd@stupidchicken.com>
13391
13392 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
13393
133942008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
13395
13396 * keyboard.c (Vpre_help_message): Remove.
13397 (show_help_echo): Remove default C code.
13398
13399 * dired.c (directory_files_internal, file_name_completion):
13400 Only call ENCODE_FILE if the string is indeed decoded.
13401
134022008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
13403
13404 * Makefile.in (TOOLKIT_DEFINES): Remove.
13405 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
13406
134072008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13408
13409 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
13410 (mactoolbox.o): New target.
13411
13412 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
13413 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
13414
13415 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
13416 Use mac_set_frame_window_background instead of XSetWindowBackground.
13417 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
13418 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
13419 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
13420 instead of SetWindowTitleWithCFString.
13421 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
13422 Move function to mactoolbox.c.
13423 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
13424 Use mac_set_window_modified instead of SetWindowModified.
13425 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
13426 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
13427 (Fx_focus_frame): Use mac_front_non_floating_window instead of
13428 FrontNonFloatingWindow. Use mac_activate_window instead of
13429 ActivateWindow. Use mac_active_non_floating_window instead of
13430 ActiveNonFloatingWindow.
13431 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
13432 Use mac_show_hourglass and mac_hide_hourglass.
13433 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
13434 instead of GetGlobalMouse.
13435 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
13436 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
13437 Use mac_bring_window_to_front instead of BringToFront.
13438 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
13439 mactoolbox.c.
13440 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
13441 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
13442 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
13443 mactoolbox.c.
13444
13445 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
13446 (XtPointer): Move typedef from macmenu.c.
13447 (enum button_type): Move enum from macmenu.c.
13448 (widget_value): Move typedef from macmenu.c.
13449 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
13450 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
13451 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
13452 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
13453 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
13454 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
13455 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
13456 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
13457 (Selection): Move typedef from macselect.c.
13458 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
13459 macterm.c.
13460 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
13461 (mac_is_window_collapsed, mac_bring_window_to_front)
13462 (mac_send_window_behind, mac_hide_window, mac_show_window)
13463 (mac_collapse_window, mac_front_non_floating_window)
13464 (mac_active_non_floating_window, mac_activate_window)
13465 (mac_move_window_structure, mac_move_window, mac_size_window)
13466 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
13467
13468 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
13469 (enum mac_menu_kind): Move enum to mactoolbox.c.
13470 (min_menu_id): Move variable to mactoolbox.c.
13471 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
13472 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
13473 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
13474 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
13475 [TARGET_API_MAC_CARBON]: Likewise.
13476 (XtPointer): Move typedef to macgui.h.
13477 (enum button_type): Move enum to macgui.h.
13478 (widget_value): Move typedef to macgui.h.
13479 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
13480 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
13481 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
13482 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
13483 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
13484 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
13485 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
13486 (popup_activated_flag): Make variable non-static.
13487 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
13488 (add_menu_item, fill_menu, dispose_menus):
13489 Move functions to mactoolbox.c.
13490 (restore_show_help_function, menu_target_item_handler)
13491 (install_menu_target_item_handler, mac_handle_dialog_event)
13492 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
13493 [TARGET_API_MAC_CARBON]: Likewise.
13494 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
13495 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
13496 (find_and_call_menu_selection, name_is_separator): Make function
13497 non-static.
13498 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
13499 to mactoolbox.c.
13500 (set_frame_menubar): Don't call install_menu_quit_handler.
13501 (menu_item_selection): New variable.
13502 (mac_menu_show): Use create_and_show_popup_menu.
13503 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
13504 selection but set variable menu_item_selection. All uses changed.
13505 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
13506 Call install_menu_quit_handler. Move to mactoolbox.c.
13507
13508 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
13509 (Selection): Move typedef to macgui.h.
13510 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
13511 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
13512 Make variables non-static.
13513 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
13514 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
13515 Make functions non-static.
13516 (Vmac_service_selection) [MAC_OSX]: Likewise.
13517 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
13518 (mac_valid_selection_target_p, mac_clear_selection)
13519 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
13520 (mac_put_selection_value, mac_selection_has_target_p)
13521 (mac_get_selection_value, mac_get_selection_target_list)
13522 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
13523 Move functions to mactoolbox.c.
13524 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
13525 Likewise.
13526 (copy_scrap_flavor_data, mac_handle_service_event)
13527 (install_service_handler) [MAC_OSX]: Likewise.
13528 (syms_of_macselect) <Vmac_dnd_known_types>:
13529 Use mac_dnd_default_known_types.
13530
13531 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
13532 Move to mactoolbox.c.
13533 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
13534 (Fx_selection_owner_p): Add EXFUN.
13535 (install_window_handler, remove_window_handler, XSetWindowBackground):
13536 Remove externs.
13537 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
13538 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
13539 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
13540 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
13541 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
13542 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
13543 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
13544 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
13545 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
13546 (create_and_show_popup_menu, mac_get_selection_from_symbol)
13547 (mac_valid_selection_target_p, mac_clear_selection)
13548 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
13549 (mac_put_selection_value, mac_selection_has_target_p)
13550 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
13551 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
13552 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
13553 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
13554 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
13555 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
13556 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
13557 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
13558 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
13559
13560 * mactoolbox.c: New file.
13561
135622008-04-18 Jason Rumney <jasonr@gnu.org>
13563
13564 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
13565
135662008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
13567
13568 * character.c (Fmultibyte_char_to_unibyte):
13569 Return latin1 chars unchanged.
13570
13571 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
13572 relocated if it points to `name'.
13573
135742008-04-17 Kenichi Handa <handa@m17n.org>
13575
13576 * data.c (Faset): Allow setting a multibyte character in an
13577 ASCII-only unibyte string.
13578
13579 * lisp.h (STRING_SET_MULTIBYTE): New macro.
13580
135812008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
13582
13583 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
13584 done in config.h.
13585
135862008-04-16 Juanma Barranquero <lekktu@gmail.com>
13587
13588 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
13589 (Fchar_direction): Add usage in the docstring.
13590
135912008-04-15 Chong Yidong <cyd@stupidchicken.com>
13592
13593 * keyboard.c (read_key_sequence): Remove always-true checks.
13594
135952008-04-14 Jason Rumney <jasonr@gnu.org>
13596
13597 * w32font.c (w32font_open_internal): Set max_bounds.descent in
13598 compatibility struct, for better underline positioning.
13599
136002008-04-13 David Hansen <david.hansen@gmx.net>
13601
13602 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
13603 string.
13604
136052008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
13606
13607 * m/hp800.h (XUINT, XSET): Remove.
13608
136092008-04-12 Juanma Barranquero <lekktu@gmail.com>
13610
13611 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
13612 previous change.
13613
136142008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
13615
13616 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
13617 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
13618
136192008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
13620
13621 * keymap.h (map_keymap_canonical): Declare.
13622 * xmenu.c (single_keymap_panes): Use it.
13623
136242008-04-11 Glenn Morris <rgm@gnu.org>
13625
13626 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
13627 set the target's value to that of the alias.
13628
136292008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
13630
13631 * term.c (set_tty_color_mode): Left over typo.
13632
136332008-04-10 Michael Albinus <michael.albinus@gmx.de>
13634
13635 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
13636 only after check for file name handler functions. Signal, when
13637 native functionality is not supported.
13638 (syms_of_fileio): Declare it unconditionally.
13639
136402008-04-10 Jason Rumney <jasonr@gnu.org>
13641
13642 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
13643 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
13644
13645 * w32.c (logon_network_drive): Also logon to remote drives that
13646 are mapped to drive letters.
13647
136482008-04-10 Glenn Morris <rgm@gnu.org>
13649
13650 * xdisp.c (truncate-partial-width-windows): Doc fix.
13651
136522008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
13653
13654 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
13655 Move functions to minibuffer.el.
13656 (syms_of_fileio): Don't declare them.
13657
136582008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
13659
13660 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
13661 (syms_of_minibuf): Remove its initialization.
13662
13663 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
13664
136652008-04-09 Juanma Barranquero <lekktu@gmail.com>
13666
13667 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
13668
136692008-04-09 Jason Rumney <jasonr@gnu.org>
13670
13671 * makefile.w32-in (distclean): Delete makefile too.
13672 (maintainer-clean): New target.
13673
13674 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
13675
13676 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
13677 for new font backend and composite cases.
13678
136792008-04-09 Jan Djärv <jan.h.d@swipnet.se>
13680
13681 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
13682 Most of the code moved to run_timers.
13683 (do_pending_atimers): Call run_timers.
13684 (run_timers): New function.
13685
13686 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
13687 run atimers.
13688
13689 * process.c (wait_reading_process_output): The same as above.
13690
136912008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
13692
13693 * minibuf.c (last_exact_completion): Remove variable.
13694 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
13695 (complete_and_exit_1, complete_and_exit_2)
13696 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
13697 (Fdisplay_completion_list, display_completion_list_1)
13698 (Fminibuffer_completion_help, Fself_insert_and_exit)
13699 (Fexit_minibuffer, Fminibuffer_message): Move functions to
13700 minibuffer.el.
13701 (syms_of_minibuf): Remove corresponding initializations.
13702
13703 * keyboard.c (Qdeactivate_mark): New var.
13704 (command_loop_1): Use it to call `deactivate-mark'.
13705 (syms_of_keyboard): Initialize it.
13706
13707 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
13708 to another frame.
13709 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
13710 Don't call set_tty_color_mode.
13711 (store_frame_param): Reset previous_frame rather than call
13712 set_tty_color_mode.
13713 * term.c (set_tty_color_mode): Rewrite.
13714 * dispextern.h (set_tty_color_mode): New type.
13715 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
13716
137172008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
13718
13719 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
13720 for generic chars, which do not exist any more in emacs-unicode.
13721
137222008-04-08 Michael Albinus <michael.albinus@gmx.de>
13723
13724 * coding.c (detect_coding_emacs_mule)
13725 (Ffind_operation_coding_system): Fix typo.
13726
137272008-04-08 Jason Rumney <jasonr@gnu.org>
13728
13729 * w32uniscribe.c (SNAME): Extract only symbol name.
13730
13731 * w32font.h (struct w32_metric_cache): New struct.
13732 (w32font_info): Use it.
13733 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
13734 (CACHE_BLOCKSIZE): New constants.
13735
13736 * w32font.c (Qja, Qko, Qzh): New symbols.
13737 (syms_of_w32font): Initialise them.
13738 (font_matches_spec): Use them to filter by language.
13739 (recompute_cached_metrics): Remove function.
13740 (compute_metrics, clear_cached_metrics): New functions.
13741 (w32font_encode_char): Use them to manage metric cache.
13742 (w32font_text_extents): Cache metrics for all glyphs on demand.
13743 Delay converting glyph indices to WORD until needed.
13744 (w32font_open_internal): Initialize metric cache to empty.
13745 (registry_to_w32_charset): Charset should always be a symbol.
13746 (fill_in_logfont, list_all_matching_fonts): Family should
13747 always be a symbol.
13748
137492008-04-06 Jason Rumney <jasonr@gnu.org>
13750
13751 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
13752 Give up if glyph indices not supported. Use uniscribe obtained
13753 ABC widths for individual metrics. Map glyph clusters back to
13754 characters using fClusterStart flag. Return number of glyphs
13755 produced, not chars processed.
13756 (uniscribe_shape): Map char at FROM to current glyph.
13757
137582008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13759
13760 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
13761 Use SetMenuItemHierarchicalMenu.
13762
137632008-04-05 Jason Rumney <jasonr@gnu.org>
13764
13765 * image.c (pbm_load): Allow color values up to 65535.
13766 Throw an error if max_color_idx is outside the supported range.
13767 Report an error when image size is invalid.
13768 Read two bytes at a time when raw images have max_color_idx above 255.
13769
137702008-04-05 Eli Zaretskii <eliz@gnu.org>
13771
13772 * w32.c (readdir): If FindFirstFile/FindNextFile return in
13773 cFileName a file name that includes `?' characters, use the 8+3
13774 alias in cAlternateFileName instead.
13775
137762008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
13777
13778 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
13779 append "CCL: Quitted" when the CCL program is quitted.
13780 (setup_ccl_program): Initialize ccl->quit_silently to zero.
13781
13782 * ccl.h (struct ccl_program): New member quit_silently.
13783
137842008-04-05 Chong Yidong <cyd@stupidchicken.com>
13785
13786 * search.c (compile_pattern_1): Treat non-nil and non-string of
13787 search-spaces-regexp as nil.
13788
13789 * minibuf.c (Fassoc_string): Tweak docstring.
13790
137912008-04-05 Eli Zaretskii <eliz@gnu.org>
13792
13793 * dired.c (Ffile_attributes): Support inode numbers wider than 32
13794 bits. Remove ugly WINDOWSNT-specific kludge introduced on
13795 2008-03-14 to force inode be positive.
13796
13797 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
13798 _S_* ones, since we now use our own sys/stat.h.
13799 (stat, fstat): Don't mangle the inode number.
13800 (init_user_info): Don't restrict UID and GID to 0-60000 range.
13801
138022008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
13803
13804 * frame.h (struct frame): Give one more bit to `visible' since we use
13805 values larger than 1 to indicate obscured frames on ttys.
13806
13807 * keymap.c (Qkeymap_canonicalize): New var.
13808 (Fmap_keymap_internal): New fun.
13809 (describe_map): Use keymap-canonicalize.
13810
13811 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
13812 (Fundo_boundary): Set them.
13813 (syms_of_undo): Initialize them.
13814 (record_point): Use them instead of last_point_position*.
13815 (last_undo_buffer): Change type.
13816
138172008-04-04 Jason Rumney <jasonr@gnu.org>
13818
13819 * w32font.c (w32font_text_extents): Use font's ascent and descent.
13820 (recompute_cached_metrics): Don't set ascent and descent per char.
13821
13822 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
13823 (uniscribe_check_otf): Add GC protection before consing.
13824 Rearrange loop for counting features.
13825
138262008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
13827
13828 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
13829 buffer with byte-size of source buffer.
13830
138312008-04-03 Chong Yidong <cyd@stupidchicken.com>
13832
13833 * callint.c (Fcall_interactively): Handle temporary region even
13834 when shift-select-mode is off.
13835
138362008-04-03 Jason Rumney <jasonr@gnu.org>
13837
13838 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
13839
138402008-04-03 Kenichi Handa <handa@m17n.org>
13841
13842 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
13843 (CATEGORY_MASK_UTF_16): Likewise.
13844 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
13845 binary file.
13846 (detect_coding): Add null-byte detection for a binary file.
13847 (detect_coding_system): Likewise.
13848
138492008-04-03 Jason Rumney <jasonr@gnu.org>
13850
13851 * w32uniscribe.c: New file.
13852
13853 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
13854
13855 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
13856
13857 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
13858 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
13859 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
13860 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
13861 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
13862 (Qphonetic): New symbols.
13863 (syms_of_w32font): Initialize them.
13864 (font_supported_scripts): Use them.
13865 (w32font_list_family): List all charsets.
13866 (w32font_text_extents, recompute_cached_metrics): Fix metric
13867 calculations.
13868 (w32_enumfont_pattern_entity): Make full_type a DWORD.
13869 Give opentype fonts their own format.
13870 (font_matches_spec): New arguments backend and logfont.
13871 Handle :otf spec for uniscribe backend.
13872 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
13873 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
13874
13875 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
13876 font backend.
13877 (globals_of_w32fns): Initialize uniscribe font backend.
13878
13879 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
13880 dependencies.
13881 (w32uniscribe.$(O)): New file to build.
13882 (FONT_OBJ): Include w32uniscribe.$(O).
13883 (LIBS): Add uniscribe libraries.
13884
13885 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
13886
138872008-04-02 Chong Yidong <cyd@stupidchicken.com>
13888
13889 * callint.c (Vshift_select_mode): New var.
13890 (Finteractive): Document new ^ spec.
13891 (Fcall_interactively): Call handle-shift-selection if the ^ spec
13892 is present.
13893
13894 * keyboard.c (Vthis_command_keys_shift_translated): New var.
13895 (command_loop_1): Avoid running the direct display versions of
13896 forward-char and backward-char if shift-selection may occur.
13897 (read_key_sequence): Set Vthis_command_keys_shift_translated if
13898 shift-translation takes place.
13899
13900 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
13901 avoid clobbering by define-minor-mode.
13902
13903 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
13904 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
13905
13906 * syntax.c (Fforward_word): Add ^ interactive spec.
13907
13908 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
13909 (Fscroll_right): Add ^ interactive spec.
13910
139112008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
13912
13913 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
13914
13915 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
13916
13917 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
13918
139192008-03-31 Juri Linkov <juri@jurta.org>
13920
13921 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
13922
139232008-03-30 Jan Djärv <jan.h.d@swipnet.se>
13924
13925 * gtkutil.c (xg_set_geometry): Fix indentation.
13926 (xg_resize_outer_widget): Remove.
13927 (x_wm_size_hint_off): Fix indentation.
13928 (xg_frame_set_char_size): Call flush_and_sync after
13929 gtk_window_resize.
13930 (x_wm_set_size_hint): Pass NULL as geometry window to
13931 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
13932 Add menu bar and tool bar height to base height.
13933 (xg_update_frame_menubar, free_frame_menubar)
13934 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
13935 (update_frame_tool_bar, free_frame_tool_bar):
13936 Change xg_resize_outer_widget to xg_frame_set_char_size.
13937
139382008-03-30 Michael Albinus <michael.albinus@gmx.de>
13939
13940 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
13941 (Fdbus_call_method): New parameter TIMEOUT.
13942 (dbus-send-signal): Optimize UNGCPRO call.
13943
139442008-03-29 Juri Linkov <juri@jurta.org>
13945
13946 * window.c (Fdisplay_buffer): Move call to
13947 Vsplit_window_preferred_function out of conditions that check
13948 if window is eligible for vertical splitting.
13949 When Vsplit_window_preferred_function is non-nil, call it and use
13950 its non-nil return value as window. Otherwise, continue doing
13951 vertical splitting using Fsplit_window with arg horflag=nil.
13952 (syms_of_window) <Vsplit_window_preferred_function>: Change the
13953 default value from `split-window' to nil.
13954
139552008-03-29 Juri Linkov <juri@jurta.org>
13956
13957 * callint.c (Fcall_interactively): Revert 2008-03-16 change
13958 for interactive code letters 'b' and 'B'.
13959
139602008-03-29 Eli Zaretskii <eliz@gnu.org>
13961
13962 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
13963 multibyte string.
13964
139652008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
13966
13967 * keyboard.c (pending_funcalls): New var.
13968 (timer_check): Run it.
13969 (syms_of_keyboard): Initialize it.
13970 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
13971 (Vdelete_terminal_functions): New vars.
13972 (syms_of_terminal): Initialize them.
13973 (Fdelete_terminal): Run delete-terminal-functions.
13974 * xdisp.c (safe_eval): Rewrite.
13975 (safe_call2): New fun.
13976 * frame.c (Qdelete_frame_functions): New var.
13977 (syms_of_frame): Initialize it.
13978 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
13979 * lisp.h (safe_call2, pending_funcalls): Declare.
13980
139812008-03-28 Andreas Schwab <schwab@suse.de>
13982
13983 * indent.c (Fmove_to_column): Move declaration before statements.
13984
139852008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
13986
13987 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
13988 (struct frame): Use bit fields for boolean vars.
13989
13990 * process.c (server_accept_connection): Simplify naming.
13991 (emacs_get_tty_pgrp): Use SDATA.
13992
13993 * coding.c (decode_coding_object): Fix last change.
13994
139952008-03-27 Jason Rumney <jasonr@gnu.org>
13996
13997 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
13998
139992008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
14000
14001 * charset.c (Fdefine_charset_internal): Change the way of
14002 registering charsets in Vcharset_order_list.
14003 (syms_of_charset): Make the charset `eight-bit' supplementary.
14004
140052008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
14006
14007 * regex.c (EXTEND_BUFFER): Change order of pointer addition
14008 operations, to avoid having the difference between pointers
14009 overflow.
14010
140112008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
14012
14013 * indent.c (check_display_width): New fun.
14014 (scan_for_column): Use it.
14015
14016 * data.c (syms_of_data): Mark most-positive-fixnum and
14017 most-negative-fixnum as constants.
14018
14019 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
14020
14021 * indent.c (scan_for_column): Extract from current_column_1.
14022 Merge with the same code from Fmove_to_column.
14023 (current_column_1, Fmove_to_column): Use it.
14024
140252008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
14026
14027 * keymap.c (map_keymap_internal): New fun.
14028 (map_keymap): Use it.
14029 (Fmap_keymap_internal): New fun.
14030 (Fmap_keymap): Remove left-out test from before make_save_value.
14031
14032 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
14033
14034 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
14035 Use XCAR/XCDR.
14036
14037 * process.h (struct Lisp_Process): Remove filter_multibyte.
14038 * process.c (QCfilter_multibyte): Remove.
14039 (setup_process_coding_systems): Don't use filter_multibyte.
14040 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
14041 (read_process_output): Don't adjust multibyteness to filter_multibyte.
14042 (Fset_process_filter_multibyte): Change the coding-system to
14043 approximate the previous behavior.
14044 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
14045 coding-system.
14046
14047 * coding.c (decode_coding_object): When not decoding into a buffer,
14048 obey the coding system's preference of (uni|multi)byte.
14049
140502008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
14051
14052 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
14053 every char is changed and has a different byte-length.
14054 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
14055 Fix int -> EMACS_INT.
14056
140572008-03-23 David Hansen <david.hansen@gmx.net>
14058
14059 * dbusbind.c (xd_read_message): Remove extra copying of message
14060 strings. Check for NULL `interface' or `member'.
14061
140622008-03-22 Eli Zaretskii <eliz@gnu.org>
14063
14064 * w32.c (readdir): If FindFirstFile/FindNextFile return in
14065 cFileName a file name that includes `?' characters, use the 8+3
14066 alias in cAlternateFileName instead.
14067
140682008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
14069
14070 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
14071
140722008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
14073
14074 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
14075 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
14076 work on current_buffer only instead (that was already the case
14077 for some of the code anyway).
14078 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
14079 (temp_set_point, temp_set_point_both): Use EMACS_INT.
14080 (SET_PT, SET_PT_BOTH): Adjust.
14081 * intervals.h (set_point, temp_set_point, set_point_both)
14082 (temp_set_point_both): Remove redundant declarations.
14083
140842008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
14085
14086 * fileio.c (Finsert_file_contents):
14087 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
14088 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
14089 when buffer != current_buffer anyway.
14090
140912008-03-20 Andreas Schwab <schwab@suse.de>
14092
14093 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
14094 as default.
14095
140962008-03-19 Jason Rumney <jasonr@gnu.org>
14097
14098 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
14099 (syms_of_w32fns): Initialize them.
14100 (HOURGLASS_ID): New constant.
14101 (x_window_to_frame): Don't check hourglass_window.
14102 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
14103 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
14104 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
14105 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
14106 Only change the cursor if hourglass is not active.
14107 (Fx_create_frame): Initialize frame's current_cursor.
14108 (hourglass_atimer): Remove.
14109 (hourglass_started): New function.
14110 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
14111 (show_hourglass): Adapt to w32, changing argument to frame.
14112
14113 * w32term.h (struct w32_output): Remove hourglass_window.
14114 Add current_cursor.
14115
14116 * eval.c (call_debugger, Fsignal):
14117 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
14118 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
14119 (Fexecute_extended_command, cancel_hourglass_unwind):
14120 * minibuf.c (read_minibuf):
14121 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
14122
141232008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
14124
14125 * window.c (run_funs): New fun.
14126 (run_window_configuration_change_hook): Use it to run the buffer-local
14127 and the global part of the hook.
14128
14129 * xdisp.c (format_mode_line_unwind_data): Add window argument.
14130 (unwind_format_mode_line): Restore selected window.
14131 (x_consider_frame_title, Fformat_mode_line): Set selected window.
14132
141332008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
14134
14135 * editfns.c (Fchar_equal): Check they are valid characters.
14136
14137 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
14138
141392008-03-17 Andreas Schwab <schwab@suse.de>
14140
14141 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
14142 against a charset.
14143
14144 * lisp.h (Fbuffer_list): Declare.
14145
141462008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 14147
aac0c6e3
MR
14148 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
14149 handlebox_widget is != 0.
14150
141512008-03-16 Juri Linkov <juri@jurta.org>
14152
14153 * callint.c (Fcall_interactively): For interactive code letters
14154 'b' and 'B' put the buffer list into the list of default "future"
14155 values of the minibuffer.
14156
141572008-03-16 Andreas Schwab <schwab@suse.de>
14158
14159 * keyboard.c (read_key_sequence): Fix downcasing of letters with
14160 modifiers.
14161
14162 * regex.c (re_match_2_internal): Correct matching of a charset
14163 against latin-1 characters.
14164
141652008-03-16 Kenichi Handa <handa@m17n.org>
14166
14167 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
14168 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
14169 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
14170 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
14171 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
14172 CHAR_STRING_ADVANCE.
14173 (produce_chars): Fix for the case that the source and the
14174 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
14175 instead of CHAR_STRING_ADVANCE.
14176 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
14177 STRING_CHAR_ADVANCE.
14178
141792008-03-15 Andreas Schwab <schwab@suse.de>
14180
14181 * regex.c (re_match_2_internal): Correct matching of eight bit
14182 characters in unibyte strings.
14183
141842008-03-15 Martin Rudalics <rudalics@gmx.at>
14185
14186 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
14187 at end of range when it coincides with the end of the buffer.
14188
141892008-03-14 Eli Zaretskii <eliz@gnu.org>
14190
14191 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
14192
14193 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
14194
141952008-03-14 Jason Rumney <jasonr@gnu.org>
14196
14197 * editfns.c (initial_tz): New variable.
14198 (syms_of_editfns): Initialize it.
14199 (Fset_time_zone_rule): Set it when first called.
14200 Use it when TZSTRING is nil.
14201
14202 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
14203 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
14204 (monitor_from_point_fn, get_monitor_info_fn): New globals.
14205 (globals_of_w32fns): Initialize them.
14206 (compute_tip_xy): Use them to position tooltips.
14207
142082008-03-14 Glenn Morris <rgm@gnu.org>
14209
14210 * emacs.c (main): Revert previous change.
14211 (standard_args): Revert -internal-script back to -scriptload,
14212 and remove the long-option form.
14213
142142008-03-13 Glenn Morris <rgm@gnu.org>
14215
14216 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
14217 Remove option -enable-font-backend.
14218
142192008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
14220
14221 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
14222
142232008-03-11 Jan Djärv <jan.h.d@swipnet.se>
14224
14225 * xterm.c (x_connection_closed): For GTK: If this is the last
14226 terminal just exit without closing the display.
14227
142282008-03-11 Jason Rumney <jasonr@gnu.org>
14229
14230 * w32font.c (w32font_full_name): Use floor to round.
14231
f0131492 142322008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
14233
14234 * sound.c (alsa_configure): Declare vol at beginning of block.
14235
14236 * fontset.c (Ffontset_info): Remove extra semicolon.
14237
142382008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
14239
14240 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
14241 size of resulting string.
14242
142432008-03-10 Jason Rumney <jasonr@gnu.org>
14244
14245 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
14246
142472008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14248
14249 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
14250 Don't pretend as if characters with display property haven't been
14251 consumed for string-replacing-string case.
14252
142532008-03-08 Kim F. Storm <storm@cua.dk>
14254
14255 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
14256 (get_next_display_element, next_element_from_string)
14257 (next_element_from_ellipsis, next_element_from_buffer): Use it.
14258
142592008-03-08 Andreas Schwab <schwab@suse.de>
14260
14261 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
14262
142632008-03-06 Jason Rumney <jasonr@gnu.org>
14264
14265 * w32font.c (w32_registry): Take font_type argument. Use ANSI
14266 when charset not specified. Only translate ANSI to unicode when
14267 font_type is truetype.
14268 (w32font_coverage_ok): New function.
14269 (add_font_entity_to_list): Use it to filter unsuitable fonts.
14270
142712008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
14272
14273 * lread.c (Fread_char): Resolve modifiers.
14274 (Fread_char_exclusive): Likewise.
14275
14276 * character.c (char_resolve_modifier_mask): New function.
14277 (char_string): Use char_resolve_modifier_mask.
14278 (Fchar_resolve_modifiers): New function.
14279 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
14280 function.
14281
142822008-03-04 Jason Rumney <jasonr@gnu.org>
14283
14284 * makefile.w32-in: Always include w32font.c in the build.
14285 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
14286
142872008-03-04 Andreas Schwab <schwab@suse.de>
14288
14289 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
14290 (versionclean): Likewise.
14291
142922008-03-04 Juanma Barranquero <lekktu@gmail.com>
14293
14294 * .cvsignore: Add oo.
14295
142962008-03-03 Andreas Schwab <schwab@suse.de>
14297
14298 * coding.c (decode_coding_object): Inhibit gap shrinking while
14299 decoding in place.
14300
143012008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
14302
14303 * w32term.c: Remove unused include "gnu.h".
14304 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
14305
14306 * gnu.h: Rename to ...
14307 * emacs-icon.h: ... this.
14308 * xterm.c: Use emacs-icon.h instead of gnu.h.
14309 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
14310
143112008-03-03 Juanma Barranquero <lekktu@gmail.com>
14312
14313 * w32font.c: Include math.h.
14314
143152008-03-03 Jason Rumney <jasonr@gnu.org>
14316
14317 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
14318 Compute options separately.
14319 (w32font_open_internal): Set glyph_idx before caching metrics.
14320
14321 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
14322 Define if system headers don't.
14323 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
14324 (w32font_encode_char): Don't declare here.
14325
14326 * w32font.c (Quniscribe, QCformat): New symbols.
14327 (syms_of_w32font): Define them.
14328 (w32font_has_char): Indicate uncertainty.
14329 (w32font_encode_char): Encode as glyph point. Make static.
14330 (recompute_cached_metrics): New function.
14331 (w32font_open_internal): Use it. Set font to use glyph points
14332 initially. Set format based on type of font.
14333 (w32font_text_extents, w32font_draw): Optionally use glyph points.
14334 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
14335 on it. Set format based on information available here.
14336 (add_font_entity_to_list): Identify backend based on opentype_only.
14337
143382008-03-02 Andreas Schwab <schwab@suse.de>
14339
14340 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
14341
14342 * coding.c (decode_coding_big5, produce_chars):
14343 Fix typos in last change.
14344
143452008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
14346
14347 * gnu.h: New icon.
14348
143492008-03-02 Kenichi Handa <handa@m17n.org>
14350
14351 * coding.c (decode_coding_utf_8): When eol-type of CODING is
14352 `dos', don't decode '\r' if that is the last in the source.
14353 (decode_coding_utf_16, decode_coding_emacs_mule)
14354 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14355 (decode_coding_raw_text, decode_coding_charset): Likewise.
14356 (produce_chars): Don't decode EOL here. Use EMACS_INT.
14357
143582008-03-01 Jason Rumney <jasonr@gnu.org>
14359
14360 * w32font.c (w32font_full_name): Report point size for scalable fonts.
14361
143622008-03-01 Kim F. Storm <storm@cua.dk>
14363
14364 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
14365
143662008-03-01 Jason Rumney <jasonr@gnu.org>
14367
14368 * w32font.c (w32font_full_name): New function.
14369 (w32font_open_internal): Use it.
14370
143712008-03-01 Kim F. Storm <storm@cua.dk>
14372
14373 * dispnew.c (line_draw_cost): Fix invalid glyph check.
14374
143752008-03-01 Jason Rumney <jasonr@gnu.org>
14376
14377 * font.c (font_unparse_fcname): Increase len when style is a symbol.
14378
143792008-03-01 Jan Djärv <jan.h.d@swipnet.se>
14380
14381 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
14382 xg_frame_resized when the event is for the edit widget.
14383
14384 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
14385
14386 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
14387 set_char_size.
14388 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
14389 operations on widgets here. Just set frame size if needed.
14390 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
14391 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
14392 (x_wm_set_size_hint): Set size hints on the edit widget only, not
14393 the whole frame.
14394 (xg_create_tool_bar): Move attachment of the tool bar to
14395 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
14396 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
14397
143982008-03-01 Jason Rumney <jasonr@gnu.org>
14399
14400 * w32fns.c (w32_msg_pump): Disable debug code.
14401
144022008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14403
14404 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
14405
144062008-02-29 Chong Yidong <cyd@stupidchicken.com>
14407
14408 * xdisp.c (next_overlay_string): Don't set
14409 overlay_strings_at_end_processed_p if we're currently reading from
14410 a display string.
14411
144122008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
14413
14414 * xdisp.c (get_overlay_strings_1): Fix typo.
14415
144162008-02-29 Chong Yidong <cyd@stupidchicken.com>
14417
14418 * xdisp.c (get_overlay_strings_1): Add missing argument type.
14419
144202008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
14421
14422 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
14423
14424 * xdisp.c (display_mode_element): Cancel the previous change.
14425 (decode_mode_spec): Likewise.
14426 (handle_auto_composed_prop): Don't make composition if it->string
14427 is a string.
14428
144292008-02-27 Kim F. Storm <storm@cua.dk>
14430
14431 * lisp.h (GLYPH): Change type from int to struct with separate char
14432 and face_id members.
14433 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
14434 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
14435 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
14436 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
14437 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
14438 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
14439 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
14440 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
14441 handle new Lisp glyph code encoding, either an integer or a cons.
14442
14443 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
14444 (GLYPH_ALIAS): Delete.
14445 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
14446 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
14447 (GLYPH_FROM_CHAR): Replace macro by ...
14448 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
14449
14450 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
14451 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
14452 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
14453 (GLYPH_INVALID_P): New macro.
14454 (spec_glyph_lookup_face): Update prototype.
14455
14456 * dispnew.c (line_draw_cost): Adapt to new glyph type.
14457 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
14458 new glyph code encoding.
14459 (spec_glyph_lookup_face): No return value; update passed glyph instead.
14460 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
14461
14462 * xdisp.c (get_next_display_element, next_element_from_display_vector):
14463 Adapt to new glyph type and new glyph code encoding.
14464
14465 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
14466
14467 * indent.c (current_column, current_column_1, Fmove_to_column)
14468 (compute_motion): Adapt to new glyph code encoding.
14469
14470 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
14471
144722008-02-27 Chong Yidong <cyd@stupidchicken.com>
14473
14474 * process.c (wait_reading_process_output): Check for window
14475 changes caused by timers.
14476 Suggested by Johan Bockgård.
14477
144782008-02-27 Glenn Morris <rgm@gnu.org>
14479
14480 * emacs.c (USAGE1): Add `--disable-font-backend'.
14481
144822008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
14483
14484 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
14485 is made to the buffer.
14486
144872008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
14488
14489 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
14490 (face_at_string_position):
14491 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
14492 (face_at_string_position):
14493 * xdisp.c (display_string, next_overlay_change):
14494 * buffer.h (overlays_at):
14495 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
14496 Update callers.
14497
144982008-02-26 Chong Yidong <cyd@stupidchicken.com>
14499
14500 * editfns.c (Fformat): Doc fix.
14501
145022008-02-26 Juanma Barranquero <lekktu@gmail.com>
14503
14504 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
14505 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
14506 (Ffont_otf_alternates, Fquery_font): Doc fixes.
14507
145082008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
14509
14510 * buffer.c (Fbuffer_swap_text): New function.
14511 (syms_of_buffer): Defsubr it.
14512
145132008-02-25 Chong Yidong <cyd@stupidchicken.com>
14514
14515 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
14516
145172008-02-25 Jason Rumney <jasonr@gnu.org>
14518
14519 * w32font.c (w32font_draw): Draw one character at a time when padding.
14520
145212008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
14522
14523 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
14524 Handle a nil arg. Use run_window_configuration_change_hook.
14525 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
14526 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
14527 Use run_window_configuration_change_hook.
14528
145292008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
14530
14531 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
14532 1-pixel width.
14533
145342008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
14535
14536 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
14537 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
14538 if the glyph in the font is zero pixel with.
14539
14540 * dispextern.h (struct glyph_string): New member padding_p.
14541
14542 * w32font.c (w32font_draw): Pay attention to s->padding_p.
14543
14544 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
14545
14546 * xfont.c (xfont_draw): Pay attention to s->padding_p.
14547
14548 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
14549
14550 * font.c: If the font driver doesn't have `shape' function, return Qnil.
14551
145522008-02-25 Jason Rumney <jasonr@gnu.org>
14553
14554 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
14555
145562008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
14557
14558 Allow fine-grained image-cache flushing.
14559 * dispextern.h (struct image): Add `dependencies' field.
14560 (clear_image_caches): Change arg to Lisp_Object.
14561 * image.c (make_image): Initialize `dependencies' field.
14562 (clear_image_cache): Change arg to allow fine-grained flushing.
14563 Perform the flush even if image-cache-eviction-delay is nil.
14564 (clear_image_caches): Change arg to Lisp_Object.
14565 (Fclear_image_cache): Expand meaning of the argument.
14566 (mark_image): Mark `dependencies' field.
14567 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
14568 (lface_hash): Use XHASH rather than XFASTINT.
14569 (face_at_buffer_position): Fix int -> EMACS_INT position.
14570 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
14571 (select_frame_for_redisplay): Remove code duplication.
14572 (redisplay_internal): Adapt arg to call to clear_image_caches.
14573
145742008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
14575
14576 * s/vms4-0.h:
14577 * s/vms4-2.h:
14578 * s/vms4-4.h:
14579 * s/vms5-5.h: Remove, unused.
14580
14581 * s/irix5-2.h:
14582 * s/irix6-0.h:
14583 * s/riscos5.h:
14584 * s/mach-bsd4-3.h:
14585 * m/mips4.h: Remove files for obsolete systems.
14586
14587 * Makefile.in:
14588 * filelock.c:
14589 * unexmips.c:
14590 * m/hp9000s300.h:
14591 * m/iris4d.h:
14592 * s/aix3-1.h:
14593 * s/hpux.h:
14594 * s/msdos.h:
14595 * s/usg5-0.h:
14596 * s/usg5-2-2.h:
14597 * s/usg5-2.h:
14598 * s/usg5-3.h: Remove references to obsolete variables.
14599
14600 * s/irix5-0.h: Remove, move all the contents ...
14601 * s/irix6-5.h: ... here. Simplify.
14602 * config.in: Regenerate.
14603
146042008-02-24 Jason Rumney <jasonr@gnu.org>
14605
14606 * w32term.c (x_draw_glyph_string_background): Clear the background
14607 manually when cleartype is in use.
14608 (x_draw_glyph_string_foreground): Draw text transparently when
14609 cleartype is in use.
14610
14611 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
14612 a font into it unless we have to.
14613
146142008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
14615
14616 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
14617 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 14618
aac0c6e3
MR
146192008-02-18 Jason Rumney <jasonr@gnu.org>
14620
14621 * w32fns.c (Fw32_shell_execute): Encode parameters.
14622
146232008-02-09 Eli Zaretskii <eliz@gnu.org>
14624
14625 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
14626
146272008-02-05 Juanma Barranquero <lekktu@gmail.com>
14628
14629 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
14630
146312008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
14632
14633 * xterm.c (x_set_offset): Don't change the gravity if
14634 CHANGE_GRAVITY is -1.
14635
146362008-02-23 Chong Yidong <cyd@stupidchicken.com>
14637
14638 * fileio.c (auto_save_error_occurred): New var.
14639 (auto_save_error): Set it.
14640 (Fdo_auto_save): Don't overwrite the error message if an auto-save
14641 error occurred.
14642
146432008-02-23 Eli Zaretskii <eliz@gnu.org>
14644
14645 * w32.c (globals_of_w32): Add initializations for
14646 g_b_init_get_sid_sub_authority and
14647 g_b_init_get_sid_sub_authority_count.
14648
146492008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
14650
14651 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
14652 (font_parse_xlfd): Use them for sanity check.
14653 (Finternal_set_font_style_table): Make sure the table is bijective.
14654
14655 Consolidate the image_cache to the terminal struct.
14656 * termhooks.h (P_): Remove redundant def.
14657 (struct terminal): New field `image_cache'.
14658 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
14659 of FRAME_X_IMAGE_CACHE.
14660 * xterm.h (struct x_display_info): Remove image_cache field.
14661 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
14662 * w32term.h (struct w32_display_info): Remove image_cache field.
14663 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
14664 * macterm.h (struct mac_display_info): Remove image_cache field.
14665 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
14666 * xterm.c (x_term_init):
14667 * w32term.c (w32_term_init):
14668 * macterm.c (mac_term_init): Set the image_cache in the terminal.
14669 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
14670 Remove declarations.
14671 (clear_image_caches, mark_image_cache): New declarations.
14672 * xfaces.c (clear_face_cache):
14673 * xdisp.c (redisplay_internal): Use clear_image_caches.
14674 * image.c (clear_image_cache): Don't check that a frame is on
14675 a window-system before checking if it shares the same cache.
14676 (clear_image_caches): New function.
14677 (Fclear_image_cache): Use it.
14678 (mark_image): Move from allo.c.
14679 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
14680 * alloc.c (mark_image, mark_image_cache): Move to image.c.
14681 (mark_object): Don't call mark_image_cache for frames.
14682 (mark_terminals): Call mark_image_cache.
14683
14684 * lisp.h (Fdelete_terminal): Declare.
14685
14686 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
14687 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
14688 wrong_type_argument.
14689
146902008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
14691
14692 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
14693 malayalam.el, and tamil.el. Add sinhala.el.
14694
146952008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
14696
14697 * xterm.c (x_connection_closed): Consolidate identical tests.
14698 (x_delete_terminal): Don't crash if called via x_connection_closed.
14699
147002008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
14701
14702 * xdisp.c (decode_mode_spec): New arg string.
14703 (display_mode_element): Adjust for the above change.
14704
147052008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
14706
14707 * callint.c (Fcall_interactively): Use AREF.
14708
147092008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
14710
14711 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
14712
147132008-02-18 Jan Djärv <jan.h.d@swipnet.se>
14714
14715 * xfns.c (Fx_show_tip): Set string to " " if empty.
14716
147172008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
14718
14719 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
14720 with Qt.
14721
147222008-02-17 Kenichi Handa <handa@m17n.org>
14723
14724 * ftfont.c (ftfont_shape): Return Lispy number.
14725
14726 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
14727 for GCs.
14728 (Finternal_set_font_selection_order): Call font_update_sort_order
14729 only when enable_font_backend is set.
14730 (realize_x_face): Set face->font_info to that of default face only
14731 when enable_font_backend is set.
14732
14733 * xdisp.c (handle_composition_prop): Set it->c to the fist
14734 character of the composed region.
14735 (fill_composite_glyph_string): Set base_face->font_info to
14736 s->font_info. Get a face for ascii from base_face->ascii_face.
14737 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
14738 with a face already decided.
14739 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
14740 non-negative.
14741 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
14742 call font_prepare_composition unconditionally.
14743
14744 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
14745
14746 * xterm.h (struct x_display_info): New member font.
14747
14748 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
14749 (x_set_mouse_face_gc, x_new_font): Likewise.
14750 (x_term_init): Setup display_info->font.
14751 (x_delete_terminal): Free display_info->font.
14752
14753 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
14754
14755 * ftxfont.c (ftxfont_default_fid): Delete it.
14756 (ftxfont_open): Set xfont->fid to 0.
14757 (ftxfont_end_for_frame): Clear data specific to the frame and the
14758 font-driver.
14759
14760 * xftfont.c (xftfont_default_fid): Delete it.
14761 (xftfont_open): Set xfont->fid to 0.
14762
14763 * fontset.c (FONTSET_OBJLIST): New macro.
14764 (fontset_find_font): Update font-object list of the fontset.
14765 (free_realized_fontset): New function.
14766 (free_face_fontset): Call free_realized_fontset.
14767 (Ffont_info): Call font_close_object only when enable_font_backend
14768 is set.
14769
14770 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
14771 [HAVE_NTGUI]: Include w32term.h.
14772 [MAC_OS]: Include macterm.ch.
14773 (font_otf_ValueRecord): Use make_number.
14774 (font_finish_cache): Fix handling of reference count.
14775 (font_clear_cache): Update num_fonts.
14776 (font_open_entity): Update smallest_char_width and
14777 smallest_font_height of the frame.
14778 (font_close_object): Update num_fonts.
14779 (Fclear_font_cache): Fix finding the target cache data.
14780
147812008-02-16 Glenn Morris <rgm@gnu.org>
14782
14783 * fontset.c (Finternal_char_font): Fix compilation warning.
14784
147852008-02-16 Eli Zaretskii <eliz@gnu.org>
14786
14787 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
14788 instead of char arrays. Enlarge the size of array passed to
14789 get_token_information.
14790
14791 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
14792 warnings.
14793
147942008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
14795
14796 * .gdbinit: Don't set `args', it breaks gdb --args.
14797
147982008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
14799
14800 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
14801 within a narrowed buffer.
14802
148032008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
14804
14805 * coding.c (decode_coding_object, encode_coding_object):
14806 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
14807
148082008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
14809
14810 * coding.c (coding_set_destination): Use BEG_BYTE rather than
14811 hardcoding 1.
14812 (detect_coding_system):
14813 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
14814 (string_char_to_byte, string_byte_to_char, insert_from_gap):
14815 * insdel.c (insert_from_gap):
14816 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
14817 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
14818 (string_to_multibyte):
14819 * character.c (chars_in_text, multibyte_chars_in_text):
14820 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
14821
14822 * character.h (FETCH_STRING_CHAR_ADVANCE)
14823 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
14824 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
14825 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
14826
14827 * casefiddle.c (casify_region): Only call after-change and composition
14828 functions on the part of the region that was changed.
14829
14830 * keyboard.c (read_avail_input):
14831 * frame.c (Fdelete_frame): Call Fdelete_terminal.
14832
148332008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
14834
14835 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
14836 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
14837
148382008-02-11 Juanma Barranquero <lekktu@gmail.com>
14839
14840 * w32menu.c (push_submenu_start, push_submenu_end)
14841 (push_left_right_boundary, push_menu_pane, push_menu_item):
14842 * keyboard.c (read_key_sequence): Don't pass args with side effects
14843 to AREF, it fails when compiling with -DENABLE_CHECKING.
14844
148452008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
14846
14847 * Makefile.in (${lispsource}international/charprop.el):
14848 Delete this target.
14849
14850 * search.c (boyer_moore): Fix incorrect synching of the trunk and
14851 emacs-unicode-2.
14852
148532008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
14854
14855 * terminal.c (Fdelete_terminal): Clean up the `force' path.
14856
148572008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
14858
14859 * frame.c (Qnoelisp): New symbol.
14860 (syms_of_frame): Initialize it.
14861 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
14862 harmless Elisp code, from a strong `force' from x_connection_closed.
14863 * frame.h (Qnoelisp): Declare.
14864 * xterm.c (x_connection_closed): Pass `noelisp'.
14865
14866 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
14867 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
14868 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
14869 rather than `int' for the type of `type'.
14870
148712008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
14872
14873 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
14874
14875 * Makefile.in (GNUC): Remove support for gcc-1.x.
14876
148772008-02-10 Richard Stallman <rms@gnu.org>
14878
14879 * lisp.h (ASET): Use AREF, not ASLOT.
14880
148812008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
14882
14883 * lisp.h (ASET): Check bounds.
14884
148852008-02-10 Glenn Morris <rgm@gnu.org>
14886
14887 * buffer.c (mode-name): Doc fix.
14888
148892008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
14890
14891 * Makefile.in:
14892 * emacs.c:
14893 * gmalloc.c:
14894 * keyboard.c:
14895 * lisp.h:
14896 * m/ibm370aix.h:
14897 * process.c:
14898 * regex.c:
14899 * s/hpux.h:
14900 * sysdep.c:
14901 * sysselect.h:
14902 * systty.h:
14903 * unexec.c:
14904 * w32term.c:
14905 * xsmfns.c:
14906 * xterm.c: Remove code that deals with obsolete variables.
14907
14908 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
14909
14910 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
14911 nothing else needs it anymore.
14912
149132008-02-09 Eli Zaretskii <eliz@gnu.org>
14914
14915 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
14916 instead of unibyte_char_to_multibyte.
14917
149182008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
14919
14920 * s/gnu-linux.h: Remove commented out code.
14921
14922 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
14923
14924 * Makefile.in: Update what RMS says about using autoconf.
14925 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
14926 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
14927 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
14928 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
14929
149302008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
14931
14932 * keymap.c (Fkey_description): Move side effect outside of macro call.
14933
14934 * xfaces.c (Finternal_make_lisp_face):
14935 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
14936
14937 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
14938 (syms_of_fontset): Use ASET.
14939
14940 * fns.c (concat): Move side effect outside of macro call.
14941 (hash_clear): Use ASET.
14942
149432008-02-08 Richard Stallman <rms@gnu.org>
14944
14945 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
14946 If FORCE, and frame has a surrogate minibuffer for another frame,
14947 delete the other frame first.
14948
149492008-02-07 Timo Savola <timo.savola@iki.fi>
14950
14951 * xterm.c (x_detect_focus_change): Handle embed client message.
14952 (handle_one_xevent): Ditto.
14953 (handle_one_xevent): If embedded and we get a button press/release,
14954 request focus.
14955 (xembed_set_info, xembed_send_message): New functions.
14956 (x_make_frame_visible): Call xembed_set_info if embedded.
14957 (x_make_frame_invisible): Call xembed_set_info if embedded.
14958 (x_term_init): Initialize Xatom_XEMBED.
14959 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
14960 (x_iconify_frame): Ditto.
14961
14962 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
14963 (enum xembed_info, enum xembed_message, enum xembed_focus)
14964 (enum xembed_modifier, enum xembed_accelerator): New.
14965 (xembed_set_info, xembed_send_message): Declare.
14966 (FRAME_X_EMBEDDED_P): New.
14967
14968 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
14969 gtk_plug_new.
14970
14971 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
14972 window ID of a frame.
14973 (x_window): Reparent frame if embedded.
14974 (Fx_create_frame): Don't set border width if embedded.
14975
14976 * emacs.c (USAGE3): Add --parent-id.
14977 (standard_args): Ditto.
14978
149792008-02-07 Jan Djärv <jan.h.d@swipnet.se>
14980
14981 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
14982
149832008-02-07 Jim Meyering <meyering@redhat.com>
14984
14985 Use "do...while (0)", not "if (1)...else" in macro definitions.
14986 The latter provokes a warning from gcc about the empty else, when
14987 followed by ";". Also, without that trailing semicolon, it would
14988 silently swallow up any following statement.
14989 * syntax.h (SETUP_SYNTAX_TABLE)
14990 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
14991 * buffer.h (DECODE_POSITION): Likewise.
14992 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
14993 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
14994 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
14995 (FETCH_CHAR_ADVANCE): Likewise.
14996 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
14997
149982008-02-07 Jim Meyering <meyering@redhat.com>
14999
15000 * lread.c [lint]: Don't include <sys/inode.h>.
15001
150022008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
15003
15004 * xselect.c (x_handle_dnd_message):
15005 * xmenu.c (digest_single_submenu, xmenu_show):
15006 * xdisp.c (with_echo_area_buffer_unwind_data)
15007 (format_mode_line_unwind_data, unwind_format_mode_line)
15008 (display_menu_bar):
15009 * eval.c (Ffetch_bytecode):
15010 * doc.c (store_function_docstring):
15011 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
15012 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
15013 * buffer.c (add_overlay_mod_hooklist): Use ASET.
15014
150152008-02-07 Kenichi Handa <handa@m17n.org>
15016
15017 * ftxfont.c (ftxfont_open): Don't set
15018 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
15019
15020 * ftfont.c (ftfont_open): Fix previous change.
15021
150222008-02-06 Jason Rumney <jasonr@gnu.org>
15023
15024 * w32font.c (w32font_text_extents): Fill in lbearing metric.
15025 Use cached metrics for ASCII characters.
15026 (w32font_open_internal): Don't set font's owning_frame.
15027 Cache metrics for ASCII characters.
15028
15029 * w32font.h (struct w32font_info): Add ascii_metrics.
15030 Remove owning_frame.
15031
150322008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
15033
15034 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
15035 to negative value.
15036
15037 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
15038
15039 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
15040
15041 * charset.c (syms_of_charset): Set QCtest and Qeq.
15042
150432008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
15044
15045 * process.c (Fstart_process):
15046 * callproc.c (Fcall_process): Handle the case where
15047 Funhandled_file_name_directory returns nil.
15048
15049 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
15050 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
15051 * font.c (check_gstring): Use them and AREF to access the vector before
15052 we know it's really a gstring.
15053 (Ffont_shape_text): Fix typo.
46e722a9 15054 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
15055
15056 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
15057 Declare.
15058
15059 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
15060
150612008-02-05 Jason Rumney <jasonr@gnu.org>
15062
15063 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
15064 Set smallest_font_height and smallest_char_width in display info.
15065
150662008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
15067
15068 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
15069
150702008-02-05 Miles Bader <miles@gnu.org>
15071
15072 * xfaces.c (get_lface_attributes, merge_named_face)
15073 (lookup_named_face, lookup_derived_face, realize_named_face):
15074 Revert 2008-02-01 change by cyd@stupidchicken.com.
15075
150762008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
15077
15078 * fontset.c (Ffontset_info): Handle the case of inhibitting the
15079 fallback fonts.
15080 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
15081
150822008-02-04 Jason Rumney <jasonr@gnu.org>
15083
15084 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
15085 set full_name.
15086 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
15087
150882008-02-03 Jason Rumney <jasonr@gnu.org>
15089
15090 * makefile.w32-in (OBJ1): Include font.o here.
15091 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
15092
150932008-02-02 Jason Rumney <jasonr@gnu.org>
15094
15095 * makefile.w32-in (temacs): Bump EMHEAP to 21.
15096
150972008-02-01 Jason Rumney <jasonr@gnu.org>
15098
15099 * s/cygwin.h: Define VIRT_ADDR_VARIES.
15100
15101 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
15102
151032008-02-01 Andreas Schwab <schwab@suse.de>
15104
15105 * Makefile.in (shortlisp, lisp): Update for rename of
15106 ../lisp/language/myanmar.el.
15107
151082008-02-01 Chong Yidong <cyd@stupidchicken.com>
15109
15110 * xfaces.c (get_lface_attributes): Delete function.
15111 (merge_named_face, lookup_named_face, lookup_derived_face)
15112 (realize_named_face): Call lface_from_face_name directly, and use
15113 the fact that merge_face_vectors does not alter its FROM argument.
15114
151152008-02-01 Jason Rumney <jasonr@gnu.org>
15116
15117 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
15118 input in the default locale. Handle non-Unicode multibyte input.
15119
151202008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15121
15122 * fontset.c (reorder_font_vector): Exclude nil elements from the
15123 font group. Don't try multiple fonts.
15124 (fontset_font): Adjust for the above change.
15125 (Finternal_char_font): Return nil if the found font doesn't
15126 contain the character ch.
15127
15128 * Makefile.in (lisp, shortlisp): Add cham.el.
15129
151302008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15131
15132 * font.h (FONTP): Make it return 1 also for a font-object.
15133
15134 * .gdbinit (xfontset): New function.
15135
15136 * font.c (font_find_for_lface): Check if the character C is
15137 supported or not only for the first font.
15138
15139 * fontset.c (reorder_font_vector): Fix typo.
15140 (fontset_find_font): Don't add a font-spec specifying a script.
15141 Use 0 (not Qt) for the indication of empty font-group. Change the
15142 format of RFONT-DEF. Return Qt if no font in the font-group
15143 support the character.
15144 (fontset_font): Adjust for the above change. If no font was
15145 found the character, remember that.
15146 (face_for_char): Adjust for the change of RFONT-DEF.
15147 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
15148 no font for the target.
15149 (Finternal_char_font): Adjust for the change of RFONT-DEF.
15150
151512008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15152
15153 * font.c (font_load_for_face): Handle the case that the font in
15154 face->lface is a string.
15155
151562008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15157
15158 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
15159
151602008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15161
15162 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
15163 Fix previous change. If the frame is not on a window system,
15164 signal an error.
15165
151662008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15167
15168 * coding.c (decode_coding_object, encode_coding_object): Adjust
15169 marker positions after conversion.
15170
15171 * lisp.h (struct Lisp_Marker): New member need_adjustment.
15172
151732008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15174
15175 * font.c (font_find_for_lface): Fix the handling of the return
15176 value of font_has_char.
15177 (Ffont_shape_text): Fix previous change.
15178
15179 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
15180 (fontset_ref_and_range): Delete it.
15181 (fontset_find_font): Call char_table_ref_and_range instead of
15182 FONTSET_REF_AND_RANGE.
15183 (make_fontset): Don't setup font groups of Latin here.
15184 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
15185 (new_fontset_from_font): Make the specified font the default for
15186 all Latin characters.
15187
151882008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15189
15190 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
15191 is on a window system before accessing the fontset of the frame.
15192
151932008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15194
15195 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
15196
15197 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
15198 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
15199
15200 * font.c (Ffont_shape_text): If the font driver doesn't have a
15201 shaper function, make zero-width glyphs to have at least one-pixel
15202 width. Fix setting of `to' field of glyphs.
15203
152042008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15205
15206 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
15207 glyphs.
15208
15209 * font.h (struct font_driver): Improve docstring of member `shape'.
15210
152112008-02-01 Kenichi Handa <handa@m17n.org>
15212
15213 * composite.c (syms_of_composite): Fix docstring of
15214 auto-composition-function.
15215
15216 * font.h (LGLYPH_SIZE): New macro.
15217
15218 * font.c (Ffont_fill_gstring): Stop filling when a character not
15219 supported by the font is found.
15220 (Ffont_shape_text): When a shape callback function returns nil,
15221 try at most two more times with larger gstring.
15222 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
15223
15224 * xdisp.c (handle_auto_composed_prop): Change the argument to
15225 auto-composition-function.
15226
15227 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
15228 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
15229 Lispy glyph and store it in the lgstring.
15230
15231 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
15232
15233 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
15234
152352008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15236
15237 * font.c (Ffont_shape_text): Avoid unnecessary composition.
15238
15239 * fontset.c (Vfont_encoding_charset_alist): New variable.
15240 (syms_of_fontset): DEFVAR it.
15241 (reorder_font_vector, fontset_find_font): Optimize for the case of
15242 no need of reordering.
15243 (face_for_char): Map the charset property by
15244 Vfont_encoding_charset_alist.
15245
152462008-02-01 Jason Rumney <jasonr@gnu.org>
15247
15248 * w32font.c (logfonts_match): Don't check adstyle here.
15249 (font_matches_spec): Check here against physical font instead.
15250 (add_font_entity_to_list): Avoid some substitutions.
15251
15252 * font.c (font_parse_fcname): Default weight and slant to normal.
15253 (font_score): Prefer normal fonts if weight or slant unspecified.
15254 (font_score) [WINDOWSNT]: Scale weight difference down to closer
15255 match freetype scores.
15256
152572008-02-01 Jason Rumney <jasonr@gnu.org>
15258
15259 * w32font.c (w32font_text_extents): Don't use the frame stored in the
15260 font, as it may have been deleted.
15261 (w32_enumfont_pattern_entity): Map generic family to adstyle using
15262 most common hyphenless variation.
15263 (logfonts_match): Check generic family.
15264 (font_matches_spec): Don't check generic family here.
15265 (fill_in_logfont): Set generic family based on adstyle.
15266
15267 * w32font.h (w32font_get_cache): Update declaration.
15268
152692008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15270
15271 * ftfont.c (ftfont_get_cache): Adjust the argument type.
15272
15273 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
15274 If none of the new drivers are available, call font_update_drivers
15275 with the old drivers.
15276
15277 * w32font.c (w32font_get_cache): Adjust the argument type.
15278
15279 * xfont.c (xfont_get_cache): Adjust the argument type.
15280
15281 * font.h (struct font_driver): Change argument type of get_cache.
15282
15283 * xftfont.c (xftfont_start_for_frame): Delete prototype.
15284
15285 * font.c (Ffont_get): Fix arguments to Fassoc.
15286 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
15287 (font_clear_cache): New function.
15288 (font_list_entities, font_matching_entity): Use font_get_cache.
15289 (font_update_drivers): Call font_clear_cache when finishing a driver.
15290
15291 * fontset.c (fontset_find_font): Fix previous change.
15292
152932008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15294
15295 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
15296 dpyinfo->font_table.
15297 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
15298 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
15299
15300 * font.c (font_at): Handle the case that the arg C is negative.
15301 Handle the unibyte case.
15302 (Ffont_at): Call font_at with the arg C -1.
15303
15304 * xdisp.c (handle_auto_composed_prop): Don't get a character at
15305 the position here, and call font_at with the arg C -1.
15306 Don't check the range of the existing composition at the point.
15307
153082008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15309
15310 * fontset.c (fontset_add): New args charset_id and family.
15311 Change caller.
15312 (load_font_get_repertory, fontset_find_font): Assume that
15313 font_spec is always a font-spec object.
15314 (Fset_fontset_font): Always store a font-spec object in a fontset.
15315
15316 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
15317 instead of get_property_and_range.
15318
153192008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15320
15321 * xftfont.c (struct xftfont_info): Delete the member ft_face.
15322 (xftfont_open): Don't keep locking face.
15323 (xftfont_close): Don't unlock face.
15324 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
15325
15326 * fontset.c (fontset_find_font): Don't prefer a font of
15327 supplementary charset.
15328
153292008-02-01 Kenichi Handa <handa@m17n.org>
15330
15331 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
15332 script, langsys_tag to langsys, new member script.
15333 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 15334 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
15335 listing to the script specified in that property. Fix arg to
15336 OTF_check_features.
15337
153382008-02-01 Jason Rumney <jasonr@gnu.org>
15339
15340 * w32font.h: New file.
15341
15342 * w32font.c: Include it.
15343 (struct w32font_info): Add owning_frame field. Move to w32font.h.
15344 (w32font_open): Set owning_frame.
15345 (w32font_text_extents): Use owning_frame.
15346 (struct font_callback_data): Add opentype_only field.
15347 (add_font_entity_to_list): Use it to filter fonts.
15348 Don't check against full name.
15349 (w32font_list_internal): New function.
15350 (w32font_list): Use it.
15351 (w32font_match_internal): New function.
15352 (w32font_match): Use it.
15353 (w32font_open_internal): New function.
15354 (w32font_open): Use it.
15355 (w32font_get_cache, w32font_close, w32font_has_char)
15356 (w32font_encode_char, w32font_text_extents, w32font_draw):
15357 Make non-static.
15358
15359 * makefile.w32-in (w32font.o): Depend on w32font.h.
15360
153612008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15362
15363 * charset.c (Fdefine_charset_internal): Record a supplementary
15364 charset at the tail of Vcharset_order_list.
15365
15366 * font.c (Ffont_shape_text): Fix the return value.
15367
15368 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
15369
15370 * xdisp.c (handle_auto_composed_prop): Fix previous change.
15371
153722008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15373
15374 * ftfont.c (struct OpenTypeSpec): New struct.
15375 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
15376 (ftfont_get_open_type_spec): New function.
15377 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
15378
15379 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
15380
153812008-02-01 Jason Rumney <jasonr@gnu.org>
15382
15383 * w32font.c (add_font_entity_to_list): Compare only the beginning
15384 of full name.
15385
153862008-02-01 Kenichi Handa <handa@m17n.org>
15387
15388 * xdisp.c (handle_auto_composed_prop): Simplify the code.
15389 Never return HANDLED_RECOMPUTE_PROPS.
15390
153912008-02-01 Kenichi Handa <handa@m17n.org>
15392
15393 * font.c (font_gstring_produce): Delete it.
15394
15395 * composite.h (COMPOSITION_METHOD):
15396 Handle COMPOSITION_WITH_GLYPH_STRING.
15397
153982008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15399
15400 * xfont.c (Qx): Delete.
15401 (syms_of_xfont): Don't initialize Qx.
15402
15403 * composite.h (enum composition_method):
15404 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
15405
154062008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15407
15408 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
15409 (choose_face_font): Accept new form of font-spec.
15410
15411 * frame.h (font_driver_list): Declare it unconditionally.
15412 (struct frame): Define members font_driver_list and font_data_list
15413 unconditionally.
15414
15415 * fontset.c: Include "font.h" unconditionally.
15416 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
15417 (Fset_fontset_font): Accept a font-spec object.
15418
15419 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
15420 PIXEL_SIZE part a wild card.
15421
15422 * dispextern.h (struct glyph_string): Define members clip and
15423 num_clips unconditionally.
15424 (struct face): Define members font_info and extra unconditionally.
15425
15426 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
15427 ftfont_info only when HAVE_LIBOTF is defined.
15428
154292008-02-01 Andreas Schwab <schwab@suse.de>
15430
15431 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
15432 and end.
15433
154342008-02-01 Jason Rumney <jasonr@gnu.org>
15435
15436 * w32font.c (w32font_driver): Add new fields.
15437
154382008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15439
15440 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
15441 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
15442 (LIBES): Add @M17N_FLT_CFLAGS@.
15443
15444 * composite.c (compose_text): Don't treat the new style
15445 composition specially.
15446
15447 * emacs.c (main): Call syms_of_font unconditionally.
15448
15449 * font.h (FONT_ENTITY_NOT_LOADABLE)
15450 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
15451 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
15452 (struct font_driver): New member shape.
15453 (font_registry_charsets): Extern it.
15454 (font_find_for_lface, font_prepare_composition): Adjust prototype.
15455 (font_otf_capability, font_drive_otf): Delete their externs.
15456
15457 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
15458 (font_charset_alist, font_registry_charsets): Move from xfont.c
15459 and rename.
15460 (font_prop_validate_otf): New function.
15461 (font_property_table): Register it for QCotf.
15462 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
15463 (font_drive_otf): Delete.
15464 (font_prepare_composition): New arg F. Adjust for the change of
15465 lispy gstring.
15466 (font_find_for_lface): New arg C.
15467 (font_load_for_face): Adjust for the change of font_find_for_lface.
15468 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
15469 lispy gstring.
15470 (Ffont_shape_text): New function.
15471 (Fopen_font): If the font size is not given, use 12-pixel.
15472 (Ffont_at): New arg STRING.
15473 (syms_of_font): Initalize font_charset_alist.
15474 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
15475 conditionally.
15476
15477 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
15478 fonts of the same font-spec. Change the format of RFONT-DEF.
15479 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
15480 Adjust for the change of RFONT-DEF.
15481 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
15482
15483 * ftfont.h: New file.
15484
15485 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
15486 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
15487 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
15488 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
15489 font_otf_capability and font_drive_otf, set ftfont_shape.
15490 (ftfont_list): Adjust for the change of :otf property value.
15491 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
15492 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
15493 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
15494 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
15495 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
15496 (otf_gstring, gstring, m17n_flt_initialized): New variables.
15497
15498 * w32term.c (x_draw_composite_glyph_string_foreground):
15499 Adjust for the change of lispy gstring.
15500
15501 * xdisp.c (handle_composition_prop): Adjust for the change of
15502 lispy gstring. Call a function for auto-composition with the
15503 third arg it->window.
15504 (fill_composite_glyph_string): Adjust for the change of lispy string.
15505 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
15506
15507 * xfaces.c (set_font_frame_param): Adjust for the change of
15508 font_find_for_lface.
15509
15510 * xfont.c (x_font_charset_alist): Move to font.c and rename.
15511 (xfont_registry_charsets): Likewise. Change caller.
15512 (syms_of_xfont): Don't handle x_font_charset_alist.
15513
15514 * xftfont.c: Include "ftfont.h".
15515 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
15516 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
15517 (xftfont_close) [HAVE_LIBOTF]: Close otf.
15518 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
15519 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
15520 Set xftfont_driver.shape to xftfont_shape.
15521
15522 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
15523 the change of lispy gstring.
15524
155252008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15526
15527 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
15528
155292008-02-01 Jason Rumney <jasonr@gnu.org>
15530
15531 * w32font.c (w32font_draw): Fill background manually.
15532
155332008-02-01 Jason Rumney <jasonr@gnu.org>
15534
15535 * font.c (Qfontp): Remove unused symbol.
15536 (QCantialias): New symbol.
15537 (syms_of_font): Define it.
15538 (font_property_table): Set a validator for QCantialias.
15539
15540 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
15541 Define if not already.
15542 (QCfamily): Share with xfaces.c.
15543 (Qstandard, Qsubpixel, Qnatural): New symbols.
15544 (syms_of_w32font): Define them. Don't define QCfamily here.
15545 (w32_antialias_type, lispy_antialias_type): New functions.
15546 (w32_enumfont_pattern_entity): New arg requested_font.
15547 Set antialias parameter if non-default was requested.
15548 (fill_in_logfont): Fill in lfQuality if :antialias specified.
15549
155502008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15551
15552 * lread.c (read1): Undo the previous change.
15553
155542008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
15555
15556 * frame.c (Fdelete_frame): Call font_update_drivers only when
15557 USE_FONT_BACKEND is defined.
15558
155592008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15560
15561 * font.h (struct font_bitmap): New member bits_per_pixel.
15562 (struct font_driver): New members start_for_frame and end_for_frame.
15563 (struct font_data_list): New struct.
15564 (font_put_frame_data, font_get_frame_data): Extern them.
15565
15566 * frame.h (struct frame): New member font_data_list.
15567
15568 * font.c (font_update_drivers): Call driver->start_for_frame and
15569 driver->end_for_frame at proper timings.
15570 (font_put_frame_data, font_get_frame_data): New functions.
15571 (Ffont_spec): Add usage in the docstring.
15572
15573 * frame.c (make_frame): Initialize f->font_data_list to NULL.
15574 (Fdelete_frame): Call font_update_drivers.
15575
15576 * xftfont.c (struct xftface_info): Delete the member xft_draw.
15577 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
15578 (xftfont_get_xft_draw): New function.
15579 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
15580 (xftfont_end_for_frame): New function.
15581 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
15582
15583 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
15584 Change argument. Cache GCs in the per-frame data.
15585 (struct ftxfont_frame_data): New struct.
15586 (ftxfont_draw_bitmap): New arg gc_fore and flush.
15587 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
15588 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
15589 (ftxfont_end_for_frame): New function.
15590 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
15591
15592 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
15593
155942008-02-01 Kenichi Handa <handa@m17n.org>
15595
15596 * xselect.c (Vselection_coding_system)
15597 (Vnext_selection_coding_system): Delete them.
15598 (syms_of_xselect): Don't declare selection-coding-system and
15599 next-selection-coding-system. They are declared in select.el.
15600
156012008-02-01 Jason Rumney <jasonr@gnu.org>
15602
15603 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
15604
15605 * w32fns.c: Include imm.h.
15606 (get_composition_string_fn, get_ime_context_fn): New optional
15607 system functions.
15608 (globals_of_w32fns): Load them from imm32.dll.
15609 (ignore_ime_char): New flag.
15610 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
15611 WM_IME_ENDCOMPOSITION messages.
15612
15613 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
15614 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
15615
156162008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15617
15618 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
15619 (READCHAR_REPORT_MULTIBYTE): New macro.
15620 (readchar): New 2nd arg MULTIBYTE.
15621 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
15622 Make symbol's name multibyte according to the multibyteness of the
15623 source.
15624
156252008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15626
15627 * xfaces.c (face_for_overlay_string): Call lookup_face with
15628 correct arguments (fix of synching with the trunk).
15629
156302008-02-01 Kenichi Handa <handa@m17n.org>
15631
15632 * font.c (font_prop_validate_symbol, font_prop_validate_style)
15633 (font_prop_validate_non_neg, font_prop_validate_spacing):
15634 Delete argument prop_index.
15635 (font_property_table): Change arguments to validater. Change Callers.
15636 (font_lispy_object): Delete.
15637 (font_at): Use font_find_object instead fo font_lispy_object.
15638
156392008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15640
15641 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
15642 and file names.
15643
156442008-02-01 Jason Rumney <jasonr@gnu.org>
15645
15646 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
15647 (font_matches_spec): Remove debug output.
15648 (add_font_entity_to_list): Avoid using substituted fonts.
15649
156502008-02-01 Jason Rumney <jasonr@gnu.org>
15651
15652 * doc.c (Fsnarf_documentation):
15653 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
15654
156552008-02-01 Miles Bader <miles@gnu.org>
15656
15657 * dispextern.h (struct glyph_row): Only define "clip" field if
15658 HAVE_WINDOW_SYSTEM is defined.
15659
156602008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
15661
15662 Fix up multi-tty merge.
15663
15664 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
15665 and indentation.
15666
15667 * xfaces.c (free_realized_face, clear_face_gcs):
15668 Include font_done_for_face in the input_blocked section, just in case.
15669
15670 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
15671 (get_char_face_and_encoding): Undo last change and remove the *other*
15672 duplicate definition (i.e. keep the one that's better scoped and that
15673 includes code for the font-backend).
15674
15675 * terminal.c (create_terminal): Default keyboard_coding to
15676 `no-conversion' and terminal_coding to `undecided'.
15677
15678 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
15679
15680 * fontset.c (free_realized_fontsets): Check that the table entry does
15681 contain a fontset before trying to compare it to `base'.
15682
15683 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
15684 syms_of_charset, and syms_of_coding earlier because init_window_once
15685 now needs Vcoding_system_hash_table to be setup.
15686
15687 * coding.h (default_buffer_file_coding): Remove.
15688
15689 * coding.c (default_buffer_file_coding): Remove.
15690 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
15691 than ->symbol, and use the terminal-local coding system.
15692 (syms_of_coding): Don't setup the coding-systems that are not
15693 terminal-local.
15694 (Fdefine_coding_system_internal): Use XCAR/XCDR.
15695
15696 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
15697 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
15698
15699 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
15700 in chartab.c and were re-added here by mistake.
15701 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
15702
15703 * doc.c (Fsnarf_documentation):
15704 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
15705 src to etc.
15706
15707 * ChangeLog.10: Add mistakenly removed entry.
15708
157092008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
15710
15711 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
15712
157132008-02-01 Miles Bader <miles@gnu.org>
15714
15715 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
15716 Add extra args to FACE_FOR_CHAR.
15717
157182008-02-01 Kenichi Handa <handa@m17n.org>
15719
15720 * keymap.c (where_is_internal_1): If key is a cons, store the copy
15721 in sequence.
15722
15723 * chartab.c (map_sub_char_table, map_char_table): If the range
15724 contains just one character, call the function with that character
15725 even if the depth is not 3.
15726
157272008-02-01 Jason Rumney <jasonr@gnu.org>
15728
15729 * w32font.c (w32font_text_extents): Calculate metrics for the
15730 whole string.
15731
157322008-02-01 Jason Rumney <jasonr@gnu.org>
15733
15734 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
15735
157362008-02-01 Jason Rumney <jasonr@gnu.org>
15737
15738 * w32term.c (x_set_glyph_string_clipping): Use
15739 get_glyph_string_clip_rects.
15740 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
15741 Adjust for the change of struct glyph_string.
15742
15743 * w32font.c (w32font_draw): Do clipping here.
15744
157452008-02-01 Kenichi Handa <handa@m17n.org>
15746
15747 * xftfont.c (xftfont_draw): Adjust for the change of struct
15748 glyph_string.
15749
15750 * xterm.c (x_set_glyph_string_clipping): Use
15751 get_glyph_string_clip_rects.
15752 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
15753 Adjust for the change of struct glyph_string.
15754
15755 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
15756 the resulting clip(s}.
15757 (expose_overlaps): Add arg r. Change callers. Set it to
15758 row->clip temporarily.
15759 (expose_window): Redraw rows overlapping the exposed area.
15760
15761 * dispextern.h (struct glyph_row): New member clip.
15762 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
15763 clip_height, new member clip, and num_clips.
15764
157652008-02-01 Kenichi Handa <handa@m17n.org>
15766
15767 * data.c (Fchar_or_string_p): Fix docstring.
15768
157692008-02-01 Kenichi Handa <handa@m17n.org>
15770
15771 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
15772 create a temporary XftDraw object.
15773
157742008-02-01 Kenichi Handa <handa@m17n.org>
15775
15776 * font.c (Ffontp): Fix docstring.
15777
15778 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
15779 strong evidence of ISO-2022.
15780
157812008-02-01 Kenichi Handa <handa@m17n.org>
15782
15783 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
15784 SYNTAX_ENTRY_FOLLOW_PARENT.
15785
157862008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
15787
15788 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
15789 its type.
15790 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
15791 Update to the new type of weak_hash_tables and next_weak.
15792
15793 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
15794 a plain C pointer to Lisp_Hash_Table.
15795
15796 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
15797 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
15798 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
15799 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
15800 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
15801 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
15802 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
15803 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
15804 (GC_EQ): Remove since they've been identical to their non-GC_
15805 alter-egos ever since the markbit was eradicated.
15806
15807 * alloc.c:
15808 * buffer.c:
15809 * buffer.h:
15810 * data.c:
15811 * fileio.c:
15812 * filelock.c:
15813 * fns.c:
15814 * frame.h:
15815 * lisp.h:
15816 * macterm.c:
15817 * print.c:
15818 * process.c:
15819 * w32fns.c:
15820 * w32menu.c:
15821 * w32term.c:
15822 * xfns.c:
15823 * xmenu.c:
15824 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
15825
158262008-02-01 Kenichi Handa <handa@m17n.org>
15827
15828 * chartab.c (map_sub_char_table): Make it work for the top-level
15829 char-table. Fix handling of parent char-table.
15830 (map_char_table): Adjust for the above change.
15831
158322008-02-01 Jason Rumney <jasonr@gnu.org>
15833
15834 * w32font.c (Qgdi): Rename from Qw32.
15835
158362008-02-01 Jason Rumney <jasonr@gnu.org>
15837
15838 * w32bdf.c (get_quoted_string): Make function static.
15839
158402008-02-01 Kenichi Handa <handa@m17n.org>
15841
15842 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
15843 bigger ascent and descent than those of the font, use them as
15844 font's ascent and descent.
15845
158462008-02-01 Kenichi Handa <handa@m17n.org>
15847
15848 * Makefile.in (${lispsource}international/charprop.el): Move this
15849 target within "#ifdef HAVE_UNIDATA" and "#endif".
15850
158512008-02-01 Kenichi Handa <handa@m17n.org>
15852
15853 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
15854 (shortlisp): Add ../lisp/language/tai-viet.el.
15855
158562008-02-01 Ulrich Mueller <ulm@gentoo.org>
15857
15858 * Makefile.in (${lispsource}international/charprop.el): Depend on
15859 temacs${EXEEXT}.
15860
158612008-02-01 Jason Rumney <jasonr@gnu.org>
15862
15863 * w32font.c (w32font_close): Delete the GDI font object.
15864
15865 * w32menu.c: Include character.h.
15866
15867 * w32proc.c: Likewise.
15868
15869 * w32select.c: Likewise.
15870
15871 * makefile.w32-in (w32proc.o): Depend on character.h.
15872
158732008-02-01 Jason Rumney <jasonr@gnu.org>
15874
15875 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
15876
15877 * w32menu.c (syms_of_w32menu): Likewise.
15878
15879 * w32proc.c (syms_of_ntproc): Likewise.
15880
15881 * w32select.c (syms_of_w32select): Likewise.
15882
15883 * w32term.c (syms_of_w32term): Likewise.
15884
158852008-02-01 Jason Rumney <jasonr@gnu.org>
15886
15887 * w32font.c (w32font_draw): Delete brush after using it.
15888
158892008-02-01 Jason Rumney <jasonr@gnu.org>
15890
15891 * w32font.c (w32font_open): Don't set font_idx.
15892 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
15893 to font settings.
15894 (w32font_draw): Fill background explicitly.
15895
158962008-02-01 Jason Rumney <jasonr@gnu.org>
15897
15898 * w32term.c (w32_initialize): Don't call w32font_initialize.
15899
15900 * w32font.c (w32font_info): Remove subranges.
15901 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
15902 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
15903 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
15904 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
15905 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
15906 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
15907 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
15908 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
15909 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
15910 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
15911 New symbols.
15912 (font_callback_data): New struct.
15913 (w32font_list, w32font_match): Use it.
15914 (w32font_open): Don't populate subranges.
15915 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
15916 (w32font_encode_char): Always return unicode code-point as-is.
15917 (w32font_text_extents): Supply a transformation matrix to
15918 GetGlyphOutline. Never look up by glyph index. Avoid looping
15919 twice. Use unicode version of GetTexExtentPoint32 instead of
15920 glyph index version.
15921 (set_fonts_frame): Remove.
15922 (w32_enumfont_pattern_entity): Add frame parameter, use it to
15923 set frame parameter. Use backward compatible fake foundries.
15924 Save generic family in extra slot under QCfamily. Make width slot
15925 constant. Save QCspacing value. Save list of scripts instead of
15926 binary subranges.
15927 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
15928 (add_font_entity_to_list): Use font_callback_data struct. Filter
15929 unwanted fonts.
15930 (add_one_font_entity_to_list): Use font_callback_data struct.
15931 (w32_registry): Default to iso10646_1.
15932 (fill_in_logfont): Use dpi from extra slot. Don't bother with
15933 string font registries. Don't fill in font name if it is a generic
15934 family name, fill family instead. Use spacing, family and script
15935 extra info to fill pitch, family and charset fields.
15936 (list_all_matching_fonts): Use font_callback_data struct.
15937 (unicode_range_for_char): Remove.
15938 (font_supported_scripts): New function.
15939 (w32font_initialize): Remove.
15940 (syms_of_w32font): Update which symbols are defined.
15941
159422008-02-01 Jason Rumney <jasonr@gnu.org>
15943
15944 * font.c (font_pixel_size): Reverse assq_no_quit args.
15945
15946 * w32term.h (FONT_WIDTH): Report max width, not average.
15947 (FONT_MAX_WIDTH): Remove.
15948 (FONT_AVG_WIDTH): New macro.
15949
15950 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
15951 redefinition of FONT_WIDTH.
15952
15953 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
15954 (w32_cache_char_metrics): Use FONT_WIDTH.
15955
15956 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
15957
159582008-02-01 Jason Rumney <jasonr@gnu.org>
15959
15960 * w32font.c (w32font_open): Make lfHeight negative.
15961
15962 * w32fns.c (x_default_font_parameter): Use new style font name.
15963 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
15964
159652008-02-01 Jason Rumney <jasonr@gnu.org>
15966
15967 * w32font.c (QCsubranges): New symbol.
15968 (w32font_open, w32font_has_char): Get subranges from subproperty
15969 of extra.
15970 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
15971 (syms_of_w32font): Define :subranges symbol.
15972
15973 * font.c (font_put_extra): Expose externally.
15974
15975 * font.h (font_put_extra): Move declaration from font.c.
15976
15977 * font.c (Ffont_get): Use font driver to determine otf capability.
15978 (adjust_anchor): Check if driver defines anchor_point before using.
15979
15980 * w32font.c (w32font_open): Handle size, height and pixel_size better.
15981 (w32font_draw): Use options.
15982 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
15983 Fix detection of truetype fonts.
15984 (registry_to_w32_charset): Handle charsets other than iso8859-1
15985 expressed as lisp symbols.
15986 (w32_registry): Express charset as lisp symbol.
15987 (fill_in_logfont): Reverse pixel and point height logic.
15988 Don't set width here. Set quality to default.
15989
15990 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
15991 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
15992
15993 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
15994 Remove redundant loop and allocation.
15995
15996 * makefile.w32-in (font.o, w32font.o): New objects.
15997 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
15998 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
15999
16000 * xdisp.c (fill_composite_glyph_string): Make the first arg to
16001 STORE_XCHARB a valid l-value.
16002
16003 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
16004 calculations for non-Truetype fonts.
16005 (x_draw_glyph_string): Sync with xterm.c.
16006 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
16007 Remove redundant code.
16008 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
16009
16010 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
16011 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
16012
16013 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
16014 (x_to_w32_charset, w32_to_x_charset): Expose externally.
16015
16016 * w32font.c: New file for w32 font backend.
16017
160182008-02-01 Kenichi Handa <handa@m17n.org>
16019
16020 * term.c: Don't include "buffer.h" twice.
16021
160222008-02-01 Kenichi Handa <handa@m17n.org>
16023
16024 * character.c (Funibyte_string): New function.
16025 (syms_of_character): Defsubr it.
16026
160272008-02-01 Jason Rumney <jasonr@gnu.org>
16028
16029 * w32term.c [USE_FONT_BACKEND]:
16030 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
16031 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
16032 (x_draw_glyph_string, x_draw_glyph_string_foreground)
16033 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
16034 (x_free_frame_resources): Sync with xterm.c.
16035
160362008-02-01 Andreas Schwab <schwab@suse.de>
16037
16038 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
16039 char-table size.
16040
160412008-02-01 Kenichi Handa <handa@m17n.org>
16042
16043 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
16044
160452008-02-01 Kenichi Handa <handa@m17n.org>
16046
16047 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
16048 font_otf_gpos, add font_drive_otf.
16049
16050 * fontset.c (fontset_find_font): Pay attention to font size
16051 specified for a font.
16052 (reorder_font_vector): Check contents of font_def.
16053
16054 * font.c (struct otf_list): Delete it.
16055 (otf_list): Make it a lisp variable.
16056 (otf_open): Use lispy otf_list.
16057 (generate_otf_features): Rename from parse_gsub_gpos_spec.
16058 (check_otf_features): New function.
16059 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
16060 New functions.
16061 (font_drive_otf): New function merging font_otf_gsub and
16062 font_otf_gpos.
16063 (font_open_for_lface): New arg spec. Change argument order.
16064 (font_load_for_face): Adjust for the change of font_open_for_lface.
16065 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
16066 Ffont_otf_gpos.
16067 (syms_of_font): Staticpro otf_list. Delete defsubr of
16068 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
16069
16070 * xfaces.c (set_font_frame_param): Adjust for the change of
16071 font_open_for_lface.
16072
16073 * font.h (font_open_for_lface): Adjust prototype.
16074 (struct font_driver): Delete members otf_gsub and otf_gpos, add
16075 member otf_drive.
16076 (font_otf_gsub, font_otf_gpos): Delete externs.
16077 (font_drive_otf): Extern it.
16078
160792008-02-01 Kenichi Handa <handa@m17n.org>
16080
16081 * font.c (font_at): If the window W is not on a window system,
16082 return Qnil.
16083
16084 * coding.c (produce_chars, encode_coding): Don't call
16085 insert_from_gap if no characters to produce.
16086
160872008-02-01 Kenichi Handa <handa@m17n.org>
16088
16089 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
16090 Fclear_face_cache.
16091
16092 * xfaces.c (face_for_font): Check also face->font==font->font.font.
16093
160942008-02-01 Miles Bader <miles@gnu.org>
16095
16096 * emacs.c (main): Change default value of `enable_font_backend' to 1.
16097 Parse "--disable-font-backend" option.
16098 (standard_args): Add "--disable-font-backend" option.
16099
161002008-02-01 Kenichi Handa <handa@m17n.org>
16101
16102 * fontset.c (fontset_find_font): New function.
16103 (fontset_font): Use fontset_find_font.
16104 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
16105 Register the specified font for all Latin characters.
16106 (new_fontset_from_font): Register the specified font for all Latin
16107 characters.
16108 (dump_fontset): For a realized fontset, include the base fontset
16109 name in the returned vector.
16110
161112008-02-01 Kenichi Handa <handa@m17n.org>
16112
16113 * character.h (CHAR_STRING): Cast C to unsigned on calling
16114 char_string.
16115
16116 * character.c (char_string): Type of arg C changed to unsigned.
16117 Signal an error if C is an invalid character code.
16118
16119 * editfns.c (general_insert_function, Fchar_to_string):
16120 Use CHARACTERP, not INTEGERP.
16121
161222008-02-01 Kenichi Handa <handa@m17n.org>
16123
16124 * character.h (MIN_MULTIBYTE_LEADING_CODE)
16125 (MAX_MULTIBYTE_LEADING_CODE): New macros.
16126
16127 * regex.c (analyse_first): Fix for multibyte characters in "case
16128 charset:" and "case categoryspec:".
16129
161302008-02-01 Andreas Schwab <schwab@suse.de>
16131
16132 * Makefile.in (LIBES): Move standard libraries to the end.
16133
161342008-02-01 Kenichi Handa <handa@m17n.org>
16135
16136 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
16137 nonzero, don't shrink the buffer nextb.
16138
16139 * buffer.h (struct buffer_text): New member inhibit_shrinking.
16140
16141 * coding.c (coding_alloc_by_making_gap): New arg offset.
16142 (alloc_destination): Call coding_alloc_by_making_gap with the arg
16143 offset.
16144 (decode_coding_iso_2022): Update coding->safe_charsets.
16145 (decode_coding_gap): Temporarily set
16146 current_buffer->text->inhibit_shrinking to 1.
16147
161482008-02-01 Kenichi Handa <handa@m17n.org>
16149
16150 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
16151 indexing into elements of s->cmp and s->char2b.
16152
161532008-02-01 Juanma Barranquero <lekktu@gmail.com>
16154
16155 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
16156
161572008-02-01 Kenichi Handa <handa@m17n.org>
16158
16159 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
16160 target_multibyte instead of multibyte.
16161 (re_match_2_internal): Call bcmp_translate with target_multibyte.
16162 (bcmp_translate): Change the argument name from multibyte to
16163 target_multibyte.
16164
161652008-02-01 Kenichi Handa <handa@m17n.org>
16166
16167 These changes are to compile a regexp into a pattern that can be
16168 used both for multibyte and unibyte targets.
16169
16170 * Makefile.in (search.o): Depend on charset.h.
16171
16172 * character.c (multibyte_char_to_unibyte_safe): New function.
16173
16174 * search.c: Include "charset.h".
16175 (compile_pattern_1): Delete argument multibyte. Don't set
16176 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
16177 (compile_pattern): Don't compare cp->buf.target_multibyte.
16178 Compare cp->buf.charset_unibyte.
16179 (compile_pattern): Set cp->buf.target_multibyte.
16180
16181 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
16182
16183 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
16184
16185 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
16186 multibyte. Change callers.
16187 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
16188 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
16189 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
16190 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
16191 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
16192 (regex_compile): Make the compiled pattern usable both for
16193 multibyte and unibyte targets.
16194 (analyse_first): Make the fastmap usable both for multibyte and
16195 unibyte targets.
16196 (TRANSLATE_VIA_MULTIBYTE): Delete.
16197 (re_match_2_internal): Pay attention to the case that the
16198 multibyteness of bufp and target may be different.
16199
162002008-02-01 Kenichi Handa <handa@m17n.org>
16201
16202 * xdisp.c (x_produce_glyphs): When a font is not found, make the
16203 empty box occupy at least one column width.
16204
162052008-02-01 Miles Bader <miles@gnu.org>
16206
16207 * Makefile.in: Remove redundant HAVE_XFT clause.
16208
162092008-02-01 Kenichi Handa <handa@m17n.org>
16210
16211 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
16212
162132008-02-01 Kenichi Handa <handa@m17n.org>
16214
16215 * fontset.c (Finternal_char_font): Fix for the case of POSITION
16216 being nil.
16217
162182008-02-01 Kenichi Handa <handa@m17n.org>
16219
16220 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
16221
162222008-02-01 Kenichi Handa <handa@m17n.org>
16223
16224 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
16225
162262008-02-01 Kenichi Handa <handa@m17n.org>
16227
16228 * search.c (simple_search): Fix previous change.
16229
162302008-02-01 Kenichi Handa <handa@m17n.org>
16231
16232 * xftfont.c (ftfont_font_format): Extern declaration.
16233
16234 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
16235
16236 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
16237 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
16238
16239 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
16240 (ftfont_font_format): Fix previous change.
16241
16242 * font.h (Ffont_xlfd_name): EXFUN it.
16243
16244 * font.c (font_parse_xlfd): Fix the array size of `f'.
16245 (register_font_driver): Use EQ to compare driver->type.
16246
16247 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
16248 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
16249 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
16250
162512008-02-01 Kenichi Handa <handa@m17n.org>
16252
16253 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
16254 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
16255
162562008-02-01 Kenichi Handa <handa@m17n.org>
16257
16258 * xfont.c (xfont_open): Set font->format.
16259
16260 * xftfont.c (xftfont_open): Set font->format.
16261
16262 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
16263 (ftfont_list): Include FC_FONTFORMAT in FcObject.
16264 (ftfont_open): Set font->format.
16265 (ftfont_font_format): New function.
16266
16267 * font.h (struct font): New member format.
16268
16269 * font.c (Qopentype): New variable.
16270 (syms_of_font): Defsym it.
16271 (Fquery_font): Change the format of the last element of the return
16272 value.
16273
162742008-02-01 Kenichi Handa <handa@m17n.org>
16275
16276 * xfns.c (xic_create_xfontset): Try the default fontset name as a
16277 last resort.
16278
162792008-02-01 Kenichi Handa <handa@m17n.org>
16280
16281 * coding.c (detect_coding_charset): Fix detection of multi-byte
16282 charset.
16283
162842008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
16285
16286 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
16287
162882008-02-01 Kenichi Handa <handa@m17n.org>
16289
16290 * xdisp.c (get_next_display_element): Set it->face_id for the
16291 first component of a composition.
16292 (x_produce_glyphs): Check if the font is changed or not for composition.
16293
162942008-02-01 Kenichi Handa <handa@m17n.org>
16295
16296 * fontset.c (Qlatin): New variable.
16297 (syms_of_fontset): Define it as a lisp symbol.
16298 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
16299
163002008-02-01 Kenichi Handa <handa@m17n.org>
16301
16302 * font.c (font_unparse_fcname): Pay attention to the case that
16303 some of font property is a null string.
16304
163052008-02-01 Kenichi Handa <handa@m17n.org>
16306
16307 * term.c: Include "composite.h".
16308 (encode_terminal_code): Output all components of composition.
16309 Check the size of encode_terminal_src.
16310 (produce_glyphs): For composition, call produce_composite_glyph.
16311 (append_composite_glyph, produce_composite_glyph): New functions.
16312
16313 * xdisp.c (x_produce_glyphs): In handling composition, if a font
16314 is not found, get font_info from the current ascii face.
16315
163162008-02-01 Kenichi Handa <handa@m17n.org>
16317
16318 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
16319 buffer-file-name to Qnil before calling insert_from_buffer.
16320
16321 * font.c (font_unparse_fcname): Pay attention to the case that
16322 foundry is a null string.
16323
163242008-02-01 Kenichi Handa <handa@m17n.org>
16325
16326 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
16327
16328 * font.c (Qunicode_sip): New variable.
16329 (syms_of_font): Declare it as a Lisp symbol.
16330
16331 * font.h (Qunicode_sip): Extern it.
16332
163332008-02-01 Kenichi Handa <handa@m17n.org>
16334
16335 * composite.c (get_composition_id): Pay attention to TAB component.
16336
16337 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
16338 TAB. Adjust for the change of s->char2b which always points to
16339 the first element of allocated memory.
16340
16341 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
16342
16343 * xdisp.c (handle_composition_prop): Set it->c to the first
16344 non-TAB component.
16345 (fill_composite_glyph_string): Change argument.
16346 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
16347 (x_produce_glyphs): Fix handling of left/right padding.
16348
163492008-02-01 Kenichi Handa <handa@m17n.org>
16350
16351 * coding.c (detect_coding_system): Fix for handling off
16352 inhibit_iso_escape_detection. Fix for the case that no coding
16353 system is defined for a specific coding category.
16354
163552008-02-01 Kenichi Handa <handa@m17n.org>
16356
16357 * font.c (font_matching_entity): Delete unused local var.
16358
16359 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
16360 opening a font.
16361
16362 * fileio.c (Finsert_file_contents): On recovering a file, assume
16363 Unix-like eol.
16364 (choose_write_coding_system): On auto-saving a file, force
16365 Unix-like eol.
16366
16367 * coding.c (setup_coding_system): Fix setting of
16368 coding->common_flags based on eol_type.
16369 (coding_inherit_eol_type): If PARENT is not nil, be sure to
16370 inherit from it.
16371
163722008-02-01 Kenichi Handa <handa@m17n.org>
16373
16374 * alloc.c (NSTATICS): Increas to 0x600.
16375
163762008-02-01 Kenichi Handa <handa@m17n.org>
16377
16378 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
16379 (ftfont_list): Don't check :name property.
16380 (ftfont_match): New function.
16381 (ftfont_pattern_entity): If the pattern doesn't contain
16382 FC_SPACING, don't assume FC_MONO.
16383
16384 * font.h (struct font_driver): New member `match'.
16385 (font_update_drivers): Adjust prototype.
16386
16387 * font.c (font_parse_fcname, font_parse_name): Don't change :name
16388 property of FONT.
16389 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
16390 them unconditionally.
16391 (font_matching_entity): New function.
16392 (font_open_by_name): Try font_matching_entity if exact match is
16393 not found.
16394 (font_update_drivers): Delete the arg FONT. Return a list of
16395 actually used backends. Don't free faces, font caches here.
16396 Don't store data in frame parameters. Don't call x_set_font.
16397 (Ffont_spec): Store :name property as is.
16398 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
16399 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
16400 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
16401 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
16402 Call font->driver->otf_gsub instead of font_otf_gsub.
16403
16404 * frame.c (x_set_font_backend): Do more works that were done in
16405 font_update_drivers before.
16406
16407 * xfont.c (xfont_match): New function.
16408 (xfont_driver): Set xfont_driver.match to xfont_match.
16409 (xfont_draw): Set font in GC if necessary.
16410
16411 * ftxfont.c (ftxfont_match): New function.
16412 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
16413
16414 * xftfont.c (xftfont_match): New function.
16415 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
16416
164172008-02-01 Kenichi Handa <handa@m17n.org>
16418
16419 * font.h (struct font): New member scalable.
16420 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
16421 (font_otf_gsub): Adjust prototype.
16422
16423 * font.c (font_otf_capability): Fix handling of the default langsys.
16424 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
16425 Check the contents of SPEC.
16426 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
16427 (check_gstring): New function.
16428 (REPLACEMENT_CHARACTER): New macro.
16429 (font_otf_gsub): New arg alternate_subst. Be sure to set all
16430 glyph codes of GSTRING.
16431 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
16432 (font_prepare_composition): Set cmp->glyph_len.
16433 (font_open_entity): Set font->scalable.
16434 (Ffont_get): Handle :otf property.
16435 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
16436 functions.
16437 (Fquery_font): Use font->font.full_name.
16438 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
16439 Sfont_otf_alternates.
16440
16441 * ftfont.c (ftfont_open): Set font->font.full_name and
16442 font->font.name properly. Fix calculation of font->font.height
16443 and font->min_width.
16444
16445 * ftxfont.c (ftxfont_create_gcs): New function.
16446 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
16447 (ftxfont_draw_backgrond): Fix filling region.
16448 (ftxfont_default_fid): New function.
16449 (ftxfont_open): Set xfont->fid to the return value of
16450 ftxfont_default_fid.
16451 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
16452 (ftxfont_done_face): Free only GCs that are created by
16453 ftxfont_create_gcs.
16454 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
16455
16456 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
16457 Clip to src->width, etc (not src->clip_XXX).
16458
16459 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
16460 FontBackend frame parameter.
16461
164622008-02-01 Kenichi Handa <handa@m17n.org>
16463
16464 * font.h (struct font_driver_list): New member `on'.
16465 (Fclear_font_cache): EXFUN it.
16466 (font_update_drivers): Extern it.
16467
16468 * font.c (font_unparse_fcname): Fix typo (swidth->width).
16469 (font_list_entities): Check driver_list->on.
16470 (register_font_driver): Initalize `on' member to 0.
16471 (font_update_drivers): New function.
16472 (Fclear_font_cache): Check driver_list->on.
16473
16474 * frame.h (Qfont_backend): Extern it.
16475 (x_set_font_backend): Extern it.
16476
16477 * frame.c (Qfont_backend): New variable.
16478 (frame_parms): New element for font-backend.
16479 (x_set_font_backend): New function.
16480
16481 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
16482 FontBackend frame parameter.
16483 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
16484 x_set_font_backend.
16485
16486 * xfont.c (xfont_list): Don't try listing by :name property if the
16487 name is not for XLFD.
16488
164892008-02-01 Kenichi Handa <handa@m17n.org>
16490
16491 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
16492 (LGLYPH_SET_TO): New macros.
16493 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
16494 element of G is vector or not.
16495 (font_at): Extern it.
16496
16497 * font.c: Include window.h.
16498 (font_lispy_object): New function.
16499 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
16500 end of valid glyph.
16501 (font_close_object): Fix getting (struct font *).
16502 (font_at): New function.
16503 (Ffont_get): If FONT is a font-object, get entity from it.
16504 (Ffont_make_gstring): Initialize elements of glyphs with nil.
16505 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
16506 range check.
16507 (Ffont_at): New function.
16508 (syms_of_font): Defsubr Sfont_at.
16509
16510 * xdisp.c (it_props): Move the entry for Qauto_composed to just
16511 before the entry for Qcomposition.
16512 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
16513 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
16514 the font in gstring.
16515 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
16516 LGLYPH_FORM (g) to detect the end of valid glyph.
16517 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
16518 we are composing with gstring.
16519
16520 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
16521 Check if adjustment is vector or not.
16522
16523 * Makefile.in (font.o): Make it depends on window.h.
16524
165252008-02-01 Kenichi Handa <handa@m17n.org>
16526
16527 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
16528 adjustment is vector or not.
16529
165302008-02-01 Miles Bader <miles@gnu.org>
16531
16532 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
16533
165342008-02-01 Kenichi Handa <handa@m17n.org>
16535
16536 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
16537 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
16538 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
16539
16540 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
16541 (DEVICE_DELTA): Fix typo.
16542 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
16543 LGLYPH format.
16544
16545 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
16546 the change of LGLYPH format.
16547
165482008-02-01 Kenichi Handa <handa@m17n.org>
16549
16550 * ftfont.c (ftfont_list): Fix typo.
16551 (ftfont_build_basic_charsets): Don't include letters with diacritics.
16552
165532008-02-01 Jan Djärv <jan.h.d@swipnet.se>
16554
16555 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
16556
16557 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
16558 xftface_info is non-NULL.
16559
165602008-02-01 Jan Djärv <jan.h.d@swipnet.se>
16561
16562 * ftfont.c (ftfont_list): Move misplaced #endif.
16563
165642008-02-01 Kenichi Handa <handa@m17n.org>
16565
16566 * ftfont.c (ftfont_list): Pay attention to the case that
16567 FC_CAPABILITY is not defined.
16568
165692008-02-01 Kenichi Handa <handa@m17n.org>
16570
16571 * xftfont.c (xftfont_open): Set charset related members to -1.
16572
16573 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
16574 QCname.
16575 (ftfont_open): Set charset related members to -1.
16576
16577 * fontset.c (Votf_script_alist): New variable.
16578 (syms_of_fontset): Initialize it.
16579 (fontset_font): Delete unused variable.
16580
16581 * fontset.h (Votf_script_alist): Extern it.
16582
16583 * font.c (font_find_for_lface): Optimize code.
16584
16585 * font.h (font_close_object, font_merge_old_spec): Extern them.
16586
165872008-02-01 Kenichi Handa <handa@m17n.org>
16588
16589 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
16590 (syms_of_font): Initialize them.
16591 (font_pixel_size): Allow float value in dpi.
16592 (font_prop_validate_type): Delete.
16593 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
16594 Change caller.
16595 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
16596 (font_prop_validate_extra): Delete.
16597 (font_prop_validate_spacing): New function.
16598 (font_property_table): Add elements for all known properties.
16599 (get_font_prop_index): Rename from check_font_prop_name. New
16600 argument FROM. Change caller.
16601 (font_prop_validate): Validate all known properties.
16602 (font_put_extra): Delete argument force. Change caller.
16603 (font_expand_wildcards): Make it static. Fix the way of shrinking
16604 the possible range.
16605 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
16606 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
16607 Change caller.
16608 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
16609 (font_parse_fcname): Delete argument merge. Fix parsing of point
16610 size. Don't validate properties values here. Change caller.
16611 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
16612 (font_open_by_name): Delete unused variable.
16613 (Ffont_spec): Likewise. Validate property values.
16614 (Ffont_match_p): New function.
16615
16616 * font.h (QCscalable): Extern it.
16617 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
16618
16619 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
16620
16621 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
16622 (xfont_list_pattern): New function.
16623 (xfont_list): Use xfont_list_pattern.
16624
166252008-02-01 Kenichi Handa <handa@m17n.org>
16626
16627 * font.h (Flist_fonts): EXFUN it.
16628
166292008-02-01 Jason Rumney <jasonr@gnu.org>
16630
16631 * w32term.c (w32_initialize): Add back smoothing_type and
16632 smoothing_enabled definitions.
16633
166342008-02-01 Kenichi Handa <handa@m17n.org>
16635
16636 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
16637 s->face->font on determining underline position.
16638
166392008-02-01 Kenichi Handa <handa@m17n.org>
16640
16641 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
16642 (font_has_char): Accept font-object too.
16643 (font_find_for_lface): Try at first with a size specified in face.
16644
166452008-02-01 Kenichi Handa <handa@m17n.org>
16646
16647 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
16648 font_open_by_name.
16649
166502008-02-01 Kenichi Handa <handa@m17n.org>
16651
16652 * font.h (QCspacing, QCdpi): Extern them.
16653 (enum font_spacing): New enum.
16654 (FONT_PIXEL_SIZE_QUANTUM): New macro.
16655
16656 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
16657 (QCspacing, QCdpi): New variables.
16658 (syms_of_font): Initialize them.
16659 (font_pixel_size): New function.
16660 (font_put_extra): New function.
16661 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
16662 in FONT_EXTRA.
16663 (font_parse_fcname): Handle enumerated values (e.g. bold).
16664 Fix handling font size. Add QCname property that contains only
16665 unknown properties.
16666 (font_score): Change argument. Change caller. Pay attention to
16667 FONT_PIXEL_SIZE_QUANTUM.
16668 (font_sort_entites, font_list_entities, font_find_for_lface)
16669 (font_open_for_lface, font_open_by_name): Fix handling of font size.
16670 (Ffont_spec): Add QCname property that contains only unknown properties.
16671
16672 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
16673 include weight in listing pattern, instead check weight of each
16674 listed font. Don't include scalable in pattern. Pay attention to
16675 FONT_PIXEL_SIZE_QUANTUM.
16676
166772008-02-01 Kenichi Handa <handa@m17n.org>
16678
16679 * font.c (font_parse_fcname): Fix parsing of point-size.
16680 (font_unparse_fcname): Produce symbolic names for style properties.
16681 (font_list_entities): Handle float size correctly.
16682 (font_open_by_name): Prefer `normal' property values if the name
16683 doesn't specify them.
16684
16685 * fontset.c (Finternal_char_font): Use font_get_name, not
16686 Ffont_xlfd_name.
16687
16688 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
16689 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
16690 pattern. Don't force scalable.
16691
16692 * xftfont.c (xftfont_open): For generating a name, start from
16693 96-byte buffer.
16694
166952008-02-01 Jan Djärv <jan.h.d@swipnet.se>
16696
16697 * frame.h (x_new_fontset2): Fix prototype.
16698
166992008-02-01 Kenichi Handa <handa@m17n.org>
16700
16701 * font.h (struct font_driver): Delete member parse_name.
16702 (font_match_p, font_get_spec, font_parse_fcname)
16703 (font_unparse_fcname): Extern them.
16704 (font_get_name): Adjust prototype.
16705
16706 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
16707 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
16708 (font_expand_wildcards): Fix handling ENCODING field. Avoid
16709 unnecessary checks for weight, slant, and swidth.
16710 (font_parse_fcname): New function.
16711 (font_unparse_fcname): New function.
16712 (font_parse_name): New function.
16713 (font_match_p): New function.
16714 (font_get_name): Change return value to Lisp string.
16715 (font_get_spec): New function.
16716 (Qunspecified, Qignore_defface): Don't extern them.
16717 (font_find_for_lface): Assume that LFACE is fully specified.
16718 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
16719 object, use it for FACE.
16720 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
16721 driver->parse_name.
16722 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
16723
16724 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
16725 prototype.
16726
16727 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
16728 argument F. Don't call Fnew_fontset. Instead, directly call
16729 make_fontset.
16730
16731 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
16732
16733 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
16734 of x_new_fontset2.
16735
16736 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
16737 (Qsans__serif): New variables.
16738 (ftfont_generic_family_list): New variable.
16739 (syms_of_ftfont): Initialize the above variables.
16740 (ftfont_pattern_entity): Delete argument NAME.
16741 (ftfont_list_generic_family): New function.
16742 (ftfont_parse_name): Delete this function.
16743 (ftfont_list): Try generic family only when FcFontList found no font.
16744 (ftfont_list_family): Fix args to FcObjectSetBuild.
16745
16746 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
16747 object in attrs[LFACE_FONT_INDEX].
16748 (set_lface_from_font_name): Cancel all changes for font-backend.
16749 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
16750 function.
16751 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
16752 font object in QCfont attribute.
16753 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
16754 (realize_default_face) [USE_FONT_BACKEND]: Call
16755 set_lface_from_font_and_fontset.
16756
16757 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
16758 "fixed", and signal error here if no suitable font was found.
16759
16760 * xfont.c (xfont_parse_name): Delete this function.
16761
16762 * xftfont.c (xftfont_open): Change coding style of error
16763 handling. Generate fontconfig's fontname pattern.
16764
16765 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
16766 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
16767
16768 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
16769 Both args FONTSET and FONT_OBJECT must be existing ones.
16770
167712008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16772
16773 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
16774
167752008-02-01 Kenichi Handa <handa@m17n.org>
16776
16777 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
16778
16779 * font.h (struct font): Fix typo.
16780
16781 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
16782 XLFD_XXX_INDEX.
16783 (enum xlfd_field_mask): New enum.
16784 (intern_font_field): Changed argument. Change caller. If digits
16785 are followed by non-digits, return a symbol.
16786 (font_expand_wildcards): New function.
16787 (font_parse_xlfd): Fix wildcard handling.
16788 (Ffont_spec): If :name is specified, reflect the info in the other
16789 properties.
16790
16791 * ftfont.c (ftfont_pattern_entity): Fix typo.
16792 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
16793 locale.
16794
167952008-02-01 Kenichi Handa <handa@m17n.org>
16796
16797 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
16798
16799 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
16800 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
16801 registry doesn't specify encoding part.
16802 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
16803 (font_open_by_name): At first try parsing the name.
16804 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
16805 as Lisp symbols.
16806
16807 * fontset.c (reorder_font_vector): Pay attention to the case that
16808 the 3rd element of font_def is nil.
16809 (fontset_font): For the default fontset, append one more fontset
16810 elements for a script-based font specification. Don't add script
16811 attribute on finding a font.
16812 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
16813 font name.
16814 (fontset_ascii_font): If a font can't be opened, return nil.
16815
16816 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
16817 (ftfont_pattern_entity): New function.
16818 (ftfont_get_cache): Assume that freetype_font_cache is already
16819 initialized.
16820 (ftfont_list): Handle the case that a file is specified in font
16821 name. Use ftfont_pattern_entity to generate entities.
16822 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
16823 (syms_of_ftfont): Initialize freetype_font_cache.
16824
16825 * xftfont.c (xftfont_open): Make the font name fontconfig's
16826 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
16827 (xftfont_close): Free font->font.name if not NULL.
16828
16829 * xfont.c (xfont_list): If script is specified for a font, return
16830 null_vector.
16831 (xfont_list_family): Declare argument type.
16832
16833 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
16834 name, set LFACE_FONT (lface) to nil.
16835
16836 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
16837 return Qnil.
16838
168392008-02-01 Kenichi Handa <handa@m17n.org>
16840
16841 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
16842 (standard_args): Add "-enable-font-backend".
16843
168442008-02-01 Kenichi Handa <handa@m17n.org>
16845
16846 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
16847 (struct xftdraw_list, xftdraw_list): Delete them.
16848 (register_xftdraw, check_xftdraw): Delete them.
16849 (xftfont_prepare_face): Don't call register_xftdraw.
16850 (xftfont_done_face): Don't call check_xftdraw.
16851 (xftfont_draw): Get background color only when with_background is
16852 nonzero.
16853
16854 * xfont.c (xfont_encode_char): Fix calculation of char2b.
16855
168562008-02-01 Kenichi Handa <handa@m17n.org>
16857
16858 These changes are for the new font handling codes.
16859
16860 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
16861 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
16862 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
16863 (FONTSRC, FONTOBJ): New variables.
16864 (obj): Add $(FONTOBJ).
16865 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
16866 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
16867 @LIBOTF_LIBS@.
16868 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
16869 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
16870
16871 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
16872
16873 * character.h (Vscript_representative_chars): Extern it.
16874
16875 * character.c (Vscript_representative_chars): New variable.
16876 (syms_of_character): Declare it as a Lisp variable.
16877
16878 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
16879 enable_font_backend is nonzero, accept the composition method
16880 COMPOSITION_WITH_GLYPH_STRING.
16881
16882 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
16883 enumeration COMPOSITION_WITH_GLYPH_STRING.
16884
16885 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
16886 members clip_x, clip_y, clip_width, and clip_height.
16887 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
16888
16889 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
16890 --enable-font-backend. Call syms_of_font.
16891
16892 * fns.c (assoc_no_quit): New function.
16893
16894 * fontset.h (FONT_INFO_FROM_FACE): New macro.
16895 (face_for_font, new_fontset_from_font)
16896 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
16897
16898 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
16899 (fontset_font, fontset_ascii, face_for_char)
16900 (make_fontset_for_ascii_face, Ffont_info)
16901 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
16902 is nonzero, use font-backend mechanism.
16903 (find_font_encoding): Make it non-static.
16904 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
16905 New functions.
16906
16907 * frame.h (struct frame): New members resx and resy.
16908 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
16909 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
16910
16911 * frame.c [USE_FONT_BACKEND]: Include "font.h".
16912 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
16913
16914 * lisp.h (assoc_no_quit): Extern it.
16915
16916 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
16917 Through out the file, use FONT_INFO_FROM_FACE instead of
16918 FONT_INFO_FROM_ID, use get_per_char_metric instead of
16919 rif->per_char_metric.
16920 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
16921 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
16922 (get_glyph_face_and_encoding, fill_composite_glyph_string)
16923 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
16924 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
16925 nonzero, use font-backend mechanism.
16926 (get_per_char_metric): New function.
16927
16928 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
16929 (set_lface_from_font_name)
16930 (set_font_frame_param, free_realized_face)
16931 (prepare_face_for_display, clear_face_gcs)
16932 (Finternal_set_font_selection_order, realize_x_face)
16933 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
16934 font-backend mechanism.
16935 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
16936 (load_face_font) [USE_FONT_BACKEND]: Abort.
16937 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
16938 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
16939
16940 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
16941 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
16942 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
16943 nonzero, register all available font drivers. Call
16944 x_default_font_parameter for deciding a font.
16945 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
16946
16947 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
16948 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
16949 (x_set_glyph_string_clipping_exactly)
16950 (x_compute_glyph_string_overhangs)
16951 (x_draw_glyph_string_foreground)
16952 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
16953 (x_free_frame_resources) [USE_FONT_BACKEND]: If
16954 enable_font_backend is nonzero, use font-backend mechanism.
16955 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
16956
169572008-02-01 Kenichi Handa <handa@m17n.org>
16958
16959 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
16960 system_eol_type.
16961 (syms_of_coding): Initialize system_eol_type.
16962
16963 * process.c (Fset_process_coding_system): Inherit system's eol
16964 format if necessary.
16965
169662008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16967
16968 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
16969
169702008-02-01 Kenichi Handa <handa@m17n.org>
16971
16972 * coding.c (decode_eol): Pay attention to buffer relocation in
16973 del_range_2.
16974 (decode_coding): Call decode_eol before restoring undo_list.
16975
169762008-02-01 Kenichi Handa <handa@m17n.org>
16977
16978 * charset.c (Fdefine_charset_internal): Fix setting of
16979 emacs_mule_bytes.
16980
169812008-02-01 Kenichi Handa <handa@m17n.org>
16982
16983 * keyboard.c (read_char): Check if C is a character or not before
16984 looking up Vkeyboard_translate_table.
16985
169862008-02-01 Kenichi Handa <handa@m17n.org>
16987
16988 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
16989 condition to terminate the loop.
16990
169912008-02-01 Kenichi Handa <handa@m17n.org>
16992
16993 * coding.c (produce_composition): Compare charbuf[i] instead of
16994 args[i] against 0.
16995 (Fterminal_coding_system): Use EQ to compare Lisp objects.
16996
169972008-02-01 Kenichi Handa <handa@m17n.org>
16998
16999 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
17000 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
17001 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
17002 detect_coding.
17003 (emacs_mule_char): Handle old style (Emacs 20) component character
17004 of a composition.
17005 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
17006 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
17007 composition rule.
17008 (decode_coding_emacs_mule): Handle invalid bytes correctly.
17009
170102008-02-01 Kenichi Handa <handa@m17n.org>
17011
17012 * coding.c (encode_coding_ccl): Allocate destination dynamically
17013 when necessary.
17014
170152008-02-01 Kenichi Handa <handa@m17n.org>
17016
17017 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
17018 the loop. When quitted, show a proper error message.
17019
170202008-02-01 Kenichi Handa <handa@m17n.org>
17021
17022 * xterm.c (x_set_glyph_string_clipping_exactly): Set
17023 src->clip_head and src->clip_tail temporarily instead of src->hl.
17024
17025 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
17026 character sequence.
17027 (Fccl_execute_on_string): Use ASET, not XSET.
17028
170292008-02-01 Kenichi Handa <handa@m17n.org>
17030
17031 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
17032
170332008-02-01 Kenichi Handa <handa@m17n.org>
17034
17035 * coding.c (decode_coding): Fix the condition of terminating the
17036 decoding loop.
17037
170382008-02-01 Kenichi Handa <handa@m17n.org>
17039
17040 * data.c (Faset): On setting a character bigger than 255 in a
17041 unibyte string, signal an error instead of make the string multibyte.
17042
170432008-02-01 Kenichi Handa <handa@m17n.org>
17044
17045 * charset.c (map_charset_chars): Fix for ascii-compatible charset
17046 made by a mapping table.
17047
170482008-02-01 Kenichi Handa <handa@m17n.org>
17049
17050 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
17051 not.
17052 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
17053 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
17054
17055 * xterm.c (x_draw_composite_glyph_string_foreground): Check
17056 s->face is NULL or not.
17057
170582008-02-01 Kenichi Handa <handa@m17n.org>
17059
17060 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
17061 (x_draw_glyph_string): Fix drawing of right_overhang and
17062 left_overhang around/on cursor.
17063
17064 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
17065
170662008-02-01 Kenichi Handa <handa@m17n.org>
17067
17068 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
17069
170702008-02-01 Kenichi Handa <handa@m17n.org>
17071
17072 * coding.c (Fdefine_coding_system_internal)
17073 (Fdefine_coding_system_alias): Avoid a duplicated element in
17074 Vcoding_system_alist.
17075
170762008-02-01 Kenichi Handa <handa@m17n.org>
17077
17078 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
17079
17080 * coding.c (Qcoding_system_define_form): New variable.
17081 (syms_of_coding): Intern and staticpro it.
17082 (Fcoding_system_p): Check Qcoding_system_define_form.
17083 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
17084
17085 * coding.h (CODING_SYSTEM_P): If ID is not available, call
17086 Fcoding_system_p.
17087 (CHECK_CODING_SYSTEM): If ID is not available, call
17088 Fcheck_coding_system.
17089 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
17090 Try also Fcheck_coding_system.
17091
170922008-02-01 Kenichi Handa <handa@m17n.org>
17093
17094 * coding.c (code_conversion_restore): GCPRO arg.
17095
170962008-02-01 Kenichi Handa <handa@m17n.org>
17097
17098 * character.c (lisp_string_width): Check multibyteness of STRING.
17099
171002008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17101
17102 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
17103 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
17104 (decode_mac_font_name): Use decode_coding_c_string instead of
17105 decode_coding.
17106 (x_load_font): Initialize fontp->fontset to -1. Set
17107 fontp->encoding_type.
17108
171092008-02-01 Kenichi Handa <handa@m17n.org>
17110
17111 * search.c (search_buffer): Give up BM search on case-fold-search
17112 if one of a target character has a case-equivalence of different
17113 byte length even if that target charcter is an ASCII.
17114 (simple_search): Fix calculation of byte length of matched text.
17115 (boyer_moore): Fix handling of case-equivalent multibyte characters.
17116
171172008-02-01 Kenichi Handa <handa@m17n.org>
17118
17119 * coding.c (decode_coding): Fix handling of invalid bytes.
17120
171212008-02-01 Kenichi Handa <handa@m17n.org>
17122
17123 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
17124 Unicode characters.
17125
171262008-02-01 Kenichi Handa <handa@m17n.org>
17127
17128 * coding.c (encode_coding_object): If a pre-write-conversion
17129 function makes a new buffer, kill it.
17130
171312008-02-01 Kenichi Handa <handa@m17n.org>
17132
17133 * coding.c (QCascii_compatible_p): New variable.
17134 (syms_of_coding): Initialize it.
17135 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
17136 calling string_char.
17137 (record_conversion_result): Add `default:' case.
17138 (coding_charset_list): Delete unused variable `coding_type'.
17139 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
17140 property in the plist of the coding system.
17141 (Fcoding_system_put): Check QCascii_compatible_p.
17142
171432008-02-01 Miles Bader <miles@gnu.org>
17144
17145 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
17146 removed calculation of frame `f', as it's now used.
17147
171482008-02-01 Kenichi Handa <handa@m17n.org>
17149
17150 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
17151 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
17152 (UNIDATA): New variable.
17153 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
17154 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
17155 $(RUN_TEMACS) unconditionally.
17156
171572008-02-01 Kenichi Handa <handa@m17n.org>
17158
17159 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
17160 (admindir): New variable.
17161 ($(lispsource)international/charprop.el): New target.
17162
171632008-02-01 Miles Bader <miles@gnu.org>
17164
17165 * character.c (chars-in-region): Remove obsolete function.
17166 (syms_of_character): Remove its initialization.
17167
171682008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
17169
17170 * w32select.c (validate_coding_system)
17171 (setup_windows_coding_system): New functions.
17172 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
17173 setup_windows_coding_system.
17174 (setup_config, Fw32_get_clipboard_data): Use
17175 validate_coding_system.
17176 (Fx_selection_exists): Move call to setup_config to a place
17177 where signals are allowed.
17178
17179 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
17180 (Fcheck_coding_system): Add declarations.
17181
171822008-02-01 Kenichi Handa <handa@m17n.org>
17183
17184 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
17185
171862008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17187
17188 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
17189 string as the second argument for x_new_fontset.
17190
171912008-02-01 Kenichi Handa <handa@m17n.org>
17192
17193 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
17194 (encode_coding_object): Use safe_call instead of call2.
17195
171962008-02-01 Kenichi Handa <handa@m17n.org>
17197
17198 * fontset.c (Fset_fontset_font): Check family element of a given vector.
17199
17200 * Makefile.in (lisp): Include charprop.el.
17201
172022008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17203
17204 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
17205 Not sure if it's unnecessary.
17206
172072008-02-01 Steven Tamm <steventamm@mac.com>
17208
17209 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
17210 some possibly unnecessary fontset checking code that crashed
17211 when creating a new frame.
17212
172132008-02-01 Kenichi Handa <handa@m17n.org>
17214
17215 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
17216 lookup_face.
17217
17218 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
17219
17220 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
17221
172222008-02-01 Kenichi Handa <handa@m17n.org>
17223
17224 * coding.c: Cancel the change done in HEAD on 2008-02-01.
17225 (coding_charset_list): New function.
17226
17227 * coding.h (coding_charset_list): Extern it.
17228
172292008-02-01 Kenichi Handa <handa@m17n.org>
17230
17231 * fontset.c (Fset_fontset_font): Call find_font_encoding with
17232 concatenation of family and registry.
17233
172342008-02-01 Kenichi Handa <handa@m17n.org>
17235
17236 * character.h (BYTE8_STRING): Fix typo.
17237
17238 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
17239 string to multibyte (sync to HEAD).
17240
17241 * casefiddle.c (casify_region): Handle changes in byte-length
17242 using replace_range_2 (sync to HEAD).
17243
172442008-02-01 Andreas Schwab <schwab@suse.de>
17245
17246 * chartab.c (map_char_table): GCPRO table and arg.
17247
172482008-02-01 Kenichi Handa <handa@m17n.org>
17249
17250 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
17251 already at limit.
17252
172532008-02-01 Kenichi Handa <handa@m17n.org>
17254
17255 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
17256 instead of fast_c_string_match_ignore_case.
17257 (find_font_encoding): Change argument to Lisp_Object. Use
17258 fast_string_match_ignore_case instead of
17259 fast_c_string_match_ignore_case. Change caller.
17260
172612008-02-01 Kenichi Handa <handa@m17n.org>
17262
17263 * xdisp.c (get_next_display_element): In unibyte case, decide to
17264 display in octal form by checking a character by
17265 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
17266
17267 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
17268
17269 * character.c (unibyte_has_multibyte_table): New variable.
17270
17271 * character.h (unibyte_has_multibyte_table): Extern it.
17272 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
17273
172742008-02-01 Kenichi Handa <handa@m17n.org>
17275
17276 * coding.c (encode_coding_iso_2022): Fix handling of charset
17277 annotation.
17278
172792008-02-01 Kenichi Handa <handa@m17n.org>
17280
17281 * coding.c (setup_coding_system): If coding_system is nil, use
17282 Qundecided.
17283 (Fterminal_coding_system): Return nil if terminal coding system is
17284 `undecided'.
17285 (syms_of_coding): Define coding-system `undecided' here. Setup
17286 terminal_coding as `undecided'.
17287
172882008-02-01 Kenichi Handa <handa@m17n.org>
17289
17290 * xdisp.c (message_dolog, set_message_1): Call
17291 unibyte_char_to_multibyte with arg type int.
17292
17293 * lread.c (read1): Fix reading of a char-table.
17294
17295 * print.c (print_object): Include sub char-table in circularities
17296 detection.
17297
172982008-02-01 Kenichi Handa <handa@m17n.org>
17299
17300 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
17301 Append the found sequences in car of ARGS instead of prepending.
17302
173032008-02-01 Kenichi Handa <handa@m17n.org>
17304
17305 * fileio.c (report_file_error): Make a unibyte string from
17306 strerror (errorno).
17307 (Fsubstitute_in_file_name): Fix the arg to
17308 unibyte_char_to_multibyte. It is evaluated twice.
17309
173102008-02-01 Kenichi Handa <handa@m17n.org>
17311
17312 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
17313
173142008-02-01 Kenichi Handa <handa@m17n.org>
17315
17316 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
17317 BOM is not found.
17318 (detect_coding, detect_coding_system): Optimization for ISO-2022
17319 when no 8-bit data is found.
17320
173212008-02-01 Jason Rumney <jasonr@gnu.org>
17322
17323 * w32fns.c (x_to_w32_font): Update to use new coding struct.
17324
173252008-02-01 Kenichi Handa <handa@m17n.org>
17326
17327 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
17328 CHARS.
17329
173302008-02-01 Steven Tamm <steventamm@mac.com>
17331
17332 * macterm.c (mac_encode_char): Add charset argument and update
17333 to use encoding_type.
17334 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
17335 switch to pure fontset.
17336 (decode_mac_font_name): Temporarily remove decoding.
17337 (x_font_name_to_mac_font_name): Temporarily remove encoding.
17338 (x_load_font): Temporarily remove encoding.
17339
173402008-02-01 Kenichi Handa <handa@m17n.org>
17341
17342 * xfaces.c (Fface_font): If frame is not on a window system,
17343 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
17344 refer to face->font.
17345 (split_font_name_into_vector, build_font_name_from_vector)
17346 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
17347 when HAVE_WINDOW_SYSTEM is defined.
17348
173492008-02-01 Kenichi Handa <handa@m17n.org>
17350
17351 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
17352 (x_produce_glyphs): Fix setting of members of cmp in case
17353 cmp->glyph_len is zero.
17354
17355 * fontset.c (Fset_fontset_font): Fix docstring.
17356 (Ffontset_info): Make it backward compatible. New arg ALL.
17357
173582008-02-01 Kim F. Storm <storm@cua.dk>
17359
17360 * process.c (read_process_output): Grow decoding_buf when needed;
17361 this could cause a crash in allocate_string and compact_small_strings.
17362
173632008-02-01 Kenichi Handa <handa@m17n.org>
17364
17365 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
17366
173672008-02-01 Kenichi Handa <handa@m17n.org>
17368
17369 * coding.c (setup_coding_system): Set coding->common_flags
17370 correctly for raw-text.
17371 (consume_chars): On encoding unibyte text by raw-text, don't check
17372 multibyte form.
17373 (encode_coding): On encoding by raw-text, never use translation tables.
17374
17375 * fileio.c (e_write): Short cut for the case of no encoding.
17376
173772008-02-01 Kenichi Handa <handa@m17n.org>
17378
17379 * coding.c (detect_coding, detect_coding_system): Delete unused
17380 variables.
17381
173822008-02-01 Kenichi Handa <handa@m17n.org>
17383
17384 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
17385 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
17386
173872008-02-01 Kenichi Handa <handa@m17n.org>
17388
17389 * coding.c (Ffind_coding_systems_region_internal): Include
17390 raw-text and no-conversion in the result.
17391
173922008-02-01 Kenichi Handa <handa@m17n.org>
17393
17394 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
17395 (load_font_get_repertory): Delete unnecessary check of ENCODING of
17396 FONT_DEF.
17397 (font_def_arg, add_arg, from_arg, to_arg): New args.
17398 (set_fontset_font): Change argument.
17399 (Fset_fontset_font): Fix for the case that TARGET is a script
17400 name and charset name.
17401 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
17402
174032008-02-01 Kenichi Handa <handa@m17n.org>
17404
17405 * fontset.c (fontset_font): Rename from fontset_face. Change return
17406 value.
17407 (face_suitable_for_char_p, face_for_char): Adjust for the change
17408 of fontset_font.
17409 (make_fontset_for_ascii_face): Fix setting of the fontset element
17410 for ASCII.
17411 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
17412 to get a font name.
17413 (Ffontset_info): Adjust for the change of fontset_font.
17414
17415 * coding.c (emacs_mule_char): Check invalid code more rigidly.
17416
17417 * character.h (LEADING_CODE_LATIN_1_MIN)
17418 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
17419
174202008-02-01 Kenichi Handa <handa@m17n.org>
17421
17422 * editfns.c (check_translation): New function.
17423 (Ftranslate_region_internal): Handle M:N mapping.
17424
174252008-02-01 Kenichi Handa <handa@m17n.org>
17426
17427 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
17428
174292008-02-01 Kenichi Handa <handa@m17n.org>
17430
17431 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
17432 goto invalid_code.
17433 (decode_coding_iso_2022): Fix handling of invalid designation.
17434
17435 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
17436 after calling code_conversion_save.
17437
174382008-02-01 Kenichi Handa <handa@m17n.org>
17439
17440 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
17441
17442 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
17443
17444 * fontset.c: Include "intervals.h".
17445 (fontset_face): Fix comparing of Lisp_Objects.
17446 (free_face_fontset, new_fontset_from_font_name): Fix
17447 Lisp_Object/int mixup.
17448
17449 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
17450
17451 * coding.c: Add many prototypes for static functions.
17452 (get_translation_table): Allow max_lookup to be NULL.
17453 (decode_coding, Ffind_coding_systems_region_internal)
17454 (Funencodable_char_position, Fcheck_coding_systems_region): Call
17455 get_translation_table with max_lookup NULL.
17456
174572008-02-01 Kenichi Handa <handa@m17n.org>
17458
17459 * coding.c (get_translation_table): Declare it as Lisp_Object.
17460 (LOOKUP_TRANSLATION_TABLE): New macro.
17461 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
17462 instead of CHAR_TABLE_REF.
17463
174642008-02-01 Kenichi Handa <handa@m17n.org>
17465
17466 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
17467 annotation data format.
17468 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
17469 Change arguments FROM and TO to single argument NCHARS. Change caller.
17470 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
17471 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17472 (decode_coding_ccl, decode_coding_charset): Pay attention to
17473 coding->charbuf_used.
17474 (get_translation): New function.
17475 (produce_chars): New arguments translation_table and last_block.
17476 Translate characters here. Return number of carryover chars.
17477 Change caller.
17478 (produce_composition): New argument pos. Change caller.
17479 Adjust for the change of annotation data format.
17480 (produce_charset, produce_annotation): Likewise.
17481 (decode_coding, encode_coding): Don't call translate_chars.
17482 (consume_chars): New arg translation_table. Change caller.
17483 (translate_chars): Delete.
17484 (syms_of_coding): Make translation-table's number of extra slots 2.
17485
174862008-02-01 Kenichi Handa <handa@m17n.org>
17487
17488 * search.c (simple_search): Fix setting this_pos_byte in backward
17489 search.
17490
17491 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
17492 byte sequence.
17493 (detect_coding_ccl): Fix setting of the variable valids.
17494
174952008-02-01 Kenichi Handa <handa@m17n.org>
17496
17497 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
17498
17499 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
17500
17501 * editfns.c (Ftranslate_region_internal): Rename from
17502 Ftranslate_region. Accept a char-table in TABLE.
17503 (syms_of_editfns): Defsubr Stranslate_region_internal.
17504
17505 * xfaces.c (set_lface_from_font_name): If a font is specified for
17506 a frame, generate a fontset from the font.
17507 (build_scalable_font_name): If the scalable font is requested for
17508 a specific size, don't change that size.
17509 (try_font_list): Try a scalable font also in the case that a
17510 pattern string is specified.
17511
175122008-02-01 Kenichi Handa <handa@m17n.org>
17513
17514 * xfaces.c (Fface_font): New optional arg CHARACTER.
17515
175162008-02-01 Kenichi Handa <handa@m17n.org>
17517
17518 * charset.h (CHARSET_OFFSET): New macro.
17519
175202008-02-01 Kenichi Handa <handa@m17n.org>
17521
17522 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
17523
17524 * fontset.c (fontset_face): Handle the case that repertory is a
17525 char-table.
17526 (find_font_encoding): Return nil for unknown encoding.
17527 (Fset_fontset_font): Ignore a font of unknown encoding.
17528
175292008-02-01 Kenichi Handa <handa@m17n.org>
17530
17531 * keymap.c (describe_vector): Handle default value of a char table.
17532
17533 * fontset.c (fontset_face): Handle fallback fonts correctly.
17534 (Ffontset_info): Return infomation about fallback fonts.
17535
175362008-02-01 Kenichi Handa <handa@m17n.org>
17537
17538 * fontset.c (FONTSET_DEFAULT): New macro.
17539 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
17540 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
17541 the case that it is nil.
17542 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
17543 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
17544
17545 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
17546 subset or superset.
17547
175482008-02-01 Kenichi Handa <handa@m17n.org>
17549
17550 * emacs.c (main): Call init_charset after syms_of_XXX.
17551
17552 * charset.c (Vcharset_map_directory): Delete.
17553 (Vcharset_map_path): New variable.
17554 (load_charset_map_from_file): Use Vcharset_map_path instead.
17555 (init_charset): Initialize Vcharset_map_path.
17556 (syms_of_charset): Delete declaration of "charset-map-directory",
17557 add declaration of "charset-map-path".
17558
175592008-02-01 Kenichi Handa <handa@m17n.org>
17560
17561 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
17562 ASCII only string.
17563
17564 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
17565
17566 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
17567 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
17568
175692008-02-01 Kenichi Handa <handa@m17n.org>
17570
17571 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
17572
17573 * coding.c (QCmnemonic, QCdefalut_char)
17574 (QCdecode_translation_table, QCencode_translation_table)
17575 (QCpost_read_conversion, QCpre_write_conversion): New variables.
17576 (get_translation_table): Return a list of translation tables if
17577 necessary.
17578 (decode_coding): Call get_translation_table with ENCODEP 0.
17579 (char_encodable_p): If translation_table is non-nil, always call
17580 translate_char.
17581 (Fdefine_coding_system_internal): Accept list of translation
17582 tables as :encode-translation-table and :decode-translation-table.
17583 (Fcoding_system_put): New function.
17584 (syms_of_coding): Declare new symbols. Defsubr
17585 Scoding_system_put.
17586 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
17587 typically JISX0212.
17588
17589 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
17590 when the charset is superset type.
17591
17592 * character.c (translate_char): Accept list of translation tables.
17593
175942008-02-01 Kenichi Handa <handa@m17n.org>
17595
17596 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
17597 (CODING_ATTR_TRANS_TBL): New macro.
17598
17599 * coding.c (get_translation_table): New function.
17600 (translate_chars): Fix the bug of skipping annotation data.
17601 (decode_coding, encode_coding): Utilize get_translation_table.
17602 (char_encodable_p, Funencodable_char_position): Translate char if
17603 necessary.
17604 (Ffind_coding_systems_region_internal)
17605 (Fcheck_coding_systems_region): Setup translation table for encode
17606 in a coding system attribute vector in advance.
17607 (Fdefine_coding_system_internal): Allow a symbol as translation
17608 table. For shift-jis type coding system, allow 4th charset.
17609
176102008-02-01 Kenichi Handa <handa@m17n.org>
17611
17612 * coding.c (decode_coding_sjis): Check the first byte rigidly.
17613
17614 * xdisp.c (get_next_display_element): Pass -1 as POS to
17615 FACE_FOR_CHAR if displaying a C-string.
17616
176172008-02-01 Kenichi Handa <handa@m17n.org>
17618
17619 * composite.c (get_composition_id): Handle xoff and yoff in a
17620 composition rule.
17621
17622 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
17623 (struct composition): New member lbearing and rbearing.
17624
17625 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
17626 (x_get_glyph_overhangs): Handle a composition glyph.
17627 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
17628
17629 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
17630 composition glyph.
17631
176322008-02-01 Kenichi Handa <handa@m17n.org>
17633
17634 * print.c: Include charset.h.
17635 (Vprint_charset_text_property): New variable.
17636 (Qdefault): Extern it.
17637 (PRINT_STRING_NON_CHARSET_FOUND)
17638 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
17639 (print_check_string_result): New variable.
17640 (print_check_string_charset_prop): New function.
17641 (print_prune_charset_plist): New variable.
17642 (print_prune_string_charset): New function.
17643 (print_object): Call print_prune_string_charset if
17644 Vprint_charset_text_property is not t.
17645 (print_interval): Print nothing if interval->plist is nil.
17646 (syms_of_print): Declare Vprint_charset_text_property as a lisp
17647 variable. Init and staticpro print_prune_charset_plist.
17648
176492008-02-01 Kenichi Handa <handa@m17n.org>
17650
17651 * fontset.c (new_fontset_from_font_name): Use the specified font
17652 for all characters in the new fontset.
17653
17654 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
17655 OBJECT args.
17656
17657 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
17658 OBJECT args for composition too.
17659
17660 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
17661 OBJECT args.
17662
176632008-02-01 Kenichi Handa <handa@m17n.org>
17664
17665 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
17666
17667 * fontset.c (reorder_font_vector): Adjust for the change of
17668 FONT_DEF format.
17669 (fontset_face): New arg id. Change caller.
17670 (face_for_char): New args pos and object.
17671 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
17672 (fs_query_fontset): Check NAME by Fassoc too.
17673 (Fset_fontset_font): Allow non-XLFD font name.
17674 (Ffontset_info): Adjust for the change of FONT_DEF format.
17675
17676 * fontset.h (face_for_char): Adjust prototype.
17677
17678 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
17679 (append_space, extend_face_to_end_of_line)
17680 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
17681 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
17682
17683 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
17684 POS and OBJECT args.
17685
17686 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
17687 POS and OBJECT args.
17688
176892008-02-01 Jason Rumney <jasonr@gnu.org>
17690
17691 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
17692 of GlobalAlloc'ed memory.
17693
176942008-02-01 Kenichi Handa <handa@m17n.org>
17695
17696 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
17697
17698 * charset.h (charset_table_used): Delete extern.
17699
17700 * charset.c (charset_table_used): Make it static.
17701 (map_charset_chars): Fix args to c_function with.
17702
17703 * chartab.c (map_sub_char_table_for_charset): Fix args to
17704 c_function with.
17705
17706 * coding.h (enum coding_result_code): Delete
17707 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
17708
17709 * coding.c (Qinsufficient_source, Qinconsistent_eol)
17710 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
17711 (Vlast_code_conversion_error): New variables.
17712 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
17713 (ONE_MORE_BYTE): Record error if any instead of signaling an
17714 error. If non-ASCII multibyte char is found, return the negative
17715 value of the code. All callers changed to check it.
17716 (ONE_MORE_BYTE_NO_CHECK): Likewise.
17717 (record_conversion_result): New function. Change all codes setting
17718 coding->result to call this function.
17719 (detect_coding_utf_8, decode_coding_utf_8)
17720 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
17721 Don't use the local variable incomplete.
17722 (emacs_mule_char): Change the second arg to `const'.
17723 (decode_coding): Fix of flushing out unprocessed data.
17724 (make_conversion_work_buffer): Fix making of a work buffer.
17725 (decode_coding_object): Return coding->dst_object.
17726
17727 * fontset.c (set_fontset_font): Fix args.
17728
17729 * lisp.h (CHARACTERBITS): Define as 22.
17730
17731 * process.c (send_process): Be sure to set coding->src_multibyte.
17732
17733 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
17734
177352008-02-01 Kenichi Handa <handa@m17n.org>
17736
17737 * xdisp.c (handle_auto_composed_prop): Give limit to
17738 Fnext_single_char_property_change.
17739
177402008-02-01 Kenichi Handa <handa@m17n.org>
17741
17742 * composite.c (syms_of_composite): Don't make the composition hash
17743 table weak.
17744
17745 * fontset.c (Fset_fontset_font): Fix docstring.
17746
17747 * lisp.h (detect_coding_system): Adjust prototype.
17748
17749 * fileio.c (kill_workbuf_unwind): Delete this function.
17750 (Finsert_file_contents): Adjust the call of detect_coding_system.
17751 Get conversion_buffer by code_conversion_save. Use the macro
17752 CODING_MAY_REQUIRE_DECODING. After decoding, update
17753 coding_system.
17754
17755 * coding.h (make_conversion_work_buffer): Delete extern.
17756 (code_conversion_save): Extern it.
17757
17758 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
17759 (CODING_GET_INFO): Delete argument eol_type. Change callers.
17760 (decode_coding_utf_8): Don't do eol converion.
17761 (detect_coding_utf_16): Check coding->src_chars, not
17762 coding->src_bytes. Add heuristics for those that have no signature.
17763 (decode_coding_emacs_mule, decode_coding_iso_2022)
17764 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
17765 Don't do eol converion.
17766 (adjust_coding_eol_type): Return a new coding system.
17767 (detect_coding): Don't detect eol. Fix for utf-16 detection.
17768 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
17769 each change.
17770 (decode_coding): Pay attention to undo_list. Do eol conversion for
17771 all types of coding-systems (if necessary).
17772 (Vcode_conversion_work_buf_list): Delete it.
17773 (Vcode_conversion_reused_workbuf): Rename from
17774 Vcode_conversion_reused_work_buf.
17775 (Vcode_conversion_workbuf_name): New variable.
17776 (reused_workbuf_in_use): New variable.
17777 (make_conversion_work_buffer): Delete the arg DEPTH.
17778 (code_conversion_restore): Change argument to cons.
17779 (code_conversion_save): Delete the argument BUFFER. Change callers.
17780 (detect_coding_system): New argument src_chars. Change callers.
17781 Fix for utf-16 detection.
17782 (init_coding_once): Don't use ISO_carriage_return.
17783 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
17784 reused_workbuf_in_use.
17785
177862008-02-01 Kenichi Handa <handa@m17n.org>
17787
17788 * keymap.c (store_in_keymap): Pay attention to the case that idx
17789 is a cons specifying a character range.
17790
177912008-02-01 Kenichi Handa <handa@m17n.org>
17792
17793 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
17794 HANDLED_RECOMPUTE_PROPS.
17795
17796 * coding.c (Fdefine_coding_system_internal): Fix checking of
17797 ascii compatibility.
17798
177992008-02-01 Kenichi Handa <handa@m17n.org>
17800
17801 * charset.c (find_charsets_in_text): Delete unused locale variable.
17802 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
17803
17804 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
17805 Resync charset_list to Vemacs_mule_charset_list.
17806
17807 * keymap.c (store_in_keymap): Pay attention to the case that idx
17808 is a cons specifying a character range.
17809
178102008-02-01 Kenichi Handa <handa@m17n.org>
17811
17812 * composite.c (update_compositions): Bind inhibit-read-only, etc
17813 to t before calling remove-list-of-text-properties.
17814
17815 * print.c (print_object): Always print ASCII chars as is.
17816
178172008-02-01 Kenichi Handa <handa@m17n.org>
17818
17819 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
17820
17821 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
17822 is a char table.
17823
178242008-02-01 Kenichi Handa <handa@m17n.org>
17825
17826 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
17827
178282008-02-01 Kenichi Handa <handa@m17n.org>
17829
17830 * xfaces.c (set_lface_from_font_name): Fix for the case that
17831 FONTNAME is not fontset name.
17832
178332008-02-01 Kenichi Handa <handa@m17n.org>
17834
17835 * fns.c (base64_encode_1): Fix previous change.
17836
178372008-02-01 Kenichi Handa <handa@m17n.org>
17838
17839 * fontset.c (set_fontset_font): New function.
17840 (Fset_fontset_font): If a font is specified for a charset, use
17841 map_charset_chars to store the font spec in a fontset.
17842
178432008-02-01 Kenichi Handa <handa@m17n.org>
17844
17845 * fontset.c (fontset_face): Create a fallback fontset on demand.
17846 (make_fontset): Don't create a fallback fontset here.
17847 (free_face_fontset): Free a fallback fontset (if any) too.
17848 (n_auto_fontsets): Delete this variable.
17849 (auto_fontset_alist): New variable.
17850 (new_fontset_from_font_name): Check auto_fontset_alist.
17851 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
17852 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
17853 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
17854 Defsubr Sfontset_list_all.
17855
178562008-02-01 Kenichi Handa <handa@m17n.org>
17857
17858 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
17859
178602008-02-01 Kenichi Handa <handa@m17n.org>
17861
17862 * fontset.c (Fnew_fontset): Check NAME more rigidly.
17863
178642008-02-01 Kenichi Handa <handa@m17n.org>
17865
17866 * editfns.c (Fgoto_char): Fix docstring.
17867
178682008-02-01 Kenichi Handa <handa@m17n.org>
17869
17870 * insdel.c (insert_from_gap): Adjust intervals correctly.
17871
178722008-02-01 Jason Rumney <jasonr@gnu.org>
17873
17874 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
17875 (pfnGetFontUnicodeRanges): New dynamically loaded function.
17876 (w32_initialize): Try to load it.
17877 (x_get_font_repertory): Use it if available.
17878 (w32_encode_char): Add shortcut for unicode output.
17879
17880 * w32fns.c (w32_load_system_font): Default charset to -1.
17881 (x_to_w32_charset): Match all fonts for unicode.
17882 (w32_to_x_charset): New parameter matching. Don't return partial
17883 or wildcard charsets.
17884 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
17885 (w32_codepage_for_font): Return CP_UNICODE for unicode.
17886 (w32_to_x_font): Match charset to real charset.
17887 (enum_font_cb2): Always list unicode versions.
17888
17889 * makefile.w32-in (temacs): Increase EMHEAP.
17890
178912008-02-01 Jason Rumney <jasonr@gnu.org>
17892
17893 * w32term.c (w32_encode_char): New charset parameter.
17894 font_info.encoding becomes encoding_type.
17895 (x_get_font_repertory): New function. Warning: stub only!
17896 (x_new_font): Return quickly if font already set.
17897 (x_new_fontset): fontsetname parameter is Lisp_Object.
17898 Use new fs_query_fontset. Try new_fontset_from_font_name.
17899 Use fontset_name for return value.
17900
17901 * w32term.h: Declare x_get_font_repertory.
17902
17903 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
17904 place of find_charset_in_text. Use encode_coding_object in place
17905 of encode_coding.
17906 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
17907 decode_coding.
17908
17909 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
17910 of x_new_fontset.
17911 (w32_load_system_font): Initialize charset as unicode.
17912 font_info.encoding becomes encoding_type.
17913 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
17914 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
17915 (syms_of_w32fns): Set get_font_repertory_func.
17916
17917 * w32console.c: Include character.h. Use terminal_encode_buffer
17918 from term.c.
17919 (write_glyphs): Use new version of encode_terminal_code. Use
17920 encode_coding_object in place of encode_coding.
17921
17922 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
17923 encoding becomes encoding_type.
17924
17925 * term.c (terminal_encode_buffer): Make externally visible.
17926
17927 * makefile.w32-in: Add character.h dependancies.
17928 (character.o, chartab.o): New targets.
17929
179302008-02-01 Kenichi Handa <handa@m17n.org>
17931
17932 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
17933 CODING_ID_EOL_TYPE.
17934
179352008-02-01 Andreas Schwab <schwab@suse.de>
17936
17937 * coding.c (produce_chars): Revert last change.
17938
179392008-02-01 Kenichi Handa <handa@m17n.org>
17940
17941 * charset.h (charset_unicode): Extern it.
17942
17943 * charset.c (string_xstring_p): Check by (C >= 0x100).
17944 (find_charsets_in_text): Change format of the arc CHARSETS. New
17945 arg MULTIBYTE.
17946 (Ffind_charset_region, Ffind_charset_string): Adjust for the
17947 change of find_charsets_in_text.
17948 (Fsplit_char): Fix doc. Never return unknown.
17949
17950 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
17951
17952 * coding.c (Fdefine_coding_system_alias): Update
17953 Vcoding_system_list.
17954
17955 * fontset.c (load_font_get_repertory): Pay attention to the case
17956 that ENCODING of a font is specified by a char-table.
17957
17958 * xterm.c (x_get_font_repertory): Handle the case that the
17959 encoding of font is other than Unicode.
17960
179612008-02-01 Kenichi Handa <handa@m17n.org>
17962
17963 * term.c (encode_terminal_code): Don't handle glyph-table. Check
17964 if a character is encodable by the terminal coding system. If
17965 not, produces proper number of `?'s. Update
17966 terminal_encode_buffer and terminal_encode_buf_size if necessary.
17967 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
17968
179692008-02-01 Kenichi Handa <handa@m17n.org>
17970
17971 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
17972 variables.
17973 (encode_terminal_code): Change argument. Encode multiple
17974 characters at once. Store the result of encoding in
17975 terminal_encode_buffer.
17976 (write_glyphs, insert_glyphs): Adjust for the change of
17977 encode_terminal_code.
17978 (term_init): Initialize terminal_encode_buffer and
17979 terminal_encode_buf_size.
17980
17981 * coding.c (consume_chars): If coding->src_object is nil, don't
17982 check annotation.
17983
179842008-02-01 Kenichi Handa <handa@m17n.org>
17985
17986 * character.c (char_string): Use ASCII_CHAR_P instead of
17987 SINGLE_BYTE_CHAR_P.
17988
179892008-02-01 Kenichi Handa <handa@m17n.org>
17990
17991 * xdisp.c (handle_auto_composed_prop): Check if the last
17992 characters of auto-composed region is newly composed with the
17993 following characters.
17994 (handle_composition_prop): Fix checking of point being inside
17995 composition.
17996
179972008-02-01 Kenichi Handa <handa@m17n.org>
17998
17999 * fns.c (concat): Don't change multibyteness of the result by
18000 concatenating an 8-bit character.
18001
18002 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
18003 multibyteness of the result when newelt is an 8-bit character.
18004
180052008-02-01 Dave Love <fx@gnu.org>
18006
18007 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
18008 EMACS_INT.
18009
18010 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
18011
18012 * xfaces.c (face_numeric_value): Declare dim size_t.
18013 (Finternal_lisp_face_equal_p): Remove unused f.
18014
18015 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
18016 (MATRIX_ROW): Remove unused vars.
18017 (draw_glyphs, x_insert_glyphs, fast_find_position)
18018 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
18019 byte/char counts.
18020
18021 * regex.c (regex_compile): Remove unused var.
18022
18023 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
18024
18025 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
18026 (Faccessible_keymaps, where_is_internal): Remove unused vars.
18027
18028 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
18029
18030 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
18031
18032 * fileio.c (Fwrite_region): Remove unused var.
18033
18034 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
18035 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
18036
18037 * composite.c (Fremove_list_of_text_properties): Declare.
18038
18039 * coding.c (inhibit_pre_post_conversion): Remove (unused).
18040 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
18041 (coding_inherit_eol_type): Remove unused attrs.
18042 (detect_coding): Cast arg of detect_eol.
18043
18044 * charset.c (syms_of_charset): Remove unused var p.
18045 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
18046 byte/char counts.
18047
18048 * casetab.c (set_case_table): Remove unused var.
18049
18050 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
18051 unused vars.
18052
180532008-02-01 Dave Love <fx@gnu.org>
18054
18055 * xterm.c (x_bitmap_mask): Declare.
18056
180572008-02-01 Dave Love <fx@gnu.org>
18058
18059 * xterm.c (x_term_init): Fix type error.
18060
18061 * lisp.h: Add Funibyte_char_to_multibyte.
18062
18063 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
18064 (Fset_coding_system_priority): Doc fix.
18065
18066 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
18067
18068 * indent.c (check_composition): Make start and end EMACS_INT.
18069
18070 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
18071
18072 * xdisp.c (handle_composition_prop, check_point_in_composition):
18073 Make buffer positions EMACS_INT.
18074
18075 * composite.c (find_composition, run_composition_function)
18076 (update_compositions, Ffind_composition_internal): Make buffer
18077 positions EMACS_INT.
18078
18079 * composite.h (find_composition, update_compositions): Make
18080 position args EMACS_INT.
18081
18082 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
18083
18084 * intervals.c (get_property_and_range):
18085 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
18086
18087 * unexalpha.c: Don't include varargs.h.
18088
180892008-02-01 Dave Love <fx@gnu.org>
18090
18091 * coding.h (ENCODE_UTF_8): New.
18092
18093 * Makefile.in (gtkutil.o): Depend on coding.h.
18094
18095 * coding.c (Fset_coding_system_priority): Doc fix.
18096
180972008-02-01 Kenichi Handa <handa@m17n.org>
18098
18099 * fileio.c (Finsert_file_contents): Call setup_coding_system in
18100 the case of auto saving.
18101
181022008-02-01 Andreas Schwab <schwab@suse.de>
18103
18104 * chartab.c (map_char_table, map_char_table_for_charset): Protect
18105 `range' from GC.
18106
181072008-02-01 Kenichi Handa <handa@m17n.org>
18108
18109 * coding.c (decode_coding_sjis): Check bytes more rigidly.
18110
181112008-02-01 Kenichi Handa <handa@m17n.org>
18112
18113 * fileio.c (choose_write_coding_system): Return a decided coding system.
18114 (Fwrite_region): Set Vlast_coding_system_used to the return value
18115 of choose_write_coding_system.
18116
181172008-02-01 Kenichi Handa <handa@m17n.org>
18118
18119 * charset.c (Fset_charset_priority): Pay attention to duplicated
18120 arguments.
18121
18122 * coding.c (QCcategory): New variable.
18123 (syms_of_coding): Defsym it. Set all elements of
18124 Vcoding_category_table and their symbol values.
18125 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
18126 coding-category-XXX, and coding-category-list.
18127 (Fdefine_coding_system_internal): Add category in the plist.
18128
181292008-02-01 Kenichi Handa <handa@m17n.org>
18130
18131 * callproc.c (Fcall_process): Handle carryover correctly.
18132
18133 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
18134 (raw_text_coding_system): Check NILP (coding_system).
18135 (coding_inherit_eol_type): Check NILP (coding_system) and
18136 NILP (parent).
18137 (consume_chars): Fix for the case of raw-text.
18138
18139 * process.c (read_process_output): Handle carryover correctly.
18140
181412008-02-01 Dave Love <fx@gnu.org>
18142
18143 * regex.c (re_search_2): Fix last change.
18144
181452008-02-01 Kenichi Handa <handa@m17n.org>
18146
18147 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
18148 target_multibyte. Even in a unibyte case, return a converted
18149 multibyte char.
18150 (GET_CHAR_AFTER): New macro.
18151 (PATFETCH): Translate via multibyte char.
18152 (HANDLE_UNIBYTE_RANGE): Delete this macro.
18153 (SETUP_MULTIBYTE_RANGE): New macro.
18154 (regex_compile): Setup compiled code so that its multibyteness
18155 matches that of a target. Fix the handling of "[X-YZ]" using
18156 SETUP_MULTIBYTE_RANGE.
18157 (analyse_first) <charset>: For filling fastmap for all multibyte
18158 characters, don't check by BASE_LEADING_CODE_P.
18159 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
18160 the same as RE_MULTIBYTE_P (bufp) now.
18161 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
18162 (TARGET_CHAR_AND_LENGTH): Delete this macro.
18163 (TRANSLATE_VIA_MULTIBYTE): New macro.
18164 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
18165 It is the same as RE_MULTIBYTE_P (bufp) now.
18166 <exactn>: Translate via multibyte.
18167 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
18168 translate it.
18169 <charset, charset_not>: Fetch a character by
18170 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
18171 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
18172 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
18173 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
18174 by GET_CHAR_AFTER.
18175 (bcmp_translate): Likewise.
18176
18177 * search.c (compile_pattern): Check the member target_multibyte,
18178 not the member multibyte of buf.
18179
18180 * lread.c (read1): While reading a string, set force_singlebyte
18181 and force_multibyte correctly.
18182
18183 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
18184 up of unibyte_to_multibyte_table.
18185
181862008-02-01 Kenichi Handa <handa@m17n.org>
18187
18188 * coding.c (setup_coding_system): If coding has
18189 post-read-conversion or pre-write-conversion, set
18190 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
18191 respectively.
18192 (decode_coding_gap): Run post-read-conversion if any.
18193
18194 * fileio.c (Finsert_file_contents): Even if we read into a
18195 unibyte buffer, check if we must decode the result or not.
18196
181972008-02-01 Kenichi Handa <handa@m17n.org>
18198
18199 * coding.c (make_conversion_work_buffer): Change the work buffer
18200 name to the same one as that of Emacs 21.
18201
182022008-02-01 Kenichi Handa <handa@m17n.org>
18203
18204 * coding.h (make_conversion_work_buffer): Adjust prototype.
18205 (code_conversion_restore): Don't extern it.
18206
18207 * coding.c (detected_mask): Delete unused variable.
18208 (decode_coding_iso_2022): Pay attention to the byte sequence of
18209 CTEXT extended segment, and retain those bytes as is.
18210 (decode_coding_ccl): Delete unused variable `valids'.
18211 (setup_coding_system): Delete unused variable `category'.
18212 (consume_chars): Delete unused variable `category'. Make it work
18213 for non-multibyte case.
18214 (make_conversion_work_buffer): Change argument.
18215 (saved_coding): Delete unused variable.
18216 (code_conversion_restore): Don't check saved_coding->destination.
18217 (code_conversion_save): New function.
18218 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
18219 instead of record_unwind_protect.
18220 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
18221 (detect_coding_system): Delete unused variable `mask'.
18222 (Fdefine_coding_system_internal): Delete unused variable id.
18223
18224 * fileio.c (kill_workbuf_unwind): New function.
18225 (Finsert_file_contents): On replacing, call
18226 make_conversion_work_buffer with correct args, and call
18227 record_unwind_protect with the first arg kill_workbuf_unwind.
18228
18229 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
18230
182312008-02-01 Kenichi Handa <handa@m17n.org>
18232
18233 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
18234 (fontset_add): Fix for the case that TO is less than TO1.
18235 (Ffontset_info): Don't use fallback fontset on checking the
18236 default fontset.
18237 (dump_fontset): New function for debugging.
18238
18239 * coding.c (Fdefine_coding_system_internal): Fix for the case that
18240 coding_type is Qcharset.
18241
182422008-02-01 Kenichi Handa <handa@m17n.org>
18243
18244 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
18245 (map_char_table): Don't inherit the value from the parent on
18246 initializing VAL. Adjust for the above change.
18247
182482008-02-01 Kenichi Handa <handa@m17n.org>
18249
18250 * coding.c (Qsignature, Qendian): Delete these variables.
18251 (syms_of_coding): Don't initialize them.
18252 (CATEGORY_MASK_UTF_16_AUTO): New macro.
18253 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
18254 detect_info->found.
18255 (decode_coding_utf_16): Don't detect BOM here.
18256 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
18257 is NOT utf_16_without_bom.
18258 (setup_coding_system): For a coding system of type utf-16, check
18259 if the attribute :endian is Qbig or not (not nil or not), and set
18260 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
18261 (detect_coding): If coding type is utf-16 and BOM detection is
18262 required, detect it.
18263 (Fdefine_coding_system_internal): For a coding system of type
18264 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
18265
182662008-02-01 Kenichi Handa <handa@m17n.org>
18267
18268 * coding.c (coding_set_source): Fix for the case that the current
18269 buffer is different from coding->src_object.
18270 (decode_coding_object): Don't use the conversion work buffer if
18271 DST_OBJECT is a buffer.
18272
182732008-02-01 Dave Love <fx@gnu.org>
18274
18275 * lread.c (read_emacs_mule_char) [len==2]: Index
18276 emacs_mule_charset correctly.
18277
182782008-02-01 Dave Love <fx@gnu.org>
18279
18280 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
18281 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
18282 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
18283 treated specially.)
18284 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
18285 (detected_mask): Remove Big5 bits.
18286
182872008-02-01 Kenichi Handa <handa@m17n.org>
18288
18289 The following changes are to make the font rescaling facility
18290 compatible with Emacs 21.
18291
18292 * xfaces.c (Vface_font_rescale_alist): Rename from
18293 Vface_resizing_fonts.
18294 (struct font_name): Rename member resizing_ratio to rescale_ratio.
18295 (font_rescale_ratio): Rename from font_resizing_ratio.
18296 (split_font_name): Set font->rescale_ratio.
18297 (better_font_p): Pay attention to font->rescale_ratio.
18298 (build_scalable_font_name): Likewise. Change RESX, and RESY
18299 fields.
18300 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
18301
183022008-02-01 Kenichi Handa <handa@m17n.org>
18303
18304 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
18305 (Qutf_16_le): Remove these variables.
18306 (syms_of_coding): Don't DEFSYM them.
18307 (decode_coding_utf_16): Fix handling of BOM.
18308 (encode_coding_utf_16): Fix handling of BOM.
18309
183102008-02-01 Kenichi Handa <handa@m17n.org>
18311
18312 * fileio.c (Finsert_file_contents): On replacing, before decoding
18313 the file into the work buffer, set point of the work buffer to the end.
18314
183152008-02-01 Dave Love <fx@gnu.org>
18316
18317 * coding.c (Fcheck_coding_systems_region): Fix type errors.
18318
183192008-02-01 Dave Love <fx@gnu.org>
18320
18321 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
18322 and fix C types.
18323
183242008-02-01 Kenichi Handa <handa@m17n.org>
18325
18326 * xdisp.c (SKIP_GLYPHS): New macro.
18327 (set_cursor_from_row): Pay attention to string display properties.
18328
18329 * category.c (copy_category_entry): Fix for the case that RANGE
18330 is an integer.
18331
18332 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
18333
18334 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
18335
183362008-02-01 Kenichi Handa <handa@m17n.org>
18337
18338 * charset.c (Fcharset_id_internal): New function.
18339 (syms_of_charset): Defsubr it.
18340
18341 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
18342 with the last arg charset_list acquired from coding.
18343 (Fdefine_coding_system_internal): For ccl-based coding system, fix
18344 the attribute coding_attr_ccl_valids.
18345
18346 * coding.h (enum define_coding_ccl_arg_index): Set the first
18347 member coding_arg_ccl_decoder to coding_arg_max.
18348
18349 * ccl.h (ccl_driver): Adjust prototype.
18350
18351 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
18352 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 18353 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
18354 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
18355 last arg Qnil.
18356
183572008-02-01 Kenichi Handa <handa@m17n.org>
18358
18359 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
18360 call encode_char.
18361
18362 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
18363
183642008-02-01 Dave Love <fx@gnu.org>
18365
18366 * composite.c (syms_of_composite): Make composition_hash_table weak.
18367
183682008-02-01 Kenichi Handa <handa@m17n.org>
18369
18370 * dispextern.h (check_face_attributes, generate_ascii_font_name)
18371 (font_name_registry): Don't extern them.
18372 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
18373
18374 * fontset.h (Qfontset): Don't extern it.
18375 (new_fontset_from_font_name): Extern it.
18376
18377 * fontset.c: Give 8 extra slots to fontset objects.
18378 (Qfontset_info): New variable.
18379 (syms_of_fontset): Defsym it.
18380 (FONTSET_FALLBACK): New macro.
18381 (fontset_face): Try also the default fontset.
18382 (make_fontset): Realize a fallback fontset from the default fontset.
18383 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
18384 using split_font_name_into_vector and build_font_name_from_vector.
18385 (Fset_fontset_font): Access the elements of font_spec by enum
18386 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
18387 name by using split_font_name_into_vector.
18388 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
18389 generate a proper font name from the fontset name. Update
18390 Vfontset_alias_alist.
18391 (n_auto_fontsets): New variable.
18392 (new_fontset_from_font_name): New function.
18393 (Ffont_info): Store the information about fonts generated from the
18394 default fontset in the first extra slot of the returned char-table.
18395
18396 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
18397 (font_name_registry): Delete function.
18398 (split_font_name_into_vector): New function.
18399 (build_font_name_from_vector): New function.
18400 (font_list): The argument REGISTRY is now a list of registry names.
18401 (choose_face_font): If we are choosing an ASCII font, and ATTRS
18402 specifies an explicit font name, return the name as is. Make a
18403 list of registy names.
18404
18405 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
18406 of x_new_fontset.
18407 (Fx_create_frame): Don't call x_new_fontset here. Just use
18408 x_list_fonts to check the existence of fonts.
18409
18410 * xterm.h (x_new_fontset): Adjust prototype.
18411
18412 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
18413 string. Use new_fontset_from_font_name to create a fontset from a
18414 font name.
18415
184162008-02-01 Kenichi Handa <handa@m17n.org>
18417
18418 * syntax.c (Vfind_word_boundary_function_table): New name for
18419 Vnext_word_boundary_function_table.
18420 (find-word-boundary-function-table): New name for
18421 next-word-boundary-function-table.
18422
184232008-02-01 Dave Love <fx@gnu.org>
18424
18425 * Makefile.in: Fix some dependencies.
18426
18427 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
18428 set it to nil before returning.
18429
18430 * composite.c (update_compositions): Fix type error.
18431
18432 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
18433
184342008-02-01 Kenichi Handa <handa@m17n.org>
18435
18436 * xterm.c (x_new_font): Optimize for the case that the font is
18437 already set for the frame.
18438
184392008-02-01 Kenichi Handa <handa@m17n.org>
18440
18441 * chartab.c (char_table_ascii): Check if the char table contents
18442 is sub-char-table or not.
18443 (char_table_set, char_table_set_range): Fix argument to
18444 char_table_ascii.
18445
18446 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
18447 (detect_coding_utf_8, detect_coding_utf_16)
18448 (detect_coding_emacs_mule, detect_coding_iso_2022)
18449 (detect_coding_sjis, detect_coding_big5)
18450 (detect_coding_ccl, detect_coding_charset): Change argument MASK
18451 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
18452 sequence is valid in this coding system. Change callers.
18453 (MAX_ANNOTATION_LENGTH): New macro.
18454 (ADD_ANNOTATION_DATA): New macro.
18455 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
18456 ADD_ANNOTATION_DATA. Change the format of annotation data.
18457 (ADD_CHARSET_DATA): New macro.
18458 (emacs_mule_char): New argument ID. Change callers.
18459 (decode_coding_emacs_mule, decode_coding_iso_2022)
18460 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
18461 Produce charset annotation data in coding->charbuf.
18462 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
18463 to charset annotation data in coding->charbuf.
18464 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
18465 coding->common_flags if the coding system is iso-2022 based and
18466 uses designation.
18467 (produce_composition): Adjust for the new annotation data format.
18468 (produce_charset): New function.
18469 (produce_annotation): Handle charset annotation.
18470 (handle_composition_annotation, handle_charset_annotation): New
18471 functions.
18472 (consume_chars): Handle charset annotation. Utilize the above two
18473 functions.
18474 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
18475 buffer, get the deleted text as a string and set
18476 coding->src_object to that string.
18477 (detect_coding, detect_coding_system): Use the new struct
18478 coding_detection_info.
18479
18480 * coding.h (struct coding_detection_info): New structure.
18481 (struct coding_system): Adjust prototype of the member `detector'.
18482 (CODING_ANNOTATE_CHARSET_MASK): New macro.
18483
184842008-02-01 Kenichi Handa <handa@m17n.org>
18485
18486 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
18487
184882008-02-01 Dave Love <fx@gnu.org>
18489
18490 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
18491 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
18492 to new local and nullify apropos_accumulate before returning.
18493 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
18494
184952008-02-01 Kenichi Handa <handa@m17n.org>
18496
18497 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
18498 correctly.
e3eea1fc 18499
aac0c6e3
MR
185002008-02-01 Dave Love <fx@gnu.org>
18501
18502 * fns.c (Flanginfo): Call synchronize_system_time_locale.
18503
185042008-02-01 Kenichi Handa <handa@m17n.org>
18505
18506 The following changes are to make character composition happen
18507 automatically on displaying.
18508
18509 * Makefile.in (lisp, shortlisp): Add composite.elc.
18510
18511 * composite.h (Qauto_composed, Vauto_composition_function)
18512 (Qauto_composition_function): Extern them.
18513
18514 * composite.c (Vcomposition_function_table)
18515 (Qcomposition_function_table): Delete variables.
18516 (Qauto_composed, Vauto_composition_function)
18517 (Qauto_composition_function): New variables.
18518 (run_composition_function): Don't call
18519 compose-chars-after-function.
18520 (update_compositions): Clear `auto-composed' text property.
18521 (compose_chars_in_text): Delete this function.
18522 (syms_of_composite): Staticpro Qauto_composed and
18523 Qauto_composition_function. Declare Vauto_composition_function as
18524 a Lisp variable.
18525
18526 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
18527
18528 * xdisp.c (it_props): Add an entry for Qauto_composed.
18529 (handle_auto_composed_prop): New function.
18530
18531 * xselect.c (selection_data_to_lisp_data): Don't call
18532 compose_chars_in_text.
18533
185342008-02-01 Dave Love <fx@gnu.org>
18535
18536 * keyboard.c (read_char): Modify checking around use of
18537 Vkeyboard_translate_table.
18538
18539 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
18540 and fix C types.
18541
185422008-02-01 Kenichi Handa <handa@m17n.org>
18543
18544 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
18545 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
18546 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
18547 the case that the last byte is '\r' correctly.
18548 (decode_coding): Flush out the unprocessed data correctly.
18549 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
18550
185512008-02-01 Dave Love <fx@gnu.org>
18552
18553 * xterm.c (XTread_socket): Fix changes for defined keysyms.
18554 Add XK_ISO... case.
18555 (xaw_scroll_callback): Revert last change.
18556
185572008-02-01 Kenichi Handa <handa@m17n.org>
18558
18559 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
18560
185612008-02-01 Kenichi Handa <handa@m17n.org>
18562
18563 * xfaces.c (Vface_resizing_fonts): New variable.
18564 (struct font_name): New member `resizing_ratio'.
18565 (font_resizing_ratio): New function.
18566 (split_font_name): Set font->resizing_ratio.
18567 (better_font_p): Pay attention to font->resizing_ratio.
18568 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
18569 RESX, and RESY fields.
18570 (try_alternative_families): Try scalable fonts if
18571 Vscalable_fonts_allowed is not Qt.
18572 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
18573
185742008-02-01 Dave Love <fx@gnu.org>
18575
18576 * xterm.c (xaw_scroll_callback): Cast correctly.
18577
185782008-02-01 Dave Love <fx@gnu.org>
18579
18580 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
18581 (lispy_kana_keys): Comment out.
18582 (make_lispy_event) [XK_kana_A]: Comment out.
18583
18584 * xterm.c (xaw_scroll_callback): Cast call_data.
18585 (XTread_socket): Deal with ASCII keysyms.
18586 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
18587
185882008-02-01 Dave Love <fx@gnu.org>
18589
18590 * xterm.c (Vx_keysym_table): New.
18591 (syms_of_xterm): Initialize it.
18592 (XTread_socket): Use it.
18593 From head: Eliminate incorrect optimization that tried to avoid
18594 decoding the output of X*LookupString.
18595 (x_get_font_repertory): Delete charset declaration.
18596
185972008-02-01 Kenichi Handa <handa@m17n.org>
18598
18599 * coding.c (detect_coding_charset): If only ASCII bytes are found,
18600 return 0.
18601 (Fdefine_coding_system_internal): Setup
18602 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
18603
186042008-02-01 Dave Love <fx@gnu.org>
18605
18606 * coding.c (Fcheck_coding_system): Doc fix.
18607
18608 * editfns.c (Finsert_byte): Return a proper value.
18609
186102008-02-01 Kenichi Handa <handa@m17n.org>
18611
18612 * coding.c (decode_coding): Fix args to translate_chars. Pay
18613 attention to Vstandard_translation_table_for_decode.
18614 (encode_coding): Fix args to translate_chars. Pay attention to
18615 Vstandard_translation_table_for_encode.
18616
18617 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
18618 SINGLE_BYTE_CHAR_P.
18619
18620 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
18621 not by SINGLE_BYTE_CHAR_P.
18622
18623 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
18624 SINGLE_BYTE_CHAR_P.
18625
18626 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
18627 SINGLE_BYTE_CHAR_P.
18628
18629 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
18630 by SINGLE_BYTE_CHAR_P.
18631
18632 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
18633 SINGLE_BYTE_CHAR_P.
18634
186352008-02-01 Dave Love <fx@gnu.org>
18636
18637 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
18638
186392008-02-01 Dave Love <fx@gnu.org>
18640
18641 * fns.c (Flanginfo): Fix typo.
18642
18643 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
18644
186452008-02-01 Kenichi Handa <handa@m17n.org>
18646
18647 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
18648 (detect_coding_emacs_mule, detect_coding_iso_2022)
18649 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
18650 incomplete byte sequence. Don't update *mask when correctly detected.
18651 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
18652 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
18653 (detect_coding, detect_coding_system): Adjust for the changes above.
18654
186552008-02-01 Kenichi Handa <handa@m17n.org>
18656
18657 * character.c (char_string): Rename from
18658 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
18659 (string_char): Rename from string_char.
18660
18661 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
18662 if C is greater than MAX_3_BYTE_CHAR.
18663 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
18664 string_char instead of string_char_with_unification.
18665
186662008-02-01 Dave Love <fx@gnu.org>
18667
18668 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
18669
186702008-02-01 Kenichi Handa <handa@m17n.org>
18671
18672 * keymap.c (push_key_description): Pay attention to force_multibyte.
18673
18674 * regex.c (re_search_2): Fix for the case of unibyte buffer.
18675
186762008-02-01 Dave Love <fx@gnu.org>
18677
18678 * charset.c (define_charset_internal): Rename `supprementary'.
18679
18680 * Makefile.in (lisp, shortlisp): Remove latin-N.
18681
186822008-02-01 Dave Love <fx@gnu.org>
18683
18684 * xfns.c (x_window, x_window): Use use_xim.
18685
18686 * xterm.c (use_xim): Initialize.
18687 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
18688 (x_term_init): Maybe set use_xim.
18689
18690 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
18691
186922008-02-01 Kenichi Handa <handa@m17n.org>
18693
18694 * search.c (search_buffer): Fix case-fold-search of multibyte
18695 characters.
18696 (boyer_moore): Rename the last argument to char_high_bits.
18697
186982008-02-01 Kenichi Handa <handa@m17n.org>
18699
18700 * xdisp.c (display_string): Fix for the case of zero width glyph.
18701
18702 * xfns.c (x_set_font): Change the error message of the case that
18703 x_new_fontset returns Qt.
18704
18705 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
18706 (Finternal_set_lisp_face_attribute): Use signal_error for the
18707 error of invalid fontset.
18708
18709 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
18710 fontset, return Qt.
18711
187122008-02-01 Dave Love <fx@gnu.org>
18713
18714 * unexelf.c (unexec): Make .got handling not SGI-specific.
18715
18716 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
18717
18718 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
18719
18720 * keyboard.c (read_key_sequence): Fix type error.
18721
18722 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
18723 type error.
18724
18725 * fontset.c (fontset_add): Return Lisp_Object.
18726
187272008-02-01 Dave Love <fx@gnu.org>
18728
18729 * charset.h (charset_ordered_list_tick): Declare extern.
18730
187312008-02-01 Kenichi Handa <handa@m17n.org>
18732
18733 The following changes (and some of 2008-02-01 changes of mine) are
18734 for handling syntax, category, and case conversion for unibyte
18735 characters by converting them to multibyte on the fly. With these
18736 changes, we don't have to setup syntax and case tables for unibyte
18737 characters in each language environment.
18738
18739 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
18740 multibyte if necessary.
18741
18742 * bytecode.c (Fbyte_code): Likewise.
18743
18744 * character.h (LEADING_CODE_LATIN_1_MIN)
18745 (LEADING_CODE_LATIN_1_MAX): New macros.
18746 (unibyte_to_multibyte_table): Extern it.
18747 (unibyte_char_to_multibyte): New macro.
18748 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
18749 (CHAR_LEADING_CODE): New macro.
18750 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
18751
18752 * character.c (unibyte_to_multibyte_table): New variable.
18753 (unibyte_char_to_multibyte): Move to character.h and define as macro.
18754 (multibyte_char_to_unibyte): If C is an eight-bit character,
18755 convert it to the corresponding byte value.
18756
18757 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
18758 not 1, signals an error. Update the elements of
18759 unibyte_to_multibyte_table.
18760 (init_charset_once): Initialize unibyte_to_multibyte_table.
18761 (syms_of_charset): Define the charset `iso-8859-1'.
18762
18763 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
18764 as is without converting it to unibyte. In a unibyte buffer,
18765 convert C to multibyte before checking the syntax.
18766
18767 * lisp.h (unibyte_char_to_multibyte): Delete extern.
18768
18769 * minibuf.c (Fminibuffer_complete_word): Use the macro
18770 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
18771
18772 * regex.h (struct re_pattern_buffer): New member target_multibyte.
18773
18774 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
18775 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
18776 that is zero, convert an eight-bit char to multibyte.
18777 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
18778 non-emacs case.
18779 (PATFETCH): Convert an eight-bit char to multibyte.
18780 (HANDLE_UNIBYTE_RANGE): New macro.
18781 (regex_compile): Setup the compiled pattern for multibyte chars
18782 even if the given regex string is unibyte. Use PATFETCH_RAW
18783 instead of PATFETCH in many places. To handle `charset'
18784 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
18785 only for ASCII chars.
18786 (analyse_first) <exactn>: Simplify because the compiled pattern
18787 is multibyte.
18788 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
18789 <charset>: Use CHAR_LEADING_CODE to get leading codes.
18790 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
18791 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
18792 multibyte always 1.
18793 (re_search_2): In emacs, set the locale variable multibyte to 1,
18794 otherwise to 0. New local variable target_multibyte. Check it
18795 to decide the multibyteness of STR1 and STR2. If
18796 target_multibyte is zero, convert unibyte chars to multibyte
18797 before translating and checking fastmap.
18798 (TARGET_CHAR_AND_LENGTH): New macro.
18799 (re_match_2_internal): In emacs, set the locale variable multibyte
18800 to 1, otherwise to 0. New local variable target_multibyte. Check
18801 it to decide the multibyteness of STR1 and STR2. Use
18802 TARGET_CHAR_AND_LENGTH to fetch a character from D.
18803 <charset, charset_not>: If multibyte is nonzero, check fastmap
18804 only for ASCII chars. Call bcmp_translate with
18805 target_multibyte, not with multibyte.
18806 <begline>: Declare the local variable C as `unsigned'.
18807 (bcmp_translate): Change the last arg name to target_multibyte.
18808
18809 * search.c (compile_pattern_1): Don't adjust the multibyteness of
18810 the regexp pattern and the matching target. Set cp->buf.multibyte
18811 to the multibyteness of the regexp pattern. Set
18812 cp->but.target_multibyte to the multibyteness of the matching target.
18813 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
18814 FETCH_STRING_CHAR_ADVANCE.
18815 (Freplace_match): Convert unibyte chars to multibyte.
18816
18817 * syntax.c (char_quoted, back_comment, scan_words)
18818 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
18819 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
18820 unibyte chars to multibyte.
18821 (skip_chars): Delete the arg syntaxp, and move the code for
18822 handling syntaxes to skip_syntaxes. Change callers.
18823 Fix the case that the multibyteness of STRING and the current
18824 buffer doesn't match.
18825 (skip_syntaxes): New function.
18826 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
18827 SINGLE_BYTE_CHAR_P.
18828
188292008-02-01 Kenichi Handa <handa@m17n.org>
18830
18831 * xfaces.c (QCfontset): New variable.
18832 (LFACE_FONTSET): New macro.
18833 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
18834 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
18835 (Finternal_set_lisp_face_attribute)
18836 (Finternal_get_lisp_face_attribute): Handle QCfontset.
18837 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
18838 check also LFACE_FONTSET_INDEX.
18839 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
18840 attrs[LFACE_FONT_INDEX].
18841 (syms_of_xfaces): Intern and staticpro QCfontset.
18842
18843 * dispextern.h (enum lface_attribute_index): New member
18844 LFACE_FONTSET_INDEX.
18845
18846 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
18847
188482008-02-01 Kenichi Handa <handa@m17n.org>
18849
18850 * coding.c (coding_set_destination): Fix coding->destination for
18851 the case converting a region.
18852 (encode_coding_utf_8): Encode eight-bit chars as single byte.
18853 (encode_coding_object): Fix coding->dst_pos and
18854 coding->dst_pos_byte for the case converting a region.
18855
18856 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
18857
18858 * character.h (BYTE8_STRING): New macro.
18859
18860 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
18861
188622008-02-01 Kenichi Handa <handa@m17n.org>
18863
18864 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
18865 characters by octal form.
18866
18867 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
18868
18869 * buffer.h (_fetch_multibyte_char_len): Delete extern.
18870 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
18871 _fetch_multibyte_char_len.
18872 (FETCH_CHAR_AS_MULTIBYTE): New macro.
18873
18874 * casetab.c (set_canon, set_identity, shuffle): Simplify.
18875
18876 * casefiddle.c (casify_object): Simplify. Handle the case that
18877 the case conversion change the byte length.
18878 (casify_region): Likewise.
18879
18880 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
18881
18882 * character.c (_fetch_multibyte_char_len): Delete this variable.
18883 (syms_of_character): Setup Vprintable_chars.
18884
18885 * editfns.c (Fchar_equal): Fix for the unibyte case.
18886 (Finsert_byte): New function.
18887 (syms_of_editfns): Defsubr it.
18888
18889 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
18890 of direct code 0x3ffff.
18891
18892 * search.c (Freplace_match): Fix for the unibyte case.
18893
188942008-02-01 Kenichi Handa <handa@m17n.org>
18895
18896 * lread.c (safe_to_load_p): Fix the logic.
18897
18898 * syntax.c (scan_words): Don't treat characters belonging to
18899 different scripts as constituting a word.
18900
18901 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
18902
18903 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
18904
18905 * emacs.c (main): In the case of --unibyte, instead of aborting on
18906 finding non-empty buffer, make it unibyte.
18907
189082008-02-01 Kenichi Handa <handa@m17n.org>
18909
18910 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
18911 to create a fontset.
18912
189132008-02-01 Dave Love <fx@gnu.org>
18914
18915 * character.c (Funibyte_char_to_multibyte): Doc fix.
18916
18917 * xfns.c [HAVE_STDLIB_H]: Fix last change.
18918
189192008-02-01 Kenichi Handa <handa@m17n.org>
18920
18921 * fontset.c (fontset_add): Make the type `int'.
18922 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
18923
18924 * character.c (unibyte_char_to_multibyte)
18925 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
18926 charset_unibyte, not charset_primary.
18927
18928 * charset.h (charset_unibyte): Extern it instead of charset_primary.
18929
18930 * charset.c (charset_unibyte): Rename from charset_primary.
18931 (Funibyte_charset): Rename from Fprimary_charset.
18932 (Fset_unibyte_charset): Rename from Fset_primary_charset.
18933 (syms_of_charset): Adjust for the above changes.
18934
18935 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
18936 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
18937 it->multibyte_p is zero.
18938
18939 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
18940 Delete extern.
18941
189422008-02-01 Kenichi Handa <handa@m17n.org>
18943
18944 * coding.c (Fdefine_coding_system_internal): Fix category setting
18945 for a coding system of type iso-2022.
18946
189472008-02-01 Kenichi Handa <handa@m17n.org>
18948
18949 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
18950
189512008-02-01 Kenichi Handa <handa@m17n.org>
18952
18953 * syntax.c (Vnext_word_boundary_function_table): New variable.
18954 (next-word-boundary-function-table): Declare it as a Lisp variable
18955 in syms_of_syntax.
18956 (scan_words): Call functions in Vnext_word_boundary_function_table
18957 if any.
18958
18959 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
18960
18961 * fontset.c (fs_load_font): If fontp->charset is not negative,
18962 return fontp without setting its members.
18963
189642008-02-01 Dave Love <fx@gnu.org>
18965
18966 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
18967
18968 * m/sparc.h (HAVE_ALLOCA): Delete.
18969
18970 * s/irix6-5.h: Don't include strings.h.
18971 (bcopy, bzero, bcmp): Don't undef.
18972
18973 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
18974
18975 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
18976 (TIOCSIGSEND): Don't test IRIX6.
18977 (bcopy, bzero, bcmp): Define conditionally.
18978
189792008-02-01 Kenichi Handa <handa@m17n.org>
18980
18981 * buffer.c (Qas, Qmake, Qto): New variables.
18982 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
18983 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
18984
18985 * callproc.c (Fcall_process): Don't call insert_1_both directly if
18986 we are inserting a process output into a multibyte buffer.
18987
18988 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
18989 multibyte_char_to_unibyte.
18990
18991 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
18992 by the primary charset, make it eight-bit char.
18993 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
18994
18995 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
18996 (charset_8_bit__control, charset_8_bit_graphic)
18997 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
18998 (define_charset_internal): New function.
18999 (syms_of_charset): Call define_charset_internal for pre-defined
19000 charsets.
19001
19002 * charset.h (charset_8_bit): Extern it.
19003
19004 * coding.c (make_conversion_work_buffer): Adjust for the change
19005 of Fset_buffer_multibyte.
19006 (encode_coding_raw_text): Increment p0 in the loop.
19007
19008 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
19009
19010 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
19011 for the change of Fset_buffer_multibyte.
19012
19013 * fns.c (Fstring_to_multibyte): New function.
19014 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
19015
190162008-02-01 Dave Love <fx@gnu.org>
19017
19018 * xfns.c (x_put_x_image): Declare args.
19019
19020 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
19021 (try_font_list): Declare an arg.
19022
19023 * xdisp.c (message2_nolog, set_message): Declare an arg.
19024
19025 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
19026
19027 * syntax.c (scan_sexps_forward): Declare an arg.
19028
19029 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
19030 Declare an arg.
19031
19032 * lisp.h (Fnew_fontset): Declare.
19033
19034 * keymap.c (push_key_description): Call CHARACTERP correctly.
19035
19036 * fontset.c (fontset_add): Declare args. Call make_number correctly.
19037 (face_for_char): Delete unused vars.
19038 (Fset_fontset_font): Doc fix. Delete unused vars.
19039
19040 * doc.c (Fsubstitute_command_keys): Delete unused vars.
19041
19042 * composite.c (update_compositions): Declare arg.
19043
19044 * cm.c (calccost, cmgoto): Declare args.
19045
19046 * charset.c: Remove `emacs' conditional. Doc fixes.
19047 (map_char_table_for_charset): Declare.
19048
19049 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
19050
19051 * ccl.c: Remove `emacs' conditional.
19052
190532008-02-01 Kenichi Handa <handa@m17n.org>
19054
19055 The following changes are to allow specifying multiple font
19056 patterns for a character range (specified by script or charset).
19057
19058 * Makefile.in (abbrev.o): Depend on syntax.h.
19059 (xfaces.o): Depend on charset.h.
19060
19061 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
19062 SINGLE_BYTE_CHAR_P.
19063
19064 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
19065
19066 * character.h (Vchar_script_table): Extern it.
19067
19068 * character.c (Vscript_alist): Delete.
19069 (Vchar_script_table, Qchar_script_table): New variable.
19070 (syms_of_character): Declare Vchar_script_table as a lisp variable
19071 and initialize it.
19072
19073 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
19074 have property char-table-extra-slots, make no extra slot.
19075
19076 * dispextern.h (struct face): Delete member `charset'.
19077 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
19078 SINGLE_BYTE_CHAR_P.
19079 (choose_face_font, lookup_non_ascii_face, font_name_registry):
19080 Add prototypes.
19081 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
19082 (generate_ascii_font_name): Rename from generate_ascii_font.
19083
19084 * fontset.h (get_font_repertory_func): New prototype.
19085 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
19086 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
19087
19088 * fontset.c (Qprepend, Qappend): New variables.
19089 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
19090 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
19091 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
19092 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
19093 (fontset_ref_and_range, fontset_add, reorder_font_vector)
19094 (load_font_get_repertory): New functions.
19095 (fontset_set): Delete.
19096 (fontset_face): New arg FACE. Return face ID, not face.
19097 Complete re-write to handle new fontset structure. Change caller.
19098 (free_face_fontset): Use ASET istead of AREF (X) = Y.
19099 (face_for_char): Don't call lookup_face.
19100 (make_fontset_for_ascii_face): New arg FACE.
19101 (fs_load_font): New arg CHARSET_ID. Don't check
19102 Vfont_encoding_alist here.
19103 (find_font_encoding): New function.
19104 (list_fontsets): Use STRINGP, not ! NILP.
19105 (accumulate_script_ranges): New function.
19106 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
19107 re-written to handle new fontset structure.
19108 (Ffontset_font): Return a copy of element.
19109 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
19110 docstring of font-encoding-alist.
19111
19112 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
19113 (Fset_fotset_font): Fix arguments to 5.
19114
19115 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
19116
19117 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
19118 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
19119 (highlight_trailing_whitespace): Adjust for the change of
19120 lookup_named_face.
19121
19122 * xfaces.c: Include charset.h.
19123 (load_face_font): Delete argument C. Change caller.
19124 (generate_ascii_font_name): Rename from generate_ascii_font.
19125 (font_name_registry): New function.
19126 (cache_face): Store ascii faces before non-ascii faces in buckets.
19127 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
19128 Lookup only ascii faces.
19129 (lookup_non_ascii_face): New function.
19130 (lookup_named_face): Delete argument C. Change caller.
19131 (lookup_derived_face): Delete argument C. Change caller.
19132 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
19133 a string, just call font_list with it.
19134 (choose_face_font): Delete arguments FACE and C. New arg
19135 FONT_SPEC. Change caller.
19136 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
19137 Change caller.
19138 (realize_non_ascii_face): New function.
19139 (realize_x_face): Call load_face_font here.
19140 (realize_tty_face): Delete argument C. Change caller.
19141 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
19142 get a face ID.
19143 (dump_realized_face): Don't print charset of FACE.
19144
19145 * xfns.c (x_set_font): Always call x_new_fontset and
19146 store_frame_parameter.
19147 (Fx_create_frame): Call x_new_fontset, not x_new_font.
19148 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
19149
19150 * xterm.h (x_get_font_repertory): Extern it.
19151
19152 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
19153 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
19154 it->multibyte_p is zero.
19155 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
19156 (x_new_fontset): If FONTSETNAME doesn't match any existing
19157 fontsets, create a new one.
19158 (x_get_font_repertory): New function.
19159
191602008-02-01 Kenichi Handa <handa@m17n.org>
19161
19162 * coding.c (Ffind_coding_systems_region_internal): Detect an
19163 ASCII only string correctly.
19164
19165 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
19166 version is 0.
19167
191682008-02-01 Kenichi Handa <handa@m17n.org>
19169
19170 * lread.c: Include "coding.h".
19171 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
19172 (load_each_byte, unread_char): New variables.
19173 (readchar_backlog): Delete.
19174 (readchar): Return a character unless load_each_byte is nonzero.
19175 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
19176 cons. If unread_char is not -1, simply return it.
19177 (unreadchar): Handle the case that readcharfun is
19178 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
19179 (read_multibyte): Delete.
19180 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
19181 (read_emacs_mule_char): New functions.
19182 (Fload): Even if the file doesn't have the extension ".elc", if
19183 safe_to_load_p returns a positive version number, assume that the
19184 file contains bytecompiled code. If the version is less than 22,
19185 load the file while decoding multibyte sequences by emacs-mule.
19186 (readevalloop): Don't use readchar_backlog.
19187 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
19188 (Fread_from_string): Pay attention to the case that STREAM is a cons.
19189 (read_escape): Delete the arg BYTEREP.
19190 (read1): Set load_each_byte to 1 temporarily while handling
19191 #@NUMBER. Don't call read_multibyte.
19192 (read_vector): Call Fread with a cons. If readcharfun is
19193 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
19194 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
19195 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
19196 and Qload_force_doc_strings.
19197
191982008-02-01 Kenichi Handa <handa@m17n.org>
19199
19200 * xdisp.c (face_before_or_after_it_pos): Call
19201 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
19202
192032008-02-01 Kenichi Handa <handa@m17n.org>
19204
19205 * character.h (TRAILING_CODE_P): New macro.
19206 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
19207 (string_char_with_unification): Fix prototype.
19208 (Vscript_alist): Extern it.
19209
19210 * character.c (Vscript_alist): New variable.
19211 (string_char_with_unification, str_as_unibyte)
19212 (string_escape_byte8): Add `const' to local variables.
19213 (syms_of_character): Declare script-alist as a Lisp variable.
19214
19215 * charset.h (Vcharset_ordered_list): Extern it.
19216 (charset_ordered_list_tick): Extern it.
19217 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
19218 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
19219 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
19220 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
19221 (Funify_charset): Adjust for the change of Funify_charset.
19222
19223 * charset.c (charset_ordered_list_tick): New variable.
19224 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
19225 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
19226 deunify intead of unify a charset.
19227 (string_xstring_p): Add `const' to local variables.
19228 (find_charsets_in_text): Add `const' to arguments and local variables.
19229 (encode_char): Adjust for the change of Funify_charset. Fix
19230 detecting of invalid code.
19231 (Fset_charset_priority): Increment charset_ordered_list_tick.
19232 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
19233 and TO_CODE.
19234
19235 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
19236 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
19237 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
19238 (decode_coding_ccl, consume_chars)
19239 (Ffind_coding_systems_region_internal)
19240 (Fcheck_coding_systems_region): Add `const' to local variables.
19241
19242 * print.c (print_object): Use octal form for printing the
19243 contents of a bool vector.
19244
192452008-02-01 Dave Love <fx@gnu.org>
19246
19247 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
19248 <version == 20>: Refuse to load.
19249
192502008-02-01 Dave Love <fx@gnu.org>
19251
19252 * fns.c: Move coding.h.
19253 (Qcodeset, Qdays, Qmonths): New.
19254 (concat): Use CHARACTERP instead of INTEGERP.
19255 (Flocale_codeset): Delete.
19256 (Flanginfo): New function.
19257 (syms_of_fns): Change accordingly.
19258
19259 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
19260
192612008-02-01 Dave Love <fx@gnu.org>
19262
19263 * casetab.c (init_casetab_once, init_casetab_once): Fix
19264 CHAR_TABLE_SET call.
19265
19266 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
19267
19268 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
19269
19270 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
19271 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
19272 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
19273
19274 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
19275
19276 * coding.c (ENCODE_DESIGNATION, decode_eol)
19277 (make_conversion_work_buffer, code_conversion_restore)
19278 (Fdefine_coding_system_internal): Convert Lisp types.
19279 (code_conversion_restore): Use EQ, not ==.
19280 (Fencode_coding_string): Fix code_convert_string call.
19281
19282 * coding.h (code_convert_region): Fix prototype.
19283
19284 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
19285
19286 * fontset.c (fontset_ref, fontset_set, fs_load_font)
19287 (Ffontset_info): Convert Lisp types.
19288
19289 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
19290
19291 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
19292
19293 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
19294
19295 * chartab.c: Include "...h", not <...h> in some cases.
19296
19297 * callproc.c (Fcall_process): Remove unused variables.
19298
192992008-02-01 Dave Love <fx@gnu.org>
19300
19301 * coding.c (Fset_coding_system_priority): Allow null arg list.
19302
193032008-02-01 Dave Love <fx@gnu.org>
19304
19305 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
19306 (Fself_insert_and_exit): Use CHARACTERP.
19307
19308 * callproc.c (Fcall_process): Remove unused vars.
19309
19310 * xterm.c (XTread_socket): Add extra dead keysyms.
19311
19312 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
19313
19314 * dispextern.h: Remove prototypes for redraw_frame,
19315 redraw_garbaged_frames.
19316
19317 * cmds.c (Fself_insert_command): Use CHARACTERP.
19318
19319 * chartab.c (make_sub_char_table): Remove unused var.
19320 (Fset_char_table_default, Fmap_char_table): Doc fix.
19321
19322 * keymap.c (access_keymap): Remove generic char code.
19323 (push_key_description): Use CHARACTERP.
19324
193252008-02-01 Dave Love <fx@gnu.org>
19326
19327 * charset.c: Doc fixes.
19328 (Funify_charset): Extra checking.
19329
193302008-02-01 Dave Love <fx@gnu.org>
19331
19332 * lread.c: Remove some unused variables.
19333 (safe_to_load_p): If safe, return the magic number version byte.
19334 (Fload): Maybe use load-with-code-conversion.
19335
193362008-02-01 Kenichi Handa <handa@m17n.org>
19337
19338 * category.c (Fmodify_category_entry): Don't modify the contents
19339 of category_set for characters out of the range. Avoid
19340 unnecessary modification.
19341
19342 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
19343 Vchar_unify_table. The default value of the table is now nil.
19344
19345 * character.c (syms_of_character): Setup Vchar_width_table for
19346 eight-bit-control and raw-byte chars.
19347
19348 * charset.h (enum define_charset_arg_index): Delete
19349 charset_arg_parents and add charset_arg_subset and
19350 charset_arg_superset.
19351 (enum charset_attr_index): Delete charset_parents and add
19352 charset_subset and charset_superset.
19353 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
19354 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
19355 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
19356 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
19357 (CHARSET_SUPERSET): New macros.
19358 (charset_work): Extern it.
19359 (ENCODE_CHAR): Use charset_work.
19360 (CHAR_CHARSET_P): Adjust for the change of encoder format.
19361 (map_charset_chars): Extern it.
19362
19363 * charset.c (load_charset_map): Set the default value of encoder
19364 and deunifier char-tables to nil.
19365 (map_charset_chars): Change argument. Change callers. Use
19366 map_char_table_for_charset instead of map_char_table.
19367 (Fmap_charset_chars): New optional args from_code and to_code.
19368 (Fdefine_charset_internal): Adjust for the change of
19369 `define-charset' (:parents -> :subset or :superset).
19370 (charset_work): New variable.
19371 (encode_char, syms_of_charset): Adjust for the change of
19372 Fdefine_charset_internal.
19373 (Ffind_charset_string): Setup the vector `charsets' correctly.
19374
19375 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
19376 the previous change.
19377 (char_table_ref_and_range): Adjust for the above change.
19378 (map_sub_char_table_for_charset): New function.
19379 (map_char_table_for_charset): New function.
19380
19381 * keymap.c (describe_vector): Handle a char-table directly here.
19382 (describe_char_table): Delete.
19383
19384 * lisp.h (map_charset_chars): Delete.
19385
193862008-02-01 Dave Love <fx@gnu.org>
19387
19388 * fns.c (count_combining): Comment out (unused).
19389 (Flocale_codeset): New.
19390 (syms_of_fns): Defsubr it.
19391
19392 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
19393 (size_t): Remove.
19394
193952008-02-01 Dave Love <fx@gnu.org>
19396
19397 * Makefile.in (chartab.o): Depend on charset.h.
19398
193992008-02-01 Kenichi Handa <handa@m17n.org>
19400
19401 * character.c (syms_of_character): Set the default value of
19402 Vprintable_chars to Qnil.
19403
194042008-02-01 Dave Love <fx@gnu.org>
19405
19406 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
19407
194082008-02-01 Kenichi Handa <handa@m17n.org>
19409
19410 * charset.c (load_charset_map): Handle the case that from < to
19411 correctly.
19412
19413 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
19414 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
19415 Pay attention to raw-8-bit chars.
19416
194172008-02-01 Kenichi Handa <handa@m17n.org>
19418
19419 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
19420 It is not bytecompiled now.
19421
19422 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
19423 (charset_jisx0208): New variables.
19424 (Fdefine_charset_internal): Setup them if appropriate.
19425 (init_charset_once): Initialize them to -1.
19426
19427 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
19428 (charset_jisx0208): Extern them.
19429
19430 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
19431 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
19432 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
19433 (setup_iso_safe_charsets): Fix arguments to Fassq.
19434 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
19435 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
19436 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
19437 (encode_coding_iso_2022): Change the 1st arg to
19438 ENCODE_ISO_CHARACTER to a variable.
19439
194402008-02-01 Kenichi Handa <handa@m17n.org>
19441
19442 * charset.h (enum define_charset_arg_index): New enums
19443 charset_arg_min_code and charset_arg_max_code.
19444 (struct charset): New member char_index_offset.
19445
19446 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
19447 Take charset->char_index_offset into account.
19448 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
19449 args[charset_arg_max_code]. Setup charset.char_index_offset.
19450 (syms_of_charset): Fix args to Fdefine_charset_internal.
19451
194522008-02-01 Dave Love <fx@gnu.org>
19453
19454 * coding.c (decode_coding_utf_8): Reject overlong sequences.
19455
194562008-02-01 Dave Love <fx@gnu.org>
19457
19458 * coding.c: Doc fixes.
19459 (Fcoding_system_aliases): Fix return value.
19460 (Qmac): Remove (duplicated) definition.
19461
194622008-02-01 Dave Love <fx@gnu.org>
19463
362654a6
JB
19464 * charset.c (Fcharset_priority_list, Fset_charset_priority):
19465 New functions.
aac0c6e3
MR
19466
19467 * character.c (Fstring): Doc fix.
19468
19469 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
19470
362654a6 19471 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
19472 (font-encoding-alist): Doc fix.
19473
194742008-02-01 Dave Love <fx@gnu.org>
19475
19476 * term.c (costs_set): Declare static, non-initialized for pcc.
19477 (encode_terminal_code): Remove unused var.
19478
19479 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
19480 for K&R.
19481
19482 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
19483
19484 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
19485 (suffixes): Move out of make_subsidiaries for K&R.
19486
19487 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
19488
19489 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
19490
194912008-02-01 Dave Love <fx@gnu.org>
19492
19493 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
19494
19495 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
19496
194972008-02-01 Yong Lu <lyongu@asia-infonet.com>
19498
19499 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
19500
19501 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
19502
195032008-02-01 Kenichi Handa <handa@m17n.org>
19504
19505 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
19506 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
19507
195082008-02-01 Kenichi Handa <handa@m17n.org>
19509
19510 * coding.c (decode_coding_charset): Adjust for the change of
19511 Fdefine_coding_system_internal.
19512 (Fdefine_coding_system_internal): For a coding system of
19513 `charset' type, store a list of charset IDs in
19514 `charset_attr_charset_valids' element of coding attributes.
19515
195162008-02-01 Kenichi Handa <handa@m17n.org>
19517
19518 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
19519 (emacs_mule_char): New arg src. Delete arg `composition'. Change
19520 caller. Handle 2-byte and 3-byte charsets correctly.
19521 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
19522 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
19523 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
19524 (DECODE_EMACS_MULE_21_COMPOSITION): Call
19525 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
19526 sequence.
19527 (decode_coding_emacs_mule): Handle composition correctly. Rewind
19528 `src' and `consumed_chars' correctly before calling emacs_mule_char.
19529 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
19530 and alt&rule composition.
19531 (decode_coding_iso_2022): Handle composition correctly.
19532 (init_coding_once): Setup emacs_mule_bytes for private charsets.
19533
19534 * charset.c (Fdefine_charset_internal): Fix bug for the case of
19535 re-defining a charset. If the charset has :emacs-mule-id, setup
19536 emacs_mule_bytes.
19537 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
19538
195392008-02-01 Kenichi Handa <handa@m17n.org>
19540
19541 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
19542 (encode_coding_big5, encode_coding_charset): If coding requires safe
19543 encoding, produce a character specified by
19544 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
19545
195462008-02-01 Dave Love <fx@gnu.org>
19547
19548 * xterm.c (XSetIMValues): Declare.
19549
19550 * process.c: Conditionally include sys/wait.h, pty.h.
19551
19552 * print.c (print_object): Fix print format for 64-bit systems.
19553
19554 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
19555
19556 * buffer.c (emacs_strerror): Declare.
19557
19558 * fontset.c (Fclear_face_cache): Declare.
19559 (accumulate_font_info): Comment-out (unused).
19560 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
19561 variables.
19562
19563 * character.h (string_escape_byte8): Declare.
19564
19565 * charset.c (load_charset_map, load_charset_map_from_file): Remove
19566 unused vars.
19567 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
19568 (Fmap_charset_chars): Doc fix.
19569
19570 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
19571 (Fset_coding_system_priority, Fset_coding_system_priority)
19572 (Fdefine_coding_system_internal): Doc fix.
19573
195742008-02-01 Dave Love <fx@gnu.org>
19575
19576 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
19577
195782008-02-01 Kenichi Handa <handa@m17n.org>
19579
19580 * character.c (string_escape_byte8): Make multibyte string with
19581 correct size.
19582
19583 * charset.c (Fmake_char): Delete unnecessary code.
19584
195852008-02-01 Kenichi Handa <handa@m17n.org>
19586
19587 * xfns.c (x_encode_text): Allocate coding.destination here, and
19588 call encode_coding_object with dst_object Qnil.
19589
19590 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
19591 multibyte form correctly.
19592
19593 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
19594 against Vfont_encoding_alist.
19595
19596 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
19597 handling of charset list.
19598 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
19599 (decode_coding_object): Move point to coding->dst_pos before
19600 calling post-read-conversion function.
19601 (encode_coding_object): Give correct arguments to
19602 pre-write-conversion. Ignore the return value of
19603 pre-write-conversion function. Pay attention to the case that
19604 pre-write-conversion changes the current buffer. If dst_object is
19605 Qt, even if coding->src_bytes is zero, allocate at least one byte
19606 to coding->destination.
19607
19608 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
19609
19610 * charset.c (Fmake_char): Make it more backward compatible.
19611 (Fmap_charset_chars): Fix docstring.
19612
196132008-02-01 Dave Love <fx@gnu.org>
19614
19615 * coding.c: Doc fixes.
19616 (Fdefine_coding_system_alias): Use names, not symbols, in
19617 coding-system-alist.
19618
196192008-02-01 Kenichi Handa <handa@m17n.org>
19620
19621 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
19622 of calling free_realized_face.
19623
196242008-02-01 Yong Lu <lyongu@asia-infonet.com>
19625
19626 * charset.c (read_hex): Don't treat SPC as a comment starter.
19627 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
19628 (Fdecode_char): Fix typo.
19629
196302008-02-01 Kenichi Handa <handa@m17n.org>
19631
19632 * charset.h (struct charset): New member `code_space_mask'.
19633
19634 * coding.c (coding_set_source): Delete the local variable beg_byte.
19635 (encode_coding_charset, Fdefine_coding_system_internal):
19636 Delete the local variable charset.
19637 (Fdefine_coding_system_internal): Setup
19638 attrs[coding_attr_charset_valids] correctly.
19639
19640 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
19641 member to check if CODE is valid or not.
19642 (Fdefine_charset_internal): Initialize `code_space_mask' member.
19643 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
19644 is within the range of charset->min_code and carset->max_code.
19645
196462008-02-01 Dave Love <fx@gnu.org>
19647
19648 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
19649
19650 * dispextern.h (generate_ascii_font): Fix return type.
19651
19652 * xfaces.c (generate_ascii_font): Fix arg declaration.
19653
19654 * coding.c (coding_inherit_eol_type)
19655 (Fset_terminal_coding_system_internal)
19656 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
19657
196582008-02-01 Kenichi Handa <handa@m17n.org>
19659
19660 * coding.c (decode_coding_charset, encode_coding_charset): Handle
19661 multiple charsets correctly.
19662
196632008-02-01 Kenichi Handa <handa@m17n.org>
19664
19665 * search.c (boyer_moore): Fix handling of multibyte character
19666 translation.
19667
19668 * xdisp.c (display_mode_element): When the variable `elt' is
19669 changed, update `this' and `lisp_string'.
19670
196712008-02-01 Kenichi Handa <handa@m17n.org>
19672
19673 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
19674
19675 * callproc.c (Fcall_process): Be sure to give the current buffer
19676 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
19677
19678 * charset.c (struct charset_map_entries): New struct.
19679 (load_charset_map): Rename from parse_charset_map. New args
19680 entries and n_entries. Change caller.
19681 (load_charset_map_from_file): Rename from load_charset_map.
19682 Change caller. New arg control_flag. Call load_charset_map at
19683 the tail.
19684 (load_charset_map_from_vector): New function.
19685 (Fdefine_charset_internal): Setup charset.compact_codes_p.
19686 (encode_char): If the charset is compact, change a character index
19687 to a code point.
19688
19689 * coding.c (coding_alloc_by_making_gap): Check the case that the
19690 source and destination are the same correctly.
19691 (decode_coding_raw_text): Set coding->consumed_char and
19692 coding->consumed to 0.
19693 (produce_chars): If coding->chars_at_source is nonzero, update
19694 coding->consumed_char and coding->consumed before calling
19695 alloc_destination.
19696 (Fdefine_coding_system_alias): Register ALIAS in
19697 Vcoding_system_alist.
19698 (syms_of_coding): Define `no-conversion' coding system at the tail.
19699
19700 * fileio.c (Finsert_file_contents): Set coding_system instead of
19701 val. If the current buffer is multibyte, always call
19702 decode_coding_gap.
19703
19704 * xfaces.c (try_font_list): Give higher priority to fontset's
19705 family than face's family.
19706
197072008-02-01 Kenichi Handa <handa@m17n.org>
19708
19709 * callproc.c (Fcall_process): Be sure to give the current buffer
19710 to decode_coding_c_string.
19711
19712 * xfaces.c (try_font_list): Give a family specified in a fontset
19713 higher priority than a family specified in a face.
19714
197152008-02-01 Kenichi Handa <handa@m17n.org>
19716
19717 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
19718 Fix arguments to insert_from_buffer.
19719
19720 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
19721
197222008-02-01 Kenichi Handa <handa@m17n.org>
19723
19724 * coding.c (produce_chars): Set the variable `multibytep' correctly.
19725 (decode_coding_gap): Set coding->dst_multibyte correctly.
19726
197272008-02-01 Kenichi Handa <handa@m17n.org>
19728
19729 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
19730 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
19731 (encode_coding_utf_16): Substitute coding->default_char for
19732 non-Unicode characters.
19733 (decode_coding): Don't call record_insert here.
19734 (setup_coding_system): Initialize `surrogate' of
19735 coding->spec.utf_16 to 0.
19736 (EMIT_ONE_BYTE): Fix for multibyte case.
19737
19738 * insdel.c (insert_from_gap): Call record_insert.
19739
197402008-02-01 Kenichi Handa <handa@m17n.org>
19741
19742 * casefiddle.c (casify_region): Fix multibyte case.
19743
19744 * character.c (c_string_width): Add return type `int'.
19745 (char_string_with_unification): Delete arg ADVANCED.
19746
19747 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
19748 (CHAR_STRING): Adjust for the change of char_string_with_unification.
19749 (CHAR_STRING_ADVANCE): Make it do-while statement.
19750
19751 * chartab.c (sub_char_table_set_range): Optimize for the case
19752 DEPTH == 3. Add workaround code for a GCC optimization bug.
19753
19754 * charset.c (parse_charset_map): Remove an unused variable.
19755
19756 * coding.c: Delete unused variables.
19757
19758 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
19759 earlier. If inserted is zero and the coding system doesn't
19760 require flushing, don't call decode_coding_gap.
19761
19762 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
19763
197642008-02-01 Kenichi Handa <handa@m17n.org>
19765
19766 The following changes are for using Unicode as an internal
19767 character model, and use UTF-8 format for buffer/string
19768 representation.
19769
19770 * .gdbinit (xchartable): Adjust for the change of char table structure.
19771 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
19772
19773 * Makefile.in (obj): Add character.o and chartab.o.
19774 (lisp, shortlisp): Remove utf-8.elc.
19775 (*.o): For many files, change dependency on charset.h to
19776 character.h, and add dependency on character.h.
19777 (character.o, chartab.o): New targets.
19778
19779 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
19780 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
19781 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
19782 of "charset.h".
19783
19784 * dired.c, filelock.c: Include "character.h".
19785
19786 * alloc.c: Include "character.h" instead of "charset.h".
19787 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
19788 (syms_of_alloc): Remove defsubr for Smake_char_table.
19789
19790 * buffer.c: Include "character.h" instead of "charset.h", don't
19791 include "coding.h".
19792 (Fset_buffer_multibyte): Adjust for UTF-8.
19793
19794 * buffer.h: EXFUN Fbuffer_live_p.
19795
19796 * callproc.c: Include "character.h" instead of "charset.h".
19797 (Fcall_process): Big change for the new code-conversion APIs.
19798
19799 * casetab.c: Include "character.h" instead of "charset.h".
19800 (set_canon, set_identity, shuffle): Adjust for the new
19801 map_char_table spec.
19802 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
19803 accessing the char table structure.
19804
19805 * chartab.c: New file that implements char table.
19806
19807 * category.c: Include "character.h".
19808 (copy_category_entry): New function.
19809 (copy_category_table): Call map_char_table and copy_category_entry.
19810 (Fmake_category_table): Initialize all top-level slots.
19811 (char_category_set): New function.
19812 (modify_lower_category_set): Delete.
19813 (Fmodify_category_entry): Call char_table_ref_and_range.
19814
19815 * category.h (CATEGORY_SET): Just call char_category_set.
19816
19817 * ccl.c: Include "character.h".
19818 (Qccl, Qcclp): New variables.
19819 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
19820 it's less than 256.
19821 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
19822 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
19823 and DST type.
19824 (ccl_driver): Change types of argument, adjust code accordingly.
19825 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
19826 ccl_driver.
19827 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
19828
19829 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
19830 New members src_multibyte, dst_multibyte, consumed, and produced.
19831 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
19832 (CODING_SPEC_CCL_PROGRAM): New macro.
19833 (ccl_driver): Update prototype.
19834 (Qccl, Qcclp, Fccl_program_p): Extern them.
19835 (CHECK_CCL_PROGRAM): New macro.
19836
19837 * character.c, character.h, chartab.c: New files.
19838
19839 * charset.c: Mostly re-written. Move character and multibyte sequence
19840 handling codes to character.c.
19841
19842 * charset.h: Mostly re-written. Move character and multibyte sequence
19843 handling codes to character.h.
19844
19845 * coding.c, coding.h: Mostly re-written.
19846
19847 * composite.c: Include "character.h" instead of "charset.h".
19848 (CHAR_WIDTH): Move to character.h.
19849 (HASH_KEY, HASH_VALUE): Delete.
19850
19851 * composite.h (enum composition_method): Change order of enumeration
19852 symbols.
19853
19854 * data.c: Include "character.h" instead of "charset.h".
19855 (Faref): Call CHAR_TABLE_REF for a char table.
19856 (Faset): Call CHAR_TABLE_SET for a char table.
19857
19858 * dispextern.h (free_realized_face, check_face_attribytes)
19859 (generate_ascii_font): Extern them.
19860 (free_realized_multibyte_face): Delete extern.
19861
19862 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
19863 table structure.
19864
19865 * editfns.c: Include "character.h" instead of "charset.h".
19866 (Fchar_to_string): Always call CHAR_STRING.
19867
19868 * emacs.c (main): Call init_charset_once, init_charset,
19869 syms_of_chartab, and syms_of_character.
19870
19871 * fileio.c: Include "character.h" instead of "charset.h".
19872 (Finsert_file_contents): Big change for the new code-conversion API.
19873 (choose_write_coding_system, Fwrite_region): Likewise.
19874 (build_annotations_2): Delete.
19875 (e_write): Big change for the new code-conversion API.
19876
19877 * fns.c: Include "character.h" instead of "charset.h".
19878 (copy_sub_char_table): Move to chartab.c.
19879 (Fcopy_sequence): Call copy_char_table for a char table.
19880 (concat): Delete codes calling count_multibyte.
19881 (string_char_to_byte, string_byte_to_char): Adjust for the new
19882 multibyte form.
19883 (internal_equal): Adjust for the change of char table structure.
19884 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
19885 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
19886 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
19887 (char_table_translate, optimize_sub_char_table)
19888 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
19889 chartab.c.
19890 (char_table_ref_and_index): Delete.
19891 (HASH_KEY, HASH_VALUE): Move to lisp.h.
19892 (Fmd5): Call preferred_coding_system instead of accessing
19893 Vcoding_category_list. Adjust for the new code-conversion API.
19894 (syms_of_fns): Move defsubr for char table related functions to
19895 chartab.c.
19896
19897 * fontset.c: Mostly re-written.
19898
19899 * fontset.h (struct font_info): Change type of the member encoding_type.
19900 (enum FONT_SPEC_INDEX): New enum.
19901 (fontset_font_pattern, fs_load_font): Update prototype.
19902 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
19903
19904 * indent.c: Include "character.h" instead of "charset.h".
19905 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
19906
19907 * insdel.c: Include "character.h" instead of "charset.h".
19908 (copy_text): Don't refer to Vnonascii_translation_table.
19909 (insert_from_gap): New function.
19910
19911 * keyboard.c: Include "character.h" instead of "charset.h".
19912 (command_loop_1): Never call direct_output_forward_char before
19913 a non-ASCII character.
19914 (read_char): If Vkeyboard_translate_table is a char table, always
19915 translate a character.
19916
19917 * keymap.c: Include "character.h".
19918 (store_in_keymap): Handle the case that IDX is a cons.
19919 (Fdefine_key): Handle the case that KEY is a cons and the car part
19920 is also a cons (range).
19921 (push_key_description): Adjust for the new character code.
19922 (describe_vector): Call describe_char_table for a char table.
19923 (describe_char_table): New function.
19924
19925 * keymap.h (describe_char_table): Extern it.
19926
19927 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
19928 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
19929 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
19930 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
19931 Delete.
19932 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
19933 structure.
19934 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
19935 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
19936 (CHARTAB_SIZE_BITS_3): New macros.
19937 (chartab_size): Extern it.
19938 (struct Lisp_Char_Table): Re-design.
19939 (struct Lisp_Sub_Char_Table): New structure.
19940 (HASH_KEY, HASH_VALUE): Move from fns.c.
19941 (CHARACTERBITS): Define as 22.
19942 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
19943 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
19944 (GC_SUB_CHAR_TABLE_P): New macro.
19945 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
19946 (code_convert_string_norecord): Deleted extern.
19947 (init_character_once, syms_of_character, init_charset)
19948 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
19949
19950 * lread.c: Include "character.h".
19951 (read_multibyte): New arg NBYTES.
19952 (read_escape): Change the meaning of returned *BYTEREP.
19953 (to_multibyte): Delete.
19954 (read1): Adjust the handling of char table and string.
19955
19956 * print.c: Include "character.h" instead of "charset.h".
19957 (print_string): Convert 8-bit raw bytes to octal form by
19958 string_escape_byte8.
19959 (print_object): Adjust for the new multibyte form. Print 8-bit
19960 raw bytes always in octal form. Handle sub char table correctly.
19961
19962 * process.c: Include "character.h" instead of "charset.h".
19963 (read_process_output, send_process): Adjust for the new
19964 code-conversion API.
19965
19966 * puresize.h (BASE_PURESIZE): Increase.
19967
19968 * regex.c: Include "character.h" instead of "charset.h".
19969 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
19970 (regex_compile): Accept a range whose starting and ending
19971 character have different leading bytes.
19972 (analyse_first): Adjust for the above change.
19973
19974 * search.c: Include "character.h" instead of "charset.h".
19975 (search_buffer, boyer_moore): Adjust for the new multibyte form.
19976 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
19977
19978 * syntax.c: Include "character.h" instead of "charset.h".
19979 (syntax_parent_lookup): Delete.
19980 (Fmodify_syntax_entry): Accept a cons as CHAR.
19981 (skip_chars): Adjust for the new multibyte form.
19982 (init_syntax_once): Call char_table_set_range instead of directly
19983 accessing the structure of a char table.
19984
19985 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
19986 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
19987 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
19988 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
19989
19990 * term.c: Include "buffer.h" and "character.h".
19991 (encode_terminal_code, write_glyphs): Adjust for the new
19992 code-conversion API.
19993 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
19994
19995 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
19996
19997 * xdisp.c: Include "character.h".
19998 (get_next_display_element): Adjust for the new multibyte form.
19999 (disp_char_vector): Adjust for the new char table structure.
20000 (decode_mode_spec_coding): Adjust for the new structure of
20001 coding system.
20002 (decode_mode_spec): Adjust for the new code-conversion API.
20003
20004 * xfaces.c: Include "character.h" instead of "charset.h".
20005 (load_face_font): Adjust for the change of choose_face_font and
20006 FS_LOAD_FONT.
20007 (generate_ascii_font): New function.
20008 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
20009 (set_font_frame_param): Adjust for the change of choose_face_font.
20010 (free_realized_face): Make it public.
20011 (free_realized_faces_for_fontset): Rename from
20012 free_realized_multibyte_face. Free also faces realized for ASCII.
20013 (choose_face_font): Change arguments. Adjust for the change of
20014 fontset_font_pattern and FS_LOAD_FONT.
20015
20016 * xfns.c: Include "character.h".
20017 (x_encode_text): Adjust for the new code-conversion API.
20018
20019 * xselect.c: Don't include "charset.h".
20020 (selection_data_to_lisp_data): Adjust for the new code conversion API.
20021
20022 * xterm.c: Include "character.h".
20023 (x_encode_char): New argument CHARSET. Change caller.
20024 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
20025 Call ENCODE_CHAR instead of SPLIT_CHAR.
20026 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
20027 CHAR_WIDTH instead of CHARSET_WIDTH.
20028 (XTread_socket): Adjust for the new code-conversion API.
20029 (x_new_font): Adjust for the change of FS_LOAD_FONT.
20030 (x_load_font): Adjust for the change of struct font.
20031
200322008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
20033
20034 * xfaces.c (face_at_buffer_position): Remove unused vars.
20035
200362008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20037
20038 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
20039 Fix overflow checking.
20040
200412008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20042
20043 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
20044 Cancel previous change.
20045
200462008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
20047
20048 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
20049 ccl->eight_bit_control. Fix check for buffer overflow.
20050 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
20051 (ccl_driver): Initialize extra_bytes to 0.
20052
200532008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
20054
20055 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
20056 return it ORed with ctrl_modifier.
20057
200582008-01-29 Miles Bader <miles@gnu.org>
20059
20060 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
20061
200622008-01-28 Jason Rumney <jasonr@gnu.org>
20063
20064 * w32.c (stat): Don't double check for networked drive.
20065
200662008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
20067
20068 * window.c (run_window_configuration_change_hook): New function.
20069 Code extracted from set_window_buffer. Set the selected frame.
20070 (set_window_buffer): Use it.
20071 * window.h (run_window_configuration_change_hook): Declare.
20072 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
20073
20074 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
20075
200762008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
20077
20078 * Makefile.in: Remove references to unused macros.
20079
200802008-01-26 Eli Zaretskii <eliz@gnu.org>
20081
20082 * w32.c (g_b_init_get_sid_sub_authority)
20083 (g_b_init_get_sid_sub_authority_count): New static variables.
20084 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
20085 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
20086 (init_user_info): Use them to retrieve uid and gid.
20087 Use 500/513, the Windows defaults, as Administrator's uid/gid.
20088 (fstat): Use pw_uid and pw_gid from the_passwd structure for
20089 st_uid and st_gid of the file.
20090
200912008-01-26 Jason Rumney <jasonr@gnu.org>
20092
20093 * w32.c (logon_network_drive): New function.
20094 (stat): Use it.
20095
200962008-01-26 Chong Yidong <cyd@stupidchicken.com>
20097
20098 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
20099 invisible text covered with an ellipsis.
20100
201012008-01-25 Richard Stallman <rms@gnu.org>
20102
20103 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
20104 jump back to beginning. Move some other initializations after that.
20105 (Qwindow_text_change_functions, Vwindow_text_change_functions):
20106 New variables.
20107 (syms_of_xdisp): Init them.
20108
20109 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
20110
20111 * buffer.c (reset_buffer_local_variables):
20112 Implement `permanent-local-hook'.
20113 (Qpermanent_local_hook): New variable.
20114 (syms_of_buffer): Init and staticpro it.
20115
201162008-01-25 Michael Albinus <michael.albinus@gmx.de>
20117
20118 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
20119
201202008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
20121
20122 * fns.c (Fclrhash): Return TABLE.
20123
201242008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20125
20126 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
20127 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
20128 is set even without positional changes.
20129 (x_scroll_bar_clear): Set bar->redraw_needed_p.
20130
20131 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
20132
201332008-01-23 Jason Rumney <jasonr@gnu.org>
20134
20135 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
20136
20137 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
20138 the unicode range available in MULE by locale-coding-system.
20139 Improve dbcs lead byte detection. Set event timestamp and modifiers
20140 earlier.
20141
201422008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20143
20144 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
20145 [MAC_OSX] (init_mac_osx_environment): Initialize it.
20146 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
20147 when used on child processes.
20148
201492008-01-21 Michael Albinus <michael.albinus@gmx.de>
20150
20151 * dbusbind.c (Fdbus_method_return_internal): Rename from
20152 Fdbus_method_return.
20153 (Fdbus_unregister_object): Move to dbus.el.
20154 (Fdbus_call_method, Fdbus_method_return_internal)
20155 (Fdbus_send_signal): Improve debug messages.
20156
201572008-01-20 Martin Rudalics <rudalics@gmx.at>
20158
20159 * undo.c (undo_inhibit_record_point): New variable.
20160 (syms_of_undo): Initialize it.
20161 (record_point): Don't record point when undo_inhibit_record_point
20162 is set.
20163
201642008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
20165
20166 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
20167
20168 * xdisp.c (Qauto_hscroll_mode): New var.
20169 (syms_of_xdisp): Initialize it.
20170 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
20171 window's buffer.
20172 (hscroll_windows): Don't check automatic_hscrolling_p here.
20173
20174 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
20175 vscroll if we're setting window-buffer to the value it already has.
20176
201772008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
20178
20179 * m/intel386.h: Remove references to XENIX.
20180
201812008-01-17 Andreas Schwab <schwab@suse.de>
20182
20183 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
20184 instead of HAVE_X86_64_LIB64_DIR.
20185 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
20186
201872008-01-17 Glenn Morris <rgm@gnu.org>
20188
20189 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
20190 to HAVE_X86_64_LIB64_DIR.
20191
201922008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
20193
20194 * s/irix3-3.h:
20195 * s/irix4-0.h:
20196 * s/386-ix.h:
20197 * s/domain.h:
20198 * s/hpux9-x11r4.h:
20199 * s/hpux9shxr4.h: Remove files for systems no longer supported.
20200
20201 * sysdep.c: Remove code containing references to symbols defined
20202 by unsupported systems.
20203
202042008-01-16 Glenn Morris <rgm@gnu.org>
20205
20206 * coding.c (select-safe-coding-system-function): Doc fix.
20207
202082008-01-15 Glenn Morris <rgm@gnu.org>
20209
20210 * config.in: Revert 2008-01-13 change: this is a generated file.
20211
202122008-01-13 Tom Tromey <tromey@redhat.com>
20213
20214 * lisp.h: Fix typo.
20215
202162008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
20217
20218 * m/sequent-ptx.h:
20219 * m/sequent.h:
20220 * s/ptx.h:
20221 * s/ptx4-2.h:
20222 * s/ptx4.h: Remove files for systems no longer supported.
20223
20224 * callproc.c (Fcall_process): Fix previous change.
20225
202262008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
20227
20228 * unexsunos4.c: Remove file, system not supported anymore.
20229
20230 * m/mips.h:
20231 * m/intel386.h:
20232 * callproc.c:
20233 * config.in:
20234 * ecrt0.c:
20235 * emacs.c:
20236 * fileio.c:
20237 * frame.c:
20238 * getpagesize.h:
20239 * keyboard.c:
20240 * lread.c:
20241 * process.c:
20242 * puresize.h:
20243 * sysdep.c:
20244 * systty.h:
20245 * syswait.h:
20246 * unexec.c:
20247 * xdisp.c:
20248 * alloc.c: Remove code containing references to symbols defined by
20249 unsupported systems.
20250
202512008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
20252
20253 * coding.c (detect_coding_mask): Fix previous change.
20254
202552008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
20256
20257 * coding.c (detect_coding_iso2022): New arg
20258 latin_extra_code_state. Allow Latin extra codes only
20259 when *latin_extra_code_state is nonzero.
20260 (detect_coding_mask): If there is a NULL byte, detect the encoding
20261 as UTF-16 or binary. If Latin extra codes exist, detect the
20262 encoding as ISO-2022 only when there's no other proper encoding is
20263 found.
20264
202652008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20266
20267 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
20268 #ifdef MAC_OS.
20269
202702008-01-08 Richard Stallman <rms@gnu.org>
20271
20272 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
20273
202742008-01-06 Nick Roberts <nickrob@snap.net.nz>
20275
20276 * keyboard.c (parse_menu_item): Don't enclose key bindings on
20277 menu bar in parentheses.
20278
202792008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
20280
20281 * m/7300.h:
20282 * m/acorn.h:
20283 * m/alliant-2800.h:
20284 * m/alliant.h:
20285 * m/alliant1.h:
20286 * m/alliant4.h:
20287 * m/altos.h:
20288 * m/amdahl.h:
20289 * m/apollo.h:
20290 * m/att3b.h:
20291 * m/aviion-intel.h:
20292 * m/aviion.h:
20293 * m/celerity.h:
20294 * m/clipper.h:
20295 * m/cnvrgnt.h:
20296 * m/convex.h:
20297 * m/cydra5.h:
20298 * m/delta88k.h:
20299 * m/dpx2.h:
20300 * m/dual.h:
20301 * m/elxsi.h:
20302 * m/f301.h:
20303 * m/gould-np1.h:
20304 * m/gould.h:
20305 * m/i860.h:
20306 * m/ibmps2-aix.h:
20307 * m/ibmrt-aix.h:
20308 * m/ibmrt.h:
20309 * m/irist.h:
20310 * m/is386.h:
20311 * m/isi-ov.h:
20312 * m/mega68.h:
20313 * m/mg1.h:
20314 * m/news-r6.h:
20315 * m/news-risc.h:
20316 * m/news.h:
20317 * m/nh3000.h:
20318 * m/nh4000.h:
20319 * m/ns16000.h:
20320 * m/ns32000.h:
20321 * m/nu.h:
20322 * m/orion.h:
20323 * m/orion105.h:
20324 * m/paragon.h:
20325 * m/pfa50.h:
20326 * m/plexus.h:
20327 * m/pyramid.h:
20328 * m/pyrmips.h:
20329 * m/sh3el.h:
20330 * m/sps7.h:
20331 * m/sr2k.h:
20332 * m/stride.h:
20333 * m/sun1.h:
20334 * m/sun2.h:
20335 * m/sun3-68881.h:
20336 * m/sun3-fpa.h:
20337 * m/sun3-soft.h:
20338 * m/sun3.h:
20339 * m/sun386.h:
20340 * m/symmetry.h:
20341 * m/tad68k.h:
20342 * m/tahoe.h:
20343 * m/targon31.h:
20344 * m/tek4300.h:
20345 * m/tekxd88.h:
20346 * m/tower32.h:
20347 * m/tower32v3.h:
20348 * m/ustation.h:
20349 * m/wicat.h:
20350 * m/xps100.h:
20351 * s/cxux.h:
20352 * s/cxux7.h:
20353 * s/dgux.h:
20354 * s/dgux4.h:
20355 * s/dgux5-4-3.h:
20356 * s/dgux5-4r2.h:
20357 * s/esix.h:
20358 * s/esix5r4.h:
20359 * s/hiuxmpp.h:
20360 * s/hiuxwe2.h:
20361 * s/iris3-5.h:
20362 * s/iris3-6.h:
20363 * s/isc2-2.h:
20364 * s/isc3-0.h:
20365 * s/isc4-0.h:
20366 * s/isc4-1.h:
20367 * s/newsos5.h:
20368 * s/newsos6.h:
20369 * s/osf1.h:
20370 * s/osf5-0.h:
20371 * s/riscix1-1.h:
20372 * s/riscix12.h:
20373 * s/sco4.h:
20374 * s/sco5.h:
20375 * s/sunos4-0.h:
20376 * s/sunos4-1.h:
20377 * s/sunos413.h:
20378 * s/sunos4shr.h:
20379 * s/umax.h:
20380 * s/unipl5-2.h:
20381 * s/xenix.h:
20382 * cxux-crt0.s:
20383 * unexapollo.c:
20384 * unexconvex.c:
20385 * unexenix.c:
20386 * unexsni.c: Remove files for systems no longer supported.
20387
20388 * m/intel386.h: Remove references to unsupported systems.
20389
20390 * w32.c (get_emacs_configuration): Remove reference to i860.
20391
20392 * sysdep.c: Remove dead code.
20393
203942008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
20395
20396 * s/rtu.h:
20397 * m/masscomp.h: Remove files. Platform is obsolete.
20398
203992008-01-04 Michael Albinus <michael.albinus@gmx.de>
20400
20401 * dbusbind.c (Fdbus_method_return): New function.
20402 (xd_read_message): Add the serial number to the event.
20403 (Fdbus_register_method): Activate the function.
20404
204052008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
20406
20407 * keyboard.c (read_key_sequence): Fix typo.
20408
204092008-01-03 Michael Albinus <michael.albinus@gmx.de>
20410
20411 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
20412 (xd_signature, xd_append_arg): Handle element type detection for
20413 empty arrays.
20414 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
20415 SDATA () calls; this must be solved more general.
20416 (Fdbus_register_signal): Use SBYTES instead of strlen.
20417
204182008-01-03 Magnus Henoch <magnus@zemdatav>
20419
20420 * dbusbind.c (xd_append_arg): Use unsigned char instead of
20421 unsigned int for byte values (necessary for big-endian platform).
20422 (Fdbus_call_method): Handle the case of no returned arguments.
20423
204242007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
20425
20426 * dbusbind.c (xd_read_message): Use non-static input_event struct.
20427
204282007-12-31 Magnus Henoch <mange@freemail.hu>
20429
20430 * dbusbind.c (xd_signature): Signature of variant is just "v".
20431
204322007-12-30 Michael Albinus <michael.albinus@gmx.de>
20433
20434 * dbusbind.c: Fix several errors and compiler warnings.
20435 Reported by Tom Tromey <tromey@redhat.com>.
20436 (XD_ERROR, XD_DEBUG_MESSAGE)
20437 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
20438 (xd_append_arg): Part for basic D-Bus types rewritten.
20439 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
20440 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
20441 appropriate.
20442 (xd_read_message): Return Qnil. Don't signal an error; it is not
20443 useful during event reading.
20444 (Fdbus_register_signal): Signal an error if the check for
20445 FUNCTIONP fails.
20446 (Fdbus_register_method): New function. The implementation is not
20447 complete, the call of the function signals an error therefore.
20448 (Fdbus_unregister_object): New function, renamed from
20449 Fdbus_unregister_signal. The initial check signals an error, if
20450 the object is not well formed.
20451
204522007-12-30 Richard Stallman <rms@gnu.org>
20453
20454 * textprop.c (get_char_property_and_overlay):
20455 Signal error if POSITION is out of range in a buffer.
20456
204572007-12-29 Martin Rudalics <rudalics@gmx.at>
20458
20459 * w32fns.c (Fx_create_frame): Make copy of frame parameters
20460 because the original parameters are in pure storage now.
20461
204622007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20463
20464 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
20465
204662007-12-22 Eli Zaretskii <eliz@gnu.org>
20467
20468 * callint.c (syms_of_callint) <command-history>: Add reference to
20469 history-length in the doc string.
20470
204712007-12-17 Jason Rumney <jasonr@gnu.org>
20472
20473 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
20474 before passing as wParam.
20475
204762007-12-22 Michael Albinus <michael.albinus@gmx.de>
20477
20478 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
20479 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
20480 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
20481 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
20482 as number.
20483 (Fdbus_call_method): Fix docstring.
20484
204852007-12-21 Michael Albinus <michael.albinus@gmx.de>
20486
20487 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
20488 New macros.
20489 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
20490 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
20491 Simplify.
20492 (xd_signature): New function.
20493 (xd_append_arg): Compute also signatures. Major rewrite.
20494 (xd_retrieve_arg): Make debug messages friendly.
20495 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
20496 Check for signatures of arguments.
20497
204982007-12-19 Michael Albinus <michael.albinus@gmx.de>
20499
20500 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
20501 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
20502 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
20503 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
20504 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
20505 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
20506 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
20507 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
20508 (xd_retrieve_value): Remove. Functionality included in ...
20509 (xd_append_arg): New function.
20510 (Fdbus_call_method, Fdbus_send_signal): Apply it.
20511
205122007-12-16 Michael Albinus <michael.albinus@gmx.de>
20513
20514 * dbusbind.c (top): Include <stdio.h>.
20515 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
20516 dbus_message_new_method_call and dbus_message_new_signal.
20517 (Fdbus_register_signal): Rename unique_name to uname.
20518 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
20519 non-existing unique name. Fix typos in matching rule. Return an
20520 object which is useful in Fdbus_unregister_signal.
20521 (Fdbus_unregister_signal): Reimplementation, in order to remove
20522 only the corresponding entry.
20523 (Vdbus_registered_functions_table): Change the order of entries.
20524 Apply these changes in xd_read_message and Fdbus_register_signal.
20525
205262007-12-16 Andreas Schwab <schwab@suse.de>
20527
20528 * fileio.c (Finsert_file_contents): Fix overflow check to not
20529 depend on undefined integer overflow.
20530
205312007-12-14 Jason Rumney <jasonr@gnu.org>
20532
20533 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
20534 for characters above 127.
20535
205362007-12-13 Jason Rumney <jasonr@gnu.org>
20537
20538 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
20539 before dereferencing array.
20540 (lookup_vk_code): Remove zero comparison.
20541
205422007-12-14 Michael Albinus <michael.albinus@gmx.de>
20543
20544 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
20545 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
20546 Use `unsigned int' instead of `uint'.
20547 (xd_read_message, Fdbus_register_signal): Split expressions into
20548 multiple lines before operators "&&" and "||", according to the
20549 GNU Coding Standards.
20550
205512007-12-14 Eli Zaretskii <eliz@gnu.org>
20552
20553 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
20554
205552007-12-12 Juri Linkov <juri@jurta.org>
20556
20557 * buffer.c (Frename_buffer): In interactive spec replace
20558 `read-buffer' with `read-string' that uses `buffer-name-history'
20559 as history, and the current buffer's name as default.
20560
205612007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
20562
20563 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
20564 manipulating the backtrace manually.
20565 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
20566 (struct backtrace, backtrace_list): Remove.
20567 (command_loop_1): Remove dead var `no_direct'.
20568
20569 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
20570 preserve non-built-in buffer-local variables.
20571 (Fkill_all_local_variables): Don't re-create&re-set permanent
20572 buffer-local variables.
20573
205742007-12-09 Juri Linkov <juri@jurta.org>
20575
20576 * buffer.c (Frename_buffer): Change interactive spec from "s" to
20577 Lisp code that uses `read-buffer' with current buffer as default.
20578
205792007-12-08 Michael Albinus <michael.albinus@gmx.de>
20580
20581 * dbusbind.c (xd_read_message): Generate an event for every
20582 registered handler. There might be several handlers registered
20583 for the same signal.
20584 (Fdbus_register_signal): Don't overwrite a registration for the
20585 same signal. Add a new registration if handlers are different.
20586 (Vdbus_registered_functions_table): Rework doc string.
20587
205882007-12-07 Michael Albinus <michael.albinus@gmx.de>
20589
20590 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
20591 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
20592 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
20593 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
20594 Unify argument lists.
20595 (xd_read_message, Fdbus_register_signal): Reorder and extend event
20596 arguments and hash table keys. Use unique name for service.
20597 (Fdbus_unregister_signal): Remove checks.
20598 (Vdbus_registered_functions_table): Fix doc string.
20599
206002007-12-05 Magnus Henoch <mange@freemail.hu>
20601
20602 * process.c (make_process): Initialize pty_flag to 0.
20603
206042007-12-05 Jason Rumney <jasonr@gnu.org>
20605
20606 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
20607 specified XBMs.
20608
206092007-12-05 Richard Stallman <rms@gnu.org>
20610
20611 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
20612
206132007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20614
20615 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
20616 New variable.
20617 (mac_try_close_socket) [MAC_OSX]: New function.
20618 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
20619 Update cfsockets_for_select. Replace invalid CFRunLoop source.
20620
20621 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
20622 Use mac_try_close_socket.
20623
206242007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20625
20626 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
20627 reloc_base.
20628 (copy_dysymtab): Compute relocation base here.
20629 (rebase_reloc_address) [__ppc64__]: New function.
20630 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
20631 changed.
20632
206332007-12-05 Jason Rumney <jasonr@gnu.org>
20634
20635 * w32proc.c (sys_spawnve): Quote args with wildcards.
20636
206372007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20638
20639 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
20640 __objc_* sections.
20641 (unrelocate) [_LP64]: Set relocation base to address of data segment.
20642
206432007-12-05 Michael Albinus <michael.albinus@gmx.de>
20644
20645 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
20646 Move check for Vdbus_registered_functions_table to
20647 xd_read_queued_messages.
20648 (xd_read_queued_messages): Protect xd_read_message calls by
20649 internal_condition_case_1.
20650
206512007-12-04 Michael Albinus <michael.albinus@gmx.de>
20652
20653 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
20654 Qdbus_system_bus and Qdbus_session_bus, respectively.
20655 (Vdbus_intern_symbols): Remove.
20656 (Vdbus_registered_functions_table): New hash table.
20657 (XD_SYMBOL_INTERN_SYMBOL): Remove.
20658 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
20659 Rewrite in order to manage registered functions by hash table
20660 Vdbus_registered_functions_table.
20661
206622007-12-03 Jan Djärv <jan.h.d@swipnet.se>
20663
20664 * xterm.c: Update URL to Window Manager Specification in comment.
20665
206662007-12-02 Michael Albinus <michael.albinus@gmx.de>
20667
20668 * config.in (HAVE_DBUS): Add.
20669
20670 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
20671 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
20672 (obj): Add $(DBUS_OBJ).
20673 (LIBES): Add $(DBUS_LIBS).
20674 (dbusbind.o): New target.
20675
20676 * dbusbind.c: New file.
20677
20678 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
20679
20680 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
20681 (Qdbus_event): New Lisp symbol.
20682 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
20683 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 20684 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
20685
20686 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
20687
206882007-12-01 Richard Stallman <rms@gnu.org>
20689
20690 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
20691
206922007-11-30 Jason Rumney <jasonr@gnu.org>
20693
20694 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
20695 (w32con_reset_terminal_modes): Clear screen buffer.
20696 (w32_face_attributes): Don't use color indexes that are out of range.
20697 Only reverse the default colors.
20698
20699 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
20700 WINDOWSNT.
20701
20702 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
20703
207042007-11-29 Jason Rumney <jasonr@gnu.org>
20705
20706 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
20707 (w32_face_attributes): Use Vtty_defined_color_alist to determine
20708 if the terminal colors are initialized.
20709 (unspecified_fg, unspecified_bg): Remove unused declarations.
20710
207112007-11-29 Andreas Schwab <schwab@suse.de>
20712
20713 * keyboard.c (apply_modifiers): Fix typo.
20714
207152007-11-29 Richard Stallman <rms@gnu.org>
20716
20717 * keymap.c (Fcurrent_local_map): Doc fix.
20718
207192007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
20720
20721 * s/gnu-kfreebsd.h: New file.
20722
207232007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
20724
20725 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
20726 Don't cast redundantly.
20727
20728 * keyboard.c (KEY_TO_CHAR): New macro.
20729 (parse_modifiers, apply_modifiers): Accept integer arguments.
20730 (read_key_sequence): Use them to unify the "shift->unshift" mapping
20731 for chars and symbol keys.
20732 After doing such remapping, apply function-key-map again.
20733
207342007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
20735
20736 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
20737 compiled anymore.
20738
207392007-11-26 Andreas Schwab <schwab@suse.de>
20740
20741 * process.c (list_processes_1): Fix indentation level of the
20742 command column.
20743
207442007-11-23 Andreas Schwab <schwab@suse.de>
20745
20746 * editfns.c (Fformat): Handle %c specially since it requires the
20747 argument to be of type int.
20748
207492007-11-23 Markus Triska <markus.triska@gmx.at>
20750
20751 * emacs.c (main): Call init_editfns before init_process, since
20752 init_process sets Vprocess_connection_type depending on OS release.
20753
207542007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
20755
20756 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
20757 (find_symbol_value): Use do_symval_forwarding.
20758
20759 * data.c (set_internal): Set the value in the `cons-cell' (for
20760 Buffer_Local_values) not only for frame-local variables.
20761
207622007-11-22 Andreas Schwab <schwab@suse.de>
20763
20764 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
20765 values to sprintf.
20766 * keymap.c (Fsingle_key_description): Likewise.
20767 * print.c (print_object): Likewise.
20768
207692007-11-22 Jan Djärv <jan.h.d@swipnet.se>
20770
20771 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
20772 file for image is nil.
20773
207742007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
20775
20776 * term.c: Include stdarg.h.
20777 (fatal): Implement using varargs.
20778 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
20779
207802007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
20781
20782 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
20783 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
20784 Update call to buffer_slot_type_mismatch.
20785 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
20786 (buffer_slot_type_mismatch): Update.
20787 * buffer.c (buffer_local_types): Remove.
20788 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
20789 (defvar_per_buffer): Set the type in the buffer_objfwd.
20790
207912007-11-21 Jason Rumney <jasonr@gnu.org>
20792
20793 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
20794 CreateFileMapping returns NULL on failure.
20795
207962007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
20797
20798 * search.c (Fset_match_data): Remove the `evaporate' feature.
20799 (unwind_set_match_data): Don't use the `evaporate' feature.
20800
208012007-11-21 Jason Rumney <jasonr@gnu.org>
20802
20803 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
20804
20805 * w32console.c (w32con_write_glyphs): Remove unused variables.
20806
208072007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
20808
20809 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
20810
20811 * s/darwin.h (MULTI_KBOARD): Remove.
20812
20813 * macfns.c (x_create_tip_frame, Fx_create_frame)
20814 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
20815
208162007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
20817
20818 * buffer.c (Fbuffer_local_value): Remove redundant test.
20819 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
20820 than in `current-buffer' to match the comment.
20821 Do the swap using swap_in_global_binding.
20822
20823 * data.c (store_symval_forwarding, set_internal):
20824 * eval.c (specbind): Remove dead code.
20825
20826 * coding.c (detect_coding, Fupdate_coding_systems_internal):
20827 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
20828 Since we do not want to see internal Lisp_*fwd objects here.
20829
208302007-11-18 Jan Djärv <jan.h.d@swipnet.se>
20831
20832 * sysdep.c (init_system_name): Use getaddrinfo if available.
20833
20834 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
20835 (x_scroll_bar_note_movement): start, end, with, height in struct
20836 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
20837
208382007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
20839
20840 * puresize.h (BASE_PURESIZE): Increase to 1190000.
20841
208422007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
20843
20844 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
20845 This undoes Richard's change of 14-Oct-2002.
20846
20847 * alloc.c (allocate_other_vector):
20848 * lisp.h (allocate_other_vector): Remove.
20849
20850 * window.c (struct save_window_data): Move non-lisp data to the end
20851 and make it `int' rather than Lisp_Object.
20852 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
20853 Done wrap/unwrap integer values.
20854 (Fset_window_configuration, compare_window_configurations):
20855 Update use of fields to their new types.
20856
20857 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
20858 Turn integer fields into `int'. Merge x_window_low and x_window_high.
20859 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
20860 (SET_SCROLL_BAR_X_WINDOW): Remove.
20861 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
20862 Access the new x_window field directly.
20863 * xterm.c (x_scroll_bar_create): Use a pseudovector.
20864 Don't wrap/unwrap integers into Lisp_Objects.
20865 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
20866 (x_scroll_bar_report_motion):
20867 Don't wrap/unwrap integers into Lisp_Objects.
20868 (x_term_init): Use SDATA.
20869 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
20870 (x_scroll_bar_set_handle, x_scroll_bar_remove)
20871 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
20872 (x_scroll_bar_report_motion, x_scroll_bar_clear):
20873 * xfns.c (x_set_background_color):
20874 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
20875 Access the new x_window field directly.
20876
20877 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
20878 (allocate_pseudovector): Make non-static.
20879
20880 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
20881 (allocate_pseudovector): Declare.
20882 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
20883
208842007-11-15 Andreas Schwab <schwab@suse.de>
20885
20886 * editfns.c (Fformat): Correctly format EMACS_INT values.
20887 Also take precision into account when formatting an integer.
20888
20889 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
20890
208912007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
20892
20893 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
20894 (syms_of_keyboard): Defsubr it.
20895
20896 * data.c (swap_in_global_binding): Fix longstanding bug where
20897 store_symval_forwarding was not called with the right second argument,
20898 thus causing objfwd-ing from being dropped.
20899
209002007-11-14 Juanma Barranquero <lekktu@gmail.com>
20901
20902 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
20903 (Fx_display_pixel_height, Fx_display_planes)
20904 (Fx_display_color_cells, Fx_server_max_request_size)
20905 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
20906 (Fx_display_visual_class, Fx_display_save_under):
20907 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
20908 (Fx_display_pixel_height, Fx_display_planes)
20909 (Fx_display_color_cells, Fx_server_max_request_size)
20910 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
20911 (Fx_display_mm_height, Fx_display_mm_width)
20912 (Fx_display_backing_store, Fx_display_visual_class)
20913 (Fw32_select_font, Fx_display_save_under):
20914 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
20915 (Fx_display_pixel_height, Fx_display_planes)
20916 (Fx_display_color_cells, Fx_server_max_request_size)
20917 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
20918 (Fx_display_save_under): Fix typos in docstrings.
20919
209202007-11-14 Juanma Barranquero <lekktu@gmail.com>
20921
20922 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
20923 corresponding to deleted entries; they are an implementation detail.
20924 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
20925 Remove variables.
20926 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
20927 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
20928 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
20929 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
20930 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
20931 (Fw32_define_rgb_color, Fw32_load_color_file)
20932 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
20933 Fix typos in docstrings.
20934 (Fx_server_version): Reflow docstring.
20935 (Fw32_shell_execute): Doc fixes.
20936
209372007-11-13 Juanma Barranquero <lekktu@gmail.com>
20938
20939 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
20940 if w32_parse_hot_key returned nil.
20941
209422007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
20943
20944 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
20945
209462007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 20947
aac0c6e3
MR
20948 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
20949
20950 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
20951
20952 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
20953 Remove W32_SCROLL_BAR_CLICK_EVENT.
20954
20955 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
20956 Add MULTIMEDIA_KEY_EVENT.
20957
20958 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
20959 (lispy_multimedia_keys) [WINDOWSNT]: New array.
20960 (make_lispy_event) [WINDOWSNT]: Use it to translate
20961 MULTIMEDIA_KEY_EVENT.
20962
20963 * w32term.h (WM_APPCOMMAND): Define if not already.
20964 (GET_APPCOMMAND_LPARAM): Likewise.
20965
20966 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
20967 WM_APPCOMMAND.
20968
20969 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
20970 (syms_of_w32fns): Export and initialize it.
20971 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
20972
209732007-11-09 Chong Yidong <cyd@stupidchicken.com>
20974
20975 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
20976 twice.
20977
20978 * xdisp.c (handle_face_prop): Fix last change.
20979
209802007-11-09 Richard Stallman <rms@gnu.org>
20981
20982 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
20983 not just for after-strings and before-strings.
20984 Call face_for_overlay_string and pass the overlay to it.
20985 (handle_display_prop): Determine whether property came from an overlay.
20986 Pass OVERLAY arg to handle_single_display_spec.
20987 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
20988 (load_overlay_strings): Fill in it->string_overlays.
20989 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
20990
20991 * xfaces.c (face_for_overlay_string): Function renamed from
20992 face_at_buffer_position_no_overlays, and add arg OVERLAY.
20993
20994 * dispextern.h (struct it): New elt string_overlays.
20995 New elt from_overlay, also in stack.
20996 Rearrange a few elements.
20997 (face_for_overlay_string): Decl renamed from
20998 face_at_buffer_position_no_overlays, and add argument.
20999
210002007-11-09 Richard Stallman <rms@gnu.org>
21001
21002 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
21003 to get the base face for an overlay string.
21004
21005 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
21006
21007 * xfaces.c (face_at_buffer_position_no_overlays): New function.
21008
21009 * xdisp.c (handle_stop): Move some code out of loop.
21010
210112007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21012
21013 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
21014 Fix conversion from Lisp object to ATSUFontID.
21015
210162007-11-09 Jason Rumney <jasonr@gnu.org>
21017
21018 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
21019
210202007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21021
21022 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
21023 Don't assume regions are aligned to page boundary.
21024 (print_load_command_name): Add LC_UUID if defined.
21025
210262007-11-09 Richard Stallman <rms@gnu.org>
21027
21028 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
21029
210302007-11-07 Jason Rumney <jasonr@gnu.org>
21031
21032 * s/windows95.h: Remove.
21033
210342007-11-06 Jan Djärv <jan.h.d@swipnet.se>
21035
21036 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
21037 abort with a message on unhandled store_type values.
21038
210392007-11-01 Jan Djärv <jan.h.d@swipnet.se>
21040
21041 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
21042 Remove HAVE_X11R5 and HAVE_X11R4.
21043
210442007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
21045
21046 * Makefile.in: Remove references to sunfns.c and sunfns.o.
21047
210482007-11-01 Johan Bockgård <bojohan@gnu.org>
21049
21050 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
21051 Don't set s->stippled_p here, since it has already been set by
21052 x_set_glyph_string_gc from x_draw_glyph_string.
21053
210542007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
21055
21056 * sunfns.c: Remove file.
21057
21058 * m/sun386.h:
21059 * m/sun2.h:
21060 * m/sparc.h: Remove Sun windows code.
21061
210622007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
21063
21064 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
21065 (init_keyboard): Set current_kboard's window-system to nil.
21066 (tty_read_avail_input): Typo.
21067 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
21068
210692007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
21070
21071 * s/usg5-4.h:
21072 * s/usg5-3.h:
21073 * s/ptx.h:
21074 * m/is386.h:
21075 * m/ibmps2-aix.h:
21076 * Makefile.in: Remove all mentions of X10.
21077
21078 * dispnew.c (syms_of_display): Don't mention version 10.
21079
210802007-10-28 Juanma Barranquero <lekktu@gmail.com>
21081
21082 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
21083 ($(BLD)/abbrev.$(O)): Remove.
21084
210852007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
21086
21087 Rewrite abbrev.c in Elisp.
21088 * image.c (Qcount): Don't declare as extern.
21089 (syms_of_image): Initialize and staticpro `Qcount'.
21090 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
21091 * emacs.c (main): Don't call syms_of_abbrev.
21092 * Makefile.in (obj): Remove abbrev.o.
21093 (abbrev.o): Remove.
21094 * abbrev.c: Remove.
21095
210962007-10-26 Martin Rudalics <rudalics@gmx.at>
21097
21098 * window.c (window_min_size_2): Don't count header-line.
21099
211002007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
21101
21102 * frame.h (struct frame): Move all bit fields after the first bit
21103 field to take advantage of the available space. Group all the
21104 chars together to reduce wasted space due to padding.
21105
211062007-10-26 Juanma Barranquero <lekktu@gmail.com>
21107
21108 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
21109
21110 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
21111 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
21112 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
21113 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
21114 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
21115 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
21116 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
21117 (last_marked, mark_object_loop_halt): Make static.
21118
21119 * frame.c (syms_of_frame) <delete-frame-functions>:
21120 Fix typo in docstring.
21121
211222007-10-25 Juanma Barranquero <lekktu@gmail.com>
21123
21124 * w32.c (init_environment): Fix tiny memory leak.
21125 (w32_get_resource): Remove unused variable `ok'.
21126
211272007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
21128
21129 Make `window-system' into a keyboard-local variable (rather than
21130 frame-local as done originally by multi-tty).
21131
21132 * keyboard.h (struct kboard): Add Vwindow_system.
21133 * keyboard.c (init_kboard): Set a default for Vwindow_system.
21134 (mark_kboards): Mark Vwindow_system.
21135
21136 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
21137 (init_display): Don't set the obsolete `window-system' frame-param.
21138
21139 * xterm.c (x_term_init):
21140 * w32term.c (w32_create_terminal):
21141 * term.c (init_tty): Set Vwindow_system.
21142 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
21143 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
21144
21145 * xfns.c (Fx_create_frame, x_create_tip_frame):
21146 * w32fns.c (Fx_create_frame, x_create_tip_frame):
21147 * macfns.c (Fx_create_frame):
21148 Don't set the obsolete `window-system' frame-param.
21149
21150 * frame.h (Qwindow_system): Remove.
21151 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
21152 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
21153
211542007-10-24 Richard Stallman <rms@gnu.org>
21155
21156 * frame.c (x_figure_window_size): For fullscreen case,
21157 set USPosition | PPosition without clobbering rest of window_prompting.
21158
21159 * keyboard.c (Fcurrent_idle_time): Doc fix.
21160
21161 * print.c (Fwith_output_to_temp_buffer): Doc fix.
21162
211632007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
21164
21165 * process.c (unwind_request_sigio): Only define if __ultrix__.
21166
21167 * callproc.c (child_setup): Remove spurious *.
21168
21169 * lisp.h (Fget_text_property): Declare.
21170 (have_menus_p): Declare it here rather than in sys-dep header files.
21171 * macterm.h (have_menus_p):
21172 * msdos.h (have_menus_p):
21173 * xterm.h (have_menus_p): Remove.
21174
21175 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
21176 (Fmake_variable_frame_local): Just check the variable's const-ness
21177 rather than checking nil or t.
21178
211792007-10-22 Jason Rumney <jasonr@gnu.org>
21180
21181 * w32fns.c: Include math.h.
21182 (w32_abort): Declaration moved to nt/config.nt.
21183
21184 * s/ms-w32.h (HAVE_STDLIB_H): Define.
21185 (abort): Redefinition moved to nt/config.nt.
21186
21187 * m/windowsnt.h: Remove.
21188
211892007-10-22 Juanma Barranquero <lekktu@gmail.com>
21190
21191 * emacs.c (Fdump_emacs): Fix typo in message.
21192 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
21193 <installation-directory>: Reflow docstring.
21194
211952007-10-22 Juri Linkov <juri@jurta.org>
21196
21197 * minibuf.c: Allow minibuffer default to be a list of default values.
21198 With empty input use the first element of this list as returned default.
21199 (string_to_object)
21200 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
21201 (read_minibuf): If defalt is cons, set histstring to its car.
21202 (Fread_string): If default_value is cons, set val to its car.
21203 (Fread_buffer): If def is cons, use its car.
21204 (Fcompleting_read): If defalt is cons, set val to its car.
21205
212062007-10-21 Michael Albinus <michael.albinus@gmx.de>
21207
21208 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
21209
212102007-10-20 Juanma Barranquero <lekktu@gmail.com>
21211
21212 * doc.c (Fdocumentation): Check for advice in all cases.
21213
212142007-10-19 Chong Yidong <cyd@stupidchicken.com>
21215
21216 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
21217
212182007-10-19 Richard Stallman <rms@gnu.org>
21219
21220 * doc.c (Fdocumentation): Check for and handle an advised function.
21221
212222007-10-19 Juanma Barranquero <lekktu@gmail.com>
21223
21224 * process.c (Fset_process_filter): Doc fix.
21225
212262007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
21227
21228 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
21229 which caused key-translation-map to applied repeatedly (thus breaking
21230 double-mode).
21231
212322007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
21233
21234 * xselect.c (x_own_selection, x_handle_selection_clear)
21235 (x_clear_frame_selections):
21236 * w32menu.c (list_of_panes, list_of_items):
21237 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
21238 * textprop.c (validate_plist, interval_has_all_properties)
21239 (interval_has_some_properties, interval_has_some_properties_list)
21240 (add_properties, text_property_list):
21241 * process.c (Fget_buffer_process, list_processes_1, status_notify):
21242 * minibuf.c (Fassoc_string):
21243 * macselect.c (x_own_selection, x_clear_frame_selections)
21244 (Fx_disown_selection_internal):
21245 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
21246 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
21247
212482007-10-17 Chong Yidong <cyd@stupidchicken.com>
21249
21250 * process.c: Link to libs for calling res_init() if available.
21251 (Fmake_network_process): Call res_init() before getaddrinfo or
21252 gethostbyname, if possible.
21253
212542007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
21255
21256 * lread.c (read1): Set pvectype for char_tables.
21257
21258 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
21259 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
21260 Add type checks.
21261 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
21262
21263 * alloc.c (free_misc): Use XMISCTYPE.
21264 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
21265
212662007-10-17 Glenn Morris <rgm@gnu.org>
21267
21268 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
21269 (syms_of_minibuf): Add Qcompletion_ignore_case.
21270 * dired.c (Qcompletion_ignore_case): Change to external.
21271 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
21272 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
21273 (Fread_file_name): Use it rather than intern'ing.
21274
21275 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
21276 (Fread_coding_system): Ignore case of user input.
21277
212782007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21279
21280 * xdisp.c (handle_display_prop): Ignore display specs after
21281 replacing one when string text is being replaced.
21282 (handle_single_display_spec): Pretend as if characters with display
21283 property haven't been consumed only when buffer text is being replaced.
21284
212852007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
21286
21287 * xfns.c (Fx_create_frame, Fx_display_list):
21288 * window.c (window_fixed_size_p, enlarge_window)
21289 (shrink_window_lowest_first):
21290 * macterm.c (init_font_name_table):
21291 * macfns.c (Fx_create_frame, Fx_display_list):
21292 * lread.c (close_load_descs):
21293 * keyboard.c (read_char_x_menu_prompt):
21294 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
21295 * coding.c (code_convert_region_unwind): Test the type of an object
21296 rather than just !NILP before extracting data from it.
21297
21298 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
21299
21300 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
21301 (XMISCANY): New macro.
21302 (XMISCTYPE): Use it.
21303 (struct Lisp_Misc_Any): New type.
21304 (union Lisp_Misc): Use it.
21305 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
21306 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
21307 (find_symbol_value, set_internal, default_value, Fset_default)
21308 (Fmake_variable_buffer_local, Fmake_local_variable)
21309 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
21310 (Flocal_variable_if_set_p, Fvariable_binding_locus):
21311 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
21312 * alloc.c (allocate_buffer): Set the size and tag.
21313 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
21314 Use XMISCANY.
21315 (die): Follow the GNU convention for error messages.
21316 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
21317 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
21318 tag any more.
21319 (set_buffer_internal_1):
21320 * frame.c (store_frame_param):
21321 * eval.c (specbind):
21322 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
21323
21324 * doc.c (Fsnarf_documentation): Simplify.
21325
213262007-10-14 Juanma Barranquero <lekktu@gmail.com>
21327
21328 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
21329 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
21330
213312007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
21332
21333 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
21334
213352007-10-14 Juanma Barranquero <lekktu@gmail.com>
21336
21337 * eval.c (do_autoload): Don't save autoloads.
21338
21339 * data.c (Ffset): Save autoload of the function being set.
21340
213412007-10-07 John Paul Wallington <jpw@pobox.com>
21342
21343 * xfns.c (x_create_tip_frame): Set the `display-type' frame
21344 parameter before setting up faces.
21345
213462007-10-13 Eli Zaretskii <eliz@gnu.org>
21347
21348 * ccl.c (Fregister_code_conversion_map):
21349 * keyboard.c (append_tool_bar_item): Reformat last change.
21350
21351 * lisp.h (eabs): Rename from `abs'. All callers changed.
21352
213532007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
21354
21355 * buffer.c (add_overlay_mod_hooklist):
21356 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
21357 * fontset.c (make_fontset):
21358 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
21359 (append_tool_bar_item):
21360 * macmenu.c (grow_menu_items):
21361 * w32menu.c (grow_menu_items):
21362 * xmenu.c (grow_menu_items): Use larger_vector.
21363
213642007-10-13 Eli Zaretskii <eliz@gnu.org>
21365
21366 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
21367 selected frame'' on MSDOS).
21368
213692007-10-12 Martin Rudalics <rudalics@gmx.at>
21370
21371 * frame.c (Qexplicit_name): New variable.
21372 (x_report_frame_params): Report it in parameter alist.
21373 (syms_of_frame): Intern and staticpro it.
21374
213752007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
21376
21377 * macfns.c (x_create_tip_frame): Set terminal for frame.
21378
213792007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
21380
21381 * frame.c (Qenvironment): Remove.
21382 (syms_of_frame) <Qenvironment>: Don't initialize.
21383 (Fdelete_frame): Don't treat the `environment' param specially.
21384 * frame.h (Qenvironment): Don't declare.
21385 * callproc.c (set_initial_environment): Don't set unused frame param.
21386
21387 * frame.c (Fframe_with_environment): Remove.
21388 (syms_of_frame) <Sframe_with_environment>: Don't declare.
21389
21390 * lisp.h (Fframe_with_environment): Don't declare.
21391
213922007-10-10 Juanma Barranquero <lekktu@gmail.com>
21393
21394 * indent.c (indent_tabs_mode, last_known_column)
21395 (last_known_column_modified): Make static.
21396 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
21397
213982007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
21399
21400 * puresize.h (BASE_PURESIZE): Increase to 1170000.
21401
214022007-10-09 Jason Rumney <jasonr@gnu.org>
21403
21404 * w32term.c (x_set_window_size): Disable code that attempts to tell
21405 Lisp code about a size change before it actually happens.
21406
214072007-10-09 Richard Stallman <rms@gnu.org>
21408
21409 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
21410 return HANDLED_RETURN.
21411
214122007-10-08 Martin Rudalics <rudalics@gmx.at>
21413
21414 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
21415 when there's an unread command event.
21416
21417 * frame.c (focus_follows_mouse): Move here from frame.el to allow
21418 window autoselection act appropriately when leaving selected frame.
21419 (syms_of_frame): Initialize focus_follows_mouse.
21420 * frame.h (focus_follows_mouse): Extern it.
21421 * macterm.c (XTread_socket): When focus_follows_mouse is nil
21422 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
21423 * msdos.c (dos_rawgetc): Likewise.
21424 * w32term.c (w32_read_socket): Likewise.
21425 * xterm.c (handle_one_xevent): Likewise.
21426 * xdisp.c (syms_of_xdisp): In doc-string of
21427 mouse-autoselect-window mention focus-follows-mouse.
21428
214292007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21430
21431 * macterm.c (mac_load_query_font): Fix missing return value.
21432 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
21433 Add BLOCK_INPUT.
21434
214352007-10-08 Richard Stallman <rms@gnu.org>
21436
21437 * xdisp.c (get_window_cursor_type): Implement documented behavior
21438 for cursor-in-non-selected-windows = t.
21439
214402007-10-08 Jason Rumney <jasonr@gnu.org>
21441
21442 * w32.c (w32_get_resource): Always close registry keys.
21443
214442007-10-08 Jason Rumney <jasonr@gnu.org>
21445
21446 * makefile.w32-in (LIBS): Add COMCTL32.
21447
21448 * w32fns.c (globals_of_w32fns): Init common controls.
21449
214502007-10-08 Richard Stallman <rms@gnu.org>
21451
21452 * image.c (our_memory_buffer): Rename from omfib_buffer.
21453
214542007-10-08 Richard Stallman <rms@gnu.org>
21455
21456 * buffer.c (Foverlays_at): Doc fix.
21457
214582007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
21459
21460 * fns.c (Fplist_put): Preserve uneven tail data.
21461
214622007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
21463
21464 * termhooks.h (enum event_kind): Remove trailing comma.
21465
21466 * frame.h (enum): Remove trailing comma.
21467
214682007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
21469
21470 * w32proc.c (delete_child): Don't terminate threads of zombies.
21471
214722007-10-08 Martin Rudalics <rudalics@gmx.at>
21473
21474 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
21475
21476 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
21477 last-repeatable-command.
21478 (init_kboard): Initialize Vlast_repeatable_command.
21479 (command_loop_1): Set it to real_this_command unless that was
21480 bound to an input event.
21481 (mark_kboards): Mark it.
21482
214832007-10-08 Richard Stallman <rms@gnu.org>
21484
21485 * eval.c (condition-case): Doc fix.
21486
214872007-10-08 Masatake YAMATO <jet@gyve.org>
21488
21489 * xfaces.c (tty_supports_face_attributes_p): Fix code
21490 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
21491 was copied and not edited.
21492
214932007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
21494
21495 Add new `input-decode-map' keymap and use it for terminal
21496 escape sequences.
21497 * keyboard.h (struct kboard): Add Vinput_decode_map.
21498 Remove Vlocal_key_translation_map.
21499 * keyboard.c (read_key_sequence): Add support for input-decode-map.
21500 (init_kboard): Init input-decode-map.
21501 Replace local-key-translation-map back with key-translation-map.
21502 (syms_of_keyboard): Declare input-decode-map.
21503 Remove local-key-translation-map. Update docstrings.
21504 (mark_kboards): Mark Vinput_decode_map.
21505 Don't mark Vlocal_key_translation_map.
21506 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
21507 Replace local-key-translation-map back with key-translation-map.
21508 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
21509 Bind in input-decode-map rather than function-key-map.
21510
21511 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
21512 This was made redundant by the previous introduction of XSETPVECTYPE.
21513
215142007-10-09 Richard Stallman <rms@gnu.org>
21515
21516 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
21517
215182007-09-29 Richard Stallman <rms@gnu.org>
21519
21520 * eval.c (internal_condition_case_2, internal_condition_case_1)
21521 (internal_condition_case): Reenable abort if x_catching_errors ()
21522 to see if that really happens and why.
21523
215242007-10-06 Andreas Schwab <schwab@suse.de>
21525
21526 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
21527
215282007-10-04 Juanma Barranquero <lekktu@gmail.com>
21529
21530 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
21531
215322007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
21533
21534 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
21535
215362007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
21537
21538 * window.h (struct window):
21539 * window.c (struct save_window_data, struct saved_window):
21540 * termhooks.h (struct terminal):
21541 * process.h (struct Lisp_Process):
21542 * frame.h (struct frame):
21543 * buffer.h (struct buffer):
21544 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
21545 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
21546 The size field of (pseudo)vectors is now unsigned.
21547 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
21548
21549 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
21550 Turn `count' into an integer.
21551
21552 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
21553 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
21554 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
21555 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
21556 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
21557
21558 * alloc.c (allocate_pseudovector): New fun.
21559 (ALLOCATE_PSEUDOVECTOR): New macro.
21560 (allocate_window, allocate_terminal, allocate_frame)
21561 (allocate_process): Use it.
21562 (mark_vectorlike): New function.
21563 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
21564 (mark_terminals): Use it.
21565 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
21566 (Fmake_byte_code): Use XSETPVECTYPE.
21567
21568 * frame.c (Fframe_parameters): Minor simplification.
21569
21570 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
21571
21572 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
21573
21574 * buffer.c (Fget_buffer_create, init_buffer_once):
21575 * lread.c (defsubr):
21576 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
21577
21578 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
21579 defined differently in the m/*.h files.
21580 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
21581 (XSETPVECTYPE): New macro.
21582 (XSETPSEUDOVECTOR): Use it.
21583
21584 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
21585 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
21586
21587 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
21588 * lread.c (defvar_per_buffer):
21589 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
21590
21591 * window.c (candidate_window_p): Only consider as visible frames that
21592 are on the same terminal.
21593
21594 * m/ibms390x.h (MARKBIT): Remove unused macro.
21595
215962007-10-01 Juanma Barranquero <lekktu@gmail.com>
21597
21598 * lread.c (Fload): Fix typo in docstring.
21599
216002007-10-01 Michaël Cadilhac <michael@cadilhac.name>
21601
21602 * floatfns.c (Fexpt): Manually check for overflows, so that a power
21603 of a non-zero value can't yield zero.
21604
216052007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
21606
21607 * term.c (term_clear_mouse_face, term_mouse_highlight)
21608 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
21609
21610 * print.c (safe_debug_print): Use XHASH.
21611
21612 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
21613 Lisp elements such as tags.
21614 (XHASH): New macro.
21615 (EQ): Use it.
21616 (SREF, SSET, STRING_COPYIN): Use SDATA.
21617 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
21618
21619 * alloc.c (mark_terminal): Remove left-over declaration.
21620 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
21621 (allocate_vectorlike): Remove type argument. Adjust callers.
21622 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
21623 Only handle the one remaining MEM_TYPE_VECTORLIKE.
21624
21625 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
21626 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
21627 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
21628 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
21629 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
21630 Use them.
21631
21632 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
21633 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
21634 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
21635
216362007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
21637
21638 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
21639 loaded by default.
21640
216412007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
21642
21643 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
21644 on this tty.
21645 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
21646
21647 * term.c (mouse_face_window): Rename from Qmouse_face_window.
21648 Update all users.
21649 (handle_one_term_event): Use Gpm_DrawPointer.
21650 (Fgpm_mouse_start): Rename from Fterm_open_connection.
21651 Signal errors instead of returning nil. Always return nil.
21652 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
21653 Make it a noop if gpm-mouse was not activated.
21654 (syms_of_term): Update names.
21655
216562007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
21657
21658 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
21659 (init_sys_modes): Check that gpm_tty is the current tty.
21660
21661 * alloc.c (allocate_terminal): Set the vector size to only count the
21662 lisp fields. Initialize those to nil.
21663 (mark_object): Don't treat terminals specially.
21664 (mark_terminal): Remove.
21665 (mark_terminals): Use mark_object instead.
21666
21667 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
21668 the GC to the beginning.
21669
21670 * indent.h:
21671 * indent.c: Use EMACS_INT for ints coming from Elisp data.
21672
21673 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
21674
216752007-09-25 Jason Rumney <jasonr@gnu.org>
21676
21677 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
21678
21679 * w32console.c (create_w32cons_output): Remove.
21680
21681 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
21682
21683 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
21684 (reset_sys_modes): Use reset_terminal_modes_hook.
21685
216862007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
21687
21688 * eval.c (do_autoload): Don't output any message.
21689
216902007-09-24 Juri Linkov <juri@jurta.org>
21691
21692 * emacs.c (standard_args): Change priority of "--no-splash"
21693 from 40 to 3. Add "--no-desktop" with the same priority.
21694
216952007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
21696
21697 * alloc.c (gc_sweep): Check cons cell mark bits word by word
21698 and optimize the case where they are all 1.
21699
217002007-09-23 Johannes Weiner <hannes@saeurebad.de>
21701
21702 * lisp.h (abs): Define if not defined.
21703 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
21704 Don't define `abs', since it's defined in lisp.h.
21705
217062007-09-22 Eli Zaretskii <eliz@gnu.org>
21707
21708 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
21709 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
21710 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
21711 (init_tty): Use DEV_TTY instead of "/dev/tty".
21712 [WINDOWSNT]: No need to protect from NAME arg being null.
21713
217142007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
21715
21716 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
21717 up the tty state.
21718
217192007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
21720
21721 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
21722 (gpm_tty): Change its type.
21723 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
21724 (gpm_tty): Change its type and initialize it.
21725 (Fterm_open_connection): Check the frame is indeed a tty.
21726 Use the new gpm_tty.
21727 (Fterm_close_connection): Use the new gpm_tty.
21728 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
21729 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
21730
217312007-09-21 Juanma Barranquero <lekktu@gmail.com>
21732
21733 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
21734 underline_color, to draw strike-through.
21735
217362007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
21737
21738 * lisp.h (allocate_terminal): Declare.
21739
21740 * window.c (candidate_window_p): Consider frames that are being placed
21741 by the user as somewhere between visible and iconified.
21742 (window_loop): Prefer windows on the current frame.
21743 (Fselect_window): Move the use of select-frame to the beginning so we
21744 can just delegate all the work (it'll call us back anyway).
21745
21746 * frame.c (Qdisplay_environment_variable):
21747 * frame.h (Qdisplay_environment_variable): Delete.
21748
21749 * .gdbinit (xbacktrace): Print the arg's address rather than the value
21750 of the first arg, since that value may be a union.
21751
21752 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
21753 parameter rather than Qdisplay_environment_variable. If all else
21754 fails, look for DISPLAY in initial-environment.
21755
217562007-09-21 Glenn Morris <rgm@gnu.org>
21757
21758 * Makefile.in (emacstool): Remove target.
21759 (lisp, shortlisp): Remove termdev.elc.
21760
217612007-09-21 Markus Triska <markus.triska@gmx.at>
21762
21763 * xterm.c (x_delete_display): Compile session management conditionally.
21764
217652007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
21766
21767 * callproc.c (getenv_internal_1): New function.
21768 (getenv_internal): Use it.
21769 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
21770
21771 * terminal.c (get_terminal): Don't accept ints to represent terminals.
21772 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
21773 (Fset_terminal_parameter): Work with dead terminals as well.
21774 (Fmodify_terminal_parameters): Remove.
21775
21776 * terminal.c (get_terminal): Handle terminals.
21777 Make sure the terminal returned is live.
21778 (create_terminal): Use allocate_terminal.
21779 (mark_terminals): Move to alloc.c.
21780 (delete_terminal): Use terminal->name as liveness status.
21781 NULL out fields after freeing their contents.
21782 Don't deallocate the object.
21783 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
21784 rather than an int.
21785 (Fterminal_live_p): Accept non-integer arguments.
21786 (Fterminal_list): Return terminal objects rather than an ints.
21787
21788 * alloc.c (enum mem_type): New member for `terminal' objects.
21789 (allocate_terminal): New function.
21790 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
21791 Handle terminals.
21792 (mark_terminal): New fun.
21793 (mark_terminals): Move from terminal.c.
21794
21795 * term.c (get_tty_terminal): Don't treat output_initial specially.
21796 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
21797 (delete_tty): Use terminal->name as liveness status.
21798
21799 * termhooks.h (struct terminal): Make it into a pseudovector.
21800 Remove `deleted' replaced by checking `name's nullness.
21801
21802 * print.c (print_object): Handle terminals.
21803
21804 * lisp.h (enum pvec_type): New `terminal' pseudovector.
21805 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
21806
21807 * frame.c (make_terminal_frame):
21808 * keyboard.c (tty_read_avail_input):
21809 * w32term.c (x_delete_terminal):
21810 * xfns.c (Fx_create_frame, x_create_tip_frame):
21811 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
21812
218132007-09-20 Glenn Morris <rgm@gnu.org>
21814
21815 * process.c (Fmake_network_process): Doc fix.
21816
218172007-09-19 Jason Rumney <jasonr@gnu.org>
21818
21819 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
21820
218212007-09-19 Michaël Cadilhac <michael@cadilhac.name>
21822
21823 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
21824 Fix a C warning regarding variable constness.
21825
21826 * xterm.c (handle_one_xevent): Fix a C warning.
21827
218282007-09-18 Jason Rumney <jasonr@gnu.org>
21829
21830 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
21831
218322007-09-17 Jan Djärv <jan.h.d@swipnet.se>
21833
21834 * gtkutil.c (gdpy_def): New variable.
21835 (xg_initialize): Initialize gdpy_def.
21836 (xg_display_close): If no other display exists, set gdpy_def to a
21837 new connection.
21838
218392007-09-16 Jan Djärv <jan.h.d@swipnet.se>
21840
21841 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
21842 when we have no file name for the icon.
21843 (xg_tool_bar_expose_callback): Remove.
21844 (xg_create_tool_bar): Don't connect expose signal to
21845 xg_tool_bar_expose_callback.
21846 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
21847
218482007-09-16 Andreas Schwab <schwab@suse.de>
21849
21850 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
21851 values instead of zapping them.
21852
218532007-09-14 Glenn Morris <rgm@gnu.org>
21854
21855 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
21856 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
21857 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
21858 scope and rename to omfib_buffer for clarity.
21859 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
21860
218612007-09-14 Kenichi Handa <handa@m17n.org>
21862
21863 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
21864
218652007-09-13 Jason Rumney <jasonr@gnu.org>
21866
21867 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
21868
21869 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
21870
21871 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
21872 (mac_term_init): Call here instead, passing rif.
21873
218742007-09-13 Glenn Morris <rgm@gnu.org>
21875
21876 * s/hpux.h: No longer define `static' as nothing.
21877
218782007-09-13 Johan Bockgård <bojohan@gnu.org>
21879
21880 * callint.c (Fcall_interactively): Remove unused var `fun'.
21881
218822007-09-12 Romain Francoise <romain@orebokech.com>
21883
21884 * window.c (prefer_window_split_horizontally, display_buffer):
21885 Revert 2007-09-08 change.
21886
218872007-09-12 Glenn Morris <rgm@gnu.org>
21888
21889 * alloca.c: Remove file.
21890 * Makefile.in (alloca): Do not undef.
21891 (allocaobj, alloca.o): Remove.
21892 (otherobj): Remove allocaobj.
21893 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
21894 * regex.c (C_ALLOCA): Remove all references and code that was only
21895 used when this was defined.
21896 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
21897 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
21898 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
21899
21900 * Makefile.in (SOURCES, unlock, relock): Delete.
21901
21902 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
21903 (menu_grab_callback): All uses changed.
21904
21905 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
21906 (x_reply_selection_request): All uses changed.
21907
219082007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
21909
21910 * lread.c (load_warn_old_style_backquotes): Change message to look
21911 better when it appears in the middle of byte-compiler messages.
21912
219132007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
21914
21915 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
21916
21917 * xterm.c (x_create_terminal): Add comment.
21918
21919 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
21920
219212007-09-10 Richard Stallman <rms@gnu.org>
21922
21923 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
21924
219252007-09-10 Michaël Cadilhac <michael@cadilhac.name>
21926
21927 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
21928 (DEFUN): Document `intspec', use it instead of `prompt'.
21929
21930 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
21931
21932 * data.c (Finteractive_form): If the interactive specification starts
21933 with a `(', use it as a Lisp form.
21934
21935 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
21936 name and file modes.
21937
21938 * callint.c (Fcall_interactively): Comment fixes.
21939
219402007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
21941
21942 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
21943 and compiled functions.
21944
219452007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
21946
21947 * window.c (prefer_window_split_horizontally): New variable.
21948 (display_buffer): Consider splitting window horizontally depending
21949 on prefer_window_split_horizontally.
21950
219512007-09-08 Eli Zaretskii <eliz@gnu.org>
21952
21953 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
21954
219552007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
21956
21957 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
21958
21959 * frame.c (x_set_frame_parameters): Check number is positive before
21960 using XFASTINT.
21961
21962 * window.c (freeze_window_start): Don't presume selected_window holds
21963 a window object.
21964 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
21965
219662007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
21967
21968 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
21969
219702007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
21971
21972 * window.c (Vsplit_window_preferred_function): New var.
21973 (Fdisplay_buffer): Use it.
21974 (syms_of_window): Export, and initialize it.
21975
219762007-09-06 Pixel <pixel@mandriva.com> (tiny change)
21977
21978 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
21979
219802007-09-06 Glenn Morris <rgm@gnu.org>
21981
21982 * gtkutil.c (menu_grab_callback) <cnt>:
21983 * xselect.c (x_reply_selection_request) <cnt>: Move static
21984 variable to file scope.
21985
219862007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
21987
21988 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
21989 consistent values of selected_frame and selected_window.
21990
219912007-09-04 Jason Rumney <jasonr@gnu.org>
21992
21993 * w32console.c (initialize_w32_display): Zero unused hooks.
21994
219952007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
21996
21997 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
21998 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
21999
220002007-09-04 Jason Rumney <jasonr@gnu.org>
22001
22002 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
22003 in w32console.c. Set up input. Remove XXX comments that have been
22004 confirmed as correct.
22005
22006 * s/ms-w32.h (MULTI_KBOARD): Define.
22007
22008 * w32console.c (one_and_only_w32cons): Remove.
22009 (initialize_w32_display): Take terminal argument.
22010
22011 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
22012 initialize_w32_display.
22013 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
22014
22015 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
22016
22017 * keyboard.c (discard_mouse_events): Discard it.
22018 (make_lispy_event): Translate it to a lisp event.
22019 (lispy_wheel_names): Add wheel-left and right events.
22020 (syms_of_keyboard): Enlarge wheel_syms.
22021
22022 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
22023 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
22024
22025 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
22026
22027 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
22028 from WM_MOUSEHWHEEL.
22029 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
22030
22031 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
22032 terminal.
22033
22034 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
22035 keyboard for the terminal.
22036
220372007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
22038
22039 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
22040 (Vresume_tty_hook): Rename from Vresume_tty_functions.
22041 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
22042 and resume-tty-function to resume-tty-hook.
22043 (Fsuspend_tty, Fresume_tty): Use new names.
22044
220452007-09-02 Jan Djärv <jan.h.d@swipnet.se>
22046
22047 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
22048 if it starts with "n:".
22049
220502007-08-31 Jan Djärv <jan.h.d@swipnet.se>
22051
22052 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
22053
220542007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
22055
22056 * frame.h:
22057 * frame.c (Qterm_environment_variable): Remove.
22058 (syms_of_frame): Don't init and staticpro it.
22059
22060 * callproc.c (getenv_internal): Remove special case for $TERM.
22061
22062 * callproc.c (Vinitial_environment): New variable.
22063 (set_initial_environment): Initialize it.
22064 (syms_of_callproc): Declare it.
22065 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
22066 TERM under which a process runs is never related to the TERM in which
22067 Emacs is running.
22068
220692007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
22070
22071 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
22072 * s/darwin.h: ... do it here.
22073
220742007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
22075
22076 * lisp.h (set_initial_environment): Rename from set_global_environment.
22077
22078 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
22079 removed by mistake on the multi-tty branch.
22080
22081 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
22082 (Fmodify_frame_parameters): Return a value.
22083
22084 * image.c (png_load): Comment-out var only used in commented-out code.
22085
22086 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
22087 before passing it to mark_object.
22088
22089 * xfaces.c (internal_resolve_face_name): Return a value.
22090 (internal_resolve_face_name, resolve_face_name_error): Comment out.
22091
22092 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
22093 (x_icon): Comment-out var only used in commented-out code.
22094
220952007-08-29 Romain Francoise <romain@orebokech.com>
22096
22097 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
22098 QUIT hasn't been provided.
22099
221002007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
22101
22102 * callproc.c (child_setup, getenv_internal): Use the
22103 display-environment-variable and term-environment-variable frame params.
22104 (set_initial_environment): Initialise Vprocess_environment.
22105
22106 * config.in: Disable multi-keyboard support on a mac.
22107
22108 * frame.c (Qterm_environment_variable)
22109 (Qdisplay_environment_variable): New variables.
22110 (syms_of_frame): Intern and staticpro them.
22111 (Fmake_terminal_frame): Disable output method test.
22112
22113 * frame.h: Declare them here.
22114
22115 * macfns.c (x_set_mouse_color): Get rif from the frame.
22116 (x_set_tool_bar_lines): Don't use updating_frame.
22117 (mac_window): Add 2 new parameters for consistency with other systems.
22118 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
22119 frame parameters following what is done in X11 and w32. Don't use
22120 FRAME_MAC_DISPLAY_INFO.
22121 (Fx_open_connection, start_hourglass): Remove window-system check.
22122 (x_create_tip_frame): Get the keyboard from the terminal.
22123
22124 * macmenu.c: Reorder includes.
22125 (Fx_popup_menu): Use terminal specific mouse_position_hook.
22126
22127 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
22128 terminal parameter.
22129 (x_clear_frame): Add a frame parameter.
22130 (note_mouse_movement): Get rif from the frame.
22131 (mac_term_init): Initialize the terminal.
22132 (mac_initialize): Make static and move terminal initialization ...
22133 (mac_create_terminal): ... to this new function.
22134
22135 * macterm.h (struct mac_display_info): Add terminal.
22136 (mac_initialize): Delete declaration.
22137
22138 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
22139
22140 * sysdep.c: Comment out text after #endif.
22141
22142 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
22143 is defined. Better initialize ttys in windows. Use terminal
22144 specific mouse_position_hook.
22145
22146 * termhooks.h (union display_info): Add mac_display_info.
22147
22148 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
22149 Set the default minibuffer frame, window_system and the rest of the
22150 frame parameters following what is done in X11.
22151
22152 * w32term.c (w32_initialize): Make static.
22153
22154 * xselect.c (x_handle_selection_clear): Only access
22155 terminal->kboard when MULTI_KBOARD is defined.
22156
22157 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
22158 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
22159
221602007-08-29 Jason Rumney <jasonr@gnu.org>
22161
22162 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
22163 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
22164
22165 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
22166 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
22167
22168 * keyboard.c (restore_kboard_configuration): Only define when
22169 MULTI_KBOARD defined.
22170
22171 * makefile.w32-in: Update dependancies from Makefile.in.
22172 (OBJ1): Add terminal.$(O)
22173
22174 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
22175 Don't define function body.
22176 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
22177
22178 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
22179
22180 * w32.c (request_sigio, unrequest_sigio): Remove.
22181
22182 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
22183 (w32con_clear_frame, w32con_clear_end_of_line)
22184 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
22185 (w32con_delete_glyphs, w32con_set_terminal_window)
22186 (scroll_line, w32_sys_ring_bell): Add frame arg.
22187 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
22188 Add terminal arg.
22189 (PICK_FRAME): Remove.
22190 (w32con_write_glyphs): Use frame specific terminal coding.
22191 (one_and_only_w32cons): New global variable.
22192 (initialize_w32_display): Use it for storing hooks.
22193 (create_w32cons_output): New function.
22194
22195 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
22196 arg a frame.
22197
22198 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
22199 Set window_system.
22200 (x_set_tool_bar_lines): Don't use updating_frame.
22201 (Fx_create_frame): Set terminal and ref count.
22202 (Fx_open_connection): Remove window-system check.
22203
22204 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
22205
22206 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
22207 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
22208 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
22209 Add frame arg.
22210 (x_delete_terminal, w32_create_terminal): New functions.
22211 (w32_term_init): Create a terminal.
22212 (w32_initialize): Move terminal specific initialization to
22213 w32_create_terminal.
22214
22215 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
22216 (w32_clear_rect, w32_clear_area): Use background from frame.
22217 (w32_display_info): Add terminal.
22218 (w32_sys_ring_bell, x_delete_display): Declare here.
22219
22220 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
22221
22222 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
22223
222242007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
22225
22226 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
22227 Fix get_named_tty calls for the controlling tty.
22228
222292007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
22230
194d44e7 22231 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
22232
222332007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
22234
22235 * term.c (tty_insert_glyphs): Add missing first parameter.
22236
222372007-08-29 Károly Lőrentey <karoly@lorentey.hu>
22238
22239 * buffer.c (Fbuffer_list, Fbury_buffer):
22240 Take frame->buried_buffer_list into account.
22241
22242 * cm.c (current_tty): New variable, for cmputc().
22243 (cmputc): Use it.
22244 (cmcheckmagic): Add tty parameter, look up terminal streams there.
22245 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
22246 (cmgoto): Add tty parameter. Pass it on to calccost().
22247 Use emacs_tputs() instead of tputs().
22248
22249 * cm.h (emacs_tputs): New macro to set current_tty, and then call
22250 tputs().
22251 (current_tty): New variable, for cmputc().
22252 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
22253
22254 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
22255 (internal_condition_case, internal_condition_case_1)
22256 (internal_condition_case_2): Don't abort when x_catching_errors.
22257
22258 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
22259 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
22260 prevent crashes caused by bogus longjmps in read_char.
22261
22262 * keymap.h (Fset_keymap_parent): Add EXFUN.
22263
22264 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
22265 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
22266 Remove redundant definition.
22267
22268 * macfns.c (x_set_mouse_color, x_make_gc):
22269 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22270
22271 * w32term.c (x_free_frame_resources):
22272 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22273 (w32_initialize): Use the accessor macros for terminal characteristics.
22274
22275 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
22276 Use the accessor macros for terminal characteristics.
22277 * msdos.c (internal_terminal_init): Use the accessor macros for
22278 terminal characteristics.
22279 (ScreenVisualBell, internal_terminal_init):
22280 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22281
22282 * termopts.h (no_redraw_on_reenter): Declare.
22283
22284 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
22285 (mark_terminals, mark_ttys): Declare.
22286 (Fgarbage_collect): Call them.
22287 (mark_object): Mark buried_buffer_list.
22288
22289 * prefix-args.c: Include stdlib.h for exit.
22290
22291 * syssignal.h: Add comment.
22292
22293 * indent.c: Include stdio.h.
22294
22295 * window.h (Vinitial_window_system): Declare.
22296 (Vwindow_system): Delete declaration.
22297
22298 * fontset.c (Finternal_char_font): Use FRAME_RIF.
22299
22300 * image.c (lookup_image): Don't initialize `c' until the xasserts
22301 have been run.
22302
22303 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
22304 FRAME_FOREGROUND_PIXEL.
22305
22306 * print.c (print_preprocess): Don't lose print_depth levels while
22307 iterating.
22308
22309 * widget.c (update_from_various_frame_slots):
22310 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22311
22312 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
22313 frames.
22314 (window_internal_height): Remove bogus make_number call.
22315 (init_window_once): Call make_terminal_frame with two zero parameters.
22316
22317 * fileio.c (Fread_file_name): Update comment.
22318
22319 * callint.c (Fcall_interactively):
22320 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
22321 Make sure it is correctly unwound.
22322
22323 * xsmfns.c (x_session_close): New function.
22324
22325 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
22326 Delete declarations.
22327
22328 * xterm.h: Remove declaration for x_fully_uncatch_errors.
22329 (x_output): Remove background_pixel and foreground_pixel fields.
22330 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
22331 (x_delete_device, x_session_close): Declare.
22332
22333 * lread.c: Include setjmp.h. Update declaration of `read_char'.
22334 (read_filtered_event): Call `read_char' with a local
22335 `wrong_kboard_jmpbuf'.
22336
22337 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
22338 Don't call single_kboard_state. Use FRAME_RIF.
22339
22340 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
22341 systems.
22342
22343 * lisp.h (set_process_environment): Rename to `set_global_environment'.
22344 (Fframe_with_environment, Fset_input_meta_mode)
22345 (Fset_quit_char): EXFUN.
22346 (x_create_device, tty_output, terminal, tty_display_info): Declare.
22347 (init_sys_modes, reset_sys_modes): Update prototypes.
22348 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
22349
22350 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
22351 Vlocal_key_translation_map, and Vkeyboard_translate_table.
22352 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
22353 Delete declarations.
22354 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
22355 (temporarily_switch_to_single_kboard, tty_read_avail_input):
22356 New declarations.
22357
22358 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
22359 already does that during init_display(). Call syms_of_keymap
22360 before syms_of_keyboard. Call `syms_of_terminal'.
22361 Call set_initial_environment, not set_process_environment.
22362 (shut_down_emacs): Call reset_all_sys_modes() instead of
22363 reset_sys_modes().
22364
22365 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
22366 (internal_resolve_face_name, resolve_face_name_error): New functions.
22367 (resolve_face_name): Protect against loops and errors thrown by Fget.
22368 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
22369 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
22370
22371 * scroll.c: Replace CURTTY() with local variables throughout the
22372 file (where applicable).
22373 (calculate_scrolling, calculate_direct_scrolling)
22374 (scrolling_1, scroll_cost): Use the accessor macros for terminal
22375 characteristics.
22376
22377 * keymap.c (Vfunction_key_map): Remove.
22378 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
22379 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
22380 (Vkey_translation_map): Remove.
22381 (syms_of_keymap): Remove DEFVAR for key-translation-map.
22382 (Fdescribe_buffer_bindings)
22383 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
22384 Update for terminal-local key-translation-map.
22385
22386 * Makefile.in (callproc.o): Update dependencies.
22387 (lisp, shortlisp): Add termdev.elc.
22388 (obj): Add terminal.o.
22389 (terminal.o): Add dependencies.
22390 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
22391 (data.o, fns.o): Add termhooks.h dependency.
22392 (SOME_MACHINE_LISP): Add dnd.elc.
22393 (minibuf.o): Fix typo.
22394 Update dependencies.
22395
22396 * data.c (do_symval_forwarding, store_symval_forwarding)
22397 (find_symbol_value): Use the selected frame's keyboard, not
22398 current_kboard.
22399
22400 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
22401 Vwindow_system.
22402
22403 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
22404 Fmenu_bar_open.
22405 (syms_of_xmenu): Update defsubr.
22406 (mouse_position_for_popup, Fx_popup_menu)
22407 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
22408 (set_frame_menubar, free_frame_menubar)
b97439ce 22409 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
22410 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
22411 an X frame.
22412
22413 * xselect.c (x_own_selection): Abort if not an X frame.
22414 (some_frame_on_display): Check if it is an X frame.
22415 (x_handle_selection_clear): Deal with MULTI_KBOARD.
22416
22417 * coding.c: Include frame.h and termhooks.h.
22418 (terminal_coding, keyboard_coding): Delete.
22419 (Fset_terminal_coding_system_internal)
22420 (Fset_keyboard_coding_system_internal)
22421 (Fkeyboard_coding_system)
22422 (Fterminal_coding_system): Add a terminal parameter.
22423 Get terminal_coding from the terminal.
22424 (init_coding_once): Don't call setup_coding_system here.
22425
22426 * dispextern.h (set_scroll_region, turn_off_insert)
22427 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
22428 (tty_clear_end_of_line, tty_setup_colors)
22429 (delete_tty, updating_frame)
22430 (produce_special_glyphs, produce_glyphs, write_glyphs)
22431 (insert_glyphs): Remove.
22432 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
22433 (tty_turn_off_highlight, get_tty_size): Add declaration.
22434 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
22435
22436 * frame.h (enum output_method): Add output_initial.
22437 (struct x_output): Delete.
22438 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
22439 Access foreground_pixel and background_pixel directly from the frame.
22440 (tty_display): Delete.
22441 (struct frame): Add buried_buffer_list, foreground_pixel,
22442 background_pixel and terminal. Delete kboard.
22443 (union output_data): Add tty.
22444 (FRAME_KBOARD): Get the kboard from the terminal.
22445 (FRAME_INITIAL_P): New macro.
22446 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
22447 (Qterm_environment_variable, Qdisplay_environment_variable)
22448 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
22449 New declarations.
22450
22451 * termchar.h (tty_output, tty_display_info): New structures.
22452 (tty_list): Declare.
22453 (FRAME_TTY, CURTTY): New macros.
22454 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
22455 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
22456 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
22457 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
22458
22459 * callproc.c: Include frame.h and termhooks.h, for terminal
22460 parameters.
22461 (add_env): New function.
22462 (child_setup): Use it.
22463 (child_setup, getenv_internal): Handle the new Vprocess_environment.
22464 (getenv_internal): Fix get_terminal_param call.
22465 (Fgetenv_internal, egetenv): Update doc.
22466 (syms_of_callproc): Initialize Vprocess_environment to nil.
22467 Register and initialize them. Remove obsolete defvars. Update doc
22468 strings.
22469 (child_setup): Handle Vlocal_environment_variables.
22470 (getenv_internal): Add terminal parameter.
22471 Handle Vlocal_environment_variables.
22472 (Fgetenv_internal): Add terminal parameter.
22473 (child_setup, getenv_internal, Fgetenv_internal): Store the local
22474 environment in a frame (not terminal) parameter. Update doc strings.
22475 (set_initial_environment): Rename from set_global_environment.
22476 Store Emacs environment in initial frame parameter.
22477
22478 * xdisp.c (redisplay_internal): Update references to
22479 `previous_terminal_frame'.
22480 (display_mode_line, Fformat_mode_line): Replace calls to
22481 `push_frame_kboard' with `push_kboard'.
22482 (get_glyph_string_clip_rects): Add extra parentheses and
22483 braces to prevent compiler warnings.
22484 (calc_pixel_width_or_height): Add xassert to check that the
22485 frame is alive. Don't call `lookup_image' on a termcap frame.
22486 (message2_nolog, message3_nolog, redisplay_internal)
22487 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
22488 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
22489 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
22490 (Fx_display_pixel_width, Fx_display_pixel_height)
22491 (Fx_display_planes, Fx_display_color_cells)
22492 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
22493 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
22494 (Fx_display_backing_store, Fx_display_visual_class)
22495 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
22496 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
22497
22498 * xfns.c (x_set_foreground_color x_set_background_color)
22499 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
22500 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22501 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
22502 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
22503 terminal that is being deleted.
22504 (Fx_create_frame): Use `store_frame_param' to set `window-system'
22505 frame parameter, and make sure it overrides any user-supplied setting.
22506 (Fx_close_connection, Fx_synchronize): Unify argument names with
22507 the rest of the DEFUNs.
22508
22509 * dispnew.c (Fsend_string_to_terminal): Update call to
22510 `get_tty_terminal'.
22511 (Fredraw_frame, Fsend_string_to_terminal)
22512 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
22513 FRAME_TERMCAP_P and FRAME_TTY.
22514 (window_change_signal): Don't believe width/height values that are
22515 impossibly small.
22516 (Vinitial_window_system): Rename from Vwindow_system.
22517 (termscript, Wcm, rif): Delete.
22518
22519 * termhooks.h (struct terminal): New struct containing the
22520 previously global text display hooks and new members NAME,
22521 DELETED and PARAM_ALIST.
22522 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
22523 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
22524 (FRAME_RIF): New macros.
22525 (get_terminal_param, get_device): New declarations.
22526 (termscript): Delete declaration.
22527
22528 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
22529 (XTflash, x_free_frame_resources, x_scroll_bar_create)
22530 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
22531 FRAME_FOREGROUND_PIXEL.
22532 (x_fully_uncatch_errors): Disable definition.
22533 (x_scroll_bar_expose): Fix reference to foreground pixel.
22534 (XTread_socket): Disable loop on all X displays.
22535 (x_delete_terminal): Don't set terminal->deleted and let
22536 delete_terminal delete the frames on the terminal.
22537 (x_delete_display): Doc update to reflect changes in
22538 delete_terminal.
22539 (x_display_info) <terminal>: Move member earlier in the struct.
22540 (deleting_tty): Remove old variable.
22541 (Fsuspend_tty): Call clear_tty_hooks.
22542 (Fresume_tty, init_tty): Call set_tty_hooks.
22543 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
22544 errors on X frames.
22545 (x_catch_errors_unwind): Abort if x_error_message is NULL.
22546 (handle_one_xevent): Initialize `f' to NULL.
22547 (x_delete_terminal, x_create_terminal): New functions.
22548 (XTset_terminal_modes, XTreset_terminal_modes)
22549 (XTread_socket, x_connection_closed, x_term_init)
22550 (x_term_init, x_delete_display): Add terminal parameter.
22551 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
22552 X connections.
22553
22554 * frame.c: Include termchar.h.
22555 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
22556 (Qwindow_system, Qenvironment, Qterm_environment_variable)
22557 (Qdisplay_environment_variable): New vars.
22558 (Fframep): Deal with output_initial.
22559 (Fframe-live-p): Doc fix.
22560 (Fwindow-system): New function.
22561 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
22562 (make_terminal_frame): Don't create frames on a terminal that is
22563 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22564 (store_frame_param): Check for found_for_frame before calling XFRAME.
22565 (Fmake_terminal_frame): Handle NULL tty names correctly.
22566 (syms_of_frame): Enhance doc string of `default-frame-alist'.
22567 (Fdelete_frame): Remove unused variable `count'. Don't allow other
22568 frames to refer to a deleted frame in their 'environment parameter.
22569 (Fframe_with_environment): New function.
22570 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
22571 (get_future_frame_param): New function.
22572 (Fmake_terminal_frame): Use it.
22573 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
22574
22575 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
22576 * sysdep.c (reset_sys_modes): Update for renames.
22577
22578 * keyboard.c (tty_read_avail_input): New function.
22579 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
22580 (syms_of_keyboard): Defsubr them.
22581 (Fset_input_meta_mode, Fset_quit_char): New functions.
22582 (Fset_input_mode): Split to above functions.
22583 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
22584 parameter. Use it in call to `read_char'.
22585 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
22586 Set wrong_kboard_jmpbuf correctly in recursive calls.
22587 Use current_kboard to access Vkeyboard_translate_table.
22588 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
22589 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
22590 Update longjmp invocations. Remember the original current_kboard,
22591 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
22592 changes it. Comment out unnecessary calls to
22593 `record_single_kboard_state' and `any_kboard_state'.
22594 Update recursive calls.
22595 (wrong_kboard_jmpbuf): Remove global variable.
22596 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
22597 Handle deleted interrupted_kboards correctly; that is a legal
22598 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
22599 and read_char calls. Abort if interrupted_kboard died in read_char.
22600 (any_kboard_state, single_kboard_state)
22601 (push_frame_kboard): Remove function.
22602 (pop_kboard): Switch out of single_kboard mode if the kboard has
22603 been deleted. Remove unused variable. Help debugging by not
22604 changing current_kboard unnecessarily. Set current_kboard to the
22605 kboard of the selected frame when the stored kboard object has
22606 been deleted before pop_kboard.
22607 (temporarily_switch_to_single_kboard): Change first parameter to a
22608 frame pointer. Throw an error when caller wants to change kboards
22609 while in single_kboard mode. Don't push_kboard if we weren't in
22610 single kboard state. Don't pop_kboard if we popped into any
22611 kboard state.
22612 (restore_kboard_configuration): Abort if pop_kboard changed the
22613 kboard in single_kboard mode. Call pop_kboard only after setting
22614 up single_kboard mode.
22615 (Frecursive_edit): Switch to single_kboard mode only in nested
22616 command loops.
22617 (cmd_error, command_loop, command_loop_1, timer_check):
22618 Comment out unnecessary call to `any_kboard_state' and
22619 `record_single_kboard_state'.
22620 (delete_kboard): Exit single_kboard mode if we have just deleted
22621 that kboard. Use FRAME_KBOARD.
22622 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
22623 `fatal_error_signal'.
22624 (record_single_kboard_state): Don't push_kboard if we weren't in
22625 single kboard state. Don't pop_kboard if we popped into any
22626 kboard state.
22627 (push_frame_kboard): Rename to push_kboard.
22628 (kbd_buffer_get_event): Use FRAME_TERMINAL.
22629 (read_avail_input): Read input from all terminals.
22630 (mark_kboards): Also mark Vkeyboard_translate_table.
22631 (kbd_buffer_store_event_hold): Simplify condition.
22632 (read_key_sequence): Reinitialize fkey and keytran at each replay.
22633 (Vkeyboard_translate_table): Move to struct kboard.
22634 (init_kboard): Initialize Vkeyboard_translate_table.
22635 (syms_of_keyboard): Use DEFVAR_KBOARD to define
22636 Vkeyboard_translate_table. Update doc strings. Update docs of
22637 local-function-key-map and function-key-map.
22638
22639 * terminal.c: New file.
22640
22641 * term.c: Include errno.h.
22642 (Vring_bell_function, device_list, initial_device)
22643 (next_device_id, ring_bell, update_begin, update_end)
22644 (set_terminal_window, cursor_to, raw_cursor_to)
22645 (clear_to_end, clear_frame, clear_end_of_line)
22646 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
22647 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
22648 (syms_of_term): Move their initialization to terminal.c.
22649 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
22650 (Ftty_display_color_cells)
22651 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
22652 (clear_tty_hooks, set_tty_hooks)
22653 (init_tty, maybe_fatal): New functions.
22654 (Ftty_type): Return nil if terminal is not on a tty instead of
22655 throwing an error. Doc update.
22656 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
22657 Doc update. Initialize new subrs and variables.
22658 (delete_tty): Use terminal->deleted.
22659 (tty_set_terminal_modes): Rename from set_terminal_modes.
22660 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
22661 (set_scroll_region): Rename to `tty_set_scroll_region'.
22662 (turn_on_insert): Rename to `tty_turn_on_insert'.
22663 (turn_off_insert): Rename to `tty_turn_off_insert'.
22664 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
22665 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
22666 (toggle_highligh): Rename to `tty_toggle_highlight'.
22667 (background_highlight): Rename to `tty_background_highlight'.
22668 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
22669 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
22670 (tty_set_scroll_region, tty_background_highlight)
22671 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
22672 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
22673 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
22674 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
22675 Add static modifier.
22676 (tty_reset_terminal_modes, tty_set_terminal_window)
22677 (tty_set_scroll_region, tty_background_highlight)
22678 (tty_highlight_if_desired, tty_cursor_to)
22679 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
22680 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
22681 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
22682 renames.
22683
226842007-08-28 Jan Djärv <jan.h.d@swipnet.se>
22685
22686 * keyboard.c: Qrtl is new.
22687 (parse_tool_bar_item): Handle :rtl keyword.
22688 (syms_of_keyboard): Intern :rtl keyword.
22689
22690 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
22691
22692 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
22693 so no Lisp code is executed.
22694 (file_for_image, find_rtl_image): New functions.
22695 (xg_get_image_for_pixmap): Use file_for_image.
22696 (update_frame_tool_bar): If direction is RTL, use RTL image if
22697 defined. Use Gtk stock images if defined.
22698
226992007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22700
22701 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
22702 for nonexistent or zero-width glyph in composition glyph.
22703
227042007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
22705
22706 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
22707
22708 * xdisp.c (Finvisible_p): New function.
22709 (syms_of_xdisp): defsubr it.
22710
227112007-08-24 Juanma Barranquero <lekktu@gmail.com>
22712
22713 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
22714 Doc fixes.
22715
227162007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22717
22718 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
22719
227202007-08-24 Martin Rudalics <rudalics@gmx.at>
22721
22722 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
22723 whether decoding has modified buffer contents.
22724
227252007-08-24 Jason Rumney <jasonr@gnu.org>
22726
22727 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
22728 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
22729 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
22730 (init_svg_functions) [HAVE_NTGUI]: New function.
22731 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
22732 (svg_load_image): Use them.
22733 (svg_load_image) [HAVE_NTGUI]: Implement background.
22734
227352007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22736
22737 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
22738 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
22739 (LIBX): Remove @RSVG_LIBS@.
22740 (LIBES): Add $(RSVG_LIBS).
22741
22742 * image.c (svg_load_image): Blend with specified background if exists.
22743 Use IMAGE_BACKGROUND. Add Mac OS Support.
22744
22745 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
22746 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
22747 Remove macros.
22748 [MAC_OSX] (socket_callback): Do nothing.
22749 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
22750 ReceiveNextEvent.
22751 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
22752 socket_callback.
22753 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
22754
227552007-08-22 Glenn Morris <rgm@gnu.org>
22756
22757 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
22758
227592007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
22760
22761 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
22762
22763 * image.c: Add support for SVG images. Some additional comments
22764 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
22765 (svg_image_p): New function to test for SVG image.
22766 (svg_load): New function to load SVG image.
22767 (svg_load_image): New function, helper for svg_load.
22768 (Qsvg): New Lisp_object.
22769 (svg_keyword_index): New enum.
22770 (svg_format): New static `image_keyword' struct.
22771 (svg_type): New static `image_type' struct.
22772 (librsvg/rsvg.h): Include it.
22773
227742007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
22775
22776 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
22777
227782007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
22779
22780 * lread.c (Qold_style_backquotes): New var.
22781 (syms_of_lread): Init and staticpro it.
22782 (load_warn_old_style_backquotes): New fun.
22783 (Fload): Use them to warn about old style backquotes.
22784 (end_of_file_error, Fload): Remove unused vars.
22785
22786 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
22787
22788 * lread.c (Vold_style_backquotes): New var.
22789 (syms_of_lread): Init and export it to Elisp.
22790 (read1): Set it when we find an old-style (back)quote.
22791
227922007-08-22 Jason Rumney <jasonr@gnu.org>
22793
22794 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
22795
227962007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
22797
22798 * puresize.h (BASE_PURESIZE): Increase to 1140000.
22799
228002007-08-19 Richard Stallman <rms@gnu.org>
22801
22802 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
22803
228042007-08-19 Andreas Schwab <schwab@suse.de>
22805
22806 * alloc.c (pure): Round PURESIZE up.
22807
228082007-08-17 Jan Djärv <jan.h.d@swipnet.se>
22809
22810 * xterm.c (handle_one_xevent): Remove check that mouse click is in
22811 active frame.
22812
228132007-08-16 Richard Stallman <rms@gnu.org>
22814
22815 * eval.c (Fcommandp): Add parens to clarify.
22816
22817 * minibuf.c (Fall_completions): Use enum for type of table.
22818
22819 * emacs.c (USAGE2): Improve text.
22820
228212007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
22822
22823 * term.c (tty_default_color_capabilities): Declare static
22824 variables in file scope, to avoid HPUX compiler problem.
22825
228262007-08-13 Jan Djärv <jan.h.d@swipnet.se>
22827
22828 * gtkutil.c (update_frame_tool_bar): Use -1 as index
22829 to gtk_toolbar_insert.
22830
228312007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
22832
22833 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
22834
22835 * insdel.c (reset_var_on_error): New fun.
22836 (signal_before_change, signal_after_change):
22837 Use it to reset (after|before)-change-functions to nil in case of error.
22838 Bind inhibit-modification-hooks to t.
22839 Don't bind (after|before)-change-functions to nil while they run.
22840
228412007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22842
22843 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
22844 filling pixmap with stippled background.
22845
228462007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22847
22848 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
22849 Don't use invisible frame as parent window for repositioning.
22850
228512007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
22852
22853 * print.c (new_backquote_output): Rename from old_backquote_output.
22854 (print): Inverse its logic (according to its name) so as to match the
22855 behavior of new_backquote_flag in lread.c.
22856
228572007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22858
22859 * gmalloc.c (posix_memalign): New function.
22860
22861 * macterm.c (frame_highlight, frame_unhighlight): Don't call
22862 ActivateControl/DeactivateControl here.
22863 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
22864 frame-notice-user-settings is non-nil.
22865 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
22866 for kEventParamFMFontStyle.
22867 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
22868 mac_pass_command_to_system and mac_pass_control_to_system here.
22869 (XTread_socket): Call ActivateControl/DeactivateControl here.
22870 (XTread_socket) [TARGET_API_MAC_CARBON]:
22871 Check mac_pass_command_to_system and mac_pass_control_to_system here.
22872 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
22873 for window repositioning.
22874
228752007-08-08 Glenn Morris <rgm@gnu.org>
22876
22877 * Replace `iff' in doc-strings and comments.
22878
228792007-08-07 Chong Yidong <cyd@stupidchicken.com>
22880
22881 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
22882
228832007-08-07 Martin Rudalics <rudalics@gmx.at>
22884
22885 * fileio.c (Finsert_file_contents): Run format-decode and
22886 after_insert_file_functions on entire buffer when REPLACE is
22887 non-nil and inhibit modification_hooks and point_motion_hooks.
22888 For consistency, run after_insert_file_functions iff something
22889 got inserted. Move signal_after_change and update_compositions
22890 after code running after_insert_file_functions. Make sure that
22891 undo_list doesn't record intermediate steps of the decoding process.
22892
228932007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22894
22895 * emacs.c (main)
22896 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
22897 Call malloc_enable_thread on interactive startup.
22898
22899 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
22900 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
22901 [USE_PTHREAD]: Conditionalize with it.
22902 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
22903 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
22904 New functions.
22905
229062007-08-06 Chong Yidong <cyd@stupidchicken.com>
22907
22908 * xdisp.c (redisplay_window): When restoring original buffer
22909 position, make sure it is still valid.
22910
22911 * image.c (png_load): Ignore png-supplied background color.
22912
229132007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22914
22915 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
22916 Use kCFAbsoluteTimeIntervalSince1970.
22917
22918 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
22919 New variable.
22920 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
22921 event loop should be quit.
22922 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
22923 Quit dialog event loop if quit_dialog_event_loop is set.
22924
22925 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
22926 (Selection): New typedef. Use instead of ScrapRef.
22927 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
22928 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
22929 (mac_clear_selection): Rename from clear_scrap.
22930 (get_flavor_type_from_symbol): New argument SEL and subsume function of
22931 scrap_has_target_type. All uses changed.
22932 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
22933 (mac_selection_has_target_p): New functions.
22934 (mac_put_selection_value): Rename from put_scrap_string.
22935 (mac_get_selection_value): Rename from get_scrap_string.
22936 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
22937 (put_scrap_private_timestamp, scrap_has_target_type)
22938 (get_scrap_private_timestamp): Remove functions.
22939 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
22940 (x_own_selection, x_get_local_selection):
22941 Use mac_valid_selection_value_p.
22942 (x_own_selection): Don't use put_scrap_private_timestamp.
22943 Record OWNERSHIP-INFO into Vselection_alist instead.
22944 (x_get_local_selection): Don't check type if request is local.
22945 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
22946 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
22947
229482007-08-04 Jan Djärv <jan.h.d@swipnet.se>
22949
22950 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
22951 add comment explaining why.
22952
229532007-08-03 Richard Stallman <rms@gnu.org>
22954
22955 * fileio.c (Fvisited_file_modtime): Use make_time.
22956
229572007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
22958
22959 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
22960 build.
22961
229622007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
22963
22964 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
22965
229662007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
22967
22968 * puresize.h (BASE_PURESIZE): Increase to 1130000.
22969
229702007-07-30 Richard Stallman <rms@gnu.org>
22971
22972 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
22973
229742007-07-29 Jan Djärv <jan.h.d@swipnet.se>
22975
22976 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
22977
229782007-07-28 Nick Roberts <nickrob@snap.net.nz>
22979
22980 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
22981 remote default-directory.
22982
22983 * buffer.c (mode-line-format): Update doc string.
22984
229852007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22986
22987 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
22988 scroll bar gap.
22989 (x_scroll_bar_create): Set bar->fringe_extended_p.
22990 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
22991 on frame edge. Check fringe background extension. Don't clear
22992 extended fringe background area.
22993
22994 * w32term.h (struct scroll_bar): New member fringe_extended_p.
22995 (w32_fill_area): Enclose multiple statements with do ... while (0).
22996
22997 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
22998 Extend fringe background to scroll bar gap.
22999 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
23000 Set bar->fringe_extended_p.
23001 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
23002 Put leftmost/rightmost scroll bars on frame edge. Check fringe
23003 background extension. Don't clear extended fringe background area.
23004
23005 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
23006 New member fringe_extended_p.
23007
230082007-07-25 Glenn Morris <rgm@gnu.org>
23009
23010 * Relicense all FSF files to GPLv3 or later.
23011
23012 * COPYING: Switch to GPLv3.
23013
230142007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
23015
23016 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
23017
23018 * data.c (Finteractive_form): Check for the presence of an
23019 `interactive-form' symbol property more thoroughly.
23020
23021 * data.c (Finteractive_form): Use an `interactive-form' property if
23022 present, analogous to the function-documentation property.
23023
230242007-07-24 Jason Rumney <jasonr@gnu.org>
23025
23026 * w32fns.c (x_real_positions): Get real position from OS instead of
23027 calculating it.
23028
230292007-07-23 Jason Rumney <jasonr@gnu.org>
23030
23031 * filelock.c (current_lock_owner): Allow for @ sign in username.
23032
230332007-07-22 Nick Roberts <nickrob@snap.net.nz>
23034
23035 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
23036 remote default-directory.
23037
23038 * buffer.c (mode-line-format): Describe above case in doc string.
23039
230402007-07-20 Eli Zaretskii <eliz@gnu.org>
23041
23042 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
23043 Define if not defined.
23044
230452007-07-18 Jason Rumney <jasonr@gnu.org>
23046
23047 * w32proc.c (w32_executable_type): Handle 64 bit executables.
23048
230492007-07-18 Richard Stallman <rms@gnu.org>
23050
23051 * data.c (Fsetq_default): Doc fix.
23052
23053 * eval.c (Fsetq): Doc fix.
23054
230552007-07-18 Juanma Barranquero <lekktu@gmail.com>
23056
23057 * coding.c (Ffind_operation_coding_system):
23058 * eval.c (For, Fand): Doc fixes.
23059 Reported by Johan Bockgård.
23060
230612007-07-18 Jan Djärv <jan.h.d@swipnet.se>
23062
23063 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
23064
23065 * xterm.h: Declare x_ewmh_activate_frame.
23066
23067 * xterm.c (x_ewmh_activate_frame): New function.
23068 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
23069
230702007-07-17 Martin Rudalics <rudalics@gmx.at>
23071
23072 * window.c (Fdisplay_buffer): If largest or LRU window is the
23073 only window, split it even if it is not eligible for splitting.
23074 This restores the original behavior broken by the 2007-07-15
23075 change.
23076
230772007-07-17 Glenn Morris <rgm@gnu.org>
23078
23079 * abbrev.c (abbrev_check_chars): New function.
23080 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
23081 Call abbrev_check_chars to check abbrev characters are word
23082 constituents. Doc fix.
23083
230842007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
23085
23086 * process.c (Fstart_process, Fmake_network_process)
23087 (read_process_output): Fix up last changes.
23088
230892007-07-16 Eli Zaretskii <eliz@gnu.org>
23090
23091 * makefile.w32-in (clean): Don't delete *~.
23092
230932007-07-16 Andreas Schwab <schwab@suse.de>
23094
23095 * window.c (Fdisplay_buffer): Use NILP.
23096 (Fset_window_scroll_bars): Likewise.
23097
230982007-07-15 Martin Rudalics <rudalics@gmx.at>
23099
23100 * window.c (window_min_size_2): New function.
23101 (window_min_size_1, size_window, Fdisplay_buffer)
23102 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
23103 windows without mode- or header-lines when window-min-height is
23104 too small.
23105 (size_window): Reset nodelete_p after testing it, following an
23106 earlier note by Kim F. Storm.
23107 (display_buffer): Do not set split_height_threshold to twice the
23108 value of window_min_height to avoid changing the value of a
23109 customizable variable. Rather explicitly check whether the
23110 height of the window that shall be splitted is at least as large
23111 as split_height_threshold.
23112 (Fwindow_full_width_p): New defun.
23113 (syms_of_window): Defsubr it.
23114
23115 * window.h: Add EXFUN for Fwindow_full_width_p.
23116
231172007-07-14 Jason Rumney <jasonr@gnu.org>
23118
23119 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
23120
231212007-07-14 Richard Stallman <rms@gnu.org>
23122
23123 * eval.c (maybe_call_debugger): New function.
23124 (find_handler_clause): Use maybe_call_debugger.
23125 Call it when the handler says `debug'.
23126 Eliminate DEBUGGER_VALUE_PTR.
23127 (Fsignal): Eliminate debugger_value.
23128 (Qdebug): New variable.
23129 (syms_of_eval): Initialize it.
23130
231312007-07-14 Juanma Barranquero <lekktu@gmail.com>
23132
23133 * eval.c (Fprogn):
23134 * keyboard.c (Ftrack_mouse):
23135 * print.c (Fwith_output_to_temp_buffer):
23136 * window.c (Fsave_window_excursion): Doc fix.
23137
231382007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
23139
23140 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
23141
231422007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
23143
23144 * process.h (struct Lisp_Process): Turn slots infd, outfd,
23145 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
23146 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
23147 read_output_delay, and read_output_skip from Lisp_Objects to ints.
23148 Remove unused encoding_carryover.
23149 * process.c: Adjust all functions accordingly.
23150
231512007-07-12 Richard Stallman <rms@gnu.org>
23152
23153 * term.c: Include unistd.h only if HAVE_UNISTD_H.
23154
231552007-07-11 Jason Rumney <jasonr@gnu.org>
23156
23157 * makefile.w32-in (LIBS): Include OLE32.
23158
23159 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
23160 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
23161
231622007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
23163
23164 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
23165 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
23166 from a Lisp_Object into a bare pointer.
23167 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
23168 Adjust the code correspondingly.
23169
23170 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
23171
23172 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
23173 (term_show_mouse_face): Remove unused var `j'.
23174 (handle_one_term_event): Remove unused vars `i' and `j'.
23175 Don't cast return value of ttyname since it's not necessary.
23176
231772007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
23178
23179 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
23180 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
23181
23182 * fns.c (map_char_table): Use an array of int for `indices' rather than
23183 an array of Lisp_Objects (which are only ever integers anyway).
23184 (Fmap_char_table): Update caller.
23185 * lisp.h: Update prototype.
23186 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
23187 * fontset.c (Ffontset_info):
23188 * casetab.c (set_case_table): Update callers.
23189
23190 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
23191
23192 * keymap.c (struct accessible_keymaps_data)
23193 (struct where_is_internal_data): New structures.
23194 (accessible_keymaps_1, where_is_internal_1): Use them to change
23195 interface to adhere to the one used by map_keymap.
23196 (Faccessible_keymaps, where_is_internal): Use map_keymap.
23197 (accessible_keymaps_char_table, where_is_internal_2): Remove.
23198
23199 * keymap.h (map_keymap_function_t): More informative prototype.
23200
232012007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
23202
23203 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
23204 (looking_at_1): Don't change search_regs and last_thing_searched
23205 if `inhibit-changing-match-data' is non-nil.
23206 (string_match_1, search_buffer, set_search_regs): Likewise.
23207 (syms_of_search): Add Lisp level definition for
23208 `inhibit-changing-match-data' and set it to nil.
23209 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
23210 start and end of the match, instead of using values in search_regs.
23211
232122007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
23213
23214 * minibuf.c (Fcompleting_read): New value `confirm-only'
23215 for `require-match'.
23216
232172007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
23218
23219 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
23220 part of the 2007-06-27 change to syms_of_fileio.
23221
232222007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23223
23224 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
23225 Check WINDOWP before using XWINDOW. Consolidate return statements.
23226
232272007-06-27 Richard Stallman <rms@gnu.org>
23228
23229 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
23230
232312007-06-27 Juanma Barranquero <lekktu@gmail.com>
23232
23233 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
23234
232352007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23236
23237 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
23238 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
23239 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
23240 (_free_internal, memalign): Use them.
23241 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
23242 Initialize to PTHREAD_MUTEX_INITIALIZER.
23243 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
23244 (morecore_nolock): Rename from morecore. All uses changed.
23245 Use only nolock versions of internal allocation functions.
23246 (_malloc_internal_nolock, _realloc_internal_nolock)
23247 (_free_internal_nolock): New functions created from
23248 _malloc_internal, _realloc_internal, and _free_internal.
23249 (_malloc_internal, _realloc_internal, _free_internal): Use them.
23250 Copy hook value to automatic variable before its use.
23251 (memalign): Copy hook value to automatic variable before its use.
23252
232532007-06-26 Kenichi Handa <handa@m17n.org>
23254
23255 * coding.c (Ffind_operation_coding_system): Docstring improved.
23256 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
23257
232582007-06-25 David Kastrup <dak@gnu.org>
23259
23260 * keymap.c (Fcurrent_active_maps): Add `position' argument.
23261 (Fwhere_is_internal): Adjust call to `current-active-maps' to
23262 cater for additional parameter.
23263
23264 * keymap.h: Adjust number of parameters to `current-active-maps'.
23265
23266 * doc.c (Fsubstitute_command_keys): Adjust call of
23267 `current-active-maps'.
23268
232692007-06-25 David Kastrup <dak@gnu.org>
23270
23271 * callint.c (Fcall_interactively): Make the parsing of interactive
23272 specs somewhat more readable.
23273
232742007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23275
23276 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
23277 to scroll bar gap also when bitmap fills fringe. Draw only foreground
23278 if extended background has already been filled.
23279
232802007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23281
23282 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
23283 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
23284
23285 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
23286 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
23287 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
23288 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
23289 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
23290 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
23291 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
23292 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
23293 Run timers during dialog popup.
23294 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
23295
232962007-06-21 Jason Rumney <jasonr@gnu.org>
23297
23298 * image.c (convert_mono_to_color_image): Swap fore and background.
23299
233002007-06-20 Jason Rumney <jasonr@gnu.org>
23301
23302 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
23303 (w32_free_bdf_font): Unmap memory not handle.
23304
233052007-06-20 Sam Steingold <sds@gnu.org>
23306
23307 * gmalloc.c (__morecore): Fix the declaration to comply with the
23308 definition.
23309
233102007-06-20 Juanma Barranquero <lekktu@gmail.com>
23311
23312 * w32term.c (w32_delete_display): Remove leftover declaration.
23313 (w32_define_cursor, w32_initialize): Make static.
23314
23315 * w32.c (_wsa_errlist): Fix typo in error message.
23316 (init_environment): Ignore any environment variable from the
23317 registry having a null value.
23318
233192007-06-20 Glenn Morris <rgm@gnu.org>
23320
23321 * Makefile.in (LIBGIF): Default to -lgif.
23322
233232007-06-17 Jason Rumney <jasonr@gnu.org>
23324
23325 * w32menu.c (add_menu_item): Don't use multibyte string functions on
23326 unicode strings.
23327
233282007-06-16 Juanma Barranquero <lekktu@gmail.com>
23329
23330 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
23331 Fix typo in docstring.
23332
233332007-06-16 Eli Zaretskii <eliz@gnu.org>
23334
23335 * w32menu.c (add_menu_item): Escape `&' characters in menu items
23336 and their keybindings.
23337
233382007-06-15 Chong Yidong <cyd@stupidchicken.com>
23339
23340 * composite.c (update_compositions): Fix last fix.
23341
233422007-06-14 Jason Rumney <jasonr@gnu.org>
23343
23344 * w32.c (get_process_times_fn): New function pointer.
23345 (globals_of_w32): Intialize it if present in kernel32.dll.
23346 (w32_get_internal_run_time): New function.
23347
23348 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
23349
233502007-06-14 Kenichi Handa <handa@etlken.m17n.org>
23351
23352 * composite.c (update_compositions): Check the validness of
23353 compositions.
23354
233552007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23356
23357 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
23358 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
23359
23360 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
23361 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
23362
23363 * macgui.h (USE_MAC_TOOLBAR): New define.
23364
23365 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
23366 Return immediately unless popup is activated.
23367
23368 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
23369 background to scroll bar gap.
23370 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
23371 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
23372 scroll bars on frame edge. Check fringe background extension.
23373 Don't clear extended fringe background area.
23374 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
23375 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
23376 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
23377 [USE_MAC_TOOLBAR]: New macros.
23378 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
23379 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
23380 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
23381 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
23382 [USE_MAC_TOOLBAR]: New functions.
23383 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
23384 manually if previous repositioning has failed.
23385 (mac_handle_keyboard_event): Use precomputed event kind.
23386 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
23387 as tool bar item click. Handle mouse movement over tool bar items.
23388
23389 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
23390 toolbar_win_gravity.
23391 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
23392 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
23393 Add externs.
23394
23395 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
23396 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
23397
233982007-06-14 Chong Yidong <cyd@stupidchicken.com>
23399
23400 * image.c (search_image_cache): Remove unused variable.
23401
234022007-06-13 Chong Yidong <cyd@stupidchicken.com>
23403
23404 * xfns.c, xmenu.c: Link to xaw3d if available.
23405
234062007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23407
23408 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
23409 frame_foreground and frame_background.
23410
23411 * image.c (lookup_image): Save frame foreground and background colors.
23412 (search_image_cache): Check if saved and current frame colors match.
23413
234142007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
23415
23416 * regex.c (regex_compile): Remove the `regnum' counter.
23417 Use bufp->re_nsub instead. Add support for \(?N:RE\).
23418
234192007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
23420
23421 * term.c: Include intervals.h to declare Fget_text_property.
23422
234232007-06-10 Jason Rumney <jasonr@gnu.org>
23424
23425 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
23426
234272007-06-08 Juanma Barranquero <lekktu@gmail.com>
23428
23429 * callint.c (Fcall_interactively):
23430 * editfns.c (Fdelete_and_extract_region):
23431 * fileio.c (Fread_file_name):
23432 * fns.c (Fmapconcat):
23433 * keyboard.c (cmd_error_internal):
23434 * keymap.c (Fkey_description):
23435 * lread.c (openp):
23436 * minibuf.c (read_minibuf):
23437 * search.c (wordify):
23438 * sunfns.c (sel_read):
23439 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
23440 * xfns.c (x_default_scroll_bar_color_parameter):
23441 * xmenu.c (menu_help_callback):
23442 * xselect.c (Fx_get_atom_name):
23443 * xterm.c (x_term_init): Use empty_unibyte_string.
23444
234452007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
23446
23447 * alloc.c (init_strings): Initialize canonical empty strings.
23448 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
23449 canonical empty string when the requested size is 0.
23450
23451 * emacs.c (empty_unibyte_string): Rename from empty_string.
23452 (empty_multibyte_string): New canonical empty string.
23453 (syms_of_emacs): Don't initialize empty_string.
23454
23455 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
23456 string, if appropriate.
23457 (empty_unibyte_string, empty_multibyte_string): New externs.
23458 (empty_string): Remove extern.
23459
23460 * lread.c (syms_of_lread): Use empty_unibyte_string.
23461
234622007-06-07 Jason Rumney <jasonr@gnu.org>
23463
23464 * s/ms-w32.h: Don't define HAVE_TZNAME.
23465
23466 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
23467
234682007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23469
23470 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
23471
23472 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
23473 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
23474
23475 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
23476 Don't call next handler.
23477 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
23478 Remove argument. Install handler to application.
23479 (set_frame_menubar): Don't change deep_p.
23480 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
23481 FRAME_OUTER_TO_INNER_DIFF_Y.
23482 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
23483 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
23484 [HAVE_DIALOGS]: New macros.
23485 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
23486 Use them.
23487 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
23488
23489 * macselect.c [MAC_OSX] (install_service_handler): Rename from
23490 init_service_handler. All callers changed. Return OSStatus value.
23491
23492 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
23493 All callers changed so as not to call SetPortWindowPort.
23494 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
23495 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
23496 mac_draw_string_common.
23497 (mac_draw_image_string_qd): Likewise.
23498 (mac_draw_string_common): Use them. Add INLINE.
23499 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
23500 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
23501 GetGlobalMouse.
23502 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
23503 and FRAME_OUTER_TO_INNER_DIFF_Y.
23504 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
23505 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
23506 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
23507 repositioning window to mac_handle_window_event.
23508 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
23509 saving window location to mac_handle_window_event
23510 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
23511 (install_menu_target_item_handler): Remove argument in extern.
23512 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
23513 Also accept command events.
23514 (do_keystroke): New function created from XTread_socket.
23515 (init_command_handler): Remove functions.
23516 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
23517 and save window location by kEventWindowShowing and kEventWindowHiding
23518 handlers here. Don't call next handler for window state change and
23519 focus events.
23520 (mac_handle_application_event, mac_handle_keyboard_event)
23521 [TARGET_API_MAC_CARBON]: New functions.
23522 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
23523 kEventWindowShowing and kEventWindowHiding events. Move installation
23524 of mouse, font, text input and menu target item handlers to
23525 install_application_handler.
23526 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
23527 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
23528 New function.
23529 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
23530 Register it.
23531 (XTread_socket) [TARGET_API_MAC_CARBON]:
23532 Consolidate SendEventToEventTarget calls.
23533 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
23534 Move application activation handler to mac_handle_application_event.
23535 Move keyboard handler to mac_handle_keyboard_event.
23536 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
23537 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
23538 init_command_handler. Call install_application_handler.
23539
23540 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
23541 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
23542
235432007-06-07 Glenn Morris <rgm@gnu.org>
23544
23545 * emacs.c (main): Use `emacs-copyright' in --version output.
23546
235472007-06-06 Chong Yidong <cyd@stupidchicken.com>
23548
23549 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
23550
235512007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23552
23553 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
23554
23555 * macgui.h: Replace WindowPtr with WindowRef.
23556
23557 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
23558 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
23559 Replace ControlHandle with ControlRef.
23560 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
23561
23562 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
23563 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
23564 Replace ControlHandle with ControlRef.
23565 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
23566 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
23567
23568 * macterm.h (struct scroll_bar): Rename member control_handle_low
23569 and control_handle_high to control_ref_low and control_ref_high.
23570 All uses changed.
23571 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
23572 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
23573 respectively. All uses changed.
23574 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
23575 (install_window_handler, remove_window_handler): Replace WindowPtr
23576 with WindowRef in externs.
23577
235782007-06-05 Juanma Barranquero <lekktu@gmail.com>
23579
23580 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
23581
235822007-06-03 Nick Roberts <nickrob@snap.net.nz>
23583
23584 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
23585
23586 * frame.c (Fmouse_position, Fmouse_pixel_position):
23587 Condition on HAVE_GPM too.
23588
23589 * term.c (term_mouse_highlight): Remove unused variables.
23590 (Fterm_open_connection): Set gpm_zerobased to 1.
23591 (term_mouse_movement, term_mouse_click, handle_one_term_event):
23592 Use zero based co-ordinates.
23593 (handle_one_term_event): Report a drag as mouse movement too.
23594
23595 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
23596
235972007-06-03 Chong Yidong <cyd@stupidchicken.com>
23598
23599 * image.c (search_image_cache): New function. Require background
23600 color match if background color is unspecified in the image spec.
23601 (uncache_image, lookup_image): Use it.
23602
236032007-06-01 Juanma Barranquero <lekktu@gmail.com>
23604
23605 * window.c (Fshrink_window): Reflow docstring.
23606
236072007-06-02 Chong Yidong <cyd@stupidchicken.com>
23608
23609 * Version 22.1 released.
23610
236112007-06-01 Richard Stallman <rms@gnu.org>
23612
23613 * xfns.c (x_encode_text): Add GCPRO.
23614
236152007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23616
23617 * xfns.c (x_set_name_internal): Save encoded name before
23618 x_encode_text in case string data is relocated.
23619
236202007-05-31 Richard Stallman <rms@gnu.org>
23621
23622 * buffer.c (syms_of_buffer): Doc fix.
23623
236242007-05-30 Nick Roberts <nickrob@snap.net.nz>
23625
23626 * sysdep.c (init_sys_modes): Add rather than replace with
23627 O_NONBLOCK.
23628
23629 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
23630 term_mouse_moveto.
23631
23632 * termhooks.h (term_mouse_moveto): New extern.
23633
23634 * term.c (mouse_face_window): Rename...
23635 (Qmouse_face_window): ...to this.
23636 (term_show_mouse_face, term_clear_mouse_face)
23637 (term_mouse_highlight): Use Qmouse_face_window.
23638 (term_mouse_moveto): New function.
23639 (term_mouse_position): Make it work.
23640 (syms_of_term): Uncomment assignment to mouse_position_hook.
23641 Staticpro Qmouse_face_window.
23642
236432007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23644
23645 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
23646 around current_column call.
23647
236482007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
23649
23650 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
23651 * xdisp.c (next_element_from_buffer):
23652 * window.c (delete_window):
23653 * term.c (term_mouse_highlight):
23654 * msdos.c (getdefdir):
23655 * macterm.c (mac_create_bitmap_from_bitmap_data)
23656 (init_font_name_table):
23657 * fns.c (Fsxhash):
23658 * data.c (Fmake_local_variable):
23659 * ccl.c (ccl_driver): Likewise.
23660
236612007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23662
23663 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
23664 Call mac_wakeup_from_rne on window size change.
23665
236662007-05-25 Chong Yidong <cyd@stupidchicken.com>
23667
23668 * image.c (uncache_image): Fix typo.
23669
236702007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
23671
23672 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
23673
236742007-05-22 Richard Stallman <rms@gnu.org>
23675
23676 * xterm.c (x_connection_closed): Remove NO_RETURN.
23677
236782007-05-22 Martin Rudalics <rudalics@gmx.at>
23679
23680 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
23681
236822007-05-21 Chong Yidong <cyd@stupidchicken.com>
23683
23684 * image.c (uncache_image): New function.
23685 (Fimage_refresh): New function.
23686
236872007-05-20 Jan Djärv <jan.h.d@swipnet.se>
23688
23689 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
23690
236912007-05-20 Nick Roberts <nickrob@snap.net.nz>
23692
23693 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
23694 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
23695
236962007-05-20 Nick Roberts <nickrob@snap.net.nz>
23697
23698 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
23699 conditional on [HAVE_GPM_H].
23700
237012007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
23702
23703 * syntax.c (skip_chars): Update syntax-table only after we checked that
23704 the new location is valid.
23705
237062007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23707
23708 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
23709 mac_get_window_bounds.
23710
237112007-05-20 Nick Roberts <nickrob@snap.net.nz>
23712
23713 * Makefile.in (LIBGPM): Allow it to be set from configure.
23714 If set then link Emacs with it.
23715
23716 * config.in: Regenerate.
23717
23718 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
23719 New externs.
23720
23721 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
23722 Include gpm.h.
23723 (handle_one_term_event, term_gpm): New externs.
23724
23725 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
23726 and allow it to be interrupted by SIGIO.
23727
23728 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
23729 (wait_reading_process_output): Wait on gpm_fd too.
23730 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
23731 (add_gpm_wait_descriptor_called_flag): New variable.
23732 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
23733
23734 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
23735 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
23736 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
23737 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
23738 (make_lispy_event): Add case GPM_CLICK_EVENT.
23739 (read_avail_input): Handle mouse input.
23740
23741 * term.c (write_glyphs_with_face): New function.
23742 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
23743 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
23744 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
23745 (mouse_face_face_id, term_gpm, pos_x, pos_y)
23746 (last_mouse_x, last_mouse_y): New variables.
23747 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
23748 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
23749 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
23750 (Fterm_close_connection): New functions.
23751 (term_init): Initialise mouse_face_window.
23752
237532007-05-19 Chong Yidong <cyd@stupidchicken.com>
23754
23755 * xdisp.c (redisplay_window): If first window line is a
23756 continuation line, recompute the new window start instead of
23757 recentering.
23758
237592007-05-18 Glenn Morris <rgm@gnu.org>
23760
23761 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
23762 Suggested by Alfred M. Szmidt <ams@gnu.org>.
23763
237642007-05-17 Glenn Morris <rgm@gnu.org>
23765
23766 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
23767
237682007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23769
23770 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
23771 dead key repeat and up events.
23772
237732007-05-14 Chong Yidong <cyd@stupidchicken.com>
23774
23775 * image.c (pbm_load): Check image size for monochrome pbm.
23776
237772007-05-13 Chong Yidong <cyd@stupidchicken.com>
23778
23779 * xterm.c (XTread_socket): Revert last change.
23780
237812007-05-12 Chong Yidong <cyd@stupidchicken.com>
23782
23783 * image.c (pbm_load): Correctly check image size for greyscale pbm.
23784
23785 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
23786
237872007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
23788
23789 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
23790 mixup (YAILOM).
23791
237922007-05-07 Andreas Schwab <schwab@suse.de>
23793
23794 * keymap.c (Flookup_key): Fix typo in last change.
23795
237962007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
23797
23798 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
23799 mapping for unibyte strings.
23800
238012007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23802
23803 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
23804 (Fx_popup_dialog) [MAC_OSX]: Likewise.
23805
238062007-04-29 Richard Stallman <rms@gnu.org>
23807
23808 * insdel.c (replace_range): For undo, record insertion first.
23809
238102007-04-29 Andreas Schwab <schwab@suse.de>
23811
23812 * lisp.h (VECSIZE): Use OFFSETOF.
23813
238142007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23815
23816 * xdisp.c (try_window_reusing_current_matrix): Fix number of
23817 disabled lines.
23818
238192007-04-28 Richard Stallman <rms@gnu.org>
23820
23821 * lread.c (read_escape): In a string, \s is always space.
23822
238232007-04-27 Jan Djärv <jan.h.d@swipnet.se>
23824
23825 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
23826
23827 * gtkutil.c (xg_update_menubar, create_menus): Create empty
23828 submenu for menu bar items.
23829
23830See ChangeLog.10 for earlier changes.
23831
23832;; Local Variables:
23833;; coding: utf-8
23834;; add-log-time-zone-rule: t
aac0c6e3
MR
23835;; End:
23836
e3eb1dae 23837 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
23838
23839 This file is part of GNU Emacs.
23840
23841 GNU Emacs is free software: you can redistribute it and/or modify
23842 it under the terms of the GNU General Public License as published by
23843 the Free Software Foundation, either version 3 of the License, or
23844 (at your option) any later version.
23845
23846 GNU Emacs is distributed in the hope that it will be useful,
23847 but WITHOUT ANY WARRANTY; without even the implied warranty of
23848 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23849 GNU General Public License for more details.
23850
23851 You should have received a copy of the GNU General Public License
23852 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
23853
23854;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40