Don't dereference NULL upon failed malloc and realloc.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
c6da7cd2
JM
12009-06-23 Jim Meyering <meyering@redhat.com>
2
3 Don't dereference NULL upon failed malloc and realloc
4 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt): Use xmalloc
5 and xrealloc (not malloc and realloc), so subsequent heap pointer
6 dereferences are guaranteed to be valid.
7
678dca3d
KH
82009-06-23 Kenichi Handa <handa@m17n.org>
9
74d75424
KH
10 * emacs.c (main): Call init_font ().
11
12 * font.h (Vfont_log): Extern it.
13 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
14
15 * font.c (font_sort_entities, font_list_entities)
16 (font_matching_entity, font_open_entity)
17 (font_close_object): Change font_add_log to FONT_ADD_LOG.
18 (Vfont_log): Delete static.
19 (font_log_env_checked): Delete this variable.
20 (font_add_log): Don't check font_log_env_checked.
21 (font_deferred_log): Check Vfont_log.
22 (init_font): New function.
23
678dca3d
KH
24 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
25
26 * w32font.c: Change font_add_log to FONT_ADD_LOG.
27
28 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
29
30 * xfont.c: Change font_add_log to FONT_ADD_LOG.
31
32 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
33 (face_for_char): Don't call font_deferred_log here.
34 (font_for_char): Likewise.
35
8a668709
CY
362009-06-22 Chong Yidong <cyd@stupidchicken.com>
37
9a01ee33
CY
38 * w32term.c (x_draw_glyph_string): Use the glyph string's width
39 rather than its background_width for drawing the overline and
40 underline (Bug#489).
41
42 * xterm.c (x_draw_glyph_string): Use the glyph string's width
43 rather than its background_width for drawing the overline and
44 underline (Bug#489).
ec7c9926
CY
45 (xg_default_icon_file): New variable.
46 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
47 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 48
8a668709
CY
49 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
50 (load_overlay_strings): Remove externs.
51 (fast_find_position): Function deleted.
52 (mouse_face_from_buffer_pos): New function, based on
53 fast_find_position. Correctly handle before-strings,
54 display-strings, and after-strings (Bug#1220).
55 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
56
4d4c02d8
CY
572009-06-21 Chong Yidong <cyd@stupidchicken.com>
58
59 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for
60 !HAVE_WINDOW_SYSTEM.
61 (move_it_in_display_line_to, move_it_in_display_line_to)
62 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
63
70243478
CY
642009-06-21 Chong Yidong <cyd@stupidchicken.com>
65
66 * Branch for 23.1.
67
13087e59
JR
682009-06-21 Jason Rumney <jasonr@gnu.org>
69
70 * w32term.c (keyboard_codepage): New static variable.
71 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
72 (w32_read_socket) [WM_CHAR]: Use it to decode character
73 input (bug#3237).
74 (w32_initialize): Initialize it.
75 (codepage_for_locale): New function.
76
4735b74e
KR
772009-06-20 Ken Raeburn <raeburn@raeburn.org>
78
79 * process.c (status_message): Pass Faset index argument as a lisp
80 object, so as to work with USE_LISP_UNION_TYPE.
81
0e727afa
YM
822009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
83
84 * coding.c (Ffind_coding_systems_region_internal):
85 Cache checked characters.
86
cf299835
KH
872009-06-18 Kenichi Handa <handa@m17n.org>
88
89 * coding.c (decode_coding_iso_2022): Check MSB of bytes more
90 rigidly.
91
90f20d94
AS
922009-06-18 Andreas Schwab <aschwab@redhat.com>
93
94 * xdisp.c (redisplay_internal): Check that the frame is still
95 live after redisplay of its windows.
96 (redisplay_windows): Check that the window is still live.
97
7f1faf1c
KH
982009-06-17 Andreas Schwab <schwab@linux-m68k.org>
99
100 * coding.c (detect_coding_utf_16): Fix previous change.
101
cc13543e
KH
1022009-06-16 Kenichi Handa <handa@m17n.org>
103
104 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
105 UTF-16 by checking the dispersion of Eth and Oth bytes.
106
977b85f4
AS
1072009-06-15 Andreas Schwab <schwab@linux-m68k.org>
108
109 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
110
66bd43d1
KH
1112009-06-15 Kenichi Handa <handa@m17n.org>
112
113 * process.c (status_message): Fix previous change. Be sure to
114 decode a localized string.
115
cb5ca9c5
YM
1162009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
117
118 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
119 add comment explaining why.
120
ec7709ba 1212009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 122
ec7709ba 123 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 124
4b7f335c
AR
1252009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
126
127 * nsfont.m (ns_attribute_value): Remove.
128 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
129 (ns_has_attribute): Shrink the normal range.
130 (ns_findfonts): Don't worry about requested spec in determining
131 need for synthItal.
e41820ee 132 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 133
73b26103
SZ
1342009-06-14 Seiji Zenitani <zenitani@mac.com>
135
136 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
137
5753e4da
KH
1382009-06-11 Kenichi Handa <handa@m17n.org>
139
140 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
141 overhang for the static composition case.
142
3561b671
KH
1432009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
144
5753e4da
KH
145 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
146 overhang for the automatic composition case.
147
3561b671
KH
148 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
149 composition case.
150
852bbd41
CY
1512009-06-10 Chong Yidong <cyd@stupidchicken.com>
152
153 * xdisp.c (get_next_display_element): When handling wrap-prefix
154 and line-prefix, treat \n as a control character (bug#3502).
155
9903d1e6
KH
1562009-06-10 Kenichi Handa <handa@m17n.org>
157
158 * font.c (font_parse_family_registry): Fix for one-char foundry.
159 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
160
0bcbaaaa
CY
1612009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
162
163 * process.c (status_message): Fix handling of multibyte signal
164 string (Bug#3499).
165
40aa3f13
JM
1662009-06-09 Jim Meyering <meyering@redhat.com>
167
1f80c7e2
CY
168 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
169 color name is missing.
40aa3f13 170
72d51285
KH
1712009-06-09 Kenichi Handa <handa@m17n.org>
172
173 * charset.c (Fmap_charset_chars): In docstring, state clearly that
174 FROM-CODE and TO-CODE are codepoints of CHARSET.
175
c1d04d84
AR
1762009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
177
178 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
179
1802009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
181
182 Changes to support :script/:lang/:otf in NS font driver.
183 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
184 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
185 indicate not part of font driver interface, and change callers.
186 (ns_get_family): Remove pointless null check.
187 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
188 ns_spec_to_descriptor, ns_descriptor_to_entity.
189 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
190 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
191 (ns_spec_to_descriptor, ns_descriptor_to_entity)
192 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
193 (ns_get_req_script, ns_accumulate_script_ranges)
194 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
195 New functions.
196 (nsfont_list, nsfont_match): Use ns_findfonts.
197 (nsfont_open): Use font descriptor instead of traits.
198 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
199 (dump_glyphstring): Rename to ns_dump_glyphstring.
200
c7eb9816
AR
201 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
202
c1d04d84
AR
203 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
204
205 * fontset.c (fontset_from_font): Remove NS-specific code.
206
ec7709ba 2072009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
208
209 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
210 nonactive windows.
211
2122009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
213
214 * nsterm.m (ns_init_paths): Append path separator to INFOPATH
215 variable.
216
68852c13 2172009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
218
219 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
220
6756cd1d
CY
2212009-06-07 Chong Yidong <cyd@stupidchicken.com>
222
223 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
224 account for the overflowing of newlines into the last glyph on the
225 display line (Bug#3482).
226
28bf482a
DR
2272009-06-05 David Reitter <david.reitter@gmail.com>
228
ec7709ba
JB
229 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
230 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
231 Fns_selection_exists_p, Fns_selection_owner_p.
232
fdb55376
JR
2332009-06-03 Jason Rumney <jasonr@gnu.org>
234
235 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
236 available. (Bug#3379)
237
05129fbe
KH
2382009-05-29 Kenichi Handa <handa@m17n.org>
239
240 * coding.c (get_translation_table): Check
241 Venable_character_translation.
242
ec7709ba 2432009-05-26 David Reitter <david.reitter@gmail.com>
15891144 244
ec7709ba
JB
245 * nsterm.m (ns_raise_frame): Only raise frame if visible.
246 (x_make_frame_visible): Move frame to front rather than calling
15891144 247 ns_raise_frame().
ec7709ba 248 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 249 isn't key window.
ec7709ba 250 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
251 drawRect may be called by NSView even if the frame is hidden.
252
ec7709ba
JB
253 * nsfns.m (Fx_create_frame): Follow other ports in
254 determining visibility; default to t. Ensure async_visible is set.
15891144 255
21f73755
EZ
2562009-05-23 Eli Zaretskii <eliz@gnu.org>
257
258 * dired.c (Ffile_attributes): Doc fix.
259
34001e41
CY
2602009-05-22 Chong Yidong <cyd@stupidchicken.com>
261
262 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
263
46306a17
SM
2642009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
265
266 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
267 and xfont_scratch_props.
268 (syms_of_xfont): Do it here instead.
269 (xfont_find_ccl_program): Delete, unused.
270 (xfont_open): Delete unused var `i'.
271
ef6e0694
KH
2722009-05-21 Kenichi Handa <handa@m17n.org>
273
274 * fontset.c (Qlatin): Don't make it static.
275
46306a17
SM
276 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
277 New functions.
ef6e0694
KH
278 (xfont_scripts_cache, xfont_scratch_props): New variables.
279 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
280 (xfont_list_pattern): Argument changed. Callers changed.
281 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
282 (xfont_list): Don't reject a font spec with :script property.
283 (xfont_has_char): Fix setting of encoding.
284 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
285 xfont_scratch_props.
286
2872009-05-19 Kenichi Handa <handa@m17n.org>
288
46306a17 289 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
290 Callers changed.
291
2922009-05-18 Kenichi Handa <handa@m17n.org>
293
294 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
295
ac71ced7
SM
2962009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
297
298 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
299 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
300
1c6d1051
YM
3012009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
302
303 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
304 (x_delete_terminal): Dissociate resource database from display and
305 then call XrmDestroyDatabase before closing display.
306
9b9b779c
AR
3072009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
308
309 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
310 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
311 whether selected frame is viable before raising it (based on patch
312 by David Reitter), and improve commentary.
313 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 314
cccd42d5
KH
3152009-05-15 Kenichi Handa <handa@m17n.org>
316
317 * font.c (Ffont_spec): Check arguments.
318
337fbd17
CY
3192009-05-14 Chong Yidong <cyd@stupidchicken.com>
320
321 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
322 weight when testing attributes (Bug#3282).
323
47a6002f
JD
3242009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
325
326 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
327 what we expect to get in the next ConfigureNotify event.
328
9cb363db
YM
329 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
330 before Xft one (Bug#1696).
331
b9126609
CY
3322009-05-07 David Reitter <david.reitter@gmail.com>
333
334 * nsfns.m (Fx_display_planes): Compute bitplanes using
335 NSBitsPerPixelFromDepth (Bug#3207).
336
27a69fd9
CY
3372009-05-10 Chong Yidong <cyd@stupidchicken.com>
338
339 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
340
00f37552
TTN
3412009-05-10 Ulrich Mueller <ulm@gentoo.org>
342
343 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
344
2d82a920
DR
3452009-05-07 David Reitter <david.reitter@gmail.com>
346
ec7709ba
JB
347 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
348 Respect mouse face background.
2d82a920 349
46b0d52d
DR
3502009-05-07 David Reitter <david.reitter@gmail.com>
351
ec7709ba
JB
352 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
353 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
354 in ns_update_begin and ns_update_end.
355
ce1b23bb
SM
3562009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
357
5996e1b7
SM
358 * nsfns.m (ns_get_screen): Rewrite.
359 Don't presume selected-frame is of type `ns'.
360
ba98e3a0
SM
361 * font.c (font_update_drivers): Sanity fallback to avoid disabling
362 all drivers.
363
ce1b23bb
SM
364 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
365
bcda200f
YM
3662009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
367
368 * keyboard.h (add_user_signal): Fix typo in extern.
369
370 * lisp.h (add_user_signal): Remove extern.
371
372 * unexelf.c (unexec): Consider a section to precede the .bss section
373 if its addresses overlap that of .bss.
374 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
375 instead of dumping process.
376
864660a2
SM
3772009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
378
379 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
380
50da4e56
SM
3812009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
382
383 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
384
51520a1a
DN
3852009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
386
387 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
388 any statements.
389
409ea3a1
AS
3902009-05-02 Andreas Schwab <schwab@linux-m68k.org>
391
59c4c60f
AS
392 * process.c (read_process_output): Make sure the current buffer is
393 always restored.
394
409ea3a1
AS
395 * coding.c (record_conversion_result): Don't modify
396 Vlast_code_conversion_error for successful result.
397 (alloc_destination): Don't clobber conversion result. (Bug#1650)
398
56f00ed2
KH
3992009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
400
401 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 402 (load_charset_map): Remove unnecessary code.
56f00ed2 403
4491c9d2
DR
4042009-04-30 David Reitter <david.reitter@gmail.com>
405
35f5b128 406 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
407 through f24.
408
6970f632
CY
4092009-04-30 Chong Yidong <cyd@stupidchicken.com>
410
411 * xfaces.c (face_at_buffer_position): New arg base_face_id.
412
413 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
414 face_at_buffer_position.
415 (face_before_or_after_it_pos, get_next_display_element)
416 (note_mouse_highlight): Update face_at_buffer_position call.
417
418 * term.c (term_mouse_highlight):
419 * msdos.c (IT_note_mouse_highlight):
420 * fontset.c (Finternal_char_font):
35f5b128 421 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
422
423 * dispextern.h (face_at_buffer_position): Update prototype.
424
0c616f63
KH
4252009-04-30 Kenichi Handa <handa@m17n.org>
426
35f5b128 427 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 428
ad3aaf33
AS
4292009-04-29 Andreas Schwab <schwab@linux-m68k.org>
430
431 * callproc.c (Fcall_process): Fix GC protection. Make sure
432 current buffer is always restored.
433
c3c963a0
YM
4342009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
435
436 * atimer.c (init_atimer): Also clear stopped_atimers.
437
438 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
439
7e3386cb
YM
440 * process.c (create_process): Clean up merger residues of
441 2008-07-17 change.
442
91f68422
CY
4432009-04-29 Ulrich Mueller <ulm@gentoo.org>
444
445 * lread.c (Vread_circle): New variable.
446 (read1): Disable recursive read if Vread_circle is nil.
447
24b34550
KH
4482009-04-29 Kenichi Handa <handa@m17n.org>
449
450 * fontset.h (set_default_ascii_font): Delete extern.
451
452 * fontset.c (set_default_ascii_font): Delete this unused function.
453
454 * frame.c (x_set_font): When ARG is a font-object, check if the
455 font-object matches with the ASCII font-spec of the frame's
9c358bda 456 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 457
77bf07e1
AS
4582009-04-28 Andreas Schwab <schwab@linux-m68k.org>
459
460 * fns.c (Flocale_info): Protect vector from GC during decoding.
461
462 * process.c (Fstart_process): Protect argv strings from GC during
463 encoding.
464
2c55aacf
AS
4652009-04-27 Andreas Schwab <schwab@linux-m68k.org>
466
467 * sysdep.c: Include <ctype.h>.
468
b892d3c9
DR
4692009-04-27 David Reitter <david.reitter@gmail.com>
470
35f5b128 471 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
472 Remove commented-out code.
473
9d0644c4
JB
4742009-04-26 Johan Bockgård <bojohan@gnu.org>
475
476 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
477
b7053016
JR
4782009-04-25 Jason Rumney <jasonr@gnu.org>
479
480 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
481
4e8231f3
YM
4822009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
483
484 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
485 Swap bytes in short integer if fringe bitmap width > 8.
486
493dcf2c
KH
4872009-04-23 Kenichi Handa <handa@m17n.org>
488
489 * xfaces.c (Fx_list_fonts): If a font size is specified in
490 PATTERN, set it in returned scalable fonts.
491
401e9e57
CY
4922009-04-22 Chong Yidong <cyd@stupidchicken.com>
493
708e05dc
CY
494 * keyboard.c (Fset_input_meta_mode): Doc fix.
495
496 * dispnew.c (Fsend_string_to_terminal): Doc fix.
497
498 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc
499 fixes.
500
501 * coding.c (Fterminal_coding_system): Doc fix.
502
503 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
504 (Fx_display_pixel_height, Fx_display_planes)
505 (Fx_display_color_cells, Fx_server_max_request_size)
506 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
507 (Fx_display_mm_height, Fx_display_mm_width)
508 (Fx_display_backing_store, Fx_display_visual_class)
509 (Fx_display_save_under, Fx_close_connection, Fx_synchronize): Doc
510 fixes, replacing "terminal id" with "terminal object".
511 (check_x_display_info): Handle terminal objects instead of
512 terminal ids.
513
401e9e57
CY
514 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
515 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
fdc496e7
CY
516 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions): Doc
517 fixes, replacing "terminal id" with "terminal object".
401e9e57 518
df80c7f0
KH
5192009-04-21 Kenichi Handa <handa@m17n.org>
520
5a8f12af 521 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 522 (font_score): Check AVGWIDTH too.
908567ef 523
df80c7f0
KH
524 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
525 worst case.
526 (decode_coding_emacs_mule, decode_coding_iso_2022)
527 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
528 Likewise.
529
705af33f
JR
5302009-04-19 Jason Rumney <jasonr@gnu.org>
531
532 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 533 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
534
535 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
536 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
537 get_phys_cursor_geometry.
538
b71ac3dd 539 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
540 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
541 using get_phys_cursor_geometry.
542
543 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
544 correctly calculated.
545
dc2933eb
JD
5462009-04-19 Jan Djärv <jan.h.d@swipnet.se>
547
548 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar): Use
549 G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
550 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
551 is deprecated.
552
973e7849
AS
5532009-04-18 Andreas Schwab <schwab@linux-m68k.org>
554
555 * font.c (font_put_frame_data): Use xfree instead of free.
556
314d66f4
JB
5572009-04-17 Juanma Barranquero <lekktu@gmail.com>
558
559 * w32font.c (Qja, Qko): Remove declarations.
560 (syms_of_w32font): Don't DEFSYM them.
561
cf702558
CY
5622009-04-17 Chong Yidong <cyd@stupidchicken.com>
563
564 * font.c (Qja, Qko): Move definitions here from ftfont.c.
565
566 * font.h (Qja, Qko): Extern them.
567
568 * ftfont.c (Qja, Qko): Remove declarations.
569
570 * xfont.c (Qja, Qko): Remove declarations.
571
b50504f5
KH
5722009-04-17 Kenichi Handa <handa@m17n.org>
573
bde25748
KH
574 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
575 string from a vector to handle Latin-1 characters correctly.
576
b50504f5
KH
577 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
578 entity even if the cache hits.
579
f4646fff
AS
5802009-04-16 Andreas Schwab <schwab@linux-m68k.org>
581
582 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 583 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 584
e7deaab0
AS
585 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
586 * lisp.h: Adjust prototypes.
587
0a0e7d49
CY
5882009-04-16 Chong Yidong <cyd@stupidchicken.com>
589
590 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
591 change (Bug#3003).
592
3c908a57
KH
5932009-04-16 Kenichi Handa <handa@m17n.org>
594
bd0af90d
KH
595 * xfont.c (xfont_has_char): Special handling of `ja' and `ko'
596 adstyle.
597
598 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
599 adstyle.
600
601 * ftfont.c (Qja, Qko): Don't make them static.
602 (enum ftfont_cache_for): New enum.
603 (fc_charset_table): Undo the previous change.
604 (ftfont_get_latin1_charset): Delete it.
605 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache. Set
606 FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
607 non-scarable font, try to get AVERAGE_WIDTH.
608 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
609 Change ft_face_cache from a list of a hash-table. Don't check
610 `ja' and `ko' adstyle here.
611 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
612 FTFONT_CACHE_FOR_CHARET.
613 (ftfont_get_charset): Undo the previous change.
614 (ftfont_open): Call ftfont_lookup_cache with
615 FTFONT_CACHE_FOR_FACE.
616 (ftfont_close): Likewise.
617 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
618
619 * font.c (font_sort_entites): Change the meaning of the arg
620 BEST-ONLY. Don't optimize for VEC of lenght 1.
621 (font_select_entity): Just return the value of font_sort_entites.
622
623 * xfaces.c (merge_face_vectors): Reflect font properties in
624 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
625 font_clear_prop if a face attribute doesn't change.
626
3c908a57
KH
627 * charset.h (charset_ksc5601): Extern it.
628
629 * charset.c (charset_ksc5601): New variable.
630 (Fdefine_charset_internal): Set charset_ksc5601.
631 (init_charset_once): Initialize charset_ksc5601 to -1.
632
d65859c3
DN
6332009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
634
635 * fileio.c (history_delete_duplicates): Remove unused declaration.
636
637 * callint.c (history_delete_duplicates): New declaration.
638 (Fcall_interactively): Remove command history duplicates when
639 history_delete_duplicates is true.
640
3ba010e5
EZ
6412009-04-14 Eli Zaretskii <eliz@gnu.org>
642
643 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
644
06f19b91
KH
6452009-04-14 Kenichi Handa <handa@m17n.org>
646
647 * font.c (Ffont_info): Fix docstring. Fix the second element of
648 the returned value (bug#2949).
649
2cce8bfc
CY
6502009-04-14 Chong Yidong <cyd@stupidchicken.com>
651
652 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
653
d156542d
KH
6542009-04-14 Kenichi Handa <handa@m17n.org>
655
656 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
657 encoding charset is ascii_compatible.
658
659 * charset.c (Fdefine_charset_internal): Make charset
660 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
661 code_offset is 0, and covers all ASCII characters.
662
86fa089e
SM
6632009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
664
665 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
666 (ns_string_to_pasteboard_internal):
667 * nsmenu.m (process_dialog):
668 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
669 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
670 * lisp.h (Fx_load_color_file): Declare.
671
a8a3728b
KH
6722009-04-13 Kenichi Handa <handa@m17n.org>
673
674 * font.c (font_delete_unmatched): Preserve the order of list
675 elements.
676 (font_select_entity): Suppress the code to optimize for the same
677 kind of fonts.
678 (font_load_for_lface): Get a font that supports at least ASCII
679 characters.
680
681 * ftfont.c (Qja, Qko): New variables.
682 (fc_charset_table): Delete uniquifier data for iso8859-1.
683 (ftfont_get_latin1_charset): New function.
684 (get_adstyle_property): New function.
685 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
686 bitmap fonts.
687 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
688 Delete iso-8859-1 range from the charset of fonts whose adstyle is
689 `ko' or `ja'.
690 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
691 (ftfont_get_charset): For iso8859-1, call
692 ftfont_get_latin1_charset.
693 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
694 property.
695 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
696 (syms_of_ftfont): DEFSYM Qja and Qko.
697
483670b5
KH
6982009-04-09 Kenichi Handa <handa@m17n.org>
699
12b55765
KH
700 * charset.c (map_charset_chars): For a charset of `superset'
701 method, fix calculation of code range.
702
483670b5
KH
703 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
704 from the list of extra properties.
705 (font_clear_prop): Be sure to delete `:name' font property.
706
57d3b93b
KH
7072009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
708
b4b2c2ca
YM
709 * dispnew.c (redraw_overlapping_rows): Fix detection of
710 overlapping for topmost and bottommost rows.
711
57d3b93b
KH
712 * ftfont.c (ftfont_text_extents): Fix calculation of
713 metrics->descent.
714
472c3609
JR
7152009-04-06 Jason Rumney <jasonr@gnu.org>
716
717 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
718
ab193662
KH
7192009-04-06 Kenichi Handa <handa@m17n.org>
720
721 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
722
723 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
724
0c26f026
KH
7252009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
726
727 * ftfont.c (ftfont_open): Fix checking of the return value of
728 FT_Load_Char. Fix setting font->underline_thickness.
729
e173bbce
CY
7302009-04-04 Chong Yidong <cyd@stupidchicken.com>
731
732 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
733 (Fterminal_parameters, Fterminal_parameter)
734 (Fset_terminal_parameter): In doc string, refer to terminal
735 objects rather than terminal ids.
736
693a2698
EZ
7372009-04-04 Eli Zaretskii <eliz@gnu.org>
738
739 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
740 ret_lim_data. (Bug#2867)
741
d5221487
CY
7422009-04-03 Chong Yidong <cyd@stupidchicken.com>
743
744 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
745 so they don't get wider than the window, matching 2006-01-23
746 change to the partner function in xdisp.c (Bug#2800).
747
223509a3
KH
7482009-04-03 Kenichi Handa <handa@m17n.org>
749
750 * print.c (print_object): Make each lowest sub_char_table start a
751 new line (Bug#2866).
752
74fcd0b1
KH
7532009-04-02 Kenichi Handa <handa@m17n.org>
754
755 * fontset.c (fontset_font): Record no-font when a fontset
756 explicitly tells not to try another font-specs.
757
c542407d
SM
7582009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
759
760 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
761
e3869731
KH
7622009-03-30 Kenichi Handa <handa@m17n.org>
763
d8d2f142
KH
764 * fontset.c (fontset_from_font): Specify only registry in a
765 font-spec for all characters supported by that registry.
766
e3869731
KH
767 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
768 even if HAVE_M17N_FLT is not defined.
769
5da5f805
CY
7702009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
771
772 * ftfont.c: Conditionalize prototyping and use of
773 ftfont_variation_glyphs.
774
ab226c50
SM
7752009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
776
9628fed7
SM
777 * frame.c (delete_frame): Work around compiler bug.
778
779 * editfns.c (general_insert_function): Adjust to insdel.c changes.
780 * insdel.c (prepare_to_modify_buffer, signal_before_change):
781 Some more EMACS_INT.
782 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
783
784 * xdisp.c (dump_glyph): Fix typo.
785
ae19ba7c
SM
786 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
787 (adjust_markers_gap_motion, adjust_markers_for_delete)
788 (adjust_markers_for_insert, adjust_point)
789 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
790 (make_gap, copy_text, count_size_as_multibyte, insert)
791 (insert_and_inherit, insert_before_markers)
792 (insert_before_markers_and_inherit, insert_1)
793 (count_combining_before, count_combining_after, insert_1_both)
794 (insert_from_string, insert_from_string_before_markers)
795 (insert_from_string_1, insert_from_gap, insert_from_buffer)
796 (insert_from_buffer_1, adjust_after_replace)
797 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
798 (replace_range_2, del_range, del_range_1, del_range_byte)
799 (del_range_both, del_range_2, modify_region)
800 (prepare_to_modify_buffer, signal_before_change)
801 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
802 for buffer positions and sizes.
803 * lisp.h: Adjust prototypes accordingly.
804
805 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
806 (non_regular_inserted, non_regular_nbytes, read_non_regular)
807 (Finsert_file_contents): Use EMACS_INT for buffer positions.
808
ab226c50
SM
809 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
810
46dfb8fb
JD
8112009-03-27 Jan Djärv <jan.h.d@swipnet.se>
812
813 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
814 lines and columns so we keep the same pixel height and width.
815
816 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
817 the property _NET_WM_STATE has changed.
46dfb8fb
JD
818 (x_handle_net_wm_state): New function to update frame parameter
819 fullscreen.
820 (x_term_init): Initialize atoms for _NET_WM_STATE.
821
822 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
823
d347e494
SM
8242009-03-27 Kevin Ryde <user42@zip.com.au>
825
826 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
827 Gpm_GetEvent as an error that justifies closing the filedescriptor.
828 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
829 (Fgpm_mouse_stop): Pass that new parameter.
830 * termhooks.h (close_gpm): Adjust prototype.
831
84db11d6
SM
8322009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
833
c95a5008
SM
834 * lisp.h (Fx_focus_frame): Declare.
835
84db11d6
SM
836 * callint.c (Fcall_interactively): For '^' just delegate the work to
837 handle-shift-selection.
838 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
839
0a1958d6
CY
8402009-03-24 Chong Yidong <cyd@stupidchicken.com>
841
0bfdff23
CY
842 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
843
0a1958d6
CY
844 * data.c (Qinteractive_form): New variable.
845 (Finteractive_form): Use it.
846
847 * eval.c (Fcommandp): Use Qinteractive_form.
848
58aec0d6
JR
8492009-03-24 Jason Rumney <jasonr@gnu.org>
850
851 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
852 Calculate total size precisely. Decode environment variables
853 before substituting. (Bug#38)
854
553dd618
KH
8552009-03-24 Kenichi Handa <handa@m17n.org>
856
857 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 858 encoding (Bug#2722).
553dd618 859
c39ea606
JD
8602009-03-23 Jan Djärv <jan.h.d@swipnet.se>
861
862 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
863 that gdpy is set.
864
bc9b2b5e
AM
8652009-03-22 Alan Mackenzie <acm@muc.de>
866
867 * callint.c (Finteractive): Clarify the doc string - even
868 promptless elements need \n separators.
869
9f995a76
JR
8702009-03-22 Jason Rumney <jasonr@gnu.org>
871
872 * w32term.c (syms_of_w32term): Doc fix for
873 x-use-underline-position-properties.
874
22749e9a
EZ
8752009-03-21 Eli Zaretskii <eliz@gnu.org>
876
877 * w32.c (getpwuid): Change argument type to unsigned.
878 (struct w32_id): Change type of `rid' member to unsigned.
879 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
880 argument ID to unsigned. All callers changed.
881 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
882
e00553bf
EZ
8832009-03-20 Eli Zaretskii <eliz@gnu.org>
884
885 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
886 negative, produce a float value.
887
888 * dired.c (make_uid, make_gid): New functions.
889 (Ffile_attributes): Use them to avoid negative UID and GID.
890
f761d6b6
JB
8912009-03-20 Juanma Barranquero <lekktu@gmail.com>
892
893 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
894 (syms_of_keyboard) <command-hook-internal, input-method-function>:
895 Fix typos in docstrings.
896
d507f8d7
KH
8972009-03-19 Kenichi Handa <handa@m17n.org>
898
899 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
900 changed, use font_load_for_lface to get a new font object.
901 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
902
903 * frame.c (x_set_font): Handle the case that ARG is a cons.
904
c68845e0
GM
9052009-03-19 Glenn Morris <rgm@gnu.org>
906
907 * fileio.c (Fsubstitute_in_file_name): Doc fix.
908
bfa49dd1
CY
9092009-03-19 Chong Yidong <cyd@stupidchicken.com>
910
911 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
912
8458d4c1
KH
9132009-03-19 Kenichi Handa <handa@m17n.org>
914
915 * charset.c (load_charset_map_from_file): When a mapfile can't be
916 loaded, signal an error.
917
78e7d1fe
EZ
9182009-03-18 Eli Zaretskii <eliz@gnu.org>
919
920 * dired.c (Ffile_attributes): Make sure UID and GID are always
921 positive, even if the value is too large for a positive EMACS_INT.
922 Doc fix.
923
924 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
925
5da9fdfa
YM
9262009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
927
928 * xmenu.c (xdialog_show): Move Fredisplay call ...
929 (Fx_popup_dialog): ... here.
930
7519c40d
SM
9312009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
932
933 * dired.c (file_name_completion): Disable the first optimization just
934 installed, since it is not implemented correctly.
935
2cd298e2
SM
9362009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
937
938 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 939 only if the entry can affect bestmatch.
2cd298e2
SM
940 Stop the search early, as Ftry_completion already does.
941
48d37adf
CY
9422009-03-17 Chong Yidong <cyd@stupidchicken.com>
943
e10c9c93 944 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 945
9286b16a
CY
9462009-03-15 Chong Yidong <cyd@stupidchicken.com>
947
948 * keyboard.c (parse_menu_item): Don't display remappings as menu
949 equivalent bindings (Bug#788).
950
f7b146dc
JR
9512009-03-15 Jason Rumney <jasonr@gnu.org>
952
953 * w32term.h (WM_EMACS_PAINT): New message.
954 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
955 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
956 before passing to lisp thread. (Bug#950)
957
f761d6b6 9582009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 959
d93f9575
CY
960 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
961 variable as it was never reset.
962 (ns_term_init): Remove initialization of Lisp-settable defaults
963 and ns_expand_space.
964 (-setPanelFromDefaultValues): Remove ns_expand_space.
965 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
966 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
967 i.e. no additional spacing, similar to Carbon port.
968
d93f9575
CY
969 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
970 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 971
305018ec
JD
9722009-03-14 Jan Djärv <jan.h.d@swipnet.se>
973
974 * sound.c (alsa_configure): Remove call to deprecated
975 snd_pcm_sw_params_set_xfer_align.
976
f761d6b6 9772009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
978
979 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
980 after clicking in a detached tool bar.
981 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
982
46e722a9
SM
9832009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
984
348db3dd
SM
985 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
986 int/Lisp_Object mixup).
46e722a9 987
a3d16f39
KH
9882009-03-13 Kenichi Handa <handa@m17n.org>
989
990 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 991 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
992 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
993 (set_fontset_font): Change ARG to a vector. Handle range_list in
994 ARG correctly.
995 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 996 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
997 the above change.
998 (fontset_from_font): Fix previous change.
fe24f56a 999 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
1000 entry. If FONTSET is the default fontset, don't set the extra
1001 slot of the returning char-table.
1002
b066e6b6
JB
10032009-03-12 Juanma Barranquero <lekktu@gmail.com>
1004
1005 * nsfns.m (Fx_close_connection): Doc fix.
1006 (Fns_do_applescript): Reflow docstring.
1007 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
1008 (Fx_display_pixel_width, Fx_display_pixel_height)
1009 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
1010 Fix typos in docstrings.
1011 (Fns_set_alpha): Fix typos in error messages.
1012
d472514e 10132009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 1014
d472514e 1015 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
1016 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
1017 were used for such events.
1018
d472514e
JB
1019 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
1020 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 1021
d472514e 1022 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
1023 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
1024
fb930676
KH
10252009-03-11 Kenichi Handa <handa@m17n.org>
1026
ff85581a
KH
1027 * font.h (font_open_by_spec): Extern it.
1028
c50b7e98
KH
1029 * font.c (font_open_by_spec): New function.
1030 (font_open_by_name): Use font_open_by_spec.
1031
fb930676
KH
1032 * frame.c (x_set_font): When ARG is a font-object, don't alter the
1033 fontset of the frame.
1034
1035 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
1036 modify the default font of frames that use this fontset.
1037 (num_auto_fontsets): New variable.
1038 (fontset_from_font): Use num_auto_fontsets to decide a fontset
1039 name. Be sure to set FONTSET_ASCII to the correct font name.
1040 (update_auto_fontset_alist): New function.
1041
df4e8455
JB
10422009-03-11 Juanma Barranquero <lekktu@gmail.com>
1043
1044 * makefile.w32-in: Update dependencies.
1045
0a375797
AR
10462009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
1047
1048 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
1049
61313fa3
SM
10502009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
1051
1052 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
1053
b55103fb
CY
10542009-03-10 Chong Yidong <cyd@stupidchicken.com>
1055
1056 * lread.c (Feval_buffer): Doc fix.
1057
dde2559c
KH
10582009-03-09 Kenichi Handa <handa@m17n.org>
1059
1060 * charset.c (Qfile_name_handler_alist): Extern it.
1061 (load_charset_map_from_file): Temporarily bind
1062 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
1063
df4e8455 10642009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 1065
47f588bb
GM
1066 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
1067 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 1068
4ddf94bd
AR
10692009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
1070
4c9bdfc2
AR
1071 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
1072 (x_set_window_size): Change back to calculated method of setting
1073 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
1074 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
1075 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
1076
fe41ae9e
AR
1077 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
1078
4c9bdfc2
AR
1079 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
1080 accelerator in parens under GNUstep.
1081
825d0875
KH
10822009-03-06 Kenichi Handa <handa@m17n.org>
1083
1084 These changes are to detect incorrect composition sequence without
f3b3be74 1085 looking ahead the source. (Bug#2370)
825d0875
KH
1086
1087 * coding.h: Include "composite.h".
1088 (enum compisition_state): New enum.
1089 (struct compisition_status): New struct.
1090 (struct iso_2022_spec): New member cmp_status.
1091 (struct emacs_mule_spec): New struct.
1092 (struct coding_system): New members ctext_extended_segment_len and
1093 embedded_utf_8. Change the union member
1094 spec.emacs_mule_full_support to spec.emacs_mule.
1095
1096 * coding.c (CODING_ISO_CMP_STATUS): New macro.
1097 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 1098 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
1099 (ADD_COMPOSITION_DATA): New arg nbytes.
1100 (emacs_mule_char): New arg cmp_status.
1101 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
1102 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
1103 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
1104 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
1105 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
1106 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
1107 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
1108 (EMACS_MULE_COMPOSITION_END): New macro.
1109 (emacs_mule_finish_composition): New function.
1110 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
1111 (decode_coding_emacs_mule): Avoid long looking ahead while
1112 handling composition.
1113 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
1114 (ENCODE_COMPOSITION_RULE): New macro.
1115 (finish_composition): New function.
1116 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
1117 (DECODE_COMPOSITION_START): New implementation.
1118 (DECODE_COMPOSITION_END): Likewise.
1119 (STORE_COMPOSITION_RULE): New macro.
1120 (decode_coding_iso_2022): Avoid long looking ahead while handling
1121 composition, CTEXT extended segment, and embedded UTF-8.
1122 (setup_coding_system): For a coding of type iso-2022, reset
1123 CODING_ISO_EXTSEGMENT_LEN (coding) and
1124 CODING_ISO_EMBEDDED_UTF_8 (coding).
1125 (get_translation): Delete arguments last_block, from_nchars,
1126 to_nchars. Callers changed.
1127 (produce_chars): Don't modify charbuf. Adjusted for the change of
1128 get_translation.
98a326f7 1129 (produce_composition): Adjust for the new annotation sequence.
825d0875 1130 (handle_composition_annotation): Likewise.
98a326f7 1131 (consume_chars): Adjust for the change of get_translation.
825d0875 1132
ccbc4452
AR
11332009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
1134
4ddf94bd 1135 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 1136
988a7ddb
KH
11372009-03-05 Kenichi Handa <handa@m17n.org>
1138
1139 * font.c (font_select_entity): New function.
1140 (font_find_for_lface): Use font_select_entity to select a font.
1141
1142 * fontset.c (fontset_find_font): If a font found without
a8a3728b 1143 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
1144 font with C restriction.
1145
98a326f7 11462009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 1147
be1bce46 1148 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 1149
10ea2b82
JR
11502009-03-04 Jason Rumney <jasonr@gnu.org>
1151
2c93b248 1152 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 1153 characters that have already been read. (Bug#2569)
2c93b248 1154
10ea2b82
JR
1155 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
1156 Log an error message if check_image_size failed.
1157 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 1158 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 1159
71a0c011
EZ
11602009-03-02 Eli Zaretskii <eliz@gnu.org>
1161
1162 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
1163 when decoding process output.
1164
2f63bba8
RS
11652009-03-01 Richard M Stallman <rms@gnu.org>
1166
1167 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
1168
1169 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
1170
0a9564cb
EZ
11712009-02-28 Eli Zaretskii <eliz@gnu.org>
1172
1173 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
1174 (decode_coding_emacs_mule, decode_coding_iso_2022)
1175 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
1176 (decode_coding_raw_text, decode_coding_charset)
1177 (setup_coding_system, decode_eol, decode_coding, consume_chars):
1178 Honor inhibit-eol-conversion. (Bug #2186)
1179
449148b3
JR
11802009-02-28 Jason Rumney <jasonr@gnu.org>
1181
1182 * coding.c (detect_coding_charset): If not checking latin extra,
1183 fail on characters between 0x80 and 0xA0. (Bug#2354)
1184
a4aee864
EZ
11852009-02-28 Eli Zaretskii <eliz@gnu.org>
1186
1187 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 1188 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 1189
d88bee5a
GM
11902009-02-27 Glenn Morris <rgm@gnu.org>
1191
1192 * callint.c (Finteractive): Doc fix.
1193
a808f22d
KH
11942009-02-27 Kenichi Handa <handa@m17n.org>
1195
1196 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
1197
caf8d60c
CY
11982009-02-27 Chong Yidong <cyd@stupidchicken.com>
1199
1200 * font.c (font_style_to_value): Set value for unknown symbols to
1201 100 instead of 255.
b61137ea
CY
1202 (weight_table, slant_table, width_table): Treat "unspecified" as
1203 the default value.
caf8d60c 1204
1a0de25c
JB
12052009-02-26 Juanma Barranquero <lekktu@gmail.com>
1206
1207 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
1208
8fc45744
JB
12092009-02-25 Juanma Barranquero <lekktu@gmail.com>
1210
107bd7d1
JB
1211 * lread.c (Fload): Stop checking Vloads_in_progress and signal
1212 error as soon as a recursive load is detected.
8fc45744 1213
f097e223
AR
12142009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
1215
1216 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
1217 before caching.
1218
8810a12f
KH
12192009-02-24 Kenichi Handa <handa@m17n.org>
1220
1221 * fontset.c (fontset_find_font): Fix the condition for checking
1222 unavailable font.
1223
2c7d1565
GM
12242009-02-24 Glenn Morris <rgm@gnu.org>
1225
1226 * xfaces.c (Finternal_set_font_selection_order): Remove leading
1227 whitespace that confuses documentation.
1228
a20878b6
MB
12292009-02-23 Miles Bader <miles@gnu.org>
1230
1231 * process.c (Flist_system_processes, Fprocess_attributes)
1232 (syms_of_process): Rename `system-process-attributes' to
1233 `process-attributes'.
1234
b3b58c01
AS
12352009-02-22 Andreas Schwab <schwab@linux-m68k.org>
1236
1b3b981b
AS
1237 * coding.h (struct coding_system): Make safe_charsets a pointer to
1238 unsigned char.
1239 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
1240 being 255.
1241 (SAFE_CHARSET_P): Likewise.
1242 (setup_iso_safe_charsets): Properly setup safe_charsets.
1243 (Fdefine_coding_system_internal): Likewise.
1244 (setup_coding_system): Likewise. Remove unneeded casts.
1245 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
1246 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
1247 unneeded casts.
1248
b3b58c01
AS
1249 * insdel.c (del_range_2): Don't modify gap contents when called
1250 from decode_coding_object. (Bug#1809)
1251
0b6f228c
CY
12522009-02-21 Chong Yidong <cyd@stupidchicken.com>
1253
1254 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
1255 Qfont_object.
1256 (Ftype_of): Recognize font objects.
1257
1258 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
1259
1260 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
1261 moved to data.c.
1262
52f8870b
AR
12632009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
1264
1265 * nsterm.m (x_make_frame_invisible): Unset async_visible,
1266 async_iconified. Based on a patch by Christian Lynbech
1267 <christian.lynbech@tieto.com>.
1268 (EmacsView-windowDidMiniaturize:): Unset async_visible.
1269
7087d5e9
GM
12702009-02-20 Glenn Morris <rgm@gnu.org>
1271
1272 * syntax.c (Fskip_chars_forward): Fix doc typo.
1273
41d2ceef
CY
12742009-02-20 Chong Yidong <cyd@stupidchicken.com>
1275
1276 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
1277
1a3b7ca6
CY
12782009-02-19 Chong Yidong <cyd@stupidchicken.com>
1279
1280 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
1281
73cce38d
KH
12822009-02-19 Kenichi Handa <handa@m17n.org>
1283
1284 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 1285 Don't overflow coding->carryover. (Bug#2370)
73cce38d 1286
a51092ee
DN
12872009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
1288
1289 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
1290
c423ecca
KH
12912009-02-18 Kenichi Handa <handa@m17n.org>
1292
1293 * font.c (font_check_otf_features): Fix handling of `nil' element.
1294 (Ffont_spec): Describe :lang and :otf in the docstring.
1295
4c1958f4
AS
12962009-02-16 Andreas Schwab <schwab@suse.de>
1297
1298 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
1299 string.
1300
5704f39a
KH
13012009-02-16 Kenichi Handa <handa@m17n.org>
1302
1303 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 1304 (Bug#1723)
5704f39a 1305
8f0085aa
CY
13062009-02-14 Chong Yidong <cyd@stupidchicken.com>
1307
a057d86a 1308 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
1309
1310 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
1311 (handle_line_prefix): Suppress wrapping of wrap prefixes.
1312
aff01dd9
EZ
13132009-02-14 Eli Zaretskii <eliz@gnu.org>
1314
1315 * msdos.c (MAX_SCREEN_BUF): New macro.
1316 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
1317 Encode the entire run of glyphs sharing the same face, instead of
1318 doing that one glyph at a time (fixes a bug with displaying
1319 double-size characters).
1320
ba301db3
AR
13212009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
1322
1323 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
1324
1325 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
1326 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 1327 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
1328
1329 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 1330 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 1331
51d861de
SM
13322009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
1333
1334 * keyboard.c (adjust_point_for_property): Allow stopping betwen two
1335 invisible areas.
1336
7fed8996
JR
13372009-02-12 Jason Rumney <jasonr@gnu.org>
1338
631ea4fb
JR
1339 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
1340 (add_font_entity_to_list): Call check_face_name even when family
1341 is unspecified.
1342
cb4a3e42
JR
1343 * w32term.c (x_display_pixel_height, x_display_pixel_width):
1344 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 1345 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 1346
7fed8996 1347 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 1348 raster fonts. (Bug#2219)
7fed8996 1349
895416e3
KH
13502009-02-12 Kenichi Handa <handa@m17n.org>
1351
1352 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
1353 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
1354 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 1355 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
1356 (find_automatic_composition): While looking forward and backward,
1357 check static composition. Fix where to stop looking forward.
1358 (composition_adjust_point): Fix checking of static composition.
1359 (Fcomposition_get_gstring): Pay attention to
1dacf998 1360 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
1361
1362 * lisp.h (fast_looking_at): Extern it.
1363
1364 * search.c (fast_looking_at): New function.
1365
51d861de 1366 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
1367 <struct glyph>.u.cmp.to.
1368 (append_composite_glyph): Likewise.
1369
51d861de 1370 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
1371 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
1372 composition.
51d861de 1373 (append_composite_glyph): Adjust for the change of
895416e3
KH
1374 <strcut glyph>.u.cmp.to.
1375
8510724d
JB
13762009-02-11 Juanma Barranquero <lekktu@gmail.com>
1377
1378 * casetab.c (init_casetab_once):
1379 * coding.c (ALLOC_CONVERSION_WORK_AREA):
1380 * font.c (font_update_lface):
1381 * fontset.c (Fnew_fontset):
1382 * ftfont.c (ftfont_drive_otf):
1383 * xfont.c (xfont_open):
1384 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
1385
294fa707
SM
13862009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
1387
1388 * fileio.c (Fwrite_region): !NILP -> CONSP.
1389
b5bfebec
AS
13902009-02-10 Andreas Schwab <schwab@suse.de>
1391
1392 * process.c (send_process): Properly relocate pointer into data
adab88bd 1393 when using encoded data. (Bug#2272)
b5bfebec 1394
cb84a2be
KH
13952009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
1396
1397 * coding.c (detect_coding_charset): Fix previous change.
1398
89e09428
JR
13992009-02-08 Jason Rumney <jasonr@gnu.org>
1400
1401 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 1402 disappeared while hourglass was displayed. (Bug #2193)
89e09428 1403
4470a277
AS
14042009-02-07 Andreas Schwab <schwab@suse.de>
1405
1406 * unexelf.c (unexec): Fix error message.
1407
3175b12a
AR
14082009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
1409
1410 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 1411 when modal window is active. (Bug #2152)
3175b12a
AR
1412 (applicationShouldTerminate:): Remove now-unneeded while loop
1413 around NSRunAlertPanel.
1414
1415 * nsmenu.m (popupSession): New file-global variable.
1416 (pop_down_menu): End the popupSession before closing dialog.
1417 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
1418 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
1419 don't query NSApp for events (just sleep instead).
1420
8434d0b8
EZ
14212009-02-07 Eli Zaretskii <eliz@gnu.org>
1422
51d861de
SM
1423 * coding.c (syms_of_coding) <translation-table-for-input>:
1424 Modify doc string to discourage use for character code unification.
8434d0b8 1425
aa82edfd
CY
14262009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1427
1428 * atimer.c (run_timers): Update pending_atimers.
1429
2d283c7c
CY
14302009-02-06 Chong Yidong <cyd@stupidchicken.com>
1431
eb306cab
CY
1432 * image.c (svg_load_image): Fix last change.
1433
2d283c7c
CY
1434 * xfns.c (Fx_create_frame): Signal an error if no font is
1435 found (Bug#2147).
1436
4d8e170e
JB
14372009-02-05 Juanma Barranquero <lekktu@gmail.com>
1438
1439 * character.c (syms_of_character) <script-representative-chars>:
1440 Fix typo in docstring.
1441
c96169a0
AR
14422009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
1443
1444 * nsmenu.m (pop_down_menu): New function.
1445 (ns_popup_dialog): Call it on unwind.
1446 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
1447 call timer_check() (Bug#2154).
1448 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
1449 handling_signal is set.
1450 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
1451
1452 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G
1453
1454 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
1455
1456 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
1457
51d861de
SM
1458 * keyboard.c (poll_for_input_1, handle_async_input):
1459 Set handling_signal under HAVE_NS.
c96169a0 1460
aacd8ba1
GM
14612009-02-04 Glenn Morris <rgm@gnu.org>
1462
1463 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
1464
4cb75c4b
KH
14652009-02-04 Kenichi Handa <handa@m17n.org>
1466
1467 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
1468
1469 * charset.c (Fchar_charset): New optional arg restriction.
1470
1471 * coding.h (coding_system_charset_list): Extern it.
1472
1473 * coding.c (coding_system_charset_list): New function.
1474
1475 * composite.c: Include coding.h and termhooks.h.
1476 (composition_gstring_p): Fix for the terminal case.
1477 (composition_gstring_width): Likewise.
1478 (fill_gstring_body): Likewise.
1479 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
1480 the frame.
1481 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
1482 is within a composition.
867d4bb3 1483 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
1484
1485 * term.c (encode_terminal_code): Fix handling of composition.
1486 (produce_composite_glyph): For static composition, get pixel_width
1487 from struct composition.
1488
826ba17e
AS
14892009-02-02 Andreas Schwab <schwab@suse.de>
1490
1491 * unexelf.c (unexec): Handle unaligned bss offset.
1492
8ad093db
AR
14932009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
1494
1495 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
1496 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 1497
8ad093db
AR
1498 * keyboard.c (handle_interrupt): Don't call
1499 quit_throw_to_read_char() under NS.
d0a76a6e 1500
8ad093db
AR
1501 * blockinput.h: Remove NS-specific code.
1502
4d18a7a2
DN
15032009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
1504
db878925
DN
1505 * dispnew.c (window_change_signal): Don't try to get the size of a
1506 suspended tty frame.
1507 * term.c (Fresume_tty): Resize if the size has changed while the
1508 tty was suspended.
1509
4d18a7a2
DN
1510 * alloc.c (mark_stack): Properly conditionalize previous change.
1511
8984df7c
JB
15122009-01-30 Juanma Barranquero <lekktu@gmail.com>
1513
1514 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
1515 * w32term.c (w32_read_socket) [SYNC_INPUT]:
1516 Remove; this code is not used on Windows.
1517
75f4f1ac
EZ
15182009-01-30 Eli Zaretskii <eliz@gnu.org>
1519
1520 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
1521 EOLs that also has stray ^M characters.
1522
07a1e794
JB
15232009-01-30 Juanma Barranquero <lekktu@gmail.com>
1524
1525 * atimer.c (run_timers, alarm_signal_handler):
1526 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
1527 * w32inevt.c (w32_console_read_socket):
1528 * w32term.c (w32_read_socket):
1529 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
1530
a8b11cc9
CY
15312009-01-30 Chong Yidong <cyd@stupidchicken.com>
1532
1533 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
1534 Initialize it as a relative filename pattern.
1535 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
1536 (Fcall_process_region): Simplify temp file creation using
1537 temporary-file-directory.
1538
c279587b
EZ
15392009-01-29 Eli Zaretskii <eliz@gnu.org>
1540
1541 * msdos.c: Rename pending_signals to msdos_pending_signals.
1542 (sig_suspender, sigprocmask): Adjust.
1543
a8fe3242
CY
15442009-01-29 Chong Yidong <cyd@stupidchicken.com>
1545
1546 * keyboard.c (pending_signals): New var.
1547 (poll_for_input, input_available_signal, init_keyboard): Set it.
1548 (process_pending_signals): New function.
1549
1550 * lisp.h (QUIT): Check pending_signals instead of
1551 interrupt_input_pending. Use process_pending_signals.
1552
51d861de 1553 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 1554
51d861de 1555 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
1556
1557 * sysdep.c (emacs_write): Use process_pending_signals.
1558
1559 * xterm.c (XTread_socket): Update pending_signals.
1560
1561 * w32term.c (w32_read_socket): Update pending_signals.
1562
1563 * w32inevt.c (w32_console_read_socket): Update pending_signals.
1564
6570a1c4
KH
15652009-01-29 Kenichi Handa <handa@m17n.org>
1566
1567 * xftfont.c (xftfont_has_char): New function.
1568 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
1569
d72a4afa
AR
15702009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
1571
1572 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
1573 under GNUstep.
1574 (ns_query_color): New declaration.
1575
1576 * nsterm.m (ns_confirm_quit): New variable.
1577 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
1578 (EmacsApp-applicationShouldTerminate:): Use it.
1579 (EmacsPrefsController): Let user set it.
1580 (ns_query_color): New function.
1581 (ns_defined_color): Use it.
1582 (ns_initialize): Drop.
1583 (ns_term_init): Add two lines from ns_initialize(), and set
1584 input_interrupt_mode to nil.
1585
1586 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 1587 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 1588
9fe78804
KH
15892009-01-28 Kenichi Handa <handa@m17n.org>
1590
1591 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
1592 (fontset_get_font_group): Remember that no font-group is specified
1593 for C.
9fe78804 1594
fa57de36
CY
15952009-01-27 Chong Yidong <cyd@stupidchicken.com>
1596
930600e9
CY
1597 * fns.c (concat): Check for string overflow (bug#1787).
1598
fa57de36
CY
1599 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
1600 Quadruple undo limits (bug#1501).
1601
7179ce7b
KH
16022009-01-27 Kenichi Handa <handa@m17n.org>
1603
1604 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
1605 directly use GT_Get_Char_index.
1606
1607 * xftfont.c (struct xftfont_info): New member `index'.
1608
1609 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 1610 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 1611
5be8fcc0
CY
16122009-01-26 Kenichi Handa <handa@m17n.org>
1613
1614 * fontset.c (fontset_find_font): Fix handling of non-cons return
1615 value of fontset_get_font_group.
1616 (fontset_font): Revert last change.
1617
19ae3e61
JR
16182009-01-26 Jason Rumney <jasonr@gnu.org>
1619
1620 * w32font.c (w32font_list_internal): Return quickly if registry is
1621 unknown. Simplify final return.
1622 (add_font_entity_to_list): Break complex logic down into more
1623 manageable chunks. Move unknown registry check to
1624 w32font_list_internal.
1625
8612b71a
AR
16262009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
1627
1628 Changes to remove Feval calls from GUI under NS.
1629
d8038940
JB
1630 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
1631 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
1632 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
1633
1634 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
1635 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
1636 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
1637 instead of NON_ASCII_KEYSTROKE_EVENT.
1638 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
1639 (EmacsApp-applicationShouldTerminate:): Query user.
1640 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
1641 instead of Feval.
1642
1643 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
1644
1645 * keyboard.c (kbd_buffer_get_event): Check for it.
1646 (keys_of_keyboard): Define lispy keys for
1647 ns-put/unput-working-text.
1648
1649 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
1650 versions.
1651 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
1652
6288ae55
CY
16532009-01-25 Chong Yidong <cyd@stupidchicken.com>
1654
1655 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 1656 setting current_buffer directly. (Bug#2044)
6288ae55 1657
289e7f8f
CY
16582009-01-24 Chong Yidong <cyd@stupidchicken.com>
1659
5ce87308 1660 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 1661 any work. (Bug#1952, bug#1990).
5ce87308 1662
64cc3cf6 1663 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 1664
b3243e6f
AR
16652009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
1666
1667 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
1668 (ns_no_defaults): New declaration.
1669 (main): Use it.
e0d2e69a 1670
d900b2af 1671 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 1672
d900b2af 1673 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 1674
d900b2af
AR
1675 * nsterm.m (ns_no_defaults): New variable.
1676 (ns_initialize): Don't read defaults when ns_no_defaults.
1677 (EmacsView-readSelectionFromPasteboard:)
1678 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 1679 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
1680 (ns_dumpglyphs_stretch): New function.
1681 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 1682 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 1683
e0d2e69a
AR
1684 * nsimage.m (setPixmapData:): Set to ignore image DPI.
1685
3ac71f5d
CY
16862009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
1687
1688 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
1689 call for Sparc64.
1690
3fe53a83
AR
16912009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
1692
1693 * nsfns.m:
1694 * nsgui.h:
1695 * nsmenu.m:
1696 * nsselect.m:
1697 * nsterm.h:
1698 * nsterm.m: Remove '23' comments that indicated code added during
1699 update from emacs-20 -> emacs-23.
1700
10f87c6f 17012009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
1702
1703 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 1704 ns_alternate_modifier. (Bug#1217)
a3b53a85 1705
c7cef62d
AR
1706 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
1707 Display all shortcuts, including those w/o super modifier.
1708
575fb8bd
AR
1709 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
1710
918b848b
CY
17112009-01-22 Chong Yidong <cyd@stupidchicken.com>
1712
1713 * fileio.c (Vwrite_region_post_annotation_function)
1714 (Vwrite_region_annotation_buffers): New vars.
1715 (build_annotations_unwind): Just reset
1716 Vwrite_region_annotation_buffers.
1717 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
1718 Call write-region-post-annotation-function.
1719 (build_annotations): Add to Vwrite_region_annotation_buffers if
1720 buffer changes.
1721
a39e2539
AR
17222009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
1723
1724 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
1725 Tiger.
51d861de
SM
1726 * nsfns.m (ns_do_applescript):
1727 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 1728
35ed44db
AR
17292009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
1730
1731 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
1732
cbe0b5bf
AR
17332009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
1734
1735 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 1736
6049d3a0
AR
1737 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
1738
1739 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
1740 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
1741 handle Ctrl-tab. (Bug#1841)
1742 (ns_get_color): Use unsigned long long for scanned hex string value.
1743 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 1744 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 1745 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 1746 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 1747 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 1748 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 1749 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 1750
d3810c21 1751 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 1752 DPI. (Bug#1316)
d3810c21
AR
1753 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
1754 values in onTiger section.
4c7077c3 1755
e301e634
CY
17562009-01-19 Chong Yidong <cyd@stupidchicken.com>
1757
7f82490b
CY
1758 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
1759 Check return value of font_spec_from_name.
64cc3cf6 1760 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
1761
1762 * font.c (font_spec_from_name): Return Qnil if font name could not
1763 be parsed.
1764 (font_parse_name): Treat a `?' character as part of an XLFD.
1765
e301e634
CY
1766 * fns.c (Fsubstring): Doc fix.
1767
1c0db158
KH
17682009-01-19 Kenichi Handa <handa@m17n.org>
1769
51d861de 1770 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
1771 (ftfont_list): Likewise.
1772
acf20901
JB
17732009-01-18 Juanma Barranquero <lekktu@gmail.com>
1774
fff4e459
JB
1775 * dbusbind.c (Fdbus_register_signal):
1776 * process.c (conv_sockaddr_to_lisp):
1777 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
1778
acf20901
JB
1779 * callproc.c (Fgetenv_internal): Doc fix.
1780
e7abcdfb
CY
17812009-01-16 Chong Yidong <cyd@stupidchicken.com>
1782
1783 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
1784 it is not even used.
1785
b60861e6
GM
17862009-01-16 Glenn Morris <rgm@gnu.org>
1787
1788 * font.c (Ffont_variation_glyphs): Silence compiler.
1789
8db52afe
JB
17902009-01-15 Juanma Barranquero <lekktu@gmail.com>
1791
1792 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
1793 Reported by David Robinow <drobinow@gmail.com>.
1794
4cddb209
KH
17952009-01-15 Kenichi Handa <handa@m17n.org>
1796
51d861de 1797 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 1798
f247f67b
JR
17992009-01-14 Jason Rumney <jasonr@gnu.org>
1800
1801 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 1802 never a fontset. (Bug#1562)
f247f67b 1803
f56a4450
KH
18042009-01-14 Kenichi Handa <handa@m17n.org>
1805
1806 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 1807 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 1808
4e99855e
CY
18092009-01-13 Chong Yidong <cyd@stupidchicken.com>
1810
1811 * font.c (font_clear_prop): If clearing the family, clear the font
1812 width index too.
1813
fff4e459 1814 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 1815
24f01470
JB
18162009-01-12 Juanma Barranquero <lekktu@gmail.com>
1817
1818 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
1819 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
1820 functions, use sizeof.
1821
a41240a3
MR
18222009-01-12 Martin Rudalics <rudalics@gmx.at>
1823
1824 * keyboard.c (read_char): Fix case where last_nonmenu_event
1825 returned a bad value with submenus. (Bug#447)
1826
944636b8
CY
18272009-01-12 Chong Yidong <cyd@stupidchicken.com>
1828
1829 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
1830 family, clear the font width index too.
1831
0dad7c6f
JR
18322009-01-11 Jason Rumney <jasonr@gnu.org>
1833
1834 * keyboard.c (cmd_error_internal): Exit when errors occur before
1835 frame creation and not in daemon mode. (Bug#1836)
1836
7c2363af
CY
18372009-01-10 Chong Yidong <cyd@stupidchicken.com>
1838
1839 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
1840 of a display vector, backtrack.
1841 (try_window_reusing_current_matrix): Check glyph type before
1842 referencing charpos member.
1843
97b1b294
EZ
18442009-01-10 Eli Zaretskii <eliz@gnu.org>
1845
1846 Fix Bug #876:
1847
1848 * coding.c (inhibit_null_byte_detection): New variable.
1849 (detect_coding, detect_coding_system): Don't pay attention to null
1850 bytes if inhibit_null_byte_detection is non-zero.
51d861de 1851 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
1852 <inhibit-iso-escape-detection>: Doc fix.
1853
4624b6e3
JR
18542009-01-09 Jason Rumney <jasonr@gnu.org>
1855
1856 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 1857 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
1858 Only report Unicode Plane 2 fonts as unicode-sip.
1859
323b840c
CY
18602009-01-09 Chong Yidong <cyd@stupidchicken.com>
1861
51d861de
SM
1862 * xfaces.c (Fx_font_family_list): Delete function.
1863 Move compatibility version to faces.el.
323b840c 1864
51d861de 1865 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 1866
eba7400d
MR
18672009-01-09 Martin Rudalics <rudalics@gmx.at>
1868
1869 * frame.c (x_set_frame_parameters): Remember requested value for
1870 fullscreen before it's reset by the parameter handler.
1871
4b09796d
GM
18722009-01-09 Glenn Morris <rgm@gnu.org>
1873
1874 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 1875 (last_command_event): ... and update all users.
4b09796d
GM
1876 (last_input_char): For clarity, rename to...
1877 (last_input_event): ... and update all users.
1878 (last-command-char, last-input-char): Move to subr.el as aliases.
1879 * cmds.c, commands.h: Update for last_command_char rename.
1880
14ccea62
CY
18812009-01-08 Chong Yidong <cyd@stupidchicken.com>
1882
51d861de 1883 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 1884
5f004711
JR
18852009-01-08 Jason Rumney <jasonr@gnu.org>
1886
1887 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
1888 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
1889 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
1890 Don't declare.
fff4e459 1891 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
1892 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
1893
b71f6f73
KH
18942009-01-07 Kenichi Handa <handa@m17n.org>
1895
50b06221 1896 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 1897 remember the coding system used for decoding in
50b06221
KH
1898 coding_system (Bug#1039).
1899
b71f6f73 1900 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 1901 breaking the loop. (Bug#870)
b71f6f73
KH
1902 (decode_coding_utf_16, decode_coding_emacs_mule)
1903 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
1904 (decode_coding_charset): Likewise.
1905
56f668f7
MR
19062009-01-05 Martin Rudalics <rudalics@gmx.at>
1907
1908 * frame.c (x_set_frame_parameters): Make sure height (width) get
1909 applied when fullwidth (fullheight) is set. (Bug#1522)
1910
5da9424d
JB
19112009-01-04 Juanma Barranquero <lekktu@gmail.com>
1912
1913 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
1914 (utc_base): Declare as ULONGLONG, not long double.
1915 (convert_time_raw): Delete.
1916 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
1917 (initialize_utc_base): New function.
1918 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
1919 (convert_from_time_t): Use initialize_utc_base; compute result with
1920 64-bit arithmetic.
1921 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
1922
c4605e09
EZ
19232009-01-03 Eli Zaretskii <eliz@gnu.org>
1924
9acef61c 1925 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
1926 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
1927 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
1928 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
1929 [!subprocesses]: Define.
1930 (syms_of_process) [!subprocesses]: Intern and staticpro them.
1931 (Flist_system_processes, Fsystem_process_attributes)
1932 [!subprocesses]: Call list_system_processes and
1933 system_process_attributes instead of returning Qnil.
1934
9acef61c
JB
1935 * dosfns.c (system_process_attributes, list_system_processes):
1936 New functions.
c4605e09
EZ
1937
1938 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
1939
1940 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
1941 Don't use the default (no-op) implementation.
1942
8b7d0a16
JR
19432009-01-03 Jason Rumney <jasonr@gnu.org>
1944
a6d46bc1
JR
1945 * keyboard.c (parse_modifiers_uncached): Wheel events are
1946 clicks (bug#687).
1947
8b7d0a16
JR
1948 * w32term.c (x_query_colors, x_query_color): New functions.
1949
1950 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
1951 (svg_load_image): Cast returned pointers from dynamically loaded
1952 functions. Eliminate W32 specific code.
1953
bfe11752
DN
19542009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
1955
89e2438a
DN
1956 * nsfns.m (x_set_foreground_color, x_set_background_color)
1957 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
1958 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
1959 x_ prefix instead of ns_. Update references.
1960 (syms_of_nsfns): Add a FIXME comment.
1961
1962 * nsterm.m (x_set_cursor_type): New prototype.
1963 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
1964
bfe11752
DN
1965 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
1966 for Solaris instead of incorrectly providing Qutime and Qcutime.
1967
031da700
EZ
19682009-01-02 Eli Zaretskii <eliz@gnu.org>
1969
1970 * w32.c (process_times): Compute sum of utime and stime.
1971 (system_process_attributes): Add Qtime to the alist.
1972
1973 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
1974 and add them to the alist.
1975
1976 * process.c (top level) <Qtime, Qctime>: New variables.
1977 (syms_of_process): staticpro them.
1978 (Fsystem_process_attributes): Add their documentation to the doc
1979 string.
1980
1981 * process.h: Declare Qtime and Qctime.
1982
df23bf08
JR
19832009-01-02 Jason Rumney <jasonr@gnu.org>
1984
9acef61c 1985 * image.c (Qgobject): New symbol.
df23bf08
JR
1986 (syms_of_image): Initialize it.
1987 (init_svg_functions): Load some functions from gobject library.
1988
5bbdf7aa
DN
19892009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
1990
1991 * frame.c (make_terminal_frame): Remove redundant code and useless
1992 block.
1993
63136da6
AS
19942009-01-01 Andreas Schwab <schwab@suse.de>
1995
1996 * process.c (conv_sockaddr_to_lisp): Add workaround for
1997 getsockname bug on BSD.
1998
9ef69046
CY
19992009-01-01 Chong Yidong <cyd@stupidchicken.com>
2000
d6fafbe0
CY
2001 * xfns.c (x_create_tip_frame): Set border width of the X window.
2002
51d861de 2003 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 2004
f9c34147
JR
20052009-01-01 Jason Rumney <jasonr@gnu.org>
2006
9acef61c 2007 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
2008 Don't block input, as per earlier xterm.c changes.
2009
f5497e45
AR
20102008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
2011
2012 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
2013 (ns_appkit_version_int): New function.
2014 (x-server-version): Use ns_appkit_version_int and follow 21+
2015 convention of returning 3 integers.
2016
c19cab20
KH
20172008-12-30 Kenichi Handa <handa@m17n.org>
2018
2019 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
2020 (CHAR_SURROGATE_PAIR_P): New macro.
2021
2022 * font.h (struct font_driver): New member get_variation_glyphs.
2023
9acef61c 2024 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
2025 (Ffont_variation_glyphs): New function.
2026 (syms_of_font): Defsubr it.
2027
2028 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
2029 ftfont_variation_glyphs.
2030 (setup_otf_gstring): New function.
2031 (ftfont_drive_otf): Use it.
2032 (ftfont_shape_by_flt): Handle variation selector.
2033 (ftfont_variation_glyphs): New function.
2034
28cd591f
MR
20352008-12-30 Martin Rudalics <rudalics@gmx.at>
2036
2037 * frame.c (Vemacs_iconified): Remove.
2038
7f714baf
JR
20392008-12-30 Jason Rumney <jasonr@gnu.org>
2040
2041 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 2042 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 2043
9d2d22ab
CY
20442008-12-30 Chong Yidong <cyd@stupidchicken.com>
2045
2046 * indent.c (Fvertical_motion): Don't advance iterator if we have
2047 reseated to the desired position.
2048
2049 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
2050 checking for pos match.
2051
545312c2
KH
20522008-12-30 Kenichi Handa <handa@m17n.org>
2053
1ede3eb6
KH
2054 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
2055 just get the low 8-bit of the code.
2056
545312c2
KH
2057 * font.c (font_intern_prop): Validate str as multibyte.
2058
bd7bbf29
DN
20592008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
2060
31e0750e
DN
2061 * dispextern.h (struct face): Move lface and hash from the middle
2062 of bitfields.
2063
bd7bbf29
DN
2064 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
2065
b5672e7c
DN
20662008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
2067
2068 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
2069 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
2070 instead of intervals.h.
2071
d704470f
AS
20722008-12-26 Andreas Schwab <schwab@suse.de>
2073
2074 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
2075 cons.
2076
54b33868
MR
20772008-12-26 Martin Rudalics <rudalics@gmx.at>
2078
2079 * textprop.c (Qminibuffer_prompt): New variable.
2080 (syms_of_textprop): Initialize it.
2081 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
2082 in minibuffer-prompt face. (Bug#1662)
2083
40b615d6
JR
20842008-12-25 Jason Rumney <jasonr@gnu.org>
2085
2086 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
2087
baae5c2d
JR
20882008-12-24 Jason Rumney <jasonr@gnu.org>
2089
2090 * ralloc.c (r_alloc_reset_variable): New function.
2091
2092 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 2093 record of what points where. (Bug#716)
baae5c2d 2094
a9051c88
DN
20952008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
2096
2097 * minibuf.c (read_minibuf): Follow the non-interactive case when
2098 running as a daemon, before detaching.
2099
8b146312
AS
21002008-12-22 Andreas Schwab <schwab@suse.de>
2101
2102 * buffer.c (init_buffer): Use realloc instead of xrealloc.
2103 * gtkutil.c (free_widget_value): Use xfree instead of free.
2104
56f2de10
MR
21052008-12-22 Martin Rudalics <rudalics@gmx.at>
2106
2107 * frame.c (delete_frame): New function derived from
2108 Fdelete_frame to handle Qnoelisp value for FORCE argument.
2109 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
2110 (Fdelete_frame): Call delete_frame. Remove line from doc-string
2111 saying that FORCE non-nil doesn't run `delete-frame-functions'.
2112 * frame.h: Extern delete_frame.
2113 * window.c (window_loop):
2114 * terminal.c (delete_terminal):
2115 * xterm.c (x_connection_closed):
2116 * xfns.c (Fx_hide_tip):
9acef61c 2117 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 2118
1fc200d6
JR
21192008-12-21 Jason Rumney <jasonr@gnu.org>
2120
2121 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
2122 when character maps to .notdef character.
2123
5e252df2
SM
21242008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
2125
2126 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
2127
99b72cc4
JR
21282008-12-20 Jason Rumney <jasonr@gnu.org>
2129
2130 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 2131 a graphical frame on Windows. (Bug#1325)
99b72cc4 2132
acc49a52
JD
21332008-12-20 Jan Djärv <jan.h.d@swipnet.se>
2134
2135 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
2136
6ea15123
CY
21372008-12-20 Chong Yidong <cyd@stupidchicken.com>
2138
2139 * minibuf.c (Fread_buffer): Doc fix.
2140
b2dab6c8
JR
21412008-12-20 Jason Rumney <jasonr@gnu.org>
2142
54ea0c87 2143 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 2144 server name in UNC paths. (Bug#719)
54ea0c87 2145
b2dab6c8 2146 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 2147 charbuf. (Bug#1035)
b2dab6c8 2148
6d1921be
DN
21492008-12-19 Daniel Engeler <engeler@gmail.com>
2150
2151 * sysdep.c (serial_configure): Fix typo.
2152
53934c98
DN
21532008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
2154
2155 * sysdep.c: Include alloca.h.
f4f634e8
DN
2156 (system_process_attributes): Add implementation for Solaris.
2157
2158 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 2159
06e111a6
DN
21602008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
2161
2162 Reorganize implementation of Flist_system_processes and
2163 Fsystem_process_attributes. No functional changes.
2164 * process.c: Don't #include pwd.h, grp.h and limits.h.
2165 (Flist_system_processes): Just call list_system_processes.
2166 (Fsystem_process_attributes): Just call system_process_attributes.
2167 (procfs_list_system_processes, time_from_jiffies)
2168 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
2169 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
2170
2171 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
2172 (list_system_processes): Rename from
2173 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
2174 Provide a do nothing implementation.
2175 (system_process_attributes): Rename from
2176 procfs_list_system_processes.
2177 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 2178 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
2179
2180 * w32.c (list_system_processes): Rename from
2181 w32_list_system_processes.
2182 (system_process_attributes): Rename from
2183 w32_system_process_attributes.
2184
2185 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
2186
2187 * process.h (w32_list_system_processes)
2188 (w32_system_process_attributes): Remove.
2189 (list_system_processes, system_process_attributes): New
2190 prototypes.
2191
6a705b23
KH
21922008-12-19 Kenichi Handa <handa@m17n.org>
2193
2194 * xfont.c (xfont_decode_coding_xlfd): New function.
2195 (xfont_encode_coding_xlfd): New function.
2196 (xfont_list_pattern): Decode XLFD by iso-8859-1.
2197 (xfont_list): Decode and encode XLFD by iso-8859-1.
2198 (xfont_match): Likewise.
2199 (xfont_list_family): Likewise.
2200 (xfont_open): Likewise.
2201
d66c0241 2202 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
2203 names are utf-8.
2204
d66c0241 2205 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
2206 names are utf-8.
2207
5a130941
JD
22082008-12-18 Jan Djärv <jan.h.d@swipnet.se>
2209
2210 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
2211 changed.
bfd20325
JD
2212 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
2213 clicked on a detached tool bar button.
5a130941 2214
fd95644b
DN
22152008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
2216
2217 * emacs.c (main): Print and error and exit when no data is read
2218 from the pipe.
2219
e6eee6ae
JR
22202008-12-17 Jason Rumney <jasonr@gnu.org>
2221
2222 * w32font.c (w32font_has_char): Always return -1.
2223
a35dd56b
KH
22242008-12-16 Kenichi Handa <handa@m17n.org>
2225
2226 * font.c (font_open_entity): Fix previous change.
2227
0e3635c2
DN
22282008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
2229
2230 * process.c: Include <limits.h>.
2231
d4835507 22322008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
2233
2234 * font.c (font_update_drivers): Fix mistake in reconstructing the
2235 driver list.
2236
22372008-12-16 Chong Yidong <cyd@stupidchicken.com>
2238
2239 * font.c (font_clear_cache): Fix format of font cache data.
2240
e2cbc401
CY
22412008-12-15 Chong Yidong <cyd@stupidchicken.com>
2242
2243 * xftfont.c (xftfont_open): Free Xft font pattern if
2244 XftFontOpenPattern fails.
2245
2246 * xterm.c (x_free_frame_resources): Remove extraneous call to
2247 free_frame_faces.
2248
b131d535
CY
22492008-12-13 Chong Yidong <cyd@stupidchicken.com>
2250
2251 * xterm.c (x_delete_display): Move xim_close_dpy call to
2252 x_delete_terminal.
2253 (x_delete_terminal): Call xim_close_dpy.
2254
e6df5336
JR
22552008-12-13 Jason Rumney <jasonr@gnu.org>
2256
2257 * w32font.c (intern_font_name): New function.
2258 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
2259 (w32font_open_internal, Fx_select_font): Decode font name.
2260 (fill_in_logfont, list_all_matching_fonts): Encode font name.
2261
2262 * w32font.h (intern_font_name): Declare new function.
2263
2264 * w32uniscribe.c (add_opentype_font_name_to_list):
2265 Use intern_font_name.
2266
20d68145
CY
22672008-12-13 Chong Yidong <cyd@stupidchicken.com>
2268
9f2554de
CY
2269 * frame.c (Fdelete_frame): Call free_font_driver_list.
2270
3d9bec9a
CY
2271 * font.c (free_font_driver_list): Implement missing function.
2272
20d68145
CY
2273 * w32term.c (w32_term_init): Don't initialize the image cache
2274 here; it will be done in init_frame_faces.
2275
2276 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
2277 (struct x_display_info): Remove unused member null_pixel. New
2278 member xim_callback_data.
2279
2280 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
2281 (xim_initialize): Save pointer to callback function data.
2282 (xim_close_dpy): Free callback function data. Call XCloseIM,
2283 reverting 2008-11-04 change by David Smith.
2284 (x_term_init): Don't initialize the image cache here; it will be
2285 done in init_frame_faces. Remove ancient "null_pixel" cruft.
2286 (x_delete_display): Free x_dnd_atoms member.
2287
96f9306b
KH
22882008-12-13 Kenichi Handa <handa@m17n.org>
2289
6dec9044
JB
2290 * font.c (font_rescale_ratio): Moved from xfaces.c.
2291 Argument type changed. Handle a font-spec too.
96f9306b 2292 (font_score): Check Vface_font_rescale_alist.
6dec9044 2293 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
2294
2295 * xfaces.c (font_rescale_ratio): Moved to font.c.
2296
8d5b4964
CY
22972008-12-13 Chong Yidong <cyd@stupidchicken.com>
2298
2299 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
2300
e6df5336
JR
23012008-12-12 Jason Rumney <jasonr@gnu.org>
2302
2303 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
2304 Vwindow_system_version to the real w32 major version.
2305
97c6058a
DN
23062008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
2307
2308 * term.c (init_tty): Move setting the terminal name before the
2309 potential user: maybe_fatal.
2310
ec4e88d7
CY
23112008-12-11 Chong Yidong <cyd@stupidchicken.com>
2312
d4835507
JB
2313 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
2314 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 2315
b4233ec9
JR
23162008-12-11 Jason Rumney <jasonr@gnu.org>
2317
8ec71e23 2318 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 2319 SYMBOL_CHARSET. (Bug#547)
8ec71e23 2320
b4233ec9 2321 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 2322 size for surrogates. (Bug#1096, bug#872)
b4233ec9 2323
011a0143
JB
23242008-12-11 Juanma Barranquero <lekktu@gmail.com>
2325
2326 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
2327
3c309f34
JB
23282008-12-11 Juanma Barranquero <lekktu@gmail.com>
2329
2330 * process.c (Fsystem_process_attributes, syms_of_process):
2331 Fix typo in name of Ssystem_process_attributes.
2332 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
2333
fedc6ab5
JB
23342008-12-11 Juanma Barranquero <lekktu@gmail.com>
2335
2336 * syntax.c (Fmodify_syntax_entry): Doc fix.
2337
ba3de0e8
JB
23382008-12-10 Juanma Barranquero <lekktu@gmail.com>
2339
2340 * font.c (Ffont_spec): Move usage to end of docstring.
2341
174f1c74
JR
23422008-12-10 Jason Rumney <jasonr@gnu.org>
2343
2344 * w32font.c (Qcham): New symbol.
2345 (font_supported_scripts): Add cham, and comments for other new
2346 scripts in bitfield from OpenType spec.
9d32f818
JR
2347 (add_font_entity_to_list): Limit unicode-sip fonts to those that
2348 contain characters beyond the bmp.
174f1c74 2349
7b649478
KH
23502008-12-10 Kenichi Handa <handa@m17n.org>
2351
2352 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 2353 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
2354 Qunicode_sip.
2355
2133e2d1
JB
23562008-12-10 Juanma Barranquero <lekktu@gmail.com>
2357
2358 * coding.c (QCdefault_char): Rename from QCdefalut_char.
2359 (Fcoding_system_put): Use QCdefault_char.
2360 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
2361
9af886ee
CY
23622008-12-09 Chong Yidong <cyd@stupidchicken.com>
2363
74d819eb
CY
2364 * xftfont.c (syms_of_xftfont): Fix typo.
2365
4ccfa1c0 2366 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 2367
7c19d3ae
DN
23682008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
2369
2370 * emacs.c (main): Close daemon_pipe on exec.
2371
567826bb
CY
23722008-12-08 Chong Yidong <cyd@stupidchicken.com>
2373
2374 * termchar.h (struct tty): New members termcap_term_buffer and
2375 termcap_strings_buffer.
2376
2377 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 2378 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
2379 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
2380 All callers changed.
2381 (init_tty): Store termcap data and string buffers in new struct
2382 tty members termcap_term_buffer and termcap_strings_buffer.
2383 (delete_tty): Free them.
4ccfa1c0 2384 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 2385
aa96c42b
SZ
23862008-12-07 Seiji Zenitani <zenitani@mac.com>
2387
2388 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 2389 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 2390
b7e1d896
CY
23912008-12-06 Chong Yidong <cyd@stupidchicken.com>
2392
2393 * coding.c (make_conversion_work_buffer): Disable buffer
2394 modification hooks in the work buffer.
2395
b5ec91a5
EZ
23962008-12-05 Eli Zaretskii <eliz@gnu.org>
2397
2398 * process.c (procfs_system_process_attributes): If `nread' has a
2399 negative value, assign zero to it.
2400
a5d2a52b
CY
24012008-12-05 Chong Yidong <cyd@stupidchicken.com>
2402
68c5540b 2403 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 2404
7bf1bb21
KH
24052008-12-05 Kenichi Handa <handa@m17n.org>
2406
2407 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
2408 second character is a combining character.
2409
2fdc7d00
EZ
24102008-12-05 Eli Zaretskii <eliz@gnu.org>
2411
2412 * process.c (procfs_system_process_attributes): Don't use cmd,
2413 cmdsize, and q without initializing them first.
2414
bf6bfba8
JR
24152008-12-04 Jason Rumney <jasonr@gnu.org>
2416
2417 * w32font.c (w32font_draw): Initialize orig_clip before getting
2418 it, and delete it when finished.
2419
a3b1a468
DN
24202008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
2421
2422 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
2423 case when running as a daemon before detaching.
2424
8b8be8eb
JB
24252008-12-03 Juanma Barranquero <lekktu@gmail.com>
2426
805f2638 2427 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 2428
b1bde622
KH
24292008-12-03 Kenichi Handa <handa@m17n.org>
2430
e500c47d
KH
2431 * font.c (font_at): Set `multibyte' at first.
2432
ca516334
KH
2433 * coding.c (decode_coding_charset): Check type of an element of
2434 vector VALIDS.
7bf1bb21 2435 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 2436
4ccfa1c0 2437 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
2438 (font_for_char): Likewise.
2439
1e5ecd37
CY
24402008-12-03 Chong Yidong <cyd@stupidchicken.com>
2441
d5b01609 2442 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
2443 (font_update_lface): Handle fonts with corrupted size specs,
2444 i.e. non-int and non-float.
d5b01609 2445
11e3a6e4 2446 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 2447 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 2448 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 2449
ab06788b
CY
2450 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
2451
1e5ecd37 2452 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 2453 underline_minimum_offset for underline position.
1e5ecd37 2454
63c125ab
DN
24552008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
2456
2457 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
2458
2459 * character.c (c_string_width): Specify the type for LEN.
2460
3a8406e1
KH
24612008-12-03 Kenichi Handa <handa@m17n.org>
2462
4ccfa1c0 2463 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 2464 (decode_coding_utf_8): Likewise.
4ccfa1c0 2465 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 2466 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 2467
651df7d9
CY
24682008-12-02 Chong Yidong <cyd@stupidchicken.com>
2469
2470 * keyboard.c (make_lispy_position): Only use PT if the selected
2471 window is current.
2472
1f625c6c
AS
24732008-12-02 Andreas Schwab <schwab@suse.de>
2474
f7741ce9
AS
2475 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
2476
1f625c6c
AS
2477 * doprnt.c (doprnt1): Fix size of charbuf.
2478
92bc2678
CY
24792008-12-02 Chong Yidong <cyd@stupidchicken.com>
2480
2481 * keyboard.c (timer_check): Revert last change.
2482
93b9e8cc
JB
24832008-12-02 Juanma Barranquero <lekktu@gmail.com>
2484
2485 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
2486
fd7a37d5
JB
24872008-12-01 Juanma Barranquero <lekktu@gmail.com>
2488
2489 * makefile.w32-in: Update dependencies.
2490 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
2491
c115043b
AS
24922008-12-01 Andreas Schwab <schwab@suse.de>
2493
2494 * font.c (register_font_driver): Use xmalloc.
2495 (font_put_frame_data): Likewise.
2496
f5668d2a
CY
24972008-12-01 Chong Yidong <cyd@stupidchicken.com>
2498
860d96be
CY
2499 * xfaces.c (realize_x_face): Make abort condition clearer.
2500
f5668d2a
CY
2501 * gtkutil.c (update_frame_tool_bar): Initialize variable.
2502
379c17e7
CY
25032008-11-30 Chong Yidong <cyd@stupidchicken.com>
2504
2505 * keyboard.c (timer_check): After a timer runs, ensure that the
2506 selected window's buffer is current.
2507
35f36d65
JB
25082008-11-30 Juanma Barranquero <lekktu@gmail.com>
2509
f952c61c
JB
2510 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
2511 It was accidentally restored by the Unicode merge.
2512
35f36d65
JB
2513 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
2514
b23077df
JB
25152008-11-29 Juanma Barranquero <lekktu@gmail.com>
2516
2517 * w32proc.c: Include "coding.h".
2518 (Fw32_short_file_name): Encode filename passed to Windows API.
2519 (Fw32_long_file_name): Encode filename passed to Windows API and
2520 decode back the result. (Bug#1433)
2521
b8ebe9dd
KH
25222008-11-29 Kenichi Handa <handa@m17n.org>
2523
8cc53f96
KH
2524 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
2525 not before accessing it.
2526
b8ebe9dd
KH
2527 * charset.c (Fdefine_charset_internal): After calculating
2528 min_char, max_char, and fastmap, copy the charset structure again.
2529 (encode_char): Fix the previous change.
2530
59bc82c0
SZ
25312008-11-28 Seiji Zenitani <zenitani@mac.com>
2532
2533 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
2534
2535 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
2536
2537 * nsterm.m (x_set_frame_alpha): New function.
2538
32247e3d
EZ
25392008-11-27 Eli Zaretskii <eliz@gnu.org>
2540
2541 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
2542
b003e5ff
JB
25432008-11-27 Juanma Barranquero <lekktu@gmail.com>
2544
2545 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
2546 pointer to check_face_name.
2547
708550f5
KH
25482008-11-27 Kenichi Handa <handa@m17n.org>
2549
2550 * category.h (SET_CATEGORY_SET): Call set_category_set.
2551 (set_category_set): Extern it.
2552
2553 * category.c (hash_get_category_set): New function.
2554 (Fmodify_category_entry): Adjusted for the change of
2555 char_table_ref_and_range. Call hash_get_category_set to get a
2556 category set to store in the table.
2557
2558 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
2559 Funify_charset.
2560
2ae37cf0 2561 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
2562 (DECODE_CHAR): Check if the decoder vector is ready.
2563 (ENCODE_CHAR): Check if the encoder char-table is ready.
2564 (maybe_unify_char): Extern it.
2565
2566 * charset.c (Vchar_unified_charset_table): Delete it.
2567 (inhibit_load_charset_map): New variable.
2568 (temp_charset_work): New variable.
2569 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
2570 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
2571 New macros.
2572 (load_charset_map): Meaning of control_flag changed. If
2573 inhibit_load_charset_map is nonzero, setup a table in
2574 temp_charset_work.
2575 (load_charset): New argument control_flag.
2576 (map_charset_for_dump): New function.
2577 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
2578 map_charset_for_dump.
2579 (Fdefine_charset_internal): If the charset method is MAP, load
2580 mapping tables by calling load_charset.
2581 (Funify_charset): Don't load a mapping table but directly set
2582 Vchar_unify_table.
2583 (maybe_unify_char): New function.
2584 (decode_char): Don't handle the deleted method MAP_DEFERRED.
2585 Handle the case of inhibit_load_charset_map being nonzero.
2586 (encode_char): Don't handle the deleted method MAP_DEFERRED.
2587 Handle the case of inhibit_load_charset_map being nonzero.
2588 (Fclear_charset_maps): Just free temp_charset_work.
2589 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
2590 variable.
2591
2592 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
2593 change of char_table_ref_and_range.
2594 (char_table_ref_and_range): Change the meaning of argument FROM
2595 and TO. Now the caller must provide initial values for *FROM
2596 and *TO.
2597
2598 * fontset.c (fontset_add): Adjusted for the change of
2599 char_table_ref_and_range.
2600 (fontset_get_font_group): Likewise.
2601 (Ffontset_info): Likewise.
2602
2603 * keymap.c (describe_vector): Adjusted for the change of
2604 char_table_ref_and_range. For char-table, put boundary between
2605 non-ASCII and 8-bit characters.
2606
2607 * print.c (print_object): For bool-vector, delete unnecessary
2608 check of ASCII_BYTE_P.
2609
9196133b
JR
26102008-11-26 Jason Rumney <jasonr@gnu.org>
2611
2612 * w32font.c (w32font_open_internal): Don't include external
9acef61c 2613 leading in font height. (Bug#879)
9196133b 2614
9f688acf
GM
26152008-11-26 Glenn Morris <rgm@gnu.org>
2616
2617 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
2618 redefinition with ifdef. (Bug#1383)
2619
90d19aff
AR
26202008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
2621
2622 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
2623
4ccfa1c0 26242008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
2625
2626 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
2627 New EmacsView methods.
2628 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
2629 Fixes bug #1048,1357,1414.
2630
26312008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
2632
2633 Fix bug #1362.
2634 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
2635 is not an indexed color.
2636 * nsterm.m (free_indexed_color): Add argument checking.
2637 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
2638
e7d5ecb3
CY
26392008-11-24 Chong Yidong <cyd@stupidchicken.com>
2640
2641 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
2642 Document confirm-after-completion value for
2643 minibuffer-completion-confirm.
2644
c285743c
JR
26452008-11-24 Jason Rumney <jasonr@gnu.org>
2646
2647 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
2648 warning.
2649
b0857706
JR
26502008-11-23 Jason Rumney <jasonr@gnu.org>
2651
2652 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
2653 restored before returning.
2654
2655 * w32font.c (check_face_name): New function.
2656 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 2657 fonts. (Bug#642)
b0857706 2658
ee50ff07
MR
26592008-11-22 Martin Rudalics <rudalics@gmx.at>
2660
2661 * buffer.c (Fswitch_to_buffer): Reword and mention new option
2662 confirm-nonexistent-file-or-buffer in doc-string.
2663
b8ff72fa
SM
26642008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
2665
2666 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
2667 Fix copy/paste typo. Add checks.
2668
cee53ed4
KH
26692008-11-21 Kenichi Handa <handa@m17n.org>
2670
2671 * coding.c (detect_coding_iso_2022): Reject invalid composition
2672 sequence.
2673 (DECODE_COMPOSITION_START): If the current source is the last
2674 block, and the current composition doesn't end, regard this
2675 sequence as invalid.
2676 (decode_coding_iso_2022): Handle invalid composition sequence.
2677
f6ef1e65
MR
26782008-11-20 Martin Rudalics <rudalics@gmx.at>
2679
2680 * window.c (coordinates_in_window): Don't return
2681 ON_VERTICAL_BORDER for the rightmost position of a mode/header
2682 line when the window is not the rightmost one. (Bug#1372)
2683
e08b1705
MR
26842008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
2685
2686 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
2687
ad98e89f
EZ
26882008-11-15 Eli Zaretskii <eliz@gnu.org>
2689
2690 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
2691 and bright_bg if noninteractive is non-zero.
2692
fb098a4b
CY
26932008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2694
2695 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
2696 x_draw_glyph_string_background.
2697
2698 * w32term.c (x_draw_glyph_string): Likewise.
2699
ce952b6e
CY
27002008-11-15 Chong Yidong <cyd@stupidchicken.com>
2701
2702 * xterm.c (x_draw_glyph_string): Stop drawing the background of
2703 the next glyph string once past the overhang width.
2704
2705 * nsterm.m (ns_draw_glyph_string): Likewise.
2706
2707 * w32term.c (x_draw_glyph_string): Likewise.
2708
26ea7079
CY
27092008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
2710
2711 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
2712 double file close.
2713
1c33c906
MR
27142008-11-14 Martin Rudalics <rudalics@gmx.at>
2715
2716 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
2717 dedicated status of window before attempting to display another
2718 buffer in it.
2719
8fc29035
JB
27202008-11-14 Juanma Barranquero <lekktu@gmail.com>
2721
2722 * msdos.c (Fmsdos_long_file_names):
2723 (syms_of_msdos) <dos-unsupported-char-glyph>:
2724 * dosfns.c (Fint86): Fix typos in docstrings.
2725
55fb4286
EZ
27262008-11-14 Eli Zaretskii <eliz@gnu.org>
2727
2728 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
2729
3fda0315
KY
27302008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
2731
2732 * puresize.h (BASE_PURESIZE): Increase to 1260000.
2733
7e849c17
CY
27342008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
2735
2736 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
2737
2738 * frame.h: Negative alpha means "don't touch".
2739
2740 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
2741
2742 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
2743
b9fd67bd
DN
27442008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
2745
2746 * hftctl.c:
2747 * chpdef.h:
2748 * acldef.h: Remove files used only for systems no longer supported.
2749
2750 * Makefile.in: Fix .o alphabetical ordering.
2751 (hftctl.o): Remove dependency, file removed.
2752 (keymap.o, print.o): Depend on charset.h.
2753
d5998e03
KH
27542008-11-10 Kenichi Handa <handa@m17n.org>
2755
2ae37cf0 2756 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 2757
be70e183
CY
27582008-11-08 Chong Yidong <cyd@stupidchicken.com>
2759
2760 * dired.c (file_name_completion): If completion_ignore_case is
2761 enabled, ignore case when checking completion-regexp-list.
2762
7cf94eac
EZ
27632008-11-08 Eli Zaretskii <eliz@gnu.org>
2764
2765 * vm-limit.c (get_lim_data): Fix last change.
2766
ee107a89
KH
27672008-11-08 Kenichi Handa <handa@m17n.org>
2768
2769 * character.c (Fget_byte): New function.
2770 (syms_of_character): Defsubr Fget_byte.
2771
5fd15622
CY
27722008-11-07 Chong Yidong <cyd@stupidchicken.com>
2773
2774 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
2775 cursor position is valid after scrolling.
2776
13d62fad
JB
27772008-11-06 Juanma Barranquero <lekktu@gmail.com>
2778
2779 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
2780
a1dd2936
GM
27812008-11-06 Glenn Morris <rgm@gnu.org>
2782
2783 * xterm.c (handle_one_xevent): Don't let popup menus cause
2784 mouse-autoselect-window related window switching. (Bug#1261)
2785
860cd236
CY
27862008-11-04 David Smith <davidsmith@acm.org> (tiny change)
2787
2788 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
2789
653a3150
AS
27902008-11-04 Andreas Schwab <schwab@suse.de>
2791
2792 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
2793
870f5cac
CY
27942008-11-03 Chong Yidong <cyd@stupidchicken.com>
2795
2796 * xfns.c (Fx_wm_set_size_hint): New function.
2797
1e02f3cb
MR
27982008-11-03 Martin Rudalics <rudalics@gmx.at>
2799
2800 * textprop.c (Fprevious_single_char_property_change): Return 0
2801 when there's no change in a string. (Bug#1301)
2802
e630dfc6
MR
28032008-11-02 Martin Rudalics <rudalics@gmx.at>
2804
2805 * frame.c (do_switch_frame): New argument NORECORD passed to
2806 Fselect_window.
2807 (Fselect_frame): New argument NORECORD passed to
2808 do_switch_frame.
2809 (Fset_frame_selected_window): New argument NORECORD passed to
2810 Fselect_frame.
2811 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
2812 in call of do_switch_frame.
2813 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
2814 Handle NORECORD argument in call of Fselect_frame.
2815 * lisp.h (do_switch_frame, Fselect_frame)
2816 (Fset_frame_selected_window): Adjust declarations.
2817 * window.c (select_frame_norecord): New function.
2818 (run_window_configuration_change_hook): Use it and call
2819 Fselect_frame with NORECORD set.
2820 (Fselect_window): Pass NORECORD to Fselect_frame.
2821 (Fset_window_configuration): Handle NORECORD argument in call of
2822 do_switch_frame.
2823 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
2824 Fset_frame_selected_window.
2825 * keyboard.c (command_loop_1): Handle NORECORD in call of
2826 Fselect_frame (currently ifdefd).
2827
9020b223
GM
28282008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
2829
2830 * emacs.c (USAGE2): Untabify.
2831
793ffee8
SM
28322008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
2833
2834 * composite.c (fill_gstring_header): Fix copy/paste typo.
2835
ab6d1131
MR
28362008-10-31 Martin Rudalics <rudalics@gmx.at>
2837
2838 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
2839 (Fother_window): Rename argument and rewrite doc-string.
2840 (select_window_norecord): Fix return value. (Bug#1276)
2841
601a9cf1
JB
28422008-10-30 Juanma Barranquero <lekktu@gmail.com>
2843
2844 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
2845 new frames overriding foreground for tooltips. Based on similar patch
2846 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
2847
813b0652
CY
28482008-10-29 Chong Yidong <cyd@stupidchicken.com>
2849
2850 * emacs.c (Fdaemon_initialized): Initialize nfd.
2851
4414f58f
MR
28522008-10-29 Martin Rudalics <rudalics@gmx.at>
2853
2854 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
2855 (Fwindow_text_height): Clarify doc-strings.
2856 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
2857 doc-string of window-scroll-functions.
2858
ecdcaa09
RS
28592008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
2860
2861 * category.c (syms_of_category): Fix typo in docstring.
2862
23fe745a
JB
28632008-10-28 Juanma Barranquero <lekktu@gmail.com>
2864
2865 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
2866 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
2867 Fix typos in docstrings.
2868
ff808935
DN
28692008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
2870
2871 * emacs.c (daemon_pipe): Make non-static.
2872 (IS_DAEMON): Move definition ...
2873 * lisp.h (IS_DAEMON): ... here.
2874 (daemon_pipe): Declare.
2875 (is_daemon): Remove.
2876 * dispnew.c (init_display): Use IS_DAEMON.
2877
fc012771
SM
28782008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
2879
2880 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
2881 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
2882
2883 * emacs.c (is_daemon): Remove.
2884 (main): Don't set is_daemon.
2885 (IS_DAEMON): New macro.
2886 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 2887 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
2888 parent exits.
2889 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
2890
d8bdbe6f
CY
28912008-10-27 Chong Yidong <cyd@stupidchicken.com>
2892
d1a072bf
CY
2893 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
2894 over-sized glyph, draw it with the default glyph width.
2895
e2e325aa
CY
2896 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
2897 glyph, draw it with the default glyph width.
2898
2899 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
2900 glyph, draw it with the default glyph width.
2901
d8bdbe6f
CY
2902 * xdisp.c (try_scrolling): When computing the distance from the
2903 scroll margin to PT, try moving some distance past the window
2904 bottom before giving up.
2905
7bfac547
MR
29062008-10-27 Martin Rudalics <rudalics@gmx.at>
2907
2908 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
2909 (Fset_window_buffer): Explain in doc-string that a window can be
2910 "strongly" dedicated to its buffer.
2911
4ff029f6
DN
29122008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
2913
2914 * emacs.c (daemon_name): New variable.
2915 (main): Deal with --daemon=SERVER_NAME.
2916 (Fdaemonp): Return a name if one was passed to --daemon.
2917
5790ef40
DN
29182008-10-26 Romain Francoise <romain@orebokech.com>
2919
f9bd0df9 2920 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
2921 (main): Create a pipe before forking, make the parent exit only after
2922 the child has closed its end of the pipe. Move closing the
2923 descriptors ...
2924 (Fdaemon_initialized): ... here. New function.
2925
f5385255
SM
29262008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
2927
4d632321
SM
2928 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
2929 the previous unoptimized table.
2930
f5385255
SM
2931 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
2932 the distinction between non-nil and non-t value of `dedicated'.
2933
6c56a0f3
CY
29342008-10-25 Chong Yidong <cyd@stupidchicken.com>
2935
2936 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 2937 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 2938
fec89261
MR
29392008-10-25 Martin Rudalics <rudalics@gmx.at>
2940
2941 * window.c (Fget_buffer_window, Fdelete_windows_on)
2942 (Freplace_buffer_in_windows): Make buffer argument optional and
2943 rename to buffer_or_name.
2944
34fcddd0
CY
29452008-10-24 Chong Yidong <cyd@stupidchicken.com>
2946
f5385255
SM
2947 * xdisp.c (handle_single_display_spec, handle_display_prop):
2948 Undo 2005-05-16 change.
34fcddd0
CY
2949 (handle_stop): Pop iterator if it's loaded with an empty string.
2950 (get_overlay_strings_1): Don't save iterator if it's loaded with
2951 an empty string (bug#1201).
2952
064766f2
KH
29532008-10-24 Kenichi Handa <handa@m17n.org>
2954
2955 * ftfont.c (ftfont_otf_features): Fix previous change.
2956 (ftfont_otf_capability): Check FeatureList.FeatureCount before
2957 calling ftfont_otf_features.
2958
f9bd0df9 29592008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
2960
2961 * font.c (font_match_p): Fix for the case that a vector of
2962 characters is in script-representative-chars.
2963
1dae9197
MA
29642008-10-24 Michael Albinus <michael.albinus@gmx.de>
2965
2966 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 2967 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
2968 (xd_read_queued_messages): Catch Qdbus_error from the macros.
2969 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
2970 macro. (Bug#1186).
2971
f9bd0df9 29722008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
2973
2974 * s/sol2-10.h: New file.
2975
878a4584
JB
29762008-10-23 Juanma Barranquero <lekktu@gmail.com>
2977
2978 * xdisp.c (fill_glyph_string): Fix typo in source (though the
2979 poor beast has survived 9+ years and the jump from xterm.c!).
2980
cd265ca6
MR
29812008-10-23 Martin Rudalics <rudalics@gmx.at>
2982
2983 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
2984 Reword doc-string.
f5385255 2985 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 2986
472a4dc9
JB
29872008-10-23 Juanma Barranquero <lekktu@gmail.com>
2988
2989 * character.c (syms_of_character) <script-representative-chars>:
2990 <unicode-category-table>: Doc fixes.
2991
159bd5a2
NF
29922008-10-23 Noah Friedman <friedman@splode.com>
2993
2994 * coding.c (make_conversion_work_buffer): Check that
2995 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
2996 Fget_buffer_create.
2997
49f9c344
KH
29982008-10-23 Kenichi Handa <handa@m17n.org>
2999
3000 * font.c (font_add_log): Check the values of extra properties.
3001
12bb3111
MR
30022008-10-22 Martin Rudalics <rudalics@gmx.at>
3003
3004 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
3005 Reword doc-string.
3006 (Fset_window_parameter): Use NILP.
3007 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 3008 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 3009
bbeb4e99
JB
30102008-10-22 Juanma Barranquero <lekktu@gmail.com>
3011
3012 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
3013
30142008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
3015
3016 * nsfns.m (ns_appkit_version): New function.
3017 (x-server-version): Use it.
3018 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
3019 (x-server-vendor): Don't check_ns().
3020
3021 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
3022
a9b555d3
JB
30232008-10-22 Juanma Barranquero <lekktu@gmail.com>
3024
3025 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
3026 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
3027
4626499f
KH
30282008-10-22 Kenichi Handa <handa@m17n.org>
3029
e3681952
KH
3030 * syntax.c (scan_words): Call word_boundary_p instead of comparing
3031 scripts.
3032
4626499f
KH
3033 * category.c (word_boundary_p): Check scripts instead of charset.
3034 Handle nil value in word-separating-categories and
3035 word-combining-categories.
3036 (syms_of_category): Fix docstrings of word-separating-categories
3037 and word-combining-categories.
3038
1560f91a
EZ
30392008-10-21 Eli Zaretskii <eliz@gnu.org>
3040
3041 * coding.c (Fencode_coding_region, Fdecode_coding_region)
3042 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
3043
f4668441
MR
30442008-10-21 Martin Rudalics <rudalics@gmx.at>
3045
3046 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
3047 Rename arg "buffer" to "buffer_or_name".
3048 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
3049 it optional.
3050 (no_switch_window): Remove since the return value is not used.
a9b555d3 3051 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
3052 Consider window as dedicated when Fwindow_dedicated_p returns a
3053 non-nil value.
3054 * lisp.h: Remove prototype for no_switch_window.
3055
fd75ddb2
JD
30562008-10-21 Jan Djärv <jan.h.d@swipnet.se>
3057
3058 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 3059 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 3060
07295713
KH
30612008-10-21 Kenichi Handa <handa@m17n.org>
3062
3063 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
3064 check Vlatin_extra_code_table.
3065
712adc82
EZ
30662008-10-20 Eli Zaretskii <eliz@gnu.org>
3067
3068 * fileio.c (Fset_file_modes): Doc fix.
3069
f549eb0b
MA
30702008-10-19 Michael Albinus <michael.albinus@gmx.de>
3071
3072 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
3073 in arrays.
3074
aac0c6e3
MR
30752008-10-19 Martin Rudalics <rudalics@gmx.at>
3076
3077 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
3078 Mention kill-buffer in doc-string.
3079 (Fset_window_buffer): Reinsert tem check removed in last commit.
3080 (Fenlarge_window, Fshrink_window): Have argument names and
3081 doc-string follow Elisp manual more closely.
3082
30832008-10-18 Eli Zaretskii <eliz@gnu.org>
3084
3085 * fileio.c (Fset_file_modes): Doc fix.
3086
30872008-10-18 Martin Rudalics <rudalics@gmx.at>
3088
3089 * window.c (Fwindow_width, Fset_window_start)
3090 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
3091 (Fdelete_windows_on, Freplace_buffer_in_windows):
3092 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
3093 (Fwindow_dedicated_p): Make window argument optional.
3094 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
3095 (Fset_window_buffer): Respect any non-nil dedicated value for
3096 window. Rename "buffer" argument to "buffer_or_name".
3097
30982008-10-18 Ulrich Mueller <ulm@gentoo.org>
3099
3100 * m/sh3.h: New file, machine description for SuperH.
3101
31022008-10-17 Martin Rudalics <rudalics@gmx.at>
3103
3104 * window.c (Fsplit_window): Rename arg horflag to horizontal.
3105
31062008-10-17 Kenichi Handa <handa@m17n.org>
3107
3108 * ftfont.c (ftfont_otf_features): Fix indexing
3109 gsub_gpos->FeatureList.Feature. Check the validity of indices.
3110
31112008-10-16 Magnus Henoch <mange@freemail.hu>
3112
3113 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
3114 (Fdbus_call_method_asynchronously): Ditto.
3115 This change makes C-h f display the argument list.
3116
31172008-10-16 Chong Yidong <cyd@stupidchicken.com>
3118
3119 * fileio.c (Fexpand_file_name): Doc fix.
3120
3121 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
3122 of :foreground and :background equivalent to unspecified (20.x
3123 compatibility).
3124
31252008-10-15 Eli Zaretskii <eliz@gnu.org>
3126
3127 * buffer.c (syms_of_buffer): Doc fix.
3128
31292008-10-14 Kenichi Handa <handa@m17n.org>
3130
3131 * font.c (font_clear_prop): When clearing font width, clear the
3132 average width field too.
3133
31342008-10-12 Andreas Schwab <schwab@suse.de>
3135
3136 * ftfont.c (ftfont_shape_by_flt): Make static.
3137 * ftfont.h (ftfont_shape_by_flt): Don't declare.
3138
3139 * font.c: Don't include <m17n-flt.h>.
3140
31412008-10-10 Eli Zaretskii <eliz@gnu.org>
3142
3143 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
3144
31452008-10-09 Eli Zaretskii <eliz@gnu.org>
3146
3147 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
3148 away code.
3149
31502008-10-09 Chong Yidong <cyd@stupidchicken.com>
3151
3152 * dispnew.c (update_text_area): Avoid looping due to large glyph
3153 overhangs (bug#1070).
3154
31552008-10-09 Kenichi Handa <handa@m17n.org>
3156
3157 * fontset.c (face_for_char): If face->fontset is negative, just
3158 return ascii_face.
3159
f5385255
SM
3160 * font.c (font_delete_unmatched): Fix previous change.
3161 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
3162
31632008-10-09 Martin Rudalics <rudalics@gmx.at>
3164
3165 * frame.c (Fraise_frame): On text-only terminals select frame in
3166 order to make it visible. (Bug#1061)
3167
31682008-10-08 Chong Yidong <cyd@stupidchicken.com>
3169
3170 * fontset.c (fontset_find_font): Check frame validity.
3171
31722008-10-07 Chong Yidong <cyd@stupidchicken.com>
3173
a9b555d3 3174 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
3175 (xg_display_close): Allow Emacs to close all displays (bug#985).
3176
31772008-10-06 Andreas Schwab <schwab@suse.de>
3178
f5385255 3179 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
3180
31812008-10-06 Chong Yidong <cyd@stupidchicken.com>
3182
f5385255 3183 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 3184
a9b555d3 3185 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
3186
3187 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
3188 during initialization.
3189
31902008-10-04 Eli Zaretskii <eliz@gnu.org>
3191
3192 * xdisp.c (redisplay_internal): If frame switched, redisplay the
3193 whole thing on MSDOS frames as well as on a TTY.
3194
3195 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
3196 well as for TTY.
3197 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
3198 well as on a TTY.
3199
3200 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
3201 as well as for TTY.
3202
3203 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
3204
3205 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
3206 MSDOS frames as well.
3207
32082008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
3209
3210 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
3211 correct arguments.
b71ac3dd 3212 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
3213
32142008-10-03 Glenn Morris <rgm@gnu.org>
3215
3216 * emacs.c (USAGE1): Add --daemon.
3217
32182008-10-02 Eli Zaretskii <eliz@gnu.org>
3219
3220 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
3221 100, so it's in percents as advertised.
3222
32232008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
3224
3225 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
3226 (ns_output.current_cursor, ns_output.desired_cursor)
3227 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
3228 (FRAME_NEW_CURSOR_COLOR): Remove.
3229
3230 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 3231 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
3232 enumeration (HOLLOW_BOX_CURSOR, etc.).
3233
3234 * nsterm.m (ns_frame_rehighlight): Remove commented code.
3235 (draw_window_cursor): Simplify code.
f5385255
SM
3236 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
3237 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 3238 updates manually.
a9b555d3
JB
3239 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
3240 Use core Emacs cursor types.
aac0c6e3 3241
b8ff72fa 3242 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
3243
32442008-10-02 Martin Rudalics <rudalics@gmx.at>
3245
3246 * process.c (Faccept_process_output): Fix doc-string.
3247
32482008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
3249
3250 * gmalloc.c (__sbrk): Also define for uClibc.
3251
3252 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
3253 for uClibc.
3254
32552008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
3256
3257 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
3258 styles.
3259 (nsfont_open): Reenable the cache.
3260
32612008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
3262
3263 * font.c (font_matching_entity): Reflect ATTRS in font selection.
3264 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
3265
32662008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
3267
3268 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
3269 a suspended terminal.
3270
32712008-09-30 Michael Albinus <michael.albinus@gmx.de>
3272
3273 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
3274
32752008-09-30 Eli Zaretskii <eliz@gnu.org>
3276
3277 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
3278
32792008-09-30 Chong Yidong <cyd@stupidchicken.com>
3280
3281 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
3282 in a continued line coincides with a line beginning.
3283
32842008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
3285
3286 * nsfont.m (nsfont_trait_distance): Fix bug.
3287 (nsfont_list): Return a list rather than a vector (syncs with Handa
3288 changes of 2008-05-14).
3289 (nsfont_open): Improve logging.
3290
32912008-09-29 Andreas Schwab <schwab@suse.de>
3292
3293 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
3294
32952008-09-28 Martin Rudalics <rudalics@gmx.at>
3296
3297 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
3298 name as char-resolve-modifiers.
3299 Reported by: Markus Triska <markus.triska@gmx.at>
3300
33012008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
3302
3303 * dispnew.c (init_display): Return earlier when running as a daemon.
3304
33052008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
3306
3307 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
3308
33092008-09-27 Eli Zaretskii <eliz@gnu.org>
3310
3311 * composite.c (Fcomposition_get_gstring)
3312 (Fcompose_region_internal, Fcompose_string_internal)
3313 (Ffind_composition_internal): Doc fix.
3314 (syms_of_composite) <compose-chars-after-function>: Doc fix.
3315 (syms_of_composite) <auto-composition-function>: Doc fix.
3316 (syms_of_composite) <composition-function-table>: Doc fix.
3317
33182008-09-25 Chong Yidong <cyd@stupidchicken.com>
3319
3320 * search.c (wordify): New argument for lax word-ends.
3321 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
3322
33232008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
3324
3325 * lisp.h (is_daemon): Declare.
3326 * dispnew.c (init_display): Do not try to initialize the terminal
3327 when running as a daemon.
3328
33292008-09-22 Chong Yidong <cyd@stupidchicken.com>
3330
3331 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
3332 x_display_pixel_height.
3333
33342008-09-22 Martin Rudalics <rudalics@gmx.at>
3335
3336 * undo.c (record_point): Don't call Fundo_boundary for first
3337 change. (Bug#731)
3338
33392008-09-22 Juanma Barranquero <lekktu@gmail.com>
3340
3341 * emacs.c (Fdaemonp): Doc fix.
3342
33432008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
3344
3345 * emacs.c (main): Place #ifdef in the proper place.
3346
33472008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
3348
3349 * emacs.c (standard_args): Add --daemon.
3350 (main): Disconnect from the terminal when --daemon is passed.
3351 (is_daemon): New variable.
3352 (Fdaemonp): New function.
3353 (syms_of_emacs): Defsubr it.
3354
33552008-09-20 Chong Yidong <cyd@stupidchicken.com>
3356
3357 * xdisp.c (get_next_display_element): Handle string display
3358 correctly when checking for the end of a box run.
3359
33602008-09-20 Glenn Morris <rgm@gnu.org>
3361
3362 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
3363 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
3364 (Frename_file): Avoid copying to trash if a rename involves
3365 a delete. (Bug#964).
3366
33672008-09-20 Eli Zaretskii <eliz@gnu.org>
3368
3369 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
3370 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
3371 frames as well as termcap frames.
3372 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
3373 get_named_tty.
3374
33752008-09-19 Eli Zaretskii <eliz@gnu.org>
3376
3377 * process.c (procfs_system_process_attributes): Fix cmdline in
3378 case /proc/PID/cmdline is empty.
3379
3380 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
3381 x_display_pixel_height.
3382
33832008-09-19 Juanma Barranquero <lekktu@gmail.com>
3384
3385 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
3386
3387 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
3388 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
3389
33902008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
3391
3392 * dispextern.h (struct it): Move line_wrap away from the middle of
3393 bitfields. Move voffset in struct iterator_stack_entry after the
3394 bitfields. Move tab_width near after another short.
3395
33962008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
3397
3398 * frame.h (struct frame): Move alpha from the middle of bitfields.
3399
3400 * window.h (struct window): Move frozen_window_start_p after the
3401 rest of the bitfields to reduce padding.
3402
34032008-09-18 Chong Yidong <cyd@stupidchicken.com>
3404
3405 * xterm.h (x_display_info): Remove `height' and `width' members.
3406
3407 * nsterm.h (ns_display_info): Remove `height' and `width' members.
3408
3409 * w32term.h (w32_display_info): Remove `height', `width',
3410 `height_in', and `width_in' members.
3411
b8ff72fa
SM
3412 * xterm.c (x_display_pixel_height, x_display_pixel_width):
3413 New functions.
aac0c6e3
MR
3414 (x_calc_absolute_position): Use them.
3415 (x_term_init): Omit removed `height' and `width' members.
3416
b8ff72fa
SM
3417 * w32term.c (x_display_pixel_height, x_display_pixel_width):
3418 New functions.
aac0c6e3
MR
3419 (w32_read_socket, x_calc_absolute_position): Use them.
3420 (w32_initialize_display_info, w32_term_init): Omit removed members
3421 of w32_display_info.
3422
b8ff72fa
SM
3423 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
3424 New functions.
3425 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 3426
b8ff72fa
SM
3427 * xterm.c (x_display_pixel_height, x_display_pixel_width):
3428 New functions.
aac0c6e3
MR
3429 (x_calc_absolute_position): Use them.
3430 (x_term_init): Omit removed `height' and `width' members.
3431
3432 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
3433 (compute_tip_xy):
3434 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
3435 * xmenu.c (menu_position_func): Use x_display_pixel_height and
3436 x_display_pixel_width.
3437
34382008-09-18 Kenichi Handa <handa@m17n.org>
3439
3440 * composite.c (fill_gstring_header): Don't check FROM and TO here.
3441 (composition_compute_stop_pos): Fix handling of static composition.
3442 (Fcomposition_get_gstring): Check FROM and TO at first.
3443
34442008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
3445
46e722a9 3446 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
3447 mixup (YAILOM).
3448
34492008-09-17 Chong Yidong <cyd@stupidchicken.com>
3450
3451 * indent.c (Fvertical_motion): Use position reported by iterator
3452 instead of PT for determining screen motion (bug#943).
3453
34542008-09-17 Romain Francoise <romain@orebokech.com>
3455
3456 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
3457
34582008-09-17 Kenichi Handa <handa@m17n.org>
3459
3460 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
3461
3462 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
3463 if necessary.
3464
34652008-09-16 Kenichi Handa <handa@m17n.org>
3466
3467 * coding.c (make_conversion_work_buffer): Avoid calling
3468 Fget_buffer_create if it is not necessary.
3469
34702008-09-15 Martin Rudalics <rudalics@gmx.at>
3471
3472 * window.c (Fselect_window): Don't update window_select_count and
3473 use_time when norecord is not nil.
3474
34752008-09-14 Kenichi Handa <handa@m17n.org>
3476
3477 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
3478 specpdl_ptr.
3479
34802008-09-12 Kenichi Handa <handa@m17n.org>
3481
3482 * indent.c (scan_for_column): Don't handle automatic composition
3483 if the current buffer is not associated with a window.
3484
3485 * composite.c (composition_reseat_it): If the current buffer is
3486 not associated with a window, ignore the automatic composition.
3487 (find_automatic_composition): Likewise.
3488
34892008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
3490
3491 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
3492 (Fgpm_mouse_stop): Use it.
3493 * termhooks.h (close_gpm): Declare.
3494 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
3495 connection if Gpm_GetEvent fails.
3496
3497 * window.c (set_window_buffer): Always preserve current-buffer.
3498
34992008-09-12 Glenn Morris <rgm@gnu.org>
3500
3501 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
3502
35032008-09-11 Glenn Morris <rgm@gnu.org>
3504
3505 * charset.c (charset-map-path): Doc fix.
3506
35072008-09-10 Kenichi Handa <handa@m17n.org>
3508
3509 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
3510
3511 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
3512 compose a grapheme cluster with the preceding base glyph.
3513
3514 * composite.c (composition_compute_stop_pos): Fix previous change.
3515 Reset cmp_it->id to -1 at first.
3516
35172008-09-10 Glenn Morris <rgm@gnu.org>
3518
3519 * Makefile.in (character.o, chartab.o): Fix config.h typo.
3520
35212008-09-09 Chong Yidong <cyd@stupidchicken.com>
3522
3523 * keyboard.c (read_key_sequence): Reapply translation maps when
3524 switching keyboards.
3525
35262008-09-09 Kenichi Handa <handa@m17n.org>
3527
3528 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
3529 characters.
3530
3531 * composite.c (FORWARD_CHAR): Fix calculation
3532 of (POSITION).pos_byte.
3533 (composition_compute_stop_pos): Limit the search of composition to
3534 at most 500 characters ahead. If we reach the limit or find a
3535 newline, set cmp_it->ch to -2 and return 0.
3536 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
3537
35382008-09-08 Kenichi Handa <handa@m17n.org>
3539
3540 * indent.c (Fvertical_motion): Be sure to set
3541 it_overshoot_expected if it.cmp_it.id is non-negative.
3542
35432008-09-07 Andreas Schwab <schwab@suse.de>
3544
3545 * callproc.c (Fcall_process): Don't hold references to string data
3546 across garbage collection. Move initialisation of new_argv down
3547 to avoid compiler bug.
3548
35492008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
3550
3551 * process.c (Fsystem_process_attributes): Doc fix.
3552
35532008-09-07 Chong Yidong <cyd@stupidchicken.com>
3554
3555 * callproc.c (Fcall_process): Canonicalize current directory name.
3556
3557 * xdisp.c (move_it_to): When moving by vpos, ensure that the
3558 iterator advances to the next line if the current line ends in a
3559 continued tab.
3560
35612008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
3562
3563 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
3564 member to point to cmp_from.
3565
3566 * xdisp.c: Doc fix for references to gidx data member.
3567
35682008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
3569
3570 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
3571
35722008-09-07 Kenichi Handa <handa@m17n.org>
3573
3574 * composite.c (FORWARD_CHAR): Check STOP after
3575 incrementing (POSITION).pos.
3576
35772008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
3578
3579 * process.c (Fsystem_process_attributes): Doc fix.
3580
35812008-09-06 Chong Yidong <cyd@stupidchicken.com>
3582
3583 * keyboard.c (Ftop_level): Doc fix.
3584
35852008-09-06 Eli Zaretskii <eliz@gnu.org>
3586
3587 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
3588 minibuffer, don't let lower part of menu invade the echo area.
3589
3590 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
3591 "char *q" to access menu text and advance through it. Revert the
3592 change that displayed ">" instead of ASCII character 0x10.
3593
35942008-09-05 Eli Zaretskii <eliz@gnu.org>
3595
3596 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
3597 toggle boxes and radio buttons on MS-DOS as well.
3598
35992008-09-05 Kenichi Handa <handa@m17n.org>
3600
3601 * composite.c (autocmp_chars): Check lookback count.
3602 (composition_compute_stop_pos): Set cmp_it->lookback.
3603 (composition_reseat_it): Check lookback count.
3604 (struct position_record): New struct.
3605 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
3606 (find_automatic_composition): New function.
3607 (composition_adjust_point): Use find_automatic_composition.
3608
3609 * dispextern.h (struct composition_it): New member lookback.
3610
36112008-09-02 Chong Yidong <cyd@stupidchicken.com>
3612
3613 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
3614 if moving by a single line.
3615
36162008-09-02 Andreas Schwab <schwab@suse.de>
3617
3618 * xterm.c (x_delete_display): Fix merge error.
3619
3620 * fileio.c (Fexpand_file_name): Remove unused variables.
3621
36222008-09-02 Eli Zaretskii <eliz@gnu.org>
3623
3624 * fileio.c (Fexpand_file_name): Copy argument `name' into local
3625 storage on all platforms, not just on DOS_NT.
3626
36272008-09-02 Jason Rumney <jasonr@gnu.org>
3628
b8ff72fa
SM
3629 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
3630 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
3631
36322008-09-01 Chong Yidong <cyd@stupidchicken.com>
3633
3634 * xfaces.c (Finternal_set_alternative_font_family_alist)
3635 (Finternal_set_alternative_font_registry_alist): Properly copy
3636 entire alist structure.
3637
36382008-09-01 Kenichi Handa <handa@m17n.org>
3639
d66c0241 3640 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 3641 representative chars of the script is a vector.
d66c0241
JB
3642 (ftfont_list): Handle the case where the representative chars of
3643 the script is a vector.
aac0c6e3
MR
3644
3645 * character.c (syms_of_character): Docstring of
3646 script-representative-chars fixed.
3647
36482008-08-31 Eli Zaretskii <eliz@gnu.org>
3649
3650 * msdos.c (BUILD_CHAR_GLYPH): New macro.
3651 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
3652 the menu. Allocate larger buffer for `text', to account for
3653 possible ^C characters.
3654
36552008-08-31 Martin Rudalics <rudalics@gmx.at>
3656
3657 * xdisp.c (prepare_menu_bars): Don't call
3658 Vwindow_size_change_functions with arg Qt.
3659
36602008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
3661
3662 * font.h (font_range):
3663 * fileio.c (report_file_error):
46e722a9
SM
3664 * composite.c (composition_update_it): Yet another int/Lisp_Object
3665 mixup (YAILOM).
aac0c6e3
MR
3666
36672008-08-30 Glenn Morris <rgm@gnu.org>
3668
3669 * data.c (Fmake_variable_frame_local): Doc fix.
3670
3671 * frame.c (Fmodify_frame_parameters): Doc fix.
3672
36732008-08-30 Eli Zaretskii <eliz@gnu.org>
3674
3675 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
3676 needed by GetTokenInformation.
3677 (w32_system_process_attributes): Check return values of all system
3678 APIs.
3679
3680 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
3681 only when the state changes.
3682 (IT_update_begin, IT_update_end): Add termscript trace.
3683
3684 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
3685 clipboard is unavailable. Set dst to NULL if it doesn't point to
3686 malloc'ed data.
3687 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
3688 passing random values to xfree.
3689
3690 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 3691 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
3692
36932008-08-29 Jason Rumney <jasonr@gnu.org>
3694
3695 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
3696
36972008-08-29 Eli Zaretskii <eliz@gnu.org>
3698
3699 * composite.c (fill_gstring_body): Avoid compiler warnings.
3700
3701 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
3702 LGLYPH_SET_CODE to avoid compiler warnings.
3703
2ae37cf0 3704 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
3705
3706 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
3707
3708 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
3709 LGLYPH_SET_CODE.
3710
37112008-08-29 Kenichi Handa <handa@m17n.org>
3712
3713 * fileio.c (report_file_error): Don't downcase the first character
3714 of errstring if it is still unibyte.
3715
37162008-08-29 Kenichi Handa <handa@m17n.org>
3717
3718 These changes are to re-implement the automatic composition so
3719 that it doesn't use text properties.
3720
3721 * Makefile.in (ftfont.o): Depend on composite.h.
3722 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
3723
3724 * character.h (Vunicode_category_table): Extern it.
3725
3726 * character.c (Vunicode_category_table): New variable.
3727 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
3728
3729 * chartab.c (optimize_sub_char_table): Perform more greedy
3730 optimization.
3731
b8ff72fa
SM
3732 * composite.h (enum composition_method):
3733 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
3734 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
3735 (Vcomposition_function_table): Extern it.
3736 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
3737 (composition_gstring_put_cache, composition_gstring_from_id)
3738 (composition_gstring_p, composition_gstring_width)
3739 (composition_compute_stop_pos, composition_reseat_it)
3740 (composition_update_it, composition_adjust_point): Extern them.
3741 (Fcomposition_get_gstring): EXFUN it.
3742
d66c0241 3743 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
3744 (Vcomposition_function_table)
3745 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
3746 (gstring_hash_table, gstring_work, gstring_work_headers):
3747 New variables.
aac0c6e3
MR
3748 (gstring_lookup_cache, composition_gstring_put_cache)
3749 (composition_gstring_from_id, composition_gstring_p)
3750 (composition_gstring_width, fill_gstring_header)
3751 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
3752 (composition_reseat_it, composition_update_it)
b8ff72fa 3753 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
3754 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
3755 and gstring_work_headers. DEFVAR_LISP composition-function-table.
3756 Defsubr compostion_get_gstring.
3757
3758 * dispextern.h (struct glyph): New union u.cmp. Delete the member
3759 cmp_id.
3760 (struct glyph_string): Delete the member gidx. New members
3761 cmp_id, cmp_from, and cmp_to.
3762 (enum it_method): Delete GET_FROM_COMPOSITION.
3763 (struct composition_it): New struct.
3764 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
3765 Delete c, len, cmp_id, cmp_len in u.comp.
3766
3767 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 3768 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 3769 (enum lglyph_indices): Likewise.
b8ff72fa 3770 (font_range): Adjust extern.
aac0c6e3
MR
3771 (font_fill_lglyph_metrics): Extern it.
3772
3773 * font.c (QCf): New variable.
3774 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
3775 (font_prepare_composition): Delete this function.
3776 (font_range): Type and arguments changed.
3777 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
3778 (font_fill_lglyph_metrics): New function.
b8ff72fa 3779 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 3780 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
3781 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
3782 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
3783
3784 * fontset.h (font_for_char): Extern it.
3785
3786 * fontset.c (font_for_char): New function.
3787
3788 * ftfont.c: Include composite.h.
3789 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 3790 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
3791
3792 * indent.c: Include composite.h and dispextern.h.
3793 (check_composition): Delete this function.
3794 (scan_for_column): Handle composition by
3795 composition_compute_stop_pos, composition_reseat_it, and
3796 composition_update_it.
3797 (compute_motion): Likewise.
3798 (Fvertical_motion): Fix checking of composition.
3799
3800 * keyboard.c (adjust_point_for_property): Check composition by
3801 composition_adjust_point.
3802
b8ff72fa 3803 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
3804 struct glyph_string.
3805
b8ff72fa
SM
3806 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
3807 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
3808 struct glyph.
3809 (produce_composite_glyph): Likewise.
3810
b8ff72fa
SM
3811 * w32term.c (x_draw_composite_glyph_string_foreground):
3812 Adjust for the change of struct glyph_string.
aac0c6e3
MR
3813 (x_draw_glyph_string): Likewise.
3814
3815 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
3816 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
3817
3818 * xdisp.c: Include font.h.
3819 (it_props): Delete the entry for Qauto_composed.
3820 (init_iterator): Initialize it->cmp_it.id to -1.
3821 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 3822 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
3823 (handle_auto_composed_prop): Delete it.
3824 (handle_composition_prop): Handle only static composition.
3825 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
3826 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 3827 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
3828 (pop_it): Likewise.
3829 (get_next_element): Delete next_element_from_composition.
3830 (CHAR_COMPOSED_P): New macro.
3831 (get_next_display_element): For automatic composition, get a face
3832 from the font in the glyph-string.
3833 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 3834 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
3835 (next_element_from_string): Check if the character at the current
3836 position is composed by CHAR_COMPOSED_P.
3837 (next_element_from_buffer): Likewise.
d66c0241
JB
3838 (next_element_from_composition): Adjust for the change of struct it.
3839 Update it->cmp_it.
b8ff72fa
SM
3840 (dump_glyph): Adjust for the change of struct glyph.
3841 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
3842 it and struct glyph. Don't handle automatic composition here.
3843 (fill_gstring_glyph_string): New function.
3844 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 3845 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
3846 (BUILD_GSTRING_GLYPH_STRING): New macro.
3847 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
3848 automatic composition.
b8ff72fa 3849 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 3850 struct glyph.
b8ff72fa 3851 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 3852
b8ff72fa 3853 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
3854 the change of struct glyph_string.
3855 (x_draw_glyph_string): Likewise.
3856
38572008-08-29 Glenn Morris <rgm@gnu.org>
3858
3859 * buffer.c (word-wrap): Doc fix.
3860 * xdisp.c (truncate-partial-width-windows): Doc fix.
3861 Increase default to 50.
3862
38632008-08-29 Chong Yidong <cyd@stupidchicken.com>
3864
3865 * xdisp.c (update_tool_bar_unwind): New function.
3866 (update_tool_bar): Temporarily set selected frame before building
3867 tool-bar items.
3868
38692008-08-28 Michael Albinus <michael.albinus@gmx.de>
3870
3871 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
3872 snprintf, respectively.
3873 (xd_append_arg): Convert strings with Fstring_make_unibyte.
3874
38752008-08-28 Chong Yidong <cyd@stupidchicken.com>
3876
3877 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
3878 LDFLAGS to GNUstep CC invocation.
3879
38802008-08-27 Chong Yidong <cyd@stupidchicken.com>
3881
3882 * indent.c (Fvertical_motion): Revert last change. Handle the
3883 general case where we are moving forward, and PT spans multiple
3884 screen lines.
3885
3886 * eval.c (find_handler_clause): Temporarily increase
3887 max-lisp-eval-depth while printing the backtrace buffer, to
3888 guarantee that help-mode code can run.
3889
38902008-08-27 Eli Zaretskii <eliz@gnu.org>
3891
3892 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
3893 colors under -rv.
3894 (IT_set_frame_parameters): Don't swap foreground and background
3895 colors if `(reverse . t)' is present in the frame properties.
3896 (internal_terminal_init): Call init_frame_faces only for the
3897 initial frame.
3898
38992008-08-27 Andreas Schwab <schwab@suse.de>
3900
3901 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
3902
39032008-08-27 Andreas Schwab <schwab@suse.de>
3904
3905 * search.c (search_buffer): Set char_base to zero only at the end.
3906
39072008-08-27 Kenichi Handa <handa@m17n.org>
3908
b8ff72fa 3909 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
3910
39112008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
3912
3913 * xterm.c (x_term_init): Temporarily hide the partially
3914 initialized terminal while calling vendor-specific-keysyms.
3915
39162008-08-26 Eli Zaretskii <eliz@gnu.org>
3917
3918 * msdos.c (internal_terminal_init): Most initializations done only
3919 once, especially initial_screen_colors[] and termscript open.
3920
39212008-08-26 Chong Yidong <cyd@stupidchicken.com>
3922
3923 * eval.c (Fcondition_case): Doc fix.
3924
3925 * widgetprv.h (EmacsFramePart): Change font member to the new font
3926 struct.
3927
3928 * widget.c: Include character.h and font.h for XSETFONT.
3929 (setup_frame_gcs): Compute X font id from font struct, just once.
3930
39312008-08-26 Eli Zaretskii <eliz@gnu.org>
3932
3933 * term.c (get_named_tty): Fix last change.
3934
39352008-08-26 Chong Yidong <cyd@stupidchicken.com>
3936
3937 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 3938 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
3939
39402008-08-25 Eli Zaretskii <eliz@gnu.org>
3941
3942 * frame.c (do_switch_frame): Mark previously displayed frame as
3943 obscured for FRAME_MSDOS_P frames as well.
3944
39452008-08-24 Eli Zaretskii <eliz@gnu.org>
3946
3947 * frame.c (make_terminal_frame): Initialize f->terminal,
3948 f->terminal->reference_count, and scroll bars on MS-DOS as well.
3949 Set the top frame to newly created frame.
3950 (Fmake_terminal_frame): Reuse the_only_display_info.
3951
3952 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
3953 estimating available memory.
3954
b97439ce 39552008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
3956
3957 * nsterm.m (ns_draw_window_cursor): Don't call
3958 NSDisableScreenUpdates and NSEnableScreenUpdates on
3959 non-NS_IMPL_COCOA systems.
3960
39612008-08-23 Andreas Schwab <schwab@suse.de>
3962
3963 * process.c (procfs_system_process_attributes): Fix use of
3964 uninitialized variables.
3965
39662008-08-23 Eli Zaretskii <eliz@gnu.org>
3967
3968 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
3969
3970 * dispnew.c (init_display): Remove MS-DOS specific conditions for
3971 calling tty-set-up-initial-frame-faces.
3972
b8ff72fa
SM
3973 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
3974 Allow MSDOS frames along with X frames.
aac0c6e3
MR
3975
3976 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
3977 addition to output_termcap.
3978
3979 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
3980
3981 * termchar.h (FRAME_TTY): Support output_msdos_raw.
3982 (struct tty_display_info) [MSDOS]: Add fields related to mouse
3983 highlight.
3984
3985 * process.c [!subprocesses]: Define QCname.
3986 (syms_of_process): Intern and staticpro it.
3987
3988 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
3989 Adjust for changes in encoding/decoding routines.
3990 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
3991 encode_coding and decode_coding.
3992
b8ff72fa 3993 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
3994
3995 * dosfns.c: Include frame.h before termhooks.h.
3996 (dos_cleanup): Use CURTTY ()->termscript instead of a global
3997 variable termscript.
3998
3999 * s/msdos.h (USER_FULL_NAME): Define.
4000 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
4001
4002 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
4003 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
4004 pw->pw_gecos.
4005
4006 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
4007 SELECTED_FRAME as additional (1st) argument.
4008 (tty_read_avail_input): Handle output_msdos_raw in
4009 addition to output_termcap.
4010
4011 * msdos.c: Include frame.h before termhooks.h.
4012 (mouse_on, mouse_off, mouse_moveto, mouse_init)
4013 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
4014 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
4015 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
4016 (IT_set_terminal_modes, IT_reset_terminal_modes)
4017 (IT_set_frame_parameters): Use tty->termscript instead of a global
4018 variable termscript.
4019 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
4020 global variable terminal_coding. Don't refer to
4021 Vnonascii_translation_table.
4022 (internal_terminal_init): Set Vwindow_system in current_kboard.
4023 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
4024 Announce date and time of session start, if termscript is open.
4025 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
4026 term.c:init_tty). Open termscript only of not already open.
4027 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
4028 here instead of dos_ttraw. Don't initialize display if this is an
4029 initial tty. Don't set FRAME_FONT.
4030 (Vwindow_system_version): Bump to 23.
4031 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
4032 is available, set up mouse_position_hook.
4033 (dos_ttraw, IT_set_terminal_modes): If called with initial
4034 terminal, do nothing.
4035 (IT_set_frame_parameters): Handle the Qtty_type frame
4036 parameter by calling internal_terminal_init.
4037 (dos_set_window_size, show_mouse_face)
4038 (clear_mouse_face, IT_note_mode_line_highlight)
4039 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
4040 (dos_rawgetc): Use tty_display_info instead of x_display_info.
4041 (initialize_msdos_display): New function.
4042 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
4043 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
4044 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
4045 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 4046 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
4047 (request_sigio, unrequest_sigio): Don't define, now defined on
4048 sysdep.c.
4049 (IT_write_glyphs): Rewrite to use encode_terminal_code.
4050
4051 * term.c [MSDOS]: Include msdos.h.
4052 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
4053 conditional to DOS_NT. Allow only one call to this function in a
4054 session. Don't allocate a new struct tty_display_info; instead,
4055 reuse the_only_display_info. Call get_tty_size to get screen
4056 dimensions. Call init_baud_rate to set bad_rate.
4057 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
4058 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 4059 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
4060 (get_tty_terminal, get_named_tty, Ftty_type)
4061 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
4062 output_termcap.
b8ff72fa
SM
4063 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
4064 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 4065 only when subprocesses are supported.
aac0c6e3
MR
4066
4067 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
4068 f->output_data.x.
4069 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
4070 terminal devices.
4071
5582fbc7 4072 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
4073 x_output.
4074 (FRAME_FONT): Use output_data.tty.
4075 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
4076 (struct x_display_info): Rename from display_info. Update all users in
4077 msdos.c.
aac0c6e3 4078 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 4079 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
4080 (dos_ttraw): Update prototype.
4081
4082 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
4083 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
4084
40852008-08-23 Jason Rumney <jasonr@gnu.org>
4086
4087 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
4088 (fn_TIFFSetDirectory): New library function used.
4089 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
4090 (tiff_load): Use :index to select among multiple images. Set count
4091 property when multiple images exist.
4092 (gif_format): Use :index, not :image.
4093
40942008-08-23 Chong Yidong <cyd@stupidchicken.com>
4095
4096 * xdisp.c (try_scrolling): Check INT_MAX instead of
4097 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
4098 to obtain INT_MAX.
4099
41002008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
4101
4102 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
4103
41042008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
4105
4106 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
4107 GNUstep library location.
4108
41092008-08-21 Chong Yidong <cyd@stupidchicken.com>
4110
4111 * xfaces.c (x_update_menu_appearance): Check validity of menu font
4112 before using it.
4113
4114 * puresize.h (BASE_PURESIZE): Increase to 1250000.
4115
41162008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4117
4118 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
4119 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
4120 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
4121 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
4122 (EmacsApp-cursor_blink_handler): Remove declaration.
4123 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
4124 match 01 Feb 2008 changes in xterm.c.
4125 (ns_read_socket): Add cast to avoid warning.
4126 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
4127 GNUstep.
4128
41292008-08-20 Chong Yidong <cyd@stupidchicken.com>
4130
4131 * xselect.c (x_get_foreign_selection): Return nil if desired
4132 selection could not be obtained, instead of signalling an error.
4133
41342008-08-20 David Reitter <david.reitter@gmail.com>
4135
4136 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
4137 * nsterm.m: Remove ns-specific code for cursor blinking.
4138 (ns_draw_window_cursor): Clear cursor properly rather than
4139 redrawing the area. Respect width of bar cursors.
4140 These changes enable the use of generic blink-cursor-mode and
4141 generic cursor types in NS and support smooth cursor movements (do
4142 not blink off after command).
4143 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
4144 Nextstep, too.
4145
41462008-08-19 Kenichi Handa <handa@m17n.org>
4147
4148 * font.c (Vfont_log_deferred): New variable.
4149 (font_add_log): Check Vfont_log_deferred.
4150 (font_deferred_log): New function.
4151
4152 * font.h (font_deferred_log): Extern it.
4153
4154 * fontset.c (reorder_font_vector): Use encoding charset of fonts
4155 for sorting.
4156 (face_for_char): Use deferred log.
4157
41582008-08-18 Kenichi Handa <handa@m17n.org>
4159
4160 * fontset.c (face_for_char): Add font log.
4161
4162 * font.c (font_add_log): Add the font properties :script, :lang,
4163 and :otf in the log.
4164
41652008-08-17 Chong Yidong <cyd@stupidchicken.com>
4166
4167 * xdisp.c: Remove dead code.
4168 (handle_invisible_prop, next_overlay_string): Defer call to
4169 setup_for_ellipsis.
4170 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
4171
41722008-08-15 Chong Yidong <cyd@stupidchicken.com>
4173
4174 * xfaces.c (lookup_derived_face): Properly handle possible zero
4175 return value of get_lface_attributes.
4176 (merge_faces): Don't tell lookup_derived_face to signal an error
4177 if face is not found.
4178
4179 * dired.c (Fdirectory_files): Doc fix.
4180
4181 * process.c (make_process): Initialize kill_without_query struct
4182 member.
4183
41842008-08-15 Eli Zaretskii <eliz@gnu.org>
4185
4186 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
4187 Alternative calculation of totphys for Visual Studio 6.
4188
4189 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
4190
4191 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
4192 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
4193 All users changed.
4194 (stat): Only root directory passed to GetDriveType. Allow RAM
4195 disk as well as local fixed disk when w32-get-true-file-attributes
4196 is set to `local'.
4197 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
4198 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
4199 (w32_cached_id, w32_add_to_cache): New functions.
4200 (get_name_and_id): Look account names in the cache before calling
4201 lookup_account_sid.
4202 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
4203 New initialization flags.
4204 (globals_of_w32): Initialize them to zero.
4205 (w32_system_process_attributes): Use w32_cached_id and
4206 w32_add_to_cache.
4207
42082008-08-14 Lawrence Mitchell <wence@gmx.li>
4209
4210 * lread.c (Fread_char, Fread_char_exclusive): If no character
4211 event is read before timeout is reached, return nil, rather than
4212 converting to a number.
4213
42142008-08-14 Chong Yidong <cyd@stupidchicken.com>
4215
4216 * fns.c (use_dialog_box): Doc fix.
4217
4218 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
4219 on OS X.
4220
42212008-08-13 Chong Yidong <cyd@stupidchicken.com>
4222
4223 * frame.c (Qns_parse_geometry): New var.
4224 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
4225
42262008-08-11 Chong Yidong <cyd@stupidchicken.com>
4227
4228 * xdisp.c (x_produce_glyphs): Handle the case when font has no
4229 space character in calculating tabs.
4230
42312008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
4232
4233 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
4234
42352008-08-10 Glenn Morris <rgm@gnu.org>
4236
4237 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
4238 silence gcc "limited range of data type" warnings in some
4239 make_fixnum_or_float calls.
4240
42412008-08-09 Eli Zaretskii <eliz@gnu.org>
4242
4243 * w32.c (w32_system_process_attributes): If the process does not
4244 exist, return nil.
4245
4246 * w32.c: Include thelp32.h, psapi.h and coding.h.
4247 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
4248 declarations.
4249 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
4250 (Process32Next_Proc): New typedefs.
4251 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
4252 (g_b_init_process32_next, g_b_init_open_thread_token)
4253 (g_b_init_impersonate_self, g_b_init_revert_to_self)
4254 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
4255 (g_b_init_get_process_working_set_size)
4256 (g_b_init_global_memory_status_ex): New static variables.
4257 (globals_of_w32): Initialize them.
4258 (create_toolhelp32_snapshot, process32_first, process32_next)
4259 (open_thread_token, impersonate_self, revert_to_self)
4260 (get_process_memory_info, get_process_working_set_size)
4261 (global_memory_status, global_memory_status_ex): New wrapper
4262 functions.
4263 (w32_list_system_processes, w32_system_process_attributes)
4264 (enable_privilege, restore_privilege, ltime, process_times):
4265 New functions.
4266 (convert_time_raw): New function.
4267 (convert_time): Remove conversion of FILETIME into time in 100
4268 nsec units, call convert_time_raw instead.
4269
4270 * process.h (w32_list_system_processes, w32_system_process_attributes):
4271 Add prototypes.
4272 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
4273 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
4274 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
4275 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
4276
4277 * process.c (Fsystem_process_attributes): Doc fix.
4278
42792008-08-08 Chong Yidong <cyd@stupidchicken.com>
4280
4281 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
4282 a continued multi-char glyph; if so, advance to the actual glyph.
4283
42842008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
4285
4286 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
4287
4288 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
4289 (.m.o): Use it.
4290 * config.in: Regenerate.
4291
42922008-08-07 Chong Yidong <cyd@stupidchicken.com>
4293
4294 * xdisp.c (redisplay_window): Revert last change.
4295 (try_window): Check bottom scroll margin too.
4296
42972008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4298
4299 * config.in: Regenerate.
4300
4301 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
4302 -list-load-path-shadows'.
4303 (nsgui.h): Reduce number of things depending on it.
4304
43052008-08-06 Chong Yidong <cyd@stupidchicken.com>
4306
4307 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
4308 instead of window-end which does the wrong thing at eob.
4309 (try_cursor_movement): Minor optimization.
4310 (redisplay_window): If scroll margin is defined, don't assume
4311 window doesn't need scrolling.
4312
43132008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4314
4315 * config.in: Regenerate.
4316
4317 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
4318 (mostlyclean): Don't delete *.d under NS.
4319
4320 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
4321
43222008-08-06 Kenichi Handa <handa@m17n.org>
4323
4324 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
4325
43262008-08-06 Andreas Schwab <schwab@suse.de>
4327
4328 * config.in: Regenerate.
4329
43302008-08-05 Chong Yidong <cyd@stupidchicken.com>
4331
4332 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
4333 forcing a window start.
4334
4335 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
4336 (auto_save_1): Update modtime when auto-save-list-file-name is on.
4337
43382008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4339
4340 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
4341 argument.
4342
43432008-08-05 Juanma Barranquero <lekktu@gmail.com>
4344
4345 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
4346 <scroll-down-aggressively, before-change-functions>:
4347 <after-change-functions>: Reflow docstrings.
4348
43492008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4350 Ken Raeburn <raeburn@gnu.org>
4351
4352 Dock menu customization, based on a patch by Ken Raeburn, plus some
4353 other fixes.
4354 * nsmenu.m (dockMenu): New variable.
4355 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
4356
4357 * nsterm.h (dockMenu): Declare.
4358
4359 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
4360 (ns_term_init): Initialize dockMenu.
4361 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
4362 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
4363 left.
4364
4365 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
4366
43672008-08-04 Chong Yidong <cyd@stupidchicken.com>
4368
4369 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
4370
4371 * config.in: Regenerate.
4372
43732008-08-04 Seiji Zenitani <zenitani@mac.com>
4374
4375 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
4376
43772008-08-04 Chong Yidong <cyd@stupidchicken.com>
4378
4379 * nsterm.h (find_and_call_menu_selection): Fix prototype.
4380
43812008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4382
4383 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
4384
4385 * keyboard.h: Comment an #endif.
4386
4387 * lisp.h (have_menus_p): Adjust comment.
4388
4389 * menu.c (find_and_return_menu_selection): Fix comparison with
4390 client_data.
4391
4392 * nsmenu.m (popup_activated_flag): New variable.
4393 (popup_activated): New function.
4394 (menu-or-popup-active-p): New exported lisp definition.
4395 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
4396 when popup done.
4397 (ns_popup_dialog): Set popup_activated_flag.
4398
4399 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
4400 version for GNUstep (handled by conditional typedef in nsterm.m).
4401 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
4402 in rgb.txt).
4403
4404 * process.c (init_process): Use DARWIN_OS, not DARWIN.
4405
4406 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
4407
4408 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
4409
4410 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
4411 shortcircuit if popup_activated like GTK and X toolkit.
4412
4413 * m/inter386.h: Change DARWIN to DARWIN_OS.
4414
4415 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
4416 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
4417 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
4418 comment on NO_SOCK_SIGIO.
4419
44202008-08-03 Chong Yidong <cyd@stupidchicken.com>
4421
4422 * nsterm.m (windowDidResize): Remove stopModal call.
4423
44242008-08-03 Andreas Schwab <schwab@suse.de>
4425
4426 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
4427 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
4428
44292008-08-02 Chong Yidong <cyd@stupidchicken.com>
4430
4431 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
4432 Don't use uninitialized pointer variable when using getrlimit.
4433
44342008-08-02 Jason Rumney <jasonr@gnu.org>
4435
4436 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
4437
44382008-08-02 Eli Zaretskii <eliz@gnu.org>
4439
4440 * alloc.c (NSTATICS): Bump to 0x640.
4441
4442 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
4443
4444 * lisp.h: Add prototype for directory_files_internal.
4445
4446 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
4447 New functions.
4448 (syms_of_process): Defsubr them. Add initializations for various
4449 Q* symbols used in procfs_system_process_attributes.
4450 (procfs_list_system_processes, procfs_system_process_attributes)
4451 [HAVE_PROCFS]: New functions.
4452 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
4453 (procfs_get_total_memory): New functions.
4454
44552008-08-01 Juanma Barranquero <lekktu@gmail.com>
4456
4457 * xfaces.c (Fx_load_color_file): Fix previous change;
4458 it is #ifdef WINDOWSNT, not WINDOWS_NT.
4459
44602008-08-01 Michael Albinus <michael.albinus@gmx.de>
4461
4462 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
4463
44642008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4465
4466 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
4467
44682008-08-01 Chong Yidong <cyd@stupidchicken.com>
4469
4470 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
4471
4472 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
4473 define NSApplicationDelegateReplySuccess.
4474 (EmacsView -converstationIdentifier): Use long instead of
4475 NSInteger for GNUstep, since it doesn't have NSInteger.
4476
4477 * xmenu.c: Revert last change.
4478
4479 * keyboard.h: Fix last change.
4480
44812008-08-01 Juanma Barranquero <lekktu@gmail.com>
4482
4483 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
4484 on Windows.
4485
44862008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4487
4488 Warning clearing and clean-up in NS port.
4489 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
4490 Add prototypes.
4491 * nsgui.h (FACE_DEFAULT): Remove, unused.
4492 (XGCValues): Change colors to unsigned long.
4493 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
4494 nsterm.m.
4495 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
4496 (ns_list_fonts): Remove, unused.
4497 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
4498 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
4499 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
4500 (nsfont_draw): Compare face colors to 0, not nil.
4501 * nsmenu.m (struct widget_value): Drop unneeded declaration.
4502 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
4503 (-addSubmenuWithTitle:): Use NSMenuItem class.
4504 (ns_popup_menu): Use NO, not NULL, for enabled setting.
4505 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
4506 (ns_clip_to_row): Make gc arg a BOOL.
4507 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
4508 ns_clip_to_row() call.
4509 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
4510 used). Cast FRAME_FONT assignments.
4511 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
4512 (ns_string_to_lispmod): Change arg to const char.
4513 (ns_term_init): Use NSMenuItem class.
4514 (EmacsApp -openFile:): Move to different section of file.
4515 (EmacsApp -application:openFiles:): Don't return a value, call
4516 -replyToOpenOrPrint:.
4517 (EmacsView -keyDown:): Fix up cast.
4518 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
4519 (EmacsView -menuDown:): Cast tag in call to
4520 find_and_call_menu_selection().
4521 (ns_list_fonts): Remove, unused.
4522 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
4523 (ns_fontname_to_xlfd): Make static.
4524 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
4525 Remove prototypes (now in keyboard.h).
4526 (next_menubar_widget_id): Remove, unused.
4527 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
4528 Remove prototypes (now in keyboard.h).
4529 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
4530
45312008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
4532
4533 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
4534 (floatfns.o): Depend on syssignal.h.
4535 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
4536
4537 * systty.h: Fix previous change that removed BSD_TERMIOS.
4538 Add comments to #ifdefs.
4539
45402008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4541
4542 * w32fns.c (w32-load-color-file): Remove.
4543 (x-open-connection): Use renamed Fx_load_color_file.
4544 * xfaces.c (x-load-color-file): Add.
4545 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
4546 Emacs.clr.
4547 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
4548
45492008-07-31 Michael Albinus <michael.albinus@gmx.de>
4550
4551 * dbusbind.c (Fdbus_call_method_asynchronously)
4552 (Fdbus_method_error_internal): New defuns.
4553 (xd_read_message): Handle also reply messages.
4554 (Vdbus_registered_functions_table): Extend docstring.
4555
45562008-07-31 Juanma Barranquero <lekktu@gmail.com>
4557
4558 * keyboard.c (gobble_input): Fix previous change.
4559
45602008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
4561
4562 * bitmaps/README:
4563 * xfns.c:
4564 * termcap.c:
4565 * term.c:
4566 * syswait.h:
4567 * systty.h:
4568 * systime.h:
4569 * syssignal.h:
4570 * sysdep.c:
4571 * process.h:
4572 * process.c:
4573 * print.c:
4574 * ndir.h:
4575 * lread.c:
4576 * keyboard.c:
4577 * getpagesize.h:
4578 * floatfns.c:
4579 * fileio.c:
4580 * emacs.c:
4581 * doc.c:
4582 * dispnew.c:
4583 * dired.c:
4584 * data.c:
4585 * callproc.c:
4586 * buffer.c:
4587 * README:
4588 * Makefile.in:
4589 * s/template.h:
4590 * s/msdos.h:
4591 * m/vax.h: Remove VMS support.
4592 * s/vms.h:
4593 * vlimit.h:
4594 * uaf.h:
4595 * temacs.opt:
4596 * param.h:
4597 * ioctl.h: Remove file.
4598
45992008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
4600
4601 * s/ms-w32.h (MULTI_KBOARD): Remove.
4602 * xterm.c:
4603 * xselect.c:
4604 * xfns.c:
4605 * window.c:
4606 * w32term.c:
4607 * w32fns.c:
4608 * terminal.c:
4609 * termhooks.h:
4610 * term.c:
4611 * sysdep.c:
4612 * keyboard.h:
4613 * keyboard.c:
4614 * frame.h:
4615 * frame.c:
4616 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
4617 * config.in: Regenerate.
4618
46192008-07-30 Jason Rumney <jasonr@gnu.org>
4620
4621 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
4622
4623 * w32font.c (w32font_encode_char): Leave as unicode if in range.
4624 (w32font_open_internal): Get unicode version of textmetrics.
4625 Don't enable or disable glyph indices here.
4626 (w32font_open): Disable use of glyph indices.
4627
4628 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
4629
46302008-07-30 Chong Yidong <cyd@stupidchicken.com>
4631
4632 * minibuf.c (Vread_buffer_function): Doc fix.
4633
46342008-07-30 John Paul Wallington <jpw@pobox.com>
4635
4636 * minibuf.c (read_buffer_completion_ignore_case): New var.
4637 (Fread_buffer): Use it.
4638
46392008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
4640
4641 * systty.h (sensemode): Remove empty #if. Remove reference to
4642 BSD_TERMIOS, unused.
4643
4644 * sysdep.c: Remove reference to DGUX.
4645 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
4646
4647 * config.in: Regenerate.
4648
46492008-07-30 Jason Rumney <jasonr@gnu.org>
4650
4651 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
4652
46532008-07-29 Jason Rumney <jasonr@gnu.org>
4654
4655 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
4656 is populated.
4657 (uniscribe_encode_char): Always use uniscribe.
4658 Avoid using context if cache is populated.
4659
46602008-07-29 Jan Djärv <jan.h.d@swipnet.se>
4661
4662 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
4663 open menu.
4664
4665 * gtkutil.c (menu_nav_ended): Remove.
4666 (create_menus): Remove signal connect for menu_nav_ended.
4667
46682008-07-28 Chong Yidong <cyd@stupidchicken.com>
4669
4670 * xdisp.c (redisplay_window): Check return value of
4671 compute_window_start_on_continuation_line before forcing a window
4672 start.
4673
46742008-07-28 Jason Rumney <jasonr@gnu.org>
4675
4676 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
4677
4678 * w32term.c (w32_enable_unicode_output, cleartype_active):
4679 Remove obsolete display options.
4680 (x_draw_glyph_string_background): Don't use old cleartype_active
4681 workaround.
4682 (w32_initialize): Remove cleartype_active initialization.
4683 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
4684
46852008-07-28 Andreas Schwab <schwab@suse.de>
4686
4687 * lisp.h (init_weak_hash_tables, syms_of_font)
4688 (xd_read_queued_messages, syms_of_dbusbind): Declare.
4689 (remove_hash_entry): Don't declare.
4690 * eval.c (maybe_call_debugger): Make static and move before use.
4691 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
4692 * xdisp.c: Include "gtkutil.h" if USE_GTK.
4693 * xterm.h (x_set_frame_alpha): Declare.
4694
46952008-07-28 Jan Djärv <jan.h.d@swipnet.se>
4696
4697 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
4698 (create_menus): Connect selection-done to menu_nav_ended.
4699
47002008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
4701
4702 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
4703 Set Vx_resource_name to a fallback. Replace read of 'buffered'
4704 parameter with read of 'alpha' one.
4705 (Qns_frame_parameter): Remove.
5582fbc7 4706 * nsselect.m (selection-coding-system)
aac0c6e3
MR
4707 (next-selection-coding-system, Vselection_coding_system)
4708 (Vnext_selection_coding_system): Drop.
4709
47102008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
4711
4712 * nsfns.m (do-applescript, do_applescript): Rename to
4713 ns-do-applescript, ns_do_applescript, and move within file.
4714
47152008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
4716
4717 Remove support for Mac Carbon.
4718 * mactoolbox.c:
4719 * macterm.h:
4720 * macterm.c:
4721 * macselect.c:
4722 * macmenu.c:
4723 * macgui.h:
4724 * macfns.c:
4725 * mac.c: Remove file.
4726 * s/darwin.h:
4727 * m/intel386.h:
4728 * xfaces.c:
4729 * xdisp.c:
4730 * window.c:
4731 * tparam.c:
4732 * termhooks.h:
4733 * termcap.c:
4734 * term.c:
4735 * syssignal.h:
4736 * sysselect.h:
4737 * sysdep.c:
4738 * process.c:
4739 * lread.c:
4740 * lisp.h:
4741 * keyboard.c:
4742 * image.c:
4743 * fringe.c:
4744 * frame.h:
4745 * frame.c:
4746 * fontset.c:
4747 * font.h:
4748 * font.c:
4749 * fns.c:
4750 * fileio.c:
4751 * emacs.c:
4752 * dispnew.c:
4753 * dispextern.h:
4754 * config.in:
4755 * atimer.c:
2ae37cf0 4756 * Makefile.in: Remove code for Carbon.
aac0c6e3 4757
f0131492 47582008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
4759
4760 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
4761
47622008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4763
4764 * macterm.h (kCGBitmapByteOrder32Host): New define for
4765 non-universal SDKs.
4766
4767 * image.c (mac_create_cg_image_from_image, image_load_image_io)
4768 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
4769
4770 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
4771 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
4772
47732008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
4774
4775 * w32inevt.c: Include dispextern.h.
4776
47772008-07-26 Andreas Schwab <schwab@suse.de>
4778
4779 * print.c (print_object): Fix off-by-one in last change.
4780
47812008-07-25 Juanma Barranquero <lekktu@gmail.com>
4782
4783 * term.c (syms_of_term): Don't initialize default_orig_pair,
4784 default_set_foreground and default_set_background on Windows.
4785
47862008-07-25 Jason Rumney <jasonr@gnu.org>
4787
4788 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
4789 ScriptItemize. Clean up return value checking. Remove unused
4790 variables.
4791 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
4792 shaping engine.
4793
4794 * w32font.c (w32font_has_char): Handle the case where we can't
4795 determine the script for a character.
4796
47972008-07-25 Chong Yidong <cyd@stupidchicken.com>
4798
4799 * term.c (syms_of_term): Initialize default_orig_pair,
4800 default_set_foreground, and default_set_background.
4801
4802 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
4803 clash (bug#86).
4804 (getloadavg): Callers changed.
4805
4806 * image.c (svg_load_image): Fix last change.
4807 (svg_load_image): Use rsvg_handle_get_dimensions to check that
4808 image size is valid. Use g_object_unref instead of deprecated
4809 rsvg_handle_free to free rsvg handle.
4810 (x_from_xcolors): Don't initialize pixmap (silence compiler).
4811
48122008-07-25 Jason Rumney <jasonr@gnu.org>
4813
4814 * w32font.c (w32font_encode_char): Encode characters outside BMP as
4815 surrogates before looking up glyph index.
4816 (w32font_text_extents): Encode as surrogates if falling back to
4817 functions that need UTF-16 wide chars.
4818
4819 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
4820 BMP as surrogates before looking up glyph index.
4821
48222008-07-25 Chong Yidong <cyd@stupidchicken.com>
4823
4824 * image.c (svg_load_image): Check for failure in return value of
4825 rsvg_handle_get_pixbuf. Free rsvg handle when done.
4826
48272008-07-25 Jason Rumney <jasonr@gnu.org>
4828
4829 * w32font.c (Fx_select_font): Reverse sense of second arg.
4830
48312008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
4832
4833 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
4834 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
4835
4836 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
4837 (PURESIZE): Use it.
4838
48392008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
4840
4841 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
4842 * m/alpha.h (TEXT_END):
4843 * m/ibmrs6000.h (TEXT_END):
4844 * m/macppc.h (TEXT_END):
4845 * s/darwin.h (TEXT_END):
4846 * s/msdos.h (TEXT_END): Remove, unused.
4847 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
4848 * s/cygwin.h: Remove comment.
4849
4850 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
4851 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
4852 * m/intel386.h (DOT_GLOBAL_START):
4853 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
4854 (USG): Remove, file not used on USG platforms.
4855
4856 * Makefile.in (HAVE_X11): Remove empty #else.
4857
48582008-07-24 Andreas Schwab <schwab@suse.de>
4859
4860 * fileio.c (Finsert_file_contents): Properly adjust undo list
4861 after format conversion.
4862
48632008-07-24 Jan Djärv <jan.h.d@swipnet.se>
4864
4865 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
4866 (menu_nav_ended): Remove.
4867 (create_menus): Remove signal connect for menu_nav_ended.
4868 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
4869 create_menus.
4870 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
4871
48722008-07-23 Jason Rumney <jasonr@gnu.org>
4873
4874 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
4875 with opened font.
4876 (w32font_open): Set font type to gdi.
4877
4878 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
4879
48802008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
4881
4882 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
4883 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
4884 defines it.
4885 * unexec.c (ADDR_CORRECT): Define unconditionally.
4886
4887 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
4888
4889 * unexec.c: Remove code depending on !COFF and USG, the file is
4890 not used for such systems.
4891
4892 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
4893 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
4894 (LD_SWITCH_SYSTEM_1): Remove, update users.
4895
4896 * s/darwin.h (DATA_END):
4897 * m/intel386.h (DATA_END):
4898 * m/ibmrs6000.h (DATA_END):
4899 * m/alpha.h (DATA_END): Remove, unused.
4900
4901 * config.in: Regenerate.
4902 * s/ms-w32.h (subprocesses): Define unconditionally.
4903 * s/template.h (subprocesses): Update comment.
4904 * s/vms.h (subprocesses):
4905 * s/usg5-4.h (subprocesses):
4906 * s/hpux10-20.h (subprocesses):
4907 * s/gnu-linux.h (subprocesses):
4908 * s/cygwin.h (subprocesses):
4909 * s/bsd-common.h (subprocesses):
4910 * s/aix4-2.h (subprocesses):
4911 * s/darwin.h (subprocesses): Do not define, defined by default now.
4912
4913 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
4914 Remove all references.
4915 (temacs): Add GNUstep specific ld flags.
4916
4917 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
4918 similarly to what X does.
4919
49202008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4921
4922 * nsfns.m (x-list-fonts): Remove.
4923 (syms_of_nsfns): Drop the x-list-fonts declaration.
4924 * nsterm.m: Get rid of remaining "//" comments.
4925
49262008-07-22 Chong Yidong <cyd@stupidchicken.com>
4927
4928 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
4929
4930 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
4931 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
4932 (Fns_own_selection_internal, Fx_disown_selection_internal)
4933 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
4934
4935 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
4936 ... */' style of docstrings. Doc fixes.
4937
49382008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
4939
4940 * terminfo.c (UP, BC, PC): Undo previous change.
4941
4942 * nsfns.m: Rename ns prefixed functions/variables to the
4943 corresponding x versions. Update references.
4944
49452008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
4946
4947 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
4948
49492008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
4950
4951 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
4952 Remove forwarding functions.
4953 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
4954 non-static.
4955 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
4956 non-static.
4957 (ns_frame_parm_handlers): Use the new names.
4958 (syms_of_nsfns): Move to the end of file.
4959
4960 * nsterm.m (syms_of_nsterm): Move to the end of file.
4961
4962 * dispnew.c (init_display): Remove code for X10.
4963
49642008-07-22 Jason Rumney <jasonr@gnu.org>
4965
4966 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
4967 bare drive.
4968
49692008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4970
4971 * nsterm.m (syms_of_nsterm): Remove debugging println.
4972
49732008-07-22 David Reitter <david.reitter@gmail.com>
4974
4975 * nsfns.m (do_applescript, F_do_applescript): NS version of the
4976 Carbon implementation of the same functionality: execute arbitrary
4977 AppleScript code.
4978
49792008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4980
4981 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
4982 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
4983 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
4984 (Fx_display_mm_height, Fx_display_mm_width)
4985 (Fx_display_backing_store, Fx_display_visual_class)
4986 (Fx_display_save_under, Fx_open_connection)
4987 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
4988 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
4989 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
4990 (Fx_display_pixel_width, Fx_display_pixel_height)
4991 (Fx_display_usable_bounds, Fx_display_planes)
4992 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
4993 ... */' style of docstrings.
4994
49952008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
4996
4997 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
4998 on this platform.
4999 (mips):
5000 * m/iris4d.h (mips): Do not define.
5001 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
5002
5003 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
5004
5005 * image.c:
5006 * nsfns.m:
5007 * nsselect.m:
5008 * nsterm.h:
5009 * nsterm.m: Rename ns prefixed functions/variables to the
5010 corresponding x versions. Update references.
5011
5012 * m/ibms390x.h (NO_REMAP): Do not undefine.
5013
5014 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
5015
50162008-07-21 Chong Yidong <cyd@stupidchicken.com>
5017
5018 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
5019 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
5020 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
5021 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
5022 (Fns_display_mm_height, Fns_display_mm_width)
5023 (Fns_display_backing_store, Fns_display_visual_class)
5024 (Fns_display_save_under, Fns_open_connection)
5025 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
5026 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
5027 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
5028 (Fns_display_pixel_width, Fns_display_pixel_height)
5029 (Fns_display_usable_bounds, Fx_display_planes)
5030 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
5031
50322008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
5033
5034 * print.c (print_object): Check print_depth before searching for
5035 circularities.
5036
50372008-07-21 Michael Albinus <michael.albinus@gmx.de>
5038
5039 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
5040 only sprintf.
5041
50422008-07-21 Kenichi Handa <handa@m17n.org>
5043
5044 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
5045
50462008-07-20 Andreas Schwab <schwab@suse.de>
5047
5048 * syntax.c (find_start_pos, find_start_value)
5049 (find_start_value_byte, find_start_begv, find_defun_start)
5050 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
5051
50522008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
5053
5054 * s/sol2-3.h: Insert contents of s/sol2.h.
5055 (LD_SWITCH_SYSTEM): Remove redundant definition.
5056 * s/sol2.h: Remove, unused.
5057
50582008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5059
5060 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
5061
50622008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5063
5064 * Makefile.in (ns_appdir): Fix typo in find command.
5065
50662008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
5067
5068 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
5069
5070 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
5071 added not supported anymore.
5072
5073 * s/usg5-4-2.h (LIBS_SYSTEM):
5074 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
5075
5076 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
5077 * s/lynxos.h (GETPGRP_NO_ARG):
5078 * s/hpux10-20.h (NO_SIOCTL_H):
5079 * s/gnu.h (GETPGRP_NO_ARG):
5080 * s/gnu-linux.h (NO_SIOCTL_H):
5081 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
5082 * s/cygwin.h (GETPGRP_NO_ARG):
5083 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
5084 (C_DEBUG_SWITCH): Remove duplicate definition.
5085
5086 * m/ibms390.h: Remove boilerplate comments.
5087
5088 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
5089
5090 * process.c (HAVE_SERIAL): Consolidate ifdefs.
5091 (wait_reading_process_output): Remove code for SunOS, platform not
5092 supported anymore. Use SOLARIS2 instead of sun.
5093
50942008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
5095
5096 * font.c (font_open_by_name): Under NS, default lface height to zero.
5097 (font_open_for_lface): Under NS, set size based on frame fontsize.
5098 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
5099 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
5100
51012008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
5102
5103 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
5104 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
5105 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
5106 YES/NO.
5107 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
5108 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
5109 * Makefile.in (clean): Clear out build destination dir.
5110
51112008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
5112
5113 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
5114 xterm, xselect.
5115 * lisp.h: Remove declaration of hash_remove.
5116 * nsgui.h: Remove redefinitions of hash_remove.
5117 * fns.c (hash_remove): Rename to hash_remove_from_table.
5118
51192008-07-19 Seiji Zenitani <zenitani@mac.com>
5120
5121 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
5122 strdup() the family UTF8String before modifying it.
5123
51242008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
5125
5126 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
5127 NS_FACE_BACKGROUND with 0 instead of nil.
5128 * nsfont.m (nsfont_draw): Same.
5129
51302008-07-19 Chong Yidong <cyd@stupidchicken.com>
5131
5132 * nsfns.m (ns_set_background_color): Fix crash.
5133
51342008-07-18 Chong Yidong <cyd@stupidchicken.com>
5135
5136 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
5137
51382008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
5139
5140 * puresize.h (BASE_PURESIZE): Increase to 1240000.
5141
51422008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5143
5144 * gtkutil.c: Include <config.h> instead of "config.h".
5145
5146 * lisp.h (Foverlay_buffer): Add EXFUN.
5147
5148 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
5149 child process to complete child_setup. Undo 2005-09-21 change.
5150
5151 * s/darwin.h: Mention setsid after vfork.
5152
51532008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5154
5155 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
5156 Depend on macgui.h.
5157
5158 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
5159 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
5160
5161 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
5162 and f19.
5163 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
5164
5165 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
5166 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
5167 Remove enumerators.
5168
5169 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
5170 Check if FACE_FROM_ID returns NULL.
5171
51722008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
5173
5174 * w32inevt.c (change_frame_size): Remove extern declaration.
5175 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
5176 change_frame_size.
5177
51782008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
5179
5180 * getloadavg.c: Revert last change (2008-07-15).
5181
51822008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
5183
5184 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
5185 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc) set
5186 from configure.
5187
51882008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
5189
5190 * s/sol2.h:
5191 * s/sol2-4.h: Reorganize conditionals.
5192
5193 * ecrt0.c: Remove code depending on m68000, not used anymore.
5194
5195 * fns.c (hash_remove): Make static.
5196 * lisp.h (hash_remove): Don't prototype.
5197
5198 * m/ibmrs6000.h:
5199 * m/ibms390x.h:
5200 * m/macppc.h: Remove boilerplate comments.
5201
5202 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
5203 Solaris, which does not need them.
5204
5205 * m/vax.h: Remove comments about unsupported systems.
5206
5207 * s/darwin.h: Reorganize ifdefs.
5208
52092008-07-17 Andreas Schwab <schwab@suse.de>
5210
5211 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
5212
52132008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
5214
5215 Use SDATA. Follow coding convention of placing operators at
5216 beginning of next line rather than end of previous line, and placing
5217 spaces around infix operators.
5218
5219 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
5220 in case it was defined already.
5221 USE @GNUSTEP_MAKEFILES@ rather than envvars.
5222 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
5223 ns_default.
5224 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
5225 Lisp_Objects.
5226 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
5227 (ns_defined_color, ns_color_to_lisp): Declare.
5228 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
5229 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
5230 it's accepted even with USE_LISP_UNION_TYPE.
5231 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
5232 (update_frame_tool_bar): Remove apparently obsolete tests for
5233 non-integerness of f->tool_bar_lines.
5234 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
5235 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
5236 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
5237 (nsfont_open): Don't confuse NULL for Qnil.
5238 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
5239 * menu.h (find_and_call_menu_selection):
5240 * menu.c (find_and_call_menu_selection): Use just int for vector size.
5241 (find_and_return_menu_selection): Always return something.
5242 * frame.h: Include dispextern.h for Display_Info.
5243 (display_x_get_resource): Declare.
5244
52452008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
5246
5247 * syntax.c: Remove stdio.h include accidentally introduced in
5248 Emacs.app commit.
5249 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
5250 NS_IMPL_COCOA.
5251 * keyboard.c (handle_async_input, input_available_signal): Remove
5252 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
5253
52542008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
5255
5256 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
5257 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
5258 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
5259 Use SDATA.
5260
5261 * keymap.c: Remove all NS-specific code.
5262 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
5263 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
5264 where_is_preferred_modifier, return a different value depending on how
5265 preferred is the binding.
5266 (where_is_internal): Adjust accordingly.
5267 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
5268 Adjust to new preferred_sequence_p.
5269 (syms_of_keymap): Declare `where-is-preferred-modifier'.
5270 * keyboard.c (parse_solitary_modifier): Not static any more.
5271 * keyboard.h (parse_solitary_modifier): Declare.
5272
52732008-07-16 Andreas Schwab <schwab@suse.de>
5274
5275 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
5276 of easymenu.
5277
52782008-07-16 Chong Yidong <cyd@stupidchicken.com>
5279
5280 * xdisp.c (move_it_in_display_line): Account for word wrap, so
5281 that we don't move off the line.
5282
52832008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
5284
5285 * keyboard.c (Qsuper): Remove.
5286 (parse_menu_item): Don't call where_is_internal specially for NS.
5287
52882008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
5289
5290 * s/gnu-linux.h: Remove boilerplate comments.
5291
5292 * m/alpha.h (__ELF__): Consolidate conditions.
5293
5294 * m/m68k.h (linux): Use GNU_LINUX instead.
5295 Remove boilerplate comments.
5296
5297 * m/intel386.h: Undo refactoring from previous change.
5298 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
5299 too, remove dead code.
5300 (linux): Use GNU_LINUX instead.
5301
53022008-07-16 Jason Rumney <jasonr@gnu.org>
5303
5304 * w32gui.h: Repeat 26 June changes lost by last change.
5305
53062008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
5307
5308 * systty.h: Remove code for Aix on 386, unsupported platform.
5309
5310 * s/ms-w32.h: Remove boilerplate comments.
5311 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
5312
5313 * s/gnu-linux.h (TERM): Remove support.
5314 (HAVE_SYSVIPC): Remove, unused.
5315 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
5316 for this system.
5317
5318 * process.c: Remove support for IRIS, unused.
5319 Remove support for TERM, not relevant anymore.
5320
5321 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
5322 used with the definition.
5323
5324 * s/aix4-2.h (static): Do not undef.
5325
5326 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
5327 only used on Aix.
5328 (HAVE_SYSVIPC): Remove, unused.
5329
5330 * m/hp800.h (CANNOT_DUMP): Do not undef.
5331
5332 * m/alpha.h: Fix comment.
5333
5334 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
5335 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
5336 used by this configuration.
5337 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
5338 * unexec.c: Remove code depending on HPUX and
5339 USG_SHARED_LIBRARIES, not used with this file. Remove code
5340 depending on IRIS, unused. Remove if 0-ed code.
5341
5342 * s/template.h: Remove comments about static.
5343
5344 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
5345 Remove if 0-ed code.
5346 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
5347 were the same as the default.
5348 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
5349 Remove boilerplate comments.
5350 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
5351 (HAVE_SYSVIPC): Remove, unused.
5352 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
5353
5354 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
5355 Remove boilerplate comments.
5356 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
5357 Remove boilerplate comments.
5358 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
5359 Remove boilerplate comments.
5360 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
5361
5362 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
5363 USG systems which do not use DATA_SEG_BITS.
5364 Refactor code. Remove boilerplate comments.
5365
5366 * m/ibms390.h:
5367 * m/m68k.h:
5368 * s/bsd-common.h:
5369 * s/cygwin.h:
5370 * s/darwin.h:
5371 * s/freebsd.h:
5372 * s/gnu.h:
5373 * s/msdos.h: Remove boilerplate comments.
5374
5375 * m/iris4d.h: Remove boilerplate comments and code for systems that
5376 do not use this file.
5377 (IRIS_4D): Remove, unused.
5378
5379 * m/mips.h: Remove boilerplate comments and code for systems that
5380 do not use this file.
5381 (SIGN_EXTEND_CHAR):
5382 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
5383 * unexmips.c: Remove file, unused.
5384
5385 * editfns.c (Fuser_full_name): Replace the only use of
5386 USER_FULL_NAME with its value.
5387 * config.in: Regenerate.
5388
53892008-07-16 David Reitter <david.reitter@gmail.com>
5390
5391 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
5392 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
5393
53942008-07-16 Glenn Morris <rgm@gnu.org>
5395
5396 * emacs.c (system-type): Doc fix.
5397
53982008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
5399
5400 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
5401 If the cache doesn't work, let's fix it, rather than work around it.
5402
54032008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
5404
5405 * Makefile.in: Correct additions for nsfont.o in last commit.
5406 * nsfont.m: New file (forgot last commit).
5407
54082008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
5409
5410 * callproc.c (set_initial_environment): Initialize
5411 Vprocess_environment under CANNOT_DUMP (fixes crash when
5412 batch-compiling for bootstrap).
5413
54142008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
5415 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5416
5417 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
5418 fix crash due to different init order.
5419
54202008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
5421
5422 Changes and additions for NeXTstep windowing system (Cocoa and
5423 GNUstep) support.
5424
5425 * Makefile.in:
5426 * config.in: Support defines and build commands for NS port.
5427 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
5428 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
5429 * dispextern.h: Include nsgui.h and add needed typedefs under NS
5430 windowing.
5431 (struct face): Add synth_ital field.
5432 * dispnew.c: Include nsterm.h when compiling under NS windowing.
5433 (init_display): Initialize Vinitial_window_system to "ns" when so
5434 compiled.
5435 * emacs.c: Include GSConfig.h when compiling under GNUstep.
5436 (display_arg): Use under NS.
5437 (main): Under NS, allocate autorelease pool and handle command line
5438 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
5439 (standard_args): Add NS-specific args.
5440 (shut_down_emacs): Shut down NS terminal if compiled under NS.
5441 * font.c (DEFAULT_ENCODING): New variable.
5442 (font_find_for_lface): Use it.
5443 (syms_of_font): Load syms_of_nsfont under NS.
5444 * font.h: Declare nsfont_driver when compiled under NS.
5445 * fontset.c: When compiling under NS, include nsterm.h.
5446 (fontset_from_font): Autoconstruct fontset under NS.
5447 * frame.c (various): Under NS, include nsterm.h, add Qns window system
5448 symbol, document and use it.
5449 (do_switch_frame): When for_deletion under Cocoa, add
5450 Fraise_frame(Qnil).
5451 (x_set_frame_parameters): Ensure font attribute changes are picked up.
5452 (x_get_arg): Allow "yes" and "no" as boolean values.
5453 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
5454 Qright under Cocoa.
5455 (focus-follows-mouse): Default to 0 under NS.
5456 * frame.h (enum output_method): Add output_ns.
5457 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
5458 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
5459 (FRAME_WINDOW_P): NS-specific definition.
5460 * fringe.c (max_used_fringe_bitmap): Make public.
5461 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
5462 (getloadavg): Use NeXT code under descendant OS's.
5463 * image.c (includes and header section, x_create_bitmap_from_data)
5464 (x_create_bitmap_from_file, free_bitmap_record, image_background)
5465 (image_background_transparent, x_clear_image_1)
5466 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
5467 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
5468 (x_to_xcolors, x_from_xcolors, x_disable_image)
5469 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
5470 other GUIs, including XPM support using code originally written for
5471 Carbon GUI.
5472 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
5473 using NS API.
5474 (image_ascent): Use font metrics macros instead of direct struct field
5475 access.
5476 * keyboard.c (includes): Add nsterm.h when compiling under NS.
5477 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
5478 Also, handle NS as GTK for menu bar purposes.
5479 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
5480 toolkit where they differ.
5481 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
5482 use cachelist, still needed under NS.
5483 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
5484 (struct widget_value): Define it here for menu.c.
5485 * keymap.c (includes): Include modifier internals.
5486 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
5487 NS.
5488 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
5489 support for preferring sequences using certain modifiers, specified by
5490 the FIRSTONLY argument.
5491 * lisp.h (hash_remove): Rename to avoid name clash when compiling
5492 under NS GNUstep implementation.
5493 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
5494 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
5495 * menu.c: Include nsterm.h under NS.
5496 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
5497 (free_menubar_widget_tree_value, update_submenu_strings)
5498 (find_and_call_menu_selection): Treat NS as X and NT.
5499 (find_and_return_menu_selection): New function, used for popup menus.
5500 * nsgui.h:
5501 * nsterm.h:
5502 * nsfns.m:
5503 * nsimage.m:
5504 * nsmenu.m:
5505 * nsselect.m:
5506 * nsterm.m: New files.
5507 * process.c (wait_reading_process_output): Under NS, call ns_select()
5508 instead of plain select().
5509 * syntax.c (char_quoted): Under NS, avoid a crash when called near
5510 beginning of buffer.
5511 * sysselect.h (init_process): Rename when compiling under Cocoa to
5512 avoid name conflict.
5513 * termhooks.h (display_info): Add ns_display_info to union.
5514 * terminal.c (Fterminal_live_p): Add ns to terminal types.
5515 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
5516 COCOA environment.
5517 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
5518 unexec() signature. (Note, this will dump, but the resulting file
5519 crashes; unexosx is used instead; keeping around for reference and
5520 possible aid in getting dump working under GNUstep.)
5521 * w32gui.h (button_type, widget_value): Remove definitions (now in
5522 keyboard.h).
5523 * window.c: Include nsterm.h when compiling under NS.
5524 * xdisp.c (includes): Include nsterm.h when compiling under NS.
5525 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
5526 other GUI windowing systems.
5527 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
5528 GTK.
5529 (x_consider_frame_title): Under NS, set icon type and frame
5530 modified-state indicator; use ns_set_name_as_filename() when using
5531 formatted title.
5532 (update_window_cursor): Make public when compiling under NS.
5533 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
5534 (hourglass_atimer, Vhourglass_delay
5535 * xfaces.c (header section, init_frame_faces, clear_font_table)
5536 (defined_color, unload_color, x_face_list_fonts)
5537 (prepare_face_for_display): Add NS support parallel to other GUIs.
5538 Emulate GCs like other non-X GUIs.
5539 (split_font_name): Don't lowercase font name under NS.
5540 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
5541 under NS.
5542 * s/darwin.h: Add support for compilation under NS.
5543
55442008-07-15 Jason Rumney <jasonr@gnu.org>
5545
5546 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
5547 (w32_show_hourglass): Rename from show_hourglass.
5548 (w32_hide_hourglass): Rename from hide_hourglass.
5549 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
5550 (Vhourglass_delay): Declare extern.
5551 (hourglass_started): Remove.
5552
5553 * xdisp.c (Vhourglass_delay): Remove static.
5554 (hourglass_started, start_hourglass, cancel_hourglass):
5555 Don't include these versions on WINDOWSNT.
5556
55572008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
5558
5559 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
5560 variables (formerly in xfns.c).
5561 (show_hourglass, hide_hourglass): New prototypes (same).
5562 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
5563 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
5564 in xfns.c).
5565 (syms_of_xdisp): Declare/initialize display-hourglass,
5566 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
5567 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
5568 formerly in xfns.c.
5569 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
5570 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
5571 (start_hourglass, cancel_hourglass): Remove.
5572 (show_hourglass, hide_hourglass): Remove prototypes and static
5573 modifiers.
5574 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
5575 hourglass_atimer, hourglass_shown_p declaration/initialization.
5576 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
5577 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
5578 (start_hourglass, cancel_hourglass): Remove.
5579 (show_hourglass, hide_hourglass): Remove prototypes and static
5580 modifiers.
5581 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
5582 hourglass_atimer, hourglass_shown_p declaration/initialization.
5583 * w32fns.c (display_hourglass_p, Vhourglass_delay)
5584 (DEFAULT_HOURGLASS_DELAY): Remove.
5585 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
5586 hourglass_shown_p declaration/initialization.
5587
55882008-07-14 Jason Rumney <jasonr@gnu.org>
5589
5590 * w32fns.c (w32_get_arg): Remove wrapper function.
5591 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
5592 directly.
5593 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
5594
55952008-07-14 Kenichi Handa <handa@m17n.org>
5596
5597 * xfont.c (xfont_open): Add workaround for X's bug.
5598
55992008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
5600
5601 * fontset.c: Include <stdio.h> unconditionally.
5602
56032008-07-13 Michael Albinus <michael.albinus@gmx.de>
5604
5605 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
5606 for filtering.
5607
56082008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
5609
5610 * s/vms.h: Use __GNUC__ instead of _GNUC_.
5611
5612 * m/macppc.h:
5613 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
5614
5615 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
5616 (SPECIAL_EMACS_INT):
5617 * m/ia64.h (SPECIAL_EMACS_INT):
5618 * m/amdx86-64.h (SPECIAL_EMACS_INT):
5619 * s/gnu.h (NLIST_STRUCT):
5620 * s/aix4-2.h (X11R5_INHIBIT_I18N):
5621 * s/gnu-linux.h (LINUX):
5622 * s/msdos.h (HAVE_FACES):
5623 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
5624
5625 * systty.h:
5626 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
5627 anymore.
5628
56292008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
5630
5631 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
5632 always defined as int.
5633
5634 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
5635 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
5636 * s/gnu-linux.h (HAVE_WAIT_HEADER):
5637 * s/freebsd.h (HAVE_WAIT_HEADER):
5638 * s/bsd-common.h (HAVE_UNION_WAIT):
5639 * s/aix4-2.h (HAVE_WAIT_HEADER):
5640 * m/mips.h (HAVE_UNION_WAIT):
5641 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
5642 (COFF, static): Do not define, they are undefined later in the file.
5643
5644 * process.c (update_status): Don't use a union.
5645 (status_convert):
5646 (sigchld_handler): Use int instead of WAITTYPE.
5647
56482008-07-12 Chong Yidong <cyd@stupidchicken.com>
5649
5650 * indent.c (Fvertical_motion): Restore hscroll before moving to
5651 goal column.
5652
56532008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
5654
5655 * lisp.h: Remove left over code.
5656
56572008-07-11 Andreas Schwab <schwab@suse.de>
5658
5659 * lisp.h: Fix logic in last change.
5660
5661 * menu.h: New file.
5662 * menu.c: Include it.
5663 * xmenu.c: Likewise.
5664 * Makefile.in: Update dependencies.
5665
56662008-07-11 Kenichi Handa <handa@m17n.org>
5667
5668 * fontset.c (fontset_from_font): Cancel the previous change.
5669
56702008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
5671
5672 * lisp.h:
5673 * w32heap.c:
5674 * emacs.c:
5675 * alloc.c: Replace all references of NO_UNION_TYPE with
5676 USE_LISP_UNION_TYPE.
5677
5678 * m/xtensa.h (NO_UNION_TYPE):
5679 * m/vax.h (NO_UNION_TYPE):
5680 * m/template.h (NO_UNION_TYPE):
5681 * m/sparc.h (NO_UNION_TYPE):
5682 * m/mips.h (NO_UNION_TYPE):
5683 * m/macppc.h (NO_UNION_TYPE):
5684 * m/m68k.h (NO_UNION_TYPE):
5685 * m/iris4d.h (NO_UNION_TYPE):
5686 * m/intel386.h (NO_UNION_TYPE):
5687 * m/ibms390x.h (NO_UNION_TYPE):
5688 * m/ibms390.h (NO_UNION_TYPE):
5689 * m/ibmrs6000.h (NO_UNION_TYPE):
5690 * m/ia64.h (NO_UNION_TYPE):
5691 * m/hp800.h (NO_UNION_TYPE):
5692 * m/arm.h (NO_UNION_TYPE):
5693 * m/amdx86-64.h (NO_UNION_TYPE):
5694 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
5695 defining it the same.
5696
56972008-07-10 Chong Yidong <cyd@stupidchicken.com>
5698
5699 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
5700
57012008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
5702
5703 * fileio.c:
5704 * sysdep.c
5705 * systty.h:
5706 * m/ibmrs6000.h:
5707 * m/iris4d.h:
5708 * s/aix4-2.h:
5709 * s/freebsd.h:
5710 * s/gnu-linux.h:
5711 * s/hpux10-20.h:
5712 * s/hpux11.h:
5713 * s/netbsd.h:
5714 * s/sol2-3.h:
5715 * s/sol2-4.h:
5716 * s/sol2.h:
5717 * s/usg5-4.h:
5718 * s/vms.h: Remove references to unused variables.
5719
57202008-07-10 Andreas Schwab <schwab@suse.de>
5721
5722 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
5723 pattern before matching the generic family.
5724
57252008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
5726
5727 * unexec.c:
5728 * s/vms.h:
5729 * s/usg5-4-2.h:
5730 * s/sol2-5.h:
5731 * s/freebsd.h:
5732 * s/darwin.h: Remove dead code.
5733
5734 * m/template.h:
5735 * m/sparc.h:
5736 * m/mips.h:
5737 * m/m68k.h:
5738 * m/iris4d.h:
5739 * m/intel386.h:
5740 * m/ibms390x.h:
5741 * m/ibms390.h:
5742 * m/ia64.h:
5743 * m/hp800.h:
5744 * m/arm.h:
5745 * m/amdx86-64.h: Remove dead code and references to unused
5746 and compiler defined symbols.
5747
5748 * unexmips.c:
5749 * unexelf.c: Remove references to desupported systems.
5750
5751 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
5752
5753 * m/powermac.h: Remove boilerplate comments.
5754 (NO_REMAP): Remove unused definition.
5755
5756 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
5757 define them.
5758
57592008-07-10 Kenichi Handa <handa@m17n.org>
5760
5761 * xfont.c (xfont_open): Log the reason of failure.
5762
57632008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
5764
5765 * fontset.c (fontset_get_font_group):
5766 * font.c (font_check_otf): Specify argument types.
5767
57682008-07-09 Kenichi Handa <handa@m17n.org>
5769
5770 * coding.c (detect_coding_utf_8): Set detect_info->found only when
5771 non-ASCII char is found.
5772
5773 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
5774 (reorder_font_vector): Change the arg preferred_family to font.
5775 Prefer the spec matching with font.
5776 (fontset_get_font_group): New function.
5777 (fontset_find_font): Change the format of an element of a realized
5778 fontset. Use fontset_get_font_group.
5779 (fontset_font): Try the current fontset, the default fontset, the
5780 fallbacks of the current fontset, and the fallbacks of the default
5781 fontset in this order.
5782 (face_for_char): Delete the shortcut to use the current font.
5783 (fontset_from_font): Don't set fonts for Latin in the fontset.
5784
5785 * font.h (font_make_object, font_match_p): Adjust prototypes.
5786
5787 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
5788
5789 * font.c (font_make_object): New arg entity and pixelsize.
5790 (font_check_otf_features, font_check_otf): New functions.
5791 (font_match_p): Check :lang, :script, and :otf properties.
5792
5793 * xfont.c (xfont_open): Adjust it for the change of
5794 font_make_object.
5795 (xfont_text_extents): Fix initial setting of metrics.
5796
5797 * ftfont.c (struct ftfont_info): New member index, delete member
5798 fc_charset_idx. Make the member order compatible with struct
5799 xftfont_info.
5800 (fc_charset_table): Change charset names to registry names.
5801 (ftfont_pattern_entity): Delete the args registry and
5802 fc_charset_idx. Change the value of :font-entity property
5803 to (FONTNAME . INDEX). Always set :registry property to
5804 `iso10646-1'.
5805 (struct ftfont_cache_data): New struct.
5806 (ftfont_lookup_cache): New arg for_face.
5807 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
5808 (ftfont_driver): Set the member otf_capability.
5809 (ftfont_get_charset): Adjust it for the change of
5810 fc_charset_table.
5811 (OTF_TAG_SYM): New macro.
5812 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
5813 for the change of fc_charset_table.
5814 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
5815 ftfont_pattern_entity. Add FC_INDEX to objset.
5816 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
5817 and ftfont_pattern_entity.
5818 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
5819 font_make_object, struct ftfont_info.
5820 (ftfont_has_char): Use ftfont_get_fc_charset.
5821 (ftfont_otf_features, ftfont_otf_capability): New functions.
5822 (ftfont_shape): Use ftfont_get_otf.
5823 (ftfont_text_extents): Fix initial setting of metrics.
5824
5825 * xftfont.c (struct xftfont_info): New member ft_size. Make the
5826 member order compatible with struct ftfont_info.
5827 (xftfont_open): Add FC_CHARSET to the pattern. Set
5828 xftfont_info->ft_size. Don't unlock the face. Check BDF
5829 properties if appropriate.
5830 (xftfont_close): Unlock the face.
5831 (xftfont_anchor_point, xftfont_shape): Deleted.
5832 (syms_of_xftfont): Don't set members anchor_point and shape of
5833 xftfont_driver.
5834
5835 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
5836 font_make_object.
5837
5838 * w32font.c (w32font_open): Adjust it for the change of
5839 font_make_object.
5840 (w32font_open_internal): Don't set properties of font_object here.
5841
58422008-07-08 Chong Yidong <cyd@stupidchicken.com>
5843
5844 * macfns.c (x_create_tip_frame):
5845 * w32fns.c (x_create_tip_frame):
5846 * xfns.c (x_create_tip_frame): Pass parameter argument to
5847 face-set-after-frame-default.
5848
5849 * xfaces.c (Finternal_merge_in_global_face): Save merged
5850 attributes for the default face back into the face vector.
5851
58522008-07-08 Andreas Schwab <schwab@suse.de>
5853
5854 * fontset.h: Declare fontset_from_font. Don't declare
5855 new_fontset_from_font and fontset_from_font_name.
5856 * xterm.c: Include "fontset.h".
5857 * Makefile.in (xterm.o): Update dependencies.
5858
58592008-07-08 Glenn Morris <rgm@gnu.org>
5860
5861 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
5862 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
5863
58642008-07-07 Chong Yidong <cyd@stupidchicken.com>
5865
5866 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
5867 (x_set_frame_parameters): Don't bind it.
5868
58692008-07-07 Juanma Barranquero <lekktu@gmail.com>
5870
5871 * w32fns.c (map_w32_filename): Declare extern.
5872
58732008-07-07 Jason Rumney <jasonr@gnu.org>
5874
5875 * w32term.c (WS_EX_LAYERED): Define if not already.
5876
58772008-07-06 Chong Yidong <cyd@stupidchicken.com>
5878
5879 * xfaces.c (set_font_frame_param): Don't try to set the font
5880 parameter if it is still unspecified in the lface.
5881
58822008-07-05 Chong Yidong <cyd@stupidchicken.com>
5883
5884 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
5885 face if it didn't already exist.
5886
5887 * xdisp.c (try_window_id): Give up if word-wrapping is on.
5888
58892008-07-05 Andreas Schwab <schwab@suse.de>
5890
5891 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
5892
58932008-07-05 Chong Yidong <cyd@stupidchicken.com>
5894
5895 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
5896 word-wrapping.
5897 (IT_DISPLAYING_WHITESPACE): New macro.
5898 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
5899 when word-wrapping. Simplify word-wrapping logic. Use correct
5900 pixel positions when saving copies of the iterator.
5901 (display_line): Use proper wrap point if the last character on a
5902 line was preceded by whitespace.
5903
59042008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
5905
5906 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
5907
59082008-07-04 Kenichi Handa <handa@m17n.org>
5909
5910 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
5911
5912 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
5913
59142008-07-02 Jason Rumney <jasonr@gnu.org>
5915
5916 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 5917 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
5918
5919 * xdisp.c (next_element_from_display_vector): Move assignment out
5920 of if statement.
5921
59222008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
5923
5924 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
5925
5926 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
5927 (syms_of_fileio): Initialize and export them.
5928 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
5929
5930 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
5931 (Fsystem_move_file_to_trash): New function.
5932 (syms_of_w32fns): Export it to lisp.
5933
59342008-07-01 Jason Rumney <jasonr@gnu.org>
5935
5936 * w32font.c (w32font_text_extents): Don't count overhang as part
5937 of width.
5938
59392008-06-30 Miles Bader <miles@gnu.org>
5940
5941 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
5942 Add `avoid_cursor_p' field.
5943
5944 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
5945 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
5946 (append_glyph, append_composite_glyph, produce_image_glyph)
5947 (append_stretch_glyph): Initialize avoid_cursor_p.
5948 (get_it_property): Rename from `get_line_height_property'.
5949 (x_produce_glyphs): Use get_it_property.
5950 (handle_line_prefix, push_display_prop): New functions.
5951 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
5952 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
5953 New variables.
5954 (syms_of_xdisp): Initialize them.
5955
59562008-06-30 Kenichi Handa <handa@m17n.org>
5957
5958 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
5959 XftDefaultSubstitute (they are called in XftFontMatch).
5960 (xftfont_open): Fix args to ftfont_font_format.
5961
5962 * ftfont.c (fc_charset_table): New member lang.
5963 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 5964 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
5965 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
5966 (ftfont_open): Fix args to ftfont_font_format.
5967 (ftfont_font_format): New arg filename.
5968
59692008-06-30 Chong Yidong <cyd@stupidchicken.com>
5970
5971 * xfaces.c (Finternal_merge_in_global_face): If default face was
5972 modified, realize it again. Update the font face attribute.
5973
59742008-06-29 Jason Rumney <jasonr@gnu.org>
5975
5976 * w32term.c (x_set_frame_alpha): Fix logic.
5977
59782008-06-29 Kenichi Handa <handa@m17n.org>
5979
5980 * fontset.c (Finternal_char_font): Return font-object instead of
5981 font-name.
5982
5983 * composite.c (get_composition_id): Fix the width calculation for TAB.
5984
59852008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
5986
5987 * indent.c (Fvertical_motion): Properly handle float column arg.
5988
59892008-06-28 Jason Rumney <jasonr@gnu.org>
5990
5991 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
5992 (pfnSetLayeredWindowAttributes): New function pointer.
5993 (w32_initialize): Initialize it when supported.
5994 (x_set_frame_alpha): New function.
5995
5996 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
5997 (w32_frame_parm_handlers): Set alpha handler.
5998
5999 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
6000
60012008-06-27 Jason Rumney <jasonr@gnu.org>
6002
6003 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
6004 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
6005 (w32_to_x_charset, x_to_w32_charset)
6006 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
6007 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
6008 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
6009 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
6010 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
6011 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
6012 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
6013 (Qw32_charset_unicode): Remove.
6014 (syms_of_w32fns): Update for above changes.
6015
6016 * w32font.c (w32_to_x_charset, x_to_w32_charset)
6017 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
6018 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
6019 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
6020 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
6021 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
6022 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
6023 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
6024 (syms_of_w32font): Update for above changes.
6025
60262008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
6027
6028 * s/usg5-4.h: Fix previous change: keep the correct branch of a
6029 removed #if.
6030 (USG_SHARED_LIBRARIES): Remove duplicate definition.
6031
60322008-06-26 Juanma Barranquero <lekktu@gmail.com>
6033 Eli Zaretskii <eliz@gnu.org>
6034
6035 * makefile.w32-in (LOCAL_FLAGS):
6036 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
6037
6038 * sysdep.c (_spawnlp, _getpid):
6039 Declare with explicit _cdecl instead of _CRTAPI1.
6040
6041 * editfns.c (Fget_internal_run_time):
6042 Check for WINDOWSNT with #ifdef, not #if.
6043
60442008-06-26 Jason Rumney <jasonr@gnu.org>
6045
6046 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
6047
6048 * w32term.c (x_draw_glyph_string_foreground)
6049 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
6050 Use FONT_HANDLE macro.
6051 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
6052
6053 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
6054 (uniscribe_encode_char): Use FONT_HANDLE macro.
6055
6056 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
6057 (w32font_text_extents): Use precast w32_font.
6058 (w32font_close): Free cached metrics.
6059 (w32font_open_internal): Allocate space for name on stack.
6060
60612008-06-26 Chong Yidong <cyd@stupidchicken.com>
6062
6063 * xdisp.c (extend_face_to_end_of_line): Fix last change.
6064
60652008-06-26 Jason Rumney <jasonr@gnu.org>
6066
6067 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
6068 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
6069
60702008-06-26 Juanma Barranquero <lekktu@gmail.com>
6071
6072 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
6073
60742008-06-26 Jason Rumney <jasonr@gnu.org>
6075
6076 * w32bdf.c, w32bdf.h: Remove obsolete files.
6077
6078 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
6079
6080 * w32gui.h: Don't include w32bdf.h.
6081 (XCharStruct, enum w32_char_font_type, W32FontStruct):
6082 Remove obsolete font support.
6083
6084 * w32font.h (struct w32font_info): Remove compat_w32_font.
6085 Add hfont member.
6086 (FONT_COMPAT): Remove obsolete macro.
6087
6088 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
6089 (w32font_encode_char, w32font_text_extents): Use new hfont member.
6090 (w32font_open_internal): Remove compat code. Set new hfont member.
6091 (Fx_select_font): Use new hfont member.
6092
6093 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
6094 (uniscribe_encode_char): Use new hfont member.
6095
6096 * w32term.c (x_draw_glyph_string_foreground)
6097 (x_draw_composite_glyph_string_foreground): Use new hfont member.
6098 (x_draw_glyph_string): Use metrics in w32font_info.
6099
61002008-06-26 Kenichi Handa <handa@m17n.org>
6101
6102 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
6103
61042008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
6105
6106 * unexnext.c:
6107 * m/ews4800.h:
6108 * m/hp9000s300.h:
6109 * m/ibm370aix.h:
6110 * m/mips-siemens.h:
6111 * m/ncr386.h:
6112 * m/next.h:
6113 * m/pmax.h:
6114 * m/powerpcle.h:
6115 * m/tandem-s2.h:
6116 * s/386bsd.h:
6117 * s/bsd386.h:
6118 * s/bsd4-1.h:
6119 * s/bsd4-2.h:
6120 * s/bsdos2-1.h:
6121 * s/bsdos2.h:
6122 * s/bsdos3.h:
6123 * s/bsdos4.h:
6124 * s/nextstep.h:
6125 * s/ultrix4-3.h:
6126 * s/usg5-0.h:
6127 * s/usg5-2-2.h:
6128 * s/usg5-2.h:
6129 * s/usg5-4-3.h:
6130 * s/ux4800.h:
6131 * s/uxpds.h:
6132 * s/uxpv.h: Remove support for obsolete systems.
6133 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 6134 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
6135 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
6136 Remove, insert contents in s/aix4-2.h.
6137 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
6138 * s/bsd4-3.h: Rename to ...
6139 * s/bsd-common.h: ... this.
6140 * data.c:
6141 * doc.c:
6142 * ecrt0.c:
6143 * emacs.c:
6144 * fileio.c:
6145 * floatfns.c:
6146 * keyboard.c:
6147 * mem-limits.h:
6148 * print.c:
6149 * process.c:
6150 * sysdep.c:
6151 * syssignal.h:
6152 * systty.h:
6153 * syswait.h:
6154 * term.c:
6155 * unexec.c:
6156 * unexelf.c:
6157 * unexhp9k800.c:
6158 * m/hp800.h:
6159 * m/ibmrs6000.h:
6160 * m/mips.h:
6161 * m/vax.h:
6162 * s/darwin.h:
6163 * s/freebsd.h:
6164 * s/gnu.h:
6165 * s/ms-w32.h:
6166 * s/msdos.h:
6167 * s/netbsd.h:
6168 * s/template.h: Remove references to obsolete variables.
6169
6170 * Makefile.in: Add dependencies for all unexec files.
6171 (admindir): Remove unused variable.
6172 (UNEXEC_SRC): Remove references.
6173
61742008-06-25 Chong Yidong <cyd@stupidchicken.com>
6175
6176 * xfns.c (x_default_font_parameter): If Xft is available, first
6177 try Monospace-12 for the default font.
6178
61792008-06-25 Jason Rumney <jasonr@gnu.org>
6180
6181 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
6182
61832008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
6184
6185 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
6186
6187 * buffer.c (syms_of_buffer): Remove default-word-wrap.
6188
61892008-06-25 Juanma Barranquero <lekktu@gmail.com>
6190
6191 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
6192 <scroll-conservatively>: Fix typo in docstring.
6193
6194 * xselect.c (Fx_send_client_event): Doc fix.
6195
61962008-06-25 Kenichi Handa <handa@m17n.org>
6197
6198 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
6199
6200 * font.c (font_parse_fcname): Remove unused variables.
6201 (font_sort_entites): Delete the arg SPEC. Caller changed.
6202 Fix for the case of ! best_only.
6203 (font_delete_unmatched): Check DPI and AVGWIDTH too.
6204
6205 * lisp.h (Fstring_to_unibyte): EXFUN it.
6206
6207 * character.h (str_to_unibyte): Extern it.
6208
6209 * character.c (str_to_unibyte): New function.
6210
6211 * fns.c (Fstring_to_unibyte): New function.
6212 (syms_of_fns): Defsubr it.
6213
62142008-06-24 Kenichi Handa <handa@m17n.org>
6215
6216 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
6217 DPI too.
6218 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
6219
62202008-06-24 Andreas Schwab <schwab@suse.de>
6221
6222 * Makefile.in (${lispsource}loaddefs.el): Rename from
6223 ../lisp/loaddefs.el.
6224 (bootstrap-clean): Do what distclean does but don't remove
6225 Makefile.
6226 (distclean): Depend on bootstrap-clean and remove Makefile.
6227
62282008-06-24 Chong Yidong <cyd@stupidchicken.com>
6229
6230 * buffer.h (struct buffer): New member word_wrap.
6231
6232 * buffer.c (syms_of_buffer): New variables default-word-wrap and
6233 word-wrap.
6234 (init_buffer_once): Initialize them.
6235
6236 * dispextern.h (struct it): Replace bool truncate_lines_p with a
6237 line_wrap enum possessing three possible values.
6238
6239 * termopts.h: Replace truncate_partial_width_windows with
6240 Vtruncate_partial_width_windows.
6241
6242 * dispnew.c (direct_output_for_insert): Avoid direct output when
6243 inserting a space with word wrap on.
6244
6245 * indent.c (compute_motion): Obey integer values of
6246 truncate-partial-width-windows.
6247
6248 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
6249 replacing truncate_partial_width_windows.
6250 (init_iterator): If Vtruncate_partial_width_windows is an integer,
6251 truncate only if the window width is below that integer.
6252 (start_display, resize_mini_window, produce_stretch_glyph)
6253 (display_string, move_it_in_display_line_to): Use line_wrap.
6254 (back_to_previous_visible_line_start, reseat_1): Reset
6255 string_from_display_prop_p.
6256 (display_line): Extend default face to end of line when wrapping.
6257
62582008-06-24 Kim F. Storm <storm@cua.dk>
6259
6260 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
6261 to wrap continued lines at word boundaries.
6262
62632008-06-24 Jason Rumney <jasonr@gnu.org>
6264
6265 * font.c (Ffont_face_attributes): Multiply pixel size before point
6266 conversion to avoid multiplying rounding error.
6267
62682008-06-23 Jason Rumney <jasonr@gnu.org>
6269
6270 * w32term.c (x_draw_glyph_string_background)
6271 (x_draw_glyph_string): Remove old bdf font code.
6272
6273 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
6274
62752008-06-22 Kenichi Handa <handa@m17n.org>
6276
6277 * font.c (font_find_for_lface): Try the adstyle specified in
6278 the property of LFACE_FONT of LFACE (if any).
6279
62802008-06-21 Seiji Zenitani <zenitani@mac.com>
6281 Ryo Yoshitake <ryo@shiftmode.net>
6282
6283 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
6284
62852008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
6286
6287 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
6288 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
6289 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
6290 (witness-emacs): Remove.
6291 (lisp, shortlisp): Move loaddefs.el earlier.
6292 (mostlyclean): Forget about witness-emacs.
6293
62942008-06-22 Glenn Morris <rgm@gnu.org>
6295
6296 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
6297 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
6298
62992008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
6300
6301 * Makefile.in (PRECOMP): Remove.
6302 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
6303 (witness-emacs): Run `compile-first'.
6304 (.el.elc): Use the new compile-onefile target.
6305
63062008-06-21 Kenichi Handa <handa@m17n.org>
6307
6308 * xftfont.c (xftfont_open): Handle QCembolden only when
6309 FC_EMBOLDEN is defined.
6310
63112008-06-21 Andreas Schwab <schwab@suse.de>
6312
6313 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
6314 (.el.elc): Likewise.
6315
63162008-06-21 Miles Bader <miles@gnu.org>
6317
6318 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
6319 build dir, not the lisp source dir.
6320
63212008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
6322
6323 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
6324 (bootstrapclean): Remove.
6325 (.el.elc): New rule.
6326 (PRECOMP): New var.
6327 (../lisp/subdirs.el): Remove.
6328 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
6329 (witness-emacs): New target.
6330 (mostlyclean): Remove witness-emacs as well.
6331 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
6332 Add witness-emacs dependency.
6333
63342008-06-20 Chong Yidong <cyd@stupidchicken.com>
6335
6336 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
6337 defined by the font.
6338
63392008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
6340
6341 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
6342 (bootstrap-clean): New target that keeps TAGS around.
6343 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
6344 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
6345
63462008-06-20 Jason Rumney <jasonr@gnu.org>
6347
6348 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
6349 Remove obsolete font code.
6350
6351 * w32font.c (font_matches_spec): Use csb bitfield from font signature
6352 to determine language support.
6353
63542008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
6355
6356 * sysdep.c (cfsetspeed): New fun extracted from the code.
6357 (cfmakeraw): Move before first use.
6358
63592008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
6360
6361 * sysdep.c (cfmakeraw): Provide fallback implementation.
6362 (serial_configure): Provide fallback implementation of cfsetspeed.
6363
63642008-06-20 Kenichi Handa <handa@m17n.org>
6365
6366 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
6367 the pattern.
6368
6369 * fontset.c (fontset_from_font): Copy font_spec before changing
6370 the elements.
6371
6372 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
6373
63742008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
6375
6376 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
6377 for explicit `font' parameters.
6378
6379 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
6380
63812008-06-19 Kenichi Handa <handa@m17n.org>
6382
6383 * frame.c: Include <ctype.h>.
6384 (x_set_font_backend): Allow spacing characters in the X resource
6385 for FontBackend.
6386
63872008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
6388
6389 * w32fns.c, xfns.c (Qfont_param): New var.
6390 (syms_of_w32fns): Initialize it.
6391 (x_default_font_parameter): Record explicit `font' into
6392 `font-parameter'.
6393
63942008-06-18 Kenichi Handa <handa@m17n.org>
6395
6396 * font.c (font_parse_xlfd): Fix previous change.
6397 (font_parse_fcname): Don't use :fc-unknown-spec.
6398 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
6399 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
6400 (font_add_log): Prepend the driver name to the resulting fonts.
6401
6402 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
6403 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
6404 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
6405
6406 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
6407 (QCembolden): New variables.
6408 (syms_of_xftfont): DEFSYM them.
6409 (xftfont_open): Call XftFontMatch. Don't trust the result of
6410 XftTextExtents8 if the pixel_size is less than 5.
6411
64122008-06-18 Andreas Schwab <schwab@suse.de>
6413
6414 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
6415 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
6416
64172008-06-18 Jason Rumney <jasonr@gnu.org>
6418
6419 * w32font.c (w32font_list, w32font_match): Add logging.
6420
6421 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
6422
64232008-06-17 Chong Yidong <cyd@stupidchicken.com>
6424
6425 * font.c (font_parse_fcname): Store divider characters for
6426 unknown-spec list. For known key symbols, intern using correct
6427 symbol name.
6428
64292008-06-17 Kenichi Handa <handa@m17n.org>
6430
6431 * xfaces.c (realize_default_face): If the frame is not on window
6432 system, set the fontset of face to nil.
6433
64342008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
6435
6436 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
6437
64382008-06-16 Juanma Barranquero <lekktu@gmail.com>
6439
6440 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
6441 (build_font_name_from_vector): Delete externs.
6442
6443 * xfaces.c (struct font_name): Don't declare.
6444
64452008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
6446
6447 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
6448
64492008-06-16 Chong Yidong <cyd@stupidchicken.com>
6450
6451 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
6452
64532008-06-16 Juanma Barranquero <lekktu@gmail.com>
6454
6455 * font.c (Ffont_spec): Fix usage in docstring.
6456 (Ffont_face_attributes): Doc fix.
6457
64582008-06-16 Andreas Schwab <schwab@suse.de>
6459
6460 * font.c (Ffont_face_attributes): Fix definition.
6461
64622008-06-16 Jason Rumney <jasonr@gnu.org>
6463
6464 * font.h (font_style_symbolic_from_value): Remove.
6465
6466 * font.c (font_style_symbolic_from_value): Remove.
6467 (font_style_symbolic): Revert to pre 2008-06-13 version.
6468
6469 * w32font.c (w32_to_fc_weight): New function.
6470 (w32font_full_name, logfont_to_fcname): Use it.
6471
64722008-06-16 Kenichi Handa <handa@m17n.org>
6473
6474 * font.c (font_check_object): Delete it.
6475 (font_clear_cache): Check if a font-object is alive.
6476 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
6477 font-object to nil.
6478 (font_close_object): Don't check FONT_CLOSE_OBJECT.
6479 (font_at): Don't call font_check_object.
6480 (Ffont_get): Return a symbol for :weight, :slant, and :width.
6481
64822008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
6483
6484 * puresize.h (BASE_PURESIZE): Increase to 1230000.
6485
64862008-06-16 Chong Yidong <cyd@stupidchicken.com>
6487
6488 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
6489
64902008-06-15 Chong Yidong <cyd@stupidchicken.com>
6491
6492 * font.c (font_parse_fcname): Only one decimal point.
6493 (font_unparse_fcname): Handle data in family and foundry indices
6494 as symbols, not strings.
6495 (font_unparse_gtkname, Ffont_face_attributes): New functions.
6496
6497 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
6498
6499 * font.h (font_unparse_gtkname): Add prototype.
6500
65012008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
6502
6503 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
6504
65052008-06-15 Andreas Schwab <schwab@suse.de>
6506
6507 * font.c (font_update_drivers): Fix crash when no drivers match.
6508
65092008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
6510
6511 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
6512 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
6513
65142008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
6515
6516 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
6517
65182008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
6519
6520 * process.c (Fserial_process_configure, Fprocess_send_eof):
6521 Use EQ to compare Lisp_Objects.
6522
65232008-06-13 Jason Rumney <jasonr@gnu.org>
6524
6525 * w32fns.c (Fw32_select_font): Remove old font API function.
6526
6527 * w32font.c (logfont_to_fcname): New function.
6528 (Fx_select_font): New font dialog function compatible with
6529 GTK/fontconfig version.
6530
6531 * font.c (font_style_symbolic_from_value): New function.
6532 (font_style_symbolic): Use it.
6533
6534 * font.h (font_style_symbolic_from_value): Declare new function.
6535
65362008-06-13 Juanma Barranquero <lekktu@gmail.com>
6537
6538 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
6539 <font-width-table>: Fix typos in docstrings.
6540
65412008-06-13 Daniel Engeler <engeler@gmail.com>
6542
6543 These changes add serial port access.
6544 * process.c: Add HAVE_SERIAL.
6545 (Fdelete_process, Fprocess_status, Fset_process_buffer)
6546 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
6547 (list_processes_1, select_wrapper, Fstop_process)
6548 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
6549 (status_notify): Modify to handle serial processes.
6550 [HAVE_SERIAL] (Fserial_process_configure)
6551 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
6552 New functions.
6553 * process.h (struct Lisp_Process): Add `type'.
6554 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
6555 New functions.
6556 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
6557 serial ports.
b71ac3dd 6558 (serial_open, serial_configure): New functions.
aac0c6e3
MR
6559 * w32.h: Add FILE_SERIAL.
6560 (struct _child_process): Add ovl_read, ovl_write.
6561
65622008-06-13 Kenichi Handa <handa@m17n.org>
6563
6564 * dispextern.h (enum lface_attribute_index): New member
6565 LFACE_FOUNDRY_INDEX.
6566
6567 * font.c (font_score): Delete arg alternate_families. Check only
6568 weight, slant, width, and size. Ignore the difference of alias
6569 style symbols.
6570 (font_sort_entites): Adjust for the above change. Reflect the
6571 order of font-driver to scores.
6572 (font_list_entities): Don't check alternate_familes here.
6573 (font_clear_prop): Handle foundry.
6574 (font_update_lface): Don't parse "foundry-family" form here.
6575 Handle FONT_FOUNDRY_INDEX.
6576 (font_find_for_lface): Likewise. Handle alternate families here.
6577 If registry is nil, try iso8859-1 and ascii-0.
6578 (font_open_for_lface): Pay attention to size in ENTITY.
6579 (font_open_by_name): Simplify by calling font_load_for_lface.
6580 (free_font_driver_list): Delete it.
6581 (font_update_drivers): Preserve the order of backends.
6582 (syms_of_font): Setting of sort_shift_bits adjusted for the change
6583 of font_score and font_sort_entites.
6584 (font_update_sort_order): Likewise.
6585
6586 * xfaces.c (LFACE_FOUNDRY): New macro.
6587 (check_lface_attrs): Check foundry.
6588 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
6589 (merge_face_vectors): Check foundry.
6590 (merge_face_ref): Likewise.
6591 (Finternal_set_lisp_face_attribute): Likewise.
6592 (x_update_menu_appearance): Likewise.
6593 (Finternal_get_lisp_face_attribute): Likewise.
6594 (lface_hash): Likewise.
6595 (lface_same_font_attributes_p): Likewise.
6596 (x_supports_face_attributes_p): Likewise.
6597 (tty_supports_face_attributes_p): Likewise.
6598 (Finternal_set_alternative_font_family_alist): Intern strings.
6599 (Finternal_set_alternative_font_registry_alist): Downcase strings.
6600 (realize_default_face): Set LFACE_FOUNDRY (lface).
6601
6602 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
6603 font-driver at first.
6604
6605 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
6606
66072008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
6608
6609 * lread.c (Fload): Use xfree, not free on saved_doc_string.
6610
66112008-06-12 Jim Meyering <meyering@redhat.com>
6612
6613 Make unexec_free handle NULL the same way free does.
6614 * unexmacosx.c (unexec_free): Ignore a NULL argument.
6615
66162008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
6617
6618 * character.h (CHAR_TO_BYTE_SAFE): New macro.
6619 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
6620 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
6621 (WEAK_ALIAS): Simplify.
6622 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
6623 when searching a unibyte buffer.
6624
66252008-06-12 Chong Yidong <cyd@stupidchicken.com>
6626
6627 * xfns.c (Fx_select_font): Rename from x-font-dialog.
6628
66292008-06-12 Juanma Barranquero <lekktu@gmail.com>
6630
6631 * w32font.c: Include ctype.h.
6632
66332008-06-11 Jason Rumney <jasonr@gnu.org>
6634
6635 * w32font.c (w32font_encode_char): Detect missing glyphs that are
6636 misreported as space.
6637 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
6638 as aliases for registry iso10646-1.
6639
66402008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
6641
6642 * buffer.c (clone_per_buffer_values): Skip `name'.
6643
66442008-06-11 Chong Yidong <cyd@stupidchicken.com>
6645
6646 * font.c (font_parse_fcname): Fix last change; accept decimal
6647 points in font size.
6648
66492008-06-10 Jason Rumney <jasonr@gnu.org>
6650
6651 * w32uniscribe.c (add_opentype_font_name_to_list):
6652 Skip non unicode fonts.
6653
66542008-06-10 Chong Yidong <cyd@stupidchicken.com>
6655
6656 * xfns.c (Fx_font_dialog): New function.
6657
6658 * gtkutil.c (xg_dialog_response_cb): Rename from
6659 xg_file_response_callback.
6660 (pop_down_dialog): Rename from pop_down_file_dialog.
6661 (xg_get_file_name): Callers changed.
6662 (xg_get_font_name): New function.
6663
6664 * gtkutil.h (xg_get_font_name): Insert prototype.
6665
66662008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
6667
6668 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
6669 x_underline_minimum_display_offset.
6670 (syms_of_xdisp): Declare it here rather than in xterm.c.
6671 * dispextern.h (underline_minimum_offset): Declare it.
6672 * w32term.c (x_draw_glyph_string): Use it.
6673 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
6674 (syms_of_xterm): Don't declare it any more.
6675 (x_draw_glyph_string): Adjust to the new name.
6676
66772008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
6678
6679 * xterm.c (x_underline_minimum_display_offset): New var.
6680 (x_draw_glyph_string): Use it.
6681 (syms_of_xterm): Declare it.
6682
66832008-06-10 Chong Yidong <cyd@stupidchicken.com>
6684
6685 * font.c (font_parse_fcname): Accept GTK-style font names too.
6686
66872008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
6688
6689 * dired.c (file_name_completion): Don't return t if the match is exact
6690 but with different capitalization.
6691 * minibuf.c (Ftry_completion): Simplify.
6692
6693 * window.c (Vwindow_point_insertion_type): New var.
6694 (set_window_buffer): Use it.
6695 (syms_of_window): Init and export it to Lisp.
6696
66972008-06-10 Kenichi Handa <handa@m17n.org>
6698
6699 * font.h (font_intern_prop): Prototype adjusted.
6700
6701 * font.c (font_intern_prop): New arg force_symbol.
6702 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
6703 Adjust for the change of font_intern_prop.
6704
6705 * ftfont.c (ftfont_pattern_entity):
6706 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
6707 (w32_registry):
6708 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
6709 the change of font_intern_prop.
6710
67112008-06-09 Juanma Barranquero <lekktu@gmail.com>
6712
6713 * w32menu.c (digest_single_submenu): Declare extern.
6714
67152008-06-09 Jason Rumney <jasonr@gnu.org>
6716
6717 * w32term.c (x_make_frame_visible): Use alternate restore flags.
6718
6719 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
6720 (parse_single_submenu): Remove.
6721 (digest_single_submenu): Remove.
6722 (syms_of_w32menu): Don't initialise variables that have moved
6723 to menu.c.
6724 (set_frame_menubar): Sync with version in xmenu.c.
6725 (w32_menu_show): Sync with xmenu_show in xmenu.c.
6726
6727 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
6728 Make static again.
6729
67302008-06-09 Jason Rumney <jasonr@gnu.org>
6731
6732 Changes to w32 files related to the move of common menu code
6733 to menu.c on 2008-06-08 by Chong Yidong.
6734
6735 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
6736 defs to w32gui.h.
6737 (single_keymap_panes, push_menu_item, push_menu_pane):
6738 Make globally visible.
6739
6740 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
6741 (local_free, malloc_widget_value, free_widget_value)
6742 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
6743 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
6744 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
6745 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
6746 (menu_items, menu_items_allocated, menu_items_used)
6747 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
6748 (init_menu_items, finish_menu_items, discard_menu_items)
6749 (grow_menu_items, push_submenu_start, push_submenu_end)
6750 (push_left_right_boundary, push_menu_pane, push_menu_item)
6751 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
6752 (free_menubar_widget_tree_value, parse_single_submenu)
6753 (update_submenu_strings): Remove functions.
6754 (xmalloc_widget_value): Remove and declare extern.
6755
6756 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
6757 (OBJ1): Build it.
6758
6759 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
6760 (local_heap, local_alloc, local_free, malloc_widget_value)
6761 (free_widget_value): Define here.
6762
67632008-06-09 Kenichi Handa <handa@m17n.org>
6764
6765 * font.h (Qascii_0): Extern it.
6766
6767 * font.c (Qascii_0): New variable.
6768 (syms_of_font): DEFSYM it.
6769 (font_open_by_name): If the registry "iso8859-1" fails, try also
6770 "ascii-0".
6771
6772 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
6773
67742008-06-08 Kenichi Handa <handa@m17n.org>
6775
6776 * .gdbinit (xfont): New command.
6777
67782008-06-08 Andreas Schwab <schwab@suse.de>
6779
6780 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
6781 * Makefile.in (menu.o): Update dependencies.
6782
6783 * Makefile.in (obj): Always add menu.o.
6784 * emacs.c (main): Always call syms_of_menu.
6785 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
6786
67872008-06-08 Chong Yidong <cyd@stupidchicken.com>
6788
6789 * Makefile.in: Compile menu.c.
6790
6791 * lisp.h: Declare syms_of_menu.
6792
6793 * emacs.c (main): Call syms_of_menu.
6794
6795 * keyboard.h: Relocate platform-independent menu definitions from
6796 xmenu.c.
6797
6798 * menu.c: New file. Relocate platform-independent menu
6799 definitions from xmenu.c. Suggested by Adrian Robert.
6800
6801 * xmenu.c: Remove platform-independent menu definitions.
6802 (menu_items menu_items_inuse, menu_items_allocated)
6803 (menu_items_used, menu_items_n_panes)
6804 (menu_items_submenu_depth): Move to keyboard.h.
6805 (init_menu_items, finish_menu_items, unuse_menu_items)
6806 (discard_menu_items, restore_menu_items, save_menu_items)
6807 (grow_menu_items, push_submenu_start, push_submenu_end)
6808 (push_left_right_boundary, push_menu_pane, push_menu_item)
6809 (keymap_panes, single_keymap_panes, single_menu_item)
6810 (list_of_panes, list_of_items, find_and_call_menu_selection)
6811 (xmalloc_widget_value, free_menubar_widget_value_tree)
6812 (parse_single_submenu, digest_single_submenu)
6813 (update_submenu_strings): Move to menu.c.
6814
68152008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
6816
6817 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
6818
68192008-06-06 Miles Bader <miles@gnu.org>
6820
6821 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
6822 face, not frame default.
6823
68242008-06-05 Martin Rudalics <rudalics@gmx.at>
6825
6826 * window.c (pop_up_windows, pop_up_frames)
6827 (display_buffer_reuse_frames, Vpop_up_frame_function)
6828 (Vdisplay_buffer_function, Veven_window_heights)
6829 (Vspecial_display_buffer_names, Vspecial_display_regexps)
6830 (Vspecial_display_function, Vsame_window_buffer_names)
6831 (Vsame_window_regexps, split_height_threshold)
6832 (Vsplit_window_preferred_function): Move those vars to window.el.
6833 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
6834 (Fdisplay_buffer): Move those functions to window.el.
6835 (syms_of_window): Remove corresponding declarations.
6836 (display_buffer): New function.
6837 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
6838 * dispnew.c (Flast_nonminibuf_frame): New function.
6839 * buffer.c (Fpop_to_buffer): Move to window.el.
6840
68412008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
6842
6843 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
6844
68452008-06-05 Kenichi Handa <handa@m17n.org>
6846
6847 * coding.c (detect_coding): Fix previous change.
6848 (detect_coding_system): Likewise.
6849
68502008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
6851
6852 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
6853
6854 * keymap.c (Vminibuffer_local_filename_must_match_map):
6855 Rename from Vminibuffer_local_must_match_filename_map.
6856 (syms_of_keymap):
6857 * minibuf.c (Fcompleting_read): Adjust accordingly.
6858 * commands.h: Rename declaration as well.
6859
68602008-06-05 Kenichi Handa <handa@m17n.org>
6861
6862 * font.c (Ffont_spec): Don't use font_parse_family_registry for
6863 family name.
6864 (Ffont_put): Likewise.
6865
6866 * fontset.c (fontset_find_font): Call font_open_for_lface with the
6867 current font-spec.
6868
6869 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
6870 is unspecified.
6871
6872 * xfaces.c (realize_x_face): If the font-related face attributes
6873 are the same as those of default face, realize a new fontset from
6874 default->fontset.
6875 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
6876
68772008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
6878
6879 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
6880 (move_it_in_display_line): New wrapper.
6881
6882 * window.c (window_scroll_pixel_based_preserve_x)
6883 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
6884 (window_scroll_pixel_based, window_scroll_line_based):
6885 Use them to preserve column positions.
6886 (syms_of_window): Initialize them.
6887
6888 * indent.c (Fvertical_motion): Extend first arg to allow passing an
6889 (HPOS . VPOS) pair.
6890
6891 * dispextern.h (move_it_in_display_line): Declare.
6892
68932008-06-05 Juanma Barranquero <lekktu@gmail.com>
6894
6895 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
6896 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
6897 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
6898
68992008-06-04 Juanma Barranquero <lekktu@gmail.com>
6900
6901 * window.c (Fset_window_parameter): Doc fix.
6902 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
6903
69042008-06-04 Joakim Verona <joakim@verona.se>
6905
6906 * window.h (struct window): Add new member window_parameters.
6907
6908 * window.c (Fwindow_parameters, Fwindow_parameter)
6909 (Fset_window_parameter): New defuns.
6910 (syms_of_window): Defsubr the new defuns.
6911 (make_window): Initialize window_parameters to nil.
6912
69132008-06-04 John Paul Wallington <jpw@pobox.com>
6914
6915 * eval.c (Fdefmacro): Doc fix.
6916
69172008-06-04 Kenichi Handa <handa@m17n.org>
6918
6919 * coding.c (detect_coding): Fix handling of coding->head_ascii.
6920 Be sure to call setup_coding_system when we find a proper coding system.
6921 (detect_coding_system): Fix handling of coding->head_ascii.
6922
69232008-06-03 Andreas Schwab <schwab@suse.de>
6924
6925 * font.c (font_prop_validate_spacing): Fix last change.
6926
69272008-06-03 Kenichi Handa <handa@m17n.org>
6928
6929 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
6930 (font_parse_fcname): Fix handling of unknown key.
6931
6932 * xfont.c (xfont_list): Try an alias.
6933
6934 * charset.c (char_charset): Return NULL if the arg charset_list is
6935 specified and C doesn't belong to any of them.
6936
69372008-06-02 Chip Coldwell <coldwell@redhat.com>
6938
6939 * font.c (font_pixel_size): Don't take cdr of an integer.
6940
69412008-06-02 Jim Meyering <meyering@redhat.com>
6942
6943 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
6944 * alloc.c (xfree): Return right away for a NULL arg.
6945 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
6946 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
6947 * mac.c (create_apple_event_from_event_ref): Likewise.
6948 (create_apple_event_from_drag_ref, cfstring_create_normalized):
6949 Likewise.
6950 * doprnt.c (doprnt1): Likewise.
6951 * frame.c (frame): Likewise.
6952 * keyboard.c (wipe_kboard): Likewise.
6953 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
6954 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
6955 * term.c (tty_default_color_capabilities, maybe_fatal)
6956 (delete_tty): Likewise.
6957 * w16select.c (string): Likewise.
6958 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
6959 * w32bdf.c (w32_free_bdf_font): Likewise.
6960 * w32fns.c (w32_unload_font): Likewise.
6961 * w32font.c (w32font_close): Likewise.
6962 * window.c (size_window): Likewise.
6963 * xselect.c (receive_incremental_selection): Likewise.
6964 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
6965 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
6966 * w32.c (stat): Likewise.
6967
6968 Remove useless if-before-free tests.
6969 * editfns.c (Fset_time_zone_rule): Likewise.
6970 * lread.c (nosuffix): Likewise.
6971 * ralloc.c (get_bloc): Likewise.
6972 * regex.c (reg_free): Likewise.
6973 * xftfont.c (xftfont_open, xftfont_close): Likewise.
6974 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
6975 * xsmfns.c (smc_save_yourself_CB): Likewise.
6976
69772008-06-02 Kenichi Handa <handa@m17n.org>
6978
6979 * font.c (font_find_for_lface): Handle float font size.
6980 (font_open_for_lface): Likewise.
6981
6982 * xfaces.c (x_supports_face_attributes_p): Check face->font before
6983 comparing the properties.
6984
69852008-06-01 Jason Rumney <jasonr@gnu.org>
6986
6987 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
6988 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
6989 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
6990 Don't add empty script list.
6991 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
6992
69932008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
6994
6995 * Makefile.in (dot, dotdot): Remove, update users.
6996 ".." has been used elsewhere in the file for a long time.
6997 (LIBXT_STATIC): Remove conditional based on unused variable.
6998
69992008-06-01 Miles Bader <miles@gnu.org>
7000
7001 * xfaces.c (Vface_remapping_alist): New variable.
7002 (syms_of_xfaces): Initialize it.
7003 (enum named_merge_point_kind): New type.
7004 (struct named_merge_point): Add `named_merge_point_kind' field.
7005 (push_named_merge_point): Make cycle detection respect different
7006 named-merge-point kinds.
7007 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
7008 Remove face-name alias resolution.
7009 (lface_from_face_name): New definition using
7010 `lface_from_face_name_no_resolve'.
7011 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
7012 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
7013 (get_lface_attributes): New definition that layers face-remapping on
7014 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
7015 (lookup_basic_face): New function.
7016 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
7017 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
7018 `get_lface_attributes'.
7019 (face_at_buffer_position): Use `lookup_basic_face' to lookup
7020 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
7021 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
7022
7023 * xdisp.c (init_iterator): Pass base_face_id through
7024 `lookup_basic_face' when we actually use it as a face-id.
7025 (handle_single_display_prop): Use `lookup_basic_face' to lookup
7026 DEFAULT_FACE_ID.
7027
7028 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
7029 lookup the initial face-id.
7030
7031 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
7032
70332008-06-01 Juanma Barranquero <lekktu@gmail.com>
7034
7035 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
7036 (Fremove_text_properties): Fix typos in docstrings.
7037
70382008-05-31 Kenichi Handa <handa@m17n.org>
7039
7040 * font.c (font_list_entities): Fix the car part of data to be
7041 stored in the cache.
7042
7043 * ftfont.c (ftfont_font_format): Don't use strcasestr.
7044
70452008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
7046
7047 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
7048 Add a `test' argument so another predicate than `equal' can be used.
7049 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
7050 (map_char_table): Remove unused vars `c' and `i'.
7051 * lisp.h (Foptimize_char_table): Adjust declaration.
7052 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
7053
70542008-05-30 Kenichi Handa <handa@m17n.org>
7055
7056 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
7057 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
7058 defined.
7059
70602008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
7061
7062 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
7063 (Fmake_variable_frame_local): Disallow mixing buffer-local and
7064 frame-local settings for the same variable.
7065
70662008-05-30 Kenichi Handa <handa@m17n.org>
7067
7068 * fontset.c (Ffont_info): Move to font.c.
7069 (syms_of_fontset): Delete defsubr of Sfont_info.
7070
7071 * font.c (font_style_to_value, font_score): Delete casting of the
7072 args to xstcasecmp.
7073 (register_font_driver): Increment num_font_drivers only when
7074 registering the driver globally.
7075 (Ffont_info): Move from fontset.c. Handle a font object too.
7076 (syms_of_font): Defsubr Sfont_info.
7077
70782008-05-29 Kenichi Handa <handa@m17n.org>
7079
7080 * coding.h (enum define_coding_utf8_arg_index): New enum.
7081 (enum coding_attr_index): Change coding_attr_utf_16_bom to
7082 coding_attr_utf_bom.
7083 (enum utf_bom_type): Rename from utf_16_bom_type.
7084 (struct utf_16_spec): Adjust for the above change.
7085 (struct coding_system): Add utf_8_bom in `spec' union.
7086
7087 * coding.c (CODING_UTF_8_BOM): New macro.
7088 (enum coding_category): Delete coding_category_utf_8, add
7089 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
7090 coding_category_utf_8_sig.
7091 (CATEGORY_MASK_UTF_8): Delete it.
7092 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
7093 (CATEGORY_MASK_UTF_8_SIG): New macros.
7094 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
7095 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
7096 CATEGORY_MASK_UTF_8_SIG.
7097 (CATEGORY_MASK_UTF_8): New macro.
7098 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
7099 (detect_coding_utf_8): Check BOM.
7100 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
7101 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
7102 (encode_coding_utf_16): Likewise.
7103 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
7104 (detect_coding, detect_coding_system): Handle utf-8-auto.
7105 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
7106 (syms_of_coding): Fix setting up of Vcoding_category_table.
7107
71082008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
7109
7110 * process.c (Faccept_process_output): If `millisec' is non-nil,
7111 `seconds' default to 0.
7112 (wait_reading_process_output): Also return non-nil if we read output
7113 from a non-running process.
7114
71152008-05-29 Jason Rumney <jasonr@gnu.org>
7116
7117 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
7118 `raster' specified.
7119 (add_font_entity_to_list): Allow non-opentype truetype fonts back
7120 in the uniscribe backend, but disallow any font that has no
7121 unicode subrange support.
7122
71232008-05-29 Juanma Barranquero <lekktu@gmail.com>
7124
7125 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
7126 Fix typos in docstrings.
7127
71282008-05-29 Kenichi Handa <handa@m17n.org>
7129
7130 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
7131 (Fx_family_fonts): Set frame correctly.
7132
71332008-05-28 Jason Rumney <jasonr@gnu.org>
7134
7135 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
7136
71372008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
7138
7139 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
7140 calling build_annotations.
7141
71422008-05-28 Juanma Barranquero <lekktu@gmail.com>
7143
7144 * coding.c (Fdecode_coding_region, Fencode_coding_region)
7145 (Fencode_coding_string):
7146 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
7147 <latin-extra-code-table>: Fix typos in docstrings.
7148 (syms_of_coding) <coding-system-alist>: Doc fix.
7149 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
7150
71512008-05-28 Kenichi Handa <handa@m17n.org>
7152
7153 * fontset.c (Ffont_info): Don't call font_close_object.
7154
7155 * font.c (font_parse_family_registry): Use Ffont_put to validate
7156 foundry and family.
7157 (font_delete_unmatched): Don't check spacing.
7158 (font_list_entities): Add spacing to the spec to list fonts.
7159
7160 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
7161 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
7162
7163 * coding.c (encode_coding_raw_text): Fix previous change.
7164 (encode_coding_object): When the dst_object is a buffer and is
7165 different from src_object, move gap to PT.
7166
71672008-05-27 Chong Yidong <cyd@stupidchicken.com>
7168
7169 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
7170
71712008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
7172
7173 * coding.c (encode_coding_raw_text): Set coding->produced_char for
7174 all branches. Compute it differently.
7175
7176 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
7177
71782008-05-27 Juanma Barranquero <lekktu@gmail.com>
7179
7180 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
7181 into "else if () ... else ...".
7182
71832008-05-27 Jason Rumney <jasonr@gnu.org>
7184
7185 * w32font.c (w32font_open_internal): Determine if glyph indices
7186 are likely to work here.
7187
71882008-05-27 Chong Yidong <cyd@stupidchicken.com>
7189
7190 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
7191 draw overlap glyphs with appropriate highlighting.
7192
71932008-05-27 Kenichi Handa <handa@m17n.org>
7194
7195 * xfont.c (xfont_open): Fix calculation of font->average_width.
7196
71972008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
7198
7199 * casefiddle.c (casify_object): Try to guess better whether the
7200 argument is a byte or a char.
7201
72022008-05-26 Andreas Schwab <schwab@suse.de>
7203
7204 * xselect.c (x_reply_selection_request): Properly handle format == 32.
7205 Always send multiples of format size.
7206
7207 * xterm.c (x_set_frame_alpha): Fix type mismatch.
7208
72092008-05-26 Jason Rumney <jasonr@gnu.org>
7210
7211 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
7212 (compute_metrics): Don't set failure if we just cleared the cache.
7213 (w32_weight_table): Remove unused variable.
7214 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
7215 backwards compatibility.
7216
72172008-05-25 Kenichi Handa <handa@m17n.org>
7218
7219 * w32term.c (x_draw_glyph_string):
7220 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
7221
7222 * xfaces.c: Delete unused function prototypes.
7223 (xstrlwr, font_frame): Delete them.
7224 (clear_face_cache): Delete unused variable.
7225
7226 * xftfont.c (xftfont_open): Delete unused variable.
7227 If underline_thickness is not 1, adjust underline_position.
7228
7229 * ftxfont.c (ftxfont_open): Delete unused variable.
7230
7231 * fontset.c (face_for_char): Optimize for the case of no charset
7232 property.
7233
7234 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
7235 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
7236 (otf_open, font_otf_capability, generate_otf_features)
7237 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
7238 Comment out by surrounding "#if 0" and "#endif" for the moment.
7239 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
7240 (syms_of_font): Codes for accessing above commented out.
7241
72422008-05-24 Eli Zaretskii <eliz@gnu.org>
7243
7244 * w32proc.c: Include dispextern.h.
7245
7246 * w32.c: Include dispextern.h.
7247
72482008-05-23 Juanma Barranquero <lekktu@gmail.com>
7249
7250 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
7251 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
7252 Fix typos in docstrings.
7253
72542008-05-23 Jason Rumney <jasonr@gnu.org>
7255
7256 * xsmfns.c: Remove includes that are already included by config.h.
7257
72582008-05-23 Kenichi Handa <handa@m17n.org>
7259
7260 * charset.c (Qemacs, charset_emacs): New variables.
7261 (char_charset): Fix for non-Unicode characters.
7262 (syms_of_charset): Define charset_emacs.
7263
7264 * w32term.c (x_draw_glyph_string): Be sure to update
7265 s->underline_thickness and s->underline_position. Be sure to draw
7266 underline within the current line area.
7267
7268 * xterm.c (x_draw_glyph_string): Be sure to update
7269 s->underline_thickness and s->underline_position. Be sure to draw
7270 underline within the current line area.
7271
7272 * fontset.c: Delete unused variables and add casting for char *
7273 throughout the file.
7274 (fontset_font): Try the fallback fonts of the current fontset
7275 before consulting the default fontset.
7276
7277 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
7278
7279 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
7280
72812008-05-22 Jason Rumney <jasonr@gnu.org>
7282
7283 * font.c: Don't include strings.h.
7284
7285 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
7286
7287 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
7288 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
7289 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
7290 to call xstrcasecmp.
7291
7292 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
7293
7294 * fontset.c (fs_query_fontset): Use xstrcasecmp.
7295
7296 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
7297
7298 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
7299
73002008-05-22 Kenichi Handa <handa@m17n.org>
7301
7302 * puresize.h (BASE_PURESIZE): Increase to 1220000.
7303
7304 * font.c (font_prop_validate_style): Adjust for the format
7305 change of font_style_table.
7306
7307 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
7308 two args.
7309
7310 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
7311 two args.
7312
73132008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
7314
7315 * minibuf.c (keys_of_minibuf): Delete.
7316 * lisp.h (keys_of_minibuf): Delete.
7317 * emacs.c (main): Don't call keys_of_minibuf.
7318
73192008-05-22 Kenichi Handa <handa@m17n.org>
7320
7321 * ftfont.c (ftfont_resolve_generic_family): Rename from
7322 ftfont_list_generic_family. Return a single family for each
7323 generic family.
7324 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
7325 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
7326 Call font_add_log.
7327 (ftfont_match): Call font_add_log.
7328
7329 * font.h (Ffont_xlfd_name): EXFUN adjusted.
7330 (FONT_DEBUG): Define it.
7331 (font_add_log): Extern it.
7332 (font_assert): Rename from xassert.
7333
7334 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
7335 (xfont_list_family): Call font_add_log.
7336 (xfont_match): Likewise.
7337 (memq_no_quit): Delete.
7338
7339 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
7340 call of Ffont_xlfd_name.
7341
7342 * xfaces.c (struct table_entry, slant_table, weight_table)
7343 (swidth_table): Move to font.c.
7344
7345 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
7346 xassert are changed to font_assert. Delete many unused variables.
7347 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
7348 New variables.
7349 (struct table_entry): Move from xfaces.c and modified.
7350 (weight_table, slant_table, width_table): Move from xfaces.c and
7351 contents adjusted for the change of struct table_entry.
7352 (font_style_to_value, font_style_symbolic): Adjust for the
7353 format change of font_style_table.
7354 (font_parse_family_registry): Don't overwrite existing foundry and
7355 family of font_spec.
7356 (font_score): Fix calculation of diff for sizes.
7357 (font_sort_entites): Call font_add_log.
7358 (font_delete_unmatched): Return a newly created list.
7359 (font_list_entities): Fix previous change. Call font_add_log.
7360 (font_matching_entity, font_open_entity, font_close_entity):
7361 Call font_add_log.
7362 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
7363 (Finternal_set_font_style_table): Delete.
7364 (BUILD_STYLE_TABLE): New macro.
7365 (build_style_table): New function.
7366 (Vfont_log, font_log_env_checked): New variables.
7367 (font_add_log): New function.
7368 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
7369 Declare Lisp variables "font-weight-table", "font-slant-table",
7370 "font-width-table", and "font-log". Initialize font_style_table.
7371
73722008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
7373
7374 * xterm.c (x_set_frame_alpha): Move declarations before statements.
7375
73762008-05-21 Seiji Zenitani <zenitani@mac.com>
7377 Ryo Yoshitake <ryo@shiftmode.net>
7378
7379 * frame.c (Qalpha): Add a new frame parameter `alpha'.
7380 (Vframe_alpha_lower_limit): New variable.
7381 (x_set_alpha): New function.
7382
7383 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
7384
7385 * xfns.c (x-create-frame, Qalpha):
7386 Initialize the frame parameter `alpha'.
7387 * xterm.c (OPAQUE, OPACITY): New.
7388 (x_set_frame_alpha): New function.
7389 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
7390
7391 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
7392 * w32fns.c (w32_frame_parm_handlers): Likewise.
7393
73942008-05-20 Jason Rumney <jasonr@gnu.org>
7395
7396 * w32font.c (add_font_entity_to_list): Don't add non-opentype
7397 truetype fonts to opentype list.
7398
73992008-05-20 Juanma Barranquero <lekktu@gmail.com>
7400
7401 * fontset.c (Ffontset_info): Doc fix.
7402 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
7403 <ignore-relative-composition>: Fix typos in docstrings.
7404
7405 * font.c (syms-of-font) <font-encoding-alist>:
7406 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
7407 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
7408 (Ffont_otf_alternates): Doc fixes.
7409
74102008-05-20 Kenichi Handa <handa@m17n.org>
7411
7412 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
7413 font.h through out the file.
7414 (FONT_DRIVERS): Rename from FONTOBJ.
7415 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
7416 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
7417
7418 * emacs.c (main): Call syms_of_font unconditionally.
7419
7420 * font.h (find_font_encoding): Extern it.
7421
7422 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
7423 fontset.c.
7424 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
7425 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
7426 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
7427 only when HAVE_WINDOW_SYSTEM is defined.
7428 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
7429 when HAVE_WINDOW_SYSTEM is defined.
7430
7431 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
7432 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
7433
7434 * xfaces.c: Include font.h unconditionally.
7435 (merge_face_ref, merge_face_vectors)
7436 (Finternal_set_lisp_face_attribute): Cancel the previous change.
7437
74382008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
7439
7440 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
7441 indirect_variable.
7442 * eval.c (lisp_indirect_variable): New fun.
7443 (Fuser_variable_p): Use it.
7444
74452008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
7446
7447 * lisp.h (indirect_variable):
7448 * data.c (indirect_variable, let_shadows_buffer_binding_p):
7449 Use Lisp_Symbol pointers rather than Lisp_Object.
7450 Adjust callers.
7451 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
7452 To this end, change calling-convention.
7453
7454 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
7455 if some non-hidden buffers are selected by string&pred.
7456
74572008-05-19 Chong Yidong <cyd@stupidchicken.com>
7458
7459 * process.c (wait_reading_process_output): Always check status
7460 when in batch mode.
7461
74622008-05-19 Kenichi Handa <handa@m17n.org>
7463
7464 * font.c (font_list_entities): Fix handling of cache.
7465 (font_matching_entity): Likewise.
7466
7467 * ftfont.c (cs_iso8859_1): Delete.
7468 (ft_face_cache): New variable.
7469 (struct ftfont_info): New member fc_charset_idx.
7470 (ftfont_build_basic_charsets): Delete.
7471 (fc_charset_table): New variable.
7472 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
7473 . FC_CHARSET_IDX) as :font-entity property in the font entity.
7474 Callers changed.
7475 (ftfont_lookup_cache, ftfont_get_charset): New functions.
7476 (ftfont_spec_pattern): New argument fc_charset_idx.
7477 Check registry more rigidly. Change callers.
7478 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
7479 change of :font-entity property of the font.
7480
7481 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
7482 property of the font.
7483
74842008-05-18 Juanma Barranquero <lekktu@gmail.com>
7485
7486 * coding.c (Fcoding_system_p): Rename argument to match docstring.
7487 (Funencodable_char_position, Fcheck_coding_systems_region)
7488 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
7489 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
7490 (Ffind_operation_coding_system, Fset_coding_system_priority)
7491 (Fcoding_system_eol_type): Doc fixes.
7492
74932008-05-17 Glenn Morris <rgm@gnu.org>
7494
7495 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
7496
74972008-05-16 Eli Zaretskii <eliz@gnu.org>
7498
7499 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
7500 and st_gid.
7501
7502 * frame.c (Fdelete_frame): Don't call font_update_drivers if
7503 HAVE_WINDOW_SYSTEM is not defined.
7504
7505 * xfaces.c (merge_face_ref, merge_face_vectors)
7506 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
7507 HAVE_WINDOW_SYSTEM is defined.
7508 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
7509
75102008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
7511
7512 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
7513
75142008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7515
7516 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
7517
75182008-05-15 Kenichi Handa <handa@m17n.org>
7519
7520 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
7521 preference.
7522
75232008-05-15 Glenn Morris <rgm@gnu.org>
7524
7525 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
7526
75272008-05-15 Chong Yidong <cyd@stupidchicken.com>
7528
7529 * fns.c (init_fns): Don't initialize weak_hash_tables here.
7530 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
7531
7532 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
7533
75342008-05-15 Kenichi Handa <handa@m17n.org>
7535
7536 * ftfont.c (ftfont_list): Downcase family name to check generic
7537 families.
7538
7539 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
7540 font-spec for QCfont value.
7541
7542 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
7543 buffer. Check the return value of it.
7544
75452008-05-14 Jason Rumney <jasonr@gnu.org>
7546
7547 * w32term.c (w32_get_glyph_overhangs): Remove.
7548 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
7549
75502008-05-14 Kenichi Handa <handa@m17n.org>
7551
7552 * font.c (font_prop_validate): Make nil a valid value.
7553 (font_clear_cache): Check if the cached vector of entities is nil
7554 or not.
7555
75562008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7557
7558 * emacs.c (main_thread): Conditionalize on
7559 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
7560 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
7561
7562 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
7563 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
7564 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
7565
75662008-05-14 Kenichi Handa <handa@m17n.org>
7567
7568 * coding.c (detect_coding_iso_2022): Ignore a coding category that
7569 has no corresponding coding system.
7570
75712008-05-14 Jason Rumney <jasonr@gnu.org>
7572
7573 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
7574
7575 * w32font.h (w32font_open_internal): Update declaration.
7576
7577 * w32font.c (w32font_open_internal): Change last argument from
7578 w32font_info struct to font object. Fill in font object from
7579 font_entity. Get Outline metrics if possible. Use them to
7580 calculate underline position and thickness. Use xlfd name as name
7581 property. Don't set codepage.
7582 (w32font_open): Pass font_object to w32font_open_internal. Don't
7583 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
7584 (w32font_draw): Use s->font.
7585 (clear_cached_metrics): Don't clear non-existent blocks.
7586
7587 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
7588 font was not found.
7589 (x_draw_glyph_string): Use underline position and thickness from font.
7590
7591 * w32uniscribe.c (uniscribe_open): Pass font_object to
7592 w32font_open_internal.
7593
75942008-05-14 Kenichi Handa <handa@m17n.org>
7595
7596 These changes are to delete all legacy font-handling codes, and
7597 make Emacs use only font-backends.
7598
7599 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
7600 (frame.o, image.o, print.o): Depend on $(FONTSRC).
7601
7602 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
7603
7604 * charset.h (Vcharset_non_preferred_head)
7605 (Vcurrent_iso639_language): Extern them.
7606
7607 * charset.c (Vcharset_non_preferred_head): New variable.
7608 (Vcurrent_iso639_language): New variable.
7609 (syms_of_charset): Declare it as a Lisp variable.
7610 (char_charset): Don't check non preferred charsets. As a last
7611 resort, return charset_unicode.
7612 (Fset_charset_priority): Update Vcharset_non_preferred_head.
7613
7614 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
7615 conditionals. Don't check enable_font_backend. Delete all codes
7616 used only when USE_FONT_BACKEND is not defined.
7617
7618 * dispextern.h (struct glyph_string): Change type of `font' to
7619 `struct font *'.
7620 (struct glyph_string): New member underline_position and
7621 underline_thickness.
7622 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
7623 (struct face): Change type of `font' to `struct font *'. Remove
7624 members `font_name', `font_info_id'.
7625 (per_char_metric, encode_char): Delete externs.
7626 (calc_pixel_width_or_height): Adjust the prototype.
7627
7628 * emacs.c (enable_font_backend): Delete extern.
7629 (main): Don't set enable_font_backend. Don't check the command
7630 line argument "-disable-font-backend".
7631
7632 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
7633 (enum font_property_index): New members FONT_DPI_INDEX,
7634 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
7635 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
7636 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
7637 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
7638 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
7639 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
7640 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
7641 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
7642 (struct font_spec, struct font_entity): New structs.
7643 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
7644 (struct font): Many members from old "struct font_info" moved to
7645 here. Members font and entity deleted.
7646 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
7647 the new font-related objects.
7648 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
7649 (CHECK_FONT_GET_OBJECT): Likewise.
7650 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
7651 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
7652 (struct font_driver): New members case_sensitive anc check. Type
7653 of the member list and open changed.
7654 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
7655 (font_symbolic_width, font_find_object, font_get_spec)
7656 (font_set_lface_from_name): Delete extern.
7657 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
7658
7659 * font.c: Include <strings.h>.
7660 (enable_font_backend): Delete it.
7661 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
7662 (CHECK_VALIDATE_FONT_SPEC): Delete it.
7663 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
7664 (null_string): Delete it.
7665 (null_vector): Make it static.
7666 (font_family_alist): Delete it.
7667 (Qnormal): Extern it.
7668 (QCextra, QClanguage): Delete it.
7669 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
7670 (font_make_spec, font_make_entity, font_make_object)
7671 (font_intern_prop): Renamed from intern_downcase. Don't downcase
7672 the string. Callers changed.
7673 (font_pixel_size): Adjusted for the format change of font-related
7674 objects.
7675 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
7676 (font_style_to_value, font_style_symbolic): New function.
7677 (build_font_family_alist): Delete it.
7678 (font_registry_charsets): Use Fassoc_string instead of
7679 assq_no_quit.
7680 (font_prop_validate_symbol): Don't return null_string.
7681 (font_prop_validate_style): Adjusted for the change of
7682 style-related values in a font vector.
7683 (font_property_table): Delete entries for QClanguage and
7684 QCantialias, add entries for QCavgwidth.
7685 (get_font_prop_index): Delete the 2nd argument FROM.
7686 (font_prop_validate): Arguments changed.
7687 (font_put_extra): Adjusted for the change of font-related objects.
7688 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
7689 (font_parse_fcname, font_unparse_fcname)
7690 (font_prepare_composition): Likewise.
7691 (font_parse_family_registry): Renamed from font_merge_old_spec.
7692 (otf_open): Delete the 1st arg entity.
7693 (font_otf_capability): Adjusted for the above change.
7694 (font_score): New arg alternate_families. Adjusted for the change
7695 of font-related objects.
7696 (font_sort_entites): New arg best_only.
7697 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
7698 Delete them.
7699 (font_match_p): Check alternate families.
7700 (font_find_object): Delete it.
7701 (font_check_object): New function.
7702 (font_clear_cache): Adjusted for the change of font-related objects.
7703 (font_delete_unmatched): New arg.
7704 (font_list_entities): Call font_driver->list with a spec that
7705 doesn't specify style-related properties.
7706 (font_matching_entity): Arguments changed. Caller changed.
7707 (font_open_entity): Adjusted for the change of font-related objects.
7708 (font_close_object, font_has_char, font_encode_char)
7709 (font_get_name, font_get_spec): Likewise.
7710 (font_spec_from_name, font_clear_prop, font_update_lface):
7711 New functions.
7712 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
7713 (font_prepare_for_face, font_done_for_face, font_open_by_name)
7714 (font_at): Adjusted for the change of font-related objects.
7715 (font_range): New function.
7716 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
7717 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
7718 (Fcopy_font_spec, Fmerge_font_spec): New function.
7719 (Ffont_family_list): Renamed from list-families.
7720 (Finternal_set_font_style_table): Arguments changed.
7721 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
7722 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
7723 change of font-related objects.
7724 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
7725
7726 * fontset.h (struct font_info): Delete it. Most members go to
7727 struct font.
7728 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
7729 (enum FONT_SPEC_INDEX): Delete it.
7730 (font_info, list_fonts_func, load_font_func, query_font_func)
7731 (set_frame_fontset_func, find_ccl_program_func)
7732 (get_font_repertory_func, new_fontset_from_font_name): Delete
7733 externs.
7734 (fontset_from_font_name): Extern it.
7735 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
7736 (FONT_INFO_FROM_FACE): Deleted.
7737 (face_for_font): Adjust prototype.
7738
7739 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
7740 conditionals. Don't check enable_font_backend. Delete all codes
7741 used only when USE_FONT_BACKEND is not defined.
7742 (get_font_info_func, list_font_func, load_font_func)
7743 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
7744 (get_font_repertory_func): Delete them.
7745 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
7746 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
7747 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
7748 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
7749 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
7750 (fontset_compare_rfontdef): New function.
7751 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
7752 rfont-defs by qsort. Adjusted for the change of font-group vector.
7753 (load_font_get_repertory): Deleted.
7754 (fontset_find_font): Use new macros to ref/set elements of
7755 font-def and rfont-def.
7756 (fontset_font): Fix the timing of remembering that no font for C.
7757 (free_face_fontset): Do nothing if the face has no fontset.
7758 (face_suitable_for_char_p): Use new macros to ref/set elements of
7759 rfont-def.
7760 (face_for_char): Likewise. Call face_for_char with font_object.
7761 (fs_load_font): Delete. Delete #pragma surrounding it.
7762 (fs_query_fontset): Use strcasecmp instead of strcmp.
7763 (generate_ascii_font_name): Adjusted for the format change of
7764 font-spec.
7765 (Fset_fontset_font): Likewise. Use new macros to set elements of
7766 font-def.
7767 (Fnew_fontset): Use font_unparse_xlfd to generate
7768 FONTSET_ASCII (fontset).
7769 (new_fontset_from_font_name): Deleted.
7770 (fontset_from_font): Renamed from new_fontset_from_font. Check if
7771 a fontset is already created for the font. FIx updating of
7772 Vfontset_alias_alist.
7773 (fontset_ascii_font): Deleted.
7774 (Ffont_info): Adjusted for the format change of font-spec.
7775 (Finternal_char_font): Likewise.
7776 (Ffontset_info): Likewise.
7777 (syms_of_fontset): Don't check load_font_func.
7778
7779 * fns.c (internal_equal): Handle PREV_FONT.
7780
7781 * frame.h: Delete USE_FONT_BACKEND conditional.
7782
7783 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
7784 conditionals. Don't check enable_font_backend. Delete all codes
7785 used only when USE_FONT_BACKEND is not defined.
7786 (x_set_font): Call x_new_font, not x_new_fontset2.
7787 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
7788 already set for the frame.
7789
7790 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
7791 a font-entity by font_make_entity. Use font_intern_prop instead
7792 of intern_downcase. Use FONT_SET_STYLE to set a style-related
7793 font property. If a font is scalable, set avgwidth property to 0.
7794 Set font-entity property by font_put_extra.
7795 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
7796 (ffont_driver): Adjusted for the change of struct font_driver.
7797 (ftfont_spec_pattern): New function.
7798 (ftfont_list): Return a list, not vector.
7799 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
7800 (ftfont_list_family): Don't downcase names.
7801 (ftfont_free_entity): Deleted.
7802 (ftfont_open): Return a font-object. Adjusted for the change of
7803 struct font. Get underline_thickness and underline_position from
7804 font property. Don't update dpyinfo->smallest_font_height and
7805 dpyinfo->smallest_char_width.
7806 (ftfont_close): Don't free `struct font'.
7807 (ftfont_has_char): Adjusted for the format change of font-entity.
7808 (ftfont_encode_char, ftfont_text_extents): Likewise.
7809
7810 * ftxfont.c (ftxfont_list): Return a list, not vector.
7811 (ftxfont_open): Return a font-object. Adjusted for the change of
7812 struct font. Get underline_thickness and underline_position from
7813 font property. Don't update dpyinfo->smallest_font_height and
7814 dpyinfo->smallest_char_width.
7815 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
7816 (ftxfont_draw): Adjusted for the change of struct font.
7817
7818 * image.c (image_ascent): Don't include "charset.h". Include
7819 "character.h" and "font.h".
7820
7821 * lisp.h (enum pvec_type): New member PREV_FONT.
7822 (Fassoc_string): EXFUN it.
7823
7824 * print.c: Include font.h.
7825 (print_object): Handle font-related objects.
7826
7827 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
7828 conditionals. Don't check enable_font_backend. Delete all codes
7829 used only when USE_FONT_BACKEND is not defined.
7830 (handle_auto_composed_prop): Do nothing if it->f is not on a
7831 window system. Check how many following characters can be
7832 displayed by the same font.
7833 (calc_pixel_width_or_height): Type of the 4th arg is changed to
7834 'struct font *'.
7835 (get_char_face_and_encoding): Assign the whole encoding task to
7836 the `encode-char' method of a font driver.
7837 (fill_composite_glyph_string): Adjusted for the change of `struct
7838 face' and `struct glyph_string'.
7839 (fill_glyph_string): Likewise.
7840 (get_per_char_metric): Arguments changed.
7841 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
7842 and `struct glyph_string'.
7843 (produce_stretch_glyph, calc_line_height_property)
7844 (x_produce_glyphs): Likewise.
7845
7846 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
7847 conditionals. Don't check enable_font_backend. Delete all codes
7848 used only when USE_FONT_BACKEND is not defined. Use
7849 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
7850 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
7851 (Qp): Extern them.
7852 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
7853 Deleted.
7854 (struct font_name): Deleted.
7855 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
7856 (compare_fonts_by_sort_order): New function.
7857 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
7858 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
7859 Deleted.
7860 (Fx_family_fonts): Use font_list_entities, and sort fonts by
7861 compare_fonts_by_sort_order.
7862 (Fx_font_family_list): Call Ffont_family_list.
7863 (face_numeric_value, face_numeric_weight, face_numeric_slant)
7864 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
7865 (face_symbolic_slant, face_symbolic_swidth)
7866 (split_font_name_into_vector, build_font_name_from_vector)
7867 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
7868 (font_rescale_ratio, split_font_name, build_font_name)
7869 (free_font_names, sort_fonts, x_face_list_fonts)
7870 (face_font_available_p, sorted_font_list, cmp_font_names)
7871 (font_list_1, concat_font_list, font_list, remove_duplicates):
7872 Deleted.
7873 (Fx_list_fonts): Use Ffont_list.
7874 (LFACE_AVGWIDTH): Deleted.
7875 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
7876 by FONTP.
7877 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
7878 (set_lface_from_font_name): Delete it.
7879 (set_lface_from_font): Renamed from
7880 set_lface_from_font_and_fontset. Caller changed. Don't set
7881 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
7882 for face.
7883 (merge_face_vectors): Copy font-spec if necessary.
7884 Clear properties of the font-spec if necessary.
7885 (merge_face_ref): Clear properties of the font-spec if necessary.
7886 (Finternal_set_lisp_face_attribute): Likewise.
7887 (set_font_frame_param): Use font_load_for_lface to load a
7888 font-object, and call Fmodify_frame_parameters with it.
7889 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
7890 font name by Ffont_xlfd_name.
7891 (Finternal_lisp_face_attribute_values): Don't check QCweight,
7892 QCslant, and QCwidth.
7893 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
7894 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
7895 Compare fonts by EQ.
7896 (lookup_non_ascii_face): Deleted.
7897 (face_for_font): The 2nd argument changed.
7898 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
7899 Check atomic font properties by case insensitive.
7900 (realize_non_ascii_face): Set face->overstrike correctly.
7901 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
7902 (dump_realized_face): Get font name from
7903 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
7904
7905 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
7906 conditionals. Don't check enable_font_backend. Delete all codes
7907 used only when USE_FONT_BACKEND is not defined.
7908 (xic_create_xfontset): Original code deleted and renamed from
7909 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
7910 (x_make_gc): Don't set GCFont in GCs.
7911 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
7912 opened by "fixed".
7913 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
7914 find_ccl_program_func, query_font_func, set_frame_fontset_func,
7915 get_font_repertory_func.
7916
7917 * xfont.c: Include <stdlib.h> and "ccl.h".
7918 (struct xfont_info): New structure.
7919 (xfont_query_font): Deleted.
7920 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
7921 moved from xterm.c.
7922 (xfont_driver): Adjusted for the change of struct font_driver.
7923 (compare_font_names): New function.
7924 (xfont_list_pattern): Sort font names case insensitively. Make
7925 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
7926 (xfont_list): Return a list, not vector.
7927 (xfont_match): If the font doesn't have QCname property, generate
7928 a name from the other font properties.
7929 (xfont_open): Return a font-object. Adjusted for the change of
7930 struct font. Get underline_thickness and underline_position from
7931 font property. Don't update dpyinfo->smallest_font_height and
7932 dpyinfo->smallest_char_width.
7933 (xfont_close): Don't free struct font.
7934 (xfont_prepare_face): Adjusted for the change of struct font.
7935 (xfont_done_face): Deleted.
7936 (xfont_has_char): Adjusted for the change of struct font.
7937 (xfont_encode_char, xfont_draw): Likewise.
7938 (xfont_check): New function.
7939
7940 * xftfont.c (xftfont_list): Adjusted for the change of `list'
7941 callback function.
7942 (xftfont_match): Adjusted for the format change of font-entity.
7943 (xftfont_open): Adjusted for the format change of font-entity and
7944 font-object. Adjusted for the change of struct font. Return a
7945 font-object. Don't update dpyinfo->smallest_font_height and
7946 dpyinfo->smallest_char_width.
7947 (xftfont_close): Block input while calling XftFontClose.
7948 (xftfont_prepare_face): Don't block input while calling
7949 xftfont_get_colors. Adjusted for the change of struct font.
7950 (xftfont_shape): Return value of error case fixed.
7951
7952 * xrdb.c (x_load_resources): Don't setup a fontset resource.
7953
7954 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
7955 conditionals.
7956 (FONT_WIDTH): Return (f)->max_width.
7957 (struct x_display_info): Delete member `font'.
7958 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
7959 (x_find_ccl_program, x_get_font_repertory): Delete externs.
7960 (struct x_output): Change type of `font' to `struct font *'.
7961
7962 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
7963 conditionals. Don't check enable_font_backend. Delete all codes
7964 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
7965 (x_per_char_metric, x_encode_char): Deleted.
7966 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
7967 (x_compute_glyph_string_overhangs): Adjusted for the change of
7968 `struct face'.
7969 (x_draw_glyph_string_foreground)
7970 (x_draw_composite_glyph_string_foreground): Likewise.
7971 (x_draw_glyph_string): Likewise. Use font->underline_position and
7972 font->underline_thickness.
7973 (x_new_font): Renamed from x_new_fontset2.
7974 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
7975 (x_check_font): Call `check' method of a font driver.
7976 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
7977 (x_query_font, x_get_font_repertory): Deleted.
7978 (x_find_ccl_program): Renamed and moved to xfont.c.
7979 (x_redisplay_interface): Adjusted for the change of `struct
7980 redisplay_interface'.
7981
7982 * w32fns.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 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
7987
7988 * w32font.h (struct w32font_info): New member.
7989 (FONT_COMPAT): New macro.
7990 (w32font_open_internal): Prototype adjusted.
7991
7992 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
7993 OLD_FONT" and "endif".
7994
7995 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
7996 conditionals. Don't check enable_font_backend. Delete all codes
7997 used only when USE_FONT_BACKEND is not defined.
7998 (w32font_open): Return a font-object. Make a font-object by
7999 font_make_object. Adjusted for the change of struct w32font_info.
8000 (w32font_close): Don't free struct font. Adjusted for the change
8001 of struct w32font_info.
8002 (w32font_encode_char, w32font_text_extents, w32font_draw):
8003 Adjusted for the change of struct w32font_info.
8004 (w32font_draw): Likewise.
8005 (w32font_list_internal): Return a list, not vector.
8006 (w32font_open_internal): Change the 4th arg to font-object.
8007 Adjusted for the change of struct w32font_info and font-object format.
8008 (add_font_name_to_list): Don't downcase names.
8009 (w32_enumfont_pattern_entity): Make a font-entity by
8010 font_make_entity. Adjusted for the format change of font-entity.
8011 Use FONT_SET_STYLE to set a style-related font property. If a
8012 font is scalable, set avgwidth property to 0. Set font-entity
8013 property by font_put_extra.
8014 (font_matches_spec): Adjusted for the format change of font-entity.
8015 (w32_weight_table, w32_decode_weight): New variables.
8016 (w32_encode_weight): New function.
8017 (fill_in_logfont): Adjusted for the format change of font-spec.
8018 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
8019 weight value.
8020 (w32font_driver): Adjusted for the change of struct font_driver.
8021
8022 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
8023 conditionals. Don't check enable_font_backend. Surround non-used
8024 code by "#ifdef OLD_FONT" and "endif".
8025 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
8026 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
8027
8028 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
8029 conditionals. Don't check enable_font_backend. Delete all codes
8030 used only when USE_FONT_BACKEND is not defined. Surround non-used
8031 code by "#ifdef OLD_FONT" and "endif".
8032
8033 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
8034 (uniscribe_open): Return value changed to font-object.
8035 Adjusted for the format change of font-object.
8036 (uniscribe_otf_capability): Adjusted for the change of struct font.
8037 (add_opentype_font_name_to_list): Don't downcase names.
8038 (uniscribe_font_driver): Adjusted for the change of struct
8039 font_driver.
8040
80412008-05-13 Chong Yidong <cyd@stupidchicken.com>
8042
8043 * dispnew.c (update_frame_1): Check if tty output is still valid
8044 before flushing it.
8045
80462008-05-13 Jan Djärv <jan.h.d@swipnet.se>
8047
8048 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
8049 to Gtk+ menus.
8050
80512008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
8052
8053 * dired.c (file_name_completion): Tweak the code so as to always do it
8054 in a single pass. Tighten the scope of some variables.
8055
8056 * dired.c (Qdefault_directory): New var.
8057 (file_name_completion): Use it instead of Fexpand_file_name.
8058 (syms_of_dired): Initialize it.
8059
80602008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
8061
8062 * fileio.c (double_dollars): Remove dead code.
8063
80642008-05-10 Eli Zaretskii <eliz@gnu.org>
8065
8066 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
8067 Mention w32-get-true-file-attributes in doc string.
8068
8069 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
8070
80712008-05-09 Glenn Morris <rgm@gnu.org>
8072
8073 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
8074 2008-04-23.
8075
80762008-05-09 Eli Zaretskii <eliz@gnu.org>
8077
8078 Support for reporting owner and group of each file on MS-Windows:
8079 * dired.c (stat_uname, stat_gname): New functions, with special
8080 implementation for w32.
8081 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
8082
8083 * w32.c: Rename the_passwd_* to dflt_passwd_*.
8084 (dflt_group_name): New static variable.
8085 (dflt_group): Rename from the_group.
8086 (init_user_info): Init dflt_group fields. Get user's group name
8087 from LookupAccountSid.
8088 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
8089 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
8090 New initialization states.
8091 (globals_of_w32): Initialize them to zero. Initialize the default
8092 group name to "None".
8093 (GetFileSecurity_Name): New global var, the name of the function
8094 to call for GetFileSecurity.
8095 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
8096 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
8097 (get_file_security, get_security_descriptor_owner)
8098 (get_security_descriptor_group, is_valid_sid)
8099 (get_file_security_desc, get_rid, get_name_and_id)
8100 (get_file_owner_and_group): New functions.
8101 (stat): Use get_file_security_desc and get_file_owner_and_group to
8102 report the owner and primary group of each file. Don't ignore the
8103 high 32 bits of file's size, now that st_size is 64-bit wide.
8104 Fix test when to get true file attributes.
8105 (init_user_info): Use get_rid instead of equivalent inline code.
8106 (fstat): Don't ignore the high 32 bits of file's size.
8107
81082008-05-09 Chong Yidong <cyd@stupidchicken.com>
8109
8110 * image.c (png_load): Use correct bit-depth for setting background
8111 color.
8112
81132008-05-08 Eli Zaretskii <eliz@gnu.org>
8114
8115 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
8116 epa-hook.elc.
8117
81182008-05-08 Juanma Barranquero <lekktu@gmail.com>
8119
8120 * font.c (Ffont_match_p): Don't use `iff' in docstring.
8121
81222008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
8123
8124 * macfns.c (Fx_create_frame): Make a copy of frame parameters
8125 because the original parameters are in pure storage now.
8126 (mac_window): Remove unused params. Update callers.
8127
81282008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
8129
8130 * lread.c (substitute_object_recurse): Use lower-level primitives.
8131 Don't signal errors when traversing sub-char-tables.
8132 Don't loop over all the possible characters when traversing char-tables.
8133
8134 * print.c (print_preprocess): Add sub-char-tables to the print-table,
8135 just like we do in print.c.
8136
81372008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
8138
8139 * minibuf.c (Ftry_completion): Remove code left over from when we used
8140 scmp instead of Fcompare_strings.
8141
81422008-05-04 Juanma Barranquero <lekktu@gmail.com>
8143
8144 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
8145
81462008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8147
8148 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
8149 Create bitmap context in native byte order.
8150
8151 * macterm.c (XDrawLine)
8152 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
8153 context in native byte order.
8154
81552008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8156
8157 * config.in: Regenerate.
8158
8159 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
8160 New definitions for Image I/O support.
8161 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
8162 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
8163 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
8164 (mac_data_provider_release_data, image_load_image_io)
8165 [USE_MAC_IMAGE_IO]: New functions.
8166 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
8167 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
8168 (init_image_func_pointer) [MAC_OSX]: Remove function.
8169 (image_load_quartz2d) [MAC_OSX]: Check availability of
8170 CGImageCreateWithPNGDataProvider at compile time.
8171 Use lowercase `false' for boolean constant.
8172 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
8173 Use image_load_image_io.
8174 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
8175 Don't check MyCGImageCreateWithPNGDataProvider.
8176 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
8177 Don't call init_image_func_pointer.
8178
8179 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
8180
8181 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
8182 Make variable non-static.
8183 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
8184 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
8185
8186 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
8187 (RED_FROM_ULONG): Mask off higher bits.
8188 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
8189
8190 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
8191 Include AvailabilityMacros.h.
8192 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
8193 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
8194
81952008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
8196
8197 * chartab.c (Fset_char_table_range): If range is t, really set all
8198 chars to that value.
8199
82002008-05-03 Eli Zaretskii <eliz@gnu.org>
8201
8202 * dired.c (Ffile_attributes): Don't allow the device number become
8203 negative.
8204
82052008-05-02 Daiki Ueno <ueno@unixuser.org>
8206
8207 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
8208
82092008-05-02 Juri Linkov <juri@jurta.org>
8210
8211 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
8212 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
8213 DEFAULT argument as a list of default values in docstrings.
8214
82152008-05-01 Chong Yidong <cyd@stupidchicken.com>
8216
8217 * puresize.h (BASE_PURESIZE): Increase to 1210000.
8218
82192008-05-01 Martin Rudalics <rudalics@gmx.at>
8220
8221 * dispnew.c (change_frame_size_1): Preserve small windows when
8222 shrinking frames by calling set_window_height|width with third
8223 arg 2.
8224
8225 * window.h (struct window): Replace field too_small_ok by field
8226 resize_proportionally.
8227
8228 * window.c (make_window): Initialize resize_proportionally.
8229 (enlarge_window): Temporarily set resize_proportionally to make
8230 sure that shrink_windows does scale the window proportionally.
8231 (shrink_windows): When window has resize_proportionally set try
8232 to shrink it proportionally by stealing from other windows.
8233 (struct saved_window, Fset_window_configuration)
8234 (compare_window_configurations): Handle resize_proportionally.
8235 (WINDOW_TOTAL_SIZE): New macro.
8236 (window_min_size, shrink_windows, size_window): Use it.
8237 (check_min_window_sizes): Remove. Invalid values of
8238 window-min-height|width are handled by window_min_size_2 now.
8239 (size_window, Fsplit_window, enlarge_window)
8240 (adjust_window_trailing_edge, grow_mini_window): Don't call
8241 check_min_window_sizes.
8242 (window_min_size_2, window_min_size_1, window_min_size):
8243 New argument safe_p for retrieving "safe" minimum sizes.
8244 (Fdisplay_buffer, Fsplit_window, enlarge_window)
8245 (adjust_window_trailing_edge, grow_mini_window):
8246 Adjust arguments of window_min_size... functions.
8247 (shrink_windows): Argument min_size removed. New argument
8248 safe_p allows shrinking windows to their safe minimum sizes.
8249 Calculate minimum size and decide whether a window shall be
8250 deleted for each window individually.
8251 (size_window): When nodelete_p equals 2, tell shrink_windows to
8252 delete windows only if their new minimum size is no more safe.
8253 (shrink_window_lowest_first): Call window_min_size_1 to make
8254 sure to preserve modeline of bottom-most window when resizing
8255 the minibuffer.
8256 (Fset_window_configuration, Fcurrent_window_configuration)
8257 (compare_window_configurations): Do not handle
8258 window-min-height|width any more.
8259 (syms_of_window): Clarify window-min-height|width doc-strings.
8260
82612008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
8262
8263 * dired.c (file_name_completion): Fix up the encoding/decoding issue
8264 some more. Copy some of the code from Ftry_completions.
8265 Remove special case code that dates back to initial revision when the
8266 slash was only added when necessary and that can't trigger nowadays.
8267
82682008-04-27 Kenichi Handa <handa@m17n.org>
8269
8270 * font.c (font_prop_validate): Signal `error' instead of `font'.
8271
82722008-04-29 Jason Rumney <jasonr@gnu.org>
8273
8274 * w32fns.c (Fw32_battery_status): New defun.
8275 (syms_of_w32fns): Defsubr it.
8276
82772008-04-28 Andreas Schwab <schwab@suse.de>
8278
8279 * dired.c (file_name_completion): Fix another mixing of encoded
8280 and decoded names.
8281
82822008-04-28 Juanma Barranquero <lekktu@gmail.com>
8283
8284 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
8285
82862008-04-27 Juanma Barranquero <lekktu@gmail.com>
8287
8288 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
8289
82902008-04-27 Andreas Schwab <schwab@suse.de>
8291
8292 * dired.c (file_name_completion): Fix inappropriate mixing of
8293 encoded and decoded names.
8294
8295 * xterm.c (XTread_socket): Fix use of uninitialized variable.
8296
8297 * puresize.h (BASE_PURESIZE): Increase to 1200000.
8298
82992008-04-26 Eli Zaretskii <eliz@gnu.org>
8300
8301 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
8302 2008-03-31, it's not needed anymore with `struct stat' definition
8303 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
8304 for the same reasons.
8305
83062008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
8307
8308 * m/sparc.h: Additional redefinitions for GNU/Linux.
8309
83102008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8311
8312 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
8313 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
8314 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
8315 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
8316 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
8317 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
8318 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
8319 Likewise.
8320
8321 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
8322 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
8323 (mac_ax_number_of_characters): Add externs.
8324 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
8325 [USE_MAC_TSM]: Likewise.
8326 (mac_handle_text_input_event) [MAC_OSX]:
8327 Handle kEventTextInputOffsetToPos for no active input area case.
8328 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
8329 (mac_handle_document_access_event)
8330 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
8331 (install_application_handler) [MAC_OSX]: Register handlers for
8332 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
8333 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
8334 Register mac_handle_document_access_event.
8335
8336 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
8337 Make functions non-static.
8338
83392008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
8340
8341 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
8342 (read_file_name_completion_ignore_case, insert_default_directory)
8343 (Qdefault_directory): Move to minibuffer.el.
8344 (Fread_file_name): Call the new `read-file-name' instead.
8345
83462008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8347
8348 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
8349 Make function non-static.
8350 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
8351 Remove function.
8352 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
8353 Move to mactoolbox.c.
8354 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
8355
8356 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
8357 (mac_rect_make): New macro.
8358
8359 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
8360 instead of float.
8361 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
8362 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
8363 (XSetBackground) [USE_CG_DRAWING]: Likewise.
8364 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
8365 CGRectMake.
8366 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
8367 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
8368 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
8369 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
8370 instead of WindowRef in argument type.
8371 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
8372 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
8373 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
8374 instead of DISPLAY. All uses changed.
8375 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
8376 (x_calc_absolute_position): Simplify so as not to use
8377 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
8378
8379 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
8380 instead of WindowRef in argument type.
8381 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
8382 [TARGET_API_MAC_CARBON]: Remove externs.
8383 (create_apple_event, mac_event_parameters_to_lisp)
8384 [TARGET_API_MAC_CARBON]: Add externs.
8385
8386 * mactoolbox.c (Vmac_ts_script_language_on_focus)
8387 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
8388 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
8389 is clicked.
8390 (x_activate_menubar): Remove extern for saved_menu_event_location.
8391 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
8392 Move from mac.c.
8393
83942008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8395
8396 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
8397 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
8398
83992008-04-23 Jason Rumney <jasonr@gnu.org>
8400
8401 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
8402 attributes only for local files.
8403
8404 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
8405 default to Qlocal.
8406
84072008-04-22 Juri Linkov <juri@jurta.org>
8408
8409 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
8410 read-buffer-to-switch instead of using the letter "B".
8411
84122008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
8413
8414 * fileio.c (Qdefault_directory): New variable.
8415 (Fread_file_name): Use it to pass `dir' to the completion functions.
8416
84172008-04-20 Chong Yidong <cyd@stupidchicken.com>
8418
8419 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
8420
84212008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
8422
8423 * keyboard.c (Vpre_help_message): Remove.
8424 (show_help_echo): Remove default C code.
8425
8426 * dired.c (directory_files_internal, file_name_completion):
8427 Only call ENCODE_FILE if the string is indeed decoded.
8428
84292008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
8430
8431 * Makefile.in (TOOLKIT_DEFINES): Remove.
8432 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
8433
84342008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8435
8436 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
8437 (mactoolbox.o): New target.
8438
8439 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
8440 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
8441
8442 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
8443 Use mac_set_frame_window_background instead of XSetWindowBackground.
8444 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
8445 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
8446 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
8447 instead of SetWindowTitleWithCFString.
8448 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
8449 Move function to mactoolbox.c.
8450 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
8451 Use mac_set_window_modified instead of SetWindowModified.
8452 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
8453 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
8454 (Fx_focus_frame): Use mac_front_non_floating_window instead of
8455 FrontNonFloatingWindow. Use mac_activate_window instead of
8456 ActivateWindow. Use mac_active_non_floating_window instead of
8457 ActiveNonFloatingWindow.
8458 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
8459 Use mac_show_hourglass and mac_hide_hourglass.
8460 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
8461 instead of GetGlobalMouse.
8462 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
8463 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
8464 Use mac_bring_window_to_front instead of BringToFront.
8465 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
8466 mactoolbox.c.
8467 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
8468 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
8469 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
8470 mactoolbox.c.
8471
8472 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
8473 (XtPointer): Move typedef from macmenu.c.
8474 (enum button_type): Move enum from macmenu.c.
8475 (widget_value): Move typedef from macmenu.c.
8476 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
8477 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
8478 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
8479 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
8480 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
8481 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
8482 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
8483 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
8484 (Selection): Move typedef from macselect.c.
8485 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
8486 macterm.c.
8487 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
8488 (mac_is_window_collapsed, mac_bring_window_to_front)
8489 (mac_send_window_behind, mac_hide_window, mac_show_window)
8490 (mac_collapse_window, mac_front_non_floating_window)
8491 (mac_active_non_floating_window, mac_activate_window)
8492 (mac_move_window_structure, mac_move_window, mac_size_window)
8493 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
8494
8495 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
8496 (enum mac_menu_kind): Move enum to mactoolbox.c.
8497 (min_menu_id): Move variable to mactoolbox.c.
8498 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
8499 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
8500 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
8501 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
8502 [TARGET_API_MAC_CARBON]: Likewise.
8503 (XtPointer): Move typedef to macgui.h.
8504 (enum button_type): Move enum to macgui.h.
8505 (widget_value): Move typedef to macgui.h.
8506 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
8507 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
8508 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
8509 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
8510 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
8511 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
8512 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
8513 (popup_activated_flag): Make variable non-static.
8514 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
8515 (add_menu_item, fill_menu, dispose_menus):
8516 Move functions to mactoolbox.c.
8517 (restore_show_help_function, menu_target_item_handler)
8518 (install_menu_target_item_handler, mac_handle_dialog_event)
8519 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
8520 [TARGET_API_MAC_CARBON]: Likewise.
8521 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
8522 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
8523 (find_and_call_menu_selection, name_is_separator): Make function
8524 non-static.
8525 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
8526 to mactoolbox.c.
8527 (set_frame_menubar): Don't call install_menu_quit_handler.
8528 (menu_item_selection): New variable.
8529 (mac_menu_show): Use create_and_show_popup_menu.
8530 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
8531 selection but set variable menu_item_selection. All uses changed.
8532 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
8533 Call install_menu_quit_handler. Move to mactoolbox.c.
8534
8535 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
8536 (Selection): Move typedef to macgui.h.
8537 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
8538 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
8539 Make variables non-static.
8540 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
8541 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
8542 Make functions non-static.
8543 (Vmac_service_selection) [MAC_OSX]: Likewise.
8544 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
8545 (mac_valid_selection_target_p, mac_clear_selection)
8546 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
8547 (mac_put_selection_value, mac_selection_has_target_p)
8548 (mac_get_selection_value, mac_get_selection_target_list)
8549 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
8550 Move functions to mactoolbox.c.
8551 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
8552 Likewise.
8553 (copy_scrap_flavor_data, mac_handle_service_event)
8554 (install_service_handler) [MAC_OSX]: Likewise.
8555 (syms_of_macselect) <Vmac_dnd_known_types>:
8556 Use mac_dnd_default_known_types.
8557
8558 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
8559 Move to mactoolbox.c.
8560 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
8561 (Fx_selection_owner_p): Add EXFUN.
8562 (install_window_handler, remove_window_handler, XSetWindowBackground):
8563 Remove externs.
8564 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
8565 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
8566 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
8567 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
8568 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
8569 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
8570 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
8571 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
8572 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
8573 (create_and_show_popup_menu, mac_get_selection_from_symbol)
8574 (mac_valid_selection_target_p, mac_clear_selection)
8575 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
8576 (mac_put_selection_value, mac_selection_has_target_p)
8577 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
8578 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
8579 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
8580 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
8581 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
8582 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
8583 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
8584 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
8585 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
8586
8587 * mactoolbox.c: New file.
8588
85892008-04-18 Jason Rumney <jasonr@gnu.org>
8590
8591 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
8592
85932008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
8594
8595 * character.c (Fmultibyte_char_to_unibyte):
8596 Return latin1 chars unchanged.
8597
8598 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
8599 relocated if it points to `name'.
8600
86012008-04-17 Kenichi Handa <handa@m17n.org>
8602
8603 * data.c (Faset): Allow setting a multibyte character in an
8604 ASCII-only unibyte string.
8605
8606 * lisp.h (STRING_SET_MULTIBYTE): New macro.
8607
86082008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
8609
8610 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
8611 done in config.h.
8612
86132008-04-16 Juanma Barranquero <lekktu@gmail.com>
8614
8615 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
8616 (Fchar_direction): Add usage in the docstring.
8617
86182008-04-15 Chong Yidong <cyd@stupidchicken.com>
8619
8620 * keyboard.c (read_key_sequence): Remove always-true checks.
8621
86222008-04-14 Jason Rumney <jasonr@gnu.org>
8623
8624 * w32font.c (w32font_open_internal): Set max_bounds.descent in
8625 compatibility struct, for better underline positioning.
8626
86272008-04-13 David Hansen <david.hansen@gmx.net>
8628
8629 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
8630 string.
8631
86322008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
8633
8634 * m/hp800.h (XUINT, XSET): Remove.
8635
86362008-04-12 Juanma Barranquero <lekktu@gmail.com>
8637
8638 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
8639 previous change.
8640
86412008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
8642
8643 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
8644 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
8645
86462008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
8647
8648 * keymap.h (map_keymap_canonical): Declare.
8649 * xmenu.c (single_keymap_panes): Use it.
8650
86512008-04-11 Glenn Morris <rgm@gnu.org>
8652
8653 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
8654 set the target's value to that of the alias.
8655
86562008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
8657
8658 * term.c (set_tty_color_mode): Left over typo.
8659
86602008-04-10 Michael Albinus <michael.albinus@gmx.de>
8661
8662 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
8663 only after check for file name handler functions. Signal, when
8664 native functionality is not supported.
8665 (syms_of_fileio): Declare it unconditionally.
8666
86672008-04-10 Jason Rumney <jasonr@gnu.org>
8668
8669 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
8670 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
8671
8672 * w32.c (logon_network_drive): Also logon to remote drives that
8673 are mapped to drive letters.
8674
86752008-04-10 Glenn Morris <rgm@gnu.org>
8676
8677 * xdisp.c (truncate-partial-width-windows): Doc fix.
8678
86792008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
8680
8681 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
8682 Move functions to minibuffer.el.
8683 (syms_of_fileio): Don't declare them.
8684
86852008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
8686
8687 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
8688 (syms_of_minibuf): Remove its initialization.
8689
8690 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
8691
86922008-04-09 Juanma Barranquero <lekktu@gmail.com>
8693
8694 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
8695
86962008-04-09 Jason Rumney <jasonr@gnu.org>
8697
8698 * makefile.w32-in (distclean): Delete makefile too.
8699 (maintainer-clean): New target.
8700
8701 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
8702
8703 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
8704 for new font backend and composite cases.
8705
87062008-04-09 Jan Djärv <jan.h.d@swipnet.se>
8707
8708 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
8709 Most of the code moved to run_timers.
8710 (do_pending_atimers): Call run_timers.
8711 (run_timers): New function.
8712
8713 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
8714 run atimers.
8715
8716 * process.c (wait_reading_process_output): The same as above.
8717
87182008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
8719
8720 * minibuf.c (last_exact_completion): Remove variable.
8721 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
8722 (complete_and_exit_1, complete_and_exit_2)
8723 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
8724 (Fdisplay_completion_list, display_completion_list_1)
8725 (Fminibuffer_completion_help, Fself_insert_and_exit)
8726 (Fexit_minibuffer, Fminibuffer_message): Move functions to
8727 minibuffer.el.
8728 (syms_of_minibuf): Remove corresponding initializations.
8729
8730 * keyboard.c (Qdeactivate_mark): New var.
8731 (command_loop_1): Use it to call `deactivate-mark'.
8732 (syms_of_keyboard): Initialize it.
8733
8734 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
8735 to another frame.
8736 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
8737 Don't call set_tty_color_mode.
8738 (store_frame_param): Reset previous_frame rather than call
8739 set_tty_color_mode.
8740 * term.c (set_tty_color_mode): Rewrite.
8741 * dispextern.h (set_tty_color_mode): New type.
8742 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
8743
87442008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
8745
8746 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
8747 for generic chars, which do not exist any more in emacs-unicode.
8748
87492008-04-08 Michael Albinus <michael.albinus@gmx.de>
8750
8751 * coding.c (detect_coding_emacs_mule)
8752 (Ffind_operation_coding_system): Fix typo.
8753
87542008-04-08 Jason Rumney <jasonr@gnu.org>
8755
8756 * w32uniscribe.c (SNAME): Extract only symbol name.
8757
8758 * w32font.h (struct w32_metric_cache): New struct.
8759 (w32font_info): Use it.
8760 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
8761 (CACHE_BLOCKSIZE): New constants.
8762
8763 * w32font.c (Qja, Qko, Qzh): New symbols.
8764 (syms_of_w32font): Initialise them.
8765 (font_matches_spec): Use them to filter by language.
8766 (recompute_cached_metrics): Remove function.
8767 (compute_metrics, clear_cached_metrics): New functions.
8768 (w32font_encode_char): Use them to manage metric cache.
8769 (w32font_text_extents): Cache metrics for all glyphs on demand.
8770 Delay converting glyph indices to WORD until needed.
8771 (w32font_open_internal): Initialize metric cache to empty.
8772 (registry_to_w32_charset): Charset should always be a symbol.
8773 (fill_in_logfont, list_all_matching_fonts): Family should
8774 always be a symbol.
8775
87762008-04-06 Jason Rumney <jasonr@gnu.org>
8777
8778 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
8779 Give up if glyph indices not supported. Use uniscribe obtained
8780 ABC widths for individual metrics. Map glyph clusters back to
8781 characters using fClusterStart flag. Return number of glyphs
8782 produced, not chars processed.
8783 (uniscribe_shape): Map char at FROM to current glyph.
8784
87852008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8786
8787 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
8788 Use SetMenuItemHierarchicalMenu.
8789
87902008-04-05 Jason Rumney <jasonr@gnu.org>
8791
8792 * image.c (pbm_load): Allow color values up to 65535.
8793 Throw an error if max_color_idx is outside the supported range.
8794 Report an error when image size is invalid.
8795 Read two bytes at a time when raw images have max_color_idx above 255.
8796
87972008-04-05 Eli Zaretskii <eliz@gnu.org>
8798
8799 * w32.c (readdir): If FindFirstFile/FindNextFile return in
8800 cFileName a file name that includes `?' characters, use the 8+3
8801 alias in cAlternateFileName instead.
8802
88032008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
8804
8805 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
8806 append "CCL: Quitted" when the CCL program is quitted.
8807 (setup_ccl_program): Initialize ccl->quit_silently to zero.
8808
8809 * ccl.h (struct ccl_program): New member quit_silently.
8810
88112008-04-05 Chong Yidong <cyd@stupidchicken.com>
8812
8813 * search.c (compile_pattern_1): Treat non-nil and non-string of
8814 search-spaces-regexp as nil.
8815
8816 * minibuf.c (Fassoc_string): Tweak docstring.
8817
88182008-04-05 Eli Zaretskii <eliz@gnu.org>
8819
8820 * dired.c (Ffile_attributes): Support inode numbers wider than 32
8821 bits. Remove ugly WINDOWSNT-specific kludge introduced on
8822 2008-03-14 to force inode be positive.
8823
8824 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
8825 _S_* ones, since we now use our own sys/stat.h.
8826 (stat, fstat): Don't mangle the inode number.
8827 (init_user_info): Don't restrict UID and GID to 0-60000 range.
8828
88292008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
8830
8831 * frame.h (struct frame): Give one more bit to `visible' since we use
8832 values larger than 1 to indicate obscured frames on ttys.
8833
8834 * keymap.c (Qkeymap_canonicalize): New var.
8835 (Fmap_keymap_internal): New fun.
8836 (describe_map): Use keymap-canonicalize.
8837
8838 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
8839 (Fundo_boundary): Set them.
8840 (syms_of_undo): Initialize them.
8841 (record_point): Use them instead of last_point_position*.
8842 (last_undo_buffer): Change type.
8843
88442008-04-04 Jason Rumney <jasonr@gnu.org>
8845
8846 * w32font.c (w32font_text_extents): Use font's ascent and descent.
8847 (recompute_cached_metrics): Don't set ascent and descent per char.
8848
8849 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
8850 (uniscribe_check_otf): Add GC protection before consing.
8851 Rearrange loop for counting features.
8852
88532008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
8854
8855 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
8856 buffer with byte-size of source buffer.
8857
88582008-04-03 Chong Yidong <cyd@stupidchicken.com>
8859
8860 * callint.c (Fcall_interactively): Handle temporary region even
8861 when shift-select-mode is off.
8862
88632008-04-03 Jason Rumney <jasonr@gnu.org>
8864
8865 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
8866
88672008-04-03 Kenichi Handa <handa@m17n.org>
8868
8869 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
8870 (CATEGORY_MASK_UTF_16): Likewise.
8871 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
8872 binary file.
8873 (detect_coding): Add null-byte detection for a binary file.
8874 (detect_coding_system): Likewise.
8875
88762008-04-03 Jason Rumney <jasonr@gnu.org>
8877
8878 * w32uniscribe.c: New file.
8879
8880 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
8881
8882 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
8883
8884 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
8885 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
8886 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
8887 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
8888 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
8889 (Qphonetic): New symbols.
8890 (syms_of_w32font): Initialize them.
8891 (font_supported_scripts): Use them.
8892 (w32font_list_family): List all charsets.
8893 (w32font_text_extents, recompute_cached_metrics): Fix metric
8894 calculations.
8895 (w32_enumfont_pattern_entity): Make full_type a DWORD.
8896 Give opentype fonts their own format.
8897 (font_matches_spec): New arguments backend and logfont.
8898 Handle :otf spec for uniscribe backend.
8899 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
8900 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
8901
8902 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
8903 font backend.
8904 (globals_of_w32fns): Initialize uniscribe font backend.
8905
8906 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
8907 dependencies.
8908 (w32uniscribe.$(O)): New file to build.
8909 (FONT_OBJ): Include w32uniscribe.$(O).
8910 (LIBS): Add uniscribe libraries.
8911
8912 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
8913
89142008-04-02 Chong Yidong <cyd@stupidchicken.com>
8915
8916 * callint.c (Vshift_select_mode): New var.
8917 (Finteractive): Document new ^ spec.
8918 (Fcall_interactively): Call handle-shift-selection if the ^ spec
8919 is present.
8920
8921 * keyboard.c (Vthis_command_keys_shift_translated): New var.
8922 (command_loop_1): Avoid running the direct display versions of
8923 forward-char and backward-char if shift-selection may occur.
8924 (read_key_sequence): Set Vthis_command_keys_shift_translated if
8925 shift-translation takes place.
8926
8927 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
8928 avoid clobbering by define-minor-mode.
8929
8930 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
8931 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
8932
8933 * syntax.c (Fforward_word): Add ^ interactive spec.
8934
8935 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
8936 (Fscroll_right): Add ^ interactive spec.
8937
89382008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
8939
8940 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
8941
8942 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
8943
8944 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
8945
89462008-03-31 Juri Linkov <juri@jurta.org>
8947
8948 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
8949
89502008-03-30 Jan Djärv <jan.h.d@swipnet.se>
8951
8952 * gtkutil.c (xg_set_geometry): Fix indentation.
8953 (xg_resize_outer_widget): Remove.
8954 (x_wm_size_hint_off): Fix indentation.
8955 (xg_frame_set_char_size): Call flush_and_sync after
8956 gtk_window_resize.
8957 (x_wm_set_size_hint): Pass NULL as geometry window to
8958 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
8959 Add menu bar and tool bar height to base height.
8960 (xg_update_frame_menubar, free_frame_menubar)
8961 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
8962 (update_frame_tool_bar, free_frame_tool_bar):
8963 Change xg_resize_outer_widget to xg_frame_set_char_size.
8964
89652008-03-30 Michael Albinus <michael.albinus@gmx.de>
8966
8967 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
8968 (Fdbus_call_method): New parameter TIMEOUT.
8969 (dbus-send-signal): Optimize UNGCPRO call.
8970
89712008-03-29 Juri Linkov <juri@jurta.org>
8972
8973 * window.c (Fdisplay_buffer): Move call to
8974 Vsplit_window_preferred_function out of conditions that check
8975 if window is eligible for vertical splitting.
8976 When Vsplit_window_preferred_function is non-nil, call it and use
8977 its non-nil return value as window. Otherwise, continue doing
8978 vertical splitting using Fsplit_window with arg horflag=nil.
8979 (syms_of_window) <Vsplit_window_preferred_function>: Change the
8980 default value from `split-window' to nil.
8981
89822008-03-29 Juri Linkov <juri@jurta.org>
8983
8984 * callint.c (Fcall_interactively): Revert 2008-03-16 change
8985 for interactive code letters 'b' and 'B'.
8986
89872008-03-29 Eli Zaretskii <eliz@gnu.org>
8988
8989 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
8990 multibyte string.
8991
89922008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
8993
8994 * keyboard.c (pending_funcalls): New var.
8995 (timer_check): Run it.
8996 (syms_of_keyboard): Initialize it.
8997 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
8998 (Vdelete_terminal_functions): New vars.
8999 (syms_of_terminal): Initialize them.
9000 (Fdelete_terminal): Run delete-terminal-functions.
9001 * xdisp.c (safe_eval): Rewrite.
9002 (safe_call2): New fun.
9003 * frame.c (Qdelete_frame_functions): New var.
9004 (syms_of_frame): Initialize it.
9005 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
9006 * lisp.h (safe_call2, pending_funcalls): Declare.
9007
90082008-03-28 Andreas Schwab <schwab@suse.de>
9009
9010 * indent.c (Fmove_to_column): Move declaration before statements.
9011
90122008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
9013
9014 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
9015 (struct frame): Use bit fields for boolean vars.
9016
9017 * process.c (server_accept_connection): Simplify naming.
9018 (emacs_get_tty_pgrp): Use SDATA.
9019
9020 * coding.c (decode_coding_object): Fix last change.
9021
90222008-03-27 Jason Rumney <jasonr@gnu.org>
9023
9024 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
9025
90262008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
9027
9028 * charset.c (Fdefine_charset_internal): Change the way of
9029 registering charsets in Vcharset_order_list.
9030 (syms_of_charset): Make the charset `eight-bit' supplementary.
9031
90322008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
9033
9034 * regex.c (EXTEND_BUFFER): Change order of pointer addition
9035 operations, to avoid having the difference between pointers
9036 overflow.
9037
90382008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
9039
9040 * indent.c (check_display_width): New fun.
9041 (scan_for_column): Use it.
9042
9043 * data.c (syms_of_data): Mark most-positive-fixnum and
9044 most-negative-fixnum as constants.
9045
9046 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
9047
9048 * indent.c (scan_for_column): Extract from current_column_1.
9049 Merge with the same code from Fmove_to_column.
9050 (current_column_1, Fmove_to_column): Use it.
9051
90522008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
9053
9054 * keymap.c (map_keymap_internal): New fun.
9055 (map_keymap): Use it.
9056 (Fmap_keymap_internal): New fun.
9057 (Fmap_keymap): Remove left-out test from before make_save_value.
9058
9059 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
9060
9061 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
9062 Use XCAR/XCDR.
9063
9064 * process.h (struct Lisp_Process): Remove filter_multibyte.
9065 * process.c (QCfilter_multibyte): Remove.
9066 (setup_process_coding_systems): Don't use filter_multibyte.
9067 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
9068 (read_process_output): Don't adjust multibyteness to filter_multibyte.
9069 (Fset_process_filter_multibyte): Change the coding-system to
9070 approximate the previous behavior.
9071 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
9072 coding-system.
9073
9074 * coding.c (decode_coding_object): When not decoding into a buffer,
9075 obey the coding system's preference of (uni|multi)byte.
9076
90772008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
9078
9079 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
9080 every char is changed and has a different byte-length.
9081 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
9082 Fix int -> EMACS_INT.
9083
90842008-03-23 David Hansen <david.hansen@gmx.net>
9085
9086 * dbusbind.c (xd_read_message): Remove extra copying of message
9087 strings. Check for NULL `interface' or `member'.
9088
90892008-03-22 Eli Zaretskii <eliz@gnu.org>
9090
9091 * w32.c (readdir): If FindFirstFile/FindNextFile return in
9092 cFileName a file name that includes `?' characters, use the 8+3
9093 alias in cAlternateFileName instead.
9094
90952008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
9096
9097 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
9098
90992008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
9100
9101 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
9102 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
9103 work on current_buffer only instead (that was already the case
9104 for some of the code anyway).
9105 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
9106 (temp_set_point, temp_set_point_both): Use EMACS_INT.
9107 (SET_PT, SET_PT_BOTH): Adjust.
9108 * intervals.h (set_point, temp_set_point, set_point_both)
9109 (temp_set_point_both): Remove redundant declarations.
9110
91112008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
9112
9113 * fileio.c (Finsert_file_contents):
9114 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
9115 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
9116 when buffer != current_buffer anyway.
9117
91182008-03-20 Andreas Schwab <schwab@suse.de>
9119
9120 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
9121 as default.
9122
91232008-03-19 Jason Rumney <jasonr@gnu.org>
9124
9125 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
9126 (syms_of_w32fns): Initialize them.
9127 (HOURGLASS_ID): New constant.
9128 (x_window_to_frame): Don't check hourglass_window.
9129 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
9130 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
9131 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
9132 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
9133 Only change the cursor if hourglass is not active.
9134 (Fx_create_frame): Initialize frame's current_cursor.
9135 (hourglass_atimer): Remove.
9136 (hourglass_started): New function.
9137 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
9138 (show_hourglass): Adapt to w32, changing argument to frame.
9139
9140 * w32term.h (struct w32_output): Remove hourglass_window.
9141 Add current_cursor.
9142
9143 * eval.c (call_debugger, Fsignal):
9144 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
9145 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
9146 (Fexecute_extended_command, cancel_hourglass_unwind):
9147 * minibuf.c (read_minibuf):
9148 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
9149
91502008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
9151
9152 * window.c (run_funs): New fun.
9153 (run_window_configuration_change_hook): Use it to run the buffer-local
9154 and the global part of the hook.
9155
9156 * xdisp.c (format_mode_line_unwind_data): Add window argument.
9157 (unwind_format_mode_line): Restore selected window.
9158 (x_consider_frame_title, Fformat_mode_line): Set selected window.
9159
91602008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
9161
9162 * editfns.c (Fchar_equal): Check they are valid characters.
9163
9164 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
9165
91662008-03-17 Andreas Schwab <schwab@suse.de>
9167
9168 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
9169 against a charset.
9170
9171 * lisp.h (Fbuffer_list): Declare.
9172
91732008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 9174
aac0c6e3
MR
9175 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
9176 handlebox_widget is != 0.
9177
91782008-03-16 Juri Linkov <juri@jurta.org>
9179
9180 * callint.c (Fcall_interactively): For interactive code letters
9181 'b' and 'B' put the buffer list into the list of default "future"
9182 values of the minibuffer.
9183
91842008-03-16 Andreas Schwab <schwab@suse.de>
9185
9186 * keyboard.c (read_key_sequence): Fix downcasing of letters with
9187 modifiers.
9188
9189 * regex.c (re_match_2_internal): Correct matching of a charset
9190 against latin-1 characters.
9191
91922008-03-16 Kenichi Handa <handa@m17n.org>
9193
9194 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
9195 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
9196 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
9197 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
9198 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
9199 CHAR_STRING_ADVANCE.
9200 (produce_chars): Fix for the case that the source and the
9201 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
9202 instead of CHAR_STRING_ADVANCE.
9203 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
9204 STRING_CHAR_ADVANCE.
9205
92062008-03-15 Andreas Schwab <schwab@suse.de>
9207
9208 * regex.c (re_match_2_internal): Correct matching of eight bit
9209 characters in unibyte strings.
9210
92112008-03-15 Martin Rudalics <rudalics@gmx.at>
9212
9213 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
9214 at end of range when it coincides with the end of the buffer.
9215
92162008-03-14 Eli Zaretskii <eliz@gnu.org>
9217
9218 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
9219
9220 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
9221
92222008-03-14 Jason Rumney <jasonr@gnu.org>
9223
9224 * editfns.c (initial_tz): New variable.
9225 (syms_of_editfns): Initialize it.
9226 (Fset_time_zone_rule): Set it when first called.
9227 Use it when TZSTRING is nil.
9228
9229 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
9230 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
9231 (monitor_from_point_fn, get_monitor_info_fn): New globals.
9232 (globals_of_w32fns): Initialize them.
9233 (compute_tip_xy): Use them to position tooltips.
9234
92352008-03-14 Glenn Morris <rgm@gnu.org>
9236
9237 * emacs.c (main): Revert previous change.
9238 (standard_args): Revert -internal-script back to -scriptload,
9239 and remove the long-option form.
9240
92412008-03-13 Glenn Morris <rgm@gnu.org>
9242
9243 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
9244 Remove option -enable-font-backend.
9245
92462008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
9247
9248 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
9249
92502008-03-11 Jan Djärv <jan.h.d@swipnet.se>
9251
9252 * xterm.c (x_connection_closed): For GTK: If this is the last
9253 terminal just exit without closing the display.
9254
92552008-03-11 Jason Rumney <jasonr@gnu.org>
9256
9257 * w32font.c (w32font_full_name): Use floor to round.
9258
f0131492 92592008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
9260
9261 * sound.c (alsa_configure): Declare vol at beginning of block.
9262
9263 * fontset.c (Ffontset_info): Remove extra semicolon.
9264
92652008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
9266
9267 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
9268 size of resulting string.
9269
92702008-03-10 Jason Rumney <jasonr@gnu.org>
9271
9272 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
9273
92742008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9275
9276 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
9277 Don't pretend as if characters with display property haven't been
9278 consumed for string-replacing-string case.
9279
92802008-03-08 Kim F. Storm <storm@cua.dk>
9281
9282 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
9283 (get_next_display_element, next_element_from_string)
9284 (next_element_from_ellipsis, next_element_from_buffer): Use it.
9285
92862008-03-08 Andreas Schwab <schwab@suse.de>
9287
9288 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
9289
92902008-03-06 Jason Rumney <jasonr@gnu.org>
9291
9292 * w32font.c (w32_registry): Take font_type argument. Use ANSI
9293 when charset not specified. Only translate ANSI to unicode when
9294 font_type is truetype.
9295 (w32font_coverage_ok): New function.
9296 (add_font_entity_to_list): Use it to filter unsuitable fonts.
9297
92982008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
9299
9300 * lread.c (Fread_char): Resolve modifiers.
9301 (Fread_char_exclusive): Likewise.
9302
9303 * character.c (char_resolve_modifier_mask): New function.
9304 (char_string): Use char_resolve_modifier_mask.
9305 (Fchar_resolve_modifiers): New function.
9306 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
9307 function.
9308
93092008-03-04 Jason Rumney <jasonr@gnu.org>
9310
9311 * makefile.w32-in: Always include w32font.c in the build.
9312 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
9313
93142008-03-04 Andreas Schwab <schwab@suse.de>
9315
9316 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
9317 (versionclean): Likewise.
9318
93192008-03-04 Juanma Barranquero <lekktu@gmail.com>
9320
9321 * .cvsignore: Add oo.
9322
93232008-03-03 Andreas Schwab <schwab@suse.de>
9324
9325 * coding.c (decode_coding_object): Inhibit gap shrinking while
9326 decoding in place.
9327
93282008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
9329
9330 * w32term.c: Remove unused include "gnu.h".
9331 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
9332
9333 * gnu.h: Rename to ...
9334 * emacs-icon.h: ... this.
9335 * xterm.c: Use emacs-icon.h instead of gnu.h.
9336 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
9337
93382008-03-03 Juanma Barranquero <lekktu@gmail.com>
9339
9340 * w32font.c: Include math.h.
9341
93422008-03-03 Jason Rumney <jasonr@gnu.org>
9343
9344 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
9345 Compute options separately.
9346 (w32font_open_internal): Set glyph_idx before caching metrics.
9347
9348 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
9349 Define if system headers don't.
9350 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
9351 (w32font_encode_char): Don't declare here.
9352
9353 * w32font.c (Quniscribe, QCformat): New symbols.
9354 (syms_of_w32font): Define them.
9355 (w32font_has_char): Indicate uncertainty.
9356 (w32font_encode_char): Encode as glyph point. Make static.
9357 (recompute_cached_metrics): New function.
9358 (w32font_open_internal): Use it. Set font to use glyph points
9359 initially. Set format based on type of font.
9360 (w32font_text_extents, w32font_draw): Optionally use glyph points.
9361 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
9362 on it. Set format based on information available here.
9363 (add_font_entity_to_list): Identify backend based on opentype_only.
9364
93652008-03-02 Andreas Schwab <schwab@suse.de>
9366
9367 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
9368
9369 * coding.c (decode_coding_big5, produce_chars):
9370 Fix typos in last change.
9371
93722008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
9373
9374 * gnu.h: New icon.
9375
93762008-03-02 Kenichi Handa <handa@m17n.org>
9377
9378 * coding.c (decode_coding_utf_8): When eol-type of CODING is
9379 `dos', don't decode '\r' if that is the last in the source.
9380 (decode_coding_utf_16, decode_coding_emacs_mule)
9381 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
9382 (decode_coding_raw_text, decode_coding_charset): Likewise.
9383 (produce_chars): Don't decode EOL here. Use EMACS_INT.
9384
93852008-03-01 Jason Rumney <jasonr@gnu.org>
9386
9387 * w32font.c (w32font_full_name): Report point size for scalable fonts.
9388
93892008-03-01 Kim F. Storm <storm@cua.dk>
9390
9391 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
9392
93932008-03-01 Jason Rumney <jasonr@gnu.org>
9394
9395 * w32font.c (w32font_full_name): New function.
9396 (w32font_open_internal): Use it.
9397
93982008-03-01 Kim F. Storm <storm@cua.dk>
9399
9400 * dispnew.c (line_draw_cost): Fix invalid glyph check.
9401
94022008-03-01 Jason Rumney <jasonr@gnu.org>
9403
9404 * font.c (font_unparse_fcname): Increase len when style is a symbol.
9405
94062008-03-01 Jan Djärv <jan.h.d@swipnet.se>
9407
9408 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
9409 xg_frame_resized when the event is for the edit widget.
9410
9411 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
9412
9413 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
9414 set_char_size.
9415 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
9416 operations on widgets here. Just set frame size if needed.
9417 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
9418 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
9419 (x_wm_set_size_hint): Set size hints on the edit widget only, not
9420 the whole frame.
9421 (xg_create_tool_bar): Move attachment of the tool bar to
9422 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
9423 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
9424
94252008-03-01 Jason Rumney <jasonr@gnu.org>
9426
9427 * w32fns.c (w32_msg_pump): Disable debug code.
9428
94292008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9430
9431 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
9432
94332008-02-29 Chong Yidong <cyd@stupidchicken.com>
9434
9435 * xdisp.c (next_overlay_string): Don't set
9436 overlay_strings_at_end_processed_p if we're currently reading from
9437 a display string.
9438
94392008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
9440
9441 * xdisp.c (get_overlay_strings_1): Fix typo.
9442
94432008-02-29 Chong Yidong <cyd@stupidchicken.com>
9444
9445 * xdisp.c (get_overlay_strings_1): Add missing argument type.
9446
94472008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
9448
9449 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
9450
9451 * xdisp.c (display_mode_element): Cancel the previous change.
9452 (decode_mode_spec): Likewise.
9453 (handle_auto_composed_prop): Don't make composition if it->string
9454 is a string.
9455
94562008-02-27 Kim F. Storm <storm@cua.dk>
9457
9458 * lisp.h (GLYPH): Change type from int to struct with separate char
9459 and face_id members.
9460 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
9461 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
9462 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
9463 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
9464 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
9465 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
9466 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
9467 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
9468 handle new Lisp glyph code encoding, either an integer or a cons.
9469
9470 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
9471 (GLYPH_ALIAS): Delete.
9472 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
9473 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
9474 (GLYPH_FROM_CHAR): Replace macro by ...
9475 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
9476
9477 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
9478 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
9479 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
9480 (GLYPH_INVALID_P): New macro.
9481 (spec_glyph_lookup_face): Update prototype.
9482
9483 * dispnew.c (line_draw_cost): Adapt to new glyph type.
9484 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
9485 new glyph code encoding.
9486 (spec_glyph_lookup_face): No return value; update passed glyph instead.
9487 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
9488
9489 * xdisp.c (get_next_display_element, next_element_from_display_vector):
9490 Adapt to new glyph type and new glyph code encoding.
9491
9492 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
9493
9494 * indent.c (current_column, current_column_1, Fmove_to_column)
9495 (compute_motion): Adapt to new glyph code encoding.
9496
9497 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
9498
94992008-02-27 Chong Yidong <cyd@stupidchicken.com>
9500
9501 * process.c (wait_reading_process_output): Check for window
9502 changes caused by timers.
9503 Suggested by Johan Bockgård.
9504
95052008-02-27 Glenn Morris <rgm@gnu.org>
9506
9507 * emacs.c (USAGE1): Add `--disable-font-backend'.
9508
95092008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
9510
9511 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
9512 is made to the buffer.
9513
95142008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
9515
9516 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
9517 (face_at_string_position):
9518 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
9519 (face_at_string_position):
9520 * xdisp.c (display_string, next_overlay_change):
9521 * buffer.h (overlays_at):
9522 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
9523 Update callers.
9524
95252008-02-26 Chong Yidong <cyd@stupidchicken.com>
9526
9527 * editfns.c (Fformat): Doc fix.
9528
95292008-02-26 Juanma Barranquero <lekktu@gmail.com>
9530
9531 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
9532 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
9533 (Ffont_otf_alternates, Fquery_font): Doc fixes.
9534
95352008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
9536
9537 * buffer.c (Fbuffer_swap_text): New function.
9538 (syms_of_buffer): Defsubr it.
9539
95402008-02-25 Chong Yidong <cyd@stupidchicken.com>
9541
9542 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
9543
95442008-02-25 Jason Rumney <jasonr@gnu.org>
9545
9546 * w32font.c (w32font_draw): Draw one character at a time when padding.
9547
95482008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
9549
9550 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
9551 Handle a nil arg. Use run_window_configuration_change_hook.
9552 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
9553 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
9554 Use run_window_configuration_change_hook.
9555
95562008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
9557
9558 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
9559 1-pixel width.
9560
95612008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
9562
9563 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
9564 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
9565 if the glyph in the font is zero pixel with.
9566
9567 * dispextern.h (struct glyph_string): New member padding_p.
9568
9569 * w32font.c (w32font_draw): Pay attention to s->padding_p.
9570
9571 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
9572
9573 * xfont.c (xfont_draw): Pay attention to s->padding_p.
9574
9575 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
9576
9577 * font.c: If the font driver doesn't have `shape' function, return Qnil.
9578
95792008-02-25 Jason Rumney <jasonr@gnu.org>
9580
9581 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
9582
95832008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
9584
9585 Allow fine-grained image-cache flushing.
9586 * dispextern.h (struct image): Add `dependencies' field.
9587 (clear_image_caches): Change arg to Lisp_Object.
9588 * image.c (make_image): Initialize `dependencies' field.
9589 (clear_image_cache): Change arg to allow fine-grained flushing.
9590 Perform the flush even if image-cache-eviction-delay is nil.
9591 (clear_image_caches): Change arg to Lisp_Object.
9592 (Fclear_image_cache): Expand meaning of the argument.
9593 (mark_image): Mark `dependencies' field.
9594 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
9595 (lface_hash): Use XHASH rather than XFASTINT.
9596 (face_at_buffer_position): Fix int -> EMACS_INT position.
9597 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
9598 (select_frame_for_redisplay): Remove code duplication.
9599 (redisplay_internal): Adapt arg to call to clear_image_caches.
9600
96012008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
9602
9603 * s/vms4-0.h:
9604 * s/vms4-2.h:
9605 * s/vms4-4.h:
9606 * s/vms5-5.h: Remove, unused.
9607
9608 * s/irix5-2.h:
9609 * s/irix6-0.h:
9610 * s/riscos5.h:
9611 * s/mach-bsd4-3.h:
9612 * m/mips4.h: Remove files for obsolete systems.
9613
9614 * Makefile.in:
9615 * filelock.c:
9616 * unexmips.c:
9617 * m/hp9000s300.h:
9618 * m/iris4d.h:
9619 * s/aix3-1.h:
9620 * s/hpux.h:
9621 * s/msdos.h:
9622 * s/usg5-0.h:
9623 * s/usg5-2-2.h:
9624 * s/usg5-2.h:
9625 * s/usg5-3.h: Remove references to obsolete variables.
9626
9627 * s/irix5-0.h: Remove, move all the contents ...
9628 * s/irix6-5.h: ... here. Simplify.
9629 * config.in: Regenerate.
9630
96312008-02-24 Jason Rumney <jasonr@gnu.org>
9632
9633 * w32term.c (x_draw_glyph_string_background): Clear the background
9634 manually when cleartype is in use.
9635 (x_draw_glyph_string_foreground): Draw text transparently when
9636 cleartype is in use.
9637
9638 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
9639 a font into it unless we have to.
9640
96412008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
9642
9643 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
9644 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 9645
aac0c6e3
MR
96462008-02-18 Jason Rumney <jasonr@gnu.org>
9647
9648 * w32fns.c (Fw32_shell_execute): Encode parameters.
9649
96502008-02-09 Eli Zaretskii <eliz@gnu.org>
9651
9652 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
9653
96542008-02-05 Juanma Barranquero <lekktu@gmail.com>
9655
9656 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
9657
96582008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
9659
9660 * xterm.c (x_set_offset): Don't change the gravity if
9661 CHANGE_GRAVITY is -1.
9662
96632008-02-23 Chong Yidong <cyd@stupidchicken.com>
9664
9665 * fileio.c (auto_save_error_occurred): New var.
9666 (auto_save_error): Set it.
9667 (Fdo_auto_save): Don't overwrite the error message if an auto-save
9668 error occurred.
9669
96702008-02-23 Eli Zaretskii <eliz@gnu.org>
9671
9672 * w32.c (globals_of_w32): Add initializations for
9673 g_b_init_get_sid_sub_authority and
9674 g_b_init_get_sid_sub_authority_count.
9675
96762008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
9677
9678 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
9679 (font_parse_xlfd): Use them for sanity check.
9680 (Finternal_set_font_style_table): Make sure the table is bijective.
9681
9682 Consolidate the image_cache to the terminal struct.
9683 * termhooks.h (P_): Remove redundant def.
9684 (struct terminal): New field `image_cache'.
9685 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
9686 of FRAME_X_IMAGE_CACHE.
9687 * xterm.h (struct x_display_info): Remove image_cache field.
9688 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
9689 * w32term.h (struct w32_display_info): Remove image_cache field.
9690 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
9691 * macterm.h (struct mac_display_info): Remove image_cache field.
9692 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
9693 * xterm.c (x_term_init):
9694 * w32term.c (w32_term_init):
9695 * macterm.c (mac_term_init): Set the image_cache in the terminal.
9696 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
9697 Remove declarations.
9698 (clear_image_caches, mark_image_cache): New declarations.
9699 * xfaces.c (clear_face_cache):
9700 * xdisp.c (redisplay_internal): Use clear_image_caches.
9701 * image.c (clear_image_cache): Don't check that a frame is on
9702 a window-system before checking if it shares the same cache.
9703 (clear_image_caches): New function.
9704 (Fclear_image_cache): Use it.
9705 (mark_image): Move from allo.c.
9706 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
9707 * alloc.c (mark_image, mark_image_cache): Move to image.c.
9708 (mark_object): Don't call mark_image_cache for frames.
9709 (mark_terminals): Call mark_image_cache.
9710
9711 * lisp.h (Fdelete_terminal): Declare.
9712
9713 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
9714 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
9715 wrong_type_argument.
9716
97172008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
9718
9719 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
9720 malayalam.el, and tamil.el. Add sinhala.el.
9721
97222008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
9723
9724 * xterm.c (x_connection_closed): Consolidate identical tests.
9725 (x_delete_terminal): Don't crash if called via x_connection_closed.
9726
97272008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
9728
9729 * xdisp.c (decode_mode_spec): New arg string.
9730 (display_mode_element): Adjust for the above change.
9731
97322008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
9733
9734 * callint.c (Fcall_interactively): Use AREF.
9735
97362008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
9737
9738 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
9739
97402008-02-18 Jan Djärv <jan.h.d@swipnet.se>
9741
9742 * xfns.c (Fx_show_tip): Set string to " " if empty.
9743
97442008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
9745
9746 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
9747 with Qt.
9748
97492008-02-17 Kenichi Handa <handa@m17n.org>
9750
9751 * ftfont.c (ftfont_shape): Return Lispy number.
9752
9753 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
9754 for GCs.
9755 (Finternal_set_font_selection_order): Call font_update_sort_order
9756 only when enable_font_backend is set.
9757 (realize_x_face): Set face->font_info to that of default face only
9758 when enable_font_backend is set.
9759
9760 * xdisp.c (handle_composition_prop): Set it->c to the fist
9761 character of the composed region.
9762 (fill_composite_glyph_string): Set base_face->font_info to
9763 s->font_info. Get a face for ascii from base_face->ascii_face.
9764 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
9765 with a face already decided.
9766 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
9767 non-negative.
9768 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
9769 call font_prepare_composition unconditionally.
9770
9771 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
9772
9773 * xterm.h (struct x_display_info): New member font.
9774
9775 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
9776 (x_set_mouse_face_gc, x_new_font): Likewise.
9777 (x_term_init): Setup display_info->font.
9778 (x_delete_terminal): Free display_info->font.
9779
9780 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
9781
9782 * ftxfont.c (ftxfont_default_fid): Delete it.
9783 (ftxfont_open): Set xfont->fid to 0.
9784 (ftxfont_end_for_frame): Clear data specific to the frame and the
9785 font-driver.
9786
9787 * xftfont.c (xftfont_default_fid): Delete it.
9788 (xftfont_open): Set xfont->fid to 0.
9789
9790 * fontset.c (FONTSET_OBJLIST): New macro.
9791 (fontset_find_font): Update font-object list of the fontset.
9792 (free_realized_fontset): New function.
9793 (free_face_fontset): Call free_realized_fontset.
9794 (Ffont_info): Call font_close_object only when enable_font_backend
9795 is set.
9796
9797 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
9798 [HAVE_NTGUI]: Include w32term.h.
9799 [MAC_OS]: Include macterm.ch.
9800 (font_otf_ValueRecord): Use make_number.
9801 (font_finish_cache): Fix handling of reference count.
9802 (font_clear_cache): Update num_fonts.
9803 (font_open_entity): Update smallest_char_width and
9804 smallest_font_height of the frame.
9805 (font_close_object): Update num_fonts.
9806 (Fclear_font_cache): Fix finding the target cache data.
9807
98082008-02-16 Glenn Morris <rgm@gnu.org>
9809
9810 * fontset.c (Finternal_char_font): Fix compilation warning.
9811
98122008-02-16 Eli Zaretskii <eliz@gnu.org>
9813
9814 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
9815 instead of char arrays. Enlarge the size of array passed to
9816 get_token_information.
9817
9818 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
9819 warnings.
9820
98212008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
9822
9823 * .gdbinit: Don't set `args', it breaks gdb --args.
9824
98252008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
9826
9827 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
9828 within a narrowed buffer.
9829
98302008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
9831
9832 * coding.c (decode_coding_object, encode_coding_object):
9833 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
9834
98352008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
9836
9837 * coding.c (coding_set_destination): Use BEG_BYTE rather than
9838 hardcoding 1.
9839 (detect_coding_system):
9840 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
9841 (string_char_to_byte, string_byte_to_char, insert_from_gap):
9842 * insdel.c (insert_from_gap):
9843 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
9844 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
9845 (string_to_multibyte):
9846 * character.c (chars_in_text, multibyte_chars_in_text):
9847 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
9848
9849 * character.h (FETCH_STRING_CHAR_ADVANCE)
9850 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
9851 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
9852 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
9853
9854 * casefiddle.c (casify_region): Only call after-change and composition
9855 functions on the part of the region that was changed.
9856
9857 * keyboard.c (read_avail_input):
9858 * frame.c (Fdelete_frame): Call Fdelete_terminal.
9859
98602008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
9861
9862 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
9863 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
9864
98652008-02-11 Juanma Barranquero <lekktu@gmail.com>
9866
9867 * w32menu.c (push_submenu_start, push_submenu_end)
9868 (push_left_right_boundary, push_menu_pane, push_menu_item):
9869 * keyboard.c (read_key_sequence): Don't pass args with side effects
9870 to AREF, it fails when compiling with -DENABLE_CHECKING.
9871
98722008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
9873
9874 * Makefile.in (${lispsource}international/charprop.el):
9875 Delete this target.
9876
9877 * search.c (boyer_moore): Fix incorrect synching of the trunk and
9878 emacs-unicode-2.
9879
98802008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
9881
9882 * terminal.c (Fdelete_terminal): Clean up the `force' path.
9883
98842008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
9885
9886 * frame.c (Qnoelisp): New symbol.
9887 (syms_of_frame): Initialize it.
9888 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
9889 harmless Elisp code, from a strong `force' from x_connection_closed.
9890 * frame.h (Qnoelisp): Declare.
9891 * xterm.c (x_connection_closed): Pass `noelisp'.
9892
9893 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
9894 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
9895 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
9896 rather than `int' for the type of `type'.
9897
98982008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
9899
9900 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
9901
9902 * Makefile.in (GNUC): Remove support for gcc-1.x.
9903
99042008-02-10 Richard Stallman <rms@gnu.org>
9905
9906 * lisp.h (ASET): Use AREF, not ASLOT.
9907
99082008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
9909
9910 * lisp.h (ASET): Check bounds.
9911
99122008-02-10 Glenn Morris <rgm@gnu.org>
9913
9914 * buffer.c (mode-name): Doc fix.
9915
99162008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
9917
9918 * Makefile.in:
9919 * emacs.c:
9920 * gmalloc.c:
9921 * keyboard.c:
9922 * lisp.h:
9923 * m/ibm370aix.h:
9924 * process.c:
9925 * regex.c:
9926 * s/hpux.h:
9927 * sysdep.c:
9928 * sysselect.h:
9929 * systty.h:
9930 * unexec.c:
9931 * w32term.c:
9932 * xsmfns.c:
9933 * xterm.c: Remove code that deals with obsolete variables.
9934
9935 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
9936
9937 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
9938 nothing else needs it anymore.
9939
99402008-02-09 Eli Zaretskii <eliz@gnu.org>
9941
9942 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
9943 instead of unibyte_char_to_multibyte.
9944
99452008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
9946
9947 * s/gnu-linux.h: Remove commented out code.
9948
9949 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
9950
9951 * Makefile.in: Update what RMS says about using autoconf.
9952 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
9953 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
9954 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
9955 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
9956
99572008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
9958
9959 * keymap.c (Fkey_description): Move side effect outside of macro call.
9960
9961 * xfaces.c (Finternal_make_lisp_face):
9962 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
9963
9964 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
9965 (syms_of_fontset): Use ASET.
9966
9967 * fns.c (concat): Move side effect outside of macro call.
9968 (hash_clear): Use ASET.
9969
99702008-02-08 Richard Stallman <rms@gnu.org>
9971
9972 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
9973 If FORCE, and frame has a surrogate minibuffer for another frame,
9974 delete the other frame first.
9975
99762008-02-07 Timo Savola <timo.savola@iki.fi>
9977
9978 * xterm.c (x_detect_focus_change): Handle embed client message.
9979 (handle_one_xevent): Ditto.
9980 (handle_one_xevent): If embedded and we get a button press/release,
9981 request focus.
9982 (xembed_set_info, xembed_send_message): New functions.
9983 (x_make_frame_visible): Call xembed_set_info if embedded.
9984 (x_make_frame_invisible): Call xembed_set_info if embedded.
9985 (x_term_init): Initialize Xatom_XEMBED.
9986 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
9987 (x_iconify_frame): Ditto.
9988
9989 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
9990 (enum xembed_info, enum xembed_message, enum xembed_focus)
9991 (enum xembed_modifier, enum xembed_accelerator): New.
9992 (xembed_set_info, xembed_send_message): Declare.
9993 (FRAME_X_EMBEDDED_P): New.
9994
9995 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
9996 gtk_plug_new.
9997
9998 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
9999 window ID of a frame.
10000 (x_window): Reparent frame if embedded.
10001 (Fx_create_frame): Don't set border width if embedded.
10002
10003 * emacs.c (USAGE3): Add --parent-id.
10004 (standard_args): Ditto.
10005
100062008-02-07 Jan Djärv <jan.h.d@swipnet.se>
10007
10008 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
10009
100102008-02-07 Jim Meyering <meyering@redhat.com>
10011
10012 Use "do...while (0)", not "if (1)...else" in macro definitions.
10013 The latter provokes a warning from gcc about the empty else, when
10014 followed by ";". Also, without that trailing semicolon, it would
10015 silently swallow up any following statement.
10016 * syntax.h (SETUP_SYNTAX_TABLE)
10017 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
10018 * buffer.h (DECODE_POSITION): Likewise.
10019 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
10020 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
10021 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
10022 (FETCH_CHAR_ADVANCE): Likewise.
10023 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
10024
100252008-02-07 Jim Meyering <meyering@redhat.com>
10026
10027 * lread.c [lint]: Don't include <sys/inode.h>.
10028
100292008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
10030
10031 * xselect.c (x_handle_dnd_message):
10032 * xmenu.c (digest_single_submenu, xmenu_show):
10033 * xdisp.c (with_echo_area_buffer_unwind_data)
10034 (format_mode_line_unwind_data, unwind_format_mode_line)
10035 (display_menu_bar):
10036 * eval.c (Ffetch_bytecode):
10037 * doc.c (store_function_docstring):
10038 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
10039 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
10040 * buffer.c (add_overlay_mod_hooklist): Use ASET.
10041
100422008-02-07 Kenichi Handa <handa@m17n.org>
10043
10044 * ftxfont.c (ftxfont_open): Don't set
10045 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
10046
10047 * ftfont.c (ftfont_open): Fix previous change.
10048
100492008-02-06 Jason Rumney <jasonr@gnu.org>
10050
10051 * w32font.c (w32font_text_extents): Fill in lbearing metric.
10052 Use cached metrics for ASCII characters.
10053 (w32font_open_internal): Don't set font's owning_frame.
10054 Cache metrics for ASCII characters.
10055
10056 * w32font.h (struct w32font_info): Add ascii_metrics.
10057 Remove owning_frame.
10058
100592008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
10060
10061 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
10062 to negative value.
10063
10064 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
10065
10066 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
10067
10068 * charset.c (syms_of_charset): Set QCtest and Qeq.
10069
100702008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
10071
10072 * process.c (Fstart_process):
10073 * callproc.c (Fcall_process): Handle the case where
10074 Funhandled_file_name_directory returns nil.
10075
10076 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
10077 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
10078 * font.c (check_gstring): Use them and AREF to access the vector before
10079 we know it's really a gstring.
10080 (Ffont_shape_text): Fix typo.
46e722a9 10081 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
10082
10083 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
10084 Declare.
10085
10086 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
10087
100882008-02-05 Jason Rumney <jasonr@gnu.org>
10089
10090 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
10091 Set smallest_font_height and smallest_char_width in display info.
10092
100932008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
10094
10095 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
10096
100972008-02-05 Miles Bader <miles@gnu.org>
10098
10099 * xfaces.c (get_lface_attributes, merge_named_face)
10100 (lookup_named_face, lookup_derived_face, realize_named_face):
10101 Revert 2008-02-01 change by cyd@stupidchicken.com.
10102
101032008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
10104
10105 * fontset.c (Ffontset_info): Handle the case of inhibitting the
10106 fallback fonts.
10107 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
10108
101092008-02-04 Jason Rumney <jasonr@gnu.org>
10110
10111 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
10112 set full_name.
10113 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
10114
101152008-02-03 Jason Rumney <jasonr@gnu.org>
10116
10117 * makefile.w32-in (OBJ1): Include font.o here.
10118 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
10119
101202008-02-02 Jason Rumney <jasonr@gnu.org>
10121
10122 * makefile.w32-in (temacs): Bump EMHEAP to 21.
10123
101242008-02-01 Jason Rumney <jasonr@gnu.org>
10125
10126 * s/cygwin.h: Define VIRT_ADDR_VARIES.
10127
10128 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
10129
101302008-02-01 Andreas Schwab <schwab@suse.de>
10131
10132 * Makefile.in (shortlisp, lisp): Update for rename of
10133 ../lisp/language/myanmar.el.
10134
101352008-02-01 Chong Yidong <cyd@stupidchicken.com>
10136
10137 * xfaces.c (get_lface_attributes): Delete function.
10138 (merge_named_face, lookup_named_face, lookup_derived_face)
10139 (realize_named_face): Call lface_from_face_name directly, and use
10140 the fact that merge_face_vectors does not alter its FROM argument.
10141
101422008-02-01 Jason Rumney <jasonr@gnu.org>
10143
10144 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
10145 input in the default locale. Handle non-Unicode multibyte input.
10146
101472008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10148
10149 * fontset.c (reorder_font_vector): Exclude nil elements from the
10150 font group. Don't try multiple fonts.
10151 (fontset_font): Adjust for the above change.
10152 (Finternal_char_font): Return nil if the found font doesn't
10153 contain the character ch.
10154
10155 * Makefile.in (lisp, shortlisp): Add cham.el.
10156
101572008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10158
10159 * font.h (FONTP): Make it return 1 also for a font-object.
10160
10161 * .gdbinit (xfontset): New function.
10162
10163 * font.c (font_find_for_lface): Check if the character C is
10164 supported or not only for the first font.
10165
10166 * fontset.c (reorder_font_vector): Fix typo.
10167 (fontset_find_font): Don't add a font-spec specifying a script.
10168 Use 0 (not Qt) for the indication of empty font-group. Change the
10169 format of RFONT-DEF. Return Qt if no font in the font-group
10170 support the character.
10171 (fontset_font): Adjust for the above change. If no font was
10172 found the character, remember that.
10173 (face_for_char): Adjust for the change of RFONT-DEF.
10174 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
10175 no font for the target.
10176 (Finternal_char_font): Adjust for the change of RFONT-DEF.
10177
101782008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10179
10180 * font.c (font_load_for_face): Handle the case that the font in
10181 face->lface is a string.
10182
101832008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10184
10185 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
10186
101872008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10188
10189 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
10190 Fix previous change. If the frame is not on a window system,
10191 signal an error.
10192
101932008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10194
10195 * coding.c (decode_coding_object, encode_coding_object): Adjust
10196 marker positions after conversion.
10197
10198 * lisp.h (struct Lisp_Marker): New member need_adjustment.
10199
102002008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10201
10202 * font.c (font_find_for_lface): Fix the handling of the return
10203 value of font_has_char.
10204 (Ffont_shape_text): Fix previous change.
10205
10206 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
10207 (fontset_ref_and_range): Delete it.
10208 (fontset_find_font): Call char_table_ref_and_range instead of
10209 FONTSET_REF_AND_RANGE.
10210 (make_fontset): Don't setup font groups of Latin here.
10211 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
10212 (new_fontset_from_font): Make the specified font the default for
10213 all Latin characters.
10214
102152008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10216
10217 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
10218 is on a window system before accessing the fontset of the frame.
10219
102202008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10221
10222 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
10223
10224 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
10225 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
10226
10227 * font.c (Ffont_shape_text): If the font driver doesn't have a
10228 shaper function, make zero-width glyphs to have at least one-pixel
10229 width. Fix setting of `to' field of glyphs.
10230
102312008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10232
10233 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
10234 glyphs.
10235
10236 * font.h (struct font_driver): Improve docstring of member `shape'.
10237
102382008-02-01 Kenichi Handa <handa@m17n.org>
10239
10240 * composite.c (syms_of_composite): Fix docstring of
10241 auto-composition-function.
10242
10243 * font.h (LGLYPH_SIZE): New macro.
10244
10245 * font.c (Ffont_fill_gstring): Stop filling when a character not
10246 supported by the font is found.
10247 (Ffont_shape_text): When a shape callback function returns nil,
10248 try at most two more times with larger gstring.
10249 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
10250
10251 * xdisp.c (handle_auto_composed_prop): Change the argument to
10252 auto-composition-function.
10253
10254 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
10255 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
10256 Lispy glyph and store it in the lgstring.
10257
10258 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
10259
10260 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
10261
102622008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10263
10264 * font.c (Ffont_shape_text): Avoid unnecessary composition.
10265
10266 * fontset.c (Vfont_encoding_charset_alist): New variable.
10267 (syms_of_fontset): DEFVAR it.
10268 (reorder_font_vector, fontset_find_font): Optimize for the case of
10269 no need of reordering.
10270 (face_for_char): Map the charset property by
10271 Vfont_encoding_charset_alist.
10272
102732008-02-01 Jason Rumney <jasonr@gnu.org>
10274
10275 * w32font.c (logfonts_match): Don't check adstyle here.
10276 (font_matches_spec): Check here against physical font instead.
10277 (add_font_entity_to_list): Avoid some substitutions.
10278
10279 * font.c (font_parse_fcname): Default weight and slant to normal.
10280 (font_score): Prefer normal fonts if weight or slant unspecified.
10281 (font_score) [WINDOWSNT]: Scale weight difference down to closer
10282 match freetype scores.
10283
102842008-02-01 Jason Rumney <jasonr@gnu.org>
10285
10286 * w32font.c (w32font_text_extents): Don't use the frame stored in the
10287 font, as it may have been deleted.
10288 (w32_enumfont_pattern_entity): Map generic family to adstyle using
10289 most common hyphenless variation.
10290 (logfonts_match): Check generic family.
10291 (font_matches_spec): Don't check generic family here.
10292 (fill_in_logfont): Set generic family based on adstyle.
10293
10294 * w32font.h (w32font_get_cache): Update declaration.
10295
102962008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10297
10298 * ftfont.c (ftfont_get_cache): Adjust the argument type.
10299
10300 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
10301 If none of the new drivers are available, call font_update_drivers
10302 with the old drivers.
10303
10304 * w32font.c (w32font_get_cache): Adjust the argument type.
10305
10306 * xfont.c (xfont_get_cache): Adjust the argument type.
10307
10308 * font.h (struct font_driver): Change argument type of get_cache.
10309
10310 * xftfont.c (xftfont_start_for_frame): Delete prototype.
10311
10312 * font.c (Ffont_get): Fix arguments to Fassoc.
10313 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
10314 (font_clear_cache): New function.
10315 (font_list_entities, font_matching_entity): Use font_get_cache.
10316 (font_update_drivers): Call font_clear_cache when finishing a driver.
10317
10318 * fontset.c (fontset_find_font): Fix previous change.
10319
103202008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10321
10322 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
10323 dpyinfo->font_table.
10324 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
10325 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
10326
10327 * font.c (font_at): Handle the case that the arg C is negative.
10328 Handle the unibyte case.
10329 (Ffont_at): Call font_at with the arg C -1.
10330
10331 * xdisp.c (handle_auto_composed_prop): Don't get a character at
10332 the position here, and call font_at with the arg C -1.
10333 Don't check the range of the existing composition at the point.
10334
103352008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10336
10337 * fontset.c (fontset_add): New args charset_id and family.
10338 Change caller.
10339 (load_font_get_repertory, fontset_find_font): Assume that
10340 font_spec is always a font-spec object.
10341 (Fset_fontset_font): Always store a font-spec object in a fontset.
10342
10343 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
10344 instead of get_property_and_range.
10345
103462008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10347
10348 * xftfont.c (struct xftfont_info): Delete the member ft_face.
10349 (xftfont_open): Don't keep locking face.
10350 (xftfont_close): Don't unlock face.
10351 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
10352
10353 * fontset.c (fontset_find_font): Don't prefer a font of
10354 supplementary charset.
10355
103562008-02-01 Kenichi Handa <handa@m17n.org>
10357
10358 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
10359 script, langsys_tag to langsys, new member script.
10360 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 10361 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
10362 listing to the script specified in that property. Fix arg to
10363 OTF_check_features.
10364
103652008-02-01 Jason Rumney <jasonr@gnu.org>
10366
10367 * w32font.h: New file.
10368
10369 * w32font.c: Include it.
10370 (struct w32font_info): Add owning_frame field. Move to w32font.h.
10371 (w32font_open): Set owning_frame.
10372 (w32font_text_extents): Use owning_frame.
10373 (struct font_callback_data): Add opentype_only field.
10374 (add_font_entity_to_list): Use it to filter fonts.
10375 Don't check against full name.
10376 (w32font_list_internal): New function.
10377 (w32font_list): Use it.
10378 (w32font_match_internal): New function.
10379 (w32font_match): Use it.
10380 (w32font_open_internal): New function.
10381 (w32font_open): Use it.
10382 (w32font_get_cache, w32font_close, w32font_has_char)
10383 (w32font_encode_char, w32font_text_extents, w32font_draw):
10384 Make non-static.
10385
10386 * makefile.w32-in (w32font.o): Depend on w32font.h.
10387
103882008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10389
10390 * charset.c (Fdefine_charset_internal): Record a supplementary
10391 charset at the tail of Vcharset_order_list.
10392
10393 * font.c (Ffont_shape_text): Fix the return value.
10394
10395 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
10396
10397 * xdisp.c (handle_auto_composed_prop): Fix previous change.
10398
103992008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10400
10401 * ftfont.c (struct OpenTypeSpec): New struct.
10402 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
10403 (ftfont_get_open_type_spec): New function.
10404 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
10405
10406 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
10407
104082008-02-01 Jason Rumney <jasonr@gnu.org>
10409
10410 * w32font.c (add_font_entity_to_list): Compare only the beginning
10411 of full name.
10412
104132008-02-01 Kenichi Handa <handa@m17n.org>
10414
10415 * xdisp.c (handle_auto_composed_prop): Simplify the code.
10416 Never return HANDLED_RECOMPUTE_PROPS.
10417
104182008-02-01 Kenichi Handa <handa@m17n.org>
10419
10420 * font.c (font_gstring_produce): Delete it.
10421
10422 * composite.h (COMPOSITION_METHOD):
10423 Handle COMPOSITION_WITH_GLYPH_STRING.
10424
104252008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10426
10427 * xfont.c (Qx): Delete.
10428 (syms_of_xfont): Don't initialize Qx.
10429
10430 * composite.h (enum composition_method):
10431 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
10432
104332008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10434
10435 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
10436 (choose_face_font): Accept new form of font-spec.
10437
10438 * frame.h (font_driver_list): Declare it unconditionally.
10439 (struct frame): Define members font_driver_list and font_data_list
10440 unconditionally.
10441
10442 * fontset.c: Include "font.h" unconditionally.
10443 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
10444 (Fset_fontset_font): Accept a font-spec object.
10445
10446 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
10447 PIXEL_SIZE part a wild card.
10448
10449 * dispextern.h (struct glyph_string): Define members clip and
10450 num_clips unconditionally.
10451 (struct face): Define members font_info and extra unconditionally.
10452
10453 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
10454 ftfont_info only when HAVE_LIBOTF is defined.
10455
104562008-02-01 Andreas Schwab <schwab@suse.de>
10457
10458 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
10459 and end.
10460
104612008-02-01 Jason Rumney <jasonr@gnu.org>
10462
10463 * w32font.c (w32font_driver): Add new fields.
10464
104652008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10466
10467 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
10468 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
10469 (LIBES): Add @M17N_FLT_CFLAGS@.
10470
10471 * composite.c (compose_text): Don't treat the new style
10472 composition specially.
10473
10474 * emacs.c (main): Call syms_of_font unconditionally.
10475
10476 * font.h (FONT_ENTITY_NOT_LOADABLE)
10477 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
10478 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
10479 (struct font_driver): New member shape.
10480 (font_registry_charsets): Extern it.
10481 (font_find_for_lface, font_prepare_composition): Adjust prototype.
10482 (font_otf_capability, font_drive_otf): Delete their externs.
10483
10484 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
10485 (font_charset_alist, font_registry_charsets): Move from xfont.c
10486 and rename.
10487 (font_prop_validate_otf): New function.
10488 (font_property_table): Register it for QCotf.
10489 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
10490 (font_drive_otf): Delete.
10491 (font_prepare_composition): New arg F. Adjust for the change of
10492 lispy gstring.
10493 (font_find_for_lface): New arg C.
10494 (font_load_for_face): Adjust for the change of font_find_for_lface.
10495 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
10496 lispy gstring.
10497 (Ffont_shape_text): New function.
10498 (Fopen_font): If the font size is not given, use 12-pixel.
10499 (Ffont_at): New arg STRING.
10500 (syms_of_font): Initalize font_charset_alist.
10501 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
10502 conditionally.
10503
10504 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
10505 fonts of the same font-spec. Change the format of RFONT-DEF.
10506 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
10507 Adjust for the change of RFONT-DEF.
10508 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
10509
10510 * ftfont.h: New file.
10511
10512 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
10513 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
10514 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
10515 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
10516 font_otf_capability and font_drive_otf, set ftfont_shape.
10517 (ftfont_list): Adjust for the change of :otf property value.
10518 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
10519 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
10520 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
10521 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
10522 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
10523 (otf_gstring, gstring, m17n_flt_initialized): New variables.
10524
10525 * w32term.c (x_draw_composite_glyph_string_foreground):
10526 Adjust for the change of lispy gstring.
10527
10528 * xdisp.c (handle_composition_prop): Adjust for the change of
10529 lispy gstring. Call a function for auto-composition with the
10530 third arg it->window.
10531 (fill_composite_glyph_string): Adjust for the change of lispy string.
10532 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
10533
10534 * xfaces.c (set_font_frame_param): Adjust for the change of
10535 font_find_for_lface.
10536
10537 * xfont.c (x_font_charset_alist): Move to font.c and rename.
10538 (xfont_registry_charsets): Likewise. Change caller.
10539 (syms_of_xfont): Don't handle x_font_charset_alist.
10540
10541 * xftfont.c: Include "ftfont.h".
10542 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
10543 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
10544 (xftfont_close) [HAVE_LIBOTF]: Close otf.
10545 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
10546 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
10547 Set xftfont_driver.shape to xftfont_shape.
10548
10549 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
10550 the change of lispy gstring.
10551
105522008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10553
10554 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
10555
105562008-02-01 Jason Rumney <jasonr@gnu.org>
10557
10558 * w32font.c (w32font_draw): Fill background manually.
10559
105602008-02-01 Jason Rumney <jasonr@gnu.org>
10561
10562 * font.c (Qfontp): Remove unused symbol.
10563 (QCantialias): New symbol.
10564 (syms_of_font): Define it.
10565 (font_property_table): Set a validator for QCantialias.
10566
10567 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
10568 Define if not already.
10569 (QCfamily): Share with xfaces.c.
10570 (Qstandard, Qsubpixel, Qnatural): New symbols.
10571 (syms_of_w32font): Define them. Don't define QCfamily here.
10572 (w32_antialias_type, lispy_antialias_type): New functions.
10573 (w32_enumfont_pattern_entity): New arg requested_font.
10574 Set antialias parameter if non-default was requested.
10575 (fill_in_logfont): Fill in lfQuality if :antialias specified.
10576
105772008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10578
10579 * lread.c (read1): Undo the previous change.
10580
105812008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
10582
10583 * frame.c (Fdelete_frame): Call font_update_drivers only when
10584 USE_FONT_BACKEND is defined.
10585
105862008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10587
10588 * font.h (struct font_bitmap): New member bits_per_pixel.
10589 (struct font_driver): New members start_for_frame and end_for_frame.
10590 (struct font_data_list): New struct.
10591 (font_put_frame_data, font_get_frame_data): Extern them.
10592
10593 * frame.h (struct frame): New member font_data_list.
10594
10595 * font.c (font_update_drivers): Call driver->start_for_frame and
10596 driver->end_for_frame at proper timings.
10597 (font_put_frame_data, font_get_frame_data): New functions.
10598 (Ffont_spec): Add usage in the docstring.
10599
10600 * frame.c (make_frame): Initialize f->font_data_list to NULL.
10601 (Fdelete_frame): Call font_update_drivers.
10602
10603 * xftfont.c (struct xftface_info): Delete the member xft_draw.
10604 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
10605 (xftfont_get_xft_draw): New function.
10606 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
10607 (xftfont_end_for_frame): New function.
10608 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
10609
10610 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
10611 Change argument. Cache GCs in the per-frame data.
10612 (struct ftxfont_frame_data): New struct.
10613 (ftxfont_draw_bitmap): New arg gc_fore and flush.
10614 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
10615 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
10616 (ftxfont_end_for_frame): New function.
10617 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
10618
10619 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
10620
106212008-02-01 Kenichi Handa <handa@m17n.org>
10622
10623 * xselect.c (Vselection_coding_system)
10624 (Vnext_selection_coding_system): Delete them.
10625 (syms_of_xselect): Don't declare selection-coding-system and
10626 next-selection-coding-system. They are declared in select.el.
10627
106282008-02-01 Jason Rumney <jasonr@gnu.org>
10629
10630 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
10631
10632 * w32fns.c: Include imm.h.
10633 (get_composition_string_fn, get_ime_context_fn): New optional
10634 system functions.
10635 (globals_of_w32fns): Load them from imm32.dll.
10636 (ignore_ime_char): New flag.
10637 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
10638 WM_IME_ENDCOMPOSITION messages.
10639
10640 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
10641 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
10642
106432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10644
10645 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
10646 (READCHAR_REPORT_MULTIBYTE): New macro.
10647 (readchar): New 2nd arg MULTIBYTE.
10648 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
10649 Make symbol's name multibyte according to the multibyteness of the
10650 source.
10651
106522008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10653
10654 * xfaces.c (face_for_overlay_string): Call lookup_face with
10655 correct arguments (fix of synching with the trunk).
10656
106572008-02-01 Kenichi Handa <handa@m17n.org>
10658
10659 * font.c (font_prop_validate_symbol, font_prop_validate_style)
10660 (font_prop_validate_non_neg, font_prop_validate_spacing):
10661 Delete argument prop_index.
10662 (font_property_table): Change arguments to validater. Change Callers.
10663 (font_lispy_object): Delete.
10664 (font_at): Use font_find_object instead fo font_lispy_object.
10665
106662008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10667
10668 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
10669 and file names.
10670
106712008-02-01 Jason Rumney <jasonr@gnu.org>
10672
10673 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
10674 (font_matches_spec): Remove debug output.
10675 (add_font_entity_to_list): Avoid using substituted fonts.
10676
106772008-02-01 Jason Rumney <jasonr@gnu.org>
10678
10679 * doc.c (Fsnarf_documentation):
10680 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
10681
106822008-02-01 Miles Bader <miles@gnu.org>
10683
10684 * dispextern.h (struct glyph_row): Only define "clip" field if
10685 HAVE_WINDOW_SYSTEM is defined.
10686
106872008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
10688
10689 Fix up multi-tty merge.
10690
10691 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
10692 and indentation.
10693
10694 * xfaces.c (free_realized_face, clear_face_gcs):
10695 Include font_done_for_face in the input_blocked section, just in case.
10696
10697 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
10698 (get_char_face_and_encoding): Undo last change and remove the *other*
10699 duplicate definition (i.e. keep the one that's better scoped and that
10700 includes code for the font-backend).
10701
10702 * terminal.c (create_terminal): Default keyboard_coding to
10703 `no-conversion' and terminal_coding to `undecided'.
10704
10705 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
10706
10707 * fontset.c (free_realized_fontsets): Check that the table entry does
10708 contain a fontset before trying to compare it to `base'.
10709
10710 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
10711 syms_of_charset, and syms_of_coding earlier because init_window_once
10712 now needs Vcoding_system_hash_table to be setup.
10713
10714 * coding.h (default_buffer_file_coding): Remove.
10715
10716 * coding.c (default_buffer_file_coding): Remove.
10717 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
10718 than ->symbol, and use the terminal-local coding system.
10719 (syms_of_coding): Don't setup the coding-systems that are not
10720 terminal-local.
10721 (Fdefine_coding_system_internal): Use XCAR/XCDR.
10722
10723 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
10724 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
10725
10726 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
10727 in chartab.c and were re-added here by mistake.
10728 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
10729
10730 * doc.c (Fsnarf_documentation):
10731 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
10732 src to etc.
10733
10734 * ChangeLog.10: Add mistakenly removed entry.
10735
107362008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
10737
10738 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
10739
107402008-02-01 Miles Bader <miles@gnu.org>
10741
10742 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
10743 Add extra args to FACE_FOR_CHAR.
10744
107452008-02-01 Kenichi Handa <handa@m17n.org>
10746
10747 * keymap.c (where_is_internal_1): If key is a cons, store the copy
10748 in sequence.
10749
10750 * chartab.c (map_sub_char_table, map_char_table): If the range
10751 contains just one character, call the function with that character
10752 even if the depth is not 3.
10753
107542008-02-01 Jason Rumney <jasonr@gnu.org>
10755
10756 * w32font.c (w32font_text_extents): Calculate metrics for the
10757 whole string.
10758
107592008-02-01 Jason Rumney <jasonr@gnu.org>
10760
10761 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
10762
107632008-02-01 Jason Rumney <jasonr@gnu.org>
10764
10765 * w32term.c (x_set_glyph_string_clipping): Use
10766 get_glyph_string_clip_rects.
10767 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
10768 Adjust for the change of struct glyph_string.
10769
10770 * w32font.c (w32font_draw): Do clipping here.
10771
107722008-02-01 Kenichi Handa <handa@m17n.org>
10773
10774 * xftfont.c (xftfont_draw): Adjust for the change of struct
10775 glyph_string.
10776
10777 * xterm.c (x_set_glyph_string_clipping): Use
10778 get_glyph_string_clip_rects.
10779 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
10780 Adjust for the change of struct glyph_string.
10781
10782 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
10783 the resulting clip(s}.
10784 (expose_overlaps): Add arg r. Change callers. Set it to
10785 row->clip temporarily.
10786 (expose_window): Redraw rows overlapping the exposed area.
10787
10788 * dispextern.h (struct glyph_row): New member clip.
10789 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
10790 clip_height, new member clip, and num_clips.
10791
107922008-02-01 Kenichi Handa <handa@m17n.org>
10793
10794 * data.c (Fchar_or_string_p): Fix docstring.
10795
107962008-02-01 Kenichi Handa <handa@m17n.org>
10797
10798 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
10799 create a temporary XftDraw object.
10800
108012008-02-01 Kenichi Handa <handa@m17n.org>
10802
10803 * font.c (Ffontp): Fix docstring.
10804
10805 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
10806 strong evidence of ISO-2022.
10807
108082008-02-01 Kenichi Handa <handa@m17n.org>
10809
10810 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
10811 SYNTAX_ENTRY_FOLLOW_PARENT.
10812
108132008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
10814
10815 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
10816 its type.
10817 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
10818 Update to the new type of weak_hash_tables and next_weak.
10819
10820 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
10821 a plain C pointer to Lisp_Hash_Table.
10822
10823 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
10824 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
10825 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
10826 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
10827 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
10828 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
10829 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
10830 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
10831 (GC_EQ): Remove since they've been identical to their non-GC_
10832 alter-egos ever since the markbit was eradicated.
10833
10834 * alloc.c:
10835 * buffer.c:
10836 * buffer.h:
10837 * data.c:
10838 * fileio.c:
10839 * filelock.c:
10840 * fns.c:
10841 * frame.h:
10842 * lisp.h:
10843 * macterm.c:
10844 * print.c:
10845 * process.c:
10846 * w32fns.c:
10847 * w32menu.c:
10848 * w32term.c:
10849 * xfns.c:
10850 * xmenu.c:
10851 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
10852
108532008-02-01 Kenichi Handa <handa@m17n.org>
10854
10855 * chartab.c (map_sub_char_table): Make it work for the top-level
10856 char-table. Fix handling of parent char-table.
10857 (map_char_table): Adjust for the above change.
10858
108592008-02-01 Jason Rumney <jasonr@gnu.org>
10860
10861 * w32font.c (Qgdi): Rename from Qw32.
10862
108632008-02-01 Jason Rumney <jasonr@gnu.org>
10864
10865 * w32bdf.c (get_quoted_string): Make function static.
10866
108672008-02-01 Kenichi Handa <handa@m17n.org>
10868
10869 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
10870 bigger ascent and descent than those of the font, use them as
10871 font's ascent and descent.
10872
108732008-02-01 Kenichi Handa <handa@m17n.org>
10874
10875 * Makefile.in (${lispsource}international/charprop.el): Move this
10876 target within "#ifdef HAVE_UNIDATA" and "#endif".
10877
108782008-02-01 Kenichi Handa <handa@m17n.org>
10879
10880 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
10881 (shortlisp): Add ../lisp/language/tai-viet.el.
10882
108832008-02-01 Ulrich Mueller <ulm@gentoo.org>
10884
10885 * Makefile.in (${lispsource}international/charprop.el): Depend on
10886 temacs${EXEEXT}.
10887
108882008-02-01 Jason Rumney <jasonr@gnu.org>
10889
10890 * w32font.c (w32font_close): Delete the GDI font object.
10891
10892 * w32menu.c: Include character.h.
10893
10894 * w32proc.c: Likewise.
10895
10896 * w32select.c: Likewise.
10897
10898 * makefile.w32-in (w32proc.o): Depend on character.h.
10899
109002008-02-01 Jason Rumney <jasonr@gnu.org>
10901
10902 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
10903
10904 * w32menu.c (syms_of_w32menu): Likewise.
10905
10906 * w32proc.c (syms_of_ntproc): Likewise.
10907
10908 * w32select.c (syms_of_w32select): Likewise.
10909
10910 * w32term.c (syms_of_w32term): Likewise.
10911
109122008-02-01 Jason Rumney <jasonr@gnu.org>
10913
10914 * w32font.c (w32font_draw): Delete brush after using it.
10915
109162008-02-01 Jason Rumney <jasonr@gnu.org>
10917
10918 * w32font.c (w32font_open): Don't set font_idx.
10919 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
10920 to font settings.
10921 (w32font_draw): Fill background explicitly.
10922
109232008-02-01 Jason Rumney <jasonr@gnu.org>
10924
10925 * w32term.c (w32_initialize): Don't call w32font_initialize.
10926
10927 * w32font.c (w32font_info): Remove subranges.
10928 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
10929 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
10930 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
10931 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
10932 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
10933 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
10934 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
10935 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
10936 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
10937 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
10938 New symbols.
10939 (font_callback_data): New struct.
10940 (w32font_list, w32font_match): Use it.
10941 (w32font_open): Don't populate subranges.
10942 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
10943 (w32font_encode_char): Always return unicode code-point as-is.
10944 (w32font_text_extents): Supply a transformation matrix to
10945 GetGlyphOutline. Never look up by glyph index. Avoid looping
10946 twice. Use unicode version of GetTexExtentPoint32 instead of
10947 glyph index version.
10948 (set_fonts_frame): Remove.
10949 (w32_enumfont_pattern_entity): Add frame parameter, use it to
10950 set frame parameter. Use backward compatible fake foundries.
10951 Save generic family in extra slot under QCfamily. Make width slot
10952 constant. Save QCspacing value. Save list of scripts instead of
10953 binary subranges.
10954 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
10955 (add_font_entity_to_list): Use font_callback_data struct. Filter
10956 unwanted fonts.
10957 (add_one_font_entity_to_list): Use font_callback_data struct.
10958 (w32_registry): Default to iso10646_1.
10959 (fill_in_logfont): Use dpi from extra slot. Don't bother with
10960 string font registries. Don't fill in font name if it is a generic
10961 family name, fill family instead. Use spacing, family and script
10962 extra info to fill pitch, family and charset fields.
10963 (list_all_matching_fonts): Use font_callback_data struct.
10964 (unicode_range_for_char): Remove.
10965 (font_supported_scripts): New function.
10966 (w32font_initialize): Remove.
10967 (syms_of_w32font): Update which symbols are defined.
10968
109692008-02-01 Jason Rumney <jasonr@gnu.org>
10970
10971 * font.c (font_pixel_size): Reverse assq_no_quit args.
10972
10973 * w32term.h (FONT_WIDTH): Report max width, not average.
10974 (FONT_MAX_WIDTH): Remove.
10975 (FONT_AVG_WIDTH): New macro.
10976
10977 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
10978 redefinition of FONT_WIDTH.
10979
10980 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
10981 (w32_cache_char_metrics): Use FONT_WIDTH.
10982
10983 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
10984
109852008-02-01 Jason Rumney <jasonr@gnu.org>
10986
10987 * w32font.c (w32font_open): Make lfHeight negative.
10988
10989 * w32fns.c (x_default_font_parameter): Use new style font name.
10990 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
10991
109922008-02-01 Jason Rumney <jasonr@gnu.org>
10993
10994 * w32font.c (QCsubranges): New symbol.
10995 (w32font_open, w32font_has_char): Get subranges from subproperty
10996 of extra.
10997 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
10998 (syms_of_w32font): Define :subranges symbol.
10999
11000 * font.c (font_put_extra): Expose externally.
11001
11002 * font.h (font_put_extra): Move declaration from font.c.
11003
11004 * font.c (Ffont_get): Use font driver to determine otf capability.
11005 (adjust_anchor): Check if driver defines anchor_point before using.
11006
11007 * w32font.c (w32font_open): Handle size, height and pixel_size better.
11008 (w32font_draw): Use options.
11009 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
11010 Fix detection of truetype fonts.
11011 (registry_to_w32_charset): Handle charsets other than iso8859-1
11012 expressed as lisp symbols.
11013 (w32_registry): Express charset as lisp symbol.
11014 (fill_in_logfont): Reverse pixel and point height logic.
11015 Don't set width here. Set quality to default.
11016
11017 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
11018 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
11019
11020 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
11021 Remove redundant loop and allocation.
11022
11023 * makefile.w32-in (font.o, w32font.o): New objects.
11024 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
11025 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
11026
11027 * xdisp.c (fill_composite_glyph_string): Make the first arg to
11028 STORE_XCHARB a valid l-value.
11029
11030 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
11031 calculations for non-Truetype fonts.
11032 (x_draw_glyph_string): Sync with xterm.c.
11033 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
11034 Remove redundant code.
11035 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
11036
11037 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
11038 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
11039
11040 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
11041 (x_to_w32_charset, w32_to_x_charset): Expose externally.
11042
11043 * w32font.c: New file for w32 font backend.
11044
110452008-02-01 Kenichi Handa <handa@m17n.org>
11046
11047 * term.c: Don't include "buffer.h" twice.
11048
110492008-02-01 Kenichi Handa <handa@m17n.org>
11050
11051 * character.c (Funibyte_string): New function.
11052 (syms_of_character): Defsubr it.
11053
110542008-02-01 Jason Rumney <jasonr@gnu.org>
11055
11056 * w32term.c [USE_FONT_BACKEND]:
11057 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
11058 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
11059 (x_draw_glyph_string, x_draw_glyph_string_foreground)
11060 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
11061 (x_free_frame_resources): Sync with xterm.c.
11062
110632008-02-01 Andreas Schwab <schwab@suse.de>
11064
11065 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
11066 char-table size.
11067
110682008-02-01 Kenichi Handa <handa@m17n.org>
11069
11070 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
11071
110722008-02-01 Kenichi Handa <handa@m17n.org>
11073
11074 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
11075 font_otf_gpos, add font_drive_otf.
11076
11077 * fontset.c (fontset_find_font): Pay attention to font size
11078 specified for a font.
11079 (reorder_font_vector): Check contents of font_def.
11080
11081 * font.c (struct otf_list): Delete it.
11082 (otf_list): Make it a lisp variable.
11083 (otf_open): Use lispy otf_list.
11084 (generate_otf_features): Rename from parse_gsub_gpos_spec.
11085 (check_otf_features): New function.
11086 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
11087 New functions.
11088 (font_drive_otf): New function merging font_otf_gsub and
11089 font_otf_gpos.
11090 (font_open_for_lface): New arg spec. Change argument order.
11091 (font_load_for_face): Adjust for the change of font_open_for_lface.
11092 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
11093 Ffont_otf_gpos.
11094 (syms_of_font): Staticpro otf_list. Delete defsubr of
11095 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
11096
11097 * xfaces.c (set_font_frame_param): Adjust for the change of
11098 font_open_for_lface.
11099
11100 * font.h (font_open_for_lface): Adjust prototype.
11101 (struct font_driver): Delete members otf_gsub and otf_gpos, add
11102 member otf_drive.
11103 (font_otf_gsub, font_otf_gpos): Delete externs.
11104 (font_drive_otf): Extern it.
11105
111062008-02-01 Kenichi Handa <handa@m17n.org>
11107
11108 * font.c (font_at): If the window W is not on a window system,
11109 return Qnil.
11110
11111 * coding.c (produce_chars, encode_coding): Don't call
11112 insert_from_gap if no characters to produce.
11113
111142008-02-01 Kenichi Handa <handa@m17n.org>
11115
11116 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
11117 Fclear_face_cache.
11118
11119 * xfaces.c (face_for_font): Check also face->font==font->font.font.
11120
111212008-02-01 Miles Bader <miles@gnu.org>
11122
11123 * emacs.c (main): Change default value of `enable_font_backend' to 1.
11124 Parse "--disable-font-backend" option.
11125 (standard_args): Add "--disable-font-backend" option.
11126
111272008-02-01 Kenichi Handa <handa@m17n.org>
11128
11129 * fontset.c (fontset_find_font): New function.
11130 (fontset_font): Use fontset_find_font.
11131 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
11132 Register the specified font for all Latin characters.
11133 (new_fontset_from_font): Register the specified font for all Latin
11134 characters.
11135 (dump_fontset): For a realized fontset, include the base fontset
11136 name in the returned vector.
11137
111382008-02-01 Kenichi Handa <handa@m17n.org>
11139
11140 * character.h (CHAR_STRING): Cast C to unsigned on calling
11141 char_string.
11142
11143 * character.c (char_string): Type of arg C changed to unsigned.
11144 Signal an error if C is an invalid character code.
11145
11146 * editfns.c (general_insert_function, Fchar_to_string):
11147 Use CHARACTERP, not INTEGERP.
11148
111492008-02-01 Kenichi Handa <handa@m17n.org>
11150
11151 * character.h (MIN_MULTIBYTE_LEADING_CODE)
11152 (MAX_MULTIBYTE_LEADING_CODE): New macros.
11153
11154 * regex.c (analyse_first): Fix for multibyte characters in "case
11155 charset:" and "case categoryspec:".
11156
111572008-02-01 Andreas Schwab <schwab@suse.de>
11158
11159 * Makefile.in (LIBES): Move standard libraries to the end.
11160
111612008-02-01 Kenichi Handa <handa@m17n.org>
11162
11163 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
11164 nonzero, don't shrink the buffer nextb.
11165
11166 * buffer.h (struct buffer_text): New member inhibit_shrinking.
11167
11168 * coding.c (coding_alloc_by_making_gap): New arg offset.
11169 (alloc_destination): Call coding_alloc_by_making_gap with the arg
11170 offset.
11171 (decode_coding_iso_2022): Update coding->safe_charsets.
11172 (decode_coding_gap): Temporarily set
11173 current_buffer->text->inhibit_shrinking to 1.
11174
111752008-02-01 Kenichi Handa <handa@m17n.org>
11176
11177 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
11178 indexing into elements of s->cmp and s->char2b.
11179
111802008-02-01 Juanma Barranquero <lekktu@gmail.com>
11181
11182 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
11183
111842008-02-01 Kenichi Handa <handa@m17n.org>
11185
11186 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
11187 target_multibyte instead of multibyte.
11188 (re_match_2_internal): Call bcmp_translate with target_multibyte.
11189 (bcmp_translate): Change the argument name from multibyte to
11190 target_multibyte.
11191
111922008-02-01 Kenichi Handa <handa@m17n.org>
11193
11194 These changes are to compile a regexp into a pattern that can be
11195 used both for multibyte and unibyte targets.
11196
11197 * Makefile.in (search.o): Depend on charset.h.
11198
11199 * character.c (multibyte_char_to_unibyte_safe): New function.
11200
11201 * search.c: Include "charset.h".
11202 (compile_pattern_1): Delete argument multibyte. Don't set
11203 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
11204 (compile_pattern): Don't compare cp->buf.target_multibyte.
11205 Compare cp->buf.charset_unibyte.
11206 (compile_pattern): Set cp->buf.target_multibyte.
11207
11208 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
11209
11210 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
11211
11212 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
11213 multibyte. Change callers.
11214 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
11215 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
11216 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
11217 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
11218 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
11219 (regex_compile): Make the compiled pattern usable both for
11220 multibyte and unibyte targets.
11221 (analyse_first): Make the fastmap usable both for multibyte and
11222 unibyte targets.
11223 (TRANSLATE_VIA_MULTIBYTE): Delete.
11224 (re_match_2_internal): Pay attention to the case that the
11225 multibyteness of bufp and target may be different.
11226
112272008-02-01 Kenichi Handa <handa@m17n.org>
11228
11229 * xdisp.c (x_produce_glyphs): When a font is not found, make the
11230 empty box occupy at least one column width.
11231
112322008-02-01 Miles Bader <miles@gnu.org>
11233
11234 * Makefile.in: Remove redundant HAVE_XFT clause.
11235
112362008-02-01 Kenichi Handa <handa@m17n.org>
11237
11238 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
11239
112402008-02-01 Kenichi Handa <handa@m17n.org>
11241
11242 * fontset.c (Finternal_char_font): Fix for the case of POSITION
11243 being nil.
11244
112452008-02-01 Kenichi Handa <handa@m17n.org>
11246
11247 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
11248
112492008-02-01 Kenichi Handa <handa@m17n.org>
11250
11251 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
11252
112532008-02-01 Kenichi Handa <handa@m17n.org>
11254
11255 * search.c (simple_search): Fix previous change.
11256
112572008-02-01 Kenichi Handa <handa@m17n.org>
11258
11259 * xftfont.c (ftfont_font_format): Extern declaration.
11260
11261 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
11262
11263 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
11264 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
11265
11266 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
11267 (ftfont_font_format): Fix previous change.
11268
11269 * font.h (Ffont_xlfd_name): EXFUN it.
11270
11271 * font.c (font_parse_xlfd): Fix the array size of `f'.
11272 (register_font_driver): Use EQ to compare driver->type.
11273
11274 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
11275 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
11276 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
11277
112782008-02-01 Kenichi Handa <handa@m17n.org>
11279
11280 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
11281 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
11282
112832008-02-01 Kenichi Handa <handa@m17n.org>
11284
11285 * xfont.c (xfont_open): Set font->format.
11286
11287 * xftfont.c (xftfont_open): Set font->format.
11288
11289 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
11290 (ftfont_list): Include FC_FONTFORMAT in FcObject.
11291 (ftfont_open): Set font->format.
11292 (ftfont_font_format): New function.
11293
11294 * font.h (struct font): New member format.
11295
11296 * font.c (Qopentype): New variable.
11297 (syms_of_font): Defsym it.
11298 (Fquery_font): Change the format of the last element of the return
11299 value.
11300
113012008-02-01 Kenichi Handa <handa@m17n.org>
11302
11303 * xfns.c (xic_create_xfontset): Try the default fontset name as a
11304 last resort.
11305
113062008-02-01 Kenichi Handa <handa@m17n.org>
11307
11308 * coding.c (detect_coding_charset): Fix detection of multi-byte
11309 charset.
11310
113112008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
11312
11313 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
11314
113152008-02-01 Kenichi Handa <handa@m17n.org>
11316
11317 * xdisp.c (get_next_display_element): Set it->face_id for the
11318 first component of a composition.
11319 (x_produce_glyphs): Check if the font is changed or not for composition.
11320
113212008-02-01 Kenichi Handa <handa@m17n.org>
11322
11323 * fontset.c (Qlatin): New variable.
11324 (syms_of_fontset): Define it as a lisp symbol.
11325 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
11326
113272008-02-01 Kenichi Handa <handa@m17n.org>
11328
11329 * font.c (font_unparse_fcname): Pay attention to the case that
11330 some of font property is a null string.
11331
113322008-02-01 Kenichi Handa <handa@m17n.org>
11333
11334 * term.c: Include "composite.h".
11335 (encode_terminal_code): Output all components of composition.
11336 Check the size of encode_terminal_src.
11337 (produce_glyphs): For composition, call produce_composite_glyph.
11338 (append_composite_glyph, produce_composite_glyph): New functions.
11339
11340 * xdisp.c (x_produce_glyphs): In handling composition, if a font
11341 is not found, get font_info from the current ascii face.
11342
113432008-02-01 Kenichi Handa <handa@m17n.org>
11344
11345 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
11346 buffer-file-name to Qnil before calling insert_from_buffer.
11347
11348 * font.c (font_unparse_fcname): Pay attention to the case that
11349 foundry is a null string.
11350
113512008-02-01 Kenichi Handa <handa@m17n.org>
11352
11353 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
11354
11355 * font.c (Qunicode_sip): New variable.
11356 (syms_of_font): Declare it as a Lisp symbol.
11357
11358 * font.h (Qunicode_sip): Extern it.
11359
113602008-02-01 Kenichi Handa <handa@m17n.org>
11361
11362 * composite.c (get_composition_id): Pay attention to TAB component.
11363
11364 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
11365 TAB. Adjust for the change of s->char2b which always points to
11366 the first element of allocated memory.
11367
11368 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
11369
11370 * xdisp.c (handle_composition_prop): Set it->c to the first
11371 non-TAB component.
11372 (fill_composite_glyph_string): Change argument.
11373 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
11374 (x_produce_glyphs): Fix handling of left/right padding.
11375
113762008-02-01 Kenichi Handa <handa@m17n.org>
11377
11378 * coding.c (detect_coding_system): Fix for handling off
11379 inhibit_iso_escape_detection. Fix for the case that no coding
11380 system is defined for a specific coding category.
11381
113822008-02-01 Kenichi Handa <handa@m17n.org>
11383
11384 * font.c (font_matching_entity): Delete unused local var.
11385
11386 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
11387 opening a font.
11388
11389 * fileio.c (Finsert_file_contents): On recovering a file, assume
11390 Unix-like eol.
11391 (choose_write_coding_system): On auto-saving a file, force
11392 Unix-like eol.
11393
11394 * coding.c (setup_coding_system): Fix setting of
11395 coding->common_flags based on eol_type.
11396 (coding_inherit_eol_type): If PARENT is not nil, be sure to
11397 inherit from it.
11398
113992008-02-01 Kenichi Handa <handa@m17n.org>
11400
11401 * alloc.c (NSTATICS): Increas to 0x600.
11402
114032008-02-01 Kenichi Handa <handa@m17n.org>
11404
11405 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
11406 (ftfont_list): Don't check :name property.
11407 (ftfont_match): New function.
11408 (ftfont_pattern_entity): If the pattern doesn't contain
11409 FC_SPACING, don't assume FC_MONO.
11410
11411 * font.h (struct font_driver): New member `match'.
11412 (font_update_drivers): Adjust prototype.
11413
11414 * font.c (font_parse_fcname, font_parse_name): Don't change :name
11415 property of FONT.
11416 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
11417 them unconditionally.
11418 (font_matching_entity): New function.
11419 (font_open_by_name): Try font_matching_entity if exact match is
11420 not found.
11421 (font_update_drivers): Delete the arg FONT. Return a list of
11422 actually used backends. Don't free faces, font caches here.
11423 Don't store data in frame parameters. Don't call x_set_font.
11424 (Ffont_spec): Store :name property as is.
11425 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
11426 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
11427 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
11428 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
11429 Call font->driver->otf_gsub instead of font_otf_gsub.
11430
11431 * frame.c (x_set_font_backend): Do more works that were done in
11432 font_update_drivers before.
11433
11434 * xfont.c (xfont_match): New function.
11435 (xfont_driver): Set xfont_driver.match to xfont_match.
11436 (xfont_draw): Set font in GC if necessary.
11437
11438 * ftxfont.c (ftxfont_match): New function.
11439 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
11440
11441 * xftfont.c (xftfont_match): New function.
11442 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
11443
114442008-02-01 Kenichi Handa <handa@m17n.org>
11445
11446 * font.h (struct font): New member scalable.
11447 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
11448 (font_otf_gsub): Adjust prototype.
11449
11450 * font.c (font_otf_capability): Fix handling of the default langsys.
11451 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
11452 Check the contents of SPEC.
11453 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
11454 (check_gstring): New function.
11455 (REPLACEMENT_CHARACTER): New macro.
11456 (font_otf_gsub): New arg alternate_subst. Be sure to set all
11457 glyph codes of GSTRING.
11458 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
11459 (font_prepare_composition): Set cmp->glyph_len.
11460 (font_open_entity): Set font->scalable.
11461 (Ffont_get): Handle :otf property.
11462 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
11463 functions.
11464 (Fquery_font): Use font->font.full_name.
11465 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
11466 Sfont_otf_alternates.
11467
11468 * ftfont.c (ftfont_open): Set font->font.full_name and
11469 font->font.name properly. Fix calculation of font->font.height
11470 and font->min_width.
11471
11472 * ftxfont.c (ftxfont_create_gcs): New function.
11473 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
11474 (ftxfont_draw_backgrond): Fix filling region.
11475 (ftxfont_default_fid): New function.
11476 (ftxfont_open): Set xfont->fid to the return value of
11477 ftxfont_default_fid.
11478 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
11479 (ftxfont_done_face): Free only GCs that are created by
11480 ftxfont_create_gcs.
11481 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
11482
11483 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
11484 Clip to src->width, etc (not src->clip_XXX).
11485
11486 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
11487 FontBackend frame parameter.
11488
114892008-02-01 Kenichi Handa <handa@m17n.org>
11490
11491 * font.h (struct font_driver_list): New member `on'.
11492 (Fclear_font_cache): EXFUN it.
11493 (font_update_drivers): Extern it.
11494
11495 * font.c (font_unparse_fcname): Fix typo (swidth->width).
11496 (font_list_entities): Check driver_list->on.
11497 (register_font_driver): Initalize `on' member to 0.
11498 (font_update_drivers): New function.
11499 (Fclear_font_cache): Check driver_list->on.
11500
11501 * frame.h (Qfont_backend): Extern it.
11502 (x_set_font_backend): Extern it.
11503
11504 * frame.c (Qfont_backend): New variable.
11505 (frame_parms): New element for font-backend.
11506 (x_set_font_backend): New function.
11507
11508 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
11509 FontBackend frame parameter.
11510 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
11511 x_set_font_backend.
11512
11513 * xfont.c (xfont_list): Don't try listing by :name property if the
11514 name is not for XLFD.
11515
115162008-02-01 Kenichi Handa <handa@m17n.org>
11517
11518 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
11519 (LGLYPH_SET_TO): New macros.
11520 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
11521 element of G is vector or not.
11522 (font_at): Extern it.
11523
11524 * font.c: Include window.h.
11525 (font_lispy_object): New function.
11526 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
11527 end of valid glyph.
11528 (font_close_object): Fix getting (struct font *).
11529 (font_at): New function.
11530 (Ffont_get): If FONT is a font-object, get entity from it.
11531 (Ffont_make_gstring): Initialize elements of glyphs with nil.
11532 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
11533 range check.
11534 (Ffont_at): New function.
11535 (syms_of_font): Defsubr Sfont_at.
11536
11537 * xdisp.c (it_props): Move the entry for Qauto_composed to just
11538 before the entry for Qcomposition.
11539 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
11540 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
11541 the font in gstring.
11542 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
11543 LGLYPH_FORM (g) to detect the end of valid glyph.
11544 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
11545 we are composing with gstring.
11546
11547 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
11548 Check if adjustment is vector or not.
11549
11550 * Makefile.in (font.o): Make it depends on window.h.
11551
115522008-02-01 Kenichi Handa <handa@m17n.org>
11553
11554 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
11555 adjustment is vector or not.
11556
115572008-02-01 Miles Bader <miles@gnu.org>
11558
11559 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
11560
115612008-02-01 Kenichi Handa <handa@m17n.org>
11562
11563 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
11564 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
11565 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
11566
11567 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
11568 (DEVICE_DELTA): Fix typo.
11569 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
11570 LGLYPH format.
11571
11572 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
11573 the change of LGLYPH format.
11574
115752008-02-01 Kenichi Handa <handa@m17n.org>
11576
11577 * ftfont.c (ftfont_list): Fix typo.
11578 (ftfont_build_basic_charsets): Don't include letters with diacritics.
11579
115802008-02-01 Jan Djärv <jan.h.d@swipnet.se>
11581
11582 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
11583
11584 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
11585 xftface_info is non-NULL.
11586
115872008-02-01 Jan Djärv <jan.h.d@swipnet.se>
11588
11589 * ftfont.c (ftfont_list): Move misplaced #endif.
11590
115912008-02-01 Kenichi Handa <handa@m17n.org>
11592
11593 * ftfont.c (ftfont_list): Pay attention to the case that
11594 FC_CAPABILITY is not defined.
11595
115962008-02-01 Kenichi Handa <handa@m17n.org>
11597
11598 * xftfont.c (xftfont_open): Set charset related members to -1.
11599
11600 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
11601 QCname.
11602 (ftfont_open): Set charset related members to -1.
11603
11604 * fontset.c (Votf_script_alist): New variable.
11605 (syms_of_fontset): Initialize it.
11606 (fontset_font): Delete unused variable.
11607
11608 * fontset.h (Votf_script_alist): Extern it.
11609
11610 * font.c (font_find_for_lface): Optimize code.
11611
11612 * font.h (font_close_object, font_merge_old_spec): Extern them.
11613
116142008-02-01 Kenichi Handa <handa@m17n.org>
11615
11616 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
11617 (syms_of_font): Initialize them.
11618 (font_pixel_size): Allow float value in dpi.
11619 (font_prop_validate_type): Delete.
11620 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
11621 Change caller.
11622 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
11623 (font_prop_validate_extra): Delete.
11624 (font_prop_validate_spacing): New function.
11625 (font_property_table): Add elements for all known properties.
11626 (get_font_prop_index): Rename from check_font_prop_name. New
11627 argument FROM. Change caller.
11628 (font_prop_validate): Validate all known properties.
11629 (font_put_extra): Delete argument force. Change caller.
11630 (font_expand_wildcards): Make it static. Fix the way of shrinking
11631 the possible range.
11632 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
11633 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
11634 Change caller.
11635 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
11636 (font_parse_fcname): Delete argument merge. Fix parsing of point
11637 size. Don't validate properties values here. Change caller.
11638 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
11639 (font_open_by_name): Delete unused variable.
11640 (Ffont_spec): Likewise. Validate property values.
11641 (Ffont_match_p): New function.
11642
11643 * font.h (QCscalable): Extern it.
11644 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
11645
11646 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
11647
11648 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
11649 (xfont_list_pattern): New function.
11650 (xfont_list): Use xfont_list_pattern.
11651
116522008-02-01 Kenichi Handa <handa@m17n.org>
11653
11654 * font.h (Flist_fonts): EXFUN it.
11655
116562008-02-01 Jason Rumney <jasonr@gnu.org>
11657
11658 * w32term.c (w32_initialize): Add back smoothing_type and
11659 smoothing_enabled definitions.
11660
116612008-02-01 Kenichi Handa <handa@m17n.org>
11662
11663 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
11664 s->face->font on determining underline position.
11665
116662008-02-01 Kenichi Handa <handa@m17n.org>
11667
11668 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
11669 (font_has_char): Accept font-object too.
11670 (font_find_for_lface): Try at first with a size specified in face.
11671
116722008-02-01 Kenichi Handa <handa@m17n.org>
11673
11674 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
11675 font_open_by_name.
11676
116772008-02-01 Kenichi Handa <handa@m17n.org>
11678
11679 * font.h (QCspacing, QCdpi): Extern them.
11680 (enum font_spacing): New enum.
11681 (FONT_PIXEL_SIZE_QUANTUM): New macro.
11682
11683 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
11684 (QCspacing, QCdpi): New variables.
11685 (syms_of_font): Initialize them.
11686 (font_pixel_size): New function.
11687 (font_put_extra): New function.
11688 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
11689 in FONT_EXTRA.
11690 (font_parse_fcname): Handle enumerated values (e.g. bold).
11691 Fix handling font size. Add QCname property that contains only
11692 unknown properties.
11693 (font_score): Change argument. Change caller. Pay attention to
11694 FONT_PIXEL_SIZE_QUANTUM.
11695 (font_sort_entites, font_list_entities, font_find_for_lface)
11696 (font_open_for_lface, font_open_by_name): Fix handling of font size.
11697 (Ffont_spec): Add QCname property that contains only unknown properties.
11698
11699 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
11700 include weight in listing pattern, instead check weight of each
11701 listed font. Don't include scalable in pattern. Pay attention to
11702 FONT_PIXEL_SIZE_QUANTUM.
11703
117042008-02-01 Kenichi Handa <handa@m17n.org>
11705
11706 * font.c (font_parse_fcname): Fix parsing of point-size.
11707 (font_unparse_fcname): Produce symbolic names for style properties.
11708 (font_list_entities): Handle float size correctly.
11709 (font_open_by_name): Prefer `normal' property values if the name
11710 doesn't specify them.
11711
11712 * fontset.c (Finternal_char_font): Use font_get_name, not
11713 Ffont_xlfd_name.
11714
11715 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
11716 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
11717 pattern. Don't force scalable.
11718
11719 * xftfont.c (xftfont_open): For generating a name, start from
11720 96-byte buffer.
11721
117222008-02-01 Jan Djärv <jan.h.d@swipnet.se>
11723
11724 * frame.h (x_new_fontset2): Fix prototype.
11725
117262008-02-01 Kenichi Handa <handa@m17n.org>
11727
11728 * font.h (struct font_driver): Delete member parse_name.
11729 (font_match_p, font_get_spec, font_parse_fcname)
11730 (font_unparse_fcname): Extern them.
11731 (font_get_name): Adjust prototype.
11732
11733 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
11734 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
11735 (font_expand_wildcards): Fix handling ENCODING field. Avoid
11736 unnecessary checks for weight, slant, and swidth.
11737 (font_parse_fcname): New function.
11738 (font_unparse_fcname): New function.
11739 (font_parse_name): New function.
11740 (font_match_p): New function.
11741 (font_get_name): Change return value to Lisp string.
11742 (font_get_spec): New function.
11743 (Qunspecified, Qignore_defface): Don't extern them.
11744 (font_find_for_lface): Assume that LFACE is fully specified.
11745 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
11746 object, use it for FACE.
11747 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
11748 driver->parse_name.
11749 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
11750
11751 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
11752 prototype.
11753
11754 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
11755 argument F. Don't call Fnew_fontset. Instead, directly call
11756 make_fontset.
11757
11758 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
11759
11760 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
11761 of x_new_fontset2.
11762
11763 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
11764 (Qsans__serif): New variables.
11765 (ftfont_generic_family_list): New variable.
11766 (syms_of_ftfont): Initialize the above variables.
11767 (ftfont_pattern_entity): Delete argument NAME.
11768 (ftfont_list_generic_family): New function.
11769 (ftfont_parse_name): Delete this function.
11770 (ftfont_list): Try generic family only when FcFontList found no font.
11771 (ftfont_list_family): Fix args to FcObjectSetBuild.
11772
11773 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
11774 object in attrs[LFACE_FONT_INDEX].
11775 (set_lface_from_font_name): Cancel all changes for font-backend.
11776 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
11777 function.
11778 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
11779 font object in QCfont attribute.
11780 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
11781 (realize_default_face) [USE_FONT_BACKEND]: Call
11782 set_lface_from_font_and_fontset.
11783
11784 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
11785 "fixed", and signal error here if no suitable font was found.
11786
11787 * xfont.c (xfont_parse_name): Delete this function.
11788
11789 * xftfont.c (xftfont_open): Change coding style of error
11790 handling. Generate fontconfig's fontname pattern.
11791
11792 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
11793 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
11794
11795 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
11796 Both args FONTSET and FONT_OBJECT must be existing ones.
11797
117982008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11799
11800 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
11801
118022008-02-01 Kenichi Handa <handa@m17n.org>
11803
11804 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
11805
11806 * font.h (struct font): Fix typo.
11807
11808 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
11809 XLFD_XXX_INDEX.
11810 (enum xlfd_field_mask): New enum.
11811 (intern_font_field): Changed argument. Change caller. If digits
11812 are followed by non-digits, return a symbol.
11813 (font_expand_wildcards): New function.
11814 (font_parse_xlfd): Fix wildcard handling.
11815 (Ffont_spec): If :name is specified, reflect the info in the other
11816 properties.
11817
11818 * ftfont.c (ftfont_pattern_entity): Fix typo.
11819 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
11820 locale.
11821
118222008-02-01 Kenichi Handa <handa@m17n.org>
11823
11824 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
11825
11826 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
11827 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
11828 registry doesn't specify encoding part.
11829 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
11830 (font_open_by_name): At first try parsing the name.
11831 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
11832 as Lisp symbols.
11833
11834 * fontset.c (reorder_font_vector): Pay attention to the case that
11835 the 3rd element of font_def is nil.
11836 (fontset_font): For the default fontset, append one more fontset
11837 elements for a script-based font specification. Don't add script
11838 attribute on finding a font.
11839 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
11840 font name.
11841 (fontset_ascii_font): If a font can't be opened, return nil.
11842
11843 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
11844 (ftfont_pattern_entity): New function.
11845 (ftfont_get_cache): Assume that freetype_font_cache is already
11846 initialized.
11847 (ftfont_list): Handle the case that a file is specified in font
11848 name. Use ftfont_pattern_entity to generate entities.
11849 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
11850 (syms_of_ftfont): Initialize freetype_font_cache.
11851
11852 * xftfont.c (xftfont_open): Make the font name fontconfig's
11853 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
11854 (xftfont_close): Free font->font.name if not NULL.
11855
11856 * xfont.c (xfont_list): If script is specified for a font, return
11857 null_vector.
11858 (xfont_list_family): Declare argument type.
11859
11860 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
11861 name, set LFACE_FONT (lface) to nil.
11862
11863 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
11864 return Qnil.
11865
118662008-02-01 Kenichi Handa <handa@m17n.org>
11867
11868 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
11869 (standard_args): Add "-enable-font-backend".
11870
118712008-02-01 Kenichi Handa <handa@m17n.org>
11872
11873 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
11874 (struct xftdraw_list, xftdraw_list): Delete them.
11875 (register_xftdraw, check_xftdraw): Delete them.
11876 (xftfont_prepare_face): Don't call register_xftdraw.
11877 (xftfont_done_face): Don't call check_xftdraw.
11878 (xftfont_draw): Get background color only when with_background is
11879 nonzero.
11880
11881 * xfont.c (xfont_encode_char): Fix calculation of char2b.
11882
118832008-02-01 Kenichi Handa <handa@m17n.org>
11884
11885 These changes are for the new font handling codes.
11886
11887 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
11888 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
11889 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
11890 (FONTSRC, FONTOBJ): New variables.
11891 (obj): Add $(FONTOBJ).
11892 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
11893 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
11894 @LIBOTF_LIBS@.
11895 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
11896 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
11897
11898 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
11899
11900 * character.h (Vscript_representative_chars): Extern it.
11901
11902 * character.c (Vscript_representative_chars): New variable.
11903 (syms_of_character): Declare it as a Lisp variable.
11904
11905 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
11906 enable_font_backend is nonzero, accept the composition method
11907 COMPOSITION_WITH_GLYPH_STRING.
11908
11909 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
11910 enumeration COMPOSITION_WITH_GLYPH_STRING.
11911
11912 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
11913 members clip_x, clip_y, clip_width, and clip_height.
11914 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
11915
11916 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
11917 --enable-font-backend. Call syms_of_font.
11918
11919 * fns.c (assoc_no_quit): New function.
11920
11921 * fontset.h (FONT_INFO_FROM_FACE): New macro.
11922 (face_for_font, new_fontset_from_font)
11923 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
11924
11925 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
11926 (fontset_font, fontset_ascii, face_for_char)
11927 (make_fontset_for_ascii_face, Ffont_info)
11928 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
11929 is nonzero, use font-backend mechanism.
11930 (find_font_encoding): Make it non-static.
11931 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
11932 New functions.
11933
11934 * frame.h (struct frame): New members resx and resy.
11935 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
11936 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
11937
11938 * frame.c [USE_FONT_BACKEND]: Include "font.h".
11939 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
11940
11941 * lisp.h (assoc_no_quit): Extern it.
11942
11943 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
11944 Through out the file, use FONT_INFO_FROM_FACE instead of
11945 FONT_INFO_FROM_ID, use get_per_char_metric instead of
11946 rif->per_char_metric.
11947 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
11948 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
11949 (get_glyph_face_and_encoding, fill_composite_glyph_string)
11950 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
11951 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
11952 nonzero, use font-backend mechanism.
11953 (get_per_char_metric): New function.
11954
11955 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
11956 (set_lface_from_font_name)
11957 (set_font_frame_param, free_realized_face)
11958 (prepare_face_for_display, clear_face_gcs)
11959 (Finternal_set_font_selection_order, realize_x_face)
11960 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
11961 font-backend mechanism.
11962 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
11963 (load_face_font) [USE_FONT_BACKEND]: Abort.
11964 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
11965 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
11966
11967 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
11968 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
11969 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
11970 nonzero, register all available font drivers. Call
11971 x_default_font_parameter for deciding a font.
11972 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
11973
11974 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
11975 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
11976 (x_set_glyph_string_clipping_exactly)
11977 (x_compute_glyph_string_overhangs)
11978 (x_draw_glyph_string_foreground)
11979 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
11980 (x_free_frame_resources) [USE_FONT_BACKEND]: If
11981 enable_font_backend is nonzero, use font-backend mechanism.
11982 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
11983
119842008-02-01 Kenichi Handa <handa@m17n.org>
11985
11986 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
11987 system_eol_type.
11988 (syms_of_coding): Initialize system_eol_type.
11989
11990 * process.c (Fset_process_coding_system): Inherit system's eol
11991 format if necessary.
11992
119932008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11994
11995 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
11996
119972008-02-01 Kenichi Handa <handa@m17n.org>
11998
11999 * coding.c (decode_eol): Pay attention to buffer relocation in
12000 del_range_2.
12001 (decode_coding): Call decode_eol before restoring undo_list.
12002
120032008-02-01 Kenichi Handa <handa@m17n.org>
12004
12005 * charset.c (Fdefine_charset_internal): Fix setting of
12006 emacs_mule_bytes.
12007
120082008-02-01 Kenichi Handa <handa@m17n.org>
12009
12010 * keyboard.c (read_char): Check if C is a character or not before
12011 looking up Vkeyboard_translate_table.
12012
120132008-02-01 Kenichi Handa <handa@m17n.org>
12014
12015 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
12016 condition to terminate the loop.
12017
120182008-02-01 Kenichi Handa <handa@m17n.org>
12019
12020 * coding.c (produce_composition): Compare charbuf[i] instead of
12021 args[i] against 0.
12022 (Fterminal_coding_system): Use EQ to compare Lisp objects.
12023
120242008-02-01 Kenichi Handa <handa@m17n.org>
12025
12026 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
12027 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
12028 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
12029 detect_coding.
12030 (emacs_mule_char): Handle old style (Emacs 20) component character
12031 of a composition.
12032 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
12033 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
12034 composition rule.
12035 (decode_coding_emacs_mule): Handle invalid bytes correctly.
12036
120372008-02-01 Kenichi Handa <handa@m17n.org>
12038
12039 * coding.c (encode_coding_ccl): Allocate destination dynamically
12040 when necessary.
12041
120422008-02-01 Kenichi Handa <handa@m17n.org>
12043
12044 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
12045 the loop. When quitted, show a proper error message.
12046
120472008-02-01 Kenichi Handa <handa@m17n.org>
12048
12049 * xterm.c (x_set_glyph_string_clipping_exactly): Set
12050 src->clip_head and src->clip_tail temporarily instead of src->hl.
12051
12052 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
12053 character sequence.
12054 (Fccl_execute_on_string): Use ASET, not XSET.
12055
120562008-02-01 Kenichi Handa <handa@m17n.org>
12057
12058 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
12059
120602008-02-01 Kenichi Handa <handa@m17n.org>
12061
12062 * coding.c (decode_coding): Fix the condition of terminating the
12063 decoding loop.
12064
120652008-02-01 Kenichi Handa <handa@m17n.org>
12066
12067 * data.c (Faset): On setting a character bigger than 255 in a
12068 unibyte string, signal an error instead of make the string multibyte.
12069
120702008-02-01 Kenichi Handa <handa@m17n.org>
12071
12072 * charset.c (map_charset_chars): Fix for ascii-compatible charset
12073 made by a mapping table.
12074
120752008-02-01 Kenichi Handa <handa@m17n.org>
12076
12077 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
12078 not.
12079 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
12080 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
12081
12082 * xterm.c (x_draw_composite_glyph_string_foreground): Check
12083 s->face is NULL or not.
12084
120852008-02-01 Kenichi Handa <handa@m17n.org>
12086
12087 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
12088 (x_draw_glyph_string): Fix drawing of right_overhang and
12089 left_overhang around/on cursor.
12090
12091 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
12092
120932008-02-01 Kenichi Handa <handa@m17n.org>
12094
12095 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
12096
120972008-02-01 Kenichi Handa <handa@m17n.org>
12098
12099 * coding.c (Fdefine_coding_system_internal)
12100 (Fdefine_coding_system_alias): Avoid a duplicated element in
12101 Vcoding_system_alist.
12102
121032008-02-01 Kenichi Handa <handa@m17n.org>
12104
12105 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
12106
12107 * coding.c (Qcoding_system_define_form): New variable.
12108 (syms_of_coding): Intern and staticpro it.
12109 (Fcoding_system_p): Check Qcoding_system_define_form.
12110 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
12111
12112 * coding.h (CODING_SYSTEM_P): If ID is not available, call
12113 Fcoding_system_p.
12114 (CHECK_CODING_SYSTEM): If ID is not available, call
12115 Fcheck_coding_system.
12116 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
12117 Try also Fcheck_coding_system.
12118
121192008-02-01 Kenichi Handa <handa@m17n.org>
12120
12121 * coding.c (code_conversion_restore): GCPRO arg.
12122
121232008-02-01 Kenichi Handa <handa@m17n.org>
12124
12125 * character.c (lisp_string_width): Check multibyteness of STRING.
12126
121272008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12128
12129 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
12130 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
12131 (decode_mac_font_name): Use decode_coding_c_string instead of
12132 decode_coding.
12133 (x_load_font): Initialize fontp->fontset to -1. Set
12134 fontp->encoding_type.
12135
121362008-02-01 Kenichi Handa <handa@m17n.org>
12137
12138 * search.c (search_buffer): Give up BM search on case-fold-search
12139 if one of a target character has a case-equivalence of different
12140 byte length even if that target charcter is an ASCII.
12141 (simple_search): Fix calculation of byte length of matched text.
12142 (boyer_moore): Fix handling of case-equivalent multibyte characters.
12143
121442008-02-01 Kenichi Handa <handa@m17n.org>
12145
12146 * coding.c (decode_coding): Fix handling of invalid bytes.
12147
121482008-02-01 Kenichi Handa <handa@m17n.org>
12149
12150 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
12151 Unicode characters.
12152
121532008-02-01 Kenichi Handa <handa@m17n.org>
12154
12155 * coding.c (encode_coding_object): If a pre-write-conversion
12156 function makes a new buffer, kill it.
12157
121582008-02-01 Kenichi Handa <handa@m17n.org>
12159
12160 * coding.c (QCascii_compatible_p): New variable.
12161 (syms_of_coding): Initialize it.
12162 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
12163 calling string_char.
12164 (record_conversion_result): Add `default:' case.
12165 (coding_charset_list): Delete unused variable `coding_type'.
12166 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
12167 property in the plist of the coding system.
12168 (Fcoding_system_put): Check QCascii_compatible_p.
12169
121702008-02-01 Miles Bader <miles@gnu.org>
12171
12172 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
12173 removed calculation of frame `f', as it's now used.
12174
121752008-02-01 Kenichi Handa <handa@m17n.org>
12176
12177 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
12178 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
12179 (UNIDATA): New variable.
12180 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
12181 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
12182 $(RUN_TEMACS) unconditionally.
12183
121842008-02-01 Kenichi Handa <handa@m17n.org>
12185
12186 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
12187 (admindir): New variable.
12188 ($(lispsource)international/charprop.el): New target.
12189
121902008-02-01 Miles Bader <miles@gnu.org>
12191
12192 * character.c (chars-in-region): Remove obsolete function.
12193 (syms_of_character): Remove its initialization.
12194
121952008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
12196
12197 * w32select.c (validate_coding_system)
12198 (setup_windows_coding_system): New functions.
12199 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
12200 setup_windows_coding_system.
12201 (setup_config, Fw32_get_clipboard_data): Use
12202 validate_coding_system.
12203 (Fx_selection_exists): Move call to setup_config to a place
12204 where signals are allowed.
12205
12206 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
12207 (Fcheck_coding_system): Add declarations.
12208
122092008-02-01 Kenichi Handa <handa@m17n.org>
12210
12211 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
12212
122132008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12214
12215 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
12216 string as the second argument for x_new_fontset.
12217
122182008-02-01 Kenichi Handa <handa@m17n.org>
12219
12220 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
12221 (encode_coding_object): Use safe_call instead of call2.
12222
122232008-02-01 Kenichi Handa <handa@m17n.org>
12224
12225 * fontset.c (Fset_fontset_font): Check family element of a given vector.
12226
12227 * Makefile.in (lisp): Include charprop.el.
12228
122292008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12230
12231 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
12232 Not sure if it's unnecessary.
12233
122342008-02-01 Steven Tamm <steventamm@mac.com>
12235
12236 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
12237 some possibly unnecessary fontset checking code that crashed
12238 when creating a new frame.
12239
122402008-02-01 Kenichi Handa <handa@m17n.org>
12241
12242 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
12243 lookup_face.
12244
12245 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
12246
12247 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
12248
122492008-02-01 Kenichi Handa <handa@m17n.org>
12250
12251 * coding.c: Cancel the change done in HEAD on 2008-02-01.
12252 (coding_charset_list): New function.
12253
12254 * coding.h (coding_charset_list): Extern it.
12255
122562008-02-01 Kenichi Handa <handa@m17n.org>
12257
12258 * fontset.c (Fset_fontset_font): Call find_font_encoding with
12259 concatenation of family and registry.
12260
122612008-02-01 Kenichi Handa <handa@m17n.org>
12262
12263 * character.h (BYTE8_STRING): Fix typo.
12264
12265 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
12266 string to multibyte (sync to HEAD).
12267
12268 * casefiddle.c (casify_region): Handle changes in byte-length
12269 using replace_range_2 (sync to HEAD).
12270
122712008-02-01 Andreas Schwab <schwab@suse.de>
12272
12273 * chartab.c (map_char_table): GCPRO table and arg.
12274
122752008-02-01 Kenichi Handa <handa@m17n.org>
12276
12277 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
12278 already at limit.
12279
122802008-02-01 Kenichi Handa <handa@m17n.org>
12281
12282 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
12283 instead of fast_c_string_match_ignore_case.
12284 (find_font_encoding): Change argument to Lisp_Object. Use
12285 fast_string_match_ignore_case instead of
12286 fast_c_string_match_ignore_case. Change caller.
12287
122882008-02-01 Kenichi Handa <handa@m17n.org>
12289
12290 * xdisp.c (get_next_display_element): In unibyte case, decide to
12291 display in octal form by checking a character by
12292 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
12293
12294 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
12295
12296 * character.c (unibyte_has_multibyte_table): New variable.
12297
12298 * character.h (unibyte_has_multibyte_table): Extern it.
12299 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
12300
123012008-02-01 Kenichi Handa <handa@m17n.org>
12302
12303 * coding.c (encode_coding_iso_2022): Fix handling of charset
12304 annotation.
12305
123062008-02-01 Kenichi Handa <handa@m17n.org>
12307
12308 * coding.c (setup_coding_system): If coding_system is nil, use
12309 Qundecided.
12310 (Fterminal_coding_system): Return nil if terminal coding system is
12311 `undecided'.
12312 (syms_of_coding): Define coding-system `undecided' here. Setup
12313 terminal_coding as `undecided'.
12314
123152008-02-01 Kenichi Handa <handa@m17n.org>
12316
12317 * xdisp.c (message_dolog, set_message_1): Call
12318 unibyte_char_to_multibyte with arg type int.
12319
12320 * lread.c (read1): Fix reading of a char-table.
12321
12322 * print.c (print_object): Include sub char-table in circularities
12323 detection.
12324
123252008-02-01 Kenichi Handa <handa@m17n.org>
12326
12327 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
12328 Append the found sequences in car of ARGS instead of prepending.
12329
123302008-02-01 Kenichi Handa <handa@m17n.org>
12331
12332 * fileio.c (report_file_error): Make a unibyte string from
12333 strerror (errorno).
12334 (Fsubstitute_in_file_name): Fix the arg to
12335 unibyte_char_to_multibyte. It is evaluated twice.
12336
123372008-02-01 Kenichi Handa <handa@m17n.org>
12338
12339 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
12340
123412008-02-01 Kenichi Handa <handa@m17n.org>
12342
12343 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
12344 BOM is not found.
12345 (detect_coding, detect_coding_system): Optimization for ISO-2022
12346 when no 8-bit data is found.
12347
123482008-02-01 Jason Rumney <jasonr@gnu.org>
12349
12350 * w32fns.c (x_to_w32_font): Update to use new coding struct.
12351
123522008-02-01 Kenichi Handa <handa@m17n.org>
12353
12354 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
12355 CHARS.
12356
123572008-02-01 Steven Tamm <steventamm@mac.com>
12358
12359 * macterm.c (mac_encode_char): Add charset argument and update
12360 to use encoding_type.
12361 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
12362 switch to pure fontset.
12363 (decode_mac_font_name): Temporarily remove decoding.
12364 (x_font_name_to_mac_font_name): Temporarily remove encoding.
12365 (x_load_font): Temporarily remove encoding.
12366
123672008-02-01 Kenichi Handa <handa@m17n.org>
12368
12369 * xfaces.c (Fface_font): If frame is not on a window system,
12370 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
12371 refer to face->font.
12372 (split_font_name_into_vector, build_font_name_from_vector)
12373 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
12374 when HAVE_WINDOW_SYSTEM is defined.
12375
123762008-02-01 Kenichi Handa <handa@m17n.org>
12377
12378 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
12379 (x_produce_glyphs): Fix setting of members of cmp in case
12380 cmp->glyph_len is zero.
12381
12382 * fontset.c (Fset_fontset_font): Fix docstring.
12383 (Ffontset_info): Make it backward compatible. New arg ALL.
12384
123852008-02-01 Kim F. Storm <storm@cua.dk>
12386
12387 * process.c (read_process_output): Grow decoding_buf when needed;
12388 this could cause a crash in allocate_string and compact_small_strings.
12389
123902008-02-01 Kenichi Handa <handa@m17n.org>
12391
12392 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
12393
123942008-02-01 Kenichi Handa <handa@m17n.org>
12395
12396 * coding.c (setup_coding_system): Set coding->common_flags
12397 correctly for raw-text.
12398 (consume_chars): On encoding unibyte text by raw-text, don't check
12399 multibyte form.
12400 (encode_coding): On encoding by raw-text, never use translation tables.
12401
12402 * fileio.c (e_write): Short cut for the case of no encoding.
12403
124042008-02-01 Kenichi Handa <handa@m17n.org>
12405
12406 * coding.c (detect_coding, detect_coding_system): Delete unused
12407 variables.
12408
124092008-02-01 Kenichi Handa <handa@m17n.org>
12410
12411 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
12412 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
12413
124142008-02-01 Kenichi Handa <handa@m17n.org>
12415
12416 * coding.c (Ffind_coding_systems_region_internal): Include
12417 raw-text and no-conversion in the result.
12418
124192008-02-01 Kenichi Handa <handa@m17n.org>
12420
12421 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
12422 (load_font_get_repertory): Delete unnecessary check of ENCODING of
12423 FONT_DEF.
12424 (font_def_arg, add_arg, from_arg, to_arg): New args.
12425 (set_fontset_font): Change argument.
12426 (Fset_fontset_font): Fix for the case that TARGET is a script
12427 name and charset name.
12428 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
12429
124302008-02-01 Kenichi Handa <handa@m17n.org>
12431
12432 * fontset.c (fontset_font): Rename from fontset_face. Change return
12433 value.
12434 (face_suitable_for_char_p, face_for_char): Adjust for the change
12435 of fontset_font.
12436 (make_fontset_for_ascii_face): Fix setting of the fontset element
12437 for ASCII.
12438 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
12439 to get a font name.
12440 (Ffontset_info): Adjust for the change of fontset_font.
12441
12442 * coding.c (emacs_mule_char): Check invalid code more rigidly.
12443
12444 * character.h (LEADING_CODE_LATIN_1_MIN)
12445 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
12446
124472008-02-01 Kenichi Handa <handa@m17n.org>
12448
12449 * editfns.c (check_translation): New function.
12450 (Ftranslate_region_internal): Handle M:N mapping.
12451
124522008-02-01 Kenichi Handa <handa@m17n.org>
12453
12454 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
12455
124562008-02-01 Kenichi Handa <handa@m17n.org>
12457
12458 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
12459 goto invalid_code.
12460 (decode_coding_iso_2022): Fix handling of invalid designation.
12461
12462 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
12463 after calling code_conversion_save.
12464
124652008-02-01 Kenichi Handa <handa@m17n.org>
12466
12467 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
12468
12469 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
12470
12471 * fontset.c: Include "intervals.h".
12472 (fontset_face): Fix comparing of Lisp_Objects.
12473 (free_face_fontset, new_fontset_from_font_name): Fix
12474 Lisp_Object/int mixup.
12475
12476 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
12477
12478 * coding.c: Add many prototypes for static functions.
12479 (get_translation_table): Allow max_lookup to be NULL.
12480 (decode_coding, Ffind_coding_systems_region_internal)
12481 (Funencodable_char_position, Fcheck_coding_systems_region): Call
12482 get_translation_table with max_lookup NULL.
12483
124842008-02-01 Kenichi Handa <handa@m17n.org>
12485
12486 * coding.c (get_translation_table): Declare it as Lisp_Object.
12487 (LOOKUP_TRANSLATION_TABLE): New macro.
12488 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
12489 instead of CHAR_TABLE_REF.
12490
124912008-02-01 Kenichi Handa <handa@m17n.org>
12492
12493 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
12494 annotation data format.
12495 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
12496 Change arguments FROM and TO to single argument NCHARS. Change caller.
12497 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
12498 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
12499 (decode_coding_ccl, decode_coding_charset): Pay attention to
12500 coding->charbuf_used.
12501 (get_translation): New function.
12502 (produce_chars): New arguments translation_table and last_block.
12503 Translate characters here. Return number of carryover chars.
12504 Change caller.
12505 (produce_composition): New argument pos. Change caller.
12506 Adjust for the change of annotation data format.
12507 (produce_charset, produce_annotation): Likewise.
12508 (decode_coding, encode_coding): Don't call translate_chars.
12509 (consume_chars): New arg translation_table. Change caller.
12510 (translate_chars): Delete.
12511 (syms_of_coding): Make translation-table's number of extra slots 2.
12512
125132008-02-01 Kenichi Handa <handa@m17n.org>
12514
12515 * search.c (simple_search): Fix setting this_pos_byte in backward
12516 search.
12517
12518 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
12519 byte sequence.
12520 (detect_coding_ccl): Fix setting of the variable valids.
12521
125222008-02-01 Kenichi Handa <handa@m17n.org>
12523
12524 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
12525
12526 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
12527
12528 * editfns.c (Ftranslate_region_internal): Rename from
12529 Ftranslate_region. Accept a char-table in TABLE.
12530 (syms_of_editfns): Defsubr Stranslate_region_internal.
12531
12532 * xfaces.c (set_lface_from_font_name): If a font is specified for
12533 a frame, generate a fontset from the font.
12534 (build_scalable_font_name): If the scalable font is requested for
12535 a specific size, don't change that size.
12536 (try_font_list): Try a scalable font also in the case that a
12537 pattern string is specified.
12538
125392008-02-01 Kenichi Handa <handa@m17n.org>
12540
12541 * xfaces.c (Fface_font): New optional arg CHARACTER.
12542
125432008-02-01 Kenichi Handa <handa@m17n.org>
12544
12545 * charset.h (CHARSET_OFFSET): New macro.
12546
125472008-02-01 Kenichi Handa <handa@m17n.org>
12548
12549 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
12550
12551 * fontset.c (fontset_face): Handle the case that repertory is a
12552 char-table.
12553 (find_font_encoding): Return nil for unknown encoding.
12554 (Fset_fontset_font): Ignore a font of unknown encoding.
12555
125562008-02-01 Kenichi Handa <handa@m17n.org>
12557
12558 * keymap.c (describe_vector): Handle default value of a char table.
12559
12560 * fontset.c (fontset_face): Handle fallback fonts correctly.
12561 (Ffontset_info): Return infomation about fallback fonts.
12562
125632008-02-01 Kenichi Handa <handa@m17n.org>
12564
12565 * fontset.c (FONTSET_DEFAULT): New macro.
12566 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
12567 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
12568 the case that it is nil.
12569 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
12570 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
12571
12572 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
12573 subset or superset.
12574
125752008-02-01 Kenichi Handa <handa@m17n.org>
12576
12577 * emacs.c (main): Call init_charset after syms_of_XXX.
12578
12579 * charset.c (Vcharset_map_directory): Delete.
12580 (Vcharset_map_path): New variable.
12581 (load_charset_map_from_file): Use Vcharset_map_path instead.
12582 (init_charset): Initialize Vcharset_map_path.
12583 (syms_of_charset): Delete declaration of "charset-map-directory",
12584 add declaration of "charset-map-path".
12585
125862008-02-01 Kenichi Handa <handa@m17n.org>
12587
12588 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
12589 ASCII only string.
12590
12591 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
12592
12593 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
12594 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
12595
125962008-02-01 Kenichi Handa <handa@m17n.org>
12597
12598 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
12599
12600 * coding.c (QCmnemonic, QCdefalut_char)
12601 (QCdecode_translation_table, QCencode_translation_table)
12602 (QCpost_read_conversion, QCpre_write_conversion): New variables.
12603 (get_translation_table): Return a list of translation tables if
12604 necessary.
12605 (decode_coding): Call get_translation_table with ENCODEP 0.
12606 (char_encodable_p): If translation_table is non-nil, always call
12607 translate_char.
12608 (Fdefine_coding_system_internal): Accept list of translation
12609 tables as :encode-translation-table and :decode-translation-table.
12610 (Fcoding_system_put): New function.
12611 (syms_of_coding): Declare new symbols. Defsubr
12612 Scoding_system_put.
12613 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
12614 typically JISX0212.
12615
12616 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
12617 when the charset is superset type.
12618
12619 * character.c (translate_char): Accept list of translation tables.
12620
126212008-02-01 Kenichi Handa <handa@m17n.org>
12622
12623 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
12624 (CODING_ATTR_TRANS_TBL): New macro.
12625
12626 * coding.c (get_translation_table): New function.
12627 (translate_chars): Fix the bug of skipping annotation data.
12628 (decode_coding, encode_coding): Utilize get_translation_table.
12629 (char_encodable_p, Funencodable_char_position): Translate char if
12630 necessary.
12631 (Ffind_coding_systems_region_internal)
12632 (Fcheck_coding_systems_region): Setup translation table for encode
12633 in a coding system attribute vector in advance.
12634 (Fdefine_coding_system_internal): Allow a symbol as translation
12635 table. For shift-jis type coding system, allow 4th charset.
12636
126372008-02-01 Kenichi Handa <handa@m17n.org>
12638
12639 * coding.c (decode_coding_sjis): Check the first byte rigidly.
12640
12641 * xdisp.c (get_next_display_element): Pass -1 as POS to
12642 FACE_FOR_CHAR if displaying a C-string.
12643
126442008-02-01 Kenichi Handa <handa@m17n.org>
12645
12646 * composite.c (get_composition_id): Handle xoff and yoff in a
12647 composition rule.
12648
12649 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
12650 (struct composition): New member lbearing and rbearing.
12651
12652 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
12653 (x_get_glyph_overhangs): Handle a composition glyph.
12654 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
12655
12656 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
12657 composition glyph.
12658
126592008-02-01 Kenichi Handa <handa@m17n.org>
12660
12661 * print.c: Include charset.h.
12662 (Vprint_charset_text_property): New variable.
12663 (Qdefault): Extern it.
12664 (PRINT_STRING_NON_CHARSET_FOUND)
12665 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
12666 (print_check_string_result): New variable.
12667 (print_check_string_charset_prop): New function.
12668 (print_prune_charset_plist): New variable.
12669 (print_prune_string_charset): New function.
12670 (print_object): Call print_prune_string_charset if
12671 Vprint_charset_text_property is not t.
12672 (print_interval): Print nothing if interval->plist is nil.
12673 (syms_of_print): Declare Vprint_charset_text_property as a lisp
12674 variable. Init and staticpro print_prune_charset_plist.
12675
126762008-02-01 Kenichi Handa <handa@m17n.org>
12677
12678 * fontset.c (new_fontset_from_font_name): Use the specified font
12679 for all characters in the new fontset.
12680
12681 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
12682 OBJECT args.
12683
12684 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
12685 OBJECT args for composition too.
12686
12687 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
12688 OBJECT args.
12689
126902008-02-01 Kenichi Handa <handa@m17n.org>
12691
12692 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
12693
12694 * fontset.c (reorder_font_vector): Adjust for the change of
12695 FONT_DEF format.
12696 (fontset_face): New arg id. Change caller.
12697 (face_for_char): New args pos and object.
12698 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
12699 (fs_query_fontset): Check NAME by Fassoc too.
12700 (Fset_fontset_font): Allow non-XLFD font name.
12701 (Ffontset_info): Adjust for the change of FONT_DEF format.
12702
12703 * fontset.h (face_for_char): Adjust prototype.
12704
12705 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
12706 (append_space, extend_face_to_end_of_line)
12707 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
12708 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
12709
12710 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
12711 POS and OBJECT args.
12712
12713 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
12714 POS and OBJECT args.
12715
127162008-02-01 Jason Rumney <jasonr@gnu.org>
12717
12718 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
12719 of GlobalAlloc'ed memory.
12720
127212008-02-01 Kenichi Handa <handa@m17n.org>
12722
12723 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
12724
12725 * charset.h (charset_table_used): Delete extern.
12726
12727 * charset.c (charset_table_used): Make it static.
12728 (map_charset_chars): Fix args to c_function with.
12729
12730 * chartab.c (map_sub_char_table_for_charset): Fix args to
12731 c_function with.
12732
12733 * coding.h (enum coding_result_code): Delete
12734 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
12735
12736 * coding.c (Qinsufficient_source, Qinconsistent_eol)
12737 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
12738 (Vlast_code_conversion_error): New variables.
12739 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
12740 (ONE_MORE_BYTE): Record error if any instead of signaling an
12741 error. If non-ASCII multibyte char is found, return the negative
12742 value of the code. All callers changed to check it.
12743 (ONE_MORE_BYTE_NO_CHECK): Likewise.
12744 (record_conversion_result): New function. Change all codes setting
12745 coding->result to call this function.
12746 (detect_coding_utf_8, decode_coding_utf_8)
12747 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
12748 Don't use the local variable incomplete.
12749 (emacs_mule_char): Change the second arg to `const'.
12750 (decode_coding): Fix of flushing out unprocessed data.
12751 (make_conversion_work_buffer): Fix making of a work buffer.
12752 (decode_coding_object): Return coding->dst_object.
12753
12754 * fontset.c (set_fontset_font): Fix args.
12755
12756 * lisp.h (CHARACTERBITS): Define as 22.
12757
12758 * process.c (send_process): Be sure to set coding->src_multibyte.
12759
12760 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
12761
127622008-02-01 Kenichi Handa <handa@m17n.org>
12763
12764 * xdisp.c (handle_auto_composed_prop): Give limit to
12765 Fnext_single_char_property_change.
12766
127672008-02-01 Kenichi Handa <handa@m17n.org>
12768
12769 * composite.c (syms_of_composite): Don't make the composition hash
12770 table weak.
12771
12772 * fontset.c (Fset_fontset_font): Fix docstring.
12773
12774 * lisp.h (detect_coding_system): Adjust prototype.
12775
12776 * fileio.c (kill_workbuf_unwind): Delete this function.
12777 (Finsert_file_contents): Adjust the call of detect_coding_system.
12778 Get conversion_buffer by code_conversion_save. Use the macro
12779 CODING_MAY_REQUIRE_DECODING. After decoding, update
12780 coding_system.
12781
12782 * coding.h (make_conversion_work_buffer): Delete extern.
12783 (code_conversion_save): Extern it.
12784
12785 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
12786 (CODING_GET_INFO): Delete argument eol_type. Change callers.
12787 (decode_coding_utf_8): Don't do eol converion.
12788 (detect_coding_utf_16): Check coding->src_chars, not
12789 coding->src_bytes. Add heuristics for those that have no signature.
12790 (decode_coding_emacs_mule, decode_coding_iso_2022)
12791 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
12792 Don't do eol converion.
12793 (adjust_coding_eol_type): Return a new coding system.
12794 (detect_coding): Don't detect eol. Fix for utf-16 detection.
12795 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
12796 each change.
12797 (decode_coding): Pay attention to undo_list. Do eol conversion for
12798 all types of coding-systems (if necessary).
12799 (Vcode_conversion_work_buf_list): Delete it.
12800 (Vcode_conversion_reused_workbuf): Rename from
12801 Vcode_conversion_reused_work_buf.
12802 (Vcode_conversion_workbuf_name): New variable.
12803 (reused_workbuf_in_use): New variable.
12804 (make_conversion_work_buffer): Delete the arg DEPTH.
12805 (code_conversion_restore): Change argument to cons.
12806 (code_conversion_save): Delete the argument BUFFER. Change callers.
12807 (detect_coding_system): New argument src_chars. Change callers.
12808 Fix for utf-16 detection.
12809 (init_coding_once): Don't use ISO_carriage_return.
12810 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
12811 reused_workbuf_in_use.
12812
128132008-02-01 Kenichi Handa <handa@m17n.org>
12814
12815 * keymap.c (store_in_keymap): Pay attention to the case that idx
12816 is a cons specifying a character range.
12817
128182008-02-01 Kenichi Handa <handa@m17n.org>
12819
12820 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
12821 HANDLED_RECOMPUTE_PROPS.
12822
12823 * coding.c (Fdefine_coding_system_internal): Fix checking of
12824 ascii compatibility.
12825
128262008-02-01 Kenichi Handa <handa@m17n.org>
12827
12828 * charset.c (find_charsets_in_text): Delete unused locale variable.
12829 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
12830
12831 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
12832 Resync charset_list to Vemacs_mule_charset_list.
12833
12834 * keymap.c (store_in_keymap): Pay attention to the case that idx
12835 is a cons specifying a character range.
12836
128372008-02-01 Kenichi Handa <handa@m17n.org>
12838
12839 * composite.c (update_compositions): Bind inhibit-read-only, etc
12840 to t before calling remove-list-of-text-properties.
12841
12842 * print.c (print_object): Always print ASCII chars as is.
12843
128442008-02-01 Kenichi Handa <handa@m17n.org>
12845
12846 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
12847
12848 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
12849 is a char table.
12850
128512008-02-01 Kenichi Handa <handa@m17n.org>
12852
12853 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
12854
128552008-02-01 Kenichi Handa <handa@m17n.org>
12856
12857 * xfaces.c (set_lface_from_font_name): Fix for the case that
12858 FONTNAME is not fontset name.
12859
128602008-02-01 Kenichi Handa <handa@m17n.org>
12861
12862 * fns.c (base64_encode_1): Fix previous change.
12863
128642008-02-01 Kenichi Handa <handa@m17n.org>
12865
12866 * fontset.c (set_fontset_font): New function.
12867 (Fset_fontset_font): If a font is specified for a charset, use
12868 map_charset_chars to store the font spec in a fontset.
12869
128702008-02-01 Kenichi Handa <handa@m17n.org>
12871
12872 * fontset.c (fontset_face): Create a fallback fontset on demand.
12873 (make_fontset): Don't create a fallback fontset here.
12874 (free_face_fontset): Free a fallback fontset (if any) too.
12875 (n_auto_fontsets): Delete this variable.
12876 (auto_fontset_alist): New variable.
12877 (new_fontset_from_font_name): Check auto_fontset_alist.
12878 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
12879 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
12880 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
12881 Defsubr Sfontset_list_all.
12882
128832008-02-01 Kenichi Handa <handa@m17n.org>
12884
12885 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
12886
128872008-02-01 Kenichi Handa <handa@m17n.org>
12888
12889 * fontset.c (Fnew_fontset): Check NAME more rigidly.
12890
128912008-02-01 Kenichi Handa <handa@m17n.org>
12892
12893 * editfns.c (Fgoto_char): Fix docstring.
12894
128952008-02-01 Kenichi Handa <handa@m17n.org>
12896
12897 * insdel.c (insert_from_gap): Adjust intervals correctly.
12898
128992008-02-01 Jason Rumney <jasonr@gnu.org>
12900
12901 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
12902 (pfnGetFontUnicodeRanges): New dynamically loaded function.
12903 (w32_initialize): Try to load it.
12904 (x_get_font_repertory): Use it if available.
12905 (w32_encode_char): Add shortcut for unicode output.
12906
12907 * w32fns.c (w32_load_system_font): Default charset to -1.
12908 (x_to_w32_charset): Match all fonts for unicode.
12909 (w32_to_x_charset): New parameter matching. Don't return partial
12910 or wildcard charsets.
12911 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
12912 (w32_codepage_for_font): Return CP_UNICODE for unicode.
12913 (w32_to_x_font): Match charset to real charset.
12914 (enum_font_cb2): Always list unicode versions.
12915
12916 * makefile.w32-in (temacs): Increase EMHEAP.
12917
129182008-02-01 Jason Rumney <jasonr@gnu.org>
12919
12920 * w32term.c (w32_encode_char): New charset parameter.
12921 font_info.encoding becomes encoding_type.
12922 (x_get_font_repertory): New function. Warning: stub only!
12923 (x_new_font): Return quickly if font already set.
12924 (x_new_fontset): fontsetname parameter is Lisp_Object.
12925 Use new fs_query_fontset. Try new_fontset_from_font_name.
12926 Use fontset_name for return value.
12927
12928 * w32term.h: Declare x_get_font_repertory.
12929
12930 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
12931 place of find_charset_in_text. Use encode_coding_object in place
12932 of encode_coding.
12933 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
12934 decode_coding.
12935
12936 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
12937 of x_new_fontset.
12938 (w32_load_system_font): Initialize charset as unicode.
12939 font_info.encoding becomes encoding_type.
12940 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
12941 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
12942 (syms_of_w32fns): Set get_font_repertory_func.
12943
12944 * w32console.c: Include character.h. Use terminal_encode_buffer
12945 from term.c.
12946 (write_glyphs): Use new version of encode_terminal_code. Use
12947 encode_coding_object in place of encode_coding.
12948
12949 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
12950 encoding becomes encoding_type.
12951
12952 * term.c (terminal_encode_buffer): Make externally visible.
12953
12954 * makefile.w32-in: Add character.h dependancies.
12955 (character.o, chartab.o): New targets.
12956
129572008-02-01 Kenichi Handa <handa@m17n.org>
12958
12959 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
12960 CODING_ID_EOL_TYPE.
12961
129622008-02-01 Andreas Schwab <schwab@suse.de>
12963
12964 * coding.c (produce_chars): Revert last change.
12965
129662008-02-01 Kenichi Handa <handa@m17n.org>
12967
12968 * charset.h (charset_unicode): Extern it.
12969
12970 * charset.c (string_xstring_p): Check by (C >= 0x100).
12971 (find_charsets_in_text): Change format of the arc CHARSETS. New
12972 arg MULTIBYTE.
12973 (Ffind_charset_region, Ffind_charset_string): Adjust for the
12974 change of find_charsets_in_text.
12975 (Fsplit_char): Fix doc. Never return unknown.
12976
12977 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
12978
12979 * coding.c (Fdefine_coding_system_alias): Update
12980 Vcoding_system_list.
12981
12982 * fontset.c (load_font_get_repertory): Pay attention to the case
12983 that ENCODING of a font is specified by a char-table.
12984
12985 * xterm.c (x_get_font_repertory): Handle the case that the
12986 encoding of font is other than Unicode.
12987
129882008-02-01 Kenichi Handa <handa@m17n.org>
12989
12990 * term.c (encode_terminal_code): Don't handle glyph-table. Check
12991 if a character is encodable by the terminal coding system. If
12992 not, produces proper number of `?'s. Update
12993 terminal_encode_buffer and terminal_encode_buf_size if necessary.
12994 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
12995
129962008-02-01 Kenichi Handa <handa@m17n.org>
12997
12998 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
12999 variables.
13000 (encode_terminal_code): Change argument. Encode multiple
13001 characters at once. Store the result of encoding in
13002 terminal_encode_buffer.
13003 (write_glyphs, insert_glyphs): Adjust for the change of
13004 encode_terminal_code.
13005 (term_init): Initialize terminal_encode_buffer and
13006 terminal_encode_buf_size.
13007
13008 * coding.c (consume_chars): If coding->src_object is nil, don't
13009 check annotation.
13010
130112008-02-01 Kenichi Handa <handa@m17n.org>
13012
13013 * character.c (char_string): Use ASCII_CHAR_P instead of
13014 SINGLE_BYTE_CHAR_P.
13015
130162008-02-01 Kenichi Handa <handa@m17n.org>
13017
13018 * xdisp.c (handle_auto_composed_prop): Check if the last
13019 characters of auto-composed region is newly composed with the
13020 following characters.
13021 (handle_composition_prop): Fix checking of point being inside
13022 composition.
13023
130242008-02-01 Kenichi Handa <handa@m17n.org>
13025
13026 * fns.c (concat): Don't change multibyteness of the result by
13027 concatenating an 8-bit character.
13028
13029 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
13030 multibyteness of the result when newelt is an 8-bit character.
13031
130322008-02-01 Dave Love <fx@gnu.org>
13033
13034 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
13035 EMACS_INT.
13036
13037 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
13038
13039 * xfaces.c (face_numeric_value): Declare dim size_t.
13040 (Finternal_lisp_face_equal_p): Remove unused f.
13041
13042 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
13043 (MATRIX_ROW): Remove unused vars.
13044 (draw_glyphs, x_insert_glyphs, fast_find_position)
13045 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
13046 byte/char counts.
13047
13048 * regex.c (regex_compile): Remove unused var.
13049
13050 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
13051
13052 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
13053 (Faccessible_keymaps, where_is_internal): Remove unused vars.
13054
13055 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
13056
13057 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
13058
13059 * fileio.c (Fwrite_region): Remove unused var.
13060
13061 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
13062 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
13063
13064 * composite.c (Fremove_list_of_text_properties): Declare.
13065
13066 * coding.c (inhibit_pre_post_conversion): Remove (unused).
13067 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
13068 (coding_inherit_eol_type): Remove unused attrs.
13069 (detect_coding): Cast arg of detect_eol.
13070
13071 * charset.c (syms_of_charset): Remove unused var p.
13072 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
13073 byte/char counts.
13074
13075 * casetab.c (set_case_table): Remove unused var.
13076
13077 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
13078 unused vars.
13079
130802008-02-01 Dave Love <fx@gnu.org>
13081
13082 * xterm.c (x_bitmap_mask): Declare.
13083
130842008-02-01 Dave Love <fx@gnu.org>
13085
13086 * xterm.c (x_term_init): Fix type error.
13087
13088 * lisp.h: Add Funibyte_char_to_multibyte.
13089
13090 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
13091 (Fset_coding_system_priority): Doc fix.
13092
13093 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
13094
13095 * indent.c (check_composition): Make start and end EMACS_INT.
13096
13097 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
13098
13099 * xdisp.c (handle_composition_prop, check_point_in_composition):
13100 Make buffer positions EMACS_INT.
13101
13102 * composite.c (find_composition, run_composition_function)
13103 (update_compositions, Ffind_composition_internal): Make buffer
13104 positions EMACS_INT.
13105
13106 * composite.h (find_composition, update_compositions): Make
13107 position args EMACS_INT.
13108
13109 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
13110
13111 * intervals.c (get_property_and_range):
13112 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
13113
13114 * unexalpha.c: Don't include varargs.h.
13115
131162008-02-01 Dave Love <fx@gnu.org>
13117
13118 * coding.h (ENCODE_UTF_8): New.
13119
13120 * Makefile.in (gtkutil.o): Depend on coding.h.
13121
13122 * coding.c (Fset_coding_system_priority): Doc fix.
13123
131242008-02-01 Kenichi Handa <handa@m17n.org>
13125
13126 * fileio.c (Finsert_file_contents): Call setup_coding_system in
13127 the case of auto saving.
13128
131292008-02-01 Andreas Schwab <schwab@suse.de>
13130
13131 * chartab.c (map_char_table, map_char_table_for_charset): Protect
13132 `range' from GC.
13133
131342008-02-01 Kenichi Handa <handa@m17n.org>
13135
13136 * coding.c (decode_coding_sjis): Check bytes more rigidly.
13137
131382008-02-01 Kenichi Handa <handa@m17n.org>
13139
13140 * fileio.c (choose_write_coding_system): Return a decided coding system.
13141 (Fwrite_region): Set Vlast_coding_system_used to the return value
13142 of choose_write_coding_system.
13143
131442008-02-01 Kenichi Handa <handa@m17n.org>
13145
13146 * charset.c (Fset_charset_priority): Pay attention to duplicated
13147 arguments.
13148
13149 * coding.c (QCcategory): New variable.
13150 (syms_of_coding): Defsym it. Set all elements of
13151 Vcoding_category_table and their symbol values.
13152 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
13153 coding-category-XXX, and coding-category-list.
13154 (Fdefine_coding_system_internal): Add category in the plist.
13155
131562008-02-01 Kenichi Handa <handa@m17n.org>
13157
13158 * callproc.c (Fcall_process): Handle carryover correctly.
13159
13160 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
13161 (raw_text_coding_system): Check NILP (coding_system).
13162 (coding_inherit_eol_type): Check NILP (coding_system) and
13163 NILP (parent).
13164 (consume_chars): Fix for the case of raw-text.
13165
13166 * process.c (read_process_output): Handle carryover correctly.
13167
131682008-02-01 Dave Love <fx@gnu.org>
13169
13170 * regex.c (re_search_2): Fix last change.
13171
131722008-02-01 Kenichi Handa <handa@m17n.org>
13173
13174 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
13175 target_multibyte. Even in a unibyte case, return a converted
13176 multibyte char.
13177 (GET_CHAR_AFTER): New macro.
13178 (PATFETCH): Translate via multibyte char.
13179 (HANDLE_UNIBYTE_RANGE): Delete this macro.
13180 (SETUP_MULTIBYTE_RANGE): New macro.
13181 (regex_compile): Setup compiled code so that its multibyteness
13182 matches that of a target. Fix the handling of "[X-YZ]" using
13183 SETUP_MULTIBYTE_RANGE.
13184 (analyse_first) <charset>: For filling fastmap for all multibyte
13185 characters, don't check by BASE_LEADING_CODE_P.
13186 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
13187 the same as RE_MULTIBYTE_P (bufp) now.
13188 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
13189 (TARGET_CHAR_AND_LENGTH): Delete this macro.
13190 (TRANSLATE_VIA_MULTIBYTE): New macro.
13191 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
13192 It is the same as RE_MULTIBYTE_P (bufp) now.
13193 <exactn>: Translate via multibyte.
13194 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
13195 translate it.
13196 <charset, charset_not>: Fetch a character by
13197 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
13198 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
13199 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
13200 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
13201 by GET_CHAR_AFTER.
13202 (bcmp_translate): Likewise.
13203
13204 * search.c (compile_pattern): Check the member target_multibyte,
13205 not the member multibyte of buf.
13206
13207 * lread.c (read1): While reading a string, set force_singlebyte
13208 and force_multibyte correctly.
13209
13210 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
13211 up of unibyte_to_multibyte_table.
13212
132132008-02-01 Kenichi Handa <handa@m17n.org>
13214
13215 * coding.c (setup_coding_system): If coding has
13216 post-read-conversion or pre-write-conversion, set
13217 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
13218 respectively.
13219 (decode_coding_gap): Run post-read-conversion if any.
13220
13221 * fileio.c (Finsert_file_contents): Even if we read into a
13222 unibyte buffer, check if we must decode the result or not.
13223
132242008-02-01 Kenichi Handa <handa@m17n.org>
13225
13226 * coding.c (make_conversion_work_buffer): Change the work buffer
13227 name to the same one as that of Emacs 21.
13228
132292008-02-01 Kenichi Handa <handa@m17n.org>
13230
13231 * coding.h (make_conversion_work_buffer): Adjust prototype.
13232 (code_conversion_restore): Don't extern it.
13233
13234 * coding.c (detected_mask): Delete unused variable.
13235 (decode_coding_iso_2022): Pay attention to the byte sequence of
13236 CTEXT extended segment, and retain those bytes as is.
13237 (decode_coding_ccl): Delete unused variable `valids'.
13238 (setup_coding_system): Delete unused variable `category'.
13239 (consume_chars): Delete unused variable `category'. Make it work
13240 for non-multibyte case.
13241 (make_conversion_work_buffer): Change argument.
13242 (saved_coding): Delete unused variable.
13243 (code_conversion_restore): Don't check saved_coding->destination.
13244 (code_conversion_save): New function.
13245 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
13246 instead of record_unwind_protect.
13247 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
13248 (detect_coding_system): Delete unused variable `mask'.
13249 (Fdefine_coding_system_internal): Delete unused variable id.
13250
13251 * fileio.c (kill_workbuf_unwind): New function.
13252 (Finsert_file_contents): On replacing, call
13253 make_conversion_work_buffer with correct args, and call
13254 record_unwind_protect with the first arg kill_workbuf_unwind.
13255
13256 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
13257
132582008-02-01 Kenichi Handa <handa@m17n.org>
13259
13260 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
13261 (fontset_add): Fix for the case that TO is less than TO1.
13262 (Ffontset_info): Don't use fallback fontset on checking the
13263 default fontset.
13264 (dump_fontset): New function for debugging.
13265
13266 * coding.c (Fdefine_coding_system_internal): Fix for the case that
13267 coding_type is Qcharset.
13268
132692008-02-01 Kenichi Handa <handa@m17n.org>
13270
13271 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
13272 (map_char_table): Don't inherit the value from the parent on
13273 initializing VAL. Adjust for the above change.
13274
132752008-02-01 Kenichi Handa <handa@m17n.org>
13276
13277 * coding.c (Qsignature, Qendian): Delete these variables.
13278 (syms_of_coding): Don't initialize them.
13279 (CATEGORY_MASK_UTF_16_AUTO): New macro.
13280 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
13281 detect_info->found.
13282 (decode_coding_utf_16): Don't detect BOM here.
13283 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
13284 is NOT utf_16_without_bom.
13285 (setup_coding_system): For a coding system of type utf-16, check
13286 if the attribute :endian is Qbig or not (not nil or not), and set
13287 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
13288 (detect_coding): If coding type is utf-16 and BOM detection is
13289 required, detect it.
13290 (Fdefine_coding_system_internal): For a coding system of type
13291 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
13292
132932008-02-01 Kenichi Handa <handa@m17n.org>
13294
13295 * coding.c (coding_set_source): Fix for the case that the current
13296 buffer is different from coding->src_object.
13297 (decode_coding_object): Don't use the conversion work buffer if
13298 DST_OBJECT is a buffer.
13299
133002008-02-01 Dave Love <fx@gnu.org>
13301
13302 * lread.c (read_emacs_mule_char) [len==2]: Index
13303 emacs_mule_charset correctly.
13304
133052008-02-01 Dave Love <fx@gnu.org>
13306
13307 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
13308 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
13309 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
13310 treated specially.)
13311 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
13312 (detected_mask): Remove Big5 bits.
13313
133142008-02-01 Kenichi Handa <handa@m17n.org>
13315
13316 The following changes are to make the font rescaling facility
13317 compatible with Emacs 21.
13318
13319 * xfaces.c (Vface_font_rescale_alist): Rename from
13320 Vface_resizing_fonts.
13321 (struct font_name): Rename member resizing_ratio to rescale_ratio.
13322 (font_rescale_ratio): Rename from font_resizing_ratio.
13323 (split_font_name): Set font->rescale_ratio.
13324 (better_font_p): Pay attention to font->rescale_ratio.
13325 (build_scalable_font_name): Likewise. Change RESX, and RESY
13326 fields.
13327 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
13328
133292008-02-01 Kenichi Handa <handa@m17n.org>
13330
13331 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
13332 (Qutf_16_le): Remove these variables.
13333 (syms_of_coding): Don't DEFSYM them.
13334 (decode_coding_utf_16): Fix handling of BOM.
13335 (encode_coding_utf_16): Fix handling of BOM.
13336
133372008-02-01 Kenichi Handa <handa@m17n.org>
13338
13339 * fileio.c (Finsert_file_contents): On replacing, before decoding
13340 the file into the work buffer, set point of the work buffer to the end.
13341
133422008-02-01 Dave Love <fx@gnu.org>
13343
13344 * coding.c (Fcheck_coding_systems_region): Fix type errors.
13345
133462008-02-01 Dave Love <fx@gnu.org>
13347
13348 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
13349 and fix C types.
13350
133512008-02-01 Kenichi Handa <handa@m17n.org>
13352
13353 * xdisp.c (SKIP_GLYPHS): New macro.
13354 (set_cursor_from_row): Pay attention to string display properties.
13355
13356 * category.c (copy_category_entry): Fix for the case that RANGE
13357 is an integer.
13358
13359 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
13360
13361 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
13362
133632008-02-01 Kenichi Handa <handa@m17n.org>
13364
13365 * charset.c (Fcharset_id_internal): New function.
13366 (syms_of_charset): Defsubr it.
13367
13368 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
13369 with the last arg charset_list acquired from coding.
13370 (Fdefine_coding_system_internal): For ccl-based coding system, fix
13371 the attribute coding_attr_ccl_valids.
13372
13373 * coding.h (enum define_coding_ccl_arg_index): Set the first
13374 member coding_arg_ccl_decoder to coding_arg_max.
13375
13376 * ccl.h (ccl_driver): Adjust prototype.
13377
13378 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
13379 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 13380 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
13381 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
13382 last arg Qnil.
13383
133842008-02-01 Kenichi Handa <handa@m17n.org>
13385
13386 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
13387 call encode_char.
13388
13389 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
13390
133912008-02-01 Dave Love <fx@gnu.org>
13392
13393 * composite.c (syms_of_composite): Make composition_hash_table weak.
13394
133952008-02-01 Kenichi Handa <handa@m17n.org>
13396
13397 * dispextern.h (check_face_attributes, generate_ascii_font_name)
13398 (font_name_registry): Don't extern them.
13399 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
13400
13401 * fontset.h (Qfontset): Don't extern it.
13402 (new_fontset_from_font_name): Extern it.
13403
13404 * fontset.c: Give 8 extra slots to fontset objects.
13405 (Qfontset_info): New variable.
13406 (syms_of_fontset): Defsym it.
13407 (FONTSET_FALLBACK): New macro.
13408 (fontset_face): Try also the default fontset.
13409 (make_fontset): Realize a fallback fontset from the default fontset.
13410 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
13411 using split_font_name_into_vector and build_font_name_from_vector.
13412 (Fset_fontset_font): Access the elements of font_spec by enum
13413 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
13414 name by using split_font_name_into_vector.
13415 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
13416 generate a proper font name from the fontset name. Update
13417 Vfontset_alias_alist.
13418 (n_auto_fontsets): New variable.
13419 (new_fontset_from_font_name): New function.
13420 (Ffont_info): Store the information about fonts generated from the
13421 default fontset in the first extra slot of the returned char-table.
13422
13423 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
13424 (font_name_registry): Delete function.
13425 (split_font_name_into_vector): New function.
13426 (build_font_name_from_vector): New function.
13427 (font_list): The argument REGISTRY is now a list of registry names.
13428 (choose_face_font): If we are choosing an ASCII font, and ATTRS
13429 specifies an explicit font name, return the name as is. Make a
13430 list of registy names.
13431
13432 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
13433 of x_new_fontset.
13434 (Fx_create_frame): Don't call x_new_fontset here. Just use
13435 x_list_fonts to check the existence of fonts.
13436
13437 * xterm.h (x_new_fontset): Adjust prototype.
13438
13439 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
13440 string. Use new_fontset_from_font_name to create a fontset from a
13441 font name.
13442
134432008-02-01 Kenichi Handa <handa@m17n.org>
13444
13445 * syntax.c (Vfind_word_boundary_function_table): New name for
13446 Vnext_word_boundary_function_table.
13447 (find-word-boundary-function-table): New name for
13448 next-word-boundary-function-table.
13449
134502008-02-01 Dave Love <fx@gnu.org>
13451
13452 * Makefile.in: Fix some dependencies.
13453
13454 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
13455 set it to nil before returning.
13456
13457 * composite.c (update_compositions): Fix type error.
13458
13459 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
13460
134612008-02-01 Kenichi Handa <handa@m17n.org>
13462
13463 * xterm.c (x_new_font): Optimize for the case that the font is
13464 already set for the frame.
13465
134662008-02-01 Kenichi Handa <handa@m17n.org>
13467
13468 * chartab.c (char_table_ascii): Check if the char table contents
13469 is sub-char-table or not.
13470 (char_table_set, char_table_set_range): Fix argument to
13471 char_table_ascii.
13472
13473 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
13474 (detect_coding_utf_8, detect_coding_utf_16)
13475 (detect_coding_emacs_mule, detect_coding_iso_2022)
13476 (detect_coding_sjis, detect_coding_big5)
13477 (detect_coding_ccl, detect_coding_charset): Change argument MASK
13478 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
13479 sequence is valid in this coding system. Change callers.
13480 (MAX_ANNOTATION_LENGTH): New macro.
13481 (ADD_ANNOTATION_DATA): New macro.
13482 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
13483 ADD_ANNOTATION_DATA. Change the format of annotation data.
13484 (ADD_CHARSET_DATA): New macro.
13485 (emacs_mule_char): New argument ID. Change callers.
13486 (decode_coding_emacs_mule, decode_coding_iso_2022)
13487 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
13488 Produce charset annotation data in coding->charbuf.
13489 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
13490 to charset annotation data in coding->charbuf.
13491 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
13492 coding->common_flags if the coding system is iso-2022 based and
13493 uses designation.
13494 (produce_composition): Adjust for the new annotation data format.
13495 (produce_charset): New function.
13496 (produce_annotation): Handle charset annotation.
13497 (handle_composition_annotation, handle_charset_annotation): New
13498 functions.
13499 (consume_chars): Handle charset annotation. Utilize the above two
13500 functions.
13501 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
13502 buffer, get the deleted text as a string and set
13503 coding->src_object to that string.
13504 (detect_coding, detect_coding_system): Use the new struct
13505 coding_detection_info.
13506
13507 * coding.h (struct coding_detection_info): New structure.
13508 (struct coding_system): Adjust prototype of the member `detector'.
13509 (CODING_ANNOTATE_CHARSET_MASK): New macro.
13510
135112008-02-01 Kenichi Handa <handa@m17n.org>
13512
13513 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
13514
135152008-02-01 Dave Love <fx@gnu.org>
13516
13517 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
13518 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
13519 to new local and nullify apropos_accumulate before returning.
13520 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
13521
135222008-02-01 Kenichi Handa <handa@m17n.org>
13523
13524 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
13525 correctly.
e3eea1fc 13526
aac0c6e3
MR
135272008-02-01 Dave Love <fx@gnu.org>
13528
13529 * fns.c (Flanginfo): Call synchronize_system_time_locale.
13530
135312008-02-01 Kenichi Handa <handa@m17n.org>
13532
13533 The following changes are to make character composition happen
13534 automatically on displaying.
13535
13536 * Makefile.in (lisp, shortlisp): Add composite.elc.
13537
13538 * composite.h (Qauto_composed, Vauto_composition_function)
13539 (Qauto_composition_function): Extern them.
13540
13541 * composite.c (Vcomposition_function_table)
13542 (Qcomposition_function_table): Delete variables.
13543 (Qauto_composed, Vauto_composition_function)
13544 (Qauto_composition_function): New variables.
13545 (run_composition_function): Don't call
13546 compose-chars-after-function.
13547 (update_compositions): Clear `auto-composed' text property.
13548 (compose_chars_in_text): Delete this function.
13549 (syms_of_composite): Staticpro Qauto_composed and
13550 Qauto_composition_function. Declare Vauto_composition_function as
13551 a Lisp variable.
13552
13553 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
13554
13555 * xdisp.c (it_props): Add an entry for Qauto_composed.
13556 (handle_auto_composed_prop): New function.
13557
13558 * xselect.c (selection_data_to_lisp_data): Don't call
13559 compose_chars_in_text.
13560
135612008-02-01 Dave Love <fx@gnu.org>
13562
13563 * keyboard.c (read_char): Modify checking around use of
13564 Vkeyboard_translate_table.
13565
13566 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
13567 and fix C types.
13568
135692008-02-01 Kenichi Handa <handa@m17n.org>
13570
13571 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
13572 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
13573 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
13574 the case that the last byte is '\r' correctly.
13575 (decode_coding): Flush out the unprocessed data correctly.
13576 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
13577
135782008-02-01 Dave Love <fx@gnu.org>
13579
13580 * xterm.c (XTread_socket): Fix changes for defined keysyms.
13581 Add XK_ISO... case.
13582 (xaw_scroll_callback): Revert last change.
13583
135842008-02-01 Kenichi Handa <handa@m17n.org>
13585
13586 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
13587
135882008-02-01 Kenichi Handa <handa@m17n.org>
13589
13590 * xfaces.c (Vface_resizing_fonts): New variable.
13591 (struct font_name): New member `resizing_ratio'.
13592 (font_resizing_ratio): New function.
13593 (split_font_name): Set font->resizing_ratio.
13594 (better_font_p): Pay attention to font->resizing_ratio.
13595 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
13596 RESX, and RESY fields.
13597 (try_alternative_families): Try scalable fonts if
13598 Vscalable_fonts_allowed is not Qt.
13599 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
13600
136012008-02-01 Dave Love <fx@gnu.org>
13602
13603 * xterm.c (xaw_scroll_callback): Cast correctly.
13604
136052008-02-01 Dave Love <fx@gnu.org>
13606
13607 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
13608 (lispy_kana_keys): Comment out.
13609 (make_lispy_event) [XK_kana_A]: Comment out.
13610
13611 * xterm.c (xaw_scroll_callback): Cast call_data.
13612 (XTread_socket): Deal with ASCII keysyms.
13613 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
13614
136152008-02-01 Dave Love <fx@gnu.org>
13616
13617 * xterm.c (Vx_keysym_table): New.
13618 (syms_of_xterm): Initialize it.
13619 (XTread_socket): Use it.
13620 From head: Eliminate incorrect optimization that tried to avoid
13621 decoding the output of X*LookupString.
13622 (x_get_font_repertory): Delete charset declaration.
13623
136242008-02-01 Kenichi Handa <handa@m17n.org>
13625
13626 * coding.c (detect_coding_charset): If only ASCII bytes are found,
13627 return 0.
13628 (Fdefine_coding_system_internal): Setup
13629 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
13630
136312008-02-01 Dave Love <fx@gnu.org>
13632
13633 * coding.c (Fcheck_coding_system): Doc fix.
13634
13635 * editfns.c (Finsert_byte): Return a proper value.
13636
136372008-02-01 Kenichi Handa <handa@m17n.org>
13638
13639 * coding.c (decode_coding): Fix args to translate_chars. Pay
13640 attention to Vstandard_translation_table_for_decode.
13641 (encode_coding): Fix args to translate_chars. Pay attention to
13642 Vstandard_translation_table_for_encode.
13643
13644 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
13645 SINGLE_BYTE_CHAR_P.
13646
13647 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
13648 not by SINGLE_BYTE_CHAR_P.
13649
13650 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
13651 SINGLE_BYTE_CHAR_P.
13652
13653 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
13654 SINGLE_BYTE_CHAR_P.
13655
13656 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
13657 by SINGLE_BYTE_CHAR_P.
13658
13659 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
13660 SINGLE_BYTE_CHAR_P.
13661
136622008-02-01 Dave Love <fx@gnu.org>
13663
13664 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
13665
136662008-02-01 Dave Love <fx@gnu.org>
13667
13668 * fns.c (Flanginfo): Fix typo.
13669
13670 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
13671
136722008-02-01 Kenichi Handa <handa@m17n.org>
13673
13674 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
13675 (detect_coding_emacs_mule, detect_coding_iso_2022)
13676 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
13677 incomplete byte sequence. Don't update *mask when correctly detected.
13678 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
13679 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
13680 (detect_coding, detect_coding_system): Adjust for the changes above.
13681
136822008-02-01 Kenichi Handa <handa@m17n.org>
13683
13684 * character.c (char_string): Rename from
13685 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
13686 (string_char): Rename from string_char.
13687
13688 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
13689 if C is greater than MAX_3_BYTE_CHAR.
13690 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
13691 string_char instead of string_char_with_unification.
13692
136932008-02-01 Dave Love <fx@gnu.org>
13694
13695 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
13696
136972008-02-01 Kenichi Handa <handa@m17n.org>
13698
13699 * keymap.c (push_key_description): Pay attention to force_multibyte.
13700
13701 * regex.c (re_search_2): Fix for the case of unibyte buffer.
13702
137032008-02-01 Dave Love <fx@gnu.org>
13704
13705 * charset.c (define_charset_internal): Rename `supprementary'.
13706
13707 * Makefile.in (lisp, shortlisp): Remove latin-N.
13708
137092008-02-01 Dave Love <fx@gnu.org>
13710
13711 * xfns.c (x_window, x_window): Use use_xim.
13712
13713 * xterm.c (use_xim): Initialize.
13714 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
13715 (x_term_init): Maybe set use_xim.
13716
13717 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
13718
137192008-02-01 Kenichi Handa <handa@m17n.org>
13720
13721 * search.c (search_buffer): Fix case-fold-search of multibyte
13722 characters.
13723 (boyer_moore): Rename the last argument to char_high_bits.
13724
137252008-02-01 Kenichi Handa <handa@m17n.org>
13726
13727 * xdisp.c (display_string): Fix for the case of zero width glyph.
13728
13729 * xfns.c (x_set_font): Change the error message of the case that
13730 x_new_fontset returns Qt.
13731
13732 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
13733 (Finternal_set_lisp_face_attribute): Use signal_error for the
13734 error of invalid fontset.
13735
13736 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
13737 fontset, return Qt.
13738
137392008-02-01 Dave Love <fx@gnu.org>
13740
13741 * unexelf.c (unexec): Make .got handling not SGI-specific.
13742
13743 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
13744
13745 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
13746
13747 * keyboard.c (read_key_sequence): Fix type error.
13748
13749 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
13750 type error.
13751
13752 * fontset.c (fontset_add): Return Lisp_Object.
13753
137542008-02-01 Dave Love <fx@gnu.org>
13755
13756 * charset.h (charset_ordered_list_tick): Declare extern.
13757
137582008-02-01 Kenichi Handa <handa@m17n.org>
13759
13760 The following changes (and some of 2008-02-01 changes of mine) are
13761 for handling syntax, category, and case conversion for unibyte
13762 characters by converting them to multibyte on the fly. With these
13763 changes, we don't have to setup syntax and case tables for unibyte
13764 characters in each language environment.
13765
13766 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
13767 multibyte if necessary.
13768
13769 * bytecode.c (Fbyte_code): Likewise.
13770
13771 * character.h (LEADING_CODE_LATIN_1_MIN)
13772 (LEADING_CODE_LATIN_1_MAX): New macros.
13773 (unibyte_to_multibyte_table): Extern it.
13774 (unibyte_char_to_multibyte): New macro.
13775 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
13776 (CHAR_LEADING_CODE): New macro.
13777 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
13778
13779 * character.c (unibyte_to_multibyte_table): New variable.
13780 (unibyte_char_to_multibyte): Move to character.h and define as macro.
13781 (multibyte_char_to_unibyte): If C is an eight-bit character,
13782 convert it to the corresponding byte value.
13783
13784 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
13785 not 1, signals an error. Update the elements of
13786 unibyte_to_multibyte_table.
13787 (init_charset_once): Initialize unibyte_to_multibyte_table.
13788 (syms_of_charset): Define the charset `iso-8859-1'.
13789
13790 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
13791 as is without converting it to unibyte. In a unibyte buffer,
13792 convert C to multibyte before checking the syntax.
13793
13794 * lisp.h (unibyte_char_to_multibyte): Delete extern.
13795
13796 * minibuf.c (Fminibuffer_complete_word): Use the macro
13797 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
13798
13799 * regex.h (struct re_pattern_buffer): New member target_multibyte.
13800
13801 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
13802 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
13803 that is zero, convert an eight-bit char to multibyte.
13804 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
13805 non-emacs case.
13806 (PATFETCH): Convert an eight-bit char to multibyte.
13807 (HANDLE_UNIBYTE_RANGE): New macro.
13808 (regex_compile): Setup the compiled pattern for multibyte chars
13809 even if the given regex string is unibyte. Use PATFETCH_RAW
13810 instead of PATFETCH in many places. To handle `charset'
13811 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
13812 only for ASCII chars.
13813 (analyse_first) <exactn>: Simplify because the compiled pattern
13814 is multibyte.
13815 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
13816 <charset>: Use CHAR_LEADING_CODE to get leading codes.
13817 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
13818 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
13819 multibyte always 1.
13820 (re_search_2): In emacs, set the locale variable multibyte to 1,
13821 otherwise to 0. New local variable target_multibyte. Check it
13822 to decide the multibyteness of STR1 and STR2. If
13823 target_multibyte is zero, convert unibyte chars to multibyte
13824 before translating and checking fastmap.
13825 (TARGET_CHAR_AND_LENGTH): New macro.
13826 (re_match_2_internal): In emacs, set the locale variable multibyte
13827 to 1, otherwise to 0. New local variable target_multibyte. Check
13828 it to decide the multibyteness of STR1 and STR2. Use
13829 TARGET_CHAR_AND_LENGTH to fetch a character from D.
13830 <charset, charset_not>: If multibyte is nonzero, check fastmap
13831 only for ASCII chars. Call bcmp_translate with
13832 target_multibyte, not with multibyte.
13833 <begline>: Declare the local variable C as `unsigned'.
13834 (bcmp_translate): Change the last arg name to target_multibyte.
13835
13836 * search.c (compile_pattern_1): Don't adjust the multibyteness of
13837 the regexp pattern and the matching target. Set cp->buf.multibyte
13838 to the multibyteness of the regexp pattern. Set
13839 cp->but.target_multibyte to the multibyteness of the matching target.
13840 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
13841 FETCH_STRING_CHAR_ADVANCE.
13842 (Freplace_match): Convert unibyte chars to multibyte.
13843
13844 * syntax.c (char_quoted, back_comment, scan_words)
13845 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
13846 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
13847 unibyte chars to multibyte.
13848 (skip_chars): Delete the arg syntaxp, and move the code for
13849 handling syntaxes to skip_syntaxes. Change callers.
13850 Fix the case that the multibyteness of STRING and the current
13851 buffer doesn't match.
13852 (skip_syntaxes): New function.
13853 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
13854 SINGLE_BYTE_CHAR_P.
13855
138562008-02-01 Kenichi Handa <handa@m17n.org>
13857
13858 * xfaces.c (QCfontset): New variable.
13859 (LFACE_FONTSET): New macro.
13860 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
13861 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
13862 (Finternal_set_lisp_face_attribute)
13863 (Finternal_get_lisp_face_attribute): Handle QCfontset.
13864 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
13865 check also LFACE_FONTSET_INDEX.
13866 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
13867 attrs[LFACE_FONT_INDEX].
13868 (syms_of_xfaces): Intern and staticpro QCfontset.
13869
13870 * dispextern.h (enum lface_attribute_index): New member
13871 LFACE_FONTSET_INDEX.
13872
13873 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
13874
138752008-02-01 Kenichi Handa <handa@m17n.org>
13876
13877 * coding.c (coding_set_destination): Fix coding->destination for
13878 the case converting a region.
13879 (encode_coding_utf_8): Encode eight-bit chars as single byte.
13880 (encode_coding_object): Fix coding->dst_pos and
13881 coding->dst_pos_byte for the case converting a region.
13882
13883 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
13884
13885 * character.h (BYTE8_STRING): New macro.
13886
13887 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
13888
138892008-02-01 Kenichi Handa <handa@m17n.org>
13890
13891 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
13892 characters by octal form.
13893
13894 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
13895
13896 * buffer.h (_fetch_multibyte_char_len): Delete extern.
13897 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
13898 _fetch_multibyte_char_len.
13899 (FETCH_CHAR_AS_MULTIBYTE): New macro.
13900
13901 * casetab.c (set_canon, set_identity, shuffle): Simplify.
13902
13903 * casefiddle.c (casify_object): Simplify. Handle the case that
13904 the case conversion change the byte length.
13905 (casify_region): Likewise.
13906
13907 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
13908
13909 * character.c (_fetch_multibyte_char_len): Delete this variable.
13910 (syms_of_character): Setup Vprintable_chars.
13911
13912 * editfns.c (Fchar_equal): Fix for the unibyte case.
13913 (Finsert_byte): New function.
13914 (syms_of_editfns): Defsubr it.
13915
13916 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
13917 of direct code 0x3ffff.
13918
13919 * search.c (Freplace_match): Fix for the unibyte case.
13920
139212008-02-01 Kenichi Handa <handa@m17n.org>
13922
13923 * lread.c (safe_to_load_p): Fix the logic.
13924
13925 * syntax.c (scan_words): Don't treat characters belonging to
13926 different scripts as constituting a word.
13927
13928 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
13929
13930 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
13931
13932 * emacs.c (main): In the case of --unibyte, instead of aborting on
13933 finding non-empty buffer, make it unibyte.
13934
139352008-02-01 Kenichi Handa <handa@m17n.org>
13936
13937 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
13938 to create a fontset.
13939
139402008-02-01 Dave Love <fx@gnu.org>
13941
13942 * character.c (Funibyte_char_to_multibyte): Doc fix.
13943
13944 * xfns.c [HAVE_STDLIB_H]: Fix last change.
13945
139462008-02-01 Kenichi Handa <handa@m17n.org>
13947
13948 * fontset.c (fontset_add): Make the type `int'.
13949 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
13950
13951 * character.c (unibyte_char_to_multibyte)
13952 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
13953 charset_unibyte, not charset_primary.
13954
13955 * charset.h (charset_unibyte): Extern it instead of charset_primary.
13956
13957 * charset.c (charset_unibyte): Rename from charset_primary.
13958 (Funibyte_charset): Rename from Fprimary_charset.
13959 (Fset_unibyte_charset): Rename from Fset_primary_charset.
13960 (syms_of_charset): Adjust for the above changes.
13961
13962 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
13963 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
13964 it->multibyte_p is zero.
13965
13966 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
13967 Delete extern.
13968
139692008-02-01 Kenichi Handa <handa@m17n.org>
13970
13971 * coding.c (Fdefine_coding_system_internal): Fix category setting
13972 for a coding system of type iso-2022.
13973
139742008-02-01 Kenichi Handa <handa@m17n.org>
13975
13976 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
13977
139782008-02-01 Kenichi Handa <handa@m17n.org>
13979
13980 * syntax.c (Vnext_word_boundary_function_table): New variable.
13981 (next-word-boundary-function-table): Declare it as a Lisp variable
13982 in syms_of_syntax.
13983 (scan_words): Call functions in Vnext_word_boundary_function_table
13984 if any.
13985
13986 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
13987
13988 * fontset.c (fs_load_font): If fontp->charset is not negative,
13989 return fontp without setting its members.
13990
139912008-02-01 Dave Love <fx@gnu.org>
13992
13993 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
13994
13995 * m/sparc.h (HAVE_ALLOCA): Delete.
13996
13997 * s/irix6-5.h: Don't include strings.h.
13998 (bcopy, bzero, bcmp): Don't undef.
13999
14000 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
14001
14002 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
14003 (TIOCSIGSEND): Don't test IRIX6.
14004 (bcopy, bzero, bcmp): Define conditionally.
14005
140062008-02-01 Kenichi Handa <handa@m17n.org>
14007
14008 * buffer.c (Qas, Qmake, Qto): New variables.
14009 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
14010 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
14011
14012 * callproc.c (Fcall_process): Don't call insert_1_both directly if
14013 we are inserting a process output into a multibyte buffer.
14014
14015 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
14016 multibyte_char_to_unibyte.
14017
14018 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
14019 by the primary charset, make it eight-bit char.
14020 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
14021
14022 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
14023 (charset_8_bit__control, charset_8_bit_graphic)
14024 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
14025 (define_charset_internal): New function.
14026 (syms_of_charset): Call define_charset_internal for pre-defined
14027 charsets.
14028
14029 * charset.h (charset_8_bit): Extern it.
14030
14031 * coding.c (make_conversion_work_buffer): Adjust for the change
14032 of Fset_buffer_multibyte.
14033 (encode_coding_raw_text): Increment p0 in the loop.
14034
14035 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
14036
14037 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
14038 for the change of Fset_buffer_multibyte.
14039
14040 * fns.c (Fstring_to_multibyte): New function.
14041 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
14042
140432008-02-01 Dave Love <fx@gnu.org>
14044
14045 * xfns.c (x_put_x_image): Declare args.
14046
14047 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
14048 (try_font_list): Declare an arg.
14049
14050 * xdisp.c (message2_nolog, set_message): Declare an arg.
14051
14052 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
14053
14054 * syntax.c (scan_sexps_forward): Declare an arg.
14055
14056 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
14057 Declare an arg.
14058
14059 * lisp.h (Fnew_fontset): Declare.
14060
14061 * keymap.c (push_key_description): Call CHARACTERP correctly.
14062
14063 * fontset.c (fontset_add): Declare args. Call make_number correctly.
14064 (face_for_char): Delete unused vars.
14065 (Fset_fontset_font): Doc fix. Delete unused vars.
14066
14067 * doc.c (Fsubstitute_command_keys): Delete unused vars.
14068
14069 * composite.c (update_compositions): Declare arg.
14070
14071 * cm.c (calccost, cmgoto): Declare args.
14072
14073 * charset.c: Remove `emacs' conditional. Doc fixes.
14074 (map_char_table_for_charset): Declare.
14075
14076 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
14077
14078 * ccl.c: Remove `emacs' conditional.
14079
140802008-02-01 Kenichi Handa <handa@m17n.org>
14081
14082 The following changes are to allow specifying multiple font
14083 patterns for a character range (specified by script or charset).
14084
14085 * Makefile.in (abbrev.o): Depend on syntax.h.
14086 (xfaces.o): Depend on charset.h.
14087
14088 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
14089 SINGLE_BYTE_CHAR_P.
14090
14091 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
14092
14093 * character.h (Vchar_script_table): Extern it.
14094
14095 * character.c (Vscript_alist): Delete.
14096 (Vchar_script_table, Qchar_script_table): New variable.
14097 (syms_of_character): Declare Vchar_script_table as a lisp variable
14098 and initialize it.
14099
14100 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
14101 have property char-table-extra-slots, make no extra slot.
14102
14103 * dispextern.h (struct face): Delete member `charset'.
14104 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
14105 SINGLE_BYTE_CHAR_P.
14106 (choose_face_font, lookup_non_ascii_face, font_name_registry):
14107 Add prototypes.
14108 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
14109 (generate_ascii_font_name): Rename from generate_ascii_font.
14110
14111 * fontset.h (get_font_repertory_func): New prototype.
14112 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
14113 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
14114
14115 * fontset.c (Qprepend, Qappend): New variables.
14116 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
14117 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
14118 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
14119 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
14120 (fontset_ref_and_range, fontset_add, reorder_font_vector)
14121 (load_font_get_repertory): New functions.
14122 (fontset_set): Delete.
14123 (fontset_face): New arg FACE. Return face ID, not face.
14124 Complete re-write to handle new fontset structure. Change caller.
14125 (free_face_fontset): Use ASET istead of AREF (X) = Y.
14126 (face_for_char): Don't call lookup_face.
14127 (make_fontset_for_ascii_face): New arg FACE.
14128 (fs_load_font): New arg CHARSET_ID. Don't check
14129 Vfont_encoding_alist here.
14130 (find_font_encoding): New function.
14131 (list_fontsets): Use STRINGP, not ! NILP.
14132 (accumulate_script_ranges): New function.
14133 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
14134 re-written to handle new fontset structure.
14135 (Ffontset_font): Return a copy of element.
14136 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
14137 docstring of font-encoding-alist.
14138
14139 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
14140 (Fset_fotset_font): Fix arguments to 5.
14141
14142 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
14143
14144 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
14145 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
14146 (highlight_trailing_whitespace): Adjust for the change of
14147 lookup_named_face.
14148
14149 * xfaces.c: Include charset.h.
14150 (load_face_font): Delete argument C. Change caller.
14151 (generate_ascii_font_name): Rename from generate_ascii_font.
14152 (font_name_registry): New function.
14153 (cache_face): Store ascii faces before non-ascii faces in buckets.
14154 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
14155 Lookup only ascii faces.
14156 (lookup_non_ascii_face): New function.
14157 (lookup_named_face): Delete argument C. Change caller.
14158 (lookup_derived_face): Delete argument C. Change caller.
14159 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
14160 a string, just call font_list with it.
14161 (choose_face_font): Delete arguments FACE and C. New arg
14162 FONT_SPEC. Change caller.
14163 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
14164 Change caller.
14165 (realize_non_ascii_face): New function.
14166 (realize_x_face): Call load_face_font here.
14167 (realize_tty_face): Delete argument C. Change caller.
14168 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
14169 get a face ID.
14170 (dump_realized_face): Don't print charset of FACE.
14171
14172 * xfns.c (x_set_font): Always call x_new_fontset and
14173 store_frame_parameter.
14174 (Fx_create_frame): Call x_new_fontset, not x_new_font.
14175 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
14176
14177 * xterm.h (x_get_font_repertory): Extern it.
14178
14179 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
14180 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
14181 it->multibyte_p is zero.
14182 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
14183 (x_new_fontset): If FONTSETNAME doesn't match any existing
14184 fontsets, create a new one.
14185 (x_get_font_repertory): New function.
14186
141872008-02-01 Kenichi Handa <handa@m17n.org>
14188
14189 * coding.c (Ffind_coding_systems_region_internal): Detect an
14190 ASCII only string correctly.
14191
14192 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
14193 version is 0.
14194
141952008-02-01 Kenichi Handa <handa@m17n.org>
14196
14197 * lread.c: Include "coding.h".
14198 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
14199 (load_each_byte, unread_char): New variables.
14200 (readchar_backlog): Delete.
14201 (readchar): Return a character unless load_each_byte is nonzero.
14202 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
14203 cons. If unread_char is not -1, simply return it.
14204 (unreadchar): Handle the case that readcharfun is
14205 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
14206 (read_multibyte): Delete.
14207 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
14208 (read_emacs_mule_char): New functions.
14209 (Fload): Even if the file doesn't have the extension ".elc", if
14210 safe_to_load_p returns a positive version number, assume that the
14211 file contains bytecompiled code. If the version is less than 22,
14212 load the file while decoding multibyte sequences by emacs-mule.
14213 (readevalloop): Don't use readchar_backlog.
14214 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
14215 (Fread_from_string): Pay attention to the case that STREAM is a cons.
14216 (read_escape): Delete the arg BYTEREP.
14217 (read1): Set load_each_byte to 1 temporarily while handling
14218 #@NUMBER. Don't call read_multibyte.
14219 (read_vector): Call Fread with a cons. If readcharfun is
14220 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
14221 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
14222 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
14223 and Qload_force_doc_strings.
14224
142252008-02-01 Kenichi Handa <handa@m17n.org>
14226
14227 * xdisp.c (face_before_or_after_it_pos): Call
14228 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
14229
142302008-02-01 Kenichi Handa <handa@m17n.org>
14231
14232 * character.h (TRAILING_CODE_P): New macro.
14233 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
14234 (string_char_with_unification): Fix prototype.
14235 (Vscript_alist): Extern it.
14236
14237 * character.c (Vscript_alist): New variable.
14238 (string_char_with_unification, str_as_unibyte)
14239 (string_escape_byte8): Add `const' to local variables.
14240 (syms_of_character): Declare script-alist as a Lisp variable.
14241
14242 * charset.h (Vcharset_ordered_list): Extern it.
14243 (charset_ordered_list_tick): Extern it.
14244 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
14245 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
14246 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
14247 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
14248 (Funify_charset): Adjust for the change of Funify_charset.
14249
14250 * charset.c (charset_ordered_list_tick): New variable.
14251 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
14252 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
14253 deunify intead of unify a charset.
14254 (string_xstring_p): Add `const' to local variables.
14255 (find_charsets_in_text): Add `const' to arguments and local variables.
14256 (encode_char): Adjust for the change of Funify_charset. Fix
14257 detecting of invalid code.
14258 (Fset_charset_priority): Increment charset_ordered_list_tick.
14259 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
14260 and TO_CODE.
14261
14262 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
14263 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
14264 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
14265 (decode_coding_ccl, consume_chars)
14266 (Ffind_coding_systems_region_internal)
14267 (Fcheck_coding_systems_region): Add `const' to local variables.
14268
14269 * print.c (print_object): Use octal form for printing the
14270 contents of a bool vector.
14271
142722008-02-01 Dave Love <fx@gnu.org>
14273
14274 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
14275 <version == 20>: Refuse to load.
14276
142772008-02-01 Dave Love <fx@gnu.org>
14278
14279 * fns.c: Move coding.h.
14280 (Qcodeset, Qdays, Qmonths): New.
14281 (concat): Use CHARACTERP instead of INTEGERP.
14282 (Flocale_codeset): Delete.
14283 (Flanginfo): New function.
14284 (syms_of_fns): Change accordingly.
14285
14286 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
14287
142882008-02-01 Dave Love <fx@gnu.org>
14289
14290 * casetab.c (init_casetab_once, init_casetab_once): Fix
14291 CHAR_TABLE_SET call.
14292
14293 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
14294
14295 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
14296
14297 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
14298 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
14299 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
14300
14301 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
14302
14303 * coding.c (ENCODE_DESIGNATION, decode_eol)
14304 (make_conversion_work_buffer, code_conversion_restore)
14305 (Fdefine_coding_system_internal): Convert Lisp types.
14306 (code_conversion_restore): Use EQ, not ==.
14307 (Fencode_coding_string): Fix code_convert_string call.
14308
14309 * coding.h (code_convert_region): Fix prototype.
14310
14311 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
14312
14313 * fontset.c (fontset_ref, fontset_set, fs_load_font)
14314 (Ffontset_info): Convert Lisp types.
14315
14316 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
14317
14318 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
14319
14320 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
14321
14322 * chartab.c: Include "...h", not <...h> in some cases.
14323
14324 * callproc.c (Fcall_process): Remove unused variables.
14325
143262008-02-01 Dave Love <fx@gnu.org>
14327
14328 * coding.c (Fset_coding_system_priority): Allow null arg list.
14329
143302008-02-01 Dave Love <fx@gnu.org>
14331
14332 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
14333 (Fself_insert_and_exit): Use CHARACTERP.
14334
14335 * callproc.c (Fcall_process): Remove unused vars.
14336
14337 * xterm.c (XTread_socket): Add extra dead keysyms.
14338
14339 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
14340
14341 * dispextern.h: Remove prototypes for redraw_frame,
14342 redraw_garbaged_frames.
14343
14344 * cmds.c (Fself_insert_command): Use CHARACTERP.
14345
14346 * chartab.c (make_sub_char_table): Remove unused var.
14347 (Fset_char_table_default, Fmap_char_table): Doc fix.
14348
14349 * keymap.c (access_keymap): Remove generic char code.
14350 (push_key_description): Use CHARACTERP.
14351
143522008-02-01 Dave Love <fx@gnu.org>
14353
14354 * charset.c: Doc fixes.
14355 (Funify_charset): Extra checking.
14356
143572008-02-01 Dave Love <fx@gnu.org>
14358
14359 * lread.c: Remove some unused variables.
14360 (safe_to_load_p): If safe, return the magic number version byte.
14361 (Fload): Maybe use load-with-code-conversion.
14362
143632008-02-01 Kenichi Handa <handa@m17n.org>
14364
14365 * category.c (Fmodify_category_entry): Don't modify the contents
14366 of category_set for characters out of the range. Avoid
14367 unnecessary modification.
14368
14369 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
14370 Vchar_unify_table. The default value of the table is now nil.
14371
14372 * character.c (syms_of_character): Setup Vchar_width_table for
14373 eight-bit-control and raw-byte chars.
14374
14375 * charset.h (enum define_charset_arg_index): Delete
14376 charset_arg_parents and add charset_arg_subset and
14377 charset_arg_superset.
14378 (enum charset_attr_index): Delete charset_parents and add
14379 charset_subset and charset_superset.
14380 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
14381 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
14382 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
14383 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
14384 (CHARSET_SUPERSET): New macros.
14385 (charset_work): Extern it.
14386 (ENCODE_CHAR): Use charset_work.
14387 (CHAR_CHARSET_P): Adjust for the change of encoder format.
14388 (map_charset_chars): Extern it.
14389
14390 * charset.c (load_charset_map): Set the default value of encoder
14391 and deunifier char-tables to nil.
14392 (map_charset_chars): Change argument. Change callers. Use
14393 map_char_table_for_charset instead of map_char_table.
14394 (Fmap_charset_chars): New optional args from_code and to_code.
14395 (Fdefine_charset_internal): Adjust for the change of
14396 `define-charset' (:parents -> :subset or :superset).
14397 (charset_work): New variable.
14398 (encode_char, syms_of_charset): Adjust for the change of
14399 Fdefine_charset_internal.
14400 (Ffind_charset_string): Setup the vector `charsets' correctly.
14401
14402 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
14403 the previous change.
14404 (char_table_ref_and_range): Adjust for the above change.
14405 (map_sub_char_table_for_charset): New function.
14406 (map_char_table_for_charset): New function.
14407
14408 * keymap.c (describe_vector): Handle a char-table directly here.
14409 (describe_char_table): Delete.
14410
14411 * lisp.h (map_charset_chars): Delete.
14412
144132008-02-01 Dave Love <fx@gnu.org>
14414
14415 * fns.c (count_combining): Comment out (unused).
14416 (Flocale_codeset): New.
14417 (syms_of_fns): Defsubr it.
14418
14419 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
14420 (size_t): Remove.
14421
144222008-02-01 Dave Love <fx@gnu.org>
14423
14424 * Makefile.in (chartab.o): Depend on charset.h.
14425
144262008-02-01 Kenichi Handa <handa@m17n.org>
14427
14428 * character.c (syms_of_character): Set the default value of
14429 Vprintable_chars to Qnil.
14430
144312008-02-01 Dave Love <fx@gnu.org>
14432
14433 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
14434
144352008-02-01 Kenichi Handa <handa@m17n.org>
14436
14437 * charset.c (load_charset_map): Handle the case that from < to
14438 correctly.
14439
14440 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
14441 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
14442 Pay attention to raw-8-bit chars.
14443
144442008-02-01 Kenichi Handa <handa@m17n.org>
14445
14446 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
14447 It is not bytecompiled now.
14448
14449 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
14450 (charset_jisx0208): New variables.
14451 (Fdefine_charset_internal): Setup them if appropriate.
14452 (init_charset_once): Initialize them to -1.
14453
14454 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
14455 (charset_jisx0208): Extern them.
14456
14457 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
14458 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
14459 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
14460 (setup_iso_safe_charsets): Fix arguments to Fassq.
14461 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
14462 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
14463 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
14464 (encode_coding_iso_2022): Change the 1st arg to
14465 ENCODE_ISO_CHARACTER to a variable.
14466
144672008-02-01 Kenichi Handa <handa@m17n.org>
14468
14469 * charset.h (enum define_charset_arg_index): New enums
14470 charset_arg_min_code and charset_arg_max_code.
14471 (struct charset): New member char_index_offset.
14472
14473 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
14474 Take charset->char_index_offset into account.
14475 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
14476 args[charset_arg_max_code]. Setup charset.char_index_offset.
14477 (syms_of_charset): Fix args to Fdefine_charset_internal.
14478
144792008-02-01 Dave Love <fx@gnu.org>
14480
14481 * coding.c (decode_coding_utf_8): Reject overlong sequences.
14482
144832008-02-01 Dave Love <fx@gnu.org>
14484
14485 * coding.c: Doc fixes.
14486 (Fcoding_system_aliases): Fix return value.
14487 (Qmac): Remove (duplicated) definition.
14488
144892008-02-01 Dave Love <fx@gnu.org>
14490
14491 * charset.c (Fcharset_priority_list, Fset_charset_priority): New
14492 functions.
14493
14494 * character.c (Fstring): Doc fix.
14495
14496 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
14497
14498 * fontset.c (Ffontset_info): Doc fix. Return charset names, not
14499 ids.
14500 (font-encoding-alist): Doc fix.
14501
145022008-02-01 Dave Love <fx@gnu.org>
14503
14504 * term.c (costs_set): Declare static, non-initialized for pcc.
14505 (encode_terminal_code): Remove unused var.
14506
14507 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
14508 for K&R.
14509
14510 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
14511
14512 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
14513 (suffixes): Move out of make_subsidiaries for K&R.
14514
14515 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
14516
14517 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
14518
145192008-02-01 Dave Love <fx@gnu.org>
14520
14521 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
14522
14523 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
14524
145252008-02-01 Yong Lu <lyongu@asia-infonet.com>
14526
14527 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
14528
14529 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
14530
145312008-02-01 Kenichi Handa <handa@m17n.org>
14532
14533 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
14534 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
14535
145362008-02-01 Kenichi Handa <handa@m17n.org>
14537
14538 * coding.c (decode_coding_charset): Adjust for the change of
14539 Fdefine_coding_system_internal.
14540 (Fdefine_coding_system_internal): For a coding system of
14541 `charset' type, store a list of charset IDs in
14542 `charset_attr_charset_valids' element of coding attributes.
14543
145442008-02-01 Kenichi Handa <handa@m17n.org>
14545
14546 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
14547 (emacs_mule_char): New arg src. Delete arg `composition'. Change
14548 caller. Handle 2-byte and 3-byte charsets correctly.
14549 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
14550 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
14551 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
14552 (DECODE_EMACS_MULE_21_COMPOSITION): Call
14553 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
14554 sequence.
14555 (decode_coding_emacs_mule): Handle composition correctly. Rewind
14556 `src' and `consumed_chars' correctly before calling emacs_mule_char.
14557 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
14558 and alt&rule composition.
14559 (decode_coding_iso_2022): Handle composition correctly.
14560 (init_coding_once): Setup emacs_mule_bytes for private charsets.
14561
14562 * charset.c (Fdefine_charset_internal): Fix bug for the case of
14563 re-defining a charset. If the charset has :emacs-mule-id, setup
14564 emacs_mule_bytes.
14565 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
14566
145672008-02-01 Kenichi Handa <handa@m17n.org>
14568
14569 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
14570 (encode_coding_big5, encode_coding_charset): If coding requires safe
14571 encoding, produce a character specified by
14572 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
14573
145742008-02-01 Dave Love <fx@gnu.org>
14575
14576 * xterm.c (XSetIMValues): Declare.
14577
14578 * process.c: Conditionally include sys/wait.h, pty.h.
14579
14580 * print.c (print_object): Fix print format for 64-bit systems.
14581
14582 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
14583
14584 * buffer.c (emacs_strerror): Declare.
14585
14586 * fontset.c (Fclear_face_cache): Declare.
14587 (accumulate_font_info): Comment-out (unused).
14588 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
14589 variables.
14590
14591 * character.h (string_escape_byte8): Declare.
14592
14593 * charset.c (load_charset_map, load_charset_map_from_file): Remove
14594 unused vars.
14595 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
14596 (Fmap_charset_chars): Doc fix.
14597
14598 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
14599 (Fset_coding_system_priority, Fset_coding_system_priority)
14600 (Fdefine_coding_system_internal): Doc fix.
14601
146022008-02-01 Dave Love <fx@gnu.org>
14603
14604 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
14605
146062008-02-01 Kenichi Handa <handa@m17n.org>
14607
14608 * character.c (string_escape_byte8): Make multibyte string with
14609 correct size.
14610
14611 * charset.c (Fmake_char): Delete unnecessary code.
14612
146132008-02-01 Kenichi Handa <handa@m17n.org>
14614
14615 * xfns.c (x_encode_text): Allocate coding.destination here, and
14616 call encode_coding_object with dst_object Qnil.
14617
14618 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
14619 multibyte form correctly.
14620
14621 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
14622 against Vfont_encoding_alist.
14623
14624 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
14625 handling of charset list.
14626 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
14627 (decode_coding_object): Move point to coding->dst_pos before
14628 calling post-read-conversion function.
14629 (encode_coding_object): Give correct arguments to
14630 pre-write-conversion. Ignore the return value of
14631 pre-write-conversion function. Pay attention to the case that
14632 pre-write-conversion changes the current buffer. If dst_object is
14633 Qt, even if coding->src_bytes is zero, allocate at least one byte
14634 to coding->destination.
14635
14636 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
14637
14638 * charset.c (Fmake_char): Make it more backward compatible.
14639 (Fmap_charset_chars): Fix docstring.
14640
146412008-02-01 Dave Love <fx@gnu.org>
14642
14643 * coding.c: Doc fixes.
14644 (Fdefine_coding_system_alias): Use names, not symbols, in
14645 coding-system-alist.
14646
146472008-02-01 Kenichi Handa <handa@m17n.org>
14648
14649 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
14650 of calling free_realized_face.
14651
146522008-02-01 Yong Lu <lyongu@asia-infonet.com>
14653
14654 * charset.c (read_hex): Don't treat SPC as a comment starter.
14655 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
14656 (Fdecode_char): Fix typo.
14657
146582008-02-01 Kenichi Handa <handa@m17n.org>
14659
14660 * charset.h (struct charset): New member `code_space_mask'.
14661
14662 * coding.c (coding_set_source): Delete the local variable beg_byte.
14663 (encode_coding_charset, Fdefine_coding_system_internal):
14664 Delete the local variable charset.
14665 (Fdefine_coding_system_internal): Setup
14666 attrs[coding_attr_charset_valids] correctly.
14667
14668 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
14669 member to check if CODE is valid or not.
14670 (Fdefine_charset_internal): Initialize `code_space_mask' member.
14671 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
14672 is within the range of charset->min_code and carset->max_code.
14673
146742008-02-01 Dave Love <fx@gnu.org>
14675
14676 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
14677
14678 * dispextern.h (generate_ascii_font): Fix return type.
14679
14680 * xfaces.c (generate_ascii_font): Fix arg declaration.
14681
14682 * coding.c (coding_inherit_eol_type)
14683 (Fset_terminal_coding_system_internal)
14684 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
14685
146862008-02-01 Kenichi Handa <handa@m17n.org>
14687
14688 * coding.c (decode_coding_charset, encode_coding_charset): Handle
14689 multiple charsets correctly.
14690
146912008-02-01 Kenichi Handa <handa@m17n.org>
14692
14693 * search.c (boyer_moore): Fix handling of multibyte character
14694 translation.
14695
14696 * xdisp.c (display_mode_element): When the variable `elt' is
14697 changed, update `this' and `lisp_string'.
14698
146992008-02-01 Kenichi Handa <handa@m17n.org>
14700
14701 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
14702
14703 * callproc.c (Fcall_process): Be sure to give the current buffer
14704 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
14705
14706 * charset.c (struct charset_map_entries): New struct.
14707 (load_charset_map): Rename from parse_charset_map. New args
14708 entries and n_entries. Change caller.
14709 (load_charset_map_from_file): Rename from load_charset_map.
14710 Change caller. New arg control_flag. Call load_charset_map at
14711 the tail.
14712 (load_charset_map_from_vector): New function.
14713 (Fdefine_charset_internal): Setup charset.compact_codes_p.
14714 (encode_char): If the charset is compact, change a character index
14715 to a code point.
14716
14717 * coding.c (coding_alloc_by_making_gap): Check the case that the
14718 source and destination are the same correctly.
14719 (decode_coding_raw_text): Set coding->consumed_char and
14720 coding->consumed to 0.
14721 (produce_chars): If coding->chars_at_source is nonzero, update
14722 coding->consumed_char and coding->consumed before calling
14723 alloc_destination.
14724 (Fdefine_coding_system_alias): Register ALIAS in
14725 Vcoding_system_alist.
14726 (syms_of_coding): Define `no-conversion' coding system at the tail.
14727
14728 * fileio.c (Finsert_file_contents): Set coding_system instead of
14729 val. If the current buffer is multibyte, always call
14730 decode_coding_gap.
14731
14732 * xfaces.c (try_font_list): Give higher priority to fontset's
14733 family than face's family.
14734
147352008-02-01 Kenichi Handa <handa@m17n.org>
14736
14737 * callproc.c (Fcall_process): Be sure to give the current buffer
14738 to decode_coding_c_string.
14739
14740 * xfaces.c (try_font_list): Give a family specified in a fontset
14741 higher priority than a family specified in a face.
14742
147432008-02-01 Kenichi Handa <handa@m17n.org>
14744
14745 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
14746 Fix arguments to insert_from_buffer.
14747
14748 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
14749
147502008-02-01 Kenichi Handa <handa@m17n.org>
14751
14752 * coding.c (produce_chars): Set the variable `multibytep' correctly.
14753 (decode_coding_gap): Set coding->dst_multibyte correctly.
14754
147552008-02-01 Kenichi Handa <handa@m17n.org>
14756
14757 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
14758 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
14759 (encode_coding_utf_16): Substitute coding->default_char for
14760 non-Unicode characters.
14761 (decode_coding): Don't call record_insert here.
14762 (setup_coding_system): Initialize `surrogate' of
14763 coding->spec.utf_16 to 0.
14764 (EMIT_ONE_BYTE): Fix for multibyte case.
14765
14766 * insdel.c (insert_from_gap): Call record_insert.
14767
147682008-02-01 Kenichi Handa <handa@m17n.org>
14769
14770 * casefiddle.c (casify_region): Fix multibyte case.
14771
14772 * character.c (c_string_width): Add return type `int'.
14773 (char_string_with_unification): Delete arg ADVANCED.
14774
14775 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
14776 (CHAR_STRING): Adjust for the change of char_string_with_unification.
14777 (CHAR_STRING_ADVANCE): Make it do-while statement.
14778
14779 * chartab.c (sub_char_table_set_range): Optimize for the case
14780 DEPTH == 3. Add workaround code for a GCC optimization bug.
14781
14782 * charset.c (parse_charset_map): Remove an unused variable.
14783
14784 * coding.c: Delete unused variables.
14785
14786 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
14787 earlier. If inserted is zero and the coding system doesn't
14788 require flushing, don't call decode_coding_gap.
14789
14790 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
14791
147922008-02-01 Kenichi Handa <handa@m17n.org>
14793
14794 The following changes are for using Unicode as an internal
14795 character model, and use UTF-8 format for buffer/string
14796 representation.
14797
14798 * .gdbinit (xchartable): Adjust for the change of char table structure.
14799 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
14800
14801 * Makefile.in (obj): Add character.o and chartab.o.
14802 (lisp, shortlisp): Remove utf-8.elc.
14803 (*.o): For many files, change dependency on charset.h to
14804 character.h, and add dependency on character.h.
14805 (character.o, chartab.o): New targets.
14806
14807 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
14808 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
14809 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
14810 of "charset.h".
14811
14812 * dired.c, filelock.c: Include "character.h".
14813
14814 * alloc.c: Include "character.h" instead of "charset.h".
14815 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
14816 (syms_of_alloc): Remove defsubr for Smake_char_table.
14817
14818 * buffer.c: Include "character.h" instead of "charset.h", don't
14819 include "coding.h".
14820 (Fset_buffer_multibyte): Adjust for UTF-8.
14821
14822 * buffer.h: EXFUN Fbuffer_live_p.
14823
14824 * callproc.c: Include "character.h" instead of "charset.h".
14825 (Fcall_process): Big change for the new code-conversion APIs.
14826
14827 * casetab.c: Include "character.h" instead of "charset.h".
14828 (set_canon, set_identity, shuffle): Adjust for the new
14829 map_char_table spec.
14830 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
14831 accessing the char table structure.
14832
14833 * chartab.c: New file that implements char table.
14834
14835 * category.c: Include "character.h".
14836 (copy_category_entry): New function.
14837 (copy_category_table): Call map_char_table and copy_category_entry.
14838 (Fmake_category_table): Initialize all top-level slots.
14839 (char_category_set): New function.
14840 (modify_lower_category_set): Delete.
14841 (Fmodify_category_entry): Call char_table_ref_and_range.
14842
14843 * category.h (CATEGORY_SET): Just call char_category_set.
14844
14845 * ccl.c: Include "character.h".
14846 (Qccl, Qcclp): New variables.
14847 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
14848 it's less than 256.
14849 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
14850 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
14851 and DST type.
14852 (ccl_driver): Change types of argument, adjust code accordingly.
14853 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
14854 ccl_driver.
14855 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
14856
14857 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
14858 New members src_multibyte, dst_multibyte, consumed, and produced.
14859 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
14860 (CODING_SPEC_CCL_PROGRAM): New macro.
14861 (ccl_driver): Update prototype.
14862 (Qccl, Qcclp, Fccl_program_p): Extern them.
14863 (CHECK_CCL_PROGRAM): New macro.
14864
14865 * character.c, character.h, chartab.c: New files.
14866
14867 * charset.c: Mostly re-written. Move character and multibyte sequence
14868 handling codes to character.c.
14869
14870 * charset.h: Mostly re-written. Move character and multibyte sequence
14871 handling codes to character.h.
14872
14873 * coding.c, coding.h: Mostly re-written.
14874
14875 * composite.c: Include "character.h" instead of "charset.h".
14876 (CHAR_WIDTH): Move to character.h.
14877 (HASH_KEY, HASH_VALUE): Delete.
14878
14879 * composite.h (enum composition_method): Change order of enumeration
14880 symbols.
14881
14882 * data.c: Include "character.h" instead of "charset.h".
14883 (Faref): Call CHAR_TABLE_REF for a char table.
14884 (Faset): Call CHAR_TABLE_SET for a char table.
14885
14886 * dispextern.h (free_realized_face, check_face_attribytes)
14887 (generate_ascii_font): Extern them.
14888 (free_realized_multibyte_face): Delete extern.
14889
14890 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
14891 table structure.
14892
14893 * editfns.c: Include "character.h" instead of "charset.h".
14894 (Fchar_to_string): Always call CHAR_STRING.
14895
14896 * emacs.c (main): Call init_charset_once, init_charset,
14897 syms_of_chartab, and syms_of_character.
14898
14899 * fileio.c: Include "character.h" instead of "charset.h".
14900 (Finsert_file_contents): Big change for the new code-conversion API.
14901 (choose_write_coding_system, Fwrite_region): Likewise.
14902 (build_annotations_2): Delete.
14903 (e_write): Big change for the new code-conversion API.
14904
14905 * fns.c: Include "character.h" instead of "charset.h".
14906 (copy_sub_char_table): Move to chartab.c.
14907 (Fcopy_sequence): Call copy_char_table for a char table.
14908 (concat): Delete codes calling count_multibyte.
14909 (string_char_to_byte, string_byte_to_char): Adjust for the new
14910 multibyte form.
14911 (internal_equal): Adjust for the change of char table structure.
14912 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
14913 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
14914 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
14915 (char_table_translate, optimize_sub_char_table)
14916 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
14917 chartab.c.
14918 (char_table_ref_and_index): Delete.
14919 (HASH_KEY, HASH_VALUE): Move to lisp.h.
14920 (Fmd5): Call preferred_coding_system instead of accessing
14921 Vcoding_category_list. Adjust for the new code-conversion API.
14922 (syms_of_fns): Move defsubr for char table related functions to
14923 chartab.c.
14924
14925 * fontset.c: Mostly re-written.
14926
14927 * fontset.h (struct font_info): Change type of the member encoding_type.
14928 (enum FONT_SPEC_INDEX): New enum.
14929 (fontset_font_pattern, fs_load_font): Update prototype.
14930 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
14931
14932 * indent.c: Include "character.h" instead of "charset.h".
14933 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
14934
14935 * insdel.c: Include "character.h" instead of "charset.h".
14936 (copy_text): Don't refer to Vnonascii_translation_table.
14937 (insert_from_gap): New function.
14938
14939 * keyboard.c: Include "character.h" instead of "charset.h".
14940 (command_loop_1): Never call direct_output_forward_char before
14941 a non-ASCII character.
14942 (read_char): If Vkeyboard_translate_table is a char table, always
14943 translate a character.
14944
14945 * keymap.c: Include "character.h".
14946 (store_in_keymap): Handle the case that IDX is a cons.
14947 (Fdefine_key): Handle the case that KEY is a cons and the car part
14948 is also a cons (range).
14949 (push_key_description): Adjust for the new character code.
14950 (describe_vector): Call describe_char_table for a char table.
14951 (describe_char_table): New function.
14952
14953 * keymap.h (describe_char_table): Extern it.
14954
14955 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
14956 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
14957 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
14958 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
14959 Delete.
14960 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
14961 structure.
14962 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
14963 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
14964 (CHARTAB_SIZE_BITS_3): New macros.
14965 (chartab_size): Extern it.
14966 (struct Lisp_Char_Table): Re-design.
14967 (struct Lisp_Sub_Char_Table): New structure.
14968 (HASH_KEY, HASH_VALUE): Move from fns.c.
14969 (CHARACTERBITS): Define as 22.
14970 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
14971 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
14972 (GC_SUB_CHAR_TABLE_P): New macro.
14973 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
14974 (code_convert_string_norecord): Deleted extern.
14975 (init_character_once, syms_of_character, init_charset)
14976 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
14977
14978 * lread.c: Include "character.h".
14979 (read_multibyte): New arg NBYTES.
14980 (read_escape): Change the meaning of returned *BYTEREP.
14981 (to_multibyte): Delete.
14982 (read1): Adjust the handling of char table and string.
14983
14984 * print.c: Include "character.h" instead of "charset.h".
14985 (print_string): Convert 8-bit raw bytes to octal form by
14986 string_escape_byte8.
14987 (print_object): Adjust for the new multibyte form. Print 8-bit
14988 raw bytes always in octal form. Handle sub char table correctly.
14989
14990 * process.c: Include "character.h" instead of "charset.h".
14991 (read_process_output, send_process): Adjust for the new
14992 code-conversion API.
14993
14994 * puresize.h (BASE_PURESIZE): Increase.
14995
14996 * regex.c: Include "character.h" instead of "charset.h".
14997 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
14998 (regex_compile): Accept a range whose starting and ending
14999 character have different leading bytes.
15000 (analyse_first): Adjust for the above change.
15001
15002 * search.c: Include "character.h" instead of "charset.h".
15003 (search_buffer, boyer_moore): Adjust for the new multibyte form.
15004 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
15005
15006 * syntax.c: Include "character.h" instead of "charset.h".
15007 (syntax_parent_lookup): Delete.
15008 (Fmodify_syntax_entry): Accept a cons as CHAR.
15009 (skip_chars): Adjust for the new multibyte form.
15010 (init_syntax_once): Call char_table_set_range instead of directly
15011 accessing the structure of a char table.
15012
15013 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
15014 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
15015 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
15016 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
15017
15018 * term.c: Include "buffer.h" and "character.h".
15019 (encode_terminal_code, write_glyphs): Adjust for the new
15020 code-conversion API.
15021 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
15022
15023 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
15024
15025 * xdisp.c: Include "character.h".
15026 (get_next_display_element): Adjust for the new multibyte form.
15027 (disp_char_vector): Adjust for the new char table structure.
15028 (decode_mode_spec_coding): Adjust for the new structure of
15029 coding system.
15030 (decode_mode_spec): Adjust for the new code-conversion API.
15031
15032 * xfaces.c: Include "character.h" instead of "charset.h".
15033 (load_face_font): Adjust for the change of choose_face_font and
15034 FS_LOAD_FONT.
15035 (generate_ascii_font): New function.
15036 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
15037 (set_font_frame_param): Adjust for the change of choose_face_font.
15038 (free_realized_face): Make it public.
15039 (free_realized_faces_for_fontset): Rename from
15040 free_realized_multibyte_face. Free also faces realized for ASCII.
15041 (choose_face_font): Change arguments. Adjust for the change of
15042 fontset_font_pattern and FS_LOAD_FONT.
15043
15044 * xfns.c: Include "character.h".
15045 (x_encode_text): Adjust for the new code-conversion API.
15046
15047 * xselect.c: Don't include "charset.h".
15048 (selection_data_to_lisp_data): Adjust for the new code conversion API.
15049
15050 * xterm.c: Include "character.h".
15051 (x_encode_char): New argument CHARSET. Change caller.
15052 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
15053 Call ENCODE_CHAR instead of SPLIT_CHAR.
15054 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
15055 CHAR_WIDTH instead of CHARSET_WIDTH.
15056 (XTread_socket): Adjust for the new code-conversion API.
15057 (x_new_font): Adjust for the change of FS_LOAD_FONT.
15058 (x_load_font): Adjust for the change of struct font.
15059
150602008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
15061
15062 * xfaces.c (face_at_buffer_position): Remove unused vars.
15063
150642008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15065
15066 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
15067 Fix overflow checking.
15068
150692008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15070
15071 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
15072 Cancel previous change.
15073
150742008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
15075
15076 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
15077 ccl->eight_bit_control. Fix check for buffer overflow.
15078 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
15079 (ccl_driver): Initialize extra_bytes to 0.
15080
150812008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
15082
15083 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
15084 return it ORed with ctrl_modifier.
15085
150862008-01-29 Miles Bader <miles@gnu.org>
15087
15088 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
15089
150902008-01-28 Jason Rumney <jasonr@gnu.org>
15091
15092 * w32.c (stat): Don't double check for networked drive.
15093
150942008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
15095
15096 * window.c (run_window_configuration_change_hook): New function.
15097 Code extracted from set_window_buffer. Set the selected frame.
15098 (set_window_buffer): Use it.
15099 * window.h (run_window_configuration_change_hook): Declare.
15100 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
15101
15102 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
15103
151042008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
15105
15106 * Makefile.in: Remove references to unused macros.
15107
151082008-01-26 Eli Zaretskii <eliz@gnu.org>
15109
15110 * w32.c (g_b_init_get_sid_sub_authority)
15111 (g_b_init_get_sid_sub_authority_count): New static variables.
15112 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
15113 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
15114 (init_user_info): Use them to retrieve uid and gid.
15115 Use 500/513, the Windows defaults, as Administrator's uid/gid.
15116 (fstat): Use pw_uid and pw_gid from the_passwd structure for
15117 st_uid and st_gid of the file.
15118
151192008-01-26 Jason Rumney <jasonr@gnu.org>
15120
15121 * w32.c (logon_network_drive): New function.
15122 (stat): Use it.
15123
151242008-01-26 Chong Yidong <cyd@stupidchicken.com>
15125
15126 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
15127 invisible text covered with an ellipsis.
15128
151292008-01-25 Richard Stallman <rms@gnu.org>
15130
15131 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
15132 jump back to beginning. Move some other initializations after that.
15133 (Qwindow_text_change_functions, Vwindow_text_change_functions):
15134 New variables.
15135 (syms_of_xdisp): Init them.
15136
15137 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
15138
15139 * buffer.c (reset_buffer_local_variables):
15140 Implement `permanent-local-hook'.
15141 (Qpermanent_local_hook): New variable.
15142 (syms_of_buffer): Init and staticpro it.
15143
151442008-01-25 Michael Albinus <michael.albinus@gmx.de>
15145
15146 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
15147
151482008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
15149
15150 * fns.c (Fclrhash): Return TABLE.
15151
151522008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15153
15154 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
15155 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
15156 is set even without positional changes.
15157 (x_scroll_bar_clear): Set bar->redraw_needed_p.
15158
15159 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
15160
151612008-01-23 Jason Rumney <jasonr@gnu.org>
15162
15163 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
15164
15165 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
15166 the unicode range available in MULE by locale-coding-system.
15167 Improve dbcs lead byte detection. Set event timestamp and modifiers
15168 earlier.
15169
151702008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15171
15172 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
15173 [MAC_OSX] (init_mac_osx_environment): Initialize it.
15174 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
15175 when used on child processes.
15176
151772008-01-21 Michael Albinus <michael.albinus@gmx.de>
15178
15179 * dbusbind.c (Fdbus_method_return_internal): Rename from
15180 Fdbus_method_return.
15181 (Fdbus_unregister_object): Move to dbus.el.
15182 (Fdbus_call_method, Fdbus_method_return_internal)
15183 (Fdbus_send_signal): Improve debug messages.
15184
151852008-01-20 Martin Rudalics <rudalics@gmx.at>
15186
15187 * undo.c (undo_inhibit_record_point): New variable.
15188 (syms_of_undo): Initialize it.
15189 (record_point): Don't record point when undo_inhibit_record_point
15190 is set.
15191
151922008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
15193
15194 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
15195
15196 * xdisp.c (Qauto_hscroll_mode): New var.
15197 (syms_of_xdisp): Initialize it.
15198 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
15199 window's buffer.
15200 (hscroll_windows): Don't check automatic_hscrolling_p here.
15201
15202 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
15203 vscroll if we're setting window-buffer to the value it already has.
15204
152052008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
15206
15207 * m/intel386.h: Remove references to XENIX.
15208
152092008-01-17 Andreas Schwab <schwab@suse.de>
15210
15211 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
15212 instead of HAVE_X86_64_LIB64_DIR.
15213 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
15214
152152008-01-17 Glenn Morris <rgm@gnu.org>
15216
15217 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
15218 to HAVE_X86_64_LIB64_DIR.
15219
152202008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
15221
15222 * s/irix3-3.h:
15223 * s/irix4-0.h:
15224 * s/386-ix.h:
15225 * s/domain.h:
15226 * s/hpux9-x11r4.h:
15227 * s/hpux9shxr4.h: Remove files for systems no longer supported.
15228
15229 * sysdep.c: Remove code containing references to symbols defined
15230 by unsupported systems.
15231
152322008-01-16 Glenn Morris <rgm@gnu.org>
15233
15234 * coding.c (select-safe-coding-system-function): Doc fix.
15235
152362008-01-15 Glenn Morris <rgm@gnu.org>
15237
15238 * config.in: Revert 2008-01-13 change: this is a generated file.
15239
152402008-01-13 Tom Tromey <tromey@redhat.com>
15241
15242 * lisp.h: Fix typo.
15243
152442008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
15245
15246 * m/sequent-ptx.h:
15247 * m/sequent.h:
15248 * s/ptx.h:
15249 * s/ptx4-2.h:
15250 * s/ptx4.h: Remove files for systems no longer supported.
15251
15252 * callproc.c (Fcall_process): Fix previous change.
15253
152542008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
15255
15256 * unexsunos4.c: Remove file, system not supported anymore.
15257
15258 * m/mips.h:
15259 * m/intel386.h:
15260 * callproc.c:
15261 * config.in:
15262 * ecrt0.c:
15263 * emacs.c:
15264 * fileio.c:
15265 * frame.c:
15266 * getpagesize.h:
15267 * keyboard.c:
15268 * lread.c:
15269 * process.c:
15270 * puresize.h:
15271 * sysdep.c:
15272 * systty.h:
15273 * syswait.h:
15274 * unexec.c:
15275 * xdisp.c:
15276 * alloc.c: Remove code containing references to symbols defined by
15277 unsupported systems.
15278
152792008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
15280
15281 * coding.c (detect_coding_mask): Fix previous change.
15282
152832008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
15284
15285 * coding.c (detect_coding_iso2022): New arg
15286 latin_extra_code_state. Allow Latin extra codes only
15287 when *latin_extra_code_state is nonzero.
15288 (detect_coding_mask): If there is a NULL byte, detect the encoding
15289 as UTF-16 or binary. If Latin extra codes exist, detect the
15290 encoding as ISO-2022 only when there's no other proper encoding is
15291 found.
15292
152932008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15294
15295 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
15296 #ifdef MAC_OS.
15297
152982008-01-08 Richard Stallman <rms@gnu.org>
15299
15300 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
15301
153022008-01-06 Nick Roberts <nickrob@snap.net.nz>
15303
15304 * keyboard.c (parse_menu_item): Don't enclose key bindings on
15305 menu bar in parentheses.
15306
153072008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
15308
15309 * m/7300.h:
15310 * m/acorn.h:
15311 * m/alliant-2800.h:
15312 * m/alliant.h:
15313 * m/alliant1.h:
15314 * m/alliant4.h:
15315 * m/altos.h:
15316 * m/amdahl.h:
15317 * m/apollo.h:
15318 * m/att3b.h:
15319 * m/aviion-intel.h:
15320 * m/aviion.h:
15321 * m/celerity.h:
15322 * m/clipper.h:
15323 * m/cnvrgnt.h:
15324 * m/convex.h:
15325 * m/cydra5.h:
15326 * m/delta88k.h:
15327 * m/dpx2.h:
15328 * m/dual.h:
15329 * m/elxsi.h:
15330 * m/f301.h:
15331 * m/gould-np1.h:
15332 * m/gould.h:
15333 * m/i860.h:
15334 * m/ibmps2-aix.h:
15335 * m/ibmrt-aix.h:
15336 * m/ibmrt.h:
15337 * m/irist.h:
15338 * m/is386.h:
15339 * m/isi-ov.h:
15340 * m/mega68.h:
15341 * m/mg1.h:
15342 * m/news-r6.h:
15343 * m/news-risc.h:
15344 * m/news.h:
15345 * m/nh3000.h:
15346 * m/nh4000.h:
15347 * m/ns16000.h:
15348 * m/ns32000.h:
15349 * m/nu.h:
15350 * m/orion.h:
15351 * m/orion105.h:
15352 * m/paragon.h:
15353 * m/pfa50.h:
15354 * m/plexus.h:
15355 * m/pyramid.h:
15356 * m/pyrmips.h:
15357 * m/sh3el.h:
15358 * m/sps7.h:
15359 * m/sr2k.h:
15360 * m/stride.h:
15361 * m/sun1.h:
15362 * m/sun2.h:
15363 * m/sun3-68881.h:
15364 * m/sun3-fpa.h:
15365 * m/sun3-soft.h:
15366 * m/sun3.h:
15367 * m/sun386.h:
15368 * m/symmetry.h:
15369 * m/tad68k.h:
15370 * m/tahoe.h:
15371 * m/targon31.h:
15372 * m/tek4300.h:
15373 * m/tekxd88.h:
15374 * m/tower32.h:
15375 * m/tower32v3.h:
15376 * m/ustation.h:
15377 * m/wicat.h:
15378 * m/xps100.h:
15379 * s/cxux.h:
15380 * s/cxux7.h:
15381 * s/dgux.h:
15382 * s/dgux4.h:
15383 * s/dgux5-4-3.h:
15384 * s/dgux5-4r2.h:
15385 * s/esix.h:
15386 * s/esix5r4.h:
15387 * s/hiuxmpp.h:
15388 * s/hiuxwe2.h:
15389 * s/iris3-5.h:
15390 * s/iris3-6.h:
15391 * s/isc2-2.h:
15392 * s/isc3-0.h:
15393 * s/isc4-0.h:
15394 * s/isc4-1.h:
15395 * s/newsos5.h:
15396 * s/newsos6.h:
15397 * s/osf1.h:
15398 * s/osf5-0.h:
15399 * s/riscix1-1.h:
15400 * s/riscix12.h:
15401 * s/sco4.h:
15402 * s/sco5.h:
15403 * s/sunos4-0.h:
15404 * s/sunos4-1.h:
15405 * s/sunos413.h:
15406 * s/sunos4shr.h:
15407 * s/umax.h:
15408 * s/unipl5-2.h:
15409 * s/xenix.h:
15410 * cxux-crt0.s:
15411 * unexapollo.c:
15412 * unexconvex.c:
15413 * unexenix.c:
15414 * unexsni.c: Remove files for systems no longer supported.
15415
15416 * m/intel386.h: Remove references to unsupported systems.
15417
15418 * w32.c (get_emacs_configuration): Remove reference to i860.
15419
15420 * sysdep.c: Remove dead code.
15421
154222008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
15423
15424 * s/rtu.h:
15425 * m/masscomp.h: Remove files. Platform is obsolete.
15426
154272008-01-04 Michael Albinus <michael.albinus@gmx.de>
15428
15429 * dbusbind.c (Fdbus_method_return): New function.
15430 (xd_read_message): Add the serial number to the event.
15431 (Fdbus_register_method): Activate the function.
15432
154332008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
15434
15435 * keyboard.c (read_key_sequence): Fix typo.
15436
154372008-01-03 Michael Albinus <michael.albinus@gmx.de>
15438
15439 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
15440 (xd_signature, xd_append_arg): Handle element type detection for
15441 empty arrays.
15442 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
15443 SDATA () calls; this must be solved more general.
15444 (Fdbus_register_signal): Use SBYTES instead of strlen.
15445
154462008-01-03 Magnus Henoch <magnus@zemdatav>
15447
15448 * dbusbind.c (xd_append_arg): Use unsigned char instead of
15449 unsigned int for byte values (necessary for big-endian platform).
15450 (Fdbus_call_method): Handle the case of no returned arguments.
15451
154522007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
15453
15454 * dbusbind.c (xd_read_message): Use non-static input_event struct.
15455
154562007-12-31 Magnus Henoch <mange@freemail.hu>
15457
15458 * dbusbind.c (xd_signature): Signature of variant is just "v".
15459
154602007-12-30 Michael Albinus <michael.albinus@gmx.de>
15461
15462 * dbusbind.c: Fix several errors and compiler warnings.
15463 Reported by Tom Tromey <tromey@redhat.com>.
15464 (XD_ERROR, XD_DEBUG_MESSAGE)
15465 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
15466 (xd_append_arg): Part for basic D-Bus types rewritten.
15467 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
15468 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
15469 appropriate.
15470 (xd_read_message): Return Qnil. Don't signal an error; it is not
15471 useful during event reading.
15472 (Fdbus_register_signal): Signal an error if the check for
15473 FUNCTIONP fails.
15474 (Fdbus_register_method): New function. The implementation is not
15475 complete, the call of the function signals an error therefore.
15476 (Fdbus_unregister_object): New function, renamed from
15477 Fdbus_unregister_signal. The initial check signals an error, if
15478 the object is not well formed.
15479
154802007-12-30 Richard Stallman <rms@gnu.org>
15481
15482 * textprop.c (get_char_property_and_overlay):
15483 Signal error if POSITION is out of range in a buffer.
15484
154852007-12-29 Martin Rudalics <rudalics@gmx.at>
15486
15487 * w32fns.c (Fx_create_frame): Make copy of frame parameters
15488 because the original parameters are in pure storage now.
15489
154902007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15491
15492 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
15493
154942007-12-22 Eli Zaretskii <eliz@gnu.org>
15495
15496 * callint.c (syms_of_callint) <command-history>: Add reference to
15497 history-length in the doc string.
15498
154992007-12-17 Jason Rumney <jasonr@gnu.org>
15500
15501 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
15502 before passing as wParam.
15503
155042007-12-22 Michael Albinus <michael.albinus@gmx.de>
15505
15506 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
15507 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
15508 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
15509 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
15510 as number.
15511 (Fdbus_call_method): Fix docstring.
15512
155132007-12-21 Michael Albinus <michael.albinus@gmx.de>
15514
15515 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
15516 New macros.
15517 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
15518 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
15519 Simplify.
15520 (xd_signature): New function.
15521 (xd_append_arg): Compute also signatures. Major rewrite.
15522 (xd_retrieve_arg): Make debug messages friendly.
15523 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
15524 Check for signatures of arguments.
15525
155262007-12-19 Michael Albinus <michael.albinus@gmx.de>
15527
15528 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
15529 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
15530 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
15531 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
15532 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
15533 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
15534 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
15535 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
15536 (xd_retrieve_value): Remove. Functionality included in ...
15537 (xd_append_arg): New function.
15538 (Fdbus_call_method, Fdbus_send_signal): Apply it.
15539
155402007-12-16 Michael Albinus <michael.albinus@gmx.de>
15541
15542 * dbusbind.c (top): Include <stdio.h>.
15543 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
15544 dbus_message_new_method_call and dbus_message_new_signal.
15545 (Fdbus_register_signal): Rename unique_name to uname.
15546 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
15547 non-existing unique name. Fix typos in matching rule. Return an
15548 object which is useful in Fdbus_unregister_signal.
15549 (Fdbus_unregister_signal): Reimplementation, in order to remove
15550 only the corresponding entry.
15551 (Vdbus_registered_functions_table): Change the order of entries.
15552 Apply these changes in xd_read_message and Fdbus_register_signal.
15553
155542007-12-16 Andreas Schwab <schwab@suse.de>
15555
15556 * fileio.c (Finsert_file_contents): Fix overflow check to not
15557 depend on undefined integer overflow.
15558
155592007-12-14 Jason Rumney <jasonr@gnu.org>
15560
15561 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
15562 for characters above 127.
15563
155642007-12-13 Jason Rumney <jasonr@gnu.org>
15565
15566 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
15567 before dereferencing array.
15568 (lookup_vk_code): Remove zero comparison.
15569
155702007-12-14 Michael Albinus <michael.albinus@gmx.de>
15571
15572 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
15573 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
15574 Use `unsigned int' instead of `uint'.
15575 (xd_read_message, Fdbus_register_signal): Split expressions into
15576 multiple lines before operators "&&" and "||", according to the
15577 GNU Coding Standards.
15578
155792007-12-14 Eli Zaretskii <eliz@gnu.org>
15580
15581 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
15582
155832007-12-12 Juri Linkov <juri@jurta.org>
15584
15585 * buffer.c (Frename_buffer): In interactive spec replace
15586 `read-buffer' with `read-string' that uses `buffer-name-history'
15587 as history, and the current buffer's name as default.
15588
155892007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
15590
15591 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
15592 manipulating the backtrace manually.
15593 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
15594 (struct backtrace, backtrace_list): Remove.
15595 (command_loop_1): Remove dead var `no_direct'.
15596
15597 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
15598 preserve non-built-in buffer-local variables.
15599 (Fkill_all_local_variables): Don't re-create&re-set permanent
15600 buffer-local variables.
15601
156022007-12-09 Juri Linkov <juri@jurta.org>
15603
15604 * buffer.c (Frename_buffer): Change interactive spec from "s" to
15605 Lisp code that uses `read-buffer' with current buffer as default.
15606
156072007-12-08 Michael Albinus <michael.albinus@gmx.de>
15608
15609 * dbusbind.c (xd_read_message): Generate an event for every
15610 registered handler. There might be several handlers registered
15611 for the same signal.
15612 (Fdbus_register_signal): Don't overwrite a registration for the
15613 same signal. Add a new registration if handlers are different.
15614 (Vdbus_registered_functions_table): Rework doc string.
15615
156162007-12-07 Michael Albinus <michael.albinus@gmx.de>
15617
15618 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
15619 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
15620 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
15621 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
15622 Unify argument lists.
15623 (xd_read_message, Fdbus_register_signal): Reorder and extend event
15624 arguments and hash table keys. Use unique name for service.
15625 (Fdbus_unregister_signal): Remove checks.
15626 (Vdbus_registered_functions_table): Fix doc string.
15627
156282007-12-05 Magnus Henoch <mange@freemail.hu>
15629
15630 * process.c (make_process): Initialize pty_flag to 0.
15631
156322007-12-05 Jason Rumney <jasonr@gnu.org>
15633
15634 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
15635 specified XBMs.
15636
156372007-12-05 Richard Stallman <rms@gnu.org>
15638
15639 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
15640
156412007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15642
15643 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
15644 New variable.
15645 (mac_try_close_socket) [MAC_OSX]: New function.
15646 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
15647 Update cfsockets_for_select. Replace invalid CFRunLoop source.
15648
15649 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
15650 Use mac_try_close_socket.
15651
156522007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15653
15654 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
15655 reloc_base.
15656 (copy_dysymtab): Compute relocation base here.
15657 (rebase_reloc_address) [__ppc64__]: New function.
15658 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
15659 changed.
15660
156612007-12-05 Jason Rumney <jasonr@gnu.org>
15662
15663 * w32proc.c (sys_spawnve): Quote args with wildcards.
15664
156652007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15666
15667 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
15668 __objc_* sections.
15669 (unrelocate) [_LP64]: Set relocation base to address of data segment.
15670
156712007-12-05 Michael Albinus <michael.albinus@gmx.de>
15672
15673 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
15674 Move check for Vdbus_registered_functions_table to
15675 xd_read_queued_messages.
15676 (xd_read_queued_messages): Protect xd_read_message calls by
15677 internal_condition_case_1.
15678
156792007-12-04 Michael Albinus <michael.albinus@gmx.de>
15680
15681 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
15682 Qdbus_system_bus and Qdbus_session_bus, respectively.
15683 (Vdbus_intern_symbols): Remove.
15684 (Vdbus_registered_functions_table): New hash table.
15685 (XD_SYMBOL_INTERN_SYMBOL): Remove.
15686 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
15687 Rewrite in order to manage registered functions by hash table
15688 Vdbus_registered_functions_table.
15689
156902007-12-03 Jan Djärv <jan.h.d@swipnet.se>
15691
15692 * xterm.c: Update URL to Window Manager Specification in comment.
15693
156942007-12-02 Michael Albinus <michael.albinus@gmx.de>
15695
15696 * config.in (HAVE_DBUS): Add.
15697
15698 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
15699 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
15700 (obj): Add $(DBUS_OBJ).
15701 (LIBES): Add $(DBUS_LIBS).
15702 (dbusbind.o): New target.
15703
15704 * dbusbind.c: New file.
15705
15706 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
15707
15708 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
15709 (Qdbus_event): New Lisp symbol.
15710 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
15711 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 15712 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
15713
15714 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
15715
157162007-12-01 Richard Stallman <rms@gnu.org>
15717
15718 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
15719
157202007-11-30 Jason Rumney <jasonr@gnu.org>
15721
15722 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
15723 (w32con_reset_terminal_modes): Clear screen buffer.
15724 (w32_face_attributes): Don't use color indexes that are out of range.
15725 Only reverse the default colors.
15726
15727 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
15728 WINDOWSNT.
15729
15730 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
15731
157322007-11-29 Jason Rumney <jasonr@gnu.org>
15733
15734 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
15735 (w32_face_attributes): Use Vtty_defined_color_alist to determine
15736 if the terminal colors are initialized.
15737 (unspecified_fg, unspecified_bg): Remove unused declarations.
15738
157392007-11-29 Andreas Schwab <schwab@suse.de>
15740
15741 * keyboard.c (apply_modifiers): Fix typo.
15742
157432007-11-29 Richard Stallman <rms@gnu.org>
15744
15745 * keymap.c (Fcurrent_local_map): Doc fix.
15746
157472007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
15748
15749 * s/gnu-kfreebsd.h: New file.
15750
157512007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
15752
15753 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
15754 Don't cast redundantly.
15755
15756 * keyboard.c (KEY_TO_CHAR): New macro.
15757 (parse_modifiers, apply_modifiers): Accept integer arguments.
15758 (read_key_sequence): Use them to unify the "shift->unshift" mapping
15759 for chars and symbol keys.
15760 After doing such remapping, apply function-key-map again.
15761
157622007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
15763
15764 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
15765 compiled anymore.
15766
157672007-11-26 Andreas Schwab <schwab@suse.de>
15768
15769 * process.c (list_processes_1): Fix indentation level of the
15770 command column.
15771
157722007-11-23 Andreas Schwab <schwab@suse.de>
15773
15774 * editfns.c (Fformat): Handle %c specially since it requires the
15775 argument to be of type int.
15776
157772007-11-23 Markus Triska <markus.triska@gmx.at>
15778
15779 * emacs.c (main): Call init_editfns before init_process, since
15780 init_process sets Vprocess_connection_type depending on OS release.
15781
157822007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
15783
15784 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
15785 (find_symbol_value): Use do_symval_forwarding.
15786
15787 * data.c (set_internal): Set the value in the `cons-cell' (for
15788 Buffer_Local_values) not only for frame-local variables.
15789
157902007-11-22 Andreas Schwab <schwab@suse.de>
15791
15792 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
15793 values to sprintf.
15794 * keymap.c (Fsingle_key_description): Likewise.
15795 * print.c (print_object): Likewise.
15796
157972007-11-22 Jan Djärv <jan.h.d@swipnet.se>
15798
15799 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
15800 file for image is nil.
15801
158022007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
15803
15804 * term.c: Include stdarg.h.
15805 (fatal): Implement using varargs.
15806 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
15807
158082007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
15809
15810 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
15811 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
15812 Update call to buffer_slot_type_mismatch.
15813 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
15814 (buffer_slot_type_mismatch): Update.
15815 * buffer.c (buffer_local_types): Remove.
15816 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
15817 (defvar_per_buffer): Set the type in the buffer_objfwd.
15818
158192007-11-21 Jason Rumney <jasonr@gnu.org>
15820
15821 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
15822 CreateFileMapping returns NULL on failure.
15823
158242007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
15825
15826 * search.c (Fset_match_data): Remove the `evaporate' feature.
15827 (unwind_set_match_data): Don't use the `evaporate' feature.
15828
158292007-11-21 Jason Rumney <jasonr@gnu.org>
15830
15831 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
15832
15833 * w32console.c (w32con_write_glyphs): Remove unused variables.
15834
158352007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
15836
15837 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
15838
15839 * s/darwin.h (MULTI_KBOARD): Remove.
15840
15841 * macfns.c (x_create_tip_frame, Fx_create_frame)
15842 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
15843
158442007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
15845
15846 * buffer.c (Fbuffer_local_value): Remove redundant test.
15847 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
15848 than in `current-buffer' to match the comment.
15849 Do the swap using swap_in_global_binding.
15850
15851 * data.c (store_symval_forwarding, set_internal):
15852 * eval.c (specbind): Remove dead code.
15853
15854 * coding.c (detect_coding, Fupdate_coding_systems_internal):
15855 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
15856 Since we do not want to see internal Lisp_*fwd objects here.
15857
158582007-11-18 Jan Djärv <jan.h.d@swipnet.se>
15859
15860 * sysdep.c (init_system_name): Use getaddrinfo if available.
15861
15862 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
15863 (x_scroll_bar_note_movement): start, end, with, height in struct
15864 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
15865
158662007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
15867
15868 * puresize.h (BASE_PURESIZE): Increase to 1190000.
15869
158702007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
15871
15872 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
15873 This undoes Richard's change of 14-Oct-2002.
15874
15875 * alloc.c (allocate_other_vector):
15876 * lisp.h (allocate_other_vector): Remove.
15877
15878 * window.c (struct save_window_data): Move non-lisp data to the end
15879 and make it `int' rather than Lisp_Object.
15880 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
15881 Done wrap/unwrap integer values.
15882 (Fset_window_configuration, compare_window_configurations):
15883 Update use of fields to their new types.
15884
15885 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
15886 Turn integer fields into `int'. Merge x_window_low and x_window_high.
15887 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
15888 (SET_SCROLL_BAR_X_WINDOW): Remove.
15889 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
15890 Access the new x_window field directly.
15891 * xterm.c (x_scroll_bar_create): Use a pseudovector.
15892 Don't wrap/unwrap integers into Lisp_Objects.
15893 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
15894 (x_scroll_bar_report_motion):
15895 Don't wrap/unwrap integers into Lisp_Objects.
15896 (x_term_init): Use SDATA.
15897 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
15898 (x_scroll_bar_set_handle, x_scroll_bar_remove)
15899 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
15900 (x_scroll_bar_report_motion, x_scroll_bar_clear):
15901 * xfns.c (x_set_background_color):
15902 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
15903 Access the new x_window field directly.
15904
15905 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
15906 (allocate_pseudovector): Make non-static.
15907
15908 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
15909 (allocate_pseudovector): Declare.
15910 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
15911
159122007-11-15 Andreas Schwab <schwab@suse.de>
15913
15914 * editfns.c (Fformat): Correctly format EMACS_INT values.
15915 Also take precision into account when formatting an integer.
15916
15917 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
15918
159192007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
15920
15921 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
15922 (syms_of_keyboard): Defsubr it.
15923
15924 * data.c (swap_in_global_binding): Fix longstanding bug where
15925 store_symval_forwarding was not called with the right second argument,
15926 thus causing objfwd-ing from being dropped.
15927
159282007-11-14 Juanma Barranquero <lekktu@gmail.com>
15929
15930 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
15931 (Fx_display_pixel_height, Fx_display_planes)
15932 (Fx_display_color_cells, Fx_server_max_request_size)
15933 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
15934 (Fx_display_visual_class, Fx_display_save_under):
15935 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
15936 (Fx_display_pixel_height, Fx_display_planes)
15937 (Fx_display_color_cells, Fx_server_max_request_size)
15938 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
15939 (Fx_display_mm_height, Fx_display_mm_width)
15940 (Fx_display_backing_store, Fx_display_visual_class)
15941 (Fw32_select_font, Fx_display_save_under):
15942 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
15943 (Fx_display_pixel_height, Fx_display_planes)
15944 (Fx_display_color_cells, Fx_server_max_request_size)
15945 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
15946 (Fx_display_save_under): Fix typos in docstrings.
15947
159482007-11-14 Juanma Barranquero <lekktu@gmail.com>
15949
15950 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
15951 corresponding to deleted entries; they are an implementation detail.
15952 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
15953 Remove variables.
15954 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
15955 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
15956 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
15957 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
15958 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
15959 (Fw32_define_rgb_color, Fw32_load_color_file)
15960 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
15961 Fix typos in docstrings.
15962 (Fx_server_version): Reflow docstring.
15963 (Fw32_shell_execute): Doc fixes.
15964
159652007-11-13 Juanma Barranquero <lekktu@gmail.com>
15966
15967 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
15968 if w32_parse_hot_key returned nil.
15969
159702007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
15971
15972 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
15973
159742007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 15975
aac0c6e3
MR
15976 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
15977
15978 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
15979
15980 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
15981 Remove W32_SCROLL_BAR_CLICK_EVENT.
15982
15983 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
15984 Add MULTIMEDIA_KEY_EVENT.
15985
15986 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
15987 (lispy_multimedia_keys) [WINDOWSNT]: New array.
15988 (make_lispy_event) [WINDOWSNT]: Use it to translate
15989 MULTIMEDIA_KEY_EVENT.
15990
15991 * w32term.h (WM_APPCOMMAND): Define if not already.
15992 (GET_APPCOMMAND_LPARAM): Likewise.
15993
15994 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
15995 WM_APPCOMMAND.
15996
15997 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
15998 (syms_of_w32fns): Export and initialize it.
15999 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
16000
160012007-11-09 Chong Yidong <cyd@stupidchicken.com>
16002
16003 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
16004 twice.
16005
16006 * xdisp.c (handle_face_prop): Fix last change.
16007
160082007-11-09 Richard Stallman <rms@gnu.org>
16009
16010 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
16011 not just for after-strings and before-strings.
16012 Call face_for_overlay_string and pass the overlay to it.
16013 (handle_display_prop): Determine whether property came from an overlay.
16014 Pass OVERLAY arg to handle_single_display_spec.
16015 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
16016 (load_overlay_strings): Fill in it->string_overlays.
16017 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
16018
16019 * xfaces.c (face_for_overlay_string): Function renamed from
16020 face_at_buffer_position_no_overlays, and add arg OVERLAY.
16021
16022 * dispextern.h (struct it): New elt string_overlays.
16023 New elt from_overlay, also in stack.
16024 Rearrange a few elements.
16025 (face_for_overlay_string): Decl renamed from
16026 face_at_buffer_position_no_overlays, and add argument.
16027
160282007-11-09 Richard Stallman <rms@gnu.org>
16029
16030 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
16031 to get the base face for an overlay string.
16032
16033 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
16034
16035 * xfaces.c (face_at_buffer_position_no_overlays): New function.
16036
16037 * xdisp.c (handle_stop): Move some code out of loop.
16038
160392007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16040
16041 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
16042 Fix conversion from Lisp object to ATSUFontID.
16043
160442007-11-09 Jason Rumney <jasonr@gnu.org>
16045
16046 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
16047
160482007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16049
16050 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
16051 Don't assume regions are aligned to page boundary.
16052 (print_load_command_name): Add LC_UUID if defined.
16053
160542007-11-09 Richard Stallman <rms@gnu.org>
16055
16056 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
16057
160582007-11-07 Jason Rumney <jasonr@gnu.org>
16059
16060 * s/windows95.h: Remove.
16061
160622007-11-06 Jan Djärv <jan.h.d@swipnet.se>
16063
16064 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
16065 abort with a message on unhandled store_type values.
16066
160672007-11-01 Jan Djärv <jan.h.d@swipnet.se>
16068
16069 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
16070 Remove HAVE_X11R5 and HAVE_X11R4.
16071
160722007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
16073
16074 * Makefile.in: Remove references to sunfns.c and sunfns.o.
16075
160762007-11-01 Johan Bockgård <bojohan@gnu.org>
16077
16078 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
16079 Don't set s->stippled_p here, since it has already been set by
16080 x_set_glyph_string_gc from x_draw_glyph_string.
16081
160822007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
16083
16084 * sunfns.c: Remove file.
16085
16086 * m/sun386.h:
16087 * m/sun2.h:
16088 * m/sparc.h: Remove Sun windows code.
16089
160902007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
16091
16092 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
16093 (init_keyboard): Set current_kboard's window-system to nil.
16094 (tty_read_avail_input): Typo.
16095 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
16096
160972007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
16098
16099 * s/usg5-4.h:
16100 * s/usg5-3.h:
16101 * s/ptx.h:
16102 * m/is386.h:
16103 * m/ibmps2-aix.h:
16104 * Makefile.in: Remove all mentions of X10.
16105
16106 * dispnew.c (syms_of_display): Don't mention version 10.
16107
161082007-10-28 Juanma Barranquero <lekktu@gmail.com>
16109
16110 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
16111 ($(BLD)/abbrev.$(O)): Remove.
16112
161132007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
16114
16115 Rewrite abbrev.c in Elisp.
16116 * image.c (Qcount): Don't declare as extern.
16117 (syms_of_image): Initialize and staticpro `Qcount'.
16118 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
16119 * emacs.c (main): Don't call syms_of_abbrev.
16120 * Makefile.in (obj): Remove abbrev.o.
16121 (abbrev.o): Remove.
16122 * abbrev.c: Remove.
16123
161242007-10-26 Martin Rudalics <rudalics@gmx.at>
16125
16126 * window.c (window_min_size_2): Don't count header-line.
16127
161282007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
16129
16130 * frame.h (struct frame): Move all bit fields after the first bit
16131 field to take advantage of the available space. Group all the
16132 chars together to reduce wasted space due to padding.
16133
161342007-10-26 Juanma Barranquero <lekktu@gmail.com>
16135
16136 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
16137
16138 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
16139 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
16140 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
16141 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
16142 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
16143 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
16144 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
16145 (last_marked, mark_object_loop_halt): Make static.
16146
16147 * frame.c (syms_of_frame) <delete-frame-functions>:
16148 Fix typo in docstring.
16149
161502007-10-25 Juanma Barranquero <lekktu@gmail.com>
16151
16152 * w32.c (init_environment): Fix tiny memory leak.
16153 (w32_get_resource): Remove unused variable `ok'.
16154
161552007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
16156
16157 Make `window-system' into a keyboard-local variable (rather than
16158 frame-local as done originally by multi-tty).
16159
16160 * keyboard.h (struct kboard): Add Vwindow_system.
16161 * keyboard.c (init_kboard): Set a default for Vwindow_system.
16162 (mark_kboards): Mark Vwindow_system.
16163
16164 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
16165 (init_display): Don't set the obsolete `window-system' frame-param.
16166
16167 * xterm.c (x_term_init):
16168 * w32term.c (w32_create_terminal):
16169 * term.c (init_tty): Set Vwindow_system.
16170 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
16171 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
16172
16173 * xfns.c (Fx_create_frame, x_create_tip_frame):
16174 * w32fns.c (Fx_create_frame, x_create_tip_frame):
16175 * macfns.c (Fx_create_frame):
16176 Don't set the obsolete `window-system' frame-param.
16177
16178 * frame.h (Qwindow_system): Remove.
16179 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
16180 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
16181
161822007-10-24 Richard Stallman <rms@gnu.org>
16183
16184 * frame.c (x_figure_window_size): For fullscreen case,
16185 set USPosition | PPosition without clobbering rest of window_prompting.
16186
16187 * keyboard.c (Fcurrent_idle_time): Doc fix.
16188
16189 * print.c (Fwith_output_to_temp_buffer): Doc fix.
16190
161912007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
16192
16193 * process.c (unwind_request_sigio): Only define if __ultrix__.
16194
16195 * callproc.c (child_setup): Remove spurious *.
16196
16197 * lisp.h (Fget_text_property): Declare.
16198 (have_menus_p): Declare it here rather than in sys-dep header files.
16199 * macterm.h (have_menus_p):
16200 * msdos.h (have_menus_p):
16201 * xterm.h (have_menus_p): Remove.
16202
16203 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
16204 (Fmake_variable_frame_local): Just check the variable's const-ness
16205 rather than checking nil or t.
16206
162072007-10-22 Jason Rumney <jasonr@gnu.org>
16208
16209 * w32fns.c: Include math.h.
16210 (w32_abort): Declaration moved to nt/config.nt.
16211
16212 * s/ms-w32.h (HAVE_STDLIB_H): Define.
16213 (abort): Redefinition moved to nt/config.nt.
16214
16215 * m/windowsnt.h: Remove.
16216
162172007-10-22 Juanma Barranquero <lekktu@gmail.com>
16218
16219 * emacs.c (Fdump_emacs): Fix typo in message.
16220 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
16221 <installation-directory>: Reflow docstring.
16222
162232007-10-22 Juri Linkov <juri@jurta.org>
16224
16225 * minibuf.c: Allow minibuffer default to be a list of default values.
16226 With empty input use the first element of this list as returned default.
16227 (string_to_object)
16228 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
16229 (read_minibuf): If defalt is cons, set histstring to its car.
16230 (Fread_string): If default_value is cons, set val to its car.
16231 (Fread_buffer): If def is cons, use its car.
16232 (Fcompleting_read): If defalt is cons, set val to its car.
16233
162342007-10-21 Michael Albinus <michael.albinus@gmx.de>
16235
16236 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
16237
162382007-10-20 Juanma Barranquero <lekktu@gmail.com>
16239
16240 * doc.c (Fdocumentation): Check for advice in all cases.
16241
162422007-10-19 Chong Yidong <cyd@stupidchicken.com>
16243
16244 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
16245
162462007-10-19 Richard Stallman <rms@gnu.org>
16247
16248 * doc.c (Fdocumentation): Check for and handle an advised function.
16249
162502007-10-19 Juanma Barranquero <lekktu@gmail.com>
16251
16252 * process.c (Fset_process_filter): Doc fix.
16253
162542007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
16255
16256 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
16257 which caused key-translation-map to applied repeatedly (thus breaking
16258 double-mode).
16259
162602007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
16261
16262 * xselect.c (x_own_selection, x_handle_selection_clear)
16263 (x_clear_frame_selections):
16264 * w32menu.c (list_of_panes, list_of_items):
16265 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
16266 * textprop.c (validate_plist, interval_has_all_properties)
16267 (interval_has_some_properties, interval_has_some_properties_list)
16268 (add_properties, text_property_list):
16269 * process.c (Fget_buffer_process, list_processes_1, status_notify):
16270 * minibuf.c (Fassoc_string):
16271 * macselect.c (x_own_selection, x_clear_frame_selections)
16272 (Fx_disown_selection_internal):
16273 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
16274 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
16275
162762007-10-17 Chong Yidong <cyd@stupidchicken.com>
16277
16278 * process.c: Link to libs for calling res_init() if available.
16279 (Fmake_network_process): Call res_init() before getaddrinfo or
16280 gethostbyname, if possible.
16281
162822007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
16283
16284 * lread.c (read1): Set pvectype for char_tables.
16285
16286 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
16287 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
16288 Add type checks.
16289 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
16290
16291 * alloc.c (free_misc): Use XMISCTYPE.
16292 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
16293
162942007-10-17 Glenn Morris <rgm@gnu.org>
16295
16296 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
16297 (syms_of_minibuf): Add Qcompletion_ignore_case.
16298 * dired.c (Qcompletion_ignore_case): Change to external.
16299 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
16300 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
16301 (Fread_file_name): Use it rather than intern'ing.
16302
16303 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
16304 (Fread_coding_system): Ignore case of user input.
16305
163062007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16307
16308 * xdisp.c (handle_display_prop): Ignore display specs after
16309 replacing one when string text is being replaced.
16310 (handle_single_display_spec): Pretend as if characters with display
16311 property haven't been consumed only when buffer text is being replaced.
16312
163132007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
16314
16315 * xfns.c (Fx_create_frame, Fx_display_list):
16316 * window.c (window_fixed_size_p, enlarge_window)
16317 (shrink_window_lowest_first):
16318 * macterm.c (init_font_name_table):
16319 * macfns.c (Fx_create_frame, Fx_display_list):
16320 * lread.c (close_load_descs):
16321 * keyboard.c (read_char_x_menu_prompt):
16322 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
16323 * coding.c (code_convert_region_unwind): Test the type of an object
16324 rather than just !NILP before extracting data from it.
16325
16326 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
16327
16328 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
16329 (XMISCANY): New macro.
16330 (XMISCTYPE): Use it.
16331 (struct Lisp_Misc_Any): New type.
16332 (union Lisp_Misc): Use it.
16333 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
16334 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
16335 (find_symbol_value, set_internal, default_value, Fset_default)
16336 (Fmake_variable_buffer_local, Fmake_local_variable)
16337 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
16338 (Flocal_variable_if_set_p, Fvariable_binding_locus):
16339 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
16340 * alloc.c (allocate_buffer): Set the size and tag.
16341 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
16342 Use XMISCANY.
16343 (die): Follow the GNU convention for error messages.
16344 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
16345 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
16346 tag any more.
16347 (set_buffer_internal_1):
16348 * frame.c (store_frame_param):
16349 * eval.c (specbind):
16350 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
16351
16352 * doc.c (Fsnarf_documentation): Simplify.
16353
163542007-10-14 Juanma Barranquero <lekktu@gmail.com>
16355
16356 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
16357 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
16358
163592007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
16360
16361 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
16362
163632007-10-14 Juanma Barranquero <lekktu@gmail.com>
16364
16365 * eval.c (do_autoload): Don't save autoloads.
16366
16367 * data.c (Ffset): Save autoload of the function being set.
16368
163692007-10-07 John Paul Wallington <jpw@pobox.com>
16370
16371 * xfns.c (x_create_tip_frame): Set the `display-type' frame
16372 parameter before setting up faces.
16373
163742007-10-13 Eli Zaretskii <eliz@gnu.org>
16375
16376 * ccl.c (Fregister_code_conversion_map):
16377 * keyboard.c (append_tool_bar_item): Reformat last change.
16378
16379 * lisp.h (eabs): Rename from `abs'. All callers changed.
16380
163812007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
16382
16383 * buffer.c (add_overlay_mod_hooklist):
16384 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
16385 * fontset.c (make_fontset):
16386 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
16387 (append_tool_bar_item):
16388 * macmenu.c (grow_menu_items):
16389 * w32menu.c (grow_menu_items):
16390 * xmenu.c (grow_menu_items): Use larger_vector.
16391
163922007-10-13 Eli Zaretskii <eliz@gnu.org>
16393
16394 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
16395 selected frame'' on MSDOS).
16396
163972007-10-12 Martin Rudalics <rudalics@gmx.at>
16398
16399 * frame.c (Qexplicit_name): New variable.
16400 (x_report_frame_params): Report it in parameter alist.
16401 (syms_of_frame): Intern and staticpro it.
16402
164032007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
16404
16405 * macfns.c (x_create_tip_frame): Set terminal for frame.
16406
164072007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
16408
16409 * frame.c (Qenvironment): Remove.
16410 (syms_of_frame) <Qenvironment>: Don't initialize.
16411 (Fdelete_frame): Don't treat the `environment' param specially.
16412 * frame.h (Qenvironment): Don't declare.
16413 * callproc.c (set_initial_environment): Don't set unused frame param.
16414
16415 * frame.c (Fframe_with_environment): Remove.
16416 (syms_of_frame) <Sframe_with_environment>: Don't declare.
16417
16418 * lisp.h (Fframe_with_environment): Don't declare.
16419
164202007-10-10 Juanma Barranquero <lekktu@gmail.com>
16421
16422 * indent.c (indent_tabs_mode, last_known_column)
16423 (last_known_column_modified): Make static.
16424 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
16425
164262007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
16427
16428 * puresize.h (BASE_PURESIZE): Increase to 1170000.
16429
164302007-10-09 Jason Rumney <jasonr@gnu.org>
16431
16432 * w32term.c (x_set_window_size): Disable code that attempts to tell
16433 Lisp code about a size change before it actually happens.
16434
164352007-10-09 Richard Stallman <rms@gnu.org>
16436
16437 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
16438 return HANDLED_RETURN.
16439
164402007-10-08 Martin Rudalics <rudalics@gmx.at>
16441
16442 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
16443 when there's an unread command event.
16444
16445 * frame.c (focus_follows_mouse): Move here from frame.el to allow
16446 window autoselection act appropriately when leaving selected frame.
16447 (syms_of_frame): Initialize focus_follows_mouse.
16448 * frame.h (focus_follows_mouse): Extern it.
16449 * macterm.c (XTread_socket): When focus_follows_mouse is nil
16450 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
16451 * msdos.c (dos_rawgetc): Likewise.
16452 * w32term.c (w32_read_socket): Likewise.
16453 * xterm.c (handle_one_xevent): Likewise.
16454 * xdisp.c (syms_of_xdisp): In doc-string of
16455 mouse-autoselect-window mention focus-follows-mouse.
16456
164572007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16458
16459 * macterm.c (mac_load_query_font): Fix missing return value.
16460 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
16461 Add BLOCK_INPUT.
16462
164632007-10-08 Richard Stallman <rms@gnu.org>
16464
16465 * xdisp.c (get_window_cursor_type): Implement documented behavior
16466 for cursor-in-non-selected-windows = t.
16467
164682007-10-08 Jason Rumney <jasonr@gnu.org>
16469
16470 * w32.c (w32_get_resource): Always close registry keys.
16471
164722007-10-08 Jason Rumney <jasonr@gnu.org>
16473
16474 * makefile.w32-in (LIBS): Add COMCTL32.
16475
16476 * w32fns.c (globals_of_w32fns): Init common controls.
16477
164782007-10-08 Richard Stallman <rms@gnu.org>
16479
16480 * image.c (our_memory_buffer): Rename from omfib_buffer.
16481
164822007-10-08 Richard Stallman <rms@gnu.org>
16483
16484 * buffer.c (Foverlays_at): Doc fix.
16485
164862007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
16487
16488 * fns.c (Fplist_put): Preserve uneven tail data.
16489
164902007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
16491
16492 * termhooks.h (enum event_kind): Remove trailing comma.
16493
16494 * frame.h (enum): Remove trailing comma.
16495
164962007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
16497
16498 * w32proc.c (delete_child): Don't terminate threads of zombies.
16499
165002007-10-08 Martin Rudalics <rudalics@gmx.at>
16501
16502 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
16503
16504 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
16505 last-repeatable-command.
16506 (init_kboard): Initialize Vlast_repeatable_command.
16507 (command_loop_1): Set it to real_this_command unless that was
16508 bound to an input event.
16509 (mark_kboards): Mark it.
16510
165112007-10-08 Richard Stallman <rms@gnu.org>
16512
16513 * eval.c (condition-case): Doc fix.
16514
165152007-10-08 Masatake YAMATO <jet@gyve.org>
16516
16517 * xfaces.c (tty_supports_face_attributes_p): Fix code
16518 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
16519 was copied and not edited.
16520
165212007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
16522
16523 Add new `input-decode-map' keymap and use it for terminal
16524 escape sequences.
16525 * keyboard.h (struct kboard): Add Vinput_decode_map.
16526 Remove Vlocal_key_translation_map.
16527 * keyboard.c (read_key_sequence): Add support for input-decode-map.
16528 (init_kboard): Init input-decode-map.
16529 Replace local-key-translation-map back with key-translation-map.
16530 (syms_of_keyboard): Declare input-decode-map.
16531 Remove local-key-translation-map. Update docstrings.
16532 (mark_kboards): Mark Vinput_decode_map.
16533 Don't mark Vlocal_key_translation_map.
16534 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
16535 Replace local-key-translation-map back with key-translation-map.
16536 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
16537 Bind in input-decode-map rather than function-key-map.
16538
16539 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
16540 This was made redundant by the previous introduction of XSETPVECTYPE.
16541
165422007-10-09 Richard Stallman <rms@gnu.org>
16543
16544 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
16545
165462007-09-29 Richard Stallman <rms@gnu.org>
16547
16548 * eval.c (internal_condition_case_2, internal_condition_case_1)
16549 (internal_condition_case): Reenable abort if x_catching_errors ()
16550 to see if that really happens and why.
16551
165522007-10-06 Andreas Schwab <schwab@suse.de>
16553
16554 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
16555
165562007-10-04 Juanma Barranquero <lekktu@gmail.com>
16557
16558 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
16559
165602007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
16561
16562 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
16563
165642007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
16565
16566 * window.h (struct window):
16567 * window.c (struct save_window_data, struct saved_window):
16568 * termhooks.h (struct terminal):
16569 * process.h (struct Lisp_Process):
16570 * frame.h (struct frame):
16571 * buffer.h (struct buffer):
16572 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
16573 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
16574 The size field of (pseudo)vectors is now unsigned.
16575 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
16576
16577 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
16578 Turn `count' into an integer.
16579
16580 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
16581 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
16582 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
16583 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
16584 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
16585
16586 * alloc.c (allocate_pseudovector): New fun.
16587 (ALLOCATE_PSEUDOVECTOR): New macro.
16588 (allocate_window, allocate_terminal, allocate_frame)
16589 (allocate_process): Use it.
16590 (mark_vectorlike): New function.
16591 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
16592 (mark_terminals): Use it.
16593 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
16594 (Fmake_byte_code): Use XSETPVECTYPE.
16595
16596 * frame.c (Fframe_parameters): Minor simplification.
16597
16598 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
16599
16600 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
16601
16602 * buffer.c (Fget_buffer_create, init_buffer_once):
16603 * lread.c (defsubr):
16604 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
16605
16606 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
16607 defined differently in the m/*.h files.
16608 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
16609 (XSETPVECTYPE): New macro.
16610 (XSETPSEUDOVECTOR): Use it.
16611
16612 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
16613 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
16614
16615 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
16616 * lread.c (defvar_per_buffer):
16617 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
16618
16619 * window.c (candidate_window_p): Only consider as visible frames that
16620 are on the same terminal.
16621
16622 * m/ibms390x.h (MARKBIT): Remove unused macro.
16623
166242007-10-01 Juanma Barranquero <lekktu@gmail.com>
16625
16626 * lread.c (Fload): Fix typo in docstring.
16627
166282007-10-01 Michaël Cadilhac <michael@cadilhac.name>
16629
16630 * floatfns.c (Fexpt): Manually check for overflows, so that a power
16631 of a non-zero value can't yield zero.
16632
166332007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
16634
16635 * term.c (term_clear_mouse_face, term_mouse_highlight)
16636 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
16637
16638 * print.c (safe_debug_print): Use XHASH.
16639
16640 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
16641 Lisp elements such as tags.
16642 (XHASH): New macro.
16643 (EQ): Use it.
16644 (SREF, SSET, STRING_COPYIN): Use SDATA.
16645 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
16646
16647 * alloc.c (mark_terminal): Remove left-over declaration.
16648 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
16649 (allocate_vectorlike): Remove type argument. Adjust callers.
16650 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
16651 Only handle the one remaining MEM_TYPE_VECTORLIKE.
16652
16653 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
16654 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
16655 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
16656 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
16657 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
16658 Use them.
16659
16660 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
16661 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
16662 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
16663
166642007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
16665
16666 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
16667 loaded by default.
16668
166692007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
16670
16671 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
16672 on this tty.
16673 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
16674
16675 * term.c (mouse_face_window): Rename from Qmouse_face_window.
16676 Update all users.
16677 (handle_one_term_event): Use Gpm_DrawPointer.
16678 (Fgpm_mouse_start): Rename from Fterm_open_connection.
16679 Signal errors instead of returning nil. Always return nil.
16680 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
16681 Make it a noop if gpm-mouse was not activated.
16682 (syms_of_term): Update names.
16683
166842007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
16685
16686 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
16687 (init_sys_modes): Check that gpm_tty is the current tty.
16688
16689 * alloc.c (allocate_terminal): Set the vector size to only count the
16690 lisp fields. Initialize those to nil.
16691 (mark_object): Don't treat terminals specially.
16692 (mark_terminal): Remove.
16693 (mark_terminals): Use mark_object instead.
16694
16695 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
16696 the GC to the beginning.
16697
16698 * indent.h:
16699 * indent.c: Use EMACS_INT for ints coming from Elisp data.
16700
16701 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
16702
167032007-09-25 Jason Rumney <jasonr@gnu.org>
16704
16705 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
16706
16707 * w32console.c (create_w32cons_output): Remove.
16708
16709 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
16710
16711 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
16712 (reset_sys_modes): Use reset_terminal_modes_hook.
16713
167142007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
16715
16716 * eval.c (do_autoload): Don't output any message.
16717
167182007-09-24 Juri Linkov <juri@jurta.org>
16719
16720 * emacs.c (standard_args): Change priority of "--no-splash"
16721 from 40 to 3. Add "--no-desktop" with the same priority.
16722
167232007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
16724
16725 * alloc.c (gc_sweep): Check cons cell mark bits word by word
16726 and optimize the case where they are all 1.
16727
167282007-09-23 Johannes Weiner <hannes@saeurebad.de>
16729
16730 * lisp.h (abs): Define if not defined.
16731 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
16732 Don't define `abs', since it's defined in lisp.h.
16733
167342007-09-22 Eli Zaretskii <eliz@gnu.org>
16735
16736 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
16737 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
16738 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
16739 (init_tty): Use DEV_TTY instead of "/dev/tty".
16740 [WINDOWSNT]: No need to protect from NAME arg being null.
16741
167422007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
16743
16744 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
16745 up the tty state.
16746
167472007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
16748
16749 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
16750 (gpm_tty): Change its type.
16751 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
16752 (gpm_tty): Change its type and initialize it.
16753 (Fterm_open_connection): Check the frame is indeed a tty.
16754 Use the new gpm_tty.
16755 (Fterm_close_connection): Use the new gpm_tty.
16756 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
16757 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
16758
167592007-09-21 Juanma Barranquero <lekktu@gmail.com>
16760
16761 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
16762 underline_color, to draw strike-through.
16763
167642007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
16765
16766 * lisp.h (allocate_terminal): Declare.
16767
16768 * window.c (candidate_window_p): Consider frames that are being placed
16769 by the user as somewhere between visible and iconified.
16770 (window_loop): Prefer windows on the current frame.
16771 (Fselect_window): Move the use of select-frame to the beginning so we
16772 can just delegate all the work (it'll call us back anyway).
16773
16774 * frame.c (Qdisplay_environment_variable):
16775 * frame.h (Qdisplay_environment_variable): Delete.
16776
16777 * .gdbinit (xbacktrace): Print the arg's address rather than the value
16778 of the first arg, since that value may be a union.
16779
16780 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
16781 parameter rather than Qdisplay_environment_variable. If all else
16782 fails, look for DISPLAY in initial-environment.
16783
167842007-09-21 Glenn Morris <rgm@gnu.org>
16785
16786 * Makefile.in (emacstool): Remove target.
16787 (lisp, shortlisp): Remove termdev.elc.
16788
167892007-09-21 Markus Triska <markus.triska@gmx.at>
16790
16791 * xterm.c (x_delete_display): Compile session management conditionally.
16792
167932007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
16794
16795 * callproc.c (getenv_internal_1): New function.
16796 (getenv_internal): Use it.
16797 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
16798
16799 * terminal.c (get_terminal): Don't accept ints to represent terminals.
16800 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
16801 (Fset_terminal_parameter): Work with dead terminals as well.
16802 (Fmodify_terminal_parameters): Remove.
16803
16804 * terminal.c (get_terminal): Handle terminals.
16805 Make sure the terminal returned is live.
16806 (create_terminal): Use allocate_terminal.
16807 (mark_terminals): Move to alloc.c.
16808 (delete_terminal): Use terminal->name as liveness status.
16809 NULL out fields after freeing their contents.
16810 Don't deallocate the object.
16811 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
16812 rather than an int.
16813 (Fterminal_live_p): Accept non-integer arguments.
16814 (Fterminal_list): Return terminal objects rather than an ints.
16815
16816 * alloc.c (enum mem_type): New member for `terminal' objects.
16817 (allocate_terminal): New function.
16818 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
16819 Handle terminals.
16820 (mark_terminal): New fun.
16821 (mark_terminals): Move from terminal.c.
16822
16823 * term.c (get_tty_terminal): Don't treat output_initial specially.
16824 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
16825 (delete_tty): Use terminal->name as liveness status.
16826
16827 * termhooks.h (struct terminal): Make it into a pseudovector.
16828 Remove `deleted' replaced by checking `name's nullness.
16829
16830 * print.c (print_object): Handle terminals.
16831
16832 * lisp.h (enum pvec_type): New `terminal' pseudovector.
16833 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
16834
16835 * frame.c (make_terminal_frame):
16836 * keyboard.c (tty_read_avail_input):
16837 * w32term.c (x_delete_terminal):
16838 * xfns.c (Fx_create_frame, x_create_tip_frame):
16839 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
16840
168412007-09-20 Glenn Morris <rgm@gnu.org>
16842
16843 * process.c (Fmake_network_process): Doc fix.
16844
168452007-09-19 Jason Rumney <jasonr@gnu.org>
16846
16847 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
16848
168492007-09-19 Michaël Cadilhac <michael@cadilhac.name>
16850
16851 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
16852 Fix a C warning regarding variable constness.
16853
16854 * xterm.c (handle_one_xevent): Fix a C warning.
16855
168562007-09-18 Jason Rumney <jasonr@gnu.org>
16857
16858 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
16859
168602007-09-17 Jan Djärv <jan.h.d@swipnet.se>
16861
16862 * gtkutil.c (gdpy_def): New variable.
16863 (xg_initialize): Initialize gdpy_def.
16864 (xg_display_close): If no other display exists, set gdpy_def to a
16865 new connection.
16866
168672007-09-16 Jan Djärv <jan.h.d@swipnet.se>
16868
16869 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
16870 when we have no file name for the icon.
16871 (xg_tool_bar_expose_callback): Remove.
16872 (xg_create_tool_bar): Don't connect expose signal to
16873 xg_tool_bar_expose_callback.
16874 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
16875
168762007-09-16 Andreas Schwab <schwab@suse.de>
16877
16878 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
16879 values instead of zapping them.
16880
168812007-09-14 Glenn Morris <rgm@gnu.org>
16882
16883 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
16884 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
16885 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
16886 scope and rename to omfib_buffer for clarity.
16887 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
16888
168892007-09-14 Kenichi Handa <handa@m17n.org>
16890
16891 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
16892
168932007-09-13 Jason Rumney <jasonr@gnu.org>
16894
16895 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
16896
16897 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
16898
16899 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
16900 (mac_term_init): Call here instead, passing rif.
16901
169022007-09-13 Glenn Morris <rgm@gnu.org>
16903
16904 * s/hpux.h: No longer define `static' as nothing.
16905
169062007-09-13 Johan Bockgård <bojohan@gnu.org>
16907
16908 * callint.c (Fcall_interactively): Remove unused var `fun'.
16909
169102007-09-12 Romain Francoise <romain@orebokech.com>
16911
16912 * window.c (prefer_window_split_horizontally, display_buffer):
16913 Revert 2007-09-08 change.
16914
169152007-09-12 Glenn Morris <rgm@gnu.org>
16916
16917 * alloca.c: Remove file.
16918 * Makefile.in (alloca): Do not undef.
16919 (allocaobj, alloca.o): Remove.
16920 (otherobj): Remove allocaobj.
16921 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
16922 * regex.c (C_ALLOCA): Remove all references and code that was only
16923 used when this was defined.
16924 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
16925 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
16926 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
16927
16928 * Makefile.in (SOURCES, unlock, relock): Delete.
16929
16930 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
16931 (menu_grab_callback): All uses changed.
16932
16933 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
16934 (x_reply_selection_request): All uses changed.
16935
169362007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
16937
16938 * lread.c (load_warn_old_style_backquotes): Change message to look
16939 better when it appears in the middle of byte-compiler messages.
16940
169412007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
16942
16943 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
16944
16945 * xterm.c (x_create_terminal): Add comment.
16946
16947 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
16948
169492007-09-10 Richard Stallman <rms@gnu.org>
16950
16951 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
16952
169532007-09-10 Michaël Cadilhac <michael@cadilhac.name>
16954
16955 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
16956 (DEFUN): Document `intspec', use it instead of `prompt'.
16957
16958 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
16959
16960 * data.c (Finteractive_form): If the interactive specification starts
16961 with a `(', use it as a Lisp form.
16962
16963 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
16964 name and file modes.
16965
16966 * callint.c (Fcall_interactively): Comment fixes.
16967
169682007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
16969
16970 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
16971 and compiled functions.
16972
169732007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
16974
16975 * window.c (prefer_window_split_horizontally): New variable.
16976 (display_buffer): Consider splitting window horizontally depending
16977 on prefer_window_split_horizontally.
16978
169792007-09-08 Eli Zaretskii <eliz@gnu.org>
16980
16981 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
16982
169832007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
16984
16985 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
16986
16987 * frame.c (x_set_frame_parameters): Check number is positive before
16988 using XFASTINT.
16989
16990 * window.c (freeze_window_start): Don't presume selected_window holds
16991 a window object.
16992 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
16993
169942007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
16995
16996 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
16997
169982007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
16999
17000 * window.c (Vsplit_window_preferred_function): New var.
17001 (Fdisplay_buffer): Use it.
17002 (syms_of_window): Export, and initialize it.
17003
170042007-09-06 Pixel <pixel@mandriva.com> (tiny change)
17005
17006 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
17007
170082007-09-06 Glenn Morris <rgm@gnu.org>
17009
17010 * gtkutil.c (menu_grab_callback) <cnt>:
17011 * xselect.c (x_reply_selection_request) <cnt>: Move static
17012 variable to file scope.
17013
170142007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
17015
17016 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
17017 consistent values of selected_frame and selected_window.
17018
170192007-09-04 Jason Rumney <jasonr@gnu.org>
17020
17021 * w32console.c (initialize_w32_display): Zero unused hooks.
17022
170232007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
17024
17025 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
17026 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
17027
170282007-09-04 Jason Rumney <jasonr@gnu.org>
17029
17030 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
17031 in w32console.c. Set up input. Remove XXX comments that have been
17032 confirmed as correct.
17033
17034 * s/ms-w32.h (MULTI_KBOARD): Define.
17035
17036 * w32console.c (one_and_only_w32cons): Remove.
17037 (initialize_w32_display): Take terminal argument.
17038
17039 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
17040 initialize_w32_display.
17041 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
17042
17043 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
17044
17045 * keyboard.c (discard_mouse_events): Discard it.
17046 (make_lispy_event): Translate it to a lisp event.
17047 (lispy_wheel_names): Add wheel-left and right events.
17048 (syms_of_keyboard): Enlarge wheel_syms.
17049
17050 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
17051 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
17052
17053 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
17054
17055 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
17056 from WM_MOUSEHWHEEL.
17057 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
17058
17059 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
17060 terminal.
17061
17062 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
17063 keyboard for the terminal.
17064
170652007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
17066
17067 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
17068 (Vresume_tty_hook): Rename from Vresume_tty_functions.
17069 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
17070 and resume-tty-function to resume-tty-hook.
17071 (Fsuspend_tty, Fresume_tty): Use new names.
17072
170732007-09-02 Jan Djärv <jan.h.d@swipnet.se>
17074
17075 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
17076 if it starts with "n:".
17077
170782007-08-31 Jan Djärv <jan.h.d@swipnet.se>
17079
17080 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
17081
170822007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
17083
17084 * frame.h:
17085 * frame.c (Qterm_environment_variable): Remove.
17086 (syms_of_frame): Don't init and staticpro it.
17087
17088 * callproc.c (getenv_internal): Remove special case for $TERM.
17089
17090 * callproc.c (Vinitial_environment): New variable.
17091 (set_initial_environment): Initialize it.
17092 (syms_of_callproc): Declare it.
17093 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
17094 TERM under which a process runs is never related to the TERM in which
17095 Emacs is running.
17096
170972007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
17098
17099 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
17100 * s/darwin.h: ... do it here.
17101
171022007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
17103
17104 * lisp.h (set_initial_environment): Rename from set_global_environment.
17105
17106 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
17107 removed by mistake on the multi-tty branch.
17108
17109 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
17110 (Fmodify_frame_parameters): Return a value.
17111
17112 * image.c (png_load): Comment-out var only used in commented-out code.
17113
17114 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
17115 before passing it to mark_object.
17116
17117 * xfaces.c (internal_resolve_face_name): Return a value.
17118 (internal_resolve_face_name, resolve_face_name_error): Comment out.
17119
17120 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
17121 (x_icon): Comment-out var only used in commented-out code.
17122
171232007-08-29 Romain Francoise <romain@orebokech.com>
17124
17125 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
17126 QUIT hasn't been provided.
17127
171282007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
17129
17130 * callproc.c (child_setup, getenv_internal): Use the
17131 display-environment-variable and term-environment-variable frame params.
17132 (set_initial_environment): Initialise Vprocess_environment.
17133
17134 * config.in: Disable multi-keyboard support on a mac.
17135
17136 * frame.c (Qterm_environment_variable)
17137 (Qdisplay_environment_variable): New variables.
17138 (syms_of_frame): Intern and staticpro them.
17139 (Fmake_terminal_frame): Disable output method test.
17140
17141 * frame.h: Declare them here.
17142
17143 * macfns.c (x_set_mouse_color): Get rif from the frame.
17144 (x_set_tool_bar_lines): Don't use updating_frame.
17145 (mac_window): Add 2 new parameters for consistency with other systems.
17146 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
17147 frame parameters following what is done in X11 and w32. Don't use
17148 FRAME_MAC_DISPLAY_INFO.
17149 (Fx_open_connection, start_hourglass): Remove window-system check.
17150 (x_create_tip_frame): Get the keyboard from the terminal.
17151
17152 * macmenu.c: Reorder includes.
17153 (Fx_popup_menu): Use terminal specific mouse_position_hook.
17154
17155 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
17156 terminal parameter.
17157 (x_clear_frame): Add a frame parameter.
17158 (note_mouse_movement): Get rif from the frame.
17159 (mac_term_init): Initialize the terminal.
17160 (mac_initialize): Make static and move terminal initialization ...
17161 (mac_create_terminal): ... to this new function.
17162
17163 * macterm.h (struct mac_display_info): Add terminal.
17164 (mac_initialize): Delete declaration.
17165
17166 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
17167
17168 * sysdep.c: Comment out text after #endif.
17169
17170 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
17171 is defined. Better initialize ttys in windows. Use terminal
17172 specific mouse_position_hook.
17173
17174 * termhooks.h (union display_info): Add mac_display_info.
17175
17176 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
17177 Set the default minibuffer frame, window_system and the rest of the
17178 frame parameters following what is done in X11.
17179
17180 * w32term.c (w32_initialize): Make static.
17181
17182 * xselect.c (x_handle_selection_clear): Only access
17183 terminal->kboard when MULTI_KBOARD is defined.
17184
17185 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
17186 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
17187
171882007-08-29 Jason Rumney <jasonr@gnu.org>
17189
17190 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
17191 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
17192
17193 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
17194 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
17195
17196 * keyboard.c (restore_kboard_configuration): Only define when
17197 MULTI_KBOARD defined.
17198
17199 * makefile.w32-in: Update dependancies from Makefile.in.
17200 (OBJ1): Add terminal.$(O)
17201
17202 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
17203 Don't define function body.
17204 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
17205
17206 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
17207
17208 * w32.c (request_sigio, unrequest_sigio): Remove.
17209
17210 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
17211 (w32con_clear_frame, w32con_clear_end_of_line)
17212 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
17213 (w32con_delete_glyphs, w32con_set_terminal_window)
17214 (scroll_line, w32_sys_ring_bell): Add frame arg.
17215 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
17216 Add terminal arg.
17217 (PICK_FRAME): Remove.
17218 (w32con_write_glyphs): Use frame specific terminal coding.
17219 (one_and_only_w32cons): New global variable.
17220 (initialize_w32_display): Use it for storing hooks.
17221 (create_w32cons_output): New function.
17222
17223 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
17224 arg a frame.
17225
17226 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
17227 Set window_system.
17228 (x_set_tool_bar_lines): Don't use updating_frame.
17229 (Fx_create_frame): Set terminal and ref count.
17230 (Fx_open_connection): Remove window-system check.
17231
17232 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
17233
17234 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
17235 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
17236 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
17237 Add frame arg.
17238 (x_delete_terminal, w32_create_terminal): New functions.
17239 (w32_term_init): Create a terminal.
17240 (w32_initialize): Move terminal specific initialization to
17241 w32_create_terminal.
17242
17243 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
17244 (w32_clear_rect, w32_clear_area): Use background from frame.
17245 (w32_display_info): Add terminal.
17246 (w32_sys_ring_bell, x_delete_display): Declare here.
17247
17248 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
17249
17250 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
17251
172522007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
17253
17254 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
17255 Fix get_named_tty calls for the controlling tty.
17256
172572007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
17258
17259 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
17260
172612007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
17262
17263 * term.c (tty_insert_glyphs): Add missing first parameter.
17264
172652007-08-29 Károly Lőrentey <karoly@lorentey.hu>
17266
17267 * buffer.c (Fbuffer_list, Fbury_buffer):
17268 Take frame->buried_buffer_list into account.
17269
17270 * cm.c (current_tty): New variable, for cmputc().
17271 (cmputc): Use it.
17272 (cmcheckmagic): Add tty parameter, look up terminal streams there.
17273 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
17274 (cmgoto): Add tty parameter. Pass it on to calccost().
17275 Use emacs_tputs() instead of tputs().
17276
17277 * cm.h (emacs_tputs): New macro to set current_tty, and then call
17278 tputs().
17279 (current_tty): New variable, for cmputc().
17280 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
17281
17282 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
17283 (internal_condition_case, internal_condition_case_1)
17284 (internal_condition_case_2): Don't abort when x_catching_errors.
17285
17286 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
17287 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
17288 prevent crashes caused by bogus longjmps in read_char.
17289
17290 * keymap.h (Fset_keymap_parent): Add EXFUN.
17291
17292 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
17293 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
17294 Remove redundant definition.
17295
17296 * macfns.c (x_set_mouse_color, x_make_gc):
17297 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
17298
17299 * w32term.c (x_free_frame_resources):
17300 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
17301 (w32_initialize): Use the accessor macros for terminal characteristics.
17302
17303 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
17304 Use the accessor macros for terminal characteristics.
17305 * msdos.c (internal_terminal_init): Use the accessor macros for
17306 terminal characteristics.
17307 (ScreenVisualBell, internal_terminal_init):
17308 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
17309
17310 * termopts.h (no_redraw_on_reenter): Declare.
17311
17312 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
17313 (mark_terminals, mark_ttys): Declare.
17314 (Fgarbage_collect): Call them.
17315 (mark_object): Mark buried_buffer_list.
17316
17317 * prefix-args.c: Include stdlib.h for exit.
17318
17319 * syssignal.h: Add comment.
17320
17321 * indent.c: Include stdio.h.
17322
17323 * window.h (Vinitial_window_system): Declare.
17324 (Vwindow_system): Delete declaration.
17325
17326 * fontset.c (Finternal_char_font): Use FRAME_RIF.
17327
17328 * image.c (lookup_image): Don't initialize `c' until the xasserts
17329 have been run.
17330
17331 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
17332 FRAME_FOREGROUND_PIXEL.
17333
17334 * print.c (print_preprocess): Don't lose print_depth levels while
17335 iterating.
17336
17337 * widget.c (update_from_various_frame_slots):
17338 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
17339
17340 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
17341 frames.
17342 (window_internal_height): Remove bogus make_number call.
17343 (init_window_once): Call make_terminal_frame with two zero parameters.
17344
17345 * fileio.c (Fread_file_name): Update comment.
17346
17347 * callint.c (Fcall_interactively):
17348 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
17349 Make sure it is correctly unwound.
17350
17351 * xsmfns.c (x_session_close): New function.
17352
17353 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
17354 Delete declarations.
17355
17356 * xterm.h: Remove declaration for x_fully_uncatch_errors.
17357 (x_output): Remove background_pixel and foreground_pixel fields.
17358 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
17359 (x_delete_device, x_session_close): Declare.
17360
17361 * lread.c: Include setjmp.h. Update declaration of `read_char'.
17362 (read_filtered_event): Call `read_char' with a local
17363 `wrong_kboard_jmpbuf'.
17364
17365 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
17366 Don't call single_kboard_state. Use FRAME_RIF.
17367
17368 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
17369 systems.
17370
17371 * lisp.h (set_process_environment): Rename to `set_global_environment'.
17372 (Fframe_with_environment, Fset_input_meta_mode)
17373 (Fset_quit_char): EXFUN.
17374 (x_create_device, tty_output, terminal, tty_display_info): Declare.
17375 (init_sys_modes, reset_sys_modes): Update prototypes.
17376 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
17377
17378 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
17379 Vlocal_key_translation_map, and Vkeyboard_translate_table.
17380 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
17381 Delete declarations.
17382 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
17383 (temporarily_switch_to_single_kboard, tty_read_avail_input):
17384 New declarations.
17385
17386 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
17387 already does that during init_display(). Call syms_of_keymap
17388 before syms_of_keyboard. Call `syms_of_terminal'.
17389 Call set_initial_environment, not set_process_environment.
17390 (shut_down_emacs): Call reset_all_sys_modes() instead of
17391 reset_sys_modes().
17392
17393 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
17394 (internal_resolve_face_name, resolve_face_name_error): New functions.
17395 (resolve_face_name): Protect against loops and errors thrown by Fget.
17396 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
17397 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
17398
17399 * scroll.c: Replace CURTTY() with local variables throughout the
17400 file (where applicable).
17401 (calculate_scrolling, calculate_direct_scrolling)
17402 (scrolling_1, scroll_cost): Use the accessor macros for terminal
17403 characteristics.
17404
17405 * keymap.c (Vfunction_key_map): Remove.
17406 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
17407 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
17408 (Vkey_translation_map): Remove.
17409 (syms_of_keymap): Remove DEFVAR for key-translation-map.
17410 (Fdescribe_buffer_bindings)
17411 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
17412 Update for terminal-local key-translation-map.
17413
17414 * Makefile.in (callproc.o): Update dependencies.
17415 (lisp, shortlisp): Add termdev.elc.
17416 (obj): Add terminal.o.
17417 (terminal.o): Add dependencies.
17418 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
17419 (data.o, fns.o): Add termhooks.h dependency.
17420 (SOME_MACHINE_LISP): Add dnd.elc.
17421 (minibuf.o): Fix typo.
17422 Update dependencies.
17423
17424 * data.c (do_symval_forwarding, store_symval_forwarding)
17425 (find_symbol_value): Use the selected frame's keyboard, not
17426 current_kboard.
17427
17428 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
17429 Vwindow_system.
17430
17431 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
17432 Fmenu_bar_open.
17433 (syms_of_xmenu): Update defsubr.
17434 (mouse_position_for_popup, Fx_popup_menu)
17435 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
17436 (set_frame_menubar, free_frame_menubar)
b97439ce 17437 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
17438 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
17439 an X frame.
17440
17441 * xselect.c (x_own_selection): Abort if not an X frame.
17442 (some_frame_on_display): Check if it is an X frame.
17443 (x_handle_selection_clear): Deal with MULTI_KBOARD.
17444
17445 * coding.c: Include frame.h and termhooks.h.
17446 (terminal_coding, keyboard_coding): Delete.
17447 (Fset_terminal_coding_system_internal)
17448 (Fset_keyboard_coding_system_internal)
17449 (Fkeyboard_coding_system)
17450 (Fterminal_coding_system): Add a terminal parameter.
17451 Get terminal_coding from the terminal.
17452 (init_coding_once): Don't call setup_coding_system here.
17453
17454 * dispextern.h (set_scroll_region, turn_off_insert)
17455 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
17456 (tty_clear_end_of_line, tty_setup_colors)
17457 (delete_tty, updating_frame)
17458 (produce_special_glyphs, produce_glyphs, write_glyphs)
17459 (insert_glyphs): Remove.
17460 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
17461 (tty_turn_off_highlight, get_tty_size): Add declaration.
17462 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
17463
17464 * frame.h (enum output_method): Add output_initial.
17465 (struct x_output): Delete.
17466 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
17467 Access foreground_pixel and background_pixel directly from the frame.
17468 (tty_display): Delete.
17469 (struct frame): Add buried_buffer_list, foreground_pixel,
17470 background_pixel and terminal. Delete kboard.
17471 (union output_data): Add tty.
17472 (FRAME_KBOARD): Get the kboard from the terminal.
17473 (FRAME_INITIAL_P): New macro.
17474 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
17475 (Qterm_environment_variable, Qdisplay_environment_variable)
17476 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
17477 New declarations.
17478
17479 * termchar.h (tty_output, tty_display_info): New structures.
17480 (tty_list): Declare.
17481 (FRAME_TTY, CURTTY): New macros.
17482 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
17483 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
17484 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
17485 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
17486
17487 * callproc.c: Include frame.h and termhooks.h, for terminal
17488 parameters.
17489 (add_env): New function.
17490 (child_setup): Use it.
17491 (child_setup, getenv_internal): Handle the new Vprocess_environment.
17492 (getenv_internal): Fix get_terminal_param call.
17493 (Fgetenv_internal, egetenv): Update doc.
17494 (syms_of_callproc): Initialize Vprocess_environment to nil.
17495 Register and initialize them. Remove obsolete defvars. Update doc
17496 strings.
17497 (child_setup): Handle Vlocal_environment_variables.
17498 (getenv_internal): Add terminal parameter.
17499 Handle Vlocal_environment_variables.
17500 (Fgetenv_internal): Add terminal parameter.
17501 (child_setup, getenv_internal, Fgetenv_internal): Store the local
17502 environment in a frame (not terminal) parameter. Update doc strings.
17503 (set_initial_environment): Rename from set_global_environment.
17504 Store Emacs environment in initial frame parameter.
17505
17506 * xdisp.c (redisplay_internal): Update references to
17507 `previous_terminal_frame'.
17508 (display_mode_line, Fformat_mode_line): Replace calls to
17509 `push_frame_kboard' with `push_kboard'.
17510 (get_glyph_string_clip_rects): Add extra parentheses and
17511 braces to prevent compiler warnings.
17512 (calc_pixel_width_or_height): Add xassert to check that the
17513 frame is alive. Don't call `lookup_image' on a termcap frame.
17514 (message2_nolog, message3_nolog, redisplay_internal)
17515 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
17516 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
17517 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
17518 (Fx_display_pixel_width, Fx_display_pixel_height)
17519 (Fx_display_planes, Fx_display_color_cells)
17520 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
17521 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
17522 (Fx_display_backing_store, Fx_display_visual_class)
17523 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
17524 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
17525
17526 * xfns.c (x_set_foreground_color x_set_background_color)
17527 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
17528 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
17529 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
17530 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
17531 terminal that is being deleted.
17532 (Fx_create_frame): Use `store_frame_param' to set `window-system'
17533 frame parameter, and make sure it overrides any user-supplied setting.
17534 (Fx_close_connection, Fx_synchronize): Unify argument names with
17535 the rest of the DEFUNs.
17536
17537 * dispnew.c (Fsend_string_to_terminal): Update call to
17538 `get_tty_terminal'.
17539 (Fredraw_frame, Fsend_string_to_terminal)
17540 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
17541 FRAME_TERMCAP_P and FRAME_TTY.
17542 (window_change_signal): Don't believe width/height values that are
17543 impossibly small.
17544 (Vinitial_window_system): Rename from Vwindow_system.
17545 (termscript, Wcm, rif): Delete.
17546
17547 * termhooks.h (struct terminal): New struct containing the
17548 previously global text display hooks and new members NAME,
17549 DELETED and PARAM_ALIST.
17550 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
17551 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
17552 (FRAME_RIF): New macros.
17553 (get_terminal_param, get_device): New declarations.
17554 (termscript): Delete declaration.
17555
17556 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
17557 (XTflash, x_free_frame_resources, x_scroll_bar_create)
17558 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
17559 FRAME_FOREGROUND_PIXEL.
17560 (x_fully_uncatch_errors): Disable definition.
17561 (x_scroll_bar_expose): Fix reference to foreground pixel.
17562 (XTread_socket): Disable loop on all X displays.
17563 (x_delete_terminal): Don't set terminal->deleted and let
17564 delete_terminal delete the frames on the terminal.
17565 (x_delete_display): Doc update to reflect changes in
17566 delete_terminal.
17567 (x_display_info) <terminal>: Move member earlier in the struct.
17568 (deleting_tty): Remove old variable.
17569 (Fsuspend_tty): Call clear_tty_hooks.
17570 (Fresume_tty, init_tty): Call set_tty_hooks.
17571 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
17572 errors on X frames.
17573 (x_catch_errors_unwind): Abort if x_error_message is NULL.
17574 (handle_one_xevent): Initialize `f' to NULL.
17575 (x_delete_terminal, x_create_terminal): New functions.
17576 (XTset_terminal_modes, XTreset_terminal_modes)
17577 (XTread_socket, x_connection_closed, x_term_init)
17578 (x_term_init, x_delete_display): Add terminal parameter.
17579 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
17580 X connections.
17581
17582 * frame.c: Include termchar.h.
17583 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
17584 (Qwindow_system, Qenvironment, Qterm_environment_variable)
17585 (Qdisplay_environment_variable): New vars.
17586 (Fframep): Deal with output_initial.
17587 (Fframe-live-p): Doc fix.
17588 (Fwindow-system): New function.
17589 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
17590 (make_terminal_frame): Don't create frames on a terminal that is
17591 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
17592 (store_frame_param): Check for found_for_frame before calling XFRAME.
17593 (Fmake_terminal_frame): Handle NULL tty names correctly.
17594 (syms_of_frame): Enhance doc string of `default-frame-alist'.
17595 (Fdelete_frame): Remove unused variable `count'. Don't allow other
17596 frames to refer to a deleted frame in their 'environment parameter.
17597 (Fframe_with_environment): New function.
17598 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
17599 (get_future_frame_param): New function.
17600 (Fmake_terminal_frame): Use it.
17601 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
17602
17603 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
17604 * sysdep.c (reset_sys_modes): Update for renames.
17605
17606 * keyboard.c (tty_read_avail_input): New function.
17607 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
17608 (syms_of_keyboard): Defsubr them.
17609 (Fset_input_meta_mode, Fset_quit_char): New functions.
17610 (Fset_input_mode): Split to above functions.
17611 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
17612 parameter. Use it in call to `read_char'.
17613 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
17614 Set wrong_kboard_jmpbuf correctly in recursive calls.
17615 Use current_kboard to access Vkeyboard_translate_table.
17616 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
17617 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
17618 Update longjmp invocations. Remember the original current_kboard,
17619 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
17620 changes it. Comment out unnecessary calls to
17621 `record_single_kboard_state' and `any_kboard_state'.
17622 Update recursive calls.
17623 (wrong_kboard_jmpbuf): Remove global variable.
17624 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
17625 Handle deleted interrupted_kboards correctly; that is a legal
17626 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
17627 and read_char calls. Abort if interrupted_kboard died in read_char.
17628 (any_kboard_state, single_kboard_state)
17629 (push_frame_kboard): Remove function.
17630 (pop_kboard): Switch out of single_kboard mode if the kboard has
17631 been deleted. Remove unused variable. Help debugging by not
17632 changing current_kboard unnecessarily. Set current_kboard to the
17633 kboard of the selected frame when the stored kboard object has
17634 been deleted before pop_kboard.
17635 (temporarily_switch_to_single_kboard): Change first parameter to a
17636 frame pointer. Throw an error when caller wants to change kboards
17637 while in single_kboard mode. Don't push_kboard if we weren't in
17638 single kboard state. Don't pop_kboard if we popped into any
17639 kboard state.
17640 (restore_kboard_configuration): Abort if pop_kboard changed the
17641 kboard in single_kboard mode. Call pop_kboard only after setting
17642 up single_kboard mode.
17643 (Frecursive_edit): Switch to single_kboard mode only in nested
17644 command loops.
17645 (cmd_error, command_loop, command_loop_1, timer_check):
17646 Comment out unnecessary call to `any_kboard_state' and
17647 `record_single_kboard_state'.
17648 (delete_kboard): Exit single_kboard mode if we have just deleted
17649 that kboard. Use FRAME_KBOARD.
17650 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
17651 `fatal_error_signal'.
17652 (record_single_kboard_state): Don't push_kboard if we weren't in
17653 single kboard state. Don't pop_kboard if we popped into any
17654 kboard state.
17655 (push_frame_kboard): Rename to push_kboard.
17656 (kbd_buffer_get_event): Use FRAME_TERMINAL.
17657 (read_avail_input): Read input from all terminals.
17658 (mark_kboards): Also mark Vkeyboard_translate_table.
17659 (kbd_buffer_store_event_hold): Simplify condition.
17660 (read_key_sequence): Reinitialize fkey and keytran at each replay.
17661 (Vkeyboard_translate_table): Move to struct kboard.
17662 (init_kboard): Initialize Vkeyboard_translate_table.
17663 (syms_of_keyboard): Use DEFVAR_KBOARD to define
17664 Vkeyboard_translate_table. Update doc strings. Update docs of
17665 local-function-key-map and function-key-map.
17666
17667 * terminal.c: New file.
17668
17669 * term.c: Include errno.h.
17670 (Vring_bell_function, device_list, initial_device)
17671 (next_device_id, ring_bell, update_begin, update_end)
17672 (set_terminal_window, cursor_to, raw_cursor_to)
17673 (clear_to_end, clear_frame, clear_end_of_line)
17674 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
17675 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
17676 (syms_of_term): Move their initialization to terminal.c.
17677 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
17678 (Ftty_display_color_cells)
17679 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
17680 (clear_tty_hooks, set_tty_hooks)
17681 (init_tty, maybe_fatal): New functions.
17682 (Ftty_type): Return nil if terminal is not on a tty instead of
17683 throwing an error. Doc update.
17684 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
17685 Doc update. Initialize new subrs and variables.
17686 (delete_tty): Use terminal->deleted.
17687 (tty_set_terminal_modes): Rename from set_terminal_modes.
17688 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
17689 (set_scroll_region): Rename to `tty_set_scroll_region'.
17690 (turn_on_insert): Rename to `tty_turn_on_insert'.
17691 (turn_off_insert): Rename to `tty_turn_off_insert'.
17692 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
17693 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
17694 (toggle_highligh): Rename to `tty_toggle_highlight'.
17695 (background_highlight): Rename to `tty_background_highlight'.
17696 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
17697 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
17698 (tty_set_scroll_region, tty_background_highlight)
17699 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
17700 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
17701 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
17702 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
17703 Add static modifier.
17704 (tty_reset_terminal_modes, tty_set_terminal_window)
17705 (tty_set_scroll_region, tty_background_highlight)
17706 (tty_highlight_if_desired, tty_cursor_to)
17707 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
17708 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
17709 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
17710 renames.
17711
177122007-08-28 Jan Djärv <jan.h.d@swipnet.se>
17713
17714 * keyboard.c: Qrtl is new.
17715 (parse_tool_bar_item): Handle :rtl keyword.
17716 (syms_of_keyboard): Intern :rtl keyword.
17717
17718 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
17719
17720 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
17721 so no Lisp code is executed.
17722 (file_for_image, find_rtl_image): New functions.
17723 (xg_get_image_for_pixmap): Use file_for_image.
17724 (update_frame_tool_bar): If direction is RTL, use RTL image if
17725 defined. Use Gtk stock images if defined.
17726
177272007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17728
17729 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
17730 for nonexistent or zero-width glyph in composition glyph.
17731
177322007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
17733
17734 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
17735
17736 * xdisp.c (Finvisible_p): New function.
17737 (syms_of_xdisp): defsubr it.
17738
177392007-08-24 Juanma Barranquero <lekktu@gmail.com>
17740
17741 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
17742 Doc fixes.
17743
177442007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17745
17746 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
17747
177482007-08-24 Martin Rudalics <rudalics@gmx.at>
17749
17750 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
17751 whether decoding has modified buffer contents.
17752
177532007-08-24 Jason Rumney <jasonr@gnu.org>
17754
17755 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
17756 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
17757 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
17758 (init_svg_functions) [HAVE_NTGUI]: New function.
17759 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
17760 (svg_load_image): Use them.
17761 (svg_load_image) [HAVE_NTGUI]: Implement background.
17762
177632007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17764
17765 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
17766 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
17767 (LIBX): Remove @RSVG_LIBS@.
17768 (LIBES): Add $(RSVG_LIBS).
17769
17770 * image.c (svg_load_image): Blend with specified background if exists.
17771 Use IMAGE_BACKGROUND. Add Mac OS Support.
17772
17773 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
17774 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
17775 Remove macros.
17776 [MAC_OSX] (socket_callback): Do nothing.
17777 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
17778 ReceiveNextEvent.
17779 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
17780 socket_callback.
17781 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
17782
177832007-08-22 Glenn Morris <rgm@gnu.org>
17784
17785 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
17786
177872007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
17788
17789 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
17790
17791 * image.c: Add support for SVG images. Some additional comments
17792 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
17793 (svg_image_p): New function to test for SVG image.
17794 (svg_load): New function to load SVG image.
17795 (svg_load_image): New function, helper for svg_load.
17796 (Qsvg): New Lisp_object.
17797 (svg_keyword_index): New enum.
17798 (svg_format): New static `image_keyword' struct.
17799 (svg_type): New static `image_type' struct.
17800 (librsvg/rsvg.h): Include it.
17801
178022007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
17803
17804 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
17805
178062007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
17807
17808 * lread.c (Qold_style_backquotes): New var.
17809 (syms_of_lread): Init and staticpro it.
17810 (load_warn_old_style_backquotes): New fun.
17811 (Fload): Use them to warn about old style backquotes.
17812 (end_of_file_error, Fload): Remove unused vars.
17813
17814 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
17815
17816 * lread.c (Vold_style_backquotes): New var.
17817 (syms_of_lread): Init and export it to Elisp.
17818 (read1): Set it when we find an old-style (back)quote.
17819
178202007-08-22 Jason Rumney <jasonr@gnu.org>
17821
17822 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
17823
178242007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
17825
17826 * puresize.h (BASE_PURESIZE): Increase to 1140000.
17827
178282007-08-19 Richard Stallman <rms@gnu.org>
17829
17830 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
17831
178322007-08-19 Andreas Schwab <schwab@suse.de>
17833
17834 * alloc.c (pure): Round PURESIZE up.
17835
178362007-08-17 Jan Djärv <jan.h.d@swipnet.se>
17837
17838 * xterm.c (handle_one_xevent): Remove check that mouse click is in
17839 active frame.
17840
178412007-08-16 Richard Stallman <rms@gnu.org>
17842
17843 * eval.c (Fcommandp): Add parens to clarify.
17844
17845 * minibuf.c (Fall_completions): Use enum for type of table.
17846
17847 * emacs.c (USAGE2): Improve text.
17848
178492007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
17850
17851 * term.c (tty_default_color_capabilities): Declare static
17852 variables in file scope, to avoid HPUX compiler problem.
17853
178542007-08-13 Jan Djärv <jan.h.d@swipnet.se>
17855
17856 * gtkutil.c (update_frame_tool_bar): Use -1 as index
17857 to gtk_toolbar_insert.
17858
178592007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
17860
17861 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
17862
17863 * insdel.c (reset_var_on_error): New fun.
17864 (signal_before_change, signal_after_change):
17865 Use it to reset (after|before)-change-functions to nil in case of error.
17866 Bind inhibit-modification-hooks to t.
17867 Don't bind (after|before)-change-functions to nil while they run.
17868
178692007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17870
17871 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
17872 filling pixmap with stippled background.
17873
178742007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17875
17876 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
17877 Don't use invisible frame as parent window for repositioning.
17878
178792007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
17880
17881 * print.c (new_backquote_output): Rename from old_backquote_output.
17882 (print): Inverse its logic (according to its name) so as to match the
17883 behavior of new_backquote_flag in lread.c.
17884
178852007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17886
17887 * gmalloc.c (posix_memalign): New function.
17888
17889 * macterm.c (frame_highlight, frame_unhighlight): Don't call
17890 ActivateControl/DeactivateControl here.
17891 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
17892 frame-notice-user-settings is non-nil.
17893 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
17894 for kEventParamFMFontStyle.
17895 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
17896 mac_pass_command_to_system and mac_pass_control_to_system here.
17897 (XTread_socket): Call ActivateControl/DeactivateControl here.
17898 (XTread_socket) [TARGET_API_MAC_CARBON]:
17899 Check mac_pass_command_to_system and mac_pass_control_to_system here.
17900 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
17901 for window repositioning.
17902
179032007-08-08 Glenn Morris <rgm@gnu.org>
17904
17905 * Replace `iff' in doc-strings and comments.
17906
179072007-08-07 Chong Yidong <cyd@stupidchicken.com>
17908
17909 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
17910
179112007-08-07 Martin Rudalics <rudalics@gmx.at>
17912
17913 * fileio.c (Finsert_file_contents): Run format-decode and
17914 after_insert_file_functions on entire buffer when REPLACE is
17915 non-nil and inhibit modification_hooks and point_motion_hooks.
17916 For consistency, run after_insert_file_functions iff something
17917 got inserted. Move signal_after_change and update_compositions
17918 after code running after_insert_file_functions. Make sure that
17919 undo_list doesn't record intermediate steps of the decoding process.
17920
179212007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17922
17923 * emacs.c (main)
17924 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
17925 Call malloc_enable_thread on interactive startup.
17926
17927 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
17928 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
17929 [USE_PTHREAD]: Conditionalize with it.
17930 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
17931 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
17932 New functions.
17933
179342007-08-06 Chong Yidong <cyd@stupidchicken.com>
17935
17936 * xdisp.c (redisplay_window): When restoring original buffer
17937 position, make sure it is still valid.
17938
17939 * image.c (png_load): Ignore png-supplied background color.
17940
179412007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17942
17943 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
17944 Use kCFAbsoluteTimeIntervalSince1970.
17945
17946 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
17947 New variable.
17948 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
17949 event loop should be quit.
17950 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
17951 Quit dialog event loop if quit_dialog_event_loop is set.
17952
17953 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
17954 (Selection): New typedef. Use instead of ScrapRef.
17955 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
17956 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
17957 (mac_clear_selection): Rename from clear_scrap.
17958 (get_flavor_type_from_symbol): New argument SEL and subsume function of
17959 scrap_has_target_type. All uses changed.
17960 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
17961 (mac_selection_has_target_p): New functions.
17962 (mac_put_selection_value): Rename from put_scrap_string.
17963 (mac_get_selection_value): Rename from get_scrap_string.
17964 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
17965 (put_scrap_private_timestamp, scrap_has_target_type)
17966 (get_scrap_private_timestamp): Remove functions.
17967 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
17968 (x_own_selection, x_get_local_selection):
17969 Use mac_valid_selection_value_p.
17970 (x_own_selection): Don't use put_scrap_private_timestamp.
17971 Record OWNERSHIP-INFO into Vselection_alist instead.
17972 (x_get_local_selection): Don't check type if request is local.
17973 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
17974 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
17975
179762007-08-04 Jan Djärv <jan.h.d@swipnet.se>
17977
17978 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
17979 add comment explaining why.
17980
179812007-08-03 Richard Stallman <rms@gnu.org>
17982
17983 * fileio.c (Fvisited_file_modtime): Use make_time.
17984
179852007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
17986
17987 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
17988 build.
17989
179902007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
17991
17992 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
17993
179942007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
17995
17996 * puresize.h (BASE_PURESIZE): Increase to 1130000.
17997
179982007-07-30 Richard Stallman <rms@gnu.org>
17999
18000 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
18001
180022007-07-29 Jan Djärv <jan.h.d@swipnet.se>
18003
18004 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
18005
180062007-07-28 Nick Roberts <nickrob@snap.net.nz>
18007
18008 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
18009 remote default-directory.
18010
18011 * buffer.c (mode-line-format): Update doc string.
18012
180132007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18014
18015 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
18016 scroll bar gap.
18017 (x_scroll_bar_create): Set bar->fringe_extended_p.
18018 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
18019 on frame edge. Check fringe background extension. Don't clear
18020 extended fringe background area.
18021
18022 * w32term.h (struct scroll_bar): New member fringe_extended_p.
18023 (w32_fill_area): Enclose multiple statements with do ... while (0).
18024
18025 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
18026 Extend fringe background to scroll bar gap.
18027 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
18028 Set bar->fringe_extended_p.
18029 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
18030 Put leftmost/rightmost scroll bars on frame edge. Check fringe
18031 background extension. Don't clear extended fringe background area.
18032
18033 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
18034 New member fringe_extended_p.
18035
180362007-07-25 Glenn Morris <rgm@gnu.org>
18037
18038 * Relicense all FSF files to GPLv3 or later.
18039
18040 * COPYING: Switch to GPLv3.
18041
180422007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
18043
18044 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
18045
18046 * data.c (Finteractive_form): Check for the presence of an
18047 `interactive-form' symbol property more thoroughly.
18048
18049 * data.c (Finteractive_form): Use an `interactive-form' property if
18050 present, analogous to the function-documentation property.
18051
180522007-07-24 Jason Rumney <jasonr@gnu.org>
18053
18054 * w32fns.c (x_real_positions): Get real position from OS instead of
18055 calculating it.
18056
180572007-07-23 Jason Rumney <jasonr@gnu.org>
18058
18059 * filelock.c (current_lock_owner): Allow for @ sign in username.
18060
180612007-07-22 Nick Roberts <nickrob@snap.net.nz>
18062
18063 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
18064 remote default-directory.
18065
18066 * buffer.c (mode-line-format): Describe above case in doc string.
18067
180682007-07-20 Eli Zaretskii <eliz@gnu.org>
18069
18070 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
18071 Define if not defined.
18072
180732007-07-18 Jason Rumney <jasonr@gnu.org>
18074
18075 * w32proc.c (w32_executable_type): Handle 64 bit executables.
18076
180772007-07-18 Richard Stallman <rms@gnu.org>
18078
18079 * data.c (Fsetq_default): Doc fix.
18080
18081 * eval.c (Fsetq): Doc fix.
18082
180832007-07-18 Juanma Barranquero <lekktu@gmail.com>
18084
18085 * coding.c (Ffind_operation_coding_system):
18086 * eval.c (For, Fand): Doc fixes.
18087 Reported by Johan Bockgård.
18088
180892007-07-18 Jan Djärv <jan.h.d@swipnet.se>
18090
18091 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
18092
18093 * xterm.h: Declare x_ewmh_activate_frame.
18094
18095 * xterm.c (x_ewmh_activate_frame): New function.
18096 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
18097
180982007-07-17 Martin Rudalics <rudalics@gmx.at>
18099
18100 * window.c (Fdisplay_buffer): If largest or LRU window is the
18101 only window, split it even if it is not eligible for splitting.
18102 This restores the original behavior broken by the 2007-07-15
18103 change.
18104
181052007-07-17 Glenn Morris <rgm@gnu.org>
18106
18107 * abbrev.c (abbrev_check_chars): New function.
18108 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
18109 Call abbrev_check_chars to check abbrev characters are word
18110 constituents. Doc fix.
18111
181122007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
18113
18114 * process.c (Fstart_process, Fmake_network_process)
18115 (read_process_output): Fix up last changes.
18116
181172007-07-16 Eli Zaretskii <eliz@gnu.org>
18118
18119 * makefile.w32-in (clean): Don't delete *~.
18120
181212007-07-16 Andreas Schwab <schwab@suse.de>
18122
18123 * window.c (Fdisplay_buffer): Use NILP.
18124 (Fset_window_scroll_bars): Likewise.
18125
181262007-07-15 Martin Rudalics <rudalics@gmx.at>
18127
18128 * window.c (window_min_size_2): New function.
18129 (window_min_size_1, size_window, Fdisplay_buffer)
18130 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
18131 windows without mode- or header-lines when window-min-height is
18132 too small.
18133 (size_window): Reset nodelete_p after testing it, following an
18134 earlier note by Kim F. Storm.
18135 (display_buffer): Do not set split_height_threshold to twice the
18136 value of window_min_height to avoid changing the value of a
18137 customizable variable. Rather explicitly check whether the
18138 height of the window that shall be splitted is at least as large
18139 as split_height_threshold.
18140 (Fwindow_full_width_p): New defun.
18141 (syms_of_window): Defsubr it.
18142
18143 * window.h: Add EXFUN for Fwindow_full_width_p.
18144
181452007-07-14 Jason Rumney <jasonr@gnu.org>
18146
18147 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
18148
181492007-07-14 Richard Stallman <rms@gnu.org>
18150
18151 * eval.c (maybe_call_debugger): New function.
18152 (find_handler_clause): Use maybe_call_debugger.
18153 Call it when the handler says `debug'.
18154 Eliminate DEBUGGER_VALUE_PTR.
18155 (Fsignal): Eliminate debugger_value.
18156 (Qdebug): New variable.
18157 (syms_of_eval): Initialize it.
18158
181592007-07-14 Juanma Barranquero <lekktu@gmail.com>
18160
18161 * eval.c (Fprogn):
18162 * keyboard.c (Ftrack_mouse):
18163 * print.c (Fwith_output_to_temp_buffer):
18164 * window.c (Fsave_window_excursion): Doc fix.
18165
181662007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
18167
18168 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
18169
181702007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
18171
18172 * process.h (struct Lisp_Process): Turn slots infd, outfd,
18173 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
18174 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
18175 read_output_delay, and read_output_skip from Lisp_Objects to ints.
18176 Remove unused encoding_carryover.
18177 * process.c: Adjust all functions accordingly.
18178
181792007-07-12 Richard Stallman <rms@gnu.org>
18180
18181 * term.c: Include unistd.h only if HAVE_UNISTD_H.
18182
181832007-07-11 Jason Rumney <jasonr@gnu.org>
18184
18185 * makefile.w32-in (LIBS): Include OLE32.
18186
18187 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
18188 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
18189
181902007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
18191
18192 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
18193 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
18194 from a Lisp_Object into a bare pointer.
18195 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
18196 Adjust the code correspondingly.
18197
18198 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
18199
18200 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
18201 (term_show_mouse_face): Remove unused var `j'.
18202 (handle_one_term_event): Remove unused vars `i' and `j'.
18203 Don't cast return value of ttyname since it's not necessary.
18204
182052007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
18206
18207 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
18208 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
18209
18210 * fns.c (map_char_table): Use an array of int for `indices' rather than
18211 an array of Lisp_Objects (which are only ever integers anyway).
18212 (Fmap_char_table): Update caller.
18213 * lisp.h: Update prototype.
18214 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
18215 * fontset.c (Ffontset_info):
18216 * casetab.c (set_case_table): Update callers.
18217
18218 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
18219
18220 * keymap.c (struct accessible_keymaps_data)
18221 (struct where_is_internal_data): New structures.
18222 (accessible_keymaps_1, where_is_internal_1): Use them to change
18223 interface to adhere to the one used by map_keymap.
18224 (Faccessible_keymaps, where_is_internal): Use map_keymap.
18225 (accessible_keymaps_char_table, where_is_internal_2): Remove.
18226
18227 * keymap.h (map_keymap_function_t): More informative prototype.
18228
182292007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
18230
18231 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
18232 (looking_at_1): Don't change search_regs and last_thing_searched
18233 if `inhibit-changing-match-data' is non-nil.
18234 (string_match_1, search_buffer, set_search_regs): Likewise.
18235 (syms_of_search): Add Lisp level definition for
18236 `inhibit-changing-match-data' and set it to nil.
18237 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
18238 start and end of the match, instead of using values in search_regs.
18239
182402007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
18241
18242 * minibuf.c (Fcompleting_read): New value `confirm-only'
18243 for `require-match'.
18244
182452007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
18246
18247 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
18248 part of the 2007-06-27 change to syms_of_fileio.
18249
182502007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18251
18252 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
18253 Check WINDOWP before using XWINDOW. Consolidate return statements.
18254
182552007-06-27 Richard Stallman <rms@gnu.org>
18256
18257 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
18258
182592007-06-27 Juanma Barranquero <lekktu@gmail.com>
18260
18261 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
18262
182632007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18264
18265 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
18266 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
18267 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
18268 (_free_internal, memalign): Use them.
18269 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
18270 Initialize to PTHREAD_MUTEX_INITIALIZER.
18271 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
18272 (morecore_nolock): Rename from morecore. All uses changed.
18273 Use only nolock versions of internal allocation functions.
18274 (_malloc_internal_nolock, _realloc_internal_nolock)
18275 (_free_internal_nolock): New functions created from
18276 _malloc_internal, _realloc_internal, and _free_internal.
18277 (_malloc_internal, _realloc_internal, _free_internal): Use them.
18278 Copy hook value to automatic variable before its use.
18279 (memalign): Copy hook value to automatic variable before its use.
18280
182812007-06-26 Kenichi Handa <handa@m17n.org>
18282
18283 * coding.c (Ffind_operation_coding_system): Docstring improved.
18284 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
18285
182862007-06-25 David Kastrup <dak@gnu.org>
18287
18288 * keymap.c (Fcurrent_active_maps): Add `position' argument.
18289 (Fwhere_is_internal): Adjust call to `current-active-maps' to
18290 cater for additional parameter.
18291
18292 * keymap.h: Adjust number of parameters to `current-active-maps'.
18293
18294 * doc.c (Fsubstitute_command_keys): Adjust call of
18295 `current-active-maps'.
18296
182972007-06-25 David Kastrup <dak@gnu.org>
18298
18299 * callint.c (Fcall_interactively): Make the parsing of interactive
18300 specs somewhat more readable.
18301
183022007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18303
18304 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
18305 to scroll bar gap also when bitmap fills fringe. Draw only foreground
18306 if extended background has already been filled.
18307
183082007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18309
18310 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
18311 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
18312
18313 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
18314 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
18315 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
18316 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
18317 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
18318 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
18319 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
18320 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
18321 Run timers during dialog popup.
18322 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
18323
183242007-06-21 Jason Rumney <jasonr@gnu.org>
18325
18326 * image.c (convert_mono_to_color_image): Swap fore and background.
18327
183282007-06-20 Jason Rumney <jasonr@gnu.org>
18329
18330 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
18331 (w32_free_bdf_font): Unmap memory not handle.
18332
183332007-06-20 Sam Steingold <sds@gnu.org>
18334
18335 * gmalloc.c (__morecore): Fix the declaration to comply with the
18336 definition.
18337
183382007-06-20 Juanma Barranquero <lekktu@gmail.com>
18339
18340 * w32term.c (w32_delete_display): Remove leftover declaration.
18341 (w32_define_cursor, w32_initialize): Make static.
18342
18343 * w32.c (_wsa_errlist): Fix typo in error message.
18344 (init_environment): Ignore any environment variable from the
18345 registry having a null value.
18346
183472007-06-20 Glenn Morris <rgm@gnu.org>
18348
18349 * Makefile.in (LIBGIF): Default to -lgif.
18350
183512007-06-17 Jason Rumney <jasonr@gnu.org>
18352
18353 * w32menu.c (add_menu_item): Don't use multibyte string functions on
18354 unicode strings.
18355
183562007-06-16 Juanma Barranquero <lekktu@gmail.com>
18357
18358 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
18359 Fix typo in docstring.
18360
183612007-06-16 Eli Zaretskii <eliz@gnu.org>
18362
18363 * w32menu.c (add_menu_item): Escape `&' characters in menu items
18364 and their keybindings.
18365
183662007-06-15 Chong Yidong <cyd@stupidchicken.com>
18367
18368 * composite.c (update_compositions): Fix last fix.
18369
183702007-06-14 Jason Rumney <jasonr@gnu.org>
18371
18372 * w32.c (get_process_times_fn): New function pointer.
18373 (globals_of_w32): Intialize it if present in kernel32.dll.
18374 (w32_get_internal_run_time): New function.
18375
18376 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
18377
183782007-06-14 Kenichi Handa <handa@etlken.m17n.org>
18379
18380 * composite.c (update_compositions): Check the validness of
18381 compositions.
18382
183832007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18384
18385 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
18386 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
18387
18388 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
18389 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
18390
18391 * macgui.h (USE_MAC_TOOLBAR): New define.
18392
18393 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
18394 Return immediately unless popup is activated.
18395
18396 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
18397 background to scroll bar gap.
18398 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
18399 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
18400 scroll bars on frame edge. Check fringe background extension.
18401 Don't clear extended fringe background area.
18402 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
18403 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
18404 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
18405 [USE_MAC_TOOLBAR]: New macros.
18406 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
18407 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
18408 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
18409 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
18410 [USE_MAC_TOOLBAR]: New functions.
18411 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
18412 manually if previous repositioning has failed.
18413 (mac_handle_keyboard_event): Use precomputed event kind.
18414 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
18415 as tool bar item click. Handle mouse movement over tool bar items.
18416
18417 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
18418 toolbar_win_gravity.
18419 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
18420 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
18421 Add externs.
18422
18423 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
18424 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
18425
184262007-06-14 Chong Yidong <cyd@stupidchicken.com>
18427
18428 * image.c (search_image_cache): Remove unused variable.
18429
184302007-06-13 Chong Yidong <cyd@stupidchicken.com>
18431
18432 * xfns.c, xmenu.c: Link to xaw3d if available.
18433
184342007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18435
18436 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
18437 frame_foreground and frame_background.
18438
18439 * image.c (lookup_image): Save frame foreground and background colors.
18440 (search_image_cache): Check if saved and current frame colors match.
18441
184422007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
18443
18444 * regex.c (regex_compile): Remove the `regnum' counter.
18445 Use bufp->re_nsub instead. Add support for \(?N:RE\).
18446
184472007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
18448
18449 * term.c: Include intervals.h to declare Fget_text_property.
18450
184512007-06-10 Jason Rumney <jasonr@gnu.org>
18452
18453 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
18454
184552007-06-08 Juanma Barranquero <lekktu@gmail.com>
18456
18457 * callint.c (Fcall_interactively):
18458 * editfns.c (Fdelete_and_extract_region):
18459 * fileio.c (Fread_file_name):
18460 * fns.c (Fmapconcat):
18461 * keyboard.c (cmd_error_internal):
18462 * keymap.c (Fkey_description):
18463 * lread.c (openp):
18464 * minibuf.c (read_minibuf):
18465 * search.c (wordify):
18466 * sunfns.c (sel_read):
18467 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
18468 * xfns.c (x_default_scroll_bar_color_parameter):
18469 * xmenu.c (menu_help_callback):
18470 * xselect.c (Fx_get_atom_name):
18471 * xterm.c (x_term_init): Use empty_unibyte_string.
18472
184732007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
18474
18475 * alloc.c (init_strings): Initialize canonical empty strings.
18476 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
18477 canonical empty string when the requested size is 0.
18478
18479 * emacs.c (empty_unibyte_string): Rename from empty_string.
18480 (empty_multibyte_string): New canonical empty string.
18481 (syms_of_emacs): Don't initialize empty_string.
18482
18483 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
18484 string, if appropriate.
18485 (empty_unibyte_string, empty_multibyte_string): New externs.
18486 (empty_string): Remove extern.
18487
18488 * lread.c (syms_of_lread): Use empty_unibyte_string.
18489
184902007-06-07 Jason Rumney <jasonr@gnu.org>
18491
18492 * s/ms-w32.h: Don't define HAVE_TZNAME.
18493
18494 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
18495
184962007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18497
18498 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
18499
18500 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
18501 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
18502
18503 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
18504 Don't call next handler.
18505 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
18506 Remove argument. Install handler to application.
18507 (set_frame_menubar): Don't change deep_p.
18508 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
18509 FRAME_OUTER_TO_INNER_DIFF_Y.
18510 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
18511 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
18512 [HAVE_DIALOGS]: New macros.
18513 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
18514 Use them.
18515 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
18516
18517 * macselect.c [MAC_OSX] (install_service_handler): Rename from
18518 init_service_handler. All callers changed. Return OSStatus value.
18519
18520 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
18521 All callers changed so as not to call SetPortWindowPort.
18522 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
18523 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
18524 mac_draw_string_common.
18525 (mac_draw_image_string_qd): Likewise.
18526 (mac_draw_string_common): Use them. Add INLINE.
18527 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
18528 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
18529 GetGlobalMouse.
18530 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
18531 and FRAME_OUTER_TO_INNER_DIFF_Y.
18532 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
18533 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
18534 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
18535 repositioning window to mac_handle_window_event.
18536 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
18537 saving window location to mac_handle_window_event
18538 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
18539 (install_menu_target_item_handler): Remove argument in extern.
18540 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
18541 Also accept command events.
18542 (do_keystroke): New function created from XTread_socket.
18543 (init_command_handler): Remove functions.
18544 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
18545 and save window location by kEventWindowShowing and kEventWindowHiding
18546 handlers here. Don't call next handler for window state change and
18547 focus events.
18548 (mac_handle_application_event, mac_handle_keyboard_event)
18549 [TARGET_API_MAC_CARBON]: New functions.
18550 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
18551 kEventWindowShowing and kEventWindowHiding events. Move installation
18552 of mouse, font, text input and menu target item handlers to
18553 install_application_handler.
18554 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
18555 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
18556 New function.
18557 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
18558 Register it.
18559 (XTread_socket) [TARGET_API_MAC_CARBON]:
18560 Consolidate SendEventToEventTarget calls.
18561 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
18562 Move application activation handler to mac_handle_application_event.
18563 Move keyboard handler to mac_handle_keyboard_event.
18564 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
18565 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
18566 init_command_handler. Call install_application_handler.
18567
18568 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
18569 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
18570
185712007-06-07 Glenn Morris <rgm@gnu.org>
18572
18573 * emacs.c (main): Use `emacs-copyright' in --version output.
18574
185752007-06-06 Chong Yidong <cyd@stupidchicken.com>
18576
18577 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
18578
185792007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18580
18581 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
18582
18583 * macgui.h: Replace WindowPtr with WindowRef.
18584
18585 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
18586 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
18587 Replace ControlHandle with ControlRef.
18588 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
18589
18590 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
18591 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
18592 Replace ControlHandle with ControlRef.
18593 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
18594 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
18595
18596 * macterm.h (struct scroll_bar): Rename member control_handle_low
18597 and control_handle_high to control_ref_low and control_ref_high.
18598 All uses changed.
18599 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
18600 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
18601 respectively. All uses changed.
18602 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
18603 (install_window_handler, remove_window_handler): Replace WindowPtr
18604 with WindowRef in externs.
18605
186062007-06-05 Juanma Barranquero <lekktu@gmail.com>
18607
18608 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
18609
186102007-06-03 Nick Roberts <nickrob@snap.net.nz>
18611
18612 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
18613
18614 * frame.c (Fmouse_position, Fmouse_pixel_position):
18615 Condition on HAVE_GPM too.
18616
18617 * term.c (term_mouse_highlight): Remove unused variables.
18618 (Fterm_open_connection): Set gpm_zerobased to 1.
18619 (term_mouse_movement, term_mouse_click, handle_one_term_event):
18620 Use zero based co-ordinates.
18621 (handle_one_term_event): Report a drag as mouse movement too.
18622
18623 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
18624
186252007-06-03 Chong Yidong <cyd@stupidchicken.com>
18626
18627 * image.c (search_image_cache): New function. Require background
18628 color match if background color is unspecified in the image spec.
18629 (uncache_image, lookup_image): Use it.
18630
186312007-06-01 Juanma Barranquero <lekktu@gmail.com>
18632
18633 * window.c (Fshrink_window): Reflow docstring.
18634
186352007-06-02 Chong Yidong <cyd@stupidchicken.com>
18636
18637 * Version 22.1 released.
18638
186392007-06-01 Richard Stallman <rms@gnu.org>
18640
18641 * xfns.c (x_encode_text): Add GCPRO.
18642
186432007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18644
18645 * xfns.c (x_set_name_internal): Save encoded name before
18646 x_encode_text in case string data is relocated.
18647
186482007-05-31 Richard Stallman <rms@gnu.org>
18649
18650 * buffer.c (syms_of_buffer): Doc fix.
18651
186522007-05-30 Nick Roberts <nickrob@snap.net.nz>
18653
18654 * sysdep.c (init_sys_modes): Add rather than replace with
18655 O_NONBLOCK.
18656
18657 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
18658 term_mouse_moveto.
18659
18660 * termhooks.h (term_mouse_moveto): New extern.
18661
18662 * term.c (mouse_face_window): Rename...
18663 (Qmouse_face_window): ...to this.
18664 (term_show_mouse_face, term_clear_mouse_face)
18665 (term_mouse_highlight): Use Qmouse_face_window.
18666 (term_mouse_moveto): New function.
18667 (term_mouse_position): Make it work.
18668 (syms_of_term): Uncomment assignment to mouse_position_hook.
18669 Staticpro Qmouse_face_window.
18670
186712007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18672
18673 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
18674 around current_column call.
18675
186762007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
18677
18678 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
18679 * xdisp.c (next_element_from_buffer):
18680 * window.c (delete_window):
18681 * term.c (term_mouse_highlight):
18682 * msdos.c (getdefdir):
18683 * macterm.c (mac_create_bitmap_from_bitmap_data)
18684 (init_font_name_table):
18685 * fns.c (Fsxhash):
18686 * data.c (Fmake_local_variable):
18687 * ccl.c (ccl_driver): Likewise.
18688
186892007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18690
18691 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
18692 Call mac_wakeup_from_rne on window size change.
18693
186942007-05-25 Chong Yidong <cyd@stupidchicken.com>
18695
18696 * image.c (uncache_image): Fix typo.
18697
186982007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
18699
18700 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
18701
187022007-05-22 Richard Stallman <rms@gnu.org>
18703
18704 * xterm.c (x_connection_closed): Remove NO_RETURN.
18705
187062007-05-22 Martin Rudalics <rudalics@gmx.at>
18707
18708 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
18709
187102007-05-21 Chong Yidong <cyd@stupidchicken.com>
18711
18712 * image.c (uncache_image): New function.
18713 (Fimage_refresh): New function.
18714
187152007-05-20 Jan Djärv <jan.h.d@swipnet.se>
18716
18717 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
18718
187192007-05-20 Nick Roberts <nickrob@snap.net.nz>
18720
18721 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
18722 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
18723
187242007-05-20 Nick Roberts <nickrob@snap.net.nz>
18725
18726 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
18727 conditional on [HAVE_GPM_H].
18728
187292007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
18730
18731 * syntax.c (skip_chars): Update syntax-table only after we checked that
18732 the new location is valid.
18733
187342007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18735
18736 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
18737 mac_get_window_bounds.
18738
187392007-05-20 Nick Roberts <nickrob@snap.net.nz>
18740
18741 * Makefile.in (LIBGPM): Allow it to be set from configure.
18742 If set then link Emacs with it.
18743
18744 * config.in: Regenerate.
18745
18746 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
18747 New externs.
18748
18749 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
18750 Include gpm.h.
18751 (handle_one_term_event, term_gpm): New externs.
18752
18753 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
18754 and allow it to be interrupted by SIGIO.
18755
18756 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
18757 (wait_reading_process_output): Wait on gpm_fd too.
18758 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
18759 (add_gpm_wait_descriptor_called_flag): New variable.
18760 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
18761
18762 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
18763 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
18764 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
18765 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
18766 (make_lispy_event): Add case GPM_CLICK_EVENT.
18767 (read_avail_input): Handle mouse input.
18768
18769 * term.c (write_glyphs_with_face): New function.
18770 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
18771 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
18772 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
18773 (mouse_face_face_id, term_gpm, pos_x, pos_y)
18774 (last_mouse_x, last_mouse_y): New variables.
18775 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
18776 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
18777 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
18778 (Fterm_close_connection): New functions.
18779 (term_init): Initialise mouse_face_window.
18780
187812007-05-19 Chong Yidong <cyd@stupidchicken.com>
18782
18783 * xdisp.c (redisplay_window): If first window line is a
18784 continuation line, recompute the new window start instead of
18785 recentering.
18786
187872007-05-18 Glenn Morris <rgm@gnu.org>
18788
18789 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
18790 Suggested by Alfred M. Szmidt <ams@gnu.org>.
18791
187922007-05-17 Glenn Morris <rgm@gnu.org>
18793
18794 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
18795
187962007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18797
18798 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
18799 dead key repeat and up events.
18800
188012007-05-14 Chong Yidong <cyd@stupidchicken.com>
18802
18803 * image.c (pbm_load): Check image size for monochrome pbm.
18804
188052007-05-13 Chong Yidong <cyd@stupidchicken.com>
18806
18807 * xterm.c (XTread_socket): Revert last change.
18808
188092007-05-12 Chong Yidong <cyd@stupidchicken.com>
18810
18811 * image.c (pbm_load): Correctly check image size for greyscale pbm.
18812
18813 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
18814
188152007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
18816
18817 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
18818 mixup (YAILOM).
18819
188202007-05-07 Andreas Schwab <schwab@suse.de>
18821
18822 * keymap.c (Flookup_key): Fix typo in last change.
18823
188242007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
18825
18826 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
18827 mapping for unibyte strings.
18828
188292007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18830
18831 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
18832 (Fx_popup_dialog) [MAC_OSX]: Likewise.
18833
188342007-04-29 Richard Stallman <rms@gnu.org>
18835
18836 * insdel.c (replace_range): For undo, record insertion first.
18837
188382007-04-29 Andreas Schwab <schwab@suse.de>
18839
18840 * lisp.h (VECSIZE): Use OFFSETOF.
18841
188422007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18843
18844 * xdisp.c (try_window_reusing_current_matrix): Fix number of
18845 disabled lines.
18846
188472007-04-28 Richard Stallman <rms@gnu.org>
18848
18849 * lread.c (read_escape): In a string, \s is always space.
18850
188512007-04-27 Jan Djärv <jan.h.d@swipnet.se>
18852
18853 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
18854
18855 * gtkutil.c (xg_update_menubar, create_menus): Create empty
18856 submenu for menu bar items.
18857
18858See ChangeLog.10 for earlier changes.
18859
18860;; Local Variables:
18861;; coding: utf-8
18862;; add-log-time-zone-rule: t
aac0c6e3
MR
18863;; End:
18864
76b6f707 18865 Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc.
aac0c6e3
MR
18866
18867 This file is part of GNU Emacs.
18868
18869 GNU Emacs is free software: you can redistribute it and/or modify
18870 it under the terms of the GNU General Public License as published by
18871 the Free Software Foundation, either version 3 of the License, or
18872 (at your option) any later version.
18873
18874 GNU Emacs is distributed in the hope that it will be useful,
18875 but WITHOUT ANY WARRANTY; without even the implied warranty of
18876 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18877 GNU General Public License for more details.
18878
18879 You should have received a copy of the GNU General Public License
18880 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
18881
18882;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40