* xdisp.c (Qbefore_string, Qafter_string): Add externs.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
8a668709
CY
12009-06-22 Chong Yidong <cyd@stupidchicken.com>
2
3 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
4 (load_overlay_strings): Remove externs.
5 (fast_find_position): Function deleted.
6 (mouse_face_from_buffer_pos): New function, based on
7 fast_find_position. Correctly handle before-strings,
8 display-strings, and after-strings (Bug#1220).
9 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
10
4d4c02d8
CY
112009-06-21 Chong Yidong <cyd@stupidchicken.com>
12
13 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for
14 !HAVE_WINDOW_SYSTEM.
15 (move_it_in_display_line_to, move_it_in_display_line_to)
16 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
17
70243478
CY
182009-06-21 Chong Yidong <cyd@stupidchicken.com>
19
20 * Branch for 23.1.
21
13087e59
JR
222009-06-21 Jason Rumney <jasonr@gnu.org>
23
24 * w32term.c (keyboard_codepage): New static variable.
25 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
26 (w32_read_socket) [WM_CHAR]: Use it to decode character
27 input (bug#3237).
28 (w32_initialize): Initialize it.
29 (codepage_for_locale): New function.
30
4735b74e
KR
312009-06-20 Ken Raeburn <raeburn@raeburn.org>
32
33 * process.c (status_message): Pass Faset index argument as a lisp
34 object, so as to work with USE_LISP_UNION_TYPE.
35
0e727afa
YM
362009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
37
38 * coding.c (Ffind_coding_systems_region_internal):
39 Cache checked characters.
40
cf299835
KH
412009-06-18 Kenichi Handa <handa@m17n.org>
42
43 * coding.c (decode_coding_iso_2022): Check MSB of bytes more
44 rigidly.
45
90f20d94
AS
462009-06-18 Andreas Schwab <aschwab@redhat.com>
47
48 * xdisp.c (redisplay_internal): Check that the frame is still
49 live after redisplay of its windows.
50 (redisplay_windows): Check that the window is still live.
51
7f1faf1c
KH
522009-06-17 Andreas Schwab <schwab@linux-m68k.org>
53
54 * coding.c (detect_coding_utf_16): Fix previous change.
55
cc13543e
KH
562009-06-16 Kenichi Handa <handa@m17n.org>
57
58 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
59 UTF-16 by checking the dispersion of Eth and Oth bytes.
60
977b85f4
AS
612009-06-15 Andreas Schwab <schwab@linux-m68k.org>
62
63 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
64
66bd43d1
KH
652009-06-15 Kenichi Handa <handa@m17n.org>
66
67 * process.c (status_message): Fix previous change. Be sure to
68 decode a localized string.
69
cb5ca9c5
YM
702009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
71
72 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
73 add comment explaining why.
74
ec7709ba 752009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 76
ec7709ba 77 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 78
4b7f335c
AR
792009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
80
81 * nsfont.m (ns_attribute_value): Remove.
82 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
83 (ns_has_attribute): Shrink the normal range.
84 (ns_findfonts): Don't worry about requested spec in determining
85 need for synthItal.
e41820ee 86 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 87
73b26103
SZ
882009-06-14 Seiji Zenitani <zenitani@mac.com>
89
90 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
91
5753e4da
KH
922009-06-11 Kenichi Handa <handa@m17n.org>
93
94 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
95 overhang for the static composition case.
96
3561b671
KH
972009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
98
5753e4da
KH
99 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
100 overhang for the automatic composition case.
101
3561b671
KH
102 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
103 composition case.
104
852bbd41
CY
1052009-06-10 Chong Yidong <cyd@stupidchicken.com>
106
107 * xdisp.c (get_next_display_element): When handling wrap-prefix
108 and line-prefix, treat \n as a control character (bug#3502).
109
9903d1e6
KH
1102009-06-10 Kenichi Handa <handa@m17n.org>
111
112 * font.c (font_parse_family_registry): Fix for one-char foundry.
113 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
114
0bcbaaaa
CY
1152009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
116
117 * process.c (status_message): Fix handling of multibyte signal
118 string (Bug#3499).
119
40aa3f13
JM
1202009-06-09 Jim Meyering <meyering@redhat.com>
121
1f80c7e2
CY
122 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
123 color name is missing.
40aa3f13 124
72d51285
KH
1252009-06-09 Kenichi Handa <handa@m17n.org>
126
127 * charset.c (Fmap_charset_chars): In docstring, state clearly that
128 FROM-CODE and TO-CODE are codepoints of CHARSET.
129
c1d04d84
AR
1302009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
131
132 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
133
1342009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
135
136 Changes to support :script/:lang/:otf in NS font driver.
137 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
138 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
139 indicate not part of font driver interface, and change callers.
140 (ns_get_family): Remove pointless null check.
141 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
142 ns_spec_to_descriptor, ns_descriptor_to_entity.
143 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
144 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
145 (ns_spec_to_descriptor, ns_descriptor_to_entity)
146 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
147 (ns_get_req_script, ns_accumulate_script_ranges)
148 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
149 New functions.
150 (nsfont_list, nsfont_match): Use ns_findfonts.
151 (nsfont_open): Use font descriptor instead of traits.
152 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
153 (dump_glyphstring): Rename to ns_dump_glyphstring.
154
c7eb9816
AR
155 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
156
c1d04d84
AR
157 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
158
159 * fontset.c (fontset_from_font): Remove NS-specific code.
160
ec7709ba 1612009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
162
163 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
164 nonactive windows.
165
1662009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
167
168 * nsterm.m (ns_init_paths): Append path separator to INFOPATH
169 variable.
170
68852c13 1712009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
172
173 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
174
6756cd1d
CY
1752009-06-07 Chong Yidong <cyd@stupidchicken.com>
176
177 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
178 account for the overflowing of newlines into the last glyph on the
179 display line (Bug#3482).
180
28bf482a
DR
1812009-06-05 David Reitter <david.reitter@gmail.com>
182
ec7709ba
JB
183 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
184 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
185 Fns_selection_exists_p, Fns_selection_owner_p.
186
fdb55376
JR
1872009-06-03 Jason Rumney <jasonr@gnu.org>
188
189 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
190 available. (Bug#3379)
191
05129fbe
KH
1922009-05-29 Kenichi Handa <handa@m17n.org>
193
194 * coding.c (get_translation_table): Check
195 Venable_character_translation.
196
ec7709ba 1972009-05-26 David Reitter <david.reitter@gmail.com>
15891144 198
ec7709ba
JB
199 * nsterm.m (ns_raise_frame): Only raise frame if visible.
200 (x_make_frame_visible): Move frame to front rather than calling
15891144 201 ns_raise_frame().
ec7709ba 202 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 203 isn't key window.
ec7709ba 204 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
205 drawRect may be called by NSView even if the frame is hidden.
206
ec7709ba
JB
207 * nsfns.m (Fx_create_frame): Follow other ports in
208 determining visibility; default to t. Ensure async_visible is set.
15891144 209
21f73755
EZ
2102009-05-23 Eli Zaretskii <eliz@gnu.org>
211
212 * dired.c (Ffile_attributes): Doc fix.
213
34001e41
CY
2142009-05-22 Chong Yidong <cyd@stupidchicken.com>
215
216 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
217
46306a17
SM
2182009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
219
220 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
221 and xfont_scratch_props.
222 (syms_of_xfont): Do it here instead.
223 (xfont_find_ccl_program): Delete, unused.
224 (xfont_open): Delete unused var `i'.
225
ef6e0694
KH
2262009-05-21 Kenichi Handa <handa@m17n.org>
227
228 * fontset.c (Qlatin): Don't make it static.
229
46306a17
SM
230 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
231 New functions.
ef6e0694
KH
232 (xfont_scripts_cache, xfont_scratch_props): New variables.
233 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
234 (xfont_list_pattern): Argument changed. Callers changed.
235 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
236 (xfont_list): Don't reject a font spec with :script property.
237 (xfont_has_char): Fix setting of encoding.
238 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
239 xfont_scratch_props.
240
2412009-05-19 Kenichi Handa <handa@m17n.org>
242
46306a17 243 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
244 Callers changed.
245
2462009-05-18 Kenichi Handa <handa@m17n.org>
247
248 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
249
ac71ced7
SM
2502009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
251
252 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
253 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
254
1c6d1051
YM
2552009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
256
257 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
258 (x_delete_terminal): Dissociate resource database from display and
259 then call XrmDestroyDatabase before closing display.
260
9b9b779c
AR
2612009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
262
263 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
264 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
265 whether selected frame is viable before raising it (based on patch
266 by David Reitter), and improve commentary.
267 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 268
cccd42d5
KH
2692009-05-15 Kenichi Handa <handa@m17n.org>
270
271 * font.c (Ffont_spec): Check arguments.
272
337fbd17
CY
2732009-05-14 Chong Yidong <cyd@stupidchicken.com>
274
275 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
276 weight when testing attributes (Bug#3282).
277
47a6002f
JD
2782009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
279
280 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
281 what we expect to get in the next ConfigureNotify event.
282
9cb363db
YM
283 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
284 before Xft one (Bug#1696).
285
b9126609
CY
2862009-05-07 David Reitter <david.reitter@gmail.com>
287
288 * nsfns.m (Fx_display_planes): Compute bitplanes using
289 NSBitsPerPixelFromDepth (Bug#3207).
290
27a69fd9
CY
2912009-05-10 Chong Yidong <cyd@stupidchicken.com>
292
293 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
294
00f37552
TTN
2952009-05-10 Ulrich Mueller <ulm@gentoo.org>
296
297 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
298
2d82a920
DR
2992009-05-07 David Reitter <david.reitter@gmail.com>
300
ec7709ba
JB
301 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
302 Respect mouse face background.
2d82a920 303
46b0d52d
DR
3042009-05-07 David Reitter <david.reitter@gmail.com>
305
ec7709ba
JB
306 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
307 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
308 in ns_update_begin and ns_update_end.
309
ce1b23bb
SM
3102009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
311
5996e1b7
SM
312 * nsfns.m (ns_get_screen): Rewrite.
313 Don't presume selected-frame is of type `ns'.
314
ba98e3a0
SM
315 * font.c (font_update_drivers): Sanity fallback to avoid disabling
316 all drivers.
317
ce1b23bb
SM
318 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
319
bcda200f
YM
3202009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
321
322 * keyboard.h (add_user_signal): Fix typo in extern.
323
324 * lisp.h (add_user_signal): Remove extern.
325
326 * unexelf.c (unexec): Consider a section to precede the .bss section
327 if its addresses overlap that of .bss.
328 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
329 instead of dumping process.
330
864660a2
SM
3312009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
332
333 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
334
50da4e56
SM
3352009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
336
337 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
338
51520a1a
DN
3392009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
340
341 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
342 any statements.
343
409ea3a1
AS
3442009-05-02 Andreas Schwab <schwab@linux-m68k.org>
345
59c4c60f
AS
346 * process.c (read_process_output): Make sure the current buffer is
347 always restored.
348
409ea3a1
AS
349 * coding.c (record_conversion_result): Don't modify
350 Vlast_code_conversion_error for successful result.
351 (alloc_destination): Don't clobber conversion result. (Bug#1650)
352
56f00ed2
KH
3532009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
354
355 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 356 (load_charset_map): Remove unnecessary code.
56f00ed2 357
4491c9d2
DR
3582009-04-30 David Reitter <david.reitter@gmail.com>
359
35f5b128 360 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
361 through f24.
362
6970f632
CY
3632009-04-30 Chong Yidong <cyd@stupidchicken.com>
364
365 * xfaces.c (face_at_buffer_position): New arg base_face_id.
366
367 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
368 face_at_buffer_position.
369 (face_before_or_after_it_pos, get_next_display_element)
370 (note_mouse_highlight): Update face_at_buffer_position call.
371
372 * term.c (term_mouse_highlight):
373 * msdos.c (IT_note_mouse_highlight):
374 * fontset.c (Finternal_char_font):
35f5b128 375 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
376
377 * dispextern.h (face_at_buffer_position): Update prototype.
378
0c616f63
KH
3792009-04-30 Kenichi Handa <handa@m17n.org>
380
35f5b128 381 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 382
ad3aaf33
AS
3832009-04-29 Andreas Schwab <schwab@linux-m68k.org>
384
385 * callproc.c (Fcall_process): Fix GC protection. Make sure
386 current buffer is always restored.
387
c3c963a0
YM
3882009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
389
390 * atimer.c (init_atimer): Also clear stopped_atimers.
391
392 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
393
7e3386cb
YM
394 * process.c (create_process): Clean up merger residues of
395 2008-07-17 change.
396
91f68422
CY
3972009-04-29 Ulrich Mueller <ulm@gentoo.org>
398
399 * lread.c (Vread_circle): New variable.
400 (read1): Disable recursive read if Vread_circle is nil.
401
24b34550
KH
4022009-04-29 Kenichi Handa <handa@m17n.org>
403
404 * fontset.h (set_default_ascii_font): Delete extern.
405
406 * fontset.c (set_default_ascii_font): Delete this unused function.
407
408 * frame.c (x_set_font): When ARG is a font-object, check if the
409 font-object matches with the ASCII font-spec of the frame's
9c358bda 410 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 411
77bf07e1
AS
4122009-04-28 Andreas Schwab <schwab@linux-m68k.org>
413
414 * fns.c (Flocale_info): Protect vector from GC during decoding.
415
416 * process.c (Fstart_process): Protect argv strings from GC during
417 encoding.
418
2c55aacf
AS
4192009-04-27 Andreas Schwab <schwab@linux-m68k.org>
420
421 * sysdep.c: Include <ctype.h>.
422
b892d3c9
DR
4232009-04-27 David Reitter <david.reitter@gmail.com>
424
35f5b128 425 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
426 Remove commented-out code.
427
9d0644c4
JB
4282009-04-26 Johan Bockgård <bojohan@gnu.org>
429
430 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
431
b7053016
JR
4322009-04-25 Jason Rumney <jasonr@gnu.org>
433
434 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
435
4e8231f3
YM
4362009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
437
438 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
439 Swap bytes in short integer if fringe bitmap width > 8.
440
493dcf2c
KH
4412009-04-23 Kenichi Handa <handa@m17n.org>
442
443 * xfaces.c (Fx_list_fonts): If a font size is specified in
444 PATTERN, set it in returned scalable fonts.
445
401e9e57
CY
4462009-04-22 Chong Yidong <cyd@stupidchicken.com>
447
708e05dc
CY
448 * keyboard.c (Fset_input_meta_mode): Doc fix.
449
450 * dispnew.c (Fsend_string_to_terminal): Doc fix.
451
452 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc
453 fixes.
454
455 * coding.c (Fterminal_coding_system): Doc fix.
456
457 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
458 (Fx_display_pixel_height, Fx_display_planes)
459 (Fx_display_color_cells, Fx_server_max_request_size)
460 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
461 (Fx_display_mm_height, Fx_display_mm_width)
462 (Fx_display_backing_store, Fx_display_visual_class)
463 (Fx_display_save_under, Fx_close_connection, Fx_synchronize): Doc
464 fixes, replacing "terminal id" with "terminal object".
465 (check_x_display_info): Handle terminal objects instead of
466 terminal ids.
467
401e9e57
CY
468 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
469 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
fdc496e7
CY
470 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions): Doc
471 fixes, replacing "terminal id" with "terminal object".
401e9e57 472
df80c7f0
KH
4732009-04-21 Kenichi Handa <handa@m17n.org>
474
5a8f12af 475 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 476 (font_score): Check AVGWIDTH too.
908567ef 477
df80c7f0
KH
478 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
479 worst case.
480 (decode_coding_emacs_mule, decode_coding_iso_2022)
481 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
482 Likewise.
483
705af33f
JR
4842009-04-19 Jason Rumney <jasonr@gnu.org>
485
486 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 487 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
488
489 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
490 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
491 get_phys_cursor_geometry.
492
b71ac3dd 493 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
494 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
495 using get_phys_cursor_geometry.
496
497 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
498 correctly calculated.
499
dc2933eb
JD
5002009-04-19 Jan Djärv <jan.h.d@swipnet.se>
501
502 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar): Use
503 G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
504 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
505 is deprecated.
506
973e7849
AS
5072009-04-18 Andreas Schwab <schwab@linux-m68k.org>
508
509 * font.c (font_put_frame_data): Use xfree instead of free.
510
314d66f4
JB
5112009-04-17 Juanma Barranquero <lekktu@gmail.com>
512
513 * w32font.c (Qja, Qko): Remove declarations.
514 (syms_of_w32font): Don't DEFSYM them.
515
cf702558
CY
5162009-04-17 Chong Yidong <cyd@stupidchicken.com>
517
518 * font.c (Qja, Qko): Move definitions here from ftfont.c.
519
520 * font.h (Qja, Qko): Extern them.
521
522 * ftfont.c (Qja, Qko): Remove declarations.
523
524 * xfont.c (Qja, Qko): Remove declarations.
525
b50504f5
KH
5262009-04-17 Kenichi Handa <handa@m17n.org>
527
bde25748
KH
528 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
529 string from a vector to handle Latin-1 characters correctly.
530
b50504f5
KH
531 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
532 entity even if the cache hits.
533
f4646fff
AS
5342009-04-16 Andreas Schwab <schwab@linux-m68k.org>
535
536 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 537 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 538
e7deaab0
AS
539 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
540 * lisp.h: Adjust prototypes.
541
0a0e7d49
CY
5422009-04-16 Chong Yidong <cyd@stupidchicken.com>
543
544 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
545 change (Bug#3003).
546
3c908a57
KH
5472009-04-16 Kenichi Handa <handa@m17n.org>
548
bd0af90d
KH
549 * xfont.c (xfont_has_char): Special handling of `ja' and `ko'
550 adstyle.
551
552 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
553 adstyle.
554
555 * ftfont.c (Qja, Qko): Don't make them static.
556 (enum ftfont_cache_for): New enum.
557 (fc_charset_table): Undo the previous change.
558 (ftfont_get_latin1_charset): Delete it.
559 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache. Set
560 FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
561 non-scarable font, try to get AVERAGE_WIDTH.
562 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
563 Change ft_face_cache from a list of a hash-table. Don't check
564 `ja' and `ko' adstyle here.
565 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
566 FTFONT_CACHE_FOR_CHARET.
567 (ftfont_get_charset): Undo the previous change.
568 (ftfont_open): Call ftfont_lookup_cache with
569 FTFONT_CACHE_FOR_FACE.
570 (ftfont_close): Likewise.
571 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
572
573 * font.c (font_sort_entites): Change the meaning of the arg
574 BEST-ONLY. Don't optimize for VEC of lenght 1.
575 (font_select_entity): Just return the value of font_sort_entites.
576
577 * xfaces.c (merge_face_vectors): Reflect font properties in
578 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
579 font_clear_prop if a face attribute doesn't change.
580
3c908a57
KH
581 * charset.h (charset_ksc5601): Extern it.
582
583 * charset.c (charset_ksc5601): New variable.
584 (Fdefine_charset_internal): Set charset_ksc5601.
585 (init_charset_once): Initialize charset_ksc5601 to -1.
586
d65859c3
DN
5872009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
588
589 * fileio.c (history_delete_duplicates): Remove unused declaration.
590
591 * callint.c (history_delete_duplicates): New declaration.
592 (Fcall_interactively): Remove command history duplicates when
593 history_delete_duplicates is true.
594
3ba010e5
EZ
5952009-04-14 Eli Zaretskii <eliz@gnu.org>
596
597 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
598
06f19b91
KH
5992009-04-14 Kenichi Handa <handa@m17n.org>
600
601 * font.c (Ffont_info): Fix docstring. Fix the second element of
602 the returned value (bug#2949).
603
2cce8bfc
CY
6042009-04-14 Chong Yidong <cyd@stupidchicken.com>
605
606 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
607
d156542d
KH
6082009-04-14 Kenichi Handa <handa@m17n.org>
609
610 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
611 encoding charset is ascii_compatible.
612
613 * charset.c (Fdefine_charset_internal): Make charset
614 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
615 code_offset is 0, and covers all ASCII characters.
616
86fa089e
SM
6172009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
618
619 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
620 (ns_string_to_pasteboard_internal):
621 * nsmenu.m (process_dialog):
622 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
623 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
624 * lisp.h (Fx_load_color_file): Declare.
625
a8a3728b
KH
6262009-04-13 Kenichi Handa <handa@m17n.org>
627
628 * font.c (font_delete_unmatched): Preserve the order of list
629 elements.
630 (font_select_entity): Suppress the code to optimize for the same
631 kind of fonts.
632 (font_load_for_lface): Get a font that supports at least ASCII
633 characters.
634
635 * ftfont.c (Qja, Qko): New variables.
636 (fc_charset_table): Delete uniquifier data for iso8859-1.
637 (ftfont_get_latin1_charset): New function.
638 (get_adstyle_property): New function.
639 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
640 bitmap fonts.
641 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
642 Delete iso-8859-1 range from the charset of fonts whose adstyle is
643 `ko' or `ja'.
644 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
645 (ftfont_get_charset): For iso8859-1, call
646 ftfont_get_latin1_charset.
647 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
648 property.
649 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
650 (syms_of_ftfont): DEFSYM Qja and Qko.
651
483670b5
KH
6522009-04-09 Kenichi Handa <handa@m17n.org>
653
12b55765
KH
654 * charset.c (map_charset_chars): For a charset of `superset'
655 method, fix calculation of code range.
656
483670b5
KH
657 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
658 from the list of extra properties.
659 (font_clear_prop): Be sure to delete `:name' font property.
660
57d3b93b
KH
6612009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
662
b4b2c2ca
YM
663 * dispnew.c (redraw_overlapping_rows): Fix detection of
664 overlapping for topmost and bottommost rows.
665
57d3b93b
KH
666 * ftfont.c (ftfont_text_extents): Fix calculation of
667 metrics->descent.
668
472c3609
JR
6692009-04-06 Jason Rumney <jasonr@gnu.org>
670
671 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
672
ab193662
KH
6732009-04-06 Kenichi Handa <handa@m17n.org>
674
675 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
676
677 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
678
0c26f026
KH
6792009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
680
681 * ftfont.c (ftfont_open): Fix checking of the return value of
682 FT_Load_Char. Fix setting font->underline_thickness.
683
e173bbce
CY
6842009-04-04 Chong Yidong <cyd@stupidchicken.com>
685
686 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
687 (Fterminal_parameters, Fterminal_parameter)
688 (Fset_terminal_parameter): In doc string, refer to terminal
689 objects rather than terminal ids.
690
693a2698
EZ
6912009-04-04 Eli Zaretskii <eliz@gnu.org>
692
693 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
694 ret_lim_data. (Bug#2867)
695
d5221487
CY
6962009-04-03 Chong Yidong <cyd@stupidchicken.com>
697
698 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
699 so they don't get wider than the window, matching 2006-01-23
700 change to the partner function in xdisp.c (Bug#2800).
701
223509a3
KH
7022009-04-03 Kenichi Handa <handa@m17n.org>
703
704 * print.c (print_object): Make each lowest sub_char_table start a
705 new line (Bug#2866).
706
74fcd0b1
KH
7072009-04-02 Kenichi Handa <handa@m17n.org>
708
709 * fontset.c (fontset_font): Record no-font when a fontset
710 explicitly tells not to try another font-specs.
711
c542407d
SM
7122009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
713
714 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
715
e3869731
KH
7162009-03-30 Kenichi Handa <handa@m17n.org>
717
d8d2f142
KH
718 * fontset.c (fontset_from_font): Specify only registry in a
719 font-spec for all characters supported by that registry.
720
e3869731
KH
721 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
722 even if HAVE_M17N_FLT is not defined.
723
5da5f805
CY
7242009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
725
726 * ftfont.c: Conditionalize prototyping and use of
727 ftfont_variation_glyphs.
728
ab226c50
SM
7292009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
730
9628fed7
SM
731 * frame.c (delete_frame): Work around compiler bug.
732
733 * editfns.c (general_insert_function): Adjust to insdel.c changes.
734 * insdel.c (prepare_to_modify_buffer, signal_before_change):
735 Some more EMACS_INT.
736 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
737
738 * xdisp.c (dump_glyph): Fix typo.
739
ae19ba7c
SM
740 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
741 (adjust_markers_gap_motion, adjust_markers_for_delete)
742 (adjust_markers_for_insert, adjust_point)
743 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
744 (make_gap, copy_text, count_size_as_multibyte, insert)
745 (insert_and_inherit, insert_before_markers)
746 (insert_before_markers_and_inherit, insert_1)
747 (count_combining_before, count_combining_after, insert_1_both)
748 (insert_from_string, insert_from_string_before_markers)
749 (insert_from_string_1, insert_from_gap, insert_from_buffer)
750 (insert_from_buffer_1, adjust_after_replace)
751 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
752 (replace_range_2, del_range, del_range_1, del_range_byte)
753 (del_range_both, del_range_2, modify_region)
754 (prepare_to_modify_buffer, signal_before_change)
755 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
756 for buffer positions and sizes.
757 * lisp.h: Adjust prototypes accordingly.
758
759 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
760 (non_regular_inserted, non_regular_nbytes, read_non_regular)
761 (Finsert_file_contents): Use EMACS_INT for buffer positions.
762
ab226c50
SM
763 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
764
46dfb8fb
JD
7652009-03-27 Jan Djärv <jan.h.d@swipnet.se>
766
767 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
768 lines and columns so we keep the same pixel height and width.
769
770 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
771 the property _NET_WM_STATE has changed.
46dfb8fb
JD
772 (x_handle_net_wm_state): New function to update frame parameter
773 fullscreen.
774 (x_term_init): Initialize atoms for _NET_WM_STATE.
775
776 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
777
d347e494
SM
7782009-03-27 Kevin Ryde <user42@zip.com.au>
779
780 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
781 Gpm_GetEvent as an error that justifies closing the filedescriptor.
782 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
783 (Fgpm_mouse_stop): Pass that new parameter.
784 * termhooks.h (close_gpm): Adjust prototype.
785
84db11d6
SM
7862009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
787
c95a5008
SM
788 * lisp.h (Fx_focus_frame): Declare.
789
84db11d6
SM
790 * callint.c (Fcall_interactively): For '^' just delegate the work to
791 handle-shift-selection.
792 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
793
0a1958d6
CY
7942009-03-24 Chong Yidong <cyd@stupidchicken.com>
795
0bfdff23
CY
796 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
797
0a1958d6
CY
798 * data.c (Qinteractive_form): New variable.
799 (Finteractive_form): Use it.
800
801 * eval.c (Fcommandp): Use Qinteractive_form.
802
58aec0d6
JR
8032009-03-24 Jason Rumney <jasonr@gnu.org>
804
805 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
806 Calculate total size precisely. Decode environment variables
807 before substituting. (Bug#38)
808
553dd618
KH
8092009-03-24 Kenichi Handa <handa@m17n.org>
810
811 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 812 encoding (Bug#2722).
553dd618 813
c39ea606
JD
8142009-03-23 Jan Djärv <jan.h.d@swipnet.se>
815
816 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
817 that gdpy is set.
818
bc9b2b5e
AM
8192009-03-22 Alan Mackenzie <acm@muc.de>
820
821 * callint.c (Finteractive): Clarify the doc string - even
822 promptless elements need \n separators.
823
9f995a76
JR
8242009-03-22 Jason Rumney <jasonr@gnu.org>
825
826 * w32term.c (syms_of_w32term): Doc fix for
827 x-use-underline-position-properties.
828
22749e9a
EZ
8292009-03-21 Eli Zaretskii <eliz@gnu.org>
830
831 * w32.c (getpwuid): Change argument type to unsigned.
832 (struct w32_id): Change type of `rid' member to unsigned.
833 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
834 argument ID to unsigned. All callers changed.
835 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
836
e00553bf
EZ
8372009-03-20 Eli Zaretskii <eliz@gnu.org>
838
839 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
840 negative, produce a float value.
841
842 * dired.c (make_uid, make_gid): New functions.
843 (Ffile_attributes): Use them to avoid negative UID and GID.
844
f761d6b6
JB
8452009-03-20 Juanma Barranquero <lekktu@gmail.com>
846
847 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
848 (syms_of_keyboard) <command-hook-internal, input-method-function>:
849 Fix typos in docstrings.
850
d507f8d7
KH
8512009-03-19 Kenichi Handa <handa@m17n.org>
852
853 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
854 changed, use font_load_for_lface to get a new font object.
855 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
856
857 * frame.c (x_set_font): Handle the case that ARG is a cons.
858
c68845e0
GM
8592009-03-19 Glenn Morris <rgm@gnu.org>
860
861 * fileio.c (Fsubstitute_in_file_name): Doc fix.
862
bfa49dd1
CY
8632009-03-19 Chong Yidong <cyd@stupidchicken.com>
864
865 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
866
8458d4c1
KH
8672009-03-19 Kenichi Handa <handa@m17n.org>
868
869 * charset.c (load_charset_map_from_file): When a mapfile can't be
870 loaded, signal an error.
871
78e7d1fe
EZ
8722009-03-18 Eli Zaretskii <eliz@gnu.org>
873
874 * dired.c (Ffile_attributes): Make sure UID and GID are always
875 positive, even if the value is too large for a positive EMACS_INT.
876 Doc fix.
877
878 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
879
5da9fdfa
YM
8802009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
881
882 * xmenu.c (xdialog_show): Move Fredisplay call ...
883 (Fx_popup_dialog): ... here.
884
7519c40d
SM
8852009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
886
887 * dired.c (file_name_completion): Disable the first optimization just
888 installed, since it is not implemented correctly.
889
2cd298e2
SM
8902009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
891
892 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 893 only if the entry can affect bestmatch.
2cd298e2
SM
894 Stop the search early, as Ftry_completion already does.
895
48d37adf
CY
8962009-03-17 Chong Yidong <cyd@stupidchicken.com>
897
e10c9c93 898 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 899
9286b16a
CY
9002009-03-15 Chong Yidong <cyd@stupidchicken.com>
901
902 * keyboard.c (parse_menu_item): Don't display remappings as menu
903 equivalent bindings (Bug#788).
904
f7b146dc
JR
9052009-03-15 Jason Rumney <jasonr@gnu.org>
906
907 * w32term.h (WM_EMACS_PAINT): New message.
908 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
909 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
910 before passing to lisp thread. (Bug#950)
911
f761d6b6 9122009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 913
d93f9575
CY
914 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
915 variable as it was never reset.
916 (ns_term_init): Remove initialization of Lisp-settable defaults
917 and ns_expand_space.
918 (-setPanelFromDefaultValues): Remove ns_expand_space.
919 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
920 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
921 i.e. no additional spacing, similar to Carbon port.
922
d93f9575
CY
923 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
924 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 925
305018ec
JD
9262009-03-14 Jan Djärv <jan.h.d@swipnet.se>
927
928 * sound.c (alsa_configure): Remove call to deprecated
929 snd_pcm_sw_params_set_xfer_align.
930
f761d6b6 9312009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
932
933 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
934 after clicking in a detached tool bar.
935 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
936
46e722a9
SM
9372009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
938
348db3dd
SM
939 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
940 int/Lisp_Object mixup).
46e722a9 941
a3d16f39
KH
9422009-03-13 Kenichi Handa <handa@m17n.org>
943
944 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 945 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
946 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
947 (set_fontset_font): Change ARG to a vector. Handle range_list in
948 ARG correctly.
949 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 950 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
951 the above change.
952 (fontset_from_font): Fix previous change.
fe24f56a 953 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
954 entry. If FONTSET is the default fontset, don't set the extra
955 slot of the returning char-table.
956
b066e6b6
JB
9572009-03-12 Juanma Barranquero <lekktu@gmail.com>
958
959 * nsfns.m (Fx_close_connection): Doc fix.
960 (Fns_do_applescript): Reflow docstring.
961 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
962 (Fx_display_pixel_width, Fx_display_pixel_height)
963 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
964 Fix typos in docstrings.
965 (Fns_set_alpha): Fix typos in error messages.
966
d472514e 9672009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 968
d472514e 969 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
970 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
971 were used for such events.
972
d472514e
JB
973 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
974 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 975
d472514e 976 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
977 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
978
fb930676
KH
9792009-03-11 Kenichi Handa <handa@m17n.org>
980
ff85581a
KH
981 * font.h (font_open_by_spec): Extern it.
982
c50b7e98
KH
983 * font.c (font_open_by_spec): New function.
984 (font_open_by_name): Use font_open_by_spec.
985
fb930676
KH
986 * frame.c (x_set_font): When ARG is a font-object, don't alter the
987 fontset of the frame.
988
989 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
990 modify the default font of frames that use this fontset.
991 (num_auto_fontsets): New variable.
992 (fontset_from_font): Use num_auto_fontsets to decide a fontset
993 name. Be sure to set FONTSET_ASCII to the correct font name.
994 (update_auto_fontset_alist): New function.
995
df4e8455
JB
9962009-03-11 Juanma Barranquero <lekktu@gmail.com>
997
998 * makefile.w32-in: Update dependencies.
999
0a375797
AR
10002009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
1001
1002 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
1003
61313fa3
SM
10042009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
1005
1006 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
1007
b55103fb
CY
10082009-03-10 Chong Yidong <cyd@stupidchicken.com>
1009
1010 * lread.c (Feval_buffer): Doc fix.
1011
dde2559c
KH
10122009-03-09 Kenichi Handa <handa@m17n.org>
1013
1014 * charset.c (Qfile_name_handler_alist): Extern it.
1015 (load_charset_map_from_file): Temporarily bind
1016 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
1017
df4e8455 10182009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 1019
47f588bb
GM
1020 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
1021 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 1022
4ddf94bd
AR
10232009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
1024
4c9bdfc2
AR
1025 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
1026 (x_set_window_size): Change back to calculated method of setting
1027 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
1028 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
1029 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
1030
fe41ae9e
AR
1031 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
1032
4c9bdfc2
AR
1033 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
1034 accelerator in parens under GNUstep.
1035
825d0875
KH
10362009-03-06 Kenichi Handa <handa@m17n.org>
1037
1038 These changes are to detect incorrect composition sequence without
f3b3be74 1039 looking ahead the source. (Bug#2370)
825d0875
KH
1040
1041 * coding.h: Include "composite.h".
1042 (enum compisition_state): New enum.
1043 (struct compisition_status): New struct.
1044 (struct iso_2022_spec): New member cmp_status.
1045 (struct emacs_mule_spec): New struct.
1046 (struct coding_system): New members ctext_extended_segment_len and
1047 embedded_utf_8. Change the union member
1048 spec.emacs_mule_full_support to spec.emacs_mule.
1049
1050 * coding.c (CODING_ISO_CMP_STATUS): New macro.
1051 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 1052 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
1053 (ADD_COMPOSITION_DATA): New arg nbytes.
1054 (emacs_mule_char): New arg cmp_status.
1055 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
1056 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
1057 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
1058 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
1059 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
1060 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
1061 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
1062 (EMACS_MULE_COMPOSITION_END): New macro.
1063 (emacs_mule_finish_composition): New function.
1064 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
1065 (decode_coding_emacs_mule): Avoid long looking ahead while
1066 handling composition.
1067 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
1068 (ENCODE_COMPOSITION_RULE): New macro.
1069 (finish_composition): New function.
1070 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
1071 (DECODE_COMPOSITION_START): New implementation.
1072 (DECODE_COMPOSITION_END): Likewise.
1073 (STORE_COMPOSITION_RULE): New macro.
1074 (decode_coding_iso_2022): Avoid long looking ahead while handling
1075 composition, CTEXT extended segment, and embedded UTF-8.
1076 (setup_coding_system): For a coding of type iso-2022, reset
1077 CODING_ISO_EXTSEGMENT_LEN (coding) and
1078 CODING_ISO_EMBEDDED_UTF_8 (coding).
1079 (get_translation): Delete arguments last_block, from_nchars,
1080 to_nchars. Callers changed.
1081 (produce_chars): Don't modify charbuf. Adjusted for the change of
1082 get_translation.
98a326f7 1083 (produce_composition): Adjust for the new annotation sequence.
825d0875 1084 (handle_composition_annotation): Likewise.
98a326f7 1085 (consume_chars): Adjust for the change of get_translation.
825d0875 1086
ccbc4452
AR
10872009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
1088
4ddf94bd 1089 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 1090
988a7ddb
KH
10912009-03-05 Kenichi Handa <handa@m17n.org>
1092
1093 * font.c (font_select_entity): New function.
1094 (font_find_for_lface): Use font_select_entity to select a font.
1095
1096 * fontset.c (fontset_find_font): If a font found without
a8a3728b 1097 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
1098 font with C restriction.
1099
98a326f7 11002009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 1101
be1bce46 1102 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 1103
10ea2b82
JR
11042009-03-04 Jason Rumney <jasonr@gnu.org>
1105
2c93b248 1106 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 1107 characters that have already been read. (Bug#2569)
2c93b248 1108
10ea2b82
JR
1109 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
1110 Log an error message if check_image_size failed.
1111 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 1112 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 1113
71a0c011
EZ
11142009-03-02 Eli Zaretskii <eliz@gnu.org>
1115
1116 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
1117 when decoding process output.
1118
2f63bba8
RS
11192009-03-01 Richard M Stallman <rms@gnu.org>
1120
1121 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
1122
1123 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
1124
0a9564cb
EZ
11252009-02-28 Eli Zaretskii <eliz@gnu.org>
1126
1127 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
1128 (decode_coding_emacs_mule, decode_coding_iso_2022)
1129 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
1130 (decode_coding_raw_text, decode_coding_charset)
1131 (setup_coding_system, decode_eol, decode_coding, consume_chars):
1132 Honor inhibit-eol-conversion. (Bug #2186)
1133
449148b3
JR
11342009-02-28 Jason Rumney <jasonr@gnu.org>
1135
1136 * coding.c (detect_coding_charset): If not checking latin extra,
1137 fail on characters between 0x80 and 0xA0. (Bug#2354)
1138
a4aee864
EZ
11392009-02-28 Eli Zaretskii <eliz@gnu.org>
1140
1141 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 1142 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 1143
d88bee5a
GM
11442009-02-27 Glenn Morris <rgm@gnu.org>
1145
1146 * callint.c (Finteractive): Doc fix.
1147
a808f22d
KH
11482009-02-27 Kenichi Handa <handa@m17n.org>
1149
1150 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
1151
caf8d60c
CY
11522009-02-27 Chong Yidong <cyd@stupidchicken.com>
1153
1154 * font.c (font_style_to_value): Set value for unknown symbols to
1155 100 instead of 255.
b61137ea
CY
1156 (weight_table, slant_table, width_table): Treat "unspecified" as
1157 the default value.
caf8d60c 1158
1a0de25c
JB
11592009-02-26 Juanma Barranquero <lekktu@gmail.com>
1160
1161 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
1162
8fc45744
JB
11632009-02-25 Juanma Barranquero <lekktu@gmail.com>
1164
107bd7d1
JB
1165 * lread.c (Fload): Stop checking Vloads_in_progress and signal
1166 error as soon as a recursive load is detected.
8fc45744 1167
f097e223
AR
11682009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
1169
1170 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
1171 before caching.
1172
8810a12f
KH
11732009-02-24 Kenichi Handa <handa@m17n.org>
1174
1175 * fontset.c (fontset_find_font): Fix the condition for checking
1176 unavailable font.
1177
2c7d1565
GM
11782009-02-24 Glenn Morris <rgm@gnu.org>
1179
1180 * xfaces.c (Finternal_set_font_selection_order): Remove leading
1181 whitespace that confuses documentation.
1182
a20878b6
MB
11832009-02-23 Miles Bader <miles@gnu.org>
1184
1185 * process.c (Flist_system_processes, Fprocess_attributes)
1186 (syms_of_process): Rename `system-process-attributes' to
1187 `process-attributes'.
1188
b3b58c01
AS
11892009-02-22 Andreas Schwab <schwab@linux-m68k.org>
1190
1b3b981b
AS
1191 * coding.h (struct coding_system): Make safe_charsets a pointer to
1192 unsigned char.
1193 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
1194 being 255.
1195 (SAFE_CHARSET_P): Likewise.
1196 (setup_iso_safe_charsets): Properly setup safe_charsets.
1197 (Fdefine_coding_system_internal): Likewise.
1198 (setup_coding_system): Likewise. Remove unneeded casts.
1199 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
1200 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
1201 unneeded casts.
1202
b3b58c01
AS
1203 * insdel.c (del_range_2): Don't modify gap contents when called
1204 from decode_coding_object. (Bug#1809)
1205
0b6f228c
CY
12062009-02-21 Chong Yidong <cyd@stupidchicken.com>
1207
1208 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
1209 Qfont_object.
1210 (Ftype_of): Recognize font objects.
1211
1212 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
1213
1214 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
1215 moved to data.c.
1216
52f8870b
AR
12172009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
1218
1219 * nsterm.m (x_make_frame_invisible): Unset async_visible,
1220 async_iconified. Based on a patch by Christian Lynbech
1221 <christian.lynbech@tieto.com>.
1222 (EmacsView-windowDidMiniaturize:): Unset async_visible.
1223
7087d5e9
GM
12242009-02-20 Glenn Morris <rgm@gnu.org>
1225
1226 * syntax.c (Fskip_chars_forward): Fix doc typo.
1227
41d2ceef
CY
12282009-02-20 Chong Yidong <cyd@stupidchicken.com>
1229
1230 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
1231
1a3b7ca6
CY
12322009-02-19 Chong Yidong <cyd@stupidchicken.com>
1233
1234 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
1235
73cce38d
KH
12362009-02-19 Kenichi Handa <handa@m17n.org>
1237
1238 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 1239 Don't overflow coding->carryover. (Bug#2370)
73cce38d 1240
a51092ee
DN
12412009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
1242
1243 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
1244
c423ecca
KH
12452009-02-18 Kenichi Handa <handa@m17n.org>
1246
1247 * font.c (font_check_otf_features): Fix handling of `nil' element.
1248 (Ffont_spec): Describe :lang and :otf in the docstring.
1249
4c1958f4
AS
12502009-02-16 Andreas Schwab <schwab@suse.de>
1251
1252 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
1253 string.
1254
5704f39a
KH
12552009-02-16 Kenichi Handa <handa@m17n.org>
1256
1257 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 1258 (Bug#1723)
5704f39a 1259
8f0085aa
CY
12602009-02-14 Chong Yidong <cyd@stupidchicken.com>
1261
a057d86a 1262 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
1263
1264 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
1265 (handle_line_prefix): Suppress wrapping of wrap prefixes.
1266
aff01dd9
EZ
12672009-02-14 Eli Zaretskii <eliz@gnu.org>
1268
1269 * msdos.c (MAX_SCREEN_BUF): New macro.
1270 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
1271 Encode the entire run of glyphs sharing the same face, instead of
1272 doing that one glyph at a time (fixes a bug with displaying
1273 double-size characters).
1274
ba301db3
AR
12752009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
1276
1277 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
1278
1279 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
1280 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 1281 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
1282
1283 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 1284 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 1285
51d861de
SM
12862009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
1287
1288 * keyboard.c (adjust_point_for_property): Allow stopping betwen two
1289 invisible areas.
1290
7fed8996
JR
12912009-02-12 Jason Rumney <jasonr@gnu.org>
1292
631ea4fb
JR
1293 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
1294 (add_font_entity_to_list): Call check_face_name even when family
1295 is unspecified.
1296
cb4a3e42
JR
1297 * w32term.c (x_display_pixel_height, x_display_pixel_width):
1298 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 1299 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 1300
7fed8996 1301 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 1302 raster fonts. (Bug#2219)
7fed8996 1303
895416e3
KH
13042009-02-12 Kenichi Handa <handa@m17n.org>
1305
1306 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
1307 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
1308 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 1309 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
1310 (find_automatic_composition): While looking forward and backward,
1311 check static composition. Fix where to stop looking forward.
1312 (composition_adjust_point): Fix checking of static composition.
1313 (Fcomposition_get_gstring): Pay attention to
1dacf998 1314 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
1315
1316 * lisp.h (fast_looking_at): Extern it.
1317
1318 * search.c (fast_looking_at): New function.
1319
51d861de 1320 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
1321 <struct glyph>.u.cmp.to.
1322 (append_composite_glyph): Likewise.
1323
51d861de 1324 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
1325 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
1326 composition.
51d861de 1327 (append_composite_glyph): Adjust for the change of
895416e3
KH
1328 <strcut glyph>.u.cmp.to.
1329
8510724d
JB
13302009-02-11 Juanma Barranquero <lekktu@gmail.com>
1331
1332 * casetab.c (init_casetab_once):
1333 * coding.c (ALLOC_CONVERSION_WORK_AREA):
1334 * font.c (font_update_lface):
1335 * fontset.c (Fnew_fontset):
1336 * ftfont.c (ftfont_drive_otf):
1337 * xfont.c (xfont_open):
1338 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
1339
294fa707
SM
13402009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
1341
1342 * fileio.c (Fwrite_region): !NILP -> CONSP.
1343
b5bfebec
AS
13442009-02-10 Andreas Schwab <schwab@suse.de>
1345
1346 * process.c (send_process): Properly relocate pointer into data
adab88bd 1347 when using encoded data. (Bug#2272)
b5bfebec 1348
cb84a2be
KH
13492009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
1350
1351 * coding.c (detect_coding_charset): Fix previous change.
1352
89e09428
JR
13532009-02-08 Jason Rumney <jasonr@gnu.org>
1354
1355 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 1356 disappeared while hourglass was displayed. (Bug #2193)
89e09428 1357
4470a277
AS
13582009-02-07 Andreas Schwab <schwab@suse.de>
1359
1360 * unexelf.c (unexec): Fix error message.
1361
3175b12a
AR
13622009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
1363
1364 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 1365 when modal window is active. (Bug #2152)
3175b12a
AR
1366 (applicationShouldTerminate:): Remove now-unneeded while loop
1367 around NSRunAlertPanel.
1368
1369 * nsmenu.m (popupSession): New file-global variable.
1370 (pop_down_menu): End the popupSession before closing dialog.
1371 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
1372 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
1373 don't query NSApp for events (just sleep instead).
1374
8434d0b8
EZ
13752009-02-07 Eli Zaretskii <eliz@gnu.org>
1376
51d861de
SM
1377 * coding.c (syms_of_coding) <translation-table-for-input>:
1378 Modify doc string to discourage use for character code unification.
8434d0b8 1379
aa82edfd
CY
13802009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1381
1382 * atimer.c (run_timers): Update pending_atimers.
1383
2d283c7c
CY
13842009-02-06 Chong Yidong <cyd@stupidchicken.com>
1385
eb306cab
CY
1386 * image.c (svg_load_image): Fix last change.
1387
2d283c7c
CY
1388 * xfns.c (Fx_create_frame): Signal an error if no font is
1389 found (Bug#2147).
1390
4d8e170e
JB
13912009-02-05 Juanma Barranquero <lekktu@gmail.com>
1392
1393 * character.c (syms_of_character) <script-representative-chars>:
1394 Fix typo in docstring.
1395
c96169a0
AR
13962009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
1397
1398 * nsmenu.m (pop_down_menu): New function.
1399 (ns_popup_dialog): Call it on unwind.
1400 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
1401 call timer_check() (Bug#2154).
1402 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
1403 handling_signal is set.
1404 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
1405
1406 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G
1407
1408 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
1409
1410 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
1411
51d861de
SM
1412 * keyboard.c (poll_for_input_1, handle_async_input):
1413 Set handling_signal under HAVE_NS.
c96169a0 1414
aacd8ba1
GM
14152009-02-04 Glenn Morris <rgm@gnu.org>
1416
1417 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
1418
4cb75c4b
KH
14192009-02-04 Kenichi Handa <handa@m17n.org>
1420
1421 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
1422
1423 * charset.c (Fchar_charset): New optional arg restriction.
1424
1425 * coding.h (coding_system_charset_list): Extern it.
1426
1427 * coding.c (coding_system_charset_list): New function.
1428
1429 * composite.c: Include coding.h and termhooks.h.
1430 (composition_gstring_p): Fix for the terminal case.
1431 (composition_gstring_width): Likewise.
1432 (fill_gstring_body): Likewise.
1433 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
1434 the frame.
1435 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
1436 is within a composition.
867d4bb3 1437 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
1438
1439 * term.c (encode_terminal_code): Fix handling of composition.
1440 (produce_composite_glyph): For static composition, get pixel_width
1441 from struct composition.
1442
826ba17e
AS
14432009-02-02 Andreas Schwab <schwab@suse.de>
1444
1445 * unexelf.c (unexec): Handle unaligned bss offset.
1446
8ad093db
AR
14472009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
1448
1449 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
1450 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 1451
8ad093db
AR
1452 * keyboard.c (handle_interrupt): Don't call
1453 quit_throw_to_read_char() under NS.
d0a76a6e 1454
8ad093db
AR
1455 * blockinput.h: Remove NS-specific code.
1456
4d18a7a2
DN
14572009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
1458
db878925
DN
1459 * dispnew.c (window_change_signal): Don't try to get the size of a
1460 suspended tty frame.
1461 * term.c (Fresume_tty): Resize if the size has changed while the
1462 tty was suspended.
1463
4d18a7a2
DN
1464 * alloc.c (mark_stack): Properly conditionalize previous change.
1465
8984df7c
JB
14662009-01-30 Juanma Barranquero <lekktu@gmail.com>
1467
1468 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
1469 * w32term.c (w32_read_socket) [SYNC_INPUT]:
1470 Remove; this code is not used on Windows.
1471
75f4f1ac
EZ
14722009-01-30 Eli Zaretskii <eliz@gnu.org>
1473
1474 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
1475 EOLs that also has stray ^M characters.
1476
07a1e794
JB
14772009-01-30 Juanma Barranquero <lekktu@gmail.com>
1478
1479 * atimer.c (run_timers, alarm_signal_handler):
1480 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
1481 * w32inevt.c (w32_console_read_socket):
1482 * w32term.c (w32_read_socket):
1483 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
1484
a8b11cc9
CY
14852009-01-30 Chong Yidong <cyd@stupidchicken.com>
1486
1487 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
1488 Initialize it as a relative filename pattern.
1489 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
1490 (Fcall_process_region): Simplify temp file creation using
1491 temporary-file-directory.
1492
c279587b
EZ
14932009-01-29 Eli Zaretskii <eliz@gnu.org>
1494
1495 * msdos.c: Rename pending_signals to msdos_pending_signals.
1496 (sig_suspender, sigprocmask): Adjust.
1497
a8fe3242
CY
14982009-01-29 Chong Yidong <cyd@stupidchicken.com>
1499
1500 * keyboard.c (pending_signals): New var.
1501 (poll_for_input, input_available_signal, init_keyboard): Set it.
1502 (process_pending_signals): New function.
1503
1504 * lisp.h (QUIT): Check pending_signals instead of
1505 interrupt_input_pending. Use process_pending_signals.
1506
51d861de 1507 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 1508
51d861de 1509 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
1510
1511 * sysdep.c (emacs_write): Use process_pending_signals.
1512
1513 * xterm.c (XTread_socket): Update pending_signals.
1514
1515 * w32term.c (w32_read_socket): Update pending_signals.
1516
1517 * w32inevt.c (w32_console_read_socket): Update pending_signals.
1518
6570a1c4
KH
15192009-01-29 Kenichi Handa <handa@m17n.org>
1520
1521 * xftfont.c (xftfont_has_char): New function.
1522 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
1523
d72a4afa
AR
15242009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
1525
1526 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
1527 under GNUstep.
1528 (ns_query_color): New declaration.
1529
1530 * nsterm.m (ns_confirm_quit): New variable.
1531 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
1532 (EmacsApp-applicationShouldTerminate:): Use it.
1533 (EmacsPrefsController): Let user set it.
1534 (ns_query_color): New function.
1535 (ns_defined_color): Use it.
1536 (ns_initialize): Drop.
1537 (ns_term_init): Add two lines from ns_initialize(), and set
1538 input_interrupt_mode to nil.
1539
1540 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 1541 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 1542
9fe78804
KH
15432009-01-28 Kenichi Handa <handa@m17n.org>
1544
1545 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
1546 (fontset_get_font_group): Remember that no font-group is specified
1547 for C.
9fe78804 1548
fa57de36
CY
15492009-01-27 Chong Yidong <cyd@stupidchicken.com>
1550
930600e9
CY
1551 * fns.c (concat): Check for string overflow (bug#1787).
1552
fa57de36
CY
1553 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
1554 Quadruple undo limits (bug#1501).
1555
7179ce7b
KH
15562009-01-27 Kenichi Handa <handa@m17n.org>
1557
1558 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
1559 directly use GT_Get_Char_index.
1560
1561 * xftfont.c (struct xftfont_info): New member `index'.
1562
1563 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 1564 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 1565
5be8fcc0
CY
15662009-01-26 Kenichi Handa <handa@m17n.org>
1567
1568 * fontset.c (fontset_find_font): Fix handling of non-cons return
1569 value of fontset_get_font_group.
1570 (fontset_font): Revert last change.
1571
19ae3e61
JR
15722009-01-26 Jason Rumney <jasonr@gnu.org>
1573
1574 * w32font.c (w32font_list_internal): Return quickly if registry is
1575 unknown. Simplify final return.
1576 (add_font_entity_to_list): Break complex logic down into more
1577 manageable chunks. Move unknown registry check to
1578 w32font_list_internal.
1579
8612b71a
AR
15802009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
1581
1582 Changes to remove Feval calls from GUI under NS.
1583
d8038940
JB
1584 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
1585 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
1586 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
1587
1588 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
1589 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
1590 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
1591 instead of NON_ASCII_KEYSTROKE_EVENT.
1592 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
1593 (EmacsApp-applicationShouldTerminate:): Query user.
1594 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
1595 instead of Feval.
1596
1597 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
1598
1599 * keyboard.c (kbd_buffer_get_event): Check for it.
1600 (keys_of_keyboard): Define lispy keys for
1601 ns-put/unput-working-text.
1602
1603 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
1604 versions.
1605 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
1606
6288ae55
CY
16072009-01-25 Chong Yidong <cyd@stupidchicken.com>
1608
1609 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 1610 setting current_buffer directly. (Bug#2044)
6288ae55 1611
289e7f8f
CY
16122009-01-24 Chong Yidong <cyd@stupidchicken.com>
1613
5ce87308 1614 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 1615 any work. (Bug#1952, bug#1990).
5ce87308 1616
64cc3cf6 1617 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 1618
b3243e6f
AR
16192009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
1620
1621 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
1622 (ns_no_defaults): New declaration.
1623 (main): Use it.
e0d2e69a 1624
d900b2af 1625 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 1626
d900b2af 1627 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 1628
d900b2af
AR
1629 * nsterm.m (ns_no_defaults): New variable.
1630 (ns_initialize): Don't read defaults when ns_no_defaults.
1631 (EmacsView-readSelectionFromPasteboard:)
1632 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 1633 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
1634 (ns_dumpglyphs_stretch): New function.
1635 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 1636 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 1637
e0d2e69a
AR
1638 * nsimage.m (setPixmapData:): Set to ignore image DPI.
1639
3ac71f5d
CY
16402009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
1641
1642 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
1643 call for Sparc64.
1644
3fe53a83
AR
16452009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
1646
1647 * nsfns.m:
1648 * nsgui.h:
1649 * nsmenu.m:
1650 * nsselect.m:
1651 * nsterm.h:
1652 * nsterm.m: Remove '23' comments that indicated code added during
1653 update from emacs-20 -> emacs-23.
1654
10f87c6f 16552009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
1656
1657 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 1658 ns_alternate_modifier. (Bug#1217)
a3b53a85 1659
c7cef62d
AR
1660 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
1661 Display all shortcuts, including those w/o super modifier.
1662
575fb8bd
AR
1663 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
1664
918b848b
CY
16652009-01-22 Chong Yidong <cyd@stupidchicken.com>
1666
1667 * fileio.c (Vwrite_region_post_annotation_function)
1668 (Vwrite_region_annotation_buffers): New vars.
1669 (build_annotations_unwind): Just reset
1670 Vwrite_region_annotation_buffers.
1671 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
1672 Call write-region-post-annotation-function.
1673 (build_annotations): Add to Vwrite_region_annotation_buffers if
1674 buffer changes.
1675
a39e2539
AR
16762009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
1677
1678 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
1679 Tiger.
51d861de
SM
1680 * nsfns.m (ns_do_applescript):
1681 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 1682
35ed44db
AR
16832009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
1684
1685 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
1686
cbe0b5bf
AR
16872009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
1688
1689 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 1690
6049d3a0
AR
1691 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
1692
1693 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
1694 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
1695 handle Ctrl-tab. (Bug#1841)
1696 (ns_get_color): Use unsigned long long for scanned hex string value.
1697 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 1698 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 1699 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 1700 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 1701 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 1702 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 1703 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 1704
d3810c21 1705 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 1706 DPI. (Bug#1316)
d3810c21
AR
1707 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
1708 values in onTiger section.
4c7077c3 1709
e301e634
CY
17102009-01-19 Chong Yidong <cyd@stupidchicken.com>
1711
7f82490b
CY
1712 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
1713 Check return value of font_spec_from_name.
64cc3cf6 1714 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
1715
1716 * font.c (font_spec_from_name): Return Qnil if font name could not
1717 be parsed.
1718 (font_parse_name): Treat a `?' character as part of an XLFD.
1719
e301e634
CY
1720 * fns.c (Fsubstring): Doc fix.
1721
1c0db158
KH
17222009-01-19 Kenichi Handa <handa@m17n.org>
1723
51d861de 1724 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
1725 (ftfont_list): Likewise.
1726
acf20901
JB
17272009-01-18 Juanma Barranquero <lekktu@gmail.com>
1728
fff4e459
JB
1729 * dbusbind.c (Fdbus_register_signal):
1730 * process.c (conv_sockaddr_to_lisp):
1731 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
1732
acf20901
JB
1733 * callproc.c (Fgetenv_internal): Doc fix.
1734
e7abcdfb
CY
17352009-01-16 Chong Yidong <cyd@stupidchicken.com>
1736
1737 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
1738 it is not even used.
1739
b60861e6
GM
17402009-01-16 Glenn Morris <rgm@gnu.org>
1741
1742 * font.c (Ffont_variation_glyphs): Silence compiler.
1743
8db52afe
JB
17442009-01-15 Juanma Barranquero <lekktu@gmail.com>
1745
1746 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
1747 Reported by David Robinow <drobinow@gmail.com>.
1748
4cddb209
KH
17492009-01-15 Kenichi Handa <handa@m17n.org>
1750
51d861de 1751 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 1752
f247f67b
JR
17532009-01-14 Jason Rumney <jasonr@gnu.org>
1754
1755 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 1756 never a fontset. (Bug#1562)
f247f67b 1757
f56a4450
KH
17582009-01-14 Kenichi Handa <handa@m17n.org>
1759
1760 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 1761 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 1762
4e99855e
CY
17632009-01-13 Chong Yidong <cyd@stupidchicken.com>
1764
1765 * font.c (font_clear_prop): If clearing the family, clear the font
1766 width index too.
1767
fff4e459 1768 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 1769
24f01470
JB
17702009-01-12 Juanma Barranquero <lekktu@gmail.com>
1771
1772 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
1773 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
1774 functions, use sizeof.
1775
a41240a3
MR
17762009-01-12 Martin Rudalics <rudalics@gmx.at>
1777
1778 * keyboard.c (read_char): Fix case where last_nonmenu_event
1779 returned a bad value with submenus. (Bug#447)
1780
944636b8
CY
17812009-01-12 Chong Yidong <cyd@stupidchicken.com>
1782
1783 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
1784 family, clear the font width index too.
1785
0dad7c6f
JR
17862009-01-11 Jason Rumney <jasonr@gnu.org>
1787
1788 * keyboard.c (cmd_error_internal): Exit when errors occur before
1789 frame creation and not in daemon mode. (Bug#1836)
1790
7c2363af
CY
17912009-01-10 Chong Yidong <cyd@stupidchicken.com>
1792
1793 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
1794 of a display vector, backtrack.
1795 (try_window_reusing_current_matrix): Check glyph type before
1796 referencing charpos member.
1797
97b1b294
EZ
17982009-01-10 Eli Zaretskii <eliz@gnu.org>
1799
1800 Fix Bug #876:
1801
1802 * coding.c (inhibit_null_byte_detection): New variable.
1803 (detect_coding, detect_coding_system): Don't pay attention to null
1804 bytes if inhibit_null_byte_detection is non-zero.
51d861de 1805 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
1806 <inhibit-iso-escape-detection>: Doc fix.
1807
4624b6e3
JR
18082009-01-09 Jason Rumney <jasonr@gnu.org>
1809
1810 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 1811 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
1812 Only report Unicode Plane 2 fonts as unicode-sip.
1813
323b840c
CY
18142009-01-09 Chong Yidong <cyd@stupidchicken.com>
1815
51d861de
SM
1816 * xfaces.c (Fx_font_family_list): Delete function.
1817 Move compatibility version to faces.el.
323b840c 1818
51d861de 1819 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 1820
eba7400d
MR
18212009-01-09 Martin Rudalics <rudalics@gmx.at>
1822
1823 * frame.c (x_set_frame_parameters): Remember requested value for
1824 fullscreen before it's reset by the parameter handler.
1825
4b09796d
GM
18262009-01-09 Glenn Morris <rgm@gnu.org>
1827
1828 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 1829 (last_command_event): ... and update all users.
4b09796d
GM
1830 (last_input_char): For clarity, rename to...
1831 (last_input_event): ... and update all users.
1832 (last-command-char, last-input-char): Move to subr.el as aliases.
1833 * cmds.c, commands.h: Update for last_command_char rename.
1834
14ccea62
CY
18352009-01-08 Chong Yidong <cyd@stupidchicken.com>
1836
51d861de 1837 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 1838
5f004711
JR
18392009-01-08 Jason Rumney <jasonr@gnu.org>
1840
1841 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
1842 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
1843 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
1844 Don't declare.
fff4e459 1845 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
1846 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
1847
b71f6f73
KH
18482009-01-07 Kenichi Handa <handa@m17n.org>
1849
50b06221 1850 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 1851 remember the coding system used for decoding in
50b06221
KH
1852 coding_system (Bug#1039).
1853
b71f6f73 1854 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 1855 breaking the loop. (Bug#870)
b71f6f73
KH
1856 (decode_coding_utf_16, decode_coding_emacs_mule)
1857 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
1858 (decode_coding_charset): Likewise.
1859
56f668f7
MR
18602009-01-05 Martin Rudalics <rudalics@gmx.at>
1861
1862 * frame.c (x_set_frame_parameters): Make sure height (width) get
1863 applied when fullwidth (fullheight) is set. (Bug#1522)
1864
5da9424d
JB
18652009-01-04 Juanma Barranquero <lekktu@gmail.com>
1866
1867 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
1868 (utc_base): Declare as ULONGLONG, not long double.
1869 (convert_time_raw): Delete.
1870 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
1871 (initialize_utc_base): New function.
1872 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
1873 (convert_from_time_t): Use initialize_utc_base; compute result with
1874 64-bit arithmetic.
1875 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
1876
c4605e09
EZ
18772009-01-03 Eli Zaretskii <eliz@gnu.org>
1878
9acef61c 1879 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
1880 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
1881 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
1882 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
1883 [!subprocesses]: Define.
1884 (syms_of_process) [!subprocesses]: Intern and staticpro them.
1885 (Flist_system_processes, Fsystem_process_attributes)
1886 [!subprocesses]: Call list_system_processes and
1887 system_process_attributes instead of returning Qnil.
1888
9acef61c
JB
1889 * dosfns.c (system_process_attributes, list_system_processes):
1890 New functions.
c4605e09
EZ
1891
1892 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
1893
1894 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
1895 Don't use the default (no-op) implementation.
1896
8b7d0a16
JR
18972009-01-03 Jason Rumney <jasonr@gnu.org>
1898
a6d46bc1
JR
1899 * keyboard.c (parse_modifiers_uncached): Wheel events are
1900 clicks (bug#687).
1901
8b7d0a16
JR
1902 * w32term.c (x_query_colors, x_query_color): New functions.
1903
1904 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
1905 (svg_load_image): Cast returned pointers from dynamically loaded
1906 functions. Eliminate W32 specific code.
1907
bfe11752
DN
19082009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
1909
89e2438a
DN
1910 * nsfns.m (x_set_foreground_color, x_set_background_color)
1911 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
1912 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
1913 x_ prefix instead of ns_. Update references.
1914 (syms_of_nsfns): Add a FIXME comment.
1915
1916 * nsterm.m (x_set_cursor_type): New prototype.
1917 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
1918
bfe11752
DN
1919 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
1920 for Solaris instead of incorrectly providing Qutime and Qcutime.
1921
031da700
EZ
19222009-01-02 Eli Zaretskii <eliz@gnu.org>
1923
1924 * w32.c (process_times): Compute sum of utime and stime.
1925 (system_process_attributes): Add Qtime to the alist.
1926
1927 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
1928 and add them to the alist.
1929
1930 * process.c (top level) <Qtime, Qctime>: New variables.
1931 (syms_of_process): staticpro them.
1932 (Fsystem_process_attributes): Add their documentation to the doc
1933 string.
1934
1935 * process.h: Declare Qtime and Qctime.
1936
df23bf08
JR
19372009-01-02 Jason Rumney <jasonr@gnu.org>
1938
9acef61c 1939 * image.c (Qgobject): New symbol.
df23bf08
JR
1940 (syms_of_image): Initialize it.
1941 (init_svg_functions): Load some functions from gobject library.
1942
5bbdf7aa
DN
19432009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
1944
1945 * frame.c (make_terminal_frame): Remove redundant code and useless
1946 block.
1947
63136da6
AS
19482009-01-01 Andreas Schwab <schwab@suse.de>
1949
1950 * process.c (conv_sockaddr_to_lisp): Add workaround for
1951 getsockname bug on BSD.
1952
9ef69046
CY
19532009-01-01 Chong Yidong <cyd@stupidchicken.com>
1954
d6fafbe0
CY
1955 * xfns.c (x_create_tip_frame): Set border width of the X window.
1956
51d861de 1957 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 1958
f9c34147
JR
19592009-01-01 Jason Rumney <jasonr@gnu.org>
1960
9acef61c 1961 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
1962 Don't block input, as per earlier xterm.c changes.
1963
f5497e45
AR
19642008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
1965
1966 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
1967 (ns_appkit_version_int): New function.
1968 (x-server-version): Use ns_appkit_version_int and follow 21+
1969 convention of returning 3 integers.
1970
c19cab20
KH
19712008-12-30 Kenichi Handa <handa@m17n.org>
1972
1973 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
1974 (CHAR_SURROGATE_PAIR_P): New macro.
1975
1976 * font.h (struct font_driver): New member get_variation_glyphs.
1977
9acef61c 1978 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
1979 (Ffont_variation_glyphs): New function.
1980 (syms_of_font): Defsubr it.
1981
1982 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
1983 ftfont_variation_glyphs.
1984 (setup_otf_gstring): New function.
1985 (ftfont_drive_otf): Use it.
1986 (ftfont_shape_by_flt): Handle variation selector.
1987 (ftfont_variation_glyphs): New function.
1988
28cd591f
MR
19892008-12-30 Martin Rudalics <rudalics@gmx.at>
1990
1991 * frame.c (Vemacs_iconified): Remove.
1992
7f714baf
JR
19932008-12-30 Jason Rumney <jasonr@gnu.org>
1994
1995 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 1996 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 1997
9d2d22ab
CY
19982008-12-30 Chong Yidong <cyd@stupidchicken.com>
1999
2000 * indent.c (Fvertical_motion): Don't advance iterator if we have
2001 reseated to the desired position.
2002
2003 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
2004 checking for pos match.
2005
545312c2
KH
20062008-12-30 Kenichi Handa <handa@m17n.org>
2007
1ede3eb6
KH
2008 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
2009 just get the low 8-bit of the code.
2010
545312c2
KH
2011 * font.c (font_intern_prop): Validate str as multibyte.
2012
bd7bbf29
DN
20132008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
2014
31e0750e
DN
2015 * dispextern.h (struct face): Move lface and hash from the middle
2016 of bitfields.
2017
bd7bbf29
DN
2018 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
2019
b5672e7c
DN
20202008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
2021
2022 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
2023 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
2024 instead of intervals.h.
2025
d704470f
AS
20262008-12-26 Andreas Schwab <schwab@suse.de>
2027
2028 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
2029 cons.
2030
54b33868
MR
20312008-12-26 Martin Rudalics <rudalics@gmx.at>
2032
2033 * textprop.c (Qminibuffer_prompt): New variable.
2034 (syms_of_textprop): Initialize it.
2035 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
2036 in minibuffer-prompt face. (Bug#1662)
2037
40b615d6
JR
20382008-12-25 Jason Rumney <jasonr@gnu.org>
2039
2040 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
2041
baae5c2d
JR
20422008-12-24 Jason Rumney <jasonr@gnu.org>
2043
2044 * ralloc.c (r_alloc_reset_variable): New function.
2045
2046 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 2047 record of what points where. (Bug#716)
baae5c2d 2048
a9051c88
DN
20492008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
2050
2051 * minibuf.c (read_minibuf): Follow the non-interactive case when
2052 running as a daemon, before detaching.
2053
8b146312
AS
20542008-12-22 Andreas Schwab <schwab@suse.de>
2055
2056 * buffer.c (init_buffer): Use realloc instead of xrealloc.
2057 * gtkutil.c (free_widget_value): Use xfree instead of free.
2058
56f2de10
MR
20592008-12-22 Martin Rudalics <rudalics@gmx.at>
2060
2061 * frame.c (delete_frame): New function derived from
2062 Fdelete_frame to handle Qnoelisp value for FORCE argument.
2063 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
2064 (Fdelete_frame): Call delete_frame. Remove line from doc-string
2065 saying that FORCE non-nil doesn't run `delete-frame-functions'.
2066 * frame.h: Extern delete_frame.
2067 * window.c (window_loop):
2068 * terminal.c (delete_terminal):
2069 * xterm.c (x_connection_closed):
2070 * xfns.c (Fx_hide_tip):
9acef61c 2071 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 2072
1fc200d6
JR
20732008-12-21 Jason Rumney <jasonr@gnu.org>
2074
2075 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
2076 when character maps to .notdef character.
2077
5e252df2
SM
20782008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
2079
2080 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
2081
99b72cc4
JR
20822008-12-20 Jason Rumney <jasonr@gnu.org>
2083
2084 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 2085 a graphical frame on Windows. (Bug#1325)
99b72cc4 2086
acc49a52
JD
20872008-12-20 Jan Djärv <jan.h.d@swipnet.se>
2088
2089 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
2090
6ea15123
CY
20912008-12-20 Chong Yidong <cyd@stupidchicken.com>
2092
2093 * minibuf.c (Fread_buffer): Doc fix.
2094
b2dab6c8
JR
20952008-12-20 Jason Rumney <jasonr@gnu.org>
2096
54ea0c87 2097 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 2098 server name in UNC paths. (Bug#719)
54ea0c87 2099
b2dab6c8 2100 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 2101 charbuf. (Bug#1035)
b2dab6c8 2102
6d1921be
DN
21032008-12-19 Daniel Engeler <engeler@gmail.com>
2104
2105 * sysdep.c (serial_configure): Fix typo.
2106
53934c98
DN
21072008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
2108
2109 * sysdep.c: Include alloca.h.
f4f634e8
DN
2110 (system_process_attributes): Add implementation for Solaris.
2111
2112 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 2113
06e111a6
DN
21142008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
2115
2116 Reorganize implementation of Flist_system_processes and
2117 Fsystem_process_attributes. No functional changes.
2118 * process.c: Don't #include pwd.h, grp.h and limits.h.
2119 (Flist_system_processes): Just call list_system_processes.
2120 (Fsystem_process_attributes): Just call system_process_attributes.
2121 (procfs_list_system_processes, time_from_jiffies)
2122 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
2123 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
2124
2125 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
2126 (list_system_processes): Rename from
2127 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
2128 Provide a do nothing implementation.
2129 (system_process_attributes): Rename from
2130 procfs_list_system_processes.
2131 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 2132 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
2133
2134 * w32.c (list_system_processes): Rename from
2135 w32_list_system_processes.
2136 (system_process_attributes): Rename from
2137 w32_system_process_attributes.
2138
2139 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
2140
2141 * process.h (w32_list_system_processes)
2142 (w32_system_process_attributes): Remove.
2143 (list_system_processes, system_process_attributes): New
2144 prototypes.
2145
6a705b23
KH
21462008-12-19 Kenichi Handa <handa@m17n.org>
2147
2148 * xfont.c (xfont_decode_coding_xlfd): New function.
2149 (xfont_encode_coding_xlfd): New function.
2150 (xfont_list_pattern): Decode XLFD by iso-8859-1.
2151 (xfont_list): Decode and encode XLFD by iso-8859-1.
2152 (xfont_match): Likewise.
2153 (xfont_list_family): Likewise.
2154 (xfont_open): Likewise.
2155
d66c0241 2156 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
2157 names are utf-8.
2158
d66c0241 2159 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
2160 names are utf-8.
2161
5a130941
JD
21622008-12-18 Jan Djärv <jan.h.d@swipnet.se>
2163
2164 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
2165 changed.
bfd20325
JD
2166 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
2167 clicked on a detached tool bar button.
5a130941 2168
fd95644b
DN
21692008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
2170
2171 * emacs.c (main): Print and error and exit when no data is read
2172 from the pipe.
2173
e6eee6ae
JR
21742008-12-17 Jason Rumney <jasonr@gnu.org>
2175
2176 * w32font.c (w32font_has_char): Always return -1.
2177
a35dd56b
KH
21782008-12-16 Kenichi Handa <handa@m17n.org>
2179
2180 * font.c (font_open_entity): Fix previous change.
2181
0e3635c2
DN
21822008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
2183
2184 * process.c: Include <limits.h>.
2185
d4835507 21862008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
2187
2188 * font.c (font_update_drivers): Fix mistake in reconstructing the
2189 driver list.
2190
21912008-12-16 Chong Yidong <cyd@stupidchicken.com>
2192
2193 * font.c (font_clear_cache): Fix format of font cache data.
2194
e2cbc401
CY
21952008-12-15 Chong Yidong <cyd@stupidchicken.com>
2196
2197 * xftfont.c (xftfont_open): Free Xft font pattern if
2198 XftFontOpenPattern fails.
2199
2200 * xterm.c (x_free_frame_resources): Remove extraneous call to
2201 free_frame_faces.
2202
b131d535
CY
22032008-12-13 Chong Yidong <cyd@stupidchicken.com>
2204
2205 * xterm.c (x_delete_display): Move xim_close_dpy call to
2206 x_delete_terminal.
2207 (x_delete_terminal): Call xim_close_dpy.
2208
e6df5336
JR
22092008-12-13 Jason Rumney <jasonr@gnu.org>
2210
2211 * w32font.c (intern_font_name): New function.
2212 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
2213 (w32font_open_internal, Fx_select_font): Decode font name.
2214 (fill_in_logfont, list_all_matching_fonts): Encode font name.
2215
2216 * w32font.h (intern_font_name): Declare new function.
2217
2218 * w32uniscribe.c (add_opentype_font_name_to_list):
2219 Use intern_font_name.
2220
20d68145
CY
22212008-12-13 Chong Yidong <cyd@stupidchicken.com>
2222
9f2554de
CY
2223 * frame.c (Fdelete_frame): Call free_font_driver_list.
2224
3d9bec9a
CY
2225 * font.c (free_font_driver_list): Implement missing function.
2226
20d68145
CY
2227 * w32term.c (w32_term_init): Don't initialize the image cache
2228 here; it will be done in init_frame_faces.
2229
2230 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
2231 (struct x_display_info): Remove unused member null_pixel. New
2232 member xim_callback_data.
2233
2234 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
2235 (xim_initialize): Save pointer to callback function data.
2236 (xim_close_dpy): Free callback function data. Call XCloseIM,
2237 reverting 2008-11-04 change by David Smith.
2238 (x_term_init): Don't initialize the image cache here; it will be
2239 done in init_frame_faces. Remove ancient "null_pixel" cruft.
2240 (x_delete_display): Free x_dnd_atoms member.
2241
96f9306b
KH
22422008-12-13 Kenichi Handa <handa@m17n.org>
2243
6dec9044
JB
2244 * font.c (font_rescale_ratio): Moved from xfaces.c.
2245 Argument type changed. Handle a font-spec too.
96f9306b 2246 (font_score): Check Vface_font_rescale_alist.
6dec9044 2247 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
2248
2249 * xfaces.c (font_rescale_ratio): Moved to font.c.
2250
8d5b4964
CY
22512008-12-13 Chong Yidong <cyd@stupidchicken.com>
2252
2253 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
2254
e6df5336
JR
22552008-12-12 Jason Rumney <jasonr@gnu.org>
2256
2257 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
2258 Vwindow_system_version to the real w32 major version.
2259
97c6058a
DN
22602008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
2261
2262 * term.c (init_tty): Move setting the terminal name before the
2263 potential user: maybe_fatal.
2264
ec4e88d7
CY
22652008-12-11 Chong Yidong <cyd@stupidchicken.com>
2266
d4835507
JB
2267 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
2268 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 2269
b4233ec9
JR
22702008-12-11 Jason Rumney <jasonr@gnu.org>
2271
8ec71e23 2272 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 2273 SYMBOL_CHARSET. (Bug#547)
8ec71e23 2274
b4233ec9 2275 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 2276 size for surrogates. (Bug#1096, bug#872)
b4233ec9 2277
011a0143
JB
22782008-12-11 Juanma Barranquero <lekktu@gmail.com>
2279
2280 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
2281
3c309f34
JB
22822008-12-11 Juanma Barranquero <lekktu@gmail.com>
2283
2284 * process.c (Fsystem_process_attributes, syms_of_process):
2285 Fix typo in name of Ssystem_process_attributes.
2286 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
2287
fedc6ab5
JB
22882008-12-11 Juanma Barranquero <lekktu@gmail.com>
2289
2290 * syntax.c (Fmodify_syntax_entry): Doc fix.
2291
ba3de0e8
JB
22922008-12-10 Juanma Barranquero <lekktu@gmail.com>
2293
2294 * font.c (Ffont_spec): Move usage to end of docstring.
2295
174f1c74
JR
22962008-12-10 Jason Rumney <jasonr@gnu.org>
2297
2298 * w32font.c (Qcham): New symbol.
2299 (font_supported_scripts): Add cham, and comments for other new
2300 scripts in bitfield from OpenType spec.
9d32f818
JR
2301 (add_font_entity_to_list): Limit unicode-sip fonts to those that
2302 contain characters beyond the bmp.
174f1c74 2303
7b649478
KH
23042008-12-10 Kenichi Handa <handa@m17n.org>
2305
2306 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 2307 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
2308 Qunicode_sip.
2309
2133e2d1
JB
23102008-12-10 Juanma Barranquero <lekktu@gmail.com>
2311
2312 * coding.c (QCdefault_char): Rename from QCdefalut_char.
2313 (Fcoding_system_put): Use QCdefault_char.
2314 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
2315
9af886ee
CY
23162008-12-09 Chong Yidong <cyd@stupidchicken.com>
2317
74d819eb
CY
2318 * xftfont.c (syms_of_xftfont): Fix typo.
2319
4ccfa1c0 2320 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 2321
7c19d3ae
DN
23222008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
2323
2324 * emacs.c (main): Close daemon_pipe on exec.
2325
567826bb
CY
23262008-12-08 Chong Yidong <cyd@stupidchicken.com>
2327
2328 * termchar.h (struct tty): New members termcap_term_buffer and
2329 termcap_strings_buffer.
2330
2331 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 2332 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
2333 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
2334 All callers changed.
2335 (init_tty): Store termcap data and string buffers in new struct
2336 tty members termcap_term_buffer and termcap_strings_buffer.
2337 (delete_tty): Free them.
4ccfa1c0 2338 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 2339
aa96c42b
SZ
23402008-12-07 Seiji Zenitani <zenitani@mac.com>
2341
2342 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 2343 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 2344
b7e1d896
CY
23452008-12-06 Chong Yidong <cyd@stupidchicken.com>
2346
2347 * coding.c (make_conversion_work_buffer): Disable buffer
2348 modification hooks in the work buffer.
2349
b5ec91a5
EZ
23502008-12-05 Eli Zaretskii <eliz@gnu.org>
2351
2352 * process.c (procfs_system_process_attributes): If `nread' has a
2353 negative value, assign zero to it.
2354
a5d2a52b
CY
23552008-12-05 Chong Yidong <cyd@stupidchicken.com>
2356
68c5540b 2357 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 2358
7bf1bb21
KH
23592008-12-05 Kenichi Handa <handa@m17n.org>
2360
2361 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
2362 second character is a combining character.
2363
2fdc7d00
EZ
23642008-12-05 Eli Zaretskii <eliz@gnu.org>
2365
2366 * process.c (procfs_system_process_attributes): Don't use cmd,
2367 cmdsize, and q without initializing them first.
2368
bf6bfba8
JR
23692008-12-04 Jason Rumney <jasonr@gnu.org>
2370
2371 * w32font.c (w32font_draw): Initialize orig_clip before getting
2372 it, and delete it when finished.
2373
a3b1a468
DN
23742008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
2375
2376 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
2377 case when running as a daemon before detaching.
2378
8b8be8eb
JB
23792008-12-03 Juanma Barranquero <lekktu@gmail.com>
2380
805f2638 2381 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 2382
b1bde622
KH
23832008-12-03 Kenichi Handa <handa@m17n.org>
2384
e500c47d
KH
2385 * font.c (font_at): Set `multibyte' at first.
2386
ca516334
KH
2387 * coding.c (decode_coding_charset): Check type of an element of
2388 vector VALIDS.
7bf1bb21 2389 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 2390
4ccfa1c0 2391 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
2392 (font_for_char): Likewise.
2393
1e5ecd37
CY
23942008-12-03 Chong Yidong <cyd@stupidchicken.com>
2395
d5b01609 2396 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
2397 (font_update_lface): Handle fonts with corrupted size specs,
2398 i.e. non-int and non-float.
d5b01609 2399
11e3a6e4 2400 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 2401 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 2402 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 2403
ab06788b
CY
2404 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
2405
1e5ecd37 2406 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 2407 underline_minimum_offset for underline position.
1e5ecd37 2408
63c125ab
DN
24092008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
2410
2411 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
2412
2413 * character.c (c_string_width): Specify the type for LEN.
2414
3a8406e1
KH
24152008-12-03 Kenichi Handa <handa@m17n.org>
2416
4ccfa1c0 2417 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 2418 (decode_coding_utf_8): Likewise.
4ccfa1c0 2419 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 2420 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 2421
651df7d9
CY
24222008-12-02 Chong Yidong <cyd@stupidchicken.com>
2423
2424 * keyboard.c (make_lispy_position): Only use PT if the selected
2425 window is current.
2426
1f625c6c
AS
24272008-12-02 Andreas Schwab <schwab@suse.de>
2428
f7741ce9
AS
2429 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
2430
1f625c6c
AS
2431 * doprnt.c (doprnt1): Fix size of charbuf.
2432
92bc2678
CY
24332008-12-02 Chong Yidong <cyd@stupidchicken.com>
2434
2435 * keyboard.c (timer_check): Revert last change.
2436
93b9e8cc
JB
24372008-12-02 Juanma Barranquero <lekktu@gmail.com>
2438
2439 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
2440
fd7a37d5
JB
24412008-12-01 Juanma Barranquero <lekktu@gmail.com>
2442
2443 * makefile.w32-in: Update dependencies.
2444 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
2445
c115043b
AS
24462008-12-01 Andreas Schwab <schwab@suse.de>
2447
2448 * font.c (register_font_driver): Use xmalloc.
2449 (font_put_frame_data): Likewise.
2450
f5668d2a
CY
24512008-12-01 Chong Yidong <cyd@stupidchicken.com>
2452
860d96be
CY
2453 * xfaces.c (realize_x_face): Make abort condition clearer.
2454
f5668d2a
CY
2455 * gtkutil.c (update_frame_tool_bar): Initialize variable.
2456
379c17e7
CY
24572008-11-30 Chong Yidong <cyd@stupidchicken.com>
2458
2459 * keyboard.c (timer_check): After a timer runs, ensure that the
2460 selected window's buffer is current.
2461
35f36d65
JB
24622008-11-30 Juanma Barranquero <lekktu@gmail.com>
2463
f952c61c
JB
2464 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
2465 It was accidentally restored by the Unicode merge.
2466
35f36d65
JB
2467 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
2468
b23077df
JB
24692008-11-29 Juanma Barranquero <lekktu@gmail.com>
2470
2471 * w32proc.c: Include "coding.h".
2472 (Fw32_short_file_name): Encode filename passed to Windows API.
2473 (Fw32_long_file_name): Encode filename passed to Windows API and
2474 decode back the result. (Bug#1433)
2475
b8ebe9dd
KH
24762008-11-29 Kenichi Handa <handa@m17n.org>
2477
8cc53f96
KH
2478 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
2479 not before accessing it.
2480
b8ebe9dd
KH
2481 * charset.c (Fdefine_charset_internal): After calculating
2482 min_char, max_char, and fastmap, copy the charset structure again.
2483 (encode_char): Fix the previous change.
2484
59bc82c0
SZ
24852008-11-28 Seiji Zenitani <zenitani@mac.com>
2486
2487 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
2488
2489 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
2490
2491 * nsterm.m (x_set_frame_alpha): New function.
2492
32247e3d
EZ
24932008-11-27 Eli Zaretskii <eliz@gnu.org>
2494
2495 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
2496
b003e5ff
JB
24972008-11-27 Juanma Barranquero <lekktu@gmail.com>
2498
2499 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
2500 pointer to check_face_name.
2501
708550f5
KH
25022008-11-27 Kenichi Handa <handa@m17n.org>
2503
2504 * category.h (SET_CATEGORY_SET): Call set_category_set.
2505 (set_category_set): Extern it.
2506
2507 * category.c (hash_get_category_set): New function.
2508 (Fmodify_category_entry): Adjusted for the change of
2509 char_table_ref_and_range. Call hash_get_category_set to get a
2510 category set to store in the table.
2511
2512 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
2513 Funify_charset.
2514
2ae37cf0 2515 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
2516 (DECODE_CHAR): Check if the decoder vector is ready.
2517 (ENCODE_CHAR): Check if the encoder char-table is ready.
2518 (maybe_unify_char): Extern it.
2519
2520 * charset.c (Vchar_unified_charset_table): Delete it.
2521 (inhibit_load_charset_map): New variable.
2522 (temp_charset_work): New variable.
2523 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
2524 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
2525 New macros.
2526 (load_charset_map): Meaning of control_flag changed. If
2527 inhibit_load_charset_map is nonzero, setup a table in
2528 temp_charset_work.
2529 (load_charset): New argument control_flag.
2530 (map_charset_for_dump): New function.
2531 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
2532 map_charset_for_dump.
2533 (Fdefine_charset_internal): If the charset method is MAP, load
2534 mapping tables by calling load_charset.
2535 (Funify_charset): Don't load a mapping table but directly set
2536 Vchar_unify_table.
2537 (maybe_unify_char): New function.
2538 (decode_char): Don't handle the deleted method MAP_DEFERRED.
2539 Handle the case of inhibit_load_charset_map being nonzero.
2540 (encode_char): Don't handle the deleted method MAP_DEFERRED.
2541 Handle the case of inhibit_load_charset_map being nonzero.
2542 (Fclear_charset_maps): Just free temp_charset_work.
2543 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
2544 variable.
2545
2546 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
2547 change of char_table_ref_and_range.
2548 (char_table_ref_and_range): Change the meaning of argument FROM
2549 and TO. Now the caller must provide initial values for *FROM
2550 and *TO.
2551
2552 * fontset.c (fontset_add): Adjusted for the change of
2553 char_table_ref_and_range.
2554 (fontset_get_font_group): Likewise.
2555 (Ffontset_info): Likewise.
2556
2557 * keymap.c (describe_vector): Adjusted for the change of
2558 char_table_ref_and_range. For char-table, put boundary between
2559 non-ASCII and 8-bit characters.
2560
2561 * print.c (print_object): For bool-vector, delete unnecessary
2562 check of ASCII_BYTE_P.
2563
9196133b
JR
25642008-11-26 Jason Rumney <jasonr@gnu.org>
2565
2566 * w32font.c (w32font_open_internal): Don't include external
9acef61c 2567 leading in font height. (Bug#879)
9196133b 2568
9f688acf
GM
25692008-11-26 Glenn Morris <rgm@gnu.org>
2570
2571 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
2572 redefinition with ifdef. (Bug#1383)
2573
90d19aff
AR
25742008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
2575
2576 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
2577
4ccfa1c0 25782008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
2579
2580 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
2581 New EmacsView methods.
2582 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
2583 Fixes bug #1048,1357,1414.
2584
25852008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
2586
2587 Fix bug #1362.
2588 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
2589 is not an indexed color.
2590 * nsterm.m (free_indexed_color): Add argument checking.
2591 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
2592
e7d5ecb3
CY
25932008-11-24 Chong Yidong <cyd@stupidchicken.com>
2594
2595 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
2596 Document confirm-after-completion value for
2597 minibuffer-completion-confirm.
2598
c285743c
JR
25992008-11-24 Jason Rumney <jasonr@gnu.org>
2600
2601 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
2602 warning.
2603
b0857706
JR
26042008-11-23 Jason Rumney <jasonr@gnu.org>
2605
2606 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
2607 restored before returning.
2608
2609 * w32font.c (check_face_name): New function.
2610 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 2611 fonts. (Bug#642)
b0857706 2612
ee50ff07
MR
26132008-11-22 Martin Rudalics <rudalics@gmx.at>
2614
2615 * buffer.c (Fswitch_to_buffer): Reword and mention new option
2616 confirm-nonexistent-file-or-buffer in doc-string.
2617
b8ff72fa
SM
26182008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
2619
2620 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
2621 Fix copy/paste typo. Add checks.
2622
cee53ed4
KH
26232008-11-21 Kenichi Handa <handa@m17n.org>
2624
2625 * coding.c (detect_coding_iso_2022): Reject invalid composition
2626 sequence.
2627 (DECODE_COMPOSITION_START): If the current source is the last
2628 block, and the current composition doesn't end, regard this
2629 sequence as invalid.
2630 (decode_coding_iso_2022): Handle invalid composition sequence.
2631
f6ef1e65
MR
26322008-11-20 Martin Rudalics <rudalics@gmx.at>
2633
2634 * window.c (coordinates_in_window): Don't return
2635 ON_VERTICAL_BORDER for the rightmost position of a mode/header
2636 line when the window is not the rightmost one. (Bug#1372)
2637
e08b1705
MR
26382008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
2639
2640 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
2641
ad98e89f
EZ
26422008-11-15 Eli Zaretskii <eliz@gnu.org>
2643
2644 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
2645 and bright_bg if noninteractive is non-zero.
2646
fb098a4b
CY
26472008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2648
2649 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
2650 x_draw_glyph_string_background.
2651
2652 * w32term.c (x_draw_glyph_string): Likewise.
2653
ce952b6e
CY
26542008-11-15 Chong Yidong <cyd@stupidchicken.com>
2655
2656 * xterm.c (x_draw_glyph_string): Stop drawing the background of
2657 the next glyph string once past the overhang width.
2658
2659 * nsterm.m (ns_draw_glyph_string): Likewise.
2660
2661 * w32term.c (x_draw_glyph_string): Likewise.
2662
26ea7079
CY
26632008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
2664
2665 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
2666 double file close.
2667
1c33c906
MR
26682008-11-14 Martin Rudalics <rudalics@gmx.at>
2669
2670 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
2671 dedicated status of window before attempting to display another
2672 buffer in it.
2673
8fc29035
JB
26742008-11-14 Juanma Barranquero <lekktu@gmail.com>
2675
2676 * msdos.c (Fmsdos_long_file_names):
2677 (syms_of_msdos) <dos-unsupported-char-glyph>:
2678 * dosfns.c (Fint86): Fix typos in docstrings.
2679
55fb4286
EZ
26802008-11-14 Eli Zaretskii <eliz@gnu.org>
2681
2682 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
2683
3fda0315
KY
26842008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
2685
2686 * puresize.h (BASE_PURESIZE): Increase to 1260000.
2687
7e849c17
CY
26882008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
2689
2690 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
2691
2692 * frame.h: Negative alpha means "don't touch".
2693
2694 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
2695
2696 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
2697
b9fd67bd
DN
26982008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
2699
2700 * hftctl.c:
2701 * chpdef.h:
2702 * acldef.h: Remove files used only for systems no longer supported.
2703
2704 * Makefile.in: Fix .o alphabetical ordering.
2705 (hftctl.o): Remove dependency, file removed.
2706 (keymap.o, print.o): Depend on charset.h.
2707
d5998e03
KH
27082008-11-10 Kenichi Handa <handa@m17n.org>
2709
2ae37cf0 2710 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 2711
be70e183
CY
27122008-11-08 Chong Yidong <cyd@stupidchicken.com>
2713
2714 * dired.c (file_name_completion): If completion_ignore_case is
2715 enabled, ignore case when checking completion-regexp-list.
2716
7cf94eac
EZ
27172008-11-08 Eli Zaretskii <eliz@gnu.org>
2718
2719 * vm-limit.c (get_lim_data): Fix last change.
2720
ee107a89
KH
27212008-11-08 Kenichi Handa <handa@m17n.org>
2722
2723 * character.c (Fget_byte): New function.
2724 (syms_of_character): Defsubr Fget_byte.
2725
5fd15622
CY
27262008-11-07 Chong Yidong <cyd@stupidchicken.com>
2727
2728 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
2729 cursor position is valid after scrolling.
2730
13d62fad
JB
27312008-11-06 Juanma Barranquero <lekktu@gmail.com>
2732
2733 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
2734
a1dd2936
GM
27352008-11-06 Glenn Morris <rgm@gnu.org>
2736
2737 * xterm.c (handle_one_xevent): Don't let popup menus cause
2738 mouse-autoselect-window related window switching. (Bug#1261)
2739
860cd236
CY
27402008-11-04 David Smith <davidsmith@acm.org> (tiny change)
2741
2742 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
2743
653a3150
AS
27442008-11-04 Andreas Schwab <schwab@suse.de>
2745
2746 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
2747
870f5cac
CY
27482008-11-03 Chong Yidong <cyd@stupidchicken.com>
2749
2750 * xfns.c (Fx_wm_set_size_hint): New function.
2751
1e02f3cb
MR
27522008-11-03 Martin Rudalics <rudalics@gmx.at>
2753
2754 * textprop.c (Fprevious_single_char_property_change): Return 0
2755 when there's no change in a string. (Bug#1301)
2756
e630dfc6
MR
27572008-11-02 Martin Rudalics <rudalics@gmx.at>
2758
2759 * frame.c (do_switch_frame): New argument NORECORD passed to
2760 Fselect_window.
2761 (Fselect_frame): New argument NORECORD passed to
2762 do_switch_frame.
2763 (Fset_frame_selected_window): New argument NORECORD passed to
2764 Fselect_frame.
2765 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
2766 in call of do_switch_frame.
2767 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
2768 Handle NORECORD argument in call of Fselect_frame.
2769 * lisp.h (do_switch_frame, Fselect_frame)
2770 (Fset_frame_selected_window): Adjust declarations.
2771 * window.c (select_frame_norecord): New function.
2772 (run_window_configuration_change_hook): Use it and call
2773 Fselect_frame with NORECORD set.
2774 (Fselect_window): Pass NORECORD to Fselect_frame.
2775 (Fset_window_configuration): Handle NORECORD argument in call of
2776 do_switch_frame.
2777 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
2778 Fset_frame_selected_window.
2779 * keyboard.c (command_loop_1): Handle NORECORD in call of
2780 Fselect_frame (currently ifdefd).
2781
9020b223
GM
27822008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
2783
2784 * emacs.c (USAGE2): Untabify.
2785
793ffee8
SM
27862008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
2787
2788 * composite.c (fill_gstring_header): Fix copy/paste typo.
2789
ab6d1131
MR
27902008-10-31 Martin Rudalics <rudalics@gmx.at>
2791
2792 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
2793 (Fother_window): Rename argument and rewrite doc-string.
2794 (select_window_norecord): Fix return value. (Bug#1276)
2795
601a9cf1
JB
27962008-10-30 Juanma Barranquero <lekktu@gmail.com>
2797
2798 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
2799 new frames overriding foreground for tooltips. Based on similar patch
2800 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
2801
813b0652
CY
28022008-10-29 Chong Yidong <cyd@stupidchicken.com>
2803
2804 * emacs.c (Fdaemon_initialized): Initialize nfd.
2805
4414f58f
MR
28062008-10-29 Martin Rudalics <rudalics@gmx.at>
2807
2808 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
2809 (Fwindow_text_height): Clarify doc-strings.
2810 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
2811 doc-string of window-scroll-functions.
2812
ecdcaa09
RS
28132008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
2814
2815 * category.c (syms_of_category): Fix typo in docstring.
2816
23fe745a
JB
28172008-10-28 Juanma Barranquero <lekktu@gmail.com>
2818
2819 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
2820 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
2821 Fix typos in docstrings.
2822
ff808935
DN
28232008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
2824
2825 * emacs.c (daemon_pipe): Make non-static.
2826 (IS_DAEMON): Move definition ...
2827 * lisp.h (IS_DAEMON): ... here.
2828 (daemon_pipe): Declare.
2829 (is_daemon): Remove.
2830 * dispnew.c (init_display): Use IS_DAEMON.
2831
fc012771
SM
28322008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
2833
2834 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
2835 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
2836
2837 * emacs.c (is_daemon): Remove.
2838 (main): Don't set is_daemon.
2839 (IS_DAEMON): New macro.
2840 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 2841 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
2842 parent exits.
2843 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
2844
d8bdbe6f
CY
28452008-10-27 Chong Yidong <cyd@stupidchicken.com>
2846
d1a072bf
CY
2847 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
2848 over-sized glyph, draw it with the default glyph width.
2849
e2e325aa
CY
2850 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
2851 glyph, draw it with the default glyph width.
2852
2853 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
2854 glyph, draw it with the default glyph width.
2855
d8bdbe6f
CY
2856 * xdisp.c (try_scrolling): When computing the distance from the
2857 scroll margin to PT, try moving some distance past the window
2858 bottom before giving up.
2859
7bfac547
MR
28602008-10-27 Martin Rudalics <rudalics@gmx.at>
2861
2862 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
2863 (Fset_window_buffer): Explain in doc-string that a window can be
2864 "strongly" dedicated to its buffer.
2865
4ff029f6
DN
28662008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
2867
2868 * emacs.c (daemon_name): New variable.
2869 (main): Deal with --daemon=SERVER_NAME.
2870 (Fdaemonp): Return a name if one was passed to --daemon.
2871
5790ef40
DN
28722008-10-26 Romain Francoise <romain@orebokech.com>
2873
f9bd0df9 2874 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
2875 (main): Create a pipe before forking, make the parent exit only after
2876 the child has closed its end of the pipe. Move closing the
2877 descriptors ...
2878 (Fdaemon_initialized): ... here. New function.
2879
f5385255
SM
28802008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
2881
4d632321
SM
2882 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
2883 the previous unoptimized table.
2884
f5385255
SM
2885 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
2886 the distinction between non-nil and non-t value of `dedicated'.
2887
6c56a0f3
CY
28882008-10-25 Chong Yidong <cyd@stupidchicken.com>
2889
2890 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 2891 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 2892
fec89261
MR
28932008-10-25 Martin Rudalics <rudalics@gmx.at>
2894
2895 * window.c (Fget_buffer_window, Fdelete_windows_on)
2896 (Freplace_buffer_in_windows): Make buffer argument optional and
2897 rename to buffer_or_name.
2898
34fcddd0
CY
28992008-10-24 Chong Yidong <cyd@stupidchicken.com>
2900
f5385255
SM
2901 * xdisp.c (handle_single_display_spec, handle_display_prop):
2902 Undo 2005-05-16 change.
34fcddd0
CY
2903 (handle_stop): Pop iterator if it's loaded with an empty string.
2904 (get_overlay_strings_1): Don't save iterator if it's loaded with
2905 an empty string (bug#1201).
2906
064766f2
KH
29072008-10-24 Kenichi Handa <handa@m17n.org>
2908
2909 * ftfont.c (ftfont_otf_features): Fix previous change.
2910 (ftfont_otf_capability): Check FeatureList.FeatureCount before
2911 calling ftfont_otf_features.
2912
f9bd0df9 29132008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
2914
2915 * font.c (font_match_p): Fix for the case that a vector of
2916 characters is in script-representative-chars.
2917
1dae9197
MA
29182008-10-24 Michael Albinus <michael.albinus@gmx.de>
2919
2920 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 2921 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
2922 (xd_read_queued_messages): Catch Qdbus_error from the macros.
2923 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
2924 macro. (Bug#1186).
2925
f9bd0df9 29262008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
2927
2928 * s/sol2-10.h: New file.
2929
878a4584
JB
29302008-10-23 Juanma Barranquero <lekktu@gmail.com>
2931
2932 * xdisp.c (fill_glyph_string): Fix typo in source (though the
2933 poor beast has survived 9+ years and the jump from xterm.c!).
2934
cd265ca6
MR
29352008-10-23 Martin Rudalics <rudalics@gmx.at>
2936
2937 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
2938 Reword doc-string.
f5385255 2939 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 2940
472a4dc9
JB
29412008-10-23 Juanma Barranquero <lekktu@gmail.com>
2942
2943 * character.c (syms_of_character) <script-representative-chars>:
2944 <unicode-category-table>: Doc fixes.
2945
159bd5a2
NF
29462008-10-23 Noah Friedman <friedman@splode.com>
2947
2948 * coding.c (make_conversion_work_buffer): Check that
2949 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
2950 Fget_buffer_create.
2951
49f9c344
KH
29522008-10-23 Kenichi Handa <handa@m17n.org>
2953
2954 * font.c (font_add_log): Check the values of extra properties.
2955
12bb3111
MR
29562008-10-22 Martin Rudalics <rudalics@gmx.at>
2957
2958 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
2959 Reword doc-string.
2960 (Fset_window_parameter): Use NILP.
2961 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 2962 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 2963
bbeb4e99
JB
29642008-10-22 Juanma Barranquero <lekktu@gmail.com>
2965
2966 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
2967
29682008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
2969
2970 * nsfns.m (ns_appkit_version): New function.
2971 (x-server-version): Use it.
2972 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
2973 (x-server-vendor): Don't check_ns().
2974
2975 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
2976
a9b555d3
JB
29772008-10-22 Juanma Barranquero <lekktu@gmail.com>
2978
2979 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
2980 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
2981
4626499f
KH
29822008-10-22 Kenichi Handa <handa@m17n.org>
2983
e3681952
KH
2984 * syntax.c (scan_words): Call word_boundary_p instead of comparing
2985 scripts.
2986
4626499f
KH
2987 * category.c (word_boundary_p): Check scripts instead of charset.
2988 Handle nil value in word-separating-categories and
2989 word-combining-categories.
2990 (syms_of_category): Fix docstrings of word-separating-categories
2991 and word-combining-categories.
2992
1560f91a
EZ
29932008-10-21 Eli Zaretskii <eliz@gnu.org>
2994
2995 * coding.c (Fencode_coding_region, Fdecode_coding_region)
2996 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
2997
f4668441
MR
29982008-10-21 Martin Rudalics <rudalics@gmx.at>
2999
3000 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
3001 Rename arg "buffer" to "buffer_or_name".
3002 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
3003 it optional.
3004 (no_switch_window): Remove since the return value is not used.
a9b555d3 3005 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
3006 Consider window as dedicated when Fwindow_dedicated_p returns a
3007 non-nil value.
3008 * lisp.h: Remove prototype for no_switch_window.
3009
fd75ddb2
JD
30102008-10-21 Jan Djärv <jan.h.d@swipnet.se>
3011
3012 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 3013 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 3014
07295713
KH
30152008-10-21 Kenichi Handa <handa@m17n.org>
3016
3017 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
3018 check Vlatin_extra_code_table.
3019
712adc82
EZ
30202008-10-20 Eli Zaretskii <eliz@gnu.org>
3021
3022 * fileio.c (Fset_file_modes): Doc fix.
3023
f549eb0b
MA
30242008-10-19 Michael Albinus <michael.albinus@gmx.de>
3025
3026 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
3027 in arrays.
3028
aac0c6e3
MR
30292008-10-19 Martin Rudalics <rudalics@gmx.at>
3030
3031 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
3032 Mention kill-buffer in doc-string.
3033 (Fset_window_buffer): Reinsert tem check removed in last commit.
3034 (Fenlarge_window, Fshrink_window): Have argument names and
3035 doc-string follow Elisp manual more closely.
3036
30372008-10-18 Eli Zaretskii <eliz@gnu.org>
3038
3039 * fileio.c (Fset_file_modes): Doc fix.
3040
30412008-10-18 Martin Rudalics <rudalics@gmx.at>
3042
3043 * window.c (Fwindow_width, Fset_window_start)
3044 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
3045 (Fdelete_windows_on, Freplace_buffer_in_windows):
3046 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
3047 (Fwindow_dedicated_p): Make window argument optional.
3048 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
3049 (Fset_window_buffer): Respect any non-nil dedicated value for
3050 window. Rename "buffer" argument to "buffer_or_name".
3051
30522008-10-18 Ulrich Mueller <ulm@gentoo.org>
3053
3054 * m/sh3.h: New file, machine description for SuperH.
3055
30562008-10-17 Martin Rudalics <rudalics@gmx.at>
3057
3058 * window.c (Fsplit_window): Rename arg horflag to horizontal.
3059
30602008-10-17 Kenichi Handa <handa@m17n.org>
3061
3062 * ftfont.c (ftfont_otf_features): Fix indexing
3063 gsub_gpos->FeatureList.Feature. Check the validity of indices.
3064
30652008-10-16 Magnus Henoch <mange@freemail.hu>
3066
3067 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
3068 (Fdbus_call_method_asynchronously): Ditto.
3069 This change makes C-h f display the argument list.
3070
30712008-10-16 Chong Yidong <cyd@stupidchicken.com>
3072
3073 * fileio.c (Fexpand_file_name): Doc fix.
3074
3075 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
3076 of :foreground and :background equivalent to unspecified (20.x
3077 compatibility).
3078
30792008-10-15 Eli Zaretskii <eliz@gnu.org>
3080
3081 * buffer.c (syms_of_buffer): Doc fix.
3082
30832008-10-14 Kenichi Handa <handa@m17n.org>
3084
3085 * font.c (font_clear_prop): When clearing font width, clear the
3086 average width field too.
3087
30882008-10-12 Andreas Schwab <schwab@suse.de>
3089
3090 * ftfont.c (ftfont_shape_by_flt): Make static.
3091 * ftfont.h (ftfont_shape_by_flt): Don't declare.
3092
3093 * font.c: Don't include <m17n-flt.h>.
3094
30952008-10-10 Eli Zaretskii <eliz@gnu.org>
3096
3097 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
3098
30992008-10-09 Eli Zaretskii <eliz@gnu.org>
3100
3101 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
3102 away code.
3103
31042008-10-09 Chong Yidong <cyd@stupidchicken.com>
3105
3106 * dispnew.c (update_text_area): Avoid looping due to large glyph
3107 overhangs (bug#1070).
3108
31092008-10-09 Kenichi Handa <handa@m17n.org>
3110
3111 * fontset.c (face_for_char): If face->fontset is negative, just
3112 return ascii_face.
3113
f5385255
SM
3114 * font.c (font_delete_unmatched): Fix previous change.
3115 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
3116
31172008-10-09 Martin Rudalics <rudalics@gmx.at>
3118
3119 * frame.c (Fraise_frame): On text-only terminals select frame in
3120 order to make it visible. (Bug#1061)
3121
31222008-10-08 Chong Yidong <cyd@stupidchicken.com>
3123
3124 * fontset.c (fontset_find_font): Check frame validity.
3125
31262008-10-07 Chong Yidong <cyd@stupidchicken.com>
3127
a9b555d3 3128 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
3129 (xg_display_close): Allow Emacs to close all displays (bug#985).
3130
31312008-10-06 Andreas Schwab <schwab@suse.de>
3132
f5385255 3133 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
3134
31352008-10-06 Chong Yidong <cyd@stupidchicken.com>
3136
f5385255 3137 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 3138
a9b555d3 3139 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
3140
3141 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
3142 during initialization.
3143
31442008-10-04 Eli Zaretskii <eliz@gnu.org>
3145
3146 * xdisp.c (redisplay_internal): If frame switched, redisplay the
3147 whole thing on MSDOS frames as well as on a TTY.
3148
3149 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
3150 well as for TTY.
3151 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
3152 well as on a TTY.
3153
3154 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
3155 as well as for TTY.
3156
3157 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
3158
3159 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
3160 MSDOS frames as well.
3161
31622008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
3163
3164 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
3165 correct arguments.
b71ac3dd 3166 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
3167
31682008-10-03 Glenn Morris <rgm@gnu.org>
3169
3170 * emacs.c (USAGE1): Add --daemon.
3171
31722008-10-02 Eli Zaretskii <eliz@gnu.org>
3173
3174 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
3175 100, so it's in percents as advertised.
3176
31772008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
3178
3179 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
3180 (ns_output.current_cursor, ns_output.desired_cursor)
3181 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
3182 (FRAME_NEW_CURSOR_COLOR): Remove.
3183
3184 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 3185 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
3186 enumeration (HOLLOW_BOX_CURSOR, etc.).
3187
3188 * nsterm.m (ns_frame_rehighlight): Remove commented code.
3189 (draw_window_cursor): Simplify code.
f5385255
SM
3190 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
3191 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 3192 updates manually.
a9b555d3
JB
3193 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
3194 Use core Emacs cursor types.
aac0c6e3 3195
b8ff72fa 3196 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
3197
31982008-10-02 Martin Rudalics <rudalics@gmx.at>
3199
3200 * process.c (Faccept_process_output): Fix doc-string.
3201
32022008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
3203
3204 * gmalloc.c (__sbrk): Also define for uClibc.
3205
3206 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
3207 for uClibc.
3208
32092008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
3210
3211 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
3212 styles.
3213 (nsfont_open): Reenable the cache.
3214
32152008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
3216
3217 * font.c (font_matching_entity): Reflect ATTRS in font selection.
3218 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
3219
32202008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
3221
3222 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
3223 a suspended terminal.
3224
32252008-09-30 Michael Albinus <michael.albinus@gmx.de>
3226
3227 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
3228
32292008-09-30 Eli Zaretskii <eliz@gnu.org>
3230
3231 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
3232
32332008-09-30 Chong Yidong <cyd@stupidchicken.com>
3234
3235 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
3236 in a continued line coincides with a line beginning.
3237
32382008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
3239
3240 * nsfont.m (nsfont_trait_distance): Fix bug.
3241 (nsfont_list): Return a list rather than a vector (syncs with Handa
3242 changes of 2008-05-14).
3243 (nsfont_open): Improve logging.
3244
32452008-09-29 Andreas Schwab <schwab@suse.de>
3246
3247 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
3248
32492008-09-28 Martin Rudalics <rudalics@gmx.at>
3250
3251 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
3252 name as char-resolve-modifiers.
3253 Reported by: Markus Triska <markus.triska@gmx.at>
3254
32552008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
3256
3257 * dispnew.c (init_display): Return earlier when running as a daemon.
3258
32592008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
3260
3261 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
3262
32632008-09-27 Eli Zaretskii <eliz@gnu.org>
3264
3265 * composite.c (Fcomposition_get_gstring)
3266 (Fcompose_region_internal, Fcompose_string_internal)
3267 (Ffind_composition_internal): Doc fix.
3268 (syms_of_composite) <compose-chars-after-function>: Doc fix.
3269 (syms_of_composite) <auto-composition-function>: Doc fix.
3270 (syms_of_composite) <composition-function-table>: Doc fix.
3271
32722008-09-25 Chong Yidong <cyd@stupidchicken.com>
3273
3274 * search.c (wordify): New argument for lax word-ends.
3275 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
3276
32772008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
3278
3279 * lisp.h (is_daemon): Declare.
3280 * dispnew.c (init_display): Do not try to initialize the terminal
3281 when running as a daemon.
3282
32832008-09-22 Chong Yidong <cyd@stupidchicken.com>
3284
3285 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
3286 x_display_pixel_height.
3287
32882008-09-22 Martin Rudalics <rudalics@gmx.at>
3289
3290 * undo.c (record_point): Don't call Fundo_boundary for first
3291 change. (Bug#731)
3292
32932008-09-22 Juanma Barranquero <lekktu@gmail.com>
3294
3295 * emacs.c (Fdaemonp): Doc fix.
3296
32972008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
3298
3299 * emacs.c (main): Place #ifdef in the proper place.
3300
33012008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
3302
3303 * emacs.c (standard_args): Add --daemon.
3304 (main): Disconnect from the terminal when --daemon is passed.
3305 (is_daemon): New variable.
3306 (Fdaemonp): New function.
3307 (syms_of_emacs): Defsubr it.
3308
33092008-09-20 Chong Yidong <cyd@stupidchicken.com>
3310
3311 * xdisp.c (get_next_display_element): Handle string display
3312 correctly when checking for the end of a box run.
3313
33142008-09-20 Glenn Morris <rgm@gnu.org>
3315
3316 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
3317 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
3318 (Frename_file): Avoid copying to trash if a rename involves
3319 a delete. (Bug#964).
3320
33212008-09-20 Eli Zaretskii <eliz@gnu.org>
3322
3323 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
3324 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
3325 frames as well as termcap frames.
3326 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
3327 get_named_tty.
3328
33292008-09-19 Eli Zaretskii <eliz@gnu.org>
3330
3331 * process.c (procfs_system_process_attributes): Fix cmdline in
3332 case /proc/PID/cmdline is empty.
3333
3334 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
3335 x_display_pixel_height.
3336
33372008-09-19 Juanma Barranquero <lekktu@gmail.com>
3338
3339 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
3340
3341 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
3342 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
3343
33442008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
3345
3346 * dispextern.h (struct it): Move line_wrap away from the middle of
3347 bitfields. Move voffset in struct iterator_stack_entry after the
3348 bitfields. Move tab_width near after another short.
3349
33502008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
3351
3352 * frame.h (struct frame): Move alpha from the middle of bitfields.
3353
3354 * window.h (struct window): Move frozen_window_start_p after the
3355 rest of the bitfields to reduce padding.
3356
33572008-09-18 Chong Yidong <cyd@stupidchicken.com>
3358
3359 * xterm.h (x_display_info): Remove `height' and `width' members.
3360
3361 * nsterm.h (ns_display_info): Remove `height' and `width' members.
3362
3363 * w32term.h (w32_display_info): Remove `height', `width',
3364 `height_in', and `width_in' members.
3365
b8ff72fa
SM
3366 * xterm.c (x_display_pixel_height, x_display_pixel_width):
3367 New functions.
aac0c6e3
MR
3368 (x_calc_absolute_position): Use them.
3369 (x_term_init): Omit removed `height' and `width' members.
3370
b8ff72fa
SM
3371 * w32term.c (x_display_pixel_height, x_display_pixel_width):
3372 New functions.
aac0c6e3
MR
3373 (w32_read_socket, x_calc_absolute_position): Use them.
3374 (w32_initialize_display_info, w32_term_init): Omit removed members
3375 of w32_display_info.
3376
b8ff72fa
SM
3377 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
3378 New functions.
3379 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 3380
b8ff72fa
SM
3381 * xterm.c (x_display_pixel_height, x_display_pixel_width):
3382 New functions.
aac0c6e3
MR
3383 (x_calc_absolute_position): Use them.
3384 (x_term_init): Omit removed `height' and `width' members.
3385
3386 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
3387 (compute_tip_xy):
3388 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
3389 * xmenu.c (menu_position_func): Use x_display_pixel_height and
3390 x_display_pixel_width.
3391
33922008-09-18 Kenichi Handa <handa@m17n.org>
3393
3394 * composite.c (fill_gstring_header): Don't check FROM and TO here.
3395 (composition_compute_stop_pos): Fix handling of static composition.
3396 (Fcomposition_get_gstring): Check FROM and TO at first.
3397
33982008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
3399
46e722a9 3400 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
3401 mixup (YAILOM).
3402
34032008-09-17 Chong Yidong <cyd@stupidchicken.com>
3404
3405 * indent.c (Fvertical_motion): Use position reported by iterator
3406 instead of PT for determining screen motion (bug#943).
3407
34082008-09-17 Romain Francoise <romain@orebokech.com>
3409
3410 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
3411
34122008-09-17 Kenichi Handa <handa@m17n.org>
3413
3414 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
3415
3416 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
3417 if necessary.
3418
34192008-09-16 Kenichi Handa <handa@m17n.org>
3420
3421 * coding.c (make_conversion_work_buffer): Avoid calling
3422 Fget_buffer_create if it is not necessary.
3423
34242008-09-15 Martin Rudalics <rudalics@gmx.at>
3425
3426 * window.c (Fselect_window): Don't update window_select_count and
3427 use_time when norecord is not nil.
3428
34292008-09-14 Kenichi Handa <handa@m17n.org>
3430
3431 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
3432 specpdl_ptr.
3433
34342008-09-12 Kenichi Handa <handa@m17n.org>
3435
3436 * indent.c (scan_for_column): Don't handle automatic composition
3437 if the current buffer is not associated with a window.
3438
3439 * composite.c (composition_reseat_it): If the current buffer is
3440 not associated with a window, ignore the automatic composition.
3441 (find_automatic_composition): Likewise.
3442
34432008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
3444
3445 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
3446 (Fgpm_mouse_stop): Use it.
3447 * termhooks.h (close_gpm): Declare.
3448 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
3449 connection if Gpm_GetEvent fails.
3450
3451 * window.c (set_window_buffer): Always preserve current-buffer.
3452
34532008-09-12 Glenn Morris <rgm@gnu.org>
3454
3455 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
3456
34572008-09-11 Glenn Morris <rgm@gnu.org>
3458
3459 * charset.c (charset-map-path): Doc fix.
3460
34612008-09-10 Kenichi Handa <handa@m17n.org>
3462
3463 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
3464
3465 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
3466 compose a grapheme cluster with the preceding base glyph.
3467
3468 * composite.c (composition_compute_stop_pos): Fix previous change.
3469 Reset cmp_it->id to -1 at first.
3470
34712008-09-10 Glenn Morris <rgm@gnu.org>
3472
3473 * Makefile.in (character.o, chartab.o): Fix config.h typo.
3474
34752008-09-09 Chong Yidong <cyd@stupidchicken.com>
3476
3477 * keyboard.c (read_key_sequence): Reapply translation maps when
3478 switching keyboards.
3479
34802008-09-09 Kenichi Handa <handa@m17n.org>
3481
3482 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
3483 characters.
3484
3485 * composite.c (FORWARD_CHAR): Fix calculation
3486 of (POSITION).pos_byte.
3487 (composition_compute_stop_pos): Limit the search of composition to
3488 at most 500 characters ahead. If we reach the limit or find a
3489 newline, set cmp_it->ch to -2 and return 0.
3490 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
3491
34922008-09-08 Kenichi Handa <handa@m17n.org>
3493
3494 * indent.c (Fvertical_motion): Be sure to set
3495 it_overshoot_expected if it.cmp_it.id is non-negative.
3496
34972008-09-07 Andreas Schwab <schwab@suse.de>
3498
3499 * callproc.c (Fcall_process): Don't hold references to string data
3500 across garbage collection. Move initialisation of new_argv down
3501 to avoid compiler bug.
3502
35032008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
3504
3505 * process.c (Fsystem_process_attributes): Doc fix.
3506
35072008-09-07 Chong Yidong <cyd@stupidchicken.com>
3508
3509 * callproc.c (Fcall_process): Canonicalize current directory name.
3510
3511 * xdisp.c (move_it_to): When moving by vpos, ensure that the
3512 iterator advances to the next line if the current line ends in a
3513 continued tab.
3514
35152008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
3516
3517 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
3518 member to point to cmp_from.
3519
3520 * xdisp.c: Doc fix for references to gidx data member.
3521
35222008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
3523
3524 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
3525
35262008-09-07 Kenichi Handa <handa@m17n.org>
3527
3528 * composite.c (FORWARD_CHAR): Check STOP after
3529 incrementing (POSITION).pos.
3530
35312008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
3532
3533 * process.c (Fsystem_process_attributes): Doc fix.
3534
35352008-09-06 Chong Yidong <cyd@stupidchicken.com>
3536
3537 * keyboard.c (Ftop_level): Doc fix.
3538
35392008-09-06 Eli Zaretskii <eliz@gnu.org>
3540
3541 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
3542 minibuffer, don't let lower part of menu invade the echo area.
3543
3544 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
3545 "char *q" to access menu text and advance through it. Revert the
3546 change that displayed ">" instead of ASCII character 0x10.
3547
35482008-09-05 Eli Zaretskii <eliz@gnu.org>
3549
3550 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
3551 toggle boxes and radio buttons on MS-DOS as well.
3552
35532008-09-05 Kenichi Handa <handa@m17n.org>
3554
3555 * composite.c (autocmp_chars): Check lookback count.
3556 (composition_compute_stop_pos): Set cmp_it->lookback.
3557 (composition_reseat_it): Check lookback count.
3558 (struct position_record): New struct.
3559 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
3560 (find_automatic_composition): New function.
3561 (composition_adjust_point): Use find_automatic_composition.
3562
3563 * dispextern.h (struct composition_it): New member lookback.
3564
35652008-09-02 Chong Yidong <cyd@stupidchicken.com>
3566
3567 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
3568 if moving by a single line.
3569
35702008-09-02 Andreas Schwab <schwab@suse.de>
3571
3572 * xterm.c (x_delete_display): Fix merge error.
3573
3574 * fileio.c (Fexpand_file_name): Remove unused variables.
3575
35762008-09-02 Eli Zaretskii <eliz@gnu.org>
3577
3578 * fileio.c (Fexpand_file_name): Copy argument `name' into local
3579 storage on all platforms, not just on DOS_NT.
3580
35812008-09-02 Jason Rumney <jasonr@gnu.org>
3582
b8ff72fa
SM
3583 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
3584 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
3585
35862008-09-01 Chong Yidong <cyd@stupidchicken.com>
3587
3588 * xfaces.c (Finternal_set_alternative_font_family_alist)
3589 (Finternal_set_alternative_font_registry_alist): Properly copy
3590 entire alist structure.
3591
35922008-09-01 Kenichi Handa <handa@m17n.org>
3593
d66c0241 3594 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 3595 representative chars of the script is a vector.
d66c0241
JB
3596 (ftfont_list): Handle the case where the representative chars of
3597 the script is a vector.
aac0c6e3
MR
3598
3599 * character.c (syms_of_character): Docstring of
3600 script-representative-chars fixed.
3601
36022008-08-31 Eli Zaretskii <eliz@gnu.org>
3603
3604 * msdos.c (BUILD_CHAR_GLYPH): New macro.
3605 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
3606 the menu. Allocate larger buffer for `text', to account for
3607 possible ^C characters.
3608
36092008-08-31 Martin Rudalics <rudalics@gmx.at>
3610
3611 * xdisp.c (prepare_menu_bars): Don't call
3612 Vwindow_size_change_functions with arg Qt.
3613
36142008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
3615
3616 * font.h (font_range):
3617 * fileio.c (report_file_error):
46e722a9
SM
3618 * composite.c (composition_update_it): Yet another int/Lisp_Object
3619 mixup (YAILOM).
aac0c6e3
MR
3620
36212008-08-30 Glenn Morris <rgm@gnu.org>
3622
3623 * data.c (Fmake_variable_frame_local): Doc fix.
3624
3625 * frame.c (Fmodify_frame_parameters): Doc fix.
3626
36272008-08-30 Eli Zaretskii <eliz@gnu.org>
3628
3629 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
3630 needed by GetTokenInformation.
3631 (w32_system_process_attributes): Check return values of all system
3632 APIs.
3633
3634 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
3635 only when the state changes.
3636 (IT_update_begin, IT_update_end): Add termscript trace.
3637
3638 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
3639 clipboard is unavailable. Set dst to NULL if it doesn't point to
3640 malloc'ed data.
3641 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
3642 passing random values to xfree.
3643
3644 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 3645 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
3646
36472008-08-29 Jason Rumney <jasonr@gnu.org>
3648
3649 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
3650
36512008-08-29 Eli Zaretskii <eliz@gnu.org>
3652
3653 * composite.c (fill_gstring_body): Avoid compiler warnings.
3654
3655 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
3656 LGLYPH_SET_CODE to avoid compiler warnings.
3657
2ae37cf0 3658 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
3659
3660 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
3661
3662 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
3663 LGLYPH_SET_CODE.
3664
36652008-08-29 Kenichi Handa <handa@m17n.org>
3666
3667 * fileio.c (report_file_error): Don't downcase the first character
3668 of errstring if it is still unibyte.
3669
36702008-08-29 Kenichi Handa <handa@m17n.org>
3671
3672 These changes are to re-implement the automatic composition so
3673 that it doesn't use text properties.
3674
3675 * Makefile.in (ftfont.o): Depend on composite.h.
3676 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
3677
3678 * character.h (Vunicode_category_table): Extern it.
3679
3680 * character.c (Vunicode_category_table): New variable.
3681 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
3682
3683 * chartab.c (optimize_sub_char_table): Perform more greedy
3684 optimization.
3685
b8ff72fa
SM
3686 * composite.h (enum composition_method):
3687 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
3688 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
3689 (Vcomposition_function_table): Extern it.
3690 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
3691 (composition_gstring_put_cache, composition_gstring_from_id)
3692 (composition_gstring_p, composition_gstring_width)
3693 (composition_compute_stop_pos, composition_reseat_it)
3694 (composition_update_it, composition_adjust_point): Extern them.
3695 (Fcomposition_get_gstring): EXFUN it.
3696
d66c0241 3697 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
3698 (Vcomposition_function_table)
3699 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
3700 (gstring_hash_table, gstring_work, gstring_work_headers):
3701 New variables.
aac0c6e3
MR
3702 (gstring_lookup_cache, composition_gstring_put_cache)
3703 (composition_gstring_from_id, composition_gstring_p)
3704 (composition_gstring_width, fill_gstring_header)
3705 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
3706 (composition_reseat_it, composition_update_it)
b8ff72fa 3707 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
3708 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
3709 and gstring_work_headers. DEFVAR_LISP composition-function-table.
3710 Defsubr compostion_get_gstring.
3711
3712 * dispextern.h (struct glyph): New union u.cmp. Delete the member
3713 cmp_id.
3714 (struct glyph_string): Delete the member gidx. New members
3715 cmp_id, cmp_from, and cmp_to.
3716 (enum it_method): Delete GET_FROM_COMPOSITION.
3717 (struct composition_it): New struct.
3718 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
3719 Delete c, len, cmp_id, cmp_len in u.comp.
3720
3721 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 3722 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 3723 (enum lglyph_indices): Likewise.
b8ff72fa 3724 (font_range): Adjust extern.
aac0c6e3
MR
3725 (font_fill_lglyph_metrics): Extern it.
3726
3727 * font.c (QCf): New variable.
3728 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
3729 (font_prepare_composition): Delete this function.
3730 (font_range): Type and arguments changed.
3731 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
3732 (font_fill_lglyph_metrics): New function.
b8ff72fa 3733 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 3734 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
3735 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
3736 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
3737
3738 * fontset.h (font_for_char): Extern it.
3739
3740 * fontset.c (font_for_char): New function.
3741
3742 * ftfont.c: Include composite.h.
3743 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 3744 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
3745
3746 * indent.c: Include composite.h and dispextern.h.
3747 (check_composition): Delete this function.
3748 (scan_for_column): Handle composition by
3749 composition_compute_stop_pos, composition_reseat_it, and
3750 composition_update_it.
3751 (compute_motion): Likewise.
3752 (Fvertical_motion): Fix checking of composition.
3753
3754 * keyboard.c (adjust_point_for_property): Check composition by
3755 composition_adjust_point.
3756
b8ff72fa 3757 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
3758 struct glyph_string.
3759
b8ff72fa
SM
3760 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
3761 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
3762 struct glyph.
3763 (produce_composite_glyph): Likewise.
3764
b8ff72fa
SM
3765 * w32term.c (x_draw_composite_glyph_string_foreground):
3766 Adjust for the change of struct glyph_string.
aac0c6e3
MR
3767 (x_draw_glyph_string): Likewise.
3768
3769 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
3770 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
3771
3772 * xdisp.c: Include font.h.
3773 (it_props): Delete the entry for Qauto_composed.
3774 (init_iterator): Initialize it->cmp_it.id to -1.
3775 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 3776 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
3777 (handle_auto_composed_prop): Delete it.
3778 (handle_composition_prop): Handle only static composition.
3779 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
3780 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 3781 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
3782 (pop_it): Likewise.
3783 (get_next_element): Delete next_element_from_composition.
3784 (CHAR_COMPOSED_P): New macro.
3785 (get_next_display_element): For automatic composition, get a face
3786 from the font in the glyph-string.
3787 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 3788 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
3789 (next_element_from_string): Check if the character at the current
3790 position is composed by CHAR_COMPOSED_P.
3791 (next_element_from_buffer): Likewise.
d66c0241
JB
3792 (next_element_from_composition): Adjust for the change of struct it.
3793 Update it->cmp_it.
b8ff72fa
SM
3794 (dump_glyph): Adjust for the change of struct glyph.
3795 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
3796 it and struct glyph. Don't handle automatic composition here.
3797 (fill_gstring_glyph_string): New function.
3798 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 3799 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
3800 (BUILD_GSTRING_GLYPH_STRING): New macro.
3801 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
3802 automatic composition.
b8ff72fa 3803 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 3804 struct glyph.
b8ff72fa 3805 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 3806
b8ff72fa 3807 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
3808 the change of struct glyph_string.
3809 (x_draw_glyph_string): Likewise.
3810
38112008-08-29 Glenn Morris <rgm@gnu.org>
3812
3813 * buffer.c (word-wrap): Doc fix.
3814 * xdisp.c (truncate-partial-width-windows): Doc fix.
3815 Increase default to 50.
3816
38172008-08-29 Chong Yidong <cyd@stupidchicken.com>
3818
3819 * xdisp.c (update_tool_bar_unwind): New function.
3820 (update_tool_bar): Temporarily set selected frame before building
3821 tool-bar items.
3822
38232008-08-28 Michael Albinus <michael.albinus@gmx.de>
3824
3825 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
3826 snprintf, respectively.
3827 (xd_append_arg): Convert strings with Fstring_make_unibyte.
3828
38292008-08-28 Chong Yidong <cyd@stupidchicken.com>
3830
3831 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
3832 LDFLAGS to GNUstep CC invocation.
3833
38342008-08-27 Chong Yidong <cyd@stupidchicken.com>
3835
3836 * indent.c (Fvertical_motion): Revert last change. Handle the
3837 general case where we are moving forward, and PT spans multiple
3838 screen lines.
3839
3840 * eval.c (find_handler_clause): Temporarily increase
3841 max-lisp-eval-depth while printing the backtrace buffer, to
3842 guarantee that help-mode code can run.
3843
38442008-08-27 Eli Zaretskii <eliz@gnu.org>
3845
3846 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
3847 colors under -rv.
3848 (IT_set_frame_parameters): Don't swap foreground and background
3849 colors if `(reverse . t)' is present in the frame properties.
3850 (internal_terminal_init): Call init_frame_faces only for the
3851 initial frame.
3852
38532008-08-27 Andreas Schwab <schwab@suse.de>
3854
3855 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
3856
38572008-08-27 Andreas Schwab <schwab@suse.de>
3858
3859 * search.c (search_buffer): Set char_base to zero only at the end.
3860
38612008-08-27 Kenichi Handa <handa@m17n.org>
3862
b8ff72fa 3863 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
3864
38652008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
3866
3867 * xterm.c (x_term_init): Temporarily hide the partially
3868 initialized terminal while calling vendor-specific-keysyms.
3869
38702008-08-26 Eli Zaretskii <eliz@gnu.org>
3871
3872 * msdos.c (internal_terminal_init): Most initializations done only
3873 once, especially initial_screen_colors[] and termscript open.
3874
38752008-08-26 Chong Yidong <cyd@stupidchicken.com>
3876
3877 * eval.c (Fcondition_case): Doc fix.
3878
3879 * widgetprv.h (EmacsFramePart): Change font member to the new font
3880 struct.
3881
3882 * widget.c: Include character.h and font.h for XSETFONT.
3883 (setup_frame_gcs): Compute X font id from font struct, just once.
3884
38852008-08-26 Eli Zaretskii <eliz@gnu.org>
3886
3887 * term.c (get_named_tty): Fix last change.
3888
38892008-08-26 Chong Yidong <cyd@stupidchicken.com>
3890
3891 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 3892 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
3893
38942008-08-25 Eli Zaretskii <eliz@gnu.org>
3895
3896 * frame.c (do_switch_frame): Mark previously displayed frame as
3897 obscured for FRAME_MSDOS_P frames as well.
3898
38992008-08-24 Eli Zaretskii <eliz@gnu.org>
3900
3901 * frame.c (make_terminal_frame): Initialize f->terminal,
3902 f->terminal->reference_count, and scroll bars on MS-DOS as well.
3903 Set the top frame to newly created frame.
3904 (Fmake_terminal_frame): Reuse the_only_display_info.
3905
3906 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
3907 estimating available memory.
3908
b97439ce 39092008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
3910
3911 * nsterm.m (ns_draw_window_cursor): Don't call
3912 NSDisableScreenUpdates and NSEnableScreenUpdates on
3913 non-NS_IMPL_COCOA systems.
3914
39152008-08-23 Andreas Schwab <schwab@suse.de>
3916
3917 * process.c (procfs_system_process_attributes): Fix use of
3918 uninitialized variables.
3919
39202008-08-23 Eli Zaretskii <eliz@gnu.org>
3921
3922 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
3923
3924 * dispnew.c (init_display): Remove MS-DOS specific conditions for
3925 calling tty-set-up-initial-frame-faces.
3926
b8ff72fa
SM
3927 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
3928 Allow MSDOS frames along with X frames.
aac0c6e3
MR
3929
3930 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
3931 addition to output_termcap.
3932
3933 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
3934
3935 * termchar.h (FRAME_TTY): Support output_msdos_raw.
3936 (struct tty_display_info) [MSDOS]: Add fields related to mouse
3937 highlight.
3938
3939 * process.c [!subprocesses]: Define QCname.
3940 (syms_of_process): Intern and staticpro it.
3941
3942 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
3943 Adjust for changes in encoding/decoding routines.
3944 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
3945 encode_coding and decode_coding.
3946
b8ff72fa 3947 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
3948
3949 * dosfns.c: Include frame.h before termhooks.h.
3950 (dos_cleanup): Use CURTTY ()->termscript instead of a global
3951 variable termscript.
3952
3953 * s/msdos.h (USER_FULL_NAME): Define.
3954 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
3955
3956 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
3957 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
3958 pw->pw_gecos.
3959
3960 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
3961 SELECTED_FRAME as additional (1st) argument.
3962 (tty_read_avail_input): Handle output_msdos_raw in
3963 addition to output_termcap.
3964
3965 * msdos.c: Include frame.h before termhooks.h.
3966 (mouse_on, mouse_off, mouse_moveto, mouse_init)
3967 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
3968 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
3969 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
3970 (IT_set_terminal_modes, IT_reset_terminal_modes)
3971 (IT_set_frame_parameters): Use tty->termscript instead of a global
3972 variable termscript.
3973 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
3974 global variable terminal_coding. Don't refer to
3975 Vnonascii_translation_table.
3976 (internal_terminal_init): Set Vwindow_system in current_kboard.
3977 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
3978 Announce date and time of session start, if termscript is open.
3979 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
3980 term.c:init_tty). Open termscript only of not already open.
3981 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
3982 here instead of dos_ttraw. Don't initialize display if this is an
3983 initial tty. Don't set FRAME_FONT.
3984 (Vwindow_system_version): Bump to 23.
3985 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
3986 is available, set up mouse_position_hook.
3987 (dos_ttraw, IT_set_terminal_modes): If called with initial
3988 terminal, do nothing.
3989 (IT_set_frame_parameters): Handle the Qtty_type frame
3990 parameter by calling internal_terminal_init.
3991 (dos_set_window_size, show_mouse_face)
3992 (clear_mouse_face, IT_note_mode_line_highlight)
3993 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
3994 (dos_rawgetc): Use tty_display_info instead of x_display_info.
3995 (initialize_msdos_display): New function.
3996 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
3997 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
3998 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
3999 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 4000 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
4001 (request_sigio, unrequest_sigio): Don't define, now defined on
4002 sysdep.c.
4003 (IT_write_glyphs): Rewrite to use encode_terminal_code.
4004
4005 * term.c [MSDOS]: Include msdos.h.
4006 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
4007 conditional to DOS_NT. Allow only one call to this function in a
4008 session. Don't allocate a new struct tty_display_info; instead,
4009 reuse the_only_display_info. Call get_tty_size to get screen
4010 dimensions. Call init_baud_rate to set bad_rate.
4011 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
4012 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 4013 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
4014 (get_tty_terminal, get_named_tty, Ftty_type)
4015 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
4016 output_termcap.
b8ff72fa
SM
4017 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
4018 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 4019 only when subprocesses are supported.
aac0c6e3
MR
4020
4021 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
4022 f->output_data.x.
4023 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
4024 terminal devices.
4025
5582fbc7 4026 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
4027 x_output.
4028 (FRAME_FONT): Use output_data.tty.
4029 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
4030 (struct x_display_info): Rename from display_info. Update all users in
4031 msdos.c.
aac0c6e3 4032 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 4033 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
4034 (dos_ttraw): Update prototype.
4035
4036 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
4037 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
4038
40392008-08-23 Jason Rumney <jasonr@gnu.org>
4040
4041 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
4042 (fn_TIFFSetDirectory): New library function used.
4043 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
4044 (tiff_load): Use :index to select among multiple images. Set count
4045 property when multiple images exist.
4046 (gif_format): Use :index, not :image.
4047
40482008-08-23 Chong Yidong <cyd@stupidchicken.com>
4049
4050 * xdisp.c (try_scrolling): Check INT_MAX instead of
4051 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
4052 to obtain INT_MAX.
4053
40542008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
4055
4056 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
4057
40582008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
4059
4060 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
4061 GNUstep library location.
4062
40632008-08-21 Chong Yidong <cyd@stupidchicken.com>
4064
4065 * xfaces.c (x_update_menu_appearance): Check validity of menu font
4066 before using it.
4067
4068 * puresize.h (BASE_PURESIZE): Increase to 1250000.
4069
40702008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4071
4072 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
4073 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
4074 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
4075 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
4076 (EmacsApp-cursor_blink_handler): Remove declaration.
4077 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
4078 match 01 Feb 2008 changes in xterm.c.
4079 (ns_read_socket): Add cast to avoid warning.
4080 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
4081 GNUstep.
4082
40832008-08-20 Chong Yidong <cyd@stupidchicken.com>
4084
4085 * xselect.c (x_get_foreign_selection): Return nil if desired
4086 selection could not be obtained, instead of signalling an error.
4087
40882008-08-20 David Reitter <david.reitter@gmail.com>
4089
4090 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
4091 * nsterm.m: Remove ns-specific code for cursor blinking.
4092 (ns_draw_window_cursor): Clear cursor properly rather than
4093 redrawing the area. Respect width of bar cursors.
4094 These changes enable the use of generic blink-cursor-mode and
4095 generic cursor types in NS and support smooth cursor movements (do
4096 not blink off after command).
4097 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
4098 Nextstep, too.
4099
41002008-08-19 Kenichi Handa <handa@m17n.org>
4101
4102 * font.c (Vfont_log_deferred): New variable.
4103 (font_add_log): Check Vfont_log_deferred.
4104 (font_deferred_log): New function.
4105
4106 * font.h (font_deferred_log): Extern it.
4107
4108 * fontset.c (reorder_font_vector): Use encoding charset of fonts
4109 for sorting.
4110 (face_for_char): Use deferred log.
4111
41122008-08-18 Kenichi Handa <handa@m17n.org>
4113
4114 * fontset.c (face_for_char): Add font log.
4115
4116 * font.c (font_add_log): Add the font properties :script, :lang,
4117 and :otf in the log.
4118
41192008-08-17 Chong Yidong <cyd@stupidchicken.com>
4120
4121 * xdisp.c: Remove dead code.
4122 (handle_invisible_prop, next_overlay_string): Defer call to
4123 setup_for_ellipsis.
4124 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
4125
41262008-08-15 Chong Yidong <cyd@stupidchicken.com>
4127
4128 * xfaces.c (lookup_derived_face): Properly handle possible zero
4129 return value of get_lface_attributes.
4130 (merge_faces): Don't tell lookup_derived_face to signal an error
4131 if face is not found.
4132
4133 * dired.c (Fdirectory_files): Doc fix.
4134
4135 * process.c (make_process): Initialize kill_without_query struct
4136 member.
4137
41382008-08-15 Eli Zaretskii <eliz@gnu.org>
4139
4140 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
4141 Alternative calculation of totphys for Visual Studio 6.
4142
4143 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
4144
4145 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
4146 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
4147 All users changed.
4148 (stat): Only root directory passed to GetDriveType. Allow RAM
4149 disk as well as local fixed disk when w32-get-true-file-attributes
4150 is set to `local'.
4151 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
4152 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
4153 (w32_cached_id, w32_add_to_cache): New functions.
4154 (get_name_and_id): Look account names in the cache before calling
4155 lookup_account_sid.
4156 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
4157 New initialization flags.
4158 (globals_of_w32): Initialize them to zero.
4159 (w32_system_process_attributes): Use w32_cached_id and
4160 w32_add_to_cache.
4161
41622008-08-14 Lawrence Mitchell <wence@gmx.li>
4163
4164 * lread.c (Fread_char, Fread_char_exclusive): If no character
4165 event is read before timeout is reached, return nil, rather than
4166 converting to a number.
4167
41682008-08-14 Chong Yidong <cyd@stupidchicken.com>
4169
4170 * fns.c (use_dialog_box): Doc fix.
4171
4172 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
4173 on OS X.
4174
41752008-08-13 Chong Yidong <cyd@stupidchicken.com>
4176
4177 * frame.c (Qns_parse_geometry): New var.
4178 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
4179
41802008-08-11 Chong Yidong <cyd@stupidchicken.com>
4181
4182 * xdisp.c (x_produce_glyphs): Handle the case when font has no
4183 space character in calculating tabs.
4184
41852008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
4186
4187 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
4188
41892008-08-10 Glenn Morris <rgm@gnu.org>
4190
4191 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
4192 silence gcc "limited range of data type" warnings in some
4193 make_fixnum_or_float calls.
4194
41952008-08-09 Eli Zaretskii <eliz@gnu.org>
4196
4197 * w32.c (w32_system_process_attributes): If the process does not
4198 exist, return nil.
4199
4200 * w32.c: Include thelp32.h, psapi.h and coding.h.
4201 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
4202 declarations.
4203 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
4204 (Process32Next_Proc): New typedefs.
4205 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
4206 (g_b_init_process32_next, g_b_init_open_thread_token)
4207 (g_b_init_impersonate_self, g_b_init_revert_to_self)
4208 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
4209 (g_b_init_get_process_working_set_size)
4210 (g_b_init_global_memory_status_ex): New static variables.
4211 (globals_of_w32): Initialize them.
4212 (create_toolhelp32_snapshot, process32_first, process32_next)
4213 (open_thread_token, impersonate_self, revert_to_self)
4214 (get_process_memory_info, get_process_working_set_size)
4215 (global_memory_status, global_memory_status_ex): New wrapper
4216 functions.
4217 (w32_list_system_processes, w32_system_process_attributes)
4218 (enable_privilege, restore_privilege, ltime, process_times):
4219 New functions.
4220 (convert_time_raw): New function.
4221 (convert_time): Remove conversion of FILETIME into time in 100
4222 nsec units, call convert_time_raw instead.
4223
4224 * process.h (w32_list_system_processes, w32_system_process_attributes):
4225 Add prototypes.
4226 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
4227 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
4228 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
4229 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
4230
4231 * process.c (Fsystem_process_attributes): Doc fix.
4232
42332008-08-08 Chong Yidong <cyd@stupidchicken.com>
4234
4235 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
4236 a continued multi-char glyph; if so, advance to the actual glyph.
4237
42382008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
4239
4240 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
4241
4242 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
4243 (.m.o): Use it.
4244 * config.in: Regenerate.
4245
42462008-08-07 Chong Yidong <cyd@stupidchicken.com>
4247
4248 * xdisp.c (redisplay_window): Revert last change.
4249 (try_window): Check bottom scroll margin too.
4250
42512008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4252
4253 * config.in: Regenerate.
4254
4255 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
4256 -list-load-path-shadows'.
4257 (nsgui.h): Reduce number of things depending on it.
4258
42592008-08-06 Chong Yidong <cyd@stupidchicken.com>
4260
4261 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
4262 instead of window-end which does the wrong thing at eob.
4263 (try_cursor_movement): Minor optimization.
4264 (redisplay_window): If scroll margin is defined, don't assume
4265 window doesn't need scrolling.
4266
42672008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4268
4269 * config.in: Regenerate.
4270
4271 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
4272 (mostlyclean): Don't delete *.d under NS.
4273
4274 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
4275
42762008-08-06 Kenichi Handa <handa@m17n.org>
4277
4278 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
4279
42802008-08-06 Andreas Schwab <schwab@suse.de>
4281
4282 * config.in: Regenerate.
4283
42842008-08-05 Chong Yidong <cyd@stupidchicken.com>
4285
4286 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
4287 forcing a window start.
4288
4289 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
4290 (auto_save_1): Update modtime when auto-save-list-file-name is on.
4291
42922008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4293
4294 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
4295 argument.
4296
42972008-08-05 Juanma Barranquero <lekktu@gmail.com>
4298
4299 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
4300 <scroll-down-aggressively, before-change-functions>:
4301 <after-change-functions>: Reflow docstrings.
4302
43032008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4304 Ken Raeburn <raeburn@gnu.org>
4305
4306 Dock menu customization, based on a patch by Ken Raeburn, plus some
4307 other fixes.
4308 * nsmenu.m (dockMenu): New variable.
4309 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
4310
4311 * nsterm.h (dockMenu): Declare.
4312
4313 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
4314 (ns_term_init): Initialize dockMenu.
4315 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
4316 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
4317 left.
4318
4319 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
4320
43212008-08-04 Chong Yidong <cyd@stupidchicken.com>
4322
4323 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
4324
4325 * config.in: Regenerate.
4326
43272008-08-04 Seiji Zenitani <zenitani@mac.com>
4328
4329 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
4330
43312008-08-04 Chong Yidong <cyd@stupidchicken.com>
4332
4333 * nsterm.h (find_and_call_menu_selection): Fix prototype.
4334
43352008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4336
4337 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
4338
4339 * keyboard.h: Comment an #endif.
4340
4341 * lisp.h (have_menus_p): Adjust comment.
4342
4343 * menu.c (find_and_return_menu_selection): Fix comparison with
4344 client_data.
4345
4346 * nsmenu.m (popup_activated_flag): New variable.
4347 (popup_activated): New function.
4348 (menu-or-popup-active-p): New exported lisp definition.
4349 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
4350 when popup done.
4351 (ns_popup_dialog): Set popup_activated_flag.
4352
4353 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
4354 version for GNUstep (handled by conditional typedef in nsterm.m).
4355 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
4356 in rgb.txt).
4357
4358 * process.c (init_process): Use DARWIN_OS, not DARWIN.
4359
4360 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
4361
4362 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
4363
4364 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
4365 shortcircuit if popup_activated like GTK and X toolkit.
4366
4367 * m/inter386.h: Change DARWIN to DARWIN_OS.
4368
4369 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
4370 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
4371 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
4372 comment on NO_SOCK_SIGIO.
4373
43742008-08-03 Chong Yidong <cyd@stupidchicken.com>
4375
4376 * nsterm.m (windowDidResize): Remove stopModal call.
4377
43782008-08-03 Andreas Schwab <schwab@suse.de>
4379
4380 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
4381 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
4382
43832008-08-02 Chong Yidong <cyd@stupidchicken.com>
4384
4385 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
4386 Don't use uninitialized pointer variable when using getrlimit.
4387
43882008-08-02 Jason Rumney <jasonr@gnu.org>
4389
4390 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
4391
43922008-08-02 Eli Zaretskii <eliz@gnu.org>
4393
4394 * alloc.c (NSTATICS): Bump to 0x640.
4395
4396 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
4397
4398 * lisp.h: Add prototype for directory_files_internal.
4399
4400 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
4401 New functions.
4402 (syms_of_process): Defsubr them. Add initializations for various
4403 Q* symbols used in procfs_system_process_attributes.
4404 (procfs_list_system_processes, procfs_system_process_attributes)
4405 [HAVE_PROCFS]: New functions.
4406 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
4407 (procfs_get_total_memory): New functions.
4408
44092008-08-01 Juanma Barranquero <lekktu@gmail.com>
4410
4411 * xfaces.c (Fx_load_color_file): Fix previous change;
4412 it is #ifdef WINDOWSNT, not WINDOWS_NT.
4413
44142008-08-01 Michael Albinus <michael.albinus@gmx.de>
4415
4416 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
4417
44182008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4419
4420 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
4421
44222008-08-01 Chong Yidong <cyd@stupidchicken.com>
4423
4424 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
4425
4426 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
4427 define NSApplicationDelegateReplySuccess.
4428 (EmacsView -converstationIdentifier): Use long instead of
4429 NSInteger for GNUstep, since it doesn't have NSInteger.
4430
4431 * xmenu.c: Revert last change.
4432
4433 * keyboard.h: Fix last change.
4434
44352008-08-01 Juanma Barranquero <lekktu@gmail.com>
4436
4437 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
4438 on Windows.
4439
44402008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4441
4442 Warning clearing and clean-up in NS port.
4443 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
4444 Add prototypes.
4445 * nsgui.h (FACE_DEFAULT): Remove, unused.
4446 (XGCValues): Change colors to unsigned long.
4447 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
4448 nsterm.m.
4449 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
4450 (ns_list_fonts): Remove, unused.
4451 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
4452 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
4453 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
4454 (nsfont_draw): Compare face colors to 0, not nil.
4455 * nsmenu.m (struct widget_value): Drop unneeded declaration.
4456 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
4457 (-addSubmenuWithTitle:): Use NSMenuItem class.
4458 (ns_popup_menu): Use NO, not NULL, for enabled setting.
4459 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
4460 (ns_clip_to_row): Make gc arg a BOOL.
4461 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
4462 ns_clip_to_row() call.
4463 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
4464 used). Cast FRAME_FONT assignments.
4465 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
4466 (ns_string_to_lispmod): Change arg to const char.
4467 (ns_term_init): Use NSMenuItem class.
4468 (EmacsApp -openFile:): Move to different section of file.
4469 (EmacsApp -application:openFiles:): Don't return a value, call
4470 -replyToOpenOrPrint:.
4471 (EmacsView -keyDown:): Fix up cast.
4472 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
4473 (EmacsView -menuDown:): Cast tag in call to
4474 find_and_call_menu_selection().
4475 (ns_list_fonts): Remove, unused.
4476 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
4477 (ns_fontname_to_xlfd): Make static.
4478 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
4479 Remove prototypes (now in keyboard.h).
4480 (next_menubar_widget_id): Remove, unused.
4481 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
4482 Remove prototypes (now in keyboard.h).
4483 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
4484
44852008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
4486
4487 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
4488 (floatfns.o): Depend on syssignal.h.
4489 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
4490
4491 * systty.h: Fix previous change that removed BSD_TERMIOS.
4492 Add comments to #ifdefs.
4493
44942008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4495
4496 * w32fns.c (w32-load-color-file): Remove.
4497 (x-open-connection): Use renamed Fx_load_color_file.
4498 * xfaces.c (x-load-color-file): Add.
4499 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
4500 Emacs.clr.
4501 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
4502
45032008-07-31 Michael Albinus <michael.albinus@gmx.de>
4504
4505 * dbusbind.c (Fdbus_call_method_asynchronously)
4506 (Fdbus_method_error_internal): New defuns.
4507 (xd_read_message): Handle also reply messages.
4508 (Vdbus_registered_functions_table): Extend docstring.
4509
45102008-07-31 Juanma Barranquero <lekktu@gmail.com>
4511
4512 * keyboard.c (gobble_input): Fix previous change.
4513
45142008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
4515
4516 * bitmaps/README:
4517 * xfns.c:
4518 * termcap.c:
4519 * term.c:
4520 * syswait.h:
4521 * systty.h:
4522 * systime.h:
4523 * syssignal.h:
4524 * sysdep.c:
4525 * process.h:
4526 * process.c:
4527 * print.c:
4528 * ndir.h:
4529 * lread.c:
4530 * keyboard.c:
4531 * getpagesize.h:
4532 * floatfns.c:
4533 * fileio.c:
4534 * emacs.c:
4535 * doc.c:
4536 * dispnew.c:
4537 * dired.c:
4538 * data.c:
4539 * callproc.c:
4540 * buffer.c:
4541 * README:
4542 * Makefile.in:
4543 * s/template.h:
4544 * s/msdos.h:
4545 * m/vax.h: Remove VMS support.
4546 * s/vms.h:
4547 * vlimit.h:
4548 * uaf.h:
4549 * temacs.opt:
4550 * param.h:
4551 * ioctl.h: Remove file.
4552
45532008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
4554
4555 * s/ms-w32.h (MULTI_KBOARD): Remove.
4556 * xterm.c:
4557 * xselect.c:
4558 * xfns.c:
4559 * window.c:
4560 * w32term.c:
4561 * w32fns.c:
4562 * terminal.c:
4563 * termhooks.h:
4564 * term.c:
4565 * sysdep.c:
4566 * keyboard.h:
4567 * keyboard.c:
4568 * frame.h:
4569 * frame.c:
4570 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
4571 * config.in: Regenerate.
4572
45732008-07-30 Jason Rumney <jasonr@gnu.org>
4574
4575 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
4576
4577 * w32font.c (w32font_encode_char): Leave as unicode if in range.
4578 (w32font_open_internal): Get unicode version of textmetrics.
4579 Don't enable or disable glyph indices here.
4580 (w32font_open): Disable use of glyph indices.
4581
4582 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
4583
45842008-07-30 Chong Yidong <cyd@stupidchicken.com>
4585
4586 * minibuf.c (Vread_buffer_function): Doc fix.
4587
45882008-07-30 John Paul Wallington <jpw@pobox.com>
4589
4590 * minibuf.c (read_buffer_completion_ignore_case): New var.
4591 (Fread_buffer): Use it.
4592
45932008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
4594
4595 * systty.h (sensemode): Remove empty #if. Remove reference to
4596 BSD_TERMIOS, unused.
4597
4598 * sysdep.c: Remove reference to DGUX.
4599 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
4600
4601 * config.in: Regenerate.
4602
46032008-07-30 Jason Rumney <jasonr@gnu.org>
4604
4605 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
4606
46072008-07-29 Jason Rumney <jasonr@gnu.org>
4608
4609 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
4610 is populated.
4611 (uniscribe_encode_char): Always use uniscribe.
4612 Avoid using context if cache is populated.
4613
46142008-07-29 Jan Djärv <jan.h.d@swipnet.se>
4615
4616 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
4617 open menu.
4618
4619 * gtkutil.c (menu_nav_ended): Remove.
4620 (create_menus): Remove signal connect for menu_nav_ended.
4621
46222008-07-28 Chong Yidong <cyd@stupidchicken.com>
4623
4624 * xdisp.c (redisplay_window): Check return value of
4625 compute_window_start_on_continuation_line before forcing a window
4626 start.
4627
46282008-07-28 Jason Rumney <jasonr@gnu.org>
4629
4630 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
4631
4632 * w32term.c (w32_enable_unicode_output, cleartype_active):
4633 Remove obsolete display options.
4634 (x_draw_glyph_string_background): Don't use old cleartype_active
4635 workaround.
4636 (w32_initialize): Remove cleartype_active initialization.
4637 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
4638
46392008-07-28 Andreas Schwab <schwab@suse.de>
4640
4641 * lisp.h (init_weak_hash_tables, syms_of_font)
4642 (xd_read_queued_messages, syms_of_dbusbind): Declare.
4643 (remove_hash_entry): Don't declare.
4644 * eval.c (maybe_call_debugger): Make static and move before use.
4645 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
4646 * xdisp.c: Include "gtkutil.h" if USE_GTK.
4647 * xterm.h (x_set_frame_alpha): Declare.
4648
46492008-07-28 Jan Djärv <jan.h.d@swipnet.se>
4650
4651 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
4652 (create_menus): Connect selection-done to menu_nav_ended.
4653
46542008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
4655
4656 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
4657 Set Vx_resource_name to a fallback. Replace read of 'buffered'
4658 parameter with read of 'alpha' one.
4659 (Qns_frame_parameter): Remove.
5582fbc7 4660 * nsselect.m (selection-coding-system)
aac0c6e3
MR
4661 (next-selection-coding-system, Vselection_coding_system)
4662 (Vnext_selection_coding_system): Drop.
4663
46642008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
4665
4666 * nsfns.m (do-applescript, do_applescript): Rename to
4667 ns-do-applescript, ns_do_applescript, and move within file.
4668
46692008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
4670
4671 Remove support for Mac Carbon.
4672 * mactoolbox.c:
4673 * macterm.h:
4674 * macterm.c:
4675 * macselect.c:
4676 * macmenu.c:
4677 * macgui.h:
4678 * macfns.c:
4679 * mac.c: Remove file.
4680 * s/darwin.h:
4681 * m/intel386.h:
4682 * xfaces.c:
4683 * xdisp.c:
4684 * window.c:
4685 * tparam.c:
4686 * termhooks.h:
4687 * termcap.c:
4688 * term.c:
4689 * syssignal.h:
4690 * sysselect.h:
4691 * sysdep.c:
4692 * process.c:
4693 * lread.c:
4694 * lisp.h:
4695 * keyboard.c:
4696 * image.c:
4697 * fringe.c:
4698 * frame.h:
4699 * frame.c:
4700 * fontset.c:
4701 * font.h:
4702 * font.c:
4703 * fns.c:
4704 * fileio.c:
4705 * emacs.c:
4706 * dispnew.c:
4707 * dispextern.h:
4708 * config.in:
4709 * atimer.c:
2ae37cf0 4710 * Makefile.in: Remove code for Carbon.
aac0c6e3 4711
f0131492 47122008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
4713
4714 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
4715
47162008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4717
4718 * macterm.h (kCGBitmapByteOrder32Host): New define for
4719 non-universal SDKs.
4720
4721 * image.c (mac_create_cg_image_from_image, image_load_image_io)
4722 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
4723
4724 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
4725 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
4726
47272008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
4728
4729 * w32inevt.c: Include dispextern.h.
4730
47312008-07-26 Andreas Schwab <schwab@suse.de>
4732
4733 * print.c (print_object): Fix off-by-one in last change.
4734
47352008-07-25 Juanma Barranquero <lekktu@gmail.com>
4736
4737 * term.c (syms_of_term): Don't initialize default_orig_pair,
4738 default_set_foreground and default_set_background on Windows.
4739
47402008-07-25 Jason Rumney <jasonr@gnu.org>
4741
4742 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
4743 ScriptItemize. Clean up return value checking. Remove unused
4744 variables.
4745 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
4746 shaping engine.
4747
4748 * w32font.c (w32font_has_char): Handle the case where we can't
4749 determine the script for a character.
4750
47512008-07-25 Chong Yidong <cyd@stupidchicken.com>
4752
4753 * term.c (syms_of_term): Initialize default_orig_pair,
4754 default_set_foreground, and default_set_background.
4755
4756 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
4757 clash (bug#86).
4758 (getloadavg): Callers changed.
4759
4760 * image.c (svg_load_image): Fix last change.
4761 (svg_load_image): Use rsvg_handle_get_dimensions to check that
4762 image size is valid. Use g_object_unref instead of deprecated
4763 rsvg_handle_free to free rsvg handle.
4764 (x_from_xcolors): Don't initialize pixmap (silence compiler).
4765
47662008-07-25 Jason Rumney <jasonr@gnu.org>
4767
4768 * w32font.c (w32font_encode_char): Encode characters outside BMP as
4769 surrogates before looking up glyph index.
4770 (w32font_text_extents): Encode as surrogates if falling back to
4771 functions that need UTF-16 wide chars.
4772
4773 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
4774 BMP as surrogates before looking up glyph index.
4775
47762008-07-25 Chong Yidong <cyd@stupidchicken.com>
4777
4778 * image.c (svg_load_image): Check for failure in return value of
4779 rsvg_handle_get_pixbuf. Free rsvg handle when done.
4780
47812008-07-25 Jason Rumney <jasonr@gnu.org>
4782
4783 * w32font.c (Fx_select_font): Reverse sense of second arg.
4784
47852008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
4786
4787 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
4788 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
4789
4790 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
4791 (PURESIZE): Use it.
4792
47932008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
4794
4795 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
4796 * m/alpha.h (TEXT_END):
4797 * m/ibmrs6000.h (TEXT_END):
4798 * m/macppc.h (TEXT_END):
4799 * s/darwin.h (TEXT_END):
4800 * s/msdos.h (TEXT_END): Remove, unused.
4801 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
4802 * s/cygwin.h: Remove comment.
4803
4804 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
4805 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
4806 * m/intel386.h (DOT_GLOBAL_START):
4807 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
4808 (USG): Remove, file not used on USG platforms.
4809
4810 * Makefile.in (HAVE_X11): Remove empty #else.
4811
48122008-07-24 Andreas Schwab <schwab@suse.de>
4813
4814 * fileio.c (Finsert_file_contents): Properly adjust undo list
4815 after format conversion.
4816
48172008-07-24 Jan Djärv <jan.h.d@swipnet.se>
4818
4819 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
4820 (menu_nav_ended): Remove.
4821 (create_menus): Remove signal connect for menu_nav_ended.
4822 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
4823 create_menus.
4824 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
4825
48262008-07-23 Jason Rumney <jasonr@gnu.org>
4827
4828 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
4829 with opened font.
4830 (w32font_open): Set font type to gdi.
4831
4832 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
4833
48342008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
4835
4836 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
4837 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
4838 defines it.
4839 * unexec.c (ADDR_CORRECT): Define unconditionally.
4840
4841 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
4842
4843 * unexec.c: Remove code depending on !COFF and USG, the file is
4844 not used for such systems.
4845
4846 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
4847 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
4848 (LD_SWITCH_SYSTEM_1): Remove, update users.
4849
4850 * s/darwin.h (DATA_END):
4851 * m/intel386.h (DATA_END):
4852 * m/ibmrs6000.h (DATA_END):
4853 * m/alpha.h (DATA_END): Remove, unused.
4854
4855 * config.in: Regenerate.
4856 * s/ms-w32.h (subprocesses): Define unconditionally.
4857 * s/template.h (subprocesses): Update comment.
4858 * s/vms.h (subprocesses):
4859 * s/usg5-4.h (subprocesses):
4860 * s/hpux10-20.h (subprocesses):
4861 * s/gnu-linux.h (subprocesses):
4862 * s/cygwin.h (subprocesses):
4863 * s/bsd-common.h (subprocesses):
4864 * s/aix4-2.h (subprocesses):
4865 * s/darwin.h (subprocesses): Do not define, defined by default now.
4866
4867 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
4868 Remove all references.
4869 (temacs): Add GNUstep specific ld flags.
4870
4871 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
4872 similarly to what X does.
4873
48742008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4875
4876 * nsfns.m (x-list-fonts): Remove.
4877 (syms_of_nsfns): Drop the x-list-fonts declaration.
4878 * nsterm.m: Get rid of remaining "//" comments.
4879
48802008-07-22 Chong Yidong <cyd@stupidchicken.com>
4881
4882 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
4883
4884 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
4885 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
4886 (Fns_own_selection_internal, Fx_disown_selection_internal)
4887 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
4888
4889 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
4890 ... */' style of docstrings. Doc fixes.
4891
48922008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
4893
4894 * terminfo.c (UP, BC, PC): Undo previous change.
4895
4896 * nsfns.m: Rename ns prefixed functions/variables to the
4897 corresponding x versions. Update references.
4898
48992008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
4900
4901 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
4902
49032008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
4904
4905 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
4906 Remove forwarding functions.
4907 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
4908 non-static.
4909 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
4910 non-static.
4911 (ns_frame_parm_handlers): Use the new names.
4912 (syms_of_nsfns): Move to the end of file.
4913
4914 * nsterm.m (syms_of_nsterm): Move to the end of file.
4915
4916 * dispnew.c (init_display): Remove code for X10.
4917
49182008-07-22 Jason Rumney <jasonr@gnu.org>
4919
4920 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
4921 bare drive.
4922
49232008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4924
4925 * nsterm.m (syms_of_nsterm): Remove debugging println.
4926
49272008-07-22 David Reitter <david.reitter@gmail.com>
4928
4929 * nsfns.m (do_applescript, F_do_applescript): NS version of the
4930 Carbon implementation of the same functionality: execute arbitrary
4931 AppleScript code.
4932
49332008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4934
4935 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
4936 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
4937 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
4938 (Fx_display_mm_height, Fx_display_mm_width)
4939 (Fx_display_backing_store, Fx_display_visual_class)
4940 (Fx_display_save_under, Fx_open_connection)
4941 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
4942 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
4943 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
4944 (Fx_display_pixel_width, Fx_display_pixel_height)
4945 (Fx_display_usable_bounds, Fx_display_planes)
4946 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
4947 ... */' style of docstrings.
4948
49492008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
4950
4951 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
4952 on this platform.
4953 (mips):
4954 * m/iris4d.h (mips): Do not define.
4955 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
4956
4957 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
4958
4959 * image.c:
4960 * nsfns.m:
4961 * nsselect.m:
4962 * nsterm.h:
4963 * nsterm.m: Rename ns prefixed functions/variables to the
4964 corresponding x versions. Update references.
4965
4966 * m/ibms390x.h (NO_REMAP): Do not undefine.
4967
4968 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
4969
49702008-07-21 Chong Yidong <cyd@stupidchicken.com>
4971
4972 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
4973 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
4974 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
4975 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
4976 (Fns_display_mm_height, Fns_display_mm_width)
4977 (Fns_display_backing_store, Fns_display_visual_class)
4978 (Fns_display_save_under, Fns_open_connection)
4979 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
4980 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
4981 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
4982 (Fns_display_pixel_width, Fns_display_pixel_height)
4983 (Fns_display_usable_bounds, Fx_display_planes)
4984 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
4985
49862008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
4987
4988 * print.c (print_object): Check print_depth before searching for
4989 circularities.
4990
49912008-07-21 Michael Albinus <michael.albinus@gmx.de>
4992
4993 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
4994 only sprintf.
4995
49962008-07-21 Kenichi Handa <handa@m17n.org>
4997
4998 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
4999
50002008-07-20 Andreas Schwab <schwab@suse.de>
5001
5002 * syntax.c (find_start_pos, find_start_value)
5003 (find_start_value_byte, find_start_begv, find_defun_start)
5004 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
5005
50062008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
5007
5008 * s/sol2-3.h: Insert contents of s/sol2.h.
5009 (LD_SWITCH_SYSTEM): Remove redundant definition.
5010 * s/sol2.h: Remove, unused.
5011
50122008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5013
5014 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
5015
50162008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5017
5018 * Makefile.in (ns_appdir): Fix typo in find command.
5019
50202008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
5021
5022 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
5023
5024 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
5025 added not supported anymore.
5026
5027 * s/usg5-4-2.h (LIBS_SYSTEM):
5028 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
5029
5030 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
5031 * s/lynxos.h (GETPGRP_NO_ARG):
5032 * s/hpux10-20.h (NO_SIOCTL_H):
5033 * s/gnu.h (GETPGRP_NO_ARG):
5034 * s/gnu-linux.h (NO_SIOCTL_H):
5035 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
5036 * s/cygwin.h (GETPGRP_NO_ARG):
5037 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
5038 (C_DEBUG_SWITCH): Remove duplicate definition.
5039
5040 * m/ibms390.h: Remove boilerplate comments.
5041
5042 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
5043
5044 * process.c (HAVE_SERIAL): Consolidate ifdefs.
5045 (wait_reading_process_output): Remove code for SunOS, platform not
5046 supported anymore. Use SOLARIS2 instead of sun.
5047
50482008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
5049
5050 * font.c (font_open_by_name): Under NS, default lface height to zero.
5051 (font_open_for_lface): Under NS, set size based on frame fontsize.
5052 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
5053 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
5054
50552008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
5056
5057 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
5058 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
5059 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
5060 YES/NO.
5061 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
5062 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
5063 * Makefile.in (clean): Clear out build destination dir.
5064
50652008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
5066
5067 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
5068 xterm, xselect.
5069 * lisp.h: Remove declaration of hash_remove.
5070 * nsgui.h: Remove redefinitions of hash_remove.
5071 * fns.c (hash_remove): Rename to hash_remove_from_table.
5072
50732008-07-19 Seiji Zenitani <zenitani@mac.com>
5074
5075 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
5076 strdup() the family UTF8String before modifying it.
5077
50782008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
5079
5080 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
5081 NS_FACE_BACKGROUND with 0 instead of nil.
5082 * nsfont.m (nsfont_draw): Same.
5083
50842008-07-19 Chong Yidong <cyd@stupidchicken.com>
5085
5086 * nsfns.m (ns_set_background_color): Fix crash.
5087
50882008-07-18 Chong Yidong <cyd@stupidchicken.com>
5089
5090 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
5091
50922008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
5093
5094 * puresize.h (BASE_PURESIZE): Increase to 1240000.
5095
50962008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5097
5098 * gtkutil.c: Include <config.h> instead of "config.h".
5099
5100 * lisp.h (Foverlay_buffer): Add EXFUN.
5101
5102 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
5103 child process to complete child_setup. Undo 2005-09-21 change.
5104
5105 * s/darwin.h: Mention setsid after vfork.
5106
51072008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5108
5109 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
5110 Depend on macgui.h.
5111
5112 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
5113 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
5114
5115 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
5116 and f19.
5117 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
5118
5119 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
5120 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
5121 Remove enumerators.
5122
5123 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
5124 Check if FACE_FROM_ID returns NULL.
5125
51262008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
5127
5128 * w32inevt.c (change_frame_size): Remove extern declaration.
5129 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
5130 change_frame_size.
5131
51322008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
5133
5134 * getloadavg.c: Revert last change (2008-07-15).
5135
51362008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
5137
5138 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
5139 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc) set
5140 from configure.
5141
51422008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
5143
5144 * s/sol2.h:
5145 * s/sol2-4.h: Reorganize conditionals.
5146
5147 * ecrt0.c: Remove code depending on m68000, not used anymore.
5148
5149 * fns.c (hash_remove): Make static.
5150 * lisp.h (hash_remove): Don't prototype.
5151
5152 * m/ibmrs6000.h:
5153 * m/ibms390x.h:
5154 * m/macppc.h: Remove boilerplate comments.
5155
5156 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
5157 Solaris, which does not need them.
5158
5159 * m/vax.h: Remove comments about unsupported systems.
5160
5161 * s/darwin.h: Reorganize ifdefs.
5162
51632008-07-17 Andreas Schwab <schwab@suse.de>
5164
5165 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
5166
51672008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
5168
5169 Use SDATA. Follow coding convention of placing operators at
5170 beginning of next line rather than end of previous line, and placing
5171 spaces around infix operators.
5172
5173 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
5174 in case it was defined already.
5175 USE @GNUSTEP_MAKEFILES@ rather than envvars.
5176 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
5177 ns_default.
5178 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
5179 Lisp_Objects.
5180 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
5181 (ns_defined_color, ns_color_to_lisp): Declare.
5182 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
5183 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
5184 it's accepted even with USE_LISP_UNION_TYPE.
5185 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
5186 (update_frame_tool_bar): Remove apparently obsolete tests for
5187 non-integerness of f->tool_bar_lines.
5188 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
5189 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
5190 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
5191 (nsfont_open): Don't confuse NULL for Qnil.
5192 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
5193 * menu.h (find_and_call_menu_selection):
5194 * menu.c (find_and_call_menu_selection): Use just int for vector size.
5195 (find_and_return_menu_selection): Always return something.
5196 * frame.h: Include dispextern.h for Display_Info.
5197 (display_x_get_resource): Declare.
5198
51992008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
5200
5201 * syntax.c: Remove stdio.h include accidentally introduced in
5202 Emacs.app commit.
5203 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
5204 NS_IMPL_COCOA.
5205 * keyboard.c (handle_async_input, input_available_signal): Remove
5206 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
5207
52082008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
5209
5210 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
5211 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
5212 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
5213 Use SDATA.
5214
5215 * keymap.c: Remove all NS-specific code.
5216 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
5217 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
5218 where_is_preferred_modifier, return a different value depending on how
5219 preferred is the binding.
5220 (where_is_internal): Adjust accordingly.
5221 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
5222 Adjust to new preferred_sequence_p.
5223 (syms_of_keymap): Declare `where-is-preferred-modifier'.
5224 * keyboard.c (parse_solitary_modifier): Not static any more.
5225 * keyboard.h (parse_solitary_modifier): Declare.
5226
52272008-07-16 Andreas Schwab <schwab@suse.de>
5228
5229 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
5230 of easymenu.
5231
52322008-07-16 Chong Yidong <cyd@stupidchicken.com>
5233
5234 * xdisp.c (move_it_in_display_line): Account for word wrap, so
5235 that we don't move off the line.
5236
52372008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
5238
5239 * keyboard.c (Qsuper): Remove.
5240 (parse_menu_item): Don't call where_is_internal specially for NS.
5241
52422008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
5243
5244 * s/gnu-linux.h: Remove boilerplate comments.
5245
5246 * m/alpha.h (__ELF__): Consolidate conditions.
5247
5248 * m/m68k.h (linux): Use GNU_LINUX instead.
5249 Remove boilerplate comments.
5250
5251 * m/intel386.h: Undo refactoring from previous change.
5252 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
5253 too, remove dead code.
5254 (linux): Use GNU_LINUX instead.
5255
52562008-07-16 Jason Rumney <jasonr@gnu.org>
5257
5258 * w32gui.h: Repeat 26 June changes lost by last change.
5259
52602008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
5261
5262 * systty.h: Remove code for Aix on 386, unsupported platform.
5263
5264 * s/ms-w32.h: Remove boilerplate comments.
5265 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
5266
5267 * s/gnu-linux.h (TERM): Remove support.
5268 (HAVE_SYSVIPC): Remove, unused.
5269 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
5270 for this system.
5271
5272 * process.c: Remove support for IRIS, unused.
5273 Remove support for TERM, not relevant anymore.
5274
5275 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
5276 used with the definition.
5277
5278 * s/aix4-2.h (static): Do not undef.
5279
5280 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
5281 only used on Aix.
5282 (HAVE_SYSVIPC): Remove, unused.
5283
5284 * m/hp800.h (CANNOT_DUMP): Do not undef.
5285
5286 * m/alpha.h: Fix comment.
5287
5288 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
5289 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
5290 used by this configuration.
5291 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
5292 * unexec.c: Remove code depending on HPUX and
5293 USG_SHARED_LIBRARIES, not used with this file. Remove code
5294 depending on IRIS, unused. Remove if 0-ed code.
5295
5296 * s/template.h: Remove comments about static.
5297
5298 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
5299 Remove if 0-ed code.
5300 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
5301 were the same as the default.
5302 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
5303 Remove boilerplate comments.
5304 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
5305 (HAVE_SYSVIPC): Remove, unused.
5306 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
5307
5308 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
5309 Remove boilerplate comments.
5310 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
5311 Remove boilerplate comments.
5312 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
5313 Remove boilerplate comments.
5314 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
5315
5316 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
5317 USG systems which do not use DATA_SEG_BITS.
5318 Refactor code. Remove boilerplate comments.
5319
5320 * m/ibms390.h:
5321 * m/m68k.h:
5322 * s/bsd-common.h:
5323 * s/cygwin.h:
5324 * s/darwin.h:
5325 * s/freebsd.h:
5326 * s/gnu.h:
5327 * s/msdos.h: Remove boilerplate comments.
5328
5329 * m/iris4d.h: Remove boilerplate comments and code for systems that
5330 do not use this file.
5331 (IRIS_4D): Remove, unused.
5332
5333 * m/mips.h: Remove boilerplate comments and code for systems that
5334 do not use this file.
5335 (SIGN_EXTEND_CHAR):
5336 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
5337 * unexmips.c: Remove file, unused.
5338
5339 * editfns.c (Fuser_full_name): Replace the only use of
5340 USER_FULL_NAME with its value.
5341 * config.in: Regenerate.
5342
53432008-07-16 David Reitter <david.reitter@gmail.com>
5344
5345 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
5346 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
5347
53482008-07-16 Glenn Morris <rgm@gnu.org>
5349
5350 * emacs.c (system-type): Doc fix.
5351
53522008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
5353
5354 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
5355 If the cache doesn't work, let's fix it, rather than work around it.
5356
53572008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
5358
5359 * Makefile.in: Correct additions for nsfont.o in last commit.
5360 * nsfont.m: New file (forgot last commit).
5361
53622008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
5363
5364 * callproc.c (set_initial_environment): Initialize
5365 Vprocess_environment under CANNOT_DUMP (fixes crash when
5366 batch-compiling for bootstrap).
5367
53682008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
5369 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5370
5371 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
5372 fix crash due to different init order.
5373
53742008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
5375
5376 Changes and additions for NeXTstep windowing system (Cocoa and
5377 GNUstep) support.
5378
5379 * Makefile.in:
5380 * config.in: Support defines and build commands for NS port.
5381 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
5382 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
5383 * dispextern.h: Include nsgui.h and add needed typedefs under NS
5384 windowing.
5385 (struct face): Add synth_ital field.
5386 * dispnew.c: Include nsterm.h when compiling under NS windowing.
5387 (init_display): Initialize Vinitial_window_system to "ns" when so
5388 compiled.
5389 * emacs.c: Include GSConfig.h when compiling under GNUstep.
5390 (display_arg): Use under NS.
5391 (main): Under NS, allocate autorelease pool and handle command line
5392 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
5393 (standard_args): Add NS-specific args.
5394 (shut_down_emacs): Shut down NS terminal if compiled under NS.
5395 * font.c (DEFAULT_ENCODING): New variable.
5396 (font_find_for_lface): Use it.
5397 (syms_of_font): Load syms_of_nsfont under NS.
5398 * font.h: Declare nsfont_driver when compiled under NS.
5399 * fontset.c: When compiling under NS, include nsterm.h.
5400 (fontset_from_font): Autoconstruct fontset under NS.
5401 * frame.c (various): Under NS, include nsterm.h, add Qns window system
5402 symbol, document and use it.
5403 (do_switch_frame): When for_deletion under Cocoa, add
5404 Fraise_frame(Qnil).
5405 (x_set_frame_parameters): Ensure font attribute changes are picked up.
5406 (x_get_arg): Allow "yes" and "no" as boolean values.
5407 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
5408 Qright under Cocoa.
5409 (focus-follows-mouse): Default to 0 under NS.
5410 * frame.h (enum output_method): Add output_ns.
5411 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
5412 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
5413 (FRAME_WINDOW_P): NS-specific definition.
5414 * fringe.c (max_used_fringe_bitmap): Make public.
5415 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
5416 (getloadavg): Use NeXT code under descendant OS's.
5417 * image.c (includes and header section, x_create_bitmap_from_data)
5418 (x_create_bitmap_from_file, free_bitmap_record, image_background)
5419 (image_background_transparent, x_clear_image_1)
5420 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
5421 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
5422 (x_to_xcolors, x_from_xcolors, x_disable_image)
5423 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
5424 other GUIs, including XPM support using code originally written for
5425 Carbon GUI.
5426 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
5427 using NS API.
5428 (image_ascent): Use font metrics macros instead of direct struct field
5429 access.
5430 * keyboard.c (includes): Add nsterm.h when compiling under NS.
5431 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
5432 Also, handle NS as GTK for menu bar purposes.
5433 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
5434 toolkit where they differ.
5435 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
5436 use cachelist, still needed under NS.
5437 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
5438 (struct widget_value): Define it here for menu.c.
5439 * keymap.c (includes): Include modifier internals.
5440 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
5441 NS.
5442 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
5443 support for preferring sequences using certain modifiers, specified by
5444 the FIRSTONLY argument.
5445 * lisp.h (hash_remove): Rename to avoid name clash when compiling
5446 under NS GNUstep implementation.
5447 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
5448 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
5449 * menu.c: Include nsterm.h under NS.
5450 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
5451 (free_menubar_widget_tree_value, update_submenu_strings)
5452 (find_and_call_menu_selection): Treat NS as X and NT.
5453 (find_and_return_menu_selection): New function, used for popup menus.
5454 * nsgui.h:
5455 * nsterm.h:
5456 * nsfns.m:
5457 * nsimage.m:
5458 * nsmenu.m:
5459 * nsselect.m:
5460 * nsterm.m: New files.
5461 * process.c (wait_reading_process_output): Under NS, call ns_select()
5462 instead of plain select().
5463 * syntax.c (char_quoted): Under NS, avoid a crash when called near
5464 beginning of buffer.
5465 * sysselect.h (init_process): Rename when compiling under Cocoa to
5466 avoid name conflict.
5467 * termhooks.h (display_info): Add ns_display_info to union.
5468 * terminal.c (Fterminal_live_p): Add ns to terminal types.
5469 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
5470 COCOA environment.
5471 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
5472 unexec() signature. (Note, this will dump, but the resulting file
5473 crashes; unexosx is used instead; keeping around for reference and
5474 possible aid in getting dump working under GNUstep.)
5475 * w32gui.h (button_type, widget_value): Remove definitions (now in
5476 keyboard.h).
5477 * window.c: Include nsterm.h when compiling under NS.
5478 * xdisp.c (includes): Include nsterm.h when compiling under NS.
5479 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
5480 other GUI windowing systems.
5481 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
5482 GTK.
5483 (x_consider_frame_title): Under NS, set icon type and frame
5484 modified-state indicator; use ns_set_name_as_filename() when using
5485 formatted title.
5486 (update_window_cursor): Make public when compiling under NS.
5487 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
5488 (hourglass_atimer, Vhourglass_delay
5489 * xfaces.c (header section, init_frame_faces, clear_font_table)
5490 (defined_color, unload_color, x_face_list_fonts)
5491 (prepare_face_for_display): Add NS support parallel to other GUIs.
5492 Emulate GCs like other non-X GUIs.
5493 (split_font_name): Don't lowercase font name under NS.
5494 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
5495 under NS.
5496 * s/darwin.h: Add support for compilation under NS.
5497
54982008-07-15 Jason Rumney <jasonr@gnu.org>
5499
5500 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
5501 (w32_show_hourglass): Rename from show_hourglass.
5502 (w32_hide_hourglass): Rename from hide_hourglass.
5503 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
5504 (Vhourglass_delay): Declare extern.
5505 (hourglass_started): Remove.
5506
5507 * xdisp.c (Vhourglass_delay): Remove static.
5508 (hourglass_started, start_hourglass, cancel_hourglass):
5509 Don't include these versions on WINDOWSNT.
5510
55112008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
5512
5513 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
5514 variables (formerly in xfns.c).
5515 (show_hourglass, hide_hourglass): New prototypes (same).
5516 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
5517 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
5518 in xfns.c).
5519 (syms_of_xdisp): Declare/initialize display-hourglass,
5520 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
5521 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
5522 formerly in xfns.c.
5523 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
5524 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
5525 (start_hourglass, cancel_hourglass): Remove.
5526 (show_hourglass, hide_hourglass): Remove prototypes and static
5527 modifiers.
5528 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
5529 hourglass_atimer, hourglass_shown_p declaration/initialization.
5530 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
5531 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
5532 (start_hourglass, cancel_hourglass): Remove.
5533 (show_hourglass, hide_hourglass): Remove prototypes and static
5534 modifiers.
5535 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
5536 hourglass_atimer, hourglass_shown_p declaration/initialization.
5537 * w32fns.c (display_hourglass_p, Vhourglass_delay)
5538 (DEFAULT_HOURGLASS_DELAY): Remove.
5539 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
5540 hourglass_shown_p declaration/initialization.
5541
55422008-07-14 Jason Rumney <jasonr@gnu.org>
5543
5544 * w32fns.c (w32_get_arg): Remove wrapper function.
5545 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
5546 directly.
5547 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
5548
55492008-07-14 Kenichi Handa <handa@m17n.org>
5550
5551 * xfont.c (xfont_open): Add workaround for X's bug.
5552
55532008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
5554
5555 * fontset.c: Include <stdio.h> unconditionally.
5556
55572008-07-13 Michael Albinus <michael.albinus@gmx.de>
5558
5559 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
5560 for filtering.
5561
55622008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
5563
5564 * s/vms.h: Use __GNUC__ instead of _GNUC_.
5565
5566 * m/macppc.h:
5567 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
5568
5569 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
5570 (SPECIAL_EMACS_INT):
5571 * m/ia64.h (SPECIAL_EMACS_INT):
5572 * m/amdx86-64.h (SPECIAL_EMACS_INT):
5573 * s/gnu.h (NLIST_STRUCT):
5574 * s/aix4-2.h (X11R5_INHIBIT_I18N):
5575 * s/gnu-linux.h (LINUX):
5576 * s/msdos.h (HAVE_FACES):
5577 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
5578
5579 * systty.h:
5580 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
5581 anymore.
5582
55832008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
5584
5585 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
5586 always defined as int.
5587
5588 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
5589 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
5590 * s/gnu-linux.h (HAVE_WAIT_HEADER):
5591 * s/freebsd.h (HAVE_WAIT_HEADER):
5592 * s/bsd-common.h (HAVE_UNION_WAIT):
5593 * s/aix4-2.h (HAVE_WAIT_HEADER):
5594 * m/mips.h (HAVE_UNION_WAIT):
5595 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
5596 (COFF, static): Do not define, they are undefined later in the file.
5597
5598 * process.c (update_status): Don't use a union.
5599 (status_convert):
5600 (sigchld_handler): Use int instead of WAITTYPE.
5601
56022008-07-12 Chong Yidong <cyd@stupidchicken.com>
5603
5604 * indent.c (Fvertical_motion): Restore hscroll before moving to
5605 goal column.
5606
56072008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
5608
5609 * lisp.h: Remove left over code.
5610
56112008-07-11 Andreas Schwab <schwab@suse.de>
5612
5613 * lisp.h: Fix logic in last change.
5614
5615 * menu.h: New file.
5616 * menu.c: Include it.
5617 * xmenu.c: Likewise.
5618 * Makefile.in: Update dependencies.
5619
56202008-07-11 Kenichi Handa <handa@m17n.org>
5621
5622 * fontset.c (fontset_from_font): Cancel the previous change.
5623
56242008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
5625
5626 * lisp.h:
5627 * w32heap.c:
5628 * emacs.c:
5629 * alloc.c: Replace all references of NO_UNION_TYPE with
5630 USE_LISP_UNION_TYPE.
5631
5632 * m/xtensa.h (NO_UNION_TYPE):
5633 * m/vax.h (NO_UNION_TYPE):
5634 * m/template.h (NO_UNION_TYPE):
5635 * m/sparc.h (NO_UNION_TYPE):
5636 * m/mips.h (NO_UNION_TYPE):
5637 * m/macppc.h (NO_UNION_TYPE):
5638 * m/m68k.h (NO_UNION_TYPE):
5639 * m/iris4d.h (NO_UNION_TYPE):
5640 * m/intel386.h (NO_UNION_TYPE):
5641 * m/ibms390x.h (NO_UNION_TYPE):
5642 * m/ibms390.h (NO_UNION_TYPE):
5643 * m/ibmrs6000.h (NO_UNION_TYPE):
5644 * m/ia64.h (NO_UNION_TYPE):
5645 * m/hp800.h (NO_UNION_TYPE):
5646 * m/arm.h (NO_UNION_TYPE):
5647 * m/amdx86-64.h (NO_UNION_TYPE):
5648 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
5649 defining it the same.
5650
56512008-07-10 Chong Yidong <cyd@stupidchicken.com>
5652
5653 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
5654
56552008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
5656
5657 * fileio.c:
5658 * sysdep.c
5659 * systty.h:
5660 * m/ibmrs6000.h:
5661 * m/iris4d.h:
5662 * s/aix4-2.h:
5663 * s/freebsd.h:
5664 * s/gnu-linux.h:
5665 * s/hpux10-20.h:
5666 * s/hpux11.h:
5667 * s/netbsd.h:
5668 * s/sol2-3.h:
5669 * s/sol2-4.h:
5670 * s/sol2.h:
5671 * s/usg5-4.h:
5672 * s/vms.h: Remove references to unused variables.
5673
56742008-07-10 Andreas Schwab <schwab@suse.de>
5675
5676 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
5677 pattern before matching the generic family.
5678
56792008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
5680
5681 * unexec.c:
5682 * s/vms.h:
5683 * s/usg5-4-2.h:
5684 * s/sol2-5.h:
5685 * s/freebsd.h:
5686 * s/darwin.h: Remove dead code.
5687
5688 * m/template.h:
5689 * m/sparc.h:
5690 * m/mips.h:
5691 * m/m68k.h:
5692 * m/iris4d.h:
5693 * m/intel386.h:
5694 * m/ibms390x.h:
5695 * m/ibms390.h:
5696 * m/ia64.h:
5697 * m/hp800.h:
5698 * m/arm.h:
5699 * m/amdx86-64.h: Remove dead code and references to unused
5700 and compiler defined symbols.
5701
5702 * unexmips.c:
5703 * unexelf.c: Remove references to desupported systems.
5704
5705 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
5706
5707 * m/powermac.h: Remove boilerplate comments.
5708 (NO_REMAP): Remove unused definition.
5709
5710 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
5711 define them.
5712
57132008-07-10 Kenichi Handa <handa@m17n.org>
5714
5715 * xfont.c (xfont_open): Log the reason of failure.
5716
57172008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
5718
5719 * fontset.c (fontset_get_font_group):
5720 * font.c (font_check_otf): Specify argument types.
5721
57222008-07-09 Kenichi Handa <handa@m17n.org>
5723
5724 * coding.c (detect_coding_utf_8): Set detect_info->found only when
5725 non-ASCII char is found.
5726
5727 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
5728 (reorder_font_vector): Change the arg preferred_family to font.
5729 Prefer the spec matching with font.
5730 (fontset_get_font_group): New function.
5731 (fontset_find_font): Change the format of an element of a realized
5732 fontset. Use fontset_get_font_group.
5733 (fontset_font): Try the current fontset, the default fontset, the
5734 fallbacks of the current fontset, and the fallbacks of the default
5735 fontset in this order.
5736 (face_for_char): Delete the shortcut to use the current font.
5737 (fontset_from_font): Don't set fonts for Latin in the fontset.
5738
5739 * font.h (font_make_object, font_match_p): Adjust prototypes.
5740
5741 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
5742
5743 * font.c (font_make_object): New arg entity and pixelsize.
5744 (font_check_otf_features, font_check_otf): New functions.
5745 (font_match_p): Check :lang, :script, and :otf properties.
5746
5747 * xfont.c (xfont_open): Adjust it for the change of
5748 font_make_object.
5749 (xfont_text_extents): Fix initial setting of metrics.
5750
5751 * ftfont.c (struct ftfont_info): New member index, delete member
5752 fc_charset_idx. Make the member order compatible with struct
5753 xftfont_info.
5754 (fc_charset_table): Change charset names to registry names.
5755 (ftfont_pattern_entity): Delete the args registry and
5756 fc_charset_idx. Change the value of :font-entity property
5757 to (FONTNAME . INDEX). Always set :registry property to
5758 `iso10646-1'.
5759 (struct ftfont_cache_data): New struct.
5760 (ftfont_lookup_cache): New arg for_face.
5761 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
5762 (ftfont_driver): Set the member otf_capability.
5763 (ftfont_get_charset): Adjust it for the change of
5764 fc_charset_table.
5765 (OTF_TAG_SYM): New macro.
5766 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
5767 for the change of fc_charset_table.
5768 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
5769 ftfont_pattern_entity. Add FC_INDEX to objset.
5770 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
5771 and ftfont_pattern_entity.
5772 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
5773 font_make_object, struct ftfont_info.
5774 (ftfont_has_char): Use ftfont_get_fc_charset.
5775 (ftfont_otf_features, ftfont_otf_capability): New functions.
5776 (ftfont_shape): Use ftfont_get_otf.
5777 (ftfont_text_extents): Fix initial setting of metrics.
5778
5779 * xftfont.c (struct xftfont_info): New member ft_size. Make the
5780 member order compatible with struct ftfont_info.
5781 (xftfont_open): Add FC_CHARSET to the pattern. Set
5782 xftfont_info->ft_size. Don't unlock the face. Check BDF
5783 properties if appropriate.
5784 (xftfont_close): Unlock the face.
5785 (xftfont_anchor_point, xftfont_shape): Deleted.
5786 (syms_of_xftfont): Don't set members anchor_point and shape of
5787 xftfont_driver.
5788
5789 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
5790 font_make_object.
5791
5792 * w32font.c (w32font_open): Adjust it for the change of
5793 font_make_object.
5794 (w32font_open_internal): Don't set properties of font_object here.
5795
57962008-07-08 Chong Yidong <cyd@stupidchicken.com>
5797
5798 * macfns.c (x_create_tip_frame):
5799 * w32fns.c (x_create_tip_frame):
5800 * xfns.c (x_create_tip_frame): Pass parameter argument to
5801 face-set-after-frame-default.
5802
5803 * xfaces.c (Finternal_merge_in_global_face): Save merged
5804 attributes for the default face back into the face vector.
5805
58062008-07-08 Andreas Schwab <schwab@suse.de>
5807
5808 * fontset.h: Declare fontset_from_font. Don't declare
5809 new_fontset_from_font and fontset_from_font_name.
5810 * xterm.c: Include "fontset.h".
5811 * Makefile.in (xterm.o): Update dependencies.
5812
58132008-07-08 Glenn Morris <rgm@gnu.org>
5814
5815 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
5816 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
5817
58182008-07-07 Chong Yidong <cyd@stupidchicken.com>
5819
5820 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
5821 (x_set_frame_parameters): Don't bind it.
5822
58232008-07-07 Juanma Barranquero <lekktu@gmail.com>
5824
5825 * w32fns.c (map_w32_filename): Declare extern.
5826
58272008-07-07 Jason Rumney <jasonr@gnu.org>
5828
5829 * w32term.c (WS_EX_LAYERED): Define if not already.
5830
58312008-07-06 Chong Yidong <cyd@stupidchicken.com>
5832
5833 * xfaces.c (set_font_frame_param): Don't try to set the font
5834 parameter if it is still unspecified in the lface.
5835
58362008-07-05 Chong Yidong <cyd@stupidchicken.com>
5837
5838 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
5839 face if it didn't already exist.
5840
5841 * xdisp.c (try_window_id): Give up if word-wrapping is on.
5842
58432008-07-05 Andreas Schwab <schwab@suse.de>
5844
5845 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
5846
58472008-07-05 Chong Yidong <cyd@stupidchicken.com>
5848
5849 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
5850 word-wrapping.
5851 (IT_DISPLAYING_WHITESPACE): New macro.
5852 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
5853 when word-wrapping. Simplify word-wrapping logic. Use correct
5854 pixel positions when saving copies of the iterator.
5855 (display_line): Use proper wrap point if the last character on a
5856 line was preceded by whitespace.
5857
58582008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
5859
5860 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
5861
58622008-07-04 Kenichi Handa <handa@m17n.org>
5863
5864 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
5865
5866 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
5867
58682008-07-02 Jason Rumney <jasonr@gnu.org>
5869
5870 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 5871 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
5872
5873 * xdisp.c (next_element_from_display_vector): Move assignment out
5874 of if statement.
5875
58762008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
5877
5878 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
5879
5880 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
5881 (syms_of_fileio): Initialize and export them.
5882 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
5883
5884 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
5885 (Fsystem_move_file_to_trash): New function.
5886 (syms_of_w32fns): Export it to lisp.
5887
58882008-07-01 Jason Rumney <jasonr@gnu.org>
5889
5890 * w32font.c (w32font_text_extents): Don't count overhang as part
5891 of width.
5892
58932008-06-30 Miles Bader <miles@gnu.org>
5894
5895 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
5896 Add `avoid_cursor_p' field.
5897
5898 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
5899 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
5900 (append_glyph, append_composite_glyph, produce_image_glyph)
5901 (append_stretch_glyph): Initialize avoid_cursor_p.
5902 (get_it_property): Rename from `get_line_height_property'.
5903 (x_produce_glyphs): Use get_it_property.
5904 (handle_line_prefix, push_display_prop): New functions.
5905 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
5906 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
5907 New variables.
5908 (syms_of_xdisp): Initialize them.
5909
59102008-06-30 Kenichi Handa <handa@m17n.org>
5911
5912 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
5913 XftDefaultSubstitute (they are called in XftFontMatch).
5914 (xftfont_open): Fix args to ftfont_font_format.
5915
5916 * ftfont.c (fc_charset_table): New member lang.
5917 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 5918 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
5919 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
5920 (ftfont_open): Fix args to ftfont_font_format.
5921 (ftfont_font_format): New arg filename.
5922
59232008-06-30 Chong Yidong <cyd@stupidchicken.com>
5924
5925 * xfaces.c (Finternal_merge_in_global_face): If default face was
5926 modified, realize it again. Update the font face attribute.
5927
59282008-06-29 Jason Rumney <jasonr@gnu.org>
5929
5930 * w32term.c (x_set_frame_alpha): Fix logic.
5931
59322008-06-29 Kenichi Handa <handa@m17n.org>
5933
5934 * fontset.c (Finternal_char_font): Return font-object instead of
5935 font-name.
5936
5937 * composite.c (get_composition_id): Fix the width calculation for TAB.
5938
59392008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
5940
5941 * indent.c (Fvertical_motion): Properly handle float column arg.
5942
59432008-06-28 Jason Rumney <jasonr@gnu.org>
5944
5945 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
5946 (pfnSetLayeredWindowAttributes): New function pointer.
5947 (w32_initialize): Initialize it when supported.
5948 (x_set_frame_alpha): New function.
5949
5950 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
5951 (w32_frame_parm_handlers): Set alpha handler.
5952
5953 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
5954
59552008-06-27 Jason Rumney <jasonr@gnu.org>
5956
5957 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
5958 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
5959 (w32_to_x_charset, x_to_w32_charset)
5960 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
5961 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
5962 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
5963 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
5964 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
5965 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
5966 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
5967 (Qw32_charset_unicode): Remove.
5968 (syms_of_w32fns): Update for above changes.
5969
5970 * w32font.c (w32_to_x_charset, x_to_w32_charset)
5971 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
5972 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
5973 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
5974 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
5975 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
5976 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
5977 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
5978 (syms_of_w32font): Update for above changes.
5979
59802008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
5981
5982 * s/usg5-4.h: Fix previous change: keep the correct branch of a
5983 removed #if.
5984 (USG_SHARED_LIBRARIES): Remove duplicate definition.
5985
59862008-06-26 Juanma Barranquero <lekktu@gmail.com>
5987 Eli Zaretskii <eliz@gnu.org>
5988
5989 * makefile.w32-in (LOCAL_FLAGS):
5990 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
5991
5992 * sysdep.c (_spawnlp, _getpid):
5993 Declare with explicit _cdecl instead of _CRTAPI1.
5994
5995 * editfns.c (Fget_internal_run_time):
5996 Check for WINDOWSNT with #ifdef, not #if.
5997
59982008-06-26 Jason Rumney <jasonr@gnu.org>
5999
6000 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
6001
6002 * w32term.c (x_draw_glyph_string_foreground)
6003 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
6004 Use FONT_HANDLE macro.
6005 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
6006
6007 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
6008 (uniscribe_encode_char): Use FONT_HANDLE macro.
6009
6010 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
6011 (w32font_text_extents): Use precast w32_font.
6012 (w32font_close): Free cached metrics.
6013 (w32font_open_internal): Allocate space for name on stack.
6014
60152008-06-26 Chong Yidong <cyd@stupidchicken.com>
6016
6017 * xdisp.c (extend_face_to_end_of_line): Fix last change.
6018
60192008-06-26 Jason Rumney <jasonr@gnu.org>
6020
6021 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
6022 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
6023
60242008-06-26 Juanma Barranquero <lekktu@gmail.com>
6025
6026 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
6027
60282008-06-26 Jason Rumney <jasonr@gnu.org>
6029
6030 * w32bdf.c, w32bdf.h: Remove obsolete files.
6031
6032 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
6033
6034 * w32gui.h: Don't include w32bdf.h.
6035 (XCharStruct, enum w32_char_font_type, W32FontStruct):
6036 Remove obsolete font support.
6037
6038 * w32font.h (struct w32font_info): Remove compat_w32_font.
6039 Add hfont member.
6040 (FONT_COMPAT): Remove obsolete macro.
6041
6042 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
6043 (w32font_encode_char, w32font_text_extents): Use new hfont member.
6044 (w32font_open_internal): Remove compat code. Set new hfont member.
6045 (Fx_select_font): Use new hfont member.
6046
6047 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
6048 (uniscribe_encode_char): Use new hfont member.
6049
6050 * w32term.c (x_draw_glyph_string_foreground)
6051 (x_draw_composite_glyph_string_foreground): Use new hfont member.
6052 (x_draw_glyph_string): Use metrics in w32font_info.
6053
60542008-06-26 Kenichi Handa <handa@m17n.org>
6055
6056 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
6057
60582008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
6059
6060 * unexnext.c:
6061 * m/ews4800.h:
6062 * m/hp9000s300.h:
6063 * m/ibm370aix.h:
6064 * m/mips-siemens.h:
6065 * m/ncr386.h:
6066 * m/next.h:
6067 * m/pmax.h:
6068 * m/powerpcle.h:
6069 * m/tandem-s2.h:
6070 * s/386bsd.h:
6071 * s/bsd386.h:
6072 * s/bsd4-1.h:
6073 * s/bsd4-2.h:
6074 * s/bsdos2-1.h:
6075 * s/bsdos2.h:
6076 * s/bsdos3.h:
6077 * s/bsdos4.h:
6078 * s/nextstep.h:
6079 * s/ultrix4-3.h:
6080 * s/usg5-0.h:
6081 * s/usg5-2-2.h:
6082 * s/usg5-2.h:
6083 * s/usg5-4-3.h:
6084 * s/ux4800.h:
6085 * s/uxpds.h:
6086 * s/uxpv.h: Remove support for obsolete systems.
6087 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 6088 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
6089 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
6090 Remove, insert contents in s/aix4-2.h.
6091 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
6092 * s/bsd4-3.h: Rename to ...
6093 * s/bsd-common.h: ... this.
6094 * data.c:
6095 * doc.c:
6096 * ecrt0.c:
6097 * emacs.c:
6098 * fileio.c:
6099 * floatfns.c:
6100 * keyboard.c:
6101 * mem-limits.h:
6102 * print.c:
6103 * process.c:
6104 * sysdep.c:
6105 * syssignal.h:
6106 * systty.h:
6107 * syswait.h:
6108 * term.c:
6109 * unexec.c:
6110 * unexelf.c:
6111 * unexhp9k800.c:
6112 * m/hp800.h:
6113 * m/ibmrs6000.h:
6114 * m/mips.h:
6115 * m/vax.h:
6116 * s/darwin.h:
6117 * s/freebsd.h:
6118 * s/gnu.h:
6119 * s/ms-w32.h:
6120 * s/msdos.h:
6121 * s/netbsd.h:
6122 * s/template.h: Remove references to obsolete variables.
6123
6124 * Makefile.in: Add dependencies for all unexec files.
6125 (admindir): Remove unused variable.
6126 (UNEXEC_SRC): Remove references.
6127
61282008-06-25 Chong Yidong <cyd@stupidchicken.com>
6129
6130 * xfns.c (x_default_font_parameter): If Xft is available, first
6131 try Monospace-12 for the default font.
6132
61332008-06-25 Jason Rumney <jasonr@gnu.org>
6134
6135 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
6136
61372008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
6138
6139 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
6140
6141 * buffer.c (syms_of_buffer): Remove default-word-wrap.
6142
61432008-06-25 Juanma Barranquero <lekktu@gmail.com>
6144
6145 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
6146 <scroll-conservatively>: Fix typo in docstring.
6147
6148 * xselect.c (Fx_send_client_event): Doc fix.
6149
61502008-06-25 Kenichi Handa <handa@m17n.org>
6151
6152 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
6153
6154 * font.c (font_parse_fcname): Remove unused variables.
6155 (font_sort_entites): Delete the arg SPEC. Caller changed.
6156 Fix for the case of ! best_only.
6157 (font_delete_unmatched): Check DPI and AVGWIDTH too.
6158
6159 * lisp.h (Fstring_to_unibyte): EXFUN it.
6160
6161 * character.h (str_to_unibyte): Extern it.
6162
6163 * character.c (str_to_unibyte): New function.
6164
6165 * fns.c (Fstring_to_unibyte): New function.
6166 (syms_of_fns): Defsubr it.
6167
61682008-06-24 Kenichi Handa <handa@m17n.org>
6169
6170 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
6171 DPI too.
6172 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
6173
61742008-06-24 Andreas Schwab <schwab@suse.de>
6175
6176 * Makefile.in (${lispsource}loaddefs.el): Rename from
6177 ../lisp/loaddefs.el.
6178 (bootstrap-clean): Do what distclean does but don't remove
6179 Makefile.
6180 (distclean): Depend on bootstrap-clean and remove Makefile.
6181
61822008-06-24 Chong Yidong <cyd@stupidchicken.com>
6183
6184 * buffer.h (struct buffer): New member word_wrap.
6185
6186 * buffer.c (syms_of_buffer): New variables default-word-wrap and
6187 word-wrap.
6188 (init_buffer_once): Initialize them.
6189
6190 * dispextern.h (struct it): Replace bool truncate_lines_p with a
6191 line_wrap enum possessing three possible values.
6192
6193 * termopts.h: Replace truncate_partial_width_windows with
6194 Vtruncate_partial_width_windows.
6195
6196 * dispnew.c (direct_output_for_insert): Avoid direct output when
6197 inserting a space with word wrap on.
6198
6199 * indent.c (compute_motion): Obey integer values of
6200 truncate-partial-width-windows.
6201
6202 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
6203 replacing truncate_partial_width_windows.
6204 (init_iterator): If Vtruncate_partial_width_windows is an integer,
6205 truncate only if the window width is below that integer.
6206 (start_display, resize_mini_window, produce_stretch_glyph)
6207 (display_string, move_it_in_display_line_to): Use line_wrap.
6208 (back_to_previous_visible_line_start, reseat_1): Reset
6209 string_from_display_prop_p.
6210 (display_line): Extend default face to end of line when wrapping.
6211
62122008-06-24 Kim F. Storm <storm@cua.dk>
6213
6214 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
6215 to wrap continued lines at word boundaries.
6216
62172008-06-24 Jason Rumney <jasonr@gnu.org>
6218
6219 * font.c (Ffont_face_attributes): Multiply pixel size before point
6220 conversion to avoid multiplying rounding error.
6221
62222008-06-23 Jason Rumney <jasonr@gnu.org>
6223
6224 * w32term.c (x_draw_glyph_string_background)
6225 (x_draw_glyph_string): Remove old bdf font code.
6226
6227 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
6228
62292008-06-22 Kenichi Handa <handa@m17n.org>
6230
6231 * font.c (font_find_for_lface): Try the adstyle specified in
6232 the property of LFACE_FONT of LFACE (if any).
6233
62342008-06-21 Seiji Zenitani <zenitani@mac.com>
6235 Ryo Yoshitake <ryo@shiftmode.net>
6236
6237 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
6238
62392008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
6240
6241 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
6242 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
6243 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
6244 (witness-emacs): Remove.
6245 (lisp, shortlisp): Move loaddefs.el earlier.
6246 (mostlyclean): Forget about witness-emacs.
6247
62482008-06-22 Glenn Morris <rgm@gnu.org>
6249
6250 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
6251 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
6252
62532008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
6254
6255 * Makefile.in (PRECOMP): Remove.
6256 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
6257 (witness-emacs): Run `compile-first'.
6258 (.el.elc): Use the new compile-onefile target.
6259
62602008-06-21 Kenichi Handa <handa@m17n.org>
6261
6262 * xftfont.c (xftfont_open): Handle QCembolden only when
6263 FC_EMBOLDEN is defined.
6264
62652008-06-21 Andreas Schwab <schwab@suse.de>
6266
6267 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
6268 (.el.elc): Likewise.
6269
62702008-06-21 Miles Bader <miles@gnu.org>
6271
6272 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
6273 build dir, not the lisp source dir.
6274
62752008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
6276
6277 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
6278 (bootstrapclean): Remove.
6279 (.el.elc): New rule.
6280 (PRECOMP): New var.
6281 (../lisp/subdirs.el): Remove.
6282 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
6283 (witness-emacs): New target.
6284 (mostlyclean): Remove witness-emacs as well.
6285 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
6286 Add witness-emacs dependency.
6287
62882008-06-20 Chong Yidong <cyd@stupidchicken.com>
6289
6290 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
6291 defined by the font.
6292
62932008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
6294
6295 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
6296 (bootstrap-clean): New target that keeps TAGS around.
6297 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
6298 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
6299
63002008-06-20 Jason Rumney <jasonr@gnu.org>
6301
6302 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
6303 Remove obsolete font code.
6304
6305 * w32font.c (font_matches_spec): Use csb bitfield from font signature
6306 to determine language support.
6307
63082008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
6309
6310 * sysdep.c (cfsetspeed): New fun extracted from the code.
6311 (cfmakeraw): Move before first use.
6312
63132008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
6314
6315 * sysdep.c (cfmakeraw): Provide fallback implementation.
6316 (serial_configure): Provide fallback implementation of cfsetspeed.
6317
63182008-06-20 Kenichi Handa <handa@m17n.org>
6319
6320 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
6321 the pattern.
6322
6323 * fontset.c (fontset_from_font): Copy font_spec before changing
6324 the elements.
6325
6326 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
6327
63282008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
6329
6330 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
6331 for explicit `font' parameters.
6332
6333 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
6334
63352008-06-19 Kenichi Handa <handa@m17n.org>
6336
6337 * frame.c: Include <ctype.h>.
6338 (x_set_font_backend): Allow spacing characters in the X resource
6339 for FontBackend.
6340
63412008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
6342
6343 * w32fns.c, xfns.c (Qfont_param): New var.
6344 (syms_of_w32fns): Initialize it.
6345 (x_default_font_parameter): Record explicit `font' into
6346 `font-parameter'.
6347
63482008-06-18 Kenichi Handa <handa@m17n.org>
6349
6350 * font.c (font_parse_xlfd): Fix previous change.
6351 (font_parse_fcname): Don't use :fc-unknown-spec.
6352 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
6353 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
6354 (font_add_log): Prepend the driver name to the resulting fonts.
6355
6356 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
6357 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
6358 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
6359
6360 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
6361 (QCembolden): New variables.
6362 (syms_of_xftfont): DEFSYM them.
6363 (xftfont_open): Call XftFontMatch. Don't trust the result of
6364 XftTextExtents8 if the pixel_size is less than 5.
6365
63662008-06-18 Andreas Schwab <schwab@suse.de>
6367
6368 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
6369 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
6370
63712008-06-18 Jason Rumney <jasonr@gnu.org>
6372
6373 * w32font.c (w32font_list, w32font_match): Add logging.
6374
6375 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
6376
63772008-06-17 Chong Yidong <cyd@stupidchicken.com>
6378
6379 * font.c (font_parse_fcname): Store divider characters for
6380 unknown-spec list. For known key symbols, intern using correct
6381 symbol name.
6382
63832008-06-17 Kenichi Handa <handa@m17n.org>
6384
6385 * xfaces.c (realize_default_face): If the frame is not on window
6386 system, set the fontset of face to nil.
6387
63882008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
6389
6390 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
6391
63922008-06-16 Juanma Barranquero <lekktu@gmail.com>
6393
6394 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
6395 (build_font_name_from_vector): Delete externs.
6396
6397 * xfaces.c (struct font_name): Don't declare.
6398
63992008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
6400
6401 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
6402
64032008-06-16 Chong Yidong <cyd@stupidchicken.com>
6404
6405 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
6406
64072008-06-16 Juanma Barranquero <lekktu@gmail.com>
6408
6409 * font.c (Ffont_spec): Fix usage in docstring.
6410 (Ffont_face_attributes): Doc fix.
6411
64122008-06-16 Andreas Schwab <schwab@suse.de>
6413
6414 * font.c (Ffont_face_attributes): Fix definition.
6415
64162008-06-16 Jason Rumney <jasonr@gnu.org>
6417
6418 * font.h (font_style_symbolic_from_value): Remove.
6419
6420 * font.c (font_style_symbolic_from_value): Remove.
6421 (font_style_symbolic): Revert to pre 2008-06-13 version.
6422
6423 * w32font.c (w32_to_fc_weight): New function.
6424 (w32font_full_name, logfont_to_fcname): Use it.
6425
64262008-06-16 Kenichi Handa <handa@m17n.org>
6427
6428 * font.c (font_check_object): Delete it.
6429 (font_clear_cache): Check if a font-object is alive.
6430 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
6431 font-object to nil.
6432 (font_close_object): Don't check FONT_CLOSE_OBJECT.
6433 (font_at): Don't call font_check_object.
6434 (Ffont_get): Return a symbol for :weight, :slant, and :width.
6435
64362008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
6437
6438 * puresize.h (BASE_PURESIZE): Increase to 1230000.
6439
64402008-06-16 Chong Yidong <cyd@stupidchicken.com>
6441
6442 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
6443
64442008-06-15 Chong Yidong <cyd@stupidchicken.com>
6445
6446 * font.c (font_parse_fcname): Only one decimal point.
6447 (font_unparse_fcname): Handle data in family and foundry indices
6448 as symbols, not strings.
6449 (font_unparse_gtkname, Ffont_face_attributes): New functions.
6450
6451 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
6452
6453 * font.h (font_unparse_gtkname): Add prototype.
6454
64552008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
6456
6457 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
6458
64592008-06-15 Andreas Schwab <schwab@suse.de>
6460
6461 * font.c (font_update_drivers): Fix crash when no drivers match.
6462
64632008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
6464
6465 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
6466 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
6467
64682008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
6469
6470 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
6471
64722008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
6473
6474 * process.c (Fserial_process_configure, Fprocess_send_eof):
6475 Use EQ to compare Lisp_Objects.
6476
64772008-06-13 Jason Rumney <jasonr@gnu.org>
6478
6479 * w32fns.c (Fw32_select_font): Remove old font API function.
6480
6481 * w32font.c (logfont_to_fcname): New function.
6482 (Fx_select_font): New font dialog function compatible with
6483 GTK/fontconfig version.
6484
6485 * font.c (font_style_symbolic_from_value): New function.
6486 (font_style_symbolic): Use it.
6487
6488 * font.h (font_style_symbolic_from_value): Declare new function.
6489
64902008-06-13 Juanma Barranquero <lekktu@gmail.com>
6491
6492 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
6493 <font-width-table>: Fix typos in docstrings.
6494
64952008-06-13 Daniel Engeler <engeler@gmail.com>
6496
6497 These changes add serial port access.
6498 * process.c: Add HAVE_SERIAL.
6499 (Fdelete_process, Fprocess_status, Fset_process_buffer)
6500 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
6501 (list_processes_1, select_wrapper, Fstop_process)
6502 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
6503 (status_notify): Modify to handle serial processes.
6504 [HAVE_SERIAL] (Fserial_process_configure)
6505 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
6506 New functions.
6507 * process.h (struct Lisp_Process): Add `type'.
6508 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
6509 New functions.
6510 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
6511 serial ports.
b71ac3dd 6512 (serial_open, serial_configure): New functions.
aac0c6e3
MR
6513 * w32.h: Add FILE_SERIAL.
6514 (struct _child_process): Add ovl_read, ovl_write.
6515
65162008-06-13 Kenichi Handa <handa@m17n.org>
6517
6518 * dispextern.h (enum lface_attribute_index): New member
6519 LFACE_FOUNDRY_INDEX.
6520
6521 * font.c (font_score): Delete arg alternate_families. Check only
6522 weight, slant, width, and size. Ignore the difference of alias
6523 style symbols.
6524 (font_sort_entites): Adjust for the above change. Reflect the
6525 order of font-driver to scores.
6526 (font_list_entities): Don't check alternate_familes here.
6527 (font_clear_prop): Handle foundry.
6528 (font_update_lface): Don't parse "foundry-family" form here.
6529 Handle FONT_FOUNDRY_INDEX.
6530 (font_find_for_lface): Likewise. Handle alternate families here.
6531 If registry is nil, try iso8859-1 and ascii-0.
6532 (font_open_for_lface): Pay attention to size in ENTITY.
6533 (font_open_by_name): Simplify by calling font_load_for_lface.
6534 (free_font_driver_list): Delete it.
6535 (font_update_drivers): Preserve the order of backends.
6536 (syms_of_font): Setting of sort_shift_bits adjusted for the change
6537 of font_score and font_sort_entites.
6538 (font_update_sort_order): Likewise.
6539
6540 * xfaces.c (LFACE_FOUNDRY): New macro.
6541 (check_lface_attrs): Check foundry.
6542 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
6543 (merge_face_vectors): Check foundry.
6544 (merge_face_ref): Likewise.
6545 (Finternal_set_lisp_face_attribute): Likewise.
6546 (x_update_menu_appearance): Likewise.
6547 (Finternal_get_lisp_face_attribute): Likewise.
6548 (lface_hash): Likewise.
6549 (lface_same_font_attributes_p): Likewise.
6550 (x_supports_face_attributes_p): Likewise.
6551 (tty_supports_face_attributes_p): Likewise.
6552 (Finternal_set_alternative_font_family_alist): Intern strings.
6553 (Finternal_set_alternative_font_registry_alist): Downcase strings.
6554 (realize_default_face): Set LFACE_FOUNDRY (lface).
6555
6556 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
6557 font-driver at first.
6558
6559 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
6560
65612008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
6562
6563 * lread.c (Fload): Use xfree, not free on saved_doc_string.
6564
65652008-06-12 Jim Meyering <meyering@redhat.com>
6566
6567 Make unexec_free handle NULL the same way free does.
6568 * unexmacosx.c (unexec_free): Ignore a NULL argument.
6569
65702008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
6571
6572 * character.h (CHAR_TO_BYTE_SAFE): New macro.
6573 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
6574 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
6575 (WEAK_ALIAS): Simplify.
6576 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
6577 when searching a unibyte buffer.
6578
65792008-06-12 Chong Yidong <cyd@stupidchicken.com>
6580
6581 * xfns.c (Fx_select_font): Rename from x-font-dialog.
6582
65832008-06-12 Juanma Barranquero <lekktu@gmail.com>
6584
6585 * w32font.c: Include ctype.h.
6586
65872008-06-11 Jason Rumney <jasonr@gnu.org>
6588
6589 * w32font.c (w32font_encode_char): Detect missing glyphs that are
6590 misreported as space.
6591 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
6592 as aliases for registry iso10646-1.
6593
65942008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
6595
6596 * buffer.c (clone_per_buffer_values): Skip `name'.
6597
65982008-06-11 Chong Yidong <cyd@stupidchicken.com>
6599
6600 * font.c (font_parse_fcname): Fix last change; accept decimal
6601 points in font size.
6602
66032008-06-10 Jason Rumney <jasonr@gnu.org>
6604
6605 * w32uniscribe.c (add_opentype_font_name_to_list):
6606 Skip non unicode fonts.
6607
66082008-06-10 Chong Yidong <cyd@stupidchicken.com>
6609
6610 * xfns.c (Fx_font_dialog): New function.
6611
6612 * gtkutil.c (xg_dialog_response_cb): Rename from
6613 xg_file_response_callback.
6614 (pop_down_dialog): Rename from pop_down_file_dialog.
6615 (xg_get_file_name): Callers changed.
6616 (xg_get_font_name): New function.
6617
6618 * gtkutil.h (xg_get_font_name): Insert prototype.
6619
66202008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
6621
6622 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
6623 x_underline_minimum_display_offset.
6624 (syms_of_xdisp): Declare it here rather than in xterm.c.
6625 * dispextern.h (underline_minimum_offset): Declare it.
6626 * w32term.c (x_draw_glyph_string): Use it.
6627 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
6628 (syms_of_xterm): Don't declare it any more.
6629 (x_draw_glyph_string): Adjust to the new name.
6630
66312008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
6632
6633 * xterm.c (x_underline_minimum_display_offset): New var.
6634 (x_draw_glyph_string): Use it.
6635 (syms_of_xterm): Declare it.
6636
66372008-06-10 Chong Yidong <cyd@stupidchicken.com>
6638
6639 * font.c (font_parse_fcname): Accept GTK-style font names too.
6640
66412008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
6642
6643 * dired.c (file_name_completion): Don't return t if the match is exact
6644 but with different capitalization.
6645 * minibuf.c (Ftry_completion): Simplify.
6646
6647 * window.c (Vwindow_point_insertion_type): New var.
6648 (set_window_buffer): Use it.
6649 (syms_of_window): Init and export it to Lisp.
6650
66512008-06-10 Kenichi Handa <handa@m17n.org>
6652
6653 * font.h (font_intern_prop): Prototype adjusted.
6654
6655 * font.c (font_intern_prop): New arg force_symbol.
6656 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
6657 Adjust for the change of font_intern_prop.
6658
6659 * ftfont.c (ftfont_pattern_entity):
6660 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
6661 (w32_registry):
6662 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
6663 the change of font_intern_prop.
6664
66652008-06-09 Juanma Barranquero <lekktu@gmail.com>
6666
6667 * w32menu.c (digest_single_submenu): Declare extern.
6668
66692008-06-09 Jason Rumney <jasonr@gnu.org>
6670
6671 * w32term.c (x_make_frame_visible): Use alternate restore flags.
6672
6673 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
6674 (parse_single_submenu): Remove.
6675 (digest_single_submenu): Remove.
6676 (syms_of_w32menu): Don't initialise variables that have moved
6677 to menu.c.
6678 (set_frame_menubar): Sync with version in xmenu.c.
6679 (w32_menu_show): Sync with xmenu_show in xmenu.c.
6680
6681 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
6682 Make static again.
6683
66842008-06-09 Jason Rumney <jasonr@gnu.org>
6685
6686 Changes to w32 files related to the move of common menu code
6687 to menu.c on 2008-06-08 by Chong Yidong.
6688
6689 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
6690 defs to w32gui.h.
6691 (single_keymap_panes, push_menu_item, push_menu_pane):
6692 Make globally visible.
6693
6694 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
6695 (local_free, malloc_widget_value, free_widget_value)
6696 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
6697 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
6698 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
6699 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
6700 (menu_items, menu_items_allocated, menu_items_used)
6701 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
6702 (init_menu_items, finish_menu_items, discard_menu_items)
6703 (grow_menu_items, push_submenu_start, push_submenu_end)
6704 (push_left_right_boundary, push_menu_pane, push_menu_item)
6705 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
6706 (free_menubar_widget_tree_value, parse_single_submenu)
6707 (update_submenu_strings): Remove functions.
6708 (xmalloc_widget_value): Remove and declare extern.
6709
6710 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
6711 (OBJ1): Build it.
6712
6713 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
6714 (local_heap, local_alloc, local_free, malloc_widget_value)
6715 (free_widget_value): Define here.
6716
67172008-06-09 Kenichi Handa <handa@m17n.org>
6718
6719 * font.h (Qascii_0): Extern it.
6720
6721 * font.c (Qascii_0): New variable.
6722 (syms_of_font): DEFSYM it.
6723 (font_open_by_name): If the registry "iso8859-1" fails, try also
6724 "ascii-0".
6725
6726 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
6727
67282008-06-08 Kenichi Handa <handa@m17n.org>
6729
6730 * .gdbinit (xfont): New command.
6731
67322008-06-08 Andreas Schwab <schwab@suse.de>
6733
6734 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
6735 * Makefile.in (menu.o): Update dependencies.
6736
6737 * Makefile.in (obj): Always add menu.o.
6738 * emacs.c (main): Always call syms_of_menu.
6739 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
6740
67412008-06-08 Chong Yidong <cyd@stupidchicken.com>
6742
6743 * Makefile.in: Compile menu.c.
6744
6745 * lisp.h: Declare syms_of_menu.
6746
6747 * emacs.c (main): Call syms_of_menu.
6748
6749 * keyboard.h: Relocate platform-independent menu definitions from
6750 xmenu.c.
6751
6752 * menu.c: New file. Relocate platform-independent menu
6753 definitions from xmenu.c. Suggested by Adrian Robert.
6754
6755 * xmenu.c: Remove platform-independent menu definitions.
6756 (menu_items menu_items_inuse, menu_items_allocated)
6757 (menu_items_used, menu_items_n_panes)
6758 (menu_items_submenu_depth): Move to keyboard.h.
6759 (init_menu_items, finish_menu_items, unuse_menu_items)
6760 (discard_menu_items, restore_menu_items, save_menu_items)
6761 (grow_menu_items, push_submenu_start, push_submenu_end)
6762 (push_left_right_boundary, push_menu_pane, push_menu_item)
6763 (keymap_panes, single_keymap_panes, single_menu_item)
6764 (list_of_panes, list_of_items, find_and_call_menu_selection)
6765 (xmalloc_widget_value, free_menubar_widget_value_tree)
6766 (parse_single_submenu, digest_single_submenu)
6767 (update_submenu_strings): Move to menu.c.
6768
67692008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
6770
6771 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
6772
67732008-06-06 Miles Bader <miles@gnu.org>
6774
6775 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
6776 face, not frame default.
6777
67782008-06-05 Martin Rudalics <rudalics@gmx.at>
6779
6780 * window.c (pop_up_windows, pop_up_frames)
6781 (display_buffer_reuse_frames, Vpop_up_frame_function)
6782 (Vdisplay_buffer_function, Veven_window_heights)
6783 (Vspecial_display_buffer_names, Vspecial_display_regexps)
6784 (Vspecial_display_function, Vsame_window_buffer_names)
6785 (Vsame_window_regexps, split_height_threshold)
6786 (Vsplit_window_preferred_function): Move those vars to window.el.
6787 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
6788 (Fdisplay_buffer): Move those functions to window.el.
6789 (syms_of_window): Remove corresponding declarations.
6790 (display_buffer): New function.
6791 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
6792 * dispnew.c (Flast_nonminibuf_frame): New function.
6793 * buffer.c (Fpop_to_buffer): Move to window.el.
6794
67952008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
6796
6797 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
6798
67992008-06-05 Kenichi Handa <handa@m17n.org>
6800
6801 * coding.c (detect_coding): Fix previous change.
6802 (detect_coding_system): Likewise.
6803
68042008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
6805
6806 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
6807
6808 * keymap.c (Vminibuffer_local_filename_must_match_map):
6809 Rename from Vminibuffer_local_must_match_filename_map.
6810 (syms_of_keymap):
6811 * minibuf.c (Fcompleting_read): Adjust accordingly.
6812 * commands.h: Rename declaration as well.
6813
68142008-06-05 Kenichi Handa <handa@m17n.org>
6815
6816 * font.c (Ffont_spec): Don't use font_parse_family_registry for
6817 family name.
6818 (Ffont_put): Likewise.
6819
6820 * fontset.c (fontset_find_font): Call font_open_for_lface with the
6821 current font-spec.
6822
6823 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
6824 is unspecified.
6825
6826 * xfaces.c (realize_x_face): If the font-related face attributes
6827 are the same as those of default face, realize a new fontset from
6828 default->fontset.
6829 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
6830
68312008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
6832
6833 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
6834 (move_it_in_display_line): New wrapper.
6835
6836 * window.c (window_scroll_pixel_based_preserve_x)
6837 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
6838 (window_scroll_pixel_based, window_scroll_line_based):
6839 Use them to preserve column positions.
6840 (syms_of_window): Initialize them.
6841
6842 * indent.c (Fvertical_motion): Extend first arg to allow passing an
6843 (HPOS . VPOS) pair.
6844
6845 * dispextern.h (move_it_in_display_line): Declare.
6846
68472008-06-05 Juanma Barranquero <lekktu@gmail.com>
6848
6849 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
6850 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
6851 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
6852
68532008-06-04 Juanma Barranquero <lekktu@gmail.com>
6854
6855 * window.c (Fset_window_parameter): Doc fix.
6856 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
6857
68582008-06-04 Joakim Verona <joakim@verona.se>
6859
6860 * window.h (struct window): Add new member window_parameters.
6861
6862 * window.c (Fwindow_parameters, Fwindow_parameter)
6863 (Fset_window_parameter): New defuns.
6864 (syms_of_window): Defsubr the new defuns.
6865 (make_window): Initialize window_parameters to nil.
6866
68672008-06-04 John Paul Wallington <jpw@pobox.com>
6868
6869 * eval.c (Fdefmacro): Doc fix.
6870
68712008-06-04 Kenichi Handa <handa@m17n.org>
6872
6873 * coding.c (detect_coding): Fix handling of coding->head_ascii.
6874 Be sure to call setup_coding_system when we find a proper coding system.
6875 (detect_coding_system): Fix handling of coding->head_ascii.
6876
68772008-06-03 Andreas Schwab <schwab@suse.de>
6878
6879 * font.c (font_prop_validate_spacing): Fix last change.
6880
68812008-06-03 Kenichi Handa <handa@m17n.org>
6882
6883 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
6884 (font_parse_fcname): Fix handling of unknown key.
6885
6886 * xfont.c (xfont_list): Try an alias.
6887
6888 * charset.c (char_charset): Return NULL if the arg charset_list is
6889 specified and C doesn't belong to any of them.
6890
68912008-06-02 Chip Coldwell <coldwell@redhat.com>
6892
6893 * font.c (font_pixel_size): Don't take cdr of an integer.
6894
68952008-06-02 Jim Meyering <meyering@redhat.com>
6896
6897 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
6898 * alloc.c (xfree): Return right away for a NULL arg.
6899 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
6900 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
6901 * mac.c (create_apple_event_from_event_ref): Likewise.
6902 (create_apple_event_from_drag_ref, cfstring_create_normalized):
6903 Likewise.
6904 * doprnt.c (doprnt1): Likewise.
6905 * frame.c (frame): Likewise.
6906 * keyboard.c (wipe_kboard): Likewise.
6907 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
6908 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
6909 * term.c (tty_default_color_capabilities, maybe_fatal)
6910 (delete_tty): Likewise.
6911 * w16select.c (string): Likewise.
6912 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
6913 * w32bdf.c (w32_free_bdf_font): Likewise.
6914 * w32fns.c (w32_unload_font): Likewise.
6915 * w32font.c (w32font_close): Likewise.
6916 * window.c (size_window): Likewise.
6917 * xselect.c (receive_incremental_selection): Likewise.
6918 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
6919 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
6920 * w32.c (stat): Likewise.
6921
6922 Remove useless if-before-free tests.
6923 * editfns.c (Fset_time_zone_rule): Likewise.
6924 * lread.c (nosuffix): Likewise.
6925 * ralloc.c (get_bloc): Likewise.
6926 * regex.c (reg_free): Likewise.
6927 * xftfont.c (xftfont_open, xftfont_close): Likewise.
6928 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
6929 * xsmfns.c (smc_save_yourself_CB): Likewise.
6930
69312008-06-02 Kenichi Handa <handa@m17n.org>
6932
6933 * font.c (font_find_for_lface): Handle float font size.
6934 (font_open_for_lface): Likewise.
6935
6936 * xfaces.c (x_supports_face_attributes_p): Check face->font before
6937 comparing the properties.
6938
69392008-06-01 Jason Rumney <jasonr@gnu.org>
6940
6941 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
6942 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
6943 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
6944 Don't add empty script list.
6945 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
6946
69472008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
6948
6949 * Makefile.in (dot, dotdot): Remove, update users.
6950 ".." has been used elsewhere in the file for a long time.
6951 (LIBXT_STATIC): Remove conditional based on unused variable.
6952
69532008-06-01 Miles Bader <miles@gnu.org>
6954
6955 * xfaces.c (Vface_remapping_alist): New variable.
6956 (syms_of_xfaces): Initialize it.
6957 (enum named_merge_point_kind): New type.
6958 (struct named_merge_point): Add `named_merge_point_kind' field.
6959 (push_named_merge_point): Make cycle detection respect different
6960 named-merge-point kinds.
6961 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
6962 Remove face-name alias resolution.
6963 (lface_from_face_name): New definition using
6964 `lface_from_face_name_no_resolve'.
6965 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
6966 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
6967 (get_lface_attributes): New definition that layers face-remapping on
6968 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
6969 (lookup_basic_face): New function.
6970 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
6971 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
6972 `get_lface_attributes'.
6973 (face_at_buffer_position): Use `lookup_basic_face' to lookup
6974 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
6975 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
6976
6977 * xdisp.c (init_iterator): Pass base_face_id through
6978 `lookup_basic_face' when we actually use it as a face-id.
6979 (handle_single_display_prop): Use `lookup_basic_face' to lookup
6980 DEFAULT_FACE_ID.
6981
6982 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
6983 lookup the initial face-id.
6984
6985 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
6986
69872008-06-01 Juanma Barranquero <lekktu@gmail.com>
6988
6989 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
6990 (Fremove_text_properties): Fix typos in docstrings.
6991
69922008-05-31 Kenichi Handa <handa@m17n.org>
6993
6994 * font.c (font_list_entities): Fix the car part of data to be
6995 stored in the cache.
6996
6997 * ftfont.c (ftfont_font_format): Don't use strcasestr.
6998
69992008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
7000
7001 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
7002 Add a `test' argument so another predicate than `equal' can be used.
7003 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
7004 (map_char_table): Remove unused vars `c' and `i'.
7005 * lisp.h (Foptimize_char_table): Adjust declaration.
7006 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
7007
70082008-05-30 Kenichi Handa <handa@m17n.org>
7009
7010 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
7011 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
7012 defined.
7013
70142008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
7015
7016 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
7017 (Fmake_variable_frame_local): Disallow mixing buffer-local and
7018 frame-local settings for the same variable.
7019
70202008-05-30 Kenichi Handa <handa@m17n.org>
7021
7022 * fontset.c (Ffont_info): Move to font.c.
7023 (syms_of_fontset): Delete defsubr of Sfont_info.
7024
7025 * font.c (font_style_to_value, font_score): Delete casting of the
7026 args to xstcasecmp.
7027 (register_font_driver): Increment num_font_drivers only when
7028 registering the driver globally.
7029 (Ffont_info): Move from fontset.c. Handle a font object too.
7030 (syms_of_font): Defsubr Sfont_info.
7031
70322008-05-29 Kenichi Handa <handa@m17n.org>
7033
7034 * coding.h (enum define_coding_utf8_arg_index): New enum.
7035 (enum coding_attr_index): Change coding_attr_utf_16_bom to
7036 coding_attr_utf_bom.
7037 (enum utf_bom_type): Rename from utf_16_bom_type.
7038 (struct utf_16_spec): Adjust for the above change.
7039 (struct coding_system): Add utf_8_bom in `spec' union.
7040
7041 * coding.c (CODING_UTF_8_BOM): New macro.
7042 (enum coding_category): Delete coding_category_utf_8, add
7043 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
7044 coding_category_utf_8_sig.
7045 (CATEGORY_MASK_UTF_8): Delete it.
7046 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
7047 (CATEGORY_MASK_UTF_8_SIG): New macros.
7048 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
7049 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
7050 CATEGORY_MASK_UTF_8_SIG.
7051 (CATEGORY_MASK_UTF_8): New macro.
7052 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
7053 (detect_coding_utf_8): Check BOM.
7054 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
7055 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
7056 (encode_coding_utf_16): Likewise.
7057 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
7058 (detect_coding, detect_coding_system): Handle utf-8-auto.
7059 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
7060 (syms_of_coding): Fix setting up of Vcoding_category_table.
7061
70622008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
7063
7064 * process.c (Faccept_process_output): If `millisec' is non-nil,
7065 `seconds' default to 0.
7066 (wait_reading_process_output): Also return non-nil if we read output
7067 from a non-running process.
7068
70692008-05-29 Jason Rumney <jasonr@gnu.org>
7070
7071 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
7072 `raster' specified.
7073 (add_font_entity_to_list): Allow non-opentype truetype fonts back
7074 in the uniscribe backend, but disallow any font that has no
7075 unicode subrange support.
7076
70772008-05-29 Juanma Barranquero <lekktu@gmail.com>
7078
7079 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
7080 Fix typos in docstrings.
7081
70822008-05-29 Kenichi Handa <handa@m17n.org>
7083
7084 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
7085 (Fx_family_fonts): Set frame correctly.
7086
70872008-05-28 Jason Rumney <jasonr@gnu.org>
7088
7089 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
7090
70912008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
7092
7093 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
7094 calling build_annotations.
7095
70962008-05-28 Juanma Barranquero <lekktu@gmail.com>
7097
7098 * coding.c (Fdecode_coding_region, Fencode_coding_region)
7099 (Fencode_coding_string):
7100 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
7101 <latin-extra-code-table>: Fix typos in docstrings.
7102 (syms_of_coding) <coding-system-alist>: Doc fix.
7103 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
7104
71052008-05-28 Kenichi Handa <handa@m17n.org>
7106
7107 * fontset.c (Ffont_info): Don't call font_close_object.
7108
7109 * font.c (font_parse_family_registry): Use Ffont_put to validate
7110 foundry and family.
7111 (font_delete_unmatched): Don't check spacing.
7112 (font_list_entities): Add spacing to the spec to list fonts.
7113
7114 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
7115 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
7116
7117 * coding.c (encode_coding_raw_text): Fix previous change.
7118 (encode_coding_object): When the dst_object is a buffer and is
7119 different from src_object, move gap to PT.
7120
71212008-05-27 Chong Yidong <cyd@stupidchicken.com>
7122
7123 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
7124
71252008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
7126
7127 * coding.c (encode_coding_raw_text): Set coding->produced_char for
7128 all branches. Compute it differently.
7129
7130 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
7131
71322008-05-27 Juanma Barranquero <lekktu@gmail.com>
7133
7134 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
7135 into "else if () ... else ...".
7136
71372008-05-27 Jason Rumney <jasonr@gnu.org>
7138
7139 * w32font.c (w32font_open_internal): Determine if glyph indices
7140 are likely to work here.
7141
71422008-05-27 Chong Yidong <cyd@stupidchicken.com>
7143
7144 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
7145 draw overlap glyphs with appropriate highlighting.
7146
71472008-05-27 Kenichi Handa <handa@m17n.org>
7148
7149 * xfont.c (xfont_open): Fix calculation of font->average_width.
7150
71512008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
7152
7153 * casefiddle.c (casify_object): Try to guess better whether the
7154 argument is a byte or a char.
7155
71562008-05-26 Andreas Schwab <schwab@suse.de>
7157
7158 * xselect.c (x_reply_selection_request): Properly handle format == 32.
7159 Always send multiples of format size.
7160
7161 * xterm.c (x_set_frame_alpha): Fix type mismatch.
7162
71632008-05-26 Jason Rumney <jasonr@gnu.org>
7164
7165 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
7166 (compute_metrics): Don't set failure if we just cleared the cache.
7167 (w32_weight_table): Remove unused variable.
7168 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
7169 backwards compatibility.
7170
71712008-05-25 Kenichi Handa <handa@m17n.org>
7172
7173 * w32term.c (x_draw_glyph_string):
7174 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
7175
7176 * xfaces.c: Delete unused function prototypes.
7177 (xstrlwr, font_frame): Delete them.
7178 (clear_face_cache): Delete unused variable.
7179
7180 * xftfont.c (xftfont_open): Delete unused variable.
7181 If underline_thickness is not 1, adjust underline_position.
7182
7183 * ftxfont.c (ftxfont_open): Delete unused variable.
7184
7185 * fontset.c (face_for_char): Optimize for the case of no charset
7186 property.
7187
7188 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
7189 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
7190 (otf_open, font_otf_capability, generate_otf_features)
7191 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
7192 Comment out by surrounding "#if 0" and "#endif" for the moment.
7193 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
7194 (syms_of_font): Codes for accessing above commented out.
7195
71962008-05-24 Eli Zaretskii <eliz@gnu.org>
7197
7198 * w32proc.c: Include dispextern.h.
7199
7200 * w32.c: Include dispextern.h.
7201
72022008-05-23 Juanma Barranquero <lekktu@gmail.com>
7203
7204 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
7205 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
7206 Fix typos in docstrings.
7207
72082008-05-23 Jason Rumney <jasonr@gnu.org>
7209
7210 * xsmfns.c: Remove includes that are already included by config.h.
7211
72122008-05-23 Kenichi Handa <handa@m17n.org>
7213
7214 * charset.c (Qemacs, charset_emacs): New variables.
7215 (char_charset): Fix for non-Unicode characters.
7216 (syms_of_charset): Define charset_emacs.
7217
7218 * w32term.c (x_draw_glyph_string): Be sure to update
7219 s->underline_thickness and s->underline_position. Be sure to draw
7220 underline within the current line area.
7221
7222 * xterm.c (x_draw_glyph_string): Be sure to update
7223 s->underline_thickness and s->underline_position. Be sure to draw
7224 underline within the current line area.
7225
7226 * fontset.c: Delete unused variables and add casting for char *
7227 throughout the file.
7228 (fontset_font): Try the fallback fonts of the current fontset
7229 before consulting the default fontset.
7230
7231 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
7232
7233 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
7234
72352008-05-22 Jason Rumney <jasonr@gnu.org>
7236
7237 * font.c: Don't include strings.h.
7238
7239 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
7240
7241 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
7242 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
7243 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
7244 to call xstrcasecmp.
7245
7246 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
7247
7248 * fontset.c (fs_query_fontset): Use xstrcasecmp.
7249
7250 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
7251
7252 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
7253
72542008-05-22 Kenichi Handa <handa@m17n.org>
7255
7256 * puresize.h (BASE_PURESIZE): Increase to 1220000.
7257
7258 * font.c (font_prop_validate_style): Adjust for the format
7259 change of font_style_table.
7260
7261 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
7262 two args.
7263
7264 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
7265 two args.
7266
72672008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
7268
7269 * minibuf.c (keys_of_minibuf): Delete.
7270 * lisp.h (keys_of_minibuf): Delete.
7271 * emacs.c (main): Don't call keys_of_minibuf.
7272
72732008-05-22 Kenichi Handa <handa@m17n.org>
7274
7275 * ftfont.c (ftfont_resolve_generic_family): Rename from
7276 ftfont_list_generic_family. Return a single family for each
7277 generic family.
7278 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
7279 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
7280 Call font_add_log.
7281 (ftfont_match): Call font_add_log.
7282
7283 * font.h (Ffont_xlfd_name): EXFUN adjusted.
7284 (FONT_DEBUG): Define it.
7285 (font_add_log): Extern it.
7286 (font_assert): Rename from xassert.
7287
7288 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
7289 (xfont_list_family): Call font_add_log.
7290 (xfont_match): Likewise.
7291 (memq_no_quit): Delete.
7292
7293 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
7294 call of Ffont_xlfd_name.
7295
7296 * xfaces.c (struct table_entry, slant_table, weight_table)
7297 (swidth_table): Move to font.c.
7298
7299 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
7300 xassert are changed to font_assert. Delete many unused variables.
7301 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
7302 New variables.
7303 (struct table_entry): Move from xfaces.c and modified.
7304 (weight_table, slant_table, width_table): Move from xfaces.c and
7305 contents adjusted for the change of struct table_entry.
7306 (font_style_to_value, font_style_symbolic): Adjust for the
7307 format change of font_style_table.
7308 (font_parse_family_registry): Don't overwrite existing foundry and
7309 family of font_spec.
7310 (font_score): Fix calculation of diff for sizes.
7311 (font_sort_entites): Call font_add_log.
7312 (font_delete_unmatched): Return a newly created list.
7313 (font_list_entities): Fix previous change. Call font_add_log.
7314 (font_matching_entity, font_open_entity, font_close_entity):
7315 Call font_add_log.
7316 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
7317 (Finternal_set_font_style_table): Delete.
7318 (BUILD_STYLE_TABLE): New macro.
7319 (build_style_table): New function.
7320 (Vfont_log, font_log_env_checked): New variables.
7321 (font_add_log): New function.
7322 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
7323 Declare Lisp variables "font-weight-table", "font-slant-table",
7324 "font-width-table", and "font-log". Initialize font_style_table.
7325
73262008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
7327
7328 * xterm.c (x_set_frame_alpha): Move declarations before statements.
7329
73302008-05-21 Seiji Zenitani <zenitani@mac.com>
7331 Ryo Yoshitake <ryo@shiftmode.net>
7332
7333 * frame.c (Qalpha): Add a new frame parameter `alpha'.
7334 (Vframe_alpha_lower_limit): New variable.
7335 (x_set_alpha): New function.
7336
7337 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
7338
7339 * xfns.c (x-create-frame, Qalpha):
7340 Initialize the frame parameter `alpha'.
7341 * xterm.c (OPAQUE, OPACITY): New.
7342 (x_set_frame_alpha): New function.
7343 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
7344
7345 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
7346 * w32fns.c (w32_frame_parm_handlers): Likewise.
7347
73482008-05-20 Jason Rumney <jasonr@gnu.org>
7349
7350 * w32font.c (add_font_entity_to_list): Don't add non-opentype
7351 truetype fonts to opentype list.
7352
73532008-05-20 Juanma Barranquero <lekktu@gmail.com>
7354
7355 * fontset.c (Ffontset_info): Doc fix.
7356 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
7357 <ignore-relative-composition>: Fix typos in docstrings.
7358
7359 * font.c (syms-of-font) <font-encoding-alist>:
7360 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
7361 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
7362 (Ffont_otf_alternates): Doc fixes.
7363
73642008-05-20 Kenichi Handa <handa@m17n.org>
7365
7366 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
7367 font.h through out the file.
7368 (FONT_DRIVERS): Rename from FONTOBJ.
7369 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
7370 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
7371
7372 * emacs.c (main): Call syms_of_font unconditionally.
7373
7374 * font.h (find_font_encoding): Extern it.
7375
7376 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
7377 fontset.c.
7378 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
7379 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
7380 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
7381 only when HAVE_WINDOW_SYSTEM is defined.
7382 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
7383 when HAVE_WINDOW_SYSTEM is defined.
7384
7385 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
7386 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
7387
7388 * xfaces.c: Include font.h unconditionally.
7389 (merge_face_ref, merge_face_vectors)
7390 (Finternal_set_lisp_face_attribute): Cancel the previous change.
7391
73922008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
7393
7394 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
7395 indirect_variable.
7396 * eval.c (lisp_indirect_variable): New fun.
7397 (Fuser_variable_p): Use it.
7398
73992008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
7400
7401 * lisp.h (indirect_variable):
7402 * data.c (indirect_variable, let_shadows_buffer_binding_p):
7403 Use Lisp_Symbol pointers rather than Lisp_Object.
7404 Adjust callers.
7405 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
7406 To this end, change calling-convention.
7407
7408 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
7409 if some non-hidden buffers are selected by string&pred.
7410
74112008-05-19 Chong Yidong <cyd@stupidchicken.com>
7412
7413 * process.c (wait_reading_process_output): Always check status
7414 when in batch mode.
7415
74162008-05-19 Kenichi Handa <handa@m17n.org>
7417
7418 * font.c (font_list_entities): Fix handling of cache.
7419 (font_matching_entity): Likewise.
7420
7421 * ftfont.c (cs_iso8859_1): Delete.
7422 (ft_face_cache): New variable.
7423 (struct ftfont_info): New member fc_charset_idx.
7424 (ftfont_build_basic_charsets): Delete.
7425 (fc_charset_table): New variable.
7426 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
7427 . FC_CHARSET_IDX) as :font-entity property in the font entity.
7428 Callers changed.
7429 (ftfont_lookup_cache, ftfont_get_charset): New functions.
7430 (ftfont_spec_pattern): New argument fc_charset_idx.
7431 Check registry more rigidly. Change callers.
7432 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
7433 change of :font-entity property of the font.
7434
7435 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
7436 property of the font.
7437
74382008-05-18 Juanma Barranquero <lekktu@gmail.com>
7439
7440 * coding.c (Fcoding_system_p): Rename argument to match docstring.
7441 (Funencodable_char_position, Fcheck_coding_systems_region)
7442 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
7443 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
7444 (Ffind_operation_coding_system, Fset_coding_system_priority)
7445 (Fcoding_system_eol_type): Doc fixes.
7446
74472008-05-17 Glenn Morris <rgm@gnu.org>
7448
7449 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
7450
74512008-05-16 Eli Zaretskii <eliz@gnu.org>
7452
7453 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
7454 and st_gid.
7455
7456 * frame.c (Fdelete_frame): Don't call font_update_drivers if
7457 HAVE_WINDOW_SYSTEM is not defined.
7458
7459 * xfaces.c (merge_face_ref, merge_face_vectors)
7460 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
7461 HAVE_WINDOW_SYSTEM is defined.
7462 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
7463
74642008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
7465
7466 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
7467
74682008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7469
7470 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
7471
74722008-05-15 Kenichi Handa <handa@m17n.org>
7473
7474 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
7475 preference.
7476
74772008-05-15 Glenn Morris <rgm@gnu.org>
7478
7479 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
7480
74812008-05-15 Chong Yidong <cyd@stupidchicken.com>
7482
7483 * fns.c (init_fns): Don't initialize weak_hash_tables here.
7484 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
7485
7486 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
7487
74882008-05-15 Kenichi Handa <handa@m17n.org>
7489
7490 * ftfont.c (ftfont_list): Downcase family name to check generic
7491 families.
7492
7493 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
7494 font-spec for QCfont value.
7495
7496 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
7497 buffer. Check the return value of it.
7498
74992008-05-14 Jason Rumney <jasonr@gnu.org>
7500
7501 * w32term.c (w32_get_glyph_overhangs): Remove.
7502 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
7503
75042008-05-14 Kenichi Handa <handa@m17n.org>
7505
7506 * font.c (font_prop_validate): Make nil a valid value.
7507 (font_clear_cache): Check if the cached vector of entities is nil
7508 or not.
7509
75102008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7511
7512 * emacs.c (main_thread): Conditionalize on
7513 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
7514 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
7515
7516 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
7517 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
7518 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
7519
75202008-05-14 Kenichi Handa <handa@m17n.org>
7521
7522 * coding.c (detect_coding_iso_2022): Ignore a coding category that
7523 has no corresponding coding system.
7524
75252008-05-14 Jason Rumney <jasonr@gnu.org>
7526
7527 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
7528
7529 * w32font.h (w32font_open_internal): Update declaration.
7530
7531 * w32font.c (w32font_open_internal): Change last argument from
7532 w32font_info struct to font object. Fill in font object from
7533 font_entity. Get Outline metrics if possible. Use them to
7534 calculate underline position and thickness. Use xlfd name as name
7535 property. Don't set codepage.
7536 (w32font_open): Pass font_object to w32font_open_internal. Don't
7537 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
7538 (w32font_draw): Use s->font.
7539 (clear_cached_metrics): Don't clear non-existent blocks.
7540
7541 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
7542 font was not found.
7543 (x_draw_glyph_string): Use underline position and thickness from font.
7544
7545 * w32uniscribe.c (uniscribe_open): Pass font_object to
7546 w32font_open_internal.
7547
75482008-05-14 Kenichi Handa <handa@m17n.org>
7549
7550 These changes are to delete all legacy font-handling codes, and
7551 make Emacs use only font-backends.
7552
7553 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
7554 (frame.o, image.o, print.o): Depend on $(FONTSRC).
7555
7556 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
7557
7558 * charset.h (Vcharset_non_preferred_head)
7559 (Vcurrent_iso639_language): Extern them.
7560
7561 * charset.c (Vcharset_non_preferred_head): New variable.
7562 (Vcurrent_iso639_language): New variable.
7563 (syms_of_charset): Declare it as a Lisp variable.
7564 (char_charset): Don't check non preferred charsets. As a last
7565 resort, return charset_unicode.
7566 (Fset_charset_priority): Update Vcharset_non_preferred_head.
7567
7568 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
7569 conditionals. Don't check enable_font_backend. Delete all codes
7570 used only when USE_FONT_BACKEND is not defined.
7571
7572 * dispextern.h (struct glyph_string): Change type of `font' to
7573 `struct font *'.
7574 (struct glyph_string): New member underline_position and
7575 underline_thickness.
7576 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
7577 (struct face): Change type of `font' to `struct font *'. Remove
7578 members `font_name', `font_info_id'.
7579 (per_char_metric, encode_char): Delete externs.
7580 (calc_pixel_width_or_height): Adjust the prototype.
7581
7582 * emacs.c (enable_font_backend): Delete extern.
7583 (main): Don't set enable_font_backend. Don't check the command
7584 line argument "-disable-font-backend".
7585
7586 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
7587 (enum font_property_index): New members FONT_DPI_INDEX,
7588 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
7589 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
7590 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
7591 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
7592 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
7593 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
7594 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
7595 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
7596 (struct font_spec, struct font_entity): New structs.
7597 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
7598 (struct font): Many members from old "struct font_info" moved to
7599 here. Members font and entity deleted.
7600 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
7601 the new font-related objects.
7602 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
7603 (CHECK_FONT_GET_OBJECT): Likewise.
7604 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
7605 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
7606 (struct font_driver): New members case_sensitive anc check. Type
7607 of the member list and open changed.
7608 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
7609 (font_symbolic_width, font_find_object, font_get_spec)
7610 (font_set_lface_from_name): Delete extern.
7611 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
7612
7613 * font.c: Include <strings.h>.
7614 (enable_font_backend): Delete it.
7615 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
7616 (CHECK_VALIDATE_FONT_SPEC): Delete it.
7617 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
7618 (null_string): Delete it.
7619 (null_vector): Make it static.
7620 (font_family_alist): Delete it.
7621 (Qnormal): Extern it.
7622 (QCextra, QClanguage): Delete it.
7623 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
7624 (font_make_spec, font_make_entity, font_make_object)
7625 (font_intern_prop): Renamed from intern_downcase. Don't downcase
7626 the string. Callers changed.
7627 (font_pixel_size): Adjusted for the format change of font-related
7628 objects.
7629 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
7630 (font_style_to_value, font_style_symbolic): New function.
7631 (build_font_family_alist): Delete it.
7632 (font_registry_charsets): Use Fassoc_string instead of
7633 assq_no_quit.
7634 (font_prop_validate_symbol): Don't return null_string.
7635 (font_prop_validate_style): Adjusted for the change of
7636 style-related values in a font vector.
7637 (font_property_table): Delete entries for QClanguage and
7638 QCantialias, add entries for QCavgwidth.
7639 (get_font_prop_index): Delete the 2nd argument FROM.
7640 (font_prop_validate): Arguments changed.
7641 (font_put_extra): Adjusted for the change of font-related objects.
7642 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
7643 (font_parse_fcname, font_unparse_fcname)
7644 (font_prepare_composition): Likewise.
7645 (font_parse_family_registry): Renamed from font_merge_old_spec.
7646 (otf_open): Delete the 1st arg entity.
7647 (font_otf_capability): Adjusted for the above change.
7648 (font_score): New arg alternate_families. Adjusted for the change
7649 of font-related objects.
7650 (font_sort_entites): New arg best_only.
7651 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
7652 Delete them.
7653 (font_match_p): Check alternate families.
7654 (font_find_object): Delete it.
7655 (font_check_object): New function.
7656 (font_clear_cache): Adjusted for the change of font-related objects.
7657 (font_delete_unmatched): New arg.
7658 (font_list_entities): Call font_driver->list with a spec that
7659 doesn't specify style-related properties.
7660 (font_matching_entity): Arguments changed. Caller changed.
7661 (font_open_entity): Adjusted for the change of font-related objects.
7662 (font_close_object, font_has_char, font_encode_char)
7663 (font_get_name, font_get_spec): Likewise.
7664 (font_spec_from_name, font_clear_prop, font_update_lface):
7665 New functions.
7666 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
7667 (font_prepare_for_face, font_done_for_face, font_open_by_name)
7668 (font_at): Adjusted for the change of font-related objects.
7669 (font_range): New function.
7670 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
7671 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
7672 (Fcopy_font_spec, Fmerge_font_spec): New function.
7673 (Ffont_family_list): Renamed from list-families.
7674 (Finternal_set_font_style_table): Arguments changed.
7675 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
7676 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
7677 change of font-related objects.
7678 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
7679
7680 * fontset.h (struct font_info): Delete it. Most members go to
7681 struct font.
7682 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
7683 (enum FONT_SPEC_INDEX): Delete it.
7684 (font_info, list_fonts_func, load_font_func, query_font_func)
7685 (set_frame_fontset_func, find_ccl_program_func)
7686 (get_font_repertory_func, new_fontset_from_font_name): Delete
7687 externs.
7688 (fontset_from_font_name): Extern it.
7689 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
7690 (FONT_INFO_FROM_FACE): Deleted.
7691 (face_for_font): Adjust prototype.
7692
7693 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
7694 conditionals. Don't check enable_font_backend. Delete all codes
7695 used only when USE_FONT_BACKEND is not defined.
7696 (get_font_info_func, list_font_func, load_font_func)
7697 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
7698 (get_font_repertory_func): Delete them.
7699 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
7700 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
7701 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
7702 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
7703 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
7704 (fontset_compare_rfontdef): New function.
7705 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
7706 rfont-defs by qsort. Adjusted for the change of font-group vector.
7707 (load_font_get_repertory): Deleted.
7708 (fontset_find_font): Use new macros to ref/set elements of
7709 font-def and rfont-def.
7710 (fontset_font): Fix the timing of remembering that no font for C.
7711 (free_face_fontset): Do nothing if the face has no fontset.
7712 (face_suitable_for_char_p): Use new macros to ref/set elements of
7713 rfont-def.
7714 (face_for_char): Likewise. Call face_for_char with font_object.
7715 (fs_load_font): Delete. Delete #pragma surrounding it.
7716 (fs_query_fontset): Use strcasecmp instead of strcmp.
7717 (generate_ascii_font_name): Adjusted for the format change of
7718 font-spec.
7719 (Fset_fontset_font): Likewise. Use new macros to set elements of
7720 font-def.
7721 (Fnew_fontset): Use font_unparse_xlfd to generate
7722 FONTSET_ASCII (fontset).
7723 (new_fontset_from_font_name): Deleted.
7724 (fontset_from_font): Renamed from new_fontset_from_font. Check if
7725 a fontset is already created for the font. FIx updating of
7726 Vfontset_alias_alist.
7727 (fontset_ascii_font): Deleted.
7728 (Ffont_info): Adjusted for the format change of font-spec.
7729 (Finternal_char_font): Likewise.
7730 (Ffontset_info): Likewise.
7731 (syms_of_fontset): Don't check load_font_func.
7732
7733 * fns.c (internal_equal): Handle PREV_FONT.
7734
7735 * frame.h: Delete USE_FONT_BACKEND conditional.
7736
7737 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
7738 conditionals. Don't check enable_font_backend. Delete all codes
7739 used only when USE_FONT_BACKEND is not defined.
7740 (x_set_font): Call x_new_font, not x_new_fontset2.
7741 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
7742 already set for the frame.
7743
7744 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
7745 a font-entity by font_make_entity. Use font_intern_prop instead
7746 of intern_downcase. Use FONT_SET_STYLE to set a style-related
7747 font property. If a font is scalable, set avgwidth property to 0.
7748 Set font-entity property by font_put_extra.
7749 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
7750 (ffont_driver): Adjusted for the change of struct font_driver.
7751 (ftfont_spec_pattern): New function.
7752 (ftfont_list): Return a list, not vector.
7753 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
7754 (ftfont_list_family): Don't downcase names.
7755 (ftfont_free_entity): Deleted.
7756 (ftfont_open): Return a font-object. Adjusted for the change of
7757 struct font. Get underline_thickness and underline_position from
7758 font property. Don't update dpyinfo->smallest_font_height and
7759 dpyinfo->smallest_char_width.
7760 (ftfont_close): Don't free `struct font'.
7761 (ftfont_has_char): Adjusted for the format change of font-entity.
7762 (ftfont_encode_char, ftfont_text_extents): Likewise.
7763
7764 * ftxfont.c (ftxfont_list): Return a list, not vector.
7765 (ftxfont_open): Return a font-object. Adjusted for the change of
7766 struct font. Get underline_thickness and underline_position from
7767 font property. Don't update dpyinfo->smallest_font_height and
7768 dpyinfo->smallest_char_width.
7769 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
7770 (ftxfont_draw): Adjusted for the change of struct font.
7771
7772 * image.c (image_ascent): Don't include "charset.h". Include
7773 "character.h" and "font.h".
7774
7775 * lisp.h (enum pvec_type): New member PREV_FONT.
7776 (Fassoc_string): EXFUN it.
7777
7778 * print.c: Include font.h.
7779 (print_object): Handle font-related objects.
7780
7781 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
7782 conditionals. Don't check enable_font_backend. Delete all codes
7783 used only when USE_FONT_BACKEND is not defined.
7784 (handle_auto_composed_prop): Do nothing if it->f is not on a
7785 window system. Check how many following characters can be
7786 displayed by the same font.
7787 (calc_pixel_width_or_height): Type of the 4th arg is changed to
7788 'struct font *'.
7789 (get_char_face_and_encoding): Assign the whole encoding task to
7790 the `encode-char' method of a font driver.
7791 (fill_composite_glyph_string): Adjusted for the change of `struct
7792 face' and `struct glyph_string'.
7793 (fill_glyph_string): Likewise.
7794 (get_per_char_metric): Arguments changed.
7795 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
7796 and `struct glyph_string'.
7797 (produce_stretch_glyph, calc_line_height_property)
7798 (x_produce_glyphs): Likewise.
7799
7800 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
7801 conditionals. Don't check enable_font_backend. Delete all codes
7802 used only when USE_FONT_BACKEND is not defined. Use
7803 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
7804 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
7805 (Qp): Extern them.
7806 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
7807 Deleted.
7808 (struct font_name): Deleted.
7809 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
7810 (compare_fonts_by_sort_order): New function.
7811 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
7812 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
7813 Deleted.
7814 (Fx_family_fonts): Use font_list_entities, and sort fonts by
7815 compare_fonts_by_sort_order.
7816 (Fx_font_family_list): Call Ffont_family_list.
7817 (face_numeric_value, face_numeric_weight, face_numeric_slant)
7818 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
7819 (face_symbolic_slant, face_symbolic_swidth)
7820 (split_font_name_into_vector, build_font_name_from_vector)
7821 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
7822 (font_rescale_ratio, split_font_name, build_font_name)
7823 (free_font_names, sort_fonts, x_face_list_fonts)
7824 (face_font_available_p, sorted_font_list, cmp_font_names)
7825 (font_list_1, concat_font_list, font_list, remove_duplicates):
7826 Deleted.
7827 (Fx_list_fonts): Use Ffont_list.
7828 (LFACE_AVGWIDTH): Deleted.
7829 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
7830 by FONTP.
7831 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
7832 (set_lface_from_font_name): Delete it.
7833 (set_lface_from_font): Renamed from
7834 set_lface_from_font_and_fontset. Caller changed. Don't set
7835 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
7836 for face.
7837 (merge_face_vectors): Copy font-spec if necessary.
7838 Clear properties of the font-spec if necessary.
7839 (merge_face_ref): Clear properties of the font-spec if necessary.
7840 (Finternal_set_lisp_face_attribute): Likewise.
7841 (set_font_frame_param): Use font_load_for_lface to load a
7842 font-object, and call Fmodify_frame_parameters with it.
7843 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
7844 font name by Ffont_xlfd_name.
7845 (Finternal_lisp_face_attribute_values): Don't check QCweight,
7846 QCslant, and QCwidth.
7847 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
7848 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
7849 Compare fonts by EQ.
7850 (lookup_non_ascii_face): Deleted.
7851 (face_for_font): The 2nd argument changed.
7852 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
7853 Check atomic font properties by case insensitive.
7854 (realize_non_ascii_face): Set face->overstrike correctly.
7855 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
7856 (dump_realized_face): Get font name from
7857 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
7858
7859 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
7860 conditionals. Don't check enable_font_backend. Delete all codes
7861 used only when USE_FONT_BACKEND is not defined.
7862 (xic_create_xfontset): Original code deleted and renamed from
7863 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
7864 (x_make_gc): Don't set GCFont in GCs.
7865 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
7866 opened by "fixed".
7867 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
7868 find_ccl_program_func, query_font_func, set_frame_fontset_func,
7869 get_font_repertory_func.
7870
7871 * xfont.c: Include <stdlib.h> and "ccl.h".
7872 (struct xfont_info): New structure.
7873 (xfont_query_font): Deleted.
7874 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
7875 moved from xterm.c.
7876 (xfont_driver): Adjusted for the change of struct font_driver.
7877 (compare_font_names): New function.
7878 (xfont_list_pattern): Sort font names case insensitively. Make
7879 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
7880 (xfont_list): Return a list, not vector.
7881 (xfont_match): If the font doesn't have QCname property, generate
7882 a name from the other font properties.
7883 (xfont_open): Return a font-object. Adjusted for the change of
7884 struct font. Get underline_thickness and underline_position from
7885 font property. Don't update dpyinfo->smallest_font_height and
7886 dpyinfo->smallest_char_width.
7887 (xfont_close): Don't free struct font.
7888 (xfont_prepare_face): Adjusted for the change of struct font.
7889 (xfont_done_face): Deleted.
7890 (xfont_has_char): Adjusted for the change of struct font.
7891 (xfont_encode_char, xfont_draw): Likewise.
7892 (xfont_check): New function.
7893
7894 * xftfont.c (xftfont_list): Adjusted for the change of `list'
7895 callback function.
7896 (xftfont_match): Adjusted for the format change of font-entity.
7897 (xftfont_open): Adjusted for the format change of font-entity and
7898 font-object. Adjusted for the change of struct font. Return a
7899 font-object. Don't update dpyinfo->smallest_font_height and
7900 dpyinfo->smallest_char_width.
7901 (xftfont_close): Block input while calling XftFontClose.
7902 (xftfont_prepare_face): Don't block input while calling
7903 xftfont_get_colors. Adjusted for the change of struct font.
7904 (xftfont_shape): Return value of error case fixed.
7905
7906 * xrdb.c (x_load_resources): Don't setup a fontset resource.
7907
7908 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
7909 conditionals.
7910 (FONT_WIDTH): Return (f)->max_width.
7911 (struct x_display_info): Delete member `font'.
7912 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
7913 (x_find_ccl_program, x_get_font_repertory): Delete externs.
7914 (struct x_output): Change type of `font' to `struct font *'.
7915
7916 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
7917 conditionals. Don't check enable_font_backend. Delete all codes
7918 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
7919 (x_per_char_metric, x_encode_char): Deleted.
7920 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
7921 (x_compute_glyph_string_overhangs): Adjusted for the change of
7922 `struct face'.
7923 (x_draw_glyph_string_foreground)
7924 (x_draw_composite_glyph_string_foreground): Likewise.
7925 (x_draw_glyph_string): Likewise. Use font->underline_position and
7926 font->underline_thickness.
7927 (x_new_font): Renamed from x_new_fontset2.
7928 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
7929 (x_check_font): Call `check' method of a font driver.
7930 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
7931 (x_query_font, x_get_font_repertory): Deleted.
7932 (x_find_ccl_program): Renamed and moved to xfont.c.
7933 (x_redisplay_interface): Adjusted for the change of `struct
7934 redisplay_interface'.
7935
7936 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
7937 conditionals. Don't check enable_font_backend. Delete all codes
7938 used only when USE_FONT_BACKEND is not defined. Surround non-used
7939 code by "#ifdef OLD_FONT" and "endif".
7940 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
7941
7942 * w32font.h (struct w32font_info): New member.
7943 (FONT_COMPAT): New macro.
7944 (w32font_open_internal): Prototype adjusted.
7945
7946 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
7947 OLD_FONT" and "endif".
7948
7949 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
7950 conditionals. Don't check enable_font_backend. Delete all codes
7951 used only when USE_FONT_BACKEND is not defined.
7952 (w32font_open): Return a font-object. Make a font-object by
7953 font_make_object. Adjusted for the change of struct w32font_info.
7954 (w32font_close): Don't free struct font. Adjusted for the change
7955 of struct w32font_info.
7956 (w32font_encode_char, w32font_text_extents, w32font_draw):
7957 Adjusted for the change of struct w32font_info.
7958 (w32font_draw): Likewise.
7959 (w32font_list_internal): Return a list, not vector.
7960 (w32font_open_internal): Change the 4th arg to font-object.
7961 Adjusted for the change of struct w32font_info and font-object format.
7962 (add_font_name_to_list): Don't downcase names.
7963 (w32_enumfont_pattern_entity): Make a font-entity by
7964 font_make_entity. Adjusted for the format change of font-entity.
7965 Use FONT_SET_STYLE to set a style-related font property. If a
7966 font is scalable, set avgwidth property to 0. Set font-entity
7967 property by font_put_extra.
7968 (font_matches_spec): Adjusted for the format change of font-entity.
7969 (w32_weight_table, w32_decode_weight): New variables.
7970 (w32_encode_weight): New function.
7971 (fill_in_logfont): Adjusted for the format change of font-spec.
7972 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
7973 weight value.
7974 (w32font_driver): Adjusted for the change of struct font_driver.
7975
7976 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
7977 conditionals. Don't check enable_font_backend. Surround non-used
7978 code by "#ifdef OLD_FONT" and "endif".
7979 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
7980 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
7981
7982 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
7983 conditionals. Don't check enable_font_backend. Delete all codes
7984 used only when USE_FONT_BACKEND is not defined. Surround non-used
7985 code by "#ifdef OLD_FONT" and "endif".
7986
7987 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
7988 (uniscribe_open): Return value changed to font-object.
7989 Adjusted for the format change of font-object.
7990 (uniscribe_otf_capability): Adjusted for the change of struct font.
7991 (add_opentype_font_name_to_list): Don't downcase names.
7992 (uniscribe_font_driver): Adjusted for the change of struct
7993 font_driver.
7994
79952008-05-13 Chong Yidong <cyd@stupidchicken.com>
7996
7997 * dispnew.c (update_frame_1): Check if tty output is still valid
7998 before flushing it.
7999
80002008-05-13 Jan Djärv <jan.h.d@swipnet.se>
8001
8002 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
8003 to Gtk+ menus.
8004
80052008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
8006
8007 * dired.c (file_name_completion): Tweak the code so as to always do it
8008 in a single pass. Tighten the scope of some variables.
8009
8010 * dired.c (Qdefault_directory): New var.
8011 (file_name_completion): Use it instead of Fexpand_file_name.
8012 (syms_of_dired): Initialize it.
8013
80142008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
8015
8016 * fileio.c (double_dollars): Remove dead code.
8017
80182008-05-10 Eli Zaretskii <eliz@gnu.org>
8019
8020 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
8021 Mention w32-get-true-file-attributes in doc string.
8022
8023 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
8024
80252008-05-09 Glenn Morris <rgm@gnu.org>
8026
8027 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
8028 2008-04-23.
8029
80302008-05-09 Eli Zaretskii <eliz@gnu.org>
8031
8032 Support for reporting owner and group of each file on MS-Windows:
8033 * dired.c (stat_uname, stat_gname): New functions, with special
8034 implementation for w32.
8035 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
8036
8037 * w32.c: Rename the_passwd_* to dflt_passwd_*.
8038 (dflt_group_name): New static variable.
8039 (dflt_group): Rename from the_group.
8040 (init_user_info): Init dflt_group fields. Get user's group name
8041 from LookupAccountSid.
8042 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
8043 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
8044 New initialization states.
8045 (globals_of_w32): Initialize them to zero. Initialize the default
8046 group name to "None".
8047 (GetFileSecurity_Name): New global var, the name of the function
8048 to call for GetFileSecurity.
8049 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
8050 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
8051 (get_file_security, get_security_descriptor_owner)
8052 (get_security_descriptor_group, is_valid_sid)
8053 (get_file_security_desc, get_rid, get_name_and_id)
8054 (get_file_owner_and_group): New functions.
8055 (stat): Use get_file_security_desc and get_file_owner_and_group to
8056 report the owner and primary group of each file. Don't ignore the
8057 high 32 bits of file's size, now that st_size is 64-bit wide.
8058 Fix test when to get true file attributes.
8059 (init_user_info): Use get_rid instead of equivalent inline code.
8060 (fstat): Don't ignore the high 32 bits of file's size.
8061
80622008-05-09 Chong Yidong <cyd@stupidchicken.com>
8063
8064 * image.c (png_load): Use correct bit-depth for setting background
8065 color.
8066
80672008-05-08 Eli Zaretskii <eliz@gnu.org>
8068
8069 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
8070 epa-hook.elc.
8071
80722008-05-08 Juanma Barranquero <lekktu@gmail.com>
8073
8074 * font.c (Ffont_match_p): Don't use `iff' in docstring.
8075
80762008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
8077
8078 * macfns.c (Fx_create_frame): Make a copy of frame parameters
8079 because the original parameters are in pure storage now.
8080 (mac_window): Remove unused params. Update callers.
8081
80822008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
8083
8084 * lread.c (substitute_object_recurse): Use lower-level primitives.
8085 Don't signal errors when traversing sub-char-tables.
8086 Don't loop over all the possible characters when traversing char-tables.
8087
8088 * print.c (print_preprocess): Add sub-char-tables to the print-table,
8089 just like we do in print.c.
8090
80912008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
8092
8093 * minibuf.c (Ftry_completion): Remove code left over from when we used
8094 scmp instead of Fcompare_strings.
8095
80962008-05-04 Juanma Barranquero <lekktu@gmail.com>
8097
8098 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
8099
81002008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8101
8102 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
8103 Create bitmap context in native byte order.
8104
8105 * macterm.c (XDrawLine)
8106 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
8107 context in native byte order.
8108
81092008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8110
8111 * config.in: Regenerate.
8112
8113 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
8114 New definitions for Image I/O support.
8115 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
8116 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
8117 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
8118 (mac_data_provider_release_data, image_load_image_io)
8119 [USE_MAC_IMAGE_IO]: New functions.
8120 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
8121 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
8122 (init_image_func_pointer) [MAC_OSX]: Remove function.
8123 (image_load_quartz2d) [MAC_OSX]: Check availability of
8124 CGImageCreateWithPNGDataProvider at compile time.
8125 Use lowercase `false' for boolean constant.
8126 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
8127 Use image_load_image_io.
8128 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
8129 Don't check MyCGImageCreateWithPNGDataProvider.
8130 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
8131 Don't call init_image_func_pointer.
8132
8133 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
8134
8135 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
8136 Make variable non-static.
8137 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
8138 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
8139
8140 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
8141 (RED_FROM_ULONG): Mask off higher bits.
8142 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
8143
8144 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
8145 Include AvailabilityMacros.h.
8146 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
8147 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
8148
81492008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
8150
8151 * chartab.c (Fset_char_table_range): If range is t, really set all
8152 chars to that value.
8153
81542008-05-03 Eli Zaretskii <eliz@gnu.org>
8155
8156 * dired.c (Ffile_attributes): Don't allow the device number become
8157 negative.
8158
81592008-05-02 Daiki Ueno <ueno@unixuser.org>
8160
8161 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
8162
81632008-05-02 Juri Linkov <juri@jurta.org>
8164
8165 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
8166 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
8167 DEFAULT argument as a list of default values in docstrings.
8168
81692008-05-01 Chong Yidong <cyd@stupidchicken.com>
8170
8171 * puresize.h (BASE_PURESIZE): Increase to 1210000.
8172
81732008-05-01 Martin Rudalics <rudalics@gmx.at>
8174
8175 * dispnew.c (change_frame_size_1): Preserve small windows when
8176 shrinking frames by calling set_window_height|width with third
8177 arg 2.
8178
8179 * window.h (struct window): Replace field too_small_ok by field
8180 resize_proportionally.
8181
8182 * window.c (make_window): Initialize resize_proportionally.
8183 (enlarge_window): Temporarily set resize_proportionally to make
8184 sure that shrink_windows does scale the window proportionally.
8185 (shrink_windows): When window has resize_proportionally set try
8186 to shrink it proportionally by stealing from other windows.
8187 (struct saved_window, Fset_window_configuration)
8188 (compare_window_configurations): Handle resize_proportionally.
8189 (WINDOW_TOTAL_SIZE): New macro.
8190 (window_min_size, shrink_windows, size_window): Use it.
8191 (check_min_window_sizes): Remove. Invalid values of
8192 window-min-height|width are handled by window_min_size_2 now.
8193 (size_window, Fsplit_window, enlarge_window)
8194 (adjust_window_trailing_edge, grow_mini_window): Don't call
8195 check_min_window_sizes.
8196 (window_min_size_2, window_min_size_1, window_min_size):
8197 New argument safe_p for retrieving "safe" minimum sizes.
8198 (Fdisplay_buffer, Fsplit_window, enlarge_window)
8199 (adjust_window_trailing_edge, grow_mini_window):
8200 Adjust arguments of window_min_size... functions.
8201 (shrink_windows): Argument min_size removed. New argument
8202 safe_p allows shrinking windows to their safe minimum sizes.
8203 Calculate minimum size and decide whether a window shall be
8204 deleted for each window individually.
8205 (size_window): When nodelete_p equals 2, tell shrink_windows to
8206 delete windows only if their new minimum size is no more safe.
8207 (shrink_window_lowest_first): Call window_min_size_1 to make
8208 sure to preserve modeline of bottom-most window when resizing
8209 the minibuffer.
8210 (Fset_window_configuration, Fcurrent_window_configuration)
8211 (compare_window_configurations): Do not handle
8212 window-min-height|width any more.
8213 (syms_of_window): Clarify window-min-height|width doc-strings.
8214
82152008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
8216
8217 * dired.c (file_name_completion): Fix up the encoding/decoding issue
8218 some more. Copy some of the code from Ftry_completions.
8219 Remove special case code that dates back to initial revision when the
8220 slash was only added when necessary and that can't trigger nowadays.
8221
82222008-04-27 Kenichi Handa <handa@m17n.org>
8223
8224 * font.c (font_prop_validate): Signal `error' instead of `font'.
8225
82262008-04-29 Jason Rumney <jasonr@gnu.org>
8227
8228 * w32fns.c (Fw32_battery_status): New defun.
8229 (syms_of_w32fns): Defsubr it.
8230
82312008-04-28 Andreas Schwab <schwab@suse.de>
8232
8233 * dired.c (file_name_completion): Fix another mixing of encoded
8234 and decoded names.
8235
82362008-04-28 Juanma Barranquero <lekktu@gmail.com>
8237
8238 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
8239
82402008-04-27 Juanma Barranquero <lekktu@gmail.com>
8241
8242 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
8243
82442008-04-27 Andreas Schwab <schwab@suse.de>
8245
8246 * dired.c (file_name_completion): Fix inappropriate mixing of
8247 encoded and decoded names.
8248
8249 * xterm.c (XTread_socket): Fix use of uninitialized variable.
8250
8251 * puresize.h (BASE_PURESIZE): Increase to 1200000.
8252
82532008-04-26 Eli Zaretskii <eliz@gnu.org>
8254
8255 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
8256 2008-03-31, it's not needed anymore with `struct stat' definition
8257 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
8258 for the same reasons.
8259
82602008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
8261
8262 * m/sparc.h: Additional redefinitions for GNU/Linux.
8263
82642008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8265
8266 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
8267 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
8268 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
8269 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
8270 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
8271 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
8272 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
8273 Likewise.
8274
8275 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
8276 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
8277 (mac_ax_number_of_characters): Add externs.
8278 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
8279 [USE_MAC_TSM]: Likewise.
8280 (mac_handle_text_input_event) [MAC_OSX]:
8281 Handle kEventTextInputOffsetToPos for no active input area case.
8282 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
8283 (mac_handle_document_access_event)
8284 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
8285 (install_application_handler) [MAC_OSX]: Register handlers for
8286 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
8287 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
8288 Register mac_handle_document_access_event.
8289
8290 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
8291 Make functions non-static.
8292
82932008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
8294
8295 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
8296 (read_file_name_completion_ignore_case, insert_default_directory)
8297 (Qdefault_directory): Move to minibuffer.el.
8298 (Fread_file_name): Call the new `read-file-name' instead.
8299
83002008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8301
8302 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
8303 Make function non-static.
8304 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
8305 Remove function.
8306 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
8307 Move to mactoolbox.c.
8308 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
8309
8310 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
8311 (mac_rect_make): New macro.
8312
8313 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
8314 instead of float.
8315 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
8316 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
8317 (XSetBackground) [USE_CG_DRAWING]: Likewise.
8318 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
8319 CGRectMake.
8320 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
8321 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
8322 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
8323 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
8324 instead of WindowRef in argument type.
8325 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
8326 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
8327 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
8328 instead of DISPLAY. All uses changed.
8329 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
8330 (x_calc_absolute_position): Simplify so as not to use
8331 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
8332
8333 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
8334 instead of WindowRef in argument type.
8335 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
8336 [TARGET_API_MAC_CARBON]: Remove externs.
8337 (create_apple_event, mac_event_parameters_to_lisp)
8338 [TARGET_API_MAC_CARBON]: Add externs.
8339
8340 * mactoolbox.c (Vmac_ts_script_language_on_focus)
8341 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
8342 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
8343 is clicked.
8344 (x_activate_menubar): Remove extern for saved_menu_event_location.
8345 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
8346 Move from mac.c.
8347
83482008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8349
8350 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
8351 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
8352
83532008-04-23 Jason Rumney <jasonr@gnu.org>
8354
8355 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
8356 attributes only for local files.
8357
8358 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
8359 default to Qlocal.
8360
83612008-04-22 Juri Linkov <juri@jurta.org>
8362
8363 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
8364 read-buffer-to-switch instead of using the letter "B".
8365
83662008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
8367
8368 * fileio.c (Qdefault_directory): New variable.
8369 (Fread_file_name): Use it to pass `dir' to the completion functions.
8370
83712008-04-20 Chong Yidong <cyd@stupidchicken.com>
8372
8373 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
8374
83752008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
8376
8377 * keyboard.c (Vpre_help_message): Remove.
8378 (show_help_echo): Remove default C code.
8379
8380 * dired.c (directory_files_internal, file_name_completion):
8381 Only call ENCODE_FILE if the string is indeed decoded.
8382
83832008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
8384
8385 * Makefile.in (TOOLKIT_DEFINES): Remove.
8386 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
8387
83882008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8389
8390 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
8391 (mactoolbox.o): New target.
8392
8393 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
8394 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
8395
8396 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
8397 Use mac_set_frame_window_background instead of XSetWindowBackground.
8398 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
8399 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
8400 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
8401 instead of SetWindowTitleWithCFString.
8402 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
8403 Move function to mactoolbox.c.
8404 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
8405 Use mac_set_window_modified instead of SetWindowModified.
8406 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
8407 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
8408 (Fx_focus_frame): Use mac_front_non_floating_window instead of
8409 FrontNonFloatingWindow. Use mac_activate_window instead of
8410 ActivateWindow. Use mac_active_non_floating_window instead of
8411 ActiveNonFloatingWindow.
8412 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
8413 Use mac_show_hourglass and mac_hide_hourglass.
8414 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
8415 instead of GetGlobalMouse.
8416 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
8417 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
8418 Use mac_bring_window_to_front instead of BringToFront.
8419 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
8420 mactoolbox.c.
8421 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
8422 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
8423 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
8424 mactoolbox.c.
8425
8426 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
8427 (XtPointer): Move typedef from macmenu.c.
8428 (enum button_type): Move enum from macmenu.c.
8429 (widget_value): Move typedef from macmenu.c.
8430 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
8431 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
8432 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
8433 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
8434 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
8435 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
8436 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
8437 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
8438 (Selection): Move typedef from macselect.c.
8439 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
8440 macterm.c.
8441 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
8442 (mac_is_window_collapsed, mac_bring_window_to_front)
8443 (mac_send_window_behind, mac_hide_window, mac_show_window)
8444 (mac_collapse_window, mac_front_non_floating_window)
8445 (mac_active_non_floating_window, mac_activate_window)
8446 (mac_move_window_structure, mac_move_window, mac_size_window)
8447 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
8448
8449 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
8450 (enum mac_menu_kind): Move enum to mactoolbox.c.
8451 (min_menu_id): Move variable to mactoolbox.c.
8452 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
8453 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
8454 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
8455 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
8456 [TARGET_API_MAC_CARBON]: Likewise.
8457 (XtPointer): Move typedef to macgui.h.
8458 (enum button_type): Move enum to macgui.h.
8459 (widget_value): Move typedef to macgui.h.
8460 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
8461 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
8462 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
8463 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
8464 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
8465 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
8466 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
8467 (popup_activated_flag): Make variable non-static.
8468 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
8469 (add_menu_item, fill_menu, dispose_menus):
8470 Move functions to mactoolbox.c.
8471 (restore_show_help_function, menu_target_item_handler)
8472 (install_menu_target_item_handler, mac_handle_dialog_event)
8473 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
8474 [TARGET_API_MAC_CARBON]: Likewise.
8475 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
8476 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
8477 (find_and_call_menu_selection, name_is_separator): Make function
8478 non-static.
8479 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
8480 to mactoolbox.c.
8481 (set_frame_menubar): Don't call install_menu_quit_handler.
8482 (menu_item_selection): New variable.
8483 (mac_menu_show): Use create_and_show_popup_menu.
8484 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
8485 selection but set variable menu_item_selection. All uses changed.
8486 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
8487 Call install_menu_quit_handler. Move to mactoolbox.c.
8488
8489 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
8490 (Selection): Move typedef to macgui.h.
8491 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
8492 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
8493 Make variables non-static.
8494 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
8495 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
8496 Make functions non-static.
8497 (Vmac_service_selection) [MAC_OSX]: Likewise.
8498 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
8499 (mac_valid_selection_target_p, mac_clear_selection)
8500 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
8501 (mac_put_selection_value, mac_selection_has_target_p)
8502 (mac_get_selection_value, mac_get_selection_target_list)
8503 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
8504 Move functions to mactoolbox.c.
8505 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
8506 Likewise.
8507 (copy_scrap_flavor_data, mac_handle_service_event)
8508 (install_service_handler) [MAC_OSX]: Likewise.
8509 (syms_of_macselect) <Vmac_dnd_known_types>:
8510 Use mac_dnd_default_known_types.
8511
8512 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
8513 Move to mactoolbox.c.
8514 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
8515 (Fx_selection_owner_p): Add EXFUN.
8516 (install_window_handler, remove_window_handler, XSetWindowBackground):
8517 Remove externs.
8518 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
8519 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
8520 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
8521 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
8522 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
8523 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
8524 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
8525 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
8526 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
8527 (create_and_show_popup_menu, mac_get_selection_from_symbol)
8528 (mac_valid_selection_target_p, mac_clear_selection)
8529 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
8530 (mac_put_selection_value, mac_selection_has_target_p)
8531 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
8532 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
8533 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
8534 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
8535 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
8536 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
8537 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
8538 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
8539 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
8540
8541 * mactoolbox.c: New file.
8542
85432008-04-18 Jason Rumney <jasonr@gnu.org>
8544
8545 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
8546
85472008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
8548
8549 * character.c (Fmultibyte_char_to_unibyte):
8550 Return latin1 chars unchanged.
8551
8552 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
8553 relocated if it points to `name'.
8554
85552008-04-17 Kenichi Handa <handa@m17n.org>
8556
8557 * data.c (Faset): Allow setting a multibyte character in an
8558 ASCII-only unibyte string.
8559
8560 * lisp.h (STRING_SET_MULTIBYTE): New macro.
8561
85622008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
8563
8564 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
8565 done in config.h.
8566
85672008-04-16 Juanma Barranquero <lekktu@gmail.com>
8568
8569 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
8570 (Fchar_direction): Add usage in the docstring.
8571
85722008-04-15 Chong Yidong <cyd@stupidchicken.com>
8573
8574 * keyboard.c (read_key_sequence): Remove always-true checks.
8575
85762008-04-14 Jason Rumney <jasonr@gnu.org>
8577
8578 * w32font.c (w32font_open_internal): Set max_bounds.descent in
8579 compatibility struct, for better underline positioning.
8580
85812008-04-13 David Hansen <david.hansen@gmx.net>
8582
8583 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
8584 string.
8585
85862008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
8587
8588 * m/hp800.h (XUINT, XSET): Remove.
8589
85902008-04-12 Juanma Barranquero <lekktu@gmail.com>
8591
8592 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
8593 previous change.
8594
85952008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
8596
8597 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
8598 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
8599
86002008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
8601
8602 * keymap.h (map_keymap_canonical): Declare.
8603 * xmenu.c (single_keymap_panes): Use it.
8604
86052008-04-11 Glenn Morris <rgm@gnu.org>
8606
8607 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
8608 set the target's value to that of the alias.
8609
86102008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
8611
8612 * term.c (set_tty_color_mode): Left over typo.
8613
86142008-04-10 Michael Albinus <michael.albinus@gmx.de>
8615
8616 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
8617 only after check for file name handler functions. Signal, when
8618 native functionality is not supported.
8619 (syms_of_fileio): Declare it unconditionally.
8620
86212008-04-10 Jason Rumney <jasonr@gnu.org>
8622
8623 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
8624 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
8625
8626 * w32.c (logon_network_drive): Also logon to remote drives that
8627 are mapped to drive letters.
8628
86292008-04-10 Glenn Morris <rgm@gnu.org>
8630
8631 * xdisp.c (truncate-partial-width-windows): Doc fix.
8632
86332008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
8634
8635 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
8636 Move functions to minibuffer.el.
8637 (syms_of_fileio): Don't declare them.
8638
86392008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
8640
8641 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
8642 (syms_of_minibuf): Remove its initialization.
8643
8644 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
8645
86462008-04-09 Juanma Barranquero <lekktu@gmail.com>
8647
8648 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
8649
86502008-04-09 Jason Rumney <jasonr@gnu.org>
8651
8652 * makefile.w32-in (distclean): Delete makefile too.
8653 (maintainer-clean): New target.
8654
8655 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
8656
8657 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
8658 for new font backend and composite cases.
8659
86602008-04-09 Jan Djärv <jan.h.d@swipnet.se>
8661
8662 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
8663 Most of the code moved to run_timers.
8664 (do_pending_atimers): Call run_timers.
8665 (run_timers): New function.
8666
8667 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
8668 run atimers.
8669
8670 * process.c (wait_reading_process_output): The same as above.
8671
86722008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
8673
8674 * minibuf.c (last_exact_completion): Remove variable.
8675 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
8676 (complete_and_exit_1, complete_and_exit_2)
8677 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
8678 (Fdisplay_completion_list, display_completion_list_1)
8679 (Fminibuffer_completion_help, Fself_insert_and_exit)
8680 (Fexit_minibuffer, Fminibuffer_message): Move functions to
8681 minibuffer.el.
8682 (syms_of_minibuf): Remove corresponding initializations.
8683
8684 * keyboard.c (Qdeactivate_mark): New var.
8685 (command_loop_1): Use it to call `deactivate-mark'.
8686 (syms_of_keyboard): Initialize it.
8687
8688 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
8689 to another frame.
8690 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
8691 Don't call set_tty_color_mode.
8692 (store_frame_param): Reset previous_frame rather than call
8693 set_tty_color_mode.
8694 * term.c (set_tty_color_mode): Rewrite.
8695 * dispextern.h (set_tty_color_mode): New type.
8696 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
8697
86982008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
8699
8700 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
8701 for generic chars, which do not exist any more in emacs-unicode.
8702
87032008-04-08 Michael Albinus <michael.albinus@gmx.de>
8704
8705 * coding.c (detect_coding_emacs_mule)
8706 (Ffind_operation_coding_system): Fix typo.
8707
87082008-04-08 Jason Rumney <jasonr@gnu.org>
8709
8710 * w32uniscribe.c (SNAME): Extract only symbol name.
8711
8712 * w32font.h (struct w32_metric_cache): New struct.
8713 (w32font_info): Use it.
8714 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
8715 (CACHE_BLOCKSIZE): New constants.
8716
8717 * w32font.c (Qja, Qko, Qzh): New symbols.
8718 (syms_of_w32font): Initialise them.
8719 (font_matches_spec): Use them to filter by language.
8720 (recompute_cached_metrics): Remove function.
8721 (compute_metrics, clear_cached_metrics): New functions.
8722 (w32font_encode_char): Use them to manage metric cache.
8723 (w32font_text_extents): Cache metrics for all glyphs on demand.
8724 Delay converting glyph indices to WORD until needed.
8725 (w32font_open_internal): Initialize metric cache to empty.
8726 (registry_to_w32_charset): Charset should always be a symbol.
8727 (fill_in_logfont, list_all_matching_fonts): Family should
8728 always be a symbol.
8729
87302008-04-06 Jason Rumney <jasonr@gnu.org>
8731
8732 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
8733 Give up if glyph indices not supported. Use uniscribe obtained
8734 ABC widths for individual metrics. Map glyph clusters back to
8735 characters using fClusterStart flag. Return number of glyphs
8736 produced, not chars processed.
8737 (uniscribe_shape): Map char at FROM to current glyph.
8738
87392008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8740
8741 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
8742 Use SetMenuItemHierarchicalMenu.
8743
87442008-04-05 Jason Rumney <jasonr@gnu.org>
8745
8746 * image.c (pbm_load): Allow color values up to 65535.
8747 Throw an error if max_color_idx is outside the supported range.
8748 Report an error when image size is invalid.
8749 Read two bytes at a time when raw images have max_color_idx above 255.
8750
87512008-04-05 Eli Zaretskii <eliz@gnu.org>
8752
8753 * w32.c (readdir): If FindFirstFile/FindNextFile return in
8754 cFileName a file name that includes `?' characters, use the 8+3
8755 alias in cAlternateFileName instead.
8756
87572008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
8758
8759 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
8760 append "CCL: Quitted" when the CCL program is quitted.
8761 (setup_ccl_program): Initialize ccl->quit_silently to zero.
8762
8763 * ccl.h (struct ccl_program): New member quit_silently.
8764
87652008-04-05 Chong Yidong <cyd@stupidchicken.com>
8766
8767 * search.c (compile_pattern_1): Treat non-nil and non-string of
8768 search-spaces-regexp as nil.
8769
8770 * minibuf.c (Fassoc_string): Tweak docstring.
8771
87722008-04-05 Eli Zaretskii <eliz@gnu.org>
8773
8774 * dired.c (Ffile_attributes): Support inode numbers wider than 32
8775 bits. Remove ugly WINDOWSNT-specific kludge introduced on
8776 2008-03-14 to force inode be positive.
8777
8778 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
8779 _S_* ones, since we now use our own sys/stat.h.
8780 (stat, fstat): Don't mangle the inode number.
8781 (init_user_info): Don't restrict UID and GID to 0-60000 range.
8782
87832008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
8784
8785 * frame.h (struct frame): Give one more bit to `visible' since we use
8786 values larger than 1 to indicate obscured frames on ttys.
8787
8788 * keymap.c (Qkeymap_canonicalize): New var.
8789 (Fmap_keymap_internal): New fun.
8790 (describe_map): Use keymap-canonicalize.
8791
8792 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
8793 (Fundo_boundary): Set them.
8794 (syms_of_undo): Initialize them.
8795 (record_point): Use them instead of last_point_position*.
8796 (last_undo_buffer): Change type.
8797
87982008-04-04 Jason Rumney <jasonr@gnu.org>
8799
8800 * w32font.c (w32font_text_extents): Use font's ascent and descent.
8801 (recompute_cached_metrics): Don't set ascent and descent per char.
8802
8803 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
8804 (uniscribe_check_otf): Add GC protection before consing.
8805 Rearrange loop for counting features.
8806
88072008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
8808
8809 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
8810 buffer with byte-size of source buffer.
8811
88122008-04-03 Chong Yidong <cyd@stupidchicken.com>
8813
8814 * callint.c (Fcall_interactively): Handle temporary region even
8815 when shift-select-mode is off.
8816
88172008-04-03 Jason Rumney <jasonr@gnu.org>
8818
8819 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
8820
88212008-04-03 Kenichi Handa <handa@m17n.org>
8822
8823 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
8824 (CATEGORY_MASK_UTF_16): Likewise.
8825 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
8826 binary file.
8827 (detect_coding): Add null-byte detection for a binary file.
8828 (detect_coding_system): Likewise.
8829
88302008-04-03 Jason Rumney <jasonr@gnu.org>
8831
8832 * w32uniscribe.c: New file.
8833
8834 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
8835
8836 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
8837
8838 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
8839 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
8840 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
8841 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
8842 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
8843 (Qphonetic): New symbols.
8844 (syms_of_w32font): Initialize them.
8845 (font_supported_scripts): Use them.
8846 (w32font_list_family): List all charsets.
8847 (w32font_text_extents, recompute_cached_metrics): Fix metric
8848 calculations.
8849 (w32_enumfont_pattern_entity): Make full_type a DWORD.
8850 Give opentype fonts their own format.
8851 (font_matches_spec): New arguments backend and logfont.
8852 Handle :otf spec for uniscribe backend.
8853 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
8854 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
8855
8856 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
8857 font backend.
8858 (globals_of_w32fns): Initialize uniscribe font backend.
8859
8860 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
8861 dependencies.
8862 (w32uniscribe.$(O)): New file to build.
8863 (FONT_OBJ): Include w32uniscribe.$(O).
8864 (LIBS): Add uniscribe libraries.
8865
8866 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
8867
88682008-04-02 Chong Yidong <cyd@stupidchicken.com>
8869
8870 * callint.c (Vshift_select_mode): New var.
8871 (Finteractive): Document new ^ spec.
8872 (Fcall_interactively): Call handle-shift-selection if the ^ spec
8873 is present.
8874
8875 * keyboard.c (Vthis_command_keys_shift_translated): New var.
8876 (command_loop_1): Avoid running the direct display versions of
8877 forward-char and backward-char if shift-selection may occur.
8878 (read_key_sequence): Set Vthis_command_keys_shift_translated if
8879 shift-translation takes place.
8880
8881 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
8882 avoid clobbering by define-minor-mode.
8883
8884 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
8885 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
8886
8887 * syntax.c (Fforward_word): Add ^ interactive spec.
8888
8889 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
8890 (Fscroll_right): Add ^ interactive spec.
8891
88922008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
8893
8894 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
8895
8896 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
8897
8898 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
8899
89002008-03-31 Juri Linkov <juri@jurta.org>
8901
8902 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
8903
89042008-03-30 Jan Djärv <jan.h.d@swipnet.se>
8905
8906 * gtkutil.c (xg_set_geometry): Fix indentation.
8907 (xg_resize_outer_widget): Remove.
8908 (x_wm_size_hint_off): Fix indentation.
8909 (xg_frame_set_char_size): Call flush_and_sync after
8910 gtk_window_resize.
8911 (x_wm_set_size_hint): Pass NULL as geometry window to
8912 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
8913 Add menu bar and tool bar height to base height.
8914 (xg_update_frame_menubar, free_frame_menubar)
8915 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
8916 (update_frame_tool_bar, free_frame_tool_bar):
8917 Change xg_resize_outer_widget to xg_frame_set_char_size.
8918
89192008-03-30 Michael Albinus <michael.albinus@gmx.de>
8920
8921 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
8922 (Fdbus_call_method): New parameter TIMEOUT.
8923 (dbus-send-signal): Optimize UNGCPRO call.
8924
89252008-03-29 Juri Linkov <juri@jurta.org>
8926
8927 * window.c (Fdisplay_buffer): Move call to
8928 Vsplit_window_preferred_function out of conditions that check
8929 if window is eligible for vertical splitting.
8930 When Vsplit_window_preferred_function is non-nil, call it and use
8931 its non-nil return value as window. Otherwise, continue doing
8932 vertical splitting using Fsplit_window with arg horflag=nil.
8933 (syms_of_window) <Vsplit_window_preferred_function>: Change the
8934 default value from `split-window' to nil.
8935
89362008-03-29 Juri Linkov <juri@jurta.org>
8937
8938 * callint.c (Fcall_interactively): Revert 2008-03-16 change
8939 for interactive code letters 'b' and 'B'.
8940
89412008-03-29 Eli Zaretskii <eliz@gnu.org>
8942
8943 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
8944 multibyte string.
8945
89462008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
8947
8948 * keyboard.c (pending_funcalls): New var.
8949 (timer_check): Run it.
8950 (syms_of_keyboard): Initialize it.
8951 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
8952 (Vdelete_terminal_functions): New vars.
8953 (syms_of_terminal): Initialize them.
8954 (Fdelete_terminal): Run delete-terminal-functions.
8955 * xdisp.c (safe_eval): Rewrite.
8956 (safe_call2): New fun.
8957 * frame.c (Qdelete_frame_functions): New var.
8958 (syms_of_frame): Initialize it.
8959 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
8960 * lisp.h (safe_call2, pending_funcalls): Declare.
8961
89622008-03-28 Andreas Schwab <schwab@suse.de>
8963
8964 * indent.c (Fmove_to_column): Move declaration before statements.
8965
89662008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
8967
8968 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
8969 (struct frame): Use bit fields for boolean vars.
8970
8971 * process.c (server_accept_connection): Simplify naming.
8972 (emacs_get_tty_pgrp): Use SDATA.
8973
8974 * coding.c (decode_coding_object): Fix last change.
8975
89762008-03-27 Jason Rumney <jasonr@gnu.org>
8977
8978 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
8979
89802008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
8981
8982 * charset.c (Fdefine_charset_internal): Change the way of
8983 registering charsets in Vcharset_order_list.
8984 (syms_of_charset): Make the charset `eight-bit' supplementary.
8985
89862008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
8987
8988 * regex.c (EXTEND_BUFFER): Change order of pointer addition
8989 operations, to avoid having the difference between pointers
8990 overflow.
8991
89922008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
8993
8994 * indent.c (check_display_width): New fun.
8995 (scan_for_column): Use it.
8996
8997 * data.c (syms_of_data): Mark most-positive-fixnum and
8998 most-negative-fixnum as constants.
8999
9000 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
9001
9002 * indent.c (scan_for_column): Extract from current_column_1.
9003 Merge with the same code from Fmove_to_column.
9004 (current_column_1, Fmove_to_column): Use it.
9005
90062008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
9007
9008 * keymap.c (map_keymap_internal): New fun.
9009 (map_keymap): Use it.
9010 (Fmap_keymap_internal): New fun.
9011 (Fmap_keymap): Remove left-out test from before make_save_value.
9012
9013 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
9014
9015 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
9016 Use XCAR/XCDR.
9017
9018 * process.h (struct Lisp_Process): Remove filter_multibyte.
9019 * process.c (QCfilter_multibyte): Remove.
9020 (setup_process_coding_systems): Don't use filter_multibyte.
9021 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
9022 (read_process_output): Don't adjust multibyteness to filter_multibyte.
9023 (Fset_process_filter_multibyte): Change the coding-system to
9024 approximate the previous behavior.
9025 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
9026 coding-system.
9027
9028 * coding.c (decode_coding_object): When not decoding into a buffer,
9029 obey the coding system's preference of (uni|multi)byte.
9030
90312008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
9032
9033 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
9034 every char is changed and has a different byte-length.
9035 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
9036 Fix int -> EMACS_INT.
9037
90382008-03-23 David Hansen <david.hansen@gmx.net>
9039
9040 * dbusbind.c (xd_read_message): Remove extra copying of message
9041 strings. Check for NULL `interface' or `member'.
9042
90432008-03-22 Eli Zaretskii <eliz@gnu.org>
9044
9045 * w32.c (readdir): If FindFirstFile/FindNextFile return in
9046 cFileName a file name that includes `?' characters, use the 8+3
9047 alias in cAlternateFileName instead.
9048
90492008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
9050
9051 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
9052
90532008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
9054
9055 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
9056 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
9057 work on current_buffer only instead (that was already the case
9058 for some of the code anyway).
9059 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
9060 (temp_set_point, temp_set_point_both): Use EMACS_INT.
9061 (SET_PT, SET_PT_BOTH): Adjust.
9062 * intervals.h (set_point, temp_set_point, set_point_both)
9063 (temp_set_point_both): Remove redundant declarations.
9064
90652008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
9066
9067 * fileio.c (Finsert_file_contents):
9068 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
9069 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
9070 when buffer != current_buffer anyway.
9071
90722008-03-20 Andreas Schwab <schwab@suse.de>
9073
9074 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
9075 as default.
9076
90772008-03-19 Jason Rumney <jasonr@gnu.org>
9078
9079 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
9080 (syms_of_w32fns): Initialize them.
9081 (HOURGLASS_ID): New constant.
9082 (x_window_to_frame): Don't check hourglass_window.
9083 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
9084 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
9085 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
9086 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
9087 Only change the cursor if hourglass is not active.
9088 (Fx_create_frame): Initialize frame's current_cursor.
9089 (hourglass_atimer): Remove.
9090 (hourglass_started): New function.
9091 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
9092 (show_hourglass): Adapt to w32, changing argument to frame.
9093
9094 * w32term.h (struct w32_output): Remove hourglass_window.
9095 Add current_cursor.
9096
9097 * eval.c (call_debugger, Fsignal):
9098 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
9099 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
9100 (Fexecute_extended_command, cancel_hourglass_unwind):
9101 * minibuf.c (read_minibuf):
9102 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
9103
91042008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
9105
9106 * window.c (run_funs): New fun.
9107 (run_window_configuration_change_hook): Use it to run the buffer-local
9108 and the global part of the hook.
9109
9110 * xdisp.c (format_mode_line_unwind_data): Add window argument.
9111 (unwind_format_mode_line): Restore selected window.
9112 (x_consider_frame_title, Fformat_mode_line): Set selected window.
9113
91142008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
9115
9116 * editfns.c (Fchar_equal): Check they are valid characters.
9117
9118 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
9119
91202008-03-17 Andreas Schwab <schwab@suse.de>
9121
9122 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
9123 against a charset.
9124
9125 * lisp.h (Fbuffer_list): Declare.
9126
91272008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 9128
aac0c6e3
MR
9129 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
9130 handlebox_widget is != 0.
9131
91322008-03-16 Juri Linkov <juri@jurta.org>
9133
9134 * callint.c (Fcall_interactively): For interactive code letters
9135 'b' and 'B' put the buffer list into the list of default "future"
9136 values of the minibuffer.
9137
91382008-03-16 Andreas Schwab <schwab@suse.de>
9139
9140 * keyboard.c (read_key_sequence): Fix downcasing of letters with
9141 modifiers.
9142
9143 * regex.c (re_match_2_internal): Correct matching of a charset
9144 against latin-1 characters.
9145
91462008-03-16 Kenichi Handa <handa@m17n.org>
9147
9148 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
9149 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
9150 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
9151 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
9152 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
9153 CHAR_STRING_ADVANCE.
9154 (produce_chars): Fix for the case that the source and the
9155 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
9156 instead of CHAR_STRING_ADVANCE.
9157 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
9158 STRING_CHAR_ADVANCE.
9159
91602008-03-15 Andreas Schwab <schwab@suse.de>
9161
9162 * regex.c (re_match_2_internal): Correct matching of eight bit
9163 characters in unibyte strings.
9164
91652008-03-15 Martin Rudalics <rudalics@gmx.at>
9166
9167 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
9168 at end of range when it coincides with the end of the buffer.
9169
91702008-03-14 Eli Zaretskii <eliz@gnu.org>
9171
9172 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
9173
9174 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
9175
91762008-03-14 Jason Rumney <jasonr@gnu.org>
9177
9178 * editfns.c (initial_tz): New variable.
9179 (syms_of_editfns): Initialize it.
9180 (Fset_time_zone_rule): Set it when first called.
9181 Use it when TZSTRING is nil.
9182
9183 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
9184 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
9185 (monitor_from_point_fn, get_monitor_info_fn): New globals.
9186 (globals_of_w32fns): Initialize them.
9187 (compute_tip_xy): Use them to position tooltips.
9188
91892008-03-14 Glenn Morris <rgm@gnu.org>
9190
9191 * emacs.c (main): Revert previous change.
9192 (standard_args): Revert -internal-script back to -scriptload,
9193 and remove the long-option form.
9194
91952008-03-13 Glenn Morris <rgm@gnu.org>
9196
9197 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
9198 Remove option -enable-font-backend.
9199
92002008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
9201
9202 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
9203
92042008-03-11 Jan Djärv <jan.h.d@swipnet.se>
9205
9206 * xterm.c (x_connection_closed): For GTK: If this is the last
9207 terminal just exit without closing the display.
9208
92092008-03-11 Jason Rumney <jasonr@gnu.org>
9210
9211 * w32font.c (w32font_full_name): Use floor to round.
9212
f0131492 92132008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
9214
9215 * sound.c (alsa_configure): Declare vol at beginning of block.
9216
9217 * fontset.c (Ffontset_info): Remove extra semicolon.
9218
92192008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
9220
9221 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
9222 size of resulting string.
9223
92242008-03-10 Jason Rumney <jasonr@gnu.org>
9225
9226 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
9227
92282008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9229
9230 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
9231 Don't pretend as if characters with display property haven't been
9232 consumed for string-replacing-string case.
9233
92342008-03-08 Kim F. Storm <storm@cua.dk>
9235
9236 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
9237 (get_next_display_element, next_element_from_string)
9238 (next_element_from_ellipsis, next_element_from_buffer): Use it.
9239
92402008-03-08 Andreas Schwab <schwab@suse.de>
9241
9242 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
9243
92442008-03-06 Jason Rumney <jasonr@gnu.org>
9245
9246 * w32font.c (w32_registry): Take font_type argument. Use ANSI
9247 when charset not specified. Only translate ANSI to unicode when
9248 font_type is truetype.
9249 (w32font_coverage_ok): New function.
9250 (add_font_entity_to_list): Use it to filter unsuitable fonts.
9251
92522008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
9253
9254 * lread.c (Fread_char): Resolve modifiers.
9255 (Fread_char_exclusive): Likewise.
9256
9257 * character.c (char_resolve_modifier_mask): New function.
9258 (char_string): Use char_resolve_modifier_mask.
9259 (Fchar_resolve_modifiers): New function.
9260 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
9261 function.
9262
92632008-03-04 Jason Rumney <jasonr@gnu.org>
9264
9265 * makefile.w32-in: Always include w32font.c in the build.
9266 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
9267
92682008-03-04 Andreas Schwab <schwab@suse.de>
9269
9270 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
9271 (versionclean): Likewise.
9272
92732008-03-04 Juanma Barranquero <lekktu@gmail.com>
9274
9275 * .cvsignore: Add oo.
9276
92772008-03-03 Andreas Schwab <schwab@suse.de>
9278
9279 * coding.c (decode_coding_object): Inhibit gap shrinking while
9280 decoding in place.
9281
92822008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
9283
9284 * w32term.c: Remove unused include "gnu.h".
9285 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
9286
9287 * gnu.h: Rename to ...
9288 * emacs-icon.h: ... this.
9289 * xterm.c: Use emacs-icon.h instead of gnu.h.
9290 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
9291
92922008-03-03 Juanma Barranquero <lekktu@gmail.com>
9293
9294 * w32font.c: Include math.h.
9295
92962008-03-03 Jason Rumney <jasonr@gnu.org>
9297
9298 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
9299 Compute options separately.
9300 (w32font_open_internal): Set glyph_idx before caching metrics.
9301
9302 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
9303 Define if system headers don't.
9304 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
9305 (w32font_encode_char): Don't declare here.
9306
9307 * w32font.c (Quniscribe, QCformat): New symbols.
9308 (syms_of_w32font): Define them.
9309 (w32font_has_char): Indicate uncertainty.
9310 (w32font_encode_char): Encode as glyph point. Make static.
9311 (recompute_cached_metrics): New function.
9312 (w32font_open_internal): Use it. Set font to use glyph points
9313 initially. Set format based on type of font.
9314 (w32font_text_extents, w32font_draw): Optionally use glyph points.
9315 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
9316 on it. Set format based on information available here.
9317 (add_font_entity_to_list): Identify backend based on opentype_only.
9318
93192008-03-02 Andreas Schwab <schwab@suse.de>
9320
9321 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
9322
9323 * coding.c (decode_coding_big5, produce_chars):
9324 Fix typos in last change.
9325
93262008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
9327
9328 * gnu.h: New icon.
9329
93302008-03-02 Kenichi Handa <handa@m17n.org>
9331
9332 * coding.c (decode_coding_utf_8): When eol-type of CODING is
9333 `dos', don't decode '\r' if that is the last in the source.
9334 (decode_coding_utf_16, decode_coding_emacs_mule)
9335 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
9336 (decode_coding_raw_text, decode_coding_charset): Likewise.
9337 (produce_chars): Don't decode EOL here. Use EMACS_INT.
9338
93392008-03-01 Jason Rumney <jasonr@gnu.org>
9340
9341 * w32font.c (w32font_full_name): Report point size for scalable fonts.
9342
93432008-03-01 Kim F. Storm <storm@cua.dk>
9344
9345 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
9346
93472008-03-01 Jason Rumney <jasonr@gnu.org>
9348
9349 * w32font.c (w32font_full_name): New function.
9350 (w32font_open_internal): Use it.
9351
93522008-03-01 Kim F. Storm <storm@cua.dk>
9353
9354 * dispnew.c (line_draw_cost): Fix invalid glyph check.
9355
93562008-03-01 Jason Rumney <jasonr@gnu.org>
9357
9358 * font.c (font_unparse_fcname): Increase len when style is a symbol.
9359
93602008-03-01 Jan Djärv <jan.h.d@swipnet.se>
9361
9362 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
9363 xg_frame_resized when the event is for the edit widget.
9364
9365 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
9366
9367 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
9368 set_char_size.
9369 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
9370 operations on widgets here. Just set frame size if needed.
9371 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
9372 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
9373 (x_wm_set_size_hint): Set size hints on the edit widget only, not
9374 the whole frame.
9375 (xg_create_tool_bar): Move attachment of the tool bar to
9376 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
9377 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
9378
93792008-03-01 Jason Rumney <jasonr@gnu.org>
9380
9381 * w32fns.c (w32_msg_pump): Disable debug code.
9382
93832008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9384
9385 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
9386
93872008-02-29 Chong Yidong <cyd@stupidchicken.com>
9388
9389 * xdisp.c (next_overlay_string): Don't set
9390 overlay_strings_at_end_processed_p if we're currently reading from
9391 a display string.
9392
93932008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
9394
9395 * xdisp.c (get_overlay_strings_1): Fix typo.
9396
93972008-02-29 Chong Yidong <cyd@stupidchicken.com>
9398
9399 * xdisp.c (get_overlay_strings_1): Add missing argument type.
9400
94012008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
9402
9403 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
9404
9405 * xdisp.c (display_mode_element): Cancel the previous change.
9406 (decode_mode_spec): Likewise.
9407 (handle_auto_composed_prop): Don't make composition if it->string
9408 is a string.
9409
94102008-02-27 Kim F. Storm <storm@cua.dk>
9411
9412 * lisp.h (GLYPH): Change type from int to struct with separate char
9413 and face_id members.
9414 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
9415 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
9416 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
9417 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
9418 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
9419 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
9420 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
9421 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
9422 handle new Lisp glyph code encoding, either an integer or a cons.
9423
9424 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
9425 (GLYPH_ALIAS): Delete.
9426 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
9427 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
9428 (GLYPH_FROM_CHAR): Replace macro by ...
9429 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
9430
9431 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
9432 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
9433 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
9434 (GLYPH_INVALID_P): New macro.
9435 (spec_glyph_lookup_face): Update prototype.
9436
9437 * dispnew.c (line_draw_cost): Adapt to new glyph type.
9438 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
9439 new glyph code encoding.
9440 (spec_glyph_lookup_face): No return value; update passed glyph instead.
9441 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
9442
9443 * xdisp.c (get_next_display_element, next_element_from_display_vector):
9444 Adapt to new glyph type and new glyph code encoding.
9445
9446 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
9447
9448 * indent.c (current_column, current_column_1, Fmove_to_column)
9449 (compute_motion): Adapt to new glyph code encoding.
9450
9451 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
9452
94532008-02-27 Chong Yidong <cyd@stupidchicken.com>
9454
9455 * process.c (wait_reading_process_output): Check for window
9456 changes caused by timers.
9457 Suggested by Johan Bockgård.
9458
94592008-02-27 Glenn Morris <rgm@gnu.org>
9460
9461 * emacs.c (USAGE1): Add `--disable-font-backend'.
9462
94632008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
9464
9465 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
9466 is made to the buffer.
9467
94682008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
9469
9470 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
9471 (face_at_string_position):
9472 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
9473 (face_at_string_position):
9474 * xdisp.c (display_string, next_overlay_change):
9475 * buffer.h (overlays_at):
9476 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
9477 Update callers.
9478
94792008-02-26 Chong Yidong <cyd@stupidchicken.com>
9480
9481 * editfns.c (Fformat): Doc fix.
9482
94832008-02-26 Juanma Barranquero <lekktu@gmail.com>
9484
9485 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
9486 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
9487 (Ffont_otf_alternates, Fquery_font): Doc fixes.
9488
94892008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
9490
9491 * buffer.c (Fbuffer_swap_text): New function.
9492 (syms_of_buffer): Defsubr it.
9493
94942008-02-25 Chong Yidong <cyd@stupidchicken.com>
9495
9496 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
9497
94982008-02-25 Jason Rumney <jasonr@gnu.org>
9499
9500 * w32font.c (w32font_draw): Draw one character at a time when padding.
9501
95022008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
9503
9504 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
9505 Handle a nil arg. Use run_window_configuration_change_hook.
9506 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
9507 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
9508 Use run_window_configuration_change_hook.
9509
95102008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
9511
9512 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
9513 1-pixel width.
9514
95152008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
9516
9517 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
9518 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
9519 if the glyph in the font is zero pixel with.
9520
9521 * dispextern.h (struct glyph_string): New member padding_p.
9522
9523 * w32font.c (w32font_draw): Pay attention to s->padding_p.
9524
9525 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
9526
9527 * xfont.c (xfont_draw): Pay attention to s->padding_p.
9528
9529 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
9530
9531 * font.c: If the font driver doesn't have `shape' function, return Qnil.
9532
95332008-02-25 Jason Rumney <jasonr@gnu.org>
9534
9535 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
9536
95372008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
9538
9539 Allow fine-grained image-cache flushing.
9540 * dispextern.h (struct image): Add `dependencies' field.
9541 (clear_image_caches): Change arg to Lisp_Object.
9542 * image.c (make_image): Initialize `dependencies' field.
9543 (clear_image_cache): Change arg to allow fine-grained flushing.
9544 Perform the flush even if image-cache-eviction-delay is nil.
9545 (clear_image_caches): Change arg to Lisp_Object.
9546 (Fclear_image_cache): Expand meaning of the argument.
9547 (mark_image): Mark `dependencies' field.
9548 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
9549 (lface_hash): Use XHASH rather than XFASTINT.
9550 (face_at_buffer_position): Fix int -> EMACS_INT position.
9551 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
9552 (select_frame_for_redisplay): Remove code duplication.
9553 (redisplay_internal): Adapt arg to call to clear_image_caches.
9554
95552008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
9556
9557 * s/vms4-0.h:
9558 * s/vms4-2.h:
9559 * s/vms4-4.h:
9560 * s/vms5-5.h: Remove, unused.
9561
9562 * s/irix5-2.h:
9563 * s/irix6-0.h:
9564 * s/riscos5.h:
9565 * s/mach-bsd4-3.h:
9566 * m/mips4.h: Remove files for obsolete systems.
9567
9568 * Makefile.in:
9569 * filelock.c:
9570 * unexmips.c:
9571 * m/hp9000s300.h:
9572 * m/iris4d.h:
9573 * s/aix3-1.h:
9574 * s/hpux.h:
9575 * s/msdos.h:
9576 * s/usg5-0.h:
9577 * s/usg5-2-2.h:
9578 * s/usg5-2.h:
9579 * s/usg5-3.h: Remove references to obsolete variables.
9580
9581 * s/irix5-0.h: Remove, move all the contents ...
9582 * s/irix6-5.h: ... here. Simplify.
9583 * config.in: Regenerate.
9584
95852008-02-24 Jason Rumney <jasonr@gnu.org>
9586
9587 * w32term.c (x_draw_glyph_string_background): Clear the background
9588 manually when cleartype is in use.
9589 (x_draw_glyph_string_foreground): Draw text transparently when
9590 cleartype is in use.
9591
9592 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
9593 a font into it unless we have to.
9594
95952008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
9596
9597 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
9598 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 9599
aac0c6e3
MR
96002008-02-18 Jason Rumney <jasonr@gnu.org>
9601
9602 * w32fns.c (Fw32_shell_execute): Encode parameters.
9603
96042008-02-09 Eli Zaretskii <eliz@gnu.org>
9605
9606 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
9607
96082008-02-05 Juanma Barranquero <lekktu@gmail.com>
9609
9610 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
9611
96122008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
9613
9614 * xterm.c (x_set_offset): Don't change the gravity if
9615 CHANGE_GRAVITY is -1.
9616
96172008-02-23 Chong Yidong <cyd@stupidchicken.com>
9618
9619 * fileio.c (auto_save_error_occurred): New var.
9620 (auto_save_error): Set it.
9621 (Fdo_auto_save): Don't overwrite the error message if an auto-save
9622 error occurred.
9623
96242008-02-23 Eli Zaretskii <eliz@gnu.org>
9625
9626 * w32.c (globals_of_w32): Add initializations for
9627 g_b_init_get_sid_sub_authority and
9628 g_b_init_get_sid_sub_authority_count.
9629
96302008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
9631
9632 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
9633 (font_parse_xlfd): Use them for sanity check.
9634 (Finternal_set_font_style_table): Make sure the table is bijective.
9635
9636 Consolidate the image_cache to the terminal struct.
9637 * termhooks.h (P_): Remove redundant def.
9638 (struct terminal): New field `image_cache'.
9639 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
9640 of FRAME_X_IMAGE_CACHE.
9641 * xterm.h (struct x_display_info): Remove image_cache field.
9642 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
9643 * w32term.h (struct w32_display_info): Remove image_cache field.
9644 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
9645 * macterm.h (struct mac_display_info): Remove image_cache field.
9646 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
9647 * xterm.c (x_term_init):
9648 * w32term.c (w32_term_init):
9649 * macterm.c (mac_term_init): Set the image_cache in the terminal.
9650 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
9651 Remove declarations.
9652 (clear_image_caches, mark_image_cache): New declarations.
9653 * xfaces.c (clear_face_cache):
9654 * xdisp.c (redisplay_internal): Use clear_image_caches.
9655 * image.c (clear_image_cache): Don't check that a frame is on
9656 a window-system before checking if it shares the same cache.
9657 (clear_image_caches): New function.
9658 (Fclear_image_cache): Use it.
9659 (mark_image): Move from allo.c.
9660 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
9661 * alloc.c (mark_image, mark_image_cache): Move to image.c.
9662 (mark_object): Don't call mark_image_cache for frames.
9663 (mark_terminals): Call mark_image_cache.
9664
9665 * lisp.h (Fdelete_terminal): Declare.
9666
9667 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
9668 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
9669 wrong_type_argument.
9670
96712008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
9672
9673 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
9674 malayalam.el, and tamil.el. Add sinhala.el.
9675
96762008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
9677
9678 * xterm.c (x_connection_closed): Consolidate identical tests.
9679 (x_delete_terminal): Don't crash if called via x_connection_closed.
9680
96812008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
9682
9683 * xdisp.c (decode_mode_spec): New arg string.
9684 (display_mode_element): Adjust for the above change.
9685
96862008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
9687
9688 * callint.c (Fcall_interactively): Use AREF.
9689
96902008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
9691
9692 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
9693
96942008-02-18 Jan Djärv <jan.h.d@swipnet.se>
9695
9696 * xfns.c (Fx_show_tip): Set string to " " if empty.
9697
96982008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
9699
9700 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
9701 with Qt.
9702
97032008-02-17 Kenichi Handa <handa@m17n.org>
9704
9705 * ftfont.c (ftfont_shape): Return Lispy number.
9706
9707 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
9708 for GCs.
9709 (Finternal_set_font_selection_order): Call font_update_sort_order
9710 only when enable_font_backend is set.
9711 (realize_x_face): Set face->font_info to that of default face only
9712 when enable_font_backend is set.
9713
9714 * xdisp.c (handle_composition_prop): Set it->c to the fist
9715 character of the composed region.
9716 (fill_composite_glyph_string): Set base_face->font_info to
9717 s->font_info. Get a face for ascii from base_face->ascii_face.
9718 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
9719 with a face already decided.
9720 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
9721 non-negative.
9722 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
9723 call font_prepare_composition unconditionally.
9724
9725 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
9726
9727 * xterm.h (struct x_display_info): New member font.
9728
9729 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
9730 (x_set_mouse_face_gc, x_new_font): Likewise.
9731 (x_term_init): Setup display_info->font.
9732 (x_delete_terminal): Free display_info->font.
9733
9734 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
9735
9736 * ftxfont.c (ftxfont_default_fid): Delete it.
9737 (ftxfont_open): Set xfont->fid to 0.
9738 (ftxfont_end_for_frame): Clear data specific to the frame and the
9739 font-driver.
9740
9741 * xftfont.c (xftfont_default_fid): Delete it.
9742 (xftfont_open): Set xfont->fid to 0.
9743
9744 * fontset.c (FONTSET_OBJLIST): New macro.
9745 (fontset_find_font): Update font-object list of the fontset.
9746 (free_realized_fontset): New function.
9747 (free_face_fontset): Call free_realized_fontset.
9748 (Ffont_info): Call font_close_object only when enable_font_backend
9749 is set.
9750
9751 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
9752 [HAVE_NTGUI]: Include w32term.h.
9753 [MAC_OS]: Include macterm.ch.
9754 (font_otf_ValueRecord): Use make_number.
9755 (font_finish_cache): Fix handling of reference count.
9756 (font_clear_cache): Update num_fonts.
9757 (font_open_entity): Update smallest_char_width and
9758 smallest_font_height of the frame.
9759 (font_close_object): Update num_fonts.
9760 (Fclear_font_cache): Fix finding the target cache data.
9761
97622008-02-16 Glenn Morris <rgm@gnu.org>
9763
9764 * fontset.c (Finternal_char_font): Fix compilation warning.
9765
97662008-02-16 Eli Zaretskii <eliz@gnu.org>
9767
9768 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
9769 instead of char arrays. Enlarge the size of array passed to
9770 get_token_information.
9771
9772 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
9773 warnings.
9774
97752008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
9776
9777 * .gdbinit: Don't set `args', it breaks gdb --args.
9778
97792008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
9780
9781 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
9782 within a narrowed buffer.
9783
97842008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
9785
9786 * coding.c (decode_coding_object, encode_coding_object):
9787 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
9788
97892008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
9790
9791 * coding.c (coding_set_destination): Use BEG_BYTE rather than
9792 hardcoding 1.
9793 (detect_coding_system):
9794 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
9795 (string_char_to_byte, string_byte_to_char, insert_from_gap):
9796 * insdel.c (insert_from_gap):
9797 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
9798 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
9799 (string_to_multibyte):
9800 * character.c (chars_in_text, multibyte_chars_in_text):
9801 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
9802
9803 * character.h (FETCH_STRING_CHAR_ADVANCE)
9804 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
9805 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
9806 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
9807
9808 * casefiddle.c (casify_region): Only call after-change and composition
9809 functions on the part of the region that was changed.
9810
9811 * keyboard.c (read_avail_input):
9812 * frame.c (Fdelete_frame): Call Fdelete_terminal.
9813
98142008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
9815
9816 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
9817 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
9818
98192008-02-11 Juanma Barranquero <lekktu@gmail.com>
9820
9821 * w32menu.c (push_submenu_start, push_submenu_end)
9822 (push_left_right_boundary, push_menu_pane, push_menu_item):
9823 * keyboard.c (read_key_sequence): Don't pass args with side effects
9824 to AREF, it fails when compiling with -DENABLE_CHECKING.
9825
98262008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
9827
9828 * Makefile.in (${lispsource}international/charprop.el):
9829 Delete this target.
9830
9831 * search.c (boyer_moore): Fix incorrect synching of the trunk and
9832 emacs-unicode-2.
9833
98342008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
9835
9836 * terminal.c (Fdelete_terminal): Clean up the `force' path.
9837
98382008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
9839
9840 * frame.c (Qnoelisp): New symbol.
9841 (syms_of_frame): Initialize it.
9842 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
9843 harmless Elisp code, from a strong `force' from x_connection_closed.
9844 * frame.h (Qnoelisp): Declare.
9845 * xterm.c (x_connection_closed): Pass `noelisp'.
9846
9847 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
9848 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
9849 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
9850 rather than `int' for the type of `type'.
9851
98522008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
9853
9854 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
9855
9856 * Makefile.in (GNUC): Remove support for gcc-1.x.
9857
98582008-02-10 Richard Stallman <rms@gnu.org>
9859
9860 * lisp.h (ASET): Use AREF, not ASLOT.
9861
98622008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
9863
9864 * lisp.h (ASET): Check bounds.
9865
98662008-02-10 Glenn Morris <rgm@gnu.org>
9867
9868 * buffer.c (mode-name): Doc fix.
9869
98702008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
9871
9872 * Makefile.in:
9873 * emacs.c:
9874 * gmalloc.c:
9875 * keyboard.c:
9876 * lisp.h:
9877 * m/ibm370aix.h:
9878 * process.c:
9879 * regex.c:
9880 * s/hpux.h:
9881 * sysdep.c:
9882 * sysselect.h:
9883 * systty.h:
9884 * unexec.c:
9885 * w32term.c:
9886 * xsmfns.c:
9887 * xterm.c: Remove code that deals with obsolete variables.
9888
9889 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
9890
9891 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
9892 nothing else needs it anymore.
9893
98942008-02-09 Eli Zaretskii <eliz@gnu.org>
9895
9896 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
9897 instead of unibyte_char_to_multibyte.
9898
98992008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
9900
9901 * s/gnu-linux.h: Remove commented out code.
9902
9903 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
9904
9905 * Makefile.in: Update what RMS says about using autoconf.
9906 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
9907 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
9908 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
9909 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
9910
99112008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
9912
9913 * keymap.c (Fkey_description): Move side effect outside of macro call.
9914
9915 * xfaces.c (Finternal_make_lisp_face):
9916 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
9917
9918 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
9919 (syms_of_fontset): Use ASET.
9920
9921 * fns.c (concat): Move side effect outside of macro call.
9922 (hash_clear): Use ASET.
9923
99242008-02-08 Richard Stallman <rms@gnu.org>
9925
9926 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
9927 If FORCE, and frame has a surrogate minibuffer for another frame,
9928 delete the other frame first.
9929
99302008-02-07 Timo Savola <timo.savola@iki.fi>
9931
9932 * xterm.c (x_detect_focus_change): Handle embed client message.
9933 (handle_one_xevent): Ditto.
9934 (handle_one_xevent): If embedded and we get a button press/release,
9935 request focus.
9936 (xembed_set_info, xembed_send_message): New functions.
9937 (x_make_frame_visible): Call xembed_set_info if embedded.
9938 (x_make_frame_invisible): Call xembed_set_info if embedded.
9939 (x_term_init): Initialize Xatom_XEMBED.
9940 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
9941 (x_iconify_frame): Ditto.
9942
9943 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
9944 (enum xembed_info, enum xembed_message, enum xembed_focus)
9945 (enum xembed_modifier, enum xembed_accelerator): New.
9946 (xembed_set_info, xembed_send_message): Declare.
9947 (FRAME_X_EMBEDDED_P): New.
9948
9949 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
9950 gtk_plug_new.
9951
9952 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
9953 window ID of a frame.
9954 (x_window): Reparent frame if embedded.
9955 (Fx_create_frame): Don't set border width if embedded.
9956
9957 * emacs.c (USAGE3): Add --parent-id.
9958 (standard_args): Ditto.
9959
99602008-02-07 Jan Djärv <jan.h.d@swipnet.se>
9961
9962 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
9963
99642008-02-07 Jim Meyering <meyering@redhat.com>
9965
9966 Use "do...while (0)", not "if (1)...else" in macro definitions.
9967 The latter provokes a warning from gcc about the empty else, when
9968 followed by ";". Also, without that trailing semicolon, it would
9969 silently swallow up any following statement.
9970 * syntax.h (SETUP_SYNTAX_TABLE)
9971 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
9972 * buffer.h (DECODE_POSITION): Likewise.
9973 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
9974 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
9975 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
9976 (FETCH_CHAR_ADVANCE): Likewise.
9977 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
9978
99792008-02-07 Jim Meyering <meyering@redhat.com>
9980
9981 * lread.c [lint]: Don't include <sys/inode.h>.
9982
99832008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
9984
9985 * xselect.c (x_handle_dnd_message):
9986 * xmenu.c (digest_single_submenu, xmenu_show):
9987 * xdisp.c (with_echo_area_buffer_unwind_data)
9988 (format_mode_line_unwind_data, unwind_format_mode_line)
9989 (display_menu_bar):
9990 * eval.c (Ffetch_bytecode):
9991 * doc.c (store_function_docstring):
9992 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
9993 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
9994 * buffer.c (add_overlay_mod_hooklist): Use ASET.
9995
99962008-02-07 Kenichi Handa <handa@m17n.org>
9997
9998 * ftxfont.c (ftxfont_open): Don't set
9999 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
10000
10001 * ftfont.c (ftfont_open): Fix previous change.
10002
100032008-02-06 Jason Rumney <jasonr@gnu.org>
10004
10005 * w32font.c (w32font_text_extents): Fill in lbearing metric.
10006 Use cached metrics for ASCII characters.
10007 (w32font_open_internal): Don't set font's owning_frame.
10008 Cache metrics for ASCII characters.
10009
10010 * w32font.h (struct w32font_info): Add ascii_metrics.
10011 Remove owning_frame.
10012
100132008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
10014
10015 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
10016 to negative value.
10017
10018 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
10019
10020 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
10021
10022 * charset.c (syms_of_charset): Set QCtest and Qeq.
10023
100242008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
10025
10026 * process.c (Fstart_process):
10027 * callproc.c (Fcall_process): Handle the case where
10028 Funhandled_file_name_directory returns nil.
10029
10030 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
10031 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
10032 * font.c (check_gstring): Use them and AREF to access the vector before
10033 we know it's really a gstring.
10034 (Ffont_shape_text): Fix typo.
46e722a9 10035 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
10036
10037 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
10038 Declare.
10039
10040 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
10041
100422008-02-05 Jason Rumney <jasonr@gnu.org>
10043
10044 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
10045 Set smallest_font_height and smallest_char_width in display info.
10046
100472008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
10048
10049 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
10050
100512008-02-05 Miles Bader <miles@gnu.org>
10052
10053 * xfaces.c (get_lface_attributes, merge_named_face)
10054 (lookup_named_face, lookup_derived_face, realize_named_face):
10055 Revert 2008-02-01 change by cyd@stupidchicken.com.
10056
100572008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
10058
10059 * fontset.c (Ffontset_info): Handle the case of inhibitting the
10060 fallback fonts.
10061 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
10062
100632008-02-04 Jason Rumney <jasonr@gnu.org>
10064
10065 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
10066 set full_name.
10067 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
10068
100692008-02-03 Jason Rumney <jasonr@gnu.org>
10070
10071 * makefile.w32-in (OBJ1): Include font.o here.
10072 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
10073
100742008-02-02 Jason Rumney <jasonr@gnu.org>
10075
10076 * makefile.w32-in (temacs): Bump EMHEAP to 21.
10077
100782008-02-01 Jason Rumney <jasonr@gnu.org>
10079
10080 * s/cygwin.h: Define VIRT_ADDR_VARIES.
10081
10082 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
10083
100842008-02-01 Andreas Schwab <schwab@suse.de>
10085
10086 * Makefile.in (shortlisp, lisp): Update for rename of
10087 ../lisp/language/myanmar.el.
10088
100892008-02-01 Chong Yidong <cyd@stupidchicken.com>
10090
10091 * xfaces.c (get_lface_attributes): Delete function.
10092 (merge_named_face, lookup_named_face, lookup_derived_face)
10093 (realize_named_face): Call lface_from_face_name directly, and use
10094 the fact that merge_face_vectors does not alter its FROM argument.
10095
100962008-02-01 Jason Rumney <jasonr@gnu.org>
10097
10098 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
10099 input in the default locale. Handle non-Unicode multibyte input.
10100
101012008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10102
10103 * fontset.c (reorder_font_vector): Exclude nil elements from the
10104 font group. Don't try multiple fonts.
10105 (fontset_font): Adjust for the above change.
10106 (Finternal_char_font): Return nil if the found font doesn't
10107 contain the character ch.
10108
10109 * Makefile.in (lisp, shortlisp): Add cham.el.
10110
101112008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10112
10113 * font.h (FONTP): Make it return 1 also for a font-object.
10114
10115 * .gdbinit (xfontset): New function.
10116
10117 * font.c (font_find_for_lface): Check if the character C is
10118 supported or not only for the first font.
10119
10120 * fontset.c (reorder_font_vector): Fix typo.
10121 (fontset_find_font): Don't add a font-spec specifying a script.
10122 Use 0 (not Qt) for the indication of empty font-group. Change the
10123 format of RFONT-DEF. Return Qt if no font in the font-group
10124 support the character.
10125 (fontset_font): Adjust for the above change. If no font was
10126 found the character, remember that.
10127 (face_for_char): Adjust for the change of RFONT-DEF.
10128 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
10129 no font for the target.
10130 (Finternal_char_font): Adjust for the change of RFONT-DEF.
10131
101322008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10133
10134 * font.c (font_load_for_face): Handle the case that the font in
10135 face->lface is a string.
10136
101372008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10138
10139 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
10140
101412008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10142
10143 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
10144 Fix previous change. If the frame is not on a window system,
10145 signal an error.
10146
101472008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10148
10149 * coding.c (decode_coding_object, encode_coding_object): Adjust
10150 marker positions after conversion.
10151
10152 * lisp.h (struct Lisp_Marker): New member need_adjustment.
10153
101542008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10155
10156 * font.c (font_find_for_lface): Fix the handling of the return
10157 value of font_has_char.
10158 (Ffont_shape_text): Fix previous change.
10159
10160 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
10161 (fontset_ref_and_range): Delete it.
10162 (fontset_find_font): Call char_table_ref_and_range instead of
10163 FONTSET_REF_AND_RANGE.
10164 (make_fontset): Don't setup font groups of Latin here.
10165 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
10166 (new_fontset_from_font): Make the specified font the default for
10167 all Latin characters.
10168
101692008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10170
10171 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
10172 is on a window system before accessing the fontset of the frame.
10173
101742008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10175
10176 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
10177
10178 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
10179 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
10180
10181 * font.c (Ffont_shape_text): If the font driver doesn't have a
10182 shaper function, make zero-width glyphs to have at least one-pixel
10183 width. Fix setting of `to' field of glyphs.
10184
101852008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10186
10187 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
10188 glyphs.
10189
10190 * font.h (struct font_driver): Improve docstring of member `shape'.
10191
101922008-02-01 Kenichi Handa <handa@m17n.org>
10193
10194 * composite.c (syms_of_composite): Fix docstring of
10195 auto-composition-function.
10196
10197 * font.h (LGLYPH_SIZE): New macro.
10198
10199 * font.c (Ffont_fill_gstring): Stop filling when a character not
10200 supported by the font is found.
10201 (Ffont_shape_text): When a shape callback function returns nil,
10202 try at most two more times with larger gstring.
10203 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
10204
10205 * xdisp.c (handle_auto_composed_prop): Change the argument to
10206 auto-composition-function.
10207
10208 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
10209 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
10210 Lispy glyph and store it in the lgstring.
10211
10212 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
10213
10214 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
10215
102162008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10217
10218 * font.c (Ffont_shape_text): Avoid unnecessary composition.
10219
10220 * fontset.c (Vfont_encoding_charset_alist): New variable.
10221 (syms_of_fontset): DEFVAR it.
10222 (reorder_font_vector, fontset_find_font): Optimize for the case of
10223 no need of reordering.
10224 (face_for_char): Map the charset property by
10225 Vfont_encoding_charset_alist.
10226
102272008-02-01 Jason Rumney <jasonr@gnu.org>
10228
10229 * w32font.c (logfonts_match): Don't check adstyle here.
10230 (font_matches_spec): Check here against physical font instead.
10231 (add_font_entity_to_list): Avoid some substitutions.
10232
10233 * font.c (font_parse_fcname): Default weight and slant to normal.
10234 (font_score): Prefer normal fonts if weight or slant unspecified.
10235 (font_score) [WINDOWSNT]: Scale weight difference down to closer
10236 match freetype scores.
10237
102382008-02-01 Jason Rumney <jasonr@gnu.org>
10239
10240 * w32font.c (w32font_text_extents): Don't use the frame stored in the
10241 font, as it may have been deleted.
10242 (w32_enumfont_pattern_entity): Map generic family to adstyle using
10243 most common hyphenless variation.
10244 (logfonts_match): Check generic family.
10245 (font_matches_spec): Don't check generic family here.
10246 (fill_in_logfont): Set generic family based on adstyle.
10247
10248 * w32font.h (w32font_get_cache): Update declaration.
10249
102502008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10251
10252 * ftfont.c (ftfont_get_cache): Adjust the argument type.
10253
10254 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
10255 If none of the new drivers are available, call font_update_drivers
10256 with the old drivers.
10257
10258 * w32font.c (w32font_get_cache): Adjust the argument type.
10259
10260 * xfont.c (xfont_get_cache): Adjust the argument type.
10261
10262 * font.h (struct font_driver): Change argument type of get_cache.
10263
10264 * xftfont.c (xftfont_start_for_frame): Delete prototype.
10265
10266 * font.c (Ffont_get): Fix arguments to Fassoc.
10267 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
10268 (font_clear_cache): New function.
10269 (font_list_entities, font_matching_entity): Use font_get_cache.
10270 (font_update_drivers): Call font_clear_cache when finishing a driver.
10271
10272 * fontset.c (fontset_find_font): Fix previous change.
10273
102742008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10275
10276 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
10277 dpyinfo->font_table.
10278 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
10279 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
10280
10281 * font.c (font_at): Handle the case that the arg C is negative.
10282 Handle the unibyte case.
10283 (Ffont_at): Call font_at with the arg C -1.
10284
10285 * xdisp.c (handle_auto_composed_prop): Don't get a character at
10286 the position here, and call font_at with the arg C -1.
10287 Don't check the range of the existing composition at the point.
10288
102892008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10290
10291 * fontset.c (fontset_add): New args charset_id and family.
10292 Change caller.
10293 (load_font_get_repertory, fontset_find_font): Assume that
10294 font_spec is always a font-spec object.
10295 (Fset_fontset_font): Always store a font-spec object in a fontset.
10296
10297 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
10298 instead of get_property_and_range.
10299
103002008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10301
10302 * xftfont.c (struct xftfont_info): Delete the member ft_face.
10303 (xftfont_open): Don't keep locking face.
10304 (xftfont_close): Don't unlock face.
10305 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
10306
10307 * fontset.c (fontset_find_font): Don't prefer a font of
10308 supplementary charset.
10309
103102008-02-01 Kenichi Handa <handa@m17n.org>
10311
10312 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
10313 script, langsys_tag to langsys, new member script.
10314 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 10315 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
10316 listing to the script specified in that property. Fix arg to
10317 OTF_check_features.
10318
103192008-02-01 Jason Rumney <jasonr@gnu.org>
10320
10321 * w32font.h: New file.
10322
10323 * w32font.c: Include it.
10324 (struct w32font_info): Add owning_frame field. Move to w32font.h.
10325 (w32font_open): Set owning_frame.
10326 (w32font_text_extents): Use owning_frame.
10327 (struct font_callback_data): Add opentype_only field.
10328 (add_font_entity_to_list): Use it to filter fonts.
10329 Don't check against full name.
10330 (w32font_list_internal): New function.
10331 (w32font_list): Use it.
10332 (w32font_match_internal): New function.
10333 (w32font_match): Use it.
10334 (w32font_open_internal): New function.
10335 (w32font_open): Use it.
10336 (w32font_get_cache, w32font_close, w32font_has_char)
10337 (w32font_encode_char, w32font_text_extents, w32font_draw):
10338 Make non-static.
10339
10340 * makefile.w32-in (w32font.o): Depend on w32font.h.
10341
103422008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10343
10344 * charset.c (Fdefine_charset_internal): Record a supplementary
10345 charset at the tail of Vcharset_order_list.
10346
10347 * font.c (Ffont_shape_text): Fix the return value.
10348
10349 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
10350
10351 * xdisp.c (handle_auto_composed_prop): Fix previous change.
10352
103532008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10354
10355 * ftfont.c (struct OpenTypeSpec): New struct.
10356 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
10357 (ftfont_get_open_type_spec): New function.
10358 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
10359
10360 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
10361
103622008-02-01 Jason Rumney <jasonr@gnu.org>
10363
10364 * w32font.c (add_font_entity_to_list): Compare only the beginning
10365 of full name.
10366
103672008-02-01 Kenichi Handa <handa@m17n.org>
10368
10369 * xdisp.c (handle_auto_composed_prop): Simplify the code.
10370 Never return HANDLED_RECOMPUTE_PROPS.
10371
103722008-02-01 Kenichi Handa <handa@m17n.org>
10373
10374 * font.c (font_gstring_produce): Delete it.
10375
10376 * composite.h (COMPOSITION_METHOD):
10377 Handle COMPOSITION_WITH_GLYPH_STRING.
10378
103792008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10380
10381 * xfont.c (Qx): Delete.
10382 (syms_of_xfont): Don't initialize Qx.
10383
10384 * composite.h (enum composition_method):
10385 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
10386
103872008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10388
10389 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
10390 (choose_face_font): Accept new form of font-spec.
10391
10392 * frame.h (font_driver_list): Declare it unconditionally.
10393 (struct frame): Define members font_driver_list and font_data_list
10394 unconditionally.
10395
10396 * fontset.c: Include "font.h" unconditionally.
10397 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
10398 (Fset_fontset_font): Accept a font-spec object.
10399
10400 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
10401 PIXEL_SIZE part a wild card.
10402
10403 * dispextern.h (struct glyph_string): Define members clip and
10404 num_clips unconditionally.
10405 (struct face): Define members font_info and extra unconditionally.
10406
10407 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
10408 ftfont_info only when HAVE_LIBOTF is defined.
10409
104102008-02-01 Andreas Schwab <schwab@suse.de>
10411
10412 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
10413 and end.
10414
104152008-02-01 Jason Rumney <jasonr@gnu.org>
10416
10417 * w32font.c (w32font_driver): Add new fields.
10418
104192008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10420
10421 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
10422 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
10423 (LIBES): Add @M17N_FLT_CFLAGS@.
10424
10425 * composite.c (compose_text): Don't treat the new style
10426 composition specially.
10427
10428 * emacs.c (main): Call syms_of_font unconditionally.
10429
10430 * font.h (FONT_ENTITY_NOT_LOADABLE)
10431 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
10432 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
10433 (struct font_driver): New member shape.
10434 (font_registry_charsets): Extern it.
10435 (font_find_for_lface, font_prepare_composition): Adjust prototype.
10436 (font_otf_capability, font_drive_otf): Delete their externs.
10437
10438 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
10439 (font_charset_alist, font_registry_charsets): Move from xfont.c
10440 and rename.
10441 (font_prop_validate_otf): New function.
10442 (font_property_table): Register it for QCotf.
10443 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
10444 (font_drive_otf): Delete.
10445 (font_prepare_composition): New arg F. Adjust for the change of
10446 lispy gstring.
10447 (font_find_for_lface): New arg C.
10448 (font_load_for_face): Adjust for the change of font_find_for_lface.
10449 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
10450 lispy gstring.
10451 (Ffont_shape_text): New function.
10452 (Fopen_font): If the font size is not given, use 12-pixel.
10453 (Ffont_at): New arg STRING.
10454 (syms_of_font): Initalize font_charset_alist.
10455 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
10456 conditionally.
10457
10458 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
10459 fonts of the same font-spec. Change the format of RFONT-DEF.
10460 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
10461 Adjust for the change of RFONT-DEF.
10462 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
10463
10464 * ftfont.h: New file.
10465
10466 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
10467 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
10468 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
10469 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
10470 font_otf_capability and font_drive_otf, set ftfont_shape.
10471 (ftfont_list): Adjust for the change of :otf property value.
10472 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
10473 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
10474 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
10475 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
10476 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
10477 (otf_gstring, gstring, m17n_flt_initialized): New variables.
10478
10479 * w32term.c (x_draw_composite_glyph_string_foreground):
10480 Adjust for the change of lispy gstring.
10481
10482 * xdisp.c (handle_composition_prop): Adjust for the change of
10483 lispy gstring. Call a function for auto-composition with the
10484 third arg it->window.
10485 (fill_composite_glyph_string): Adjust for the change of lispy string.
10486 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
10487
10488 * xfaces.c (set_font_frame_param): Adjust for the change of
10489 font_find_for_lface.
10490
10491 * xfont.c (x_font_charset_alist): Move to font.c and rename.
10492 (xfont_registry_charsets): Likewise. Change caller.
10493 (syms_of_xfont): Don't handle x_font_charset_alist.
10494
10495 * xftfont.c: Include "ftfont.h".
10496 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
10497 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
10498 (xftfont_close) [HAVE_LIBOTF]: Close otf.
10499 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
10500 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
10501 Set xftfont_driver.shape to xftfont_shape.
10502
10503 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
10504 the change of lispy gstring.
10505
105062008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10507
10508 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
10509
105102008-02-01 Jason Rumney <jasonr@gnu.org>
10511
10512 * w32font.c (w32font_draw): Fill background manually.
10513
105142008-02-01 Jason Rumney <jasonr@gnu.org>
10515
10516 * font.c (Qfontp): Remove unused symbol.
10517 (QCantialias): New symbol.
10518 (syms_of_font): Define it.
10519 (font_property_table): Set a validator for QCantialias.
10520
10521 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
10522 Define if not already.
10523 (QCfamily): Share with xfaces.c.
10524 (Qstandard, Qsubpixel, Qnatural): New symbols.
10525 (syms_of_w32font): Define them. Don't define QCfamily here.
10526 (w32_antialias_type, lispy_antialias_type): New functions.
10527 (w32_enumfont_pattern_entity): New arg requested_font.
10528 Set antialias parameter if non-default was requested.
10529 (fill_in_logfont): Fill in lfQuality if :antialias specified.
10530
105312008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10532
10533 * lread.c (read1): Undo the previous change.
10534
105352008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
10536
10537 * frame.c (Fdelete_frame): Call font_update_drivers only when
10538 USE_FONT_BACKEND is defined.
10539
105402008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10541
10542 * font.h (struct font_bitmap): New member bits_per_pixel.
10543 (struct font_driver): New members start_for_frame and end_for_frame.
10544 (struct font_data_list): New struct.
10545 (font_put_frame_data, font_get_frame_data): Extern them.
10546
10547 * frame.h (struct frame): New member font_data_list.
10548
10549 * font.c (font_update_drivers): Call driver->start_for_frame and
10550 driver->end_for_frame at proper timings.
10551 (font_put_frame_data, font_get_frame_data): New functions.
10552 (Ffont_spec): Add usage in the docstring.
10553
10554 * frame.c (make_frame): Initialize f->font_data_list to NULL.
10555 (Fdelete_frame): Call font_update_drivers.
10556
10557 * xftfont.c (struct xftface_info): Delete the member xft_draw.
10558 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
10559 (xftfont_get_xft_draw): New function.
10560 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
10561 (xftfont_end_for_frame): New function.
10562 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
10563
10564 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
10565 Change argument. Cache GCs in the per-frame data.
10566 (struct ftxfont_frame_data): New struct.
10567 (ftxfont_draw_bitmap): New arg gc_fore and flush.
10568 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
10569 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
10570 (ftxfont_end_for_frame): New function.
10571 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
10572
10573 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
10574
105752008-02-01 Kenichi Handa <handa@m17n.org>
10576
10577 * xselect.c (Vselection_coding_system)
10578 (Vnext_selection_coding_system): Delete them.
10579 (syms_of_xselect): Don't declare selection-coding-system and
10580 next-selection-coding-system. They are declared in select.el.
10581
105822008-02-01 Jason Rumney <jasonr@gnu.org>
10583
10584 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
10585
10586 * w32fns.c: Include imm.h.
10587 (get_composition_string_fn, get_ime_context_fn): New optional
10588 system functions.
10589 (globals_of_w32fns): Load them from imm32.dll.
10590 (ignore_ime_char): New flag.
10591 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
10592 WM_IME_ENDCOMPOSITION messages.
10593
10594 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
10595 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
10596
105972008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10598
10599 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
10600 (READCHAR_REPORT_MULTIBYTE): New macro.
10601 (readchar): New 2nd arg MULTIBYTE.
10602 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
10603 Make symbol's name multibyte according to the multibyteness of the
10604 source.
10605
106062008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10607
10608 * xfaces.c (face_for_overlay_string): Call lookup_face with
10609 correct arguments (fix of synching with the trunk).
10610
106112008-02-01 Kenichi Handa <handa@m17n.org>
10612
10613 * font.c (font_prop_validate_symbol, font_prop_validate_style)
10614 (font_prop_validate_non_neg, font_prop_validate_spacing):
10615 Delete argument prop_index.
10616 (font_property_table): Change arguments to validater. Change Callers.
10617 (font_lispy_object): Delete.
10618 (font_at): Use font_find_object instead fo font_lispy_object.
10619
106202008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10621
10622 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
10623 and file names.
10624
106252008-02-01 Jason Rumney <jasonr@gnu.org>
10626
10627 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
10628 (font_matches_spec): Remove debug output.
10629 (add_font_entity_to_list): Avoid using substituted fonts.
10630
106312008-02-01 Jason Rumney <jasonr@gnu.org>
10632
10633 * doc.c (Fsnarf_documentation):
10634 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
10635
106362008-02-01 Miles Bader <miles@gnu.org>
10637
10638 * dispextern.h (struct glyph_row): Only define "clip" field if
10639 HAVE_WINDOW_SYSTEM is defined.
10640
106412008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
10642
10643 Fix up multi-tty merge.
10644
10645 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
10646 and indentation.
10647
10648 * xfaces.c (free_realized_face, clear_face_gcs):
10649 Include font_done_for_face in the input_blocked section, just in case.
10650
10651 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
10652 (get_char_face_and_encoding): Undo last change and remove the *other*
10653 duplicate definition (i.e. keep the one that's better scoped and that
10654 includes code for the font-backend).
10655
10656 * terminal.c (create_terminal): Default keyboard_coding to
10657 `no-conversion' and terminal_coding to `undecided'.
10658
10659 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
10660
10661 * fontset.c (free_realized_fontsets): Check that the table entry does
10662 contain a fontset before trying to compare it to `base'.
10663
10664 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
10665 syms_of_charset, and syms_of_coding earlier because init_window_once
10666 now needs Vcoding_system_hash_table to be setup.
10667
10668 * coding.h (default_buffer_file_coding): Remove.
10669
10670 * coding.c (default_buffer_file_coding): Remove.
10671 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
10672 than ->symbol, and use the terminal-local coding system.
10673 (syms_of_coding): Don't setup the coding-systems that are not
10674 terminal-local.
10675 (Fdefine_coding_system_internal): Use XCAR/XCDR.
10676
10677 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
10678 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
10679
10680 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
10681 in chartab.c and were re-added here by mistake.
10682 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
10683
10684 * doc.c (Fsnarf_documentation):
10685 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
10686 src to etc.
10687
10688 * ChangeLog.10: Add mistakenly removed entry.
10689
106902008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
10691
10692 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
10693
106942008-02-01 Miles Bader <miles@gnu.org>
10695
10696 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
10697 Add extra args to FACE_FOR_CHAR.
10698
106992008-02-01 Kenichi Handa <handa@m17n.org>
10700
10701 * keymap.c (where_is_internal_1): If key is a cons, store the copy
10702 in sequence.
10703
10704 * chartab.c (map_sub_char_table, map_char_table): If the range
10705 contains just one character, call the function with that character
10706 even if the depth is not 3.
10707
107082008-02-01 Jason Rumney <jasonr@gnu.org>
10709
10710 * w32font.c (w32font_text_extents): Calculate metrics for the
10711 whole string.
10712
107132008-02-01 Jason Rumney <jasonr@gnu.org>
10714
10715 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
10716
107172008-02-01 Jason Rumney <jasonr@gnu.org>
10718
10719 * w32term.c (x_set_glyph_string_clipping): Use
10720 get_glyph_string_clip_rects.
10721 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
10722 Adjust for the change of struct glyph_string.
10723
10724 * w32font.c (w32font_draw): Do clipping here.
10725
107262008-02-01 Kenichi Handa <handa@m17n.org>
10727
10728 * xftfont.c (xftfont_draw): Adjust for the change of struct
10729 glyph_string.
10730
10731 * xterm.c (x_set_glyph_string_clipping): Use
10732 get_glyph_string_clip_rects.
10733 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
10734 Adjust for the change of struct glyph_string.
10735
10736 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
10737 the resulting clip(s}.
10738 (expose_overlaps): Add arg r. Change callers. Set it to
10739 row->clip temporarily.
10740 (expose_window): Redraw rows overlapping the exposed area.
10741
10742 * dispextern.h (struct glyph_row): New member clip.
10743 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
10744 clip_height, new member clip, and num_clips.
10745
107462008-02-01 Kenichi Handa <handa@m17n.org>
10747
10748 * data.c (Fchar_or_string_p): Fix docstring.
10749
107502008-02-01 Kenichi Handa <handa@m17n.org>
10751
10752 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
10753 create a temporary XftDraw object.
10754
107552008-02-01 Kenichi Handa <handa@m17n.org>
10756
10757 * font.c (Ffontp): Fix docstring.
10758
10759 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
10760 strong evidence of ISO-2022.
10761
107622008-02-01 Kenichi Handa <handa@m17n.org>
10763
10764 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
10765 SYNTAX_ENTRY_FOLLOW_PARENT.
10766
107672008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
10768
10769 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
10770 its type.
10771 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
10772 Update to the new type of weak_hash_tables and next_weak.
10773
10774 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
10775 a plain C pointer to Lisp_Hash_Table.
10776
10777 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
10778 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
10779 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
10780 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
10781 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
10782 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
10783 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
10784 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
10785 (GC_EQ): Remove since they've been identical to their non-GC_
10786 alter-egos ever since the markbit was eradicated.
10787
10788 * alloc.c:
10789 * buffer.c:
10790 * buffer.h:
10791 * data.c:
10792 * fileio.c:
10793 * filelock.c:
10794 * fns.c:
10795 * frame.h:
10796 * lisp.h:
10797 * macterm.c:
10798 * print.c:
10799 * process.c:
10800 * w32fns.c:
10801 * w32menu.c:
10802 * w32term.c:
10803 * xfns.c:
10804 * xmenu.c:
10805 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
10806
108072008-02-01 Kenichi Handa <handa@m17n.org>
10808
10809 * chartab.c (map_sub_char_table): Make it work for the top-level
10810 char-table. Fix handling of parent char-table.
10811 (map_char_table): Adjust for the above change.
10812
108132008-02-01 Jason Rumney <jasonr@gnu.org>
10814
10815 * w32font.c (Qgdi): Rename from Qw32.
10816
108172008-02-01 Jason Rumney <jasonr@gnu.org>
10818
10819 * w32bdf.c (get_quoted_string): Make function static.
10820
108212008-02-01 Kenichi Handa <handa@m17n.org>
10822
10823 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
10824 bigger ascent and descent than those of the font, use them as
10825 font's ascent and descent.
10826
108272008-02-01 Kenichi Handa <handa@m17n.org>
10828
10829 * Makefile.in (${lispsource}international/charprop.el): Move this
10830 target within "#ifdef HAVE_UNIDATA" and "#endif".
10831
108322008-02-01 Kenichi Handa <handa@m17n.org>
10833
10834 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
10835 (shortlisp): Add ../lisp/language/tai-viet.el.
10836
108372008-02-01 Ulrich Mueller <ulm@gentoo.org>
10838
10839 * Makefile.in (${lispsource}international/charprop.el): Depend on
10840 temacs${EXEEXT}.
10841
108422008-02-01 Jason Rumney <jasonr@gnu.org>
10843
10844 * w32font.c (w32font_close): Delete the GDI font object.
10845
10846 * w32menu.c: Include character.h.
10847
10848 * w32proc.c: Likewise.
10849
10850 * w32select.c: Likewise.
10851
10852 * makefile.w32-in (w32proc.o): Depend on character.h.
10853
108542008-02-01 Jason Rumney <jasonr@gnu.org>
10855
10856 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
10857
10858 * w32menu.c (syms_of_w32menu): Likewise.
10859
10860 * w32proc.c (syms_of_ntproc): Likewise.
10861
10862 * w32select.c (syms_of_w32select): Likewise.
10863
10864 * w32term.c (syms_of_w32term): Likewise.
10865
108662008-02-01 Jason Rumney <jasonr@gnu.org>
10867
10868 * w32font.c (w32font_draw): Delete brush after using it.
10869
108702008-02-01 Jason Rumney <jasonr@gnu.org>
10871
10872 * w32font.c (w32font_open): Don't set font_idx.
10873 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
10874 to font settings.
10875 (w32font_draw): Fill background explicitly.
10876
108772008-02-01 Jason Rumney <jasonr@gnu.org>
10878
10879 * w32term.c (w32_initialize): Don't call w32font_initialize.
10880
10881 * w32font.c (w32font_info): Remove subranges.
10882 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
10883 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
10884 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
10885 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
10886 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
10887 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
10888 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
10889 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
10890 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
10891 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
10892 New symbols.
10893 (font_callback_data): New struct.
10894 (w32font_list, w32font_match): Use it.
10895 (w32font_open): Don't populate subranges.
10896 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
10897 (w32font_encode_char): Always return unicode code-point as-is.
10898 (w32font_text_extents): Supply a transformation matrix to
10899 GetGlyphOutline. Never look up by glyph index. Avoid looping
10900 twice. Use unicode version of GetTexExtentPoint32 instead of
10901 glyph index version.
10902 (set_fonts_frame): Remove.
10903 (w32_enumfont_pattern_entity): Add frame parameter, use it to
10904 set frame parameter. Use backward compatible fake foundries.
10905 Save generic family in extra slot under QCfamily. Make width slot
10906 constant. Save QCspacing value. Save list of scripts instead of
10907 binary subranges.
10908 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
10909 (add_font_entity_to_list): Use font_callback_data struct. Filter
10910 unwanted fonts.
10911 (add_one_font_entity_to_list): Use font_callback_data struct.
10912 (w32_registry): Default to iso10646_1.
10913 (fill_in_logfont): Use dpi from extra slot. Don't bother with
10914 string font registries. Don't fill in font name if it is a generic
10915 family name, fill family instead. Use spacing, family and script
10916 extra info to fill pitch, family and charset fields.
10917 (list_all_matching_fonts): Use font_callback_data struct.
10918 (unicode_range_for_char): Remove.
10919 (font_supported_scripts): New function.
10920 (w32font_initialize): Remove.
10921 (syms_of_w32font): Update which symbols are defined.
10922
109232008-02-01 Jason Rumney <jasonr@gnu.org>
10924
10925 * font.c (font_pixel_size): Reverse assq_no_quit args.
10926
10927 * w32term.h (FONT_WIDTH): Report max width, not average.
10928 (FONT_MAX_WIDTH): Remove.
10929 (FONT_AVG_WIDTH): New macro.
10930
10931 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
10932 redefinition of FONT_WIDTH.
10933
10934 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
10935 (w32_cache_char_metrics): Use FONT_WIDTH.
10936
10937 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
10938
109392008-02-01 Jason Rumney <jasonr@gnu.org>
10940
10941 * w32font.c (w32font_open): Make lfHeight negative.
10942
10943 * w32fns.c (x_default_font_parameter): Use new style font name.
10944 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
10945
109462008-02-01 Jason Rumney <jasonr@gnu.org>
10947
10948 * w32font.c (QCsubranges): New symbol.
10949 (w32font_open, w32font_has_char): Get subranges from subproperty
10950 of extra.
10951 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
10952 (syms_of_w32font): Define :subranges symbol.
10953
10954 * font.c (font_put_extra): Expose externally.
10955
10956 * font.h (font_put_extra): Move declaration from font.c.
10957
10958 * font.c (Ffont_get): Use font driver to determine otf capability.
10959 (adjust_anchor): Check if driver defines anchor_point before using.
10960
10961 * w32font.c (w32font_open): Handle size, height and pixel_size better.
10962 (w32font_draw): Use options.
10963 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
10964 Fix detection of truetype fonts.
10965 (registry_to_w32_charset): Handle charsets other than iso8859-1
10966 expressed as lisp symbols.
10967 (w32_registry): Express charset as lisp symbol.
10968 (fill_in_logfont): Reverse pixel and point height logic.
10969 Don't set width here. Set quality to default.
10970
10971 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
10972 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
10973
10974 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
10975 Remove redundant loop and allocation.
10976
10977 * makefile.w32-in (font.o, w32font.o): New objects.
10978 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
10979 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
10980
10981 * xdisp.c (fill_composite_glyph_string): Make the first arg to
10982 STORE_XCHARB a valid l-value.
10983
10984 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
10985 calculations for non-Truetype fonts.
10986 (x_draw_glyph_string): Sync with xterm.c.
10987 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
10988 Remove redundant code.
10989 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
10990
10991 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
10992 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
10993
10994 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
10995 (x_to_w32_charset, w32_to_x_charset): Expose externally.
10996
10997 * w32font.c: New file for w32 font backend.
10998
109992008-02-01 Kenichi Handa <handa@m17n.org>
11000
11001 * term.c: Don't include "buffer.h" twice.
11002
110032008-02-01 Kenichi Handa <handa@m17n.org>
11004
11005 * character.c (Funibyte_string): New function.
11006 (syms_of_character): Defsubr it.
11007
110082008-02-01 Jason Rumney <jasonr@gnu.org>
11009
11010 * w32term.c [USE_FONT_BACKEND]:
11011 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
11012 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
11013 (x_draw_glyph_string, x_draw_glyph_string_foreground)
11014 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
11015 (x_free_frame_resources): Sync with xterm.c.
11016
110172008-02-01 Andreas Schwab <schwab@suse.de>
11018
11019 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
11020 char-table size.
11021
110222008-02-01 Kenichi Handa <handa@m17n.org>
11023
11024 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
11025
110262008-02-01 Kenichi Handa <handa@m17n.org>
11027
11028 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
11029 font_otf_gpos, add font_drive_otf.
11030
11031 * fontset.c (fontset_find_font): Pay attention to font size
11032 specified for a font.
11033 (reorder_font_vector): Check contents of font_def.
11034
11035 * font.c (struct otf_list): Delete it.
11036 (otf_list): Make it a lisp variable.
11037 (otf_open): Use lispy otf_list.
11038 (generate_otf_features): Rename from parse_gsub_gpos_spec.
11039 (check_otf_features): New function.
11040 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
11041 New functions.
11042 (font_drive_otf): New function merging font_otf_gsub and
11043 font_otf_gpos.
11044 (font_open_for_lface): New arg spec. Change argument order.
11045 (font_load_for_face): Adjust for the change of font_open_for_lface.
11046 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
11047 Ffont_otf_gpos.
11048 (syms_of_font): Staticpro otf_list. Delete defsubr of
11049 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
11050
11051 * xfaces.c (set_font_frame_param): Adjust for the change of
11052 font_open_for_lface.
11053
11054 * font.h (font_open_for_lface): Adjust prototype.
11055 (struct font_driver): Delete members otf_gsub and otf_gpos, add
11056 member otf_drive.
11057 (font_otf_gsub, font_otf_gpos): Delete externs.
11058 (font_drive_otf): Extern it.
11059
110602008-02-01 Kenichi Handa <handa@m17n.org>
11061
11062 * font.c (font_at): If the window W is not on a window system,
11063 return Qnil.
11064
11065 * coding.c (produce_chars, encode_coding): Don't call
11066 insert_from_gap if no characters to produce.
11067
110682008-02-01 Kenichi Handa <handa@m17n.org>
11069
11070 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
11071 Fclear_face_cache.
11072
11073 * xfaces.c (face_for_font): Check also face->font==font->font.font.
11074
110752008-02-01 Miles Bader <miles@gnu.org>
11076
11077 * emacs.c (main): Change default value of `enable_font_backend' to 1.
11078 Parse "--disable-font-backend" option.
11079 (standard_args): Add "--disable-font-backend" option.
11080
110812008-02-01 Kenichi Handa <handa@m17n.org>
11082
11083 * fontset.c (fontset_find_font): New function.
11084 (fontset_font): Use fontset_find_font.
11085 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
11086 Register the specified font for all Latin characters.
11087 (new_fontset_from_font): Register the specified font for all Latin
11088 characters.
11089 (dump_fontset): For a realized fontset, include the base fontset
11090 name in the returned vector.
11091
110922008-02-01 Kenichi Handa <handa@m17n.org>
11093
11094 * character.h (CHAR_STRING): Cast C to unsigned on calling
11095 char_string.
11096
11097 * character.c (char_string): Type of arg C changed to unsigned.
11098 Signal an error if C is an invalid character code.
11099
11100 * editfns.c (general_insert_function, Fchar_to_string):
11101 Use CHARACTERP, not INTEGERP.
11102
111032008-02-01 Kenichi Handa <handa@m17n.org>
11104
11105 * character.h (MIN_MULTIBYTE_LEADING_CODE)
11106 (MAX_MULTIBYTE_LEADING_CODE): New macros.
11107
11108 * regex.c (analyse_first): Fix for multibyte characters in "case
11109 charset:" and "case categoryspec:".
11110
111112008-02-01 Andreas Schwab <schwab@suse.de>
11112
11113 * Makefile.in (LIBES): Move standard libraries to the end.
11114
111152008-02-01 Kenichi Handa <handa@m17n.org>
11116
11117 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
11118 nonzero, don't shrink the buffer nextb.
11119
11120 * buffer.h (struct buffer_text): New member inhibit_shrinking.
11121
11122 * coding.c (coding_alloc_by_making_gap): New arg offset.
11123 (alloc_destination): Call coding_alloc_by_making_gap with the arg
11124 offset.
11125 (decode_coding_iso_2022): Update coding->safe_charsets.
11126 (decode_coding_gap): Temporarily set
11127 current_buffer->text->inhibit_shrinking to 1.
11128
111292008-02-01 Kenichi Handa <handa@m17n.org>
11130
11131 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
11132 indexing into elements of s->cmp and s->char2b.
11133
111342008-02-01 Juanma Barranquero <lekktu@gmail.com>
11135
11136 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
11137
111382008-02-01 Kenichi Handa <handa@m17n.org>
11139
11140 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
11141 target_multibyte instead of multibyte.
11142 (re_match_2_internal): Call bcmp_translate with target_multibyte.
11143 (bcmp_translate): Change the argument name from multibyte to
11144 target_multibyte.
11145
111462008-02-01 Kenichi Handa <handa@m17n.org>
11147
11148 These changes are to compile a regexp into a pattern that can be
11149 used both for multibyte and unibyte targets.
11150
11151 * Makefile.in (search.o): Depend on charset.h.
11152
11153 * character.c (multibyte_char_to_unibyte_safe): New function.
11154
11155 * search.c: Include "charset.h".
11156 (compile_pattern_1): Delete argument multibyte. Don't set
11157 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
11158 (compile_pattern): Don't compare cp->buf.target_multibyte.
11159 Compare cp->buf.charset_unibyte.
11160 (compile_pattern): Set cp->buf.target_multibyte.
11161
11162 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
11163
11164 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
11165
11166 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
11167 multibyte. Change callers.
11168 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
11169 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
11170 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
11171 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
11172 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
11173 (regex_compile): Make the compiled pattern usable both for
11174 multibyte and unibyte targets.
11175 (analyse_first): Make the fastmap usable both for multibyte and
11176 unibyte targets.
11177 (TRANSLATE_VIA_MULTIBYTE): Delete.
11178 (re_match_2_internal): Pay attention to the case that the
11179 multibyteness of bufp and target may be different.
11180
111812008-02-01 Kenichi Handa <handa@m17n.org>
11182
11183 * xdisp.c (x_produce_glyphs): When a font is not found, make the
11184 empty box occupy at least one column width.
11185
111862008-02-01 Miles Bader <miles@gnu.org>
11187
11188 * Makefile.in: Remove redundant HAVE_XFT clause.
11189
111902008-02-01 Kenichi Handa <handa@m17n.org>
11191
11192 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
11193
111942008-02-01 Kenichi Handa <handa@m17n.org>
11195
11196 * fontset.c (Finternal_char_font): Fix for the case of POSITION
11197 being nil.
11198
111992008-02-01 Kenichi Handa <handa@m17n.org>
11200
11201 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
11202
112032008-02-01 Kenichi Handa <handa@m17n.org>
11204
11205 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
11206
112072008-02-01 Kenichi Handa <handa@m17n.org>
11208
11209 * search.c (simple_search): Fix previous change.
11210
112112008-02-01 Kenichi Handa <handa@m17n.org>
11212
11213 * xftfont.c (ftfont_font_format): Extern declaration.
11214
11215 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
11216
11217 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
11218 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
11219
11220 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
11221 (ftfont_font_format): Fix previous change.
11222
11223 * font.h (Ffont_xlfd_name): EXFUN it.
11224
11225 * font.c (font_parse_xlfd): Fix the array size of `f'.
11226 (register_font_driver): Use EQ to compare driver->type.
11227
11228 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
11229 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
11230 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
11231
112322008-02-01 Kenichi Handa <handa@m17n.org>
11233
11234 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
11235 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
11236
112372008-02-01 Kenichi Handa <handa@m17n.org>
11238
11239 * xfont.c (xfont_open): Set font->format.
11240
11241 * xftfont.c (xftfont_open): Set font->format.
11242
11243 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
11244 (ftfont_list): Include FC_FONTFORMAT in FcObject.
11245 (ftfont_open): Set font->format.
11246 (ftfont_font_format): New function.
11247
11248 * font.h (struct font): New member format.
11249
11250 * font.c (Qopentype): New variable.
11251 (syms_of_font): Defsym it.
11252 (Fquery_font): Change the format of the last element of the return
11253 value.
11254
112552008-02-01 Kenichi Handa <handa@m17n.org>
11256
11257 * xfns.c (xic_create_xfontset): Try the default fontset name as a
11258 last resort.
11259
112602008-02-01 Kenichi Handa <handa@m17n.org>
11261
11262 * coding.c (detect_coding_charset): Fix detection of multi-byte
11263 charset.
11264
112652008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
11266
11267 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
11268
112692008-02-01 Kenichi Handa <handa@m17n.org>
11270
11271 * xdisp.c (get_next_display_element): Set it->face_id for the
11272 first component of a composition.
11273 (x_produce_glyphs): Check if the font is changed or not for composition.
11274
112752008-02-01 Kenichi Handa <handa@m17n.org>
11276
11277 * fontset.c (Qlatin): New variable.
11278 (syms_of_fontset): Define it as a lisp symbol.
11279 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
11280
112812008-02-01 Kenichi Handa <handa@m17n.org>
11282
11283 * font.c (font_unparse_fcname): Pay attention to the case that
11284 some of font property is a null string.
11285
112862008-02-01 Kenichi Handa <handa@m17n.org>
11287
11288 * term.c: Include "composite.h".
11289 (encode_terminal_code): Output all components of composition.
11290 Check the size of encode_terminal_src.
11291 (produce_glyphs): For composition, call produce_composite_glyph.
11292 (append_composite_glyph, produce_composite_glyph): New functions.
11293
11294 * xdisp.c (x_produce_glyphs): In handling composition, if a font
11295 is not found, get font_info from the current ascii face.
11296
112972008-02-01 Kenichi Handa <handa@m17n.org>
11298
11299 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
11300 buffer-file-name to Qnil before calling insert_from_buffer.
11301
11302 * font.c (font_unparse_fcname): Pay attention to the case that
11303 foundry is a null string.
11304
113052008-02-01 Kenichi Handa <handa@m17n.org>
11306
11307 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
11308
11309 * font.c (Qunicode_sip): New variable.
11310 (syms_of_font): Declare it as a Lisp symbol.
11311
11312 * font.h (Qunicode_sip): Extern it.
11313
113142008-02-01 Kenichi Handa <handa@m17n.org>
11315
11316 * composite.c (get_composition_id): Pay attention to TAB component.
11317
11318 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
11319 TAB. Adjust for the change of s->char2b which always points to
11320 the first element of allocated memory.
11321
11322 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
11323
11324 * xdisp.c (handle_composition_prop): Set it->c to the first
11325 non-TAB component.
11326 (fill_composite_glyph_string): Change argument.
11327 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
11328 (x_produce_glyphs): Fix handling of left/right padding.
11329
113302008-02-01 Kenichi Handa <handa@m17n.org>
11331
11332 * coding.c (detect_coding_system): Fix for handling off
11333 inhibit_iso_escape_detection. Fix for the case that no coding
11334 system is defined for a specific coding category.
11335
113362008-02-01 Kenichi Handa <handa@m17n.org>
11337
11338 * font.c (font_matching_entity): Delete unused local var.
11339
11340 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
11341 opening a font.
11342
11343 * fileio.c (Finsert_file_contents): On recovering a file, assume
11344 Unix-like eol.
11345 (choose_write_coding_system): On auto-saving a file, force
11346 Unix-like eol.
11347
11348 * coding.c (setup_coding_system): Fix setting of
11349 coding->common_flags based on eol_type.
11350 (coding_inherit_eol_type): If PARENT is not nil, be sure to
11351 inherit from it.
11352
113532008-02-01 Kenichi Handa <handa@m17n.org>
11354
11355 * alloc.c (NSTATICS): Increas to 0x600.
11356
113572008-02-01 Kenichi Handa <handa@m17n.org>
11358
11359 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
11360 (ftfont_list): Don't check :name property.
11361 (ftfont_match): New function.
11362 (ftfont_pattern_entity): If the pattern doesn't contain
11363 FC_SPACING, don't assume FC_MONO.
11364
11365 * font.h (struct font_driver): New member `match'.
11366 (font_update_drivers): Adjust prototype.
11367
11368 * font.c (font_parse_fcname, font_parse_name): Don't change :name
11369 property of FONT.
11370 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
11371 them unconditionally.
11372 (font_matching_entity): New function.
11373 (font_open_by_name): Try font_matching_entity if exact match is
11374 not found.
11375 (font_update_drivers): Delete the arg FONT. Return a list of
11376 actually used backends. Don't free faces, font caches here.
11377 Don't store data in frame parameters. Don't call x_set_font.
11378 (Ffont_spec): Store :name property as is.
11379 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
11380 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
11381 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
11382 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
11383 Call font->driver->otf_gsub instead of font_otf_gsub.
11384
11385 * frame.c (x_set_font_backend): Do more works that were done in
11386 font_update_drivers before.
11387
11388 * xfont.c (xfont_match): New function.
11389 (xfont_driver): Set xfont_driver.match to xfont_match.
11390 (xfont_draw): Set font in GC if necessary.
11391
11392 * ftxfont.c (ftxfont_match): New function.
11393 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
11394
11395 * xftfont.c (xftfont_match): New function.
11396 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
11397
113982008-02-01 Kenichi Handa <handa@m17n.org>
11399
11400 * font.h (struct font): New member scalable.
11401 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
11402 (font_otf_gsub): Adjust prototype.
11403
11404 * font.c (font_otf_capability): Fix handling of the default langsys.
11405 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
11406 Check the contents of SPEC.
11407 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
11408 (check_gstring): New function.
11409 (REPLACEMENT_CHARACTER): New macro.
11410 (font_otf_gsub): New arg alternate_subst. Be sure to set all
11411 glyph codes of GSTRING.
11412 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
11413 (font_prepare_composition): Set cmp->glyph_len.
11414 (font_open_entity): Set font->scalable.
11415 (Ffont_get): Handle :otf property.
11416 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
11417 functions.
11418 (Fquery_font): Use font->font.full_name.
11419 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
11420 Sfont_otf_alternates.
11421
11422 * ftfont.c (ftfont_open): Set font->font.full_name and
11423 font->font.name properly. Fix calculation of font->font.height
11424 and font->min_width.
11425
11426 * ftxfont.c (ftxfont_create_gcs): New function.
11427 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
11428 (ftxfont_draw_backgrond): Fix filling region.
11429 (ftxfont_default_fid): New function.
11430 (ftxfont_open): Set xfont->fid to the return value of
11431 ftxfont_default_fid.
11432 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
11433 (ftxfont_done_face): Free only GCs that are created by
11434 ftxfont_create_gcs.
11435 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
11436
11437 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
11438 Clip to src->width, etc (not src->clip_XXX).
11439
11440 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
11441 FontBackend frame parameter.
11442
114432008-02-01 Kenichi Handa <handa@m17n.org>
11444
11445 * font.h (struct font_driver_list): New member `on'.
11446 (Fclear_font_cache): EXFUN it.
11447 (font_update_drivers): Extern it.
11448
11449 * font.c (font_unparse_fcname): Fix typo (swidth->width).
11450 (font_list_entities): Check driver_list->on.
11451 (register_font_driver): Initalize `on' member to 0.
11452 (font_update_drivers): New function.
11453 (Fclear_font_cache): Check driver_list->on.
11454
11455 * frame.h (Qfont_backend): Extern it.
11456 (x_set_font_backend): Extern it.
11457
11458 * frame.c (Qfont_backend): New variable.
11459 (frame_parms): New element for font-backend.
11460 (x_set_font_backend): New function.
11461
11462 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
11463 FontBackend frame parameter.
11464 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
11465 x_set_font_backend.
11466
11467 * xfont.c (xfont_list): Don't try listing by :name property if the
11468 name is not for XLFD.
11469
114702008-02-01 Kenichi Handa <handa@m17n.org>
11471
11472 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
11473 (LGLYPH_SET_TO): New macros.
11474 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
11475 element of G is vector or not.
11476 (font_at): Extern it.
11477
11478 * font.c: Include window.h.
11479 (font_lispy_object): New function.
11480 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
11481 end of valid glyph.
11482 (font_close_object): Fix getting (struct font *).
11483 (font_at): New function.
11484 (Ffont_get): If FONT is a font-object, get entity from it.
11485 (Ffont_make_gstring): Initialize elements of glyphs with nil.
11486 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
11487 range check.
11488 (Ffont_at): New function.
11489 (syms_of_font): Defsubr Sfont_at.
11490
11491 * xdisp.c (it_props): Move the entry for Qauto_composed to just
11492 before the entry for Qcomposition.
11493 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
11494 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
11495 the font in gstring.
11496 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
11497 LGLYPH_FORM (g) to detect the end of valid glyph.
11498 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
11499 we are composing with gstring.
11500
11501 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
11502 Check if adjustment is vector or not.
11503
11504 * Makefile.in (font.o): Make it depends on window.h.
11505
115062008-02-01 Kenichi Handa <handa@m17n.org>
11507
11508 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
11509 adjustment is vector or not.
11510
115112008-02-01 Miles Bader <miles@gnu.org>
11512
11513 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
11514
115152008-02-01 Kenichi Handa <handa@m17n.org>
11516
11517 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
11518 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
11519 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
11520
11521 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
11522 (DEVICE_DELTA): Fix typo.
11523 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
11524 LGLYPH format.
11525
11526 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
11527 the change of LGLYPH format.
11528
115292008-02-01 Kenichi Handa <handa@m17n.org>
11530
11531 * ftfont.c (ftfont_list): Fix typo.
11532 (ftfont_build_basic_charsets): Don't include letters with diacritics.
11533
115342008-02-01 Jan Djärv <jan.h.d@swipnet.se>
11535
11536 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
11537
11538 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
11539 xftface_info is non-NULL.
11540
115412008-02-01 Jan Djärv <jan.h.d@swipnet.se>
11542
11543 * ftfont.c (ftfont_list): Move misplaced #endif.
11544
115452008-02-01 Kenichi Handa <handa@m17n.org>
11546
11547 * ftfont.c (ftfont_list): Pay attention to the case that
11548 FC_CAPABILITY is not defined.
11549
115502008-02-01 Kenichi Handa <handa@m17n.org>
11551
11552 * xftfont.c (xftfont_open): Set charset related members to -1.
11553
11554 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
11555 QCname.
11556 (ftfont_open): Set charset related members to -1.
11557
11558 * fontset.c (Votf_script_alist): New variable.
11559 (syms_of_fontset): Initialize it.
11560 (fontset_font): Delete unused variable.
11561
11562 * fontset.h (Votf_script_alist): Extern it.
11563
11564 * font.c (font_find_for_lface): Optimize code.
11565
11566 * font.h (font_close_object, font_merge_old_spec): Extern them.
11567
115682008-02-01 Kenichi Handa <handa@m17n.org>
11569
11570 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
11571 (syms_of_font): Initialize them.
11572 (font_pixel_size): Allow float value in dpi.
11573 (font_prop_validate_type): Delete.
11574 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
11575 Change caller.
11576 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
11577 (font_prop_validate_extra): Delete.
11578 (font_prop_validate_spacing): New function.
11579 (font_property_table): Add elements for all known properties.
11580 (get_font_prop_index): Rename from check_font_prop_name. New
11581 argument FROM. Change caller.
11582 (font_prop_validate): Validate all known properties.
11583 (font_put_extra): Delete argument force. Change caller.
11584 (font_expand_wildcards): Make it static. Fix the way of shrinking
11585 the possible range.
11586 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
11587 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
11588 Change caller.
11589 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
11590 (font_parse_fcname): Delete argument merge. Fix parsing of point
11591 size. Don't validate properties values here. Change caller.
11592 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
11593 (font_open_by_name): Delete unused variable.
11594 (Ffont_spec): Likewise. Validate property values.
11595 (Ffont_match_p): New function.
11596
11597 * font.h (QCscalable): Extern it.
11598 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
11599
11600 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
11601
11602 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
11603 (xfont_list_pattern): New function.
11604 (xfont_list): Use xfont_list_pattern.
11605
116062008-02-01 Kenichi Handa <handa@m17n.org>
11607
11608 * font.h (Flist_fonts): EXFUN it.
11609
116102008-02-01 Jason Rumney <jasonr@gnu.org>
11611
11612 * w32term.c (w32_initialize): Add back smoothing_type and
11613 smoothing_enabled definitions.
11614
116152008-02-01 Kenichi Handa <handa@m17n.org>
11616
11617 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
11618 s->face->font on determining underline position.
11619
116202008-02-01 Kenichi Handa <handa@m17n.org>
11621
11622 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
11623 (font_has_char): Accept font-object too.
11624 (font_find_for_lface): Try at first with a size specified in face.
11625
116262008-02-01 Kenichi Handa <handa@m17n.org>
11627
11628 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
11629 font_open_by_name.
11630
116312008-02-01 Kenichi Handa <handa@m17n.org>
11632
11633 * font.h (QCspacing, QCdpi): Extern them.
11634 (enum font_spacing): New enum.
11635 (FONT_PIXEL_SIZE_QUANTUM): New macro.
11636
11637 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
11638 (QCspacing, QCdpi): New variables.
11639 (syms_of_font): Initialize them.
11640 (font_pixel_size): New function.
11641 (font_put_extra): New function.
11642 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
11643 in FONT_EXTRA.
11644 (font_parse_fcname): Handle enumerated values (e.g. bold).
11645 Fix handling font size. Add QCname property that contains only
11646 unknown properties.
11647 (font_score): Change argument. Change caller. Pay attention to
11648 FONT_PIXEL_SIZE_QUANTUM.
11649 (font_sort_entites, font_list_entities, font_find_for_lface)
11650 (font_open_for_lface, font_open_by_name): Fix handling of font size.
11651 (Ffont_spec): Add QCname property that contains only unknown properties.
11652
11653 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
11654 include weight in listing pattern, instead check weight of each
11655 listed font. Don't include scalable in pattern. Pay attention to
11656 FONT_PIXEL_SIZE_QUANTUM.
11657
116582008-02-01 Kenichi Handa <handa@m17n.org>
11659
11660 * font.c (font_parse_fcname): Fix parsing of point-size.
11661 (font_unparse_fcname): Produce symbolic names for style properties.
11662 (font_list_entities): Handle float size correctly.
11663 (font_open_by_name): Prefer `normal' property values if the name
11664 doesn't specify them.
11665
11666 * fontset.c (Finternal_char_font): Use font_get_name, not
11667 Ffont_xlfd_name.
11668
11669 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
11670 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
11671 pattern. Don't force scalable.
11672
11673 * xftfont.c (xftfont_open): For generating a name, start from
11674 96-byte buffer.
11675
116762008-02-01 Jan Djärv <jan.h.d@swipnet.se>
11677
11678 * frame.h (x_new_fontset2): Fix prototype.
11679
116802008-02-01 Kenichi Handa <handa@m17n.org>
11681
11682 * font.h (struct font_driver): Delete member parse_name.
11683 (font_match_p, font_get_spec, font_parse_fcname)
11684 (font_unparse_fcname): Extern them.
11685 (font_get_name): Adjust prototype.
11686
11687 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
11688 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
11689 (font_expand_wildcards): Fix handling ENCODING field. Avoid
11690 unnecessary checks for weight, slant, and swidth.
11691 (font_parse_fcname): New function.
11692 (font_unparse_fcname): New function.
11693 (font_parse_name): New function.
11694 (font_match_p): New function.
11695 (font_get_name): Change return value to Lisp string.
11696 (font_get_spec): New function.
11697 (Qunspecified, Qignore_defface): Don't extern them.
11698 (font_find_for_lface): Assume that LFACE is fully specified.
11699 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
11700 object, use it for FACE.
11701 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
11702 driver->parse_name.
11703 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
11704
11705 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
11706 prototype.
11707
11708 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
11709 argument F. Don't call Fnew_fontset. Instead, directly call
11710 make_fontset.
11711
11712 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
11713
11714 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
11715 of x_new_fontset2.
11716
11717 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
11718 (Qsans__serif): New variables.
11719 (ftfont_generic_family_list): New variable.
11720 (syms_of_ftfont): Initialize the above variables.
11721 (ftfont_pattern_entity): Delete argument NAME.
11722 (ftfont_list_generic_family): New function.
11723 (ftfont_parse_name): Delete this function.
11724 (ftfont_list): Try generic family only when FcFontList found no font.
11725 (ftfont_list_family): Fix args to FcObjectSetBuild.
11726
11727 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
11728 object in attrs[LFACE_FONT_INDEX].
11729 (set_lface_from_font_name): Cancel all changes for font-backend.
11730 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
11731 function.
11732 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
11733 font object in QCfont attribute.
11734 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
11735 (realize_default_face) [USE_FONT_BACKEND]: Call
11736 set_lface_from_font_and_fontset.
11737
11738 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
11739 "fixed", and signal error here if no suitable font was found.
11740
11741 * xfont.c (xfont_parse_name): Delete this function.
11742
11743 * xftfont.c (xftfont_open): Change coding style of error
11744 handling. Generate fontconfig's fontname pattern.
11745
11746 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
11747 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
11748
11749 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
11750 Both args FONTSET and FONT_OBJECT must be existing ones.
11751
117522008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11753
11754 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
11755
117562008-02-01 Kenichi Handa <handa@m17n.org>
11757
11758 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
11759
11760 * font.h (struct font): Fix typo.
11761
11762 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
11763 XLFD_XXX_INDEX.
11764 (enum xlfd_field_mask): New enum.
11765 (intern_font_field): Changed argument. Change caller. If digits
11766 are followed by non-digits, return a symbol.
11767 (font_expand_wildcards): New function.
11768 (font_parse_xlfd): Fix wildcard handling.
11769 (Ffont_spec): If :name is specified, reflect the info in the other
11770 properties.
11771
11772 * ftfont.c (ftfont_pattern_entity): Fix typo.
11773 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
11774 locale.
11775
117762008-02-01 Kenichi Handa <handa@m17n.org>
11777
11778 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
11779
11780 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
11781 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
11782 registry doesn't specify encoding part.
11783 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
11784 (font_open_by_name): At first try parsing the name.
11785 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
11786 as Lisp symbols.
11787
11788 * fontset.c (reorder_font_vector): Pay attention to the case that
11789 the 3rd element of font_def is nil.
11790 (fontset_font): For the default fontset, append one more fontset
11791 elements for a script-based font specification. Don't add script
11792 attribute on finding a font.
11793 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
11794 font name.
11795 (fontset_ascii_font): If a font can't be opened, return nil.
11796
11797 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
11798 (ftfont_pattern_entity): New function.
11799 (ftfont_get_cache): Assume that freetype_font_cache is already
11800 initialized.
11801 (ftfont_list): Handle the case that a file is specified in font
11802 name. Use ftfont_pattern_entity to generate entities.
11803 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
11804 (syms_of_ftfont): Initialize freetype_font_cache.
11805
11806 * xftfont.c (xftfont_open): Make the font name fontconfig's
11807 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
11808 (xftfont_close): Free font->font.name if not NULL.
11809
11810 * xfont.c (xfont_list): If script is specified for a font, return
11811 null_vector.
11812 (xfont_list_family): Declare argument type.
11813
11814 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
11815 name, set LFACE_FONT (lface) to nil.
11816
11817 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
11818 return Qnil.
11819
118202008-02-01 Kenichi Handa <handa@m17n.org>
11821
11822 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
11823 (standard_args): Add "-enable-font-backend".
11824
118252008-02-01 Kenichi Handa <handa@m17n.org>
11826
11827 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
11828 (struct xftdraw_list, xftdraw_list): Delete them.
11829 (register_xftdraw, check_xftdraw): Delete them.
11830 (xftfont_prepare_face): Don't call register_xftdraw.
11831 (xftfont_done_face): Don't call check_xftdraw.
11832 (xftfont_draw): Get background color only when with_background is
11833 nonzero.
11834
11835 * xfont.c (xfont_encode_char): Fix calculation of char2b.
11836
118372008-02-01 Kenichi Handa <handa@m17n.org>
11838
11839 These changes are for the new font handling codes.
11840
11841 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
11842 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
11843 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
11844 (FONTSRC, FONTOBJ): New variables.
11845 (obj): Add $(FONTOBJ).
11846 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
11847 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
11848 @LIBOTF_LIBS@.
11849 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
11850 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
11851
11852 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
11853
11854 * character.h (Vscript_representative_chars): Extern it.
11855
11856 * character.c (Vscript_representative_chars): New variable.
11857 (syms_of_character): Declare it as a Lisp variable.
11858
11859 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
11860 enable_font_backend is nonzero, accept the composition method
11861 COMPOSITION_WITH_GLYPH_STRING.
11862
11863 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
11864 enumeration COMPOSITION_WITH_GLYPH_STRING.
11865
11866 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
11867 members clip_x, clip_y, clip_width, and clip_height.
11868 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
11869
11870 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
11871 --enable-font-backend. Call syms_of_font.
11872
11873 * fns.c (assoc_no_quit): New function.
11874
11875 * fontset.h (FONT_INFO_FROM_FACE): New macro.
11876 (face_for_font, new_fontset_from_font)
11877 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
11878
11879 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
11880 (fontset_font, fontset_ascii, face_for_char)
11881 (make_fontset_for_ascii_face, Ffont_info)
11882 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
11883 is nonzero, use font-backend mechanism.
11884 (find_font_encoding): Make it non-static.
11885 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
11886 New functions.
11887
11888 * frame.h (struct frame): New members resx and resy.
11889 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
11890 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
11891
11892 * frame.c [USE_FONT_BACKEND]: Include "font.h".
11893 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
11894
11895 * lisp.h (assoc_no_quit): Extern it.
11896
11897 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
11898 Through out the file, use FONT_INFO_FROM_FACE instead of
11899 FONT_INFO_FROM_ID, use get_per_char_metric instead of
11900 rif->per_char_metric.
11901 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
11902 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
11903 (get_glyph_face_and_encoding, fill_composite_glyph_string)
11904 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
11905 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
11906 nonzero, use font-backend mechanism.
11907 (get_per_char_metric): New function.
11908
11909 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
11910 (set_lface_from_font_name)
11911 (set_font_frame_param, free_realized_face)
11912 (prepare_face_for_display, clear_face_gcs)
11913 (Finternal_set_font_selection_order, realize_x_face)
11914 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
11915 font-backend mechanism.
11916 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
11917 (load_face_font) [USE_FONT_BACKEND]: Abort.
11918 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
11919 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
11920
11921 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
11922 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
11923 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
11924 nonzero, register all available font drivers. Call
11925 x_default_font_parameter for deciding a font.
11926 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
11927
11928 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
11929 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
11930 (x_set_glyph_string_clipping_exactly)
11931 (x_compute_glyph_string_overhangs)
11932 (x_draw_glyph_string_foreground)
11933 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
11934 (x_free_frame_resources) [USE_FONT_BACKEND]: If
11935 enable_font_backend is nonzero, use font-backend mechanism.
11936 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
11937
119382008-02-01 Kenichi Handa <handa@m17n.org>
11939
11940 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
11941 system_eol_type.
11942 (syms_of_coding): Initialize system_eol_type.
11943
11944 * process.c (Fset_process_coding_system): Inherit system's eol
11945 format if necessary.
11946
119472008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11948
11949 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
11950
119512008-02-01 Kenichi Handa <handa@m17n.org>
11952
11953 * coding.c (decode_eol): Pay attention to buffer relocation in
11954 del_range_2.
11955 (decode_coding): Call decode_eol before restoring undo_list.
11956
119572008-02-01 Kenichi Handa <handa@m17n.org>
11958
11959 * charset.c (Fdefine_charset_internal): Fix setting of
11960 emacs_mule_bytes.
11961
119622008-02-01 Kenichi Handa <handa@m17n.org>
11963
11964 * keyboard.c (read_char): Check if C is a character or not before
11965 looking up Vkeyboard_translate_table.
11966
119672008-02-01 Kenichi Handa <handa@m17n.org>
11968
11969 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
11970 condition to terminate the loop.
11971
119722008-02-01 Kenichi Handa <handa@m17n.org>
11973
11974 * coding.c (produce_composition): Compare charbuf[i] instead of
11975 args[i] against 0.
11976 (Fterminal_coding_system): Use EQ to compare Lisp objects.
11977
119782008-02-01 Kenichi Handa <handa@m17n.org>
11979
11980 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
11981 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
11982 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
11983 detect_coding.
11984 (emacs_mule_char): Handle old style (Emacs 20) component character
11985 of a composition.
11986 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
11987 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
11988 composition rule.
11989 (decode_coding_emacs_mule): Handle invalid bytes correctly.
11990
119912008-02-01 Kenichi Handa <handa@m17n.org>
11992
11993 * coding.c (encode_coding_ccl): Allocate destination dynamically
11994 when necessary.
11995
119962008-02-01 Kenichi Handa <handa@m17n.org>
11997
11998 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
11999 the loop. When quitted, show a proper error message.
12000
120012008-02-01 Kenichi Handa <handa@m17n.org>
12002
12003 * xterm.c (x_set_glyph_string_clipping_exactly): Set
12004 src->clip_head and src->clip_tail temporarily instead of src->hl.
12005
12006 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
12007 character sequence.
12008 (Fccl_execute_on_string): Use ASET, not XSET.
12009
120102008-02-01 Kenichi Handa <handa@m17n.org>
12011
12012 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
12013
120142008-02-01 Kenichi Handa <handa@m17n.org>
12015
12016 * coding.c (decode_coding): Fix the condition of terminating the
12017 decoding loop.
12018
120192008-02-01 Kenichi Handa <handa@m17n.org>
12020
12021 * data.c (Faset): On setting a character bigger than 255 in a
12022 unibyte string, signal an error instead of make the string multibyte.
12023
120242008-02-01 Kenichi Handa <handa@m17n.org>
12025
12026 * charset.c (map_charset_chars): Fix for ascii-compatible charset
12027 made by a mapping table.
12028
120292008-02-01 Kenichi Handa <handa@m17n.org>
12030
12031 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
12032 not.
12033 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
12034 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
12035
12036 * xterm.c (x_draw_composite_glyph_string_foreground): Check
12037 s->face is NULL or not.
12038
120392008-02-01 Kenichi Handa <handa@m17n.org>
12040
12041 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
12042 (x_draw_glyph_string): Fix drawing of right_overhang and
12043 left_overhang around/on cursor.
12044
12045 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
12046
120472008-02-01 Kenichi Handa <handa@m17n.org>
12048
12049 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
12050
120512008-02-01 Kenichi Handa <handa@m17n.org>
12052
12053 * coding.c (Fdefine_coding_system_internal)
12054 (Fdefine_coding_system_alias): Avoid a duplicated element in
12055 Vcoding_system_alist.
12056
120572008-02-01 Kenichi Handa <handa@m17n.org>
12058
12059 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
12060
12061 * coding.c (Qcoding_system_define_form): New variable.
12062 (syms_of_coding): Intern and staticpro it.
12063 (Fcoding_system_p): Check Qcoding_system_define_form.
12064 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
12065
12066 * coding.h (CODING_SYSTEM_P): If ID is not available, call
12067 Fcoding_system_p.
12068 (CHECK_CODING_SYSTEM): If ID is not available, call
12069 Fcheck_coding_system.
12070 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
12071 Try also Fcheck_coding_system.
12072
120732008-02-01 Kenichi Handa <handa@m17n.org>
12074
12075 * coding.c (code_conversion_restore): GCPRO arg.
12076
120772008-02-01 Kenichi Handa <handa@m17n.org>
12078
12079 * character.c (lisp_string_width): Check multibyteness of STRING.
12080
120812008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12082
12083 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
12084 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
12085 (decode_mac_font_name): Use decode_coding_c_string instead of
12086 decode_coding.
12087 (x_load_font): Initialize fontp->fontset to -1. Set
12088 fontp->encoding_type.
12089
120902008-02-01 Kenichi Handa <handa@m17n.org>
12091
12092 * search.c (search_buffer): Give up BM search on case-fold-search
12093 if one of a target character has a case-equivalence of different
12094 byte length even if that target charcter is an ASCII.
12095 (simple_search): Fix calculation of byte length of matched text.
12096 (boyer_moore): Fix handling of case-equivalent multibyte characters.
12097
120982008-02-01 Kenichi Handa <handa@m17n.org>
12099
12100 * coding.c (decode_coding): Fix handling of invalid bytes.
12101
121022008-02-01 Kenichi Handa <handa@m17n.org>
12103
12104 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
12105 Unicode characters.
12106
121072008-02-01 Kenichi Handa <handa@m17n.org>
12108
12109 * coding.c (encode_coding_object): If a pre-write-conversion
12110 function makes a new buffer, kill it.
12111
121122008-02-01 Kenichi Handa <handa@m17n.org>
12113
12114 * coding.c (QCascii_compatible_p): New variable.
12115 (syms_of_coding): Initialize it.
12116 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
12117 calling string_char.
12118 (record_conversion_result): Add `default:' case.
12119 (coding_charset_list): Delete unused variable `coding_type'.
12120 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
12121 property in the plist of the coding system.
12122 (Fcoding_system_put): Check QCascii_compatible_p.
12123
121242008-02-01 Miles Bader <miles@gnu.org>
12125
12126 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
12127 removed calculation of frame `f', as it's now used.
12128
121292008-02-01 Kenichi Handa <handa@m17n.org>
12130
12131 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
12132 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
12133 (UNIDATA): New variable.
12134 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
12135 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
12136 $(RUN_TEMACS) unconditionally.
12137
121382008-02-01 Kenichi Handa <handa@m17n.org>
12139
12140 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
12141 (admindir): New variable.
12142 ($(lispsource)international/charprop.el): New target.
12143
121442008-02-01 Miles Bader <miles@gnu.org>
12145
12146 * character.c (chars-in-region): Remove obsolete function.
12147 (syms_of_character): Remove its initialization.
12148
121492008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
12150
12151 * w32select.c (validate_coding_system)
12152 (setup_windows_coding_system): New functions.
12153 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
12154 setup_windows_coding_system.
12155 (setup_config, Fw32_get_clipboard_data): Use
12156 validate_coding_system.
12157 (Fx_selection_exists): Move call to setup_config to a place
12158 where signals are allowed.
12159
12160 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
12161 (Fcheck_coding_system): Add declarations.
12162
121632008-02-01 Kenichi Handa <handa@m17n.org>
12164
12165 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
12166
121672008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12168
12169 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
12170 string as the second argument for x_new_fontset.
12171
121722008-02-01 Kenichi Handa <handa@m17n.org>
12173
12174 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
12175 (encode_coding_object): Use safe_call instead of call2.
12176
121772008-02-01 Kenichi Handa <handa@m17n.org>
12178
12179 * fontset.c (Fset_fontset_font): Check family element of a given vector.
12180
12181 * Makefile.in (lisp): Include charprop.el.
12182
121832008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12184
12185 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
12186 Not sure if it's unnecessary.
12187
121882008-02-01 Steven Tamm <steventamm@mac.com>
12189
12190 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
12191 some possibly unnecessary fontset checking code that crashed
12192 when creating a new frame.
12193
121942008-02-01 Kenichi Handa <handa@m17n.org>
12195
12196 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
12197 lookup_face.
12198
12199 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
12200
12201 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
12202
122032008-02-01 Kenichi Handa <handa@m17n.org>
12204
12205 * coding.c: Cancel the change done in HEAD on 2008-02-01.
12206 (coding_charset_list): New function.
12207
12208 * coding.h (coding_charset_list): Extern it.
12209
122102008-02-01 Kenichi Handa <handa@m17n.org>
12211
12212 * fontset.c (Fset_fontset_font): Call find_font_encoding with
12213 concatenation of family and registry.
12214
122152008-02-01 Kenichi Handa <handa@m17n.org>
12216
12217 * character.h (BYTE8_STRING): Fix typo.
12218
12219 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
12220 string to multibyte (sync to HEAD).
12221
12222 * casefiddle.c (casify_region): Handle changes in byte-length
12223 using replace_range_2 (sync to HEAD).
12224
122252008-02-01 Andreas Schwab <schwab@suse.de>
12226
12227 * chartab.c (map_char_table): GCPRO table and arg.
12228
122292008-02-01 Kenichi Handa <handa@m17n.org>
12230
12231 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
12232 already at limit.
12233
122342008-02-01 Kenichi Handa <handa@m17n.org>
12235
12236 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
12237 instead of fast_c_string_match_ignore_case.
12238 (find_font_encoding): Change argument to Lisp_Object. Use
12239 fast_string_match_ignore_case instead of
12240 fast_c_string_match_ignore_case. Change caller.
12241
122422008-02-01 Kenichi Handa <handa@m17n.org>
12243
12244 * xdisp.c (get_next_display_element): In unibyte case, decide to
12245 display in octal form by checking a character by
12246 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
12247
12248 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
12249
12250 * character.c (unibyte_has_multibyte_table): New variable.
12251
12252 * character.h (unibyte_has_multibyte_table): Extern it.
12253 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
12254
122552008-02-01 Kenichi Handa <handa@m17n.org>
12256
12257 * coding.c (encode_coding_iso_2022): Fix handling of charset
12258 annotation.
12259
122602008-02-01 Kenichi Handa <handa@m17n.org>
12261
12262 * coding.c (setup_coding_system): If coding_system is nil, use
12263 Qundecided.
12264 (Fterminal_coding_system): Return nil if terminal coding system is
12265 `undecided'.
12266 (syms_of_coding): Define coding-system `undecided' here. Setup
12267 terminal_coding as `undecided'.
12268
122692008-02-01 Kenichi Handa <handa@m17n.org>
12270
12271 * xdisp.c (message_dolog, set_message_1): Call
12272 unibyte_char_to_multibyte with arg type int.
12273
12274 * lread.c (read1): Fix reading of a char-table.
12275
12276 * print.c (print_object): Include sub char-table in circularities
12277 detection.
12278
122792008-02-01 Kenichi Handa <handa@m17n.org>
12280
12281 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
12282 Append the found sequences in car of ARGS instead of prepending.
12283
122842008-02-01 Kenichi Handa <handa@m17n.org>
12285
12286 * fileio.c (report_file_error): Make a unibyte string from
12287 strerror (errorno).
12288 (Fsubstitute_in_file_name): Fix the arg to
12289 unibyte_char_to_multibyte. It is evaluated twice.
12290
122912008-02-01 Kenichi Handa <handa@m17n.org>
12292
12293 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
12294
122952008-02-01 Kenichi Handa <handa@m17n.org>
12296
12297 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
12298 BOM is not found.
12299 (detect_coding, detect_coding_system): Optimization for ISO-2022
12300 when no 8-bit data is found.
12301
123022008-02-01 Jason Rumney <jasonr@gnu.org>
12303
12304 * w32fns.c (x_to_w32_font): Update to use new coding struct.
12305
123062008-02-01 Kenichi Handa <handa@m17n.org>
12307
12308 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
12309 CHARS.
12310
123112008-02-01 Steven Tamm <steventamm@mac.com>
12312
12313 * macterm.c (mac_encode_char): Add charset argument and update
12314 to use encoding_type.
12315 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
12316 switch to pure fontset.
12317 (decode_mac_font_name): Temporarily remove decoding.
12318 (x_font_name_to_mac_font_name): Temporarily remove encoding.
12319 (x_load_font): Temporarily remove encoding.
12320
123212008-02-01 Kenichi Handa <handa@m17n.org>
12322
12323 * xfaces.c (Fface_font): If frame is not on a window system,
12324 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
12325 refer to face->font.
12326 (split_font_name_into_vector, build_font_name_from_vector)
12327 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
12328 when HAVE_WINDOW_SYSTEM is defined.
12329
123302008-02-01 Kenichi Handa <handa@m17n.org>
12331
12332 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
12333 (x_produce_glyphs): Fix setting of members of cmp in case
12334 cmp->glyph_len is zero.
12335
12336 * fontset.c (Fset_fontset_font): Fix docstring.
12337 (Ffontset_info): Make it backward compatible. New arg ALL.
12338
123392008-02-01 Kim F. Storm <storm@cua.dk>
12340
12341 * process.c (read_process_output): Grow decoding_buf when needed;
12342 this could cause a crash in allocate_string and compact_small_strings.
12343
123442008-02-01 Kenichi Handa <handa@m17n.org>
12345
12346 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
12347
123482008-02-01 Kenichi Handa <handa@m17n.org>
12349
12350 * coding.c (setup_coding_system): Set coding->common_flags
12351 correctly for raw-text.
12352 (consume_chars): On encoding unibyte text by raw-text, don't check
12353 multibyte form.
12354 (encode_coding): On encoding by raw-text, never use translation tables.
12355
12356 * fileio.c (e_write): Short cut for the case of no encoding.
12357
123582008-02-01 Kenichi Handa <handa@m17n.org>
12359
12360 * coding.c (detect_coding, detect_coding_system): Delete unused
12361 variables.
12362
123632008-02-01 Kenichi Handa <handa@m17n.org>
12364
12365 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
12366 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
12367
123682008-02-01 Kenichi Handa <handa@m17n.org>
12369
12370 * coding.c (Ffind_coding_systems_region_internal): Include
12371 raw-text and no-conversion in the result.
12372
123732008-02-01 Kenichi Handa <handa@m17n.org>
12374
12375 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
12376 (load_font_get_repertory): Delete unnecessary check of ENCODING of
12377 FONT_DEF.
12378 (font_def_arg, add_arg, from_arg, to_arg): New args.
12379 (set_fontset_font): Change argument.
12380 (Fset_fontset_font): Fix for the case that TARGET is a script
12381 name and charset name.
12382 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
12383
123842008-02-01 Kenichi Handa <handa@m17n.org>
12385
12386 * fontset.c (fontset_font): Rename from fontset_face. Change return
12387 value.
12388 (face_suitable_for_char_p, face_for_char): Adjust for the change
12389 of fontset_font.
12390 (make_fontset_for_ascii_face): Fix setting of the fontset element
12391 for ASCII.
12392 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
12393 to get a font name.
12394 (Ffontset_info): Adjust for the change of fontset_font.
12395
12396 * coding.c (emacs_mule_char): Check invalid code more rigidly.
12397
12398 * character.h (LEADING_CODE_LATIN_1_MIN)
12399 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
12400
124012008-02-01 Kenichi Handa <handa@m17n.org>
12402
12403 * editfns.c (check_translation): New function.
12404 (Ftranslate_region_internal): Handle M:N mapping.
12405
124062008-02-01 Kenichi Handa <handa@m17n.org>
12407
12408 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
12409
124102008-02-01 Kenichi Handa <handa@m17n.org>
12411
12412 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
12413 goto invalid_code.
12414 (decode_coding_iso_2022): Fix handling of invalid designation.
12415
12416 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
12417 after calling code_conversion_save.
12418
124192008-02-01 Kenichi Handa <handa@m17n.org>
12420
12421 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
12422
12423 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
12424
12425 * fontset.c: Include "intervals.h".
12426 (fontset_face): Fix comparing of Lisp_Objects.
12427 (free_face_fontset, new_fontset_from_font_name): Fix
12428 Lisp_Object/int mixup.
12429
12430 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
12431
12432 * coding.c: Add many prototypes for static functions.
12433 (get_translation_table): Allow max_lookup to be NULL.
12434 (decode_coding, Ffind_coding_systems_region_internal)
12435 (Funencodable_char_position, Fcheck_coding_systems_region): Call
12436 get_translation_table with max_lookup NULL.
12437
124382008-02-01 Kenichi Handa <handa@m17n.org>
12439
12440 * coding.c (get_translation_table): Declare it as Lisp_Object.
12441 (LOOKUP_TRANSLATION_TABLE): New macro.
12442 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
12443 instead of CHAR_TABLE_REF.
12444
124452008-02-01 Kenichi Handa <handa@m17n.org>
12446
12447 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
12448 annotation data format.
12449 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
12450 Change arguments FROM and TO to single argument NCHARS. Change caller.
12451 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
12452 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
12453 (decode_coding_ccl, decode_coding_charset): Pay attention to
12454 coding->charbuf_used.
12455 (get_translation): New function.
12456 (produce_chars): New arguments translation_table and last_block.
12457 Translate characters here. Return number of carryover chars.
12458 Change caller.
12459 (produce_composition): New argument pos. Change caller.
12460 Adjust for the change of annotation data format.
12461 (produce_charset, produce_annotation): Likewise.
12462 (decode_coding, encode_coding): Don't call translate_chars.
12463 (consume_chars): New arg translation_table. Change caller.
12464 (translate_chars): Delete.
12465 (syms_of_coding): Make translation-table's number of extra slots 2.
12466
124672008-02-01 Kenichi Handa <handa@m17n.org>
12468
12469 * search.c (simple_search): Fix setting this_pos_byte in backward
12470 search.
12471
12472 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
12473 byte sequence.
12474 (detect_coding_ccl): Fix setting of the variable valids.
12475
124762008-02-01 Kenichi Handa <handa@m17n.org>
12477
12478 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
12479
12480 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
12481
12482 * editfns.c (Ftranslate_region_internal): Rename from
12483 Ftranslate_region. Accept a char-table in TABLE.
12484 (syms_of_editfns): Defsubr Stranslate_region_internal.
12485
12486 * xfaces.c (set_lface_from_font_name): If a font is specified for
12487 a frame, generate a fontset from the font.
12488 (build_scalable_font_name): If the scalable font is requested for
12489 a specific size, don't change that size.
12490 (try_font_list): Try a scalable font also in the case that a
12491 pattern string is specified.
12492
124932008-02-01 Kenichi Handa <handa@m17n.org>
12494
12495 * xfaces.c (Fface_font): New optional arg CHARACTER.
12496
124972008-02-01 Kenichi Handa <handa@m17n.org>
12498
12499 * charset.h (CHARSET_OFFSET): New macro.
12500
125012008-02-01 Kenichi Handa <handa@m17n.org>
12502
12503 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
12504
12505 * fontset.c (fontset_face): Handle the case that repertory is a
12506 char-table.
12507 (find_font_encoding): Return nil for unknown encoding.
12508 (Fset_fontset_font): Ignore a font of unknown encoding.
12509
125102008-02-01 Kenichi Handa <handa@m17n.org>
12511
12512 * keymap.c (describe_vector): Handle default value of a char table.
12513
12514 * fontset.c (fontset_face): Handle fallback fonts correctly.
12515 (Ffontset_info): Return infomation about fallback fonts.
12516
125172008-02-01 Kenichi Handa <handa@m17n.org>
12518
12519 * fontset.c (FONTSET_DEFAULT): New macro.
12520 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
12521 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
12522 the case that it is nil.
12523 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
12524 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
12525
12526 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
12527 subset or superset.
12528
125292008-02-01 Kenichi Handa <handa@m17n.org>
12530
12531 * emacs.c (main): Call init_charset after syms_of_XXX.
12532
12533 * charset.c (Vcharset_map_directory): Delete.
12534 (Vcharset_map_path): New variable.
12535 (load_charset_map_from_file): Use Vcharset_map_path instead.
12536 (init_charset): Initialize Vcharset_map_path.
12537 (syms_of_charset): Delete declaration of "charset-map-directory",
12538 add declaration of "charset-map-path".
12539
125402008-02-01 Kenichi Handa <handa@m17n.org>
12541
12542 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
12543 ASCII only string.
12544
12545 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
12546
12547 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
12548 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
12549
125502008-02-01 Kenichi Handa <handa@m17n.org>
12551
12552 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
12553
12554 * coding.c (QCmnemonic, QCdefalut_char)
12555 (QCdecode_translation_table, QCencode_translation_table)
12556 (QCpost_read_conversion, QCpre_write_conversion): New variables.
12557 (get_translation_table): Return a list of translation tables if
12558 necessary.
12559 (decode_coding): Call get_translation_table with ENCODEP 0.
12560 (char_encodable_p): If translation_table is non-nil, always call
12561 translate_char.
12562 (Fdefine_coding_system_internal): Accept list of translation
12563 tables as :encode-translation-table and :decode-translation-table.
12564 (Fcoding_system_put): New function.
12565 (syms_of_coding): Declare new symbols. Defsubr
12566 Scoding_system_put.
12567 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
12568 typically JISX0212.
12569
12570 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
12571 when the charset is superset type.
12572
12573 * character.c (translate_char): Accept list of translation tables.
12574
125752008-02-01 Kenichi Handa <handa@m17n.org>
12576
12577 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
12578 (CODING_ATTR_TRANS_TBL): New macro.
12579
12580 * coding.c (get_translation_table): New function.
12581 (translate_chars): Fix the bug of skipping annotation data.
12582 (decode_coding, encode_coding): Utilize get_translation_table.
12583 (char_encodable_p, Funencodable_char_position): Translate char if
12584 necessary.
12585 (Ffind_coding_systems_region_internal)
12586 (Fcheck_coding_systems_region): Setup translation table for encode
12587 in a coding system attribute vector in advance.
12588 (Fdefine_coding_system_internal): Allow a symbol as translation
12589 table. For shift-jis type coding system, allow 4th charset.
12590
125912008-02-01 Kenichi Handa <handa@m17n.org>
12592
12593 * coding.c (decode_coding_sjis): Check the first byte rigidly.
12594
12595 * xdisp.c (get_next_display_element): Pass -1 as POS to
12596 FACE_FOR_CHAR if displaying a C-string.
12597
125982008-02-01 Kenichi Handa <handa@m17n.org>
12599
12600 * composite.c (get_composition_id): Handle xoff and yoff in a
12601 composition rule.
12602
12603 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
12604 (struct composition): New member lbearing and rbearing.
12605
12606 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
12607 (x_get_glyph_overhangs): Handle a composition glyph.
12608 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
12609
12610 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
12611 composition glyph.
12612
126132008-02-01 Kenichi Handa <handa@m17n.org>
12614
12615 * print.c: Include charset.h.
12616 (Vprint_charset_text_property): New variable.
12617 (Qdefault): Extern it.
12618 (PRINT_STRING_NON_CHARSET_FOUND)
12619 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
12620 (print_check_string_result): New variable.
12621 (print_check_string_charset_prop): New function.
12622 (print_prune_charset_plist): New variable.
12623 (print_prune_string_charset): New function.
12624 (print_object): Call print_prune_string_charset if
12625 Vprint_charset_text_property is not t.
12626 (print_interval): Print nothing if interval->plist is nil.
12627 (syms_of_print): Declare Vprint_charset_text_property as a lisp
12628 variable. Init and staticpro print_prune_charset_plist.
12629
126302008-02-01 Kenichi Handa <handa@m17n.org>
12631
12632 * fontset.c (new_fontset_from_font_name): Use the specified font
12633 for all characters in the new fontset.
12634
12635 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
12636 OBJECT args.
12637
12638 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
12639 OBJECT args for composition too.
12640
12641 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
12642 OBJECT args.
12643
126442008-02-01 Kenichi Handa <handa@m17n.org>
12645
12646 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
12647
12648 * fontset.c (reorder_font_vector): Adjust for the change of
12649 FONT_DEF format.
12650 (fontset_face): New arg id. Change caller.
12651 (face_for_char): New args pos and object.
12652 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
12653 (fs_query_fontset): Check NAME by Fassoc too.
12654 (Fset_fontset_font): Allow non-XLFD font name.
12655 (Ffontset_info): Adjust for the change of FONT_DEF format.
12656
12657 * fontset.h (face_for_char): Adjust prototype.
12658
12659 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
12660 (append_space, extend_face_to_end_of_line)
12661 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
12662 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
12663
12664 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
12665 POS and OBJECT args.
12666
12667 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
12668 POS and OBJECT args.
12669
126702008-02-01 Jason Rumney <jasonr@gnu.org>
12671
12672 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
12673 of GlobalAlloc'ed memory.
12674
126752008-02-01 Kenichi Handa <handa@m17n.org>
12676
12677 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
12678
12679 * charset.h (charset_table_used): Delete extern.
12680
12681 * charset.c (charset_table_used): Make it static.
12682 (map_charset_chars): Fix args to c_function with.
12683
12684 * chartab.c (map_sub_char_table_for_charset): Fix args to
12685 c_function with.
12686
12687 * coding.h (enum coding_result_code): Delete
12688 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
12689
12690 * coding.c (Qinsufficient_source, Qinconsistent_eol)
12691 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
12692 (Vlast_code_conversion_error): New variables.
12693 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
12694 (ONE_MORE_BYTE): Record error if any instead of signaling an
12695 error. If non-ASCII multibyte char is found, return the negative
12696 value of the code. All callers changed to check it.
12697 (ONE_MORE_BYTE_NO_CHECK): Likewise.
12698 (record_conversion_result): New function. Change all codes setting
12699 coding->result to call this function.
12700 (detect_coding_utf_8, decode_coding_utf_8)
12701 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
12702 Don't use the local variable incomplete.
12703 (emacs_mule_char): Change the second arg to `const'.
12704 (decode_coding): Fix of flushing out unprocessed data.
12705 (make_conversion_work_buffer): Fix making of a work buffer.
12706 (decode_coding_object): Return coding->dst_object.
12707
12708 * fontset.c (set_fontset_font): Fix args.
12709
12710 * lisp.h (CHARACTERBITS): Define as 22.
12711
12712 * process.c (send_process): Be sure to set coding->src_multibyte.
12713
12714 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
12715
127162008-02-01 Kenichi Handa <handa@m17n.org>
12717
12718 * xdisp.c (handle_auto_composed_prop): Give limit to
12719 Fnext_single_char_property_change.
12720
127212008-02-01 Kenichi Handa <handa@m17n.org>
12722
12723 * composite.c (syms_of_composite): Don't make the composition hash
12724 table weak.
12725
12726 * fontset.c (Fset_fontset_font): Fix docstring.
12727
12728 * lisp.h (detect_coding_system): Adjust prototype.
12729
12730 * fileio.c (kill_workbuf_unwind): Delete this function.
12731 (Finsert_file_contents): Adjust the call of detect_coding_system.
12732 Get conversion_buffer by code_conversion_save. Use the macro
12733 CODING_MAY_REQUIRE_DECODING. After decoding, update
12734 coding_system.
12735
12736 * coding.h (make_conversion_work_buffer): Delete extern.
12737 (code_conversion_save): Extern it.
12738
12739 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
12740 (CODING_GET_INFO): Delete argument eol_type. Change callers.
12741 (decode_coding_utf_8): Don't do eol converion.
12742 (detect_coding_utf_16): Check coding->src_chars, not
12743 coding->src_bytes. Add heuristics for those that have no signature.
12744 (decode_coding_emacs_mule, decode_coding_iso_2022)
12745 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
12746 Don't do eol converion.
12747 (adjust_coding_eol_type): Return a new coding system.
12748 (detect_coding): Don't detect eol. Fix for utf-16 detection.
12749 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
12750 each change.
12751 (decode_coding): Pay attention to undo_list. Do eol conversion for
12752 all types of coding-systems (if necessary).
12753 (Vcode_conversion_work_buf_list): Delete it.
12754 (Vcode_conversion_reused_workbuf): Rename from
12755 Vcode_conversion_reused_work_buf.
12756 (Vcode_conversion_workbuf_name): New variable.
12757 (reused_workbuf_in_use): New variable.
12758 (make_conversion_work_buffer): Delete the arg DEPTH.
12759 (code_conversion_restore): Change argument to cons.
12760 (code_conversion_save): Delete the argument BUFFER. Change callers.
12761 (detect_coding_system): New argument src_chars. Change callers.
12762 Fix for utf-16 detection.
12763 (init_coding_once): Don't use ISO_carriage_return.
12764 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
12765 reused_workbuf_in_use.
12766
127672008-02-01 Kenichi Handa <handa@m17n.org>
12768
12769 * keymap.c (store_in_keymap): Pay attention to the case that idx
12770 is a cons specifying a character range.
12771
127722008-02-01 Kenichi Handa <handa@m17n.org>
12773
12774 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
12775 HANDLED_RECOMPUTE_PROPS.
12776
12777 * coding.c (Fdefine_coding_system_internal): Fix checking of
12778 ascii compatibility.
12779
127802008-02-01 Kenichi Handa <handa@m17n.org>
12781
12782 * charset.c (find_charsets_in_text): Delete unused locale variable.
12783 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
12784
12785 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
12786 Resync charset_list to Vemacs_mule_charset_list.
12787
12788 * keymap.c (store_in_keymap): Pay attention to the case that idx
12789 is a cons specifying a character range.
12790
127912008-02-01 Kenichi Handa <handa@m17n.org>
12792
12793 * composite.c (update_compositions): Bind inhibit-read-only, etc
12794 to t before calling remove-list-of-text-properties.
12795
12796 * print.c (print_object): Always print ASCII chars as is.
12797
127982008-02-01 Kenichi Handa <handa@m17n.org>
12799
12800 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
12801
12802 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
12803 is a char table.
12804
128052008-02-01 Kenichi Handa <handa@m17n.org>
12806
12807 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
12808
128092008-02-01 Kenichi Handa <handa@m17n.org>
12810
12811 * xfaces.c (set_lface_from_font_name): Fix for the case that
12812 FONTNAME is not fontset name.
12813
128142008-02-01 Kenichi Handa <handa@m17n.org>
12815
12816 * fns.c (base64_encode_1): Fix previous change.
12817
128182008-02-01 Kenichi Handa <handa@m17n.org>
12819
12820 * fontset.c (set_fontset_font): New function.
12821 (Fset_fontset_font): If a font is specified for a charset, use
12822 map_charset_chars to store the font spec in a fontset.
12823
128242008-02-01 Kenichi Handa <handa@m17n.org>
12825
12826 * fontset.c (fontset_face): Create a fallback fontset on demand.
12827 (make_fontset): Don't create a fallback fontset here.
12828 (free_face_fontset): Free a fallback fontset (if any) too.
12829 (n_auto_fontsets): Delete this variable.
12830 (auto_fontset_alist): New variable.
12831 (new_fontset_from_font_name): Check auto_fontset_alist.
12832 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
12833 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
12834 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
12835 Defsubr Sfontset_list_all.
12836
128372008-02-01 Kenichi Handa <handa@m17n.org>
12838
12839 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
12840
128412008-02-01 Kenichi Handa <handa@m17n.org>
12842
12843 * fontset.c (Fnew_fontset): Check NAME more rigidly.
12844
128452008-02-01 Kenichi Handa <handa@m17n.org>
12846
12847 * editfns.c (Fgoto_char): Fix docstring.
12848
128492008-02-01 Kenichi Handa <handa@m17n.org>
12850
12851 * insdel.c (insert_from_gap): Adjust intervals correctly.
12852
128532008-02-01 Jason Rumney <jasonr@gnu.org>
12854
12855 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
12856 (pfnGetFontUnicodeRanges): New dynamically loaded function.
12857 (w32_initialize): Try to load it.
12858 (x_get_font_repertory): Use it if available.
12859 (w32_encode_char): Add shortcut for unicode output.
12860
12861 * w32fns.c (w32_load_system_font): Default charset to -1.
12862 (x_to_w32_charset): Match all fonts for unicode.
12863 (w32_to_x_charset): New parameter matching. Don't return partial
12864 or wildcard charsets.
12865 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
12866 (w32_codepage_for_font): Return CP_UNICODE for unicode.
12867 (w32_to_x_font): Match charset to real charset.
12868 (enum_font_cb2): Always list unicode versions.
12869
12870 * makefile.w32-in (temacs): Increase EMHEAP.
12871
128722008-02-01 Jason Rumney <jasonr@gnu.org>
12873
12874 * w32term.c (w32_encode_char): New charset parameter.
12875 font_info.encoding becomes encoding_type.
12876 (x_get_font_repertory): New function. Warning: stub only!
12877 (x_new_font): Return quickly if font already set.
12878 (x_new_fontset): fontsetname parameter is Lisp_Object.
12879 Use new fs_query_fontset. Try new_fontset_from_font_name.
12880 Use fontset_name for return value.
12881
12882 * w32term.h: Declare x_get_font_repertory.
12883
12884 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
12885 place of find_charset_in_text. Use encode_coding_object in place
12886 of encode_coding.
12887 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
12888 decode_coding.
12889
12890 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
12891 of x_new_fontset.
12892 (w32_load_system_font): Initialize charset as unicode.
12893 font_info.encoding becomes encoding_type.
12894 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
12895 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
12896 (syms_of_w32fns): Set get_font_repertory_func.
12897
12898 * w32console.c: Include character.h. Use terminal_encode_buffer
12899 from term.c.
12900 (write_glyphs): Use new version of encode_terminal_code. Use
12901 encode_coding_object in place of encode_coding.
12902
12903 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
12904 encoding becomes encoding_type.
12905
12906 * term.c (terminal_encode_buffer): Make externally visible.
12907
12908 * makefile.w32-in: Add character.h dependancies.
12909 (character.o, chartab.o): New targets.
12910
129112008-02-01 Kenichi Handa <handa@m17n.org>
12912
12913 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
12914 CODING_ID_EOL_TYPE.
12915
129162008-02-01 Andreas Schwab <schwab@suse.de>
12917
12918 * coding.c (produce_chars): Revert last change.
12919
129202008-02-01 Kenichi Handa <handa@m17n.org>
12921
12922 * charset.h (charset_unicode): Extern it.
12923
12924 * charset.c (string_xstring_p): Check by (C >= 0x100).
12925 (find_charsets_in_text): Change format of the arc CHARSETS. New
12926 arg MULTIBYTE.
12927 (Ffind_charset_region, Ffind_charset_string): Adjust for the
12928 change of find_charsets_in_text.
12929 (Fsplit_char): Fix doc. Never return unknown.
12930
12931 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
12932
12933 * coding.c (Fdefine_coding_system_alias): Update
12934 Vcoding_system_list.
12935
12936 * fontset.c (load_font_get_repertory): Pay attention to the case
12937 that ENCODING of a font is specified by a char-table.
12938
12939 * xterm.c (x_get_font_repertory): Handle the case that the
12940 encoding of font is other than Unicode.
12941
129422008-02-01 Kenichi Handa <handa@m17n.org>
12943
12944 * term.c (encode_terminal_code): Don't handle glyph-table. Check
12945 if a character is encodable by the terminal coding system. If
12946 not, produces proper number of `?'s. Update
12947 terminal_encode_buffer and terminal_encode_buf_size if necessary.
12948 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
12949
129502008-02-01 Kenichi Handa <handa@m17n.org>
12951
12952 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
12953 variables.
12954 (encode_terminal_code): Change argument. Encode multiple
12955 characters at once. Store the result of encoding in
12956 terminal_encode_buffer.
12957 (write_glyphs, insert_glyphs): Adjust for the change of
12958 encode_terminal_code.
12959 (term_init): Initialize terminal_encode_buffer and
12960 terminal_encode_buf_size.
12961
12962 * coding.c (consume_chars): If coding->src_object is nil, don't
12963 check annotation.
12964
129652008-02-01 Kenichi Handa <handa@m17n.org>
12966
12967 * character.c (char_string): Use ASCII_CHAR_P instead of
12968 SINGLE_BYTE_CHAR_P.
12969
129702008-02-01 Kenichi Handa <handa@m17n.org>
12971
12972 * xdisp.c (handle_auto_composed_prop): Check if the last
12973 characters of auto-composed region is newly composed with the
12974 following characters.
12975 (handle_composition_prop): Fix checking of point being inside
12976 composition.
12977
129782008-02-01 Kenichi Handa <handa@m17n.org>
12979
12980 * fns.c (concat): Don't change multibyteness of the result by
12981 concatenating an 8-bit character.
12982
12983 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
12984 multibyteness of the result when newelt is an 8-bit character.
12985
129862008-02-01 Dave Love <fx@gnu.org>
12987
12988 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
12989 EMACS_INT.
12990
12991 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
12992
12993 * xfaces.c (face_numeric_value): Declare dim size_t.
12994 (Finternal_lisp_face_equal_p): Remove unused f.
12995
12996 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
12997 (MATRIX_ROW): Remove unused vars.
12998 (draw_glyphs, x_insert_glyphs, fast_find_position)
12999 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
13000 byte/char counts.
13001
13002 * regex.c (regex_compile): Remove unused var.
13003
13004 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
13005
13006 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
13007 (Faccessible_keymaps, where_is_internal): Remove unused vars.
13008
13009 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
13010
13011 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
13012
13013 * fileio.c (Fwrite_region): Remove unused var.
13014
13015 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
13016 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
13017
13018 * composite.c (Fremove_list_of_text_properties): Declare.
13019
13020 * coding.c (inhibit_pre_post_conversion): Remove (unused).
13021 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
13022 (coding_inherit_eol_type): Remove unused attrs.
13023 (detect_coding): Cast arg of detect_eol.
13024
13025 * charset.c (syms_of_charset): Remove unused var p.
13026 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
13027 byte/char counts.
13028
13029 * casetab.c (set_case_table): Remove unused var.
13030
13031 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
13032 unused vars.
13033
130342008-02-01 Dave Love <fx@gnu.org>
13035
13036 * xterm.c (x_bitmap_mask): Declare.
13037
130382008-02-01 Dave Love <fx@gnu.org>
13039
13040 * xterm.c (x_term_init): Fix type error.
13041
13042 * lisp.h: Add Funibyte_char_to_multibyte.
13043
13044 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
13045 (Fset_coding_system_priority): Doc fix.
13046
13047 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
13048
13049 * indent.c (check_composition): Make start and end EMACS_INT.
13050
13051 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
13052
13053 * xdisp.c (handle_composition_prop, check_point_in_composition):
13054 Make buffer positions EMACS_INT.
13055
13056 * composite.c (find_composition, run_composition_function)
13057 (update_compositions, Ffind_composition_internal): Make buffer
13058 positions EMACS_INT.
13059
13060 * composite.h (find_composition, update_compositions): Make
13061 position args EMACS_INT.
13062
13063 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
13064
13065 * intervals.c (get_property_and_range):
13066 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
13067
13068 * unexalpha.c: Don't include varargs.h.
13069
130702008-02-01 Dave Love <fx@gnu.org>
13071
13072 * coding.h (ENCODE_UTF_8): New.
13073
13074 * Makefile.in (gtkutil.o): Depend on coding.h.
13075
13076 * coding.c (Fset_coding_system_priority): Doc fix.
13077
130782008-02-01 Kenichi Handa <handa@m17n.org>
13079
13080 * fileio.c (Finsert_file_contents): Call setup_coding_system in
13081 the case of auto saving.
13082
130832008-02-01 Andreas Schwab <schwab@suse.de>
13084
13085 * chartab.c (map_char_table, map_char_table_for_charset): Protect
13086 `range' from GC.
13087
130882008-02-01 Kenichi Handa <handa@m17n.org>
13089
13090 * coding.c (decode_coding_sjis): Check bytes more rigidly.
13091
130922008-02-01 Kenichi Handa <handa@m17n.org>
13093
13094 * fileio.c (choose_write_coding_system): Return a decided coding system.
13095 (Fwrite_region): Set Vlast_coding_system_used to the return value
13096 of choose_write_coding_system.
13097
130982008-02-01 Kenichi Handa <handa@m17n.org>
13099
13100 * charset.c (Fset_charset_priority): Pay attention to duplicated
13101 arguments.
13102
13103 * coding.c (QCcategory): New variable.
13104 (syms_of_coding): Defsym it. Set all elements of
13105 Vcoding_category_table and their symbol values.
13106 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
13107 coding-category-XXX, and coding-category-list.
13108 (Fdefine_coding_system_internal): Add category in the plist.
13109
131102008-02-01 Kenichi Handa <handa@m17n.org>
13111
13112 * callproc.c (Fcall_process): Handle carryover correctly.
13113
13114 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
13115 (raw_text_coding_system): Check NILP (coding_system).
13116 (coding_inherit_eol_type): Check NILP (coding_system) and
13117 NILP (parent).
13118 (consume_chars): Fix for the case of raw-text.
13119
13120 * process.c (read_process_output): Handle carryover correctly.
13121
131222008-02-01 Dave Love <fx@gnu.org>
13123
13124 * regex.c (re_search_2): Fix last change.
13125
131262008-02-01 Kenichi Handa <handa@m17n.org>
13127
13128 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
13129 target_multibyte. Even in a unibyte case, return a converted
13130 multibyte char.
13131 (GET_CHAR_AFTER): New macro.
13132 (PATFETCH): Translate via multibyte char.
13133 (HANDLE_UNIBYTE_RANGE): Delete this macro.
13134 (SETUP_MULTIBYTE_RANGE): New macro.
13135 (regex_compile): Setup compiled code so that its multibyteness
13136 matches that of a target. Fix the handling of "[X-YZ]" using
13137 SETUP_MULTIBYTE_RANGE.
13138 (analyse_first) <charset>: For filling fastmap for all multibyte
13139 characters, don't check by BASE_LEADING_CODE_P.
13140 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
13141 the same as RE_MULTIBYTE_P (bufp) now.
13142 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
13143 (TARGET_CHAR_AND_LENGTH): Delete this macro.
13144 (TRANSLATE_VIA_MULTIBYTE): New macro.
13145 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
13146 It is the same as RE_MULTIBYTE_P (bufp) now.
13147 <exactn>: Translate via multibyte.
13148 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
13149 translate it.
13150 <charset, charset_not>: Fetch a character by
13151 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
13152 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
13153 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
13154 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
13155 by GET_CHAR_AFTER.
13156 (bcmp_translate): Likewise.
13157
13158 * search.c (compile_pattern): Check the member target_multibyte,
13159 not the member multibyte of buf.
13160
13161 * lread.c (read1): While reading a string, set force_singlebyte
13162 and force_multibyte correctly.
13163
13164 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
13165 up of unibyte_to_multibyte_table.
13166
131672008-02-01 Kenichi Handa <handa@m17n.org>
13168
13169 * coding.c (setup_coding_system): If coding has
13170 post-read-conversion or pre-write-conversion, set
13171 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
13172 respectively.
13173 (decode_coding_gap): Run post-read-conversion if any.
13174
13175 * fileio.c (Finsert_file_contents): Even if we read into a
13176 unibyte buffer, check if we must decode the result or not.
13177
131782008-02-01 Kenichi Handa <handa@m17n.org>
13179
13180 * coding.c (make_conversion_work_buffer): Change the work buffer
13181 name to the same one as that of Emacs 21.
13182
131832008-02-01 Kenichi Handa <handa@m17n.org>
13184
13185 * coding.h (make_conversion_work_buffer): Adjust prototype.
13186 (code_conversion_restore): Don't extern it.
13187
13188 * coding.c (detected_mask): Delete unused variable.
13189 (decode_coding_iso_2022): Pay attention to the byte sequence of
13190 CTEXT extended segment, and retain those bytes as is.
13191 (decode_coding_ccl): Delete unused variable `valids'.
13192 (setup_coding_system): Delete unused variable `category'.
13193 (consume_chars): Delete unused variable `category'. Make it work
13194 for non-multibyte case.
13195 (make_conversion_work_buffer): Change argument.
13196 (saved_coding): Delete unused variable.
13197 (code_conversion_restore): Don't check saved_coding->destination.
13198 (code_conversion_save): New function.
13199 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
13200 instead of record_unwind_protect.
13201 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
13202 (detect_coding_system): Delete unused variable `mask'.
13203 (Fdefine_coding_system_internal): Delete unused variable id.
13204
13205 * fileio.c (kill_workbuf_unwind): New function.
13206 (Finsert_file_contents): On replacing, call
13207 make_conversion_work_buffer with correct args, and call
13208 record_unwind_protect with the first arg kill_workbuf_unwind.
13209
13210 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
13211
132122008-02-01 Kenichi Handa <handa@m17n.org>
13213
13214 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
13215 (fontset_add): Fix for the case that TO is less than TO1.
13216 (Ffontset_info): Don't use fallback fontset on checking the
13217 default fontset.
13218 (dump_fontset): New function for debugging.
13219
13220 * coding.c (Fdefine_coding_system_internal): Fix for the case that
13221 coding_type is Qcharset.
13222
132232008-02-01 Kenichi Handa <handa@m17n.org>
13224
13225 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
13226 (map_char_table): Don't inherit the value from the parent on
13227 initializing VAL. Adjust for the above change.
13228
132292008-02-01 Kenichi Handa <handa@m17n.org>
13230
13231 * coding.c (Qsignature, Qendian): Delete these variables.
13232 (syms_of_coding): Don't initialize them.
13233 (CATEGORY_MASK_UTF_16_AUTO): New macro.
13234 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
13235 detect_info->found.
13236 (decode_coding_utf_16): Don't detect BOM here.
13237 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
13238 is NOT utf_16_without_bom.
13239 (setup_coding_system): For a coding system of type utf-16, check
13240 if the attribute :endian is Qbig or not (not nil or not), and set
13241 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
13242 (detect_coding): If coding type is utf-16 and BOM detection is
13243 required, detect it.
13244 (Fdefine_coding_system_internal): For a coding system of type
13245 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
13246
132472008-02-01 Kenichi Handa <handa@m17n.org>
13248
13249 * coding.c (coding_set_source): Fix for the case that the current
13250 buffer is different from coding->src_object.
13251 (decode_coding_object): Don't use the conversion work buffer if
13252 DST_OBJECT is a buffer.
13253
132542008-02-01 Dave Love <fx@gnu.org>
13255
13256 * lread.c (read_emacs_mule_char) [len==2]: Index
13257 emacs_mule_charset correctly.
13258
132592008-02-01 Dave Love <fx@gnu.org>
13260
13261 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
13262 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
13263 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
13264 treated specially.)
13265 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
13266 (detected_mask): Remove Big5 bits.
13267
132682008-02-01 Kenichi Handa <handa@m17n.org>
13269
13270 The following changes are to make the font rescaling facility
13271 compatible with Emacs 21.
13272
13273 * xfaces.c (Vface_font_rescale_alist): Rename from
13274 Vface_resizing_fonts.
13275 (struct font_name): Rename member resizing_ratio to rescale_ratio.
13276 (font_rescale_ratio): Rename from font_resizing_ratio.
13277 (split_font_name): Set font->rescale_ratio.
13278 (better_font_p): Pay attention to font->rescale_ratio.
13279 (build_scalable_font_name): Likewise. Change RESX, and RESY
13280 fields.
13281 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
13282
132832008-02-01 Kenichi Handa <handa@m17n.org>
13284
13285 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
13286 (Qutf_16_le): Remove these variables.
13287 (syms_of_coding): Don't DEFSYM them.
13288 (decode_coding_utf_16): Fix handling of BOM.
13289 (encode_coding_utf_16): Fix handling of BOM.
13290
132912008-02-01 Kenichi Handa <handa@m17n.org>
13292
13293 * fileio.c (Finsert_file_contents): On replacing, before decoding
13294 the file into the work buffer, set point of the work buffer to the end.
13295
132962008-02-01 Dave Love <fx@gnu.org>
13297
13298 * coding.c (Fcheck_coding_systems_region): Fix type errors.
13299
133002008-02-01 Dave Love <fx@gnu.org>
13301
13302 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
13303 and fix C types.
13304
133052008-02-01 Kenichi Handa <handa@m17n.org>
13306
13307 * xdisp.c (SKIP_GLYPHS): New macro.
13308 (set_cursor_from_row): Pay attention to string display properties.
13309
13310 * category.c (copy_category_entry): Fix for the case that RANGE
13311 is an integer.
13312
13313 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
13314
13315 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
13316
133172008-02-01 Kenichi Handa <handa@m17n.org>
13318
13319 * charset.c (Fcharset_id_internal): New function.
13320 (syms_of_charset): Defsubr it.
13321
13322 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
13323 with the last arg charset_list acquired from coding.
13324 (Fdefine_coding_system_internal): For ccl-based coding system, fix
13325 the attribute coding_attr_ccl_valids.
13326
13327 * coding.h (enum define_coding_ccl_arg_index): Set the first
13328 member coding_arg_ccl_decoder to coding_arg_max.
13329
13330 * ccl.h (ccl_driver): Adjust prototype.
13331
13332 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
13333 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 13334 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
13335 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
13336 last arg Qnil.
13337
133382008-02-01 Kenichi Handa <handa@m17n.org>
13339
13340 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
13341 call encode_char.
13342
13343 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
13344
133452008-02-01 Dave Love <fx@gnu.org>
13346
13347 * composite.c (syms_of_composite): Make composition_hash_table weak.
13348
133492008-02-01 Kenichi Handa <handa@m17n.org>
13350
13351 * dispextern.h (check_face_attributes, generate_ascii_font_name)
13352 (font_name_registry): Don't extern them.
13353 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
13354
13355 * fontset.h (Qfontset): Don't extern it.
13356 (new_fontset_from_font_name): Extern it.
13357
13358 * fontset.c: Give 8 extra slots to fontset objects.
13359 (Qfontset_info): New variable.
13360 (syms_of_fontset): Defsym it.
13361 (FONTSET_FALLBACK): New macro.
13362 (fontset_face): Try also the default fontset.
13363 (make_fontset): Realize a fallback fontset from the default fontset.
13364 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
13365 using split_font_name_into_vector and build_font_name_from_vector.
13366 (Fset_fontset_font): Access the elements of font_spec by enum
13367 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
13368 name by using split_font_name_into_vector.
13369 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
13370 generate a proper font name from the fontset name. Update
13371 Vfontset_alias_alist.
13372 (n_auto_fontsets): New variable.
13373 (new_fontset_from_font_name): New function.
13374 (Ffont_info): Store the information about fonts generated from the
13375 default fontset in the first extra slot of the returned char-table.
13376
13377 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
13378 (font_name_registry): Delete function.
13379 (split_font_name_into_vector): New function.
13380 (build_font_name_from_vector): New function.
13381 (font_list): The argument REGISTRY is now a list of registry names.
13382 (choose_face_font): If we are choosing an ASCII font, and ATTRS
13383 specifies an explicit font name, return the name as is. Make a
13384 list of registy names.
13385
13386 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
13387 of x_new_fontset.
13388 (Fx_create_frame): Don't call x_new_fontset here. Just use
13389 x_list_fonts to check the existence of fonts.
13390
13391 * xterm.h (x_new_fontset): Adjust prototype.
13392
13393 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
13394 string. Use new_fontset_from_font_name to create a fontset from a
13395 font name.
13396
133972008-02-01 Kenichi Handa <handa@m17n.org>
13398
13399 * syntax.c (Vfind_word_boundary_function_table): New name for
13400 Vnext_word_boundary_function_table.
13401 (find-word-boundary-function-table): New name for
13402 next-word-boundary-function-table.
13403
134042008-02-01 Dave Love <fx@gnu.org>
13405
13406 * Makefile.in: Fix some dependencies.
13407
13408 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
13409 set it to nil before returning.
13410
13411 * composite.c (update_compositions): Fix type error.
13412
13413 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
13414
134152008-02-01 Kenichi Handa <handa@m17n.org>
13416
13417 * xterm.c (x_new_font): Optimize for the case that the font is
13418 already set for the frame.
13419
134202008-02-01 Kenichi Handa <handa@m17n.org>
13421
13422 * chartab.c (char_table_ascii): Check if the char table contents
13423 is sub-char-table or not.
13424 (char_table_set, char_table_set_range): Fix argument to
13425 char_table_ascii.
13426
13427 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
13428 (detect_coding_utf_8, detect_coding_utf_16)
13429 (detect_coding_emacs_mule, detect_coding_iso_2022)
13430 (detect_coding_sjis, detect_coding_big5)
13431 (detect_coding_ccl, detect_coding_charset): Change argument MASK
13432 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
13433 sequence is valid in this coding system. Change callers.
13434 (MAX_ANNOTATION_LENGTH): New macro.
13435 (ADD_ANNOTATION_DATA): New macro.
13436 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
13437 ADD_ANNOTATION_DATA. Change the format of annotation data.
13438 (ADD_CHARSET_DATA): New macro.
13439 (emacs_mule_char): New argument ID. Change callers.
13440 (decode_coding_emacs_mule, decode_coding_iso_2022)
13441 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
13442 Produce charset annotation data in coding->charbuf.
13443 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
13444 to charset annotation data in coding->charbuf.
13445 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
13446 coding->common_flags if the coding system is iso-2022 based and
13447 uses designation.
13448 (produce_composition): Adjust for the new annotation data format.
13449 (produce_charset): New function.
13450 (produce_annotation): Handle charset annotation.
13451 (handle_composition_annotation, handle_charset_annotation): New
13452 functions.
13453 (consume_chars): Handle charset annotation. Utilize the above two
13454 functions.
13455 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
13456 buffer, get the deleted text as a string and set
13457 coding->src_object to that string.
13458 (detect_coding, detect_coding_system): Use the new struct
13459 coding_detection_info.
13460
13461 * coding.h (struct coding_detection_info): New structure.
13462 (struct coding_system): Adjust prototype of the member `detector'.
13463 (CODING_ANNOTATE_CHARSET_MASK): New macro.
13464
134652008-02-01 Kenichi Handa <handa@m17n.org>
13466
13467 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
13468
134692008-02-01 Dave Love <fx@gnu.org>
13470
13471 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
13472 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
13473 to new local and nullify apropos_accumulate before returning.
13474 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
13475
134762008-02-01 Kenichi Handa <handa@m17n.org>
13477
13478 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
13479 correctly.
e3eea1fc 13480
aac0c6e3
MR
134812008-02-01 Dave Love <fx@gnu.org>
13482
13483 * fns.c (Flanginfo): Call synchronize_system_time_locale.
13484
134852008-02-01 Kenichi Handa <handa@m17n.org>
13486
13487 The following changes are to make character composition happen
13488 automatically on displaying.
13489
13490 * Makefile.in (lisp, shortlisp): Add composite.elc.
13491
13492 * composite.h (Qauto_composed, Vauto_composition_function)
13493 (Qauto_composition_function): Extern them.
13494
13495 * composite.c (Vcomposition_function_table)
13496 (Qcomposition_function_table): Delete variables.
13497 (Qauto_composed, Vauto_composition_function)
13498 (Qauto_composition_function): New variables.
13499 (run_composition_function): Don't call
13500 compose-chars-after-function.
13501 (update_compositions): Clear `auto-composed' text property.
13502 (compose_chars_in_text): Delete this function.
13503 (syms_of_composite): Staticpro Qauto_composed and
13504 Qauto_composition_function. Declare Vauto_composition_function as
13505 a Lisp variable.
13506
13507 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
13508
13509 * xdisp.c (it_props): Add an entry for Qauto_composed.
13510 (handle_auto_composed_prop): New function.
13511
13512 * xselect.c (selection_data_to_lisp_data): Don't call
13513 compose_chars_in_text.
13514
135152008-02-01 Dave Love <fx@gnu.org>
13516
13517 * keyboard.c (read_char): Modify checking around use of
13518 Vkeyboard_translate_table.
13519
13520 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
13521 and fix C types.
13522
135232008-02-01 Kenichi Handa <handa@m17n.org>
13524
13525 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
13526 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
13527 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
13528 the case that the last byte is '\r' correctly.
13529 (decode_coding): Flush out the unprocessed data correctly.
13530 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
13531
135322008-02-01 Dave Love <fx@gnu.org>
13533
13534 * xterm.c (XTread_socket): Fix changes for defined keysyms.
13535 Add XK_ISO... case.
13536 (xaw_scroll_callback): Revert last change.
13537
135382008-02-01 Kenichi Handa <handa@m17n.org>
13539
13540 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
13541
135422008-02-01 Kenichi Handa <handa@m17n.org>
13543
13544 * xfaces.c (Vface_resizing_fonts): New variable.
13545 (struct font_name): New member `resizing_ratio'.
13546 (font_resizing_ratio): New function.
13547 (split_font_name): Set font->resizing_ratio.
13548 (better_font_p): Pay attention to font->resizing_ratio.
13549 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
13550 RESX, and RESY fields.
13551 (try_alternative_families): Try scalable fonts if
13552 Vscalable_fonts_allowed is not Qt.
13553 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
13554
135552008-02-01 Dave Love <fx@gnu.org>
13556
13557 * xterm.c (xaw_scroll_callback): Cast correctly.
13558
135592008-02-01 Dave Love <fx@gnu.org>
13560
13561 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
13562 (lispy_kana_keys): Comment out.
13563 (make_lispy_event) [XK_kana_A]: Comment out.
13564
13565 * xterm.c (xaw_scroll_callback): Cast call_data.
13566 (XTread_socket): Deal with ASCII keysyms.
13567 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
13568
135692008-02-01 Dave Love <fx@gnu.org>
13570
13571 * xterm.c (Vx_keysym_table): New.
13572 (syms_of_xterm): Initialize it.
13573 (XTread_socket): Use it.
13574 From head: Eliminate incorrect optimization that tried to avoid
13575 decoding the output of X*LookupString.
13576 (x_get_font_repertory): Delete charset declaration.
13577
135782008-02-01 Kenichi Handa <handa@m17n.org>
13579
13580 * coding.c (detect_coding_charset): If only ASCII bytes are found,
13581 return 0.
13582 (Fdefine_coding_system_internal): Setup
13583 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
13584
135852008-02-01 Dave Love <fx@gnu.org>
13586
13587 * coding.c (Fcheck_coding_system): Doc fix.
13588
13589 * editfns.c (Finsert_byte): Return a proper value.
13590
135912008-02-01 Kenichi Handa <handa@m17n.org>
13592
13593 * coding.c (decode_coding): Fix args to translate_chars. Pay
13594 attention to Vstandard_translation_table_for_decode.
13595 (encode_coding): Fix args to translate_chars. Pay attention to
13596 Vstandard_translation_table_for_encode.
13597
13598 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
13599 SINGLE_BYTE_CHAR_P.
13600
13601 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
13602 not by SINGLE_BYTE_CHAR_P.
13603
13604 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
13605 SINGLE_BYTE_CHAR_P.
13606
13607 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
13608 SINGLE_BYTE_CHAR_P.
13609
13610 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
13611 by SINGLE_BYTE_CHAR_P.
13612
13613 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
13614 SINGLE_BYTE_CHAR_P.
13615
136162008-02-01 Dave Love <fx@gnu.org>
13617
13618 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
13619
136202008-02-01 Dave Love <fx@gnu.org>
13621
13622 * fns.c (Flanginfo): Fix typo.
13623
13624 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
13625
136262008-02-01 Kenichi Handa <handa@m17n.org>
13627
13628 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
13629 (detect_coding_emacs_mule, detect_coding_iso_2022)
13630 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
13631 incomplete byte sequence. Don't update *mask when correctly detected.
13632 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
13633 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
13634 (detect_coding, detect_coding_system): Adjust for the changes above.
13635
136362008-02-01 Kenichi Handa <handa@m17n.org>
13637
13638 * character.c (char_string): Rename from
13639 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
13640 (string_char): Rename from string_char.
13641
13642 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
13643 if C is greater than MAX_3_BYTE_CHAR.
13644 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
13645 string_char instead of string_char_with_unification.
13646
136472008-02-01 Dave Love <fx@gnu.org>
13648
13649 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
13650
136512008-02-01 Kenichi Handa <handa@m17n.org>
13652
13653 * keymap.c (push_key_description): Pay attention to force_multibyte.
13654
13655 * regex.c (re_search_2): Fix for the case of unibyte buffer.
13656
136572008-02-01 Dave Love <fx@gnu.org>
13658
13659 * charset.c (define_charset_internal): Rename `supprementary'.
13660
13661 * Makefile.in (lisp, shortlisp): Remove latin-N.
13662
136632008-02-01 Dave Love <fx@gnu.org>
13664
13665 * xfns.c (x_window, x_window): Use use_xim.
13666
13667 * xterm.c (use_xim): Initialize.
13668 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
13669 (x_term_init): Maybe set use_xim.
13670
13671 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
13672
136732008-02-01 Kenichi Handa <handa@m17n.org>
13674
13675 * search.c (search_buffer): Fix case-fold-search of multibyte
13676 characters.
13677 (boyer_moore): Rename the last argument to char_high_bits.
13678
136792008-02-01 Kenichi Handa <handa@m17n.org>
13680
13681 * xdisp.c (display_string): Fix for the case of zero width glyph.
13682
13683 * xfns.c (x_set_font): Change the error message of the case that
13684 x_new_fontset returns Qt.
13685
13686 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
13687 (Finternal_set_lisp_face_attribute): Use signal_error for the
13688 error of invalid fontset.
13689
13690 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
13691 fontset, return Qt.
13692
136932008-02-01 Dave Love <fx@gnu.org>
13694
13695 * unexelf.c (unexec): Make .got handling not SGI-specific.
13696
13697 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
13698
13699 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
13700
13701 * keyboard.c (read_key_sequence): Fix type error.
13702
13703 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
13704 type error.
13705
13706 * fontset.c (fontset_add): Return Lisp_Object.
13707
137082008-02-01 Dave Love <fx@gnu.org>
13709
13710 * charset.h (charset_ordered_list_tick): Declare extern.
13711
137122008-02-01 Kenichi Handa <handa@m17n.org>
13713
13714 The following changes (and some of 2008-02-01 changes of mine) are
13715 for handling syntax, category, and case conversion for unibyte
13716 characters by converting them to multibyte on the fly. With these
13717 changes, we don't have to setup syntax and case tables for unibyte
13718 characters in each language environment.
13719
13720 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
13721 multibyte if necessary.
13722
13723 * bytecode.c (Fbyte_code): Likewise.
13724
13725 * character.h (LEADING_CODE_LATIN_1_MIN)
13726 (LEADING_CODE_LATIN_1_MAX): New macros.
13727 (unibyte_to_multibyte_table): Extern it.
13728 (unibyte_char_to_multibyte): New macro.
13729 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
13730 (CHAR_LEADING_CODE): New macro.
13731 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
13732
13733 * character.c (unibyte_to_multibyte_table): New variable.
13734 (unibyte_char_to_multibyte): Move to character.h and define as macro.
13735 (multibyte_char_to_unibyte): If C is an eight-bit character,
13736 convert it to the corresponding byte value.
13737
13738 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
13739 not 1, signals an error. Update the elements of
13740 unibyte_to_multibyte_table.
13741 (init_charset_once): Initialize unibyte_to_multibyte_table.
13742 (syms_of_charset): Define the charset `iso-8859-1'.
13743
13744 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
13745 as is without converting it to unibyte. In a unibyte buffer,
13746 convert C to multibyte before checking the syntax.
13747
13748 * lisp.h (unibyte_char_to_multibyte): Delete extern.
13749
13750 * minibuf.c (Fminibuffer_complete_word): Use the macro
13751 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
13752
13753 * regex.h (struct re_pattern_buffer): New member target_multibyte.
13754
13755 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
13756 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
13757 that is zero, convert an eight-bit char to multibyte.
13758 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
13759 non-emacs case.
13760 (PATFETCH): Convert an eight-bit char to multibyte.
13761 (HANDLE_UNIBYTE_RANGE): New macro.
13762 (regex_compile): Setup the compiled pattern for multibyte chars
13763 even if the given regex string is unibyte. Use PATFETCH_RAW
13764 instead of PATFETCH in many places. To handle `charset'
13765 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
13766 only for ASCII chars.
13767 (analyse_first) <exactn>: Simplify because the compiled pattern
13768 is multibyte.
13769 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
13770 <charset>: Use CHAR_LEADING_CODE to get leading codes.
13771 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
13772 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
13773 multibyte always 1.
13774 (re_search_2): In emacs, set the locale variable multibyte to 1,
13775 otherwise to 0. New local variable target_multibyte. Check it
13776 to decide the multibyteness of STR1 and STR2. If
13777 target_multibyte is zero, convert unibyte chars to multibyte
13778 before translating and checking fastmap.
13779 (TARGET_CHAR_AND_LENGTH): New macro.
13780 (re_match_2_internal): In emacs, set the locale variable multibyte
13781 to 1, otherwise to 0. New local variable target_multibyte. Check
13782 it to decide the multibyteness of STR1 and STR2. Use
13783 TARGET_CHAR_AND_LENGTH to fetch a character from D.
13784 <charset, charset_not>: If multibyte is nonzero, check fastmap
13785 only for ASCII chars. Call bcmp_translate with
13786 target_multibyte, not with multibyte.
13787 <begline>: Declare the local variable C as `unsigned'.
13788 (bcmp_translate): Change the last arg name to target_multibyte.
13789
13790 * search.c (compile_pattern_1): Don't adjust the multibyteness of
13791 the regexp pattern and the matching target. Set cp->buf.multibyte
13792 to the multibyteness of the regexp pattern. Set
13793 cp->but.target_multibyte to the multibyteness of the matching target.
13794 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
13795 FETCH_STRING_CHAR_ADVANCE.
13796 (Freplace_match): Convert unibyte chars to multibyte.
13797
13798 * syntax.c (char_quoted, back_comment, scan_words)
13799 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
13800 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
13801 unibyte chars to multibyte.
13802 (skip_chars): Delete the arg syntaxp, and move the code for
13803 handling syntaxes to skip_syntaxes. Change callers.
13804 Fix the case that the multibyteness of STRING and the current
13805 buffer doesn't match.
13806 (skip_syntaxes): New function.
13807 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
13808 SINGLE_BYTE_CHAR_P.
13809
138102008-02-01 Kenichi Handa <handa@m17n.org>
13811
13812 * xfaces.c (QCfontset): New variable.
13813 (LFACE_FONTSET): New macro.
13814 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
13815 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
13816 (Finternal_set_lisp_face_attribute)
13817 (Finternal_get_lisp_face_attribute): Handle QCfontset.
13818 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
13819 check also LFACE_FONTSET_INDEX.
13820 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
13821 attrs[LFACE_FONT_INDEX].
13822 (syms_of_xfaces): Intern and staticpro QCfontset.
13823
13824 * dispextern.h (enum lface_attribute_index): New member
13825 LFACE_FONTSET_INDEX.
13826
13827 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
13828
138292008-02-01 Kenichi Handa <handa@m17n.org>
13830
13831 * coding.c (coding_set_destination): Fix coding->destination for
13832 the case converting a region.
13833 (encode_coding_utf_8): Encode eight-bit chars as single byte.
13834 (encode_coding_object): Fix coding->dst_pos and
13835 coding->dst_pos_byte for the case converting a region.
13836
13837 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
13838
13839 * character.h (BYTE8_STRING): New macro.
13840
13841 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
13842
138432008-02-01 Kenichi Handa <handa@m17n.org>
13844
13845 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
13846 characters by octal form.
13847
13848 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
13849
13850 * buffer.h (_fetch_multibyte_char_len): Delete extern.
13851 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
13852 _fetch_multibyte_char_len.
13853 (FETCH_CHAR_AS_MULTIBYTE): New macro.
13854
13855 * casetab.c (set_canon, set_identity, shuffle): Simplify.
13856
13857 * casefiddle.c (casify_object): Simplify. Handle the case that
13858 the case conversion change the byte length.
13859 (casify_region): Likewise.
13860
13861 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
13862
13863 * character.c (_fetch_multibyte_char_len): Delete this variable.
13864 (syms_of_character): Setup Vprintable_chars.
13865
13866 * editfns.c (Fchar_equal): Fix for the unibyte case.
13867 (Finsert_byte): New function.
13868 (syms_of_editfns): Defsubr it.
13869
13870 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
13871 of direct code 0x3ffff.
13872
13873 * search.c (Freplace_match): Fix for the unibyte case.
13874
138752008-02-01 Kenichi Handa <handa@m17n.org>
13876
13877 * lread.c (safe_to_load_p): Fix the logic.
13878
13879 * syntax.c (scan_words): Don't treat characters belonging to
13880 different scripts as constituting a word.
13881
13882 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
13883
13884 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
13885
13886 * emacs.c (main): In the case of --unibyte, instead of aborting on
13887 finding non-empty buffer, make it unibyte.
13888
138892008-02-01 Kenichi Handa <handa@m17n.org>
13890
13891 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
13892 to create a fontset.
13893
138942008-02-01 Dave Love <fx@gnu.org>
13895
13896 * character.c (Funibyte_char_to_multibyte): Doc fix.
13897
13898 * xfns.c [HAVE_STDLIB_H]: Fix last change.
13899
139002008-02-01 Kenichi Handa <handa@m17n.org>
13901
13902 * fontset.c (fontset_add): Make the type `int'.
13903 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
13904
13905 * character.c (unibyte_char_to_multibyte)
13906 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
13907 charset_unibyte, not charset_primary.
13908
13909 * charset.h (charset_unibyte): Extern it instead of charset_primary.
13910
13911 * charset.c (charset_unibyte): Rename from charset_primary.
13912 (Funibyte_charset): Rename from Fprimary_charset.
13913 (Fset_unibyte_charset): Rename from Fset_primary_charset.
13914 (syms_of_charset): Adjust for the above changes.
13915
13916 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
13917 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
13918 it->multibyte_p is zero.
13919
13920 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
13921 Delete extern.
13922
139232008-02-01 Kenichi Handa <handa@m17n.org>
13924
13925 * coding.c (Fdefine_coding_system_internal): Fix category setting
13926 for a coding system of type iso-2022.
13927
139282008-02-01 Kenichi Handa <handa@m17n.org>
13929
13930 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
13931
139322008-02-01 Kenichi Handa <handa@m17n.org>
13933
13934 * syntax.c (Vnext_word_boundary_function_table): New variable.
13935 (next-word-boundary-function-table): Declare it as a Lisp variable
13936 in syms_of_syntax.
13937 (scan_words): Call functions in Vnext_word_boundary_function_table
13938 if any.
13939
13940 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
13941
13942 * fontset.c (fs_load_font): If fontp->charset is not negative,
13943 return fontp without setting its members.
13944
139452008-02-01 Dave Love <fx@gnu.org>
13946
13947 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
13948
13949 * m/sparc.h (HAVE_ALLOCA): Delete.
13950
13951 * s/irix6-5.h: Don't include strings.h.
13952 (bcopy, bzero, bcmp): Don't undef.
13953
13954 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
13955
13956 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
13957 (TIOCSIGSEND): Don't test IRIX6.
13958 (bcopy, bzero, bcmp): Define conditionally.
13959
139602008-02-01 Kenichi Handa <handa@m17n.org>
13961
13962 * buffer.c (Qas, Qmake, Qto): New variables.
13963 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
13964 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
13965
13966 * callproc.c (Fcall_process): Don't call insert_1_both directly if
13967 we are inserting a process output into a multibyte buffer.
13968
13969 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
13970 multibyte_char_to_unibyte.
13971
13972 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
13973 by the primary charset, make it eight-bit char.
13974 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
13975
13976 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
13977 (charset_8_bit__control, charset_8_bit_graphic)
13978 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
13979 (define_charset_internal): New function.
13980 (syms_of_charset): Call define_charset_internal for pre-defined
13981 charsets.
13982
13983 * charset.h (charset_8_bit): Extern it.
13984
13985 * coding.c (make_conversion_work_buffer): Adjust for the change
13986 of Fset_buffer_multibyte.
13987 (encode_coding_raw_text): Increment p0 in the loop.
13988
13989 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
13990
13991 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
13992 for the change of Fset_buffer_multibyte.
13993
13994 * fns.c (Fstring_to_multibyte): New function.
13995 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
13996
139972008-02-01 Dave Love <fx@gnu.org>
13998
13999 * xfns.c (x_put_x_image): Declare args.
14000
14001 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
14002 (try_font_list): Declare an arg.
14003
14004 * xdisp.c (message2_nolog, set_message): Declare an arg.
14005
14006 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
14007
14008 * syntax.c (scan_sexps_forward): Declare an arg.
14009
14010 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
14011 Declare an arg.
14012
14013 * lisp.h (Fnew_fontset): Declare.
14014
14015 * keymap.c (push_key_description): Call CHARACTERP correctly.
14016
14017 * fontset.c (fontset_add): Declare args. Call make_number correctly.
14018 (face_for_char): Delete unused vars.
14019 (Fset_fontset_font): Doc fix. Delete unused vars.
14020
14021 * doc.c (Fsubstitute_command_keys): Delete unused vars.
14022
14023 * composite.c (update_compositions): Declare arg.
14024
14025 * cm.c (calccost, cmgoto): Declare args.
14026
14027 * charset.c: Remove `emacs' conditional. Doc fixes.
14028 (map_char_table_for_charset): Declare.
14029
14030 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
14031
14032 * ccl.c: Remove `emacs' conditional.
14033
140342008-02-01 Kenichi Handa <handa@m17n.org>
14035
14036 The following changes are to allow specifying multiple font
14037 patterns for a character range (specified by script or charset).
14038
14039 * Makefile.in (abbrev.o): Depend on syntax.h.
14040 (xfaces.o): Depend on charset.h.
14041
14042 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
14043 SINGLE_BYTE_CHAR_P.
14044
14045 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
14046
14047 * character.h (Vchar_script_table): Extern it.
14048
14049 * character.c (Vscript_alist): Delete.
14050 (Vchar_script_table, Qchar_script_table): New variable.
14051 (syms_of_character): Declare Vchar_script_table as a lisp variable
14052 and initialize it.
14053
14054 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
14055 have property char-table-extra-slots, make no extra slot.
14056
14057 * dispextern.h (struct face): Delete member `charset'.
14058 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
14059 SINGLE_BYTE_CHAR_P.
14060 (choose_face_font, lookup_non_ascii_face, font_name_registry):
14061 Add prototypes.
14062 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
14063 (generate_ascii_font_name): Rename from generate_ascii_font.
14064
14065 * fontset.h (get_font_repertory_func): New prototype.
14066 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
14067 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
14068
14069 * fontset.c (Qprepend, Qappend): New variables.
14070 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
14071 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
14072 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
14073 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
14074 (fontset_ref_and_range, fontset_add, reorder_font_vector)
14075 (load_font_get_repertory): New functions.
14076 (fontset_set): Delete.
14077 (fontset_face): New arg FACE. Return face ID, not face.
14078 Complete re-write to handle new fontset structure. Change caller.
14079 (free_face_fontset): Use ASET istead of AREF (X) = Y.
14080 (face_for_char): Don't call lookup_face.
14081 (make_fontset_for_ascii_face): New arg FACE.
14082 (fs_load_font): New arg CHARSET_ID. Don't check
14083 Vfont_encoding_alist here.
14084 (find_font_encoding): New function.
14085 (list_fontsets): Use STRINGP, not ! NILP.
14086 (accumulate_script_ranges): New function.
14087 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
14088 re-written to handle new fontset structure.
14089 (Ffontset_font): Return a copy of element.
14090 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
14091 docstring of font-encoding-alist.
14092
14093 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
14094 (Fset_fotset_font): Fix arguments to 5.
14095
14096 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
14097
14098 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
14099 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
14100 (highlight_trailing_whitespace): Adjust for the change of
14101 lookup_named_face.
14102
14103 * xfaces.c: Include charset.h.
14104 (load_face_font): Delete argument C. Change caller.
14105 (generate_ascii_font_name): Rename from generate_ascii_font.
14106 (font_name_registry): New function.
14107 (cache_face): Store ascii faces before non-ascii faces in buckets.
14108 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
14109 Lookup only ascii faces.
14110 (lookup_non_ascii_face): New function.
14111 (lookup_named_face): Delete argument C. Change caller.
14112 (lookup_derived_face): Delete argument C. Change caller.
14113 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
14114 a string, just call font_list with it.
14115 (choose_face_font): Delete arguments FACE and C. New arg
14116 FONT_SPEC. Change caller.
14117 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
14118 Change caller.
14119 (realize_non_ascii_face): New function.
14120 (realize_x_face): Call load_face_font here.
14121 (realize_tty_face): Delete argument C. Change caller.
14122 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
14123 get a face ID.
14124 (dump_realized_face): Don't print charset of FACE.
14125
14126 * xfns.c (x_set_font): Always call x_new_fontset and
14127 store_frame_parameter.
14128 (Fx_create_frame): Call x_new_fontset, not x_new_font.
14129 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
14130
14131 * xterm.h (x_get_font_repertory): Extern it.
14132
14133 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
14134 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
14135 it->multibyte_p is zero.
14136 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
14137 (x_new_fontset): If FONTSETNAME doesn't match any existing
14138 fontsets, create a new one.
14139 (x_get_font_repertory): New function.
14140
141412008-02-01 Kenichi Handa <handa@m17n.org>
14142
14143 * coding.c (Ffind_coding_systems_region_internal): Detect an
14144 ASCII only string correctly.
14145
14146 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
14147 version is 0.
14148
141492008-02-01 Kenichi Handa <handa@m17n.org>
14150
14151 * lread.c: Include "coding.h".
14152 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
14153 (load_each_byte, unread_char): New variables.
14154 (readchar_backlog): Delete.
14155 (readchar): Return a character unless load_each_byte is nonzero.
14156 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
14157 cons. If unread_char is not -1, simply return it.
14158 (unreadchar): Handle the case that readcharfun is
14159 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
14160 (read_multibyte): Delete.
14161 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
14162 (read_emacs_mule_char): New functions.
14163 (Fload): Even if the file doesn't have the extension ".elc", if
14164 safe_to_load_p returns a positive version number, assume that the
14165 file contains bytecompiled code. If the version is less than 22,
14166 load the file while decoding multibyte sequences by emacs-mule.
14167 (readevalloop): Don't use readchar_backlog.
14168 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
14169 (Fread_from_string): Pay attention to the case that STREAM is a cons.
14170 (read_escape): Delete the arg BYTEREP.
14171 (read1): Set load_each_byte to 1 temporarily while handling
14172 #@NUMBER. Don't call read_multibyte.
14173 (read_vector): Call Fread with a cons. If readcharfun is
14174 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
14175 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
14176 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
14177 and Qload_force_doc_strings.
14178
141792008-02-01 Kenichi Handa <handa@m17n.org>
14180
14181 * xdisp.c (face_before_or_after_it_pos): Call
14182 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
14183
141842008-02-01 Kenichi Handa <handa@m17n.org>
14185
14186 * character.h (TRAILING_CODE_P): New macro.
14187 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
14188 (string_char_with_unification): Fix prototype.
14189 (Vscript_alist): Extern it.
14190
14191 * character.c (Vscript_alist): New variable.
14192 (string_char_with_unification, str_as_unibyte)
14193 (string_escape_byte8): Add `const' to local variables.
14194 (syms_of_character): Declare script-alist as a Lisp variable.
14195
14196 * charset.h (Vcharset_ordered_list): Extern it.
14197 (charset_ordered_list_tick): Extern it.
14198 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
14199 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
14200 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
14201 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
14202 (Funify_charset): Adjust for the change of Funify_charset.
14203
14204 * charset.c (charset_ordered_list_tick): New variable.
14205 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
14206 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
14207 deunify intead of unify a charset.
14208 (string_xstring_p): Add `const' to local variables.
14209 (find_charsets_in_text): Add `const' to arguments and local variables.
14210 (encode_char): Adjust for the change of Funify_charset. Fix
14211 detecting of invalid code.
14212 (Fset_charset_priority): Increment charset_ordered_list_tick.
14213 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
14214 and TO_CODE.
14215
14216 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
14217 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
14218 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
14219 (decode_coding_ccl, consume_chars)
14220 (Ffind_coding_systems_region_internal)
14221 (Fcheck_coding_systems_region): Add `const' to local variables.
14222
14223 * print.c (print_object): Use octal form for printing the
14224 contents of a bool vector.
14225
142262008-02-01 Dave Love <fx@gnu.org>
14227
14228 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
14229 <version == 20>: Refuse to load.
14230
142312008-02-01 Dave Love <fx@gnu.org>
14232
14233 * fns.c: Move coding.h.
14234 (Qcodeset, Qdays, Qmonths): New.
14235 (concat): Use CHARACTERP instead of INTEGERP.
14236 (Flocale_codeset): Delete.
14237 (Flanginfo): New function.
14238 (syms_of_fns): Change accordingly.
14239
14240 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
14241
142422008-02-01 Dave Love <fx@gnu.org>
14243
14244 * casetab.c (init_casetab_once, init_casetab_once): Fix
14245 CHAR_TABLE_SET call.
14246
14247 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
14248
14249 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
14250
14251 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
14252 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
14253 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
14254
14255 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
14256
14257 * coding.c (ENCODE_DESIGNATION, decode_eol)
14258 (make_conversion_work_buffer, code_conversion_restore)
14259 (Fdefine_coding_system_internal): Convert Lisp types.
14260 (code_conversion_restore): Use EQ, not ==.
14261 (Fencode_coding_string): Fix code_convert_string call.
14262
14263 * coding.h (code_convert_region): Fix prototype.
14264
14265 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
14266
14267 * fontset.c (fontset_ref, fontset_set, fs_load_font)
14268 (Ffontset_info): Convert Lisp types.
14269
14270 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
14271
14272 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
14273
14274 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
14275
14276 * chartab.c: Include "...h", not <...h> in some cases.
14277
14278 * callproc.c (Fcall_process): Remove unused variables.
14279
142802008-02-01 Dave Love <fx@gnu.org>
14281
14282 * coding.c (Fset_coding_system_priority): Allow null arg list.
14283
142842008-02-01 Dave Love <fx@gnu.org>
14285
14286 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
14287 (Fself_insert_and_exit): Use CHARACTERP.
14288
14289 * callproc.c (Fcall_process): Remove unused vars.
14290
14291 * xterm.c (XTread_socket): Add extra dead keysyms.
14292
14293 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
14294
14295 * dispextern.h: Remove prototypes for redraw_frame,
14296 redraw_garbaged_frames.
14297
14298 * cmds.c (Fself_insert_command): Use CHARACTERP.
14299
14300 * chartab.c (make_sub_char_table): Remove unused var.
14301 (Fset_char_table_default, Fmap_char_table): Doc fix.
14302
14303 * keymap.c (access_keymap): Remove generic char code.
14304 (push_key_description): Use CHARACTERP.
14305
143062008-02-01 Dave Love <fx@gnu.org>
14307
14308 * charset.c: Doc fixes.
14309 (Funify_charset): Extra checking.
14310
143112008-02-01 Dave Love <fx@gnu.org>
14312
14313 * lread.c: Remove some unused variables.
14314 (safe_to_load_p): If safe, return the magic number version byte.
14315 (Fload): Maybe use load-with-code-conversion.
14316
143172008-02-01 Kenichi Handa <handa@m17n.org>
14318
14319 * category.c (Fmodify_category_entry): Don't modify the contents
14320 of category_set for characters out of the range. Avoid
14321 unnecessary modification.
14322
14323 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
14324 Vchar_unify_table. The default value of the table is now nil.
14325
14326 * character.c (syms_of_character): Setup Vchar_width_table for
14327 eight-bit-control and raw-byte chars.
14328
14329 * charset.h (enum define_charset_arg_index): Delete
14330 charset_arg_parents and add charset_arg_subset and
14331 charset_arg_superset.
14332 (enum charset_attr_index): Delete charset_parents and add
14333 charset_subset and charset_superset.
14334 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
14335 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
14336 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
14337 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
14338 (CHARSET_SUPERSET): New macros.
14339 (charset_work): Extern it.
14340 (ENCODE_CHAR): Use charset_work.
14341 (CHAR_CHARSET_P): Adjust for the change of encoder format.
14342 (map_charset_chars): Extern it.
14343
14344 * charset.c (load_charset_map): Set the default value of encoder
14345 and deunifier char-tables to nil.
14346 (map_charset_chars): Change argument. Change callers. Use
14347 map_char_table_for_charset instead of map_char_table.
14348 (Fmap_charset_chars): New optional args from_code and to_code.
14349 (Fdefine_charset_internal): Adjust for the change of
14350 `define-charset' (:parents -> :subset or :superset).
14351 (charset_work): New variable.
14352 (encode_char, syms_of_charset): Adjust for the change of
14353 Fdefine_charset_internal.
14354 (Ffind_charset_string): Setup the vector `charsets' correctly.
14355
14356 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
14357 the previous change.
14358 (char_table_ref_and_range): Adjust for the above change.
14359 (map_sub_char_table_for_charset): New function.
14360 (map_char_table_for_charset): New function.
14361
14362 * keymap.c (describe_vector): Handle a char-table directly here.
14363 (describe_char_table): Delete.
14364
14365 * lisp.h (map_charset_chars): Delete.
14366
143672008-02-01 Dave Love <fx@gnu.org>
14368
14369 * fns.c (count_combining): Comment out (unused).
14370 (Flocale_codeset): New.
14371 (syms_of_fns): Defsubr it.
14372
14373 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
14374 (size_t): Remove.
14375
143762008-02-01 Dave Love <fx@gnu.org>
14377
14378 * Makefile.in (chartab.o): Depend on charset.h.
14379
143802008-02-01 Kenichi Handa <handa@m17n.org>
14381
14382 * character.c (syms_of_character): Set the default value of
14383 Vprintable_chars to Qnil.
14384
143852008-02-01 Dave Love <fx@gnu.org>
14386
14387 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
14388
143892008-02-01 Kenichi Handa <handa@m17n.org>
14390
14391 * charset.c (load_charset_map): Handle the case that from < to
14392 correctly.
14393
14394 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
14395 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
14396 Pay attention to raw-8-bit chars.
14397
143982008-02-01 Kenichi Handa <handa@m17n.org>
14399
14400 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
14401 It is not bytecompiled now.
14402
14403 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
14404 (charset_jisx0208): New variables.
14405 (Fdefine_charset_internal): Setup them if appropriate.
14406 (init_charset_once): Initialize them to -1.
14407
14408 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
14409 (charset_jisx0208): Extern them.
14410
14411 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
14412 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
14413 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
14414 (setup_iso_safe_charsets): Fix arguments to Fassq.
14415 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
14416 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
14417 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
14418 (encode_coding_iso_2022): Change the 1st arg to
14419 ENCODE_ISO_CHARACTER to a variable.
14420
144212008-02-01 Kenichi Handa <handa@m17n.org>
14422
14423 * charset.h (enum define_charset_arg_index): New enums
14424 charset_arg_min_code and charset_arg_max_code.
14425 (struct charset): New member char_index_offset.
14426
14427 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
14428 Take charset->char_index_offset into account.
14429 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
14430 args[charset_arg_max_code]. Setup charset.char_index_offset.
14431 (syms_of_charset): Fix args to Fdefine_charset_internal.
14432
144332008-02-01 Dave Love <fx@gnu.org>
14434
14435 * coding.c (decode_coding_utf_8): Reject overlong sequences.
14436
144372008-02-01 Dave Love <fx@gnu.org>
14438
14439 * coding.c: Doc fixes.
14440 (Fcoding_system_aliases): Fix return value.
14441 (Qmac): Remove (duplicated) definition.
14442
144432008-02-01 Dave Love <fx@gnu.org>
14444
14445 * charset.c (Fcharset_priority_list, Fset_charset_priority): New
14446 functions.
14447
14448 * character.c (Fstring): Doc fix.
14449
14450 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
14451
14452 * fontset.c (Ffontset_info): Doc fix. Return charset names, not
14453 ids.
14454 (font-encoding-alist): Doc fix.
14455
144562008-02-01 Dave Love <fx@gnu.org>
14457
14458 * term.c (costs_set): Declare static, non-initialized for pcc.
14459 (encode_terminal_code): Remove unused var.
14460
14461 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
14462 for K&R.
14463
14464 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
14465
14466 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
14467 (suffixes): Move out of make_subsidiaries for K&R.
14468
14469 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
14470
14471 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
14472
144732008-02-01 Dave Love <fx@gnu.org>
14474
14475 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
14476
14477 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
14478
144792008-02-01 Yong Lu <lyongu@asia-infonet.com>
14480
14481 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
14482
14483 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
14484
144852008-02-01 Kenichi Handa <handa@m17n.org>
14486
14487 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
14488 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
14489
144902008-02-01 Kenichi Handa <handa@m17n.org>
14491
14492 * coding.c (decode_coding_charset): Adjust for the change of
14493 Fdefine_coding_system_internal.
14494 (Fdefine_coding_system_internal): For a coding system of
14495 `charset' type, store a list of charset IDs in
14496 `charset_attr_charset_valids' element of coding attributes.
14497
144982008-02-01 Kenichi Handa <handa@m17n.org>
14499
14500 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
14501 (emacs_mule_char): New arg src. Delete arg `composition'. Change
14502 caller. Handle 2-byte and 3-byte charsets correctly.
14503 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
14504 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
14505 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
14506 (DECODE_EMACS_MULE_21_COMPOSITION): Call
14507 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
14508 sequence.
14509 (decode_coding_emacs_mule): Handle composition correctly. Rewind
14510 `src' and `consumed_chars' correctly before calling emacs_mule_char.
14511 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
14512 and alt&rule composition.
14513 (decode_coding_iso_2022): Handle composition correctly.
14514 (init_coding_once): Setup emacs_mule_bytes for private charsets.
14515
14516 * charset.c (Fdefine_charset_internal): Fix bug for the case of
14517 re-defining a charset. If the charset has :emacs-mule-id, setup
14518 emacs_mule_bytes.
14519 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
14520
145212008-02-01 Kenichi Handa <handa@m17n.org>
14522
14523 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
14524 (encode_coding_big5, encode_coding_charset): If coding requires safe
14525 encoding, produce a character specified by
14526 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
14527
145282008-02-01 Dave Love <fx@gnu.org>
14529
14530 * xterm.c (XSetIMValues): Declare.
14531
14532 * process.c: Conditionally include sys/wait.h, pty.h.
14533
14534 * print.c (print_object): Fix print format for 64-bit systems.
14535
14536 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
14537
14538 * buffer.c (emacs_strerror): Declare.
14539
14540 * fontset.c (Fclear_face_cache): Declare.
14541 (accumulate_font_info): Comment-out (unused).
14542 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
14543 variables.
14544
14545 * character.h (string_escape_byte8): Declare.
14546
14547 * charset.c (load_charset_map, load_charset_map_from_file): Remove
14548 unused vars.
14549 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
14550 (Fmap_charset_chars): Doc fix.
14551
14552 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
14553 (Fset_coding_system_priority, Fset_coding_system_priority)
14554 (Fdefine_coding_system_internal): Doc fix.
14555
145562008-02-01 Dave Love <fx@gnu.org>
14557
14558 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
14559
145602008-02-01 Kenichi Handa <handa@m17n.org>
14561
14562 * character.c (string_escape_byte8): Make multibyte string with
14563 correct size.
14564
14565 * charset.c (Fmake_char): Delete unnecessary code.
14566
145672008-02-01 Kenichi Handa <handa@m17n.org>
14568
14569 * xfns.c (x_encode_text): Allocate coding.destination here, and
14570 call encode_coding_object with dst_object Qnil.
14571
14572 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
14573 multibyte form correctly.
14574
14575 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
14576 against Vfont_encoding_alist.
14577
14578 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
14579 handling of charset list.
14580 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
14581 (decode_coding_object): Move point to coding->dst_pos before
14582 calling post-read-conversion function.
14583 (encode_coding_object): Give correct arguments to
14584 pre-write-conversion. Ignore the return value of
14585 pre-write-conversion function. Pay attention to the case that
14586 pre-write-conversion changes the current buffer. If dst_object is
14587 Qt, even if coding->src_bytes is zero, allocate at least one byte
14588 to coding->destination.
14589
14590 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
14591
14592 * charset.c (Fmake_char): Make it more backward compatible.
14593 (Fmap_charset_chars): Fix docstring.
14594
145952008-02-01 Dave Love <fx@gnu.org>
14596
14597 * coding.c: Doc fixes.
14598 (Fdefine_coding_system_alias): Use names, not symbols, in
14599 coding-system-alist.
14600
146012008-02-01 Kenichi Handa <handa@m17n.org>
14602
14603 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
14604 of calling free_realized_face.
14605
146062008-02-01 Yong Lu <lyongu@asia-infonet.com>
14607
14608 * charset.c (read_hex): Don't treat SPC as a comment starter.
14609 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
14610 (Fdecode_char): Fix typo.
14611
146122008-02-01 Kenichi Handa <handa@m17n.org>
14613
14614 * charset.h (struct charset): New member `code_space_mask'.
14615
14616 * coding.c (coding_set_source): Delete the local variable beg_byte.
14617 (encode_coding_charset, Fdefine_coding_system_internal):
14618 Delete the local variable charset.
14619 (Fdefine_coding_system_internal): Setup
14620 attrs[coding_attr_charset_valids] correctly.
14621
14622 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
14623 member to check if CODE is valid or not.
14624 (Fdefine_charset_internal): Initialize `code_space_mask' member.
14625 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
14626 is within the range of charset->min_code and carset->max_code.
14627
146282008-02-01 Dave Love <fx@gnu.org>
14629
14630 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
14631
14632 * dispextern.h (generate_ascii_font): Fix return type.
14633
14634 * xfaces.c (generate_ascii_font): Fix arg declaration.
14635
14636 * coding.c (coding_inherit_eol_type)
14637 (Fset_terminal_coding_system_internal)
14638 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
14639
146402008-02-01 Kenichi Handa <handa@m17n.org>
14641
14642 * coding.c (decode_coding_charset, encode_coding_charset): Handle
14643 multiple charsets correctly.
14644
146452008-02-01 Kenichi Handa <handa@m17n.org>
14646
14647 * search.c (boyer_moore): Fix handling of multibyte character
14648 translation.
14649
14650 * xdisp.c (display_mode_element): When the variable `elt' is
14651 changed, update `this' and `lisp_string'.
14652
146532008-02-01 Kenichi Handa <handa@m17n.org>
14654
14655 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
14656
14657 * callproc.c (Fcall_process): Be sure to give the current buffer
14658 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
14659
14660 * charset.c (struct charset_map_entries): New struct.
14661 (load_charset_map): Rename from parse_charset_map. New args
14662 entries and n_entries. Change caller.
14663 (load_charset_map_from_file): Rename from load_charset_map.
14664 Change caller. New arg control_flag. Call load_charset_map at
14665 the tail.
14666 (load_charset_map_from_vector): New function.
14667 (Fdefine_charset_internal): Setup charset.compact_codes_p.
14668 (encode_char): If the charset is compact, change a character index
14669 to a code point.
14670
14671 * coding.c (coding_alloc_by_making_gap): Check the case that the
14672 source and destination are the same correctly.
14673 (decode_coding_raw_text): Set coding->consumed_char and
14674 coding->consumed to 0.
14675 (produce_chars): If coding->chars_at_source is nonzero, update
14676 coding->consumed_char and coding->consumed before calling
14677 alloc_destination.
14678 (Fdefine_coding_system_alias): Register ALIAS in
14679 Vcoding_system_alist.
14680 (syms_of_coding): Define `no-conversion' coding system at the tail.
14681
14682 * fileio.c (Finsert_file_contents): Set coding_system instead of
14683 val. If the current buffer is multibyte, always call
14684 decode_coding_gap.
14685
14686 * xfaces.c (try_font_list): Give higher priority to fontset's
14687 family than face's family.
14688
146892008-02-01 Kenichi Handa <handa@m17n.org>
14690
14691 * callproc.c (Fcall_process): Be sure to give the current buffer
14692 to decode_coding_c_string.
14693
14694 * xfaces.c (try_font_list): Give a family specified in a fontset
14695 higher priority than a family specified in a face.
14696
146972008-02-01 Kenichi Handa <handa@m17n.org>
14698
14699 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
14700 Fix arguments to insert_from_buffer.
14701
14702 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
14703
147042008-02-01 Kenichi Handa <handa@m17n.org>
14705
14706 * coding.c (produce_chars): Set the variable `multibytep' correctly.
14707 (decode_coding_gap): Set coding->dst_multibyte correctly.
14708
147092008-02-01 Kenichi Handa <handa@m17n.org>
14710
14711 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
14712 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
14713 (encode_coding_utf_16): Substitute coding->default_char for
14714 non-Unicode characters.
14715 (decode_coding): Don't call record_insert here.
14716 (setup_coding_system): Initialize `surrogate' of
14717 coding->spec.utf_16 to 0.
14718 (EMIT_ONE_BYTE): Fix for multibyte case.
14719
14720 * insdel.c (insert_from_gap): Call record_insert.
14721
147222008-02-01 Kenichi Handa <handa@m17n.org>
14723
14724 * casefiddle.c (casify_region): Fix multibyte case.
14725
14726 * character.c (c_string_width): Add return type `int'.
14727 (char_string_with_unification): Delete arg ADVANCED.
14728
14729 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
14730 (CHAR_STRING): Adjust for the change of char_string_with_unification.
14731 (CHAR_STRING_ADVANCE): Make it do-while statement.
14732
14733 * chartab.c (sub_char_table_set_range): Optimize for the case
14734 DEPTH == 3. Add workaround code for a GCC optimization bug.
14735
14736 * charset.c (parse_charset_map): Remove an unused variable.
14737
14738 * coding.c: Delete unused variables.
14739
14740 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
14741 earlier. If inserted is zero and the coding system doesn't
14742 require flushing, don't call decode_coding_gap.
14743
14744 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
14745
147462008-02-01 Kenichi Handa <handa@m17n.org>
14747
14748 The following changes are for using Unicode as an internal
14749 character model, and use UTF-8 format for buffer/string
14750 representation.
14751
14752 * .gdbinit (xchartable): Adjust for the change of char table structure.
14753 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
14754
14755 * Makefile.in (obj): Add character.o and chartab.o.
14756 (lisp, shortlisp): Remove utf-8.elc.
14757 (*.o): For many files, change dependency on charset.h to
14758 character.h, and add dependency on character.h.
14759 (character.o, chartab.o): New targets.
14760
14761 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
14762 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
14763 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
14764 of "charset.h".
14765
14766 * dired.c, filelock.c: Include "character.h".
14767
14768 * alloc.c: Include "character.h" instead of "charset.h".
14769 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
14770 (syms_of_alloc): Remove defsubr for Smake_char_table.
14771
14772 * buffer.c: Include "character.h" instead of "charset.h", don't
14773 include "coding.h".
14774 (Fset_buffer_multibyte): Adjust for UTF-8.
14775
14776 * buffer.h: EXFUN Fbuffer_live_p.
14777
14778 * callproc.c: Include "character.h" instead of "charset.h".
14779 (Fcall_process): Big change for the new code-conversion APIs.
14780
14781 * casetab.c: Include "character.h" instead of "charset.h".
14782 (set_canon, set_identity, shuffle): Adjust for the new
14783 map_char_table spec.
14784 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
14785 accessing the char table structure.
14786
14787 * chartab.c: New file that implements char table.
14788
14789 * category.c: Include "character.h".
14790 (copy_category_entry): New function.
14791 (copy_category_table): Call map_char_table and copy_category_entry.
14792 (Fmake_category_table): Initialize all top-level slots.
14793 (char_category_set): New function.
14794 (modify_lower_category_set): Delete.
14795 (Fmodify_category_entry): Call char_table_ref_and_range.
14796
14797 * category.h (CATEGORY_SET): Just call char_category_set.
14798
14799 * ccl.c: Include "character.h".
14800 (Qccl, Qcclp): New variables.
14801 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
14802 it's less than 256.
14803 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
14804 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
14805 and DST type.
14806 (ccl_driver): Change types of argument, adjust code accordingly.
14807 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
14808 ccl_driver.
14809 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
14810
14811 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
14812 New members src_multibyte, dst_multibyte, consumed, and produced.
14813 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
14814 (CODING_SPEC_CCL_PROGRAM): New macro.
14815 (ccl_driver): Update prototype.
14816 (Qccl, Qcclp, Fccl_program_p): Extern them.
14817 (CHECK_CCL_PROGRAM): New macro.
14818
14819 * character.c, character.h, chartab.c: New files.
14820
14821 * charset.c: Mostly re-written. Move character and multibyte sequence
14822 handling codes to character.c.
14823
14824 * charset.h: Mostly re-written. Move character and multibyte sequence
14825 handling codes to character.h.
14826
14827 * coding.c, coding.h: Mostly re-written.
14828
14829 * composite.c: Include "character.h" instead of "charset.h".
14830 (CHAR_WIDTH): Move to character.h.
14831 (HASH_KEY, HASH_VALUE): Delete.
14832
14833 * composite.h (enum composition_method): Change order of enumeration
14834 symbols.
14835
14836 * data.c: Include "character.h" instead of "charset.h".
14837 (Faref): Call CHAR_TABLE_REF for a char table.
14838 (Faset): Call CHAR_TABLE_SET for a char table.
14839
14840 * dispextern.h (free_realized_face, check_face_attribytes)
14841 (generate_ascii_font): Extern them.
14842 (free_realized_multibyte_face): Delete extern.
14843
14844 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
14845 table structure.
14846
14847 * editfns.c: Include "character.h" instead of "charset.h".
14848 (Fchar_to_string): Always call CHAR_STRING.
14849
14850 * emacs.c (main): Call init_charset_once, init_charset,
14851 syms_of_chartab, and syms_of_character.
14852
14853 * fileio.c: Include "character.h" instead of "charset.h".
14854 (Finsert_file_contents): Big change for the new code-conversion API.
14855 (choose_write_coding_system, Fwrite_region): Likewise.
14856 (build_annotations_2): Delete.
14857 (e_write): Big change for the new code-conversion API.
14858
14859 * fns.c: Include "character.h" instead of "charset.h".
14860 (copy_sub_char_table): Move to chartab.c.
14861 (Fcopy_sequence): Call copy_char_table for a char table.
14862 (concat): Delete codes calling count_multibyte.
14863 (string_char_to_byte, string_byte_to_char): Adjust for the new
14864 multibyte form.
14865 (internal_equal): Adjust for the change of char table structure.
14866 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
14867 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
14868 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
14869 (char_table_translate, optimize_sub_char_table)
14870 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
14871 chartab.c.
14872 (char_table_ref_and_index): Delete.
14873 (HASH_KEY, HASH_VALUE): Move to lisp.h.
14874 (Fmd5): Call preferred_coding_system instead of accessing
14875 Vcoding_category_list. Adjust for the new code-conversion API.
14876 (syms_of_fns): Move defsubr for char table related functions to
14877 chartab.c.
14878
14879 * fontset.c: Mostly re-written.
14880
14881 * fontset.h (struct font_info): Change type of the member encoding_type.
14882 (enum FONT_SPEC_INDEX): New enum.
14883 (fontset_font_pattern, fs_load_font): Update prototype.
14884 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
14885
14886 * indent.c: Include "character.h" instead of "charset.h".
14887 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
14888
14889 * insdel.c: Include "character.h" instead of "charset.h".
14890 (copy_text): Don't refer to Vnonascii_translation_table.
14891 (insert_from_gap): New function.
14892
14893 * keyboard.c: Include "character.h" instead of "charset.h".
14894 (command_loop_1): Never call direct_output_forward_char before
14895 a non-ASCII character.
14896 (read_char): If Vkeyboard_translate_table is a char table, always
14897 translate a character.
14898
14899 * keymap.c: Include "character.h".
14900 (store_in_keymap): Handle the case that IDX is a cons.
14901 (Fdefine_key): Handle the case that KEY is a cons and the car part
14902 is also a cons (range).
14903 (push_key_description): Adjust for the new character code.
14904 (describe_vector): Call describe_char_table for a char table.
14905 (describe_char_table): New function.
14906
14907 * keymap.h (describe_char_table): Extern it.
14908
14909 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
14910 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
14911 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
14912 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
14913 Delete.
14914 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
14915 structure.
14916 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
14917 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
14918 (CHARTAB_SIZE_BITS_3): New macros.
14919 (chartab_size): Extern it.
14920 (struct Lisp_Char_Table): Re-design.
14921 (struct Lisp_Sub_Char_Table): New structure.
14922 (HASH_KEY, HASH_VALUE): Move from fns.c.
14923 (CHARACTERBITS): Define as 22.
14924 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
14925 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
14926 (GC_SUB_CHAR_TABLE_P): New macro.
14927 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
14928 (code_convert_string_norecord): Deleted extern.
14929 (init_character_once, syms_of_character, init_charset)
14930 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
14931
14932 * lread.c: Include "character.h".
14933 (read_multibyte): New arg NBYTES.
14934 (read_escape): Change the meaning of returned *BYTEREP.
14935 (to_multibyte): Delete.
14936 (read1): Adjust the handling of char table and string.
14937
14938 * print.c: Include "character.h" instead of "charset.h".
14939 (print_string): Convert 8-bit raw bytes to octal form by
14940 string_escape_byte8.
14941 (print_object): Adjust for the new multibyte form. Print 8-bit
14942 raw bytes always in octal form. Handle sub char table correctly.
14943
14944 * process.c: Include "character.h" instead of "charset.h".
14945 (read_process_output, send_process): Adjust for the new
14946 code-conversion API.
14947
14948 * puresize.h (BASE_PURESIZE): Increase.
14949
14950 * regex.c: Include "character.h" instead of "charset.h".
14951 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
14952 (regex_compile): Accept a range whose starting and ending
14953 character have different leading bytes.
14954 (analyse_first): Adjust for the above change.
14955
14956 * search.c: Include "character.h" instead of "charset.h".
14957 (search_buffer, boyer_moore): Adjust for the new multibyte form.
14958 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
14959
14960 * syntax.c: Include "character.h" instead of "charset.h".
14961 (syntax_parent_lookup): Delete.
14962 (Fmodify_syntax_entry): Accept a cons as CHAR.
14963 (skip_chars): Adjust for the new multibyte form.
14964 (init_syntax_once): Call char_table_set_range instead of directly
14965 accessing the structure of a char table.
14966
14967 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
14968 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
14969 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
14970 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
14971
14972 * term.c: Include "buffer.h" and "character.h".
14973 (encode_terminal_code, write_glyphs): Adjust for the new
14974 code-conversion API.
14975 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
14976
14977 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
14978
14979 * xdisp.c: Include "character.h".
14980 (get_next_display_element): Adjust for the new multibyte form.
14981 (disp_char_vector): Adjust for the new char table structure.
14982 (decode_mode_spec_coding): Adjust for the new structure of
14983 coding system.
14984 (decode_mode_spec): Adjust for the new code-conversion API.
14985
14986 * xfaces.c: Include "character.h" instead of "charset.h".
14987 (load_face_font): Adjust for the change of choose_face_font and
14988 FS_LOAD_FONT.
14989 (generate_ascii_font): New function.
14990 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
14991 (set_font_frame_param): Adjust for the change of choose_face_font.
14992 (free_realized_face): Make it public.
14993 (free_realized_faces_for_fontset): Rename from
14994 free_realized_multibyte_face. Free also faces realized for ASCII.
14995 (choose_face_font): Change arguments. Adjust for the change of
14996 fontset_font_pattern and FS_LOAD_FONT.
14997
14998 * xfns.c: Include "character.h".
14999 (x_encode_text): Adjust for the new code-conversion API.
15000
15001 * xselect.c: Don't include "charset.h".
15002 (selection_data_to_lisp_data): Adjust for the new code conversion API.
15003
15004 * xterm.c: Include "character.h".
15005 (x_encode_char): New argument CHARSET. Change caller.
15006 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
15007 Call ENCODE_CHAR instead of SPLIT_CHAR.
15008 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
15009 CHAR_WIDTH instead of CHARSET_WIDTH.
15010 (XTread_socket): Adjust for the new code-conversion API.
15011 (x_new_font): Adjust for the change of FS_LOAD_FONT.
15012 (x_load_font): Adjust for the change of struct font.
15013
150142008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
15015
15016 * xfaces.c (face_at_buffer_position): Remove unused vars.
15017
150182008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15019
15020 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
15021 Fix overflow checking.
15022
150232008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15024
15025 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
15026 Cancel previous change.
15027
150282008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
15029
15030 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
15031 ccl->eight_bit_control. Fix check for buffer overflow.
15032 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
15033 (ccl_driver): Initialize extra_bytes to 0.
15034
150352008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
15036
15037 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
15038 return it ORed with ctrl_modifier.
15039
150402008-01-29 Miles Bader <miles@gnu.org>
15041
15042 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
15043
150442008-01-28 Jason Rumney <jasonr@gnu.org>
15045
15046 * w32.c (stat): Don't double check for networked drive.
15047
150482008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
15049
15050 * window.c (run_window_configuration_change_hook): New function.
15051 Code extracted from set_window_buffer. Set the selected frame.
15052 (set_window_buffer): Use it.
15053 * window.h (run_window_configuration_change_hook): Declare.
15054 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
15055
15056 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
15057
150582008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
15059
15060 * Makefile.in: Remove references to unused macros.
15061
150622008-01-26 Eli Zaretskii <eliz@gnu.org>
15063
15064 * w32.c (g_b_init_get_sid_sub_authority)
15065 (g_b_init_get_sid_sub_authority_count): New static variables.
15066 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
15067 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
15068 (init_user_info): Use them to retrieve uid and gid.
15069 Use 500/513, the Windows defaults, as Administrator's uid/gid.
15070 (fstat): Use pw_uid and pw_gid from the_passwd structure for
15071 st_uid and st_gid of the file.
15072
150732008-01-26 Jason Rumney <jasonr@gnu.org>
15074
15075 * w32.c (logon_network_drive): New function.
15076 (stat): Use it.
15077
150782008-01-26 Chong Yidong <cyd@stupidchicken.com>
15079
15080 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
15081 invisible text covered with an ellipsis.
15082
150832008-01-25 Richard Stallman <rms@gnu.org>
15084
15085 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
15086 jump back to beginning. Move some other initializations after that.
15087 (Qwindow_text_change_functions, Vwindow_text_change_functions):
15088 New variables.
15089 (syms_of_xdisp): Init them.
15090
15091 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
15092
15093 * buffer.c (reset_buffer_local_variables):
15094 Implement `permanent-local-hook'.
15095 (Qpermanent_local_hook): New variable.
15096 (syms_of_buffer): Init and staticpro it.
15097
150982008-01-25 Michael Albinus <michael.albinus@gmx.de>
15099
15100 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
15101
151022008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
15103
15104 * fns.c (Fclrhash): Return TABLE.
15105
151062008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15107
15108 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
15109 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
15110 is set even without positional changes.
15111 (x_scroll_bar_clear): Set bar->redraw_needed_p.
15112
15113 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
15114
151152008-01-23 Jason Rumney <jasonr@gnu.org>
15116
15117 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
15118
15119 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
15120 the unicode range available in MULE by locale-coding-system.
15121 Improve dbcs lead byte detection. Set event timestamp and modifiers
15122 earlier.
15123
151242008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15125
15126 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
15127 [MAC_OSX] (init_mac_osx_environment): Initialize it.
15128 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
15129 when used on child processes.
15130
151312008-01-21 Michael Albinus <michael.albinus@gmx.de>
15132
15133 * dbusbind.c (Fdbus_method_return_internal): Rename from
15134 Fdbus_method_return.
15135 (Fdbus_unregister_object): Move to dbus.el.
15136 (Fdbus_call_method, Fdbus_method_return_internal)
15137 (Fdbus_send_signal): Improve debug messages.
15138
151392008-01-20 Martin Rudalics <rudalics@gmx.at>
15140
15141 * undo.c (undo_inhibit_record_point): New variable.
15142 (syms_of_undo): Initialize it.
15143 (record_point): Don't record point when undo_inhibit_record_point
15144 is set.
15145
151462008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
15147
15148 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
15149
15150 * xdisp.c (Qauto_hscroll_mode): New var.
15151 (syms_of_xdisp): Initialize it.
15152 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
15153 window's buffer.
15154 (hscroll_windows): Don't check automatic_hscrolling_p here.
15155
15156 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
15157 vscroll if we're setting window-buffer to the value it already has.
15158
151592008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
15160
15161 * m/intel386.h: Remove references to XENIX.
15162
151632008-01-17 Andreas Schwab <schwab@suse.de>
15164
15165 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
15166 instead of HAVE_X86_64_LIB64_DIR.
15167 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
15168
151692008-01-17 Glenn Morris <rgm@gnu.org>
15170
15171 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
15172 to HAVE_X86_64_LIB64_DIR.
15173
151742008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
15175
15176 * s/irix3-3.h:
15177 * s/irix4-0.h:
15178 * s/386-ix.h:
15179 * s/domain.h:
15180 * s/hpux9-x11r4.h:
15181 * s/hpux9shxr4.h: Remove files for systems no longer supported.
15182
15183 * sysdep.c: Remove code containing references to symbols defined
15184 by unsupported systems.
15185
151862008-01-16 Glenn Morris <rgm@gnu.org>
15187
15188 * coding.c (select-safe-coding-system-function): Doc fix.
15189
151902008-01-15 Glenn Morris <rgm@gnu.org>
15191
15192 * config.in: Revert 2008-01-13 change: this is a generated file.
15193
151942008-01-13 Tom Tromey <tromey@redhat.com>
15195
15196 * lisp.h: Fix typo.
15197
151982008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
15199
15200 * m/sequent-ptx.h:
15201 * m/sequent.h:
15202 * s/ptx.h:
15203 * s/ptx4-2.h:
15204 * s/ptx4.h: Remove files for systems no longer supported.
15205
15206 * callproc.c (Fcall_process): Fix previous change.
15207
152082008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
15209
15210 * unexsunos4.c: Remove file, system not supported anymore.
15211
15212 * m/mips.h:
15213 * m/intel386.h:
15214 * callproc.c:
15215 * config.in:
15216 * ecrt0.c:
15217 * emacs.c:
15218 * fileio.c:
15219 * frame.c:
15220 * getpagesize.h:
15221 * keyboard.c:
15222 * lread.c:
15223 * process.c:
15224 * puresize.h:
15225 * sysdep.c:
15226 * systty.h:
15227 * syswait.h:
15228 * unexec.c:
15229 * xdisp.c:
15230 * alloc.c: Remove code containing references to symbols defined by
15231 unsupported systems.
15232
152332008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
15234
15235 * coding.c (detect_coding_mask): Fix previous change.
15236
152372008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
15238
15239 * coding.c (detect_coding_iso2022): New arg
15240 latin_extra_code_state. Allow Latin extra codes only
15241 when *latin_extra_code_state is nonzero.
15242 (detect_coding_mask): If there is a NULL byte, detect the encoding
15243 as UTF-16 or binary. If Latin extra codes exist, detect the
15244 encoding as ISO-2022 only when there's no other proper encoding is
15245 found.
15246
152472008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15248
15249 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
15250 #ifdef MAC_OS.
15251
152522008-01-08 Richard Stallman <rms@gnu.org>
15253
15254 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
15255
152562008-01-06 Nick Roberts <nickrob@snap.net.nz>
15257
15258 * keyboard.c (parse_menu_item): Don't enclose key bindings on
15259 menu bar in parentheses.
15260
152612008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
15262
15263 * m/7300.h:
15264 * m/acorn.h:
15265 * m/alliant-2800.h:
15266 * m/alliant.h:
15267 * m/alliant1.h:
15268 * m/alliant4.h:
15269 * m/altos.h:
15270 * m/amdahl.h:
15271 * m/apollo.h:
15272 * m/att3b.h:
15273 * m/aviion-intel.h:
15274 * m/aviion.h:
15275 * m/celerity.h:
15276 * m/clipper.h:
15277 * m/cnvrgnt.h:
15278 * m/convex.h:
15279 * m/cydra5.h:
15280 * m/delta88k.h:
15281 * m/dpx2.h:
15282 * m/dual.h:
15283 * m/elxsi.h:
15284 * m/f301.h:
15285 * m/gould-np1.h:
15286 * m/gould.h:
15287 * m/i860.h:
15288 * m/ibmps2-aix.h:
15289 * m/ibmrt-aix.h:
15290 * m/ibmrt.h:
15291 * m/irist.h:
15292 * m/is386.h:
15293 * m/isi-ov.h:
15294 * m/mega68.h:
15295 * m/mg1.h:
15296 * m/news-r6.h:
15297 * m/news-risc.h:
15298 * m/news.h:
15299 * m/nh3000.h:
15300 * m/nh4000.h:
15301 * m/ns16000.h:
15302 * m/ns32000.h:
15303 * m/nu.h:
15304 * m/orion.h:
15305 * m/orion105.h:
15306 * m/paragon.h:
15307 * m/pfa50.h:
15308 * m/plexus.h:
15309 * m/pyramid.h:
15310 * m/pyrmips.h:
15311 * m/sh3el.h:
15312 * m/sps7.h:
15313 * m/sr2k.h:
15314 * m/stride.h:
15315 * m/sun1.h:
15316 * m/sun2.h:
15317 * m/sun3-68881.h:
15318 * m/sun3-fpa.h:
15319 * m/sun3-soft.h:
15320 * m/sun3.h:
15321 * m/sun386.h:
15322 * m/symmetry.h:
15323 * m/tad68k.h:
15324 * m/tahoe.h:
15325 * m/targon31.h:
15326 * m/tek4300.h:
15327 * m/tekxd88.h:
15328 * m/tower32.h:
15329 * m/tower32v3.h:
15330 * m/ustation.h:
15331 * m/wicat.h:
15332 * m/xps100.h:
15333 * s/cxux.h:
15334 * s/cxux7.h:
15335 * s/dgux.h:
15336 * s/dgux4.h:
15337 * s/dgux5-4-3.h:
15338 * s/dgux5-4r2.h:
15339 * s/esix.h:
15340 * s/esix5r4.h:
15341 * s/hiuxmpp.h:
15342 * s/hiuxwe2.h:
15343 * s/iris3-5.h:
15344 * s/iris3-6.h:
15345 * s/isc2-2.h:
15346 * s/isc3-0.h:
15347 * s/isc4-0.h:
15348 * s/isc4-1.h:
15349 * s/newsos5.h:
15350 * s/newsos6.h:
15351 * s/osf1.h:
15352 * s/osf5-0.h:
15353 * s/riscix1-1.h:
15354 * s/riscix12.h:
15355 * s/sco4.h:
15356 * s/sco5.h:
15357 * s/sunos4-0.h:
15358 * s/sunos4-1.h:
15359 * s/sunos413.h:
15360 * s/sunos4shr.h:
15361 * s/umax.h:
15362 * s/unipl5-2.h:
15363 * s/xenix.h:
15364 * cxux-crt0.s:
15365 * unexapollo.c:
15366 * unexconvex.c:
15367 * unexenix.c:
15368 * unexsni.c: Remove files for systems no longer supported.
15369
15370 * m/intel386.h: Remove references to unsupported systems.
15371
15372 * w32.c (get_emacs_configuration): Remove reference to i860.
15373
15374 * sysdep.c: Remove dead code.
15375
153762008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
15377
15378 * s/rtu.h:
15379 * m/masscomp.h: Remove files. Platform is obsolete.
15380
153812008-01-04 Michael Albinus <michael.albinus@gmx.de>
15382
15383 * dbusbind.c (Fdbus_method_return): New function.
15384 (xd_read_message): Add the serial number to the event.
15385 (Fdbus_register_method): Activate the function.
15386
153872008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
15388
15389 * keyboard.c (read_key_sequence): Fix typo.
15390
153912008-01-03 Michael Albinus <michael.albinus@gmx.de>
15392
15393 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
15394 (xd_signature, xd_append_arg): Handle element type detection for
15395 empty arrays.
15396 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
15397 SDATA () calls; this must be solved more general.
15398 (Fdbus_register_signal): Use SBYTES instead of strlen.
15399
154002008-01-03 Magnus Henoch <magnus@zemdatav>
15401
15402 * dbusbind.c (xd_append_arg): Use unsigned char instead of
15403 unsigned int for byte values (necessary for big-endian platform).
15404 (Fdbus_call_method): Handle the case of no returned arguments.
15405
154062007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
15407
15408 * dbusbind.c (xd_read_message): Use non-static input_event struct.
15409
154102007-12-31 Magnus Henoch <mange@freemail.hu>
15411
15412 * dbusbind.c (xd_signature): Signature of variant is just "v".
15413
154142007-12-30 Michael Albinus <michael.albinus@gmx.de>
15415
15416 * dbusbind.c: Fix several errors and compiler warnings.
15417 Reported by Tom Tromey <tromey@redhat.com>.
15418 (XD_ERROR, XD_DEBUG_MESSAGE)
15419 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
15420 (xd_append_arg): Part for basic D-Bus types rewritten.
15421 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
15422 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
15423 appropriate.
15424 (xd_read_message): Return Qnil. Don't signal an error; it is not
15425 useful during event reading.
15426 (Fdbus_register_signal): Signal an error if the check for
15427 FUNCTIONP fails.
15428 (Fdbus_register_method): New function. The implementation is not
15429 complete, the call of the function signals an error therefore.
15430 (Fdbus_unregister_object): New function, renamed from
15431 Fdbus_unregister_signal. The initial check signals an error, if
15432 the object is not well formed.
15433
154342007-12-30 Richard Stallman <rms@gnu.org>
15435
15436 * textprop.c (get_char_property_and_overlay):
15437 Signal error if POSITION is out of range in a buffer.
15438
154392007-12-29 Martin Rudalics <rudalics@gmx.at>
15440
15441 * w32fns.c (Fx_create_frame): Make copy of frame parameters
15442 because the original parameters are in pure storage now.
15443
154442007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15445
15446 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
15447
154482007-12-22 Eli Zaretskii <eliz@gnu.org>
15449
15450 * callint.c (syms_of_callint) <command-history>: Add reference to
15451 history-length in the doc string.
15452
154532007-12-17 Jason Rumney <jasonr@gnu.org>
15454
15455 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
15456 before passing as wParam.
15457
154582007-12-22 Michael Albinus <michael.albinus@gmx.de>
15459
15460 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
15461 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
15462 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
15463 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
15464 as number.
15465 (Fdbus_call_method): Fix docstring.
15466
154672007-12-21 Michael Albinus <michael.albinus@gmx.de>
15468
15469 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
15470 New macros.
15471 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
15472 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
15473 Simplify.
15474 (xd_signature): New function.
15475 (xd_append_arg): Compute also signatures. Major rewrite.
15476 (xd_retrieve_arg): Make debug messages friendly.
15477 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
15478 Check for signatures of arguments.
15479
154802007-12-19 Michael Albinus <michael.albinus@gmx.de>
15481
15482 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
15483 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
15484 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
15485 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
15486 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
15487 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
15488 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
15489 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
15490 (xd_retrieve_value): Remove. Functionality included in ...
15491 (xd_append_arg): New function.
15492 (Fdbus_call_method, Fdbus_send_signal): Apply it.
15493
154942007-12-16 Michael Albinus <michael.albinus@gmx.de>
15495
15496 * dbusbind.c (top): Include <stdio.h>.
15497 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
15498 dbus_message_new_method_call and dbus_message_new_signal.
15499 (Fdbus_register_signal): Rename unique_name to uname.
15500 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
15501 non-existing unique name. Fix typos in matching rule. Return an
15502 object which is useful in Fdbus_unregister_signal.
15503 (Fdbus_unregister_signal): Reimplementation, in order to remove
15504 only the corresponding entry.
15505 (Vdbus_registered_functions_table): Change the order of entries.
15506 Apply these changes in xd_read_message and Fdbus_register_signal.
15507
155082007-12-16 Andreas Schwab <schwab@suse.de>
15509
15510 * fileio.c (Finsert_file_contents): Fix overflow check to not
15511 depend on undefined integer overflow.
15512
155132007-12-14 Jason Rumney <jasonr@gnu.org>
15514
15515 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
15516 for characters above 127.
15517
155182007-12-13 Jason Rumney <jasonr@gnu.org>
15519
15520 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
15521 before dereferencing array.
15522 (lookup_vk_code): Remove zero comparison.
15523
155242007-12-14 Michael Albinus <michael.albinus@gmx.de>
15525
15526 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
15527 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
15528 Use `unsigned int' instead of `uint'.
15529 (xd_read_message, Fdbus_register_signal): Split expressions into
15530 multiple lines before operators "&&" and "||", according to the
15531 GNU Coding Standards.
15532
155332007-12-14 Eli Zaretskii <eliz@gnu.org>
15534
15535 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
15536
155372007-12-12 Juri Linkov <juri@jurta.org>
15538
15539 * buffer.c (Frename_buffer): In interactive spec replace
15540 `read-buffer' with `read-string' that uses `buffer-name-history'
15541 as history, and the current buffer's name as default.
15542
155432007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
15544
15545 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
15546 manipulating the backtrace manually.
15547 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
15548 (struct backtrace, backtrace_list): Remove.
15549 (command_loop_1): Remove dead var `no_direct'.
15550
15551 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
15552 preserve non-built-in buffer-local variables.
15553 (Fkill_all_local_variables): Don't re-create&re-set permanent
15554 buffer-local variables.
15555
155562007-12-09 Juri Linkov <juri@jurta.org>
15557
15558 * buffer.c (Frename_buffer): Change interactive spec from "s" to
15559 Lisp code that uses `read-buffer' with current buffer as default.
15560
155612007-12-08 Michael Albinus <michael.albinus@gmx.de>
15562
15563 * dbusbind.c (xd_read_message): Generate an event for every
15564 registered handler. There might be several handlers registered
15565 for the same signal.
15566 (Fdbus_register_signal): Don't overwrite a registration for the
15567 same signal. Add a new registration if handlers are different.
15568 (Vdbus_registered_functions_table): Rework doc string.
15569
155702007-12-07 Michael Albinus <michael.albinus@gmx.de>
15571
15572 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
15573 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
15574 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
15575 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
15576 Unify argument lists.
15577 (xd_read_message, Fdbus_register_signal): Reorder and extend event
15578 arguments and hash table keys. Use unique name for service.
15579 (Fdbus_unregister_signal): Remove checks.
15580 (Vdbus_registered_functions_table): Fix doc string.
15581
155822007-12-05 Magnus Henoch <mange@freemail.hu>
15583
15584 * process.c (make_process): Initialize pty_flag to 0.
15585
155862007-12-05 Jason Rumney <jasonr@gnu.org>
15587
15588 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
15589 specified XBMs.
15590
155912007-12-05 Richard Stallman <rms@gnu.org>
15592
15593 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
15594
155952007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15596
15597 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
15598 New variable.
15599 (mac_try_close_socket) [MAC_OSX]: New function.
15600 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
15601 Update cfsockets_for_select. Replace invalid CFRunLoop source.
15602
15603 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
15604 Use mac_try_close_socket.
15605
156062007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15607
15608 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
15609 reloc_base.
15610 (copy_dysymtab): Compute relocation base here.
15611 (rebase_reloc_address) [__ppc64__]: New function.
15612 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
15613 changed.
15614
156152007-12-05 Jason Rumney <jasonr@gnu.org>
15616
15617 * w32proc.c (sys_spawnve): Quote args with wildcards.
15618
156192007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15620
15621 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
15622 __objc_* sections.
15623 (unrelocate) [_LP64]: Set relocation base to address of data segment.
15624
156252007-12-05 Michael Albinus <michael.albinus@gmx.de>
15626
15627 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
15628 Move check for Vdbus_registered_functions_table to
15629 xd_read_queued_messages.
15630 (xd_read_queued_messages): Protect xd_read_message calls by
15631 internal_condition_case_1.
15632
156332007-12-04 Michael Albinus <michael.albinus@gmx.de>
15634
15635 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
15636 Qdbus_system_bus and Qdbus_session_bus, respectively.
15637 (Vdbus_intern_symbols): Remove.
15638 (Vdbus_registered_functions_table): New hash table.
15639 (XD_SYMBOL_INTERN_SYMBOL): Remove.
15640 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
15641 Rewrite in order to manage registered functions by hash table
15642 Vdbus_registered_functions_table.
15643
156442007-12-03 Jan Djärv <jan.h.d@swipnet.se>
15645
15646 * xterm.c: Update URL to Window Manager Specification in comment.
15647
156482007-12-02 Michael Albinus <michael.albinus@gmx.de>
15649
15650 * config.in (HAVE_DBUS): Add.
15651
15652 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
15653 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
15654 (obj): Add $(DBUS_OBJ).
15655 (LIBES): Add $(DBUS_LIBS).
15656 (dbusbind.o): New target.
15657
15658 * dbusbind.c: New file.
15659
15660 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
15661
15662 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
15663 (Qdbus_event): New Lisp symbol.
15664 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
15665 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 15666 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
15667
15668 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
15669
156702007-12-01 Richard Stallman <rms@gnu.org>
15671
15672 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
15673
156742007-11-30 Jason Rumney <jasonr@gnu.org>
15675
15676 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
15677 (w32con_reset_terminal_modes): Clear screen buffer.
15678 (w32_face_attributes): Don't use color indexes that are out of range.
15679 Only reverse the default colors.
15680
15681 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
15682 WINDOWSNT.
15683
15684 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
15685
156862007-11-29 Jason Rumney <jasonr@gnu.org>
15687
15688 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
15689 (w32_face_attributes): Use Vtty_defined_color_alist to determine
15690 if the terminal colors are initialized.
15691 (unspecified_fg, unspecified_bg): Remove unused declarations.
15692
156932007-11-29 Andreas Schwab <schwab@suse.de>
15694
15695 * keyboard.c (apply_modifiers): Fix typo.
15696
156972007-11-29 Richard Stallman <rms@gnu.org>
15698
15699 * keymap.c (Fcurrent_local_map): Doc fix.
15700
157012007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
15702
15703 * s/gnu-kfreebsd.h: New file.
15704
157052007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
15706
15707 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
15708 Don't cast redundantly.
15709
15710 * keyboard.c (KEY_TO_CHAR): New macro.
15711 (parse_modifiers, apply_modifiers): Accept integer arguments.
15712 (read_key_sequence): Use them to unify the "shift->unshift" mapping
15713 for chars and symbol keys.
15714 After doing such remapping, apply function-key-map again.
15715
157162007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
15717
15718 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
15719 compiled anymore.
15720
157212007-11-26 Andreas Schwab <schwab@suse.de>
15722
15723 * process.c (list_processes_1): Fix indentation level of the
15724 command column.
15725
157262007-11-23 Andreas Schwab <schwab@suse.de>
15727
15728 * editfns.c (Fformat): Handle %c specially since it requires the
15729 argument to be of type int.
15730
157312007-11-23 Markus Triska <markus.triska@gmx.at>
15732
15733 * emacs.c (main): Call init_editfns before init_process, since
15734 init_process sets Vprocess_connection_type depending on OS release.
15735
157362007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
15737
15738 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
15739 (find_symbol_value): Use do_symval_forwarding.
15740
15741 * data.c (set_internal): Set the value in the `cons-cell' (for
15742 Buffer_Local_values) not only for frame-local variables.
15743
157442007-11-22 Andreas Schwab <schwab@suse.de>
15745
15746 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
15747 values to sprintf.
15748 * keymap.c (Fsingle_key_description): Likewise.
15749 * print.c (print_object): Likewise.
15750
157512007-11-22 Jan Djärv <jan.h.d@swipnet.se>
15752
15753 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
15754 file for image is nil.
15755
157562007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
15757
15758 * term.c: Include stdarg.h.
15759 (fatal): Implement using varargs.
15760 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
15761
157622007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
15763
15764 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
15765 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
15766 Update call to buffer_slot_type_mismatch.
15767 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
15768 (buffer_slot_type_mismatch): Update.
15769 * buffer.c (buffer_local_types): Remove.
15770 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
15771 (defvar_per_buffer): Set the type in the buffer_objfwd.
15772
157732007-11-21 Jason Rumney <jasonr@gnu.org>
15774
15775 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
15776 CreateFileMapping returns NULL on failure.
15777
157782007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
15779
15780 * search.c (Fset_match_data): Remove the `evaporate' feature.
15781 (unwind_set_match_data): Don't use the `evaporate' feature.
15782
157832007-11-21 Jason Rumney <jasonr@gnu.org>
15784
15785 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
15786
15787 * w32console.c (w32con_write_glyphs): Remove unused variables.
15788
157892007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
15790
15791 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
15792
15793 * s/darwin.h (MULTI_KBOARD): Remove.
15794
15795 * macfns.c (x_create_tip_frame, Fx_create_frame)
15796 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
15797
157982007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
15799
15800 * buffer.c (Fbuffer_local_value): Remove redundant test.
15801 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
15802 than in `current-buffer' to match the comment.
15803 Do the swap using swap_in_global_binding.
15804
15805 * data.c (store_symval_forwarding, set_internal):
15806 * eval.c (specbind): Remove dead code.
15807
15808 * coding.c (detect_coding, Fupdate_coding_systems_internal):
15809 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
15810 Since we do not want to see internal Lisp_*fwd objects here.
15811
158122007-11-18 Jan Djärv <jan.h.d@swipnet.se>
15813
15814 * sysdep.c (init_system_name): Use getaddrinfo if available.
15815
15816 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
15817 (x_scroll_bar_note_movement): start, end, with, height in struct
15818 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
15819
158202007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
15821
15822 * puresize.h (BASE_PURESIZE): Increase to 1190000.
15823
158242007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
15825
15826 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
15827 This undoes Richard's change of 14-Oct-2002.
15828
15829 * alloc.c (allocate_other_vector):
15830 * lisp.h (allocate_other_vector): Remove.
15831
15832 * window.c (struct save_window_data): Move non-lisp data to the end
15833 and make it `int' rather than Lisp_Object.
15834 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
15835 Done wrap/unwrap integer values.
15836 (Fset_window_configuration, compare_window_configurations):
15837 Update use of fields to their new types.
15838
15839 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
15840 Turn integer fields into `int'. Merge x_window_low and x_window_high.
15841 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
15842 (SET_SCROLL_BAR_X_WINDOW): Remove.
15843 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
15844 Access the new x_window field directly.
15845 * xterm.c (x_scroll_bar_create): Use a pseudovector.
15846 Don't wrap/unwrap integers into Lisp_Objects.
15847 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
15848 (x_scroll_bar_report_motion):
15849 Don't wrap/unwrap integers into Lisp_Objects.
15850 (x_term_init): Use SDATA.
15851 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
15852 (x_scroll_bar_set_handle, x_scroll_bar_remove)
15853 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
15854 (x_scroll_bar_report_motion, x_scroll_bar_clear):
15855 * xfns.c (x_set_background_color):
15856 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
15857 Access the new x_window field directly.
15858
15859 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
15860 (allocate_pseudovector): Make non-static.
15861
15862 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
15863 (allocate_pseudovector): Declare.
15864 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
15865
158662007-11-15 Andreas Schwab <schwab@suse.de>
15867
15868 * editfns.c (Fformat): Correctly format EMACS_INT values.
15869 Also take precision into account when formatting an integer.
15870
15871 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
15872
158732007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
15874
15875 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
15876 (syms_of_keyboard): Defsubr it.
15877
15878 * data.c (swap_in_global_binding): Fix longstanding bug where
15879 store_symval_forwarding was not called with the right second argument,
15880 thus causing objfwd-ing from being dropped.
15881
158822007-11-14 Juanma Barranquero <lekktu@gmail.com>
15883
15884 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
15885 (Fx_display_pixel_height, Fx_display_planes)
15886 (Fx_display_color_cells, Fx_server_max_request_size)
15887 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
15888 (Fx_display_visual_class, Fx_display_save_under):
15889 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
15890 (Fx_display_pixel_height, Fx_display_planes)
15891 (Fx_display_color_cells, Fx_server_max_request_size)
15892 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
15893 (Fx_display_mm_height, Fx_display_mm_width)
15894 (Fx_display_backing_store, Fx_display_visual_class)
15895 (Fw32_select_font, Fx_display_save_under):
15896 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
15897 (Fx_display_pixel_height, Fx_display_planes)
15898 (Fx_display_color_cells, Fx_server_max_request_size)
15899 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
15900 (Fx_display_save_under): Fix typos in docstrings.
15901
159022007-11-14 Juanma Barranquero <lekktu@gmail.com>
15903
15904 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
15905 corresponding to deleted entries; they are an implementation detail.
15906 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
15907 Remove variables.
15908 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
15909 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
15910 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
15911 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
15912 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
15913 (Fw32_define_rgb_color, Fw32_load_color_file)
15914 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
15915 Fix typos in docstrings.
15916 (Fx_server_version): Reflow docstring.
15917 (Fw32_shell_execute): Doc fixes.
15918
159192007-11-13 Juanma Barranquero <lekktu@gmail.com>
15920
15921 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
15922 if w32_parse_hot_key returned nil.
15923
159242007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
15925
15926 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
15927
159282007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 15929
aac0c6e3
MR
15930 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
15931
15932 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
15933
15934 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
15935 Remove W32_SCROLL_BAR_CLICK_EVENT.
15936
15937 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
15938 Add MULTIMEDIA_KEY_EVENT.
15939
15940 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
15941 (lispy_multimedia_keys) [WINDOWSNT]: New array.
15942 (make_lispy_event) [WINDOWSNT]: Use it to translate
15943 MULTIMEDIA_KEY_EVENT.
15944
15945 * w32term.h (WM_APPCOMMAND): Define if not already.
15946 (GET_APPCOMMAND_LPARAM): Likewise.
15947
15948 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
15949 WM_APPCOMMAND.
15950
15951 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
15952 (syms_of_w32fns): Export and initialize it.
15953 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
15954
159552007-11-09 Chong Yidong <cyd@stupidchicken.com>
15956
15957 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
15958 twice.
15959
15960 * xdisp.c (handle_face_prop): Fix last change.
15961
159622007-11-09 Richard Stallman <rms@gnu.org>
15963
15964 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
15965 not just for after-strings and before-strings.
15966 Call face_for_overlay_string and pass the overlay to it.
15967 (handle_display_prop): Determine whether property came from an overlay.
15968 Pass OVERLAY arg to handle_single_display_spec.
15969 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
15970 (load_overlay_strings): Fill in it->string_overlays.
15971 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
15972
15973 * xfaces.c (face_for_overlay_string): Function renamed from
15974 face_at_buffer_position_no_overlays, and add arg OVERLAY.
15975
15976 * dispextern.h (struct it): New elt string_overlays.
15977 New elt from_overlay, also in stack.
15978 Rearrange a few elements.
15979 (face_for_overlay_string): Decl renamed from
15980 face_at_buffer_position_no_overlays, and add argument.
15981
159822007-11-09 Richard Stallman <rms@gnu.org>
15983
15984 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
15985 to get the base face for an overlay string.
15986
15987 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
15988
15989 * xfaces.c (face_at_buffer_position_no_overlays): New function.
15990
15991 * xdisp.c (handle_stop): Move some code out of loop.
15992
159932007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15994
15995 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
15996 Fix conversion from Lisp object to ATSUFontID.
15997
159982007-11-09 Jason Rumney <jasonr@gnu.org>
15999
16000 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
16001
160022007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16003
16004 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
16005 Don't assume regions are aligned to page boundary.
16006 (print_load_command_name): Add LC_UUID if defined.
16007
160082007-11-09 Richard Stallman <rms@gnu.org>
16009
16010 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
16011
160122007-11-07 Jason Rumney <jasonr@gnu.org>
16013
16014 * s/windows95.h: Remove.
16015
160162007-11-06 Jan Djärv <jan.h.d@swipnet.se>
16017
16018 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
16019 abort with a message on unhandled store_type values.
16020
160212007-11-01 Jan Djärv <jan.h.d@swipnet.se>
16022
16023 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
16024 Remove HAVE_X11R5 and HAVE_X11R4.
16025
160262007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
16027
16028 * Makefile.in: Remove references to sunfns.c and sunfns.o.
16029
160302007-11-01 Johan Bockgård <bojohan@gnu.org>
16031
16032 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
16033 Don't set s->stippled_p here, since it has already been set by
16034 x_set_glyph_string_gc from x_draw_glyph_string.
16035
160362007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
16037
16038 * sunfns.c: Remove file.
16039
16040 * m/sun386.h:
16041 * m/sun2.h:
16042 * m/sparc.h: Remove Sun windows code.
16043
160442007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
16045
16046 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
16047 (init_keyboard): Set current_kboard's window-system to nil.
16048 (tty_read_avail_input): Typo.
16049 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
16050
160512007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
16052
16053 * s/usg5-4.h:
16054 * s/usg5-3.h:
16055 * s/ptx.h:
16056 * m/is386.h:
16057 * m/ibmps2-aix.h:
16058 * Makefile.in: Remove all mentions of X10.
16059
16060 * dispnew.c (syms_of_display): Don't mention version 10.
16061
160622007-10-28 Juanma Barranquero <lekktu@gmail.com>
16063
16064 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
16065 ($(BLD)/abbrev.$(O)): Remove.
16066
160672007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
16068
16069 Rewrite abbrev.c in Elisp.
16070 * image.c (Qcount): Don't declare as extern.
16071 (syms_of_image): Initialize and staticpro `Qcount'.
16072 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
16073 * emacs.c (main): Don't call syms_of_abbrev.
16074 * Makefile.in (obj): Remove abbrev.o.
16075 (abbrev.o): Remove.
16076 * abbrev.c: Remove.
16077
160782007-10-26 Martin Rudalics <rudalics@gmx.at>
16079
16080 * window.c (window_min_size_2): Don't count header-line.
16081
160822007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
16083
16084 * frame.h (struct frame): Move all bit fields after the first bit
16085 field to take advantage of the available space. Group all the
16086 chars together to reduce wasted space due to padding.
16087
160882007-10-26 Juanma Barranquero <lekktu@gmail.com>
16089
16090 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
16091
16092 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
16093 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
16094 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
16095 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
16096 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
16097 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
16098 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
16099 (last_marked, mark_object_loop_halt): Make static.
16100
16101 * frame.c (syms_of_frame) <delete-frame-functions>:
16102 Fix typo in docstring.
16103
161042007-10-25 Juanma Barranquero <lekktu@gmail.com>
16105
16106 * w32.c (init_environment): Fix tiny memory leak.
16107 (w32_get_resource): Remove unused variable `ok'.
16108
161092007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
16110
16111 Make `window-system' into a keyboard-local variable (rather than
16112 frame-local as done originally by multi-tty).
16113
16114 * keyboard.h (struct kboard): Add Vwindow_system.
16115 * keyboard.c (init_kboard): Set a default for Vwindow_system.
16116 (mark_kboards): Mark Vwindow_system.
16117
16118 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
16119 (init_display): Don't set the obsolete `window-system' frame-param.
16120
16121 * xterm.c (x_term_init):
16122 * w32term.c (w32_create_terminal):
16123 * term.c (init_tty): Set Vwindow_system.
16124 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
16125 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
16126
16127 * xfns.c (Fx_create_frame, x_create_tip_frame):
16128 * w32fns.c (Fx_create_frame, x_create_tip_frame):
16129 * macfns.c (Fx_create_frame):
16130 Don't set the obsolete `window-system' frame-param.
16131
16132 * frame.h (Qwindow_system): Remove.
16133 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
16134 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
16135
161362007-10-24 Richard Stallman <rms@gnu.org>
16137
16138 * frame.c (x_figure_window_size): For fullscreen case,
16139 set USPosition | PPosition without clobbering rest of window_prompting.
16140
16141 * keyboard.c (Fcurrent_idle_time): Doc fix.
16142
16143 * print.c (Fwith_output_to_temp_buffer): Doc fix.
16144
161452007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
16146
16147 * process.c (unwind_request_sigio): Only define if __ultrix__.
16148
16149 * callproc.c (child_setup): Remove spurious *.
16150
16151 * lisp.h (Fget_text_property): Declare.
16152 (have_menus_p): Declare it here rather than in sys-dep header files.
16153 * macterm.h (have_menus_p):
16154 * msdos.h (have_menus_p):
16155 * xterm.h (have_menus_p): Remove.
16156
16157 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
16158 (Fmake_variable_frame_local): Just check the variable's const-ness
16159 rather than checking nil or t.
16160
161612007-10-22 Jason Rumney <jasonr@gnu.org>
16162
16163 * w32fns.c: Include math.h.
16164 (w32_abort): Declaration moved to nt/config.nt.
16165
16166 * s/ms-w32.h (HAVE_STDLIB_H): Define.
16167 (abort): Redefinition moved to nt/config.nt.
16168
16169 * m/windowsnt.h: Remove.
16170
161712007-10-22 Juanma Barranquero <lekktu@gmail.com>
16172
16173 * emacs.c (Fdump_emacs): Fix typo in message.
16174 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
16175 <installation-directory>: Reflow docstring.
16176
161772007-10-22 Juri Linkov <juri@jurta.org>
16178
16179 * minibuf.c: Allow minibuffer default to be a list of default values.
16180 With empty input use the first element of this list as returned default.
16181 (string_to_object)
16182 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
16183 (read_minibuf): If defalt is cons, set histstring to its car.
16184 (Fread_string): If default_value is cons, set val to its car.
16185 (Fread_buffer): If def is cons, use its car.
16186 (Fcompleting_read): If defalt is cons, set val to its car.
16187
161882007-10-21 Michael Albinus <michael.albinus@gmx.de>
16189
16190 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
16191
161922007-10-20 Juanma Barranquero <lekktu@gmail.com>
16193
16194 * doc.c (Fdocumentation): Check for advice in all cases.
16195
161962007-10-19 Chong Yidong <cyd@stupidchicken.com>
16197
16198 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
16199
162002007-10-19 Richard Stallman <rms@gnu.org>
16201
16202 * doc.c (Fdocumentation): Check for and handle an advised function.
16203
162042007-10-19 Juanma Barranquero <lekktu@gmail.com>
16205
16206 * process.c (Fset_process_filter): Doc fix.
16207
162082007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
16209
16210 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
16211 which caused key-translation-map to applied repeatedly (thus breaking
16212 double-mode).
16213
162142007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
16215
16216 * xselect.c (x_own_selection, x_handle_selection_clear)
16217 (x_clear_frame_selections):
16218 * w32menu.c (list_of_panes, list_of_items):
16219 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
16220 * textprop.c (validate_plist, interval_has_all_properties)
16221 (interval_has_some_properties, interval_has_some_properties_list)
16222 (add_properties, text_property_list):
16223 * process.c (Fget_buffer_process, list_processes_1, status_notify):
16224 * minibuf.c (Fassoc_string):
16225 * macselect.c (x_own_selection, x_clear_frame_selections)
16226 (Fx_disown_selection_internal):
16227 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
16228 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
16229
162302007-10-17 Chong Yidong <cyd@stupidchicken.com>
16231
16232 * process.c: Link to libs for calling res_init() if available.
16233 (Fmake_network_process): Call res_init() before getaddrinfo or
16234 gethostbyname, if possible.
16235
162362007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
16237
16238 * lread.c (read1): Set pvectype for char_tables.
16239
16240 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
16241 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
16242 Add type checks.
16243 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
16244
16245 * alloc.c (free_misc): Use XMISCTYPE.
16246 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
16247
162482007-10-17 Glenn Morris <rgm@gnu.org>
16249
16250 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
16251 (syms_of_minibuf): Add Qcompletion_ignore_case.
16252 * dired.c (Qcompletion_ignore_case): Change to external.
16253 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
16254 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
16255 (Fread_file_name): Use it rather than intern'ing.
16256
16257 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
16258 (Fread_coding_system): Ignore case of user input.
16259
162602007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16261
16262 * xdisp.c (handle_display_prop): Ignore display specs after
16263 replacing one when string text is being replaced.
16264 (handle_single_display_spec): Pretend as if characters with display
16265 property haven't been consumed only when buffer text is being replaced.
16266
162672007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
16268
16269 * xfns.c (Fx_create_frame, Fx_display_list):
16270 * window.c (window_fixed_size_p, enlarge_window)
16271 (shrink_window_lowest_first):
16272 * macterm.c (init_font_name_table):
16273 * macfns.c (Fx_create_frame, Fx_display_list):
16274 * lread.c (close_load_descs):
16275 * keyboard.c (read_char_x_menu_prompt):
16276 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
16277 * coding.c (code_convert_region_unwind): Test the type of an object
16278 rather than just !NILP before extracting data from it.
16279
16280 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
16281
16282 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
16283 (XMISCANY): New macro.
16284 (XMISCTYPE): Use it.
16285 (struct Lisp_Misc_Any): New type.
16286 (union Lisp_Misc): Use it.
16287 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
16288 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
16289 (find_symbol_value, set_internal, default_value, Fset_default)
16290 (Fmake_variable_buffer_local, Fmake_local_variable)
16291 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
16292 (Flocal_variable_if_set_p, Fvariable_binding_locus):
16293 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
16294 * alloc.c (allocate_buffer): Set the size and tag.
16295 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
16296 Use XMISCANY.
16297 (die): Follow the GNU convention for error messages.
16298 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
16299 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
16300 tag any more.
16301 (set_buffer_internal_1):
16302 * frame.c (store_frame_param):
16303 * eval.c (specbind):
16304 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
16305
16306 * doc.c (Fsnarf_documentation): Simplify.
16307
163082007-10-14 Juanma Barranquero <lekktu@gmail.com>
16309
16310 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
16311 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
16312
163132007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
16314
16315 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
16316
163172007-10-14 Juanma Barranquero <lekktu@gmail.com>
16318
16319 * eval.c (do_autoload): Don't save autoloads.
16320
16321 * data.c (Ffset): Save autoload of the function being set.
16322
163232007-10-07 John Paul Wallington <jpw@pobox.com>
16324
16325 * xfns.c (x_create_tip_frame): Set the `display-type' frame
16326 parameter before setting up faces.
16327
163282007-10-13 Eli Zaretskii <eliz@gnu.org>
16329
16330 * ccl.c (Fregister_code_conversion_map):
16331 * keyboard.c (append_tool_bar_item): Reformat last change.
16332
16333 * lisp.h (eabs): Rename from `abs'. All callers changed.
16334
163352007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
16336
16337 * buffer.c (add_overlay_mod_hooklist):
16338 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
16339 * fontset.c (make_fontset):
16340 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
16341 (append_tool_bar_item):
16342 * macmenu.c (grow_menu_items):
16343 * w32menu.c (grow_menu_items):
16344 * xmenu.c (grow_menu_items): Use larger_vector.
16345
163462007-10-13 Eli Zaretskii <eliz@gnu.org>
16347
16348 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
16349 selected frame'' on MSDOS).
16350
163512007-10-12 Martin Rudalics <rudalics@gmx.at>
16352
16353 * frame.c (Qexplicit_name): New variable.
16354 (x_report_frame_params): Report it in parameter alist.
16355 (syms_of_frame): Intern and staticpro it.
16356
163572007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
16358
16359 * macfns.c (x_create_tip_frame): Set terminal for frame.
16360
163612007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
16362
16363 * frame.c (Qenvironment): Remove.
16364 (syms_of_frame) <Qenvironment>: Don't initialize.
16365 (Fdelete_frame): Don't treat the `environment' param specially.
16366 * frame.h (Qenvironment): Don't declare.
16367 * callproc.c (set_initial_environment): Don't set unused frame param.
16368
16369 * frame.c (Fframe_with_environment): Remove.
16370 (syms_of_frame) <Sframe_with_environment>: Don't declare.
16371
16372 * lisp.h (Fframe_with_environment): Don't declare.
16373
163742007-10-10 Juanma Barranquero <lekktu@gmail.com>
16375
16376 * indent.c (indent_tabs_mode, last_known_column)
16377 (last_known_column_modified): Make static.
16378 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
16379
163802007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
16381
16382 * puresize.h (BASE_PURESIZE): Increase to 1170000.
16383
163842007-10-09 Jason Rumney <jasonr@gnu.org>
16385
16386 * w32term.c (x_set_window_size): Disable code that attempts to tell
16387 Lisp code about a size change before it actually happens.
16388
163892007-10-09 Richard Stallman <rms@gnu.org>
16390
16391 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
16392 return HANDLED_RETURN.
16393
163942007-10-08 Martin Rudalics <rudalics@gmx.at>
16395
16396 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
16397 when there's an unread command event.
16398
16399 * frame.c (focus_follows_mouse): Move here from frame.el to allow
16400 window autoselection act appropriately when leaving selected frame.
16401 (syms_of_frame): Initialize focus_follows_mouse.
16402 * frame.h (focus_follows_mouse): Extern it.
16403 * macterm.c (XTread_socket): When focus_follows_mouse is nil
16404 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
16405 * msdos.c (dos_rawgetc): Likewise.
16406 * w32term.c (w32_read_socket): Likewise.
16407 * xterm.c (handle_one_xevent): Likewise.
16408 * xdisp.c (syms_of_xdisp): In doc-string of
16409 mouse-autoselect-window mention focus-follows-mouse.
16410
164112007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16412
16413 * macterm.c (mac_load_query_font): Fix missing return value.
16414 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
16415 Add BLOCK_INPUT.
16416
164172007-10-08 Richard Stallman <rms@gnu.org>
16418
16419 * xdisp.c (get_window_cursor_type): Implement documented behavior
16420 for cursor-in-non-selected-windows = t.
16421
164222007-10-08 Jason Rumney <jasonr@gnu.org>
16423
16424 * w32.c (w32_get_resource): Always close registry keys.
16425
164262007-10-08 Jason Rumney <jasonr@gnu.org>
16427
16428 * makefile.w32-in (LIBS): Add COMCTL32.
16429
16430 * w32fns.c (globals_of_w32fns): Init common controls.
16431
164322007-10-08 Richard Stallman <rms@gnu.org>
16433
16434 * image.c (our_memory_buffer): Rename from omfib_buffer.
16435
164362007-10-08 Richard Stallman <rms@gnu.org>
16437
16438 * buffer.c (Foverlays_at): Doc fix.
16439
164402007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
16441
16442 * fns.c (Fplist_put): Preserve uneven tail data.
16443
164442007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
16445
16446 * termhooks.h (enum event_kind): Remove trailing comma.
16447
16448 * frame.h (enum): Remove trailing comma.
16449
164502007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
16451
16452 * w32proc.c (delete_child): Don't terminate threads of zombies.
16453
164542007-10-08 Martin Rudalics <rudalics@gmx.at>
16455
16456 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
16457
16458 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
16459 last-repeatable-command.
16460 (init_kboard): Initialize Vlast_repeatable_command.
16461 (command_loop_1): Set it to real_this_command unless that was
16462 bound to an input event.
16463 (mark_kboards): Mark it.
16464
164652007-10-08 Richard Stallman <rms@gnu.org>
16466
16467 * eval.c (condition-case): Doc fix.
16468
164692007-10-08 Masatake YAMATO <jet@gyve.org>
16470
16471 * xfaces.c (tty_supports_face_attributes_p): Fix code
16472 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
16473 was copied and not edited.
16474
164752007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
16476
16477 Add new `input-decode-map' keymap and use it for terminal
16478 escape sequences.
16479 * keyboard.h (struct kboard): Add Vinput_decode_map.
16480 Remove Vlocal_key_translation_map.
16481 * keyboard.c (read_key_sequence): Add support for input-decode-map.
16482 (init_kboard): Init input-decode-map.
16483 Replace local-key-translation-map back with key-translation-map.
16484 (syms_of_keyboard): Declare input-decode-map.
16485 Remove local-key-translation-map. Update docstrings.
16486 (mark_kboards): Mark Vinput_decode_map.
16487 Don't mark Vlocal_key_translation_map.
16488 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
16489 Replace local-key-translation-map back with key-translation-map.
16490 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
16491 Bind in input-decode-map rather than function-key-map.
16492
16493 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
16494 This was made redundant by the previous introduction of XSETPVECTYPE.
16495
164962007-10-09 Richard Stallman <rms@gnu.org>
16497
16498 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
16499
165002007-09-29 Richard Stallman <rms@gnu.org>
16501
16502 * eval.c (internal_condition_case_2, internal_condition_case_1)
16503 (internal_condition_case): Reenable abort if x_catching_errors ()
16504 to see if that really happens and why.
16505
165062007-10-06 Andreas Schwab <schwab@suse.de>
16507
16508 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
16509
165102007-10-04 Juanma Barranquero <lekktu@gmail.com>
16511
16512 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
16513
165142007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
16515
16516 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
16517
165182007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
16519
16520 * window.h (struct window):
16521 * window.c (struct save_window_data, struct saved_window):
16522 * termhooks.h (struct terminal):
16523 * process.h (struct Lisp_Process):
16524 * frame.h (struct frame):
16525 * buffer.h (struct buffer):
16526 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
16527 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
16528 The size field of (pseudo)vectors is now unsigned.
16529 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
16530
16531 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
16532 Turn `count' into an integer.
16533
16534 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
16535 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
16536 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
16537 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
16538 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
16539
16540 * alloc.c (allocate_pseudovector): New fun.
16541 (ALLOCATE_PSEUDOVECTOR): New macro.
16542 (allocate_window, allocate_terminal, allocate_frame)
16543 (allocate_process): Use it.
16544 (mark_vectorlike): New function.
16545 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
16546 (mark_terminals): Use it.
16547 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
16548 (Fmake_byte_code): Use XSETPVECTYPE.
16549
16550 * frame.c (Fframe_parameters): Minor simplification.
16551
16552 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
16553
16554 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
16555
16556 * buffer.c (Fget_buffer_create, init_buffer_once):
16557 * lread.c (defsubr):
16558 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
16559
16560 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
16561 defined differently in the m/*.h files.
16562 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
16563 (XSETPVECTYPE): New macro.
16564 (XSETPSEUDOVECTOR): Use it.
16565
16566 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
16567 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
16568
16569 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
16570 * lread.c (defvar_per_buffer):
16571 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
16572
16573 * window.c (candidate_window_p): Only consider as visible frames that
16574 are on the same terminal.
16575
16576 * m/ibms390x.h (MARKBIT): Remove unused macro.
16577
165782007-10-01 Juanma Barranquero <lekktu@gmail.com>
16579
16580 * lread.c (Fload): Fix typo in docstring.
16581
165822007-10-01 Michaël Cadilhac <michael@cadilhac.name>
16583
16584 * floatfns.c (Fexpt): Manually check for overflows, so that a power
16585 of a non-zero value can't yield zero.
16586
165872007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
16588
16589 * term.c (term_clear_mouse_face, term_mouse_highlight)
16590 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
16591
16592 * print.c (safe_debug_print): Use XHASH.
16593
16594 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
16595 Lisp elements such as tags.
16596 (XHASH): New macro.
16597 (EQ): Use it.
16598 (SREF, SSET, STRING_COPYIN): Use SDATA.
16599 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
16600
16601 * alloc.c (mark_terminal): Remove left-over declaration.
16602 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
16603 (allocate_vectorlike): Remove type argument. Adjust callers.
16604 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
16605 Only handle the one remaining MEM_TYPE_VECTORLIKE.
16606
16607 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
16608 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
16609 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
16610 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
16611 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
16612 Use them.
16613
16614 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
16615 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
16616 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
16617
166182007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
16619
16620 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
16621 loaded by default.
16622
166232007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
16624
16625 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
16626 on this tty.
16627 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
16628
16629 * term.c (mouse_face_window): Rename from Qmouse_face_window.
16630 Update all users.
16631 (handle_one_term_event): Use Gpm_DrawPointer.
16632 (Fgpm_mouse_start): Rename from Fterm_open_connection.
16633 Signal errors instead of returning nil. Always return nil.
16634 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
16635 Make it a noop if gpm-mouse was not activated.
16636 (syms_of_term): Update names.
16637
166382007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
16639
16640 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
16641 (init_sys_modes): Check that gpm_tty is the current tty.
16642
16643 * alloc.c (allocate_terminal): Set the vector size to only count the
16644 lisp fields. Initialize those to nil.
16645 (mark_object): Don't treat terminals specially.
16646 (mark_terminal): Remove.
16647 (mark_terminals): Use mark_object instead.
16648
16649 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
16650 the GC to the beginning.
16651
16652 * indent.h:
16653 * indent.c: Use EMACS_INT for ints coming from Elisp data.
16654
16655 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
16656
166572007-09-25 Jason Rumney <jasonr@gnu.org>
16658
16659 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
16660
16661 * w32console.c (create_w32cons_output): Remove.
16662
16663 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
16664
16665 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
16666 (reset_sys_modes): Use reset_terminal_modes_hook.
16667
166682007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
16669
16670 * eval.c (do_autoload): Don't output any message.
16671
166722007-09-24 Juri Linkov <juri@jurta.org>
16673
16674 * emacs.c (standard_args): Change priority of "--no-splash"
16675 from 40 to 3. Add "--no-desktop" with the same priority.
16676
166772007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
16678
16679 * alloc.c (gc_sweep): Check cons cell mark bits word by word
16680 and optimize the case where they are all 1.
16681
166822007-09-23 Johannes Weiner <hannes@saeurebad.de>
16683
16684 * lisp.h (abs): Define if not defined.
16685 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
16686 Don't define `abs', since it's defined in lisp.h.
16687
166882007-09-22 Eli Zaretskii <eliz@gnu.org>
16689
16690 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
16691 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
16692 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
16693 (init_tty): Use DEV_TTY instead of "/dev/tty".
16694 [WINDOWSNT]: No need to protect from NAME arg being null.
16695
166962007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
16697
16698 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
16699 up the tty state.
16700
167012007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
16702
16703 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
16704 (gpm_tty): Change its type.
16705 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
16706 (gpm_tty): Change its type and initialize it.
16707 (Fterm_open_connection): Check the frame is indeed a tty.
16708 Use the new gpm_tty.
16709 (Fterm_close_connection): Use the new gpm_tty.
16710 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
16711 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
16712
167132007-09-21 Juanma Barranquero <lekktu@gmail.com>
16714
16715 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
16716 underline_color, to draw strike-through.
16717
167182007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
16719
16720 * lisp.h (allocate_terminal): Declare.
16721
16722 * window.c (candidate_window_p): Consider frames that are being placed
16723 by the user as somewhere between visible and iconified.
16724 (window_loop): Prefer windows on the current frame.
16725 (Fselect_window): Move the use of select-frame to the beginning so we
16726 can just delegate all the work (it'll call us back anyway).
16727
16728 * frame.c (Qdisplay_environment_variable):
16729 * frame.h (Qdisplay_environment_variable): Delete.
16730
16731 * .gdbinit (xbacktrace): Print the arg's address rather than the value
16732 of the first arg, since that value may be a union.
16733
16734 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
16735 parameter rather than Qdisplay_environment_variable. If all else
16736 fails, look for DISPLAY in initial-environment.
16737
167382007-09-21 Glenn Morris <rgm@gnu.org>
16739
16740 * Makefile.in (emacstool): Remove target.
16741 (lisp, shortlisp): Remove termdev.elc.
16742
167432007-09-21 Markus Triska <markus.triska@gmx.at>
16744
16745 * xterm.c (x_delete_display): Compile session management conditionally.
16746
167472007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
16748
16749 * callproc.c (getenv_internal_1): New function.
16750 (getenv_internal): Use it.
16751 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
16752
16753 * terminal.c (get_terminal): Don't accept ints to represent terminals.
16754 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
16755 (Fset_terminal_parameter): Work with dead terminals as well.
16756 (Fmodify_terminal_parameters): Remove.
16757
16758 * terminal.c (get_terminal): Handle terminals.
16759 Make sure the terminal returned is live.
16760 (create_terminal): Use allocate_terminal.
16761 (mark_terminals): Move to alloc.c.
16762 (delete_terminal): Use terminal->name as liveness status.
16763 NULL out fields after freeing their contents.
16764 Don't deallocate the object.
16765 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
16766 rather than an int.
16767 (Fterminal_live_p): Accept non-integer arguments.
16768 (Fterminal_list): Return terminal objects rather than an ints.
16769
16770 * alloc.c (enum mem_type): New member for `terminal' objects.
16771 (allocate_terminal): New function.
16772 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
16773 Handle terminals.
16774 (mark_terminal): New fun.
16775 (mark_terminals): Move from terminal.c.
16776
16777 * term.c (get_tty_terminal): Don't treat output_initial specially.
16778 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
16779 (delete_tty): Use terminal->name as liveness status.
16780
16781 * termhooks.h (struct terminal): Make it into a pseudovector.
16782 Remove `deleted' replaced by checking `name's nullness.
16783
16784 * print.c (print_object): Handle terminals.
16785
16786 * lisp.h (enum pvec_type): New `terminal' pseudovector.
16787 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
16788
16789 * frame.c (make_terminal_frame):
16790 * keyboard.c (tty_read_avail_input):
16791 * w32term.c (x_delete_terminal):
16792 * xfns.c (Fx_create_frame, x_create_tip_frame):
16793 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
16794
167952007-09-20 Glenn Morris <rgm@gnu.org>
16796
16797 * process.c (Fmake_network_process): Doc fix.
16798
167992007-09-19 Jason Rumney <jasonr@gnu.org>
16800
16801 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
16802
168032007-09-19 Michaël Cadilhac <michael@cadilhac.name>
16804
16805 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
16806 Fix a C warning regarding variable constness.
16807
16808 * xterm.c (handle_one_xevent): Fix a C warning.
16809
168102007-09-18 Jason Rumney <jasonr@gnu.org>
16811
16812 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
16813
168142007-09-17 Jan Djärv <jan.h.d@swipnet.se>
16815
16816 * gtkutil.c (gdpy_def): New variable.
16817 (xg_initialize): Initialize gdpy_def.
16818 (xg_display_close): If no other display exists, set gdpy_def to a
16819 new connection.
16820
168212007-09-16 Jan Djärv <jan.h.d@swipnet.se>
16822
16823 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
16824 when we have no file name for the icon.
16825 (xg_tool_bar_expose_callback): Remove.
16826 (xg_create_tool_bar): Don't connect expose signal to
16827 xg_tool_bar_expose_callback.
16828 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
16829
168302007-09-16 Andreas Schwab <schwab@suse.de>
16831
16832 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
16833 values instead of zapping them.
16834
168352007-09-14 Glenn Morris <rgm@gnu.org>
16836
16837 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
16838 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
16839 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
16840 scope and rename to omfib_buffer for clarity.
16841 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
16842
168432007-09-14 Kenichi Handa <handa@m17n.org>
16844
16845 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
16846
168472007-09-13 Jason Rumney <jasonr@gnu.org>
16848
16849 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
16850
16851 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
16852
16853 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
16854 (mac_term_init): Call here instead, passing rif.
16855
168562007-09-13 Glenn Morris <rgm@gnu.org>
16857
16858 * s/hpux.h: No longer define `static' as nothing.
16859
168602007-09-13 Johan Bockgård <bojohan@gnu.org>
16861
16862 * callint.c (Fcall_interactively): Remove unused var `fun'.
16863
168642007-09-12 Romain Francoise <romain@orebokech.com>
16865
16866 * window.c (prefer_window_split_horizontally, display_buffer):
16867 Revert 2007-09-08 change.
16868
168692007-09-12 Glenn Morris <rgm@gnu.org>
16870
16871 * alloca.c: Remove file.
16872 * Makefile.in (alloca): Do not undef.
16873 (allocaobj, alloca.o): Remove.
16874 (otherobj): Remove allocaobj.
16875 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
16876 * regex.c (C_ALLOCA): Remove all references and code that was only
16877 used when this was defined.
16878 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
16879 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
16880 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
16881
16882 * Makefile.in (SOURCES, unlock, relock): Delete.
16883
16884 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
16885 (menu_grab_callback): All uses changed.
16886
16887 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
16888 (x_reply_selection_request): All uses changed.
16889
168902007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
16891
16892 * lread.c (load_warn_old_style_backquotes): Change message to look
16893 better when it appears in the middle of byte-compiler messages.
16894
168952007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
16896
16897 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
16898
16899 * xterm.c (x_create_terminal): Add comment.
16900
16901 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
16902
169032007-09-10 Richard Stallman <rms@gnu.org>
16904
16905 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
16906
169072007-09-10 Michaël Cadilhac <michael@cadilhac.name>
16908
16909 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
16910 (DEFUN): Document `intspec', use it instead of `prompt'.
16911
16912 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
16913
16914 * data.c (Finteractive_form): If the interactive specification starts
16915 with a `(', use it as a Lisp form.
16916
16917 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
16918 name and file modes.
16919
16920 * callint.c (Fcall_interactively): Comment fixes.
16921
169222007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
16923
16924 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
16925 and compiled functions.
16926
169272007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
16928
16929 * window.c (prefer_window_split_horizontally): New variable.
16930 (display_buffer): Consider splitting window horizontally depending
16931 on prefer_window_split_horizontally.
16932
169332007-09-08 Eli Zaretskii <eliz@gnu.org>
16934
16935 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
16936
169372007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
16938
16939 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
16940
16941 * frame.c (x_set_frame_parameters): Check number is positive before
16942 using XFASTINT.
16943
16944 * window.c (freeze_window_start): Don't presume selected_window holds
16945 a window object.
16946 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
16947
169482007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
16949
16950 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
16951
169522007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
16953
16954 * window.c (Vsplit_window_preferred_function): New var.
16955 (Fdisplay_buffer): Use it.
16956 (syms_of_window): Export, and initialize it.
16957
169582007-09-06 Pixel <pixel@mandriva.com> (tiny change)
16959
16960 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
16961
169622007-09-06 Glenn Morris <rgm@gnu.org>
16963
16964 * gtkutil.c (menu_grab_callback) <cnt>:
16965 * xselect.c (x_reply_selection_request) <cnt>: Move static
16966 variable to file scope.
16967
169682007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
16969
16970 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
16971 consistent values of selected_frame and selected_window.
16972
169732007-09-04 Jason Rumney <jasonr@gnu.org>
16974
16975 * w32console.c (initialize_w32_display): Zero unused hooks.
16976
169772007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
16978
16979 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
16980 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
16981
169822007-09-04 Jason Rumney <jasonr@gnu.org>
16983
16984 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
16985 in w32console.c. Set up input. Remove XXX comments that have been
16986 confirmed as correct.
16987
16988 * s/ms-w32.h (MULTI_KBOARD): Define.
16989
16990 * w32console.c (one_and_only_w32cons): Remove.
16991 (initialize_w32_display): Take terminal argument.
16992
16993 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
16994 initialize_w32_display.
16995 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
16996
16997 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
16998
16999 * keyboard.c (discard_mouse_events): Discard it.
17000 (make_lispy_event): Translate it to a lisp event.
17001 (lispy_wheel_names): Add wheel-left and right events.
17002 (syms_of_keyboard): Enlarge wheel_syms.
17003
17004 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
17005 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
17006
17007 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
17008
17009 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
17010 from WM_MOUSEHWHEEL.
17011 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
17012
17013 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
17014 terminal.
17015
17016 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
17017 keyboard for the terminal.
17018
170192007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
17020
17021 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
17022 (Vresume_tty_hook): Rename from Vresume_tty_functions.
17023 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
17024 and resume-tty-function to resume-tty-hook.
17025 (Fsuspend_tty, Fresume_tty): Use new names.
17026
170272007-09-02 Jan Djärv <jan.h.d@swipnet.se>
17028
17029 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
17030 if it starts with "n:".
17031
170322007-08-31 Jan Djärv <jan.h.d@swipnet.se>
17033
17034 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
17035
170362007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
17037
17038 * frame.h:
17039 * frame.c (Qterm_environment_variable): Remove.
17040 (syms_of_frame): Don't init and staticpro it.
17041
17042 * callproc.c (getenv_internal): Remove special case for $TERM.
17043
17044 * callproc.c (Vinitial_environment): New variable.
17045 (set_initial_environment): Initialize it.
17046 (syms_of_callproc): Declare it.
17047 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
17048 TERM under which a process runs is never related to the TERM in which
17049 Emacs is running.
17050
170512007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
17052
17053 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
17054 * s/darwin.h: ... do it here.
17055
170562007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
17057
17058 * lisp.h (set_initial_environment): Rename from set_global_environment.
17059
17060 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
17061 removed by mistake on the multi-tty branch.
17062
17063 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
17064 (Fmodify_frame_parameters): Return a value.
17065
17066 * image.c (png_load): Comment-out var only used in commented-out code.
17067
17068 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
17069 before passing it to mark_object.
17070
17071 * xfaces.c (internal_resolve_face_name): Return a value.
17072 (internal_resolve_face_name, resolve_face_name_error): Comment out.
17073
17074 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
17075 (x_icon): Comment-out var only used in commented-out code.
17076
170772007-08-29 Romain Francoise <romain@orebokech.com>
17078
17079 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
17080 QUIT hasn't been provided.
17081
170822007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
17083
17084 * callproc.c (child_setup, getenv_internal): Use the
17085 display-environment-variable and term-environment-variable frame params.
17086 (set_initial_environment): Initialise Vprocess_environment.
17087
17088 * config.in: Disable multi-keyboard support on a mac.
17089
17090 * frame.c (Qterm_environment_variable)
17091 (Qdisplay_environment_variable): New variables.
17092 (syms_of_frame): Intern and staticpro them.
17093 (Fmake_terminal_frame): Disable output method test.
17094
17095 * frame.h: Declare them here.
17096
17097 * macfns.c (x_set_mouse_color): Get rif from the frame.
17098 (x_set_tool_bar_lines): Don't use updating_frame.
17099 (mac_window): Add 2 new parameters for consistency with other systems.
17100 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
17101 frame parameters following what is done in X11 and w32. Don't use
17102 FRAME_MAC_DISPLAY_INFO.
17103 (Fx_open_connection, start_hourglass): Remove window-system check.
17104 (x_create_tip_frame): Get the keyboard from the terminal.
17105
17106 * macmenu.c: Reorder includes.
17107 (Fx_popup_menu): Use terminal specific mouse_position_hook.
17108
17109 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
17110 terminal parameter.
17111 (x_clear_frame): Add a frame parameter.
17112 (note_mouse_movement): Get rif from the frame.
17113 (mac_term_init): Initialize the terminal.
17114 (mac_initialize): Make static and move terminal initialization ...
17115 (mac_create_terminal): ... to this new function.
17116
17117 * macterm.h (struct mac_display_info): Add terminal.
17118 (mac_initialize): Delete declaration.
17119
17120 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
17121
17122 * sysdep.c: Comment out text after #endif.
17123
17124 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
17125 is defined. Better initialize ttys in windows. Use terminal
17126 specific mouse_position_hook.
17127
17128 * termhooks.h (union display_info): Add mac_display_info.
17129
17130 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
17131 Set the default minibuffer frame, window_system and the rest of the
17132 frame parameters following what is done in X11.
17133
17134 * w32term.c (w32_initialize): Make static.
17135
17136 * xselect.c (x_handle_selection_clear): Only access
17137 terminal->kboard when MULTI_KBOARD is defined.
17138
17139 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
17140 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
17141
171422007-08-29 Jason Rumney <jasonr@gnu.org>
17143
17144 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
17145 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
17146
17147 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
17148 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
17149
17150 * keyboard.c (restore_kboard_configuration): Only define when
17151 MULTI_KBOARD defined.
17152
17153 * makefile.w32-in: Update dependancies from Makefile.in.
17154 (OBJ1): Add terminal.$(O)
17155
17156 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
17157 Don't define function body.
17158 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
17159
17160 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
17161
17162 * w32.c (request_sigio, unrequest_sigio): Remove.
17163
17164 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
17165 (w32con_clear_frame, w32con_clear_end_of_line)
17166 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
17167 (w32con_delete_glyphs, w32con_set_terminal_window)
17168 (scroll_line, w32_sys_ring_bell): Add frame arg.
17169 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
17170 Add terminal arg.
17171 (PICK_FRAME): Remove.
17172 (w32con_write_glyphs): Use frame specific terminal coding.
17173 (one_and_only_w32cons): New global variable.
17174 (initialize_w32_display): Use it for storing hooks.
17175 (create_w32cons_output): New function.
17176
17177 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
17178 arg a frame.
17179
17180 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
17181 Set window_system.
17182 (x_set_tool_bar_lines): Don't use updating_frame.
17183 (Fx_create_frame): Set terminal and ref count.
17184 (Fx_open_connection): Remove window-system check.
17185
17186 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
17187
17188 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
17189 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
17190 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
17191 Add frame arg.
17192 (x_delete_terminal, w32_create_terminal): New functions.
17193 (w32_term_init): Create a terminal.
17194 (w32_initialize): Move terminal specific initialization to
17195 w32_create_terminal.
17196
17197 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
17198 (w32_clear_rect, w32_clear_area): Use background from frame.
17199 (w32_display_info): Add terminal.
17200 (w32_sys_ring_bell, x_delete_display): Declare here.
17201
17202 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
17203
17204 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
17205
172062007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
17207
17208 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
17209 Fix get_named_tty calls for the controlling tty.
17210
172112007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
17212
17213 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
17214
172152007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
17216
17217 * term.c (tty_insert_glyphs): Add missing first parameter.
17218
172192007-08-29 Károly Lőrentey <karoly@lorentey.hu>
17220
17221 * buffer.c (Fbuffer_list, Fbury_buffer):
17222 Take frame->buried_buffer_list into account.
17223
17224 * cm.c (current_tty): New variable, for cmputc().
17225 (cmputc): Use it.
17226 (cmcheckmagic): Add tty parameter, look up terminal streams there.
17227 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
17228 (cmgoto): Add tty parameter. Pass it on to calccost().
17229 Use emacs_tputs() instead of tputs().
17230
17231 * cm.h (emacs_tputs): New macro to set current_tty, and then call
17232 tputs().
17233 (current_tty): New variable, for cmputc().
17234 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
17235
17236 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
17237 (internal_condition_case, internal_condition_case_1)
17238 (internal_condition_case_2): Don't abort when x_catching_errors.
17239
17240 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
17241 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
17242 prevent crashes caused by bogus longjmps in read_char.
17243
17244 * keymap.h (Fset_keymap_parent): Add EXFUN.
17245
17246 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
17247 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
17248 Remove redundant definition.
17249
17250 * macfns.c (x_set_mouse_color, x_make_gc):
17251 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
17252
17253 * w32term.c (x_free_frame_resources):
17254 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
17255 (w32_initialize): Use the accessor macros for terminal characteristics.
17256
17257 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
17258 Use the accessor macros for terminal characteristics.
17259 * msdos.c (internal_terminal_init): Use the accessor macros for
17260 terminal characteristics.
17261 (ScreenVisualBell, internal_terminal_init):
17262 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
17263
17264 * termopts.h (no_redraw_on_reenter): Declare.
17265
17266 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
17267 (mark_terminals, mark_ttys): Declare.
17268 (Fgarbage_collect): Call them.
17269 (mark_object): Mark buried_buffer_list.
17270
17271 * prefix-args.c: Include stdlib.h for exit.
17272
17273 * syssignal.h: Add comment.
17274
17275 * indent.c: Include stdio.h.
17276
17277 * window.h (Vinitial_window_system): Declare.
17278 (Vwindow_system): Delete declaration.
17279
17280 * fontset.c (Finternal_char_font): Use FRAME_RIF.
17281
17282 * image.c (lookup_image): Don't initialize `c' until the xasserts
17283 have been run.
17284
17285 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
17286 FRAME_FOREGROUND_PIXEL.
17287
17288 * print.c (print_preprocess): Don't lose print_depth levels while
17289 iterating.
17290
17291 * widget.c (update_from_various_frame_slots):
17292 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
17293
17294 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
17295 frames.
17296 (window_internal_height): Remove bogus make_number call.
17297 (init_window_once): Call make_terminal_frame with two zero parameters.
17298
17299 * fileio.c (Fread_file_name): Update comment.
17300
17301 * callint.c (Fcall_interactively):
17302 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
17303 Make sure it is correctly unwound.
17304
17305 * xsmfns.c (x_session_close): New function.
17306
17307 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
17308 Delete declarations.
17309
17310 * xterm.h: Remove declaration for x_fully_uncatch_errors.
17311 (x_output): Remove background_pixel and foreground_pixel fields.
17312 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
17313 (x_delete_device, x_session_close): Declare.
17314
17315 * lread.c: Include setjmp.h. Update declaration of `read_char'.
17316 (read_filtered_event): Call `read_char' with a local
17317 `wrong_kboard_jmpbuf'.
17318
17319 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
17320 Don't call single_kboard_state. Use FRAME_RIF.
17321
17322 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
17323 systems.
17324
17325 * lisp.h (set_process_environment): Rename to `set_global_environment'.
17326 (Fframe_with_environment, Fset_input_meta_mode)
17327 (Fset_quit_char): EXFUN.
17328 (x_create_device, tty_output, terminal, tty_display_info): Declare.
17329 (init_sys_modes, reset_sys_modes): Update prototypes.
17330 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
17331
17332 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
17333 Vlocal_key_translation_map, and Vkeyboard_translate_table.
17334 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
17335 Delete declarations.
17336 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
17337 (temporarily_switch_to_single_kboard, tty_read_avail_input):
17338 New declarations.
17339
17340 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
17341 already does that during init_display(). Call syms_of_keymap
17342 before syms_of_keyboard. Call `syms_of_terminal'.
17343 Call set_initial_environment, not set_process_environment.
17344 (shut_down_emacs): Call reset_all_sys_modes() instead of
17345 reset_sys_modes().
17346
17347 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
17348 (internal_resolve_face_name, resolve_face_name_error): New functions.
17349 (resolve_face_name): Protect against loops and errors thrown by Fget.
17350 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
17351 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
17352
17353 * scroll.c: Replace CURTTY() with local variables throughout the
17354 file (where applicable).
17355 (calculate_scrolling, calculate_direct_scrolling)
17356 (scrolling_1, scroll_cost): Use the accessor macros for terminal
17357 characteristics.
17358
17359 * keymap.c (Vfunction_key_map): Remove.
17360 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
17361 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
17362 (Vkey_translation_map): Remove.
17363 (syms_of_keymap): Remove DEFVAR for key-translation-map.
17364 (Fdescribe_buffer_bindings)
17365 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
17366 Update for terminal-local key-translation-map.
17367
17368 * Makefile.in (callproc.o): Update dependencies.
17369 (lisp, shortlisp): Add termdev.elc.
17370 (obj): Add terminal.o.
17371 (terminal.o): Add dependencies.
17372 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
17373 (data.o, fns.o): Add termhooks.h dependency.
17374 (SOME_MACHINE_LISP): Add dnd.elc.
17375 (minibuf.o): Fix typo.
17376 Update dependencies.
17377
17378 * data.c (do_symval_forwarding, store_symval_forwarding)
17379 (find_symbol_value): Use the selected frame's keyboard, not
17380 current_kboard.
17381
17382 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
17383 Vwindow_system.
17384
17385 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
17386 Fmenu_bar_open.
17387 (syms_of_xmenu): Update defsubr.
17388 (mouse_position_for_popup, Fx_popup_menu)
17389 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
17390 (set_frame_menubar, free_frame_menubar)
b97439ce 17391 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
17392 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
17393 an X frame.
17394
17395 * xselect.c (x_own_selection): Abort if not an X frame.
17396 (some_frame_on_display): Check if it is an X frame.
17397 (x_handle_selection_clear): Deal with MULTI_KBOARD.
17398
17399 * coding.c: Include frame.h and termhooks.h.
17400 (terminal_coding, keyboard_coding): Delete.
17401 (Fset_terminal_coding_system_internal)
17402 (Fset_keyboard_coding_system_internal)
17403 (Fkeyboard_coding_system)
17404 (Fterminal_coding_system): Add a terminal parameter.
17405 Get terminal_coding from the terminal.
17406 (init_coding_once): Don't call setup_coding_system here.
17407
17408 * dispextern.h (set_scroll_region, turn_off_insert)
17409 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
17410 (tty_clear_end_of_line, tty_setup_colors)
17411 (delete_tty, updating_frame)
17412 (produce_special_glyphs, produce_glyphs, write_glyphs)
17413 (insert_glyphs): Remove.
17414 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
17415 (tty_turn_off_highlight, get_tty_size): Add declaration.
17416 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
17417
17418 * frame.h (enum output_method): Add output_initial.
17419 (struct x_output): Delete.
17420 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
17421 Access foreground_pixel and background_pixel directly from the frame.
17422 (tty_display): Delete.
17423 (struct frame): Add buried_buffer_list, foreground_pixel,
17424 background_pixel and terminal. Delete kboard.
17425 (union output_data): Add tty.
17426 (FRAME_KBOARD): Get the kboard from the terminal.
17427 (FRAME_INITIAL_P): New macro.
17428 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
17429 (Qterm_environment_variable, Qdisplay_environment_variable)
17430 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
17431 New declarations.
17432
17433 * termchar.h (tty_output, tty_display_info): New structures.
17434 (tty_list): Declare.
17435 (FRAME_TTY, CURTTY): New macros.
17436 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
17437 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
17438 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
17439 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
17440
17441 * callproc.c: Include frame.h and termhooks.h, for terminal
17442 parameters.
17443 (add_env): New function.
17444 (child_setup): Use it.
17445 (child_setup, getenv_internal): Handle the new Vprocess_environment.
17446 (getenv_internal): Fix get_terminal_param call.
17447 (Fgetenv_internal, egetenv): Update doc.
17448 (syms_of_callproc): Initialize Vprocess_environment to nil.
17449 Register and initialize them. Remove obsolete defvars. Update doc
17450 strings.
17451 (child_setup): Handle Vlocal_environment_variables.
17452 (getenv_internal): Add terminal parameter.
17453 Handle Vlocal_environment_variables.
17454 (Fgetenv_internal): Add terminal parameter.
17455 (child_setup, getenv_internal, Fgetenv_internal): Store the local
17456 environment in a frame (not terminal) parameter. Update doc strings.
17457 (set_initial_environment): Rename from set_global_environment.
17458 Store Emacs environment in initial frame parameter.
17459
17460 * xdisp.c (redisplay_internal): Update references to
17461 `previous_terminal_frame'.
17462 (display_mode_line, Fformat_mode_line): Replace calls to
17463 `push_frame_kboard' with `push_kboard'.
17464 (get_glyph_string_clip_rects): Add extra parentheses and
17465 braces to prevent compiler warnings.
17466 (calc_pixel_width_or_height): Add xassert to check that the
17467 frame is alive. Don't call `lookup_image' on a termcap frame.
17468 (message2_nolog, message3_nolog, redisplay_internal)
17469 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
17470 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
17471 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
17472 (Fx_display_pixel_width, Fx_display_pixel_height)
17473 (Fx_display_planes, Fx_display_color_cells)
17474 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
17475 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
17476 (Fx_display_backing_store, Fx_display_visual_class)
17477 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
17478 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
17479
17480 * xfns.c (x_set_foreground_color x_set_background_color)
17481 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
17482 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
17483 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
17484 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
17485 terminal that is being deleted.
17486 (Fx_create_frame): Use `store_frame_param' to set `window-system'
17487 frame parameter, and make sure it overrides any user-supplied setting.
17488 (Fx_close_connection, Fx_synchronize): Unify argument names with
17489 the rest of the DEFUNs.
17490
17491 * dispnew.c (Fsend_string_to_terminal): Update call to
17492 `get_tty_terminal'.
17493 (Fredraw_frame, Fsend_string_to_terminal)
17494 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
17495 FRAME_TERMCAP_P and FRAME_TTY.
17496 (window_change_signal): Don't believe width/height values that are
17497 impossibly small.
17498 (Vinitial_window_system): Rename from Vwindow_system.
17499 (termscript, Wcm, rif): Delete.
17500
17501 * termhooks.h (struct terminal): New struct containing the
17502 previously global text display hooks and new members NAME,
17503 DELETED and PARAM_ALIST.
17504 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
17505 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
17506 (FRAME_RIF): New macros.
17507 (get_terminal_param, get_device): New declarations.
17508 (termscript): Delete declaration.
17509
17510 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
17511 (XTflash, x_free_frame_resources, x_scroll_bar_create)
17512 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
17513 FRAME_FOREGROUND_PIXEL.
17514 (x_fully_uncatch_errors): Disable definition.
17515 (x_scroll_bar_expose): Fix reference to foreground pixel.
17516 (XTread_socket): Disable loop on all X displays.
17517 (x_delete_terminal): Don't set terminal->deleted and let
17518 delete_terminal delete the frames on the terminal.
17519 (x_delete_display): Doc update to reflect changes in
17520 delete_terminal.
17521 (x_display_info) <terminal>: Move member earlier in the struct.
17522 (deleting_tty): Remove old variable.
17523 (Fsuspend_tty): Call clear_tty_hooks.
17524 (Fresume_tty, init_tty): Call set_tty_hooks.
17525 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
17526 errors on X frames.
17527 (x_catch_errors_unwind): Abort if x_error_message is NULL.
17528 (handle_one_xevent): Initialize `f' to NULL.
17529 (x_delete_terminal, x_create_terminal): New functions.
17530 (XTset_terminal_modes, XTreset_terminal_modes)
17531 (XTread_socket, x_connection_closed, x_term_init)
17532 (x_term_init, x_delete_display): Add terminal parameter.
17533 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
17534 X connections.
17535
17536 * frame.c: Include termchar.h.
17537 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
17538 (Qwindow_system, Qenvironment, Qterm_environment_variable)
17539 (Qdisplay_environment_variable): New vars.
17540 (Fframep): Deal with output_initial.
17541 (Fframe-live-p): Doc fix.
17542 (Fwindow-system): New function.
17543 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
17544 (make_terminal_frame): Don't create frames on a terminal that is
17545 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
17546 (store_frame_param): Check for found_for_frame before calling XFRAME.
17547 (Fmake_terminal_frame): Handle NULL tty names correctly.
17548 (syms_of_frame): Enhance doc string of `default-frame-alist'.
17549 (Fdelete_frame): Remove unused variable `count'. Don't allow other
17550 frames to refer to a deleted frame in their 'environment parameter.
17551 (Fframe_with_environment): New function.
17552 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
17553 (get_future_frame_param): New function.
17554 (Fmake_terminal_frame): Use it.
17555 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
17556
17557 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
17558 * sysdep.c (reset_sys_modes): Update for renames.
17559
17560 * keyboard.c (tty_read_avail_input): New function.
17561 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
17562 (syms_of_keyboard): Defsubr them.
17563 (Fset_input_meta_mode, Fset_quit_char): New functions.
17564 (Fset_input_mode): Split to above functions.
17565 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
17566 parameter. Use it in call to `read_char'.
17567 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
17568 Set wrong_kboard_jmpbuf correctly in recursive calls.
17569 Use current_kboard to access Vkeyboard_translate_table.
17570 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
17571 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
17572 Update longjmp invocations. Remember the original current_kboard,
17573 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
17574 changes it. Comment out unnecessary calls to
17575 `record_single_kboard_state' and `any_kboard_state'.
17576 Update recursive calls.
17577 (wrong_kboard_jmpbuf): Remove global variable.
17578 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
17579 Handle deleted interrupted_kboards correctly; that is a legal
17580 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
17581 and read_char calls. Abort if interrupted_kboard died in read_char.
17582 (any_kboard_state, single_kboard_state)
17583 (push_frame_kboard): Remove function.
17584 (pop_kboard): Switch out of single_kboard mode if the kboard has
17585 been deleted. Remove unused variable. Help debugging by not
17586 changing current_kboard unnecessarily. Set current_kboard to the
17587 kboard of the selected frame when the stored kboard object has
17588 been deleted before pop_kboard.
17589 (temporarily_switch_to_single_kboard): Change first parameter to a
17590 frame pointer. Throw an error when caller wants to change kboards
17591 while in single_kboard mode. Don't push_kboard if we weren't in
17592 single kboard state. Don't pop_kboard if we popped into any
17593 kboard state.
17594 (restore_kboard_configuration): Abort if pop_kboard changed the
17595 kboard in single_kboard mode. Call pop_kboard only after setting
17596 up single_kboard mode.
17597 (Frecursive_edit): Switch to single_kboard mode only in nested
17598 command loops.
17599 (cmd_error, command_loop, command_loop_1, timer_check):
17600 Comment out unnecessary call to `any_kboard_state' and
17601 `record_single_kboard_state'.
17602 (delete_kboard): Exit single_kboard mode if we have just deleted
17603 that kboard. Use FRAME_KBOARD.
17604 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
17605 `fatal_error_signal'.
17606 (record_single_kboard_state): Don't push_kboard if we weren't in
17607 single kboard state. Don't pop_kboard if we popped into any
17608 kboard state.
17609 (push_frame_kboard): Rename to push_kboard.
17610 (kbd_buffer_get_event): Use FRAME_TERMINAL.
17611 (read_avail_input): Read input from all terminals.
17612 (mark_kboards): Also mark Vkeyboard_translate_table.
17613 (kbd_buffer_store_event_hold): Simplify condition.
17614 (read_key_sequence): Reinitialize fkey and keytran at each replay.
17615 (Vkeyboard_translate_table): Move to struct kboard.
17616 (init_kboard): Initialize Vkeyboard_translate_table.
17617 (syms_of_keyboard): Use DEFVAR_KBOARD to define
17618 Vkeyboard_translate_table. Update doc strings. Update docs of
17619 local-function-key-map and function-key-map.
17620
17621 * terminal.c: New file.
17622
17623 * term.c: Include errno.h.
17624 (Vring_bell_function, device_list, initial_device)
17625 (next_device_id, ring_bell, update_begin, update_end)
17626 (set_terminal_window, cursor_to, raw_cursor_to)
17627 (clear_to_end, clear_frame, clear_end_of_line)
17628 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
17629 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
17630 (syms_of_term): Move their initialization to terminal.c.
17631 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
17632 (Ftty_display_color_cells)
17633 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
17634 (clear_tty_hooks, set_tty_hooks)
17635 (init_tty, maybe_fatal): New functions.
17636 (Ftty_type): Return nil if terminal is not on a tty instead of
17637 throwing an error. Doc update.
17638 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
17639 Doc update. Initialize new subrs and variables.
17640 (delete_tty): Use terminal->deleted.
17641 (tty_set_terminal_modes): Rename from set_terminal_modes.
17642 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
17643 (set_scroll_region): Rename to `tty_set_scroll_region'.
17644 (turn_on_insert): Rename to `tty_turn_on_insert'.
17645 (turn_off_insert): Rename to `tty_turn_off_insert'.
17646 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
17647 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
17648 (toggle_highligh): Rename to `tty_toggle_highlight'.
17649 (background_highlight): Rename to `tty_background_highlight'.
17650 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
17651 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
17652 (tty_set_scroll_region, tty_background_highlight)
17653 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
17654 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
17655 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
17656 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
17657 Add static modifier.
17658 (tty_reset_terminal_modes, tty_set_terminal_window)
17659 (tty_set_scroll_region, tty_background_highlight)
17660 (tty_highlight_if_desired, tty_cursor_to)
17661 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
17662 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
17663 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
17664 renames.
17665
176662007-08-28 Jan Djärv <jan.h.d@swipnet.se>
17667
17668 * keyboard.c: Qrtl is new.
17669 (parse_tool_bar_item): Handle :rtl keyword.
17670 (syms_of_keyboard): Intern :rtl keyword.
17671
17672 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
17673
17674 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
17675 so no Lisp code is executed.
17676 (file_for_image, find_rtl_image): New functions.
17677 (xg_get_image_for_pixmap): Use file_for_image.
17678 (update_frame_tool_bar): If direction is RTL, use RTL image if
17679 defined. Use Gtk stock images if defined.
17680
176812007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17682
17683 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
17684 for nonexistent or zero-width glyph in composition glyph.
17685
176862007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
17687
17688 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
17689
17690 * xdisp.c (Finvisible_p): New function.
17691 (syms_of_xdisp): defsubr it.
17692
176932007-08-24 Juanma Barranquero <lekktu@gmail.com>
17694
17695 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
17696 Doc fixes.
17697
176982007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17699
17700 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
17701
177022007-08-24 Martin Rudalics <rudalics@gmx.at>
17703
17704 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
17705 whether decoding has modified buffer contents.
17706
177072007-08-24 Jason Rumney <jasonr@gnu.org>
17708
17709 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
17710 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
17711 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
17712 (init_svg_functions) [HAVE_NTGUI]: New function.
17713 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
17714 (svg_load_image): Use them.
17715 (svg_load_image) [HAVE_NTGUI]: Implement background.
17716
177172007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17718
17719 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
17720 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
17721 (LIBX): Remove @RSVG_LIBS@.
17722 (LIBES): Add $(RSVG_LIBS).
17723
17724 * image.c (svg_load_image): Blend with specified background if exists.
17725 Use IMAGE_BACKGROUND. Add Mac OS Support.
17726
17727 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
17728 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
17729 Remove macros.
17730 [MAC_OSX] (socket_callback): Do nothing.
17731 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
17732 ReceiveNextEvent.
17733 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
17734 socket_callback.
17735 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
17736
177372007-08-22 Glenn Morris <rgm@gnu.org>
17738
17739 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
17740
177412007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
17742
17743 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
17744
17745 * image.c: Add support for SVG images. Some additional comments
17746 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
17747 (svg_image_p): New function to test for SVG image.
17748 (svg_load): New function to load SVG image.
17749 (svg_load_image): New function, helper for svg_load.
17750 (Qsvg): New Lisp_object.
17751 (svg_keyword_index): New enum.
17752 (svg_format): New static `image_keyword' struct.
17753 (svg_type): New static `image_type' struct.
17754 (librsvg/rsvg.h): Include it.
17755
177562007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
17757
17758 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
17759
177602007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
17761
17762 * lread.c (Qold_style_backquotes): New var.
17763 (syms_of_lread): Init and staticpro it.
17764 (load_warn_old_style_backquotes): New fun.
17765 (Fload): Use them to warn about old style backquotes.
17766 (end_of_file_error, Fload): Remove unused vars.
17767
17768 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
17769
17770 * lread.c (Vold_style_backquotes): New var.
17771 (syms_of_lread): Init and export it to Elisp.
17772 (read1): Set it when we find an old-style (back)quote.
17773
177742007-08-22 Jason Rumney <jasonr@gnu.org>
17775
17776 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
17777
177782007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
17779
17780 * puresize.h (BASE_PURESIZE): Increase to 1140000.
17781
177822007-08-19 Richard Stallman <rms@gnu.org>
17783
17784 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
17785
177862007-08-19 Andreas Schwab <schwab@suse.de>
17787
17788 * alloc.c (pure): Round PURESIZE up.
17789
177902007-08-17 Jan Djärv <jan.h.d@swipnet.se>
17791
17792 * xterm.c (handle_one_xevent): Remove check that mouse click is in
17793 active frame.
17794
177952007-08-16 Richard Stallman <rms@gnu.org>
17796
17797 * eval.c (Fcommandp): Add parens to clarify.
17798
17799 * minibuf.c (Fall_completions): Use enum for type of table.
17800
17801 * emacs.c (USAGE2): Improve text.
17802
178032007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
17804
17805 * term.c (tty_default_color_capabilities): Declare static
17806 variables in file scope, to avoid HPUX compiler problem.
17807
178082007-08-13 Jan Djärv <jan.h.d@swipnet.se>
17809
17810 * gtkutil.c (update_frame_tool_bar): Use -1 as index
17811 to gtk_toolbar_insert.
17812
178132007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
17814
17815 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
17816
17817 * insdel.c (reset_var_on_error): New fun.
17818 (signal_before_change, signal_after_change):
17819 Use it to reset (after|before)-change-functions to nil in case of error.
17820 Bind inhibit-modification-hooks to t.
17821 Don't bind (after|before)-change-functions to nil while they run.
17822
178232007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17824
17825 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
17826 filling pixmap with stippled background.
17827
178282007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17829
17830 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
17831 Don't use invisible frame as parent window for repositioning.
17832
178332007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
17834
17835 * print.c (new_backquote_output): Rename from old_backquote_output.
17836 (print): Inverse its logic (according to its name) so as to match the
17837 behavior of new_backquote_flag in lread.c.
17838
178392007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17840
17841 * gmalloc.c (posix_memalign): New function.
17842
17843 * macterm.c (frame_highlight, frame_unhighlight): Don't call
17844 ActivateControl/DeactivateControl here.
17845 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
17846 frame-notice-user-settings is non-nil.
17847 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
17848 for kEventParamFMFontStyle.
17849 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
17850 mac_pass_command_to_system and mac_pass_control_to_system here.
17851 (XTread_socket): Call ActivateControl/DeactivateControl here.
17852 (XTread_socket) [TARGET_API_MAC_CARBON]:
17853 Check mac_pass_command_to_system and mac_pass_control_to_system here.
17854 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
17855 for window repositioning.
17856
178572007-08-08 Glenn Morris <rgm@gnu.org>
17858
17859 * Replace `iff' in doc-strings and comments.
17860
178612007-08-07 Chong Yidong <cyd@stupidchicken.com>
17862
17863 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
17864
178652007-08-07 Martin Rudalics <rudalics@gmx.at>
17866
17867 * fileio.c (Finsert_file_contents): Run format-decode and
17868 after_insert_file_functions on entire buffer when REPLACE is
17869 non-nil and inhibit modification_hooks and point_motion_hooks.
17870 For consistency, run after_insert_file_functions iff something
17871 got inserted. Move signal_after_change and update_compositions
17872 after code running after_insert_file_functions. Make sure that
17873 undo_list doesn't record intermediate steps of the decoding process.
17874
178752007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17876
17877 * emacs.c (main)
17878 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
17879 Call malloc_enable_thread on interactive startup.
17880
17881 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
17882 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
17883 [USE_PTHREAD]: Conditionalize with it.
17884 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
17885 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
17886 New functions.
17887
178882007-08-06 Chong Yidong <cyd@stupidchicken.com>
17889
17890 * xdisp.c (redisplay_window): When restoring original buffer
17891 position, make sure it is still valid.
17892
17893 * image.c (png_load): Ignore png-supplied background color.
17894
178952007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17896
17897 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
17898 Use kCFAbsoluteTimeIntervalSince1970.
17899
17900 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
17901 New variable.
17902 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
17903 event loop should be quit.
17904 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
17905 Quit dialog event loop if quit_dialog_event_loop is set.
17906
17907 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
17908 (Selection): New typedef. Use instead of ScrapRef.
17909 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
17910 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
17911 (mac_clear_selection): Rename from clear_scrap.
17912 (get_flavor_type_from_symbol): New argument SEL and subsume function of
17913 scrap_has_target_type. All uses changed.
17914 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
17915 (mac_selection_has_target_p): New functions.
17916 (mac_put_selection_value): Rename from put_scrap_string.
17917 (mac_get_selection_value): Rename from get_scrap_string.
17918 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
17919 (put_scrap_private_timestamp, scrap_has_target_type)
17920 (get_scrap_private_timestamp): Remove functions.
17921 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
17922 (x_own_selection, x_get_local_selection):
17923 Use mac_valid_selection_value_p.
17924 (x_own_selection): Don't use put_scrap_private_timestamp.
17925 Record OWNERSHIP-INFO into Vselection_alist instead.
17926 (x_get_local_selection): Don't check type if request is local.
17927 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
17928 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
17929
179302007-08-04 Jan Djärv <jan.h.d@swipnet.se>
17931
17932 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
17933 add comment explaining why.
17934
179352007-08-03 Richard Stallman <rms@gnu.org>
17936
17937 * fileio.c (Fvisited_file_modtime): Use make_time.
17938
179392007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
17940
17941 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
17942 build.
17943
179442007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
17945
17946 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
17947
179482007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
17949
17950 * puresize.h (BASE_PURESIZE): Increase to 1130000.
17951
179522007-07-30 Richard Stallman <rms@gnu.org>
17953
17954 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
17955
179562007-07-29 Jan Djärv <jan.h.d@swipnet.se>
17957
17958 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
17959
179602007-07-28 Nick Roberts <nickrob@snap.net.nz>
17961
17962 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
17963 remote default-directory.
17964
17965 * buffer.c (mode-line-format): Update doc string.
17966
179672007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17968
17969 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
17970 scroll bar gap.
17971 (x_scroll_bar_create): Set bar->fringe_extended_p.
17972 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
17973 on frame edge. Check fringe background extension. Don't clear
17974 extended fringe background area.
17975
17976 * w32term.h (struct scroll_bar): New member fringe_extended_p.
17977 (w32_fill_area): Enclose multiple statements with do ... while (0).
17978
17979 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
17980 Extend fringe background to scroll bar gap.
17981 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
17982 Set bar->fringe_extended_p.
17983 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
17984 Put leftmost/rightmost scroll bars on frame edge. Check fringe
17985 background extension. Don't clear extended fringe background area.
17986
17987 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
17988 New member fringe_extended_p.
17989
179902007-07-25 Glenn Morris <rgm@gnu.org>
17991
17992 * Relicense all FSF files to GPLv3 or later.
17993
17994 * COPYING: Switch to GPLv3.
17995
179962007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
17997
17998 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
17999
18000 * data.c (Finteractive_form): Check for the presence of an
18001 `interactive-form' symbol property more thoroughly.
18002
18003 * data.c (Finteractive_form): Use an `interactive-form' property if
18004 present, analogous to the function-documentation property.
18005
180062007-07-24 Jason Rumney <jasonr@gnu.org>
18007
18008 * w32fns.c (x_real_positions): Get real position from OS instead of
18009 calculating it.
18010
180112007-07-23 Jason Rumney <jasonr@gnu.org>
18012
18013 * filelock.c (current_lock_owner): Allow for @ sign in username.
18014
180152007-07-22 Nick Roberts <nickrob@snap.net.nz>
18016
18017 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
18018 remote default-directory.
18019
18020 * buffer.c (mode-line-format): Describe above case in doc string.
18021
180222007-07-20 Eli Zaretskii <eliz@gnu.org>
18023
18024 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
18025 Define if not defined.
18026
180272007-07-18 Jason Rumney <jasonr@gnu.org>
18028
18029 * w32proc.c (w32_executable_type): Handle 64 bit executables.
18030
180312007-07-18 Richard Stallman <rms@gnu.org>
18032
18033 * data.c (Fsetq_default): Doc fix.
18034
18035 * eval.c (Fsetq): Doc fix.
18036
180372007-07-18 Juanma Barranquero <lekktu@gmail.com>
18038
18039 * coding.c (Ffind_operation_coding_system):
18040 * eval.c (For, Fand): Doc fixes.
18041 Reported by Johan Bockgård.
18042
180432007-07-18 Jan Djärv <jan.h.d@swipnet.se>
18044
18045 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
18046
18047 * xterm.h: Declare x_ewmh_activate_frame.
18048
18049 * xterm.c (x_ewmh_activate_frame): New function.
18050 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
18051
180522007-07-17 Martin Rudalics <rudalics@gmx.at>
18053
18054 * window.c (Fdisplay_buffer): If largest or LRU window is the
18055 only window, split it even if it is not eligible for splitting.
18056 This restores the original behavior broken by the 2007-07-15
18057 change.
18058
180592007-07-17 Glenn Morris <rgm@gnu.org>
18060
18061 * abbrev.c (abbrev_check_chars): New function.
18062 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
18063 Call abbrev_check_chars to check abbrev characters are word
18064 constituents. Doc fix.
18065
180662007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
18067
18068 * process.c (Fstart_process, Fmake_network_process)
18069 (read_process_output): Fix up last changes.
18070
180712007-07-16 Eli Zaretskii <eliz@gnu.org>
18072
18073 * makefile.w32-in (clean): Don't delete *~.
18074
180752007-07-16 Andreas Schwab <schwab@suse.de>
18076
18077 * window.c (Fdisplay_buffer): Use NILP.
18078 (Fset_window_scroll_bars): Likewise.
18079
180802007-07-15 Martin Rudalics <rudalics@gmx.at>
18081
18082 * window.c (window_min_size_2): New function.
18083 (window_min_size_1, size_window, Fdisplay_buffer)
18084 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
18085 windows without mode- or header-lines when window-min-height is
18086 too small.
18087 (size_window): Reset nodelete_p after testing it, following an
18088 earlier note by Kim F. Storm.
18089 (display_buffer): Do not set split_height_threshold to twice the
18090 value of window_min_height to avoid changing the value of a
18091 customizable variable. Rather explicitly check whether the
18092 height of the window that shall be splitted is at least as large
18093 as split_height_threshold.
18094 (Fwindow_full_width_p): New defun.
18095 (syms_of_window): Defsubr it.
18096
18097 * window.h: Add EXFUN for Fwindow_full_width_p.
18098
180992007-07-14 Jason Rumney <jasonr@gnu.org>
18100
18101 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
18102
181032007-07-14 Richard Stallman <rms@gnu.org>
18104
18105 * eval.c (maybe_call_debugger): New function.
18106 (find_handler_clause): Use maybe_call_debugger.
18107 Call it when the handler says `debug'.
18108 Eliminate DEBUGGER_VALUE_PTR.
18109 (Fsignal): Eliminate debugger_value.
18110 (Qdebug): New variable.
18111 (syms_of_eval): Initialize it.
18112
181132007-07-14 Juanma Barranquero <lekktu@gmail.com>
18114
18115 * eval.c (Fprogn):
18116 * keyboard.c (Ftrack_mouse):
18117 * print.c (Fwith_output_to_temp_buffer):
18118 * window.c (Fsave_window_excursion): Doc fix.
18119
181202007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
18121
18122 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
18123
181242007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
18125
18126 * process.h (struct Lisp_Process): Turn slots infd, outfd,
18127 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
18128 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
18129 read_output_delay, and read_output_skip from Lisp_Objects to ints.
18130 Remove unused encoding_carryover.
18131 * process.c: Adjust all functions accordingly.
18132
181332007-07-12 Richard Stallman <rms@gnu.org>
18134
18135 * term.c: Include unistd.h only if HAVE_UNISTD_H.
18136
181372007-07-11 Jason Rumney <jasonr@gnu.org>
18138
18139 * makefile.w32-in (LIBS): Include OLE32.
18140
18141 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
18142 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
18143
181442007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
18145
18146 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
18147 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
18148 from a Lisp_Object into a bare pointer.
18149 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
18150 Adjust the code correspondingly.
18151
18152 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
18153
18154 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
18155 (term_show_mouse_face): Remove unused var `j'.
18156 (handle_one_term_event): Remove unused vars `i' and `j'.
18157 Don't cast return value of ttyname since it's not necessary.
18158
181592007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
18160
18161 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
18162 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
18163
18164 * fns.c (map_char_table): Use an array of int for `indices' rather than
18165 an array of Lisp_Objects (which are only ever integers anyway).
18166 (Fmap_char_table): Update caller.
18167 * lisp.h: Update prototype.
18168 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
18169 * fontset.c (Ffontset_info):
18170 * casetab.c (set_case_table): Update callers.
18171
18172 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
18173
18174 * keymap.c (struct accessible_keymaps_data)
18175 (struct where_is_internal_data): New structures.
18176 (accessible_keymaps_1, where_is_internal_1): Use them to change
18177 interface to adhere to the one used by map_keymap.
18178 (Faccessible_keymaps, where_is_internal): Use map_keymap.
18179 (accessible_keymaps_char_table, where_is_internal_2): Remove.
18180
18181 * keymap.h (map_keymap_function_t): More informative prototype.
18182
181832007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
18184
18185 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
18186 (looking_at_1): Don't change search_regs and last_thing_searched
18187 if `inhibit-changing-match-data' is non-nil.
18188 (string_match_1, search_buffer, set_search_regs): Likewise.
18189 (syms_of_search): Add Lisp level definition for
18190 `inhibit-changing-match-data' and set it to nil.
18191 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
18192 start and end of the match, instead of using values in search_regs.
18193
181942007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
18195
18196 * minibuf.c (Fcompleting_read): New value `confirm-only'
18197 for `require-match'.
18198
181992007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
18200
18201 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
18202 part of the 2007-06-27 change to syms_of_fileio.
18203
182042007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18205
18206 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
18207 Check WINDOWP before using XWINDOW. Consolidate return statements.
18208
182092007-06-27 Richard Stallman <rms@gnu.org>
18210
18211 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
18212
182132007-06-27 Juanma Barranquero <lekktu@gmail.com>
18214
18215 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
18216
182172007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18218
18219 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
18220 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
18221 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
18222 (_free_internal, memalign): Use them.
18223 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
18224 Initialize to PTHREAD_MUTEX_INITIALIZER.
18225 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
18226 (morecore_nolock): Rename from morecore. All uses changed.
18227 Use only nolock versions of internal allocation functions.
18228 (_malloc_internal_nolock, _realloc_internal_nolock)
18229 (_free_internal_nolock): New functions created from
18230 _malloc_internal, _realloc_internal, and _free_internal.
18231 (_malloc_internal, _realloc_internal, _free_internal): Use them.
18232 Copy hook value to automatic variable before its use.
18233 (memalign): Copy hook value to automatic variable before its use.
18234
182352007-06-26 Kenichi Handa <handa@m17n.org>
18236
18237 * coding.c (Ffind_operation_coding_system): Docstring improved.
18238 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
18239
182402007-06-25 David Kastrup <dak@gnu.org>
18241
18242 * keymap.c (Fcurrent_active_maps): Add `position' argument.
18243 (Fwhere_is_internal): Adjust call to `current-active-maps' to
18244 cater for additional parameter.
18245
18246 * keymap.h: Adjust number of parameters to `current-active-maps'.
18247
18248 * doc.c (Fsubstitute_command_keys): Adjust call of
18249 `current-active-maps'.
18250
182512007-06-25 David Kastrup <dak@gnu.org>
18252
18253 * callint.c (Fcall_interactively): Make the parsing of interactive
18254 specs somewhat more readable.
18255
182562007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18257
18258 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
18259 to scroll bar gap also when bitmap fills fringe. Draw only foreground
18260 if extended background has already been filled.
18261
182622007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18263
18264 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
18265 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
18266
18267 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
18268 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
18269 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
18270 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
18271 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
18272 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
18273 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
18274 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
18275 Run timers during dialog popup.
18276 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
18277
182782007-06-21 Jason Rumney <jasonr@gnu.org>
18279
18280 * image.c (convert_mono_to_color_image): Swap fore and background.
18281
182822007-06-20 Jason Rumney <jasonr@gnu.org>
18283
18284 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
18285 (w32_free_bdf_font): Unmap memory not handle.
18286
182872007-06-20 Sam Steingold <sds@gnu.org>
18288
18289 * gmalloc.c (__morecore): Fix the declaration to comply with the
18290 definition.
18291
182922007-06-20 Juanma Barranquero <lekktu@gmail.com>
18293
18294 * w32term.c (w32_delete_display): Remove leftover declaration.
18295 (w32_define_cursor, w32_initialize): Make static.
18296
18297 * w32.c (_wsa_errlist): Fix typo in error message.
18298 (init_environment): Ignore any environment variable from the
18299 registry having a null value.
18300
183012007-06-20 Glenn Morris <rgm@gnu.org>
18302
18303 * Makefile.in (LIBGIF): Default to -lgif.
18304
183052007-06-17 Jason Rumney <jasonr@gnu.org>
18306
18307 * w32menu.c (add_menu_item): Don't use multibyte string functions on
18308 unicode strings.
18309
183102007-06-16 Juanma Barranquero <lekktu@gmail.com>
18311
18312 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
18313 Fix typo in docstring.
18314
183152007-06-16 Eli Zaretskii <eliz@gnu.org>
18316
18317 * w32menu.c (add_menu_item): Escape `&' characters in menu items
18318 and their keybindings.
18319
183202007-06-15 Chong Yidong <cyd@stupidchicken.com>
18321
18322 * composite.c (update_compositions): Fix last fix.
18323
183242007-06-14 Jason Rumney <jasonr@gnu.org>
18325
18326 * w32.c (get_process_times_fn): New function pointer.
18327 (globals_of_w32): Intialize it if present in kernel32.dll.
18328 (w32_get_internal_run_time): New function.
18329
18330 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
18331
183322007-06-14 Kenichi Handa <handa@etlken.m17n.org>
18333
18334 * composite.c (update_compositions): Check the validness of
18335 compositions.
18336
183372007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18338
18339 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
18340 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
18341
18342 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
18343 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
18344
18345 * macgui.h (USE_MAC_TOOLBAR): New define.
18346
18347 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
18348 Return immediately unless popup is activated.
18349
18350 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
18351 background to scroll bar gap.
18352 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
18353 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
18354 scroll bars on frame edge. Check fringe background extension.
18355 Don't clear extended fringe background area.
18356 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
18357 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
18358 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
18359 [USE_MAC_TOOLBAR]: New macros.
18360 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
18361 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
18362 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
18363 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
18364 [USE_MAC_TOOLBAR]: New functions.
18365 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
18366 manually if previous repositioning has failed.
18367 (mac_handle_keyboard_event): Use precomputed event kind.
18368 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
18369 as tool bar item click. Handle mouse movement over tool bar items.
18370
18371 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
18372 toolbar_win_gravity.
18373 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
18374 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
18375 Add externs.
18376
18377 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
18378 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
18379
183802007-06-14 Chong Yidong <cyd@stupidchicken.com>
18381
18382 * image.c (search_image_cache): Remove unused variable.
18383
183842007-06-13 Chong Yidong <cyd@stupidchicken.com>
18385
18386 * xfns.c, xmenu.c: Link to xaw3d if available.
18387
183882007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18389
18390 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
18391 frame_foreground and frame_background.
18392
18393 * image.c (lookup_image): Save frame foreground and background colors.
18394 (search_image_cache): Check if saved and current frame colors match.
18395
183962007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
18397
18398 * regex.c (regex_compile): Remove the `regnum' counter.
18399 Use bufp->re_nsub instead. Add support for \(?N:RE\).
18400
184012007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
18402
18403 * term.c: Include intervals.h to declare Fget_text_property.
18404
184052007-06-10 Jason Rumney <jasonr@gnu.org>
18406
18407 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
18408
184092007-06-08 Juanma Barranquero <lekktu@gmail.com>
18410
18411 * callint.c (Fcall_interactively):
18412 * editfns.c (Fdelete_and_extract_region):
18413 * fileio.c (Fread_file_name):
18414 * fns.c (Fmapconcat):
18415 * keyboard.c (cmd_error_internal):
18416 * keymap.c (Fkey_description):
18417 * lread.c (openp):
18418 * minibuf.c (read_minibuf):
18419 * search.c (wordify):
18420 * sunfns.c (sel_read):
18421 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
18422 * xfns.c (x_default_scroll_bar_color_parameter):
18423 * xmenu.c (menu_help_callback):
18424 * xselect.c (Fx_get_atom_name):
18425 * xterm.c (x_term_init): Use empty_unibyte_string.
18426
184272007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
18428
18429 * alloc.c (init_strings): Initialize canonical empty strings.
18430 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
18431 canonical empty string when the requested size is 0.
18432
18433 * emacs.c (empty_unibyte_string): Rename from empty_string.
18434 (empty_multibyte_string): New canonical empty string.
18435 (syms_of_emacs): Don't initialize empty_string.
18436
18437 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
18438 string, if appropriate.
18439 (empty_unibyte_string, empty_multibyte_string): New externs.
18440 (empty_string): Remove extern.
18441
18442 * lread.c (syms_of_lread): Use empty_unibyte_string.
18443
184442007-06-07 Jason Rumney <jasonr@gnu.org>
18445
18446 * s/ms-w32.h: Don't define HAVE_TZNAME.
18447
18448 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
18449
184502007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18451
18452 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
18453
18454 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
18455 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
18456
18457 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
18458 Don't call next handler.
18459 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
18460 Remove argument. Install handler to application.
18461 (set_frame_menubar): Don't change deep_p.
18462 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
18463 FRAME_OUTER_TO_INNER_DIFF_Y.
18464 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
18465 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
18466 [HAVE_DIALOGS]: New macros.
18467 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
18468 Use them.
18469 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
18470
18471 * macselect.c [MAC_OSX] (install_service_handler): Rename from
18472 init_service_handler. All callers changed. Return OSStatus value.
18473
18474 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
18475 All callers changed so as not to call SetPortWindowPort.
18476 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
18477 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
18478 mac_draw_string_common.
18479 (mac_draw_image_string_qd): Likewise.
18480 (mac_draw_string_common): Use them. Add INLINE.
18481 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
18482 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
18483 GetGlobalMouse.
18484 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
18485 and FRAME_OUTER_TO_INNER_DIFF_Y.
18486 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
18487 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
18488 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
18489 repositioning window to mac_handle_window_event.
18490 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
18491 saving window location to mac_handle_window_event
18492 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
18493 (install_menu_target_item_handler): Remove argument in extern.
18494 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
18495 Also accept command events.
18496 (do_keystroke): New function created from XTread_socket.
18497 (init_command_handler): Remove functions.
18498 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
18499 and save window location by kEventWindowShowing and kEventWindowHiding
18500 handlers here. Don't call next handler for window state change and
18501 focus events.
18502 (mac_handle_application_event, mac_handle_keyboard_event)
18503 [TARGET_API_MAC_CARBON]: New functions.
18504 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
18505 kEventWindowShowing and kEventWindowHiding events. Move installation
18506 of mouse, font, text input and menu target item handlers to
18507 install_application_handler.
18508 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
18509 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
18510 New function.
18511 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
18512 Register it.
18513 (XTread_socket) [TARGET_API_MAC_CARBON]:
18514 Consolidate SendEventToEventTarget calls.
18515 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
18516 Move application activation handler to mac_handle_application_event.
18517 Move keyboard handler to mac_handle_keyboard_event.
18518 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
18519 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
18520 init_command_handler. Call install_application_handler.
18521
18522 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
18523 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
18524
185252007-06-07 Glenn Morris <rgm@gnu.org>
18526
18527 * emacs.c (main): Use `emacs-copyright' in --version output.
18528
185292007-06-06 Chong Yidong <cyd@stupidchicken.com>
18530
18531 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
18532
185332007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18534
18535 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
18536
18537 * macgui.h: Replace WindowPtr with WindowRef.
18538
18539 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
18540 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
18541 Replace ControlHandle with ControlRef.
18542 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
18543
18544 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
18545 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
18546 Replace ControlHandle with ControlRef.
18547 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
18548 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
18549
18550 * macterm.h (struct scroll_bar): Rename member control_handle_low
18551 and control_handle_high to control_ref_low and control_ref_high.
18552 All uses changed.
18553 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
18554 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
18555 respectively. All uses changed.
18556 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
18557 (install_window_handler, remove_window_handler): Replace WindowPtr
18558 with WindowRef in externs.
18559
185602007-06-05 Juanma Barranquero <lekktu@gmail.com>
18561
18562 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
18563
185642007-06-03 Nick Roberts <nickrob@snap.net.nz>
18565
18566 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
18567
18568 * frame.c (Fmouse_position, Fmouse_pixel_position):
18569 Condition on HAVE_GPM too.
18570
18571 * term.c (term_mouse_highlight): Remove unused variables.
18572 (Fterm_open_connection): Set gpm_zerobased to 1.
18573 (term_mouse_movement, term_mouse_click, handle_one_term_event):
18574 Use zero based co-ordinates.
18575 (handle_one_term_event): Report a drag as mouse movement too.
18576
18577 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
18578
185792007-06-03 Chong Yidong <cyd@stupidchicken.com>
18580
18581 * image.c (search_image_cache): New function. Require background
18582 color match if background color is unspecified in the image spec.
18583 (uncache_image, lookup_image): Use it.
18584
185852007-06-01 Juanma Barranquero <lekktu@gmail.com>
18586
18587 * window.c (Fshrink_window): Reflow docstring.
18588
185892007-06-02 Chong Yidong <cyd@stupidchicken.com>
18590
18591 * Version 22.1 released.
18592
185932007-06-01 Richard Stallman <rms@gnu.org>
18594
18595 * xfns.c (x_encode_text): Add GCPRO.
18596
185972007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18598
18599 * xfns.c (x_set_name_internal): Save encoded name before
18600 x_encode_text in case string data is relocated.
18601
186022007-05-31 Richard Stallman <rms@gnu.org>
18603
18604 * buffer.c (syms_of_buffer): Doc fix.
18605
186062007-05-30 Nick Roberts <nickrob@snap.net.nz>
18607
18608 * sysdep.c (init_sys_modes): Add rather than replace with
18609 O_NONBLOCK.
18610
18611 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
18612 term_mouse_moveto.
18613
18614 * termhooks.h (term_mouse_moveto): New extern.
18615
18616 * term.c (mouse_face_window): Rename...
18617 (Qmouse_face_window): ...to this.
18618 (term_show_mouse_face, term_clear_mouse_face)
18619 (term_mouse_highlight): Use Qmouse_face_window.
18620 (term_mouse_moveto): New function.
18621 (term_mouse_position): Make it work.
18622 (syms_of_term): Uncomment assignment to mouse_position_hook.
18623 Staticpro Qmouse_face_window.
18624
186252007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18626
18627 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
18628 around current_column call.
18629
186302007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
18631
18632 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
18633 * xdisp.c (next_element_from_buffer):
18634 * window.c (delete_window):
18635 * term.c (term_mouse_highlight):
18636 * msdos.c (getdefdir):
18637 * macterm.c (mac_create_bitmap_from_bitmap_data)
18638 (init_font_name_table):
18639 * fns.c (Fsxhash):
18640 * data.c (Fmake_local_variable):
18641 * ccl.c (ccl_driver): Likewise.
18642
186432007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18644
18645 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
18646 Call mac_wakeup_from_rne on window size change.
18647
186482007-05-25 Chong Yidong <cyd@stupidchicken.com>
18649
18650 * image.c (uncache_image): Fix typo.
18651
186522007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
18653
18654 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
18655
186562007-05-22 Richard Stallman <rms@gnu.org>
18657
18658 * xterm.c (x_connection_closed): Remove NO_RETURN.
18659
186602007-05-22 Martin Rudalics <rudalics@gmx.at>
18661
18662 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
18663
186642007-05-21 Chong Yidong <cyd@stupidchicken.com>
18665
18666 * image.c (uncache_image): New function.
18667 (Fimage_refresh): New function.
18668
186692007-05-20 Jan Djärv <jan.h.d@swipnet.se>
18670
18671 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
18672
186732007-05-20 Nick Roberts <nickrob@snap.net.nz>
18674
18675 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
18676 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
18677
186782007-05-20 Nick Roberts <nickrob@snap.net.nz>
18679
18680 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
18681 conditional on [HAVE_GPM_H].
18682
186832007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
18684
18685 * syntax.c (skip_chars): Update syntax-table only after we checked that
18686 the new location is valid.
18687
186882007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18689
18690 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
18691 mac_get_window_bounds.
18692
186932007-05-20 Nick Roberts <nickrob@snap.net.nz>
18694
18695 * Makefile.in (LIBGPM): Allow it to be set from configure.
18696 If set then link Emacs with it.
18697
18698 * config.in: Regenerate.
18699
18700 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
18701 New externs.
18702
18703 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
18704 Include gpm.h.
18705 (handle_one_term_event, term_gpm): New externs.
18706
18707 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
18708 and allow it to be interrupted by SIGIO.
18709
18710 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
18711 (wait_reading_process_output): Wait on gpm_fd too.
18712 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
18713 (add_gpm_wait_descriptor_called_flag): New variable.
18714 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
18715
18716 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
18717 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
18718 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
18719 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
18720 (make_lispy_event): Add case GPM_CLICK_EVENT.
18721 (read_avail_input): Handle mouse input.
18722
18723 * term.c (write_glyphs_with_face): New function.
18724 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
18725 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
18726 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
18727 (mouse_face_face_id, term_gpm, pos_x, pos_y)
18728 (last_mouse_x, last_mouse_y): New variables.
18729 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
18730 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
18731 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
18732 (Fterm_close_connection): New functions.
18733 (term_init): Initialise mouse_face_window.
18734
187352007-05-19 Chong Yidong <cyd@stupidchicken.com>
18736
18737 * xdisp.c (redisplay_window): If first window line is a
18738 continuation line, recompute the new window start instead of
18739 recentering.
18740
187412007-05-18 Glenn Morris <rgm@gnu.org>
18742
18743 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
18744 Suggested by Alfred M. Szmidt <ams@gnu.org>.
18745
187462007-05-17 Glenn Morris <rgm@gnu.org>
18747
18748 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
18749
187502007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18751
18752 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
18753 dead key repeat and up events.
18754
187552007-05-14 Chong Yidong <cyd@stupidchicken.com>
18756
18757 * image.c (pbm_load): Check image size for monochrome pbm.
18758
187592007-05-13 Chong Yidong <cyd@stupidchicken.com>
18760
18761 * xterm.c (XTread_socket): Revert last change.
18762
187632007-05-12 Chong Yidong <cyd@stupidchicken.com>
18764
18765 * image.c (pbm_load): Correctly check image size for greyscale pbm.
18766
18767 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
18768
187692007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
18770
18771 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
18772 mixup (YAILOM).
18773
187742007-05-07 Andreas Schwab <schwab@suse.de>
18775
18776 * keymap.c (Flookup_key): Fix typo in last change.
18777
187782007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
18779
18780 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
18781 mapping for unibyte strings.
18782
187832007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18784
18785 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
18786 (Fx_popup_dialog) [MAC_OSX]: Likewise.
18787
187882007-04-29 Richard Stallman <rms@gnu.org>
18789
18790 * insdel.c (replace_range): For undo, record insertion first.
18791
187922007-04-29 Andreas Schwab <schwab@suse.de>
18793
18794 * lisp.h (VECSIZE): Use OFFSETOF.
18795
187962007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18797
18798 * xdisp.c (try_window_reusing_current_matrix): Fix number of
18799 disabled lines.
18800
188012007-04-28 Richard Stallman <rms@gnu.org>
18802
18803 * lread.c (read_escape): In a string, \s is always space.
18804
188052007-04-27 Jan Djärv <jan.h.d@swipnet.se>
18806
18807 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
18808
18809 * gtkutil.c (xg_update_menubar, create_menus): Create empty
18810 submenu for menu bar items.
18811
18812See ChangeLog.10 for earlier changes.
18813
18814;; Local Variables:
18815;; coding: utf-8
18816;; add-log-time-zone-rule: t
aac0c6e3
MR
18817;; End:
18818
76b6f707 18819 Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc.
aac0c6e3
MR
18820
18821 This file is part of GNU Emacs.
18822
18823 GNU Emacs is free software: you can redistribute it and/or modify
18824 it under the terms of the GNU General Public License as published by
18825 the Free Software Foundation, either version 3 of the License, or
18826 (at your option) any later version.
18827
18828 GNU Emacs is distributed in the hope that it will be useful,
18829 but WITHOUT ANY WARRANTY; without even the implied warranty of
18830 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18831 GNU General Public License for more details.
18832
18833 You should have received a copy of the GNU General Public License
18834 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
18835
18836;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40