* anti.texi (Antinews): Correct the list of removed platforms.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
fd503d99
KH
12009-07-01 Kenichi Handa <handa@m17n.org>
2
3 * keyboard.c (decode_keyboard_code): New function.
4 (tty_read_avail_input): Decode the input bytes if necessary.
5
6 * coding.c (setup_coding_system): Initialize
7 coding->carryover_bytes to 0.
8 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
9 use Qno_conversion.
10
24ed93fb
YM
112009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12
13 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
14
99061dfc
CY
152009-06-30 Chong Yidong <cyd@stupidchicken.com>
16
17 * xftfont.c (xftfont_open): Avoid passing NULL argument to
18 XftLockFace.
19
ff90fbde
JR
202009-06-30 Jason Rumney <jasonr@gnu.org>
21
22 * w32term.c (w32_initialize): Use GetModuleHandle for library that
23 is already loaded.
24 Set user model ID if supported (bug#1849).
25
5f445726
JM
262009-06-29 Jim Meyering <meyering@redhat.com>
27
28 Remove useless if-before-xfree test.
29 * nsfont.m (nsfont_close): Remove useless test.
30 * term.c (delete_tty): Likewise.
31 * w32.c (system_process_attributes): Likewise.
32 * w32font.c (w32font_close): Likewise.
33 * xfaces.c (x_free_gc): Likewise.
34 * xselect.c (buffer): Likewise.
35
b9607587
AS
362009-06-28 Andreas Schwab <schwab@linux-m68k.org>
37
38 * process.c (send_process): Keep decoded string in a local
39 variable and protect it from GC. (Bug#3521)
40
89ba96f4
EZ
412009-06-28 Eli Zaretskii <eliz@gnu.org>
42
43 * term.c (create_tty_output) [MSDOS]: #ifdef away.
44 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
45
098a1589
CY
462009-06-28 Chong Yidong <cyd@stupidchicken.com>
47
485422be
CY
48 * xdisp.c (start_display, handle_face_prop)
49 (move_it_vertically_backward, cursor_row_fully_visible_p)
50 (redisplay_window, try_window_id, produce_image_glyph): Delete
51 some #ifdef-ed out code chunks that are now obsolete.
52
098a1589
CY
53 * xterm.c (x_update_window_begin, x_new_focus_frame)
54 (x_scroll_bar_handle_click, handle_one_xevent)
55 (handle_one_xevent, XTread_socket, x_focus_on_frame)
56 (x_make_frame_visible, x_make_frame_invisible)
57 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
58 code chunks that are now obsolete.
59
78c38319
MA
602009-06-28 Michael Albinus <michael.albinus@gmx.de>
61
62 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
63 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
64 for hours, when optimzation is enabled.
65 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
66 (xd_read_message): Make them static.
67
4189ed40
CY
682009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
69
70 * term.c (turn_on_face): Allow simultaneously bold and dim
71 terminal faces (Bug#3530).
72
cd9b5e16
CY
732009-06-27 Chong Yidong <cyd@stupidchicken.com>
74
4e23bedb
CY
75 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
76
cd9b5e16
CY
77 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
78 truncation glyphs (Bug#3686).
79
07cc3c35
GM
802009-06-27 Glenn Morris <rgm@gnu.org>
81
82 * m/pmax.h: Restore file, with only netbsd portions.
83
25c5550f
DR
842009-06-26 David Reitter <david.reitter@gmail.com>
85
cd9b5e16 86 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 87
42d4a64f
KH
882009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
89
90 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
91 the arg FORCE_SYMBOL.
92
930fe55b 932009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
94
95 * fontset.c (fontset_find_font): When a usable rfont_def is found
96 in a fallback font-group, make it the first element of the group.
97
57ebc3fd
CY
982009-06-24 Chong Yidong <cyd@stupidchicken.com>
99
100 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
101
f084f942
KH
1022009-06-24 Kenichi Handa <handa@m17n.org>
103
104 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
105 set for C.
106 (fontset_font): Record the availability of a font for C both in
107 the realized fontsets of the current one and the default one.
108
2f686c87
DN
1092009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
110
111 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
112 conditional, it is always defined on AIX.
113
666e158e
MB
1142009-06-23 Miles Bader <miles@gnu.org>
115
116 * window.c (Vrecenter_redisplay): New variable.
117 (syms_of_window): Initialize it.
118 (Qtty): New extern declaration.
119 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
120
c6da7cd2
JM
1212009-06-23 Jim Meyering <meyering@redhat.com>
122
632c2030
CY
123 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt): Use
124 xmalloc and xrealloc (not malloc and realloc), so subsequent heap
125 pointer dereferences are guaranteed to be valid.
c6da7cd2 126
678dca3d
KH
1272009-06-23 Kenichi Handa <handa@m17n.org>
128
74d75424
KH
129 * emacs.c (main): Call init_font ().
130
131 * font.h (Vfont_log): Extern it.
132 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
133
134 * font.c (font_sort_entities, font_list_entities)
135 (font_matching_entity, font_open_entity)
136 (font_close_object): Change font_add_log to FONT_ADD_LOG.
137 (Vfont_log): Delete static.
138 (font_log_env_checked): Delete this variable.
139 (font_add_log): Don't check font_log_env_checked.
140 (font_deferred_log): Check Vfont_log.
141 (init_font): New function.
142
678dca3d
KH
143 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
144
145 * w32font.c: Change font_add_log to FONT_ADD_LOG.
146
147 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
148
149 * xfont.c: Change font_add_log to FONT_ADD_LOG.
150
151 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
152 (face_for_char): Don't call font_deferred_log here.
153 (font_for_char): Likewise.
154
8a668709
CY
1552009-06-22 Chong Yidong <cyd@stupidchicken.com>
156
9a01ee33
CY
157 * w32term.c (x_draw_glyph_string): Use the glyph string's width
158 rather than its background_width for drawing the overline and
159 underline (Bug#489).
160
161 * xterm.c (x_draw_glyph_string): Use the glyph string's width
162 rather than its background_width for drawing the overline and
163 underline (Bug#489).
ec7c9926
CY
164 (xg_default_icon_file): New variable.
165 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
166 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 167
8a668709
CY
168 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
169 (load_overlay_strings): Remove externs.
170 (fast_find_position): Function deleted.
171 (mouse_face_from_buffer_pos): New function, based on
172 fast_find_position. Correctly handle before-strings,
173 display-strings, and after-strings (Bug#1220).
174 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
175
4d4c02d8
CY
1762009-06-21 Chong Yidong <cyd@stupidchicken.com>
177
178 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for
179 !HAVE_WINDOW_SYSTEM.
180 (move_it_in_display_line_to, move_it_in_display_line_to)
181 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
182
70243478
CY
1832009-06-21 Chong Yidong <cyd@stupidchicken.com>
184
185 * Branch for 23.1.
186
13087e59
JR
1872009-06-21 Jason Rumney <jasonr@gnu.org>
188
189 * w32term.c (keyboard_codepage): New static variable.
190 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
191 (w32_read_socket) [WM_CHAR]: Use it to decode character
192 input (bug#3237).
193 (w32_initialize): Initialize it.
194 (codepage_for_locale): New function.
195
4735b74e
KR
1962009-06-20 Ken Raeburn <raeburn@raeburn.org>
197
198 * process.c (status_message): Pass Faset index argument as a lisp
199 object, so as to work with USE_LISP_UNION_TYPE.
200
0e727afa
YM
2012009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
202
203 * coding.c (Ffind_coding_systems_region_internal):
204 Cache checked characters.
205
cf299835
KH
2062009-06-18 Kenichi Handa <handa@m17n.org>
207
208 * coding.c (decode_coding_iso_2022): Check MSB of bytes more
209 rigidly.
210
90f20d94
AS
2112009-06-18 Andreas Schwab <aschwab@redhat.com>
212
213 * xdisp.c (redisplay_internal): Check that the frame is still
214 live after redisplay of its windows.
215 (redisplay_windows): Check that the window is still live.
216
7f1faf1c
KH
2172009-06-17 Andreas Schwab <schwab@linux-m68k.org>
218
219 * coding.c (detect_coding_utf_16): Fix previous change.
220
cc13543e
KH
2212009-06-16 Kenichi Handa <handa@m17n.org>
222
223 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
224 UTF-16 by checking the dispersion of Eth and Oth bytes.
225
977b85f4
AS
2262009-06-15 Andreas Schwab <schwab@linux-m68k.org>
227
228 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
229
66bd43d1
KH
2302009-06-15 Kenichi Handa <handa@m17n.org>
231
232 * process.c (status_message): Fix previous change. Be sure to
233 decode a localized string.
234
cb5ca9c5
YM
2352009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
236
237 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
238 add comment explaining why.
239
ec7709ba 2402009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 241
ec7709ba 242 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 243
4b7f335c
AR
2442009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
245
246 * nsfont.m (ns_attribute_value): Remove.
247 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
248 (ns_has_attribute): Shrink the normal range.
249 (ns_findfonts): Don't worry about requested spec in determining
250 need for synthItal.
e41820ee 251 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 252
73b26103
SZ
2532009-06-14 Seiji Zenitani <zenitani@mac.com>
254
255 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
256
5753e4da
KH
2572009-06-11 Kenichi Handa <handa@m17n.org>
258
259 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
260 overhang for the static composition case.
261
3561b671
KH
2622009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
263
5753e4da
KH
264 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
265 overhang for the automatic composition case.
266
3561b671
KH
267 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
268 composition case.
269
852bbd41
CY
2702009-06-10 Chong Yidong <cyd@stupidchicken.com>
271
272 * xdisp.c (get_next_display_element): When handling wrap-prefix
273 and line-prefix, treat \n as a control character (bug#3502).
274
9903d1e6
KH
2752009-06-10 Kenichi Handa <handa@m17n.org>
276
277 * font.c (font_parse_family_registry): Fix for one-char foundry.
278 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
279
0bcbaaaa
CY
2802009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
281
282 * process.c (status_message): Fix handling of multibyte signal
283 string (Bug#3499).
284
40aa3f13
JM
2852009-06-09 Jim Meyering <meyering@redhat.com>
286
1f80c7e2
CY
287 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
288 color name is missing.
40aa3f13 289
72d51285
KH
2902009-06-09 Kenichi Handa <handa@m17n.org>
291
292 * charset.c (Fmap_charset_chars): In docstring, state clearly that
293 FROM-CODE and TO-CODE are codepoints of CHARSET.
294
c1d04d84
AR
2952009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
296
297 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
298
2992009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
300
301 Changes to support :script/:lang/:otf in NS font driver.
302 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
303 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
304 indicate not part of font driver interface, and change callers.
305 (ns_get_family): Remove pointless null check.
306 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
307 ns_spec_to_descriptor, ns_descriptor_to_entity.
308 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
309 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
310 (ns_spec_to_descriptor, ns_descriptor_to_entity)
311 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
312 (ns_get_req_script, ns_accumulate_script_ranges)
313 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
314 New functions.
315 (nsfont_list, nsfont_match): Use ns_findfonts.
316 (nsfont_open): Use font descriptor instead of traits.
317 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
318 (dump_glyphstring): Rename to ns_dump_glyphstring.
319
c7eb9816
AR
320 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
321
c1d04d84
AR
322 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
323
324 * fontset.c (fontset_from_font): Remove NS-specific code.
325
ec7709ba 3262009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
327
328 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
329 nonactive windows.
330
3312009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
332
333 * nsterm.m (ns_init_paths): Append path separator to INFOPATH
334 variable.
335
68852c13 3362009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
337
338 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
339
6756cd1d
CY
3402009-06-07 Chong Yidong <cyd@stupidchicken.com>
341
342 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
343 account for the overflowing of newlines into the last glyph on the
344 display line (Bug#3482).
345
28bf482a
DR
3462009-06-05 David Reitter <david.reitter@gmail.com>
347
ec7709ba
JB
348 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
349 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
350 Fns_selection_exists_p, Fns_selection_owner_p.
351
fdb55376
JR
3522009-06-03 Jason Rumney <jasonr@gnu.org>
353
354 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
355 available. (Bug#3379)
356
05129fbe
KH
3572009-05-29 Kenichi Handa <handa@m17n.org>
358
359 * coding.c (get_translation_table): Check
360 Venable_character_translation.
361
ec7709ba 3622009-05-26 David Reitter <david.reitter@gmail.com>
15891144 363
ec7709ba
JB
364 * nsterm.m (ns_raise_frame): Only raise frame if visible.
365 (x_make_frame_visible): Move frame to front rather than calling
15891144 366 ns_raise_frame().
ec7709ba 367 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 368 isn't key window.
ec7709ba 369 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
370 drawRect may be called by NSView even if the frame is hidden.
371
ec7709ba
JB
372 * nsfns.m (Fx_create_frame): Follow other ports in
373 determining visibility; default to t. Ensure async_visible is set.
15891144 374
21f73755
EZ
3752009-05-23 Eli Zaretskii <eliz@gnu.org>
376
377 * dired.c (Ffile_attributes): Doc fix.
378
34001e41
CY
3792009-05-22 Chong Yidong <cyd@stupidchicken.com>
380
381 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
382
46306a17
SM
3832009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
384
385 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
386 and xfont_scratch_props.
387 (syms_of_xfont): Do it here instead.
388 (xfont_find_ccl_program): Delete, unused.
389 (xfont_open): Delete unused var `i'.
390
ef6e0694
KH
3912009-05-21 Kenichi Handa <handa@m17n.org>
392
393 * fontset.c (Qlatin): Don't make it static.
394
46306a17
SM
395 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
396 New functions.
ef6e0694
KH
397 (xfont_scripts_cache, xfont_scratch_props): New variables.
398 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
399 (xfont_list_pattern): Argument changed. Callers changed.
400 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
401 (xfont_list): Don't reject a font spec with :script property.
402 (xfont_has_char): Fix setting of encoding.
403 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
404 xfont_scratch_props.
405
4062009-05-19 Kenichi Handa <handa@m17n.org>
407
46306a17 408 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
409 Callers changed.
410
4112009-05-18 Kenichi Handa <handa@m17n.org>
412
413 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
414
ac71ced7
SM
4152009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
416
417 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
418 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
419
1c6d1051
YM
4202009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
421
422 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
423 (x_delete_terminal): Dissociate resource database from display and
424 then call XrmDestroyDatabase before closing display.
425
9b9b779c
AR
4262009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
427
428 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
429 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
430 whether selected frame is viable before raising it (based on patch
431 by David Reitter), and improve commentary.
432 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 433
cccd42d5
KH
4342009-05-15 Kenichi Handa <handa@m17n.org>
435
436 * font.c (Ffont_spec): Check arguments.
437
337fbd17
CY
4382009-05-14 Chong Yidong <cyd@stupidchicken.com>
439
440 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
441 weight when testing attributes (Bug#3282).
442
47a6002f
JD
4432009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
444
445 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
446 what we expect to get in the next ConfigureNotify event.
447
9cb363db
YM
448 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
449 before Xft one (Bug#1696).
450
b9126609
CY
4512009-05-07 David Reitter <david.reitter@gmail.com>
452
453 * nsfns.m (Fx_display_planes): Compute bitplanes using
454 NSBitsPerPixelFromDepth (Bug#3207).
455
27a69fd9
CY
4562009-05-10 Chong Yidong <cyd@stupidchicken.com>
457
458 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
459
00f37552
TTN
4602009-05-10 Ulrich Mueller <ulm@gentoo.org>
461
462 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
463
2d82a920
DR
4642009-05-07 David Reitter <david.reitter@gmail.com>
465
ec7709ba
JB
466 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
467 Respect mouse face background.
2d82a920 468
46b0d52d
DR
4692009-05-07 David Reitter <david.reitter@gmail.com>
470
ec7709ba
JB
471 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
472 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
473 in ns_update_begin and ns_update_end.
474
ce1b23bb
SM
4752009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
476
5996e1b7
SM
477 * nsfns.m (ns_get_screen): Rewrite.
478 Don't presume selected-frame is of type `ns'.
479
ba98e3a0
SM
480 * font.c (font_update_drivers): Sanity fallback to avoid disabling
481 all drivers.
482
ce1b23bb
SM
483 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
484
bcda200f
YM
4852009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
486
487 * keyboard.h (add_user_signal): Fix typo in extern.
488
489 * lisp.h (add_user_signal): Remove extern.
490
491 * unexelf.c (unexec): Consider a section to precede the .bss section
492 if its addresses overlap that of .bss.
493 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
494 instead of dumping process.
495
864660a2
SM
4962009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
497
498 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
499
50da4e56
SM
5002009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
501
502 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
503
51520a1a
DN
5042009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
505
506 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
507 any statements.
508
409ea3a1
AS
5092009-05-02 Andreas Schwab <schwab@linux-m68k.org>
510
59c4c60f
AS
511 * process.c (read_process_output): Make sure the current buffer is
512 always restored.
513
409ea3a1
AS
514 * coding.c (record_conversion_result): Don't modify
515 Vlast_code_conversion_error for successful result.
516 (alloc_destination): Don't clobber conversion result. (Bug#1650)
517
56f00ed2
KH
5182009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
519
520 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 521 (load_charset_map): Remove unnecessary code.
56f00ed2 522
4491c9d2
DR
5232009-04-30 David Reitter <david.reitter@gmail.com>
524
35f5b128 525 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
526 through f24.
527
6970f632
CY
5282009-04-30 Chong Yidong <cyd@stupidchicken.com>
529
530 * xfaces.c (face_at_buffer_position): New arg base_face_id.
531
532 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
533 face_at_buffer_position.
534 (face_before_or_after_it_pos, get_next_display_element)
535 (note_mouse_highlight): Update face_at_buffer_position call.
536
537 * term.c (term_mouse_highlight):
538 * msdos.c (IT_note_mouse_highlight):
539 * fontset.c (Finternal_char_font):
35f5b128 540 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
541
542 * dispextern.h (face_at_buffer_position): Update prototype.
543
0c616f63
KH
5442009-04-30 Kenichi Handa <handa@m17n.org>
545
35f5b128 546 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 547
ad3aaf33
AS
5482009-04-29 Andreas Schwab <schwab@linux-m68k.org>
549
550 * callproc.c (Fcall_process): Fix GC protection. Make sure
551 current buffer is always restored.
552
c3c963a0
YM
5532009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
554
555 * atimer.c (init_atimer): Also clear stopped_atimers.
556
557 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
558
7e3386cb
YM
559 * process.c (create_process): Clean up merger residues of
560 2008-07-17 change.
561
91f68422
CY
5622009-04-29 Ulrich Mueller <ulm@gentoo.org>
563
564 * lread.c (Vread_circle): New variable.
565 (read1): Disable recursive read if Vread_circle is nil.
566
24b34550
KH
5672009-04-29 Kenichi Handa <handa@m17n.org>
568
569 * fontset.h (set_default_ascii_font): Delete extern.
570
571 * fontset.c (set_default_ascii_font): Delete this unused function.
572
573 * frame.c (x_set_font): When ARG is a font-object, check if the
574 font-object matches with the ASCII font-spec of the frame's
9c358bda 575 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 576
77bf07e1
AS
5772009-04-28 Andreas Schwab <schwab@linux-m68k.org>
578
579 * fns.c (Flocale_info): Protect vector from GC during decoding.
580
581 * process.c (Fstart_process): Protect argv strings from GC during
582 encoding.
583
2c55aacf
AS
5842009-04-27 Andreas Schwab <schwab@linux-m68k.org>
585
586 * sysdep.c: Include <ctype.h>.
587
b892d3c9
DR
5882009-04-27 David Reitter <david.reitter@gmail.com>
589
35f5b128 590 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
591 Remove commented-out code.
592
9d0644c4
JB
5932009-04-26 Johan Bockgård <bojohan@gnu.org>
594
595 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
596
b7053016
JR
5972009-04-25 Jason Rumney <jasonr@gnu.org>
598
599 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
600
4e8231f3
YM
6012009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
602
603 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
604 Swap bytes in short integer if fringe bitmap width > 8.
605
493dcf2c
KH
6062009-04-23 Kenichi Handa <handa@m17n.org>
607
608 * xfaces.c (Fx_list_fonts): If a font size is specified in
609 PATTERN, set it in returned scalable fonts.
610
401e9e57
CY
6112009-04-22 Chong Yidong <cyd@stupidchicken.com>
612
708e05dc
CY
613 * keyboard.c (Fset_input_meta_mode): Doc fix.
614
615 * dispnew.c (Fsend_string_to_terminal): Doc fix.
616
617 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc
618 fixes.
619
620 * coding.c (Fterminal_coding_system): Doc fix.
621
622 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
623 (Fx_display_pixel_height, Fx_display_planes)
624 (Fx_display_color_cells, Fx_server_max_request_size)
625 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
626 (Fx_display_mm_height, Fx_display_mm_width)
627 (Fx_display_backing_store, Fx_display_visual_class)
628 (Fx_display_save_under, Fx_close_connection, Fx_synchronize): Doc
629 fixes, replacing "terminal id" with "terminal object".
630 (check_x_display_info): Handle terminal objects instead of
631 terminal ids.
632
401e9e57
CY
633 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
634 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
fdc496e7
CY
635 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions): Doc
636 fixes, replacing "terminal id" with "terminal object".
401e9e57 637
df80c7f0
KH
6382009-04-21 Kenichi Handa <handa@m17n.org>
639
5a8f12af 640 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 641 (font_score): Check AVGWIDTH too.
908567ef 642
df80c7f0
KH
643 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
644 worst case.
645 (decode_coding_emacs_mule, decode_coding_iso_2022)
646 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
647 Likewise.
648
705af33f
JR
6492009-04-19 Jason Rumney <jasonr@gnu.org>
650
651 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 652 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
653
654 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
655 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
656 get_phys_cursor_geometry.
657
b71ac3dd 658 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
659 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
660 using get_phys_cursor_geometry.
661
662 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
663 correctly calculated.
664
dc2933eb
JD
6652009-04-19 Jan Djärv <jan.h.d@swipnet.se>
666
667 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar): Use
668 G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
669 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
670 is deprecated.
671
973e7849
AS
6722009-04-18 Andreas Schwab <schwab@linux-m68k.org>
673
674 * font.c (font_put_frame_data): Use xfree instead of free.
675
314d66f4
JB
6762009-04-17 Juanma Barranquero <lekktu@gmail.com>
677
678 * w32font.c (Qja, Qko): Remove declarations.
679 (syms_of_w32font): Don't DEFSYM them.
680
cf702558
CY
6812009-04-17 Chong Yidong <cyd@stupidchicken.com>
682
683 * font.c (Qja, Qko): Move definitions here from ftfont.c.
684
685 * font.h (Qja, Qko): Extern them.
686
687 * ftfont.c (Qja, Qko): Remove declarations.
688
689 * xfont.c (Qja, Qko): Remove declarations.
690
b50504f5
KH
6912009-04-17 Kenichi Handa <handa@m17n.org>
692
bde25748
KH
693 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
694 string from a vector to handle Latin-1 characters correctly.
695
b50504f5
KH
696 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
697 entity even if the cache hits.
698
f4646fff
AS
6992009-04-16 Andreas Schwab <schwab@linux-m68k.org>
700
701 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 702 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 703
e7deaab0
AS
704 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
705 * lisp.h: Adjust prototypes.
706
0a0e7d49
CY
7072009-04-16 Chong Yidong <cyd@stupidchicken.com>
708
709 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
710 change (Bug#3003).
711
3c908a57
KH
7122009-04-16 Kenichi Handa <handa@m17n.org>
713
bd0af90d
KH
714 * xfont.c (xfont_has_char): Special handling of `ja' and `ko'
715 adstyle.
716
717 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
718 adstyle.
719
720 * ftfont.c (Qja, Qko): Don't make them static.
721 (enum ftfont_cache_for): New enum.
722 (fc_charset_table): Undo the previous change.
723 (ftfont_get_latin1_charset): Delete it.
724 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache. Set
725 FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
726 non-scarable font, try to get AVERAGE_WIDTH.
727 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
728 Change ft_face_cache from a list of a hash-table. Don't check
729 `ja' and `ko' adstyle here.
730 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
731 FTFONT_CACHE_FOR_CHARET.
732 (ftfont_get_charset): Undo the previous change.
733 (ftfont_open): Call ftfont_lookup_cache with
734 FTFONT_CACHE_FOR_FACE.
735 (ftfont_close): Likewise.
736 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
737
738 * font.c (font_sort_entites): Change the meaning of the arg
739 BEST-ONLY. Don't optimize for VEC of lenght 1.
740 (font_select_entity): Just return the value of font_sort_entites.
741
742 * xfaces.c (merge_face_vectors): Reflect font properties in
743 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
744 font_clear_prop if a face attribute doesn't change.
745
3c908a57
KH
746 * charset.h (charset_ksc5601): Extern it.
747
748 * charset.c (charset_ksc5601): New variable.
749 (Fdefine_charset_internal): Set charset_ksc5601.
750 (init_charset_once): Initialize charset_ksc5601 to -1.
751
d65859c3
DN
7522009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
753
754 * fileio.c (history_delete_duplicates): Remove unused declaration.
755
756 * callint.c (history_delete_duplicates): New declaration.
757 (Fcall_interactively): Remove command history duplicates when
758 history_delete_duplicates is true.
759
3ba010e5
EZ
7602009-04-14 Eli Zaretskii <eliz@gnu.org>
761
762 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
763
06f19b91
KH
7642009-04-14 Kenichi Handa <handa@m17n.org>
765
766 * font.c (Ffont_info): Fix docstring. Fix the second element of
767 the returned value (bug#2949).
768
2cce8bfc
CY
7692009-04-14 Chong Yidong <cyd@stupidchicken.com>
770
771 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
772
d156542d
KH
7732009-04-14 Kenichi Handa <handa@m17n.org>
774
775 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
776 encoding charset is ascii_compatible.
777
778 * charset.c (Fdefine_charset_internal): Make charset
779 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
780 code_offset is 0, and covers all ASCII characters.
781
86fa089e
SM
7822009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
783
784 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
785 (ns_string_to_pasteboard_internal):
786 * nsmenu.m (process_dialog):
787 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
788 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
789 * lisp.h (Fx_load_color_file): Declare.
790
a8a3728b
KH
7912009-04-13 Kenichi Handa <handa@m17n.org>
792
793 * font.c (font_delete_unmatched): Preserve the order of list
794 elements.
795 (font_select_entity): Suppress the code to optimize for the same
796 kind of fonts.
797 (font_load_for_lface): Get a font that supports at least ASCII
798 characters.
799
800 * ftfont.c (Qja, Qko): New variables.
801 (fc_charset_table): Delete uniquifier data for iso8859-1.
802 (ftfont_get_latin1_charset): New function.
803 (get_adstyle_property): New function.
804 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
805 bitmap fonts.
806 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
807 Delete iso-8859-1 range from the charset of fonts whose adstyle is
808 `ko' or `ja'.
809 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
810 (ftfont_get_charset): For iso8859-1, call
811 ftfont_get_latin1_charset.
812 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
813 property.
814 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
815 (syms_of_ftfont): DEFSYM Qja and Qko.
816
483670b5
KH
8172009-04-09 Kenichi Handa <handa@m17n.org>
818
12b55765
KH
819 * charset.c (map_charset_chars): For a charset of `superset'
820 method, fix calculation of code range.
821
483670b5
KH
822 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
823 from the list of extra properties.
824 (font_clear_prop): Be sure to delete `:name' font property.
825
57d3b93b
KH
8262009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
827
b4b2c2ca
YM
828 * dispnew.c (redraw_overlapping_rows): Fix detection of
829 overlapping for topmost and bottommost rows.
830
57d3b93b
KH
831 * ftfont.c (ftfont_text_extents): Fix calculation of
832 metrics->descent.
833
472c3609
JR
8342009-04-06 Jason Rumney <jasonr@gnu.org>
835
836 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
837
ab193662
KH
8382009-04-06 Kenichi Handa <handa@m17n.org>
839
840 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
841
842 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
843
0c26f026
KH
8442009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
845
846 * ftfont.c (ftfont_open): Fix checking of the return value of
847 FT_Load_Char. Fix setting font->underline_thickness.
848
e173bbce
CY
8492009-04-04 Chong Yidong <cyd@stupidchicken.com>
850
851 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
852 (Fterminal_parameters, Fterminal_parameter)
853 (Fset_terminal_parameter): In doc string, refer to terminal
854 objects rather than terminal ids.
855
693a2698
EZ
8562009-04-04 Eli Zaretskii <eliz@gnu.org>
857
858 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
859 ret_lim_data. (Bug#2867)
860
d5221487
CY
8612009-04-03 Chong Yidong <cyd@stupidchicken.com>
862
863 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
864 so they don't get wider than the window, matching 2006-01-23
865 change to the partner function in xdisp.c (Bug#2800).
866
223509a3
KH
8672009-04-03 Kenichi Handa <handa@m17n.org>
868
869 * print.c (print_object): Make each lowest sub_char_table start a
870 new line (Bug#2866).
871
74fcd0b1
KH
8722009-04-02 Kenichi Handa <handa@m17n.org>
873
874 * fontset.c (fontset_font): Record no-font when a fontset
875 explicitly tells not to try another font-specs.
876
c542407d
SM
8772009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
878
879 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
880
e3869731
KH
8812009-03-30 Kenichi Handa <handa@m17n.org>
882
d8d2f142
KH
883 * fontset.c (fontset_from_font): Specify only registry in a
884 font-spec for all characters supported by that registry.
885
e3869731
KH
886 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
887 even if HAVE_M17N_FLT is not defined.
888
5da5f805
CY
8892009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
890
891 * ftfont.c: Conditionalize prototyping and use of
892 ftfont_variation_glyphs.
893
ab226c50
SM
8942009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
895
9628fed7
SM
896 * frame.c (delete_frame): Work around compiler bug.
897
898 * editfns.c (general_insert_function): Adjust to insdel.c changes.
899 * insdel.c (prepare_to_modify_buffer, signal_before_change):
900 Some more EMACS_INT.
901 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
902
903 * xdisp.c (dump_glyph): Fix typo.
904
ae19ba7c
SM
905 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
906 (adjust_markers_gap_motion, adjust_markers_for_delete)
907 (adjust_markers_for_insert, adjust_point)
908 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
909 (make_gap, copy_text, count_size_as_multibyte, insert)
910 (insert_and_inherit, insert_before_markers)
911 (insert_before_markers_and_inherit, insert_1)
912 (count_combining_before, count_combining_after, insert_1_both)
913 (insert_from_string, insert_from_string_before_markers)
914 (insert_from_string_1, insert_from_gap, insert_from_buffer)
915 (insert_from_buffer_1, adjust_after_replace)
916 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
917 (replace_range_2, del_range, del_range_1, del_range_byte)
918 (del_range_both, del_range_2, modify_region)
919 (prepare_to_modify_buffer, signal_before_change)
920 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
921 for buffer positions and sizes.
922 * lisp.h: Adjust prototypes accordingly.
923
924 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
925 (non_regular_inserted, non_regular_nbytes, read_non_regular)
926 (Finsert_file_contents): Use EMACS_INT for buffer positions.
927
ab226c50
SM
928 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
929
46dfb8fb
JD
9302009-03-27 Jan Djärv <jan.h.d@swipnet.se>
931
932 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
933 lines and columns so we keep the same pixel height and width.
934
935 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
936 the property _NET_WM_STATE has changed.
46dfb8fb
JD
937 (x_handle_net_wm_state): New function to update frame parameter
938 fullscreen.
939 (x_term_init): Initialize atoms for _NET_WM_STATE.
940
941 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
942
d347e494
SM
9432009-03-27 Kevin Ryde <user42@zip.com.au>
944
945 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
946 Gpm_GetEvent as an error that justifies closing the filedescriptor.
947 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
948 (Fgpm_mouse_stop): Pass that new parameter.
949 * termhooks.h (close_gpm): Adjust prototype.
950
84db11d6
SM
9512009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
952
c95a5008
SM
953 * lisp.h (Fx_focus_frame): Declare.
954
84db11d6
SM
955 * callint.c (Fcall_interactively): For '^' just delegate the work to
956 handle-shift-selection.
957 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
958
0a1958d6
CY
9592009-03-24 Chong Yidong <cyd@stupidchicken.com>
960
0bfdff23
CY
961 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
962
0a1958d6
CY
963 * data.c (Qinteractive_form): New variable.
964 (Finteractive_form): Use it.
965
966 * eval.c (Fcommandp): Use Qinteractive_form.
967
58aec0d6
JR
9682009-03-24 Jason Rumney <jasonr@gnu.org>
969
970 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
971 Calculate total size precisely. Decode environment variables
972 before substituting. (Bug#38)
973
553dd618
KH
9742009-03-24 Kenichi Handa <handa@m17n.org>
975
976 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 977 encoding (Bug#2722).
553dd618 978
c39ea606
JD
9792009-03-23 Jan Djärv <jan.h.d@swipnet.se>
980
981 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
982 that gdpy is set.
983
bc9b2b5e
AM
9842009-03-22 Alan Mackenzie <acm@muc.de>
985
986 * callint.c (Finteractive): Clarify the doc string - even
987 promptless elements need \n separators.
988
9f995a76
JR
9892009-03-22 Jason Rumney <jasonr@gnu.org>
990
991 * w32term.c (syms_of_w32term): Doc fix for
992 x-use-underline-position-properties.
993
22749e9a
EZ
9942009-03-21 Eli Zaretskii <eliz@gnu.org>
995
996 * w32.c (getpwuid): Change argument type to unsigned.
997 (struct w32_id): Change type of `rid' member to unsigned.
998 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
999 argument ID to unsigned. All callers changed.
1000 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
1001
e00553bf
EZ
10022009-03-20 Eli Zaretskii <eliz@gnu.org>
1003
1004 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
1005 negative, produce a float value.
1006
1007 * dired.c (make_uid, make_gid): New functions.
1008 (Ffile_attributes): Use them to avoid negative UID and GID.
1009
f761d6b6
JB
10102009-03-20 Juanma Barranquero <lekktu@gmail.com>
1011
1012 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
1013 (syms_of_keyboard) <command-hook-internal, input-method-function>:
1014 Fix typos in docstrings.
1015
d507f8d7
KH
10162009-03-19 Kenichi Handa <handa@m17n.org>
1017
1018 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
1019 changed, use font_load_for_lface to get a new font object.
1020 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
1021
1022 * frame.c (x_set_font): Handle the case that ARG is a cons.
1023
c68845e0
GM
10242009-03-19 Glenn Morris <rgm@gnu.org>
1025
1026 * fileio.c (Fsubstitute_in_file_name): Doc fix.
1027
bfa49dd1
CY
10282009-03-19 Chong Yidong <cyd@stupidchicken.com>
1029
1030 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
1031
8458d4c1
KH
10322009-03-19 Kenichi Handa <handa@m17n.org>
1033
1034 * charset.c (load_charset_map_from_file): When a mapfile can't be
1035 loaded, signal an error.
1036
78e7d1fe
EZ
10372009-03-18 Eli Zaretskii <eliz@gnu.org>
1038
1039 * dired.c (Ffile_attributes): Make sure UID and GID are always
1040 positive, even if the value is too large for a positive EMACS_INT.
1041 Doc fix.
1042
1043 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
1044
5da9fdfa
YM
10452009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1046
1047 * xmenu.c (xdialog_show): Move Fredisplay call ...
1048 (Fx_popup_dialog): ... here.
1049
7519c40d
SM
10502009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
1051
1052 * dired.c (file_name_completion): Disable the first optimization just
1053 installed, since it is not implemented correctly.
1054
2cd298e2
SM
10552009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
1056
1057 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 1058 only if the entry can affect bestmatch.
2cd298e2
SM
1059 Stop the search early, as Ftry_completion already does.
1060
48d37adf
CY
10612009-03-17 Chong Yidong <cyd@stupidchicken.com>
1062
e10c9c93 1063 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 1064
9286b16a
CY
10652009-03-15 Chong Yidong <cyd@stupidchicken.com>
1066
1067 * keyboard.c (parse_menu_item): Don't display remappings as menu
1068 equivalent bindings (Bug#788).
1069
f7b146dc
JR
10702009-03-15 Jason Rumney <jasonr@gnu.org>
1071
1072 * w32term.h (WM_EMACS_PAINT): New message.
1073 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
1074 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
1075 before passing to lisp thread. (Bug#950)
1076
f761d6b6 10772009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 1078
d93f9575
CY
1079 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
1080 variable as it was never reset.
1081 (ns_term_init): Remove initialization of Lisp-settable defaults
1082 and ns_expand_space.
1083 (-setPanelFromDefaultValues): Remove ns_expand_space.
1084 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
1085 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
1086 i.e. no additional spacing, similar to Carbon port.
1087
d93f9575
CY
1088 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
1089 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 1090
305018ec
JD
10912009-03-14 Jan Djärv <jan.h.d@swipnet.se>
1092
1093 * sound.c (alsa_configure): Remove call to deprecated
1094 snd_pcm_sw_params_set_xfer_align.
1095
f761d6b6 10962009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
1097
1098 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
1099 after clicking in a detached tool bar.
1100 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
1101
46e722a9
SM
11022009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
1103
348db3dd
SM
1104 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
1105 int/Lisp_Object mixup).
46e722a9 1106
a3d16f39
KH
11072009-03-13 Kenichi Handa <handa@m17n.org>
1108
1109 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 1110 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
1111 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
1112 (set_fontset_font): Change ARG to a vector. Handle range_list in
1113 ARG correctly.
1114 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 1115 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
1116 the above change.
1117 (fontset_from_font): Fix previous change.
fe24f56a 1118 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
1119 entry. If FONTSET is the default fontset, don't set the extra
1120 slot of the returning char-table.
1121
b066e6b6
JB
11222009-03-12 Juanma Barranquero <lekktu@gmail.com>
1123
1124 * nsfns.m (Fx_close_connection): Doc fix.
1125 (Fns_do_applescript): Reflow docstring.
1126 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
1127 (Fx_display_pixel_width, Fx_display_pixel_height)
1128 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
1129 Fix typos in docstrings.
1130 (Fns_set_alpha): Fix typos in error messages.
1131
d472514e 11322009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 1133
d472514e 1134 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
1135 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
1136 were used for such events.
1137
d472514e
JB
1138 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
1139 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 1140
d472514e 1141 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
1142 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
1143
fb930676
KH
11442009-03-11 Kenichi Handa <handa@m17n.org>
1145
ff85581a
KH
1146 * font.h (font_open_by_spec): Extern it.
1147
c50b7e98
KH
1148 * font.c (font_open_by_spec): New function.
1149 (font_open_by_name): Use font_open_by_spec.
1150
fb930676
KH
1151 * frame.c (x_set_font): When ARG is a font-object, don't alter the
1152 fontset of the frame.
1153
1154 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
1155 modify the default font of frames that use this fontset.
1156 (num_auto_fontsets): New variable.
1157 (fontset_from_font): Use num_auto_fontsets to decide a fontset
1158 name. Be sure to set FONTSET_ASCII to the correct font name.
1159 (update_auto_fontset_alist): New function.
1160
df4e8455
JB
11612009-03-11 Juanma Barranquero <lekktu@gmail.com>
1162
1163 * makefile.w32-in: Update dependencies.
1164
0a375797
AR
11652009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
1166
1167 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
1168
61313fa3
SM
11692009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
1170
1171 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
1172
b55103fb
CY
11732009-03-10 Chong Yidong <cyd@stupidchicken.com>
1174
1175 * lread.c (Feval_buffer): Doc fix.
1176
dde2559c
KH
11772009-03-09 Kenichi Handa <handa@m17n.org>
1178
1179 * charset.c (Qfile_name_handler_alist): Extern it.
1180 (load_charset_map_from_file): Temporarily bind
1181 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
1182
df4e8455 11832009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 1184
47f588bb
GM
1185 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
1186 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 1187
4ddf94bd
AR
11882009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
1189
4c9bdfc2
AR
1190 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
1191 (x_set_window_size): Change back to calculated method of setting
1192 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
1193 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
1194 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
1195
fe41ae9e
AR
1196 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
1197
4c9bdfc2
AR
1198 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
1199 accelerator in parens under GNUstep.
1200
825d0875
KH
12012009-03-06 Kenichi Handa <handa@m17n.org>
1202
1203 These changes are to detect incorrect composition sequence without
f3b3be74 1204 looking ahead the source. (Bug#2370)
825d0875
KH
1205
1206 * coding.h: Include "composite.h".
1207 (enum compisition_state): New enum.
1208 (struct compisition_status): New struct.
1209 (struct iso_2022_spec): New member cmp_status.
1210 (struct emacs_mule_spec): New struct.
1211 (struct coding_system): New members ctext_extended_segment_len and
1212 embedded_utf_8. Change the union member
1213 spec.emacs_mule_full_support to spec.emacs_mule.
1214
1215 * coding.c (CODING_ISO_CMP_STATUS): New macro.
1216 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 1217 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
1218 (ADD_COMPOSITION_DATA): New arg nbytes.
1219 (emacs_mule_char): New arg cmp_status.
1220 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
1221 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
1222 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
1223 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
1224 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
1225 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
1226 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
1227 (EMACS_MULE_COMPOSITION_END): New macro.
1228 (emacs_mule_finish_composition): New function.
1229 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
1230 (decode_coding_emacs_mule): Avoid long looking ahead while
1231 handling composition.
1232 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
1233 (ENCODE_COMPOSITION_RULE): New macro.
1234 (finish_composition): New function.
1235 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
1236 (DECODE_COMPOSITION_START): New implementation.
1237 (DECODE_COMPOSITION_END): Likewise.
1238 (STORE_COMPOSITION_RULE): New macro.
1239 (decode_coding_iso_2022): Avoid long looking ahead while handling
1240 composition, CTEXT extended segment, and embedded UTF-8.
1241 (setup_coding_system): For a coding of type iso-2022, reset
1242 CODING_ISO_EXTSEGMENT_LEN (coding) and
1243 CODING_ISO_EMBEDDED_UTF_8 (coding).
1244 (get_translation): Delete arguments last_block, from_nchars,
1245 to_nchars. Callers changed.
1246 (produce_chars): Don't modify charbuf. Adjusted for the change of
1247 get_translation.
98a326f7 1248 (produce_composition): Adjust for the new annotation sequence.
825d0875 1249 (handle_composition_annotation): Likewise.
98a326f7 1250 (consume_chars): Adjust for the change of get_translation.
825d0875 1251
ccbc4452
AR
12522009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
1253
4ddf94bd 1254 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 1255
988a7ddb
KH
12562009-03-05 Kenichi Handa <handa@m17n.org>
1257
1258 * font.c (font_select_entity): New function.
1259 (font_find_for_lface): Use font_select_entity to select a font.
1260
1261 * fontset.c (fontset_find_font): If a font found without
a8a3728b 1262 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
1263 font with C restriction.
1264
98a326f7 12652009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 1266
be1bce46 1267 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 1268
10ea2b82
JR
12692009-03-04 Jason Rumney <jasonr@gnu.org>
1270
2c93b248 1271 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 1272 characters that have already been read. (Bug#2569)
2c93b248 1273
10ea2b82
JR
1274 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
1275 Log an error message if check_image_size failed.
1276 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 1277 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 1278
71a0c011
EZ
12792009-03-02 Eli Zaretskii <eliz@gnu.org>
1280
1281 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
1282 when decoding process output.
1283
2f63bba8
RS
12842009-03-01 Richard M Stallman <rms@gnu.org>
1285
1286 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
1287
1288 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
1289
0a9564cb
EZ
12902009-02-28 Eli Zaretskii <eliz@gnu.org>
1291
1292 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
1293 (decode_coding_emacs_mule, decode_coding_iso_2022)
1294 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
1295 (decode_coding_raw_text, decode_coding_charset)
1296 (setup_coding_system, decode_eol, decode_coding, consume_chars):
1297 Honor inhibit-eol-conversion. (Bug #2186)
1298
449148b3
JR
12992009-02-28 Jason Rumney <jasonr@gnu.org>
1300
1301 * coding.c (detect_coding_charset): If not checking latin extra,
1302 fail on characters between 0x80 and 0xA0. (Bug#2354)
1303
a4aee864
EZ
13042009-02-28 Eli Zaretskii <eliz@gnu.org>
1305
1306 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 1307 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 1308
d88bee5a
GM
13092009-02-27 Glenn Morris <rgm@gnu.org>
1310
1311 * callint.c (Finteractive): Doc fix.
1312
a808f22d
KH
13132009-02-27 Kenichi Handa <handa@m17n.org>
1314
1315 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
1316
caf8d60c
CY
13172009-02-27 Chong Yidong <cyd@stupidchicken.com>
1318
1319 * font.c (font_style_to_value): Set value for unknown symbols to
1320 100 instead of 255.
b61137ea
CY
1321 (weight_table, slant_table, width_table): Treat "unspecified" as
1322 the default value.
caf8d60c 1323
1a0de25c
JB
13242009-02-26 Juanma Barranquero <lekktu@gmail.com>
1325
1326 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
1327
8fc45744
JB
13282009-02-25 Juanma Barranquero <lekktu@gmail.com>
1329
107bd7d1
JB
1330 * lread.c (Fload): Stop checking Vloads_in_progress and signal
1331 error as soon as a recursive load is detected.
8fc45744 1332
f097e223
AR
13332009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
1334
1335 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
1336 before caching.
1337
8810a12f
KH
13382009-02-24 Kenichi Handa <handa@m17n.org>
1339
1340 * fontset.c (fontset_find_font): Fix the condition for checking
1341 unavailable font.
1342
2c7d1565
GM
13432009-02-24 Glenn Morris <rgm@gnu.org>
1344
1345 * xfaces.c (Finternal_set_font_selection_order): Remove leading
1346 whitespace that confuses documentation.
1347
a20878b6
MB
13482009-02-23 Miles Bader <miles@gnu.org>
1349
1350 * process.c (Flist_system_processes, Fprocess_attributes)
1351 (syms_of_process): Rename `system-process-attributes' to
1352 `process-attributes'.
1353
b3b58c01
AS
13542009-02-22 Andreas Schwab <schwab@linux-m68k.org>
1355
1b3b981b
AS
1356 * coding.h (struct coding_system): Make safe_charsets a pointer to
1357 unsigned char.
1358 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
1359 being 255.
1360 (SAFE_CHARSET_P): Likewise.
1361 (setup_iso_safe_charsets): Properly setup safe_charsets.
1362 (Fdefine_coding_system_internal): Likewise.
1363 (setup_coding_system): Likewise. Remove unneeded casts.
1364 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
1365 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
1366 unneeded casts.
1367
b3b58c01
AS
1368 * insdel.c (del_range_2): Don't modify gap contents when called
1369 from decode_coding_object. (Bug#1809)
1370
0b6f228c
CY
13712009-02-21 Chong Yidong <cyd@stupidchicken.com>
1372
1373 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
1374 Qfont_object.
1375 (Ftype_of): Recognize font objects.
1376
1377 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
1378
1379 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
1380 moved to data.c.
1381
52f8870b
AR
13822009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
1383
1384 * nsterm.m (x_make_frame_invisible): Unset async_visible,
1385 async_iconified. Based on a patch by Christian Lynbech
1386 <christian.lynbech@tieto.com>.
1387 (EmacsView-windowDidMiniaturize:): Unset async_visible.
1388
7087d5e9
GM
13892009-02-20 Glenn Morris <rgm@gnu.org>
1390
1391 * syntax.c (Fskip_chars_forward): Fix doc typo.
1392
41d2ceef
CY
13932009-02-20 Chong Yidong <cyd@stupidchicken.com>
1394
1395 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
1396
1a3b7ca6
CY
13972009-02-19 Chong Yidong <cyd@stupidchicken.com>
1398
1399 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
1400
73cce38d
KH
14012009-02-19 Kenichi Handa <handa@m17n.org>
1402
1403 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 1404 Don't overflow coding->carryover. (Bug#2370)
73cce38d 1405
a51092ee
DN
14062009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
1407
1408 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
1409
c423ecca
KH
14102009-02-18 Kenichi Handa <handa@m17n.org>
1411
1412 * font.c (font_check_otf_features): Fix handling of `nil' element.
1413 (Ffont_spec): Describe :lang and :otf in the docstring.
1414
4c1958f4
AS
14152009-02-16 Andreas Schwab <schwab@suse.de>
1416
1417 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
1418 string.
1419
5704f39a
KH
14202009-02-16 Kenichi Handa <handa@m17n.org>
1421
1422 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 1423 (Bug#1723)
5704f39a 1424
8f0085aa
CY
14252009-02-14 Chong Yidong <cyd@stupidchicken.com>
1426
a057d86a 1427 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
1428
1429 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
1430 (handle_line_prefix): Suppress wrapping of wrap prefixes.
1431
aff01dd9
EZ
14322009-02-14 Eli Zaretskii <eliz@gnu.org>
1433
1434 * msdos.c (MAX_SCREEN_BUF): New macro.
1435 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
1436 Encode the entire run of glyphs sharing the same face, instead of
1437 doing that one glyph at a time (fixes a bug with displaying
1438 double-size characters).
1439
ba301db3
AR
14402009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
1441
1442 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
1443
1444 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
1445 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 1446 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
1447
1448 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 1449 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 1450
51d861de
SM
14512009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
1452
1453 * keyboard.c (adjust_point_for_property): Allow stopping betwen two
1454 invisible areas.
1455
7fed8996
JR
14562009-02-12 Jason Rumney <jasonr@gnu.org>
1457
631ea4fb
JR
1458 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
1459 (add_font_entity_to_list): Call check_face_name even when family
1460 is unspecified.
1461
cb4a3e42
JR
1462 * w32term.c (x_display_pixel_height, x_display_pixel_width):
1463 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 1464 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 1465
7fed8996 1466 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 1467 raster fonts. (Bug#2219)
7fed8996 1468
895416e3
KH
14692009-02-12 Kenichi Handa <handa@m17n.org>
1470
1471 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
1472 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
1473 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 1474 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
1475 (find_automatic_composition): While looking forward and backward,
1476 check static composition. Fix where to stop looking forward.
1477 (composition_adjust_point): Fix checking of static composition.
1478 (Fcomposition_get_gstring): Pay attention to
1dacf998 1479 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
1480
1481 * lisp.h (fast_looking_at): Extern it.
1482
1483 * search.c (fast_looking_at): New function.
1484
51d861de 1485 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
1486 <struct glyph>.u.cmp.to.
1487 (append_composite_glyph): Likewise.
1488
51d861de 1489 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
1490 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
1491 composition.
51d861de 1492 (append_composite_glyph): Adjust for the change of
895416e3
KH
1493 <strcut glyph>.u.cmp.to.
1494
8510724d
JB
14952009-02-11 Juanma Barranquero <lekktu@gmail.com>
1496
1497 * casetab.c (init_casetab_once):
1498 * coding.c (ALLOC_CONVERSION_WORK_AREA):
1499 * font.c (font_update_lface):
1500 * fontset.c (Fnew_fontset):
1501 * ftfont.c (ftfont_drive_otf):
1502 * xfont.c (xfont_open):
1503 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
1504
294fa707
SM
15052009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
1506
1507 * fileio.c (Fwrite_region): !NILP -> CONSP.
1508
b5bfebec
AS
15092009-02-10 Andreas Schwab <schwab@suse.de>
1510
1511 * process.c (send_process): Properly relocate pointer into data
adab88bd 1512 when using encoded data. (Bug#2272)
b5bfebec 1513
cb84a2be
KH
15142009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
1515
1516 * coding.c (detect_coding_charset): Fix previous change.
1517
89e09428
JR
15182009-02-08 Jason Rumney <jasonr@gnu.org>
1519
1520 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 1521 disappeared while hourglass was displayed. (Bug #2193)
89e09428 1522
4470a277
AS
15232009-02-07 Andreas Schwab <schwab@suse.de>
1524
1525 * unexelf.c (unexec): Fix error message.
1526
3175b12a
AR
15272009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
1528
1529 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 1530 when modal window is active. (Bug #2152)
3175b12a
AR
1531 (applicationShouldTerminate:): Remove now-unneeded while loop
1532 around NSRunAlertPanel.
1533
1534 * nsmenu.m (popupSession): New file-global variable.
1535 (pop_down_menu): End the popupSession before closing dialog.
1536 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
1537 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
1538 don't query NSApp for events (just sleep instead).
1539
8434d0b8
EZ
15402009-02-07 Eli Zaretskii <eliz@gnu.org>
1541
51d861de
SM
1542 * coding.c (syms_of_coding) <translation-table-for-input>:
1543 Modify doc string to discourage use for character code unification.
8434d0b8 1544
aa82edfd
CY
15452009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1546
1547 * atimer.c (run_timers): Update pending_atimers.
1548
2d283c7c
CY
15492009-02-06 Chong Yidong <cyd@stupidchicken.com>
1550
eb306cab
CY
1551 * image.c (svg_load_image): Fix last change.
1552
2d283c7c
CY
1553 * xfns.c (Fx_create_frame): Signal an error if no font is
1554 found (Bug#2147).
1555
4d8e170e
JB
15562009-02-05 Juanma Barranquero <lekktu@gmail.com>
1557
1558 * character.c (syms_of_character) <script-representative-chars>:
1559 Fix typo in docstring.
1560
c96169a0
AR
15612009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
1562
1563 * nsmenu.m (pop_down_menu): New function.
1564 (ns_popup_dialog): Call it on unwind.
1565 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
1566 call timer_check() (Bug#2154).
1567 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
1568 handling_signal is set.
1569 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
1570
1571 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G
1572
1573 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
1574
1575 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
1576
51d861de
SM
1577 * keyboard.c (poll_for_input_1, handle_async_input):
1578 Set handling_signal under HAVE_NS.
c96169a0 1579
aacd8ba1
GM
15802009-02-04 Glenn Morris <rgm@gnu.org>
1581
1582 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
1583
4cb75c4b
KH
15842009-02-04 Kenichi Handa <handa@m17n.org>
1585
1586 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
1587
1588 * charset.c (Fchar_charset): New optional arg restriction.
1589
1590 * coding.h (coding_system_charset_list): Extern it.
1591
1592 * coding.c (coding_system_charset_list): New function.
1593
1594 * composite.c: Include coding.h and termhooks.h.
1595 (composition_gstring_p): Fix for the terminal case.
1596 (composition_gstring_width): Likewise.
1597 (fill_gstring_body): Likewise.
1598 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
1599 the frame.
1600 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
1601 is within a composition.
867d4bb3 1602 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
1603
1604 * term.c (encode_terminal_code): Fix handling of composition.
1605 (produce_composite_glyph): For static composition, get pixel_width
1606 from struct composition.
1607
826ba17e
AS
16082009-02-02 Andreas Schwab <schwab@suse.de>
1609
1610 * unexelf.c (unexec): Handle unaligned bss offset.
1611
8ad093db
AR
16122009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
1613
1614 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
1615 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 1616
8ad093db
AR
1617 * keyboard.c (handle_interrupt): Don't call
1618 quit_throw_to_read_char() under NS.
d0a76a6e 1619
8ad093db
AR
1620 * blockinput.h: Remove NS-specific code.
1621
4d18a7a2
DN
16222009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
1623
db878925
DN
1624 * dispnew.c (window_change_signal): Don't try to get the size of a
1625 suspended tty frame.
1626 * term.c (Fresume_tty): Resize if the size has changed while the
1627 tty was suspended.
1628
4d18a7a2
DN
1629 * alloc.c (mark_stack): Properly conditionalize previous change.
1630
8984df7c
JB
16312009-01-30 Juanma Barranquero <lekktu@gmail.com>
1632
1633 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
1634 * w32term.c (w32_read_socket) [SYNC_INPUT]:
1635 Remove; this code is not used on Windows.
1636
75f4f1ac
EZ
16372009-01-30 Eli Zaretskii <eliz@gnu.org>
1638
1639 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
1640 EOLs that also has stray ^M characters.
1641
07a1e794
JB
16422009-01-30 Juanma Barranquero <lekktu@gmail.com>
1643
1644 * atimer.c (run_timers, alarm_signal_handler):
1645 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
1646 * w32inevt.c (w32_console_read_socket):
1647 * w32term.c (w32_read_socket):
1648 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
1649
a8b11cc9
CY
16502009-01-30 Chong Yidong <cyd@stupidchicken.com>
1651
1652 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
1653 Initialize it as a relative filename pattern.
1654 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
1655 (Fcall_process_region): Simplify temp file creation using
1656 temporary-file-directory.
1657
c279587b
EZ
16582009-01-29 Eli Zaretskii <eliz@gnu.org>
1659
1660 * msdos.c: Rename pending_signals to msdos_pending_signals.
1661 (sig_suspender, sigprocmask): Adjust.
1662
a8fe3242
CY
16632009-01-29 Chong Yidong <cyd@stupidchicken.com>
1664
1665 * keyboard.c (pending_signals): New var.
1666 (poll_for_input, input_available_signal, init_keyboard): Set it.
1667 (process_pending_signals): New function.
1668
1669 * lisp.h (QUIT): Check pending_signals instead of
1670 interrupt_input_pending. Use process_pending_signals.
1671
51d861de 1672 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 1673
51d861de 1674 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
1675
1676 * sysdep.c (emacs_write): Use process_pending_signals.
1677
1678 * xterm.c (XTread_socket): Update pending_signals.
1679
1680 * w32term.c (w32_read_socket): Update pending_signals.
1681
1682 * w32inevt.c (w32_console_read_socket): Update pending_signals.
1683
6570a1c4
KH
16842009-01-29 Kenichi Handa <handa@m17n.org>
1685
1686 * xftfont.c (xftfont_has_char): New function.
1687 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
1688
d72a4afa
AR
16892009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
1690
1691 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
1692 under GNUstep.
1693 (ns_query_color): New declaration.
1694
1695 * nsterm.m (ns_confirm_quit): New variable.
1696 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
1697 (EmacsApp-applicationShouldTerminate:): Use it.
1698 (EmacsPrefsController): Let user set it.
1699 (ns_query_color): New function.
1700 (ns_defined_color): Use it.
1701 (ns_initialize): Drop.
1702 (ns_term_init): Add two lines from ns_initialize(), and set
1703 input_interrupt_mode to nil.
1704
1705 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 1706 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 1707
9fe78804
KH
17082009-01-28 Kenichi Handa <handa@m17n.org>
1709
1710 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
1711 (fontset_get_font_group): Remember that no font-group is specified
1712 for C.
9fe78804 1713
fa57de36
CY
17142009-01-27 Chong Yidong <cyd@stupidchicken.com>
1715
930600e9
CY
1716 * fns.c (concat): Check for string overflow (bug#1787).
1717
fa57de36
CY
1718 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
1719 Quadruple undo limits (bug#1501).
1720
7179ce7b
KH
17212009-01-27 Kenichi Handa <handa@m17n.org>
1722
1723 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
1724 directly use GT_Get_Char_index.
1725
1726 * xftfont.c (struct xftfont_info): New member `index'.
1727
1728 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 1729 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 1730
5be8fcc0
CY
17312009-01-26 Kenichi Handa <handa@m17n.org>
1732
1733 * fontset.c (fontset_find_font): Fix handling of non-cons return
1734 value of fontset_get_font_group.
1735 (fontset_font): Revert last change.
1736
19ae3e61
JR
17372009-01-26 Jason Rumney <jasonr@gnu.org>
1738
1739 * w32font.c (w32font_list_internal): Return quickly if registry is
1740 unknown. Simplify final return.
1741 (add_font_entity_to_list): Break complex logic down into more
1742 manageable chunks. Move unknown registry check to
1743 w32font_list_internal.
1744
8612b71a
AR
17452009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
1746
1747 Changes to remove Feval calls from GUI under NS.
1748
d8038940
JB
1749 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
1750 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
1751 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
1752
1753 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
1754 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
1755 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
1756 instead of NON_ASCII_KEYSTROKE_EVENT.
1757 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
1758 (EmacsApp-applicationShouldTerminate:): Query user.
1759 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
1760 instead of Feval.
1761
1762 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
1763
1764 * keyboard.c (kbd_buffer_get_event): Check for it.
1765 (keys_of_keyboard): Define lispy keys for
1766 ns-put/unput-working-text.
1767
1768 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
1769 versions.
1770 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
1771
6288ae55
CY
17722009-01-25 Chong Yidong <cyd@stupidchicken.com>
1773
1774 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 1775 setting current_buffer directly. (Bug#2044)
6288ae55 1776
289e7f8f
CY
17772009-01-24 Chong Yidong <cyd@stupidchicken.com>
1778
5ce87308 1779 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 1780 any work. (Bug#1952, bug#1990).
5ce87308 1781
64cc3cf6 1782 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 1783
b3243e6f
AR
17842009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
1785
1786 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
1787 (ns_no_defaults): New declaration.
1788 (main): Use it.
e0d2e69a 1789
d900b2af 1790 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 1791
d900b2af 1792 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 1793
d900b2af
AR
1794 * nsterm.m (ns_no_defaults): New variable.
1795 (ns_initialize): Don't read defaults when ns_no_defaults.
1796 (EmacsView-readSelectionFromPasteboard:)
1797 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 1798 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
1799 (ns_dumpglyphs_stretch): New function.
1800 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 1801 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 1802
e0d2e69a
AR
1803 * nsimage.m (setPixmapData:): Set to ignore image DPI.
1804
3ac71f5d
CY
18052009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
1806
1807 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
1808 call for Sparc64.
1809
3fe53a83
AR
18102009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
1811
1812 * nsfns.m:
1813 * nsgui.h:
1814 * nsmenu.m:
1815 * nsselect.m:
1816 * nsterm.h:
1817 * nsterm.m: Remove '23' comments that indicated code added during
1818 update from emacs-20 -> emacs-23.
1819
10f87c6f 18202009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
1821
1822 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 1823 ns_alternate_modifier. (Bug#1217)
a3b53a85 1824
c7cef62d
AR
1825 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
1826 Display all shortcuts, including those w/o super modifier.
1827
575fb8bd
AR
1828 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
1829
918b848b
CY
18302009-01-22 Chong Yidong <cyd@stupidchicken.com>
1831
1832 * fileio.c (Vwrite_region_post_annotation_function)
1833 (Vwrite_region_annotation_buffers): New vars.
1834 (build_annotations_unwind): Just reset
1835 Vwrite_region_annotation_buffers.
1836 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
1837 Call write-region-post-annotation-function.
1838 (build_annotations): Add to Vwrite_region_annotation_buffers if
1839 buffer changes.
1840
a39e2539
AR
18412009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
1842
1843 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
1844 Tiger.
51d861de
SM
1845 * nsfns.m (ns_do_applescript):
1846 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 1847
35ed44db
AR
18482009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
1849
1850 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
1851
cbe0b5bf
AR
18522009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
1853
1854 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 1855
6049d3a0
AR
1856 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
1857
1858 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
1859 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
1860 handle Ctrl-tab. (Bug#1841)
1861 (ns_get_color): Use unsigned long long for scanned hex string value.
1862 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 1863 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 1864 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 1865 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 1866 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 1867 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 1868 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 1869
d3810c21 1870 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 1871 DPI. (Bug#1316)
d3810c21
AR
1872 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
1873 values in onTiger section.
4c7077c3 1874
e301e634
CY
18752009-01-19 Chong Yidong <cyd@stupidchicken.com>
1876
7f82490b
CY
1877 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
1878 Check return value of font_spec_from_name.
64cc3cf6 1879 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
1880
1881 * font.c (font_spec_from_name): Return Qnil if font name could not
1882 be parsed.
1883 (font_parse_name): Treat a `?' character as part of an XLFD.
1884
e301e634
CY
1885 * fns.c (Fsubstring): Doc fix.
1886
1c0db158
KH
18872009-01-19 Kenichi Handa <handa@m17n.org>
1888
51d861de 1889 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
1890 (ftfont_list): Likewise.
1891
acf20901
JB
18922009-01-18 Juanma Barranquero <lekktu@gmail.com>
1893
fff4e459
JB
1894 * dbusbind.c (Fdbus_register_signal):
1895 * process.c (conv_sockaddr_to_lisp):
1896 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
1897
acf20901
JB
1898 * callproc.c (Fgetenv_internal): Doc fix.
1899
e7abcdfb
CY
19002009-01-16 Chong Yidong <cyd@stupidchicken.com>
1901
1902 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
1903 it is not even used.
1904
b60861e6
GM
19052009-01-16 Glenn Morris <rgm@gnu.org>
1906
1907 * font.c (Ffont_variation_glyphs): Silence compiler.
1908
8db52afe
JB
19092009-01-15 Juanma Barranquero <lekktu@gmail.com>
1910
1911 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
1912 Reported by David Robinow <drobinow@gmail.com>.
1913
4cddb209
KH
19142009-01-15 Kenichi Handa <handa@m17n.org>
1915
51d861de 1916 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 1917
f247f67b
JR
19182009-01-14 Jason Rumney <jasonr@gnu.org>
1919
1920 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 1921 never a fontset. (Bug#1562)
f247f67b 1922
f56a4450
KH
19232009-01-14 Kenichi Handa <handa@m17n.org>
1924
1925 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 1926 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 1927
4e99855e
CY
19282009-01-13 Chong Yidong <cyd@stupidchicken.com>
1929
1930 * font.c (font_clear_prop): If clearing the family, clear the font
1931 width index too.
1932
fff4e459 1933 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 1934
24f01470
JB
19352009-01-12 Juanma Barranquero <lekktu@gmail.com>
1936
1937 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
1938 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
1939 functions, use sizeof.
1940
a41240a3
MR
19412009-01-12 Martin Rudalics <rudalics@gmx.at>
1942
1943 * keyboard.c (read_char): Fix case where last_nonmenu_event
1944 returned a bad value with submenus. (Bug#447)
1945
944636b8
CY
19462009-01-12 Chong Yidong <cyd@stupidchicken.com>
1947
1948 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
1949 family, clear the font width index too.
1950
0dad7c6f
JR
19512009-01-11 Jason Rumney <jasonr@gnu.org>
1952
1953 * keyboard.c (cmd_error_internal): Exit when errors occur before
1954 frame creation and not in daemon mode. (Bug#1836)
1955
7c2363af
CY
19562009-01-10 Chong Yidong <cyd@stupidchicken.com>
1957
1958 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
1959 of a display vector, backtrack.
1960 (try_window_reusing_current_matrix): Check glyph type before
1961 referencing charpos member.
1962
97b1b294
EZ
19632009-01-10 Eli Zaretskii <eliz@gnu.org>
1964
1965 Fix Bug #876:
1966
1967 * coding.c (inhibit_null_byte_detection): New variable.
1968 (detect_coding, detect_coding_system): Don't pay attention to null
1969 bytes if inhibit_null_byte_detection is non-zero.
51d861de 1970 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
1971 <inhibit-iso-escape-detection>: Doc fix.
1972
4624b6e3
JR
19732009-01-09 Jason Rumney <jasonr@gnu.org>
1974
1975 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 1976 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
1977 Only report Unicode Plane 2 fonts as unicode-sip.
1978
323b840c
CY
19792009-01-09 Chong Yidong <cyd@stupidchicken.com>
1980
51d861de
SM
1981 * xfaces.c (Fx_font_family_list): Delete function.
1982 Move compatibility version to faces.el.
323b840c 1983
51d861de 1984 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 1985
eba7400d
MR
19862009-01-09 Martin Rudalics <rudalics@gmx.at>
1987
1988 * frame.c (x_set_frame_parameters): Remember requested value for
1989 fullscreen before it's reset by the parameter handler.
1990
4b09796d
GM
19912009-01-09 Glenn Morris <rgm@gnu.org>
1992
1993 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 1994 (last_command_event): ... and update all users.
4b09796d
GM
1995 (last_input_char): For clarity, rename to...
1996 (last_input_event): ... and update all users.
1997 (last-command-char, last-input-char): Move to subr.el as aliases.
1998 * cmds.c, commands.h: Update for last_command_char rename.
1999
14ccea62
CY
20002009-01-08 Chong Yidong <cyd@stupidchicken.com>
2001
51d861de 2002 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 2003
5f004711
JR
20042009-01-08 Jason Rumney <jasonr@gnu.org>
2005
2006 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
2007 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
2008 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
2009 Don't declare.
fff4e459 2010 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
2011 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
2012
b71f6f73
KH
20132009-01-07 Kenichi Handa <handa@m17n.org>
2014
50b06221 2015 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 2016 remember the coding system used for decoding in
50b06221
KH
2017 coding_system (Bug#1039).
2018
b71f6f73 2019 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 2020 breaking the loop. (Bug#870)
b71f6f73
KH
2021 (decode_coding_utf_16, decode_coding_emacs_mule)
2022 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
2023 (decode_coding_charset): Likewise.
2024
56f668f7
MR
20252009-01-05 Martin Rudalics <rudalics@gmx.at>
2026
2027 * frame.c (x_set_frame_parameters): Make sure height (width) get
2028 applied when fullwidth (fullheight) is set. (Bug#1522)
2029
5da9424d
JB
20302009-01-04 Juanma Barranquero <lekktu@gmail.com>
2031
2032 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
2033 (utc_base): Declare as ULONGLONG, not long double.
2034 (convert_time_raw): Delete.
2035 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
2036 (initialize_utc_base): New function.
2037 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
2038 (convert_from_time_t): Use initialize_utc_base; compute result with
2039 64-bit arithmetic.
2040 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
2041
c4605e09
EZ
20422009-01-03 Eli Zaretskii <eliz@gnu.org>
2043
9acef61c 2044 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
2045 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
2046 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
2047 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
2048 [!subprocesses]: Define.
2049 (syms_of_process) [!subprocesses]: Intern and staticpro them.
2050 (Flist_system_processes, Fsystem_process_attributes)
2051 [!subprocesses]: Call list_system_processes and
2052 system_process_attributes instead of returning Qnil.
2053
9acef61c
JB
2054 * dosfns.c (system_process_attributes, list_system_processes):
2055 New functions.
c4605e09
EZ
2056
2057 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
2058
2059 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
2060 Don't use the default (no-op) implementation.
2061
8b7d0a16
JR
20622009-01-03 Jason Rumney <jasonr@gnu.org>
2063
a6d46bc1
JR
2064 * keyboard.c (parse_modifiers_uncached): Wheel events are
2065 clicks (bug#687).
2066
8b7d0a16
JR
2067 * w32term.c (x_query_colors, x_query_color): New functions.
2068
2069 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
2070 (svg_load_image): Cast returned pointers from dynamically loaded
2071 functions. Eliminate W32 specific code.
2072
bfe11752
DN
20732009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
2074
89e2438a
DN
2075 * nsfns.m (x_set_foreground_color, x_set_background_color)
2076 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
2077 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
2078 x_ prefix instead of ns_. Update references.
2079 (syms_of_nsfns): Add a FIXME comment.
2080
2081 * nsterm.m (x_set_cursor_type): New prototype.
2082 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
2083
bfe11752
DN
2084 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
2085 for Solaris instead of incorrectly providing Qutime and Qcutime.
2086
031da700
EZ
20872009-01-02 Eli Zaretskii <eliz@gnu.org>
2088
2089 * w32.c (process_times): Compute sum of utime and stime.
2090 (system_process_attributes): Add Qtime to the alist.
2091
2092 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
2093 and add them to the alist.
2094
2095 * process.c (top level) <Qtime, Qctime>: New variables.
2096 (syms_of_process): staticpro them.
2097 (Fsystem_process_attributes): Add their documentation to the doc
2098 string.
2099
2100 * process.h: Declare Qtime and Qctime.
2101
df23bf08
JR
21022009-01-02 Jason Rumney <jasonr@gnu.org>
2103
9acef61c 2104 * image.c (Qgobject): New symbol.
df23bf08
JR
2105 (syms_of_image): Initialize it.
2106 (init_svg_functions): Load some functions from gobject library.
2107
5bbdf7aa
DN
21082009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
2109
2110 * frame.c (make_terminal_frame): Remove redundant code and useless
2111 block.
2112
63136da6
AS
21132009-01-01 Andreas Schwab <schwab@suse.de>
2114
2115 * process.c (conv_sockaddr_to_lisp): Add workaround for
2116 getsockname bug on BSD.
2117
9ef69046
CY
21182009-01-01 Chong Yidong <cyd@stupidchicken.com>
2119
d6fafbe0
CY
2120 * xfns.c (x_create_tip_frame): Set border width of the X window.
2121
51d861de 2122 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 2123
f9c34147
JR
21242009-01-01 Jason Rumney <jasonr@gnu.org>
2125
9acef61c 2126 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
2127 Don't block input, as per earlier xterm.c changes.
2128
f5497e45
AR
21292008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
2130
2131 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
2132 (ns_appkit_version_int): New function.
2133 (x-server-version): Use ns_appkit_version_int and follow 21+
2134 convention of returning 3 integers.
2135
c19cab20
KH
21362008-12-30 Kenichi Handa <handa@m17n.org>
2137
2138 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
2139 (CHAR_SURROGATE_PAIR_P): New macro.
2140
2141 * font.h (struct font_driver): New member get_variation_glyphs.
2142
9acef61c 2143 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
2144 (Ffont_variation_glyphs): New function.
2145 (syms_of_font): Defsubr it.
2146
2147 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
2148 ftfont_variation_glyphs.
2149 (setup_otf_gstring): New function.
2150 (ftfont_drive_otf): Use it.
2151 (ftfont_shape_by_flt): Handle variation selector.
2152 (ftfont_variation_glyphs): New function.
2153
28cd591f
MR
21542008-12-30 Martin Rudalics <rudalics@gmx.at>
2155
2156 * frame.c (Vemacs_iconified): Remove.
2157
7f714baf
JR
21582008-12-30 Jason Rumney <jasonr@gnu.org>
2159
2160 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 2161 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 2162
9d2d22ab
CY
21632008-12-30 Chong Yidong <cyd@stupidchicken.com>
2164
2165 * indent.c (Fvertical_motion): Don't advance iterator if we have
2166 reseated to the desired position.
2167
2168 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
2169 checking for pos match.
2170
545312c2
KH
21712008-12-30 Kenichi Handa <handa@m17n.org>
2172
1ede3eb6
KH
2173 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
2174 just get the low 8-bit of the code.
2175
545312c2
KH
2176 * font.c (font_intern_prop): Validate str as multibyte.
2177
bd7bbf29
DN
21782008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
2179
31e0750e
DN
2180 * dispextern.h (struct face): Move lface and hash from the middle
2181 of bitfields.
2182
bd7bbf29
DN
2183 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
2184
b5672e7c
DN
21852008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
2186
2187 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
2188 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
2189 instead of intervals.h.
2190
d704470f
AS
21912008-12-26 Andreas Schwab <schwab@suse.de>
2192
2193 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
2194 cons.
2195
54b33868
MR
21962008-12-26 Martin Rudalics <rudalics@gmx.at>
2197
2198 * textprop.c (Qminibuffer_prompt): New variable.
2199 (syms_of_textprop): Initialize it.
2200 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
2201 in minibuffer-prompt face. (Bug#1662)
2202
40b615d6
JR
22032008-12-25 Jason Rumney <jasonr@gnu.org>
2204
2205 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
2206
baae5c2d
JR
22072008-12-24 Jason Rumney <jasonr@gnu.org>
2208
2209 * ralloc.c (r_alloc_reset_variable): New function.
2210
2211 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 2212 record of what points where. (Bug#716)
baae5c2d 2213
a9051c88
DN
22142008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
2215
2216 * minibuf.c (read_minibuf): Follow the non-interactive case when
2217 running as a daemon, before detaching.
2218
8b146312
AS
22192008-12-22 Andreas Schwab <schwab@suse.de>
2220
2221 * buffer.c (init_buffer): Use realloc instead of xrealloc.
2222 * gtkutil.c (free_widget_value): Use xfree instead of free.
2223
56f2de10
MR
22242008-12-22 Martin Rudalics <rudalics@gmx.at>
2225
2226 * frame.c (delete_frame): New function derived from
2227 Fdelete_frame to handle Qnoelisp value for FORCE argument.
2228 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
2229 (Fdelete_frame): Call delete_frame. Remove line from doc-string
2230 saying that FORCE non-nil doesn't run `delete-frame-functions'.
2231 * frame.h: Extern delete_frame.
2232 * window.c (window_loop):
2233 * terminal.c (delete_terminal):
2234 * xterm.c (x_connection_closed):
2235 * xfns.c (Fx_hide_tip):
9acef61c 2236 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 2237
1fc200d6
JR
22382008-12-21 Jason Rumney <jasonr@gnu.org>
2239
2240 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
2241 when character maps to .notdef character.
2242
5e252df2
SM
22432008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
2244
2245 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
2246
99b72cc4
JR
22472008-12-20 Jason Rumney <jasonr@gnu.org>
2248
2249 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 2250 a graphical frame on Windows. (Bug#1325)
99b72cc4 2251
acc49a52
JD
22522008-12-20 Jan Djärv <jan.h.d@swipnet.se>
2253
2254 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
2255
6ea15123
CY
22562008-12-20 Chong Yidong <cyd@stupidchicken.com>
2257
2258 * minibuf.c (Fread_buffer): Doc fix.
2259
b2dab6c8
JR
22602008-12-20 Jason Rumney <jasonr@gnu.org>
2261
54ea0c87 2262 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 2263 server name in UNC paths. (Bug#719)
54ea0c87 2264
b2dab6c8 2265 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 2266 charbuf. (Bug#1035)
b2dab6c8 2267
6d1921be
DN
22682008-12-19 Daniel Engeler <engeler@gmail.com>
2269
2270 * sysdep.c (serial_configure): Fix typo.
2271
53934c98
DN
22722008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
2273
2274 * sysdep.c: Include alloca.h.
f4f634e8
DN
2275 (system_process_attributes): Add implementation for Solaris.
2276
2277 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 2278
06e111a6
DN
22792008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
2280
2281 Reorganize implementation of Flist_system_processes and
2282 Fsystem_process_attributes. No functional changes.
2283 * process.c: Don't #include pwd.h, grp.h and limits.h.
2284 (Flist_system_processes): Just call list_system_processes.
2285 (Fsystem_process_attributes): Just call system_process_attributes.
2286 (procfs_list_system_processes, time_from_jiffies)
2287 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
2288 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
2289
2290 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
2291 (list_system_processes): Rename from
2292 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
2293 Provide a do nothing implementation.
2294 (system_process_attributes): Rename from
2295 procfs_list_system_processes.
2296 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 2297 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
2298
2299 * w32.c (list_system_processes): Rename from
2300 w32_list_system_processes.
2301 (system_process_attributes): Rename from
2302 w32_system_process_attributes.
2303
2304 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
2305
2306 * process.h (w32_list_system_processes)
2307 (w32_system_process_attributes): Remove.
2308 (list_system_processes, system_process_attributes): New
2309 prototypes.
2310
6a705b23
KH
23112008-12-19 Kenichi Handa <handa@m17n.org>
2312
2313 * xfont.c (xfont_decode_coding_xlfd): New function.
2314 (xfont_encode_coding_xlfd): New function.
2315 (xfont_list_pattern): Decode XLFD by iso-8859-1.
2316 (xfont_list): Decode and encode XLFD by iso-8859-1.
2317 (xfont_match): Likewise.
2318 (xfont_list_family): Likewise.
2319 (xfont_open): Likewise.
2320
d66c0241 2321 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
2322 names are utf-8.
2323
d66c0241 2324 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
2325 names are utf-8.
2326
5a130941
JD
23272008-12-18 Jan Djärv <jan.h.d@swipnet.se>
2328
2329 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
2330 changed.
bfd20325
JD
2331 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
2332 clicked on a detached tool bar button.
5a130941 2333
fd95644b
DN
23342008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
2335
2336 * emacs.c (main): Print and error and exit when no data is read
2337 from the pipe.
2338
e6eee6ae
JR
23392008-12-17 Jason Rumney <jasonr@gnu.org>
2340
2341 * w32font.c (w32font_has_char): Always return -1.
2342
a35dd56b
KH
23432008-12-16 Kenichi Handa <handa@m17n.org>
2344
2345 * font.c (font_open_entity): Fix previous change.
2346
0e3635c2
DN
23472008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
2348
2349 * process.c: Include <limits.h>.
2350
d4835507 23512008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
2352
2353 * font.c (font_update_drivers): Fix mistake in reconstructing the
2354 driver list.
2355
23562008-12-16 Chong Yidong <cyd@stupidchicken.com>
2357
2358 * font.c (font_clear_cache): Fix format of font cache data.
2359
e2cbc401
CY
23602008-12-15 Chong Yidong <cyd@stupidchicken.com>
2361
2362 * xftfont.c (xftfont_open): Free Xft font pattern if
2363 XftFontOpenPattern fails.
2364
2365 * xterm.c (x_free_frame_resources): Remove extraneous call to
2366 free_frame_faces.
2367
b131d535
CY
23682008-12-13 Chong Yidong <cyd@stupidchicken.com>
2369
2370 * xterm.c (x_delete_display): Move xim_close_dpy call to
2371 x_delete_terminal.
2372 (x_delete_terminal): Call xim_close_dpy.
2373
e6df5336
JR
23742008-12-13 Jason Rumney <jasonr@gnu.org>
2375
2376 * w32font.c (intern_font_name): New function.
2377 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
2378 (w32font_open_internal, Fx_select_font): Decode font name.
2379 (fill_in_logfont, list_all_matching_fonts): Encode font name.
2380
2381 * w32font.h (intern_font_name): Declare new function.
2382
2383 * w32uniscribe.c (add_opentype_font_name_to_list):
2384 Use intern_font_name.
2385
20d68145
CY
23862008-12-13 Chong Yidong <cyd@stupidchicken.com>
2387
9f2554de
CY
2388 * frame.c (Fdelete_frame): Call free_font_driver_list.
2389
3d9bec9a
CY
2390 * font.c (free_font_driver_list): Implement missing function.
2391
20d68145
CY
2392 * w32term.c (w32_term_init): Don't initialize the image cache
2393 here; it will be done in init_frame_faces.
2394
2395 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
2396 (struct x_display_info): Remove unused member null_pixel. New
2397 member xim_callback_data.
2398
2399 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
2400 (xim_initialize): Save pointer to callback function data.
2401 (xim_close_dpy): Free callback function data. Call XCloseIM,
2402 reverting 2008-11-04 change by David Smith.
2403 (x_term_init): Don't initialize the image cache here; it will be
2404 done in init_frame_faces. Remove ancient "null_pixel" cruft.
2405 (x_delete_display): Free x_dnd_atoms member.
2406
96f9306b
KH
24072008-12-13 Kenichi Handa <handa@m17n.org>
2408
6dec9044
JB
2409 * font.c (font_rescale_ratio): Moved from xfaces.c.
2410 Argument type changed. Handle a font-spec too.
96f9306b 2411 (font_score): Check Vface_font_rescale_alist.
6dec9044 2412 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
2413
2414 * xfaces.c (font_rescale_ratio): Moved to font.c.
2415
8d5b4964
CY
24162008-12-13 Chong Yidong <cyd@stupidchicken.com>
2417
2418 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
2419
e6df5336
JR
24202008-12-12 Jason Rumney <jasonr@gnu.org>
2421
2422 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
2423 Vwindow_system_version to the real w32 major version.
2424
97c6058a
DN
24252008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
2426
2427 * term.c (init_tty): Move setting the terminal name before the
2428 potential user: maybe_fatal.
2429
ec4e88d7
CY
24302008-12-11 Chong Yidong <cyd@stupidchicken.com>
2431
d4835507
JB
2432 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
2433 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 2434
b4233ec9
JR
24352008-12-11 Jason Rumney <jasonr@gnu.org>
2436
8ec71e23 2437 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 2438 SYMBOL_CHARSET. (Bug#547)
8ec71e23 2439
b4233ec9 2440 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 2441 size for surrogates. (Bug#1096, bug#872)
b4233ec9 2442
011a0143
JB
24432008-12-11 Juanma Barranquero <lekktu@gmail.com>
2444
2445 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
2446
3c309f34
JB
24472008-12-11 Juanma Barranquero <lekktu@gmail.com>
2448
2449 * process.c (Fsystem_process_attributes, syms_of_process):
2450 Fix typo in name of Ssystem_process_attributes.
2451 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
2452
fedc6ab5
JB
24532008-12-11 Juanma Barranquero <lekktu@gmail.com>
2454
2455 * syntax.c (Fmodify_syntax_entry): Doc fix.
2456
ba3de0e8
JB
24572008-12-10 Juanma Barranquero <lekktu@gmail.com>
2458
2459 * font.c (Ffont_spec): Move usage to end of docstring.
2460
174f1c74
JR
24612008-12-10 Jason Rumney <jasonr@gnu.org>
2462
2463 * w32font.c (Qcham): New symbol.
2464 (font_supported_scripts): Add cham, and comments for other new
2465 scripts in bitfield from OpenType spec.
9d32f818
JR
2466 (add_font_entity_to_list): Limit unicode-sip fonts to those that
2467 contain characters beyond the bmp.
174f1c74 2468
7b649478
KH
24692008-12-10 Kenichi Handa <handa@m17n.org>
2470
2471 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 2472 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
2473 Qunicode_sip.
2474
2133e2d1
JB
24752008-12-10 Juanma Barranquero <lekktu@gmail.com>
2476
2477 * coding.c (QCdefault_char): Rename from QCdefalut_char.
2478 (Fcoding_system_put): Use QCdefault_char.
2479 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
2480
9af886ee
CY
24812008-12-09 Chong Yidong <cyd@stupidchicken.com>
2482
74d819eb
CY
2483 * xftfont.c (syms_of_xftfont): Fix typo.
2484
4ccfa1c0 2485 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 2486
7c19d3ae
DN
24872008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
2488
2489 * emacs.c (main): Close daemon_pipe on exec.
2490
567826bb
CY
24912008-12-08 Chong Yidong <cyd@stupidchicken.com>
2492
2493 * termchar.h (struct tty): New members termcap_term_buffer and
2494 termcap_strings_buffer.
2495
2496 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 2497 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
2498 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
2499 All callers changed.
2500 (init_tty): Store termcap data and string buffers in new struct
2501 tty members termcap_term_buffer and termcap_strings_buffer.
2502 (delete_tty): Free them.
4ccfa1c0 2503 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 2504
aa96c42b
SZ
25052008-12-07 Seiji Zenitani <zenitani@mac.com>
2506
2507 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 2508 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 2509
b7e1d896
CY
25102008-12-06 Chong Yidong <cyd@stupidchicken.com>
2511
2512 * coding.c (make_conversion_work_buffer): Disable buffer
2513 modification hooks in the work buffer.
2514
b5ec91a5
EZ
25152008-12-05 Eli Zaretskii <eliz@gnu.org>
2516
2517 * process.c (procfs_system_process_attributes): If `nread' has a
2518 negative value, assign zero to it.
2519
a5d2a52b
CY
25202008-12-05 Chong Yidong <cyd@stupidchicken.com>
2521
68c5540b 2522 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 2523
7bf1bb21
KH
25242008-12-05 Kenichi Handa <handa@m17n.org>
2525
2526 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
2527 second character is a combining character.
2528
2fdc7d00
EZ
25292008-12-05 Eli Zaretskii <eliz@gnu.org>
2530
2531 * process.c (procfs_system_process_attributes): Don't use cmd,
2532 cmdsize, and q without initializing them first.
2533
bf6bfba8
JR
25342008-12-04 Jason Rumney <jasonr@gnu.org>
2535
2536 * w32font.c (w32font_draw): Initialize orig_clip before getting
2537 it, and delete it when finished.
2538
a3b1a468
DN
25392008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
2540
2541 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
2542 case when running as a daemon before detaching.
2543
8b8be8eb
JB
25442008-12-03 Juanma Barranquero <lekktu@gmail.com>
2545
805f2638 2546 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 2547
b1bde622
KH
25482008-12-03 Kenichi Handa <handa@m17n.org>
2549
e500c47d
KH
2550 * font.c (font_at): Set `multibyte' at first.
2551
ca516334
KH
2552 * coding.c (decode_coding_charset): Check type of an element of
2553 vector VALIDS.
7bf1bb21 2554 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 2555
4ccfa1c0 2556 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
2557 (font_for_char): Likewise.
2558
1e5ecd37
CY
25592008-12-03 Chong Yidong <cyd@stupidchicken.com>
2560
d5b01609 2561 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
2562 (font_update_lface): Handle fonts with corrupted size specs,
2563 i.e. non-int and non-float.
d5b01609 2564
11e3a6e4 2565 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 2566 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 2567 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 2568
ab06788b
CY
2569 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
2570
1e5ecd37 2571 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 2572 underline_minimum_offset for underline position.
1e5ecd37 2573
63c125ab
DN
25742008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
2575
2576 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
2577
2578 * character.c (c_string_width): Specify the type for LEN.
2579
3a8406e1
KH
25802008-12-03 Kenichi Handa <handa@m17n.org>
2581
4ccfa1c0 2582 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 2583 (decode_coding_utf_8): Likewise.
4ccfa1c0 2584 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 2585 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 2586
651df7d9
CY
25872008-12-02 Chong Yidong <cyd@stupidchicken.com>
2588
2589 * keyboard.c (make_lispy_position): Only use PT if the selected
2590 window is current.
2591
1f625c6c
AS
25922008-12-02 Andreas Schwab <schwab@suse.de>
2593
f7741ce9
AS
2594 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
2595
1f625c6c
AS
2596 * doprnt.c (doprnt1): Fix size of charbuf.
2597
92bc2678
CY
25982008-12-02 Chong Yidong <cyd@stupidchicken.com>
2599
2600 * keyboard.c (timer_check): Revert last change.
2601
93b9e8cc
JB
26022008-12-02 Juanma Barranquero <lekktu@gmail.com>
2603
2604 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
2605
fd7a37d5
JB
26062008-12-01 Juanma Barranquero <lekktu@gmail.com>
2607
2608 * makefile.w32-in: Update dependencies.
2609 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
2610
c115043b
AS
26112008-12-01 Andreas Schwab <schwab@suse.de>
2612
2613 * font.c (register_font_driver): Use xmalloc.
2614 (font_put_frame_data): Likewise.
2615
f5668d2a
CY
26162008-12-01 Chong Yidong <cyd@stupidchicken.com>
2617
860d96be
CY
2618 * xfaces.c (realize_x_face): Make abort condition clearer.
2619
f5668d2a
CY
2620 * gtkutil.c (update_frame_tool_bar): Initialize variable.
2621
379c17e7
CY
26222008-11-30 Chong Yidong <cyd@stupidchicken.com>
2623
2624 * keyboard.c (timer_check): After a timer runs, ensure that the
2625 selected window's buffer is current.
2626
35f36d65
JB
26272008-11-30 Juanma Barranquero <lekktu@gmail.com>
2628
f952c61c
JB
2629 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
2630 It was accidentally restored by the Unicode merge.
2631
35f36d65
JB
2632 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
2633
b23077df
JB
26342008-11-29 Juanma Barranquero <lekktu@gmail.com>
2635
2636 * w32proc.c: Include "coding.h".
2637 (Fw32_short_file_name): Encode filename passed to Windows API.
2638 (Fw32_long_file_name): Encode filename passed to Windows API and
2639 decode back the result. (Bug#1433)
2640
b8ebe9dd
KH
26412008-11-29 Kenichi Handa <handa@m17n.org>
2642
8cc53f96
KH
2643 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
2644 not before accessing it.
2645
b8ebe9dd
KH
2646 * charset.c (Fdefine_charset_internal): After calculating
2647 min_char, max_char, and fastmap, copy the charset structure again.
2648 (encode_char): Fix the previous change.
2649
59bc82c0
SZ
26502008-11-28 Seiji Zenitani <zenitani@mac.com>
2651
2652 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
2653
2654 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
2655
2656 * nsterm.m (x_set_frame_alpha): New function.
2657
32247e3d
EZ
26582008-11-27 Eli Zaretskii <eliz@gnu.org>
2659
2660 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
2661
b003e5ff
JB
26622008-11-27 Juanma Barranquero <lekktu@gmail.com>
2663
2664 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
2665 pointer to check_face_name.
2666
708550f5
KH
26672008-11-27 Kenichi Handa <handa@m17n.org>
2668
2669 * category.h (SET_CATEGORY_SET): Call set_category_set.
2670 (set_category_set): Extern it.
2671
2672 * category.c (hash_get_category_set): New function.
2673 (Fmodify_category_entry): Adjusted for the change of
2674 char_table_ref_and_range. Call hash_get_category_set to get a
2675 category set to store in the table.
2676
2677 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
2678 Funify_charset.
2679
2ae37cf0 2680 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
2681 (DECODE_CHAR): Check if the decoder vector is ready.
2682 (ENCODE_CHAR): Check if the encoder char-table is ready.
2683 (maybe_unify_char): Extern it.
2684
2685 * charset.c (Vchar_unified_charset_table): Delete it.
2686 (inhibit_load_charset_map): New variable.
2687 (temp_charset_work): New variable.
2688 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
2689 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
2690 New macros.
2691 (load_charset_map): Meaning of control_flag changed. If
2692 inhibit_load_charset_map is nonzero, setup a table in
2693 temp_charset_work.
2694 (load_charset): New argument control_flag.
2695 (map_charset_for_dump): New function.
2696 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
2697 map_charset_for_dump.
2698 (Fdefine_charset_internal): If the charset method is MAP, load
2699 mapping tables by calling load_charset.
2700 (Funify_charset): Don't load a mapping table but directly set
2701 Vchar_unify_table.
2702 (maybe_unify_char): New function.
2703 (decode_char): Don't handle the deleted method MAP_DEFERRED.
2704 Handle the case of inhibit_load_charset_map being nonzero.
2705 (encode_char): Don't handle the deleted method MAP_DEFERRED.
2706 Handle the case of inhibit_load_charset_map being nonzero.
2707 (Fclear_charset_maps): Just free temp_charset_work.
2708 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
2709 variable.
2710
2711 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
2712 change of char_table_ref_and_range.
2713 (char_table_ref_and_range): Change the meaning of argument FROM
2714 and TO. Now the caller must provide initial values for *FROM
2715 and *TO.
2716
2717 * fontset.c (fontset_add): Adjusted for the change of
2718 char_table_ref_and_range.
2719 (fontset_get_font_group): Likewise.
2720 (Ffontset_info): Likewise.
2721
2722 * keymap.c (describe_vector): Adjusted for the change of
2723 char_table_ref_and_range. For char-table, put boundary between
2724 non-ASCII and 8-bit characters.
2725
2726 * print.c (print_object): For bool-vector, delete unnecessary
2727 check of ASCII_BYTE_P.
2728
9196133b
JR
27292008-11-26 Jason Rumney <jasonr@gnu.org>
2730
2731 * w32font.c (w32font_open_internal): Don't include external
9acef61c 2732 leading in font height. (Bug#879)
9196133b 2733
9f688acf
GM
27342008-11-26 Glenn Morris <rgm@gnu.org>
2735
2736 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
2737 redefinition with ifdef. (Bug#1383)
2738
90d19aff
AR
27392008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
2740
2741 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
2742
4ccfa1c0 27432008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
2744
2745 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
2746 New EmacsView methods.
2747 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
2748 Fixes bug #1048,1357,1414.
2749
27502008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
2751
2752 Fix bug #1362.
2753 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
2754 is not an indexed color.
2755 * nsterm.m (free_indexed_color): Add argument checking.
2756 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
2757
e7d5ecb3
CY
27582008-11-24 Chong Yidong <cyd@stupidchicken.com>
2759
2760 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
2761 Document confirm-after-completion value for
2762 minibuffer-completion-confirm.
2763
c285743c
JR
27642008-11-24 Jason Rumney <jasonr@gnu.org>
2765
2766 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
2767 warning.
2768
b0857706
JR
27692008-11-23 Jason Rumney <jasonr@gnu.org>
2770
2771 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
2772 restored before returning.
2773
2774 * w32font.c (check_face_name): New function.
2775 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 2776 fonts. (Bug#642)
b0857706 2777
ee50ff07
MR
27782008-11-22 Martin Rudalics <rudalics@gmx.at>
2779
2780 * buffer.c (Fswitch_to_buffer): Reword and mention new option
2781 confirm-nonexistent-file-or-buffer in doc-string.
2782
b8ff72fa
SM
27832008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
2784
2785 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
2786 Fix copy/paste typo. Add checks.
2787
cee53ed4
KH
27882008-11-21 Kenichi Handa <handa@m17n.org>
2789
2790 * coding.c (detect_coding_iso_2022): Reject invalid composition
2791 sequence.
2792 (DECODE_COMPOSITION_START): If the current source is the last
2793 block, and the current composition doesn't end, regard this
2794 sequence as invalid.
2795 (decode_coding_iso_2022): Handle invalid composition sequence.
2796
f6ef1e65
MR
27972008-11-20 Martin Rudalics <rudalics@gmx.at>
2798
2799 * window.c (coordinates_in_window): Don't return
2800 ON_VERTICAL_BORDER for the rightmost position of a mode/header
2801 line when the window is not the rightmost one. (Bug#1372)
2802
e08b1705
MR
28032008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
2804
2805 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
2806
ad98e89f
EZ
28072008-11-15 Eli Zaretskii <eliz@gnu.org>
2808
2809 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
2810 and bright_bg if noninteractive is non-zero.
2811
fb098a4b
CY
28122008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2813
2814 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
2815 x_draw_glyph_string_background.
2816
2817 * w32term.c (x_draw_glyph_string): Likewise.
2818
ce952b6e
CY
28192008-11-15 Chong Yidong <cyd@stupidchicken.com>
2820
2821 * xterm.c (x_draw_glyph_string): Stop drawing the background of
2822 the next glyph string once past the overhang width.
2823
2824 * nsterm.m (ns_draw_glyph_string): Likewise.
2825
2826 * w32term.c (x_draw_glyph_string): Likewise.
2827
26ea7079
CY
28282008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
2829
2830 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
2831 double file close.
2832
1c33c906
MR
28332008-11-14 Martin Rudalics <rudalics@gmx.at>
2834
2835 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
2836 dedicated status of window before attempting to display another
2837 buffer in it.
2838
8fc29035
JB
28392008-11-14 Juanma Barranquero <lekktu@gmail.com>
2840
2841 * msdos.c (Fmsdos_long_file_names):
2842 (syms_of_msdos) <dos-unsupported-char-glyph>:
2843 * dosfns.c (Fint86): Fix typos in docstrings.
2844
55fb4286
EZ
28452008-11-14 Eli Zaretskii <eliz@gnu.org>
2846
2847 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
2848
3fda0315
KY
28492008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
2850
2851 * puresize.h (BASE_PURESIZE): Increase to 1260000.
2852
7e849c17
CY
28532008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
2854
2855 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
2856
2857 * frame.h: Negative alpha means "don't touch".
2858
2859 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
2860
2861 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
2862
b9fd67bd
DN
28632008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
2864
2865 * hftctl.c:
2866 * chpdef.h:
2867 * acldef.h: Remove files used only for systems no longer supported.
2868
2869 * Makefile.in: Fix .o alphabetical ordering.
2870 (hftctl.o): Remove dependency, file removed.
2871 (keymap.o, print.o): Depend on charset.h.
2872
d5998e03
KH
28732008-11-10 Kenichi Handa <handa@m17n.org>
2874
2ae37cf0 2875 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 2876
be70e183
CY
28772008-11-08 Chong Yidong <cyd@stupidchicken.com>
2878
2879 * dired.c (file_name_completion): If completion_ignore_case is
2880 enabled, ignore case when checking completion-regexp-list.
2881
7cf94eac
EZ
28822008-11-08 Eli Zaretskii <eliz@gnu.org>
2883
2884 * vm-limit.c (get_lim_data): Fix last change.
2885
ee107a89
KH
28862008-11-08 Kenichi Handa <handa@m17n.org>
2887
2888 * character.c (Fget_byte): New function.
2889 (syms_of_character): Defsubr Fget_byte.
2890
5fd15622
CY
28912008-11-07 Chong Yidong <cyd@stupidchicken.com>
2892
2893 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
2894 cursor position is valid after scrolling.
2895
13d62fad
JB
28962008-11-06 Juanma Barranquero <lekktu@gmail.com>
2897
2898 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
2899
a1dd2936
GM
29002008-11-06 Glenn Morris <rgm@gnu.org>
2901
2902 * xterm.c (handle_one_xevent): Don't let popup menus cause
2903 mouse-autoselect-window related window switching. (Bug#1261)
2904
860cd236
CY
29052008-11-04 David Smith <davidsmith@acm.org> (tiny change)
2906
2907 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
2908
653a3150
AS
29092008-11-04 Andreas Schwab <schwab@suse.de>
2910
2911 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
2912
870f5cac
CY
29132008-11-03 Chong Yidong <cyd@stupidchicken.com>
2914
2915 * xfns.c (Fx_wm_set_size_hint): New function.
2916
1e02f3cb
MR
29172008-11-03 Martin Rudalics <rudalics@gmx.at>
2918
2919 * textprop.c (Fprevious_single_char_property_change): Return 0
2920 when there's no change in a string. (Bug#1301)
2921
e630dfc6
MR
29222008-11-02 Martin Rudalics <rudalics@gmx.at>
2923
2924 * frame.c (do_switch_frame): New argument NORECORD passed to
2925 Fselect_window.
2926 (Fselect_frame): New argument NORECORD passed to
2927 do_switch_frame.
2928 (Fset_frame_selected_window): New argument NORECORD passed to
2929 Fselect_frame.
2930 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
2931 in call of do_switch_frame.
2932 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
2933 Handle NORECORD argument in call of Fselect_frame.
2934 * lisp.h (do_switch_frame, Fselect_frame)
2935 (Fset_frame_selected_window): Adjust declarations.
2936 * window.c (select_frame_norecord): New function.
2937 (run_window_configuration_change_hook): Use it and call
2938 Fselect_frame with NORECORD set.
2939 (Fselect_window): Pass NORECORD to Fselect_frame.
2940 (Fset_window_configuration): Handle NORECORD argument in call of
2941 do_switch_frame.
2942 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
2943 Fset_frame_selected_window.
2944 * keyboard.c (command_loop_1): Handle NORECORD in call of
2945 Fselect_frame (currently ifdefd).
2946
9020b223
GM
29472008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
2948
2949 * emacs.c (USAGE2): Untabify.
2950
793ffee8
SM
29512008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
2952
2953 * composite.c (fill_gstring_header): Fix copy/paste typo.
2954
ab6d1131
MR
29552008-10-31 Martin Rudalics <rudalics@gmx.at>
2956
2957 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
2958 (Fother_window): Rename argument and rewrite doc-string.
2959 (select_window_norecord): Fix return value. (Bug#1276)
2960
601a9cf1
JB
29612008-10-30 Juanma Barranquero <lekktu@gmail.com>
2962
2963 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
2964 new frames overriding foreground for tooltips. Based on similar patch
2965 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
2966
813b0652
CY
29672008-10-29 Chong Yidong <cyd@stupidchicken.com>
2968
2969 * emacs.c (Fdaemon_initialized): Initialize nfd.
2970
4414f58f
MR
29712008-10-29 Martin Rudalics <rudalics@gmx.at>
2972
2973 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
2974 (Fwindow_text_height): Clarify doc-strings.
2975 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
2976 doc-string of window-scroll-functions.
2977
ecdcaa09
RS
29782008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
2979
2980 * category.c (syms_of_category): Fix typo in docstring.
2981
23fe745a
JB
29822008-10-28 Juanma Barranquero <lekktu@gmail.com>
2983
2984 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
2985 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
2986 Fix typos in docstrings.
2987
ff808935
DN
29882008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
2989
2990 * emacs.c (daemon_pipe): Make non-static.
2991 (IS_DAEMON): Move definition ...
2992 * lisp.h (IS_DAEMON): ... here.
2993 (daemon_pipe): Declare.
2994 (is_daemon): Remove.
2995 * dispnew.c (init_display): Use IS_DAEMON.
2996
fc012771
SM
29972008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
2998
2999 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
3000 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
3001
3002 * emacs.c (is_daemon): Remove.
3003 (main): Don't set is_daemon.
3004 (IS_DAEMON): New macro.
3005 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 3006 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
3007 parent exits.
3008 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
3009
d8bdbe6f
CY
30102008-10-27 Chong Yidong <cyd@stupidchicken.com>
3011
d1a072bf
CY
3012 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
3013 over-sized glyph, draw it with the default glyph width.
3014
e2e325aa
CY
3015 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
3016 glyph, draw it with the default glyph width.
3017
3018 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
3019 glyph, draw it with the default glyph width.
3020
d8bdbe6f
CY
3021 * xdisp.c (try_scrolling): When computing the distance from the
3022 scroll margin to PT, try moving some distance past the window
3023 bottom before giving up.
3024
7bfac547
MR
30252008-10-27 Martin Rudalics <rudalics@gmx.at>
3026
3027 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
3028 (Fset_window_buffer): Explain in doc-string that a window can be
3029 "strongly" dedicated to its buffer.
3030
4ff029f6
DN
30312008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
3032
3033 * emacs.c (daemon_name): New variable.
3034 (main): Deal with --daemon=SERVER_NAME.
3035 (Fdaemonp): Return a name if one was passed to --daemon.
3036
5790ef40
DN
30372008-10-26 Romain Francoise <romain@orebokech.com>
3038
f9bd0df9 3039 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
3040 (main): Create a pipe before forking, make the parent exit only after
3041 the child has closed its end of the pipe. Move closing the
3042 descriptors ...
3043 (Fdaemon_initialized): ... here. New function.
3044
f5385255
SM
30452008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
3046
4d632321
SM
3047 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
3048 the previous unoptimized table.
3049
f5385255
SM
3050 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
3051 the distinction between non-nil and non-t value of `dedicated'.
3052
6c56a0f3
CY
30532008-10-25 Chong Yidong <cyd@stupidchicken.com>
3054
3055 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 3056 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 3057
fec89261
MR
30582008-10-25 Martin Rudalics <rudalics@gmx.at>
3059
3060 * window.c (Fget_buffer_window, Fdelete_windows_on)
3061 (Freplace_buffer_in_windows): Make buffer argument optional and
3062 rename to buffer_or_name.
3063
34fcddd0
CY
30642008-10-24 Chong Yidong <cyd@stupidchicken.com>
3065
f5385255
SM
3066 * xdisp.c (handle_single_display_spec, handle_display_prop):
3067 Undo 2005-05-16 change.
34fcddd0
CY
3068 (handle_stop): Pop iterator if it's loaded with an empty string.
3069 (get_overlay_strings_1): Don't save iterator if it's loaded with
3070 an empty string (bug#1201).
3071
064766f2
KH
30722008-10-24 Kenichi Handa <handa@m17n.org>
3073
3074 * ftfont.c (ftfont_otf_features): Fix previous change.
3075 (ftfont_otf_capability): Check FeatureList.FeatureCount before
3076 calling ftfont_otf_features.
3077
f9bd0df9 30782008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
3079
3080 * font.c (font_match_p): Fix for the case that a vector of
3081 characters is in script-representative-chars.
3082
1dae9197
MA
30832008-10-24 Michael Albinus <michael.albinus@gmx.de>
3084
3085 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 3086 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
3087 (xd_read_queued_messages): Catch Qdbus_error from the macros.
3088 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
3089 macro. (Bug#1186).
3090
f9bd0df9 30912008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
3092
3093 * s/sol2-10.h: New file.
3094
878a4584
JB
30952008-10-23 Juanma Barranquero <lekktu@gmail.com>
3096
3097 * xdisp.c (fill_glyph_string): Fix typo in source (though the
3098 poor beast has survived 9+ years and the jump from xterm.c!).
3099
cd265ca6
MR
31002008-10-23 Martin Rudalics <rudalics@gmx.at>
3101
3102 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
3103 Reword doc-string.
f5385255 3104 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 3105
472a4dc9
JB
31062008-10-23 Juanma Barranquero <lekktu@gmail.com>
3107
3108 * character.c (syms_of_character) <script-representative-chars>:
3109 <unicode-category-table>: Doc fixes.
3110
159bd5a2
NF
31112008-10-23 Noah Friedman <friedman@splode.com>
3112
3113 * coding.c (make_conversion_work_buffer): Check that
3114 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
3115 Fget_buffer_create.
3116
49f9c344
KH
31172008-10-23 Kenichi Handa <handa@m17n.org>
3118
3119 * font.c (font_add_log): Check the values of extra properties.
3120
12bb3111
MR
31212008-10-22 Martin Rudalics <rudalics@gmx.at>
3122
3123 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
3124 Reword doc-string.
3125 (Fset_window_parameter): Use NILP.
3126 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 3127 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 3128
bbeb4e99
JB
31292008-10-22 Juanma Barranquero <lekktu@gmail.com>
3130
3131 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
3132
31332008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
3134
3135 * nsfns.m (ns_appkit_version): New function.
3136 (x-server-version): Use it.
3137 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
3138 (x-server-vendor): Don't check_ns().
3139
3140 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
3141
a9b555d3
JB
31422008-10-22 Juanma Barranquero <lekktu@gmail.com>
3143
3144 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
3145 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
3146
4626499f
KH
31472008-10-22 Kenichi Handa <handa@m17n.org>
3148
e3681952
KH
3149 * syntax.c (scan_words): Call word_boundary_p instead of comparing
3150 scripts.
3151
4626499f
KH
3152 * category.c (word_boundary_p): Check scripts instead of charset.
3153 Handle nil value in word-separating-categories and
3154 word-combining-categories.
3155 (syms_of_category): Fix docstrings of word-separating-categories
3156 and word-combining-categories.
3157
1560f91a
EZ
31582008-10-21 Eli Zaretskii <eliz@gnu.org>
3159
3160 * coding.c (Fencode_coding_region, Fdecode_coding_region)
3161 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
3162
f4668441
MR
31632008-10-21 Martin Rudalics <rudalics@gmx.at>
3164
3165 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
3166 Rename arg "buffer" to "buffer_or_name".
3167 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
3168 it optional.
3169 (no_switch_window): Remove since the return value is not used.
a9b555d3 3170 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
3171 Consider window as dedicated when Fwindow_dedicated_p returns a
3172 non-nil value.
3173 * lisp.h: Remove prototype for no_switch_window.
3174
fd75ddb2
JD
31752008-10-21 Jan Djärv <jan.h.d@swipnet.se>
3176
3177 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 3178 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 3179
07295713
KH
31802008-10-21 Kenichi Handa <handa@m17n.org>
3181
3182 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
3183 check Vlatin_extra_code_table.
3184
712adc82
EZ
31852008-10-20 Eli Zaretskii <eliz@gnu.org>
3186
3187 * fileio.c (Fset_file_modes): Doc fix.
3188
f549eb0b
MA
31892008-10-19 Michael Albinus <michael.albinus@gmx.de>
3190
3191 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
3192 in arrays.
3193
aac0c6e3
MR
31942008-10-19 Martin Rudalics <rudalics@gmx.at>
3195
3196 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
3197 Mention kill-buffer in doc-string.
3198 (Fset_window_buffer): Reinsert tem check removed in last commit.
3199 (Fenlarge_window, Fshrink_window): Have argument names and
3200 doc-string follow Elisp manual more closely.
3201
32022008-10-18 Eli Zaretskii <eliz@gnu.org>
3203
3204 * fileio.c (Fset_file_modes): Doc fix.
3205
32062008-10-18 Martin Rudalics <rudalics@gmx.at>
3207
3208 * window.c (Fwindow_width, Fset_window_start)
3209 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
3210 (Fdelete_windows_on, Freplace_buffer_in_windows):
3211 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
3212 (Fwindow_dedicated_p): Make window argument optional.
3213 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
3214 (Fset_window_buffer): Respect any non-nil dedicated value for
3215 window. Rename "buffer" argument to "buffer_or_name".
3216
32172008-10-18 Ulrich Mueller <ulm@gentoo.org>
3218
3219 * m/sh3.h: New file, machine description for SuperH.
3220
32212008-10-17 Martin Rudalics <rudalics@gmx.at>
3222
3223 * window.c (Fsplit_window): Rename arg horflag to horizontal.
3224
32252008-10-17 Kenichi Handa <handa@m17n.org>
3226
3227 * ftfont.c (ftfont_otf_features): Fix indexing
3228 gsub_gpos->FeatureList.Feature. Check the validity of indices.
3229
32302008-10-16 Magnus Henoch <mange@freemail.hu>
3231
3232 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
3233 (Fdbus_call_method_asynchronously): Ditto.
3234 This change makes C-h f display the argument list.
3235
32362008-10-16 Chong Yidong <cyd@stupidchicken.com>
3237
3238 * fileio.c (Fexpand_file_name): Doc fix.
3239
3240 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
3241 of :foreground and :background equivalent to unspecified (20.x
3242 compatibility).
3243
32442008-10-15 Eli Zaretskii <eliz@gnu.org>
3245
3246 * buffer.c (syms_of_buffer): Doc fix.
3247
32482008-10-14 Kenichi Handa <handa@m17n.org>
3249
3250 * font.c (font_clear_prop): When clearing font width, clear the
3251 average width field too.
3252
32532008-10-12 Andreas Schwab <schwab@suse.de>
3254
3255 * ftfont.c (ftfont_shape_by_flt): Make static.
3256 * ftfont.h (ftfont_shape_by_flt): Don't declare.
3257
3258 * font.c: Don't include <m17n-flt.h>.
3259
32602008-10-10 Eli Zaretskii <eliz@gnu.org>
3261
3262 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
3263
32642008-10-09 Eli Zaretskii <eliz@gnu.org>
3265
3266 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
3267 away code.
3268
32692008-10-09 Chong Yidong <cyd@stupidchicken.com>
3270
3271 * dispnew.c (update_text_area): Avoid looping due to large glyph
3272 overhangs (bug#1070).
3273
32742008-10-09 Kenichi Handa <handa@m17n.org>
3275
3276 * fontset.c (face_for_char): If face->fontset is negative, just
3277 return ascii_face.
3278
f5385255
SM
3279 * font.c (font_delete_unmatched): Fix previous change.
3280 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
3281
32822008-10-09 Martin Rudalics <rudalics@gmx.at>
3283
3284 * frame.c (Fraise_frame): On text-only terminals select frame in
3285 order to make it visible. (Bug#1061)
3286
32872008-10-08 Chong Yidong <cyd@stupidchicken.com>
3288
3289 * fontset.c (fontset_find_font): Check frame validity.
3290
32912008-10-07 Chong Yidong <cyd@stupidchicken.com>
3292
a9b555d3 3293 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
3294 (xg_display_close): Allow Emacs to close all displays (bug#985).
3295
32962008-10-06 Andreas Schwab <schwab@suse.de>
3297
f5385255 3298 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
3299
33002008-10-06 Chong Yidong <cyd@stupidchicken.com>
3301
f5385255 3302 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 3303
a9b555d3 3304 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
3305
3306 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
3307 during initialization.
3308
33092008-10-04 Eli Zaretskii <eliz@gnu.org>
3310
3311 * xdisp.c (redisplay_internal): If frame switched, redisplay the
3312 whole thing on MSDOS frames as well as on a TTY.
3313
3314 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
3315 well as for TTY.
3316 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
3317 well as on a TTY.
3318
3319 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
3320 as well as for TTY.
3321
3322 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
3323
3324 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
3325 MSDOS frames as well.
3326
33272008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
3328
3329 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
3330 correct arguments.
b71ac3dd 3331 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
3332
33332008-10-03 Glenn Morris <rgm@gnu.org>
3334
3335 * emacs.c (USAGE1): Add --daemon.
3336
33372008-10-02 Eli Zaretskii <eliz@gnu.org>
3338
3339 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
3340 100, so it's in percents as advertised.
3341
33422008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
3343
3344 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
3345 (ns_output.current_cursor, ns_output.desired_cursor)
3346 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
3347 (FRAME_NEW_CURSOR_COLOR): Remove.
3348
3349 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 3350 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
3351 enumeration (HOLLOW_BOX_CURSOR, etc.).
3352
3353 * nsterm.m (ns_frame_rehighlight): Remove commented code.
3354 (draw_window_cursor): Simplify code.
f5385255
SM
3355 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
3356 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 3357 updates manually.
a9b555d3
JB
3358 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
3359 Use core Emacs cursor types.
aac0c6e3 3360
b8ff72fa 3361 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
3362
33632008-10-02 Martin Rudalics <rudalics@gmx.at>
3364
3365 * process.c (Faccept_process_output): Fix doc-string.
3366
33672008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
3368
3369 * gmalloc.c (__sbrk): Also define for uClibc.
3370
3371 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
3372 for uClibc.
3373
33742008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
3375
3376 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
3377 styles.
3378 (nsfont_open): Reenable the cache.
3379
33802008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
3381
3382 * font.c (font_matching_entity): Reflect ATTRS in font selection.
3383 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
3384
33852008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
3386
3387 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
3388 a suspended terminal.
3389
33902008-09-30 Michael Albinus <michael.albinus@gmx.de>
3391
3392 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
3393
33942008-09-30 Eli Zaretskii <eliz@gnu.org>
3395
3396 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
3397
33982008-09-30 Chong Yidong <cyd@stupidchicken.com>
3399
3400 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
3401 in a continued line coincides with a line beginning.
3402
34032008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
3404
3405 * nsfont.m (nsfont_trait_distance): Fix bug.
3406 (nsfont_list): Return a list rather than a vector (syncs with Handa
3407 changes of 2008-05-14).
3408 (nsfont_open): Improve logging.
3409
34102008-09-29 Andreas Schwab <schwab@suse.de>
3411
3412 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
3413
34142008-09-28 Martin Rudalics <rudalics@gmx.at>
3415
3416 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
3417 name as char-resolve-modifiers.
3418 Reported by: Markus Triska <markus.triska@gmx.at>
3419
34202008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
3421
3422 * dispnew.c (init_display): Return earlier when running as a daemon.
3423
34242008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
3425
3426 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
3427
34282008-09-27 Eli Zaretskii <eliz@gnu.org>
3429
3430 * composite.c (Fcomposition_get_gstring)
3431 (Fcompose_region_internal, Fcompose_string_internal)
3432 (Ffind_composition_internal): Doc fix.
3433 (syms_of_composite) <compose-chars-after-function>: Doc fix.
3434 (syms_of_composite) <auto-composition-function>: Doc fix.
3435 (syms_of_composite) <composition-function-table>: Doc fix.
3436
34372008-09-25 Chong Yidong <cyd@stupidchicken.com>
3438
3439 * search.c (wordify): New argument for lax word-ends.
3440 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
3441
34422008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
3443
3444 * lisp.h (is_daemon): Declare.
3445 * dispnew.c (init_display): Do not try to initialize the terminal
3446 when running as a daemon.
3447
34482008-09-22 Chong Yidong <cyd@stupidchicken.com>
3449
3450 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
3451 x_display_pixel_height.
3452
34532008-09-22 Martin Rudalics <rudalics@gmx.at>
3454
3455 * undo.c (record_point): Don't call Fundo_boundary for first
3456 change. (Bug#731)
3457
34582008-09-22 Juanma Barranquero <lekktu@gmail.com>
3459
3460 * emacs.c (Fdaemonp): Doc fix.
3461
34622008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
3463
3464 * emacs.c (main): Place #ifdef in the proper place.
3465
34662008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
3467
3468 * emacs.c (standard_args): Add --daemon.
3469 (main): Disconnect from the terminal when --daemon is passed.
3470 (is_daemon): New variable.
3471 (Fdaemonp): New function.
3472 (syms_of_emacs): Defsubr it.
3473
34742008-09-20 Chong Yidong <cyd@stupidchicken.com>
3475
3476 * xdisp.c (get_next_display_element): Handle string display
3477 correctly when checking for the end of a box run.
3478
34792008-09-20 Glenn Morris <rgm@gnu.org>
3480
3481 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
3482 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
3483 (Frename_file): Avoid copying to trash if a rename involves
3484 a delete. (Bug#964).
3485
34862008-09-20 Eli Zaretskii <eliz@gnu.org>
3487
3488 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
3489 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
3490 frames as well as termcap frames.
3491 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
3492 get_named_tty.
3493
34942008-09-19 Eli Zaretskii <eliz@gnu.org>
3495
3496 * process.c (procfs_system_process_attributes): Fix cmdline in
3497 case /proc/PID/cmdline is empty.
3498
3499 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
3500 x_display_pixel_height.
3501
35022008-09-19 Juanma Barranquero <lekktu@gmail.com>
3503
3504 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
3505
3506 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
3507 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
3508
35092008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
3510
3511 * dispextern.h (struct it): Move line_wrap away from the middle of
3512 bitfields. Move voffset in struct iterator_stack_entry after the
3513 bitfields. Move tab_width near after another short.
3514
35152008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
3516
3517 * frame.h (struct frame): Move alpha from the middle of bitfields.
3518
3519 * window.h (struct window): Move frozen_window_start_p after the
3520 rest of the bitfields to reduce padding.
3521
35222008-09-18 Chong Yidong <cyd@stupidchicken.com>
3523
3524 * xterm.h (x_display_info): Remove `height' and `width' members.
3525
3526 * nsterm.h (ns_display_info): Remove `height' and `width' members.
3527
3528 * w32term.h (w32_display_info): Remove `height', `width',
3529 `height_in', and `width_in' members.
3530
b8ff72fa
SM
3531 * xterm.c (x_display_pixel_height, x_display_pixel_width):
3532 New functions.
aac0c6e3
MR
3533 (x_calc_absolute_position): Use them.
3534 (x_term_init): Omit removed `height' and `width' members.
3535
b8ff72fa
SM
3536 * w32term.c (x_display_pixel_height, x_display_pixel_width):
3537 New functions.
aac0c6e3
MR
3538 (w32_read_socket, x_calc_absolute_position): Use them.
3539 (w32_initialize_display_info, w32_term_init): Omit removed members
3540 of w32_display_info.
3541
b8ff72fa
SM
3542 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
3543 New functions.
3544 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 3545
b8ff72fa
SM
3546 * xterm.c (x_display_pixel_height, x_display_pixel_width):
3547 New functions.
aac0c6e3
MR
3548 (x_calc_absolute_position): Use them.
3549 (x_term_init): Omit removed `height' and `width' members.
3550
3551 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
3552 (compute_tip_xy):
3553 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
3554 * xmenu.c (menu_position_func): Use x_display_pixel_height and
3555 x_display_pixel_width.
3556
35572008-09-18 Kenichi Handa <handa@m17n.org>
3558
3559 * composite.c (fill_gstring_header): Don't check FROM and TO here.
3560 (composition_compute_stop_pos): Fix handling of static composition.
3561 (Fcomposition_get_gstring): Check FROM and TO at first.
3562
35632008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
3564
46e722a9 3565 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
3566 mixup (YAILOM).
3567
35682008-09-17 Chong Yidong <cyd@stupidchicken.com>
3569
3570 * indent.c (Fvertical_motion): Use position reported by iterator
3571 instead of PT for determining screen motion (bug#943).
3572
35732008-09-17 Romain Francoise <romain@orebokech.com>
3574
3575 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
3576
35772008-09-17 Kenichi Handa <handa@m17n.org>
3578
3579 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
3580
3581 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
3582 if necessary.
3583
35842008-09-16 Kenichi Handa <handa@m17n.org>
3585
3586 * coding.c (make_conversion_work_buffer): Avoid calling
3587 Fget_buffer_create if it is not necessary.
3588
35892008-09-15 Martin Rudalics <rudalics@gmx.at>
3590
3591 * window.c (Fselect_window): Don't update window_select_count and
3592 use_time when norecord is not nil.
3593
35942008-09-14 Kenichi Handa <handa@m17n.org>
3595
3596 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
3597 specpdl_ptr.
3598
35992008-09-12 Kenichi Handa <handa@m17n.org>
3600
3601 * indent.c (scan_for_column): Don't handle automatic composition
3602 if the current buffer is not associated with a window.
3603
3604 * composite.c (composition_reseat_it): If the current buffer is
3605 not associated with a window, ignore the automatic composition.
3606 (find_automatic_composition): Likewise.
3607
36082008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
3609
3610 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
3611 (Fgpm_mouse_stop): Use it.
3612 * termhooks.h (close_gpm): Declare.
3613 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
3614 connection if Gpm_GetEvent fails.
3615
3616 * window.c (set_window_buffer): Always preserve current-buffer.
3617
36182008-09-12 Glenn Morris <rgm@gnu.org>
3619
3620 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
3621
36222008-09-11 Glenn Morris <rgm@gnu.org>
3623
3624 * charset.c (charset-map-path): Doc fix.
3625
36262008-09-10 Kenichi Handa <handa@m17n.org>
3627
3628 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
3629
3630 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
3631 compose a grapheme cluster with the preceding base glyph.
3632
3633 * composite.c (composition_compute_stop_pos): Fix previous change.
3634 Reset cmp_it->id to -1 at first.
3635
36362008-09-10 Glenn Morris <rgm@gnu.org>
3637
3638 * Makefile.in (character.o, chartab.o): Fix config.h typo.
3639
36402008-09-09 Chong Yidong <cyd@stupidchicken.com>
3641
3642 * keyboard.c (read_key_sequence): Reapply translation maps when
3643 switching keyboards.
3644
36452008-09-09 Kenichi Handa <handa@m17n.org>
3646
3647 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
3648 characters.
3649
3650 * composite.c (FORWARD_CHAR): Fix calculation
3651 of (POSITION).pos_byte.
3652 (composition_compute_stop_pos): Limit the search of composition to
3653 at most 500 characters ahead. If we reach the limit or find a
3654 newline, set cmp_it->ch to -2 and return 0.
3655 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
3656
36572008-09-08 Kenichi Handa <handa@m17n.org>
3658
3659 * indent.c (Fvertical_motion): Be sure to set
3660 it_overshoot_expected if it.cmp_it.id is non-negative.
3661
36622008-09-07 Andreas Schwab <schwab@suse.de>
3663
3664 * callproc.c (Fcall_process): Don't hold references to string data
3665 across garbage collection. Move initialisation of new_argv down
3666 to avoid compiler bug.
3667
36682008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
3669
3670 * process.c (Fsystem_process_attributes): Doc fix.
3671
36722008-09-07 Chong Yidong <cyd@stupidchicken.com>
3673
3674 * callproc.c (Fcall_process): Canonicalize current directory name.
3675
3676 * xdisp.c (move_it_to): When moving by vpos, ensure that the
3677 iterator advances to the next line if the current line ends in a
3678 continued tab.
3679
36802008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
3681
3682 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
3683 member to point to cmp_from.
3684
3685 * xdisp.c: Doc fix for references to gidx data member.
3686
36872008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
3688
3689 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
3690
36912008-09-07 Kenichi Handa <handa@m17n.org>
3692
3693 * composite.c (FORWARD_CHAR): Check STOP after
3694 incrementing (POSITION).pos.
3695
36962008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
3697
3698 * process.c (Fsystem_process_attributes): Doc fix.
3699
37002008-09-06 Chong Yidong <cyd@stupidchicken.com>
3701
3702 * keyboard.c (Ftop_level): Doc fix.
3703
37042008-09-06 Eli Zaretskii <eliz@gnu.org>
3705
3706 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
3707 minibuffer, don't let lower part of menu invade the echo area.
3708
3709 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
3710 "char *q" to access menu text and advance through it. Revert the
3711 change that displayed ">" instead of ASCII character 0x10.
3712
37132008-09-05 Eli Zaretskii <eliz@gnu.org>
3714
3715 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
3716 toggle boxes and radio buttons on MS-DOS as well.
3717
37182008-09-05 Kenichi Handa <handa@m17n.org>
3719
3720 * composite.c (autocmp_chars): Check lookback count.
3721 (composition_compute_stop_pos): Set cmp_it->lookback.
3722 (composition_reseat_it): Check lookback count.
3723 (struct position_record): New struct.
3724 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
3725 (find_automatic_composition): New function.
3726 (composition_adjust_point): Use find_automatic_composition.
3727
3728 * dispextern.h (struct composition_it): New member lookback.
3729
37302008-09-02 Chong Yidong <cyd@stupidchicken.com>
3731
3732 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
3733 if moving by a single line.
3734
37352008-09-02 Andreas Schwab <schwab@suse.de>
3736
3737 * xterm.c (x_delete_display): Fix merge error.
3738
3739 * fileio.c (Fexpand_file_name): Remove unused variables.
3740
37412008-09-02 Eli Zaretskii <eliz@gnu.org>
3742
3743 * fileio.c (Fexpand_file_name): Copy argument `name' into local
3744 storage on all platforms, not just on DOS_NT.
3745
37462008-09-02 Jason Rumney <jasonr@gnu.org>
3747
b8ff72fa
SM
3748 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
3749 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
3750
37512008-09-01 Chong Yidong <cyd@stupidchicken.com>
3752
3753 * xfaces.c (Finternal_set_alternative_font_family_alist)
3754 (Finternal_set_alternative_font_registry_alist): Properly copy
3755 entire alist structure.
3756
37572008-09-01 Kenichi Handa <handa@m17n.org>
3758
d66c0241 3759 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 3760 representative chars of the script is a vector.
d66c0241
JB
3761 (ftfont_list): Handle the case where the representative chars of
3762 the script is a vector.
aac0c6e3
MR
3763
3764 * character.c (syms_of_character): Docstring of
3765 script-representative-chars fixed.
3766
37672008-08-31 Eli Zaretskii <eliz@gnu.org>
3768
3769 * msdos.c (BUILD_CHAR_GLYPH): New macro.
3770 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
3771 the menu. Allocate larger buffer for `text', to account for
3772 possible ^C characters.
3773
37742008-08-31 Martin Rudalics <rudalics@gmx.at>
3775
3776 * xdisp.c (prepare_menu_bars): Don't call
3777 Vwindow_size_change_functions with arg Qt.
3778
37792008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
3780
3781 * font.h (font_range):
3782 * fileio.c (report_file_error):
46e722a9
SM
3783 * composite.c (composition_update_it): Yet another int/Lisp_Object
3784 mixup (YAILOM).
aac0c6e3
MR
3785
37862008-08-30 Glenn Morris <rgm@gnu.org>
3787
3788 * data.c (Fmake_variable_frame_local): Doc fix.
3789
3790 * frame.c (Fmodify_frame_parameters): Doc fix.
3791
37922008-08-30 Eli Zaretskii <eliz@gnu.org>
3793
3794 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
3795 needed by GetTokenInformation.
3796 (w32_system_process_attributes): Check return values of all system
3797 APIs.
3798
3799 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
3800 only when the state changes.
3801 (IT_update_begin, IT_update_end): Add termscript trace.
3802
3803 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
3804 clipboard is unavailable. Set dst to NULL if it doesn't point to
3805 malloc'ed data.
3806 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
3807 passing random values to xfree.
3808
3809 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 3810 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
3811
38122008-08-29 Jason Rumney <jasonr@gnu.org>
3813
3814 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
3815
38162008-08-29 Eli Zaretskii <eliz@gnu.org>
3817
3818 * composite.c (fill_gstring_body): Avoid compiler warnings.
3819
3820 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
3821 LGLYPH_SET_CODE to avoid compiler warnings.
3822
2ae37cf0 3823 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
3824
3825 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
3826
3827 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
3828 LGLYPH_SET_CODE.
3829
38302008-08-29 Kenichi Handa <handa@m17n.org>
3831
3832 * fileio.c (report_file_error): Don't downcase the first character
3833 of errstring if it is still unibyte.
3834
38352008-08-29 Kenichi Handa <handa@m17n.org>
3836
3837 These changes are to re-implement the automatic composition so
3838 that it doesn't use text properties.
3839
3840 * Makefile.in (ftfont.o): Depend on composite.h.
3841 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
3842
3843 * character.h (Vunicode_category_table): Extern it.
3844
3845 * character.c (Vunicode_category_table): New variable.
3846 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
3847
3848 * chartab.c (optimize_sub_char_table): Perform more greedy
3849 optimization.
3850
b8ff72fa
SM
3851 * composite.h (enum composition_method):
3852 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
3853 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
3854 (Vcomposition_function_table): Extern it.
3855 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
3856 (composition_gstring_put_cache, composition_gstring_from_id)
3857 (composition_gstring_p, composition_gstring_width)
3858 (composition_compute_stop_pos, composition_reseat_it)
3859 (composition_update_it, composition_adjust_point): Extern them.
3860 (Fcomposition_get_gstring): EXFUN it.
3861
d66c0241 3862 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
3863 (Vcomposition_function_table)
3864 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
3865 (gstring_hash_table, gstring_work, gstring_work_headers):
3866 New variables.
aac0c6e3
MR
3867 (gstring_lookup_cache, composition_gstring_put_cache)
3868 (composition_gstring_from_id, composition_gstring_p)
3869 (composition_gstring_width, fill_gstring_header)
3870 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
3871 (composition_reseat_it, composition_update_it)
b8ff72fa 3872 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
3873 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
3874 and gstring_work_headers. DEFVAR_LISP composition-function-table.
3875 Defsubr compostion_get_gstring.
3876
3877 * dispextern.h (struct glyph): New union u.cmp. Delete the member
3878 cmp_id.
3879 (struct glyph_string): Delete the member gidx. New members
3880 cmp_id, cmp_from, and cmp_to.
3881 (enum it_method): Delete GET_FROM_COMPOSITION.
3882 (struct composition_it): New struct.
3883 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
3884 Delete c, len, cmp_id, cmp_len in u.comp.
3885
3886 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 3887 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 3888 (enum lglyph_indices): Likewise.
b8ff72fa 3889 (font_range): Adjust extern.
aac0c6e3
MR
3890 (font_fill_lglyph_metrics): Extern it.
3891
3892 * font.c (QCf): New variable.
3893 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
3894 (font_prepare_composition): Delete this function.
3895 (font_range): Type and arguments changed.
3896 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
3897 (font_fill_lglyph_metrics): New function.
b8ff72fa 3898 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 3899 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
3900 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
3901 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
3902
3903 * fontset.h (font_for_char): Extern it.
3904
3905 * fontset.c (font_for_char): New function.
3906
3907 * ftfont.c: Include composite.h.
3908 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 3909 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
3910
3911 * indent.c: Include composite.h and dispextern.h.
3912 (check_composition): Delete this function.
3913 (scan_for_column): Handle composition by
3914 composition_compute_stop_pos, composition_reseat_it, and
3915 composition_update_it.
3916 (compute_motion): Likewise.
3917 (Fvertical_motion): Fix checking of composition.
3918
3919 * keyboard.c (adjust_point_for_property): Check composition by
3920 composition_adjust_point.
3921
b8ff72fa 3922 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
3923 struct glyph_string.
3924
b8ff72fa
SM
3925 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
3926 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
3927 struct glyph.
3928 (produce_composite_glyph): Likewise.
3929
b8ff72fa
SM
3930 * w32term.c (x_draw_composite_glyph_string_foreground):
3931 Adjust for the change of struct glyph_string.
aac0c6e3
MR
3932 (x_draw_glyph_string): Likewise.
3933
3934 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
3935 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
3936
3937 * xdisp.c: Include font.h.
3938 (it_props): Delete the entry for Qauto_composed.
3939 (init_iterator): Initialize it->cmp_it.id to -1.
3940 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 3941 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
3942 (handle_auto_composed_prop): Delete it.
3943 (handle_composition_prop): Handle only static composition.
3944 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
3945 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 3946 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
3947 (pop_it): Likewise.
3948 (get_next_element): Delete next_element_from_composition.
3949 (CHAR_COMPOSED_P): New macro.
3950 (get_next_display_element): For automatic composition, get a face
3951 from the font in the glyph-string.
3952 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 3953 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
3954 (next_element_from_string): Check if the character at the current
3955 position is composed by CHAR_COMPOSED_P.
3956 (next_element_from_buffer): Likewise.
d66c0241
JB
3957 (next_element_from_composition): Adjust for the change of struct it.
3958 Update it->cmp_it.
b8ff72fa
SM
3959 (dump_glyph): Adjust for the change of struct glyph.
3960 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
3961 it and struct glyph. Don't handle automatic composition here.
3962 (fill_gstring_glyph_string): New function.
3963 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 3964 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
3965 (BUILD_GSTRING_GLYPH_STRING): New macro.
3966 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
3967 automatic composition.
b8ff72fa 3968 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 3969 struct glyph.
b8ff72fa 3970 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 3971
b8ff72fa 3972 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
3973 the change of struct glyph_string.
3974 (x_draw_glyph_string): Likewise.
3975
39762008-08-29 Glenn Morris <rgm@gnu.org>
3977
3978 * buffer.c (word-wrap): Doc fix.
3979 * xdisp.c (truncate-partial-width-windows): Doc fix.
3980 Increase default to 50.
3981
39822008-08-29 Chong Yidong <cyd@stupidchicken.com>
3983
3984 * xdisp.c (update_tool_bar_unwind): New function.
3985 (update_tool_bar): Temporarily set selected frame before building
3986 tool-bar items.
3987
39882008-08-28 Michael Albinus <michael.albinus@gmx.de>
3989
3990 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
3991 snprintf, respectively.
3992 (xd_append_arg): Convert strings with Fstring_make_unibyte.
3993
39942008-08-28 Chong Yidong <cyd@stupidchicken.com>
3995
3996 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
3997 LDFLAGS to GNUstep CC invocation.
3998
39992008-08-27 Chong Yidong <cyd@stupidchicken.com>
4000
4001 * indent.c (Fvertical_motion): Revert last change. Handle the
4002 general case where we are moving forward, and PT spans multiple
4003 screen lines.
4004
4005 * eval.c (find_handler_clause): Temporarily increase
4006 max-lisp-eval-depth while printing the backtrace buffer, to
4007 guarantee that help-mode code can run.
4008
40092008-08-27 Eli Zaretskii <eliz@gnu.org>
4010
4011 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
4012 colors under -rv.
4013 (IT_set_frame_parameters): Don't swap foreground and background
4014 colors if `(reverse . t)' is present in the frame properties.
4015 (internal_terminal_init): Call init_frame_faces only for the
4016 initial frame.
4017
40182008-08-27 Andreas Schwab <schwab@suse.de>
4019
4020 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
4021
40222008-08-27 Andreas Schwab <schwab@suse.de>
4023
4024 * search.c (search_buffer): Set char_base to zero only at the end.
4025
40262008-08-27 Kenichi Handa <handa@m17n.org>
4027
b8ff72fa 4028 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
4029
40302008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
4031
4032 * xterm.c (x_term_init): Temporarily hide the partially
4033 initialized terminal while calling vendor-specific-keysyms.
4034
40352008-08-26 Eli Zaretskii <eliz@gnu.org>
4036
4037 * msdos.c (internal_terminal_init): Most initializations done only
4038 once, especially initial_screen_colors[] and termscript open.
4039
40402008-08-26 Chong Yidong <cyd@stupidchicken.com>
4041
4042 * eval.c (Fcondition_case): Doc fix.
4043
4044 * widgetprv.h (EmacsFramePart): Change font member to the new font
4045 struct.
4046
4047 * widget.c: Include character.h and font.h for XSETFONT.
4048 (setup_frame_gcs): Compute X font id from font struct, just once.
4049
40502008-08-26 Eli Zaretskii <eliz@gnu.org>
4051
4052 * term.c (get_named_tty): Fix last change.
4053
40542008-08-26 Chong Yidong <cyd@stupidchicken.com>
4055
4056 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 4057 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
4058
40592008-08-25 Eli Zaretskii <eliz@gnu.org>
4060
4061 * frame.c (do_switch_frame): Mark previously displayed frame as
4062 obscured for FRAME_MSDOS_P frames as well.
4063
40642008-08-24 Eli Zaretskii <eliz@gnu.org>
4065
4066 * frame.c (make_terminal_frame): Initialize f->terminal,
4067 f->terminal->reference_count, and scroll bars on MS-DOS as well.
4068 Set the top frame to newly created frame.
4069 (Fmake_terminal_frame): Reuse the_only_display_info.
4070
4071 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
4072 estimating available memory.
4073
b97439ce 40742008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
4075
4076 * nsterm.m (ns_draw_window_cursor): Don't call
4077 NSDisableScreenUpdates and NSEnableScreenUpdates on
4078 non-NS_IMPL_COCOA systems.
4079
40802008-08-23 Andreas Schwab <schwab@suse.de>
4081
4082 * process.c (procfs_system_process_attributes): Fix use of
4083 uninitialized variables.
4084
40852008-08-23 Eli Zaretskii <eliz@gnu.org>
4086
4087 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
4088
4089 * dispnew.c (init_display): Remove MS-DOS specific conditions for
4090 calling tty-set-up-initial-frame-faces.
4091
b8ff72fa
SM
4092 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
4093 Allow MSDOS frames along with X frames.
aac0c6e3
MR
4094
4095 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
4096 addition to output_termcap.
4097
4098 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
4099
4100 * termchar.h (FRAME_TTY): Support output_msdos_raw.
4101 (struct tty_display_info) [MSDOS]: Add fields related to mouse
4102 highlight.
4103
4104 * process.c [!subprocesses]: Define QCname.
4105 (syms_of_process): Intern and staticpro it.
4106
4107 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
4108 Adjust for changes in encoding/decoding routines.
4109 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
4110 encode_coding and decode_coding.
4111
b8ff72fa 4112 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
4113
4114 * dosfns.c: Include frame.h before termhooks.h.
4115 (dos_cleanup): Use CURTTY ()->termscript instead of a global
4116 variable termscript.
4117
4118 * s/msdos.h (USER_FULL_NAME): Define.
4119 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
4120
4121 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
4122 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
4123 pw->pw_gecos.
4124
4125 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
4126 SELECTED_FRAME as additional (1st) argument.
4127 (tty_read_avail_input): Handle output_msdos_raw in
4128 addition to output_termcap.
4129
4130 * msdos.c: Include frame.h before termhooks.h.
4131 (mouse_on, mouse_off, mouse_moveto, mouse_init)
4132 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
4133 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
4134 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
4135 (IT_set_terminal_modes, IT_reset_terminal_modes)
4136 (IT_set_frame_parameters): Use tty->termscript instead of a global
4137 variable termscript.
4138 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
4139 global variable terminal_coding. Don't refer to
4140 Vnonascii_translation_table.
4141 (internal_terminal_init): Set Vwindow_system in current_kboard.
4142 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
4143 Announce date and time of session start, if termscript is open.
4144 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
4145 term.c:init_tty). Open termscript only of not already open.
4146 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
4147 here instead of dos_ttraw. Don't initialize display if this is an
4148 initial tty. Don't set FRAME_FONT.
4149 (Vwindow_system_version): Bump to 23.
4150 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
4151 is available, set up mouse_position_hook.
4152 (dos_ttraw, IT_set_terminal_modes): If called with initial
4153 terminal, do nothing.
4154 (IT_set_frame_parameters): Handle the Qtty_type frame
4155 parameter by calling internal_terminal_init.
4156 (dos_set_window_size, show_mouse_face)
4157 (clear_mouse_face, IT_note_mode_line_highlight)
4158 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
4159 (dos_rawgetc): Use tty_display_info instead of x_display_info.
4160 (initialize_msdos_display): New function.
4161 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
4162 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
4163 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
4164 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 4165 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
4166 (request_sigio, unrequest_sigio): Don't define, now defined on
4167 sysdep.c.
4168 (IT_write_glyphs): Rewrite to use encode_terminal_code.
4169
4170 * term.c [MSDOS]: Include msdos.h.
4171 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
4172 conditional to DOS_NT. Allow only one call to this function in a
4173 session. Don't allocate a new struct tty_display_info; instead,
4174 reuse the_only_display_info. Call get_tty_size to get screen
4175 dimensions. Call init_baud_rate to set bad_rate.
4176 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
4177 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 4178 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
4179 (get_tty_terminal, get_named_tty, Ftty_type)
4180 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
4181 output_termcap.
b8ff72fa
SM
4182 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
4183 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 4184 only when subprocesses are supported.
aac0c6e3
MR
4185
4186 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
4187 f->output_data.x.
4188 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
4189 terminal devices.
4190
5582fbc7 4191 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
4192 x_output.
4193 (FRAME_FONT): Use output_data.tty.
4194 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
4195 (struct x_display_info): Rename from display_info. Update all users in
4196 msdos.c.
aac0c6e3 4197 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 4198 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
4199 (dos_ttraw): Update prototype.
4200
4201 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
4202 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
4203
42042008-08-23 Jason Rumney <jasonr@gnu.org>
4205
4206 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
4207 (fn_TIFFSetDirectory): New library function used.
4208 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
4209 (tiff_load): Use :index to select among multiple images. Set count
4210 property when multiple images exist.
4211 (gif_format): Use :index, not :image.
4212
42132008-08-23 Chong Yidong <cyd@stupidchicken.com>
4214
4215 * xdisp.c (try_scrolling): Check INT_MAX instead of
4216 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
4217 to obtain INT_MAX.
4218
42192008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
4220
4221 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
4222
42232008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
4224
4225 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
4226 GNUstep library location.
4227
42282008-08-21 Chong Yidong <cyd@stupidchicken.com>
4229
4230 * xfaces.c (x_update_menu_appearance): Check validity of menu font
4231 before using it.
4232
4233 * puresize.h (BASE_PURESIZE): Increase to 1250000.
4234
42352008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4236
4237 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
4238 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
4239 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
4240 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
4241 (EmacsApp-cursor_blink_handler): Remove declaration.
4242 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
4243 match 01 Feb 2008 changes in xterm.c.
4244 (ns_read_socket): Add cast to avoid warning.
4245 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
4246 GNUstep.
4247
42482008-08-20 Chong Yidong <cyd@stupidchicken.com>
4249
4250 * xselect.c (x_get_foreign_selection): Return nil if desired
4251 selection could not be obtained, instead of signalling an error.
4252
42532008-08-20 David Reitter <david.reitter@gmail.com>
4254
4255 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
4256 * nsterm.m: Remove ns-specific code for cursor blinking.
4257 (ns_draw_window_cursor): Clear cursor properly rather than
4258 redrawing the area. Respect width of bar cursors.
4259 These changes enable the use of generic blink-cursor-mode and
4260 generic cursor types in NS and support smooth cursor movements (do
4261 not blink off after command).
4262 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
4263 Nextstep, too.
4264
42652008-08-19 Kenichi Handa <handa@m17n.org>
4266
4267 * font.c (Vfont_log_deferred): New variable.
4268 (font_add_log): Check Vfont_log_deferred.
4269 (font_deferred_log): New function.
4270
4271 * font.h (font_deferred_log): Extern it.
4272
4273 * fontset.c (reorder_font_vector): Use encoding charset of fonts
4274 for sorting.
4275 (face_for_char): Use deferred log.
4276
42772008-08-18 Kenichi Handa <handa@m17n.org>
4278
4279 * fontset.c (face_for_char): Add font log.
4280
4281 * font.c (font_add_log): Add the font properties :script, :lang,
4282 and :otf in the log.
4283
42842008-08-17 Chong Yidong <cyd@stupidchicken.com>
4285
4286 * xdisp.c: Remove dead code.
4287 (handle_invisible_prop, next_overlay_string): Defer call to
4288 setup_for_ellipsis.
4289 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
4290
42912008-08-15 Chong Yidong <cyd@stupidchicken.com>
4292
4293 * xfaces.c (lookup_derived_face): Properly handle possible zero
4294 return value of get_lface_attributes.
4295 (merge_faces): Don't tell lookup_derived_face to signal an error
4296 if face is not found.
4297
4298 * dired.c (Fdirectory_files): Doc fix.
4299
4300 * process.c (make_process): Initialize kill_without_query struct
4301 member.
4302
43032008-08-15 Eli Zaretskii <eliz@gnu.org>
4304
4305 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
4306 Alternative calculation of totphys for Visual Studio 6.
4307
4308 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
4309
4310 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
4311 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
4312 All users changed.
4313 (stat): Only root directory passed to GetDriveType. Allow RAM
4314 disk as well as local fixed disk when w32-get-true-file-attributes
4315 is set to `local'.
4316 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
4317 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
4318 (w32_cached_id, w32_add_to_cache): New functions.
4319 (get_name_and_id): Look account names in the cache before calling
4320 lookup_account_sid.
4321 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
4322 New initialization flags.
4323 (globals_of_w32): Initialize them to zero.
4324 (w32_system_process_attributes): Use w32_cached_id and
4325 w32_add_to_cache.
4326
43272008-08-14 Lawrence Mitchell <wence@gmx.li>
4328
4329 * lread.c (Fread_char, Fread_char_exclusive): If no character
4330 event is read before timeout is reached, return nil, rather than
4331 converting to a number.
4332
43332008-08-14 Chong Yidong <cyd@stupidchicken.com>
4334
4335 * fns.c (use_dialog_box): Doc fix.
4336
4337 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
4338 on OS X.
4339
43402008-08-13 Chong Yidong <cyd@stupidchicken.com>
4341
4342 * frame.c (Qns_parse_geometry): New var.
4343 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
4344
43452008-08-11 Chong Yidong <cyd@stupidchicken.com>
4346
4347 * xdisp.c (x_produce_glyphs): Handle the case when font has no
4348 space character in calculating tabs.
4349
43502008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
4351
4352 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
4353
43542008-08-10 Glenn Morris <rgm@gnu.org>
4355
4356 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
4357 silence gcc "limited range of data type" warnings in some
4358 make_fixnum_or_float calls.
4359
43602008-08-09 Eli Zaretskii <eliz@gnu.org>
4361
4362 * w32.c (w32_system_process_attributes): If the process does not
4363 exist, return nil.
4364
4365 * w32.c: Include thelp32.h, psapi.h and coding.h.
4366 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
4367 declarations.
4368 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
4369 (Process32Next_Proc): New typedefs.
4370 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
4371 (g_b_init_process32_next, g_b_init_open_thread_token)
4372 (g_b_init_impersonate_self, g_b_init_revert_to_self)
4373 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
4374 (g_b_init_get_process_working_set_size)
4375 (g_b_init_global_memory_status_ex): New static variables.
4376 (globals_of_w32): Initialize them.
4377 (create_toolhelp32_snapshot, process32_first, process32_next)
4378 (open_thread_token, impersonate_self, revert_to_self)
4379 (get_process_memory_info, get_process_working_set_size)
4380 (global_memory_status, global_memory_status_ex): New wrapper
4381 functions.
4382 (w32_list_system_processes, w32_system_process_attributes)
4383 (enable_privilege, restore_privilege, ltime, process_times):
4384 New functions.
4385 (convert_time_raw): New function.
4386 (convert_time): Remove conversion of FILETIME into time in 100
4387 nsec units, call convert_time_raw instead.
4388
4389 * process.h (w32_list_system_processes, w32_system_process_attributes):
4390 Add prototypes.
4391 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
4392 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
4393 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
4394 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
4395
4396 * process.c (Fsystem_process_attributes): Doc fix.
4397
43982008-08-08 Chong Yidong <cyd@stupidchicken.com>
4399
4400 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
4401 a continued multi-char glyph; if so, advance to the actual glyph.
4402
44032008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
4404
4405 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
4406
4407 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
4408 (.m.o): Use it.
4409 * config.in: Regenerate.
4410
44112008-08-07 Chong Yidong <cyd@stupidchicken.com>
4412
4413 * xdisp.c (redisplay_window): Revert last change.
4414 (try_window): Check bottom scroll margin too.
4415
44162008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4417
4418 * config.in: Regenerate.
4419
4420 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
4421 -list-load-path-shadows'.
4422 (nsgui.h): Reduce number of things depending on it.
4423
44242008-08-06 Chong Yidong <cyd@stupidchicken.com>
4425
4426 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
4427 instead of window-end which does the wrong thing at eob.
4428 (try_cursor_movement): Minor optimization.
4429 (redisplay_window): If scroll margin is defined, don't assume
4430 window doesn't need scrolling.
4431
44322008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4433
4434 * config.in: Regenerate.
4435
4436 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
4437 (mostlyclean): Don't delete *.d under NS.
4438
4439 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
4440
44412008-08-06 Kenichi Handa <handa@m17n.org>
4442
4443 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
4444
44452008-08-06 Andreas Schwab <schwab@suse.de>
4446
4447 * config.in: Regenerate.
4448
44492008-08-05 Chong Yidong <cyd@stupidchicken.com>
4450
4451 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
4452 forcing a window start.
4453
4454 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
4455 (auto_save_1): Update modtime when auto-save-list-file-name is on.
4456
44572008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4458
4459 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
4460 argument.
4461
44622008-08-05 Juanma Barranquero <lekktu@gmail.com>
4463
4464 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
4465 <scroll-down-aggressively, before-change-functions>:
4466 <after-change-functions>: Reflow docstrings.
4467
44682008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4469 Ken Raeburn <raeburn@gnu.org>
4470
4471 Dock menu customization, based on a patch by Ken Raeburn, plus some
4472 other fixes.
4473 * nsmenu.m (dockMenu): New variable.
4474 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
4475
4476 * nsterm.h (dockMenu): Declare.
4477
4478 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
4479 (ns_term_init): Initialize dockMenu.
4480 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
4481 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
4482 left.
4483
4484 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
4485
44862008-08-04 Chong Yidong <cyd@stupidchicken.com>
4487
4488 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
4489
4490 * config.in: Regenerate.
4491
44922008-08-04 Seiji Zenitani <zenitani@mac.com>
4493
4494 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
4495
44962008-08-04 Chong Yidong <cyd@stupidchicken.com>
4497
4498 * nsterm.h (find_and_call_menu_selection): Fix prototype.
4499
45002008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4501
4502 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
4503
4504 * keyboard.h: Comment an #endif.
4505
4506 * lisp.h (have_menus_p): Adjust comment.
4507
4508 * menu.c (find_and_return_menu_selection): Fix comparison with
4509 client_data.
4510
4511 * nsmenu.m (popup_activated_flag): New variable.
4512 (popup_activated): New function.
4513 (menu-or-popup-active-p): New exported lisp definition.
4514 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
4515 when popup done.
4516 (ns_popup_dialog): Set popup_activated_flag.
4517
4518 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
4519 version for GNUstep (handled by conditional typedef in nsterm.m).
4520 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
4521 in rgb.txt).
4522
4523 * process.c (init_process): Use DARWIN_OS, not DARWIN.
4524
4525 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
4526
4527 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
4528
4529 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
4530 shortcircuit if popup_activated like GTK and X toolkit.
4531
4532 * m/inter386.h: Change DARWIN to DARWIN_OS.
4533
4534 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
4535 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
4536 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
4537 comment on NO_SOCK_SIGIO.
4538
45392008-08-03 Chong Yidong <cyd@stupidchicken.com>
4540
4541 * nsterm.m (windowDidResize): Remove stopModal call.
4542
45432008-08-03 Andreas Schwab <schwab@suse.de>
4544
4545 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
4546 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
4547
45482008-08-02 Chong Yidong <cyd@stupidchicken.com>
4549
4550 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
4551 Don't use uninitialized pointer variable when using getrlimit.
4552
45532008-08-02 Jason Rumney <jasonr@gnu.org>
4554
4555 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
4556
45572008-08-02 Eli Zaretskii <eliz@gnu.org>
4558
4559 * alloc.c (NSTATICS): Bump to 0x640.
4560
4561 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
4562
4563 * lisp.h: Add prototype for directory_files_internal.
4564
4565 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
4566 New functions.
4567 (syms_of_process): Defsubr them. Add initializations for various
4568 Q* symbols used in procfs_system_process_attributes.
4569 (procfs_list_system_processes, procfs_system_process_attributes)
4570 [HAVE_PROCFS]: New functions.
4571 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
4572 (procfs_get_total_memory): New functions.
4573
45742008-08-01 Juanma Barranquero <lekktu@gmail.com>
4575
4576 * xfaces.c (Fx_load_color_file): Fix previous change;
4577 it is #ifdef WINDOWSNT, not WINDOWS_NT.
4578
45792008-08-01 Michael Albinus <michael.albinus@gmx.de>
4580
4581 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
4582
45832008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4584
4585 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
4586
45872008-08-01 Chong Yidong <cyd@stupidchicken.com>
4588
4589 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
4590
4591 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
4592 define NSApplicationDelegateReplySuccess.
4593 (EmacsView -converstationIdentifier): Use long instead of
4594 NSInteger for GNUstep, since it doesn't have NSInteger.
4595
4596 * xmenu.c: Revert last change.
4597
4598 * keyboard.h: Fix last change.
4599
46002008-08-01 Juanma Barranquero <lekktu@gmail.com>
4601
4602 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
4603 on Windows.
4604
46052008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4606
4607 Warning clearing and clean-up in NS port.
4608 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
4609 Add prototypes.
4610 * nsgui.h (FACE_DEFAULT): Remove, unused.
4611 (XGCValues): Change colors to unsigned long.
4612 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
4613 nsterm.m.
4614 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
4615 (ns_list_fonts): Remove, unused.
4616 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
4617 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
4618 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
4619 (nsfont_draw): Compare face colors to 0, not nil.
4620 * nsmenu.m (struct widget_value): Drop unneeded declaration.
4621 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
4622 (-addSubmenuWithTitle:): Use NSMenuItem class.
4623 (ns_popup_menu): Use NO, not NULL, for enabled setting.
4624 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
4625 (ns_clip_to_row): Make gc arg a BOOL.
4626 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
4627 ns_clip_to_row() call.
4628 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
4629 used). Cast FRAME_FONT assignments.
4630 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
4631 (ns_string_to_lispmod): Change arg to const char.
4632 (ns_term_init): Use NSMenuItem class.
4633 (EmacsApp -openFile:): Move to different section of file.
4634 (EmacsApp -application:openFiles:): Don't return a value, call
4635 -replyToOpenOrPrint:.
4636 (EmacsView -keyDown:): Fix up cast.
4637 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
4638 (EmacsView -menuDown:): Cast tag in call to
4639 find_and_call_menu_selection().
4640 (ns_list_fonts): Remove, unused.
4641 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
4642 (ns_fontname_to_xlfd): Make static.
4643 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
4644 Remove prototypes (now in keyboard.h).
4645 (next_menubar_widget_id): Remove, unused.
4646 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
4647 Remove prototypes (now in keyboard.h).
4648 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
4649
46502008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
4651
4652 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
4653 (floatfns.o): Depend on syssignal.h.
4654 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
4655
4656 * systty.h: Fix previous change that removed BSD_TERMIOS.
4657 Add comments to #ifdefs.
4658
46592008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4660
4661 * w32fns.c (w32-load-color-file): Remove.
4662 (x-open-connection): Use renamed Fx_load_color_file.
4663 * xfaces.c (x-load-color-file): Add.
4664 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
4665 Emacs.clr.
4666 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
4667
46682008-07-31 Michael Albinus <michael.albinus@gmx.de>
4669
4670 * dbusbind.c (Fdbus_call_method_asynchronously)
4671 (Fdbus_method_error_internal): New defuns.
4672 (xd_read_message): Handle also reply messages.
4673 (Vdbus_registered_functions_table): Extend docstring.
4674
46752008-07-31 Juanma Barranquero <lekktu@gmail.com>
4676
4677 * keyboard.c (gobble_input): Fix previous change.
4678
46792008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
4680
4681 * bitmaps/README:
4682 * xfns.c:
4683 * termcap.c:
4684 * term.c:
4685 * syswait.h:
4686 * systty.h:
4687 * systime.h:
4688 * syssignal.h:
4689 * sysdep.c:
4690 * process.h:
4691 * process.c:
4692 * print.c:
4693 * ndir.h:
4694 * lread.c:
4695 * keyboard.c:
4696 * getpagesize.h:
4697 * floatfns.c:
4698 * fileio.c:
4699 * emacs.c:
4700 * doc.c:
4701 * dispnew.c:
4702 * dired.c:
4703 * data.c:
4704 * callproc.c:
4705 * buffer.c:
4706 * README:
4707 * Makefile.in:
4708 * s/template.h:
4709 * s/msdos.h:
4710 * m/vax.h: Remove VMS support.
4711 * s/vms.h:
4712 * vlimit.h:
4713 * uaf.h:
4714 * temacs.opt:
4715 * param.h:
4716 * ioctl.h: Remove file.
4717
47182008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
4719
4720 * s/ms-w32.h (MULTI_KBOARD): Remove.
4721 * xterm.c:
4722 * xselect.c:
4723 * xfns.c:
4724 * window.c:
4725 * w32term.c:
4726 * w32fns.c:
4727 * terminal.c:
4728 * termhooks.h:
4729 * term.c:
4730 * sysdep.c:
4731 * keyboard.h:
4732 * keyboard.c:
4733 * frame.h:
4734 * frame.c:
4735 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
4736 * config.in: Regenerate.
4737
47382008-07-30 Jason Rumney <jasonr@gnu.org>
4739
4740 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
4741
4742 * w32font.c (w32font_encode_char): Leave as unicode if in range.
4743 (w32font_open_internal): Get unicode version of textmetrics.
4744 Don't enable or disable glyph indices here.
4745 (w32font_open): Disable use of glyph indices.
4746
4747 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
4748
47492008-07-30 Chong Yidong <cyd@stupidchicken.com>
4750
4751 * minibuf.c (Vread_buffer_function): Doc fix.
4752
47532008-07-30 John Paul Wallington <jpw@pobox.com>
4754
4755 * minibuf.c (read_buffer_completion_ignore_case): New var.
4756 (Fread_buffer): Use it.
4757
47582008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
4759
4760 * systty.h (sensemode): Remove empty #if. Remove reference to
4761 BSD_TERMIOS, unused.
4762
4763 * sysdep.c: Remove reference to DGUX.
4764 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
4765
4766 * config.in: Regenerate.
4767
47682008-07-30 Jason Rumney <jasonr@gnu.org>
4769
4770 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
4771
47722008-07-29 Jason Rumney <jasonr@gnu.org>
4773
4774 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
4775 is populated.
4776 (uniscribe_encode_char): Always use uniscribe.
4777 Avoid using context if cache is populated.
4778
47792008-07-29 Jan Djärv <jan.h.d@swipnet.se>
4780
4781 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
4782 open menu.
4783
4784 * gtkutil.c (menu_nav_ended): Remove.
4785 (create_menus): Remove signal connect for menu_nav_ended.
4786
47872008-07-28 Chong Yidong <cyd@stupidchicken.com>
4788
4789 * xdisp.c (redisplay_window): Check return value of
4790 compute_window_start_on_continuation_line before forcing a window
4791 start.
4792
47932008-07-28 Jason Rumney <jasonr@gnu.org>
4794
4795 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
4796
4797 * w32term.c (w32_enable_unicode_output, cleartype_active):
4798 Remove obsolete display options.
4799 (x_draw_glyph_string_background): Don't use old cleartype_active
4800 workaround.
4801 (w32_initialize): Remove cleartype_active initialization.
4802 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
4803
48042008-07-28 Andreas Schwab <schwab@suse.de>
4805
4806 * lisp.h (init_weak_hash_tables, syms_of_font)
4807 (xd_read_queued_messages, syms_of_dbusbind): Declare.
4808 (remove_hash_entry): Don't declare.
4809 * eval.c (maybe_call_debugger): Make static and move before use.
4810 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
4811 * xdisp.c: Include "gtkutil.h" if USE_GTK.
4812 * xterm.h (x_set_frame_alpha): Declare.
4813
48142008-07-28 Jan Djärv <jan.h.d@swipnet.se>
4815
4816 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
4817 (create_menus): Connect selection-done to menu_nav_ended.
4818
48192008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
4820
4821 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
4822 Set Vx_resource_name to a fallback. Replace read of 'buffered'
4823 parameter with read of 'alpha' one.
4824 (Qns_frame_parameter): Remove.
5582fbc7 4825 * nsselect.m (selection-coding-system)
aac0c6e3
MR
4826 (next-selection-coding-system, Vselection_coding_system)
4827 (Vnext_selection_coding_system): Drop.
4828
48292008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
4830
4831 * nsfns.m (do-applescript, do_applescript): Rename to
4832 ns-do-applescript, ns_do_applescript, and move within file.
4833
48342008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
4835
4836 Remove support for Mac Carbon.
4837 * mactoolbox.c:
4838 * macterm.h:
4839 * macterm.c:
4840 * macselect.c:
4841 * macmenu.c:
4842 * macgui.h:
4843 * macfns.c:
4844 * mac.c: Remove file.
4845 * s/darwin.h:
4846 * m/intel386.h:
4847 * xfaces.c:
4848 * xdisp.c:
4849 * window.c:
4850 * tparam.c:
4851 * termhooks.h:
4852 * termcap.c:
4853 * term.c:
4854 * syssignal.h:
4855 * sysselect.h:
4856 * sysdep.c:
4857 * process.c:
4858 * lread.c:
4859 * lisp.h:
4860 * keyboard.c:
4861 * image.c:
4862 * fringe.c:
4863 * frame.h:
4864 * frame.c:
4865 * fontset.c:
4866 * font.h:
4867 * font.c:
4868 * fns.c:
4869 * fileio.c:
4870 * emacs.c:
4871 * dispnew.c:
4872 * dispextern.h:
4873 * config.in:
4874 * atimer.c:
2ae37cf0 4875 * Makefile.in: Remove code for Carbon.
aac0c6e3 4876
f0131492 48772008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
4878
4879 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
4880
48812008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4882
4883 * macterm.h (kCGBitmapByteOrder32Host): New define for
4884 non-universal SDKs.
4885
4886 * image.c (mac_create_cg_image_from_image, image_load_image_io)
4887 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
4888
4889 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
4890 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
4891
48922008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
4893
4894 * w32inevt.c: Include dispextern.h.
4895
48962008-07-26 Andreas Schwab <schwab@suse.de>
4897
4898 * print.c (print_object): Fix off-by-one in last change.
4899
49002008-07-25 Juanma Barranquero <lekktu@gmail.com>
4901
4902 * term.c (syms_of_term): Don't initialize default_orig_pair,
4903 default_set_foreground and default_set_background on Windows.
4904
49052008-07-25 Jason Rumney <jasonr@gnu.org>
4906
4907 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
4908 ScriptItemize. Clean up return value checking. Remove unused
4909 variables.
4910 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
4911 shaping engine.
4912
4913 * w32font.c (w32font_has_char): Handle the case where we can't
4914 determine the script for a character.
4915
49162008-07-25 Chong Yidong <cyd@stupidchicken.com>
4917
4918 * term.c (syms_of_term): Initialize default_orig_pair,
4919 default_set_foreground, and default_set_background.
4920
4921 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
4922 clash (bug#86).
4923 (getloadavg): Callers changed.
4924
4925 * image.c (svg_load_image): Fix last change.
4926 (svg_load_image): Use rsvg_handle_get_dimensions to check that
4927 image size is valid. Use g_object_unref instead of deprecated
4928 rsvg_handle_free to free rsvg handle.
4929 (x_from_xcolors): Don't initialize pixmap (silence compiler).
4930
49312008-07-25 Jason Rumney <jasonr@gnu.org>
4932
4933 * w32font.c (w32font_encode_char): Encode characters outside BMP as
4934 surrogates before looking up glyph index.
4935 (w32font_text_extents): Encode as surrogates if falling back to
4936 functions that need UTF-16 wide chars.
4937
4938 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
4939 BMP as surrogates before looking up glyph index.
4940
49412008-07-25 Chong Yidong <cyd@stupidchicken.com>
4942
4943 * image.c (svg_load_image): Check for failure in return value of
4944 rsvg_handle_get_pixbuf. Free rsvg handle when done.
4945
49462008-07-25 Jason Rumney <jasonr@gnu.org>
4947
4948 * w32font.c (Fx_select_font): Reverse sense of second arg.
4949
49502008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
4951
4952 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
4953 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
4954
4955 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
4956 (PURESIZE): Use it.
4957
49582008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
4959
4960 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
4961 * m/alpha.h (TEXT_END):
4962 * m/ibmrs6000.h (TEXT_END):
4963 * m/macppc.h (TEXT_END):
4964 * s/darwin.h (TEXT_END):
4965 * s/msdos.h (TEXT_END): Remove, unused.
4966 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
4967 * s/cygwin.h: Remove comment.
4968
4969 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
4970 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
4971 * m/intel386.h (DOT_GLOBAL_START):
4972 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
4973 (USG): Remove, file not used on USG platforms.
4974
4975 * Makefile.in (HAVE_X11): Remove empty #else.
4976
49772008-07-24 Andreas Schwab <schwab@suse.de>
4978
4979 * fileio.c (Finsert_file_contents): Properly adjust undo list
4980 after format conversion.
4981
49822008-07-24 Jan Djärv <jan.h.d@swipnet.se>
4983
4984 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
4985 (menu_nav_ended): Remove.
4986 (create_menus): Remove signal connect for menu_nav_ended.
4987 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
4988 create_menus.
4989 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
4990
49912008-07-23 Jason Rumney <jasonr@gnu.org>
4992
4993 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
4994 with opened font.
4995 (w32font_open): Set font type to gdi.
4996
4997 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
4998
49992008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
5000
5001 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
5002 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
5003 defines it.
5004 * unexec.c (ADDR_CORRECT): Define unconditionally.
5005
5006 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
5007
5008 * unexec.c: Remove code depending on !COFF and USG, the file is
5009 not used for such systems.
5010
5011 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
5012 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
5013 (LD_SWITCH_SYSTEM_1): Remove, update users.
5014
5015 * s/darwin.h (DATA_END):
5016 * m/intel386.h (DATA_END):
5017 * m/ibmrs6000.h (DATA_END):
5018 * m/alpha.h (DATA_END): Remove, unused.
5019
5020 * config.in: Regenerate.
5021 * s/ms-w32.h (subprocesses): Define unconditionally.
5022 * s/template.h (subprocesses): Update comment.
5023 * s/vms.h (subprocesses):
5024 * s/usg5-4.h (subprocesses):
5025 * s/hpux10-20.h (subprocesses):
5026 * s/gnu-linux.h (subprocesses):
5027 * s/cygwin.h (subprocesses):
5028 * s/bsd-common.h (subprocesses):
5029 * s/aix4-2.h (subprocesses):
5030 * s/darwin.h (subprocesses): Do not define, defined by default now.
5031
5032 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
5033 Remove all references.
5034 (temacs): Add GNUstep specific ld flags.
5035
5036 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
5037 similarly to what X does.
5038
50392008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5040
5041 * nsfns.m (x-list-fonts): Remove.
5042 (syms_of_nsfns): Drop the x-list-fonts declaration.
5043 * nsterm.m: Get rid of remaining "//" comments.
5044
50452008-07-22 Chong Yidong <cyd@stupidchicken.com>
5046
5047 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
5048
5049 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
5050 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
5051 (Fns_own_selection_internal, Fx_disown_selection_internal)
5052 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
5053
5054 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
5055 ... */' style of docstrings. Doc fixes.
5056
50572008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
5058
5059 * terminfo.c (UP, BC, PC): Undo previous change.
5060
5061 * nsfns.m: Rename ns prefixed functions/variables to the
5062 corresponding x versions. Update references.
5063
50642008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
5065
5066 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
5067
50682008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
5069
5070 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
5071 Remove forwarding functions.
5072 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
5073 non-static.
5074 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
5075 non-static.
5076 (ns_frame_parm_handlers): Use the new names.
5077 (syms_of_nsfns): Move to the end of file.
5078
5079 * nsterm.m (syms_of_nsterm): Move to the end of file.
5080
5081 * dispnew.c (init_display): Remove code for X10.
5082
50832008-07-22 Jason Rumney <jasonr@gnu.org>
5084
5085 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
5086 bare drive.
5087
50882008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5089
5090 * nsterm.m (syms_of_nsterm): Remove debugging println.
5091
50922008-07-22 David Reitter <david.reitter@gmail.com>
5093
5094 * nsfns.m (do_applescript, F_do_applescript): NS version of the
5095 Carbon implementation of the same functionality: execute arbitrary
5096 AppleScript code.
5097
50982008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5099
5100 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
5101 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
5102 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
5103 (Fx_display_mm_height, Fx_display_mm_width)
5104 (Fx_display_backing_store, Fx_display_visual_class)
5105 (Fx_display_save_under, Fx_open_connection)
5106 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
5107 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
5108 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
5109 (Fx_display_pixel_width, Fx_display_pixel_height)
5110 (Fx_display_usable_bounds, Fx_display_planes)
5111 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
5112 ... */' style of docstrings.
5113
51142008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
5115
5116 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
5117 on this platform.
5118 (mips):
5119 * m/iris4d.h (mips): Do not define.
5120 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
5121
5122 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
5123
5124 * image.c:
5125 * nsfns.m:
5126 * nsselect.m:
5127 * nsterm.h:
5128 * nsterm.m: Rename ns prefixed functions/variables to the
5129 corresponding x versions. Update references.
5130
5131 * m/ibms390x.h (NO_REMAP): Do not undefine.
5132
5133 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
5134
51352008-07-21 Chong Yidong <cyd@stupidchicken.com>
5136
5137 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
5138 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
5139 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
5140 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
5141 (Fns_display_mm_height, Fns_display_mm_width)
5142 (Fns_display_backing_store, Fns_display_visual_class)
5143 (Fns_display_save_under, Fns_open_connection)
5144 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
5145 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
5146 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
5147 (Fns_display_pixel_width, Fns_display_pixel_height)
5148 (Fns_display_usable_bounds, Fx_display_planes)
5149 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
5150
51512008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
5152
5153 * print.c (print_object): Check print_depth before searching for
5154 circularities.
5155
51562008-07-21 Michael Albinus <michael.albinus@gmx.de>
5157
5158 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
5159 only sprintf.
5160
51612008-07-21 Kenichi Handa <handa@m17n.org>
5162
5163 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
5164
51652008-07-20 Andreas Schwab <schwab@suse.de>
5166
5167 * syntax.c (find_start_pos, find_start_value)
5168 (find_start_value_byte, find_start_begv, find_defun_start)
5169 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
5170
51712008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
5172
5173 * s/sol2-3.h: Insert contents of s/sol2.h.
5174 (LD_SWITCH_SYSTEM): Remove redundant definition.
5175 * s/sol2.h: Remove, unused.
5176
51772008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5178
5179 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
5180
51812008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5182
5183 * Makefile.in (ns_appdir): Fix typo in find command.
5184
51852008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
5186
5187 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
5188
5189 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
5190 added not supported anymore.
5191
5192 * s/usg5-4-2.h (LIBS_SYSTEM):
5193 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
5194
5195 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
5196 * s/lynxos.h (GETPGRP_NO_ARG):
5197 * s/hpux10-20.h (NO_SIOCTL_H):
5198 * s/gnu.h (GETPGRP_NO_ARG):
5199 * s/gnu-linux.h (NO_SIOCTL_H):
5200 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
5201 * s/cygwin.h (GETPGRP_NO_ARG):
5202 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
5203 (C_DEBUG_SWITCH): Remove duplicate definition.
5204
5205 * m/ibms390.h: Remove boilerplate comments.
5206
5207 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
5208
5209 * process.c (HAVE_SERIAL): Consolidate ifdefs.
5210 (wait_reading_process_output): Remove code for SunOS, platform not
5211 supported anymore. Use SOLARIS2 instead of sun.
5212
52132008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
5214
5215 * font.c (font_open_by_name): Under NS, default lface height to zero.
5216 (font_open_for_lface): Under NS, set size based on frame fontsize.
5217 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
5218 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
5219
52202008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
5221
5222 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
5223 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
5224 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
5225 YES/NO.
5226 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
5227 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
5228 * Makefile.in (clean): Clear out build destination dir.
5229
52302008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
5231
5232 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
5233 xterm, xselect.
5234 * lisp.h: Remove declaration of hash_remove.
5235 * nsgui.h: Remove redefinitions of hash_remove.
5236 * fns.c (hash_remove): Rename to hash_remove_from_table.
5237
52382008-07-19 Seiji Zenitani <zenitani@mac.com>
5239
5240 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
5241 strdup() the family UTF8String before modifying it.
5242
52432008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
5244
5245 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
5246 NS_FACE_BACKGROUND with 0 instead of nil.
5247 * nsfont.m (nsfont_draw): Same.
5248
52492008-07-19 Chong Yidong <cyd@stupidchicken.com>
5250
5251 * nsfns.m (ns_set_background_color): Fix crash.
5252
52532008-07-18 Chong Yidong <cyd@stupidchicken.com>
5254
5255 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
5256
52572008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
5258
5259 * puresize.h (BASE_PURESIZE): Increase to 1240000.
5260
52612008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5262
5263 * gtkutil.c: Include <config.h> instead of "config.h".
5264
5265 * lisp.h (Foverlay_buffer): Add EXFUN.
5266
5267 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
5268 child process to complete child_setup. Undo 2005-09-21 change.
5269
5270 * s/darwin.h: Mention setsid after vfork.
5271
52722008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5273
5274 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
5275 Depend on macgui.h.
5276
5277 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
5278 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
5279
5280 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
5281 and f19.
5282 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
5283
5284 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
5285 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
5286 Remove enumerators.
5287
5288 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
5289 Check if FACE_FROM_ID returns NULL.
5290
52912008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
5292
5293 * w32inevt.c (change_frame_size): Remove extern declaration.
5294 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
5295 change_frame_size.
5296
52972008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
5298
5299 * getloadavg.c: Revert last change (2008-07-15).
5300
53012008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
5302
5303 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
5304 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc) set
5305 from configure.
5306
53072008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
5308
5309 * s/sol2.h:
5310 * s/sol2-4.h: Reorganize conditionals.
5311
5312 * ecrt0.c: Remove code depending on m68000, not used anymore.
5313
5314 * fns.c (hash_remove): Make static.
5315 * lisp.h (hash_remove): Don't prototype.
5316
5317 * m/ibmrs6000.h:
5318 * m/ibms390x.h:
5319 * m/macppc.h: Remove boilerplate comments.
5320
5321 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
5322 Solaris, which does not need them.
5323
5324 * m/vax.h: Remove comments about unsupported systems.
5325
5326 * s/darwin.h: Reorganize ifdefs.
5327
53282008-07-17 Andreas Schwab <schwab@suse.de>
5329
5330 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
5331
53322008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
5333
5334 Use SDATA. Follow coding convention of placing operators at
5335 beginning of next line rather than end of previous line, and placing
5336 spaces around infix operators.
5337
5338 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
5339 in case it was defined already.
5340 USE @GNUSTEP_MAKEFILES@ rather than envvars.
5341 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
5342 ns_default.
5343 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
5344 Lisp_Objects.
5345 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
5346 (ns_defined_color, ns_color_to_lisp): Declare.
5347 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
5348 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
5349 it's accepted even with USE_LISP_UNION_TYPE.
5350 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
5351 (update_frame_tool_bar): Remove apparently obsolete tests for
5352 non-integerness of f->tool_bar_lines.
5353 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
5354 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
5355 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
5356 (nsfont_open): Don't confuse NULL for Qnil.
5357 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
5358 * menu.h (find_and_call_menu_selection):
5359 * menu.c (find_and_call_menu_selection): Use just int for vector size.
5360 (find_and_return_menu_selection): Always return something.
5361 * frame.h: Include dispextern.h for Display_Info.
5362 (display_x_get_resource): Declare.
5363
53642008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
5365
5366 * syntax.c: Remove stdio.h include accidentally introduced in
5367 Emacs.app commit.
5368 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
5369 NS_IMPL_COCOA.
5370 * keyboard.c (handle_async_input, input_available_signal): Remove
5371 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
5372
53732008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
5374
5375 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
5376 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
5377 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
5378 Use SDATA.
5379
5380 * keymap.c: Remove all NS-specific code.
5381 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
5382 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
5383 where_is_preferred_modifier, return a different value depending on how
5384 preferred is the binding.
5385 (where_is_internal): Adjust accordingly.
5386 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
5387 Adjust to new preferred_sequence_p.
5388 (syms_of_keymap): Declare `where-is-preferred-modifier'.
5389 * keyboard.c (parse_solitary_modifier): Not static any more.
5390 * keyboard.h (parse_solitary_modifier): Declare.
5391
53922008-07-16 Andreas Schwab <schwab@suse.de>
5393
5394 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
5395 of easymenu.
5396
53972008-07-16 Chong Yidong <cyd@stupidchicken.com>
5398
5399 * xdisp.c (move_it_in_display_line): Account for word wrap, so
5400 that we don't move off the line.
5401
54022008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
5403
5404 * keyboard.c (Qsuper): Remove.
5405 (parse_menu_item): Don't call where_is_internal specially for NS.
5406
54072008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
5408
5409 * s/gnu-linux.h: Remove boilerplate comments.
5410
5411 * m/alpha.h (__ELF__): Consolidate conditions.
5412
5413 * m/m68k.h (linux): Use GNU_LINUX instead.
5414 Remove boilerplate comments.
5415
5416 * m/intel386.h: Undo refactoring from previous change.
5417 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
5418 too, remove dead code.
5419 (linux): Use GNU_LINUX instead.
5420
54212008-07-16 Jason Rumney <jasonr@gnu.org>
5422
5423 * w32gui.h: Repeat 26 June changes lost by last change.
5424
54252008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
5426
5427 * systty.h: Remove code for Aix on 386, unsupported platform.
5428
5429 * s/ms-w32.h: Remove boilerplate comments.
5430 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
5431
5432 * s/gnu-linux.h (TERM): Remove support.
5433 (HAVE_SYSVIPC): Remove, unused.
5434 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
5435 for this system.
5436
5437 * process.c: Remove support for IRIS, unused.
5438 Remove support for TERM, not relevant anymore.
5439
5440 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
5441 used with the definition.
5442
5443 * s/aix4-2.h (static): Do not undef.
5444
5445 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
5446 only used on Aix.
5447 (HAVE_SYSVIPC): Remove, unused.
5448
5449 * m/hp800.h (CANNOT_DUMP): Do not undef.
5450
5451 * m/alpha.h: Fix comment.
5452
5453 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
5454 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
5455 used by this configuration.
5456 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
5457 * unexec.c: Remove code depending on HPUX and
5458 USG_SHARED_LIBRARIES, not used with this file. Remove code
5459 depending on IRIS, unused. Remove if 0-ed code.
5460
5461 * s/template.h: Remove comments about static.
5462
5463 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
5464 Remove if 0-ed code.
5465 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
5466 were the same as the default.
5467 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
5468 Remove boilerplate comments.
5469 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
5470 (HAVE_SYSVIPC): Remove, unused.
5471 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
5472
5473 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
5474 Remove boilerplate comments.
5475 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
5476 Remove boilerplate comments.
5477 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
5478 Remove boilerplate comments.
5479 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
5480
5481 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
5482 USG systems which do not use DATA_SEG_BITS.
5483 Refactor code. Remove boilerplate comments.
5484
5485 * m/ibms390.h:
5486 * m/m68k.h:
5487 * s/bsd-common.h:
5488 * s/cygwin.h:
5489 * s/darwin.h:
5490 * s/freebsd.h:
5491 * s/gnu.h:
5492 * s/msdos.h: Remove boilerplate comments.
5493
5494 * m/iris4d.h: Remove boilerplate comments and code for systems that
5495 do not use this file.
5496 (IRIS_4D): Remove, unused.
5497
5498 * m/mips.h: Remove boilerplate comments and code for systems that
5499 do not use this file.
5500 (SIGN_EXTEND_CHAR):
5501 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
5502 * unexmips.c: Remove file, unused.
5503
5504 * editfns.c (Fuser_full_name): Replace the only use of
5505 USER_FULL_NAME with its value.
5506 * config.in: Regenerate.
5507
55082008-07-16 David Reitter <david.reitter@gmail.com>
5509
5510 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
5511 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
5512
55132008-07-16 Glenn Morris <rgm@gnu.org>
5514
5515 * emacs.c (system-type): Doc fix.
5516
55172008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
5518
5519 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
5520 If the cache doesn't work, let's fix it, rather than work around it.
5521
55222008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
5523
5524 * Makefile.in: Correct additions for nsfont.o in last commit.
5525 * nsfont.m: New file (forgot last commit).
5526
55272008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
5528
5529 * callproc.c (set_initial_environment): Initialize
5530 Vprocess_environment under CANNOT_DUMP (fixes crash when
5531 batch-compiling for bootstrap).
5532
55332008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
5534 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5535
5536 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
5537 fix crash due to different init order.
5538
55392008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
5540
5541 Changes and additions for NeXTstep windowing system (Cocoa and
5542 GNUstep) support.
5543
5544 * Makefile.in:
5545 * config.in: Support defines and build commands for NS port.
5546 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
5547 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
5548 * dispextern.h: Include nsgui.h and add needed typedefs under NS
5549 windowing.
5550 (struct face): Add synth_ital field.
5551 * dispnew.c: Include nsterm.h when compiling under NS windowing.
5552 (init_display): Initialize Vinitial_window_system to "ns" when so
5553 compiled.
5554 * emacs.c: Include GSConfig.h when compiling under GNUstep.
5555 (display_arg): Use under NS.
5556 (main): Under NS, allocate autorelease pool and handle command line
5557 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
5558 (standard_args): Add NS-specific args.
5559 (shut_down_emacs): Shut down NS terminal if compiled under NS.
5560 * font.c (DEFAULT_ENCODING): New variable.
5561 (font_find_for_lface): Use it.
5562 (syms_of_font): Load syms_of_nsfont under NS.
5563 * font.h: Declare nsfont_driver when compiled under NS.
5564 * fontset.c: When compiling under NS, include nsterm.h.
5565 (fontset_from_font): Autoconstruct fontset under NS.
5566 * frame.c (various): Under NS, include nsterm.h, add Qns window system
5567 symbol, document and use it.
5568 (do_switch_frame): When for_deletion under Cocoa, add
5569 Fraise_frame(Qnil).
5570 (x_set_frame_parameters): Ensure font attribute changes are picked up.
5571 (x_get_arg): Allow "yes" and "no" as boolean values.
5572 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
5573 Qright under Cocoa.
5574 (focus-follows-mouse): Default to 0 under NS.
5575 * frame.h (enum output_method): Add output_ns.
5576 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
5577 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
5578 (FRAME_WINDOW_P): NS-specific definition.
5579 * fringe.c (max_used_fringe_bitmap): Make public.
5580 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
5581 (getloadavg): Use NeXT code under descendant OS's.
5582 * image.c (includes and header section, x_create_bitmap_from_data)
5583 (x_create_bitmap_from_file, free_bitmap_record, image_background)
5584 (image_background_transparent, x_clear_image_1)
5585 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
5586 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
5587 (x_to_xcolors, x_from_xcolors, x_disable_image)
5588 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
5589 other GUIs, including XPM support using code originally written for
5590 Carbon GUI.
5591 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
5592 using NS API.
5593 (image_ascent): Use font metrics macros instead of direct struct field
5594 access.
5595 * keyboard.c (includes): Add nsterm.h when compiling under NS.
5596 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
5597 Also, handle NS as GTK for menu bar purposes.
5598 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
5599 toolkit where they differ.
5600 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
5601 use cachelist, still needed under NS.
5602 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
5603 (struct widget_value): Define it here for menu.c.
5604 * keymap.c (includes): Include modifier internals.
5605 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
5606 NS.
5607 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
5608 support for preferring sequences using certain modifiers, specified by
5609 the FIRSTONLY argument.
5610 * lisp.h (hash_remove): Rename to avoid name clash when compiling
5611 under NS GNUstep implementation.
5612 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
5613 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
5614 * menu.c: Include nsterm.h under NS.
5615 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
5616 (free_menubar_widget_tree_value, update_submenu_strings)
5617 (find_and_call_menu_selection): Treat NS as X and NT.
5618 (find_and_return_menu_selection): New function, used for popup menus.
5619 * nsgui.h:
5620 * nsterm.h:
5621 * nsfns.m:
5622 * nsimage.m:
5623 * nsmenu.m:
5624 * nsselect.m:
5625 * nsterm.m: New files.
5626 * process.c (wait_reading_process_output): Under NS, call ns_select()
5627 instead of plain select().
5628 * syntax.c (char_quoted): Under NS, avoid a crash when called near
5629 beginning of buffer.
5630 * sysselect.h (init_process): Rename when compiling under Cocoa to
5631 avoid name conflict.
5632 * termhooks.h (display_info): Add ns_display_info to union.
5633 * terminal.c (Fterminal_live_p): Add ns to terminal types.
5634 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
5635 COCOA environment.
5636 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
5637 unexec() signature. (Note, this will dump, but the resulting file
5638 crashes; unexosx is used instead; keeping around for reference and
5639 possible aid in getting dump working under GNUstep.)
5640 * w32gui.h (button_type, widget_value): Remove definitions (now in
5641 keyboard.h).
5642 * window.c: Include nsterm.h when compiling under NS.
5643 * xdisp.c (includes): Include nsterm.h when compiling under NS.
5644 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
5645 other GUI windowing systems.
5646 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
5647 GTK.
5648 (x_consider_frame_title): Under NS, set icon type and frame
5649 modified-state indicator; use ns_set_name_as_filename() when using
5650 formatted title.
5651 (update_window_cursor): Make public when compiling under NS.
5652 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
5653 (hourglass_atimer, Vhourglass_delay
5654 * xfaces.c (header section, init_frame_faces, clear_font_table)
5655 (defined_color, unload_color, x_face_list_fonts)
5656 (prepare_face_for_display): Add NS support parallel to other GUIs.
5657 Emulate GCs like other non-X GUIs.
5658 (split_font_name): Don't lowercase font name under NS.
5659 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
5660 under NS.
5661 * s/darwin.h: Add support for compilation under NS.
5662
56632008-07-15 Jason Rumney <jasonr@gnu.org>
5664
5665 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
5666 (w32_show_hourglass): Rename from show_hourglass.
5667 (w32_hide_hourglass): Rename from hide_hourglass.
5668 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
5669 (Vhourglass_delay): Declare extern.
5670 (hourglass_started): Remove.
5671
5672 * xdisp.c (Vhourglass_delay): Remove static.
5673 (hourglass_started, start_hourglass, cancel_hourglass):
5674 Don't include these versions on WINDOWSNT.
5675
56762008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
5677
5678 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
5679 variables (formerly in xfns.c).
5680 (show_hourglass, hide_hourglass): New prototypes (same).
5681 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
5682 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
5683 in xfns.c).
5684 (syms_of_xdisp): Declare/initialize display-hourglass,
5685 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
5686 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
5687 formerly in xfns.c.
5688 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
5689 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
5690 (start_hourglass, cancel_hourglass): Remove.
5691 (show_hourglass, hide_hourglass): Remove prototypes and static
5692 modifiers.
5693 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
5694 hourglass_atimer, hourglass_shown_p declaration/initialization.
5695 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
5696 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
5697 (start_hourglass, cancel_hourglass): Remove.
5698 (show_hourglass, hide_hourglass): Remove prototypes and static
5699 modifiers.
5700 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
5701 hourglass_atimer, hourglass_shown_p declaration/initialization.
5702 * w32fns.c (display_hourglass_p, Vhourglass_delay)
5703 (DEFAULT_HOURGLASS_DELAY): Remove.
5704 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
5705 hourglass_shown_p declaration/initialization.
5706
57072008-07-14 Jason Rumney <jasonr@gnu.org>
5708
5709 * w32fns.c (w32_get_arg): Remove wrapper function.
5710 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
5711 directly.
5712 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
5713
57142008-07-14 Kenichi Handa <handa@m17n.org>
5715
5716 * xfont.c (xfont_open): Add workaround for X's bug.
5717
57182008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
5719
5720 * fontset.c: Include <stdio.h> unconditionally.
5721
57222008-07-13 Michael Albinus <michael.albinus@gmx.de>
5723
5724 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
5725 for filtering.
5726
57272008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
5728
5729 * s/vms.h: Use __GNUC__ instead of _GNUC_.
5730
5731 * m/macppc.h:
5732 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
5733
5734 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
5735 (SPECIAL_EMACS_INT):
5736 * m/ia64.h (SPECIAL_EMACS_INT):
5737 * m/amdx86-64.h (SPECIAL_EMACS_INT):
5738 * s/gnu.h (NLIST_STRUCT):
5739 * s/aix4-2.h (X11R5_INHIBIT_I18N):
5740 * s/gnu-linux.h (LINUX):
5741 * s/msdos.h (HAVE_FACES):
5742 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
5743
5744 * systty.h:
5745 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
5746 anymore.
5747
57482008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
5749
5750 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
5751 always defined as int.
5752
5753 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
5754 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
5755 * s/gnu-linux.h (HAVE_WAIT_HEADER):
5756 * s/freebsd.h (HAVE_WAIT_HEADER):
5757 * s/bsd-common.h (HAVE_UNION_WAIT):
5758 * s/aix4-2.h (HAVE_WAIT_HEADER):
5759 * m/mips.h (HAVE_UNION_WAIT):
5760 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
5761 (COFF, static): Do not define, they are undefined later in the file.
5762
5763 * process.c (update_status): Don't use a union.
5764 (status_convert):
5765 (sigchld_handler): Use int instead of WAITTYPE.
5766
57672008-07-12 Chong Yidong <cyd@stupidchicken.com>
5768
5769 * indent.c (Fvertical_motion): Restore hscroll before moving to
5770 goal column.
5771
57722008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
5773
5774 * lisp.h: Remove left over code.
5775
57762008-07-11 Andreas Schwab <schwab@suse.de>
5777
5778 * lisp.h: Fix logic in last change.
5779
5780 * menu.h: New file.
5781 * menu.c: Include it.
5782 * xmenu.c: Likewise.
5783 * Makefile.in: Update dependencies.
5784
57852008-07-11 Kenichi Handa <handa@m17n.org>
5786
5787 * fontset.c (fontset_from_font): Cancel the previous change.
5788
57892008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
5790
5791 * lisp.h:
5792 * w32heap.c:
5793 * emacs.c:
5794 * alloc.c: Replace all references of NO_UNION_TYPE with
5795 USE_LISP_UNION_TYPE.
5796
5797 * m/xtensa.h (NO_UNION_TYPE):
5798 * m/vax.h (NO_UNION_TYPE):
5799 * m/template.h (NO_UNION_TYPE):
5800 * m/sparc.h (NO_UNION_TYPE):
5801 * m/mips.h (NO_UNION_TYPE):
5802 * m/macppc.h (NO_UNION_TYPE):
5803 * m/m68k.h (NO_UNION_TYPE):
5804 * m/iris4d.h (NO_UNION_TYPE):
5805 * m/intel386.h (NO_UNION_TYPE):
5806 * m/ibms390x.h (NO_UNION_TYPE):
5807 * m/ibms390.h (NO_UNION_TYPE):
5808 * m/ibmrs6000.h (NO_UNION_TYPE):
5809 * m/ia64.h (NO_UNION_TYPE):
5810 * m/hp800.h (NO_UNION_TYPE):
5811 * m/arm.h (NO_UNION_TYPE):
5812 * m/amdx86-64.h (NO_UNION_TYPE):
5813 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
5814 defining it the same.
5815
58162008-07-10 Chong Yidong <cyd@stupidchicken.com>
5817
5818 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
5819
58202008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
5821
5822 * fileio.c:
5823 * sysdep.c
5824 * systty.h:
5825 * m/ibmrs6000.h:
5826 * m/iris4d.h:
5827 * s/aix4-2.h:
5828 * s/freebsd.h:
5829 * s/gnu-linux.h:
5830 * s/hpux10-20.h:
5831 * s/hpux11.h:
5832 * s/netbsd.h:
5833 * s/sol2-3.h:
5834 * s/sol2-4.h:
5835 * s/sol2.h:
5836 * s/usg5-4.h:
5837 * s/vms.h: Remove references to unused variables.
5838
58392008-07-10 Andreas Schwab <schwab@suse.de>
5840
5841 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
5842 pattern before matching the generic family.
5843
58442008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
5845
5846 * unexec.c:
5847 * s/vms.h:
5848 * s/usg5-4-2.h:
5849 * s/sol2-5.h:
5850 * s/freebsd.h:
5851 * s/darwin.h: Remove dead code.
5852
5853 * m/template.h:
5854 * m/sparc.h:
5855 * m/mips.h:
5856 * m/m68k.h:
5857 * m/iris4d.h:
5858 * m/intel386.h:
5859 * m/ibms390x.h:
5860 * m/ibms390.h:
5861 * m/ia64.h:
5862 * m/hp800.h:
5863 * m/arm.h:
5864 * m/amdx86-64.h: Remove dead code and references to unused
5865 and compiler defined symbols.
5866
5867 * unexmips.c:
5868 * unexelf.c: Remove references to desupported systems.
5869
5870 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
5871
5872 * m/powermac.h: Remove boilerplate comments.
5873 (NO_REMAP): Remove unused definition.
5874
5875 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
5876 define them.
5877
58782008-07-10 Kenichi Handa <handa@m17n.org>
5879
5880 * xfont.c (xfont_open): Log the reason of failure.
5881
58822008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
5883
5884 * fontset.c (fontset_get_font_group):
5885 * font.c (font_check_otf): Specify argument types.
5886
58872008-07-09 Kenichi Handa <handa@m17n.org>
5888
5889 * coding.c (detect_coding_utf_8): Set detect_info->found only when
5890 non-ASCII char is found.
5891
5892 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
5893 (reorder_font_vector): Change the arg preferred_family to font.
5894 Prefer the spec matching with font.
5895 (fontset_get_font_group): New function.
5896 (fontset_find_font): Change the format of an element of a realized
5897 fontset. Use fontset_get_font_group.
5898 (fontset_font): Try the current fontset, the default fontset, the
5899 fallbacks of the current fontset, and the fallbacks of the default
5900 fontset in this order.
5901 (face_for_char): Delete the shortcut to use the current font.
5902 (fontset_from_font): Don't set fonts for Latin in the fontset.
5903
5904 * font.h (font_make_object, font_match_p): Adjust prototypes.
5905
5906 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
5907
5908 * font.c (font_make_object): New arg entity and pixelsize.
5909 (font_check_otf_features, font_check_otf): New functions.
5910 (font_match_p): Check :lang, :script, and :otf properties.
5911
5912 * xfont.c (xfont_open): Adjust it for the change of
5913 font_make_object.
5914 (xfont_text_extents): Fix initial setting of metrics.
5915
5916 * ftfont.c (struct ftfont_info): New member index, delete member
5917 fc_charset_idx. Make the member order compatible with struct
5918 xftfont_info.
5919 (fc_charset_table): Change charset names to registry names.
5920 (ftfont_pattern_entity): Delete the args registry and
5921 fc_charset_idx. Change the value of :font-entity property
5922 to (FONTNAME . INDEX). Always set :registry property to
5923 `iso10646-1'.
5924 (struct ftfont_cache_data): New struct.
5925 (ftfont_lookup_cache): New arg for_face.
5926 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
5927 (ftfont_driver): Set the member otf_capability.
5928 (ftfont_get_charset): Adjust it for the change of
5929 fc_charset_table.
5930 (OTF_TAG_SYM): New macro.
5931 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
5932 for the change of fc_charset_table.
5933 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
5934 ftfont_pattern_entity. Add FC_INDEX to objset.
5935 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
5936 and ftfont_pattern_entity.
5937 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
5938 font_make_object, struct ftfont_info.
5939 (ftfont_has_char): Use ftfont_get_fc_charset.
5940 (ftfont_otf_features, ftfont_otf_capability): New functions.
5941 (ftfont_shape): Use ftfont_get_otf.
5942 (ftfont_text_extents): Fix initial setting of metrics.
5943
5944 * xftfont.c (struct xftfont_info): New member ft_size. Make the
5945 member order compatible with struct ftfont_info.
5946 (xftfont_open): Add FC_CHARSET to the pattern. Set
5947 xftfont_info->ft_size. Don't unlock the face. Check BDF
5948 properties if appropriate.
5949 (xftfont_close): Unlock the face.
5950 (xftfont_anchor_point, xftfont_shape): Deleted.
5951 (syms_of_xftfont): Don't set members anchor_point and shape of
5952 xftfont_driver.
5953
5954 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
5955 font_make_object.
5956
5957 * w32font.c (w32font_open): Adjust it for the change of
5958 font_make_object.
5959 (w32font_open_internal): Don't set properties of font_object here.
5960
59612008-07-08 Chong Yidong <cyd@stupidchicken.com>
5962
5963 * macfns.c (x_create_tip_frame):
5964 * w32fns.c (x_create_tip_frame):
5965 * xfns.c (x_create_tip_frame): Pass parameter argument to
5966 face-set-after-frame-default.
5967
5968 * xfaces.c (Finternal_merge_in_global_face): Save merged
5969 attributes for the default face back into the face vector.
5970
59712008-07-08 Andreas Schwab <schwab@suse.de>
5972
5973 * fontset.h: Declare fontset_from_font. Don't declare
5974 new_fontset_from_font and fontset_from_font_name.
5975 * xterm.c: Include "fontset.h".
5976 * Makefile.in (xterm.o): Update dependencies.
5977
59782008-07-08 Glenn Morris <rgm@gnu.org>
5979
5980 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
5981 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
5982
59832008-07-07 Chong Yidong <cyd@stupidchicken.com>
5984
5985 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
5986 (x_set_frame_parameters): Don't bind it.
5987
59882008-07-07 Juanma Barranquero <lekktu@gmail.com>
5989
5990 * w32fns.c (map_w32_filename): Declare extern.
5991
59922008-07-07 Jason Rumney <jasonr@gnu.org>
5993
5994 * w32term.c (WS_EX_LAYERED): Define if not already.
5995
59962008-07-06 Chong Yidong <cyd@stupidchicken.com>
5997
5998 * xfaces.c (set_font_frame_param): Don't try to set the font
5999 parameter if it is still unspecified in the lface.
6000
60012008-07-05 Chong Yidong <cyd@stupidchicken.com>
6002
6003 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
6004 face if it didn't already exist.
6005
6006 * xdisp.c (try_window_id): Give up if word-wrapping is on.
6007
60082008-07-05 Andreas Schwab <schwab@suse.de>
6009
6010 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
6011
60122008-07-05 Chong Yidong <cyd@stupidchicken.com>
6013
6014 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
6015 word-wrapping.
6016 (IT_DISPLAYING_WHITESPACE): New macro.
6017 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
6018 when word-wrapping. Simplify word-wrapping logic. Use correct
6019 pixel positions when saving copies of the iterator.
6020 (display_line): Use proper wrap point if the last character on a
6021 line was preceded by whitespace.
6022
60232008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
6024
6025 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
6026
60272008-07-04 Kenichi Handa <handa@m17n.org>
6028
6029 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
6030
6031 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
6032
60332008-07-02 Jason Rumney <jasonr@gnu.org>
6034
6035 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 6036 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
6037
6038 * xdisp.c (next_element_from_display_vector): Move assignment out
6039 of if statement.
6040
60412008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
6042
6043 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
6044
6045 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
6046 (syms_of_fileio): Initialize and export them.
6047 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
6048
6049 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
6050 (Fsystem_move_file_to_trash): New function.
6051 (syms_of_w32fns): Export it to lisp.
6052
60532008-07-01 Jason Rumney <jasonr@gnu.org>
6054
6055 * w32font.c (w32font_text_extents): Don't count overhang as part
6056 of width.
6057
60582008-06-30 Miles Bader <miles@gnu.org>
6059
6060 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
6061 Add `avoid_cursor_p' field.
6062
6063 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
6064 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
6065 (append_glyph, append_composite_glyph, produce_image_glyph)
6066 (append_stretch_glyph): Initialize avoid_cursor_p.
6067 (get_it_property): Rename from `get_line_height_property'.
6068 (x_produce_glyphs): Use get_it_property.
6069 (handle_line_prefix, push_display_prop): New functions.
6070 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
6071 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
6072 New variables.
6073 (syms_of_xdisp): Initialize them.
6074
60752008-06-30 Kenichi Handa <handa@m17n.org>
6076
6077 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
6078 XftDefaultSubstitute (they are called in XftFontMatch).
6079 (xftfont_open): Fix args to ftfont_font_format.
6080
6081 * ftfont.c (fc_charset_table): New member lang.
6082 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 6083 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
6084 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
6085 (ftfont_open): Fix args to ftfont_font_format.
6086 (ftfont_font_format): New arg filename.
6087
60882008-06-30 Chong Yidong <cyd@stupidchicken.com>
6089
6090 * xfaces.c (Finternal_merge_in_global_face): If default face was
6091 modified, realize it again. Update the font face attribute.
6092
60932008-06-29 Jason Rumney <jasonr@gnu.org>
6094
6095 * w32term.c (x_set_frame_alpha): Fix logic.
6096
60972008-06-29 Kenichi Handa <handa@m17n.org>
6098
6099 * fontset.c (Finternal_char_font): Return font-object instead of
6100 font-name.
6101
6102 * composite.c (get_composition_id): Fix the width calculation for TAB.
6103
61042008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
6105
6106 * indent.c (Fvertical_motion): Properly handle float column arg.
6107
61082008-06-28 Jason Rumney <jasonr@gnu.org>
6109
6110 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
6111 (pfnSetLayeredWindowAttributes): New function pointer.
6112 (w32_initialize): Initialize it when supported.
6113 (x_set_frame_alpha): New function.
6114
6115 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
6116 (w32_frame_parm_handlers): Set alpha handler.
6117
6118 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
6119
61202008-06-27 Jason Rumney <jasonr@gnu.org>
6121
6122 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
6123 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
6124 (w32_to_x_charset, x_to_w32_charset)
6125 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
6126 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
6127 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
6128 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
6129 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
6130 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
6131 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
6132 (Qw32_charset_unicode): Remove.
6133 (syms_of_w32fns): Update for above changes.
6134
6135 * w32font.c (w32_to_x_charset, x_to_w32_charset)
6136 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
6137 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
6138 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
6139 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
6140 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
6141 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
6142 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
6143 (syms_of_w32font): Update for above changes.
6144
61452008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
6146
6147 * s/usg5-4.h: Fix previous change: keep the correct branch of a
6148 removed #if.
6149 (USG_SHARED_LIBRARIES): Remove duplicate definition.
6150
61512008-06-26 Juanma Barranquero <lekktu@gmail.com>
6152 Eli Zaretskii <eliz@gnu.org>
6153
6154 * makefile.w32-in (LOCAL_FLAGS):
6155 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
6156
6157 * sysdep.c (_spawnlp, _getpid):
6158 Declare with explicit _cdecl instead of _CRTAPI1.
6159
6160 * editfns.c (Fget_internal_run_time):
6161 Check for WINDOWSNT with #ifdef, not #if.
6162
61632008-06-26 Jason Rumney <jasonr@gnu.org>
6164
6165 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
6166
6167 * w32term.c (x_draw_glyph_string_foreground)
6168 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
6169 Use FONT_HANDLE macro.
6170 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
6171
6172 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
6173 (uniscribe_encode_char): Use FONT_HANDLE macro.
6174
6175 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
6176 (w32font_text_extents): Use precast w32_font.
6177 (w32font_close): Free cached metrics.
6178 (w32font_open_internal): Allocate space for name on stack.
6179
61802008-06-26 Chong Yidong <cyd@stupidchicken.com>
6181
6182 * xdisp.c (extend_face_to_end_of_line): Fix last change.
6183
61842008-06-26 Jason Rumney <jasonr@gnu.org>
6185
6186 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
6187 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
6188
61892008-06-26 Juanma Barranquero <lekktu@gmail.com>
6190
6191 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
6192
61932008-06-26 Jason Rumney <jasonr@gnu.org>
6194
6195 * w32bdf.c, w32bdf.h: Remove obsolete files.
6196
6197 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
6198
6199 * w32gui.h: Don't include w32bdf.h.
6200 (XCharStruct, enum w32_char_font_type, W32FontStruct):
6201 Remove obsolete font support.
6202
6203 * w32font.h (struct w32font_info): Remove compat_w32_font.
6204 Add hfont member.
6205 (FONT_COMPAT): Remove obsolete macro.
6206
6207 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
6208 (w32font_encode_char, w32font_text_extents): Use new hfont member.
6209 (w32font_open_internal): Remove compat code. Set new hfont member.
6210 (Fx_select_font): Use new hfont member.
6211
6212 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
6213 (uniscribe_encode_char): Use new hfont member.
6214
6215 * w32term.c (x_draw_glyph_string_foreground)
6216 (x_draw_composite_glyph_string_foreground): Use new hfont member.
6217 (x_draw_glyph_string): Use metrics in w32font_info.
6218
62192008-06-26 Kenichi Handa <handa@m17n.org>
6220
6221 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
6222
62232008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
6224
6225 * unexnext.c:
6226 * m/ews4800.h:
6227 * m/hp9000s300.h:
6228 * m/ibm370aix.h:
6229 * m/mips-siemens.h:
6230 * m/ncr386.h:
6231 * m/next.h:
6232 * m/pmax.h:
6233 * m/powerpcle.h:
6234 * m/tandem-s2.h:
6235 * s/386bsd.h:
6236 * s/bsd386.h:
6237 * s/bsd4-1.h:
6238 * s/bsd4-2.h:
6239 * s/bsdos2-1.h:
6240 * s/bsdos2.h:
6241 * s/bsdos3.h:
6242 * s/bsdos4.h:
6243 * s/nextstep.h:
6244 * s/ultrix4-3.h:
6245 * s/usg5-0.h:
6246 * s/usg5-2-2.h:
6247 * s/usg5-2.h:
6248 * s/usg5-4-3.h:
6249 * s/ux4800.h:
6250 * s/uxpds.h:
6251 * s/uxpv.h: Remove support for obsolete systems.
6252 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 6253 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
6254 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
6255 Remove, insert contents in s/aix4-2.h.
6256 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
6257 * s/bsd4-3.h: Rename to ...
6258 * s/bsd-common.h: ... this.
6259 * data.c:
6260 * doc.c:
6261 * ecrt0.c:
6262 * emacs.c:
6263 * fileio.c:
6264 * floatfns.c:
6265 * keyboard.c:
6266 * mem-limits.h:
6267 * print.c:
6268 * process.c:
6269 * sysdep.c:
6270 * syssignal.h:
6271 * systty.h:
6272 * syswait.h:
6273 * term.c:
6274 * unexec.c:
6275 * unexelf.c:
6276 * unexhp9k800.c:
6277 * m/hp800.h:
6278 * m/ibmrs6000.h:
6279 * m/mips.h:
6280 * m/vax.h:
6281 * s/darwin.h:
6282 * s/freebsd.h:
6283 * s/gnu.h:
6284 * s/ms-w32.h:
6285 * s/msdos.h:
6286 * s/netbsd.h:
6287 * s/template.h: Remove references to obsolete variables.
6288
6289 * Makefile.in: Add dependencies for all unexec files.
6290 (admindir): Remove unused variable.
6291 (UNEXEC_SRC): Remove references.
6292
62932008-06-25 Chong Yidong <cyd@stupidchicken.com>
6294
6295 * xfns.c (x_default_font_parameter): If Xft is available, first
6296 try Monospace-12 for the default font.
6297
62982008-06-25 Jason Rumney <jasonr@gnu.org>
6299
6300 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
6301
63022008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
6303
6304 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
6305
6306 * buffer.c (syms_of_buffer): Remove default-word-wrap.
6307
63082008-06-25 Juanma Barranquero <lekktu@gmail.com>
6309
6310 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
6311 <scroll-conservatively>: Fix typo in docstring.
6312
6313 * xselect.c (Fx_send_client_event): Doc fix.
6314
63152008-06-25 Kenichi Handa <handa@m17n.org>
6316
6317 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
6318
6319 * font.c (font_parse_fcname): Remove unused variables.
6320 (font_sort_entites): Delete the arg SPEC. Caller changed.
6321 Fix for the case of ! best_only.
6322 (font_delete_unmatched): Check DPI and AVGWIDTH too.
6323
6324 * lisp.h (Fstring_to_unibyte): EXFUN it.
6325
6326 * character.h (str_to_unibyte): Extern it.
6327
6328 * character.c (str_to_unibyte): New function.
6329
6330 * fns.c (Fstring_to_unibyte): New function.
6331 (syms_of_fns): Defsubr it.
6332
63332008-06-24 Kenichi Handa <handa@m17n.org>
6334
6335 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
6336 DPI too.
6337 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
6338
63392008-06-24 Andreas Schwab <schwab@suse.de>
6340
6341 * Makefile.in (${lispsource}loaddefs.el): Rename from
6342 ../lisp/loaddefs.el.
6343 (bootstrap-clean): Do what distclean does but don't remove
6344 Makefile.
6345 (distclean): Depend on bootstrap-clean and remove Makefile.
6346
63472008-06-24 Chong Yidong <cyd@stupidchicken.com>
6348
6349 * buffer.h (struct buffer): New member word_wrap.
6350
6351 * buffer.c (syms_of_buffer): New variables default-word-wrap and
6352 word-wrap.
6353 (init_buffer_once): Initialize them.
6354
6355 * dispextern.h (struct it): Replace bool truncate_lines_p with a
6356 line_wrap enum possessing three possible values.
6357
6358 * termopts.h: Replace truncate_partial_width_windows with
6359 Vtruncate_partial_width_windows.
6360
6361 * dispnew.c (direct_output_for_insert): Avoid direct output when
6362 inserting a space with word wrap on.
6363
6364 * indent.c (compute_motion): Obey integer values of
6365 truncate-partial-width-windows.
6366
6367 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
6368 replacing truncate_partial_width_windows.
6369 (init_iterator): If Vtruncate_partial_width_windows is an integer,
6370 truncate only if the window width is below that integer.
6371 (start_display, resize_mini_window, produce_stretch_glyph)
6372 (display_string, move_it_in_display_line_to): Use line_wrap.
6373 (back_to_previous_visible_line_start, reseat_1): Reset
6374 string_from_display_prop_p.
6375 (display_line): Extend default face to end of line when wrapping.
6376
63772008-06-24 Kim F. Storm <storm@cua.dk>
6378
6379 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
6380 to wrap continued lines at word boundaries.
6381
63822008-06-24 Jason Rumney <jasonr@gnu.org>
6383
6384 * font.c (Ffont_face_attributes): Multiply pixel size before point
6385 conversion to avoid multiplying rounding error.
6386
63872008-06-23 Jason Rumney <jasonr@gnu.org>
6388
6389 * w32term.c (x_draw_glyph_string_background)
6390 (x_draw_glyph_string): Remove old bdf font code.
6391
6392 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
6393
63942008-06-22 Kenichi Handa <handa@m17n.org>
6395
6396 * font.c (font_find_for_lface): Try the adstyle specified in
6397 the property of LFACE_FONT of LFACE (if any).
6398
63992008-06-21 Seiji Zenitani <zenitani@mac.com>
6400 Ryo Yoshitake <ryo@shiftmode.net>
6401
6402 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
6403
64042008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
6405
6406 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
6407 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
6408 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
6409 (witness-emacs): Remove.
6410 (lisp, shortlisp): Move loaddefs.el earlier.
6411 (mostlyclean): Forget about witness-emacs.
6412
64132008-06-22 Glenn Morris <rgm@gnu.org>
6414
6415 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
6416 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
6417
64182008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
6419
6420 * Makefile.in (PRECOMP): Remove.
6421 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
6422 (witness-emacs): Run `compile-first'.
6423 (.el.elc): Use the new compile-onefile target.
6424
64252008-06-21 Kenichi Handa <handa@m17n.org>
6426
6427 * xftfont.c (xftfont_open): Handle QCembolden only when
6428 FC_EMBOLDEN is defined.
6429
64302008-06-21 Andreas Schwab <schwab@suse.de>
6431
6432 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
6433 (.el.elc): Likewise.
6434
64352008-06-21 Miles Bader <miles@gnu.org>
6436
6437 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
6438 build dir, not the lisp source dir.
6439
64402008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
6441
6442 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
6443 (bootstrapclean): Remove.
6444 (.el.elc): New rule.
6445 (PRECOMP): New var.
6446 (../lisp/subdirs.el): Remove.
6447 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
6448 (witness-emacs): New target.
6449 (mostlyclean): Remove witness-emacs as well.
6450 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
6451 Add witness-emacs dependency.
6452
64532008-06-20 Chong Yidong <cyd@stupidchicken.com>
6454
6455 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
6456 defined by the font.
6457
64582008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
6459
6460 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
6461 (bootstrap-clean): New target that keeps TAGS around.
6462 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
6463 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
6464
64652008-06-20 Jason Rumney <jasonr@gnu.org>
6466
6467 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
6468 Remove obsolete font code.
6469
6470 * w32font.c (font_matches_spec): Use csb bitfield from font signature
6471 to determine language support.
6472
64732008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
6474
6475 * sysdep.c (cfsetspeed): New fun extracted from the code.
6476 (cfmakeraw): Move before first use.
6477
64782008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
6479
6480 * sysdep.c (cfmakeraw): Provide fallback implementation.
6481 (serial_configure): Provide fallback implementation of cfsetspeed.
6482
64832008-06-20 Kenichi Handa <handa@m17n.org>
6484
6485 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
6486 the pattern.
6487
6488 * fontset.c (fontset_from_font): Copy font_spec before changing
6489 the elements.
6490
6491 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
6492
64932008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
6494
6495 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
6496 for explicit `font' parameters.
6497
6498 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
6499
65002008-06-19 Kenichi Handa <handa@m17n.org>
6501
6502 * frame.c: Include <ctype.h>.
6503 (x_set_font_backend): Allow spacing characters in the X resource
6504 for FontBackend.
6505
65062008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
6507
6508 * w32fns.c, xfns.c (Qfont_param): New var.
6509 (syms_of_w32fns): Initialize it.
6510 (x_default_font_parameter): Record explicit `font' into
6511 `font-parameter'.
6512
65132008-06-18 Kenichi Handa <handa@m17n.org>
6514
6515 * font.c (font_parse_xlfd): Fix previous change.
6516 (font_parse_fcname): Don't use :fc-unknown-spec.
6517 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
6518 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
6519 (font_add_log): Prepend the driver name to the resulting fonts.
6520
6521 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
6522 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
6523 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
6524
6525 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
6526 (QCembolden): New variables.
6527 (syms_of_xftfont): DEFSYM them.
6528 (xftfont_open): Call XftFontMatch. Don't trust the result of
6529 XftTextExtents8 if the pixel_size is less than 5.
6530
65312008-06-18 Andreas Schwab <schwab@suse.de>
6532
6533 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
6534 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
6535
65362008-06-18 Jason Rumney <jasonr@gnu.org>
6537
6538 * w32font.c (w32font_list, w32font_match): Add logging.
6539
6540 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
6541
65422008-06-17 Chong Yidong <cyd@stupidchicken.com>
6543
6544 * font.c (font_parse_fcname): Store divider characters for
6545 unknown-spec list. For known key symbols, intern using correct
6546 symbol name.
6547
65482008-06-17 Kenichi Handa <handa@m17n.org>
6549
6550 * xfaces.c (realize_default_face): If the frame is not on window
6551 system, set the fontset of face to nil.
6552
65532008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
6554
6555 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
6556
65572008-06-16 Juanma Barranquero <lekktu@gmail.com>
6558
6559 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
6560 (build_font_name_from_vector): Delete externs.
6561
6562 * xfaces.c (struct font_name): Don't declare.
6563
65642008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
6565
6566 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
6567
65682008-06-16 Chong Yidong <cyd@stupidchicken.com>
6569
6570 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
6571
65722008-06-16 Juanma Barranquero <lekktu@gmail.com>
6573
6574 * font.c (Ffont_spec): Fix usage in docstring.
6575 (Ffont_face_attributes): Doc fix.
6576
65772008-06-16 Andreas Schwab <schwab@suse.de>
6578
6579 * font.c (Ffont_face_attributes): Fix definition.
6580
65812008-06-16 Jason Rumney <jasonr@gnu.org>
6582
6583 * font.h (font_style_symbolic_from_value): Remove.
6584
6585 * font.c (font_style_symbolic_from_value): Remove.
6586 (font_style_symbolic): Revert to pre 2008-06-13 version.
6587
6588 * w32font.c (w32_to_fc_weight): New function.
6589 (w32font_full_name, logfont_to_fcname): Use it.
6590
65912008-06-16 Kenichi Handa <handa@m17n.org>
6592
6593 * font.c (font_check_object): Delete it.
6594 (font_clear_cache): Check if a font-object is alive.
6595 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
6596 font-object to nil.
6597 (font_close_object): Don't check FONT_CLOSE_OBJECT.
6598 (font_at): Don't call font_check_object.
6599 (Ffont_get): Return a symbol for :weight, :slant, and :width.
6600
66012008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
6602
6603 * puresize.h (BASE_PURESIZE): Increase to 1230000.
6604
66052008-06-16 Chong Yidong <cyd@stupidchicken.com>
6606
6607 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
6608
66092008-06-15 Chong Yidong <cyd@stupidchicken.com>
6610
6611 * font.c (font_parse_fcname): Only one decimal point.
6612 (font_unparse_fcname): Handle data in family and foundry indices
6613 as symbols, not strings.
6614 (font_unparse_gtkname, Ffont_face_attributes): New functions.
6615
6616 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
6617
6618 * font.h (font_unparse_gtkname): Add prototype.
6619
66202008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
6621
6622 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
6623
66242008-06-15 Andreas Schwab <schwab@suse.de>
6625
6626 * font.c (font_update_drivers): Fix crash when no drivers match.
6627
66282008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
6629
6630 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
6631 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
6632
66332008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
6634
6635 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
6636
66372008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
6638
6639 * process.c (Fserial_process_configure, Fprocess_send_eof):
6640 Use EQ to compare Lisp_Objects.
6641
66422008-06-13 Jason Rumney <jasonr@gnu.org>
6643
6644 * w32fns.c (Fw32_select_font): Remove old font API function.
6645
6646 * w32font.c (logfont_to_fcname): New function.
6647 (Fx_select_font): New font dialog function compatible with
6648 GTK/fontconfig version.
6649
6650 * font.c (font_style_symbolic_from_value): New function.
6651 (font_style_symbolic): Use it.
6652
6653 * font.h (font_style_symbolic_from_value): Declare new function.
6654
66552008-06-13 Juanma Barranquero <lekktu@gmail.com>
6656
6657 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
6658 <font-width-table>: Fix typos in docstrings.
6659
66602008-06-13 Daniel Engeler <engeler@gmail.com>
6661
6662 These changes add serial port access.
6663 * process.c: Add HAVE_SERIAL.
6664 (Fdelete_process, Fprocess_status, Fset_process_buffer)
6665 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
6666 (list_processes_1, select_wrapper, Fstop_process)
6667 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
6668 (status_notify): Modify to handle serial processes.
6669 [HAVE_SERIAL] (Fserial_process_configure)
6670 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
6671 New functions.
6672 * process.h (struct Lisp_Process): Add `type'.
6673 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
6674 New functions.
6675 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
6676 serial ports.
b71ac3dd 6677 (serial_open, serial_configure): New functions.
aac0c6e3
MR
6678 * w32.h: Add FILE_SERIAL.
6679 (struct _child_process): Add ovl_read, ovl_write.
6680
66812008-06-13 Kenichi Handa <handa@m17n.org>
6682
6683 * dispextern.h (enum lface_attribute_index): New member
6684 LFACE_FOUNDRY_INDEX.
6685
6686 * font.c (font_score): Delete arg alternate_families. Check only
6687 weight, slant, width, and size. Ignore the difference of alias
6688 style symbols.
6689 (font_sort_entites): Adjust for the above change. Reflect the
6690 order of font-driver to scores.
6691 (font_list_entities): Don't check alternate_familes here.
6692 (font_clear_prop): Handle foundry.
6693 (font_update_lface): Don't parse "foundry-family" form here.
6694 Handle FONT_FOUNDRY_INDEX.
6695 (font_find_for_lface): Likewise. Handle alternate families here.
6696 If registry is nil, try iso8859-1 and ascii-0.
6697 (font_open_for_lface): Pay attention to size in ENTITY.
6698 (font_open_by_name): Simplify by calling font_load_for_lface.
6699 (free_font_driver_list): Delete it.
6700 (font_update_drivers): Preserve the order of backends.
6701 (syms_of_font): Setting of sort_shift_bits adjusted for the change
6702 of font_score and font_sort_entites.
6703 (font_update_sort_order): Likewise.
6704
6705 * xfaces.c (LFACE_FOUNDRY): New macro.
6706 (check_lface_attrs): Check foundry.
6707 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
6708 (merge_face_vectors): Check foundry.
6709 (merge_face_ref): Likewise.
6710 (Finternal_set_lisp_face_attribute): Likewise.
6711 (x_update_menu_appearance): Likewise.
6712 (Finternal_get_lisp_face_attribute): Likewise.
6713 (lface_hash): Likewise.
6714 (lface_same_font_attributes_p): Likewise.
6715 (x_supports_face_attributes_p): Likewise.
6716 (tty_supports_face_attributes_p): Likewise.
6717 (Finternal_set_alternative_font_family_alist): Intern strings.
6718 (Finternal_set_alternative_font_registry_alist): Downcase strings.
6719 (realize_default_face): Set LFACE_FOUNDRY (lface).
6720
6721 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
6722 font-driver at first.
6723
6724 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
6725
67262008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
6727
6728 * lread.c (Fload): Use xfree, not free on saved_doc_string.
6729
67302008-06-12 Jim Meyering <meyering@redhat.com>
6731
6732 Make unexec_free handle NULL the same way free does.
6733 * unexmacosx.c (unexec_free): Ignore a NULL argument.
6734
67352008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
6736
6737 * character.h (CHAR_TO_BYTE_SAFE): New macro.
6738 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
6739 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
6740 (WEAK_ALIAS): Simplify.
6741 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
6742 when searching a unibyte buffer.
6743
67442008-06-12 Chong Yidong <cyd@stupidchicken.com>
6745
6746 * xfns.c (Fx_select_font): Rename from x-font-dialog.
6747
67482008-06-12 Juanma Barranquero <lekktu@gmail.com>
6749
6750 * w32font.c: Include ctype.h.
6751
67522008-06-11 Jason Rumney <jasonr@gnu.org>
6753
6754 * w32font.c (w32font_encode_char): Detect missing glyphs that are
6755 misreported as space.
6756 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
6757 as aliases for registry iso10646-1.
6758
67592008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
6760
6761 * buffer.c (clone_per_buffer_values): Skip `name'.
6762
67632008-06-11 Chong Yidong <cyd@stupidchicken.com>
6764
6765 * font.c (font_parse_fcname): Fix last change; accept decimal
6766 points in font size.
6767
67682008-06-10 Jason Rumney <jasonr@gnu.org>
6769
6770 * w32uniscribe.c (add_opentype_font_name_to_list):
6771 Skip non unicode fonts.
6772
67732008-06-10 Chong Yidong <cyd@stupidchicken.com>
6774
6775 * xfns.c (Fx_font_dialog): New function.
6776
6777 * gtkutil.c (xg_dialog_response_cb): Rename from
6778 xg_file_response_callback.
6779 (pop_down_dialog): Rename from pop_down_file_dialog.
6780 (xg_get_file_name): Callers changed.
6781 (xg_get_font_name): New function.
6782
6783 * gtkutil.h (xg_get_font_name): Insert prototype.
6784
67852008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
6786
6787 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
6788 x_underline_minimum_display_offset.
6789 (syms_of_xdisp): Declare it here rather than in xterm.c.
6790 * dispextern.h (underline_minimum_offset): Declare it.
6791 * w32term.c (x_draw_glyph_string): Use it.
6792 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
6793 (syms_of_xterm): Don't declare it any more.
6794 (x_draw_glyph_string): Adjust to the new name.
6795
67962008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
6797
6798 * xterm.c (x_underline_minimum_display_offset): New var.
6799 (x_draw_glyph_string): Use it.
6800 (syms_of_xterm): Declare it.
6801
68022008-06-10 Chong Yidong <cyd@stupidchicken.com>
6803
6804 * font.c (font_parse_fcname): Accept GTK-style font names too.
6805
68062008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
6807
6808 * dired.c (file_name_completion): Don't return t if the match is exact
6809 but with different capitalization.
6810 * minibuf.c (Ftry_completion): Simplify.
6811
6812 * window.c (Vwindow_point_insertion_type): New var.
6813 (set_window_buffer): Use it.
6814 (syms_of_window): Init and export it to Lisp.
6815
68162008-06-10 Kenichi Handa <handa@m17n.org>
6817
6818 * font.h (font_intern_prop): Prototype adjusted.
6819
6820 * font.c (font_intern_prop): New arg force_symbol.
6821 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
6822 Adjust for the change of font_intern_prop.
6823
6824 * ftfont.c (ftfont_pattern_entity):
6825 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
6826 (w32_registry):
6827 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
6828 the change of font_intern_prop.
6829
68302008-06-09 Juanma Barranquero <lekktu@gmail.com>
6831
6832 * w32menu.c (digest_single_submenu): Declare extern.
6833
68342008-06-09 Jason Rumney <jasonr@gnu.org>
6835
6836 * w32term.c (x_make_frame_visible): Use alternate restore flags.
6837
6838 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
6839 (parse_single_submenu): Remove.
6840 (digest_single_submenu): Remove.
6841 (syms_of_w32menu): Don't initialise variables that have moved
6842 to menu.c.
6843 (set_frame_menubar): Sync with version in xmenu.c.
6844 (w32_menu_show): Sync with xmenu_show in xmenu.c.
6845
6846 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
6847 Make static again.
6848
68492008-06-09 Jason Rumney <jasonr@gnu.org>
6850
6851 Changes to w32 files related to the move of common menu code
6852 to menu.c on 2008-06-08 by Chong Yidong.
6853
6854 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
6855 defs to w32gui.h.
6856 (single_keymap_panes, push_menu_item, push_menu_pane):
6857 Make globally visible.
6858
6859 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
6860 (local_free, malloc_widget_value, free_widget_value)
6861 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
6862 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
6863 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
6864 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
6865 (menu_items, menu_items_allocated, menu_items_used)
6866 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
6867 (init_menu_items, finish_menu_items, discard_menu_items)
6868 (grow_menu_items, push_submenu_start, push_submenu_end)
6869 (push_left_right_boundary, push_menu_pane, push_menu_item)
6870 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
6871 (free_menubar_widget_tree_value, parse_single_submenu)
6872 (update_submenu_strings): Remove functions.
6873 (xmalloc_widget_value): Remove and declare extern.
6874
6875 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
6876 (OBJ1): Build it.
6877
6878 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
6879 (local_heap, local_alloc, local_free, malloc_widget_value)
6880 (free_widget_value): Define here.
6881
68822008-06-09 Kenichi Handa <handa@m17n.org>
6883
6884 * font.h (Qascii_0): Extern it.
6885
6886 * font.c (Qascii_0): New variable.
6887 (syms_of_font): DEFSYM it.
6888 (font_open_by_name): If the registry "iso8859-1" fails, try also
6889 "ascii-0".
6890
6891 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
6892
68932008-06-08 Kenichi Handa <handa@m17n.org>
6894
6895 * .gdbinit (xfont): New command.
6896
68972008-06-08 Andreas Schwab <schwab@suse.de>
6898
6899 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
6900 * Makefile.in (menu.o): Update dependencies.
6901
6902 * Makefile.in (obj): Always add menu.o.
6903 * emacs.c (main): Always call syms_of_menu.
6904 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
6905
69062008-06-08 Chong Yidong <cyd@stupidchicken.com>
6907
6908 * Makefile.in: Compile menu.c.
6909
6910 * lisp.h: Declare syms_of_menu.
6911
6912 * emacs.c (main): Call syms_of_menu.
6913
6914 * keyboard.h: Relocate platform-independent menu definitions from
6915 xmenu.c.
6916
6917 * menu.c: New file. Relocate platform-independent menu
6918 definitions from xmenu.c. Suggested by Adrian Robert.
6919
6920 * xmenu.c: Remove platform-independent menu definitions.
6921 (menu_items menu_items_inuse, menu_items_allocated)
6922 (menu_items_used, menu_items_n_panes)
6923 (menu_items_submenu_depth): Move to keyboard.h.
6924 (init_menu_items, finish_menu_items, unuse_menu_items)
6925 (discard_menu_items, restore_menu_items, save_menu_items)
6926 (grow_menu_items, push_submenu_start, push_submenu_end)
6927 (push_left_right_boundary, push_menu_pane, push_menu_item)
6928 (keymap_panes, single_keymap_panes, single_menu_item)
6929 (list_of_panes, list_of_items, find_and_call_menu_selection)
6930 (xmalloc_widget_value, free_menubar_widget_value_tree)
6931 (parse_single_submenu, digest_single_submenu)
6932 (update_submenu_strings): Move to menu.c.
6933
69342008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
6935
6936 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
6937
69382008-06-06 Miles Bader <miles@gnu.org>
6939
6940 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
6941 face, not frame default.
6942
69432008-06-05 Martin Rudalics <rudalics@gmx.at>
6944
6945 * window.c (pop_up_windows, pop_up_frames)
6946 (display_buffer_reuse_frames, Vpop_up_frame_function)
6947 (Vdisplay_buffer_function, Veven_window_heights)
6948 (Vspecial_display_buffer_names, Vspecial_display_regexps)
6949 (Vspecial_display_function, Vsame_window_buffer_names)
6950 (Vsame_window_regexps, split_height_threshold)
6951 (Vsplit_window_preferred_function): Move those vars to window.el.
6952 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
6953 (Fdisplay_buffer): Move those functions to window.el.
6954 (syms_of_window): Remove corresponding declarations.
6955 (display_buffer): New function.
6956 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
6957 * dispnew.c (Flast_nonminibuf_frame): New function.
6958 * buffer.c (Fpop_to_buffer): Move to window.el.
6959
69602008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
6961
6962 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
6963
69642008-06-05 Kenichi Handa <handa@m17n.org>
6965
6966 * coding.c (detect_coding): Fix previous change.
6967 (detect_coding_system): Likewise.
6968
69692008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
6970
6971 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
6972
6973 * keymap.c (Vminibuffer_local_filename_must_match_map):
6974 Rename from Vminibuffer_local_must_match_filename_map.
6975 (syms_of_keymap):
6976 * minibuf.c (Fcompleting_read): Adjust accordingly.
6977 * commands.h: Rename declaration as well.
6978
69792008-06-05 Kenichi Handa <handa@m17n.org>
6980
6981 * font.c (Ffont_spec): Don't use font_parse_family_registry for
6982 family name.
6983 (Ffont_put): Likewise.
6984
6985 * fontset.c (fontset_find_font): Call font_open_for_lface with the
6986 current font-spec.
6987
6988 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
6989 is unspecified.
6990
6991 * xfaces.c (realize_x_face): If the font-related face attributes
6992 are the same as those of default face, realize a new fontset from
6993 default->fontset.
6994 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
6995
69962008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
6997
6998 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
6999 (move_it_in_display_line): New wrapper.
7000
7001 * window.c (window_scroll_pixel_based_preserve_x)
7002 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
7003 (window_scroll_pixel_based, window_scroll_line_based):
7004 Use them to preserve column positions.
7005 (syms_of_window): Initialize them.
7006
7007 * indent.c (Fvertical_motion): Extend first arg to allow passing an
7008 (HPOS . VPOS) pair.
7009
7010 * dispextern.h (move_it_in_display_line): Declare.
7011
70122008-06-05 Juanma Barranquero <lekktu@gmail.com>
7013
7014 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
7015 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
7016 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
7017
70182008-06-04 Juanma Barranquero <lekktu@gmail.com>
7019
7020 * window.c (Fset_window_parameter): Doc fix.
7021 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
7022
70232008-06-04 Joakim Verona <joakim@verona.se>
7024
7025 * window.h (struct window): Add new member window_parameters.
7026
7027 * window.c (Fwindow_parameters, Fwindow_parameter)
7028 (Fset_window_parameter): New defuns.
7029 (syms_of_window): Defsubr the new defuns.
7030 (make_window): Initialize window_parameters to nil.
7031
70322008-06-04 John Paul Wallington <jpw@pobox.com>
7033
7034 * eval.c (Fdefmacro): Doc fix.
7035
70362008-06-04 Kenichi Handa <handa@m17n.org>
7037
7038 * coding.c (detect_coding): Fix handling of coding->head_ascii.
7039 Be sure to call setup_coding_system when we find a proper coding system.
7040 (detect_coding_system): Fix handling of coding->head_ascii.
7041
70422008-06-03 Andreas Schwab <schwab@suse.de>
7043
7044 * font.c (font_prop_validate_spacing): Fix last change.
7045
70462008-06-03 Kenichi Handa <handa@m17n.org>
7047
7048 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
7049 (font_parse_fcname): Fix handling of unknown key.
7050
7051 * xfont.c (xfont_list): Try an alias.
7052
7053 * charset.c (char_charset): Return NULL if the arg charset_list is
7054 specified and C doesn't belong to any of them.
7055
70562008-06-02 Chip Coldwell <coldwell@redhat.com>
7057
7058 * font.c (font_pixel_size): Don't take cdr of an integer.
7059
70602008-06-02 Jim Meyering <meyering@redhat.com>
7061
7062 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
7063 * alloc.c (xfree): Return right away for a NULL arg.
7064 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
7065 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
7066 * mac.c (create_apple_event_from_event_ref): Likewise.
7067 (create_apple_event_from_drag_ref, cfstring_create_normalized):
7068 Likewise.
7069 * doprnt.c (doprnt1): Likewise.
7070 * frame.c (frame): Likewise.
7071 * keyboard.c (wipe_kboard): Likewise.
7072 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
7073 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
7074 * term.c (tty_default_color_capabilities, maybe_fatal)
7075 (delete_tty): Likewise.
7076 * w16select.c (string): Likewise.
7077 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
7078 * w32bdf.c (w32_free_bdf_font): Likewise.
7079 * w32fns.c (w32_unload_font): Likewise.
7080 * w32font.c (w32font_close): Likewise.
7081 * window.c (size_window): Likewise.
7082 * xselect.c (receive_incremental_selection): Likewise.
7083 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
7084 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
7085 * w32.c (stat): Likewise.
7086
7087 Remove useless if-before-free tests.
7088 * editfns.c (Fset_time_zone_rule): Likewise.
7089 * lread.c (nosuffix): Likewise.
7090 * ralloc.c (get_bloc): Likewise.
7091 * regex.c (reg_free): Likewise.
7092 * xftfont.c (xftfont_open, xftfont_close): Likewise.
7093 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
7094 * xsmfns.c (smc_save_yourself_CB): Likewise.
7095
70962008-06-02 Kenichi Handa <handa@m17n.org>
7097
7098 * font.c (font_find_for_lface): Handle float font size.
7099 (font_open_for_lface): Likewise.
7100
7101 * xfaces.c (x_supports_face_attributes_p): Check face->font before
7102 comparing the properties.
7103
71042008-06-01 Jason Rumney <jasonr@gnu.org>
7105
7106 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
7107 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
7108 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
7109 Don't add empty script list.
7110 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
7111
71122008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
7113
7114 * Makefile.in (dot, dotdot): Remove, update users.
7115 ".." has been used elsewhere in the file for a long time.
7116 (LIBXT_STATIC): Remove conditional based on unused variable.
7117
71182008-06-01 Miles Bader <miles@gnu.org>
7119
7120 * xfaces.c (Vface_remapping_alist): New variable.
7121 (syms_of_xfaces): Initialize it.
7122 (enum named_merge_point_kind): New type.
7123 (struct named_merge_point): Add `named_merge_point_kind' field.
7124 (push_named_merge_point): Make cycle detection respect different
7125 named-merge-point kinds.
7126 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
7127 Remove face-name alias resolution.
7128 (lface_from_face_name): New definition using
7129 `lface_from_face_name_no_resolve'.
7130 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
7131 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
7132 (get_lface_attributes): New definition that layers face-remapping on
7133 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
7134 (lookup_basic_face): New function.
7135 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
7136 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
7137 `get_lface_attributes'.
7138 (face_at_buffer_position): Use `lookup_basic_face' to lookup
7139 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
7140 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
7141
7142 * xdisp.c (init_iterator): Pass base_face_id through
7143 `lookup_basic_face' when we actually use it as a face-id.
7144 (handle_single_display_prop): Use `lookup_basic_face' to lookup
7145 DEFAULT_FACE_ID.
7146
7147 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
7148 lookup the initial face-id.
7149
7150 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
7151
71522008-06-01 Juanma Barranquero <lekktu@gmail.com>
7153
7154 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
7155 (Fremove_text_properties): Fix typos in docstrings.
7156
71572008-05-31 Kenichi Handa <handa@m17n.org>
7158
7159 * font.c (font_list_entities): Fix the car part of data to be
7160 stored in the cache.
7161
7162 * ftfont.c (ftfont_font_format): Don't use strcasestr.
7163
71642008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
7165
7166 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
7167 Add a `test' argument so another predicate than `equal' can be used.
7168 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
7169 (map_char_table): Remove unused vars `c' and `i'.
7170 * lisp.h (Foptimize_char_table): Adjust declaration.
7171 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
7172
71732008-05-30 Kenichi Handa <handa@m17n.org>
7174
7175 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
7176 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
7177 defined.
7178
71792008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
7180
7181 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
7182 (Fmake_variable_frame_local): Disallow mixing buffer-local and
7183 frame-local settings for the same variable.
7184
71852008-05-30 Kenichi Handa <handa@m17n.org>
7186
7187 * fontset.c (Ffont_info): Move to font.c.
7188 (syms_of_fontset): Delete defsubr of Sfont_info.
7189
7190 * font.c (font_style_to_value, font_score): Delete casting of the
7191 args to xstcasecmp.
7192 (register_font_driver): Increment num_font_drivers only when
7193 registering the driver globally.
7194 (Ffont_info): Move from fontset.c. Handle a font object too.
7195 (syms_of_font): Defsubr Sfont_info.
7196
71972008-05-29 Kenichi Handa <handa@m17n.org>
7198
7199 * coding.h (enum define_coding_utf8_arg_index): New enum.
7200 (enum coding_attr_index): Change coding_attr_utf_16_bom to
7201 coding_attr_utf_bom.
7202 (enum utf_bom_type): Rename from utf_16_bom_type.
7203 (struct utf_16_spec): Adjust for the above change.
7204 (struct coding_system): Add utf_8_bom in `spec' union.
7205
7206 * coding.c (CODING_UTF_8_BOM): New macro.
7207 (enum coding_category): Delete coding_category_utf_8, add
7208 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
7209 coding_category_utf_8_sig.
7210 (CATEGORY_MASK_UTF_8): Delete it.
7211 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
7212 (CATEGORY_MASK_UTF_8_SIG): New macros.
7213 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
7214 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
7215 CATEGORY_MASK_UTF_8_SIG.
7216 (CATEGORY_MASK_UTF_8): New macro.
7217 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
7218 (detect_coding_utf_8): Check BOM.
7219 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
7220 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
7221 (encode_coding_utf_16): Likewise.
7222 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
7223 (detect_coding, detect_coding_system): Handle utf-8-auto.
7224 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
7225 (syms_of_coding): Fix setting up of Vcoding_category_table.
7226
72272008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
7228
7229 * process.c (Faccept_process_output): If `millisec' is non-nil,
7230 `seconds' default to 0.
7231 (wait_reading_process_output): Also return non-nil if we read output
7232 from a non-running process.
7233
72342008-05-29 Jason Rumney <jasonr@gnu.org>
7235
7236 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
7237 `raster' specified.
7238 (add_font_entity_to_list): Allow non-opentype truetype fonts back
7239 in the uniscribe backend, but disallow any font that has no
7240 unicode subrange support.
7241
72422008-05-29 Juanma Barranquero <lekktu@gmail.com>
7243
7244 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
7245 Fix typos in docstrings.
7246
72472008-05-29 Kenichi Handa <handa@m17n.org>
7248
7249 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
7250 (Fx_family_fonts): Set frame correctly.
7251
72522008-05-28 Jason Rumney <jasonr@gnu.org>
7253
7254 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
7255
72562008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
7257
7258 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
7259 calling build_annotations.
7260
72612008-05-28 Juanma Barranquero <lekktu@gmail.com>
7262
7263 * coding.c (Fdecode_coding_region, Fencode_coding_region)
7264 (Fencode_coding_string):
7265 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
7266 <latin-extra-code-table>: Fix typos in docstrings.
7267 (syms_of_coding) <coding-system-alist>: Doc fix.
7268 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
7269
72702008-05-28 Kenichi Handa <handa@m17n.org>
7271
7272 * fontset.c (Ffont_info): Don't call font_close_object.
7273
7274 * font.c (font_parse_family_registry): Use Ffont_put to validate
7275 foundry and family.
7276 (font_delete_unmatched): Don't check spacing.
7277 (font_list_entities): Add spacing to the spec to list fonts.
7278
7279 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
7280 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
7281
7282 * coding.c (encode_coding_raw_text): Fix previous change.
7283 (encode_coding_object): When the dst_object is a buffer and is
7284 different from src_object, move gap to PT.
7285
72862008-05-27 Chong Yidong <cyd@stupidchicken.com>
7287
7288 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
7289
72902008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
7291
7292 * coding.c (encode_coding_raw_text): Set coding->produced_char for
7293 all branches. Compute it differently.
7294
7295 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
7296
72972008-05-27 Juanma Barranquero <lekktu@gmail.com>
7298
7299 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
7300 into "else if () ... else ...".
7301
73022008-05-27 Jason Rumney <jasonr@gnu.org>
7303
7304 * w32font.c (w32font_open_internal): Determine if glyph indices
7305 are likely to work here.
7306
73072008-05-27 Chong Yidong <cyd@stupidchicken.com>
7308
7309 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
7310 draw overlap glyphs with appropriate highlighting.
7311
73122008-05-27 Kenichi Handa <handa@m17n.org>
7313
7314 * xfont.c (xfont_open): Fix calculation of font->average_width.
7315
73162008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
7317
7318 * casefiddle.c (casify_object): Try to guess better whether the
7319 argument is a byte or a char.
7320
73212008-05-26 Andreas Schwab <schwab@suse.de>
7322
7323 * xselect.c (x_reply_selection_request): Properly handle format == 32.
7324 Always send multiples of format size.
7325
7326 * xterm.c (x_set_frame_alpha): Fix type mismatch.
7327
73282008-05-26 Jason Rumney <jasonr@gnu.org>
7329
7330 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
7331 (compute_metrics): Don't set failure if we just cleared the cache.
7332 (w32_weight_table): Remove unused variable.
7333 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
7334 backwards compatibility.
7335
73362008-05-25 Kenichi Handa <handa@m17n.org>
7337
7338 * w32term.c (x_draw_glyph_string):
7339 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
7340
7341 * xfaces.c: Delete unused function prototypes.
7342 (xstrlwr, font_frame): Delete them.
7343 (clear_face_cache): Delete unused variable.
7344
7345 * xftfont.c (xftfont_open): Delete unused variable.
7346 If underline_thickness is not 1, adjust underline_position.
7347
7348 * ftxfont.c (ftxfont_open): Delete unused variable.
7349
7350 * fontset.c (face_for_char): Optimize for the case of no charset
7351 property.
7352
7353 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
7354 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
7355 (otf_open, font_otf_capability, generate_otf_features)
7356 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
7357 Comment out by surrounding "#if 0" and "#endif" for the moment.
7358 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
7359 (syms_of_font): Codes for accessing above commented out.
7360
73612008-05-24 Eli Zaretskii <eliz@gnu.org>
7362
7363 * w32proc.c: Include dispextern.h.
7364
7365 * w32.c: Include dispextern.h.
7366
73672008-05-23 Juanma Barranquero <lekktu@gmail.com>
7368
7369 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
7370 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
7371 Fix typos in docstrings.
7372
73732008-05-23 Jason Rumney <jasonr@gnu.org>
7374
7375 * xsmfns.c: Remove includes that are already included by config.h.
7376
73772008-05-23 Kenichi Handa <handa@m17n.org>
7378
7379 * charset.c (Qemacs, charset_emacs): New variables.
7380 (char_charset): Fix for non-Unicode characters.
7381 (syms_of_charset): Define charset_emacs.
7382
7383 * w32term.c (x_draw_glyph_string): Be sure to update
7384 s->underline_thickness and s->underline_position. Be sure to draw
7385 underline within the current line area.
7386
7387 * xterm.c (x_draw_glyph_string): Be sure to update
7388 s->underline_thickness and s->underline_position. Be sure to draw
7389 underline within the current line area.
7390
7391 * fontset.c: Delete unused variables and add casting for char *
7392 throughout the file.
7393 (fontset_font): Try the fallback fonts of the current fontset
7394 before consulting the default fontset.
7395
7396 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
7397
7398 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
7399
74002008-05-22 Jason Rumney <jasonr@gnu.org>
7401
7402 * font.c: Don't include strings.h.
7403
7404 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
7405
7406 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
7407 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
7408 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
7409 to call xstrcasecmp.
7410
7411 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
7412
7413 * fontset.c (fs_query_fontset): Use xstrcasecmp.
7414
7415 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
7416
7417 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
7418
74192008-05-22 Kenichi Handa <handa@m17n.org>
7420
7421 * puresize.h (BASE_PURESIZE): Increase to 1220000.
7422
7423 * font.c (font_prop_validate_style): Adjust for the format
7424 change of font_style_table.
7425
7426 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
7427 two args.
7428
7429 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
7430 two args.
7431
74322008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
7433
7434 * minibuf.c (keys_of_minibuf): Delete.
7435 * lisp.h (keys_of_minibuf): Delete.
7436 * emacs.c (main): Don't call keys_of_minibuf.
7437
74382008-05-22 Kenichi Handa <handa@m17n.org>
7439
7440 * ftfont.c (ftfont_resolve_generic_family): Rename from
7441 ftfont_list_generic_family. Return a single family for each
7442 generic family.
7443 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
7444 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
7445 Call font_add_log.
7446 (ftfont_match): Call font_add_log.
7447
7448 * font.h (Ffont_xlfd_name): EXFUN adjusted.
7449 (FONT_DEBUG): Define it.
7450 (font_add_log): Extern it.
7451 (font_assert): Rename from xassert.
7452
7453 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
7454 (xfont_list_family): Call font_add_log.
7455 (xfont_match): Likewise.
7456 (memq_no_quit): Delete.
7457
7458 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
7459 call of Ffont_xlfd_name.
7460
7461 * xfaces.c (struct table_entry, slant_table, weight_table)
7462 (swidth_table): Move to font.c.
7463
7464 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
7465 xassert are changed to font_assert. Delete many unused variables.
7466 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
7467 New variables.
7468 (struct table_entry): Move from xfaces.c and modified.
7469 (weight_table, slant_table, width_table): Move from xfaces.c and
7470 contents adjusted for the change of struct table_entry.
7471 (font_style_to_value, font_style_symbolic): Adjust for the
7472 format change of font_style_table.
7473 (font_parse_family_registry): Don't overwrite existing foundry and
7474 family of font_spec.
7475 (font_score): Fix calculation of diff for sizes.
7476 (font_sort_entites): Call font_add_log.
7477 (font_delete_unmatched): Return a newly created list.
7478 (font_list_entities): Fix previous change. Call font_add_log.
7479 (font_matching_entity, font_open_entity, font_close_entity):
7480 Call font_add_log.
7481 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
7482 (Finternal_set_font_style_table): Delete.
7483 (BUILD_STYLE_TABLE): New macro.
7484 (build_style_table): New function.
7485 (Vfont_log, font_log_env_checked): New variables.
7486 (font_add_log): New function.
7487 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
7488 Declare Lisp variables "font-weight-table", "font-slant-table",
7489 "font-width-table", and "font-log". Initialize font_style_table.
7490
74912008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
7492
7493 * xterm.c (x_set_frame_alpha): Move declarations before statements.
7494
74952008-05-21 Seiji Zenitani <zenitani@mac.com>
7496 Ryo Yoshitake <ryo@shiftmode.net>
7497
7498 * frame.c (Qalpha): Add a new frame parameter `alpha'.
7499 (Vframe_alpha_lower_limit): New variable.
7500 (x_set_alpha): New function.
7501
7502 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
7503
7504 * xfns.c (x-create-frame, Qalpha):
7505 Initialize the frame parameter `alpha'.
7506 * xterm.c (OPAQUE, OPACITY): New.
7507 (x_set_frame_alpha): New function.
7508 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
7509
7510 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
7511 * w32fns.c (w32_frame_parm_handlers): Likewise.
7512
75132008-05-20 Jason Rumney <jasonr@gnu.org>
7514
7515 * w32font.c (add_font_entity_to_list): Don't add non-opentype
7516 truetype fonts to opentype list.
7517
75182008-05-20 Juanma Barranquero <lekktu@gmail.com>
7519
7520 * fontset.c (Ffontset_info): Doc fix.
7521 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
7522 <ignore-relative-composition>: Fix typos in docstrings.
7523
7524 * font.c (syms-of-font) <font-encoding-alist>:
7525 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
7526 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
7527 (Ffont_otf_alternates): Doc fixes.
7528
75292008-05-20 Kenichi Handa <handa@m17n.org>
7530
7531 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
7532 font.h through out the file.
7533 (FONT_DRIVERS): Rename from FONTOBJ.
7534 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
7535 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
7536
7537 * emacs.c (main): Call syms_of_font unconditionally.
7538
7539 * font.h (find_font_encoding): Extern it.
7540
7541 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
7542 fontset.c.
7543 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
7544 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
7545 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
7546 only when HAVE_WINDOW_SYSTEM is defined.
7547 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
7548 when HAVE_WINDOW_SYSTEM is defined.
7549
7550 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
7551 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
7552
7553 * xfaces.c: Include font.h unconditionally.
7554 (merge_face_ref, merge_face_vectors)
7555 (Finternal_set_lisp_face_attribute): Cancel the previous change.
7556
75572008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
7558
7559 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
7560 indirect_variable.
7561 * eval.c (lisp_indirect_variable): New fun.
7562 (Fuser_variable_p): Use it.
7563
75642008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
7565
7566 * lisp.h (indirect_variable):
7567 * data.c (indirect_variable, let_shadows_buffer_binding_p):
7568 Use Lisp_Symbol pointers rather than Lisp_Object.
7569 Adjust callers.
7570 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
7571 To this end, change calling-convention.
7572
7573 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
7574 if some non-hidden buffers are selected by string&pred.
7575
75762008-05-19 Chong Yidong <cyd@stupidchicken.com>
7577
7578 * process.c (wait_reading_process_output): Always check status
7579 when in batch mode.
7580
75812008-05-19 Kenichi Handa <handa@m17n.org>
7582
7583 * font.c (font_list_entities): Fix handling of cache.
7584 (font_matching_entity): Likewise.
7585
7586 * ftfont.c (cs_iso8859_1): Delete.
7587 (ft_face_cache): New variable.
7588 (struct ftfont_info): New member fc_charset_idx.
7589 (ftfont_build_basic_charsets): Delete.
7590 (fc_charset_table): New variable.
7591 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
7592 . FC_CHARSET_IDX) as :font-entity property in the font entity.
7593 Callers changed.
7594 (ftfont_lookup_cache, ftfont_get_charset): New functions.
7595 (ftfont_spec_pattern): New argument fc_charset_idx.
7596 Check registry more rigidly. Change callers.
7597 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
7598 change of :font-entity property of the font.
7599
7600 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
7601 property of the font.
7602
76032008-05-18 Juanma Barranquero <lekktu@gmail.com>
7604
7605 * coding.c (Fcoding_system_p): Rename argument to match docstring.
7606 (Funencodable_char_position, Fcheck_coding_systems_region)
7607 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
7608 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
7609 (Ffind_operation_coding_system, Fset_coding_system_priority)
7610 (Fcoding_system_eol_type): Doc fixes.
7611
76122008-05-17 Glenn Morris <rgm@gnu.org>
7613
7614 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
7615
76162008-05-16 Eli Zaretskii <eliz@gnu.org>
7617
7618 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
7619 and st_gid.
7620
7621 * frame.c (Fdelete_frame): Don't call font_update_drivers if
7622 HAVE_WINDOW_SYSTEM is not defined.
7623
7624 * xfaces.c (merge_face_ref, merge_face_vectors)
7625 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
7626 HAVE_WINDOW_SYSTEM is defined.
7627 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
7628
76292008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
7630
7631 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
7632
76332008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7634
7635 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
7636
76372008-05-15 Kenichi Handa <handa@m17n.org>
7638
7639 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
7640 preference.
7641
76422008-05-15 Glenn Morris <rgm@gnu.org>
7643
7644 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
7645
76462008-05-15 Chong Yidong <cyd@stupidchicken.com>
7647
7648 * fns.c (init_fns): Don't initialize weak_hash_tables here.
7649 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
7650
7651 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
7652
76532008-05-15 Kenichi Handa <handa@m17n.org>
7654
7655 * ftfont.c (ftfont_list): Downcase family name to check generic
7656 families.
7657
7658 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
7659 font-spec for QCfont value.
7660
7661 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
7662 buffer. Check the return value of it.
7663
76642008-05-14 Jason Rumney <jasonr@gnu.org>
7665
7666 * w32term.c (w32_get_glyph_overhangs): Remove.
7667 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
7668
76692008-05-14 Kenichi Handa <handa@m17n.org>
7670
7671 * font.c (font_prop_validate): Make nil a valid value.
7672 (font_clear_cache): Check if the cached vector of entities is nil
7673 or not.
7674
76752008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7676
7677 * emacs.c (main_thread): Conditionalize on
7678 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
7679 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
7680
7681 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
7682 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
7683 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
7684
76852008-05-14 Kenichi Handa <handa@m17n.org>
7686
7687 * coding.c (detect_coding_iso_2022): Ignore a coding category that
7688 has no corresponding coding system.
7689
76902008-05-14 Jason Rumney <jasonr@gnu.org>
7691
7692 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
7693
7694 * w32font.h (w32font_open_internal): Update declaration.
7695
7696 * w32font.c (w32font_open_internal): Change last argument from
7697 w32font_info struct to font object. Fill in font object from
7698 font_entity. Get Outline metrics if possible. Use them to
7699 calculate underline position and thickness. Use xlfd name as name
7700 property. Don't set codepage.
7701 (w32font_open): Pass font_object to w32font_open_internal. Don't
7702 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
7703 (w32font_draw): Use s->font.
7704 (clear_cached_metrics): Don't clear non-existent blocks.
7705
7706 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
7707 font was not found.
7708 (x_draw_glyph_string): Use underline position and thickness from font.
7709
7710 * w32uniscribe.c (uniscribe_open): Pass font_object to
7711 w32font_open_internal.
7712
77132008-05-14 Kenichi Handa <handa@m17n.org>
7714
7715 These changes are to delete all legacy font-handling codes, and
7716 make Emacs use only font-backends.
7717
7718 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
7719 (frame.o, image.o, print.o): Depend on $(FONTSRC).
7720
7721 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
7722
7723 * charset.h (Vcharset_non_preferred_head)
7724 (Vcurrent_iso639_language): Extern them.
7725
7726 * charset.c (Vcharset_non_preferred_head): New variable.
7727 (Vcurrent_iso639_language): New variable.
7728 (syms_of_charset): Declare it as a Lisp variable.
7729 (char_charset): Don't check non preferred charsets. As a last
7730 resort, return charset_unicode.
7731 (Fset_charset_priority): Update Vcharset_non_preferred_head.
7732
7733 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
7734 conditionals. Don't check enable_font_backend. Delete all codes
7735 used only when USE_FONT_BACKEND is not defined.
7736
7737 * dispextern.h (struct glyph_string): Change type of `font' to
7738 `struct font *'.
7739 (struct glyph_string): New member underline_position and
7740 underline_thickness.
7741 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
7742 (struct face): Change type of `font' to `struct font *'. Remove
7743 members `font_name', `font_info_id'.
7744 (per_char_metric, encode_char): Delete externs.
7745 (calc_pixel_width_or_height): Adjust the prototype.
7746
7747 * emacs.c (enable_font_backend): Delete extern.
7748 (main): Don't set enable_font_backend. Don't check the command
7749 line argument "-disable-font-backend".
7750
7751 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
7752 (enum font_property_index): New members FONT_DPI_INDEX,
7753 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
7754 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
7755 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
7756 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
7757 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
7758 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
7759 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
7760 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
7761 (struct font_spec, struct font_entity): New structs.
7762 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
7763 (struct font): Many members from old "struct font_info" moved to
7764 here. Members font and entity deleted.
7765 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
7766 the new font-related objects.
7767 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
7768 (CHECK_FONT_GET_OBJECT): Likewise.
7769 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
7770 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
7771 (struct font_driver): New members case_sensitive anc check. Type
7772 of the member list and open changed.
7773 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
7774 (font_symbolic_width, font_find_object, font_get_spec)
7775 (font_set_lface_from_name): Delete extern.
7776 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
7777
7778 * font.c: Include <strings.h>.
7779 (enable_font_backend): Delete it.
7780 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
7781 (CHECK_VALIDATE_FONT_SPEC): Delete it.
7782 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
7783 (null_string): Delete it.
7784 (null_vector): Make it static.
7785 (font_family_alist): Delete it.
7786 (Qnormal): Extern it.
7787 (QCextra, QClanguage): Delete it.
7788 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
7789 (font_make_spec, font_make_entity, font_make_object)
7790 (font_intern_prop): Renamed from intern_downcase. Don't downcase
7791 the string. Callers changed.
7792 (font_pixel_size): Adjusted for the format change of font-related
7793 objects.
7794 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
7795 (font_style_to_value, font_style_symbolic): New function.
7796 (build_font_family_alist): Delete it.
7797 (font_registry_charsets): Use Fassoc_string instead of
7798 assq_no_quit.
7799 (font_prop_validate_symbol): Don't return null_string.
7800 (font_prop_validate_style): Adjusted for the change of
7801 style-related values in a font vector.
7802 (font_property_table): Delete entries for QClanguage and
7803 QCantialias, add entries for QCavgwidth.
7804 (get_font_prop_index): Delete the 2nd argument FROM.
7805 (font_prop_validate): Arguments changed.
7806 (font_put_extra): Adjusted for the change of font-related objects.
7807 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
7808 (font_parse_fcname, font_unparse_fcname)
7809 (font_prepare_composition): Likewise.
7810 (font_parse_family_registry): Renamed from font_merge_old_spec.
7811 (otf_open): Delete the 1st arg entity.
7812 (font_otf_capability): Adjusted for the above change.
7813 (font_score): New arg alternate_families. Adjusted for the change
7814 of font-related objects.
7815 (font_sort_entites): New arg best_only.
7816 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
7817 Delete them.
7818 (font_match_p): Check alternate families.
7819 (font_find_object): Delete it.
7820 (font_check_object): New function.
7821 (font_clear_cache): Adjusted for the change of font-related objects.
7822 (font_delete_unmatched): New arg.
7823 (font_list_entities): Call font_driver->list with a spec that
7824 doesn't specify style-related properties.
7825 (font_matching_entity): Arguments changed. Caller changed.
7826 (font_open_entity): Adjusted for the change of font-related objects.
7827 (font_close_object, font_has_char, font_encode_char)
7828 (font_get_name, font_get_spec): Likewise.
7829 (font_spec_from_name, font_clear_prop, font_update_lface):
7830 New functions.
7831 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
7832 (font_prepare_for_face, font_done_for_face, font_open_by_name)
7833 (font_at): Adjusted for the change of font-related objects.
7834 (font_range): New function.
7835 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
7836 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
7837 (Fcopy_font_spec, Fmerge_font_spec): New function.
7838 (Ffont_family_list): Renamed from list-families.
7839 (Finternal_set_font_style_table): Arguments changed.
7840 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
7841 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
7842 change of font-related objects.
7843 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
7844
7845 * fontset.h (struct font_info): Delete it. Most members go to
7846 struct font.
7847 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
7848 (enum FONT_SPEC_INDEX): Delete it.
7849 (font_info, list_fonts_func, load_font_func, query_font_func)
7850 (set_frame_fontset_func, find_ccl_program_func)
7851 (get_font_repertory_func, new_fontset_from_font_name): Delete
7852 externs.
7853 (fontset_from_font_name): Extern it.
7854 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
7855 (FONT_INFO_FROM_FACE): Deleted.
7856 (face_for_font): Adjust prototype.
7857
7858 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
7859 conditionals. Don't check enable_font_backend. Delete all codes
7860 used only when USE_FONT_BACKEND is not defined.
7861 (get_font_info_func, list_font_func, load_font_func)
7862 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
7863 (get_font_repertory_func): Delete them.
7864 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
7865 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
7866 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
7867 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
7868 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
7869 (fontset_compare_rfontdef): New function.
7870 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
7871 rfont-defs by qsort. Adjusted for the change of font-group vector.
7872 (load_font_get_repertory): Deleted.
7873 (fontset_find_font): Use new macros to ref/set elements of
7874 font-def and rfont-def.
7875 (fontset_font): Fix the timing of remembering that no font for C.
7876 (free_face_fontset): Do nothing if the face has no fontset.
7877 (face_suitable_for_char_p): Use new macros to ref/set elements of
7878 rfont-def.
7879 (face_for_char): Likewise. Call face_for_char with font_object.
7880 (fs_load_font): Delete. Delete #pragma surrounding it.
7881 (fs_query_fontset): Use strcasecmp instead of strcmp.
7882 (generate_ascii_font_name): Adjusted for the format change of
7883 font-spec.
7884 (Fset_fontset_font): Likewise. Use new macros to set elements of
7885 font-def.
7886 (Fnew_fontset): Use font_unparse_xlfd to generate
7887 FONTSET_ASCII (fontset).
7888 (new_fontset_from_font_name): Deleted.
7889 (fontset_from_font): Renamed from new_fontset_from_font. Check if
7890 a fontset is already created for the font. FIx updating of
7891 Vfontset_alias_alist.
7892 (fontset_ascii_font): Deleted.
7893 (Ffont_info): Adjusted for the format change of font-spec.
7894 (Finternal_char_font): Likewise.
7895 (Ffontset_info): Likewise.
7896 (syms_of_fontset): Don't check load_font_func.
7897
7898 * fns.c (internal_equal): Handle PREV_FONT.
7899
7900 * frame.h: Delete USE_FONT_BACKEND conditional.
7901
7902 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
7903 conditionals. Don't check enable_font_backend. Delete all codes
7904 used only when USE_FONT_BACKEND is not defined.
7905 (x_set_font): Call x_new_font, not x_new_fontset2.
7906 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
7907 already set for the frame.
7908
7909 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
7910 a font-entity by font_make_entity. Use font_intern_prop instead
7911 of intern_downcase. Use FONT_SET_STYLE to set a style-related
7912 font property. If a font is scalable, set avgwidth property to 0.
7913 Set font-entity property by font_put_extra.
7914 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
7915 (ffont_driver): Adjusted for the change of struct font_driver.
7916 (ftfont_spec_pattern): New function.
7917 (ftfont_list): Return a list, not vector.
7918 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
7919 (ftfont_list_family): Don't downcase names.
7920 (ftfont_free_entity): Deleted.
7921 (ftfont_open): Return a font-object. Adjusted for the change of
7922 struct font. Get underline_thickness and underline_position from
7923 font property. Don't update dpyinfo->smallest_font_height and
7924 dpyinfo->smallest_char_width.
7925 (ftfont_close): Don't free `struct font'.
7926 (ftfont_has_char): Adjusted for the format change of font-entity.
7927 (ftfont_encode_char, ftfont_text_extents): Likewise.
7928
7929 * ftxfont.c (ftxfont_list): Return a list, not vector.
7930 (ftxfont_open): Return a font-object. Adjusted for the change of
7931 struct font. Get underline_thickness and underline_position from
7932 font property. Don't update dpyinfo->smallest_font_height and
7933 dpyinfo->smallest_char_width.
7934 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
7935 (ftxfont_draw): Adjusted for the change of struct font.
7936
7937 * image.c (image_ascent): Don't include "charset.h". Include
7938 "character.h" and "font.h".
7939
7940 * lisp.h (enum pvec_type): New member PREV_FONT.
7941 (Fassoc_string): EXFUN it.
7942
7943 * print.c: Include font.h.
7944 (print_object): Handle font-related objects.
7945
7946 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
7947 conditionals. Don't check enable_font_backend. Delete all codes
7948 used only when USE_FONT_BACKEND is not defined.
7949 (handle_auto_composed_prop): Do nothing if it->f is not on a
7950 window system. Check how many following characters can be
7951 displayed by the same font.
7952 (calc_pixel_width_or_height): Type of the 4th arg is changed to
7953 'struct font *'.
7954 (get_char_face_and_encoding): Assign the whole encoding task to
7955 the `encode-char' method of a font driver.
7956 (fill_composite_glyph_string): Adjusted for the change of `struct
7957 face' and `struct glyph_string'.
7958 (fill_glyph_string): Likewise.
7959 (get_per_char_metric): Arguments changed.
7960 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
7961 and `struct glyph_string'.
7962 (produce_stretch_glyph, calc_line_height_property)
7963 (x_produce_glyphs): Likewise.
7964
7965 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
7966 conditionals. Don't check enable_font_backend. Delete all codes
7967 used only when USE_FONT_BACKEND is not defined. Use
7968 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
7969 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
7970 (Qp): Extern them.
7971 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
7972 Deleted.
7973 (struct font_name): Deleted.
7974 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
7975 (compare_fonts_by_sort_order): New function.
7976 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
7977 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
7978 Deleted.
7979 (Fx_family_fonts): Use font_list_entities, and sort fonts by
7980 compare_fonts_by_sort_order.
7981 (Fx_font_family_list): Call Ffont_family_list.
7982 (face_numeric_value, face_numeric_weight, face_numeric_slant)
7983 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
7984 (face_symbolic_slant, face_symbolic_swidth)
7985 (split_font_name_into_vector, build_font_name_from_vector)
7986 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
7987 (font_rescale_ratio, split_font_name, build_font_name)
7988 (free_font_names, sort_fonts, x_face_list_fonts)
7989 (face_font_available_p, sorted_font_list, cmp_font_names)
7990 (font_list_1, concat_font_list, font_list, remove_duplicates):
7991 Deleted.
7992 (Fx_list_fonts): Use Ffont_list.
7993 (LFACE_AVGWIDTH): Deleted.
7994 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
7995 by FONTP.
7996 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
7997 (set_lface_from_font_name): Delete it.
7998 (set_lface_from_font): Renamed from
7999 set_lface_from_font_and_fontset. Caller changed. Don't set
8000 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
8001 for face.
8002 (merge_face_vectors): Copy font-spec if necessary.
8003 Clear properties of the font-spec if necessary.
8004 (merge_face_ref): Clear properties of the font-spec if necessary.
8005 (Finternal_set_lisp_face_attribute): Likewise.
8006 (set_font_frame_param): Use font_load_for_lface to load a
8007 font-object, and call Fmodify_frame_parameters with it.
8008 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
8009 font name by Ffont_xlfd_name.
8010 (Finternal_lisp_face_attribute_values): Don't check QCweight,
8011 QCslant, and QCwidth.
8012 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
8013 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
8014 Compare fonts by EQ.
8015 (lookup_non_ascii_face): Deleted.
8016 (face_for_font): The 2nd argument changed.
8017 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
8018 Check atomic font properties by case insensitive.
8019 (realize_non_ascii_face): Set face->overstrike correctly.
8020 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
8021 (dump_realized_face): Get font name from
8022 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
8023
8024 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
8025 conditionals. Don't check enable_font_backend. Delete all codes
8026 used only when USE_FONT_BACKEND is not defined.
8027 (xic_create_xfontset): Original code deleted and renamed from
8028 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
8029 (x_make_gc): Don't set GCFont in GCs.
8030 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
8031 opened by "fixed".
8032 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
8033 find_ccl_program_func, query_font_func, set_frame_fontset_func,
8034 get_font_repertory_func.
8035
8036 * xfont.c: Include <stdlib.h> and "ccl.h".
8037 (struct xfont_info): New structure.
8038 (xfont_query_font): Deleted.
8039 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
8040 moved from xterm.c.
8041 (xfont_driver): Adjusted for the change of struct font_driver.
8042 (compare_font_names): New function.
8043 (xfont_list_pattern): Sort font names case insensitively. Make
8044 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
8045 (xfont_list): Return a list, not vector.
8046 (xfont_match): If the font doesn't have QCname property, generate
8047 a name from the other font properties.
8048 (xfont_open): Return a font-object. Adjusted for the change of
8049 struct font. Get underline_thickness and underline_position from
8050 font property. Don't update dpyinfo->smallest_font_height and
8051 dpyinfo->smallest_char_width.
8052 (xfont_close): Don't free struct font.
8053 (xfont_prepare_face): Adjusted for the change of struct font.
8054 (xfont_done_face): Deleted.
8055 (xfont_has_char): Adjusted for the change of struct font.
8056 (xfont_encode_char, xfont_draw): Likewise.
8057 (xfont_check): New function.
8058
8059 * xftfont.c (xftfont_list): Adjusted for the change of `list'
8060 callback function.
8061 (xftfont_match): Adjusted for the format change of font-entity.
8062 (xftfont_open): Adjusted for the format change of font-entity and
8063 font-object. Adjusted for the change of struct font. Return a
8064 font-object. Don't update dpyinfo->smallest_font_height and
8065 dpyinfo->smallest_char_width.
8066 (xftfont_close): Block input while calling XftFontClose.
8067 (xftfont_prepare_face): Don't block input while calling
8068 xftfont_get_colors. Adjusted for the change of struct font.
8069 (xftfont_shape): Return value of error case fixed.
8070
8071 * xrdb.c (x_load_resources): Don't setup a fontset resource.
8072
8073 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
8074 conditionals.
8075 (FONT_WIDTH): Return (f)->max_width.
8076 (struct x_display_info): Delete member `font'.
8077 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
8078 (x_find_ccl_program, x_get_font_repertory): Delete externs.
8079 (struct x_output): Change type of `font' to `struct font *'.
8080
8081 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
8082 conditionals. Don't check enable_font_backend. Delete all codes
8083 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
8084 (x_per_char_metric, x_encode_char): Deleted.
8085 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
8086 (x_compute_glyph_string_overhangs): Adjusted for the change of
8087 `struct face'.
8088 (x_draw_glyph_string_foreground)
8089 (x_draw_composite_glyph_string_foreground): Likewise.
8090 (x_draw_glyph_string): Likewise. Use font->underline_position and
8091 font->underline_thickness.
8092 (x_new_font): Renamed from x_new_fontset2.
8093 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
8094 (x_check_font): Call `check' method of a font driver.
8095 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
8096 (x_query_font, x_get_font_repertory): Deleted.
8097 (x_find_ccl_program): Renamed and moved to xfont.c.
8098 (x_redisplay_interface): Adjusted for the change of `struct
8099 redisplay_interface'.
8100
8101 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
8102 conditionals. Don't check enable_font_backend. Delete all codes
8103 used only when USE_FONT_BACKEND is not defined. Surround non-used
8104 code by "#ifdef OLD_FONT" and "endif".
8105 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
8106
8107 * w32font.h (struct w32font_info): New member.
8108 (FONT_COMPAT): New macro.
8109 (w32font_open_internal): Prototype adjusted.
8110
8111 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
8112 OLD_FONT" and "endif".
8113
8114 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
8115 conditionals. Don't check enable_font_backend. Delete all codes
8116 used only when USE_FONT_BACKEND is not defined.
8117 (w32font_open): Return a font-object. Make a font-object by
8118 font_make_object. Adjusted for the change of struct w32font_info.
8119 (w32font_close): Don't free struct font. Adjusted for the change
8120 of struct w32font_info.
8121 (w32font_encode_char, w32font_text_extents, w32font_draw):
8122 Adjusted for the change of struct w32font_info.
8123 (w32font_draw): Likewise.
8124 (w32font_list_internal): Return a list, not vector.
8125 (w32font_open_internal): Change the 4th arg to font-object.
8126 Adjusted for the change of struct w32font_info and font-object format.
8127 (add_font_name_to_list): Don't downcase names.
8128 (w32_enumfont_pattern_entity): Make a font-entity by
8129 font_make_entity. Adjusted for the format change of font-entity.
8130 Use FONT_SET_STYLE to set a style-related font property. If a
8131 font is scalable, set avgwidth property to 0. Set font-entity
8132 property by font_put_extra.
8133 (font_matches_spec): Adjusted for the format change of font-entity.
8134 (w32_weight_table, w32_decode_weight): New variables.
8135 (w32_encode_weight): New function.
8136 (fill_in_logfont): Adjusted for the format change of font-spec.
8137 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
8138 weight value.
8139 (w32font_driver): Adjusted for the change of struct font_driver.
8140
8141 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
8142 conditionals. Don't check enable_font_backend. Surround non-used
8143 code by "#ifdef OLD_FONT" and "endif".
8144 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
8145 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
8146
8147 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
8148 conditionals. Don't check enable_font_backend. Delete all codes
8149 used only when USE_FONT_BACKEND is not defined. Surround non-used
8150 code by "#ifdef OLD_FONT" and "endif".
8151
8152 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
8153 (uniscribe_open): Return value changed to font-object.
8154 Adjusted for the format change of font-object.
8155 (uniscribe_otf_capability): Adjusted for the change of struct font.
8156 (add_opentype_font_name_to_list): Don't downcase names.
8157 (uniscribe_font_driver): Adjusted for the change of struct
8158 font_driver.
8159
81602008-05-13 Chong Yidong <cyd@stupidchicken.com>
8161
8162 * dispnew.c (update_frame_1): Check if tty output is still valid
8163 before flushing it.
8164
81652008-05-13 Jan Djärv <jan.h.d@swipnet.se>
8166
8167 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
8168 to Gtk+ menus.
8169
81702008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
8171
8172 * dired.c (file_name_completion): Tweak the code so as to always do it
8173 in a single pass. Tighten the scope of some variables.
8174
8175 * dired.c (Qdefault_directory): New var.
8176 (file_name_completion): Use it instead of Fexpand_file_name.
8177 (syms_of_dired): Initialize it.
8178
81792008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
8180
8181 * fileio.c (double_dollars): Remove dead code.
8182
81832008-05-10 Eli Zaretskii <eliz@gnu.org>
8184
8185 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
8186 Mention w32-get-true-file-attributes in doc string.
8187
8188 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
8189
81902008-05-09 Glenn Morris <rgm@gnu.org>
8191
8192 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
8193 2008-04-23.
8194
81952008-05-09 Eli Zaretskii <eliz@gnu.org>
8196
8197 Support for reporting owner and group of each file on MS-Windows:
8198 * dired.c (stat_uname, stat_gname): New functions, with special
8199 implementation for w32.
8200 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
8201
8202 * w32.c: Rename the_passwd_* to dflt_passwd_*.
8203 (dflt_group_name): New static variable.
8204 (dflt_group): Rename from the_group.
8205 (init_user_info): Init dflt_group fields. Get user's group name
8206 from LookupAccountSid.
8207 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
8208 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
8209 New initialization states.
8210 (globals_of_w32): Initialize them to zero. Initialize the default
8211 group name to "None".
8212 (GetFileSecurity_Name): New global var, the name of the function
8213 to call for GetFileSecurity.
8214 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
8215 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
8216 (get_file_security, get_security_descriptor_owner)
8217 (get_security_descriptor_group, is_valid_sid)
8218 (get_file_security_desc, get_rid, get_name_and_id)
8219 (get_file_owner_and_group): New functions.
8220 (stat): Use get_file_security_desc and get_file_owner_and_group to
8221 report the owner and primary group of each file. Don't ignore the
8222 high 32 bits of file's size, now that st_size is 64-bit wide.
8223 Fix test when to get true file attributes.
8224 (init_user_info): Use get_rid instead of equivalent inline code.
8225 (fstat): Don't ignore the high 32 bits of file's size.
8226
82272008-05-09 Chong Yidong <cyd@stupidchicken.com>
8228
8229 * image.c (png_load): Use correct bit-depth for setting background
8230 color.
8231
82322008-05-08 Eli Zaretskii <eliz@gnu.org>
8233
8234 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
8235 epa-hook.elc.
8236
82372008-05-08 Juanma Barranquero <lekktu@gmail.com>
8238
8239 * font.c (Ffont_match_p): Don't use `iff' in docstring.
8240
82412008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
8242
8243 * macfns.c (Fx_create_frame): Make a copy of frame parameters
8244 because the original parameters are in pure storage now.
8245 (mac_window): Remove unused params. Update callers.
8246
82472008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
8248
8249 * lread.c (substitute_object_recurse): Use lower-level primitives.
8250 Don't signal errors when traversing sub-char-tables.
8251 Don't loop over all the possible characters when traversing char-tables.
8252
8253 * print.c (print_preprocess): Add sub-char-tables to the print-table,
8254 just like we do in print.c.
8255
82562008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
8257
8258 * minibuf.c (Ftry_completion): Remove code left over from when we used
8259 scmp instead of Fcompare_strings.
8260
82612008-05-04 Juanma Barranquero <lekktu@gmail.com>
8262
8263 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
8264
82652008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8266
8267 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
8268 Create bitmap context in native byte order.
8269
8270 * macterm.c (XDrawLine)
8271 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
8272 context in native byte order.
8273
82742008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8275
8276 * config.in: Regenerate.
8277
8278 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
8279 New definitions for Image I/O support.
8280 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
8281 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
8282 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
8283 (mac_data_provider_release_data, image_load_image_io)
8284 [USE_MAC_IMAGE_IO]: New functions.
8285 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
8286 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
8287 (init_image_func_pointer) [MAC_OSX]: Remove function.
8288 (image_load_quartz2d) [MAC_OSX]: Check availability of
8289 CGImageCreateWithPNGDataProvider at compile time.
8290 Use lowercase `false' for boolean constant.
8291 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
8292 Use image_load_image_io.
8293 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
8294 Don't check MyCGImageCreateWithPNGDataProvider.
8295 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
8296 Don't call init_image_func_pointer.
8297
8298 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
8299
8300 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
8301 Make variable non-static.
8302 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
8303 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
8304
8305 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
8306 (RED_FROM_ULONG): Mask off higher bits.
8307 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
8308
8309 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
8310 Include AvailabilityMacros.h.
8311 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
8312 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
8313
83142008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
8315
8316 * chartab.c (Fset_char_table_range): If range is t, really set all
8317 chars to that value.
8318
83192008-05-03 Eli Zaretskii <eliz@gnu.org>
8320
8321 * dired.c (Ffile_attributes): Don't allow the device number become
8322 negative.
8323
83242008-05-02 Daiki Ueno <ueno@unixuser.org>
8325
8326 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
8327
83282008-05-02 Juri Linkov <juri@jurta.org>
8329
8330 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
8331 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
8332 DEFAULT argument as a list of default values in docstrings.
8333
83342008-05-01 Chong Yidong <cyd@stupidchicken.com>
8335
8336 * puresize.h (BASE_PURESIZE): Increase to 1210000.
8337
83382008-05-01 Martin Rudalics <rudalics@gmx.at>
8339
8340 * dispnew.c (change_frame_size_1): Preserve small windows when
8341 shrinking frames by calling set_window_height|width with third
8342 arg 2.
8343
8344 * window.h (struct window): Replace field too_small_ok by field
8345 resize_proportionally.
8346
8347 * window.c (make_window): Initialize resize_proportionally.
8348 (enlarge_window): Temporarily set resize_proportionally to make
8349 sure that shrink_windows does scale the window proportionally.
8350 (shrink_windows): When window has resize_proportionally set try
8351 to shrink it proportionally by stealing from other windows.
8352 (struct saved_window, Fset_window_configuration)
8353 (compare_window_configurations): Handle resize_proportionally.
8354 (WINDOW_TOTAL_SIZE): New macro.
8355 (window_min_size, shrink_windows, size_window): Use it.
8356 (check_min_window_sizes): Remove. Invalid values of
8357 window-min-height|width are handled by window_min_size_2 now.
8358 (size_window, Fsplit_window, enlarge_window)
8359 (adjust_window_trailing_edge, grow_mini_window): Don't call
8360 check_min_window_sizes.
8361 (window_min_size_2, window_min_size_1, window_min_size):
8362 New argument safe_p for retrieving "safe" minimum sizes.
8363 (Fdisplay_buffer, Fsplit_window, enlarge_window)
8364 (adjust_window_trailing_edge, grow_mini_window):
8365 Adjust arguments of window_min_size... functions.
8366 (shrink_windows): Argument min_size removed. New argument
8367 safe_p allows shrinking windows to their safe minimum sizes.
8368 Calculate minimum size and decide whether a window shall be
8369 deleted for each window individually.
8370 (size_window): When nodelete_p equals 2, tell shrink_windows to
8371 delete windows only if their new minimum size is no more safe.
8372 (shrink_window_lowest_first): Call window_min_size_1 to make
8373 sure to preserve modeline of bottom-most window when resizing
8374 the minibuffer.
8375 (Fset_window_configuration, Fcurrent_window_configuration)
8376 (compare_window_configurations): Do not handle
8377 window-min-height|width any more.
8378 (syms_of_window): Clarify window-min-height|width doc-strings.
8379
83802008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
8381
8382 * dired.c (file_name_completion): Fix up the encoding/decoding issue
8383 some more. Copy some of the code from Ftry_completions.
8384 Remove special case code that dates back to initial revision when the
8385 slash was only added when necessary and that can't trigger nowadays.
8386
83872008-04-27 Kenichi Handa <handa@m17n.org>
8388
8389 * font.c (font_prop_validate): Signal `error' instead of `font'.
8390
83912008-04-29 Jason Rumney <jasonr@gnu.org>
8392
8393 * w32fns.c (Fw32_battery_status): New defun.
8394 (syms_of_w32fns): Defsubr it.
8395
83962008-04-28 Andreas Schwab <schwab@suse.de>
8397
8398 * dired.c (file_name_completion): Fix another mixing of encoded
8399 and decoded names.
8400
84012008-04-28 Juanma Barranquero <lekktu@gmail.com>
8402
8403 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
8404
84052008-04-27 Juanma Barranquero <lekktu@gmail.com>
8406
8407 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
8408
84092008-04-27 Andreas Schwab <schwab@suse.de>
8410
8411 * dired.c (file_name_completion): Fix inappropriate mixing of
8412 encoded and decoded names.
8413
8414 * xterm.c (XTread_socket): Fix use of uninitialized variable.
8415
8416 * puresize.h (BASE_PURESIZE): Increase to 1200000.
8417
84182008-04-26 Eli Zaretskii <eliz@gnu.org>
8419
8420 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
8421 2008-03-31, it's not needed anymore with `struct stat' definition
8422 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
8423 for the same reasons.
8424
84252008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
8426
8427 * m/sparc.h: Additional redefinitions for GNU/Linux.
8428
84292008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8430
8431 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
8432 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
8433 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
8434 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
8435 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
8436 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
8437 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
8438 Likewise.
8439
8440 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
8441 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
8442 (mac_ax_number_of_characters): Add externs.
8443 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
8444 [USE_MAC_TSM]: Likewise.
8445 (mac_handle_text_input_event) [MAC_OSX]:
8446 Handle kEventTextInputOffsetToPos for no active input area case.
8447 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
8448 (mac_handle_document_access_event)
8449 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
8450 (install_application_handler) [MAC_OSX]: Register handlers for
8451 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
8452 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
8453 Register mac_handle_document_access_event.
8454
8455 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
8456 Make functions non-static.
8457
84582008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
8459
8460 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
8461 (read_file_name_completion_ignore_case, insert_default_directory)
8462 (Qdefault_directory): Move to minibuffer.el.
8463 (Fread_file_name): Call the new `read-file-name' instead.
8464
84652008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8466
8467 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
8468 Make function non-static.
8469 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
8470 Remove function.
8471 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
8472 Move to mactoolbox.c.
8473 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
8474
8475 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
8476 (mac_rect_make): New macro.
8477
8478 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
8479 instead of float.
8480 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
8481 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
8482 (XSetBackground) [USE_CG_DRAWING]: Likewise.
8483 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
8484 CGRectMake.
8485 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
8486 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
8487 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
8488 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
8489 instead of WindowRef in argument type.
8490 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
8491 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
8492 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
8493 instead of DISPLAY. All uses changed.
8494 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
8495 (x_calc_absolute_position): Simplify so as not to use
8496 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
8497
8498 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
8499 instead of WindowRef in argument type.
8500 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
8501 [TARGET_API_MAC_CARBON]: Remove externs.
8502 (create_apple_event, mac_event_parameters_to_lisp)
8503 [TARGET_API_MAC_CARBON]: Add externs.
8504
8505 * mactoolbox.c (Vmac_ts_script_language_on_focus)
8506 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
8507 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
8508 is clicked.
8509 (x_activate_menubar): Remove extern for saved_menu_event_location.
8510 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
8511 Move from mac.c.
8512
85132008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8514
8515 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
8516 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
8517
85182008-04-23 Jason Rumney <jasonr@gnu.org>
8519
8520 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
8521 attributes only for local files.
8522
8523 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
8524 default to Qlocal.
8525
85262008-04-22 Juri Linkov <juri@jurta.org>
8527
8528 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
8529 read-buffer-to-switch instead of using the letter "B".
8530
85312008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
8532
8533 * fileio.c (Qdefault_directory): New variable.
8534 (Fread_file_name): Use it to pass `dir' to the completion functions.
8535
85362008-04-20 Chong Yidong <cyd@stupidchicken.com>
8537
8538 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
8539
85402008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
8541
8542 * keyboard.c (Vpre_help_message): Remove.
8543 (show_help_echo): Remove default C code.
8544
8545 * dired.c (directory_files_internal, file_name_completion):
8546 Only call ENCODE_FILE if the string is indeed decoded.
8547
85482008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
8549
8550 * Makefile.in (TOOLKIT_DEFINES): Remove.
8551 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
8552
85532008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8554
8555 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
8556 (mactoolbox.o): New target.
8557
8558 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
8559 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
8560
8561 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
8562 Use mac_set_frame_window_background instead of XSetWindowBackground.
8563 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
8564 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
8565 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
8566 instead of SetWindowTitleWithCFString.
8567 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
8568 Move function to mactoolbox.c.
8569 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
8570 Use mac_set_window_modified instead of SetWindowModified.
8571 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
8572 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
8573 (Fx_focus_frame): Use mac_front_non_floating_window instead of
8574 FrontNonFloatingWindow. Use mac_activate_window instead of
8575 ActivateWindow. Use mac_active_non_floating_window instead of
8576 ActiveNonFloatingWindow.
8577 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
8578 Use mac_show_hourglass and mac_hide_hourglass.
8579 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
8580 instead of GetGlobalMouse.
8581 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
8582 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
8583 Use mac_bring_window_to_front instead of BringToFront.
8584 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
8585 mactoolbox.c.
8586 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
8587 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
8588 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
8589 mactoolbox.c.
8590
8591 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
8592 (XtPointer): Move typedef from macmenu.c.
8593 (enum button_type): Move enum from macmenu.c.
8594 (widget_value): Move typedef from macmenu.c.
8595 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
8596 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
8597 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
8598 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
8599 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
8600 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
8601 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
8602 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
8603 (Selection): Move typedef from macselect.c.
8604 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
8605 macterm.c.
8606 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
8607 (mac_is_window_collapsed, mac_bring_window_to_front)
8608 (mac_send_window_behind, mac_hide_window, mac_show_window)
8609 (mac_collapse_window, mac_front_non_floating_window)
8610 (mac_active_non_floating_window, mac_activate_window)
8611 (mac_move_window_structure, mac_move_window, mac_size_window)
8612 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
8613
8614 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
8615 (enum mac_menu_kind): Move enum to mactoolbox.c.
8616 (min_menu_id): Move variable to mactoolbox.c.
8617 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
8618 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
8619 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
8620 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
8621 [TARGET_API_MAC_CARBON]: Likewise.
8622 (XtPointer): Move typedef to macgui.h.
8623 (enum button_type): Move enum to macgui.h.
8624 (widget_value): Move typedef to macgui.h.
8625 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
8626 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
8627 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
8628 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
8629 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
8630 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
8631 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
8632 (popup_activated_flag): Make variable non-static.
8633 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
8634 (add_menu_item, fill_menu, dispose_menus):
8635 Move functions to mactoolbox.c.
8636 (restore_show_help_function, menu_target_item_handler)
8637 (install_menu_target_item_handler, mac_handle_dialog_event)
8638 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
8639 [TARGET_API_MAC_CARBON]: Likewise.
8640 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
8641 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
8642 (find_and_call_menu_selection, name_is_separator): Make function
8643 non-static.
8644 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
8645 to mactoolbox.c.
8646 (set_frame_menubar): Don't call install_menu_quit_handler.
8647 (menu_item_selection): New variable.
8648 (mac_menu_show): Use create_and_show_popup_menu.
8649 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
8650 selection but set variable menu_item_selection. All uses changed.
8651 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
8652 Call install_menu_quit_handler. Move to mactoolbox.c.
8653
8654 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
8655 (Selection): Move typedef to macgui.h.
8656 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
8657 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
8658 Make variables non-static.
8659 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
8660 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
8661 Make functions non-static.
8662 (Vmac_service_selection) [MAC_OSX]: Likewise.
8663 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
8664 (mac_valid_selection_target_p, mac_clear_selection)
8665 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
8666 (mac_put_selection_value, mac_selection_has_target_p)
8667 (mac_get_selection_value, mac_get_selection_target_list)
8668 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
8669 Move functions to mactoolbox.c.
8670 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
8671 Likewise.
8672 (copy_scrap_flavor_data, mac_handle_service_event)
8673 (install_service_handler) [MAC_OSX]: Likewise.
8674 (syms_of_macselect) <Vmac_dnd_known_types>:
8675 Use mac_dnd_default_known_types.
8676
8677 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
8678 Move to mactoolbox.c.
8679 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
8680 (Fx_selection_owner_p): Add EXFUN.
8681 (install_window_handler, remove_window_handler, XSetWindowBackground):
8682 Remove externs.
8683 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
8684 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
8685 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
8686 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
8687 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
8688 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
8689 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
8690 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
8691 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
8692 (create_and_show_popup_menu, mac_get_selection_from_symbol)
8693 (mac_valid_selection_target_p, mac_clear_selection)
8694 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
8695 (mac_put_selection_value, mac_selection_has_target_p)
8696 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
8697 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
8698 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
8699 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
8700 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
8701 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
8702 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
8703 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
8704 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
8705
8706 * mactoolbox.c: New file.
8707
87082008-04-18 Jason Rumney <jasonr@gnu.org>
8709
8710 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
8711
87122008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
8713
8714 * character.c (Fmultibyte_char_to_unibyte):
8715 Return latin1 chars unchanged.
8716
8717 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
8718 relocated if it points to `name'.
8719
87202008-04-17 Kenichi Handa <handa@m17n.org>
8721
8722 * data.c (Faset): Allow setting a multibyte character in an
8723 ASCII-only unibyte string.
8724
8725 * lisp.h (STRING_SET_MULTIBYTE): New macro.
8726
87272008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
8728
8729 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
8730 done in config.h.
8731
87322008-04-16 Juanma Barranquero <lekktu@gmail.com>
8733
8734 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
8735 (Fchar_direction): Add usage in the docstring.
8736
87372008-04-15 Chong Yidong <cyd@stupidchicken.com>
8738
8739 * keyboard.c (read_key_sequence): Remove always-true checks.
8740
87412008-04-14 Jason Rumney <jasonr@gnu.org>
8742
8743 * w32font.c (w32font_open_internal): Set max_bounds.descent in
8744 compatibility struct, for better underline positioning.
8745
87462008-04-13 David Hansen <david.hansen@gmx.net>
8747
8748 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
8749 string.
8750
87512008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
8752
8753 * m/hp800.h (XUINT, XSET): Remove.
8754
87552008-04-12 Juanma Barranquero <lekktu@gmail.com>
8756
8757 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
8758 previous change.
8759
87602008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
8761
8762 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
8763 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
8764
87652008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
8766
8767 * keymap.h (map_keymap_canonical): Declare.
8768 * xmenu.c (single_keymap_panes): Use it.
8769
87702008-04-11 Glenn Morris <rgm@gnu.org>
8771
8772 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
8773 set the target's value to that of the alias.
8774
87752008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
8776
8777 * term.c (set_tty_color_mode): Left over typo.
8778
87792008-04-10 Michael Albinus <michael.albinus@gmx.de>
8780
8781 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
8782 only after check for file name handler functions. Signal, when
8783 native functionality is not supported.
8784 (syms_of_fileio): Declare it unconditionally.
8785
87862008-04-10 Jason Rumney <jasonr@gnu.org>
8787
8788 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
8789 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
8790
8791 * w32.c (logon_network_drive): Also logon to remote drives that
8792 are mapped to drive letters.
8793
87942008-04-10 Glenn Morris <rgm@gnu.org>
8795
8796 * xdisp.c (truncate-partial-width-windows): Doc fix.
8797
87982008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
8799
8800 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
8801 Move functions to minibuffer.el.
8802 (syms_of_fileio): Don't declare them.
8803
88042008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
8805
8806 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
8807 (syms_of_minibuf): Remove its initialization.
8808
8809 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
8810
88112008-04-09 Juanma Barranquero <lekktu@gmail.com>
8812
8813 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
8814
88152008-04-09 Jason Rumney <jasonr@gnu.org>
8816
8817 * makefile.w32-in (distclean): Delete makefile too.
8818 (maintainer-clean): New target.
8819
8820 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
8821
8822 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
8823 for new font backend and composite cases.
8824
88252008-04-09 Jan Djärv <jan.h.d@swipnet.se>
8826
8827 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
8828 Most of the code moved to run_timers.
8829 (do_pending_atimers): Call run_timers.
8830 (run_timers): New function.
8831
8832 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
8833 run atimers.
8834
8835 * process.c (wait_reading_process_output): The same as above.
8836
88372008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
8838
8839 * minibuf.c (last_exact_completion): Remove variable.
8840 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
8841 (complete_and_exit_1, complete_and_exit_2)
8842 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
8843 (Fdisplay_completion_list, display_completion_list_1)
8844 (Fminibuffer_completion_help, Fself_insert_and_exit)
8845 (Fexit_minibuffer, Fminibuffer_message): Move functions to
8846 minibuffer.el.
8847 (syms_of_minibuf): Remove corresponding initializations.
8848
8849 * keyboard.c (Qdeactivate_mark): New var.
8850 (command_loop_1): Use it to call `deactivate-mark'.
8851 (syms_of_keyboard): Initialize it.
8852
8853 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
8854 to another frame.
8855 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
8856 Don't call set_tty_color_mode.
8857 (store_frame_param): Reset previous_frame rather than call
8858 set_tty_color_mode.
8859 * term.c (set_tty_color_mode): Rewrite.
8860 * dispextern.h (set_tty_color_mode): New type.
8861 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
8862
88632008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
8864
8865 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
8866 for generic chars, which do not exist any more in emacs-unicode.
8867
88682008-04-08 Michael Albinus <michael.albinus@gmx.de>
8869
8870 * coding.c (detect_coding_emacs_mule)
8871 (Ffind_operation_coding_system): Fix typo.
8872
88732008-04-08 Jason Rumney <jasonr@gnu.org>
8874
8875 * w32uniscribe.c (SNAME): Extract only symbol name.
8876
8877 * w32font.h (struct w32_metric_cache): New struct.
8878 (w32font_info): Use it.
8879 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
8880 (CACHE_BLOCKSIZE): New constants.
8881
8882 * w32font.c (Qja, Qko, Qzh): New symbols.
8883 (syms_of_w32font): Initialise them.
8884 (font_matches_spec): Use them to filter by language.
8885 (recompute_cached_metrics): Remove function.
8886 (compute_metrics, clear_cached_metrics): New functions.
8887 (w32font_encode_char): Use them to manage metric cache.
8888 (w32font_text_extents): Cache metrics for all glyphs on demand.
8889 Delay converting glyph indices to WORD until needed.
8890 (w32font_open_internal): Initialize metric cache to empty.
8891 (registry_to_w32_charset): Charset should always be a symbol.
8892 (fill_in_logfont, list_all_matching_fonts): Family should
8893 always be a symbol.
8894
88952008-04-06 Jason Rumney <jasonr@gnu.org>
8896
8897 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
8898 Give up if glyph indices not supported. Use uniscribe obtained
8899 ABC widths for individual metrics. Map glyph clusters back to
8900 characters using fClusterStart flag. Return number of glyphs
8901 produced, not chars processed.
8902 (uniscribe_shape): Map char at FROM to current glyph.
8903
89042008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8905
8906 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
8907 Use SetMenuItemHierarchicalMenu.
8908
89092008-04-05 Jason Rumney <jasonr@gnu.org>
8910
8911 * image.c (pbm_load): Allow color values up to 65535.
8912 Throw an error if max_color_idx is outside the supported range.
8913 Report an error when image size is invalid.
8914 Read two bytes at a time when raw images have max_color_idx above 255.
8915
89162008-04-05 Eli Zaretskii <eliz@gnu.org>
8917
8918 * w32.c (readdir): If FindFirstFile/FindNextFile return in
8919 cFileName a file name that includes `?' characters, use the 8+3
8920 alias in cAlternateFileName instead.
8921
89222008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
8923
8924 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
8925 append "CCL: Quitted" when the CCL program is quitted.
8926 (setup_ccl_program): Initialize ccl->quit_silently to zero.
8927
8928 * ccl.h (struct ccl_program): New member quit_silently.
8929
89302008-04-05 Chong Yidong <cyd@stupidchicken.com>
8931
8932 * search.c (compile_pattern_1): Treat non-nil and non-string of
8933 search-spaces-regexp as nil.
8934
8935 * minibuf.c (Fassoc_string): Tweak docstring.
8936
89372008-04-05 Eli Zaretskii <eliz@gnu.org>
8938
8939 * dired.c (Ffile_attributes): Support inode numbers wider than 32
8940 bits. Remove ugly WINDOWSNT-specific kludge introduced on
8941 2008-03-14 to force inode be positive.
8942
8943 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
8944 _S_* ones, since we now use our own sys/stat.h.
8945 (stat, fstat): Don't mangle the inode number.
8946 (init_user_info): Don't restrict UID and GID to 0-60000 range.
8947
89482008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
8949
8950 * frame.h (struct frame): Give one more bit to `visible' since we use
8951 values larger than 1 to indicate obscured frames on ttys.
8952
8953 * keymap.c (Qkeymap_canonicalize): New var.
8954 (Fmap_keymap_internal): New fun.
8955 (describe_map): Use keymap-canonicalize.
8956
8957 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
8958 (Fundo_boundary): Set them.
8959 (syms_of_undo): Initialize them.
8960 (record_point): Use them instead of last_point_position*.
8961 (last_undo_buffer): Change type.
8962
89632008-04-04 Jason Rumney <jasonr@gnu.org>
8964
8965 * w32font.c (w32font_text_extents): Use font's ascent and descent.
8966 (recompute_cached_metrics): Don't set ascent and descent per char.
8967
8968 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
8969 (uniscribe_check_otf): Add GC protection before consing.
8970 Rearrange loop for counting features.
8971
89722008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
8973
8974 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
8975 buffer with byte-size of source buffer.
8976
89772008-04-03 Chong Yidong <cyd@stupidchicken.com>
8978
8979 * callint.c (Fcall_interactively): Handle temporary region even
8980 when shift-select-mode is off.
8981
89822008-04-03 Jason Rumney <jasonr@gnu.org>
8983
8984 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
8985
89862008-04-03 Kenichi Handa <handa@m17n.org>
8987
8988 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
8989 (CATEGORY_MASK_UTF_16): Likewise.
8990 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
8991 binary file.
8992 (detect_coding): Add null-byte detection for a binary file.
8993 (detect_coding_system): Likewise.
8994
89952008-04-03 Jason Rumney <jasonr@gnu.org>
8996
8997 * w32uniscribe.c: New file.
8998
8999 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
9000
9001 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
9002
9003 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
9004 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
9005 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
9006 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
9007 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
9008 (Qphonetic): New symbols.
9009 (syms_of_w32font): Initialize them.
9010 (font_supported_scripts): Use them.
9011 (w32font_list_family): List all charsets.
9012 (w32font_text_extents, recompute_cached_metrics): Fix metric
9013 calculations.
9014 (w32_enumfont_pattern_entity): Make full_type a DWORD.
9015 Give opentype fonts their own format.
9016 (font_matches_spec): New arguments backend and logfont.
9017 Handle :otf spec for uniscribe backend.
9018 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
9019 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
9020
9021 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
9022 font backend.
9023 (globals_of_w32fns): Initialize uniscribe font backend.
9024
9025 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
9026 dependencies.
9027 (w32uniscribe.$(O)): New file to build.
9028 (FONT_OBJ): Include w32uniscribe.$(O).
9029 (LIBS): Add uniscribe libraries.
9030
9031 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
9032
90332008-04-02 Chong Yidong <cyd@stupidchicken.com>
9034
9035 * callint.c (Vshift_select_mode): New var.
9036 (Finteractive): Document new ^ spec.
9037 (Fcall_interactively): Call handle-shift-selection if the ^ spec
9038 is present.
9039
9040 * keyboard.c (Vthis_command_keys_shift_translated): New var.
9041 (command_loop_1): Avoid running the direct display versions of
9042 forward-char and backward-char if shift-selection may occur.
9043 (read_key_sequence): Set Vthis_command_keys_shift_translated if
9044 shift-translation takes place.
9045
9046 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
9047 avoid clobbering by define-minor-mode.
9048
9049 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
9050 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
9051
9052 * syntax.c (Fforward_word): Add ^ interactive spec.
9053
9054 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
9055 (Fscroll_right): Add ^ interactive spec.
9056
90572008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
9058
9059 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
9060
9061 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
9062
9063 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
9064
90652008-03-31 Juri Linkov <juri@jurta.org>
9066
9067 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
9068
90692008-03-30 Jan Djärv <jan.h.d@swipnet.se>
9070
9071 * gtkutil.c (xg_set_geometry): Fix indentation.
9072 (xg_resize_outer_widget): Remove.
9073 (x_wm_size_hint_off): Fix indentation.
9074 (xg_frame_set_char_size): Call flush_and_sync after
9075 gtk_window_resize.
9076 (x_wm_set_size_hint): Pass NULL as geometry window to
9077 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
9078 Add menu bar and tool bar height to base height.
9079 (xg_update_frame_menubar, free_frame_menubar)
9080 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
9081 (update_frame_tool_bar, free_frame_tool_bar):
9082 Change xg_resize_outer_widget to xg_frame_set_char_size.
9083
90842008-03-30 Michael Albinus <michael.albinus@gmx.de>
9085
9086 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
9087 (Fdbus_call_method): New parameter TIMEOUT.
9088 (dbus-send-signal): Optimize UNGCPRO call.
9089
90902008-03-29 Juri Linkov <juri@jurta.org>
9091
9092 * window.c (Fdisplay_buffer): Move call to
9093 Vsplit_window_preferred_function out of conditions that check
9094 if window is eligible for vertical splitting.
9095 When Vsplit_window_preferred_function is non-nil, call it and use
9096 its non-nil return value as window. Otherwise, continue doing
9097 vertical splitting using Fsplit_window with arg horflag=nil.
9098 (syms_of_window) <Vsplit_window_preferred_function>: Change the
9099 default value from `split-window' to nil.
9100
91012008-03-29 Juri Linkov <juri@jurta.org>
9102
9103 * callint.c (Fcall_interactively): Revert 2008-03-16 change
9104 for interactive code letters 'b' and 'B'.
9105
91062008-03-29 Eli Zaretskii <eliz@gnu.org>
9107
9108 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
9109 multibyte string.
9110
91112008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
9112
9113 * keyboard.c (pending_funcalls): New var.
9114 (timer_check): Run it.
9115 (syms_of_keyboard): Initialize it.
9116 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
9117 (Vdelete_terminal_functions): New vars.
9118 (syms_of_terminal): Initialize them.
9119 (Fdelete_terminal): Run delete-terminal-functions.
9120 * xdisp.c (safe_eval): Rewrite.
9121 (safe_call2): New fun.
9122 * frame.c (Qdelete_frame_functions): New var.
9123 (syms_of_frame): Initialize it.
9124 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
9125 * lisp.h (safe_call2, pending_funcalls): Declare.
9126
91272008-03-28 Andreas Schwab <schwab@suse.de>
9128
9129 * indent.c (Fmove_to_column): Move declaration before statements.
9130
91312008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
9132
9133 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
9134 (struct frame): Use bit fields for boolean vars.
9135
9136 * process.c (server_accept_connection): Simplify naming.
9137 (emacs_get_tty_pgrp): Use SDATA.
9138
9139 * coding.c (decode_coding_object): Fix last change.
9140
91412008-03-27 Jason Rumney <jasonr@gnu.org>
9142
9143 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
9144
91452008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
9146
9147 * charset.c (Fdefine_charset_internal): Change the way of
9148 registering charsets in Vcharset_order_list.
9149 (syms_of_charset): Make the charset `eight-bit' supplementary.
9150
91512008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
9152
9153 * regex.c (EXTEND_BUFFER): Change order of pointer addition
9154 operations, to avoid having the difference between pointers
9155 overflow.
9156
91572008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
9158
9159 * indent.c (check_display_width): New fun.
9160 (scan_for_column): Use it.
9161
9162 * data.c (syms_of_data): Mark most-positive-fixnum and
9163 most-negative-fixnum as constants.
9164
9165 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
9166
9167 * indent.c (scan_for_column): Extract from current_column_1.
9168 Merge with the same code from Fmove_to_column.
9169 (current_column_1, Fmove_to_column): Use it.
9170
91712008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
9172
9173 * keymap.c (map_keymap_internal): New fun.
9174 (map_keymap): Use it.
9175 (Fmap_keymap_internal): New fun.
9176 (Fmap_keymap): Remove left-out test from before make_save_value.
9177
9178 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
9179
9180 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
9181 Use XCAR/XCDR.
9182
9183 * process.h (struct Lisp_Process): Remove filter_multibyte.
9184 * process.c (QCfilter_multibyte): Remove.
9185 (setup_process_coding_systems): Don't use filter_multibyte.
9186 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
9187 (read_process_output): Don't adjust multibyteness to filter_multibyte.
9188 (Fset_process_filter_multibyte): Change the coding-system to
9189 approximate the previous behavior.
9190 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
9191 coding-system.
9192
9193 * coding.c (decode_coding_object): When not decoding into a buffer,
9194 obey the coding system's preference of (uni|multi)byte.
9195
91962008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
9197
9198 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
9199 every char is changed and has a different byte-length.
9200 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
9201 Fix int -> EMACS_INT.
9202
92032008-03-23 David Hansen <david.hansen@gmx.net>
9204
9205 * dbusbind.c (xd_read_message): Remove extra copying of message
9206 strings. Check for NULL `interface' or `member'.
9207
92082008-03-22 Eli Zaretskii <eliz@gnu.org>
9209
9210 * w32.c (readdir): If FindFirstFile/FindNextFile return in
9211 cFileName a file name that includes `?' characters, use the 8+3
9212 alias in cAlternateFileName instead.
9213
92142008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
9215
9216 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
9217
92182008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
9219
9220 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
9221 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
9222 work on current_buffer only instead (that was already the case
9223 for some of the code anyway).
9224 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
9225 (temp_set_point, temp_set_point_both): Use EMACS_INT.
9226 (SET_PT, SET_PT_BOTH): Adjust.
9227 * intervals.h (set_point, temp_set_point, set_point_both)
9228 (temp_set_point_both): Remove redundant declarations.
9229
92302008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
9231
9232 * fileio.c (Finsert_file_contents):
9233 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
9234 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
9235 when buffer != current_buffer anyway.
9236
92372008-03-20 Andreas Schwab <schwab@suse.de>
9238
9239 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
9240 as default.
9241
92422008-03-19 Jason Rumney <jasonr@gnu.org>
9243
9244 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
9245 (syms_of_w32fns): Initialize them.
9246 (HOURGLASS_ID): New constant.
9247 (x_window_to_frame): Don't check hourglass_window.
9248 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
9249 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
9250 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
9251 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
9252 Only change the cursor if hourglass is not active.
9253 (Fx_create_frame): Initialize frame's current_cursor.
9254 (hourglass_atimer): Remove.
9255 (hourglass_started): New function.
9256 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
9257 (show_hourglass): Adapt to w32, changing argument to frame.
9258
9259 * w32term.h (struct w32_output): Remove hourglass_window.
9260 Add current_cursor.
9261
9262 * eval.c (call_debugger, Fsignal):
9263 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
9264 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
9265 (Fexecute_extended_command, cancel_hourglass_unwind):
9266 * minibuf.c (read_minibuf):
9267 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
9268
92692008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
9270
9271 * window.c (run_funs): New fun.
9272 (run_window_configuration_change_hook): Use it to run the buffer-local
9273 and the global part of the hook.
9274
9275 * xdisp.c (format_mode_line_unwind_data): Add window argument.
9276 (unwind_format_mode_line): Restore selected window.
9277 (x_consider_frame_title, Fformat_mode_line): Set selected window.
9278
92792008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
9280
9281 * editfns.c (Fchar_equal): Check they are valid characters.
9282
9283 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
9284
92852008-03-17 Andreas Schwab <schwab@suse.de>
9286
9287 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
9288 against a charset.
9289
9290 * lisp.h (Fbuffer_list): Declare.
9291
92922008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 9293
aac0c6e3
MR
9294 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
9295 handlebox_widget is != 0.
9296
92972008-03-16 Juri Linkov <juri@jurta.org>
9298
9299 * callint.c (Fcall_interactively): For interactive code letters
9300 'b' and 'B' put the buffer list into the list of default "future"
9301 values of the minibuffer.
9302
93032008-03-16 Andreas Schwab <schwab@suse.de>
9304
9305 * keyboard.c (read_key_sequence): Fix downcasing of letters with
9306 modifiers.
9307
9308 * regex.c (re_match_2_internal): Correct matching of a charset
9309 against latin-1 characters.
9310
93112008-03-16 Kenichi Handa <handa@m17n.org>
9312
9313 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
9314 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
9315 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
9316 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
9317 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
9318 CHAR_STRING_ADVANCE.
9319 (produce_chars): Fix for the case that the source and the
9320 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
9321 instead of CHAR_STRING_ADVANCE.
9322 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
9323 STRING_CHAR_ADVANCE.
9324
93252008-03-15 Andreas Schwab <schwab@suse.de>
9326
9327 * regex.c (re_match_2_internal): Correct matching of eight bit
9328 characters in unibyte strings.
9329
93302008-03-15 Martin Rudalics <rudalics@gmx.at>
9331
9332 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
9333 at end of range when it coincides with the end of the buffer.
9334
93352008-03-14 Eli Zaretskii <eliz@gnu.org>
9336
9337 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
9338
9339 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
9340
93412008-03-14 Jason Rumney <jasonr@gnu.org>
9342
9343 * editfns.c (initial_tz): New variable.
9344 (syms_of_editfns): Initialize it.
9345 (Fset_time_zone_rule): Set it when first called.
9346 Use it when TZSTRING is nil.
9347
9348 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
9349 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
9350 (monitor_from_point_fn, get_monitor_info_fn): New globals.
9351 (globals_of_w32fns): Initialize them.
9352 (compute_tip_xy): Use them to position tooltips.
9353
93542008-03-14 Glenn Morris <rgm@gnu.org>
9355
9356 * emacs.c (main): Revert previous change.
9357 (standard_args): Revert -internal-script back to -scriptload,
9358 and remove the long-option form.
9359
93602008-03-13 Glenn Morris <rgm@gnu.org>
9361
9362 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
9363 Remove option -enable-font-backend.
9364
93652008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
9366
9367 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
9368
93692008-03-11 Jan Djärv <jan.h.d@swipnet.se>
9370
9371 * xterm.c (x_connection_closed): For GTK: If this is the last
9372 terminal just exit without closing the display.
9373
93742008-03-11 Jason Rumney <jasonr@gnu.org>
9375
9376 * w32font.c (w32font_full_name): Use floor to round.
9377
f0131492 93782008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
9379
9380 * sound.c (alsa_configure): Declare vol at beginning of block.
9381
9382 * fontset.c (Ffontset_info): Remove extra semicolon.
9383
93842008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
9385
9386 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
9387 size of resulting string.
9388
93892008-03-10 Jason Rumney <jasonr@gnu.org>
9390
9391 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
9392
93932008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9394
9395 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
9396 Don't pretend as if characters with display property haven't been
9397 consumed for string-replacing-string case.
9398
93992008-03-08 Kim F. Storm <storm@cua.dk>
9400
9401 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
9402 (get_next_display_element, next_element_from_string)
9403 (next_element_from_ellipsis, next_element_from_buffer): Use it.
9404
94052008-03-08 Andreas Schwab <schwab@suse.de>
9406
9407 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
9408
94092008-03-06 Jason Rumney <jasonr@gnu.org>
9410
9411 * w32font.c (w32_registry): Take font_type argument. Use ANSI
9412 when charset not specified. Only translate ANSI to unicode when
9413 font_type is truetype.
9414 (w32font_coverage_ok): New function.
9415 (add_font_entity_to_list): Use it to filter unsuitable fonts.
9416
94172008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
9418
9419 * lread.c (Fread_char): Resolve modifiers.
9420 (Fread_char_exclusive): Likewise.
9421
9422 * character.c (char_resolve_modifier_mask): New function.
9423 (char_string): Use char_resolve_modifier_mask.
9424 (Fchar_resolve_modifiers): New function.
9425 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
9426 function.
9427
94282008-03-04 Jason Rumney <jasonr@gnu.org>
9429
9430 * makefile.w32-in: Always include w32font.c in the build.
9431 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
9432
94332008-03-04 Andreas Schwab <schwab@suse.de>
9434
9435 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
9436 (versionclean): Likewise.
9437
94382008-03-04 Juanma Barranquero <lekktu@gmail.com>
9439
9440 * .cvsignore: Add oo.
9441
94422008-03-03 Andreas Schwab <schwab@suse.de>
9443
9444 * coding.c (decode_coding_object): Inhibit gap shrinking while
9445 decoding in place.
9446
94472008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
9448
9449 * w32term.c: Remove unused include "gnu.h".
9450 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
9451
9452 * gnu.h: Rename to ...
9453 * emacs-icon.h: ... this.
9454 * xterm.c: Use emacs-icon.h instead of gnu.h.
9455 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
9456
94572008-03-03 Juanma Barranquero <lekktu@gmail.com>
9458
9459 * w32font.c: Include math.h.
9460
94612008-03-03 Jason Rumney <jasonr@gnu.org>
9462
9463 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
9464 Compute options separately.
9465 (w32font_open_internal): Set glyph_idx before caching metrics.
9466
9467 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
9468 Define if system headers don't.
9469 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
9470 (w32font_encode_char): Don't declare here.
9471
9472 * w32font.c (Quniscribe, QCformat): New symbols.
9473 (syms_of_w32font): Define them.
9474 (w32font_has_char): Indicate uncertainty.
9475 (w32font_encode_char): Encode as glyph point. Make static.
9476 (recompute_cached_metrics): New function.
9477 (w32font_open_internal): Use it. Set font to use glyph points
9478 initially. Set format based on type of font.
9479 (w32font_text_extents, w32font_draw): Optionally use glyph points.
9480 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
9481 on it. Set format based on information available here.
9482 (add_font_entity_to_list): Identify backend based on opentype_only.
9483
94842008-03-02 Andreas Schwab <schwab@suse.de>
9485
9486 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
9487
9488 * coding.c (decode_coding_big5, produce_chars):
9489 Fix typos in last change.
9490
94912008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
9492
9493 * gnu.h: New icon.
9494
94952008-03-02 Kenichi Handa <handa@m17n.org>
9496
9497 * coding.c (decode_coding_utf_8): When eol-type of CODING is
9498 `dos', don't decode '\r' if that is the last in the source.
9499 (decode_coding_utf_16, decode_coding_emacs_mule)
9500 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
9501 (decode_coding_raw_text, decode_coding_charset): Likewise.
9502 (produce_chars): Don't decode EOL here. Use EMACS_INT.
9503
95042008-03-01 Jason Rumney <jasonr@gnu.org>
9505
9506 * w32font.c (w32font_full_name): Report point size for scalable fonts.
9507
95082008-03-01 Kim F. Storm <storm@cua.dk>
9509
9510 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
9511
95122008-03-01 Jason Rumney <jasonr@gnu.org>
9513
9514 * w32font.c (w32font_full_name): New function.
9515 (w32font_open_internal): Use it.
9516
95172008-03-01 Kim F. Storm <storm@cua.dk>
9518
9519 * dispnew.c (line_draw_cost): Fix invalid glyph check.
9520
95212008-03-01 Jason Rumney <jasonr@gnu.org>
9522
9523 * font.c (font_unparse_fcname): Increase len when style is a symbol.
9524
95252008-03-01 Jan Djärv <jan.h.d@swipnet.se>
9526
9527 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
9528 xg_frame_resized when the event is for the edit widget.
9529
9530 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
9531
9532 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
9533 set_char_size.
9534 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
9535 operations on widgets here. Just set frame size if needed.
9536 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
9537 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
9538 (x_wm_set_size_hint): Set size hints on the edit widget only, not
9539 the whole frame.
9540 (xg_create_tool_bar): Move attachment of the tool bar to
9541 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
9542 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
9543
95442008-03-01 Jason Rumney <jasonr@gnu.org>
9545
9546 * w32fns.c (w32_msg_pump): Disable debug code.
9547
95482008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9549
9550 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
9551
95522008-02-29 Chong Yidong <cyd@stupidchicken.com>
9553
9554 * xdisp.c (next_overlay_string): Don't set
9555 overlay_strings_at_end_processed_p if we're currently reading from
9556 a display string.
9557
95582008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
9559
9560 * xdisp.c (get_overlay_strings_1): Fix typo.
9561
95622008-02-29 Chong Yidong <cyd@stupidchicken.com>
9563
9564 * xdisp.c (get_overlay_strings_1): Add missing argument type.
9565
95662008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
9567
9568 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
9569
9570 * xdisp.c (display_mode_element): Cancel the previous change.
9571 (decode_mode_spec): Likewise.
9572 (handle_auto_composed_prop): Don't make composition if it->string
9573 is a string.
9574
95752008-02-27 Kim F. Storm <storm@cua.dk>
9576
9577 * lisp.h (GLYPH): Change type from int to struct with separate char
9578 and face_id members.
9579 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
9580 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
9581 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
9582 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
9583 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
9584 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
9585 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
9586 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
9587 handle new Lisp glyph code encoding, either an integer or a cons.
9588
9589 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
9590 (GLYPH_ALIAS): Delete.
9591 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
9592 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
9593 (GLYPH_FROM_CHAR): Replace macro by ...
9594 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
9595
9596 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
9597 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
9598 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
9599 (GLYPH_INVALID_P): New macro.
9600 (spec_glyph_lookup_face): Update prototype.
9601
9602 * dispnew.c (line_draw_cost): Adapt to new glyph type.
9603 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
9604 new glyph code encoding.
9605 (spec_glyph_lookup_face): No return value; update passed glyph instead.
9606 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
9607
9608 * xdisp.c (get_next_display_element, next_element_from_display_vector):
9609 Adapt to new glyph type and new glyph code encoding.
9610
9611 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
9612
9613 * indent.c (current_column, current_column_1, Fmove_to_column)
9614 (compute_motion): Adapt to new glyph code encoding.
9615
9616 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
9617
96182008-02-27 Chong Yidong <cyd@stupidchicken.com>
9619
9620 * process.c (wait_reading_process_output): Check for window
9621 changes caused by timers.
9622 Suggested by Johan Bockgård.
9623
96242008-02-27 Glenn Morris <rgm@gnu.org>
9625
9626 * emacs.c (USAGE1): Add `--disable-font-backend'.
9627
96282008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
9629
9630 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
9631 is made to the buffer.
9632
96332008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
9634
9635 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
9636 (face_at_string_position):
9637 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
9638 (face_at_string_position):
9639 * xdisp.c (display_string, next_overlay_change):
9640 * buffer.h (overlays_at):
9641 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
9642 Update callers.
9643
96442008-02-26 Chong Yidong <cyd@stupidchicken.com>
9645
9646 * editfns.c (Fformat): Doc fix.
9647
96482008-02-26 Juanma Barranquero <lekktu@gmail.com>
9649
9650 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
9651 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
9652 (Ffont_otf_alternates, Fquery_font): Doc fixes.
9653
96542008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
9655
9656 * buffer.c (Fbuffer_swap_text): New function.
9657 (syms_of_buffer): Defsubr it.
9658
96592008-02-25 Chong Yidong <cyd@stupidchicken.com>
9660
9661 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
9662
96632008-02-25 Jason Rumney <jasonr@gnu.org>
9664
9665 * w32font.c (w32font_draw): Draw one character at a time when padding.
9666
96672008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
9668
9669 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
9670 Handle a nil arg. Use run_window_configuration_change_hook.
9671 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
9672 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
9673 Use run_window_configuration_change_hook.
9674
96752008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
9676
9677 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
9678 1-pixel width.
9679
96802008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
9681
9682 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
9683 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
9684 if the glyph in the font is zero pixel with.
9685
9686 * dispextern.h (struct glyph_string): New member padding_p.
9687
9688 * w32font.c (w32font_draw): Pay attention to s->padding_p.
9689
9690 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
9691
9692 * xfont.c (xfont_draw): Pay attention to s->padding_p.
9693
9694 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
9695
9696 * font.c: If the font driver doesn't have `shape' function, return Qnil.
9697
96982008-02-25 Jason Rumney <jasonr@gnu.org>
9699
9700 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
9701
97022008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
9703
9704 Allow fine-grained image-cache flushing.
9705 * dispextern.h (struct image): Add `dependencies' field.
9706 (clear_image_caches): Change arg to Lisp_Object.
9707 * image.c (make_image): Initialize `dependencies' field.
9708 (clear_image_cache): Change arg to allow fine-grained flushing.
9709 Perform the flush even if image-cache-eviction-delay is nil.
9710 (clear_image_caches): Change arg to Lisp_Object.
9711 (Fclear_image_cache): Expand meaning of the argument.
9712 (mark_image): Mark `dependencies' field.
9713 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
9714 (lface_hash): Use XHASH rather than XFASTINT.
9715 (face_at_buffer_position): Fix int -> EMACS_INT position.
9716 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
9717 (select_frame_for_redisplay): Remove code duplication.
9718 (redisplay_internal): Adapt arg to call to clear_image_caches.
9719
97202008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
9721
9722 * s/vms4-0.h:
9723 * s/vms4-2.h:
9724 * s/vms4-4.h:
9725 * s/vms5-5.h: Remove, unused.
9726
9727 * s/irix5-2.h:
9728 * s/irix6-0.h:
9729 * s/riscos5.h:
9730 * s/mach-bsd4-3.h:
9731 * m/mips4.h: Remove files for obsolete systems.
9732
9733 * Makefile.in:
9734 * filelock.c:
9735 * unexmips.c:
9736 * m/hp9000s300.h:
9737 * m/iris4d.h:
9738 * s/aix3-1.h:
9739 * s/hpux.h:
9740 * s/msdos.h:
9741 * s/usg5-0.h:
9742 * s/usg5-2-2.h:
9743 * s/usg5-2.h:
9744 * s/usg5-3.h: Remove references to obsolete variables.
9745
9746 * s/irix5-0.h: Remove, move all the contents ...
9747 * s/irix6-5.h: ... here. Simplify.
9748 * config.in: Regenerate.
9749
97502008-02-24 Jason Rumney <jasonr@gnu.org>
9751
9752 * w32term.c (x_draw_glyph_string_background): Clear the background
9753 manually when cleartype is in use.
9754 (x_draw_glyph_string_foreground): Draw text transparently when
9755 cleartype is in use.
9756
9757 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
9758 a font into it unless we have to.
9759
97602008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
9761
9762 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
9763 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 9764
aac0c6e3
MR
97652008-02-18 Jason Rumney <jasonr@gnu.org>
9766
9767 * w32fns.c (Fw32_shell_execute): Encode parameters.
9768
97692008-02-09 Eli Zaretskii <eliz@gnu.org>
9770
9771 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
9772
97732008-02-05 Juanma Barranquero <lekktu@gmail.com>
9774
9775 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
9776
97772008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
9778
9779 * xterm.c (x_set_offset): Don't change the gravity if
9780 CHANGE_GRAVITY is -1.
9781
97822008-02-23 Chong Yidong <cyd@stupidchicken.com>
9783
9784 * fileio.c (auto_save_error_occurred): New var.
9785 (auto_save_error): Set it.
9786 (Fdo_auto_save): Don't overwrite the error message if an auto-save
9787 error occurred.
9788
97892008-02-23 Eli Zaretskii <eliz@gnu.org>
9790
9791 * w32.c (globals_of_w32): Add initializations for
9792 g_b_init_get_sid_sub_authority and
9793 g_b_init_get_sid_sub_authority_count.
9794
97952008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
9796
9797 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
9798 (font_parse_xlfd): Use them for sanity check.
9799 (Finternal_set_font_style_table): Make sure the table is bijective.
9800
9801 Consolidate the image_cache to the terminal struct.
9802 * termhooks.h (P_): Remove redundant def.
9803 (struct terminal): New field `image_cache'.
9804 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
9805 of FRAME_X_IMAGE_CACHE.
9806 * xterm.h (struct x_display_info): Remove image_cache field.
9807 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
9808 * w32term.h (struct w32_display_info): Remove image_cache field.
9809 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
9810 * macterm.h (struct mac_display_info): Remove image_cache field.
9811 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
9812 * xterm.c (x_term_init):
9813 * w32term.c (w32_term_init):
9814 * macterm.c (mac_term_init): Set the image_cache in the terminal.
9815 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
9816 Remove declarations.
9817 (clear_image_caches, mark_image_cache): New declarations.
9818 * xfaces.c (clear_face_cache):
9819 * xdisp.c (redisplay_internal): Use clear_image_caches.
9820 * image.c (clear_image_cache): Don't check that a frame is on
9821 a window-system before checking if it shares the same cache.
9822 (clear_image_caches): New function.
9823 (Fclear_image_cache): Use it.
9824 (mark_image): Move from allo.c.
9825 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
9826 * alloc.c (mark_image, mark_image_cache): Move to image.c.
9827 (mark_object): Don't call mark_image_cache for frames.
9828 (mark_terminals): Call mark_image_cache.
9829
9830 * lisp.h (Fdelete_terminal): Declare.
9831
9832 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
9833 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
9834 wrong_type_argument.
9835
98362008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
9837
9838 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
9839 malayalam.el, and tamil.el. Add sinhala.el.
9840
98412008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
9842
9843 * xterm.c (x_connection_closed): Consolidate identical tests.
9844 (x_delete_terminal): Don't crash if called via x_connection_closed.
9845
98462008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
9847
9848 * xdisp.c (decode_mode_spec): New arg string.
9849 (display_mode_element): Adjust for the above change.
9850
98512008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
9852
9853 * callint.c (Fcall_interactively): Use AREF.
9854
98552008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
9856
9857 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
9858
98592008-02-18 Jan Djärv <jan.h.d@swipnet.se>
9860
9861 * xfns.c (Fx_show_tip): Set string to " " if empty.
9862
98632008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
9864
9865 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
9866 with Qt.
9867
98682008-02-17 Kenichi Handa <handa@m17n.org>
9869
9870 * ftfont.c (ftfont_shape): Return Lispy number.
9871
9872 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
9873 for GCs.
9874 (Finternal_set_font_selection_order): Call font_update_sort_order
9875 only when enable_font_backend is set.
9876 (realize_x_face): Set face->font_info to that of default face only
9877 when enable_font_backend is set.
9878
9879 * xdisp.c (handle_composition_prop): Set it->c to the fist
9880 character of the composed region.
9881 (fill_composite_glyph_string): Set base_face->font_info to
9882 s->font_info. Get a face for ascii from base_face->ascii_face.
9883 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
9884 with a face already decided.
9885 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
9886 non-negative.
9887 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
9888 call font_prepare_composition unconditionally.
9889
9890 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
9891
9892 * xterm.h (struct x_display_info): New member font.
9893
9894 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
9895 (x_set_mouse_face_gc, x_new_font): Likewise.
9896 (x_term_init): Setup display_info->font.
9897 (x_delete_terminal): Free display_info->font.
9898
9899 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
9900
9901 * ftxfont.c (ftxfont_default_fid): Delete it.
9902 (ftxfont_open): Set xfont->fid to 0.
9903 (ftxfont_end_for_frame): Clear data specific to the frame and the
9904 font-driver.
9905
9906 * xftfont.c (xftfont_default_fid): Delete it.
9907 (xftfont_open): Set xfont->fid to 0.
9908
9909 * fontset.c (FONTSET_OBJLIST): New macro.
9910 (fontset_find_font): Update font-object list of the fontset.
9911 (free_realized_fontset): New function.
9912 (free_face_fontset): Call free_realized_fontset.
9913 (Ffont_info): Call font_close_object only when enable_font_backend
9914 is set.
9915
9916 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
9917 [HAVE_NTGUI]: Include w32term.h.
9918 [MAC_OS]: Include macterm.ch.
9919 (font_otf_ValueRecord): Use make_number.
9920 (font_finish_cache): Fix handling of reference count.
9921 (font_clear_cache): Update num_fonts.
9922 (font_open_entity): Update smallest_char_width and
9923 smallest_font_height of the frame.
9924 (font_close_object): Update num_fonts.
9925 (Fclear_font_cache): Fix finding the target cache data.
9926
99272008-02-16 Glenn Morris <rgm@gnu.org>
9928
9929 * fontset.c (Finternal_char_font): Fix compilation warning.
9930
99312008-02-16 Eli Zaretskii <eliz@gnu.org>
9932
9933 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
9934 instead of char arrays. Enlarge the size of array passed to
9935 get_token_information.
9936
9937 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
9938 warnings.
9939
99402008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
9941
9942 * .gdbinit: Don't set `args', it breaks gdb --args.
9943
99442008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
9945
9946 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
9947 within a narrowed buffer.
9948
99492008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
9950
9951 * coding.c (decode_coding_object, encode_coding_object):
9952 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
9953
99542008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
9955
9956 * coding.c (coding_set_destination): Use BEG_BYTE rather than
9957 hardcoding 1.
9958 (detect_coding_system):
9959 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
9960 (string_char_to_byte, string_byte_to_char, insert_from_gap):
9961 * insdel.c (insert_from_gap):
9962 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
9963 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
9964 (string_to_multibyte):
9965 * character.c (chars_in_text, multibyte_chars_in_text):
9966 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
9967
9968 * character.h (FETCH_STRING_CHAR_ADVANCE)
9969 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
9970 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
9971 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
9972
9973 * casefiddle.c (casify_region): Only call after-change and composition
9974 functions on the part of the region that was changed.
9975
9976 * keyboard.c (read_avail_input):
9977 * frame.c (Fdelete_frame): Call Fdelete_terminal.
9978
99792008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
9980
9981 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
9982 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
9983
99842008-02-11 Juanma Barranquero <lekktu@gmail.com>
9985
9986 * w32menu.c (push_submenu_start, push_submenu_end)
9987 (push_left_right_boundary, push_menu_pane, push_menu_item):
9988 * keyboard.c (read_key_sequence): Don't pass args with side effects
9989 to AREF, it fails when compiling with -DENABLE_CHECKING.
9990
99912008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
9992
9993 * Makefile.in (${lispsource}international/charprop.el):
9994 Delete this target.
9995
9996 * search.c (boyer_moore): Fix incorrect synching of the trunk and
9997 emacs-unicode-2.
9998
99992008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
10000
10001 * terminal.c (Fdelete_terminal): Clean up the `force' path.
10002
100032008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
10004
10005 * frame.c (Qnoelisp): New symbol.
10006 (syms_of_frame): Initialize it.
10007 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
10008 harmless Elisp code, from a strong `force' from x_connection_closed.
10009 * frame.h (Qnoelisp): Declare.
10010 * xterm.c (x_connection_closed): Pass `noelisp'.
10011
10012 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
10013 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
10014 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
10015 rather than `int' for the type of `type'.
10016
100172008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
10018
10019 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
10020
10021 * Makefile.in (GNUC): Remove support for gcc-1.x.
10022
100232008-02-10 Richard Stallman <rms@gnu.org>
10024
10025 * lisp.h (ASET): Use AREF, not ASLOT.
10026
100272008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
10028
10029 * lisp.h (ASET): Check bounds.
10030
100312008-02-10 Glenn Morris <rgm@gnu.org>
10032
10033 * buffer.c (mode-name): Doc fix.
10034
100352008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
10036
10037 * Makefile.in:
10038 * emacs.c:
10039 * gmalloc.c:
10040 * keyboard.c:
10041 * lisp.h:
10042 * m/ibm370aix.h:
10043 * process.c:
10044 * regex.c:
10045 * s/hpux.h:
10046 * sysdep.c:
10047 * sysselect.h:
10048 * systty.h:
10049 * unexec.c:
10050 * w32term.c:
10051 * xsmfns.c:
10052 * xterm.c: Remove code that deals with obsolete variables.
10053
10054 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
10055
10056 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
10057 nothing else needs it anymore.
10058
100592008-02-09 Eli Zaretskii <eliz@gnu.org>
10060
10061 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
10062 instead of unibyte_char_to_multibyte.
10063
100642008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
10065
10066 * s/gnu-linux.h: Remove commented out code.
10067
10068 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
10069
10070 * Makefile.in: Update what RMS says about using autoconf.
10071 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
10072 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
10073 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
10074 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
10075
100762008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
10077
10078 * keymap.c (Fkey_description): Move side effect outside of macro call.
10079
10080 * xfaces.c (Finternal_make_lisp_face):
10081 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
10082
10083 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
10084 (syms_of_fontset): Use ASET.
10085
10086 * fns.c (concat): Move side effect outside of macro call.
10087 (hash_clear): Use ASET.
10088
100892008-02-08 Richard Stallman <rms@gnu.org>
10090
10091 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
10092 If FORCE, and frame has a surrogate minibuffer for another frame,
10093 delete the other frame first.
10094
100952008-02-07 Timo Savola <timo.savola@iki.fi>
10096
10097 * xterm.c (x_detect_focus_change): Handle embed client message.
10098 (handle_one_xevent): Ditto.
10099 (handle_one_xevent): If embedded and we get a button press/release,
10100 request focus.
10101 (xembed_set_info, xembed_send_message): New functions.
10102 (x_make_frame_visible): Call xembed_set_info if embedded.
10103 (x_make_frame_invisible): Call xembed_set_info if embedded.
10104 (x_term_init): Initialize Xatom_XEMBED.
10105 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
10106 (x_iconify_frame): Ditto.
10107
10108 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
10109 (enum xembed_info, enum xembed_message, enum xembed_focus)
10110 (enum xembed_modifier, enum xembed_accelerator): New.
10111 (xembed_set_info, xembed_send_message): Declare.
10112 (FRAME_X_EMBEDDED_P): New.
10113
10114 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
10115 gtk_plug_new.
10116
10117 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
10118 window ID of a frame.
10119 (x_window): Reparent frame if embedded.
10120 (Fx_create_frame): Don't set border width if embedded.
10121
10122 * emacs.c (USAGE3): Add --parent-id.
10123 (standard_args): Ditto.
10124
101252008-02-07 Jan Djärv <jan.h.d@swipnet.se>
10126
10127 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
10128
101292008-02-07 Jim Meyering <meyering@redhat.com>
10130
10131 Use "do...while (0)", not "if (1)...else" in macro definitions.
10132 The latter provokes a warning from gcc about the empty else, when
10133 followed by ";". Also, without that trailing semicolon, it would
10134 silently swallow up any following statement.
10135 * syntax.h (SETUP_SYNTAX_TABLE)
10136 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
10137 * buffer.h (DECODE_POSITION): Likewise.
10138 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
10139 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
10140 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
10141 (FETCH_CHAR_ADVANCE): Likewise.
10142 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
10143
101442008-02-07 Jim Meyering <meyering@redhat.com>
10145
10146 * lread.c [lint]: Don't include <sys/inode.h>.
10147
101482008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
10149
10150 * xselect.c (x_handle_dnd_message):
10151 * xmenu.c (digest_single_submenu, xmenu_show):
10152 * xdisp.c (with_echo_area_buffer_unwind_data)
10153 (format_mode_line_unwind_data, unwind_format_mode_line)
10154 (display_menu_bar):
10155 * eval.c (Ffetch_bytecode):
10156 * doc.c (store_function_docstring):
10157 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
10158 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
10159 * buffer.c (add_overlay_mod_hooklist): Use ASET.
10160
101612008-02-07 Kenichi Handa <handa@m17n.org>
10162
10163 * ftxfont.c (ftxfont_open): Don't set
10164 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
10165
10166 * ftfont.c (ftfont_open): Fix previous change.
10167
101682008-02-06 Jason Rumney <jasonr@gnu.org>
10169
10170 * w32font.c (w32font_text_extents): Fill in lbearing metric.
10171 Use cached metrics for ASCII characters.
10172 (w32font_open_internal): Don't set font's owning_frame.
10173 Cache metrics for ASCII characters.
10174
10175 * w32font.h (struct w32font_info): Add ascii_metrics.
10176 Remove owning_frame.
10177
101782008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
10179
10180 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
10181 to negative value.
10182
10183 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
10184
10185 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
10186
10187 * charset.c (syms_of_charset): Set QCtest and Qeq.
10188
101892008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
10190
10191 * process.c (Fstart_process):
10192 * callproc.c (Fcall_process): Handle the case where
10193 Funhandled_file_name_directory returns nil.
10194
10195 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
10196 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
10197 * font.c (check_gstring): Use them and AREF to access the vector before
10198 we know it's really a gstring.
10199 (Ffont_shape_text): Fix typo.
46e722a9 10200 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
10201
10202 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
10203 Declare.
10204
10205 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
10206
102072008-02-05 Jason Rumney <jasonr@gnu.org>
10208
10209 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
10210 Set smallest_font_height and smallest_char_width in display info.
10211
102122008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
10213
10214 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
10215
102162008-02-05 Miles Bader <miles@gnu.org>
10217
10218 * xfaces.c (get_lface_attributes, merge_named_face)
10219 (lookup_named_face, lookup_derived_face, realize_named_face):
10220 Revert 2008-02-01 change by cyd@stupidchicken.com.
10221
102222008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
10223
10224 * fontset.c (Ffontset_info): Handle the case of inhibitting the
10225 fallback fonts.
10226 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
10227
102282008-02-04 Jason Rumney <jasonr@gnu.org>
10229
10230 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
10231 set full_name.
10232 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
10233
102342008-02-03 Jason Rumney <jasonr@gnu.org>
10235
10236 * makefile.w32-in (OBJ1): Include font.o here.
10237 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
10238
102392008-02-02 Jason Rumney <jasonr@gnu.org>
10240
10241 * makefile.w32-in (temacs): Bump EMHEAP to 21.
10242
102432008-02-01 Jason Rumney <jasonr@gnu.org>
10244
10245 * s/cygwin.h: Define VIRT_ADDR_VARIES.
10246
10247 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
10248
102492008-02-01 Andreas Schwab <schwab@suse.de>
10250
10251 * Makefile.in (shortlisp, lisp): Update for rename of
10252 ../lisp/language/myanmar.el.
10253
102542008-02-01 Chong Yidong <cyd@stupidchicken.com>
10255
10256 * xfaces.c (get_lface_attributes): Delete function.
10257 (merge_named_face, lookup_named_face, lookup_derived_face)
10258 (realize_named_face): Call lface_from_face_name directly, and use
10259 the fact that merge_face_vectors does not alter its FROM argument.
10260
102612008-02-01 Jason Rumney <jasonr@gnu.org>
10262
10263 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
10264 input in the default locale. Handle non-Unicode multibyte input.
10265
102662008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10267
10268 * fontset.c (reorder_font_vector): Exclude nil elements from the
10269 font group. Don't try multiple fonts.
10270 (fontset_font): Adjust for the above change.
10271 (Finternal_char_font): Return nil if the found font doesn't
10272 contain the character ch.
10273
10274 * Makefile.in (lisp, shortlisp): Add cham.el.
10275
102762008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10277
10278 * font.h (FONTP): Make it return 1 also for a font-object.
10279
10280 * .gdbinit (xfontset): New function.
10281
10282 * font.c (font_find_for_lface): Check if the character C is
10283 supported or not only for the first font.
10284
10285 * fontset.c (reorder_font_vector): Fix typo.
10286 (fontset_find_font): Don't add a font-spec specifying a script.
10287 Use 0 (not Qt) for the indication of empty font-group. Change the
10288 format of RFONT-DEF. Return Qt if no font in the font-group
10289 support the character.
10290 (fontset_font): Adjust for the above change. If no font was
10291 found the character, remember that.
10292 (face_for_char): Adjust for the change of RFONT-DEF.
10293 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
10294 no font for the target.
10295 (Finternal_char_font): Adjust for the change of RFONT-DEF.
10296
102972008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10298
10299 * font.c (font_load_for_face): Handle the case that the font in
10300 face->lface is a string.
10301
103022008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10303
10304 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
10305
103062008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10307
10308 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
10309 Fix previous change. If the frame is not on a window system,
10310 signal an error.
10311
103122008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10313
10314 * coding.c (decode_coding_object, encode_coding_object): Adjust
10315 marker positions after conversion.
10316
10317 * lisp.h (struct Lisp_Marker): New member need_adjustment.
10318
103192008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10320
10321 * font.c (font_find_for_lface): Fix the handling of the return
10322 value of font_has_char.
10323 (Ffont_shape_text): Fix previous change.
10324
10325 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
10326 (fontset_ref_and_range): Delete it.
10327 (fontset_find_font): Call char_table_ref_and_range instead of
10328 FONTSET_REF_AND_RANGE.
10329 (make_fontset): Don't setup font groups of Latin here.
10330 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
10331 (new_fontset_from_font): Make the specified font the default for
10332 all Latin characters.
10333
103342008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10335
10336 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
10337 is on a window system before accessing the fontset of the frame.
10338
103392008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10340
10341 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
10342
10343 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
10344 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
10345
10346 * font.c (Ffont_shape_text): If the font driver doesn't have a
10347 shaper function, make zero-width glyphs to have at least one-pixel
10348 width. Fix setting of `to' field of glyphs.
10349
103502008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10351
10352 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
10353 glyphs.
10354
10355 * font.h (struct font_driver): Improve docstring of member `shape'.
10356
103572008-02-01 Kenichi Handa <handa@m17n.org>
10358
10359 * composite.c (syms_of_composite): Fix docstring of
10360 auto-composition-function.
10361
10362 * font.h (LGLYPH_SIZE): New macro.
10363
10364 * font.c (Ffont_fill_gstring): Stop filling when a character not
10365 supported by the font is found.
10366 (Ffont_shape_text): When a shape callback function returns nil,
10367 try at most two more times with larger gstring.
10368 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
10369
10370 * xdisp.c (handle_auto_composed_prop): Change the argument to
10371 auto-composition-function.
10372
10373 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
10374 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
10375 Lispy glyph and store it in the lgstring.
10376
10377 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
10378
10379 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
10380
103812008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10382
10383 * font.c (Ffont_shape_text): Avoid unnecessary composition.
10384
10385 * fontset.c (Vfont_encoding_charset_alist): New variable.
10386 (syms_of_fontset): DEFVAR it.
10387 (reorder_font_vector, fontset_find_font): Optimize for the case of
10388 no need of reordering.
10389 (face_for_char): Map the charset property by
10390 Vfont_encoding_charset_alist.
10391
103922008-02-01 Jason Rumney <jasonr@gnu.org>
10393
10394 * w32font.c (logfonts_match): Don't check adstyle here.
10395 (font_matches_spec): Check here against physical font instead.
10396 (add_font_entity_to_list): Avoid some substitutions.
10397
10398 * font.c (font_parse_fcname): Default weight and slant to normal.
10399 (font_score): Prefer normal fonts if weight or slant unspecified.
10400 (font_score) [WINDOWSNT]: Scale weight difference down to closer
10401 match freetype scores.
10402
104032008-02-01 Jason Rumney <jasonr@gnu.org>
10404
10405 * w32font.c (w32font_text_extents): Don't use the frame stored in the
10406 font, as it may have been deleted.
10407 (w32_enumfont_pattern_entity): Map generic family to adstyle using
10408 most common hyphenless variation.
10409 (logfonts_match): Check generic family.
10410 (font_matches_spec): Don't check generic family here.
10411 (fill_in_logfont): Set generic family based on adstyle.
10412
10413 * w32font.h (w32font_get_cache): Update declaration.
10414
104152008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10416
10417 * ftfont.c (ftfont_get_cache): Adjust the argument type.
10418
10419 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
10420 If none of the new drivers are available, call font_update_drivers
10421 with the old drivers.
10422
10423 * w32font.c (w32font_get_cache): Adjust the argument type.
10424
10425 * xfont.c (xfont_get_cache): Adjust the argument type.
10426
10427 * font.h (struct font_driver): Change argument type of get_cache.
10428
10429 * xftfont.c (xftfont_start_for_frame): Delete prototype.
10430
10431 * font.c (Ffont_get): Fix arguments to Fassoc.
10432 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
10433 (font_clear_cache): New function.
10434 (font_list_entities, font_matching_entity): Use font_get_cache.
10435 (font_update_drivers): Call font_clear_cache when finishing a driver.
10436
10437 * fontset.c (fontset_find_font): Fix previous change.
10438
104392008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10440
10441 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
10442 dpyinfo->font_table.
10443 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
10444 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
10445
10446 * font.c (font_at): Handle the case that the arg C is negative.
10447 Handle the unibyte case.
10448 (Ffont_at): Call font_at with the arg C -1.
10449
10450 * xdisp.c (handle_auto_composed_prop): Don't get a character at
10451 the position here, and call font_at with the arg C -1.
10452 Don't check the range of the existing composition at the point.
10453
104542008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10455
10456 * fontset.c (fontset_add): New args charset_id and family.
10457 Change caller.
10458 (load_font_get_repertory, fontset_find_font): Assume that
10459 font_spec is always a font-spec object.
10460 (Fset_fontset_font): Always store a font-spec object in a fontset.
10461
10462 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
10463 instead of get_property_and_range.
10464
104652008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10466
10467 * xftfont.c (struct xftfont_info): Delete the member ft_face.
10468 (xftfont_open): Don't keep locking face.
10469 (xftfont_close): Don't unlock face.
10470 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
10471
10472 * fontset.c (fontset_find_font): Don't prefer a font of
10473 supplementary charset.
10474
104752008-02-01 Kenichi Handa <handa@m17n.org>
10476
10477 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
10478 script, langsys_tag to langsys, new member script.
10479 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 10480 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
10481 listing to the script specified in that property. Fix arg to
10482 OTF_check_features.
10483
104842008-02-01 Jason Rumney <jasonr@gnu.org>
10485
10486 * w32font.h: New file.
10487
10488 * w32font.c: Include it.
10489 (struct w32font_info): Add owning_frame field. Move to w32font.h.
10490 (w32font_open): Set owning_frame.
10491 (w32font_text_extents): Use owning_frame.
10492 (struct font_callback_data): Add opentype_only field.
10493 (add_font_entity_to_list): Use it to filter fonts.
10494 Don't check against full name.
10495 (w32font_list_internal): New function.
10496 (w32font_list): Use it.
10497 (w32font_match_internal): New function.
10498 (w32font_match): Use it.
10499 (w32font_open_internal): New function.
10500 (w32font_open): Use it.
10501 (w32font_get_cache, w32font_close, w32font_has_char)
10502 (w32font_encode_char, w32font_text_extents, w32font_draw):
10503 Make non-static.
10504
10505 * makefile.w32-in (w32font.o): Depend on w32font.h.
10506
105072008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10508
10509 * charset.c (Fdefine_charset_internal): Record a supplementary
10510 charset at the tail of Vcharset_order_list.
10511
10512 * font.c (Ffont_shape_text): Fix the return value.
10513
10514 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
10515
10516 * xdisp.c (handle_auto_composed_prop): Fix previous change.
10517
105182008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10519
10520 * ftfont.c (struct OpenTypeSpec): New struct.
10521 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
10522 (ftfont_get_open_type_spec): New function.
10523 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
10524
10525 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
10526
105272008-02-01 Jason Rumney <jasonr@gnu.org>
10528
10529 * w32font.c (add_font_entity_to_list): Compare only the beginning
10530 of full name.
10531
105322008-02-01 Kenichi Handa <handa@m17n.org>
10533
10534 * xdisp.c (handle_auto_composed_prop): Simplify the code.
10535 Never return HANDLED_RECOMPUTE_PROPS.
10536
105372008-02-01 Kenichi Handa <handa@m17n.org>
10538
10539 * font.c (font_gstring_produce): Delete it.
10540
10541 * composite.h (COMPOSITION_METHOD):
10542 Handle COMPOSITION_WITH_GLYPH_STRING.
10543
105442008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10545
10546 * xfont.c (Qx): Delete.
10547 (syms_of_xfont): Don't initialize Qx.
10548
10549 * composite.h (enum composition_method):
10550 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
10551
105522008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10553
10554 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
10555 (choose_face_font): Accept new form of font-spec.
10556
10557 * frame.h (font_driver_list): Declare it unconditionally.
10558 (struct frame): Define members font_driver_list and font_data_list
10559 unconditionally.
10560
10561 * fontset.c: Include "font.h" unconditionally.
10562 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
10563 (Fset_fontset_font): Accept a font-spec object.
10564
10565 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
10566 PIXEL_SIZE part a wild card.
10567
10568 * dispextern.h (struct glyph_string): Define members clip and
10569 num_clips unconditionally.
10570 (struct face): Define members font_info and extra unconditionally.
10571
10572 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
10573 ftfont_info only when HAVE_LIBOTF is defined.
10574
105752008-02-01 Andreas Schwab <schwab@suse.de>
10576
10577 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
10578 and end.
10579
105802008-02-01 Jason Rumney <jasonr@gnu.org>
10581
10582 * w32font.c (w32font_driver): Add new fields.
10583
105842008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10585
10586 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
10587 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
10588 (LIBES): Add @M17N_FLT_CFLAGS@.
10589
10590 * composite.c (compose_text): Don't treat the new style
10591 composition specially.
10592
10593 * emacs.c (main): Call syms_of_font unconditionally.
10594
10595 * font.h (FONT_ENTITY_NOT_LOADABLE)
10596 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
10597 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
10598 (struct font_driver): New member shape.
10599 (font_registry_charsets): Extern it.
10600 (font_find_for_lface, font_prepare_composition): Adjust prototype.
10601 (font_otf_capability, font_drive_otf): Delete their externs.
10602
10603 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
10604 (font_charset_alist, font_registry_charsets): Move from xfont.c
10605 and rename.
10606 (font_prop_validate_otf): New function.
10607 (font_property_table): Register it for QCotf.
10608 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
10609 (font_drive_otf): Delete.
10610 (font_prepare_composition): New arg F. Adjust for the change of
10611 lispy gstring.
10612 (font_find_for_lface): New arg C.
10613 (font_load_for_face): Adjust for the change of font_find_for_lface.
10614 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
10615 lispy gstring.
10616 (Ffont_shape_text): New function.
10617 (Fopen_font): If the font size is not given, use 12-pixel.
10618 (Ffont_at): New arg STRING.
10619 (syms_of_font): Initalize font_charset_alist.
10620 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
10621 conditionally.
10622
10623 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
10624 fonts of the same font-spec. Change the format of RFONT-DEF.
10625 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
10626 Adjust for the change of RFONT-DEF.
10627 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
10628
10629 * ftfont.h: New file.
10630
10631 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
10632 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
10633 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
10634 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
10635 font_otf_capability and font_drive_otf, set ftfont_shape.
10636 (ftfont_list): Adjust for the change of :otf property value.
10637 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
10638 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
10639 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
10640 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
10641 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
10642 (otf_gstring, gstring, m17n_flt_initialized): New variables.
10643
10644 * w32term.c (x_draw_composite_glyph_string_foreground):
10645 Adjust for the change of lispy gstring.
10646
10647 * xdisp.c (handle_composition_prop): Adjust for the change of
10648 lispy gstring. Call a function for auto-composition with the
10649 third arg it->window.
10650 (fill_composite_glyph_string): Adjust for the change of lispy string.
10651 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
10652
10653 * xfaces.c (set_font_frame_param): Adjust for the change of
10654 font_find_for_lface.
10655
10656 * xfont.c (x_font_charset_alist): Move to font.c and rename.
10657 (xfont_registry_charsets): Likewise. Change caller.
10658 (syms_of_xfont): Don't handle x_font_charset_alist.
10659
10660 * xftfont.c: Include "ftfont.h".
10661 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
10662 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
10663 (xftfont_close) [HAVE_LIBOTF]: Close otf.
10664 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
10665 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
10666 Set xftfont_driver.shape to xftfont_shape.
10667
10668 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
10669 the change of lispy gstring.
10670
106712008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10672
10673 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
10674
106752008-02-01 Jason Rumney <jasonr@gnu.org>
10676
10677 * w32font.c (w32font_draw): Fill background manually.
10678
106792008-02-01 Jason Rumney <jasonr@gnu.org>
10680
10681 * font.c (Qfontp): Remove unused symbol.
10682 (QCantialias): New symbol.
10683 (syms_of_font): Define it.
10684 (font_property_table): Set a validator for QCantialias.
10685
10686 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
10687 Define if not already.
10688 (QCfamily): Share with xfaces.c.
10689 (Qstandard, Qsubpixel, Qnatural): New symbols.
10690 (syms_of_w32font): Define them. Don't define QCfamily here.
10691 (w32_antialias_type, lispy_antialias_type): New functions.
10692 (w32_enumfont_pattern_entity): New arg requested_font.
10693 Set antialias parameter if non-default was requested.
10694 (fill_in_logfont): Fill in lfQuality if :antialias specified.
10695
106962008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10697
10698 * lread.c (read1): Undo the previous change.
10699
107002008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
10701
10702 * frame.c (Fdelete_frame): Call font_update_drivers only when
10703 USE_FONT_BACKEND is defined.
10704
107052008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10706
10707 * font.h (struct font_bitmap): New member bits_per_pixel.
10708 (struct font_driver): New members start_for_frame and end_for_frame.
10709 (struct font_data_list): New struct.
10710 (font_put_frame_data, font_get_frame_data): Extern them.
10711
10712 * frame.h (struct frame): New member font_data_list.
10713
10714 * font.c (font_update_drivers): Call driver->start_for_frame and
10715 driver->end_for_frame at proper timings.
10716 (font_put_frame_data, font_get_frame_data): New functions.
10717 (Ffont_spec): Add usage in the docstring.
10718
10719 * frame.c (make_frame): Initialize f->font_data_list to NULL.
10720 (Fdelete_frame): Call font_update_drivers.
10721
10722 * xftfont.c (struct xftface_info): Delete the member xft_draw.
10723 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
10724 (xftfont_get_xft_draw): New function.
10725 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
10726 (xftfont_end_for_frame): New function.
10727 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
10728
10729 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
10730 Change argument. Cache GCs in the per-frame data.
10731 (struct ftxfont_frame_data): New struct.
10732 (ftxfont_draw_bitmap): New arg gc_fore and flush.
10733 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
10734 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
10735 (ftxfont_end_for_frame): New function.
10736 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
10737
10738 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
10739
107402008-02-01 Kenichi Handa <handa@m17n.org>
10741
10742 * xselect.c (Vselection_coding_system)
10743 (Vnext_selection_coding_system): Delete them.
10744 (syms_of_xselect): Don't declare selection-coding-system and
10745 next-selection-coding-system. They are declared in select.el.
10746
107472008-02-01 Jason Rumney <jasonr@gnu.org>
10748
10749 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
10750
10751 * w32fns.c: Include imm.h.
10752 (get_composition_string_fn, get_ime_context_fn): New optional
10753 system functions.
10754 (globals_of_w32fns): Load them from imm32.dll.
10755 (ignore_ime_char): New flag.
10756 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
10757 WM_IME_ENDCOMPOSITION messages.
10758
10759 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
10760 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
10761
107622008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10763
10764 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
10765 (READCHAR_REPORT_MULTIBYTE): New macro.
10766 (readchar): New 2nd arg MULTIBYTE.
10767 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
10768 Make symbol's name multibyte according to the multibyteness of the
10769 source.
10770
107712008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10772
10773 * xfaces.c (face_for_overlay_string): Call lookup_face with
10774 correct arguments (fix of synching with the trunk).
10775
107762008-02-01 Kenichi Handa <handa@m17n.org>
10777
10778 * font.c (font_prop_validate_symbol, font_prop_validate_style)
10779 (font_prop_validate_non_neg, font_prop_validate_spacing):
10780 Delete argument prop_index.
10781 (font_property_table): Change arguments to validater. Change Callers.
10782 (font_lispy_object): Delete.
10783 (font_at): Use font_find_object instead fo font_lispy_object.
10784
107852008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10786
10787 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
10788 and file names.
10789
107902008-02-01 Jason Rumney <jasonr@gnu.org>
10791
10792 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
10793 (font_matches_spec): Remove debug output.
10794 (add_font_entity_to_list): Avoid using substituted fonts.
10795
107962008-02-01 Jason Rumney <jasonr@gnu.org>
10797
10798 * doc.c (Fsnarf_documentation):
10799 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
10800
108012008-02-01 Miles Bader <miles@gnu.org>
10802
10803 * dispextern.h (struct glyph_row): Only define "clip" field if
10804 HAVE_WINDOW_SYSTEM is defined.
10805
108062008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
10807
10808 Fix up multi-tty merge.
10809
10810 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
10811 and indentation.
10812
10813 * xfaces.c (free_realized_face, clear_face_gcs):
10814 Include font_done_for_face in the input_blocked section, just in case.
10815
10816 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
10817 (get_char_face_and_encoding): Undo last change and remove the *other*
10818 duplicate definition (i.e. keep the one that's better scoped and that
10819 includes code for the font-backend).
10820
10821 * terminal.c (create_terminal): Default keyboard_coding to
10822 `no-conversion' and terminal_coding to `undecided'.
10823
10824 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
10825
10826 * fontset.c (free_realized_fontsets): Check that the table entry does
10827 contain a fontset before trying to compare it to `base'.
10828
10829 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
10830 syms_of_charset, and syms_of_coding earlier because init_window_once
10831 now needs Vcoding_system_hash_table to be setup.
10832
10833 * coding.h (default_buffer_file_coding): Remove.
10834
10835 * coding.c (default_buffer_file_coding): Remove.
10836 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
10837 than ->symbol, and use the terminal-local coding system.
10838 (syms_of_coding): Don't setup the coding-systems that are not
10839 terminal-local.
10840 (Fdefine_coding_system_internal): Use XCAR/XCDR.
10841
10842 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
10843 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
10844
10845 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
10846 in chartab.c and were re-added here by mistake.
10847 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
10848
10849 * doc.c (Fsnarf_documentation):
10850 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
10851 src to etc.
10852
10853 * ChangeLog.10: Add mistakenly removed entry.
10854
108552008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
10856
10857 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
10858
108592008-02-01 Miles Bader <miles@gnu.org>
10860
10861 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
10862 Add extra args to FACE_FOR_CHAR.
10863
108642008-02-01 Kenichi Handa <handa@m17n.org>
10865
10866 * keymap.c (where_is_internal_1): If key is a cons, store the copy
10867 in sequence.
10868
10869 * chartab.c (map_sub_char_table, map_char_table): If the range
10870 contains just one character, call the function with that character
10871 even if the depth is not 3.
10872
108732008-02-01 Jason Rumney <jasonr@gnu.org>
10874
10875 * w32font.c (w32font_text_extents): Calculate metrics for the
10876 whole string.
10877
108782008-02-01 Jason Rumney <jasonr@gnu.org>
10879
10880 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
10881
108822008-02-01 Jason Rumney <jasonr@gnu.org>
10883
10884 * w32term.c (x_set_glyph_string_clipping): Use
10885 get_glyph_string_clip_rects.
10886 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
10887 Adjust for the change of struct glyph_string.
10888
10889 * w32font.c (w32font_draw): Do clipping here.
10890
108912008-02-01 Kenichi Handa <handa@m17n.org>
10892
10893 * xftfont.c (xftfont_draw): Adjust for the change of struct
10894 glyph_string.
10895
10896 * xterm.c (x_set_glyph_string_clipping): Use
10897 get_glyph_string_clip_rects.
10898 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
10899 Adjust for the change of struct glyph_string.
10900
10901 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
10902 the resulting clip(s}.
10903 (expose_overlaps): Add arg r. Change callers. Set it to
10904 row->clip temporarily.
10905 (expose_window): Redraw rows overlapping the exposed area.
10906
10907 * dispextern.h (struct glyph_row): New member clip.
10908 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
10909 clip_height, new member clip, and num_clips.
10910
109112008-02-01 Kenichi Handa <handa@m17n.org>
10912
10913 * data.c (Fchar_or_string_p): Fix docstring.
10914
109152008-02-01 Kenichi Handa <handa@m17n.org>
10916
10917 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
10918 create a temporary XftDraw object.
10919
109202008-02-01 Kenichi Handa <handa@m17n.org>
10921
10922 * font.c (Ffontp): Fix docstring.
10923
10924 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
10925 strong evidence of ISO-2022.
10926
109272008-02-01 Kenichi Handa <handa@m17n.org>
10928
10929 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
10930 SYNTAX_ENTRY_FOLLOW_PARENT.
10931
109322008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
10933
10934 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
10935 its type.
10936 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
10937 Update to the new type of weak_hash_tables and next_weak.
10938
10939 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
10940 a plain C pointer to Lisp_Hash_Table.
10941
10942 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
10943 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
10944 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
10945 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
10946 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
10947 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
10948 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
10949 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
10950 (GC_EQ): Remove since they've been identical to their non-GC_
10951 alter-egos ever since the markbit was eradicated.
10952
10953 * alloc.c:
10954 * buffer.c:
10955 * buffer.h:
10956 * data.c:
10957 * fileio.c:
10958 * filelock.c:
10959 * fns.c:
10960 * frame.h:
10961 * lisp.h:
10962 * macterm.c:
10963 * print.c:
10964 * process.c:
10965 * w32fns.c:
10966 * w32menu.c:
10967 * w32term.c:
10968 * xfns.c:
10969 * xmenu.c:
10970 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
10971
109722008-02-01 Kenichi Handa <handa@m17n.org>
10973
10974 * chartab.c (map_sub_char_table): Make it work for the top-level
10975 char-table. Fix handling of parent char-table.
10976 (map_char_table): Adjust for the above change.
10977
109782008-02-01 Jason Rumney <jasonr@gnu.org>
10979
10980 * w32font.c (Qgdi): Rename from Qw32.
10981
109822008-02-01 Jason Rumney <jasonr@gnu.org>
10983
10984 * w32bdf.c (get_quoted_string): Make function static.
10985
109862008-02-01 Kenichi Handa <handa@m17n.org>
10987
10988 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
10989 bigger ascent and descent than those of the font, use them as
10990 font's ascent and descent.
10991
109922008-02-01 Kenichi Handa <handa@m17n.org>
10993
10994 * Makefile.in (${lispsource}international/charprop.el): Move this
10995 target within "#ifdef HAVE_UNIDATA" and "#endif".
10996
109972008-02-01 Kenichi Handa <handa@m17n.org>
10998
10999 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
11000 (shortlisp): Add ../lisp/language/tai-viet.el.
11001
110022008-02-01 Ulrich Mueller <ulm@gentoo.org>
11003
11004 * Makefile.in (${lispsource}international/charprop.el): Depend on
11005 temacs${EXEEXT}.
11006
110072008-02-01 Jason Rumney <jasonr@gnu.org>
11008
11009 * w32font.c (w32font_close): Delete the GDI font object.
11010
11011 * w32menu.c: Include character.h.
11012
11013 * w32proc.c: Likewise.
11014
11015 * w32select.c: Likewise.
11016
11017 * makefile.w32-in (w32proc.o): Depend on character.h.
11018
110192008-02-01 Jason Rumney <jasonr@gnu.org>
11020
11021 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
11022
11023 * w32menu.c (syms_of_w32menu): Likewise.
11024
11025 * w32proc.c (syms_of_ntproc): Likewise.
11026
11027 * w32select.c (syms_of_w32select): Likewise.
11028
11029 * w32term.c (syms_of_w32term): Likewise.
11030
110312008-02-01 Jason Rumney <jasonr@gnu.org>
11032
11033 * w32font.c (w32font_draw): Delete brush after using it.
11034
110352008-02-01 Jason Rumney <jasonr@gnu.org>
11036
11037 * w32font.c (w32font_open): Don't set font_idx.
11038 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
11039 to font settings.
11040 (w32font_draw): Fill background explicitly.
11041
110422008-02-01 Jason Rumney <jasonr@gnu.org>
11043
11044 * w32term.c (w32_initialize): Don't call w32font_initialize.
11045
11046 * w32font.c (w32font_info): Remove subranges.
11047 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
11048 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
11049 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
11050 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
11051 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
11052 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
11053 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
11054 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
11055 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
11056 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
11057 New symbols.
11058 (font_callback_data): New struct.
11059 (w32font_list, w32font_match): Use it.
11060 (w32font_open): Don't populate subranges.
11061 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
11062 (w32font_encode_char): Always return unicode code-point as-is.
11063 (w32font_text_extents): Supply a transformation matrix to
11064 GetGlyphOutline. Never look up by glyph index. Avoid looping
11065 twice. Use unicode version of GetTexExtentPoint32 instead of
11066 glyph index version.
11067 (set_fonts_frame): Remove.
11068 (w32_enumfont_pattern_entity): Add frame parameter, use it to
11069 set frame parameter. Use backward compatible fake foundries.
11070 Save generic family in extra slot under QCfamily. Make width slot
11071 constant. Save QCspacing value. Save list of scripts instead of
11072 binary subranges.
11073 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
11074 (add_font_entity_to_list): Use font_callback_data struct. Filter
11075 unwanted fonts.
11076 (add_one_font_entity_to_list): Use font_callback_data struct.
11077 (w32_registry): Default to iso10646_1.
11078 (fill_in_logfont): Use dpi from extra slot. Don't bother with
11079 string font registries. Don't fill in font name if it is a generic
11080 family name, fill family instead. Use spacing, family and script
11081 extra info to fill pitch, family and charset fields.
11082 (list_all_matching_fonts): Use font_callback_data struct.
11083 (unicode_range_for_char): Remove.
11084 (font_supported_scripts): New function.
11085 (w32font_initialize): Remove.
11086 (syms_of_w32font): Update which symbols are defined.
11087
110882008-02-01 Jason Rumney <jasonr@gnu.org>
11089
11090 * font.c (font_pixel_size): Reverse assq_no_quit args.
11091
11092 * w32term.h (FONT_WIDTH): Report max width, not average.
11093 (FONT_MAX_WIDTH): Remove.
11094 (FONT_AVG_WIDTH): New macro.
11095
11096 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
11097 redefinition of FONT_WIDTH.
11098
11099 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
11100 (w32_cache_char_metrics): Use FONT_WIDTH.
11101
11102 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
11103
111042008-02-01 Jason Rumney <jasonr@gnu.org>
11105
11106 * w32font.c (w32font_open): Make lfHeight negative.
11107
11108 * w32fns.c (x_default_font_parameter): Use new style font name.
11109 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
11110
111112008-02-01 Jason Rumney <jasonr@gnu.org>
11112
11113 * w32font.c (QCsubranges): New symbol.
11114 (w32font_open, w32font_has_char): Get subranges from subproperty
11115 of extra.
11116 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
11117 (syms_of_w32font): Define :subranges symbol.
11118
11119 * font.c (font_put_extra): Expose externally.
11120
11121 * font.h (font_put_extra): Move declaration from font.c.
11122
11123 * font.c (Ffont_get): Use font driver to determine otf capability.
11124 (adjust_anchor): Check if driver defines anchor_point before using.
11125
11126 * w32font.c (w32font_open): Handle size, height and pixel_size better.
11127 (w32font_draw): Use options.
11128 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
11129 Fix detection of truetype fonts.
11130 (registry_to_w32_charset): Handle charsets other than iso8859-1
11131 expressed as lisp symbols.
11132 (w32_registry): Express charset as lisp symbol.
11133 (fill_in_logfont): Reverse pixel and point height logic.
11134 Don't set width here. Set quality to default.
11135
11136 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
11137 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
11138
11139 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
11140 Remove redundant loop and allocation.
11141
11142 * makefile.w32-in (font.o, w32font.o): New objects.
11143 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
11144 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
11145
11146 * xdisp.c (fill_composite_glyph_string): Make the first arg to
11147 STORE_XCHARB a valid l-value.
11148
11149 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
11150 calculations for non-Truetype fonts.
11151 (x_draw_glyph_string): Sync with xterm.c.
11152 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
11153 Remove redundant code.
11154 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
11155
11156 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
11157 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
11158
11159 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
11160 (x_to_w32_charset, w32_to_x_charset): Expose externally.
11161
11162 * w32font.c: New file for w32 font backend.
11163
111642008-02-01 Kenichi Handa <handa@m17n.org>
11165
11166 * term.c: Don't include "buffer.h" twice.
11167
111682008-02-01 Kenichi Handa <handa@m17n.org>
11169
11170 * character.c (Funibyte_string): New function.
11171 (syms_of_character): Defsubr it.
11172
111732008-02-01 Jason Rumney <jasonr@gnu.org>
11174
11175 * w32term.c [USE_FONT_BACKEND]:
11176 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
11177 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
11178 (x_draw_glyph_string, x_draw_glyph_string_foreground)
11179 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
11180 (x_free_frame_resources): Sync with xterm.c.
11181
111822008-02-01 Andreas Schwab <schwab@suse.de>
11183
11184 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
11185 char-table size.
11186
111872008-02-01 Kenichi Handa <handa@m17n.org>
11188
11189 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
11190
111912008-02-01 Kenichi Handa <handa@m17n.org>
11192
11193 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
11194 font_otf_gpos, add font_drive_otf.
11195
11196 * fontset.c (fontset_find_font): Pay attention to font size
11197 specified for a font.
11198 (reorder_font_vector): Check contents of font_def.
11199
11200 * font.c (struct otf_list): Delete it.
11201 (otf_list): Make it a lisp variable.
11202 (otf_open): Use lispy otf_list.
11203 (generate_otf_features): Rename from parse_gsub_gpos_spec.
11204 (check_otf_features): New function.
11205 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
11206 New functions.
11207 (font_drive_otf): New function merging font_otf_gsub and
11208 font_otf_gpos.
11209 (font_open_for_lface): New arg spec. Change argument order.
11210 (font_load_for_face): Adjust for the change of font_open_for_lface.
11211 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
11212 Ffont_otf_gpos.
11213 (syms_of_font): Staticpro otf_list. Delete defsubr of
11214 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
11215
11216 * xfaces.c (set_font_frame_param): Adjust for the change of
11217 font_open_for_lface.
11218
11219 * font.h (font_open_for_lface): Adjust prototype.
11220 (struct font_driver): Delete members otf_gsub and otf_gpos, add
11221 member otf_drive.
11222 (font_otf_gsub, font_otf_gpos): Delete externs.
11223 (font_drive_otf): Extern it.
11224
112252008-02-01 Kenichi Handa <handa@m17n.org>
11226
11227 * font.c (font_at): If the window W is not on a window system,
11228 return Qnil.
11229
11230 * coding.c (produce_chars, encode_coding): Don't call
11231 insert_from_gap if no characters to produce.
11232
112332008-02-01 Kenichi Handa <handa@m17n.org>
11234
11235 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
11236 Fclear_face_cache.
11237
11238 * xfaces.c (face_for_font): Check also face->font==font->font.font.
11239
112402008-02-01 Miles Bader <miles@gnu.org>
11241
11242 * emacs.c (main): Change default value of `enable_font_backend' to 1.
11243 Parse "--disable-font-backend" option.
11244 (standard_args): Add "--disable-font-backend" option.
11245
112462008-02-01 Kenichi Handa <handa@m17n.org>
11247
11248 * fontset.c (fontset_find_font): New function.
11249 (fontset_font): Use fontset_find_font.
11250 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
11251 Register the specified font for all Latin characters.
11252 (new_fontset_from_font): Register the specified font for all Latin
11253 characters.
11254 (dump_fontset): For a realized fontset, include the base fontset
11255 name in the returned vector.
11256
112572008-02-01 Kenichi Handa <handa@m17n.org>
11258
11259 * character.h (CHAR_STRING): Cast C to unsigned on calling
11260 char_string.
11261
11262 * character.c (char_string): Type of arg C changed to unsigned.
11263 Signal an error if C is an invalid character code.
11264
11265 * editfns.c (general_insert_function, Fchar_to_string):
11266 Use CHARACTERP, not INTEGERP.
11267
112682008-02-01 Kenichi Handa <handa@m17n.org>
11269
11270 * character.h (MIN_MULTIBYTE_LEADING_CODE)
11271 (MAX_MULTIBYTE_LEADING_CODE): New macros.
11272
11273 * regex.c (analyse_first): Fix for multibyte characters in "case
11274 charset:" and "case categoryspec:".
11275
112762008-02-01 Andreas Schwab <schwab@suse.de>
11277
11278 * Makefile.in (LIBES): Move standard libraries to the end.
11279
112802008-02-01 Kenichi Handa <handa@m17n.org>
11281
11282 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
11283 nonzero, don't shrink the buffer nextb.
11284
11285 * buffer.h (struct buffer_text): New member inhibit_shrinking.
11286
11287 * coding.c (coding_alloc_by_making_gap): New arg offset.
11288 (alloc_destination): Call coding_alloc_by_making_gap with the arg
11289 offset.
11290 (decode_coding_iso_2022): Update coding->safe_charsets.
11291 (decode_coding_gap): Temporarily set
11292 current_buffer->text->inhibit_shrinking to 1.
11293
112942008-02-01 Kenichi Handa <handa@m17n.org>
11295
11296 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
11297 indexing into elements of s->cmp and s->char2b.
11298
112992008-02-01 Juanma Barranquero <lekktu@gmail.com>
11300
11301 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
11302
113032008-02-01 Kenichi Handa <handa@m17n.org>
11304
11305 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
11306 target_multibyte instead of multibyte.
11307 (re_match_2_internal): Call bcmp_translate with target_multibyte.
11308 (bcmp_translate): Change the argument name from multibyte to
11309 target_multibyte.
11310
113112008-02-01 Kenichi Handa <handa@m17n.org>
11312
11313 These changes are to compile a regexp into a pattern that can be
11314 used both for multibyte and unibyte targets.
11315
11316 * Makefile.in (search.o): Depend on charset.h.
11317
11318 * character.c (multibyte_char_to_unibyte_safe): New function.
11319
11320 * search.c: Include "charset.h".
11321 (compile_pattern_1): Delete argument multibyte. Don't set
11322 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
11323 (compile_pattern): Don't compare cp->buf.target_multibyte.
11324 Compare cp->buf.charset_unibyte.
11325 (compile_pattern): Set cp->buf.target_multibyte.
11326
11327 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
11328
11329 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
11330
11331 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
11332 multibyte. Change callers.
11333 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
11334 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
11335 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
11336 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
11337 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
11338 (regex_compile): Make the compiled pattern usable both for
11339 multibyte and unibyte targets.
11340 (analyse_first): Make the fastmap usable both for multibyte and
11341 unibyte targets.
11342 (TRANSLATE_VIA_MULTIBYTE): Delete.
11343 (re_match_2_internal): Pay attention to the case that the
11344 multibyteness of bufp and target may be different.
11345
113462008-02-01 Kenichi Handa <handa@m17n.org>
11347
11348 * xdisp.c (x_produce_glyphs): When a font is not found, make the
11349 empty box occupy at least one column width.
11350
113512008-02-01 Miles Bader <miles@gnu.org>
11352
11353 * Makefile.in: Remove redundant HAVE_XFT clause.
11354
113552008-02-01 Kenichi Handa <handa@m17n.org>
11356
11357 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
11358
113592008-02-01 Kenichi Handa <handa@m17n.org>
11360
11361 * fontset.c (Finternal_char_font): Fix for the case of POSITION
11362 being nil.
11363
113642008-02-01 Kenichi Handa <handa@m17n.org>
11365
11366 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
11367
113682008-02-01 Kenichi Handa <handa@m17n.org>
11369
11370 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
11371
113722008-02-01 Kenichi Handa <handa@m17n.org>
11373
11374 * search.c (simple_search): Fix previous change.
11375
113762008-02-01 Kenichi Handa <handa@m17n.org>
11377
11378 * xftfont.c (ftfont_font_format): Extern declaration.
11379
11380 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
11381
11382 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
11383 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
11384
11385 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
11386 (ftfont_font_format): Fix previous change.
11387
11388 * font.h (Ffont_xlfd_name): EXFUN it.
11389
11390 * font.c (font_parse_xlfd): Fix the array size of `f'.
11391 (register_font_driver): Use EQ to compare driver->type.
11392
11393 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
11394 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
11395 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
11396
113972008-02-01 Kenichi Handa <handa@m17n.org>
11398
11399 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
11400 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
11401
114022008-02-01 Kenichi Handa <handa@m17n.org>
11403
11404 * xfont.c (xfont_open): Set font->format.
11405
11406 * xftfont.c (xftfont_open): Set font->format.
11407
11408 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
11409 (ftfont_list): Include FC_FONTFORMAT in FcObject.
11410 (ftfont_open): Set font->format.
11411 (ftfont_font_format): New function.
11412
11413 * font.h (struct font): New member format.
11414
11415 * font.c (Qopentype): New variable.
11416 (syms_of_font): Defsym it.
11417 (Fquery_font): Change the format of the last element of the return
11418 value.
11419
114202008-02-01 Kenichi Handa <handa@m17n.org>
11421
11422 * xfns.c (xic_create_xfontset): Try the default fontset name as a
11423 last resort.
11424
114252008-02-01 Kenichi Handa <handa@m17n.org>
11426
11427 * coding.c (detect_coding_charset): Fix detection of multi-byte
11428 charset.
11429
114302008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
11431
11432 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
11433
114342008-02-01 Kenichi Handa <handa@m17n.org>
11435
11436 * xdisp.c (get_next_display_element): Set it->face_id for the
11437 first component of a composition.
11438 (x_produce_glyphs): Check if the font is changed or not for composition.
11439
114402008-02-01 Kenichi Handa <handa@m17n.org>
11441
11442 * fontset.c (Qlatin): New variable.
11443 (syms_of_fontset): Define it as a lisp symbol.
11444 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
11445
114462008-02-01 Kenichi Handa <handa@m17n.org>
11447
11448 * font.c (font_unparse_fcname): Pay attention to the case that
11449 some of font property is a null string.
11450
114512008-02-01 Kenichi Handa <handa@m17n.org>
11452
11453 * term.c: Include "composite.h".
11454 (encode_terminal_code): Output all components of composition.
11455 Check the size of encode_terminal_src.
11456 (produce_glyphs): For composition, call produce_composite_glyph.
11457 (append_composite_glyph, produce_composite_glyph): New functions.
11458
11459 * xdisp.c (x_produce_glyphs): In handling composition, if a font
11460 is not found, get font_info from the current ascii face.
11461
114622008-02-01 Kenichi Handa <handa@m17n.org>
11463
11464 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
11465 buffer-file-name to Qnil before calling insert_from_buffer.
11466
11467 * font.c (font_unparse_fcname): Pay attention to the case that
11468 foundry is a null string.
11469
114702008-02-01 Kenichi Handa <handa@m17n.org>
11471
11472 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
11473
11474 * font.c (Qunicode_sip): New variable.
11475 (syms_of_font): Declare it as a Lisp symbol.
11476
11477 * font.h (Qunicode_sip): Extern it.
11478
114792008-02-01 Kenichi Handa <handa@m17n.org>
11480
11481 * composite.c (get_composition_id): Pay attention to TAB component.
11482
11483 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
11484 TAB. Adjust for the change of s->char2b which always points to
11485 the first element of allocated memory.
11486
11487 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
11488
11489 * xdisp.c (handle_composition_prop): Set it->c to the first
11490 non-TAB component.
11491 (fill_composite_glyph_string): Change argument.
11492 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
11493 (x_produce_glyphs): Fix handling of left/right padding.
11494
114952008-02-01 Kenichi Handa <handa@m17n.org>
11496
11497 * coding.c (detect_coding_system): Fix for handling off
11498 inhibit_iso_escape_detection. Fix for the case that no coding
11499 system is defined for a specific coding category.
11500
115012008-02-01 Kenichi Handa <handa@m17n.org>
11502
11503 * font.c (font_matching_entity): Delete unused local var.
11504
11505 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
11506 opening a font.
11507
11508 * fileio.c (Finsert_file_contents): On recovering a file, assume
11509 Unix-like eol.
11510 (choose_write_coding_system): On auto-saving a file, force
11511 Unix-like eol.
11512
11513 * coding.c (setup_coding_system): Fix setting of
11514 coding->common_flags based on eol_type.
11515 (coding_inherit_eol_type): If PARENT is not nil, be sure to
11516 inherit from it.
11517
115182008-02-01 Kenichi Handa <handa@m17n.org>
11519
11520 * alloc.c (NSTATICS): Increas to 0x600.
11521
115222008-02-01 Kenichi Handa <handa@m17n.org>
11523
11524 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
11525 (ftfont_list): Don't check :name property.
11526 (ftfont_match): New function.
11527 (ftfont_pattern_entity): If the pattern doesn't contain
11528 FC_SPACING, don't assume FC_MONO.
11529
11530 * font.h (struct font_driver): New member `match'.
11531 (font_update_drivers): Adjust prototype.
11532
11533 * font.c (font_parse_fcname, font_parse_name): Don't change :name
11534 property of FONT.
11535 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
11536 them unconditionally.
11537 (font_matching_entity): New function.
11538 (font_open_by_name): Try font_matching_entity if exact match is
11539 not found.
11540 (font_update_drivers): Delete the arg FONT. Return a list of
11541 actually used backends. Don't free faces, font caches here.
11542 Don't store data in frame parameters. Don't call x_set_font.
11543 (Ffont_spec): Store :name property as is.
11544 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
11545 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
11546 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
11547 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
11548 Call font->driver->otf_gsub instead of font_otf_gsub.
11549
11550 * frame.c (x_set_font_backend): Do more works that were done in
11551 font_update_drivers before.
11552
11553 * xfont.c (xfont_match): New function.
11554 (xfont_driver): Set xfont_driver.match to xfont_match.
11555 (xfont_draw): Set font in GC if necessary.
11556
11557 * ftxfont.c (ftxfont_match): New function.
11558 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
11559
11560 * xftfont.c (xftfont_match): New function.
11561 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
11562
115632008-02-01 Kenichi Handa <handa@m17n.org>
11564
11565 * font.h (struct font): New member scalable.
11566 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
11567 (font_otf_gsub): Adjust prototype.
11568
11569 * font.c (font_otf_capability): Fix handling of the default langsys.
11570 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
11571 Check the contents of SPEC.
11572 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
11573 (check_gstring): New function.
11574 (REPLACEMENT_CHARACTER): New macro.
11575 (font_otf_gsub): New arg alternate_subst. Be sure to set all
11576 glyph codes of GSTRING.
11577 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
11578 (font_prepare_composition): Set cmp->glyph_len.
11579 (font_open_entity): Set font->scalable.
11580 (Ffont_get): Handle :otf property.
11581 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
11582 functions.
11583 (Fquery_font): Use font->font.full_name.
11584 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
11585 Sfont_otf_alternates.
11586
11587 * ftfont.c (ftfont_open): Set font->font.full_name and
11588 font->font.name properly. Fix calculation of font->font.height
11589 and font->min_width.
11590
11591 * ftxfont.c (ftxfont_create_gcs): New function.
11592 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
11593 (ftxfont_draw_backgrond): Fix filling region.
11594 (ftxfont_default_fid): New function.
11595 (ftxfont_open): Set xfont->fid to the return value of
11596 ftxfont_default_fid.
11597 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
11598 (ftxfont_done_face): Free only GCs that are created by
11599 ftxfont_create_gcs.
11600 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
11601
11602 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
11603 Clip to src->width, etc (not src->clip_XXX).
11604
11605 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
11606 FontBackend frame parameter.
11607
116082008-02-01 Kenichi Handa <handa@m17n.org>
11609
11610 * font.h (struct font_driver_list): New member `on'.
11611 (Fclear_font_cache): EXFUN it.
11612 (font_update_drivers): Extern it.
11613
11614 * font.c (font_unparse_fcname): Fix typo (swidth->width).
11615 (font_list_entities): Check driver_list->on.
11616 (register_font_driver): Initalize `on' member to 0.
11617 (font_update_drivers): New function.
11618 (Fclear_font_cache): Check driver_list->on.
11619
11620 * frame.h (Qfont_backend): Extern it.
11621 (x_set_font_backend): Extern it.
11622
11623 * frame.c (Qfont_backend): New variable.
11624 (frame_parms): New element for font-backend.
11625 (x_set_font_backend): New function.
11626
11627 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
11628 FontBackend frame parameter.
11629 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
11630 x_set_font_backend.
11631
11632 * xfont.c (xfont_list): Don't try listing by :name property if the
11633 name is not for XLFD.
11634
116352008-02-01 Kenichi Handa <handa@m17n.org>
11636
11637 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
11638 (LGLYPH_SET_TO): New macros.
11639 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
11640 element of G is vector or not.
11641 (font_at): Extern it.
11642
11643 * font.c: Include window.h.
11644 (font_lispy_object): New function.
11645 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
11646 end of valid glyph.
11647 (font_close_object): Fix getting (struct font *).
11648 (font_at): New function.
11649 (Ffont_get): If FONT is a font-object, get entity from it.
11650 (Ffont_make_gstring): Initialize elements of glyphs with nil.
11651 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
11652 range check.
11653 (Ffont_at): New function.
11654 (syms_of_font): Defsubr Sfont_at.
11655
11656 * xdisp.c (it_props): Move the entry for Qauto_composed to just
11657 before the entry for Qcomposition.
11658 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
11659 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
11660 the font in gstring.
11661 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
11662 LGLYPH_FORM (g) to detect the end of valid glyph.
11663 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
11664 we are composing with gstring.
11665
11666 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
11667 Check if adjustment is vector or not.
11668
11669 * Makefile.in (font.o): Make it depends on window.h.
11670
116712008-02-01 Kenichi Handa <handa@m17n.org>
11672
11673 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
11674 adjustment is vector or not.
11675
116762008-02-01 Miles Bader <miles@gnu.org>
11677
11678 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
11679
116802008-02-01 Kenichi Handa <handa@m17n.org>
11681
11682 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
11683 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
11684 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
11685
11686 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
11687 (DEVICE_DELTA): Fix typo.
11688 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
11689 LGLYPH format.
11690
11691 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
11692 the change of LGLYPH format.
11693
116942008-02-01 Kenichi Handa <handa@m17n.org>
11695
11696 * ftfont.c (ftfont_list): Fix typo.
11697 (ftfont_build_basic_charsets): Don't include letters with diacritics.
11698
116992008-02-01 Jan Djärv <jan.h.d@swipnet.se>
11700
11701 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
11702
11703 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
11704 xftface_info is non-NULL.
11705
117062008-02-01 Jan Djärv <jan.h.d@swipnet.se>
11707
11708 * ftfont.c (ftfont_list): Move misplaced #endif.
11709
117102008-02-01 Kenichi Handa <handa@m17n.org>
11711
11712 * ftfont.c (ftfont_list): Pay attention to the case that
11713 FC_CAPABILITY is not defined.
11714
117152008-02-01 Kenichi Handa <handa@m17n.org>
11716
11717 * xftfont.c (xftfont_open): Set charset related members to -1.
11718
11719 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
11720 QCname.
11721 (ftfont_open): Set charset related members to -1.
11722
11723 * fontset.c (Votf_script_alist): New variable.
11724 (syms_of_fontset): Initialize it.
11725 (fontset_font): Delete unused variable.
11726
11727 * fontset.h (Votf_script_alist): Extern it.
11728
11729 * font.c (font_find_for_lface): Optimize code.
11730
11731 * font.h (font_close_object, font_merge_old_spec): Extern them.
11732
117332008-02-01 Kenichi Handa <handa@m17n.org>
11734
11735 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
11736 (syms_of_font): Initialize them.
11737 (font_pixel_size): Allow float value in dpi.
11738 (font_prop_validate_type): Delete.
11739 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
11740 Change caller.
11741 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
11742 (font_prop_validate_extra): Delete.
11743 (font_prop_validate_spacing): New function.
11744 (font_property_table): Add elements for all known properties.
11745 (get_font_prop_index): Rename from check_font_prop_name. New
11746 argument FROM. Change caller.
11747 (font_prop_validate): Validate all known properties.
11748 (font_put_extra): Delete argument force. Change caller.
11749 (font_expand_wildcards): Make it static. Fix the way of shrinking
11750 the possible range.
11751 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
11752 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
11753 Change caller.
11754 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
11755 (font_parse_fcname): Delete argument merge. Fix parsing of point
11756 size. Don't validate properties values here. Change caller.
11757 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
11758 (font_open_by_name): Delete unused variable.
11759 (Ffont_spec): Likewise. Validate property values.
11760 (Ffont_match_p): New function.
11761
11762 * font.h (QCscalable): Extern it.
11763 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
11764
11765 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
11766
11767 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
11768 (xfont_list_pattern): New function.
11769 (xfont_list): Use xfont_list_pattern.
11770
117712008-02-01 Kenichi Handa <handa@m17n.org>
11772
11773 * font.h (Flist_fonts): EXFUN it.
11774
117752008-02-01 Jason Rumney <jasonr@gnu.org>
11776
11777 * w32term.c (w32_initialize): Add back smoothing_type and
11778 smoothing_enabled definitions.
11779
117802008-02-01 Kenichi Handa <handa@m17n.org>
11781
11782 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
11783 s->face->font on determining underline position.
11784
117852008-02-01 Kenichi Handa <handa@m17n.org>
11786
11787 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
11788 (font_has_char): Accept font-object too.
11789 (font_find_for_lface): Try at first with a size specified in face.
11790
117912008-02-01 Kenichi Handa <handa@m17n.org>
11792
11793 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
11794 font_open_by_name.
11795
117962008-02-01 Kenichi Handa <handa@m17n.org>
11797
11798 * font.h (QCspacing, QCdpi): Extern them.
11799 (enum font_spacing): New enum.
11800 (FONT_PIXEL_SIZE_QUANTUM): New macro.
11801
11802 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
11803 (QCspacing, QCdpi): New variables.
11804 (syms_of_font): Initialize them.
11805 (font_pixel_size): New function.
11806 (font_put_extra): New function.
11807 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
11808 in FONT_EXTRA.
11809 (font_parse_fcname): Handle enumerated values (e.g. bold).
11810 Fix handling font size. Add QCname property that contains only
11811 unknown properties.
11812 (font_score): Change argument. Change caller. Pay attention to
11813 FONT_PIXEL_SIZE_QUANTUM.
11814 (font_sort_entites, font_list_entities, font_find_for_lface)
11815 (font_open_for_lface, font_open_by_name): Fix handling of font size.
11816 (Ffont_spec): Add QCname property that contains only unknown properties.
11817
11818 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
11819 include weight in listing pattern, instead check weight of each
11820 listed font. Don't include scalable in pattern. Pay attention to
11821 FONT_PIXEL_SIZE_QUANTUM.
11822
118232008-02-01 Kenichi Handa <handa@m17n.org>
11824
11825 * font.c (font_parse_fcname): Fix parsing of point-size.
11826 (font_unparse_fcname): Produce symbolic names for style properties.
11827 (font_list_entities): Handle float size correctly.
11828 (font_open_by_name): Prefer `normal' property values if the name
11829 doesn't specify them.
11830
11831 * fontset.c (Finternal_char_font): Use font_get_name, not
11832 Ffont_xlfd_name.
11833
11834 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
11835 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
11836 pattern. Don't force scalable.
11837
11838 * xftfont.c (xftfont_open): For generating a name, start from
11839 96-byte buffer.
11840
118412008-02-01 Jan Djärv <jan.h.d@swipnet.se>
11842
11843 * frame.h (x_new_fontset2): Fix prototype.
11844
118452008-02-01 Kenichi Handa <handa@m17n.org>
11846
11847 * font.h (struct font_driver): Delete member parse_name.
11848 (font_match_p, font_get_spec, font_parse_fcname)
11849 (font_unparse_fcname): Extern them.
11850 (font_get_name): Adjust prototype.
11851
11852 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
11853 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
11854 (font_expand_wildcards): Fix handling ENCODING field. Avoid
11855 unnecessary checks for weight, slant, and swidth.
11856 (font_parse_fcname): New function.
11857 (font_unparse_fcname): New function.
11858 (font_parse_name): New function.
11859 (font_match_p): New function.
11860 (font_get_name): Change return value to Lisp string.
11861 (font_get_spec): New function.
11862 (Qunspecified, Qignore_defface): Don't extern them.
11863 (font_find_for_lface): Assume that LFACE is fully specified.
11864 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
11865 object, use it for FACE.
11866 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
11867 driver->parse_name.
11868 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
11869
11870 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
11871 prototype.
11872
11873 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
11874 argument F. Don't call Fnew_fontset. Instead, directly call
11875 make_fontset.
11876
11877 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
11878
11879 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
11880 of x_new_fontset2.
11881
11882 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
11883 (Qsans__serif): New variables.
11884 (ftfont_generic_family_list): New variable.
11885 (syms_of_ftfont): Initialize the above variables.
11886 (ftfont_pattern_entity): Delete argument NAME.
11887 (ftfont_list_generic_family): New function.
11888 (ftfont_parse_name): Delete this function.
11889 (ftfont_list): Try generic family only when FcFontList found no font.
11890 (ftfont_list_family): Fix args to FcObjectSetBuild.
11891
11892 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
11893 object in attrs[LFACE_FONT_INDEX].
11894 (set_lface_from_font_name): Cancel all changes for font-backend.
11895 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
11896 function.
11897 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
11898 font object in QCfont attribute.
11899 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
11900 (realize_default_face) [USE_FONT_BACKEND]: Call
11901 set_lface_from_font_and_fontset.
11902
11903 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
11904 "fixed", and signal error here if no suitable font was found.
11905
11906 * xfont.c (xfont_parse_name): Delete this function.
11907
11908 * xftfont.c (xftfont_open): Change coding style of error
11909 handling. Generate fontconfig's fontname pattern.
11910
11911 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
11912 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
11913
11914 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
11915 Both args FONTSET and FONT_OBJECT must be existing ones.
11916
119172008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11918
11919 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
11920
119212008-02-01 Kenichi Handa <handa@m17n.org>
11922
11923 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
11924
11925 * font.h (struct font): Fix typo.
11926
11927 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
11928 XLFD_XXX_INDEX.
11929 (enum xlfd_field_mask): New enum.
11930 (intern_font_field): Changed argument. Change caller. If digits
11931 are followed by non-digits, return a symbol.
11932 (font_expand_wildcards): New function.
11933 (font_parse_xlfd): Fix wildcard handling.
11934 (Ffont_spec): If :name is specified, reflect the info in the other
11935 properties.
11936
11937 * ftfont.c (ftfont_pattern_entity): Fix typo.
11938 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
11939 locale.
11940
119412008-02-01 Kenichi Handa <handa@m17n.org>
11942
11943 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
11944
11945 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
11946 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
11947 registry doesn't specify encoding part.
11948 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
11949 (font_open_by_name): At first try parsing the name.
11950 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
11951 as Lisp symbols.
11952
11953 * fontset.c (reorder_font_vector): Pay attention to the case that
11954 the 3rd element of font_def is nil.
11955 (fontset_font): For the default fontset, append one more fontset
11956 elements for a script-based font specification. Don't add script
11957 attribute on finding a font.
11958 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
11959 font name.
11960 (fontset_ascii_font): If a font can't be opened, return nil.
11961
11962 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
11963 (ftfont_pattern_entity): New function.
11964 (ftfont_get_cache): Assume that freetype_font_cache is already
11965 initialized.
11966 (ftfont_list): Handle the case that a file is specified in font
11967 name. Use ftfont_pattern_entity to generate entities.
11968 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
11969 (syms_of_ftfont): Initialize freetype_font_cache.
11970
11971 * xftfont.c (xftfont_open): Make the font name fontconfig's
11972 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
11973 (xftfont_close): Free font->font.name if not NULL.
11974
11975 * xfont.c (xfont_list): If script is specified for a font, return
11976 null_vector.
11977 (xfont_list_family): Declare argument type.
11978
11979 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
11980 name, set LFACE_FONT (lface) to nil.
11981
11982 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
11983 return Qnil.
11984
119852008-02-01 Kenichi Handa <handa@m17n.org>
11986
11987 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
11988 (standard_args): Add "-enable-font-backend".
11989
119902008-02-01 Kenichi Handa <handa@m17n.org>
11991
11992 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
11993 (struct xftdraw_list, xftdraw_list): Delete them.
11994 (register_xftdraw, check_xftdraw): Delete them.
11995 (xftfont_prepare_face): Don't call register_xftdraw.
11996 (xftfont_done_face): Don't call check_xftdraw.
11997 (xftfont_draw): Get background color only when with_background is
11998 nonzero.
11999
12000 * xfont.c (xfont_encode_char): Fix calculation of char2b.
12001
120022008-02-01 Kenichi Handa <handa@m17n.org>
12003
12004 These changes are for the new font handling codes.
12005
12006 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
12007 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
12008 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
12009 (FONTSRC, FONTOBJ): New variables.
12010 (obj): Add $(FONTOBJ).
12011 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
12012 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
12013 @LIBOTF_LIBS@.
12014 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
12015 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
12016
12017 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
12018
12019 * character.h (Vscript_representative_chars): Extern it.
12020
12021 * character.c (Vscript_representative_chars): New variable.
12022 (syms_of_character): Declare it as a Lisp variable.
12023
12024 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
12025 enable_font_backend is nonzero, accept the composition method
12026 COMPOSITION_WITH_GLYPH_STRING.
12027
12028 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
12029 enumeration COMPOSITION_WITH_GLYPH_STRING.
12030
12031 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
12032 members clip_x, clip_y, clip_width, and clip_height.
12033 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
12034
12035 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
12036 --enable-font-backend. Call syms_of_font.
12037
12038 * fns.c (assoc_no_quit): New function.
12039
12040 * fontset.h (FONT_INFO_FROM_FACE): New macro.
12041 (face_for_font, new_fontset_from_font)
12042 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
12043
12044 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
12045 (fontset_font, fontset_ascii, face_for_char)
12046 (make_fontset_for_ascii_face, Ffont_info)
12047 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
12048 is nonzero, use font-backend mechanism.
12049 (find_font_encoding): Make it non-static.
12050 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
12051 New functions.
12052
12053 * frame.h (struct frame): New members resx and resy.
12054 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
12055 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
12056
12057 * frame.c [USE_FONT_BACKEND]: Include "font.h".
12058 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
12059
12060 * lisp.h (assoc_no_quit): Extern it.
12061
12062 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
12063 Through out the file, use FONT_INFO_FROM_FACE instead of
12064 FONT_INFO_FROM_ID, use get_per_char_metric instead of
12065 rif->per_char_metric.
12066 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
12067 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
12068 (get_glyph_face_and_encoding, fill_composite_glyph_string)
12069 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
12070 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
12071 nonzero, use font-backend mechanism.
12072 (get_per_char_metric): New function.
12073
12074 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
12075 (set_lface_from_font_name)
12076 (set_font_frame_param, free_realized_face)
12077 (prepare_face_for_display, clear_face_gcs)
12078 (Finternal_set_font_selection_order, realize_x_face)
12079 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
12080 font-backend mechanism.
12081 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
12082 (load_face_font) [USE_FONT_BACKEND]: Abort.
12083 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
12084 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
12085
12086 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
12087 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
12088 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
12089 nonzero, register all available font drivers. Call
12090 x_default_font_parameter for deciding a font.
12091 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
12092
12093 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
12094 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
12095 (x_set_glyph_string_clipping_exactly)
12096 (x_compute_glyph_string_overhangs)
12097 (x_draw_glyph_string_foreground)
12098 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
12099 (x_free_frame_resources) [USE_FONT_BACKEND]: If
12100 enable_font_backend is nonzero, use font-backend mechanism.
12101 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
12102
121032008-02-01 Kenichi Handa <handa@m17n.org>
12104
12105 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
12106 system_eol_type.
12107 (syms_of_coding): Initialize system_eol_type.
12108
12109 * process.c (Fset_process_coding_system): Inherit system's eol
12110 format if necessary.
12111
121122008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12113
12114 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
12115
121162008-02-01 Kenichi Handa <handa@m17n.org>
12117
12118 * coding.c (decode_eol): Pay attention to buffer relocation in
12119 del_range_2.
12120 (decode_coding): Call decode_eol before restoring undo_list.
12121
121222008-02-01 Kenichi Handa <handa@m17n.org>
12123
12124 * charset.c (Fdefine_charset_internal): Fix setting of
12125 emacs_mule_bytes.
12126
121272008-02-01 Kenichi Handa <handa@m17n.org>
12128
12129 * keyboard.c (read_char): Check if C is a character or not before
12130 looking up Vkeyboard_translate_table.
12131
121322008-02-01 Kenichi Handa <handa@m17n.org>
12133
12134 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
12135 condition to terminate the loop.
12136
121372008-02-01 Kenichi Handa <handa@m17n.org>
12138
12139 * coding.c (produce_composition): Compare charbuf[i] instead of
12140 args[i] against 0.
12141 (Fterminal_coding_system): Use EQ to compare Lisp objects.
12142
121432008-02-01 Kenichi Handa <handa@m17n.org>
12144
12145 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
12146 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
12147 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
12148 detect_coding.
12149 (emacs_mule_char): Handle old style (Emacs 20) component character
12150 of a composition.
12151 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
12152 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
12153 composition rule.
12154 (decode_coding_emacs_mule): Handle invalid bytes correctly.
12155
121562008-02-01 Kenichi Handa <handa@m17n.org>
12157
12158 * coding.c (encode_coding_ccl): Allocate destination dynamically
12159 when necessary.
12160
121612008-02-01 Kenichi Handa <handa@m17n.org>
12162
12163 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
12164 the loop. When quitted, show a proper error message.
12165
121662008-02-01 Kenichi Handa <handa@m17n.org>
12167
12168 * xterm.c (x_set_glyph_string_clipping_exactly): Set
12169 src->clip_head and src->clip_tail temporarily instead of src->hl.
12170
12171 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
12172 character sequence.
12173 (Fccl_execute_on_string): Use ASET, not XSET.
12174
121752008-02-01 Kenichi Handa <handa@m17n.org>
12176
12177 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
12178
121792008-02-01 Kenichi Handa <handa@m17n.org>
12180
12181 * coding.c (decode_coding): Fix the condition of terminating the
12182 decoding loop.
12183
121842008-02-01 Kenichi Handa <handa@m17n.org>
12185
12186 * data.c (Faset): On setting a character bigger than 255 in a
12187 unibyte string, signal an error instead of make the string multibyte.
12188
121892008-02-01 Kenichi Handa <handa@m17n.org>
12190
12191 * charset.c (map_charset_chars): Fix for ascii-compatible charset
12192 made by a mapping table.
12193
121942008-02-01 Kenichi Handa <handa@m17n.org>
12195
12196 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
12197 not.
12198 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
12199 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
12200
12201 * xterm.c (x_draw_composite_glyph_string_foreground): Check
12202 s->face is NULL or not.
12203
122042008-02-01 Kenichi Handa <handa@m17n.org>
12205
12206 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
12207 (x_draw_glyph_string): Fix drawing of right_overhang and
12208 left_overhang around/on cursor.
12209
12210 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
12211
122122008-02-01 Kenichi Handa <handa@m17n.org>
12213
12214 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
12215
122162008-02-01 Kenichi Handa <handa@m17n.org>
12217
12218 * coding.c (Fdefine_coding_system_internal)
12219 (Fdefine_coding_system_alias): Avoid a duplicated element in
12220 Vcoding_system_alist.
12221
122222008-02-01 Kenichi Handa <handa@m17n.org>
12223
12224 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
12225
12226 * coding.c (Qcoding_system_define_form): New variable.
12227 (syms_of_coding): Intern and staticpro it.
12228 (Fcoding_system_p): Check Qcoding_system_define_form.
12229 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
12230
12231 * coding.h (CODING_SYSTEM_P): If ID is not available, call
12232 Fcoding_system_p.
12233 (CHECK_CODING_SYSTEM): If ID is not available, call
12234 Fcheck_coding_system.
12235 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
12236 Try also Fcheck_coding_system.
12237
122382008-02-01 Kenichi Handa <handa@m17n.org>
12239
12240 * coding.c (code_conversion_restore): GCPRO arg.
12241
122422008-02-01 Kenichi Handa <handa@m17n.org>
12243
12244 * character.c (lisp_string_width): Check multibyteness of STRING.
12245
122462008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12247
12248 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
12249 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
12250 (decode_mac_font_name): Use decode_coding_c_string instead of
12251 decode_coding.
12252 (x_load_font): Initialize fontp->fontset to -1. Set
12253 fontp->encoding_type.
12254
122552008-02-01 Kenichi Handa <handa@m17n.org>
12256
12257 * search.c (search_buffer): Give up BM search on case-fold-search
12258 if one of a target character has a case-equivalence of different
12259 byte length even if that target charcter is an ASCII.
12260 (simple_search): Fix calculation of byte length of matched text.
12261 (boyer_moore): Fix handling of case-equivalent multibyte characters.
12262
122632008-02-01 Kenichi Handa <handa@m17n.org>
12264
12265 * coding.c (decode_coding): Fix handling of invalid bytes.
12266
122672008-02-01 Kenichi Handa <handa@m17n.org>
12268
12269 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
12270 Unicode characters.
12271
122722008-02-01 Kenichi Handa <handa@m17n.org>
12273
12274 * coding.c (encode_coding_object): If a pre-write-conversion
12275 function makes a new buffer, kill it.
12276
122772008-02-01 Kenichi Handa <handa@m17n.org>
12278
12279 * coding.c (QCascii_compatible_p): New variable.
12280 (syms_of_coding): Initialize it.
12281 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
12282 calling string_char.
12283 (record_conversion_result): Add `default:' case.
12284 (coding_charset_list): Delete unused variable `coding_type'.
12285 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
12286 property in the plist of the coding system.
12287 (Fcoding_system_put): Check QCascii_compatible_p.
12288
122892008-02-01 Miles Bader <miles@gnu.org>
12290
12291 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
12292 removed calculation of frame `f', as it's now used.
12293
122942008-02-01 Kenichi Handa <handa@m17n.org>
12295
12296 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
12297 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
12298 (UNIDATA): New variable.
12299 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
12300 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
12301 $(RUN_TEMACS) unconditionally.
12302
123032008-02-01 Kenichi Handa <handa@m17n.org>
12304
12305 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
12306 (admindir): New variable.
12307 ($(lispsource)international/charprop.el): New target.
12308
123092008-02-01 Miles Bader <miles@gnu.org>
12310
12311 * character.c (chars-in-region): Remove obsolete function.
12312 (syms_of_character): Remove its initialization.
12313
123142008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
12315
12316 * w32select.c (validate_coding_system)
12317 (setup_windows_coding_system): New functions.
12318 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
12319 setup_windows_coding_system.
12320 (setup_config, Fw32_get_clipboard_data): Use
12321 validate_coding_system.
12322 (Fx_selection_exists): Move call to setup_config to a place
12323 where signals are allowed.
12324
12325 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
12326 (Fcheck_coding_system): Add declarations.
12327
123282008-02-01 Kenichi Handa <handa@m17n.org>
12329
12330 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
12331
123322008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12333
12334 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
12335 string as the second argument for x_new_fontset.
12336
123372008-02-01 Kenichi Handa <handa@m17n.org>
12338
12339 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
12340 (encode_coding_object): Use safe_call instead of call2.
12341
123422008-02-01 Kenichi Handa <handa@m17n.org>
12343
12344 * fontset.c (Fset_fontset_font): Check family element of a given vector.
12345
12346 * Makefile.in (lisp): Include charprop.el.
12347
123482008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12349
12350 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
12351 Not sure if it's unnecessary.
12352
123532008-02-01 Steven Tamm <steventamm@mac.com>
12354
12355 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
12356 some possibly unnecessary fontset checking code that crashed
12357 when creating a new frame.
12358
123592008-02-01 Kenichi Handa <handa@m17n.org>
12360
12361 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
12362 lookup_face.
12363
12364 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
12365
12366 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
12367
123682008-02-01 Kenichi Handa <handa@m17n.org>
12369
12370 * coding.c: Cancel the change done in HEAD on 2008-02-01.
12371 (coding_charset_list): New function.
12372
12373 * coding.h (coding_charset_list): Extern it.
12374
123752008-02-01 Kenichi Handa <handa@m17n.org>
12376
12377 * fontset.c (Fset_fontset_font): Call find_font_encoding with
12378 concatenation of family and registry.
12379
123802008-02-01 Kenichi Handa <handa@m17n.org>
12381
12382 * character.h (BYTE8_STRING): Fix typo.
12383
12384 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
12385 string to multibyte (sync to HEAD).
12386
12387 * casefiddle.c (casify_region): Handle changes in byte-length
12388 using replace_range_2 (sync to HEAD).
12389
123902008-02-01 Andreas Schwab <schwab@suse.de>
12391
12392 * chartab.c (map_char_table): GCPRO table and arg.
12393
123942008-02-01 Kenichi Handa <handa@m17n.org>
12395
12396 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
12397 already at limit.
12398
123992008-02-01 Kenichi Handa <handa@m17n.org>
12400
12401 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
12402 instead of fast_c_string_match_ignore_case.
12403 (find_font_encoding): Change argument to Lisp_Object. Use
12404 fast_string_match_ignore_case instead of
12405 fast_c_string_match_ignore_case. Change caller.
12406
124072008-02-01 Kenichi Handa <handa@m17n.org>
12408
12409 * xdisp.c (get_next_display_element): In unibyte case, decide to
12410 display in octal form by checking a character by
12411 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
12412
12413 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
12414
12415 * character.c (unibyte_has_multibyte_table): New variable.
12416
12417 * character.h (unibyte_has_multibyte_table): Extern it.
12418 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
12419
124202008-02-01 Kenichi Handa <handa@m17n.org>
12421
12422 * coding.c (encode_coding_iso_2022): Fix handling of charset
12423 annotation.
12424
124252008-02-01 Kenichi Handa <handa@m17n.org>
12426
12427 * coding.c (setup_coding_system): If coding_system is nil, use
12428 Qundecided.
12429 (Fterminal_coding_system): Return nil if terminal coding system is
12430 `undecided'.
12431 (syms_of_coding): Define coding-system `undecided' here. Setup
12432 terminal_coding as `undecided'.
12433
124342008-02-01 Kenichi Handa <handa@m17n.org>
12435
12436 * xdisp.c (message_dolog, set_message_1): Call
12437 unibyte_char_to_multibyte with arg type int.
12438
12439 * lread.c (read1): Fix reading of a char-table.
12440
12441 * print.c (print_object): Include sub char-table in circularities
12442 detection.
12443
124442008-02-01 Kenichi Handa <handa@m17n.org>
12445
12446 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
12447 Append the found sequences in car of ARGS instead of prepending.
12448
124492008-02-01 Kenichi Handa <handa@m17n.org>
12450
12451 * fileio.c (report_file_error): Make a unibyte string from
12452 strerror (errorno).
12453 (Fsubstitute_in_file_name): Fix the arg to
12454 unibyte_char_to_multibyte. It is evaluated twice.
12455
124562008-02-01 Kenichi Handa <handa@m17n.org>
12457
12458 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
12459
124602008-02-01 Kenichi Handa <handa@m17n.org>
12461
12462 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
12463 BOM is not found.
12464 (detect_coding, detect_coding_system): Optimization for ISO-2022
12465 when no 8-bit data is found.
12466
124672008-02-01 Jason Rumney <jasonr@gnu.org>
12468
12469 * w32fns.c (x_to_w32_font): Update to use new coding struct.
12470
124712008-02-01 Kenichi Handa <handa@m17n.org>
12472
12473 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
12474 CHARS.
12475
124762008-02-01 Steven Tamm <steventamm@mac.com>
12477
12478 * macterm.c (mac_encode_char): Add charset argument and update
12479 to use encoding_type.
12480 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
12481 switch to pure fontset.
12482 (decode_mac_font_name): Temporarily remove decoding.
12483 (x_font_name_to_mac_font_name): Temporarily remove encoding.
12484 (x_load_font): Temporarily remove encoding.
12485
124862008-02-01 Kenichi Handa <handa@m17n.org>
12487
12488 * xfaces.c (Fface_font): If frame is not on a window system,
12489 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
12490 refer to face->font.
12491 (split_font_name_into_vector, build_font_name_from_vector)
12492 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
12493 when HAVE_WINDOW_SYSTEM is defined.
12494
124952008-02-01 Kenichi Handa <handa@m17n.org>
12496
12497 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
12498 (x_produce_glyphs): Fix setting of members of cmp in case
12499 cmp->glyph_len is zero.
12500
12501 * fontset.c (Fset_fontset_font): Fix docstring.
12502 (Ffontset_info): Make it backward compatible. New arg ALL.
12503
125042008-02-01 Kim F. Storm <storm@cua.dk>
12505
12506 * process.c (read_process_output): Grow decoding_buf when needed;
12507 this could cause a crash in allocate_string and compact_small_strings.
12508
125092008-02-01 Kenichi Handa <handa@m17n.org>
12510
12511 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
12512
125132008-02-01 Kenichi Handa <handa@m17n.org>
12514
12515 * coding.c (setup_coding_system): Set coding->common_flags
12516 correctly for raw-text.
12517 (consume_chars): On encoding unibyte text by raw-text, don't check
12518 multibyte form.
12519 (encode_coding): On encoding by raw-text, never use translation tables.
12520
12521 * fileio.c (e_write): Short cut for the case of no encoding.
12522
125232008-02-01 Kenichi Handa <handa@m17n.org>
12524
12525 * coding.c (detect_coding, detect_coding_system): Delete unused
12526 variables.
12527
125282008-02-01 Kenichi Handa <handa@m17n.org>
12529
12530 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
12531 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
12532
125332008-02-01 Kenichi Handa <handa@m17n.org>
12534
12535 * coding.c (Ffind_coding_systems_region_internal): Include
12536 raw-text and no-conversion in the result.
12537
125382008-02-01 Kenichi Handa <handa@m17n.org>
12539
12540 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
12541 (load_font_get_repertory): Delete unnecessary check of ENCODING of
12542 FONT_DEF.
12543 (font_def_arg, add_arg, from_arg, to_arg): New args.
12544 (set_fontset_font): Change argument.
12545 (Fset_fontset_font): Fix for the case that TARGET is a script
12546 name and charset name.
12547 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
12548
125492008-02-01 Kenichi Handa <handa@m17n.org>
12550
12551 * fontset.c (fontset_font): Rename from fontset_face. Change return
12552 value.
12553 (face_suitable_for_char_p, face_for_char): Adjust for the change
12554 of fontset_font.
12555 (make_fontset_for_ascii_face): Fix setting of the fontset element
12556 for ASCII.
12557 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
12558 to get a font name.
12559 (Ffontset_info): Adjust for the change of fontset_font.
12560
12561 * coding.c (emacs_mule_char): Check invalid code more rigidly.
12562
12563 * character.h (LEADING_CODE_LATIN_1_MIN)
12564 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
12565
125662008-02-01 Kenichi Handa <handa@m17n.org>
12567
12568 * editfns.c (check_translation): New function.
12569 (Ftranslate_region_internal): Handle M:N mapping.
12570
125712008-02-01 Kenichi Handa <handa@m17n.org>
12572
12573 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
12574
125752008-02-01 Kenichi Handa <handa@m17n.org>
12576
12577 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
12578 goto invalid_code.
12579 (decode_coding_iso_2022): Fix handling of invalid designation.
12580
12581 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
12582 after calling code_conversion_save.
12583
125842008-02-01 Kenichi Handa <handa@m17n.org>
12585
12586 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
12587
12588 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
12589
12590 * fontset.c: Include "intervals.h".
12591 (fontset_face): Fix comparing of Lisp_Objects.
12592 (free_face_fontset, new_fontset_from_font_name): Fix
12593 Lisp_Object/int mixup.
12594
12595 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
12596
12597 * coding.c: Add many prototypes for static functions.
12598 (get_translation_table): Allow max_lookup to be NULL.
12599 (decode_coding, Ffind_coding_systems_region_internal)
12600 (Funencodable_char_position, Fcheck_coding_systems_region): Call
12601 get_translation_table with max_lookup NULL.
12602
126032008-02-01 Kenichi Handa <handa@m17n.org>
12604
12605 * coding.c (get_translation_table): Declare it as Lisp_Object.
12606 (LOOKUP_TRANSLATION_TABLE): New macro.
12607 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
12608 instead of CHAR_TABLE_REF.
12609
126102008-02-01 Kenichi Handa <handa@m17n.org>
12611
12612 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
12613 annotation data format.
12614 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
12615 Change arguments FROM and TO to single argument NCHARS. Change caller.
12616 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
12617 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
12618 (decode_coding_ccl, decode_coding_charset): Pay attention to
12619 coding->charbuf_used.
12620 (get_translation): New function.
12621 (produce_chars): New arguments translation_table and last_block.
12622 Translate characters here. Return number of carryover chars.
12623 Change caller.
12624 (produce_composition): New argument pos. Change caller.
12625 Adjust for the change of annotation data format.
12626 (produce_charset, produce_annotation): Likewise.
12627 (decode_coding, encode_coding): Don't call translate_chars.
12628 (consume_chars): New arg translation_table. Change caller.
12629 (translate_chars): Delete.
12630 (syms_of_coding): Make translation-table's number of extra slots 2.
12631
126322008-02-01 Kenichi Handa <handa@m17n.org>
12633
12634 * search.c (simple_search): Fix setting this_pos_byte in backward
12635 search.
12636
12637 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
12638 byte sequence.
12639 (detect_coding_ccl): Fix setting of the variable valids.
12640
126412008-02-01 Kenichi Handa <handa@m17n.org>
12642
12643 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
12644
12645 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
12646
12647 * editfns.c (Ftranslate_region_internal): Rename from
12648 Ftranslate_region. Accept a char-table in TABLE.
12649 (syms_of_editfns): Defsubr Stranslate_region_internal.
12650
12651 * xfaces.c (set_lface_from_font_name): If a font is specified for
12652 a frame, generate a fontset from the font.
12653 (build_scalable_font_name): If the scalable font is requested for
12654 a specific size, don't change that size.
12655 (try_font_list): Try a scalable font also in the case that a
12656 pattern string is specified.
12657
126582008-02-01 Kenichi Handa <handa@m17n.org>
12659
12660 * xfaces.c (Fface_font): New optional arg CHARACTER.
12661
126622008-02-01 Kenichi Handa <handa@m17n.org>
12663
12664 * charset.h (CHARSET_OFFSET): New macro.
12665
126662008-02-01 Kenichi Handa <handa@m17n.org>
12667
12668 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
12669
12670 * fontset.c (fontset_face): Handle the case that repertory is a
12671 char-table.
12672 (find_font_encoding): Return nil for unknown encoding.
12673 (Fset_fontset_font): Ignore a font of unknown encoding.
12674
126752008-02-01 Kenichi Handa <handa@m17n.org>
12676
12677 * keymap.c (describe_vector): Handle default value of a char table.
12678
12679 * fontset.c (fontset_face): Handle fallback fonts correctly.
12680 (Ffontset_info): Return infomation about fallback fonts.
12681
126822008-02-01 Kenichi Handa <handa@m17n.org>
12683
12684 * fontset.c (FONTSET_DEFAULT): New macro.
12685 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
12686 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
12687 the case that it is nil.
12688 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
12689 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
12690
12691 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
12692 subset or superset.
12693
126942008-02-01 Kenichi Handa <handa@m17n.org>
12695
12696 * emacs.c (main): Call init_charset after syms_of_XXX.
12697
12698 * charset.c (Vcharset_map_directory): Delete.
12699 (Vcharset_map_path): New variable.
12700 (load_charset_map_from_file): Use Vcharset_map_path instead.
12701 (init_charset): Initialize Vcharset_map_path.
12702 (syms_of_charset): Delete declaration of "charset-map-directory",
12703 add declaration of "charset-map-path".
12704
127052008-02-01 Kenichi Handa <handa@m17n.org>
12706
12707 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
12708 ASCII only string.
12709
12710 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
12711
12712 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
12713 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
12714
127152008-02-01 Kenichi Handa <handa@m17n.org>
12716
12717 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
12718
12719 * coding.c (QCmnemonic, QCdefalut_char)
12720 (QCdecode_translation_table, QCencode_translation_table)
12721 (QCpost_read_conversion, QCpre_write_conversion): New variables.
12722 (get_translation_table): Return a list of translation tables if
12723 necessary.
12724 (decode_coding): Call get_translation_table with ENCODEP 0.
12725 (char_encodable_p): If translation_table is non-nil, always call
12726 translate_char.
12727 (Fdefine_coding_system_internal): Accept list of translation
12728 tables as :encode-translation-table and :decode-translation-table.
12729 (Fcoding_system_put): New function.
12730 (syms_of_coding): Declare new symbols. Defsubr
12731 Scoding_system_put.
12732 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
12733 typically JISX0212.
12734
12735 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
12736 when the charset is superset type.
12737
12738 * character.c (translate_char): Accept list of translation tables.
12739
127402008-02-01 Kenichi Handa <handa@m17n.org>
12741
12742 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
12743 (CODING_ATTR_TRANS_TBL): New macro.
12744
12745 * coding.c (get_translation_table): New function.
12746 (translate_chars): Fix the bug of skipping annotation data.
12747 (decode_coding, encode_coding): Utilize get_translation_table.
12748 (char_encodable_p, Funencodable_char_position): Translate char if
12749 necessary.
12750 (Ffind_coding_systems_region_internal)
12751 (Fcheck_coding_systems_region): Setup translation table for encode
12752 in a coding system attribute vector in advance.
12753 (Fdefine_coding_system_internal): Allow a symbol as translation
12754 table. For shift-jis type coding system, allow 4th charset.
12755
127562008-02-01 Kenichi Handa <handa@m17n.org>
12757
12758 * coding.c (decode_coding_sjis): Check the first byte rigidly.
12759
12760 * xdisp.c (get_next_display_element): Pass -1 as POS to
12761 FACE_FOR_CHAR if displaying a C-string.
12762
127632008-02-01 Kenichi Handa <handa@m17n.org>
12764
12765 * composite.c (get_composition_id): Handle xoff and yoff in a
12766 composition rule.
12767
12768 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
12769 (struct composition): New member lbearing and rbearing.
12770
12771 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
12772 (x_get_glyph_overhangs): Handle a composition glyph.
12773 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
12774
12775 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
12776 composition glyph.
12777
127782008-02-01 Kenichi Handa <handa@m17n.org>
12779
12780 * print.c: Include charset.h.
12781 (Vprint_charset_text_property): New variable.
12782 (Qdefault): Extern it.
12783 (PRINT_STRING_NON_CHARSET_FOUND)
12784 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
12785 (print_check_string_result): New variable.
12786 (print_check_string_charset_prop): New function.
12787 (print_prune_charset_plist): New variable.
12788 (print_prune_string_charset): New function.
12789 (print_object): Call print_prune_string_charset if
12790 Vprint_charset_text_property is not t.
12791 (print_interval): Print nothing if interval->plist is nil.
12792 (syms_of_print): Declare Vprint_charset_text_property as a lisp
12793 variable. Init and staticpro print_prune_charset_plist.
12794
127952008-02-01 Kenichi Handa <handa@m17n.org>
12796
12797 * fontset.c (new_fontset_from_font_name): Use the specified font
12798 for all characters in the new fontset.
12799
12800 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
12801 OBJECT args.
12802
12803 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
12804 OBJECT args for composition too.
12805
12806 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
12807 OBJECT args.
12808
128092008-02-01 Kenichi Handa <handa@m17n.org>
12810
12811 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
12812
12813 * fontset.c (reorder_font_vector): Adjust for the change of
12814 FONT_DEF format.
12815 (fontset_face): New arg id. Change caller.
12816 (face_for_char): New args pos and object.
12817 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
12818 (fs_query_fontset): Check NAME by Fassoc too.
12819 (Fset_fontset_font): Allow non-XLFD font name.
12820 (Ffontset_info): Adjust for the change of FONT_DEF format.
12821
12822 * fontset.h (face_for_char): Adjust prototype.
12823
12824 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
12825 (append_space, extend_face_to_end_of_line)
12826 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
12827 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
12828
12829 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
12830 POS and OBJECT args.
12831
12832 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
12833 POS and OBJECT args.
12834
128352008-02-01 Jason Rumney <jasonr@gnu.org>
12836
12837 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
12838 of GlobalAlloc'ed memory.
12839
128402008-02-01 Kenichi Handa <handa@m17n.org>
12841
12842 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
12843
12844 * charset.h (charset_table_used): Delete extern.
12845
12846 * charset.c (charset_table_used): Make it static.
12847 (map_charset_chars): Fix args to c_function with.
12848
12849 * chartab.c (map_sub_char_table_for_charset): Fix args to
12850 c_function with.
12851
12852 * coding.h (enum coding_result_code): Delete
12853 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
12854
12855 * coding.c (Qinsufficient_source, Qinconsistent_eol)
12856 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
12857 (Vlast_code_conversion_error): New variables.
12858 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
12859 (ONE_MORE_BYTE): Record error if any instead of signaling an
12860 error. If non-ASCII multibyte char is found, return the negative
12861 value of the code. All callers changed to check it.
12862 (ONE_MORE_BYTE_NO_CHECK): Likewise.
12863 (record_conversion_result): New function. Change all codes setting
12864 coding->result to call this function.
12865 (detect_coding_utf_8, decode_coding_utf_8)
12866 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
12867 Don't use the local variable incomplete.
12868 (emacs_mule_char): Change the second arg to `const'.
12869 (decode_coding): Fix of flushing out unprocessed data.
12870 (make_conversion_work_buffer): Fix making of a work buffer.
12871 (decode_coding_object): Return coding->dst_object.
12872
12873 * fontset.c (set_fontset_font): Fix args.
12874
12875 * lisp.h (CHARACTERBITS): Define as 22.
12876
12877 * process.c (send_process): Be sure to set coding->src_multibyte.
12878
12879 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
12880
128812008-02-01 Kenichi Handa <handa@m17n.org>
12882
12883 * xdisp.c (handle_auto_composed_prop): Give limit to
12884 Fnext_single_char_property_change.
12885
128862008-02-01 Kenichi Handa <handa@m17n.org>
12887
12888 * composite.c (syms_of_composite): Don't make the composition hash
12889 table weak.
12890
12891 * fontset.c (Fset_fontset_font): Fix docstring.
12892
12893 * lisp.h (detect_coding_system): Adjust prototype.
12894
12895 * fileio.c (kill_workbuf_unwind): Delete this function.
12896 (Finsert_file_contents): Adjust the call of detect_coding_system.
12897 Get conversion_buffer by code_conversion_save. Use the macro
12898 CODING_MAY_REQUIRE_DECODING. After decoding, update
12899 coding_system.
12900
12901 * coding.h (make_conversion_work_buffer): Delete extern.
12902 (code_conversion_save): Extern it.
12903
12904 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
12905 (CODING_GET_INFO): Delete argument eol_type. Change callers.
12906 (decode_coding_utf_8): Don't do eol converion.
12907 (detect_coding_utf_16): Check coding->src_chars, not
12908 coding->src_bytes. Add heuristics for those that have no signature.
12909 (decode_coding_emacs_mule, decode_coding_iso_2022)
12910 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
12911 Don't do eol converion.
12912 (adjust_coding_eol_type): Return a new coding system.
12913 (detect_coding): Don't detect eol. Fix for utf-16 detection.
12914 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
12915 each change.
12916 (decode_coding): Pay attention to undo_list. Do eol conversion for
12917 all types of coding-systems (if necessary).
12918 (Vcode_conversion_work_buf_list): Delete it.
12919 (Vcode_conversion_reused_workbuf): Rename from
12920 Vcode_conversion_reused_work_buf.
12921 (Vcode_conversion_workbuf_name): New variable.
12922 (reused_workbuf_in_use): New variable.
12923 (make_conversion_work_buffer): Delete the arg DEPTH.
12924 (code_conversion_restore): Change argument to cons.
12925 (code_conversion_save): Delete the argument BUFFER. Change callers.
12926 (detect_coding_system): New argument src_chars. Change callers.
12927 Fix for utf-16 detection.
12928 (init_coding_once): Don't use ISO_carriage_return.
12929 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
12930 reused_workbuf_in_use.
12931
129322008-02-01 Kenichi Handa <handa@m17n.org>
12933
12934 * keymap.c (store_in_keymap): Pay attention to the case that idx
12935 is a cons specifying a character range.
12936
129372008-02-01 Kenichi Handa <handa@m17n.org>
12938
12939 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
12940 HANDLED_RECOMPUTE_PROPS.
12941
12942 * coding.c (Fdefine_coding_system_internal): Fix checking of
12943 ascii compatibility.
12944
129452008-02-01 Kenichi Handa <handa@m17n.org>
12946
12947 * charset.c (find_charsets_in_text): Delete unused locale variable.
12948 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
12949
12950 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
12951 Resync charset_list to Vemacs_mule_charset_list.
12952
12953 * keymap.c (store_in_keymap): Pay attention to the case that idx
12954 is a cons specifying a character range.
12955
129562008-02-01 Kenichi Handa <handa@m17n.org>
12957
12958 * composite.c (update_compositions): Bind inhibit-read-only, etc
12959 to t before calling remove-list-of-text-properties.
12960
12961 * print.c (print_object): Always print ASCII chars as is.
12962
129632008-02-01 Kenichi Handa <handa@m17n.org>
12964
12965 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
12966
12967 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
12968 is a char table.
12969
129702008-02-01 Kenichi Handa <handa@m17n.org>
12971
12972 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
12973
129742008-02-01 Kenichi Handa <handa@m17n.org>
12975
12976 * xfaces.c (set_lface_from_font_name): Fix for the case that
12977 FONTNAME is not fontset name.
12978
129792008-02-01 Kenichi Handa <handa@m17n.org>
12980
12981 * fns.c (base64_encode_1): Fix previous change.
12982
129832008-02-01 Kenichi Handa <handa@m17n.org>
12984
12985 * fontset.c (set_fontset_font): New function.
12986 (Fset_fontset_font): If a font is specified for a charset, use
12987 map_charset_chars to store the font spec in a fontset.
12988
129892008-02-01 Kenichi Handa <handa@m17n.org>
12990
12991 * fontset.c (fontset_face): Create a fallback fontset on demand.
12992 (make_fontset): Don't create a fallback fontset here.
12993 (free_face_fontset): Free a fallback fontset (if any) too.
12994 (n_auto_fontsets): Delete this variable.
12995 (auto_fontset_alist): New variable.
12996 (new_fontset_from_font_name): Check auto_fontset_alist.
12997 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
12998 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
12999 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
13000 Defsubr Sfontset_list_all.
13001
130022008-02-01 Kenichi Handa <handa@m17n.org>
13003
13004 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
13005
130062008-02-01 Kenichi Handa <handa@m17n.org>
13007
13008 * fontset.c (Fnew_fontset): Check NAME more rigidly.
13009
130102008-02-01 Kenichi Handa <handa@m17n.org>
13011
13012 * editfns.c (Fgoto_char): Fix docstring.
13013
130142008-02-01 Kenichi Handa <handa@m17n.org>
13015
13016 * insdel.c (insert_from_gap): Adjust intervals correctly.
13017
130182008-02-01 Jason Rumney <jasonr@gnu.org>
13019
13020 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
13021 (pfnGetFontUnicodeRanges): New dynamically loaded function.
13022 (w32_initialize): Try to load it.
13023 (x_get_font_repertory): Use it if available.
13024 (w32_encode_char): Add shortcut for unicode output.
13025
13026 * w32fns.c (w32_load_system_font): Default charset to -1.
13027 (x_to_w32_charset): Match all fonts for unicode.
13028 (w32_to_x_charset): New parameter matching. Don't return partial
13029 or wildcard charsets.
13030 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
13031 (w32_codepage_for_font): Return CP_UNICODE for unicode.
13032 (w32_to_x_font): Match charset to real charset.
13033 (enum_font_cb2): Always list unicode versions.
13034
13035 * makefile.w32-in (temacs): Increase EMHEAP.
13036
130372008-02-01 Jason Rumney <jasonr@gnu.org>
13038
13039 * w32term.c (w32_encode_char): New charset parameter.
13040 font_info.encoding becomes encoding_type.
13041 (x_get_font_repertory): New function. Warning: stub only!
13042 (x_new_font): Return quickly if font already set.
13043 (x_new_fontset): fontsetname parameter is Lisp_Object.
13044 Use new fs_query_fontset. Try new_fontset_from_font_name.
13045 Use fontset_name for return value.
13046
13047 * w32term.h: Declare x_get_font_repertory.
13048
13049 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
13050 place of find_charset_in_text. Use encode_coding_object in place
13051 of encode_coding.
13052 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
13053 decode_coding.
13054
13055 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
13056 of x_new_fontset.
13057 (w32_load_system_font): Initialize charset as unicode.
13058 font_info.encoding becomes encoding_type.
13059 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
13060 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
13061 (syms_of_w32fns): Set get_font_repertory_func.
13062
13063 * w32console.c: Include character.h. Use terminal_encode_buffer
13064 from term.c.
13065 (write_glyphs): Use new version of encode_terminal_code. Use
13066 encode_coding_object in place of encode_coding.
13067
13068 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
13069 encoding becomes encoding_type.
13070
13071 * term.c (terminal_encode_buffer): Make externally visible.
13072
13073 * makefile.w32-in: Add character.h dependancies.
13074 (character.o, chartab.o): New targets.
13075
130762008-02-01 Kenichi Handa <handa@m17n.org>
13077
13078 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
13079 CODING_ID_EOL_TYPE.
13080
130812008-02-01 Andreas Schwab <schwab@suse.de>
13082
13083 * coding.c (produce_chars): Revert last change.
13084
130852008-02-01 Kenichi Handa <handa@m17n.org>
13086
13087 * charset.h (charset_unicode): Extern it.
13088
13089 * charset.c (string_xstring_p): Check by (C >= 0x100).
13090 (find_charsets_in_text): Change format of the arc CHARSETS. New
13091 arg MULTIBYTE.
13092 (Ffind_charset_region, Ffind_charset_string): Adjust for the
13093 change of find_charsets_in_text.
13094 (Fsplit_char): Fix doc. Never return unknown.
13095
13096 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
13097
13098 * coding.c (Fdefine_coding_system_alias): Update
13099 Vcoding_system_list.
13100
13101 * fontset.c (load_font_get_repertory): Pay attention to the case
13102 that ENCODING of a font is specified by a char-table.
13103
13104 * xterm.c (x_get_font_repertory): Handle the case that the
13105 encoding of font is other than Unicode.
13106
131072008-02-01 Kenichi Handa <handa@m17n.org>
13108
13109 * term.c (encode_terminal_code): Don't handle glyph-table. Check
13110 if a character is encodable by the terminal coding system. If
13111 not, produces proper number of `?'s. Update
13112 terminal_encode_buffer and terminal_encode_buf_size if necessary.
13113 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
13114
131152008-02-01 Kenichi Handa <handa@m17n.org>
13116
13117 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
13118 variables.
13119 (encode_terminal_code): Change argument. Encode multiple
13120 characters at once. Store the result of encoding in
13121 terminal_encode_buffer.
13122 (write_glyphs, insert_glyphs): Adjust for the change of
13123 encode_terminal_code.
13124 (term_init): Initialize terminal_encode_buffer and
13125 terminal_encode_buf_size.
13126
13127 * coding.c (consume_chars): If coding->src_object is nil, don't
13128 check annotation.
13129
131302008-02-01 Kenichi Handa <handa@m17n.org>
13131
13132 * character.c (char_string): Use ASCII_CHAR_P instead of
13133 SINGLE_BYTE_CHAR_P.
13134
131352008-02-01 Kenichi Handa <handa@m17n.org>
13136
13137 * xdisp.c (handle_auto_composed_prop): Check if the last
13138 characters of auto-composed region is newly composed with the
13139 following characters.
13140 (handle_composition_prop): Fix checking of point being inside
13141 composition.
13142
131432008-02-01 Kenichi Handa <handa@m17n.org>
13144
13145 * fns.c (concat): Don't change multibyteness of the result by
13146 concatenating an 8-bit character.
13147
13148 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
13149 multibyteness of the result when newelt is an 8-bit character.
13150
131512008-02-01 Dave Love <fx@gnu.org>
13152
13153 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
13154 EMACS_INT.
13155
13156 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
13157
13158 * xfaces.c (face_numeric_value): Declare dim size_t.
13159 (Finternal_lisp_face_equal_p): Remove unused f.
13160
13161 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
13162 (MATRIX_ROW): Remove unused vars.
13163 (draw_glyphs, x_insert_glyphs, fast_find_position)
13164 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
13165 byte/char counts.
13166
13167 * regex.c (regex_compile): Remove unused var.
13168
13169 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
13170
13171 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
13172 (Faccessible_keymaps, where_is_internal): Remove unused vars.
13173
13174 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
13175
13176 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
13177
13178 * fileio.c (Fwrite_region): Remove unused var.
13179
13180 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
13181 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
13182
13183 * composite.c (Fremove_list_of_text_properties): Declare.
13184
13185 * coding.c (inhibit_pre_post_conversion): Remove (unused).
13186 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
13187 (coding_inherit_eol_type): Remove unused attrs.
13188 (detect_coding): Cast arg of detect_eol.
13189
13190 * charset.c (syms_of_charset): Remove unused var p.
13191 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
13192 byte/char counts.
13193
13194 * casetab.c (set_case_table): Remove unused var.
13195
13196 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
13197 unused vars.
13198
131992008-02-01 Dave Love <fx@gnu.org>
13200
13201 * xterm.c (x_bitmap_mask): Declare.
13202
132032008-02-01 Dave Love <fx@gnu.org>
13204
13205 * xterm.c (x_term_init): Fix type error.
13206
13207 * lisp.h: Add Funibyte_char_to_multibyte.
13208
13209 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
13210 (Fset_coding_system_priority): Doc fix.
13211
13212 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
13213
13214 * indent.c (check_composition): Make start and end EMACS_INT.
13215
13216 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
13217
13218 * xdisp.c (handle_composition_prop, check_point_in_composition):
13219 Make buffer positions EMACS_INT.
13220
13221 * composite.c (find_composition, run_composition_function)
13222 (update_compositions, Ffind_composition_internal): Make buffer
13223 positions EMACS_INT.
13224
13225 * composite.h (find_composition, update_compositions): Make
13226 position args EMACS_INT.
13227
13228 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
13229
13230 * intervals.c (get_property_and_range):
13231 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
13232
13233 * unexalpha.c: Don't include varargs.h.
13234
132352008-02-01 Dave Love <fx@gnu.org>
13236
13237 * coding.h (ENCODE_UTF_8): New.
13238
13239 * Makefile.in (gtkutil.o): Depend on coding.h.
13240
13241 * coding.c (Fset_coding_system_priority): Doc fix.
13242
132432008-02-01 Kenichi Handa <handa@m17n.org>
13244
13245 * fileio.c (Finsert_file_contents): Call setup_coding_system in
13246 the case of auto saving.
13247
132482008-02-01 Andreas Schwab <schwab@suse.de>
13249
13250 * chartab.c (map_char_table, map_char_table_for_charset): Protect
13251 `range' from GC.
13252
132532008-02-01 Kenichi Handa <handa@m17n.org>
13254
13255 * coding.c (decode_coding_sjis): Check bytes more rigidly.
13256
132572008-02-01 Kenichi Handa <handa@m17n.org>
13258
13259 * fileio.c (choose_write_coding_system): Return a decided coding system.
13260 (Fwrite_region): Set Vlast_coding_system_used to the return value
13261 of choose_write_coding_system.
13262
132632008-02-01 Kenichi Handa <handa@m17n.org>
13264
13265 * charset.c (Fset_charset_priority): Pay attention to duplicated
13266 arguments.
13267
13268 * coding.c (QCcategory): New variable.
13269 (syms_of_coding): Defsym it. Set all elements of
13270 Vcoding_category_table and their symbol values.
13271 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
13272 coding-category-XXX, and coding-category-list.
13273 (Fdefine_coding_system_internal): Add category in the plist.
13274
132752008-02-01 Kenichi Handa <handa@m17n.org>
13276
13277 * callproc.c (Fcall_process): Handle carryover correctly.
13278
13279 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
13280 (raw_text_coding_system): Check NILP (coding_system).
13281 (coding_inherit_eol_type): Check NILP (coding_system) and
13282 NILP (parent).
13283 (consume_chars): Fix for the case of raw-text.
13284
13285 * process.c (read_process_output): Handle carryover correctly.
13286
132872008-02-01 Dave Love <fx@gnu.org>
13288
13289 * regex.c (re_search_2): Fix last change.
13290
132912008-02-01 Kenichi Handa <handa@m17n.org>
13292
13293 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
13294 target_multibyte. Even in a unibyte case, return a converted
13295 multibyte char.
13296 (GET_CHAR_AFTER): New macro.
13297 (PATFETCH): Translate via multibyte char.
13298 (HANDLE_UNIBYTE_RANGE): Delete this macro.
13299 (SETUP_MULTIBYTE_RANGE): New macro.
13300 (regex_compile): Setup compiled code so that its multibyteness
13301 matches that of a target. Fix the handling of "[X-YZ]" using
13302 SETUP_MULTIBYTE_RANGE.
13303 (analyse_first) <charset>: For filling fastmap for all multibyte
13304 characters, don't check by BASE_LEADING_CODE_P.
13305 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
13306 the same as RE_MULTIBYTE_P (bufp) now.
13307 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
13308 (TARGET_CHAR_AND_LENGTH): Delete this macro.
13309 (TRANSLATE_VIA_MULTIBYTE): New macro.
13310 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
13311 It is the same as RE_MULTIBYTE_P (bufp) now.
13312 <exactn>: Translate via multibyte.
13313 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
13314 translate it.
13315 <charset, charset_not>: Fetch a character by
13316 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
13317 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
13318 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
13319 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
13320 by GET_CHAR_AFTER.
13321 (bcmp_translate): Likewise.
13322
13323 * search.c (compile_pattern): Check the member target_multibyte,
13324 not the member multibyte of buf.
13325
13326 * lread.c (read1): While reading a string, set force_singlebyte
13327 and force_multibyte correctly.
13328
13329 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
13330 up of unibyte_to_multibyte_table.
13331
133322008-02-01 Kenichi Handa <handa@m17n.org>
13333
13334 * coding.c (setup_coding_system): If coding has
13335 post-read-conversion or pre-write-conversion, set
13336 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
13337 respectively.
13338 (decode_coding_gap): Run post-read-conversion if any.
13339
13340 * fileio.c (Finsert_file_contents): Even if we read into a
13341 unibyte buffer, check if we must decode the result or not.
13342
133432008-02-01 Kenichi Handa <handa@m17n.org>
13344
13345 * coding.c (make_conversion_work_buffer): Change the work buffer
13346 name to the same one as that of Emacs 21.
13347
133482008-02-01 Kenichi Handa <handa@m17n.org>
13349
13350 * coding.h (make_conversion_work_buffer): Adjust prototype.
13351 (code_conversion_restore): Don't extern it.
13352
13353 * coding.c (detected_mask): Delete unused variable.
13354 (decode_coding_iso_2022): Pay attention to the byte sequence of
13355 CTEXT extended segment, and retain those bytes as is.
13356 (decode_coding_ccl): Delete unused variable `valids'.
13357 (setup_coding_system): Delete unused variable `category'.
13358 (consume_chars): Delete unused variable `category'. Make it work
13359 for non-multibyte case.
13360 (make_conversion_work_buffer): Change argument.
13361 (saved_coding): Delete unused variable.
13362 (code_conversion_restore): Don't check saved_coding->destination.
13363 (code_conversion_save): New function.
13364 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
13365 instead of record_unwind_protect.
13366 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
13367 (detect_coding_system): Delete unused variable `mask'.
13368 (Fdefine_coding_system_internal): Delete unused variable id.
13369
13370 * fileio.c (kill_workbuf_unwind): New function.
13371 (Finsert_file_contents): On replacing, call
13372 make_conversion_work_buffer with correct args, and call
13373 record_unwind_protect with the first arg kill_workbuf_unwind.
13374
13375 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
13376
133772008-02-01 Kenichi Handa <handa@m17n.org>
13378
13379 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
13380 (fontset_add): Fix for the case that TO is less than TO1.
13381 (Ffontset_info): Don't use fallback fontset on checking the
13382 default fontset.
13383 (dump_fontset): New function for debugging.
13384
13385 * coding.c (Fdefine_coding_system_internal): Fix for the case that
13386 coding_type is Qcharset.
13387
133882008-02-01 Kenichi Handa <handa@m17n.org>
13389
13390 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
13391 (map_char_table): Don't inherit the value from the parent on
13392 initializing VAL. Adjust for the above change.
13393
133942008-02-01 Kenichi Handa <handa@m17n.org>
13395
13396 * coding.c (Qsignature, Qendian): Delete these variables.
13397 (syms_of_coding): Don't initialize them.
13398 (CATEGORY_MASK_UTF_16_AUTO): New macro.
13399 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
13400 detect_info->found.
13401 (decode_coding_utf_16): Don't detect BOM here.
13402 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
13403 is NOT utf_16_without_bom.
13404 (setup_coding_system): For a coding system of type utf-16, check
13405 if the attribute :endian is Qbig or not (not nil or not), and set
13406 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
13407 (detect_coding): If coding type is utf-16 and BOM detection is
13408 required, detect it.
13409 (Fdefine_coding_system_internal): For a coding system of type
13410 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
13411
134122008-02-01 Kenichi Handa <handa@m17n.org>
13413
13414 * coding.c (coding_set_source): Fix for the case that the current
13415 buffer is different from coding->src_object.
13416 (decode_coding_object): Don't use the conversion work buffer if
13417 DST_OBJECT is a buffer.
13418
134192008-02-01 Dave Love <fx@gnu.org>
13420
13421 * lread.c (read_emacs_mule_char) [len==2]: Index
13422 emacs_mule_charset correctly.
13423
134242008-02-01 Dave Love <fx@gnu.org>
13425
13426 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
13427 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
13428 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
13429 treated specially.)
13430 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
13431 (detected_mask): Remove Big5 bits.
13432
134332008-02-01 Kenichi Handa <handa@m17n.org>
13434
13435 The following changes are to make the font rescaling facility
13436 compatible with Emacs 21.
13437
13438 * xfaces.c (Vface_font_rescale_alist): Rename from
13439 Vface_resizing_fonts.
13440 (struct font_name): Rename member resizing_ratio to rescale_ratio.
13441 (font_rescale_ratio): Rename from font_resizing_ratio.
13442 (split_font_name): Set font->rescale_ratio.
13443 (better_font_p): Pay attention to font->rescale_ratio.
13444 (build_scalable_font_name): Likewise. Change RESX, and RESY
13445 fields.
13446 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
13447
134482008-02-01 Kenichi Handa <handa@m17n.org>
13449
13450 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
13451 (Qutf_16_le): Remove these variables.
13452 (syms_of_coding): Don't DEFSYM them.
13453 (decode_coding_utf_16): Fix handling of BOM.
13454 (encode_coding_utf_16): Fix handling of BOM.
13455
134562008-02-01 Kenichi Handa <handa@m17n.org>
13457
13458 * fileio.c (Finsert_file_contents): On replacing, before decoding
13459 the file into the work buffer, set point of the work buffer to the end.
13460
134612008-02-01 Dave Love <fx@gnu.org>
13462
13463 * coding.c (Fcheck_coding_systems_region): Fix type errors.
13464
134652008-02-01 Dave Love <fx@gnu.org>
13466
13467 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
13468 and fix C types.
13469
134702008-02-01 Kenichi Handa <handa@m17n.org>
13471
13472 * xdisp.c (SKIP_GLYPHS): New macro.
13473 (set_cursor_from_row): Pay attention to string display properties.
13474
13475 * category.c (copy_category_entry): Fix for the case that RANGE
13476 is an integer.
13477
13478 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
13479
13480 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
13481
134822008-02-01 Kenichi Handa <handa@m17n.org>
13483
13484 * charset.c (Fcharset_id_internal): New function.
13485 (syms_of_charset): Defsubr it.
13486
13487 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
13488 with the last arg charset_list acquired from coding.
13489 (Fdefine_coding_system_internal): For ccl-based coding system, fix
13490 the attribute coding_attr_ccl_valids.
13491
13492 * coding.h (enum define_coding_ccl_arg_index): Set the first
13493 member coding_arg_ccl_decoder to coding_arg_max.
13494
13495 * ccl.h (ccl_driver): Adjust prototype.
13496
13497 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
13498 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 13499 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
13500 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
13501 last arg Qnil.
13502
135032008-02-01 Kenichi Handa <handa@m17n.org>
13504
13505 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
13506 call encode_char.
13507
13508 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
13509
135102008-02-01 Dave Love <fx@gnu.org>
13511
13512 * composite.c (syms_of_composite): Make composition_hash_table weak.
13513
135142008-02-01 Kenichi Handa <handa@m17n.org>
13515
13516 * dispextern.h (check_face_attributes, generate_ascii_font_name)
13517 (font_name_registry): Don't extern them.
13518 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
13519
13520 * fontset.h (Qfontset): Don't extern it.
13521 (new_fontset_from_font_name): Extern it.
13522
13523 * fontset.c: Give 8 extra slots to fontset objects.
13524 (Qfontset_info): New variable.
13525 (syms_of_fontset): Defsym it.
13526 (FONTSET_FALLBACK): New macro.
13527 (fontset_face): Try also the default fontset.
13528 (make_fontset): Realize a fallback fontset from the default fontset.
13529 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
13530 using split_font_name_into_vector and build_font_name_from_vector.
13531 (Fset_fontset_font): Access the elements of font_spec by enum
13532 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
13533 name by using split_font_name_into_vector.
13534 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
13535 generate a proper font name from the fontset name. Update
13536 Vfontset_alias_alist.
13537 (n_auto_fontsets): New variable.
13538 (new_fontset_from_font_name): New function.
13539 (Ffont_info): Store the information about fonts generated from the
13540 default fontset in the first extra slot of the returned char-table.
13541
13542 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
13543 (font_name_registry): Delete function.
13544 (split_font_name_into_vector): New function.
13545 (build_font_name_from_vector): New function.
13546 (font_list): The argument REGISTRY is now a list of registry names.
13547 (choose_face_font): If we are choosing an ASCII font, and ATTRS
13548 specifies an explicit font name, return the name as is. Make a
13549 list of registy names.
13550
13551 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
13552 of x_new_fontset.
13553 (Fx_create_frame): Don't call x_new_fontset here. Just use
13554 x_list_fonts to check the existence of fonts.
13555
13556 * xterm.h (x_new_fontset): Adjust prototype.
13557
13558 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
13559 string. Use new_fontset_from_font_name to create a fontset from a
13560 font name.
13561
135622008-02-01 Kenichi Handa <handa@m17n.org>
13563
13564 * syntax.c (Vfind_word_boundary_function_table): New name for
13565 Vnext_word_boundary_function_table.
13566 (find-word-boundary-function-table): New name for
13567 next-word-boundary-function-table.
13568
135692008-02-01 Dave Love <fx@gnu.org>
13570
13571 * Makefile.in: Fix some dependencies.
13572
13573 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
13574 set it to nil before returning.
13575
13576 * composite.c (update_compositions): Fix type error.
13577
13578 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
13579
135802008-02-01 Kenichi Handa <handa@m17n.org>
13581
13582 * xterm.c (x_new_font): Optimize for the case that the font is
13583 already set for the frame.
13584
135852008-02-01 Kenichi Handa <handa@m17n.org>
13586
13587 * chartab.c (char_table_ascii): Check if the char table contents
13588 is sub-char-table or not.
13589 (char_table_set, char_table_set_range): Fix argument to
13590 char_table_ascii.
13591
13592 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
13593 (detect_coding_utf_8, detect_coding_utf_16)
13594 (detect_coding_emacs_mule, detect_coding_iso_2022)
13595 (detect_coding_sjis, detect_coding_big5)
13596 (detect_coding_ccl, detect_coding_charset): Change argument MASK
13597 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
13598 sequence is valid in this coding system. Change callers.
13599 (MAX_ANNOTATION_LENGTH): New macro.
13600 (ADD_ANNOTATION_DATA): New macro.
13601 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
13602 ADD_ANNOTATION_DATA. Change the format of annotation data.
13603 (ADD_CHARSET_DATA): New macro.
13604 (emacs_mule_char): New argument ID. Change callers.
13605 (decode_coding_emacs_mule, decode_coding_iso_2022)
13606 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
13607 Produce charset annotation data in coding->charbuf.
13608 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
13609 to charset annotation data in coding->charbuf.
13610 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
13611 coding->common_flags if the coding system is iso-2022 based and
13612 uses designation.
13613 (produce_composition): Adjust for the new annotation data format.
13614 (produce_charset): New function.
13615 (produce_annotation): Handle charset annotation.
13616 (handle_composition_annotation, handle_charset_annotation): New
13617 functions.
13618 (consume_chars): Handle charset annotation. Utilize the above two
13619 functions.
13620 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
13621 buffer, get the deleted text as a string and set
13622 coding->src_object to that string.
13623 (detect_coding, detect_coding_system): Use the new struct
13624 coding_detection_info.
13625
13626 * coding.h (struct coding_detection_info): New structure.
13627 (struct coding_system): Adjust prototype of the member `detector'.
13628 (CODING_ANNOTATE_CHARSET_MASK): New macro.
13629
136302008-02-01 Kenichi Handa <handa@m17n.org>
13631
13632 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
13633
136342008-02-01 Dave Love <fx@gnu.org>
13635
13636 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
13637 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
13638 to new local and nullify apropos_accumulate before returning.
13639 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
13640
136412008-02-01 Kenichi Handa <handa@m17n.org>
13642
13643 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
13644 correctly.
e3eea1fc 13645
aac0c6e3
MR
136462008-02-01 Dave Love <fx@gnu.org>
13647
13648 * fns.c (Flanginfo): Call synchronize_system_time_locale.
13649
136502008-02-01 Kenichi Handa <handa@m17n.org>
13651
13652 The following changes are to make character composition happen
13653 automatically on displaying.
13654
13655 * Makefile.in (lisp, shortlisp): Add composite.elc.
13656
13657 * composite.h (Qauto_composed, Vauto_composition_function)
13658 (Qauto_composition_function): Extern them.
13659
13660 * composite.c (Vcomposition_function_table)
13661 (Qcomposition_function_table): Delete variables.
13662 (Qauto_composed, Vauto_composition_function)
13663 (Qauto_composition_function): New variables.
13664 (run_composition_function): Don't call
13665 compose-chars-after-function.
13666 (update_compositions): Clear `auto-composed' text property.
13667 (compose_chars_in_text): Delete this function.
13668 (syms_of_composite): Staticpro Qauto_composed and
13669 Qauto_composition_function. Declare Vauto_composition_function as
13670 a Lisp variable.
13671
13672 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
13673
13674 * xdisp.c (it_props): Add an entry for Qauto_composed.
13675 (handle_auto_composed_prop): New function.
13676
13677 * xselect.c (selection_data_to_lisp_data): Don't call
13678 compose_chars_in_text.
13679
136802008-02-01 Dave Love <fx@gnu.org>
13681
13682 * keyboard.c (read_char): Modify checking around use of
13683 Vkeyboard_translate_table.
13684
13685 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
13686 and fix C types.
13687
136882008-02-01 Kenichi Handa <handa@m17n.org>
13689
13690 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
13691 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
13692 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
13693 the case that the last byte is '\r' correctly.
13694 (decode_coding): Flush out the unprocessed data correctly.
13695 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
13696
136972008-02-01 Dave Love <fx@gnu.org>
13698
13699 * xterm.c (XTread_socket): Fix changes for defined keysyms.
13700 Add XK_ISO... case.
13701 (xaw_scroll_callback): Revert last change.
13702
137032008-02-01 Kenichi Handa <handa@m17n.org>
13704
13705 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
13706
137072008-02-01 Kenichi Handa <handa@m17n.org>
13708
13709 * xfaces.c (Vface_resizing_fonts): New variable.
13710 (struct font_name): New member `resizing_ratio'.
13711 (font_resizing_ratio): New function.
13712 (split_font_name): Set font->resizing_ratio.
13713 (better_font_p): Pay attention to font->resizing_ratio.
13714 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
13715 RESX, and RESY fields.
13716 (try_alternative_families): Try scalable fonts if
13717 Vscalable_fonts_allowed is not Qt.
13718 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
13719
137202008-02-01 Dave Love <fx@gnu.org>
13721
13722 * xterm.c (xaw_scroll_callback): Cast correctly.
13723
137242008-02-01 Dave Love <fx@gnu.org>
13725
13726 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
13727 (lispy_kana_keys): Comment out.
13728 (make_lispy_event) [XK_kana_A]: Comment out.
13729
13730 * xterm.c (xaw_scroll_callback): Cast call_data.
13731 (XTread_socket): Deal with ASCII keysyms.
13732 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
13733
137342008-02-01 Dave Love <fx@gnu.org>
13735
13736 * xterm.c (Vx_keysym_table): New.
13737 (syms_of_xterm): Initialize it.
13738 (XTread_socket): Use it.
13739 From head: Eliminate incorrect optimization that tried to avoid
13740 decoding the output of X*LookupString.
13741 (x_get_font_repertory): Delete charset declaration.
13742
137432008-02-01 Kenichi Handa <handa@m17n.org>
13744
13745 * coding.c (detect_coding_charset): If only ASCII bytes are found,
13746 return 0.
13747 (Fdefine_coding_system_internal): Setup
13748 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
13749
137502008-02-01 Dave Love <fx@gnu.org>
13751
13752 * coding.c (Fcheck_coding_system): Doc fix.
13753
13754 * editfns.c (Finsert_byte): Return a proper value.
13755
137562008-02-01 Kenichi Handa <handa@m17n.org>
13757
13758 * coding.c (decode_coding): Fix args to translate_chars. Pay
13759 attention to Vstandard_translation_table_for_decode.
13760 (encode_coding): Fix args to translate_chars. Pay attention to
13761 Vstandard_translation_table_for_encode.
13762
13763 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
13764 SINGLE_BYTE_CHAR_P.
13765
13766 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
13767 not by SINGLE_BYTE_CHAR_P.
13768
13769 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
13770 SINGLE_BYTE_CHAR_P.
13771
13772 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
13773 SINGLE_BYTE_CHAR_P.
13774
13775 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
13776 by SINGLE_BYTE_CHAR_P.
13777
13778 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
13779 SINGLE_BYTE_CHAR_P.
13780
137812008-02-01 Dave Love <fx@gnu.org>
13782
13783 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
13784
137852008-02-01 Dave Love <fx@gnu.org>
13786
13787 * fns.c (Flanginfo): Fix typo.
13788
13789 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
13790
137912008-02-01 Kenichi Handa <handa@m17n.org>
13792
13793 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
13794 (detect_coding_emacs_mule, detect_coding_iso_2022)
13795 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
13796 incomplete byte sequence. Don't update *mask when correctly detected.
13797 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
13798 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
13799 (detect_coding, detect_coding_system): Adjust for the changes above.
13800
138012008-02-01 Kenichi Handa <handa@m17n.org>
13802
13803 * character.c (char_string): Rename from
13804 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
13805 (string_char): Rename from string_char.
13806
13807 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
13808 if C is greater than MAX_3_BYTE_CHAR.
13809 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
13810 string_char instead of string_char_with_unification.
13811
138122008-02-01 Dave Love <fx@gnu.org>
13813
13814 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
13815
138162008-02-01 Kenichi Handa <handa@m17n.org>
13817
13818 * keymap.c (push_key_description): Pay attention to force_multibyte.
13819
13820 * regex.c (re_search_2): Fix for the case of unibyte buffer.
13821
138222008-02-01 Dave Love <fx@gnu.org>
13823
13824 * charset.c (define_charset_internal): Rename `supprementary'.
13825
13826 * Makefile.in (lisp, shortlisp): Remove latin-N.
13827
138282008-02-01 Dave Love <fx@gnu.org>
13829
13830 * xfns.c (x_window, x_window): Use use_xim.
13831
13832 * xterm.c (use_xim): Initialize.
13833 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
13834 (x_term_init): Maybe set use_xim.
13835
13836 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
13837
138382008-02-01 Kenichi Handa <handa@m17n.org>
13839
13840 * search.c (search_buffer): Fix case-fold-search of multibyte
13841 characters.
13842 (boyer_moore): Rename the last argument to char_high_bits.
13843
138442008-02-01 Kenichi Handa <handa@m17n.org>
13845
13846 * xdisp.c (display_string): Fix for the case of zero width glyph.
13847
13848 * xfns.c (x_set_font): Change the error message of the case that
13849 x_new_fontset returns Qt.
13850
13851 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
13852 (Finternal_set_lisp_face_attribute): Use signal_error for the
13853 error of invalid fontset.
13854
13855 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
13856 fontset, return Qt.
13857
138582008-02-01 Dave Love <fx@gnu.org>
13859
13860 * unexelf.c (unexec): Make .got handling not SGI-specific.
13861
13862 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
13863
13864 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
13865
13866 * keyboard.c (read_key_sequence): Fix type error.
13867
13868 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
13869 type error.
13870
13871 * fontset.c (fontset_add): Return Lisp_Object.
13872
138732008-02-01 Dave Love <fx@gnu.org>
13874
13875 * charset.h (charset_ordered_list_tick): Declare extern.
13876
138772008-02-01 Kenichi Handa <handa@m17n.org>
13878
13879 The following changes (and some of 2008-02-01 changes of mine) are
13880 for handling syntax, category, and case conversion for unibyte
13881 characters by converting them to multibyte on the fly. With these
13882 changes, we don't have to setup syntax and case tables for unibyte
13883 characters in each language environment.
13884
13885 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
13886 multibyte if necessary.
13887
13888 * bytecode.c (Fbyte_code): Likewise.
13889
13890 * character.h (LEADING_CODE_LATIN_1_MIN)
13891 (LEADING_CODE_LATIN_1_MAX): New macros.
13892 (unibyte_to_multibyte_table): Extern it.
13893 (unibyte_char_to_multibyte): New macro.
13894 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
13895 (CHAR_LEADING_CODE): New macro.
13896 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
13897
13898 * character.c (unibyte_to_multibyte_table): New variable.
13899 (unibyte_char_to_multibyte): Move to character.h and define as macro.
13900 (multibyte_char_to_unibyte): If C is an eight-bit character,
13901 convert it to the corresponding byte value.
13902
13903 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
13904 not 1, signals an error. Update the elements of
13905 unibyte_to_multibyte_table.
13906 (init_charset_once): Initialize unibyte_to_multibyte_table.
13907 (syms_of_charset): Define the charset `iso-8859-1'.
13908
13909 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
13910 as is without converting it to unibyte. In a unibyte buffer,
13911 convert C to multibyte before checking the syntax.
13912
13913 * lisp.h (unibyte_char_to_multibyte): Delete extern.
13914
13915 * minibuf.c (Fminibuffer_complete_word): Use the macro
13916 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
13917
13918 * regex.h (struct re_pattern_buffer): New member target_multibyte.
13919
13920 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
13921 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
13922 that is zero, convert an eight-bit char to multibyte.
13923 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
13924 non-emacs case.
13925 (PATFETCH): Convert an eight-bit char to multibyte.
13926 (HANDLE_UNIBYTE_RANGE): New macro.
13927 (regex_compile): Setup the compiled pattern for multibyte chars
13928 even if the given regex string is unibyte. Use PATFETCH_RAW
13929 instead of PATFETCH in many places. To handle `charset'
13930 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
13931 only for ASCII chars.
13932 (analyse_first) <exactn>: Simplify because the compiled pattern
13933 is multibyte.
13934 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
13935 <charset>: Use CHAR_LEADING_CODE to get leading codes.
13936 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
13937 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
13938 multibyte always 1.
13939 (re_search_2): In emacs, set the locale variable multibyte to 1,
13940 otherwise to 0. New local variable target_multibyte. Check it
13941 to decide the multibyteness of STR1 and STR2. If
13942 target_multibyte is zero, convert unibyte chars to multibyte
13943 before translating and checking fastmap.
13944 (TARGET_CHAR_AND_LENGTH): New macro.
13945 (re_match_2_internal): In emacs, set the locale variable multibyte
13946 to 1, otherwise to 0. New local variable target_multibyte. Check
13947 it to decide the multibyteness of STR1 and STR2. Use
13948 TARGET_CHAR_AND_LENGTH to fetch a character from D.
13949 <charset, charset_not>: If multibyte is nonzero, check fastmap
13950 only for ASCII chars. Call bcmp_translate with
13951 target_multibyte, not with multibyte.
13952 <begline>: Declare the local variable C as `unsigned'.
13953 (bcmp_translate): Change the last arg name to target_multibyte.
13954
13955 * search.c (compile_pattern_1): Don't adjust the multibyteness of
13956 the regexp pattern and the matching target. Set cp->buf.multibyte
13957 to the multibyteness of the regexp pattern. Set
13958 cp->but.target_multibyte to the multibyteness of the matching target.
13959 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
13960 FETCH_STRING_CHAR_ADVANCE.
13961 (Freplace_match): Convert unibyte chars to multibyte.
13962
13963 * syntax.c (char_quoted, back_comment, scan_words)
13964 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
13965 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
13966 unibyte chars to multibyte.
13967 (skip_chars): Delete the arg syntaxp, and move the code for
13968 handling syntaxes to skip_syntaxes. Change callers.
13969 Fix the case that the multibyteness of STRING and the current
13970 buffer doesn't match.
13971 (skip_syntaxes): New function.
13972 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
13973 SINGLE_BYTE_CHAR_P.
13974
139752008-02-01 Kenichi Handa <handa@m17n.org>
13976
13977 * xfaces.c (QCfontset): New variable.
13978 (LFACE_FONTSET): New macro.
13979 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
13980 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
13981 (Finternal_set_lisp_face_attribute)
13982 (Finternal_get_lisp_face_attribute): Handle QCfontset.
13983 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
13984 check also LFACE_FONTSET_INDEX.
13985 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
13986 attrs[LFACE_FONT_INDEX].
13987 (syms_of_xfaces): Intern and staticpro QCfontset.
13988
13989 * dispextern.h (enum lface_attribute_index): New member
13990 LFACE_FONTSET_INDEX.
13991
13992 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
13993
139942008-02-01 Kenichi Handa <handa@m17n.org>
13995
13996 * coding.c (coding_set_destination): Fix coding->destination for
13997 the case converting a region.
13998 (encode_coding_utf_8): Encode eight-bit chars as single byte.
13999 (encode_coding_object): Fix coding->dst_pos and
14000 coding->dst_pos_byte for the case converting a region.
14001
14002 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
14003
14004 * character.h (BYTE8_STRING): New macro.
14005
14006 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
14007
140082008-02-01 Kenichi Handa <handa@m17n.org>
14009
14010 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
14011 characters by octal form.
14012
14013 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
14014
14015 * buffer.h (_fetch_multibyte_char_len): Delete extern.
14016 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
14017 _fetch_multibyte_char_len.
14018 (FETCH_CHAR_AS_MULTIBYTE): New macro.
14019
14020 * casetab.c (set_canon, set_identity, shuffle): Simplify.
14021
14022 * casefiddle.c (casify_object): Simplify. Handle the case that
14023 the case conversion change the byte length.
14024 (casify_region): Likewise.
14025
14026 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
14027
14028 * character.c (_fetch_multibyte_char_len): Delete this variable.
14029 (syms_of_character): Setup Vprintable_chars.
14030
14031 * editfns.c (Fchar_equal): Fix for the unibyte case.
14032 (Finsert_byte): New function.
14033 (syms_of_editfns): Defsubr it.
14034
14035 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
14036 of direct code 0x3ffff.
14037
14038 * search.c (Freplace_match): Fix for the unibyte case.
14039
140402008-02-01 Kenichi Handa <handa@m17n.org>
14041
14042 * lread.c (safe_to_load_p): Fix the logic.
14043
14044 * syntax.c (scan_words): Don't treat characters belonging to
14045 different scripts as constituting a word.
14046
14047 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
14048
14049 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
14050
14051 * emacs.c (main): In the case of --unibyte, instead of aborting on
14052 finding non-empty buffer, make it unibyte.
14053
140542008-02-01 Kenichi Handa <handa@m17n.org>
14055
14056 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
14057 to create a fontset.
14058
140592008-02-01 Dave Love <fx@gnu.org>
14060
14061 * character.c (Funibyte_char_to_multibyte): Doc fix.
14062
14063 * xfns.c [HAVE_STDLIB_H]: Fix last change.
14064
140652008-02-01 Kenichi Handa <handa@m17n.org>
14066
14067 * fontset.c (fontset_add): Make the type `int'.
14068 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
14069
14070 * character.c (unibyte_char_to_multibyte)
14071 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
14072 charset_unibyte, not charset_primary.
14073
14074 * charset.h (charset_unibyte): Extern it instead of charset_primary.
14075
14076 * charset.c (charset_unibyte): Rename from charset_primary.
14077 (Funibyte_charset): Rename from Fprimary_charset.
14078 (Fset_unibyte_charset): Rename from Fset_primary_charset.
14079 (syms_of_charset): Adjust for the above changes.
14080
14081 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
14082 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
14083 it->multibyte_p is zero.
14084
14085 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
14086 Delete extern.
14087
140882008-02-01 Kenichi Handa <handa@m17n.org>
14089
14090 * coding.c (Fdefine_coding_system_internal): Fix category setting
14091 for a coding system of type iso-2022.
14092
140932008-02-01 Kenichi Handa <handa@m17n.org>
14094
14095 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
14096
140972008-02-01 Kenichi Handa <handa@m17n.org>
14098
14099 * syntax.c (Vnext_word_boundary_function_table): New variable.
14100 (next-word-boundary-function-table): Declare it as a Lisp variable
14101 in syms_of_syntax.
14102 (scan_words): Call functions in Vnext_word_boundary_function_table
14103 if any.
14104
14105 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
14106
14107 * fontset.c (fs_load_font): If fontp->charset is not negative,
14108 return fontp without setting its members.
14109
141102008-02-01 Dave Love <fx@gnu.org>
14111
14112 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
14113
14114 * m/sparc.h (HAVE_ALLOCA): Delete.
14115
14116 * s/irix6-5.h: Don't include strings.h.
14117 (bcopy, bzero, bcmp): Don't undef.
14118
14119 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
14120
14121 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
14122 (TIOCSIGSEND): Don't test IRIX6.
14123 (bcopy, bzero, bcmp): Define conditionally.
14124
141252008-02-01 Kenichi Handa <handa@m17n.org>
14126
14127 * buffer.c (Qas, Qmake, Qto): New variables.
14128 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
14129 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
14130
14131 * callproc.c (Fcall_process): Don't call insert_1_both directly if
14132 we are inserting a process output into a multibyte buffer.
14133
14134 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
14135 multibyte_char_to_unibyte.
14136
14137 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
14138 by the primary charset, make it eight-bit char.
14139 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
14140
14141 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
14142 (charset_8_bit__control, charset_8_bit_graphic)
14143 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
14144 (define_charset_internal): New function.
14145 (syms_of_charset): Call define_charset_internal for pre-defined
14146 charsets.
14147
14148 * charset.h (charset_8_bit): Extern it.
14149
14150 * coding.c (make_conversion_work_buffer): Adjust for the change
14151 of Fset_buffer_multibyte.
14152 (encode_coding_raw_text): Increment p0 in the loop.
14153
14154 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
14155
14156 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
14157 for the change of Fset_buffer_multibyte.
14158
14159 * fns.c (Fstring_to_multibyte): New function.
14160 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
14161
141622008-02-01 Dave Love <fx@gnu.org>
14163
14164 * xfns.c (x_put_x_image): Declare args.
14165
14166 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
14167 (try_font_list): Declare an arg.
14168
14169 * xdisp.c (message2_nolog, set_message): Declare an arg.
14170
14171 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
14172
14173 * syntax.c (scan_sexps_forward): Declare an arg.
14174
14175 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
14176 Declare an arg.
14177
14178 * lisp.h (Fnew_fontset): Declare.
14179
14180 * keymap.c (push_key_description): Call CHARACTERP correctly.
14181
14182 * fontset.c (fontset_add): Declare args. Call make_number correctly.
14183 (face_for_char): Delete unused vars.
14184 (Fset_fontset_font): Doc fix. Delete unused vars.
14185
14186 * doc.c (Fsubstitute_command_keys): Delete unused vars.
14187
14188 * composite.c (update_compositions): Declare arg.
14189
14190 * cm.c (calccost, cmgoto): Declare args.
14191
14192 * charset.c: Remove `emacs' conditional. Doc fixes.
14193 (map_char_table_for_charset): Declare.
14194
14195 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
14196
14197 * ccl.c: Remove `emacs' conditional.
14198
141992008-02-01 Kenichi Handa <handa@m17n.org>
14200
14201 The following changes are to allow specifying multiple font
14202 patterns for a character range (specified by script or charset).
14203
14204 * Makefile.in (abbrev.o): Depend on syntax.h.
14205 (xfaces.o): Depend on charset.h.
14206
14207 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
14208 SINGLE_BYTE_CHAR_P.
14209
14210 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
14211
14212 * character.h (Vchar_script_table): Extern it.
14213
14214 * character.c (Vscript_alist): Delete.
14215 (Vchar_script_table, Qchar_script_table): New variable.
14216 (syms_of_character): Declare Vchar_script_table as a lisp variable
14217 and initialize it.
14218
14219 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
14220 have property char-table-extra-slots, make no extra slot.
14221
14222 * dispextern.h (struct face): Delete member `charset'.
14223 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
14224 SINGLE_BYTE_CHAR_P.
14225 (choose_face_font, lookup_non_ascii_face, font_name_registry):
14226 Add prototypes.
14227 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
14228 (generate_ascii_font_name): Rename from generate_ascii_font.
14229
14230 * fontset.h (get_font_repertory_func): New prototype.
14231 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
14232 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
14233
14234 * fontset.c (Qprepend, Qappend): New variables.
14235 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
14236 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
14237 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
14238 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
14239 (fontset_ref_and_range, fontset_add, reorder_font_vector)
14240 (load_font_get_repertory): New functions.
14241 (fontset_set): Delete.
14242 (fontset_face): New arg FACE. Return face ID, not face.
14243 Complete re-write to handle new fontset structure. Change caller.
14244 (free_face_fontset): Use ASET istead of AREF (X) = Y.
14245 (face_for_char): Don't call lookup_face.
14246 (make_fontset_for_ascii_face): New arg FACE.
14247 (fs_load_font): New arg CHARSET_ID. Don't check
14248 Vfont_encoding_alist here.
14249 (find_font_encoding): New function.
14250 (list_fontsets): Use STRINGP, not ! NILP.
14251 (accumulate_script_ranges): New function.
14252 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
14253 re-written to handle new fontset structure.
14254 (Ffontset_font): Return a copy of element.
14255 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
14256 docstring of font-encoding-alist.
14257
14258 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
14259 (Fset_fotset_font): Fix arguments to 5.
14260
14261 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
14262
14263 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
14264 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
14265 (highlight_trailing_whitespace): Adjust for the change of
14266 lookup_named_face.
14267
14268 * xfaces.c: Include charset.h.
14269 (load_face_font): Delete argument C. Change caller.
14270 (generate_ascii_font_name): Rename from generate_ascii_font.
14271 (font_name_registry): New function.
14272 (cache_face): Store ascii faces before non-ascii faces in buckets.
14273 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
14274 Lookup only ascii faces.
14275 (lookup_non_ascii_face): New function.
14276 (lookup_named_face): Delete argument C. Change caller.
14277 (lookup_derived_face): Delete argument C. Change caller.
14278 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
14279 a string, just call font_list with it.
14280 (choose_face_font): Delete arguments FACE and C. New arg
14281 FONT_SPEC. Change caller.
14282 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
14283 Change caller.
14284 (realize_non_ascii_face): New function.
14285 (realize_x_face): Call load_face_font here.
14286 (realize_tty_face): Delete argument C. Change caller.
14287 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
14288 get a face ID.
14289 (dump_realized_face): Don't print charset of FACE.
14290
14291 * xfns.c (x_set_font): Always call x_new_fontset and
14292 store_frame_parameter.
14293 (Fx_create_frame): Call x_new_fontset, not x_new_font.
14294 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
14295
14296 * xterm.h (x_get_font_repertory): Extern it.
14297
14298 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
14299 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
14300 it->multibyte_p is zero.
14301 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
14302 (x_new_fontset): If FONTSETNAME doesn't match any existing
14303 fontsets, create a new one.
14304 (x_get_font_repertory): New function.
14305
143062008-02-01 Kenichi Handa <handa@m17n.org>
14307
14308 * coding.c (Ffind_coding_systems_region_internal): Detect an
14309 ASCII only string correctly.
14310
14311 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
14312 version is 0.
14313
143142008-02-01 Kenichi Handa <handa@m17n.org>
14315
14316 * lread.c: Include "coding.h".
14317 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
14318 (load_each_byte, unread_char): New variables.
14319 (readchar_backlog): Delete.
14320 (readchar): Return a character unless load_each_byte is nonzero.
14321 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
14322 cons. If unread_char is not -1, simply return it.
14323 (unreadchar): Handle the case that readcharfun is
14324 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
14325 (read_multibyte): Delete.
14326 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
14327 (read_emacs_mule_char): New functions.
14328 (Fload): Even if the file doesn't have the extension ".elc", if
14329 safe_to_load_p returns a positive version number, assume that the
14330 file contains bytecompiled code. If the version is less than 22,
14331 load the file while decoding multibyte sequences by emacs-mule.
14332 (readevalloop): Don't use readchar_backlog.
14333 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
14334 (Fread_from_string): Pay attention to the case that STREAM is a cons.
14335 (read_escape): Delete the arg BYTEREP.
14336 (read1): Set load_each_byte to 1 temporarily while handling
14337 #@NUMBER. Don't call read_multibyte.
14338 (read_vector): Call Fread with a cons. If readcharfun is
14339 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
14340 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
14341 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
14342 and Qload_force_doc_strings.
14343
143442008-02-01 Kenichi Handa <handa@m17n.org>
14345
14346 * xdisp.c (face_before_or_after_it_pos): Call
14347 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
14348
143492008-02-01 Kenichi Handa <handa@m17n.org>
14350
14351 * character.h (TRAILING_CODE_P): New macro.
14352 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
14353 (string_char_with_unification): Fix prototype.
14354 (Vscript_alist): Extern it.
14355
14356 * character.c (Vscript_alist): New variable.
14357 (string_char_with_unification, str_as_unibyte)
14358 (string_escape_byte8): Add `const' to local variables.
14359 (syms_of_character): Declare script-alist as a Lisp variable.
14360
14361 * charset.h (Vcharset_ordered_list): Extern it.
14362 (charset_ordered_list_tick): Extern it.
14363 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
14364 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
14365 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
14366 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
14367 (Funify_charset): Adjust for the change of Funify_charset.
14368
14369 * charset.c (charset_ordered_list_tick): New variable.
14370 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
14371 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
14372 deunify intead of unify a charset.
14373 (string_xstring_p): Add `const' to local variables.
14374 (find_charsets_in_text): Add `const' to arguments and local variables.
14375 (encode_char): Adjust for the change of Funify_charset. Fix
14376 detecting of invalid code.
14377 (Fset_charset_priority): Increment charset_ordered_list_tick.
14378 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
14379 and TO_CODE.
14380
14381 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
14382 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
14383 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
14384 (decode_coding_ccl, consume_chars)
14385 (Ffind_coding_systems_region_internal)
14386 (Fcheck_coding_systems_region): Add `const' to local variables.
14387
14388 * print.c (print_object): Use octal form for printing the
14389 contents of a bool vector.
14390
143912008-02-01 Dave Love <fx@gnu.org>
14392
14393 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
14394 <version == 20>: Refuse to load.
14395
143962008-02-01 Dave Love <fx@gnu.org>
14397
14398 * fns.c: Move coding.h.
14399 (Qcodeset, Qdays, Qmonths): New.
14400 (concat): Use CHARACTERP instead of INTEGERP.
14401 (Flocale_codeset): Delete.
14402 (Flanginfo): New function.
14403 (syms_of_fns): Change accordingly.
14404
14405 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
14406
144072008-02-01 Dave Love <fx@gnu.org>
14408
14409 * casetab.c (init_casetab_once, init_casetab_once): Fix
14410 CHAR_TABLE_SET call.
14411
14412 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
14413
14414 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
14415
14416 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
14417 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
14418 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
14419
14420 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
14421
14422 * coding.c (ENCODE_DESIGNATION, decode_eol)
14423 (make_conversion_work_buffer, code_conversion_restore)
14424 (Fdefine_coding_system_internal): Convert Lisp types.
14425 (code_conversion_restore): Use EQ, not ==.
14426 (Fencode_coding_string): Fix code_convert_string call.
14427
14428 * coding.h (code_convert_region): Fix prototype.
14429
14430 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
14431
14432 * fontset.c (fontset_ref, fontset_set, fs_load_font)
14433 (Ffontset_info): Convert Lisp types.
14434
14435 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
14436
14437 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
14438
14439 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
14440
14441 * chartab.c: Include "...h", not <...h> in some cases.
14442
14443 * callproc.c (Fcall_process): Remove unused variables.
14444
144452008-02-01 Dave Love <fx@gnu.org>
14446
14447 * coding.c (Fset_coding_system_priority): Allow null arg list.
14448
144492008-02-01 Dave Love <fx@gnu.org>
14450
14451 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
14452 (Fself_insert_and_exit): Use CHARACTERP.
14453
14454 * callproc.c (Fcall_process): Remove unused vars.
14455
14456 * xterm.c (XTread_socket): Add extra dead keysyms.
14457
14458 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
14459
14460 * dispextern.h: Remove prototypes for redraw_frame,
14461 redraw_garbaged_frames.
14462
14463 * cmds.c (Fself_insert_command): Use CHARACTERP.
14464
14465 * chartab.c (make_sub_char_table): Remove unused var.
14466 (Fset_char_table_default, Fmap_char_table): Doc fix.
14467
14468 * keymap.c (access_keymap): Remove generic char code.
14469 (push_key_description): Use CHARACTERP.
14470
144712008-02-01 Dave Love <fx@gnu.org>
14472
14473 * charset.c: Doc fixes.
14474 (Funify_charset): Extra checking.
14475
144762008-02-01 Dave Love <fx@gnu.org>
14477
14478 * lread.c: Remove some unused variables.
14479 (safe_to_load_p): If safe, return the magic number version byte.
14480 (Fload): Maybe use load-with-code-conversion.
14481
144822008-02-01 Kenichi Handa <handa@m17n.org>
14483
14484 * category.c (Fmodify_category_entry): Don't modify the contents
14485 of category_set for characters out of the range. Avoid
14486 unnecessary modification.
14487
14488 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
14489 Vchar_unify_table. The default value of the table is now nil.
14490
14491 * character.c (syms_of_character): Setup Vchar_width_table for
14492 eight-bit-control and raw-byte chars.
14493
14494 * charset.h (enum define_charset_arg_index): Delete
14495 charset_arg_parents and add charset_arg_subset and
14496 charset_arg_superset.
14497 (enum charset_attr_index): Delete charset_parents and add
14498 charset_subset and charset_superset.
14499 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
14500 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
14501 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
14502 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
14503 (CHARSET_SUPERSET): New macros.
14504 (charset_work): Extern it.
14505 (ENCODE_CHAR): Use charset_work.
14506 (CHAR_CHARSET_P): Adjust for the change of encoder format.
14507 (map_charset_chars): Extern it.
14508
14509 * charset.c (load_charset_map): Set the default value of encoder
14510 and deunifier char-tables to nil.
14511 (map_charset_chars): Change argument. Change callers. Use
14512 map_char_table_for_charset instead of map_char_table.
14513 (Fmap_charset_chars): New optional args from_code and to_code.
14514 (Fdefine_charset_internal): Adjust for the change of
14515 `define-charset' (:parents -> :subset or :superset).
14516 (charset_work): New variable.
14517 (encode_char, syms_of_charset): Adjust for the change of
14518 Fdefine_charset_internal.
14519 (Ffind_charset_string): Setup the vector `charsets' correctly.
14520
14521 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
14522 the previous change.
14523 (char_table_ref_and_range): Adjust for the above change.
14524 (map_sub_char_table_for_charset): New function.
14525 (map_char_table_for_charset): New function.
14526
14527 * keymap.c (describe_vector): Handle a char-table directly here.
14528 (describe_char_table): Delete.
14529
14530 * lisp.h (map_charset_chars): Delete.
14531
145322008-02-01 Dave Love <fx@gnu.org>
14533
14534 * fns.c (count_combining): Comment out (unused).
14535 (Flocale_codeset): New.
14536 (syms_of_fns): Defsubr it.
14537
14538 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
14539 (size_t): Remove.
14540
145412008-02-01 Dave Love <fx@gnu.org>
14542
14543 * Makefile.in (chartab.o): Depend on charset.h.
14544
145452008-02-01 Kenichi Handa <handa@m17n.org>
14546
14547 * character.c (syms_of_character): Set the default value of
14548 Vprintable_chars to Qnil.
14549
145502008-02-01 Dave Love <fx@gnu.org>
14551
14552 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
14553
145542008-02-01 Kenichi Handa <handa@m17n.org>
14555
14556 * charset.c (load_charset_map): Handle the case that from < to
14557 correctly.
14558
14559 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
14560 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
14561 Pay attention to raw-8-bit chars.
14562
145632008-02-01 Kenichi Handa <handa@m17n.org>
14564
14565 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
14566 It is not bytecompiled now.
14567
14568 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
14569 (charset_jisx0208): New variables.
14570 (Fdefine_charset_internal): Setup them if appropriate.
14571 (init_charset_once): Initialize them to -1.
14572
14573 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
14574 (charset_jisx0208): Extern them.
14575
14576 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
14577 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
14578 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
14579 (setup_iso_safe_charsets): Fix arguments to Fassq.
14580 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
14581 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
14582 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
14583 (encode_coding_iso_2022): Change the 1st arg to
14584 ENCODE_ISO_CHARACTER to a variable.
14585
145862008-02-01 Kenichi Handa <handa@m17n.org>
14587
14588 * charset.h (enum define_charset_arg_index): New enums
14589 charset_arg_min_code and charset_arg_max_code.
14590 (struct charset): New member char_index_offset.
14591
14592 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
14593 Take charset->char_index_offset into account.
14594 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
14595 args[charset_arg_max_code]. Setup charset.char_index_offset.
14596 (syms_of_charset): Fix args to Fdefine_charset_internal.
14597
145982008-02-01 Dave Love <fx@gnu.org>
14599
14600 * coding.c (decode_coding_utf_8): Reject overlong sequences.
14601
146022008-02-01 Dave Love <fx@gnu.org>
14603
14604 * coding.c: Doc fixes.
14605 (Fcoding_system_aliases): Fix return value.
14606 (Qmac): Remove (duplicated) definition.
14607
146082008-02-01 Dave Love <fx@gnu.org>
14609
14610 * charset.c (Fcharset_priority_list, Fset_charset_priority): New
14611 functions.
14612
14613 * character.c (Fstring): Doc fix.
14614
14615 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
14616
14617 * fontset.c (Ffontset_info): Doc fix. Return charset names, not
14618 ids.
14619 (font-encoding-alist): Doc fix.
14620
146212008-02-01 Dave Love <fx@gnu.org>
14622
14623 * term.c (costs_set): Declare static, non-initialized for pcc.
14624 (encode_terminal_code): Remove unused var.
14625
14626 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
14627 for K&R.
14628
14629 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
14630
14631 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
14632 (suffixes): Move out of make_subsidiaries for K&R.
14633
14634 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
14635
14636 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
14637
146382008-02-01 Dave Love <fx@gnu.org>
14639
14640 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
14641
14642 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
14643
146442008-02-01 Yong Lu <lyongu@asia-infonet.com>
14645
14646 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
14647
14648 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
14649
146502008-02-01 Kenichi Handa <handa@m17n.org>
14651
14652 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
14653 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
14654
146552008-02-01 Kenichi Handa <handa@m17n.org>
14656
14657 * coding.c (decode_coding_charset): Adjust for the change of
14658 Fdefine_coding_system_internal.
14659 (Fdefine_coding_system_internal): For a coding system of
14660 `charset' type, store a list of charset IDs in
14661 `charset_attr_charset_valids' element of coding attributes.
14662
146632008-02-01 Kenichi Handa <handa@m17n.org>
14664
14665 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
14666 (emacs_mule_char): New arg src. Delete arg `composition'. Change
14667 caller. Handle 2-byte and 3-byte charsets correctly.
14668 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
14669 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
14670 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
14671 (DECODE_EMACS_MULE_21_COMPOSITION): Call
14672 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
14673 sequence.
14674 (decode_coding_emacs_mule): Handle composition correctly. Rewind
14675 `src' and `consumed_chars' correctly before calling emacs_mule_char.
14676 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
14677 and alt&rule composition.
14678 (decode_coding_iso_2022): Handle composition correctly.
14679 (init_coding_once): Setup emacs_mule_bytes for private charsets.
14680
14681 * charset.c (Fdefine_charset_internal): Fix bug for the case of
14682 re-defining a charset. If the charset has :emacs-mule-id, setup
14683 emacs_mule_bytes.
14684 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
14685
146862008-02-01 Kenichi Handa <handa@m17n.org>
14687
14688 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
14689 (encode_coding_big5, encode_coding_charset): If coding requires safe
14690 encoding, produce a character specified by
14691 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
14692
146932008-02-01 Dave Love <fx@gnu.org>
14694
14695 * xterm.c (XSetIMValues): Declare.
14696
14697 * process.c: Conditionally include sys/wait.h, pty.h.
14698
14699 * print.c (print_object): Fix print format for 64-bit systems.
14700
14701 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
14702
14703 * buffer.c (emacs_strerror): Declare.
14704
14705 * fontset.c (Fclear_face_cache): Declare.
14706 (accumulate_font_info): Comment-out (unused).
14707 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
14708 variables.
14709
14710 * character.h (string_escape_byte8): Declare.
14711
14712 * charset.c (load_charset_map, load_charset_map_from_file): Remove
14713 unused vars.
14714 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
14715 (Fmap_charset_chars): Doc fix.
14716
14717 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
14718 (Fset_coding_system_priority, Fset_coding_system_priority)
14719 (Fdefine_coding_system_internal): Doc fix.
14720
147212008-02-01 Dave Love <fx@gnu.org>
14722
14723 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
14724
147252008-02-01 Kenichi Handa <handa@m17n.org>
14726
14727 * character.c (string_escape_byte8): Make multibyte string with
14728 correct size.
14729
14730 * charset.c (Fmake_char): Delete unnecessary code.
14731
147322008-02-01 Kenichi Handa <handa@m17n.org>
14733
14734 * xfns.c (x_encode_text): Allocate coding.destination here, and
14735 call encode_coding_object with dst_object Qnil.
14736
14737 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
14738 multibyte form correctly.
14739
14740 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
14741 against Vfont_encoding_alist.
14742
14743 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
14744 handling of charset list.
14745 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
14746 (decode_coding_object): Move point to coding->dst_pos before
14747 calling post-read-conversion function.
14748 (encode_coding_object): Give correct arguments to
14749 pre-write-conversion. Ignore the return value of
14750 pre-write-conversion function. Pay attention to the case that
14751 pre-write-conversion changes the current buffer. If dst_object is
14752 Qt, even if coding->src_bytes is zero, allocate at least one byte
14753 to coding->destination.
14754
14755 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
14756
14757 * charset.c (Fmake_char): Make it more backward compatible.
14758 (Fmap_charset_chars): Fix docstring.
14759
147602008-02-01 Dave Love <fx@gnu.org>
14761
14762 * coding.c: Doc fixes.
14763 (Fdefine_coding_system_alias): Use names, not symbols, in
14764 coding-system-alist.
14765
147662008-02-01 Kenichi Handa <handa@m17n.org>
14767
14768 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
14769 of calling free_realized_face.
14770
147712008-02-01 Yong Lu <lyongu@asia-infonet.com>
14772
14773 * charset.c (read_hex): Don't treat SPC as a comment starter.
14774 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
14775 (Fdecode_char): Fix typo.
14776
147772008-02-01 Kenichi Handa <handa@m17n.org>
14778
14779 * charset.h (struct charset): New member `code_space_mask'.
14780
14781 * coding.c (coding_set_source): Delete the local variable beg_byte.
14782 (encode_coding_charset, Fdefine_coding_system_internal):
14783 Delete the local variable charset.
14784 (Fdefine_coding_system_internal): Setup
14785 attrs[coding_attr_charset_valids] correctly.
14786
14787 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
14788 member to check if CODE is valid or not.
14789 (Fdefine_charset_internal): Initialize `code_space_mask' member.
14790 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
14791 is within the range of charset->min_code and carset->max_code.
14792
147932008-02-01 Dave Love <fx@gnu.org>
14794
14795 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
14796
14797 * dispextern.h (generate_ascii_font): Fix return type.
14798
14799 * xfaces.c (generate_ascii_font): Fix arg declaration.
14800
14801 * coding.c (coding_inherit_eol_type)
14802 (Fset_terminal_coding_system_internal)
14803 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
14804
148052008-02-01 Kenichi Handa <handa@m17n.org>
14806
14807 * coding.c (decode_coding_charset, encode_coding_charset): Handle
14808 multiple charsets correctly.
14809
148102008-02-01 Kenichi Handa <handa@m17n.org>
14811
14812 * search.c (boyer_moore): Fix handling of multibyte character
14813 translation.
14814
14815 * xdisp.c (display_mode_element): When the variable `elt' is
14816 changed, update `this' and `lisp_string'.
14817
148182008-02-01 Kenichi Handa <handa@m17n.org>
14819
14820 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
14821
14822 * callproc.c (Fcall_process): Be sure to give the current buffer
14823 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
14824
14825 * charset.c (struct charset_map_entries): New struct.
14826 (load_charset_map): Rename from parse_charset_map. New args
14827 entries and n_entries. Change caller.
14828 (load_charset_map_from_file): Rename from load_charset_map.
14829 Change caller. New arg control_flag. Call load_charset_map at
14830 the tail.
14831 (load_charset_map_from_vector): New function.
14832 (Fdefine_charset_internal): Setup charset.compact_codes_p.
14833 (encode_char): If the charset is compact, change a character index
14834 to a code point.
14835
14836 * coding.c (coding_alloc_by_making_gap): Check the case that the
14837 source and destination are the same correctly.
14838 (decode_coding_raw_text): Set coding->consumed_char and
14839 coding->consumed to 0.
14840 (produce_chars): If coding->chars_at_source is nonzero, update
14841 coding->consumed_char and coding->consumed before calling
14842 alloc_destination.
14843 (Fdefine_coding_system_alias): Register ALIAS in
14844 Vcoding_system_alist.
14845 (syms_of_coding): Define `no-conversion' coding system at the tail.
14846
14847 * fileio.c (Finsert_file_contents): Set coding_system instead of
14848 val. If the current buffer is multibyte, always call
14849 decode_coding_gap.
14850
14851 * xfaces.c (try_font_list): Give higher priority to fontset's
14852 family than face's family.
14853
148542008-02-01 Kenichi Handa <handa@m17n.org>
14855
14856 * callproc.c (Fcall_process): Be sure to give the current buffer
14857 to decode_coding_c_string.
14858
14859 * xfaces.c (try_font_list): Give a family specified in a fontset
14860 higher priority than a family specified in a face.
14861
148622008-02-01 Kenichi Handa <handa@m17n.org>
14863
14864 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
14865 Fix arguments to insert_from_buffer.
14866
14867 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
14868
148692008-02-01 Kenichi Handa <handa@m17n.org>
14870
14871 * coding.c (produce_chars): Set the variable `multibytep' correctly.
14872 (decode_coding_gap): Set coding->dst_multibyte correctly.
14873
148742008-02-01 Kenichi Handa <handa@m17n.org>
14875
14876 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
14877 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
14878 (encode_coding_utf_16): Substitute coding->default_char for
14879 non-Unicode characters.
14880 (decode_coding): Don't call record_insert here.
14881 (setup_coding_system): Initialize `surrogate' of
14882 coding->spec.utf_16 to 0.
14883 (EMIT_ONE_BYTE): Fix for multibyte case.
14884
14885 * insdel.c (insert_from_gap): Call record_insert.
14886
148872008-02-01 Kenichi Handa <handa@m17n.org>
14888
14889 * casefiddle.c (casify_region): Fix multibyte case.
14890
14891 * character.c (c_string_width): Add return type `int'.
14892 (char_string_with_unification): Delete arg ADVANCED.
14893
14894 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
14895 (CHAR_STRING): Adjust for the change of char_string_with_unification.
14896 (CHAR_STRING_ADVANCE): Make it do-while statement.
14897
14898 * chartab.c (sub_char_table_set_range): Optimize for the case
14899 DEPTH == 3. Add workaround code for a GCC optimization bug.
14900
14901 * charset.c (parse_charset_map): Remove an unused variable.
14902
14903 * coding.c: Delete unused variables.
14904
14905 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
14906 earlier. If inserted is zero and the coding system doesn't
14907 require flushing, don't call decode_coding_gap.
14908
14909 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
14910
149112008-02-01 Kenichi Handa <handa@m17n.org>
14912
14913 The following changes are for using Unicode as an internal
14914 character model, and use UTF-8 format for buffer/string
14915 representation.
14916
14917 * .gdbinit (xchartable): Adjust for the change of char table structure.
14918 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
14919
14920 * Makefile.in (obj): Add character.o and chartab.o.
14921 (lisp, shortlisp): Remove utf-8.elc.
14922 (*.o): For many files, change dependency on charset.h to
14923 character.h, and add dependency on character.h.
14924 (character.o, chartab.o): New targets.
14925
14926 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
14927 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
14928 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
14929 of "charset.h".
14930
14931 * dired.c, filelock.c: Include "character.h".
14932
14933 * alloc.c: Include "character.h" instead of "charset.h".
14934 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
14935 (syms_of_alloc): Remove defsubr for Smake_char_table.
14936
14937 * buffer.c: Include "character.h" instead of "charset.h", don't
14938 include "coding.h".
14939 (Fset_buffer_multibyte): Adjust for UTF-8.
14940
14941 * buffer.h: EXFUN Fbuffer_live_p.
14942
14943 * callproc.c: Include "character.h" instead of "charset.h".
14944 (Fcall_process): Big change for the new code-conversion APIs.
14945
14946 * casetab.c: Include "character.h" instead of "charset.h".
14947 (set_canon, set_identity, shuffle): Adjust for the new
14948 map_char_table spec.
14949 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
14950 accessing the char table structure.
14951
14952 * chartab.c: New file that implements char table.
14953
14954 * category.c: Include "character.h".
14955 (copy_category_entry): New function.
14956 (copy_category_table): Call map_char_table and copy_category_entry.
14957 (Fmake_category_table): Initialize all top-level slots.
14958 (char_category_set): New function.
14959 (modify_lower_category_set): Delete.
14960 (Fmodify_category_entry): Call char_table_ref_and_range.
14961
14962 * category.h (CATEGORY_SET): Just call char_category_set.
14963
14964 * ccl.c: Include "character.h".
14965 (Qccl, Qcclp): New variables.
14966 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
14967 it's less than 256.
14968 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
14969 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
14970 and DST type.
14971 (ccl_driver): Change types of argument, adjust code accordingly.
14972 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
14973 ccl_driver.
14974 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
14975
14976 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
14977 New members src_multibyte, dst_multibyte, consumed, and produced.
14978 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
14979 (CODING_SPEC_CCL_PROGRAM): New macro.
14980 (ccl_driver): Update prototype.
14981 (Qccl, Qcclp, Fccl_program_p): Extern them.
14982 (CHECK_CCL_PROGRAM): New macro.
14983
14984 * character.c, character.h, chartab.c: New files.
14985
14986 * charset.c: Mostly re-written. Move character and multibyte sequence
14987 handling codes to character.c.
14988
14989 * charset.h: Mostly re-written. Move character and multibyte sequence
14990 handling codes to character.h.
14991
14992 * coding.c, coding.h: Mostly re-written.
14993
14994 * composite.c: Include "character.h" instead of "charset.h".
14995 (CHAR_WIDTH): Move to character.h.
14996 (HASH_KEY, HASH_VALUE): Delete.
14997
14998 * composite.h (enum composition_method): Change order of enumeration
14999 symbols.
15000
15001 * data.c: Include "character.h" instead of "charset.h".
15002 (Faref): Call CHAR_TABLE_REF for a char table.
15003 (Faset): Call CHAR_TABLE_SET for a char table.
15004
15005 * dispextern.h (free_realized_face, check_face_attribytes)
15006 (generate_ascii_font): Extern them.
15007 (free_realized_multibyte_face): Delete extern.
15008
15009 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
15010 table structure.
15011
15012 * editfns.c: Include "character.h" instead of "charset.h".
15013 (Fchar_to_string): Always call CHAR_STRING.
15014
15015 * emacs.c (main): Call init_charset_once, init_charset,
15016 syms_of_chartab, and syms_of_character.
15017
15018 * fileio.c: Include "character.h" instead of "charset.h".
15019 (Finsert_file_contents): Big change for the new code-conversion API.
15020 (choose_write_coding_system, Fwrite_region): Likewise.
15021 (build_annotations_2): Delete.
15022 (e_write): Big change for the new code-conversion API.
15023
15024 * fns.c: Include "character.h" instead of "charset.h".
15025 (copy_sub_char_table): Move to chartab.c.
15026 (Fcopy_sequence): Call copy_char_table for a char table.
15027 (concat): Delete codes calling count_multibyte.
15028 (string_char_to_byte, string_byte_to_char): Adjust for the new
15029 multibyte form.
15030 (internal_equal): Adjust for the change of char table structure.
15031 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
15032 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
15033 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
15034 (char_table_translate, optimize_sub_char_table)
15035 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
15036 chartab.c.
15037 (char_table_ref_and_index): Delete.
15038 (HASH_KEY, HASH_VALUE): Move to lisp.h.
15039 (Fmd5): Call preferred_coding_system instead of accessing
15040 Vcoding_category_list. Adjust for the new code-conversion API.
15041 (syms_of_fns): Move defsubr for char table related functions to
15042 chartab.c.
15043
15044 * fontset.c: Mostly re-written.
15045
15046 * fontset.h (struct font_info): Change type of the member encoding_type.
15047 (enum FONT_SPEC_INDEX): New enum.
15048 (fontset_font_pattern, fs_load_font): Update prototype.
15049 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
15050
15051 * indent.c: Include "character.h" instead of "charset.h".
15052 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
15053
15054 * insdel.c: Include "character.h" instead of "charset.h".
15055 (copy_text): Don't refer to Vnonascii_translation_table.
15056 (insert_from_gap): New function.
15057
15058 * keyboard.c: Include "character.h" instead of "charset.h".
15059 (command_loop_1): Never call direct_output_forward_char before
15060 a non-ASCII character.
15061 (read_char): If Vkeyboard_translate_table is a char table, always
15062 translate a character.
15063
15064 * keymap.c: Include "character.h".
15065 (store_in_keymap): Handle the case that IDX is a cons.
15066 (Fdefine_key): Handle the case that KEY is a cons and the car part
15067 is also a cons (range).
15068 (push_key_description): Adjust for the new character code.
15069 (describe_vector): Call describe_char_table for a char table.
15070 (describe_char_table): New function.
15071
15072 * keymap.h (describe_char_table): Extern it.
15073
15074 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
15075 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
15076 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
15077 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
15078 Delete.
15079 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
15080 structure.
15081 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
15082 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
15083 (CHARTAB_SIZE_BITS_3): New macros.
15084 (chartab_size): Extern it.
15085 (struct Lisp_Char_Table): Re-design.
15086 (struct Lisp_Sub_Char_Table): New structure.
15087 (HASH_KEY, HASH_VALUE): Move from fns.c.
15088 (CHARACTERBITS): Define as 22.
15089 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
15090 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
15091 (GC_SUB_CHAR_TABLE_P): New macro.
15092 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
15093 (code_convert_string_norecord): Deleted extern.
15094 (init_character_once, syms_of_character, init_charset)
15095 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
15096
15097 * lread.c: Include "character.h".
15098 (read_multibyte): New arg NBYTES.
15099 (read_escape): Change the meaning of returned *BYTEREP.
15100 (to_multibyte): Delete.
15101 (read1): Adjust the handling of char table and string.
15102
15103 * print.c: Include "character.h" instead of "charset.h".
15104 (print_string): Convert 8-bit raw bytes to octal form by
15105 string_escape_byte8.
15106 (print_object): Adjust for the new multibyte form. Print 8-bit
15107 raw bytes always in octal form. Handle sub char table correctly.
15108
15109 * process.c: Include "character.h" instead of "charset.h".
15110 (read_process_output, send_process): Adjust for the new
15111 code-conversion API.
15112
15113 * puresize.h (BASE_PURESIZE): Increase.
15114
15115 * regex.c: Include "character.h" instead of "charset.h".
15116 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
15117 (regex_compile): Accept a range whose starting and ending
15118 character have different leading bytes.
15119 (analyse_first): Adjust for the above change.
15120
15121 * search.c: Include "character.h" instead of "charset.h".
15122 (search_buffer, boyer_moore): Adjust for the new multibyte form.
15123 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
15124
15125 * syntax.c: Include "character.h" instead of "charset.h".
15126 (syntax_parent_lookup): Delete.
15127 (Fmodify_syntax_entry): Accept a cons as CHAR.
15128 (skip_chars): Adjust for the new multibyte form.
15129 (init_syntax_once): Call char_table_set_range instead of directly
15130 accessing the structure of a char table.
15131
15132 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
15133 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
15134 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
15135 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
15136
15137 * term.c: Include "buffer.h" and "character.h".
15138 (encode_terminal_code, write_glyphs): Adjust for the new
15139 code-conversion API.
15140 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
15141
15142 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
15143
15144 * xdisp.c: Include "character.h".
15145 (get_next_display_element): Adjust for the new multibyte form.
15146 (disp_char_vector): Adjust for the new char table structure.
15147 (decode_mode_spec_coding): Adjust for the new structure of
15148 coding system.
15149 (decode_mode_spec): Adjust for the new code-conversion API.
15150
15151 * xfaces.c: Include "character.h" instead of "charset.h".
15152 (load_face_font): Adjust for the change of choose_face_font and
15153 FS_LOAD_FONT.
15154 (generate_ascii_font): New function.
15155 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
15156 (set_font_frame_param): Adjust for the change of choose_face_font.
15157 (free_realized_face): Make it public.
15158 (free_realized_faces_for_fontset): Rename from
15159 free_realized_multibyte_face. Free also faces realized for ASCII.
15160 (choose_face_font): Change arguments. Adjust for the change of
15161 fontset_font_pattern and FS_LOAD_FONT.
15162
15163 * xfns.c: Include "character.h".
15164 (x_encode_text): Adjust for the new code-conversion API.
15165
15166 * xselect.c: Don't include "charset.h".
15167 (selection_data_to_lisp_data): Adjust for the new code conversion API.
15168
15169 * xterm.c: Include "character.h".
15170 (x_encode_char): New argument CHARSET. Change caller.
15171 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
15172 Call ENCODE_CHAR instead of SPLIT_CHAR.
15173 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
15174 CHAR_WIDTH instead of CHARSET_WIDTH.
15175 (XTread_socket): Adjust for the new code-conversion API.
15176 (x_new_font): Adjust for the change of FS_LOAD_FONT.
15177 (x_load_font): Adjust for the change of struct font.
15178
151792008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
15180
15181 * xfaces.c (face_at_buffer_position): Remove unused vars.
15182
151832008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15184
15185 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
15186 Fix overflow checking.
15187
151882008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15189
15190 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
15191 Cancel previous change.
15192
151932008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
15194
15195 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
15196 ccl->eight_bit_control. Fix check for buffer overflow.
15197 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
15198 (ccl_driver): Initialize extra_bytes to 0.
15199
152002008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
15201
15202 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
15203 return it ORed with ctrl_modifier.
15204
152052008-01-29 Miles Bader <miles@gnu.org>
15206
15207 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
15208
152092008-01-28 Jason Rumney <jasonr@gnu.org>
15210
15211 * w32.c (stat): Don't double check for networked drive.
15212
152132008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
15214
15215 * window.c (run_window_configuration_change_hook): New function.
15216 Code extracted from set_window_buffer. Set the selected frame.
15217 (set_window_buffer): Use it.
15218 * window.h (run_window_configuration_change_hook): Declare.
15219 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
15220
15221 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
15222
152232008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
15224
15225 * Makefile.in: Remove references to unused macros.
15226
152272008-01-26 Eli Zaretskii <eliz@gnu.org>
15228
15229 * w32.c (g_b_init_get_sid_sub_authority)
15230 (g_b_init_get_sid_sub_authority_count): New static variables.
15231 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
15232 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
15233 (init_user_info): Use them to retrieve uid and gid.
15234 Use 500/513, the Windows defaults, as Administrator's uid/gid.
15235 (fstat): Use pw_uid and pw_gid from the_passwd structure for
15236 st_uid and st_gid of the file.
15237
152382008-01-26 Jason Rumney <jasonr@gnu.org>
15239
15240 * w32.c (logon_network_drive): New function.
15241 (stat): Use it.
15242
152432008-01-26 Chong Yidong <cyd@stupidchicken.com>
15244
15245 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
15246 invisible text covered with an ellipsis.
15247
152482008-01-25 Richard Stallman <rms@gnu.org>
15249
15250 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
15251 jump back to beginning. Move some other initializations after that.
15252 (Qwindow_text_change_functions, Vwindow_text_change_functions):
15253 New variables.
15254 (syms_of_xdisp): Init them.
15255
15256 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
15257
15258 * buffer.c (reset_buffer_local_variables):
15259 Implement `permanent-local-hook'.
15260 (Qpermanent_local_hook): New variable.
15261 (syms_of_buffer): Init and staticpro it.
15262
152632008-01-25 Michael Albinus <michael.albinus@gmx.de>
15264
15265 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
15266
152672008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
15268
15269 * fns.c (Fclrhash): Return TABLE.
15270
152712008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15272
15273 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
15274 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
15275 is set even without positional changes.
15276 (x_scroll_bar_clear): Set bar->redraw_needed_p.
15277
15278 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
15279
152802008-01-23 Jason Rumney <jasonr@gnu.org>
15281
15282 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
15283
15284 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
15285 the unicode range available in MULE by locale-coding-system.
15286 Improve dbcs lead byte detection. Set event timestamp and modifiers
15287 earlier.
15288
152892008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15290
15291 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
15292 [MAC_OSX] (init_mac_osx_environment): Initialize it.
15293 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
15294 when used on child processes.
15295
152962008-01-21 Michael Albinus <michael.albinus@gmx.de>
15297
15298 * dbusbind.c (Fdbus_method_return_internal): Rename from
15299 Fdbus_method_return.
15300 (Fdbus_unregister_object): Move to dbus.el.
15301 (Fdbus_call_method, Fdbus_method_return_internal)
15302 (Fdbus_send_signal): Improve debug messages.
15303
153042008-01-20 Martin Rudalics <rudalics@gmx.at>
15305
15306 * undo.c (undo_inhibit_record_point): New variable.
15307 (syms_of_undo): Initialize it.
15308 (record_point): Don't record point when undo_inhibit_record_point
15309 is set.
15310
153112008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
15312
15313 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
15314
15315 * xdisp.c (Qauto_hscroll_mode): New var.
15316 (syms_of_xdisp): Initialize it.
15317 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
15318 window's buffer.
15319 (hscroll_windows): Don't check automatic_hscrolling_p here.
15320
15321 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
15322 vscroll if we're setting window-buffer to the value it already has.
15323
153242008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
15325
15326 * m/intel386.h: Remove references to XENIX.
15327
153282008-01-17 Andreas Schwab <schwab@suse.de>
15329
15330 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
15331 instead of HAVE_X86_64_LIB64_DIR.
15332 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
15333
153342008-01-17 Glenn Morris <rgm@gnu.org>
15335
15336 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
15337 to HAVE_X86_64_LIB64_DIR.
15338
153392008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
15340
15341 * s/irix3-3.h:
15342 * s/irix4-0.h:
15343 * s/386-ix.h:
15344 * s/domain.h:
15345 * s/hpux9-x11r4.h:
15346 * s/hpux9shxr4.h: Remove files for systems no longer supported.
15347
15348 * sysdep.c: Remove code containing references to symbols defined
15349 by unsupported systems.
15350
153512008-01-16 Glenn Morris <rgm@gnu.org>
15352
15353 * coding.c (select-safe-coding-system-function): Doc fix.
15354
153552008-01-15 Glenn Morris <rgm@gnu.org>
15356
15357 * config.in: Revert 2008-01-13 change: this is a generated file.
15358
153592008-01-13 Tom Tromey <tromey@redhat.com>
15360
15361 * lisp.h: Fix typo.
15362
153632008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
15364
15365 * m/sequent-ptx.h:
15366 * m/sequent.h:
15367 * s/ptx.h:
15368 * s/ptx4-2.h:
15369 * s/ptx4.h: Remove files for systems no longer supported.
15370
15371 * callproc.c (Fcall_process): Fix previous change.
15372
153732008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
15374
15375 * unexsunos4.c: Remove file, system not supported anymore.
15376
15377 * m/mips.h:
15378 * m/intel386.h:
15379 * callproc.c:
15380 * config.in:
15381 * ecrt0.c:
15382 * emacs.c:
15383 * fileio.c:
15384 * frame.c:
15385 * getpagesize.h:
15386 * keyboard.c:
15387 * lread.c:
15388 * process.c:
15389 * puresize.h:
15390 * sysdep.c:
15391 * systty.h:
15392 * syswait.h:
15393 * unexec.c:
15394 * xdisp.c:
15395 * alloc.c: Remove code containing references to symbols defined by
15396 unsupported systems.
15397
153982008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
15399
15400 * coding.c (detect_coding_mask): Fix previous change.
15401
154022008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
15403
15404 * coding.c (detect_coding_iso2022): New arg
15405 latin_extra_code_state. Allow Latin extra codes only
15406 when *latin_extra_code_state is nonzero.
15407 (detect_coding_mask): If there is a NULL byte, detect the encoding
15408 as UTF-16 or binary. If Latin extra codes exist, detect the
15409 encoding as ISO-2022 only when there's no other proper encoding is
15410 found.
15411
154122008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15413
15414 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
15415 #ifdef MAC_OS.
15416
154172008-01-08 Richard Stallman <rms@gnu.org>
15418
15419 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
15420
154212008-01-06 Nick Roberts <nickrob@snap.net.nz>
15422
15423 * keyboard.c (parse_menu_item): Don't enclose key bindings on
15424 menu bar in parentheses.
15425
154262008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
15427
15428 * m/7300.h:
15429 * m/acorn.h:
15430 * m/alliant-2800.h:
15431 * m/alliant.h:
15432 * m/alliant1.h:
15433 * m/alliant4.h:
15434 * m/altos.h:
15435 * m/amdahl.h:
15436 * m/apollo.h:
15437 * m/att3b.h:
15438 * m/aviion-intel.h:
15439 * m/aviion.h:
15440 * m/celerity.h:
15441 * m/clipper.h:
15442 * m/cnvrgnt.h:
15443 * m/convex.h:
15444 * m/cydra5.h:
15445 * m/delta88k.h:
15446 * m/dpx2.h:
15447 * m/dual.h:
15448 * m/elxsi.h:
15449 * m/f301.h:
15450 * m/gould-np1.h:
15451 * m/gould.h:
15452 * m/i860.h:
15453 * m/ibmps2-aix.h:
15454 * m/ibmrt-aix.h:
15455 * m/ibmrt.h:
15456 * m/irist.h:
15457 * m/is386.h:
15458 * m/isi-ov.h:
15459 * m/mega68.h:
15460 * m/mg1.h:
15461 * m/news-r6.h:
15462 * m/news-risc.h:
15463 * m/news.h:
15464 * m/nh3000.h:
15465 * m/nh4000.h:
15466 * m/ns16000.h:
15467 * m/ns32000.h:
15468 * m/nu.h:
15469 * m/orion.h:
15470 * m/orion105.h:
15471 * m/paragon.h:
15472 * m/pfa50.h:
15473 * m/plexus.h:
15474 * m/pyramid.h:
15475 * m/pyrmips.h:
15476 * m/sh3el.h:
15477 * m/sps7.h:
15478 * m/sr2k.h:
15479 * m/stride.h:
15480 * m/sun1.h:
15481 * m/sun2.h:
15482 * m/sun3-68881.h:
15483 * m/sun3-fpa.h:
15484 * m/sun3-soft.h:
15485 * m/sun3.h:
15486 * m/sun386.h:
15487 * m/symmetry.h:
15488 * m/tad68k.h:
15489 * m/tahoe.h:
15490 * m/targon31.h:
15491 * m/tek4300.h:
15492 * m/tekxd88.h:
15493 * m/tower32.h:
15494 * m/tower32v3.h:
15495 * m/ustation.h:
15496 * m/wicat.h:
15497 * m/xps100.h:
15498 * s/cxux.h:
15499 * s/cxux7.h:
15500 * s/dgux.h:
15501 * s/dgux4.h:
15502 * s/dgux5-4-3.h:
15503 * s/dgux5-4r2.h:
15504 * s/esix.h:
15505 * s/esix5r4.h:
15506 * s/hiuxmpp.h:
15507 * s/hiuxwe2.h:
15508 * s/iris3-5.h:
15509 * s/iris3-6.h:
15510 * s/isc2-2.h:
15511 * s/isc3-0.h:
15512 * s/isc4-0.h:
15513 * s/isc4-1.h:
15514 * s/newsos5.h:
15515 * s/newsos6.h:
15516 * s/osf1.h:
15517 * s/osf5-0.h:
15518 * s/riscix1-1.h:
15519 * s/riscix12.h:
15520 * s/sco4.h:
15521 * s/sco5.h:
15522 * s/sunos4-0.h:
15523 * s/sunos4-1.h:
15524 * s/sunos413.h:
15525 * s/sunos4shr.h:
15526 * s/umax.h:
15527 * s/unipl5-2.h:
15528 * s/xenix.h:
15529 * cxux-crt0.s:
15530 * unexapollo.c:
15531 * unexconvex.c:
15532 * unexenix.c:
15533 * unexsni.c: Remove files for systems no longer supported.
15534
15535 * m/intel386.h: Remove references to unsupported systems.
15536
15537 * w32.c (get_emacs_configuration): Remove reference to i860.
15538
15539 * sysdep.c: Remove dead code.
15540
155412008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
15542
15543 * s/rtu.h:
15544 * m/masscomp.h: Remove files. Platform is obsolete.
15545
155462008-01-04 Michael Albinus <michael.albinus@gmx.de>
15547
15548 * dbusbind.c (Fdbus_method_return): New function.
15549 (xd_read_message): Add the serial number to the event.
15550 (Fdbus_register_method): Activate the function.
15551
155522008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
15553
15554 * keyboard.c (read_key_sequence): Fix typo.
15555
155562008-01-03 Michael Albinus <michael.albinus@gmx.de>
15557
15558 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
15559 (xd_signature, xd_append_arg): Handle element type detection for
15560 empty arrays.
15561 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
15562 SDATA () calls; this must be solved more general.
15563 (Fdbus_register_signal): Use SBYTES instead of strlen.
15564
155652008-01-03 Magnus Henoch <magnus@zemdatav>
15566
15567 * dbusbind.c (xd_append_arg): Use unsigned char instead of
15568 unsigned int for byte values (necessary for big-endian platform).
15569 (Fdbus_call_method): Handle the case of no returned arguments.
15570
155712007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
15572
15573 * dbusbind.c (xd_read_message): Use non-static input_event struct.
15574
155752007-12-31 Magnus Henoch <mange@freemail.hu>
15576
15577 * dbusbind.c (xd_signature): Signature of variant is just "v".
15578
155792007-12-30 Michael Albinus <michael.albinus@gmx.de>
15580
15581 * dbusbind.c: Fix several errors and compiler warnings.
15582 Reported by Tom Tromey <tromey@redhat.com>.
15583 (XD_ERROR, XD_DEBUG_MESSAGE)
15584 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
15585 (xd_append_arg): Part for basic D-Bus types rewritten.
15586 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
15587 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
15588 appropriate.
15589 (xd_read_message): Return Qnil. Don't signal an error; it is not
15590 useful during event reading.
15591 (Fdbus_register_signal): Signal an error if the check for
15592 FUNCTIONP fails.
15593 (Fdbus_register_method): New function. The implementation is not
15594 complete, the call of the function signals an error therefore.
15595 (Fdbus_unregister_object): New function, renamed from
15596 Fdbus_unregister_signal. The initial check signals an error, if
15597 the object is not well formed.
15598
155992007-12-30 Richard Stallman <rms@gnu.org>
15600
15601 * textprop.c (get_char_property_and_overlay):
15602 Signal error if POSITION is out of range in a buffer.
15603
156042007-12-29 Martin Rudalics <rudalics@gmx.at>
15605
15606 * w32fns.c (Fx_create_frame): Make copy of frame parameters
15607 because the original parameters are in pure storage now.
15608
156092007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15610
15611 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
15612
156132007-12-22 Eli Zaretskii <eliz@gnu.org>
15614
15615 * callint.c (syms_of_callint) <command-history>: Add reference to
15616 history-length in the doc string.
15617
156182007-12-17 Jason Rumney <jasonr@gnu.org>
15619
15620 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
15621 before passing as wParam.
15622
156232007-12-22 Michael Albinus <michael.albinus@gmx.de>
15624
15625 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
15626 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
15627 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
15628 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
15629 as number.
15630 (Fdbus_call_method): Fix docstring.
15631
156322007-12-21 Michael Albinus <michael.albinus@gmx.de>
15633
15634 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
15635 New macros.
15636 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
15637 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
15638 Simplify.
15639 (xd_signature): New function.
15640 (xd_append_arg): Compute also signatures. Major rewrite.
15641 (xd_retrieve_arg): Make debug messages friendly.
15642 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
15643 Check for signatures of arguments.
15644
156452007-12-19 Michael Albinus <michael.albinus@gmx.de>
15646
15647 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
15648 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
15649 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
15650 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
15651 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
15652 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
15653 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
15654 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
15655 (xd_retrieve_value): Remove. Functionality included in ...
15656 (xd_append_arg): New function.
15657 (Fdbus_call_method, Fdbus_send_signal): Apply it.
15658
156592007-12-16 Michael Albinus <michael.albinus@gmx.de>
15660
15661 * dbusbind.c (top): Include <stdio.h>.
15662 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
15663 dbus_message_new_method_call and dbus_message_new_signal.
15664 (Fdbus_register_signal): Rename unique_name to uname.
15665 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
15666 non-existing unique name. Fix typos in matching rule. Return an
15667 object which is useful in Fdbus_unregister_signal.
15668 (Fdbus_unregister_signal): Reimplementation, in order to remove
15669 only the corresponding entry.
15670 (Vdbus_registered_functions_table): Change the order of entries.
15671 Apply these changes in xd_read_message and Fdbus_register_signal.
15672
156732007-12-16 Andreas Schwab <schwab@suse.de>
15674
15675 * fileio.c (Finsert_file_contents): Fix overflow check to not
15676 depend on undefined integer overflow.
15677
156782007-12-14 Jason Rumney <jasonr@gnu.org>
15679
15680 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
15681 for characters above 127.
15682
156832007-12-13 Jason Rumney <jasonr@gnu.org>
15684
15685 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
15686 before dereferencing array.
15687 (lookup_vk_code): Remove zero comparison.
15688
156892007-12-14 Michael Albinus <michael.albinus@gmx.de>
15690
15691 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
15692 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
15693 Use `unsigned int' instead of `uint'.
15694 (xd_read_message, Fdbus_register_signal): Split expressions into
15695 multiple lines before operators "&&" and "||", according to the
15696 GNU Coding Standards.
15697
156982007-12-14 Eli Zaretskii <eliz@gnu.org>
15699
15700 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
15701
157022007-12-12 Juri Linkov <juri@jurta.org>
15703
15704 * buffer.c (Frename_buffer): In interactive spec replace
15705 `read-buffer' with `read-string' that uses `buffer-name-history'
15706 as history, and the current buffer's name as default.
15707
157082007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
15709
15710 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
15711 manipulating the backtrace manually.
15712 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
15713 (struct backtrace, backtrace_list): Remove.
15714 (command_loop_1): Remove dead var `no_direct'.
15715
15716 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
15717 preserve non-built-in buffer-local variables.
15718 (Fkill_all_local_variables): Don't re-create&re-set permanent
15719 buffer-local variables.
15720
157212007-12-09 Juri Linkov <juri@jurta.org>
15722
15723 * buffer.c (Frename_buffer): Change interactive spec from "s" to
15724 Lisp code that uses `read-buffer' with current buffer as default.
15725
157262007-12-08 Michael Albinus <michael.albinus@gmx.de>
15727
15728 * dbusbind.c (xd_read_message): Generate an event for every
15729 registered handler. There might be several handlers registered
15730 for the same signal.
15731 (Fdbus_register_signal): Don't overwrite a registration for the
15732 same signal. Add a new registration if handlers are different.
15733 (Vdbus_registered_functions_table): Rework doc string.
15734
157352007-12-07 Michael Albinus <michael.albinus@gmx.de>
15736
15737 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
15738 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
15739 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
15740 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
15741 Unify argument lists.
15742 (xd_read_message, Fdbus_register_signal): Reorder and extend event
15743 arguments and hash table keys. Use unique name for service.
15744 (Fdbus_unregister_signal): Remove checks.
15745 (Vdbus_registered_functions_table): Fix doc string.
15746
157472007-12-05 Magnus Henoch <mange@freemail.hu>
15748
15749 * process.c (make_process): Initialize pty_flag to 0.
15750
157512007-12-05 Jason Rumney <jasonr@gnu.org>
15752
15753 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
15754 specified XBMs.
15755
157562007-12-05 Richard Stallman <rms@gnu.org>
15757
15758 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
15759
157602007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15761
15762 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
15763 New variable.
15764 (mac_try_close_socket) [MAC_OSX]: New function.
15765 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
15766 Update cfsockets_for_select. Replace invalid CFRunLoop source.
15767
15768 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
15769 Use mac_try_close_socket.
15770
157712007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15772
15773 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
15774 reloc_base.
15775 (copy_dysymtab): Compute relocation base here.
15776 (rebase_reloc_address) [__ppc64__]: New function.
15777 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
15778 changed.
15779
157802007-12-05 Jason Rumney <jasonr@gnu.org>
15781
15782 * w32proc.c (sys_spawnve): Quote args with wildcards.
15783
157842007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15785
15786 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
15787 __objc_* sections.
15788 (unrelocate) [_LP64]: Set relocation base to address of data segment.
15789
157902007-12-05 Michael Albinus <michael.albinus@gmx.de>
15791
15792 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
15793 Move check for Vdbus_registered_functions_table to
15794 xd_read_queued_messages.
15795 (xd_read_queued_messages): Protect xd_read_message calls by
15796 internal_condition_case_1.
15797
157982007-12-04 Michael Albinus <michael.albinus@gmx.de>
15799
15800 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
15801 Qdbus_system_bus and Qdbus_session_bus, respectively.
15802 (Vdbus_intern_symbols): Remove.
15803 (Vdbus_registered_functions_table): New hash table.
15804 (XD_SYMBOL_INTERN_SYMBOL): Remove.
15805 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
15806 Rewrite in order to manage registered functions by hash table
15807 Vdbus_registered_functions_table.
15808
158092007-12-03 Jan Djärv <jan.h.d@swipnet.se>
15810
15811 * xterm.c: Update URL to Window Manager Specification in comment.
15812
158132007-12-02 Michael Albinus <michael.albinus@gmx.de>
15814
15815 * config.in (HAVE_DBUS): Add.
15816
15817 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
15818 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
15819 (obj): Add $(DBUS_OBJ).
15820 (LIBES): Add $(DBUS_LIBS).
15821 (dbusbind.o): New target.
15822
15823 * dbusbind.c: New file.
15824
15825 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
15826
15827 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
15828 (Qdbus_event): New Lisp symbol.
15829 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
15830 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 15831 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
15832
15833 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
15834
158352007-12-01 Richard Stallman <rms@gnu.org>
15836
15837 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
15838
158392007-11-30 Jason Rumney <jasonr@gnu.org>
15840
15841 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
15842 (w32con_reset_terminal_modes): Clear screen buffer.
15843 (w32_face_attributes): Don't use color indexes that are out of range.
15844 Only reverse the default colors.
15845
15846 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
15847 WINDOWSNT.
15848
15849 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
15850
158512007-11-29 Jason Rumney <jasonr@gnu.org>
15852
15853 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
15854 (w32_face_attributes): Use Vtty_defined_color_alist to determine
15855 if the terminal colors are initialized.
15856 (unspecified_fg, unspecified_bg): Remove unused declarations.
15857
158582007-11-29 Andreas Schwab <schwab@suse.de>
15859
15860 * keyboard.c (apply_modifiers): Fix typo.
15861
158622007-11-29 Richard Stallman <rms@gnu.org>
15863
15864 * keymap.c (Fcurrent_local_map): Doc fix.
15865
158662007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
15867
15868 * s/gnu-kfreebsd.h: New file.
15869
158702007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
15871
15872 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
15873 Don't cast redundantly.
15874
15875 * keyboard.c (KEY_TO_CHAR): New macro.
15876 (parse_modifiers, apply_modifiers): Accept integer arguments.
15877 (read_key_sequence): Use them to unify the "shift->unshift" mapping
15878 for chars and symbol keys.
15879 After doing such remapping, apply function-key-map again.
15880
158812007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
15882
15883 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
15884 compiled anymore.
15885
158862007-11-26 Andreas Schwab <schwab@suse.de>
15887
15888 * process.c (list_processes_1): Fix indentation level of the
15889 command column.
15890
158912007-11-23 Andreas Schwab <schwab@suse.de>
15892
15893 * editfns.c (Fformat): Handle %c specially since it requires the
15894 argument to be of type int.
15895
158962007-11-23 Markus Triska <markus.triska@gmx.at>
15897
15898 * emacs.c (main): Call init_editfns before init_process, since
15899 init_process sets Vprocess_connection_type depending on OS release.
15900
159012007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
15902
15903 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
15904 (find_symbol_value): Use do_symval_forwarding.
15905
15906 * data.c (set_internal): Set the value in the `cons-cell' (for
15907 Buffer_Local_values) not only for frame-local variables.
15908
159092007-11-22 Andreas Schwab <schwab@suse.de>
15910
15911 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
15912 values to sprintf.
15913 * keymap.c (Fsingle_key_description): Likewise.
15914 * print.c (print_object): Likewise.
15915
159162007-11-22 Jan Djärv <jan.h.d@swipnet.se>
15917
15918 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
15919 file for image is nil.
15920
159212007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
15922
15923 * term.c: Include stdarg.h.
15924 (fatal): Implement using varargs.
15925 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
15926
159272007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
15928
15929 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
15930 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
15931 Update call to buffer_slot_type_mismatch.
15932 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
15933 (buffer_slot_type_mismatch): Update.
15934 * buffer.c (buffer_local_types): Remove.
15935 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
15936 (defvar_per_buffer): Set the type in the buffer_objfwd.
15937
159382007-11-21 Jason Rumney <jasonr@gnu.org>
15939
15940 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
15941 CreateFileMapping returns NULL on failure.
15942
159432007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
15944
15945 * search.c (Fset_match_data): Remove the `evaporate' feature.
15946 (unwind_set_match_data): Don't use the `evaporate' feature.
15947
159482007-11-21 Jason Rumney <jasonr@gnu.org>
15949
15950 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
15951
15952 * w32console.c (w32con_write_glyphs): Remove unused variables.
15953
159542007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
15955
15956 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
15957
15958 * s/darwin.h (MULTI_KBOARD): Remove.
15959
15960 * macfns.c (x_create_tip_frame, Fx_create_frame)
15961 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
15962
159632007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
15964
15965 * buffer.c (Fbuffer_local_value): Remove redundant test.
15966 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
15967 than in `current-buffer' to match the comment.
15968 Do the swap using swap_in_global_binding.
15969
15970 * data.c (store_symval_forwarding, set_internal):
15971 * eval.c (specbind): Remove dead code.
15972
15973 * coding.c (detect_coding, Fupdate_coding_systems_internal):
15974 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
15975 Since we do not want to see internal Lisp_*fwd objects here.
15976
159772007-11-18 Jan Djärv <jan.h.d@swipnet.se>
15978
15979 * sysdep.c (init_system_name): Use getaddrinfo if available.
15980
15981 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
15982 (x_scroll_bar_note_movement): start, end, with, height in struct
15983 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
15984
159852007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
15986
15987 * puresize.h (BASE_PURESIZE): Increase to 1190000.
15988
159892007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
15990
15991 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
15992 This undoes Richard's change of 14-Oct-2002.
15993
15994 * alloc.c (allocate_other_vector):
15995 * lisp.h (allocate_other_vector): Remove.
15996
15997 * window.c (struct save_window_data): Move non-lisp data to the end
15998 and make it `int' rather than Lisp_Object.
15999 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
16000 Done wrap/unwrap integer values.
16001 (Fset_window_configuration, compare_window_configurations):
16002 Update use of fields to their new types.
16003
16004 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
16005 Turn integer fields into `int'. Merge x_window_low and x_window_high.
16006 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
16007 (SET_SCROLL_BAR_X_WINDOW): Remove.
16008 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
16009 Access the new x_window field directly.
16010 * xterm.c (x_scroll_bar_create): Use a pseudovector.
16011 Don't wrap/unwrap integers into Lisp_Objects.
16012 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
16013 (x_scroll_bar_report_motion):
16014 Don't wrap/unwrap integers into Lisp_Objects.
16015 (x_term_init): Use SDATA.
16016 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
16017 (x_scroll_bar_set_handle, x_scroll_bar_remove)
16018 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
16019 (x_scroll_bar_report_motion, x_scroll_bar_clear):
16020 * xfns.c (x_set_background_color):
16021 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
16022 Access the new x_window field directly.
16023
16024 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
16025 (allocate_pseudovector): Make non-static.
16026
16027 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
16028 (allocate_pseudovector): Declare.
16029 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
16030
160312007-11-15 Andreas Schwab <schwab@suse.de>
16032
16033 * editfns.c (Fformat): Correctly format EMACS_INT values.
16034 Also take precision into account when formatting an integer.
16035
16036 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
16037
160382007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
16039
16040 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
16041 (syms_of_keyboard): Defsubr it.
16042
16043 * data.c (swap_in_global_binding): Fix longstanding bug where
16044 store_symval_forwarding was not called with the right second argument,
16045 thus causing objfwd-ing from being dropped.
16046
160472007-11-14 Juanma Barranquero <lekktu@gmail.com>
16048
16049 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
16050 (Fx_display_pixel_height, Fx_display_planes)
16051 (Fx_display_color_cells, Fx_server_max_request_size)
16052 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
16053 (Fx_display_visual_class, Fx_display_save_under):
16054 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
16055 (Fx_display_pixel_height, Fx_display_planes)
16056 (Fx_display_color_cells, Fx_server_max_request_size)
16057 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
16058 (Fx_display_mm_height, Fx_display_mm_width)
16059 (Fx_display_backing_store, Fx_display_visual_class)
16060 (Fw32_select_font, Fx_display_save_under):
16061 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
16062 (Fx_display_pixel_height, Fx_display_planes)
16063 (Fx_display_color_cells, Fx_server_max_request_size)
16064 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
16065 (Fx_display_save_under): Fix typos in docstrings.
16066
160672007-11-14 Juanma Barranquero <lekktu@gmail.com>
16068
16069 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
16070 corresponding to deleted entries; they are an implementation detail.
16071 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
16072 Remove variables.
16073 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
16074 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
16075 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
16076 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
16077 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
16078 (Fw32_define_rgb_color, Fw32_load_color_file)
16079 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
16080 Fix typos in docstrings.
16081 (Fx_server_version): Reflow docstring.
16082 (Fw32_shell_execute): Doc fixes.
16083
160842007-11-13 Juanma Barranquero <lekktu@gmail.com>
16085
16086 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
16087 if w32_parse_hot_key returned nil.
16088
160892007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
16090
16091 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
16092
160932007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 16094
aac0c6e3
MR
16095 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
16096
16097 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
16098
16099 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
16100 Remove W32_SCROLL_BAR_CLICK_EVENT.
16101
16102 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
16103 Add MULTIMEDIA_KEY_EVENT.
16104
16105 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
16106 (lispy_multimedia_keys) [WINDOWSNT]: New array.
16107 (make_lispy_event) [WINDOWSNT]: Use it to translate
16108 MULTIMEDIA_KEY_EVENT.
16109
16110 * w32term.h (WM_APPCOMMAND): Define if not already.
16111 (GET_APPCOMMAND_LPARAM): Likewise.
16112
16113 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
16114 WM_APPCOMMAND.
16115
16116 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
16117 (syms_of_w32fns): Export and initialize it.
16118 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
16119
161202007-11-09 Chong Yidong <cyd@stupidchicken.com>
16121
16122 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
16123 twice.
16124
16125 * xdisp.c (handle_face_prop): Fix last change.
16126
161272007-11-09 Richard Stallman <rms@gnu.org>
16128
16129 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
16130 not just for after-strings and before-strings.
16131 Call face_for_overlay_string and pass the overlay to it.
16132 (handle_display_prop): Determine whether property came from an overlay.
16133 Pass OVERLAY arg to handle_single_display_spec.
16134 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
16135 (load_overlay_strings): Fill in it->string_overlays.
16136 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
16137
16138 * xfaces.c (face_for_overlay_string): Function renamed from
16139 face_at_buffer_position_no_overlays, and add arg OVERLAY.
16140
16141 * dispextern.h (struct it): New elt string_overlays.
16142 New elt from_overlay, also in stack.
16143 Rearrange a few elements.
16144 (face_for_overlay_string): Decl renamed from
16145 face_at_buffer_position_no_overlays, and add argument.
16146
161472007-11-09 Richard Stallman <rms@gnu.org>
16148
16149 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
16150 to get the base face for an overlay string.
16151
16152 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
16153
16154 * xfaces.c (face_at_buffer_position_no_overlays): New function.
16155
16156 * xdisp.c (handle_stop): Move some code out of loop.
16157
161582007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16159
16160 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
16161 Fix conversion from Lisp object to ATSUFontID.
16162
161632007-11-09 Jason Rumney <jasonr@gnu.org>
16164
16165 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
16166
161672007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16168
16169 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
16170 Don't assume regions are aligned to page boundary.
16171 (print_load_command_name): Add LC_UUID if defined.
16172
161732007-11-09 Richard Stallman <rms@gnu.org>
16174
16175 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
16176
161772007-11-07 Jason Rumney <jasonr@gnu.org>
16178
16179 * s/windows95.h: Remove.
16180
161812007-11-06 Jan Djärv <jan.h.d@swipnet.se>
16182
16183 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
16184 abort with a message on unhandled store_type values.
16185
161862007-11-01 Jan Djärv <jan.h.d@swipnet.se>
16187
16188 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
16189 Remove HAVE_X11R5 and HAVE_X11R4.
16190
161912007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
16192
16193 * Makefile.in: Remove references to sunfns.c and sunfns.o.
16194
161952007-11-01 Johan Bockgård <bojohan@gnu.org>
16196
16197 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
16198 Don't set s->stippled_p here, since it has already been set by
16199 x_set_glyph_string_gc from x_draw_glyph_string.
16200
162012007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
16202
16203 * sunfns.c: Remove file.
16204
16205 * m/sun386.h:
16206 * m/sun2.h:
16207 * m/sparc.h: Remove Sun windows code.
16208
162092007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
16210
16211 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
16212 (init_keyboard): Set current_kboard's window-system to nil.
16213 (tty_read_avail_input): Typo.
16214 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
16215
162162007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
16217
16218 * s/usg5-4.h:
16219 * s/usg5-3.h:
16220 * s/ptx.h:
16221 * m/is386.h:
16222 * m/ibmps2-aix.h:
16223 * Makefile.in: Remove all mentions of X10.
16224
16225 * dispnew.c (syms_of_display): Don't mention version 10.
16226
162272007-10-28 Juanma Barranquero <lekktu@gmail.com>
16228
16229 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
16230 ($(BLD)/abbrev.$(O)): Remove.
16231
162322007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
16233
16234 Rewrite abbrev.c in Elisp.
16235 * image.c (Qcount): Don't declare as extern.
16236 (syms_of_image): Initialize and staticpro `Qcount'.
16237 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
16238 * emacs.c (main): Don't call syms_of_abbrev.
16239 * Makefile.in (obj): Remove abbrev.o.
16240 (abbrev.o): Remove.
16241 * abbrev.c: Remove.
16242
162432007-10-26 Martin Rudalics <rudalics@gmx.at>
16244
16245 * window.c (window_min_size_2): Don't count header-line.
16246
162472007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
16248
16249 * frame.h (struct frame): Move all bit fields after the first bit
16250 field to take advantage of the available space. Group all the
16251 chars together to reduce wasted space due to padding.
16252
162532007-10-26 Juanma Barranquero <lekktu@gmail.com>
16254
16255 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
16256
16257 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
16258 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
16259 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
16260 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
16261 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
16262 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
16263 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
16264 (last_marked, mark_object_loop_halt): Make static.
16265
16266 * frame.c (syms_of_frame) <delete-frame-functions>:
16267 Fix typo in docstring.
16268
162692007-10-25 Juanma Barranquero <lekktu@gmail.com>
16270
16271 * w32.c (init_environment): Fix tiny memory leak.
16272 (w32_get_resource): Remove unused variable `ok'.
16273
162742007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
16275
16276 Make `window-system' into a keyboard-local variable (rather than
16277 frame-local as done originally by multi-tty).
16278
16279 * keyboard.h (struct kboard): Add Vwindow_system.
16280 * keyboard.c (init_kboard): Set a default for Vwindow_system.
16281 (mark_kboards): Mark Vwindow_system.
16282
16283 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
16284 (init_display): Don't set the obsolete `window-system' frame-param.
16285
16286 * xterm.c (x_term_init):
16287 * w32term.c (w32_create_terminal):
16288 * term.c (init_tty): Set Vwindow_system.
16289 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
16290 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
16291
16292 * xfns.c (Fx_create_frame, x_create_tip_frame):
16293 * w32fns.c (Fx_create_frame, x_create_tip_frame):
16294 * macfns.c (Fx_create_frame):
16295 Don't set the obsolete `window-system' frame-param.
16296
16297 * frame.h (Qwindow_system): Remove.
16298 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
16299 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
16300
163012007-10-24 Richard Stallman <rms@gnu.org>
16302
16303 * frame.c (x_figure_window_size): For fullscreen case,
16304 set USPosition | PPosition without clobbering rest of window_prompting.
16305
16306 * keyboard.c (Fcurrent_idle_time): Doc fix.
16307
16308 * print.c (Fwith_output_to_temp_buffer): Doc fix.
16309
163102007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
16311
16312 * process.c (unwind_request_sigio): Only define if __ultrix__.
16313
16314 * callproc.c (child_setup): Remove spurious *.
16315
16316 * lisp.h (Fget_text_property): Declare.
16317 (have_menus_p): Declare it here rather than in sys-dep header files.
16318 * macterm.h (have_menus_p):
16319 * msdos.h (have_menus_p):
16320 * xterm.h (have_menus_p): Remove.
16321
16322 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
16323 (Fmake_variable_frame_local): Just check the variable's const-ness
16324 rather than checking nil or t.
16325
163262007-10-22 Jason Rumney <jasonr@gnu.org>
16327
16328 * w32fns.c: Include math.h.
16329 (w32_abort): Declaration moved to nt/config.nt.
16330
16331 * s/ms-w32.h (HAVE_STDLIB_H): Define.
16332 (abort): Redefinition moved to nt/config.nt.
16333
16334 * m/windowsnt.h: Remove.
16335
163362007-10-22 Juanma Barranquero <lekktu@gmail.com>
16337
16338 * emacs.c (Fdump_emacs): Fix typo in message.
16339 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
16340 <installation-directory>: Reflow docstring.
16341
163422007-10-22 Juri Linkov <juri@jurta.org>
16343
16344 * minibuf.c: Allow minibuffer default to be a list of default values.
16345 With empty input use the first element of this list as returned default.
16346 (string_to_object)
16347 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
16348 (read_minibuf): If defalt is cons, set histstring to its car.
16349 (Fread_string): If default_value is cons, set val to its car.
16350 (Fread_buffer): If def is cons, use its car.
16351 (Fcompleting_read): If defalt is cons, set val to its car.
16352
163532007-10-21 Michael Albinus <michael.albinus@gmx.de>
16354
16355 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
16356
163572007-10-20 Juanma Barranquero <lekktu@gmail.com>
16358
16359 * doc.c (Fdocumentation): Check for advice in all cases.
16360
163612007-10-19 Chong Yidong <cyd@stupidchicken.com>
16362
16363 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
16364
163652007-10-19 Richard Stallman <rms@gnu.org>
16366
16367 * doc.c (Fdocumentation): Check for and handle an advised function.
16368
163692007-10-19 Juanma Barranquero <lekktu@gmail.com>
16370
16371 * process.c (Fset_process_filter): Doc fix.
16372
163732007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
16374
16375 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
16376 which caused key-translation-map to applied repeatedly (thus breaking
16377 double-mode).
16378
163792007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
16380
16381 * xselect.c (x_own_selection, x_handle_selection_clear)
16382 (x_clear_frame_selections):
16383 * w32menu.c (list_of_panes, list_of_items):
16384 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
16385 * textprop.c (validate_plist, interval_has_all_properties)
16386 (interval_has_some_properties, interval_has_some_properties_list)
16387 (add_properties, text_property_list):
16388 * process.c (Fget_buffer_process, list_processes_1, status_notify):
16389 * minibuf.c (Fassoc_string):
16390 * macselect.c (x_own_selection, x_clear_frame_selections)
16391 (Fx_disown_selection_internal):
16392 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
16393 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
16394
163952007-10-17 Chong Yidong <cyd@stupidchicken.com>
16396
16397 * process.c: Link to libs for calling res_init() if available.
16398 (Fmake_network_process): Call res_init() before getaddrinfo or
16399 gethostbyname, if possible.
16400
164012007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
16402
16403 * lread.c (read1): Set pvectype for char_tables.
16404
16405 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
16406 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
16407 Add type checks.
16408 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
16409
16410 * alloc.c (free_misc): Use XMISCTYPE.
16411 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
16412
164132007-10-17 Glenn Morris <rgm@gnu.org>
16414
16415 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
16416 (syms_of_minibuf): Add Qcompletion_ignore_case.
16417 * dired.c (Qcompletion_ignore_case): Change to external.
16418 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
16419 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
16420 (Fread_file_name): Use it rather than intern'ing.
16421
16422 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
16423 (Fread_coding_system): Ignore case of user input.
16424
164252007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16426
16427 * xdisp.c (handle_display_prop): Ignore display specs after
16428 replacing one when string text is being replaced.
16429 (handle_single_display_spec): Pretend as if characters with display
16430 property haven't been consumed only when buffer text is being replaced.
16431
164322007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
16433
16434 * xfns.c (Fx_create_frame, Fx_display_list):
16435 * window.c (window_fixed_size_p, enlarge_window)
16436 (shrink_window_lowest_first):
16437 * macterm.c (init_font_name_table):
16438 * macfns.c (Fx_create_frame, Fx_display_list):
16439 * lread.c (close_load_descs):
16440 * keyboard.c (read_char_x_menu_prompt):
16441 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
16442 * coding.c (code_convert_region_unwind): Test the type of an object
16443 rather than just !NILP before extracting data from it.
16444
16445 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
16446
16447 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
16448 (XMISCANY): New macro.
16449 (XMISCTYPE): Use it.
16450 (struct Lisp_Misc_Any): New type.
16451 (union Lisp_Misc): Use it.
16452 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
16453 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
16454 (find_symbol_value, set_internal, default_value, Fset_default)
16455 (Fmake_variable_buffer_local, Fmake_local_variable)
16456 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
16457 (Flocal_variable_if_set_p, Fvariable_binding_locus):
16458 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
16459 * alloc.c (allocate_buffer): Set the size and tag.
16460 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
16461 Use XMISCANY.
16462 (die): Follow the GNU convention for error messages.
16463 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
16464 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
16465 tag any more.
16466 (set_buffer_internal_1):
16467 * frame.c (store_frame_param):
16468 * eval.c (specbind):
16469 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
16470
16471 * doc.c (Fsnarf_documentation): Simplify.
16472
164732007-10-14 Juanma Barranquero <lekktu@gmail.com>
16474
16475 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
16476 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
16477
164782007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
16479
16480 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
16481
164822007-10-14 Juanma Barranquero <lekktu@gmail.com>
16483
16484 * eval.c (do_autoload): Don't save autoloads.
16485
16486 * data.c (Ffset): Save autoload of the function being set.
16487
164882007-10-07 John Paul Wallington <jpw@pobox.com>
16489
16490 * xfns.c (x_create_tip_frame): Set the `display-type' frame
16491 parameter before setting up faces.
16492
164932007-10-13 Eli Zaretskii <eliz@gnu.org>
16494
16495 * ccl.c (Fregister_code_conversion_map):
16496 * keyboard.c (append_tool_bar_item): Reformat last change.
16497
16498 * lisp.h (eabs): Rename from `abs'. All callers changed.
16499
165002007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
16501
16502 * buffer.c (add_overlay_mod_hooklist):
16503 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
16504 * fontset.c (make_fontset):
16505 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
16506 (append_tool_bar_item):
16507 * macmenu.c (grow_menu_items):
16508 * w32menu.c (grow_menu_items):
16509 * xmenu.c (grow_menu_items): Use larger_vector.
16510
165112007-10-13 Eli Zaretskii <eliz@gnu.org>
16512
16513 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
16514 selected frame'' on MSDOS).
16515
165162007-10-12 Martin Rudalics <rudalics@gmx.at>
16517
16518 * frame.c (Qexplicit_name): New variable.
16519 (x_report_frame_params): Report it in parameter alist.
16520 (syms_of_frame): Intern and staticpro it.
16521
165222007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
16523
16524 * macfns.c (x_create_tip_frame): Set terminal for frame.
16525
165262007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
16527
16528 * frame.c (Qenvironment): Remove.
16529 (syms_of_frame) <Qenvironment>: Don't initialize.
16530 (Fdelete_frame): Don't treat the `environment' param specially.
16531 * frame.h (Qenvironment): Don't declare.
16532 * callproc.c (set_initial_environment): Don't set unused frame param.
16533
16534 * frame.c (Fframe_with_environment): Remove.
16535 (syms_of_frame) <Sframe_with_environment>: Don't declare.
16536
16537 * lisp.h (Fframe_with_environment): Don't declare.
16538
165392007-10-10 Juanma Barranquero <lekktu@gmail.com>
16540
16541 * indent.c (indent_tabs_mode, last_known_column)
16542 (last_known_column_modified): Make static.
16543 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
16544
165452007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
16546
16547 * puresize.h (BASE_PURESIZE): Increase to 1170000.
16548
165492007-10-09 Jason Rumney <jasonr@gnu.org>
16550
16551 * w32term.c (x_set_window_size): Disable code that attempts to tell
16552 Lisp code about a size change before it actually happens.
16553
165542007-10-09 Richard Stallman <rms@gnu.org>
16555
16556 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
16557 return HANDLED_RETURN.
16558
165592007-10-08 Martin Rudalics <rudalics@gmx.at>
16560
16561 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
16562 when there's an unread command event.
16563
16564 * frame.c (focus_follows_mouse): Move here from frame.el to allow
16565 window autoselection act appropriately when leaving selected frame.
16566 (syms_of_frame): Initialize focus_follows_mouse.
16567 * frame.h (focus_follows_mouse): Extern it.
16568 * macterm.c (XTread_socket): When focus_follows_mouse is nil
16569 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
16570 * msdos.c (dos_rawgetc): Likewise.
16571 * w32term.c (w32_read_socket): Likewise.
16572 * xterm.c (handle_one_xevent): Likewise.
16573 * xdisp.c (syms_of_xdisp): In doc-string of
16574 mouse-autoselect-window mention focus-follows-mouse.
16575
165762007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16577
16578 * macterm.c (mac_load_query_font): Fix missing return value.
16579 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
16580 Add BLOCK_INPUT.
16581
165822007-10-08 Richard Stallman <rms@gnu.org>
16583
16584 * xdisp.c (get_window_cursor_type): Implement documented behavior
16585 for cursor-in-non-selected-windows = t.
16586
165872007-10-08 Jason Rumney <jasonr@gnu.org>
16588
16589 * w32.c (w32_get_resource): Always close registry keys.
16590
165912007-10-08 Jason Rumney <jasonr@gnu.org>
16592
16593 * makefile.w32-in (LIBS): Add COMCTL32.
16594
16595 * w32fns.c (globals_of_w32fns): Init common controls.
16596
165972007-10-08 Richard Stallman <rms@gnu.org>
16598
16599 * image.c (our_memory_buffer): Rename from omfib_buffer.
16600
166012007-10-08 Richard Stallman <rms@gnu.org>
16602
16603 * buffer.c (Foverlays_at): Doc fix.
16604
166052007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
16606
16607 * fns.c (Fplist_put): Preserve uneven tail data.
16608
166092007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
16610
16611 * termhooks.h (enum event_kind): Remove trailing comma.
16612
16613 * frame.h (enum): Remove trailing comma.
16614
166152007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
16616
16617 * w32proc.c (delete_child): Don't terminate threads of zombies.
16618
166192007-10-08 Martin Rudalics <rudalics@gmx.at>
16620
16621 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
16622
16623 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
16624 last-repeatable-command.
16625 (init_kboard): Initialize Vlast_repeatable_command.
16626 (command_loop_1): Set it to real_this_command unless that was
16627 bound to an input event.
16628 (mark_kboards): Mark it.
16629
166302007-10-08 Richard Stallman <rms@gnu.org>
16631
16632 * eval.c (condition-case): Doc fix.
16633
166342007-10-08 Masatake YAMATO <jet@gyve.org>
16635
16636 * xfaces.c (tty_supports_face_attributes_p): Fix code
16637 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
16638 was copied and not edited.
16639
166402007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
16641
16642 Add new `input-decode-map' keymap and use it for terminal
16643 escape sequences.
16644 * keyboard.h (struct kboard): Add Vinput_decode_map.
16645 Remove Vlocal_key_translation_map.
16646 * keyboard.c (read_key_sequence): Add support for input-decode-map.
16647 (init_kboard): Init input-decode-map.
16648 Replace local-key-translation-map back with key-translation-map.
16649 (syms_of_keyboard): Declare input-decode-map.
16650 Remove local-key-translation-map. Update docstrings.
16651 (mark_kboards): Mark Vinput_decode_map.
16652 Don't mark Vlocal_key_translation_map.
16653 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
16654 Replace local-key-translation-map back with key-translation-map.
16655 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
16656 Bind in input-decode-map rather than function-key-map.
16657
16658 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
16659 This was made redundant by the previous introduction of XSETPVECTYPE.
16660
166612007-10-09 Richard Stallman <rms@gnu.org>
16662
16663 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
16664
166652007-09-29 Richard Stallman <rms@gnu.org>
16666
16667 * eval.c (internal_condition_case_2, internal_condition_case_1)
16668 (internal_condition_case): Reenable abort if x_catching_errors ()
16669 to see if that really happens and why.
16670
166712007-10-06 Andreas Schwab <schwab@suse.de>
16672
16673 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
16674
166752007-10-04 Juanma Barranquero <lekktu@gmail.com>
16676
16677 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
16678
166792007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
16680
16681 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
16682
166832007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
16684
16685 * window.h (struct window):
16686 * window.c (struct save_window_data, struct saved_window):
16687 * termhooks.h (struct terminal):
16688 * process.h (struct Lisp_Process):
16689 * frame.h (struct frame):
16690 * buffer.h (struct buffer):
16691 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
16692 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
16693 The size field of (pseudo)vectors is now unsigned.
16694 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
16695
16696 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
16697 Turn `count' into an integer.
16698
16699 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
16700 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
16701 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
16702 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
16703 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
16704
16705 * alloc.c (allocate_pseudovector): New fun.
16706 (ALLOCATE_PSEUDOVECTOR): New macro.
16707 (allocate_window, allocate_terminal, allocate_frame)
16708 (allocate_process): Use it.
16709 (mark_vectorlike): New function.
16710 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
16711 (mark_terminals): Use it.
16712 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
16713 (Fmake_byte_code): Use XSETPVECTYPE.
16714
16715 * frame.c (Fframe_parameters): Minor simplification.
16716
16717 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
16718
16719 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
16720
16721 * buffer.c (Fget_buffer_create, init_buffer_once):
16722 * lread.c (defsubr):
16723 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
16724
16725 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
16726 defined differently in the m/*.h files.
16727 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
16728 (XSETPVECTYPE): New macro.
16729 (XSETPSEUDOVECTOR): Use it.
16730
16731 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
16732 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
16733
16734 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
16735 * lread.c (defvar_per_buffer):
16736 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
16737
16738 * window.c (candidate_window_p): Only consider as visible frames that
16739 are on the same terminal.
16740
16741 * m/ibms390x.h (MARKBIT): Remove unused macro.
16742
167432007-10-01 Juanma Barranquero <lekktu@gmail.com>
16744
16745 * lread.c (Fload): Fix typo in docstring.
16746
167472007-10-01 Michaël Cadilhac <michael@cadilhac.name>
16748
16749 * floatfns.c (Fexpt): Manually check for overflows, so that a power
16750 of a non-zero value can't yield zero.
16751
167522007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
16753
16754 * term.c (term_clear_mouse_face, term_mouse_highlight)
16755 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
16756
16757 * print.c (safe_debug_print): Use XHASH.
16758
16759 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
16760 Lisp elements such as tags.
16761 (XHASH): New macro.
16762 (EQ): Use it.
16763 (SREF, SSET, STRING_COPYIN): Use SDATA.
16764 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
16765
16766 * alloc.c (mark_terminal): Remove left-over declaration.
16767 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
16768 (allocate_vectorlike): Remove type argument. Adjust callers.
16769 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
16770 Only handle the one remaining MEM_TYPE_VECTORLIKE.
16771
16772 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
16773 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
16774 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
16775 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
16776 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
16777 Use them.
16778
16779 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
16780 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
16781 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
16782
167832007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
16784
16785 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
16786 loaded by default.
16787
167882007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
16789
16790 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
16791 on this tty.
16792 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
16793
16794 * term.c (mouse_face_window): Rename from Qmouse_face_window.
16795 Update all users.
16796 (handle_one_term_event): Use Gpm_DrawPointer.
16797 (Fgpm_mouse_start): Rename from Fterm_open_connection.
16798 Signal errors instead of returning nil. Always return nil.
16799 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
16800 Make it a noop if gpm-mouse was not activated.
16801 (syms_of_term): Update names.
16802
168032007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
16804
16805 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
16806 (init_sys_modes): Check that gpm_tty is the current tty.
16807
16808 * alloc.c (allocate_terminal): Set the vector size to only count the
16809 lisp fields. Initialize those to nil.
16810 (mark_object): Don't treat terminals specially.
16811 (mark_terminal): Remove.
16812 (mark_terminals): Use mark_object instead.
16813
16814 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
16815 the GC to the beginning.
16816
16817 * indent.h:
16818 * indent.c: Use EMACS_INT for ints coming from Elisp data.
16819
16820 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
16821
168222007-09-25 Jason Rumney <jasonr@gnu.org>
16823
16824 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
16825
16826 * w32console.c (create_w32cons_output): Remove.
16827
16828 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
16829
16830 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
16831 (reset_sys_modes): Use reset_terminal_modes_hook.
16832
168332007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
16834
16835 * eval.c (do_autoload): Don't output any message.
16836
168372007-09-24 Juri Linkov <juri@jurta.org>
16838
16839 * emacs.c (standard_args): Change priority of "--no-splash"
16840 from 40 to 3. Add "--no-desktop" with the same priority.
16841
168422007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
16843
16844 * alloc.c (gc_sweep): Check cons cell mark bits word by word
16845 and optimize the case where they are all 1.
16846
168472007-09-23 Johannes Weiner <hannes@saeurebad.de>
16848
16849 * lisp.h (abs): Define if not defined.
16850 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
16851 Don't define `abs', since it's defined in lisp.h.
16852
168532007-09-22 Eli Zaretskii <eliz@gnu.org>
16854
16855 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
16856 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
16857 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
16858 (init_tty): Use DEV_TTY instead of "/dev/tty".
16859 [WINDOWSNT]: No need to protect from NAME arg being null.
16860
168612007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
16862
16863 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
16864 up the tty state.
16865
168662007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
16867
16868 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
16869 (gpm_tty): Change its type.
16870 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
16871 (gpm_tty): Change its type and initialize it.
16872 (Fterm_open_connection): Check the frame is indeed a tty.
16873 Use the new gpm_tty.
16874 (Fterm_close_connection): Use the new gpm_tty.
16875 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
16876 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
16877
168782007-09-21 Juanma Barranquero <lekktu@gmail.com>
16879
16880 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
16881 underline_color, to draw strike-through.
16882
168832007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
16884
16885 * lisp.h (allocate_terminal): Declare.
16886
16887 * window.c (candidate_window_p): Consider frames that are being placed
16888 by the user as somewhere between visible and iconified.
16889 (window_loop): Prefer windows on the current frame.
16890 (Fselect_window): Move the use of select-frame to the beginning so we
16891 can just delegate all the work (it'll call us back anyway).
16892
16893 * frame.c (Qdisplay_environment_variable):
16894 * frame.h (Qdisplay_environment_variable): Delete.
16895
16896 * .gdbinit (xbacktrace): Print the arg's address rather than the value
16897 of the first arg, since that value may be a union.
16898
16899 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
16900 parameter rather than Qdisplay_environment_variable. If all else
16901 fails, look for DISPLAY in initial-environment.
16902
169032007-09-21 Glenn Morris <rgm@gnu.org>
16904
16905 * Makefile.in (emacstool): Remove target.
16906 (lisp, shortlisp): Remove termdev.elc.
16907
169082007-09-21 Markus Triska <markus.triska@gmx.at>
16909
16910 * xterm.c (x_delete_display): Compile session management conditionally.
16911
169122007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
16913
16914 * callproc.c (getenv_internal_1): New function.
16915 (getenv_internal): Use it.
16916 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
16917
16918 * terminal.c (get_terminal): Don't accept ints to represent terminals.
16919 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
16920 (Fset_terminal_parameter): Work with dead terminals as well.
16921 (Fmodify_terminal_parameters): Remove.
16922
16923 * terminal.c (get_terminal): Handle terminals.
16924 Make sure the terminal returned is live.
16925 (create_terminal): Use allocate_terminal.
16926 (mark_terminals): Move to alloc.c.
16927 (delete_terminal): Use terminal->name as liveness status.
16928 NULL out fields after freeing their contents.
16929 Don't deallocate the object.
16930 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
16931 rather than an int.
16932 (Fterminal_live_p): Accept non-integer arguments.
16933 (Fterminal_list): Return terminal objects rather than an ints.
16934
16935 * alloc.c (enum mem_type): New member for `terminal' objects.
16936 (allocate_terminal): New function.
16937 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
16938 Handle terminals.
16939 (mark_terminal): New fun.
16940 (mark_terminals): Move from terminal.c.
16941
16942 * term.c (get_tty_terminal): Don't treat output_initial specially.
16943 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
16944 (delete_tty): Use terminal->name as liveness status.
16945
16946 * termhooks.h (struct terminal): Make it into a pseudovector.
16947 Remove `deleted' replaced by checking `name's nullness.
16948
16949 * print.c (print_object): Handle terminals.
16950
16951 * lisp.h (enum pvec_type): New `terminal' pseudovector.
16952 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
16953
16954 * frame.c (make_terminal_frame):
16955 * keyboard.c (tty_read_avail_input):
16956 * w32term.c (x_delete_terminal):
16957 * xfns.c (Fx_create_frame, x_create_tip_frame):
16958 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
16959
169602007-09-20 Glenn Morris <rgm@gnu.org>
16961
16962 * process.c (Fmake_network_process): Doc fix.
16963
169642007-09-19 Jason Rumney <jasonr@gnu.org>
16965
16966 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
16967
169682007-09-19 Michaël Cadilhac <michael@cadilhac.name>
16969
16970 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
16971 Fix a C warning regarding variable constness.
16972
16973 * xterm.c (handle_one_xevent): Fix a C warning.
16974
169752007-09-18 Jason Rumney <jasonr@gnu.org>
16976
16977 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
16978
169792007-09-17 Jan Djärv <jan.h.d@swipnet.se>
16980
16981 * gtkutil.c (gdpy_def): New variable.
16982 (xg_initialize): Initialize gdpy_def.
16983 (xg_display_close): If no other display exists, set gdpy_def to a
16984 new connection.
16985
169862007-09-16 Jan Djärv <jan.h.d@swipnet.se>
16987
16988 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
16989 when we have no file name for the icon.
16990 (xg_tool_bar_expose_callback): Remove.
16991 (xg_create_tool_bar): Don't connect expose signal to
16992 xg_tool_bar_expose_callback.
16993 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
16994
169952007-09-16 Andreas Schwab <schwab@suse.de>
16996
16997 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
16998 values instead of zapping them.
16999
170002007-09-14 Glenn Morris <rgm@gnu.org>
17001
17002 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
17003 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
17004 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
17005 scope and rename to omfib_buffer for clarity.
17006 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
17007
170082007-09-14 Kenichi Handa <handa@m17n.org>
17009
17010 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
17011
170122007-09-13 Jason Rumney <jasonr@gnu.org>
17013
17014 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
17015
17016 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
17017
17018 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
17019 (mac_term_init): Call here instead, passing rif.
17020
170212007-09-13 Glenn Morris <rgm@gnu.org>
17022
17023 * s/hpux.h: No longer define `static' as nothing.
17024
170252007-09-13 Johan Bockgård <bojohan@gnu.org>
17026
17027 * callint.c (Fcall_interactively): Remove unused var `fun'.
17028
170292007-09-12 Romain Francoise <romain@orebokech.com>
17030
17031 * window.c (prefer_window_split_horizontally, display_buffer):
17032 Revert 2007-09-08 change.
17033
170342007-09-12 Glenn Morris <rgm@gnu.org>
17035
17036 * alloca.c: Remove file.
17037 * Makefile.in (alloca): Do not undef.
17038 (allocaobj, alloca.o): Remove.
17039 (otherobj): Remove allocaobj.
17040 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
17041 * regex.c (C_ALLOCA): Remove all references and code that was only
17042 used when this was defined.
17043 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
17044 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
17045 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
17046
17047 * Makefile.in (SOURCES, unlock, relock): Delete.
17048
17049 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
17050 (menu_grab_callback): All uses changed.
17051
17052 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
17053 (x_reply_selection_request): All uses changed.
17054
170552007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
17056
17057 * lread.c (load_warn_old_style_backquotes): Change message to look
17058 better when it appears in the middle of byte-compiler messages.
17059
170602007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
17061
17062 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
17063
17064 * xterm.c (x_create_terminal): Add comment.
17065
17066 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
17067
170682007-09-10 Richard Stallman <rms@gnu.org>
17069
17070 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
17071
170722007-09-10 Michaël Cadilhac <michael@cadilhac.name>
17073
17074 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
17075 (DEFUN): Document `intspec', use it instead of `prompt'.
17076
17077 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
17078
17079 * data.c (Finteractive_form): If the interactive specification starts
17080 with a `(', use it as a Lisp form.
17081
17082 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
17083 name and file modes.
17084
17085 * callint.c (Fcall_interactively): Comment fixes.
17086
170872007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
17088
17089 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
17090 and compiled functions.
17091
170922007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
17093
17094 * window.c (prefer_window_split_horizontally): New variable.
17095 (display_buffer): Consider splitting window horizontally depending
17096 on prefer_window_split_horizontally.
17097
170982007-09-08 Eli Zaretskii <eliz@gnu.org>
17099
17100 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
17101
171022007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
17103
17104 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
17105
17106 * frame.c (x_set_frame_parameters): Check number is positive before
17107 using XFASTINT.
17108
17109 * window.c (freeze_window_start): Don't presume selected_window holds
17110 a window object.
17111 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
17112
171132007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
17114
17115 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
17116
171172007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
17118
17119 * window.c (Vsplit_window_preferred_function): New var.
17120 (Fdisplay_buffer): Use it.
17121 (syms_of_window): Export, and initialize it.
17122
171232007-09-06 Pixel <pixel@mandriva.com> (tiny change)
17124
17125 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
17126
171272007-09-06 Glenn Morris <rgm@gnu.org>
17128
17129 * gtkutil.c (menu_grab_callback) <cnt>:
17130 * xselect.c (x_reply_selection_request) <cnt>: Move static
17131 variable to file scope.
17132
171332007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
17134
17135 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
17136 consistent values of selected_frame and selected_window.
17137
171382007-09-04 Jason Rumney <jasonr@gnu.org>
17139
17140 * w32console.c (initialize_w32_display): Zero unused hooks.
17141
171422007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
17143
17144 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
17145 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
17146
171472007-09-04 Jason Rumney <jasonr@gnu.org>
17148
17149 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
17150 in w32console.c. Set up input. Remove XXX comments that have been
17151 confirmed as correct.
17152
17153 * s/ms-w32.h (MULTI_KBOARD): Define.
17154
17155 * w32console.c (one_and_only_w32cons): Remove.
17156 (initialize_w32_display): Take terminal argument.
17157
17158 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
17159 initialize_w32_display.
17160 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
17161
17162 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
17163
17164 * keyboard.c (discard_mouse_events): Discard it.
17165 (make_lispy_event): Translate it to a lisp event.
17166 (lispy_wheel_names): Add wheel-left and right events.
17167 (syms_of_keyboard): Enlarge wheel_syms.
17168
17169 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
17170 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
17171
17172 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
17173
17174 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
17175 from WM_MOUSEHWHEEL.
17176 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
17177
17178 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
17179 terminal.
17180
17181 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
17182 keyboard for the terminal.
17183
171842007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
17185
17186 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
17187 (Vresume_tty_hook): Rename from Vresume_tty_functions.
17188 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
17189 and resume-tty-function to resume-tty-hook.
17190 (Fsuspend_tty, Fresume_tty): Use new names.
17191
171922007-09-02 Jan Djärv <jan.h.d@swipnet.se>
17193
17194 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
17195 if it starts with "n:".
17196
171972007-08-31 Jan Djärv <jan.h.d@swipnet.se>
17198
17199 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
17200
172012007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
17202
17203 * frame.h:
17204 * frame.c (Qterm_environment_variable): Remove.
17205 (syms_of_frame): Don't init and staticpro it.
17206
17207 * callproc.c (getenv_internal): Remove special case for $TERM.
17208
17209 * callproc.c (Vinitial_environment): New variable.
17210 (set_initial_environment): Initialize it.
17211 (syms_of_callproc): Declare it.
17212 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
17213 TERM under which a process runs is never related to the TERM in which
17214 Emacs is running.
17215
172162007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
17217
17218 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
17219 * s/darwin.h: ... do it here.
17220
172212007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
17222
17223 * lisp.h (set_initial_environment): Rename from set_global_environment.
17224
17225 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
17226 removed by mistake on the multi-tty branch.
17227
17228 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
17229 (Fmodify_frame_parameters): Return a value.
17230
17231 * image.c (png_load): Comment-out var only used in commented-out code.
17232
17233 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
17234 before passing it to mark_object.
17235
17236 * xfaces.c (internal_resolve_face_name): Return a value.
17237 (internal_resolve_face_name, resolve_face_name_error): Comment out.
17238
17239 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
17240 (x_icon): Comment-out var only used in commented-out code.
17241
172422007-08-29 Romain Francoise <romain@orebokech.com>
17243
17244 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
17245 QUIT hasn't been provided.
17246
172472007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
17248
17249 * callproc.c (child_setup, getenv_internal): Use the
17250 display-environment-variable and term-environment-variable frame params.
17251 (set_initial_environment): Initialise Vprocess_environment.
17252
17253 * config.in: Disable multi-keyboard support on a mac.
17254
17255 * frame.c (Qterm_environment_variable)
17256 (Qdisplay_environment_variable): New variables.
17257 (syms_of_frame): Intern and staticpro them.
17258 (Fmake_terminal_frame): Disable output method test.
17259
17260 * frame.h: Declare them here.
17261
17262 * macfns.c (x_set_mouse_color): Get rif from the frame.
17263 (x_set_tool_bar_lines): Don't use updating_frame.
17264 (mac_window): Add 2 new parameters for consistency with other systems.
17265 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
17266 frame parameters following what is done in X11 and w32. Don't use
17267 FRAME_MAC_DISPLAY_INFO.
17268 (Fx_open_connection, start_hourglass): Remove window-system check.
17269 (x_create_tip_frame): Get the keyboard from the terminal.
17270
17271 * macmenu.c: Reorder includes.
17272 (Fx_popup_menu): Use terminal specific mouse_position_hook.
17273
17274 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
17275 terminal parameter.
17276 (x_clear_frame): Add a frame parameter.
17277 (note_mouse_movement): Get rif from the frame.
17278 (mac_term_init): Initialize the terminal.
17279 (mac_initialize): Make static and move terminal initialization ...
17280 (mac_create_terminal): ... to this new function.
17281
17282 * macterm.h (struct mac_display_info): Add terminal.
17283 (mac_initialize): Delete declaration.
17284
17285 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
17286
17287 * sysdep.c: Comment out text after #endif.
17288
17289 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
17290 is defined. Better initialize ttys in windows. Use terminal
17291 specific mouse_position_hook.
17292
17293 * termhooks.h (union display_info): Add mac_display_info.
17294
17295 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
17296 Set the default minibuffer frame, window_system and the rest of the
17297 frame parameters following what is done in X11.
17298
17299 * w32term.c (w32_initialize): Make static.
17300
17301 * xselect.c (x_handle_selection_clear): Only access
17302 terminal->kboard when MULTI_KBOARD is defined.
17303
17304 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
17305 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
17306
173072007-08-29 Jason Rumney <jasonr@gnu.org>
17308
17309 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
17310 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
17311
17312 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
17313 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
17314
17315 * keyboard.c (restore_kboard_configuration): Only define when
17316 MULTI_KBOARD defined.
17317
17318 * makefile.w32-in: Update dependancies from Makefile.in.
17319 (OBJ1): Add terminal.$(O)
17320
17321 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
17322 Don't define function body.
17323 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
17324
17325 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
17326
17327 * w32.c (request_sigio, unrequest_sigio): Remove.
17328
17329 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
17330 (w32con_clear_frame, w32con_clear_end_of_line)
17331 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
17332 (w32con_delete_glyphs, w32con_set_terminal_window)
17333 (scroll_line, w32_sys_ring_bell): Add frame arg.
17334 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
17335 Add terminal arg.
17336 (PICK_FRAME): Remove.
17337 (w32con_write_glyphs): Use frame specific terminal coding.
17338 (one_and_only_w32cons): New global variable.
17339 (initialize_w32_display): Use it for storing hooks.
17340 (create_w32cons_output): New function.
17341
17342 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
17343 arg a frame.
17344
17345 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
17346 Set window_system.
17347 (x_set_tool_bar_lines): Don't use updating_frame.
17348 (Fx_create_frame): Set terminal and ref count.
17349 (Fx_open_connection): Remove window-system check.
17350
17351 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
17352
17353 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
17354 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
17355 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
17356 Add frame arg.
17357 (x_delete_terminal, w32_create_terminal): New functions.
17358 (w32_term_init): Create a terminal.
17359 (w32_initialize): Move terminal specific initialization to
17360 w32_create_terminal.
17361
17362 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
17363 (w32_clear_rect, w32_clear_area): Use background from frame.
17364 (w32_display_info): Add terminal.
17365 (w32_sys_ring_bell, x_delete_display): Declare here.
17366
17367 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
17368
17369 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
17370
173712007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
17372
17373 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
17374 Fix get_named_tty calls for the controlling tty.
17375
173762007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
17377
17378 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
17379
173802007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
17381
17382 * term.c (tty_insert_glyphs): Add missing first parameter.
17383
173842007-08-29 Károly Lőrentey <karoly@lorentey.hu>
17385
17386 * buffer.c (Fbuffer_list, Fbury_buffer):
17387 Take frame->buried_buffer_list into account.
17388
17389 * cm.c (current_tty): New variable, for cmputc().
17390 (cmputc): Use it.
17391 (cmcheckmagic): Add tty parameter, look up terminal streams there.
17392 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
17393 (cmgoto): Add tty parameter. Pass it on to calccost().
17394 Use emacs_tputs() instead of tputs().
17395
17396 * cm.h (emacs_tputs): New macro to set current_tty, and then call
17397 tputs().
17398 (current_tty): New variable, for cmputc().
17399 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
17400
17401 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
17402 (internal_condition_case, internal_condition_case_1)
17403 (internal_condition_case_2): Don't abort when x_catching_errors.
17404
17405 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
17406 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
17407 prevent crashes caused by bogus longjmps in read_char.
17408
17409 * keymap.h (Fset_keymap_parent): Add EXFUN.
17410
17411 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
17412 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
17413 Remove redundant definition.
17414
17415 * macfns.c (x_set_mouse_color, x_make_gc):
17416 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
17417
17418 * w32term.c (x_free_frame_resources):
17419 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
17420 (w32_initialize): Use the accessor macros for terminal characteristics.
17421
17422 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
17423 Use the accessor macros for terminal characteristics.
17424 * msdos.c (internal_terminal_init): Use the accessor macros for
17425 terminal characteristics.
17426 (ScreenVisualBell, internal_terminal_init):
17427 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
17428
17429 * termopts.h (no_redraw_on_reenter): Declare.
17430
17431 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
17432 (mark_terminals, mark_ttys): Declare.
17433 (Fgarbage_collect): Call them.
17434 (mark_object): Mark buried_buffer_list.
17435
17436 * prefix-args.c: Include stdlib.h for exit.
17437
17438 * syssignal.h: Add comment.
17439
17440 * indent.c: Include stdio.h.
17441
17442 * window.h (Vinitial_window_system): Declare.
17443 (Vwindow_system): Delete declaration.
17444
17445 * fontset.c (Finternal_char_font): Use FRAME_RIF.
17446
17447 * image.c (lookup_image): Don't initialize `c' until the xasserts
17448 have been run.
17449
17450 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
17451 FRAME_FOREGROUND_PIXEL.
17452
17453 * print.c (print_preprocess): Don't lose print_depth levels while
17454 iterating.
17455
17456 * widget.c (update_from_various_frame_slots):
17457 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
17458
17459 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
17460 frames.
17461 (window_internal_height): Remove bogus make_number call.
17462 (init_window_once): Call make_terminal_frame with two zero parameters.
17463
17464 * fileio.c (Fread_file_name): Update comment.
17465
17466 * callint.c (Fcall_interactively):
17467 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
17468 Make sure it is correctly unwound.
17469
17470 * xsmfns.c (x_session_close): New function.
17471
17472 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
17473 Delete declarations.
17474
17475 * xterm.h: Remove declaration for x_fully_uncatch_errors.
17476 (x_output): Remove background_pixel and foreground_pixel fields.
17477 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
17478 (x_delete_device, x_session_close): Declare.
17479
17480 * lread.c: Include setjmp.h. Update declaration of `read_char'.
17481 (read_filtered_event): Call `read_char' with a local
17482 `wrong_kboard_jmpbuf'.
17483
17484 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
17485 Don't call single_kboard_state. Use FRAME_RIF.
17486
17487 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
17488 systems.
17489
17490 * lisp.h (set_process_environment): Rename to `set_global_environment'.
17491 (Fframe_with_environment, Fset_input_meta_mode)
17492 (Fset_quit_char): EXFUN.
17493 (x_create_device, tty_output, terminal, tty_display_info): Declare.
17494 (init_sys_modes, reset_sys_modes): Update prototypes.
17495 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
17496
17497 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
17498 Vlocal_key_translation_map, and Vkeyboard_translate_table.
17499 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
17500 Delete declarations.
17501 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
17502 (temporarily_switch_to_single_kboard, tty_read_avail_input):
17503 New declarations.
17504
17505 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
17506 already does that during init_display(). Call syms_of_keymap
17507 before syms_of_keyboard. Call `syms_of_terminal'.
17508 Call set_initial_environment, not set_process_environment.
17509 (shut_down_emacs): Call reset_all_sys_modes() instead of
17510 reset_sys_modes().
17511
17512 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
17513 (internal_resolve_face_name, resolve_face_name_error): New functions.
17514 (resolve_face_name): Protect against loops and errors thrown by Fget.
17515 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
17516 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
17517
17518 * scroll.c: Replace CURTTY() with local variables throughout the
17519 file (where applicable).
17520 (calculate_scrolling, calculate_direct_scrolling)
17521 (scrolling_1, scroll_cost): Use the accessor macros for terminal
17522 characteristics.
17523
17524 * keymap.c (Vfunction_key_map): Remove.
17525 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
17526 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
17527 (Vkey_translation_map): Remove.
17528 (syms_of_keymap): Remove DEFVAR for key-translation-map.
17529 (Fdescribe_buffer_bindings)
17530 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
17531 Update for terminal-local key-translation-map.
17532
17533 * Makefile.in (callproc.o): Update dependencies.
17534 (lisp, shortlisp): Add termdev.elc.
17535 (obj): Add terminal.o.
17536 (terminal.o): Add dependencies.
17537 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
17538 (data.o, fns.o): Add termhooks.h dependency.
17539 (SOME_MACHINE_LISP): Add dnd.elc.
17540 (minibuf.o): Fix typo.
17541 Update dependencies.
17542
17543 * data.c (do_symval_forwarding, store_symval_forwarding)
17544 (find_symbol_value): Use the selected frame's keyboard, not
17545 current_kboard.
17546
17547 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
17548 Vwindow_system.
17549
17550 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
17551 Fmenu_bar_open.
17552 (syms_of_xmenu): Update defsubr.
17553 (mouse_position_for_popup, Fx_popup_menu)
17554 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
17555 (set_frame_menubar, free_frame_menubar)
b97439ce 17556 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
17557 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
17558 an X frame.
17559
17560 * xselect.c (x_own_selection): Abort if not an X frame.
17561 (some_frame_on_display): Check if it is an X frame.
17562 (x_handle_selection_clear): Deal with MULTI_KBOARD.
17563
17564 * coding.c: Include frame.h and termhooks.h.
17565 (terminal_coding, keyboard_coding): Delete.
17566 (Fset_terminal_coding_system_internal)
17567 (Fset_keyboard_coding_system_internal)
17568 (Fkeyboard_coding_system)
17569 (Fterminal_coding_system): Add a terminal parameter.
17570 Get terminal_coding from the terminal.
17571 (init_coding_once): Don't call setup_coding_system here.
17572
17573 * dispextern.h (set_scroll_region, turn_off_insert)
17574 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
17575 (tty_clear_end_of_line, tty_setup_colors)
17576 (delete_tty, updating_frame)
17577 (produce_special_glyphs, produce_glyphs, write_glyphs)
17578 (insert_glyphs): Remove.
17579 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
17580 (tty_turn_off_highlight, get_tty_size): Add declaration.
17581 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
17582
17583 * frame.h (enum output_method): Add output_initial.
17584 (struct x_output): Delete.
17585 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
17586 Access foreground_pixel and background_pixel directly from the frame.
17587 (tty_display): Delete.
17588 (struct frame): Add buried_buffer_list, foreground_pixel,
17589 background_pixel and terminal. Delete kboard.
17590 (union output_data): Add tty.
17591 (FRAME_KBOARD): Get the kboard from the terminal.
17592 (FRAME_INITIAL_P): New macro.
17593 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
17594 (Qterm_environment_variable, Qdisplay_environment_variable)
17595 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
17596 New declarations.
17597
17598 * termchar.h (tty_output, tty_display_info): New structures.
17599 (tty_list): Declare.
17600 (FRAME_TTY, CURTTY): New macros.
17601 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
17602 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
17603 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
17604 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
17605
17606 * callproc.c: Include frame.h and termhooks.h, for terminal
17607 parameters.
17608 (add_env): New function.
17609 (child_setup): Use it.
17610 (child_setup, getenv_internal): Handle the new Vprocess_environment.
17611 (getenv_internal): Fix get_terminal_param call.
17612 (Fgetenv_internal, egetenv): Update doc.
17613 (syms_of_callproc): Initialize Vprocess_environment to nil.
17614 Register and initialize them. Remove obsolete defvars. Update doc
17615 strings.
17616 (child_setup): Handle Vlocal_environment_variables.
17617 (getenv_internal): Add terminal parameter.
17618 Handle Vlocal_environment_variables.
17619 (Fgetenv_internal): Add terminal parameter.
17620 (child_setup, getenv_internal, Fgetenv_internal): Store the local
17621 environment in a frame (not terminal) parameter. Update doc strings.
17622 (set_initial_environment): Rename from set_global_environment.
17623 Store Emacs environment in initial frame parameter.
17624
17625 * xdisp.c (redisplay_internal): Update references to
17626 `previous_terminal_frame'.
17627 (display_mode_line, Fformat_mode_line): Replace calls to
17628 `push_frame_kboard' with `push_kboard'.
17629 (get_glyph_string_clip_rects): Add extra parentheses and
17630 braces to prevent compiler warnings.
17631 (calc_pixel_width_or_height): Add xassert to check that the
17632 frame is alive. Don't call `lookup_image' on a termcap frame.
17633 (message2_nolog, message3_nolog, redisplay_internal)
17634 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
17635 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
17636 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
17637 (Fx_display_pixel_width, Fx_display_pixel_height)
17638 (Fx_display_planes, Fx_display_color_cells)
17639 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
17640 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
17641 (Fx_display_backing_store, Fx_display_visual_class)
17642 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
17643 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
17644
17645 * xfns.c (x_set_foreground_color x_set_background_color)
17646 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
17647 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
17648 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
17649 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
17650 terminal that is being deleted.
17651 (Fx_create_frame): Use `store_frame_param' to set `window-system'
17652 frame parameter, and make sure it overrides any user-supplied setting.
17653 (Fx_close_connection, Fx_synchronize): Unify argument names with
17654 the rest of the DEFUNs.
17655
17656 * dispnew.c (Fsend_string_to_terminal): Update call to
17657 `get_tty_terminal'.
17658 (Fredraw_frame, Fsend_string_to_terminal)
17659 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
17660 FRAME_TERMCAP_P and FRAME_TTY.
17661 (window_change_signal): Don't believe width/height values that are
17662 impossibly small.
17663 (Vinitial_window_system): Rename from Vwindow_system.
17664 (termscript, Wcm, rif): Delete.
17665
17666 * termhooks.h (struct terminal): New struct containing the
17667 previously global text display hooks and new members NAME,
17668 DELETED and PARAM_ALIST.
17669 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
17670 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
17671 (FRAME_RIF): New macros.
17672 (get_terminal_param, get_device): New declarations.
17673 (termscript): Delete declaration.
17674
17675 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
17676 (XTflash, x_free_frame_resources, x_scroll_bar_create)
17677 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
17678 FRAME_FOREGROUND_PIXEL.
17679 (x_fully_uncatch_errors): Disable definition.
17680 (x_scroll_bar_expose): Fix reference to foreground pixel.
17681 (XTread_socket): Disable loop on all X displays.
17682 (x_delete_terminal): Don't set terminal->deleted and let
17683 delete_terminal delete the frames on the terminal.
17684 (x_delete_display): Doc update to reflect changes in
17685 delete_terminal.
17686 (x_display_info) <terminal>: Move member earlier in the struct.
17687 (deleting_tty): Remove old variable.
17688 (Fsuspend_tty): Call clear_tty_hooks.
17689 (Fresume_tty, init_tty): Call set_tty_hooks.
17690 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
17691 errors on X frames.
17692 (x_catch_errors_unwind): Abort if x_error_message is NULL.
17693 (handle_one_xevent): Initialize `f' to NULL.
17694 (x_delete_terminal, x_create_terminal): New functions.
17695 (XTset_terminal_modes, XTreset_terminal_modes)
17696 (XTread_socket, x_connection_closed, x_term_init)
17697 (x_term_init, x_delete_display): Add terminal parameter.
17698 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
17699 X connections.
17700
17701 * frame.c: Include termchar.h.
17702 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
17703 (Qwindow_system, Qenvironment, Qterm_environment_variable)
17704 (Qdisplay_environment_variable): New vars.
17705 (Fframep): Deal with output_initial.
17706 (Fframe-live-p): Doc fix.
17707 (Fwindow-system): New function.
17708 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
17709 (make_terminal_frame): Don't create frames on a terminal that is
17710 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
17711 (store_frame_param): Check for found_for_frame before calling XFRAME.
17712 (Fmake_terminal_frame): Handle NULL tty names correctly.
17713 (syms_of_frame): Enhance doc string of `default-frame-alist'.
17714 (Fdelete_frame): Remove unused variable `count'. Don't allow other
17715 frames to refer to a deleted frame in their 'environment parameter.
17716 (Fframe_with_environment): New function.
17717 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
17718 (get_future_frame_param): New function.
17719 (Fmake_terminal_frame): Use it.
17720 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
17721
17722 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
17723 * sysdep.c (reset_sys_modes): Update for renames.
17724
17725 * keyboard.c (tty_read_avail_input): New function.
17726 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
17727 (syms_of_keyboard): Defsubr them.
17728 (Fset_input_meta_mode, Fset_quit_char): New functions.
17729 (Fset_input_mode): Split to above functions.
17730 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
17731 parameter. Use it in call to `read_char'.
17732 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
17733 Set wrong_kboard_jmpbuf correctly in recursive calls.
17734 Use current_kboard to access Vkeyboard_translate_table.
17735 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
17736 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
17737 Update longjmp invocations. Remember the original current_kboard,
17738 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
17739 changes it. Comment out unnecessary calls to
17740 `record_single_kboard_state' and `any_kboard_state'.
17741 Update recursive calls.
17742 (wrong_kboard_jmpbuf): Remove global variable.
17743 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
17744 Handle deleted interrupted_kboards correctly; that is a legal
17745 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
17746 and read_char calls. Abort if interrupted_kboard died in read_char.
17747 (any_kboard_state, single_kboard_state)
17748 (push_frame_kboard): Remove function.
17749 (pop_kboard): Switch out of single_kboard mode if the kboard has
17750 been deleted. Remove unused variable. Help debugging by not
17751 changing current_kboard unnecessarily. Set current_kboard to the
17752 kboard of the selected frame when the stored kboard object has
17753 been deleted before pop_kboard.
17754 (temporarily_switch_to_single_kboard): Change first parameter to a
17755 frame pointer. Throw an error when caller wants to change kboards
17756 while in single_kboard mode. Don't push_kboard if we weren't in
17757 single kboard state. Don't pop_kboard if we popped into any
17758 kboard state.
17759 (restore_kboard_configuration): Abort if pop_kboard changed the
17760 kboard in single_kboard mode. Call pop_kboard only after setting
17761 up single_kboard mode.
17762 (Frecursive_edit): Switch to single_kboard mode only in nested
17763 command loops.
17764 (cmd_error, command_loop, command_loop_1, timer_check):
17765 Comment out unnecessary call to `any_kboard_state' and
17766 `record_single_kboard_state'.
17767 (delete_kboard): Exit single_kboard mode if we have just deleted
17768 that kboard. Use FRAME_KBOARD.
17769 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
17770 `fatal_error_signal'.
17771 (record_single_kboard_state): Don't push_kboard if we weren't in
17772 single kboard state. Don't pop_kboard if we popped into any
17773 kboard state.
17774 (push_frame_kboard): Rename to push_kboard.
17775 (kbd_buffer_get_event): Use FRAME_TERMINAL.
17776 (read_avail_input): Read input from all terminals.
17777 (mark_kboards): Also mark Vkeyboard_translate_table.
17778 (kbd_buffer_store_event_hold): Simplify condition.
17779 (read_key_sequence): Reinitialize fkey and keytran at each replay.
17780 (Vkeyboard_translate_table): Move to struct kboard.
17781 (init_kboard): Initialize Vkeyboard_translate_table.
17782 (syms_of_keyboard): Use DEFVAR_KBOARD to define
17783 Vkeyboard_translate_table. Update doc strings. Update docs of
17784 local-function-key-map and function-key-map.
17785
17786 * terminal.c: New file.
17787
17788 * term.c: Include errno.h.
17789 (Vring_bell_function, device_list, initial_device)
17790 (next_device_id, ring_bell, update_begin, update_end)
17791 (set_terminal_window, cursor_to, raw_cursor_to)
17792 (clear_to_end, clear_frame, clear_end_of_line)
17793 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
17794 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
17795 (syms_of_term): Move their initialization to terminal.c.
17796 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
17797 (Ftty_display_color_cells)
17798 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
17799 (clear_tty_hooks, set_tty_hooks)
17800 (init_tty, maybe_fatal): New functions.
17801 (Ftty_type): Return nil if terminal is not on a tty instead of
17802 throwing an error. Doc update.
17803 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
17804 Doc update. Initialize new subrs and variables.
17805 (delete_tty): Use terminal->deleted.
17806 (tty_set_terminal_modes): Rename from set_terminal_modes.
17807 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
17808 (set_scroll_region): Rename to `tty_set_scroll_region'.
17809 (turn_on_insert): Rename to `tty_turn_on_insert'.
17810 (turn_off_insert): Rename to `tty_turn_off_insert'.
17811 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
17812 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
17813 (toggle_highligh): Rename to `tty_toggle_highlight'.
17814 (background_highlight): Rename to `tty_background_highlight'.
17815 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
17816 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
17817 (tty_set_scroll_region, tty_background_highlight)
17818 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
17819 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
17820 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
17821 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
17822 Add static modifier.
17823 (tty_reset_terminal_modes, tty_set_terminal_window)
17824 (tty_set_scroll_region, tty_background_highlight)
17825 (tty_highlight_if_desired, tty_cursor_to)
17826 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
17827 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
17828 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
17829 renames.
17830
178312007-08-28 Jan Djärv <jan.h.d@swipnet.se>
17832
17833 * keyboard.c: Qrtl is new.
17834 (parse_tool_bar_item): Handle :rtl keyword.
17835 (syms_of_keyboard): Intern :rtl keyword.
17836
17837 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
17838
17839 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
17840 so no Lisp code is executed.
17841 (file_for_image, find_rtl_image): New functions.
17842 (xg_get_image_for_pixmap): Use file_for_image.
17843 (update_frame_tool_bar): If direction is RTL, use RTL image if
17844 defined. Use Gtk stock images if defined.
17845
178462007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17847
17848 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
17849 for nonexistent or zero-width glyph in composition glyph.
17850
178512007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
17852
17853 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
17854
17855 * xdisp.c (Finvisible_p): New function.
17856 (syms_of_xdisp): defsubr it.
17857
178582007-08-24 Juanma Barranquero <lekktu@gmail.com>
17859
17860 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
17861 Doc fixes.
17862
178632007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17864
17865 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
17866
178672007-08-24 Martin Rudalics <rudalics@gmx.at>
17868
17869 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
17870 whether decoding has modified buffer contents.
17871
178722007-08-24 Jason Rumney <jasonr@gnu.org>
17873
17874 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
17875 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
17876 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
17877 (init_svg_functions) [HAVE_NTGUI]: New function.
17878 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
17879 (svg_load_image): Use them.
17880 (svg_load_image) [HAVE_NTGUI]: Implement background.
17881
178822007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17883
17884 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
17885 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
17886 (LIBX): Remove @RSVG_LIBS@.
17887 (LIBES): Add $(RSVG_LIBS).
17888
17889 * image.c (svg_load_image): Blend with specified background if exists.
17890 Use IMAGE_BACKGROUND. Add Mac OS Support.
17891
17892 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
17893 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
17894 Remove macros.
17895 [MAC_OSX] (socket_callback): Do nothing.
17896 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
17897 ReceiveNextEvent.
17898 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
17899 socket_callback.
17900 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
17901
179022007-08-22 Glenn Morris <rgm@gnu.org>
17903
17904 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
17905
179062007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
17907
17908 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
17909
17910 * image.c: Add support for SVG images. Some additional comments
17911 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
17912 (svg_image_p): New function to test for SVG image.
17913 (svg_load): New function to load SVG image.
17914 (svg_load_image): New function, helper for svg_load.
17915 (Qsvg): New Lisp_object.
17916 (svg_keyword_index): New enum.
17917 (svg_format): New static `image_keyword' struct.
17918 (svg_type): New static `image_type' struct.
17919 (librsvg/rsvg.h): Include it.
17920
179212007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
17922
17923 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
17924
179252007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
17926
17927 * lread.c (Qold_style_backquotes): New var.
17928 (syms_of_lread): Init and staticpro it.
17929 (load_warn_old_style_backquotes): New fun.
17930 (Fload): Use them to warn about old style backquotes.
17931 (end_of_file_error, Fload): Remove unused vars.
17932
17933 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
17934
17935 * lread.c (Vold_style_backquotes): New var.
17936 (syms_of_lread): Init and export it to Elisp.
17937 (read1): Set it when we find an old-style (back)quote.
17938
179392007-08-22 Jason Rumney <jasonr@gnu.org>
17940
17941 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
17942
179432007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
17944
17945 * puresize.h (BASE_PURESIZE): Increase to 1140000.
17946
179472007-08-19 Richard Stallman <rms@gnu.org>
17948
17949 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
17950
179512007-08-19 Andreas Schwab <schwab@suse.de>
17952
17953 * alloc.c (pure): Round PURESIZE up.
17954
179552007-08-17 Jan Djärv <jan.h.d@swipnet.se>
17956
17957 * xterm.c (handle_one_xevent): Remove check that mouse click is in
17958 active frame.
17959
179602007-08-16 Richard Stallman <rms@gnu.org>
17961
17962 * eval.c (Fcommandp): Add parens to clarify.
17963
17964 * minibuf.c (Fall_completions): Use enum for type of table.
17965
17966 * emacs.c (USAGE2): Improve text.
17967
179682007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
17969
17970 * term.c (tty_default_color_capabilities): Declare static
17971 variables in file scope, to avoid HPUX compiler problem.
17972
179732007-08-13 Jan Djärv <jan.h.d@swipnet.se>
17974
17975 * gtkutil.c (update_frame_tool_bar): Use -1 as index
17976 to gtk_toolbar_insert.
17977
179782007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
17979
17980 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
17981
17982 * insdel.c (reset_var_on_error): New fun.
17983 (signal_before_change, signal_after_change):
17984 Use it to reset (after|before)-change-functions to nil in case of error.
17985 Bind inhibit-modification-hooks to t.
17986 Don't bind (after|before)-change-functions to nil while they run.
17987
179882007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17989
17990 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
17991 filling pixmap with stippled background.
17992
179932007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17994
17995 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
17996 Don't use invisible frame as parent window for repositioning.
17997
179982007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
17999
18000 * print.c (new_backquote_output): Rename from old_backquote_output.
18001 (print): Inverse its logic (according to its name) so as to match the
18002 behavior of new_backquote_flag in lread.c.
18003
180042007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18005
18006 * gmalloc.c (posix_memalign): New function.
18007
18008 * macterm.c (frame_highlight, frame_unhighlight): Don't call
18009 ActivateControl/DeactivateControl here.
18010 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
18011 frame-notice-user-settings is non-nil.
18012 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
18013 for kEventParamFMFontStyle.
18014 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
18015 mac_pass_command_to_system and mac_pass_control_to_system here.
18016 (XTread_socket): Call ActivateControl/DeactivateControl here.
18017 (XTread_socket) [TARGET_API_MAC_CARBON]:
18018 Check mac_pass_command_to_system and mac_pass_control_to_system here.
18019 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
18020 for window repositioning.
18021
180222007-08-08 Glenn Morris <rgm@gnu.org>
18023
18024 * Replace `iff' in doc-strings and comments.
18025
180262007-08-07 Chong Yidong <cyd@stupidchicken.com>
18027
18028 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
18029
180302007-08-07 Martin Rudalics <rudalics@gmx.at>
18031
18032 * fileio.c (Finsert_file_contents): Run format-decode and
18033 after_insert_file_functions on entire buffer when REPLACE is
18034 non-nil and inhibit modification_hooks and point_motion_hooks.
18035 For consistency, run after_insert_file_functions iff something
18036 got inserted. Move signal_after_change and update_compositions
18037 after code running after_insert_file_functions. Make sure that
18038 undo_list doesn't record intermediate steps of the decoding process.
18039
180402007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18041
18042 * emacs.c (main)
18043 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
18044 Call malloc_enable_thread on interactive startup.
18045
18046 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
18047 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
18048 [USE_PTHREAD]: Conditionalize with it.
18049 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
18050 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
18051 New functions.
18052
180532007-08-06 Chong Yidong <cyd@stupidchicken.com>
18054
18055 * xdisp.c (redisplay_window): When restoring original buffer
18056 position, make sure it is still valid.
18057
18058 * image.c (png_load): Ignore png-supplied background color.
18059
180602007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18061
18062 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
18063 Use kCFAbsoluteTimeIntervalSince1970.
18064
18065 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
18066 New variable.
18067 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
18068 event loop should be quit.
18069 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
18070 Quit dialog event loop if quit_dialog_event_loop is set.
18071
18072 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
18073 (Selection): New typedef. Use instead of ScrapRef.
18074 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
18075 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
18076 (mac_clear_selection): Rename from clear_scrap.
18077 (get_flavor_type_from_symbol): New argument SEL and subsume function of
18078 scrap_has_target_type. All uses changed.
18079 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
18080 (mac_selection_has_target_p): New functions.
18081 (mac_put_selection_value): Rename from put_scrap_string.
18082 (mac_get_selection_value): Rename from get_scrap_string.
18083 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
18084 (put_scrap_private_timestamp, scrap_has_target_type)
18085 (get_scrap_private_timestamp): Remove functions.
18086 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
18087 (x_own_selection, x_get_local_selection):
18088 Use mac_valid_selection_value_p.
18089 (x_own_selection): Don't use put_scrap_private_timestamp.
18090 Record OWNERSHIP-INFO into Vselection_alist instead.
18091 (x_get_local_selection): Don't check type if request is local.
18092 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
18093 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
18094
180952007-08-04 Jan Djärv <jan.h.d@swipnet.se>
18096
18097 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
18098 add comment explaining why.
18099
181002007-08-03 Richard Stallman <rms@gnu.org>
18101
18102 * fileio.c (Fvisited_file_modtime): Use make_time.
18103
181042007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
18105
18106 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
18107 build.
18108
181092007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
18110
18111 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
18112
181132007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
18114
18115 * puresize.h (BASE_PURESIZE): Increase to 1130000.
18116
181172007-07-30 Richard Stallman <rms@gnu.org>
18118
18119 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
18120
181212007-07-29 Jan Djärv <jan.h.d@swipnet.se>
18122
18123 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
18124
181252007-07-28 Nick Roberts <nickrob@snap.net.nz>
18126
18127 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
18128 remote default-directory.
18129
18130 * buffer.c (mode-line-format): Update doc string.
18131
181322007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18133
18134 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
18135 scroll bar gap.
18136 (x_scroll_bar_create): Set bar->fringe_extended_p.
18137 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
18138 on frame edge. Check fringe background extension. Don't clear
18139 extended fringe background area.
18140
18141 * w32term.h (struct scroll_bar): New member fringe_extended_p.
18142 (w32_fill_area): Enclose multiple statements with do ... while (0).
18143
18144 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
18145 Extend fringe background to scroll bar gap.
18146 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
18147 Set bar->fringe_extended_p.
18148 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
18149 Put leftmost/rightmost scroll bars on frame edge. Check fringe
18150 background extension. Don't clear extended fringe background area.
18151
18152 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
18153 New member fringe_extended_p.
18154
181552007-07-25 Glenn Morris <rgm@gnu.org>
18156
18157 * Relicense all FSF files to GPLv3 or later.
18158
18159 * COPYING: Switch to GPLv3.
18160
181612007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
18162
18163 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
18164
18165 * data.c (Finteractive_form): Check for the presence of an
18166 `interactive-form' symbol property more thoroughly.
18167
18168 * data.c (Finteractive_form): Use an `interactive-form' property if
18169 present, analogous to the function-documentation property.
18170
181712007-07-24 Jason Rumney <jasonr@gnu.org>
18172
18173 * w32fns.c (x_real_positions): Get real position from OS instead of
18174 calculating it.
18175
181762007-07-23 Jason Rumney <jasonr@gnu.org>
18177
18178 * filelock.c (current_lock_owner): Allow for @ sign in username.
18179
181802007-07-22 Nick Roberts <nickrob@snap.net.nz>
18181
18182 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
18183 remote default-directory.
18184
18185 * buffer.c (mode-line-format): Describe above case in doc string.
18186
181872007-07-20 Eli Zaretskii <eliz@gnu.org>
18188
18189 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
18190 Define if not defined.
18191
181922007-07-18 Jason Rumney <jasonr@gnu.org>
18193
18194 * w32proc.c (w32_executable_type): Handle 64 bit executables.
18195
181962007-07-18 Richard Stallman <rms@gnu.org>
18197
18198 * data.c (Fsetq_default): Doc fix.
18199
18200 * eval.c (Fsetq): Doc fix.
18201
182022007-07-18 Juanma Barranquero <lekktu@gmail.com>
18203
18204 * coding.c (Ffind_operation_coding_system):
18205 * eval.c (For, Fand): Doc fixes.
18206 Reported by Johan Bockgård.
18207
182082007-07-18 Jan Djärv <jan.h.d@swipnet.se>
18209
18210 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
18211
18212 * xterm.h: Declare x_ewmh_activate_frame.
18213
18214 * xterm.c (x_ewmh_activate_frame): New function.
18215 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
18216
182172007-07-17 Martin Rudalics <rudalics@gmx.at>
18218
18219 * window.c (Fdisplay_buffer): If largest or LRU window is the
18220 only window, split it even if it is not eligible for splitting.
18221 This restores the original behavior broken by the 2007-07-15
18222 change.
18223
182242007-07-17 Glenn Morris <rgm@gnu.org>
18225
18226 * abbrev.c (abbrev_check_chars): New function.
18227 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
18228 Call abbrev_check_chars to check abbrev characters are word
18229 constituents. Doc fix.
18230
182312007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
18232
18233 * process.c (Fstart_process, Fmake_network_process)
18234 (read_process_output): Fix up last changes.
18235
182362007-07-16 Eli Zaretskii <eliz@gnu.org>
18237
18238 * makefile.w32-in (clean): Don't delete *~.
18239
182402007-07-16 Andreas Schwab <schwab@suse.de>
18241
18242 * window.c (Fdisplay_buffer): Use NILP.
18243 (Fset_window_scroll_bars): Likewise.
18244
182452007-07-15 Martin Rudalics <rudalics@gmx.at>
18246
18247 * window.c (window_min_size_2): New function.
18248 (window_min_size_1, size_window, Fdisplay_buffer)
18249 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
18250 windows without mode- or header-lines when window-min-height is
18251 too small.
18252 (size_window): Reset nodelete_p after testing it, following an
18253 earlier note by Kim F. Storm.
18254 (display_buffer): Do not set split_height_threshold to twice the
18255 value of window_min_height to avoid changing the value of a
18256 customizable variable. Rather explicitly check whether the
18257 height of the window that shall be splitted is at least as large
18258 as split_height_threshold.
18259 (Fwindow_full_width_p): New defun.
18260 (syms_of_window): Defsubr it.
18261
18262 * window.h: Add EXFUN for Fwindow_full_width_p.
18263
182642007-07-14 Jason Rumney <jasonr@gnu.org>
18265
18266 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
18267
182682007-07-14 Richard Stallman <rms@gnu.org>
18269
18270 * eval.c (maybe_call_debugger): New function.
18271 (find_handler_clause): Use maybe_call_debugger.
18272 Call it when the handler says `debug'.
18273 Eliminate DEBUGGER_VALUE_PTR.
18274 (Fsignal): Eliminate debugger_value.
18275 (Qdebug): New variable.
18276 (syms_of_eval): Initialize it.
18277
182782007-07-14 Juanma Barranquero <lekktu@gmail.com>
18279
18280 * eval.c (Fprogn):
18281 * keyboard.c (Ftrack_mouse):
18282 * print.c (Fwith_output_to_temp_buffer):
18283 * window.c (Fsave_window_excursion): Doc fix.
18284
182852007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
18286
18287 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
18288
182892007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
18290
18291 * process.h (struct Lisp_Process): Turn slots infd, outfd,
18292 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
18293 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
18294 read_output_delay, and read_output_skip from Lisp_Objects to ints.
18295 Remove unused encoding_carryover.
18296 * process.c: Adjust all functions accordingly.
18297
182982007-07-12 Richard Stallman <rms@gnu.org>
18299
18300 * term.c: Include unistd.h only if HAVE_UNISTD_H.
18301
183022007-07-11 Jason Rumney <jasonr@gnu.org>
18303
18304 * makefile.w32-in (LIBS): Include OLE32.
18305
18306 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
18307 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
18308
183092007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
18310
18311 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
18312 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
18313 from a Lisp_Object into a bare pointer.
18314 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
18315 Adjust the code correspondingly.
18316
18317 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
18318
18319 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
18320 (term_show_mouse_face): Remove unused var `j'.
18321 (handle_one_term_event): Remove unused vars `i' and `j'.
18322 Don't cast return value of ttyname since it's not necessary.
18323
183242007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
18325
18326 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
18327 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
18328
18329 * fns.c (map_char_table): Use an array of int for `indices' rather than
18330 an array of Lisp_Objects (which are only ever integers anyway).
18331 (Fmap_char_table): Update caller.
18332 * lisp.h: Update prototype.
18333 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
18334 * fontset.c (Ffontset_info):
18335 * casetab.c (set_case_table): Update callers.
18336
18337 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
18338
18339 * keymap.c (struct accessible_keymaps_data)
18340 (struct where_is_internal_data): New structures.
18341 (accessible_keymaps_1, where_is_internal_1): Use them to change
18342 interface to adhere to the one used by map_keymap.
18343 (Faccessible_keymaps, where_is_internal): Use map_keymap.
18344 (accessible_keymaps_char_table, where_is_internal_2): Remove.
18345
18346 * keymap.h (map_keymap_function_t): More informative prototype.
18347
183482007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
18349
18350 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
18351 (looking_at_1): Don't change search_regs and last_thing_searched
18352 if `inhibit-changing-match-data' is non-nil.
18353 (string_match_1, search_buffer, set_search_regs): Likewise.
18354 (syms_of_search): Add Lisp level definition for
18355 `inhibit-changing-match-data' and set it to nil.
18356 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
18357 start and end of the match, instead of using values in search_regs.
18358
183592007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
18360
18361 * minibuf.c (Fcompleting_read): New value `confirm-only'
18362 for `require-match'.
18363
183642007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
18365
18366 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
18367 part of the 2007-06-27 change to syms_of_fileio.
18368
183692007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18370
18371 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
18372 Check WINDOWP before using XWINDOW. Consolidate return statements.
18373
183742007-06-27 Richard Stallman <rms@gnu.org>
18375
18376 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
18377
183782007-06-27 Juanma Barranquero <lekktu@gmail.com>
18379
18380 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
18381
183822007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18383
18384 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
18385 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
18386 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
18387 (_free_internal, memalign): Use them.
18388 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
18389 Initialize to PTHREAD_MUTEX_INITIALIZER.
18390 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
18391 (morecore_nolock): Rename from morecore. All uses changed.
18392 Use only nolock versions of internal allocation functions.
18393 (_malloc_internal_nolock, _realloc_internal_nolock)
18394 (_free_internal_nolock): New functions created from
18395 _malloc_internal, _realloc_internal, and _free_internal.
18396 (_malloc_internal, _realloc_internal, _free_internal): Use them.
18397 Copy hook value to automatic variable before its use.
18398 (memalign): Copy hook value to automatic variable before its use.
18399
184002007-06-26 Kenichi Handa <handa@m17n.org>
18401
18402 * coding.c (Ffind_operation_coding_system): Docstring improved.
18403 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
18404
184052007-06-25 David Kastrup <dak@gnu.org>
18406
18407 * keymap.c (Fcurrent_active_maps): Add `position' argument.
18408 (Fwhere_is_internal): Adjust call to `current-active-maps' to
18409 cater for additional parameter.
18410
18411 * keymap.h: Adjust number of parameters to `current-active-maps'.
18412
18413 * doc.c (Fsubstitute_command_keys): Adjust call of
18414 `current-active-maps'.
18415
184162007-06-25 David Kastrup <dak@gnu.org>
18417
18418 * callint.c (Fcall_interactively): Make the parsing of interactive
18419 specs somewhat more readable.
18420
184212007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18422
18423 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
18424 to scroll bar gap also when bitmap fills fringe. Draw only foreground
18425 if extended background has already been filled.
18426
184272007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18428
18429 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
18430 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
18431
18432 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
18433 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
18434 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
18435 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
18436 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
18437 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
18438 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
18439 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
18440 Run timers during dialog popup.
18441 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
18442
184432007-06-21 Jason Rumney <jasonr@gnu.org>
18444
18445 * image.c (convert_mono_to_color_image): Swap fore and background.
18446
184472007-06-20 Jason Rumney <jasonr@gnu.org>
18448
18449 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
18450 (w32_free_bdf_font): Unmap memory not handle.
18451
184522007-06-20 Sam Steingold <sds@gnu.org>
18453
18454 * gmalloc.c (__morecore): Fix the declaration to comply with the
18455 definition.
18456
184572007-06-20 Juanma Barranquero <lekktu@gmail.com>
18458
18459 * w32term.c (w32_delete_display): Remove leftover declaration.
18460 (w32_define_cursor, w32_initialize): Make static.
18461
18462 * w32.c (_wsa_errlist): Fix typo in error message.
18463 (init_environment): Ignore any environment variable from the
18464 registry having a null value.
18465
184662007-06-20 Glenn Morris <rgm@gnu.org>
18467
18468 * Makefile.in (LIBGIF): Default to -lgif.
18469
184702007-06-17 Jason Rumney <jasonr@gnu.org>
18471
18472 * w32menu.c (add_menu_item): Don't use multibyte string functions on
18473 unicode strings.
18474
184752007-06-16 Juanma Barranquero <lekktu@gmail.com>
18476
18477 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
18478 Fix typo in docstring.
18479
184802007-06-16 Eli Zaretskii <eliz@gnu.org>
18481
18482 * w32menu.c (add_menu_item): Escape `&' characters in menu items
18483 and their keybindings.
18484
184852007-06-15 Chong Yidong <cyd@stupidchicken.com>
18486
18487 * composite.c (update_compositions): Fix last fix.
18488
184892007-06-14 Jason Rumney <jasonr@gnu.org>
18490
18491 * w32.c (get_process_times_fn): New function pointer.
18492 (globals_of_w32): Intialize it if present in kernel32.dll.
18493 (w32_get_internal_run_time): New function.
18494
18495 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
18496
184972007-06-14 Kenichi Handa <handa@etlken.m17n.org>
18498
18499 * composite.c (update_compositions): Check the validness of
18500 compositions.
18501
185022007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18503
18504 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
18505 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
18506
18507 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
18508 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
18509
18510 * macgui.h (USE_MAC_TOOLBAR): New define.
18511
18512 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
18513 Return immediately unless popup is activated.
18514
18515 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
18516 background to scroll bar gap.
18517 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
18518 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
18519 scroll bars on frame edge. Check fringe background extension.
18520 Don't clear extended fringe background area.
18521 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
18522 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
18523 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
18524 [USE_MAC_TOOLBAR]: New macros.
18525 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
18526 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
18527 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
18528 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
18529 [USE_MAC_TOOLBAR]: New functions.
18530 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
18531 manually if previous repositioning has failed.
18532 (mac_handle_keyboard_event): Use precomputed event kind.
18533 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
18534 as tool bar item click. Handle mouse movement over tool bar items.
18535
18536 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
18537 toolbar_win_gravity.
18538 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
18539 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
18540 Add externs.
18541
18542 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
18543 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
18544
185452007-06-14 Chong Yidong <cyd@stupidchicken.com>
18546
18547 * image.c (search_image_cache): Remove unused variable.
18548
185492007-06-13 Chong Yidong <cyd@stupidchicken.com>
18550
18551 * xfns.c, xmenu.c: Link to xaw3d if available.
18552
185532007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18554
18555 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
18556 frame_foreground and frame_background.
18557
18558 * image.c (lookup_image): Save frame foreground and background colors.
18559 (search_image_cache): Check if saved and current frame colors match.
18560
185612007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
18562
18563 * regex.c (regex_compile): Remove the `regnum' counter.
18564 Use bufp->re_nsub instead. Add support for \(?N:RE\).
18565
185662007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
18567
18568 * term.c: Include intervals.h to declare Fget_text_property.
18569
185702007-06-10 Jason Rumney <jasonr@gnu.org>
18571
18572 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
18573
185742007-06-08 Juanma Barranquero <lekktu@gmail.com>
18575
18576 * callint.c (Fcall_interactively):
18577 * editfns.c (Fdelete_and_extract_region):
18578 * fileio.c (Fread_file_name):
18579 * fns.c (Fmapconcat):
18580 * keyboard.c (cmd_error_internal):
18581 * keymap.c (Fkey_description):
18582 * lread.c (openp):
18583 * minibuf.c (read_minibuf):
18584 * search.c (wordify):
18585 * sunfns.c (sel_read):
18586 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
18587 * xfns.c (x_default_scroll_bar_color_parameter):
18588 * xmenu.c (menu_help_callback):
18589 * xselect.c (Fx_get_atom_name):
18590 * xterm.c (x_term_init): Use empty_unibyte_string.
18591
185922007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
18593
18594 * alloc.c (init_strings): Initialize canonical empty strings.
18595 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
18596 canonical empty string when the requested size is 0.
18597
18598 * emacs.c (empty_unibyte_string): Rename from empty_string.
18599 (empty_multibyte_string): New canonical empty string.
18600 (syms_of_emacs): Don't initialize empty_string.
18601
18602 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
18603 string, if appropriate.
18604 (empty_unibyte_string, empty_multibyte_string): New externs.
18605 (empty_string): Remove extern.
18606
18607 * lread.c (syms_of_lread): Use empty_unibyte_string.
18608
186092007-06-07 Jason Rumney <jasonr@gnu.org>
18610
18611 * s/ms-w32.h: Don't define HAVE_TZNAME.
18612
18613 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
18614
186152007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18616
18617 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
18618
18619 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
18620 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
18621
18622 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
18623 Don't call next handler.
18624 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
18625 Remove argument. Install handler to application.
18626 (set_frame_menubar): Don't change deep_p.
18627 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
18628 FRAME_OUTER_TO_INNER_DIFF_Y.
18629 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
18630 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
18631 [HAVE_DIALOGS]: New macros.
18632 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
18633 Use them.
18634 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
18635
18636 * macselect.c [MAC_OSX] (install_service_handler): Rename from
18637 init_service_handler. All callers changed. Return OSStatus value.
18638
18639 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
18640 All callers changed so as not to call SetPortWindowPort.
18641 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
18642 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
18643 mac_draw_string_common.
18644 (mac_draw_image_string_qd): Likewise.
18645 (mac_draw_string_common): Use them. Add INLINE.
18646 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
18647 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
18648 GetGlobalMouse.
18649 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
18650 and FRAME_OUTER_TO_INNER_DIFF_Y.
18651 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
18652 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
18653 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
18654 repositioning window to mac_handle_window_event.
18655 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
18656 saving window location to mac_handle_window_event
18657 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
18658 (install_menu_target_item_handler): Remove argument in extern.
18659 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
18660 Also accept command events.
18661 (do_keystroke): New function created from XTread_socket.
18662 (init_command_handler): Remove functions.
18663 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
18664 and save window location by kEventWindowShowing and kEventWindowHiding
18665 handlers here. Don't call next handler for window state change and
18666 focus events.
18667 (mac_handle_application_event, mac_handle_keyboard_event)
18668 [TARGET_API_MAC_CARBON]: New functions.
18669 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
18670 kEventWindowShowing and kEventWindowHiding events. Move installation
18671 of mouse, font, text input and menu target item handlers to
18672 install_application_handler.
18673 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
18674 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
18675 New function.
18676 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
18677 Register it.
18678 (XTread_socket) [TARGET_API_MAC_CARBON]:
18679 Consolidate SendEventToEventTarget calls.
18680 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
18681 Move application activation handler to mac_handle_application_event.
18682 Move keyboard handler to mac_handle_keyboard_event.
18683 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
18684 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
18685 init_command_handler. Call install_application_handler.
18686
18687 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
18688 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
18689
186902007-06-07 Glenn Morris <rgm@gnu.org>
18691
18692 * emacs.c (main): Use `emacs-copyright' in --version output.
18693
186942007-06-06 Chong Yidong <cyd@stupidchicken.com>
18695
18696 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
18697
186982007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18699
18700 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
18701
18702 * macgui.h: Replace WindowPtr with WindowRef.
18703
18704 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
18705 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
18706 Replace ControlHandle with ControlRef.
18707 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
18708
18709 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
18710 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
18711 Replace ControlHandle with ControlRef.
18712 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
18713 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
18714
18715 * macterm.h (struct scroll_bar): Rename member control_handle_low
18716 and control_handle_high to control_ref_low and control_ref_high.
18717 All uses changed.
18718 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
18719 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
18720 respectively. All uses changed.
18721 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
18722 (install_window_handler, remove_window_handler): Replace WindowPtr
18723 with WindowRef in externs.
18724
187252007-06-05 Juanma Barranquero <lekktu@gmail.com>
18726
18727 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
18728
187292007-06-03 Nick Roberts <nickrob@snap.net.nz>
18730
18731 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
18732
18733 * frame.c (Fmouse_position, Fmouse_pixel_position):
18734 Condition on HAVE_GPM too.
18735
18736 * term.c (term_mouse_highlight): Remove unused variables.
18737 (Fterm_open_connection): Set gpm_zerobased to 1.
18738 (term_mouse_movement, term_mouse_click, handle_one_term_event):
18739 Use zero based co-ordinates.
18740 (handle_one_term_event): Report a drag as mouse movement too.
18741
18742 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
18743
187442007-06-03 Chong Yidong <cyd@stupidchicken.com>
18745
18746 * image.c (search_image_cache): New function. Require background
18747 color match if background color is unspecified in the image spec.
18748 (uncache_image, lookup_image): Use it.
18749
187502007-06-01 Juanma Barranquero <lekktu@gmail.com>
18751
18752 * window.c (Fshrink_window): Reflow docstring.
18753
187542007-06-02 Chong Yidong <cyd@stupidchicken.com>
18755
18756 * Version 22.1 released.
18757
187582007-06-01 Richard Stallman <rms@gnu.org>
18759
18760 * xfns.c (x_encode_text): Add GCPRO.
18761
187622007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18763
18764 * xfns.c (x_set_name_internal): Save encoded name before
18765 x_encode_text in case string data is relocated.
18766
187672007-05-31 Richard Stallman <rms@gnu.org>
18768
18769 * buffer.c (syms_of_buffer): Doc fix.
18770
187712007-05-30 Nick Roberts <nickrob@snap.net.nz>
18772
18773 * sysdep.c (init_sys_modes): Add rather than replace with
18774 O_NONBLOCK.
18775
18776 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
18777 term_mouse_moveto.
18778
18779 * termhooks.h (term_mouse_moveto): New extern.
18780
18781 * term.c (mouse_face_window): Rename...
18782 (Qmouse_face_window): ...to this.
18783 (term_show_mouse_face, term_clear_mouse_face)
18784 (term_mouse_highlight): Use Qmouse_face_window.
18785 (term_mouse_moveto): New function.
18786 (term_mouse_position): Make it work.
18787 (syms_of_term): Uncomment assignment to mouse_position_hook.
18788 Staticpro Qmouse_face_window.
18789
187902007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18791
18792 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
18793 around current_column call.
18794
187952007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
18796
18797 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
18798 * xdisp.c (next_element_from_buffer):
18799 * window.c (delete_window):
18800 * term.c (term_mouse_highlight):
18801 * msdos.c (getdefdir):
18802 * macterm.c (mac_create_bitmap_from_bitmap_data)
18803 (init_font_name_table):
18804 * fns.c (Fsxhash):
18805 * data.c (Fmake_local_variable):
18806 * ccl.c (ccl_driver): Likewise.
18807
188082007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18809
18810 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
18811 Call mac_wakeup_from_rne on window size change.
18812
188132007-05-25 Chong Yidong <cyd@stupidchicken.com>
18814
18815 * image.c (uncache_image): Fix typo.
18816
188172007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
18818
18819 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
18820
188212007-05-22 Richard Stallman <rms@gnu.org>
18822
18823 * xterm.c (x_connection_closed): Remove NO_RETURN.
18824
188252007-05-22 Martin Rudalics <rudalics@gmx.at>
18826
18827 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
18828
188292007-05-21 Chong Yidong <cyd@stupidchicken.com>
18830
18831 * image.c (uncache_image): New function.
18832 (Fimage_refresh): New function.
18833
188342007-05-20 Jan Djärv <jan.h.d@swipnet.se>
18835
18836 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
18837
188382007-05-20 Nick Roberts <nickrob@snap.net.nz>
18839
18840 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
18841 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
18842
188432007-05-20 Nick Roberts <nickrob@snap.net.nz>
18844
18845 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
18846 conditional on [HAVE_GPM_H].
18847
188482007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
18849
18850 * syntax.c (skip_chars): Update syntax-table only after we checked that
18851 the new location is valid.
18852
188532007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18854
18855 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
18856 mac_get_window_bounds.
18857
188582007-05-20 Nick Roberts <nickrob@snap.net.nz>
18859
18860 * Makefile.in (LIBGPM): Allow it to be set from configure.
18861 If set then link Emacs with it.
18862
18863 * config.in: Regenerate.
18864
18865 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
18866 New externs.
18867
18868 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
18869 Include gpm.h.
18870 (handle_one_term_event, term_gpm): New externs.
18871
18872 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
18873 and allow it to be interrupted by SIGIO.
18874
18875 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
18876 (wait_reading_process_output): Wait on gpm_fd too.
18877 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
18878 (add_gpm_wait_descriptor_called_flag): New variable.
18879 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
18880
18881 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
18882 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
18883 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
18884 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
18885 (make_lispy_event): Add case GPM_CLICK_EVENT.
18886 (read_avail_input): Handle mouse input.
18887
18888 * term.c (write_glyphs_with_face): New function.
18889 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
18890 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
18891 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
18892 (mouse_face_face_id, term_gpm, pos_x, pos_y)
18893 (last_mouse_x, last_mouse_y): New variables.
18894 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
18895 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
18896 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
18897 (Fterm_close_connection): New functions.
18898 (term_init): Initialise mouse_face_window.
18899
189002007-05-19 Chong Yidong <cyd@stupidchicken.com>
18901
18902 * xdisp.c (redisplay_window): If first window line is a
18903 continuation line, recompute the new window start instead of
18904 recentering.
18905
189062007-05-18 Glenn Morris <rgm@gnu.org>
18907
18908 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
18909 Suggested by Alfred M. Szmidt <ams@gnu.org>.
18910
189112007-05-17 Glenn Morris <rgm@gnu.org>
18912
18913 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
18914
189152007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18916
18917 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
18918 dead key repeat and up events.
18919
189202007-05-14 Chong Yidong <cyd@stupidchicken.com>
18921
18922 * image.c (pbm_load): Check image size for monochrome pbm.
18923
189242007-05-13 Chong Yidong <cyd@stupidchicken.com>
18925
18926 * xterm.c (XTread_socket): Revert last change.
18927
189282007-05-12 Chong Yidong <cyd@stupidchicken.com>
18929
18930 * image.c (pbm_load): Correctly check image size for greyscale pbm.
18931
18932 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
18933
189342007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
18935
18936 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
18937 mixup (YAILOM).
18938
189392007-05-07 Andreas Schwab <schwab@suse.de>
18940
18941 * keymap.c (Flookup_key): Fix typo in last change.
18942
189432007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
18944
18945 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
18946 mapping for unibyte strings.
18947
189482007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18949
18950 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
18951 (Fx_popup_dialog) [MAC_OSX]: Likewise.
18952
189532007-04-29 Richard Stallman <rms@gnu.org>
18954
18955 * insdel.c (replace_range): For undo, record insertion first.
18956
189572007-04-29 Andreas Schwab <schwab@suse.de>
18958
18959 * lisp.h (VECSIZE): Use OFFSETOF.
18960
189612007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18962
18963 * xdisp.c (try_window_reusing_current_matrix): Fix number of
18964 disabled lines.
18965
189662007-04-28 Richard Stallman <rms@gnu.org>
18967
18968 * lread.c (read_escape): In a string, \s is always space.
18969
189702007-04-27 Jan Djärv <jan.h.d@swipnet.se>
18971
18972 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
18973
18974 * gtkutil.c (xg_update_menubar, create_menus): Create empty
18975 submenu for menu bar items.
18976
18977See ChangeLog.10 for earlier changes.
18978
18979;; Local Variables:
18980;; coding: utf-8
18981;; add-log-time-zone-rule: t
aac0c6e3
MR
18982;; End:
18983
76b6f707 18984 Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc.
aac0c6e3
MR
18985
18986 This file is part of GNU Emacs.
18987
18988 GNU Emacs is free software: you can redistribute it and/or modify
18989 it under the terms of the GNU General Public License as published by
18990 the Free Software Foundation, either version 3 of the License, or
18991 (at your option) any later version.
18992
18993 GNU Emacs is distributed in the hope that it will be useful,
18994 but WITHOUT ANY WARRANTY; without even the implied warranty of
18995 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18996 GNU General Public License for more details.
18997
18998 You should have received a copy of the GNU General Public License
18999 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
19000
19001;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40