*** empty log message ***
[bpt/emacs.git] / src / ChangeLog
CommitLineData
6e5cb96f
DN
12008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
2
3 * lisp.h:
4 * w32heap.c:
5 * emacs.c:
6 * alloc.c: Replace all references of NO_UNION_TYPE with
7 USE_LISP_UNION_TYPE.
8
9 * m/xtensa.h (NO_UNION_TYPE):
10 * m/vax.h (NO_UNION_TYPE):
11 * m/template.h (NO_UNION_TYPE):
12 * m/sparc.h (NO_UNION_TYPE):
13 * m/mips.h (NO_UNION_TYPE):
14 * m/macppc.h (NO_UNION_TYPE):
15 * m/m68k.h (NO_UNION_TYPE):
16 * m/iris4d.h (NO_UNION_TYPE):
17 * m/intel386.h (NO_UNION_TYPE):
18 * m/ibms390x.h (NO_UNION_TYPE):
19 * m/ibms390.h (NO_UNION_TYPE):
20 * m/ibmrs6000.h (NO_UNION_TYPE):
21 * m/ia64.h (NO_UNION_TYPE):
22 * m/hp800.h (NO_UNION_TYPE):
23 * m/arm.h (NO_UNION_TYPE):
24 * m/amdx86-64.h (NO_UNION_TYPE):
25 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
26 defining it the same.
27
e0f47a68
CY
282008-07-10 Chong Yidong <cyd@stupidchicken.com>
29
30 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped
31 line.
32
c5e7567d
DN
332008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
34
35 * src/fileio.c:
36 * src/sysdep.c
37 * src/systty.h:
38 * src/m/ibmrs6000.h:
39 * src/m/iris4d.h:
40 * src/s/aix4-2.h:
41 * src/s/freebsd.h:
42 * src/s/gnu-linux.h:
43 * src/s/hpux10-20.h:
44 * src/s/hpux11.h:
45 * src/s/netbsd.h:
46 * src/s/sol2-3.h:
47 * src/s/sol2-4.h:
48 * src/s/sol2.h:
49 * src/s/usg5-4.h:
50 * src/s/vms.h: Remove references to unused variables.
51
bb658864
AS
522008-07-10 Andreas Schwab <schwab@suse.de>
53
54 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
55 pattern before matching the generic family.
56
3d3db608
DN
572008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
58
a0ce9ab7 59 * unexec.c:
3460e0b9
DN
60 * s/vms.h:
61 * s/usg5-4-2.h:
62 * s/sol2-5.h:
63 * s/freebsd.h:
64 * s/darwin.h: Remove dead code.
65
ad76189a
DN
66 * m/template.h:
67 * m/sparc.h:
68 * m/mips.h:
69 * m/m68k.h:
70 * m/iris4d.h:
71 * m/intel386.h:
72 * m/ibms390x.h:
73 * m/ibms390.h:
74 * m/ia64.h:
75 * m/hp800.h:
76 * m/arm.h:
77 * m/amdx86-64.h: Remove dead code and references to unused
78 and compiler defined symbols.
79
d2b5bbda
DN
80 * unexmips.c:
81 * unexelf.c: Remove references to desupported systems.
82
40dde9d1
DN
83 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
84
21133394
DN
85 * m/powermac.h: Remove boilerplate comments.
86 (NO_REMAP): Remove unused definition.
87
3d3db608
DN
88 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
89 define them.
90
c8e0e16d
KH
912008-07-10 Kenichi Handa <handa@m17n.org>
92
93 * xfont.c (xfont_open): Log the reason of failure.
94
3cba9369
SM
952008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
96
97 * fontset.c (fontset_get_font_group):
98 * font.c (font_check_otf): Specify argument types.
99
73353585
KH
1002008-07-09 Kenichi Handa <handa@m17n.org>
101
0e17387a
KH
102 * coding.c (detect_coding_utf_8): Set detect_info->found only when
103 non-ASCII char is found.
104
73353585
KH
105 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
106 (reorder_font_vector): Change the arg preferred_family to font.
107 Prefer the spec matching with font.
108 (fontset_get_font_group): New function.
109 (fontset_find_font): Change the format of an element of a realized
110 fontset. Use fontset_get_font_group.
111 (fontset_font): Try the current fontset, the default fontset, the
112 fallbacks of the current fonset, and the fallbacks of the default
113 fontset in this order.
114 (face_for_char): Delete the shortcut to use the current font.
115 (fontset_from_font): Don't set fonts for Latin in the fontset.
116
117 * font.h (font_make_object, font_match_p): Adjust prototypes.
118
119 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
120
121 * font.c (font_make_object): New arg entity and pixelsize.
122 (font_check_otf_features, font_check_otf): New functions.
123 (font_match_p): Check :lang, :script, and :otf properties.
124
125 * xfont.c (xfont_open): Adjust it for the change of
126 font_make_object.
e5d05978 127 (xfont_text_extents): Fix initial setting of metrics.
73353585
KH
128
129 * ftfont.c (struct ftfont_info): New member index, delete member
130 fc_charset_idx. Make the member order compatible with struct
131 xftfont_info.
132 (fc_charset_table): Change charset names to registry names.
133 (ftfont_pattern_entity): Delete the args registry and
134 fc_charset_idx. Change the value of :font-entity property
135 to (FONTNAME . INDEX). Always set :registry property to
136 `iso10646-1'.
137 (struct ftfont_cache_data): New struct.
138 (ftfont_lookup_cache): New arg for_face.
139 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
140 (ftfont_driver): Set the member otf_capability.
141 (ftfont_get_charset): Adjust it for the change of
142 fc_charset_table.
143 (OTF_TAG_SYM): New macro.
144 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
145 for the change of fc_charset_table.
146 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
147 ftfont_pattern_entity. Add FC_INDEX to objset.
148 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
149 and ftfont_pattern_entity.
150 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
151 font_make_object, struct ftfont_info.
152 (ftfont_has_char): Use ftfont_get_fc_charset.
153 (ftfont_otf_features, ftfont_otf_capability): New functions.
154 (ftfont_shape): Use ftfont_get_otf.
e5d05978 155 (ftfont_text_extents): Fix initial setting of metrics.
73353585
KH
156
157 * xftfont.c (struct xftfont_info): New member ft_size. Make the
158 member order compatible with struct ftfont_info.
159 (xftfont_open): Add FC_CHARSET to the pattern. Set
160 xftfont_info->ft_size. Don't unlock the face. Check BDF
161 properties if appropriate.
162 (xftfont_close): Unlock the face.
163 (xftfont_anchor_point, xftfont_shape): Deleted.
164 (syms_of_xftfont): Don't set members anchor_point and shape of
165 xftfont_driver.
166
167 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
168 font_make_object.
169
170 * w32font.c (w32font_open): Adjust it for the change of
171 font_make_object.
172 (w32font_open_internal): Don't set properties of font_object here.
173
7f000038
CY
1742008-07-08 Chong Yidong <cyd@stupidchicken.com>
175
830aab93
CY
176 * macfns.c (x_create_tip_frame):
177 * w32fns.c (x_create_tip_frame):
178 * xfns.c (x_create_tip_frame): Pass parameter argument to
179 face-set-after-frame-default.
180
7f000038
CY
181 * xfaces.c (Finternal_merge_in_global_face): Save merged
182 attributes for the default face back into the face vector.
183
85cf8992
AS
1842008-07-08 Andreas Schwab <schwab@suse.de>
185
186 * fontset.h: Declare fontset_from_font. Don't declare
187 new_fontset_from_font and fontset_from_font_name.
188 * xterm.c: Include "fontset.h".
189 * Makefile.in (xterm.o): Update dependencies.
190
4a00783e
GM
1912008-07-08 Glenn Morris <rgm@gnu.org>
192
193 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
194 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
195
4d2d5f5f
CY
1962008-07-07 Chong Yidong <cyd@stupidchicken.com>
197
198 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
199 (x_set_frame_parameters): Don't bind it.
200
dfe66c5b
JB
2012008-07-07 Juanma Barranquero <lekktu@gmail.com>
202
203 * w32fns.c (map_w32_filename): Declare extern.
204
ec7e221c
JR
2052008-07-07 Jason Rumney <jasonr@gnu.org>
206
dfe66c5b 207 * w32term.c (WS_EX_LAYERED): Define if not already.
ec7e221c 208
fe5d61c4
CY
2092008-07-06 Chong Yidong <cyd@stupidchicken.com>
210
211 * xfaces.c (set_font_frame_param): Don't try to set the font
212 parameter if it is still unspecified in the lface.
213
9204cb8b
CY
2142008-07-05 Chong Yidong <cyd@stupidchicken.com>
215
0a143d3a
CY
216 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
217 face if it didn't already exist.
218
9204cb8b
CY
219 * xdisp.c (try_window_id): Give up if word-wrapping is on.
220
6c95e70d
AS
2212008-07-05 Andreas Schwab <schwab@suse.de>
222
dfe66c5b 223 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
6c95e70d 224
59230395
CY
2252008-07-05 Chong Yidong <cyd@stupidchicken.com>
226
227 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
228 word-wrapping.
229 (IT_DISPLAYING_WHITESPACE): New macro.
230 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
231 when word-wrapping. Simplify word-wrapping logic. Use correct
232 pixel positions when saving copies of the iterator.
233 (display_line): Use proper wrap point if the last character on a
234 line was preceded by whitespace.
235
d7c664f3
SM
2362008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
237
238 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
239
9ffc8a3a
KH
2402008-07-04 Kenichi Handa <handa@m17n.org>
241
242 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
243
244 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
245
946598bf
JR
2462008-07-02 Jason Rumney <jasonr@gnu.org>
247
d7c664f3
SM
248 * xfns.c (syms_of_xfns): Only define x-select-font when both
249 HAVE_FREETYPE and USE_GTK
946598bf 250
d7c664f3
SM
251 * xdisp.c (next_element_from_display_vector): Move assignment out
252 of if statement.
946598bf 253
6cf29fe8
JR
2542008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
255
d7c664f3 256 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
6cf29fe8 257
d7c664f3
SM
258 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
259 (syms_of_fileio): Initialize and export them.
260 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
6cf29fe8 261
d7c664f3
SM
262 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
263 (Fsystem_move_file_to_trash): New function.
264 (syms_of_w32fns): Export it to lisp.
6cf29fe8 265
79ca7db1
JR
2662008-07-01 Jason Rumney <jasonr@gnu.org>
267
d7c664f3
SM
268 * w32font.c (w32font_text_extents): Don't count overhang as part
269 of width.
79ca7db1 270
c2786a3d 2712008-06-30 Miles Bader <miles@gnu.org>
c4f4682b
MB
272
273 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
274 Add `avoid_cursor_p' field.
275
276 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
277 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
278 (append_glyph, append_composite_glyph, produce_image_glyph)
c2786a3d
JB
279 (append_stretch_glyph): Initialize avoid_cursor_p.
280 (get_it_property): Rename from `get_line_height_property'.
c4f4682b
MB
281 (x_produce_glyphs): Use get_it_property.
282 (handle_line_prefix, push_display_prop): New functions.
283 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
c2786a3d
JB
284 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
285 New variables.
c4f4682b
MB
286 (syms_of_xdisp): Initialize them.
287
7d7ad10e
KH
2882008-06-30 Kenichi Handa <handa@m17n.org>
289
290 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
291 XftDefaultSubstitute (they are called in XftFontMatch).
292 (xftfont_open): Fix args to ftfont_font_format.
293
294 * ftfont.c (fc_charset_table): New member lang.
295 (ftfont_resolve_generic_family): New arg pattern.
296 (ftfont_spec_pattern): Check fc_cahrset_table[]->lang.
297 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
298 (ftfont_open): Fix args to ftfont_font_format.
299 (ftfont_font_format): New arg filename.
300
44b754c7
CY
3012008-06-30 Chong Yidong <cyd@stupidchicken.com>
302
303 * xfaces.c (Finternal_merge_in_global_face): If default face was
304 modified, realize it again. Update the font face attribute.
305
a4521b03
JR
3062008-06-29 Jason Rumney <jasonr@gnu.org>
307
c2786a3d 308 * w32term.c (x_set_frame_alpha): Fix logic.
a4521b03 309
fe44f009
KH
3102008-06-29 Kenichi Handa <handa@m17n.org>
311
312 * fontset.c (Finternal_char_font): Return font-object instead of
313 font-name.
314
c2786a3d 315 * composite.c (get_composition_id): Fix the width calculation for TAB.
fe44f009 316
baed8445
SM
3172008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
318
319 * indent.c (Fvertical_motion): Properly handle float column arg.
320
8b61a891
JR
3212008-06-28 Jason Rumney <jasonr@gnu.org>
322
baed8445
SM
323 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
324 (pfnSetLayeredWindowAttributes): New function pointer.
325 (w32_initialize): Initialize it when supported.
326 (x_set_frame_alpha): New function.
8b61a891 327
baed8445
SM
328 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
329 (w32_frame_parm_handlers): Set alpha handler.
8b61a891 330
baed8445 331 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
8b61a891 332
57016d37
JR
3332008-06-27 Jason Rumney <jasonr@gnu.org>
334
baed8445
SM
335 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
336 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
337 (w32_to_x_charset, x_to_w32_charset)
338 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
339 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
340 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
341 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
342 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
343 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
344 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
345 (Qw32_charset_unicode): Remove.
346 (syms_of_w32fns): Update for above changes.
347
348 * w32font.c (w32_to_x_charset, x_to_w32_charset)
349 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
350 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
351 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
352 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
353 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
354 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
355 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
356 (syms_of_w32font): Update for above changes.
57016d37 357
d6bf1bdb
DN
3582008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
359
360 * s/usg5-4.h: Fix previous change: keep the correct branch of a
361 removed #if.
9fa1c445 362 (USG_SHARED_LIBRARIES): Remove duplicate definition.
d6bf1bdb 363
43db14bb
JB
3642008-06-26 Juanma Barranquero <lekktu@gmail.com>
365 Eli Zaretskii <eliz@gnu.org>
366
367 * makefile.w32-in (LOCAL_FLAGS):
368 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
369
370 * sysdep.c (_spawnlp, _getpid):
371 Declare with explicit _cdecl instead of _CRTAPI1.
372
373 * editfns.c (Fget_internal_run_time):
374 Check for WINDOWSNT with #ifdef, not #if.
375
c35f9821
JR
3762008-06-26 Jason Rumney <jasonr@gnu.org>
377
43db14bb 378 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
c35f9821 379
57016d37 380 * w32term.c (x_draw_glyph_string_foreground)
43db14bb
JB
381 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
382 Use FONT_HANDLE macro.
383 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
c35f9821 384
57016d37 385 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
43db14bb 386 (uniscribe_encode_char): Use FONT_HANDLE macro.
c35f9821 387
43db14bb
JB
388 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
389 (w32font_text_extents): Use precast w32_font.
390 (w32font_close): Free cached metrics.
391 (w32font_open_internal): Allocate space for name on stack.
c35f9821 392
1f8ad719
CY
3932008-06-26 Chong Yidong <cyd@stupidchicken.com>
394
395 * xdisp.c (extend_face_to_end_of_line): Fix last change.
396
97e71655
JR
3972008-06-26 Jason Rumney <jasonr@gnu.org>
398
43db14bb
JB
399 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
400 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
97e71655 401
c9fc02c7
JB
4022008-06-26 Juanma Barranquero <lekktu@gmail.com>
403
404 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
405
1b5defe6
JR
4062008-06-26 Jason Rumney <jasonr@gnu.org>
407
c9fc02c7 408 * w32bdf.c, w32bdf.h: Remove obsolete files.
1b5defe6 409
c9fc02c7 410 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
1b5defe6 411
c9fc02c7
JB
412 * w32gui.h: Don't include w32bdf.h.
413 (XCharStruct, enum w32_char_font_type, W32FontStruct):
414 Remove obsolete font support.
1b5defe6 415
c9fc02c7
JB
416 * w32font.h (struct w32font_info): Remove compat_w32_font.
417 Add hfont member.
418 (FONT_COMPAT): Remove obsolete macro.
1b5defe6 419
c9fc02c7
JB
420 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
421 (w32font_encode_char, w32font_text_extents): Use new hfont member.
422 (w32font_open_internal): Remove compat code. Set new hfont member.
423 (Fx_select_font): Use new hfont member.
1b5defe6 424
57016d37 425 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
c9fc02c7 426 (uniscribe_encode_char): Use new hfont member.
1b5defe6 427
57016d37 428 * w32term.c (x_draw_glyph_string_foreground)
c9fc02c7
JB
429 (x_draw_composite_glyph_string_foreground): Use new hfont member.
430 (x_draw_glyph_string): Use metrics in w32font_info.
1b5defe6 431
1fc66bca
KH
4322008-06-26 Kenichi Handa <handa@m17n.org>
433
434 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
435
f2a77c3a
DN
4362008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
437
438 * unexnext.c:
439 * m/ews4800.h:
440 * m/hp9000s300.h:
441 * m/ibm370aix.h:
442 * m/mips-siemens.h:
443 * m/ncr386.h:
444 * m/next.h:
445 * m/pmax.h:
446 * m/powerpcle.h:
447 * m/tandem-s2.h:
448 * s/386bsd.h:
449 * s/bsd386.h:
450 * s/bsd4-1.h:
451 * s/bsd4-2.h:
452 * s/bsdos2-1.h:
453 * s/bsdos2.h:
454 * s/bsdos3.h:
455 * s/bsdos4.h:
456 * s/nextstep.h:
457 * s/ultrix4-3.h:
458 * s/usg5-0.h:
459 * s/usg5-2-2.h:
460 * s/usg5-2.h:
461 * s/usg5-4-3.h:
462 * s/ux4800.h:
463 * s/uxpds.h:
464 * s/uxpv.h: Remove support for obsolete systems.
465 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
466 Remove, insert contents in s/hpux-10.20.h
467 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
468 Remove, insert contents in s/aix-4.2.h
469 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
470 * s/bsd4-3.h: Rename to ..
471 * s/bsd-common.h: ... this.
472 * src/data.c:
473 * src/doc.c:
474 * src/ecrt0.c:
475 * src/emacs.c:
476 * src/fileio.c:
477 * src/floatfns.c:
478 * src/keyboard.c:
479 * src/mem-limits.h:
480 * src/print.c:
481 * src/process.c:
482 * src/sysdep.c:
483 * src/syssignal.h:
484 * src/systty.h:
485 * src/syswait.h:
486 * src/term.c:
487 * src/unexec.c:
488 * src/unexelf.c:
489 * src/unexhp9k800.c:
490 * src/m/hp800.h:
491 * src/m/ibmrs6000.h:
492 * src/m/mips.h:
493 * src/m/vax.h:
494 * src/s/darwin.h:
495 * src/s/freebsd.h:
496 * src/s/gnu.h:
497 * src/s/ms-w32.h:
498 * src/s/msdos.h:
499 * src/s/netbsd.h:
500 * src/s/template.h: Remove references to obsolete variables.
501
502 * Makefile.in: Add dependencies for all unexec files.
503 (admindir): Remove unused variable.
504 (UNEXEC_SRC): Remove references.
505
bd02793a
CY
5062008-06-25 Chong Yidong <cyd@stupidchicken.com>
507
508 * xfns.c (x_default_font_parameter): If Xft is available, first
509 try Monospace-12 for the default font.
510
ccedd259
JR
5112008-06-25 Jason Rumney <jasonr@gnu.org>
512
c9fc02c7 513 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
ccedd259 514
fbe062b7
SM
5152008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
516
603a0937
SM
517 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
518
fbe062b7
SM
519 * buffer.c (syms_of_buffer): Remove default-word-wrap.
520
69785ad0
JB
5212008-06-25 Juanma Barranquero <lekktu@gmail.com>
522
523 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
524 <scroll-conservatively>: Fix typo in docstring.
525
526 * xselect.c (Fx_send_client_event): Doc fix.
527
249e6f76
KH
5282008-06-25 Kenichi Handa <handa@m17n.org>
529
34e97272
KH
530 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
531
532 * font.c (font_parse_fcname): Remove unused variables.
69785ad0
JB
533 (font_sort_entites): Delete the arg SPEC. Caller changed.
534 Fix for the case of ! best_only.
34e97272
KH
535 (font_delete_unmatched): Check DPI and AVGWIDTH too.
536
249e6f76
KH
537 * lisp.h (Fstring_to_unibyte): EXFUN it.
538
69785ad0 539 * character.h (str_to_unibyte): Extern it.
249e6f76
KH
540
541 * character.c (str_to_unibyte): New function.
542
543 * fns.c (Fstring_to_unibyte): New function.
544 (syms_of_fns): Defsubr it.
545
65c108e4
KH
5462008-06-24 Kenichi Handa <handa@m17n.org>
547
548 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
549 DPI too.
550 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
551
4c3f18fe
AS
5522008-06-24 Andreas Schwab <schwab@suse.de>
553
69785ad0 554 * Makefile.in (${lispsource}loaddefs.el): Rename from
4c3f18fe 555 ../lisp/loaddefs.el.
fd13748d
AS
556 (bootstrap-clean): Do what distclean does but don't remove
557 Makefile.
558 (distclean): Depend on bootstrap-clean and remove Makefile.
4c3f18fe 559
faa6190f
CY
5602008-06-24 Chong Yidong <cyd@stupidchicken.com>
561
562 * buffer.h (struct buffer): New member word_wrap.
563
564 * buffer.c (syms_of_buffer): New variables default-word-wrap and
565 word-wrap.
566 (init_buffer_once): Initialize them.
567
568 * dispextern.h (struct it): Replace bool truncate_lines_p with a
569 line_wrap enum possessing three possible values.
570
571 * termopts.h: Replace truncate_partial_width_windows with
572 Vtruncate_partial_width_windows.
573
574 * dispnew.c (direct_output_for_insert): Avoid direct output when
575 inserting a space with word wrap on.
576
577 * indent.c (compute_motion): Obey integer values of
578 truncate-partial-width-windows.
579
580 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
581 replacing truncate_partial_width_windows.
582 (init_iterator): If Vtruncate_partial_width_windows is an integer,
583 truncate only if the window width is below that integer.
584 (start_display. resize_mini_window, produce_stretch_glyph)
585 (display_string, move_it_in_display_line_to): Use line_wrap.
586 (back_to_previous_visible_line_start, reseat_1): Reset
587 string_from_display_prop_p.
588 (display_line): Extend default face to end of line when wrapping.
589
5902008-06-24 Kim F. Storm <storm@cua.dk>
591
592 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
593 to wrap continued lines at word boundaries.
594
c3bb5465
JR
5952008-06-24 Jason Rumney <jasonr@gnu.org>
596
69785ad0
JB
597 * font.c (Ffont_face_attributes): Multiply pixel size before point
598 conversion to avoid multiplying rounding error.
c3bb5465 599
0b07ad98
JR
6002008-06-23 Jason Rumney <jasonr@gnu.org>
601
f245f2c6
JB
602 * w32term.c (x_draw_glyph_string_background)
603 (x_draw_glyph_string): Remove old bdf font code.
0b07ad98 604
69785ad0 605 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
0b07ad98 606
22459668
KH
6072008-06-22 Kenichi Handa <handa@m17n.org>
608
609 * font.c (font_find_for_lface): Try the adstyle specified in
610 the property of LFACE_FONT of LFACE (if any).
611
d925a426 6122008-06-21 Seiji Zenitani <zenitani@mac.com>
f245f2c6 613 Ryo Yoshitake <ryo@shiftmode.net>
d925a426
SM
614
615 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
616
b4945b95
SM
6172008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
618
619 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
620 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
621 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
622 (witness-emacs): Remove.
623 (lisp, shortlisp): Move loaddefs.el earlier.
624 (mostlyclean): Forget about witness-emacs.
625
64124279
GM
6262008-06-22 Glenn Morris <rgm@gnu.org>
627
628 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
36565815 629 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
64124279 630
768efd84
SM
6312008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
632
633 * Makefile.in (PRECOMP): Remove.
634 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
635 (witness-emacs): Run `compile-first'.
636 (.el.elc): Use the new compile-onefile target.
637
808dd567
KH
6382008-06-21 Kenichi Handa <handa@m17n.org>
639
640 * xftfont.c (xftfont_open): Handle QCembolden only when
641 FC_EMBOLDEN is defined.
642
0de59eae
AS
6432008-06-21 Andreas Schwab <schwab@suse.de>
644
645 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
58e8833b 646 (.el.elc): Likewise.
0de59eae 647
fb38e9c9
MB
6482008-06-21 Miles Bader <miles@gnu.org>
649
650 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
651 build dir, not the lisp source dir.
652
fc46d219
SM
6532008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
654
655 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
656 (bootstrapclean): Remove.
657 (.el.elc): New rule.
658 (PRECOMP): New var.
659 (../lisp/subdirs.el): Remove.
660 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
661 (witness-emacs): New target.
662 (mostlyclean): Remove witness-emacs as well.
663 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
664 Add witness-emacs dependency.
665
eaf1f6e7
CY
6662008-06-20 Chong Yidong <cyd@stupidchicken.com>
667
668 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
669 defined by the font.
670
49f6eb95
SM
6712008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
672
673 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
674 (bootstrap-clean): New target that keeps TAGS around.
675 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
676 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
677
4c100a01
JR
6782008-06-20 Jason Rumney <jasonr@gnu.org>
679
49f6eb95
SM
680 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
681 Remove obsolete font code.
db61a7f8 682
49f6eb95
SM
683 * w32font.c (font_matches_spec): Use csb bitfield from font signature
684 to determine language support.
4c100a01 685
759d3f32
SM
6862008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
687
688 * sysdep.c (cfsetspeed): New fun extracted from the code.
689 (cfmakeraw): Move before first use.
690
25241b4d
SM
6912008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
692
693 * sysdep.c (cfmakeraw): Provide fallback implementation.
694 (serial_configure): Provide fallback implementation of cfsetspeed.
695
d7afccca
KH
6962008-06-20 Kenichi Handa <handa@m17n.org>
697
dc2226d0
KH
698 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
699 the pattern.
700
9b9cd864
KH
701 * fontset.c (fontset_from_font): Copy font_spec before changing
702 the elements.
703
d7afccca
KH
704 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
705
770e2e6e
SM
7062008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
707
708 * w32fns.c, xfnc.c (x_default_font_parameter): Only set `font-param'
709 for explicit `font' parameters.
710
711 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
712
22e64f7c
KH
7132008-06-19 Kenichi Handa <handa@m17n.org>
714
715 * frame.c: Include <ctype.h>.
716 (x_set_font_backend): Allow spacing characters in the X resource
717 for FontBackend.
718
27129af9
SM
7192008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
720
721 * w32fns.c, xfns.c (Qfont_param): New var.
722 (syms_of_w32fns): Initialize it.
22e64f7c
KH
723 (x_default_font_parameter): Record explicit `font' into
724 `font-parameter'.
27129af9 725
d26424c5
KH
7262008-06-18 Kenichi Handa <handa@m17n.org>
727
728 * font.c (font_parse_xlfd): Fix previous change.
729 (font_parse_fcname): Don't use :fc-unknown-spec.
730 (FRAME_X_DISPLAY_INFO): Besure to have at least 1 pixel height.
731 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
732 (font_add_log): Prepend the driver name to the resulting fonts.
733
734 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
735 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
736 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
737
738 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
739 (QCembolden): New variables.
740 (syms_of_xftfont): DEFSYM them.
741 (xftfont_open): Call XftFontMatch. Don't trust the result of
742 XftTextExtents8 if the pixel_size is less than 5.
743
51cf11be
AS
7442008-06-18 Andreas Schwab <schwab@suse.de>
745
f245f2c6 746 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
51cf11be
AS
747 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
748
07d9ba9b
JR
7492008-06-18 Jason Rumney <jasonr@gnu.org>
750
27129af9 751 * w32font.c (w32font_list, w32font_match): Add logging.
07d9ba9b 752
27129af9 753 * w32uniscribe (uniscribe_list, uniscribe_match): Add logging.
07d9ba9b 754
0c36bc4e
CY
7552008-06-17 Chong Yidong <cyd@stupidchicken.com>
756
757 * font.c (font_parse_fcname): Store divider characters for
1578da31
CY
758 unknown-spec list. For known key symbols, intern using correct
759 symbol name.
0c36bc4e 760
70d6ecc6
KH
7612008-06-17 Kenichi Handa <handa@m17n.org>
762
763 * xfaces.c (realize_default_face): If the frame is not on window
764 system, set the fontset of face to nil.
765
821bc4db
KH
7662008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
767
f245f2c6 768 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
821bc4db 769
3554e566
JB
7702008-06-16 Juanma Barranquero <lekktu@gmail.com>
771
772 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
773 (build_font_name_from_vector): Delete externs.
774
775 * xfaces.c (struct font_name): Don't declare.
776
93eed26b
SM
7772008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
778
779 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
780
d756bcd0
CY
7812008-06-16 Chong Yidong <cyd@stupidchicken.com>
782
783 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
784
7a18a178
JB
7852008-06-16 Juanma Barranquero <lekktu@gmail.com>
786
787 * font.c (Ffont_spec): Fix usage in docstring.
48105a6a 788 (Ffont_face_attributes): Doc fix.
7a18a178 789
6f568955
AS
7902008-06-16 Andreas Schwab <schwab@suse.de>
791
792 * font.c (Ffont_face_attributes): Fix definition.
793
3ef8c1b4
JR
7942008-06-16 Jason Rumney <jasonr@gnu.org>
795
93eed26b 796 * font.h (font_style_symbolic_from_value): Remove.
3ef8c1b4 797
93eed26b
SM
798 * font.c (font_style_symbolic_from_value): Remove.
799 (font_style_symbolic): Revert to pre 2008-06-13 version.
3ef8c1b4 800
93eed26b
SM
801 * w32font.c (w32_to_fc_weight): New function.
802 (w32font_full_name, logfont_to_fcname): Use it.
3ef8c1b4 803
5e634ec9
KH
8042008-06-16 Kenichi Handa <handa@m17n.org>
805
806 * font.c (font_check_object): Delete it.
807 (font_clear_cache): Check if a font-object is alive.
808 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
809 font-object to nil.
810 (font_close_object): Don't check FONT_CLOSE_OBJECT.
811 (font_at): Don't call font_check_object.
2babb359 812 (Ffont_get): Return a symbol for :weight, :slant, and :width.
5e634ec9 813
6409a955
KY
8142008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
815
816 * puresize.h (BASE_PURESIZE): Increase to 1230000.
817
ce4eaddb
CY
8182008-06-16 Chong Yidong <cyd@stupidchicken.com>
819
820 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
821
523dbe64
CY
8222008-06-15 Chong Yidong <cyd@stupidchicken.com>
823
54b2ab27 824 * font.c (font_parse_fcname): Only one decimal point.
523dbe64
CY
825 (font_unparse_fcname): Handle data in family and foundry indices
826 as symbols, not strings.
827 (font_unparse_gtkname, Ffont_face_attributes): New functions.
828
54b2ab27 829 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
523dbe64
CY
830
831 * font.h (font_unparse_gtkname): Add prototype.
832
9f296082
KH
8332008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
834
54b2ab27 835 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
9f296082 836
3306c6dc
AS
8372008-06-15 Andreas Schwab <schwab@suse.de>
838
839 * font.c (font_update_drivers): Fix crash when no drivers match.
840
a099c27a
SM
8412008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
842
843 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
844 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
845
a8aa344d
SM
8462008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
847
848 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
849
a879ee6f
SM
8502008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
851
852 * process.c (Fserial_process_configure, Fprocess_send_eof):
853 Use EQ to compare Lisp_Objects.
854
6fe9826d
JR
8552008-06-13 Jason Rumney <jasonr@gnu.org>
856
a879ee6f 857 * w32fns.c (Fw32_select_font): Remove old font API function.
6fe9826d 858
a879ee6f
SM
859 * w32font.c (logfont_to_fcname): New function.
860 (Fx_select_font): New font dialog function compatible with
861 GTK/fontconfig version.
6fe9826d 862
a879ee6f
SM
863 * font.c (font_style_symbolic_from_value): New function.
864 (font_style_symbolic): Use it.
6fe9826d 865
a879ee6f 866 * font.h (font_style_symbolic_from_value): Declare new function.
6fe9826d 867
17ab8f5d
JB
8682008-06-13 Juanma Barranquero <lekktu@gmail.com>
869
870 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
871 <font-width-table>: Fix typos in docstrings.
872
d888760c
GM
8732008-06-13 Daniel Engeler <engeler@gmail.com>
874
875 These changes add serial port access.
876 * process.c: Add HAVE_SERIAL.
877 (Fdelete_process, Fprocess_status, Fset_process_buffer)
878 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
879 (list_processes_1, select_wrapper, Fstop_process)
880 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
881 (status_notify): Modify to handle serial processes.
882 [HAVE_SERIAL] (Fserial_process_configure)
883 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
884 New functions.
885 * process.h (struct Lisp_Process): Add `type'.
886 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
887 New functions.
888 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
889 serial ports.
890 (serial_open, serial_configure) New functions.
891 * w32.h: Add FILE_SERIAL.
892 (struct _child_process): Add ovl_read, ovl_write.
893
f4cc0153
KH
8942008-06-13 Kenichi Handa <handa@m17n.org>
895
896 * dispextern.h (enum lface_attribute_index): New member
897 LFACE_FOUNDRY_INDEX.
898
899 * font.c (font_score): Delete arg alternate_families. Check only
7a18e381 900 weight, slant, width, and size. Ignore the difference of alias
f4cc0153 901 style symbols.
7a18e381 902 (font_sort_entites): Adjust for the above change. Reflect the
f4cc0153
KH
903 order of font-driver to scores.
904 (font_list_entities): Don't check alternate_familes here.
905 (font_clear_prop): Handle foundry.
906 (font_update_lface): Don't parse "foundry-family" form here.
907 Handle FONT_FOUNDRY_INDEX.
908 (font_find_for_lface): Likewise. Handle alternate families here.
a879ee6f 909 If registry is nil, try iso8859-1 and ascii-0.
f4cc0153 910 (font_open_for_lface): Pay attention to size in ENTITY.
7a18e381 911 (font_open_by_name): Simplify by calling font_load_for_lface.
f4cc0153
KH
912 (free_font_driver_list): Delete it.
913 (font_update_drivers): Preserve the order of backends.
914 (syms_of_font): Setting of sort_shift_bits adjusted for the change
915 of font_score and font_sort_entites.
916 (font_update_sort_order): Likewise.
917
918 * xfaces.c (LFACE_FOUNDRY): New macro.
919 (check_lface_attrs): Check foundry.
7a18e381 920 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
f4cc0153
KH
921 (merge_face_vectors): Check foundry.
922 (merge_face_ref): Likewise.
923 (Finternal_set_lisp_face_attribute): Likewise.
924 (x_update_menu_appearance): Likewise.
925 (Finternal_get_lisp_face_attribute): Likewise.
926 (lface_hash): Likewise.
927 (lface_same_font_attributes_p): Likewise.
928 (x_supports_face_attributes_p): Likewise.
929 (tty_supports_face_attributes_p): Likewise.
930 (Finternal_set_alternative_font_family_alist): Intern strings.
931 (Finternal_set_alternative_font_registry_alist): Downcase strings.
932 (realize_default_face): Set LFACE_FOUNDRY (lface).
933
934 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
935 font-driver at first.
936
937 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
938
d434fef5 9392008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
97dead2d
JM
940
941 * lread.c (Fload): Use xfree, not free on saved_doc_string.
942
9c5e177e
JM
9432008-06-12 Jim Meyering <meyering@redhat.com>
944
d434fef5 945 Make unexec_free handle NULL the same way free does.
9c5e177e
JM
946 * unexmacosx.c (unexec_free): Ignore a NULL argument.
947
2afc21f5
SM
9482008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
949
950 * character.h (CHAR_TO_BYTE_SAFE): New macro.
951 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
952 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
953 (WEAK_ALIAS): Simplify.
954 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
955 when searching a unibyte buffer.
956
76c0de62
CY
9572008-06-12 Chong Yidong <cyd@stupidchicken.com>
958
959 * xfns.c (Fx_select_font): Rename from x-font-dialog.
960
0500dcc9
JB
9612008-06-12 Juanma Barranquero <lekktu@gmail.com>
962
963 * w32font.c: Include ctype.h.
964
f42adef6
JR
9652008-06-11 Jason Rumney <jasonr@gnu.org>
966
2afc21f5
SM
967 * w32font.c (w32font_encode_char): Detect missing glyphs that are
968 misreported as space.
969 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
970 as aliases for registry iso10646-1.
f42adef6 971
4b7cdc0e
SM
9722008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
973
974 * buffer.c (clone_per_buffer_values): Skip `name'.
975
cc02ebe1
CY
9762008-06-11 Chong Yidong <cyd@stupidchicken.com>
977
978 * font.c (font_parse_fcname): Fix last change; accept decimal
979 points in font size.
980
351ccb76
JR
9812008-06-10 Jason Rumney <jasonr@gnu.org>
982
0500dcc9
JB
983 * w32uniscribe.c (add_opentype_font_name_to_list):
984 Skip non unicode fonts.
351ccb76 985
f473ed6f
CY
9862008-06-10 Chong Yidong <cyd@stupidchicken.com>
987
988 * xfns.c (Fx_font_dialog): New function.
989
5d6333d5 990 * gtkutil.c (xg_dialog_response_cb): Rename from
f473ed6f
CY
991 xg_file_response_callback.
992 (pop_down_dialog): Rename from pop_down_file_dialog.
993 (xg_get_file_name): Callers changed.
994 (xg_get_font_name): New function.
995
5d6333d5 996 * gtkutil.h (xg_get_font_name): Insert prototype.
f473ed6f 997
2a3bd2e1
SM
9982008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
999
1000 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
1001 x_underline_minimum_display_offset.
1002 (syms_of_xdisp): Declare it here rather than in xterm.c.
1003 * dispextern.h (underline_minimum_offset): Declare it.
1004 * w32term.c (x_draw_glyph_string): Use it.
1005 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
1006 (syms_of_xterm): Don't declare it any more.
1007 (x_draw_glyph_string): Adjust to the new name.
1008
d5dc6163
SM
10092008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
1010
1011 * xterm.c (x_underline_minimum_display_offset): New var.
1012 (x_draw_glyph_string): Use it.
1013 (syms_of_xterm): Declare it.
1014
0abdd197
CY
10152008-06-10 Chong Yidong <cyd@stupidchicken.com>
1016
1017 * font.c (font_parse_fcname): Accept GTK-style font names too.
1018
a1562258
SM
10192008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
1020
928b5acc
SM
1021 * dired.c (file_name_completion): Don't return t if the match is exact
1022 but with different capitalization.
1023 * minibuf.c (Ftry_completion): Simplify.
1024
a1562258
SM
1025 * window.c (Vwindow_point_insertion_type): New var.
1026 (set_window_buffer): Use it.
1027 (syms_of_window): Init and export it to Lisp.
1028
9552dbd1
KH
10292008-06-10 Kenichi Handa <handa@m17n.org>
1030
1031 * font.h (font_intern_prop): Prototype adjusted.
1032
1033 * font.c (font_intern_prop): New arg force_symbol.
a1562258
SM
1034 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
1035 Adjust for the change of font_intern_prop.
9552dbd1 1036
a1562258
SM
1037 * ftfont.c (ftfont_pattern_entity):
1038 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
1039 (w32_registry):
1040 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
9552dbd1
KH
1041 the change of font_intern_prop.
1042
8993ad2e
JB
10432008-06-09 Juanma Barranquero <lekktu@gmail.com>
1044
1045 * w32menu.c (digest_single_submenu): Declare extern.
1046
0c2258fc
JR
10472008-06-09 Jason Rumney <jasonr@gnu.org>
1048
a1562258 1049 * w32term.c (x_make_frame_visible): Use alternate restore flags.
12f71857 1050
a1562258
SM
1051 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
1052 (parse_single_submenu): Remove.
1053 (digest_single_submenu): Remove.
1054 (syms_of_w32menu): Don't initialise variables that have moved
1055 to menu.c.
1056 (set_frame_menubar): Sync with version in xmenu.c.
1057 (w32_menu_show): Sync with xmenu_show in xmenu.c.
593c843c 1058
8993ad2e
JB
1059 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
1060 Make static again.
0c2258fc 1061
02246cb8
JR
10622008-06-09 Jason Rumney <jasonr@gnu.org>
1063
8993ad2e
JB
1064 Changes to w32 files related to the move of common menu code
1065 to menu.c on 2008-06-08 by Chong Yidong.
1066
1067 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
1068 defs to w32gui.h.
1069 (single_keymap_panes, push_menu_item, push_menu_pane):
1070 Make globally visible.
1071
d434fef5
JB
1072 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
1073 (local_free, malloc_widget_value, free_widget_value)
1074 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
1075 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
1076 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
8993ad2e 1077 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
d434fef5 1078 (menu_items, menu_items_allocated, menu_items_used)
8993ad2e
JB
1079 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
1080 (init_menu_items, finish_menu_items, discard_menu_items)
1081 (grow_menu_items, push_submenu_start, push_submenu_end)
1082 (push_left_right_boundary, push_menu_pane, push_menu_item)
1083 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
d434fef5 1084 (free_menubar_widget_tree_value, parse_single_submenu)
8993ad2e
JB
1085 (update_submenu_strings): Remove functions.
1086 (xmalloc_widget_value): Remove and declare extern.
1087
1088 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
1089 (OBJ1): Build it.
1090
1091 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
1092 (local_heap, local_alloc, local_free, malloc_widget_value)
1093 (free_widget_value): Define here.
02246cb8 1094
9e1bb909
KH
10952008-06-09 Kenichi Handa <handa@m17n.org>
1096
366664ad
KH
1097 * font.h (Qascii_0): Extern it.
1098
9e1bb909
KH
1099 * font.c (Qascii_0): New variable.
1100 (syms_of_font): DEFSYM it.
1101 (font_open_by_name): If the registry "iso8859-1" fails, try also
1102 "ascii-0".
1103
1104 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
1105
b2ee479e
KH
11062008-06-08 Kenichi Handa <handa@m17n.org>
1107
8f440b79 1108 * .gdbinit (xfont): New command.
b2ee479e 1109
01ef9d36
AS
11102008-06-08 Andreas Schwab <schwab@suse.de>
1111
a4240420
AS
1112 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
1113 * Makefile.in (menu.o): Update dependencies.
1114
0181bf66 1115 * Makefile.in (obj): Always add menu.o.
01ef9d36
AS
1116 * emacs.c (main): Always call syms_of_menu.
1117 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
1118
c07cbae6
CY
11192008-06-08 Chong Yidong <cyd@stupidchicken.com>
1120
1121 * Makefile.in: Compile menu.c.
1122
1123 * lisp.h: Declare syms_of_menu.
1124
1125 * emacs.c (main): Call syms_of_menu.
1126
1127 * keyboard.h: Relocate platform-independent menu definitions from
1128 xmenu.c.
1129
1130 * menu.c: New file. Relocate platform-independent menu
904d8c69 1131 definitions from xmenu.c. Suggested by Adrian Robert.
c07cbae6
CY
1132
1133 * xmenu.c: Remove platform-independent menu definitions.
1134 (menu_items menu_items_inuse, menu_items_allocated)
1135 (menu_items_used, menu_items_n_panes)
1136 (menu_items_submenu_depth): Move to keyboard.h.
1137 (init_menu_items, finish_menu_items, unuse_menu_items)
1138 (discard_menu_items, restore_menu_items, save_menu_items)
1139 (grow_menu_items, push_submenu_start, push_submenu_end)
1140 (push_left_right_boundary, push_menu_pane, push_menu_item)
1141 (keymap_panes, single_keymap_panes, single_menu_item)
1142 (list_of_panes, list_of_items, find_and_call_menu_selection)
1143 (xmalloc_widget_value, free_menubar_widget_value_tree)
1144 (parse_single_submenu, digest_single_submenu)
1145 (update_submenu_strings): Move to menu.c.
1146
4958ed94
SM
11472008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
1148
1149 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
1150
408b8ab4
MB
11512008-06-06 Miles Bader <miles@gnu.org>
1152
1153 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
1154 face, not frame default.
1155
87478b52
SM
11562008-06-05 Martin Rudalics <rudalics@gmx.at>
1157
1158 * window.c (pop_up_windows, pop_up_frames)
1159 (display_buffer_reuse_frames, Vpop_up_frame_function)
1160 (Vdisplay_buffer_function, Veven_window_heights)
1161 (Vspecial_display_buffer_names, Vspecial_display_regexps)
1162 (Vspecial_display_function, Vsame_window_buffer_names)
1163 (Vsame_window_regexps, split_height_threshold)
1164 (Vsplit_window_preferred_function): Move those vars to window.el.
1165 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
1166 (Fdisplay_buffer): Move those functions to window.el.
1167 (syms_of_window): Remove corresponding declarations.
1168 (display_buffer): New function.
1169 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
1170 * dispnew.c (Flast_nonminibuf_frame): New function.
1171 * buffer.c (Fpop_to_buffer): Move to window.el.
1172
9e0e0d77
SM
11732008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
1174
1175 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
1176
4a485df8
KH
11772008-06-05 Kenichi Handa <handa@m17n.org>
1178
1179 * coding.c (detect_coding): Fix previous change.
1180 (detect_coding_system): Likewise.
1181
8ba31f36
SM
11822008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
1183
c0dc8f64
SM
1184 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
1185
8ba31f36
SM
1186 * keymap.c (Vminibuffer_local_filename_must_match_map):
1187 Rename from Vminibuffer_local_must_match_filename_map.
1188 (syms_of_keymap):
1189 * minibuf.c (Fcompleting_read): Adjust accordingly.
1190 * commands.h: Rename declaration as well.
1191
7740d2c7
KH
11922008-06-05 Kenichi Handa <handa@m17n.org>
1193
e7438ece
KH
1194 * font.c (Ffont_spec): Don't use font_parse_family_registry for
1195 family name.
1196 (Ffont_put): Likewise.
1197
1198 * fontset.c (fontset_find_font): Call font_open_for_lface with the
1199 current font-spec.
1200
7740d2c7
KH
1201 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
1202 is unspecified.
1203
1204 * xfaces.c (realize_x_face): If the font-related face attributes
e7438ece
KH
1205 are the same as those of default face, realize a new fontset from
1206 default->fontset.
9e0e0d77 1207 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
7740d2c7 1208
c876b227
SM
12092008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
1210
1211 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
1212 (move_it_in_display_line): New wrapper.
1213
1214 * window.c (window_scroll_pixel_based_preserve_x)
1215 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
1216 (window_scroll_pixel_based, window_scroll_line_based):
1217 Use them to preserve column positions.
1218 (syms_of_window): Initialize them.
1219
1220 * indent.c (Fvertical_motion): Extend first arg to allow passing an
1221 (HPOS . VPOS) pair.
1222
1223 * dispextern.h (move_it_in_display_line): Declare.
1224
927abf37
JB
12252008-06-05 Juanma Barranquero <lekktu@gmail.com>
1226
1227 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
1228 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
1229 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
1230
9d14503e
JB
12312008-06-04 Juanma Barranquero <lekktu@gmail.com>
1232
1233 * window.c (Fset_window_parameter): Doc fix.
1234 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
1235
e6841c3b
JB
12362008-06-04 Joakim Verona <joakim@verona.se>
1237
1238 * window.h (struct window): Add new member window_parameters.
1239
1240 * window.c (Fwindow_parameters, Fwindow_parameter)
1241 (Fset_window_parameter): New defuns.
1242 (syms_of_window): Defsubr the new defuns.
1243 (make_window): Initialize window_parameters to nil.
1244
4ba50634
JPW
12452008-06-04 John Paul Wallington <jpw@pobox.com>
1246
1247 * eval.c (Fdefmacro): Doc fix.
1248
c0e16b14
KH
12492008-06-04 Kenichi Handa <handa@m17n.org>
1250
1251 * coding.c (detect_coding): Fix handling of coding->head_ascii.
9e0e0d77 1252 Be sure to call setup_coding_system when we find a proper coding system.
c0e16b14
KH
1253 (detect_coding_system): Fix handling of coding->head_ascii.
1254
0615d903
AS
12552008-06-03 Andreas Schwab <schwab@suse.de>
1256
1257 * font.c (font_prop_validate_spacing): Fix last change.
1258
8a1816bb
KH
12592008-06-03 Kenichi Handa <handa@m17n.org>
1260
eea9c5c4
KH
1261 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
1262 (font_parse_fcname): Fix handling of unknown key.
1263
1264 * xfont.c (xfont_list): Try an alias.
1265
8a1816bb
KH
1266 * charset.c (char_charset): Return NULL if the arg charset_list is
1267 specified and C doesn't belong to any of them.
1268
2f593f4c 12692008-06-02 Chip Coldwell <coldwell@redhat.com>
6c5e8775
CY
1270
1271 * font.c (font_pixel_size): Don't take cdr of an integer.
1272
c2cd06e6
JM
12732008-06-02 Jim Meyering <meyering@redhat.com>
1274
70fdbb46
JM
1275 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
1276 * alloc.c (xfree): Return right away for a NULL arg.
1277 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
1278 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
1279 * mac.c (create_apple_event_from_event_ref): Likewise.
2f593f4c
JB
1280 (create_apple_event_from_drag_ref, cfstring_create_normalized):
1281 Likewise.
70fdbb46
JM
1282 * doprnt.c (doprnt1): Likewise.
1283 * frame.c (frame): Likewise.
1284 * keyboard.c (wipe_kboard): Likewise.
1f204af3 1285 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
70fdbb46
JM
1286 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
1287 * term.c (tty_default_color_capabilities, maybe_fatal)
1288 (delete_tty): Likewise.
1289 * w16select.c (string): Likewise.
1290 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
1291 * w32bdf.c (w32_free_bdf_font): Likewise.
1292 * w32fns.c (w32_unload_font): Likewise.
1293 * w32font.c (w32font_close): Likewise.
1294 * window.c (size_window): Likewise.
1295 * xselect.c (receive_incremental_selection): Likewise.
1296 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
1297 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
1298 * w32.c (stat): Likewise.
1299
2f593f4c 1300 Remove useless if-before-free tests.
70fdbb46
JM
1301 * editfns.c (Fset_time_zone_rule): Likewise.
1302 * lread.c (nosuffix): Likewise.
1303 * ralloc.c (get_bloc): Likewise.
1304 * regex.c (reg_free): Likewise.
1305 * xftfont.c (xftfont_open, xftfont_close): Likewise.
1306 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
1307 * xsmfns.c (smc_save_yourself_CB): Likewise.
c2cd06e6 1308
4fc1984a
KH
13092008-06-02 Kenichi Handa <handa@m17n.org>
1310
1d1e1245
KH
1311 * font.c (font_find_for_lface): Handle float font size.
1312 (font_open_for_lface): Likewise.
1313
4fc1984a
KH
1314 * xfaces.c (x_supports_face_attributes_p): Check face->font before
1315 comparing the properties.
1316
aee986fd
JR
13172008-06-01 Jason Rumney <jasonr@gnu.org>
1318
e6841c3b
JB
1319 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
1320 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
1321 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
1322 Don't add empty script list.
1323 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
aee986fd 1324
60a3d7ee
DN
13252008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
1326
aee986fd 1327 * Makefile.in (dot, dotdot): Remove, update users.
60a3d7ee
DN
1328 ".." has been used elsewhere in the file for a long time.
1329 (LIBXT_STATIC): Remove conditional based on unused variable.
1330
f2cec7a9
MB
13312008-06-01 Miles Bader <miles@gnu.org>
1332
1333 * xfaces.c (Vface_remapping_alist): New variable.
1334 (syms_of_xfaces): Initialize it.
1335 (enum named_merge_point_kind): New type.
1336 (struct named_merge_point): Add `named_merge_point_kind' field.
1337 (push_named_merge_point): Make cycle detection respect different
1338 named-merge-point kinds.
c876b227 1339 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
f2cec7a9
MB
1340 Remove face-name alias resolution.
1341 (lface_from_face_name): New definition using
1342 `lface_from_face_name_no_resolve'.
c876b227 1343 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
f2cec7a9
MB
1344 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
1345 (get_lface_attributes): New definition that layers face-remapping on
1346 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
1347 (lookup_basic_face): New function.
1348 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
1349 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
1350 `get_lface_attributes'.
1351 (face_at_buffer_position): Use `lookup_basic_face' to lookup
1352 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
1353 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
1354
1355 * xdisp.c (init_iterator): Pass base_face_id through
1356 `lookup_basic_face' when we actually use it as a face-id.
1357 (handle_single_display_prop): Use `lookup_basic_face' to lookup
1358 DEFAULT_FACE_ID.
1359
1360 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
1361 lookup the initial face-id.
1362
1363 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
1364
518c0b83
JB
13652008-06-01 Juanma Barranquero <lekktu@gmail.com>
1366
1367 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
1368 (Fremove_text_properties): Fix typos in docstrings.
1369
719b3d63
KH
13702008-05-31 Kenichi Handa <handa@m17n.org>
1371
e4c93315
KH
1372 * font.c (font_list_entities): Fix the car part of data to be
1373 stored in the cache.
1374
719b3d63
KH
1375 * ftfont.c (ftfont_font_format): Don't use strcasestr.
1376
d0827857
SM
13772008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
1378
1379 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
1380 Add a `test' argument so another predicate than `equal' can be used.
1381 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
1382 (map_char_table): Remove unused vars `c' and `i'.
1383 * lisp.h (Foptimize_char_table): Adjust declaration.
1384 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
1385
a266686a
KH
13862008-05-30 Kenichi Handa <handa@m17n.org>
1387
d0827857 1388 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
a266686a
KH
1389 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
1390 defined.
1391
fd9440c5
SM
13922008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
1393
1394 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
1395 (Fmake_variable_frame_local): Disallow mixing buffer-local and
1396 frame-local settings for the same variable.
1397
fd2ae9b2
KH
13982008-05-30 Kenichi Handa <handa@m17n.org>
1399
9e0e0d77 1400 * fontset.c (Ffont_info): Move to font.c.
fd2ae9b2
KH
1401 (syms_of_fontset): Delete defsubr of Sfont_info.
1402
1403 * font.c (font_style_to_value, font_score): Delete casting of the
1404 args to xstcasecmp.
1405 (register_font_driver): Increment num_font_drivers only when
1406 registering the driver globally.
9e0e0d77 1407 (Ffont_info): Move from fontset.c. Handle a font object too.
fd2ae9b2
KH
1408 (syms_of_font): Defsubr Sfont_info.
1409
eaf11618
KH
14102008-05-29 Kenichi Handa <handa@m17n.org>
1411
1412 * coding.h (enum define_coding_utf8_arg_index): New enum.
1413 (enum coding_attr_index): Change coding_attr_utf_16_bom to
1414 coding_attr_utf_bom.
fd9440c5
SM
1415 (enum utf_bom_type): Rename from utf_16_bom_type.
1416 (struct utf_16_spec): Adjust for the above change.
eaf11618
KH
1417 (struct coding_system): Add utf_8_bom in `spec' union.
1418
1419 * coding.c (CODING_UTF_8_BOM): New macro.
1420 (enum coding_category): Delete coding_category_utf_8, add
1421 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
1422 coding_category_utf_8_sig.
1423 (CATEGORY_MASK_UTF_8): Delete it.
1424 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
1425 (CATEGORY_MASK_UTF_8_SIG): New macros.
1426 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
1427 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
1428 CATEGORY_MASK_UTF_8_SIG.
1429 (CATEGORY_MASK_UTF_8): New macro.
1430 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
1431 (detect_coding_utf_8): Check BOM.
1432 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
fd9440c5 1433 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
eaf11618
KH
1434 (encode_coding_utf_16): Likewise.
1435 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
1436 (detect_coding, detect_coding_system): Handle utf-8-auto.
1437 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
1438 (syms_of_coding): Fix setting up of Vcoding_category_table.
1439
891bd142
SM
14402008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
1441
1442 * process.c (Faccept_process_output): If `millisec' is non-nil,
1443 `seconds' default to 0.
1444 (wait_reading_process_output): Also return non-nil if we read output
1445 from a non-running process.
1446
1519d52e
JR
14472008-05-29 Jason Rumney <jasonr@gnu.org>
1448
fd9440c5
SM
1449 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
1450 `raster' specified.
1451 (add_font_entity_to_list): Allow non-opentype truetype fonts back
1452 in the uniscribe backend, but disallow any font that has no
1453 unicode subrange support.
1519d52e 1454
d5ab09cd
JB
14552008-05-29 Juanma Barranquero <lekktu@gmail.com>
1456
1457 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
1458 Fix typos in docstrings.
1459
a4eec626
KH
14602008-05-29 Kenichi Handa <handa@m17n.org>
1461
1462 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
e887f2ac 1463 (Fx_family_fonts): Set frame correctly.
a4eec626 1464
a6e0b7e5
JR
14652008-05-28 Jason Rumney <jasonr@gnu.org>
1466
d5ab09cd 1467 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
a6e0b7e5 1468
6b3d752c
SM
14692008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
1470
1471 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
1472 calling build_annotations.
1473
c3f9fba8
JB
14742008-05-28 Juanma Barranquero <lekktu@gmail.com>
1475
1476 * coding.c (Fdecode_coding_region, Fencode_coding_region)
1477 (Fencode_coding_string):
1478 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
1479 <latin-extra-code-table>: Fix typos in docstrings.
1480 (syms_of_coding) <coding-system-alist>: Doc fix.
1481 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
1482
00c670e1
KH
14832008-05-28 Kenichi Handa <handa@m17n.org>
1484
b75d7f28
KH
1485 * fontset.c (Ffont_info): Don't call font_close_object.
1486
1487 * font.c (font_parse_family_registry): Use Ffont_put to validate
1488 foundry and family.
1489 (font_delete_unmatched): Don't check spacing.
1490 (font_list_entities): Add spacing to the spec to list fonts.
1491
1492 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
d5ab09cd 1493 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
b75d7f28 1494
00c670e1
KH
1495 * coding.c (encode_coding_raw_text): Fix previous change.
1496 (encode_coding_object): When the dst_object is a buffer and is
1497 different from src_object, move gap to PT.
1498
45feca91
CY
14992008-05-27 Chong Yidong <cyd@stupidchicken.com>
1500
c3f9fba8 1501 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
45feca91 1502
5dd5d9eb
SM
15032008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
1504
01d45367
SM
1505 * coding.c (encode_coding_raw_text): Set coding->produced_char for
1506 all branches. Compute it differently.
1507
5dd5d9eb
SM
1508 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
1509
9c623c85
JB
15102008-05-27 Juanma Barranquero <lekktu@gmail.com>
1511
1512 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
1513 into "else if () ... else ...".
1514
943f2093
JR
15152008-05-27 Jason Rumney <jasonr@gnu.org>
1516
5dd5d9eb
SM
1517 * w32font.c (w32font_open_internal): Determine if glyph indices
1518 are likely to work here.
943f2093 1519
7385fe74
CY
15202008-05-27 Chong Yidong <cyd@stupidchicken.com>
1521
1522 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
1523 draw overlap glyphs with appropriate highlighting.
1524
4f64a164
KH
15252008-05-27 Kenichi Handa <handa@m17n.org>
1526
1527 * xfont.c (xfont_open): Fix calculation of font->average_width.
1528
1fb5aad7
SM
15292008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
1530
1531 * casefiddle.c (casify_object): Try to guess better whether the
1532 argument is a byte or a char.
1533
f8eb1603
AS
15342008-05-26 Andreas Schwab <schwab@suse.de>
1535
1fb5aad7
SM
1536 * xselect.c (x_reply_selection_request): Properly handle format == 32.
1537 Always send multiples of format size.
5a9c35e5 1538
f8eb1603
AS
1539 * xterm.c (x_set_frame_alpha): Fix type mismatch.
1540
ba93d684
JR
15412008-05-26 Jason Rumney <jasonr@gnu.org>
1542
1fb5aad7
SM
1543 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
1544 (compute_metrics): Don't set failure if we just cleared the cache.
1545 (w32_weight_table): Remove unused variable.
1546 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
1547 backwards compatibility.
ba93d684 1548
505ecc49
KH
15492008-05-25 Kenichi Handa <handa@m17n.org>
1550
1fb5aad7
SM
1551 * w32term.c (x_draw_glyph_string):
1552 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
505ecc49
KH
1553
1554 * xfaces.c: Delete unused function prototypes.
1555 (xstrlwr, font_frame): Delete them.
1556 (clear_face_cache): Delete unused variable.
1557
1fb5aad7
SM
1558 * xftfont.c (xftfont_open): Delete unused variable.
1559 If underline_thickness is not 1, adjust underline_position.
505ecc49
KH
1560
1561 * ftxfont.c (ftxfont_open): Delete unused variable.
1562
1563 * fontset.c (face_for_char): Optimize for the case of no charset
1564 property.
1565
1566 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
1567 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
1568 (otf_open, font_otf_capability, generate_otf_features)
1569 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
1fb5aad7 1570 Comment out by surrounding "#if 0" and "#endif" for the moment.
505ecc49
KH
1571 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
1572 (syms_of_font): Codes for accessing above commented out.
1573
f481eb31
EZ
15742008-05-24 Eli Zaretskii <eliz@gnu.org>
1575
1576 * w32proc.c: Include dispextern.h.
1577
1578 * w32.c: Include dispextern.h.
1579
20746fe4
JB
15802008-05-23 Juanma Barranquero <lekktu@gmail.com>
1581
1582 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
1583 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
1584 Fix typos in docstrings.
1585
e7150846
JR
15862008-05-23 Jason Rumney <jasonr@gnu.org>
1587
20746fe4 1588 * xsmfns.c: Remove includes that are already included by config.h.
e7150846 1589
dbf46ba6
KH
15902008-05-23 Kenichi Handa <handa@m17n.org>
1591
6c652beb
KH
1592 * charset.c (Qemacs, charset_emacs): New variables.
1593 (char_charset): Fix for non-Unicode characters.
1594 (syms_of_charset): Define charset_emacs.
1595
baf4d3b3 1596 * w32term.c (x_draw_glyph_string): Be sure to update
328fab2a
KH
1597 s->underline_thickness and s->underline_position. Be sure to draw
1598 underline within the current line area.
baf4d3b3
KH
1599
1600 * xterm.c (x_draw_glyph_string): Be sure to update
328fab2a 1601 s->underline_thickness and s->underline_position. Be sure to draw
90dc78a3 1602 underline within the current line area.
baf4d3b3 1603
dbf46ba6
KH
1604 * fontset.c: Delete unused variables and add casting for char *
1605 throughout the file.
1606 (fontset_font): Try the fallback fonts of the current fontset
1607 before consulting the default fontset.
1608
1609 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
1610
9e0e0d77 1611 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
dbf46ba6 1612
3b780338
JR
16132008-05-22 Jason Rumney <jasonr@gnu.org>
1614
20746fe4 1615 * font.c: Don't include strings.h.
577eba22 1616
9e0e0d77 1617 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
05131107 1618
20746fe4
JB
1619 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
1620 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
b1722a46
EZ
1621 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
1622 to call xstrcasecmp.
05131107 1623
b1722a46 1624 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
3b780338 1625
b1722a46 1626 * fontset.c (fs_query_fontset): Use xstrcasecmp.
3b780338 1627
b1722a46 1628 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
3b780338 1629
b1722a46 1630 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
3b780338 1631
a30e1957
KH
16322008-05-22 Kenichi Handa <handa@m17n.org>
1633
20746fe4 1634 * puresize.h (BASE_PURESIZE): Increase to 1220000.
955b979c 1635
20746fe4 1636 * font.c (font_prop_validate_style): Adjust for the format
64b900e3
KH
1637 change of font_style_table.
1638
a30e1957
KH
1639 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
1640 two args.
1641
1642 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
1643 two args.
1644
631248e5
SM
16452008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
1646
1647 * minibuf.c (keys_of_minibuf): Delete.
1648 * lisp.h (keys_of_minibuf): Delete.
1649 * emacs.c (main): Don't call keys_of_minibuf.
1650
318548be
KH
16512008-05-22 Kenichi Handa <handa@m17n.org>
1652
631248e5 1653 * ftfont.c (ftfont_resolve_generic_family): Rename from
318548be
KH
1654 ftfont_list_generic_family. Return a single family for each
1655 generic family.
1656 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
20746fe4
JB
1657 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
1658 Call font_add_log.
318548be
KH
1659 (ftfont_match): Call font_add_log.
1660
1661 * font.h (Ffont_xlfd_name): EXFUN adjusted.
1662 (FONT_DEBUG): Define it.
1663 (font_add_log): Extern it.
631248e5 1664 (font_assert): Rename from xassert.
318548be
KH
1665
1666 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
1667 (xfont_list_family): Call font_add_log.
1668 (xfont_match): Likewise.
631248e5 1669 (memq_no_quit): Delete.
318548be
KH
1670
1671 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
1672 call of Ffont_xlfd_name.
1673
1674 * xfaces.c (struct table_entry, slant_table, weight_table)
631248e5 1675 (swidth_table): Move to font.c.
318548be
KH
1676
1677 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
631248e5 1678 xassert are changed to font_assert. Delete many unused variables.
20746fe4
JB
1679 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
1680 New variables.
631248e5
SM
1681 (struct table_entry): Move from xfaces.c and modified.
1682 (weight_table, slant_table, width_table): Move from xfaces.c and
318548be 1683 contents adjusted for the change of struct table_entry.
20746fe4 1684 (font_style_to_value, font_style_symbolic): Adjust for the
64b900e3 1685 format change of font_style_table.
318548be
KH
1686 (font_parse_family_registry): Don't overwrite existing foundry and
1687 family of font_spec.
1688 (font_score): Fix calculation of diff for sizes.
1689 (font_sort_entites): Call font_add_log.
1690 (font_delete_unmatched): Return a newly created list.
1691 (font_list_entities): Fix previous change. Call font_add_log.
20746fe4
JB
1692 (font_matching_entity, font_open_entity, font_close_entity):
1693 Call font_add_log.
318548be 1694 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
631248e5 1695 (Finternal_set_font_style_table): Delete.
318548be
KH
1696 (BUILD_STYLE_TABLE): New macro.
1697 (build_style_table): New function.
1698 (Vfont_log, font_log_env_checked): New variables.
1699 (font_add_log): New function.
1700 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
1701 Declare Lisp variables "font-weight-table", "font-slant-table",
1702 "font-width-table", and "font-log". Initialize font_style_table.
1703
6aac1c03
DN
17042008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
1705
bcc850aa 1706 * xterm.c (x_set_frame_alpha): Move declarations before statements.
6aac1c03 1707
7950790f
GM
17082008-05-21 Seiji Zenitani <zenitani@mac.com>
1709 Ryo Yoshitake <ryo@shiftmode.net>
a2979e8e 1710
7950790f 1711 * frame.c (Qalpha): Add a new frame parameter `alpha'.
bcc850aa 1712 (Vframe_alpha_lower_limit): New variable.
b9fb2c45 1713 (x_set_alpha): New function.
a2979e8e 1714
7950790f 1715 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
a2979e8e 1716
7950790f
GM
1717 * xfns.c (x-create-frame, Qalpha):
1718 Initialize the frame parameter `alpha'.
b9fb2c45
GM
1719 * xterm.c (OPAQUE, OPACITY): New.
1720 (x_set_frame_alpha): New function.
1721 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
a2979e8e 1722
7950790f
GM
1723 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
1724 * w32fns.c (w32_frame_parm_handlers): Likewise.
a2979e8e 1725
5c2a72d9
JR
17262008-05-20 Jason Rumney <jasonr@gnu.org>
1727
20746fe4
JB
1728 * w32font.c (add_font_entity_to_list): Don't add non-opentype
1729 truetype fonts to opentype list.
5c2a72d9 1730
eb152aa9
JB
17312008-05-20 Juanma Barranquero <lekktu@gmail.com>
1732
1733 * fontset.c (Ffontset_info): Doc fix.
1734 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
1735 <ignore-relative-composition>: Fix typos in docstrings.
1736
1737 * font.c (syms-of-font) <font-encoding-alist>:
1738 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
1739 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
1740 (Ffont_otf_alternates): Doc fixes.
1741
ad00e1a3
KH
17422008-05-20 Kenichi Handa <handa@m17n.org>
1743
1744 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
1745 font.h through out the file.
9e0e0d77 1746 (FONT_DRIVERS): Rename from FONTOBJ.
12855572 1747 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
ad00e1a3
KH
1748 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
1749
1750 * emacs.c (main): Call syms_of_font unconditionally.
1751
1752 * font.h (find_font_encoding): Extern it.
1753
9e0e0d77 1754 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
ad00e1a3
KH
1755 fontset.c.
1756 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
1757 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
1758 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
1759 only when HAVE_WINDOW_SYSTEM is defined.
1760 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
1761 when HAVE_WINDOW_SYSTEM is defined.
1762
9e0e0d77
SM
1763 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
1764 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
ad00e1a3
KH
1765
1766 * xfaces.c: Include font.h unconditionally.
1767 (merge_face_ref, merge_face_vectors)
1768 (Finternal_set_lisp_face_attribute): Cancel the previous change.
1769
40a69fac
SM
17702008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
1771
1772 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
1773 indirect_variable.
1774 * eval.c (lisp_indirect_variable): New fun.
1775 (Fuser_variable_p): Use it.
1776
8c2dccbf
SM
17772008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
1778
ad97b375
SM
1779 * lisp.h (indirect_variable):
1780 * data.c (indirect_variable, let_shadows_buffer_binding_p):
1781 Use Lisp_Symbol pointers rather than Lisp_Object.
1782 Adjust callers.
1783 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
1784 To this end, change calling-convention.
1785
8c2dccbf
SM
1786 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
1787 if some non-hidden buffers are selected by string&pred.
1788
ad97b375
SM
17892008-05-19 Chong Yidong <cyd@stupidchicken.com>
1790
1791 * process.c (wait_reading_process_output): Always check status
1792 when in batch mode.
1793
25b81df4
KH
17942008-05-19 Kenichi Handa <handa@m17n.org>
1795
1796 * font.c (font_list_entities): Fix handling of cache.
1797 (font_matching_entity): Likewise.
1798
8c2dccbf 1799 * ftfont.c (cs_iso8859_1): Delete.
25b81df4 1800 (ft_face_cache): New variable.
1f204af3 1801 (struct ftfont_info): New member fc_charset_idx.
8c2dccbf 1802 (ftfont_build_basic_charsets): Delete.
25b81df4
KH
1803 (fc_charset_table): New variable.
1804 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
1805 . FC_CHARSET_IDX) as :font-entity property in the font entity.
1806 Callers changed.
dde8403f 1807 (ftfont_lookup_cache, ftfont_get_charset): New functions.
8c2dccbf
SM
1808 (ftfont_spec_pattern): New argument fc_charset_idx.
1809 Check registry more rigidly. Change callers.
a2979e8e 1810 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
25b81df4
KH
1811 change of :font-entity property of the font.
1812
a2979e8e 1813 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
25b81df4
KH
1814 property of the font.
1815
d4a1d553
JB
18162008-05-18 Juanma Barranquero <lekktu@gmail.com>
1817
1818 * coding.c (Fcoding_system_p): Rename argument to match docstring.
1819 (Funencodable_char_position, Fcheck_coding_systems_region)
1820 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
1821 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
1822 (Ffind_operation_coding_system, Fset_coding_system_priority)
1823 (Fcoding_system_eol_type): Doc fixes.
1824
07cfc4e7
GM
18252008-05-17 Glenn Morris <rgm@gnu.org>
1826
1827 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
1828
1cab27d2
EZ
18292008-05-16 Eli Zaretskii <eliz@gnu.org>
1830
1831 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
1832 and st_gid.
1833
dde8403f 1834 * frame.c (Fdelete_frame): Don't call font_update_drivers if
1cab27d2
EZ
1835 HAVE_WINDOW_SYSTEM is not defined.
1836
1837 * xfaces.c (merge_face_ref, merge_face_vectors)
1838 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
1839 HAVE_WINDOW_SYSTEM is defined.
1840 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
1841
86b89713
SM
18422008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
1843
1844 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
1845
6750bd93
YM
18462008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1847
62867b11 1848 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
6750bd93 1849
79f105c9
KH
18502008-05-15 Kenichi Handa <handa@m17n.org>
1851
1852 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
1853 preference.
1854
6b33da9f
GM
18552008-05-15 Glenn Morris <rgm@gnu.org>
1856
1857 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
1858
d0e4433b
CY
18592008-05-15 Chong Yidong <cyd@stupidchicken.com>
1860
1861 * fns.c (init_fns): Don't initialize weak_hash_tables here.
1862 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
1863
1864 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
1865
5f2d79e0
KH
18662008-05-15 Kenichi Handa <handa@m17n.org>
1867
fd8a1cae
KH
1868 * ftfont.c (ftfont_list): Downcase family name to check generic
1869 families.
1870
1871 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
1872 font-spec for QCfont value.
1873
5f2d79e0
KH
1874 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
1875 buffer. Check the return value of it.
1876
e5e29349
JR
18772008-05-14 Jason Rumney <jasonr@gnu.org>
1878
1879 * w32term.c (w32_get_glyph_overhangs): Remove.
1880 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
1881
1f09f444
KH
18822008-05-14 Kenichi Handa <handa@m17n.org>
1883
1884 * font.c (font_prop_validate): Make nil a valid value.
be9442ad
KH
1885 (font_clear_cache): Check if the cached vector of entities is nil
1886 or not.
1f09f444 1887
ecae6af9 18882008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
f8240abd
YM
1889
1890 * emacs.c (main_thread): Conditionalize on
1891 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
1892 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
1893
1894 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
1895 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
1896 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
1897
c6b278e7
KH
18982008-05-14 Kenichi Handa <handa@m17n.org>
1899
1900 * coding.c (detect_coding_iso_2022): Ignore a coding category that
1901 has no corresponding coding system.
1902
19032008-05-14 Jason Rumney <jasonr@gnu.org>
1904
1905 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
1906
1907 * w32font.h (w32font_open_internal): Update declaration.
1908
1909 * w32font.c (w32font_open_internal): Change last argument from
1910 w32font_info struct to font object. Fill in font object from
1911 font_entity. Get Outline metrics if possible. Use them to
1912 calculate underline position and thickness. Use xlfd name as name
1913 property. Don't set codepage.
1914 (w32font_open): Pass font_object to w32font_open_internal. Don't
a879ee6f 1915 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
c6b278e7
KH
1916 (w32font_draw): Use s->font.
1917 (clear_cached_metrics): Don't clear non-existent blocks.
1918
1919 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
1920 font was not found.
a879ee6f 1921 (x_draw_glyph_string): Use underline position and thickness from font.
c6b278e7
KH
1922
1923 * w32uniscribe.c (uniscribe_open): Pass font_object to
1924 w32font_open_internal.
1925
19262008-05-14 Kenichi Handa <handa@m17n.org>
1927
1928 These changes are to delete all legacy font-handling codes, and
1929 make Emacs use only font-backends.
1930
1931 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
1932 (frame.o, image.o, print.o): Depend on $(FONTSRC).
1933
1934 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
1935
1936 * charset.h (Vcharset_non_preferred_head)
1937 (Vcurrent_iso639_language): Extern them.
1938
1939 * charset.c (Vcharset_non_preferred_head): New variable.
1940 (Vcurrent_iso639_language): New variable.
1941 (syms_of_charset): Declare it as a Lisp variable.
1942 (char_charset): Don't check non preferred charsets. As a last
1943 resort, return charset_unicode.
1944 (Fset_charset_priority): Update Vcharset_non_preferred_head.
1945
1946 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
1947 conditionals. Don't check enable_font_backend. Delete all codes
1948 used only when USE_FONT_BACKEND is not defined.
1949
1950 * dispextern.h (struct glyph_string): Change type of `font' to
1951 `struct font *'.
1952 (struct glyph_string): New member underline_position and
1953 underline_thickness.
1954 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
1955 (struct face): Change type of `font' to `struct font *'. Remove
1956 members `font_name', `font_info_id'.
1957 (per_char_metric, encode_char): Delete externs.
1958 (calc_pixel_width_or_height): Adjust the prototype.
1959
1960 * emacs.c (enable_font_backend): Delete extern.
1961 (main): Don't set enable_font_backend. Don't check the command
1962 line argument "-disable-font-backend".
1963
1964 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
1965 (enum font_property_index): New members FONT_DPI_INDEX,
1966 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
1967 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
1968 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
1969 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
1970 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
1971 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
1972 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
1973 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
1974 (struct font_spec, struct font_entity): New structs.
1975 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
1976 (struct font): Many members from old "struct font_info" moved to
1977 here. Members font and entity deleted.
1978 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
1979 the new font-related objects.
1980 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
1981 (CHECK_FONT_GET_OBJECT): Likewise.
1982 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
1983 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
1984 (struct font_driver): New members case_sensitive anc check. Type
1985 of the member list and open changed.
1986 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
1987 (font_symbolic_width, font_find_object, font_get_spec)
1988 (font_set_lface_from_name): Delete extern.
20746fe4 1989 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
c6b278e7
KH
1990
1991 * font.c: Include <strings.h>.
1992 (enable_font_backend): Delete it.
1993 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
1994 (CHECK_VALIDATE_FONT_SPEC): Delete it.
1995 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
1996 (null_string): Delete it.
1997 (null_vector): Make it static.
1998 (font_family_alist): Delete it.
1999 (Qnormal): Extern it.
2000 (QCextra, QClanguage): Delete it.
1f204af3 2001 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
c6b278e7
KH
2002 (font_make_spec, font_make_entity, font_make_object)
2003 (font_intern_prop): Renamed from intern_downcase. Don't downcase
2004 the string. Callers changed.
2005 (font_pixel_size): Adjusted for the format change of font-related
2006 objects.
2007 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
2008 (font_style_to_value, font_style_symbolic): New function.
2009 (build_font_family_alist): Delete it.
2010 (font_registry_charsets): Use Fassoc_string instead of
2011 assq_no_quit.
2012 (font_prop_validate_symbol): Don't return null_string.
2013 (font_prop_validate_style): Adjusted for the change of
2014 style-related values in a font vector.
20746fe4 2015 (font_property_table): Delete entries for QClanguage and
c6b278e7
KH
2016 QCantialias, add entries for QCavgwidth.
2017 (get_font_prop_index): Delete the 2nd argument FROM.
2018 (font_prop_validate): Arguments changed.
2019 (font_put_extra): Adjusted for the change of font-related objects.
2020 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
2021 (font_parse_fcname, font_unparse_fcname)
2022 (font_prepare_composition): Likewise.
2023 (font_parse_family_registry): Renamed from font_merge_old_spec.
2024 (otf_open): Delete the 1st arg entity.
2025 (font_otf_capability): Adjusted for the above change.
2026 (font_score): New arg alternate_families. Adjusted for the change
2027 of font-related objects.
2028 (font_sort_entites): New arg best_only.
2029 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
2030 Delete them.
2031 (font_match_p): Check alternate families.
2032 (font_find_object): Delete it.
2033 (font_check_object): New function.
c3f9fba8 2034 (font_clear_cache): Adjusted for the change of font-related objects.
c6b278e7
KH
2035 (font_delete_unmatched): New arg.
2036 (font_list_entities): Call font_driver->list with a spec that
2037 doesn't specify style-related properties.
2038 (font_matching_entity): Arguments changed. Caller changed.
c3f9fba8 2039 (font_open_entity): Adjusted for the change of font-related objects.
c6b278e7
KH
2040 (font_close_object, font_has_char, font_encode_char)
2041 (font_get_name, font_get_spec): Likewise.
c3f9fba8
JB
2042 (font_spec_from_name, font_clear_prop, font_update_lface):
2043 New functions.
2044 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
c6b278e7
KH
2045 (font_prepare_for_face, font_done_for_face, font_open_by_name)
2046 (font_at): Adjusted for the change of font-related objects.
2047 (font_range): New function.
2048 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
c3f9fba8 2049 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
c6b278e7
KH
2050 (Fcopy_font_spec, Fmerge_font_spec): New function.
2051 (Ffont_family_list): Renamed from list-families.
2052 (Finternal_set_font_style_table): Arguments changed.
2053 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
2054 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
2055 change of font-related objects.
c3f9fba8 2056 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
c6b278e7 2057
3554e566 2058 * fontset.h (struct font_info): Delete it. Most members go to
c6b278e7
KH
2059 struct font.
2060 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
2061 (enum FONT_SPEC_INDEX): Delete it.
2062 (font_info, list_fonts_func, load_font_func, query_font_func)
2063 (set_frame_fontset_func, find_ccl_program_func)
2064 (get_font_repertory_func, new_fontset_from_font_name): Delete
2065 externs.
2066 (fontset_from_font_name): Extern it.
2067 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
2068 (FONT_INFO_FROM_FACE): Deleted.
2069 (face_for_font): Adjust prototype.
2070
2071 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
2072 conditionals. Don't check enable_font_backend. Delete all codes
2073 used only when USE_FONT_BACKEND is not defined.
2074 (get_font_info_func, list_font_func, load_font_func)
2075 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
2076 (get_font_repertory_func): Delete them.
2077 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
2078 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
2079 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
2080 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
2081 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
2082 (fontset_compare_rfontdef): New function.
2083 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
2084 ront-defs by qsort. Adjusted for the change of font-group vector.
2085 (load_font_get_repertory): Deleted.
2086 (fontset_find_font): Use new macros to ref/set elements of
2087 font-def and rfont-def.
2088 (fontset_font): Fix the timing of remembering that no font for C.
2089 (free_face_fontset): Do nothing if the face has no fontset.
2090 (face_suitable_for_char_p): Use new macros to ref/set elements of
2091 rfont-def.
2092 (face_for_char): Likewise. Call face_for_char with font_object.
2093 (fs_load_font): Delete. Delete #pragma surrounding it.
2094 (fs_query_fontset): Use strcasecmp instead of strcmp.
2095 (generate_ascii_font_name): Adjusted for the format change of
2096 font-spec.
2097 (Fset_fontset_font): Likewise. Use new macros to set elements of
2098 font-def.
2099 (Fnew_fontset): Use font_unparse_xlfd to generate
2100 FONTSET_ASCII (fontset).
2101 (new_fontset_from_font_name): Deleted.
2102 (fontset_from_font): Renamed from new_fontset_from_font. Check if
2103 a fontset is already created for the font. FIx updating of
2104 Vfontset_alias_alist.
2105 (fontset_ascii_font): Deleted.
2106 (Ffont_info): Adjusted for the format change of font-spec.
2107 (Finternal_char_font): Likewise.
2108 (Ffontset_info): Likewise.
2109 (syms_of_fontset): Don't check load_font_func.
2110
2111 * fns.c (internal_equal): Handle PREV_FONT.
2112
2113 * frame.h: Delete USE_FONT_BACKEND conditional.
2114
2115 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
2116 conditionals. Don't check enable_font_backend. Delete all codes
2117 used only when USE_FONT_BACKEND is not defined.
2118 (x_set_font): Call x_new_font, not x_new_fontset2.
2119 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
2120 already set for the frame.
2121
2122 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
2123 a font-entity by font_make_entity. Use font_intern_prop instead
2124 of intern_downcase. Use FONT_SET_STYLE to set a style-related
2125 font property. If a font is scalable, set avgwidth property to 0.
2126 Set font-entity property by font_put_extra.
2127 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
2128 (ffont_driver): Adjusted for the change of struct font_driver.
2129 (ftfont_spec_pattern): New function.
2130 (ftfont_list): Return a list, not vector.
2131 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
2132 (ftfont_list_family): Don't downcase names.
2133 (ftfont_free_entity): Deleted.
2134 (ftfont_open): Return a font-ojbect. Adjusted for the change of
2135 struct font. Get underline_thickness and underline_position from
2136 font property. Don't update dpyinfo->smallest_font_height and
2137 dpyinfo->smallest_char_width.
2138 (ftfont_close): Don't free `struct font'.
2139 (ftfont_has_char): Adjusted for the format change of font-entity.
2140 (ftfont_encode_char, ftfont_text_extents): Likewise.
2141
2142 * ftxfont.c (ftxfont_list): Return a list, not vector.
2143 (ftxfont_open): Return a font-ojbect. Adjusted for the change of
2144 struct font. Get underline_thickness and underline_position from
2145 font property. Don't update dpyinfo->smallest_font_height and
2146 dpyinfo->smallest_char_width.
2147 (ftxfont_close): Don't decrese FRAME_X_DISPLAY_INFO (f)->n_fonts.
2148 (ftxfont_draw): Adjusted for the change of struct font.
2149
2150 * image.c (image_ascent): Don't include "charset.h". Include
2151 "character.h" and "font.h".
2152
2153 * lisp.h (enum pvec_type): New member PREV_FONT.
2154 (Fassoc_string): EXFUN it.
2155
2156 * print.c: Include font.h.
2157 (print_object): Handle font-related objects.
2158
2159 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
2160 conditionals. Don't check enable_font_backend. Delete all codes
2161 used only when USE_FONT_BACKEND is not defined.
2162 (handle_auto_composed_prop): Do nothing if it->f is not on a
2163 window system. Check how many following characters can be
2164 displayed by the same font.
2165 (calc_pixel_width_or_height): Type of the 4th arg is changed to
2166 'struct font *'.
2167 (get_char_face_and_encoding): Assign the whole encoding task to
2168 the `encode-char' method of a font driver.
2169 (fill_composite_glyph_string): Adjusted for the change of `struct
2170 face' and `struct glyph_string'.
2171 (fill_glyph_string): Likewise.
2172 (get_per_char_metric): Arguments changed.
2173 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
2174 and `struct glyph_string'.
2175 (produce_stretch_glyph, calc_line_height_property)
2176 (x_produce_glyphs): Likewise.
2177
2178 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
2179 conditionals. Don't check enable_font_backend. Delete all codes
2180 used only when USE_FONT_BACKEND is not defined. Use
2181 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
2182 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
2183 (Qp): Extern them.
2184 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
2185 Deleted.
2186 (struct font_name): Deleted.
2187 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
2188 (compare_fonts_by_sort_order): New function.
2189 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
2190 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
2191 Deleted.
2192 (Fx_family_fonts): Use font_list_entities, and sort fonts by
2193 compare_fonts_by_sort_order.
2194 (Fx_font_family_list): Call Ffont_family_list.
2195 (face_numeric_value, face_numeric_weight, face_numeric_slant)
2196 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
2197 (face_symbolic_slant, face_symbolic_swidth)
2198 (split_font_name_into_vector, build_font_name_from_vector)
2199 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
2200 (font_rescale_ratio, split_font_name, build_font_name)
2201 (free_font_names, sort_fonts, x_face_list_fonts)
2202 (face_font_available_p, sorted_font_list, cmp_font_names)
2203 (font_list_1, concat_font_list, font_list, remove_duplicates):
2204 Deleted.
2205 (Fx_list_fonts): Use Ffont_list.
2206 (LFACE_AVGWIDTH): Deleted.
2207 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
2208 by FONTP.
2209 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
2210 (set_lface_from_font_name): Delete it.
2211 (set_lface_from_font): Renamed from
2212 set_lface_from_font_and_fontset. Caller changed. Don't set
2213 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
2214 for face.
c3f9fba8
JB
2215 (merge_face_vectors): Copy font-spec if necessary.
2216 Clear properties of the font-spec if necessary.
c6b278e7
KH
2217 (merge_face_ref): Clear properties of the font-spec if necessary.
2218 (Finternal_set_lisp_face_attribute): Likewise.
2219 (set_font_frame_param): Use font_load_for_lface to load a
2220 font-object, and call Fmodify_frame_parameters with it.
2221 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
2222 font name by Ffont_xlfd_name.
2223 (Finternal_lisp_face_attribute_values): Don't check QCweight,
2224 QCslant, and QCwidth.
2225 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
2226 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
2227 Compare fonts by EQ.
2228 (lookup_non_ascii_face): Deleted.
2229 (face_for_font): The 2nd argument changed.
c3f9fba8
JB
2230 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
2231 Check atomic font properties by case insensitive.
c6b278e7
KH
2232 (realize_non_ascii_face): Set face->overstrike correctly.
2233 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
2234 (dump_realized_face): Get font name from
2235 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
2236
2237 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
2238 conditionals. Don't check enable_font_backend. Delete all codes
2239 used only when USE_FONT_BACKEND is not defined.
2240 (xic_create_xfontset): Original code deleted and renamed from
2241 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
2242 (x_make_gc): Don't set GCFont in GCs.
2243 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
2244 opened by "fixed".
2245 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
2246 find_ccl_program_func, query_font_func, set_frame_fontset_func,
2247 get_font_repertory_func.
2248
2249 * xfont.c: Include <stdlib.h> and "ccl.h".
2250 (struct xfont_info): New structure.
2251 (xfont_query_font): Deleted.
2252 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
2253 moved from xterm.c.
2254 (xfont_driver): Adjusted for the change of struct font_driver.
2255 (compare_font_names): New function.
2256 (xfont_list_pattern): Sort font names case insensitively. Make
2257 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
2258 (xfont_list): Return a list, not vector.
2259 (xfont_match): If the font doesn't have QCname property, generate
2260 a name from the other font properties.
2261 (xfont_open): Return a font-ojbect. Adjusted for the change of
2262 struct font. Get underline_thickness and underline_position from
2263 font property. Don't update dpyinfo->smallest_font_height and
2264 dpyinfo->smallest_char_width.
2265 (xfont_close): Don't free struct font.
2266 (xfont_prepare_face): Adjusted for the change of struct font.
2267 (xfont_done_face): Deleted.
2268 (xfont_has_char): Adjusted for the change of struct font.
2269 (xfont_encode_char, xfont_draw): Likewise.
2270 (xfont_check): New function.
2271
2272 * xftfont.c (xftfont_list): Adjusted for the change of `list'
2273 callback function.
2274 (xftfont_match): Adjusted for the fontmat change of font-entity.
2275 (xftfont_open): Adjusted for the format change of font-entity and
2276 font-object. Adjusted for the change of struct font. Return a
2277 font-object. Don't update dpyinfo->smallest_font_height and
2278 dpyinfo->smallest_char_width.
2279 (xftfont_close): Block input while calling XftFontClose.
2280 (xftfont_prepare_face): Don't block input while calling
2281 xftfont_get_colors. Adjusted for the change of struct font.
2282 (xftfont_shape): Return value of error case fixed.
2283
2284 * xrdb.c (x_load_resources): Don't setup a fontset resource.
2285
2286 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
2287 conditionals.
2288 (FONT_WIDTH): Return (f)->max_width.
2289 (struct x_display_info): Delete member `font'.
2290 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
2291 (x_find_ccl_program, x_get_font_repertory): Delete externs.
2292 (struct x_output): Change type of `font' to `struct font *'.
2293
2294 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
2295 conditionals. Don't check enable_font_backend. Delete all codes
c3f9fba8 2296 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
c6b278e7
KH
2297 (x_per_char_metric, x_encode_char): Deleted.
2298 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
2299 (x_compute_glyph_string_overhangs): Adjusted for the change of
c3f9fba8 2300 `struct face'.
c6b278e7
KH
2301 (x_draw_glyph_string_foreground)
2302 (x_draw_composite_glyph_string_foreground): Likewise.
2303 (x_draw_glyph_string): Likewise. Use font->underline_position and
2304 font->underline_thickness.
2305 (x_new_font): Renamed from x_new_fontset2.
2306 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
2307 (x_check_font): Call `check' method of a font driver.
2308 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
2309 (x_query_font, x_get_font_repertory): Deleted.
2310 (x_find_ccl_program): Renamed and moved to xfont.c.
2311 (x_redisplay_interface): Adjusted for the change of `struct
2312 redisplay_interface'.
2313
2314 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
2315 conditionals. Don't check enable_font_backend. Delete all codes
2316 used only when USE_FONT_BACKEND is not defined. Surround non-used
2317 code by "#ifdef OLD_FONT" and "endif".
2318 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
2319
2320 * w32font.h (struct w32font_info): New member.
2321 (FONT_COMPAT): New macro.
2322 (w32font_open_internal): Prototype adjusted.
2323
2324 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
2325 OLD_FONT" and "endif".
2326
2327 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
2328 conditionals. Don't check enable_font_backend. Delete all codes
2329 used only when USE_FONT_BACKEND is not defined.
2330 (w32font_open): Return a font-object. Make a font-object by
2331 font_make_object. Adjusted for the change of struct w32font_info.
2332 (w32font_close): Don't free struct font. Adjusted for the change
2333 of struct w32font_info.
2334 (w32font_encode_char, w32font_text_extents, w32font_draw):
2335 Adjusted for the change of struct w32font_info.
2336 (w32font_draw): Likewise.
2337 (w32font_list_internal): Return a list, not vector.
2338 (w32font_open_internal): Change the 4th arg to font-object.
c3f9fba8 2339 Adjusted for the change of struct w32font_info and font-object format.
c6b278e7
KH
2340 (add_font_name_to_list): Don't downcase names.
2341 (w32_enumfont_pattern_entity): Make a font-entity by
2342 font_make_entity. Adjusted for the format change of font-entity.
2343 Use FONT_SET_STYLE to set a style-related font property. If a
2344 font is scalable, set avgwidth property to 0. Set font-entity
2345 property by font_put_extra.
c3f9fba8 2346 (font_matches_spec): Adjusted for the format change of font-entity.
c6b278e7
KH
2347 (w32_weight_table, w32_decode_weight): New variables.
2348 (w32_encode_weight): New function.
2349 (fill_in_logfont): Adjusted for the format change of font-spec.
2350 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
2351 weight value.
2352 (w32font_driver): Adjusted for the change of struct font_driver.
2353
2354 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
f245f2c6 2355 conditionals. Don't check enable_font_backend. Surround non-used
c6b278e7
KH
2356 code by "#ifdef OLD_FONT" and "endif".
2357 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
2358 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
2359
2360 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
2361 conditionals. Don't check enable_font_backend. Delete all codes
2362 used only when USE_FONT_BACKEND is not defined. Surround non-used
2363 code by "#ifdef OLD_FONT" and "endif".
2364
2365 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
c3f9fba8
JB
2366 (uniscribe_open): Return value changed to font-object.
2367 Adjusted for the format change of font-object.
2368 (uniscribe_otf_capability): Adjusted for the change of struct font.
c6b278e7
KH
2369 (add_opentype_font_name_to_list): Don't downcase names.
2370 (uniscribe_font_driver): Adjusted for the change of struct
2371 font_driver.
2372
f9d4c199
CY
23732008-05-13 Chong Yidong <cyd@stupidchicken.com>
2374
2375 * dispnew.c (update_frame_1): Check if tty output is still valid
2376 before flushing it.
2377
44f249c0
JD
23782008-05-13 Jan Djärv <jan.h.d@swipnet.se>
2379
2380 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
2381 to Gtk+ menus.
2382
01bb4018
SM
23832008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
2384
3271a8f5
SM
2385 * dired.c (file_name_completion): Tweak the code so as to always do it
2386 in a single pass. Tighten the scope of some variables.
2387
01bb4018
SM
2388 * dired.c (Qdefault_directory): New var.
2389 (file_name_completion): Use it instead of Fexpand_file_name.
2390 (syms_of_dired): Initialize it.
2391
728bb8e0
SM
23922008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
2393
2394 * fileio.c (double_dollars): Remove dead code.
2395
ed4c17bb
EZ
23962008-05-10 Eli Zaretskii <eliz@gnu.org>
2397
6c5665e9
EZ
2398 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
2399 Mention w32-get-true-file-attributes in doc string.
2400
ed4c17bb
EZ
2401 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
2402
71e1f69d
GM
24032008-05-09 Glenn Morris <rgm@gnu.org>
2404
2405 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
2406 2008-04-23.
2407
ee7a2e7a
EZ
24082008-05-09 Eli Zaretskii <eliz@gnu.org>
2409
8aaaec6b
EZ
2410 Support for reporting owner and group of each file on MS-Windows:
2411 * dired.c (stat_uname, stat_gname): New functions, with special
2412 implementation for w32.
2413 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
2414
ee7a2e7a
EZ
2415 * w32.c: Rename the_passwd_* to dflt_passwd_*.
2416 (dflt_group_name): New static variable.
728bb8e0 2417 (dflt_group): Rename from the_group.
ee7a2e7a
EZ
2418 (init_user_info): Init dflt_group fields. Get user's group name
2419 from LookupAccountSid.
8aaaec6b
EZ
2420 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
2421 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
2422 New initialization states.
2423 (globals_of_w32): Initialize them to zero. Initialize the default
2424 group name to "None".
2425 (GetFileSecurity_Name): New global var, the name of the function
2426 to call for GetFileSecurity.
2427 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
2428 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
2429 (get_file_security, get_security_descriptor_owner)
2430 (get_security_descriptor_group, is_valid_sid)
2431 (get_file_security_desc, get_rid, get_name_and_id)
2432 (get_file_owner_and_group): New functions.
2433 (stat): Use get_file_security_desc and get_file_owner_and_group to
2434 report the owner and primary group of each file. Don't ignore the
728bb8e0
SM
2435 high 32 bits of file's size, now that st_size is 64-bit wide.
2436 Fix test when to get true file attributes.
8aaaec6b
EZ
2437 (init_user_info): Use get_rid instead of equivalent inline code.
2438 (fstat): Don't ignore the high 32 bits of file's size.
ee7a2e7a 2439
b199c436
CY
24402008-05-09 Chong Yidong <cyd@stupidchicken.com>
2441
2442 * image.c (png_load): Use correct bit-depth for setting background
2443 color.
2444
86914123
EZ
24452008-05-08 Eli Zaretskii <eliz@gnu.org>
2446
2447 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
2448 epa-hook.elc.
2449
67b5d7de
JB
24502008-05-08 Juanma Barranquero <lekktu@gmail.com>
2451
2452 * font.c (Ffont_match_p): Don't use `iff' in docstring.
2453
1a111394
DN
24542008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
2455
2456 * macfns.c (Fx_create_frame): Make a copy of frame parameters
2457 because the original parameters are in pure storage now.
2458 (mac_window): Remove unused params. Update callers.
2459
6d77fa95
SM
24602008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
2461
7a3d90dc
SM
2462 * lread.c (substitute_object_recurse): Use lower-level primitives.
2463 Don't signal errors when traversing sub-char-tables.
2464 Don't loop over all the possible characters when traversing char-tables.
2465
6d77fa95
SM
2466 * print.c (print_preprocess): Add sub-char-tables to the print-table,
2467 just like we do in print.c.
2468
140eb764
SM
24692008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
2470
2471 * minibuf.c (Ftry_completion): Remove code left over from when we used
2472 scmp instead of Fcompare_strings.
2473
e9184ccb
JB
24742008-05-04 Juanma Barranquero <lekktu@gmail.com>
2475
2476 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
2477
0e9378b3
YM
24782008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2479
2480 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
2481 Create bitmap context in native byte order.
2482
f67e15be
MB
2483 * macterm.c (XDrawLine)
2484 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
2485 context in native byte order.
064032d0 2486
f67e15be 24872008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
50eff40f
YM
2488
2489 * config.in: Regenerate.
2490
2491 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
2492 New definitions for Image I/O support.
2493 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
2494 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
2495 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
2496 (mac_data_provider_release_data, image_load_image_io)
2497 [USE_MAC_IMAGE_IO]: New functions.
2498 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
2499 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
2500 (init_image_func_pointer) [MAC_OSX]: Remove function.
2501 (image_load_quartz2d) [MAC_OSX]: Check availability of
2502 CGImageCreateWithPNGDataProvider at compile time.
2503 Use lowercase `false' for boolean constant.
2504 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
2505 Use image_load_image_io.
2506 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
2507 Don't check MyCGImageCreateWithPNGDataProvider.
2508 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
2509 Don't call init_image_func_pointer.
2510
2511 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
2512
2513 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
2514 Make variable non-static.
2515 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
2516 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
2517
2518 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
2519 (RED_FROM_ULONG): Mask off higher bits.
2520 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
2521
2522 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
2523 Include AvailabilityMacros.h.
2524 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
2525 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
2526
c6bff69e
SM
25272008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
2528
2529 * chartab.c (Fset_char_table_range): If range is t, really set all
2530 chars to that value.
2531
7412d429
EZ
25322008-05-03 Eli Zaretskii <eliz@gnu.org>
2533
2534 * dired.c (Ffile_attributes): Don't allow the device number become
2535 negative.
2536
f83bbfac
DU
25372008-05-02 Daiki Ueno <ueno@unixuser.org>
2538
5a81d3d7 2539 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
f83bbfac 2540
2e3148e2
JL
25412008-05-02 Juri Linkov <juri@jurta.org>
2542
2543 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
728bb8e0
SM
2544 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
2545 DEFAULT argument as a list of default values in docstrings.
2e3148e2 2546
923fb88c
CY
25472008-05-01 Chong Yidong <cyd@stupidchicken.com>
2548
2549 * puresize.h (BASE_PURESIZE): Increase to 1210000.
2550
047aaeb9
MR
25512008-05-01 Martin Rudalics <rudalics@gmx.at>
2552
2553 * dispnew.c (change_frame_size_1): Preserve small windows when
2554 shrinking frames by calling set_window_height|width with third
2555 arg 2.
2556
2557 * window.h (struct window): Replace field too_small_ok by field
2558 resize_proportionally.
2559
2560 * window.c (make_window): Initialize resize_proportionally.
2561 (enlarge_window): Temporarily set resize_proportionally to make
2562 sure that shrink_windows does scale the window proportionally.
2563 (shrink_windows): When window has resize_proportionally set try
2564 to shrink it proportionally by stealing from other windows.
2565 (struct saved_window, Fset_window_configuration)
2566 (compare_window_configurations): Handle resize_proportionally.
2567 (WINDOW_TOTAL_SIZE): New macro.
2568 (window_min_size, shrink_windows, size_window): Use it.
c6bff69e 2569 (check_min_window_sizes): Remove. Invalid values of
047aaeb9
MR
2570 window-min-height|width are handled by window_min_size_2 now.
2571 (size_window, Fsplit_window, enlarge_window)
2572 (adjust_window_trailing_edge, grow_mini_window): Don't call
2573 check_min_window_sizes.
c6bff69e
SM
2574 (window_min_size_2, window_min_size_1, window_min_size):
2575 New argument safe_p for retrieving "safe" minimum sizes.
c3f9fba8 2576 (Fdisplay_buffer, Fsplit_window, enlarge_window)
c6bff69e
SM
2577 (adjust_window_trailing_edge, grow_mini_window):
2578 Adjust arguments of window_min_size... functions.
047aaeb9
MR
2579 (shrink_windows): Argument min_size removed. New argument
2580 safe_p allows shrinking windows to their safe minimum sizes.
2581 Calculate minimum size and decide whether a window shall be
2582 deleted for each window individually.
2583 (size_window): When nodelete_p equals 2, tell shrink_windows to
2584 delete windows only if their new minimum size is no more safe.
2585 (shrink_window_lowest_first): Call window_min_size_1 to make
2586 sure to preserve modeline of bottom-most window when resizing
2587 the minibuffer.
2588 (Fset_window_configuration, Fcurrent_window_configuration)
2589 (compare_window_configurations): Do not handle
2590 window-min-height|width any more.
2591 (syms_of_window): Clarify window-min-height|width doc-strings.
2592
2a54a229
SM
25932008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
2594
2595 * dired.c (file_name_completion): Fix up the encoding/decoding issue
2596 some more. Copy some of the code from Ftry_completions.
2597 Remove special case code that dates back to initial revision when the
2598 slash was only added when necessary and that can't trigger nowadays.
2599
384bc634
KH
26002008-04-27 Kenichi Handa <handa@m17n.org>
2601
2602 * font.c (font_prop_validate): Signal `error' instead of `font'.
2603
2c2279c6
JR
26042008-04-29 Jason Rumney <jasonr@gnu.org>
2605
2606 * w32fns.c (Fw32_battery_status): New defun.
2607 (syms_of_w32fns): Defsubr it.
2608
fb4a622a
AS
26092008-04-28 Andreas Schwab <schwab@suse.de>
2610
2611 * dired.c (file_name_completion): Fix another mixing of encoded
2612 and decoded names.
2613
23f250f4
JB
26142008-04-28 Juanma Barranquero <lekktu@gmail.com>
2615
2616 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
2617
d8d30dff
JB
26182008-04-27 Juanma Barranquero <lekktu@gmail.com>
2619
2620 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
2621
ea6104a8
AS
26222008-04-27 Andreas Schwab <schwab@suse.de>
2623
9c691c00
AS
2624 * dired.c (file_name_completion): Fix inappropriate mixing of
2625 encoded and decoded names.
2626
ec1bf773
AS
2627 * xterm.c (XTread_socket): Fix use of uninitialized variable.
2628
ea6104a8
AS
2629 * puresize.h (BASE_PURESIZE): Increase to 1200000.
2630
01388a3d
EZ
26312008-04-26 Eli Zaretskii <eliz@gnu.org>
2632
2633 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
2634 2008-03-31, it's not needed anymore with `struct stat' definition
2635 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
2636 for the same reasons.
2637
175aea10 26382008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
27af566c
CY
2639
2640 * m/sparc.h: Additional redefinitions for GNU/Linux.
2641
1289aeb8
YM
26422008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2643
2644 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
2645 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
2646 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
2647 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
2648 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
2649 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
2650 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
2651 Likewise.
2652
2653 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
c3f9fba8 2654 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
1289aeb8
YM
2655 (mac_ax_number_of_characters): Add externs.
2656 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
2657 [USE_MAC_TSM]: Likewise.
2658 (mac_handle_text_input_event) [MAC_OSX]:
2659 Handle kEventTextInputOffsetToPos for no active input area case.
2660 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
2661 (mac_handle_document_access_event)
2662 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
2663 (install_application_handler) [MAC_OSX]: Register handlers for
2664 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
2665 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
2666 Register mac_handle_document_access_event.
2667
2668 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
2669 Make functions non-static.
2670
dbd50d4b
SM
26712008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
2672
2673 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
2674 (read_file_name_completion_ignore_case, insert_default_directory)
2675 (Qdefault_directory): Move to minibuffer.el.
2676 (Fread_file_name): Call the new `read-file-name' instead.
2677
9ea37b9d 26782008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
81fe843b
YM
2679
2680 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
2681 Make function non-static.
2682 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
2683 Remove function.
2684 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
2685 Move to mactoolbox.c.
2686 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
2687
2688 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
2689 (mac_rect_make): New macro.
2690
2691 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
2692 instead of float.
2693 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
2694 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
2695 (XSetBackground) [USE_CG_DRAWING]: Likewise.
2696 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
2697 CGRectMake.
2698 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
2699 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
2700 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
2701 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
2702 instead of WindowRef in argument type.
2703 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
2704 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
2705 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
2706 instead of DISPLAY. All uses changed.
2707 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
2708 (x_calc_absolute_position): Simplify so as not to use
2709 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
81fe843b
YM
2710
2711 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
2712 instead of WindowRef in argument type.
2713 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
2714 [TARGET_API_MAC_CARBON]: Remove externs.
2715 (create_apple_event, mac_event_parameters_to_lisp)
2716 [TARGET_API_MAC_CARBON]: Add externs.
2717
d8d30dff 2718 * mactoolbox.c (Vmac_ts_script_language_on_focus)
81fe843b
YM
2719 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
2720 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
2721 is clicked.
2722 (x_activate_menubar): Remove extern for saved_menu_event_location.
2723 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
2724 Move from mac.c.
2725
9ea37b9d 27262008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
a1b41389
YM
2727
2728 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
2729 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
2730
9ea37b9d 27312008-04-23 Jason Rumney <jasonr@gnu.org>
bd735631
JR
2732
2733 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
2734 attributes only for local files.
2735
2736 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
e9184ccb 2737 default to Qlocal.
bd735631 2738
88970542
JL
27392008-04-22 Juri Linkov <juri@jurta.org>
2740
2741 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
2742 read-buffer-to-switch instead of using the letter "B".
2743
92ec67e3
SM
27442008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
2745
2746 * fileio.c (Qdefault_directory): New variable.
2747 (Fread_file_name): Use it to pass `dir' to the completion functions.
2748
a32b2382
CY
27492008-04-20 Chong Yidong <cyd@stupidchicken.com>
2750
2a2e8de7 2751 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
a32b2382 2752
6c8b4f07
SM
27532008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
2754
ece5f847
SM
2755 * keyboard.c (Vpre_help_message): Remove.
2756 (show_help_echo): Remove default C code.
2757
6c8b4f07
SM
2758 * dired.c (directory_files_internal, file_name_completion):
2759 Only call ENCODE_FILE if the string is indeed decoded.
2760
73d798d5
SM
27612008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
2762
2763 * Makefile.in (TOOLKIT_DEFINES): Remove.
2764 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
2765
d8d30dff 27662008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9e13f0c3
YM
2767
2768 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
2769 (mactoolbox.o): New target.
2770
2771 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
2772 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
2773
2774 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
2775 Use mac_set_frame_window_background instead of XSetWindowBackground.
2776 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
2777 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
2778 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
2779 instead of SetWindowTitleWithCFString.
2780 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
2781 Move function to mactoolbox.c.
2782 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
2783 Use mac_set_window_modified instead of SetWindowModified.
2784 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
2785 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
2786 (Fx_focus_frame): Use mac_front_non_floating_window instead of
2787 FrontNonFloatingWindow. Use mac_activate_window instead of
2788 ActivateWindow. Use mac_active_non_floating_window instead of
2789 ActiveNonFloatingWindow.
2790 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
2791 Use mac_show_hourglass and mac_hide_hourglass.
2792 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
2793 instead of GetGlobalMouse.
2794 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
2795 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
2796 Use mac_bring_window_to_front instead of BringToFront.
2797 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
2798 mactoolbox.c.
2799 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
2800 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
2801 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
2802 mactoolbox.c.
2803
2804 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
2805 (XtPointer): Move typedef from macmenu.c.
2806 (enum button_type): Move enum from macmenu.c.
2807 (widget_value): Move typedef from macmenu.c.
2808 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
2809 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
2810 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
2811 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
2812 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
2813 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
2814 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
2815 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
2816 (Selection): Move typedef from macselect.c.
2817 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
2818 macterm.c.
2819 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
2820 (mac_is_window_collapsed, mac_bring_window_to_front)
2821 (mac_send_window_behind, mac_hide_window, mac_show_window)
2822 (mac_collapse_window, mac_front_non_floating_window)
2823 (mac_active_non_floating_window, mac_activate_window)
2824 (mac_move_window_structure, mac_move_window, mac_size_window)
2825 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
2826
2827 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
2828 (enum mac_menu_kind): Move enum to mactoolbox.c.
2829 (min_menu_id): Move variable to mactoolbox.c.
2830 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
2831 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
2832 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
2833 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
2834 [TARGET_API_MAC_CARBON]: Likewise.
2835 (XtPointer): Move typedef to macgui.h.
2836 (enum button_type): Move enum to macgui.h.
d02fe47d
MB
2837 (widget_value): Move typedef to macgui.h.
2838 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
2839 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
2840 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
2841 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
2842 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
2843 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
2844 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
2845 (popup_activated_flag): Make variable non-static.
2846 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
2847 (add_menu_item, fill_menu, dispose_menus):
2848 Move functions to mactoolbox.c.
2849 (restore_show_help_function, menu_target_item_handler)
2850 (install_menu_target_item_handler, mac_handle_dialog_event)
2851 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
2852 [TARGET_API_MAC_CARBON]: Likewise.
2853 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
2854 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
2855 (find_and_call_menu_selection, name_is_separator): Make function
2856 non-static.
2857 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
2858 to mactoolbox.c.
2859 (set_frame_menubar): Don't call install_menu_quit_handler.
2860 (menu_item_selection): New variable.
2861 (mac_menu_show): Use create_and_show_popup_menu.
2862 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
2863 selection but set variable menu_item_selection. All uses changed.
2864 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
2865 Call install_menu_quit_handler. Move to mactoolbox.c.
edd3ff1d 2866
d02fe47d
MB
2867 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
2868 (Selection): Move typedef to macgui.h.
2869 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
2870 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
2871 Make variables non-static.
2872 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
2873 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
2874 Make functions non-static.
2875 (Vmac_service_selection) [MAC_OSX]: Likewise.
2876 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
2877 (mac_valid_selection_target_p, mac_clear_selection)
2878 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
2879 (mac_put_selection_value, mac_selection_has_target_p)
2880 (mac_get_selection_value, mac_get_selection_target_list)
2881 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
2882 Move functions to mactoolbox.c.
2883 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
2884 Likewise.
2885 (copy_scrap_flavor_data, mac_handle_service_event)
2886 (install_service_handler) [MAC_OSX]: Likewise.
2887 (syms_of_macselect) <Vmac_dnd_known_types>:
2888 Use mac_dnd_default_known_types.
463f55ee 2889
d02fe47d
MB
2890 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
2891 Move to mactoolbox.c.
2892 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
2893 (Fx_selection_owner_p): Add EXFUN.
2894 (install_window_handler, remove_window_handler, XSetWindowBackground):
2895 Remove externs.
2896 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
2897 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
2898 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
2899 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
2900 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
2901 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
2902 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
2903 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
2904 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
2905 (create_and_show_popup_menu, mac_get_selection_from_symbol)
2906 (mac_valid_selection_target_p, mac_clear_selection)
2907 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
2908 (mac_put_selection_value, mac_selection_has_target_p)
2909 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
2910 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
2911 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
2912 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
2913 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
2914 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
2915 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
2916 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
2917 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
463f55ee 2918
d02fe47d 2919 * mactoolbox.c: New file.
af253914 2920
d8d30dff 29212008-04-18 Jason Rumney <jasonr@gnu.org>
af253914 2922
d02fe47d 2923 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
af253914 2924
8ee085a4
SM
29252008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
2926
73d798d5
SM
2927 * character.c (Fmultibyte_char_to_unibyte):
2928 Return latin1 chars unchanged.
5556875b 2929
8ee085a4
SM
2930 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
2931 relocated if it points to `name'.
2932
5dff5999
KH
29332008-04-17 Kenichi Handa <handa@m17n.org>
2934
2935 * data.c (Faset): Allow setting a multibyte character in an
2936 ASCII-only unibyte string.
2937
2938 * lisp.h (STRING_SET_MULTIBYTE): New macro.
2939
a51f4969
SM
29402008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
2941
2942 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
2943 done in config.h.
2944
add553ac
JB
29452008-04-16 Juanma Barranquero <lekktu@gmail.com>
2946
2947 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
2948 (Fchar_direction): Add usage in the docstring.
2949
8ad7b280
CY
29502008-04-15 Chong Yidong <cyd@stupidchicken.com>
2951
2952 * keyboard.c (read_key_sequence): Remove always-true checks.
2953
e157d7ba
JR
29542008-04-14 Jason Rumney <jasonr@gnu.org>
2955
2956 * w32font.c (w32font_open_internal): Set max_bounds.descent in
2957 compatibility struct, for better underline positioning.
2958
9ec3aaef 29592008-04-13 David Hansen <david.hansen@gmx.net>
48f7d213
MA
2960
2961 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
2962 string.
2963
36c08864
DN
29642008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
2965
2966 * m/hp800.h (XUINT, XSET): Remove.
2967
f5acc071
JB
29682008-04-12 Juanma Barranquero <lekktu@gmail.com>
2969
2970 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
2971 previous change.
2972
5b5a2ea1
SM
29732008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
2974
2975 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
2976 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
2977
492d9fd6
SM
29782008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
2979
2980 * keymap.h (map_keymap_canonical): Declare.
2981 * xmenu.c (single_keymap_panes): Use it.
2982
dd60787c
GM
29832008-04-11 Glenn Morris <rgm@gnu.org>
2984
2985 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
2986 set the target's value to that of the alias.
2987
c23b5410
SM
29882008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
2989
2990 * term.c (set_tty_color_mode): Left over typo.
2991
e89b536d
MA
29922008-04-10 Michael Albinus <michael.albinus@gmx.de>
2993
2994 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
f5acc071 2995 only after check for file name handler functions. Signal, when
e89b536d
MA
2996 native functionality is not supported.
2997 (syms_of_fileio): Declare it unconditionally.
2998
40a339c8
JR
29992008-04-10 Jason Rumney <jasonr@gnu.org>
3000
31403b24
JR
3001 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
3002 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
3003
40a339c8
JR
3004 * w32.c (logon_network_drive): Also logon to remote drives that
3005 are mapped to drive letters.
3006
96a7394f
GM
30072008-04-10 Glenn Morris <rgm@gnu.org>
3008
3009 * xdisp.c (truncate-partial-width-windows): Doc fix.
3010
34b67b0f
SM
30112008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
3012
3013 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
3014 Move functions to minibuffer.el.
3015 (syms_of_fileio): Don't declare them.
3016
c025fb0a
SM
30172008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
3018
ba5ff07b
SM
3019 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
3020 (syms_of_minibuf): Remove its initialization.
3021
c025fb0a
SM
3022 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
3023
7a6a86ad
JB
30242008-04-09 Juanma Barranquero <lekktu@gmail.com>
3025
3026 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
3027
cf907d69
JR
30282008-04-09 Jason Rumney <jasonr@gnu.org>
3029
3dc94c30
JR
3030 * makefile.w32-in (distclean): Delete makefile too.
3031 (maintainer-clean): New target.
3032
8d28646b
JR
3033 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
3034
cf907d69
JR
3035 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
3036 for new font backend and composite cases.
3037
ef5eb925
JD
30382008-04-09 Jan Djärv <jan.h.d@swipnet.se>
3039
3040 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
3041 Most of the code moved to run_timers.
3042 (do_pending_atimers): Call run_timers.
3043 (run_timers): New function.
3044
cf907d69
JR
3045 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
3046 run atimers.
ef5eb925
JD
3047
3048 * process.c (wait_reading_process_output): The same as above.
3049
9b2cd403
SM
30502008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
3051
32bae13c
SM
3052 * minibuf.c (last_exact_completion): Remove variable.
3053 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
3054 (complete_and_exit_1, complete_and_exit_2)
3055 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
3056 (Fdisplay_completion_list, display_completion_list_1)
3057 (Fminibuffer_completion_help, Fself_insert_and_exit)
8d28646b
JR
3058 (Fexit_minibuffer, Fminibuffer_message): Move functions to
3059 minibuffer.el.
32bae13c
SM
3060 (syms_of_minibuf): Remove corresponding initializations.
3061
5c4cc82a
SM
3062 * keyboard.c (Qdeactivate_mark): New var.
3063 (command_loop_1): Use it to call `deactivate-mark'.
3064 (syms_of_keyboard): Initialize it.
3065
9b2cd403
SM
3066 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
3067 to another frame.
3068 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
3069 Don't call set_tty_color_mode.
3070 (store_frame_param): Reset previous_frame rather than call
3071 set_tty_color_mode.
3072 * term.c (set_tty_color_mode): Rewrite.
3073 * dispextern.h (set_tty_color_mode): New type.
3074 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
3075
84cb7b45
SM
30762008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
3077
3078 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
3079 for generic chars, which do not exist any more in emacs-unicode.
3080
3ed051d4
MA
30812008-04-08 Michael Albinus <michael.albinus@gmx.de>
3082
3083 * coding.c (detect_coding_emacs_mule)
3084 (Ffind_operation_coding_system): Fix typo.
3085
58c3ea42
JR
30862008-04-08 Jason Rumney <jasonr@gnu.org>
3087
3bf8d230
JR
3088 * w32uniscribe.c (SNAME): Extract only symbol name.
3089
56a70cca
JR
3090 * w32font.h (struct w32_metric_cache): New struct.
3091 (w32font_info): Use it.
3092 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
3093 (CACHE_BLOCKSIZE): New constants.
3ed051d4 3094
58c3ea42
JR
3095 * w32font.c (Qja, Qko, Qzh): New symbols.
3096 (syms_of_w32font): Initialise them.
3097 (font_matches_spec): Use them to filter by language.
3098 (recompute_cached_metrics): Remove function.
3099 (compute_metrics, clear_cached_metrics): New functions.
3100 (w32font_encode_char): Use them to manage metric cache.
3101 (w32font_text_extents): Cache metrics for all glyphs on demand.
3102 Delay converting glyph indices to WORD until needed.
3103 (w32font_open_internal): Initialize metric cache to empty.
3104 (registry_to_w32_charset): Charset should always be a symbol.
3105 (fill_in_logfont, list_all_matching_fonts): Family should
3106 always be a symbol.
3107
0ce24b2d
JR
31082008-04-06 Jason Rumney <jasonr@gnu.org>
3109
3110 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
3111 Give up if glyph indices not supported. Use uniscribe obtained
3112 ABC widths for individual metrics. Map glyph clusters back to
3113 characters using fClusterStart flag. Return number of glyphs
3114 produced, not chars processed.
b7655e0c 3115 (uniscribe_shape): Map char at FROM to current glyph.
0ce24b2d 3116
5bc6ddff 31172008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
56613f06 3118
fbf57abb
JB
3119 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
3120 Use SetMenuItemHierarchicalMenu.
56613f06 3121
5bc6ddff 31222008-04-05 Jason Rumney <jasonr@gnu.org>
93421a1f 3123
5bc6ddff
MB
3124 * image.c (pbm_load): Allow color values up to 65535.
3125 Throw an error if max_color_idx is outside the supported range.
3126 Report an error when image size is invalid.
3127 Read two bytes at a time when raw images have max_color_idx above 255.
1f816871 3128
5bc6ddff 31292008-04-05 Eli Zaretskii <eliz@gnu.org>
5ed6ba5b 3130
5bc6ddff
MB
3131 * w32.c (readdir): If FindFirstFile/FindNextFile return in
3132 cFileName a file name that includes `?' characters, use the 8+3
3133 alias in cAlternateFileName instead.
5ed6ba5b 3134
5bc6ddff 31352008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
32c06229 3136
5bc6ddff
MB
3137 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
3138 append "CCL: Quitted" when the CCL program is quitted.
3139 (setup_ccl_program): Initialize ccl->quit_silently to zero.
32c06229 3140
5bc6ddff 3141 * ccl.h (struct ccl_program): New member quit_silently.
32c06229 3142
c36e15db
CY
31432008-04-05 Chong Yidong <cyd@stupidchicken.com>
3144
9605d567
CY
3145 * search.c (compile_pattern_1): Treat non-nil and non-string of
3146 search-spaces-regexp as nil.
3147
c36e15db
CY
3148 * minibuf.c (Fassoc_string): Tweak docstring.
3149
40beb147
EZ
31502008-04-05 Eli Zaretskii <eliz@gnu.org>
3151
3152 * dired.c (Ffile_attributes): Support inode numbers wider than 32
3153 bits. Remove ugly WINDOWSNT-specific kludge introduced on
3154 2008-03-14 to force inode be positive.
3155
3156 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
3157 _S_* ones, since we now use our own sys/stat.h.
3158 (stat, fstat): Don't mangle the inode number.
aa08d1ff 3159 (init_user_info): Don't restrict UID and GID to 0-60000 range.
40beb147 3160
4591d6cb
SM
31612008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
3162
d4417eb0
SM
3163 * frame.h (struct frame): Give one more bit to `visible' since we use
3164 values larger than 1 to indicate obscured frames on ttys.
3165
00f7c5ed
SM
3166 * keymap.c (Qkeymap_canonicalize): New var.
3167 (Fmap_keymap_internal): New fun.
3168 (describe_map): Use keymap-canonicalize.
3169
4591d6cb
SM
3170 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
3171 (Fundo_boundary): Set them.
3172 (syms_of_undo): Initialize them.
3173 (record_point): Use them instead of last_point_position*.
3174 (last_undo_buffer): Change type.
3175
3187540e
JR
31762008-04-04 Jason Rumney <jasonr@gnu.org>
3177
0ce24b2d
JR
3178 * w32font.c (w32font_text_extents): Use font's ascent and descent.
3179 (recompute_cached_metrics): Don't set ascent and descent per char.
3180
3187540e 3181 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
4591d6cb 3182 (uniscribe_check_otf): Add GC protection before consing.
d0bfec76 3183 Rearrange loop for counting features.
3187540e 3184
f1a6b216
SM
31852008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
3186
3187 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
3188 buffer with byte-size of source buffer.
3189
1d8dcf63
CY
31902008-04-03 Chong Yidong <cyd@stupidchicken.com>
3191
3192 * callint.c (Fcall_interactively): Handle temporary region even
3193 when shift-select-mode is off.
3194
6b8aa22a
JR
31952008-04-03 Jason Rumney <jasonr@gnu.org>
3196
3197 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
3198
2f3cbb32
KH
31992008-04-03 Kenichi Handa <handa@m17n.org>
3200
3201 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
3202 (CATEGORY_MASK_UTF_16): Likewise.
3203 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
3204 binary file.
3205 (detect_coding): Add null-byte detection for a binary file.
3206 (detect_coding_system): Likewise.
3207
43f4f91c
JR
32082008-04-03 Jason Rumney <jasonr@gnu.org>
3209
0c1b4ae2
JR
3210 * w32uniscribe.c: New file.
3211
3212 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
3213
3214 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
3215
3216 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
3217 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
3218 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
3219 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
3220 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
3221 (Qphonetic): New symbols.
3222 (syms_of_w32font): Initialize them.
3223 (font_supported_scripts): Use them.
3224 (w32font_list_family): List all charsets.
3225 (w32font_text_extents, recompute_cached_metrics): Fix metric
3226 calculations.
3227 (w32_enumfont_pattern_entity): Make full_type a DWORD.
3228 Give opentype fonts their own format.
3229 (font_matches_spec): New arguments backend and logfont.
3230 Handle :otf spec for uniscribe backend.
3231 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
3232 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
4591d6cb 3233
0c1b4ae2
JR
3234 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
3235 font backend.
3236 (globals_of_w32fns): Initialize uniscribe font backend.
3237
fbf57abb 3238 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
0c1b4ae2
JR
3239 dependencies.
3240 (w32uniscribe.$(O)): New file to build.
3241 (FONT_OBJ): Include w32uniscribe.$(O).
3242 (LIBS): Add uniscribe libraries.
3243
43f4f91c
JR
3244 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
3245
75043a7d
CY
32462008-04-02 Chong Yidong <cyd@stupidchicken.com>
3247
3248 * callint.c (Vshift_select_mode): New var.
3249 (Finteractive): Document new ^ spec.
3250 (Fcall_interactively): Call handle-shift-selection if the ^ spec
3251 is present.
3252
3253 * keyboard.c (Vthis_command_keys_shift_translated): New var.
3254 (command_loop_1): Avoid running the direct display versions of
3255 forward-char and backward-char if shift-selection may occur.
75043a7d
CY
3256 (read_key_sequence): Set Vthis_command_keys_shift_translated if
3257 shift-translation takes place.
3258
3259 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
3260 avoid clobbering by define-minor-mode.
3261
3262 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
3263 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
3264
3265 * syntax.c (Fforward_word): Add ^ interactive spec.
3266
3267 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
3268 (Fscroll_right): Add ^ interactive spec.
3269
b2b7f29e
SM
32702008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
3271
a432c0a6
SM
3272 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
3273
994b75e0
SM
3274 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
3275
b2b7f29e
SM
3276 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
3277
e99c7806
JL
32782008-03-31 Juri Linkov <juri@jurta.org>
3279
3280 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
3281
1c9c1270
JD
32822008-03-30 Jan Djärv <jan.h.d@swipnet.se>
3283
3284 * gtkutil.c (xg_set_geometry): Fix indentation.
994b75e0 3285 (xg_resize_outer_widget): Remove.
1c9c1270
JD
3286 (x_wm_size_hint_off): Fix indentation.
3287 (xg_frame_set_char_size): Call flush_and_sync after
3288 gtk_window_resize.
3289 (x_wm_set_size_hint): Pass NULL as geometry window to
3290 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
3291 Add menu bar and tool bar height to base height.
3292 (xg_update_frame_menubar, free_frame_menubar)
3293 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
994b75e0
SM
3294 (update_frame_tool_bar, free_frame_tool_bar):
3295 Change xg_resize_outer_widget to xg_frame_set_char_size.
1c9c1270 3296
90b3fc84
MA
32972008-03-30 Michael Albinus <michael.albinus@gmx.de>
3298
3299 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
3300 (Fdbus_call_method): New parameter TIMEOUT.
3301 (dbus-send-signal): Optimize UNGCPRO call.
3302
7ae6d1d1
JL
33032008-03-29 Juri Linkov <juri@jurta.org>
3304
3305 * window.c (Fdisplay_buffer): Move call to
3306 Vsplit_window_preferred_function out of conditions that check
3307 if window is eligible for vertical splitting.
3308 When Vsplit_window_preferred_function is non-nil, call it and use
3309 its non-nil return value as window. Otherwise, continue doing
3310 vertical splitting using Fsplit_window with arg horflag=nil.
3311 (syms_of_window) <Vsplit_window_preferred_function>: Change the
3312 default value from `split-window' to nil.
3313
f03f8f2c
JL
33142008-03-29 Juri Linkov <juri@jurta.org>
3315
3316 * callint.c (Fcall_interactively): Revert 2008-03-16 change
3317 for interactive code letters 'b' and 'B'.
3318
6d557778
EZ
33192008-03-29 Eli Zaretskii <eliz@gnu.org>
3320
3321 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
3322 multibyte string.
3323
58555d81
SM
33242008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
3325
3326 * keyboard.c (pending_funcalls): New var.
3327 (timer_check): Run it.
3328 (syms_of_keyboard): Initialize it.
3329 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
3330 (Vdelete_terminal_functions): New vars.
3331 (syms_of_terminal): Initialize them.
3332 (Fdelete_terminal): Run delete-terminal-functions.
3333 * xdisp.c (safe_eval): Rewrite.
3334 (safe_call2): New fun.
3335 * frame.c (Qdelete_frame_functions): New var.
3336 (syms_of_frame): Initialize it.
3337 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
3338 * lisp.h (safe_call2, pending_funcalls): Declare.
3339
4c92f429
AS
33402008-03-28 Andreas Schwab <schwab@suse.de>
3341
3342 * indent.c (Fmove_to_column): Move declaration before statements.
3343
a1567c45
SM
33442008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
3345
2806a183
SM
3346 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
3347 (struct frame): Use bit fields for boolean vars.
3348
eef60308
SM
3349 * process.c (server_accept_connection): Simplify naming.
3350 (emacs_get_tty_pgrp): Use SDATA.
3351
a1567c45
SM
3352 * coding.c (decode_coding_object): Fix last change.
3353
30076589
JR
33542008-03-27 Jason Rumney <jasonr@gnu.org>
3355
3356 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
3357
880820fe
KH
33582008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
3359
3360 * charset.c (Fdefine_charset_internal): Change the way of
3361 registering charsets in Vcharset_order_list.
3362 (syms_of_charset): Make the charset `eight-bit' supplementary.
3363
3cf8cdfb
CY
33642008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
3365
3366 * regex.c (EXTEND_BUFFER): Change order of pointer addition
3367 operations, to avoid having the difference between pointers
3368 overflow.
3369
ef6f5c0e
SM
33702008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
3371
80e3db56
SM
3372 * indent.c (check_display_width): New fun.
3373 (scan_for_column): Use it.
3374
c397dc7a
SM
3375 * data.c (syms_of_data): Mark most-positive-fixnum and
3376 most-negative-fixnum as constants.
3377
bf6b4d58
SM
3378 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
3379
ef6f5c0e
SM
3380 * indent.c (scan_for_column): Extract from current_column_1.
3381 Merge with the same code from Fmove_to_column.
3382 (current_column_1, Fmove_to_column): Use it.
3383
72d5003d
SM
33842008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
3385
12270607
SM
3386 * keymap.c (map_keymap_internal): New fun.
3387 (map_keymap): Use it.
3388 (Fmap_keymap_internal): New fun.
3389 (Fmap_keymap): Remove left-out test from before make_save_value.
3390
a10cca6c
SM
3391 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
3392
d7b10f4c
SM
3393 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
3394 Use XCAR/XCDR.
3395
5431bd6a
SM
3396 * process.h (struct Lisp_Process): Remove filter_multibyte.
3397 * process.c (QCfilter_multibyte): Remove.
3398 (setup_process_coding_systems): Don't use filter_multibyte.
3399 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
3400 (read_process_output): Don't adjust multibyteness to filter_multibyte.
3401 (Fset_process_filter_multibyte): Change the coding-system to
3402 approximate the previous behavior.
3403 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
3404 coding-system.
3405
72d5003d
SM
3406 * coding.c (decode_coding_object): When not decoding into a buffer,
3407 obey the coding system's preference of (uni|multi)byte.
3408
438eba3c
SM
34092008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
3410
3411 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
3412 every char is changed and has a different byte-length.
3413 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
3414 Fix int -> EMACS_INT.
3415
9ec3aaef 34162008-03-23 David Hansen <david.hansen@gmx.net>
a8e72f4f 3417
438eba3c 3418 * dbusbind.c (xd_read_message): Remove extra copying of message
a8e72f4f
MA
3419 strings. Check for NULL `interface' or `member'.
3420
b07103dc
EZ
34212008-03-22 Eli Zaretskii <eliz@gnu.org>
3422
3423 * w32.c (readdir): If FindFirstFile/FindNextFile return in
3424 cFileName a file name that includes `?' characters, use the 8+3
3425 alias in cAlternateFileName instead.
3426
5371d722
SM
34272008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
3428
3429 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
3430
6ba7f443
SM
34312008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
3432
3433 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
3434 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
3435 work on current_buffer only instead (that was already the case
3436 for some of the code anyway).
3437 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
3438 (temp_set_point, temp_set_point_both): Use EMACS_INT.
3439 (SET_PT, SET_PT_BOTH): Adjust.
3440 * intervals.h (set_point, temp_set_point, set_point_both)
3441 (temp_set_point_both): Remove redundant declarations.
3442
bf1c0f27
SM
34432008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
3444
3445 * fileio.c (Finsert_file_contents):
3446 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
3447 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
3448 when buffer != current_buffer anyway.
3449
acab783e
AS
34502008-03-20 Andreas Schwab <schwab@suse.de>
3451
3452 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
3453 as default.
3454
d148e14d
JR
34552008-03-19 Jason Rumney <jasonr@gnu.org>
3456
3457 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
3458 (syms_of_w32fns): Initialize them.
3459 (HOURGLASS_ID): New constant.
3460 (x_window_to_frame): Don't check hourglass_window.
3461 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
3462 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
3463 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
3464 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
3465 Only change the cursor if hourglass is not active.
3466 (Fx_create_frame): Initialize frame's current_cursor.
3467 (hourglass_atimer): Remove.
3468 (hourglass_started): New function.
3469 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
3470 (show_hourglass): Adapt to w32, changing argument to frame.
3471
3472 * w32term.h (struct w32_output): Remove hourglass_window.
3473 Add current_cursor.
3474
3475 * eval.c (call_debugger, Fsignal):
3476 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
3477 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
3478 (Fexecute_extended_command, cancel_hourglass_unwind):
3479 * minibuf.c (read_minibuf):
3480 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
63558020 3481
a5c54077
JB
34822008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
3483
3484 * window.c (run_funs): New fun.
3485 (run_window_configuration_change_hook): Use it to run the buffer-local
3486 and the global part of the hook.
3487
3488 * xdisp.c (format_mode_line_unwind_data): Add window argument.
3489 (unwind_format_mode_line): Restore selected window.
3490 (x_consider_frame_title, Fformat_mode_line): Set selected window.
3491
f9f3238f
SM
34922008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
3493
253c3c82
SM
3494 * editfns.c (Fchar_equal): Check they are valid characters.
3495
f9f3238f
SM
3496 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
3497
065a118d
AS
34982008-03-17 Andreas Schwab <schwab@suse.de>
3499
0b8be006
AS
3500 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
3501 against a charset.
3502
065a118d
AS
3503 * lisp.h (Fbuffer_list): Declare.
3504
880820fe 35052008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d3b2a6da
JD
3506
3507 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
3508 handlebox_widget is != 0.
3509
6206d6c2
JL
35102008-03-16 Juri Linkov <juri@jurta.org>
3511
3512 * callint.c (Fcall_interactively): For interactive code letters
3513 'b' and 'B' put the buffer list into the list of default "future"
3514 values of the minibuffer.
3515
f5020181
AS
35162008-03-16 Andreas Schwab <schwab@suse.de>
3517
a864f6d6
AS
3518 * keyboard.c (read_key_sequence): Fix downcasing of letters with
3519 modifiers.
3520
f5020181
AS
3521 * regex.c (re_match_2_internal): Correct matching of a charset
3522 against latin-1 characters.
3523
03f244e2
KH
35242008-03-16 Kenichi Handa <handa@m17n.org>
3525
3526 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
3527 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
f9f3238f
SM
3528 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
3529 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
03f244e2
KH
3530 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
3531 CHAR_STRING_ADVANCE.
3532 (produce_chars): Fix for the case that the source and the
3533 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
3534 instead of CHAR_STRING_ADVANCE.
3535 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
3536 STRING_CHAR_ADVANCE.
3537
0e2501ed
AS
35382008-03-15 Andreas Schwab <schwab@suse.de>
3539
3540 * regex.c (re_match_2_internal): Correct matching of eight bit
3541 characters in unibyte strings.
3542
7723e095
MR
35432008-03-15 Martin Rudalics <rudalics@gmx.at>
3544
3545 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
3546 at end of range when it coincides with the end of the buffer.
3547
f507f365
EZ
35482008-03-14 Eli Zaretskii <eliz@gnu.org>
3549
294f1153
EZ
3550 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
3551
f507f365
EZ
3552 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
3553
64f0809d
JR
35542008-03-14 Jason Rumney <jasonr@gnu.org>
3555
956ae531
JR
3556 * editfns.c (initial_tz): New variable.
3557 (syms_of_editfns): Initialize it.
3558 (Fset_time_zone_rule): Set it when first called.
3559 Use it when TZSTRING is nil.
3560
64f0809d
JR
3561 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
3562 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
3563 (monitor_from_point_fn, get_monitor_info_fn): New globals.
3564 (globals_of_w32fns): Initialize them.
3565 (compute_tip_xy): Use them to position tooltips.
3566
21a4ff8e
GM
35672008-03-14 Glenn Morris <rgm@gnu.org>
3568
3569 * emacs.c (main): Revert previous change.
3570 (standard_args): Revert -internal-script back to -scriptload,
3571 and remove the long-option form.
3572
a09a5b5b
GM
35732008-03-13 Glenn Morris <rgm@gnu.org>
3574
3575 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
3576 Remove option -enable-font-backend.
3577
1c55ebd1
SM
35782008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
3579
3580 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
3581
880820fe 35822008-03-11 Jan Djärv <jan.h.d@swipnet.se>
c523e161
JD
3583
3584 * xterm.c (x_connection_closed): For GTK: If this is the last
3585 terminal just exit without closing the display.
3586
7145be81
JR
35872008-03-11 Jason Rumney <jasonr@gnu.org>
3588
3589 * w32font.c (w32font_full_name): Use floor to round.
3590
e6201af3 35912008-03-10 dhruva <dhruvakm@gmail.com> (tiny change)
ce9033f8
JD
3592
3593 * sound.c (alsa_configure): Declare vol at beginning of block.
3594
e6201af3 3595 * fontset.c (Ffontset_info): Remove extra semicolon.
ce9033f8 3596
390b81fa 35972008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
acd37560 3598
56388398
MB
3599 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
3600 size of resulting string.
af0ad939 3601
390b81fa 36022008-03-10 Jason Rumney <jasonr@gnu.org>
acd37560 3603
56388398 3604 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
acd37560 3605
390b81fa 36062008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
acd37560 3607
56388398
MB
3608 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
3609 Don't pretend as if characters with display property haven't been
3610 consumed for string-replacing-string case.
acd37560 3611
223ed6db
KS
36122008-03-08 Kim F. Storm <storm@cua.dk>
3613
3614 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
3615 (get_next_display_element, next_element_from_string)
3616 (next_element_from_ellipsis, next_element_from_buffer): Use it.
3617
28545f7c
AS
36182008-03-08 Andreas Schwab <schwab@suse.de>
3619
3620 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
3621
c960bff8
JR
36222008-03-06 Jason Rumney <jasonr@gnu.org>
3623
290afd83
JB
3624 * w32font.c (w32_registry): Take font_type argument. Use ANSI
3625 when charset not specified. Only translate ANSI to unicode when
c960bff8
JR
3626 font_type is truetype.
3627 (w32font_coverage_ok): New function.
3628 (add_font_entity_to_list): Use it to filter unsuitable fonts.
3629
87b8ce92
KH
36302008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
3631
3632 * lread.c (Fread_char): Resolve modifiers.
3633 (Fread_char_exclusive): Likewise.
3634
3635 * character.c (char_resolve_modifier_mask): New function.
3636 (char_string): Use char_resolve_modifier_mask.
3637 (Fchar_resolve_modifiers): New function.
3638 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
3639 function.
3640
cefd56f6
JR
36412008-03-04 Jason Rumney <jasonr@gnu.org>
3642
3643 * makefile.w32-in: Always include w32font.c in the build.
3644 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
3645
03bd3c1f
AS
36462008-03-04 Andreas Schwab <schwab@suse.de>
3647
3648 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
3649 (versionclean): Likewise.
3650
6f69e89b
JB
36512008-03-04 Juanma Barranquero <lekktu@gmail.com>
3652
3653 * .cvsignore: Add oo.
3654
f4a3cc44
AS
36552008-03-03 Andreas Schwab <schwab@suse.de>
3656
3657 * coding.c (decode_coding_object): Inhibit gap shrinking while
3658 decoding in place.
3659
73f838ad
DN
36602008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
3661
3662 * w32term.c: Remove unused include "gnu.h".
6f69e89b 3663 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
73f838ad
DN
3664
3665 * gnu.h: Rename to ...
3666 * emacs-icon.h: ... this.
3667 * xterm.c: Use emacs-icon.h instead of gnu.h.
3668 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
3669
ce9c1f06
JB
36702008-03-03 Juanma Barranquero <lekktu@gmail.com>
3671
3672 * w32font.c: Include math.h.
3673
34fd2d28
JR
36742008-03-03 Jason Rumney <jasonr@gnu.org>
3675
54efdcd1
JR
3676 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
3677 Compute options separately.
3678 (w32font_open_internal): Set glyph_idx before caching metrics.
3679
ce9c1f06
JB
3680 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
3681 Define if system headers don't.
3682 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
34fd2d28
JR
3683 (w32font_encode_char): Don't declare here.
3684
3685 * w32font.c (Quniscribe, QCformat): New symbols.
3686 (syms_of_w32font): Define them.
3687 (w32font_has_char): Indicate uncertainty.
ce9c1f06 3688 (w32font_encode_char): Encode as glyph point. Make static.
34fd2d28 3689 (recompute_cached_metrics): New function.
ce9c1f06
JB
3690 (w32font_open_internal): Use it. Set font to use glyph points
3691 initially. Set format based on type of font.
34fd2d28 3692 (w32font_text_extents, w32font_draw): Optionally use glyph points.
ce9c1f06
JB
3693 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
3694 on it. Set format based on information available here.
34fd2d28
JR
3695 (add_font_entity_to_list): Identify backend based on opentype_only.
3696
14daee73
AS
36972008-03-02 Andreas Schwab <schwab@suse.de>
3698
f907fb2e
AS
3699 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
3700
ce9c1f06
JB
3701 * coding.c (decode_coding_big5, produce_chars):
3702 Fix typos in last change.
14daee73 3703
c9cc6462
DN
37042008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
3705
3706 * gnu.h: New icon.
3707
119852e7
KH
37082008-03-02 Kenichi Handa <handa@m17n.org>
3709
3710 * coding.c (decode_coding_utf_8): When eol-type of CODING is
3711 `dos', don't decode '\r' if that is the last in the source.
3712 (decode_coding_utf_16, decode_coding_emacs_mule)
3713 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
3714 (decode_coding_raw_text, decode_coding_charset): Likewise.
3715 (produce_chars): Don't decode EOL here. Use EMACS_INT.
3716
a823468b
JR
37172008-03-01 Jason Rumney <jasonr@gnu.org>
3718
3719 * w32font.c (w32font_full_name): Report point size for scalable fonts.
3720
4ddc7e30
KS
37212008-03-01 Kim F. Storm <storm@cua.dk>
3722
3723 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
3724
67997c79
JR
37252008-03-01 Jason Rumney <jasonr@gnu.org>
3726
3727 * w32font.c (w32font_full_name): New function.
3728 (w32font_open_internal): Use it.
3729
3f4e9c35
KS
37302008-03-01 Kim F. Storm <storm@cua.dk>
3731
3732 * dispnew.c (line_draw_cost): Fix invalid glyph check.
3733
f3b9e479
JR
37342008-03-01 Jason Rumney <jasonr@gnu.org>
3735
3736 * font.c (font_unparse_fcname): Increase len when style is a symbol.
3737
880820fe 37382008-03-01 Jan Djärv <jan.h.d@swipnet.se>
7ee480ce
JD
3739
3740 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
3741 xg_frame_resized when the event is for the edit widget.
3742
3743 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
3744
3745 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
3746 set_char_size.
3747 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
3748 operations on widgets here. Just set frame size if needed.
3749 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
3750 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
3751 (x_wm_set_size_hint): Set size hints on the edit widget only, not
3752 the whole frame.
3753 (xg_create_tool_bar): Move attachement of the tool bar to
3754 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
3755 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
3756
6c8acaa1
JR
37572008-03-01 Jason Rumney <jasonr@gnu.org>
3758
3759 * w32fns.c (w32_msg_pump): Disable debug code.
3760
51fb064b 37612008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
03eb5fab 3762
51fb064b 3763 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
cb681b34 3764
60221a33
CY
37652008-02-29 Chong Yidong <cyd@stupidchicken.com>
3766
3767 * xdisp.c (next_overlay_string): Don't set
3768 overlay_strings_at_end_processed_p if we're currently reading from
3769 a display string.
3770
10cbc34f
SM
37712008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
3772
3773 * xdisp.c (get_overlay_strings_1): Fix typo.
3774
73c0054e
CY
37752008-02-29 Chong Yidong <cyd@stupidchicken.com>
3776
3777 * xdisp.c (get_overlay_strings_1): Add missing argument type.
3778
ec1c4354
KH
37792008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
3780
55082642
KH
3781 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
3782
ec1c4354
KH
3783 * xdisp.c (display_mode_element): Cancel the previous change.
3784 (decode_mode_spec): Likewise.
ee548a94
KH
3785 (handle_auto_composed_prop): Don't make composition if it->string
3786 is a string.
ec1c4354 3787
b6d898a2
KS
37882008-02-27 Kim F. Storm <storm@cua.dk>
3789
3790 * lisp.h (GLYPH): Change type from int to struct with separate char
3791 and face_id members.
3792 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
3793 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
3794 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
3795 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
3796 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
3797 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
3798 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
3799 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
3800 handle new Lisp glyph code encoding, either an integer or a cons.
3801
3802 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
3803 (GLYPH_ALIAS): Delete.
3804 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
3805 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
3806 (GLYPH_FROM_CHAR): Replace macro by ...
3807 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
3808
3809 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
3810 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
3811 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
3812 (GLYPH_INVALID_P): New macro.
3813 (spec_glyph_lookup_face): Update prototype.
3814
3815 * dispnew.c (line_draw_cost): Adapt to new glyph type.
3816 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
3817 new glyph code encoding.
3818 (spec_glyph_lookup_face): No return value; update passed glyph instead.
3819 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
3820
3821 * xdisp.c (get_next_display_element, next_element_from_display_vector):
3822 Adapt to new glyph type and new glyph code encoding.
3823
3824 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
3825
3826 * indent.c (current_column, current_column_1, Fmove_to_column)
3827 (compute_motion): Adapt to new glyph code encoding.
3828
3829 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
3830
af2080a2
CY
38312008-02-27 Chong Yidong <cyd@stupidchicken.com>
3832
3833 * process.c (wait_reading_process_output): Check for window
3834 changes caused by timers.
880820fe 3835 Suggested by Johan Bockgård.
af2080a2 3836
253ed25e
GM
38372008-02-27 Glenn Morris <rgm@gnu.org>
3838
3839 * emacs.c (USAGE1): Add `--disable-font-backend'.
3840
18a9f8d9
SM
38412008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
3842
3843 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
3844 is made to the buffer.
3845
0f8b27ea
SM
38462008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
3847
3848 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
3849 (face_at_string_position):
3850 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
3851 (face_at_string_position):
3852 * xdisp.c (display_string, next_overlay_change):
3853 * buffer.h (overlays_at):
3854 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
3855 Update callers.
3856
4e7c53ca
CY
38572008-02-26 Chong Yidong <cyd@stupidchicken.com>
3858
3859 * editfns.c (Fformat): Doc fix.
3860
51c01100
JB
38612008-02-26 Juanma Barranquero <lekktu@gmail.com>
3862
3863 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
3864 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
3865 (Ffont_otf_alternates, Fquery_font): Doc fixes.
3866
13cda5f9
SM
38672008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
3868
3869 * buffer.c (Fbuffer_swap_text): New function.
3870 (syms_of_buffer): Defsubr it.
3871
8018d430
CY
38722008-02-25 Chong Yidong <cyd@stupidchicken.com>
3873
3874 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
3875
9bde1a21
JR
38762008-02-25 Jason Rumney <jasonr@gnu.org>
3877
3878 * w32font.c (w32font_draw): Draw one character at a time when padding.
3879
eeca6f6f
SM
38802008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
3881
3882 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
3883 Handle a nil arg. Use run_window_configuration_change_hook.
3884 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
3885 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
3886 Use run_window_configuration_change_hook.
3887
ec1c4354
KH
38882008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
3889
3890 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
3891 1-pixel width.
3892
ae185452
KH
38932008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
3894
3895 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
3896 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
3897 if the glyph in the font is zero pixel with.
3898
3899 * dispextern.h (struct glyph_string): New member padding_p.
3900
3901 * w32font.c (w32font_draw): Pay attention to s->padding_p.
3902
3903 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
3904
3905 * xfont.c (xfont_draw): Pay attention to s->padding_p.
3906
3907 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
3908
eeca6f6f 3909 * font.c: If the font driver doesn't have `shape' function, return Qnil.
ae185452 3910
ffe832ea 39112008-02-25 Jason Rumney <jasonr@gnu.org>
c9029fe5 3912
ffe832ea 3913 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
16782258 3914
06045130
SM
39152008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
3916
3917 Allow fine-grained image-cache flushing.
3918 * dispextern.h (struct image): Add `dependencies' field.
3919 (clear_image_caches): Change arg to Lisp_Object.
3920 * image.c (make_image): Initialize `dependencies' field.
3921 (clear_image_cache): Change arg to allow fine-grained flushing.
3922 Perform the flush even if image-cache-eviction-delay is nil.
3923 (clear_image_caches): Change arg to Lisp_Object.
3924 (Fclear_image_cache): Expand meaning of the argument.
3925 (mark_image): Mark `dependencies' field.
3926 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
3927 (lface_hash): Use XHASH rather than XFASTINT.
3928 (face_at_buffer_position): Fix int -> EMACS_INT position.
3929 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
3930 (select_frame_for_redisplay): Remove code duplication.
3931 (redisplay_internal): Adapt arg to call to clear_image_caches.
3932
9d2818d6
DN
39332008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
3934
3935 * s/vms4-0.h:
3936 * s/vms4-2.h:
3937 * s/vms4-4.h:
3938 * s/vms5-5.h: Remove, unused.
3939
3940 * s/irix5-2.h:
3941 * s/irix6-0.h:
3942 * s/riscos5.h:
3943 * s/mach-bsd4-3.h:
2a2e8de7 3944 * m/mips4.h: Remove files for obsolete systems.
9d2818d6
DN
3945
3946 * Makefile.in:
3947 * filelock.c:
3948 * unexmips.c:
3949 * m/hp9000s300.h:
3950 * m/iris4d.h:
3951 * s/aix3-1.h:
3952 * s/hpux.h:
3953 * s/msdos.h:
3954 * s/usg5-0.h:
3955 * s/usg5-2-2.h:
3956 * s/usg5-2.h:
3957 * s/usg5-3.h: Remove references to obsolete variables.
3958
3959 * s/irix5-0.h: Remove, move all the contents ...
3960 * s/irix6-5.h: ... here. Simplify.
3961 * config.in: Regenerate.
3962
2a36efcf
JR
39632008-02-24 Jason Rumney <jasonr@gnu.org>
3964
c5ad7a3d 3965 * w32term.c (x_draw_glyph_string_background): Clear the background
2face669
JR
3966 manually when cleartype is in use.
3967 (x_draw_glyph_string_foreground): Draw text transparently when
3968 cleartype is in use.
3969
2a36efcf
JR
3970 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
3971 a font into it unless we have to.
3972
b03f96dc 39732008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
92a8ce63 3974
b03f96dc
MB
3975 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
3976 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
92a8ce63 3977
b03f96dc 39782008-02-18 Jason Rumney <jasonr@gnu.org>
92a8ce63 3979
b03f96dc 3980 * w32fns.c (Fw32_shell_execute): Encode parameters.
92a8ce63 3981
b03f96dc 39822008-02-09 Eli Zaretskii <eliz@gnu.org>
20f1ef2e 3983
b03f96dc 3984 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
32d0a9dc 3985
b03f96dc 39862008-02-05 Juanma Barranquero <lekktu@gmail.com>
20f1ef2e 3987
b03f96dc 3988 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
77d1daf2 3989
d5958163
CY
39902008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
3991
3992 * xterm.c (x_set_offset): Don't change the gravity if
3993 CHANGE_GRAVITY is -1.
3994
9997701e
CY
39952008-02-23 Chong Yidong <cyd@stupidchicken.com>
3996
3997 * fileio.c (auto_save_error_occurred): New var.
3998 (auto_save_error): Set it.
3999 (Fdo_auto_save): Don't overwrite the error message if an auto-save
4000 error occurred.
4001
9d95a291
EZ
40022008-02-23 Eli Zaretskii <eliz@gnu.org>
4003
4004 * w32.c (globals_of_w32): Add initializations for
4005 g_b_init_get_sid_sub_authority and
4006 g_b_init_get_sid_sub_authority_count.
4007
43d1af23
SM
40082008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
4009
43a1d19b
SM
4010 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
4011 (font_parse_xlfd): Use them for sanity check.
608c3307 4012 (Finternal_set_font_style_table): Make sure the table is bijective.
43a1d19b 4013
354884c4
SM
4014 Consolidate the image_cache to the terminal struct.
4015 * termhooks.h (P_): Remove redundant def.
4016 (struct terminal): New field `image_cache'.
4017 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
4018 of FRAME_X_IMAGE_CACHE.
4019 * xterm.h (struct x_display_info): Remove image_cache field.
4020 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
4021 * w32term.h (struct w32_display_info): Remove image_cache field.
4022 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
4023 * macterm.h (struct mac_display_info): Remove image_cache field.
4024 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
4025 * xterm.c (x_term_init):
4026 * w32term.c (w32_term_init):
4027 * macterm.c (mac_term_init): Set the image_cache in the terminal.
4028 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
4029 Remove declarations.
4030 (clear_image_caches, mark_image_cache): New declarations.
4031 * xfaces.c (clear_face_cache):
4032 * xdisp.c (redisplay_internal): Use clear_image_caches.
4033 * image.c (clear_image_cache): Don't check that a frame is on
4034 a window-system before checking if it shares the same cache.
4035 (clear_image_caches): New function.
4036 (Fclear_image_cache): Use it.
4037 (mark_image): Move from allo.c.
4038 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
4039 * alloc.c (mark_image, mark_image_cache): Move to image.c.
4040 (mark_object): Don't call mark_image_cache for frames.
4041 (mark_terminals): Call mark_image_cache.
4042
c2e42690
SM
4043 * lisp.h (Fdelete_terminal): Declare.
4044
43d1af23
SM
4045 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
4046 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
4047 wrong_type_argument.
4048
cc8d1311
KH
40492008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
4050
4051 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
4a4bdfc7 4052 malayalam.el, and tamil.el. Add sinhala.el.
cc8d1311 4053
6bd92640
SM
40542008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
4055
4056 * xterm.c (x_connection_closed): Consolidate identical tests.
4057 (x_delete_terminal): Don't crash if called via x_connection_closed.
4058
a73b5627
KH
40592008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
4060
4061 * xdisp.c (decode_mode_spec): New arg string.
6bd92640 4062 (display_mode_element): Adjust for the above change.
a73b5627 4063
1b511542
SM
40642008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
4065
4066 * callint.c (Fcall_interactively): Use AREF.
4067
81aefea4
SM
40682008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
4069
4070 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
4071
880820fe 40722008-02-18 Jan Djärv <jan.h.d@swipnet.se>
2d7117fe
JD
4073
4074 * xfns.c (Fx_show_tip): Set string to " " if empty.
4075
a2b84f35
DN
40762008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
4077
4078 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
4079 with Qt.
4080
43c0454d
KH
40812008-02-17 Kenichi Handa <handa@m17n.org>
4082
4083 * ftfont.c (ftfont_shape): Return Lispy number.
4084
4085 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
4086 for GCs.
4087 (Finternal_set_font_selection_order): Call font_update_sort_order
4088 only when enable_font_backend is set.
4089 (realize_x_face): Set face->font_info to that of default face only
4090 when enable_font_backend is set.
4091
4092 * xdisp.c (handle_composition_prop): Set it->c to the fist
4093 characte of the composed region.
4094 (fill_composite_glyph_string): Set base_face->font_info to
4095 s->font_info. Get a face for ascii from base_face->ascii_face.
4096 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
4097 with a face already decided.
4098 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
4099 non-negative.
978bef9a
JB
4100 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
4101 call font_prepare_composition unconditionally.
43c0454d 4102
978bef9a 4103 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
43c0454d
KH
4104
4105 * xterm.h (struct x_display_info): New member font.
4106
4107 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
4108 (x_set_mouse_face_gc, x_new_font): Likewise.
4109 (x_term_init): Setup display_info->font.
4110 (x_delete_terminal): Free display_info->font.
4111
4112 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
4113
4114 * ftxfont.c (ftxfont_default_fid): Delete it.
4115 (ftxfont_open): Set xfont->fid to 0.
978bef9a 4116 (ftxfont_end_for_frame): Clear data specific to the frame and the
43c0454d
KH
4117 font-driver.
4118
4119 * xftfont.c (xftfont_default_fid): Delete it.
4120 (xftfont_open): Set xfont->fid to 0.
4121
4122 * fontset.c (FONTSET_OBJLIST): New macro.
4123 (fontset_find_font): Update font-object list of the fontset.
4124 (free_realized_fontset): New function.
4125 (free_face_fontset): Call free_realized_fontset.
4126 (Ffont_info): Call font_close_object only when enable_font_backend
4127 is set.
4128
4129 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
4130 [HAVE_NTGUI]: Include w32term.h.
4131 [MAC_OS]: Include macterm.ch.
4132 (font_otf_ValueRecord): Use make_number.
4133 (font_finish_cache): Fix handling of reference count.
4134 (font_clear_cache): Update num_fonts.
4135 (font_open_entity): Update smallest_char_width and
4136 smallest_font_height of the frame.
4137 (font_close_object): Update num_fonts.
4138 (Fclear_font_cache): Fix finding the target cache data.
4139
be617367
GM
41402008-02-16 Glenn Morris <rgm@gnu.org>
4141
4142 * fontset.c (Finternal_char_font): Fix compilation warning.
4143
2930d117
EZ
41442008-02-16 Eli Zaretskii <eliz@gnu.org>
4145
634d3003
EZ
4146 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
4147 instead of char arrays. Enlarge the size of array passed to
4148 get_token_information.
4149
2930d117
EZ
4150 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
4151 warnings.
4152
79214046
DN
41532008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
4154
4155 * .gdbinit: Don't set `args', it breaks gdb --args.
4156
7f5d2c72
SM
41572008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
4158
4159 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
4160 within a narrowed buffer.
4161
6edacc43
KH
41622008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
4163
b270d6af
JB
4164 * coding.c (decode_coding_object, encode_coding_object):
4165 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
6edacc43 4166
174105f7
SM
41672008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
4168
b270d6af
JB
4169 * coding.c (coding_set_destination): Use BEG_BYTE rather than
4170 hardcoding 1.
13818c30
SM
4171 (detect_coding_system):
4172 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
4173 (string_char_to_byte, string_byte_to_char, insert_from_gap):
4174 * insdel.c (insert_from_gap):
4175 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
4176 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
4177 (string_to_multibyte):
4178 * character.c (chars_in_text, multibyte_chars_in_text):
4179 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
4180
f1c99628
SM
4181 * character.h (FETCH_STRING_CHAR_ADVANCE)
4182 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
4183 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
4184 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
4185
7927d8e3
SM
4186 * casefiddle.c (casify_region): Only call after-change and composition
4187 functions on the part of the region that was changed.
4188
adf6a429 4189 * keyboard.c (read_avail_input):
174105f7
SM
4190 * frame.c (Fdelete_frame): Call Fdelete_terminal.
4191
3ee24aec
SM
41922008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
4193
4194 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
4195 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
4196
4ed4b975
JB
41972008-02-11 Juanma Barranquero <lekktu@gmail.com>
4198
4199 * w32menu.c (push_submenu_start, push_submenu_end)
4200 (push_left_right_boundary, push_menu_pane, push_menu_item):
4201 * keyboard.c (read_key_sequence): Don't pass args with side effects
4202 to AREF, it fails when compiling with -DENABLE_CHECKING.
4203
79e3bfb8
KH
42042008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
4205
4ed4b975
JB
4206 * Makefile.in (${lispsource}international/charprop.el):
4207 Delete this target.
6e76043f 4208
79e3bfb8
KH
4209 * search.c (boyer_moore): Fix incorrect synching of the trunk and
4210 emacs-unicode-2.
4211
5b8de9c5
SM
42122008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
4213
4214 * terminal.c (Fdelete_terminal): Clean up the `force' path.
4215
eac1939a
SM
42162008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
4217
c53956fe
SM
4218 * frame.c (Qnoelisp): New symbol.
4219 (syms_of_frame): Initialize it.
4220 (Fdelete_frame): Use it to distinguish a mere `force' passed from
4221 someharmles Elisp code, from a strong `force' from x_connection_closed.
4222 * frame.h (Qnoelisp): Declare.
4223 * xterm.c (x_connection_closed): Pass `noelisp'.
4224
eac1939a
SM
4225 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
4226 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
4227 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
4228 rather than `int' for the type of `type'.
4229
13f6772b
DN
42302008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
4231
4232 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
4233
4234 * Makefile.in (GNUC): Remove support for gcc-1.x.
4235
e8455367
RS
42362008-02-10 Richard Stallman <rms@gnu.org>
4237
4238 * lisp.h (ASET): Use AREF, not ASLOT.
4239
4b75ffab
SM
42402008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
4241
4242 * lisp.h (ASET): Check bounds.
4243
d224e8c2
GM
42442008-02-10 Glenn Morris <rgm@gnu.org>
4245
4246 * buffer.c (mode-name): Doc fix.
4247
4624371d
DN
42482008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
4249
290afd83
JB
4250 * Makefile.in:
4251 * emacs.c:
4252 * gmalloc.c:
4253 * keyboard.c:
4254 * lisp.h:
4255 * m/ibm370aix.h:
4256 * process.c:
4257 * regex.c:
4258 * s/hpux.h:
4259 * sysdep.c:
4260 * sysselect.h:
4261 * systty.h:
4262 * unexec.c:
4263 * w32term.c:
4264 * xsmfns.c:
4265 * xterm.c: Remove code that deals with obsolete variables.
4624371d
DN
4266
4267 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
4268
4269 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
4270 nothing else needs it anymore.
4271
274ec34b
EZ
42722008-02-09 Eli Zaretskii <eliz@gnu.org>
4273
4274 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
4275 instead of unibyte_char_to_multibyte.
4276
deeaffe1
DN
42772008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
4278
4279 * s/gnu-linux.h: Remove commented out code.
4280
4ed4b975 4281 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
deeaffe1
DN
4282
4283 * Makefile.in: Update what RMS says about using autoconf.
4ed4b975 4284 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
c3f9fba8 4285 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
deeaffe1
DN
4286 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
4287 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
4288
68b587a6
SM
42892008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
4290
9141ca5e
SM
4291 * keymap.c (Fkey_description): Move side effect outside of macro call.
4292
dfae5f9a 4293 * xfaces.c (Finternal_make_lisp_face):
b1ebcadb
SM
4294 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
4295
ff7a2223
SM
4296 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
4297 (syms_of_fontset): Use ASET.
4298
68b587a6
SM
4299 * fns.c (concat): Move side effect outside of macro call.
4300 (hash_clear): Use ASET.
4301
a31787b1
RS
43022008-02-08 Richard Stallman <rms@gnu.org>
4303
4304 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
4305 If FORCE, and frame has a surrogate minibuffer for another frame,
4306 delete the other frame first.
4307
987be29b 43082008-02-07 Timo Savola <timo.savola@iki.fi>
1540a61a
JD
4309
4310 * xterm.c (x_detect_focus_change): Handle embed client message.
4311 (handle_one_xevent): Ditto.
4312 (handle_one_xevent): If embedded and we get a button press/release,
4313 request focus.
4314 (xembed_set_info, xembed_send_message): New functions.
4315 (x_make_frame_visible): Call xembed_set_info if embedded.
4316 (x_make_frame_invisible): Call xembed_set_info if embedded.
4317 (x_term_init): Initialize Xatom_XEMBED.
4318 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
4319 (x_iconify_frame): Ditto.
4320
4321 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
4322 (enum xembed_info, enum xerm srmbed_message, enum xembed_focus)
4323 (enum xembed_modifier, enum xembed_accelerator): New.
4324 (xembed_set_info, xembed_send_message): Declare.
4325 (FRAME_X_EMBEDDED_P): New.
4326
4327 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
4328 gtk_plug_new.
4329
4330 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
4331 window ID of a frame.
4332 (x_window): Reparent frame if embedded.
4333 (Fx_create_frame): Don't set border width if embedded.
4334
1f204af3 4335 * emacs.c (USAGE3): Add --parent-id.
1540a61a
JD
4336 (standard_args): Ditto.
4337
880820fe 43382008-02-07 Jan Djärv <jan.h.d@swipnet.se>
f937a7db
JD
4339
4340 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
4341
92413ef3
JD
43422008-02-07 Jim Meyering <meyering@redhat.com>
4343
6f69e89b 4344 Use "do...while (0)", not "if (1)...else" in macro definitions.
987be29b
RF
4345 The latter provokes a warning from gcc about the empty else, when
4346 followed by ";". Also, without that trailing semicolon, it would
4347 silently swallow up any following statement.
c3f9fba8 4348 * syntax.h (SETUP_SYNTAX_TABLE)
987be29b
RF
4349 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
4350 * buffer.h (DECODE_POSITION): Likewise.
4351 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
4352 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
4353 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
4354 (FETCH_CHAR_ADVANCE): Likewise.
4355 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
92413ef3 4356
03fa5713
GM
43572008-02-07 Jim Meyering <meyering@redhat.com>
4358
4359 * lread.c [lint]: Don't include <sys/inode.h>.
4360
3ae565b3
SM
43612008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
4362
4363 * xselect.c (x_handle_dnd_message):
4364 * xmenu.c (digest_single_submenu, xmenu_show):
4365 * xdisp.c (with_echo_area_buffer_unwind_data)
4366 (format_mode_line_unwind_data, unwind_format_mode_line)
4367 (display_menu_bar):
4368 * eval.c (Ffetch_bytecode):
4369 * doc.c (store_function_docstring):
4370 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
4371 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
4372 * buffer.c (add_overlay_mod_hooklist): Use ASET.
4373
146b6e55
KH
43742008-02-07 Kenichi Handa <handa@m17n.org>
4375
4376 * ftxfont.c (ftxfont_open): Don't set
4377 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
4378
4379 * ftfont.c (ftfont_open): Fix previous change.
4380
46a923ac
JR
43812008-02-06 Jason Rumney <jasonr@gnu.org>
4382
4383 * w32font.c (w32font_text_extents): Fill in lbearing metric.
4384 Use cached metrics for ASCII characters.
3ae565b3
SM
4385 (w32font_open_internal): Don't set font's owning_frame.
4386 Cache metrics for ASCII characters.
46a923ac
JR
4387
4388 * w32font.h (struct w32font_info): Add ascii_metrics.
4389 Remove owning_frame.
4390
da7d7c21
KH
43912008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
4392
4393 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
4394 to negative value.
4395
4396 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
4397
3ae565b3 4398 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
da7d7c21
KH
4399
4400 * charset.c (syms_of_charset): Set QCtest and Qeq.
4401
c62c8ddb
SM
44022008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
4403
ca319910
SM
4404 * process.c (Fstart_process):
4405 * callproc.c (Fcall_process): Handle the case where
4406 Funhandled_file_name_directory returns nil.
4407
76860cbb
SM
4408 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
4409 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
f9ffa1ea
SM
4410 * font.c (check_gstring): Use them and AREF to access the vector before
4411 we know it's really a gstring.
4412 (Ffont_shape_text): Fix typo.
4413 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Oject mixups.
76860cbb 4414
15139d67
SM
4415 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
4416 Declare.
4417
c62c8ddb
SM
4418 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
4419
04b65d2b
JR
44202008-02-05 Jason Rumney <jasonr@gnu.org>
4421
4422 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
4423 Set smallest_font_height and smallest_char_width in display info.
4424
fccaebfd
KH
44252008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
4426
4427 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
4428
e7d7fd8c
MB
44292008-02-05 Miles Bader <miles@gnu.org>
4430
4431 * xfaces.c (get_lface_attributes, merge_named_face)
4432 (lookup_named_face, lookup_derived_face, realize_named_face):
4433 Revert 2008-02-01 change by cyd@stupidchicken.com.
4434
3d4448a8
KH
44352008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
4436
4437 * fontset.c (Ffontset_info): Handle the case of inhibitting the
4438 fallback fonts.
15139d67 4439 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
3d4448a8 4440
5ace1ec1
JR
44412008-02-04 Jason Rumney <jasonr@gnu.org>
4442
4443 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
4444 set full_name.
e3a77b22 4445 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
5ace1ec1 4446
ffe42183
JR
44472008-02-03 Jason Rumney <jasonr@gnu.org>
4448
4449 * makefile.w32-in (OBJ1): Include font.o here.
4450 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
4451
526dc3b3
JR
44522008-02-02 Jason Rumney <jasonr@gnu.org>
4453
a0fece35 4454 * makefile.w32-in (temacs): Bump EMHEAP to 21.
526dc3b3 4455
af805c82
JR
44562008-02-01 Jason Rumney <jasonr@gnu.org>
4457
4458 * s/cygwin.h: Define VIRT_ADDR_VARIES.
4459
4460 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
4461
7f6519c5
AS
44622008-02-01 Andreas Schwab <schwab@suse.de>
4463
1f45f627 4464 * Makefile.in (shortlisp, lisp): Update for rename of
7f6519c5 4465 ../lisp/language/myanmar.el.
7f6519c5 4466
26f8aa27
CY
44672008-02-01 Chong Yidong <cyd@stupidchicken.com>
4468
1f45f627 4469 * xfaces.c (get_lface_attributes): Delete function.
26f8aa27
CY
4470 (merge_named_face, lookup_named_face, lookup_derived_face)
4471 (realize_named_face): Call lface_from_face_name directly, and use
4472 the fact that merge_face_vectors does not alter its FROM argument.
4473
73acf815 44742008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4475
4476 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
1f45f627 4477 input in the default locale. Handle non-Unicode multibyte input.
aca7a3d2 4478
73acf815 44792008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
4480
4481 * fontset.c (reorder_font_vector): Exclude nil elements from the
4482 font group. Don't try multiple fonts.
15139d67 4483 (fontset_font): Adjust for the above change.
aca7a3d2
MB
4484 (Finternal_char_font): Return nil if the found font doesn't
4485 contain the character ch.
4486
4c4475a8 4487 * Makefile.in (lisp, shortlisp): Add cham.el.
aca7a3d2 4488
73acf815 44892008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
4490
4491 * font.h (FONTP): Make it return 1 also for a font-object.
4492
4493 * .gdbinit (xfontset): New function.
4494
4495 * font.c (font_find_for_lface): Check if the character C is
4496 supported or not only for the first font.
4497
4498 * fontset.c (reorder_font_vector): Fix typo.
4499 (fontset_find_font): Don't add a font-spec specifying a script.
4500 Use 0 (not Qt) for the indication of empty font-group. Change the
4501 format of RFONT-DEF. Return Qt if no font in the font-group
4502 support the character.
15139d67 4503 (fontset_font): Adjust for the above change. If no font was
aca7a3d2 4504 found the character, remember that.
15139d67 4505 (face_for_char): Adjust for the change of RFONT-DEF.
aca7a3d2
MB
4506 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
4507 no font for the target.
15139d67 4508 (Finternal_char_font): Adjust for the change of RFONT-DEF.
aca7a3d2 4509
73acf815 45102008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
4511
4512 * font.c (font_load_for_face): Handle the case that the font in
4513 face->lface is a string.
4514
73acf815 45152008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 4516
1f45f627 4517 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
aca7a3d2 4518
73acf815 45192008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
4520
4521 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
4522 Fix previous change. If the frame is not on a window system,
4523 signal an error.
4524
73acf815 45252008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 4526
4c4475a8
GM
4527 * coding.c (decode_coding_object, encode_coding_object): Adjust
4528 marker positions after conversion.
aca7a3d2
MB
4529
4530 * lisp.h (struct Lisp_Marker): New member need_adjustment.
4531
73acf815 45322008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
4533
4534 * font.c (font_find_for_lface): Fix the handling of the return
4535 value of font_has_char.
4536 (Ffont_shape_text): Fix previous change.
4537
4538 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
4539 (fontset_ref_and_range): Delete it.
4540 (fontset_find_font): Call char_table_ref_and_range instead of
4541 FONTSET_REF_AND_RANGE.
4542 (make_fontset): Don't setup font groups of Latin here.
4543 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
4544 (new_fontset_from_font): Make the specified font the default for
4545 all Latin characters.
4546
73acf815 45472008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
4548
4549 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
4550 is on a window system before accessing the fontset of the frame.
4551
73acf815 45522008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 4553
1f45f627 4554 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
aca7a3d2
MB
4555
4556 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
4557 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
4558
4559 * font.c (Ffont_shape_text): If the font driver doesn't have a
4560 shaper function, make zero-width glyphs to have at least one-pixel
4561 width. Fix setting of `to' field of glyphs.
4562
73acf815 45632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
4564
4565 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
4566 glyphs.
4567
1f45f627 4568 * font.h (struct font_driver): Improve docstring of member `shape'.
aca7a3d2 4569
73acf815 45702008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4571
4572 * composite.c (syms_of_composite): Fix docstring of
4573 auto-composition-function.
4574
4575 * font.h (LGLYPH_SIZE): New macro.
4576
4577 * font.c (Ffont_fill_gstring): Stop filling when a character not
4578 supported by the font is found.
4579 (Ffont_shape_text): When a shape callback function returns nil,
4580 try at most two more times with larger gstring.
15139d67 4581 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
aca7a3d2
MB
4582
4583 * xdisp.c (handle_auto_composed_prop): Change the argument to
4584 auto-composition-function.
4585
4586 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
4587 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
4588 Lispy glyph and store it in the lgstring.
4589
4590 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
4591
4592 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
4593
73acf815 45942008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
4595
4596 * font.c (Ffont_shape_text): Avoid unnecessary composition.
4597
4598 * fontset.c (Vfont_encoding_charset_alist): New variable.
4599 (syms_of_fontset): DEFVAR it.
4c4475a8
GM
4600 (reorder_font_vector, fontset_find_font): Optimize for the case of
4601 no need of reordering.
aca7a3d2
MB
4602 (face_for_char): Map the charset property by
4603 Vfont_encoding_charset_alist.
4604
73acf815 46052008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4606
4607 * w32font.c (logfonts_match): Don't check adstyle here.
4608 (font_matches_spec): Check here against physical font instead.
4609 (add_font_entity_to_list): Avoid some substitutions.
4610
4611 * font.c (font_parse_fcname): Default weight and slant to normal.
4612 (font_score): Prefer normal fonts if weight or slant unspecified.
4613 (font_score) [WINDOWSNT]: Scale weight difference down to closer
4614 match freetype scores.
4615
73acf815 46162008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4617
4618 * w32font.c (w32font_text_extents): Don't use the frame stored in the
4619 font, as it may have been deleted.
4620 (w32_enumfont_pattern_entity): Map generic family to adstyle using
4621 most common hyphenless variation.
4622 (logfonts_match): Check generic family.
4623 (font_matches_spec): Don't check generic family here.
4624 (fill_in_logfont): Set generic family based on adstyle.
4625
4626 * w32font.h (w32font_get_cache): Update declaration.
4627
73acf815 46282008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
4629
4630 * ftfont.c (ftfont_get_cache): Adjust the argument type.
4631
15139d67 4632 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
dde8403f 4633 If none of the new drivers are available, call font_update_drivers
aca7a3d2
MB
4634 with the old drivers.
4635
4636 * w32font.c (w32font_get_cache): Adjust the argument type.
4637
4638 * xfont.c (xfont_get_cache): Adjust the argument type.
4639
4640 * font.h (struct font_driver): Change argument type of get_cache.
4641
4642 * xftfont.c (xftfont_start_for_frame): Delete prototype.
4643
4644 * font.c (Ffont_get): Fix arguments to Fassoc.
15139d67 4645 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
aca7a3d2 4646 (font_clear_cache): New function.
4c4475a8 4647 (font_list_entities, font_matching_entity): Use font_get_cache.
15139d67 4648 (font_update_drivers): Call font_clear_cache when finishing a driver.
aca7a3d2
MB
4649
4650 * fontset.c (fontset_find_font): Fix previous change.
4651
73acf815 46522008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
4653
4654 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
4655 dpyinfo->font_table.
4656 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
15139d67 4657 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
aca7a3d2
MB
4658
4659 * font.c (font_at): Handle the case that the arg C is negative.
4660 Handle the unibyte case.
4661 (Ffont_at): Call font_at with the arg C -1.
4662
4663 * xdisp.c (handle_auto_composed_prop): Don't get a character at
15139d67
SM
4664 the position here, and call font_at with the arg C -1.
4665 Don't check the range of the existing composition at the point.
aca7a3d2 4666
73acf815 46672008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 4668
15139d67 4669 * fontset.c (fontset_add): New args charset_id and family.
1f45f627 4670 Change caller.
4c4475a8
GM
4671 (load_font_get_repertory, fontset_find_font): Assume that
4672 font_spec is always a font-spec object.
aca7a3d2
MB
4673 (Fset_fontset_font): Always store a font-spec object in a fontset.
4674
4675 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
4676 instead of get_property_and_range.
4677
73acf815 46782008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
4679
4680 * xftfont.c (struct xftfont_info): Delete the member ft_face.
4681 (xftfont_open): Don't keep locking face.
4682 (xftfont_close): Don't unlock face.
4c4475a8 4683 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
aca7a3d2
MB
4684
4685 * fontset.c (fontset_find_font): Don't prefer a font of
4686 supplementary charset.
4687
73acf815 46882008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4689
1f45f627
GM
4690 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
4691 script, langsys_tag to langsys, new member script.
aca7a3d2
MB
4692 (OTF_TAG_STR): Terminate by '\0'.
4693 (ftfont_get_open_type_spec): If :otf prop is is spec, Limit the
4694 listing to the script specified in that property. Fix arg to
4695 OTF_check_features.
4696
73acf815 46972008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4698
4699 * w32font.h: New file.
4700
4701 * w32font.c: Include it.
4702 (struct w32font_info): Add owning_frame field. Move to w32font.h.
4703 (w32font_open): Set owning_frame.
4704 (w32font_text_extents): Use owning_frame.
4705 (struct font_callback_data): Add opentype_only field.
4706 (add_font_entity_to_list): Use it to filter fonts.
4707 Don't check against full name.
4708 (w32font_list_internal): New function.
4709 (w32font_list): Use it.
4710 (w32font_match_internal): New function.
4711 (w32font_match): Use it.
4712 (w32font_open_internal): New function.
4713 (w32font_open): Use it.
4714 (w32font_get_cache, w32font_close, w32font_has_char)
4715 (w32font_encode_char, w32font_text_extents, w32font_draw):
4716 Make non-static.
4717
4718 * makefile.w32-in (w32font.o): Depend on w32font.h.
4719
73acf815 47202008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
4721
4722 * charset.c (Fdefine_charset_internal): Record a supplementary
4723 charset at the tail of Vcharset_order_list.
4724
4725 * font.c (Ffont_shape_text): Fix the return value.
4726
4727 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
4728
4729 * xdisp.c (handle_auto_composed_prop): Fix previous change.
4730
73acf815 47312008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
4732
4733 * ftfont.c (struct OpenTypeSpec): New struct.
4734 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
4735 (ftfont_get_open_type_spec): New function.
4736 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
4737
15139d67 4738 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
aca7a3d2 4739
73acf815 47402008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4741
4742 * w32font.c (add_font_entity_to_list): Compare only the beginning
4743 of full name.
4744
73acf815 47452008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4746
15139d67
SM
4747 * xdisp.c (handle_auto_composed_prop): Simplify the code.
4748 Never return HANDLED_RECOMPUTE_PROPS.
aca7a3d2 4749
73acf815 47502008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4751
4752 * font.c (font_gstring_produce): Delete it.
4753
15139d67
SM
4754 * composite.h (COMPOSITION_METHOD):
4755 Handle COMPOSITION_WITH_GLYPH_STRING.
aca7a3d2 4756
73acf815 47572008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 4758
15139d67 4759 * xfont.c (Qx): Delete.
aca7a3d2
MB
4760 (syms_of_xfont): Don't initialize Qx.
4761
15139d67
SM
4762 * composite.h (enum composition_method):
4763 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
aca7a3d2 4764
73acf815 47652008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
4766
4767 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
4768 (choose_face_font): Accept new form of font-spec.
4769
4770 * frame.h (font_driver_list): Declare it unconditionally.
4771 (struct frame): Define members font_driver_list and font_data_list
4772 unconditionally.
4773
4774 * fontset.c: Include "font.h" unconditionally.
15139d67 4775 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
aca7a3d2
MB
4776 (Fset_fontset_font): Accept a font-spec object.
4777
4778 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
4779 PIXEL_SIZE part a wild card.
4780
4781 * dispextern.h (struct glyph_string): Define members clip and
4782 num_clips unconditionally.
4783 (struct face): Define members font_info and extra unconditionally.
4784
4785 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
4786 ftfont_info only when HAVE_LIBOTF is defined.
4787
73acf815 47882008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
4789
4790 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
4791 and end.
4792
73acf815 47932008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4794
4795 * w32font.c (w32font_driver): Add new fields.
4796
73acf815 47972008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 4798
aca7a3d2
MB
4799 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
4800 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
4801 (LIBES): Add @M17N_FLT_CFLAGS@.
4802
4803 * composite.c (compose_text): Don't treat the new style
4804 composition specially.
4805
4806 * emacs.c (main): Call syms_of_font unconditionally.
4807
4808 * font.h (FONT_ENTITY_NOT_LOADABLE)
4809 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
15139d67 4810 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
aca7a3d2 4811 (struct font_driver): New member shape.
1f45f627 4812 (font_registry_charsets): Extern it.
4c4475a8 4813 (font_find_for_lface, font_prepare_composition): Adjust prototype.
aca7a3d2
MB
4814 (font_otf_capability, font_drive_otf): Delete their externs.
4815
4816 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
4c4475a8
GM
4817 (font_charset_alist, font_registry_charsets): Move from xfont.c
4818 and rename.
aca7a3d2
MB
4819 (font_prop_validate_otf): New function.
4820 (font_property_table): Register it for QCotf.
4821 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
15139d67 4822 (font_drive_otf): Delete.
1f45f627 4823 (font_prepare_composition): New arg F. Adjust for the change of
aca7a3d2
MB
4824 lispy gstring.
4825 (font_find_for_lface): New arg C.
15139d67 4826 (font_load_for_face): Adjust for the change of font_find_for_lface.
4c4475a8
GM
4827 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
4828 lispy gstring.
aca7a3d2
MB
4829 (Ffont_shape_text): New function.
4830 (Fopen_font): If the font size is not given, use 12-pixel.
4831 (Ffont_at): New arg STRING.
15139d67
SM
4832 (syms_of_font): Initalize font_charset_alist.
4833 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
aca7a3d2
MB
4834 conditionally.
4835
4836 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
4837 fonts of the same font-spec. Change the format of RFONT-DEF.
4c4475a8
GM
4838 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
4839 Adjust for the change of RFONT-DEF.
15139d67 4840 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
aca7a3d2
MB
4841
4842 * ftfont.h: New file.
4843
4844 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
4845 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
4846 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
4847 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
4848 font_otf_capability and font_drive_otf, set ftfont_shape.
15139d67 4849 (ftfont_list): Adjust for the change of :otf property value.
aca7a3d2
MB
4850 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
4851 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
4852 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
1f204af3 4853 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
aca7a3d2
MB
4854 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
4855 (otf_gstring, gstring, m17n_flt_initialized): New variables.
4856
15139d67
SM
4857 * w32term.c (x_draw_composite_glyph_string_foreground):
4858 Adjust for the change of lispy gstring.
aca7a3d2 4859
15139d67 4860 * xdisp.c (handle_composition_prop): Adjust for the change of
aca7a3d2 4861 lispy gstring. Call a function for auto-composition with the
15139d67
SM
4862 third arg it->window.
4863 (fill_composite_glyph_string): Adjust for the change of lispy string.
4864 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
aca7a3d2 4865
15139d67 4866 * xfaces.c (set_font_frame_param): Adjust for the change of
aca7a3d2
MB
4867 font_find_for_lface.
4868
1f45f627
GM
4869 * xfont.c (x_font_charset_alist): Move to font.c and rename.
4870 (xfont_registry_charsets): Likewise. Change caller.
aca7a3d2
MB
4871 (syms_of_xfont): Don't handle x_font_charset_alist.
4872
4873 * xftfont.c: Include "ftfont.h".
15139d67 4874 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
aca7a3d2
MB
4875 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
4876 (xftfont_close) [HAVE_LIBOTF]: Close otf.
4877 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
15139d67
SM
4878 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
4879 Set xftfont_driver.shape to xftfont_shape.
aca7a3d2 4880
15139d67 4881 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aca7a3d2
MB
4882 the change of lispy gstring.
4883
73acf815 48842008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
4885
4886 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
4887
73acf815 48882008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4889
4890 * w32font.c (w32font_draw): Fill background manually.
4891
73acf815 48922008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4893
4894 * font.c (Qfontp): Remove unused symbol.
4895 (QCantialias): New symbol.
4896 (syms_of_font): Define it.
4897 (font_property_table): Set a validator for QCantialias.
4898
15139d67
SM
4899 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
4900 Define if not already.
aca7a3d2
MB
4901 (QCfamily): Share with xfaces.c.
4902 (Qstandard, Qsubpixel, Qnatural): New symbols.
1f45f627 4903 (syms_of_w32font): Define them. Don't define QCfamily here.
aca7a3d2
MB
4904 (w32_antialias_type, lispy_antialias_type): New functions.
4905 (w32_enumfont_pattern_entity): New arg requested_font.
4906 Set antialias parameter if non-default was requested.
4907 (fill_in_logfont): Fill in lfQuality if :antialias specified.
4908
73acf815 49092008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
4910
4911 * lread.c (read1): Undo the previous change.
4912
73acf815 49132008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
aca7a3d2
MB
4914
4915 * frame.c (Fdelete_frame): Call font_update_drivers only when
6f69e89b 4916 USE_FONT_BACKEND is defined.
aca7a3d2 4917
73acf815 49182008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
4919
4920 * font.h (struct font_bitmap): New member bits_per_pixel.
4921 (struct font_driver): New members start_for_frame and end_for_frame.
4922 (struct font_data_list): New struct.
4923 (font_put_frame_data, font_get_frame_data): Extern them.
4924
4925 * frame.h (struct frame): New member font_data_list.
4926
4927 * font.c (font_update_drivers): Call driver->start_for_frame and
4928 driver->end_for_frame at proper timings.
4929 (font_put_frame_data, font_get_frame_data): New functions.
4930 (Ffont_spec): Add usage in the docstring.
4931
4932 * frame.c (make_frame): Initialize f->font_data_list to NULL.
4933 (Fdelete_frame): Call font_update_drivers.
4934
4935 * xftfont.c (struct xftface_info): Delete the member xft_draw.
4c4475a8 4936 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
aca7a3d2
MB
4937 (xftfont_get_xft_draw): New function.
4938 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
4939 (xftfont_end_for_frame): New function.
4940 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
4941
15139d67 4942 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
1f45f627 4943 Change argument. Cache GCs in the per-frame data.
aca7a3d2
MB
4944 (struct ftxfont_frame_data): New struct.
4945 (ftxfont_draw_bitmap): New arg gc_fore and flush.
4946 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
15139d67 4947 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
aca7a3d2
MB
4948 (ftxfont_end_for_frame): New function.
4949 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
4950
4951 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
4952
73acf815 49532008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4954
4955 * xselect.c (Vselection_coding_system)
4956 (Vnext_selection_coding_system): Delete them.
4957 (syms_of_xselect): Don't declare selection-coding-system and
4958 next-selection-coding-system. They are declared in select.el.
4959
73acf815 49602008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4961
4962 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
4963
4964 * w32fns.c: Include imm.h.
4965 (get_composition_string_fn, get_ime_context_fn): New optional
4966 system functions.
4967 (globals_of_w32fns): Load them from imm32.dll.
4968 (ignore_ime_char): New flag.
4969 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
4970 WM_IME_ENDCOMPOSITION messages.
4971
4972 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
4973 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
4974
73acf815 49752008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
4976
4977 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
4978 (READCHAR_REPORT_MULTIBYTE): New macro.
4979 (readchar): New 2nd arg MULTIBYTE.
15139d67
SM
4980 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
4981 Make symbol's name multibyte according to the multibyteness of the
aca7a3d2
MB
4982 source.
4983
73acf815 49842008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
4985
4986 * xfaces.c (face_for_overlay_string): Call lookup_face with
4987 correct arguments (fix of synching with the trunk).
4988
73acf815 49892008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4990
4c4475a8
GM
4991 * font.c (font_prop_validate_symbol, font_prop_validate_style)
4992 (font_prop_validate_non_neg, font_prop_validate_spacing):
4993 Delete argument prop_index.
15139d67
SM
4994 (font_property_table): Change arguments to validater. Change Callers.
4995 (font_lispy_object): Delete.
aca7a3d2
MB
4996 (font_at): Use font_find_object instead fo font_lispy_object.
4997
73acf815 49982008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
4999
5000 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
5001 and file names.
5002
73acf815 50032008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5004
5005 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
5006 (font_matches_spec): Remove debug output.
5007 (add_font_entity_to_list): Avoid using substituted fonts.
5008
73acf815 50092008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5010
5011 * doc.c (Fsnarf_documentation):
5012 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
5013
73acf815 50142008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2 5015
290afd83 5016 * dispextern.h (struct glyph_row): Only define "clip" field if
aca7a3d2
MB
5017 HAVE_WINDOW_SYSTEM is defined.
5018
73acf815 50192008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
aca7a3d2
MB
5020
5021 Fix up multi-tty merge.
5022
5023 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
5024 and indentation.
5025
5026 * xfaces.c (free_realized_face, clear_face_gcs):
5027 Include font_done_for_face in the input_blocked section, just in case.
5028
5029 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
5030 (get_char_face_and_encoding): Undo last change and remove the *other*
5031 duplicate definition (i.e. keep the one that's better scoped and that
5032 includes code for the font-backend).
5033
5034 * terminal.c (create_terminal): Default keyboard_coding to
5035 `no-conversion' and terminal_coding to `undecided'.
5036
5037 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
5038
5039 * fontset.c (free_realized_fontsets): Check that the table entry does
5040 contain a fontset before trying to compare it to `base'.
5041
5042 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
5043 syms_of_charset, and syms_of_coding earlier because init_window_once
5044 now needs Vcoding_system_hash_table to be setup.
5045
5046 * coding.h (default_buffer_file_coding): Remove.
5047
5048 * coding.c (default_buffer_file_coding): Remove.
5049 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
5050 than ->symbol, and use the terminal-local coding system.
5051 (syms_of_coding): Don't setup the coding-systems that are not
5052 terminal-local.
5053 (Fdefine_coding_system_internal): Use XCAR/XCDR.
5054
5055 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
5056 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
5057
5058 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
5059 in chartab.c and were re-added here by mistake.
5060 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
5061
5062 * doc.c (Fsnarf_documentation):
5063 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
5064 src to etc.
5065
5066 * ChangeLog.10: Add mistakenly removed entry.
5067
73acf815 50682008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
aca7a3d2
MB
5069
5070 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
5071
73acf815 50722008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
5073
5074 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
5075 Add extra args to FACE_FOR_CHAR.
5076
73acf815 50772008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5078
5079 * keymap.c (where_is_internal_1): If key is a cons, store the copy
5080 in sequence.
5081
4c4475a8
GM
5082 * chartab.c (map_sub_char_table, map_char_table): If the range
5083 contains just one character, call the function with that character
5084 even if the depth is not 3.
aca7a3d2 5085
73acf815 50862008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5087
5088 * w32font.c (w32font_text_extents): Calculate metrics for the
5089 whole string.
5090
73acf815 50912008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5092
5093 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
5094
73acf815 50952008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5096
5097 * w32term.c (x_set_glyph_string_clipping): Use
5098 get_glyph_string_clip_rects.
4c4475a8
GM
5099 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
5100 Adjust for the change of struct glyph_string.
aca7a3d2
MB
5101
5102 * w32font.c (w32font_draw): Do clipping here.
5103
73acf815 51042008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5105
1f45f627 5106 * xftfont.c (xftfont_draw): Adjust for the change of struct
aca7a3d2
MB
5107 glyph_string.
5108
5109 * xterm.c (x_set_glyph_string_clipping): Use
5110 get_glyph_string_clip_rects.
4c4475a8
GM
5111 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
5112 Adjust for the change of struct glyph_string.
aca7a3d2
MB
5113
5114 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
5115 the resulting clip(s}.
1f45f627 5116 (expose_overlaps): Add arg r. Change callers. Set it to
aca7a3d2
MB
5117 row->clip temporarily.
5118 (expose_window): Redraw rows overlapping the exposed area.
5119
5120 * dispextern.h (struct glyph_row): New member clip.
5121 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
5122 clip_height, new member clip, and num_clips.
5123
73acf815 51242008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5125
5126 * data.c (Fchar_or_string_p): Fix docstring.
5127
73acf815 51282008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5129
5130 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
5131 create a temporal XftDraw object.
5132
73acf815 51332008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5134
5135 * font.c (Ffontp): Fix docstring.
5136
5137 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
5138 strong evidence of ISO-2022.
5139
73acf815 51402008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5141
5142 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
5143 SYNTAX_ENTRY_FOLLOW_PARENT.
5144
73acf815 51452008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
aca7a3d2
MB
5146
5147 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
5148 its type.
5149 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
5150 Update to the new type of weak_hash_tables and next_weak.
5151
5152 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
5153 a plain C pointer to Lisp_Hash_Table.
5154
5155 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
5156 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
5157 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
5158 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
5159 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
5160 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
5161 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
5162 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
5163 (GC_EQ): Remove since they've been identical to their non-GC_
5164 alter-egos ever since the markbit was eradicated.
5165
290afd83
JB
5166 * alloc.c:
5167 * buffer.c:
5168 * buffer.h:
5169 * data.c:
5170 * fileio.c:
5171 * filelock.c:
5172 * fns.c:
5173 * frame.h:
5174 * lisp.h:
5175 * macterm.c:
5176 * print.c:
5177 * process.c:
5178 * w32fns.c:
5179 * w32menu.c:
5180 * w32term.c:
5181 * xfns.c:
5182 * xmenu.c:
5183 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
aca7a3d2 5184
73acf815 51852008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5186
5187 * chartab.c (map_sub_char_table): Make it work for the top-level
5188 char-table. Fix handling of parent char-table.
c5ad7a3d 5189 (map_char_table): Adjust for the above change.
aca7a3d2 5190
73acf815 51912008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5192
5193 * w32font.c (Qgdi): Rename from Qw32.
5194
73acf815 51952008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5196
5197 * w32bdf.c (get_quoted_string): Make function static.
5198
73acf815 51992008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5200
5201 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
5202 bigger ascent and descent than those of the font, use them as
5203 font's ascent and descent.
5204
73acf815 52052008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5206
5207 * Makefile.in (${lispsource}international/charprop.el): Move this
5208 target within "#ifdef HAVE_UNIDATA" and "#endif".
5209
73acf815 52102008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5211
5212 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
5213 (shortlisp): Add ../lisp/language/tai-viet.el.
5214
1f45f627 52152008-02-01 Ulrich Mueller <ulm@gentoo.org>
aca7a3d2
MB
5216
5217 * Makefile.in (${lispsource}international/charprop.el): Depend on
5218 temacs${EXEEXT}.
5219
73acf815 52202008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5221
5222 * w32font.c (w32font_close): Delete the GDI font object.
5223
6f69e89b 5224 * w32menu.c: Include character.h.
aca7a3d2
MB
5225
5226 * w32proc.c: Likewise.
5227
5228 * w32select.c: Likewise.
5229
6f69e89b 5230 * makefile.w32-in (w32proc.o): Depend on character.h.
aca7a3d2 5231
73acf815 52322008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5233
5234 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
5235
5236 * w32menu.c (syms_of_w32menu): Likewise.
5237
5238 * w32proc.c (syms_of_ntproc): Likewise.
5239
5240 * w32select.c (syms_of_w32select): Likewise.
5241
5242 * w32term.c (syms_of_w32term): Likewise.
5243
73acf815 52442008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5245
5246 * w32font.c (w32font_draw): Delete brush after using it.
5247
73acf815 52482008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5249
5250 * w32font.c (w32font_open): Don't set font_idx.
5251 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
5252 to font settings.
5253 (w32font_draw): Fill background explicitly.
5254
73acf815 52552008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5256
5257 * w32term.c (w32_initialize): Don't call w32font_initialize.
5258
5259 * w32font.c (w32font_info): Remove subranges.
5260 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
5261 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
5262 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
5263 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
5264 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
5265 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
5266 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
5267 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
5268 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
5269 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
5270 New symbols.
5271 (font_callback_data): New struct.
5272 (w32font_list, w32font_match): Use it.
5273 (w32font_open): Don't populate subranges.
5274 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
5275 (w32font_encode_char): Always return unicode code-point as-is.
5276 (w32font_text_extents): Supply a tranformation matrix to
1f45f627
GM
5277 GetGlyphOutline. Never look up by glyph index. Avoid looping
5278 twice. Use unicode version of GetTexExtentPoint32 instead of
aca7a3d2 5279 glyph index version.
1f204af3 5280 (set_fonts_frame): Remove.
aca7a3d2 5281 (w32_enumfont_pattern_entity): Add frame parameter, use it to
1f45f627
GM
5282 set frame parameter. Use backward compatible fake foundries.
5283 Save generic family in extra slot under QCfamily. Make width slot
5284 constant. Save QCspacing value. Save list of scripts instead of
aca7a3d2
MB
5285 binary subranges.
5286 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
1f45f627 5287 (add_font_entity_to_list): Use font_callback_data struct. Filter
aca7a3d2
MB
5288 unwanted fonts.
5289 (add_one_font_entity_to_list): Use font_callback_data struct.
1f45f627
GM
5290 (w32_registry): Default to iso10646_1.
5291 (fill_in_logfont): Use dpi from extra slot. Don't bother with
5292 string font registries. Don't fill in font name if it is a generic
5293 family name, fill family instead. Use spacing, family and script
aca7a3d2
MB
5294 extra info to fill pitch, family and charset fields.
5295 (list_all_matching_fonts): Use font_callback_data struct.
5296 (unicode_range_for_char): Remove.
5297 (font_supported_scripts): New function.
5298 (w32font_initialize): Remove.
5299 (syms_of_w32font): Update which symbols are defined.
5300
73acf815 53012008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5302
5303 * font.c (font_pixel_size): Reverse assq_no_quit args.
5304
5305 * w32term.h (FONT_WIDTH): Report max width, not average.
5306 (FONT_MAX_WIDTH): Remove.
5307 (FONT_AVG_WIDTH): New macro.
5308
5309 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
5310 redefinition of FONT_WIDTH.
5311
5312 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
5313 (w32_cache_char_metrics): Use FONT_WIDTH.
5314
5315 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
5316
73acf815 53172008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5318
5319 * w32font.c (w32font_open): Make lfHeight negative.
5320
5321 * w32fns.c (x_default_font_parameter): Use new style font name.
5322 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
5323
73acf815 53242008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5325
5326 * w32font.c (QCsubranges): New symbol.
5327 (w32font_open, w32font_has_char): Get subranges from subproperty
5328 of extra.
5329 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
5330 (syms_of_w32font): Define :subranges symbol.
5331
5332 * font.c (font_put_extra): Expose externally.
5333
1f45f627 5334 * font.h (font_put_extra): Move declaration from font.c.
aca7a3d2
MB
5335
5336 * font.c (Ffont_get): Use font driver to determine otf capability.
5337 (adjust_anchor): Check if driver defines anchor_point before using.
5338
5339 * w32font.c (w32font_open): Handle size, height and pixel_size better.
5340 (w32font_draw): Use options.
5341 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
5342 Fix detection of truetype fonts.
5343 (registry_to_w32_charset): Handle charsets other than iso8859-1
5344 expressed as lisp symbols.
5345 (w32_registry): Express charset as lisp symbol.
5346 (fill_in_logfont): Reverse pixel and point height logic.
1f45f627 5347 Don't set width here. Set quality to default.
aca7a3d2
MB
5348
5349 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
5350 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
5351
5352 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
5353 Remove redundant loop and allocation.
5354
5355 * makefile.w32-in (font.o, w32font.o): New objects.
6f69e89b 5356 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
aca7a3d2
MB
5357 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
5358
5359 * xdisp.c (fill_composite_glyph_string): Make the first arg to
5360 STORE_XCHARB a valid l-value.
5361
5362 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
5363 calculations for non-Truetype fonts.
5364 (x_draw_glyph_string): Sync with xterm.c.
c3f9fba8
JB
5365 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
5366 Remove redundant code.
aca7a3d2
MB
5367 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
5368
5369 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
5370 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
5371
5372 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
5373 (x_to_w32_charset, w32_to_x_charset): Expose externally.
5374
5375 * w32font.c: New file for w32 font backend.
5376
73acf815 53772008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5378
5379 * term.c: Don't include "buffer.h" twice.
5380
73acf815 53812008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5382
5383 * character.c (Funibyte_string): New function.
5384 (syms_of_character): Defsubr it.
5385
73acf815 53862008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5387
5388 * w32term.c [USE_FONT_BACKEND]:
c3f9fba8
JB
5389 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
5390 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
5391 (x_draw_glyph_string, x_draw_glyph_string_foreground)
5392 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
aca7a3d2
MB
5393 (x_free_frame_resources): Sync with xterm.c.
5394
73acf815 53952008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
5396
5397 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
5398 char-table size.
5399
73acf815 54002008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5401
c3f9fba8 5402 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
aca7a3d2 5403
73acf815 54042008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5405
5406 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
5407 font_otf_gpos, add font_drive_otf.
5408
5409 * fontset.c (fontset_find_font): Pay attention to font size
5410 specified for a font.
5411 (reorder_font_vector): Check contents of font_def.
5412
5413 * font.c (struct otf_list): Delete it.
6f69e89b 5414 (otf_list): Make it a lisp variable.
aca7a3d2 5415 (otf_open): Use lispy otf_list.
1f45f627 5416 (generate_otf_features): Rename from parse_gsub_gpos_spec.
aca7a3d2 5417 (check_otf_features): New function.
c3f9fba8
JB
5418 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
5419 New functions.
aca7a3d2
MB
5420 (font_drive_otf): New function merging font_otf_gsub and
5421 font_otf_gpos.
5422 (font_open_for_lface): New arg spec. Change argument order.
1f45f627 5423 (font_load_for_face): Adjust for the change of font_open_for_lface.
aca7a3d2
MB
5424 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
5425 Ffont_otf_gpos.
5426 (syms_of_font): Staticpro otf_list. Delete defsubr of
5427 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
5428
1f45f627 5429 * xfaces.c (set_font_frame_param): Adjust for the change of
aca7a3d2
MB
5430 font_open_for_lface.
5431
5432 * font.h (font_open_for_lface): Adjust prototype.
5433 (struct font_driver): Delete members otf_gsub and otf_gpos, add
5434 member otf_drive.
5435 (font_otf_gsub, font_otf_gpos): Delete externs.
5436 (font_drive_otf): Extern it.
5437
73acf815 54382008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5439
5440 * font.c (font_at): If the window W is not on a window system,
5441 return Qnil.
5442
4c4475a8
GM
5443 * coding.c (produce_chars, encode_coding): Don't call
5444 insert_from_gap if no characters to produce.
aca7a3d2 5445
73acf815 54462008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5447
5448 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
5449 Fclear_face_cache.
5450
5451 * xfaces.c (face_for_font): Check also face->font==font->font.font.
5452
73acf815 54532008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
5454
5455 * emacs.c (main): Change default value of `enable_font_backend' to 1.
5456 Parse "--disable-font-backend" option.
5457 (standard_args): Add "--disable-font-backend" option.
5458
73acf815 54592008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5460
5461 * fontset.c (fontset_find_font): New function.
5462 (fontset_font): Use fontset_find_font.
5463 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
5464 Register the specified font for all Latin characters.
5465 (new_fontset_from_font): Register the specified font for all Latin
5466 characters.
5467 (dump_fontset): For a realized fontset, include the base fontset
5468 name in the returned vector.
5469
73acf815 54702008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5471
5472 * character.h (CHAR_STRING): Cast C to unsigned on calling
5473 char_string.
5474
5475 * character.c (char_string): Type of arg C changed to unsigned.
5476 Signal an error if C is an invalid character code.
5477
4c4475a8
GM
5478 * editfns.c (general_insert_function, Fchar_to_string):
5479 Use CHARACTERP, not INTEGERP.
aca7a3d2 5480
73acf815 54812008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5482
5483 * character.h (MIN_MULTIBYTE_LEADING_CODE)
5484 (MAX_MULTIBYTE_LEADING_CODE): New macros.
5485
5486 * regex.c (analyse_first): Fix for multibyte characters in "case
5487 charset:" and "case categoryspec:".
5488
73acf815 54892008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
5490
5491 * Makefile.in (LIBES): Move standard libraries to the end.
5492
73acf815 54932008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5494
5495 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
5496 nonzero, don't shrink the buffer nextb.
5497
5498 * buffer.h (struct buffer_text): New member inhibit_shrinking.
5499
5500 * coding.c (coding_alloc_by_making_gap): New arg offset.
5501 (alloc_destination): Call coding_alloc_by_making_gap with the arg
5502 offset.
5503 (decode_coding_iso_2022): Update coding->safe_charsets.
5504 (decode_coding_gap): Temporarily set
5505 current_buffer->text->inhibit_shrinking to 1.
5506
73acf815 55072008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5508
5509 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
5510 indexing into elements of s->cmp and s->char2b.
5511
73acf815 55122008-02-01 Juanma Barranquero <lekktu@gmail.com>
aca7a3d2
MB
5513
5514 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
5515
73acf815 55162008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5517
5518 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
5519 target_multibyte instead of multibyte.
5520 (re_match_2_internal): Call bcmp_translate with target_multibyte.
5521 (bcmp_translate): Change the argument name from multibyte to
5522 target_multibyte.
5523
73acf815 55242008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5525
5526 These changes are to compile a regexp into a pattern that can be
5527 used both for multibyte and unibyte targets.
5528
5529 * Makefile.in (search.o): Depend on charset.h.
5530
5531 * character.c (multibyte_char_to_unibyte_safe): New function.
5532
5533 * search.c: Include "charset.h".
5534 (compile_pattern_1): Delete argument multibyte. Don't set
5535 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
5536 (compile_pattern): Don't compare cp->buf.target_multibyte.
5537 Compare cp->buf.charset_unibyte.
5538 (compile_pattern): Set cp->buf.target_multibyte.
5539
5540 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
5541
5542 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
5543
5544 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
1f45f627 5545 multibyte. Change callers.
aca7a3d2 5546 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
1f45f627
GM
5547 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
5548 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
aca7a3d2
MB
5549 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
5550 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
5551 (regex_compile): Make the compiled pattern usable both for
5552 multibyte and unibyte targets.
5553 (analyse_first): Make the fastmap usable both for multibyte and
5554 unibyte targets.
1f45f627 5555 (TRANSLATE_VIA_MULTIBYTE): Delete.
aca7a3d2
MB
5556 (re_match_2_internal): Pay attention to the case that the
5557 multibyteness of bufp and target may be different.
5558
73acf815 55592008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5560
5561 * xdisp.c (x_produce_glyphs): When a font is not found, make the
5562 empty box occupy at least one column width.
5563
73acf815 55642008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
5565
5566 * Makefile.in: Remove redundant HAVE_XFT clause.
5567
73acf815 55682008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5569
5570 * xrdb.c (x_load_resources): Setup the default fontSet X reource.
5571
73acf815 55722008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5573
5574 * fontset.c (Finternal_char_font): Fix for the case of POSITION
5575 being nil.
5576
73acf815 55772008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5578
5579 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
5580
73acf815 55812008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5582
5583 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
5584
73acf815 55852008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5586
5587 * search.c (simple_search): Fix previous change.
5588
73acf815 55892008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5590
5591 * xftfont.c (ftfont_font_format): Extern declaration.
5592
5593 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
5594
5595 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
5596 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
5597
5598 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
5599 (ftfont_font_format): Fix previous change.
5600
5601 * font.h (Ffont_xlfd_name): EXFUN it.
5602
5603 * font.c (font_parse_xlfd): Fix the array size of `f'.
5604 (register_font_driver): Use EQ to compare driver->type.
5605
5606 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
5607 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
5608 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
5609
73acf815 56102008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5611
4c4475a8
GM
5612 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
5613 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
aca7a3d2 5614
73acf815 56152008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5616
5617 * xfont.c (xfont_open): Set font->format.
5618
5619 * xftfont.c (xftfont_open): Set font->format.
5620
5621 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
5622 (ftfont_list): Include FC_FONTFORMAT in FcObject.
5623 (ftfont_open): Set font->format.
5624 (ftfont_font_format): New function.
5625
5626 * font.h (struct font): New memeber format.
5627
5628 * font.c (Qopentype): New variable.
5629 (syms_of_font): Defsym it.
5630 (Fquery_font): Change the format of the last element of the return
5631 value.
5632
73acf815 56332008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5634
5635 * xfns.c (xic_create_xfontset): Try the default fontset name as a
5636 last resort.
5637
73acf815 56382008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5639
5640 * coding.c (detect_coding_charset): Fix detection of multi-byte
5641 charset.
5642
73acf815 56432008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
aca7a3d2
MB
5644
5645 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
5646
73acf815 56472008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5648
5649 * xdisp.c (get_next_display_element): Set it->face_id for the
5650 first component of a composition.
1f45f627 5651 (x_produce_glyphs): Check if the font is changed or not for composition.
aca7a3d2 5652
73acf815 56532008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5654
5655 * fontset.c (Qlatin): New variable.
5656 (syms_of_fontset): Define it as a lisp symbol.
1f45f627 5657 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
aca7a3d2 5658
73acf815 56592008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5660
5661 * font.c (font_unparse_fcname): Pay attention to the case that
5662 some of font property is a null string.
5663
73acf815 56642008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5665
5666 * term.c: Include "composite.h".
5667 (encode_terminal_code): Output all components of composition.
5668 Check the size of encode_terminal_src.
424c157f 5669 (produce_glyphs): For composition, call produce_composite_glyph.
aca7a3d2
MB
5670 (append_composite_glyph, produce_composite_glyph): New functions.
5671
5672 * xdisp.c (x_produce_glyphs): In handling composition, if a font
5673 is not found, get font_info from the current ascii face.
5674
73acf815 56752008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5676
5677 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
5678 buffer-file-name to Qnil before calling insert_from_buffer.
5679
5680 * font.c (font_unparse_fcname): Pay attention to the case that
5681 foundry is a null string.
5682
73acf815 56832008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5684
5685 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
5686
5687 * font.c (Qunicode_sip): New variable.
5688 (syms_of_font): Declare it as a Lisp symbol.
5689
5690 * font.h (Qunicode_sip): Extern it.
5691
73acf815 56922008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5693
1f45f627 5694 * composite.c (get_composition_id): Pay attention to TAB component.
aca7a3d2
MB
5695
5696 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
1f45f627 5697 TAB. Adjust for the change of s->char2b which always points to
aca7a3d2
MB
5698 the first elememnt of allocated memory.
5699
1f45f627 5700 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
aca7a3d2
MB
5701
5702 * xdisp.c (handle_composition_prop): Set it->c to the first
5703 non-TAB component.
1f45f627
GM
5704 (fill_composite_glyph_string): Change argument.
5705 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
aca7a3d2
MB
5706 (x_produce_glyphs): Fix handling of left/right padding.
5707
73acf815 57082008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5709
5710 * coding.c (detect_coding_system): Fix for handling off
5711 inhibit_iso_escape_detection. Fix for the case that no coding
5712 system is defined for a specific coding category.
5713
73acf815 57142008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5715
1f45f627 5716 * font.c (font_matching_entity): Delete unused local var.
aca7a3d2
MB
5717
5718 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
5719 opening a font.
5720
5721 * fileio.c (Finsert_file_contents): On recovering a file, assume
5722 Unix-like eol.
5723 (choose_write_coding_system): On auto-saving a file, force
5724 Unix-like eol.
5725
5726 * coding.c (setup_coding_system): Fix setting of
5727 coding->common_flags based on eol_type.
5728 (coding_inherit_eol_type): If PARENT is not nil, be sure to
5729 inherit from it.
5730
73acf815 57312008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5732
1f45f627 5733 * alloc.c (NSTATICS): Increas to 0x600.
aca7a3d2 5734
73acf815 57352008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5736
1f45f627 5737 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
aca7a3d2
MB
5738 (ftfont_list): Don't check :name property.
5739 (ftfont_match): New function.
5740 (ftfont_pattern_entity): If the pattern doesn't contain
5741 FC_SPACING, don't assuce FC_MONO.
5742
5743 * font.h (struct font_driver): New member `match'.
1f45f627 5744 (font_update_drivers): Adjust prototype.
aca7a3d2 5745
4c4475a8
GM
5746 * font.c (font_parse_fcname, font_parse_name): Don't change :name
5747 property of FONT.
aca7a3d2
MB
5748 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
5749 them unconditionally.
5750 (font_matching_entity): New function.
5751 (font_open_by_name): Try font_matching_entity if exact match is
5752 not found.
5753 (font_update_drivers): Delete the arg FONT. Return a list of
5754 actually used backends. Don't free faces, font caches here.
5755 Don't store data in frame parameters. Don't call x_set_font.
5756 (Ffont_spec): Store :name property as is.
5757 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
1f45f627
GM
5758 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
5759 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
aca7a3d2
MB
5760 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
5761 Call font->driver->otf_gsub instead of font_otf_gsub.
5762
5763 * frame.c (x_set_font_backend): Do more works that were done in
5764 font_update_drivers before.
5765
5766 * xfont.c (xfont_match): New function.
5767 (xfont_driver): Set xfont_driver.match to xfont_match.
5768 (xfont_draw): Set font in GC if necessary.
5769
5770 * ftxfont.c (ftxfont_match): New function.
5771 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
5772
5773 * xftfont.c (xftfont_match): New function.
5774 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
5775
73acf815 57762008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5777
5778 * font.h (struct font): New member scalable.
5779 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
1f45f627 5780 (font_otf_gsub): Adjust prototype.
aca7a3d2 5781
1f45f627
GM
5782 * font.c (font_otf_capability): Fix handling of the default langsys.
5783 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
aca7a3d2
MB
5784 Check the contents of SPEC.
5785 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
5786 (check_gstring): New function.
5787 (REPLACEMENT_CHARACTER): New macro.
5788 (font_otf_gsub): New arg alternate_subst. Be sure to set all
5789 glyph codes of GSTRING.
5790 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
5791 (font_prepare_composition): Set cmp->glyph_len.
5792 (font_open_entity): Set font->scalable.
5793 (Ffont_get): Handle :otf property.
5794 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
5795 functions.
5796 (Fquery_font): Use font->font.full_name.
5797 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
5798 Sfont_otf_alternates.
5799
5800 * ftfont.c (ftfont_open): Set font->font.full_name and
5801 font->font.name properly. Fix calculation of font->font.height
5802 and font->min_width.
5803
5804 * ftxfont.c (ftxfont_create_gcs): New function.
5805 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
5806 (ftxfont_draw_backgrond): Fix filling region.
5807 (ftxfont_default_fid): New function.
5808 (ftxfont_open): Set xfotn->fid to the return value of
5809 ftxfont_default_fid.
5810 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
5811 (ftxfont_done_face): Free only GCs that are created by
5812 ftxfont_create_gcs.
5813 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
5814
5815 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
5816 Clip to src->width, etc (not src->clip_XXX).
5817
5818 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
5819 FontBackend frame parameter.
5820
73acf815 58212008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5822
5823 * font.h (struct font_driver_list): New member `on'.
5824 (Fclear_font_cache): EXFUN it.
5825 (font_update_drivers): Extern it.
5826
5827 * font.c (font_unparse_fcname): Fix typo (swidth->width).
5828 (font_list_entities): Check driver_list->on.
5829 (register_font_driver): Initalize `on' member to 0.
5830 (font_update_drivers): New function.
5831 (Fclear_font_cache): Check driver_list->on.
5832
5833 * frame.h (Qfont_backend): Extern it.
5834 (x_set_font_backend): Extern it.
5835
5836 * frame.c (Qfont_backend): New variable.
5837 (frame_parms): New element for font-backend.
5838 (x_set_font_backend): New function.
5839
5840 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
5841 FontBackend frame parameter.
5842 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
5843 x_set_font_backend.
5844
5845 * xfont.c (xfont_list): Don't try listing by :name property if the
5846 name is not for XLFD.
5847
73acf815 58482008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5849
5850 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
5851 (LGLYPH_SET_TO): New macros.
5852 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
5853 element of G is vector or not.
5854 (font_at): Extern it.
5855
5856 * font.c: Include window.h.
5857 (font_lispy_object): New function.
5858 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
5859 end of valid glyph.
5860 (font_close_object): Fix getting (struct font *).
5861 (font_at): New function.
5862 (Ffont_get): If FONT is a font-object, get entity from it.
5863 (Ffont_make_gstring): Initialize elements of glyphs with nil.
5864 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
5865 range check.
5866 (Ffont_at): New function.
5867 (syms_of_font): Defsubr Sfont_at.
5868
5869 * xdisp.c (it_props): Move the entry for Qauto_composed to just
424c157f 5870 before the entry for Qcomposition.
1f45f627 5871 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
aca7a3d2
MB
5872 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
5873 the font in gstring.
5874 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
5875 LGLYPH_FORM (g) to detect the end of valid glyph.
5876 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
5877 we are composing with gstring.
5878
5879 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
5880 Check if adjustment is vector or not.
5881
5882 * Makefile.in (font.o): Make it depends on window.h.
5883
73acf815 58842008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5885
5886 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
5887 adjustment is vector or not.
5888
73acf815 58892008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
5890
5891 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
5892
73acf815 58932008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5894
5895 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
5896 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
5897 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
5898
1f45f627 5899 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
aca7a3d2 5900 (DEVICE_DELTA): Fix typo.
4c4475a8
GM
5901 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
5902 LGLYPH format.
aca7a3d2 5903
1f45f627 5904 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aca7a3d2
MB
5905 the change of LGLYPH format.
5906
73acf815 59072008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5908
5909 * ftfont.c (ftfont_list): Fix typo.
1f45f627 5910 (ftfont_build_basic_charsets): Don't include letters with diacritics.
aca7a3d2 5911
880820fe 59122008-02-01 Jan Djärv <jan.h.d@swipnet.se>
aca7a3d2
MB
5913
5914 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
5915
5916 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
5917 xftface_info is non-NULL.
5918
880820fe 59192008-02-01 Jan Djärv <jan.h.d@swipnet.se>
aca7a3d2 5920
1f45f627 5921 * ftfont.c (ftfont_list): Move misplaced #endif.
aca7a3d2 5922
73acf815 59232008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5924
5925 * ftfont.c (ftfont_list): Pay attention to the case that
5926 FC_CAPABILITY is not defined.
5927
73acf815 59282008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5929
5930 * xftfont.c (xftfont_open): Set charset related members to -1.
5931
1f45f627
GM
5932 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
5933 QCname.
aca7a3d2
MB
5934 (ftfont_open): Set charset related members to -1.
5935
5936 * fontset.c (Votf_script_alist): New variable.
5937 (syms_of_fontset): Initialize it.
5938 (fontset_font): Delete unused variable.
5939
5940 * fontset.h (Votf_script_alist): Extern it.
5941
1f45f627 5942 * font.c (font_find_for_lface): Optimize code.
aca7a3d2
MB
5943
5944 * font.h (font_close_object, font_merge_old_spec): Extern them.
5945
73acf815 59462008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5947
5948 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
5949 (syms_of_font): Initialize them.
5950 (font_pixel_size): Allow float value in dpi.
1f45f627
GM
5951 (font_prop_validate_type): Delete.
5952 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
5953 Change caller.
5954 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
5955 (font_prop_validate_extra): Delete.
aca7a3d2
MB
5956 (font_prop_validate_spacing): New function.
5957 (font_property_table): Add elements for all known properties.
1f45f627
GM
5958 (get_font_prop_index): Rename from check_font_prop_name. New
5959 argument FROM. Change caller.
aca7a3d2 5960 (font_prop_validate): Validate all known properties.
1f45f627 5961 (font_put_extra): Delete argument force. Change caller.
aca7a3d2
MB
5962 (font_expand_wildcards): Make it static. Fix the way of shrinking
5963 the possible range.
1f45f627 5964 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
aca7a3d2 5965 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
1f45f627 5966 Change caller.
aca7a3d2 5967 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
1f45f627
GM
5968 (font_parse_fcname): Delete argument merge. Fix parsing of point
5969 size. Don't validate properties values here. Change caller.
5970 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
aca7a3d2
MB
5971 (font_open_by_name): Delete unused variable.
5972 (Ffont_spec): Likewise. Validate property values.
5973 (Ffont_match_p): New function.
5974
5975 * font.h (QCscalable): Extern it.
1f45f627 5976 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
aca7a3d2 5977
1f45f627 5978 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
aca7a3d2 5979
1f45f627 5980 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
aca7a3d2
MB
5981 (xfont_list_pattern): New function.
5982 (xfont_list): Use xfont_list_pattern.
5983
73acf815 59842008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5985
5986 * font.h (Flist_fonts): EXFUN it.
5987
73acf815 59882008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5989
5990 * w32term.c (w32_initialize): Add back smoothing_type and
5991 smoothing_enabled definitions.
5992
73acf815 59932008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5994
5995 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
5996 s->face->font on determining underline position.
5997
73acf815 59982008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5999
6000 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
6001 (font_has_char): Accept font-object too.
6002 (font_find_for_lface): Try at first with a size specified in face.
6003
73acf815 60042008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6005
6006 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
6007 font_open_by_name.
6008
73acf815 60092008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6010
6011 * font.h (QCspacing, QCdpi): Extern them.
6012 (enum font_spacing): New enum.
6013 (FONT_PIXEL_SIZE_QUANTUM): New macro.
6014
6015 * font.c (POINT_TO_PIXEL): Don't divice POINT by 10.
6016 (QCspacing, QCdpi): New variables.
6017 (syms_of_font): Initialize them.
6018 (font_pixel_size): New function.
6019 (font_put_extra): New function.
6020 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
6021 in FONT_EXTRA.
e9184ccb
JB
6022 (font_parse_fcname): Handle enumenrated values (e.g. bold).
6023 Fix handling font size. Add QCname property that contains only
aca7a3d2 6024 unknown properties.
1f45f627 6025 (font_score): Change argument. Change caller. Pay attention to
aca7a3d2 6026 FONT_PIXEL_SIZE_QUANTUM.
4c4475a8
GM
6027 (font_sort_entites, font_list_entities, font_find_for_lface)
6028 (font_open_for_lface, font_open_by_name): Fix handling of font size.
1f45f627 6029 (Ffont_spec): Add QCname property that contains only unknown properties.
aca7a3d2
MB
6030
6031 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
6032 include weight in listing pattern, instead check weight of each
6033 listed font. Don't include scalable in pattern. Pay attention to
6034 FONT_PIXEL_SIZE_QUANTUM.
6035
73acf815 60362008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6037
aca7a3d2 6038 * font.c (font_parse_fcname): Fix parsing of point-size.
1f45f627 6039 (font_unparse_fcname): Produce symbolic names for style properties.
aca7a3d2
MB
6040 (font_list_entities): Handle float size correctly.
6041 (font_open_by_name): Prefer `normal' property values if the name
6042 doesn't specify them.
6043
6044 * fontset.c (Finternal_char_font): Use font_get_name, not
6045 Ffont_xlfd_name.
6046
6047 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
6048 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
6049 pattern. Don't force scalable.
6050
6051 * xftfont.c (xftfont_open): For generating a name, start from
6052 96-byte buffer.
6053
880820fe 60542008-02-01 Jan Djärv <jan.h.d@swipnet.se>
aca7a3d2
MB
6055
6056 * frame.h (x_new_fontset2): Fix prototype.
6057
73acf815 60582008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6059
1f45f627 6060 * font.h (struct font_driver): Delete member parse_name.
aca7a3d2
MB
6061 (font_match_p, font_get_spec, font_parse_fcname)
6062 (font_unparse_fcname): Extern them.
1f45f627 6063 (font_get_name): Adjust prototype.
aca7a3d2
MB
6064
6065 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
6066 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
6067 (font_expand_wildcards): Fix handling ENCODING field. Avoid
6068 unnecessary checks for weight, slant, and swidth.
6069 (font_parse_fcname): New function.
6070 (font_unparse_fcname): New function.
6071 (font_parse_name): New function.
6072 (font_match_p): New function.
1f45f627 6073 (font_get_name): Change return value to Lisp string.
aca7a3d2
MB
6074 (font_get_spec): New function.
6075 (Qunspecified, Qignore_defface): Don't extern them.
6076 (font_find_for_lface): Assume that LFACE is fully specified.
6077 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
6078 object, use it for FACE.
6079 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
6080 driver->parse_name.
6081 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
6082
1f45f627
GM
6083 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
6084 prototype.
aca7a3d2 6085
1f45f627
GM
6086 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
6087 argument F. Don't call Fnew_fontset. Instead, directly call
aca7a3d2
MB
6088 make_fontset.
6089
1f45f627 6090 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
aca7a3d2 6091
1f45f627 6092 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
aca7a3d2
MB
6093 of x_new_fontset2.
6094
6095 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
6096 (Qsans__serif): New variables.
6097 (ftfont_generic_family_list): New variable.
6098 (syms_of_ftfont): Initialize the above variables.
1f45f627 6099 (ftfont_pattern_entity): Delete argument NAME.
aca7a3d2
MB
6100 (ftfont_list_generic_family): New function.
6101 (ftfont_parse_name): Delete this function.
1f45f627 6102 (ftfont_list): Try generic family only when FcFontList found no font.
aca7a3d2
MB
6103 (ftfont_list_family): Fix args to FcObjectSetBuild.
6104
6105 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
6106 object in attrs[LFACE_FONT_INDEX].
6107 (set_lface_from_font_name): Cancel all changes for font-backend.
6108 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
6109 function.
6110 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
6111 font object in QCfont attribute.
6112 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
6113 (realize_default_face) [USE_FONT_BACKEND]: Call
6114 set_lface_from_font_and_fontset.
6115
6116 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
6117 "fixed", and signal error here if no suitable font was found.
6118
6119 * xfont.c (xfont_parse_name): Delete this function.
6120
6121 * xftfont.c (xftfont_open): Change coding style of error
6122 handling. Generate fontconfig's fontname pattern.
6123
6124 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
6125 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
6126
6127 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
6128 Both args FONTSET and FONT_OBJECT must be existing ones.
6129
73acf815 61302008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
6131
6132 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
6133
73acf815 61342008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6135
6136 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
6137
6138 * font.h (struct font): Fix typo.
6139
6140 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
6141 XLFD_XXX_INDEX.
6142 (enum xlfd_field_mask): New enum.
1f45f627 6143 (intern_font_field): Changed argument. Change caller. If digits
aca7a3d2
MB
6144 are followed by non-digits, return a symbol.
6145 (font_expand_wildcards): New function.
6146 (font_parse_xlfd): Fix wildcard handling.
6147 (Ffont_spec): If :name is specified, reflect the info in the other
6148 properties.
6149
6150 * ftfont.c (ftfont_pattern_entity): Fix typo.
6151 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
6152 locale.
6153
73acf815 61542008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6155
6156 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
6157
1f45f627 6158 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
aca7a3d2
MB
6159 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
6160 registry doesn't specify encoding part.
6161 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
6162 (font_open_by_name): At first try parsing the name.
6163 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
6164 as Lisp symbols.
6165
6166 * fontset.c (reorder_font_vector): Pay attention to the case that
6167 the 3rd element of font_def is nil.
6168 (fontset_font): For the default fontset, append one more fontset
6169 elements for a script-based font specification. Don't add script
6170 attribute on finding a font.
6171 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
6172 font name.
6173 (fontset_ascii_font): If a font can't be opened, return nil.
6174
1f45f627 6175 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
aca7a3d2
MB
6176 (ftfont_pattern_entity): New function.
6177 (ftfont_get_cache): Assume that freetype_font_cache is already
6178 initialized.
6179 (ftfont_list): Handle the case that a file is specified in font
6180 name. Use ftfont_pattern_entity to generate entities.
6181 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
6182 (syms_of_ftfont): Initialize freetype_font_cache.
6183
6184 * xftfont.c (xftfont_open): Make the font name fontconfig's
6185 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
6186 (xftfont_close): Free font->font.name if not NULL.
6187
6188 * xfont.c (xfont_list): If script is specified for a font, return
6189 null_vector.
6190 (xfont_list_family): Declare argument type.
6191
6192 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
6193 name, set LFACE_FONT (lface) to nil.
6194
6195 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
6196 return Qnil.
6197
73acf815 61982008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6199
1f45f627 6200 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
aca7a3d2
MB
6201 (standard_args): Add "-enable-font-backend".
6202
73acf815 62032008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6204
6205 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
6206 (struct xftdraw_list, xftdraw_list): Delete them.
6207 (register_xftdraw, check_xftdraw): Delete them.
6208 (xftfont_prepare_face): Don't call register_xftdraw.
6209 (xftfont_done_face): Don't call check_xftdraw.
6210 (xftfont_draw): Get backroudn color only when with_background is
6211 nonzero.
6212
6213 * xfont.c (xfont_encode_char): Fix calculation of char2b.
6214
73acf815 62152008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6216
6217 These changes are for the new font handling codes.
6218
6219 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
6220 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
6221 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
6222 (FONTSRC, FONTOBJ): New variables.
6223 (obj): Add $(FONTOBJ).
6224 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
6225 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
6226 @LIBOTF_LIBS@.
6227 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
1f45f627 6228 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
aca7a3d2 6229
1f45f627 6230 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
aca7a3d2
MB
6231
6232 * character.h (Vscript_representative_chars): Extern it.
6233
6234 * character.c (Vscript_representative_chars): New variable.
6235 (syms_of_character): Declare it as a Lisp variable.
6236
6237 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
6238 enable_font_backend is nonzero, accept the composition method
6239 COMPOSITION_WITH_GLYPH_STRING.
6240
6241 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
6242 enumeration COMPOSITION_WITH_GLYPH_STRING.
6243
aca7a3d2
MB
6244 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
6245 members clip_x, clip_y, clip_width, and clip_height.
6246 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
6247
6248 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
6249 --enable-font-backend. Call syms_of_font.
6250
6251 * fns.c (assoc_no_quit): New function.
6252
6253 * fontset.h (FONT_INFO_FROM_FACE): New macro.
6254 (face_for_font, new_fontset_from_font)
6255 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
6256
6257 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
6258 (fontset_font, fontset_ascii, face_for_char)
6259 (make_fontset_for_ascii_face, Ffont_info)
6260 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
6261 is nonzero, use font-backend mechanism.
6262 (find_font_encoding): Make it non-static.
6263 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
6264 New functions.
6265
6266 * frame.h (struct frame): New members resx and resy.
6267 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
6268 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
6269
6270 * frame.c [USE_FONT_BACKEND]: Include "font.h".
1f45f627 6271 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
aca7a3d2
MB
6272
6273 * lisp.h (assoc_no_quit): Extern it.
6274
6275 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
6276 Through out the file, use FONT_INFO_FROM_FACE instead of
6277 FONT_INFO_FROM_ID, use get_per_char_metric instead of
6278 rif->per_char_metric.
6279 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
6280 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
6281 (get_glyph_face_and_encoding, fill_composite_glyph_string)
6282 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
6283 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
6284 nonzero, use font-backend mechanism.
6285 (get_per_char_metric): New function.
6286
6287 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
6288 (set_lface_from_font_name)
6289 (set_font_frame_param, free_realized_face)
6290 (prepare_face_for_display, clear_face_gcs)
6291 (Finternal_set_font_selection_order, realize_x_face)
6292 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
6293 font-backend mechanism.
1f45f627 6294 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
aca7a3d2
MB
6295 (load_face_font) [USE_FONT_BACKEND]: Abort.
6296 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
1f45f627 6297 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
aca7a3d2
MB
6298
6299 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
6300 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
6301 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
6302 nonzero, register all available font drivers. Call
6303 x_default_font_parameter for deciding a font.
6304 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
6305
6306 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
6307 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
6308 (x_set_glyph_string_clipping_exactly)
6309 (x_compute_glyph_string_overhangs)
6310 (x_draw_glyph_string_foreground)
6311 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
6312 (x_free_frame_resources) [USE_FONT_BACKEND]: If
6313 enable_font_backend is nonzero, use font-backend mechanism.
6314 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
6315
73acf815 63162008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6317
fcb314b2 6318 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
aca7a3d2
MB
6319 system_eol_type.
6320 (syms_of_coding): Initialize system_eol_type.
6321
fcb314b2
GM
6322 * process.c (Fset_process_coding_system): Inherit system's eol
6323 format if necessary.
aca7a3d2 6324
73acf815 63252008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
6326
6327 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
6328
73acf815 63292008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6330
6331 * coding.c (decode_eol): Pay attention to buffer relocation in
6332 del_range_2.
6333 (decode_coding): Call decode_eol before restoring undo_list.
6334
73acf815 63352008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6336
6337 * charset.c (Fdefine_charset_internal): Fix setting of
6338 emacs_mule_bytes.
6339
73acf815 63402008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6341
6342 * keyboard.c (read_char): Check if C is a character or not before
6343 looking up Vkeyboard_translate_table.
6344
73acf815 63452008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6346
6347 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
6348 condition to terminate the loop.
6349
73acf815 63502008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6351
6352 * coding.c (produce_composition): Compare charbuf[i] instead of
6353 args[i] against 0.
6354 (Fterminal_coding_system): Use EQ to compare Lisp objects.
6355
73acf815 63562008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6357
6358 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
6359 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
6360 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
6361 detect_coding.
6362 (emacs_mule_char): Handle old style (Emacs 20) component character
6363 of a composition.
4c4475a8
GM
6364 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
6365 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
6366 composition rule.
aca7a3d2
MB
6367 (decode_coding_emacs_mule): Handle invalid bytes correctly.
6368
73acf815 63692008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6370
6371 * coding.c (encode_coding_ccl): Allocate destination dynamically
6372 when necessary.
6373
73acf815 63742008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6375
6376 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
6377 the loop. When quitted, show a proper error message.
6378
73acf815 63792008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6380
aca7a3d2
MB
6381 * xterm.c (x_set_glyph_string_clipping_exactly): Set
6382 src->clip_head and src->clip_tail temporarily instead of src->hl.
6383
6384 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
6385 character sequence.
6386 (Fccl_execute_on_string): Use ASET, not XSET.
6387
73acf815 63882008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6389
1f45f627 6390 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
aca7a3d2 6391
73acf815 63922008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6393
6394 * coding.c (decode_coding): Fix the condition of terminating the
6395 decoding loop.
6396
73acf815 63972008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6398
6399 * data.c (Faset): On setting a character bigger than 255 in a
1f45f627 6400 unibyte string, signal an error instead of make the string multibyte.
aca7a3d2 6401
73acf815 64022008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6403
6404 * charset.c (map_charset_chars): Fix for ascii-compatible charset
6405 made by a mapping table.
6406
73acf815 64072008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6408
6409 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
6410 not.
6411 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
6412 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
6413
6414 * xterm.c (x_draw_composite_glyph_string_foreground): Check
6415 s->face is NULL or not.
6416
73acf815 64172008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6418
6419 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
6420 (x_draw_glyph_string): Fix drawing of right_overhang and
6421 left_overhang around/on cursor.
6422
1f45f627 6423 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
aca7a3d2 6424
73acf815 64252008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6426
6427 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
6428
73acf815 64292008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6430
4c4475a8
GM
6431 * coding.c (Fdefine_coding_system_internal)
6432 (Fdefine_coding_system_alias): Avoid a duplicated element in
6433 Vcoding_system_alist.
aca7a3d2 6434
73acf815 64352008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6436
6437 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
6438
fcb314b2 6439 * coding.c (Qcoding_system_define_form): New variable.
aca7a3d2
MB
6440 (syms_of_coding): Intern and staticpro it.
6441 (Fcoding_system_p): Check Qcoding_system_define_form.
1f45f627 6442 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
aca7a3d2
MB
6443
6444 * coding.h (CODING_SYSTEM_P): If ID is not available, call
6445 Fcoding_system_p.
6446 (CHECK_CODING_SYSTEM): If ID is not available, call
6447 Fcheck_coding_system.
4c4475a8
GM
6448 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
6449 Try also Fcheck_coding_system.
aca7a3d2 6450
73acf815 64512008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6452
aca7a3d2
MB
6453 * coding.c (code_conversion_restore): GCPRO arg.
6454
73acf815 64552008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6456
6457 * character.c (lisp_string_width): Check multibyteness of STRING.
6458
73acf815 64592008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
6460
6461 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
6462 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
6463 (decode_mac_font_name): Use decode_coding_c_string instead of
6464 decode_coding.
6465 (x_load_font): Initialize fontp->fontset to -1. Set
6466 fontp->encoding_type.
6467
73acf815 64682008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6469
6470 * search.c (search_buffer): Give up BM search on case-fold-search
6471 if one of a target character has a case-equivalence of different
6472 byte length even if that target charcter is an ASCII.
1f45f627
GM
6473 (simple_search): Fix calculation of byte length of matched text.
6474 (boyer_moore): Fix handling of case-equivalent multibyte characters.
aca7a3d2 6475
73acf815 64762008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6477
6478 * coding.c (decode_coding): Fix handling of invalid bytes.
6479
73acf815 64802008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6481
6482 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
6483 Unicode characters.
6484
73acf815 64852008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6486
6487 * coding.c (encode_coding_object): If a pre-write-conversion
6488 function makes a new buffer, kill it.
6489
73acf815 64902008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6491
6492 * coding.c (QCascii_compatible_p): New variable.
6493 (syms_of_coding): Initialize it.
4c4475a8
GM
6494 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
6495 calling string_char.
aca7a3d2
MB
6496 (record_conversion_result): Add `default:' case.
6497 (coding_charset_list): Delete unused variable `coding_type'.
6498 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
6499 property in the plist of the coding system.
6500 (Fcoding_system_put): Check QCascii_compatible_p.
6501
73acf815 65022008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
6503
6504 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
6505 removed calculation of frame `f', as it's now used.
6506
73acf815 65072008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6508
1f45f627 6509 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
aca7a3d2
MB
6510 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
6511 (UNIDATA): New variable.
6512 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
6513 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
6514 $(RUN_TEMACS) unconditionally.
6515
73acf815 65162008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6517
1f45f627 6518 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
aca7a3d2
MB
6519 (admindir): New variable.
6520 ($(lispsource)international/charprop.el): New target.
6521
73acf815 65222008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2 6523
1f45f627 6524 * character.c (chars-in-region): Remove obsolete function.
aca7a3d2
MB
6525 (syms_of_character): Remove its initialization.
6526
73acf815 65272008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
aca7a3d2
MB
6528
6529 * w32select.c (validate_coding_system)
6530 (setup_windows_coding_system): New functions.
6531 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
6532 setup_windows_coding_system.
6533 (setup_config, Fw32_get_clipboard_data): Use
6534 validate_coding_system.
6535 (Fx_selection_exists): Move call to setup_config to a place
1f45f627 6536 where signals are allowed.
aca7a3d2
MB
6537
6538 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
6539 (Fcheck_coding_system): Add declarations.
6540
73acf815 65412008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6542
1f45f627 6543 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
aca7a3d2 6544
73acf815 65452008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
6546
6547 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
6548 string as the second argument for x_new_fontset.
6549
73acf815 65502008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6551
6552 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
6553 (encode_coding_object): Use safe_call instead of call2.
6554
73acf815 65552008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6556
1f45f627 6557 * fontset.c (Fset_fontset_font): Check family element of a given vector.
aca7a3d2
MB
6558
6559 * Makefile.in (lisp): Include charprop.el.
6560
73acf815 65612008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
6562
6563 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
6564 Not sure if it's unnecessary.
6565
73acf815 65662008-02-01 Steven Tamm <steventamm@mac.com>
aca7a3d2
MB
6567
6568 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
6569 some possibly unnecessary fontset checking code that crashed
1f45f627 6570 when creating a new frame.
aca7a3d2 6571
73acf815 65722008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6573
6574 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
6575 lookup_face.
6576
6577 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
6578
1f45f627 6579 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
aca7a3d2 6580
73acf815 65812008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6582
73acf815 6583 * coding.c: Cancel the change done in HEAD on 2008-02-01.
aca7a3d2
MB
6584 (coding_charset_list): New function.
6585
6586 * coding.h (coding_charset_list): Extern it.
6587
73acf815 65882008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6589
6590 * fontset.c (Fset_fontset_font): Call find_font_encoding with
6591 concatenation of family and registry.
6592
73acf815 65932008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6594
6595 * character.h (BYTE8_STRING): Fix typo.
6596
6597 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
6598 string to multibyte (sync to HEAD).
6599
6600 * casefiddle.c (casify_region): Handle changes in byte-length
6601 using replace_range_2 (sync to HEAD).
6602
73acf815 66032008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
6604
6605 * chartab.c (map_char_table): GCPRO table and arg.
6606
73acf815 66072008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6608
6609 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
6610 already at limit.
6611
73acf815 66122008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6613
6614 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
6615 instead of fast_c_string_match_ignore_case.
1f45f627 6616 (find_font_encoding): Change argument to Lisp_Object. Use
aca7a3d2 6617 fast_string_match_ignore_case instead of
1f45f627 6618 fast_c_string_match_ignore_case. Change caller.
aca7a3d2 6619
73acf815 66202008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6621
6622 * xdisp.c (get_next_display_element): In unibyte case, decide to
6623 display in octal form by checking a chacter by
6624 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
6625
1f45f627 6626 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
aca7a3d2
MB
6627
6628 * character.c (unibyte_has_multibyte_table): New variable.
6629
6630 * character.h (unibyte_has_multibyte_table): Extern it.
6631 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
6632
73acf815 66332008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6634
6635 * coding.c (encode_coding_iso_2022): Fix handling of charset
6636 annotation.
6637
73acf815 66382008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6639
6640 * coding.c (setup_coding_system): If coding_system is nil, use
6641 Qundecided.
6642 (Fterminal_coding_system): Return nil if terminal coding system is
6643 `undecided'.
6644 (syms_of_coding): Define coding-system `undecided' here. Setup
6645 terminal_coding as `undecided'.
6646
73acf815 66472008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6648
6649 * xdisp.c (message_dolog, set_message_1): Call
6650 unibyte_char_to_multibyte with arg type int.
6651
aca7a3d2
MB
6652 * lread.c (read1): Fix reading of a char-table.
6653
6654 * print.c (print_object): Include sub char-table in cicularities
6655 detection.
6656
73acf815 66572008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6658
6659 * keymap.c (where_is_internal_2): Fix for the case that KEY is a
1f45f627 6660 cons. Append the found sequences in car of ARGS instead of prepending.
aca7a3d2 6661
73acf815 66622008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6663
6664 * fileio.c (report_file_error): Make a unibyte string from
6665 strerror (errorno).
6666 (Fsubstitute_in_file_name): Fix the arg to
6667 unibyte_char_to_multibyte. It is evaluated twice.
6668
73acf815 66692008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6670
6671 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
6672
73acf815 66732008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6674
6675 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
6676 BOM is not found.
4c4475a8
GM
6677 (detect_coding, detect_coding_system): Optimization for ISO-2022
6678 when no 8-bit data is found.
aca7a3d2 6679
73acf815 66802008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6681
6682 * w32fns.c (x_to_w32_font): Update to use new coding struct.
6683
73acf815 66842008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6685
4c4475a8
GM
6686 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
6687 CHARS.
aca7a3d2 6688
73acf815 66892008-02-01 Steven Tamm <steventamm@mac.com>
aca7a3d2
MB
6690
6691 * macterm.c (mac_encode_char): Add charset argument and update
6692 to use encoding_type.
2a2e8de7 6693 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
1f45f627
GM
6694 switch to pure fontset.
6695 (decode_mac_font_name): Temporarily remove decoding.
6696 (x_font_name_to_mac_font_name): Temporarily remove encoding.
6697 (x_load_font): Temporarily remove encoding.
aca7a3d2 6698
73acf815 66992008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6700
6701 * xfaces.c (Fface_font): If frame is not on a window system,
6702 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
6703 refer to face->font.
6704 (split_font_name_into_vector, build_font_name_from_vector)
6705 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
6706 whne HAVE_WINDOW_SYSTEM is defined.
6707
73acf815 67082008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6709
6710 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
6711 (x_produce_glyphs): Fix setting of members of cmp in case
1f45f627 6712 cmp->glyph_len is zero.
aca7a3d2 6713
1f45f627 6714 * fontset.c (Fset_fontset_font): Fix docstring.
aca7a3d2
MB
6715 (Ffontset_info): Make it backward compatible. New arg ALL.
6716
73acf815 67172008-02-01 Kim F. Storm <storm@cua.dk>
aca7a3d2
MB
6718
6719 * process.c (read_process_output): Grow decoding_buf when needed;
6720 this could cause a crash in allocate_string and compact_small_strings.
6721
73acf815 67222008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6723
1f45f627 6724 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
aca7a3d2 6725
73acf815 67262008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6727
6728 * coding.c (setup_coding_system): Set coding->common_flags
6729 correctly for raw-text.
6730 (consume_chars): On encoding unibyte text by raw-text, don't check
6731 multibyte form.
1f45f627 6732 (encode_coding): On encoding by raw-text, never use translation tables.
aca7a3d2
MB
6733
6734 * fileio.c (e_write): Short cut for the case of no encoding.
6735
73acf815 67362008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6737
4c4475a8
GM
6738 * coding.c (detect_coding, detect_coding_system): Delete unused
6739 variables.
aca7a3d2 6740
73acf815 67412008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6742
6743 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
6744 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
6745
73acf815 67462008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6747
6748 * coding.c (Ffind_coding_systems_region_internal): Include
6749 raw-text and no-conversion in the result.
6750
73acf815 67512008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6752
1f45f627 6753 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
aca7a3d2
MB
6754 (load_font_get_repertory): Delete unnecessary check of ENCODING of
6755 FONT_DEF.
6756 (font_def_arg, add_arg, from_arg, to_arg): New args.
1f45f627 6757 (set_fontset_font): Change argument.
aca7a3d2
MB
6758 (Fset_fontset_font): Fix for the case that TARGET is a script
6759 name and charset name.
6760 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
6761
73acf815 67622008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6763
1f45f627
GM
6764 * fontset.c (fontset_font): Rename from fontset_face. Change return
6765 value.
4c4475a8
GM
6766 (face_suitable_for_char_p, face_for_char): Adjust for the change
6767 of fontset_font.
aca7a3d2
MB
6768 (make_fontset_for_ascii_face): Fix setting of the fontset element
6769 for ASCII.
6770 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
6771 to get a font name.
1f45f627 6772 (Ffontset_info): Adjust for the change of fontset_font.
aca7a3d2 6773
fcb314b2 6774 * coding.c (emacs_mule_char): Check invalid code more regidly.
aca7a3d2
MB
6775
6776 * character.h (LEADING_CODE_LATIN_1_MIN)
6777 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
6778
73acf815 67792008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6780
fcb314b2 6781 * editfns.c (check_translation): New function.
aca7a3d2
MB
6782 (Ftranslate_region_internal): Handle M:N mapping.
6783
73acf815 67842008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6785
6786 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
6787
73acf815 67882008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6789
6790 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
6791 goto invalid_code.
6792 (decode_coding_iso_2022): Fix handling of invalid designation.
6793
6794 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
6795 after calling code_conversion_save.
6796
73acf815 67972008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6798
6799 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
6800
6801 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
6802
6803 * fontset.c: Include "intervals.h".
6804 (fontset_face): Fix comparing of Lisp_Objects.
4c4475a8
GM
6805 (free_face_fontset, new_fontset_from_font_name): Fix
6806 Lisp_Object/int mixup.
aca7a3d2
MB
6807
6808 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
6809
6810 * coding.c: Add many prototypes for static functions.
6811 (get_translation_table): Allow max_lookup to be NULL.
2a2e8de7 6812 (decode_coding, Ffind_coding_systems_region_internal)
4c4475a8
GM
6813 (Funencodable_char_position, Fcheck_coding_systems_region): Call
6814 get_translation_table with max_lookup NULL.
aca7a3d2 6815
73acf815 68162008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6817
6818 * coding.c (get_translation_table): Declare it as Lisp_Object.
6819 (LOOKUP_TRANSLATION_TABLE): New macro.
4c4475a8
GM
6820 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
6821 instead of CHAR_TABLE_REF.
aca7a3d2 6822
73acf815 68232008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6824
1f45f627 6825 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
aca7a3d2
MB
6826 annotation data format.
6827 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
1f45f627 6828 Change arguments FROM and TO to single argument NCHARS. Change caller.
4c4475a8 6829 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
aca7a3d2 6830 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4c4475a8
GM
6831 (decode_coding_ccl, decode_coding_charset): Pay attention to
6832 coding->charbuf_used.
aca7a3d2
MB
6833 (get_translation): New function.
6834 (produce_chars): New arguments translation_table and last_block.
6835 Translate characters here. Return number of carryover chars.
1f45f627
GM
6836 Change caller.
6837 (produce_composition): New argument pos. Change caller.
6838 Adjust for the change of annotation data format.
aca7a3d2
MB
6839 (produce_charset, produce_annotation): Likewise.
6840 (decode_coding, encode_coding): Don't call translate_chars.
1f45f627
GM
6841 (consume_chars): New arg translation_table. Change caller.
6842 (translate_chars): Delete.
6843 (syms_of_coding): Make translation-table's number of extra slots 2.
aca7a3d2 6844
73acf815 68452008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6846
6847 * search.c (simple_search): Fix setting this_pos_byte in backward
6848 search.
6849
6850 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
6851 byte sequence.
6852 (detect_coding_ccl): Fix setting of the variable valids.
6853
73acf815 68542008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6855
6856 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
6857
6858 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
6859
1f45f627 6860 * editfns.c (Ftranslate_region_internal): Rename from
aca7a3d2
MB
6861 Ftranslate_region. Accept a char-table in TABLE.
6862 (syms_of_editfns): Defsubr Stranslate_region_internal.
6863
6864 * xfaces.c (set_lface_from_font_name): If a font is specified for
6865 a frame, generate a fontset from the font.
6866 (build_scalable_font_name): If the scalable font is requested for
6867 a specific size, don't change that size.
6868 (try_font_list): Try a scalable font also in the case that a
1f45f627 6869 pattern string is specified.
aca7a3d2 6870
73acf815 68712008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6872
6873 * xfaces.c (Fface_font): New optional arg CHARACTER.
6874
73acf815 68752008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6876
6877 * charset.h (CHARSET_OFFSET): New macro.
6878
73acf815 68792008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6880
6881 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
6882
6883 * fontset.c (fontset_face): Handle the case that repertory is a
6884 char-table.
6885 (find_font_encoding): Return nil for unknown encoding.
6886 (Fset_fontset_font): Ignore a font of unknown encoding.
6887
73acf815 68882008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6889
1f45f627 6890 * keymap.c (describe_vector): Handle default value of a char table.
aca7a3d2
MB
6891
6892 * fontset.c (fontset_face): Handle fallback fonts correctly.
6893 (Ffontset_info): Return infomation about fallback fonts.
6894
73acf815 68952008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6896
6897 * fontset.c (FONTSET_DEFAULT): New macro.
4c4475a8 6898 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
aca7a3d2
MB
6899 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
6900 the case that it is nil.
6901 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
1f45f627 6902 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
aca7a3d2
MB
6903
6904 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
6905 subset or superset.
6906
73acf815 69072008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6908
6909 * emacs.c (main): Call init_charset after syms_of_XXX.
6910
1f45f627 6911 * charset.c (Vcharset_map_directory): Delete.
1f204af3 6912 (Vcharset_map_path): New variable.
aca7a3d2
MB
6913 (load_charset_map_from_file): Use Vcharset_map_path instead.
6914 (init_charset): Initialize Vcharset_map_path.
6915 (syms_of_charset): Delete declaration of "charset-map-directory",
6916 add declaration of "charset-map-path".
6917
73acf815 69182008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6919
4c4475a8
GM
6920 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
6921 ASCII only string.
aca7a3d2
MB
6922
6923 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
6924
6925 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
6f69e89b 6926 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
aca7a3d2 6927
73acf815 69282008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6929
6930 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
6931
6932 * coding.c (QCmnemonic, QCdefalut_char)
6933 (QCdecode_translation_table, QCencode_translation_table)
6934 (QCpost_read_conversion, QCpre_write_conversion): New variables.
6935 (get_translation_table): Return a list of translation tables if
6936 necessary.
6937 (decode_coding): Call get_translation_table with ENCODEP 0.
6938 (char_encodable_p): If translation_table is non-nil, always call
6939 translate_char.
6940 (Fdefine_coding_system_internal): Accept list of translation
6941 tables as :encode-translation-table and :decode-translation-table.
6942 (Fcoding_system_put): New function.
6943 (syms_of_coding): Declare new symbols. Defsubr
6944 Scoding_system_put.
4c4475a8
GM
6945 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
6946 typically JISX0212.
aca7a3d2
MB
6947
6948 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
6949 when the charset is superset type.
6950
6951 * character.c (translate_char): Accept list of translation tables.
6952
73acf815 69532008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6954
1f45f627 6955 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
aca7a3d2
MB
6956 (CODING_ATTR_TRANS_TBL): New macro.
6957
6958 * coding.c (get_translation_table): New function.
6959 (translate_chars): Fix the bug of skipping annotation data.
4c4475a8
GM
6960 (decode_coding, encode_coding): Utilize get_translation_table.
6961 (char_encodable_p, Funencodable_char_position): Translate char if
6962 necessary.
6963 (Ffind_coding_systems_region_internal)
6964 (Fcheck_coding_systems_region): Setup translation table for encode
6965 in a coding system attribute vector in advance.
aca7a3d2
MB
6966 (Fdefine_coding_system_internal): Allow a symbol as translation
6967 table. For shift-jis type coding system, allow 4th charset.
6968
73acf815 69692008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6970
6971 * coding.c (decode_coding_sjis): Check the first byte rigidly.
6972
6973 * xdisp.c (get_next_display_element): Pass -1 as POS to
6974 FACE_FOR_CHAR if displaying a C-string.
6975
73acf815 69762008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6977
6978 * composite.c (get_composition_id): Handle xoff and yoff in a
6979 composition rule.
6980
6981 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
6982 (struct composition): New member lbearing and rbearing.
6983
6984 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
6985 (x_get_glyph_overhangs): Handle a composition glyph.
1f45f627 6986 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
aca7a3d2
MB
6987
6988 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
6989 composition glyph.
6990
73acf815 69912008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6992
6993 * print.c: Include charset.h.
6994 (Vprint_charset_text_property): New variable.
6995 (Qdefault): Extern it.
6996 (PRINT_STRING_NON_CHARSET_FOUND)
6997 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
6998 (print_check_string_result): New variable.
6999 (print_check_string_charset_prop): New function.
7000 (print_prune_charset_plist): New variable.
7001 (print_prune_string_charset): New function.
7002 (print_object): Call print_prune_string_charset if
7003 Vprint_charset_text_property is not t.
7004 (print_interval): Print nothing if itnerval->plist is nil.
7005 (syms_of_print): Declare Vprint_charset_text_property as a lisp
7006 variable. Init and staticpro print_prune_charset_plist.
7007
73acf815 70082008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7009
7010 * fontset.c (new_fontset_from_font_name): Use the specified font
7011 for all characters in the new fontset.
7012
7013 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
7014 OBJECT args.
7015
7016 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
7017 OBJECT args for composition too.
7018
7019 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
7020 OBJECT args.
7021
73acf815 70222008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7023
7024 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
7025
1f45f627 7026 * fontset.c (reorder_font_vector): Adjust for the change of
aca7a3d2 7027 FONT_DEF format.
1f45f627 7028 (fontset_face): New arg id. Change caller.
aca7a3d2 7029 (face_for_char): New args pos and object.
1f204af3 7030 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
aca7a3d2
MB
7031 (fs_query_fontset): Check NAME by Fassoc too.
7032 (Fset_fontset_font): Allow non-XLFD font name.
1f45f627 7033 (Ffontset_info): Adjust for the change of FONT_DEF format.
aca7a3d2 7034
1f45f627 7035 * fontset.h (face_for_char): Adjust prototype.
aca7a3d2 7036
4c4475a8
GM
7037 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
7038 (append_space, extend_face_to_end_of_line)
7039 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
7040 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
aca7a3d2
MB
7041
7042 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
7043 POS and OBJECT args.
7044
7045 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
7046 POS and OBJECT args.
7047
73acf815 70482008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
7049
7050 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
7051 of GlobalAlloc'ed memory.
7052
73acf815 70532008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7054
7055 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
7056
7057 * charset.h (charset_table_used): Delete extern.
7058
7059 * charset.c (charset_table_used): Make it static.
7060 (map_charset_chars): Fix args to c_function with.
7061
7062 * chartab.c (map_sub_char_table_for_charset): Fix args to
7063 c_function with.
7064
7065 * coding.h (enum coding_result_code): Delete
7066 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
7067
7068 * coding.c (Qinsufficient_source, Qinconsistent_eol)
1f45f627 7069 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
aca7a3d2
MB
7070 (Vlast_code_conversion_error): New variables.
7071 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
7072 (ONE_MORE_BYTE): Record error if any instead of signaling an
7073 error. If non-ASCII multibyte char is found, return the negative
7074 value of the code. All callers changed to check it.
7075 (ONE_MORE_BYTE_NO_CHECK): Likewise.
1f45f627
GM
7076 (record_conversion_result): New function. Change all codes setting
7077 coding->result to call this function.
4c4475a8
GM
7078 (detect_coding_utf_8, decode_coding_utf_8)
7079 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
7080 Don't use the local variable incomplete.
aca7a3d2 7081 (emacs_mule_char): Change the second arg to `const'.
aca7a3d2
MB
7082 (decode_coding): Fix of flushing out unprocessed data.
7083 (make_conversion_work_buffer): Fix making of a work buffer.
2a2e8de7 7084 (decode_coding_object): Return coding->dst_object.
aca7a3d2
MB
7085
7086 * fontset.c (set_fontset_font): Fix args.
7087
7088 * lisp.h (CHARACTERBITS): Define as 22.
7089
7090 * process.c (send_process): Be sure to set coding->src_multibyte.
7091
7092 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
7093
73acf815 70942008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7095
7096 * xdisp.c (handle_auto_composed_prop): Give limit to
7097 Fnext_single_char_property_change.
7098
73acf815 70992008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7100
424c157f 7101 * composite.c (syms_of_composite): Don't make the composition hash
1f45f627 7102 table weak.
aca7a3d2
MB
7103
7104 * fontset.c (Fset_fontset_font): Fix docstring.
7105
7106 * lisp.h (detect_coding_system): Adjust prototype.
7107
7108 * fileio.c (kill_workbuf_unwind): Delete this function.
7109 (Finsert_file_contents): Adjust the call of detect_coding_system.
7110 Get conversion_buffer by code_conversion_save. Use the macor
7111 CODING_MAY_REQUIRE_DECODING. After decoding, update
7112 coding_system.
7113
7114 * coding.h (make_conversion_work_buffer): Delete extern.
7115 (code_conversion_save): Extern it.
7116
7117 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
1f45f627 7118 (CODING_GET_INFO): Delete argument eol_type. Change callers.
aca7a3d2
MB
7119 (decode_coding_utf_8): Don't do eol converion.
7120 (detect_coding_utf_16): Check coding->src_chars, not
1f45f627 7121 coding->src_bytes. Add heuristics for those that have no signature.
4c4475a8
GM
7122 (decode_coding_emacs_mule, decode_coding_iso_2022)
7123 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
7124 Don't do eol converion.
aca7a3d2
MB
7125 (adjust_coding_eol_type): Return a new coding system.
7126 (detect_coding): Don't detect eol. Fix for utf-16 detection.
7127 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
7128 each change.
7129 (decode_coding): Pay attention to undo_list. Do eol convesion for
7130 all types of coding-systems (if necessary).
7131 (Vcode_conversion_work_buf_list): Delete it.
1f45f627 7132 (Vcode_conversion_reused_workbuf): Rename from
aca7a3d2
MB
7133 Vcode_conversion_reused_work_buf.
7134 (Vcode_conversion_workbuf_name): New variable.
7135 (reused_workbuf_in_use): New variable.
7136 (make_conversion_work_buffer): Delete the arg DEPTH.
4c4475a8 7137 (code_conversion_restore): Change argument to cons.
1f45f627
GM
7138 (code_conversion_save): Delete the argument BUFFER. Change callers.
7139 (detect_coding_system): New argument src_chars. Change callers.
aca7a3d2
MB
7140 Fix for utf-16 detection.
7141 (init_coding_once): Don't use ISO_carriage_return.
1f45f627 7142 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
aca7a3d2
MB
7143 reused_workbuf_in_use.
7144
73acf815 71452008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7146
7147 * keymap.c (store_in_keymap): Pay attention to the case that idx
7148 is a cons specifying a character range.
7149
73acf815 71502008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7151
7152 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
7153 HANDLED_RECOMPUTE_PROPS.
7154
7155 * coding.c (Fdefine_coding_system_internal): Fix checking of
7156 ascii compatibility.
7157
73acf815 71582008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7159
1f45f627 7160 * charset.c (find_charsets_in_text): Delete unused locale variable.
aca7a3d2
MB
7161 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
7162
7163 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
7164 Resync charset_list to Vemacs_mule_charset_list.
7165
7166 * keymap.c (store_in_keymap): Pay attention to the case that idx
7167 is a cons specifying a character range.
7168
73acf815 71692008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7170
7171 * composite.c (update_compositions): Bind inhibit-read-only, etc
7172 to t before calling remove-list-of-text-properties.
7173
7174 * print.c (print_object): Always print ASCII chars as is.
7175
73acf815 71762008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7177
1f45f627 7178 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
aca7a3d2 7179
4c4475a8
GM
7180 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
7181 is a char table.
aca7a3d2 7182
73acf815 71832008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7184
1f45f627 7185 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
aca7a3d2 7186
73acf815 71872008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7188
7189 * xfaces.c (set_lface_from_font_name): Fix for the case that
7190 FONTNAME is not fontset name.
7191
73acf815 71922008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7193
7194 * fns.c (base64_encode_1): Fix previous change.
7195
73acf815 71962008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7197
7198 * fontset.c (set_fontset_font): New function.
7199 (Fset_fontset_font): If a font is specified for a charset, use
7200 map_charset_chars to store the font spec in a fontset.
7201
73acf815 72022008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7203
1f204af3 7204 * fontset.c (fontset_face): Create a fallback fontset on demand.
aca7a3d2
MB
7205 (make_fontset): Don't create a fallback fontset here.
7206 (free_face_fontset): Free a fallback fontset (if any) too.
7207 (n_auto_fontsets): Delete this variable.
7208 (auto_fontset_alist): New variable.
7209 (new_fontset_from_font_name): Check auto_fontset_alist.
7210 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
7211 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
7212 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
7213 Defsubr Sfontset_list_all.
7214
73acf815 72152008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7216
7217 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
7218
73acf815 72192008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7220
7221 * fontset.c (Fnew_fontset): Check NAME more rigidly.
7222
73acf815 72232008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7224
7225 * editfns.c (Fgoto_char): Fix docstring.
7226
73acf815 72272008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7228
7229 * insdel.c (insert_from_gap): Adjust intervals correctly.
7230
73acf815 72312008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
7232
7233 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
7234 (pfnGetFontUnicodeRanges): New dynamically loaded function.
7235 (w32_initialize): Try to load it.
7236 (x_get_font_repertory): Use it if available.
7237 (w32_encode_char): Add shortcut for unicode output.
7238
7239 * w32fns.c (w32_load_system_font): Default charset to -1.
7240 (x_to_w32_charset): Match all fonts for unicode.
1f45f627 7241 (w32_to_x_charset): New parameter matching. Don't return partial
aca7a3d2
MB
7242 or wildcard charsets.
7243 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
7244 (w32_codepage_for_font): Return CP_UNICODE for unicode.
7245 (w32_to_x_font): Match charset to real charset.
7246 (enum_font_cb2): Always list unicode versions.
7247
7248 * makefile.w32-in (temacs): Increase EMHEAP.
7249
73acf815 72502008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
7251
7252 * w32term.c (w32_encode_char): New charset parameter.
7253 font_info.encoding becomes encoding_type.
1f45f627 7254 (x_get_font_repertory): New function. Warning: stub only!
aca7a3d2
MB
7255 (x_new_font): Return quickly if font already set.
7256 (x_new_fontset): fontsetname parameter is Lisp_Object.
2a2e8de7
JB
7257 Use new fs_query_fontset. Try new_fontset_from_font_name.
7258 Use fontset_name for return value.
aca7a3d2
MB
7259
7260 * w32term.h: Declare x_get_font_repertory.
7261
7262 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
1f45f627 7263 place of find_charset_in_text. Use encode_coding_object in place
aca7a3d2
MB
7264 of encode_coding.
7265 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
7266 decode_coding.
7267
7268 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
7269 of x_new_fontset.
7270 (w32_load_system_font): Initialize charset as unicode.
7271 font_info.encoding becomes encoding_type.
1f45f627
GM
7272 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
7273 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
aca7a3d2
MB
7274 (syms_of_w32fns): Set get_font_repertory_func.
7275
1f45f627 7276 * w32console.c: Include character.h. Use terminal_encode_buffer
aca7a3d2 7277 from term.c.
1f45f627 7278 (write_glyphs): Use new version of encode_terminal_code. Use
aca7a3d2
MB
7279 encode_coding_object in place of encode_coding.
7280
7281 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
7282 encoding becomes encoding_type.
7283
7284 * term.c (terminal_encode_buffer): Make externally visible.
7285
7286 * makefile.w32-in: Add character.h dependancies.
7287 (character.o, chartab.o): New targets.
7288
73acf815 72892008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7290
7291 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
1f45f627 7292 CODING_ID_EOL_TYPE.
aca7a3d2 7293
73acf815 72942008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
7295
7296 * coding.c (produce_chars): Revert last change.
7297
73acf815 72982008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7299
7300 * charset.h (charset_unicode): Extern it.
7301
7302 * charset.c (string_xstring_p): Check by (C >= 0x100).
1f45f627 7303 (find_charsets_in_text): Change format of the arc CHARSETS. New
aca7a3d2 7304 arg MULTIBYTE.
1f45f627 7305 (Ffind_charset_region, Ffind_charset_string): Adjust for the
aca7a3d2
MB
7306 change of find_charsets_in_text.
7307 (Fsplit_char): Fix doc. Never return unknown.
7308
7309 * chartab.c (char_table_translate): Use CHARACTERP, not INETEGERP.
7310
7311 * coding.c (Fdefine_coding_system_alias): Update
7312 Vcoding_system_list.
7313
7314 * fontset.c (load_font_get_repertory): Pay attention to the case
7315 that ENCODING of a font is specified by a char-table.
7316
7317 * xterm.c (x_get_font_repertory): Handle the case that the
7318 encoding of font is other than Unicode.
7319
73acf815 73202008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7321
7322 * term.c (encode_terminal_code): Don't handle glyph-table. Check
7323 if a character is encodable by the terminal coding system. If
7324 not, produces proper number of `?'s. Update
7325 terminal_encode_buffer and terminal_encode_buf_size if necessary.
7326 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
7327
73acf815 73282008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7329
7330 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
7331 variables.
1f45f627 7332 (encode_terminal_code): Change argument. Encode multiple
aca7a3d2
MB
7333 characters at once. Store the result of encoding in
7334 terminal_encode_buffer.
4c4475a8
GM
7335 (write_glyphs, insert_glyphs): Adjust for the change of
7336 encode_terminal_code.
aca7a3d2
MB
7337 (term_init): Initialize terminal_encode_buffer and
7338 terminal_encode_buf_size.
7339
7340 * coding.c (consume_chars): If coding->src_object is nil, don't
7341 check annotation.
7342
73acf815 73432008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7344
7345 * character.c (char_string): Use ASCII_CHAR_P instead of
7346 SINGLE_BYTE_CHAR_P.
7347
73acf815 73482008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7349
7350 * xdisp.c (handle_auto_composed_prop): Check if the last
7351 characters of auto-composed region is newly composed with the
7352 following characters.
7353 (handle_composition_prop): Fix checking of point being inside
7354 composition.
7355
73acf815 73562008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7357
7358 * fns.c (concat): Don't change multibyteness of the result by
7359 concatenating an 8-bit character.
7360
7361 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
7362 multibyteness of the result when newelt is an 8-bit character.
7363
73acf815 73642008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7365
7366 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
7367 EMACS_INT.
7368
7369 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
7370
7371 * xfaces.c (face_numeric_value): Declare dim size_t.
7372 (Finternal_lisp_face_equal_p): Remove unused f.
7373
7374 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
7375 (MATRIX_ROW): Remove unused vars.
7376 (draw_glyphs, x_insert_glyphs, fast_find_position)
7377 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
7378 byte/char counts.
7379
7380 * regex.c (regex_compile): Remove unused var.
7381
7382 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
7383
7384 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
7385 (Faccessible_keymaps, where_is_internal): Remove unused vars.
7386
7387 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
7388
7389 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
7390
7391 * fileio.c (Fwrite_region): Remove unused var.
7392
7393 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
7394 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
7395
7396 * composite.c (Fremove_list_of_text_properties): Declare.
7397
1f45f627
GM
7398 * coding.c (inhibit_pre_post_conversion): Remove (unused).
7399 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
aca7a3d2
MB
7400 (coding_inherit_eol_type): Remove unused attrs.
7401 (detect_coding): Cast arg of detect_eol.
7402
7403 * charset.c (syms_of_charset): Remove unused var p.
7404 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
7405 byte/char counts.
7406
7407 * casetab.c (set_case_table): Remove unused var.
7408
7409 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
1f45f627 7410 unused vars.
aca7a3d2 7411
73acf815 74122008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7413
7414 * xterm.c (x_bitmap_mask): Declare.
7415
73acf815 74162008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7417
7418 * xterm.c (x_term_init): Fix type error.
7419
7420 * lisp.h: Add Funibyte_char_to_multibyte.
7421
7422 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
7423 (Fset_coding_system_priority): Doc fix.
7424
aca7a3d2
MB
7425 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
7426
7427 * indent.c (check_composition): Make start and end EMACS_INT.
7428
7429 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
7430
7431 * xdisp.c (handle_composition_prop, check_point_in_composition):
7432 Make buffer positions EMACS_INT.
7433
7434 * composite.c (find_composition, run_composition_function)
7435 (update_compositions, Ffind_composition_internal): Make buffer
7436 positions EMACS_INT.
7437
7438 * composite.h (find_composition, update_compositions): Make
7439 position args EMACS_INT.
7440
1f45f627 7441 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
aca7a3d2
MB
7442
7443 * intervals.c (get_property_and_range):
7444 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
7445
7446 * unexalpha.c: Don't include varargs.h.
7447
73acf815 74482008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7449
7450 * coding.h (ENCODE_UTF_8): New.
7451
7452 * Makefile.in (gtkutil.o): Depend on coding.h.
7453
7454 * coding.c (Fset_coding_system_priority): Doc fix.
7455
73acf815 74562008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7457
7458 * fileio.c (Finsert_file_contents): Call setup_coding_system in
7459 the case of auto saving.
7460
73acf815 74612008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2 7462
4c4475a8
GM
7463 * chartab.c (map_char_table, map_char_table_for_charset): Protect
7464 `range' from GC.
aca7a3d2 7465
73acf815 74662008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7467
7468 * coding.c (decode_coding_sjis): Check bytes more rigidly.
7469
73acf815 74702008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7471
1f45f627 7472 * fileio.c (choose_write_coding_system): Return a decided coding system.
aca7a3d2
MB
7473 (Fwrite_region): Set Vlast_coding_system_used to the return value
7474 of choose_write_coding_system.
7475
73acf815 74762008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7477
7478 * charset.c (Fset_charset_priority): Pay attention to duplicated
7479 arguments.
7480
7481 * coding.c (QCcategory): New variable.
7482 (syms_of_coding): Defsym it. Set all elements of
7483 Vcoding_category_table and their symbol values.
7484 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
7485 coding-category-XXX, and coding-category-list.
7486 (Fdefine_coding_system_internal): Add category in the plist.
7487
73acf815 74882008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7489
7490 * callproc.c (Fcall_process): Handle carryover correctly.
7491
1f45f627 7492 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
aca7a3d2
MB
7493 (raw_text_coding_system): Check NILP (coding_system).
7494 (coding_inherit_eol_type): Check NILP (coding_system) and
7495 NILP (parent).
7496 (consume_chars): Fix for the case of raw-text.
7497
7498 * process.c (read_process_output): Handle carryover correctly.
7499
73acf815 75002008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7501
7502 * regex.c (re_search_2): Fix last change.
7503
73acf815 75042008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7505
7506 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
7507 target_multibyte. Even in a unibyte case, return a converted
7508 multibyte char.
7509 (GET_CHAR_AFTER): New macro.
7510 (PATFETCH): Translate via multibyte char.
7511 (HANDLE_UNIBYTE_RANGE): Delete this macro.
7512 (SETUP_MULTIBYTE_RANGE): New macro.
7513 (regex_compile): Setup compiled code so that its multibyteness
7514 matches that of a target. Fix the handling of "[X-YZ]" using
7515 SETUP_MULTIBYTE_RANGE.
7516 (analyse_first) <charset>: For filling fastmap for all multibyte
7517 characters, don't check by BASE_LEADING_CODE_P.
7518 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
7519 the same as RE_MULTIBYTE_P (bufp) now.
1f45f627 7520 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
aca7a3d2
MB
7521 (TARGET_CHAR_AND_LENGTH): Delete this macro.
7522 (TRANSLATE_VIA_MULTIBYTE): New macro.
7523 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
7524 It is the same as RE_MULTIBYTE_P (bufp) now.
7525 <exactn>: Translate via multibyte.
7526 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
7527 translate it.
7528 <charset, charset_not>: Fetch a character by
7529 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
7530 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
7531 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
7532 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
7533 by GET_CHAR_AFTER.
c5ad7a3d 7534 (bcmp_translate): Likewise.
aca7a3d2
MB
7535
7536 * search.c (compile_pattern): Check the member target_multibyte,
7537 not the member multibyte of buf.
7538
7539 * lread.c (read1): While reading a string, set force_singlebyte
7540 and force_multibyte correctly.
7541
4c4475a8
GM
7542 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
7543 up of unibyte_to_multibyte_table.
aca7a3d2 7544
73acf815 75452008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7546
7547 * coding.c (setup_coding_system): If coding has
7548 post-read-conversion or pre-write-conversion, set
7549 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
7550 respectively.
7551 (decode_coding_gap): Run post-read-conversion if any.
7552
7553 * fileio.c (Finsert_file_contents): Even if we read into a
7554 unibyte buffer, check if we must decode the result or not.
7555
73acf815 75562008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7557
7558 * coding.c (make_conversion_work_buffer): Change the work buffer
7559 name to the same one as that of Emacs 21.
7560
73acf815 75612008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7562
1f45f627 7563 * coding.h (make_conversion_work_buffer): Adjust prototype.
aca7a3d2
MB
7564 (code_conversion_restore): Don't extern it.
7565
7566 * coding.c (detected_mask): Delete unused variable.
7567 (decode_coding_iso_2022): Pay attention to the byte sequence of
7568 CTEXT extended segment, and retain those bytes as is.
7569 (decode_coding_ccl): Delete unused variable `valids'.
7570 (setup_coding_system): Delete unused variable `category'.
7571 (consume_chars): Delete unused variable `category'. Make it work
7572 for non-multibyte case.
1f45f627 7573 (make_conversion_work_buffer): Change argument.
aca7a3d2
MB
7574 (saved_coding): Delete unused variable.
7575 (code_conversion_restore): Don't check saved_coding->destination.
7576 (code_conversion_save): New function.
7577 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
7578 instead of record_unwind_protect.
1f45f627 7579 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
aca7a3d2 7580 (detect_coding_system): Delete unused variable `mask'.
1f45f627 7581 (Fdefine_coding_system_internal): Delete unused vaiable id.
aca7a3d2
MB
7582
7583 * fileio.c (kill_workbuf_unwind): New function.
7584 (Finsert_file_contents): On replacing, call
7585 make_conversion_work_buffer with correct args, and call
7586 record_unwind_protect with the first arg kill_workbuf_unwind.
7587
7588 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
7589
73acf815 75902008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7591
1f45f627 7592 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
aca7a3d2
MB
7593 (fontset_add): Fix for the case that TO is less than TO1.
7594 (Ffontset_info): Don't use fallback fontset on checking the
7595 default fontset.
7596 (dump_fontset): New function for debugging.
7597
7598 * coding.c (Fdefine_coding_system_internal): Fix for the case that
7599 coding_type is Qcharset.
7600
73acf815 76012008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7602
7603 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
7604 (map_char_table): Don't inherit the value from the parent on
1f45f627 7605 initializing VAL. Adjust for the above change.
aca7a3d2 7606
73acf815 76072008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7608
7609 * coding.c (Qsignature, Qendian): Delete these variables.
7610 (syms_of_coding): Don't initialize them.
7611 (CATEGORY_MASK_UTF_16_AUTO): New macro.
7612 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
7613 detect_info->found.
7614 (decode_coding_utf_16): Don't detect BOM here.
7615 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
7616 is NOT utf_16_without_bom.
7617 (setup_coding_system): For a coding system of type utf-16, check
7618 if the attribute :endian is Qbig or not (not nil or not), and set
7619 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
7620 (detect_coding): If coding type is utf-16 and BOM detection is
7621 required, detect it.
7622 (Fdefine_coding_system_internal): For a coding system of type
1f45f627 7623 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
aca7a3d2 7624
73acf815 76252008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7626
7627 * coding.c (coding_set_source): Fix for the case that the current
7628 buffer is different from coding->src_object.
7629 (decode_coding_object): Don't use the conversion work buffer if
7630 DST_OBJECT is a buffer.
7631
73acf815 76322008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7633
7634 * lread.c (read_emacs_mule_char) [len==2]: Index
7635 emacs_mule_charset correctly.
7636
73acf815 76372008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7638
7639 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
7640 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
1f45f627 7641 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
aca7a3d2
MB
7642 treated specially.)
7643 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
7644 (detected_mask): Remove Big5 bits.
7645
73acf815 76462008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7647
7648 The following changes are to make the font rescaling facility
7649 compatible with Emacs 21.
7650
1f45f627 7651 * xfaces.c (Vface_font_rescale_alist): Rename from
aca7a3d2
MB
7652 Vface_resizing_fonts.
7653 (struct font_name): Rename member resizing_ratio to rescale_ratio.
1f45f627 7654 (font_rescale_ratio): Rename from font_resizing_ratio.
aca7a3d2
MB
7655 (split_font_name): Set font->rescale_ratio.
7656 (better_font_p): Pay attention to font->rescale_ratio.
7657 (build_scalable_font_name): Likewise. Change RESX, and RESY
7658 fields.
1f45f627 7659 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
aca7a3d2 7660
73acf815 76612008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7662
7663 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
7664 (Qutf_16_le): Remove these variables.
7665 (syms_of_coding): Don't DEFSYM them.
7666 (decode_coding_utf_16): Fix handling of BOM.
7667 (encode_coding_utf_16): Fix handling of BOM.
7668
73acf815 76692008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7670
7671 * fileio.c (Finsert_file_contents): On replacing, before decoding
1f45f627 7672 the file into the work buffer, set point of the work buffer to the end.
aca7a3d2 7673
73acf815 76742008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7675
7676 * coding.c (Fcheck_coding_systems_region): Fix type errors.
7677
73acf815 76782008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7679
7680 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
7681 and fix C types.
7682
73acf815 76832008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7684
7685 * xdisp.c (SKIP_GLYPHS): New macro.
7686 (set_cursor_from_row): Pay attention to string display properties.
7687
7688 * category.c (copy_category_entry): Fix for the case that RANGE
7689 is an integer.
7690
7691 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
7692
1f45f627 7693 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
aca7a3d2 7694
73acf815 76952008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7696
7697 * charset.c (Fcharset_id_internal): New function.
7698 (syms_of_charset): Defsubr it.
7699
7700 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
7701 with the last arg charset_list acquired from coding.
7702 (Fdefine_coding_system_internal): For ccl-based coding system, fix
7703 the attribute coding_attr_ccl_valids.
7704
7705 * coding.h (enum define_coding_ccl_arg_index): Set the first
7706 member coding_arg_ccl_decoder to coding_arg_max.
7707
1f45f627 7708 * ccl.h (ccl_driver): Adjust prototype.
aca7a3d2
MB
7709
7710 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
7711 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
7712 of DECODE_CAHR, ENCODE_CHAR, CHAR_CHARSET.
4c4475a8
GM
7713 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
7714 last arg Qnil.
aca7a3d2 7715
73acf815 77162008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7717
7718 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
7719 call encode_char.
7720
1f45f627 7721 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
aca7a3d2 7722
73acf815 77232008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 7724
1f45f627 7725 * composite.c (syms_of_composite): Make composition_hash_table weak.
aca7a3d2 7726
73acf815 77272008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7728
7729 * dispextern.h (check_face_attributes, generate_ascii_font_name)
7730 (font_name_registry): Don't extern them.
1f45f627 7731 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
aca7a3d2
MB
7732
7733 * fontset.h (Qfontset): Don't extern it.
7734 (new_fontset_from_font_name): Extern it.
7735
7736 * fontset.c: Give 8 extra slots to fontset objects.
7737 (Qfontset_info): New variable.
7738 (syms_of_fontset): Defsym it.
7739 (FONTSET_FALLBACK): New macro.
7740 (fontset_face): Try also the default fontset.
1f45f627
GM
7741 (make_fontset): Realize a fallback fontset from the default fontset.
7742 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
aca7a3d2
MB
7743 using split_font_name_into_vector and build_font_name_from_vector.
7744 (Fset_fontset_font): Access the elements of font_spec by enum
7745 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
7746 name by using split_font_name_into_vector.
7747 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
7748 generate a proper font name from the fontset name. Update
7749 Vfontset_alias_alist.
7750 (n_auto_fontsets): New variable.
7751 (new_fontset_from_font_name): New function.
7752 (Ffont_info): Store the information about fonts generated from the
1f45f627 7753 default fontset in the first extra slot of the returned char-table.
aca7a3d2 7754
1f45f627
GM
7755 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
7756 (font_name_registry): Delete function.
aca7a3d2
MB
7757 (split_font_name_into_vector): New function.
7758 (build_font_name_from_vector): New function.
1f45f627 7759 (font_list): The argument REGISTRY is now a list of registry names.
aca7a3d2
MB
7760 (choose_face_font): If we are choosing an ASCII font, and ATTRS
7761 specifies an explicit font name, return the name as is. Make a
7762 list of registy names.
7763
1f45f627 7764 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
aca7a3d2
MB
7765 of x_new_fontset.
7766 (Fx_create_frame): Don't call x_new_fontset here. Just use
7767 x_list_fonts to check the existence of fonts.
7768
1f45f627 7769 * xterm.h (x_new_fontset): Adjust prototype.
aca7a3d2
MB
7770
7771 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
7772 string. Use new_fontset_from_font_name to create a fontset from a
7773 font name.
7774
1c8658b9
GM
77752008-02-01 Kenichi Handa <handa@m17n.org>
7776
7777 * syntax.c (Vfind_word_boundary_function_table): New name for
7778 Vnext_word_boundary_function_table.
7779 (find-word-boundary-function-table): New name for
7780 next-word-boundary-function-table.
7781
73acf815 77822008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7783
7784 * Makefile.in: Fix some dependencies.
7785
7786 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
7787 set it to nil before returning.
7788
7789 * composite.c (update_compositions): Fix type error.
7790
7791 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
7792
73acf815 77932008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7794
7795 * xterm.c (x_new_font): Optimize for the case that the font is
7796 already set for the frame.
7797
73acf815 77982008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7799
7800 * chartab.c (char_table_ascii): Check if the char table contents
7801 is sub-char-table or not.
4c4475a8
GM
7802 (char_table_set, char_table_set_range): Fix argument to
7803 char_table_ascii.
aca7a3d2
MB
7804
7805 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
7806 (detect_coding_utf_8, detect_coding_utf_16)
7807 (detect_coding_emacs_mule, detect_coding_iso_2022)
7808 (detect_coding_sjis, detect_coding_big5)
7809 (detect_coding_ccl, detect_coding_charset): Change argument MASK
7810 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
1f45f627 7811 sequence is valid in this coding system. Change callers.
aca7a3d2
MB
7812 (MAX_ANNOTATION_LENGTH): New macro.
7813 (ADD_ANNOTATION_DATA): New macro.
1f45f627
GM
7814 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
7815 ADD_ANNOTATION_DATA. Change the format of annotation data.
aca7a3d2 7816 (ADD_CHARSET_DATA): New macro.
1f45f627 7817 (emacs_mule_char): New argument ID. Change callers.
aca7a3d2
MB
7818 (decode_coding_emacs_mule, decode_coding_iso_2022)
7819 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
7820 Produce charset annotation data in coding->charbuf.
7821 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
7822 to charset annotation data in coding->charbuf.
7823 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
7824 coding->common_flags if the coding system is iso-2022 based and
7825 uses designation.
1f45f627 7826 (produce_composition): Adjust for the new annotation data format.
aca7a3d2
MB
7827 (produce_charset): New function.
7828 (produce_annotation): Handle charset annotation.
7829 (handle_composition_annotation, handle_charset_annotation): New
7830 functions.
7831 (consume_chars): Handle charset annotation. Utilize the above two
7832 functions.
7833 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
7834 buffer, get the deleted text as a string and set
7835 coding->src_object to that string.
7836 (detect_coding, detect_coding_system): Use the new struct
7837 coding_detection_info.
7838
7839 * coding.h (struct coding_detection_info): New structure.
1f45f627 7840 (struct coding_system): Adjust prototype of the member `detector'.
aca7a3d2
MB
7841 (CODING_ANNOTATE_CHARSET_MASK): New macro.
7842
73acf815 78432008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7844
7845 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
7846
73acf815 78472008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 7848
1f45f627 7849 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
aca7a3d2
MB
7850 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
7851 to new local and nullify apropos_accumulate before returning.
7852 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
7853
73acf815 78542008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7855
7856 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
7857 correctly.
7858
73acf815 78592008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7860
7861 * fns.c (Flanginfo): Call synchronize_system_time_locale.
7862
73acf815 78632008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7864
7865 The following changes are to make character composition happen
7866 automatically on displaying.
7867
2a2e8de7 7868 * Makefile.in (lisp, shortlisp): Add composite.elc.
aca7a3d2 7869
1f45f627
GM
7870 * composite.h (Qauto_composed, Vauto_composition_function)
7871 (Qauto_composition_function): Extern them.
aca7a3d2 7872
1f45f627
GM
7873 * composite.c (Vcomposition_function_table)
7874 (Qcomposition_function_table): Delete variables.
7875 (Qauto_composed, Vauto_composition_function)
7876 (Qauto_composition_function): New variables.
aca7a3d2
MB
7877 (run_composition_function): Don't call
7878 compose-chars-after-function.
7879 (update_compositions): Clear `auto-composed' text property.
7880 (compose_chars_in_text): Delete this function.
7881 (syms_of_composite): Staticpro Qauto_composed and
7882 Qauto_composition_function. Declare Vauto_composition_function as
7883 a Lisp variable.
7884
7885 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
7886
7887 * xdisp.c (it_props): Add an entry for Qauto_composed.
7888 (handle_auto_composed_prop): New function.
7889
7890 * xselect.c (selection_data_to_lisp_data): Don't call
7891 compose_chars_in_text.
7892
73acf815 78932008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7894
7895 * keyboard.c (read_char): Modify checking around use of
7896 Vkeyboard_translate_table.
7897
7898 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
7899 and fix C types.
7900
73acf815 79012008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7902
4c4475a8
GM
7903 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
7904 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
7905 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
aca7a3d2 7906 the case that the last byte is '\r' correctly.
1f45f627
GM
7907 (decode_coding): Flush out the unprocessed data correctly.
7908 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
aca7a3d2 7909
73acf815 79102008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 7911
f245f2c6
JB
7912 * xterm.c (XTread_socket): Fix changes for defined keysyms.
7913 Add XK_ISO... case.
aca7a3d2
MB
7914 (xaw_scroll_callback): Revert last change.
7915
73acf815 79162008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7917
1f45f627 7918 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
aca7a3d2 7919
73acf815 79202008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7921
7922 * xfaces.c (Vface_resizing_fonts): New variable.
7923 (struct font_name): New member `resizing_ratio'.
7924 (font_resizing_ratio): New function.
7925 (split_font_name): Set font->resizing_ratio.
7926 (better_font_p): Pay attention to font->resizing_ratio.
7927 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
7928 RESX, and RESY fields.
7929 (try_alternative_families): Try scalable fonts if
7930 Vscalable_fonts_allowed is not Qt.
7931 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
7932
73acf815 79332008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7934
7935 * xterm.c (xaw_scroll_callback): Cast correctly.
7936
73acf815 79372008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7938
7939 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
7940 (lispy_kana_keys): Comment out.
7941 (make_lispy_event) [XK_kana_A]: Comment out.
7942
7943 * xterm.c (xaw_scroll_callback): Cast call_data.
7944 (XTread_socket): Deal with ASCII keysyms.
7945 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
7946
73acf815 79472008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7948
7949 * xterm.c (Vx_keysym_table): New.
7950 (syms_of_xterm): Initialize it.
7951 (XTread_socket): Use it.
7952 From head: Eliminate incorrect optimization that tried to avoid
7953 decoding the output of X*LookupString.
7954 (x_get_font_repertory): Delete charset declaration.
7955
73acf815 79562008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7957
1f45f627
GM
7958 * coding.c (detect_coding_charset): If only ASCII bytes are found,
7959 return 0.
aca7a3d2
MB
7960 (Fdefine_coding_system_internal): Setup
7961 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
7962
73acf815 79632008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7964
7965 * coding.c (Fcheck_coding_system): Doc fix.
7966
7967 * editfns.c (Finsert_byte): Return a proper value.
7968
73acf815 79692008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7970
7971 * coding.c (decode_coding): Fix args to translate_chars. Pay
7972 attention to Vstandard_translation_table_for_decode.
7973 (encode_coding): Fix args to translate_chars. Pay attention to
7974 Vstandard_translation_table_for_encode.
7975
7976 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
7977 SINGLE_BYTE_CHAR_P.
7978
7979 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
7980 not by SINGLE_BYTE_CHAR_P.
7981
7982 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
7983 SINGLE_BYTE_CHAR_P.
7984
7985 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
7986 SINGLE_BYTE_CHAR_P.
7987
7988 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
7989 by SINGLE_BYTE_CHAR_P.
7990
7991 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
7992 SINGLE_BYTE_CHAR_P.
7993
73acf815 79942008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7995
7996 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
7997
73acf815 79982008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7999
8000 * fns.c (Flanginfo): Fix typo.
8001
8002 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
8003
73acf815 80042008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8005
4c4475a8
GM
8006 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
8007 (detect_coding_emacs_mule, detect_coding_iso_2022)
8008 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
8009 incomplete byte sequence. Don't update *mask when correctly detected.
aca7a3d2 8010 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
1f45f627 8011 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
4c4475a8 8012 (detect_coding, detect_coding_system): Adjust for the changes above.
aca7a3d2 8013
73acf815 80142008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8015
1f45f627
GM
8016 * character.c (char_string): Rename from
8017 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
8018 (string_char): Rename from string_char.
aca7a3d2 8019
4c4475a8
GM
8020 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
8021 if C is greater than MAX_3_BYTE_CHAR.
8022 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
8023 string_char instead of string_char_with_unification.
aca7a3d2 8024
73acf815 80252008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8026
8027 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
8028
73acf815 80292008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8030
1f45f627 8031 * keymap.c (push_key_description): Pay attention to force_multibyte.
aca7a3d2
MB
8032
8033 * regex.c (re_search_2): Fix for the case of unibyte buffer.
8034
73acf815 80352008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8036
8037 * charset.c (define_charset_internal): Rename `supprementary'.
8038
8039 * Makefile.in (lisp, shortlisp): Remove latin-N.
8040
73acf815 80412008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8042
8043 * xfns.c (x_window, x_window): Use use_xim.
8044
8045 * xterm.c (use_xim): Initialize.
8046 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
8047 (x_term_init): Maybe set use_xim.
8048
8049 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
8050
73acf815 80512008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8052
8053 * search.c (search_buffer): Fix case-fold-search of multibyte
8054 characters.
8055 (boyer_moore): Rename the last argument to char_high_bits.
8056
73acf815 80572008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8058
8059 * xdisp.c (display_string): Fix for the case of zero width glyph.
8060
8061 * xfns.c (x_set_font): Change the error message of the case that
8062 x_new_fontset returns Qt.
8063
8064 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
8065 (Finternal_set_lisp_face_attribute): Use signal_error for the
8066 error of invalid fontset.
8067
8068 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
8069 fontset, return Qt.
8070
73acf815 80712008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 8072
aca7a3d2
MB
8073 * unexelf.c (unexec): Make .got handling not SGI-specific.
8074
8075 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
8076
8077 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
8078
8079 * keyboard.c (read_key_sequence): Fix type error.
8080
8081 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
8082 type error.
8083
8084 * fontset.c (fontset_add): Return Lisp_Object.
8085
73acf815 80862008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8087
8088 * charset.h (charset_ordered_list_tick): Declare extern.
8089
73acf815 80902008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8091
73acf815 8092 The following changes (and some of 2008-02-01 changes of mine) are
aca7a3d2
MB
8093 for handling syntax, category, and case conversion for unibyte
8094 characters by converting them to multibyte on the fly. With these
8095 changes, we don't have to setup syntax and case tables for unibyte
8096 characters in each language environment.
8097
8098 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
8099 multibyte if necessary.
8100
8101 * bytecode.c (Fbyte_code): Likewise.
8102
8103 * character.h (LEADING_CODE_LATIN_1_MIN)
8104 (LEADING_CODE_LATIN_1_MAX): New macros.
8105 (unibyte_to_multibyte_table): Extern it.
8106 (unibyte_char_to_multibyte): New macro.
8107 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
8108 (CHAR_LEADING_CODE): New macro.
8109 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
8110
8111 * character.c (unibyte_to_multibyte_table): New variable.
1f45f627 8112 (unibyte_char_to_multibyte): Move to character.h and define as macro.
aca7a3d2
MB
8113 (multibyte_char_to_unibyte): If C is an eight-bit character,
8114 convert it to the corresponding byte value.
8115
8116 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
8117 not 1, singals an error. Update the elements of
8118 unibyte_to_multibyte_table.
8119 (init_charset_once): Initialize unibyte_to_multibyte_table.
8120 (syms_of_charset): Define the charset `iso-8859-1'.
8121
aca7a3d2
MB
8122 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
8123 as is without converting it to unibyte. In a unibyte buffer,
8124 convert C to multibyte before checking the syntax.
8125
1f45f627 8126 * lisp.h (unibyte_char_to_multibyte): Delete extern.
aca7a3d2
MB
8127
8128 * minibuf.c (Fminibuffer_complete_word): Use the macro
8129 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
8130
8131 * regex.h (struct re_pattern_buffer): New member target_multibyte.
8132
8133 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
8134 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
8135 that is zero, convert an eight-bit char to multibyte.
8136 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
8137 non-emacs case.
8138 (PATFETCH): Convert an eight-bit char to multibyte.
8139 (HANDLE_UNIBYTE_RANGE): New macro.
8140 (regex_compile): Setup the compiled pattern for multibyte chars
8141 even if the given regex string is unibyte. Use PATFETCH_RAW
8142 instead of PATFETCH in many places. To handle `charset'
c5ad7a3d 8143 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
aca7a3d2 8144 only for ASCII chars.
1f45f627 8145 (analyse_first) <exactn>: Simplify because the compiled pattern
aca7a3d2
MB
8146 is multibyte.
8147 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
8148 <charset>: Use CHAR_LEADING_CODE to get leading codes.
1f45f627 8149 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
aca7a3d2
MB
8150 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
8151 multibyte always 1.
8152 (re_search_2): In emacs, set the locale variable multibyte to 1,
8153 otherwise to 0. New local variable target_multibyte. Check it
8154 to decide the multibyteness of STR1 and STR2. If
8155 target_multibyte is zero, convert unibyte chars to multibyte
8156 before translating and checking fastmap.
8157 (TARGET_CHAR_AND_LENGTH): New macro.
8158 (re_match_2_internal): In emacs, set the locale variable multibyte
8159 to 1, otherwise to 0. New local variable target_multibyte. Check
8160 it to decide the multibyteness of STR1 and STR2. Use
8161 TARGET_CHAR_AND_LENGTH to fetch a character from D.
8162 <charset, charset_not>: If multibyte is nonzero, check fastmap
c5ad7a3d 8163 only for ASCII chars. Call bcmp_translate with
aca7a3d2
MB
8164 target_multibyte, not with multibyte.
8165 <begline>: Declare the local variable C as `unsigned'.
8166 (bcmp_translate): Change the last arg name to target_multibyte.
8167
8168 * search.c (compile_pattern_1): Don't adjust the multibyteness of
8169 the regexp pattern and the matching target. Set cp->buf.multibyte
8170 to the multibyteness of the regexp pattern. Set
1f45f627 8171 cp->but.target_multibyte to the multibyteness of the matching target.
aca7a3d2
MB
8172 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
8173 FETCH_STRING_CHAR_ADVANCE.
8174 (Freplace_match): Convert unibyte chars to multibyte.
8175
4c4475a8
GM
8176 * syntax.c (char_quoted, back_comment, scan_words)
8177 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
8178 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
aca7a3d2 8179 unibyte chars to multibyte.
1f45f627
GM
8180 (skip_chars): Delete the arg syntaxp, and move the code for
8181 handling syntaxes to skip_syntaxes. Change callers.
aca7a3d2
MB
8182 Fix the case that the multibyteness of STRING and the current
8183 buffer doesn't match.
8184 (skip_syntaxes): New function.
8185 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
8186 SINGLE_BYTE_CHAR_P.
aca7a3d2 8187
73acf815 81882008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8189
8190 * xfaces.c (QCfontset): New variable.
8191 (LFACE_FONTSET): New macro.
8192 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
8193 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
4c4475a8
GM
8194 (Finternal_set_lisp_face_attribute)
8195 (Finternal_get_lisp_face_attribute): Handle QCfontset.
aca7a3d2
MB
8196 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
8197 check also LFACE_FONTSET_INDEX.
8198 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
8199 attrs[LFACE_FONT_INDEX].
8200 (syms_of_xfaces): Intern and staticpro QCfontset.
8201
8202 * dispextern.h (enum lface_attribute_index): New member
8203 LFACE_FONTSET_INDEX.
8204
8205 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
8206
73acf815 82072008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8208
8209 * coding.c (coding_set_destination): Fix coding->destination for
8210 the case converting a region.
8211 (encode_coding_utf_8): Encode eight-bit chars as single byte.
8212 (encode_coding_object): Fix coding->dst_pos and
8213 coding->dst_pos_byte for the case converting a region.
8214
8215 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
8216
8217 * character.h (BYTE8_STRING): New macro.
8218
8219 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
8220
73acf815 82212008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8222
8223 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
8224 characters by octal form.
8225
8226 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
8227
1f45f627 8228 * buffer.h (_fetch_multibyte_char_len): Delete extern.
4c4475a8
GM
8229 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
8230 _fetch_multibyte_char_len.
aca7a3d2
MB
8231 (FETCH_CHAR_AS_MULTIBYTE): New macro.
8232
1f45f627 8233 * casetab.c (set_canon, set_identity, shuffle): Simplify.
aca7a3d2 8234
1f45f627 8235 * casefiddle.c (casify_object): Simplify. Handle the case that
aca7a3d2 8236 the case conversion change the byte length.
1f45f627 8237 (casify_region): Likewise.
aca7a3d2 8238
1f45f627 8239 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
aca7a3d2 8240
1f45f627 8241 * character.c (_fetch_multibyte_char_len): Delet this variable.
aca7a3d2
MB
8242 (syms_of_character): Setup Vprintable_chars.
8243
8244 * editfns.c (Fchar_equal): Fix for the unibyte case.
8245 (Finsert_byte): New function.
8246 (syms_of_editfns): Defsubr it.
8247
8248 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
8249 of direct code 0x3ffff.
8250
8251 * search.c (Freplace_match): Fix for the unibyte case.
8252
73acf815 82532008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8254
8255 * lread.c (safe_to_load_p): Fix the logic.
8256
8257 * syntax.c (scan_words): Don't treat characters belonging to
8258 different scripts as constituting a word.
8259
8260 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
8261
1f45f627 8262 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
aca7a3d2
MB
8263
8264 * emacs.c (main): In the case of --unibyte, instead of aborting on
8265 finding non-empty buffer, make it unibyte.
8266
73acf815 82672008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8268
8269 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
8270 to create a fontset.
8271
73acf815 82722008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8273
8274 * character.c (Funibyte_char_to_multibyte): Doc fix.
8275
8276 * xfns.c [HAVE_STDLIB_H]: Fix last change.
8277
73acf815 82782008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8279
8280 * fontset.c (fontset_add): Make the type `int'.
8281 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
8282
4c4475a8
GM
8283 * character.c (unibyte_char_to_multibyte)
8284 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
aca7a3d2 8285 charset_unibyte, not charset_primary.
aca7a3d2 8286
1f45f627 8287 * charset.h (charset_unibyte): Extern it instead of charset_primary.
aca7a3d2 8288
1f45f627
GM
8289 * charset.c (charset_unibyte): Rename from charset_primary.
8290 (Funibyte_charset): Rename from Fprimary_charset.
8291 (Fset_unibyte_charset): Rename from Fset_primary_charset.
8292 (syms_of_charset): Adjust for the above changes.
aca7a3d2
MB
8293
8294 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
8295 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
8296 it->multibyte_p is zero.
8297
8298 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
1f45f627 8299 Delete extern.
aca7a3d2 8300
73acf815 83012008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8302
8303 * coding.c (Fdefine_coding_system_internal): Fix category setting
8304 for a coding system of type iso-2022.
8305
73acf815 83062008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8307
1f45f627 8308 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
aca7a3d2 8309
73acf815 83102008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8311
8312 * syntax.c (Vnext_word_boundary_function_table): New variable.
1c8658b9
GM
8313 (next-word-boundary-function-table): Declare it as a Lisp variable
8314 in syms_of_syntax.
aca7a3d2
MB
8315 (scan_words): Call functions in Vnext_word_boundary_function_table
8316 if any.
8317
8318 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
8319
8320 * fontset.c (fs_load_font): If fontp->charset is not negative,
8321 return fontp without setting its members.
8322
73acf815 83232008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 8324
aca7a3d2
MB
8325 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
8326
8327 * m/sparc.h (HAVE_ALLOCA): Delete.
8328
8329 * s/irix6-5.h: Don't include strings.h.
8330 (bcopy, bzero, bcmp): Don't undef.
8331
8332 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
8333
8334 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
8335 (TIOCSIGSEND): Don't test IRIX6.
8336 (bcopy, bzero, bcmp): Define conditionally.
8337
73acf815 83382008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8339
8340 * buffer.c (Qas, Qmake, Qto): New variables.
1f45f627 8341 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
aca7a3d2
MB
8342 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
8343
8344 * callproc.c (Fcall_process): Don't call insert_1_both directly if
8345 we are inserting a process output into a multibyte buffer.
8346
8347 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
8348 multibyte_char_to_unibyte.
8349
8350 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
8351 by the primary charset, make it eight-bit char.
8352 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
8353
1f45f627
GM
8354 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
8355 (charset_8_bit__control, charset_8_bit_graphic)
8356 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
aca7a3d2
MB
8357 (define_charset_internal): New function.
8358 (syms_of_charset): Call define_charset_internal for pre-defined
8359 charsets.
8360
8361 * charset.h (charset_8_bit): Extern it.
8362
1f45f627 8363 * coding.c (make_conversion_work_buffer): Adjust for the change
aca7a3d2
MB
8364 of Fset_buffer_multibyte.
8365 (encode_coding_raw_text): Increment p0 in the loop.
8366
1f45f627 8367 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
aca7a3d2 8368
1f45f627 8369 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
aca7a3d2
MB
8370 for the change of Fset_buffer_multibyte.
8371
8372 * fns.c (Fstring_to_multibyte): New function.
8373 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
8374
73acf815 83752008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8376
8377 * xfns.c (x_put_x_image): Declare args.
8378
1f45f627 8379 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
aca7a3d2
MB
8380 (try_font_list): Declare an arg.
8381
8382 * xdisp.c (message2_nolog, set_message): Declare an arg.
8383
8384 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
8385
8386 * syntax.c (scan_sexps_forward): Declare an arg.
8387
8388 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
8389 Declare an arg.
8390
8391 * lisp.h (Fnew_fontset): Declare.
8392
8393 * keymap.c (push_key_description): Call CHARACTERP correctly.
8394
1f45f627 8395 * fontset.c (fontset_add): Declare args. Call make_number correctly.
aca7a3d2
MB
8396 (face_for_char): Delete unused vars.
8397 (Fset_fontset_font): Doc fix. Delete unused vars.
8398
8399 * doc.c (Fsubstitute_command_keys): Delete unused vars.
8400
8401 * composite.c (update_compositions): Declare arg.
8402
8403 * cm.c (calccost, cmgoto): Declare args.
8404
8405 * charset.c: Remove `emacs' conditional. Doc fixes.
8406 (map_char_table_for_charset): Declare.
8407
1f45f627 8408 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
aca7a3d2 8409
1f45f627 8410 * ccl.c: Remove `emacs' conditional.
aca7a3d2 8411
73acf815 84122008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8413
8414 The following changes are to allow specifying multiple font
8415 patterns for a character range (specified by script or charset).
8416
8417 * Makefile.in (abbrev.o): Depend on syntax.h.
8418 (xfaces.o): Depend on charset.h.
8419
8420 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
8421 SINGLE_BYTE_CHAR_P.
8422
8423 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
8424
8425 * character.h (Vchar_script_table): Extern it.
8426
1f45f627 8427 * character.c (Vscript_alist): Delete.
aca7a3d2
MB
8428 (Vchar_script_table, Qchar_script_table): New variable.
8429 (syms_of_character): Declare Vchar_script_table as a lisp variable
8430 and initialize it.
8431
1f45f627 8432 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
aca7a3d2
MB
8433 have property char-table-extra-slots, make no extra slot.
8434
1f45f627 8435 * dispextern.h (struct face): Delete member `charset'.
4c4475a8
GM
8436 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
8437 SINGLE_BYTE_CHAR_P.
1f45f627
GM
8438 (choose_face_font, lookup_non_ascii_face, font_name_registry):
8439 Add prototypes.
8440 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
8441 (generate_ascii_font_name): Rename from generate_ascii_font.
aca7a3d2
MB
8442
8443 * fontset.h (get_font_repertory_func): New prototype.
1f45f627 8444 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
aca7a3d2
MB
8445 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
8446
8447 * fontset.c (Qprepend, Qappend): New variables.
1f45f627 8448 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
aca7a3d2
MB
8449 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
8450 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
8451 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
8452 (fontset_ref_and_range, fontset_add, reorder_font_vector)
8453 (load_font_get_repertory): New functions.
1f45f627 8454 (fontset_set): Delete.
aca7a3d2 8455 (fontset_face): New arg FACE. Return face ID, not face.
1f45f627 8456 Complete re-write to handle new fontset structure. Change caller.
aca7a3d2
MB
8457 (free_face_fontset): Use ASET istead of AREF (X) = Y.
8458 (face_for_char): Don't call lookup_face.
8459 (make_fontset_for_ascii_face): New arg FACE.
8460 (fs_load_font): New arg CHARSET_ID. Don't check
8461 Vfont_encoding_alist here.
8462 (find_font_encoding): New function.
8463 (list_fontsets): Use STRINGP, not ! NILP.
8464 (accumulate_script_ranges): New function.
8465 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
8466 re-written to handle new fontset structure.
8467 (Ffontset_font): Return a copy of element.
8468 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
8469 docstring of font-encoding-alist.
8470
8471 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
8472 (Fset_fotset_font): Fix arguments to 5.
8473
1f45f627 8474 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
aca7a3d2
MB
8475
8476 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
8477 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
1f45f627 8478 (highlight_trailing_whitespace): Adjust for the change of
aca7a3d2
MB
8479 lookup_named_face.
8480
8481 * xfaces.c: Include charset.h.
1f45f627
GM
8482 (load_face_font): Delete argument C. Change caller.
8483 (generate_ascii_font_name): Rename from generate_ascii_font.
aca7a3d2
MB
8484 (font_name_registry): New function.
8485 (cache_face): Store ascii faces before non-ascii faces in buckets.
1f45f627 8486 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
aca7a3d2
MB
8487 Lookup only ascii faces.
8488 (lookup_non_ascii_face): New function.
1f45f627
GM
8489 (lookup_named_face): Delete argument C. Change caller.
8490 (lookup_derived_face): Delete argument C. Change caller.
8491 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
aca7a3d2 8492 a string, just call font_list with it.
1f45f627
GM
8493 (choose_face_font): Delete arguments FACE and C. New arg
8494 FONT_SPEC. Change caller.
4c4475a8
GM
8495 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
8496 Change caller.
aca7a3d2
MB
8497 (realize_non_ascii_face): New function.
8498 (realize_x_face): Call load_face_font here.
1f45f627 8499 (realize_tty_face): Delete argument C. Change caller.
aca7a3d2
MB
8500 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
8501 get a face ID.
8502 (dump_realized_face): Don't print charset of FACE.
8503
8504 * xfns.c (x_set_font): Always call x_new_fontset and
8505 store_frame_parameter.
8506 (Fx_create_frame): Call x_new_fontset, not x_new_font.
1f45f627 8507 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
aca7a3d2
MB
8508
8509 * xterm.h (x_get_font_repertory): Extern it.
8510
8511 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
8512 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
8513 it->multibyte_p is zero.
8514 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
8515 (x_new_fontset): If FONTSETNAME doesn't match any existing
8516 fontsets, create a new one.
8517 (x_get_font_repertory): New function.
8518
73acf815 85192008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8520
8521 * coding.c (Ffind_coding_systems_region_internal): Detect an
8522 ASCII only string correctly.
8523
8524 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
8525 version is 0.
8526
73acf815 85272008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8528
8529 * lread.c: Include "coding.h".
1f45f627
GM
8530 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
8531 (load_each_byte, unread_char): New variables.
8532 (readchar_backlog): Delete.
aca7a3d2
MB
8533 (readchar): Return a character unless load_each_byte is nonzero.
8534 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
8535 cons. If unread_char is not -1, simply return it.
8536 (unreadchar): Handle the case that readcharfun is
1f45f627
GM
8537 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
8538 (read_multibyte): Delete.
aca7a3d2
MB
8539 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
8540 (read_emacs_mule_char): New functions.
8541 (Fload): Even if the file doesn't have the extention ".elc", if
8542 safe_to_load_p returns a positive version number, assume that the
8543 file contains bytecompiled code. If the version is less than 22,
8544 load the file while decoding multibyte sequences by emacs-mule.
8545 (readevalloop): Don't use readchar_backlog.
1f45f627
GM
8546 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
8547 (Fread_from_string): Pay attention to the case that STREAM is a cons.
8548 (read_escape): Delete the arg BYTEREP.
aca7a3d2
MB
8549 (read1): Set load_each_byte to 1 temporarily while handling
8550 #@NUMBER. Don't call read_multibyte.
8551 (read_vector): Call Fread with a cons. If readcharfun is
8552 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
1f45f627 8553 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
aca7a3d2
MB
8554 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
8555 and Qload_force_doc_strings.
8556
73acf815 85572008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8558
8559 * xdisp.c (face_before_or_after_it_pos): Call
8560 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
8561
73acf815 85622008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8563
8564 * character.h (TRAILING_CODE_P): New macro.
1f45f627 8565 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
aca7a3d2
MB
8566 (string_char_with_unification): Fix prototype.
8567 (Vscript_alist): Extern it.
8568
8569 * character.c (Vscript_alist): New variable.
4c4475a8
GM
8570 (string_char_with_unification, str_as_unibyte)
8571 (string_escape_byte8): Add `const' to local variables.
aca7a3d2
MB
8572 (syms_of_character): Declare script-alist as a Lisp variable.
8573
8574 * charset.h (Vcharset_ordered_list): Extern it.
8575 (charset_ordered_list_tick): Extern it.
8576 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
8577 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
8578 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
1f204af3 8579 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
1f45f627 8580 (Funify_charset): Adjust for the change of Funify_charset.
aca7a3d2
MB
8581
8582 * charset.c (charset_ordered_list_tick): New variable.
8583 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
8584 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
8585 deunify intead of unify a charset.
8586 (string_xstring_p): Add `const' to local variables.
1f45f627
GM
8587 (find_charsets_in_text): Add `const' to arguemnts and local variables.
8588 (encode_char): Adjust for the change of Funify_charset. Fix
aca7a3d2
MB
8589 detecting of invalid code.
8590 (Fset_charset_priority): Increment charset_ordered_list_tick.
8591 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
8592 and TO_CODE.
8593
8594 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
1f45f627
GM
8595 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
8596 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
4c4475a8
GM
8597 (decode_coding_ccl, consume_chars)
8598 (Ffind_coding_systems_region_internal)
8599 (Fcheck_coding_systems_region): Add `const' to local variables.
aca7a3d2
MB
8600
8601 * print.c (print_object): Use octal form for printing the
8602 contents of a bool vector.
8603
73acf815 86042008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8605
8606 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
8607 <version == 20>: Refuse to load.
8608
73acf815 86092008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8610
8611 * fns.c: Move coding.h.
8612 (Qcodeset, Qdays, Qmonths): New.
8613 (concat): Use CHARACTERP instead of INTERGERP.
1f45f627 8614 (Flocale_codeset): Delete.
aca7a3d2 8615 (Flanginfo): New function.
1f45f627 8616 (syms_of_fns): Change accordingly.
aca7a3d2
MB
8617
8618 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
8619
73acf815 86202008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8621
8622 * casetab.c (init_casetab_once, init_casetab_once): Fix
8623 CHAR_TABLE_SET call.
8624
8625 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
8626
8627 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
8628
8629 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
8630 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
8631 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
8632
8633 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
8634
8635 * coding.c (ENCODE_DESIGNATION, decode_eol)
8636 (make_conversion_work_buffer, code_conversion_restore)
8637 (Fdefine_coding_system_internal): Convert Lisp types.
8638 (code_conversion_restore): Use EQ, not ==.
8639 (Fencode_coding_string): Fix code_convert_string call.
8640
8641 * coding.h (code_convert_region): Fix prototype.
8642
1f45f627 8643 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
aca7a3d2
MB
8644
8645 * fontset.c (fontset_ref, fontset_set, fs_load_font)
8646 (Ffontset_info): Convert Lisp types.
8647
8648 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
8649
8650 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
8651
8652 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
8653
8654 * chartab.c: Include "...h", not <...h> in some cases.
8655
8656 * callproc.c (Fcall_process): Remove unused variables.
8657
73acf815 86582008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8659
8660 * coding.c (Fset_coding_system_priority): Allow null arg list.
8661
73acf815 86622008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8663
8664 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
8665 (Fself_insert_and_exit): Use CHARACTERP.
8666
8667 * callproc.c (Fcall_process): Remove unused vars.
8668
8669 * xterm.c (XTread_socket): Add extra dead keysyms.
8670
8671 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
8672
8673 * dispextern.h: Remove prototypes for redraw_frame,
8674 redraw_garbaged_frames.
8675
8676 * cmds.c (Fself_insert_command): Use CHARACTERP.
8677
8678 * chartab.c (make_sub_char_table): Remove unused var.
8679 (Fset_char_table_default, Fmap_char_table): Doc fix.
8680
8681 * keymap.c (access_keymap): Remove generic char code.
8682 (push_key_description): Use CHARACTERP.
8683
73acf815 86842008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8685
8686 * charset.c: Doc fixes.
8687 (Funify_charset): Extra checking.
8688
73acf815 86892008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8690
8691 * lread.c: Remove some unused variables.
8692 (safe_to_load_p): If safe, return the magic number version byte.
8693 (Fload): Maybe use load-with-code-conversion.
8694
73acf815 86952008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8696
8697 * category.c (Fmodify_category_entry): Don't modify the contents
8698 of category_set for characters out of the range. Avoid
8699 unnecessary modification.
8700
1f45f627 8701 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
aca7a3d2
MB
8702 Vchar_unify_table. The default value of the table is now nil.
8703
8704 * character.c (syms_of_character): Setup Vchar_width_table for
8705 eight-bit-control and raw-byte chars.
8706
8707 * charset.h (enum define_charset_arg_index): Delete
8708 charset_arg_parents and add charset_arg_subset and
8709 charset_arg_superset.
8710 (enum charset_attr_index): Delete charset_parents and add
8711 charset_subset and charset_superset.
8712 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
8713 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
1f45f627 8714 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
aca7a3d2
MB
8715 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
8716 (CHARSET_SUPERSET): New macros.
8717 (charset_work): Extern it.
8718 (ENCODE_CHAR): Use charset_work.
1f45f627 8719 (CHAR_CHARSET_P): Adjust for the change of encoder format.
aca7a3d2
MB
8720 (map_charset_chars): Extern it.
8721
8722 * charset.c (load_charset_map): Set the default value of encoder
8723 and deunifier char-tables to nil.
1f45f627 8724 (map_charset_chars): Change argument. Change callers. Use
aca7a3d2
MB
8725 map_char_table_for_charset instead of map_char_table.
8726 (Fmap_charset_chars): New optional args from_code and to_code.
1f45f627 8727 (Fdefine_charset_internal): Adjust for the change of
aca7a3d2
MB
8728 `define-charset' (:parents -> :subset or :superset).
8729 (charset_work): New variable.
4c4475a8
GM
8730 (encode_char, syms_of_charset): Adjust for the change of
8731 Fdefine_charset_internal.
aca7a3d2
MB
8732 (Ffind_charset_string): Setup the vector `charsets' correctly.
8733
1f45f627 8734 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
aca7a3d2 8735 the previous change.
1f45f627 8736 (char_table_ref_and_range): Adjust for the above change.
aca7a3d2
MB
8737 (map_sub_char_table_for_charset): New function.
8738 (map_char_table_for_charset): New function.
8739
8740 * keymap.c (describe_vector): Handle a char-table directly here.
1f45f627 8741 (describe_char_table): Delete.
aca7a3d2 8742
1f45f627 8743 * lisp.h (map_charset_chars): Delete.
aca7a3d2 8744
73acf815 87452008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8746
8747 * fns.c (count_combining): Comment out (unused).
8748 (Flocale_codeset): New.
8749 (syms_of_fns): Defsubr it.
8750
8751 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
1f45f627 8752 (size_t): Remove.
aca7a3d2 8753
73acf815 87542008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 8755
6f69e89b 8756 * Makefile.in (chartab.o): Depend on charset.h.
aca7a3d2 8757
73acf815 87582008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8759
8760 * character.c (syms_of_character): Set the default value of
8761 Vprintable_chars to Qnil.
8762
73acf815 87632008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8764
8765 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
8766
73acf815 87672008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8768
8769 * charset.c (load_charset_map): Handle the case that from < to
8770 correctly.
8771
4c4475a8
GM
8772 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
8773 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
8774 Pay attention to raw-8-bit chars.
aca7a3d2 8775
73acf815 87762008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8777
4c4475a8
GM
8778 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
8779 It is not bytecompiled now.
aca7a3d2
MB
8780
8781 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
8782 (charset_jisx0208): New variables.
8783 (Fdefine_charset_internal): Setup them if appropriate.
8784 (init_charset_once): Initialize them to -1.
8785
1f45f627
GM
8786 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
8787 (charset_jisx0208): Extern them.
aca7a3d2 8788
1f204af3 8789 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
aca7a3d2 8790 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
1f45f627
GM
8791 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
8792 (setup_iso_safe_charsets): Fix arguments to Fassq.
4c4475a8
GM
8793 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
8794 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
8795 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
aca7a3d2
MB
8796 (encode_coding_iso_2022): Change the 1st arg to
8797 ENCODE_ISO_CHARACTER to a variable.
8798
73acf815 87992008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8800
8801 * charset.h (enum define_charset_arg_index): New enums
8802 charset_arg_min_code and charset_arg_max_code.
8803 (struct charset): New member char_index_offset.
8804
4c4475a8
GM
8805 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
8806 Take charset->char_index_offset into account.
aca7a3d2
MB
8807 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
8808 args[charset_arg_max_code]. Setup charset.char_index_offset.
8809 (syms_of_charset): Fix args to Fdefine_charset_internal.
8810
73acf815 88112008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8812
8813 * coding.c (decode_coding_utf_8): Reject overlong sequences.
8814
73acf815 88152008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8816
8817 * coding.c: Doc fixes.
8818 (Fcoding_system_aliases): Fix return value.
8819 (Qmac): Remove (duplicated) definition.
8820
73acf815 88212008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8822
8823 * charset.c (Fcharset_priority_list, Fset_charset_priority): New
8824 functions.
8825
8826 * character.c (Fstring): Doc fix.
8827
8828 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
8829
8830 * fontset.c (Ffontset_info): Doc fix. Return charset names, not
8831 ids.
8832 (font-encoding-alist): Doc fix.
8833
73acf815 88342008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8835
8836 * term.c (costs_set): Declare static, non-initialized for pcc.
1f45f627 8837 (encode_terminal_code): Remove unused var.
aca7a3d2
MB
8838
8839 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
8840 for K&R.
8841
8842 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
8843
8844 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
1f45f627 8845 (suffixes): Move out of make_subsidiaries for K&R.
aca7a3d2 8846
1f45f627 8847 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
aca7a3d2
MB
8848
8849 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
8850
73acf815 88512008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8852
8853 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
8854
1f45f627 8855 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
aca7a3d2 8856
2a2e8de7 88572008-02-01 Yong Lu <lyongu@asia-infonet.com>
aca7a3d2
MB
8858
8859 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
8860
1f45f627 8861 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
aca7a3d2 8862
73acf815 88632008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8864
4c4475a8 8865 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
aca7a3d2 8866 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
aca7a3d2 8867
73acf815 88682008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8869
1f45f627 8870 * coding.c (decode_coding_charset): Adjust for the change of
aca7a3d2
MB
8871 Fdefine_coding_system_internal.
8872 (Fdefine_coding_system_internal): For a coding system of
8873 `charset' type, store a list of charset IDs in
8874 `charset_attr_charset_valids' element of coding attributes.
8875
73acf815 88762008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8877
8878 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
1f45f627
GM
8879 (emacs_mule_char): New arg src. Delete arg `composition'. Change
8880 caller. Handle 2-byte and 3-byte charsets correctly.
8881 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
8882 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
aca7a3d2
MB
8883 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
8884 (DECODE_EMACS_MULE_21_COMPOSITION): Call
8885 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
8886 sequence.
8887 (decode_coding_emacs_mule): Handle composition correctly. Rewind
1f45f627 8888 `src' and `consumed_chars' correctly before calling emacs_mule_char.
aca7a3d2
MB
8889 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
8890 and alt&rule composition.
8891 (decode_coding_iso_2022): Handle composition correctly.
8892 (init_coding_once): Setup emacs_mule_bytes for private charsets.
8893
8894 * charset.c (Fdefine_charset_internal): Fix bug for the case of
8895 re-defining a charset. If the charset has :emacs-mule-id, setup
8896 emacs_mule_bytes.
1f45f627 8897 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
aca7a3d2 8898
73acf815 88992008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8900
4c4475a8
GM
8901 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
8902 (encode_coding_big5, encode_coding_charset): If coding requires safe
aca7a3d2
MB
8903 encoding, produce a character specified by
8904 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
aca7a3d2 8905
73acf815 89062008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8907
8908 * xterm.c (XSetIMValues): Declare.
8909
8910 * process.c: Conditionally include sys/wait.h, pty.h.
8911
1f45f627 8912 * print.c (print_object): Fix print format for 64-bit systems.
aca7a3d2 8913
1f45f627 8914 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
aca7a3d2
MB
8915
8916 * buffer.c (emacs_strerror): Declare.
aca7a3d2
MB
8917
8918 * fontset.c (Fclear_face_cache): Declare.
1f45f627 8919 (accumulate_font_info): Comment-out (unused).
aca7a3d2
MB
8920 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
8921 variables.
8922
8923 * character.h (string_escape_byte8): Declare.
8924
8925 * charset.c (load_charset_map, load_charset_map_from_file): Remove
8926 unused vars.
8927 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
8928 (Fmap_charset_chars): Doc fix.
8929
1f45f627 8930 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
aca7a3d2
MB
8931 (Fset_coding_system_priority, Fset_coding_system_priority)
8932 (Fdefine_coding_system_internal): Doc fix.
8933
73acf815 89342008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8935
8936 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
8937
73acf815 89382008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8939
8940 * character.c (string_escape_byte8): Make multibyte string with
8941 correct size.
8942
8943 * charset.c (Fmake_char): Delete unnecessary code.
8944
73acf815 89452008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8946
8947 * xfns.c (x_encode_text): Allocate coding.destination here, and
8948 call encode_coding_object with dst_object Qnil.
8949
8950 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
8951 multibyte form correctly.
8952
8953 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
8954 against Vfont_encoding_alist.
8955
8956 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
8957 handling of charset list.
8958 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
8959 (decode_coding_object): Move point to coding->dst_pos before
8960 calling post-read-conversion function.
8961 (encode_coding_object): Give correct arguments to
8962 pre-write-conversion. Ignore the return value of
8963 pre-write-conversion function. Pay attention to the case that
8964 pre-write-conversion changes the current buffer. If dst_object is
8965 Qt, even if coding->src_bytes is zero, allocate at least one byte
8966 to coding->destination.
8967
8968 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
8969
8970 * charset.c (Fmake_char): Make it more backward compatible.
8971 (Fmap_charset_chars): Fix docstring.
8972
73acf815 89732008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8974
8975 * coding.c: Doc fixes.
8976 (Fdefine_coding_system_alias): Use names, not symbols, in
8977 coding-system-alist.
8978
73acf815 89792008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8980
8981 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
8982 of calling free_realized_face.
8983
2a2e8de7 89842008-02-01 Yong Lu <lyongu@asia-infonet.com>
aca7a3d2 8985
1f45f627
GM
8986 * charset.c (read_hex): Don't treat SPC as a comment starter.
8987 (decode_char): If CODE_POINT_TO_INDEX retruns -1, always return -1.
aca7a3d2
MB
8988 (Fdecode_char): Fix typo.
8989
73acf815 89902008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8991
8992 * charset.h (struct charset): New member `code_space_mask'.
8993
1f45f627 8994 * coding.c (coding_set_source): Delete the local variable beg_byte.
4c4475a8
GM
8995 (encode_coding_charset, Fdefine_coding_system_internal):
8996 Delete the local variable charset.
aca7a3d2
MB
8997 (Fdefine_coding_system_internal): Setup
8998 attrs[coding_attr_charset_valids] correctly.
8999
9000 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
9001 member to check if CODE is valid or not.
9002 (Fdefine_charset_internal): Initialize `code_space_mask' member.
9003 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
9004 is within the range of charset->min_code and carset->max_code.
9005
73acf815 90062008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9007
9008 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
9009
9010 * dispextern.h (generate_ascii_font): Fix return type.
9011
9012 * xfaces.c (generate_ascii_font): Fix arg declaration.
9013
9014 * coding.c (coding_inherit_eol_type)
9015 (Fset_terminal_coding_system_internal)
9016 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
9017
73acf815 90182008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9019
9020 * coding.c (decode_coding_charset, encode_coding_charset): Handle
9021 multiple charsets correctly.
9022
73acf815 90232008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9024
9025 * search.c (boyer_moore): Fix handling of mulitbyte character
9026 translation.
9027
9028 * xdisp.c (display_mode_element): When the variable `elt' is
9029 changed, update `this' and `lisp_string'.
9030
73acf815 90312008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9032
9033 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
9034
9035 * callproc.c (Fcall_process): Be sure to give the current buffer
1f45f627 9036 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
aca7a3d2
MB
9037
9038 * charset.c (struct charset_map_entries): New struct.
1f45f627
GM
9039 (load_charset_map): Rename from parse_charset_map. New args
9040 entries and n_entries. Change caller.
9041 (load_charset_map_from_file): Rename from load_charset_map.
9042 Change caller. New arg control_flag. Call load_charset_map at
aca7a3d2
MB
9043 the tail.
9044 (load_charset_map_from_vector): New function.
9045 (Fdefine_charset_internal): Setup charset.compact_codes_p.
9046 (encode_char): If the charset is compact, change a character index
9047 to a code point.
9048
9049 * coding.c (coding_alloc_by_making_gap): Check the case that the
9050 source and destination are the same correctly.
9051 (decode_coding_raw_text): Set coding->consumed_char and
9052 coding->consumed to 0.
9053 (produce_chars): If coding->chars_at_source is nonzero, update
9054 coding->consumed_char and coding->consumed before calling
9055 alloc_destination.
9056 (Fdefine_coding_system_alias): Register ALIAS in
9057 Vcoding_system_alist.
9058 (syms_of_coding): Define `no-convesion' coding system at the tail.
9059
9060 * fileio.c (Finsert_file_contents): Set coding_system instead of
9061 val. If the current buffer is multibyte, always call
9062 decode_coding_gap.
9063
9064 * xfaces.c (try_font_list): Give higher priority to fontset's
9065 family than face's family.
9066
73acf815 90672008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9068
9069 * callproc.c (Fcall_process): Be sure to give the current buffer
9070 to decode_coding_c_string.
9071
9072 * xfaces.c (try_font_list): Give a family specified in a fontset
9073 higher priority than a family specified in a face.
9074
73acf815 90752008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9076
9077 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
9078 Fix arguments to insert_from_buffer.
9079
9080 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
9081
73acf815 90822008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9083
9084 * coding.c (produce_chars): Set the variable `multibytep' correctly.
9085 (decode_coding_gap): Set coding->dst_multibyte correctly.
9086
73acf815 90872008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9088
9089 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
1f45f627 9090 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
aca7a3d2
MB
9091 (encode_coding_utf_16): Substitute coding->default_char for
9092 non-Unicode characters.
9093 (decode_coding): Don't call record_insert here.
9094 (setup_coding_system): Initialize `surrogate' of
9095 coding->spec.utf_16 to 0.
9096 (EMIT_ONE_BYTE): Fix for multibyte case.
9097
9098 * insdel.c (insert_from_gap): Call record_insert.
9099
73acf815 91002008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9101
9102 * casefiddle.c (casify_region): Fix multibyte case.
9103
9104 * character.c (c_string_width): Add return type `int'.
1f45f627 9105 (char_string_with_unification): Delete arg ADVANCED.
aca7a3d2
MB
9106
9107 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
1f45f627 9108 (CHAR_STRING): Adjust for the change of char_string_with_unification.
aca7a3d2
MB
9109 (CHAR_STRING_ADVANCE): Make it do-while statement.
9110
1f45f627 9111 * chartab.c (sub_char_table_set_range): Optimize for the case
aca7a3d2
MB
9112 DEPTH == 3. Add workaround code for a GCC optimization bug.
9113
9114 * charset.c (parse_charset_map): Remove an unused variable.
9115
9116 * coding.c: Delete unused variables.
9117
9118 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
9119 earlier. If inserted is zero and the coding system doesn't
9120 require flushing, don't call decode_coding_gap.
9121
9122 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
9123
73acf815 91242008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9125
9126 The following changes are for using Unicode as an internal
9127 character model, and use UTF-8 format for buffer/string
9128 representation.
9129
1f45f627 9130 * .gdbinit (xchartable): Adjust for the change of char table structure.
aca7a3d2
MB
9131 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
9132
9133 * Makefile.in (obj): Add character.o and chartab.o.
c3f9fba8 9134 (lisp, shortlisp): Remove utf-8.elc.
aca7a3d2
MB
9135 (*.o): For many files, change dependency on charset.h to
9136 character.h, and add dependency on character.h.
9137 (character.o, chartab.o): New targets.
9138
1f45f627
GM
9139 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
9140 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
9141 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
aca7a3d2
MB
9142 of "charset.h".
9143
9144 * dired.c, filelock.c: Include "character.h".
9145
9146 * alloc.c: Include "character.h" instead of "charset.h".
4c4475a8 9147 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
aca7a3d2
MB
9148 (syms_of_alloc): Remove defsubr for Smake_char_table.
9149
9150 * buffer.c: Include "character.h" instead of "charset.h", don't
9151 include "coding.h".
1f45f627 9152 (Fset_buffer_multibyte): Adjust for UTF-8.
aca7a3d2
MB
9153
9154 * buffer.h: EXFUN Fbuffer_live_p.
9155
9156 * callproc.c: Include "character.h" instead of "charset.h".
9157 (Fcall_process): Big change for the new code-conversion APIs.
9158
9159 * casetab.c: Include "character.h" instead of "charset.h".
1f45f627 9160 (set_canon, set_identity, shuffle): Adjust for the new
aca7a3d2
MB
9161 map_char_table spec.
9162 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
9163 accessing the char table structure.
9164
9165 * chartab.c: New file that implements char table.
9166
9167 * category.c: Include "character.h".
9168 (copy_category_entry): New function.
9169 (copy_category_table): Call map_char_table and copy_category_entry.
9170 (Fmake_category_table): Initialize all top-vel slots.
9171 (char_category_set): New function.
1f45f627 9172 (modify_lower_category_set): Delete.
aca7a3d2
MB
9173 (Fmodify_category_entry): Call char_table_ref_and_range.
9174
9175 * category.h (CATEGORY_SET): Just call char_category_set.
9176
9177 * ccl.c: Include "character.h".
9178 (Qccl, Qcclp): New variables.
9179 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
9180 it's less than 256.
1f45f627
GM
9181 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
9182 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
aca7a3d2 9183 and DST type.
1f45f627
GM
9184 (ccl_driver): Change types of argument, adjust code accordingly.
9185 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
aca7a3d2
MB
9186 ccl_driver.
9187 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
9188
1f45f627
GM
9189 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
9190 New members src_multibyte, dst_multibyte, consumed, and produced.
9191 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
aca7a3d2 9192 (CODING_SPEC_CCL_PROGRAM): New macro.
1f45f627 9193 (ccl_driver): Update prototype.
aca7a3d2
MB
9194 (Qccl, Qcclp, Fccl_program_p): Extern them.
9195 (CHECK_CCL_PROGRAM): New macro.
9196
9197 * character.c, character.h, chartab.c: New files.
9198
1f45f627
GM
9199 * charset.c: Mostly re-written. Move character and multibyte sequence
9200 handling codes to character.c.
aca7a3d2 9201
1f45f627
GM
9202 * charset.h: Mostly re-written. Move character and multibyte sequence
9203 handling codes to character.h.
aca7a3d2
MB
9204
9205 * coding.c, coding.h: Mostly re-written.
9206
9207 * composite.c: Include "character.h" instead of "charset.h".
1f45f627
GM
9208 (CHAR_WIDTH): Move to character.h.
9209 (HASH_KEY, HASH_VALUE): Delete.
aca7a3d2 9210
1f45f627
GM
9211 * composite.h (enum composition_method): Change order of enumeration
9212 symbols.
aca7a3d2
MB
9213
9214 * data.c: Include "character.h" instead of "charset.h".
9215 (Faref): Call CHAR_TABLE_REF for a char table.
9216 (Faset): Call CHAR_TABLE_SET for a char table.
9217
1f45f627
GM
9218 * dispextern.h (free_realized_face, check_face_attribytes)
9219 (generate_ascii_font): Extern them.
9220 (free_realized_multibyte_face): Delete extern.
aca7a3d2 9221
1f45f627 9222 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
aca7a3d2
MB
9223 table structure.
9224
9225 * editfns.c: Include "character.h" instead of "charset.h".
9226 (Fchar_to_string): Always call CHAR_STRING.
9227
9228 * emacs.c (main): Call init_charset_once, init_charset,
9229 syms_of_chartab, and syms_of_character.
9230
9231 * fileio.c: Include "character.h" instead of "charset.h".
1f45f627 9232 (Finsert_file_contents): Big change for the new code-conversion API.
4c4475a8 9233 (choose_write_coding_system, Fwrite_region): Likewise.
1f45f627 9234 (build_annotations_2): Delete.
aca7a3d2
MB
9235 (e_write): Big change for the new code-conversion API.
9236
9237 * fns.c: Include "character.h" instead of "charset.h".
1f45f627 9238 (copy_sub_char_table): Move to chartab.c.
aca7a3d2
MB
9239 (Fcopy_sequence): Call copy_char_table for a char table.
9240 (concat): Delete codes calling count_multibyte.
4c4475a8
GM
9241 (string_char_to_byte, string_byte_to_char): Adjust for the new
9242 multibyte form.
1f45f627
GM
9243 (internal_equal): Adjust for the change of char table structure.
9244 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
9245 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
9246 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
9247 (char_table_translate, optimize_sub_char_table)
9248 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
aca7a3d2 9249 chartab.c.
1f45f627
GM
9250 (char_table_ref_and_index): Delete.
9251 (HASH_KEY, HASH_VALUE): Move to lisp.h.
aca7a3d2 9252 (Fmd5): Call preferred_coding_system instead of accessing
1f45f627
GM
9253 Vcoding_category_list. Adjust for the new code-conversion API.
9254 (syms_of_fns): Move defsubr for char table related functions to
aca7a3d2
MB
9255 chartab.c.
9256
9257 * fontset.c: Mostly re-written.
9258
1f45f627 9259 * fontset.h (struct font_info): Change type of the member encoding_type.
aca7a3d2 9260 (enum FONT_SPEC_INDEX): New enum.
1f45f627
GM
9261 (fontset_font_pattern, fs_load_font): Update prototype.
9262 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
aca7a3d2
MB
9263
9264 * indent.c: Include "character.h" instead of "charset.h".
1f45f627 9265 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
aca7a3d2
MB
9266
9267 * insdel.c: Include "character.h" instead of "charset.h".
9268 (copy_text): Don't refer to Vnonascii_translation_table.
9269 (insert_from_gap): New function.
9270
9271 * keyboard.c: Include "character.h" instead of "charset.h".
9272 (command_loop_1): Never call direct_output_forward_char before
9273 a non-ASCII character.
9274 (read_char): If Vkeyboard_translate_table is a char table, always
1f45f627 9275 translate a character.
aca7a3d2
MB
9276
9277 * keymap.c: Include "character.h".
9278 (store_in_keymap): Handle the case that IDX is a cons.
9279 (Fdefine_key): Handle the case that KEY is a cons and the car part
9280 is also a cons (range).
1f45f627 9281 (push_key_description): Adjust for the new character code.
aca7a3d2
MB
9282 (describe_vector): Call describe_char_table for a char table.
9283 (describe_char_table): New function.
9284
9285 * keymap.h (describe_char_table): Extern it.
9286
9287 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
9288 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
1f45f627
GM
9289 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
9290 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
9291 Delete.
9292 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
aca7a3d2
MB
9293 structure.
9294 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
1f45f627
GM
9295 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
9296 (CHARTAB_SIZE_BITS_3): New macros.
aca7a3d2 9297 (chartab_size): Extern it.
1f45f627 9298 (struct Lisp_Char_Table): Re-design.
aca7a3d2 9299 (struct Lisp_Sub_Char_Table): New structure.
1f45f627
GM
9300 (HASH_KEY, HASH_VALUE): Move from fns.c.
9301 (CHARACTERBITS): Define as 22.
9302 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
aca7a3d2
MB
9303 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
9304 (GC_SUB_CHAR_TABLE_P): New macro.
1f45f627
GM
9305 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
9306 (code_convert_string_norecord): Deleted extern.
9307 (init_character_once, syms_of_character, init_charset)
9308 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
aca7a3d2
MB
9309
9310 * lread.c: Include "character.h".
9311 (read_multibyte): New arg NBYTES.
1f45f627
GM
9312 (read_escape): Change the meaning of returned *BYTEREP.
9313 (to_multibyte): Delete.
9314 (read1): Adjust the handling of char table and string.
aca7a3d2
MB
9315
9316 * print.c: Include "character.h" instead of "charset.h".
9317 (print_string): Convert 8-bit raw bytes to octal form by
9318 string_escape_byte8.
1f45f627 9319 (print_object): Adjust for the new multibyte form. Print 8-bit
aca7a3d2
MB
9320 raw bytes always in octal form. Handle sub char table correctly.
9321
9322 * process.c: Include "character.h" instead of "charset.h".
4c4475a8
GM
9323 (read_process_output, send_process): Adjust for the new
9324 code-conversion API.
aca7a3d2 9325
1f45f627 9326 * puresize.h (BASE_PURESIZE): Increase.
aca7a3d2
MB
9327
9328 * regex.c: Include "character.h" instead of "charset.h".
9329 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
9330 (regex_compile): Accept a range whose starting and ending
9331 character have different leading bytes.
1f45f627 9332 (analyse_first): Adjust for the above change.
aca7a3d2
MB
9333
9334 * search.c: Include "character.h" instead of "charset.h".
1f45f627
GM
9335 (search_buffer, boyer_moore): Adjust for the new multibyte form.
9336 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
aca7a3d2
MB
9337
9338 * syntax.c: Include "character.h" instead of "charset.h".
1f45f627 9339 (syntax_parent_lookup): Delete.
aca7a3d2 9340 (Fmodify_syntax_entry): Accept a cons as CHAR.
1f45f627 9341 (skip_chars): Adjust for the new multibyte form.
aca7a3d2
MB
9342 (init_syntax_once): Call char_table_set_range instead of directly
9343 accessing the structure of a char table.
9344
9345 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
1f45f627 9346 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
aca7a3d2
MB
9347 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
9348 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
9349
9350 * term.c: Include "buffer.h" and "character.h".
4c4475a8
GM
9351 (encode_terminal_code, write_glyphs): Adjust for the new
9352 code-conversion API.
aca7a3d2
MB
9353 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
9354
1f45f627 9355 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
aca7a3d2
MB
9356
9357 * xdisp.c: Include "character.h".
1f45f627
GM
9358 (get_next_display_element): Adjust for the new multibyte form.
9359 (disp_char_vector): Adjust for the new char table structure.
9360 (decode_mode_spec_coding): Adjust for the new structure of
aca7a3d2 9361 coding system.
1f45f627 9362 (decode_mode_spec): Adjust for the new code-conversion API.
aca7a3d2
MB
9363
9364 * xfaces.c: Include "character.h" instead of "charset.h".
1f45f627 9365 (load_face_font): Adjust for the change of choose_face_font and
aca7a3d2
MB
9366 FS_LOAD_FONT.
9367 (generate_ascii_font): New function.
1f45f627
GM
9368 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
9369 (set_font_frame_param): Adjust for the change of choose_face_font.
aca7a3d2 9370 (free_realized_face): Make it public.
1f45f627 9371 (free_realized_faces_for_fontset): Rename from
aca7a3d2 9372 free_realized_multibyte_face. Free also faces realized for ASCII.
1f45f627 9373 (choose_face_font): Change arguments. Adjust for the change of
aca7a3d2
MB
9374 fontset_font_pattern and FS_LOAD_FONT.
9375
9376 * xfns.c: Include "character.h".
1f45f627 9377 (x_encode_text): Adjust for the new code-conversion API.
aca7a3d2
MB
9378
9379 * xselect.c: Don't include "charset.h".
1f45f627 9380 (selection_data_to_lisp_data): Adjust for the new code conversion API.
aca7a3d2
MB
9381
9382 * xterm.c: Include "character.h".
1f45f627 9383 (x_encode_char): New argument CHARSET. Change caller.
4c4475a8
GM
9384 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
9385 Call ENCODE_CHAR instead of SPLIT_CHAR.
aca7a3d2
MB
9386 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
9387 CHAR_WIDTH instead of CHARSET_WIDTH.
1f45f627
GM
9388 (XTread_socket): Adjust for the new code-conversion API.
9389 (x_new_font): Adjust for the change of FS_LOAD_FONT.
9390 (x_load_font): Adjust for the change of struct font.
aca7a3d2 9391
d6abfc14
SM
93922008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
9393
9394 * xfaces.c (face_at_buffer_position): Remove unused vars.
9395
0acdaf8d
KH
93962008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9397
4c4475a8
GM
9398 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
9399 Fix overflow checking.
0acdaf8d 9400
6c8a0ebf
GM
94012008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9402
9403 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
9404 Cancel previous change.
9405
94062008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
9407
9408 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
9409 ccl->eight_bit_control. Fix check for buffer overflow.
9410 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
9411 (ccl_driver): Initialize extra_bytes to 0.
9412
a32aad64
KH
94132008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
9414
9415 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
9416 return it ORed with ctrl_modifier.
9417
8b329dba
MB
94182008-01-29 Miles Bader <miles@gnu.org>
9419
9420 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
9421
548667aa
JR
94222008-01-28 Jason Rumney <jasonr@gnu.org>
9423
9424 * w32.c (stat): Don't double check for networked drive.
9425
0975aa24
SM
94262008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
9427
ef264c42
SM
9428 * window.c (run_window_configuration_change_hook): New function.
9429 Code extracted from set_window_buffer. Set the selected frame.
9430 (set_window_buffer): Use it.
9431 * window.h (run_window_configuration_change_hook): Declare.
9432 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
9433
0975aa24
SM
9434 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
9435
9c28b587
DN
94362008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
9437
9438 * Makefile.in: Remove references to unused macros.
9439
c617afce
EZ
94402008-01-26 Eli Zaretskii <eliz@gnu.org>
9441
9442 * w32.c (g_b_init_get_sid_sub_authority)
9443 (g_b_init_get_sid_sub_authority_count): New static variables.
9444 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
9445 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
0975aa24
SM
9446 (init_user_info): Use them to retrieve uid and gid.
9447 Use 500/513, the Windows defaults, as Administrator's uid/gid.
248c21c5
EZ
9448 (fstat): Use pw_uid and pw_gid from the_passwd structure for
9449 st_uid and st_gid of the file.
c617afce 9450
302d7d54
JR
94512008-01-26 Jason Rumney <jasonr@gnu.org>
9452
9453 * w32.c (logon_network_drive): New function.
9454 (stat): Use it.
9455
3ac7a21e
CY
94562008-01-26 Chong Yidong <cyd@stupidchicken.com>
9457
9458 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
9459 invisible text covered with an ellipsis.
9460
bbb9fc1f
RS
94612008-01-25 Richard Stallman <rms@gnu.org>
9462
9463 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
9464 jump back to beginning. Move some other initializations after that.
9465 (Qwindow_text_change_functions, Vwindow_text_change_functions):
9466 New variables.
9467 (syms_of_xdisp): Init them.
9468
9469 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
9470
0975aa24
SM
9471 * buffer.c (reset_buffer_local_variables):
9472 Implement `permanent-local-hook'.
bbb9fc1f 9473 (Qpermanent_local_hook): New variable.
0975aa24 9474 (syms_of_buffer): Init and staticpro it.
bbb9fc1f 9475
79235cbe
MA
94762008-01-25 Michael Albinus <michael.albinus@gmx.de>
9477
9478 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
9479
ccd8f7fe
TTN
94802008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
9481
9482 * fns.c (Fclrhash): Return TABLE.
9483
dfbe40f2 94842008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
223b3d1d
YM
9485
9486 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
9487 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
9488 is set even without positional changes.
9489 (x_scroll_bar_clear): Set bar->redraw_needed_p.
9490
9491 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
9492
dfbe40f2 94932008-01-23 Jason Rumney <jasonr@gnu.org>
602e142f 9494
d6169680
JR
9495 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
9496
602e142f
JR
9497 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
9498 the unicode range available in MULE by locale-coding-system.
c041e2d1 9499 Improve dbcs lead byte detection. Set event timestamp and modifiers
602e142f
JR
9500 earlier.
9501
dfbe40f2 95022008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5ee4de53
YM
9503
9504 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
9505 [MAC_OSX] (init_mac_osx_environment): Initialize it.
6f69e89b 9506 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
5ee4de53
YM
9507 when used on child processes.
9508
8c7a4ac5
MA
95092008-01-21 Michael Albinus <michael.albinus@gmx.de>
9510
e0df1b73 9511 * dbusbind.c (Fdbus_method_return_internal): Rename from
8c7a4ac5 9512 Fdbus_method_return.
e0df1b73 9513 (Fdbus_unregister_object): Move to dbus.el.
8c7a4ac5 9514 (Fdbus_call_method, Fdbus_method_return_internal)
e0df1b73 9515 (Fdbus_send_signal): Improve debug messages.
8c7a4ac5 9516
8abe0f97
MR
95172008-01-20 Martin Rudalics <rudalics@gmx.at>
9518
9519 * undo.c (undo_inhibit_record_point): New variable.
9520 (syms_of_undo): Initialize it.
9521 (record_point): Don't record point when undo_inhibit_record_point
9522 is set.
9523
c3b232e4
SM
95242008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
9525
e69c4cae
SM
9526 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
9527
823e0ebb
SM
9528 * xdisp.c (Qauto_hscroll_mode): New var.
9529 (syms_of_xdisp): Initialize it.
9530 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
9531 window's buffer.
9532 (hscroll_windows): Don't check automatic_hscrolling_p here.
9533
c3b232e4
SM
9534 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
9535 vscroll if we're setting window-buffer to the value it already has.
9536
76ed5e01
DN
95372008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
9538
9539 * m/intel386.h: Remove references to XENIX.
9540
55e6d9b2
AS
95412008-01-17 Andreas Schwab <schwab@suse.de>
9542
9543 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
9544 instead of HAVE_X86_64_LIB64_DIR.
9545 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
9546
b16ed52d
GM
95472008-01-17 Glenn Morris <rgm@gnu.org>
9548
9549 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
9550 to HAVE_X86_64_LIB64_DIR.
9551
6bed5c4a
DN
95522008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
9553
9554 * s/irix3-3.h:
9555 * s/irix4-0.h:
9556 * s/386-ix.h:
9557 * s/domain.h:
9558 * s/hpux9-x11r4.h:
9559 * s/hpux9shxr4.h: Remove files for systems no longer supported.
9560
9561 * sysdep.c: Remove code containing references to symbols defined
9562 by unsupported systems.
9563
fdecf907
GM
95642008-01-16 Glenn Morris <rgm@gnu.org>
9565
9566 * coding.c (select-safe-coding-system-function): Doc fix.
9567
9292328f
GM
95682008-01-15 Glenn Morris <rgm@gnu.org>
9569
9570 * config.in: Revert 2008-01-13 change: this is a generated file.
9571
944df511
MO
95722008-01-13 Tom Tromey <tromey@redhat.com>
9573
9574 * lisp.h: Fix typo.
9575
8111ec05
DN
95762008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
9577
f40f5dc3
DN
9578 * m/sequent-ptx.h:
9579 * m/sequent.h:
9580 * s/ptx.h:
9581 * s/ptx4-2.h:
9582 * s/ptx4.h: Remove files for systems no longer supported.
9583
ce20b664 9584 * callproc.c (Fcall_process): Fix previous change.
8111ec05 9585
e39a993c
DN
95862008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
9587
052e457f 9588 * unexsunos4.c: Remove file, system not supported anymore.
e39a993c 9589
290afd83
JB
9590 * m/mips.h:
9591 * m/intel386.h:
e39a993c
DN
9592 * callproc.c:
9593 * config.in:
9594 * ecrt0.c:
9595 * emacs.c:
9596 * fileio.c:
9597 * frame.c:
9598 * getpagesize.h:
9599 * keyboard.c:
9600 * lread.c:
9601 * process.c:
9602 * puresize.h:
9603 * sysdep.c:
9604 * systty.h:
9605 * syswait.h:
9606 * unexec.c:
9607 * xdisp.c:
9608 * alloc.c: Remove code containing references to symbols defined by
9609 unsupported systems.
9610
81cd7687
KH
96112008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
9612
9613 * coding.c (detect_coding_mask): Fix previous change.
9614
218b3b76
KH
96152008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
9616
9617 * coding.c (detect_coding_iso2022): New arg
9618 latin_extra_code_state. Allow Latin extra codes only
9619 when *latin_extra_code_state is nonzero.
9620 (detect_coding_mask): If there is a NULL byte, detect the encoding
9621 as UTF-16 or binary. If Latin extra codes exist, detect the
9622 encoding as ISO-2022 only when there's no other proper encoding is
9623 found.
9624
59ce725a 96252008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
081f2203 9626
59ce725a
MB
9627 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
9628 #ifdef MAC_OS.
048addec 9629
59ce725a 96302008-01-08 Richard Stallman <rms@gnu.org>
048addec 9631
59ce725a 9632 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
048addec 9633
8290574e
NR
96342008-01-06 Nick Roberts <nickrob@snap.net.nz>
9635
a0a3805c 9636 * keyboard.c (parse_menu_item): Don't enclose key bindings on
8290574e
NR
9637 menu bar in parentheses.
9638
f3041af1
DN
96392008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
9640
9641 * m/7300.h:
9642 * m/acorn.h:
9643 * m/alliant-2800.h:
9644 * m/alliant.h:
9645 * m/alliant1.h:
9646 * m/alliant4.h:
9647 * m/altos.h:
9648 * m/amdahl.h:
9649 * m/apollo.h:
9650 * m/att3b.h:
9651 * m/aviion-intel.h:
9652 * m/aviion.h:
9653 * m/celerity.h:
9654 * m/clipper.h:
9655 * m/cnvrgnt.h:
9656 * m/convex.h:
9657 * m/cydra5.h:
9658 * m/delta88k.h:
9659 * m/dpx2.h:
9660 * m/dual.h:
9661 * m/elxsi.h:
9662 * m/f301.h:
9663 * m/gould-np1.h:
9664 * m/gould.h:
9665 * m/i860.h:
9666 * m/ibmps2-aix.h:
9667 * m/ibmrt-aix.h:
9668 * m/ibmrt.h:
9669 * m/irist.h:
9670 * m/is386.h:
9671 * m/isi-ov.h:
9672 * m/mega68.h:
9673 * m/mg1.h:
9674 * m/news-r6.h:
9675 * m/news-risc.h:
9676 * m/news.h:
9677 * m/nh3000.h:
9678 * m/nh4000.h:
9679 * m/ns16000.h:
9680 * m/ns32000.h:
9681 * m/nu.h:
9682 * m/orion.h:
9683 * m/orion105.h:
9684 * m/paragon.h:
9685 * m/pfa50.h:
9686 * m/plexus.h:
9687 * m/pyramid.h:
9688 * m/pyrmips.h:
9689 * m/sh3el.h:
9690 * m/sps7.h:
9691 * m/sr2k.h:
9692 * m/stride.h:
9693 * m/sun1.h:
9694 * m/sun2.h:
9695 * m/sun3-68881.h:
9696 * m/sun3-fpa.h:
9697 * m/sun3-soft.h:
9698 * m/sun3.h:
9699 * m/sun386.h:
9700 * m/symmetry.h:
9701 * m/tad68k.h:
9702 * m/tahoe.h:
9703 * m/targon31.h:
9704 * m/tek4300.h:
9705 * m/tekxd88.h:
9706 * m/tower32.h:
9707 * m/tower32v3.h:
9708 * m/ustation.h:
9709 * m/wicat.h:
9710 * m/xps100.h:
9711 * s/cxux.h:
9712 * s/cxux7.h:
9713 * s/dgux.h:
9714 * s/dgux4.h:
9715 * s/dgux5-4-3.h:
9716 * s/dgux5-4r2.h:
9717 * s/esix.h:
9718 * s/esix5r4.h:
9719 * s/hiuxmpp.h:
9720 * s/hiuxwe2.h:
9721 * s/iris3-5.h:
9722 * s/iris3-6.h:
9723 * s/isc2-2.h:
9724 * s/isc3-0.h:
9725 * s/isc4-0.h:
9726 * s/isc4-1.h:
9727 * s/newsos5.h:
9728 * s/newsos6.h:
9729 * s/osf1.h:
9730 * s/osf5-0.h:
9731 * s/riscix1-1.h:
9732 * s/riscix12.h:
9733 * s/sco4.h:
9734 * s/sco5.h:
9735 * s/sunos4-0.h:
9736 * s/sunos4-1.h:
9737 * s/sunos413.h:
9738 * s/sunos4shr.h:
9739 * s/umax.h:
9740 * s/unipl5-2.h:
9741 * s/xenix.h:
9742 * cxux-crt0.s:
9743 * unexapollo.c:
9744 * unexconvex.c:
9745 * unexenix.c:
9746 * unexsni.c: Remove files for systems no longer supported.
9747
9748 * m/intel386.h: Remove references to unsupported systems.
9749
9750 * w32.c (get_emacs_configuration): Remove reference to i860.
9751
9752 * sysdep.c: Remove dead code.
9753
d35e1cd7
DN
97542008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
9755
9756 * s/rtu.h:
a0a3805c 9757 * m/masscomp.h: Remove files. Platform is obsolete.
d35e1cd7 9758
abe136ee
MA
97592008-01-04 Michael Albinus <michael.albinus@gmx.de>
9760
9761 * dbusbind.c (Fdbus_method_return): New function.
9762 (xd_read_message): Add the serial number to the event.
9763 (Fdbus_register_method): Activate the function.
9764
87df3c32
SM
97652008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
9766
9767 * keyboard.c (read_key_sequence): Fix typo.
9768
5125905e
MA
97692008-01-03 Michael Albinus <michael.albinus@gmx.de>
9770
9771 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
9772 (xd_signature, xd_append_arg): Handle element type detection for
9773 empty arrays.
9774 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
9775 SDATA () calls; this must be solved more general.
9776 (Fdbus_register_signal): Use SBYTES instead of strlen.
9777
8bba1b5c
MH
97782008-01-03 Magnus Henoch <magnus@zemdatav>
9779
9780 * dbusbind.c (xd_append_arg): Use unsigned char instead of
9781 unsigned int for byte values (necessary for big-endian platform).
2c3a8b27 9782 (Fdbus_call_method): Handle the case of no returned arguments.
8bba1b5c 9783
a0a3805c 97842007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
15f16c1b
MA
9785
9786 * dbusbind.c (xd_read_message): Use non-static input_event struct.
9787
a271e124
MH
97882007-12-31 Magnus Henoch <mange@freemail.hu>
9789
9790 * dbusbind.c (xd_signature): Signature of variant is just "v".
9791
17bc8f94
MA
97922007-12-30 Michael Albinus <michael.albinus@gmx.de>
9793
87df3c32 9794 * dbusbind.c: Fix several errors and compiler warnings.
1f204af3 9795 Reported by Tom Tromey <tromey@redhat.com>.
17bc8f94
MA
9796 (XD_ERROR, XD_DEBUG_MESSAGE)
9797 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
9798 (xd_append_arg): Part for basic D-Bus types rewitten.
9799 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
9800 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
9801 appropriate.
9802 (xd_read_message): Return Qnil. Don't signal an error; it is not
9803 useful during event reading.
9804 (Fdbus_register_signal): Signal an error if the check for
9805 FUNCTIONP fails.
9806 (Fdbus_register_method): New function. The implementation is not
9807 complete, the call of the function signals an error therefore.
9808 (Fdbus_unregister_object): New function, renamed from
9809 Fdbus_unregister_signal. The initial check signals an error, if
5125905e 9810 the object is not well formed.
17bc8f94 9811
dd6f2802
RS
98122007-12-30 Richard Stallman <rms@gnu.org>
9813
9814 * textprop.c (get_char_property_and_overlay):
9815 Signal error if POSITION is out of range in a buffer.
9816
1da8a031
MR
98172007-12-29 Martin Rudalics <rudalics@gmx.at>
9818
9819 * w32fns.c (Fx_create_frame): Make copy of frame parameters
9820 because the original parameters are in pure storage now.
9821
5742be86
YM
98222007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9823
9824 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
9825
b014713c
EZ
98262007-12-22 Eli Zaretskii <eliz@gnu.org>
9827
b17f53ab
MB
9828 * callint.c (syms_of_callint) <command-history>: Add reference to
9829 history-length in the doc string.
048addec 9830
b17f53ab 98312007-12-17 Jason Rumney <jasonr@gnu.org>
048addec 9832
b17f53ab
MB
9833 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
9834 before passing as wParam.
048addec 9835
9af5078b
MA
98362007-12-22 Michael Albinus <michael.albinus@gmx.de>
9837
9838 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
9839 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
9840 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
9841 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
9842 as number.
9843 (Fdbus_call_method): Fix docstring.
9844
87cf1a39
MA
98452007-12-21 Michael Albinus <michael.albinus@gmx.de>
9846
9847 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
9848 New macros.
87df3c32 9849 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
a0a3805c
JB
9850 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
9851 Simplify.
87cf1a39
MA
9852 (xd_signature): New function.
9853 (xd_append_arg): Compute also signatures. Major rewrite.
9854 (xd_retrieve_arg): Make debug messages friendly.
87df3c32
SM
9855 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
9856 Check for signatures of arguments.
87cf1a39 9857
54371585
MA
98582007-12-19 Michael Albinus <michael.albinus@gmx.de>
9859
9860 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
9861 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
9862 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
9863 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
9864 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
87df3c32 9865 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
54371585
MA
9866 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
9867 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
87df3c32 9868 (xd_retrieve_value): Remove. Functionality included in ...
54371585
MA
9869 (xd_append_arg): New function.
9870 (Fdbus_call_method, Fdbus_send_signal): Apply it.
9871
f5306ca3
MA
98722007-12-16 Michael Albinus <michael.albinus@gmx.de>
9873
9874 * dbusbind.c (top): Include <stdio.h>.
9875 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
9876 dbus_message_new_method_call and dbus_message_new_signal.
87df3c32
SM
9877 (Fdbus_register_signal): Rename unique_name to uname.
9878 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
f5306ca3
MA
9879 non-existing unique name. Fix typos in matching rule. Return an
9880 object which is useful in Fdbus_unregister_signal.
9881 (Fdbus_unregister_signal): Reimplementation, in order to remove
9882 only the corresponding entry.
9883 (Vdbus_registered_functions_table): Change the order of entries.
9884 Apply these changes in xd_read_message and Fdbus_register_signal.
9885
77a28bbf
AS
98862007-12-16 Andreas Schwab <schwab@suse.de>
9887
9888 * fileio.c (Finsert_file_contents): Fix overflow check to not
9889 depend on undefined integer overflow.
9890
2e3566d8
JR
98912007-12-14 Jason Rumney <jasonr@gnu.org>
9892
9893 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
9894 for characters above 127.
9895
bf254037
JR
98962007-12-13 Jason Rumney <jasonr@gnu.org>
9897
9898 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
9899 before dereferencing array.
9900 (lookup_vk_code): Remove zero comparison.
9901
eb7c7bf5
MA
99022007-12-14 Michael Albinus <michael.albinus@gmx.de>
9903
9904 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
87df3c32
SM
9905 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
9906 Use `unsigned int' instead of `uint'.
eb7c7bf5
MA
9907 (xd_read_message, Fdbus_register_signal): Split expressions into
9908 multiple lines before operators "&&" and "||", according to the
9909 GNU Coding Standards.
9910
34fb0fc9
EZ
99112007-12-14 Eli Zaretskii <eliz@gnu.org>
9912
9913 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
9914
c7d97628
JL
99152007-12-12 Juri Linkov <juri@jurta.org>
9916
9917 * buffer.c (Frename_buffer): In interactive spec replace
9918 `read-buffer' with `read-string' that uses `buffer-name-history'
9919 as history, and the current buffer's name as default.
9920
3709505e
SM
99212007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
9922
9923 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
9924 manipulating the backtrace manually.
9925 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
9926 (struct backtrace, backtrace_list): Remove.
9927 (command_loop_1): Remove dead var `no_direct'.
9928
9929 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
9930 preserve non-built-in buffer-local variables.
9931 (Fkill_all_local_variables): Don't re-create&re-set permanent
9932 buffer-local variables.
9933
e2bec886
JL
99342007-12-09 Juri Linkov <juri@jurta.org>
9935
9936 * buffer.c (Frename_buffer): Change interactive spec from "s" to
9937 Lisp code that uses `read-buffer' with current buffer as default.
9938
a31d47c7
MA
99392007-12-08 Michael Albinus <michael.albinus@gmx.de>
9940
9941 * dbusbind.c (xd_read_message): Generate an event for every
9942 registered handler. There might be several handlers registered
9943 for the same signal.
9944 (Fdbus_register_signal): Don't overwrite a registration for the
9945 same signal. Add a new registration if handlers are different.
9946 (Vdbus_registered_functions_table): Rework doc string.
9947
52da95fa
MA
99482007-12-07 Michael Albinus <michael.albinus@gmx.de>
9949
9950 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
9951 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
9952 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
9953 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
9954 Unify argument lists.
a0a3805c 9955 (xd_read_message, Fdbus_register_signal): Reorder and extend event
52da95fa
MA
9956 arguments and hash table keys. Use unique name for service.
9957 (Fdbus_unregister_signal): Remove checks.
9958 (Vdbus_registered_functions_table): Fix doc string.
9959
e5e76c04 99602007-12-05 Magnus Henoch <mange@freemail.hu>
0277bfa1
RS
9961
9962 * process.c (make_process): Initialize pty_flag to 0.
9963
e5e76c04 99642007-12-05 Jason Rumney <jasonr@gnu.org>
44b1dc2e
JR
9965
9966 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
9967 specified XBMs.
9968
e5e76c04 99692007-12-05 Richard Stallman <rms@gnu.org>
048addec 9970
e5e76c04 9971 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
048addec 9972
e5e76c04 99732007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
048addec 9974
e5e76c04
MB
9975 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
9976 New variable.
9977 (mac_try_close_socket) [MAC_OSX]: New function.
9978 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
9979 Update cfsockets_for_select. Replace invalid CFRunLoop source.
048addec 9980
e5e76c04
MB
9981 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
9982 Use mac_try_close_socket.
048addec 9983
e5e76c04 99842007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
048addec 9985
e5e76c04
MB
9986 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
9987 reloc_base.
9988 (copy_dysymtab): Compute relocation base here.
9989 (rebase_reloc_address) [__ppc64__]: New function.
9990 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
9991 changed.
048addec 9992
e5e76c04 99932007-12-05 Jason Rumney <jasonr@gnu.org>
048addec 9994
e5e76c04 9995 * w32proc.c (sys_spawnve): Quote args with wildcards.
048addec 9996
e5e76c04 99972007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
048addec 9998
e5e76c04
MB
9999 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
10000 __objc_* sections.
10001 (unrelocate) [_LP64]: Set relocation base to address of data segment.
048addec 10002
96faeb40
MA
100032007-12-05 Michael Albinus <michael.albinus@gmx.de>
10004
10005 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
10006 Move check for Vdbus_registered_functions_table to
10007 xd_read_queued_messages.
10008 (xd_read_queued_messages): Protect xd_read_message calls by
10009 internal_condition_case_1.
10010
39abdd4a
MA
100112007-12-04 Michael Albinus <michael.albinus@gmx.de>
10012
87df3c32 10013 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
39abdd4a 10014 Qdbus_system_bus and Qdbus_session_bus, respectively.
87df3c32 10015 (Vdbus_intern_symbols): Remove.
39abdd4a 10016 (Vdbus_registered_functions_table): New hash table.
87df3c32 10017 (XD_SYMBOL_INTERN_SYMBOL): Remove.
39abdd4a 10018 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
87df3c32 10019 Rewrite in order to manage registered functions by hash table
39abdd4a
MA
10020 Vdbus_registered_functions_table.
10021
880820fe 100222007-12-03 Jan Djärv <jan.h.d@swipnet.se>
7ba30657
JD
10023
10024 * xterm.c: Update URL to Window Manager Specification in comment.
10025
033b73e2
MA
100262007-12-02 Michael Albinus <michael.albinus@gmx.de>
10027
10028 * config.in (HAVE_DBUS): Add.
10029
a0a3805c 10030 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
033b73e2
MA
10031 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
10032 (obj): Add $(DBUS_OBJ).
10033 (LIBES): Add $(DBUS_LIBS).
10034 (dbusbind.o): New target.
10035
10036 * dbusbind.c: New file.
10037
10038 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
10039
10040 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
a0a3805c 10041 (Qdbus_event): New Lisp symbol.
033b73e2 10042 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
87df3c32 10043 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
033b73e2
MA
10044 (keys_of_keyboard ): Define dbus-event.
10045
10046 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
10047
39d0bf74
RS
100482007-12-01 Richard Stallman <rms@gnu.org>
10049
10050 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
10051
f3157c65
JR
100522007-11-30 Jason Rumney <jasonr@gnu.org>
10053
10054 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
10055 (w32con_reset_terminal_modes): Clear screen buffer.
f1e8dcf1
JR
10056 (w32_face_attributes): Don't use color indexes that are out of range.
10057 Only reverse the default colors.
f3157c65
JR
10058
10059 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
10060 WINDOWSNT.
10061
10062 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
10063
b510360c
JR
100642007-11-29 Jason Rumney <jasonr@gnu.org>
10065
10066 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
10067 (w32_face_attributes): Use Vtty_defined_color_alist to determine
10068 if the terminal colors are initialized.
10069 (unspecified_fg, unspecified_bg): Remove unused declarations.
10070
4b7ab1c4
AS
100712007-11-29 Andreas Schwab <schwab@suse.de>
10072
10073 * keyboard.c (apply_modifiers): Fix typo.
10074
4bb6c266
RS
100752007-11-29 Richard Stallman <rms@gnu.org>
10076
10077 * keymap.c (Fcurrent_local_map): Doc fix.
10078
aa44cd84
GM
100792007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
10080
10081 * s/gnu-kfreebsd.h: New file.
10082
21ec2c43
SM
100832007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
10084
cc648cef
SM
10085 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
10086 Don't cast redundantly.
10087
21ec2c43
SM
10088 * keyboard.c (KEY_TO_CHAR): New macro.
10089 (parse_modifiers, apply_modifiers): Accept integer arguments.
10090 (read_key_sequence): Use them to unify the "shift->unshift" mapping
10091 for chars and symbol keys.
10092 After doing such remapping, apply function-key-map again.
10093
73e72da4
DN
100942007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
10095
10096 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
10097 compiled anymore.
10098
254693ff
AS
100992007-11-26 Andreas Schwab <schwab@suse.de>
10100
10101 * process.c (list_processes_1): Fix indentation level of the
10102 command column.
10103
ff6e6ac8
AS
101042007-11-23 Andreas Schwab <schwab@suse.de>
10105
10106 * editfns.c (Fformat): Handle %c specially since it requires the
10107 argument to be of type int.
10108
f7cf8b20
SM
101092007-11-23 Markus Triska <markus.triska@gmx.at>
10110
10111 * emacs.c (main): Call init_editfns before init_process, since
2a2e8de7 10112 init_process sets Vprocess_connection_type depending on OS release.
f7cf8b20 10113
569c11e3
SM
101142007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
10115
8787dd73
SM
10116 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
10117 (find_symbol_value): Use do_symval_forwarding.
10118
569c11e3
SM
10119 * data.c (set_internal): Set the value in the `cons-cell' (for
10120 Buffer_Local_values) not only for frame-local variables.
10121
6af1696d
AS
101222007-11-22 Andreas Schwab <schwab@suse.de>
10123
10124 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
10125 values to sprintf.
10126 * keymap.c (Fsingle_key_description): Likewise.
10127 * print.c (print_object): Likewise.
10128
880820fe 101292007-11-22 Jan Djärv <jan.h.d@swipnet.se>
d4ad8c04
JD
10130
10131 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
10132 file for image is nil.
10133
7c401d15
DN
101342007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
10135
10136 * term.c: Include stdarg.h.
569c11e3 10137 (fatal): Implement using varargs.
a0a3805c 10138 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
7c401d15 10139
64e16c3c
SM
101402007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
10141
10142 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
10143 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
10144 Update call to buffer_slot_type_mismatch.
10145 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
10146 (buffer_slot_type_mismatch): Update.
10147 * buffer.c (buffer_local_types): Remove.
10148 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
10149 (defvar_per_buffer): Set the type in the buffer_objfwd.
10150
d4aa48db 101512007-11-21 Jason Rumney <jasonr@gnu.org>
5f42a7eb 10152
64e16c3c
SM
10153 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
10154 CreateFileMapping returns NULL on failure.
5f42a7eb 10155
d4aa48db 101562007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
048addec 10157
d4aa48db
MB
10158 * search.c (Fset_match_data): Remove the `evaporate' feature.
10159 (unwind_set_match_data): Don't use the `evaporate' feature.
437dfb9f 10160
bdae0540
JR
101612007-11-21 Jason Rumney <jasonr@gnu.org>
10162
10163 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
10164
10165 * w32console.c (w32con_write_glyphs): Remove unused variables.
10166
202c09a8
DN
101672007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
10168
b951420f
DN
10169 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
10170
202c09a8
DN
10171 * s/darwin.h (MULTI_KBOARD): Remove.
10172
10173 * macfns.c (x_create_tip_frame, Fx_create_frame)
10174 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
10175
bae72c12
SM
101762007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
10177
e7c10f83
SM
10178 * buffer.c (Fbuffer_local_value): Remove redundant test.
10179 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
10180 than in `current-buffer' to match the comment.
10181 Do the swap using swap_in_global_binding.
10182
136eb6ed
SM
10183 * data.c (store_symval_forwarding, set_internal):
10184 * eval.c (specbind): Remove dead code.
10185
bae72c12
SM
10186 * coding.c (detect_coding, Fupdate_coding_systems_internal):
10187 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
10188 Since we do not want to see internal Lisp_*fwd objects here.
10189
880820fe 101902007-11-18 Jan Djärv <jan.h.d@swipnet.se>
95fbaefc 10191
3d66b985
JD
10192 * sysdep.c (init_system_name): Use getaddrinfo if available.
10193
95fbaefc
JD
10194 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
10195 (x_scroll_bar_note_movement): start, end, with, height in struct
10196 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
10197
6c1d8cb6
DN
101982007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
10199
10200 * puresize.h (BASE_PURESIZE): Increase to 1190000.
10201
30f95089
SM
102022007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
10203
66b04bd4
SM
10204 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
10205 This undoes Richard's change of 14-Oct-2002.
10206
6d3f2bb2
SM
10207 * alloc.c (allocate_other_vector):
10208 * lisp.h (allocate_other_vector): Remove.
10209
b05b4e27
SM
10210 * window.c (struct save_window_data): Move non-lisp data to the end
10211 and make it `int' rather than Lisp_Object.
10212 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
10213 Done wrap/unwrap integer values.
10214 (Fset_window_configuration, compare_window_configurations):
10215 Update use of fields to their new types.
10216
056ce195
SM
10217 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
10218 Turn integer fields into `int'. Merge x_window_low and x_window_high.
10219 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
10220 (SET_SCROLL_BAR_X_WINDOW): Remove.
10221 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
10222 Access the new x_window field directly.
10223 * xterm.c (x_scroll_bar_create): Use a pseudovector.
10224 Don't wrap/unwrap integers into Lisp_Objects.
10225 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
10226 (x_scroll_bar_report_motion):
10227 Don't wrap/unwrap integers into Lisp_Objects.
10228 (x_term_init): Use SDATA.
10229 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
10230 (x_scroll_bar_set_handle, x_scroll_bar_remove)
10231 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
10232 (x_scroll_bar_report_motion, x_scroll_bar_clear):
10233 * xfns.c (x_set_background_color):
10234 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
10235 Access the new x_window field directly.
10236
30f95089
SM
10237 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
10238 (allocate_pseudovector): Make non-static.
6d3f2bb2 10239
30f95089
SM
10240 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
10241 (allocate_pseudovector): Declare.
6f69e89b 10242 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
30f95089 10243
9b6112e8
AS
102442007-11-15 Andreas Schwab <schwab@suse.de>
10245
30f95089
SM
10246 * editfns.c (Fformat): Correctly format EMACS_INT values.
10247 Also take precision into account when formatting an integer.
0f860bd7 10248
9b6112e8
AS
10249 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
10250
262fcd41
SM
102512007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
10252
58da34c7
SM
10253 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
10254 (syms_of_keyboard): Defsubr it.
10255
262fcd41
SM
10256 * data.c (swap_in_global_binding): Fix longstanding bug where
10257 store_symval_forwarding was not called with the right second argument,
10258 thus causing objfwd-ing from being dropped.
10259
d29a9848
JB
102602007-11-14 Juanma Barranquero <lekktu@gmail.com>
10261
10262 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
10263 (Fx_display_pixel_height, Fx_display_planes)
10264 (Fx_display_color_cells, Fx_server_max_request_size)
10265 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
10266 (Fx_display_visual_class, Fx_display_save_under):
10267 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
10268 (Fx_display_pixel_height, Fx_display_planes)
10269 (Fx_display_color_cells, Fx_server_max_request_size)
10270 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
10271 (Fx_display_mm_height, Fx_display_mm_width)
10272 (Fx_display_backing_store, Fx_display_visual_class)
10273 (Fw32_select_font, Fx_display_save_under):
10274 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
10275 (Fx_display_pixel_height, Fx_display_planes)
10276 (Fx_display_color_cells, Fx_server_max_request_size)
10277 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
10278 (Fx_display_save_under): Fix typos in docstrings.
10279
74084731
JB
102802007-11-14 Juanma Barranquero <lekktu@gmail.com>
10281
10282 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
10283 corresponding to deleted entries; they are an implementation detail.
10284 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
10285 Remove variables.
10286 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
10287 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
10288 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
10289 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
10290 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
d29a9848 10291 (Fw32_define_rgb_color, Fw32_load_color_file)
74084731 10292 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
02b39a28
JB
10293 Fix typos in docstrings.
10294 (Fx_server_version): Reflow docstring.
10295 (Fw32_shell_execute): Doc fixes.
74084731 10296
fb053a1f
JB
102972007-11-13 Juanma Barranquero <lekktu@gmail.com>
10298
10299 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
10300 if w32_parse_hot_key returned nil.
10301
a457417e 103022007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
9ec1bdb6 10303
a457417e 10304 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
9ec1bdb6 10305
4b219faa
JR
103062007-11-09 Jason Rumney <jasonr@gnu.org>
10307
10308 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
10309
10310 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
10311
10312 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
10313 Remove W32_SCROLL_BAR_CLICK_EVENT.
10314
10315 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
10316 Add MULTIMEDIA_KEY_EVENT.
10317
10318 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
10319 (lispy_multimedia_keys) [WINDOWSNT]: New array.
10320 (make_lispy_event) [WINDOWSNT]: Use it to translate
10321 MULTIMEDIA_KEY_EVENT.
10322
10323 * w32term.h (WM_APPCOMMAND): Define if not already.
10324 (GET_APPCOMMAND_LPARAM): Likewise.
10325
10326 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
10327 WM_APPCOMMAND.
10328
10329 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
10330 (syms_of_w32fns): Export and initialize it.
10331 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
10332
c12ecb0a 103332007-11-09 Chong Yidong <cyd@stupidchicken.com>
d388d2ac
CY
10334
10335 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
10336 twice.
10337
10338 * xdisp.c (handle_face_prop): Fix last change.
10339
c12ecb0a 103402007-11-09 Richard Stallman <rms@gnu.org>
048addec 10341
c12ecb0a
MB
10342 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
10343 not just for after-strings and before-strings.
10344 Call face_for_overlay_string and pass the overlay to it.
10345 (handle_display_prop): Determine whether property came from an overlay.
10346 Pass OVERLAY arg to handle_single_display_spec.
10347 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
10348 (load_overlay_strings): Fill in it->string_overlays.
10349 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
b5cb6072 10350
c12ecb0a
MB
10351 * xfaces.c (face_for_overlay_string): Function renamed from
10352 face_at_buffer_position_no_overlays, and add arg OVERLAY.
b5cb6072 10353
c12ecb0a
MB
10354 * dispextern.h (struct it): New elt string_overlays.
10355 New elt from_overlay, also in stack.
10356 Rearrange a few elements.
10357 (face_for_overlay_string): Decl renamed from
10358 face_at_buffer_position_no_overlays, and add argument.
15fff01d 10359
c12ecb0a 103602007-11-09 Richard Stallman <rms@gnu.org>
0065bb74 10361
c12ecb0a
MB
10362 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
10363 to get the base face for an overlay string.
0d8466cc 10364
c12ecb0a 10365 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
15fff01d 10366
c12ecb0a 10367 * xfaces.c (face_at_buffer_position_no_overlays): New function.
2fae9111 10368
c12ecb0a 10369 * xdisp.c (handle_stop): Move some code out of loop.
2d6c1fc0 10370
c12ecb0a 103712007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
07025a55 10372
c12ecb0a
MB
10373 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
10374 Fix conversion from Lisp object to ATSUFontID.
07025a55 10375
c12ecb0a 103762007-11-09 Jason Rumney <jasonr@gnu.org>
07025a55 10377
c12ecb0a 10378 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
3a232704 10379
c12ecb0a 103802007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
539e92ad 10381
c12ecb0a
MB
10382 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
10383 Don't assume regions are aligned to page boundary.
10384 (print_load_command_name): Add LC_UUID if defined.
3a232704 10385
c12ecb0a 103862007-11-09 Richard Stallman <rms@gnu.org>
0cb8bb48 10387
c12ecb0a 10388 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
539e92ad 10389
b8ddfbcc
JR
103902007-11-07 Jason Rumney <jasonr@gnu.org>
10391
10392 * s/windows95.h: Remove.
10393
880820fe 103942007-11-06 Jan Djärv <jan.h.d@swipnet.se>
e624c3f9
JD
10395
10396 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
10397 abort with a message on unhandled store_type values.
10398
880820fe 103992007-11-01 Jan Djärv <jan.h.d@swipnet.se>
ac1278c1
JD
10400
10401 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
10402 Remove HAVE_X11R5 and HAVE_X11R4.
10403
04a697fe
DN
104042007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
10405
10406 * Makefile.in: Remove references to sunfns.c and sunfns.o.
10407
880820fe 104082007-11-01 Johan Bockgård <bojohan@gnu.org>
56dad874
GM
10409
10410 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
fb053a1f 10411 Don't set s->stippled_p here, since it has already been set by
56dad874
GM
10412 x_set_glyph_string_gc from x_draw_glyph_string.
10413
07e5c0b0
DN
104142007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
10415
2a2e8de7 10416 * sunfns.c: Remove file.
07e5c0b0
DN
10417
10418 * m/sun386.h:
10419 * m/sun2.h:
10420 * m/sparc.h: Remove Sun windows code.
10421
1bc973c2
SM
104222007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
10423
10424 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
10425 (init_keyboard): Set current_kboard's window-system to nil.
10426 (tty_read_avail_input): Typo.
10427 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
10428
c22140f6
DN
104292007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
10430
10431 * s/usg5-4.h:
10432 * s/usg5-3.h:
10433 * s/ptx.h:
10434 * m/is386.h:
10435 * m/ibmps2-aix.h:
2a2e8de7 10436 * Makefile.in: Remove all mentions of X10.
c22140f6
DN
10437
10438 * dispnew.c (syms_of_display): Don't mention version 10.
10439
660a8219
JB
104402007-10-28 Juanma Barranquero <lekktu@gmail.com>
10441
10442 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
10443 ($(BLD)/abbrev.$(O)): Remove.
10444
e047f448
SM
104452007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
10446
10447 Rewrite abbrev.c in Elisp.
10448 * image.c (Qcount): Don't declare as extern.
10449 (syms_of_image): Initialize and staticpro `Qcount'.
10450 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
10451 * emacs.c (main): Don't call syms_of_abbrev.
10452 * Makefile.in (obj): Remove abbrev.o.
10453 (abbrev.o): Remove.
10454 * abbrev.c: Remove.
10455
67b73e3a
MR
104562007-10-26 Martin Rudalics <rudalics@gmx.at>
10457
10458 * window.c (window_min_size_2): Don't count header-line.
10459
e3d7bd83
DN
104602007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
10461
10462 * frame.h (struct frame): Move all bit fields after the first bit
660a8219 10463 field to take advantage of the available space. Group all the
e3d7bd83
DN
10464 chars together to reduce wasted space due to padding.
10465
a3547743
JB
104662007-10-26 Juanma Barranquero <lekktu@gmail.com>
10467
e298936f
JB
10468 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
10469
d3d47262
JB
10470 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
10471 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
10472 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
10473 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
10474 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
10475 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
10476 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
10477 (last_marked, mark_object_loop_halt): Make static.
10478
a3547743
JB
10479 * frame.c (syms_of_frame) <delete-frame-functions>:
10480 Fix typo in docstring.
10481
14c71d8b
JB
104822007-10-25 Juanma Barranquero <lekktu@gmail.com>
10483
10484 * w32.c (init_environment): Fix tiny memory leak.
66199f74 10485 (w32_get_resource): Remove unused variable `ok'.
14c71d8b 10486
70b8d0a4
SM
104872007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
10488
10489 Make `window-system' into a keyboard-local variable (rather than
10490 frame-local as done originally by multi-tty).
10491
10492 * keyboard.h (struct kboard): Add Vwindow_system.
10493 * keyboard.c (init_kboard): Set a default for Vwindow_system.
10494 (mark_kboards): Mark Vwindow_system.
10495
10496 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
10497 (init_display): Don't set the obsolete `window-system' frame-param.
10498
10499 * xterm.c (x_term_init):
10500 * w32term.c (w32_create_terminal):
10501 * term.c (init_tty): Set Vwindow_system.
10502 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
10503 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
10504
10505 * xfns.c (Fx_create_frame, x_create_tip_frame):
10506 * w32fns.c (Fx_create_frame, x_create_tip_frame):
10507 * macfns.c (Fx_create_frame):
10508 Don't set the obsolete `window-system' frame-param.
10509
10510 * frame.h (Qwindow_system): Remove.
10511 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
10512 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
10513
fdc90613 105142007-10-24 Richard Stallman <rms@gnu.org>
4521d1fc 10515
fdc90613
MB
10516 * frame.c (x_figure_window_size): For fullscreen case,
10517 set USPosition | PPosition without clobbering rest of window_prompting.
7c75be36 10518
fdc90613 10519 * keyboard.c (Fcurrent_idle_time): Doc fix.
4521d1fc 10520
fdc90613 10521 * print.c (Fwith_output_to_temp_buffer): Doc fix.
4521d1fc 10522
7357cb04
SM
105232007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
10524
98228e72
SM
10525 * process.c (unwind_request_sigio): Only define if __ultrix__.
10526
1baf6db9
SM
10527 * callproc.c (child_setup): Remove spurious *.
10528
4d0ac3d7
SM
10529 * lisp.h (Fget_text_property): Declare.
10530 (have_menus_p): Declare it here rather than in sys-dep header files.
10531 * macterm.h (have_menus_p):
10532 * msdos.h (have_menus_p):
10533 * xterm.h (have_menus_p): Remove.
10534
7357cb04
SM
10535 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
10536 (Fmake_variable_frame_local): Just check the variable's const-ness
10537 rather than checking nil or t.
10538
866e6dd6
JR
105392007-10-22 Jason Rumney <jasonr@gnu.org>
10540
b00afeae
JR
10541 * w32fns.c: Include math.h.
10542 (w32_abort): Declaration moved to nt/config.nt.
0f7f11b7 10543
c8f7c76b
JR
10544 * s/ms-w32.h (HAVE_STDLIB_H): Define.
10545 (abort): Redefinition moved to nt/config.nt.
10546
866e6dd6
JR
10547 * m/windowsnt.h: Remove.
10548
e79beb56
JB
105492007-10-22 Juanma Barranquero <lekktu@gmail.com>
10550
10551 * emacs.c (Fdump_emacs): Fix typo in message.
10552 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
10553 <installation-directory>: Reflow docstring.
10554
fb30dfd2
JL
105552007-10-22 Juri Linkov <juri@jurta.org>
10556
10557 * minibuf.c: Allow minibuffer default to be a list of default values.
10558 With empty input use the first element of this list as returned default.
e79beb56 10559 (string_to_object)
0f7f11b7 10560 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
fb30dfd2
JL
10561 (read_minibuf): If defalt is cons, set histstring to its car.
10562 (Fread_string): If default_value is cons, set val to its car.
10563 (Fread_buffer): If def is cons, use its car.
10564 (Fcompleting_read): If defalt is cons, set val to its car.
10565
1f163f28
MA
105662007-10-21 Michael Albinus <michael.albinus@gmx.de>
10567
10568 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
10569
db3534c3
JB
105702007-10-20 Juanma Barranquero <lekktu@gmail.com>
10571
10572 * doc.c (Fdocumentation): Check for advice in all cases.
10573
c6f18a07
CY
105742007-10-19 Chong Yidong <cyd@stupidchicken.com>
10575
10576 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
10577
2a1534d3
RS
105782007-10-19 Richard Stallman <rms@gnu.org>
10579
10580 * doc.c (Fdocumentation): Check for and handle an advised function.
10581
7b82c3b6
JB
105822007-10-19 Juanma Barranquero <lekktu@gmail.com>
10583
10584 * process.c (Fset_process_filter): Doc fix.
10585
3278f20e
SM
105862007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
10587
10588 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
10589 which caused key-translation-map to applied repeatedly (thus breaking
10590 double-mode).
10591
99784d63
SM
105922007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
10593
10594 * xselect.c (x_own_selection, x_handle_selection_clear)
10595 (x_clear_frame_selections):
10596 * w32menu.c (list_of_panes, list_of_items):
10597 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
10598 * textprop.c (validate_plist, interval_has_all_properties)
10599 (interval_has_some_properties, interval_has_some_properties_list)
10600 (add_properties, text_property_list):
10601 * process.c (Fget_buffer_process, list_processes_1, status_notify):
10602 * minibuf.c (Fassoc_string):
10603 * macselect.c (x_own_selection, x_clear_frame_selections)
10604 (Fx_disown_selection_internal):
10605 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
10606 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
10607
44bb704d
CY
106082007-10-17 Chong Yidong <cyd@stupidchicken.com>
10609
10610 * process.c: Link to libs for calling res_init() if available.
10611 (Fmake_network_process): Call res_init() before getaddrinfo or
10612 gethostbyname, if possible.
10613
d314756e
SM
106142007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
10615
2504022a
SM
10616 * lread.c (read1): Set pvectype for char_tables.
10617
19fa82b9
SM
10618 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
10619 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
10620 Add type checks.
10621 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
10622
d314756e
SM
10623 * alloc.c (free_misc): Use XMISCTYPE.
10624 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
10625
94b9aaa2
GM
106262007-10-17 Glenn Morris <rgm@gnu.org>
10627
10628 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
10629 (syms_of_minibuf): Add Qcompletion_ignore_case.
10630 * dired.c (Qcompletion_ignore_case): Change to external.
10631 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
10632 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
10633 (Fread_file_name): Use it rather than intern'ing.
10634
10635 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
10636 (Fread_coding_system): Ignore case of user input.
10637
da6658e8
YM
106382007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10639
10640 * xdisp.c (handle_display_prop): Ignore display specs after
10641 replacing one when string text is being replaced.
10642 (handle_single_display_spec): Pretend as if characters with display
10643 property haven't been consumed only when buffer text is being replaced.
10644
11fb4bdb
SM
106452007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
10646
9beb8baa
SM
10647 * xfns.c (Fx_create_frame, Fx_display_list):
10648 * window.c (window_fixed_size_p, enlarge_window)
10649 (shrink_window_lowest_first):
10650 * macterm.c (init_font_name_table):
10651 * macfns.c (Fx_create_frame, Fx_display_list):
10652 * lread.c (close_load_descs):
10653 * keyboard.c (read_char_x_menu_prompt):
10654 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
10655 * coding.c (code_convert_region_unwind): Test the type of an object
10656 rather than just !NILP before extracting data from it.
10657
d3f41ff5
SM
10658 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
10659
67ee9f6e
SM
10660 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
10661 (XMISCANY): New macro.
10662 (XMISCTYPE): Use it.
10663 (struct Lisp_Misc_Any): New type.
10664 (union Lisp_Misc): Use it.
10665 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
10666 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
10667 (find_symbol_value, set_internal, default_value, Fset_default)
10668 (Fmake_variable_buffer_local, Fmake_local_variable)
10669 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
10670 (Flocal_variable_if_set_p, Fvariable_binding_locus):
10671 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
10672 * alloc.c (allocate_buffer): Set the size and tag.
10673 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
10674 Use XMISCANY.
10675 (die): Follow the GNU convention for error messages.
10676 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
10677 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
10678 tag any more.
10679 (set_buffer_internal_1):
10680 * frame.c (store_frame_param):
10681 * eval.c (specbind):
10682 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
10683
11fb4bdb
SM
10684 * doc.c (Fsnarf_documentation): Simplify.
10685
decb374a
JB
106862007-10-14 Juanma Barranquero <lekktu@gmail.com>
10687
10688 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
10689 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
10690
b5a40ee7
SM
106912007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
10692
10693 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
10694
35277b03
JB
106952007-10-14 Juanma Barranquero <lekktu@gmail.com>
10696
10697 * eval.c (do_autoload): Don't save autoloads.
10698
10699 * data.c (Ffset): Save autoload of the function being set.
10700
35fdaa62
GM
107012007-10-07 John Paul Wallington <jpw@pobox.com>
10702
10703 * xfns.c (x_create_tip_frame): Set the `display-type' frame
10704 parameter before setting up faces.
10705
1ea40aa2
EZ
107062007-10-13 Eli Zaretskii <eliz@gnu.org>
10707
35fdaa62 10708 * ccl.c (Fregister_code_conversion_map):
96a5affb
EZ
10709 * keyboard.c (append_tool_bar_item): Reformat last change.
10710
1ea40aa2
EZ
10711 * lisp.h (eabs): Rename from `abs'. All callers changed.
10712
35277b03 107132007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
71d00ce4
EZ
10714
10715 * buffer.c (add_overlay_mod_hooklist):
10716 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
10717 * fontset.c (make_fontset):
10718 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
10719 (append_tool_bar_item):
10720 * macmenu.c (grow_menu_items):
35fdaa62 10721 * w32menu.c (grow_menu_items):
71d00ce4 10722 * xmenu.c (grow_menu_items): Use larger_vector.
35fdaa62 10723
bc82f120
EZ
107242007-10-13 Eli Zaretskii <eliz@gnu.org>
10725
10726 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
10727 selected frame'' on MSDOS).
10728
d57d5a78
MR
107292007-10-12 Martin Rudalics <rudalics@gmx.at>
10730
10731 * frame.c (Qexplicit_name): New variable.
10732 (x_report_frame_params): Report it in parameter alist.
10733 (syms_of_frame): Intern and staticpro it.
10734
35277b03 107352007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
04710ebd
JR
10736
10737 * macfns.c (x_create_tip_frame): Set terminal for frame.
10738
c7a4b95b
SM
107392007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
10740
26f9c7b7
SM
10741 * frame.c (Qenvironment): Remove.
10742 (syms_of_frame) <Qenvironment>: Don't initialize.
10743 (Fdelete_frame): Don't treat the `environment' param specially.
10744 * frame.h (Qenvironment): Don't declare.
10745 * callproc.c (set_initial_environment): Don't set unused frame param.
10746
c7a4b95b
SM
10747 * frame.c (Fframe_with_environment): Remove.
10748 (syms_of_frame) <Sframe_with_environment>: Don't declare.
26f9c7b7 10749
c7a4b95b
SM
10750 * lisp.h (Fframe_with_environment): Don't declare.
10751
c86f7377
JB
107522007-10-10 Juanma Barranquero <lekktu@gmail.com>
10753
10754 * indent.c (indent_tabs_mode, last_known_column)
10755 (last_known_column_modified): Make static.
10756 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
10757
d1b3a122
KY
107582007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
10759
10760 * puresize.h (BASE_PURESIZE): Increase to 1170000.
10761
d57d5a78
MR
107622007-10-09 Jason Rumney <jasonr@gnu.org>
10763
10764 * w32term.c (x_set_window_size): Disable code that attempts to tell
10765 Lisp code about a size change before it actually happens.
10766
81d3d428 107672007-10-09 Richard Stallman <rms@gnu.org>
91175673 10768
81d3d428
MB
10769 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
10770 return HANDLED_RETURN.
91175673 10771
1af74d06 107722007-10-08 Martin Rudalics <rudalics@gmx.at>
4f1b1854 10773
1af74d06
MB
10774 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
10775 when there's an unread command event.
e0fead5d 10776
c7a4b95b 10777 * frame.c (focus_follows_mouse): Move here from frame.el to allow
1af74d06
MB
10778 window autoselection act appropriately when leaving selected frame.
10779 (syms_of_frame): Initialize focus_follows_mouse.
10780 * frame.h (focus_follows_mouse): Extern it.
10781 * macterm.c (XTread_socket): When focus_follows_mouse is nil
c7a4b95b 10782 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
1af74d06
MB
10783 * msdos.c (dos_rawgetc): Likewise.
10784 * w32term.c (w32_read_socket): Likewise.
10785 * xterm.c (handle_one_xevent): Likewise.
10786 * xdisp.c (syms_of_xdisp): In doc-string of
10787 mouse-autoselect-window mention focus-follows-mouse.
e0fead5d 10788
1af74d06 107892007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
e0fead5d 10790
1af74d06
MB
10791 * macterm.c (mac_load_query_font): Fix missing return value.
10792 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
10793 Add BLOCK_INPUT.
c186cdb3 10794
1af74d06 107952007-10-08 Richard Stallman <rms@gnu.org>
c186cdb3 10796
1af74d06
MB
10797 * xdisp.c (get_window_cursor_type): Implement documented behavior
10798 for cursor-in-non-selected-windows = t.
c186cdb3 10799
1af74d06 108002007-10-08 Jason Rumney <jasonr@gnu.org>
c186cdb3 10801
1af74d06 10802 * w32.c (w32_get_resource): Always close registry keys.
58cfce98 10803
1af74d06 108042007-10-08 Jason Rumney <jasonr@gnu.org>
58cfce98 10805
1af74d06 10806 * makefile.w32-in (LIBS): Add COMCTL32.
62854fe2 10807
1af74d06 10808 * w32fns.c (globals_of_w32fns): Init common controls.
62854fe2 10809
1af74d06 108102007-10-08 Richard Stallman <rms@gnu.org>
656f46bb 10811
c7a4b95b 10812 * image.c (our_memory_buffer): Rename from omfib_buffer.
656f46bb 10813
1af74d06 108142007-10-08 Richard Stallman <rms@gnu.org>
656f46bb 10815
1af74d06 10816 * buffer.c (Foverlays_at): Doc fix.
036e218d 10817
1af74d06 108182007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
036e218d 10819
1af74d06 10820 * fns.c (Fplist_put): Preserve uneven tail data.
7ddb2c16 10821
1af74d06 108222007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
7ddb2c16 10823
1af74d06 10824 * termhooks.h (enum event_kind): Remove trailing comma.
ace9b298 10825
1af74d06 10826 * frame.h (enum): Remove trailing comma.
90647b07 10827
8993ad2e 108282007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
90647b07 10829
1af74d06 10830 * w32proc.c (delete_child): Don't terminate threads of zombies.
ace9b298 10831
1af74d06 108322007-10-08 Martin Rudalics <rudalics@gmx.at>
ace9b298 10833
1af74d06 10834 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
ace9b298 10835
1af74d06
MB
10836 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
10837 last-repeatable-command.
10838 (init_kboard): Initialize Vlast_repeatable_command.
10839 (command_loop_1): Set it to real_this_command unless that was
10840 bound to an input event.
10841 (mark_kboards): Mark it.
9fbc32aa 10842
1af74d06 108432007-10-08 Richard Stallman <rms@gnu.org>
036e218d 10844
1af74d06 10845 * eval.c (condition-case): Doc fix.
9fbc32aa 10846
1af74d06 108472007-10-08 Masatake YAMATO <jet@gyve.org>
9fbc32aa 10848
1af74d06
MB
10849 * xfaces.c (tty_supports_face_attributes_p): Fix code
10850 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
10851 was copied and not edited.
9fbc32aa 10852
beb9f745
SM
108532007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
10854
c86f7377 10855 Add new `input-decode-map' keymap and use it for terminal
4f4a84ec
SM
10856 escape sequences.
10857 * keyboard.h (struct kboard): Add Vinput_decode_map.
10858 Remove Vlocal_key_translation_map.
10859 * keyboard.c (read_key_sequence): Add support for input-decode-map.
10860 (init_kboard): Init input-decode-map.
10861 Replace local-key-translation-map back with key-translation-map.
10862 (syms_of_keyboard): Declare input-decode-map.
10863 Remove local-key-translation-map. Update docstrings.
10864 (mark_kboards): Mark Vinput_decode_map.
10865 Don't mark Vlocal_key_translation_map.
10866 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
10867 Replace local-key-translation-map back with key-translation-map.
10868 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
10869 Bind in input-decode-map rather than function-key-map.
10870
beb9f745
SM
10871 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
10872 This was made redundant by the previous introduction of XSETPVECTYPE.
10873
65342ae3
RS
108742007-10-09 Richard Stallman <rms@gnu.org>
10875
beb9f745 10876 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
65342ae3
RS
10877
108782007-09-29 Richard Stallman <rms@gnu.org>
10879
10880 * eval.c (internal_condition_case_2, internal_condition_case_1)
10881 (internal_condition_case): Reenable abort if x_catching_errors ()
10882 to see if that really happens and why.
10883
6cff77fd
AS
108842007-10-06 Andreas Schwab <schwab@suse.de>
10885
10886 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
10887
bbe6f2aa
JB
108882007-10-04 Juanma Barranquero <lekktu@gmail.com>
10889
10890 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
10891
a390930c
SM
108922007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
10893
10894 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
10895
d6aa1876
SM
108962007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
10897
d0fdb6da
SM
10898 * window.h (struct window):
10899 * window.c (struct save_window_data, struct saved_window):
10900 * termhooks.h (struct terminal):
10901 * process.h (struct Lisp_Process):
10902 * frame.h (struct frame):
10903 * buffer.h (struct buffer):
10904 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
10905 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
10906 The size field of (pseudo)vectors is now unsigned.
10907 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
10908
878f97ff
SM
10909 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
10910 Turn `count' into an integer.
d0fdb6da 10911
878f97ff
SM
10912 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
10913 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
10914 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
10915 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
10916 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
10917
d2029e5b
SM
10918 * alloc.c (allocate_pseudovector): New fun.
10919 (ALLOCATE_PSEUDOVECTOR): New macro.
10920 (allocate_window, allocate_terminal, allocate_frame)
10921 (allocate_process): Use it.
10922 (mark_vectorlike): New function.
10923 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
10924 (mark_terminals): Use it.
10925 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
10926 (Fmake_byte_code): Use XSETPVECTYPE.
10927
10928 * frame.c (Fframe_parameters): Minor simplification.
10929
10930 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
10931
10932 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
10933
10934 * buffer.c (Fget_buffer_create, init_buffer_once):
10935 * lread.c (defsubr):
10936 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
10937
10938 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
10939 defined differently in the m/*.h files.
10940 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
10941 (XSETPVECTYPE): New macro.
10942 (XSETPSEUDOVECTOR): Use it.
10943
d6aa1876
SM
10944 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
10945 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
d2029e5b 10946
d6aa1876
SM
10947 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
10948 * lread.c (defvar_per_buffer):
10949 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
10950
10951 * window.c (candidate_window_p): Only consider as visible frames that
10952 are on the same terminal.
10953
10954 * m/ibms390x.h (MARKBIT): Remove unused macro.
10955
88852d45
JB
109562007-10-01 Juanma Barranquero <lekktu@gmail.com>
10957
10958 * lread.c (Fload): Fix typo in docstring.
10959
880820fe 109602007-10-01 Michaël Cadilhac <michael@cadilhac.name>
2742fe30
MC
10961
10962 * floatfns.c (Fexpt): Manually check for overflows, so that a power
10963 of a non-zero value can't yield zero.
10964
ed0c79c6
SM
109652007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
10966
b870aa61
SM
10967 * term.c (term_clear_mouse_face, term_mouse_highlight)
10968 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
10969
4c37a414
SM
10970 * print.c (safe_debug_print): Use XHASH.
10971
b9466edb
SM
10972 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
10973 Lisp elements such as tags.
10974 (XHASH): New macro.
10975 (EQ): Use it.
10976 (SREF, SSET, STRING_COPYIN): Use SDATA.
10977 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
10978
9c545a55
SM
10979 * alloc.c (mark_terminal): Remove left-over declaration.
10980 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
10981 (allocate_vectorlike): Remove type argument. Adjust callers.
10982 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
10983 Only handle the one remaining MEM_TYPE_VECTORLIKE.
10984
dafc79fa
SM
10985 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
10986 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
10987 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
10988 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
10989 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
10990 Use them.
10991
ed0c79c6
SM
10992 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
10993 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
10994 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
10995
3c81afd4
DN
109962007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
10997
10998 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
10999 loaded by default.
11000
6178ce5e
SM
110012007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
11002
4ce5ab77
SM
11003 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
11004 on this tty.
11005 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
11006
6178ce5e
SM
11007 * term.c (mouse_face_window): Rename from Qmouse_face_window.
11008 Update all users.
11009 (handle_one_term_event): Use Gpm_DrawPointer.
11010 (Fgpm_mouse_start): Rename from Fterm_open_connection.
11011 Signal errors instead of returning nil. Always return nil.
11012 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
11013 Make it a noop if gpm-mouse was not activated.
11014 (syms_of_term): Update names.
11015
bdf5f8ef
SM
110162007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
11017
75a8734b
SM
11018 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
11019 (init_sys_modes): Check that gpm_tty is the current tty.
11020
13559ee0
SM
11021 * alloc.c (allocate_terminal): Set the vector size to only count the
11022 lisp fields. Initialize those to nil.
11023 (mark_object): Don't treat terminals specially.
11024 (mark_terminal): Remove.
11025 (mark_terminals): Use mark_object instead.
11026
ff16b875
SM
11027 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
11028 the GC to the beginning.
11029
83155776
SM
11030 * indent.h:
11031 * indent.c: Use EMACS_INT for ints coming from Elisp data.
11032
bdf5f8ef
SM
11033 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
11034
ec8705b6
JR
110352007-09-25 Jason Rumney <jasonr@gnu.org>
11036
11037 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
11038
11039 * w32console.c (create_w32cons_output): Remove.
11040
11041 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
11042
11043 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
11044 (reset_sys_modes): Use reset_terminal_modes_hook.
11045
7351b242
SM
110462007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
11047
11048 * eval.c (do_autoload): Don't output any message.
11049
16706228
JL
110502007-09-24 Juri Linkov <juri@jurta.org>
11051
11052 * emacs.c (standard_args): Change priority of "--no-splash"
11053 from 40 to 3. Add "--no-desktop" with the same priority.
11054
3ae2e3a3
RS
110552007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
11056
11057 * alloc.c (gc_sweep): Check cons cell mark bits word by word
11058 and optimize the case where they are all 1.
11059
7a58fb43
GM
110602007-09-23 Johannes Weiner <hannes@saeurebad.de>
11061
3ae2e3a3
RS
11062 * lisp.h (abs): Define if not defined.
11063 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
11064 Don't define `abs', since it's defined in lisp.h.
7a58fb43 11065
78048085
EZ
110662007-09-22 Eli Zaretskii <eliz@gnu.org>
11067
c7a4b95b 11068 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
78048085
EZ
11069 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
11070 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
11071 (init_tty): Use DEV_TTY instead of "/dev/tty".
11072 [WINDOWSNT]: No need to protect from NAME arg being null.
11073
23d4cba5
DN
110742007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
11075
11076 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
11077 up the tty state.
11078
71f44e7a
SM
110792007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
11080
11081 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
11082 (gpm_tty): Change its type.
11083 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
11084 (gpm_tty): Change its type and initialize it.
11085 (Fterm_open_connection): Check the frame is indeed a tty.
11086 Use the new gpm_tty.
11087 (Fterm_close_connection): Use the new gpm_tty.
11088 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
11089 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
11090
def7fa34
JB
110912007-09-21 Juanma Barranquero <lekktu@gmail.com>
11092
11093 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
11094 underline_color, to draw strike-through.
11095
d2bb6598
SM
110962007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
11097
273f164c
SM
11098 * lisp.h (allocate_terminal): Declare.
11099
ca2d5566
SM
11100 * window.c (candidate_window_p): Consider frames that are being placed
11101 by the user as somewhere between visible and iconified.
11102 (window_loop): Prefer windows on the current frame.
11103 (Fselect_window): Move the use of select-frame to the beginning so we
11104 can just delegate all the work (it'll call us back anyway).
11105
6168122d
SM
11106 * frame.c (Qdisplay_environment_variable):
11107 * frame.h (Qdisplay_environment_variable): Delete.
11108
c51842ec
SM
11109 * .gdbinit (xbacktrace): Print the arg's address rather than the value
11110 of the first arg, since that value may be a union.
11111
d2bb6598
SM
11112 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
11113 parameter rather than Qdisplay_environment_variable. If all else
11114 fails, look for DISPLAY in initial-environment.
11115
6f022c19
GM
111162007-09-21 Glenn Morris <rgm@gnu.org>
11117
11118 * Makefile.in (emacstool): Remove target.
f466320b 11119 (lisp, shortlisp): Remove termdev.elc.
6f022c19 11120
ea1bf8c7
GM
111212007-09-21 Markus Triska <markus.triska@gmx.at>
11122
d2bb6598 11123 * xterm.c (x_delete_display): Compile session management conditionally.
ea1bf8c7 11124
d30a25b3
SM
111252007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
11126
db699fc6
SM
11127 * callproc.c (getenv_internal_1): New function.
11128 (getenv_internal): Use it.
11129 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
11130
d2bb6598 11131 * terminal.c (get_terminal): Don't accept ints to represent terminals.
c5911e55
SM
11132 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
11133 (Fset_terminal_parameter): Work with dead terminals as well.
11134 (Fmodify_terminal_parameters): Remove.
11135
d30a25b3
SM
11136 * terminal.c (get_terminal): Handle terminals.
11137 Make sure the terminal returned is live.
11138 (create_terminal): Use allocate_terminal.
11139 (mark_terminals): Move to alloc.c.
11140 (delete_terminal): Use terminal->name as liveness status.
11141 NULL out fields after freeing their contents.
11142 Don't deallocate the object.
11143 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
11144 rather than an int.
11145 (Fterminal_live_p): Accept non-integer arguments.
11146 (Fterminal_list): Return terminal objects rather than an ints.
11147
11148 * alloc.c (enum mem_type): New member for `terminal' objects.
11149 (allocate_terminal): New function.
d2bb6598
SM
11150 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
11151 Handle terminals.
d30a25b3
SM
11152 (mark_terminal): New fun.
11153 (mark_terminals): Move from terminal.c.
11154
11155 * term.c (get_tty_terminal): Don't treat output_initial specially.
11156 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
11157 (delete_tty): Use terminal->name as liveness status.
11158
11159 * termhooks.h (struct terminal): Make it into a pseudovector.
11160 Remove `deleted' replaced by checking `name's nullness.
11161
11162 * print.c (print_object): Handle terminals.
11163
11164 * lisp.h (enum pvec_type): New `terminal' pseudovector.
11165 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
11166
11167 * frame.c (make_terminal_frame):
11168 * keyboard.c (tty_read_avail_input):
11169 * w32term.c (x_delete_terminal):
11170 * xfns.c (Fx_create_frame, x_create_tip_frame):
11171 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
11172
eba25e7c
GM
111732007-09-20 Glenn Morris <rgm@gnu.org>
11174
11175 * process.c (Fmake_network_process): Doc fix.
11176
2a29c3c1
JR
111772007-09-19 Jason Rumney <jasonr@gnu.org>
11178
11179 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
11180
880820fe 111812007-09-19 Michaël Cadilhac <michael@cadilhac.name>
ba1cbad7
MC
11182
11183 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
11184 Fix a C warning regarding variable constness.
11185
11186 * xterm.c (handle_one_xevent): Fix a C warning.
11187
334a1195
JR
111882007-09-18 Jason Rumney <jasonr@gnu.org>
11189
11190 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
11191
880820fe 111922007-09-17 Jan Djärv <jan.h.d@swipnet.se>
879ffad9
JD
11193
11194 * gtkutil.c (gdpy_def): New variable.
11195 (xg_initialize): Initialize gdpy_def.
11196 (xg_display_close): If no other display exists, set gdpy_def to a
11197 new connection.
11198
880820fe 111992007-09-16 Jan Djärv <jan.h.d@swipnet.se>
45c94881
JD
11200
11201 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
11202 when we have no file name for the icon.
11203 (xg_tool_bar_expose_callback): Remove.
11204 (xg_create_tool_bar): Don't connect expose signal to
11205 xg_tool_bar_expose_callback.
11206 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
11207
4d580af2
AS
112082007-09-16 Andreas Schwab <schwab@suse.de>
11209
11210 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
11211 values instead of zapping them.
11212
aca946f3
GM
112132007-09-14 Glenn Morris <rgm@gnu.org>
11214
11215 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
11216 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
11217 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
11218 scope and rename to omfib_buffer for clarity.
11219 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
11220
25c460e5
KH
112212007-09-14 Kenichi Handa <handa@m17n.org>
11222
11223 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
11224
09b69f01
JR
112252007-09-13 Jason Rumney <jasonr@gnu.org>
11226
11227 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
11228
11229 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
11230
11231 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
11232 (mac_term_init): Call here instead, passing rif.
11233
442218db
GM
112342007-09-13 Glenn Morris <rgm@gnu.org>
11235
11236 * s/hpux.h: No longer define `static' as nothing.
11237
880820fe 112382007-09-13 Johan Bockgård <bojohan@gnu.org>
4795c40f
GM
11239
11240 * callint.c (Fcall_interactively): Remove unused var `fun'.
11241
1971a872
RF
112422007-09-12 Romain Francoise <romain@orebokech.com>
11243
11244 * window.c (prefer_window_split_horizontally, display_buffer):
11245 Revert 2007-09-08 change.
11246
2d33f506
GM
112472007-09-12 Glenn Morris <rgm@gnu.org>
11248
585474ae 11249 * alloca.c: Remove file.
ca7af97a
GM
11250 * Makefile.in (alloca): Do not undef.
11251 (allocaobj, alloca.o): Remove.
11252 (otherobj): Remove allocaobj.
11253 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
11254 * regex.c (C_ALLOCA): Remove all references and code that was only
11255 used when this was defined.
11256 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
11257 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
99dfbaf1
GM
11258 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
11259
2d33f506 11260 * Makefile.in (SOURCES, unlock, relock): Delete.
ca7af97a
GM
11261
11262 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
11263 (menu_grab_callback): All uses changed.
11264
11265 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
11266 (x_reply_selection_request): All uses changed.
2d33f506 11267
18a4a65e
SM
112682007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
11269
11270 * lread.c (load_warn_old_style_backquotes): Change message to look
11271 better when it appears in the middle of byte-compiler messages.
11272
47cc8819
DN
112732007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
11274
b7ea0894
DN
11275 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
11276
47cc8819
DN
11277 * xterm.c (x_create_terminal): Add comment.
11278
11279 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
11280
5632bd0f
RS
112812007-09-10 Richard Stallman <rms@gnu.org>
11282
11283 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
11284
880820fe 112852007-09-10 Michaël Cadilhac <michael@cadilhac.name>
ccb5c14f 11286
4bca9161
MC
11287 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
11288 (DEFUN): Document `intspec', use it instead of `prompt'.
11289
04724b69
MC
11290 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
11291
8a6d230a
MC
11292 * data.c (Finteractive_form): If the interactive specification starts
11293 with a `(', use it as a Lisp form.
11294
09fbdf6c
MC
11295 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
11296 name and file modes.
11297
ccb5c14f
MC
11298 * callint.c (Fcall_interactively): Comment fixes.
11299
023accd6
SM
113002007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
11301
11302 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
11303 and compiled functions.
11304
f26b9544
EZ
113052007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
11306
11307 * window.c (prefer_window_split_horizontally): New variable.
11308 (display_buffer): Consider splitting window horizontally depending
11309 on prefer_window_split_horizontally.
11310
4d395425
EZ
113112007-09-08 Eli Zaretskii <eliz@gnu.org>
11312
97ddc760 11313 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
4d395425 11314
08c1d235
SM
113152007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
11316
179cef48
SM
11317 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
11318
08c1d235
SM
11319 * frame.c (x_set_frame_parameters): Check number is positive before
11320 using XFASTINT.
11321
11322 * window.c (freeze_window_start): Don't presume selected_window holds
11323 a window object.
92f94a12 11324 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
08c1d235 11325
97ddc760 113262007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
de52dcbb
DN
11327
11328 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
11329
90ab5c62
SM
113302007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
11331
11332 * window.c (Vsplit_window_preferred_function): New var.
11333 (Fdisplay_buffer): Use it.
11334 (syms_of_window): Export, and initialize it.
11335
1ab2cd43
TTN
113362007-09-06 Pixel <pixel@mandriva.com> (tiny change)
11337
11338 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
11339
0b0515bc
GM
113402007-09-06 Glenn Morris <rgm@gnu.org>
11341
57fd5c55 11342 * gtkutil.c (menu_grab_callback) <cnt>:
0b0515bc
GM
11343 * xselect.c (x_reply_selection_request) <cnt>: Move static
11344 variable to file scope.
11345
98594580
SM
113462007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
11347
11348 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
11349 consistent values of selected_frame and selected_window.
11350
0f4c7aef
JR
113512007-09-04 Jason Rumney <jasonr@gnu.org>
11352
11353 * w32console.c (initialize_w32_display): Zero unused hooks.
11354
e4019195
DN
113552007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
11356
11357 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
11358 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
11359
bce179b5
JR
113602007-09-04 Jason Rumney <jasonr@gnu.org>
11361
a0236551
JR
11362 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
11363 in w32console.c. Set up input. Remove XXX comments that have been
11364 confirmed as correct.
11365
a4926668
JR
11366 * s/ms-w32.h (MULTI_KBOARD): Define.
11367
953bf0dc
JR
11368 * w32console.c (one_and_only_w32cons): Remove.
11369 (initialize_w32_display): Take terminal argument.
11370
11371 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
11372 initialize_w32_display.
11373 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
11374
bce179b5
JR
11375 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
11376
11377 * keyboard.c (discard_mouse_events): Discard it.
11378 (make_lispy_event): Translate it to a lisp event.
11379 (lispy_wheel_names): Add wheel-left and right events.
11380 (syms_of_keyboard): Enlarge wheel_syms.
11381
11382 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
11383 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
11384
11385 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
11386
11387 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
11388 from WM_MOUSEHWHEEL.
11389 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
11390
11391 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
11392 terminal.
11393
11394 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
11395 keyboard for the terminal.
11396
92cd6a7c
DN
113972007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
11398
11399 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
11400 (Vresume_tty_hook): Rename from Vresume_tty_functions.
11401 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
11402 and resume-tty-function to resume-tty-hook.
11403 (Fsuspend_tty, Fresume_tty): Use new names.
11404
880820fe 114052007-09-02 Jan Djärv <jan.h.d@swipnet.se>
2154c964
JD
11406
11407 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
11408 if it starts with "n:".
11409
880820fe 114102007-08-31 Jan Djärv <jan.h.d@swipnet.se>
b42ff099
JD
11411
11412 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
11413
6b8e474c
SM
114142007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
11415
92d9c1d4
SM
11416 * frame.h:
11417 * frame.c (Qterm_environment_variable): Remove.
11418 (syms_of_frame): Don't init and staticpro it.
11419
92d9c1d4
SM
11420 * callproc.c (getenv_internal): Remove special case for $TERM.
11421
6b8e474c
SM
11422 * callproc.c (Vinitial_environment): New variable.
11423 (set_initial_environment): Initialize it.
11424 (syms_of_callproc): Declare it.
11425 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
11426 TERM under which a process runs is never related to the TERM in which
11427 Emacs is running.
11428
0f1444e1
DN
114292007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
11430
11431 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
11432 * s/darwin.h: ... do it here.
11433
b8866860
SM
114342007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
11435
11436 * lisp.h (set_initial_environment): Rename from set_global_environment.
11437
11438 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
11439 removed by mistake on the multi-tty branch.
11440
11441 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
11442 (Fmodify_frame_parameters): Return a value.
11443
11444 * image.c (png_load): Comment-out var only used in commented-out code.
11445
11446 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
11447 before passing it to mark_object.
11448
11449 * xfaces.c (internal_resolve_face_name): Return a value.
11450 (internal_resolve_face_name, resolve_face_name_error): Comment out.
11451
11452 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
11453 (x_icon): Comment-out var only used in commented-out code.
11454
0a42be6d
RF
114552007-08-29 Romain Francoise <romain@orebokech.com>
11456
11457 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
11458 QUIT hasn't been provided.
11459
8d9cc0b7
MB
114602007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
11461
11462 * callproc.c (child_setup, getenv_internal): Use the
ce20b664 11463 display-environment-variable and term-environment-variable frame params.
8d9cc0b7
MB
11464 (set_initial_environment): Initialise Vprocess_environment.
11465
11466 * config.in: Disable multi-keyboard support on a mac.
11467
11468 * frame.c (Qterm_environment_variable)
11469 (Qdisplay_environment_variable): New variables.
11470 (syms_of_frame): Intern and staticpro them.
11471 (Fmake_terminal_frame): Disable output method test.
11472
11473 * frame.h: Declare them here.
11474
11475 * macfns.c (x_set_mouse_color): Get rif from the frame.
11476 (x_set_tool_bar_lines): Don't use updating_frame.
11477 (mac_window): Add 2 new parameters for consistency with other systems.
11478 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
11479 frame parameters following what is done in X11 and w32. Don't use
11480 FRAME_MAC_DISPLAY_INFO.
11481 (Fx_open_connection, start_hourglass): Remove window-system check.
11482 (x_create_tip_frame): Get the keyboard from the terminal.
11483
11484 * macmenu.c: Reorder includes.
11485 (Fx_popup_menu): Use terminal specific mouse_position_hook.
11486
11487 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
11488 terminal parameter.
11489 (x_clear_frame): Add a frame parameter.
11490 (note_mouse_movement): Get rif from the frame.
11491 (mac_term_init): Initialize the terminal.
11492 (mac_initialize): Make static and move terminal initialization ...
11493 (mac_create_terminal): ... to this new function.
11494
11495 * macterm.h (struct mac_display_info): Add terminal.
7196c970 11496 (mac_initialize): Delete declaration.
8d9cc0b7 11497
381864b2 11498 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
8d9cc0b7
MB
11499
11500 * sysdep.c: Comment out text after #endif.
11501
11502 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
11503 is defined. Better initialize ttys in windows. Use terminal
11504 specific mouse_position_hook.
11505
11506 * termhooks.h (union display_info): Add mac_display_info.
11507
b8866860
SM
11508 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
11509 Set the default minibuffer frame, window_system and the rest of the
8d9cc0b7
MB
11510 frame parameters following what is done in X11.
11511
11512 * w32term.c (w32_initialize): Make static.
11513
11514 * xselect.c (x_handle_selection_clear): Only access
11515 terminal->kboard when MULTI_KBOARD is defined.
11516
11517 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
11518 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
11519
115202007-08-29 Jason Rumney <jasonr@gnu.org>
11521
11522 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
11523 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
11524
11525 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
11526 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
11527
11528 * keyboard.c (restore_kboard_configuration): Only define when
11529 MULTI_KBOARD defined.
11530
35277b03 11531 * makefile.w32-in: Update dependancies from Makefile.in.
8d9cc0b7
MB
11532 (OBJ1): Add terminal.$(O)
11533
b8866860
SM
11534 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
11535 Don't define function body.
8d9cc0b7
MB
11536 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
11537
11538 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
11539
11540 * w32.c (request_sigio, unrequest_sigio): Remove.
11541
11542 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
11543 (w32con_clear_frame, w32con_clear_end_of_line)
11544 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
11545 (w32con_delete_glyphs, w32con_set_terminal_window)
11546 (scroll_line, w32_sys_ring_bell): Add frame arg.
b8866860
SM
11547 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
11548 Add terminal arg.
8d9cc0b7
MB
11549 (PICK_FRAME): Remove.
11550 (w32con_write_glyphs): Use frame specific terminal coding.
11551 (one_and_only_w32cons): New global variable.
11552 (initialize_w32_display): Use it for storing hooks.
11553 (create_w32cons_output): New function.
11554
11555 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
11556 arg a frame.
11557
b8866860
SM
11558 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
11559 Set window_system.
8d9cc0b7
MB
11560 (x_set_tool_bar_lines): Don't use updating_frame.
11561 (Fx_create_frame): Set terminal and ref count.
11562 (Fx_open_connection): Remove window-system check.
11563
11564 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
11565
11566 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
11567 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
11568 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
11569 Add frame arg.
11570 (x_delete_terminal, w32_create_terminal): New functions.
11571 (w32_term_init): Create a terminal.
11572 (w32_initialize): Move terminal specific initialization to
11573 w32_create_terminal.
11574
b8866860 11575 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
8d9cc0b7
MB
11576 (w32_clear_rect, w32_clear_area): Use background from frame.
11577 (w32_display_info): Add terminal.
11578 (w32_sys_ring_bell, x_delete_display): Declare here.
11579
11580 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
11581
11582 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
11583
115842007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
11585
11586 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
11587 Fix get_named_tty calls for the controlling tty.
11588
115892007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
11590
11591 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
11592
115932007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
11594
11595 * term.c (tty_insert_glyphs): Add missing first parameter.
11596
880820fe 115972007-08-29 Károly Lőrentey <karoly@lorentey.hu>
8d9cc0b7 11598
b8866860
SM
11599 * buffer.c (Fbuffer_list, Fbury_buffer):
11600 Take frame->buried_buffer_list into account.
8d9cc0b7
MB
11601
11602 * cm.c (current_tty): New variable, for cmputc().
11603 (cmputc): Use it.
11604 (cmcheckmagic): Add tty parameter, look up terminal streams there.
11605 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
b8866860
SM
11606 (cmgoto): Add tty parameter. Pass it on to calccost().
11607 Use emacs_tputs() instead of tputs().
8d9cc0b7
MB
11608
11609 * cm.h (emacs_tputs): New macro to set current_tty, and then call
11610 tputs().
11611 (current_tty): New variable, for cmputc().
11612 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
11613
11614 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
11615 (internal_condition_case, internal_condition_case_1)
11616 (internal_condition_case_2): Don't abort when x_catching_errors.
11617
11618 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
11619 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
11620 prevent crashes caused by bogus longjmps in read_char.
11621
11622 * keymap.h (Fset_keymap_parent): Add EXFUN.
11623
11624 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
11625 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
11626 Remove redundant definition.
11627
b8866860
SM
11628 * macfns.c (x_set_mouse_color, x_make_gc):
11629 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7 11630
b8866860
SM
11631 * w32term.c (x_free_frame_resources):
11632 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
11633 (w32_initialize): Use the accessor macros for terminal characteristics.
11634
11635 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
11636 Use the accessor macros for terminal characteristics.
11637 * msdos.c (internal_terminal_init): Use the accessor macros for
11638 terminal characteristics.
b8866860
SM
11639 (ScreenVisualBell, internal_terminal_init):
11640 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
11641
11642 * termopts.h (no_redraw_on_reenter): Declare.
11643
11644 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
03f06e5c 11645 (mark_terminals, mark_ttys): Declare.
8d9cc0b7 11646 (Fgarbage_collect): Call them.
03f06e5c 11647 (mark_object): Mark buried_buffer_list.
8d9cc0b7
MB
11648
11649 * prefix-args.c: Include stdlib.h for exit.
11650
11651 * syssignal.h: Add comment.
11652
11653 * indent.c: Include stdio.h.
11654
11655 * window.h (Vinitial_window_system): Declare.
11656 (Vwindow_system): Delete declaration.
11657
11658 * fontset.c (Finternal_char_font): Use FRAME_RIF.
11659
11660 * image.c (lookup_image): Don't initialize `c' until the xasserts
11661 have been run.
11662
11663 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
11664 FRAME_FOREGROUND_PIXEL.
11665
11666 * print.c (print_preprocess): Don't lose print_depth levels while
11667 iterating.
11668
b8866860
SM
11669 * widget.c (update_from_various_frame_slots):
11670 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
11671
11672 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
11673 frames.
11674 (window_internal_height): Remove bogus make_number call.
b8866860 11675 (init_window_once): Call make_terminal_frame with two zero parameters.
8d9cc0b7
MB
11676
11677 * fileio.c (Fread_file_name): Update comment.
11678
b8866860
SM
11679 * callint.c (Fcall_interactively):
11680 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
8d9cc0b7
MB
11681 Make sure it is correctly unwound.
11682
11683 * xsmfns.c (x_session_close): New function.
11684
03f06e5c 11685 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
8d9cc0b7
MB
11686 Delete declarations.
11687
11688 * xterm.h: Remove declaration for x_fully_uncatch_errors.
11689 (x_output): Remove background_pixel and foreground_pixel fields.
03f06e5c 11690 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
c3f9fba8 11691 (x_delete_device, x_session_close): Declare.
8d9cc0b7
MB
11692
11693 * lread.c: Include setjmp.h. Update declaration of `read_char'.
11694 (read_filtered_event): Call `read_char' with a local
11695 `wrong_kboard_jmpbuf'.
11696
b8866860
SM
11697 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
11698 Don't call single_kboard_state. Use FRAME_RIF.
8d9cc0b7
MB
11699
11700 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
11701 systems.
11702
b8866860 11703 * lisp.h (set_process_environment): Rename to `set_global_environment'.
03f06e5c 11704 (Fframe_with_environment, Fset_input_meta_mode)
8d9cc0b7 11705 (Fset_quit_char): EXFUN.
03f06e5c 11706 (x_create_device, tty_output, terminal, tty_display_info): Declare.
8d9cc0b7
MB
11707 (init_sys_modes, reset_sys_modes): Update prototypes.
11708 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
11709
b8866860
SM
11710 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
11711 Vlocal_key_translation_map, and Vkeyboard_translate_table.
03f06e5c 11712 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
8d9cc0b7 11713 Delete declarations.
03f06e5c
JB
11714 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
11715 (temporarily_switch_to_single_kboard, tty_read_avail_input):
8d9cc0b7
MB
11716 New declarations.
11717
11718 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
11719 already does that during init_display(). Call syms_of_keymap
b8866860
SM
11720 before syms_of_keyboard. Call `syms_of_terminal'.
11721 Call set_initial_environment, not set_process_environment.
8d9cc0b7
MB
11722 (shut_down_emacs): Call reset_all_sys_modes() instead of
11723 reset_sys_modes().
11724
11725 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
03f06e5c
JB
11726 (internal_resolve_face_name, resolve_face_name_error): New functions.
11727 (resolve_face_name): Protect against loops and errors thrown by Fget.
11728 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
8d9cc0b7
MB
11729 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
11730
11731 * scroll.c: Replace CURTTY() with local variables throughout the
11732 file (where applicable).
11733 (calculate_scrolling, calculate_direct_scrolling)
11734 (scrolling_1, scroll_cost): Use the accessor macros for terminal
11735 characteristics.
11736
11737 * keymap.c (Vfunction_key_map): Remove.
b8866860 11738 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
8d9cc0b7
MB
11739 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
11740 (Vkey_translation_map): Remove.
11741 (syms_of_keymap): Remove DEFVAR for key-translation-map.
c3f9fba8 11742 (Fdescribe_buffer_bindings)
8d9cc0b7
MB
11743 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
11744 Update for terminal-local key-translation-map.
11745
11746 * Makefile.in (callproc.o): Update dependencies.
11747 (lisp, shortlisp): Add termdev.elc.
11748 (obj): Add terminal.o.
11749 (terminal.o): Add dependencies.
11750 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
11751 (data.o, fns.o): Add termhooks.h dependency.
11752 (SOME_MACHINE_LISP): Add dnd.elc.
11753 (minibuf.o): Fix typo.
11754 Update dependencies.
11755
11756 * data.c (do_symval_forwarding, store_symval_forwarding)
11757 (find_symbol_value): Use the selected frame's keyboard, not
11758 current_kboard.
11759
11760 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
11761 Vwindow_system.
11762
11763 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
11764 Fmenu_bar_open.
11765 (syms_of_xmenu): Update defsubr.
11766 (mouse_position_for_popup, Fx_popup_menu)
11767 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
11768 (set_frame_menubar, free_frame_menubar)
11769 (create_and_show_popup_menu, xmenu_show, )
11770 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
11771 an X frame.
11772
11773 * xselect.c (x_own_selection): Abort if not an X frame.
11774 (some_frame_on_display): Check if it is an X frame.
11775 (x_handle_selection_clear): Deal with MULTI_KBOARD.
11776
11777 * coding.c: Include frame.h and termhooks.h.
03f06e5c 11778 (terminal_coding, keyboard_coding): Delete.
c3f9fba8
JB
11779 (Fset_terminal_coding_system_internal)
11780 (Fset_keyboard_coding_system_internal)
11781 (Fkeyboard_coding_system)
03f06e5c
JB
11782 (Fterminal_coding_system): Add a terminal parameter.
11783 Get terminal_coding from the terminal.
8d9cc0b7
MB
11784 (init_coding_once): Don't call setup_coding_system here.
11785
11786 * dispextern.h (set_scroll_region, turn_off_insert)
11787 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
11788 (tty_clear_end_of_line, tty_setup_colors)
03f06e5c 11789 (delete_tty, updating_frame)
8d9cc0b7
MB
11790 (produce_special_glyphs, produce_glyphs, write_glyphs)
11791 (insert_glyphs): Remove.
11792 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
03f06e5c 11793 (tty_turn_off_highlight, get_tty_size): Add declaration.
b8866860 11794 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
8d9cc0b7
MB
11795
11796 * frame.h (enum output_method): Add output_initial.
11797 (struct x_output): Delete.
b8866860
SM
11798 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
11799 Access foreground_pixel and background_pixel directly from the frame.
8d9cc0b7
MB
11800 (tty_display): Delete.
11801 (struct frame): Add buried_buffer_list, foreground_pixel,
1f204af3 11802 background_pixel and terminal. Delete kboard.
8d9cc0b7
MB
11803 (union output_data): Add tty.
11804 (FRAME_KBOARD): Get the kboard from the terminal.
11805 (FRAME_INITIAL_P): New macro.
11806 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
11807 (Qterm_environment_variable, Qdisplay_environment_variable)
b8866860
SM
11808 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
11809 New declarations.
8d9cc0b7
MB
11810
11811 * termchar.h (tty_output, tty_display_info): New structures.
11812 (tty_list): Declare.
11813 (FRAME_TTY, CURTTY): New macros.
11814 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
11815 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
11816 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
11817 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
11818
11819 * callproc.c: Include frame.h and termhooks.h, for terminal
11820 parameters.
11821 (add_env): New function.
11822 (child_setup): Use it.
b8866860 11823 (child_setup, getenv_internal): Handle the new Vprocess_environment.
8d9cc0b7
MB
11824 (getenv_internal): Fix get_terminal_param call.
11825 (Fgetenv_internal, egetenv): Update doc.
11826 (syms_of_callproc): Initialize Vprocess_environment to nil.
03f06e5c 11827 Register and initialize them. Remove obsolete defvars. Update doc
8d9cc0b7
MB
11828 strings.
11829 (child_setup): Handle Vlocal_environment_variables.
b8866860
SM
11830 (getenv_internal): Add terminal parameter.
11831 Handle Vlocal_environment_variables.
8d9cc0b7
MB
11832 (Fgetenv_internal): Add terminal parameter.
11833 (child_setup, getenv_internal, Fgetenv_internal): Store the local
b8866860 11834 environment in a frame (not terminal) parameter. Update doc strings.
8d9cc0b7
MB
11835 (set_initial_environment): Rename from set_global_environment.
11836 Store Emacs environment in initial frame parameter.
11837
11838 * xdisp.c (redisplay_internal): Update references to
11839 `previous_terminal_frame'.
11840 (display_mode_line, Fformat_mode_line): Replace calls to
11841 `push_frame_kboard' with `push_kboard'.
11842 (get_glyph_string_clip_rects): Add extra parentheses and
11843 braces to prevent compiler warnings.
11844 (calc_pixel_width_or_height): Add xassert to check that the
11845 frame is alive. Don't call `lookup_image' on a termcap frame.
11846 (message2_nolog, message3_nolog, redisplay_internal)
11847 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
11848 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
11849 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
11850 (Fx_display_pixel_width, Fx_display_pixel_height)
11851 (Fx_display_planes, Fx_display_color_cells)
11852 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
11853 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
11854 (Fx_display_backing_store, Fx_display_visual_class)
11855 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
97ddc760 11856 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
8d9cc0b7
MB
11857
11858 * xfns.c (x_set_foreground_color x_set_background_color)
b8866860
SM
11859 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
11860 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
11861 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
11862 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
11863 terminal that is being deleted.
11864 (Fx_create_frame): Use `store_frame_param' to set `window-system'
b8866860 11865 frame parameter, and make sure it overrides any user-supplied setting.
8d9cc0b7
MB
11866 (Fx_close_connection, Fx_synchronize): Unify argument names with
11867 the rest of the DEFUNs.
11868
11869 * dispnew.c (Fsend_string_to_terminal): Update call to
11870 `get_tty_terminal'.
11871 (Fredraw_frame, Fsend_string_to_terminal)
2d33f506 11872 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
8d9cc0b7
MB
11873 FRAME_TERMCAP_P and FRAME_TTY.
11874 (window_change_signal): Don't believe width/height values that are
11875 impossibly small.
11876 (Vinitial_window_system): Rename from Vwindow_system.
11877 (termscript, Wcm, rif): Delete.
11878
11879 * termhooks.h (struct terminal): New struct containing the
11880 previously global text display hooks and new members NAME,
11881 DELETED and PARAM_ALIST.
11882 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
11883 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
11884 (FRAME_RIF): New macros.
11885 (get_terminal_param, get_device): New declarations.
11886 (termscript): Delete declaration.
11887
11888 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
11889 (XTflash, x_free_frame_resources, x_scroll_bar_create)
11890 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
11891 FRAME_FOREGROUND_PIXEL.
11892 (x_fully_uncatch_errors): Disable definition.
11893 (x_scroll_bar_expose): Fix reference to foreground pixel.
11894 (XTread_socket): Disable loop on all X displays.
11895 (x_delete_terminal): Don't set terminal->deleted and let
11896 delete_terminal delete the frames on the terminal.
11897 (x_delete_display): Doc update to reflect changes in
11898 delete_terminal.
11899 (x_display_info) <terminal>: Move member earlier in the struct.
8d9cc0b7
MB
11900 (deleting_tty): Remove old variable.
11901 (Fsuspend_tty): Call clear_tty_hooks.
11902 (Fresume_tty, init_tty): Call set_tty_hooks.
8d9cc0b7
MB
11903 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
11904 errors on X frames.
11905 (x_catch_errors_unwind): Abort if x_error_message is NULL.
11906 (handle_one_xevent): Initialize `f' to NULL.
9cab96b0 11907 (x_delete_terminal, x_create_terminal): New functions.
8d9cc0b7
MB
11908 (XTset_terminal_modes, XTreset_terminal_modes)
11909 (XTread_socket, x_connection_closed, x_term_init)
11910 (x_term_init, x_delete_display): Add terminal parameter.
11911 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
11912 X connections.
11913
bf380f53
GM
11914 * frame.c: Include termchar.h.
11915 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
11916 (Qwindow_system, Qenvironment, Qterm_environment_variable)
11917 (Qdisplay_environment_variable): New vars.
11918 (Fframep): Deal with output_initial.
11919 (Fframe-live-p): Doc fix.
11920 (Fwindow-system): New function.
8d9cc0b7
MB
11921 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
11922 (make_terminal_frame): Don't create frames on a terminal that is
bf380f53 11923 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
b8866860 11924 (store_frame_param): Check for found_for_frame before calling XFRAME.
8d9cc0b7
MB
11925 (Fmake_terminal_frame): Handle NULL tty names correctly.
11926 (syms_of_frame): Enhance doc string of `default-frame-alist'.
bf380f53
GM
11927 (Fdelete_frame): Remove unused variable `count'. Don't allow other
11928 frames to refer to a deleted frame in their 'environment parameter.
8d9cc0b7 11929 (Fframe_with_environment): New function.
b8866860 11930 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
8d9cc0b7
MB
11931 (get_future_frame_param): New function.
11932 (Fmake_terminal_frame): Use it.
2d33f506 11933 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
8d9cc0b7
MB
11934
11935 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
11936 * sysdep.c (reset_sys_modes): Update for renames.
11937
11938 * keyboard.c (tty_read_avail_input): New function.
03f06e5c 11939 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
8d9cc0b7
MB
11940 (syms_of_keyboard): Defsubr them.
11941 (Fset_input_meta_mode, Fset_quit_char): New functions.
11942 (Fset_input_mode): Split to above functions.
8d9cc0b7
MB
11943 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
11944 parameter. Use it in call to `read_char'.
b8866860
SM
11945 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
11946 Set wrong_kboard_jmpbuf correctly in recursive calls.
11947 Use current_kboard to access Vkeyboard_translate_table.
11948 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
11949 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
11950 Update longjmp invocations. Remember the original current_kboard,
11951 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
11952 changes it. Comment out unnecessary calls to
11953 `record_single_kboard_state' and `any_kboard_state'.
11954 Update recursive calls.
8d9cc0b7
MB
11955 (wrong_kboard_jmpbuf): Remove global variable.
11956 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
11957 Handle deleted interrupted_kboards correctly; that is a legal
11958 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
b8866860 11959 and read_char calls. Abort if interrupted_kboard died in read_char.
8d9cc0b7
MB
11960 (any_kboard_state, single_kboard_state)
11961 (push_frame_kboard): Remove function.
11962 (pop_kboard): Switch out of single_kboard mode if the kboard has
03f06e5c
JB
11963 been deleted. Remove unused variable. Help debugging by not
11964 changing current_kboard unnecessarily. Set current_kboard to the
8d9cc0b7
MB
11965 kboard of the selected frame when the stored kboard object has
11966 been deleted before pop_kboard.
11967 (temporarily_switch_to_single_kboard): Change first parameter to a
11968 frame pointer. Throw an error when caller wants to change kboards
11969 while in single_kboard mode. Don't push_kboard if we weren't in
11970 single kboard state. Don't pop_kboard if we popped into any
11971 kboard state.
11972 (restore_kboard_configuration): Abort if pop_kboard changed the
03f06e5c 11973 kboard in single_kboard mode. Call pop_kboard only after setting
8d9cc0b7
MB
11974 up single_kboard mode.
11975 (Frecursive_edit): Switch to single_kboard mode only in nested
11976 command loops.
b8866860
SM
11977 (cmd_error, command_loop, command_loop_1, timer_check):
11978 Comment out unnecessary call to `any_kboard_state' and
8d9cc0b7
MB
11979 `record_single_kboard_state'.
11980 (delete_kboard): Exit single_kboard mode if we have just deleted
03f06e5c 11981 that kboard. Use FRAME_KBOARD.
8d9cc0b7
MB
11982 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
11983 `fatal_error_signal'.
11984 (record_single_kboard_state): Don't push_kboard if we weren't in
11985 single kboard state. Don't pop_kboard if we popped into any
11986 kboard state.
11987 (push_frame_kboard): Rename to push_kboard.
11988 (kbd_buffer_get_event): Use FRAME_TERMINAL.
11989 (read_avail_input): Read input from all terminals.
11990 (mark_kboards): Also mark Vkeyboard_translate_table.
11991 (kbd_buffer_store_event_hold): Simplify condition.
11992 (read_key_sequence): Reinitialize fkey and keytran at each replay.
11993 (Vkeyboard_translate_table): Move to struct kboard.
11994 (init_kboard): Initialize Vkeyboard_translate_table.
11995 (syms_of_keyboard): Use DEFVAR_KBOARD to define
11996 Vkeyboard_translate_table. Update doc strings. Update docs of
11997 local-function-key-map and function-key-map.
11998
11999 * terminal.c: New file.
12000
12001 * term.c: Include errno.h.
12002 (Vring_bell_function, device_list, initial_device)
12003 (next_device_id, ring_bell, update_begin, update_end)
12004 (set_terminal_window, cursor_to, raw_cursor_to)
12005 (clear_to_end, clear_frame, clear_end_of_line)
12006 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
12007 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
12008 (syms_of_term): Move their initialization to terminal.c.
12009 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
12010 (Ftty_display_color_cells)
12011 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
9cab96b0 12012 (clear_tty_hooks, set_tty_hooks)
8d9cc0b7
MB
12013 (init_tty, maybe_fatal): New functions.
12014 (Ftty_type): Return nil if terminal is not on a tty instead of
12015 throwing an error. Doc update.
12016 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
03f06e5c 12017 Doc update. Initialize new subrs and variables.
8d9cc0b7
MB
12018 (delete_tty): Use terminal->deleted.
12019 (tty_set_terminal_modes): Rename from set_terminal_modes.
12020 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
12021 (set_scroll_region): Rename to `tty_set_scroll_region'.
12022 (turn_on_insert): Rename to `tty_turn_on_insert'.
12023 (turn_off_insert): Rename to `tty_turn_off_insert'.
12024 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
12025 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
12026 (toggle_highligh): Rename to `tty_toggle_highlight'.
12027 (background_highlight): Rename to `tty_background_highlight'.
12028 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
12029 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
12030 (tty_set_scroll_region, tty_background_highlight)
12031 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
12032 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
12033 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
12034 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
12035 Add static modifier.
12036 (tty_reset_terminal_modes, tty_set_terminal_window)
12037 (tty_set_scroll_region, tty_background_highlight)
12038 (tty_highlight_if_desired, tty_cursor_to)
12039 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
12040 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
12041 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
12042 renames.
12043
880820fe 120442007-08-28 Jan Djärv <jan.h.d@swipnet.se>
cf0590c4
JD
12045
12046 * keyboard.c: Qrtl is new.
12047 (parse_tool_bar_item): Handle :rtl keyword.
12048 (syms_of_keyboard): Intern :rtl keyword.
12049
12050 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
12051
12052 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
12053 so no Lisp code is executed.
12054 (file_for_image, find_rtl_image): New functions.
1f204af3 12055 (xg_get_image_for_pixmap): Use file_for_image.
cf0590c4
JD
12056 (update_frame_tool_bar): If direction is RTL, use RTL image if
12057 defined. Use Gtk stock images if defined.
12058
83cc8d35
YM
120592007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12060
12061 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
12062 for nonexistent or zero-width glyph in composition glyph.
12063
e60c4e15
SM
120642007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
12065
d7e2a28f
SM
12066 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
12067
e60c4e15
SM
12068 * xdisp.c (Finvisible_p): New function.
12069 (syms_of_xdisp): defsubr it.
12070
ee163e6d
JB
120712007-08-24 Juanma Barranquero <lekktu@gmail.com>
12072
12073 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
12074 Doc fixes.
12075
90fa408d
YM
120762007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12077
35277b03 12078 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
90fa408d 12079
cac4219c
MR
120802007-08-24 Martin Rudalics <rudalics@gmx.at>
12081
12082 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
12083 whether decoding has modified buffer contents.
12084
5fc9fdeb
JR
120852007-08-24 Jason Rumney <jasonr@gnu.org>
12086
12087 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
12088 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
12089 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
12090 (init_svg_functions) [HAVE_NTGUI]: New function.
12091 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
12092 (svg_load_image): Use them.
12093 (svg_load_image) [HAVE_NTGUI]: Implement background.
12094
93b23406
YM
120952007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12096
12097 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
12098 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
12099 (LIBX): Remove @RSVG_LIBS@.
12100 (LIBES): Add $(RSVG_LIBS).
12101
12102 * image.c (svg_load_image): Blend with specified background if exists.
12103 Use IMAGE_BACKGROUND. Add Mac OS Support.
12104
12105 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
12106 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
12107 Remove macros.
12108 [MAC_OSX] (socket_callback): Do nothing.
12109 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
12110 ReceiveNextEvent.
12111 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
12112 socket_callback.
12113 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
12114
2467875c
GM
121152007-08-22 Glenn Morris <rgm@gnu.org>
12116
ff8da443 12117 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
2467875c 12118
4ab27a43
GM
121192007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
12120
12121 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
ff8da443 12122
666e0eda
GM
12123 * image.c: Add support for SVG images. Some additional comments
12124 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
12125 (svg_image_p): New function to test for SVG image.
12126 (svg_load): New function to load SVG image.
12127 (svg_load_image): New function, helper for svg_load.
12128 (Qsvg): New Lisp_object.
12129 (svg_keyword_index): New enum.
12130 (svg_format): New static `image_keyword' struct.
12131 (svg_type): New static `image_type' struct.
12132 (librsvg/rsvg.h): Include it.
4ab27a43 12133
b636b4c1
SM
121342007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
12135
12136 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
12137
9ecb827b
SM
121382007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
12139
1d064697
SM
12140 * lread.c (Qold_style_backquotes): New var.
12141 (syms_of_lread): Init and staticpro it.
12142 (load_warn_old_style_backquotes): New fun.
12143 (Fload): Use them to warn about old style backquotes.
12144 (end_of_file_error, Fload): Remove unused vars.
12145
5772ed4b
SM
12146 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
12147
9ecb827b 12148 * lread.c (Vold_style_backquotes): New var.
5aa273b0 12149 (syms_of_lread): Init and export it to Elisp.
9ecb827b
SM
12150 (read1): Set it when we find an old-style (back)quote.
12151
32e1c7b1
JR
121522007-08-22 Jason Rumney <jasonr@gnu.org>
12153
12154 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
12155
b8fa755b
KY
121562007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
12157
12158 * puresize.h (BASE_PURESIZE): Increase to 1140000.
12159
1283140e
RS
121602007-08-19 Richard Stallman <rms@gnu.org>
12161
12162 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
12163
2c4685ee
AS
121642007-08-19 Andreas Schwab <schwab@suse.de>
12165
12166 * alloc.c (pure): Round PURESIZE up.
12167
880820fe 121682007-08-17 Jan Djärv <jan.h.d@swipnet.se>
e8953ebf
JD
12169
12170 * xterm.c (handle_one_xevent): Remove check that mouse click is in
12171 active frame.
12172
6e33efc4
RS
121732007-08-16 Richard Stallman <rms@gnu.org>
12174
12175 * eval.c (Fcommandp): Add parens to clarify.
12176
12177 * minibuf.c (Fall_completions): Use enum for type of table.
12178
12179 * emacs.c (USAGE2): Improve text.
12180
fcf8ff2e
GM
121812007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
12182
5205ee62
GM
12183 * term.c (tty_default_color_capabilities): Declare static
12184 variables in file scope, to avoid HPUX compiler problem.
fcf8ff2e 12185
880820fe 121862007-08-13 Jan Djärv <jan.h.d@swipnet.se>
81d13a51
JD
12187
12188 * gtkutil.c (update_frame_tool_bar): Use -1 as index
12189 to gtk_toolbar_insert.
12190
4a181359
SM
121912007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
12192
1bc99c9c
SM
12193 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
12194
4a181359
SM
12195 * insdel.c (reset_var_on_error): New fun.
12196 (signal_before_change, signal_after_change):
12197 Use it to reset (after|before)-change-functions to nil in case of error.
12198 Bind inhibit-modification-hooks to t.
12199 Don't bind (after|before)-change-functions to nil while they run.
12200
6c28435c
YM
122012007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12202
12203 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
12204 filling pixmap with stippled background.
12205
ad3b3e02
YM
122062007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12207
12208 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
12209 Don't use invisible frame as parent window for repositioning.
12210
a22dec27
SM
122112007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
12212
12213 * print.c (new_backquote_output): Rename from old_backquote_output.
12214 (print): Inverse its logic (according to its name) so as to match the
12215 behavior of new_backquote_flag in lread.c.
12216
7b7d07bb
YM
122172007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12218
12219 * gmalloc.c (posix_memalign): New function.
12220
12221 * macterm.c (frame_highlight, frame_unhighlight): Don't call
12222 ActivateControl/DeactivateControl here.
12223 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
12224 frame-notice-user-settings is non-nil.
12225 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
12226 for kEventParamFMFontStyle.
12227 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
12228 mac_pass_command_to_system and mac_pass_control_to_system here.
12229 (XTread_socket): Call ActivateControl/DeactivateControl here.
12230 (XTread_socket) [TARGET_API_MAC_CARBON]:
12231 Check mac_pass_command_to_system and mac_pass_control_to_system here.
f9426479
YM
12232 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
12233 for window repositioning.
7b7d07bb 12234
22e9fe24
GM
122352007-08-08 Glenn Morris <rgm@gnu.org>
12236
12237 * Replace `iff' in doc-strings and comments.
12238
ae494350
CY
122392007-08-07 Chong Yidong <cyd@stupidchicken.com>
12240
12241 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
12242
6f2528d8
MR
122432007-08-07 Martin Rudalics <rudalics@gmx.at>
12244
12245 * fileio.c (Finsert_file_contents): Run format-decode and
12246 after_insert_file_functions on entire buffer when REPLACE is
12247 non-nil and inhibit modification_hooks and point_motion_hooks.
12248 For consistency, run after_insert_file_functions iff something
12249 got inserted. Move signal_after_change and update_compositions
12250 after code running after_insert_file_functions. Make sure that
6b8e474c 12251 undo_list doesn't record intermediate steps of the decoding process.
6f2528d8 12252
3ceeb306
YM
122532007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12254
12255 * emacs.c (main)
12256 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
12257 Call malloc_enable_thread on interactive startup.
12258
12259 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
7b7d07bb
YM
12260 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
12261 [USE_PTHREAD]: Conditionalize with it.
3ceeb306
YM
12262 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
12263 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
12264 New functions.
12265
ca5e6fd5
CY
122662007-08-06 Chong Yidong <cyd@stupidchicken.com>
12267
32bfce5d
CY
12268 * xdisp.c (redisplay_window): When restoring original buffer
12269 position, make sure it is still valid.
12270
ca5e6fd5
CY
12271 * image.c (png_load): Ignore png-supplied background color.
12272
a5b11587
YM
122732007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12274
12275 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
12276 Use kCFAbsoluteTimeIntervalSince1970.
12277
12278 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
12279 New variable.
12280 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
12281 event loop should be quit.
12282 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
12283 Quit dialog event loop if quit_dialog_event_loop is set.
12284
12285 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
12286 (Selection): New typedef. Use instead of ScrapRef.
12287 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
12288 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
12289 (mac_clear_selection): Rename from clear_scrap.
12290 (get_flavor_type_from_symbol): New argument SEL and subsume function of
ff8da443 12291 scrap_has_target_type. All uses changed.
a5b11587
YM
12292 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
12293 (mac_selection_has_target_p): New functions.
12294 (mac_put_selection_value): Rename from put_scrap_string.
12295 (mac_get_selection_value): Rename from get_scrap_string.
12296 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
12297 (put_scrap_private_timestamp, scrap_has_target_type)
12298 (get_scrap_private_timestamp): Remove functions.
12299 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
12300 (x_own_selection, x_get_local_selection):
12301 Use mac_valid_selection_value_p.
12302 (x_own_selection): Don't use put_scrap_private_timestamp.
12303 Record OWNERSHIP-INFO into Vselection_alist instead.
12304 (x_get_local_selection): Don't check type if request is local.
12305 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
12306 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
12307
880820fe 123082007-08-04 Jan Djärv <jan.h.d@swipnet.se>
991bde0d
JD
12309
12310 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
12311 add comment explaining why.
12312
73ff9d42
RS
123132007-08-03 Richard Stallman <rms@gnu.org>
12314
12315 * fileio.c (Fvisited_file_modtime): Use make_time.
12316
54ed9a2d 123172007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
cdf5c17a
VJL
12318
12319 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
12320 build.
12321
65a9c8e2
SM
123222007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
12323
12324 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
12325
c5925799
KY
123262007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
12327
12328 * puresize.h (BASE_PURESIZE): Increase to 1130000.
12329
adef3de7
RS
123302007-07-30 Richard Stallman <rms@gnu.org>
12331
12332 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
12333
880820fe 123342007-07-29 Jan Djärv <jan.h.d@swipnet.se>
784c1472
JD
12335
12336 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
12337
a10421a1
NR
123382007-07-28 Nick Roberts <nickrob@snap.net.nz>
12339
12340 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
12341 remote default-directory.
12342
12343 * buffer.c (mode-line-format): Update doc string.
12344
0cb1ae20
YM
123452007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12346
12347 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
12348 scroll bar gap.
12349 (x_scroll_bar_create): Set bar->fringe_extended_p.
12350 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
12351 on frame edge. Check fringe background extension. Don't clear
12352 extended fringe background area.
12353
12354 * w32term.h (struct scroll_bar): New member fringe_extended_p.
12355 (w32_fill_area): Enclose multiple statements with do ... while (0).
12356
12357 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
12358 Extend fringe background to scroll bar gap.
12359 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
12360 Set bar->fringe_extended_p.
12361 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
12362 Put leftmost/rightmost scroll bars on frame edge. Check fringe
12363 background extension. Don't clear extended fringe background area.
12364
12365 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
12366 New member fringe_extended_p.
12367
cacc7b51
GM
123682007-07-25 Glenn Morris <rgm@gnu.org>
12369
12370 * Relicense all FSF files to GPLv3 or later.
12371
12372 * COPYING: Switch to GPLv3.
12373
89835619
SM
123742007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
12375
c4f46926
SM
12376 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
12377
12378 * data.c (Finteractive_form): Check for the presence of an
12379 `interactive-form' symbol property more thoroughly.
12380
12381 * data.c (Finteractive_form): Use an `interactive-form' property if
89835619
SM
12382 present, analogous to the function-documentation property.
12383
ee04257d
JR
123842007-07-24 Jason Rumney <jasonr@gnu.org>
12385
12386 * w32fns.c (x_real_positions): Get real position from OS instead of
12387 calculating it.
12388
50624218
JR
123892007-07-23 Jason Rumney <jasonr@gnu.org>
12390
12391 * filelock.c (current_lock_owner): Allow for @ sign in username.
12392
3650f60e
NR
123932007-07-22 Nick Roberts <nickrob@snap.net.nz>
12394
12395 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
12396 remote default-directory.
12397
12398 * buffer.c (mode-line-format): Describe above case in doc string.
12399
1e899515 124002007-07-20 Eli Zaretskii <eliz@gnu.org>
b395d6e1 12401
75be5258
EZ
12402 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
12403 Define if not defined.
12404
2b6e2f4d
JR
124052007-07-18 Jason Rumney <jasonr@gnu.org>
12406
12407 * w32proc.c (w32_executable_type): Handle 64 bit executables.
12408
23dacf80
JB
124092007-07-18 Richard Stallman <rms@gnu.org>
12410
12411 * data.c (Fsetq_default): Doc fix.
12412
12413 * eval.c (Fsetq): Doc fix.
12414
124152007-07-18 Juanma Barranquero <lekktu@gmail.com>
12416
12417 * coding.c (Ffind_operation_coding_system):
12418 * eval.c (For, Fand): Doc fixes.
880820fe 12419 Reported by Johan Bockgård.
23dacf80 12420
880820fe 124212007-07-18 Jan Djärv <jan.h.d@swipnet.se>
656de71a 12422
23dacf80 12423 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
656de71a 12424
23dacf80 12425 * xterm.h: Declare x_ewmh_activate_frame.
656de71a
JD
12426
12427 * xterm.c (x_ewmh_activate_frame): New function.
12428 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
12429
71ec17e6
MR
124302007-07-17 Martin Rudalics <rudalics@gmx.at>
12431
12432 * window.c (Fdisplay_buffer): If largest or LRU window is the
12433 only window, split it even if it is not eligible for splitting.
12434 This restores the original behavior broken by the 2007-07-15
12435 change.
12436
e9818042
GM
124372007-07-17 Glenn Morris <rgm@gnu.org>
12438
12439 * abbrev.c (abbrev_check_chars): New function.
6b8e474c
SM
12440 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
12441 Call abbrev_check_chars to check abbrev characters are word
e9818042
GM
12442 constituents. Doc fix.
12443
e6fca843
SM
124442007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
12445
12446 * process.c (Fstart_process, Fmake_network_process)
12447 (read_process_output): Fix up last changes.
12448
b5d2b4ab
EZ
124492007-07-16 Eli Zaretskii <eliz@gnu.org>
12450
12451 * makefile.w32-in (clean): Don't delete *~.
12452
413a79ad
AS
124532007-07-16 Andreas Schwab <schwab@suse.de>
12454
12455 * window.c (Fdisplay_buffer): Use NILP.
12456 (Fset_window_scroll_bars): Likewise.
12457
f1de8c77
MR
124582007-07-15 Martin Rudalics <rudalics@gmx.at>
12459
12460 * window.c (window_min_size_2): New function.
12461 (window_min_size_1, size_window, Fdisplay_buffer)
12462 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
12463 windows without mode- or header-lines when window-min-height is
12464 too small.
12465 (size_window): Reset nodelete_p after testing it, following an
12466 earlier note by Kim F. Storm.
12467 (display_buffer): Do not set split_height_threshold to twice the
12468 value of window_min_height to avoid changing the value of a
12469 customizable variable. Rather explicitly check whether the
12470 height of the window that shall be splitted is at least as large
12471 as split_height_threshold.
1af74d06
MB
12472 (Fwindow_full_width_p): New defun.
12473 (syms_of_window): Defsubr it.
d31053f9 12474
1af74d06 12475 * window.h: Add EXFUN for Fwindow_full_width_p.
f1de8c77 12476
5e1ab613
JR
124772007-07-14 Jason Rumney <jasonr@gnu.org>
12478
12479 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
12480
f01cbfdd
RS
124812007-07-14 Richard Stallman <rms@gnu.org>
12482
12483 * eval.c (maybe_call_debugger): New function.
12484 (find_handler_clause): Use maybe_call_debugger.
12485 Call it when the handler says `debug'.
12486 Eliminate DEBUGGER_VALUE_PTR.
12487 (Fsignal): Eliminate debugger_value.
12488 (Qdebug): New variable.
12489 (syms_of_eval): Initialize it.
12490
1bab435a
JB
124912007-07-14 Juanma Barranquero <lekktu@gmail.com>
12492
12493 * eval.c (Fprogn):
12494 * keyboard.c (Ftrack_mouse):
12495 * print.c (Fwith_output_to_temp_buffer):
12496 * window.c (Fsave_window_excursion): Doc fix.
12497
be436d23
SM
124982007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
12499
12500 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
12501
60f0fb11
SM
125022007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
12503
12504 * process.h (struct Lisp_Process): Turn slots infd, outfd,
12505 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
12506 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
12507 read_output_delay, and read_output_skip from Lisp_Objects to ints.
12508 Remove unused encoding_carryover.
12509 * process.c: Adjust all functions accordingly.
12510
d8b18043
RS
125112007-07-12 Richard Stallman <rms@gnu.org>
12512
12513 * term.c: Include unistd.h only if HAVE_UNISTD_H.
12514
d5781bb6
JR
125152007-07-11 Jason Rumney <jasonr@gnu.org>
12516
12517 * makefile.w32-in (LIBS): Include OLE32.
12518
12519 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
12520 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
12521
5bb7dfee
SM
125222007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
12523
12524 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
12525 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
12526 from a Lisp_Object into a bare pointer.
12527 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
12528 Adjust the code correspondingly.
12529
12530 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
12531
12532 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
12533 (term_show_mouse_face): Remove unused var `j'.
12534 (handle_one_term_event): Remove unused vars `i' and `j'.
12535 Don't cast return value of ttyname since it's not necessary.
12536
a1be1ce8
SM
125372007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
12538
5045e68e
SM
12539 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
12540 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
12541
8071c00f
SM
12542 * fns.c (map_char_table): Use an array of int for `indices' rather than
12543 an array of Lisp_Objects (which are only ever integers anyway).
12544 (Fmap_char_table): Update caller.
12545 * lisp.h: Update prototype.
12546 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
12547 * fontset.c (Ffontset_info):
12548 * casetab.c (set_case_table): Update callers.
12549
12550 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
12551
fab84e3c
SM
12552 * keymap.c (struct accessible_keymaps_data)
12553 (struct where_is_internal_data): New structures.
12554 (accessible_keymaps_1, where_is_internal_1): Use them to change
12555 interface to adhere to the one used by map_keymap.
12556 (Faccessible_keymaps, where_is_internal): Use map_keymap.
12557 (accessible_keymaps_char_table, where_is_internal_2): Remove.
12558
a1be1ce8
SM
12559 * keymap.h (map_keymap_function_t): More informative prototype.
12560
ef887810
RS
125612007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
12562
12563 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
12564 (looking_at_1): Don't change search_regs and last_thing_searched
12565 if `inhibit-changing-match-data' is non-nil.
12566 (string_match_1, search_buffer, set_search_regs): Likewise.
12567 (syms_of_search): Add Lisp level definition for
12568 `inhibit-changing-match-data' and set it to nil.
8071c00f
SM
12569 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
12570 start and end of the match, instead of using values in search_regs.
ef887810 12571
4d02fc25
SM
125722007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
12573
12574 * minibuf.c (Fcompleting_read): New value `confirm-only'
12575 for `require-match'.
12576
fe45b81f
SM
125772007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
12578
12579 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
12580 part of the 2007-06-27 change to syms_of_fileio.
12581
a56dd283
YM
125822007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12583
12584 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
12585 Check WINDOWP before using XWINDOW. Consolidate return statements.
12586
0cf9f5b5
RS
125872007-06-27 Richard Stallman <rms@gnu.org>
12588
12589 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
12590
a66f285a
JB
125912007-06-27 Juanma Barranquero <lekktu@gmail.com>
12592
12593 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
12594
8d0d84d2
YM
125952007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12596
12597 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
12598 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
12599 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
12600 (_free_internal, memalign): Use them.
12601 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
12602 Initialize to PTHREAD_MUTEX_INITIALIZER.
12603 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
12604 (morecore_nolock): Rename from morecore. All uses changed.
12605 Use only nolock versions of internal allocation functions.
12606 (_malloc_internal_nolock, _realloc_internal_nolock)
12607 (_free_internal_nolock): New functions created from
12608 _malloc_internal, _realloc_internal, and _free_internal.
12609 (_malloc_internal, _realloc_internal, _free_internal): Use them.
12610 Copy hook value to automatic variable before its use.
12611 (memalign): Copy hook value to automatic variable before its use.
12612
5a0bbd9a
KH
126132007-06-26 Kenichi Handa <handa@m17n.org>
12614
12615 * coding.c (Ffind_operation_coding_system): Docstring improved.
12616 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
12617
9a51747b
DK
126182007-06-25 David Kastrup <dak@gnu.org>
12619
12620 * keymap.c (Fcurrent_active_maps): Add `position' argument.
12621 (Fwhere_is_internal): Adjust call to `current-active-maps' to
12622 cater for additional parameter.
12623
12624 * keymap.h: Adjust number of parameters to `current-active-maps'.
12625
12626 * doc.c (Fsubstitute_command_keys): Adjust call of
12627 `current-active-maps'.
12628
e4305426
DK
126292007-06-25 David Kastrup <dak@gnu.org>
12630
12631 * callint.c (Fcall_interactively): Make the parsing of interactive
12632 specs somewhat more readable.
12633
511a18d9
YM
126342007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12635
12636 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
12637 to scroll bar gap also when bitmap fills fringe. Draw only foreground
12638 if extended background has already been filled.
12639
512eb161
YM
126402007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12641
12642 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
12643 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
12644
12645 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
12646 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
12647 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
12648 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
12649 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
12650 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
12651 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
12652 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
12653 Run timers during dialog popup.
12654 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
12655
2386b1f1
JR
126562007-06-21 Jason Rumney <jasonr@gnu.org>
12657
12658 * image.c (convert_mono_to_color_image): Swap fore and background.
12659
fab8b787
JR
126602007-06-20 Jason Rumney <jasonr@gnu.org>
12661
12662 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
12663 (w32_free_bdf_font): Unmap memory not handle.
12664
15bdd7a0 126652007-06-20 Sam Steingold <sds@gnu.org>
3cacba85
SS
12666
12667 * gmalloc.c (__morecore): Fix the declaration to comply with the
12668 definition.
12669
1bb8a291
JB
126702007-06-20 Juanma Barranquero <lekktu@gmail.com>
12671
12672 * w32term.c (w32_delete_display): Remove leftover declaration.
12673 (w32_define_cursor, w32_initialize): Make static.
12674
12675 * w32.c (_wsa_errlist): Fix typo in error message.
12676 (init_environment): Ignore any environment variable from the
12677 registry having a null value.
12678
92648dea
GM
126792007-06-20 Glenn Morris <rgm@gnu.org>
12680
12681 * Makefile.in (LIBGIF): Default to -lgif.
12682
ff25d115
JR
126832007-06-17 Jason Rumney <jasonr@gnu.org>
12684
12685 * w32menu.c (add_menu_item): Don't use multibyte string functions on
12686 unicode strings.
12687
a1a578a5
JB
126882007-06-16 Juanma Barranquero <lekktu@gmail.com>
12689
12690 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
12691 Fix typo in docstring.
12692
af41f8a8
EZ
126932007-06-16 Eli Zaretskii <eliz@gnu.org>
12694
12695 * w32menu.c (add_menu_item): Escape `&' characters in menu items
12696 and their keybindings.
12697
8b29cab9
CY
126982007-06-15 Chong Yidong <cyd@stupidchicken.com>
12699
12700 * composite.c (update_compositions): Fix last fix.
12701
c433c134
JR
127022007-06-14 Jason Rumney <jasonr@gnu.org>
12703
12704 * w32.c (get_process_times_fn): New function pointer.
12705 (globals_of_w32): Intialize it if present in kernel32.dll.
12706 (w32_get_internal_run_time): New function.
12707
12708 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
12709
553d3164
KH
127102007-06-14 Kenichi Handa <handa@etlken.m17n.org>
12711
12712 * composite.c (update_compositions): Check the validness of
12713 compositions.
12714
446ba96f
YM
127152007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12716
12717 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
12718 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
12719
12720 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
12721 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
12722
12723 * macgui.h (USE_MAC_TOOLBAR): New define.
12724
12725 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
12726 Return immediately unless popup is activated.
12727
12728 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
12729 background to scroll bar gap.
12730 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
12731 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
12732 scroll bars on frame edge. Check fringe background extension.
12733 Don't clear extended fringe background area.
12734 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
12735 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
12736 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
12737 [USE_MAC_TOOLBAR]: New macros.
12738 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
12739 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
12740 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
12741 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
12742 [USE_MAC_TOOLBAR]: New functions.
12743 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
12744 manually if previous repositioning has failed.
12745 (mac_handle_keyboard_event): Use precomputed event kind.
12746 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
12747 as tool bar item click. Handle mouse movement over tool bar items.
12748
12749 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
12750 toolbar_win_gravity.
12751 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
12752 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
12753 Add externs.
12754
12755 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
12756 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
12757
9720173f
CY
127582007-06-14 Chong Yidong <cyd@stupidchicken.com>
12759
12760 * image.c (search_image_cache): Remove unused variable.
12761
1217dd00
CY
127622007-06-13 Chong Yidong <cyd@stupidchicken.com>
12763
12764 * xfns.c, xmenu.c: Link to xaw3d if available.
12765
c5b8e0ea
YM
127662007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12767
12768 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
12769 frame_foreground and frame_background.
12770
12771 * image.c (lookup_image): Save frame foreground and background colors.
12772 (search_image_cache): Check if saved and current frame colors match.
12773
c69b0314
SM
127742007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
12775
12776 * regex.c (regex_compile): Remove the `regnum' counter.
12777 Use bufp->re_nsub instead. Add support for \(?N:RE\).
12778
c9612b8e
SM
127792007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
12780
12781 * term.c: Include intervals.h to declare Fget_text_property.
12782
843d2458
JR
127832007-06-10 Jason Rumney <jasonr@gnu.org>
12784
12785 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
12786
1e0d2d60 127872007-06-08 Juanma Barranquero <lekktu@gmail.com>
977f6cfb
JB
12788
12789 * callint.c (Fcall_interactively):
12790 * editfns.c (Fdelete_and_extract_region):
12791 * fileio.c (Fread_file_name):
12792 * fns.c (Fmapconcat):
12793 * keyboard.c (cmd_error_internal):
12794 * keymap.c (Fkey_description):
12795 * lread.c (openp):
12796 * minibuf.c (read_minibuf):
12797 * search.c (wordify):
12798 * sunfns.c (sel_read):
12799 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
12800 * xfns.c (x_default_scroll_bar_color_parameter):
12801 * xmenu.c (menu_help_callback):
12802 * xselect.c (Fx_get_atom_name):
12803 * xterm.c (x_term_init): Use empty_unibyte_string.
12804
15bdd7a0 128052007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
977f6cfb
JB
12806
12807 * alloc.c (init_strings): Initialize canonical empty strings.
12808 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
12809 canonical empty string when the requested size is 0.
12810
12811 * emacs.c (empty_unibyte_string): Rename from empty_string.
12812 (empty_multibyte_string): New canonical empty string.
12813 (syms_of_emacs): Don't initialize empty_string.
12814
12815 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
12816 string, if appropriate.
12817 (empty_unibyte_string, empty_multibyte_string): New externs.
12818 (empty_string): Remove extern.
12819
12820 * lread.c (syms_of_lread): Use empty_unibyte_string.
12821
42c4c67a
JR
128222007-06-07 Jason Rumney <jasonr@gnu.org>
12823
12824 * s/ms-w32.h: Don't define HAVE_TZNAME.
12825
12826 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
12827
aa8280d3
YM
128282007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12829
12830 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
12831
12832 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
12833 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
12834
12835 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
12836 Don't call next handler.
12837 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
12838 Remove argument. Install handler to application.
12839 (set_frame_menubar): Don't change deep_p.
1e0d2d60 12840 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
aa8280d3
YM
12841 FRAME_OUTER_TO_INNER_DIFF_Y.
12842 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
12843 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
12844 [HAVE_DIALOGS]: New macros.
12845 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
12846 Use them.
12847 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
12848
12849 * macselect.c [MAC_OSX] (install_service_handler): Rename from
12850 init_service_handler. All callers changed. Return OSStatus value.
12851
12852 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
12853 All callers changed so as not to call SetPortWindowPort.
12854 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
12855 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
12856 mac_draw_string_common.
12857 (mac_draw_image_string_qd): Likewise.
12858 (mac_draw_string_common): Use them. Add INLINE.
12859 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
12860 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
12861 GetGlobalMouse.
12862 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
12863 and FRAME_OUTER_TO_INNER_DIFF_Y.
12864 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
12865 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
12866 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
12867 repositioning window to mac_handle_window_event.
12868 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
12869 saving window location to mac_handle_window_event
12870 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
12871 (install_menu_target_item_handler): Remove argument in extern.
12872 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
12873 Also accept command events.
12874 (do_keystroke): New function created from XTread_socket.
12875 (init_command_handler): Remove functions.
12876 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
12877 and save window location by kEventWindowShowing and kEventWindowHiding
12878 handlers here. Don't call next handler for window state change and
12879 focus events.
12880 (mac_handle_application_event, mac_handle_keyboard_event)
12881 [TARGET_API_MAC_CARBON]: New functions.
12882 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
12883 kEventWindowShowing and kEventWindowHiding events. Move installation
12884 of mouse, font, text input and menu target item handlers to
12885 install_application_handler.
12886 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
12887 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
12888 New function.
12889 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
12890 Register it.
c9612b8e
SM
12891 (XTread_socket) [TARGET_API_MAC_CARBON]:
12892 Consolidate SendEventToEventTarget calls.
12893 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
12894 Move application activation handler to mac_handle_application_event.
12895 Move keyboard handler to mac_handle_keyboard_event.
aa8280d3
YM
12896 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
12897 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
12898 init_command_handler. Call install_application_handler.
12899
12900 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
12901 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
12902
6926c954
GM
129032007-06-07 Glenn Morris <rgm@gnu.org>
12904
12905 * emacs.c (main): Use `emacs-copyright' in --version output.
12906
6fe04c89
CY
129072007-06-06 Chong Yidong <cyd@stupidchicken.com>
12908
c9612b8e 12909 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
6fe04c89 12910
7eb0d727
YM
129112007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12912
12913 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
12914
12915 * macgui.h: Replace WindowPtr with WindowRef.
12916
12917 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
12918 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
12919 Replace ControlHandle with ControlRef.
12920 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
12921
12922 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
12923 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
12924 Replace ControlHandle with ControlRef.
12925 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
12926 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
12927
12928 * macterm.h (struct scroll_bar): Rename member control_handle_low
12929 and control_handle_high to control_ref_low and control_ref_high.
12930 All uses changed.
12931 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
12932 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
12933 respectively. All uses changed.
12934 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
12935 (install_window_handler, remove_window_handler): Replace WindowPtr
12936 with WindowRef in externs.
12937
65fddb74
JB
129382007-06-05 Juanma Barranquero <lekktu@gmail.com>
12939
12940 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
12941
db1213a9
NR
129422007-06-03 Nick Roberts <nickrob@snap.net.nz>
12943
12944 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
12945
65fddb74 12946 * frame.c (Fmouse_position, Fmouse_pixel_position):
db1213a9
NR
12947 Condition on HAVE_GPM too.
12948
12949 * term.c (term_mouse_highlight): Remove unused variables.
12950 (Fterm_open_connection): Set gpm_zerobased to 1.
12951 (term_mouse_movement, term_mouse_click, handle_one_term_event):
12952 Use zero based co-ordinates.
12953 (handle_one_term_event): Report a drag as mouse movement too.
12954
12955 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
12956
d94df25b
CY
129572007-06-03 Chong Yidong <cyd@stupidchicken.com>
12958
12959 * image.c (search_image_cache): New function. Require background
12960 color match if background color is unspecified in the image spec.
12961 (uncache_image, lookup_image): Use it.
12962
4797b6d9
JB
129632007-06-01 Juanma Barranquero <lekktu@gmail.com>
12964
12965 * window.c (Fshrink_window): Reflow docstring.
12966
1ffe7343
NR
129672007-06-02 Chong Yidong <cyd@stupidchicken.com>
12968
12969 * Version 22.1 released.
12970
129712007-06-01 Richard Stallman <rms@gnu.org>
12972
12973 * xfns.c (x_encode_text): Add GCPRO.
12974
129752007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12976
12977 * xfns.c (x_set_name_internal): Save encoded name before
12978 x_encode_text in case string data is relocated.
12979
129802007-05-31 Richard Stallman <rms@gnu.org>
12981
12982 * buffer.c (syms_of_buffer): Doc fix.
12983
129842007-05-30 Nick Roberts <nickrob@snap.net.nz>
12985
12986 * sysdep.c (init_sys_modes): Add rather than replace with
12987 O_NONBLOCK.
12988
12989 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
12990 term_mouse_moveto.
12991
12992 * termhooks.h (term_mouse_moveto): New extern.
12993
12994 * term.c (mouse_face_window): Rename...
12995 (Qmouse_face_window): ...to this.
12996 (term_show_mouse_face, term_clear_mouse_face)
12997 (term_mouse_highlight): Use Qmouse_face_window.
12998 (term_mouse_moveto): New function.
12999 (term_mouse_position): Make it work.
13000 (syms_of_term): Uncomment assignment to mouse_position_hook.
13001 Staticpro Qmouse_face_window.
13002
130032007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13004
13005 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
13006 around current_column call.
13007
130082007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
13009
13010 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
13011 * xdisp.c (next_element_from_buffer):
13012 * window.c (delete_window):
13013 * term.c (term_mouse_highlight):
13014 * msdos.c (getdefdir):
13015 * macterm.c (mac_create_bitmap_from_bitmap_data)
13016 (init_font_name_table):
13017 * fns.c (Fsxhash):
13018 * data.c (Fmake_local_variable):
13019 * ccl.c (ccl_driver): Likewise.
13020
130212007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13022
13023 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
13024 Call mac_wakeup_from_rne on window size change.
13025
130262007-05-25 Chong Yidong <cyd@stupidchicken.com>
13027
13028 * image.c (uncache_image): Fix typo.
13029
130302007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
13031
13032 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
13033
130342007-05-22 Richard Stallman <rms@gnu.org>
13035
13036 * xterm.c (x_connection_closed): Remove NO_RETURN.
13037
130382007-05-22 Martin Rudalics <rudalics@gmx.at>
13039
13040 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
13041
130422007-05-21 Chong Yidong <cyd@stupidchicken.com>
13043
13044 * image.c (uncache_image): New function.
13045 (Fimage_refresh): New function.
13046
880820fe 130472007-05-20 Jan Djärv <jan.h.d@swipnet.se>
1ffe7343
NR
13048
13049 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
13050
130512007-05-20 Nick Roberts <nickrob@snap.net.nz>
13052
13053 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
13054 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
13055
130562007-05-20 Nick Roberts <nickrob@snap.net.nz>
13057
13058 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
13059 conditional on [HAVE_GPM_H].
13060
130612007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
13062
13063 * syntax.c (skip_chars): Update syntax-table only after we checked that
13064 the new location is valid.
13065
130662007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13067
13068 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
13069 mac_get_window_bounds.
13070
130712007-05-20 Nick Roberts <nickrob@snap.net.nz>
13072
13073 * Makefile.in (LIBGPM): Allow it to be set from configure.
13074 If set then link Emacs with it.
13075
13076 * config.in: Regenerate.
13077
13078 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
13079 New externs.
13080
13081 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
13082 Include gpm.h.
13083 (handle_one_term_event, term_gpm): New externs.
13084
13085 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
13086 and allow it to be interrupted by SIGIO.
13087
13088 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
13089 (wait_reading_process_output): Wait on gpm_fd too.
13090 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
13091 (add_gpm_wait_descriptor_called_flag): New variable.
13092 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
13093
13094 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
13095 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
13096 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
13097 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
13098 (make_lispy_event): Add case GPM_CLICK_EVENT.
13099 (read_avail_input): Handle mouse input.
13100
13101 * term.c (write_glyphs_with_face): New function.
13102 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
13103 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
13104 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
13105 (mouse_face_face_id, term_gpm, pos_x, pos_y)
13106 (last_mouse_x, last_mouse_y): New variables.
13107 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
13108 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
13109 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
13110 (Fterm_close_connection): New functions.
13111 (term_init): Initialise mouse_face_window.
13112
131132007-05-19 Chong Yidong <cyd@stupidchicken.com>
13114
13115 * xdisp.c (redisplay_window): If first window line is a
13116 continuation line, recompute the new window start instead of
13117 recentering.
13118
131192007-05-18 Glenn Morris <rgm@gnu.org>
13120
13121 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
13122 Suggested by Alfred M. Szmidt <ams@gnu.org>.
13123
131242007-05-17 Glenn Morris <rgm@gnu.org>
13125
13126 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
13127
131282007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13129
13130 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
13131 dead key repeat and up events.
13132
131332007-05-14 Chong Yidong <cyd@stupidchicken.com>
13134
13135 * image.c (pbm_load): Check image size for monochrome pbm.
13136
131372007-05-13 Chong Yidong <cyd@stupidchicken.com>
13138
13139 * xterm.c (XTread_socket): Revert last change.
13140
131412007-05-12 Chong Yidong <cyd@stupidchicken.com>
13142
13143 * image.c (pbm_load): Correctly check image size for greyscale pbm.
13144
13145 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
13146
131472007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
13148
13149 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
13150 mixup (YAILOM).
13151
131522007-05-07 Andreas Schwab <schwab@suse.de>
13153
13154 * keymap.c (Flookup_key): Fix typo in last change.
13155
131562007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
13157
13158 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
13159 mapping for unibyte strings.
13160
131612007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13162
13163 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
13164 (Fx_popup_dialog) [MAC_OSX]: Likewise.
13165
131662007-04-29 Richard Stallman <rms@gnu.org>
13167
13168 * insdel.c (replace_range): For undo, record insertion first.
13169
131702007-04-29 Andreas Schwab <schwab@suse.de>
13171
13172 * lisp.h (VECSIZE): Use OFFSETOF.
13173
131742007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13175
13176 * xdisp.c (try_window_reusing_current_matrix): Fix number of
13177 disabled lines.
13178
131792007-04-28 Richard Stallman <rms@gnu.org>
13180
13181 * lread.c (read_escape): In a string, \s is always space.
13182
880820fe 131832007-04-27 Jan Djärv <jan.h.d@swipnet.se>
1ffe7343
NR
13184
13185 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
13186
13187 * gtkutil.c (xg_update_menubar, create_menus): Create empty
13188 submenu for menu bar items.
13189
382c648d 13190See ChangeLog.10 for earlier changes.
6922b018
KH
13191
13192;; Local Variables:
880820fe 13193;; coding: utf-8
33462dfa 13194;; add-log-time-zone-rule: t
67e8d28a 13195;; bug-reference-url-format: "http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=%s"
6922b018 13196;; End:
2a34a036 13197
59ce725a 13198 Copyright (C) 2007, 2008 Free Software Foundation, Inc.
7f6d64f8
GM
13199
13200 This file is part of GNU Emacs.
13201
5a1dde61 13202 GNU Emacs is free software: you can redistribute it and/or modify
7f6d64f8 13203 it under the terms of the GNU General Public License as published by
5a1dde61
GM
13204 the Free Software Foundation, either version 3 of the License, or
13205 (at your option) any later version.
7f6d64f8
GM
13206
13207 GNU Emacs is distributed in the hope that it will be useful,
13208 but WITHOUT ANY WARRANTY; without even the implied warranty of
13209 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13210 GNU General Public License for more details.
13211
13212 You should have received a copy of the GNU General Public License
5a1dde61 13213 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
ab5796a9 13214
28f60c3d 13215;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40