Changes to support :script/:lang/:otf in NS font driver.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
6756cd1d
CY
12009-06-07 Chong Yidong <cyd@stupidchicken.com>
2
3 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
4 account for the overflowing of newlines into the last glyph on the
5 display line (Bug#3482).
6
28bf482a
DR
72009-06-05 David Reitter <david.reitter@gmail.com>
8
9 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p,
10 Fx_selection_owner_p): rename from Fns_own_selection_internal,
11 Fns_selection_exists_p, Fns_selection_owner_p.
12
fdb55376
JR
132009-06-03 Jason Rumney <jasonr@gnu.org>
14
15 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
16 available. (Bug#3379)
17
05129fbe
KH
182009-05-29 Kenichi Handa <handa@m17n.org>
19
20 * coding.c (get_translation_table): Check
21 Venable_character_translation.
22
15891144
DR
232009-05-25 David Reitter <david.reitter@gmail.com>
24
25 * nsterm.m (ns_raise_frame): only raise frame if visible.
26 (x_make_frame_visible): move frame to front rather than calling
27 ns_raise_frame().
28 (keyDown:) do not swallow events that aren't re-sent if frame
29 isn't key window.
30 (drawRect:) do not set visibility/iconified flags because
31 drawRect may be called by NSView even if the frame is hidden.
32
33 * nsfns.m (Fx_create_frame): follow other ports in
34 determining visibility; default to t. Ensure async_visible is set.
35
21f73755
EZ
362009-05-23 Eli Zaretskii <eliz@gnu.org>
37
38 * dired.c (Ffile_attributes): Doc fix.
39
34001e41
CY
402009-05-22 Chong Yidong <cyd@stupidchicken.com>
41
42 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
43
46306a17
SM
442009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
45
46 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
47 and xfont_scratch_props.
48 (syms_of_xfont): Do it here instead.
49 (xfont_find_ccl_program): Delete, unused.
50 (xfont_open): Delete unused var `i'.
51
ef6e0694
KH
522009-05-21 Kenichi Handa <handa@m17n.org>
53
54 * fontset.c (Qlatin): Don't make it static.
55
46306a17
SM
56 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
57 New functions.
ef6e0694
KH
58 (xfont_scripts_cache, xfont_scratch_props): New variables.
59 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
60 (xfont_list_pattern): Argument changed. Callers changed.
61 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
62 (xfont_list): Don't reject a font spec with :script property.
63 (xfont_has_char): Fix setting of encoding.
64 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
65 xfont_scratch_props.
66
672009-05-19 Kenichi Handa <handa@m17n.org>
68
46306a17 69 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
70 Callers changed.
71
722009-05-18 Kenichi Handa <handa@m17n.org>
73
74 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
75
ac71ced7
SM
762009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
77
78 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
79 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
80
1c6d1051
YM
812009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
82
83 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
84 (x_delete_terminal): Dissociate resource database from display and
85 then call XrmDestroyDatabase before closing display.
86
9b9b779c
AR
872009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
88
89 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
90 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
91 whether selected frame is viable before raising it (based on patch
92 by David Reitter), and improve commentary.
93 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 94
cccd42d5
KH
952009-05-15 Kenichi Handa <handa@m17n.org>
96
97 * font.c (Ffont_spec): Check arguments.
98
337fbd17
CY
992009-05-14 Chong Yidong <cyd@stupidchicken.com>
100
101 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
102 weight when testing attributes (Bug#3282).
103
47a6002f
JD
1042009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
105
106 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
107 what we expect to get in the next ConfigureNotify event.
108
9cb363db
YM
109 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
110 before Xft one (Bug#1696).
111
b9126609
CY
1122009-05-07 David Reitter <david.reitter@gmail.com>
113
114 * nsfns.m (Fx_display_planes): Compute bitplanes using
115 NSBitsPerPixelFromDepth (Bug#3207).
116
27a69fd9
CY
1172009-05-10 Chong Yidong <cyd@stupidchicken.com>
118
119 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
120
00f37552
TTN
1212009-05-10 Ulrich Mueller <ulm@gentoo.org>
122
123 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
124
2d82a920
DR
1252009-05-07 David Reitter <david.reitter@gmail.com>
126
127 * nsterm.m (ns_dumpglyphs_stretch,ns_dumpglyphs_image):
128 respect mouse face background.
129
46b0d52d
DR
1302009-05-07 David Reitter <david.reitter@gmail.com>
131
132 * nsterm.m (note_mouse_movement,ns_frame_up_to_date):
133 mouse movement/highlight: bracket drawing operations
134 in ns_update_begin and ns_update_end.
135
ce1b23bb
SM
1362009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
137
5996e1b7
SM
138 * nsfns.m (ns_get_screen): Rewrite.
139 Don't presume selected-frame is of type `ns'.
140
ba98e3a0
SM
141 * font.c (font_update_drivers): Sanity fallback to avoid disabling
142 all drivers.
143
ce1b23bb
SM
144 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
145
bcda200f
YM
1462009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
147
148 * keyboard.h (add_user_signal): Fix typo in extern.
149
150 * lisp.h (add_user_signal): Remove extern.
151
152 * unexelf.c (unexec): Consider a section to precede the .bss section
153 if its addresses overlap that of .bss.
154 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
155 instead of dumping process.
156
864660a2
SM
1572009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
158
159 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
160
50da4e56
SM
1612009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
162
163 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
164
51520a1a
DN
1652009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
166
167 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
168 any statements.
169
409ea3a1
AS
1702009-05-02 Andreas Schwab <schwab@linux-m68k.org>
171
59c4c60f
AS
172 * process.c (read_process_output): Make sure the current buffer is
173 always restored.
174
409ea3a1
AS
175 * coding.c (record_conversion_result): Don't modify
176 Vlast_code_conversion_error for successful result.
177 (alloc_destination): Don't clobber conversion result. (Bug#1650)
178
56f00ed2
KH
1792009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
180
181 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 182 (load_charset_map): Remove unnecessary code.
56f00ed2 183
4491c9d2
DR
1842009-04-30 David Reitter <david.reitter@gmail.com>
185
35f5b128 186 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
187 through f24.
188
6970f632
CY
1892009-04-30 Chong Yidong <cyd@stupidchicken.com>
190
191 * xfaces.c (face_at_buffer_position): New arg base_face_id.
192
193 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
194 face_at_buffer_position.
195 (face_before_or_after_it_pos, get_next_display_element)
196 (note_mouse_highlight): Update face_at_buffer_position call.
197
198 * term.c (term_mouse_highlight):
199 * msdos.c (IT_note_mouse_highlight):
200 * fontset.c (Finternal_char_font):
35f5b128 201 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
202
203 * dispextern.h (face_at_buffer_position): Update prototype.
204
0c616f63
KH
2052009-04-30 Kenichi Handa <handa@m17n.org>
206
35f5b128 207 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 208
ad3aaf33
AS
2092009-04-29 Andreas Schwab <schwab@linux-m68k.org>
210
211 * callproc.c (Fcall_process): Fix GC protection. Make sure
212 current buffer is always restored.
213
c3c963a0
YM
2142009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
215
216 * atimer.c (init_atimer): Also clear stopped_atimers.
217
218 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
219
7e3386cb
YM
220 * process.c (create_process): Clean up merger residues of
221 2008-07-17 change.
222
91f68422
CY
2232009-04-29 Ulrich Mueller <ulm@gentoo.org>
224
225 * lread.c (Vread_circle): New variable.
226 (read1): Disable recursive read if Vread_circle is nil.
227
24b34550
KH
2282009-04-29 Kenichi Handa <handa@m17n.org>
229
230 * fontset.h (set_default_ascii_font): Delete extern.
231
232 * fontset.c (set_default_ascii_font): Delete this unused function.
233
234 * frame.c (x_set_font): When ARG is a font-object, check if the
235 font-object matches with the ASCII font-spec of the frame's
9c358bda 236 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 237
77bf07e1
AS
2382009-04-28 Andreas Schwab <schwab@linux-m68k.org>
239
240 * fns.c (Flocale_info): Protect vector from GC during decoding.
241
242 * process.c (Fstart_process): Protect argv strings from GC during
243 encoding.
244
2c55aacf
AS
2452009-04-27 Andreas Schwab <schwab@linux-m68k.org>
246
247 * sysdep.c: Include <ctype.h>.
248
b892d3c9
DR
2492009-04-27 David Reitter <david.reitter@gmail.com>
250
35f5b128 251 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
252 Remove commented-out code.
253
9d0644c4
JB
2542009-04-26 Johan Bockgård <bojohan@gnu.org>
255
256 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
257
b7053016
JR
2582009-04-25 Jason Rumney <jasonr@gnu.org>
259
260 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
261
4e8231f3
YM
2622009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
263
264 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
265 Swap bytes in short integer if fringe bitmap width > 8.
266
493dcf2c
KH
2672009-04-23 Kenichi Handa <handa@m17n.org>
268
269 * xfaces.c (Fx_list_fonts): If a font size is specified in
270 PATTERN, set it in returned scalable fonts.
271
401e9e57
CY
2722009-04-22 Chong Yidong <cyd@stupidchicken.com>
273
708e05dc
CY
274 * keyboard.c (Fset_input_meta_mode): Doc fix.
275
276 * dispnew.c (Fsend_string_to_terminal): Doc fix.
277
278 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc
279 fixes.
280
281 * coding.c (Fterminal_coding_system): Doc fix.
282
283 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
284 (Fx_display_pixel_height, Fx_display_planes)
285 (Fx_display_color_cells, Fx_server_max_request_size)
286 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
287 (Fx_display_mm_height, Fx_display_mm_width)
288 (Fx_display_backing_store, Fx_display_visual_class)
289 (Fx_display_save_under, Fx_close_connection, Fx_synchronize): Doc
290 fixes, replacing "terminal id" with "terminal object".
291 (check_x_display_info): Handle terminal objects instead of
292 terminal ids.
293
401e9e57
CY
294 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
295 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
fdc496e7
CY
296 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions): Doc
297 fixes, replacing "terminal id" with "terminal object".
401e9e57 298
df80c7f0
KH
2992009-04-21 Kenichi Handa <handa@m17n.org>
300
5a8f12af 301 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 302 (font_score): Check AVGWIDTH too.
908567ef 303
df80c7f0
KH
304 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
305 worst case.
306 (decode_coding_emacs_mule, decode_coding_iso_2022)
307 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
308 Likewise.
309
705af33f
JR
3102009-04-19 Jason Rumney <jasonr@gnu.org>
311
312 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 313 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
314
315 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
316 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
317 get_phys_cursor_geometry.
318
b71ac3dd 319 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
320 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
321 using get_phys_cursor_geometry.
322
323 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
324 correctly calculated.
325
dc2933eb
JD
3262009-04-19 Jan Djärv <jan.h.d@swipnet.se>
327
328 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar): Use
329 G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
330 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
331 is deprecated.
332
973e7849
AS
3332009-04-18 Andreas Schwab <schwab@linux-m68k.org>
334
335 * font.c (font_put_frame_data): Use xfree instead of free.
336
314d66f4
JB
3372009-04-17 Juanma Barranquero <lekktu@gmail.com>
338
339 * w32font.c (Qja, Qko): Remove declarations.
340 (syms_of_w32font): Don't DEFSYM them.
341
cf702558
CY
3422009-04-17 Chong Yidong <cyd@stupidchicken.com>
343
344 * font.c (Qja, Qko): Move definitions here from ftfont.c.
345
346 * font.h (Qja, Qko): Extern them.
347
348 * ftfont.c (Qja, Qko): Remove declarations.
349
350 * xfont.c (Qja, Qko): Remove declarations.
351
b50504f5
KH
3522009-04-17 Kenichi Handa <handa@m17n.org>
353
bde25748
KH
354 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
355 string from a vector to handle Latin-1 characters correctly.
356
b50504f5
KH
357 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
358 entity even if the cache hits.
359
f4646fff
AS
3602009-04-16 Andreas Schwab <schwab@linux-m68k.org>
361
362 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 363 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 364
e7deaab0
AS
365 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
366 * lisp.h: Adjust prototypes.
367
0a0e7d49
CY
3682009-04-16 Chong Yidong <cyd@stupidchicken.com>
369
370 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
371 change (Bug#3003).
372
3c908a57
KH
3732009-04-16 Kenichi Handa <handa@m17n.org>
374
bd0af90d
KH
375 * xfont.c (xfont_has_char): Special handling of `ja' and `ko'
376 adstyle.
377
378 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
379 adstyle.
380
381 * ftfont.c (Qja, Qko): Don't make them static.
382 (enum ftfont_cache_for): New enum.
383 (fc_charset_table): Undo the previous change.
384 (ftfont_get_latin1_charset): Delete it.
385 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache. Set
386 FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
387 non-scarable font, try to get AVERAGE_WIDTH.
388 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
389 Change ft_face_cache from a list of a hash-table. Don't check
390 `ja' and `ko' adstyle here.
391 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
392 FTFONT_CACHE_FOR_CHARET.
393 (ftfont_get_charset): Undo the previous change.
394 (ftfont_open): Call ftfont_lookup_cache with
395 FTFONT_CACHE_FOR_FACE.
396 (ftfont_close): Likewise.
397 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
398
399 * font.c (font_sort_entites): Change the meaning of the arg
400 BEST-ONLY. Don't optimize for VEC of lenght 1.
401 (font_select_entity): Just return the value of font_sort_entites.
402
403 * xfaces.c (merge_face_vectors): Reflect font properties in
404 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
405 font_clear_prop if a face attribute doesn't change.
406
3c908a57
KH
407 * charset.h (charset_ksc5601): Extern it.
408
409 * charset.c (charset_ksc5601): New variable.
410 (Fdefine_charset_internal): Set charset_ksc5601.
411 (init_charset_once): Initialize charset_ksc5601 to -1.
412
d65859c3
DN
4132009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
414
415 * fileio.c (history_delete_duplicates): Remove unused declaration.
416
417 * callint.c (history_delete_duplicates): New declaration.
418 (Fcall_interactively): Remove command history duplicates when
419 history_delete_duplicates is true.
420
3ba010e5
EZ
4212009-04-14 Eli Zaretskii <eliz@gnu.org>
422
423 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
424
06f19b91
KH
4252009-04-14 Kenichi Handa <handa@m17n.org>
426
427 * font.c (Ffont_info): Fix docstring. Fix the second element of
428 the returned value (bug#2949).
429
2cce8bfc
CY
4302009-04-14 Chong Yidong <cyd@stupidchicken.com>
431
432 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
433
d156542d
KH
4342009-04-14 Kenichi Handa <handa@m17n.org>
435
436 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
437 encoding charset is ascii_compatible.
438
439 * charset.c (Fdefine_charset_internal): Make charset
440 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
441 code_offset is 0, and covers all ASCII characters.
442
86fa089e
SM
4432009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
444
445 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
446 (ns_string_to_pasteboard_internal):
447 * nsmenu.m (process_dialog):
448 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
449 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
450 * lisp.h (Fx_load_color_file): Declare.
451
a8a3728b
KH
4522009-04-13 Kenichi Handa <handa@m17n.org>
453
454 * font.c (font_delete_unmatched): Preserve the order of list
455 elements.
456 (font_select_entity): Suppress the code to optimize for the same
457 kind of fonts.
458 (font_load_for_lface): Get a font that supports at least ASCII
459 characters.
460
461 * ftfont.c (Qja, Qko): New variables.
462 (fc_charset_table): Delete uniquifier data for iso8859-1.
463 (ftfont_get_latin1_charset): New function.
464 (get_adstyle_property): New function.
465 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
466 bitmap fonts.
467 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
468 Delete iso-8859-1 range from the charset of fonts whose adstyle is
469 `ko' or `ja'.
470 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
471 (ftfont_get_charset): For iso8859-1, call
472 ftfont_get_latin1_charset.
473 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
474 property.
475 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
476 (syms_of_ftfont): DEFSYM Qja and Qko.
477
483670b5
KH
4782009-04-09 Kenichi Handa <handa@m17n.org>
479
12b55765
KH
480 * charset.c (map_charset_chars): For a charset of `superset'
481 method, fix calculation of code range.
482
483670b5
KH
483 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
484 from the list of extra properties.
485 (font_clear_prop): Be sure to delete `:name' font property.
486
57d3b93b
KH
4872009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
488
b4b2c2ca
YM
489 * dispnew.c (redraw_overlapping_rows): Fix detection of
490 overlapping for topmost and bottommost rows.
491
57d3b93b
KH
492 * ftfont.c (ftfont_text_extents): Fix calculation of
493 metrics->descent.
494
472c3609
JR
4952009-04-06 Jason Rumney <jasonr@gnu.org>
496
497 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
498
ab193662
KH
4992009-04-06 Kenichi Handa <handa@m17n.org>
500
501 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
502
503 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
504
0c26f026
KH
5052009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
506
507 * ftfont.c (ftfont_open): Fix checking of the return value of
508 FT_Load_Char. Fix setting font->underline_thickness.
509
e173bbce
CY
5102009-04-04 Chong Yidong <cyd@stupidchicken.com>
511
512 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
513 (Fterminal_parameters, Fterminal_parameter)
514 (Fset_terminal_parameter): In doc string, refer to terminal
515 objects rather than terminal ids.
516
693a2698
EZ
5172009-04-04 Eli Zaretskii <eliz@gnu.org>
518
519 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
520 ret_lim_data. (Bug#2867)
521
d5221487
CY
5222009-04-03 Chong Yidong <cyd@stupidchicken.com>
523
524 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
525 so they don't get wider than the window, matching 2006-01-23
526 change to the partner function in xdisp.c (Bug#2800).
527
223509a3
KH
5282009-04-03 Kenichi Handa <handa@m17n.org>
529
530 * print.c (print_object): Make each lowest sub_char_table start a
531 new line (Bug#2866).
532
74fcd0b1
KH
5332009-04-02 Kenichi Handa <handa@m17n.org>
534
535 * fontset.c (fontset_font): Record no-font when a fontset
536 explicitly tells not to try another font-specs.
537
c542407d
SM
5382009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
539
540 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
541
e3869731
KH
5422009-03-30 Kenichi Handa <handa@m17n.org>
543
d8d2f142
KH
544 * fontset.c (fontset_from_font): Specify only registry in a
545 font-spec for all characters supported by that registry.
546
e3869731
KH
547 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
548 even if HAVE_M17N_FLT is not defined.
549
5da5f805
CY
5502009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
551
552 * ftfont.c: Conditionalize prototyping and use of
553 ftfont_variation_glyphs.
554
ab226c50
SM
5552009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
556
9628fed7
SM
557 * frame.c (delete_frame): Work around compiler bug.
558
559 * editfns.c (general_insert_function): Adjust to insdel.c changes.
560 * insdel.c (prepare_to_modify_buffer, signal_before_change):
561 Some more EMACS_INT.
562 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
563
564 * xdisp.c (dump_glyph): Fix typo.
565
ae19ba7c
SM
566 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
567 (adjust_markers_gap_motion, adjust_markers_for_delete)
568 (adjust_markers_for_insert, adjust_point)
569 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
570 (make_gap, copy_text, count_size_as_multibyte, insert)
571 (insert_and_inherit, insert_before_markers)
572 (insert_before_markers_and_inherit, insert_1)
573 (count_combining_before, count_combining_after, insert_1_both)
574 (insert_from_string, insert_from_string_before_markers)
575 (insert_from_string_1, insert_from_gap, insert_from_buffer)
576 (insert_from_buffer_1, adjust_after_replace)
577 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
578 (replace_range_2, del_range, del_range_1, del_range_byte)
579 (del_range_both, del_range_2, modify_region)
580 (prepare_to_modify_buffer, signal_before_change)
581 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
582 for buffer positions and sizes.
583 * lisp.h: Adjust prototypes accordingly.
584
585 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
586 (non_regular_inserted, non_regular_nbytes, read_non_regular)
587 (Finsert_file_contents): Use EMACS_INT for buffer positions.
588
ab226c50
SM
589 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
590
46dfb8fb
JD
5912009-03-27 Jan Djärv <jan.h.d@swipnet.se>
592
593 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
594 lines and columns so we keep the same pixel height and width.
595
596 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
597 the property _NET_WM_STATE has changed.
46dfb8fb
JD
598 (x_handle_net_wm_state): New function to update frame parameter
599 fullscreen.
600 (x_term_init): Initialize atoms for _NET_WM_STATE.
601
602 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
603
d347e494
SM
6042009-03-27 Kevin Ryde <user42@zip.com.au>
605
606 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
607 Gpm_GetEvent as an error that justifies closing the filedescriptor.
608 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
609 (Fgpm_mouse_stop): Pass that new parameter.
610 * termhooks.h (close_gpm): Adjust prototype.
611
84db11d6
SM
6122009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
613
c95a5008
SM
614 * lisp.h (Fx_focus_frame): Declare.
615
84db11d6
SM
616 * callint.c (Fcall_interactively): For '^' just delegate the work to
617 handle-shift-selection.
618 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
619
0a1958d6
CY
6202009-03-24 Chong Yidong <cyd@stupidchicken.com>
621
0bfdff23
CY
622 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
623
0a1958d6
CY
624 * data.c (Qinteractive_form): New variable.
625 (Finteractive_form): Use it.
626
627 * eval.c (Fcommandp): Use Qinteractive_form.
628
58aec0d6
JR
6292009-03-24 Jason Rumney <jasonr@gnu.org>
630
631 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
632 Calculate total size precisely. Decode environment variables
633 before substituting. (Bug#38)
634
553dd618
KH
6352009-03-24 Kenichi Handa <handa@m17n.org>
636
637 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 638 encoding (Bug#2722).
553dd618 639
c39ea606
JD
6402009-03-23 Jan Djärv <jan.h.d@swipnet.se>
641
642 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
643 that gdpy is set.
644
bc9b2b5e
AM
6452009-03-22 Alan Mackenzie <acm@muc.de>
646
647 * callint.c (Finteractive): Clarify the doc string - even
648 promptless elements need \n separators.
649
9f995a76
JR
6502009-03-22 Jason Rumney <jasonr@gnu.org>
651
652 * w32term.c (syms_of_w32term): Doc fix for
653 x-use-underline-position-properties.
654
22749e9a
EZ
6552009-03-21 Eli Zaretskii <eliz@gnu.org>
656
657 * w32.c (getpwuid): Change argument type to unsigned.
658 (struct w32_id): Change type of `rid' member to unsigned.
659 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
660 argument ID to unsigned. All callers changed.
661 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
662
e00553bf
EZ
6632009-03-20 Eli Zaretskii <eliz@gnu.org>
664
665 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
666 negative, produce a float value.
667
668 * dired.c (make_uid, make_gid): New functions.
669 (Ffile_attributes): Use them to avoid negative UID and GID.
670
f761d6b6
JB
6712009-03-20 Juanma Barranquero <lekktu@gmail.com>
672
673 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
674 (syms_of_keyboard) <command-hook-internal, input-method-function>:
675 Fix typos in docstrings.
676
d507f8d7
KH
6772009-03-19 Kenichi Handa <handa@m17n.org>
678
679 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
680 changed, use font_load_for_lface to get a new font object.
681 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
682
683 * frame.c (x_set_font): Handle the case that ARG is a cons.
684
c68845e0
GM
6852009-03-19 Glenn Morris <rgm@gnu.org>
686
687 * fileio.c (Fsubstitute_in_file_name): Doc fix.
688
bfa49dd1
CY
6892009-03-19 Chong Yidong <cyd@stupidchicken.com>
690
691 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
692
8458d4c1
KH
6932009-03-19 Kenichi Handa <handa@m17n.org>
694
695 * charset.c (load_charset_map_from_file): When a mapfile can't be
696 loaded, signal an error.
697
78e7d1fe
EZ
6982009-03-18 Eli Zaretskii <eliz@gnu.org>
699
700 * dired.c (Ffile_attributes): Make sure UID and GID are always
701 positive, even if the value is too large for a positive EMACS_INT.
702 Doc fix.
703
704 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
705
5da9fdfa
YM
7062009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
707
708 * xmenu.c (xdialog_show): Move Fredisplay call ...
709 (Fx_popup_dialog): ... here.
710
7519c40d
SM
7112009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
712
713 * dired.c (file_name_completion): Disable the first optimization just
714 installed, since it is not implemented correctly.
715
2cd298e2
SM
7162009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
717
718 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 719 only if the entry can affect bestmatch.
2cd298e2
SM
720 Stop the search early, as Ftry_completion already does.
721
48d37adf
CY
7222009-03-17 Chong Yidong <cyd@stupidchicken.com>
723
e10c9c93 724 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 725
9286b16a
CY
7262009-03-15 Chong Yidong <cyd@stupidchicken.com>
727
728 * keyboard.c (parse_menu_item): Don't display remappings as menu
729 equivalent bindings (Bug#788).
730
f7b146dc
JR
7312009-03-15 Jason Rumney <jasonr@gnu.org>
732
733 * w32term.h (WM_EMACS_PAINT): New message.
734 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
735 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
736 before passing to lisp thread. (Bug#950)
737
f761d6b6 7382009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 739
d93f9575
CY
740 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
741 variable as it was never reset.
742 (ns_term_init): Remove initialization of Lisp-settable defaults
743 and ns_expand_space.
744 (-setPanelFromDefaultValues): Remove ns_expand_space.
745 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
746 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
747 i.e. no additional spacing, similar to Carbon port.
748
d93f9575
CY
749 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
750 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 751
305018ec
JD
7522009-03-14 Jan Djärv <jan.h.d@swipnet.se>
753
754 * sound.c (alsa_configure): Remove call to deprecated
755 snd_pcm_sw_params_set_xfer_align.
756
f761d6b6 7572009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
758
759 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
760 after clicking in a detached tool bar.
761 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
762
46e722a9
SM
7632009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
764
348db3dd
SM
765 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
766 int/Lisp_Object mixup).
46e722a9 767
a3d16f39
KH
7682009-03-13 Kenichi Handa <handa@m17n.org>
769
770 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 771 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
772 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
773 (set_fontset_font): Change ARG to a vector. Handle range_list in
774 ARG correctly.
775 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 776 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
777 the above change.
778 (fontset_from_font): Fix previous change.
fe24f56a 779 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
780 entry. If FONTSET is the default fontset, don't set the extra
781 slot of the returning char-table.
782
b066e6b6
JB
7832009-03-12 Juanma Barranquero <lekktu@gmail.com>
784
785 * nsfns.m (Fx_close_connection): Doc fix.
786 (Fns_do_applescript): Reflow docstring.
787 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
788 (Fx_display_pixel_width, Fx_display_pixel_height)
789 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
790 Fix typos in docstrings.
791 (Fns_set_alpha): Fix typos in error messages.
792
d472514e 7932009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 794
d472514e 795 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
796 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
797 were used for such events.
798
d472514e
JB
799 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
800 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 801
d472514e 802 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
803 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
804
fb930676
KH
8052009-03-11 Kenichi Handa <handa@m17n.org>
806
ff85581a
KH
807 * font.h (font_open_by_spec): Extern it.
808
c50b7e98
KH
809 * font.c (font_open_by_spec): New function.
810 (font_open_by_name): Use font_open_by_spec.
811
fb930676
KH
812 * frame.c (x_set_font): When ARG is a font-object, don't alter the
813 fontset of the frame.
814
815 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
816 modify the default font of frames that use this fontset.
817 (num_auto_fontsets): New variable.
818 (fontset_from_font): Use num_auto_fontsets to decide a fontset
819 name. Be sure to set FONTSET_ASCII to the correct font name.
820 (update_auto_fontset_alist): New function.
821
df4e8455
JB
8222009-03-11 Juanma Barranquero <lekktu@gmail.com>
823
824 * makefile.w32-in: Update dependencies.
825
0a375797
AR
8262009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
827
828 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
829
61313fa3
SM
8302009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
831
832 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
833
b55103fb
CY
8342009-03-10 Chong Yidong <cyd@stupidchicken.com>
835
836 * lread.c (Feval_buffer): Doc fix.
837
dde2559c
KH
8382009-03-09 Kenichi Handa <handa@m17n.org>
839
840 * charset.c (Qfile_name_handler_alist): Extern it.
841 (load_charset_map_from_file): Temporarily bind
842 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
843
df4e8455 8442009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 845
47f588bb
GM
846 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
847 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 848
4ddf94bd
AR
8492009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
850
4c9bdfc2
AR
851 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
852 (x_set_window_size): Change back to calculated method of setting
853 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
854 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
855 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
856
fe41ae9e
AR
857 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
858
4c9bdfc2
AR
859 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
860 accelerator in parens under GNUstep.
861
825d0875
KH
8622009-03-06 Kenichi Handa <handa@m17n.org>
863
864 These changes are to detect incorrect composition sequence without
f3b3be74 865 looking ahead the source. (Bug#2370)
825d0875
KH
866
867 * coding.h: Include "composite.h".
868 (enum compisition_state): New enum.
869 (struct compisition_status): New struct.
870 (struct iso_2022_spec): New member cmp_status.
871 (struct emacs_mule_spec): New struct.
872 (struct coding_system): New members ctext_extended_segment_len and
873 embedded_utf_8. Change the union member
874 spec.emacs_mule_full_support to spec.emacs_mule.
875
876 * coding.c (CODING_ISO_CMP_STATUS): New macro.
877 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 878 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
879 (ADD_COMPOSITION_DATA): New arg nbytes.
880 (emacs_mule_char): New arg cmp_status.
881 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
882 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
883 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
884 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
885 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
886 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
887 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
888 (EMACS_MULE_COMPOSITION_END): New macro.
889 (emacs_mule_finish_composition): New function.
890 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
891 (decode_coding_emacs_mule): Avoid long looking ahead while
892 handling composition.
893 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
894 (ENCODE_COMPOSITION_RULE): New macro.
895 (finish_composition): New function.
896 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
897 (DECODE_COMPOSITION_START): New implementation.
898 (DECODE_COMPOSITION_END): Likewise.
899 (STORE_COMPOSITION_RULE): New macro.
900 (decode_coding_iso_2022): Avoid long looking ahead while handling
901 composition, CTEXT extended segment, and embedded UTF-8.
902 (setup_coding_system): For a coding of type iso-2022, reset
903 CODING_ISO_EXTSEGMENT_LEN (coding) and
904 CODING_ISO_EMBEDDED_UTF_8 (coding).
905 (get_translation): Delete arguments last_block, from_nchars,
906 to_nchars. Callers changed.
907 (produce_chars): Don't modify charbuf. Adjusted for the change of
908 get_translation.
98a326f7 909 (produce_composition): Adjust for the new annotation sequence.
825d0875 910 (handle_composition_annotation): Likewise.
98a326f7 911 (consume_chars): Adjust for the change of get_translation.
825d0875 912
ccbc4452
AR
9132009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
914
4ddf94bd 915 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 916
988a7ddb
KH
9172009-03-05 Kenichi Handa <handa@m17n.org>
918
919 * font.c (font_select_entity): New function.
920 (font_find_for_lface): Use font_select_entity to select a font.
921
922 * fontset.c (fontset_find_font): If a font found without
a8a3728b 923 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
924 font with C restriction.
925
98a326f7 9262009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 927
be1bce46 928 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 929
10ea2b82
JR
9302009-03-04 Jason Rumney <jasonr@gnu.org>
931
2c93b248 932 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 933 characters that have already been read. (Bug#2569)
2c93b248 934
10ea2b82
JR
935 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
936 Log an error message if check_image_size failed.
937 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 938 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 939
71a0c011
EZ
9402009-03-02 Eli Zaretskii <eliz@gnu.org>
941
942 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
943 when decoding process output.
944
2f63bba8
RS
9452009-03-01 Richard M Stallman <rms@gnu.org>
946
947 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
948
949 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
950
0a9564cb
EZ
9512009-02-28 Eli Zaretskii <eliz@gnu.org>
952
953 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
954 (decode_coding_emacs_mule, decode_coding_iso_2022)
955 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
956 (decode_coding_raw_text, decode_coding_charset)
957 (setup_coding_system, decode_eol, decode_coding, consume_chars):
958 Honor inhibit-eol-conversion. (Bug #2186)
959
449148b3
JR
9602009-02-28 Jason Rumney <jasonr@gnu.org>
961
962 * coding.c (detect_coding_charset): If not checking latin extra,
963 fail on characters between 0x80 and 0xA0. (Bug#2354)
964
a4aee864
EZ
9652009-02-28 Eli Zaretskii <eliz@gnu.org>
966
967 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 968 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 969
d88bee5a
GM
9702009-02-27 Glenn Morris <rgm@gnu.org>
971
972 * callint.c (Finteractive): Doc fix.
973
a808f22d
KH
9742009-02-27 Kenichi Handa <handa@m17n.org>
975
976 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
977
caf8d60c
CY
9782009-02-27 Chong Yidong <cyd@stupidchicken.com>
979
980 * font.c (font_style_to_value): Set value for unknown symbols to
981 100 instead of 255.
b61137ea
CY
982 (weight_table, slant_table, width_table): Treat "unspecified" as
983 the default value.
caf8d60c 984
1a0de25c
JB
9852009-02-26 Juanma Barranquero <lekktu@gmail.com>
986
987 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
988
8fc45744
JB
9892009-02-25 Juanma Barranquero <lekktu@gmail.com>
990
107bd7d1
JB
991 * lread.c (Fload): Stop checking Vloads_in_progress and signal
992 error as soon as a recursive load is detected.
8fc45744 993
f097e223
AR
9942009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
995
996 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
997 before caching.
998
8810a12f
KH
9992009-02-24 Kenichi Handa <handa@m17n.org>
1000
1001 * fontset.c (fontset_find_font): Fix the condition for checking
1002 unavailable font.
1003
2c7d1565
GM
10042009-02-24 Glenn Morris <rgm@gnu.org>
1005
1006 * xfaces.c (Finternal_set_font_selection_order): Remove leading
1007 whitespace that confuses documentation.
1008
a20878b6
MB
10092009-02-23 Miles Bader <miles@gnu.org>
1010
1011 * process.c (Flist_system_processes, Fprocess_attributes)
1012 (syms_of_process): Rename `system-process-attributes' to
1013 `process-attributes'.
1014
b3b58c01
AS
10152009-02-22 Andreas Schwab <schwab@linux-m68k.org>
1016
1b3b981b
AS
1017 * coding.h (struct coding_system): Make safe_charsets a pointer to
1018 unsigned char.
1019 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
1020 being 255.
1021 (SAFE_CHARSET_P): Likewise.
1022 (setup_iso_safe_charsets): Properly setup safe_charsets.
1023 (Fdefine_coding_system_internal): Likewise.
1024 (setup_coding_system): Likewise. Remove unneeded casts.
1025 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
1026 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
1027 unneeded casts.
1028
b3b58c01
AS
1029 * insdel.c (del_range_2): Don't modify gap contents when called
1030 from decode_coding_object. (Bug#1809)
1031
0b6f228c
CY
10322009-02-21 Chong Yidong <cyd@stupidchicken.com>
1033
1034 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
1035 Qfont_object.
1036 (Ftype_of): Recognize font objects.
1037
1038 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
1039
1040 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
1041 moved to data.c.
1042
52f8870b
AR
10432009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
1044
1045 * nsterm.m (x_make_frame_invisible): Unset async_visible,
1046 async_iconified. Based on a patch by Christian Lynbech
1047 <christian.lynbech@tieto.com>.
1048 (EmacsView-windowDidMiniaturize:): Unset async_visible.
1049
7087d5e9
GM
10502009-02-20 Glenn Morris <rgm@gnu.org>
1051
1052 * syntax.c (Fskip_chars_forward): Fix doc typo.
1053
41d2ceef
CY
10542009-02-20 Chong Yidong <cyd@stupidchicken.com>
1055
1056 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
1057
1a3b7ca6
CY
10582009-02-19 Chong Yidong <cyd@stupidchicken.com>
1059
1060 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
1061
73cce38d
KH
10622009-02-19 Kenichi Handa <handa@m17n.org>
1063
1064 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 1065 Don't overflow coding->carryover. (Bug#2370)
73cce38d 1066
a51092ee
DN
10672009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
1068
1069 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
1070
c423ecca
KH
10712009-02-18 Kenichi Handa <handa@m17n.org>
1072
1073 * font.c (font_check_otf_features): Fix handling of `nil' element.
1074 (Ffont_spec): Describe :lang and :otf in the docstring.
1075
4c1958f4
AS
10762009-02-16 Andreas Schwab <schwab@suse.de>
1077
1078 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
1079 string.
1080
5704f39a
KH
10812009-02-16 Kenichi Handa <handa@m17n.org>
1082
1083 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 1084 (Bug#1723)
5704f39a 1085
8f0085aa
CY
10862009-02-14 Chong Yidong <cyd@stupidchicken.com>
1087
a057d86a 1088 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
1089
1090 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
1091 (handle_line_prefix): Suppress wrapping of wrap prefixes.
1092
aff01dd9
EZ
10932009-02-14 Eli Zaretskii <eliz@gnu.org>
1094
1095 * msdos.c (MAX_SCREEN_BUF): New macro.
1096 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
1097 Encode the entire run of glyphs sharing the same face, instead of
1098 doing that one glyph at a time (fixes a bug with displaying
1099 double-size characters).
1100
ba301db3
AR
11012009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
1102
1103 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
1104
1105 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
1106 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 1107 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
1108
1109 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 1110 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 1111
51d861de
SM
11122009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
1113
1114 * keyboard.c (adjust_point_for_property): Allow stopping betwen two
1115 invisible areas.
1116
7fed8996
JR
11172009-02-12 Jason Rumney <jasonr@gnu.org>
1118
631ea4fb
JR
1119 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
1120 (add_font_entity_to_list): Call check_face_name even when family
1121 is unspecified.
1122
cb4a3e42
JR
1123 * w32term.c (x_display_pixel_height, x_display_pixel_width):
1124 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 1125 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 1126
7fed8996 1127 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 1128 raster fonts. (Bug#2219)
7fed8996 1129
895416e3
KH
11302009-02-12 Kenichi Handa <handa@m17n.org>
1131
1132 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
1133 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
1134 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 1135 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
1136 (find_automatic_composition): While looking forward and backward,
1137 check static composition. Fix where to stop looking forward.
1138 (composition_adjust_point): Fix checking of static composition.
1139 (Fcomposition_get_gstring): Pay attention to
1dacf998 1140 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
1141
1142 * lisp.h (fast_looking_at): Extern it.
1143
1144 * search.c (fast_looking_at): New function.
1145
51d861de 1146 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
1147 <struct glyph>.u.cmp.to.
1148 (append_composite_glyph): Likewise.
1149
51d861de 1150 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
1151 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
1152 composition.
51d861de 1153 (append_composite_glyph): Adjust for the change of
895416e3
KH
1154 <strcut glyph>.u.cmp.to.
1155
8510724d
JB
11562009-02-11 Juanma Barranquero <lekktu@gmail.com>
1157
1158 * casetab.c (init_casetab_once):
1159 * coding.c (ALLOC_CONVERSION_WORK_AREA):
1160 * font.c (font_update_lface):
1161 * fontset.c (Fnew_fontset):
1162 * ftfont.c (ftfont_drive_otf):
1163 * xfont.c (xfont_open):
1164 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
1165
294fa707
SM
11662009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
1167
1168 * fileio.c (Fwrite_region): !NILP -> CONSP.
1169
b5bfebec
AS
11702009-02-10 Andreas Schwab <schwab@suse.de>
1171
1172 * process.c (send_process): Properly relocate pointer into data
adab88bd 1173 when using encoded data. (Bug#2272)
b5bfebec 1174
cb84a2be
KH
11752009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
1176
1177 * coding.c (detect_coding_charset): Fix previous change.
1178
89e09428
JR
11792009-02-08 Jason Rumney <jasonr@gnu.org>
1180
1181 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 1182 disappeared while hourglass was displayed. (Bug #2193)
89e09428 1183
4470a277
AS
11842009-02-07 Andreas Schwab <schwab@suse.de>
1185
1186 * unexelf.c (unexec): Fix error message.
1187
3175b12a
AR
11882009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
1189
1190 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 1191 when modal window is active. (Bug #2152)
3175b12a
AR
1192 (applicationShouldTerminate:): Remove now-unneeded while loop
1193 around NSRunAlertPanel.
1194
1195 * nsmenu.m (popupSession): New file-global variable.
1196 (pop_down_menu): End the popupSession before closing dialog.
1197 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
1198 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
1199 don't query NSApp for events (just sleep instead).
1200
8434d0b8
EZ
12012009-02-07 Eli Zaretskii <eliz@gnu.org>
1202
51d861de
SM
1203 * coding.c (syms_of_coding) <translation-table-for-input>:
1204 Modify doc string to discourage use for character code unification.
8434d0b8 1205
aa82edfd
CY
12062009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1207
1208 * atimer.c (run_timers): Update pending_atimers.
1209
2d283c7c
CY
12102009-02-06 Chong Yidong <cyd@stupidchicken.com>
1211
eb306cab
CY
1212 * image.c (svg_load_image): Fix last change.
1213
2d283c7c
CY
1214 * xfns.c (Fx_create_frame): Signal an error if no font is
1215 found (Bug#2147).
1216
4d8e170e
JB
12172009-02-05 Juanma Barranquero <lekktu@gmail.com>
1218
1219 * character.c (syms_of_character) <script-representative-chars>:
1220 Fix typo in docstring.
1221
c96169a0
AR
12222009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
1223
1224 * nsmenu.m (pop_down_menu): New function.
1225 (ns_popup_dialog): Call it on unwind.
1226 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
1227 call timer_check() (Bug#2154).
1228 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
1229 handling_signal is set.
1230 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
1231
1232 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G
1233
1234 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
1235
1236 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
1237
51d861de
SM
1238 * keyboard.c (poll_for_input_1, handle_async_input):
1239 Set handling_signal under HAVE_NS.
c96169a0 1240
aacd8ba1
GM
12412009-02-04 Glenn Morris <rgm@gnu.org>
1242
1243 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
1244
4cb75c4b
KH
12452009-02-04 Kenichi Handa <handa@m17n.org>
1246
1247 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
1248
1249 * charset.c (Fchar_charset): New optional arg restriction.
1250
1251 * coding.h (coding_system_charset_list): Extern it.
1252
1253 * coding.c (coding_system_charset_list): New function.
1254
1255 * composite.c: Include coding.h and termhooks.h.
1256 (composition_gstring_p): Fix for the terminal case.
1257 (composition_gstring_width): Likewise.
1258 (fill_gstring_body): Likewise.
1259 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
1260 the frame.
1261 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
1262 is within a composition.
867d4bb3 1263 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
1264
1265 * term.c (encode_terminal_code): Fix handling of composition.
1266 (produce_composite_glyph): For static composition, get pixel_width
1267 from struct composition.
1268
826ba17e
AS
12692009-02-02 Andreas Schwab <schwab@suse.de>
1270
1271 * unexelf.c (unexec): Handle unaligned bss offset.
1272
8ad093db
AR
12732009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
1274
1275 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
1276 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 1277
8ad093db
AR
1278 * keyboard.c (handle_interrupt): Don't call
1279 quit_throw_to_read_char() under NS.
d0a76a6e 1280
8ad093db
AR
1281 * blockinput.h: Remove NS-specific code.
1282
4d18a7a2
DN
12832009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
1284
db878925
DN
1285 * dispnew.c (window_change_signal): Don't try to get the size of a
1286 suspended tty frame.
1287 * term.c (Fresume_tty): Resize if the size has changed while the
1288 tty was suspended.
1289
4d18a7a2
DN
1290 * alloc.c (mark_stack): Properly conditionalize previous change.
1291
8984df7c
JB
12922009-01-30 Juanma Barranquero <lekktu@gmail.com>
1293
1294 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
1295 * w32term.c (w32_read_socket) [SYNC_INPUT]:
1296 Remove; this code is not used on Windows.
1297
75f4f1ac
EZ
12982009-01-30 Eli Zaretskii <eliz@gnu.org>
1299
1300 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
1301 EOLs that also has stray ^M characters.
1302
07a1e794
JB
13032009-01-30 Juanma Barranquero <lekktu@gmail.com>
1304
1305 * atimer.c (run_timers, alarm_signal_handler):
1306 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
1307 * w32inevt.c (w32_console_read_socket):
1308 * w32term.c (w32_read_socket):
1309 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
1310
a8b11cc9
CY
13112009-01-30 Chong Yidong <cyd@stupidchicken.com>
1312
1313 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
1314 Initialize it as a relative filename pattern.
1315 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
1316 (Fcall_process_region): Simplify temp file creation using
1317 temporary-file-directory.
1318
c279587b
EZ
13192009-01-29 Eli Zaretskii <eliz@gnu.org>
1320
1321 * msdos.c: Rename pending_signals to msdos_pending_signals.
1322 (sig_suspender, sigprocmask): Adjust.
1323
a8fe3242
CY
13242009-01-29 Chong Yidong <cyd@stupidchicken.com>
1325
1326 * keyboard.c (pending_signals): New var.
1327 (poll_for_input, input_available_signal, init_keyboard): Set it.
1328 (process_pending_signals): New function.
1329
1330 * lisp.h (QUIT): Check pending_signals instead of
1331 interrupt_input_pending. Use process_pending_signals.
1332
51d861de 1333 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 1334
51d861de 1335 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
1336
1337 * sysdep.c (emacs_write): Use process_pending_signals.
1338
1339 * xterm.c (XTread_socket): Update pending_signals.
1340
1341 * w32term.c (w32_read_socket): Update pending_signals.
1342
1343 * w32inevt.c (w32_console_read_socket): Update pending_signals.
1344
6570a1c4
KH
13452009-01-29 Kenichi Handa <handa@m17n.org>
1346
1347 * xftfont.c (xftfont_has_char): New function.
1348 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
1349
d72a4afa
AR
13502009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
1351
1352 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
1353 under GNUstep.
1354 (ns_query_color): New declaration.
1355
1356 * nsterm.m (ns_confirm_quit): New variable.
1357 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
1358 (EmacsApp-applicationShouldTerminate:): Use it.
1359 (EmacsPrefsController): Let user set it.
1360 (ns_query_color): New function.
1361 (ns_defined_color): Use it.
1362 (ns_initialize): Drop.
1363 (ns_term_init): Add two lines from ns_initialize(), and set
1364 input_interrupt_mode to nil.
1365
1366 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 1367 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 1368
9fe78804
KH
13692009-01-28 Kenichi Handa <handa@m17n.org>
1370
1371 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
1372 (fontset_get_font_group): Remember that no font-group is specified
1373 for C.
9fe78804 1374
fa57de36
CY
13752009-01-27 Chong Yidong <cyd@stupidchicken.com>
1376
930600e9
CY
1377 * fns.c (concat): Check for string overflow (bug#1787).
1378
fa57de36
CY
1379 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
1380 Quadruple undo limits (bug#1501).
1381
7179ce7b
KH
13822009-01-27 Kenichi Handa <handa@m17n.org>
1383
1384 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
1385 directly use GT_Get_Char_index.
1386
1387 * xftfont.c (struct xftfont_info): New member `index'.
1388
1389 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 1390 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 1391
5be8fcc0
CY
13922009-01-26 Kenichi Handa <handa@m17n.org>
1393
1394 * fontset.c (fontset_find_font): Fix handling of non-cons return
1395 value of fontset_get_font_group.
1396 (fontset_font): Revert last change.
1397
19ae3e61
JR
13982009-01-26 Jason Rumney <jasonr@gnu.org>
1399
1400 * w32font.c (w32font_list_internal): Return quickly if registry is
1401 unknown. Simplify final return.
1402 (add_font_entity_to_list): Break complex logic down into more
1403 manageable chunks. Move unknown registry check to
1404 w32font_list_internal.
1405
8612b71a
AR
14062009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
1407
1408 Changes to remove Feval calls from GUI under NS.
1409
d8038940
JB
1410 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
1411 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
1412 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
1413
1414 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
1415 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
1416 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
1417 instead of NON_ASCII_KEYSTROKE_EVENT.
1418 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
1419 (EmacsApp-applicationShouldTerminate:): Query user.
1420 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
1421 instead of Feval.
1422
1423 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
1424
1425 * keyboard.c (kbd_buffer_get_event): Check for it.
1426 (keys_of_keyboard): Define lispy keys for
1427 ns-put/unput-working-text.
1428
1429 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
1430 versions.
1431 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
1432
6288ae55
CY
14332009-01-25 Chong Yidong <cyd@stupidchicken.com>
1434
1435 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 1436 setting current_buffer directly. (Bug#2044)
6288ae55 1437
289e7f8f
CY
14382009-01-24 Chong Yidong <cyd@stupidchicken.com>
1439
5ce87308 1440 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 1441 any work. (Bug#1952, bug#1990).
5ce87308 1442
64cc3cf6 1443 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 1444
b3243e6f
AR
14452009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
1446
1447 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
1448 (ns_no_defaults): New declaration.
1449 (main): Use it.
e0d2e69a 1450
d900b2af 1451 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 1452
d900b2af 1453 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 1454
d900b2af
AR
1455 * nsterm.m (ns_no_defaults): New variable.
1456 (ns_initialize): Don't read defaults when ns_no_defaults.
1457 (EmacsView-readSelectionFromPasteboard:)
1458 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 1459 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
1460 (ns_dumpglyphs_stretch): New function.
1461 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 1462 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 1463
e0d2e69a
AR
1464 * nsimage.m (setPixmapData:): Set to ignore image DPI.
1465
3ac71f5d
CY
14662009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
1467
1468 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
1469 call for Sparc64.
1470
3fe53a83
AR
14712009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
1472
1473 * nsfns.m:
1474 * nsgui.h:
1475 * nsmenu.m:
1476 * nsselect.m:
1477 * nsterm.h:
1478 * nsterm.m: Remove '23' comments that indicated code added during
1479 update from emacs-20 -> emacs-23.
1480
10f87c6f 14812009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
1482
1483 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 1484 ns_alternate_modifier. (Bug#1217)
a3b53a85 1485
c7cef62d
AR
1486 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
1487 Display all shortcuts, including those w/o super modifier.
1488
575fb8bd
AR
1489 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
1490
918b848b
CY
14912009-01-22 Chong Yidong <cyd@stupidchicken.com>
1492
1493 * fileio.c (Vwrite_region_post_annotation_function)
1494 (Vwrite_region_annotation_buffers): New vars.
1495 (build_annotations_unwind): Just reset
1496 Vwrite_region_annotation_buffers.
1497 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
1498 Call write-region-post-annotation-function.
1499 (build_annotations): Add to Vwrite_region_annotation_buffers if
1500 buffer changes.
1501
a39e2539
AR
15022009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
1503
1504 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
1505 Tiger.
51d861de
SM
1506 * nsfns.m (ns_do_applescript):
1507 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 1508
35ed44db
AR
15092009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
1510
1511 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
1512
cbe0b5bf
AR
15132009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
1514
1515 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 1516
6049d3a0
AR
1517 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
1518
1519 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
1520 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
1521 handle Ctrl-tab. (Bug#1841)
1522 (ns_get_color): Use unsigned long long for scanned hex string value.
1523 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 1524 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 1525 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 1526 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 1527 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 1528 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 1529 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 1530
d3810c21 1531 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 1532 DPI. (Bug#1316)
d3810c21
AR
1533 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
1534 values in onTiger section.
4c7077c3 1535
e301e634
CY
15362009-01-19 Chong Yidong <cyd@stupidchicken.com>
1537
7f82490b
CY
1538 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
1539 Check return value of font_spec_from_name.
64cc3cf6 1540 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
1541
1542 * font.c (font_spec_from_name): Return Qnil if font name could not
1543 be parsed.
1544 (font_parse_name): Treat a `?' character as part of an XLFD.
1545
e301e634
CY
1546 * fns.c (Fsubstring): Doc fix.
1547
1c0db158
KH
15482009-01-19 Kenichi Handa <handa@m17n.org>
1549
51d861de 1550 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
1551 (ftfont_list): Likewise.
1552
acf20901
JB
15532009-01-18 Juanma Barranquero <lekktu@gmail.com>
1554
fff4e459
JB
1555 * dbusbind.c (Fdbus_register_signal):
1556 * process.c (conv_sockaddr_to_lisp):
1557 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
1558
acf20901
JB
1559 * callproc.c (Fgetenv_internal): Doc fix.
1560
e7abcdfb
CY
15612009-01-16 Chong Yidong <cyd@stupidchicken.com>
1562
1563 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
1564 it is not even used.
1565
b60861e6
GM
15662009-01-16 Glenn Morris <rgm@gnu.org>
1567
1568 * font.c (Ffont_variation_glyphs): Silence compiler.
1569
8db52afe
JB
15702009-01-15 Juanma Barranquero <lekktu@gmail.com>
1571
1572 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
1573 Reported by David Robinow <drobinow@gmail.com>.
1574
4cddb209
KH
15752009-01-15 Kenichi Handa <handa@m17n.org>
1576
51d861de 1577 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 1578
f247f67b
JR
15792009-01-14 Jason Rumney <jasonr@gnu.org>
1580
1581 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 1582 never a fontset. (Bug#1562)
f247f67b 1583
f56a4450
KH
15842009-01-14 Kenichi Handa <handa@m17n.org>
1585
1586 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 1587 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 1588
4e99855e
CY
15892009-01-13 Chong Yidong <cyd@stupidchicken.com>
1590
1591 * font.c (font_clear_prop): If clearing the family, clear the font
1592 width index too.
1593
fff4e459 1594 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 1595
24f01470
JB
15962009-01-12 Juanma Barranquero <lekktu@gmail.com>
1597
1598 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
1599 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
1600 functions, use sizeof.
1601
a41240a3
MR
16022009-01-12 Martin Rudalics <rudalics@gmx.at>
1603
1604 * keyboard.c (read_char): Fix case where last_nonmenu_event
1605 returned a bad value with submenus. (Bug#447)
1606
944636b8
CY
16072009-01-12 Chong Yidong <cyd@stupidchicken.com>
1608
1609 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
1610 family, clear the font width index too.
1611
0dad7c6f
JR
16122009-01-11 Jason Rumney <jasonr@gnu.org>
1613
1614 * keyboard.c (cmd_error_internal): Exit when errors occur before
1615 frame creation and not in daemon mode. (Bug#1836)
1616
7c2363af
CY
16172009-01-10 Chong Yidong <cyd@stupidchicken.com>
1618
1619 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
1620 of a display vector, backtrack.
1621 (try_window_reusing_current_matrix): Check glyph type before
1622 referencing charpos member.
1623
97b1b294
EZ
16242009-01-10 Eli Zaretskii <eliz@gnu.org>
1625
1626 Fix Bug #876:
1627
1628 * coding.c (inhibit_null_byte_detection): New variable.
1629 (detect_coding, detect_coding_system): Don't pay attention to null
1630 bytes if inhibit_null_byte_detection is non-zero.
51d861de 1631 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
1632 <inhibit-iso-escape-detection>: Doc fix.
1633
4624b6e3
JR
16342009-01-09 Jason Rumney <jasonr@gnu.org>
1635
1636 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 1637 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
1638 Only report Unicode Plane 2 fonts as unicode-sip.
1639
323b840c
CY
16402009-01-09 Chong Yidong <cyd@stupidchicken.com>
1641
51d861de
SM
1642 * xfaces.c (Fx_font_family_list): Delete function.
1643 Move compatibility version to faces.el.
323b840c 1644
51d861de 1645 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 1646
eba7400d
MR
16472009-01-09 Martin Rudalics <rudalics@gmx.at>
1648
1649 * frame.c (x_set_frame_parameters): Remember requested value for
1650 fullscreen before it's reset by the parameter handler.
1651
4b09796d
GM
16522009-01-09 Glenn Morris <rgm@gnu.org>
1653
1654 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 1655 (last_command_event): ... and update all users.
4b09796d
GM
1656 (last_input_char): For clarity, rename to...
1657 (last_input_event): ... and update all users.
1658 (last-command-char, last-input-char): Move to subr.el as aliases.
1659 * cmds.c, commands.h: Update for last_command_char rename.
1660
14ccea62
CY
16612009-01-08 Chong Yidong <cyd@stupidchicken.com>
1662
51d861de 1663 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 1664
5f004711
JR
16652009-01-08 Jason Rumney <jasonr@gnu.org>
1666
1667 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
1668 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
1669 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
1670 Don't declare.
fff4e459 1671 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
1672 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
1673
b71f6f73
KH
16742009-01-07 Kenichi Handa <handa@m17n.org>
1675
50b06221 1676 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 1677 remember the coding system used for decoding in
50b06221
KH
1678 coding_system (Bug#1039).
1679
b71f6f73 1680 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 1681 breaking the loop. (Bug#870)
b71f6f73
KH
1682 (decode_coding_utf_16, decode_coding_emacs_mule)
1683 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
1684 (decode_coding_charset): Likewise.
1685
56f668f7
MR
16862009-01-05 Martin Rudalics <rudalics@gmx.at>
1687
1688 * frame.c (x_set_frame_parameters): Make sure height (width) get
1689 applied when fullwidth (fullheight) is set. (Bug#1522)
1690
5da9424d
JB
16912009-01-04 Juanma Barranquero <lekktu@gmail.com>
1692
1693 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
1694 (utc_base): Declare as ULONGLONG, not long double.
1695 (convert_time_raw): Delete.
1696 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
1697 (initialize_utc_base): New function.
1698 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
1699 (convert_from_time_t): Use initialize_utc_base; compute result with
1700 64-bit arithmetic.
1701 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
1702
c4605e09
EZ
17032009-01-03 Eli Zaretskii <eliz@gnu.org>
1704
9acef61c 1705 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
1706 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
1707 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
1708 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
1709 [!subprocesses]: Define.
1710 (syms_of_process) [!subprocesses]: Intern and staticpro them.
1711 (Flist_system_processes, Fsystem_process_attributes)
1712 [!subprocesses]: Call list_system_processes and
1713 system_process_attributes instead of returning Qnil.
1714
9acef61c
JB
1715 * dosfns.c (system_process_attributes, list_system_processes):
1716 New functions.
c4605e09
EZ
1717
1718 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
1719
1720 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
1721 Don't use the default (no-op) implementation.
1722
8b7d0a16
JR
17232009-01-03 Jason Rumney <jasonr@gnu.org>
1724
a6d46bc1
JR
1725 * keyboard.c (parse_modifiers_uncached): Wheel events are
1726 clicks (bug#687).
1727
8b7d0a16
JR
1728 * w32term.c (x_query_colors, x_query_color): New functions.
1729
1730 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
1731 (svg_load_image): Cast returned pointers from dynamically loaded
1732 functions. Eliminate W32 specific code.
1733
bfe11752
DN
17342009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
1735
89e2438a
DN
1736 * nsfns.m (x_set_foreground_color, x_set_background_color)
1737 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
1738 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
1739 x_ prefix instead of ns_. Update references.
1740 (syms_of_nsfns): Add a FIXME comment.
1741
1742 * nsterm.m (x_set_cursor_type): New prototype.
1743 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
1744
bfe11752
DN
1745 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
1746 for Solaris instead of incorrectly providing Qutime and Qcutime.
1747
031da700
EZ
17482009-01-02 Eli Zaretskii <eliz@gnu.org>
1749
1750 * w32.c (process_times): Compute sum of utime and stime.
1751 (system_process_attributes): Add Qtime to the alist.
1752
1753 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
1754 and add them to the alist.
1755
1756 * process.c (top level) <Qtime, Qctime>: New variables.
1757 (syms_of_process): staticpro them.
1758 (Fsystem_process_attributes): Add their documentation to the doc
1759 string.
1760
1761 * process.h: Declare Qtime and Qctime.
1762
df23bf08
JR
17632009-01-02 Jason Rumney <jasonr@gnu.org>
1764
9acef61c 1765 * image.c (Qgobject): New symbol.
df23bf08
JR
1766 (syms_of_image): Initialize it.
1767 (init_svg_functions): Load some functions from gobject library.
1768
5bbdf7aa
DN
17692009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
1770
1771 * frame.c (make_terminal_frame): Remove redundant code and useless
1772 block.
1773
63136da6
AS
17742009-01-01 Andreas Schwab <schwab@suse.de>
1775
1776 * process.c (conv_sockaddr_to_lisp): Add workaround for
1777 getsockname bug on BSD.
1778
9ef69046
CY
17792009-01-01 Chong Yidong <cyd@stupidchicken.com>
1780
d6fafbe0
CY
1781 * xfns.c (x_create_tip_frame): Set border width of the X window.
1782
51d861de 1783 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 1784
f9c34147
JR
17852009-01-01 Jason Rumney <jasonr@gnu.org>
1786
9acef61c 1787 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
1788 Don't block input, as per earlier xterm.c changes.
1789
f5497e45
AR
17902008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
1791
1792 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
1793 (ns_appkit_version_int): New function.
1794 (x-server-version): Use ns_appkit_version_int and follow 21+
1795 convention of returning 3 integers.
1796
c19cab20
KH
17972008-12-30 Kenichi Handa <handa@m17n.org>
1798
1799 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
1800 (CHAR_SURROGATE_PAIR_P): New macro.
1801
1802 * font.h (struct font_driver): New member get_variation_glyphs.
1803
9acef61c 1804 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
1805 (Ffont_variation_glyphs): New function.
1806 (syms_of_font): Defsubr it.
1807
1808 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
1809 ftfont_variation_glyphs.
1810 (setup_otf_gstring): New function.
1811 (ftfont_drive_otf): Use it.
1812 (ftfont_shape_by_flt): Handle variation selector.
1813 (ftfont_variation_glyphs): New function.
1814
28cd591f
MR
18152008-12-30 Martin Rudalics <rudalics@gmx.at>
1816
1817 * frame.c (Vemacs_iconified): Remove.
1818
7f714baf
JR
18192008-12-30 Jason Rumney <jasonr@gnu.org>
1820
1821 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 1822 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 1823
9d2d22ab
CY
18242008-12-30 Chong Yidong <cyd@stupidchicken.com>
1825
1826 * indent.c (Fvertical_motion): Don't advance iterator if we have
1827 reseated to the desired position.
1828
1829 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
1830 checking for pos match.
1831
545312c2
KH
18322008-12-30 Kenichi Handa <handa@m17n.org>
1833
1ede3eb6
KH
1834 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
1835 just get the low 8-bit of the code.
1836
545312c2
KH
1837 * font.c (font_intern_prop): Validate str as multibyte.
1838
bd7bbf29
DN
18392008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
1840
31e0750e
DN
1841 * dispextern.h (struct face): Move lface and hash from the middle
1842 of bitfields.
1843
bd7bbf29
DN
1844 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
1845
b5672e7c
DN
18462008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
1847
1848 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
1849 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
1850 instead of intervals.h.
1851
d704470f
AS
18522008-12-26 Andreas Schwab <schwab@suse.de>
1853
1854 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
1855 cons.
1856
54b33868
MR
18572008-12-26 Martin Rudalics <rudalics@gmx.at>
1858
1859 * textprop.c (Qminibuffer_prompt): New variable.
1860 (syms_of_textprop): Initialize it.
1861 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
1862 in minibuffer-prompt face. (Bug#1662)
1863
40b615d6
JR
18642008-12-25 Jason Rumney <jasonr@gnu.org>
1865
1866 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
1867
baae5c2d
JR
18682008-12-24 Jason Rumney <jasonr@gnu.org>
1869
1870 * ralloc.c (r_alloc_reset_variable): New function.
1871
1872 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 1873 record of what points where. (Bug#716)
baae5c2d 1874
a9051c88
DN
18752008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
1876
1877 * minibuf.c (read_minibuf): Follow the non-interactive case when
1878 running as a daemon, before detaching.
1879
8b146312
AS
18802008-12-22 Andreas Schwab <schwab@suse.de>
1881
1882 * buffer.c (init_buffer): Use realloc instead of xrealloc.
1883 * gtkutil.c (free_widget_value): Use xfree instead of free.
1884
56f2de10
MR
18852008-12-22 Martin Rudalics <rudalics@gmx.at>
1886
1887 * frame.c (delete_frame): New function derived from
1888 Fdelete_frame to handle Qnoelisp value for FORCE argument.
1889 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
1890 (Fdelete_frame): Call delete_frame. Remove line from doc-string
1891 saying that FORCE non-nil doesn't run `delete-frame-functions'.
1892 * frame.h: Extern delete_frame.
1893 * window.c (window_loop):
1894 * terminal.c (delete_terminal):
1895 * xterm.c (x_connection_closed):
1896 * xfns.c (Fx_hide_tip):
9acef61c 1897 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 1898
1fc200d6
JR
18992008-12-21 Jason Rumney <jasonr@gnu.org>
1900
1901 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
1902 when character maps to .notdef character.
1903
5e252df2
SM
19042008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
1905
1906 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
1907
99b72cc4
JR
19082008-12-20 Jason Rumney <jasonr@gnu.org>
1909
1910 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 1911 a graphical frame on Windows. (Bug#1325)
99b72cc4 1912
acc49a52
JD
19132008-12-20 Jan Djärv <jan.h.d@swipnet.se>
1914
1915 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
1916
6ea15123
CY
19172008-12-20 Chong Yidong <cyd@stupidchicken.com>
1918
1919 * minibuf.c (Fread_buffer): Doc fix.
1920
b2dab6c8
JR
19212008-12-20 Jason Rumney <jasonr@gnu.org>
1922
54ea0c87 1923 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 1924 server name in UNC paths. (Bug#719)
54ea0c87 1925
b2dab6c8 1926 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 1927 charbuf. (Bug#1035)
b2dab6c8 1928
6d1921be
DN
19292008-12-19 Daniel Engeler <engeler@gmail.com>
1930
1931 * sysdep.c (serial_configure): Fix typo.
1932
53934c98
DN
19332008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
1934
1935 * sysdep.c: Include alloca.h.
f4f634e8
DN
1936 (system_process_attributes): Add implementation for Solaris.
1937
1938 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 1939
06e111a6
DN
19402008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
1941
1942 Reorganize implementation of Flist_system_processes and
1943 Fsystem_process_attributes. No functional changes.
1944 * process.c: Don't #include pwd.h, grp.h and limits.h.
1945 (Flist_system_processes): Just call list_system_processes.
1946 (Fsystem_process_attributes): Just call system_process_attributes.
1947 (procfs_list_system_processes, time_from_jiffies)
1948 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
1949 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
1950
1951 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
1952 (list_system_processes): Rename from
1953 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
1954 Provide a do nothing implementation.
1955 (system_process_attributes): Rename from
1956 procfs_list_system_processes.
1957 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 1958 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
1959
1960 * w32.c (list_system_processes): Rename from
1961 w32_list_system_processes.
1962 (system_process_attributes): Rename from
1963 w32_system_process_attributes.
1964
1965 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
1966
1967 * process.h (w32_list_system_processes)
1968 (w32_system_process_attributes): Remove.
1969 (list_system_processes, system_process_attributes): New
1970 prototypes.
1971
6a705b23
KH
19722008-12-19 Kenichi Handa <handa@m17n.org>
1973
1974 * xfont.c (xfont_decode_coding_xlfd): New function.
1975 (xfont_encode_coding_xlfd): New function.
1976 (xfont_list_pattern): Decode XLFD by iso-8859-1.
1977 (xfont_list): Decode and encode XLFD by iso-8859-1.
1978 (xfont_match): Likewise.
1979 (xfont_list_family): Likewise.
1980 (xfont_open): Likewise.
1981
d66c0241 1982 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
1983 names are utf-8.
1984
d66c0241 1985 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
1986 names are utf-8.
1987
5a130941
JD
19882008-12-18 Jan Djärv <jan.h.d@swipnet.se>
1989
1990 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
1991 changed.
bfd20325
JD
1992 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
1993 clicked on a detached tool bar button.
5a130941 1994
fd95644b
DN
19952008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
1996
1997 * emacs.c (main): Print and error and exit when no data is read
1998 from the pipe.
1999
e6eee6ae
JR
20002008-12-17 Jason Rumney <jasonr@gnu.org>
2001
2002 * w32font.c (w32font_has_char): Always return -1.
2003
a35dd56b
KH
20042008-12-16 Kenichi Handa <handa@m17n.org>
2005
2006 * font.c (font_open_entity): Fix previous change.
2007
0e3635c2
DN
20082008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
2009
2010 * process.c: Include <limits.h>.
2011
d4835507 20122008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
2013
2014 * font.c (font_update_drivers): Fix mistake in reconstructing the
2015 driver list.
2016
20172008-12-16 Chong Yidong <cyd@stupidchicken.com>
2018
2019 * font.c (font_clear_cache): Fix format of font cache data.
2020
e2cbc401
CY
20212008-12-15 Chong Yidong <cyd@stupidchicken.com>
2022
2023 * xftfont.c (xftfont_open): Free Xft font pattern if
2024 XftFontOpenPattern fails.
2025
2026 * xterm.c (x_free_frame_resources): Remove extraneous call to
2027 free_frame_faces.
2028
b131d535
CY
20292008-12-13 Chong Yidong <cyd@stupidchicken.com>
2030
2031 * xterm.c (x_delete_display): Move xim_close_dpy call to
2032 x_delete_terminal.
2033 (x_delete_terminal): Call xim_close_dpy.
2034
e6df5336
JR
20352008-12-13 Jason Rumney <jasonr@gnu.org>
2036
2037 * w32font.c (intern_font_name): New function.
2038 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
2039 (w32font_open_internal, Fx_select_font): Decode font name.
2040 (fill_in_logfont, list_all_matching_fonts): Encode font name.
2041
2042 * w32font.h (intern_font_name): Declare new function.
2043
2044 * w32uniscribe.c (add_opentype_font_name_to_list):
2045 Use intern_font_name.
2046
20d68145
CY
20472008-12-13 Chong Yidong <cyd@stupidchicken.com>
2048
9f2554de
CY
2049 * frame.c (Fdelete_frame): Call free_font_driver_list.
2050
3d9bec9a
CY
2051 * font.c (free_font_driver_list): Implement missing function.
2052
20d68145
CY
2053 * w32term.c (w32_term_init): Don't initialize the image cache
2054 here; it will be done in init_frame_faces.
2055
2056 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
2057 (struct x_display_info): Remove unused member null_pixel. New
2058 member xim_callback_data.
2059
2060 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
2061 (xim_initialize): Save pointer to callback function data.
2062 (xim_close_dpy): Free callback function data. Call XCloseIM,
2063 reverting 2008-11-04 change by David Smith.
2064 (x_term_init): Don't initialize the image cache here; it will be
2065 done in init_frame_faces. Remove ancient "null_pixel" cruft.
2066 (x_delete_display): Free x_dnd_atoms member.
2067
96f9306b
KH
20682008-12-13 Kenichi Handa <handa@m17n.org>
2069
6dec9044
JB
2070 * font.c (font_rescale_ratio): Moved from xfaces.c.
2071 Argument type changed. Handle a font-spec too.
96f9306b 2072 (font_score): Check Vface_font_rescale_alist.
6dec9044 2073 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
2074
2075 * xfaces.c (font_rescale_ratio): Moved to font.c.
2076
8d5b4964
CY
20772008-12-13 Chong Yidong <cyd@stupidchicken.com>
2078
2079 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
2080
e6df5336
JR
20812008-12-12 Jason Rumney <jasonr@gnu.org>
2082
2083 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
2084 Vwindow_system_version to the real w32 major version.
2085
97c6058a
DN
20862008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
2087
2088 * term.c (init_tty): Move setting the terminal name before the
2089 potential user: maybe_fatal.
2090
ec4e88d7
CY
20912008-12-11 Chong Yidong <cyd@stupidchicken.com>
2092
d4835507
JB
2093 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
2094 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 2095
b4233ec9
JR
20962008-12-11 Jason Rumney <jasonr@gnu.org>
2097
8ec71e23 2098 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 2099 SYMBOL_CHARSET. (Bug#547)
8ec71e23 2100
b4233ec9 2101 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 2102 size for surrogates. (Bug#1096, bug#872)
b4233ec9 2103
011a0143
JB
21042008-12-11 Juanma Barranquero <lekktu@gmail.com>
2105
2106 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
2107
3c309f34
JB
21082008-12-11 Juanma Barranquero <lekktu@gmail.com>
2109
2110 * process.c (Fsystem_process_attributes, syms_of_process):
2111 Fix typo in name of Ssystem_process_attributes.
2112 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
2113
fedc6ab5
JB
21142008-12-11 Juanma Barranquero <lekktu@gmail.com>
2115
2116 * syntax.c (Fmodify_syntax_entry): Doc fix.
2117
ba3de0e8
JB
21182008-12-10 Juanma Barranquero <lekktu@gmail.com>
2119
2120 * font.c (Ffont_spec): Move usage to end of docstring.
2121
174f1c74
JR
21222008-12-10 Jason Rumney <jasonr@gnu.org>
2123
2124 * w32font.c (Qcham): New symbol.
2125 (font_supported_scripts): Add cham, and comments for other new
2126 scripts in bitfield from OpenType spec.
9d32f818
JR
2127 (add_font_entity_to_list): Limit unicode-sip fonts to those that
2128 contain characters beyond the bmp.
174f1c74 2129
7b649478
KH
21302008-12-10 Kenichi Handa <handa@m17n.org>
2131
2132 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 2133 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
2134 Qunicode_sip.
2135
2133e2d1
JB
21362008-12-10 Juanma Barranquero <lekktu@gmail.com>
2137
2138 * coding.c (QCdefault_char): Rename from QCdefalut_char.
2139 (Fcoding_system_put): Use QCdefault_char.
2140 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
2141
9af886ee
CY
21422008-12-09 Chong Yidong <cyd@stupidchicken.com>
2143
74d819eb
CY
2144 * xftfont.c (syms_of_xftfont): Fix typo.
2145
4ccfa1c0 2146 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 2147
7c19d3ae
DN
21482008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
2149
2150 * emacs.c (main): Close daemon_pipe on exec.
2151
567826bb
CY
21522008-12-08 Chong Yidong <cyd@stupidchicken.com>
2153
2154 * termchar.h (struct tty): New members termcap_term_buffer and
2155 termcap_strings_buffer.
2156
2157 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 2158 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
2159 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
2160 All callers changed.
2161 (init_tty): Store termcap data and string buffers in new struct
2162 tty members termcap_term_buffer and termcap_strings_buffer.
2163 (delete_tty): Free them.
4ccfa1c0 2164 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 2165
aa96c42b
SZ
21662008-12-07 Seiji Zenitani <zenitani@mac.com>
2167
2168 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 2169 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 2170
b7e1d896
CY
21712008-12-06 Chong Yidong <cyd@stupidchicken.com>
2172
2173 * coding.c (make_conversion_work_buffer): Disable buffer
2174 modification hooks in the work buffer.
2175
b5ec91a5
EZ
21762008-12-05 Eli Zaretskii <eliz@gnu.org>
2177
2178 * process.c (procfs_system_process_attributes): If `nread' has a
2179 negative value, assign zero to it.
2180
a5d2a52b
CY
21812008-12-05 Chong Yidong <cyd@stupidchicken.com>
2182
68c5540b 2183 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 2184
7bf1bb21
KH
21852008-12-05 Kenichi Handa <handa@m17n.org>
2186
2187 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
2188 second character is a combining character.
2189
2fdc7d00
EZ
21902008-12-05 Eli Zaretskii <eliz@gnu.org>
2191
2192 * process.c (procfs_system_process_attributes): Don't use cmd,
2193 cmdsize, and q without initializing them first.
2194
bf6bfba8
JR
21952008-12-04 Jason Rumney <jasonr@gnu.org>
2196
2197 * w32font.c (w32font_draw): Initialize orig_clip before getting
2198 it, and delete it when finished.
2199
a3b1a468
DN
22002008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
2201
2202 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
2203 case when running as a daemon before detaching.
2204
8b8be8eb
JB
22052008-12-03 Juanma Barranquero <lekktu@gmail.com>
2206
805f2638 2207 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 2208
b1bde622
KH
22092008-12-03 Kenichi Handa <handa@m17n.org>
2210
e500c47d
KH
2211 * font.c (font_at): Set `multibyte' at first.
2212
ca516334
KH
2213 * coding.c (decode_coding_charset): Check type of an element of
2214 vector VALIDS.
7bf1bb21 2215 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 2216
4ccfa1c0 2217 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
2218 (font_for_char): Likewise.
2219
1e5ecd37
CY
22202008-12-03 Chong Yidong <cyd@stupidchicken.com>
2221
d5b01609 2222 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
2223 (font_update_lface): Handle fonts with corrupted size specs,
2224 i.e. non-int and non-float.
d5b01609 2225
11e3a6e4 2226 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 2227 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 2228 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 2229
ab06788b
CY
2230 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
2231
1e5ecd37 2232 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 2233 underline_minimum_offset for underline position.
1e5ecd37 2234
63c125ab
DN
22352008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
2236
2237 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
2238
2239 * character.c (c_string_width): Specify the type for LEN.
2240
3a8406e1
KH
22412008-12-03 Kenichi Handa <handa@m17n.org>
2242
4ccfa1c0 2243 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 2244 (decode_coding_utf_8): Likewise.
4ccfa1c0 2245 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 2246 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 2247
651df7d9
CY
22482008-12-02 Chong Yidong <cyd@stupidchicken.com>
2249
2250 * keyboard.c (make_lispy_position): Only use PT if the selected
2251 window is current.
2252
1f625c6c
AS
22532008-12-02 Andreas Schwab <schwab@suse.de>
2254
f7741ce9
AS
2255 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
2256
1f625c6c
AS
2257 * doprnt.c (doprnt1): Fix size of charbuf.
2258
92bc2678
CY
22592008-12-02 Chong Yidong <cyd@stupidchicken.com>
2260
2261 * keyboard.c (timer_check): Revert last change.
2262
93b9e8cc
JB
22632008-12-02 Juanma Barranquero <lekktu@gmail.com>
2264
2265 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
2266
fd7a37d5
JB
22672008-12-01 Juanma Barranquero <lekktu@gmail.com>
2268
2269 * makefile.w32-in: Update dependencies.
2270 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
2271
c115043b
AS
22722008-12-01 Andreas Schwab <schwab@suse.de>
2273
2274 * font.c (register_font_driver): Use xmalloc.
2275 (font_put_frame_data): Likewise.
2276
f5668d2a
CY
22772008-12-01 Chong Yidong <cyd@stupidchicken.com>
2278
860d96be
CY
2279 * xfaces.c (realize_x_face): Make abort condition clearer.
2280
f5668d2a
CY
2281 * gtkutil.c (update_frame_tool_bar): Initialize variable.
2282
379c17e7
CY
22832008-11-30 Chong Yidong <cyd@stupidchicken.com>
2284
2285 * keyboard.c (timer_check): After a timer runs, ensure that the
2286 selected window's buffer is current.
2287
35f36d65
JB
22882008-11-30 Juanma Barranquero <lekktu@gmail.com>
2289
f952c61c
JB
2290 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
2291 It was accidentally restored by the Unicode merge.
2292
35f36d65
JB
2293 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
2294
b23077df
JB
22952008-11-29 Juanma Barranquero <lekktu@gmail.com>
2296
2297 * w32proc.c: Include "coding.h".
2298 (Fw32_short_file_name): Encode filename passed to Windows API.
2299 (Fw32_long_file_name): Encode filename passed to Windows API and
2300 decode back the result. (Bug#1433)
2301
b8ebe9dd
KH
23022008-11-29 Kenichi Handa <handa@m17n.org>
2303
8cc53f96
KH
2304 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
2305 not before accessing it.
2306
b8ebe9dd
KH
2307 * charset.c (Fdefine_charset_internal): After calculating
2308 min_char, max_char, and fastmap, copy the charset structure again.
2309 (encode_char): Fix the previous change.
2310
59bc82c0
SZ
23112008-11-28 Seiji Zenitani <zenitani@mac.com>
2312
2313 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
2314
2315 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
2316
2317 * nsterm.m (x_set_frame_alpha): New function.
2318
32247e3d
EZ
23192008-11-27 Eli Zaretskii <eliz@gnu.org>
2320
2321 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
2322
b003e5ff
JB
23232008-11-27 Juanma Barranquero <lekktu@gmail.com>
2324
2325 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
2326 pointer to check_face_name.
2327
708550f5
KH
23282008-11-27 Kenichi Handa <handa@m17n.org>
2329
2330 * category.h (SET_CATEGORY_SET): Call set_category_set.
2331 (set_category_set): Extern it.
2332
2333 * category.c (hash_get_category_set): New function.
2334 (Fmodify_category_entry): Adjusted for the change of
2335 char_table_ref_and_range. Call hash_get_category_set to get a
2336 category set to store in the table.
2337
2338 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
2339 Funify_charset.
2340
2ae37cf0 2341 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
2342 (DECODE_CHAR): Check if the decoder vector is ready.
2343 (ENCODE_CHAR): Check if the encoder char-table is ready.
2344 (maybe_unify_char): Extern it.
2345
2346 * charset.c (Vchar_unified_charset_table): Delete it.
2347 (inhibit_load_charset_map): New variable.
2348 (temp_charset_work): New variable.
2349 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
2350 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
2351 New macros.
2352 (load_charset_map): Meaning of control_flag changed. If
2353 inhibit_load_charset_map is nonzero, setup a table in
2354 temp_charset_work.
2355 (load_charset): New argument control_flag.
2356 (map_charset_for_dump): New function.
2357 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
2358 map_charset_for_dump.
2359 (Fdefine_charset_internal): If the charset method is MAP, load
2360 mapping tables by calling load_charset.
2361 (Funify_charset): Don't load a mapping table but directly set
2362 Vchar_unify_table.
2363 (maybe_unify_char): New function.
2364 (decode_char): Don't handle the deleted method MAP_DEFERRED.
2365 Handle the case of inhibit_load_charset_map being nonzero.
2366 (encode_char): Don't handle the deleted method MAP_DEFERRED.
2367 Handle the case of inhibit_load_charset_map being nonzero.
2368 (Fclear_charset_maps): Just free temp_charset_work.
2369 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
2370 variable.
2371
2372 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
2373 change of char_table_ref_and_range.
2374 (char_table_ref_and_range): Change the meaning of argument FROM
2375 and TO. Now the caller must provide initial values for *FROM
2376 and *TO.
2377
2378 * fontset.c (fontset_add): Adjusted for the change of
2379 char_table_ref_and_range.
2380 (fontset_get_font_group): Likewise.
2381 (Ffontset_info): Likewise.
2382
2383 * keymap.c (describe_vector): Adjusted for the change of
2384 char_table_ref_and_range. For char-table, put boundary between
2385 non-ASCII and 8-bit characters.
2386
2387 * print.c (print_object): For bool-vector, delete unnecessary
2388 check of ASCII_BYTE_P.
2389
9196133b
JR
23902008-11-26 Jason Rumney <jasonr@gnu.org>
2391
2392 * w32font.c (w32font_open_internal): Don't include external
9acef61c 2393 leading in font height. (Bug#879)
9196133b 2394
9f688acf
GM
23952008-11-26 Glenn Morris <rgm@gnu.org>
2396
2397 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
2398 redefinition with ifdef. (Bug#1383)
2399
90d19aff
AR
24002008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
2401
2402 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
2403
4ccfa1c0 24042008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
2405
2406 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
2407 New EmacsView methods.
2408 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
2409 Fixes bug #1048,1357,1414.
2410
24112008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
2412
2413 Fix bug #1362.
2414 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
2415 is not an indexed color.
2416 * nsterm.m (free_indexed_color): Add argument checking.
2417 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
2418
e7d5ecb3
CY
24192008-11-24 Chong Yidong <cyd@stupidchicken.com>
2420
2421 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
2422 Document confirm-after-completion value for
2423 minibuffer-completion-confirm.
2424
c285743c
JR
24252008-11-24 Jason Rumney <jasonr@gnu.org>
2426
2427 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
2428 warning.
2429
b0857706
JR
24302008-11-23 Jason Rumney <jasonr@gnu.org>
2431
2432 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
2433 restored before returning.
2434
2435 * w32font.c (check_face_name): New function.
2436 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 2437 fonts. (Bug#642)
b0857706 2438
ee50ff07
MR
24392008-11-22 Martin Rudalics <rudalics@gmx.at>
2440
2441 * buffer.c (Fswitch_to_buffer): Reword and mention new option
2442 confirm-nonexistent-file-or-buffer in doc-string.
2443
b8ff72fa
SM
24442008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
2445
2446 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
2447 Fix copy/paste typo. Add checks.
2448
cee53ed4
KH
24492008-11-21 Kenichi Handa <handa@m17n.org>
2450
2451 * coding.c (detect_coding_iso_2022): Reject invalid composition
2452 sequence.
2453 (DECODE_COMPOSITION_START): If the current source is the last
2454 block, and the current composition doesn't end, regard this
2455 sequence as invalid.
2456 (decode_coding_iso_2022): Handle invalid composition sequence.
2457
f6ef1e65
MR
24582008-11-20 Martin Rudalics <rudalics@gmx.at>
2459
2460 * window.c (coordinates_in_window): Don't return
2461 ON_VERTICAL_BORDER for the rightmost position of a mode/header
2462 line when the window is not the rightmost one. (Bug#1372)
2463
e08b1705
MR
24642008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
2465
2466 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
2467
ad98e89f
EZ
24682008-11-15 Eli Zaretskii <eliz@gnu.org>
2469
2470 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
2471 and bright_bg if noninteractive is non-zero.
2472
fb098a4b
CY
24732008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2474
2475 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
2476 x_draw_glyph_string_background.
2477
2478 * w32term.c (x_draw_glyph_string): Likewise.
2479
ce952b6e
CY
24802008-11-15 Chong Yidong <cyd@stupidchicken.com>
2481
2482 * xterm.c (x_draw_glyph_string): Stop drawing the background of
2483 the next glyph string once past the overhang width.
2484
2485 * nsterm.m (ns_draw_glyph_string): Likewise.
2486
2487 * w32term.c (x_draw_glyph_string): Likewise.
2488
26ea7079
CY
24892008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
2490
2491 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
2492 double file close.
2493
1c33c906
MR
24942008-11-14 Martin Rudalics <rudalics@gmx.at>
2495
2496 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
2497 dedicated status of window before attempting to display another
2498 buffer in it.
2499
8fc29035
JB
25002008-11-14 Juanma Barranquero <lekktu@gmail.com>
2501
2502 * msdos.c (Fmsdos_long_file_names):
2503 (syms_of_msdos) <dos-unsupported-char-glyph>:
2504 * dosfns.c (Fint86): Fix typos in docstrings.
2505
55fb4286
EZ
25062008-11-14 Eli Zaretskii <eliz@gnu.org>
2507
2508 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
2509
3fda0315
KY
25102008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
2511
2512 * puresize.h (BASE_PURESIZE): Increase to 1260000.
2513
7e849c17
CY
25142008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
2515
2516 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
2517
2518 * frame.h: Negative alpha means "don't touch".
2519
2520 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
2521
2522 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
2523
b9fd67bd
DN
25242008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
2525
2526 * hftctl.c:
2527 * chpdef.h:
2528 * acldef.h: Remove files used only for systems no longer supported.
2529
2530 * Makefile.in: Fix .o alphabetical ordering.
2531 (hftctl.o): Remove dependency, file removed.
2532 (keymap.o, print.o): Depend on charset.h.
2533
d5998e03
KH
25342008-11-10 Kenichi Handa <handa@m17n.org>
2535
2ae37cf0 2536 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 2537
be70e183
CY
25382008-11-08 Chong Yidong <cyd@stupidchicken.com>
2539
2540 * dired.c (file_name_completion): If completion_ignore_case is
2541 enabled, ignore case when checking completion-regexp-list.
2542
7cf94eac
EZ
25432008-11-08 Eli Zaretskii <eliz@gnu.org>
2544
2545 * vm-limit.c (get_lim_data): Fix last change.
2546
ee107a89
KH
25472008-11-08 Kenichi Handa <handa@m17n.org>
2548
2549 * character.c (Fget_byte): New function.
2550 (syms_of_character): Defsubr Fget_byte.
2551
5fd15622
CY
25522008-11-07 Chong Yidong <cyd@stupidchicken.com>
2553
2554 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
2555 cursor position is valid after scrolling.
2556
13d62fad
JB
25572008-11-06 Juanma Barranquero <lekktu@gmail.com>
2558
2559 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
2560
a1dd2936
GM
25612008-11-06 Glenn Morris <rgm@gnu.org>
2562
2563 * xterm.c (handle_one_xevent): Don't let popup menus cause
2564 mouse-autoselect-window related window switching. (Bug#1261)
2565
860cd236
CY
25662008-11-04 David Smith <davidsmith@acm.org> (tiny change)
2567
2568 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
2569
653a3150
AS
25702008-11-04 Andreas Schwab <schwab@suse.de>
2571
2572 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
2573
870f5cac
CY
25742008-11-03 Chong Yidong <cyd@stupidchicken.com>
2575
2576 * xfns.c (Fx_wm_set_size_hint): New function.
2577
1e02f3cb
MR
25782008-11-03 Martin Rudalics <rudalics@gmx.at>
2579
2580 * textprop.c (Fprevious_single_char_property_change): Return 0
2581 when there's no change in a string. (Bug#1301)
2582
e630dfc6
MR
25832008-11-02 Martin Rudalics <rudalics@gmx.at>
2584
2585 * frame.c (do_switch_frame): New argument NORECORD passed to
2586 Fselect_window.
2587 (Fselect_frame): New argument NORECORD passed to
2588 do_switch_frame.
2589 (Fset_frame_selected_window): New argument NORECORD passed to
2590 Fselect_frame.
2591 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
2592 in call of do_switch_frame.
2593 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
2594 Handle NORECORD argument in call of Fselect_frame.
2595 * lisp.h (do_switch_frame, Fselect_frame)
2596 (Fset_frame_selected_window): Adjust declarations.
2597 * window.c (select_frame_norecord): New function.
2598 (run_window_configuration_change_hook): Use it and call
2599 Fselect_frame with NORECORD set.
2600 (Fselect_window): Pass NORECORD to Fselect_frame.
2601 (Fset_window_configuration): Handle NORECORD argument in call of
2602 do_switch_frame.
2603 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
2604 Fset_frame_selected_window.
2605 * keyboard.c (command_loop_1): Handle NORECORD in call of
2606 Fselect_frame (currently ifdefd).
2607
9020b223
GM
26082008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
2609
2610 * emacs.c (USAGE2): Untabify.
2611
793ffee8
SM
26122008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
2613
2614 * composite.c (fill_gstring_header): Fix copy/paste typo.
2615
ab6d1131
MR
26162008-10-31 Martin Rudalics <rudalics@gmx.at>
2617
2618 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
2619 (Fother_window): Rename argument and rewrite doc-string.
2620 (select_window_norecord): Fix return value. (Bug#1276)
2621
601a9cf1
JB
26222008-10-30 Juanma Barranquero <lekktu@gmail.com>
2623
2624 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
2625 new frames overriding foreground for tooltips. Based on similar patch
2626 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
2627
813b0652
CY
26282008-10-29 Chong Yidong <cyd@stupidchicken.com>
2629
2630 * emacs.c (Fdaemon_initialized): Initialize nfd.
2631
4414f58f
MR
26322008-10-29 Martin Rudalics <rudalics@gmx.at>
2633
2634 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
2635 (Fwindow_text_height): Clarify doc-strings.
2636 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
2637 doc-string of window-scroll-functions.
2638
ecdcaa09
RS
26392008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
2640
2641 * category.c (syms_of_category): Fix typo in docstring.
2642
23fe745a
JB
26432008-10-28 Juanma Barranquero <lekktu@gmail.com>
2644
2645 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
2646 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
2647 Fix typos in docstrings.
2648
ff808935
DN
26492008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
2650
2651 * emacs.c (daemon_pipe): Make non-static.
2652 (IS_DAEMON): Move definition ...
2653 * lisp.h (IS_DAEMON): ... here.
2654 (daemon_pipe): Declare.
2655 (is_daemon): Remove.
2656 * dispnew.c (init_display): Use IS_DAEMON.
2657
fc012771
SM
26582008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
2659
2660 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
2661 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
2662
2663 * emacs.c (is_daemon): Remove.
2664 (main): Don't set is_daemon.
2665 (IS_DAEMON): New macro.
2666 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 2667 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
2668 parent exits.
2669 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
2670
d8bdbe6f
CY
26712008-10-27 Chong Yidong <cyd@stupidchicken.com>
2672
d1a072bf
CY
2673 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
2674 over-sized glyph, draw it with the default glyph width.
2675
e2e325aa
CY
2676 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
2677 glyph, draw it with the default glyph width.
2678
2679 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
2680 glyph, draw it with the default glyph width.
2681
d8bdbe6f
CY
2682 * xdisp.c (try_scrolling): When computing the distance from the
2683 scroll margin to PT, try moving some distance past the window
2684 bottom before giving up.
2685
7bfac547
MR
26862008-10-27 Martin Rudalics <rudalics@gmx.at>
2687
2688 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
2689 (Fset_window_buffer): Explain in doc-string that a window can be
2690 "strongly" dedicated to its buffer.
2691
4ff029f6
DN
26922008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
2693
2694 * emacs.c (daemon_name): New variable.
2695 (main): Deal with --daemon=SERVER_NAME.
2696 (Fdaemonp): Return a name if one was passed to --daemon.
2697
5790ef40
DN
26982008-10-26 Romain Francoise <romain@orebokech.com>
2699
f9bd0df9 2700 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
2701 (main): Create a pipe before forking, make the parent exit only after
2702 the child has closed its end of the pipe. Move closing the
2703 descriptors ...
2704 (Fdaemon_initialized): ... here. New function.
2705
f5385255
SM
27062008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
2707
4d632321
SM
2708 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
2709 the previous unoptimized table.
2710
f5385255
SM
2711 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
2712 the distinction between non-nil and non-t value of `dedicated'.
2713
6c56a0f3
CY
27142008-10-25 Chong Yidong <cyd@stupidchicken.com>
2715
2716 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 2717 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 2718
fec89261
MR
27192008-10-25 Martin Rudalics <rudalics@gmx.at>
2720
2721 * window.c (Fget_buffer_window, Fdelete_windows_on)
2722 (Freplace_buffer_in_windows): Make buffer argument optional and
2723 rename to buffer_or_name.
2724
34fcddd0
CY
27252008-10-24 Chong Yidong <cyd@stupidchicken.com>
2726
f5385255
SM
2727 * xdisp.c (handle_single_display_spec, handle_display_prop):
2728 Undo 2005-05-16 change.
34fcddd0
CY
2729 (handle_stop): Pop iterator if it's loaded with an empty string.
2730 (get_overlay_strings_1): Don't save iterator if it's loaded with
2731 an empty string (bug#1201).
2732
064766f2
KH
27332008-10-24 Kenichi Handa <handa@m17n.org>
2734
2735 * ftfont.c (ftfont_otf_features): Fix previous change.
2736 (ftfont_otf_capability): Check FeatureList.FeatureCount before
2737 calling ftfont_otf_features.
2738
f9bd0df9 27392008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
2740
2741 * font.c (font_match_p): Fix for the case that a vector of
2742 characters is in script-representative-chars.
2743
1dae9197
MA
27442008-10-24 Michael Albinus <michael.albinus@gmx.de>
2745
2746 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 2747 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
2748 (xd_read_queued_messages): Catch Qdbus_error from the macros.
2749 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
2750 macro. (Bug#1186).
2751
f9bd0df9 27522008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
2753
2754 * s/sol2-10.h: New file.
2755
878a4584
JB
27562008-10-23 Juanma Barranquero <lekktu@gmail.com>
2757
2758 * xdisp.c (fill_glyph_string): Fix typo in source (though the
2759 poor beast has survived 9+ years and the jump from xterm.c!).
2760
cd265ca6
MR
27612008-10-23 Martin Rudalics <rudalics@gmx.at>
2762
2763 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
2764 Reword doc-string.
f5385255 2765 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 2766
472a4dc9
JB
27672008-10-23 Juanma Barranquero <lekktu@gmail.com>
2768
2769 * character.c (syms_of_character) <script-representative-chars>:
2770 <unicode-category-table>: Doc fixes.
2771
159bd5a2
NF
27722008-10-23 Noah Friedman <friedman@splode.com>
2773
2774 * coding.c (make_conversion_work_buffer): Check that
2775 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
2776 Fget_buffer_create.
2777
49f9c344
KH
27782008-10-23 Kenichi Handa <handa@m17n.org>
2779
2780 * font.c (font_add_log): Check the values of extra properties.
2781
12bb3111
MR
27822008-10-22 Martin Rudalics <rudalics@gmx.at>
2783
2784 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
2785 Reword doc-string.
2786 (Fset_window_parameter): Use NILP.
2787 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 2788 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 2789
bbeb4e99
JB
27902008-10-22 Juanma Barranquero <lekktu@gmail.com>
2791
2792 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
2793
27942008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
2795
2796 * nsfns.m (ns_appkit_version): New function.
2797 (x-server-version): Use it.
2798 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
2799 (x-server-vendor): Don't check_ns().
2800
2801 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
2802
a9b555d3
JB
28032008-10-22 Juanma Barranquero <lekktu@gmail.com>
2804
2805 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
2806 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
2807
4626499f
KH
28082008-10-22 Kenichi Handa <handa@m17n.org>
2809
e3681952
KH
2810 * syntax.c (scan_words): Call word_boundary_p instead of comparing
2811 scripts.
2812
4626499f
KH
2813 * category.c (word_boundary_p): Check scripts instead of charset.
2814 Handle nil value in word-separating-categories and
2815 word-combining-categories.
2816 (syms_of_category): Fix docstrings of word-separating-categories
2817 and word-combining-categories.
2818
1560f91a
EZ
28192008-10-21 Eli Zaretskii <eliz@gnu.org>
2820
2821 * coding.c (Fencode_coding_region, Fdecode_coding_region)
2822 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
2823
f4668441
MR
28242008-10-21 Martin Rudalics <rudalics@gmx.at>
2825
2826 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
2827 Rename arg "buffer" to "buffer_or_name".
2828 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
2829 it optional.
2830 (no_switch_window): Remove since the return value is not used.
a9b555d3 2831 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
2832 Consider window as dedicated when Fwindow_dedicated_p returns a
2833 non-nil value.
2834 * lisp.h: Remove prototype for no_switch_window.
2835
fd75ddb2
JD
28362008-10-21 Jan Djärv <jan.h.d@swipnet.se>
2837
2838 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 2839 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 2840
07295713
KH
28412008-10-21 Kenichi Handa <handa@m17n.org>
2842
2843 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
2844 check Vlatin_extra_code_table.
2845
712adc82
EZ
28462008-10-20 Eli Zaretskii <eliz@gnu.org>
2847
2848 * fileio.c (Fset_file_modes): Doc fix.
2849
f549eb0b
MA
28502008-10-19 Michael Albinus <michael.albinus@gmx.de>
2851
2852 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
2853 in arrays.
2854
aac0c6e3
MR
28552008-10-19 Martin Rudalics <rudalics@gmx.at>
2856
2857 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
2858 Mention kill-buffer in doc-string.
2859 (Fset_window_buffer): Reinsert tem check removed in last commit.
2860 (Fenlarge_window, Fshrink_window): Have argument names and
2861 doc-string follow Elisp manual more closely.
2862
28632008-10-18 Eli Zaretskii <eliz@gnu.org>
2864
2865 * fileio.c (Fset_file_modes): Doc fix.
2866
28672008-10-18 Martin Rudalics <rudalics@gmx.at>
2868
2869 * window.c (Fwindow_width, Fset_window_start)
2870 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
2871 (Fdelete_windows_on, Freplace_buffer_in_windows):
2872 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
2873 (Fwindow_dedicated_p): Make window argument optional.
2874 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
2875 (Fset_window_buffer): Respect any non-nil dedicated value for
2876 window. Rename "buffer" argument to "buffer_or_name".
2877
28782008-10-18 Ulrich Mueller <ulm@gentoo.org>
2879
2880 * m/sh3.h: New file, machine description for SuperH.
2881
28822008-10-17 Martin Rudalics <rudalics@gmx.at>
2883
2884 * window.c (Fsplit_window): Rename arg horflag to horizontal.
2885
28862008-10-17 Kenichi Handa <handa@m17n.org>
2887
2888 * ftfont.c (ftfont_otf_features): Fix indexing
2889 gsub_gpos->FeatureList.Feature. Check the validity of indices.
2890
28912008-10-16 Magnus Henoch <mange@freemail.hu>
2892
2893 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
2894 (Fdbus_call_method_asynchronously): Ditto.
2895 This change makes C-h f display the argument list.
2896
28972008-10-16 Chong Yidong <cyd@stupidchicken.com>
2898
2899 * fileio.c (Fexpand_file_name): Doc fix.
2900
2901 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
2902 of :foreground and :background equivalent to unspecified (20.x
2903 compatibility).
2904
29052008-10-15 Eli Zaretskii <eliz@gnu.org>
2906
2907 * buffer.c (syms_of_buffer): Doc fix.
2908
29092008-10-14 Kenichi Handa <handa@m17n.org>
2910
2911 * font.c (font_clear_prop): When clearing font width, clear the
2912 average width field too.
2913
29142008-10-12 Andreas Schwab <schwab@suse.de>
2915
2916 * ftfont.c (ftfont_shape_by_flt): Make static.
2917 * ftfont.h (ftfont_shape_by_flt): Don't declare.
2918
2919 * font.c: Don't include <m17n-flt.h>.
2920
29212008-10-10 Eli Zaretskii <eliz@gnu.org>
2922
2923 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
2924
29252008-10-09 Eli Zaretskii <eliz@gnu.org>
2926
2927 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
2928 away code.
2929
29302008-10-09 Chong Yidong <cyd@stupidchicken.com>
2931
2932 * dispnew.c (update_text_area): Avoid looping due to large glyph
2933 overhangs (bug#1070).
2934
29352008-10-09 Kenichi Handa <handa@m17n.org>
2936
2937 * fontset.c (face_for_char): If face->fontset is negative, just
2938 return ascii_face.
2939
f5385255
SM
2940 * font.c (font_delete_unmatched): Fix previous change.
2941 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
2942
29432008-10-09 Martin Rudalics <rudalics@gmx.at>
2944
2945 * frame.c (Fraise_frame): On text-only terminals select frame in
2946 order to make it visible. (Bug#1061)
2947
29482008-10-08 Chong Yidong <cyd@stupidchicken.com>
2949
2950 * fontset.c (fontset_find_font): Check frame validity.
2951
29522008-10-07 Chong Yidong <cyd@stupidchicken.com>
2953
a9b555d3 2954 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
2955 (xg_display_close): Allow Emacs to close all displays (bug#985).
2956
29572008-10-06 Andreas Schwab <schwab@suse.de>
2958
f5385255 2959 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
2960
29612008-10-06 Chong Yidong <cyd@stupidchicken.com>
2962
f5385255 2963 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 2964
a9b555d3 2965 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
2966
2967 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
2968 during initialization.
2969
29702008-10-04 Eli Zaretskii <eliz@gnu.org>
2971
2972 * xdisp.c (redisplay_internal): If frame switched, redisplay the
2973 whole thing on MSDOS frames as well as on a TTY.
2974
2975 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
2976 well as for TTY.
2977 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
2978 well as on a TTY.
2979
2980 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
2981 as well as for TTY.
2982
2983 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
2984
2985 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
2986 MSDOS frames as well.
2987
29882008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
2989
2990 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
2991 correct arguments.
b71ac3dd 2992 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
2993
29942008-10-03 Glenn Morris <rgm@gnu.org>
2995
2996 * emacs.c (USAGE1): Add --daemon.
2997
29982008-10-02 Eli Zaretskii <eliz@gnu.org>
2999
3000 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
3001 100, so it's in percents as advertised.
3002
30032008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
3004
3005 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
3006 (ns_output.current_cursor, ns_output.desired_cursor)
3007 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
3008 (FRAME_NEW_CURSOR_COLOR): Remove.
3009
3010 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 3011 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
3012 enumeration (HOLLOW_BOX_CURSOR, etc.).
3013
3014 * nsterm.m (ns_frame_rehighlight): Remove commented code.
3015 (draw_window_cursor): Simplify code.
f5385255
SM
3016 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
3017 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 3018 updates manually.
a9b555d3
JB
3019 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
3020 Use core Emacs cursor types.
aac0c6e3 3021
b8ff72fa 3022 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
3023
30242008-10-02 Martin Rudalics <rudalics@gmx.at>
3025
3026 * process.c (Faccept_process_output): Fix doc-string.
3027
30282008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
3029
3030 * gmalloc.c (__sbrk): Also define for uClibc.
3031
3032 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
3033 for uClibc.
3034
30352008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
3036
3037 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
3038 styles.
3039 (nsfont_open): Reenable the cache.
3040
30412008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
3042
3043 * font.c (font_matching_entity): Reflect ATTRS in font selection.
3044 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
3045
30462008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
3047
3048 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
3049 a suspended terminal.
3050
30512008-09-30 Michael Albinus <michael.albinus@gmx.de>
3052
3053 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
3054
30552008-09-30 Eli Zaretskii <eliz@gnu.org>
3056
3057 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
3058
30592008-09-30 Chong Yidong <cyd@stupidchicken.com>
3060
3061 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
3062 in a continued line coincides with a line beginning.
3063
30642008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
3065
3066 * nsfont.m (nsfont_trait_distance): Fix bug.
3067 (nsfont_list): Return a list rather than a vector (syncs with Handa
3068 changes of 2008-05-14).
3069 (nsfont_open): Improve logging.
3070
30712008-09-29 Andreas Schwab <schwab@suse.de>
3072
3073 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
3074
30752008-09-28 Martin Rudalics <rudalics@gmx.at>
3076
3077 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
3078 name as char-resolve-modifiers.
3079 Reported by: Markus Triska <markus.triska@gmx.at>
3080
30812008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
3082
3083 * dispnew.c (init_display): Return earlier when running as a daemon.
3084
30852008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
3086
3087 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
3088
30892008-09-27 Eli Zaretskii <eliz@gnu.org>
3090
3091 * composite.c (Fcomposition_get_gstring)
3092 (Fcompose_region_internal, Fcompose_string_internal)
3093 (Ffind_composition_internal): Doc fix.
3094 (syms_of_composite) <compose-chars-after-function>: Doc fix.
3095 (syms_of_composite) <auto-composition-function>: Doc fix.
3096 (syms_of_composite) <composition-function-table>: Doc fix.
3097
30982008-09-25 Chong Yidong <cyd@stupidchicken.com>
3099
3100 * search.c (wordify): New argument for lax word-ends.
3101 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
3102
31032008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
3104
3105 * lisp.h (is_daemon): Declare.
3106 * dispnew.c (init_display): Do not try to initialize the terminal
3107 when running as a daemon.
3108
31092008-09-22 Chong Yidong <cyd@stupidchicken.com>
3110
3111 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
3112 x_display_pixel_height.
3113
31142008-09-22 Martin Rudalics <rudalics@gmx.at>
3115
3116 * undo.c (record_point): Don't call Fundo_boundary for first
3117 change. (Bug#731)
3118
31192008-09-22 Juanma Barranquero <lekktu@gmail.com>
3120
3121 * emacs.c (Fdaemonp): Doc fix.
3122
31232008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
3124
3125 * emacs.c (main): Place #ifdef in the proper place.
3126
31272008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
3128
3129 * emacs.c (standard_args): Add --daemon.
3130 (main): Disconnect from the terminal when --daemon is passed.
3131 (is_daemon): New variable.
3132 (Fdaemonp): New function.
3133 (syms_of_emacs): Defsubr it.
3134
31352008-09-20 Chong Yidong <cyd@stupidchicken.com>
3136
3137 * xdisp.c (get_next_display_element): Handle string display
3138 correctly when checking for the end of a box run.
3139
31402008-09-20 Glenn Morris <rgm@gnu.org>
3141
3142 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
3143 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
3144 (Frename_file): Avoid copying to trash if a rename involves
3145 a delete. (Bug#964).
3146
31472008-09-20 Eli Zaretskii <eliz@gnu.org>
3148
3149 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
3150 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
3151 frames as well as termcap frames.
3152 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
3153 get_named_tty.
3154
31552008-09-19 Eli Zaretskii <eliz@gnu.org>
3156
3157 * process.c (procfs_system_process_attributes): Fix cmdline in
3158 case /proc/PID/cmdline is empty.
3159
3160 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
3161 x_display_pixel_height.
3162
31632008-09-19 Juanma Barranquero <lekktu@gmail.com>
3164
3165 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
3166
3167 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
3168 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
3169
31702008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
3171
3172 * dispextern.h (struct it): Move line_wrap away from the middle of
3173 bitfields. Move voffset in struct iterator_stack_entry after the
3174 bitfields. Move tab_width near after another short.
3175
31762008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
3177
3178 * frame.h (struct frame): Move alpha from the middle of bitfields.
3179
3180 * window.h (struct window): Move frozen_window_start_p after the
3181 rest of the bitfields to reduce padding.
3182
31832008-09-18 Chong Yidong <cyd@stupidchicken.com>
3184
3185 * xterm.h (x_display_info): Remove `height' and `width' members.
3186
3187 * nsterm.h (ns_display_info): Remove `height' and `width' members.
3188
3189 * w32term.h (w32_display_info): Remove `height', `width',
3190 `height_in', and `width_in' members.
3191
b8ff72fa
SM
3192 * xterm.c (x_display_pixel_height, x_display_pixel_width):
3193 New functions.
aac0c6e3
MR
3194 (x_calc_absolute_position): Use them.
3195 (x_term_init): Omit removed `height' and `width' members.
3196
b8ff72fa
SM
3197 * w32term.c (x_display_pixel_height, x_display_pixel_width):
3198 New functions.
aac0c6e3
MR
3199 (w32_read_socket, x_calc_absolute_position): Use them.
3200 (w32_initialize_display_info, w32_term_init): Omit removed members
3201 of w32_display_info.
3202
b8ff72fa
SM
3203 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
3204 New functions.
3205 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 3206
b8ff72fa
SM
3207 * xterm.c (x_display_pixel_height, x_display_pixel_width):
3208 New functions.
aac0c6e3
MR
3209 (x_calc_absolute_position): Use them.
3210 (x_term_init): Omit removed `height' and `width' members.
3211
3212 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
3213 (compute_tip_xy):
3214 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
3215 * xmenu.c (menu_position_func): Use x_display_pixel_height and
3216 x_display_pixel_width.
3217
32182008-09-18 Kenichi Handa <handa@m17n.org>
3219
3220 * composite.c (fill_gstring_header): Don't check FROM and TO here.
3221 (composition_compute_stop_pos): Fix handling of static composition.
3222 (Fcomposition_get_gstring): Check FROM and TO at first.
3223
32242008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
3225
46e722a9 3226 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
3227 mixup (YAILOM).
3228
32292008-09-17 Chong Yidong <cyd@stupidchicken.com>
3230
3231 * indent.c (Fvertical_motion): Use position reported by iterator
3232 instead of PT for determining screen motion (bug#943).
3233
32342008-09-17 Romain Francoise <romain@orebokech.com>
3235
3236 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
3237
32382008-09-17 Kenichi Handa <handa@m17n.org>
3239
3240 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
3241
3242 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
3243 if necessary.
3244
32452008-09-16 Kenichi Handa <handa@m17n.org>
3246
3247 * coding.c (make_conversion_work_buffer): Avoid calling
3248 Fget_buffer_create if it is not necessary.
3249
32502008-09-15 Martin Rudalics <rudalics@gmx.at>
3251
3252 * window.c (Fselect_window): Don't update window_select_count and
3253 use_time when norecord is not nil.
3254
32552008-09-14 Kenichi Handa <handa@m17n.org>
3256
3257 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
3258 specpdl_ptr.
3259
32602008-09-12 Kenichi Handa <handa@m17n.org>
3261
3262 * indent.c (scan_for_column): Don't handle automatic composition
3263 if the current buffer is not associated with a window.
3264
3265 * composite.c (composition_reseat_it): If the current buffer is
3266 not associated with a window, ignore the automatic composition.
3267 (find_automatic_composition): Likewise.
3268
32692008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
3270
3271 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
3272 (Fgpm_mouse_stop): Use it.
3273 * termhooks.h (close_gpm): Declare.
3274 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
3275 connection if Gpm_GetEvent fails.
3276
3277 * window.c (set_window_buffer): Always preserve current-buffer.
3278
32792008-09-12 Glenn Morris <rgm@gnu.org>
3280
3281 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
3282
32832008-09-11 Glenn Morris <rgm@gnu.org>
3284
3285 * charset.c (charset-map-path): Doc fix.
3286
32872008-09-10 Kenichi Handa <handa@m17n.org>
3288
3289 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
3290
3291 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
3292 compose a grapheme cluster with the preceding base glyph.
3293
3294 * composite.c (composition_compute_stop_pos): Fix previous change.
3295 Reset cmp_it->id to -1 at first.
3296
32972008-09-10 Glenn Morris <rgm@gnu.org>
3298
3299 * Makefile.in (character.o, chartab.o): Fix config.h typo.
3300
33012008-09-09 Chong Yidong <cyd@stupidchicken.com>
3302
3303 * keyboard.c (read_key_sequence): Reapply translation maps when
3304 switching keyboards.
3305
33062008-09-09 Kenichi Handa <handa@m17n.org>
3307
3308 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
3309 characters.
3310
3311 * composite.c (FORWARD_CHAR): Fix calculation
3312 of (POSITION).pos_byte.
3313 (composition_compute_stop_pos): Limit the search of composition to
3314 at most 500 characters ahead. If we reach the limit or find a
3315 newline, set cmp_it->ch to -2 and return 0.
3316 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
3317
33182008-09-08 Kenichi Handa <handa@m17n.org>
3319
3320 * indent.c (Fvertical_motion): Be sure to set
3321 it_overshoot_expected if it.cmp_it.id is non-negative.
3322
33232008-09-07 Andreas Schwab <schwab@suse.de>
3324
3325 * callproc.c (Fcall_process): Don't hold references to string data
3326 across garbage collection. Move initialisation of new_argv down
3327 to avoid compiler bug.
3328
33292008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
3330
3331 * process.c (Fsystem_process_attributes): Doc fix.
3332
33332008-09-07 Chong Yidong <cyd@stupidchicken.com>
3334
3335 * callproc.c (Fcall_process): Canonicalize current directory name.
3336
3337 * xdisp.c (move_it_to): When moving by vpos, ensure that the
3338 iterator advances to the next line if the current line ends in a
3339 continued tab.
3340
33412008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
3342
3343 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
3344 member to point to cmp_from.
3345
3346 * xdisp.c: Doc fix for references to gidx data member.
3347
33482008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
3349
3350 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
3351
33522008-09-07 Kenichi Handa <handa@m17n.org>
3353
3354 * composite.c (FORWARD_CHAR): Check STOP after
3355 incrementing (POSITION).pos.
3356
33572008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
3358
3359 * process.c (Fsystem_process_attributes): Doc fix.
3360
33612008-09-06 Chong Yidong <cyd@stupidchicken.com>
3362
3363 * keyboard.c (Ftop_level): Doc fix.
3364
33652008-09-06 Eli Zaretskii <eliz@gnu.org>
3366
3367 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
3368 minibuffer, don't let lower part of menu invade the echo area.
3369
3370 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
3371 "char *q" to access menu text and advance through it. Revert the
3372 change that displayed ">" instead of ASCII character 0x10.
3373
33742008-09-05 Eli Zaretskii <eliz@gnu.org>
3375
3376 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
3377 toggle boxes and radio buttons on MS-DOS as well.
3378
33792008-09-05 Kenichi Handa <handa@m17n.org>
3380
3381 * composite.c (autocmp_chars): Check lookback count.
3382 (composition_compute_stop_pos): Set cmp_it->lookback.
3383 (composition_reseat_it): Check lookback count.
3384 (struct position_record): New struct.
3385 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
3386 (find_automatic_composition): New function.
3387 (composition_adjust_point): Use find_automatic_composition.
3388
3389 * dispextern.h (struct composition_it): New member lookback.
3390
33912008-09-02 Chong Yidong <cyd@stupidchicken.com>
3392
3393 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
3394 if moving by a single line.
3395
33962008-09-02 Andreas Schwab <schwab@suse.de>
3397
3398 * xterm.c (x_delete_display): Fix merge error.
3399
3400 * fileio.c (Fexpand_file_name): Remove unused variables.
3401
34022008-09-02 Eli Zaretskii <eliz@gnu.org>
3403
3404 * fileio.c (Fexpand_file_name): Copy argument `name' into local
3405 storage on all platforms, not just on DOS_NT.
3406
34072008-09-02 Jason Rumney <jasonr@gnu.org>
3408
b8ff72fa
SM
3409 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
3410 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
3411
34122008-09-01 Chong Yidong <cyd@stupidchicken.com>
3413
3414 * xfaces.c (Finternal_set_alternative_font_family_alist)
3415 (Finternal_set_alternative_font_registry_alist): Properly copy
3416 entire alist structure.
3417
34182008-09-01 Kenichi Handa <handa@m17n.org>
3419
d66c0241 3420 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 3421 representative chars of the script is a vector.
d66c0241
JB
3422 (ftfont_list): Handle the case where the representative chars of
3423 the script is a vector.
aac0c6e3
MR
3424
3425 * character.c (syms_of_character): Docstring of
3426 script-representative-chars fixed.
3427
34282008-08-31 Eli Zaretskii <eliz@gnu.org>
3429
3430 * msdos.c (BUILD_CHAR_GLYPH): New macro.
3431 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
3432 the menu. Allocate larger buffer for `text', to account for
3433 possible ^C characters.
3434
34352008-08-31 Martin Rudalics <rudalics@gmx.at>
3436
3437 * xdisp.c (prepare_menu_bars): Don't call
3438 Vwindow_size_change_functions with arg Qt.
3439
34402008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
3441
3442 * font.h (font_range):
3443 * fileio.c (report_file_error):
46e722a9
SM
3444 * composite.c (composition_update_it): Yet another int/Lisp_Object
3445 mixup (YAILOM).
aac0c6e3
MR
3446
34472008-08-30 Glenn Morris <rgm@gnu.org>
3448
3449 * data.c (Fmake_variable_frame_local): Doc fix.
3450
3451 * frame.c (Fmodify_frame_parameters): Doc fix.
3452
34532008-08-30 Eli Zaretskii <eliz@gnu.org>
3454
3455 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
3456 needed by GetTokenInformation.
3457 (w32_system_process_attributes): Check return values of all system
3458 APIs.
3459
3460 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
3461 only when the state changes.
3462 (IT_update_begin, IT_update_end): Add termscript trace.
3463
3464 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
3465 clipboard is unavailable. Set dst to NULL if it doesn't point to
3466 malloc'ed data.
3467 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
3468 passing random values to xfree.
3469
3470 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 3471 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
3472
34732008-08-29 Jason Rumney <jasonr@gnu.org>
3474
3475 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
3476
34772008-08-29 Eli Zaretskii <eliz@gnu.org>
3478
3479 * composite.c (fill_gstring_body): Avoid compiler warnings.
3480
3481 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
3482 LGLYPH_SET_CODE to avoid compiler warnings.
3483
2ae37cf0 3484 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
3485
3486 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
3487
3488 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
3489 LGLYPH_SET_CODE.
3490
34912008-08-29 Kenichi Handa <handa@m17n.org>
3492
3493 * fileio.c (report_file_error): Don't downcase the first character
3494 of errstring if it is still unibyte.
3495
34962008-08-29 Kenichi Handa <handa@m17n.org>
3497
3498 These changes are to re-implement the automatic composition so
3499 that it doesn't use text properties.
3500
3501 * Makefile.in (ftfont.o): Depend on composite.h.
3502 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
3503
3504 * character.h (Vunicode_category_table): Extern it.
3505
3506 * character.c (Vunicode_category_table): New variable.
3507 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
3508
3509 * chartab.c (optimize_sub_char_table): Perform more greedy
3510 optimization.
3511
b8ff72fa
SM
3512 * composite.h (enum composition_method):
3513 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
3514 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
3515 (Vcomposition_function_table): Extern it.
3516 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
3517 (composition_gstring_put_cache, composition_gstring_from_id)
3518 (composition_gstring_p, composition_gstring_width)
3519 (composition_compute_stop_pos, composition_reseat_it)
3520 (composition_update_it, composition_adjust_point): Extern them.
3521 (Fcomposition_get_gstring): EXFUN it.
3522
d66c0241 3523 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
3524 (Vcomposition_function_table)
3525 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
3526 (gstring_hash_table, gstring_work, gstring_work_headers):
3527 New variables.
aac0c6e3
MR
3528 (gstring_lookup_cache, composition_gstring_put_cache)
3529 (composition_gstring_from_id, composition_gstring_p)
3530 (composition_gstring_width, fill_gstring_header)
3531 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
3532 (composition_reseat_it, composition_update_it)
b8ff72fa 3533 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
3534 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
3535 and gstring_work_headers. DEFVAR_LISP composition-function-table.
3536 Defsubr compostion_get_gstring.
3537
3538 * dispextern.h (struct glyph): New union u.cmp. Delete the member
3539 cmp_id.
3540 (struct glyph_string): Delete the member gidx. New members
3541 cmp_id, cmp_from, and cmp_to.
3542 (enum it_method): Delete GET_FROM_COMPOSITION.
3543 (struct composition_it): New struct.
3544 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
3545 Delete c, len, cmp_id, cmp_len in u.comp.
3546
3547 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 3548 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 3549 (enum lglyph_indices): Likewise.
b8ff72fa 3550 (font_range): Adjust extern.
aac0c6e3
MR
3551 (font_fill_lglyph_metrics): Extern it.
3552
3553 * font.c (QCf): New variable.
3554 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
3555 (font_prepare_composition): Delete this function.
3556 (font_range): Type and arguments changed.
3557 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
3558 (font_fill_lglyph_metrics): New function.
b8ff72fa 3559 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 3560 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
3561 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
3562 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
3563
3564 * fontset.h (font_for_char): Extern it.
3565
3566 * fontset.c (font_for_char): New function.
3567
3568 * ftfont.c: Include composite.h.
3569 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 3570 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
3571
3572 * indent.c: Include composite.h and dispextern.h.
3573 (check_composition): Delete this function.
3574 (scan_for_column): Handle composition by
3575 composition_compute_stop_pos, composition_reseat_it, and
3576 composition_update_it.
3577 (compute_motion): Likewise.
3578 (Fvertical_motion): Fix checking of composition.
3579
3580 * keyboard.c (adjust_point_for_property): Check composition by
3581 composition_adjust_point.
3582
b8ff72fa 3583 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
3584 struct glyph_string.
3585
b8ff72fa
SM
3586 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
3587 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
3588 struct glyph.
3589 (produce_composite_glyph): Likewise.
3590
b8ff72fa
SM
3591 * w32term.c (x_draw_composite_glyph_string_foreground):
3592 Adjust for the change of struct glyph_string.
aac0c6e3
MR
3593 (x_draw_glyph_string): Likewise.
3594
3595 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
3596 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
3597
3598 * xdisp.c: Include font.h.
3599 (it_props): Delete the entry for Qauto_composed.
3600 (init_iterator): Initialize it->cmp_it.id to -1.
3601 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 3602 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
3603 (handle_auto_composed_prop): Delete it.
3604 (handle_composition_prop): Handle only static composition.
3605 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
3606 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 3607 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
3608 (pop_it): Likewise.
3609 (get_next_element): Delete next_element_from_composition.
3610 (CHAR_COMPOSED_P): New macro.
3611 (get_next_display_element): For automatic composition, get a face
3612 from the font in the glyph-string.
3613 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 3614 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
3615 (next_element_from_string): Check if the character at the current
3616 position is composed by CHAR_COMPOSED_P.
3617 (next_element_from_buffer): Likewise.
d66c0241
JB
3618 (next_element_from_composition): Adjust for the change of struct it.
3619 Update it->cmp_it.
b8ff72fa
SM
3620 (dump_glyph): Adjust for the change of struct glyph.
3621 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
3622 it and struct glyph. Don't handle automatic composition here.
3623 (fill_gstring_glyph_string): New function.
3624 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 3625 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
3626 (BUILD_GSTRING_GLYPH_STRING): New macro.
3627 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
3628 automatic composition.
b8ff72fa 3629 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 3630 struct glyph.
b8ff72fa 3631 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 3632
b8ff72fa 3633 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
3634 the change of struct glyph_string.
3635 (x_draw_glyph_string): Likewise.
3636
36372008-08-29 Glenn Morris <rgm@gnu.org>
3638
3639 * buffer.c (word-wrap): Doc fix.
3640 * xdisp.c (truncate-partial-width-windows): Doc fix.
3641 Increase default to 50.
3642
36432008-08-29 Chong Yidong <cyd@stupidchicken.com>
3644
3645 * xdisp.c (update_tool_bar_unwind): New function.
3646 (update_tool_bar): Temporarily set selected frame before building
3647 tool-bar items.
3648
36492008-08-28 Michael Albinus <michael.albinus@gmx.de>
3650
3651 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
3652 snprintf, respectively.
3653 (xd_append_arg): Convert strings with Fstring_make_unibyte.
3654
36552008-08-28 Chong Yidong <cyd@stupidchicken.com>
3656
3657 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
3658 LDFLAGS to GNUstep CC invocation.
3659
36602008-08-27 Chong Yidong <cyd@stupidchicken.com>
3661
3662 * indent.c (Fvertical_motion): Revert last change. Handle the
3663 general case where we are moving forward, and PT spans multiple
3664 screen lines.
3665
3666 * eval.c (find_handler_clause): Temporarily increase
3667 max-lisp-eval-depth while printing the backtrace buffer, to
3668 guarantee that help-mode code can run.
3669
36702008-08-27 Eli Zaretskii <eliz@gnu.org>
3671
3672 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
3673 colors under -rv.
3674 (IT_set_frame_parameters): Don't swap foreground and background
3675 colors if `(reverse . t)' is present in the frame properties.
3676 (internal_terminal_init): Call init_frame_faces only for the
3677 initial frame.
3678
36792008-08-27 Andreas Schwab <schwab@suse.de>
3680
3681 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
3682
36832008-08-27 Andreas Schwab <schwab@suse.de>
3684
3685 * search.c (search_buffer): Set char_base to zero only at the end.
3686
36872008-08-27 Kenichi Handa <handa@m17n.org>
3688
b8ff72fa 3689 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
3690
36912008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
3692
3693 * xterm.c (x_term_init): Temporarily hide the partially
3694 initialized terminal while calling vendor-specific-keysyms.
3695
36962008-08-26 Eli Zaretskii <eliz@gnu.org>
3697
3698 * msdos.c (internal_terminal_init): Most initializations done only
3699 once, especially initial_screen_colors[] and termscript open.
3700
37012008-08-26 Chong Yidong <cyd@stupidchicken.com>
3702
3703 * eval.c (Fcondition_case): Doc fix.
3704
3705 * widgetprv.h (EmacsFramePart): Change font member to the new font
3706 struct.
3707
3708 * widget.c: Include character.h and font.h for XSETFONT.
3709 (setup_frame_gcs): Compute X font id from font struct, just once.
3710
37112008-08-26 Eli Zaretskii <eliz@gnu.org>
3712
3713 * term.c (get_named_tty): Fix last change.
3714
37152008-08-26 Chong Yidong <cyd@stupidchicken.com>
3716
3717 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 3718 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
3719
37202008-08-25 Eli Zaretskii <eliz@gnu.org>
3721
3722 * frame.c (do_switch_frame): Mark previously displayed frame as
3723 obscured for FRAME_MSDOS_P frames as well.
3724
37252008-08-24 Eli Zaretskii <eliz@gnu.org>
3726
3727 * frame.c (make_terminal_frame): Initialize f->terminal,
3728 f->terminal->reference_count, and scroll bars on MS-DOS as well.
3729 Set the top frame to newly created frame.
3730 (Fmake_terminal_frame): Reuse the_only_display_info.
3731
3732 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
3733 estimating available memory.
3734
b97439ce 37352008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
3736
3737 * nsterm.m (ns_draw_window_cursor): Don't call
3738 NSDisableScreenUpdates and NSEnableScreenUpdates on
3739 non-NS_IMPL_COCOA systems.
3740
37412008-08-23 Andreas Schwab <schwab@suse.de>
3742
3743 * process.c (procfs_system_process_attributes): Fix use of
3744 uninitialized variables.
3745
37462008-08-23 Eli Zaretskii <eliz@gnu.org>
3747
3748 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
3749
3750 * dispnew.c (init_display): Remove MS-DOS specific conditions for
3751 calling tty-set-up-initial-frame-faces.
3752
b8ff72fa
SM
3753 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
3754 Allow MSDOS frames along with X frames.
aac0c6e3
MR
3755
3756 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
3757 addition to output_termcap.
3758
3759 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
3760
3761 * termchar.h (FRAME_TTY): Support output_msdos_raw.
3762 (struct tty_display_info) [MSDOS]: Add fields related to mouse
3763 highlight.
3764
3765 * process.c [!subprocesses]: Define QCname.
3766 (syms_of_process): Intern and staticpro it.
3767
3768 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
3769 Adjust for changes in encoding/decoding routines.
3770 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
3771 encode_coding and decode_coding.
3772
b8ff72fa 3773 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
3774
3775 * dosfns.c: Include frame.h before termhooks.h.
3776 (dos_cleanup): Use CURTTY ()->termscript instead of a global
3777 variable termscript.
3778
3779 * s/msdos.h (USER_FULL_NAME): Define.
3780 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
3781
3782 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
3783 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
3784 pw->pw_gecos.
3785
3786 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
3787 SELECTED_FRAME as additional (1st) argument.
3788 (tty_read_avail_input): Handle output_msdos_raw in
3789 addition to output_termcap.
3790
3791 * msdos.c: Include frame.h before termhooks.h.
3792 (mouse_on, mouse_off, mouse_moveto, mouse_init)
3793 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
3794 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
3795 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
3796 (IT_set_terminal_modes, IT_reset_terminal_modes)
3797 (IT_set_frame_parameters): Use tty->termscript instead of a global
3798 variable termscript.
3799 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
3800 global variable terminal_coding. Don't refer to
3801 Vnonascii_translation_table.
3802 (internal_terminal_init): Set Vwindow_system in current_kboard.
3803 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
3804 Announce date and time of session start, if termscript is open.
3805 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
3806 term.c:init_tty). Open termscript only of not already open.
3807 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
3808 here instead of dos_ttraw. Don't initialize display if this is an
3809 initial tty. Don't set FRAME_FONT.
3810 (Vwindow_system_version): Bump to 23.
3811 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
3812 is available, set up mouse_position_hook.
3813 (dos_ttraw, IT_set_terminal_modes): If called with initial
3814 terminal, do nothing.
3815 (IT_set_frame_parameters): Handle the Qtty_type frame
3816 parameter by calling internal_terminal_init.
3817 (dos_set_window_size, show_mouse_face)
3818 (clear_mouse_face, IT_note_mode_line_highlight)
3819 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
3820 (dos_rawgetc): Use tty_display_info instead of x_display_info.
3821 (initialize_msdos_display): New function.
3822 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
3823 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
3824 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
3825 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 3826 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
3827 (request_sigio, unrequest_sigio): Don't define, now defined on
3828 sysdep.c.
3829 (IT_write_glyphs): Rewrite to use encode_terminal_code.
3830
3831 * term.c [MSDOS]: Include msdos.h.
3832 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
3833 conditional to DOS_NT. Allow only one call to this function in a
3834 session. Don't allocate a new struct tty_display_info; instead,
3835 reuse the_only_display_info. Call get_tty_size to get screen
3836 dimensions. Call init_baud_rate to set bad_rate.
3837 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
3838 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 3839 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
3840 (get_tty_terminal, get_named_tty, Ftty_type)
3841 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
3842 output_termcap.
b8ff72fa
SM
3843 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
3844 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 3845 only when subprocesses are supported.
aac0c6e3
MR
3846
3847 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
3848 f->output_data.x.
3849 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
3850 terminal devices.
3851
5582fbc7 3852 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
3853 x_output.
3854 (FRAME_FONT): Use output_data.tty.
3855 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
3856 (struct x_display_info): Rename from display_info. Update all users in
3857 msdos.c.
aac0c6e3 3858 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 3859 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
3860 (dos_ttraw): Update prototype.
3861
3862 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
3863 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
3864
38652008-08-23 Jason Rumney <jasonr@gnu.org>
3866
3867 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
3868 (fn_TIFFSetDirectory): New library function used.
3869 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
3870 (tiff_load): Use :index to select among multiple images. Set count
3871 property when multiple images exist.
3872 (gif_format): Use :index, not :image.
3873
38742008-08-23 Chong Yidong <cyd@stupidchicken.com>
3875
3876 * xdisp.c (try_scrolling): Check INT_MAX instead of
3877 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
3878 to obtain INT_MAX.
3879
38802008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
3881
3882 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
3883
38842008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
3885
3886 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
3887 GNUstep library location.
3888
38892008-08-21 Chong Yidong <cyd@stupidchicken.com>
3890
3891 * xfaces.c (x_update_menu_appearance): Check validity of menu font
3892 before using it.
3893
3894 * puresize.h (BASE_PURESIZE): Increase to 1250000.
3895
38962008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
3897
3898 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
3899 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
3900 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
3901 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
3902 (EmacsApp-cursor_blink_handler): Remove declaration.
3903 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
3904 match 01 Feb 2008 changes in xterm.c.
3905 (ns_read_socket): Add cast to avoid warning.
3906 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
3907 GNUstep.
3908
39092008-08-20 Chong Yidong <cyd@stupidchicken.com>
3910
3911 * xselect.c (x_get_foreign_selection): Return nil if desired
3912 selection could not be obtained, instead of signalling an error.
3913
39142008-08-20 David Reitter <david.reitter@gmail.com>
3915
3916 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
3917 * nsterm.m: Remove ns-specific code for cursor blinking.
3918 (ns_draw_window_cursor): Clear cursor properly rather than
3919 redrawing the area. Respect width of bar cursors.
3920 These changes enable the use of generic blink-cursor-mode and
3921 generic cursor types in NS and support smooth cursor movements (do
3922 not blink off after command).
3923 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
3924 Nextstep, too.
3925
39262008-08-19 Kenichi Handa <handa@m17n.org>
3927
3928 * font.c (Vfont_log_deferred): New variable.
3929 (font_add_log): Check Vfont_log_deferred.
3930 (font_deferred_log): New function.
3931
3932 * font.h (font_deferred_log): Extern it.
3933
3934 * fontset.c (reorder_font_vector): Use encoding charset of fonts
3935 for sorting.
3936 (face_for_char): Use deferred log.
3937
39382008-08-18 Kenichi Handa <handa@m17n.org>
3939
3940 * fontset.c (face_for_char): Add font log.
3941
3942 * font.c (font_add_log): Add the font properties :script, :lang,
3943 and :otf in the log.
3944
39452008-08-17 Chong Yidong <cyd@stupidchicken.com>
3946
3947 * xdisp.c: Remove dead code.
3948 (handle_invisible_prop, next_overlay_string): Defer call to
3949 setup_for_ellipsis.
3950 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
3951
39522008-08-15 Chong Yidong <cyd@stupidchicken.com>
3953
3954 * xfaces.c (lookup_derived_face): Properly handle possible zero
3955 return value of get_lface_attributes.
3956 (merge_faces): Don't tell lookup_derived_face to signal an error
3957 if face is not found.
3958
3959 * dired.c (Fdirectory_files): Doc fix.
3960
3961 * process.c (make_process): Initialize kill_without_query struct
3962 member.
3963
39642008-08-15 Eli Zaretskii <eliz@gnu.org>
3965
3966 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
3967 Alternative calculation of totphys for Visual Studio 6.
3968
3969 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
3970
3971 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
3972 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
3973 All users changed.
3974 (stat): Only root directory passed to GetDriveType. Allow RAM
3975 disk as well as local fixed disk when w32-get-true-file-attributes
3976 is set to `local'.
3977 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
3978 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
3979 (w32_cached_id, w32_add_to_cache): New functions.
3980 (get_name_and_id): Look account names in the cache before calling
3981 lookup_account_sid.
3982 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
3983 New initialization flags.
3984 (globals_of_w32): Initialize them to zero.
3985 (w32_system_process_attributes): Use w32_cached_id and
3986 w32_add_to_cache.
3987
39882008-08-14 Lawrence Mitchell <wence@gmx.li>
3989
3990 * lread.c (Fread_char, Fread_char_exclusive): If no character
3991 event is read before timeout is reached, return nil, rather than
3992 converting to a number.
3993
39942008-08-14 Chong Yidong <cyd@stupidchicken.com>
3995
3996 * fns.c (use_dialog_box): Doc fix.
3997
3998 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
3999 on OS X.
4000
40012008-08-13 Chong Yidong <cyd@stupidchicken.com>
4002
4003 * frame.c (Qns_parse_geometry): New var.
4004 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
4005
40062008-08-11 Chong Yidong <cyd@stupidchicken.com>
4007
4008 * xdisp.c (x_produce_glyphs): Handle the case when font has no
4009 space character in calculating tabs.
4010
40112008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
4012
4013 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
4014
40152008-08-10 Glenn Morris <rgm@gnu.org>
4016
4017 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
4018 silence gcc "limited range of data type" warnings in some
4019 make_fixnum_or_float calls.
4020
40212008-08-09 Eli Zaretskii <eliz@gnu.org>
4022
4023 * w32.c (w32_system_process_attributes): If the process does not
4024 exist, return nil.
4025
4026 * w32.c: Include thelp32.h, psapi.h and coding.h.
4027 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
4028 declarations.
4029 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
4030 (Process32Next_Proc): New typedefs.
4031 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
4032 (g_b_init_process32_next, g_b_init_open_thread_token)
4033 (g_b_init_impersonate_self, g_b_init_revert_to_self)
4034 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
4035 (g_b_init_get_process_working_set_size)
4036 (g_b_init_global_memory_status_ex): New static variables.
4037 (globals_of_w32): Initialize them.
4038 (create_toolhelp32_snapshot, process32_first, process32_next)
4039 (open_thread_token, impersonate_self, revert_to_self)
4040 (get_process_memory_info, get_process_working_set_size)
4041 (global_memory_status, global_memory_status_ex): New wrapper
4042 functions.
4043 (w32_list_system_processes, w32_system_process_attributes)
4044 (enable_privilege, restore_privilege, ltime, process_times):
4045 New functions.
4046 (convert_time_raw): New function.
4047 (convert_time): Remove conversion of FILETIME into time in 100
4048 nsec units, call convert_time_raw instead.
4049
4050 * process.h (w32_list_system_processes, w32_system_process_attributes):
4051 Add prototypes.
4052 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
4053 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
4054 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
4055 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
4056
4057 * process.c (Fsystem_process_attributes): Doc fix.
4058
40592008-08-08 Chong Yidong <cyd@stupidchicken.com>
4060
4061 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
4062 a continued multi-char glyph; if so, advance to the actual glyph.
4063
40642008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
4065
4066 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
4067
4068 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
4069 (.m.o): Use it.
4070 * config.in: Regenerate.
4071
40722008-08-07 Chong Yidong <cyd@stupidchicken.com>
4073
4074 * xdisp.c (redisplay_window): Revert last change.
4075 (try_window): Check bottom scroll margin too.
4076
40772008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4078
4079 * config.in: Regenerate.
4080
4081 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
4082 -list-load-path-shadows'.
4083 (nsgui.h): Reduce number of things depending on it.
4084
40852008-08-06 Chong Yidong <cyd@stupidchicken.com>
4086
4087 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
4088 instead of window-end which does the wrong thing at eob.
4089 (try_cursor_movement): Minor optimization.
4090 (redisplay_window): If scroll margin is defined, don't assume
4091 window doesn't need scrolling.
4092
40932008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4094
4095 * config.in: Regenerate.
4096
4097 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
4098 (mostlyclean): Don't delete *.d under NS.
4099
4100 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
4101
41022008-08-06 Kenichi Handa <handa@m17n.org>
4103
4104 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
4105
41062008-08-06 Andreas Schwab <schwab@suse.de>
4107
4108 * config.in: Regenerate.
4109
41102008-08-05 Chong Yidong <cyd@stupidchicken.com>
4111
4112 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
4113 forcing a window start.
4114
4115 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
4116 (auto_save_1): Update modtime when auto-save-list-file-name is on.
4117
41182008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4119
4120 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
4121 argument.
4122
41232008-08-05 Juanma Barranquero <lekktu@gmail.com>
4124
4125 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
4126 <scroll-down-aggressively, before-change-functions>:
4127 <after-change-functions>: Reflow docstrings.
4128
41292008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4130 Ken Raeburn <raeburn@gnu.org>
4131
4132 Dock menu customization, based on a patch by Ken Raeburn, plus some
4133 other fixes.
4134 * nsmenu.m (dockMenu): New variable.
4135 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
4136
4137 * nsterm.h (dockMenu): Declare.
4138
4139 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
4140 (ns_term_init): Initialize dockMenu.
4141 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
4142 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
4143 left.
4144
4145 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
4146
41472008-08-04 Chong Yidong <cyd@stupidchicken.com>
4148
4149 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
4150
4151 * config.in: Regenerate.
4152
41532008-08-04 Seiji Zenitani <zenitani@mac.com>
4154
4155 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
4156
41572008-08-04 Chong Yidong <cyd@stupidchicken.com>
4158
4159 * nsterm.h (find_and_call_menu_selection): Fix prototype.
4160
41612008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4162
4163 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
4164
4165 * keyboard.h: Comment an #endif.
4166
4167 * lisp.h (have_menus_p): Adjust comment.
4168
4169 * menu.c (find_and_return_menu_selection): Fix comparison with
4170 client_data.
4171
4172 * nsmenu.m (popup_activated_flag): New variable.
4173 (popup_activated): New function.
4174 (menu-or-popup-active-p): New exported lisp definition.
4175 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
4176 when popup done.
4177 (ns_popup_dialog): Set popup_activated_flag.
4178
4179 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
4180 version for GNUstep (handled by conditional typedef in nsterm.m).
4181 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
4182 in rgb.txt).
4183
4184 * process.c (init_process): Use DARWIN_OS, not DARWIN.
4185
4186 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
4187
4188 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
4189
4190 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
4191 shortcircuit if popup_activated like GTK and X toolkit.
4192
4193 * m/inter386.h: Change DARWIN to DARWIN_OS.
4194
4195 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
4196 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
4197 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
4198 comment on NO_SOCK_SIGIO.
4199
42002008-08-03 Chong Yidong <cyd@stupidchicken.com>
4201
4202 * nsterm.m (windowDidResize): Remove stopModal call.
4203
42042008-08-03 Andreas Schwab <schwab@suse.de>
4205
4206 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
4207 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
4208
42092008-08-02 Chong Yidong <cyd@stupidchicken.com>
4210
4211 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
4212 Don't use uninitialized pointer variable when using getrlimit.
4213
42142008-08-02 Jason Rumney <jasonr@gnu.org>
4215
4216 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
4217
42182008-08-02 Eli Zaretskii <eliz@gnu.org>
4219
4220 * alloc.c (NSTATICS): Bump to 0x640.
4221
4222 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
4223
4224 * lisp.h: Add prototype for directory_files_internal.
4225
4226 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
4227 New functions.
4228 (syms_of_process): Defsubr them. Add initializations for various
4229 Q* symbols used in procfs_system_process_attributes.
4230 (procfs_list_system_processes, procfs_system_process_attributes)
4231 [HAVE_PROCFS]: New functions.
4232 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
4233 (procfs_get_total_memory): New functions.
4234
42352008-08-01 Juanma Barranquero <lekktu@gmail.com>
4236
4237 * xfaces.c (Fx_load_color_file): Fix previous change;
4238 it is #ifdef WINDOWSNT, not WINDOWS_NT.
4239
42402008-08-01 Michael Albinus <michael.albinus@gmx.de>
4241
4242 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
4243
42442008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4245
4246 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
4247
42482008-08-01 Chong Yidong <cyd@stupidchicken.com>
4249
4250 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
4251
4252 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
4253 define NSApplicationDelegateReplySuccess.
4254 (EmacsView -converstationIdentifier): Use long instead of
4255 NSInteger for GNUstep, since it doesn't have NSInteger.
4256
4257 * xmenu.c: Revert last change.
4258
4259 * keyboard.h: Fix last change.
4260
42612008-08-01 Juanma Barranquero <lekktu@gmail.com>
4262
4263 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
4264 on Windows.
4265
42662008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4267
4268 Warning clearing and clean-up in NS port.
4269 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
4270 Add prototypes.
4271 * nsgui.h (FACE_DEFAULT): Remove, unused.
4272 (XGCValues): Change colors to unsigned long.
4273 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
4274 nsterm.m.
4275 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
4276 (ns_list_fonts): Remove, unused.
4277 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
4278 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
4279 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
4280 (nsfont_draw): Compare face colors to 0, not nil.
4281 * nsmenu.m (struct widget_value): Drop unneeded declaration.
4282 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
4283 (-addSubmenuWithTitle:): Use NSMenuItem class.
4284 (ns_popup_menu): Use NO, not NULL, for enabled setting.
4285 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
4286 (ns_clip_to_row): Make gc arg a BOOL.
4287 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
4288 ns_clip_to_row() call.
4289 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
4290 used). Cast FRAME_FONT assignments.
4291 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
4292 (ns_string_to_lispmod): Change arg to const char.
4293 (ns_term_init): Use NSMenuItem class.
4294 (EmacsApp -openFile:): Move to different section of file.
4295 (EmacsApp -application:openFiles:): Don't return a value, call
4296 -replyToOpenOrPrint:.
4297 (EmacsView -keyDown:): Fix up cast.
4298 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
4299 (EmacsView -menuDown:): Cast tag in call to
4300 find_and_call_menu_selection().
4301 (ns_list_fonts): Remove, unused.
4302 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
4303 (ns_fontname_to_xlfd): Make static.
4304 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
4305 Remove prototypes (now in keyboard.h).
4306 (next_menubar_widget_id): Remove, unused.
4307 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
4308 Remove prototypes (now in keyboard.h).
4309 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
4310
43112008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
4312
4313 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
4314 (floatfns.o): Depend on syssignal.h.
4315 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
4316
4317 * systty.h: Fix previous change that removed BSD_TERMIOS.
4318 Add comments to #ifdefs.
4319
43202008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4321
4322 * w32fns.c (w32-load-color-file): Remove.
4323 (x-open-connection): Use renamed Fx_load_color_file.
4324 * xfaces.c (x-load-color-file): Add.
4325 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
4326 Emacs.clr.
4327 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
4328
43292008-07-31 Michael Albinus <michael.albinus@gmx.de>
4330
4331 * dbusbind.c (Fdbus_call_method_asynchronously)
4332 (Fdbus_method_error_internal): New defuns.
4333 (xd_read_message): Handle also reply messages.
4334 (Vdbus_registered_functions_table): Extend docstring.
4335
43362008-07-31 Juanma Barranquero <lekktu@gmail.com>
4337
4338 * keyboard.c (gobble_input): Fix previous change.
4339
43402008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
4341
4342 * bitmaps/README:
4343 * xfns.c:
4344 * termcap.c:
4345 * term.c:
4346 * syswait.h:
4347 * systty.h:
4348 * systime.h:
4349 * syssignal.h:
4350 * sysdep.c:
4351 * process.h:
4352 * process.c:
4353 * print.c:
4354 * ndir.h:
4355 * lread.c:
4356 * keyboard.c:
4357 * getpagesize.h:
4358 * floatfns.c:
4359 * fileio.c:
4360 * emacs.c:
4361 * doc.c:
4362 * dispnew.c:
4363 * dired.c:
4364 * data.c:
4365 * callproc.c:
4366 * buffer.c:
4367 * README:
4368 * Makefile.in:
4369 * s/template.h:
4370 * s/msdos.h:
4371 * m/vax.h: Remove VMS support.
4372 * s/vms.h:
4373 * vlimit.h:
4374 * uaf.h:
4375 * temacs.opt:
4376 * param.h:
4377 * ioctl.h: Remove file.
4378
43792008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
4380
4381 * s/ms-w32.h (MULTI_KBOARD): Remove.
4382 * xterm.c:
4383 * xselect.c:
4384 * xfns.c:
4385 * window.c:
4386 * w32term.c:
4387 * w32fns.c:
4388 * terminal.c:
4389 * termhooks.h:
4390 * term.c:
4391 * sysdep.c:
4392 * keyboard.h:
4393 * keyboard.c:
4394 * frame.h:
4395 * frame.c:
4396 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
4397 * config.in: Regenerate.
4398
43992008-07-30 Jason Rumney <jasonr@gnu.org>
4400
4401 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
4402
4403 * w32font.c (w32font_encode_char): Leave as unicode if in range.
4404 (w32font_open_internal): Get unicode version of textmetrics.
4405 Don't enable or disable glyph indices here.
4406 (w32font_open): Disable use of glyph indices.
4407
4408 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
4409
44102008-07-30 Chong Yidong <cyd@stupidchicken.com>
4411
4412 * minibuf.c (Vread_buffer_function): Doc fix.
4413
44142008-07-30 John Paul Wallington <jpw@pobox.com>
4415
4416 * minibuf.c (read_buffer_completion_ignore_case): New var.
4417 (Fread_buffer): Use it.
4418
44192008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
4420
4421 * systty.h (sensemode): Remove empty #if. Remove reference to
4422 BSD_TERMIOS, unused.
4423
4424 * sysdep.c: Remove reference to DGUX.
4425 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
4426
4427 * config.in: Regenerate.
4428
44292008-07-30 Jason Rumney <jasonr@gnu.org>
4430
4431 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
4432
44332008-07-29 Jason Rumney <jasonr@gnu.org>
4434
4435 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
4436 is populated.
4437 (uniscribe_encode_char): Always use uniscribe.
4438 Avoid using context if cache is populated.
4439
44402008-07-29 Jan Djärv <jan.h.d@swipnet.se>
4441
4442 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
4443 open menu.
4444
4445 * gtkutil.c (menu_nav_ended): Remove.
4446 (create_menus): Remove signal connect for menu_nav_ended.
4447
44482008-07-28 Chong Yidong <cyd@stupidchicken.com>
4449
4450 * xdisp.c (redisplay_window): Check return value of
4451 compute_window_start_on_continuation_line before forcing a window
4452 start.
4453
44542008-07-28 Jason Rumney <jasonr@gnu.org>
4455
4456 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
4457
4458 * w32term.c (w32_enable_unicode_output, cleartype_active):
4459 Remove obsolete display options.
4460 (x_draw_glyph_string_background): Don't use old cleartype_active
4461 workaround.
4462 (w32_initialize): Remove cleartype_active initialization.
4463 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
4464
44652008-07-28 Andreas Schwab <schwab@suse.de>
4466
4467 * lisp.h (init_weak_hash_tables, syms_of_font)
4468 (xd_read_queued_messages, syms_of_dbusbind): Declare.
4469 (remove_hash_entry): Don't declare.
4470 * eval.c (maybe_call_debugger): Make static and move before use.
4471 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
4472 * xdisp.c: Include "gtkutil.h" if USE_GTK.
4473 * xterm.h (x_set_frame_alpha): Declare.
4474
44752008-07-28 Jan Djärv <jan.h.d@swipnet.se>
4476
4477 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
4478 (create_menus): Connect selection-done to menu_nav_ended.
4479
44802008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
4481
4482 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
4483 Set Vx_resource_name to a fallback. Replace read of 'buffered'
4484 parameter with read of 'alpha' one.
4485 (Qns_frame_parameter): Remove.
5582fbc7 4486 * nsselect.m (selection-coding-system)
aac0c6e3
MR
4487 (next-selection-coding-system, Vselection_coding_system)
4488 (Vnext_selection_coding_system): Drop.
4489
44902008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
4491
4492 * nsfns.m (do-applescript, do_applescript): Rename to
4493 ns-do-applescript, ns_do_applescript, and move within file.
4494
44952008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
4496
4497 Remove support for Mac Carbon.
4498 * mactoolbox.c:
4499 * macterm.h:
4500 * macterm.c:
4501 * macselect.c:
4502 * macmenu.c:
4503 * macgui.h:
4504 * macfns.c:
4505 * mac.c: Remove file.
4506 * s/darwin.h:
4507 * m/intel386.h:
4508 * xfaces.c:
4509 * xdisp.c:
4510 * window.c:
4511 * tparam.c:
4512 * termhooks.h:
4513 * termcap.c:
4514 * term.c:
4515 * syssignal.h:
4516 * sysselect.h:
4517 * sysdep.c:
4518 * process.c:
4519 * lread.c:
4520 * lisp.h:
4521 * keyboard.c:
4522 * image.c:
4523 * fringe.c:
4524 * frame.h:
4525 * frame.c:
4526 * fontset.c:
4527 * font.h:
4528 * font.c:
4529 * fns.c:
4530 * fileio.c:
4531 * emacs.c:
4532 * dispnew.c:
4533 * dispextern.h:
4534 * config.in:
4535 * atimer.c:
2ae37cf0 4536 * Makefile.in: Remove code for Carbon.
aac0c6e3 4537
f0131492 45382008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
4539
4540 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
4541
45422008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4543
4544 * macterm.h (kCGBitmapByteOrder32Host): New define for
4545 non-universal SDKs.
4546
4547 * image.c (mac_create_cg_image_from_image, image_load_image_io)
4548 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
4549
4550 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
4551 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
4552
45532008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
4554
4555 * w32inevt.c: Include dispextern.h.
4556
45572008-07-26 Andreas Schwab <schwab@suse.de>
4558
4559 * print.c (print_object): Fix off-by-one in last change.
4560
45612008-07-25 Juanma Barranquero <lekktu@gmail.com>
4562
4563 * term.c (syms_of_term): Don't initialize default_orig_pair,
4564 default_set_foreground and default_set_background on Windows.
4565
45662008-07-25 Jason Rumney <jasonr@gnu.org>
4567
4568 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
4569 ScriptItemize. Clean up return value checking. Remove unused
4570 variables.
4571 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
4572 shaping engine.
4573
4574 * w32font.c (w32font_has_char): Handle the case where we can't
4575 determine the script for a character.
4576
45772008-07-25 Chong Yidong <cyd@stupidchicken.com>
4578
4579 * term.c (syms_of_term): Initialize default_orig_pair,
4580 default_set_foreground, and default_set_background.
4581
4582 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
4583 clash (bug#86).
4584 (getloadavg): Callers changed.
4585
4586 * image.c (svg_load_image): Fix last change.
4587 (svg_load_image): Use rsvg_handle_get_dimensions to check that
4588 image size is valid. Use g_object_unref instead of deprecated
4589 rsvg_handle_free to free rsvg handle.
4590 (x_from_xcolors): Don't initialize pixmap (silence compiler).
4591
45922008-07-25 Jason Rumney <jasonr@gnu.org>
4593
4594 * w32font.c (w32font_encode_char): Encode characters outside BMP as
4595 surrogates before looking up glyph index.
4596 (w32font_text_extents): Encode as surrogates if falling back to
4597 functions that need UTF-16 wide chars.
4598
4599 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
4600 BMP as surrogates before looking up glyph index.
4601
46022008-07-25 Chong Yidong <cyd@stupidchicken.com>
4603
4604 * image.c (svg_load_image): Check for failure in return value of
4605 rsvg_handle_get_pixbuf. Free rsvg handle when done.
4606
46072008-07-25 Jason Rumney <jasonr@gnu.org>
4608
4609 * w32font.c (Fx_select_font): Reverse sense of second arg.
4610
46112008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
4612
4613 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
4614 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
4615
4616 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
4617 (PURESIZE): Use it.
4618
46192008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
4620
4621 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
4622 * m/alpha.h (TEXT_END):
4623 * m/ibmrs6000.h (TEXT_END):
4624 * m/macppc.h (TEXT_END):
4625 * s/darwin.h (TEXT_END):
4626 * s/msdos.h (TEXT_END): Remove, unused.
4627 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
4628 * s/cygwin.h: Remove comment.
4629
4630 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
4631 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
4632 * m/intel386.h (DOT_GLOBAL_START):
4633 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
4634 (USG): Remove, file not used on USG platforms.
4635
4636 * Makefile.in (HAVE_X11): Remove empty #else.
4637
46382008-07-24 Andreas Schwab <schwab@suse.de>
4639
4640 * fileio.c (Finsert_file_contents): Properly adjust undo list
4641 after format conversion.
4642
46432008-07-24 Jan Djärv <jan.h.d@swipnet.se>
4644
4645 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
4646 (menu_nav_ended): Remove.
4647 (create_menus): Remove signal connect for menu_nav_ended.
4648 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
4649 create_menus.
4650 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
4651
46522008-07-23 Jason Rumney <jasonr@gnu.org>
4653
4654 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
4655 with opened font.
4656 (w32font_open): Set font type to gdi.
4657
4658 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
4659
46602008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
4661
4662 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
4663 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
4664 defines it.
4665 * unexec.c (ADDR_CORRECT): Define unconditionally.
4666
4667 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
4668
4669 * unexec.c: Remove code depending on !COFF and USG, the file is
4670 not used for such systems.
4671
4672 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
4673 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
4674 (LD_SWITCH_SYSTEM_1): Remove, update users.
4675
4676 * s/darwin.h (DATA_END):
4677 * m/intel386.h (DATA_END):
4678 * m/ibmrs6000.h (DATA_END):
4679 * m/alpha.h (DATA_END): Remove, unused.
4680
4681 * config.in: Regenerate.
4682 * s/ms-w32.h (subprocesses): Define unconditionally.
4683 * s/template.h (subprocesses): Update comment.
4684 * s/vms.h (subprocesses):
4685 * s/usg5-4.h (subprocesses):
4686 * s/hpux10-20.h (subprocesses):
4687 * s/gnu-linux.h (subprocesses):
4688 * s/cygwin.h (subprocesses):
4689 * s/bsd-common.h (subprocesses):
4690 * s/aix4-2.h (subprocesses):
4691 * s/darwin.h (subprocesses): Do not define, defined by default now.
4692
4693 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
4694 Remove all references.
4695 (temacs): Add GNUstep specific ld flags.
4696
4697 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
4698 similarly to what X does.
4699
47002008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4701
4702 * nsfns.m (x-list-fonts): Remove.
4703 (syms_of_nsfns): Drop the x-list-fonts declaration.
4704 * nsterm.m: Get rid of remaining "//" comments.
4705
47062008-07-22 Chong Yidong <cyd@stupidchicken.com>
4707
4708 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
4709
4710 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
4711 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
4712 (Fns_own_selection_internal, Fx_disown_selection_internal)
4713 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
4714
4715 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
4716 ... */' style of docstrings. Doc fixes.
4717
47182008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
4719
4720 * terminfo.c (UP, BC, PC): Undo previous change.
4721
4722 * nsfns.m: Rename ns prefixed functions/variables to the
4723 corresponding x versions. Update references.
4724
47252008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
4726
4727 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
4728
47292008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
4730
4731 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
4732 Remove forwarding functions.
4733 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
4734 non-static.
4735 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
4736 non-static.
4737 (ns_frame_parm_handlers): Use the new names.
4738 (syms_of_nsfns): Move to the end of file.
4739
4740 * nsterm.m (syms_of_nsterm): Move to the end of file.
4741
4742 * dispnew.c (init_display): Remove code for X10.
4743
47442008-07-22 Jason Rumney <jasonr@gnu.org>
4745
4746 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
4747 bare drive.
4748
47492008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4750
4751 * nsterm.m (syms_of_nsterm): Remove debugging println.
4752
47532008-07-22 David Reitter <david.reitter@gmail.com>
4754
4755 * nsfns.m (do_applescript, F_do_applescript): NS version of the
4756 Carbon implementation of the same functionality: execute arbitrary
4757 AppleScript code.
4758
47592008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4760
4761 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
4762 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
4763 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
4764 (Fx_display_mm_height, Fx_display_mm_width)
4765 (Fx_display_backing_store, Fx_display_visual_class)
4766 (Fx_display_save_under, Fx_open_connection)
4767 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
4768 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
4769 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
4770 (Fx_display_pixel_width, Fx_display_pixel_height)
4771 (Fx_display_usable_bounds, Fx_display_planes)
4772 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
4773 ... */' style of docstrings.
4774
47752008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
4776
4777 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
4778 on this platform.
4779 (mips):
4780 * m/iris4d.h (mips): Do not define.
4781 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
4782
4783 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
4784
4785 * image.c:
4786 * nsfns.m:
4787 * nsselect.m:
4788 * nsterm.h:
4789 * nsterm.m: Rename ns prefixed functions/variables to the
4790 corresponding x versions. Update references.
4791
4792 * m/ibms390x.h (NO_REMAP): Do not undefine.
4793
4794 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
4795
47962008-07-21 Chong Yidong <cyd@stupidchicken.com>
4797
4798 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
4799 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
4800 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
4801 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
4802 (Fns_display_mm_height, Fns_display_mm_width)
4803 (Fns_display_backing_store, Fns_display_visual_class)
4804 (Fns_display_save_under, Fns_open_connection)
4805 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
4806 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
4807 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
4808 (Fns_display_pixel_width, Fns_display_pixel_height)
4809 (Fns_display_usable_bounds, Fx_display_planes)
4810 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
4811
48122008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
4813
4814 * print.c (print_object): Check print_depth before searching for
4815 circularities.
4816
48172008-07-21 Michael Albinus <michael.albinus@gmx.de>
4818
4819 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
4820 only sprintf.
4821
48222008-07-21 Kenichi Handa <handa@m17n.org>
4823
4824 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
4825
48262008-07-20 Andreas Schwab <schwab@suse.de>
4827
4828 * syntax.c (find_start_pos, find_start_value)
4829 (find_start_value_byte, find_start_begv, find_defun_start)
4830 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
4831
48322008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
4833
4834 * s/sol2-3.h: Insert contents of s/sol2.h.
4835 (LD_SWITCH_SYSTEM): Remove redundant definition.
4836 * s/sol2.h: Remove, unused.
4837
48382008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4839
4840 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
4841
48422008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4843
4844 * Makefile.in (ns_appdir): Fix typo in find command.
4845
48462008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
4847
4848 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
4849
4850 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
4851 added not supported anymore.
4852
4853 * s/usg5-4-2.h (LIBS_SYSTEM):
4854 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
4855
4856 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
4857 * s/lynxos.h (GETPGRP_NO_ARG):
4858 * s/hpux10-20.h (NO_SIOCTL_H):
4859 * s/gnu.h (GETPGRP_NO_ARG):
4860 * s/gnu-linux.h (NO_SIOCTL_H):
4861 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
4862 * s/cygwin.h (GETPGRP_NO_ARG):
4863 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
4864 (C_DEBUG_SWITCH): Remove duplicate definition.
4865
4866 * m/ibms390.h: Remove boilerplate comments.
4867
4868 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
4869
4870 * process.c (HAVE_SERIAL): Consolidate ifdefs.
4871 (wait_reading_process_output): Remove code for SunOS, platform not
4872 supported anymore. Use SOLARIS2 instead of sun.
4873
48742008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
4875
4876 * font.c (font_open_by_name): Under NS, default lface height to zero.
4877 (font_open_for_lface): Under NS, set size based on frame fontsize.
4878 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
4879 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
4880
48812008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
4882
4883 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
4884 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
4885 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
4886 YES/NO.
4887 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
4888 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
4889 * Makefile.in (clean): Clear out build destination dir.
4890
48912008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
4892
4893 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
4894 xterm, xselect.
4895 * lisp.h: Remove declaration of hash_remove.
4896 * nsgui.h: Remove redefinitions of hash_remove.
4897 * fns.c (hash_remove): Rename to hash_remove_from_table.
4898
48992008-07-19 Seiji Zenitani <zenitani@mac.com>
4900
4901 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
4902 strdup() the family UTF8String before modifying it.
4903
49042008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
4905
4906 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
4907 NS_FACE_BACKGROUND with 0 instead of nil.
4908 * nsfont.m (nsfont_draw): Same.
4909
49102008-07-19 Chong Yidong <cyd@stupidchicken.com>
4911
4912 * nsfns.m (ns_set_background_color): Fix crash.
4913
49142008-07-18 Chong Yidong <cyd@stupidchicken.com>
4915
4916 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
4917
49182008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
4919
4920 * puresize.h (BASE_PURESIZE): Increase to 1240000.
4921
49222008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4923
4924 * gtkutil.c: Include <config.h> instead of "config.h".
4925
4926 * lisp.h (Foverlay_buffer): Add EXFUN.
4927
4928 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
4929 child process to complete child_setup. Undo 2005-09-21 change.
4930
4931 * s/darwin.h: Mention setsid after vfork.
4932
49332008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4934
4935 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
4936 Depend on macgui.h.
4937
4938 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
4939 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
4940
4941 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
4942 and f19.
4943 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
4944
4945 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
4946 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
4947 Remove enumerators.
4948
4949 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
4950 Check if FACE_FROM_ID returns NULL.
4951
49522008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
4953
4954 * w32inevt.c (change_frame_size): Remove extern declaration.
4955 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
4956 change_frame_size.
4957
49582008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
4959
4960 * getloadavg.c: Revert last change (2008-07-15).
4961
49622008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
4963
4964 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
4965 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc) set
4966 from configure.
4967
49682008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
4969
4970 * s/sol2.h:
4971 * s/sol2-4.h: Reorganize conditionals.
4972
4973 * ecrt0.c: Remove code depending on m68000, not used anymore.
4974
4975 * fns.c (hash_remove): Make static.
4976 * lisp.h (hash_remove): Don't prototype.
4977
4978 * m/ibmrs6000.h:
4979 * m/ibms390x.h:
4980 * m/macppc.h: Remove boilerplate comments.
4981
4982 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
4983 Solaris, which does not need them.
4984
4985 * m/vax.h: Remove comments about unsupported systems.
4986
4987 * s/darwin.h: Reorganize ifdefs.
4988
49892008-07-17 Andreas Schwab <schwab@suse.de>
4990
4991 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
4992
49932008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
4994
4995 Use SDATA. Follow coding convention of placing operators at
4996 beginning of next line rather than end of previous line, and placing
4997 spaces around infix operators.
4998
4999 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
5000 in case it was defined already.
5001 USE @GNUSTEP_MAKEFILES@ rather than envvars.
5002 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
5003 ns_default.
5004 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
5005 Lisp_Objects.
5006 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
5007 (ns_defined_color, ns_color_to_lisp): Declare.
5008 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
5009 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
5010 it's accepted even with USE_LISP_UNION_TYPE.
5011 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
5012 (update_frame_tool_bar): Remove apparently obsolete tests for
5013 non-integerness of f->tool_bar_lines.
5014 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
5015 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
5016 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
5017 (nsfont_open): Don't confuse NULL for Qnil.
5018 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
5019 * menu.h (find_and_call_menu_selection):
5020 * menu.c (find_and_call_menu_selection): Use just int for vector size.
5021 (find_and_return_menu_selection): Always return something.
5022 * frame.h: Include dispextern.h for Display_Info.
5023 (display_x_get_resource): Declare.
5024
50252008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
5026
5027 * syntax.c: Remove stdio.h include accidentally introduced in
5028 Emacs.app commit.
5029 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
5030 NS_IMPL_COCOA.
5031 * keyboard.c (handle_async_input, input_available_signal): Remove
5032 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
5033
50342008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
5035
5036 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
5037 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
5038 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
5039 Use SDATA.
5040
5041 * keymap.c: Remove all NS-specific code.
5042 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
5043 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
5044 where_is_preferred_modifier, return a different value depending on how
5045 preferred is the binding.
5046 (where_is_internal): Adjust accordingly.
5047 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
5048 Adjust to new preferred_sequence_p.
5049 (syms_of_keymap): Declare `where-is-preferred-modifier'.
5050 * keyboard.c (parse_solitary_modifier): Not static any more.
5051 * keyboard.h (parse_solitary_modifier): Declare.
5052
50532008-07-16 Andreas Schwab <schwab@suse.de>
5054
5055 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
5056 of easymenu.
5057
50582008-07-16 Chong Yidong <cyd@stupidchicken.com>
5059
5060 * xdisp.c (move_it_in_display_line): Account for word wrap, so
5061 that we don't move off the line.
5062
50632008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
5064
5065 * keyboard.c (Qsuper): Remove.
5066 (parse_menu_item): Don't call where_is_internal specially for NS.
5067
50682008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
5069
5070 * s/gnu-linux.h: Remove boilerplate comments.
5071
5072 * m/alpha.h (__ELF__): Consolidate conditions.
5073
5074 * m/m68k.h (linux): Use GNU_LINUX instead.
5075 Remove boilerplate comments.
5076
5077 * m/intel386.h: Undo refactoring from previous change.
5078 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
5079 too, remove dead code.
5080 (linux): Use GNU_LINUX instead.
5081
50822008-07-16 Jason Rumney <jasonr@gnu.org>
5083
5084 * w32gui.h: Repeat 26 June changes lost by last change.
5085
50862008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
5087
5088 * systty.h: Remove code for Aix on 386, unsupported platform.
5089
5090 * s/ms-w32.h: Remove boilerplate comments.
5091 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
5092
5093 * s/gnu-linux.h (TERM): Remove support.
5094 (HAVE_SYSVIPC): Remove, unused.
5095 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
5096 for this system.
5097
5098 * process.c: Remove support for IRIS, unused.
5099 Remove support for TERM, not relevant anymore.
5100
5101 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
5102 used with the definition.
5103
5104 * s/aix4-2.h (static): Do not undef.
5105
5106 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
5107 only used on Aix.
5108 (HAVE_SYSVIPC): Remove, unused.
5109
5110 * m/hp800.h (CANNOT_DUMP): Do not undef.
5111
5112 * m/alpha.h: Fix comment.
5113
5114 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
5115 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
5116 used by this configuration.
5117 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
5118 * unexec.c: Remove code depending on HPUX and
5119 USG_SHARED_LIBRARIES, not used with this file. Remove code
5120 depending on IRIS, unused. Remove if 0-ed code.
5121
5122 * s/template.h: Remove comments about static.
5123
5124 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
5125 Remove if 0-ed code.
5126 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
5127 were the same as the default.
5128 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
5129 Remove boilerplate comments.
5130 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
5131 (HAVE_SYSVIPC): Remove, unused.
5132 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
5133
5134 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
5135 Remove boilerplate comments.
5136 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
5137 Remove boilerplate comments.
5138 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
5139 Remove boilerplate comments.
5140 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
5141
5142 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
5143 USG systems which do not use DATA_SEG_BITS.
5144 Refactor code. Remove boilerplate comments.
5145
5146 * m/ibms390.h:
5147 * m/m68k.h:
5148 * s/bsd-common.h:
5149 * s/cygwin.h:
5150 * s/darwin.h:
5151 * s/freebsd.h:
5152 * s/gnu.h:
5153 * s/msdos.h: Remove boilerplate comments.
5154
5155 * m/iris4d.h: Remove boilerplate comments and code for systems that
5156 do not use this file.
5157 (IRIS_4D): Remove, unused.
5158
5159 * m/mips.h: Remove boilerplate comments and code for systems that
5160 do not use this file.
5161 (SIGN_EXTEND_CHAR):
5162 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
5163 * unexmips.c: Remove file, unused.
5164
5165 * editfns.c (Fuser_full_name): Replace the only use of
5166 USER_FULL_NAME with its value.
5167 * config.in: Regenerate.
5168
51692008-07-16 David Reitter <david.reitter@gmail.com>
5170
5171 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
5172 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
5173
51742008-07-16 Glenn Morris <rgm@gnu.org>
5175
5176 * emacs.c (system-type): Doc fix.
5177
51782008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
5179
5180 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
5181 If the cache doesn't work, let's fix it, rather than work around it.
5182
51832008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
5184
5185 * Makefile.in: Correct additions for nsfont.o in last commit.
5186 * nsfont.m: New file (forgot last commit).
5187
51882008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
5189
5190 * callproc.c (set_initial_environment): Initialize
5191 Vprocess_environment under CANNOT_DUMP (fixes crash when
5192 batch-compiling for bootstrap).
5193
51942008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
5195 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5196
5197 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
5198 fix crash due to different init order.
5199
52002008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
5201
5202 Changes and additions for NeXTstep windowing system (Cocoa and
5203 GNUstep) support.
5204
5205 * Makefile.in:
5206 * config.in: Support defines and build commands for NS port.
5207 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
5208 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
5209 * dispextern.h: Include nsgui.h and add needed typedefs under NS
5210 windowing.
5211 (struct face): Add synth_ital field.
5212 * dispnew.c: Include nsterm.h when compiling under NS windowing.
5213 (init_display): Initialize Vinitial_window_system to "ns" when so
5214 compiled.
5215 * emacs.c: Include GSConfig.h when compiling under GNUstep.
5216 (display_arg): Use under NS.
5217 (main): Under NS, allocate autorelease pool and handle command line
5218 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
5219 (standard_args): Add NS-specific args.
5220 (shut_down_emacs): Shut down NS terminal if compiled under NS.
5221 * font.c (DEFAULT_ENCODING): New variable.
5222 (font_find_for_lface): Use it.
5223 (syms_of_font): Load syms_of_nsfont under NS.
5224 * font.h: Declare nsfont_driver when compiled under NS.
5225 * fontset.c: When compiling under NS, include nsterm.h.
5226 (fontset_from_font): Autoconstruct fontset under NS.
5227 * frame.c (various): Under NS, include nsterm.h, add Qns window system
5228 symbol, document and use it.
5229 (do_switch_frame): When for_deletion under Cocoa, add
5230 Fraise_frame(Qnil).
5231 (x_set_frame_parameters): Ensure font attribute changes are picked up.
5232 (x_get_arg): Allow "yes" and "no" as boolean values.
5233 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
5234 Qright under Cocoa.
5235 (focus-follows-mouse): Default to 0 under NS.
5236 * frame.h (enum output_method): Add output_ns.
5237 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
5238 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
5239 (FRAME_WINDOW_P): NS-specific definition.
5240 * fringe.c (max_used_fringe_bitmap): Make public.
5241 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
5242 (getloadavg): Use NeXT code under descendant OS's.
5243 * image.c (includes and header section, x_create_bitmap_from_data)
5244 (x_create_bitmap_from_file, free_bitmap_record, image_background)
5245 (image_background_transparent, x_clear_image_1)
5246 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
5247 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
5248 (x_to_xcolors, x_from_xcolors, x_disable_image)
5249 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
5250 other GUIs, including XPM support using code originally written for
5251 Carbon GUI.
5252 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
5253 using NS API.
5254 (image_ascent): Use font metrics macros instead of direct struct field
5255 access.
5256 * keyboard.c (includes): Add nsterm.h when compiling under NS.
5257 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
5258 Also, handle NS as GTK for menu bar purposes.
5259 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
5260 toolkit where they differ.
5261 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
5262 use cachelist, still needed under NS.
5263 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
5264 (struct widget_value): Define it here for menu.c.
5265 * keymap.c (includes): Include modifier internals.
5266 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
5267 NS.
5268 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
5269 support for preferring sequences using certain modifiers, specified by
5270 the FIRSTONLY argument.
5271 * lisp.h (hash_remove): Rename to avoid name clash when compiling
5272 under NS GNUstep implementation.
5273 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
5274 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
5275 * menu.c: Include nsterm.h under NS.
5276 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
5277 (free_menubar_widget_tree_value, update_submenu_strings)
5278 (find_and_call_menu_selection): Treat NS as X and NT.
5279 (find_and_return_menu_selection): New function, used for popup menus.
5280 * nsgui.h:
5281 * nsterm.h:
5282 * nsfns.m:
5283 * nsimage.m:
5284 * nsmenu.m:
5285 * nsselect.m:
5286 * nsterm.m: New files.
5287 * process.c (wait_reading_process_output): Under NS, call ns_select()
5288 instead of plain select().
5289 * syntax.c (char_quoted): Under NS, avoid a crash when called near
5290 beginning of buffer.
5291 * sysselect.h (init_process): Rename when compiling under Cocoa to
5292 avoid name conflict.
5293 * termhooks.h (display_info): Add ns_display_info to union.
5294 * terminal.c (Fterminal_live_p): Add ns to terminal types.
5295 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
5296 COCOA environment.
5297 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
5298 unexec() signature. (Note, this will dump, but the resulting file
5299 crashes; unexosx is used instead; keeping around for reference and
5300 possible aid in getting dump working under GNUstep.)
5301 * w32gui.h (button_type, widget_value): Remove definitions (now in
5302 keyboard.h).
5303 * window.c: Include nsterm.h when compiling under NS.
5304 * xdisp.c (includes): Include nsterm.h when compiling under NS.
5305 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
5306 other GUI windowing systems.
5307 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
5308 GTK.
5309 (x_consider_frame_title): Under NS, set icon type and frame
5310 modified-state indicator; use ns_set_name_as_filename() when using
5311 formatted title.
5312 (update_window_cursor): Make public when compiling under NS.
5313 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
5314 (hourglass_atimer, Vhourglass_delay
5315 * xfaces.c (header section, init_frame_faces, clear_font_table)
5316 (defined_color, unload_color, x_face_list_fonts)
5317 (prepare_face_for_display): Add NS support parallel to other GUIs.
5318 Emulate GCs like other non-X GUIs.
5319 (split_font_name): Don't lowercase font name under NS.
5320 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
5321 under NS.
5322 * s/darwin.h: Add support for compilation under NS.
5323
53242008-07-15 Jason Rumney <jasonr@gnu.org>
5325
5326 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
5327 (w32_show_hourglass): Rename from show_hourglass.
5328 (w32_hide_hourglass): Rename from hide_hourglass.
5329 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
5330 (Vhourglass_delay): Declare extern.
5331 (hourglass_started): Remove.
5332
5333 * xdisp.c (Vhourglass_delay): Remove static.
5334 (hourglass_started, start_hourglass, cancel_hourglass):
5335 Don't include these versions on WINDOWSNT.
5336
53372008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
5338
5339 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
5340 variables (formerly in xfns.c).
5341 (show_hourglass, hide_hourglass): New prototypes (same).
5342 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
5343 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
5344 in xfns.c).
5345 (syms_of_xdisp): Declare/initialize display-hourglass,
5346 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
5347 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
5348 formerly in xfns.c.
5349 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
5350 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
5351 (start_hourglass, cancel_hourglass): Remove.
5352 (show_hourglass, hide_hourglass): Remove prototypes and static
5353 modifiers.
5354 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
5355 hourglass_atimer, hourglass_shown_p declaration/initialization.
5356 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
5357 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
5358 (start_hourglass, cancel_hourglass): Remove.
5359 (show_hourglass, hide_hourglass): Remove prototypes and static
5360 modifiers.
5361 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
5362 hourglass_atimer, hourglass_shown_p declaration/initialization.
5363 * w32fns.c (display_hourglass_p, Vhourglass_delay)
5364 (DEFAULT_HOURGLASS_DELAY): Remove.
5365 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
5366 hourglass_shown_p declaration/initialization.
5367
53682008-07-14 Jason Rumney <jasonr@gnu.org>
5369
5370 * w32fns.c (w32_get_arg): Remove wrapper function.
5371 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
5372 directly.
5373 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
5374
53752008-07-14 Kenichi Handa <handa@m17n.org>
5376
5377 * xfont.c (xfont_open): Add workaround for X's bug.
5378
53792008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
5380
5381 * fontset.c: Include <stdio.h> unconditionally.
5382
53832008-07-13 Michael Albinus <michael.albinus@gmx.de>
5384
5385 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
5386 for filtering.
5387
53882008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
5389
5390 * s/vms.h: Use __GNUC__ instead of _GNUC_.
5391
5392 * m/macppc.h:
5393 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
5394
5395 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
5396 (SPECIAL_EMACS_INT):
5397 * m/ia64.h (SPECIAL_EMACS_INT):
5398 * m/amdx86-64.h (SPECIAL_EMACS_INT):
5399 * s/gnu.h (NLIST_STRUCT):
5400 * s/aix4-2.h (X11R5_INHIBIT_I18N):
5401 * s/gnu-linux.h (LINUX):
5402 * s/msdos.h (HAVE_FACES):
5403 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
5404
5405 * systty.h:
5406 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
5407 anymore.
5408
54092008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
5410
5411 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
5412 always defined as int.
5413
5414 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
5415 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
5416 * s/gnu-linux.h (HAVE_WAIT_HEADER):
5417 * s/freebsd.h (HAVE_WAIT_HEADER):
5418 * s/bsd-common.h (HAVE_UNION_WAIT):
5419 * s/aix4-2.h (HAVE_WAIT_HEADER):
5420 * m/mips.h (HAVE_UNION_WAIT):
5421 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
5422 (COFF, static): Do not define, they are undefined later in the file.
5423
5424 * process.c (update_status): Don't use a union.
5425 (status_convert):
5426 (sigchld_handler): Use int instead of WAITTYPE.
5427
54282008-07-12 Chong Yidong <cyd@stupidchicken.com>
5429
5430 * indent.c (Fvertical_motion): Restore hscroll before moving to
5431 goal column.
5432
54332008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
5434
5435 * lisp.h: Remove left over code.
5436
54372008-07-11 Andreas Schwab <schwab@suse.de>
5438
5439 * lisp.h: Fix logic in last change.
5440
5441 * menu.h: New file.
5442 * menu.c: Include it.
5443 * xmenu.c: Likewise.
5444 * Makefile.in: Update dependencies.
5445
54462008-07-11 Kenichi Handa <handa@m17n.org>
5447
5448 * fontset.c (fontset_from_font): Cancel the previous change.
5449
54502008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
5451
5452 * lisp.h:
5453 * w32heap.c:
5454 * emacs.c:
5455 * alloc.c: Replace all references of NO_UNION_TYPE with
5456 USE_LISP_UNION_TYPE.
5457
5458 * m/xtensa.h (NO_UNION_TYPE):
5459 * m/vax.h (NO_UNION_TYPE):
5460 * m/template.h (NO_UNION_TYPE):
5461 * m/sparc.h (NO_UNION_TYPE):
5462 * m/mips.h (NO_UNION_TYPE):
5463 * m/macppc.h (NO_UNION_TYPE):
5464 * m/m68k.h (NO_UNION_TYPE):
5465 * m/iris4d.h (NO_UNION_TYPE):
5466 * m/intel386.h (NO_UNION_TYPE):
5467 * m/ibms390x.h (NO_UNION_TYPE):
5468 * m/ibms390.h (NO_UNION_TYPE):
5469 * m/ibmrs6000.h (NO_UNION_TYPE):
5470 * m/ia64.h (NO_UNION_TYPE):
5471 * m/hp800.h (NO_UNION_TYPE):
5472 * m/arm.h (NO_UNION_TYPE):
5473 * m/amdx86-64.h (NO_UNION_TYPE):
5474 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
5475 defining it the same.
5476
54772008-07-10 Chong Yidong <cyd@stupidchicken.com>
5478
5479 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
5480
54812008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
5482
5483 * fileio.c:
5484 * sysdep.c
5485 * systty.h:
5486 * m/ibmrs6000.h:
5487 * m/iris4d.h:
5488 * s/aix4-2.h:
5489 * s/freebsd.h:
5490 * s/gnu-linux.h:
5491 * s/hpux10-20.h:
5492 * s/hpux11.h:
5493 * s/netbsd.h:
5494 * s/sol2-3.h:
5495 * s/sol2-4.h:
5496 * s/sol2.h:
5497 * s/usg5-4.h:
5498 * s/vms.h: Remove references to unused variables.
5499
55002008-07-10 Andreas Schwab <schwab@suse.de>
5501
5502 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
5503 pattern before matching the generic family.
5504
55052008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
5506
5507 * unexec.c:
5508 * s/vms.h:
5509 * s/usg5-4-2.h:
5510 * s/sol2-5.h:
5511 * s/freebsd.h:
5512 * s/darwin.h: Remove dead code.
5513
5514 * m/template.h:
5515 * m/sparc.h:
5516 * m/mips.h:
5517 * m/m68k.h:
5518 * m/iris4d.h:
5519 * m/intel386.h:
5520 * m/ibms390x.h:
5521 * m/ibms390.h:
5522 * m/ia64.h:
5523 * m/hp800.h:
5524 * m/arm.h:
5525 * m/amdx86-64.h: Remove dead code and references to unused
5526 and compiler defined symbols.
5527
5528 * unexmips.c:
5529 * unexelf.c: Remove references to desupported systems.
5530
5531 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
5532
5533 * m/powermac.h: Remove boilerplate comments.
5534 (NO_REMAP): Remove unused definition.
5535
5536 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
5537 define them.
5538
55392008-07-10 Kenichi Handa <handa@m17n.org>
5540
5541 * xfont.c (xfont_open): Log the reason of failure.
5542
55432008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
5544
5545 * fontset.c (fontset_get_font_group):
5546 * font.c (font_check_otf): Specify argument types.
5547
55482008-07-09 Kenichi Handa <handa@m17n.org>
5549
5550 * coding.c (detect_coding_utf_8): Set detect_info->found only when
5551 non-ASCII char is found.
5552
5553 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
5554 (reorder_font_vector): Change the arg preferred_family to font.
5555 Prefer the spec matching with font.
5556 (fontset_get_font_group): New function.
5557 (fontset_find_font): Change the format of an element of a realized
5558 fontset. Use fontset_get_font_group.
5559 (fontset_font): Try the current fontset, the default fontset, the
5560 fallbacks of the current fontset, and the fallbacks of the default
5561 fontset in this order.
5562 (face_for_char): Delete the shortcut to use the current font.
5563 (fontset_from_font): Don't set fonts for Latin in the fontset.
5564
5565 * font.h (font_make_object, font_match_p): Adjust prototypes.
5566
5567 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
5568
5569 * font.c (font_make_object): New arg entity and pixelsize.
5570 (font_check_otf_features, font_check_otf): New functions.
5571 (font_match_p): Check :lang, :script, and :otf properties.
5572
5573 * xfont.c (xfont_open): Adjust it for the change of
5574 font_make_object.
5575 (xfont_text_extents): Fix initial setting of metrics.
5576
5577 * ftfont.c (struct ftfont_info): New member index, delete member
5578 fc_charset_idx. Make the member order compatible with struct
5579 xftfont_info.
5580 (fc_charset_table): Change charset names to registry names.
5581 (ftfont_pattern_entity): Delete the args registry and
5582 fc_charset_idx. Change the value of :font-entity property
5583 to (FONTNAME . INDEX). Always set :registry property to
5584 `iso10646-1'.
5585 (struct ftfont_cache_data): New struct.
5586 (ftfont_lookup_cache): New arg for_face.
5587 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
5588 (ftfont_driver): Set the member otf_capability.
5589 (ftfont_get_charset): Adjust it for the change of
5590 fc_charset_table.
5591 (OTF_TAG_SYM): New macro.
5592 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
5593 for the change of fc_charset_table.
5594 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
5595 ftfont_pattern_entity. Add FC_INDEX to objset.
5596 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
5597 and ftfont_pattern_entity.
5598 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
5599 font_make_object, struct ftfont_info.
5600 (ftfont_has_char): Use ftfont_get_fc_charset.
5601 (ftfont_otf_features, ftfont_otf_capability): New functions.
5602 (ftfont_shape): Use ftfont_get_otf.
5603 (ftfont_text_extents): Fix initial setting of metrics.
5604
5605 * xftfont.c (struct xftfont_info): New member ft_size. Make the
5606 member order compatible with struct ftfont_info.
5607 (xftfont_open): Add FC_CHARSET to the pattern. Set
5608 xftfont_info->ft_size. Don't unlock the face. Check BDF
5609 properties if appropriate.
5610 (xftfont_close): Unlock the face.
5611 (xftfont_anchor_point, xftfont_shape): Deleted.
5612 (syms_of_xftfont): Don't set members anchor_point and shape of
5613 xftfont_driver.
5614
5615 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
5616 font_make_object.
5617
5618 * w32font.c (w32font_open): Adjust it for the change of
5619 font_make_object.
5620 (w32font_open_internal): Don't set properties of font_object here.
5621
56222008-07-08 Chong Yidong <cyd@stupidchicken.com>
5623
5624 * macfns.c (x_create_tip_frame):
5625 * w32fns.c (x_create_tip_frame):
5626 * xfns.c (x_create_tip_frame): Pass parameter argument to
5627 face-set-after-frame-default.
5628
5629 * xfaces.c (Finternal_merge_in_global_face): Save merged
5630 attributes for the default face back into the face vector.
5631
56322008-07-08 Andreas Schwab <schwab@suse.de>
5633
5634 * fontset.h: Declare fontset_from_font. Don't declare
5635 new_fontset_from_font and fontset_from_font_name.
5636 * xterm.c: Include "fontset.h".
5637 * Makefile.in (xterm.o): Update dependencies.
5638
56392008-07-08 Glenn Morris <rgm@gnu.org>
5640
5641 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
5642 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
5643
56442008-07-07 Chong Yidong <cyd@stupidchicken.com>
5645
5646 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
5647 (x_set_frame_parameters): Don't bind it.
5648
56492008-07-07 Juanma Barranquero <lekktu@gmail.com>
5650
5651 * w32fns.c (map_w32_filename): Declare extern.
5652
56532008-07-07 Jason Rumney <jasonr@gnu.org>
5654
5655 * w32term.c (WS_EX_LAYERED): Define if not already.
5656
56572008-07-06 Chong Yidong <cyd@stupidchicken.com>
5658
5659 * xfaces.c (set_font_frame_param): Don't try to set the font
5660 parameter if it is still unspecified in the lface.
5661
56622008-07-05 Chong Yidong <cyd@stupidchicken.com>
5663
5664 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
5665 face if it didn't already exist.
5666
5667 * xdisp.c (try_window_id): Give up if word-wrapping is on.
5668
56692008-07-05 Andreas Schwab <schwab@suse.de>
5670
5671 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
5672
56732008-07-05 Chong Yidong <cyd@stupidchicken.com>
5674
5675 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
5676 word-wrapping.
5677 (IT_DISPLAYING_WHITESPACE): New macro.
5678 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
5679 when word-wrapping. Simplify word-wrapping logic. Use correct
5680 pixel positions when saving copies of the iterator.
5681 (display_line): Use proper wrap point if the last character on a
5682 line was preceded by whitespace.
5683
56842008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
5685
5686 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
5687
56882008-07-04 Kenichi Handa <handa@m17n.org>
5689
5690 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
5691
5692 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
5693
56942008-07-02 Jason Rumney <jasonr@gnu.org>
5695
5696 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 5697 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
5698
5699 * xdisp.c (next_element_from_display_vector): Move assignment out
5700 of if statement.
5701
57022008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
5703
5704 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
5705
5706 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
5707 (syms_of_fileio): Initialize and export them.
5708 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
5709
5710 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
5711 (Fsystem_move_file_to_trash): New function.
5712 (syms_of_w32fns): Export it to lisp.
5713
57142008-07-01 Jason Rumney <jasonr@gnu.org>
5715
5716 * w32font.c (w32font_text_extents): Don't count overhang as part
5717 of width.
5718
57192008-06-30 Miles Bader <miles@gnu.org>
5720
5721 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
5722 Add `avoid_cursor_p' field.
5723
5724 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
5725 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
5726 (append_glyph, append_composite_glyph, produce_image_glyph)
5727 (append_stretch_glyph): Initialize avoid_cursor_p.
5728 (get_it_property): Rename from `get_line_height_property'.
5729 (x_produce_glyphs): Use get_it_property.
5730 (handle_line_prefix, push_display_prop): New functions.
5731 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
5732 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
5733 New variables.
5734 (syms_of_xdisp): Initialize them.
5735
57362008-06-30 Kenichi Handa <handa@m17n.org>
5737
5738 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
5739 XftDefaultSubstitute (they are called in XftFontMatch).
5740 (xftfont_open): Fix args to ftfont_font_format.
5741
5742 * ftfont.c (fc_charset_table): New member lang.
5743 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 5744 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
5745 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
5746 (ftfont_open): Fix args to ftfont_font_format.
5747 (ftfont_font_format): New arg filename.
5748
57492008-06-30 Chong Yidong <cyd@stupidchicken.com>
5750
5751 * xfaces.c (Finternal_merge_in_global_face): If default face was
5752 modified, realize it again. Update the font face attribute.
5753
57542008-06-29 Jason Rumney <jasonr@gnu.org>
5755
5756 * w32term.c (x_set_frame_alpha): Fix logic.
5757
57582008-06-29 Kenichi Handa <handa@m17n.org>
5759
5760 * fontset.c (Finternal_char_font): Return font-object instead of
5761 font-name.
5762
5763 * composite.c (get_composition_id): Fix the width calculation for TAB.
5764
57652008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
5766
5767 * indent.c (Fvertical_motion): Properly handle float column arg.
5768
57692008-06-28 Jason Rumney <jasonr@gnu.org>
5770
5771 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
5772 (pfnSetLayeredWindowAttributes): New function pointer.
5773 (w32_initialize): Initialize it when supported.
5774 (x_set_frame_alpha): New function.
5775
5776 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
5777 (w32_frame_parm_handlers): Set alpha handler.
5778
5779 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
5780
57812008-06-27 Jason Rumney <jasonr@gnu.org>
5782
5783 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
5784 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
5785 (w32_to_x_charset, x_to_w32_charset)
5786 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
5787 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
5788 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
5789 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
5790 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
5791 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
5792 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
5793 (Qw32_charset_unicode): Remove.
5794 (syms_of_w32fns): Update for above changes.
5795
5796 * w32font.c (w32_to_x_charset, x_to_w32_charset)
5797 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
5798 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
5799 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
5800 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
5801 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
5802 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
5803 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
5804 (syms_of_w32font): Update for above changes.
5805
58062008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
5807
5808 * s/usg5-4.h: Fix previous change: keep the correct branch of a
5809 removed #if.
5810 (USG_SHARED_LIBRARIES): Remove duplicate definition.
5811
58122008-06-26 Juanma Barranquero <lekktu@gmail.com>
5813 Eli Zaretskii <eliz@gnu.org>
5814
5815 * makefile.w32-in (LOCAL_FLAGS):
5816 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
5817
5818 * sysdep.c (_spawnlp, _getpid):
5819 Declare with explicit _cdecl instead of _CRTAPI1.
5820
5821 * editfns.c (Fget_internal_run_time):
5822 Check for WINDOWSNT with #ifdef, not #if.
5823
58242008-06-26 Jason Rumney <jasonr@gnu.org>
5825
5826 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
5827
5828 * w32term.c (x_draw_glyph_string_foreground)
5829 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
5830 Use FONT_HANDLE macro.
5831 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
5832
5833 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
5834 (uniscribe_encode_char): Use FONT_HANDLE macro.
5835
5836 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
5837 (w32font_text_extents): Use precast w32_font.
5838 (w32font_close): Free cached metrics.
5839 (w32font_open_internal): Allocate space for name on stack.
5840
58412008-06-26 Chong Yidong <cyd@stupidchicken.com>
5842
5843 * xdisp.c (extend_face_to_end_of_line): Fix last change.
5844
58452008-06-26 Jason Rumney <jasonr@gnu.org>
5846
5847 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
5848 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
5849
58502008-06-26 Juanma Barranquero <lekktu@gmail.com>
5851
5852 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
5853
58542008-06-26 Jason Rumney <jasonr@gnu.org>
5855
5856 * w32bdf.c, w32bdf.h: Remove obsolete files.
5857
5858 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
5859
5860 * w32gui.h: Don't include w32bdf.h.
5861 (XCharStruct, enum w32_char_font_type, W32FontStruct):
5862 Remove obsolete font support.
5863
5864 * w32font.h (struct w32font_info): Remove compat_w32_font.
5865 Add hfont member.
5866 (FONT_COMPAT): Remove obsolete macro.
5867
5868 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
5869 (w32font_encode_char, w32font_text_extents): Use new hfont member.
5870 (w32font_open_internal): Remove compat code. Set new hfont member.
5871 (Fx_select_font): Use new hfont member.
5872
5873 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
5874 (uniscribe_encode_char): Use new hfont member.
5875
5876 * w32term.c (x_draw_glyph_string_foreground)
5877 (x_draw_composite_glyph_string_foreground): Use new hfont member.
5878 (x_draw_glyph_string): Use metrics in w32font_info.
5879
58802008-06-26 Kenichi Handa <handa@m17n.org>
5881
5882 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
5883
58842008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
5885
5886 * unexnext.c:
5887 * m/ews4800.h:
5888 * m/hp9000s300.h:
5889 * m/ibm370aix.h:
5890 * m/mips-siemens.h:
5891 * m/ncr386.h:
5892 * m/next.h:
5893 * m/pmax.h:
5894 * m/powerpcle.h:
5895 * m/tandem-s2.h:
5896 * s/386bsd.h:
5897 * s/bsd386.h:
5898 * s/bsd4-1.h:
5899 * s/bsd4-2.h:
5900 * s/bsdos2-1.h:
5901 * s/bsdos2.h:
5902 * s/bsdos3.h:
5903 * s/bsdos4.h:
5904 * s/nextstep.h:
5905 * s/ultrix4-3.h:
5906 * s/usg5-0.h:
5907 * s/usg5-2-2.h:
5908 * s/usg5-2.h:
5909 * s/usg5-4-3.h:
5910 * s/ux4800.h:
5911 * s/uxpds.h:
5912 * s/uxpv.h: Remove support for obsolete systems.
5913 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 5914 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
5915 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
5916 Remove, insert contents in s/aix4-2.h.
5917 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
5918 * s/bsd4-3.h: Rename to ...
5919 * s/bsd-common.h: ... this.
5920 * data.c:
5921 * doc.c:
5922 * ecrt0.c:
5923 * emacs.c:
5924 * fileio.c:
5925 * floatfns.c:
5926 * keyboard.c:
5927 * mem-limits.h:
5928 * print.c:
5929 * process.c:
5930 * sysdep.c:
5931 * syssignal.h:
5932 * systty.h:
5933 * syswait.h:
5934 * term.c:
5935 * unexec.c:
5936 * unexelf.c:
5937 * unexhp9k800.c:
5938 * m/hp800.h:
5939 * m/ibmrs6000.h:
5940 * m/mips.h:
5941 * m/vax.h:
5942 * s/darwin.h:
5943 * s/freebsd.h:
5944 * s/gnu.h:
5945 * s/ms-w32.h:
5946 * s/msdos.h:
5947 * s/netbsd.h:
5948 * s/template.h: Remove references to obsolete variables.
5949
5950 * Makefile.in: Add dependencies for all unexec files.
5951 (admindir): Remove unused variable.
5952 (UNEXEC_SRC): Remove references.
5953
59542008-06-25 Chong Yidong <cyd@stupidchicken.com>
5955
5956 * xfns.c (x_default_font_parameter): If Xft is available, first
5957 try Monospace-12 for the default font.
5958
59592008-06-25 Jason Rumney <jasonr@gnu.org>
5960
5961 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
5962
59632008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
5964
5965 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
5966
5967 * buffer.c (syms_of_buffer): Remove default-word-wrap.
5968
59692008-06-25 Juanma Barranquero <lekktu@gmail.com>
5970
5971 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
5972 <scroll-conservatively>: Fix typo in docstring.
5973
5974 * xselect.c (Fx_send_client_event): Doc fix.
5975
59762008-06-25 Kenichi Handa <handa@m17n.org>
5977
5978 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
5979
5980 * font.c (font_parse_fcname): Remove unused variables.
5981 (font_sort_entites): Delete the arg SPEC. Caller changed.
5982 Fix for the case of ! best_only.
5983 (font_delete_unmatched): Check DPI and AVGWIDTH too.
5984
5985 * lisp.h (Fstring_to_unibyte): EXFUN it.
5986
5987 * character.h (str_to_unibyte): Extern it.
5988
5989 * character.c (str_to_unibyte): New function.
5990
5991 * fns.c (Fstring_to_unibyte): New function.
5992 (syms_of_fns): Defsubr it.
5993
59942008-06-24 Kenichi Handa <handa@m17n.org>
5995
5996 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
5997 DPI too.
5998 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
5999
60002008-06-24 Andreas Schwab <schwab@suse.de>
6001
6002 * Makefile.in (${lispsource}loaddefs.el): Rename from
6003 ../lisp/loaddefs.el.
6004 (bootstrap-clean): Do what distclean does but don't remove
6005 Makefile.
6006 (distclean): Depend on bootstrap-clean and remove Makefile.
6007
60082008-06-24 Chong Yidong <cyd@stupidchicken.com>
6009
6010 * buffer.h (struct buffer): New member word_wrap.
6011
6012 * buffer.c (syms_of_buffer): New variables default-word-wrap and
6013 word-wrap.
6014 (init_buffer_once): Initialize them.
6015
6016 * dispextern.h (struct it): Replace bool truncate_lines_p with a
6017 line_wrap enum possessing three possible values.
6018
6019 * termopts.h: Replace truncate_partial_width_windows with
6020 Vtruncate_partial_width_windows.
6021
6022 * dispnew.c (direct_output_for_insert): Avoid direct output when
6023 inserting a space with word wrap on.
6024
6025 * indent.c (compute_motion): Obey integer values of
6026 truncate-partial-width-windows.
6027
6028 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
6029 replacing truncate_partial_width_windows.
6030 (init_iterator): If Vtruncate_partial_width_windows is an integer,
6031 truncate only if the window width is below that integer.
6032 (start_display, resize_mini_window, produce_stretch_glyph)
6033 (display_string, move_it_in_display_line_to): Use line_wrap.
6034 (back_to_previous_visible_line_start, reseat_1): Reset
6035 string_from_display_prop_p.
6036 (display_line): Extend default face to end of line when wrapping.
6037
60382008-06-24 Kim F. Storm <storm@cua.dk>
6039
6040 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
6041 to wrap continued lines at word boundaries.
6042
60432008-06-24 Jason Rumney <jasonr@gnu.org>
6044
6045 * font.c (Ffont_face_attributes): Multiply pixel size before point
6046 conversion to avoid multiplying rounding error.
6047
60482008-06-23 Jason Rumney <jasonr@gnu.org>
6049
6050 * w32term.c (x_draw_glyph_string_background)
6051 (x_draw_glyph_string): Remove old bdf font code.
6052
6053 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
6054
60552008-06-22 Kenichi Handa <handa@m17n.org>
6056
6057 * font.c (font_find_for_lface): Try the adstyle specified in
6058 the property of LFACE_FONT of LFACE (if any).
6059
60602008-06-21 Seiji Zenitani <zenitani@mac.com>
6061 Ryo Yoshitake <ryo@shiftmode.net>
6062
6063 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
6064
60652008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
6066
6067 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
6068 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
6069 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
6070 (witness-emacs): Remove.
6071 (lisp, shortlisp): Move loaddefs.el earlier.
6072 (mostlyclean): Forget about witness-emacs.
6073
60742008-06-22 Glenn Morris <rgm@gnu.org>
6075
6076 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
6077 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
6078
60792008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
6080
6081 * Makefile.in (PRECOMP): Remove.
6082 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
6083 (witness-emacs): Run `compile-first'.
6084 (.el.elc): Use the new compile-onefile target.
6085
60862008-06-21 Kenichi Handa <handa@m17n.org>
6087
6088 * xftfont.c (xftfont_open): Handle QCembolden only when
6089 FC_EMBOLDEN is defined.
6090
60912008-06-21 Andreas Schwab <schwab@suse.de>
6092
6093 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
6094 (.el.elc): Likewise.
6095
60962008-06-21 Miles Bader <miles@gnu.org>
6097
6098 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
6099 build dir, not the lisp source dir.
6100
61012008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
6102
6103 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
6104 (bootstrapclean): Remove.
6105 (.el.elc): New rule.
6106 (PRECOMP): New var.
6107 (../lisp/subdirs.el): Remove.
6108 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
6109 (witness-emacs): New target.
6110 (mostlyclean): Remove witness-emacs as well.
6111 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
6112 Add witness-emacs dependency.
6113
61142008-06-20 Chong Yidong <cyd@stupidchicken.com>
6115
6116 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
6117 defined by the font.
6118
61192008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
6120
6121 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
6122 (bootstrap-clean): New target that keeps TAGS around.
6123 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
6124 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
6125
61262008-06-20 Jason Rumney <jasonr@gnu.org>
6127
6128 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
6129 Remove obsolete font code.
6130
6131 * w32font.c (font_matches_spec): Use csb bitfield from font signature
6132 to determine language support.
6133
61342008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
6135
6136 * sysdep.c (cfsetspeed): New fun extracted from the code.
6137 (cfmakeraw): Move before first use.
6138
61392008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
6140
6141 * sysdep.c (cfmakeraw): Provide fallback implementation.
6142 (serial_configure): Provide fallback implementation of cfsetspeed.
6143
61442008-06-20 Kenichi Handa <handa@m17n.org>
6145
6146 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
6147 the pattern.
6148
6149 * fontset.c (fontset_from_font): Copy font_spec before changing
6150 the elements.
6151
6152 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
6153
61542008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
6155
6156 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
6157 for explicit `font' parameters.
6158
6159 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
6160
61612008-06-19 Kenichi Handa <handa@m17n.org>
6162
6163 * frame.c: Include <ctype.h>.
6164 (x_set_font_backend): Allow spacing characters in the X resource
6165 for FontBackend.
6166
61672008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
6168
6169 * w32fns.c, xfns.c (Qfont_param): New var.
6170 (syms_of_w32fns): Initialize it.
6171 (x_default_font_parameter): Record explicit `font' into
6172 `font-parameter'.
6173
61742008-06-18 Kenichi Handa <handa@m17n.org>
6175
6176 * font.c (font_parse_xlfd): Fix previous change.
6177 (font_parse_fcname): Don't use :fc-unknown-spec.
6178 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
6179 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
6180 (font_add_log): Prepend the driver name to the resulting fonts.
6181
6182 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
6183 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
6184 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
6185
6186 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
6187 (QCembolden): New variables.
6188 (syms_of_xftfont): DEFSYM them.
6189 (xftfont_open): Call XftFontMatch. Don't trust the result of
6190 XftTextExtents8 if the pixel_size is less than 5.
6191
61922008-06-18 Andreas Schwab <schwab@suse.de>
6193
6194 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
6195 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
6196
61972008-06-18 Jason Rumney <jasonr@gnu.org>
6198
6199 * w32font.c (w32font_list, w32font_match): Add logging.
6200
6201 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
6202
62032008-06-17 Chong Yidong <cyd@stupidchicken.com>
6204
6205 * font.c (font_parse_fcname): Store divider characters for
6206 unknown-spec list. For known key symbols, intern using correct
6207 symbol name.
6208
62092008-06-17 Kenichi Handa <handa@m17n.org>
6210
6211 * xfaces.c (realize_default_face): If the frame is not on window
6212 system, set the fontset of face to nil.
6213
62142008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
6215
6216 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
6217
62182008-06-16 Juanma Barranquero <lekktu@gmail.com>
6219
6220 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
6221 (build_font_name_from_vector): Delete externs.
6222
6223 * xfaces.c (struct font_name): Don't declare.
6224
62252008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
6226
6227 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
6228
62292008-06-16 Chong Yidong <cyd@stupidchicken.com>
6230
6231 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
6232
62332008-06-16 Juanma Barranquero <lekktu@gmail.com>
6234
6235 * font.c (Ffont_spec): Fix usage in docstring.
6236 (Ffont_face_attributes): Doc fix.
6237
62382008-06-16 Andreas Schwab <schwab@suse.de>
6239
6240 * font.c (Ffont_face_attributes): Fix definition.
6241
62422008-06-16 Jason Rumney <jasonr@gnu.org>
6243
6244 * font.h (font_style_symbolic_from_value): Remove.
6245
6246 * font.c (font_style_symbolic_from_value): Remove.
6247 (font_style_symbolic): Revert to pre 2008-06-13 version.
6248
6249 * w32font.c (w32_to_fc_weight): New function.
6250 (w32font_full_name, logfont_to_fcname): Use it.
6251
62522008-06-16 Kenichi Handa <handa@m17n.org>
6253
6254 * font.c (font_check_object): Delete it.
6255 (font_clear_cache): Check if a font-object is alive.
6256 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
6257 font-object to nil.
6258 (font_close_object): Don't check FONT_CLOSE_OBJECT.
6259 (font_at): Don't call font_check_object.
6260 (Ffont_get): Return a symbol for :weight, :slant, and :width.
6261
62622008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
6263
6264 * puresize.h (BASE_PURESIZE): Increase to 1230000.
6265
62662008-06-16 Chong Yidong <cyd@stupidchicken.com>
6267
6268 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
6269
62702008-06-15 Chong Yidong <cyd@stupidchicken.com>
6271
6272 * font.c (font_parse_fcname): Only one decimal point.
6273 (font_unparse_fcname): Handle data in family and foundry indices
6274 as symbols, not strings.
6275 (font_unparse_gtkname, Ffont_face_attributes): New functions.
6276
6277 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
6278
6279 * font.h (font_unparse_gtkname): Add prototype.
6280
62812008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
6282
6283 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
6284
62852008-06-15 Andreas Schwab <schwab@suse.de>
6286
6287 * font.c (font_update_drivers): Fix crash when no drivers match.
6288
62892008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
6290
6291 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
6292 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
6293
62942008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
6295
6296 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
6297
62982008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
6299
6300 * process.c (Fserial_process_configure, Fprocess_send_eof):
6301 Use EQ to compare Lisp_Objects.
6302
63032008-06-13 Jason Rumney <jasonr@gnu.org>
6304
6305 * w32fns.c (Fw32_select_font): Remove old font API function.
6306
6307 * w32font.c (logfont_to_fcname): New function.
6308 (Fx_select_font): New font dialog function compatible with
6309 GTK/fontconfig version.
6310
6311 * font.c (font_style_symbolic_from_value): New function.
6312 (font_style_symbolic): Use it.
6313
6314 * font.h (font_style_symbolic_from_value): Declare new function.
6315
63162008-06-13 Juanma Barranquero <lekktu@gmail.com>
6317
6318 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
6319 <font-width-table>: Fix typos in docstrings.
6320
63212008-06-13 Daniel Engeler <engeler@gmail.com>
6322
6323 These changes add serial port access.
6324 * process.c: Add HAVE_SERIAL.
6325 (Fdelete_process, Fprocess_status, Fset_process_buffer)
6326 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
6327 (list_processes_1, select_wrapper, Fstop_process)
6328 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
6329 (status_notify): Modify to handle serial processes.
6330 [HAVE_SERIAL] (Fserial_process_configure)
6331 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
6332 New functions.
6333 * process.h (struct Lisp_Process): Add `type'.
6334 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
6335 New functions.
6336 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
6337 serial ports.
b71ac3dd 6338 (serial_open, serial_configure): New functions.
aac0c6e3
MR
6339 * w32.h: Add FILE_SERIAL.
6340 (struct _child_process): Add ovl_read, ovl_write.
6341
63422008-06-13 Kenichi Handa <handa@m17n.org>
6343
6344 * dispextern.h (enum lface_attribute_index): New member
6345 LFACE_FOUNDRY_INDEX.
6346
6347 * font.c (font_score): Delete arg alternate_families. Check only
6348 weight, slant, width, and size. Ignore the difference of alias
6349 style symbols.
6350 (font_sort_entites): Adjust for the above change. Reflect the
6351 order of font-driver to scores.
6352 (font_list_entities): Don't check alternate_familes here.
6353 (font_clear_prop): Handle foundry.
6354 (font_update_lface): Don't parse "foundry-family" form here.
6355 Handle FONT_FOUNDRY_INDEX.
6356 (font_find_for_lface): Likewise. Handle alternate families here.
6357 If registry is nil, try iso8859-1 and ascii-0.
6358 (font_open_for_lface): Pay attention to size in ENTITY.
6359 (font_open_by_name): Simplify by calling font_load_for_lface.
6360 (free_font_driver_list): Delete it.
6361 (font_update_drivers): Preserve the order of backends.
6362 (syms_of_font): Setting of sort_shift_bits adjusted for the change
6363 of font_score and font_sort_entites.
6364 (font_update_sort_order): Likewise.
6365
6366 * xfaces.c (LFACE_FOUNDRY): New macro.
6367 (check_lface_attrs): Check foundry.
6368 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
6369 (merge_face_vectors): Check foundry.
6370 (merge_face_ref): Likewise.
6371 (Finternal_set_lisp_face_attribute): Likewise.
6372 (x_update_menu_appearance): Likewise.
6373 (Finternal_get_lisp_face_attribute): Likewise.
6374 (lface_hash): Likewise.
6375 (lface_same_font_attributes_p): Likewise.
6376 (x_supports_face_attributes_p): Likewise.
6377 (tty_supports_face_attributes_p): Likewise.
6378 (Finternal_set_alternative_font_family_alist): Intern strings.
6379 (Finternal_set_alternative_font_registry_alist): Downcase strings.
6380 (realize_default_face): Set LFACE_FOUNDRY (lface).
6381
6382 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
6383 font-driver at first.
6384
6385 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
6386
63872008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
6388
6389 * lread.c (Fload): Use xfree, not free on saved_doc_string.
6390
63912008-06-12 Jim Meyering <meyering@redhat.com>
6392
6393 Make unexec_free handle NULL the same way free does.
6394 * unexmacosx.c (unexec_free): Ignore a NULL argument.
6395
63962008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
6397
6398 * character.h (CHAR_TO_BYTE_SAFE): New macro.
6399 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
6400 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
6401 (WEAK_ALIAS): Simplify.
6402 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
6403 when searching a unibyte buffer.
6404
64052008-06-12 Chong Yidong <cyd@stupidchicken.com>
6406
6407 * xfns.c (Fx_select_font): Rename from x-font-dialog.
6408
64092008-06-12 Juanma Barranquero <lekktu@gmail.com>
6410
6411 * w32font.c: Include ctype.h.
6412
64132008-06-11 Jason Rumney <jasonr@gnu.org>
6414
6415 * w32font.c (w32font_encode_char): Detect missing glyphs that are
6416 misreported as space.
6417 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
6418 as aliases for registry iso10646-1.
6419
64202008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
6421
6422 * buffer.c (clone_per_buffer_values): Skip `name'.
6423
64242008-06-11 Chong Yidong <cyd@stupidchicken.com>
6425
6426 * font.c (font_parse_fcname): Fix last change; accept decimal
6427 points in font size.
6428
64292008-06-10 Jason Rumney <jasonr@gnu.org>
6430
6431 * w32uniscribe.c (add_opentype_font_name_to_list):
6432 Skip non unicode fonts.
6433
64342008-06-10 Chong Yidong <cyd@stupidchicken.com>
6435
6436 * xfns.c (Fx_font_dialog): New function.
6437
6438 * gtkutil.c (xg_dialog_response_cb): Rename from
6439 xg_file_response_callback.
6440 (pop_down_dialog): Rename from pop_down_file_dialog.
6441 (xg_get_file_name): Callers changed.
6442 (xg_get_font_name): New function.
6443
6444 * gtkutil.h (xg_get_font_name): Insert prototype.
6445
64462008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
6447
6448 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
6449 x_underline_minimum_display_offset.
6450 (syms_of_xdisp): Declare it here rather than in xterm.c.
6451 * dispextern.h (underline_minimum_offset): Declare it.
6452 * w32term.c (x_draw_glyph_string): Use it.
6453 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
6454 (syms_of_xterm): Don't declare it any more.
6455 (x_draw_glyph_string): Adjust to the new name.
6456
64572008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
6458
6459 * xterm.c (x_underline_minimum_display_offset): New var.
6460 (x_draw_glyph_string): Use it.
6461 (syms_of_xterm): Declare it.
6462
64632008-06-10 Chong Yidong <cyd@stupidchicken.com>
6464
6465 * font.c (font_parse_fcname): Accept GTK-style font names too.
6466
64672008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
6468
6469 * dired.c (file_name_completion): Don't return t if the match is exact
6470 but with different capitalization.
6471 * minibuf.c (Ftry_completion): Simplify.
6472
6473 * window.c (Vwindow_point_insertion_type): New var.
6474 (set_window_buffer): Use it.
6475 (syms_of_window): Init and export it to Lisp.
6476
64772008-06-10 Kenichi Handa <handa@m17n.org>
6478
6479 * font.h (font_intern_prop): Prototype adjusted.
6480
6481 * font.c (font_intern_prop): New arg force_symbol.
6482 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
6483 Adjust for the change of font_intern_prop.
6484
6485 * ftfont.c (ftfont_pattern_entity):
6486 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
6487 (w32_registry):
6488 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
6489 the change of font_intern_prop.
6490
64912008-06-09 Juanma Barranquero <lekktu@gmail.com>
6492
6493 * w32menu.c (digest_single_submenu): Declare extern.
6494
64952008-06-09 Jason Rumney <jasonr@gnu.org>
6496
6497 * w32term.c (x_make_frame_visible): Use alternate restore flags.
6498
6499 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
6500 (parse_single_submenu): Remove.
6501 (digest_single_submenu): Remove.
6502 (syms_of_w32menu): Don't initialise variables that have moved
6503 to menu.c.
6504 (set_frame_menubar): Sync with version in xmenu.c.
6505 (w32_menu_show): Sync with xmenu_show in xmenu.c.
6506
6507 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
6508 Make static again.
6509
65102008-06-09 Jason Rumney <jasonr@gnu.org>
6511
6512 Changes to w32 files related to the move of common menu code
6513 to menu.c on 2008-06-08 by Chong Yidong.
6514
6515 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
6516 defs to w32gui.h.
6517 (single_keymap_panes, push_menu_item, push_menu_pane):
6518 Make globally visible.
6519
6520 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
6521 (local_free, malloc_widget_value, free_widget_value)
6522 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
6523 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
6524 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
6525 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
6526 (menu_items, menu_items_allocated, menu_items_used)
6527 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
6528 (init_menu_items, finish_menu_items, discard_menu_items)
6529 (grow_menu_items, push_submenu_start, push_submenu_end)
6530 (push_left_right_boundary, push_menu_pane, push_menu_item)
6531 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
6532 (free_menubar_widget_tree_value, parse_single_submenu)
6533 (update_submenu_strings): Remove functions.
6534 (xmalloc_widget_value): Remove and declare extern.
6535
6536 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
6537 (OBJ1): Build it.
6538
6539 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
6540 (local_heap, local_alloc, local_free, malloc_widget_value)
6541 (free_widget_value): Define here.
6542
65432008-06-09 Kenichi Handa <handa@m17n.org>
6544
6545 * font.h (Qascii_0): Extern it.
6546
6547 * font.c (Qascii_0): New variable.
6548 (syms_of_font): DEFSYM it.
6549 (font_open_by_name): If the registry "iso8859-1" fails, try also
6550 "ascii-0".
6551
6552 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
6553
65542008-06-08 Kenichi Handa <handa@m17n.org>
6555
6556 * .gdbinit (xfont): New command.
6557
65582008-06-08 Andreas Schwab <schwab@suse.de>
6559
6560 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
6561 * Makefile.in (menu.o): Update dependencies.
6562
6563 * Makefile.in (obj): Always add menu.o.
6564 * emacs.c (main): Always call syms_of_menu.
6565 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
6566
65672008-06-08 Chong Yidong <cyd@stupidchicken.com>
6568
6569 * Makefile.in: Compile menu.c.
6570
6571 * lisp.h: Declare syms_of_menu.
6572
6573 * emacs.c (main): Call syms_of_menu.
6574
6575 * keyboard.h: Relocate platform-independent menu definitions from
6576 xmenu.c.
6577
6578 * menu.c: New file. Relocate platform-independent menu
6579 definitions from xmenu.c. Suggested by Adrian Robert.
6580
6581 * xmenu.c: Remove platform-independent menu definitions.
6582 (menu_items menu_items_inuse, menu_items_allocated)
6583 (menu_items_used, menu_items_n_panes)
6584 (menu_items_submenu_depth): Move to keyboard.h.
6585 (init_menu_items, finish_menu_items, unuse_menu_items)
6586 (discard_menu_items, restore_menu_items, save_menu_items)
6587 (grow_menu_items, push_submenu_start, push_submenu_end)
6588 (push_left_right_boundary, push_menu_pane, push_menu_item)
6589 (keymap_panes, single_keymap_panes, single_menu_item)
6590 (list_of_panes, list_of_items, find_and_call_menu_selection)
6591 (xmalloc_widget_value, free_menubar_widget_value_tree)
6592 (parse_single_submenu, digest_single_submenu)
6593 (update_submenu_strings): Move to menu.c.
6594
65952008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
6596
6597 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
6598
65992008-06-06 Miles Bader <miles@gnu.org>
6600
6601 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
6602 face, not frame default.
6603
66042008-06-05 Martin Rudalics <rudalics@gmx.at>
6605
6606 * window.c (pop_up_windows, pop_up_frames)
6607 (display_buffer_reuse_frames, Vpop_up_frame_function)
6608 (Vdisplay_buffer_function, Veven_window_heights)
6609 (Vspecial_display_buffer_names, Vspecial_display_regexps)
6610 (Vspecial_display_function, Vsame_window_buffer_names)
6611 (Vsame_window_regexps, split_height_threshold)
6612 (Vsplit_window_preferred_function): Move those vars to window.el.
6613 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
6614 (Fdisplay_buffer): Move those functions to window.el.
6615 (syms_of_window): Remove corresponding declarations.
6616 (display_buffer): New function.
6617 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
6618 * dispnew.c (Flast_nonminibuf_frame): New function.
6619 * buffer.c (Fpop_to_buffer): Move to window.el.
6620
66212008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
6622
6623 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
6624
66252008-06-05 Kenichi Handa <handa@m17n.org>
6626
6627 * coding.c (detect_coding): Fix previous change.
6628 (detect_coding_system): Likewise.
6629
66302008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
6631
6632 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
6633
6634 * keymap.c (Vminibuffer_local_filename_must_match_map):
6635 Rename from Vminibuffer_local_must_match_filename_map.
6636 (syms_of_keymap):
6637 * minibuf.c (Fcompleting_read): Adjust accordingly.
6638 * commands.h: Rename declaration as well.
6639
66402008-06-05 Kenichi Handa <handa@m17n.org>
6641
6642 * font.c (Ffont_spec): Don't use font_parse_family_registry for
6643 family name.
6644 (Ffont_put): Likewise.
6645
6646 * fontset.c (fontset_find_font): Call font_open_for_lface with the
6647 current font-spec.
6648
6649 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
6650 is unspecified.
6651
6652 * xfaces.c (realize_x_face): If the font-related face attributes
6653 are the same as those of default face, realize a new fontset from
6654 default->fontset.
6655 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
6656
66572008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
6658
6659 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
6660 (move_it_in_display_line): New wrapper.
6661
6662 * window.c (window_scroll_pixel_based_preserve_x)
6663 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
6664 (window_scroll_pixel_based, window_scroll_line_based):
6665 Use them to preserve column positions.
6666 (syms_of_window): Initialize them.
6667
6668 * indent.c (Fvertical_motion): Extend first arg to allow passing an
6669 (HPOS . VPOS) pair.
6670
6671 * dispextern.h (move_it_in_display_line): Declare.
6672
66732008-06-05 Juanma Barranquero <lekktu@gmail.com>
6674
6675 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
6676 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
6677 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
6678
66792008-06-04 Juanma Barranquero <lekktu@gmail.com>
6680
6681 * window.c (Fset_window_parameter): Doc fix.
6682 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
6683
66842008-06-04 Joakim Verona <joakim@verona.se>
6685
6686 * window.h (struct window): Add new member window_parameters.
6687
6688 * window.c (Fwindow_parameters, Fwindow_parameter)
6689 (Fset_window_parameter): New defuns.
6690 (syms_of_window): Defsubr the new defuns.
6691 (make_window): Initialize window_parameters to nil.
6692
66932008-06-04 John Paul Wallington <jpw@pobox.com>
6694
6695 * eval.c (Fdefmacro): Doc fix.
6696
66972008-06-04 Kenichi Handa <handa@m17n.org>
6698
6699 * coding.c (detect_coding): Fix handling of coding->head_ascii.
6700 Be sure to call setup_coding_system when we find a proper coding system.
6701 (detect_coding_system): Fix handling of coding->head_ascii.
6702
67032008-06-03 Andreas Schwab <schwab@suse.de>
6704
6705 * font.c (font_prop_validate_spacing): Fix last change.
6706
67072008-06-03 Kenichi Handa <handa@m17n.org>
6708
6709 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
6710 (font_parse_fcname): Fix handling of unknown key.
6711
6712 * xfont.c (xfont_list): Try an alias.
6713
6714 * charset.c (char_charset): Return NULL if the arg charset_list is
6715 specified and C doesn't belong to any of them.
6716
67172008-06-02 Chip Coldwell <coldwell@redhat.com>
6718
6719 * font.c (font_pixel_size): Don't take cdr of an integer.
6720
67212008-06-02 Jim Meyering <meyering@redhat.com>
6722
6723 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
6724 * alloc.c (xfree): Return right away for a NULL arg.
6725 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
6726 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
6727 * mac.c (create_apple_event_from_event_ref): Likewise.
6728 (create_apple_event_from_drag_ref, cfstring_create_normalized):
6729 Likewise.
6730 * doprnt.c (doprnt1): Likewise.
6731 * frame.c (frame): Likewise.
6732 * keyboard.c (wipe_kboard): Likewise.
6733 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
6734 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
6735 * term.c (tty_default_color_capabilities, maybe_fatal)
6736 (delete_tty): Likewise.
6737 * w16select.c (string): Likewise.
6738 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
6739 * w32bdf.c (w32_free_bdf_font): Likewise.
6740 * w32fns.c (w32_unload_font): Likewise.
6741 * w32font.c (w32font_close): Likewise.
6742 * window.c (size_window): Likewise.
6743 * xselect.c (receive_incremental_selection): Likewise.
6744 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
6745 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
6746 * w32.c (stat): Likewise.
6747
6748 Remove useless if-before-free tests.
6749 * editfns.c (Fset_time_zone_rule): Likewise.
6750 * lread.c (nosuffix): Likewise.
6751 * ralloc.c (get_bloc): Likewise.
6752 * regex.c (reg_free): Likewise.
6753 * xftfont.c (xftfont_open, xftfont_close): Likewise.
6754 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
6755 * xsmfns.c (smc_save_yourself_CB): Likewise.
6756
67572008-06-02 Kenichi Handa <handa@m17n.org>
6758
6759 * font.c (font_find_for_lface): Handle float font size.
6760 (font_open_for_lface): Likewise.
6761
6762 * xfaces.c (x_supports_face_attributes_p): Check face->font before
6763 comparing the properties.
6764
67652008-06-01 Jason Rumney <jasonr@gnu.org>
6766
6767 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
6768 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
6769 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
6770 Don't add empty script list.
6771 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
6772
67732008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
6774
6775 * Makefile.in (dot, dotdot): Remove, update users.
6776 ".." has been used elsewhere in the file for a long time.
6777 (LIBXT_STATIC): Remove conditional based on unused variable.
6778
67792008-06-01 Miles Bader <miles@gnu.org>
6780
6781 * xfaces.c (Vface_remapping_alist): New variable.
6782 (syms_of_xfaces): Initialize it.
6783 (enum named_merge_point_kind): New type.
6784 (struct named_merge_point): Add `named_merge_point_kind' field.
6785 (push_named_merge_point): Make cycle detection respect different
6786 named-merge-point kinds.
6787 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
6788 Remove face-name alias resolution.
6789 (lface_from_face_name): New definition using
6790 `lface_from_face_name_no_resolve'.
6791 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
6792 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
6793 (get_lface_attributes): New definition that layers face-remapping on
6794 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
6795 (lookup_basic_face): New function.
6796 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
6797 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
6798 `get_lface_attributes'.
6799 (face_at_buffer_position): Use `lookup_basic_face' to lookup
6800 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
6801 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
6802
6803 * xdisp.c (init_iterator): Pass base_face_id through
6804 `lookup_basic_face' when we actually use it as a face-id.
6805 (handle_single_display_prop): Use `lookup_basic_face' to lookup
6806 DEFAULT_FACE_ID.
6807
6808 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
6809 lookup the initial face-id.
6810
6811 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
6812
68132008-06-01 Juanma Barranquero <lekktu@gmail.com>
6814
6815 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
6816 (Fremove_text_properties): Fix typos in docstrings.
6817
68182008-05-31 Kenichi Handa <handa@m17n.org>
6819
6820 * font.c (font_list_entities): Fix the car part of data to be
6821 stored in the cache.
6822
6823 * ftfont.c (ftfont_font_format): Don't use strcasestr.
6824
68252008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
6826
6827 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
6828 Add a `test' argument so another predicate than `equal' can be used.
6829 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
6830 (map_char_table): Remove unused vars `c' and `i'.
6831 * lisp.h (Foptimize_char_table): Adjust declaration.
6832 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
6833
68342008-05-30 Kenichi Handa <handa@m17n.org>
6835
6836 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
6837 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
6838 defined.
6839
68402008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
6841
6842 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
6843 (Fmake_variable_frame_local): Disallow mixing buffer-local and
6844 frame-local settings for the same variable.
6845
68462008-05-30 Kenichi Handa <handa@m17n.org>
6847
6848 * fontset.c (Ffont_info): Move to font.c.
6849 (syms_of_fontset): Delete defsubr of Sfont_info.
6850
6851 * font.c (font_style_to_value, font_score): Delete casting of the
6852 args to xstcasecmp.
6853 (register_font_driver): Increment num_font_drivers only when
6854 registering the driver globally.
6855 (Ffont_info): Move from fontset.c. Handle a font object too.
6856 (syms_of_font): Defsubr Sfont_info.
6857
68582008-05-29 Kenichi Handa <handa@m17n.org>
6859
6860 * coding.h (enum define_coding_utf8_arg_index): New enum.
6861 (enum coding_attr_index): Change coding_attr_utf_16_bom to
6862 coding_attr_utf_bom.
6863 (enum utf_bom_type): Rename from utf_16_bom_type.
6864 (struct utf_16_spec): Adjust for the above change.
6865 (struct coding_system): Add utf_8_bom in `spec' union.
6866
6867 * coding.c (CODING_UTF_8_BOM): New macro.
6868 (enum coding_category): Delete coding_category_utf_8, add
6869 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
6870 coding_category_utf_8_sig.
6871 (CATEGORY_MASK_UTF_8): Delete it.
6872 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
6873 (CATEGORY_MASK_UTF_8_SIG): New macros.
6874 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
6875 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
6876 CATEGORY_MASK_UTF_8_SIG.
6877 (CATEGORY_MASK_UTF_8): New macro.
6878 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
6879 (detect_coding_utf_8): Check BOM.
6880 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
6881 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
6882 (encode_coding_utf_16): Likewise.
6883 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
6884 (detect_coding, detect_coding_system): Handle utf-8-auto.
6885 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
6886 (syms_of_coding): Fix setting up of Vcoding_category_table.
6887
68882008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
6889
6890 * process.c (Faccept_process_output): If `millisec' is non-nil,
6891 `seconds' default to 0.
6892 (wait_reading_process_output): Also return non-nil if we read output
6893 from a non-running process.
6894
68952008-05-29 Jason Rumney <jasonr@gnu.org>
6896
6897 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
6898 `raster' specified.
6899 (add_font_entity_to_list): Allow non-opentype truetype fonts back
6900 in the uniscribe backend, but disallow any font that has no
6901 unicode subrange support.
6902
69032008-05-29 Juanma Barranquero <lekktu@gmail.com>
6904
6905 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
6906 Fix typos in docstrings.
6907
69082008-05-29 Kenichi Handa <handa@m17n.org>
6909
6910 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
6911 (Fx_family_fonts): Set frame correctly.
6912
69132008-05-28 Jason Rumney <jasonr@gnu.org>
6914
6915 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
6916
69172008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
6918
6919 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
6920 calling build_annotations.
6921
69222008-05-28 Juanma Barranquero <lekktu@gmail.com>
6923
6924 * coding.c (Fdecode_coding_region, Fencode_coding_region)
6925 (Fencode_coding_string):
6926 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
6927 <latin-extra-code-table>: Fix typos in docstrings.
6928 (syms_of_coding) <coding-system-alist>: Doc fix.
6929 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
6930
69312008-05-28 Kenichi Handa <handa@m17n.org>
6932
6933 * fontset.c (Ffont_info): Don't call font_close_object.
6934
6935 * font.c (font_parse_family_registry): Use Ffont_put to validate
6936 foundry and family.
6937 (font_delete_unmatched): Don't check spacing.
6938 (font_list_entities): Add spacing to the spec to list fonts.
6939
6940 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
6941 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
6942
6943 * coding.c (encode_coding_raw_text): Fix previous change.
6944 (encode_coding_object): When the dst_object is a buffer and is
6945 different from src_object, move gap to PT.
6946
69472008-05-27 Chong Yidong <cyd@stupidchicken.com>
6948
6949 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
6950
69512008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
6952
6953 * coding.c (encode_coding_raw_text): Set coding->produced_char for
6954 all branches. Compute it differently.
6955
6956 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
6957
69582008-05-27 Juanma Barranquero <lekktu@gmail.com>
6959
6960 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
6961 into "else if () ... else ...".
6962
69632008-05-27 Jason Rumney <jasonr@gnu.org>
6964
6965 * w32font.c (w32font_open_internal): Determine if glyph indices
6966 are likely to work here.
6967
69682008-05-27 Chong Yidong <cyd@stupidchicken.com>
6969
6970 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
6971 draw overlap glyphs with appropriate highlighting.
6972
69732008-05-27 Kenichi Handa <handa@m17n.org>
6974
6975 * xfont.c (xfont_open): Fix calculation of font->average_width.
6976
69772008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
6978
6979 * casefiddle.c (casify_object): Try to guess better whether the
6980 argument is a byte or a char.
6981
69822008-05-26 Andreas Schwab <schwab@suse.de>
6983
6984 * xselect.c (x_reply_selection_request): Properly handle format == 32.
6985 Always send multiples of format size.
6986
6987 * xterm.c (x_set_frame_alpha): Fix type mismatch.
6988
69892008-05-26 Jason Rumney <jasonr@gnu.org>
6990
6991 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
6992 (compute_metrics): Don't set failure if we just cleared the cache.
6993 (w32_weight_table): Remove unused variable.
6994 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
6995 backwards compatibility.
6996
69972008-05-25 Kenichi Handa <handa@m17n.org>
6998
6999 * w32term.c (x_draw_glyph_string):
7000 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
7001
7002 * xfaces.c: Delete unused function prototypes.
7003 (xstrlwr, font_frame): Delete them.
7004 (clear_face_cache): Delete unused variable.
7005
7006 * xftfont.c (xftfont_open): Delete unused variable.
7007 If underline_thickness is not 1, adjust underline_position.
7008
7009 * ftxfont.c (ftxfont_open): Delete unused variable.
7010
7011 * fontset.c (face_for_char): Optimize for the case of no charset
7012 property.
7013
7014 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
7015 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
7016 (otf_open, font_otf_capability, generate_otf_features)
7017 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
7018 Comment out by surrounding "#if 0" and "#endif" for the moment.
7019 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
7020 (syms_of_font): Codes for accessing above commented out.
7021
70222008-05-24 Eli Zaretskii <eliz@gnu.org>
7023
7024 * w32proc.c: Include dispextern.h.
7025
7026 * w32.c: Include dispextern.h.
7027
70282008-05-23 Juanma Barranquero <lekktu@gmail.com>
7029
7030 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
7031 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
7032 Fix typos in docstrings.
7033
70342008-05-23 Jason Rumney <jasonr@gnu.org>
7035
7036 * xsmfns.c: Remove includes that are already included by config.h.
7037
70382008-05-23 Kenichi Handa <handa@m17n.org>
7039
7040 * charset.c (Qemacs, charset_emacs): New variables.
7041 (char_charset): Fix for non-Unicode characters.
7042 (syms_of_charset): Define charset_emacs.
7043
7044 * w32term.c (x_draw_glyph_string): Be sure to update
7045 s->underline_thickness and s->underline_position. Be sure to draw
7046 underline within the current line area.
7047
7048 * xterm.c (x_draw_glyph_string): Be sure to update
7049 s->underline_thickness and s->underline_position. Be sure to draw
7050 underline within the current line area.
7051
7052 * fontset.c: Delete unused variables and add casting for char *
7053 throughout the file.
7054 (fontset_font): Try the fallback fonts of the current fontset
7055 before consulting the default fontset.
7056
7057 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
7058
7059 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
7060
70612008-05-22 Jason Rumney <jasonr@gnu.org>
7062
7063 * font.c: Don't include strings.h.
7064
7065 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
7066
7067 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
7068 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
7069 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
7070 to call xstrcasecmp.
7071
7072 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
7073
7074 * fontset.c (fs_query_fontset): Use xstrcasecmp.
7075
7076 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
7077
7078 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
7079
70802008-05-22 Kenichi Handa <handa@m17n.org>
7081
7082 * puresize.h (BASE_PURESIZE): Increase to 1220000.
7083
7084 * font.c (font_prop_validate_style): Adjust for the format
7085 change of font_style_table.
7086
7087 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
7088 two args.
7089
7090 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
7091 two args.
7092
70932008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
7094
7095 * minibuf.c (keys_of_minibuf): Delete.
7096 * lisp.h (keys_of_minibuf): Delete.
7097 * emacs.c (main): Don't call keys_of_minibuf.
7098
70992008-05-22 Kenichi Handa <handa@m17n.org>
7100
7101 * ftfont.c (ftfont_resolve_generic_family): Rename from
7102 ftfont_list_generic_family. Return a single family for each
7103 generic family.
7104 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
7105 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
7106 Call font_add_log.
7107 (ftfont_match): Call font_add_log.
7108
7109 * font.h (Ffont_xlfd_name): EXFUN adjusted.
7110 (FONT_DEBUG): Define it.
7111 (font_add_log): Extern it.
7112 (font_assert): Rename from xassert.
7113
7114 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
7115 (xfont_list_family): Call font_add_log.
7116 (xfont_match): Likewise.
7117 (memq_no_quit): Delete.
7118
7119 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
7120 call of Ffont_xlfd_name.
7121
7122 * xfaces.c (struct table_entry, slant_table, weight_table)
7123 (swidth_table): Move to font.c.
7124
7125 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
7126 xassert are changed to font_assert. Delete many unused variables.
7127 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
7128 New variables.
7129 (struct table_entry): Move from xfaces.c and modified.
7130 (weight_table, slant_table, width_table): Move from xfaces.c and
7131 contents adjusted for the change of struct table_entry.
7132 (font_style_to_value, font_style_symbolic): Adjust for the
7133 format change of font_style_table.
7134 (font_parse_family_registry): Don't overwrite existing foundry and
7135 family of font_spec.
7136 (font_score): Fix calculation of diff for sizes.
7137 (font_sort_entites): Call font_add_log.
7138 (font_delete_unmatched): Return a newly created list.
7139 (font_list_entities): Fix previous change. Call font_add_log.
7140 (font_matching_entity, font_open_entity, font_close_entity):
7141 Call font_add_log.
7142 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
7143 (Finternal_set_font_style_table): Delete.
7144 (BUILD_STYLE_TABLE): New macro.
7145 (build_style_table): New function.
7146 (Vfont_log, font_log_env_checked): New variables.
7147 (font_add_log): New function.
7148 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
7149 Declare Lisp variables "font-weight-table", "font-slant-table",
7150 "font-width-table", and "font-log". Initialize font_style_table.
7151
71522008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
7153
7154 * xterm.c (x_set_frame_alpha): Move declarations before statements.
7155
71562008-05-21 Seiji Zenitani <zenitani@mac.com>
7157 Ryo Yoshitake <ryo@shiftmode.net>
7158
7159 * frame.c (Qalpha): Add a new frame parameter `alpha'.
7160 (Vframe_alpha_lower_limit): New variable.
7161 (x_set_alpha): New function.
7162
7163 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
7164
7165 * xfns.c (x-create-frame, Qalpha):
7166 Initialize the frame parameter `alpha'.
7167 * xterm.c (OPAQUE, OPACITY): New.
7168 (x_set_frame_alpha): New function.
7169 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
7170
7171 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
7172 * w32fns.c (w32_frame_parm_handlers): Likewise.
7173
71742008-05-20 Jason Rumney <jasonr@gnu.org>
7175
7176 * w32font.c (add_font_entity_to_list): Don't add non-opentype
7177 truetype fonts to opentype list.
7178
71792008-05-20 Juanma Barranquero <lekktu@gmail.com>
7180
7181 * fontset.c (Ffontset_info): Doc fix.
7182 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
7183 <ignore-relative-composition>: Fix typos in docstrings.
7184
7185 * font.c (syms-of-font) <font-encoding-alist>:
7186 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
7187 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
7188 (Ffont_otf_alternates): Doc fixes.
7189
71902008-05-20 Kenichi Handa <handa@m17n.org>
7191
7192 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
7193 font.h through out the file.
7194 (FONT_DRIVERS): Rename from FONTOBJ.
7195 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
7196 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
7197
7198 * emacs.c (main): Call syms_of_font unconditionally.
7199
7200 * font.h (find_font_encoding): Extern it.
7201
7202 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
7203 fontset.c.
7204 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
7205 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
7206 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
7207 only when HAVE_WINDOW_SYSTEM is defined.
7208 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
7209 when HAVE_WINDOW_SYSTEM is defined.
7210
7211 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
7212 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
7213
7214 * xfaces.c: Include font.h unconditionally.
7215 (merge_face_ref, merge_face_vectors)
7216 (Finternal_set_lisp_face_attribute): Cancel the previous change.
7217
72182008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
7219
7220 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
7221 indirect_variable.
7222 * eval.c (lisp_indirect_variable): New fun.
7223 (Fuser_variable_p): Use it.
7224
72252008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
7226
7227 * lisp.h (indirect_variable):
7228 * data.c (indirect_variable, let_shadows_buffer_binding_p):
7229 Use Lisp_Symbol pointers rather than Lisp_Object.
7230 Adjust callers.
7231 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
7232 To this end, change calling-convention.
7233
7234 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
7235 if some non-hidden buffers are selected by string&pred.
7236
72372008-05-19 Chong Yidong <cyd@stupidchicken.com>
7238
7239 * process.c (wait_reading_process_output): Always check status
7240 when in batch mode.
7241
72422008-05-19 Kenichi Handa <handa@m17n.org>
7243
7244 * font.c (font_list_entities): Fix handling of cache.
7245 (font_matching_entity): Likewise.
7246
7247 * ftfont.c (cs_iso8859_1): Delete.
7248 (ft_face_cache): New variable.
7249 (struct ftfont_info): New member fc_charset_idx.
7250 (ftfont_build_basic_charsets): Delete.
7251 (fc_charset_table): New variable.
7252 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
7253 . FC_CHARSET_IDX) as :font-entity property in the font entity.
7254 Callers changed.
7255 (ftfont_lookup_cache, ftfont_get_charset): New functions.
7256 (ftfont_spec_pattern): New argument fc_charset_idx.
7257 Check registry more rigidly. Change callers.
7258 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
7259 change of :font-entity property of the font.
7260
7261 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
7262 property of the font.
7263
72642008-05-18 Juanma Barranquero <lekktu@gmail.com>
7265
7266 * coding.c (Fcoding_system_p): Rename argument to match docstring.
7267 (Funencodable_char_position, Fcheck_coding_systems_region)
7268 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
7269 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
7270 (Ffind_operation_coding_system, Fset_coding_system_priority)
7271 (Fcoding_system_eol_type): Doc fixes.
7272
72732008-05-17 Glenn Morris <rgm@gnu.org>
7274
7275 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
7276
72772008-05-16 Eli Zaretskii <eliz@gnu.org>
7278
7279 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
7280 and st_gid.
7281
7282 * frame.c (Fdelete_frame): Don't call font_update_drivers if
7283 HAVE_WINDOW_SYSTEM is not defined.
7284
7285 * xfaces.c (merge_face_ref, merge_face_vectors)
7286 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
7287 HAVE_WINDOW_SYSTEM is defined.
7288 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
7289
72902008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
7291
7292 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
7293
72942008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7295
7296 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
7297
72982008-05-15 Kenichi Handa <handa@m17n.org>
7299
7300 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
7301 preference.
7302
73032008-05-15 Glenn Morris <rgm@gnu.org>
7304
7305 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
7306
73072008-05-15 Chong Yidong <cyd@stupidchicken.com>
7308
7309 * fns.c (init_fns): Don't initialize weak_hash_tables here.
7310 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
7311
7312 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
7313
73142008-05-15 Kenichi Handa <handa@m17n.org>
7315
7316 * ftfont.c (ftfont_list): Downcase family name to check generic
7317 families.
7318
7319 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
7320 font-spec for QCfont value.
7321
7322 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
7323 buffer. Check the return value of it.
7324
73252008-05-14 Jason Rumney <jasonr@gnu.org>
7326
7327 * w32term.c (w32_get_glyph_overhangs): Remove.
7328 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
7329
73302008-05-14 Kenichi Handa <handa@m17n.org>
7331
7332 * font.c (font_prop_validate): Make nil a valid value.
7333 (font_clear_cache): Check if the cached vector of entities is nil
7334 or not.
7335
73362008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7337
7338 * emacs.c (main_thread): Conditionalize on
7339 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
7340 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
7341
7342 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
7343 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
7344 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
7345
73462008-05-14 Kenichi Handa <handa@m17n.org>
7347
7348 * coding.c (detect_coding_iso_2022): Ignore a coding category that
7349 has no corresponding coding system.
7350
73512008-05-14 Jason Rumney <jasonr@gnu.org>
7352
7353 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
7354
7355 * w32font.h (w32font_open_internal): Update declaration.
7356
7357 * w32font.c (w32font_open_internal): Change last argument from
7358 w32font_info struct to font object. Fill in font object from
7359 font_entity. Get Outline metrics if possible. Use them to
7360 calculate underline position and thickness. Use xlfd name as name
7361 property. Don't set codepage.
7362 (w32font_open): Pass font_object to w32font_open_internal. Don't
7363 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
7364 (w32font_draw): Use s->font.
7365 (clear_cached_metrics): Don't clear non-existent blocks.
7366
7367 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
7368 font was not found.
7369 (x_draw_glyph_string): Use underline position and thickness from font.
7370
7371 * w32uniscribe.c (uniscribe_open): Pass font_object to
7372 w32font_open_internal.
7373
73742008-05-14 Kenichi Handa <handa@m17n.org>
7375
7376 These changes are to delete all legacy font-handling codes, and
7377 make Emacs use only font-backends.
7378
7379 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
7380 (frame.o, image.o, print.o): Depend on $(FONTSRC).
7381
7382 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
7383
7384 * charset.h (Vcharset_non_preferred_head)
7385 (Vcurrent_iso639_language): Extern them.
7386
7387 * charset.c (Vcharset_non_preferred_head): New variable.
7388 (Vcurrent_iso639_language): New variable.
7389 (syms_of_charset): Declare it as a Lisp variable.
7390 (char_charset): Don't check non preferred charsets. As a last
7391 resort, return charset_unicode.
7392 (Fset_charset_priority): Update Vcharset_non_preferred_head.
7393
7394 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
7395 conditionals. Don't check enable_font_backend. Delete all codes
7396 used only when USE_FONT_BACKEND is not defined.
7397
7398 * dispextern.h (struct glyph_string): Change type of `font' to
7399 `struct font *'.
7400 (struct glyph_string): New member underline_position and
7401 underline_thickness.
7402 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
7403 (struct face): Change type of `font' to `struct font *'. Remove
7404 members `font_name', `font_info_id'.
7405 (per_char_metric, encode_char): Delete externs.
7406 (calc_pixel_width_or_height): Adjust the prototype.
7407
7408 * emacs.c (enable_font_backend): Delete extern.
7409 (main): Don't set enable_font_backend. Don't check the command
7410 line argument "-disable-font-backend".
7411
7412 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
7413 (enum font_property_index): New members FONT_DPI_INDEX,
7414 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
7415 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
7416 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
7417 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
7418 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
7419 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
7420 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
7421 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
7422 (struct font_spec, struct font_entity): New structs.
7423 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
7424 (struct font): Many members from old "struct font_info" moved to
7425 here. Members font and entity deleted.
7426 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
7427 the new font-related objects.
7428 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
7429 (CHECK_FONT_GET_OBJECT): Likewise.
7430 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
7431 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
7432 (struct font_driver): New members case_sensitive anc check. Type
7433 of the member list and open changed.
7434 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
7435 (font_symbolic_width, font_find_object, font_get_spec)
7436 (font_set_lface_from_name): Delete extern.
7437 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
7438
7439 * font.c: Include <strings.h>.
7440 (enable_font_backend): Delete it.
7441 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
7442 (CHECK_VALIDATE_FONT_SPEC): Delete it.
7443 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
7444 (null_string): Delete it.
7445 (null_vector): Make it static.
7446 (font_family_alist): Delete it.
7447 (Qnormal): Extern it.
7448 (QCextra, QClanguage): Delete it.
7449 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
7450 (font_make_spec, font_make_entity, font_make_object)
7451 (font_intern_prop): Renamed from intern_downcase. Don't downcase
7452 the string. Callers changed.
7453 (font_pixel_size): Adjusted for the format change of font-related
7454 objects.
7455 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
7456 (font_style_to_value, font_style_symbolic): New function.
7457 (build_font_family_alist): Delete it.
7458 (font_registry_charsets): Use Fassoc_string instead of
7459 assq_no_quit.
7460 (font_prop_validate_symbol): Don't return null_string.
7461 (font_prop_validate_style): Adjusted for the change of
7462 style-related values in a font vector.
7463 (font_property_table): Delete entries for QClanguage and
7464 QCantialias, add entries for QCavgwidth.
7465 (get_font_prop_index): Delete the 2nd argument FROM.
7466 (font_prop_validate): Arguments changed.
7467 (font_put_extra): Adjusted for the change of font-related objects.
7468 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
7469 (font_parse_fcname, font_unparse_fcname)
7470 (font_prepare_composition): Likewise.
7471 (font_parse_family_registry): Renamed from font_merge_old_spec.
7472 (otf_open): Delete the 1st arg entity.
7473 (font_otf_capability): Adjusted for the above change.
7474 (font_score): New arg alternate_families. Adjusted for the change
7475 of font-related objects.
7476 (font_sort_entites): New arg best_only.
7477 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
7478 Delete them.
7479 (font_match_p): Check alternate families.
7480 (font_find_object): Delete it.
7481 (font_check_object): New function.
7482 (font_clear_cache): Adjusted for the change of font-related objects.
7483 (font_delete_unmatched): New arg.
7484 (font_list_entities): Call font_driver->list with a spec that
7485 doesn't specify style-related properties.
7486 (font_matching_entity): Arguments changed. Caller changed.
7487 (font_open_entity): Adjusted for the change of font-related objects.
7488 (font_close_object, font_has_char, font_encode_char)
7489 (font_get_name, font_get_spec): Likewise.
7490 (font_spec_from_name, font_clear_prop, font_update_lface):
7491 New functions.
7492 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
7493 (font_prepare_for_face, font_done_for_face, font_open_by_name)
7494 (font_at): Adjusted for the change of font-related objects.
7495 (font_range): New function.
7496 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
7497 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
7498 (Fcopy_font_spec, Fmerge_font_spec): New function.
7499 (Ffont_family_list): Renamed from list-families.
7500 (Finternal_set_font_style_table): Arguments changed.
7501 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
7502 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
7503 change of font-related objects.
7504 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
7505
7506 * fontset.h (struct font_info): Delete it. Most members go to
7507 struct font.
7508 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
7509 (enum FONT_SPEC_INDEX): Delete it.
7510 (font_info, list_fonts_func, load_font_func, query_font_func)
7511 (set_frame_fontset_func, find_ccl_program_func)
7512 (get_font_repertory_func, new_fontset_from_font_name): Delete
7513 externs.
7514 (fontset_from_font_name): Extern it.
7515 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
7516 (FONT_INFO_FROM_FACE): Deleted.
7517 (face_for_font): Adjust prototype.
7518
7519 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
7520 conditionals. Don't check enable_font_backend. Delete all codes
7521 used only when USE_FONT_BACKEND is not defined.
7522 (get_font_info_func, list_font_func, load_font_func)
7523 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
7524 (get_font_repertory_func): Delete them.
7525 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
7526 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
7527 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
7528 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
7529 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
7530 (fontset_compare_rfontdef): New function.
7531 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
7532 rfont-defs by qsort. Adjusted for the change of font-group vector.
7533 (load_font_get_repertory): Deleted.
7534 (fontset_find_font): Use new macros to ref/set elements of
7535 font-def and rfont-def.
7536 (fontset_font): Fix the timing of remembering that no font for C.
7537 (free_face_fontset): Do nothing if the face has no fontset.
7538 (face_suitable_for_char_p): Use new macros to ref/set elements of
7539 rfont-def.
7540 (face_for_char): Likewise. Call face_for_char with font_object.
7541 (fs_load_font): Delete. Delete #pragma surrounding it.
7542 (fs_query_fontset): Use strcasecmp instead of strcmp.
7543 (generate_ascii_font_name): Adjusted for the format change of
7544 font-spec.
7545 (Fset_fontset_font): Likewise. Use new macros to set elements of
7546 font-def.
7547 (Fnew_fontset): Use font_unparse_xlfd to generate
7548 FONTSET_ASCII (fontset).
7549 (new_fontset_from_font_name): Deleted.
7550 (fontset_from_font): Renamed from new_fontset_from_font. Check if
7551 a fontset is already created for the font. FIx updating of
7552 Vfontset_alias_alist.
7553 (fontset_ascii_font): Deleted.
7554 (Ffont_info): Adjusted for the format change of font-spec.
7555 (Finternal_char_font): Likewise.
7556 (Ffontset_info): Likewise.
7557 (syms_of_fontset): Don't check load_font_func.
7558
7559 * fns.c (internal_equal): Handle PREV_FONT.
7560
7561 * frame.h: Delete USE_FONT_BACKEND conditional.
7562
7563 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
7564 conditionals. Don't check enable_font_backend. Delete all codes
7565 used only when USE_FONT_BACKEND is not defined.
7566 (x_set_font): Call x_new_font, not x_new_fontset2.
7567 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
7568 already set for the frame.
7569
7570 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
7571 a font-entity by font_make_entity. Use font_intern_prop instead
7572 of intern_downcase. Use FONT_SET_STYLE to set a style-related
7573 font property. If a font is scalable, set avgwidth property to 0.
7574 Set font-entity property by font_put_extra.
7575 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
7576 (ffont_driver): Adjusted for the change of struct font_driver.
7577 (ftfont_spec_pattern): New function.
7578 (ftfont_list): Return a list, not vector.
7579 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
7580 (ftfont_list_family): Don't downcase names.
7581 (ftfont_free_entity): Deleted.
7582 (ftfont_open): Return a font-object. Adjusted for the change of
7583 struct font. Get underline_thickness and underline_position from
7584 font property. Don't update dpyinfo->smallest_font_height and
7585 dpyinfo->smallest_char_width.
7586 (ftfont_close): Don't free `struct font'.
7587 (ftfont_has_char): Adjusted for the format change of font-entity.
7588 (ftfont_encode_char, ftfont_text_extents): Likewise.
7589
7590 * ftxfont.c (ftxfont_list): Return a list, not vector.
7591 (ftxfont_open): Return a font-object. Adjusted for the change of
7592 struct font. Get underline_thickness and underline_position from
7593 font property. Don't update dpyinfo->smallest_font_height and
7594 dpyinfo->smallest_char_width.
7595 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
7596 (ftxfont_draw): Adjusted for the change of struct font.
7597
7598 * image.c (image_ascent): Don't include "charset.h". Include
7599 "character.h" and "font.h".
7600
7601 * lisp.h (enum pvec_type): New member PREV_FONT.
7602 (Fassoc_string): EXFUN it.
7603
7604 * print.c: Include font.h.
7605 (print_object): Handle font-related objects.
7606
7607 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
7608 conditionals. Don't check enable_font_backend. Delete all codes
7609 used only when USE_FONT_BACKEND is not defined.
7610 (handle_auto_composed_prop): Do nothing if it->f is not on a
7611 window system. Check how many following characters can be
7612 displayed by the same font.
7613 (calc_pixel_width_or_height): Type of the 4th arg is changed to
7614 'struct font *'.
7615 (get_char_face_and_encoding): Assign the whole encoding task to
7616 the `encode-char' method of a font driver.
7617 (fill_composite_glyph_string): Adjusted for the change of `struct
7618 face' and `struct glyph_string'.
7619 (fill_glyph_string): Likewise.
7620 (get_per_char_metric): Arguments changed.
7621 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
7622 and `struct glyph_string'.
7623 (produce_stretch_glyph, calc_line_height_property)
7624 (x_produce_glyphs): Likewise.
7625
7626 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
7627 conditionals. Don't check enable_font_backend. Delete all codes
7628 used only when USE_FONT_BACKEND is not defined. Use
7629 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
7630 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
7631 (Qp): Extern them.
7632 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
7633 Deleted.
7634 (struct font_name): Deleted.
7635 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
7636 (compare_fonts_by_sort_order): New function.
7637 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
7638 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
7639 Deleted.
7640 (Fx_family_fonts): Use font_list_entities, and sort fonts by
7641 compare_fonts_by_sort_order.
7642 (Fx_font_family_list): Call Ffont_family_list.
7643 (face_numeric_value, face_numeric_weight, face_numeric_slant)
7644 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
7645 (face_symbolic_slant, face_symbolic_swidth)
7646 (split_font_name_into_vector, build_font_name_from_vector)
7647 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
7648 (font_rescale_ratio, split_font_name, build_font_name)
7649 (free_font_names, sort_fonts, x_face_list_fonts)
7650 (face_font_available_p, sorted_font_list, cmp_font_names)
7651 (font_list_1, concat_font_list, font_list, remove_duplicates):
7652 Deleted.
7653 (Fx_list_fonts): Use Ffont_list.
7654 (LFACE_AVGWIDTH): Deleted.
7655 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
7656 by FONTP.
7657 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
7658 (set_lface_from_font_name): Delete it.
7659 (set_lface_from_font): Renamed from
7660 set_lface_from_font_and_fontset. Caller changed. Don't set
7661 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
7662 for face.
7663 (merge_face_vectors): Copy font-spec if necessary.
7664 Clear properties of the font-spec if necessary.
7665 (merge_face_ref): Clear properties of the font-spec if necessary.
7666 (Finternal_set_lisp_face_attribute): Likewise.
7667 (set_font_frame_param): Use font_load_for_lface to load a
7668 font-object, and call Fmodify_frame_parameters with it.
7669 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
7670 font name by Ffont_xlfd_name.
7671 (Finternal_lisp_face_attribute_values): Don't check QCweight,
7672 QCslant, and QCwidth.
7673 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
7674 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
7675 Compare fonts by EQ.
7676 (lookup_non_ascii_face): Deleted.
7677 (face_for_font): The 2nd argument changed.
7678 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
7679 Check atomic font properties by case insensitive.
7680 (realize_non_ascii_face): Set face->overstrike correctly.
7681 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
7682 (dump_realized_face): Get font name from
7683 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
7684
7685 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
7686 conditionals. Don't check enable_font_backend. Delete all codes
7687 used only when USE_FONT_BACKEND is not defined.
7688 (xic_create_xfontset): Original code deleted and renamed from
7689 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
7690 (x_make_gc): Don't set GCFont in GCs.
7691 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
7692 opened by "fixed".
7693 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
7694 find_ccl_program_func, query_font_func, set_frame_fontset_func,
7695 get_font_repertory_func.
7696
7697 * xfont.c: Include <stdlib.h> and "ccl.h".
7698 (struct xfont_info): New structure.
7699 (xfont_query_font): Deleted.
7700 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
7701 moved from xterm.c.
7702 (xfont_driver): Adjusted for the change of struct font_driver.
7703 (compare_font_names): New function.
7704 (xfont_list_pattern): Sort font names case insensitively. Make
7705 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
7706 (xfont_list): Return a list, not vector.
7707 (xfont_match): If the font doesn't have QCname property, generate
7708 a name from the other font properties.
7709 (xfont_open): Return a font-object. Adjusted for the change of
7710 struct font. Get underline_thickness and underline_position from
7711 font property. Don't update dpyinfo->smallest_font_height and
7712 dpyinfo->smallest_char_width.
7713 (xfont_close): Don't free struct font.
7714 (xfont_prepare_face): Adjusted for the change of struct font.
7715 (xfont_done_face): Deleted.
7716 (xfont_has_char): Adjusted for the change of struct font.
7717 (xfont_encode_char, xfont_draw): Likewise.
7718 (xfont_check): New function.
7719
7720 * xftfont.c (xftfont_list): Adjusted for the change of `list'
7721 callback function.
7722 (xftfont_match): Adjusted for the format change of font-entity.
7723 (xftfont_open): Adjusted for the format change of font-entity and
7724 font-object. Adjusted for the change of struct font. Return a
7725 font-object. Don't update dpyinfo->smallest_font_height and
7726 dpyinfo->smallest_char_width.
7727 (xftfont_close): Block input while calling XftFontClose.
7728 (xftfont_prepare_face): Don't block input while calling
7729 xftfont_get_colors. Adjusted for the change of struct font.
7730 (xftfont_shape): Return value of error case fixed.
7731
7732 * xrdb.c (x_load_resources): Don't setup a fontset resource.
7733
7734 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
7735 conditionals.
7736 (FONT_WIDTH): Return (f)->max_width.
7737 (struct x_display_info): Delete member `font'.
7738 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
7739 (x_find_ccl_program, x_get_font_repertory): Delete externs.
7740 (struct x_output): Change type of `font' to `struct font *'.
7741
7742 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
7743 conditionals. Don't check enable_font_backend. Delete all codes
7744 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
7745 (x_per_char_metric, x_encode_char): Deleted.
7746 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
7747 (x_compute_glyph_string_overhangs): Adjusted for the change of
7748 `struct face'.
7749 (x_draw_glyph_string_foreground)
7750 (x_draw_composite_glyph_string_foreground): Likewise.
7751 (x_draw_glyph_string): Likewise. Use font->underline_position and
7752 font->underline_thickness.
7753 (x_new_font): Renamed from x_new_fontset2.
7754 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
7755 (x_check_font): Call `check' method of a font driver.
7756 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
7757 (x_query_font, x_get_font_repertory): Deleted.
7758 (x_find_ccl_program): Renamed and moved to xfont.c.
7759 (x_redisplay_interface): Adjusted for the change of `struct
7760 redisplay_interface'.
7761
7762 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
7763 conditionals. Don't check enable_font_backend. Delete all codes
7764 used only when USE_FONT_BACKEND is not defined. Surround non-used
7765 code by "#ifdef OLD_FONT" and "endif".
7766 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
7767
7768 * w32font.h (struct w32font_info): New member.
7769 (FONT_COMPAT): New macro.
7770 (w32font_open_internal): Prototype adjusted.
7771
7772 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
7773 OLD_FONT" and "endif".
7774
7775 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
7776 conditionals. Don't check enable_font_backend. Delete all codes
7777 used only when USE_FONT_BACKEND is not defined.
7778 (w32font_open): Return a font-object. Make a font-object by
7779 font_make_object. Adjusted for the change of struct w32font_info.
7780 (w32font_close): Don't free struct font. Adjusted for the change
7781 of struct w32font_info.
7782 (w32font_encode_char, w32font_text_extents, w32font_draw):
7783 Adjusted for the change of struct w32font_info.
7784 (w32font_draw): Likewise.
7785 (w32font_list_internal): Return a list, not vector.
7786 (w32font_open_internal): Change the 4th arg to font-object.
7787 Adjusted for the change of struct w32font_info and font-object format.
7788 (add_font_name_to_list): Don't downcase names.
7789 (w32_enumfont_pattern_entity): Make a font-entity by
7790 font_make_entity. Adjusted for the format change of font-entity.
7791 Use FONT_SET_STYLE to set a style-related font property. If a
7792 font is scalable, set avgwidth property to 0. Set font-entity
7793 property by font_put_extra.
7794 (font_matches_spec): Adjusted for the format change of font-entity.
7795 (w32_weight_table, w32_decode_weight): New variables.
7796 (w32_encode_weight): New function.
7797 (fill_in_logfont): Adjusted for the format change of font-spec.
7798 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
7799 weight value.
7800 (w32font_driver): Adjusted for the change of struct font_driver.
7801
7802 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
7803 conditionals. Don't check enable_font_backend. Surround non-used
7804 code by "#ifdef OLD_FONT" and "endif".
7805 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
7806 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
7807
7808 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
7809 conditionals. Don't check enable_font_backend. Delete all codes
7810 used only when USE_FONT_BACKEND is not defined. Surround non-used
7811 code by "#ifdef OLD_FONT" and "endif".
7812
7813 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
7814 (uniscribe_open): Return value changed to font-object.
7815 Adjusted for the format change of font-object.
7816 (uniscribe_otf_capability): Adjusted for the change of struct font.
7817 (add_opentype_font_name_to_list): Don't downcase names.
7818 (uniscribe_font_driver): Adjusted for the change of struct
7819 font_driver.
7820
78212008-05-13 Chong Yidong <cyd@stupidchicken.com>
7822
7823 * dispnew.c (update_frame_1): Check if tty output is still valid
7824 before flushing it.
7825
78262008-05-13 Jan Djärv <jan.h.d@swipnet.se>
7827
7828 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
7829 to Gtk+ menus.
7830
78312008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
7832
7833 * dired.c (file_name_completion): Tweak the code so as to always do it
7834 in a single pass. Tighten the scope of some variables.
7835
7836 * dired.c (Qdefault_directory): New var.
7837 (file_name_completion): Use it instead of Fexpand_file_name.
7838 (syms_of_dired): Initialize it.
7839
78402008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
7841
7842 * fileio.c (double_dollars): Remove dead code.
7843
78442008-05-10 Eli Zaretskii <eliz@gnu.org>
7845
7846 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
7847 Mention w32-get-true-file-attributes in doc string.
7848
7849 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
7850
78512008-05-09 Glenn Morris <rgm@gnu.org>
7852
7853 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
7854 2008-04-23.
7855
78562008-05-09 Eli Zaretskii <eliz@gnu.org>
7857
7858 Support for reporting owner and group of each file on MS-Windows:
7859 * dired.c (stat_uname, stat_gname): New functions, with special
7860 implementation for w32.
7861 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
7862
7863 * w32.c: Rename the_passwd_* to dflt_passwd_*.
7864 (dflt_group_name): New static variable.
7865 (dflt_group): Rename from the_group.
7866 (init_user_info): Init dflt_group fields. Get user's group name
7867 from LookupAccountSid.
7868 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
7869 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
7870 New initialization states.
7871 (globals_of_w32): Initialize them to zero. Initialize the default
7872 group name to "None".
7873 (GetFileSecurity_Name): New global var, the name of the function
7874 to call for GetFileSecurity.
7875 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
7876 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
7877 (get_file_security, get_security_descriptor_owner)
7878 (get_security_descriptor_group, is_valid_sid)
7879 (get_file_security_desc, get_rid, get_name_and_id)
7880 (get_file_owner_and_group): New functions.
7881 (stat): Use get_file_security_desc and get_file_owner_and_group to
7882 report the owner and primary group of each file. Don't ignore the
7883 high 32 bits of file's size, now that st_size is 64-bit wide.
7884 Fix test when to get true file attributes.
7885 (init_user_info): Use get_rid instead of equivalent inline code.
7886 (fstat): Don't ignore the high 32 bits of file's size.
7887
78882008-05-09 Chong Yidong <cyd@stupidchicken.com>
7889
7890 * image.c (png_load): Use correct bit-depth for setting background
7891 color.
7892
78932008-05-08 Eli Zaretskii <eliz@gnu.org>
7894
7895 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
7896 epa-hook.elc.
7897
78982008-05-08 Juanma Barranquero <lekktu@gmail.com>
7899
7900 * font.c (Ffont_match_p): Don't use `iff' in docstring.
7901
79022008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
7903
7904 * macfns.c (Fx_create_frame): Make a copy of frame parameters
7905 because the original parameters are in pure storage now.
7906 (mac_window): Remove unused params. Update callers.
7907
79082008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
7909
7910 * lread.c (substitute_object_recurse): Use lower-level primitives.
7911 Don't signal errors when traversing sub-char-tables.
7912 Don't loop over all the possible characters when traversing char-tables.
7913
7914 * print.c (print_preprocess): Add sub-char-tables to the print-table,
7915 just like we do in print.c.
7916
79172008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
7918
7919 * minibuf.c (Ftry_completion): Remove code left over from when we used
7920 scmp instead of Fcompare_strings.
7921
79222008-05-04 Juanma Barranquero <lekktu@gmail.com>
7923
7924 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
7925
79262008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7927
7928 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
7929 Create bitmap context in native byte order.
7930
7931 * macterm.c (XDrawLine)
7932 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
7933 context in native byte order.
7934
79352008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7936
7937 * config.in: Regenerate.
7938
7939 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
7940 New definitions for Image I/O support.
7941 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
7942 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
7943 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
7944 (mac_data_provider_release_data, image_load_image_io)
7945 [USE_MAC_IMAGE_IO]: New functions.
7946 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
7947 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
7948 (init_image_func_pointer) [MAC_OSX]: Remove function.
7949 (image_load_quartz2d) [MAC_OSX]: Check availability of
7950 CGImageCreateWithPNGDataProvider at compile time.
7951 Use lowercase `false' for boolean constant.
7952 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
7953 Use image_load_image_io.
7954 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
7955 Don't check MyCGImageCreateWithPNGDataProvider.
7956 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
7957 Don't call init_image_func_pointer.
7958
7959 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
7960
7961 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
7962 Make variable non-static.
7963 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
7964 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
7965
7966 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
7967 (RED_FROM_ULONG): Mask off higher bits.
7968 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
7969
7970 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
7971 Include AvailabilityMacros.h.
7972 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
7973 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
7974
79752008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
7976
7977 * chartab.c (Fset_char_table_range): If range is t, really set all
7978 chars to that value.
7979
79802008-05-03 Eli Zaretskii <eliz@gnu.org>
7981
7982 * dired.c (Ffile_attributes): Don't allow the device number become
7983 negative.
7984
79852008-05-02 Daiki Ueno <ueno@unixuser.org>
7986
7987 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
7988
79892008-05-02 Juri Linkov <juri@jurta.org>
7990
7991 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
7992 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
7993 DEFAULT argument as a list of default values in docstrings.
7994
79952008-05-01 Chong Yidong <cyd@stupidchicken.com>
7996
7997 * puresize.h (BASE_PURESIZE): Increase to 1210000.
7998
79992008-05-01 Martin Rudalics <rudalics@gmx.at>
8000
8001 * dispnew.c (change_frame_size_1): Preserve small windows when
8002 shrinking frames by calling set_window_height|width with third
8003 arg 2.
8004
8005 * window.h (struct window): Replace field too_small_ok by field
8006 resize_proportionally.
8007
8008 * window.c (make_window): Initialize resize_proportionally.
8009 (enlarge_window): Temporarily set resize_proportionally to make
8010 sure that shrink_windows does scale the window proportionally.
8011 (shrink_windows): When window has resize_proportionally set try
8012 to shrink it proportionally by stealing from other windows.
8013 (struct saved_window, Fset_window_configuration)
8014 (compare_window_configurations): Handle resize_proportionally.
8015 (WINDOW_TOTAL_SIZE): New macro.
8016 (window_min_size, shrink_windows, size_window): Use it.
8017 (check_min_window_sizes): Remove. Invalid values of
8018 window-min-height|width are handled by window_min_size_2 now.
8019 (size_window, Fsplit_window, enlarge_window)
8020 (adjust_window_trailing_edge, grow_mini_window): Don't call
8021 check_min_window_sizes.
8022 (window_min_size_2, window_min_size_1, window_min_size):
8023 New argument safe_p for retrieving "safe" minimum sizes.
8024 (Fdisplay_buffer, Fsplit_window, enlarge_window)
8025 (adjust_window_trailing_edge, grow_mini_window):
8026 Adjust arguments of window_min_size... functions.
8027 (shrink_windows): Argument min_size removed. New argument
8028 safe_p allows shrinking windows to their safe minimum sizes.
8029 Calculate minimum size and decide whether a window shall be
8030 deleted for each window individually.
8031 (size_window): When nodelete_p equals 2, tell shrink_windows to
8032 delete windows only if their new minimum size is no more safe.
8033 (shrink_window_lowest_first): Call window_min_size_1 to make
8034 sure to preserve modeline of bottom-most window when resizing
8035 the minibuffer.
8036 (Fset_window_configuration, Fcurrent_window_configuration)
8037 (compare_window_configurations): Do not handle
8038 window-min-height|width any more.
8039 (syms_of_window): Clarify window-min-height|width doc-strings.
8040
80412008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
8042
8043 * dired.c (file_name_completion): Fix up the encoding/decoding issue
8044 some more. Copy some of the code from Ftry_completions.
8045 Remove special case code that dates back to initial revision when the
8046 slash was only added when necessary and that can't trigger nowadays.
8047
80482008-04-27 Kenichi Handa <handa@m17n.org>
8049
8050 * font.c (font_prop_validate): Signal `error' instead of `font'.
8051
80522008-04-29 Jason Rumney <jasonr@gnu.org>
8053
8054 * w32fns.c (Fw32_battery_status): New defun.
8055 (syms_of_w32fns): Defsubr it.
8056
80572008-04-28 Andreas Schwab <schwab@suse.de>
8058
8059 * dired.c (file_name_completion): Fix another mixing of encoded
8060 and decoded names.
8061
80622008-04-28 Juanma Barranquero <lekktu@gmail.com>
8063
8064 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
8065
80662008-04-27 Juanma Barranquero <lekktu@gmail.com>
8067
8068 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
8069
80702008-04-27 Andreas Schwab <schwab@suse.de>
8071
8072 * dired.c (file_name_completion): Fix inappropriate mixing of
8073 encoded and decoded names.
8074
8075 * xterm.c (XTread_socket): Fix use of uninitialized variable.
8076
8077 * puresize.h (BASE_PURESIZE): Increase to 1200000.
8078
80792008-04-26 Eli Zaretskii <eliz@gnu.org>
8080
8081 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
8082 2008-03-31, it's not needed anymore with `struct stat' definition
8083 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
8084 for the same reasons.
8085
80862008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
8087
8088 * m/sparc.h: Additional redefinitions for GNU/Linux.
8089
80902008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8091
8092 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
8093 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
8094 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
8095 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
8096 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
8097 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
8098 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
8099 Likewise.
8100
8101 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
8102 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
8103 (mac_ax_number_of_characters): Add externs.
8104 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
8105 [USE_MAC_TSM]: Likewise.
8106 (mac_handle_text_input_event) [MAC_OSX]:
8107 Handle kEventTextInputOffsetToPos for no active input area case.
8108 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
8109 (mac_handle_document_access_event)
8110 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
8111 (install_application_handler) [MAC_OSX]: Register handlers for
8112 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
8113 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
8114 Register mac_handle_document_access_event.
8115
8116 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
8117 Make functions non-static.
8118
81192008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
8120
8121 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
8122 (read_file_name_completion_ignore_case, insert_default_directory)
8123 (Qdefault_directory): Move to minibuffer.el.
8124 (Fread_file_name): Call the new `read-file-name' instead.
8125
81262008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8127
8128 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
8129 Make function non-static.
8130 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
8131 Remove function.
8132 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
8133 Move to mactoolbox.c.
8134 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
8135
8136 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
8137 (mac_rect_make): New macro.
8138
8139 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
8140 instead of float.
8141 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
8142 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
8143 (XSetBackground) [USE_CG_DRAWING]: Likewise.
8144 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
8145 CGRectMake.
8146 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
8147 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
8148 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
8149 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
8150 instead of WindowRef in argument type.
8151 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
8152 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
8153 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
8154 instead of DISPLAY. All uses changed.
8155 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
8156 (x_calc_absolute_position): Simplify so as not to use
8157 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
8158
8159 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
8160 instead of WindowRef in argument type.
8161 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
8162 [TARGET_API_MAC_CARBON]: Remove externs.
8163 (create_apple_event, mac_event_parameters_to_lisp)
8164 [TARGET_API_MAC_CARBON]: Add externs.
8165
8166 * mactoolbox.c (Vmac_ts_script_language_on_focus)
8167 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
8168 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
8169 is clicked.
8170 (x_activate_menubar): Remove extern for saved_menu_event_location.
8171 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
8172 Move from mac.c.
8173
81742008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8175
8176 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
8177 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
8178
81792008-04-23 Jason Rumney <jasonr@gnu.org>
8180
8181 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
8182 attributes only for local files.
8183
8184 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
8185 default to Qlocal.
8186
81872008-04-22 Juri Linkov <juri@jurta.org>
8188
8189 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
8190 read-buffer-to-switch instead of using the letter "B".
8191
81922008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
8193
8194 * fileio.c (Qdefault_directory): New variable.
8195 (Fread_file_name): Use it to pass `dir' to the completion functions.
8196
81972008-04-20 Chong Yidong <cyd@stupidchicken.com>
8198
8199 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
8200
82012008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
8202
8203 * keyboard.c (Vpre_help_message): Remove.
8204 (show_help_echo): Remove default C code.
8205
8206 * dired.c (directory_files_internal, file_name_completion):
8207 Only call ENCODE_FILE if the string is indeed decoded.
8208
82092008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
8210
8211 * Makefile.in (TOOLKIT_DEFINES): Remove.
8212 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
8213
82142008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8215
8216 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
8217 (mactoolbox.o): New target.
8218
8219 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
8220 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
8221
8222 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
8223 Use mac_set_frame_window_background instead of XSetWindowBackground.
8224 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
8225 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
8226 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
8227 instead of SetWindowTitleWithCFString.
8228 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
8229 Move function to mactoolbox.c.
8230 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
8231 Use mac_set_window_modified instead of SetWindowModified.
8232 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
8233 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
8234 (Fx_focus_frame): Use mac_front_non_floating_window instead of
8235 FrontNonFloatingWindow. Use mac_activate_window instead of
8236 ActivateWindow. Use mac_active_non_floating_window instead of
8237 ActiveNonFloatingWindow.
8238 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
8239 Use mac_show_hourglass and mac_hide_hourglass.
8240 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
8241 instead of GetGlobalMouse.
8242 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
8243 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
8244 Use mac_bring_window_to_front instead of BringToFront.
8245 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
8246 mactoolbox.c.
8247 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
8248 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
8249 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
8250 mactoolbox.c.
8251
8252 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
8253 (XtPointer): Move typedef from macmenu.c.
8254 (enum button_type): Move enum from macmenu.c.
8255 (widget_value): Move typedef from macmenu.c.
8256 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
8257 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
8258 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
8259 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
8260 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
8261 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
8262 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
8263 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
8264 (Selection): Move typedef from macselect.c.
8265 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
8266 macterm.c.
8267 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
8268 (mac_is_window_collapsed, mac_bring_window_to_front)
8269 (mac_send_window_behind, mac_hide_window, mac_show_window)
8270 (mac_collapse_window, mac_front_non_floating_window)
8271 (mac_active_non_floating_window, mac_activate_window)
8272 (mac_move_window_structure, mac_move_window, mac_size_window)
8273 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
8274
8275 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
8276 (enum mac_menu_kind): Move enum to mactoolbox.c.
8277 (min_menu_id): Move variable to mactoolbox.c.
8278 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
8279 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
8280 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
8281 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
8282 [TARGET_API_MAC_CARBON]: Likewise.
8283 (XtPointer): Move typedef to macgui.h.
8284 (enum button_type): Move enum to macgui.h.
8285 (widget_value): Move typedef to macgui.h.
8286 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
8287 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
8288 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
8289 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
8290 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
8291 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
8292 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
8293 (popup_activated_flag): Make variable non-static.
8294 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
8295 (add_menu_item, fill_menu, dispose_menus):
8296 Move functions to mactoolbox.c.
8297 (restore_show_help_function, menu_target_item_handler)
8298 (install_menu_target_item_handler, mac_handle_dialog_event)
8299 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
8300 [TARGET_API_MAC_CARBON]: Likewise.
8301 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
8302 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
8303 (find_and_call_menu_selection, name_is_separator): Make function
8304 non-static.
8305 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
8306 to mactoolbox.c.
8307 (set_frame_menubar): Don't call install_menu_quit_handler.
8308 (menu_item_selection): New variable.
8309 (mac_menu_show): Use create_and_show_popup_menu.
8310 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
8311 selection but set variable menu_item_selection. All uses changed.
8312 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
8313 Call install_menu_quit_handler. Move to mactoolbox.c.
8314
8315 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
8316 (Selection): Move typedef to macgui.h.
8317 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
8318 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
8319 Make variables non-static.
8320 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
8321 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
8322 Make functions non-static.
8323 (Vmac_service_selection) [MAC_OSX]: Likewise.
8324 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
8325 (mac_valid_selection_target_p, mac_clear_selection)
8326 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
8327 (mac_put_selection_value, mac_selection_has_target_p)
8328 (mac_get_selection_value, mac_get_selection_target_list)
8329 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
8330 Move functions to mactoolbox.c.
8331 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
8332 Likewise.
8333 (copy_scrap_flavor_data, mac_handle_service_event)
8334 (install_service_handler) [MAC_OSX]: Likewise.
8335 (syms_of_macselect) <Vmac_dnd_known_types>:
8336 Use mac_dnd_default_known_types.
8337
8338 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
8339 Move to mactoolbox.c.
8340 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
8341 (Fx_selection_owner_p): Add EXFUN.
8342 (install_window_handler, remove_window_handler, XSetWindowBackground):
8343 Remove externs.
8344 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
8345 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
8346 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
8347 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
8348 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
8349 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
8350 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
8351 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
8352 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
8353 (create_and_show_popup_menu, mac_get_selection_from_symbol)
8354 (mac_valid_selection_target_p, mac_clear_selection)
8355 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
8356 (mac_put_selection_value, mac_selection_has_target_p)
8357 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
8358 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
8359 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
8360 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
8361 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
8362 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
8363 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
8364 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
8365 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
8366
8367 * mactoolbox.c: New file.
8368
83692008-04-18 Jason Rumney <jasonr@gnu.org>
8370
8371 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
8372
83732008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
8374
8375 * character.c (Fmultibyte_char_to_unibyte):
8376 Return latin1 chars unchanged.
8377
8378 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
8379 relocated if it points to `name'.
8380
83812008-04-17 Kenichi Handa <handa@m17n.org>
8382
8383 * data.c (Faset): Allow setting a multibyte character in an
8384 ASCII-only unibyte string.
8385
8386 * lisp.h (STRING_SET_MULTIBYTE): New macro.
8387
83882008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
8389
8390 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
8391 done in config.h.
8392
83932008-04-16 Juanma Barranquero <lekktu@gmail.com>
8394
8395 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
8396 (Fchar_direction): Add usage in the docstring.
8397
83982008-04-15 Chong Yidong <cyd@stupidchicken.com>
8399
8400 * keyboard.c (read_key_sequence): Remove always-true checks.
8401
84022008-04-14 Jason Rumney <jasonr@gnu.org>
8403
8404 * w32font.c (w32font_open_internal): Set max_bounds.descent in
8405 compatibility struct, for better underline positioning.
8406
84072008-04-13 David Hansen <david.hansen@gmx.net>
8408
8409 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
8410 string.
8411
84122008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
8413
8414 * m/hp800.h (XUINT, XSET): Remove.
8415
84162008-04-12 Juanma Barranquero <lekktu@gmail.com>
8417
8418 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
8419 previous change.
8420
84212008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
8422
8423 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
8424 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
8425
84262008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
8427
8428 * keymap.h (map_keymap_canonical): Declare.
8429 * xmenu.c (single_keymap_panes): Use it.
8430
84312008-04-11 Glenn Morris <rgm@gnu.org>
8432
8433 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
8434 set the target's value to that of the alias.
8435
84362008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
8437
8438 * term.c (set_tty_color_mode): Left over typo.
8439
84402008-04-10 Michael Albinus <michael.albinus@gmx.de>
8441
8442 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
8443 only after check for file name handler functions. Signal, when
8444 native functionality is not supported.
8445 (syms_of_fileio): Declare it unconditionally.
8446
84472008-04-10 Jason Rumney <jasonr@gnu.org>
8448
8449 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
8450 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
8451
8452 * w32.c (logon_network_drive): Also logon to remote drives that
8453 are mapped to drive letters.
8454
84552008-04-10 Glenn Morris <rgm@gnu.org>
8456
8457 * xdisp.c (truncate-partial-width-windows): Doc fix.
8458
84592008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
8460
8461 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
8462 Move functions to minibuffer.el.
8463 (syms_of_fileio): Don't declare them.
8464
84652008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
8466
8467 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
8468 (syms_of_minibuf): Remove its initialization.
8469
8470 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
8471
84722008-04-09 Juanma Barranquero <lekktu@gmail.com>
8473
8474 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
8475
84762008-04-09 Jason Rumney <jasonr@gnu.org>
8477
8478 * makefile.w32-in (distclean): Delete makefile too.
8479 (maintainer-clean): New target.
8480
8481 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
8482
8483 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
8484 for new font backend and composite cases.
8485
84862008-04-09 Jan Djärv <jan.h.d@swipnet.se>
8487
8488 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
8489 Most of the code moved to run_timers.
8490 (do_pending_atimers): Call run_timers.
8491 (run_timers): New function.
8492
8493 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
8494 run atimers.
8495
8496 * process.c (wait_reading_process_output): The same as above.
8497
84982008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
8499
8500 * minibuf.c (last_exact_completion): Remove variable.
8501 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
8502 (complete_and_exit_1, complete_and_exit_2)
8503 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
8504 (Fdisplay_completion_list, display_completion_list_1)
8505 (Fminibuffer_completion_help, Fself_insert_and_exit)
8506 (Fexit_minibuffer, Fminibuffer_message): Move functions to
8507 minibuffer.el.
8508 (syms_of_minibuf): Remove corresponding initializations.
8509
8510 * keyboard.c (Qdeactivate_mark): New var.
8511 (command_loop_1): Use it to call `deactivate-mark'.
8512 (syms_of_keyboard): Initialize it.
8513
8514 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
8515 to another frame.
8516 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
8517 Don't call set_tty_color_mode.
8518 (store_frame_param): Reset previous_frame rather than call
8519 set_tty_color_mode.
8520 * term.c (set_tty_color_mode): Rewrite.
8521 * dispextern.h (set_tty_color_mode): New type.
8522 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
8523
85242008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
8525
8526 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
8527 for generic chars, which do not exist any more in emacs-unicode.
8528
85292008-04-08 Michael Albinus <michael.albinus@gmx.de>
8530
8531 * coding.c (detect_coding_emacs_mule)
8532 (Ffind_operation_coding_system): Fix typo.
8533
85342008-04-08 Jason Rumney <jasonr@gnu.org>
8535
8536 * w32uniscribe.c (SNAME): Extract only symbol name.
8537
8538 * w32font.h (struct w32_metric_cache): New struct.
8539 (w32font_info): Use it.
8540 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
8541 (CACHE_BLOCKSIZE): New constants.
8542
8543 * w32font.c (Qja, Qko, Qzh): New symbols.
8544 (syms_of_w32font): Initialise them.
8545 (font_matches_spec): Use them to filter by language.
8546 (recompute_cached_metrics): Remove function.
8547 (compute_metrics, clear_cached_metrics): New functions.
8548 (w32font_encode_char): Use them to manage metric cache.
8549 (w32font_text_extents): Cache metrics for all glyphs on demand.
8550 Delay converting glyph indices to WORD until needed.
8551 (w32font_open_internal): Initialize metric cache to empty.
8552 (registry_to_w32_charset): Charset should always be a symbol.
8553 (fill_in_logfont, list_all_matching_fonts): Family should
8554 always be a symbol.
8555
85562008-04-06 Jason Rumney <jasonr@gnu.org>
8557
8558 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
8559 Give up if glyph indices not supported. Use uniscribe obtained
8560 ABC widths for individual metrics. Map glyph clusters back to
8561 characters using fClusterStart flag. Return number of glyphs
8562 produced, not chars processed.
8563 (uniscribe_shape): Map char at FROM to current glyph.
8564
85652008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8566
8567 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
8568 Use SetMenuItemHierarchicalMenu.
8569
85702008-04-05 Jason Rumney <jasonr@gnu.org>
8571
8572 * image.c (pbm_load): Allow color values up to 65535.
8573 Throw an error if max_color_idx is outside the supported range.
8574 Report an error when image size is invalid.
8575 Read two bytes at a time when raw images have max_color_idx above 255.
8576
85772008-04-05 Eli Zaretskii <eliz@gnu.org>
8578
8579 * w32.c (readdir): If FindFirstFile/FindNextFile return in
8580 cFileName a file name that includes `?' characters, use the 8+3
8581 alias in cAlternateFileName instead.
8582
85832008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
8584
8585 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
8586 append "CCL: Quitted" when the CCL program is quitted.
8587 (setup_ccl_program): Initialize ccl->quit_silently to zero.
8588
8589 * ccl.h (struct ccl_program): New member quit_silently.
8590
85912008-04-05 Chong Yidong <cyd@stupidchicken.com>
8592
8593 * search.c (compile_pattern_1): Treat non-nil and non-string of
8594 search-spaces-regexp as nil.
8595
8596 * minibuf.c (Fassoc_string): Tweak docstring.
8597
85982008-04-05 Eli Zaretskii <eliz@gnu.org>
8599
8600 * dired.c (Ffile_attributes): Support inode numbers wider than 32
8601 bits. Remove ugly WINDOWSNT-specific kludge introduced on
8602 2008-03-14 to force inode be positive.
8603
8604 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
8605 _S_* ones, since we now use our own sys/stat.h.
8606 (stat, fstat): Don't mangle the inode number.
8607 (init_user_info): Don't restrict UID and GID to 0-60000 range.
8608
86092008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
8610
8611 * frame.h (struct frame): Give one more bit to `visible' since we use
8612 values larger than 1 to indicate obscured frames on ttys.
8613
8614 * keymap.c (Qkeymap_canonicalize): New var.
8615 (Fmap_keymap_internal): New fun.
8616 (describe_map): Use keymap-canonicalize.
8617
8618 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
8619 (Fundo_boundary): Set them.
8620 (syms_of_undo): Initialize them.
8621 (record_point): Use them instead of last_point_position*.
8622 (last_undo_buffer): Change type.
8623
86242008-04-04 Jason Rumney <jasonr@gnu.org>
8625
8626 * w32font.c (w32font_text_extents): Use font's ascent and descent.
8627 (recompute_cached_metrics): Don't set ascent and descent per char.
8628
8629 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
8630 (uniscribe_check_otf): Add GC protection before consing.
8631 Rearrange loop for counting features.
8632
86332008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
8634
8635 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
8636 buffer with byte-size of source buffer.
8637
86382008-04-03 Chong Yidong <cyd@stupidchicken.com>
8639
8640 * callint.c (Fcall_interactively): Handle temporary region even
8641 when shift-select-mode is off.
8642
86432008-04-03 Jason Rumney <jasonr@gnu.org>
8644
8645 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
8646
86472008-04-03 Kenichi Handa <handa@m17n.org>
8648
8649 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
8650 (CATEGORY_MASK_UTF_16): Likewise.
8651 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
8652 binary file.
8653 (detect_coding): Add null-byte detection for a binary file.
8654 (detect_coding_system): Likewise.
8655
86562008-04-03 Jason Rumney <jasonr@gnu.org>
8657
8658 * w32uniscribe.c: New file.
8659
8660 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
8661
8662 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
8663
8664 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
8665 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
8666 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
8667 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
8668 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
8669 (Qphonetic): New symbols.
8670 (syms_of_w32font): Initialize them.
8671 (font_supported_scripts): Use them.
8672 (w32font_list_family): List all charsets.
8673 (w32font_text_extents, recompute_cached_metrics): Fix metric
8674 calculations.
8675 (w32_enumfont_pattern_entity): Make full_type a DWORD.
8676 Give opentype fonts their own format.
8677 (font_matches_spec): New arguments backend and logfont.
8678 Handle :otf spec for uniscribe backend.
8679 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
8680 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
8681
8682 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
8683 font backend.
8684 (globals_of_w32fns): Initialize uniscribe font backend.
8685
8686 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
8687 dependencies.
8688 (w32uniscribe.$(O)): New file to build.
8689 (FONT_OBJ): Include w32uniscribe.$(O).
8690 (LIBS): Add uniscribe libraries.
8691
8692 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
8693
86942008-04-02 Chong Yidong <cyd@stupidchicken.com>
8695
8696 * callint.c (Vshift_select_mode): New var.
8697 (Finteractive): Document new ^ spec.
8698 (Fcall_interactively): Call handle-shift-selection if the ^ spec
8699 is present.
8700
8701 * keyboard.c (Vthis_command_keys_shift_translated): New var.
8702 (command_loop_1): Avoid running the direct display versions of
8703 forward-char and backward-char if shift-selection may occur.
8704 (read_key_sequence): Set Vthis_command_keys_shift_translated if
8705 shift-translation takes place.
8706
8707 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
8708 avoid clobbering by define-minor-mode.
8709
8710 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
8711 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
8712
8713 * syntax.c (Fforward_word): Add ^ interactive spec.
8714
8715 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
8716 (Fscroll_right): Add ^ interactive spec.
8717
87182008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
8719
8720 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
8721
8722 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
8723
8724 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
8725
87262008-03-31 Juri Linkov <juri@jurta.org>
8727
8728 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
8729
87302008-03-30 Jan Djärv <jan.h.d@swipnet.se>
8731
8732 * gtkutil.c (xg_set_geometry): Fix indentation.
8733 (xg_resize_outer_widget): Remove.
8734 (x_wm_size_hint_off): Fix indentation.
8735 (xg_frame_set_char_size): Call flush_and_sync after
8736 gtk_window_resize.
8737 (x_wm_set_size_hint): Pass NULL as geometry window to
8738 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
8739 Add menu bar and tool bar height to base height.
8740 (xg_update_frame_menubar, free_frame_menubar)
8741 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
8742 (update_frame_tool_bar, free_frame_tool_bar):
8743 Change xg_resize_outer_widget to xg_frame_set_char_size.
8744
87452008-03-30 Michael Albinus <michael.albinus@gmx.de>
8746
8747 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
8748 (Fdbus_call_method): New parameter TIMEOUT.
8749 (dbus-send-signal): Optimize UNGCPRO call.
8750
87512008-03-29 Juri Linkov <juri@jurta.org>
8752
8753 * window.c (Fdisplay_buffer): Move call to
8754 Vsplit_window_preferred_function out of conditions that check
8755 if window is eligible for vertical splitting.
8756 When Vsplit_window_preferred_function is non-nil, call it and use
8757 its non-nil return value as window. Otherwise, continue doing
8758 vertical splitting using Fsplit_window with arg horflag=nil.
8759 (syms_of_window) <Vsplit_window_preferred_function>: Change the
8760 default value from `split-window' to nil.
8761
87622008-03-29 Juri Linkov <juri@jurta.org>
8763
8764 * callint.c (Fcall_interactively): Revert 2008-03-16 change
8765 for interactive code letters 'b' and 'B'.
8766
87672008-03-29 Eli Zaretskii <eliz@gnu.org>
8768
8769 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
8770 multibyte string.
8771
87722008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
8773
8774 * keyboard.c (pending_funcalls): New var.
8775 (timer_check): Run it.
8776 (syms_of_keyboard): Initialize it.
8777 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
8778 (Vdelete_terminal_functions): New vars.
8779 (syms_of_terminal): Initialize them.
8780 (Fdelete_terminal): Run delete-terminal-functions.
8781 * xdisp.c (safe_eval): Rewrite.
8782 (safe_call2): New fun.
8783 * frame.c (Qdelete_frame_functions): New var.
8784 (syms_of_frame): Initialize it.
8785 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
8786 * lisp.h (safe_call2, pending_funcalls): Declare.
8787
87882008-03-28 Andreas Schwab <schwab@suse.de>
8789
8790 * indent.c (Fmove_to_column): Move declaration before statements.
8791
87922008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
8793
8794 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
8795 (struct frame): Use bit fields for boolean vars.
8796
8797 * process.c (server_accept_connection): Simplify naming.
8798 (emacs_get_tty_pgrp): Use SDATA.
8799
8800 * coding.c (decode_coding_object): Fix last change.
8801
88022008-03-27 Jason Rumney <jasonr@gnu.org>
8803
8804 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
8805
88062008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
8807
8808 * charset.c (Fdefine_charset_internal): Change the way of
8809 registering charsets in Vcharset_order_list.
8810 (syms_of_charset): Make the charset `eight-bit' supplementary.
8811
88122008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
8813
8814 * regex.c (EXTEND_BUFFER): Change order of pointer addition
8815 operations, to avoid having the difference between pointers
8816 overflow.
8817
88182008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
8819
8820 * indent.c (check_display_width): New fun.
8821 (scan_for_column): Use it.
8822
8823 * data.c (syms_of_data): Mark most-positive-fixnum and
8824 most-negative-fixnum as constants.
8825
8826 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
8827
8828 * indent.c (scan_for_column): Extract from current_column_1.
8829 Merge with the same code from Fmove_to_column.
8830 (current_column_1, Fmove_to_column): Use it.
8831
88322008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
8833
8834 * keymap.c (map_keymap_internal): New fun.
8835 (map_keymap): Use it.
8836 (Fmap_keymap_internal): New fun.
8837 (Fmap_keymap): Remove left-out test from before make_save_value.
8838
8839 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
8840
8841 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
8842 Use XCAR/XCDR.
8843
8844 * process.h (struct Lisp_Process): Remove filter_multibyte.
8845 * process.c (QCfilter_multibyte): Remove.
8846 (setup_process_coding_systems): Don't use filter_multibyte.
8847 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
8848 (read_process_output): Don't adjust multibyteness to filter_multibyte.
8849 (Fset_process_filter_multibyte): Change the coding-system to
8850 approximate the previous behavior.
8851 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
8852 coding-system.
8853
8854 * coding.c (decode_coding_object): When not decoding into a buffer,
8855 obey the coding system's preference of (uni|multi)byte.
8856
88572008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
8858
8859 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
8860 every char is changed and has a different byte-length.
8861 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
8862 Fix int -> EMACS_INT.
8863
88642008-03-23 David Hansen <david.hansen@gmx.net>
8865
8866 * dbusbind.c (xd_read_message): Remove extra copying of message
8867 strings. Check for NULL `interface' or `member'.
8868
88692008-03-22 Eli Zaretskii <eliz@gnu.org>
8870
8871 * w32.c (readdir): If FindFirstFile/FindNextFile return in
8872 cFileName a file name that includes `?' characters, use the 8+3
8873 alias in cAlternateFileName instead.
8874
88752008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
8876
8877 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
8878
88792008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
8880
8881 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
8882 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
8883 work on current_buffer only instead (that was already the case
8884 for some of the code anyway).
8885 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
8886 (temp_set_point, temp_set_point_both): Use EMACS_INT.
8887 (SET_PT, SET_PT_BOTH): Adjust.
8888 * intervals.h (set_point, temp_set_point, set_point_both)
8889 (temp_set_point_both): Remove redundant declarations.
8890
88912008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
8892
8893 * fileio.c (Finsert_file_contents):
8894 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
8895 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
8896 when buffer != current_buffer anyway.
8897
88982008-03-20 Andreas Schwab <schwab@suse.de>
8899
8900 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
8901 as default.
8902
89032008-03-19 Jason Rumney <jasonr@gnu.org>
8904
8905 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
8906 (syms_of_w32fns): Initialize them.
8907 (HOURGLASS_ID): New constant.
8908 (x_window_to_frame): Don't check hourglass_window.
8909 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
8910 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
8911 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
8912 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
8913 Only change the cursor if hourglass is not active.
8914 (Fx_create_frame): Initialize frame's current_cursor.
8915 (hourglass_atimer): Remove.
8916 (hourglass_started): New function.
8917 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
8918 (show_hourglass): Adapt to w32, changing argument to frame.
8919
8920 * w32term.h (struct w32_output): Remove hourglass_window.
8921 Add current_cursor.
8922
8923 * eval.c (call_debugger, Fsignal):
8924 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
8925 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
8926 (Fexecute_extended_command, cancel_hourglass_unwind):
8927 * minibuf.c (read_minibuf):
8928 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
8929
89302008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
8931
8932 * window.c (run_funs): New fun.
8933 (run_window_configuration_change_hook): Use it to run the buffer-local
8934 and the global part of the hook.
8935
8936 * xdisp.c (format_mode_line_unwind_data): Add window argument.
8937 (unwind_format_mode_line): Restore selected window.
8938 (x_consider_frame_title, Fformat_mode_line): Set selected window.
8939
89402008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
8941
8942 * editfns.c (Fchar_equal): Check they are valid characters.
8943
8944 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
8945
89462008-03-17 Andreas Schwab <schwab@suse.de>
8947
8948 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
8949 against a charset.
8950
8951 * lisp.h (Fbuffer_list): Declare.
8952
89532008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 8954
aac0c6e3
MR
8955 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
8956 handlebox_widget is != 0.
8957
89582008-03-16 Juri Linkov <juri@jurta.org>
8959
8960 * callint.c (Fcall_interactively): For interactive code letters
8961 'b' and 'B' put the buffer list into the list of default "future"
8962 values of the minibuffer.
8963
89642008-03-16 Andreas Schwab <schwab@suse.de>
8965
8966 * keyboard.c (read_key_sequence): Fix downcasing of letters with
8967 modifiers.
8968
8969 * regex.c (re_match_2_internal): Correct matching of a charset
8970 against latin-1 characters.
8971
89722008-03-16 Kenichi Handa <handa@m17n.org>
8973
8974 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
8975 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
8976 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
8977 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
8978 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
8979 CHAR_STRING_ADVANCE.
8980 (produce_chars): Fix for the case that the source and the
8981 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
8982 instead of CHAR_STRING_ADVANCE.
8983 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
8984 STRING_CHAR_ADVANCE.
8985
89862008-03-15 Andreas Schwab <schwab@suse.de>
8987
8988 * regex.c (re_match_2_internal): Correct matching of eight bit
8989 characters in unibyte strings.
8990
89912008-03-15 Martin Rudalics <rudalics@gmx.at>
8992
8993 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
8994 at end of range when it coincides with the end of the buffer.
8995
89962008-03-14 Eli Zaretskii <eliz@gnu.org>
8997
8998 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
8999
9000 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
9001
90022008-03-14 Jason Rumney <jasonr@gnu.org>
9003
9004 * editfns.c (initial_tz): New variable.
9005 (syms_of_editfns): Initialize it.
9006 (Fset_time_zone_rule): Set it when first called.
9007 Use it when TZSTRING is nil.
9008
9009 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
9010 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
9011 (monitor_from_point_fn, get_monitor_info_fn): New globals.
9012 (globals_of_w32fns): Initialize them.
9013 (compute_tip_xy): Use them to position tooltips.
9014
90152008-03-14 Glenn Morris <rgm@gnu.org>
9016
9017 * emacs.c (main): Revert previous change.
9018 (standard_args): Revert -internal-script back to -scriptload,
9019 and remove the long-option form.
9020
90212008-03-13 Glenn Morris <rgm@gnu.org>
9022
9023 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
9024 Remove option -enable-font-backend.
9025
90262008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
9027
9028 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
9029
90302008-03-11 Jan Djärv <jan.h.d@swipnet.se>
9031
9032 * xterm.c (x_connection_closed): For GTK: If this is the last
9033 terminal just exit without closing the display.
9034
90352008-03-11 Jason Rumney <jasonr@gnu.org>
9036
9037 * w32font.c (w32font_full_name): Use floor to round.
9038
f0131492 90392008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
9040
9041 * sound.c (alsa_configure): Declare vol at beginning of block.
9042
9043 * fontset.c (Ffontset_info): Remove extra semicolon.
9044
90452008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
9046
9047 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
9048 size of resulting string.
9049
90502008-03-10 Jason Rumney <jasonr@gnu.org>
9051
9052 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
9053
90542008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9055
9056 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
9057 Don't pretend as if characters with display property haven't been
9058 consumed for string-replacing-string case.
9059
90602008-03-08 Kim F. Storm <storm@cua.dk>
9061
9062 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
9063 (get_next_display_element, next_element_from_string)
9064 (next_element_from_ellipsis, next_element_from_buffer): Use it.
9065
90662008-03-08 Andreas Schwab <schwab@suse.de>
9067
9068 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
9069
90702008-03-06 Jason Rumney <jasonr@gnu.org>
9071
9072 * w32font.c (w32_registry): Take font_type argument. Use ANSI
9073 when charset not specified. Only translate ANSI to unicode when
9074 font_type is truetype.
9075 (w32font_coverage_ok): New function.
9076 (add_font_entity_to_list): Use it to filter unsuitable fonts.
9077
90782008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
9079
9080 * lread.c (Fread_char): Resolve modifiers.
9081 (Fread_char_exclusive): Likewise.
9082
9083 * character.c (char_resolve_modifier_mask): New function.
9084 (char_string): Use char_resolve_modifier_mask.
9085 (Fchar_resolve_modifiers): New function.
9086 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
9087 function.
9088
90892008-03-04 Jason Rumney <jasonr@gnu.org>
9090
9091 * makefile.w32-in: Always include w32font.c in the build.
9092 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
9093
90942008-03-04 Andreas Schwab <schwab@suse.de>
9095
9096 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
9097 (versionclean): Likewise.
9098
90992008-03-04 Juanma Barranquero <lekktu@gmail.com>
9100
9101 * .cvsignore: Add oo.
9102
91032008-03-03 Andreas Schwab <schwab@suse.de>
9104
9105 * coding.c (decode_coding_object): Inhibit gap shrinking while
9106 decoding in place.
9107
91082008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
9109
9110 * w32term.c: Remove unused include "gnu.h".
9111 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
9112
9113 * gnu.h: Rename to ...
9114 * emacs-icon.h: ... this.
9115 * xterm.c: Use emacs-icon.h instead of gnu.h.
9116 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
9117
91182008-03-03 Juanma Barranquero <lekktu@gmail.com>
9119
9120 * w32font.c: Include math.h.
9121
91222008-03-03 Jason Rumney <jasonr@gnu.org>
9123
9124 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
9125 Compute options separately.
9126 (w32font_open_internal): Set glyph_idx before caching metrics.
9127
9128 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
9129 Define if system headers don't.
9130 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
9131 (w32font_encode_char): Don't declare here.
9132
9133 * w32font.c (Quniscribe, QCformat): New symbols.
9134 (syms_of_w32font): Define them.
9135 (w32font_has_char): Indicate uncertainty.
9136 (w32font_encode_char): Encode as glyph point. Make static.
9137 (recompute_cached_metrics): New function.
9138 (w32font_open_internal): Use it. Set font to use glyph points
9139 initially. Set format based on type of font.
9140 (w32font_text_extents, w32font_draw): Optionally use glyph points.
9141 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
9142 on it. Set format based on information available here.
9143 (add_font_entity_to_list): Identify backend based on opentype_only.
9144
91452008-03-02 Andreas Schwab <schwab@suse.de>
9146
9147 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
9148
9149 * coding.c (decode_coding_big5, produce_chars):
9150 Fix typos in last change.
9151
91522008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
9153
9154 * gnu.h: New icon.
9155
91562008-03-02 Kenichi Handa <handa@m17n.org>
9157
9158 * coding.c (decode_coding_utf_8): When eol-type of CODING is
9159 `dos', don't decode '\r' if that is the last in the source.
9160 (decode_coding_utf_16, decode_coding_emacs_mule)
9161 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
9162 (decode_coding_raw_text, decode_coding_charset): Likewise.
9163 (produce_chars): Don't decode EOL here. Use EMACS_INT.
9164
91652008-03-01 Jason Rumney <jasonr@gnu.org>
9166
9167 * w32font.c (w32font_full_name): Report point size for scalable fonts.
9168
91692008-03-01 Kim F. Storm <storm@cua.dk>
9170
9171 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
9172
91732008-03-01 Jason Rumney <jasonr@gnu.org>
9174
9175 * w32font.c (w32font_full_name): New function.
9176 (w32font_open_internal): Use it.
9177
91782008-03-01 Kim F. Storm <storm@cua.dk>
9179
9180 * dispnew.c (line_draw_cost): Fix invalid glyph check.
9181
91822008-03-01 Jason Rumney <jasonr@gnu.org>
9183
9184 * font.c (font_unparse_fcname): Increase len when style is a symbol.
9185
91862008-03-01 Jan Djärv <jan.h.d@swipnet.se>
9187
9188 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
9189 xg_frame_resized when the event is for the edit widget.
9190
9191 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
9192
9193 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
9194 set_char_size.
9195 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
9196 operations on widgets here. Just set frame size if needed.
9197 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
9198 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
9199 (x_wm_set_size_hint): Set size hints on the edit widget only, not
9200 the whole frame.
9201 (xg_create_tool_bar): Move attachment of the tool bar to
9202 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
9203 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
9204
92052008-03-01 Jason Rumney <jasonr@gnu.org>
9206
9207 * w32fns.c (w32_msg_pump): Disable debug code.
9208
92092008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9210
9211 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
9212
92132008-02-29 Chong Yidong <cyd@stupidchicken.com>
9214
9215 * xdisp.c (next_overlay_string): Don't set
9216 overlay_strings_at_end_processed_p if we're currently reading from
9217 a display string.
9218
92192008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
9220
9221 * xdisp.c (get_overlay_strings_1): Fix typo.
9222
92232008-02-29 Chong Yidong <cyd@stupidchicken.com>
9224
9225 * xdisp.c (get_overlay_strings_1): Add missing argument type.
9226
92272008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
9228
9229 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
9230
9231 * xdisp.c (display_mode_element): Cancel the previous change.
9232 (decode_mode_spec): Likewise.
9233 (handle_auto_composed_prop): Don't make composition if it->string
9234 is a string.
9235
92362008-02-27 Kim F. Storm <storm@cua.dk>
9237
9238 * lisp.h (GLYPH): Change type from int to struct with separate char
9239 and face_id members.
9240 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
9241 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
9242 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
9243 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
9244 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
9245 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
9246 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
9247 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
9248 handle new Lisp glyph code encoding, either an integer or a cons.
9249
9250 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
9251 (GLYPH_ALIAS): Delete.
9252 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
9253 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
9254 (GLYPH_FROM_CHAR): Replace macro by ...
9255 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
9256
9257 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
9258 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
9259 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
9260 (GLYPH_INVALID_P): New macro.
9261 (spec_glyph_lookup_face): Update prototype.
9262
9263 * dispnew.c (line_draw_cost): Adapt to new glyph type.
9264 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
9265 new glyph code encoding.
9266 (spec_glyph_lookup_face): No return value; update passed glyph instead.
9267 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
9268
9269 * xdisp.c (get_next_display_element, next_element_from_display_vector):
9270 Adapt to new glyph type and new glyph code encoding.
9271
9272 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
9273
9274 * indent.c (current_column, current_column_1, Fmove_to_column)
9275 (compute_motion): Adapt to new glyph code encoding.
9276
9277 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
9278
92792008-02-27 Chong Yidong <cyd@stupidchicken.com>
9280
9281 * process.c (wait_reading_process_output): Check for window
9282 changes caused by timers.
9283 Suggested by Johan Bockgård.
9284
92852008-02-27 Glenn Morris <rgm@gnu.org>
9286
9287 * emacs.c (USAGE1): Add `--disable-font-backend'.
9288
92892008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
9290
9291 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
9292 is made to the buffer.
9293
92942008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
9295
9296 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
9297 (face_at_string_position):
9298 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
9299 (face_at_string_position):
9300 * xdisp.c (display_string, next_overlay_change):
9301 * buffer.h (overlays_at):
9302 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
9303 Update callers.
9304
93052008-02-26 Chong Yidong <cyd@stupidchicken.com>
9306
9307 * editfns.c (Fformat): Doc fix.
9308
93092008-02-26 Juanma Barranquero <lekktu@gmail.com>
9310
9311 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
9312 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
9313 (Ffont_otf_alternates, Fquery_font): Doc fixes.
9314
93152008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
9316
9317 * buffer.c (Fbuffer_swap_text): New function.
9318 (syms_of_buffer): Defsubr it.
9319
93202008-02-25 Chong Yidong <cyd@stupidchicken.com>
9321
9322 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
9323
93242008-02-25 Jason Rumney <jasonr@gnu.org>
9325
9326 * w32font.c (w32font_draw): Draw one character at a time when padding.
9327
93282008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
9329
9330 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
9331 Handle a nil arg. Use run_window_configuration_change_hook.
9332 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
9333 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
9334 Use run_window_configuration_change_hook.
9335
93362008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
9337
9338 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
9339 1-pixel width.
9340
93412008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
9342
9343 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
9344 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
9345 if the glyph in the font is zero pixel with.
9346
9347 * dispextern.h (struct glyph_string): New member padding_p.
9348
9349 * w32font.c (w32font_draw): Pay attention to s->padding_p.
9350
9351 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
9352
9353 * xfont.c (xfont_draw): Pay attention to s->padding_p.
9354
9355 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
9356
9357 * font.c: If the font driver doesn't have `shape' function, return Qnil.
9358
93592008-02-25 Jason Rumney <jasonr@gnu.org>
9360
9361 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
9362
93632008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
9364
9365 Allow fine-grained image-cache flushing.
9366 * dispextern.h (struct image): Add `dependencies' field.
9367 (clear_image_caches): Change arg to Lisp_Object.
9368 * image.c (make_image): Initialize `dependencies' field.
9369 (clear_image_cache): Change arg to allow fine-grained flushing.
9370 Perform the flush even if image-cache-eviction-delay is nil.
9371 (clear_image_caches): Change arg to Lisp_Object.
9372 (Fclear_image_cache): Expand meaning of the argument.
9373 (mark_image): Mark `dependencies' field.
9374 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
9375 (lface_hash): Use XHASH rather than XFASTINT.
9376 (face_at_buffer_position): Fix int -> EMACS_INT position.
9377 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
9378 (select_frame_for_redisplay): Remove code duplication.
9379 (redisplay_internal): Adapt arg to call to clear_image_caches.
9380
93812008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
9382
9383 * s/vms4-0.h:
9384 * s/vms4-2.h:
9385 * s/vms4-4.h:
9386 * s/vms5-5.h: Remove, unused.
9387
9388 * s/irix5-2.h:
9389 * s/irix6-0.h:
9390 * s/riscos5.h:
9391 * s/mach-bsd4-3.h:
9392 * m/mips4.h: Remove files for obsolete systems.
9393
9394 * Makefile.in:
9395 * filelock.c:
9396 * unexmips.c:
9397 * m/hp9000s300.h:
9398 * m/iris4d.h:
9399 * s/aix3-1.h:
9400 * s/hpux.h:
9401 * s/msdos.h:
9402 * s/usg5-0.h:
9403 * s/usg5-2-2.h:
9404 * s/usg5-2.h:
9405 * s/usg5-3.h: Remove references to obsolete variables.
9406
9407 * s/irix5-0.h: Remove, move all the contents ...
9408 * s/irix6-5.h: ... here. Simplify.
9409 * config.in: Regenerate.
9410
94112008-02-24 Jason Rumney <jasonr@gnu.org>
9412
9413 * w32term.c (x_draw_glyph_string_background): Clear the background
9414 manually when cleartype is in use.
9415 (x_draw_glyph_string_foreground): Draw text transparently when
9416 cleartype is in use.
9417
9418 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
9419 a font into it unless we have to.
9420
94212008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
9422
9423 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
9424 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 9425
aac0c6e3
MR
94262008-02-18 Jason Rumney <jasonr@gnu.org>
9427
9428 * w32fns.c (Fw32_shell_execute): Encode parameters.
9429
94302008-02-09 Eli Zaretskii <eliz@gnu.org>
9431
9432 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
9433
94342008-02-05 Juanma Barranquero <lekktu@gmail.com>
9435
9436 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
9437
94382008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
9439
9440 * xterm.c (x_set_offset): Don't change the gravity if
9441 CHANGE_GRAVITY is -1.
9442
94432008-02-23 Chong Yidong <cyd@stupidchicken.com>
9444
9445 * fileio.c (auto_save_error_occurred): New var.
9446 (auto_save_error): Set it.
9447 (Fdo_auto_save): Don't overwrite the error message if an auto-save
9448 error occurred.
9449
94502008-02-23 Eli Zaretskii <eliz@gnu.org>
9451
9452 * w32.c (globals_of_w32): Add initializations for
9453 g_b_init_get_sid_sub_authority and
9454 g_b_init_get_sid_sub_authority_count.
9455
94562008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
9457
9458 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
9459 (font_parse_xlfd): Use them for sanity check.
9460 (Finternal_set_font_style_table): Make sure the table is bijective.
9461
9462 Consolidate the image_cache to the terminal struct.
9463 * termhooks.h (P_): Remove redundant def.
9464 (struct terminal): New field `image_cache'.
9465 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
9466 of FRAME_X_IMAGE_CACHE.
9467 * xterm.h (struct x_display_info): Remove image_cache field.
9468 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
9469 * w32term.h (struct w32_display_info): Remove image_cache field.
9470 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
9471 * macterm.h (struct mac_display_info): Remove image_cache field.
9472 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
9473 * xterm.c (x_term_init):
9474 * w32term.c (w32_term_init):
9475 * macterm.c (mac_term_init): Set the image_cache in the terminal.
9476 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
9477 Remove declarations.
9478 (clear_image_caches, mark_image_cache): New declarations.
9479 * xfaces.c (clear_face_cache):
9480 * xdisp.c (redisplay_internal): Use clear_image_caches.
9481 * image.c (clear_image_cache): Don't check that a frame is on
9482 a window-system before checking if it shares the same cache.
9483 (clear_image_caches): New function.
9484 (Fclear_image_cache): Use it.
9485 (mark_image): Move from allo.c.
9486 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
9487 * alloc.c (mark_image, mark_image_cache): Move to image.c.
9488 (mark_object): Don't call mark_image_cache for frames.
9489 (mark_terminals): Call mark_image_cache.
9490
9491 * lisp.h (Fdelete_terminal): Declare.
9492
9493 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
9494 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
9495 wrong_type_argument.
9496
94972008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
9498
9499 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
9500 malayalam.el, and tamil.el. Add sinhala.el.
9501
95022008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
9503
9504 * xterm.c (x_connection_closed): Consolidate identical tests.
9505 (x_delete_terminal): Don't crash if called via x_connection_closed.
9506
95072008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
9508
9509 * xdisp.c (decode_mode_spec): New arg string.
9510 (display_mode_element): Adjust for the above change.
9511
95122008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
9513
9514 * callint.c (Fcall_interactively): Use AREF.
9515
95162008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
9517
9518 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
9519
95202008-02-18 Jan Djärv <jan.h.d@swipnet.se>
9521
9522 * xfns.c (Fx_show_tip): Set string to " " if empty.
9523
95242008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
9525
9526 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
9527 with Qt.
9528
95292008-02-17 Kenichi Handa <handa@m17n.org>
9530
9531 * ftfont.c (ftfont_shape): Return Lispy number.
9532
9533 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
9534 for GCs.
9535 (Finternal_set_font_selection_order): Call font_update_sort_order
9536 only when enable_font_backend is set.
9537 (realize_x_face): Set face->font_info to that of default face only
9538 when enable_font_backend is set.
9539
9540 * xdisp.c (handle_composition_prop): Set it->c to the fist
9541 character of the composed region.
9542 (fill_composite_glyph_string): Set base_face->font_info to
9543 s->font_info. Get a face for ascii from base_face->ascii_face.
9544 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
9545 with a face already decided.
9546 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
9547 non-negative.
9548 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
9549 call font_prepare_composition unconditionally.
9550
9551 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
9552
9553 * xterm.h (struct x_display_info): New member font.
9554
9555 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
9556 (x_set_mouse_face_gc, x_new_font): Likewise.
9557 (x_term_init): Setup display_info->font.
9558 (x_delete_terminal): Free display_info->font.
9559
9560 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
9561
9562 * ftxfont.c (ftxfont_default_fid): Delete it.
9563 (ftxfont_open): Set xfont->fid to 0.
9564 (ftxfont_end_for_frame): Clear data specific to the frame and the
9565 font-driver.
9566
9567 * xftfont.c (xftfont_default_fid): Delete it.
9568 (xftfont_open): Set xfont->fid to 0.
9569
9570 * fontset.c (FONTSET_OBJLIST): New macro.
9571 (fontset_find_font): Update font-object list of the fontset.
9572 (free_realized_fontset): New function.
9573 (free_face_fontset): Call free_realized_fontset.
9574 (Ffont_info): Call font_close_object only when enable_font_backend
9575 is set.
9576
9577 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
9578 [HAVE_NTGUI]: Include w32term.h.
9579 [MAC_OS]: Include macterm.ch.
9580 (font_otf_ValueRecord): Use make_number.
9581 (font_finish_cache): Fix handling of reference count.
9582 (font_clear_cache): Update num_fonts.
9583 (font_open_entity): Update smallest_char_width and
9584 smallest_font_height of the frame.
9585 (font_close_object): Update num_fonts.
9586 (Fclear_font_cache): Fix finding the target cache data.
9587
95882008-02-16 Glenn Morris <rgm@gnu.org>
9589
9590 * fontset.c (Finternal_char_font): Fix compilation warning.
9591
95922008-02-16 Eli Zaretskii <eliz@gnu.org>
9593
9594 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
9595 instead of char arrays. Enlarge the size of array passed to
9596 get_token_information.
9597
9598 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
9599 warnings.
9600
96012008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
9602
9603 * .gdbinit: Don't set `args', it breaks gdb --args.
9604
96052008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
9606
9607 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
9608 within a narrowed buffer.
9609
96102008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
9611
9612 * coding.c (decode_coding_object, encode_coding_object):
9613 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
9614
96152008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
9616
9617 * coding.c (coding_set_destination): Use BEG_BYTE rather than
9618 hardcoding 1.
9619 (detect_coding_system):
9620 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
9621 (string_char_to_byte, string_byte_to_char, insert_from_gap):
9622 * insdel.c (insert_from_gap):
9623 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
9624 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
9625 (string_to_multibyte):
9626 * character.c (chars_in_text, multibyte_chars_in_text):
9627 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
9628
9629 * character.h (FETCH_STRING_CHAR_ADVANCE)
9630 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
9631 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
9632 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
9633
9634 * casefiddle.c (casify_region): Only call after-change and composition
9635 functions on the part of the region that was changed.
9636
9637 * keyboard.c (read_avail_input):
9638 * frame.c (Fdelete_frame): Call Fdelete_terminal.
9639
96402008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
9641
9642 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
9643 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
9644
96452008-02-11 Juanma Barranquero <lekktu@gmail.com>
9646
9647 * w32menu.c (push_submenu_start, push_submenu_end)
9648 (push_left_right_boundary, push_menu_pane, push_menu_item):
9649 * keyboard.c (read_key_sequence): Don't pass args with side effects
9650 to AREF, it fails when compiling with -DENABLE_CHECKING.
9651
96522008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
9653
9654 * Makefile.in (${lispsource}international/charprop.el):
9655 Delete this target.
9656
9657 * search.c (boyer_moore): Fix incorrect synching of the trunk and
9658 emacs-unicode-2.
9659
96602008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
9661
9662 * terminal.c (Fdelete_terminal): Clean up the `force' path.
9663
96642008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
9665
9666 * frame.c (Qnoelisp): New symbol.
9667 (syms_of_frame): Initialize it.
9668 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
9669 harmless Elisp code, from a strong `force' from x_connection_closed.
9670 * frame.h (Qnoelisp): Declare.
9671 * xterm.c (x_connection_closed): Pass `noelisp'.
9672
9673 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
9674 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
9675 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
9676 rather than `int' for the type of `type'.
9677
96782008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
9679
9680 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
9681
9682 * Makefile.in (GNUC): Remove support for gcc-1.x.
9683
96842008-02-10 Richard Stallman <rms@gnu.org>
9685
9686 * lisp.h (ASET): Use AREF, not ASLOT.
9687
96882008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
9689
9690 * lisp.h (ASET): Check bounds.
9691
96922008-02-10 Glenn Morris <rgm@gnu.org>
9693
9694 * buffer.c (mode-name): Doc fix.
9695
96962008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
9697
9698 * Makefile.in:
9699 * emacs.c:
9700 * gmalloc.c:
9701 * keyboard.c:
9702 * lisp.h:
9703 * m/ibm370aix.h:
9704 * process.c:
9705 * regex.c:
9706 * s/hpux.h:
9707 * sysdep.c:
9708 * sysselect.h:
9709 * systty.h:
9710 * unexec.c:
9711 * w32term.c:
9712 * xsmfns.c:
9713 * xterm.c: Remove code that deals with obsolete variables.
9714
9715 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
9716
9717 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
9718 nothing else needs it anymore.
9719
97202008-02-09 Eli Zaretskii <eliz@gnu.org>
9721
9722 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
9723 instead of unibyte_char_to_multibyte.
9724
97252008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
9726
9727 * s/gnu-linux.h: Remove commented out code.
9728
9729 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
9730
9731 * Makefile.in: Update what RMS says about using autoconf.
9732 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
9733 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
9734 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
9735 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
9736
97372008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
9738
9739 * keymap.c (Fkey_description): Move side effect outside of macro call.
9740
9741 * xfaces.c (Finternal_make_lisp_face):
9742 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
9743
9744 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
9745 (syms_of_fontset): Use ASET.
9746
9747 * fns.c (concat): Move side effect outside of macro call.
9748 (hash_clear): Use ASET.
9749
97502008-02-08 Richard Stallman <rms@gnu.org>
9751
9752 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
9753 If FORCE, and frame has a surrogate minibuffer for another frame,
9754 delete the other frame first.
9755
97562008-02-07 Timo Savola <timo.savola@iki.fi>
9757
9758 * xterm.c (x_detect_focus_change): Handle embed client message.
9759 (handle_one_xevent): Ditto.
9760 (handle_one_xevent): If embedded and we get a button press/release,
9761 request focus.
9762 (xembed_set_info, xembed_send_message): New functions.
9763 (x_make_frame_visible): Call xembed_set_info if embedded.
9764 (x_make_frame_invisible): Call xembed_set_info if embedded.
9765 (x_term_init): Initialize Xatom_XEMBED.
9766 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
9767 (x_iconify_frame): Ditto.
9768
9769 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
9770 (enum xembed_info, enum xembed_message, enum xembed_focus)
9771 (enum xembed_modifier, enum xembed_accelerator): New.
9772 (xembed_set_info, xembed_send_message): Declare.
9773 (FRAME_X_EMBEDDED_P): New.
9774
9775 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
9776 gtk_plug_new.
9777
9778 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
9779 window ID of a frame.
9780 (x_window): Reparent frame if embedded.
9781 (Fx_create_frame): Don't set border width if embedded.
9782
9783 * emacs.c (USAGE3): Add --parent-id.
9784 (standard_args): Ditto.
9785
97862008-02-07 Jan Djärv <jan.h.d@swipnet.se>
9787
9788 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
9789
97902008-02-07 Jim Meyering <meyering@redhat.com>
9791
9792 Use "do...while (0)", not "if (1)...else" in macro definitions.
9793 The latter provokes a warning from gcc about the empty else, when
9794 followed by ";". Also, without that trailing semicolon, it would
9795 silently swallow up any following statement.
9796 * syntax.h (SETUP_SYNTAX_TABLE)
9797 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
9798 * buffer.h (DECODE_POSITION): Likewise.
9799 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
9800 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
9801 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
9802 (FETCH_CHAR_ADVANCE): Likewise.
9803 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
9804
98052008-02-07 Jim Meyering <meyering@redhat.com>
9806
9807 * lread.c [lint]: Don't include <sys/inode.h>.
9808
98092008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
9810
9811 * xselect.c (x_handle_dnd_message):
9812 * xmenu.c (digest_single_submenu, xmenu_show):
9813 * xdisp.c (with_echo_area_buffer_unwind_data)
9814 (format_mode_line_unwind_data, unwind_format_mode_line)
9815 (display_menu_bar):
9816 * eval.c (Ffetch_bytecode):
9817 * doc.c (store_function_docstring):
9818 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
9819 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
9820 * buffer.c (add_overlay_mod_hooklist): Use ASET.
9821
98222008-02-07 Kenichi Handa <handa@m17n.org>
9823
9824 * ftxfont.c (ftxfont_open): Don't set
9825 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
9826
9827 * ftfont.c (ftfont_open): Fix previous change.
9828
98292008-02-06 Jason Rumney <jasonr@gnu.org>
9830
9831 * w32font.c (w32font_text_extents): Fill in lbearing metric.
9832 Use cached metrics for ASCII characters.
9833 (w32font_open_internal): Don't set font's owning_frame.
9834 Cache metrics for ASCII characters.
9835
9836 * w32font.h (struct w32font_info): Add ascii_metrics.
9837 Remove owning_frame.
9838
98392008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
9840
9841 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
9842 to negative value.
9843
9844 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
9845
9846 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
9847
9848 * charset.c (syms_of_charset): Set QCtest and Qeq.
9849
98502008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
9851
9852 * process.c (Fstart_process):
9853 * callproc.c (Fcall_process): Handle the case where
9854 Funhandled_file_name_directory returns nil.
9855
9856 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
9857 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
9858 * font.c (check_gstring): Use them and AREF to access the vector before
9859 we know it's really a gstring.
9860 (Ffont_shape_text): Fix typo.
46e722a9 9861 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
9862
9863 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
9864 Declare.
9865
9866 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
9867
98682008-02-05 Jason Rumney <jasonr@gnu.org>
9869
9870 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
9871 Set smallest_font_height and smallest_char_width in display info.
9872
98732008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
9874
9875 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
9876
98772008-02-05 Miles Bader <miles@gnu.org>
9878
9879 * xfaces.c (get_lface_attributes, merge_named_face)
9880 (lookup_named_face, lookup_derived_face, realize_named_face):
9881 Revert 2008-02-01 change by cyd@stupidchicken.com.
9882
98832008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
9884
9885 * fontset.c (Ffontset_info): Handle the case of inhibitting the
9886 fallback fonts.
9887 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
9888
98892008-02-04 Jason Rumney <jasonr@gnu.org>
9890
9891 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
9892 set full_name.
9893 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
9894
98952008-02-03 Jason Rumney <jasonr@gnu.org>
9896
9897 * makefile.w32-in (OBJ1): Include font.o here.
9898 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
9899
99002008-02-02 Jason Rumney <jasonr@gnu.org>
9901
9902 * makefile.w32-in (temacs): Bump EMHEAP to 21.
9903
99042008-02-01 Jason Rumney <jasonr@gnu.org>
9905
9906 * s/cygwin.h: Define VIRT_ADDR_VARIES.
9907
9908 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
9909
99102008-02-01 Andreas Schwab <schwab@suse.de>
9911
9912 * Makefile.in (shortlisp, lisp): Update for rename of
9913 ../lisp/language/myanmar.el.
9914
99152008-02-01 Chong Yidong <cyd@stupidchicken.com>
9916
9917 * xfaces.c (get_lface_attributes): Delete function.
9918 (merge_named_face, lookup_named_face, lookup_derived_face)
9919 (realize_named_face): Call lface_from_face_name directly, and use
9920 the fact that merge_face_vectors does not alter its FROM argument.
9921
99222008-02-01 Jason Rumney <jasonr@gnu.org>
9923
9924 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
9925 input in the default locale. Handle non-Unicode multibyte input.
9926
99272008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9928
9929 * fontset.c (reorder_font_vector): Exclude nil elements from the
9930 font group. Don't try multiple fonts.
9931 (fontset_font): Adjust for the above change.
9932 (Finternal_char_font): Return nil if the found font doesn't
9933 contain the character ch.
9934
9935 * Makefile.in (lisp, shortlisp): Add cham.el.
9936
99372008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9938
9939 * font.h (FONTP): Make it return 1 also for a font-object.
9940
9941 * .gdbinit (xfontset): New function.
9942
9943 * font.c (font_find_for_lface): Check if the character C is
9944 supported or not only for the first font.
9945
9946 * fontset.c (reorder_font_vector): Fix typo.
9947 (fontset_find_font): Don't add a font-spec specifying a script.
9948 Use 0 (not Qt) for the indication of empty font-group. Change the
9949 format of RFONT-DEF. Return Qt if no font in the font-group
9950 support the character.
9951 (fontset_font): Adjust for the above change. If no font was
9952 found the character, remember that.
9953 (face_for_char): Adjust for the change of RFONT-DEF.
9954 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
9955 no font for the target.
9956 (Finternal_char_font): Adjust for the change of RFONT-DEF.
9957
99582008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9959
9960 * font.c (font_load_for_face): Handle the case that the font in
9961 face->lface is a string.
9962
99632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9964
9965 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
9966
99672008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9968
9969 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
9970 Fix previous change. If the frame is not on a window system,
9971 signal an error.
9972
99732008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9974
9975 * coding.c (decode_coding_object, encode_coding_object): Adjust
9976 marker positions after conversion.
9977
9978 * lisp.h (struct Lisp_Marker): New member need_adjustment.
9979
99802008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9981
9982 * font.c (font_find_for_lface): Fix the handling of the return
9983 value of font_has_char.
9984 (Ffont_shape_text): Fix previous change.
9985
9986 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
9987 (fontset_ref_and_range): Delete it.
9988 (fontset_find_font): Call char_table_ref_and_range instead of
9989 FONTSET_REF_AND_RANGE.
9990 (make_fontset): Don't setup font groups of Latin here.
9991 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
9992 (new_fontset_from_font): Make the specified font the default for
9993 all Latin characters.
9994
99952008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9996
9997 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
9998 is on a window system before accessing the fontset of the frame.
9999
100002008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10001
10002 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
10003
10004 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
10005 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
10006
10007 * font.c (Ffont_shape_text): If the font driver doesn't have a
10008 shaper function, make zero-width glyphs to have at least one-pixel
10009 width. Fix setting of `to' field of glyphs.
10010
100112008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10012
10013 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
10014 glyphs.
10015
10016 * font.h (struct font_driver): Improve docstring of member `shape'.
10017
100182008-02-01 Kenichi Handa <handa@m17n.org>
10019
10020 * composite.c (syms_of_composite): Fix docstring of
10021 auto-composition-function.
10022
10023 * font.h (LGLYPH_SIZE): New macro.
10024
10025 * font.c (Ffont_fill_gstring): Stop filling when a character not
10026 supported by the font is found.
10027 (Ffont_shape_text): When a shape callback function returns nil,
10028 try at most two more times with larger gstring.
10029 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
10030
10031 * xdisp.c (handle_auto_composed_prop): Change the argument to
10032 auto-composition-function.
10033
10034 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
10035 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
10036 Lispy glyph and store it in the lgstring.
10037
10038 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
10039
10040 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
10041
100422008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10043
10044 * font.c (Ffont_shape_text): Avoid unnecessary composition.
10045
10046 * fontset.c (Vfont_encoding_charset_alist): New variable.
10047 (syms_of_fontset): DEFVAR it.
10048 (reorder_font_vector, fontset_find_font): Optimize for the case of
10049 no need of reordering.
10050 (face_for_char): Map the charset property by
10051 Vfont_encoding_charset_alist.
10052
100532008-02-01 Jason Rumney <jasonr@gnu.org>
10054
10055 * w32font.c (logfonts_match): Don't check adstyle here.
10056 (font_matches_spec): Check here against physical font instead.
10057 (add_font_entity_to_list): Avoid some substitutions.
10058
10059 * font.c (font_parse_fcname): Default weight and slant to normal.
10060 (font_score): Prefer normal fonts if weight or slant unspecified.
10061 (font_score) [WINDOWSNT]: Scale weight difference down to closer
10062 match freetype scores.
10063
100642008-02-01 Jason Rumney <jasonr@gnu.org>
10065
10066 * w32font.c (w32font_text_extents): Don't use the frame stored in the
10067 font, as it may have been deleted.
10068 (w32_enumfont_pattern_entity): Map generic family to adstyle using
10069 most common hyphenless variation.
10070 (logfonts_match): Check generic family.
10071 (font_matches_spec): Don't check generic family here.
10072 (fill_in_logfont): Set generic family based on adstyle.
10073
10074 * w32font.h (w32font_get_cache): Update declaration.
10075
100762008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10077
10078 * ftfont.c (ftfont_get_cache): Adjust the argument type.
10079
10080 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
10081 If none of the new drivers are available, call font_update_drivers
10082 with the old drivers.
10083
10084 * w32font.c (w32font_get_cache): Adjust the argument type.
10085
10086 * xfont.c (xfont_get_cache): Adjust the argument type.
10087
10088 * font.h (struct font_driver): Change argument type of get_cache.
10089
10090 * xftfont.c (xftfont_start_for_frame): Delete prototype.
10091
10092 * font.c (Ffont_get): Fix arguments to Fassoc.
10093 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
10094 (font_clear_cache): New function.
10095 (font_list_entities, font_matching_entity): Use font_get_cache.
10096 (font_update_drivers): Call font_clear_cache when finishing a driver.
10097
10098 * fontset.c (fontset_find_font): Fix previous change.
10099
101002008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10101
10102 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
10103 dpyinfo->font_table.
10104 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
10105 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
10106
10107 * font.c (font_at): Handle the case that the arg C is negative.
10108 Handle the unibyte case.
10109 (Ffont_at): Call font_at with the arg C -1.
10110
10111 * xdisp.c (handle_auto_composed_prop): Don't get a character at
10112 the position here, and call font_at with the arg C -1.
10113 Don't check the range of the existing composition at the point.
10114
101152008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10116
10117 * fontset.c (fontset_add): New args charset_id and family.
10118 Change caller.
10119 (load_font_get_repertory, fontset_find_font): Assume that
10120 font_spec is always a font-spec object.
10121 (Fset_fontset_font): Always store a font-spec object in a fontset.
10122
10123 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
10124 instead of get_property_and_range.
10125
101262008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10127
10128 * xftfont.c (struct xftfont_info): Delete the member ft_face.
10129 (xftfont_open): Don't keep locking face.
10130 (xftfont_close): Don't unlock face.
10131 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
10132
10133 * fontset.c (fontset_find_font): Don't prefer a font of
10134 supplementary charset.
10135
101362008-02-01 Kenichi Handa <handa@m17n.org>
10137
10138 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
10139 script, langsys_tag to langsys, new member script.
10140 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 10141 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
10142 listing to the script specified in that property. Fix arg to
10143 OTF_check_features.
10144
101452008-02-01 Jason Rumney <jasonr@gnu.org>
10146
10147 * w32font.h: New file.
10148
10149 * w32font.c: Include it.
10150 (struct w32font_info): Add owning_frame field. Move to w32font.h.
10151 (w32font_open): Set owning_frame.
10152 (w32font_text_extents): Use owning_frame.
10153 (struct font_callback_data): Add opentype_only field.
10154 (add_font_entity_to_list): Use it to filter fonts.
10155 Don't check against full name.
10156 (w32font_list_internal): New function.
10157 (w32font_list): Use it.
10158 (w32font_match_internal): New function.
10159 (w32font_match): Use it.
10160 (w32font_open_internal): New function.
10161 (w32font_open): Use it.
10162 (w32font_get_cache, w32font_close, w32font_has_char)
10163 (w32font_encode_char, w32font_text_extents, w32font_draw):
10164 Make non-static.
10165
10166 * makefile.w32-in (w32font.o): Depend on w32font.h.
10167
101682008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10169
10170 * charset.c (Fdefine_charset_internal): Record a supplementary
10171 charset at the tail of Vcharset_order_list.
10172
10173 * font.c (Ffont_shape_text): Fix the return value.
10174
10175 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
10176
10177 * xdisp.c (handle_auto_composed_prop): Fix previous change.
10178
101792008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10180
10181 * ftfont.c (struct OpenTypeSpec): New struct.
10182 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
10183 (ftfont_get_open_type_spec): New function.
10184 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
10185
10186 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
10187
101882008-02-01 Jason Rumney <jasonr@gnu.org>
10189
10190 * w32font.c (add_font_entity_to_list): Compare only the beginning
10191 of full name.
10192
101932008-02-01 Kenichi Handa <handa@m17n.org>
10194
10195 * xdisp.c (handle_auto_composed_prop): Simplify the code.
10196 Never return HANDLED_RECOMPUTE_PROPS.
10197
101982008-02-01 Kenichi Handa <handa@m17n.org>
10199
10200 * font.c (font_gstring_produce): Delete it.
10201
10202 * composite.h (COMPOSITION_METHOD):
10203 Handle COMPOSITION_WITH_GLYPH_STRING.
10204
102052008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10206
10207 * xfont.c (Qx): Delete.
10208 (syms_of_xfont): Don't initialize Qx.
10209
10210 * composite.h (enum composition_method):
10211 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
10212
102132008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10214
10215 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
10216 (choose_face_font): Accept new form of font-spec.
10217
10218 * frame.h (font_driver_list): Declare it unconditionally.
10219 (struct frame): Define members font_driver_list and font_data_list
10220 unconditionally.
10221
10222 * fontset.c: Include "font.h" unconditionally.
10223 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
10224 (Fset_fontset_font): Accept a font-spec object.
10225
10226 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
10227 PIXEL_SIZE part a wild card.
10228
10229 * dispextern.h (struct glyph_string): Define members clip and
10230 num_clips unconditionally.
10231 (struct face): Define members font_info and extra unconditionally.
10232
10233 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
10234 ftfont_info only when HAVE_LIBOTF is defined.
10235
102362008-02-01 Andreas Schwab <schwab@suse.de>
10237
10238 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
10239 and end.
10240
102412008-02-01 Jason Rumney <jasonr@gnu.org>
10242
10243 * w32font.c (w32font_driver): Add new fields.
10244
102452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10246
10247 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
10248 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
10249 (LIBES): Add @M17N_FLT_CFLAGS@.
10250
10251 * composite.c (compose_text): Don't treat the new style
10252 composition specially.
10253
10254 * emacs.c (main): Call syms_of_font unconditionally.
10255
10256 * font.h (FONT_ENTITY_NOT_LOADABLE)
10257 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
10258 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
10259 (struct font_driver): New member shape.
10260 (font_registry_charsets): Extern it.
10261 (font_find_for_lface, font_prepare_composition): Adjust prototype.
10262 (font_otf_capability, font_drive_otf): Delete their externs.
10263
10264 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
10265 (font_charset_alist, font_registry_charsets): Move from xfont.c
10266 and rename.
10267 (font_prop_validate_otf): New function.
10268 (font_property_table): Register it for QCotf.
10269 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
10270 (font_drive_otf): Delete.
10271 (font_prepare_composition): New arg F. Adjust for the change of
10272 lispy gstring.
10273 (font_find_for_lface): New arg C.
10274 (font_load_for_face): Adjust for the change of font_find_for_lface.
10275 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
10276 lispy gstring.
10277 (Ffont_shape_text): New function.
10278 (Fopen_font): If the font size is not given, use 12-pixel.
10279 (Ffont_at): New arg STRING.
10280 (syms_of_font): Initalize font_charset_alist.
10281 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
10282 conditionally.
10283
10284 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
10285 fonts of the same font-spec. Change the format of RFONT-DEF.
10286 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
10287 Adjust for the change of RFONT-DEF.
10288 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
10289
10290 * ftfont.h: New file.
10291
10292 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
10293 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
10294 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
10295 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
10296 font_otf_capability and font_drive_otf, set ftfont_shape.
10297 (ftfont_list): Adjust for the change of :otf property value.
10298 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
10299 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
10300 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
10301 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
10302 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
10303 (otf_gstring, gstring, m17n_flt_initialized): New variables.
10304
10305 * w32term.c (x_draw_composite_glyph_string_foreground):
10306 Adjust for the change of lispy gstring.
10307
10308 * xdisp.c (handle_composition_prop): Adjust for the change of
10309 lispy gstring. Call a function for auto-composition with the
10310 third arg it->window.
10311 (fill_composite_glyph_string): Adjust for the change of lispy string.
10312 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
10313
10314 * xfaces.c (set_font_frame_param): Adjust for the change of
10315 font_find_for_lface.
10316
10317 * xfont.c (x_font_charset_alist): Move to font.c and rename.
10318 (xfont_registry_charsets): Likewise. Change caller.
10319 (syms_of_xfont): Don't handle x_font_charset_alist.
10320
10321 * xftfont.c: Include "ftfont.h".
10322 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
10323 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
10324 (xftfont_close) [HAVE_LIBOTF]: Close otf.
10325 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
10326 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
10327 Set xftfont_driver.shape to xftfont_shape.
10328
10329 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
10330 the change of lispy gstring.
10331
103322008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10333
10334 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
10335
103362008-02-01 Jason Rumney <jasonr@gnu.org>
10337
10338 * w32font.c (w32font_draw): Fill background manually.
10339
103402008-02-01 Jason Rumney <jasonr@gnu.org>
10341
10342 * font.c (Qfontp): Remove unused symbol.
10343 (QCantialias): New symbol.
10344 (syms_of_font): Define it.
10345 (font_property_table): Set a validator for QCantialias.
10346
10347 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
10348 Define if not already.
10349 (QCfamily): Share with xfaces.c.
10350 (Qstandard, Qsubpixel, Qnatural): New symbols.
10351 (syms_of_w32font): Define them. Don't define QCfamily here.
10352 (w32_antialias_type, lispy_antialias_type): New functions.
10353 (w32_enumfont_pattern_entity): New arg requested_font.
10354 Set antialias parameter if non-default was requested.
10355 (fill_in_logfont): Fill in lfQuality if :antialias specified.
10356
103572008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10358
10359 * lread.c (read1): Undo the previous change.
10360
103612008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
10362
10363 * frame.c (Fdelete_frame): Call font_update_drivers only when
10364 USE_FONT_BACKEND is defined.
10365
103662008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10367
10368 * font.h (struct font_bitmap): New member bits_per_pixel.
10369 (struct font_driver): New members start_for_frame and end_for_frame.
10370 (struct font_data_list): New struct.
10371 (font_put_frame_data, font_get_frame_data): Extern them.
10372
10373 * frame.h (struct frame): New member font_data_list.
10374
10375 * font.c (font_update_drivers): Call driver->start_for_frame and
10376 driver->end_for_frame at proper timings.
10377 (font_put_frame_data, font_get_frame_data): New functions.
10378 (Ffont_spec): Add usage in the docstring.
10379
10380 * frame.c (make_frame): Initialize f->font_data_list to NULL.
10381 (Fdelete_frame): Call font_update_drivers.
10382
10383 * xftfont.c (struct xftface_info): Delete the member xft_draw.
10384 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
10385 (xftfont_get_xft_draw): New function.
10386 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
10387 (xftfont_end_for_frame): New function.
10388 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
10389
10390 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
10391 Change argument. Cache GCs in the per-frame data.
10392 (struct ftxfont_frame_data): New struct.
10393 (ftxfont_draw_bitmap): New arg gc_fore and flush.
10394 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
10395 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
10396 (ftxfont_end_for_frame): New function.
10397 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
10398
10399 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
10400
104012008-02-01 Kenichi Handa <handa@m17n.org>
10402
10403 * xselect.c (Vselection_coding_system)
10404 (Vnext_selection_coding_system): Delete them.
10405 (syms_of_xselect): Don't declare selection-coding-system and
10406 next-selection-coding-system. They are declared in select.el.
10407
104082008-02-01 Jason Rumney <jasonr@gnu.org>
10409
10410 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
10411
10412 * w32fns.c: Include imm.h.
10413 (get_composition_string_fn, get_ime_context_fn): New optional
10414 system functions.
10415 (globals_of_w32fns): Load them from imm32.dll.
10416 (ignore_ime_char): New flag.
10417 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
10418 WM_IME_ENDCOMPOSITION messages.
10419
10420 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
10421 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
10422
104232008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10424
10425 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
10426 (READCHAR_REPORT_MULTIBYTE): New macro.
10427 (readchar): New 2nd arg MULTIBYTE.
10428 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
10429 Make symbol's name multibyte according to the multibyteness of the
10430 source.
10431
104322008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10433
10434 * xfaces.c (face_for_overlay_string): Call lookup_face with
10435 correct arguments (fix of synching with the trunk).
10436
104372008-02-01 Kenichi Handa <handa@m17n.org>
10438
10439 * font.c (font_prop_validate_symbol, font_prop_validate_style)
10440 (font_prop_validate_non_neg, font_prop_validate_spacing):
10441 Delete argument prop_index.
10442 (font_property_table): Change arguments to validater. Change Callers.
10443 (font_lispy_object): Delete.
10444 (font_at): Use font_find_object instead fo font_lispy_object.
10445
104462008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10447
10448 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
10449 and file names.
10450
104512008-02-01 Jason Rumney <jasonr@gnu.org>
10452
10453 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
10454 (font_matches_spec): Remove debug output.
10455 (add_font_entity_to_list): Avoid using substituted fonts.
10456
104572008-02-01 Jason Rumney <jasonr@gnu.org>
10458
10459 * doc.c (Fsnarf_documentation):
10460 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
10461
104622008-02-01 Miles Bader <miles@gnu.org>
10463
10464 * dispextern.h (struct glyph_row): Only define "clip" field if
10465 HAVE_WINDOW_SYSTEM is defined.
10466
104672008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
10468
10469 Fix up multi-tty merge.
10470
10471 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
10472 and indentation.
10473
10474 * xfaces.c (free_realized_face, clear_face_gcs):
10475 Include font_done_for_face in the input_blocked section, just in case.
10476
10477 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
10478 (get_char_face_and_encoding): Undo last change and remove the *other*
10479 duplicate definition (i.e. keep the one that's better scoped and that
10480 includes code for the font-backend).
10481
10482 * terminal.c (create_terminal): Default keyboard_coding to
10483 `no-conversion' and terminal_coding to `undecided'.
10484
10485 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
10486
10487 * fontset.c (free_realized_fontsets): Check that the table entry does
10488 contain a fontset before trying to compare it to `base'.
10489
10490 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
10491 syms_of_charset, and syms_of_coding earlier because init_window_once
10492 now needs Vcoding_system_hash_table to be setup.
10493
10494 * coding.h (default_buffer_file_coding): Remove.
10495
10496 * coding.c (default_buffer_file_coding): Remove.
10497 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
10498 than ->symbol, and use the terminal-local coding system.
10499 (syms_of_coding): Don't setup the coding-systems that are not
10500 terminal-local.
10501 (Fdefine_coding_system_internal): Use XCAR/XCDR.
10502
10503 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
10504 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
10505
10506 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
10507 in chartab.c and were re-added here by mistake.
10508 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
10509
10510 * doc.c (Fsnarf_documentation):
10511 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
10512 src to etc.
10513
10514 * ChangeLog.10: Add mistakenly removed entry.
10515
105162008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
10517
10518 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
10519
105202008-02-01 Miles Bader <miles@gnu.org>
10521
10522 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
10523 Add extra args to FACE_FOR_CHAR.
10524
105252008-02-01 Kenichi Handa <handa@m17n.org>
10526
10527 * keymap.c (where_is_internal_1): If key is a cons, store the copy
10528 in sequence.
10529
10530 * chartab.c (map_sub_char_table, map_char_table): If the range
10531 contains just one character, call the function with that character
10532 even if the depth is not 3.
10533
105342008-02-01 Jason Rumney <jasonr@gnu.org>
10535
10536 * w32font.c (w32font_text_extents): Calculate metrics for the
10537 whole string.
10538
105392008-02-01 Jason Rumney <jasonr@gnu.org>
10540
10541 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
10542
105432008-02-01 Jason Rumney <jasonr@gnu.org>
10544
10545 * w32term.c (x_set_glyph_string_clipping): Use
10546 get_glyph_string_clip_rects.
10547 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
10548 Adjust for the change of struct glyph_string.
10549
10550 * w32font.c (w32font_draw): Do clipping here.
10551
105522008-02-01 Kenichi Handa <handa@m17n.org>
10553
10554 * xftfont.c (xftfont_draw): Adjust for the change of struct
10555 glyph_string.
10556
10557 * xterm.c (x_set_glyph_string_clipping): Use
10558 get_glyph_string_clip_rects.
10559 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
10560 Adjust for the change of struct glyph_string.
10561
10562 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
10563 the resulting clip(s}.
10564 (expose_overlaps): Add arg r. Change callers. Set it to
10565 row->clip temporarily.
10566 (expose_window): Redraw rows overlapping the exposed area.
10567
10568 * dispextern.h (struct glyph_row): New member clip.
10569 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
10570 clip_height, new member clip, and num_clips.
10571
105722008-02-01 Kenichi Handa <handa@m17n.org>
10573
10574 * data.c (Fchar_or_string_p): Fix docstring.
10575
105762008-02-01 Kenichi Handa <handa@m17n.org>
10577
10578 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
10579 create a temporary XftDraw object.
10580
105812008-02-01 Kenichi Handa <handa@m17n.org>
10582
10583 * font.c (Ffontp): Fix docstring.
10584
10585 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
10586 strong evidence of ISO-2022.
10587
105882008-02-01 Kenichi Handa <handa@m17n.org>
10589
10590 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
10591 SYNTAX_ENTRY_FOLLOW_PARENT.
10592
105932008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
10594
10595 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
10596 its type.
10597 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
10598 Update to the new type of weak_hash_tables and next_weak.
10599
10600 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
10601 a plain C pointer to Lisp_Hash_Table.
10602
10603 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
10604 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
10605 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
10606 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
10607 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
10608 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
10609 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
10610 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
10611 (GC_EQ): Remove since they've been identical to their non-GC_
10612 alter-egos ever since the markbit was eradicated.
10613
10614 * alloc.c:
10615 * buffer.c:
10616 * buffer.h:
10617 * data.c:
10618 * fileio.c:
10619 * filelock.c:
10620 * fns.c:
10621 * frame.h:
10622 * lisp.h:
10623 * macterm.c:
10624 * print.c:
10625 * process.c:
10626 * w32fns.c:
10627 * w32menu.c:
10628 * w32term.c:
10629 * xfns.c:
10630 * xmenu.c:
10631 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
10632
106332008-02-01 Kenichi Handa <handa@m17n.org>
10634
10635 * chartab.c (map_sub_char_table): Make it work for the top-level
10636 char-table. Fix handling of parent char-table.
10637 (map_char_table): Adjust for the above change.
10638
106392008-02-01 Jason Rumney <jasonr@gnu.org>
10640
10641 * w32font.c (Qgdi): Rename from Qw32.
10642
106432008-02-01 Jason Rumney <jasonr@gnu.org>
10644
10645 * w32bdf.c (get_quoted_string): Make function static.
10646
106472008-02-01 Kenichi Handa <handa@m17n.org>
10648
10649 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
10650 bigger ascent and descent than those of the font, use them as
10651 font's ascent and descent.
10652
106532008-02-01 Kenichi Handa <handa@m17n.org>
10654
10655 * Makefile.in (${lispsource}international/charprop.el): Move this
10656 target within "#ifdef HAVE_UNIDATA" and "#endif".
10657
106582008-02-01 Kenichi Handa <handa@m17n.org>
10659
10660 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
10661 (shortlisp): Add ../lisp/language/tai-viet.el.
10662
106632008-02-01 Ulrich Mueller <ulm@gentoo.org>
10664
10665 * Makefile.in (${lispsource}international/charprop.el): Depend on
10666 temacs${EXEEXT}.
10667
106682008-02-01 Jason Rumney <jasonr@gnu.org>
10669
10670 * w32font.c (w32font_close): Delete the GDI font object.
10671
10672 * w32menu.c: Include character.h.
10673
10674 * w32proc.c: Likewise.
10675
10676 * w32select.c: Likewise.
10677
10678 * makefile.w32-in (w32proc.o): Depend on character.h.
10679
106802008-02-01 Jason Rumney <jasonr@gnu.org>
10681
10682 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
10683
10684 * w32menu.c (syms_of_w32menu): Likewise.
10685
10686 * w32proc.c (syms_of_ntproc): Likewise.
10687
10688 * w32select.c (syms_of_w32select): Likewise.
10689
10690 * w32term.c (syms_of_w32term): Likewise.
10691
106922008-02-01 Jason Rumney <jasonr@gnu.org>
10693
10694 * w32font.c (w32font_draw): Delete brush after using it.
10695
106962008-02-01 Jason Rumney <jasonr@gnu.org>
10697
10698 * w32font.c (w32font_open): Don't set font_idx.
10699 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
10700 to font settings.
10701 (w32font_draw): Fill background explicitly.
10702
107032008-02-01 Jason Rumney <jasonr@gnu.org>
10704
10705 * w32term.c (w32_initialize): Don't call w32font_initialize.
10706
10707 * w32font.c (w32font_info): Remove subranges.
10708 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
10709 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
10710 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
10711 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
10712 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
10713 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
10714 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
10715 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
10716 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
10717 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
10718 New symbols.
10719 (font_callback_data): New struct.
10720 (w32font_list, w32font_match): Use it.
10721 (w32font_open): Don't populate subranges.
10722 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
10723 (w32font_encode_char): Always return unicode code-point as-is.
10724 (w32font_text_extents): Supply a transformation matrix to
10725 GetGlyphOutline. Never look up by glyph index. Avoid looping
10726 twice. Use unicode version of GetTexExtentPoint32 instead of
10727 glyph index version.
10728 (set_fonts_frame): Remove.
10729 (w32_enumfont_pattern_entity): Add frame parameter, use it to
10730 set frame parameter. Use backward compatible fake foundries.
10731 Save generic family in extra slot under QCfamily. Make width slot
10732 constant. Save QCspacing value. Save list of scripts instead of
10733 binary subranges.
10734 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
10735 (add_font_entity_to_list): Use font_callback_data struct. Filter
10736 unwanted fonts.
10737 (add_one_font_entity_to_list): Use font_callback_data struct.
10738 (w32_registry): Default to iso10646_1.
10739 (fill_in_logfont): Use dpi from extra slot. Don't bother with
10740 string font registries. Don't fill in font name if it is a generic
10741 family name, fill family instead. Use spacing, family and script
10742 extra info to fill pitch, family and charset fields.
10743 (list_all_matching_fonts): Use font_callback_data struct.
10744 (unicode_range_for_char): Remove.
10745 (font_supported_scripts): New function.
10746 (w32font_initialize): Remove.
10747 (syms_of_w32font): Update which symbols are defined.
10748
107492008-02-01 Jason Rumney <jasonr@gnu.org>
10750
10751 * font.c (font_pixel_size): Reverse assq_no_quit args.
10752
10753 * w32term.h (FONT_WIDTH): Report max width, not average.
10754 (FONT_MAX_WIDTH): Remove.
10755 (FONT_AVG_WIDTH): New macro.
10756
10757 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
10758 redefinition of FONT_WIDTH.
10759
10760 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
10761 (w32_cache_char_metrics): Use FONT_WIDTH.
10762
10763 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
10764
107652008-02-01 Jason Rumney <jasonr@gnu.org>
10766
10767 * w32font.c (w32font_open): Make lfHeight negative.
10768
10769 * w32fns.c (x_default_font_parameter): Use new style font name.
10770 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
10771
107722008-02-01 Jason Rumney <jasonr@gnu.org>
10773
10774 * w32font.c (QCsubranges): New symbol.
10775 (w32font_open, w32font_has_char): Get subranges from subproperty
10776 of extra.
10777 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
10778 (syms_of_w32font): Define :subranges symbol.
10779
10780 * font.c (font_put_extra): Expose externally.
10781
10782 * font.h (font_put_extra): Move declaration from font.c.
10783
10784 * font.c (Ffont_get): Use font driver to determine otf capability.
10785 (adjust_anchor): Check if driver defines anchor_point before using.
10786
10787 * w32font.c (w32font_open): Handle size, height and pixel_size better.
10788 (w32font_draw): Use options.
10789 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
10790 Fix detection of truetype fonts.
10791 (registry_to_w32_charset): Handle charsets other than iso8859-1
10792 expressed as lisp symbols.
10793 (w32_registry): Express charset as lisp symbol.
10794 (fill_in_logfont): Reverse pixel and point height logic.
10795 Don't set width here. Set quality to default.
10796
10797 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
10798 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
10799
10800 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
10801 Remove redundant loop and allocation.
10802
10803 * makefile.w32-in (font.o, w32font.o): New objects.
10804 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
10805 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
10806
10807 * xdisp.c (fill_composite_glyph_string): Make the first arg to
10808 STORE_XCHARB a valid l-value.
10809
10810 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
10811 calculations for non-Truetype fonts.
10812 (x_draw_glyph_string): Sync with xterm.c.
10813 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
10814 Remove redundant code.
10815 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
10816
10817 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
10818 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
10819
10820 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
10821 (x_to_w32_charset, w32_to_x_charset): Expose externally.
10822
10823 * w32font.c: New file for w32 font backend.
10824
108252008-02-01 Kenichi Handa <handa@m17n.org>
10826
10827 * term.c: Don't include "buffer.h" twice.
10828
108292008-02-01 Kenichi Handa <handa@m17n.org>
10830
10831 * character.c (Funibyte_string): New function.
10832 (syms_of_character): Defsubr it.
10833
108342008-02-01 Jason Rumney <jasonr@gnu.org>
10835
10836 * w32term.c [USE_FONT_BACKEND]:
10837 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
10838 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
10839 (x_draw_glyph_string, x_draw_glyph_string_foreground)
10840 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
10841 (x_free_frame_resources): Sync with xterm.c.
10842
108432008-02-01 Andreas Schwab <schwab@suse.de>
10844
10845 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
10846 char-table size.
10847
108482008-02-01 Kenichi Handa <handa@m17n.org>
10849
10850 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
10851
108522008-02-01 Kenichi Handa <handa@m17n.org>
10853
10854 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
10855 font_otf_gpos, add font_drive_otf.
10856
10857 * fontset.c (fontset_find_font): Pay attention to font size
10858 specified for a font.
10859 (reorder_font_vector): Check contents of font_def.
10860
10861 * font.c (struct otf_list): Delete it.
10862 (otf_list): Make it a lisp variable.
10863 (otf_open): Use lispy otf_list.
10864 (generate_otf_features): Rename from parse_gsub_gpos_spec.
10865 (check_otf_features): New function.
10866 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
10867 New functions.
10868 (font_drive_otf): New function merging font_otf_gsub and
10869 font_otf_gpos.
10870 (font_open_for_lface): New arg spec. Change argument order.
10871 (font_load_for_face): Adjust for the change of font_open_for_lface.
10872 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
10873 Ffont_otf_gpos.
10874 (syms_of_font): Staticpro otf_list. Delete defsubr of
10875 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
10876
10877 * xfaces.c (set_font_frame_param): Adjust for the change of
10878 font_open_for_lface.
10879
10880 * font.h (font_open_for_lface): Adjust prototype.
10881 (struct font_driver): Delete members otf_gsub and otf_gpos, add
10882 member otf_drive.
10883 (font_otf_gsub, font_otf_gpos): Delete externs.
10884 (font_drive_otf): Extern it.
10885
108862008-02-01 Kenichi Handa <handa@m17n.org>
10887
10888 * font.c (font_at): If the window W is not on a window system,
10889 return Qnil.
10890
10891 * coding.c (produce_chars, encode_coding): Don't call
10892 insert_from_gap if no characters to produce.
10893
108942008-02-01 Kenichi Handa <handa@m17n.org>
10895
10896 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
10897 Fclear_face_cache.
10898
10899 * xfaces.c (face_for_font): Check also face->font==font->font.font.
10900
109012008-02-01 Miles Bader <miles@gnu.org>
10902
10903 * emacs.c (main): Change default value of `enable_font_backend' to 1.
10904 Parse "--disable-font-backend" option.
10905 (standard_args): Add "--disable-font-backend" option.
10906
109072008-02-01 Kenichi Handa <handa@m17n.org>
10908
10909 * fontset.c (fontset_find_font): New function.
10910 (fontset_font): Use fontset_find_font.
10911 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
10912 Register the specified font for all Latin characters.
10913 (new_fontset_from_font): Register the specified font for all Latin
10914 characters.
10915 (dump_fontset): For a realized fontset, include the base fontset
10916 name in the returned vector.
10917
109182008-02-01 Kenichi Handa <handa@m17n.org>
10919
10920 * character.h (CHAR_STRING): Cast C to unsigned on calling
10921 char_string.
10922
10923 * character.c (char_string): Type of arg C changed to unsigned.
10924 Signal an error if C is an invalid character code.
10925
10926 * editfns.c (general_insert_function, Fchar_to_string):
10927 Use CHARACTERP, not INTEGERP.
10928
109292008-02-01 Kenichi Handa <handa@m17n.org>
10930
10931 * character.h (MIN_MULTIBYTE_LEADING_CODE)
10932 (MAX_MULTIBYTE_LEADING_CODE): New macros.
10933
10934 * regex.c (analyse_first): Fix for multibyte characters in "case
10935 charset:" and "case categoryspec:".
10936
109372008-02-01 Andreas Schwab <schwab@suse.de>
10938
10939 * Makefile.in (LIBES): Move standard libraries to the end.
10940
109412008-02-01 Kenichi Handa <handa@m17n.org>
10942
10943 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
10944 nonzero, don't shrink the buffer nextb.
10945
10946 * buffer.h (struct buffer_text): New member inhibit_shrinking.
10947
10948 * coding.c (coding_alloc_by_making_gap): New arg offset.
10949 (alloc_destination): Call coding_alloc_by_making_gap with the arg
10950 offset.
10951 (decode_coding_iso_2022): Update coding->safe_charsets.
10952 (decode_coding_gap): Temporarily set
10953 current_buffer->text->inhibit_shrinking to 1.
10954
109552008-02-01 Kenichi Handa <handa@m17n.org>
10956
10957 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
10958 indexing into elements of s->cmp and s->char2b.
10959
109602008-02-01 Juanma Barranquero <lekktu@gmail.com>
10961
10962 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
10963
109642008-02-01 Kenichi Handa <handa@m17n.org>
10965
10966 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
10967 target_multibyte instead of multibyte.
10968 (re_match_2_internal): Call bcmp_translate with target_multibyte.
10969 (bcmp_translate): Change the argument name from multibyte to
10970 target_multibyte.
10971
109722008-02-01 Kenichi Handa <handa@m17n.org>
10973
10974 These changes are to compile a regexp into a pattern that can be
10975 used both for multibyte and unibyte targets.
10976
10977 * Makefile.in (search.o): Depend on charset.h.
10978
10979 * character.c (multibyte_char_to_unibyte_safe): New function.
10980
10981 * search.c: Include "charset.h".
10982 (compile_pattern_1): Delete argument multibyte. Don't set
10983 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
10984 (compile_pattern): Don't compare cp->buf.target_multibyte.
10985 Compare cp->buf.charset_unibyte.
10986 (compile_pattern): Set cp->buf.target_multibyte.
10987
10988 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
10989
10990 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
10991
10992 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
10993 multibyte. Change callers.
10994 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
10995 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
10996 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
10997 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
10998 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
10999 (regex_compile): Make the compiled pattern usable both for
11000 multibyte and unibyte targets.
11001 (analyse_first): Make the fastmap usable both for multibyte and
11002 unibyte targets.
11003 (TRANSLATE_VIA_MULTIBYTE): Delete.
11004 (re_match_2_internal): Pay attention to the case that the
11005 multibyteness of bufp and target may be different.
11006
110072008-02-01 Kenichi Handa <handa@m17n.org>
11008
11009 * xdisp.c (x_produce_glyphs): When a font is not found, make the
11010 empty box occupy at least one column width.
11011
110122008-02-01 Miles Bader <miles@gnu.org>
11013
11014 * Makefile.in: Remove redundant HAVE_XFT clause.
11015
110162008-02-01 Kenichi Handa <handa@m17n.org>
11017
11018 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
11019
110202008-02-01 Kenichi Handa <handa@m17n.org>
11021
11022 * fontset.c (Finternal_char_font): Fix for the case of POSITION
11023 being nil.
11024
110252008-02-01 Kenichi Handa <handa@m17n.org>
11026
11027 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
11028
110292008-02-01 Kenichi Handa <handa@m17n.org>
11030
11031 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
11032
110332008-02-01 Kenichi Handa <handa@m17n.org>
11034
11035 * search.c (simple_search): Fix previous change.
11036
110372008-02-01 Kenichi Handa <handa@m17n.org>
11038
11039 * xftfont.c (ftfont_font_format): Extern declaration.
11040
11041 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
11042
11043 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
11044 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
11045
11046 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
11047 (ftfont_font_format): Fix previous change.
11048
11049 * font.h (Ffont_xlfd_name): EXFUN it.
11050
11051 * font.c (font_parse_xlfd): Fix the array size of `f'.
11052 (register_font_driver): Use EQ to compare driver->type.
11053
11054 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
11055 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
11056 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
11057
110582008-02-01 Kenichi Handa <handa@m17n.org>
11059
11060 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
11061 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
11062
110632008-02-01 Kenichi Handa <handa@m17n.org>
11064
11065 * xfont.c (xfont_open): Set font->format.
11066
11067 * xftfont.c (xftfont_open): Set font->format.
11068
11069 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
11070 (ftfont_list): Include FC_FONTFORMAT in FcObject.
11071 (ftfont_open): Set font->format.
11072 (ftfont_font_format): New function.
11073
11074 * font.h (struct font): New member format.
11075
11076 * font.c (Qopentype): New variable.
11077 (syms_of_font): Defsym it.
11078 (Fquery_font): Change the format of the last element of the return
11079 value.
11080
110812008-02-01 Kenichi Handa <handa@m17n.org>
11082
11083 * xfns.c (xic_create_xfontset): Try the default fontset name as a
11084 last resort.
11085
110862008-02-01 Kenichi Handa <handa@m17n.org>
11087
11088 * coding.c (detect_coding_charset): Fix detection of multi-byte
11089 charset.
11090
110912008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
11092
11093 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
11094
110952008-02-01 Kenichi Handa <handa@m17n.org>
11096
11097 * xdisp.c (get_next_display_element): Set it->face_id for the
11098 first component of a composition.
11099 (x_produce_glyphs): Check if the font is changed or not for composition.
11100
111012008-02-01 Kenichi Handa <handa@m17n.org>
11102
11103 * fontset.c (Qlatin): New variable.
11104 (syms_of_fontset): Define it as a lisp symbol.
11105 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
11106
111072008-02-01 Kenichi Handa <handa@m17n.org>
11108
11109 * font.c (font_unparse_fcname): Pay attention to the case that
11110 some of font property is a null string.
11111
111122008-02-01 Kenichi Handa <handa@m17n.org>
11113
11114 * term.c: Include "composite.h".
11115 (encode_terminal_code): Output all components of composition.
11116 Check the size of encode_terminal_src.
11117 (produce_glyphs): For composition, call produce_composite_glyph.
11118 (append_composite_glyph, produce_composite_glyph): New functions.
11119
11120 * xdisp.c (x_produce_glyphs): In handling composition, if a font
11121 is not found, get font_info from the current ascii face.
11122
111232008-02-01 Kenichi Handa <handa@m17n.org>
11124
11125 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
11126 buffer-file-name to Qnil before calling insert_from_buffer.
11127
11128 * font.c (font_unparse_fcname): Pay attention to the case that
11129 foundry is a null string.
11130
111312008-02-01 Kenichi Handa <handa@m17n.org>
11132
11133 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
11134
11135 * font.c (Qunicode_sip): New variable.
11136 (syms_of_font): Declare it as a Lisp symbol.
11137
11138 * font.h (Qunicode_sip): Extern it.
11139
111402008-02-01 Kenichi Handa <handa@m17n.org>
11141
11142 * composite.c (get_composition_id): Pay attention to TAB component.
11143
11144 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
11145 TAB. Adjust for the change of s->char2b which always points to
11146 the first element of allocated memory.
11147
11148 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
11149
11150 * xdisp.c (handle_composition_prop): Set it->c to the first
11151 non-TAB component.
11152 (fill_composite_glyph_string): Change argument.
11153 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
11154 (x_produce_glyphs): Fix handling of left/right padding.
11155
111562008-02-01 Kenichi Handa <handa@m17n.org>
11157
11158 * coding.c (detect_coding_system): Fix for handling off
11159 inhibit_iso_escape_detection. Fix for the case that no coding
11160 system is defined for a specific coding category.
11161
111622008-02-01 Kenichi Handa <handa@m17n.org>
11163
11164 * font.c (font_matching_entity): Delete unused local var.
11165
11166 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
11167 opening a font.
11168
11169 * fileio.c (Finsert_file_contents): On recovering a file, assume
11170 Unix-like eol.
11171 (choose_write_coding_system): On auto-saving a file, force
11172 Unix-like eol.
11173
11174 * coding.c (setup_coding_system): Fix setting of
11175 coding->common_flags based on eol_type.
11176 (coding_inherit_eol_type): If PARENT is not nil, be sure to
11177 inherit from it.
11178
111792008-02-01 Kenichi Handa <handa@m17n.org>
11180
11181 * alloc.c (NSTATICS): Increas to 0x600.
11182
111832008-02-01 Kenichi Handa <handa@m17n.org>
11184
11185 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
11186 (ftfont_list): Don't check :name property.
11187 (ftfont_match): New function.
11188 (ftfont_pattern_entity): If the pattern doesn't contain
11189 FC_SPACING, don't assume FC_MONO.
11190
11191 * font.h (struct font_driver): New member `match'.
11192 (font_update_drivers): Adjust prototype.
11193
11194 * font.c (font_parse_fcname, font_parse_name): Don't change :name
11195 property of FONT.
11196 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
11197 them unconditionally.
11198 (font_matching_entity): New function.
11199 (font_open_by_name): Try font_matching_entity if exact match is
11200 not found.
11201 (font_update_drivers): Delete the arg FONT. Return a list of
11202 actually used backends. Don't free faces, font caches here.
11203 Don't store data in frame parameters. Don't call x_set_font.
11204 (Ffont_spec): Store :name property as is.
11205 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
11206 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
11207 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
11208 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
11209 Call font->driver->otf_gsub instead of font_otf_gsub.
11210
11211 * frame.c (x_set_font_backend): Do more works that were done in
11212 font_update_drivers before.
11213
11214 * xfont.c (xfont_match): New function.
11215 (xfont_driver): Set xfont_driver.match to xfont_match.
11216 (xfont_draw): Set font in GC if necessary.
11217
11218 * ftxfont.c (ftxfont_match): New function.
11219 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
11220
11221 * xftfont.c (xftfont_match): New function.
11222 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
11223
112242008-02-01 Kenichi Handa <handa@m17n.org>
11225
11226 * font.h (struct font): New member scalable.
11227 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
11228 (font_otf_gsub): Adjust prototype.
11229
11230 * font.c (font_otf_capability): Fix handling of the default langsys.
11231 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
11232 Check the contents of SPEC.
11233 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
11234 (check_gstring): New function.
11235 (REPLACEMENT_CHARACTER): New macro.
11236 (font_otf_gsub): New arg alternate_subst. Be sure to set all
11237 glyph codes of GSTRING.
11238 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
11239 (font_prepare_composition): Set cmp->glyph_len.
11240 (font_open_entity): Set font->scalable.
11241 (Ffont_get): Handle :otf property.
11242 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
11243 functions.
11244 (Fquery_font): Use font->font.full_name.
11245 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
11246 Sfont_otf_alternates.
11247
11248 * ftfont.c (ftfont_open): Set font->font.full_name and
11249 font->font.name properly. Fix calculation of font->font.height
11250 and font->min_width.
11251
11252 * ftxfont.c (ftxfont_create_gcs): New function.
11253 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
11254 (ftxfont_draw_backgrond): Fix filling region.
11255 (ftxfont_default_fid): New function.
11256 (ftxfont_open): Set xfont->fid to the return value of
11257 ftxfont_default_fid.
11258 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
11259 (ftxfont_done_face): Free only GCs that are created by
11260 ftxfont_create_gcs.
11261 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
11262
11263 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
11264 Clip to src->width, etc (not src->clip_XXX).
11265
11266 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
11267 FontBackend frame parameter.
11268
112692008-02-01 Kenichi Handa <handa@m17n.org>
11270
11271 * font.h (struct font_driver_list): New member `on'.
11272 (Fclear_font_cache): EXFUN it.
11273 (font_update_drivers): Extern it.
11274
11275 * font.c (font_unparse_fcname): Fix typo (swidth->width).
11276 (font_list_entities): Check driver_list->on.
11277 (register_font_driver): Initalize `on' member to 0.
11278 (font_update_drivers): New function.
11279 (Fclear_font_cache): Check driver_list->on.
11280
11281 * frame.h (Qfont_backend): Extern it.
11282 (x_set_font_backend): Extern it.
11283
11284 * frame.c (Qfont_backend): New variable.
11285 (frame_parms): New element for font-backend.
11286 (x_set_font_backend): New function.
11287
11288 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
11289 FontBackend frame parameter.
11290 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
11291 x_set_font_backend.
11292
11293 * xfont.c (xfont_list): Don't try listing by :name property if the
11294 name is not for XLFD.
11295
112962008-02-01 Kenichi Handa <handa@m17n.org>
11297
11298 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
11299 (LGLYPH_SET_TO): New macros.
11300 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
11301 element of G is vector or not.
11302 (font_at): Extern it.
11303
11304 * font.c: Include window.h.
11305 (font_lispy_object): New function.
11306 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
11307 end of valid glyph.
11308 (font_close_object): Fix getting (struct font *).
11309 (font_at): New function.
11310 (Ffont_get): If FONT is a font-object, get entity from it.
11311 (Ffont_make_gstring): Initialize elements of glyphs with nil.
11312 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
11313 range check.
11314 (Ffont_at): New function.
11315 (syms_of_font): Defsubr Sfont_at.
11316
11317 * xdisp.c (it_props): Move the entry for Qauto_composed to just
11318 before the entry for Qcomposition.
11319 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
11320 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
11321 the font in gstring.
11322 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
11323 LGLYPH_FORM (g) to detect the end of valid glyph.
11324 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
11325 we are composing with gstring.
11326
11327 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
11328 Check if adjustment is vector or not.
11329
11330 * Makefile.in (font.o): Make it depends on window.h.
11331
113322008-02-01 Kenichi Handa <handa@m17n.org>
11333
11334 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
11335 adjustment is vector or not.
11336
113372008-02-01 Miles Bader <miles@gnu.org>
11338
11339 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
11340
113412008-02-01 Kenichi Handa <handa@m17n.org>
11342
11343 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
11344 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
11345 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
11346
11347 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
11348 (DEVICE_DELTA): Fix typo.
11349 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
11350 LGLYPH format.
11351
11352 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
11353 the change of LGLYPH format.
11354
113552008-02-01 Kenichi Handa <handa@m17n.org>
11356
11357 * ftfont.c (ftfont_list): Fix typo.
11358 (ftfont_build_basic_charsets): Don't include letters with diacritics.
11359
113602008-02-01 Jan Djärv <jan.h.d@swipnet.se>
11361
11362 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
11363
11364 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
11365 xftface_info is non-NULL.
11366
113672008-02-01 Jan Djärv <jan.h.d@swipnet.se>
11368
11369 * ftfont.c (ftfont_list): Move misplaced #endif.
11370
113712008-02-01 Kenichi Handa <handa@m17n.org>
11372
11373 * ftfont.c (ftfont_list): Pay attention to the case that
11374 FC_CAPABILITY is not defined.
11375
113762008-02-01 Kenichi Handa <handa@m17n.org>
11377
11378 * xftfont.c (xftfont_open): Set charset related members to -1.
11379
11380 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
11381 QCname.
11382 (ftfont_open): Set charset related members to -1.
11383
11384 * fontset.c (Votf_script_alist): New variable.
11385 (syms_of_fontset): Initialize it.
11386 (fontset_font): Delete unused variable.
11387
11388 * fontset.h (Votf_script_alist): Extern it.
11389
11390 * font.c (font_find_for_lface): Optimize code.
11391
11392 * font.h (font_close_object, font_merge_old_spec): Extern them.
11393
113942008-02-01 Kenichi Handa <handa@m17n.org>
11395
11396 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
11397 (syms_of_font): Initialize them.
11398 (font_pixel_size): Allow float value in dpi.
11399 (font_prop_validate_type): Delete.
11400 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
11401 Change caller.
11402 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
11403 (font_prop_validate_extra): Delete.
11404 (font_prop_validate_spacing): New function.
11405 (font_property_table): Add elements for all known properties.
11406 (get_font_prop_index): Rename from check_font_prop_name. New
11407 argument FROM. Change caller.
11408 (font_prop_validate): Validate all known properties.
11409 (font_put_extra): Delete argument force. Change caller.
11410 (font_expand_wildcards): Make it static. Fix the way of shrinking
11411 the possible range.
11412 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
11413 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
11414 Change caller.
11415 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
11416 (font_parse_fcname): Delete argument merge. Fix parsing of point
11417 size. Don't validate properties values here. Change caller.
11418 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
11419 (font_open_by_name): Delete unused variable.
11420 (Ffont_spec): Likewise. Validate property values.
11421 (Ffont_match_p): New function.
11422
11423 * font.h (QCscalable): Extern it.
11424 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
11425
11426 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
11427
11428 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
11429 (xfont_list_pattern): New function.
11430 (xfont_list): Use xfont_list_pattern.
11431
114322008-02-01 Kenichi Handa <handa@m17n.org>
11433
11434 * font.h (Flist_fonts): EXFUN it.
11435
114362008-02-01 Jason Rumney <jasonr@gnu.org>
11437
11438 * w32term.c (w32_initialize): Add back smoothing_type and
11439 smoothing_enabled definitions.
11440
114412008-02-01 Kenichi Handa <handa@m17n.org>
11442
11443 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
11444 s->face->font on determining underline position.
11445
114462008-02-01 Kenichi Handa <handa@m17n.org>
11447
11448 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
11449 (font_has_char): Accept font-object too.
11450 (font_find_for_lface): Try at first with a size specified in face.
11451
114522008-02-01 Kenichi Handa <handa@m17n.org>
11453
11454 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
11455 font_open_by_name.
11456
114572008-02-01 Kenichi Handa <handa@m17n.org>
11458
11459 * font.h (QCspacing, QCdpi): Extern them.
11460 (enum font_spacing): New enum.
11461 (FONT_PIXEL_SIZE_QUANTUM): New macro.
11462
11463 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
11464 (QCspacing, QCdpi): New variables.
11465 (syms_of_font): Initialize them.
11466 (font_pixel_size): New function.
11467 (font_put_extra): New function.
11468 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
11469 in FONT_EXTRA.
11470 (font_parse_fcname): Handle enumerated values (e.g. bold).
11471 Fix handling font size. Add QCname property that contains only
11472 unknown properties.
11473 (font_score): Change argument. Change caller. Pay attention to
11474 FONT_PIXEL_SIZE_QUANTUM.
11475 (font_sort_entites, font_list_entities, font_find_for_lface)
11476 (font_open_for_lface, font_open_by_name): Fix handling of font size.
11477 (Ffont_spec): Add QCname property that contains only unknown properties.
11478
11479 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
11480 include weight in listing pattern, instead check weight of each
11481 listed font. Don't include scalable in pattern. Pay attention to
11482 FONT_PIXEL_SIZE_QUANTUM.
11483
114842008-02-01 Kenichi Handa <handa@m17n.org>
11485
11486 * font.c (font_parse_fcname): Fix parsing of point-size.
11487 (font_unparse_fcname): Produce symbolic names for style properties.
11488 (font_list_entities): Handle float size correctly.
11489 (font_open_by_name): Prefer `normal' property values if the name
11490 doesn't specify them.
11491
11492 * fontset.c (Finternal_char_font): Use font_get_name, not
11493 Ffont_xlfd_name.
11494
11495 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
11496 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
11497 pattern. Don't force scalable.
11498
11499 * xftfont.c (xftfont_open): For generating a name, start from
11500 96-byte buffer.
11501
115022008-02-01 Jan Djärv <jan.h.d@swipnet.se>
11503
11504 * frame.h (x_new_fontset2): Fix prototype.
11505
115062008-02-01 Kenichi Handa <handa@m17n.org>
11507
11508 * font.h (struct font_driver): Delete member parse_name.
11509 (font_match_p, font_get_spec, font_parse_fcname)
11510 (font_unparse_fcname): Extern them.
11511 (font_get_name): Adjust prototype.
11512
11513 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
11514 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
11515 (font_expand_wildcards): Fix handling ENCODING field. Avoid
11516 unnecessary checks for weight, slant, and swidth.
11517 (font_parse_fcname): New function.
11518 (font_unparse_fcname): New function.
11519 (font_parse_name): New function.
11520 (font_match_p): New function.
11521 (font_get_name): Change return value to Lisp string.
11522 (font_get_spec): New function.
11523 (Qunspecified, Qignore_defface): Don't extern them.
11524 (font_find_for_lface): Assume that LFACE is fully specified.
11525 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
11526 object, use it for FACE.
11527 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
11528 driver->parse_name.
11529 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
11530
11531 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
11532 prototype.
11533
11534 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
11535 argument F. Don't call Fnew_fontset. Instead, directly call
11536 make_fontset.
11537
11538 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
11539
11540 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
11541 of x_new_fontset2.
11542
11543 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
11544 (Qsans__serif): New variables.
11545 (ftfont_generic_family_list): New variable.
11546 (syms_of_ftfont): Initialize the above variables.
11547 (ftfont_pattern_entity): Delete argument NAME.
11548 (ftfont_list_generic_family): New function.
11549 (ftfont_parse_name): Delete this function.
11550 (ftfont_list): Try generic family only when FcFontList found no font.
11551 (ftfont_list_family): Fix args to FcObjectSetBuild.
11552
11553 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
11554 object in attrs[LFACE_FONT_INDEX].
11555 (set_lface_from_font_name): Cancel all changes for font-backend.
11556 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
11557 function.
11558 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
11559 font object in QCfont attribute.
11560 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
11561 (realize_default_face) [USE_FONT_BACKEND]: Call
11562 set_lface_from_font_and_fontset.
11563
11564 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
11565 "fixed", and signal error here if no suitable font was found.
11566
11567 * xfont.c (xfont_parse_name): Delete this function.
11568
11569 * xftfont.c (xftfont_open): Change coding style of error
11570 handling. Generate fontconfig's fontname pattern.
11571
11572 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
11573 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
11574
11575 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
11576 Both args FONTSET and FONT_OBJECT must be existing ones.
11577
115782008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11579
11580 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
11581
115822008-02-01 Kenichi Handa <handa@m17n.org>
11583
11584 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
11585
11586 * font.h (struct font): Fix typo.
11587
11588 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
11589 XLFD_XXX_INDEX.
11590 (enum xlfd_field_mask): New enum.
11591 (intern_font_field): Changed argument. Change caller. If digits
11592 are followed by non-digits, return a symbol.
11593 (font_expand_wildcards): New function.
11594 (font_parse_xlfd): Fix wildcard handling.
11595 (Ffont_spec): If :name is specified, reflect the info in the other
11596 properties.
11597
11598 * ftfont.c (ftfont_pattern_entity): Fix typo.
11599 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
11600 locale.
11601
116022008-02-01 Kenichi Handa <handa@m17n.org>
11603
11604 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
11605
11606 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
11607 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
11608 registry doesn't specify encoding part.
11609 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
11610 (font_open_by_name): At first try parsing the name.
11611 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
11612 as Lisp symbols.
11613
11614 * fontset.c (reorder_font_vector): Pay attention to the case that
11615 the 3rd element of font_def is nil.
11616 (fontset_font): For the default fontset, append one more fontset
11617 elements for a script-based font specification. Don't add script
11618 attribute on finding a font.
11619 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
11620 font name.
11621 (fontset_ascii_font): If a font can't be opened, return nil.
11622
11623 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
11624 (ftfont_pattern_entity): New function.
11625 (ftfont_get_cache): Assume that freetype_font_cache is already
11626 initialized.
11627 (ftfont_list): Handle the case that a file is specified in font
11628 name. Use ftfont_pattern_entity to generate entities.
11629 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
11630 (syms_of_ftfont): Initialize freetype_font_cache.
11631
11632 * xftfont.c (xftfont_open): Make the font name fontconfig's
11633 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
11634 (xftfont_close): Free font->font.name if not NULL.
11635
11636 * xfont.c (xfont_list): If script is specified for a font, return
11637 null_vector.
11638 (xfont_list_family): Declare argument type.
11639
11640 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
11641 name, set LFACE_FONT (lface) to nil.
11642
11643 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
11644 return Qnil.
11645
116462008-02-01 Kenichi Handa <handa@m17n.org>
11647
11648 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
11649 (standard_args): Add "-enable-font-backend".
11650
116512008-02-01 Kenichi Handa <handa@m17n.org>
11652
11653 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
11654 (struct xftdraw_list, xftdraw_list): Delete them.
11655 (register_xftdraw, check_xftdraw): Delete them.
11656 (xftfont_prepare_face): Don't call register_xftdraw.
11657 (xftfont_done_face): Don't call check_xftdraw.
11658 (xftfont_draw): Get background color only when with_background is
11659 nonzero.
11660
11661 * xfont.c (xfont_encode_char): Fix calculation of char2b.
11662
116632008-02-01 Kenichi Handa <handa@m17n.org>
11664
11665 These changes are for the new font handling codes.
11666
11667 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
11668 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
11669 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
11670 (FONTSRC, FONTOBJ): New variables.
11671 (obj): Add $(FONTOBJ).
11672 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
11673 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
11674 @LIBOTF_LIBS@.
11675 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
11676 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
11677
11678 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
11679
11680 * character.h (Vscript_representative_chars): Extern it.
11681
11682 * character.c (Vscript_representative_chars): New variable.
11683 (syms_of_character): Declare it as a Lisp variable.
11684
11685 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
11686 enable_font_backend is nonzero, accept the composition method
11687 COMPOSITION_WITH_GLYPH_STRING.
11688
11689 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
11690 enumeration COMPOSITION_WITH_GLYPH_STRING.
11691
11692 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
11693 members clip_x, clip_y, clip_width, and clip_height.
11694 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
11695
11696 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
11697 --enable-font-backend. Call syms_of_font.
11698
11699 * fns.c (assoc_no_quit): New function.
11700
11701 * fontset.h (FONT_INFO_FROM_FACE): New macro.
11702 (face_for_font, new_fontset_from_font)
11703 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
11704
11705 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
11706 (fontset_font, fontset_ascii, face_for_char)
11707 (make_fontset_for_ascii_face, Ffont_info)
11708 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
11709 is nonzero, use font-backend mechanism.
11710 (find_font_encoding): Make it non-static.
11711 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
11712 New functions.
11713
11714 * frame.h (struct frame): New members resx and resy.
11715 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
11716 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
11717
11718 * frame.c [USE_FONT_BACKEND]: Include "font.h".
11719 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
11720
11721 * lisp.h (assoc_no_quit): Extern it.
11722
11723 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
11724 Through out the file, use FONT_INFO_FROM_FACE instead of
11725 FONT_INFO_FROM_ID, use get_per_char_metric instead of
11726 rif->per_char_metric.
11727 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
11728 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
11729 (get_glyph_face_and_encoding, fill_composite_glyph_string)
11730 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
11731 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
11732 nonzero, use font-backend mechanism.
11733 (get_per_char_metric): New function.
11734
11735 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
11736 (set_lface_from_font_name)
11737 (set_font_frame_param, free_realized_face)
11738 (prepare_face_for_display, clear_face_gcs)
11739 (Finternal_set_font_selection_order, realize_x_face)
11740 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
11741 font-backend mechanism.
11742 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
11743 (load_face_font) [USE_FONT_BACKEND]: Abort.
11744 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
11745 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
11746
11747 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
11748 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
11749 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
11750 nonzero, register all available font drivers. Call
11751 x_default_font_parameter for deciding a font.
11752 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
11753
11754 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
11755 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
11756 (x_set_glyph_string_clipping_exactly)
11757 (x_compute_glyph_string_overhangs)
11758 (x_draw_glyph_string_foreground)
11759 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
11760 (x_free_frame_resources) [USE_FONT_BACKEND]: If
11761 enable_font_backend is nonzero, use font-backend mechanism.
11762 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
11763
117642008-02-01 Kenichi Handa <handa@m17n.org>
11765
11766 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
11767 system_eol_type.
11768 (syms_of_coding): Initialize system_eol_type.
11769
11770 * process.c (Fset_process_coding_system): Inherit system's eol
11771 format if necessary.
11772
117732008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11774
11775 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
11776
117772008-02-01 Kenichi Handa <handa@m17n.org>
11778
11779 * coding.c (decode_eol): Pay attention to buffer relocation in
11780 del_range_2.
11781 (decode_coding): Call decode_eol before restoring undo_list.
11782
117832008-02-01 Kenichi Handa <handa@m17n.org>
11784
11785 * charset.c (Fdefine_charset_internal): Fix setting of
11786 emacs_mule_bytes.
11787
117882008-02-01 Kenichi Handa <handa@m17n.org>
11789
11790 * keyboard.c (read_char): Check if C is a character or not before
11791 looking up Vkeyboard_translate_table.
11792
117932008-02-01 Kenichi Handa <handa@m17n.org>
11794
11795 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
11796 condition to terminate the loop.
11797
117982008-02-01 Kenichi Handa <handa@m17n.org>
11799
11800 * coding.c (produce_composition): Compare charbuf[i] instead of
11801 args[i] against 0.
11802 (Fterminal_coding_system): Use EQ to compare Lisp objects.
11803
118042008-02-01 Kenichi Handa <handa@m17n.org>
11805
11806 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
11807 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
11808 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
11809 detect_coding.
11810 (emacs_mule_char): Handle old style (Emacs 20) component character
11811 of a composition.
11812 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
11813 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
11814 composition rule.
11815 (decode_coding_emacs_mule): Handle invalid bytes correctly.
11816
118172008-02-01 Kenichi Handa <handa@m17n.org>
11818
11819 * coding.c (encode_coding_ccl): Allocate destination dynamically
11820 when necessary.
11821
118222008-02-01 Kenichi Handa <handa@m17n.org>
11823
11824 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
11825 the loop. When quitted, show a proper error message.
11826
118272008-02-01 Kenichi Handa <handa@m17n.org>
11828
11829 * xterm.c (x_set_glyph_string_clipping_exactly): Set
11830 src->clip_head and src->clip_tail temporarily instead of src->hl.
11831
11832 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
11833 character sequence.
11834 (Fccl_execute_on_string): Use ASET, not XSET.
11835
118362008-02-01 Kenichi Handa <handa@m17n.org>
11837
11838 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
11839
118402008-02-01 Kenichi Handa <handa@m17n.org>
11841
11842 * coding.c (decode_coding): Fix the condition of terminating the
11843 decoding loop.
11844
118452008-02-01 Kenichi Handa <handa@m17n.org>
11846
11847 * data.c (Faset): On setting a character bigger than 255 in a
11848 unibyte string, signal an error instead of make the string multibyte.
11849
118502008-02-01 Kenichi Handa <handa@m17n.org>
11851
11852 * charset.c (map_charset_chars): Fix for ascii-compatible charset
11853 made by a mapping table.
11854
118552008-02-01 Kenichi Handa <handa@m17n.org>
11856
11857 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
11858 not.
11859 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
11860 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
11861
11862 * xterm.c (x_draw_composite_glyph_string_foreground): Check
11863 s->face is NULL or not.
11864
118652008-02-01 Kenichi Handa <handa@m17n.org>
11866
11867 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
11868 (x_draw_glyph_string): Fix drawing of right_overhang and
11869 left_overhang around/on cursor.
11870
11871 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
11872
118732008-02-01 Kenichi Handa <handa@m17n.org>
11874
11875 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
11876
118772008-02-01 Kenichi Handa <handa@m17n.org>
11878
11879 * coding.c (Fdefine_coding_system_internal)
11880 (Fdefine_coding_system_alias): Avoid a duplicated element in
11881 Vcoding_system_alist.
11882
118832008-02-01 Kenichi Handa <handa@m17n.org>
11884
11885 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
11886
11887 * coding.c (Qcoding_system_define_form): New variable.
11888 (syms_of_coding): Intern and staticpro it.
11889 (Fcoding_system_p): Check Qcoding_system_define_form.
11890 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
11891
11892 * coding.h (CODING_SYSTEM_P): If ID is not available, call
11893 Fcoding_system_p.
11894 (CHECK_CODING_SYSTEM): If ID is not available, call
11895 Fcheck_coding_system.
11896 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
11897 Try also Fcheck_coding_system.
11898
118992008-02-01 Kenichi Handa <handa@m17n.org>
11900
11901 * coding.c (code_conversion_restore): GCPRO arg.
11902
119032008-02-01 Kenichi Handa <handa@m17n.org>
11904
11905 * character.c (lisp_string_width): Check multibyteness of STRING.
11906
119072008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11908
11909 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
11910 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
11911 (decode_mac_font_name): Use decode_coding_c_string instead of
11912 decode_coding.
11913 (x_load_font): Initialize fontp->fontset to -1. Set
11914 fontp->encoding_type.
11915
119162008-02-01 Kenichi Handa <handa@m17n.org>
11917
11918 * search.c (search_buffer): Give up BM search on case-fold-search
11919 if one of a target character has a case-equivalence of different
11920 byte length even if that target charcter is an ASCII.
11921 (simple_search): Fix calculation of byte length of matched text.
11922 (boyer_moore): Fix handling of case-equivalent multibyte characters.
11923
119242008-02-01 Kenichi Handa <handa@m17n.org>
11925
11926 * coding.c (decode_coding): Fix handling of invalid bytes.
11927
119282008-02-01 Kenichi Handa <handa@m17n.org>
11929
11930 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
11931 Unicode characters.
11932
119332008-02-01 Kenichi Handa <handa@m17n.org>
11934
11935 * coding.c (encode_coding_object): If a pre-write-conversion
11936 function makes a new buffer, kill it.
11937
119382008-02-01 Kenichi Handa <handa@m17n.org>
11939
11940 * coding.c (QCascii_compatible_p): New variable.
11941 (syms_of_coding): Initialize it.
11942 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
11943 calling string_char.
11944 (record_conversion_result): Add `default:' case.
11945 (coding_charset_list): Delete unused variable `coding_type'.
11946 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
11947 property in the plist of the coding system.
11948 (Fcoding_system_put): Check QCascii_compatible_p.
11949
119502008-02-01 Miles Bader <miles@gnu.org>
11951
11952 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
11953 removed calculation of frame `f', as it's now used.
11954
119552008-02-01 Kenichi Handa <handa@m17n.org>
11956
11957 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
11958 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
11959 (UNIDATA): New variable.
11960 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
11961 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
11962 $(RUN_TEMACS) unconditionally.
11963
119642008-02-01 Kenichi Handa <handa@m17n.org>
11965
11966 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
11967 (admindir): New variable.
11968 ($(lispsource)international/charprop.el): New target.
11969
119702008-02-01 Miles Bader <miles@gnu.org>
11971
11972 * character.c (chars-in-region): Remove obsolete function.
11973 (syms_of_character): Remove its initialization.
11974
119752008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
11976
11977 * w32select.c (validate_coding_system)
11978 (setup_windows_coding_system): New functions.
11979 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
11980 setup_windows_coding_system.
11981 (setup_config, Fw32_get_clipboard_data): Use
11982 validate_coding_system.
11983 (Fx_selection_exists): Move call to setup_config to a place
11984 where signals are allowed.
11985
11986 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
11987 (Fcheck_coding_system): Add declarations.
11988
119892008-02-01 Kenichi Handa <handa@m17n.org>
11990
11991 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
11992
119932008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11994
11995 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
11996 string as the second argument for x_new_fontset.
11997
119982008-02-01 Kenichi Handa <handa@m17n.org>
11999
12000 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
12001 (encode_coding_object): Use safe_call instead of call2.
12002
120032008-02-01 Kenichi Handa <handa@m17n.org>
12004
12005 * fontset.c (Fset_fontset_font): Check family element of a given vector.
12006
12007 * Makefile.in (lisp): Include charprop.el.
12008
120092008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12010
12011 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
12012 Not sure if it's unnecessary.
12013
120142008-02-01 Steven Tamm <steventamm@mac.com>
12015
12016 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
12017 some possibly unnecessary fontset checking code that crashed
12018 when creating a new frame.
12019
120202008-02-01 Kenichi Handa <handa@m17n.org>
12021
12022 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
12023 lookup_face.
12024
12025 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
12026
12027 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
12028
120292008-02-01 Kenichi Handa <handa@m17n.org>
12030
12031 * coding.c: Cancel the change done in HEAD on 2008-02-01.
12032 (coding_charset_list): New function.
12033
12034 * coding.h (coding_charset_list): Extern it.
12035
120362008-02-01 Kenichi Handa <handa@m17n.org>
12037
12038 * fontset.c (Fset_fontset_font): Call find_font_encoding with
12039 concatenation of family and registry.
12040
120412008-02-01 Kenichi Handa <handa@m17n.org>
12042
12043 * character.h (BYTE8_STRING): Fix typo.
12044
12045 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
12046 string to multibyte (sync to HEAD).
12047
12048 * casefiddle.c (casify_region): Handle changes in byte-length
12049 using replace_range_2 (sync to HEAD).
12050
120512008-02-01 Andreas Schwab <schwab@suse.de>
12052
12053 * chartab.c (map_char_table): GCPRO table and arg.
12054
120552008-02-01 Kenichi Handa <handa@m17n.org>
12056
12057 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
12058 already at limit.
12059
120602008-02-01 Kenichi Handa <handa@m17n.org>
12061
12062 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
12063 instead of fast_c_string_match_ignore_case.
12064 (find_font_encoding): Change argument to Lisp_Object. Use
12065 fast_string_match_ignore_case instead of
12066 fast_c_string_match_ignore_case. Change caller.
12067
120682008-02-01 Kenichi Handa <handa@m17n.org>
12069
12070 * xdisp.c (get_next_display_element): In unibyte case, decide to
12071 display in octal form by checking a character by
12072 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
12073
12074 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
12075
12076 * character.c (unibyte_has_multibyte_table): New variable.
12077
12078 * character.h (unibyte_has_multibyte_table): Extern it.
12079 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
12080
120812008-02-01 Kenichi Handa <handa@m17n.org>
12082
12083 * coding.c (encode_coding_iso_2022): Fix handling of charset
12084 annotation.
12085
120862008-02-01 Kenichi Handa <handa@m17n.org>
12087
12088 * coding.c (setup_coding_system): If coding_system is nil, use
12089 Qundecided.
12090 (Fterminal_coding_system): Return nil if terminal coding system is
12091 `undecided'.
12092 (syms_of_coding): Define coding-system `undecided' here. Setup
12093 terminal_coding as `undecided'.
12094
120952008-02-01 Kenichi Handa <handa@m17n.org>
12096
12097 * xdisp.c (message_dolog, set_message_1): Call
12098 unibyte_char_to_multibyte with arg type int.
12099
12100 * lread.c (read1): Fix reading of a char-table.
12101
12102 * print.c (print_object): Include sub char-table in circularities
12103 detection.
12104
121052008-02-01 Kenichi Handa <handa@m17n.org>
12106
12107 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
12108 Append the found sequences in car of ARGS instead of prepending.
12109
121102008-02-01 Kenichi Handa <handa@m17n.org>
12111
12112 * fileio.c (report_file_error): Make a unibyte string from
12113 strerror (errorno).
12114 (Fsubstitute_in_file_name): Fix the arg to
12115 unibyte_char_to_multibyte. It is evaluated twice.
12116
121172008-02-01 Kenichi Handa <handa@m17n.org>
12118
12119 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
12120
121212008-02-01 Kenichi Handa <handa@m17n.org>
12122
12123 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
12124 BOM is not found.
12125 (detect_coding, detect_coding_system): Optimization for ISO-2022
12126 when no 8-bit data is found.
12127
121282008-02-01 Jason Rumney <jasonr@gnu.org>
12129
12130 * w32fns.c (x_to_w32_font): Update to use new coding struct.
12131
121322008-02-01 Kenichi Handa <handa@m17n.org>
12133
12134 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
12135 CHARS.
12136
121372008-02-01 Steven Tamm <steventamm@mac.com>
12138
12139 * macterm.c (mac_encode_char): Add charset argument and update
12140 to use encoding_type.
12141 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
12142 switch to pure fontset.
12143 (decode_mac_font_name): Temporarily remove decoding.
12144 (x_font_name_to_mac_font_name): Temporarily remove encoding.
12145 (x_load_font): Temporarily remove encoding.
12146
121472008-02-01 Kenichi Handa <handa@m17n.org>
12148
12149 * xfaces.c (Fface_font): If frame is not on a window system,
12150 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
12151 refer to face->font.
12152 (split_font_name_into_vector, build_font_name_from_vector)
12153 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
12154 when HAVE_WINDOW_SYSTEM is defined.
12155
121562008-02-01 Kenichi Handa <handa@m17n.org>
12157
12158 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
12159 (x_produce_glyphs): Fix setting of members of cmp in case
12160 cmp->glyph_len is zero.
12161
12162 * fontset.c (Fset_fontset_font): Fix docstring.
12163 (Ffontset_info): Make it backward compatible. New arg ALL.
12164
121652008-02-01 Kim F. Storm <storm@cua.dk>
12166
12167 * process.c (read_process_output): Grow decoding_buf when needed;
12168 this could cause a crash in allocate_string and compact_small_strings.
12169
121702008-02-01 Kenichi Handa <handa@m17n.org>
12171
12172 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
12173
121742008-02-01 Kenichi Handa <handa@m17n.org>
12175
12176 * coding.c (setup_coding_system): Set coding->common_flags
12177 correctly for raw-text.
12178 (consume_chars): On encoding unibyte text by raw-text, don't check
12179 multibyte form.
12180 (encode_coding): On encoding by raw-text, never use translation tables.
12181
12182 * fileio.c (e_write): Short cut for the case of no encoding.
12183
121842008-02-01 Kenichi Handa <handa@m17n.org>
12185
12186 * coding.c (detect_coding, detect_coding_system): Delete unused
12187 variables.
12188
121892008-02-01 Kenichi Handa <handa@m17n.org>
12190
12191 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
12192 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
12193
121942008-02-01 Kenichi Handa <handa@m17n.org>
12195
12196 * coding.c (Ffind_coding_systems_region_internal): Include
12197 raw-text and no-conversion in the result.
12198
121992008-02-01 Kenichi Handa <handa@m17n.org>
12200
12201 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
12202 (load_font_get_repertory): Delete unnecessary check of ENCODING of
12203 FONT_DEF.
12204 (font_def_arg, add_arg, from_arg, to_arg): New args.
12205 (set_fontset_font): Change argument.
12206 (Fset_fontset_font): Fix for the case that TARGET is a script
12207 name and charset name.
12208 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
12209
122102008-02-01 Kenichi Handa <handa@m17n.org>
12211
12212 * fontset.c (fontset_font): Rename from fontset_face. Change return
12213 value.
12214 (face_suitable_for_char_p, face_for_char): Adjust for the change
12215 of fontset_font.
12216 (make_fontset_for_ascii_face): Fix setting of the fontset element
12217 for ASCII.
12218 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
12219 to get a font name.
12220 (Ffontset_info): Adjust for the change of fontset_font.
12221
12222 * coding.c (emacs_mule_char): Check invalid code more rigidly.
12223
12224 * character.h (LEADING_CODE_LATIN_1_MIN)
12225 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
12226
122272008-02-01 Kenichi Handa <handa@m17n.org>
12228
12229 * editfns.c (check_translation): New function.
12230 (Ftranslate_region_internal): Handle M:N mapping.
12231
122322008-02-01 Kenichi Handa <handa@m17n.org>
12233
12234 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
12235
122362008-02-01 Kenichi Handa <handa@m17n.org>
12237
12238 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
12239 goto invalid_code.
12240 (decode_coding_iso_2022): Fix handling of invalid designation.
12241
12242 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
12243 after calling code_conversion_save.
12244
122452008-02-01 Kenichi Handa <handa@m17n.org>
12246
12247 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
12248
12249 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
12250
12251 * fontset.c: Include "intervals.h".
12252 (fontset_face): Fix comparing of Lisp_Objects.
12253 (free_face_fontset, new_fontset_from_font_name): Fix
12254 Lisp_Object/int mixup.
12255
12256 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
12257
12258 * coding.c: Add many prototypes for static functions.
12259 (get_translation_table): Allow max_lookup to be NULL.
12260 (decode_coding, Ffind_coding_systems_region_internal)
12261 (Funencodable_char_position, Fcheck_coding_systems_region): Call
12262 get_translation_table with max_lookup NULL.
12263
122642008-02-01 Kenichi Handa <handa@m17n.org>
12265
12266 * coding.c (get_translation_table): Declare it as Lisp_Object.
12267 (LOOKUP_TRANSLATION_TABLE): New macro.
12268 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
12269 instead of CHAR_TABLE_REF.
12270
122712008-02-01 Kenichi Handa <handa@m17n.org>
12272
12273 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
12274 annotation data format.
12275 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
12276 Change arguments FROM and TO to single argument NCHARS. Change caller.
12277 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
12278 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
12279 (decode_coding_ccl, decode_coding_charset): Pay attention to
12280 coding->charbuf_used.
12281 (get_translation): New function.
12282 (produce_chars): New arguments translation_table and last_block.
12283 Translate characters here. Return number of carryover chars.
12284 Change caller.
12285 (produce_composition): New argument pos. Change caller.
12286 Adjust for the change of annotation data format.
12287 (produce_charset, produce_annotation): Likewise.
12288 (decode_coding, encode_coding): Don't call translate_chars.
12289 (consume_chars): New arg translation_table. Change caller.
12290 (translate_chars): Delete.
12291 (syms_of_coding): Make translation-table's number of extra slots 2.
12292
122932008-02-01 Kenichi Handa <handa@m17n.org>
12294
12295 * search.c (simple_search): Fix setting this_pos_byte in backward
12296 search.
12297
12298 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
12299 byte sequence.
12300 (detect_coding_ccl): Fix setting of the variable valids.
12301
123022008-02-01 Kenichi Handa <handa@m17n.org>
12303
12304 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
12305
12306 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
12307
12308 * editfns.c (Ftranslate_region_internal): Rename from
12309 Ftranslate_region. Accept a char-table in TABLE.
12310 (syms_of_editfns): Defsubr Stranslate_region_internal.
12311
12312 * xfaces.c (set_lface_from_font_name): If a font is specified for
12313 a frame, generate a fontset from the font.
12314 (build_scalable_font_name): If the scalable font is requested for
12315 a specific size, don't change that size.
12316 (try_font_list): Try a scalable font also in the case that a
12317 pattern string is specified.
12318
123192008-02-01 Kenichi Handa <handa@m17n.org>
12320
12321 * xfaces.c (Fface_font): New optional arg CHARACTER.
12322
123232008-02-01 Kenichi Handa <handa@m17n.org>
12324
12325 * charset.h (CHARSET_OFFSET): New macro.
12326
123272008-02-01 Kenichi Handa <handa@m17n.org>
12328
12329 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
12330
12331 * fontset.c (fontset_face): Handle the case that repertory is a
12332 char-table.
12333 (find_font_encoding): Return nil for unknown encoding.
12334 (Fset_fontset_font): Ignore a font of unknown encoding.
12335
123362008-02-01 Kenichi Handa <handa@m17n.org>
12337
12338 * keymap.c (describe_vector): Handle default value of a char table.
12339
12340 * fontset.c (fontset_face): Handle fallback fonts correctly.
12341 (Ffontset_info): Return infomation about fallback fonts.
12342
123432008-02-01 Kenichi Handa <handa@m17n.org>
12344
12345 * fontset.c (FONTSET_DEFAULT): New macro.
12346 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
12347 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
12348 the case that it is nil.
12349 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
12350 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
12351
12352 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
12353 subset or superset.
12354
123552008-02-01 Kenichi Handa <handa@m17n.org>
12356
12357 * emacs.c (main): Call init_charset after syms_of_XXX.
12358
12359 * charset.c (Vcharset_map_directory): Delete.
12360 (Vcharset_map_path): New variable.
12361 (load_charset_map_from_file): Use Vcharset_map_path instead.
12362 (init_charset): Initialize Vcharset_map_path.
12363 (syms_of_charset): Delete declaration of "charset-map-directory",
12364 add declaration of "charset-map-path".
12365
123662008-02-01 Kenichi Handa <handa@m17n.org>
12367
12368 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
12369 ASCII only string.
12370
12371 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
12372
12373 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
12374 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
12375
123762008-02-01 Kenichi Handa <handa@m17n.org>
12377
12378 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
12379
12380 * coding.c (QCmnemonic, QCdefalut_char)
12381 (QCdecode_translation_table, QCencode_translation_table)
12382 (QCpost_read_conversion, QCpre_write_conversion): New variables.
12383 (get_translation_table): Return a list of translation tables if
12384 necessary.
12385 (decode_coding): Call get_translation_table with ENCODEP 0.
12386 (char_encodable_p): If translation_table is non-nil, always call
12387 translate_char.
12388 (Fdefine_coding_system_internal): Accept list of translation
12389 tables as :encode-translation-table and :decode-translation-table.
12390 (Fcoding_system_put): New function.
12391 (syms_of_coding): Declare new symbols. Defsubr
12392 Scoding_system_put.
12393 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
12394 typically JISX0212.
12395
12396 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
12397 when the charset is superset type.
12398
12399 * character.c (translate_char): Accept list of translation tables.
12400
124012008-02-01 Kenichi Handa <handa@m17n.org>
12402
12403 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
12404 (CODING_ATTR_TRANS_TBL): New macro.
12405
12406 * coding.c (get_translation_table): New function.
12407 (translate_chars): Fix the bug of skipping annotation data.
12408 (decode_coding, encode_coding): Utilize get_translation_table.
12409 (char_encodable_p, Funencodable_char_position): Translate char if
12410 necessary.
12411 (Ffind_coding_systems_region_internal)
12412 (Fcheck_coding_systems_region): Setup translation table for encode
12413 in a coding system attribute vector in advance.
12414 (Fdefine_coding_system_internal): Allow a symbol as translation
12415 table. For shift-jis type coding system, allow 4th charset.
12416
124172008-02-01 Kenichi Handa <handa@m17n.org>
12418
12419 * coding.c (decode_coding_sjis): Check the first byte rigidly.
12420
12421 * xdisp.c (get_next_display_element): Pass -1 as POS to
12422 FACE_FOR_CHAR if displaying a C-string.
12423
124242008-02-01 Kenichi Handa <handa@m17n.org>
12425
12426 * composite.c (get_composition_id): Handle xoff and yoff in a
12427 composition rule.
12428
12429 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
12430 (struct composition): New member lbearing and rbearing.
12431
12432 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
12433 (x_get_glyph_overhangs): Handle a composition glyph.
12434 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
12435
12436 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
12437 composition glyph.
12438
124392008-02-01 Kenichi Handa <handa@m17n.org>
12440
12441 * print.c: Include charset.h.
12442 (Vprint_charset_text_property): New variable.
12443 (Qdefault): Extern it.
12444 (PRINT_STRING_NON_CHARSET_FOUND)
12445 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
12446 (print_check_string_result): New variable.
12447 (print_check_string_charset_prop): New function.
12448 (print_prune_charset_plist): New variable.
12449 (print_prune_string_charset): New function.
12450 (print_object): Call print_prune_string_charset if
12451 Vprint_charset_text_property is not t.
12452 (print_interval): Print nothing if interval->plist is nil.
12453 (syms_of_print): Declare Vprint_charset_text_property as a lisp
12454 variable. Init and staticpro print_prune_charset_plist.
12455
124562008-02-01 Kenichi Handa <handa@m17n.org>
12457
12458 * fontset.c (new_fontset_from_font_name): Use the specified font
12459 for all characters in the new fontset.
12460
12461 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
12462 OBJECT args.
12463
12464 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
12465 OBJECT args for composition too.
12466
12467 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
12468 OBJECT args.
12469
124702008-02-01 Kenichi Handa <handa@m17n.org>
12471
12472 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
12473
12474 * fontset.c (reorder_font_vector): Adjust for the change of
12475 FONT_DEF format.
12476 (fontset_face): New arg id. Change caller.
12477 (face_for_char): New args pos and object.
12478 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
12479 (fs_query_fontset): Check NAME by Fassoc too.
12480 (Fset_fontset_font): Allow non-XLFD font name.
12481 (Ffontset_info): Adjust for the change of FONT_DEF format.
12482
12483 * fontset.h (face_for_char): Adjust prototype.
12484
12485 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
12486 (append_space, extend_face_to_end_of_line)
12487 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
12488 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
12489
12490 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
12491 POS and OBJECT args.
12492
12493 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
12494 POS and OBJECT args.
12495
124962008-02-01 Jason Rumney <jasonr@gnu.org>
12497
12498 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
12499 of GlobalAlloc'ed memory.
12500
125012008-02-01 Kenichi Handa <handa@m17n.org>
12502
12503 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
12504
12505 * charset.h (charset_table_used): Delete extern.
12506
12507 * charset.c (charset_table_used): Make it static.
12508 (map_charset_chars): Fix args to c_function with.
12509
12510 * chartab.c (map_sub_char_table_for_charset): Fix args to
12511 c_function with.
12512
12513 * coding.h (enum coding_result_code): Delete
12514 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
12515
12516 * coding.c (Qinsufficient_source, Qinconsistent_eol)
12517 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
12518 (Vlast_code_conversion_error): New variables.
12519 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
12520 (ONE_MORE_BYTE): Record error if any instead of signaling an
12521 error. If non-ASCII multibyte char is found, return the negative
12522 value of the code. All callers changed to check it.
12523 (ONE_MORE_BYTE_NO_CHECK): Likewise.
12524 (record_conversion_result): New function. Change all codes setting
12525 coding->result to call this function.
12526 (detect_coding_utf_8, decode_coding_utf_8)
12527 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
12528 Don't use the local variable incomplete.
12529 (emacs_mule_char): Change the second arg to `const'.
12530 (decode_coding): Fix of flushing out unprocessed data.
12531 (make_conversion_work_buffer): Fix making of a work buffer.
12532 (decode_coding_object): Return coding->dst_object.
12533
12534 * fontset.c (set_fontset_font): Fix args.
12535
12536 * lisp.h (CHARACTERBITS): Define as 22.
12537
12538 * process.c (send_process): Be sure to set coding->src_multibyte.
12539
12540 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
12541
125422008-02-01 Kenichi Handa <handa@m17n.org>
12543
12544 * xdisp.c (handle_auto_composed_prop): Give limit to
12545 Fnext_single_char_property_change.
12546
125472008-02-01 Kenichi Handa <handa@m17n.org>
12548
12549 * composite.c (syms_of_composite): Don't make the composition hash
12550 table weak.
12551
12552 * fontset.c (Fset_fontset_font): Fix docstring.
12553
12554 * lisp.h (detect_coding_system): Adjust prototype.
12555
12556 * fileio.c (kill_workbuf_unwind): Delete this function.
12557 (Finsert_file_contents): Adjust the call of detect_coding_system.
12558 Get conversion_buffer by code_conversion_save. Use the macro
12559 CODING_MAY_REQUIRE_DECODING. After decoding, update
12560 coding_system.
12561
12562 * coding.h (make_conversion_work_buffer): Delete extern.
12563 (code_conversion_save): Extern it.
12564
12565 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
12566 (CODING_GET_INFO): Delete argument eol_type. Change callers.
12567 (decode_coding_utf_8): Don't do eol converion.
12568 (detect_coding_utf_16): Check coding->src_chars, not
12569 coding->src_bytes. Add heuristics for those that have no signature.
12570 (decode_coding_emacs_mule, decode_coding_iso_2022)
12571 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
12572 Don't do eol converion.
12573 (adjust_coding_eol_type): Return a new coding system.
12574 (detect_coding): Don't detect eol. Fix for utf-16 detection.
12575 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
12576 each change.
12577 (decode_coding): Pay attention to undo_list. Do eol conversion for
12578 all types of coding-systems (if necessary).
12579 (Vcode_conversion_work_buf_list): Delete it.
12580 (Vcode_conversion_reused_workbuf): Rename from
12581 Vcode_conversion_reused_work_buf.
12582 (Vcode_conversion_workbuf_name): New variable.
12583 (reused_workbuf_in_use): New variable.
12584 (make_conversion_work_buffer): Delete the arg DEPTH.
12585 (code_conversion_restore): Change argument to cons.
12586 (code_conversion_save): Delete the argument BUFFER. Change callers.
12587 (detect_coding_system): New argument src_chars. Change callers.
12588 Fix for utf-16 detection.
12589 (init_coding_once): Don't use ISO_carriage_return.
12590 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
12591 reused_workbuf_in_use.
12592
125932008-02-01 Kenichi Handa <handa@m17n.org>
12594
12595 * keymap.c (store_in_keymap): Pay attention to the case that idx
12596 is a cons specifying a character range.
12597
125982008-02-01 Kenichi Handa <handa@m17n.org>
12599
12600 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
12601 HANDLED_RECOMPUTE_PROPS.
12602
12603 * coding.c (Fdefine_coding_system_internal): Fix checking of
12604 ascii compatibility.
12605
126062008-02-01 Kenichi Handa <handa@m17n.org>
12607
12608 * charset.c (find_charsets_in_text): Delete unused locale variable.
12609 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
12610
12611 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
12612 Resync charset_list to Vemacs_mule_charset_list.
12613
12614 * keymap.c (store_in_keymap): Pay attention to the case that idx
12615 is a cons specifying a character range.
12616
126172008-02-01 Kenichi Handa <handa@m17n.org>
12618
12619 * composite.c (update_compositions): Bind inhibit-read-only, etc
12620 to t before calling remove-list-of-text-properties.
12621
12622 * print.c (print_object): Always print ASCII chars as is.
12623
126242008-02-01 Kenichi Handa <handa@m17n.org>
12625
12626 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
12627
12628 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
12629 is a char table.
12630
126312008-02-01 Kenichi Handa <handa@m17n.org>
12632
12633 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
12634
126352008-02-01 Kenichi Handa <handa@m17n.org>
12636
12637 * xfaces.c (set_lface_from_font_name): Fix for the case that
12638 FONTNAME is not fontset name.
12639
126402008-02-01 Kenichi Handa <handa@m17n.org>
12641
12642 * fns.c (base64_encode_1): Fix previous change.
12643
126442008-02-01 Kenichi Handa <handa@m17n.org>
12645
12646 * fontset.c (set_fontset_font): New function.
12647 (Fset_fontset_font): If a font is specified for a charset, use
12648 map_charset_chars to store the font spec in a fontset.
12649
126502008-02-01 Kenichi Handa <handa@m17n.org>
12651
12652 * fontset.c (fontset_face): Create a fallback fontset on demand.
12653 (make_fontset): Don't create a fallback fontset here.
12654 (free_face_fontset): Free a fallback fontset (if any) too.
12655 (n_auto_fontsets): Delete this variable.
12656 (auto_fontset_alist): New variable.
12657 (new_fontset_from_font_name): Check auto_fontset_alist.
12658 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
12659 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
12660 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
12661 Defsubr Sfontset_list_all.
12662
126632008-02-01 Kenichi Handa <handa@m17n.org>
12664
12665 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
12666
126672008-02-01 Kenichi Handa <handa@m17n.org>
12668
12669 * fontset.c (Fnew_fontset): Check NAME more rigidly.
12670
126712008-02-01 Kenichi Handa <handa@m17n.org>
12672
12673 * editfns.c (Fgoto_char): Fix docstring.
12674
126752008-02-01 Kenichi Handa <handa@m17n.org>
12676
12677 * insdel.c (insert_from_gap): Adjust intervals correctly.
12678
126792008-02-01 Jason Rumney <jasonr@gnu.org>
12680
12681 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
12682 (pfnGetFontUnicodeRanges): New dynamically loaded function.
12683 (w32_initialize): Try to load it.
12684 (x_get_font_repertory): Use it if available.
12685 (w32_encode_char): Add shortcut for unicode output.
12686
12687 * w32fns.c (w32_load_system_font): Default charset to -1.
12688 (x_to_w32_charset): Match all fonts for unicode.
12689 (w32_to_x_charset): New parameter matching. Don't return partial
12690 or wildcard charsets.
12691 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
12692 (w32_codepage_for_font): Return CP_UNICODE for unicode.
12693 (w32_to_x_font): Match charset to real charset.
12694 (enum_font_cb2): Always list unicode versions.
12695
12696 * makefile.w32-in (temacs): Increase EMHEAP.
12697
126982008-02-01 Jason Rumney <jasonr@gnu.org>
12699
12700 * w32term.c (w32_encode_char): New charset parameter.
12701 font_info.encoding becomes encoding_type.
12702 (x_get_font_repertory): New function. Warning: stub only!
12703 (x_new_font): Return quickly if font already set.
12704 (x_new_fontset): fontsetname parameter is Lisp_Object.
12705 Use new fs_query_fontset. Try new_fontset_from_font_name.
12706 Use fontset_name for return value.
12707
12708 * w32term.h: Declare x_get_font_repertory.
12709
12710 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
12711 place of find_charset_in_text. Use encode_coding_object in place
12712 of encode_coding.
12713 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
12714 decode_coding.
12715
12716 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
12717 of x_new_fontset.
12718 (w32_load_system_font): Initialize charset as unicode.
12719 font_info.encoding becomes encoding_type.
12720 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
12721 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
12722 (syms_of_w32fns): Set get_font_repertory_func.
12723
12724 * w32console.c: Include character.h. Use terminal_encode_buffer
12725 from term.c.
12726 (write_glyphs): Use new version of encode_terminal_code. Use
12727 encode_coding_object in place of encode_coding.
12728
12729 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
12730 encoding becomes encoding_type.
12731
12732 * term.c (terminal_encode_buffer): Make externally visible.
12733
12734 * makefile.w32-in: Add character.h dependancies.
12735 (character.o, chartab.o): New targets.
12736
127372008-02-01 Kenichi Handa <handa@m17n.org>
12738
12739 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
12740 CODING_ID_EOL_TYPE.
12741
127422008-02-01 Andreas Schwab <schwab@suse.de>
12743
12744 * coding.c (produce_chars): Revert last change.
12745
127462008-02-01 Kenichi Handa <handa@m17n.org>
12747
12748 * charset.h (charset_unicode): Extern it.
12749
12750 * charset.c (string_xstring_p): Check by (C >= 0x100).
12751 (find_charsets_in_text): Change format of the arc CHARSETS. New
12752 arg MULTIBYTE.
12753 (Ffind_charset_region, Ffind_charset_string): Adjust for the
12754 change of find_charsets_in_text.
12755 (Fsplit_char): Fix doc. Never return unknown.
12756
12757 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
12758
12759 * coding.c (Fdefine_coding_system_alias): Update
12760 Vcoding_system_list.
12761
12762 * fontset.c (load_font_get_repertory): Pay attention to the case
12763 that ENCODING of a font is specified by a char-table.
12764
12765 * xterm.c (x_get_font_repertory): Handle the case that the
12766 encoding of font is other than Unicode.
12767
127682008-02-01 Kenichi Handa <handa@m17n.org>
12769
12770 * term.c (encode_terminal_code): Don't handle glyph-table. Check
12771 if a character is encodable by the terminal coding system. If
12772 not, produces proper number of `?'s. Update
12773 terminal_encode_buffer and terminal_encode_buf_size if necessary.
12774 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
12775
127762008-02-01 Kenichi Handa <handa@m17n.org>
12777
12778 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
12779 variables.
12780 (encode_terminal_code): Change argument. Encode multiple
12781 characters at once. Store the result of encoding in
12782 terminal_encode_buffer.
12783 (write_glyphs, insert_glyphs): Adjust for the change of
12784 encode_terminal_code.
12785 (term_init): Initialize terminal_encode_buffer and
12786 terminal_encode_buf_size.
12787
12788 * coding.c (consume_chars): If coding->src_object is nil, don't
12789 check annotation.
12790
127912008-02-01 Kenichi Handa <handa@m17n.org>
12792
12793 * character.c (char_string): Use ASCII_CHAR_P instead of
12794 SINGLE_BYTE_CHAR_P.
12795
127962008-02-01 Kenichi Handa <handa@m17n.org>
12797
12798 * xdisp.c (handle_auto_composed_prop): Check if the last
12799 characters of auto-composed region is newly composed with the
12800 following characters.
12801 (handle_composition_prop): Fix checking of point being inside
12802 composition.
12803
128042008-02-01 Kenichi Handa <handa@m17n.org>
12805
12806 * fns.c (concat): Don't change multibyteness of the result by
12807 concatenating an 8-bit character.
12808
12809 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
12810 multibyteness of the result when newelt is an 8-bit character.
12811
128122008-02-01 Dave Love <fx@gnu.org>
12813
12814 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
12815 EMACS_INT.
12816
12817 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
12818
12819 * xfaces.c (face_numeric_value): Declare dim size_t.
12820 (Finternal_lisp_face_equal_p): Remove unused f.
12821
12822 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
12823 (MATRIX_ROW): Remove unused vars.
12824 (draw_glyphs, x_insert_glyphs, fast_find_position)
12825 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
12826 byte/char counts.
12827
12828 * regex.c (regex_compile): Remove unused var.
12829
12830 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
12831
12832 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
12833 (Faccessible_keymaps, where_is_internal): Remove unused vars.
12834
12835 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
12836
12837 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
12838
12839 * fileio.c (Fwrite_region): Remove unused var.
12840
12841 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
12842 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
12843
12844 * composite.c (Fremove_list_of_text_properties): Declare.
12845
12846 * coding.c (inhibit_pre_post_conversion): Remove (unused).
12847 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
12848 (coding_inherit_eol_type): Remove unused attrs.
12849 (detect_coding): Cast arg of detect_eol.
12850
12851 * charset.c (syms_of_charset): Remove unused var p.
12852 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
12853 byte/char counts.
12854
12855 * casetab.c (set_case_table): Remove unused var.
12856
12857 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
12858 unused vars.
12859
128602008-02-01 Dave Love <fx@gnu.org>
12861
12862 * xterm.c (x_bitmap_mask): Declare.
12863
128642008-02-01 Dave Love <fx@gnu.org>
12865
12866 * xterm.c (x_term_init): Fix type error.
12867
12868 * lisp.h: Add Funibyte_char_to_multibyte.
12869
12870 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
12871 (Fset_coding_system_priority): Doc fix.
12872
12873 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
12874
12875 * indent.c (check_composition): Make start and end EMACS_INT.
12876
12877 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
12878
12879 * xdisp.c (handle_composition_prop, check_point_in_composition):
12880 Make buffer positions EMACS_INT.
12881
12882 * composite.c (find_composition, run_composition_function)
12883 (update_compositions, Ffind_composition_internal): Make buffer
12884 positions EMACS_INT.
12885
12886 * composite.h (find_composition, update_compositions): Make
12887 position args EMACS_INT.
12888
12889 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
12890
12891 * intervals.c (get_property_and_range):
12892 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
12893
12894 * unexalpha.c: Don't include varargs.h.
12895
128962008-02-01 Dave Love <fx@gnu.org>
12897
12898 * coding.h (ENCODE_UTF_8): New.
12899
12900 * Makefile.in (gtkutil.o): Depend on coding.h.
12901
12902 * coding.c (Fset_coding_system_priority): Doc fix.
12903
129042008-02-01 Kenichi Handa <handa@m17n.org>
12905
12906 * fileio.c (Finsert_file_contents): Call setup_coding_system in
12907 the case of auto saving.
12908
129092008-02-01 Andreas Schwab <schwab@suse.de>
12910
12911 * chartab.c (map_char_table, map_char_table_for_charset): Protect
12912 `range' from GC.
12913
129142008-02-01 Kenichi Handa <handa@m17n.org>
12915
12916 * coding.c (decode_coding_sjis): Check bytes more rigidly.
12917
129182008-02-01 Kenichi Handa <handa@m17n.org>
12919
12920 * fileio.c (choose_write_coding_system): Return a decided coding system.
12921 (Fwrite_region): Set Vlast_coding_system_used to the return value
12922 of choose_write_coding_system.
12923
129242008-02-01 Kenichi Handa <handa@m17n.org>
12925
12926 * charset.c (Fset_charset_priority): Pay attention to duplicated
12927 arguments.
12928
12929 * coding.c (QCcategory): New variable.
12930 (syms_of_coding): Defsym it. Set all elements of
12931 Vcoding_category_table and their symbol values.
12932 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
12933 coding-category-XXX, and coding-category-list.
12934 (Fdefine_coding_system_internal): Add category in the plist.
12935
129362008-02-01 Kenichi Handa <handa@m17n.org>
12937
12938 * callproc.c (Fcall_process): Handle carryover correctly.
12939
12940 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
12941 (raw_text_coding_system): Check NILP (coding_system).
12942 (coding_inherit_eol_type): Check NILP (coding_system) and
12943 NILP (parent).
12944 (consume_chars): Fix for the case of raw-text.
12945
12946 * process.c (read_process_output): Handle carryover correctly.
12947
129482008-02-01 Dave Love <fx@gnu.org>
12949
12950 * regex.c (re_search_2): Fix last change.
12951
129522008-02-01 Kenichi Handa <handa@m17n.org>
12953
12954 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
12955 target_multibyte. Even in a unibyte case, return a converted
12956 multibyte char.
12957 (GET_CHAR_AFTER): New macro.
12958 (PATFETCH): Translate via multibyte char.
12959 (HANDLE_UNIBYTE_RANGE): Delete this macro.
12960 (SETUP_MULTIBYTE_RANGE): New macro.
12961 (regex_compile): Setup compiled code so that its multibyteness
12962 matches that of a target. Fix the handling of "[X-YZ]" using
12963 SETUP_MULTIBYTE_RANGE.
12964 (analyse_first) <charset>: For filling fastmap for all multibyte
12965 characters, don't check by BASE_LEADING_CODE_P.
12966 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
12967 the same as RE_MULTIBYTE_P (bufp) now.
12968 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
12969 (TARGET_CHAR_AND_LENGTH): Delete this macro.
12970 (TRANSLATE_VIA_MULTIBYTE): New macro.
12971 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
12972 It is the same as RE_MULTIBYTE_P (bufp) now.
12973 <exactn>: Translate via multibyte.
12974 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
12975 translate it.
12976 <charset, charset_not>: Fetch a character by
12977 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
12978 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
12979 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
12980 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
12981 by GET_CHAR_AFTER.
12982 (bcmp_translate): Likewise.
12983
12984 * search.c (compile_pattern): Check the member target_multibyte,
12985 not the member multibyte of buf.
12986
12987 * lread.c (read1): While reading a string, set force_singlebyte
12988 and force_multibyte correctly.
12989
12990 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
12991 up of unibyte_to_multibyte_table.
12992
129932008-02-01 Kenichi Handa <handa@m17n.org>
12994
12995 * coding.c (setup_coding_system): If coding has
12996 post-read-conversion or pre-write-conversion, set
12997 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
12998 respectively.
12999 (decode_coding_gap): Run post-read-conversion if any.
13000
13001 * fileio.c (Finsert_file_contents): Even if we read into a
13002 unibyte buffer, check if we must decode the result or not.
13003
130042008-02-01 Kenichi Handa <handa@m17n.org>
13005
13006 * coding.c (make_conversion_work_buffer): Change the work buffer
13007 name to the same one as that of Emacs 21.
13008
130092008-02-01 Kenichi Handa <handa@m17n.org>
13010
13011 * coding.h (make_conversion_work_buffer): Adjust prototype.
13012 (code_conversion_restore): Don't extern it.
13013
13014 * coding.c (detected_mask): Delete unused variable.
13015 (decode_coding_iso_2022): Pay attention to the byte sequence of
13016 CTEXT extended segment, and retain those bytes as is.
13017 (decode_coding_ccl): Delete unused variable `valids'.
13018 (setup_coding_system): Delete unused variable `category'.
13019 (consume_chars): Delete unused variable `category'. Make it work
13020 for non-multibyte case.
13021 (make_conversion_work_buffer): Change argument.
13022 (saved_coding): Delete unused variable.
13023 (code_conversion_restore): Don't check saved_coding->destination.
13024 (code_conversion_save): New function.
13025 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
13026 instead of record_unwind_protect.
13027 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
13028 (detect_coding_system): Delete unused variable `mask'.
13029 (Fdefine_coding_system_internal): Delete unused variable id.
13030
13031 * fileio.c (kill_workbuf_unwind): New function.
13032 (Finsert_file_contents): On replacing, call
13033 make_conversion_work_buffer with correct args, and call
13034 record_unwind_protect with the first arg kill_workbuf_unwind.
13035
13036 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
13037
130382008-02-01 Kenichi Handa <handa@m17n.org>
13039
13040 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
13041 (fontset_add): Fix for the case that TO is less than TO1.
13042 (Ffontset_info): Don't use fallback fontset on checking the
13043 default fontset.
13044 (dump_fontset): New function for debugging.
13045
13046 * coding.c (Fdefine_coding_system_internal): Fix for the case that
13047 coding_type is Qcharset.
13048
130492008-02-01 Kenichi Handa <handa@m17n.org>
13050
13051 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
13052 (map_char_table): Don't inherit the value from the parent on
13053 initializing VAL. Adjust for the above change.
13054
130552008-02-01 Kenichi Handa <handa@m17n.org>
13056
13057 * coding.c (Qsignature, Qendian): Delete these variables.
13058 (syms_of_coding): Don't initialize them.
13059 (CATEGORY_MASK_UTF_16_AUTO): New macro.
13060 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
13061 detect_info->found.
13062 (decode_coding_utf_16): Don't detect BOM here.
13063 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
13064 is NOT utf_16_without_bom.
13065 (setup_coding_system): For a coding system of type utf-16, check
13066 if the attribute :endian is Qbig or not (not nil or not), and set
13067 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
13068 (detect_coding): If coding type is utf-16 and BOM detection is
13069 required, detect it.
13070 (Fdefine_coding_system_internal): For a coding system of type
13071 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
13072
130732008-02-01 Kenichi Handa <handa@m17n.org>
13074
13075 * coding.c (coding_set_source): Fix for the case that the current
13076 buffer is different from coding->src_object.
13077 (decode_coding_object): Don't use the conversion work buffer if
13078 DST_OBJECT is a buffer.
13079
130802008-02-01 Dave Love <fx@gnu.org>
13081
13082 * lread.c (read_emacs_mule_char) [len==2]: Index
13083 emacs_mule_charset correctly.
13084
130852008-02-01 Dave Love <fx@gnu.org>
13086
13087 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
13088 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
13089 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
13090 treated specially.)
13091 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
13092 (detected_mask): Remove Big5 bits.
13093
130942008-02-01 Kenichi Handa <handa@m17n.org>
13095
13096 The following changes are to make the font rescaling facility
13097 compatible with Emacs 21.
13098
13099 * xfaces.c (Vface_font_rescale_alist): Rename from
13100 Vface_resizing_fonts.
13101 (struct font_name): Rename member resizing_ratio to rescale_ratio.
13102 (font_rescale_ratio): Rename from font_resizing_ratio.
13103 (split_font_name): Set font->rescale_ratio.
13104 (better_font_p): Pay attention to font->rescale_ratio.
13105 (build_scalable_font_name): Likewise. Change RESX, and RESY
13106 fields.
13107 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
13108
131092008-02-01 Kenichi Handa <handa@m17n.org>
13110
13111 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
13112 (Qutf_16_le): Remove these variables.
13113 (syms_of_coding): Don't DEFSYM them.
13114 (decode_coding_utf_16): Fix handling of BOM.
13115 (encode_coding_utf_16): Fix handling of BOM.
13116
131172008-02-01 Kenichi Handa <handa@m17n.org>
13118
13119 * fileio.c (Finsert_file_contents): On replacing, before decoding
13120 the file into the work buffer, set point of the work buffer to the end.
13121
131222008-02-01 Dave Love <fx@gnu.org>
13123
13124 * coding.c (Fcheck_coding_systems_region): Fix type errors.
13125
131262008-02-01 Dave Love <fx@gnu.org>
13127
13128 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
13129 and fix C types.
13130
131312008-02-01 Kenichi Handa <handa@m17n.org>
13132
13133 * xdisp.c (SKIP_GLYPHS): New macro.
13134 (set_cursor_from_row): Pay attention to string display properties.
13135
13136 * category.c (copy_category_entry): Fix for the case that RANGE
13137 is an integer.
13138
13139 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
13140
13141 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
13142
131432008-02-01 Kenichi Handa <handa@m17n.org>
13144
13145 * charset.c (Fcharset_id_internal): New function.
13146 (syms_of_charset): Defsubr it.
13147
13148 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
13149 with the last arg charset_list acquired from coding.
13150 (Fdefine_coding_system_internal): For ccl-based coding system, fix
13151 the attribute coding_attr_ccl_valids.
13152
13153 * coding.h (enum define_coding_ccl_arg_index): Set the first
13154 member coding_arg_ccl_decoder to coding_arg_max.
13155
13156 * ccl.h (ccl_driver): Adjust prototype.
13157
13158 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
13159 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 13160 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
13161 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
13162 last arg Qnil.
13163
131642008-02-01 Kenichi Handa <handa@m17n.org>
13165
13166 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
13167 call encode_char.
13168
13169 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
13170
131712008-02-01 Dave Love <fx@gnu.org>
13172
13173 * composite.c (syms_of_composite): Make composition_hash_table weak.
13174
131752008-02-01 Kenichi Handa <handa@m17n.org>
13176
13177 * dispextern.h (check_face_attributes, generate_ascii_font_name)
13178 (font_name_registry): Don't extern them.
13179 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
13180
13181 * fontset.h (Qfontset): Don't extern it.
13182 (new_fontset_from_font_name): Extern it.
13183
13184 * fontset.c: Give 8 extra slots to fontset objects.
13185 (Qfontset_info): New variable.
13186 (syms_of_fontset): Defsym it.
13187 (FONTSET_FALLBACK): New macro.
13188 (fontset_face): Try also the default fontset.
13189 (make_fontset): Realize a fallback fontset from the default fontset.
13190 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
13191 using split_font_name_into_vector and build_font_name_from_vector.
13192 (Fset_fontset_font): Access the elements of font_spec by enum
13193 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
13194 name by using split_font_name_into_vector.
13195 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
13196 generate a proper font name from the fontset name. Update
13197 Vfontset_alias_alist.
13198 (n_auto_fontsets): New variable.
13199 (new_fontset_from_font_name): New function.
13200 (Ffont_info): Store the information about fonts generated from the
13201 default fontset in the first extra slot of the returned char-table.
13202
13203 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
13204 (font_name_registry): Delete function.
13205 (split_font_name_into_vector): New function.
13206 (build_font_name_from_vector): New function.
13207 (font_list): The argument REGISTRY is now a list of registry names.
13208 (choose_face_font): If we are choosing an ASCII font, and ATTRS
13209 specifies an explicit font name, return the name as is. Make a
13210 list of registy names.
13211
13212 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
13213 of x_new_fontset.
13214 (Fx_create_frame): Don't call x_new_fontset here. Just use
13215 x_list_fonts to check the existence of fonts.
13216
13217 * xterm.h (x_new_fontset): Adjust prototype.
13218
13219 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
13220 string. Use new_fontset_from_font_name to create a fontset from a
13221 font name.
13222
132232008-02-01 Kenichi Handa <handa@m17n.org>
13224
13225 * syntax.c (Vfind_word_boundary_function_table): New name for
13226 Vnext_word_boundary_function_table.
13227 (find-word-boundary-function-table): New name for
13228 next-word-boundary-function-table.
13229
132302008-02-01 Dave Love <fx@gnu.org>
13231
13232 * Makefile.in: Fix some dependencies.
13233
13234 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
13235 set it to nil before returning.
13236
13237 * composite.c (update_compositions): Fix type error.
13238
13239 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
13240
132412008-02-01 Kenichi Handa <handa@m17n.org>
13242
13243 * xterm.c (x_new_font): Optimize for the case that the font is
13244 already set for the frame.
13245
132462008-02-01 Kenichi Handa <handa@m17n.org>
13247
13248 * chartab.c (char_table_ascii): Check if the char table contents
13249 is sub-char-table or not.
13250 (char_table_set, char_table_set_range): Fix argument to
13251 char_table_ascii.
13252
13253 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
13254 (detect_coding_utf_8, detect_coding_utf_16)
13255 (detect_coding_emacs_mule, detect_coding_iso_2022)
13256 (detect_coding_sjis, detect_coding_big5)
13257 (detect_coding_ccl, detect_coding_charset): Change argument MASK
13258 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
13259 sequence is valid in this coding system. Change callers.
13260 (MAX_ANNOTATION_LENGTH): New macro.
13261 (ADD_ANNOTATION_DATA): New macro.
13262 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
13263 ADD_ANNOTATION_DATA. Change the format of annotation data.
13264 (ADD_CHARSET_DATA): New macro.
13265 (emacs_mule_char): New argument ID. Change callers.
13266 (decode_coding_emacs_mule, decode_coding_iso_2022)
13267 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
13268 Produce charset annotation data in coding->charbuf.
13269 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
13270 to charset annotation data in coding->charbuf.
13271 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
13272 coding->common_flags if the coding system is iso-2022 based and
13273 uses designation.
13274 (produce_composition): Adjust for the new annotation data format.
13275 (produce_charset): New function.
13276 (produce_annotation): Handle charset annotation.
13277 (handle_composition_annotation, handle_charset_annotation): New
13278 functions.
13279 (consume_chars): Handle charset annotation. Utilize the above two
13280 functions.
13281 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
13282 buffer, get the deleted text as a string and set
13283 coding->src_object to that string.
13284 (detect_coding, detect_coding_system): Use the new struct
13285 coding_detection_info.
13286
13287 * coding.h (struct coding_detection_info): New structure.
13288 (struct coding_system): Adjust prototype of the member `detector'.
13289 (CODING_ANNOTATE_CHARSET_MASK): New macro.
13290
132912008-02-01 Kenichi Handa <handa@m17n.org>
13292
13293 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
13294
132952008-02-01 Dave Love <fx@gnu.org>
13296
13297 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
13298 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
13299 to new local and nullify apropos_accumulate before returning.
13300 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
13301
133022008-02-01 Kenichi Handa <handa@m17n.org>
13303
13304 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
13305 correctly.
e3eea1fc 13306
aac0c6e3
MR
133072008-02-01 Dave Love <fx@gnu.org>
13308
13309 * fns.c (Flanginfo): Call synchronize_system_time_locale.
13310
133112008-02-01 Kenichi Handa <handa@m17n.org>
13312
13313 The following changes are to make character composition happen
13314 automatically on displaying.
13315
13316 * Makefile.in (lisp, shortlisp): Add composite.elc.
13317
13318 * composite.h (Qauto_composed, Vauto_composition_function)
13319 (Qauto_composition_function): Extern them.
13320
13321 * composite.c (Vcomposition_function_table)
13322 (Qcomposition_function_table): Delete variables.
13323 (Qauto_composed, Vauto_composition_function)
13324 (Qauto_composition_function): New variables.
13325 (run_composition_function): Don't call
13326 compose-chars-after-function.
13327 (update_compositions): Clear `auto-composed' text property.
13328 (compose_chars_in_text): Delete this function.
13329 (syms_of_composite): Staticpro Qauto_composed and
13330 Qauto_composition_function. Declare Vauto_composition_function as
13331 a Lisp variable.
13332
13333 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
13334
13335 * xdisp.c (it_props): Add an entry for Qauto_composed.
13336 (handle_auto_composed_prop): New function.
13337
13338 * xselect.c (selection_data_to_lisp_data): Don't call
13339 compose_chars_in_text.
13340
133412008-02-01 Dave Love <fx@gnu.org>
13342
13343 * keyboard.c (read_char): Modify checking around use of
13344 Vkeyboard_translate_table.
13345
13346 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
13347 and fix C types.
13348
133492008-02-01 Kenichi Handa <handa@m17n.org>
13350
13351 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
13352 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
13353 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
13354 the case that the last byte is '\r' correctly.
13355 (decode_coding): Flush out the unprocessed data correctly.
13356 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
13357
133582008-02-01 Dave Love <fx@gnu.org>
13359
13360 * xterm.c (XTread_socket): Fix changes for defined keysyms.
13361 Add XK_ISO... case.
13362 (xaw_scroll_callback): Revert last change.
13363
133642008-02-01 Kenichi Handa <handa@m17n.org>
13365
13366 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
13367
133682008-02-01 Kenichi Handa <handa@m17n.org>
13369
13370 * xfaces.c (Vface_resizing_fonts): New variable.
13371 (struct font_name): New member `resizing_ratio'.
13372 (font_resizing_ratio): New function.
13373 (split_font_name): Set font->resizing_ratio.
13374 (better_font_p): Pay attention to font->resizing_ratio.
13375 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
13376 RESX, and RESY fields.
13377 (try_alternative_families): Try scalable fonts if
13378 Vscalable_fonts_allowed is not Qt.
13379 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
13380
133812008-02-01 Dave Love <fx@gnu.org>
13382
13383 * xterm.c (xaw_scroll_callback): Cast correctly.
13384
133852008-02-01 Dave Love <fx@gnu.org>
13386
13387 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
13388 (lispy_kana_keys): Comment out.
13389 (make_lispy_event) [XK_kana_A]: Comment out.
13390
13391 * xterm.c (xaw_scroll_callback): Cast call_data.
13392 (XTread_socket): Deal with ASCII keysyms.
13393 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
13394
133952008-02-01 Dave Love <fx@gnu.org>
13396
13397 * xterm.c (Vx_keysym_table): New.
13398 (syms_of_xterm): Initialize it.
13399 (XTread_socket): Use it.
13400 From head: Eliminate incorrect optimization that tried to avoid
13401 decoding the output of X*LookupString.
13402 (x_get_font_repertory): Delete charset declaration.
13403
134042008-02-01 Kenichi Handa <handa@m17n.org>
13405
13406 * coding.c (detect_coding_charset): If only ASCII bytes are found,
13407 return 0.
13408 (Fdefine_coding_system_internal): Setup
13409 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
13410
134112008-02-01 Dave Love <fx@gnu.org>
13412
13413 * coding.c (Fcheck_coding_system): Doc fix.
13414
13415 * editfns.c (Finsert_byte): Return a proper value.
13416
134172008-02-01 Kenichi Handa <handa@m17n.org>
13418
13419 * coding.c (decode_coding): Fix args to translate_chars. Pay
13420 attention to Vstandard_translation_table_for_decode.
13421 (encode_coding): Fix args to translate_chars. Pay attention to
13422 Vstandard_translation_table_for_encode.
13423
13424 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
13425 SINGLE_BYTE_CHAR_P.
13426
13427 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
13428 not by SINGLE_BYTE_CHAR_P.
13429
13430 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
13431 SINGLE_BYTE_CHAR_P.
13432
13433 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
13434 SINGLE_BYTE_CHAR_P.
13435
13436 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
13437 by SINGLE_BYTE_CHAR_P.
13438
13439 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
13440 SINGLE_BYTE_CHAR_P.
13441
134422008-02-01 Dave Love <fx@gnu.org>
13443
13444 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
13445
134462008-02-01 Dave Love <fx@gnu.org>
13447
13448 * fns.c (Flanginfo): Fix typo.
13449
13450 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
13451
134522008-02-01 Kenichi Handa <handa@m17n.org>
13453
13454 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
13455 (detect_coding_emacs_mule, detect_coding_iso_2022)
13456 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
13457 incomplete byte sequence. Don't update *mask when correctly detected.
13458 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
13459 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
13460 (detect_coding, detect_coding_system): Adjust for the changes above.
13461
134622008-02-01 Kenichi Handa <handa@m17n.org>
13463
13464 * character.c (char_string): Rename from
13465 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
13466 (string_char): Rename from string_char.
13467
13468 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
13469 if C is greater than MAX_3_BYTE_CHAR.
13470 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
13471 string_char instead of string_char_with_unification.
13472
134732008-02-01 Dave Love <fx@gnu.org>
13474
13475 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
13476
134772008-02-01 Kenichi Handa <handa@m17n.org>
13478
13479 * keymap.c (push_key_description): Pay attention to force_multibyte.
13480
13481 * regex.c (re_search_2): Fix for the case of unibyte buffer.
13482
134832008-02-01 Dave Love <fx@gnu.org>
13484
13485 * charset.c (define_charset_internal): Rename `supprementary'.
13486
13487 * Makefile.in (lisp, shortlisp): Remove latin-N.
13488
134892008-02-01 Dave Love <fx@gnu.org>
13490
13491 * xfns.c (x_window, x_window): Use use_xim.
13492
13493 * xterm.c (use_xim): Initialize.
13494 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
13495 (x_term_init): Maybe set use_xim.
13496
13497 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
13498
134992008-02-01 Kenichi Handa <handa@m17n.org>
13500
13501 * search.c (search_buffer): Fix case-fold-search of multibyte
13502 characters.
13503 (boyer_moore): Rename the last argument to char_high_bits.
13504
135052008-02-01 Kenichi Handa <handa@m17n.org>
13506
13507 * xdisp.c (display_string): Fix for the case of zero width glyph.
13508
13509 * xfns.c (x_set_font): Change the error message of the case that
13510 x_new_fontset returns Qt.
13511
13512 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
13513 (Finternal_set_lisp_face_attribute): Use signal_error for the
13514 error of invalid fontset.
13515
13516 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
13517 fontset, return Qt.
13518
135192008-02-01 Dave Love <fx@gnu.org>
13520
13521 * unexelf.c (unexec): Make .got handling not SGI-specific.
13522
13523 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
13524
13525 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
13526
13527 * keyboard.c (read_key_sequence): Fix type error.
13528
13529 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
13530 type error.
13531
13532 * fontset.c (fontset_add): Return Lisp_Object.
13533
135342008-02-01 Dave Love <fx@gnu.org>
13535
13536 * charset.h (charset_ordered_list_tick): Declare extern.
13537
135382008-02-01 Kenichi Handa <handa@m17n.org>
13539
13540 The following changes (and some of 2008-02-01 changes of mine) are
13541 for handling syntax, category, and case conversion for unibyte
13542 characters by converting them to multibyte on the fly. With these
13543 changes, we don't have to setup syntax and case tables for unibyte
13544 characters in each language environment.
13545
13546 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
13547 multibyte if necessary.
13548
13549 * bytecode.c (Fbyte_code): Likewise.
13550
13551 * character.h (LEADING_CODE_LATIN_1_MIN)
13552 (LEADING_CODE_LATIN_1_MAX): New macros.
13553 (unibyte_to_multibyte_table): Extern it.
13554 (unibyte_char_to_multibyte): New macro.
13555 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
13556 (CHAR_LEADING_CODE): New macro.
13557 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
13558
13559 * character.c (unibyte_to_multibyte_table): New variable.
13560 (unibyte_char_to_multibyte): Move to character.h and define as macro.
13561 (multibyte_char_to_unibyte): If C is an eight-bit character,
13562 convert it to the corresponding byte value.
13563
13564 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
13565 not 1, signals an error. Update the elements of
13566 unibyte_to_multibyte_table.
13567 (init_charset_once): Initialize unibyte_to_multibyte_table.
13568 (syms_of_charset): Define the charset `iso-8859-1'.
13569
13570 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
13571 as is without converting it to unibyte. In a unibyte buffer,
13572 convert C to multibyte before checking the syntax.
13573
13574 * lisp.h (unibyte_char_to_multibyte): Delete extern.
13575
13576 * minibuf.c (Fminibuffer_complete_word): Use the macro
13577 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
13578
13579 * regex.h (struct re_pattern_buffer): New member target_multibyte.
13580
13581 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
13582 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
13583 that is zero, convert an eight-bit char to multibyte.
13584 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
13585 non-emacs case.
13586 (PATFETCH): Convert an eight-bit char to multibyte.
13587 (HANDLE_UNIBYTE_RANGE): New macro.
13588 (regex_compile): Setup the compiled pattern for multibyte chars
13589 even if the given regex string is unibyte. Use PATFETCH_RAW
13590 instead of PATFETCH in many places. To handle `charset'
13591 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
13592 only for ASCII chars.
13593 (analyse_first) <exactn>: Simplify because the compiled pattern
13594 is multibyte.
13595 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
13596 <charset>: Use CHAR_LEADING_CODE to get leading codes.
13597 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
13598 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
13599 multibyte always 1.
13600 (re_search_2): In emacs, set the locale variable multibyte to 1,
13601 otherwise to 0. New local variable target_multibyte. Check it
13602 to decide the multibyteness of STR1 and STR2. If
13603 target_multibyte is zero, convert unibyte chars to multibyte
13604 before translating and checking fastmap.
13605 (TARGET_CHAR_AND_LENGTH): New macro.
13606 (re_match_2_internal): In emacs, set the locale variable multibyte
13607 to 1, otherwise to 0. New local variable target_multibyte. Check
13608 it to decide the multibyteness of STR1 and STR2. Use
13609 TARGET_CHAR_AND_LENGTH to fetch a character from D.
13610 <charset, charset_not>: If multibyte is nonzero, check fastmap
13611 only for ASCII chars. Call bcmp_translate with
13612 target_multibyte, not with multibyte.
13613 <begline>: Declare the local variable C as `unsigned'.
13614 (bcmp_translate): Change the last arg name to target_multibyte.
13615
13616 * search.c (compile_pattern_1): Don't adjust the multibyteness of
13617 the regexp pattern and the matching target. Set cp->buf.multibyte
13618 to the multibyteness of the regexp pattern. Set
13619 cp->but.target_multibyte to the multibyteness of the matching target.
13620 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
13621 FETCH_STRING_CHAR_ADVANCE.
13622 (Freplace_match): Convert unibyte chars to multibyte.
13623
13624 * syntax.c (char_quoted, back_comment, scan_words)
13625 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
13626 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
13627 unibyte chars to multibyte.
13628 (skip_chars): Delete the arg syntaxp, and move the code for
13629 handling syntaxes to skip_syntaxes. Change callers.
13630 Fix the case that the multibyteness of STRING and the current
13631 buffer doesn't match.
13632 (skip_syntaxes): New function.
13633 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
13634 SINGLE_BYTE_CHAR_P.
13635
136362008-02-01 Kenichi Handa <handa@m17n.org>
13637
13638 * xfaces.c (QCfontset): New variable.
13639 (LFACE_FONTSET): New macro.
13640 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
13641 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
13642 (Finternal_set_lisp_face_attribute)
13643 (Finternal_get_lisp_face_attribute): Handle QCfontset.
13644 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
13645 check also LFACE_FONTSET_INDEX.
13646 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
13647 attrs[LFACE_FONT_INDEX].
13648 (syms_of_xfaces): Intern and staticpro QCfontset.
13649
13650 * dispextern.h (enum lface_attribute_index): New member
13651 LFACE_FONTSET_INDEX.
13652
13653 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
13654
136552008-02-01 Kenichi Handa <handa@m17n.org>
13656
13657 * coding.c (coding_set_destination): Fix coding->destination for
13658 the case converting a region.
13659 (encode_coding_utf_8): Encode eight-bit chars as single byte.
13660 (encode_coding_object): Fix coding->dst_pos and
13661 coding->dst_pos_byte for the case converting a region.
13662
13663 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
13664
13665 * character.h (BYTE8_STRING): New macro.
13666
13667 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
13668
136692008-02-01 Kenichi Handa <handa@m17n.org>
13670
13671 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
13672 characters by octal form.
13673
13674 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
13675
13676 * buffer.h (_fetch_multibyte_char_len): Delete extern.
13677 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
13678 _fetch_multibyte_char_len.
13679 (FETCH_CHAR_AS_MULTIBYTE): New macro.
13680
13681 * casetab.c (set_canon, set_identity, shuffle): Simplify.
13682
13683 * casefiddle.c (casify_object): Simplify. Handle the case that
13684 the case conversion change the byte length.
13685 (casify_region): Likewise.
13686
13687 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
13688
13689 * character.c (_fetch_multibyte_char_len): Delete this variable.
13690 (syms_of_character): Setup Vprintable_chars.
13691
13692 * editfns.c (Fchar_equal): Fix for the unibyte case.
13693 (Finsert_byte): New function.
13694 (syms_of_editfns): Defsubr it.
13695
13696 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
13697 of direct code 0x3ffff.
13698
13699 * search.c (Freplace_match): Fix for the unibyte case.
13700
137012008-02-01 Kenichi Handa <handa@m17n.org>
13702
13703 * lread.c (safe_to_load_p): Fix the logic.
13704
13705 * syntax.c (scan_words): Don't treat characters belonging to
13706 different scripts as constituting a word.
13707
13708 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
13709
13710 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
13711
13712 * emacs.c (main): In the case of --unibyte, instead of aborting on
13713 finding non-empty buffer, make it unibyte.
13714
137152008-02-01 Kenichi Handa <handa@m17n.org>
13716
13717 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
13718 to create a fontset.
13719
137202008-02-01 Dave Love <fx@gnu.org>
13721
13722 * character.c (Funibyte_char_to_multibyte): Doc fix.
13723
13724 * xfns.c [HAVE_STDLIB_H]: Fix last change.
13725
137262008-02-01 Kenichi Handa <handa@m17n.org>
13727
13728 * fontset.c (fontset_add): Make the type `int'.
13729 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
13730
13731 * character.c (unibyte_char_to_multibyte)
13732 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
13733 charset_unibyte, not charset_primary.
13734
13735 * charset.h (charset_unibyte): Extern it instead of charset_primary.
13736
13737 * charset.c (charset_unibyte): Rename from charset_primary.
13738 (Funibyte_charset): Rename from Fprimary_charset.
13739 (Fset_unibyte_charset): Rename from Fset_primary_charset.
13740 (syms_of_charset): Adjust for the above changes.
13741
13742 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
13743 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
13744 it->multibyte_p is zero.
13745
13746 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
13747 Delete extern.
13748
137492008-02-01 Kenichi Handa <handa@m17n.org>
13750
13751 * coding.c (Fdefine_coding_system_internal): Fix category setting
13752 for a coding system of type iso-2022.
13753
137542008-02-01 Kenichi Handa <handa@m17n.org>
13755
13756 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
13757
137582008-02-01 Kenichi Handa <handa@m17n.org>
13759
13760 * syntax.c (Vnext_word_boundary_function_table): New variable.
13761 (next-word-boundary-function-table): Declare it as a Lisp variable
13762 in syms_of_syntax.
13763 (scan_words): Call functions in Vnext_word_boundary_function_table
13764 if any.
13765
13766 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
13767
13768 * fontset.c (fs_load_font): If fontp->charset is not negative,
13769 return fontp without setting its members.
13770
137712008-02-01 Dave Love <fx@gnu.org>
13772
13773 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
13774
13775 * m/sparc.h (HAVE_ALLOCA): Delete.
13776
13777 * s/irix6-5.h: Don't include strings.h.
13778 (bcopy, bzero, bcmp): Don't undef.
13779
13780 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
13781
13782 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
13783 (TIOCSIGSEND): Don't test IRIX6.
13784 (bcopy, bzero, bcmp): Define conditionally.
13785
137862008-02-01 Kenichi Handa <handa@m17n.org>
13787
13788 * buffer.c (Qas, Qmake, Qto): New variables.
13789 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
13790 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
13791
13792 * callproc.c (Fcall_process): Don't call insert_1_both directly if
13793 we are inserting a process output into a multibyte buffer.
13794
13795 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
13796 multibyte_char_to_unibyte.
13797
13798 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
13799 by the primary charset, make it eight-bit char.
13800 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
13801
13802 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
13803 (charset_8_bit__control, charset_8_bit_graphic)
13804 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
13805 (define_charset_internal): New function.
13806 (syms_of_charset): Call define_charset_internal for pre-defined
13807 charsets.
13808
13809 * charset.h (charset_8_bit): Extern it.
13810
13811 * coding.c (make_conversion_work_buffer): Adjust for the change
13812 of Fset_buffer_multibyte.
13813 (encode_coding_raw_text): Increment p0 in the loop.
13814
13815 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
13816
13817 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
13818 for the change of Fset_buffer_multibyte.
13819
13820 * fns.c (Fstring_to_multibyte): New function.
13821 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
13822
138232008-02-01 Dave Love <fx@gnu.org>
13824
13825 * xfns.c (x_put_x_image): Declare args.
13826
13827 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
13828 (try_font_list): Declare an arg.
13829
13830 * xdisp.c (message2_nolog, set_message): Declare an arg.
13831
13832 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
13833
13834 * syntax.c (scan_sexps_forward): Declare an arg.
13835
13836 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
13837 Declare an arg.
13838
13839 * lisp.h (Fnew_fontset): Declare.
13840
13841 * keymap.c (push_key_description): Call CHARACTERP correctly.
13842
13843 * fontset.c (fontset_add): Declare args. Call make_number correctly.
13844 (face_for_char): Delete unused vars.
13845 (Fset_fontset_font): Doc fix. Delete unused vars.
13846
13847 * doc.c (Fsubstitute_command_keys): Delete unused vars.
13848
13849 * composite.c (update_compositions): Declare arg.
13850
13851 * cm.c (calccost, cmgoto): Declare args.
13852
13853 * charset.c: Remove `emacs' conditional. Doc fixes.
13854 (map_char_table_for_charset): Declare.
13855
13856 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
13857
13858 * ccl.c: Remove `emacs' conditional.
13859
138602008-02-01 Kenichi Handa <handa@m17n.org>
13861
13862 The following changes are to allow specifying multiple font
13863 patterns for a character range (specified by script or charset).
13864
13865 * Makefile.in (abbrev.o): Depend on syntax.h.
13866 (xfaces.o): Depend on charset.h.
13867
13868 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
13869 SINGLE_BYTE_CHAR_P.
13870
13871 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
13872
13873 * character.h (Vchar_script_table): Extern it.
13874
13875 * character.c (Vscript_alist): Delete.
13876 (Vchar_script_table, Qchar_script_table): New variable.
13877 (syms_of_character): Declare Vchar_script_table as a lisp variable
13878 and initialize it.
13879
13880 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
13881 have property char-table-extra-slots, make no extra slot.
13882
13883 * dispextern.h (struct face): Delete member `charset'.
13884 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
13885 SINGLE_BYTE_CHAR_P.
13886 (choose_face_font, lookup_non_ascii_face, font_name_registry):
13887 Add prototypes.
13888 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
13889 (generate_ascii_font_name): Rename from generate_ascii_font.
13890
13891 * fontset.h (get_font_repertory_func): New prototype.
13892 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
13893 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
13894
13895 * fontset.c (Qprepend, Qappend): New variables.
13896 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
13897 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
13898 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
13899 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
13900 (fontset_ref_and_range, fontset_add, reorder_font_vector)
13901 (load_font_get_repertory): New functions.
13902 (fontset_set): Delete.
13903 (fontset_face): New arg FACE. Return face ID, not face.
13904 Complete re-write to handle new fontset structure. Change caller.
13905 (free_face_fontset): Use ASET istead of AREF (X) = Y.
13906 (face_for_char): Don't call lookup_face.
13907 (make_fontset_for_ascii_face): New arg FACE.
13908 (fs_load_font): New arg CHARSET_ID. Don't check
13909 Vfont_encoding_alist here.
13910 (find_font_encoding): New function.
13911 (list_fontsets): Use STRINGP, not ! NILP.
13912 (accumulate_script_ranges): New function.
13913 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
13914 re-written to handle new fontset structure.
13915 (Ffontset_font): Return a copy of element.
13916 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
13917 docstring of font-encoding-alist.
13918
13919 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
13920 (Fset_fotset_font): Fix arguments to 5.
13921
13922 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
13923
13924 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
13925 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
13926 (highlight_trailing_whitespace): Adjust for the change of
13927 lookup_named_face.
13928
13929 * xfaces.c: Include charset.h.
13930 (load_face_font): Delete argument C. Change caller.
13931 (generate_ascii_font_name): Rename from generate_ascii_font.
13932 (font_name_registry): New function.
13933 (cache_face): Store ascii faces before non-ascii faces in buckets.
13934 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
13935 Lookup only ascii faces.
13936 (lookup_non_ascii_face): New function.
13937 (lookup_named_face): Delete argument C. Change caller.
13938 (lookup_derived_face): Delete argument C. Change caller.
13939 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
13940 a string, just call font_list with it.
13941 (choose_face_font): Delete arguments FACE and C. New arg
13942 FONT_SPEC. Change caller.
13943 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
13944 Change caller.
13945 (realize_non_ascii_face): New function.
13946 (realize_x_face): Call load_face_font here.
13947 (realize_tty_face): Delete argument C. Change caller.
13948 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
13949 get a face ID.
13950 (dump_realized_face): Don't print charset of FACE.
13951
13952 * xfns.c (x_set_font): Always call x_new_fontset and
13953 store_frame_parameter.
13954 (Fx_create_frame): Call x_new_fontset, not x_new_font.
13955 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
13956
13957 * xterm.h (x_get_font_repertory): Extern it.
13958
13959 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
13960 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
13961 it->multibyte_p is zero.
13962 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
13963 (x_new_fontset): If FONTSETNAME doesn't match any existing
13964 fontsets, create a new one.
13965 (x_get_font_repertory): New function.
13966
139672008-02-01 Kenichi Handa <handa@m17n.org>
13968
13969 * coding.c (Ffind_coding_systems_region_internal): Detect an
13970 ASCII only string correctly.
13971
13972 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
13973 version is 0.
13974
139752008-02-01 Kenichi Handa <handa@m17n.org>
13976
13977 * lread.c: Include "coding.h".
13978 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
13979 (load_each_byte, unread_char): New variables.
13980 (readchar_backlog): Delete.
13981 (readchar): Return a character unless load_each_byte is nonzero.
13982 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
13983 cons. If unread_char is not -1, simply return it.
13984 (unreadchar): Handle the case that readcharfun is
13985 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
13986 (read_multibyte): Delete.
13987 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
13988 (read_emacs_mule_char): New functions.
13989 (Fload): Even if the file doesn't have the extension ".elc", if
13990 safe_to_load_p returns a positive version number, assume that the
13991 file contains bytecompiled code. If the version is less than 22,
13992 load the file while decoding multibyte sequences by emacs-mule.
13993 (readevalloop): Don't use readchar_backlog.
13994 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
13995 (Fread_from_string): Pay attention to the case that STREAM is a cons.
13996 (read_escape): Delete the arg BYTEREP.
13997 (read1): Set load_each_byte to 1 temporarily while handling
13998 #@NUMBER. Don't call read_multibyte.
13999 (read_vector): Call Fread with a cons. If readcharfun is
14000 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
14001 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
14002 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
14003 and Qload_force_doc_strings.
14004
140052008-02-01 Kenichi Handa <handa@m17n.org>
14006
14007 * xdisp.c (face_before_or_after_it_pos): Call
14008 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
14009
140102008-02-01 Kenichi Handa <handa@m17n.org>
14011
14012 * character.h (TRAILING_CODE_P): New macro.
14013 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
14014 (string_char_with_unification): Fix prototype.
14015 (Vscript_alist): Extern it.
14016
14017 * character.c (Vscript_alist): New variable.
14018 (string_char_with_unification, str_as_unibyte)
14019 (string_escape_byte8): Add `const' to local variables.
14020 (syms_of_character): Declare script-alist as a Lisp variable.
14021
14022 * charset.h (Vcharset_ordered_list): Extern it.
14023 (charset_ordered_list_tick): Extern it.
14024 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
14025 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
14026 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
14027 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
14028 (Funify_charset): Adjust for the change of Funify_charset.
14029
14030 * charset.c (charset_ordered_list_tick): New variable.
14031 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
14032 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
14033 deunify intead of unify a charset.
14034 (string_xstring_p): Add `const' to local variables.
14035 (find_charsets_in_text): Add `const' to arguments and local variables.
14036 (encode_char): Adjust for the change of Funify_charset. Fix
14037 detecting of invalid code.
14038 (Fset_charset_priority): Increment charset_ordered_list_tick.
14039 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
14040 and TO_CODE.
14041
14042 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
14043 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
14044 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
14045 (decode_coding_ccl, consume_chars)
14046 (Ffind_coding_systems_region_internal)
14047 (Fcheck_coding_systems_region): Add `const' to local variables.
14048
14049 * print.c (print_object): Use octal form for printing the
14050 contents of a bool vector.
14051
140522008-02-01 Dave Love <fx@gnu.org>
14053
14054 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
14055 <version == 20>: Refuse to load.
14056
140572008-02-01 Dave Love <fx@gnu.org>
14058
14059 * fns.c: Move coding.h.
14060 (Qcodeset, Qdays, Qmonths): New.
14061 (concat): Use CHARACTERP instead of INTEGERP.
14062 (Flocale_codeset): Delete.
14063 (Flanginfo): New function.
14064 (syms_of_fns): Change accordingly.
14065
14066 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
14067
140682008-02-01 Dave Love <fx@gnu.org>
14069
14070 * casetab.c (init_casetab_once, init_casetab_once): Fix
14071 CHAR_TABLE_SET call.
14072
14073 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
14074
14075 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
14076
14077 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
14078 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
14079 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
14080
14081 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
14082
14083 * coding.c (ENCODE_DESIGNATION, decode_eol)
14084 (make_conversion_work_buffer, code_conversion_restore)
14085 (Fdefine_coding_system_internal): Convert Lisp types.
14086 (code_conversion_restore): Use EQ, not ==.
14087 (Fencode_coding_string): Fix code_convert_string call.
14088
14089 * coding.h (code_convert_region): Fix prototype.
14090
14091 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
14092
14093 * fontset.c (fontset_ref, fontset_set, fs_load_font)
14094 (Ffontset_info): Convert Lisp types.
14095
14096 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
14097
14098 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
14099
14100 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
14101
14102 * chartab.c: Include "...h", not <...h> in some cases.
14103
14104 * callproc.c (Fcall_process): Remove unused variables.
14105
141062008-02-01 Dave Love <fx@gnu.org>
14107
14108 * coding.c (Fset_coding_system_priority): Allow null arg list.
14109
141102008-02-01 Dave Love <fx@gnu.org>
14111
14112 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
14113 (Fself_insert_and_exit): Use CHARACTERP.
14114
14115 * callproc.c (Fcall_process): Remove unused vars.
14116
14117 * xterm.c (XTread_socket): Add extra dead keysyms.
14118
14119 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
14120
14121 * dispextern.h: Remove prototypes for redraw_frame,
14122 redraw_garbaged_frames.
14123
14124 * cmds.c (Fself_insert_command): Use CHARACTERP.
14125
14126 * chartab.c (make_sub_char_table): Remove unused var.
14127 (Fset_char_table_default, Fmap_char_table): Doc fix.
14128
14129 * keymap.c (access_keymap): Remove generic char code.
14130 (push_key_description): Use CHARACTERP.
14131
141322008-02-01 Dave Love <fx@gnu.org>
14133
14134 * charset.c: Doc fixes.
14135 (Funify_charset): Extra checking.
14136
141372008-02-01 Dave Love <fx@gnu.org>
14138
14139 * lread.c: Remove some unused variables.
14140 (safe_to_load_p): If safe, return the magic number version byte.
14141 (Fload): Maybe use load-with-code-conversion.
14142
141432008-02-01 Kenichi Handa <handa@m17n.org>
14144
14145 * category.c (Fmodify_category_entry): Don't modify the contents
14146 of category_set for characters out of the range. Avoid
14147 unnecessary modification.
14148
14149 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
14150 Vchar_unify_table. The default value of the table is now nil.
14151
14152 * character.c (syms_of_character): Setup Vchar_width_table for
14153 eight-bit-control and raw-byte chars.
14154
14155 * charset.h (enum define_charset_arg_index): Delete
14156 charset_arg_parents and add charset_arg_subset and
14157 charset_arg_superset.
14158 (enum charset_attr_index): Delete charset_parents and add
14159 charset_subset and charset_superset.
14160 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
14161 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
14162 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
14163 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
14164 (CHARSET_SUPERSET): New macros.
14165 (charset_work): Extern it.
14166 (ENCODE_CHAR): Use charset_work.
14167 (CHAR_CHARSET_P): Adjust for the change of encoder format.
14168 (map_charset_chars): Extern it.
14169
14170 * charset.c (load_charset_map): Set the default value of encoder
14171 and deunifier char-tables to nil.
14172 (map_charset_chars): Change argument. Change callers. Use
14173 map_char_table_for_charset instead of map_char_table.
14174 (Fmap_charset_chars): New optional args from_code and to_code.
14175 (Fdefine_charset_internal): Adjust for the change of
14176 `define-charset' (:parents -> :subset or :superset).
14177 (charset_work): New variable.
14178 (encode_char, syms_of_charset): Adjust for the change of
14179 Fdefine_charset_internal.
14180 (Ffind_charset_string): Setup the vector `charsets' correctly.
14181
14182 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
14183 the previous change.
14184 (char_table_ref_and_range): Adjust for the above change.
14185 (map_sub_char_table_for_charset): New function.
14186 (map_char_table_for_charset): New function.
14187
14188 * keymap.c (describe_vector): Handle a char-table directly here.
14189 (describe_char_table): Delete.
14190
14191 * lisp.h (map_charset_chars): Delete.
14192
141932008-02-01 Dave Love <fx@gnu.org>
14194
14195 * fns.c (count_combining): Comment out (unused).
14196 (Flocale_codeset): New.
14197 (syms_of_fns): Defsubr it.
14198
14199 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
14200 (size_t): Remove.
14201
142022008-02-01 Dave Love <fx@gnu.org>
14203
14204 * Makefile.in (chartab.o): Depend on charset.h.
14205
142062008-02-01 Kenichi Handa <handa@m17n.org>
14207
14208 * character.c (syms_of_character): Set the default value of
14209 Vprintable_chars to Qnil.
14210
142112008-02-01 Dave Love <fx@gnu.org>
14212
14213 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
14214
142152008-02-01 Kenichi Handa <handa@m17n.org>
14216
14217 * charset.c (load_charset_map): Handle the case that from < to
14218 correctly.
14219
14220 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
14221 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
14222 Pay attention to raw-8-bit chars.
14223
142242008-02-01 Kenichi Handa <handa@m17n.org>
14225
14226 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
14227 It is not bytecompiled now.
14228
14229 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
14230 (charset_jisx0208): New variables.
14231 (Fdefine_charset_internal): Setup them if appropriate.
14232 (init_charset_once): Initialize them to -1.
14233
14234 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
14235 (charset_jisx0208): Extern them.
14236
14237 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
14238 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
14239 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
14240 (setup_iso_safe_charsets): Fix arguments to Fassq.
14241 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
14242 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
14243 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
14244 (encode_coding_iso_2022): Change the 1st arg to
14245 ENCODE_ISO_CHARACTER to a variable.
14246
142472008-02-01 Kenichi Handa <handa@m17n.org>
14248
14249 * charset.h (enum define_charset_arg_index): New enums
14250 charset_arg_min_code and charset_arg_max_code.
14251 (struct charset): New member char_index_offset.
14252
14253 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
14254 Take charset->char_index_offset into account.
14255 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
14256 args[charset_arg_max_code]. Setup charset.char_index_offset.
14257 (syms_of_charset): Fix args to Fdefine_charset_internal.
14258
142592008-02-01 Dave Love <fx@gnu.org>
14260
14261 * coding.c (decode_coding_utf_8): Reject overlong sequences.
14262
142632008-02-01 Dave Love <fx@gnu.org>
14264
14265 * coding.c: Doc fixes.
14266 (Fcoding_system_aliases): Fix return value.
14267 (Qmac): Remove (duplicated) definition.
14268
142692008-02-01 Dave Love <fx@gnu.org>
14270
14271 * charset.c (Fcharset_priority_list, Fset_charset_priority): New
14272 functions.
14273
14274 * character.c (Fstring): Doc fix.
14275
14276 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
14277
14278 * fontset.c (Ffontset_info): Doc fix. Return charset names, not
14279 ids.
14280 (font-encoding-alist): Doc fix.
14281
142822008-02-01 Dave Love <fx@gnu.org>
14283
14284 * term.c (costs_set): Declare static, non-initialized for pcc.
14285 (encode_terminal_code): Remove unused var.
14286
14287 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
14288 for K&R.
14289
14290 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
14291
14292 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
14293 (suffixes): Move out of make_subsidiaries for K&R.
14294
14295 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
14296
14297 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
14298
142992008-02-01 Dave Love <fx@gnu.org>
14300
14301 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
14302
14303 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
14304
143052008-02-01 Yong Lu <lyongu@asia-infonet.com>
14306
14307 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
14308
14309 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
14310
143112008-02-01 Kenichi Handa <handa@m17n.org>
14312
14313 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
14314 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
14315
143162008-02-01 Kenichi Handa <handa@m17n.org>
14317
14318 * coding.c (decode_coding_charset): Adjust for the change of
14319 Fdefine_coding_system_internal.
14320 (Fdefine_coding_system_internal): For a coding system of
14321 `charset' type, store a list of charset IDs in
14322 `charset_attr_charset_valids' element of coding attributes.
14323
143242008-02-01 Kenichi Handa <handa@m17n.org>
14325
14326 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
14327 (emacs_mule_char): New arg src. Delete arg `composition'. Change
14328 caller. Handle 2-byte and 3-byte charsets correctly.
14329 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
14330 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
14331 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
14332 (DECODE_EMACS_MULE_21_COMPOSITION): Call
14333 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
14334 sequence.
14335 (decode_coding_emacs_mule): Handle composition correctly. Rewind
14336 `src' and `consumed_chars' correctly before calling emacs_mule_char.
14337 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
14338 and alt&rule composition.
14339 (decode_coding_iso_2022): Handle composition correctly.
14340 (init_coding_once): Setup emacs_mule_bytes for private charsets.
14341
14342 * charset.c (Fdefine_charset_internal): Fix bug for the case of
14343 re-defining a charset. If the charset has :emacs-mule-id, setup
14344 emacs_mule_bytes.
14345 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
14346
143472008-02-01 Kenichi Handa <handa@m17n.org>
14348
14349 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
14350 (encode_coding_big5, encode_coding_charset): If coding requires safe
14351 encoding, produce a character specified by
14352 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
14353
143542008-02-01 Dave Love <fx@gnu.org>
14355
14356 * xterm.c (XSetIMValues): Declare.
14357
14358 * process.c: Conditionally include sys/wait.h, pty.h.
14359
14360 * print.c (print_object): Fix print format for 64-bit systems.
14361
14362 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
14363
14364 * buffer.c (emacs_strerror): Declare.
14365
14366 * fontset.c (Fclear_face_cache): Declare.
14367 (accumulate_font_info): Comment-out (unused).
14368 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
14369 variables.
14370
14371 * character.h (string_escape_byte8): Declare.
14372
14373 * charset.c (load_charset_map, load_charset_map_from_file): Remove
14374 unused vars.
14375 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
14376 (Fmap_charset_chars): Doc fix.
14377
14378 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
14379 (Fset_coding_system_priority, Fset_coding_system_priority)
14380 (Fdefine_coding_system_internal): Doc fix.
14381
143822008-02-01 Dave Love <fx@gnu.org>
14383
14384 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
14385
143862008-02-01 Kenichi Handa <handa@m17n.org>
14387
14388 * character.c (string_escape_byte8): Make multibyte string with
14389 correct size.
14390
14391 * charset.c (Fmake_char): Delete unnecessary code.
14392
143932008-02-01 Kenichi Handa <handa@m17n.org>
14394
14395 * xfns.c (x_encode_text): Allocate coding.destination here, and
14396 call encode_coding_object with dst_object Qnil.
14397
14398 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
14399 multibyte form correctly.
14400
14401 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
14402 against Vfont_encoding_alist.
14403
14404 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
14405 handling of charset list.
14406 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
14407 (decode_coding_object): Move point to coding->dst_pos before
14408 calling post-read-conversion function.
14409 (encode_coding_object): Give correct arguments to
14410 pre-write-conversion. Ignore the return value of
14411 pre-write-conversion function. Pay attention to the case that
14412 pre-write-conversion changes the current buffer. If dst_object is
14413 Qt, even if coding->src_bytes is zero, allocate at least one byte
14414 to coding->destination.
14415
14416 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
14417
14418 * charset.c (Fmake_char): Make it more backward compatible.
14419 (Fmap_charset_chars): Fix docstring.
14420
144212008-02-01 Dave Love <fx@gnu.org>
14422
14423 * coding.c: Doc fixes.
14424 (Fdefine_coding_system_alias): Use names, not symbols, in
14425 coding-system-alist.
14426
144272008-02-01 Kenichi Handa <handa@m17n.org>
14428
14429 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
14430 of calling free_realized_face.
14431
144322008-02-01 Yong Lu <lyongu@asia-infonet.com>
14433
14434 * charset.c (read_hex): Don't treat SPC as a comment starter.
14435 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
14436 (Fdecode_char): Fix typo.
14437
144382008-02-01 Kenichi Handa <handa@m17n.org>
14439
14440 * charset.h (struct charset): New member `code_space_mask'.
14441
14442 * coding.c (coding_set_source): Delete the local variable beg_byte.
14443 (encode_coding_charset, Fdefine_coding_system_internal):
14444 Delete the local variable charset.
14445 (Fdefine_coding_system_internal): Setup
14446 attrs[coding_attr_charset_valids] correctly.
14447
14448 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
14449 member to check if CODE is valid or not.
14450 (Fdefine_charset_internal): Initialize `code_space_mask' member.
14451 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
14452 is within the range of charset->min_code and carset->max_code.
14453
144542008-02-01 Dave Love <fx@gnu.org>
14455
14456 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
14457
14458 * dispextern.h (generate_ascii_font): Fix return type.
14459
14460 * xfaces.c (generate_ascii_font): Fix arg declaration.
14461
14462 * coding.c (coding_inherit_eol_type)
14463 (Fset_terminal_coding_system_internal)
14464 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
14465
144662008-02-01 Kenichi Handa <handa@m17n.org>
14467
14468 * coding.c (decode_coding_charset, encode_coding_charset): Handle
14469 multiple charsets correctly.
14470
144712008-02-01 Kenichi Handa <handa@m17n.org>
14472
14473 * search.c (boyer_moore): Fix handling of multibyte character
14474 translation.
14475
14476 * xdisp.c (display_mode_element): When the variable `elt' is
14477 changed, update `this' and `lisp_string'.
14478
144792008-02-01 Kenichi Handa <handa@m17n.org>
14480
14481 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
14482
14483 * callproc.c (Fcall_process): Be sure to give the current buffer
14484 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
14485
14486 * charset.c (struct charset_map_entries): New struct.
14487 (load_charset_map): Rename from parse_charset_map. New args
14488 entries and n_entries. Change caller.
14489 (load_charset_map_from_file): Rename from load_charset_map.
14490 Change caller. New arg control_flag. Call load_charset_map at
14491 the tail.
14492 (load_charset_map_from_vector): New function.
14493 (Fdefine_charset_internal): Setup charset.compact_codes_p.
14494 (encode_char): If the charset is compact, change a character index
14495 to a code point.
14496
14497 * coding.c (coding_alloc_by_making_gap): Check the case that the
14498 source and destination are the same correctly.
14499 (decode_coding_raw_text): Set coding->consumed_char and
14500 coding->consumed to 0.
14501 (produce_chars): If coding->chars_at_source is nonzero, update
14502 coding->consumed_char and coding->consumed before calling
14503 alloc_destination.
14504 (Fdefine_coding_system_alias): Register ALIAS in
14505 Vcoding_system_alist.
14506 (syms_of_coding): Define `no-conversion' coding system at the tail.
14507
14508 * fileio.c (Finsert_file_contents): Set coding_system instead of
14509 val. If the current buffer is multibyte, always call
14510 decode_coding_gap.
14511
14512 * xfaces.c (try_font_list): Give higher priority to fontset's
14513 family than face's family.
14514
145152008-02-01 Kenichi Handa <handa@m17n.org>
14516
14517 * callproc.c (Fcall_process): Be sure to give the current buffer
14518 to decode_coding_c_string.
14519
14520 * xfaces.c (try_font_list): Give a family specified in a fontset
14521 higher priority than a family specified in a face.
14522
145232008-02-01 Kenichi Handa <handa@m17n.org>
14524
14525 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
14526 Fix arguments to insert_from_buffer.
14527
14528 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
14529
145302008-02-01 Kenichi Handa <handa@m17n.org>
14531
14532 * coding.c (produce_chars): Set the variable `multibytep' correctly.
14533 (decode_coding_gap): Set coding->dst_multibyte correctly.
14534
145352008-02-01 Kenichi Handa <handa@m17n.org>
14536
14537 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
14538 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
14539 (encode_coding_utf_16): Substitute coding->default_char for
14540 non-Unicode characters.
14541 (decode_coding): Don't call record_insert here.
14542 (setup_coding_system): Initialize `surrogate' of
14543 coding->spec.utf_16 to 0.
14544 (EMIT_ONE_BYTE): Fix for multibyte case.
14545
14546 * insdel.c (insert_from_gap): Call record_insert.
14547
145482008-02-01 Kenichi Handa <handa@m17n.org>
14549
14550 * casefiddle.c (casify_region): Fix multibyte case.
14551
14552 * character.c (c_string_width): Add return type `int'.
14553 (char_string_with_unification): Delete arg ADVANCED.
14554
14555 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
14556 (CHAR_STRING): Adjust for the change of char_string_with_unification.
14557 (CHAR_STRING_ADVANCE): Make it do-while statement.
14558
14559 * chartab.c (sub_char_table_set_range): Optimize for the case
14560 DEPTH == 3. Add workaround code for a GCC optimization bug.
14561
14562 * charset.c (parse_charset_map): Remove an unused variable.
14563
14564 * coding.c: Delete unused variables.
14565
14566 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
14567 earlier. If inserted is zero and the coding system doesn't
14568 require flushing, don't call decode_coding_gap.
14569
14570 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
14571
145722008-02-01 Kenichi Handa <handa@m17n.org>
14573
14574 The following changes are for using Unicode as an internal
14575 character model, and use UTF-8 format for buffer/string
14576 representation.
14577
14578 * .gdbinit (xchartable): Adjust for the change of char table structure.
14579 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
14580
14581 * Makefile.in (obj): Add character.o and chartab.o.
14582 (lisp, shortlisp): Remove utf-8.elc.
14583 (*.o): For many files, change dependency on charset.h to
14584 character.h, and add dependency on character.h.
14585 (character.o, chartab.o): New targets.
14586
14587 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
14588 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
14589 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
14590 of "charset.h".
14591
14592 * dired.c, filelock.c: Include "character.h".
14593
14594 * alloc.c: Include "character.h" instead of "charset.h".
14595 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
14596 (syms_of_alloc): Remove defsubr for Smake_char_table.
14597
14598 * buffer.c: Include "character.h" instead of "charset.h", don't
14599 include "coding.h".
14600 (Fset_buffer_multibyte): Adjust for UTF-8.
14601
14602 * buffer.h: EXFUN Fbuffer_live_p.
14603
14604 * callproc.c: Include "character.h" instead of "charset.h".
14605 (Fcall_process): Big change for the new code-conversion APIs.
14606
14607 * casetab.c: Include "character.h" instead of "charset.h".
14608 (set_canon, set_identity, shuffle): Adjust for the new
14609 map_char_table spec.
14610 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
14611 accessing the char table structure.
14612
14613 * chartab.c: New file that implements char table.
14614
14615 * category.c: Include "character.h".
14616 (copy_category_entry): New function.
14617 (copy_category_table): Call map_char_table and copy_category_entry.
14618 (Fmake_category_table): Initialize all top-level slots.
14619 (char_category_set): New function.
14620 (modify_lower_category_set): Delete.
14621 (Fmodify_category_entry): Call char_table_ref_and_range.
14622
14623 * category.h (CATEGORY_SET): Just call char_category_set.
14624
14625 * ccl.c: Include "character.h".
14626 (Qccl, Qcclp): New variables.
14627 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
14628 it's less than 256.
14629 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
14630 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
14631 and DST type.
14632 (ccl_driver): Change types of argument, adjust code accordingly.
14633 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
14634 ccl_driver.
14635 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
14636
14637 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
14638 New members src_multibyte, dst_multibyte, consumed, and produced.
14639 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
14640 (CODING_SPEC_CCL_PROGRAM): New macro.
14641 (ccl_driver): Update prototype.
14642 (Qccl, Qcclp, Fccl_program_p): Extern them.
14643 (CHECK_CCL_PROGRAM): New macro.
14644
14645 * character.c, character.h, chartab.c: New files.
14646
14647 * charset.c: Mostly re-written. Move character and multibyte sequence
14648 handling codes to character.c.
14649
14650 * charset.h: Mostly re-written. Move character and multibyte sequence
14651 handling codes to character.h.
14652
14653 * coding.c, coding.h: Mostly re-written.
14654
14655 * composite.c: Include "character.h" instead of "charset.h".
14656 (CHAR_WIDTH): Move to character.h.
14657 (HASH_KEY, HASH_VALUE): Delete.
14658
14659 * composite.h (enum composition_method): Change order of enumeration
14660 symbols.
14661
14662 * data.c: Include "character.h" instead of "charset.h".
14663 (Faref): Call CHAR_TABLE_REF for a char table.
14664 (Faset): Call CHAR_TABLE_SET for a char table.
14665
14666 * dispextern.h (free_realized_face, check_face_attribytes)
14667 (generate_ascii_font): Extern them.
14668 (free_realized_multibyte_face): Delete extern.
14669
14670 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
14671 table structure.
14672
14673 * editfns.c: Include "character.h" instead of "charset.h".
14674 (Fchar_to_string): Always call CHAR_STRING.
14675
14676 * emacs.c (main): Call init_charset_once, init_charset,
14677 syms_of_chartab, and syms_of_character.
14678
14679 * fileio.c: Include "character.h" instead of "charset.h".
14680 (Finsert_file_contents): Big change for the new code-conversion API.
14681 (choose_write_coding_system, Fwrite_region): Likewise.
14682 (build_annotations_2): Delete.
14683 (e_write): Big change for the new code-conversion API.
14684
14685 * fns.c: Include "character.h" instead of "charset.h".
14686 (copy_sub_char_table): Move to chartab.c.
14687 (Fcopy_sequence): Call copy_char_table for a char table.
14688 (concat): Delete codes calling count_multibyte.
14689 (string_char_to_byte, string_byte_to_char): Adjust for the new
14690 multibyte form.
14691 (internal_equal): Adjust for the change of char table structure.
14692 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
14693 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
14694 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
14695 (char_table_translate, optimize_sub_char_table)
14696 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
14697 chartab.c.
14698 (char_table_ref_and_index): Delete.
14699 (HASH_KEY, HASH_VALUE): Move to lisp.h.
14700 (Fmd5): Call preferred_coding_system instead of accessing
14701 Vcoding_category_list. Adjust for the new code-conversion API.
14702 (syms_of_fns): Move defsubr for char table related functions to
14703 chartab.c.
14704
14705 * fontset.c: Mostly re-written.
14706
14707 * fontset.h (struct font_info): Change type of the member encoding_type.
14708 (enum FONT_SPEC_INDEX): New enum.
14709 (fontset_font_pattern, fs_load_font): Update prototype.
14710 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
14711
14712 * indent.c: Include "character.h" instead of "charset.h".
14713 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
14714
14715 * insdel.c: Include "character.h" instead of "charset.h".
14716 (copy_text): Don't refer to Vnonascii_translation_table.
14717 (insert_from_gap): New function.
14718
14719 * keyboard.c: Include "character.h" instead of "charset.h".
14720 (command_loop_1): Never call direct_output_forward_char before
14721 a non-ASCII character.
14722 (read_char): If Vkeyboard_translate_table is a char table, always
14723 translate a character.
14724
14725 * keymap.c: Include "character.h".
14726 (store_in_keymap): Handle the case that IDX is a cons.
14727 (Fdefine_key): Handle the case that KEY is a cons and the car part
14728 is also a cons (range).
14729 (push_key_description): Adjust for the new character code.
14730 (describe_vector): Call describe_char_table for a char table.
14731 (describe_char_table): New function.
14732
14733 * keymap.h (describe_char_table): Extern it.
14734
14735 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
14736 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
14737 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
14738 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
14739 Delete.
14740 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
14741 structure.
14742 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
14743 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
14744 (CHARTAB_SIZE_BITS_3): New macros.
14745 (chartab_size): Extern it.
14746 (struct Lisp_Char_Table): Re-design.
14747 (struct Lisp_Sub_Char_Table): New structure.
14748 (HASH_KEY, HASH_VALUE): Move from fns.c.
14749 (CHARACTERBITS): Define as 22.
14750 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
14751 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
14752 (GC_SUB_CHAR_TABLE_P): New macro.
14753 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
14754 (code_convert_string_norecord): Deleted extern.
14755 (init_character_once, syms_of_character, init_charset)
14756 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
14757
14758 * lread.c: Include "character.h".
14759 (read_multibyte): New arg NBYTES.
14760 (read_escape): Change the meaning of returned *BYTEREP.
14761 (to_multibyte): Delete.
14762 (read1): Adjust the handling of char table and string.
14763
14764 * print.c: Include "character.h" instead of "charset.h".
14765 (print_string): Convert 8-bit raw bytes to octal form by
14766 string_escape_byte8.
14767 (print_object): Adjust for the new multibyte form. Print 8-bit
14768 raw bytes always in octal form. Handle sub char table correctly.
14769
14770 * process.c: Include "character.h" instead of "charset.h".
14771 (read_process_output, send_process): Adjust for the new
14772 code-conversion API.
14773
14774 * puresize.h (BASE_PURESIZE): Increase.
14775
14776 * regex.c: Include "character.h" instead of "charset.h".
14777 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
14778 (regex_compile): Accept a range whose starting and ending
14779 character have different leading bytes.
14780 (analyse_first): Adjust for the above change.
14781
14782 * search.c: Include "character.h" instead of "charset.h".
14783 (search_buffer, boyer_moore): Adjust for the new multibyte form.
14784 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
14785
14786 * syntax.c: Include "character.h" instead of "charset.h".
14787 (syntax_parent_lookup): Delete.
14788 (Fmodify_syntax_entry): Accept a cons as CHAR.
14789 (skip_chars): Adjust for the new multibyte form.
14790 (init_syntax_once): Call char_table_set_range instead of directly
14791 accessing the structure of a char table.
14792
14793 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
14794 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
14795 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
14796 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
14797
14798 * term.c: Include "buffer.h" and "character.h".
14799 (encode_terminal_code, write_glyphs): Adjust for the new
14800 code-conversion API.
14801 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
14802
14803 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
14804
14805 * xdisp.c: Include "character.h".
14806 (get_next_display_element): Adjust for the new multibyte form.
14807 (disp_char_vector): Adjust for the new char table structure.
14808 (decode_mode_spec_coding): Adjust for the new structure of
14809 coding system.
14810 (decode_mode_spec): Adjust for the new code-conversion API.
14811
14812 * xfaces.c: Include "character.h" instead of "charset.h".
14813 (load_face_font): Adjust for the change of choose_face_font and
14814 FS_LOAD_FONT.
14815 (generate_ascii_font): New function.
14816 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
14817 (set_font_frame_param): Adjust for the change of choose_face_font.
14818 (free_realized_face): Make it public.
14819 (free_realized_faces_for_fontset): Rename from
14820 free_realized_multibyte_face. Free also faces realized for ASCII.
14821 (choose_face_font): Change arguments. Adjust for the change of
14822 fontset_font_pattern and FS_LOAD_FONT.
14823
14824 * xfns.c: Include "character.h".
14825 (x_encode_text): Adjust for the new code-conversion API.
14826
14827 * xselect.c: Don't include "charset.h".
14828 (selection_data_to_lisp_data): Adjust for the new code conversion API.
14829
14830 * xterm.c: Include "character.h".
14831 (x_encode_char): New argument CHARSET. Change caller.
14832 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
14833 Call ENCODE_CHAR instead of SPLIT_CHAR.
14834 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
14835 CHAR_WIDTH instead of CHARSET_WIDTH.
14836 (XTread_socket): Adjust for the new code-conversion API.
14837 (x_new_font): Adjust for the change of FS_LOAD_FONT.
14838 (x_load_font): Adjust for the change of struct font.
14839
148402008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14841
14842 * xfaces.c (face_at_buffer_position): Remove unused vars.
14843
148442008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14845
14846 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
14847 Fix overflow checking.
14848
148492008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14850
14851 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
14852 Cancel previous change.
14853
148542008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
14855
14856 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
14857 ccl->eight_bit_control. Fix check for buffer overflow.
14858 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
14859 (ccl_driver): Initialize extra_bytes to 0.
14860
148612008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
14862
14863 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
14864 return it ORed with ctrl_modifier.
14865
148662008-01-29 Miles Bader <miles@gnu.org>
14867
14868 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
14869
148702008-01-28 Jason Rumney <jasonr@gnu.org>
14871
14872 * w32.c (stat): Don't double check for networked drive.
14873
148742008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
14875
14876 * window.c (run_window_configuration_change_hook): New function.
14877 Code extracted from set_window_buffer. Set the selected frame.
14878 (set_window_buffer): Use it.
14879 * window.h (run_window_configuration_change_hook): Declare.
14880 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
14881
14882 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
14883
148842008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
14885
14886 * Makefile.in: Remove references to unused macros.
14887
148882008-01-26 Eli Zaretskii <eliz@gnu.org>
14889
14890 * w32.c (g_b_init_get_sid_sub_authority)
14891 (g_b_init_get_sid_sub_authority_count): New static variables.
14892 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
14893 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
14894 (init_user_info): Use them to retrieve uid and gid.
14895 Use 500/513, the Windows defaults, as Administrator's uid/gid.
14896 (fstat): Use pw_uid and pw_gid from the_passwd structure for
14897 st_uid and st_gid of the file.
14898
148992008-01-26 Jason Rumney <jasonr@gnu.org>
14900
14901 * w32.c (logon_network_drive): New function.
14902 (stat): Use it.
14903
149042008-01-26 Chong Yidong <cyd@stupidchicken.com>
14905
14906 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
14907 invisible text covered with an ellipsis.
14908
149092008-01-25 Richard Stallman <rms@gnu.org>
14910
14911 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
14912 jump back to beginning. Move some other initializations after that.
14913 (Qwindow_text_change_functions, Vwindow_text_change_functions):
14914 New variables.
14915 (syms_of_xdisp): Init them.
14916
14917 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
14918
14919 * buffer.c (reset_buffer_local_variables):
14920 Implement `permanent-local-hook'.
14921 (Qpermanent_local_hook): New variable.
14922 (syms_of_buffer): Init and staticpro it.
14923
149242008-01-25 Michael Albinus <michael.albinus@gmx.de>
14925
14926 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
14927
149282008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
14929
14930 * fns.c (Fclrhash): Return TABLE.
14931
149322008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14933
14934 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
14935 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
14936 is set even without positional changes.
14937 (x_scroll_bar_clear): Set bar->redraw_needed_p.
14938
14939 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
14940
149412008-01-23 Jason Rumney <jasonr@gnu.org>
14942
14943 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
14944
14945 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
14946 the unicode range available in MULE by locale-coding-system.
14947 Improve dbcs lead byte detection. Set event timestamp and modifiers
14948 earlier.
14949
149502008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14951
14952 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
14953 [MAC_OSX] (init_mac_osx_environment): Initialize it.
14954 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
14955 when used on child processes.
14956
149572008-01-21 Michael Albinus <michael.albinus@gmx.de>
14958
14959 * dbusbind.c (Fdbus_method_return_internal): Rename from
14960 Fdbus_method_return.
14961 (Fdbus_unregister_object): Move to dbus.el.
14962 (Fdbus_call_method, Fdbus_method_return_internal)
14963 (Fdbus_send_signal): Improve debug messages.
14964
149652008-01-20 Martin Rudalics <rudalics@gmx.at>
14966
14967 * undo.c (undo_inhibit_record_point): New variable.
14968 (syms_of_undo): Initialize it.
14969 (record_point): Don't record point when undo_inhibit_record_point
14970 is set.
14971
149722008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
14973
14974 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
14975
14976 * xdisp.c (Qauto_hscroll_mode): New var.
14977 (syms_of_xdisp): Initialize it.
14978 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
14979 window's buffer.
14980 (hscroll_windows): Don't check automatic_hscrolling_p here.
14981
14982 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
14983 vscroll if we're setting window-buffer to the value it already has.
14984
149852008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
14986
14987 * m/intel386.h: Remove references to XENIX.
14988
149892008-01-17 Andreas Schwab <schwab@suse.de>
14990
14991 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
14992 instead of HAVE_X86_64_LIB64_DIR.
14993 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
14994
149952008-01-17 Glenn Morris <rgm@gnu.org>
14996
14997 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
14998 to HAVE_X86_64_LIB64_DIR.
14999
150002008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
15001
15002 * s/irix3-3.h:
15003 * s/irix4-0.h:
15004 * s/386-ix.h:
15005 * s/domain.h:
15006 * s/hpux9-x11r4.h:
15007 * s/hpux9shxr4.h: Remove files for systems no longer supported.
15008
15009 * sysdep.c: Remove code containing references to symbols defined
15010 by unsupported systems.
15011
150122008-01-16 Glenn Morris <rgm@gnu.org>
15013
15014 * coding.c (select-safe-coding-system-function): Doc fix.
15015
150162008-01-15 Glenn Morris <rgm@gnu.org>
15017
15018 * config.in: Revert 2008-01-13 change: this is a generated file.
15019
150202008-01-13 Tom Tromey <tromey@redhat.com>
15021
15022 * lisp.h: Fix typo.
15023
150242008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
15025
15026 * m/sequent-ptx.h:
15027 * m/sequent.h:
15028 * s/ptx.h:
15029 * s/ptx4-2.h:
15030 * s/ptx4.h: Remove files for systems no longer supported.
15031
15032 * callproc.c (Fcall_process): Fix previous change.
15033
150342008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
15035
15036 * unexsunos4.c: Remove file, system not supported anymore.
15037
15038 * m/mips.h:
15039 * m/intel386.h:
15040 * callproc.c:
15041 * config.in:
15042 * ecrt0.c:
15043 * emacs.c:
15044 * fileio.c:
15045 * frame.c:
15046 * getpagesize.h:
15047 * keyboard.c:
15048 * lread.c:
15049 * process.c:
15050 * puresize.h:
15051 * sysdep.c:
15052 * systty.h:
15053 * syswait.h:
15054 * unexec.c:
15055 * xdisp.c:
15056 * alloc.c: Remove code containing references to symbols defined by
15057 unsupported systems.
15058
150592008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
15060
15061 * coding.c (detect_coding_mask): Fix previous change.
15062
150632008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
15064
15065 * coding.c (detect_coding_iso2022): New arg
15066 latin_extra_code_state. Allow Latin extra codes only
15067 when *latin_extra_code_state is nonzero.
15068 (detect_coding_mask): If there is a NULL byte, detect the encoding
15069 as UTF-16 or binary. If Latin extra codes exist, detect the
15070 encoding as ISO-2022 only when there's no other proper encoding is
15071 found.
15072
150732008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15074
15075 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
15076 #ifdef MAC_OS.
15077
150782008-01-08 Richard Stallman <rms@gnu.org>
15079
15080 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
15081
150822008-01-06 Nick Roberts <nickrob@snap.net.nz>
15083
15084 * keyboard.c (parse_menu_item): Don't enclose key bindings on
15085 menu bar in parentheses.
15086
150872008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
15088
15089 * m/7300.h:
15090 * m/acorn.h:
15091 * m/alliant-2800.h:
15092 * m/alliant.h:
15093 * m/alliant1.h:
15094 * m/alliant4.h:
15095 * m/altos.h:
15096 * m/amdahl.h:
15097 * m/apollo.h:
15098 * m/att3b.h:
15099 * m/aviion-intel.h:
15100 * m/aviion.h:
15101 * m/celerity.h:
15102 * m/clipper.h:
15103 * m/cnvrgnt.h:
15104 * m/convex.h:
15105 * m/cydra5.h:
15106 * m/delta88k.h:
15107 * m/dpx2.h:
15108 * m/dual.h:
15109 * m/elxsi.h:
15110 * m/f301.h:
15111 * m/gould-np1.h:
15112 * m/gould.h:
15113 * m/i860.h:
15114 * m/ibmps2-aix.h:
15115 * m/ibmrt-aix.h:
15116 * m/ibmrt.h:
15117 * m/irist.h:
15118 * m/is386.h:
15119 * m/isi-ov.h:
15120 * m/mega68.h:
15121 * m/mg1.h:
15122 * m/news-r6.h:
15123 * m/news-risc.h:
15124 * m/news.h:
15125 * m/nh3000.h:
15126 * m/nh4000.h:
15127 * m/ns16000.h:
15128 * m/ns32000.h:
15129 * m/nu.h:
15130 * m/orion.h:
15131 * m/orion105.h:
15132 * m/paragon.h:
15133 * m/pfa50.h:
15134 * m/plexus.h:
15135 * m/pyramid.h:
15136 * m/pyrmips.h:
15137 * m/sh3el.h:
15138 * m/sps7.h:
15139 * m/sr2k.h:
15140 * m/stride.h:
15141 * m/sun1.h:
15142 * m/sun2.h:
15143 * m/sun3-68881.h:
15144 * m/sun3-fpa.h:
15145 * m/sun3-soft.h:
15146 * m/sun3.h:
15147 * m/sun386.h:
15148 * m/symmetry.h:
15149 * m/tad68k.h:
15150 * m/tahoe.h:
15151 * m/targon31.h:
15152 * m/tek4300.h:
15153 * m/tekxd88.h:
15154 * m/tower32.h:
15155 * m/tower32v3.h:
15156 * m/ustation.h:
15157 * m/wicat.h:
15158 * m/xps100.h:
15159 * s/cxux.h:
15160 * s/cxux7.h:
15161 * s/dgux.h:
15162 * s/dgux4.h:
15163 * s/dgux5-4-3.h:
15164 * s/dgux5-4r2.h:
15165 * s/esix.h:
15166 * s/esix5r4.h:
15167 * s/hiuxmpp.h:
15168 * s/hiuxwe2.h:
15169 * s/iris3-5.h:
15170 * s/iris3-6.h:
15171 * s/isc2-2.h:
15172 * s/isc3-0.h:
15173 * s/isc4-0.h:
15174 * s/isc4-1.h:
15175 * s/newsos5.h:
15176 * s/newsos6.h:
15177 * s/osf1.h:
15178 * s/osf5-0.h:
15179 * s/riscix1-1.h:
15180 * s/riscix12.h:
15181 * s/sco4.h:
15182 * s/sco5.h:
15183 * s/sunos4-0.h:
15184 * s/sunos4-1.h:
15185 * s/sunos413.h:
15186 * s/sunos4shr.h:
15187 * s/umax.h:
15188 * s/unipl5-2.h:
15189 * s/xenix.h:
15190 * cxux-crt0.s:
15191 * unexapollo.c:
15192 * unexconvex.c:
15193 * unexenix.c:
15194 * unexsni.c: Remove files for systems no longer supported.
15195
15196 * m/intel386.h: Remove references to unsupported systems.
15197
15198 * w32.c (get_emacs_configuration): Remove reference to i860.
15199
15200 * sysdep.c: Remove dead code.
15201
152022008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
15203
15204 * s/rtu.h:
15205 * m/masscomp.h: Remove files. Platform is obsolete.
15206
152072008-01-04 Michael Albinus <michael.albinus@gmx.de>
15208
15209 * dbusbind.c (Fdbus_method_return): New function.
15210 (xd_read_message): Add the serial number to the event.
15211 (Fdbus_register_method): Activate the function.
15212
152132008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
15214
15215 * keyboard.c (read_key_sequence): Fix typo.
15216
152172008-01-03 Michael Albinus <michael.albinus@gmx.de>
15218
15219 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
15220 (xd_signature, xd_append_arg): Handle element type detection for
15221 empty arrays.
15222 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
15223 SDATA () calls; this must be solved more general.
15224 (Fdbus_register_signal): Use SBYTES instead of strlen.
15225
152262008-01-03 Magnus Henoch <magnus@zemdatav>
15227
15228 * dbusbind.c (xd_append_arg): Use unsigned char instead of
15229 unsigned int for byte values (necessary for big-endian platform).
15230 (Fdbus_call_method): Handle the case of no returned arguments.
15231
152322007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
15233
15234 * dbusbind.c (xd_read_message): Use non-static input_event struct.
15235
152362007-12-31 Magnus Henoch <mange@freemail.hu>
15237
15238 * dbusbind.c (xd_signature): Signature of variant is just "v".
15239
152402007-12-30 Michael Albinus <michael.albinus@gmx.de>
15241
15242 * dbusbind.c: Fix several errors and compiler warnings.
15243 Reported by Tom Tromey <tromey@redhat.com>.
15244 (XD_ERROR, XD_DEBUG_MESSAGE)
15245 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
15246 (xd_append_arg): Part for basic D-Bus types rewritten.
15247 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
15248 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
15249 appropriate.
15250 (xd_read_message): Return Qnil. Don't signal an error; it is not
15251 useful during event reading.
15252 (Fdbus_register_signal): Signal an error if the check for
15253 FUNCTIONP fails.
15254 (Fdbus_register_method): New function. The implementation is not
15255 complete, the call of the function signals an error therefore.
15256 (Fdbus_unregister_object): New function, renamed from
15257 Fdbus_unregister_signal. The initial check signals an error, if
15258 the object is not well formed.
15259
152602007-12-30 Richard Stallman <rms@gnu.org>
15261
15262 * textprop.c (get_char_property_and_overlay):
15263 Signal error if POSITION is out of range in a buffer.
15264
152652007-12-29 Martin Rudalics <rudalics@gmx.at>
15266
15267 * w32fns.c (Fx_create_frame): Make copy of frame parameters
15268 because the original parameters are in pure storage now.
15269
152702007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15271
15272 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
15273
152742007-12-22 Eli Zaretskii <eliz@gnu.org>
15275
15276 * callint.c (syms_of_callint) <command-history>: Add reference to
15277 history-length in the doc string.
15278
152792007-12-17 Jason Rumney <jasonr@gnu.org>
15280
15281 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
15282 before passing as wParam.
15283
152842007-12-22 Michael Albinus <michael.albinus@gmx.de>
15285
15286 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
15287 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
15288 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
15289 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
15290 as number.
15291 (Fdbus_call_method): Fix docstring.
15292
152932007-12-21 Michael Albinus <michael.albinus@gmx.de>
15294
15295 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
15296 New macros.
15297 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
15298 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
15299 Simplify.
15300 (xd_signature): New function.
15301 (xd_append_arg): Compute also signatures. Major rewrite.
15302 (xd_retrieve_arg): Make debug messages friendly.
15303 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
15304 Check for signatures of arguments.
15305
153062007-12-19 Michael Albinus <michael.albinus@gmx.de>
15307
15308 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
15309 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
15310 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
15311 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
15312 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
15313 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
15314 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
15315 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
15316 (xd_retrieve_value): Remove. Functionality included in ...
15317 (xd_append_arg): New function.
15318 (Fdbus_call_method, Fdbus_send_signal): Apply it.
15319
153202007-12-16 Michael Albinus <michael.albinus@gmx.de>
15321
15322 * dbusbind.c (top): Include <stdio.h>.
15323 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
15324 dbus_message_new_method_call and dbus_message_new_signal.
15325 (Fdbus_register_signal): Rename unique_name to uname.
15326 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
15327 non-existing unique name. Fix typos in matching rule. Return an
15328 object which is useful in Fdbus_unregister_signal.
15329 (Fdbus_unregister_signal): Reimplementation, in order to remove
15330 only the corresponding entry.
15331 (Vdbus_registered_functions_table): Change the order of entries.
15332 Apply these changes in xd_read_message and Fdbus_register_signal.
15333
153342007-12-16 Andreas Schwab <schwab@suse.de>
15335
15336 * fileio.c (Finsert_file_contents): Fix overflow check to not
15337 depend on undefined integer overflow.
15338
153392007-12-14 Jason Rumney <jasonr@gnu.org>
15340
15341 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
15342 for characters above 127.
15343
153442007-12-13 Jason Rumney <jasonr@gnu.org>
15345
15346 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
15347 before dereferencing array.
15348 (lookup_vk_code): Remove zero comparison.
15349
153502007-12-14 Michael Albinus <michael.albinus@gmx.de>
15351
15352 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
15353 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
15354 Use `unsigned int' instead of `uint'.
15355 (xd_read_message, Fdbus_register_signal): Split expressions into
15356 multiple lines before operators "&&" and "||", according to the
15357 GNU Coding Standards.
15358
153592007-12-14 Eli Zaretskii <eliz@gnu.org>
15360
15361 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
15362
153632007-12-12 Juri Linkov <juri@jurta.org>
15364
15365 * buffer.c (Frename_buffer): In interactive spec replace
15366 `read-buffer' with `read-string' that uses `buffer-name-history'
15367 as history, and the current buffer's name as default.
15368
153692007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
15370
15371 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
15372 manipulating the backtrace manually.
15373 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
15374 (struct backtrace, backtrace_list): Remove.
15375 (command_loop_1): Remove dead var `no_direct'.
15376
15377 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
15378 preserve non-built-in buffer-local variables.
15379 (Fkill_all_local_variables): Don't re-create&re-set permanent
15380 buffer-local variables.
15381
153822007-12-09 Juri Linkov <juri@jurta.org>
15383
15384 * buffer.c (Frename_buffer): Change interactive spec from "s" to
15385 Lisp code that uses `read-buffer' with current buffer as default.
15386
153872007-12-08 Michael Albinus <michael.albinus@gmx.de>
15388
15389 * dbusbind.c (xd_read_message): Generate an event for every
15390 registered handler. There might be several handlers registered
15391 for the same signal.
15392 (Fdbus_register_signal): Don't overwrite a registration for the
15393 same signal. Add a new registration if handlers are different.
15394 (Vdbus_registered_functions_table): Rework doc string.
15395
153962007-12-07 Michael Albinus <michael.albinus@gmx.de>
15397
15398 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
15399 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
15400 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
15401 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
15402 Unify argument lists.
15403 (xd_read_message, Fdbus_register_signal): Reorder and extend event
15404 arguments and hash table keys. Use unique name for service.
15405 (Fdbus_unregister_signal): Remove checks.
15406 (Vdbus_registered_functions_table): Fix doc string.
15407
154082007-12-05 Magnus Henoch <mange@freemail.hu>
15409
15410 * process.c (make_process): Initialize pty_flag to 0.
15411
154122007-12-05 Jason Rumney <jasonr@gnu.org>
15413
15414 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
15415 specified XBMs.
15416
154172007-12-05 Richard Stallman <rms@gnu.org>
15418
15419 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
15420
154212007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15422
15423 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
15424 New variable.
15425 (mac_try_close_socket) [MAC_OSX]: New function.
15426 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
15427 Update cfsockets_for_select. Replace invalid CFRunLoop source.
15428
15429 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
15430 Use mac_try_close_socket.
15431
154322007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15433
15434 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
15435 reloc_base.
15436 (copy_dysymtab): Compute relocation base here.
15437 (rebase_reloc_address) [__ppc64__]: New function.
15438 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
15439 changed.
15440
154412007-12-05 Jason Rumney <jasonr@gnu.org>
15442
15443 * w32proc.c (sys_spawnve): Quote args with wildcards.
15444
154452007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15446
15447 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
15448 __objc_* sections.
15449 (unrelocate) [_LP64]: Set relocation base to address of data segment.
15450
154512007-12-05 Michael Albinus <michael.albinus@gmx.de>
15452
15453 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
15454 Move check for Vdbus_registered_functions_table to
15455 xd_read_queued_messages.
15456 (xd_read_queued_messages): Protect xd_read_message calls by
15457 internal_condition_case_1.
15458
154592007-12-04 Michael Albinus <michael.albinus@gmx.de>
15460
15461 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
15462 Qdbus_system_bus and Qdbus_session_bus, respectively.
15463 (Vdbus_intern_symbols): Remove.
15464 (Vdbus_registered_functions_table): New hash table.
15465 (XD_SYMBOL_INTERN_SYMBOL): Remove.
15466 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
15467 Rewrite in order to manage registered functions by hash table
15468 Vdbus_registered_functions_table.
15469
154702007-12-03 Jan Djärv <jan.h.d@swipnet.se>
15471
15472 * xterm.c: Update URL to Window Manager Specification in comment.
15473
154742007-12-02 Michael Albinus <michael.albinus@gmx.de>
15475
15476 * config.in (HAVE_DBUS): Add.
15477
15478 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
15479 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
15480 (obj): Add $(DBUS_OBJ).
15481 (LIBES): Add $(DBUS_LIBS).
15482 (dbusbind.o): New target.
15483
15484 * dbusbind.c: New file.
15485
15486 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
15487
15488 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
15489 (Qdbus_event): New Lisp symbol.
15490 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
15491 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 15492 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
15493
15494 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
15495
154962007-12-01 Richard Stallman <rms@gnu.org>
15497
15498 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
15499
155002007-11-30 Jason Rumney <jasonr@gnu.org>
15501
15502 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
15503 (w32con_reset_terminal_modes): Clear screen buffer.
15504 (w32_face_attributes): Don't use color indexes that are out of range.
15505 Only reverse the default colors.
15506
15507 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
15508 WINDOWSNT.
15509
15510 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
15511
155122007-11-29 Jason Rumney <jasonr@gnu.org>
15513
15514 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
15515 (w32_face_attributes): Use Vtty_defined_color_alist to determine
15516 if the terminal colors are initialized.
15517 (unspecified_fg, unspecified_bg): Remove unused declarations.
15518
155192007-11-29 Andreas Schwab <schwab@suse.de>
15520
15521 * keyboard.c (apply_modifiers): Fix typo.
15522
155232007-11-29 Richard Stallman <rms@gnu.org>
15524
15525 * keymap.c (Fcurrent_local_map): Doc fix.
15526
155272007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
15528
15529 * s/gnu-kfreebsd.h: New file.
15530
155312007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
15532
15533 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
15534 Don't cast redundantly.
15535
15536 * keyboard.c (KEY_TO_CHAR): New macro.
15537 (parse_modifiers, apply_modifiers): Accept integer arguments.
15538 (read_key_sequence): Use them to unify the "shift->unshift" mapping
15539 for chars and symbol keys.
15540 After doing such remapping, apply function-key-map again.
15541
155422007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
15543
15544 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
15545 compiled anymore.
15546
155472007-11-26 Andreas Schwab <schwab@suse.de>
15548
15549 * process.c (list_processes_1): Fix indentation level of the
15550 command column.
15551
155522007-11-23 Andreas Schwab <schwab@suse.de>
15553
15554 * editfns.c (Fformat): Handle %c specially since it requires the
15555 argument to be of type int.
15556
155572007-11-23 Markus Triska <markus.triska@gmx.at>
15558
15559 * emacs.c (main): Call init_editfns before init_process, since
15560 init_process sets Vprocess_connection_type depending on OS release.
15561
155622007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
15563
15564 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
15565 (find_symbol_value): Use do_symval_forwarding.
15566
15567 * data.c (set_internal): Set the value in the `cons-cell' (for
15568 Buffer_Local_values) not only for frame-local variables.
15569
155702007-11-22 Andreas Schwab <schwab@suse.de>
15571
15572 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
15573 values to sprintf.
15574 * keymap.c (Fsingle_key_description): Likewise.
15575 * print.c (print_object): Likewise.
15576
155772007-11-22 Jan Djärv <jan.h.d@swipnet.se>
15578
15579 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
15580 file for image is nil.
15581
155822007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
15583
15584 * term.c: Include stdarg.h.
15585 (fatal): Implement using varargs.
15586 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
15587
155882007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
15589
15590 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
15591 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
15592 Update call to buffer_slot_type_mismatch.
15593 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
15594 (buffer_slot_type_mismatch): Update.
15595 * buffer.c (buffer_local_types): Remove.
15596 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
15597 (defvar_per_buffer): Set the type in the buffer_objfwd.
15598
155992007-11-21 Jason Rumney <jasonr@gnu.org>
15600
15601 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
15602 CreateFileMapping returns NULL on failure.
15603
156042007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
15605
15606 * search.c (Fset_match_data): Remove the `evaporate' feature.
15607 (unwind_set_match_data): Don't use the `evaporate' feature.
15608
156092007-11-21 Jason Rumney <jasonr@gnu.org>
15610
15611 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
15612
15613 * w32console.c (w32con_write_glyphs): Remove unused variables.
15614
156152007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
15616
15617 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
15618
15619 * s/darwin.h (MULTI_KBOARD): Remove.
15620
15621 * macfns.c (x_create_tip_frame, Fx_create_frame)
15622 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
15623
156242007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
15625
15626 * buffer.c (Fbuffer_local_value): Remove redundant test.
15627 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
15628 than in `current-buffer' to match the comment.
15629 Do the swap using swap_in_global_binding.
15630
15631 * data.c (store_symval_forwarding, set_internal):
15632 * eval.c (specbind): Remove dead code.
15633
15634 * coding.c (detect_coding, Fupdate_coding_systems_internal):
15635 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
15636 Since we do not want to see internal Lisp_*fwd objects here.
15637
156382007-11-18 Jan Djärv <jan.h.d@swipnet.se>
15639
15640 * sysdep.c (init_system_name): Use getaddrinfo if available.
15641
15642 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
15643 (x_scroll_bar_note_movement): start, end, with, height in struct
15644 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
15645
156462007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
15647
15648 * puresize.h (BASE_PURESIZE): Increase to 1190000.
15649
156502007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
15651
15652 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
15653 This undoes Richard's change of 14-Oct-2002.
15654
15655 * alloc.c (allocate_other_vector):
15656 * lisp.h (allocate_other_vector): Remove.
15657
15658 * window.c (struct save_window_data): Move non-lisp data to the end
15659 and make it `int' rather than Lisp_Object.
15660 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
15661 Done wrap/unwrap integer values.
15662 (Fset_window_configuration, compare_window_configurations):
15663 Update use of fields to their new types.
15664
15665 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
15666 Turn integer fields into `int'. Merge x_window_low and x_window_high.
15667 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
15668 (SET_SCROLL_BAR_X_WINDOW): Remove.
15669 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
15670 Access the new x_window field directly.
15671 * xterm.c (x_scroll_bar_create): Use a pseudovector.
15672 Don't wrap/unwrap integers into Lisp_Objects.
15673 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
15674 (x_scroll_bar_report_motion):
15675 Don't wrap/unwrap integers into Lisp_Objects.
15676 (x_term_init): Use SDATA.
15677 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
15678 (x_scroll_bar_set_handle, x_scroll_bar_remove)
15679 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
15680 (x_scroll_bar_report_motion, x_scroll_bar_clear):
15681 * xfns.c (x_set_background_color):
15682 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
15683 Access the new x_window field directly.
15684
15685 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
15686 (allocate_pseudovector): Make non-static.
15687
15688 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
15689 (allocate_pseudovector): Declare.
15690 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
15691
156922007-11-15 Andreas Schwab <schwab@suse.de>
15693
15694 * editfns.c (Fformat): Correctly format EMACS_INT values.
15695 Also take precision into account when formatting an integer.
15696
15697 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
15698
156992007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
15700
15701 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
15702 (syms_of_keyboard): Defsubr it.
15703
15704 * data.c (swap_in_global_binding): Fix longstanding bug where
15705 store_symval_forwarding was not called with the right second argument,
15706 thus causing objfwd-ing from being dropped.
15707
157082007-11-14 Juanma Barranquero <lekktu@gmail.com>
15709
15710 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
15711 (Fx_display_pixel_height, Fx_display_planes)
15712 (Fx_display_color_cells, Fx_server_max_request_size)
15713 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
15714 (Fx_display_visual_class, Fx_display_save_under):
15715 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
15716 (Fx_display_pixel_height, Fx_display_planes)
15717 (Fx_display_color_cells, Fx_server_max_request_size)
15718 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
15719 (Fx_display_mm_height, Fx_display_mm_width)
15720 (Fx_display_backing_store, Fx_display_visual_class)
15721 (Fw32_select_font, Fx_display_save_under):
15722 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
15723 (Fx_display_pixel_height, Fx_display_planes)
15724 (Fx_display_color_cells, Fx_server_max_request_size)
15725 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
15726 (Fx_display_save_under): Fix typos in docstrings.
15727
157282007-11-14 Juanma Barranquero <lekktu@gmail.com>
15729
15730 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
15731 corresponding to deleted entries; they are an implementation detail.
15732 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
15733 Remove variables.
15734 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
15735 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
15736 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
15737 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
15738 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
15739 (Fw32_define_rgb_color, Fw32_load_color_file)
15740 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
15741 Fix typos in docstrings.
15742 (Fx_server_version): Reflow docstring.
15743 (Fw32_shell_execute): Doc fixes.
15744
157452007-11-13 Juanma Barranquero <lekktu@gmail.com>
15746
15747 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
15748 if w32_parse_hot_key returned nil.
15749
157502007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
15751
15752 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
15753
157542007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 15755
aac0c6e3
MR
15756 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
15757
15758 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
15759
15760 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
15761 Remove W32_SCROLL_BAR_CLICK_EVENT.
15762
15763 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
15764 Add MULTIMEDIA_KEY_EVENT.
15765
15766 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
15767 (lispy_multimedia_keys) [WINDOWSNT]: New array.
15768 (make_lispy_event) [WINDOWSNT]: Use it to translate
15769 MULTIMEDIA_KEY_EVENT.
15770
15771 * w32term.h (WM_APPCOMMAND): Define if not already.
15772 (GET_APPCOMMAND_LPARAM): Likewise.
15773
15774 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
15775 WM_APPCOMMAND.
15776
15777 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
15778 (syms_of_w32fns): Export and initialize it.
15779 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
15780
157812007-11-09 Chong Yidong <cyd@stupidchicken.com>
15782
15783 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
15784 twice.
15785
15786 * xdisp.c (handle_face_prop): Fix last change.
15787
157882007-11-09 Richard Stallman <rms@gnu.org>
15789
15790 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
15791 not just for after-strings and before-strings.
15792 Call face_for_overlay_string and pass the overlay to it.
15793 (handle_display_prop): Determine whether property came from an overlay.
15794 Pass OVERLAY arg to handle_single_display_spec.
15795 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
15796 (load_overlay_strings): Fill in it->string_overlays.
15797 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
15798
15799 * xfaces.c (face_for_overlay_string): Function renamed from
15800 face_at_buffer_position_no_overlays, and add arg OVERLAY.
15801
15802 * dispextern.h (struct it): New elt string_overlays.
15803 New elt from_overlay, also in stack.
15804 Rearrange a few elements.
15805 (face_for_overlay_string): Decl renamed from
15806 face_at_buffer_position_no_overlays, and add argument.
15807
158082007-11-09 Richard Stallman <rms@gnu.org>
15809
15810 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
15811 to get the base face for an overlay string.
15812
15813 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
15814
15815 * xfaces.c (face_at_buffer_position_no_overlays): New function.
15816
15817 * xdisp.c (handle_stop): Move some code out of loop.
15818
158192007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15820
15821 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
15822 Fix conversion from Lisp object to ATSUFontID.
15823
158242007-11-09 Jason Rumney <jasonr@gnu.org>
15825
15826 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
15827
158282007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15829
15830 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
15831 Don't assume regions are aligned to page boundary.
15832 (print_load_command_name): Add LC_UUID if defined.
15833
158342007-11-09 Richard Stallman <rms@gnu.org>
15835
15836 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
15837
158382007-11-07 Jason Rumney <jasonr@gnu.org>
15839
15840 * s/windows95.h: Remove.
15841
158422007-11-06 Jan Djärv <jan.h.d@swipnet.se>
15843
15844 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
15845 abort with a message on unhandled store_type values.
15846
158472007-11-01 Jan Djärv <jan.h.d@swipnet.se>
15848
15849 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
15850 Remove HAVE_X11R5 and HAVE_X11R4.
15851
158522007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
15853
15854 * Makefile.in: Remove references to sunfns.c and sunfns.o.
15855
158562007-11-01 Johan Bockgård <bojohan@gnu.org>
15857
15858 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
15859 Don't set s->stippled_p here, since it has already been set by
15860 x_set_glyph_string_gc from x_draw_glyph_string.
15861
158622007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
15863
15864 * sunfns.c: Remove file.
15865
15866 * m/sun386.h:
15867 * m/sun2.h:
15868 * m/sparc.h: Remove Sun windows code.
15869
158702007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
15871
15872 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
15873 (init_keyboard): Set current_kboard's window-system to nil.
15874 (tty_read_avail_input): Typo.
15875 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
15876
158772007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
15878
15879 * s/usg5-4.h:
15880 * s/usg5-3.h:
15881 * s/ptx.h:
15882 * m/is386.h:
15883 * m/ibmps2-aix.h:
15884 * Makefile.in: Remove all mentions of X10.
15885
15886 * dispnew.c (syms_of_display): Don't mention version 10.
15887
158882007-10-28 Juanma Barranquero <lekktu@gmail.com>
15889
15890 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
15891 ($(BLD)/abbrev.$(O)): Remove.
15892
158932007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
15894
15895 Rewrite abbrev.c in Elisp.
15896 * image.c (Qcount): Don't declare as extern.
15897 (syms_of_image): Initialize and staticpro `Qcount'.
15898 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
15899 * emacs.c (main): Don't call syms_of_abbrev.
15900 * Makefile.in (obj): Remove abbrev.o.
15901 (abbrev.o): Remove.
15902 * abbrev.c: Remove.
15903
159042007-10-26 Martin Rudalics <rudalics@gmx.at>
15905
15906 * window.c (window_min_size_2): Don't count header-line.
15907
159082007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
15909
15910 * frame.h (struct frame): Move all bit fields after the first bit
15911 field to take advantage of the available space. Group all the
15912 chars together to reduce wasted space due to padding.
15913
159142007-10-26 Juanma Barranquero <lekktu@gmail.com>
15915
15916 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
15917
15918 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
15919 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
15920 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
15921 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
15922 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
15923 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
15924 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
15925 (last_marked, mark_object_loop_halt): Make static.
15926
15927 * frame.c (syms_of_frame) <delete-frame-functions>:
15928 Fix typo in docstring.
15929
159302007-10-25 Juanma Barranquero <lekktu@gmail.com>
15931
15932 * w32.c (init_environment): Fix tiny memory leak.
15933 (w32_get_resource): Remove unused variable `ok'.
15934
159352007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
15936
15937 Make `window-system' into a keyboard-local variable (rather than
15938 frame-local as done originally by multi-tty).
15939
15940 * keyboard.h (struct kboard): Add Vwindow_system.
15941 * keyboard.c (init_kboard): Set a default for Vwindow_system.
15942 (mark_kboards): Mark Vwindow_system.
15943
15944 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
15945 (init_display): Don't set the obsolete `window-system' frame-param.
15946
15947 * xterm.c (x_term_init):
15948 * w32term.c (w32_create_terminal):
15949 * term.c (init_tty): Set Vwindow_system.
15950 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
15951 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
15952
15953 * xfns.c (Fx_create_frame, x_create_tip_frame):
15954 * w32fns.c (Fx_create_frame, x_create_tip_frame):
15955 * macfns.c (Fx_create_frame):
15956 Don't set the obsolete `window-system' frame-param.
15957
15958 * frame.h (Qwindow_system): Remove.
15959 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
15960 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
15961
159622007-10-24 Richard Stallman <rms@gnu.org>
15963
15964 * frame.c (x_figure_window_size): For fullscreen case,
15965 set USPosition | PPosition without clobbering rest of window_prompting.
15966
15967 * keyboard.c (Fcurrent_idle_time): Doc fix.
15968
15969 * print.c (Fwith_output_to_temp_buffer): Doc fix.
15970
159712007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
15972
15973 * process.c (unwind_request_sigio): Only define if __ultrix__.
15974
15975 * callproc.c (child_setup): Remove spurious *.
15976
15977 * lisp.h (Fget_text_property): Declare.
15978 (have_menus_p): Declare it here rather than in sys-dep header files.
15979 * macterm.h (have_menus_p):
15980 * msdos.h (have_menus_p):
15981 * xterm.h (have_menus_p): Remove.
15982
15983 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
15984 (Fmake_variable_frame_local): Just check the variable's const-ness
15985 rather than checking nil or t.
15986
159872007-10-22 Jason Rumney <jasonr@gnu.org>
15988
15989 * w32fns.c: Include math.h.
15990 (w32_abort): Declaration moved to nt/config.nt.
15991
15992 * s/ms-w32.h (HAVE_STDLIB_H): Define.
15993 (abort): Redefinition moved to nt/config.nt.
15994
15995 * m/windowsnt.h: Remove.
15996
159972007-10-22 Juanma Barranquero <lekktu@gmail.com>
15998
15999 * emacs.c (Fdump_emacs): Fix typo in message.
16000 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
16001 <installation-directory>: Reflow docstring.
16002
160032007-10-22 Juri Linkov <juri@jurta.org>
16004
16005 * minibuf.c: Allow minibuffer default to be a list of default values.
16006 With empty input use the first element of this list as returned default.
16007 (string_to_object)
16008 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
16009 (read_minibuf): If defalt is cons, set histstring to its car.
16010 (Fread_string): If default_value is cons, set val to its car.
16011 (Fread_buffer): If def is cons, use its car.
16012 (Fcompleting_read): If defalt is cons, set val to its car.
16013
160142007-10-21 Michael Albinus <michael.albinus@gmx.de>
16015
16016 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
16017
160182007-10-20 Juanma Barranquero <lekktu@gmail.com>
16019
16020 * doc.c (Fdocumentation): Check for advice in all cases.
16021
160222007-10-19 Chong Yidong <cyd@stupidchicken.com>
16023
16024 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
16025
160262007-10-19 Richard Stallman <rms@gnu.org>
16027
16028 * doc.c (Fdocumentation): Check for and handle an advised function.
16029
160302007-10-19 Juanma Barranquero <lekktu@gmail.com>
16031
16032 * process.c (Fset_process_filter): Doc fix.
16033
160342007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
16035
16036 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
16037 which caused key-translation-map to applied repeatedly (thus breaking
16038 double-mode).
16039
160402007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
16041
16042 * xselect.c (x_own_selection, x_handle_selection_clear)
16043 (x_clear_frame_selections):
16044 * w32menu.c (list_of_panes, list_of_items):
16045 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
16046 * textprop.c (validate_plist, interval_has_all_properties)
16047 (interval_has_some_properties, interval_has_some_properties_list)
16048 (add_properties, text_property_list):
16049 * process.c (Fget_buffer_process, list_processes_1, status_notify):
16050 * minibuf.c (Fassoc_string):
16051 * macselect.c (x_own_selection, x_clear_frame_selections)
16052 (Fx_disown_selection_internal):
16053 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
16054 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
16055
160562007-10-17 Chong Yidong <cyd@stupidchicken.com>
16057
16058 * process.c: Link to libs for calling res_init() if available.
16059 (Fmake_network_process): Call res_init() before getaddrinfo or
16060 gethostbyname, if possible.
16061
160622007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
16063
16064 * lread.c (read1): Set pvectype for char_tables.
16065
16066 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
16067 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
16068 Add type checks.
16069 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
16070
16071 * alloc.c (free_misc): Use XMISCTYPE.
16072 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
16073
160742007-10-17 Glenn Morris <rgm@gnu.org>
16075
16076 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
16077 (syms_of_minibuf): Add Qcompletion_ignore_case.
16078 * dired.c (Qcompletion_ignore_case): Change to external.
16079 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
16080 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
16081 (Fread_file_name): Use it rather than intern'ing.
16082
16083 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
16084 (Fread_coding_system): Ignore case of user input.
16085
160862007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16087
16088 * xdisp.c (handle_display_prop): Ignore display specs after
16089 replacing one when string text is being replaced.
16090 (handle_single_display_spec): Pretend as if characters with display
16091 property haven't been consumed only when buffer text is being replaced.
16092
160932007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
16094
16095 * xfns.c (Fx_create_frame, Fx_display_list):
16096 * window.c (window_fixed_size_p, enlarge_window)
16097 (shrink_window_lowest_first):
16098 * macterm.c (init_font_name_table):
16099 * macfns.c (Fx_create_frame, Fx_display_list):
16100 * lread.c (close_load_descs):
16101 * keyboard.c (read_char_x_menu_prompt):
16102 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
16103 * coding.c (code_convert_region_unwind): Test the type of an object
16104 rather than just !NILP before extracting data from it.
16105
16106 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
16107
16108 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
16109 (XMISCANY): New macro.
16110 (XMISCTYPE): Use it.
16111 (struct Lisp_Misc_Any): New type.
16112 (union Lisp_Misc): Use it.
16113 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
16114 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
16115 (find_symbol_value, set_internal, default_value, Fset_default)
16116 (Fmake_variable_buffer_local, Fmake_local_variable)
16117 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
16118 (Flocal_variable_if_set_p, Fvariable_binding_locus):
16119 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
16120 * alloc.c (allocate_buffer): Set the size and tag.
16121 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
16122 Use XMISCANY.
16123 (die): Follow the GNU convention for error messages.
16124 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
16125 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
16126 tag any more.
16127 (set_buffer_internal_1):
16128 * frame.c (store_frame_param):
16129 * eval.c (specbind):
16130 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
16131
16132 * doc.c (Fsnarf_documentation): Simplify.
16133
161342007-10-14 Juanma Barranquero <lekktu@gmail.com>
16135
16136 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
16137 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
16138
161392007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
16140
16141 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
16142
161432007-10-14 Juanma Barranquero <lekktu@gmail.com>
16144
16145 * eval.c (do_autoload): Don't save autoloads.
16146
16147 * data.c (Ffset): Save autoload of the function being set.
16148
161492007-10-07 John Paul Wallington <jpw@pobox.com>
16150
16151 * xfns.c (x_create_tip_frame): Set the `display-type' frame
16152 parameter before setting up faces.
16153
161542007-10-13 Eli Zaretskii <eliz@gnu.org>
16155
16156 * ccl.c (Fregister_code_conversion_map):
16157 * keyboard.c (append_tool_bar_item): Reformat last change.
16158
16159 * lisp.h (eabs): Rename from `abs'. All callers changed.
16160
161612007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
16162
16163 * buffer.c (add_overlay_mod_hooklist):
16164 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
16165 * fontset.c (make_fontset):
16166 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
16167 (append_tool_bar_item):
16168 * macmenu.c (grow_menu_items):
16169 * w32menu.c (grow_menu_items):
16170 * xmenu.c (grow_menu_items): Use larger_vector.
16171
161722007-10-13 Eli Zaretskii <eliz@gnu.org>
16173
16174 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
16175 selected frame'' on MSDOS).
16176
161772007-10-12 Martin Rudalics <rudalics@gmx.at>
16178
16179 * frame.c (Qexplicit_name): New variable.
16180 (x_report_frame_params): Report it in parameter alist.
16181 (syms_of_frame): Intern and staticpro it.
16182
161832007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
16184
16185 * macfns.c (x_create_tip_frame): Set terminal for frame.
16186
161872007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
16188
16189 * frame.c (Qenvironment): Remove.
16190 (syms_of_frame) <Qenvironment>: Don't initialize.
16191 (Fdelete_frame): Don't treat the `environment' param specially.
16192 * frame.h (Qenvironment): Don't declare.
16193 * callproc.c (set_initial_environment): Don't set unused frame param.
16194
16195 * frame.c (Fframe_with_environment): Remove.
16196 (syms_of_frame) <Sframe_with_environment>: Don't declare.
16197
16198 * lisp.h (Fframe_with_environment): Don't declare.
16199
162002007-10-10 Juanma Barranquero <lekktu@gmail.com>
16201
16202 * indent.c (indent_tabs_mode, last_known_column)
16203 (last_known_column_modified): Make static.
16204 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
16205
162062007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
16207
16208 * puresize.h (BASE_PURESIZE): Increase to 1170000.
16209
162102007-10-09 Jason Rumney <jasonr@gnu.org>
16211
16212 * w32term.c (x_set_window_size): Disable code that attempts to tell
16213 Lisp code about a size change before it actually happens.
16214
162152007-10-09 Richard Stallman <rms@gnu.org>
16216
16217 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
16218 return HANDLED_RETURN.
16219
162202007-10-08 Martin Rudalics <rudalics@gmx.at>
16221
16222 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
16223 when there's an unread command event.
16224
16225 * frame.c (focus_follows_mouse): Move here from frame.el to allow
16226 window autoselection act appropriately when leaving selected frame.
16227 (syms_of_frame): Initialize focus_follows_mouse.
16228 * frame.h (focus_follows_mouse): Extern it.
16229 * macterm.c (XTread_socket): When focus_follows_mouse is nil
16230 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
16231 * msdos.c (dos_rawgetc): Likewise.
16232 * w32term.c (w32_read_socket): Likewise.
16233 * xterm.c (handle_one_xevent): Likewise.
16234 * xdisp.c (syms_of_xdisp): In doc-string of
16235 mouse-autoselect-window mention focus-follows-mouse.
16236
162372007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16238
16239 * macterm.c (mac_load_query_font): Fix missing return value.
16240 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
16241 Add BLOCK_INPUT.
16242
162432007-10-08 Richard Stallman <rms@gnu.org>
16244
16245 * xdisp.c (get_window_cursor_type): Implement documented behavior
16246 for cursor-in-non-selected-windows = t.
16247
162482007-10-08 Jason Rumney <jasonr@gnu.org>
16249
16250 * w32.c (w32_get_resource): Always close registry keys.
16251
162522007-10-08 Jason Rumney <jasonr@gnu.org>
16253
16254 * makefile.w32-in (LIBS): Add COMCTL32.
16255
16256 * w32fns.c (globals_of_w32fns): Init common controls.
16257
162582007-10-08 Richard Stallman <rms@gnu.org>
16259
16260 * image.c (our_memory_buffer): Rename from omfib_buffer.
16261
162622007-10-08 Richard Stallman <rms@gnu.org>
16263
16264 * buffer.c (Foverlays_at): Doc fix.
16265
162662007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
16267
16268 * fns.c (Fplist_put): Preserve uneven tail data.
16269
162702007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
16271
16272 * termhooks.h (enum event_kind): Remove trailing comma.
16273
16274 * frame.h (enum): Remove trailing comma.
16275
162762007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
16277
16278 * w32proc.c (delete_child): Don't terminate threads of zombies.
16279
162802007-10-08 Martin Rudalics <rudalics@gmx.at>
16281
16282 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
16283
16284 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
16285 last-repeatable-command.
16286 (init_kboard): Initialize Vlast_repeatable_command.
16287 (command_loop_1): Set it to real_this_command unless that was
16288 bound to an input event.
16289 (mark_kboards): Mark it.
16290
162912007-10-08 Richard Stallman <rms@gnu.org>
16292
16293 * eval.c (condition-case): Doc fix.
16294
162952007-10-08 Masatake YAMATO <jet@gyve.org>
16296
16297 * xfaces.c (tty_supports_face_attributes_p): Fix code
16298 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
16299 was copied and not edited.
16300
163012007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
16302
16303 Add new `input-decode-map' keymap and use it for terminal
16304 escape sequences.
16305 * keyboard.h (struct kboard): Add Vinput_decode_map.
16306 Remove Vlocal_key_translation_map.
16307 * keyboard.c (read_key_sequence): Add support for input-decode-map.
16308 (init_kboard): Init input-decode-map.
16309 Replace local-key-translation-map back with key-translation-map.
16310 (syms_of_keyboard): Declare input-decode-map.
16311 Remove local-key-translation-map. Update docstrings.
16312 (mark_kboards): Mark Vinput_decode_map.
16313 Don't mark Vlocal_key_translation_map.
16314 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
16315 Replace local-key-translation-map back with key-translation-map.
16316 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
16317 Bind in input-decode-map rather than function-key-map.
16318
16319 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
16320 This was made redundant by the previous introduction of XSETPVECTYPE.
16321
163222007-10-09 Richard Stallman <rms@gnu.org>
16323
16324 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
16325
163262007-09-29 Richard Stallman <rms@gnu.org>
16327
16328 * eval.c (internal_condition_case_2, internal_condition_case_1)
16329 (internal_condition_case): Reenable abort if x_catching_errors ()
16330 to see if that really happens and why.
16331
163322007-10-06 Andreas Schwab <schwab@suse.de>
16333
16334 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
16335
163362007-10-04 Juanma Barranquero <lekktu@gmail.com>
16337
16338 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
16339
163402007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
16341
16342 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
16343
163442007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
16345
16346 * window.h (struct window):
16347 * window.c (struct save_window_data, struct saved_window):
16348 * termhooks.h (struct terminal):
16349 * process.h (struct Lisp_Process):
16350 * frame.h (struct frame):
16351 * buffer.h (struct buffer):
16352 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
16353 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
16354 The size field of (pseudo)vectors is now unsigned.
16355 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
16356
16357 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
16358 Turn `count' into an integer.
16359
16360 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
16361 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
16362 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
16363 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
16364 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
16365
16366 * alloc.c (allocate_pseudovector): New fun.
16367 (ALLOCATE_PSEUDOVECTOR): New macro.
16368 (allocate_window, allocate_terminal, allocate_frame)
16369 (allocate_process): Use it.
16370 (mark_vectorlike): New function.
16371 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
16372 (mark_terminals): Use it.
16373 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
16374 (Fmake_byte_code): Use XSETPVECTYPE.
16375
16376 * frame.c (Fframe_parameters): Minor simplification.
16377
16378 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
16379
16380 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
16381
16382 * buffer.c (Fget_buffer_create, init_buffer_once):
16383 * lread.c (defsubr):
16384 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
16385
16386 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
16387 defined differently in the m/*.h files.
16388 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
16389 (XSETPVECTYPE): New macro.
16390 (XSETPSEUDOVECTOR): Use it.
16391
16392 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
16393 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
16394
16395 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
16396 * lread.c (defvar_per_buffer):
16397 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
16398
16399 * window.c (candidate_window_p): Only consider as visible frames that
16400 are on the same terminal.
16401
16402 * m/ibms390x.h (MARKBIT): Remove unused macro.
16403
164042007-10-01 Juanma Barranquero <lekktu@gmail.com>
16405
16406 * lread.c (Fload): Fix typo in docstring.
16407
164082007-10-01 Michaël Cadilhac <michael@cadilhac.name>
16409
16410 * floatfns.c (Fexpt): Manually check for overflows, so that a power
16411 of a non-zero value can't yield zero.
16412
164132007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
16414
16415 * term.c (term_clear_mouse_face, term_mouse_highlight)
16416 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
16417
16418 * print.c (safe_debug_print): Use XHASH.
16419
16420 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
16421 Lisp elements such as tags.
16422 (XHASH): New macro.
16423 (EQ): Use it.
16424 (SREF, SSET, STRING_COPYIN): Use SDATA.
16425 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
16426
16427 * alloc.c (mark_terminal): Remove left-over declaration.
16428 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
16429 (allocate_vectorlike): Remove type argument. Adjust callers.
16430 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
16431 Only handle the one remaining MEM_TYPE_VECTORLIKE.
16432
16433 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
16434 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
16435 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
16436 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
16437 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
16438 Use them.
16439
16440 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
16441 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
16442 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
16443
164442007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
16445
16446 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
16447 loaded by default.
16448
164492007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
16450
16451 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
16452 on this tty.
16453 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
16454
16455 * term.c (mouse_face_window): Rename from Qmouse_face_window.
16456 Update all users.
16457 (handle_one_term_event): Use Gpm_DrawPointer.
16458 (Fgpm_mouse_start): Rename from Fterm_open_connection.
16459 Signal errors instead of returning nil. Always return nil.
16460 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
16461 Make it a noop if gpm-mouse was not activated.
16462 (syms_of_term): Update names.
16463
164642007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
16465
16466 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
16467 (init_sys_modes): Check that gpm_tty is the current tty.
16468
16469 * alloc.c (allocate_terminal): Set the vector size to only count the
16470 lisp fields. Initialize those to nil.
16471 (mark_object): Don't treat terminals specially.
16472 (mark_terminal): Remove.
16473 (mark_terminals): Use mark_object instead.
16474
16475 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
16476 the GC to the beginning.
16477
16478 * indent.h:
16479 * indent.c: Use EMACS_INT for ints coming from Elisp data.
16480
16481 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
16482
164832007-09-25 Jason Rumney <jasonr@gnu.org>
16484
16485 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
16486
16487 * w32console.c (create_w32cons_output): Remove.
16488
16489 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
16490
16491 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
16492 (reset_sys_modes): Use reset_terminal_modes_hook.
16493
164942007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
16495
16496 * eval.c (do_autoload): Don't output any message.
16497
164982007-09-24 Juri Linkov <juri@jurta.org>
16499
16500 * emacs.c (standard_args): Change priority of "--no-splash"
16501 from 40 to 3. Add "--no-desktop" with the same priority.
16502
165032007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
16504
16505 * alloc.c (gc_sweep): Check cons cell mark bits word by word
16506 and optimize the case where they are all 1.
16507
165082007-09-23 Johannes Weiner <hannes@saeurebad.de>
16509
16510 * lisp.h (abs): Define if not defined.
16511 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
16512 Don't define `abs', since it's defined in lisp.h.
16513
165142007-09-22 Eli Zaretskii <eliz@gnu.org>
16515
16516 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
16517 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
16518 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
16519 (init_tty): Use DEV_TTY instead of "/dev/tty".
16520 [WINDOWSNT]: No need to protect from NAME arg being null.
16521
165222007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
16523
16524 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
16525 up the tty state.
16526
165272007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
16528
16529 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
16530 (gpm_tty): Change its type.
16531 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
16532 (gpm_tty): Change its type and initialize it.
16533 (Fterm_open_connection): Check the frame is indeed a tty.
16534 Use the new gpm_tty.
16535 (Fterm_close_connection): Use the new gpm_tty.
16536 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
16537 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
16538
165392007-09-21 Juanma Barranquero <lekktu@gmail.com>
16540
16541 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
16542 underline_color, to draw strike-through.
16543
165442007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
16545
16546 * lisp.h (allocate_terminal): Declare.
16547
16548 * window.c (candidate_window_p): Consider frames that are being placed
16549 by the user as somewhere between visible and iconified.
16550 (window_loop): Prefer windows on the current frame.
16551 (Fselect_window): Move the use of select-frame to the beginning so we
16552 can just delegate all the work (it'll call us back anyway).
16553
16554 * frame.c (Qdisplay_environment_variable):
16555 * frame.h (Qdisplay_environment_variable): Delete.
16556
16557 * .gdbinit (xbacktrace): Print the arg's address rather than the value
16558 of the first arg, since that value may be a union.
16559
16560 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
16561 parameter rather than Qdisplay_environment_variable. If all else
16562 fails, look for DISPLAY in initial-environment.
16563
165642007-09-21 Glenn Morris <rgm@gnu.org>
16565
16566 * Makefile.in (emacstool): Remove target.
16567 (lisp, shortlisp): Remove termdev.elc.
16568
165692007-09-21 Markus Triska <markus.triska@gmx.at>
16570
16571 * xterm.c (x_delete_display): Compile session management conditionally.
16572
165732007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
16574
16575 * callproc.c (getenv_internal_1): New function.
16576 (getenv_internal): Use it.
16577 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
16578
16579 * terminal.c (get_terminal): Don't accept ints to represent terminals.
16580 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
16581 (Fset_terminal_parameter): Work with dead terminals as well.
16582 (Fmodify_terminal_parameters): Remove.
16583
16584 * terminal.c (get_terminal): Handle terminals.
16585 Make sure the terminal returned is live.
16586 (create_terminal): Use allocate_terminal.
16587 (mark_terminals): Move to alloc.c.
16588 (delete_terminal): Use terminal->name as liveness status.
16589 NULL out fields after freeing their contents.
16590 Don't deallocate the object.
16591 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
16592 rather than an int.
16593 (Fterminal_live_p): Accept non-integer arguments.
16594 (Fterminal_list): Return terminal objects rather than an ints.
16595
16596 * alloc.c (enum mem_type): New member for `terminal' objects.
16597 (allocate_terminal): New function.
16598 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
16599 Handle terminals.
16600 (mark_terminal): New fun.
16601 (mark_terminals): Move from terminal.c.
16602
16603 * term.c (get_tty_terminal): Don't treat output_initial specially.
16604 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
16605 (delete_tty): Use terminal->name as liveness status.
16606
16607 * termhooks.h (struct terminal): Make it into a pseudovector.
16608 Remove `deleted' replaced by checking `name's nullness.
16609
16610 * print.c (print_object): Handle terminals.
16611
16612 * lisp.h (enum pvec_type): New `terminal' pseudovector.
16613 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
16614
16615 * frame.c (make_terminal_frame):
16616 * keyboard.c (tty_read_avail_input):
16617 * w32term.c (x_delete_terminal):
16618 * xfns.c (Fx_create_frame, x_create_tip_frame):
16619 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
16620
166212007-09-20 Glenn Morris <rgm@gnu.org>
16622
16623 * process.c (Fmake_network_process): Doc fix.
16624
166252007-09-19 Jason Rumney <jasonr@gnu.org>
16626
16627 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
16628
166292007-09-19 Michaël Cadilhac <michael@cadilhac.name>
16630
16631 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
16632 Fix a C warning regarding variable constness.
16633
16634 * xterm.c (handle_one_xevent): Fix a C warning.
16635
166362007-09-18 Jason Rumney <jasonr@gnu.org>
16637
16638 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
16639
166402007-09-17 Jan Djärv <jan.h.d@swipnet.se>
16641
16642 * gtkutil.c (gdpy_def): New variable.
16643 (xg_initialize): Initialize gdpy_def.
16644 (xg_display_close): If no other display exists, set gdpy_def to a
16645 new connection.
16646
166472007-09-16 Jan Djärv <jan.h.d@swipnet.se>
16648
16649 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
16650 when we have no file name for the icon.
16651 (xg_tool_bar_expose_callback): Remove.
16652 (xg_create_tool_bar): Don't connect expose signal to
16653 xg_tool_bar_expose_callback.
16654 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
16655
166562007-09-16 Andreas Schwab <schwab@suse.de>
16657
16658 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
16659 values instead of zapping them.
16660
166612007-09-14 Glenn Morris <rgm@gnu.org>
16662
16663 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
16664 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
16665 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
16666 scope and rename to omfib_buffer for clarity.
16667 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
16668
166692007-09-14 Kenichi Handa <handa@m17n.org>
16670
16671 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
16672
166732007-09-13 Jason Rumney <jasonr@gnu.org>
16674
16675 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
16676
16677 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
16678
16679 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
16680 (mac_term_init): Call here instead, passing rif.
16681
166822007-09-13 Glenn Morris <rgm@gnu.org>
16683
16684 * s/hpux.h: No longer define `static' as nothing.
16685
166862007-09-13 Johan Bockgård <bojohan@gnu.org>
16687
16688 * callint.c (Fcall_interactively): Remove unused var `fun'.
16689
166902007-09-12 Romain Francoise <romain@orebokech.com>
16691
16692 * window.c (prefer_window_split_horizontally, display_buffer):
16693 Revert 2007-09-08 change.
16694
166952007-09-12 Glenn Morris <rgm@gnu.org>
16696
16697 * alloca.c: Remove file.
16698 * Makefile.in (alloca): Do not undef.
16699 (allocaobj, alloca.o): Remove.
16700 (otherobj): Remove allocaobj.
16701 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
16702 * regex.c (C_ALLOCA): Remove all references and code that was only
16703 used when this was defined.
16704 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
16705 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
16706 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
16707
16708 * Makefile.in (SOURCES, unlock, relock): Delete.
16709
16710 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
16711 (menu_grab_callback): All uses changed.
16712
16713 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
16714 (x_reply_selection_request): All uses changed.
16715
167162007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
16717
16718 * lread.c (load_warn_old_style_backquotes): Change message to look
16719 better when it appears in the middle of byte-compiler messages.
16720
167212007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
16722
16723 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
16724
16725 * xterm.c (x_create_terminal): Add comment.
16726
16727 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
16728
167292007-09-10 Richard Stallman <rms@gnu.org>
16730
16731 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
16732
167332007-09-10 Michaël Cadilhac <michael@cadilhac.name>
16734
16735 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
16736 (DEFUN): Document `intspec', use it instead of `prompt'.
16737
16738 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
16739
16740 * data.c (Finteractive_form): If the interactive specification starts
16741 with a `(', use it as a Lisp form.
16742
16743 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
16744 name and file modes.
16745
16746 * callint.c (Fcall_interactively): Comment fixes.
16747
167482007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
16749
16750 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
16751 and compiled functions.
16752
167532007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
16754
16755 * window.c (prefer_window_split_horizontally): New variable.
16756 (display_buffer): Consider splitting window horizontally depending
16757 on prefer_window_split_horizontally.
16758
167592007-09-08 Eli Zaretskii <eliz@gnu.org>
16760
16761 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
16762
167632007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
16764
16765 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
16766
16767 * frame.c (x_set_frame_parameters): Check number is positive before
16768 using XFASTINT.
16769
16770 * window.c (freeze_window_start): Don't presume selected_window holds
16771 a window object.
16772 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
16773
167742007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
16775
16776 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
16777
167782007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
16779
16780 * window.c (Vsplit_window_preferred_function): New var.
16781 (Fdisplay_buffer): Use it.
16782 (syms_of_window): Export, and initialize it.
16783
167842007-09-06 Pixel <pixel@mandriva.com> (tiny change)
16785
16786 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
16787
167882007-09-06 Glenn Morris <rgm@gnu.org>
16789
16790 * gtkutil.c (menu_grab_callback) <cnt>:
16791 * xselect.c (x_reply_selection_request) <cnt>: Move static
16792 variable to file scope.
16793
167942007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
16795
16796 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
16797 consistent values of selected_frame and selected_window.
16798
167992007-09-04 Jason Rumney <jasonr@gnu.org>
16800
16801 * w32console.c (initialize_w32_display): Zero unused hooks.
16802
168032007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
16804
16805 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
16806 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
16807
168082007-09-04 Jason Rumney <jasonr@gnu.org>
16809
16810 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
16811 in w32console.c. Set up input. Remove XXX comments that have been
16812 confirmed as correct.
16813
16814 * s/ms-w32.h (MULTI_KBOARD): Define.
16815
16816 * w32console.c (one_and_only_w32cons): Remove.
16817 (initialize_w32_display): Take terminal argument.
16818
16819 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
16820 initialize_w32_display.
16821 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
16822
16823 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
16824
16825 * keyboard.c (discard_mouse_events): Discard it.
16826 (make_lispy_event): Translate it to a lisp event.
16827 (lispy_wheel_names): Add wheel-left and right events.
16828 (syms_of_keyboard): Enlarge wheel_syms.
16829
16830 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
16831 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
16832
16833 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
16834
16835 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
16836 from WM_MOUSEHWHEEL.
16837 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
16838
16839 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
16840 terminal.
16841
16842 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
16843 keyboard for the terminal.
16844
168452007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
16846
16847 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
16848 (Vresume_tty_hook): Rename from Vresume_tty_functions.
16849 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
16850 and resume-tty-function to resume-tty-hook.
16851 (Fsuspend_tty, Fresume_tty): Use new names.
16852
168532007-09-02 Jan Djärv <jan.h.d@swipnet.se>
16854
16855 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
16856 if it starts with "n:".
16857
168582007-08-31 Jan Djärv <jan.h.d@swipnet.se>
16859
16860 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
16861
168622007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
16863
16864 * frame.h:
16865 * frame.c (Qterm_environment_variable): Remove.
16866 (syms_of_frame): Don't init and staticpro it.
16867
16868 * callproc.c (getenv_internal): Remove special case for $TERM.
16869
16870 * callproc.c (Vinitial_environment): New variable.
16871 (set_initial_environment): Initialize it.
16872 (syms_of_callproc): Declare it.
16873 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
16874 TERM under which a process runs is never related to the TERM in which
16875 Emacs is running.
16876
168772007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
16878
16879 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
16880 * s/darwin.h: ... do it here.
16881
168822007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
16883
16884 * lisp.h (set_initial_environment): Rename from set_global_environment.
16885
16886 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
16887 removed by mistake on the multi-tty branch.
16888
16889 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
16890 (Fmodify_frame_parameters): Return a value.
16891
16892 * image.c (png_load): Comment-out var only used in commented-out code.
16893
16894 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
16895 before passing it to mark_object.
16896
16897 * xfaces.c (internal_resolve_face_name): Return a value.
16898 (internal_resolve_face_name, resolve_face_name_error): Comment out.
16899
16900 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
16901 (x_icon): Comment-out var only used in commented-out code.
16902
169032007-08-29 Romain Francoise <romain@orebokech.com>
16904
16905 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
16906 QUIT hasn't been provided.
16907
169082007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
16909
16910 * callproc.c (child_setup, getenv_internal): Use the
16911 display-environment-variable and term-environment-variable frame params.
16912 (set_initial_environment): Initialise Vprocess_environment.
16913
16914 * config.in: Disable multi-keyboard support on a mac.
16915
16916 * frame.c (Qterm_environment_variable)
16917 (Qdisplay_environment_variable): New variables.
16918 (syms_of_frame): Intern and staticpro them.
16919 (Fmake_terminal_frame): Disable output method test.
16920
16921 * frame.h: Declare them here.
16922
16923 * macfns.c (x_set_mouse_color): Get rif from the frame.
16924 (x_set_tool_bar_lines): Don't use updating_frame.
16925 (mac_window): Add 2 new parameters for consistency with other systems.
16926 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
16927 frame parameters following what is done in X11 and w32. Don't use
16928 FRAME_MAC_DISPLAY_INFO.
16929 (Fx_open_connection, start_hourglass): Remove window-system check.
16930 (x_create_tip_frame): Get the keyboard from the terminal.
16931
16932 * macmenu.c: Reorder includes.
16933 (Fx_popup_menu): Use terminal specific mouse_position_hook.
16934
16935 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
16936 terminal parameter.
16937 (x_clear_frame): Add a frame parameter.
16938 (note_mouse_movement): Get rif from the frame.
16939 (mac_term_init): Initialize the terminal.
16940 (mac_initialize): Make static and move terminal initialization ...
16941 (mac_create_terminal): ... to this new function.
16942
16943 * macterm.h (struct mac_display_info): Add terminal.
16944 (mac_initialize): Delete declaration.
16945
16946 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
16947
16948 * sysdep.c: Comment out text after #endif.
16949
16950 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
16951 is defined. Better initialize ttys in windows. Use terminal
16952 specific mouse_position_hook.
16953
16954 * termhooks.h (union display_info): Add mac_display_info.
16955
16956 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
16957 Set the default minibuffer frame, window_system and the rest of the
16958 frame parameters following what is done in X11.
16959
16960 * w32term.c (w32_initialize): Make static.
16961
16962 * xselect.c (x_handle_selection_clear): Only access
16963 terminal->kboard when MULTI_KBOARD is defined.
16964
16965 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
16966 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
16967
169682007-08-29 Jason Rumney <jasonr@gnu.org>
16969
16970 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
16971 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
16972
16973 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
16974 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
16975
16976 * keyboard.c (restore_kboard_configuration): Only define when
16977 MULTI_KBOARD defined.
16978
16979 * makefile.w32-in: Update dependancies from Makefile.in.
16980 (OBJ1): Add terminal.$(O)
16981
16982 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
16983 Don't define function body.
16984 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
16985
16986 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
16987
16988 * w32.c (request_sigio, unrequest_sigio): Remove.
16989
16990 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
16991 (w32con_clear_frame, w32con_clear_end_of_line)
16992 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
16993 (w32con_delete_glyphs, w32con_set_terminal_window)
16994 (scroll_line, w32_sys_ring_bell): Add frame arg.
16995 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
16996 Add terminal arg.
16997 (PICK_FRAME): Remove.
16998 (w32con_write_glyphs): Use frame specific terminal coding.
16999 (one_and_only_w32cons): New global variable.
17000 (initialize_w32_display): Use it for storing hooks.
17001 (create_w32cons_output): New function.
17002
17003 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
17004 arg a frame.
17005
17006 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
17007 Set window_system.
17008 (x_set_tool_bar_lines): Don't use updating_frame.
17009 (Fx_create_frame): Set terminal and ref count.
17010 (Fx_open_connection): Remove window-system check.
17011
17012 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
17013
17014 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
17015 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
17016 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
17017 Add frame arg.
17018 (x_delete_terminal, w32_create_terminal): New functions.
17019 (w32_term_init): Create a terminal.
17020 (w32_initialize): Move terminal specific initialization to
17021 w32_create_terminal.
17022
17023 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
17024 (w32_clear_rect, w32_clear_area): Use background from frame.
17025 (w32_display_info): Add terminal.
17026 (w32_sys_ring_bell, x_delete_display): Declare here.
17027
17028 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
17029
17030 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
17031
170322007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
17033
17034 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
17035 Fix get_named_tty calls for the controlling tty.
17036
170372007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
17038
17039 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
17040
170412007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
17042
17043 * term.c (tty_insert_glyphs): Add missing first parameter.
17044
170452007-08-29 Károly Lőrentey <karoly@lorentey.hu>
17046
17047 * buffer.c (Fbuffer_list, Fbury_buffer):
17048 Take frame->buried_buffer_list into account.
17049
17050 * cm.c (current_tty): New variable, for cmputc().
17051 (cmputc): Use it.
17052 (cmcheckmagic): Add tty parameter, look up terminal streams there.
17053 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
17054 (cmgoto): Add tty parameter. Pass it on to calccost().
17055 Use emacs_tputs() instead of tputs().
17056
17057 * cm.h (emacs_tputs): New macro to set current_tty, and then call
17058 tputs().
17059 (current_tty): New variable, for cmputc().
17060 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
17061
17062 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
17063 (internal_condition_case, internal_condition_case_1)
17064 (internal_condition_case_2): Don't abort when x_catching_errors.
17065
17066 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
17067 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
17068 prevent crashes caused by bogus longjmps in read_char.
17069
17070 * keymap.h (Fset_keymap_parent): Add EXFUN.
17071
17072 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
17073 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
17074 Remove redundant definition.
17075
17076 * macfns.c (x_set_mouse_color, x_make_gc):
17077 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
17078
17079 * w32term.c (x_free_frame_resources):
17080 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
17081 (w32_initialize): Use the accessor macros for terminal characteristics.
17082
17083 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
17084 Use the accessor macros for terminal characteristics.
17085 * msdos.c (internal_terminal_init): Use the accessor macros for
17086 terminal characteristics.
17087 (ScreenVisualBell, internal_terminal_init):
17088 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
17089
17090 * termopts.h (no_redraw_on_reenter): Declare.
17091
17092 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
17093 (mark_terminals, mark_ttys): Declare.
17094 (Fgarbage_collect): Call them.
17095 (mark_object): Mark buried_buffer_list.
17096
17097 * prefix-args.c: Include stdlib.h for exit.
17098
17099 * syssignal.h: Add comment.
17100
17101 * indent.c: Include stdio.h.
17102
17103 * window.h (Vinitial_window_system): Declare.
17104 (Vwindow_system): Delete declaration.
17105
17106 * fontset.c (Finternal_char_font): Use FRAME_RIF.
17107
17108 * image.c (lookup_image): Don't initialize `c' until the xasserts
17109 have been run.
17110
17111 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
17112 FRAME_FOREGROUND_PIXEL.
17113
17114 * print.c (print_preprocess): Don't lose print_depth levels while
17115 iterating.
17116
17117 * widget.c (update_from_various_frame_slots):
17118 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
17119
17120 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
17121 frames.
17122 (window_internal_height): Remove bogus make_number call.
17123 (init_window_once): Call make_terminal_frame with two zero parameters.
17124
17125 * fileio.c (Fread_file_name): Update comment.
17126
17127 * callint.c (Fcall_interactively):
17128 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
17129 Make sure it is correctly unwound.
17130
17131 * xsmfns.c (x_session_close): New function.
17132
17133 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
17134 Delete declarations.
17135
17136 * xterm.h: Remove declaration for x_fully_uncatch_errors.
17137 (x_output): Remove background_pixel and foreground_pixel fields.
17138 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
17139 (x_delete_device, x_session_close): Declare.
17140
17141 * lread.c: Include setjmp.h. Update declaration of `read_char'.
17142 (read_filtered_event): Call `read_char' with a local
17143 `wrong_kboard_jmpbuf'.
17144
17145 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
17146 Don't call single_kboard_state. Use FRAME_RIF.
17147
17148 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
17149 systems.
17150
17151 * lisp.h (set_process_environment): Rename to `set_global_environment'.
17152 (Fframe_with_environment, Fset_input_meta_mode)
17153 (Fset_quit_char): EXFUN.
17154 (x_create_device, tty_output, terminal, tty_display_info): Declare.
17155 (init_sys_modes, reset_sys_modes): Update prototypes.
17156 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
17157
17158 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
17159 Vlocal_key_translation_map, and Vkeyboard_translate_table.
17160 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
17161 Delete declarations.
17162 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
17163 (temporarily_switch_to_single_kboard, tty_read_avail_input):
17164 New declarations.
17165
17166 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
17167 already does that during init_display(). Call syms_of_keymap
17168 before syms_of_keyboard. Call `syms_of_terminal'.
17169 Call set_initial_environment, not set_process_environment.
17170 (shut_down_emacs): Call reset_all_sys_modes() instead of
17171 reset_sys_modes().
17172
17173 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
17174 (internal_resolve_face_name, resolve_face_name_error): New functions.
17175 (resolve_face_name): Protect against loops and errors thrown by Fget.
17176 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
17177 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
17178
17179 * scroll.c: Replace CURTTY() with local variables throughout the
17180 file (where applicable).
17181 (calculate_scrolling, calculate_direct_scrolling)
17182 (scrolling_1, scroll_cost): Use the accessor macros for terminal
17183 characteristics.
17184
17185 * keymap.c (Vfunction_key_map): Remove.
17186 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
17187 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
17188 (Vkey_translation_map): Remove.
17189 (syms_of_keymap): Remove DEFVAR for key-translation-map.
17190 (Fdescribe_buffer_bindings)
17191 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
17192 Update for terminal-local key-translation-map.
17193
17194 * Makefile.in (callproc.o): Update dependencies.
17195 (lisp, shortlisp): Add termdev.elc.
17196 (obj): Add terminal.o.
17197 (terminal.o): Add dependencies.
17198 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
17199 (data.o, fns.o): Add termhooks.h dependency.
17200 (SOME_MACHINE_LISP): Add dnd.elc.
17201 (minibuf.o): Fix typo.
17202 Update dependencies.
17203
17204 * data.c (do_symval_forwarding, store_symval_forwarding)
17205 (find_symbol_value): Use the selected frame's keyboard, not
17206 current_kboard.
17207
17208 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
17209 Vwindow_system.
17210
17211 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
17212 Fmenu_bar_open.
17213 (syms_of_xmenu): Update defsubr.
17214 (mouse_position_for_popup, Fx_popup_menu)
17215 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
17216 (set_frame_menubar, free_frame_menubar)
b97439ce 17217 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
17218 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
17219 an X frame.
17220
17221 * xselect.c (x_own_selection): Abort if not an X frame.
17222 (some_frame_on_display): Check if it is an X frame.
17223 (x_handle_selection_clear): Deal with MULTI_KBOARD.
17224
17225 * coding.c: Include frame.h and termhooks.h.
17226 (terminal_coding, keyboard_coding): Delete.
17227 (Fset_terminal_coding_system_internal)
17228 (Fset_keyboard_coding_system_internal)
17229 (Fkeyboard_coding_system)
17230 (Fterminal_coding_system): Add a terminal parameter.
17231 Get terminal_coding from the terminal.
17232 (init_coding_once): Don't call setup_coding_system here.
17233
17234 * dispextern.h (set_scroll_region, turn_off_insert)
17235 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
17236 (tty_clear_end_of_line, tty_setup_colors)
17237 (delete_tty, updating_frame)
17238 (produce_special_glyphs, produce_glyphs, write_glyphs)
17239 (insert_glyphs): Remove.
17240 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
17241 (tty_turn_off_highlight, get_tty_size): Add declaration.
17242 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
17243
17244 * frame.h (enum output_method): Add output_initial.
17245 (struct x_output): Delete.
17246 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
17247 Access foreground_pixel and background_pixel directly from the frame.
17248 (tty_display): Delete.
17249 (struct frame): Add buried_buffer_list, foreground_pixel,
17250 background_pixel and terminal. Delete kboard.
17251 (union output_data): Add tty.
17252 (FRAME_KBOARD): Get the kboard from the terminal.
17253 (FRAME_INITIAL_P): New macro.
17254 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
17255 (Qterm_environment_variable, Qdisplay_environment_variable)
17256 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
17257 New declarations.
17258
17259 * termchar.h (tty_output, tty_display_info): New structures.
17260 (tty_list): Declare.
17261 (FRAME_TTY, CURTTY): New macros.
17262 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
17263 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
17264 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
17265 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
17266
17267 * callproc.c: Include frame.h and termhooks.h, for terminal
17268 parameters.
17269 (add_env): New function.
17270 (child_setup): Use it.
17271 (child_setup, getenv_internal): Handle the new Vprocess_environment.
17272 (getenv_internal): Fix get_terminal_param call.
17273 (Fgetenv_internal, egetenv): Update doc.
17274 (syms_of_callproc): Initialize Vprocess_environment to nil.
17275 Register and initialize them. Remove obsolete defvars. Update doc
17276 strings.
17277 (child_setup): Handle Vlocal_environment_variables.
17278 (getenv_internal): Add terminal parameter.
17279 Handle Vlocal_environment_variables.
17280 (Fgetenv_internal): Add terminal parameter.
17281 (child_setup, getenv_internal, Fgetenv_internal): Store the local
17282 environment in a frame (not terminal) parameter. Update doc strings.
17283 (set_initial_environment): Rename from set_global_environment.
17284 Store Emacs environment in initial frame parameter.
17285
17286 * xdisp.c (redisplay_internal): Update references to
17287 `previous_terminal_frame'.
17288 (display_mode_line, Fformat_mode_line): Replace calls to
17289 `push_frame_kboard' with `push_kboard'.
17290 (get_glyph_string_clip_rects): Add extra parentheses and
17291 braces to prevent compiler warnings.
17292 (calc_pixel_width_or_height): Add xassert to check that the
17293 frame is alive. Don't call `lookup_image' on a termcap frame.
17294 (message2_nolog, message3_nolog, redisplay_internal)
17295 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
17296 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
17297 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
17298 (Fx_display_pixel_width, Fx_display_pixel_height)
17299 (Fx_display_planes, Fx_display_color_cells)
17300 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
17301 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
17302 (Fx_display_backing_store, Fx_display_visual_class)
17303 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
17304 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
17305
17306 * xfns.c (x_set_foreground_color x_set_background_color)
17307 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
17308 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
17309 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
17310 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
17311 terminal that is being deleted.
17312 (Fx_create_frame): Use `store_frame_param' to set `window-system'
17313 frame parameter, and make sure it overrides any user-supplied setting.
17314 (Fx_close_connection, Fx_synchronize): Unify argument names with
17315 the rest of the DEFUNs.
17316
17317 * dispnew.c (Fsend_string_to_terminal): Update call to
17318 `get_tty_terminal'.
17319 (Fredraw_frame, Fsend_string_to_terminal)
17320 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
17321 FRAME_TERMCAP_P and FRAME_TTY.
17322 (window_change_signal): Don't believe width/height values that are
17323 impossibly small.
17324 (Vinitial_window_system): Rename from Vwindow_system.
17325 (termscript, Wcm, rif): Delete.
17326
17327 * termhooks.h (struct terminal): New struct containing the
17328 previously global text display hooks and new members NAME,
17329 DELETED and PARAM_ALIST.
17330 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
17331 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
17332 (FRAME_RIF): New macros.
17333 (get_terminal_param, get_device): New declarations.
17334 (termscript): Delete declaration.
17335
17336 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
17337 (XTflash, x_free_frame_resources, x_scroll_bar_create)
17338 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
17339 FRAME_FOREGROUND_PIXEL.
17340 (x_fully_uncatch_errors): Disable definition.
17341 (x_scroll_bar_expose): Fix reference to foreground pixel.
17342 (XTread_socket): Disable loop on all X displays.
17343 (x_delete_terminal): Don't set terminal->deleted and let
17344 delete_terminal delete the frames on the terminal.
17345 (x_delete_display): Doc update to reflect changes in
17346 delete_terminal.
17347 (x_display_info) <terminal>: Move member earlier in the struct.
17348 (deleting_tty): Remove old variable.
17349 (Fsuspend_tty): Call clear_tty_hooks.
17350 (Fresume_tty, init_tty): Call set_tty_hooks.
17351 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
17352 errors on X frames.
17353 (x_catch_errors_unwind): Abort if x_error_message is NULL.
17354 (handle_one_xevent): Initialize `f' to NULL.
17355 (x_delete_terminal, x_create_terminal): New functions.
17356 (XTset_terminal_modes, XTreset_terminal_modes)
17357 (XTread_socket, x_connection_closed, x_term_init)
17358 (x_term_init, x_delete_display): Add terminal parameter.
17359 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
17360 X connections.
17361
17362 * frame.c: Include termchar.h.
17363 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
17364 (Qwindow_system, Qenvironment, Qterm_environment_variable)
17365 (Qdisplay_environment_variable): New vars.
17366 (Fframep): Deal with output_initial.
17367 (Fframe-live-p): Doc fix.
17368 (Fwindow-system): New function.
17369 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
17370 (make_terminal_frame): Don't create frames on a terminal that is
17371 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
17372 (store_frame_param): Check for found_for_frame before calling XFRAME.
17373 (Fmake_terminal_frame): Handle NULL tty names correctly.
17374 (syms_of_frame): Enhance doc string of `default-frame-alist'.
17375 (Fdelete_frame): Remove unused variable `count'. Don't allow other
17376 frames to refer to a deleted frame in their 'environment parameter.
17377 (Fframe_with_environment): New function.
17378 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
17379 (get_future_frame_param): New function.
17380 (Fmake_terminal_frame): Use it.
17381 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
17382
17383 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
17384 * sysdep.c (reset_sys_modes): Update for renames.
17385
17386 * keyboard.c (tty_read_avail_input): New function.
17387 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
17388 (syms_of_keyboard): Defsubr them.
17389 (Fset_input_meta_mode, Fset_quit_char): New functions.
17390 (Fset_input_mode): Split to above functions.
17391 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
17392 parameter. Use it in call to `read_char'.
17393 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
17394 Set wrong_kboard_jmpbuf correctly in recursive calls.
17395 Use current_kboard to access Vkeyboard_translate_table.
17396 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
17397 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
17398 Update longjmp invocations. Remember the original current_kboard,
17399 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
17400 changes it. Comment out unnecessary calls to
17401 `record_single_kboard_state' and `any_kboard_state'.
17402 Update recursive calls.
17403 (wrong_kboard_jmpbuf): Remove global variable.
17404 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
17405 Handle deleted interrupted_kboards correctly; that is a legal
17406 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
17407 and read_char calls. Abort if interrupted_kboard died in read_char.
17408 (any_kboard_state, single_kboard_state)
17409 (push_frame_kboard): Remove function.
17410 (pop_kboard): Switch out of single_kboard mode if the kboard has
17411 been deleted. Remove unused variable. Help debugging by not
17412 changing current_kboard unnecessarily. Set current_kboard to the
17413 kboard of the selected frame when the stored kboard object has
17414 been deleted before pop_kboard.
17415 (temporarily_switch_to_single_kboard): Change first parameter to a
17416 frame pointer. Throw an error when caller wants to change kboards
17417 while in single_kboard mode. Don't push_kboard if we weren't in
17418 single kboard state. Don't pop_kboard if we popped into any
17419 kboard state.
17420 (restore_kboard_configuration): Abort if pop_kboard changed the
17421 kboard in single_kboard mode. Call pop_kboard only after setting
17422 up single_kboard mode.
17423 (Frecursive_edit): Switch to single_kboard mode only in nested
17424 command loops.
17425 (cmd_error, command_loop, command_loop_1, timer_check):
17426 Comment out unnecessary call to `any_kboard_state' and
17427 `record_single_kboard_state'.
17428 (delete_kboard): Exit single_kboard mode if we have just deleted
17429 that kboard. Use FRAME_KBOARD.
17430 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
17431 `fatal_error_signal'.
17432 (record_single_kboard_state): Don't push_kboard if we weren't in
17433 single kboard state. Don't pop_kboard if we popped into any
17434 kboard state.
17435 (push_frame_kboard): Rename to push_kboard.
17436 (kbd_buffer_get_event): Use FRAME_TERMINAL.
17437 (read_avail_input): Read input from all terminals.
17438 (mark_kboards): Also mark Vkeyboard_translate_table.
17439 (kbd_buffer_store_event_hold): Simplify condition.
17440 (read_key_sequence): Reinitialize fkey and keytran at each replay.
17441 (Vkeyboard_translate_table): Move to struct kboard.
17442 (init_kboard): Initialize Vkeyboard_translate_table.
17443 (syms_of_keyboard): Use DEFVAR_KBOARD to define
17444 Vkeyboard_translate_table. Update doc strings. Update docs of
17445 local-function-key-map and function-key-map.
17446
17447 * terminal.c: New file.
17448
17449 * term.c: Include errno.h.
17450 (Vring_bell_function, device_list, initial_device)
17451 (next_device_id, ring_bell, update_begin, update_end)
17452 (set_terminal_window, cursor_to, raw_cursor_to)
17453 (clear_to_end, clear_frame, clear_end_of_line)
17454 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
17455 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
17456 (syms_of_term): Move their initialization to terminal.c.
17457 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
17458 (Ftty_display_color_cells)
17459 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
17460 (clear_tty_hooks, set_tty_hooks)
17461 (init_tty, maybe_fatal): New functions.
17462 (Ftty_type): Return nil if terminal is not on a tty instead of
17463 throwing an error. Doc update.
17464 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
17465 Doc update. Initialize new subrs and variables.
17466 (delete_tty): Use terminal->deleted.
17467 (tty_set_terminal_modes): Rename from set_terminal_modes.
17468 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
17469 (set_scroll_region): Rename to `tty_set_scroll_region'.
17470 (turn_on_insert): Rename to `tty_turn_on_insert'.
17471 (turn_off_insert): Rename to `tty_turn_off_insert'.
17472 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
17473 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
17474 (toggle_highligh): Rename to `tty_toggle_highlight'.
17475 (background_highlight): Rename to `tty_background_highlight'.
17476 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
17477 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
17478 (tty_set_scroll_region, tty_background_highlight)
17479 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
17480 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
17481 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
17482 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
17483 Add static modifier.
17484 (tty_reset_terminal_modes, tty_set_terminal_window)
17485 (tty_set_scroll_region, tty_background_highlight)
17486 (tty_highlight_if_desired, tty_cursor_to)
17487 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
17488 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
17489 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
17490 renames.
17491
174922007-08-28 Jan Djärv <jan.h.d@swipnet.se>
17493
17494 * keyboard.c: Qrtl is new.
17495 (parse_tool_bar_item): Handle :rtl keyword.
17496 (syms_of_keyboard): Intern :rtl keyword.
17497
17498 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
17499
17500 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
17501 so no Lisp code is executed.
17502 (file_for_image, find_rtl_image): New functions.
17503 (xg_get_image_for_pixmap): Use file_for_image.
17504 (update_frame_tool_bar): If direction is RTL, use RTL image if
17505 defined. Use Gtk stock images if defined.
17506
175072007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17508
17509 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
17510 for nonexistent or zero-width glyph in composition glyph.
17511
175122007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
17513
17514 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
17515
17516 * xdisp.c (Finvisible_p): New function.
17517 (syms_of_xdisp): defsubr it.
17518
175192007-08-24 Juanma Barranquero <lekktu@gmail.com>
17520
17521 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
17522 Doc fixes.
17523
175242007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17525
17526 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
17527
175282007-08-24 Martin Rudalics <rudalics@gmx.at>
17529
17530 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
17531 whether decoding has modified buffer contents.
17532
175332007-08-24 Jason Rumney <jasonr@gnu.org>
17534
17535 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
17536 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
17537 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
17538 (init_svg_functions) [HAVE_NTGUI]: New function.
17539 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
17540 (svg_load_image): Use them.
17541 (svg_load_image) [HAVE_NTGUI]: Implement background.
17542
175432007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17544
17545 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
17546 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
17547 (LIBX): Remove @RSVG_LIBS@.
17548 (LIBES): Add $(RSVG_LIBS).
17549
17550 * image.c (svg_load_image): Blend with specified background if exists.
17551 Use IMAGE_BACKGROUND. Add Mac OS Support.
17552
17553 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
17554 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
17555 Remove macros.
17556 [MAC_OSX] (socket_callback): Do nothing.
17557 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
17558 ReceiveNextEvent.
17559 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
17560 socket_callback.
17561 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
17562
175632007-08-22 Glenn Morris <rgm@gnu.org>
17564
17565 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
17566
175672007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
17568
17569 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
17570
17571 * image.c: Add support for SVG images. Some additional comments
17572 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
17573 (svg_image_p): New function to test for SVG image.
17574 (svg_load): New function to load SVG image.
17575 (svg_load_image): New function, helper for svg_load.
17576 (Qsvg): New Lisp_object.
17577 (svg_keyword_index): New enum.
17578 (svg_format): New static `image_keyword' struct.
17579 (svg_type): New static `image_type' struct.
17580 (librsvg/rsvg.h): Include it.
17581
175822007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
17583
17584 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
17585
175862007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
17587
17588 * lread.c (Qold_style_backquotes): New var.
17589 (syms_of_lread): Init and staticpro it.
17590 (load_warn_old_style_backquotes): New fun.
17591 (Fload): Use them to warn about old style backquotes.
17592 (end_of_file_error, Fload): Remove unused vars.
17593
17594 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
17595
17596 * lread.c (Vold_style_backquotes): New var.
17597 (syms_of_lread): Init and export it to Elisp.
17598 (read1): Set it when we find an old-style (back)quote.
17599
176002007-08-22 Jason Rumney <jasonr@gnu.org>
17601
17602 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
17603
176042007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
17605
17606 * puresize.h (BASE_PURESIZE): Increase to 1140000.
17607
176082007-08-19 Richard Stallman <rms@gnu.org>
17609
17610 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
17611
176122007-08-19 Andreas Schwab <schwab@suse.de>
17613
17614 * alloc.c (pure): Round PURESIZE up.
17615
176162007-08-17 Jan Djärv <jan.h.d@swipnet.se>
17617
17618 * xterm.c (handle_one_xevent): Remove check that mouse click is in
17619 active frame.
17620
176212007-08-16 Richard Stallman <rms@gnu.org>
17622
17623 * eval.c (Fcommandp): Add parens to clarify.
17624
17625 * minibuf.c (Fall_completions): Use enum for type of table.
17626
17627 * emacs.c (USAGE2): Improve text.
17628
176292007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
17630
17631 * term.c (tty_default_color_capabilities): Declare static
17632 variables in file scope, to avoid HPUX compiler problem.
17633
176342007-08-13 Jan Djärv <jan.h.d@swipnet.se>
17635
17636 * gtkutil.c (update_frame_tool_bar): Use -1 as index
17637 to gtk_toolbar_insert.
17638
176392007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
17640
17641 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
17642
17643 * insdel.c (reset_var_on_error): New fun.
17644 (signal_before_change, signal_after_change):
17645 Use it to reset (after|before)-change-functions to nil in case of error.
17646 Bind inhibit-modification-hooks to t.
17647 Don't bind (after|before)-change-functions to nil while they run.
17648
176492007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17650
17651 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
17652 filling pixmap with stippled background.
17653
176542007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17655
17656 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
17657 Don't use invisible frame as parent window for repositioning.
17658
176592007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
17660
17661 * print.c (new_backquote_output): Rename from old_backquote_output.
17662 (print): Inverse its logic (according to its name) so as to match the
17663 behavior of new_backquote_flag in lread.c.
17664
176652007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17666
17667 * gmalloc.c (posix_memalign): New function.
17668
17669 * macterm.c (frame_highlight, frame_unhighlight): Don't call
17670 ActivateControl/DeactivateControl here.
17671 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
17672 frame-notice-user-settings is non-nil.
17673 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
17674 for kEventParamFMFontStyle.
17675 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
17676 mac_pass_command_to_system and mac_pass_control_to_system here.
17677 (XTread_socket): Call ActivateControl/DeactivateControl here.
17678 (XTread_socket) [TARGET_API_MAC_CARBON]:
17679 Check mac_pass_command_to_system and mac_pass_control_to_system here.
17680 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
17681 for window repositioning.
17682
176832007-08-08 Glenn Morris <rgm@gnu.org>
17684
17685 * Replace `iff' in doc-strings and comments.
17686
176872007-08-07 Chong Yidong <cyd@stupidchicken.com>
17688
17689 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
17690
176912007-08-07 Martin Rudalics <rudalics@gmx.at>
17692
17693 * fileio.c (Finsert_file_contents): Run format-decode and
17694 after_insert_file_functions on entire buffer when REPLACE is
17695 non-nil and inhibit modification_hooks and point_motion_hooks.
17696 For consistency, run after_insert_file_functions iff something
17697 got inserted. Move signal_after_change and update_compositions
17698 after code running after_insert_file_functions. Make sure that
17699 undo_list doesn't record intermediate steps of the decoding process.
17700
177012007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17702
17703 * emacs.c (main)
17704 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
17705 Call malloc_enable_thread on interactive startup.
17706
17707 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
17708 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
17709 [USE_PTHREAD]: Conditionalize with it.
17710 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
17711 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
17712 New functions.
17713
177142007-08-06 Chong Yidong <cyd@stupidchicken.com>
17715
17716 * xdisp.c (redisplay_window): When restoring original buffer
17717 position, make sure it is still valid.
17718
17719 * image.c (png_load): Ignore png-supplied background color.
17720
177212007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17722
17723 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
17724 Use kCFAbsoluteTimeIntervalSince1970.
17725
17726 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
17727 New variable.
17728 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
17729 event loop should be quit.
17730 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
17731 Quit dialog event loop if quit_dialog_event_loop is set.
17732
17733 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
17734 (Selection): New typedef. Use instead of ScrapRef.
17735 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
17736 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
17737 (mac_clear_selection): Rename from clear_scrap.
17738 (get_flavor_type_from_symbol): New argument SEL and subsume function of
17739 scrap_has_target_type. All uses changed.
17740 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
17741 (mac_selection_has_target_p): New functions.
17742 (mac_put_selection_value): Rename from put_scrap_string.
17743 (mac_get_selection_value): Rename from get_scrap_string.
17744 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
17745 (put_scrap_private_timestamp, scrap_has_target_type)
17746 (get_scrap_private_timestamp): Remove functions.
17747 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
17748 (x_own_selection, x_get_local_selection):
17749 Use mac_valid_selection_value_p.
17750 (x_own_selection): Don't use put_scrap_private_timestamp.
17751 Record OWNERSHIP-INFO into Vselection_alist instead.
17752 (x_get_local_selection): Don't check type if request is local.
17753 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
17754 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
17755
177562007-08-04 Jan Djärv <jan.h.d@swipnet.se>
17757
17758 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
17759 add comment explaining why.
17760
177612007-08-03 Richard Stallman <rms@gnu.org>
17762
17763 * fileio.c (Fvisited_file_modtime): Use make_time.
17764
177652007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
17766
17767 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
17768 build.
17769
177702007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
17771
17772 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
17773
177742007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
17775
17776 * puresize.h (BASE_PURESIZE): Increase to 1130000.
17777
177782007-07-30 Richard Stallman <rms@gnu.org>
17779
17780 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
17781
177822007-07-29 Jan Djärv <jan.h.d@swipnet.se>
17783
17784 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
17785
177862007-07-28 Nick Roberts <nickrob@snap.net.nz>
17787
17788 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
17789 remote default-directory.
17790
17791 * buffer.c (mode-line-format): Update doc string.
17792
177932007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17794
17795 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
17796 scroll bar gap.
17797 (x_scroll_bar_create): Set bar->fringe_extended_p.
17798 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
17799 on frame edge. Check fringe background extension. Don't clear
17800 extended fringe background area.
17801
17802 * w32term.h (struct scroll_bar): New member fringe_extended_p.
17803 (w32_fill_area): Enclose multiple statements with do ... while (0).
17804
17805 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
17806 Extend fringe background to scroll bar gap.
17807 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
17808 Set bar->fringe_extended_p.
17809 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
17810 Put leftmost/rightmost scroll bars on frame edge. Check fringe
17811 background extension. Don't clear extended fringe background area.
17812
17813 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
17814 New member fringe_extended_p.
17815
178162007-07-25 Glenn Morris <rgm@gnu.org>
17817
17818 * Relicense all FSF files to GPLv3 or later.
17819
17820 * COPYING: Switch to GPLv3.
17821
178222007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
17823
17824 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
17825
17826 * data.c (Finteractive_form): Check for the presence of an
17827 `interactive-form' symbol property more thoroughly.
17828
17829 * data.c (Finteractive_form): Use an `interactive-form' property if
17830 present, analogous to the function-documentation property.
17831
178322007-07-24 Jason Rumney <jasonr@gnu.org>
17833
17834 * w32fns.c (x_real_positions): Get real position from OS instead of
17835 calculating it.
17836
178372007-07-23 Jason Rumney <jasonr@gnu.org>
17838
17839 * filelock.c (current_lock_owner): Allow for @ sign in username.
17840
178412007-07-22 Nick Roberts <nickrob@snap.net.nz>
17842
17843 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
17844 remote default-directory.
17845
17846 * buffer.c (mode-line-format): Describe above case in doc string.
17847
178482007-07-20 Eli Zaretskii <eliz@gnu.org>
17849
17850 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
17851 Define if not defined.
17852
178532007-07-18 Jason Rumney <jasonr@gnu.org>
17854
17855 * w32proc.c (w32_executable_type): Handle 64 bit executables.
17856
178572007-07-18 Richard Stallman <rms@gnu.org>
17858
17859 * data.c (Fsetq_default): Doc fix.
17860
17861 * eval.c (Fsetq): Doc fix.
17862
178632007-07-18 Juanma Barranquero <lekktu@gmail.com>
17864
17865 * coding.c (Ffind_operation_coding_system):
17866 * eval.c (For, Fand): Doc fixes.
17867 Reported by Johan Bockgård.
17868
178692007-07-18 Jan Djärv <jan.h.d@swipnet.se>
17870
17871 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
17872
17873 * xterm.h: Declare x_ewmh_activate_frame.
17874
17875 * xterm.c (x_ewmh_activate_frame): New function.
17876 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
17877
178782007-07-17 Martin Rudalics <rudalics@gmx.at>
17879
17880 * window.c (Fdisplay_buffer): If largest or LRU window is the
17881 only window, split it even if it is not eligible for splitting.
17882 This restores the original behavior broken by the 2007-07-15
17883 change.
17884
178852007-07-17 Glenn Morris <rgm@gnu.org>
17886
17887 * abbrev.c (abbrev_check_chars): New function.
17888 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
17889 Call abbrev_check_chars to check abbrev characters are word
17890 constituents. Doc fix.
17891
178922007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
17893
17894 * process.c (Fstart_process, Fmake_network_process)
17895 (read_process_output): Fix up last changes.
17896
178972007-07-16 Eli Zaretskii <eliz@gnu.org>
17898
17899 * makefile.w32-in (clean): Don't delete *~.
17900
179012007-07-16 Andreas Schwab <schwab@suse.de>
17902
17903 * window.c (Fdisplay_buffer): Use NILP.
17904 (Fset_window_scroll_bars): Likewise.
17905
179062007-07-15 Martin Rudalics <rudalics@gmx.at>
17907
17908 * window.c (window_min_size_2): New function.
17909 (window_min_size_1, size_window, Fdisplay_buffer)
17910 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
17911 windows without mode- or header-lines when window-min-height is
17912 too small.
17913 (size_window): Reset nodelete_p after testing it, following an
17914 earlier note by Kim F. Storm.
17915 (display_buffer): Do not set split_height_threshold to twice the
17916 value of window_min_height to avoid changing the value of a
17917 customizable variable. Rather explicitly check whether the
17918 height of the window that shall be splitted is at least as large
17919 as split_height_threshold.
17920 (Fwindow_full_width_p): New defun.
17921 (syms_of_window): Defsubr it.
17922
17923 * window.h: Add EXFUN for Fwindow_full_width_p.
17924
179252007-07-14 Jason Rumney <jasonr@gnu.org>
17926
17927 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
17928
179292007-07-14 Richard Stallman <rms@gnu.org>
17930
17931 * eval.c (maybe_call_debugger): New function.
17932 (find_handler_clause): Use maybe_call_debugger.
17933 Call it when the handler says `debug'.
17934 Eliminate DEBUGGER_VALUE_PTR.
17935 (Fsignal): Eliminate debugger_value.
17936 (Qdebug): New variable.
17937 (syms_of_eval): Initialize it.
17938
179392007-07-14 Juanma Barranquero <lekktu@gmail.com>
17940
17941 * eval.c (Fprogn):
17942 * keyboard.c (Ftrack_mouse):
17943 * print.c (Fwith_output_to_temp_buffer):
17944 * window.c (Fsave_window_excursion): Doc fix.
17945
179462007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
17947
17948 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
17949
179502007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
17951
17952 * process.h (struct Lisp_Process): Turn slots infd, outfd,
17953 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
17954 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
17955 read_output_delay, and read_output_skip from Lisp_Objects to ints.
17956 Remove unused encoding_carryover.
17957 * process.c: Adjust all functions accordingly.
17958
179592007-07-12 Richard Stallman <rms@gnu.org>
17960
17961 * term.c: Include unistd.h only if HAVE_UNISTD_H.
17962
179632007-07-11 Jason Rumney <jasonr@gnu.org>
17964
17965 * makefile.w32-in (LIBS): Include OLE32.
17966
17967 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
17968 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
17969
179702007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
17971
17972 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
17973 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
17974 from a Lisp_Object into a bare pointer.
17975 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
17976 Adjust the code correspondingly.
17977
17978 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
17979
17980 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
17981 (term_show_mouse_face): Remove unused var `j'.
17982 (handle_one_term_event): Remove unused vars `i' and `j'.
17983 Don't cast return value of ttyname since it's not necessary.
17984
179852007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
17986
17987 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
17988 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
17989
17990 * fns.c (map_char_table): Use an array of int for `indices' rather than
17991 an array of Lisp_Objects (which are only ever integers anyway).
17992 (Fmap_char_table): Update caller.
17993 * lisp.h: Update prototype.
17994 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
17995 * fontset.c (Ffontset_info):
17996 * casetab.c (set_case_table): Update callers.
17997
17998 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
17999
18000 * keymap.c (struct accessible_keymaps_data)
18001 (struct where_is_internal_data): New structures.
18002 (accessible_keymaps_1, where_is_internal_1): Use them to change
18003 interface to adhere to the one used by map_keymap.
18004 (Faccessible_keymaps, where_is_internal): Use map_keymap.
18005 (accessible_keymaps_char_table, where_is_internal_2): Remove.
18006
18007 * keymap.h (map_keymap_function_t): More informative prototype.
18008
180092007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
18010
18011 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
18012 (looking_at_1): Don't change search_regs and last_thing_searched
18013 if `inhibit-changing-match-data' is non-nil.
18014 (string_match_1, search_buffer, set_search_regs): Likewise.
18015 (syms_of_search): Add Lisp level definition for
18016 `inhibit-changing-match-data' and set it to nil.
18017 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
18018 start and end of the match, instead of using values in search_regs.
18019
180202007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
18021
18022 * minibuf.c (Fcompleting_read): New value `confirm-only'
18023 for `require-match'.
18024
180252007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
18026
18027 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
18028 part of the 2007-06-27 change to syms_of_fileio.
18029
180302007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18031
18032 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
18033 Check WINDOWP before using XWINDOW. Consolidate return statements.
18034
180352007-06-27 Richard Stallman <rms@gnu.org>
18036
18037 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
18038
180392007-06-27 Juanma Barranquero <lekktu@gmail.com>
18040
18041 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
18042
180432007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18044
18045 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
18046 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
18047 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
18048 (_free_internal, memalign): Use them.
18049 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
18050 Initialize to PTHREAD_MUTEX_INITIALIZER.
18051 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
18052 (morecore_nolock): Rename from morecore. All uses changed.
18053 Use only nolock versions of internal allocation functions.
18054 (_malloc_internal_nolock, _realloc_internal_nolock)
18055 (_free_internal_nolock): New functions created from
18056 _malloc_internal, _realloc_internal, and _free_internal.
18057 (_malloc_internal, _realloc_internal, _free_internal): Use them.
18058 Copy hook value to automatic variable before its use.
18059 (memalign): Copy hook value to automatic variable before its use.
18060
180612007-06-26 Kenichi Handa <handa@m17n.org>
18062
18063 * coding.c (Ffind_operation_coding_system): Docstring improved.
18064 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
18065
180662007-06-25 David Kastrup <dak@gnu.org>
18067
18068 * keymap.c (Fcurrent_active_maps): Add `position' argument.
18069 (Fwhere_is_internal): Adjust call to `current-active-maps' to
18070 cater for additional parameter.
18071
18072 * keymap.h: Adjust number of parameters to `current-active-maps'.
18073
18074 * doc.c (Fsubstitute_command_keys): Adjust call of
18075 `current-active-maps'.
18076
180772007-06-25 David Kastrup <dak@gnu.org>
18078
18079 * callint.c (Fcall_interactively): Make the parsing of interactive
18080 specs somewhat more readable.
18081
180822007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18083
18084 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
18085 to scroll bar gap also when bitmap fills fringe. Draw only foreground
18086 if extended background has already been filled.
18087
180882007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18089
18090 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
18091 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
18092
18093 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
18094 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
18095 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
18096 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
18097 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
18098 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
18099 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
18100 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
18101 Run timers during dialog popup.
18102 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
18103
181042007-06-21 Jason Rumney <jasonr@gnu.org>
18105
18106 * image.c (convert_mono_to_color_image): Swap fore and background.
18107
181082007-06-20 Jason Rumney <jasonr@gnu.org>
18109
18110 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
18111 (w32_free_bdf_font): Unmap memory not handle.
18112
181132007-06-20 Sam Steingold <sds@gnu.org>
18114
18115 * gmalloc.c (__morecore): Fix the declaration to comply with the
18116 definition.
18117
181182007-06-20 Juanma Barranquero <lekktu@gmail.com>
18119
18120 * w32term.c (w32_delete_display): Remove leftover declaration.
18121 (w32_define_cursor, w32_initialize): Make static.
18122
18123 * w32.c (_wsa_errlist): Fix typo in error message.
18124 (init_environment): Ignore any environment variable from the
18125 registry having a null value.
18126
181272007-06-20 Glenn Morris <rgm@gnu.org>
18128
18129 * Makefile.in (LIBGIF): Default to -lgif.
18130
181312007-06-17 Jason Rumney <jasonr@gnu.org>
18132
18133 * w32menu.c (add_menu_item): Don't use multibyte string functions on
18134 unicode strings.
18135
181362007-06-16 Juanma Barranquero <lekktu@gmail.com>
18137
18138 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
18139 Fix typo in docstring.
18140
181412007-06-16 Eli Zaretskii <eliz@gnu.org>
18142
18143 * w32menu.c (add_menu_item): Escape `&' characters in menu items
18144 and their keybindings.
18145
181462007-06-15 Chong Yidong <cyd@stupidchicken.com>
18147
18148 * composite.c (update_compositions): Fix last fix.
18149
181502007-06-14 Jason Rumney <jasonr@gnu.org>
18151
18152 * w32.c (get_process_times_fn): New function pointer.
18153 (globals_of_w32): Intialize it if present in kernel32.dll.
18154 (w32_get_internal_run_time): New function.
18155
18156 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
18157
181582007-06-14 Kenichi Handa <handa@etlken.m17n.org>
18159
18160 * composite.c (update_compositions): Check the validness of
18161 compositions.
18162
181632007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18164
18165 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
18166 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
18167
18168 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
18169 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
18170
18171 * macgui.h (USE_MAC_TOOLBAR): New define.
18172
18173 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
18174 Return immediately unless popup is activated.
18175
18176 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
18177 background to scroll bar gap.
18178 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
18179 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
18180 scroll bars on frame edge. Check fringe background extension.
18181 Don't clear extended fringe background area.
18182 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
18183 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
18184 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
18185 [USE_MAC_TOOLBAR]: New macros.
18186 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
18187 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
18188 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
18189 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
18190 [USE_MAC_TOOLBAR]: New functions.
18191 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
18192 manually if previous repositioning has failed.
18193 (mac_handle_keyboard_event): Use precomputed event kind.
18194 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
18195 as tool bar item click. Handle mouse movement over tool bar items.
18196
18197 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
18198 toolbar_win_gravity.
18199 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
18200 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
18201 Add externs.
18202
18203 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
18204 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
18205
182062007-06-14 Chong Yidong <cyd@stupidchicken.com>
18207
18208 * image.c (search_image_cache): Remove unused variable.
18209
182102007-06-13 Chong Yidong <cyd@stupidchicken.com>
18211
18212 * xfns.c, xmenu.c: Link to xaw3d if available.
18213
182142007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18215
18216 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
18217 frame_foreground and frame_background.
18218
18219 * image.c (lookup_image): Save frame foreground and background colors.
18220 (search_image_cache): Check if saved and current frame colors match.
18221
182222007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
18223
18224 * regex.c (regex_compile): Remove the `regnum' counter.
18225 Use bufp->re_nsub instead. Add support for \(?N:RE\).
18226
182272007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
18228
18229 * term.c: Include intervals.h to declare Fget_text_property.
18230
182312007-06-10 Jason Rumney <jasonr@gnu.org>
18232
18233 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
18234
182352007-06-08 Juanma Barranquero <lekktu@gmail.com>
18236
18237 * callint.c (Fcall_interactively):
18238 * editfns.c (Fdelete_and_extract_region):
18239 * fileio.c (Fread_file_name):
18240 * fns.c (Fmapconcat):
18241 * keyboard.c (cmd_error_internal):
18242 * keymap.c (Fkey_description):
18243 * lread.c (openp):
18244 * minibuf.c (read_minibuf):
18245 * search.c (wordify):
18246 * sunfns.c (sel_read):
18247 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
18248 * xfns.c (x_default_scroll_bar_color_parameter):
18249 * xmenu.c (menu_help_callback):
18250 * xselect.c (Fx_get_atom_name):
18251 * xterm.c (x_term_init): Use empty_unibyte_string.
18252
182532007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
18254
18255 * alloc.c (init_strings): Initialize canonical empty strings.
18256 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
18257 canonical empty string when the requested size is 0.
18258
18259 * emacs.c (empty_unibyte_string): Rename from empty_string.
18260 (empty_multibyte_string): New canonical empty string.
18261 (syms_of_emacs): Don't initialize empty_string.
18262
18263 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
18264 string, if appropriate.
18265 (empty_unibyte_string, empty_multibyte_string): New externs.
18266 (empty_string): Remove extern.
18267
18268 * lread.c (syms_of_lread): Use empty_unibyte_string.
18269
182702007-06-07 Jason Rumney <jasonr@gnu.org>
18271
18272 * s/ms-w32.h: Don't define HAVE_TZNAME.
18273
18274 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
18275
182762007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18277
18278 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
18279
18280 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
18281 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
18282
18283 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
18284 Don't call next handler.
18285 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
18286 Remove argument. Install handler to application.
18287 (set_frame_menubar): Don't change deep_p.
18288 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
18289 FRAME_OUTER_TO_INNER_DIFF_Y.
18290 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
18291 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
18292 [HAVE_DIALOGS]: New macros.
18293 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
18294 Use them.
18295 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
18296
18297 * macselect.c [MAC_OSX] (install_service_handler): Rename from
18298 init_service_handler. All callers changed. Return OSStatus value.
18299
18300 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
18301 All callers changed so as not to call SetPortWindowPort.
18302 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
18303 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
18304 mac_draw_string_common.
18305 (mac_draw_image_string_qd): Likewise.
18306 (mac_draw_string_common): Use them. Add INLINE.
18307 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
18308 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
18309 GetGlobalMouse.
18310 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
18311 and FRAME_OUTER_TO_INNER_DIFF_Y.
18312 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
18313 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
18314 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
18315 repositioning window to mac_handle_window_event.
18316 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
18317 saving window location to mac_handle_window_event
18318 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
18319 (install_menu_target_item_handler): Remove argument in extern.
18320 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
18321 Also accept command events.
18322 (do_keystroke): New function created from XTread_socket.
18323 (init_command_handler): Remove functions.
18324 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
18325 and save window location by kEventWindowShowing and kEventWindowHiding
18326 handlers here. Don't call next handler for window state change and
18327 focus events.
18328 (mac_handle_application_event, mac_handle_keyboard_event)
18329 [TARGET_API_MAC_CARBON]: New functions.
18330 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
18331 kEventWindowShowing and kEventWindowHiding events. Move installation
18332 of mouse, font, text input and menu target item handlers to
18333 install_application_handler.
18334 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
18335 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
18336 New function.
18337 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
18338 Register it.
18339 (XTread_socket) [TARGET_API_MAC_CARBON]:
18340 Consolidate SendEventToEventTarget calls.
18341 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
18342 Move application activation handler to mac_handle_application_event.
18343 Move keyboard handler to mac_handle_keyboard_event.
18344 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
18345 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
18346 init_command_handler. Call install_application_handler.
18347
18348 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
18349 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
18350
183512007-06-07 Glenn Morris <rgm@gnu.org>
18352
18353 * emacs.c (main): Use `emacs-copyright' in --version output.
18354
183552007-06-06 Chong Yidong <cyd@stupidchicken.com>
18356
18357 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
18358
183592007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18360
18361 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
18362
18363 * macgui.h: Replace WindowPtr with WindowRef.
18364
18365 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
18366 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
18367 Replace ControlHandle with ControlRef.
18368 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
18369
18370 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
18371 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
18372 Replace ControlHandle with ControlRef.
18373 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
18374 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
18375
18376 * macterm.h (struct scroll_bar): Rename member control_handle_low
18377 and control_handle_high to control_ref_low and control_ref_high.
18378 All uses changed.
18379 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
18380 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
18381 respectively. All uses changed.
18382 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
18383 (install_window_handler, remove_window_handler): Replace WindowPtr
18384 with WindowRef in externs.
18385
183862007-06-05 Juanma Barranquero <lekktu@gmail.com>
18387
18388 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
18389
183902007-06-03 Nick Roberts <nickrob@snap.net.nz>
18391
18392 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
18393
18394 * frame.c (Fmouse_position, Fmouse_pixel_position):
18395 Condition on HAVE_GPM too.
18396
18397 * term.c (term_mouse_highlight): Remove unused variables.
18398 (Fterm_open_connection): Set gpm_zerobased to 1.
18399 (term_mouse_movement, term_mouse_click, handle_one_term_event):
18400 Use zero based co-ordinates.
18401 (handle_one_term_event): Report a drag as mouse movement too.
18402
18403 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
18404
184052007-06-03 Chong Yidong <cyd@stupidchicken.com>
18406
18407 * image.c (search_image_cache): New function. Require background
18408 color match if background color is unspecified in the image spec.
18409 (uncache_image, lookup_image): Use it.
18410
184112007-06-01 Juanma Barranquero <lekktu@gmail.com>
18412
18413 * window.c (Fshrink_window): Reflow docstring.
18414
184152007-06-02 Chong Yidong <cyd@stupidchicken.com>
18416
18417 * Version 22.1 released.
18418
184192007-06-01 Richard Stallman <rms@gnu.org>
18420
18421 * xfns.c (x_encode_text): Add GCPRO.
18422
184232007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18424
18425 * xfns.c (x_set_name_internal): Save encoded name before
18426 x_encode_text in case string data is relocated.
18427
184282007-05-31 Richard Stallman <rms@gnu.org>
18429
18430 * buffer.c (syms_of_buffer): Doc fix.
18431
184322007-05-30 Nick Roberts <nickrob@snap.net.nz>
18433
18434 * sysdep.c (init_sys_modes): Add rather than replace with
18435 O_NONBLOCK.
18436
18437 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
18438 term_mouse_moveto.
18439
18440 * termhooks.h (term_mouse_moveto): New extern.
18441
18442 * term.c (mouse_face_window): Rename...
18443 (Qmouse_face_window): ...to this.
18444 (term_show_mouse_face, term_clear_mouse_face)
18445 (term_mouse_highlight): Use Qmouse_face_window.
18446 (term_mouse_moveto): New function.
18447 (term_mouse_position): Make it work.
18448 (syms_of_term): Uncomment assignment to mouse_position_hook.
18449 Staticpro Qmouse_face_window.
18450
184512007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18452
18453 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
18454 around current_column call.
18455
184562007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
18457
18458 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
18459 * xdisp.c (next_element_from_buffer):
18460 * window.c (delete_window):
18461 * term.c (term_mouse_highlight):
18462 * msdos.c (getdefdir):
18463 * macterm.c (mac_create_bitmap_from_bitmap_data)
18464 (init_font_name_table):
18465 * fns.c (Fsxhash):
18466 * data.c (Fmake_local_variable):
18467 * ccl.c (ccl_driver): Likewise.
18468
184692007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18470
18471 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
18472 Call mac_wakeup_from_rne on window size change.
18473
184742007-05-25 Chong Yidong <cyd@stupidchicken.com>
18475
18476 * image.c (uncache_image): Fix typo.
18477
184782007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
18479
18480 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
18481
184822007-05-22 Richard Stallman <rms@gnu.org>
18483
18484 * xterm.c (x_connection_closed): Remove NO_RETURN.
18485
184862007-05-22 Martin Rudalics <rudalics@gmx.at>
18487
18488 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
18489
184902007-05-21 Chong Yidong <cyd@stupidchicken.com>
18491
18492 * image.c (uncache_image): New function.
18493 (Fimage_refresh): New function.
18494
184952007-05-20 Jan Djärv <jan.h.d@swipnet.se>
18496
18497 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
18498
184992007-05-20 Nick Roberts <nickrob@snap.net.nz>
18500
18501 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
18502 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
18503
185042007-05-20 Nick Roberts <nickrob@snap.net.nz>
18505
18506 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
18507 conditional on [HAVE_GPM_H].
18508
185092007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
18510
18511 * syntax.c (skip_chars): Update syntax-table only after we checked that
18512 the new location is valid.
18513
185142007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18515
18516 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
18517 mac_get_window_bounds.
18518
185192007-05-20 Nick Roberts <nickrob@snap.net.nz>
18520
18521 * Makefile.in (LIBGPM): Allow it to be set from configure.
18522 If set then link Emacs with it.
18523
18524 * config.in: Regenerate.
18525
18526 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
18527 New externs.
18528
18529 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
18530 Include gpm.h.
18531 (handle_one_term_event, term_gpm): New externs.
18532
18533 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
18534 and allow it to be interrupted by SIGIO.
18535
18536 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
18537 (wait_reading_process_output): Wait on gpm_fd too.
18538 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
18539 (add_gpm_wait_descriptor_called_flag): New variable.
18540 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
18541
18542 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
18543 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
18544 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
18545 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
18546 (make_lispy_event): Add case GPM_CLICK_EVENT.
18547 (read_avail_input): Handle mouse input.
18548
18549 * term.c (write_glyphs_with_face): New function.
18550 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
18551 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
18552 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
18553 (mouse_face_face_id, term_gpm, pos_x, pos_y)
18554 (last_mouse_x, last_mouse_y): New variables.
18555 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
18556 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
18557 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
18558 (Fterm_close_connection): New functions.
18559 (term_init): Initialise mouse_face_window.
18560
185612007-05-19 Chong Yidong <cyd@stupidchicken.com>
18562
18563 * xdisp.c (redisplay_window): If first window line is a
18564 continuation line, recompute the new window start instead of
18565 recentering.
18566
185672007-05-18 Glenn Morris <rgm@gnu.org>
18568
18569 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
18570 Suggested by Alfred M. Szmidt <ams@gnu.org>.
18571
185722007-05-17 Glenn Morris <rgm@gnu.org>
18573
18574 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
18575
185762007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18577
18578 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
18579 dead key repeat and up events.
18580
185812007-05-14 Chong Yidong <cyd@stupidchicken.com>
18582
18583 * image.c (pbm_load): Check image size for monochrome pbm.
18584
185852007-05-13 Chong Yidong <cyd@stupidchicken.com>
18586
18587 * xterm.c (XTread_socket): Revert last change.
18588
185892007-05-12 Chong Yidong <cyd@stupidchicken.com>
18590
18591 * image.c (pbm_load): Correctly check image size for greyscale pbm.
18592
18593 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
18594
185952007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
18596
18597 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
18598 mixup (YAILOM).
18599
186002007-05-07 Andreas Schwab <schwab@suse.de>
18601
18602 * keymap.c (Flookup_key): Fix typo in last change.
18603
186042007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
18605
18606 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
18607 mapping for unibyte strings.
18608
186092007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18610
18611 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
18612 (Fx_popup_dialog) [MAC_OSX]: Likewise.
18613
186142007-04-29 Richard Stallman <rms@gnu.org>
18615
18616 * insdel.c (replace_range): For undo, record insertion first.
18617
186182007-04-29 Andreas Schwab <schwab@suse.de>
18619
18620 * lisp.h (VECSIZE): Use OFFSETOF.
18621
186222007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18623
18624 * xdisp.c (try_window_reusing_current_matrix): Fix number of
18625 disabled lines.
18626
186272007-04-28 Richard Stallman <rms@gnu.org>
18628
18629 * lread.c (read_escape): In a string, \s is always space.
18630
186312007-04-27 Jan Djärv <jan.h.d@swipnet.se>
18632
18633 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
18634
18635 * gtkutil.c (xg_update_menubar, create_menus): Create empty
18636 submenu for menu bar items.
18637
18638See ChangeLog.10 for earlier changes.
18639
18640;; Local Variables:
18641;; coding: utf-8
18642;; add-log-time-zone-rule: t
aac0c6e3
MR
18643;; End:
18644
76b6f707 18645 Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc.
aac0c6e3
MR
18646
18647 This file is part of GNU Emacs.
18648
18649 GNU Emacs is free software: you can redistribute it and/or modify
18650 it under the terms of the GNU General Public License as published by
18651 the Free Software Foundation, either version 3 of the License, or
18652 (at your option) any later version.
18653
18654 GNU Emacs is distributed in the hope that it will be useful,
18655 but WITHOUT ANY WARRANTY; without even the implied warranty of
18656 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18657 GNU General Public License for more details.
18658
18659 You should have received a copy of the GNU General Public License
18660 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
18661
18662;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40