* net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist): Add
[bpt/emacs.git] / src / ChangeLog
CommitLineData
3f1c6666
JD
12009-07-01 Jan Djärv <jan.h.d@swipnet.se>
2
3 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
4
5 * frame.c: Qmaximized is new.
6 (x_set_frame_parameters): Do not handle fullscreen specially.
7 Only set width and height if explicitly set.
8 (x_set_fullscreen): Handle Qmaximized.
9 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
10 (syms_of_frame): Initialize Qmaximized.
11
12 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED. Declare
13 Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
14
15 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
16 for Expose event. Add call to x_check_fullscreen for MapNotify event.
17 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
18 set gravity to NorthWestGravity when USE_GTK.
19 (set_wm_state): New function.
20 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
21 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
22 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
23 or the case when no window manager is running. That means remove calls
24 to x_real_positions and x_fullscreen_adjust.
25
26 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
27 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
28 flush_and_sync.
29 (xg_height_changed): New function.
30 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
31 and gtk_window_set_policy. Set frame gravity after parsing the geometry
32 string.
33 (xg_update_frame_menubar, free_frame_menubar)
34 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
35 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
36 Remove calls to xg_frame_set_char_size.
37
fd503d99
KH
382009-07-01 Kenichi Handa <handa@m17n.org>
39
40 * keyboard.c (decode_keyboard_code): New function.
41 (tty_read_avail_input): Decode the input bytes if necessary.
42
43 * coding.c (setup_coding_system): Initialize
44 coding->carryover_bytes to 0.
45 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
46 use Qno_conversion.
47
24ed93fb
YM
482009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
49
50 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
51
99061dfc
CY
522009-06-30 Chong Yidong <cyd@stupidchicken.com>
53
54 * xftfont.c (xftfont_open): Avoid passing NULL argument to
55 XftLockFace.
56
ff90fbde
JR
572009-06-30 Jason Rumney <jasonr@gnu.org>
58
59 * w32term.c (w32_initialize): Use GetModuleHandle for library that
60 is already loaded.
61 Set user model ID if supported (bug#1849).
62
5f445726
JM
632009-06-29 Jim Meyering <meyering@redhat.com>
64
65 Remove useless if-before-xfree test.
66 * nsfont.m (nsfont_close): Remove useless test.
67 * term.c (delete_tty): Likewise.
68 * w32.c (system_process_attributes): Likewise.
69 * w32font.c (w32font_close): Likewise.
70 * xfaces.c (x_free_gc): Likewise.
71 * xselect.c (buffer): Likewise.
72
b9607587
AS
732009-06-28 Andreas Schwab <schwab@linux-m68k.org>
74
75 * process.c (send_process): Keep decoded string in a local
76 variable and protect it from GC. (Bug#3521)
77
89ba96f4
EZ
782009-06-28 Eli Zaretskii <eliz@gnu.org>
79
80 * term.c (create_tty_output) [MSDOS]: #ifdef away.
81 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
82
098a1589
CY
832009-06-28 Chong Yidong <cyd@stupidchicken.com>
84
485422be
CY
85 * xdisp.c (start_display, handle_face_prop)
86 (move_it_vertically_backward, cursor_row_fully_visible_p)
87 (redisplay_window, try_window_id, produce_image_glyph): Delete
88 some #ifdef-ed out code chunks that are now obsolete.
89
098a1589
CY
90 * xterm.c (x_update_window_begin, x_new_focus_frame)
91 (x_scroll_bar_handle_click, handle_one_xevent)
92 (handle_one_xevent, XTread_socket, x_focus_on_frame)
93 (x_make_frame_visible, x_make_frame_invisible)
94 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
95 code chunks that are now obsolete.
96
78c38319
MA
972009-06-28 Michael Albinus <michael.albinus@gmx.de>
98
99 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
100 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
101 for hours, when optimzation is enabled.
102 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
103 (xd_read_message): Make them static.
104
4189ed40
CY
1052009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
106
107 * term.c (turn_on_face): Allow simultaneously bold and dim
108 terminal faces (Bug#3530).
109
cd9b5e16
CY
1102009-06-27 Chong Yidong <cyd@stupidchicken.com>
111
4e23bedb
CY
112 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
113
cd9b5e16
CY
114 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
115 truncation glyphs (Bug#3686).
116
07cc3c35
GM
1172009-06-27 Glenn Morris <rgm@gnu.org>
118
119 * m/pmax.h: Restore file, with only netbsd portions.
120
25c5550f
DR
1212009-06-26 David Reitter <david.reitter@gmail.com>
122
cd9b5e16 123 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 124
42d4a64f
KH
1252009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
126
127 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
128 the arg FORCE_SYMBOL.
129
930fe55b 1302009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
131
132 * fontset.c (fontset_find_font): When a usable rfont_def is found
133 in a fallback font-group, make it the first element of the group.
134
57ebc3fd
CY
1352009-06-24 Chong Yidong <cyd@stupidchicken.com>
136
137 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
138
f084f942
KH
1392009-06-24 Kenichi Handa <handa@m17n.org>
140
141 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
142 set for C.
143 (fontset_font): Record the availability of a font for C both in
144 the realized fontsets of the current one and the default one.
145
2f686c87
DN
1462009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
147
148 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
149 conditional, it is always defined on AIX.
150
666e158e
MB
1512009-06-23 Miles Bader <miles@gnu.org>
152
153 * window.c (Vrecenter_redisplay): New variable.
154 (syms_of_window): Initialize it.
155 (Qtty): New extern declaration.
156 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
157
c6da7cd2
JM
1582009-06-23 Jim Meyering <meyering@redhat.com>
159
632c2030
CY
160 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt): Use
161 xmalloc and xrealloc (not malloc and realloc), so subsequent heap
162 pointer dereferences are guaranteed to be valid.
c6da7cd2 163
678dca3d
KH
1642009-06-23 Kenichi Handa <handa@m17n.org>
165
74d75424
KH
166 * emacs.c (main): Call init_font ().
167
168 * font.h (Vfont_log): Extern it.
169 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
170
171 * font.c (font_sort_entities, font_list_entities)
172 (font_matching_entity, font_open_entity)
173 (font_close_object): Change font_add_log to FONT_ADD_LOG.
174 (Vfont_log): Delete static.
175 (font_log_env_checked): Delete this variable.
176 (font_add_log): Don't check font_log_env_checked.
177 (font_deferred_log): Check Vfont_log.
178 (init_font): New function.
179
678dca3d
KH
180 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
181
182 * w32font.c: Change font_add_log to FONT_ADD_LOG.
183
184 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
185
186 * xfont.c: Change font_add_log to FONT_ADD_LOG.
187
188 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
189 (face_for_char): Don't call font_deferred_log here.
190 (font_for_char): Likewise.
191
8a668709
CY
1922009-06-22 Chong Yidong <cyd@stupidchicken.com>
193
9a01ee33
CY
194 * w32term.c (x_draw_glyph_string): Use the glyph string's width
195 rather than its background_width for drawing the overline and
196 underline (Bug#489).
197
198 * xterm.c (x_draw_glyph_string): Use the glyph string's width
199 rather than its background_width for drawing the overline and
200 underline (Bug#489).
ec7c9926
CY
201 (xg_default_icon_file): New variable.
202 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
203 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 204
8a668709
CY
205 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
206 (load_overlay_strings): Remove externs.
207 (fast_find_position): Function deleted.
208 (mouse_face_from_buffer_pos): New function, based on
209 fast_find_position. Correctly handle before-strings,
210 display-strings, and after-strings (Bug#1220).
211 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
212
4d4c02d8
CY
2132009-06-21 Chong Yidong <cyd@stupidchicken.com>
214
215 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for
216 !HAVE_WINDOW_SYSTEM.
217 (move_it_in_display_line_to, move_it_in_display_line_to)
218 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
219
70243478
CY
2202009-06-21 Chong Yidong <cyd@stupidchicken.com>
221
222 * Branch for 23.1.
223
13087e59
JR
2242009-06-21 Jason Rumney <jasonr@gnu.org>
225
226 * w32term.c (keyboard_codepage): New static variable.
227 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
228 (w32_read_socket) [WM_CHAR]: Use it to decode character
229 input (bug#3237).
230 (w32_initialize): Initialize it.
231 (codepage_for_locale): New function.
232
4735b74e
KR
2332009-06-20 Ken Raeburn <raeburn@raeburn.org>
234
235 * process.c (status_message): Pass Faset index argument as a lisp
236 object, so as to work with USE_LISP_UNION_TYPE.
237
0e727afa
YM
2382009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
239
240 * coding.c (Ffind_coding_systems_region_internal):
241 Cache checked characters.
242
cf299835
KH
2432009-06-18 Kenichi Handa <handa@m17n.org>
244
245 * coding.c (decode_coding_iso_2022): Check MSB of bytes more
246 rigidly.
247
90f20d94
AS
2482009-06-18 Andreas Schwab <aschwab@redhat.com>
249
250 * xdisp.c (redisplay_internal): Check that the frame is still
251 live after redisplay of its windows.
252 (redisplay_windows): Check that the window is still live.
253
7f1faf1c
KH
2542009-06-17 Andreas Schwab <schwab@linux-m68k.org>
255
256 * coding.c (detect_coding_utf_16): Fix previous change.
257
cc13543e
KH
2582009-06-16 Kenichi Handa <handa@m17n.org>
259
260 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
261 UTF-16 by checking the dispersion of Eth and Oth bytes.
262
977b85f4
AS
2632009-06-15 Andreas Schwab <schwab@linux-m68k.org>
264
265 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
266
66bd43d1
KH
2672009-06-15 Kenichi Handa <handa@m17n.org>
268
269 * process.c (status_message): Fix previous change. Be sure to
270 decode a localized string.
271
cb5ca9c5
YM
2722009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
273
274 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
275 add comment explaining why.
276
ec7709ba 2772009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 278
ec7709ba 279 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 280
4b7f335c
AR
2812009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
282
283 * nsfont.m (ns_attribute_value): Remove.
284 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
285 (ns_has_attribute): Shrink the normal range.
286 (ns_findfonts): Don't worry about requested spec in determining
287 need for synthItal.
e41820ee 288 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 289
73b26103
SZ
2902009-06-14 Seiji Zenitani <zenitani@mac.com>
291
292 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
293
5753e4da
KH
2942009-06-11 Kenichi Handa <handa@m17n.org>
295
296 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
297 overhang for the static composition case.
298
3561b671
KH
2992009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
300
5753e4da
KH
301 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
302 overhang for the automatic composition case.
303
3561b671
KH
304 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
305 composition case.
306
852bbd41
CY
3072009-06-10 Chong Yidong <cyd@stupidchicken.com>
308
309 * xdisp.c (get_next_display_element): When handling wrap-prefix
310 and line-prefix, treat \n as a control character (bug#3502).
311
9903d1e6
KH
3122009-06-10 Kenichi Handa <handa@m17n.org>
313
314 * font.c (font_parse_family_registry): Fix for one-char foundry.
315 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
316
0bcbaaaa
CY
3172009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
318
319 * process.c (status_message): Fix handling of multibyte signal
320 string (Bug#3499).
321
40aa3f13
JM
3222009-06-09 Jim Meyering <meyering@redhat.com>
323
1f80c7e2
CY
324 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
325 color name is missing.
40aa3f13 326
72d51285
KH
3272009-06-09 Kenichi Handa <handa@m17n.org>
328
329 * charset.c (Fmap_charset_chars): In docstring, state clearly that
330 FROM-CODE and TO-CODE are codepoints of CHARSET.
331
c1d04d84
AR
3322009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
333
334 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
335
3362009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
337
338 Changes to support :script/:lang/:otf in NS font driver.
339 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
340 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
341 indicate not part of font driver interface, and change callers.
342 (ns_get_family): Remove pointless null check.
343 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
344 ns_spec_to_descriptor, ns_descriptor_to_entity.
345 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
346 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
347 (ns_spec_to_descriptor, ns_descriptor_to_entity)
348 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
349 (ns_get_req_script, ns_accumulate_script_ranges)
350 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
351 New functions.
352 (nsfont_list, nsfont_match): Use ns_findfonts.
353 (nsfont_open): Use font descriptor instead of traits.
354 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
355 (dump_glyphstring): Rename to ns_dump_glyphstring.
356
c7eb9816
AR
357 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
358
c1d04d84
AR
359 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
360
361 * fontset.c (fontset_from_font): Remove NS-specific code.
362
ec7709ba 3632009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
364
365 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
366 nonactive windows.
367
3682009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
369
370 * nsterm.m (ns_init_paths): Append path separator to INFOPATH
371 variable.
372
68852c13 3732009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
374
375 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
376
6756cd1d
CY
3772009-06-07 Chong Yidong <cyd@stupidchicken.com>
378
379 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
380 account for the overflowing of newlines into the last glyph on the
381 display line (Bug#3482).
382
28bf482a
DR
3832009-06-05 David Reitter <david.reitter@gmail.com>
384
ec7709ba
JB
385 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
386 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
387 Fns_selection_exists_p, Fns_selection_owner_p.
388
fdb55376
JR
3892009-06-03 Jason Rumney <jasonr@gnu.org>
390
391 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
392 available. (Bug#3379)
393
05129fbe
KH
3942009-05-29 Kenichi Handa <handa@m17n.org>
395
396 * coding.c (get_translation_table): Check
397 Venable_character_translation.
398
ec7709ba 3992009-05-26 David Reitter <david.reitter@gmail.com>
15891144 400
ec7709ba
JB
401 * nsterm.m (ns_raise_frame): Only raise frame if visible.
402 (x_make_frame_visible): Move frame to front rather than calling
15891144 403 ns_raise_frame().
ec7709ba 404 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 405 isn't key window.
ec7709ba 406 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
407 drawRect may be called by NSView even if the frame is hidden.
408
ec7709ba
JB
409 * nsfns.m (Fx_create_frame): Follow other ports in
410 determining visibility; default to t. Ensure async_visible is set.
15891144 411
21f73755
EZ
4122009-05-23 Eli Zaretskii <eliz@gnu.org>
413
414 * dired.c (Ffile_attributes): Doc fix.
415
34001e41
CY
4162009-05-22 Chong Yidong <cyd@stupidchicken.com>
417
418 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
419
46306a17
SM
4202009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
421
422 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
423 and xfont_scratch_props.
424 (syms_of_xfont): Do it here instead.
425 (xfont_find_ccl_program): Delete, unused.
426 (xfont_open): Delete unused var `i'.
427
ef6e0694
KH
4282009-05-21 Kenichi Handa <handa@m17n.org>
429
430 * fontset.c (Qlatin): Don't make it static.
431
46306a17
SM
432 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
433 New functions.
ef6e0694
KH
434 (xfont_scripts_cache, xfont_scratch_props): New variables.
435 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
436 (xfont_list_pattern): Argument changed. Callers changed.
437 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
438 (xfont_list): Don't reject a font spec with :script property.
439 (xfont_has_char): Fix setting of encoding.
440 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
441 xfont_scratch_props.
442
4432009-05-19 Kenichi Handa <handa@m17n.org>
444
46306a17 445 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
446 Callers changed.
447
4482009-05-18 Kenichi Handa <handa@m17n.org>
449
450 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
451
ac71ced7
SM
4522009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
453
454 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
455 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
456
1c6d1051
YM
4572009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
458
459 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
460 (x_delete_terminal): Dissociate resource database from display and
461 then call XrmDestroyDatabase before closing display.
462
9b9b779c
AR
4632009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
464
465 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
466 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
467 whether selected frame is viable before raising it (based on patch
468 by David Reitter), and improve commentary.
469 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 470
cccd42d5
KH
4712009-05-15 Kenichi Handa <handa@m17n.org>
472
473 * font.c (Ffont_spec): Check arguments.
474
337fbd17
CY
4752009-05-14 Chong Yidong <cyd@stupidchicken.com>
476
477 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
478 weight when testing attributes (Bug#3282).
479
47a6002f
JD
4802009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
481
482 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
483 what we expect to get in the next ConfigureNotify event.
484
9cb363db
YM
485 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
486 before Xft one (Bug#1696).
487
b9126609
CY
4882009-05-07 David Reitter <david.reitter@gmail.com>
489
490 * nsfns.m (Fx_display_planes): Compute bitplanes using
491 NSBitsPerPixelFromDepth (Bug#3207).
492
27a69fd9
CY
4932009-05-10 Chong Yidong <cyd@stupidchicken.com>
494
495 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
496
00f37552
TTN
4972009-05-10 Ulrich Mueller <ulm@gentoo.org>
498
499 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
500
2d82a920
DR
5012009-05-07 David Reitter <david.reitter@gmail.com>
502
ec7709ba
JB
503 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
504 Respect mouse face background.
2d82a920 505
46b0d52d
DR
5062009-05-07 David Reitter <david.reitter@gmail.com>
507
ec7709ba
JB
508 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
509 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
510 in ns_update_begin and ns_update_end.
511
ce1b23bb
SM
5122009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
513
5996e1b7
SM
514 * nsfns.m (ns_get_screen): Rewrite.
515 Don't presume selected-frame is of type `ns'.
516
ba98e3a0
SM
517 * font.c (font_update_drivers): Sanity fallback to avoid disabling
518 all drivers.
519
ce1b23bb
SM
520 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
521
bcda200f
YM
5222009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
523
524 * keyboard.h (add_user_signal): Fix typo in extern.
525
526 * lisp.h (add_user_signal): Remove extern.
527
528 * unexelf.c (unexec): Consider a section to precede the .bss section
529 if its addresses overlap that of .bss.
530 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
531 instead of dumping process.
532
864660a2
SM
5332009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
534
535 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
536
50da4e56
SM
5372009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
538
539 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
540
51520a1a
DN
5412009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
542
543 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
544 any statements.
545
409ea3a1
AS
5462009-05-02 Andreas Schwab <schwab@linux-m68k.org>
547
59c4c60f
AS
548 * process.c (read_process_output): Make sure the current buffer is
549 always restored.
550
409ea3a1
AS
551 * coding.c (record_conversion_result): Don't modify
552 Vlast_code_conversion_error for successful result.
553 (alloc_destination): Don't clobber conversion result. (Bug#1650)
554
56f00ed2
KH
5552009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
556
557 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 558 (load_charset_map): Remove unnecessary code.
56f00ed2 559
4491c9d2
DR
5602009-04-30 David Reitter <david.reitter@gmail.com>
561
35f5b128 562 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
563 through f24.
564
6970f632
CY
5652009-04-30 Chong Yidong <cyd@stupidchicken.com>
566
567 * xfaces.c (face_at_buffer_position): New arg base_face_id.
568
569 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
570 face_at_buffer_position.
571 (face_before_or_after_it_pos, get_next_display_element)
572 (note_mouse_highlight): Update face_at_buffer_position call.
573
574 * term.c (term_mouse_highlight):
575 * msdos.c (IT_note_mouse_highlight):
576 * fontset.c (Finternal_char_font):
35f5b128 577 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
578
579 * dispextern.h (face_at_buffer_position): Update prototype.
580
0c616f63
KH
5812009-04-30 Kenichi Handa <handa@m17n.org>
582
35f5b128 583 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 584
ad3aaf33
AS
5852009-04-29 Andreas Schwab <schwab@linux-m68k.org>
586
587 * callproc.c (Fcall_process): Fix GC protection. Make sure
588 current buffer is always restored.
589
c3c963a0
YM
5902009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
591
592 * atimer.c (init_atimer): Also clear stopped_atimers.
593
594 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
595
7e3386cb
YM
596 * process.c (create_process): Clean up merger residues of
597 2008-07-17 change.
598
91f68422
CY
5992009-04-29 Ulrich Mueller <ulm@gentoo.org>
600
601 * lread.c (Vread_circle): New variable.
602 (read1): Disable recursive read if Vread_circle is nil.
603
24b34550
KH
6042009-04-29 Kenichi Handa <handa@m17n.org>
605
606 * fontset.h (set_default_ascii_font): Delete extern.
607
608 * fontset.c (set_default_ascii_font): Delete this unused function.
609
610 * frame.c (x_set_font): When ARG is a font-object, check if the
611 font-object matches with the ASCII font-spec of the frame's
9c358bda 612 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 613
77bf07e1
AS
6142009-04-28 Andreas Schwab <schwab@linux-m68k.org>
615
616 * fns.c (Flocale_info): Protect vector from GC during decoding.
617
618 * process.c (Fstart_process): Protect argv strings from GC during
619 encoding.
620
2c55aacf
AS
6212009-04-27 Andreas Schwab <schwab@linux-m68k.org>
622
623 * sysdep.c: Include <ctype.h>.
624
b892d3c9
DR
6252009-04-27 David Reitter <david.reitter@gmail.com>
626
35f5b128 627 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
628 Remove commented-out code.
629
9d0644c4
JB
6302009-04-26 Johan Bockgård <bojohan@gnu.org>
631
632 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
633
b7053016
JR
6342009-04-25 Jason Rumney <jasonr@gnu.org>
635
636 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
637
4e8231f3
YM
6382009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
639
640 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
641 Swap bytes in short integer if fringe bitmap width > 8.
642
493dcf2c
KH
6432009-04-23 Kenichi Handa <handa@m17n.org>
644
645 * xfaces.c (Fx_list_fonts): If a font size is specified in
646 PATTERN, set it in returned scalable fonts.
647
401e9e57
CY
6482009-04-22 Chong Yidong <cyd@stupidchicken.com>
649
708e05dc
CY
650 * keyboard.c (Fset_input_meta_mode): Doc fix.
651
652 * dispnew.c (Fsend_string_to_terminal): Doc fix.
653
654 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc
655 fixes.
656
657 * coding.c (Fterminal_coding_system): Doc fix.
658
659 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
660 (Fx_display_pixel_height, Fx_display_planes)
661 (Fx_display_color_cells, Fx_server_max_request_size)
662 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
663 (Fx_display_mm_height, Fx_display_mm_width)
664 (Fx_display_backing_store, Fx_display_visual_class)
665 (Fx_display_save_under, Fx_close_connection, Fx_synchronize): Doc
666 fixes, replacing "terminal id" with "terminal object".
667 (check_x_display_info): Handle terminal objects instead of
668 terminal ids.
669
401e9e57
CY
670 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
671 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
fdc496e7
CY
672 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions): Doc
673 fixes, replacing "terminal id" with "terminal object".
401e9e57 674
df80c7f0
KH
6752009-04-21 Kenichi Handa <handa@m17n.org>
676
5a8f12af 677 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 678 (font_score): Check AVGWIDTH too.
908567ef 679
df80c7f0
KH
680 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
681 worst case.
682 (decode_coding_emacs_mule, decode_coding_iso_2022)
683 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
684 Likewise.
685
705af33f
JR
6862009-04-19 Jason Rumney <jasonr@gnu.org>
687
688 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 689 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
690
691 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
692 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
693 get_phys_cursor_geometry.
694
b71ac3dd 695 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
696 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
697 using get_phys_cursor_geometry.
698
699 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
700 correctly calculated.
701
dc2933eb
JD
7022009-04-19 Jan Djärv <jan.h.d@swipnet.se>
703
704 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar): Use
705 G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
706 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
707 is deprecated.
708
973e7849
AS
7092009-04-18 Andreas Schwab <schwab@linux-m68k.org>
710
711 * font.c (font_put_frame_data): Use xfree instead of free.
712
314d66f4
JB
7132009-04-17 Juanma Barranquero <lekktu@gmail.com>
714
715 * w32font.c (Qja, Qko): Remove declarations.
716 (syms_of_w32font): Don't DEFSYM them.
717
cf702558
CY
7182009-04-17 Chong Yidong <cyd@stupidchicken.com>
719
720 * font.c (Qja, Qko): Move definitions here from ftfont.c.
721
722 * font.h (Qja, Qko): Extern them.
723
724 * ftfont.c (Qja, Qko): Remove declarations.
725
726 * xfont.c (Qja, Qko): Remove declarations.
727
b50504f5
KH
7282009-04-17 Kenichi Handa <handa@m17n.org>
729
bde25748
KH
730 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
731 string from a vector to handle Latin-1 characters correctly.
732
b50504f5
KH
733 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
734 entity even if the cache hits.
735
f4646fff
AS
7362009-04-16 Andreas Schwab <schwab@linux-m68k.org>
737
738 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 739 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 740
e7deaab0
AS
741 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
742 * lisp.h: Adjust prototypes.
743
0a0e7d49
CY
7442009-04-16 Chong Yidong <cyd@stupidchicken.com>
745
746 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
747 change (Bug#3003).
748
3c908a57
KH
7492009-04-16 Kenichi Handa <handa@m17n.org>
750
bd0af90d
KH
751 * xfont.c (xfont_has_char): Special handling of `ja' and `ko'
752 adstyle.
753
754 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
755 adstyle.
756
757 * ftfont.c (Qja, Qko): Don't make them static.
758 (enum ftfont_cache_for): New enum.
759 (fc_charset_table): Undo the previous change.
760 (ftfont_get_latin1_charset): Delete it.
761 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache. Set
762 FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
763 non-scarable font, try to get AVERAGE_WIDTH.
764 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
765 Change ft_face_cache from a list of a hash-table. Don't check
766 `ja' and `ko' adstyle here.
767 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
768 FTFONT_CACHE_FOR_CHARET.
769 (ftfont_get_charset): Undo the previous change.
770 (ftfont_open): Call ftfont_lookup_cache with
771 FTFONT_CACHE_FOR_FACE.
772 (ftfont_close): Likewise.
773 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
774
775 * font.c (font_sort_entites): Change the meaning of the arg
776 BEST-ONLY. Don't optimize for VEC of lenght 1.
777 (font_select_entity): Just return the value of font_sort_entites.
778
779 * xfaces.c (merge_face_vectors): Reflect font properties in
780 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
781 font_clear_prop if a face attribute doesn't change.
782
3c908a57
KH
783 * charset.h (charset_ksc5601): Extern it.
784
785 * charset.c (charset_ksc5601): New variable.
786 (Fdefine_charset_internal): Set charset_ksc5601.
787 (init_charset_once): Initialize charset_ksc5601 to -1.
788
d65859c3
DN
7892009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
790
791 * fileio.c (history_delete_duplicates): Remove unused declaration.
792
793 * callint.c (history_delete_duplicates): New declaration.
794 (Fcall_interactively): Remove command history duplicates when
795 history_delete_duplicates is true.
796
3ba010e5
EZ
7972009-04-14 Eli Zaretskii <eliz@gnu.org>
798
799 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
800
06f19b91
KH
8012009-04-14 Kenichi Handa <handa@m17n.org>
802
803 * font.c (Ffont_info): Fix docstring. Fix the second element of
804 the returned value (bug#2949).
805
2cce8bfc
CY
8062009-04-14 Chong Yidong <cyd@stupidchicken.com>
807
808 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
809
d156542d
KH
8102009-04-14 Kenichi Handa <handa@m17n.org>
811
812 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
813 encoding charset is ascii_compatible.
814
815 * charset.c (Fdefine_charset_internal): Make charset
816 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
817 code_offset is 0, and covers all ASCII characters.
818
86fa089e
SM
8192009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
820
821 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
822 (ns_string_to_pasteboard_internal):
823 * nsmenu.m (process_dialog):
824 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
825 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
826 * lisp.h (Fx_load_color_file): Declare.
827
a8a3728b
KH
8282009-04-13 Kenichi Handa <handa@m17n.org>
829
830 * font.c (font_delete_unmatched): Preserve the order of list
831 elements.
832 (font_select_entity): Suppress the code to optimize for the same
833 kind of fonts.
834 (font_load_for_lface): Get a font that supports at least ASCII
835 characters.
836
837 * ftfont.c (Qja, Qko): New variables.
838 (fc_charset_table): Delete uniquifier data for iso8859-1.
839 (ftfont_get_latin1_charset): New function.
840 (get_adstyle_property): New function.
841 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
842 bitmap fonts.
843 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
844 Delete iso-8859-1 range from the charset of fonts whose adstyle is
845 `ko' or `ja'.
846 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
847 (ftfont_get_charset): For iso8859-1, call
848 ftfont_get_latin1_charset.
849 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
850 property.
851 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
852 (syms_of_ftfont): DEFSYM Qja and Qko.
853
483670b5
KH
8542009-04-09 Kenichi Handa <handa@m17n.org>
855
12b55765
KH
856 * charset.c (map_charset_chars): For a charset of `superset'
857 method, fix calculation of code range.
858
483670b5
KH
859 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
860 from the list of extra properties.
861 (font_clear_prop): Be sure to delete `:name' font property.
862
57d3b93b
KH
8632009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
864
b4b2c2ca
YM
865 * dispnew.c (redraw_overlapping_rows): Fix detection of
866 overlapping for topmost and bottommost rows.
867
57d3b93b
KH
868 * ftfont.c (ftfont_text_extents): Fix calculation of
869 metrics->descent.
870
472c3609
JR
8712009-04-06 Jason Rumney <jasonr@gnu.org>
872
873 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
874
ab193662
KH
8752009-04-06 Kenichi Handa <handa@m17n.org>
876
877 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
878
879 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
880
0c26f026
KH
8812009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
882
883 * ftfont.c (ftfont_open): Fix checking of the return value of
884 FT_Load_Char. Fix setting font->underline_thickness.
885
e173bbce
CY
8862009-04-04 Chong Yidong <cyd@stupidchicken.com>
887
888 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
889 (Fterminal_parameters, Fterminal_parameter)
890 (Fset_terminal_parameter): In doc string, refer to terminal
891 objects rather than terminal ids.
892
693a2698
EZ
8932009-04-04 Eli Zaretskii <eliz@gnu.org>
894
895 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
896 ret_lim_data. (Bug#2867)
897
d5221487
CY
8982009-04-03 Chong Yidong <cyd@stupidchicken.com>
899
900 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
901 so they don't get wider than the window, matching 2006-01-23
902 change to the partner function in xdisp.c (Bug#2800).
903
223509a3
KH
9042009-04-03 Kenichi Handa <handa@m17n.org>
905
906 * print.c (print_object): Make each lowest sub_char_table start a
907 new line (Bug#2866).
908
74fcd0b1
KH
9092009-04-02 Kenichi Handa <handa@m17n.org>
910
911 * fontset.c (fontset_font): Record no-font when a fontset
912 explicitly tells not to try another font-specs.
913
c542407d
SM
9142009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
915
916 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
917
e3869731
KH
9182009-03-30 Kenichi Handa <handa@m17n.org>
919
d8d2f142
KH
920 * fontset.c (fontset_from_font): Specify only registry in a
921 font-spec for all characters supported by that registry.
922
e3869731
KH
923 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
924 even if HAVE_M17N_FLT is not defined.
925
5da5f805
CY
9262009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
927
928 * ftfont.c: Conditionalize prototyping and use of
929 ftfont_variation_glyphs.
930
ab226c50
SM
9312009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
932
9628fed7
SM
933 * frame.c (delete_frame): Work around compiler bug.
934
935 * editfns.c (general_insert_function): Adjust to insdel.c changes.
936 * insdel.c (prepare_to_modify_buffer, signal_before_change):
937 Some more EMACS_INT.
938 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
939
940 * xdisp.c (dump_glyph): Fix typo.
941
ae19ba7c
SM
942 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
943 (adjust_markers_gap_motion, adjust_markers_for_delete)
944 (adjust_markers_for_insert, adjust_point)
945 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
946 (make_gap, copy_text, count_size_as_multibyte, insert)
947 (insert_and_inherit, insert_before_markers)
948 (insert_before_markers_and_inherit, insert_1)
949 (count_combining_before, count_combining_after, insert_1_both)
950 (insert_from_string, insert_from_string_before_markers)
951 (insert_from_string_1, insert_from_gap, insert_from_buffer)
952 (insert_from_buffer_1, adjust_after_replace)
953 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
954 (replace_range_2, del_range, del_range_1, del_range_byte)
955 (del_range_both, del_range_2, modify_region)
956 (prepare_to_modify_buffer, signal_before_change)
957 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
958 for buffer positions and sizes.
959 * lisp.h: Adjust prototypes accordingly.
960
961 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
962 (non_regular_inserted, non_regular_nbytes, read_non_regular)
963 (Finsert_file_contents): Use EMACS_INT for buffer positions.
964
ab226c50
SM
965 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
966
46dfb8fb
JD
9672009-03-27 Jan Djärv <jan.h.d@swipnet.se>
968
969 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
970 lines and columns so we keep the same pixel height and width.
971
972 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
973 the property _NET_WM_STATE has changed.
46dfb8fb
JD
974 (x_handle_net_wm_state): New function to update frame parameter
975 fullscreen.
976 (x_term_init): Initialize atoms for _NET_WM_STATE.
977
978 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
979
d347e494
SM
9802009-03-27 Kevin Ryde <user42@zip.com.au>
981
982 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
983 Gpm_GetEvent as an error that justifies closing the filedescriptor.
984 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
985 (Fgpm_mouse_stop): Pass that new parameter.
986 * termhooks.h (close_gpm): Adjust prototype.
987
84db11d6
SM
9882009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
989
c95a5008
SM
990 * lisp.h (Fx_focus_frame): Declare.
991
84db11d6
SM
992 * callint.c (Fcall_interactively): For '^' just delegate the work to
993 handle-shift-selection.
994 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
995
0a1958d6
CY
9962009-03-24 Chong Yidong <cyd@stupidchicken.com>
997
0bfdff23
CY
998 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
999
0a1958d6
CY
1000 * data.c (Qinteractive_form): New variable.
1001 (Finteractive_form): Use it.
1002
1003 * eval.c (Fcommandp): Use Qinteractive_form.
1004
58aec0d6
JR
10052009-03-24 Jason Rumney <jasonr@gnu.org>
1006
1007 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
1008 Calculate total size precisely. Decode environment variables
1009 before substituting. (Bug#38)
1010
553dd618
KH
10112009-03-24 Kenichi Handa <handa@m17n.org>
1012
1013 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 1014 encoding (Bug#2722).
553dd618 1015
c39ea606
JD
10162009-03-23 Jan Djärv <jan.h.d@swipnet.se>
1017
1018 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
1019 that gdpy is set.
1020
bc9b2b5e
AM
10212009-03-22 Alan Mackenzie <acm@muc.de>
1022
1023 * callint.c (Finteractive): Clarify the doc string - even
1024 promptless elements need \n separators.
1025
9f995a76
JR
10262009-03-22 Jason Rumney <jasonr@gnu.org>
1027
1028 * w32term.c (syms_of_w32term): Doc fix for
1029 x-use-underline-position-properties.
1030
22749e9a
EZ
10312009-03-21 Eli Zaretskii <eliz@gnu.org>
1032
1033 * w32.c (getpwuid): Change argument type to unsigned.
1034 (struct w32_id): Change type of `rid' member to unsigned.
1035 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
1036 argument ID to unsigned. All callers changed.
1037 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
1038
e00553bf
EZ
10392009-03-20 Eli Zaretskii <eliz@gnu.org>
1040
1041 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
1042 negative, produce a float value.
1043
1044 * dired.c (make_uid, make_gid): New functions.
1045 (Ffile_attributes): Use them to avoid negative UID and GID.
1046
f761d6b6
JB
10472009-03-20 Juanma Barranquero <lekktu@gmail.com>
1048
1049 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
1050 (syms_of_keyboard) <command-hook-internal, input-method-function>:
1051 Fix typos in docstrings.
1052
d507f8d7
KH
10532009-03-19 Kenichi Handa <handa@m17n.org>
1054
1055 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
1056 changed, use font_load_for_lface to get a new font object.
1057 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
1058
1059 * frame.c (x_set_font): Handle the case that ARG is a cons.
1060
c68845e0
GM
10612009-03-19 Glenn Morris <rgm@gnu.org>
1062
1063 * fileio.c (Fsubstitute_in_file_name): Doc fix.
1064
bfa49dd1
CY
10652009-03-19 Chong Yidong <cyd@stupidchicken.com>
1066
1067 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
1068
8458d4c1
KH
10692009-03-19 Kenichi Handa <handa@m17n.org>
1070
1071 * charset.c (load_charset_map_from_file): When a mapfile can't be
1072 loaded, signal an error.
1073
78e7d1fe
EZ
10742009-03-18 Eli Zaretskii <eliz@gnu.org>
1075
1076 * dired.c (Ffile_attributes): Make sure UID and GID are always
1077 positive, even if the value is too large for a positive EMACS_INT.
1078 Doc fix.
1079
1080 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
1081
5da9fdfa
YM
10822009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1083
1084 * xmenu.c (xdialog_show): Move Fredisplay call ...
1085 (Fx_popup_dialog): ... here.
1086
7519c40d
SM
10872009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
1088
1089 * dired.c (file_name_completion): Disable the first optimization just
1090 installed, since it is not implemented correctly.
1091
2cd298e2
SM
10922009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
1093
1094 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 1095 only if the entry can affect bestmatch.
2cd298e2
SM
1096 Stop the search early, as Ftry_completion already does.
1097
48d37adf
CY
10982009-03-17 Chong Yidong <cyd@stupidchicken.com>
1099
e10c9c93 1100 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 1101
9286b16a
CY
11022009-03-15 Chong Yidong <cyd@stupidchicken.com>
1103
1104 * keyboard.c (parse_menu_item): Don't display remappings as menu
1105 equivalent bindings (Bug#788).
1106
f7b146dc
JR
11072009-03-15 Jason Rumney <jasonr@gnu.org>
1108
1109 * w32term.h (WM_EMACS_PAINT): New message.
1110 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
1111 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
1112 before passing to lisp thread. (Bug#950)
1113
f761d6b6 11142009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 1115
d93f9575
CY
1116 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
1117 variable as it was never reset.
1118 (ns_term_init): Remove initialization of Lisp-settable defaults
1119 and ns_expand_space.
1120 (-setPanelFromDefaultValues): Remove ns_expand_space.
1121 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
1122 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
1123 i.e. no additional spacing, similar to Carbon port.
1124
d93f9575
CY
1125 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
1126 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 1127
305018ec
JD
11282009-03-14 Jan Djärv <jan.h.d@swipnet.se>
1129
1130 * sound.c (alsa_configure): Remove call to deprecated
1131 snd_pcm_sw_params_set_xfer_align.
1132
f761d6b6 11332009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
1134
1135 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
1136 after clicking in a detached tool bar.
1137 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
1138
46e722a9
SM
11392009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
1140
348db3dd
SM
1141 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
1142 int/Lisp_Object mixup).
46e722a9 1143
a3d16f39
KH
11442009-03-13 Kenichi Handa <handa@m17n.org>
1145
1146 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 1147 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
1148 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
1149 (set_fontset_font): Change ARG to a vector. Handle range_list in
1150 ARG correctly.
1151 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 1152 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
1153 the above change.
1154 (fontset_from_font): Fix previous change.
fe24f56a 1155 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
1156 entry. If FONTSET is the default fontset, don't set the extra
1157 slot of the returning char-table.
1158
b066e6b6
JB
11592009-03-12 Juanma Barranquero <lekktu@gmail.com>
1160
1161 * nsfns.m (Fx_close_connection): Doc fix.
1162 (Fns_do_applescript): Reflow docstring.
1163 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
1164 (Fx_display_pixel_width, Fx_display_pixel_height)
1165 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
1166 Fix typos in docstrings.
1167 (Fns_set_alpha): Fix typos in error messages.
1168
d472514e 11692009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 1170
d472514e 1171 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
1172 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
1173 were used for such events.
1174
d472514e
JB
1175 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
1176 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 1177
d472514e 1178 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
1179 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
1180
fb930676
KH
11812009-03-11 Kenichi Handa <handa@m17n.org>
1182
ff85581a
KH
1183 * font.h (font_open_by_spec): Extern it.
1184
c50b7e98
KH
1185 * font.c (font_open_by_spec): New function.
1186 (font_open_by_name): Use font_open_by_spec.
1187
fb930676
KH
1188 * frame.c (x_set_font): When ARG is a font-object, don't alter the
1189 fontset of the frame.
1190
1191 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
1192 modify the default font of frames that use this fontset.
1193 (num_auto_fontsets): New variable.
1194 (fontset_from_font): Use num_auto_fontsets to decide a fontset
1195 name. Be sure to set FONTSET_ASCII to the correct font name.
1196 (update_auto_fontset_alist): New function.
1197
df4e8455
JB
11982009-03-11 Juanma Barranquero <lekktu@gmail.com>
1199
1200 * makefile.w32-in: Update dependencies.
1201
0a375797
AR
12022009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
1203
1204 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
1205
61313fa3
SM
12062009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
1207
1208 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
1209
b55103fb
CY
12102009-03-10 Chong Yidong <cyd@stupidchicken.com>
1211
1212 * lread.c (Feval_buffer): Doc fix.
1213
dde2559c
KH
12142009-03-09 Kenichi Handa <handa@m17n.org>
1215
1216 * charset.c (Qfile_name_handler_alist): Extern it.
1217 (load_charset_map_from_file): Temporarily bind
1218 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
1219
df4e8455 12202009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 1221
47f588bb
GM
1222 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
1223 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 1224
4ddf94bd
AR
12252009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
1226
4c9bdfc2
AR
1227 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
1228 (x_set_window_size): Change back to calculated method of setting
1229 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
1230 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
1231 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
1232
fe41ae9e
AR
1233 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
1234
4c9bdfc2
AR
1235 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
1236 accelerator in parens under GNUstep.
1237
825d0875
KH
12382009-03-06 Kenichi Handa <handa@m17n.org>
1239
1240 These changes are to detect incorrect composition sequence without
f3b3be74 1241 looking ahead the source. (Bug#2370)
825d0875
KH
1242
1243 * coding.h: Include "composite.h".
1244 (enum compisition_state): New enum.
1245 (struct compisition_status): New struct.
1246 (struct iso_2022_spec): New member cmp_status.
1247 (struct emacs_mule_spec): New struct.
1248 (struct coding_system): New members ctext_extended_segment_len and
1249 embedded_utf_8. Change the union member
1250 spec.emacs_mule_full_support to spec.emacs_mule.
1251
1252 * coding.c (CODING_ISO_CMP_STATUS): New macro.
1253 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 1254 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
1255 (ADD_COMPOSITION_DATA): New arg nbytes.
1256 (emacs_mule_char): New arg cmp_status.
1257 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
1258 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
1259 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
1260 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
1261 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
1262 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
1263 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
1264 (EMACS_MULE_COMPOSITION_END): New macro.
1265 (emacs_mule_finish_composition): New function.
1266 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
1267 (decode_coding_emacs_mule): Avoid long looking ahead while
1268 handling composition.
1269 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
1270 (ENCODE_COMPOSITION_RULE): New macro.
1271 (finish_composition): New function.
1272 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
1273 (DECODE_COMPOSITION_START): New implementation.
1274 (DECODE_COMPOSITION_END): Likewise.
1275 (STORE_COMPOSITION_RULE): New macro.
1276 (decode_coding_iso_2022): Avoid long looking ahead while handling
1277 composition, CTEXT extended segment, and embedded UTF-8.
1278 (setup_coding_system): For a coding of type iso-2022, reset
1279 CODING_ISO_EXTSEGMENT_LEN (coding) and
1280 CODING_ISO_EMBEDDED_UTF_8 (coding).
1281 (get_translation): Delete arguments last_block, from_nchars,
1282 to_nchars. Callers changed.
1283 (produce_chars): Don't modify charbuf. Adjusted for the change of
1284 get_translation.
98a326f7 1285 (produce_composition): Adjust for the new annotation sequence.
825d0875 1286 (handle_composition_annotation): Likewise.
98a326f7 1287 (consume_chars): Adjust for the change of get_translation.
825d0875 1288
ccbc4452
AR
12892009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
1290
4ddf94bd 1291 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 1292
988a7ddb
KH
12932009-03-05 Kenichi Handa <handa@m17n.org>
1294
1295 * font.c (font_select_entity): New function.
1296 (font_find_for_lface): Use font_select_entity to select a font.
1297
1298 * fontset.c (fontset_find_font): If a font found without
a8a3728b 1299 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
1300 font with C restriction.
1301
98a326f7 13022009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 1303
be1bce46 1304 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 1305
10ea2b82
JR
13062009-03-04 Jason Rumney <jasonr@gnu.org>
1307
2c93b248 1308 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 1309 characters that have already been read. (Bug#2569)
2c93b248 1310
10ea2b82
JR
1311 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
1312 Log an error message if check_image_size failed.
1313 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 1314 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 1315
71a0c011
EZ
13162009-03-02 Eli Zaretskii <eliz@gnu.org>
1317
1318 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
1319 when decoding process output.
1320
2f63bba8
RS
13212009-03-01 Richard M Stallman <rms@gnu.org>
1322
1323 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
1324
1325 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
1326
0a9564cb
EZ
13272009-02-28 Eli Zaretskii <eliz@gnu.org>
1328
1329 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
1330 (decode_coding_emacs_mule, decode_coding_iso_2022)
1331 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
1332 (decode_coding_raw_text, decode_coding_charset)
1333 (setup_coding_system, decode_eol, decode_coding, consume_chars):
1334 Honor inhibit-eol-conversion. (Bug #2186)
1335
449148b3
JR
13362009-02-28 Jason Rumney <jasonr@gnu.org>
1337
1338 * coding.c (detect_coding_charset): If not checking latin extra,
1339 fail on characters between 0x80 and 0xA0. (Bug#2354)
1340
a4aee864
EZ
13412009-02-28 Eli Zaretskii <eliz@gnu.org>
1342
1343 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 1344 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 1345
d88bee5a
GM
13462009-02-27 Glenn Morris <rgm@gnu.org>
1347
1348 * callint.c (Finteractive): Doc fix.
1349
a808f22d
KH
13502009-02-27 Kenichi Handa <handa@m17n.org>
1351
1352 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
1353
caf8d60c
CY
13542009-02-27 Chong Yidong <cyd@stupidchicken.com>
1355
1356 * font.c (font_style_to_value): Set value for unknown symbols to
1357 100 instead of 255.
b61137ea
CY
1358 (weight_table, slant_table, width_table): Treat "unspecified" as
1359 the default value.
caf8d60c 1360
1a0de25c
JB
13612009-02-26 Juanma Barranquero <lekktu@gmail.com>
1362
1363 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
1364
8fc45744
JB
13652009-02-25 Juanma Barranquero <lekktu@gmail.com>
1366
107bd7d1
JB
1367 * lread.c (Fload): Stop checking Vloads_in_progress and signal
1368 error as soon as a recursive load is detected.
8fc45744 1369
f097e223
AR
13702009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
1371
1372 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
1373 before caching.
1374
8810a12f
KH
13752009-02-24 Kenichi Handa <handa@m17n.org>
1376
1377 * fontset.c (fontset_find_font): Fix the condition for checking
1378 unavailable font.
1379
2c7d1565
GM
13802009-02-24 Glenn Morris <rgm@gnu.org>
1381
1382 * xfaces.c (Finternal_set_font_selection_order): Remove leading
1383 whitespace that confuses documentation.
1384
a20878b6
MB
13852009-02-23 Miles Bader <miles@gnu.org>
1386
1387 * process.c (Flist_system_processes, Fprocess_attributes)
1388 (syms_of_process): Rename `system-process-attributes' to
1389 `process-attributes'.
1390
b3b58c01
AS
13912009-02-22 Andreas Schwab <schwab@linux-m68k.org>
1392
1b3b981b
AS
1393 * coding.h (struct coding_system): Make safe_charsets a pointer to
1394 unsigned char.
1395 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
1396 being 255.
1397 (SAFE_CHARSET_P): Likewise.
1398 (setup_iso_safe_charsets): Properly setup safe_charsets.
1399 (Fdefine_coding_system_internal): Likewise.
1400 (setup_coding_system): Likewise. Remove unneeded casts.
1401 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
1402 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
1403 unneeded casts.
1404
b3b58c01
AS
1405 * insdel.c (del_range_2): Don't modify gap contents when called
1406 from decode_coding_object. (Bug#1809)
1407
0b6f228c
CY
14082009-02-21 Chong Yidong <cyd@stupidchicken.com>
1409
1410 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
1411 Qfont_object.
1412 (Ftype_of): Recognize font objects.
1413
1414 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
1415
1416 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
1417 moved to data.c.
1418
52f8870b
AR
14192009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
1420
1421 * nsterm.m (x_make_frame_invisible): Unset async_visible,
1422 async_iconified. Based on a patch by Christian Lynbech
1423 <christian.lynbech@tieto.com>.
1424 (EmacsView-windowDidMiniaturize:): Unset async_visible.
1425
7087d5e9
GM
14262009-02-20 Glenn Morris <rgm@gnu.org>
1427
1428 * syntax.c (Fskip_chars_forward): Fix doc typo.
1429
41d2ceef
CY
14302009-02-20 Chong Yidong <cyd@stupidchicken.com>
1431
1432 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
1433
1a3b7ca6
CY
14342009-02-19 Chong Yidong <cyd@stupidchicken.com>
1435
1436 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
1437
73cce38d
KH
14382009-02-19 Kenichi Handa <handa@m17n.org>
1439
1440 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 1441 Don't overflow coding->carryover. (Bug#2370)
73cce38d 1442
a51092ee
DN
14432009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
1444
1445 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
1446
c423ecca
KH
14472009-02-18 Kenichi Handa <handa@m17n.org>
1448
1449 * font.c (font_check_otf_features): Fix handling of `nil' element.
1450 (Ffont_spec): Describe :lang and :otf in the docstring.
1451
4c1958f4
AS
14522009-02-16 Andreas Schwab <schwab@suse.de>
1453
1454 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
1455 string.
1456
5704f39a
KH
14572009-02-16 Kenichi Handa <handa@m17n.org>
1458
1459 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 1460 (Bug#1723)
5704f39a 1461
8f0085aa
CY
14622009-02-14 Chong Yidong <cyd@stupidchicken.com>
1463
a057d86a 1464 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
1465
1466 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
1467 (handle_line_prefix): Suppress wrapping of wrap prefixes.
1468
aff01dd9
EZ
14692009-02-14 Eli Zaretskii <eliz@gnu.org>
1470
1471 * msdos.c (MAX_SCREEN_BUF): New macro.
1472 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
1473 Encode the entire run of glyphs sharing the same face, instead of
1474 doing that one glyph at a time (fixes a bug with displaying
1475 double-size characters).
1476
ba301db3
AR
14772009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
1478
1479 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
1480
1481 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
1482 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 1483 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
1484
1485 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 1486 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 1487
51d861de
SM
14882009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
1489
1490 * keyboard.c (adjust_point_for_property): Allow stopping betwen two
1491 invisible areas.
1492
7fed8996
JR
14932009-02-12 Jason Rumney <jasonr@gnu.org>
1494
631ea4fb
JR
1495 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
1496 (add_font_entity_to_list): Call check_face_name even when family
1497 is unspecified.
1498
cb4a3e42
JR
1499 * w32term.c (x_display_pixel_height, x_display_pixel_width):
1500 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 1501 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 1502
7fed8996 1503 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 1504 raster fonts. (Bug#2219)
7fed8996 1505
895416e3
KH
15062009-02-12 Kenichi Handa <handa@m17n.org>
1507
1508 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
1509 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
1510 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 1511 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
1512 (find_automatic_composition): While looking forward and backward,
1513 check static composition. Fix where to stop looking forward.
1514 (composition_adjust_point): Fix checking of static composition.
1515 (Fcomposition_get_gstring): Pay attention to
1dacf998 1516 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
1517
1518 * lisp.h (fast_looking_at): Extern it.
1519
1520 * search.c (fast_looking_at): New function.
1521
51d861de 1522 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
1523 <struct glyph>.u.cmp.to.
1524 (append_composite_glyph): Likewise.
1525
51d861de 1526 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
1527 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
1528 composition.
51d861de 1529 (append_composite_glyph): Adjust for the change of
895416e3
KH
1530 <strcut glyph>.u.cmp.to.
1531
8510724d
JB
15322009-02-11 Juanma Barranquero <lekktu@gmail.com>
1533
1534 * casetab.c (init_casetab_once):
1535 * coding.c (ALLOC_CONVERSION_WORK_AREA):
1536 * font.c (font_update_lface):
1537 * fontset.c (Fnew_fontset):
1538 * ftfont.c (ftfont_drive_otf):
1539 * xfont.c (xfont_open):
1540 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
1541
294fa707
SM
15422009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
1543
1544 * fileio.c (Fwrite_region): !NILP -> CONSP.
1545
b5bfebec
AS
15462009-02-10 Andreas Schwab <schwab@suse.de>
1547
1548 * process.c (send_process): Properly relocate pointer into data
adab88bd 1549 when using encoded data. (Bug#2272)
b5bfebec 1550
cb84a2be
KH
15512009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
1552
1553 * coding.c (detect_coding_charset): Fix previous change.
1554
89e09428
JR
15552009-02-08 Jason Rumney <jasonr@gnu.org>
1556
1557 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 1558 disappeared while hourglass was displayed. (Bug #2193)
89e09428 1559
4470a277
AS
15602009-02-07 Andreas Schwab <schwab@suse.de>
1561
1562 * unexelf.c (unexec): Fix error message.
1563
3175b12a
AR
15642009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
1565
1566 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 1567 when modal window is active. (Bug #2152)
3175b12a
AR
1568 (applicationShouldTerminate:): Remove now-unneeded while loop
1569 around NSRunAlertPanel.
1570
1571 * nsmenu.m (popupSession): New file-global variable.
1572 (pop_down_menu): End the popupSession before closing dialog.
1573 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
1574 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
1575 don't query NSApp for events (just sleep instead).
1576
8434d0b8
EZ
15772009-02-07 Eli Zaretskii <eliz@gnu.org>
1578
51d861de
SM
1579 * coding.c (syms_of_coding) <translation-table-for-input>:
1580 Modify doc string to discourage use for character code unification.
8434d0b8 1581
aa82edfd
CY
15822009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1583
1584 * atimer.c (run_timers): Update pending_atimers.
1585
2d283c7c
CY
15862009-02-06 Chong Yidong <cyd@stupidchicken.com>
1587
eb306cab
CY
1588 * image.c (svg_load_image): Fix last change.
1589
2d283c7c
CY
1590 * xfns.c (Fx_create_frame): Signal an error if no font is
1591 found (Bug#2147).
1592
4d8e170e
JB
15932009-02-05 Juanma Barranquero <lekktu@gmail.com>
1594
1595 * character.c (syms_of_character) <script-representative-chars>:
1596 Fix typo in docstring.
1597
c96169a0
AR
15982009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
1599
1600 * nsmenu.m (pop_down_menu): New function.
1601 (ns_popup_dialog): Call it on unwind.
1602 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
1603 call timer_check() (Bug#2154).
1604 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
1605 handling_signal is set.
1606 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
1607
1608 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G
1609
1610 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
1611
1612 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
1613
51d861de
SM
1614 * keyboard.c (poll_for_input_1, handle_async_input):
1615 Set handling_signal under HAVE_NS.
c96169a0 1616
aacd8ba1
GM
16172009-02-04 Glenn Morris <rgm@gnu.org>
1618
1619 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
1620
4cb75c4b
KH
16212009-02-04 Kenichi Handa <handa@m17n.org>
1622
1623 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
1624
1625 * charset.c (Fchar_charset): New optional arg restriction.
1626
1627 * coding.h (coding_system_charset_list): Extern it.
1628
1629 * coding.c (coding_system_charset_list): New function.
1630
1631 * composite.c: Include coding.h and termhooks.h.
1632 (composition_gstring_p): Fix for the terminal case.
1633 (composition_gstring_width): Likewise.
1634 (fill_gstring_body): Likewise.
1635 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
1636 the frame.
1637 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
1638 is within a composition.
867d4bb3 1639 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
1640
1641 * term.c (encode_terminal_code): Fix handling of composition.
1642 (produce_composite_glyph): For static composition, get pixel_width
1643 from struct composition.
1644
826ba17e
AS
16452009-02-02 Andreas Schwab <schwab@suse.de>
1646
1647 * unexelf.c (unexec): Handle unaligned bss offset.
1648
8ad093db
AR
16492009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
1650
1651 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
1652 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 1653
8ad093db
AR
1654 * keyboard.c (handle_interrupt): Don't call
1655 quit_throw_to_read_char() under NS.
d0a76a6e 1656
8ad093db
AR
1657 * blockinput.h: Remove NS-specific code.
1658
4d18a7a2
DN
16592009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
1660
db878925
DN
1661 * dispnew.c (window_change_signal): Don't try to get the size of a
1662 suspended tty frame.
1663 * term.c (Fresume_tty): Resize if the size has changed while the
1664 tty was suspended.
1665
4d18a7a2
DN
1666 * alloc.c (mark_stack): Properly conditionalize previous change.
1667
8984df7c
JB
16682009-01-30 Juanma Barranquero <lekktu@gmail.com>
1669
1670 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
1671 * w32term.c (w32_read_socket) [SYNC_INPUT]:
1672 Remove; this code is not used on Windows.
1673
75f4f1ac
EZ
16742009-01-30 Eli Zaretskii <eliz@gnu.org>
1675
1676 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
1677 EOLs that also has stray ^M characters.
1678
07a1e794
JB
16792009-01-30 Juanma Barranquero <lekktu@gmail.com>
1680
1681 * atimer.c (run_timers, alarm_signal_handler):
1682 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
1683 * w32inevt.c (w32_console_read_socket):
1684 * w32term.c (w32_read_socket):
1685 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
1686
a8b11cc9
CY
16872009-01-30 Chong Yidong <cyd@stupidchicken.com>
1688
1689 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
1690 Initialize it as a relative filename pattern.
1691 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
1692 (Fcall_process_region): Simplify temp file creation using
1693 temporary-file-directory.
1694
c279587b
EZ
16952009-01-29 Eli Zaretskii <eliz@gnu.org>
1696
1697 * msdos.c: Rename pending_signals to msdos_pending_signals.
1698 (sig_suspender, sigprocmask): Adjust.
1699
a8fe3242
CY
17002009-01-29 Chong Yidong <cyd@stupidchicken.com>
1701
1702 * keyboard.c (pending_signals): New var.
1703 (poll_for_input, input_available_signal, init_keyboard): Set it.
1704 (process_pending_signals): New function.
1705
1706 * lisp.h (QUIT): Check pending_signals instead of
1707 interrupt_input_pending. Use process_pending_signals.
1708
51d861de 1709 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 1710
51d861de 1711 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
1712
1713 * sysdep.c (emacs_write): Use process_pending_signals.
1714
1715 * xterm.c (XTread_socket): Update pending_signals.
1716
1717 * w32term.c (w32_read_socket): Update pending_signals.
1718
1719 * w32inevt.c (w32_console_read_socket): Update pending_signals.
1720
6570a1c4
KH
17212009-01-29 Kenichi Handa <handa@m17n.org>
1722
1723 * xftfont.c (xftfont_has_char): New function.
1724 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
1725
d72a4afa
AR
17262009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
1727
1728 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
1729 under GNUstep.
1730 (ns_query_color): New declaration.
1731
1732 * nsterm.m (ns_confirm_quit): New variable.
1733 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
1734 (EmacsApp-applicationShouldTerminate:): Use it.
1735 (EmacsPrefsController): Let user set it.
1736 (ns_query_color): New function.
1737 (ns_defined_color): Use it.
1738 (ns_initialize): Drop.
1739 (ns_term_init): Add two lines from ns_initialize(), and set
1740 input_interrupt_mode to nil.
1741
1742 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 1743 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 1744
9fe78804
KH
17452009-01-28 Kenichi Handa <handa@m17n.org>
1746
1747 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
1748 (fontset_get_font_group): Remember that no font-group is specified
1749 for C.
9fe78804 1750
fa57de36
CY
17512009-01-27 Chong Yidong <cyd@stupidchicken.com>
1752
930600e9
CY
1753 * fns.c (concat): Check for string overflow (bug#1787).
1754
fa57de36
CY
1755 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
1756 Quadruple undo limits (bug#1501).
1757
7179ce7b
KH
17582009-01-27 Kenichi Handa <handa@m17n.org>
1759
1760 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
1761 directly use GT_Get_Char_index.
1762
1763 * xftfont.c (struct xftfont_info): New member `index'.
1764
1765 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 1766 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 1767
5be8fcc0
CY
17682009-01-26 Kenichi Handa <handa@m17n.org>
1769
1770 * fontset.c (fontset_find_font): Fix handling of non-cons return
1771 value of fontset_get_font_group.
1772 (fontset_font): Revert last change.
1773
19ae3e61
JR
17742009-01-26 Jason Rumney <jasonr@gnu.org>
1775
1776 * w32font.c (w32font_list_internal): Return quickly if registry is
1777 unknown. Simplify final return.
1778 (add_font_entity_to_list): Break complex logic down into more
1779 manageable chunks. Move unknown registry check to
1780 w32font_list_internal.
1781
8612b71a
AR
17822009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
1783
1784 Changes to remove Feval calls from GUI under NS.
1785
d8038940
JB
1786 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
1787 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
1788 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
1789
1790 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
1791 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
1792 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
1793 instead of NON_ASCII_KEYSTROKE_EVENT.
1794 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
1795 (EmacsApp-applicationShouldTerminate:): Query user.
1796 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
1797 instead of Feval.
1798
1799 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
1800
1801 * keyboard.c (kbd_buffer_get_event): Check for it.
1802 (keys_of_keyboard): Define lispy keys for
1803 ns-put/unput-working-text.
1804
1805 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
1806 versions.
1807 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
1808
6288ae55
CY
18092009-01-25 Chong Yidong <cyd@stupidchicken.com>
1810
1811 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 1812 setting current_buffer directly. (Bug#2044)
6288ae55 1813
289e7f8f
CY
18142009-01-24 Chong Yidong <cyd@stupidchicken.com>
1815
5ce87308 1816 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 1817 any work. (Bug#1952, bug#1990).
5ce87308 1818
64cc3cf6 1819 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 1820
b3243e6f
AR
18212009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
1822
1823 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
1824 (ns_no_defaults): New declaration.
1825 (main): Use it.
e0d2e69a 1826
d900b2af 1827 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 1828
d900b2af 1829 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 1830
d900b2af
AR
1831 * nsterm.m (ns_no_defaults): New variable.
1832 (ns_initialize): Don't read defaults when ns_no_defaults.
1833 (EmacsView-readSelectionFromPasteboard:)
1834 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 1835 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
1836 (ns_dumpglyphs_stretch): New function.
1837 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 1838 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 1839
e0d2e69a
AR
1840 * nsimage.m (setPixmapData:): Set to ignore image DPI.
1841
3ac71f5d
CY
18422009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
1843
1844 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
1845 call for Sparc64.
1846
3fe53a83
AR
18472009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
1848
1849 * nsfns.m:
1850 * nsgui.h:
1851 * nsmenu.m:
1852 * nsselect.m:
1853 * nsterm.h:
1854 * nsterm.m: Remove '23' comments that indicated code added during
1855 update from emacs-20 -> emacs-23.
1856
10f87c6f 18572009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
1858
1859 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 1860 ns_alternate_modifier. (Bug#1217)
a3b53a85 1861
c7cef62d
AR
1862 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
1863 Display all shortcuts, including those w/o super modifier.
1864
575fb8bd
AR
1865 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
1866
918b848b
CY
18672009-01-22 Chong Yidong <cyd@stupidchicken.com>
1868
1869 * fileio.c (Vwrite_region_post_annotation_function)
1870 (Vwrite_region_annotation_buffers): New vars.
1871 (build_annotations_unwind): Just reset
1872 Vwrite_region_annotation_buffers.
1873 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
1874 Call write-region-post-annotation-function.
1875 (build_annotations): Add to Vwrite_region_annotation_buffers if
1876 buffer changes.
1877
a39e2539
AR
18782009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
1879
1880 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
1881 Tiger.
51d861de
SM
1882 * nsfns.m (ns_do_applescript):
1883 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 1884
35ed44db
AR
18852009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
1886
1887 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
1888
cbe0b5bf
AR
18892009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
1890
1891 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 1892
6049d3a0
AR
1893 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
1894
1895 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
1896 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
1897 handle Ctrl-tab. (Bug#1841)
1898 (ns_get_color): Use unsigned long long for scanned hex string value.
1899 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 1900 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 1901 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 1902 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 1903 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 1904 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 1905 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 1906
d3810c21 1907 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 1908 DPI. (Bug#1316)
d3810c21
AR
1909 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
1910 values in onTiger section.
4c7077c3 1911
e301e634
CY
19122009-01-19 Chong Yidong <cyd@stupidchicken.com>
1913
7f82490b
CY
1914 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
1915 Check return value of font_spec_from_name.
64cc3cf6 1916 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
1917
1918 * font.c (font_spec_from_name): Return Qnil if font name could not
1919 be parsed.
1920 (font_parse_name): Treat a `?' character as part of an XLFD.
1921
e301e634
CY
1922 * fns.c (Fsubstring): Doc fix.
1923
1c0db158
KH
19242009-01-19 Kenichi Handa <handa@m17n.org>
1925
51d861de 1926 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
1927 (ftfont_list): Likewise.
1928
acf20901
JB
19292009-01-18 Juanma Barranquero <lekktu@gmail.com>
1930
fff4e459
JB
1931 * dbusbind.c (Fdbus_register_signal):
1932 * process.c (conv_sockaddr_to_lisp):
1933 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
1934
acf20901
JB
1935 * callproc.c (Fgetenv_internal): Doc fix.
1936
e7abcdfb
CY
19372009-01-16 Chong Yidong <cyd@stupidchicken.com>
1938
1939 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
1940 it is not even used.
1941
b60861e6
GM
19422009-01-16 Glenn Morris <rgm@gnu.org>
1943
1944 * font.c (Ffont_variation_glyphs): Silence compiler.
1945
8db52afe
JB
19462009-01-15 Juanma Barranquero <lekktu@gmail.com>
1947
1948 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
1949 Reported by David Robinow <drobinow@gmail.com>.
1950
4cddb209
KH
19512009-01-15 Kenichi Handa <handa@m17n.org>
1952
51d861de 1953 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 1954
f247f67b
JR
19552009-01-14 Jason Rumney <jasonr@gnu.org>
1956
1957 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 1958 never a fontset. (Bug#1562)
f247f67b 1959
f56a4450
KH
19602009-01-14 Kenichi Handa <handa@m17n.org>
1961
1962 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 1963 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 1964
4e99855e
CY
19652009-01-13 Chong Yidong <cyd@stupidchicken.com>
1966
1967 * font.c (font_clear_prop): If clearing the family, clear the font
1968 width index too.
1969
fff4e459 1970 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 1971
24f01470
JB
19722009-01-12 Juanma Barranquero <lekktu@gmail.com>
1973
1974 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
1975 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
1976 functions, use sizeof.
1977
a41240a3
MR
19782009-01-12 Martin Rudalics <rudalics@gmx.at>
1979
1980 * keyboard.c (read_char): Fix case where last_nonmenu_event
1981 returned a bad value with submenus. (Bug#447)
1982
944636b8
CY
19832009-01-12 Chong Yidong <cyd@stupidchicken.com>
1984
1985 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
1986 family, clear the font width index too.
1987
0dad7c6f
JR
19882009-01-11 Jason Rumney <jasonr@gnu.org>
1989
1990 * keyboard.c (cmd_error_internal): Exit when errors occur before
1991 frame creation and not in daemon mode. (Bug#1836)
1992
7c2363af
CY
19932009-01-10 Chong Yidong <cyd@stupidchicken.com>
1994
1995 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
1996 of a display vector, backtrack.
1997 (try_window_reusing_current_matrix): Check glyph type before
1998 referencing charpos member.
1999
97b1b294
EZ
20002009-01-10 Eli Zaretskii <eliz@gnu.org>
2001
2002 Fix Bug #876:
2003
2004 * coding.c (inhibit_null_byte_detection): New variable.
2005 (detect_coding, detect_coding_system): Don't pay attention to null
2006 bytes if inhibit_null_byte_detection is non-zero.
51d861de 2007 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
2008 <inhibit-iso-escape-detection>: Doc fix.
2009
4624b6e3
JR
20102009-01-09 Jason Rumney <jasonr@gnu.org>
2011
2012 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 2013 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
2014 Only report Unicode Plane 2 fonts as unicode-sip.
2015
323b840c
CY
20162009-01-09 Chong Yidong <cyd@stupidchicken.com>
2017
51d861de
SM
2018 * xfaces.c (Fx_font_family_list): Delete function.
2019 Move compatibility version to faces.el.
323b840c 2020
51d861de 2021 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 2022
eba7400d
MR
20232009-01-09 Martin Rudalics <rudalics@gmx.at>
2024
2025 * frame.c (x_set_frame_parameters): Remember requested value for
2026 fullscreen before it's reset by the parameter handler.
2027
4b09796d
GM
20282009-01-09 Glenn Morris <rgm@gnu.org>
2029
2030 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 2031 (last_command_event): ... and update all users.
4b09796d
GM
2032 (last_input_char): For clarity, rename to...
2033 (last_input_event): ... and update all users.
2034 (last-command-char, last-input-char): Move to subr.el as aliases.
2035 * cmds.c, commands.h: Update for last_command_char rename.
2036
14ccea62
CY
20372009-01-08 Chong Yidong <cyd@stupidchicken.com>
2038
51d861de 2039 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 2040
5f004711
JR
20412009-01-08 Jason Rumney <jasonr@gnu.org>
2042
2043 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
2044 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
2045 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
2046 Don't declare.
fff4e459 2047 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
2048 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
2049
b71f6f73
KH
20502009-01-07 Kenichi Handa <handa@m17n.org>
2051
50b06221 2052 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 2053 remember the coding system used for decoding in
50b06221
KH
2054 coding_system (Bug#1039).
2055
b71f6f73 2056 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 2057 breaking the loop. (Bug#870)
b71f6f73
KH
2058 (decode_coding_utf_16, decode_coding_emacs_mule)
2059 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
2060 (decode_coding_charset): Likewise.
2061
56f668f7
MR
20622009-01-05 Martin Rudalics <rudalics@gmx.at>
2063
2064 * frame.c (x_set_frame_parameters): Make sure height (width) get
2065 applied when fullwidth (fullheight) is set. (Bug#1522)
2066
5da9424d
JB
20672009-01-04 Juanma Barranquero <lekktu@gmail.com>
2068
2069 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
2070 (utc_base): Declare as ULONGLONG, not long double.
2071 (convert_time_raw): Delete.
2072 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
2073 (initialize_utc_base): New function.
2074 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
2075 (convert_from_time_t): Use initialize_utc_base; compute result with
2076 64-bit arithmetic.
2077 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
2078
c4605e09
EZ
20792009-01-03 Eli Zaretskii <eliz@gnu.org>
2080
9acef61c 2081 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
2082 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
2083 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
2084 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
2085 [!subprocesses]: Define.
2086 (syms_of_process) [!subprocesses]: Intern and staticpro them.
2087 (Flist_system_processes, Fsystem_process_attributes)
2088 [!subprocesses]: Call list_system_processes and
2089 system_process_attributes instead of returning Qnil.
2090
9acef61c
JB
2091 * dosfns.c (system_process_attributes, list_system_processes):
2092 New functions.
c4605e09
EZ
2093
2094 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
2095
2096 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
2097 Don't use the default (no-op) implementation.
2098
8b7d0a16
JR
20992009-01-03 Jason Rumney <jasonr@gnu.org>
2100
a6d46bc1
JR
2101 * keyboard.c (parse_modifiers_uncached): Wheel events are
2102 clicks (bug#687).
2103
8b7d0a16
JR
2104 * w32term.c (x_query_colors, x_query_color): New functions.
2105
2106 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
2107 (svg_load_image): Cast returned pointers from dynamically loaded
2108 functions. Eliminate W32 specific code.
2109
bfe11752
DN
21102009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
2111
89e2438a
DN
2112 * nsfns.m (x_set_foreground_color, x_set_background_color)
2113 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
2114 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
2115 x_ prefix instead of ns_. Update references.
2116 (syms_of_nsfns): Add a FIXME comment.
2117
2118 * nsterm.m (x_set_cursor_type): New prototype.
2119 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
2120
bfe11752
DN
2121 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
2122 for Solaris instead of incorrectly providing Qutime and Qcutime.
2123
031da700
EZ
21242009-01-02 Eli Zaretskii <eliz@gnu.org>
2125
2126 * w32.c (process_times): Compute sum of utime and stime.
2127 (system_process_attributes): Add Qtime to the alist.
2128
2129 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
2130 and add them to the alist.
2131
2132 * process.c (top level) <Qtime, Qctime>: New variables.
2133 (syms_of_process): staticpro them.
2134 (Fsystem_process_attributes): Add their documentation to the doc
2135 string.
2136
2137 * process.h: Declare Qtime and Qctime.
2138
df23bf08
JR
21392009-01-02 Jason Rumney <jasonr@gnu.org>
2140
9acef61c 2141 * image.c (Qgobject): New symbol.
df23bf08
JR
2142 (syms_of_image): Initialize it.
2143 (init_svg_functions): Load some functions from gobject library.
2144
5bbdf7aa
DN
21452009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
2146
2147 * frame.c (make_terminal_frame): Remove redundant code and useless
2148 block.
2149
63136da6
AS
21502009-01-01 Andreas Schwab <schwab@suse.de>
2151
2152 * process.c (conv_sockaddr_to_lisp): Add workaround for
2153 getsockname bug on BSD.
2154
9ef69046
CY
21552009-01-01 Chong Yidong <cyd@stupidchicken.com>
2156
d6fafbe0
CY
2157 * xfns.c (x_create_tip_frame): Set border width of the X window.
2158
51d861de 2159 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 2160
f9c34147
JR
21612009-01-01 Jason Rumney <jasonr@gnu.org>
2162
9acef61c 2163 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
2164 Don't block input, as per earlier xterm.c changes.
2165
f5497e45
AR
21662008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
2167
2168 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
2169 (ns_appkit_version_int): New function.
2170 (x-server-version): Use ns_appkit_version_int and follow 21+
2171 convention of returning 3 integers.
2172
c19cab20
KH
21732008-12-30 Kenichi Handa <handa@m17n.org>
2174
2175 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
2176 (CHAR_SURROGATE_PAIR_P): New macro.
2177
2178 * font.h (struct font_driver): New member get_variation_glyphs.
2179
9acef61c 2180 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
2181 (Ffont_variation_glyphs): New function.
2182 (syms_of_font): Defsubr it.
2183
2184 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
2185 ftfont_variation_glyphs.
2186 (setup_otf_gstring): New function.
2187 (ftfont_drive_otf): Use it.
2188 (ftfont_shape_by_flt): Handle variation selector.
2189 (ftfont_variation_glyphs): New function.
2190
28cd591f
MR
21912008-12-30 Martin Rudalics <rudalics@gmx.at>
2192
2193 * frame.c (Vemacs_iconified): Remove.
2194
7f714baf
JR
21952008-12-30 Jason Rumney <jasonr@gnu.org>
2196
2197 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 2198 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 2199
9d2d22ab
CY
22002008-12-30 Chong Yidong <cyd@stupidchicken.com>
2201
2202 * indent.c (Fvertical_motion): Don't advance iterator if we have
2203 reseated to the desired position.
2204
2205 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
2206 checking for pos match.
2207
545312c2
KH
22082008-12-30 Kenichi Handa <handa@m17n.org>
2209
1ede3eb6
KH
2210 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
2211 just get the low 8-bit of the code.
2212
545312c2
KH
2213 * font.c (font_intern_prop): Validate str as multibyte.
2214
bd7bbf29
DN
22152008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
2216
31e0750e
DN
2217 * dispextern.h (struct face): Move lface and hash from the middle
2218 of bitfields.
2219
bd7bbf29
DN
2220 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
2221
b5672e7c
DN
22222008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
2223
2224 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
2225 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
2226 instead of intervals.h.
2227
d704470f
AS
22282008-12-26 Andreas Schwab <schwab@suse.de>
2229
2230 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
2231 cons.
2232
54b33868
MR
22332008-12-26 Martin Rudalics <rudalics@gmx.at>
2234
2235 * textprop.c (Qminibuffer_prompt): New variable.
2236 (syms_of_textprop): Initialize it.
2237 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
2238 in minibuffer-prompt face. (Bug#1662)
2239
40b615d6
JR
22402008-12-25 Jason Rumney <jasonr@gnu.org>
2241
2242 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
2243
baae5c2d
JR
22442008-12-24 Jason Rumney <jasonr@gnu.org>
2245
2246 * ralloc.c (r_alloc_reset_variable): New function.
2247
2248 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 2249 record of what points where. (Bug#716)
baae5c2d 2250
a9051c88
DN
22512008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
2252
2253 * minibuf.c (read_minibuf): Follow the non-interactive case when
2254 running as a daemon, before detaching.
2255
8b146312
AS
22562008-12-22 Andreas Schwab <schwab@suse.de>
2257
2258 * buffer.c (init_buffer): Use realloc instead of xrealloc.
2259 * gtkutil.c (free_widget_value): Use xfree instead of free.
2260
56f2de10
MR
22612008-12-22 Martin Rudalics <rudalics@gmx.at>
2262
2263 * frame.c (delete_frame): New function derived from
2264 Fdelete_frame to handle Qnoelisp value for FORCE argument.
2265 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
2266 (Fdelete_frame): Call delete_frame. Remove line from doc-string
2267 saying that FORCE non-nil doesn't run `delete-frame-functions'.
2268 * frame.h: Extern delete_frame.
2269 * window.c (window_loop):
2270 * terminal.c (delete_terminal):
2271 * xterm.c (x_connection_closed):
2272 * xfns.c (Fx_hide_tip):
9acef61c 2273 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 2274
1fc200d6
JR
22752008-12-21 Jason Rumney <jasonr@gnu.org>
2276
2277 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
2278 when character maps to .notdef character.
2279
5e252df2
SM
22802008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
2281
2282 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
2283
99b72cc4
JR
22842008-12-20 Jason Rumney <jasonr@gnu.org>
2285
2286 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 2287 a graphical frame on Windows. (Bug#1325)
99b72cc4 2288
acc49a52
JD
22892008-12-20 Jan Djärv <jan.h.d@swipnet.se>
2290
2291 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
2292
6ea15123
CY
22932008-12-20 Chong Yidong <cyd@stupidchicken.com>
2294
2295 * minibuf.c (Fread_buffer): Doc fix.
2296
b2dab6c8
JR
22972008-12-20 Jason Rumney <jasonr@gnu.org>
2298
54ea0c87 2299 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 2300 server name in UNC paths. (Bug#719)
54ea0c87 2301
b2dab6c8 2302 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 2303 charbuf. (Bug#1035)
b2dab6c8 2304
6d1921be
DN
23052008-12-19 Daniel Engeler <engeler@gmail.com>
2306
2307 * sysdep.c (serial_configure): Fix typo.
2308
53934c98
DN
23092008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
2310
2311 * sysdep.c: Include alloca.h.
f4f634e8
DN
2312 (system_process_attributes): Add implementation for Solaris.
2313
2314 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 2315
06e111a6
DN
23162008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
2317
2318 Reorganize implementation of Flist_system_processes and
2319 Fsystem_process_attributes. No functional changes.
2320 * process.c: Don't #include pwd.h, grp.h and limits.h.
2321 (Flist_system_processes): Just call list_system_processes.
2322 (Fsystem_process_attributes): Just call system_process_attributes.
2323 (procfs_list_system_processes, time_from_jiffies)
2324 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
2325 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
2326
2327 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
2328 (list_system_processes): Rename from
2329 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
2330 Provide a do nothing implementation.
2331 (system_process_attributes): Rename from
2332 procfs_list_system_processes.
2333 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 2334 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
2335
2336 * w32.c (list_system_processes): Rename from
2337 w32_list_system_processes.
2338 (system_process_attributes): Rename from
2339 w32_system_process_attributes.
2340
2341 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
2342
2343 * process.h (w32_list_system_processes)
2344 (w32_system_process_attributes): Remove.
2345 (list_system_processes, system_process_attributes): New
2346 prototypes.
2347
6a705b23
KH
23482008-12-19 Kenichi Handa <handa@m17n.org>
2349
2350 * xfont.c (xfont_decode_coding_xlfd): New function.
2351 (xfont_encode_coding_xlfd): New function.
2352 (xfont_list_pattern): Decode XLFD by iso-8859-1.
2353 (xfont_list): Decode and encode XLFD by iso-8859-1.
2354 (xfont_match): Likewise.
2355 (xfont_list_family): Likewise.
2356 (xfont_open): Likewise.
2357
d66c0241 2358 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
2359 names are utf-8.
2360
d66c0241 2361 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
2362 names are utf-8.
2363
5a130941
JD
23642008-12-18 Jan Djärv <jan.h.d@swipnet.se>
2365
2366 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
2367 changed.
bfd20325
JD
2368 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
2369 clicked on a detached tool bar button.
5a130941 2370
fd95644b
DN
23712008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
2372
2373 * emacs.c (main): Print and error and exit when no data is read
2374 from the pipe.
2375
e6eee6ae
JR
23762008-12-17 Jason Rumney <jasonr@gnu.org>
2377
2378 * w32font.c (w32font_has_char): Always return -1.
2379
a35dd56b
KH
23802008-12-16 Kenichi Handa <handa@m17n.org>
2381
2382 * font.c (font_open_entity): Fix previous change.
2383
0e3635c2
DN
23842008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
2385
2386 * process.c: Include <limits.h>.
2387
d4835507 23882008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
2389
2390 * font.c (font_update_drivers): Fix mistake in reconstructing the
2391 driver list.
2392
23932008-12-16 Chong Yidong <cyd@stupidchicken.com>
2394
2395 * font.c (font_clear_cache): Fix format of font cache data.
2396
e2cbc401
CY
23972008-12-15 Chong Yidong <cyd@stupidchicken.com>
2398
2399 * xftfont.c (xftfont_open): Free Xft font pattern if
2400 XftFontOpenPattern fails.
2401
2402 * xterm.c (x_free_frame_resources): Remove extraneous call to
2403 free_frame_faces.
2404
b131d535
CY
24052008-12-13 Chong Yidong <cyd@stupidchicken.com>
2406
2407 * xterm.c (x_delete_display): Move xim_close_dpy call to
2408 x_delete_terminal.
2409 (x_delete_terminal): Call xim_close_dpy.
2410
e6df5336
JR
24112008-12-13 Jason Rumney <jasonr@gnu.org>
2412
2413 * w32font.c (intern_font_name): New function.
2414 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
2415 (w32font_open_internal, Fx_select_font): Decode font name.
2416 (fill_in_logfont, list_all_matching_fonts): Encode font name.
2417
2418 * w32font.h (intern_font_name): Declare new function.
2419
2420 * w32uniscribe.c (add_opentype_font_name_to_list):
2421 Use intern_font_name.
2422
20d68145
CY
24232008-12-13 Chong Yidong <cyd@stupidchicken.com>
2424
9f2554de
CY
2425 * frame.c (Fdelete_frame): Call free_font_driver_list.
2426
3d9bec9a
CY
2427 * font.c (free_font_driver_list): Implement missing function.
2428
20d68145
CY
2429 * w32term.c (w32_term_init): Don't initialize the image cache
2430 here; it will be done in init_frame_faces.
2431
2432 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
2433 (struct x_display_info): Remove unused member null_pixel. New
2434 member xim_callback_data.
2435
2436 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
2437 (xim_initialize): Save pointer to callback function data.
2438 (xim_close_dpy): Free callback function data. Call XCloseIM,
2439 reverting 2008-11-04 change by David Smith.
2440 (x_term_init): Don't initialize the image cache here; it will be
2441 done in init_frame_faces. Remove ancient "null_pixel" cruft.
2442 (x_delete_display): Free x_dnd_atoms member.
2443
96f9306b
KH
24442008-12-13 Kenichi Handa <handa@m17n.org>
2445
6dec9044
JB
2446 * font.c (font_rescale_ratio): Moved from xfaces.c.
2447 Argument type changed. Handle a font-spec too.
96f9306b 2448 (font_score): Check Vface_font_rescale_alist.
6dec9044 2449 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
2450
2451 * xfaces.c (font_rescale_ratio): Moved to font.c.
2452
8d5b4964
CY
24532008-12-13 Chong Yidong <cyd@stupidchicken.com>
2454
2455 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
2456
e6df5336
JR
24572008-12-12 Jason Rumney <jasonr@gnu.org>
2458
2459 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
2460 Vwindow_system_version to the real w32 major version.
2461
97c6058a
DN
24622008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
2463
2464 * term.c (init_tty): Move setting the terminal name before the
2465 potential user: maybe_fatal.
2466
ec4e88d7
CY
24672008-12-11 Chong Yidong <cyd@stupidchicken.com>
2468
d4835507
JB
2469 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
2470 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 2471
b4233ec9
JR
24722008-12-11 Jason Rumney <jasonr@gnu.org>
2473
8ec71e23 2474 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 2475 SYMBOL_CHARSET. (Bug#547)
8ec71e23 2476
b4233ec9 2477 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 2478 size for surrogates. (Bug#1096, bug#872)
b4233ec9 2479
011a0143
JB
24802008-12-11 Juanma Barranquero <lekktu@gmail.com>
2481
2482 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
2483
3c309f34
JB
24842008-12-11 Juanma Barranquero <lekktu@gmail.com>
2485
2486 * process.c (Fsystem_process_attributes, syms_of_process):
2487 Fix typo in name of Ssystem_process_attributes.
2488 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
2489
fedc6ab5
JB
24902008-12-11 Juanma Barranquero <lekktu@gmail.com>
2491
2492 * syntax.c (Fmodify_syntax_entry): Doc fix.
2493
ba3de0e8
JB
24942008-12-10 Juanma Barranquero <lekktu@gmail.com>
2495
2496 * font.c (Ffont_spec): Move usage to end of docstring.
2497
174f1c74
JR
24982008-12-10 Jason Rumney <jasonr@gnu.org>
2499
2500 * w32font.c (Qcham): New symbol.
2501 (font_supported_scripts): Add cham, and comments for other new
2502 scripts in bitfield from OpenType spec.
9d32f818
JR
2503 (add_font_entity_to_list): Limit unicode-sip fonts to those that
2504 contain characters beyond the bmp.
174f1c74 2505
7b649478
KH
25062008-12-10 Kenichi Handa <handa@m17n.org>
2507
2508 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 2509 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
2510 Qunicode_sip.
2511
2133e2d1
JB
25122008-12-10 Juanma Barranquero <lekktu@gmail.com>
2513
2514 * coding.c (QCdefault_char): Rename from QCdefalut_char.
2515 (Fcoding_system_put): Use QCdefault_char.
2516 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
2517
9af886ee
CY
25182008-12-09 Chong Yidong <cyd@stupidchicken.com>
2519
74d819eb
CY
2520 * xftfont.c (syms_of_xftfont): Fix typo.
2521
4ccfa1c0 2522 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 2523
7c19d3ae
DN
25242008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
2525
2526 * emacs.c (main): Close daemon_pipe on exec.
2527
567826bb
CY
25282008-12-08 Chong Yidong <cyd@stupidchicken.com>
2529
2530 * termchar.h (struct tty): New members termcap_term_buffer and
2531 termcap_strings_buffer.
2532
2533 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 2534 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
2535 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
2536 All callers changed.
2537 (init_tty): Store termcap data and string buffers in new struct
2538 tty members termcap_term_buffer and termcap_strings_buffer.
2539 (delete_tty): Free them.
4ccfa1c0 2540 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 2541
aa96c42b
SZ
25422008-12-07 Seiji Zenitani <zenitani@mac.com>
2543
2544 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 2545 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 2546
b7e1d896
CY
25472008-12-06 Chong Yidong <cyd@stupidchicken.com>
2548
2549 * coding.c (make_conversion_work_buffer): Disable buffer
2550 modification hooks in the work buffer.
2551
b5ec91a5
EZ
25522008-12-05 Eli Zaretskii <eliz@gnu.org>
2553
2554 * process.c (procfs_system_process_attributes): If `nread' has a
2555 negative value, assign zero to it.
2556
a5d2a52b
CY
25572008-12-05 Chong Yidong <cyd@stupidchicken.com>
2558
68c5540b 2559 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 2560
7bf1bb21
KH
25612008-12-05 Kenichi Handa <handa@m17n.org>
2562
2563 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
2564 second character is a combining character.
2565
2fdc7d00
EZ
25662008-12-05 Eli Zaretskii <eliz@gnu.org>
2567
2568 * process.c (procfs_system_process_attributes): Don't use cmd,
2569 cmdsize, and q without initializing them first.
2570
bf6bfba8
JR
25712008-12-04 Jason Rumney <jasonr@gnu.org>
2572
2573 * w32font.c (w32font_draw): Initialize orig_clip before getting
2574 it, and delete it when finished.
2575
a3b1a468
DN
25762008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
2577
2578 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
2579 case when running as a daemon before detaching.
2580
8b8be8eb
JB
25812008-12-03 Juanma Barranquero <lekktu@gmail.com>
2582
805f2638 2583 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 2584
b1bde622
KH
25852008-12-03 Kenichi Handa <handa@m17n.org>
2586
e500c47d
KH
2587 * font.c (font_at): Set `multibyte' at first.
2588
ca516334
KH
2589 * coding.c (decode_coding_charset): Check type of an element of
2590 vector VALIDS.
7bf1bb21 2591 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 2592
4ccfa1c0 2593 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
2594 (font_for_char): Likewise.
2595
1e5ecd37
CY
25962008-12-03 Chong Yidong <cyd@stupidchicken.com>
2597
d5b01609 2598 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
2599 (font_update_lface): Handle fonts with corrupted size specs,
2600 i.e. non-int and non-float.
d5b01609 2601
11e3a6e4 2602 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 2603 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 2604 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 2605
ab06788b
CY
2606 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
2607
1e5ecd37 2608 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 2609 underline_minimum_offset for underline position.
1e5ecd37 2610
63c125ab
DN
26112008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
2612
2613 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
2614
2615 * character.c (c_string_width): Specify the type for LEN.
2616
3a8406e1
KH
26172008-12-03 Kenichi Handa <handa@m17n.org>
2618
4ccfa1c0 2619 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 2620 (decode_coding_utf_8): Likewise.
4ccfa1c0 2621 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 2622 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 2623
651df7d9
CY
26242008-12-02 Chong Yidong <cyd@stupidchicken.com>
2625
2626 * keyboard.c (make_lispy_position): Only use PT if the selected
2627 window is current.
2628
1f625c6c
AS
26292008-12-02 Andreas Schwab <schwab@suse.de>
2630
f7741ce9
AS
2631 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
2632
1f625c6c
AS
2633 * doprnt.c (doprnt1): Fix size of charbuf.
2634
92bc2678
CY
26352008-12-02 Chong Yidong <cyd@stupidchicken.com>
2636
2637 * keyboard.c (timer_check): Revert last change.
2638
93b9e8cc
JB
26392008-12-02 Juanma Barranquero <lekktu@gmail.com>
2640
2641 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
2642
fd7a37d5
JB
26432008-12-01 Juanma Barranquero <lekktu@gmail.com>
2644
2645 * makefile.w32-in: Update dependencies.
2646 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
2647
c115043b
AS
26482008-12-01 Andreas Schwab <schwab@suse.de>
2649
2650 * font.c (register_font_driver): Use xmalloc.
2651 (font_put_frame_data): Likewise.
2652
f5668d2a
CY
26532008-12-01 Chong Yidong <cyd@stupidchicken.com>
2654
860d96be
CY
2655 * xfaces.c (realize_x_face): Make abort condition clearer.
2656
f5668d2a
CY
2657 * gtkutil.c (update_frame_tool_bar): Initialize variable.
2658
379c17e7
CY
26592008-11-30 Chong Yidong <cyd@stupidchicken.com>
2660
2661 * keyboard.c (timer_check): After a timer runs, ensure that the
2662 selected window's buffer is current.
2663
35f36d65
JB
26642008-11-30 Juanma Barranquero <lekktu@gmail.com>
2665
f952c61c
JB
2666 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
2667 It was accidentally restored by the Unicode merge.
2668
35f36d65
JB
2669 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
2670
b23077df
JB
26712008-11-29 Juanma Barranquero <lekktu@gmail.com>
2672
2673 * w32proc.c: Include "coding.h".
2674 (Fw32_short_file_name): Encode filename passed to Windows API.
2675 (Fw32_long_file_name): Encode filename passed to Windows API and
2676 decode back the result. (Bug#1433)
2677
b8ebe9dd
KH
26782008-11-29 Kenichi Handa <handa@m17n.org>
2679
8cc53f96
KH
2680 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
2681 not before accessing it.
2682
b8ebe9dd
KH
2683 * charset.c (Fdefine_charset_internal): After calculating
2684 min_char, max_char, and fastmap, copy the charset structure again.
2685 (encode_char): Fix the previous change.
2686
59bc82c0
SZ
26872008-11-28 Seiji Zenitani <zenitani@mac.com>
2688
2689 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
2690
2691 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
2692
2693 * nsterm.m (x_set_frame_alpha): New function.
2694
32247e3d
EZ
26952008-11-27 Eli Zaretskii <eliz@gnu.org>
2696
2697 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
2698
b003e5ff
JB
26992008-11-27 Juanma Barranquero <lekktu@gmail.com>
2700
2701 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
2702 pointer to check_face_name.
2703
708550f5
KH
27042008-11-27 Kenichi Handa <handa@m17n.org>
2705
2706 * category.h (SET_CATEGORY_SET): Call set_category_set.
2707 (set_category_set): Extern it.
2708
2709 * category.c (hash_get_category_set): New function.
2710 (Fmodify_category_entry): Adjusted for the change of
2711 char_table_ref_and_range. Call hash_get_category_set to get a
2712 category set to store in the table.
2713
2714 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
2715 Funify_charset.
2716
2ae37cf0 2717 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
2718 (DECODE_CHAR): Check if the decoder vector is ready.
2719 (ENCODE_CHAR): Check if the encoder char-table is ready.
2720 (maybe_unify_char): Extern it.
2721
2722 * charset.c (Vchar_unified_charset_table): Delete it.
2723 (inhibit_load_charset_map): New variable.
2724 (temp_charset_work): New variable.
2725 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
2726 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
2727 New macros.
2728 (load_charset_map): Meaning of control_flag changed. If
2729 inhibit_load_charset_map is nonzero, setup a table in
2730 temp_charset_work.
2731 (load_charset): New argument control_flag.
2732 (map_charset_for_dump): New function.
2733 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
2734 map_charset_for_dump.
2735 (Fdefine_charset_internal): If the charset method is MAP, load
2736 mapping tables by calling load_charset.
2737 (Funify_charset): Don't load a mapping table but directly set
2738 Vchar_unify_table.
2739 (maybe_unify_char): New function.
2740 (decode_char): Don't handle the deleted method MAP_DEFERRED.
2741 Handle the case of inhibit_load_charset_map being nonzero.
2742 (encode_char): Don't handle the deleted method MAP_DEFERRED.
2743 Handle the case of inhibit_load_charset_map being nonzero.
2744 (Fclear_charset_maps): Just free temp_charset_work.
2745 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
2746 variable.
2747
2748 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
2749 change of char_table_ref_and_range.
2750 (char_table_ref_and_range): Change the meaning of argument FROM
2751 and TO. Now the caller must provide initial values for *FROM
2752 and *TO.
2753
2754 * fontset.c (fontset_add): Adjusted for the change of
2755 char_table_ref_and_range.
2756 (fontset_get_font_group): Likewise.
2757 (Ffontset_info): Likewise.
2758
2759 * keymap.c (describe_vector): Adjusted for the change of
2760 char_table_ref_and_range. For char-table, put boundary between
2761 non-ASCII and 8-bit characters.
2762
2763 * print.c (print_object): For bool-vector, delete unnecessary
2764 check of ASCII_BYTE_P.
2765
9196133b
JR
27662008-11-26 Jason Rumney <jasonr@gnu.org>
2767
2768 * w32font.c (w32font_open_internal): Don't include external
9acef61c 2769 leading in font height. (Bug#879)
9196133b 2770
9f688acf
GM
27712008-11-26 Glenn Morris <rgm@gnu.org>
2772
2773 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
2774 redefinition with ifdef. (Bug#1383)
2775
90d19aff
AR
27762008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
2777
2778 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
2779
4ccfa1c0 27802008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
2781
2782 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
2783 New EmacsView methods.
2784 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
2785 Fixes bug #1048,1357,1414.
2786
27872008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
2788
2789 Fix bug #1362.
2790 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
2791 is not an indexed color.
2792 * nsterm.m (free_indexed_color): Add argument checking.
2793 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
2794
e7d5ecb3
CY
27952008-11-24 Chong Yidong <cyd@stupidchicken.com>
2796
2797 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
2798 Document confirm-after-completion value for
2799 minibuffer-completion-confirm.
2800
c285743c
JR
28012008-11-24 Jason Rumney <jasonr@gnu.org>
2802
2803 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
2804 warning.
2805
b0857706
JR
28062008-11-23 Jason Rumney <jasonr@gnu.org>
2807
2808 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
2809 restored before returning.
2810
2811 * w32font.c (check_face_name): New function.
2812 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 2813 fonts. (Bug#642)
b0857706 2814
ee50ff07
MR
28152008-11-22 Martin Rudalics <rudalics@gmx.at>
2816
2817 * buffer.c (Fswitch_to_buffer): Reword and mention new option
2818 confirm-nonexistent-file-or-buffer in doc-string.
2819
b8ff72fa
SM
28202008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
2821
2822 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
2823 Fix copy/paste typo. Add checks.
2824
cee53ed4
KH
28252008-11-21 Kenichi Handa <handa@m17n.org>
2826
2827 * coding.c (detect_coding_iso_2022): Reject invalid composition
2828 sequence.
2829 (DECODE_COMPOSITION_START): If the current source is the last
2830 block, and the current composition doesn't end, regard this
2831 sequence as invalid.
2832 (decode_coding_iso_2022): Handle invalid composition sequence.
2833
f6ef1e65
MR
28342008-11-20 Martin Rudalics <rudalics@gmx.at>
2835
2836 * window.c (coordinates_in_window): Don't return
2837 ON_VERTICAL_BORDER for the rightmost position of a mode/header
2838 line when the window is not the rightmost one. (Bug#1372)
2839
e08b1705
MR
28402008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
2841
2842 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
2843
ad98e89f
EZ
28442008-11-15 Eli Zaretskii <eliz@gnu.org>
2845
2846 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
2847 and bright_bg if noninteractive is non-zero.
2848
fb098a4b
CY
28492008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2850
2851 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
2852 x_draw_glyph_string_background.
2853
2854 * w32term.c (x_draw_glyph_string): Likewise.
2855
ce952b6e
CY
28562008-11-15 Chong Yidong <cyd@stupidchicken.com>
2857
2858 * xterm.c (x_draw_glyph_string): Stop drawing the background of
2859 the next glyph string once past the overhang width.
2860
2861 * nsterm.m (ns_draw_glyph_string): Likewise.
2862
2863 * w32term.c (x_draw_glyph_string): Likewise.
2864
26ea7079
CY
28652008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
2866
2867 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
2868 double file close.
2869
1c33c906
MR
28702008-11-14 Martin Rudalics <rudalics@gmx.at>
2871
2872 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
2873 dedicated status of window before attempting to display another
2874 buffer in it.
2875
8fc29035
JB
28762008-11-14 Juanma Barranquero <lekktu@gmail.com>
2877
2878 * msdos.c (Fmsdos_long_file_names):
2879 (syms_of_msdos) <dos-unsupported-char-glyph>:
2880 * dosfns.c (Fint86): Fix typos in docstrings.
2881
55fb4286
EZ
28822008-11-14 Eli Zaretskii <eliz@gnu.org>
2883
2884 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
2885
3fda0315
KY
28862008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
2887
2888 * puresize.h (BASE_PURESIZE): Increase to 1260000.
2889
7e849c17
CY
28902008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
2891
2892 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
2893
2894 * frame.h: Negative alpha means "don't touch".
2895
2896 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
2897
2898 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
2899
b9fd67bd
DN
29002008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
2901
2902 * hftctl.c:
2903 * chpdef.h:
2904 * acldef.h: Remove files used only for systems no longer supported.
2905
2906 * Makefile.in: Fix .o alphabetical ordering.
2907 (hftctl.o): Remove dependency, file removed.
2908 (keymap.o, print.o): Depend on charset.h.
2909
d5998e03
KH
29102008-11-10 Kenichi Handa <handa@m17n.org>
2911
2ae37cf0 2912 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 2913
be70e183
CY
29142008-11-08 Chong Yidong <cyd@stupidchicken.com>
2915
2916 * dired.c (file_name_completion): If completion_ignore_case is
2917 enabled, ignore case when checking completion-regexp-list.
2918
7cf94eac
EZ
29192008-11-08 Eli Zaretskii <eliz@gnu.org>
2920
2921 * vm-limit.c (get_lim_data): Fix last change.
2922
ee107a89
KH
29232008-11-08 Kenichi Handa <handa@m17n.org>
2924
2925 * character.c (Fget_byte): New function.
2926 (syms_of_character): Defsubr Fget_byte.
2927
5fd15622
CY
29282008-11-07 Chong Yidong <cyd@stupidchicken.com>
2929
2930 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
2931 cursor position is valid after scrolling.
2932
13d62fad
JB
29332008-11-06 Juanma Barranquero <lekktu@gmail.com>
2934
2935 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
2936
a1dd2936
GM
29372008-11-06 Glenn Morris <rgm@gnu.org>
2938
2939 * xterm.c (handle_one_xevent): Don't let popup menus cause
2940 mouse-autoselect-window related window switching. (Bug#1261)
2941
860cd236
CY
29422008-11-04 David Smith <davidsmith@acm.org> (tiny change)
2943
2944 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
2945
653a3150
AS
29462008-11-04 Andreas Schwab <schwab@suse.de>
2947
2948 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
2949
870f5cac
CY
29502008-11-03 Chong Yidong <cyd@stupidchicken.com>
2951
2952 * xfns.c (Fx_wm_set_size_hint): New function.
2953
1e02f3cb
MR
29542008-11-03 Martin Rudalics <rudalics@gmx.at>
2955
2956 * textprop.c (Fprevious_single_char_property_change): Return 0
2957 when there's no change in a string. (Bug#1301)
2958
e630dfc6
MR
29592008-11-02 Martin Rudalics <rudalics@gmx.at>
2960
2961 * frame.c (do_switch_frame): New argument NORECORD passed to
2962 Fselect_window.
2963 (Fselect_frame): New argument NORECORD passed to
2964 do_switch_frame.
2965 (Fset_frame_selected_window): New argument NORECORD passed to
2966 Fselect_frame.
2967 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
2968 in call of do_switch_frame.
2969 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
2970 Handle NORECORD argument in call of Fselect_frame.
2971 * lisp.h (do_switch_frame, Fselect_frame)
2972 (Fset_frame_selected_window): Adjust declarations.
2973 * window.c (select_frame_norecord): New function.
2974 (run_window_configuration_change_hook): Use it and call
2975 Fselect_frame with NORECORD set.
2976 (Fselect_window): Pass NORECORD to Fselect_frame.
2977 (Fset_window_configuration): Handle NORECORD argument in call of
2978 do_switch_frame.
2979 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
2980 Fset_frame_selected_window.
2981 * keyboard.c (command_loop_1): Handle NORECORD in call of
2982 Fselect_frame (currently ifdefd).
2983
9020b223
GM
29842008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
2985
2986 * emacs.c (USAGE2): Untabify.
2987
793ffee8
SM
29882008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
2989
2990 * composite.c (fill_gstring_header): Fix copy/paste typo.
2991
ab6d1131
MR
29922008-10-31 Martin Rudalics <rudalics@gmx.at>
2993
2994 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
2995 (Fother_window): Rename argument and rewrite doc-string.
2996 (select_window_norecord): Fix return value. (Bug#1276)
2997
601a9cf1
JB
29982008-10-30 Juanma Barranquero <lekktu@gmail.com>
2999
3000 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
3001 new frames overriding foreground for tooltips. Based on similar patch
3002 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
3003
813b0652
CY
30042008-10-29 Chong Yidong <cyd@stupidchicken.com>
3005
3006 * emacs.c (Fdaemon_initialized): Initialize nfd.
3007
4414f58f
MR
30082008-10-29 Martin Rudalics <rudalics@gmx.at>
3009
3010 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
3011 (Fwindow_text_height): Clarify doc-strings.
3012 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
3013 doc-string of window-scroll-functions.
3014
ecdcaa09
RS
30152008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
3016
3017 * category.c (syms_of_category): Fix typo in docstring.
3018
23fe745a
JB
30192008-10-28 Juanma Barranquero <lekktu@gmail.com>
3020
3021 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
3022 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
3023 Fix typos in docstrings.
3024
ff808935
DN
30252008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
3026
3027 * emacs.c (daemon_pipe): Make non-static.
3028 (IS_DAEMON): Move definition ...
3029 * lisp.h (IS_DAEMON): ... here.
3030 (daemon_pipe): Declare.
3031 (is_daemon): Remove.
3032 * dispnew.c (init_display): Use IS_DAEMON.
3033
fc012771
SM
30342008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
3035
3036 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
3037 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
3038
3039 * emacs.c (is_daemon): Remove.
3040 (main): Don't set is_daemon.
3041 (IS_DAEMON): New macro.
3042 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 3043 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
3044 parent exits.
3045 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
3046
d8bdbe6f
CY
30472008-10-27 Chong Yidong <cyd@stupidchicken.com>
3048
d1a072bf
CY
3049 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
3050 over-sized glyph, draw it with the default glyph width.
3051
e2e325aa
CY
3052 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
3053 glyph, draw it with the default glyph width.
3054
3055 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
3056 glyph, draw it with the default glyph width.
3057
d8bdbe6f
CY
3058 * xdisp.c (try_scrolling): When computing the distance from the
3059 scroll margin to PT, try moving some distance past the window
3060 bottom before giving up.
3061
7bfac547
MR
30622008-10-27 Martin Rudalics <rudalics@gmx.at>
3063
3064 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
3065 (Fset_window_buffer): Explain in doc-string that a window can be
3066 "strongly" dedicated to its buffer.
3067
4ff029f6
DN
30682008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
3069
3070 * emacs.c (daemon_name): New variable.
3071 (main): Deal with --daemon=SERVER_NAME.
3072 (Fdaemonp): Return a name if one was passed to --daemon.
3073
5790ef40
DN
30742008-10-26 Romain Francoise <romain@orebokech.com>
3075
f9bd0df9 3076 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
3077 (main): Create a pipe before forking, make the parent exit only after
3078 the child has closed its end of the pipe. Move closing the
3079 descriptors ...
3080 (Fdaemon_initialized): ... here. New function.
3081
f5385255
SM
30822008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
3083
4d632321
SM
3084 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
3085 the previous unoptimized table.
3086
f5385255
SM
3087 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
3088 the distinction between non-nil and non-t value of `dedicated'.
3089
6c56a0f3
CY
30902008-10-25 Chong Yidong <cyd@stupidchicken.com>
3091
3092 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 3093 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 3094
fec89261
MR
30952008-10-25 Martin Rudalics <rudalics@gmx.at>
3096
3097 * window.c (Fget_buffer_window, Fdelete_windows_on)
3098 (Freplace_buffer_in_windows): Make buffer argument optional and
3099 rename to buffer_or_name.
3100
34fcddd0
CY
31012008-10-24 Chong Yidong <cyd@stupidchicken.com>
3102
f5385255
SM
3103 * xdisp.c (handle_single_display_spec, handle_display_prop):
3104 Undo 2005-05-16 change.
34fcddd0
CY
3105 (handle_stop): Pop iterator if it's loaded with an empty string.
3106 (get_overlay_strings_1): Don't save iterator if it's loaded with
3107 an empty string (bug#1201).
3108
064766f2
KH
31092008-10-24 Kenichi Handa <handa@m17n.org>
3110
3111 * ftfont.c (ftfont_otf_features): Fix previous change.
3112 (ftfont_otf_capability): Check FeatureList.FeatureCount before
3113 calling ftfont_otf_features.
3114
f9bd0df9 31152008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
3116
3117 * font.c (font_match_p): Fix for the case that a vector of
3118 characters is in script-representative-chars.
3119
1dae9197
MA
31202008-10-24 Michael Albinus <michael.albinus@gmx.de>
3121
3122 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 3123 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
3124 (xd_read_queued_messages): Catch Qdbus_error from the macros.
3125 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
3126 macro. (Bug#1186).
3127
f9bd0df9 31282008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
3129
3130 * s/sol2-10.h: New file.
3131
878a4584
JB
31322008-10-23 Juanma Barranquero <lekktu@gmail.com>
3133
3134 * xdisp.c (fill_glyph_string): Fix typo in source (though the
3135 poor beast has survived 9+ years and the jump from xterm.c!).
3136
cd265ca6
MR
31372008-10-23 Martin Rudalics <rudalics@gmx.at>
3138
3139 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
3140 Reword doc-string.
f5385255 3141 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 3142
472a4dc9
JB
31432008-10-23 Juanma Barranquero <lekktu@gmail.com>
3144
3145 * character.c (syms_of_character) <script-representative-chars>:
3146 <unicode-category-table>: Doc fixes.
3147
159bd5a2
NF
31482008-10-23 Noah Friedman <friedman@splode.com>
3149
3150 * coding.c (make_conversion_work_buffer): Check that
3151 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
3152 Fget_buffer_create.
3153
49f9c344
KH
31542008-10-23 Kenichi Handa <handa@m17n.org>
3155
3156 * font.c (font_add_log): Check the values of extra properties.
3157
12bb3111
MR
31582008-10-22 Martin Rudalics <rudalics@gmx.at>
3159
3160 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
3161 Reword doc-string.
3162 (Fset_window_parameter): Use NILP.
3163 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 3164 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 3165
bbeb4e99
JB
31662008-10-22 Juanma Barranquero <lekktu@gmail.com>
3167
3168 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
3169
31702008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
3171
3172 * nsfns.m (ns_appkit_version): New function.
3173 (x-server-version): Use it.
3174 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
3175 (x-server-vendor): Don't check_ns().
3176
3177 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
3178
a9b555d3
JB
31792008-10-22 Juanma Barranquero <lekktu@gmail.com>
3180
3181 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
3182 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
3183
4626499f
KH
31842008-10-22 Kenichi Handa <handa@m17n.org>
3185
e3681952
KH
3186 * syntax.c (scan_words): Call word_boundary_p instead of comparing
3187 scripts.
3188
4626499f
KH
3189 * category.c (word_boundary_p): Check scripts instead of charset.
3190 Handle nil value in word-separating-categories and
3191 word-combining-categories.
3192 (syms_of_category): Fix docstrings of word-separating-categories
3193 and word-combining-categories.
3194
1560f91a
EZ
31952008-10-21 Eli Zaretskii <eliz@gnu.org>
3196
3197 * coding.c (Fencode_coding_region, Fdecode_coding_region)
3198 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
3199
f4668441
MR
32002008-10-21 Martin Rudalics <rudalics@gmx.at>
3201
3202 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
3203 Rename arg "buffer" to "buffer_or_name".
3204 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
3205 it optional.
3206 (no_switch_window): Remove since the return value is not used.
a9b555d3 3207 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
3208 Consider window as dedicated when Fwindow_dedicated_p returns a
3209 non-nil value.
3210 * lisp.h: Remove prototype for no_switch_window.
3211
fd75ddb2
JD
32122008-10-21 Jan Djärv <jan.h.d@swipnet.se>
3213
3214 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 3215 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 3216
07295713
KH
32172008-10-21 Kenichi Handa <handa@m17n.org>
3218
3219 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
3220 check Vlatin_extra_code_table.
3221
712adc82
EZ
32222008-10-20 Eli Zaretskii <eliz@gnu.org>
3223
3224 * fileio.c (Fset_file_modes): Doc fix.
3225
f549eb0b
MA
32262008-10-19 Michael Albinus <michael.albinus@gmx.de>
3227
3228 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
3229 in arrays.
3230
aac0c6e3
MR
32312008-10-19 Martin Rudalics <rudalics@gmx.at>
3232
3233 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
3234 Mention kill-buffer in doc-string.
3235 (Fset_window_buffer): Reinsert tem check removed in last commit.
3236 (Fenlarge_window, Fshrink_window): Have argument names and
3237 doc-string follow Elisp manual more closely.
3238
32392008-10-18 Eli Zaretskii <eliz@gnu.org>
3240
3241 * fileio.c (Fset_file_modes): Doc fix.
3242
32432008-10-18 Martin Rudalics <rudalics@gmx.at>
3244
3245 * window.c (Fwindow_width, Fset_window_start)
3246 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
3247 (Fdelete_windows_on, Freplace_buffer_in_windows):
3248 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
3249 (Fwindow_dedicated_p): Make window argument optional.
3250 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
3251 (Fset_window_buffer): Respect any non-nil dedicated value for
3252 window. Rename "buffer" argument to "buffer_or_name".
3253
32542008-10-18 Ulrich Mueller <ulm@gentoo.org>
3255
3256 * m/sh3.h: New file, machine description for SuperH.
3257
32582008-10-17 Martin Rudalics <rudalics@gmx.at>
3259
3260 * window.c (Fsplit_window): Rename arg horflag to horizontal.
3261
32622008-10-17 Kenichi Handa <handa@m17n.org>
3263
3264 * ftfont.c (ftfont_otf_features): Fix indexing
3265 gsub_gpos->FeatureList.Feature. Check the validity of indices.
3266
32672008-10-16 Magnus Henoch <mange@freemail.hu>
3268
3269 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
3270 (Fdbus_call_method_asynchronously): Ditto.
3271 This change makes C-h f display the argument list.
3272
32732008-10-16 Chong Yidong <cyd@stupidchicken.com>
3274
3275 * fileio.c (Fexpand_file_name): Doc fix.
3276
3277 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
3278 of :foreground and :background equivalent to unspecified (20.x
3279 compatibility).
3280
32812008-10-15 Eli Zaretskii <eliz@gnu.org>
3282
3283 * buffer.c (syms_of_buffer): Doc fix.
3284
32852008-10-14 Kenichi Handa <handa@m17n.org>
3286
3287 * font.c (font_clear_prop): When clearing font width, clear the
3288 average width field too.
3289
32902008-10-12 Andreas Schwab <schwab@suse.de>
3291
3292 * ftfont.c (ftfont_shape_by_flt): Make static.
3293 * ftfont.h (ftfont_shape_by_flt): Don't declare.
3294
3295 * font.c: Don't include <m17n-flt.h>.
3296
32972008-10-10 Eli Zaretskii <eliz@gnu.org>
3298
3299 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
3300
33012008-10-09 Eli Zaretskii <eliz@gnu.org>
3302
3303 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
3304 away code.
3305
33062008-10-09 Chong Yidong <cyd@stupidchicken.com>
3307
3308 * dispnew.c (update_text_area): Avoid looping due to large glyph
3309 overhangs (bug#1070).
3310
33112008-10-09 Kenichi Handa <handa@m17n.org>
3312
3313 * fontset.c (face_for_char): If face->fontset is negative, just
3314 return ascii_face.
3315
f5385255
SM
3316 * font.c (font_delete_unmatched): Fix previous change.
3317 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
3318
33192008-10-09 Martin Rudalics <rudalics@gmx.at>
3320
3321 * frame.c (Fraise_frame): On text-only terminals select frame in
3322 order to make it visible. (Bug#1061)
3323
33242008-10-08 Chong Yidong <cyd@stupidchicken.com>
3325
3326 * fontset.c (fontset_find_font): Check frame validity.
3327
33282008-10-07 Chong Yidong <cyd@stupidchicken.com>
3329
a9b555d3 3330 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
3331 (xg_display_close): Allow Emacs to close all displays (bug#985).
3332
33332008-10-06 Andreas Schwab <schwab@suse.de>
3334
f5385255 3335 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
3336
33372008-10-06 Chong Yidong <cyd@stupidchicken.com>
3338
f5385255 3339 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 3340
a9b555d3 3341 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
3342
3343 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
3344 during initialization.
3345
33462008-10-04 Eli Zaretskii <eliz@gnu.org>
3347
3348 * xdisp.c (redisplay_internal): If frame switched, redisplay the
3349 whole thing on MSDOS frames as well as on a TTY.
3350
3351 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
3352 well as for TTY.
3353 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
3354 well as on a TTY.
3355
3356 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
3357 as well as for TTY.
3358
3359 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
3360
3361 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
3362 MSDOS frames as well.
3363
33642008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
3365
3366 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
3367 correct arguments.
b71ac3dd 3368 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
3369
33702008-10-03 Glenn Morris <rgm@gnu.org>
3371
3372 * emacs.c (USAGE1): Add --daemon.
3373
33742008-10-02 Eli Zaretskii <eliz@gnu.org>
3375
3376 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
3377 100, so it's in percents as advertised.
3378
33792008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
3380
3381 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
3382 (ns_output.current_cursor, ns_output.desired_cursor)
3383 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
3384 (FRAME_NEW_CURSOR_COLOR): Remove.
3385
3386 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 3387 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
3388 enumeration (HOLLOW_BOX_CURSOR, etc.).
3389
3390 * nsterm.m (ns_frame_rehighlight): Remove commented code.
3391 (draw_window_cursor): Simplify code.
f5385255
SM
3392 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
3393 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 3394 updates manually.
a9b555d3
JB
3395 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
3396 Use core Emacs cursor types.
aac0c6e3 3397
b8ff72fa 3398 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
3399
34002008-10-02 Martin Rudalics <rudalics@gmx.at>
3401
3402 * process.c (Faccept_process_output): Fix doc-string.
3403
34042008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
3405
3406 * gmalloc.c (__sbrk): Also define for uClibc.
3407
3408 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
3409 for uClibc.
3410
34112008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
3412
3413 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
3414 styles.
3415 (nsfont_open): Reenable the cache.
3416
34172008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
3418
3419 * font.c (font_matching_entity): Reflect ATTRS in font selection.
3420 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
3421
34222008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
3423
3424 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
3425 a suspended terminal.
3426
34272008-09-30 Michael Albinus <michael.albinus@gmx.de>
3428
3429 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
3430
34312008-09-30 Eli Zaretskii <eliz@gnu.org>
3432
3433 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
3434
34352008-09-30 Chong Yidong <cyd@stupidchicken.com>
3436
3437 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
3438 in a continued line coincides with a line beginning.
3439
34402008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
3441
3442 * nsfont.m (nsfont_trait_distance): Fix bug.
3443 (nsfont_list): Return a list rather than a vector (syncs with Handa
3444 changes of 2008-05-14).
3445 (nsfont_open): Improve logging.
3446
34472008-09-29 Andreas Schwab <schwab@suse.de>
3448
3449 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
3450
34512008-09-28 Martin Rudalics <rudalics@gmx.at>
3452
3453 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
3454 name as char-resolve-modifiers.
3455 Reported by: Markus Triska <markus.triska@gmx.at>
3456
34572008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
3458
3459 * dispnew.c (init_display): Return earlier when running as a daemon.
3460
34612008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
3462
3463 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
3464
34652008-09-27 Eli Zaretskii <eliz@gnu.org>
3466
3467 * composite.c (Fcomposition_get_gstring)
3468 (Fcompose_region_internal, Fcompose_string_internal)
3469 (Ffind_composition_internal): Doc fix.
3470 (syms_of_composite) <compose-chars-after-function>: Doc fix.
3471 (syms_of_composite) <auto-composition-function>: Doc fix.
3472 (syms_of_composite) <composition-function-table>: Doc fix.
3473
34742008-09-25 Chong Yidong <cyd@stupidchicken.com>
3475
3476 * search.c (wordify): New argument for lax word-ends.
3477 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
3478
34792008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
3480
3481 * lisp.h (is_daemon): Declare.
3482 * dispnew.c (init_display): Do not try to initialize the terminal
3483 when running as a daemon.
3484
34852008-09-22 Chong Yidong <cyd@stupidchicken.com>
3486
3487 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
3488 x_display_pixel_height.
3489
34902008-09-22 Martin Rudalics <rudalics@gmx.at>
3491
3492 * undo.c (record_point): Don't call Fundo_boundary for first
3493 change. (Bug#731)
3494
34952008-09-22 Juanma Barranquero <lekktu@gmail.com>
3496
3497 * emacs.c (Fdaemonp): Doc fix.
3498
34992008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
3500
3501 * emacs.c (main): Place #ifdef in the proper place.
3502
35032008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
3504
3505 * emacs.c (standard_args): Add --daemon.
3506 (main): Disconnect from the terminal when --daemon is passed.
3507 (is_daemon): New variable.
3508 (Fdaemonp): New function.
3509 (syms_of_emacs): Defsubr it.
3510
35112008-09-20 Chong Yidong <cyd@stupidchicken.com>
3512
3513 * xdisp.c (get_next_display_element): Handle string display
3514 correctly when checking for the end of a box run.
3515
35162008-09-20 Glenn Morris <rgm@gnu.org>
3517
3518 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
3519 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
3520 (Frename_file): Avoid copying to trash if a rename involves
3521 a delete. (Bug#964).
3522
35232008-09-20 Eli Zaretskii <eliz@gnu.org>
3524
3525 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
3526 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
3527 frames as well as termcap frames.
3528 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
3529 get_named_tty.
3530
35312008-09-19 Eli Zaretskii <eliz@gnu.org>
3532
3533 * process.c (procfs_system_process_attributes): Fix cmdline in
3534 case /proc/PID/cmdline is empty.
3535
3536 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
3537 x_display_pixel_height.
3538
35392008-09-19 Juanma Barranquero <lekktu@gmail.com>
3540
3541 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
3542
3543 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
3544 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
3545
35462008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
3547
3548 * dispextern.h (struct it): Move line_wrap away from the middle of
3549 bitfields. Move voffset in struct iterator_stack_entry after the
3550 bitfields. Move tab_width near after another short.
3551
35522008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
3553
3554 * frame.h (struct frame): Move alpha from the middle of bitfields.
3555
3556 * window.h (struct window): Move frozen_window_start_p after the
3557 rest of the bitfields to reduce padding.
3558
35592008-09-18 Chong Yidong <cyd@stupidchicken.com>
3560
3561 * xterm.h (x_display_info): Remove `height' and `width' members.
3562
3563 * nsterm.h (ns_display_info): Remove `height' and `width' members.
3564
3565 * w32term.h (w32_display_info): Remove `height', `width',
3566 `height_in', and `width_in' members.
3567
b8ff72fa
SM
3568 * xterm.c (x_display_pixel_height, x_display_pixel_width):
3569 New functions.
aac0c6e3
MR
3570 (x_calc_absolute_position): Use them.
3571 (x_term_init): Omit removed `height' and `width' members.
3572
b8ff72fa
SM
3573 * w32term.c (x_display_pixel_height, x_display_pixel_width):
3574 New functions.
aac0c6e3
MR
3575 (w32_read_socket, x_calc_absolute_position): Use them.
3576 (w32_initialize_display_info, w32_term_init): Omit removed members
3577 of w32_display_info.
3578
b8ff72fa
SM
3579 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
3580 New functions.
3581 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 3582
b8ff72fa
SM
3583 * xterm.c (x_display_pixel_height, x_display_pixel_width):
3584 New functions.
aac0c6e3
MR
3585 (x_calc_absolute_position): Use them.
3586 (x_term_init): Omit removed `height' and `width' members.
3587
3588 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
3589 (compute_tip_xy):
3590 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
3591 * xmenu.c (menu_position_func): Use x_display_pixel_height and
3592 x_display_pixel_width.
3593
35942008-09-18 Kenichi Handa <handa@m17n.org>
3595
3596 * composite.c (fill_gstring_header): Don't check FROM and TO here.
3597 (composition_compute_stop_pos): Fix handling of static composition.
3598 (Fcomposition_get_gstring): Check FROM and TO at first.
3599
36002008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
3601
46e722a9 3602 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
3603 mixup (YAILOM).
3604
36052008-09-17 Chong Yidong <cyd@stupidchicken.com>
3606
3607 * indent.c (Fvertical_motion): Use position reported by iterator
3608 instead of PT for determining screen motion (bug#943).
3609
36102008-09-17 Romain Francoise <romain@orebokech.com>
3611
3612 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
3613
36142008-09-17 Kenichi Handa <handa@m17n.org>
3615
3616 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
3617
3618 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
3619 if necessary.
3620
36212008-09-16 Kenichi Handa <handa@m17n.org>
3622
3623 * coding.c (make_conversion_work_buffer): Avoid calling
3624 Fget_buffer_create if it is not necessary.
3625
36262008-09-15 Martin Rudalics <rudalics@gmx.at>
3627
3628 * window.c (Fselect_window): Don't update window_select_count and
3629 use_time when norecord is not nil.
3630
36312008-09-14 Kenichi Handa <handa@m17n.org>
3632
3633 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
3634 specpdl_ptr.
3635
36362008-09-12 Kenichi Handa <handa@m17n.org>
3637
3638 * indent.c (scan_for_column): Don't handle automatic composition
3639 if the current buffer is not associated with a window.
3640
3641 * composite.c (composition_reseat_it): If the current buffer is
3642 not associated with a window, ignore the automatic composition.
3643 (find_automatic_composition): Likewise.
3644
36452008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
3646
3647 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
3648 (Fgpm_mouse_stop): Use it.
3649 * termhooks.h (close_gpm): Declare.
3650 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
3651 connection if Gpm_GetEvent fails.
3652
3653 * window.c (set_window_buffer): Always preserve current-buffer.
3654
36552008-09-12 Glenn Morris <rgm@gnu.org>
3656
3657 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
3658
36592008-09-11 Glenn Morris <rgm@gnu.org>
3660
3661 * charset.c (charset-map-path): Doc fix.
3662
36632008-09-10 Kenichi Handa <handa@m17n.org>
3664
3665 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
3666
3667 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
3668 compose a grapheme cluster with the preceding base glyph.
3669
3670 * composite.c (composition_compute_stop_pos): Fix previous change.
3671 Reset cmp_it->id to -1 at first.
3672
36732008-09-10 Glenn Morris <rgm@gnu.org>
3674
3675 * Makefile.in (character.o, chartab.o): Fix config.h typo.
3676
36772008-09-09 Chong Yidong <cyd@stupidchicken.com>
3678
3679 * keyboard.c (read_key_sequence): Reapply translation maps when
3680 switching keyboards.
3681
36822008-09-09 Kenichi Handa <handa@m17n.org>
3683
3684 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
3685 characters.
3686
3687 * composite.c (FORWARD_CHAR): Fix calculation
3688 of (POSITION).pos_byte.
3689 (composition_compute_stop_pos): Limit the search of composition to
3690 at most 500 characters ahead. If we reach the limit or find a
3691 newline, set cmp_it->ch to -2 and return 0.
3692 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
3693
36942008-09-08 Kenichi Handa <handa@m17n.org>
3695
3696 * indent.c (Fvertical_motion): Be sure to set
3697 it_overshoot_expected if it.cmp_it.id is non-negative.
3698
36992008-09-07 Andreas Schwab <schwab@suse.de>
3700
3701 * callproc.c (Fcall_process): Don't hold references to string data
3702 across garbage collection. Move initialisation of new_argv down
3703 to avoid compiler bug.
3704
37052008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
3706
3707 * process.c (Fsystem_process_attributes): Doc fix.
3708
37092008-09-07 Chong Yidong <cyd@stupidchicken.com>
3710
3711 * callproc.c (Fcall_process): Canonicalize current directory name.
3712
3713 * xdisp.c (move_it_to): When moving by vpos, ensure that the
3714 iterator advances to the next line if the current line ends in a
3715 continued tab.
3716
37172008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
3718
3719 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
3720 member to point to cmp_from.
3721
3722 * xdisp.c: Doc fix for references to gidx data member.
3723
37242008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
3725
3726 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
3727
37282008-09-07 Kenichi Handa <handa@m17n.org>
3729
3730 * composite.c (FORWARD_CHAR): Check STOP after
3731 incrementing (POSITION).pos.
3732
37332008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
3734
3735 * process.c (Fsystem_process_attributes): Doc fix.
3736
37372008-09-06 Chong Yidong <cyd@stupidchicken.com>
3738
3739 * keyboard.c (Ftop_level): Doc fix.
3740
37412008-09-06 Eli Zaretskii <eliz@gnu.org>
3742
3743 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
3744 minibuffer, don't let lower part of menu invade the echo area.
3745
3746 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
3747 "char *q" to access menu text and advance through it. Revert the
3748 change that displayed ">" instead of ASCII character 0x10.
3749
37502008-09-05 Eli Zaretskii <eliz@gnu.org>
3751
3752 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
3753 toggle boxes and radio buttons on MS-DOS as well.
3754
37552008-09-05 Kenichi Handa <handa@m17n.org>
3756
3757 * composite.c (autocmp_chars): Check lookback count.
3758 (composition_compute_stop_pos): Set cmp_it->lookback.
3759 (composition_reseat_it): Check lookback count.
3760 (struct position_record): New struct.
3761 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
3762 (find_automatic_composition): New function.
3763 (composition_adjust_point): Use find_automatic_composition.
3764
3765 * dispextern.h (struct composition_it): New member lookback.
3766
37672008-09-02 Chong Yidong <cyd@stupidchicken.com>
3768
3769 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
3770 if moving by a single line.
3771
37722008-09-02 Andreas Schwab <schwab@suse.de>
3773
3774 * xterm.c (x_delete_display): Fix merge error.
3775
3776 * fileio.c (Fexpand_file_name): Remove unused variables.
3777
37782008-09-02 Eli Zaretskii <eliz@gnu.org>
3779
3780 * fileio.c (Fexpand_file_name): Copy argument `name' into local
3781 storage on all platforms, not just on DOS_NT.
3782
37832008-09-02 Jason Rumney <jasonr@gnu.org>
3784
b8ff72fa
SM
3785 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
3786 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
3787
37882008-09-01 Chong Yidong <cyd@stupidchicken.com>
3789
3790 * xfaces.c (Finternal_set_alternative_font_family_alist)
3791 (Finternal_set_alternative_font_registry_alist): Properly copy
3792 entire alist structure.
3793
37942008-09-01 Kenichi Handa <handa@m17n.org>
3795
d66c0241 3796 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 3797 representative chars of the script is a vector.
d66c0241
JB
3798 (ftfont_list): Handle the case where the representative chars of
3799 the script is a vector.
aac0c6e3
MR
3800
3801 * character.c (syms_of_character): Docstring of
3802 script-representative-chars fixed.
3803
38042008-08-31 Eli Zaretskii <eliz@gnu.org>
3805
3806 * msdos.c (BUILD_CHAR_GLYPH): New macro.
3807 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
3808 the menu. Allocate larger buffer for `text', to account for
3809 possible ^C characters.
3810
38112008-08-31 Martin Rudalics <rudalics@gmx.at>
3812
3813 * xdisp.c (prepare_menu_bars): Don't call
3814 Vwindow_size_change_functions with arg Qt.
3815
38162008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
3817
3818 * font.h (font_range):
3819 * fileio.c (report_file_error):
46e722a9
SM
3820 * composite.c (composition_update_it): Yet another int/Lisp_Object
3821 mixup (YAILOM).
aac0c6e3
MR
3822
38232008-08-30 Glenn Morris <rgm@gnu.org>
3824
3825 * data.c (Fmake_variable_frame_local): Doc fix.
3826
3827 * frame.c (Fmodify_frame_parameters): Doc fix.
3828
38292008-08-30 Eli Zaretskii <eliz@gnu.org>
3830
3831 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
3832 needed by GetTokenInformation.
3833 (w32_system_process_attributes): Check return values of all system
3834 APIs.
3835
3836 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
3837 only when the state changes.
3838 (IT_update_begin, IT_update_end): Add termscript trace.
3839
3840 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
3841 clipboard is unavailable. Set dst to NULL if it doesn't point to
3842 malloc'ed data.
3843 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
3844 passing random values to xfree.
3845
3846 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 3847 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
3848
38492008-08-29 Jason Rumney <jasonr@gnu.org>
3850
3851 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
3852
38532008-08-29 Eli Zaretskii <eliz@gnu.org>
3854
3855 * composite.c (fill_gstring_body): Avoid compiler warnings.
3856
3857 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
3858 LGLYPH_SET_CODE to avoid compiler warnings.
3859
2ae37cf0 3860 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
3861
3862 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
3863
3864 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
3865 LGLYPH_SET_CODE.
3866
38672008-08-29 Kenichi Handa <handa@m17n.org>
3868
3869 * fileio.c (report_file_error): Don't downcase the first character
3870 of errstring if it is still unibyte.
3871
38722008-08-29 Kenichi Handa <handa@m17n.org>
3873
3874 These changes are to re-implement the automatic composition so
3875 that it doesn't use text properties.
3876
3877 * Makefile.in (ftfont.o): Depend on composite.h.
3878 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
3879
3880 * character.h (Vunicode_category_table): Extern it.
3881
3882 * character.c (Vunicode_category_table): New variable.
3883 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
3884
3885 * chartab.c (optimize_sub_char_table): Perform more greedy
3886 optimization.
3887
b8ff72fa
SM
3888 * composite.h (enum composition_method):
3889 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
3890 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
3891 (Vcomposition_function_table): Extern it.
3892 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
3893 (composition_gstring_put_cache, composition_gstring_from_id)
3894 (composition_gstring_p, composition_gstring_width)
3895 (composition_compute_stop_pos, composition_reseat_it)
3896 (composition_update_it, composition_adjust_point): Extern them.
3897 (Fcomposition_get_gstring): EXFUN it.
3898
d66c0241 3899 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
3900 (Vcomposition_function_table)
3901 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
3902 (gstring_hash_table, gstring_work, gstring_work_headers):
3903 New variables.
aac0c6e3
MR
3904 (gstring_lookup_cache, composition_gstring_put_cache)
3905 (composition_gstring_from_id, composition_gstring_p)
3906 (composition_gstring_width, fill_gstring_header)
3907 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
3908 (composition_reseat_it, composition_update_it)
b8ff72fa 3909 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
3910 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
3911 and gstring_work_headers. DEFVAR_LISP composition-function-table.
3912 Defsubr compostion_get_gstring.
3913
3914 * dispextern.h (struct glyph): New union u.cmp. Delete the member
3915 cmp_id.
3916 (struct glyph_string): Delete the member gidx. New members
3917 cmp_id, cmp_from, and cmp_to.
3918 (enum it_method): Delete GET_FROM_COMPOSITION.
3919 (struct composition_it): New struct.
3920 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
3921 Delete c, len, cmp_id, cmp_len in u.comp.
3922
3923 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 3924 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 3925 (enum lglyph_indices): Likewise.
b8ff72fa 3926 (font_range): Adjust extern.
aac0c6e3
MR
3927 (font_fill_lglyph_metrics): Extern it.
3928
3929 * font.c (QCf): New variable.
3930 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
3931 (font_prepare_composition): Delete this function.
3932 (font_range): Type and arguments changed.
3933 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
3934 (font_fill_lglyph_metrics): New function.
b8ff72fa 3935 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 3936 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
3937 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
3938 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
3939
3940 * fontset.h (font_for_char): Extern it.
3941
3942 * fontset.c (font_for_char): New function.
3943
3944 * ftfont.c: Include composite.h.
3945 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 3946 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
3947
3948 * indent.c: Include composite.h and dispextern.h.
3949 (check_composition): Delete this function.
3950 (scan_for_column): Handle composition by
3951 composition_compute_stop_pos, composition_reseat_it, and
3952 composition_update_it.
3953 (compute_motion): Likewise.
3954 (Fvertical_motion): Fix checking of composition.
3955
3956 * keyboard.c (adjust_point_for_property): Check composition by
3957 composition_adjust_point.
3958
b8ff72fa 3959 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
3960 struct glyph_string.
3961
b8ff72fa
SM
3962 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
3963 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
3964 struct glyph.
3965 (produce_composite_glyph): Likewise.
3966
b8ff72fa
SM
3967 * w32term.c (x_draw_composite_glyph_string_foreground):
3968 Adjust for the change of struct glyph_string.
aac0c6e3
MR
3969 (x_draw_glyph_string): Likewise.
3970
3971 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
3972 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
3973
3974 * xdisp.c: Include font.h.
3975 (it_props): Delete the entry for Qauto_composed.
3976 (init_iterator): Initialize it->cmp_it.id to -1.
3977 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 3978 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
3979 (handle_auto_composed_prop): Delete it.
3980 (handle_composition_prop): Handle only static composition.
3981 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
3982 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 3983 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
3984 (pop_it): Likewise.
3985 (get_next_element): Delete next_element_from_composition.
3986 (CHAR_COMPOSED_P): New macro.
3987 (get_next_display_element): For automatic composition, get a face
3988 from the font in the glyph-string.
3989 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 3990 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
3991 (next_element_from_string): Check if the character at the current
3992 position is composed by CHAR_COMPOSED_P.
3993 (next_element_from_buffer): Likewise.
d66c0241
JB
3994 (next_element_from_composition): Adjust for the change of struct it.
3995 Update it->cmp_it.
b8ff72fa
SM
3996 (dump_glyph): Adjust for the change of struct glyph.
3997 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
3998 it and struct glyph. Don't handle automatic composition here.
3999 (fill_gstring_glyph_string): New function.
4000 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 4001 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
4002 (BUILD_GSTRING_GLYPH_STRING): New macro.
4003 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
4004 automatic composition.
b8ff72fa 4005 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 4006 struct glyph.
b8ff72fa 4007 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 4008
b8ff72fa 4009 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
4010 the change of struct glyph_string.
4011 (x_draw_glyph_string): Likewise.
4012
40132008-08-29 Glenn Morris <rgm@gnu.org>
4014
4015 * buffer.c (word-wrap): Doc fix.
4016 * xdisp.c (truncate-partial-width-windows): Doc fix.
4017 Increase default to 50.
4018
40192008-08-29 Chong Yidong <cyd@stupidchicken.com>
4020
4021 * xdisp.c (update_tool_bar_unwind): New function.
4022 (update_tool_bar): Temporarily set selected frame before building
4023 tool-bar items.
4024
40252008-08-28 Michael Albinus <michael.albinus@gmx.de>
4026
4027 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
4028 snprintf, respectively.
4029 (xd_append_arg): Convert strings with Fstring_make_unibyte.
4030
40312008-08-28 Chong Yidong <cyd@stupidchicken.com>
4032
4033 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
4034 LDFLAGS to GNUstep CC invocation.
4035
40362008-08-27 Chong Yidong <cyd@stupidchicken.com>
4037
4038 * indent.c (Fvertical_motion): Revert last change. Handle the
4039 general case where we are moving forward, and PT spans multiple
4040 screen lines.
4041
4042 * eval.c (find_handler_clause): Temporarily increase
4043 max-lisp-eval-depth while printing the backtrace buffer, to
4044 guarantee that help-mode code can run.
4045
40462008-08-27 Eli Zaretskii <eliz@gnu.org>
4047
4048 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
4049 colors under -rv.
4050 (IT_set_frame_parameters): Don't swap foreground and background
4051 colors if `(reverse . t)' is present in the frame properties.
4052 (internal_terminal_init): Call init_frame_faces only for the
4053 initial frame.
4054
40552008-08-27 Andreas Schwab <schwab@suse.de>
4056
4057 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
4058
40592008-08-27 Andreas Schwab <schwab@suse.de>
4060
4061 * search.c (search_buffer): Set char_base to zero only at the end.
4062
40632008-08-27 Kenichi Handa <handa@m17n.org>
4064
b8ff72fa 4065 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
4066
40672008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
4068
4069 * xterm.c (x_term_init): Temporarily hide the partially
4070 initialized terminal while calling vendor-specific-keysyms.
4071
40722008-08-26 Eli Zaretskii <eliz@gnu.org>
4073
4074 * msdos.c (internal_terminal_init): Most initializations done only
4075 once, especially initial_screen_colors[] and termscript open.
4076
40772008-08-26 Chong Yidong <cyd@stupidchicken.com>
4078
4079 * eval.c (Fcondition_case): Doc fix.
4080
4081 * widgetprv.h (EmacsFramePart): Change font member to the new font
4082 struct.
4083
4084 * widget.c: Include character.h and font.h for XSETFONT.
4085 (setup_frame_gcs): Compute X font id from font struct, just once.
4086
40872008-08-26 Eli Zaretskii <eliz@gnu.org>
4088
4089 * term.c (get_named_tty): Fix last change.
4090
40912008-08-26 Chong Yidong <cyd@stupidchicken.com>
4092
4093 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 4094 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
4095
40962008-08-25 Eli Zaretskii <eliz@gnu.org>
4097
4098 * frame.c (do_switch_frame): Mark previously displayed frame as
4099 obscured for FRAME_MSDOS_P frames as well.
4100
41012008-08-24 Eli Zaretskii <eliz@gnu.org>
4102
4103 * frame.c (make_terminal_frame): Initialize f->terminal,
4104 f->terminal->reference_count, and scroll bars on MS-DOS as well.
4105 Set the top frame to newly created frame.
4106 (Fmake_terminal_frame): Reuse the_only_display_info.
4107
4108 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
4109 estimating available memory.
4110
b97439ce 41112008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
4112
4113 * nsterm.m (ns_draw_window_cursor): Don't call
4114 NSDisableScreenUpdates and NSEnableScreenUpdates on
4115 non-NS_IMPL_COCOA systems.
4116
41172008-08-23 Andreas Schwab <schwab@suse.de>
4118
4119 * process.c (procfs_system_process_attributes): Fix use of
4120 uninitialized variables.
4121
41222008-08-23 Eli Zaretskii <eliz@gnu.org>
4123
4124 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
4125
4126 * dispnew.c (init_display): Remove MS-DOS specific conditions for
4127 calling tty-set-up-initial-frame-faces.
4128
b8ff72fa
SM
4129 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
4130 Allow MSDOS frames along with X frames.
aac0c6e3
MR
4131
4132 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
4133 addition to output_termcap.
4134
4135 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
4136
4137 * termchar.h (FRAME_TTY): Support output_msdos_raw.
4138 (struct tty_display_info) [MSDOS]: Add fields related to mouse
4139 highlight.
4140
4141 * process.c [!subprocesses]: Define QCname.
4142 (syms_of_process): Intern and staticpro it.
4143
4144 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
4145 Adjust for changes in encoding/decoding routines.
4146 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
4147 encode_coding and decode_coding.
4148
b8ff72fa 4149 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
4150
4151 * dosfns.c: Include frame.h before termhooks.h.
4152 (dos_cleanup): Use CURTTY ()->termscript instead of a global
4153 variable termscript.
4154
4155 * s/msdos.h (USER_FULL_NAME): Define.
4156 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
4157
4158 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
4159 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
4160 pw->pw_gecos.
4161
4162 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
4163 SELECTED_FRAME as additional (1st) argument.
4164 (tty_read_avail_input): Handle output_msdos_raw in
4165 addition to output_termcap.
4166
4167 * msdos.c: Include frame.h before termhooks.h.
4168 (mouse_on, mouse_off, mouse_moveto, mouse_init)
4169 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
4170 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
4171 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
4172 (IT_set_terminal_modes, IT_reset_terminal_modes)
4173 (IT_set_frame_parameters): Use tty->termscript instead of a global
4174 variable termscript.
4175 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
4176 global variable terminal_coding. Don't refer to
4177 Vnonascii_translation_table.
4178 (internal_terminal_init): Set Vwindow_system in current_kboard.
4179 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
4180 Announce date and time of session start, if termscript is open.
4181 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
4182 term.c:init_tty). Open termscript only of not already open.
4183 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
4184 here instead of dos_ttraw. Don't initialize display if this is an
4185 initial tty. Don't set FRAME_FONT.
4186 (Vwindow_system_version): Bump to 23.
4187 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
4188 is available, set up mouse_position_hook.
4189 (dos_ttraw, IT_set_terminal_modes): If called with initial
4190 terminal, do nothing.
4191 (IT_set_frame_parameters): Handle the Qtty_type frame
4192 parameter by calling internal_terminal_init.
4193 (dos_set_window_size, show_mouse_face)
4194 (clear_mouse_face, IT_note_mode_line_highlight)
4195 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
4196 (dos_rawgetc): Use tty_display_info instead of x_display_info.
4197 (initialize_msdos_display): New function.
4198 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
4199 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
4200 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
4201 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 4202 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
4203 (request_sigio, unrequest_sigio): Don't define, now defined on
4204 sysdep.c.
4205 (IT_write_glyphs): Rewrite to use encode_terminal_code.
4206
4207 * term.c [MSDOS]: Include msdos.h.
4208 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
4209 conditional to DOS_NT. Allow only one call to this function in a
4210 session. Don't allocate a new struct tty_display_info; instead,
4211 reuse the_only_display_info. Call get_tty_size to get screen
4212 dimensions. Call init_baud_rate to set bad_rate.
4213 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
4214 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 4215 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
4216 (get_tty_terminal, get_named_tty, Ftty_type)
4217 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
4218 output_termcap.
b8ff72fa
SM
4219 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
4220 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 4221 only when subprocesses are supported.
aac0c6e3
MR
4222
4223 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
4224 f->output_data.x.
4225 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
4226 terminal devices.
4227
5582fbc7 4228 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
4229 x_output.
4230 (FRAME_FONT): Use output_data.tty.
4231 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
4232 (struct x_display_info): Rename from display_info. Update all users in
4233 msdos.c.
aac0c6e3 4234 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 4235 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
4236 (dos_ttraw): Update prototype.
4237
4238 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
4239 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
4240
42412008-08-23 Jason Rumney <jasonr@gnu.org>
4242
4243 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
4244 (fn_TIFFSetDirectory): New library function used.
4245 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
4246 (tiff_load): Use :index to select among multiple images. Set count
4247 property when multiple images exist.
4248 (gif_format): Use :index, not :image.
4249
42502008-08-23 Chong Yidong <cyd@stupidchicken.com>
4251
4252 * xdisp.c (try_scrolling): Check INT_MAX instead of
4253 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
4254 to obtain INT_MAX.
4255
42562008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
4257
4258 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
4259
42602008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
4261
4262 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
4263 GNUstep library location.
4264
42652008-08-21 Chong Yidong <cyd@stupidchicken.com>
4266
4267 * xfaces.c (x_update_menu_appearance): Check validity of menu font
4268 before using it.
4269
4270 * puresize.h (BASE_PURESIZE): Increase to 1250000.
4271
42722008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4273
4274 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
4275 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
4276 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
4277 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
4278 (EmacsApp-cursor_blink_handler): Remove declaration.
4279 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
4280 match 01 Feb 2008 changes in xterm.c.
4281 (ns_read_socket): Add cast to avoid warning.
4282 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
4283 GNUstep.
4284
42852008-08-20 Chong Yidong <cyd@stupidchicken.com>
4286
4287 * xselect.c (x_get_foreign_selection): Return nil if desired
4288 selection could not be obtained, instead of signalling an error.
4289
42902008-08-20 David Reitter <david.reitter@gmail.com>
4291
4292 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
4293 * nsterm.m: Remove ns-specific code for cursor blinking.
4294 (ns_draw_window_cursor): Clear cursor properly rather than
4295 redrawing the area. Respect width of bar cursors.
4296 These changes enable the use of generic blink-cursor-mode and
4297 generic cursor types in NS and support smooth cursor movements (do
4298 not blink off after command).
4299 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
4300 Nextstep, too.
4301
43022008-08-19 Kenichi Handa <handa@m17n.org>
4303
4304 * font.c (Vfont_log_deferred): New variable.
4305 (font_add_log): Check Vfont_log_deferred.
4306 (font_deferred_log): New function.
4307
4308 * font.h (font_deferred_log): Extern it.
4309
4310 * fontset.c (reorder_font_vector): Use encoding charset of fonts
4311 for sorting.
4312 (face_for_char): Use deferred log.
4313
43142008-08-18 Kenichi Handa <handa@m17n.org>
4315
4316 * fontset.c (face_for_char): Add font log.
4317
4318 * font.c (font_add_log): Add the font properties :script, :lang,
4319 and :otf in the log.
4320
43212008-08-17 Chong Yidong <cyd@stupidchicken.com>
4322
4323 * xdisp.c: Remove dead code.
4324 (handle_invisible_prop, next_overlay_string): Defer call to
4325 setup_for_ellipsis.
4326 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
4327
43282008-08-15 Chong Yidong <cyd@stupidchicken.com>
4329
4330 * xfaces.c (lookup_derived_face): Properly handle possible zero
4331 return value of get_lface_attributes.
4332 (merge_faces): Don't tell lookup_derived_face to signal an error
4333 if face is not found.
4334
4335 * dired.c (Fdirectory_files): Doc fix.
4336
4337 * process.c (make_process): Initialize kill_without_query struct
4338 member.
4339
43402008-08-15 Eli Zaretskii <eliz@gnu.org>
4341
4342 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
4343 Alternative calculation of totphys for Visual Studio 6.
4344
4345 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
4346
4347 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
4348 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
4349 All users changed.
4350 (stat): Only root directory passed to GetDriveType. Allow RAM
4351 disk as well as local fixed disk when w32-get-true-file-attributes
4352 is set to `local'.
4353 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
4354 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
4355 (w32_cached_id, w32_add_to_cache): New functions.
4356 (get_name_and_id): Look account names in the cache before calling
4357 lookup_account_sid.
4358 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
4359 New initialization flags.
4360 (globals_of_w32): Initialize them to zero.
4361 (w32_system_process_attributes): Use w32_cached_id and
4362 w32_add_to_cache.
4363
43642008-08-14 Lawrence Mitchell <wence@gmx.li>
4365
4366 * lread.c (Fread_char, Fread_char_exclusive): If no character
4367 event is read before timeout is reached, return nil, rather than
4368 converting to a number.
4369
43702008-08-14 Chong Yidong <cyd@stupidchicken.com>
4371
4372 * fns.c (use_dialog_box): Doc fix.
4373
4374 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
4375 on OS X.
4376
43772008-08-13 Chong Yidong <cyd@stupidchicken.com>
4378
4379 * frame.c (Qns_parse_geometry): New var.
4380 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
4381
43822008-08-11 Chong Yidong <cyd@stupidchicken.com>
4383
4384 * xdisp.c (x_produce_glyphs): Handle the case when font has no
4385 space character in calculating tabs.
4386
43872008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
4388
4389 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
4390
43912008-08-10 Glenn Morris <rgm@gnu.org>
4392
4393 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
4394 silence gcc "limited range of data type" warnings in some
4395 make_fixnum_or_float calls.
4396
43972008-08-09 Eli Zaretskii <eliz@gnu.org>
4398
4399 * w32.c (w32_system_process_attributes): If the process does not
4400 exist, return nil.
4401
4402 * w32.c: Include thelp32.h, psapi.h and coding.h.
4403 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
4404 declarations.
4405 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
4406 (Process32Next_Proc): New typedefs.
4407 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
4408 (g_b_init_process32_next, g_b_init_open_thread_token)
4409 (g_b_init_impersonate_self, g_b_init_revert_to_self)
4410 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
4411 (g_b_init_get_process_working_set_size)
4412 (g_b_init_global_memory_status_ex): New static variables.
4413 (globals_of_w32): Initialize them.
4414 (create_toolhelp32_snapshot, process32_first, process32_next)
4415 (open_thread_token, impersonate_self, revert_to_self)
4416 (get_process_memory_info, get_process_working_set_size)
4417 (global_memory_status, global_memory_status_ex): New wrapper
4418 functions.
4419 (w32_list_system_processes, w32_system_process_attributes)
4420 (enable_privilege, restore_privilege, ltime, process_times):
4421 New functions.
4422 (convert_time_raw): New function.
4423 (convert_time): Remove conversion of FILETIME into time in 100
4424 nsec units, call convert_time_raw instead.
4425
4426 * process.h (w32_list_system_processes, w32_system_process_attributes):
4427 Add prototypes.
4428 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
4429 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
4430 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
4431 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
4432
4433 * process.c (Fsystem_process_attributes): Doc fix.
4434
44352008-08-08 Chong Yidong <cyd@stupidchicken.com>
4436
4437 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
4438 a continued multi-char glyph; if so, advance to the actual glyph.
4439
44402008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
4441
4442 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
4443
4444 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
4445 (.m.o): Use it.
4446 * config.in: Regenerate.
4447
44482008-08-07 Chong Yidong <cyd@stupidchicken.com>
4449
4450 * xdisp.c (redisplay_window): Revert last change.
4451 (try_window): Check bottom scroll margin too.
4452
44532008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4454
4455 * config.in: Regenerate.
4456
4457 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
4458 -list-load-path-shadows'.
4459 (nsgui.h): Reduce number of things depending on it.
4460
44612008-08-06 Chong Yidong <cyd@stupidchicken.com>
4462
4463 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
4464 instead of window-end which does the wrong thing at eob.
4465 (try_cursor_movement): Minor optimization.
4466 (redisplay_window): If scroll margin is defined, don't assume
4467 window doesn't need scrolling.
4468
44692008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4470
4471 * config.in: Regenerate.
4472
4473 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
4474 (mostlyclean): Don't delete *.d under NS.
4475
4476 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
4477
44782008-08-06 Kenichi Handa <handa@m17n.org>
4479
4480 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
4481
44822008-08-06 Andreas Schwab <schwab@suse.de>
4483
4484 * config.in: Regenerate.
4485
44862008-08-05 Chong Yidong <cyd@stupidchicken.com>
4487
4488 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
4489 forcing a window start.
4490
4491 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
4492 (auto_save_1): Update modtime when auto-save-list-file-name is on.
4493
44942008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4495
4496 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
4497 argument.
4498
44992008-08-05 Juanma Barranquero <lekktu@gmail.com>
4500
4501 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
4502 <scroll-down-aggressively, before-change-functions>:
4503 <after-change-functions>: Reflow docstrings.
4504
45052008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4506 Ken Raeburn <raeburn@gnu.org>
4507
4508 Dock menu customization, based on a patch by Ken Raeburn, plus some
4509 other fixes.
4510 * nsmenu.m (dockMenu): New variable.
4511 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
4512
4513 * nsterm.h (dockMenu): Declare.
4514
4515 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
4516 (ns_term_init): Initialize dockMenu.
4517 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
4518 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
4519 left.
4520
4521 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
4522
45232008-08-04 Chong Yidong <cyd@stupidchicken.com>
4524
4525 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
4526
4527 * config.in: Regenerate.
4528
45292008-08-04 Seiji Zenitani <zenitani@mac.com>
4530
4531 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
4532
45332008-08-04 Chong Yidong <cyd@stupidchicken.com>
4534
4535 * nsterm.h (find_and_call_menu_selection): Fix prototype.
4536
45372008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4538
4539 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
4540
4541 * keyboard.h: Comment an #endif.
4542
4543 * lisp.h (have_menus_p): Adjust comment.
4544
4545 * menu.c (find_and_return_menu_selection): Fix comparison with
4546 client_data.
4547
4548 * nsmenu.m (popup_activated_flag): New variable.
4549 (popup_activated): New function.
4550 (menu-or-popup-active-p): New exported lisp definition.
4551 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
4552 when popup done.
4553 (ns_popup_dialog): Set popup_activated_flag.
4554
4555 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
4556 version for GNUstep (handled by conditional typedef in nsterm.m).
4557 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
4558 in rgb.txt).
4559
4560 * process.c (init_process): Use DARWIN_OS, not DARWIN.
4561
4562 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
4563
4564 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
4565
4566 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
4567 shortcircuit if popup_activated like GTK and X toolkit.
4568
4569 * m/inter386.h: Change DARWIN to DARWIN_OS.
4570
4571 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
4572 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
4573 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
4574 comment on NO_SOCK_SIGIO.
4575
45762008-08-03 Chong Yidong <cyd@stupidchicken.com>
4577
4578 * nsterm.m (windowDidResize): Remove stopModal call.
4579
45802008-08-03 Andreas Schwab <schwab@suse.de>
4581
4582 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
4583 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
4584
45852008-08-02 Chong Yidong <cyd@stupidchicken.com>
4586
4587 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
4588 Don't use uninitialized pointer variable when using getrlimit.
4589
45902008-08-02 Jason Rumney <jasonr@gnu.org>
4591
4592 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
4593
45942008-08-02 Eli Zaretskii <eliz@gnu.org>
4595
4596 * alloc.c (NSTATICS): Bump to 0x640.
4597
4598 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
4599
4600 * lisp.h: Add prototype for directory_files_internal.
4601
4602 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
4603 New functions.
4604 (syms_of_process): Defsubr them. Add initializations for various
4605 Q* symbols used in procfs_system_process_attributes.
4606 (procfs_list_system_processes, procfs_system_process_attributes)
4607 [HAVE_PROCFS]: New functions.
4608 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
4609 (procfs_get_total_memory): New functions.
4610
46112008-08-01 Juanma Barranquero <lekktu@gmail.com>
4612
4613 * xfaces.c (Fx_load_color_file): Fix previous change;
4614 it is #ifdef WINDOWSNT, not WINDOWS_NT.
4615
46162008-08-01 Michael Albinus <michael.albinus@gmx.de>
4617
4618 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
4619
46202008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4621
4622 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
4623
46242008-08-01 Chong Yidong <cyd@stupidchicken.com>
4625
4626 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
4627
4628 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
4629 define NSApplicationDelegateReplySuccess.
4630 (EmacsView -converstationIdentifier): Use long instead of
4631 NSInteger for GNUstep, since it doesn't have NSInteger.
4632
4633 * xmenu.c: Revert last change.
4634
4635 * keyboard.h: Fix last change.
4636
46372008-08-01 Juanma Barranquero <lekktu@gmail.com>
4638
4639 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
4640 on Windows.
4641
46422008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4643
4644 Warning clearing and clean-up in NS port.
4645 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
4646 Add prototypes.
4647 * nsgui.h (FACE_DEFAULT): Remove, unused.
4648 (XGCValues): Change colors to unsigned long.
4649 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
4650 nsterm.m.
4651 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
4652 (ns_list_fonts): Remove, unused.
4653 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
4654 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
4655 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
4656 (nsfont_draw): Compare face colors to 0, not nil.
4657 * nsmenu.m (struct widget_value): Drop unneeded declaration.
4658 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
4659 (-addSubmenuWithTitle:): Use NSMenuItem class.
4660 (ns_popup_menu): Use NO, not NULL, for enabled setting.
4661 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
4662 (ns_clip_to_row): Make gc arg a BOOL.
4663 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
4664 ns_clip_to_row() call.
4665 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
4666 used). Cast FRAME_FONT assignments.
4667 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
4668 (ns_string_to_lispmod): Change arg to const char.
4669 (ns_term_init): Use NSMenuItem class.
4670 (EmacsApp -openFile:): Move to different section of file.
4671 (EmacsApp -application:openFiles:): Don't return a value, call
4672 -replyToOpenOrPrint:.
4673 (EmacsView -keyDown:): Fix up cast.
4674 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
4675 (EmacsView -menuDown:): Cast tag in call to
4676 find_and_call_menu_selection().
4677 (ns_list_fonts): Remove, unused.
4678 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
4679 (ns_fontname_to_xlfd): Make static.
4680 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
4681 Remove prototypes (now in keyboard.h).
4682 (next_menubar_widget_id): Remove, unused.
4683 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
4684 Remove prototypes (now in keyboard.h).
4685 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
4686
46872008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
4688
4689 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
4690 (floatfns.o): Depend on syssignal.h.
4691 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
4692
4693 * systty.h: Fix previous change that removed BSD_TERMIOS.
4694 Add comments to #ifdefs.
4695
46962008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4697
4698 * w32fns.c (w32-load-color-file): Remove.
4699 (x-open-connection): Use renamed Fx_load_color_file.
4700 * xfaces.c (x-load-color-file): Add.
4701 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
4702 Emacs.clr.
4703 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
4704
47052008-07-31 Michael Albinus <michael.albinus@gmx.de>
4706
4707 * dbusbind.c (Fdbus_call_method_asynchronously)
4708 (Fdbus_method_error_internal): New defuns.
4709 (xd_read_message): Handle also reply messages.
4710 (Vdbus_registered_functions_table): Extend docstring.
4711
47122008-07-31 Juanma Barranquero <lekktu@gmail.com>
4713
4714 * keyboard.c (gobble_input): Fix previous change.
4715
47162008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
4717
4718 * bitmaps/README:
4719 * xfns.c:
4720 * termcap.c:
4721 * term.c:
4722 * syswait.h:
4723 * systty.h:
4724 * systime.h:
4725 * syssignal.h:
4726 * sysdep.c:
4727 * process.h:
4728 * process.c:
4729 * print.c:
4730 * ndir.h:
4731 * lread.c:
4732 * keyboard.c:
4733 * getpagesize.h:
4734 * floatfns.c:
4735 * fileio.c:
4736 * emacs.c:
4737 * doc.c:
4738 * dispnew.c:
4739 * dired.c:
4740 * data.c:
4741 * callproc.c:
4742 * buffer.c:
4743 * README:
4744 * Makefile.in:
4745 * s/template.h:
4746 * s/msdos.h:
4747 * m/vax.h: Remove VMS support.
4748 * s/vms.h:
4749 * vlimit.h:
4750 * uaf.h:
4751 * temacs.opt:
4752 * param.h:
4753 * ioctl.h: Remove file.
4754
47552008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
4756
4757 * s/ms-w32.h (MULTI_KBOARD): Remove.
4758 * xterm.c:
4759 * xselect.c:
4760 * xfns.c:
4761 * window.c:
4762 * w32term.c:
4763 * w32fns.c:
4764 * terminal.c:
4765 * termhooks.h:
4766 * term.c:
4767 * sysdep.c:
4768 * keyboard.h:
4769 * keyboard.c:
4770 * frame.h:
4771 * frame.c:
4772 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
4773 * config.in: Regenerate.
4774
47752008-07-30 Jason Rumney <jasonr@gnu.org>
4776
4777 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
4778
4779 * w32font.c (w32font_encode_char): Leave as unicode if in range.
4780 (w32font_open_internal): Get unicode version of textmetrics.
4781 Don't enable or disable glyph indices here.
4782 (w32font_open): Disable use of glyph indices.
4783
4784 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
4785
47862008-07-30 Chong Yidong <cyd@stupidchicken.com>
4787
4788 * minibuf.c (Vread_buffer_function): Doc fix.
4789
47902008-07-30 John Paul Wallington <jpw@pobox.com>
4791
4792 * minibuf.c (read_buffer_completion_ignore_case): New var.
4793 (Fread_buffer): Use it.
4794
47952008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
4796
4797 * systty.h (sensemode): Remove empty #if. Remove reference to
4798 BSD_TERMIOS, unused.
4799
4800 * sysdep.c: Remove reference to DGUX.
4801 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
4802
4803 * config.in: Regenerate.
4804
48052008-07-30 Jason Rumney <jasonr@gnu.org>
4806
4807 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
4808
48092008-07-29 Jason Rumney <jasonr@gnu.org>
4810
4811 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
4812 is populated.
4813 (uniscribe_encode_char): Always use uniscribe.
4814 Avoid using context if cache is populated.
4815
48162008-07-29 Jan Djärv <jan.h.d@swipnet.se>
4817
4818 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
4819 open menu.
4820
4821 * gtkutil.c (menu_nav_ended): Remove.
4822 (create_menus): Remove signal connect for menu_nav_ended.
4823
48242008-07-28 Chong Yidong <cyd@stupidchicken.com>
4825
4826 * xdisp.c (redisplay_window): Check return value of
4827 compute_window_start_on_continuation_line before forcing a window
4828 start.
4829
48302008-07-28 Jason Rumney <jasonr@gnu.org>
4831
4832 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
4833
4834 * w32term.c (w32_enable_unicode_output, cleartype_active):
4835 Remove obsolete display options.
4836 (x_draw_glyph_string_background): Don't use old cleartype_active
4837 workaround.
4838 (w32_initialize): Remove cleartype_active initialization.
4839 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
4840
48412008-07-28 Andreas Schwab <schwab@suse.de>
4842
4843 * lisp.h (init_weak_hash_tables, syms_of_font)
4844 (xd_read_queued_messages, syms_of_dbusbind): Declare.
4845 (remove_hash_entry): Don't declare.
4846 * eval.c (maybe_call_debugger): Make static and move before use.
4847 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
4848 * xdisp.c: Include "gtkutil.h" if USE_GTK.
4849 * xterm.h (x_set_frame_alpha): Declare.
4850
48512008-07-28 Jan Djärv <jan.h.d@swipnet.se>
4852
4853 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
4854 (create_menus): Connect selection-done to menu_nav_ended.
4855
48562008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
4857
4858 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
4859 Set Vx_resource_name to a fallback. Replace read of 'buffered'
4860 parameter with read of 'alpha' one.
4861 (Qns_frame_parameter): Remove.
5582fbc7 4862 * nsselect.m (selection-coding-system)
aac0c6e3
MR
4863 (next-selection-coding-system, Vselection_coding_system)
4864 (Vnext_selection_coding_system): Drop.
4865
48662008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
4867
4868 * nsfns.m (do-applescript, do_applescript): Rename to
4869 ns-do-applescript, ns_do_applescript, and move within file.
4870
48712008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
4872
4873 Remove support for Mac Carbon.
4874 * mactoolbox.c:
4875 * macterm.h:
4876 * macterm.c:
4877 * macselect.c:
4878 * macmenu.c:
4879 * macgui.h:
4880 * macfns.c:
4881 * mac.c: Remove file.
4882 * s/darwin.h:
4883 * m/intel386.h:
4884 * xfaces.c:
4885 * xdisp.c:
4886 * window.c:
4887 * tparam.c:
4888 * termhooks.h:
4889 * termcap.c:
4890 * term.c:
4891 * syssignal.h:
4892 * sysselect.h:
4893 * sysdep.c:
4894 * process.c:
4895 * lread.c:
4896 * lisp.h:
4897 * keyboard.c:
4898 * image.c:
4899 * fringe.c:
4900 * frame.h:
4901 * frame.c:
4902 * fontset.c:
4903 * font.h:
4904 * font.c:
4905 * fns.c:
4906 * fileio.c:
4907 * emacs.c:
4908 * dispnew.c:
4909 * dispextern.h:
4910 * config.in:
4911 * atimer.c:
2ae37cf0 4912 * Makefile.in: Remove code for Carbon.
aac0c6e3 4913
f0131492 49142008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
4915
4916 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
4917
49182008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4919
4920 * macterm.h (kCGBitmapByteOrder32Host): New define for
4921 non-universal SDKs.
4922
4923 * image.c (mac_create_cg_image_from_image, image_load_image_io)
4924 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
4925
4926 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
4927 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
4928
49292008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
4930
4931 * w32inevt.c: Include dispextern.h.
4932
49332008-07-26 Andreas Schwab <schwab@suse.de>
4934
4935 * print.c (print_object): Fix off-by-one in last change.
4936
49372008-07-25 Juanma Barranquero <lekktu@gmail.com>
4938
4939 * term.c (syms_of_term): Don't initialize default_orig_pair,
4940 default_set_foreground and default_set_background on Windows.
4941
49422008-07-25 Jason Rumney <jasonr@gnu.org>
4943
4944 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
4945 ScriptItemize. Clean up return value checking. Remove unused
4946 variables.
4947 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
4948 shaping engine.
4949
4950 * w32font.c (w32font_has_char): Handle the case where we can't
4951 determine the script for a character.
4952
49532008-07-25 Chong Yidong <cyd@stupidchicken.com>
4954
4955 * term.c (syms_of_term): Initialize default_orig_pair,
4956 default_set_foreground, and default_set_background.
4957
4958 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
4959 clash (bug#86).
4960 (getloadavg): Callers changed.
4961
4962 * image.c (svg_load_image): Fix last change.
4963 (svg_load_image): Use rsvg_handle_get_dimensions to check that
4964 image size is valid. Use g_object_unref instead of deprecated
4965 rsvg_handle_free to free rsvg handle.
4966 (x_from_xcolors): Don't initialize pixmap (silence compiler).
4967
49682008-07-25 Jason Rumney <jasonr@gnu.org>
4969
4970 * w32font.c (w32font_encode_char): Encode characters outside BMP as
4971 surrogates before looking up glyph index.
4972 (w32font_text_extents): Encode as surrogates if falling back to
4973 functions that need UTF-16 wide chars.
4974
4975 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
4976 BMP as surrogates before looking up glyph index.
4977
49782008-07-25 Chong Yidong <cyd@stupidchicken.com>
4979
4980 * image.c (svg_load_image): Check for failure in return value of
4981 rsvg_handle_get_pixbuf. Free rsvg handle when done.
4982
49832008-07-25 Jason Rumney <jasonr@gnu.org>
4984
4985 * w32font.c (Fx_select_font): Reverse sense of second arg.
4986
49872008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
4988
4989 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
4990 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
4991
4992 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
4993 (PURESIZE): Use it.
4994
49952008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
4996
4997 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
4998 * m/alpha.h (TEXT_END):
4999 * m/ibmrs6000.h (TEXT_END):
5000 * m/macppc.h (TEXT_END):
5001 * s/darwin.h (TEXT_END):
5002 * s/msdos.h (TEXT_END): Remove, unused.
5003 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
5004 * s/cygwin.h: Remove comment.
5005
5006 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
5007 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
5008 * m/intel386.h (DOT_GLOBAL_START):
5009 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
5010 (USG): Remove, file not used on USG platforms.
5011
5012 * Makefile.in (HAVE_X11): Remove empty #else.
5013
50142008-07-24 Andreas Schwab <schwab@suse.de>
5015
5016 * fileio.c (Finsert_file_contents): Properly adjust undo list
5017 after format conversion.
5018
50192008-07-24 Jan Djärv <jan.h.d@swipnet.se>
5020
5021 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
5022 (menu_nav_ended): Remove.
5023 (create_menus): Remove signal connect for menu_nav_ended.
5024 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
5025 create_menus.
5026 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
5027
50282008-07-23 Jason Rumney <jasonr@gnu.org>
5029
5030 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
5031 with opened font.
5032 (w32font_open): Set font type to gdi.
5033
5034 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
5035
50362008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
5037
5038 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
5039 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
5040 defines it.
5041 * unexec.c (ADDR_CORRECT): Define unconditionally.
5042
5043 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
5044
5045 * unexec.c: Remove code depending on !COFF and USG, the file is
5046 not used for such systems.
5047
5048 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
5049 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
5050 (LD_SWITCH_SYSTEM_1): Remove, update users.
5051
5052 * s/darwin.h (DATA_END):
5053 * m/intel386.h (DATA_END):
5054 * m/ibmrs6000.h (DATA_END):
5055 * m/alpha.h (DATA_END): Remove, unused.
5056
5057 * config.in: Regenerate.
5058 * s/ms-w32.h (subprocesses): Define unconditionally.
5059 * s/template.h (subprocesses): Update comment.
5060 * s/vms.h (subprocesses):
5061 * s/usg5-4.h (subprocesses):
5062 * s/hpux10-20.h (subprocesses):
5063 * s/gnu-linux.h (subprocesses):
5064 * s/cygwin.h (subprocesses):
5065 * s/bsd-common.h (subprocesses):
5066 * s/aix4-2.h (subprocesses):
5067 * s/darwin.h (subprocesses): Do not define, defined by default now.
5068
5069 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
5070 Remove all references.
5071 (temacs): Add GNUstep specific ld flags.
5072
5073 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
5074 similarly to what X does.
5075
50762008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5077
5078 * nsfns.m (x-list-fonts): Remove.
5079 (syms_of_nsfns): Drop the x-list-fonts declaration.
5080 * nsterm.m: Get rid of remaining "//" comments.
5081
50822008-07-22 Chong Yidong <cyd@stupidchicken.com>
5083
5084 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
5085
5086 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
5087 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
5088 (Fns_own_selection_internal, Fx_disown_selection_internal)
5089 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
5090
5091 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
5092 ... */' style of docstrings. Doc fixes.
5093
50942008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
5095
5096 * terminfo.c (UP, BC, PC): Undo previous change.
5097
5098 * nsfns.m: Rename ns prefixed functions/variables to the
5099 corresponding x versions. Update references.
5100
51012008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
5102
5103 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
5104
51052008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
5106
5107 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
5108 Remove forwarding functions.
5109 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
5110 non-static.
5111 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
5112 non-static.
5113 (ns_frame_parm_handlers): Use the new names.
5114 (syms_of_nsfns): Move to the end of file.
5115
5116 * nsterm.m (syms_of_nsterm): Move to the end of file.
5117
5118 * dispnew.c (init_display): Remove code for X10.
5119
51202008-07-22 Jason Rumney <jasonr@gnu.org>
5121
5122 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
5123 bare drive.
5124
51252008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5126
5127 * nsterm.m (syms_of_nsterm): Remove debugging println.
5128
51292008-07-22 David Reitter <david.reitter@gmail.com>
5130
5131 * nsfns.m (do_applescript, F_do_applescript): NS version of the
5132 Carbon implementation of the same functionality: execute arbitrary
5133 AppleScript code.
5134
51352008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5136
5137 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
5138 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
5139 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
5140 (Fx_display_mm_height, Fx_display_mm_width)
5141 (Fx_display_backing_store, Fx_display_visual_class)
5142 (Fx_display_save_under, Fx_open_connection)
5143 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
5144 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
5145 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
5146 (Fx_display_pixel_width, Fx_display_pixel_height)
5147 (Fx_display_usable_bounds, Fx_display_planes)
5148 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
5149 ... */' style of docstrings.
5150
51512008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
5152
5153 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
5154 on this platform.
5155 (mips):
5156 * m/iris4d.h (mips): Do not define.
5157 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
5158
5159 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
5160
5161 * image.c:
5162 * nsfns.m:
5163 * nsselect.m:
5164 * nsterm.h:
5165 * nsterm.m: Rename ns prefixed functions/variables to the
5166 corresponding x versions. Update references.
5167
5168 * m/ibms390x.h (NO_REMAP): Do not undefine.
5169
5170 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
5171
51722008-07-21 Chong Yidong <cyd@stupidchicken.com>
5173
5174 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
5175 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
5176 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
5177 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
5178 (Fns_display_mm_height, Fns_display_mm_width)
5179 (Fns_display_backing_store, Fns_display_visual_class)
5180 (Fns_display_save_under, Fns_open_connection)
5181 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
5182 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
5183 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
5184 (Fns_display_pixel_width, Fns_display_pixel_height)
5185 (Fns_display_usable_bounds, Fx_display_planes)
5186 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
5187
51882008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
5189
5190 * print.c (print_object): Check print_depth before searching for
5191 circularities.
5192
51932008-07-21 Michael Albinus <michael.albinus@gmx.de>
5194
5195 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
5196 only sprintf.
5197
51982008-07-21 Kenichi Handa <handa@m17n.org>
5199
5200 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
5201
52022008-07-20 Andreas Schwab <schwab@suse.de>
5203
5204 * syntax.c (find_start_pos, find_start_value)
5205 (find_start_value_byte, find_start_begv, find_defun_start)
5206 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
5207
52082008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
5209
5210 * s/sol2-3.h: Insert contents of s/sol2.h.
5211 (LD_SWITCH_SYSTEM): Remove redundant definition.
5212 * s/sol2.h: Remove, unused.
5213
52142008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5215
5216 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
5217
52182008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5219
5220 * Makefile.in (ns_appdir): Fix typo in find command.
5221
52222008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
5223
5224 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
5225
5226 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
5227 added not supported anymore.
5228
5229 * s/usg5-4-2.h (LIBS_SYSTEM):
5230 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
5231
5232 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
5233 * s/lynxos.h (GETPGRP_NO_ARG):
5234 * s/hpux10-20.h (NO_SIOCTL_H):
5235 * s/gnu.h (GETPGRP_NO_ARG):
5236 * s/gnu-linux.h (NO_SIOCTL_H):
5237 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
5238 * s/cygwin.h (GETPGRP_NO_ARG):
5239 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
5240 (C_DEBUG_SWITCH): Remove duplicate definition.
5241
5242 * m/ibms390.h: Remove boilerplate comments.
5243
5244 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
5245
5246 * process.c (HAVE_SERIAL): Consolidate ifdefs.
5247 (wait_reading_process_output): Remove code for SunOS, platform not
5248 supported anymore. Use SOLARIS2 instead of sun.
5249
52502008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
5251
5252 * font.c (font_open_by_name): Under NS, default lface height to zero.
5253 (font_open_for_lface): Under NS, set size based on frame fontsize.
5254 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
5255 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
5256
52572008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
5258
5259 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
5260 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
5261 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
5262 YES/NO.
5263 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
5264 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
5265 * Makefile.in (clean): Clear out build destination dir.
5266
52672008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
5268
5269 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
5270 xterm, xselect.
5271 * lisp.h: Remove declaration of hash_remove.
5272 * nsgui.h: Remove redefinitions of hash_remove.
5273 * fns.c (hash_remove): Rename to hash_remove_from_table.
5274
52752008-07-19 Seiji Zenitani <zenitani@mac.com>
5276
5277 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
5278 strdup() the family UTF8String before modifying it.
5279
52802008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
5281
5282 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
5283 NS_FACE_BACKGROUND with 0 instead of nil.
5284 * nsfont.m (nsfont_draw): Same.
5285
52862008-07-19 Chong Yidong <cyd@stupidchicken.com>
5287
5288 * nsfns.m (ns_set_background_color): Fix crash.
5289
52902008-07-18 Chong Yidong <cyd@stupidchicken.com>
5291
5292 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
5293
52942008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
5295
5296 * puresize.h (BASE_PURESIZE): Increase to 1240000.
5297
52982008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5299
5300 * gtkutil.c: Include <config.h> instead of "config.h".
5301
5302 * lisp.h (Foverlay_buffer): Add EXFUN.
5303
5304 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
5305 child process to complete child_setup. Undo 2005-09-21 change.
5306
5307 * s/darwin.h: Mention setsid after vfork.
5308
53092008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5310
5311 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
5312 Depend on macgui.h.
5313
5314 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
5315 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
5316
5317 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
5318 and f19.
5319 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
5320
5321 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
5322 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
5323 Remove enumerators.
5324
5325 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
5326 Check if FACE_FROM_ID returns NULL.
5327
53282008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
5329
5330 * w32inevt.c (change_frame_size): Remove extern declaration.
5331 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
5332 change_frame_size.
5333
53342008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
5335
5336 * getloadavg.c: Revert last change (2008-07-15).
5337
53382008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
5339
5340 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
5341 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc) set
5342 from configure.
5343
53442008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
5345
5346 * s/sol2.h:
5347 * s/sol2-4.h: Reorganize conditionals.
5348
5349 * ecrt0.c: Remove code depending on m68000, not used anymore.
5350
5351 * fns.c (hash_remove): Make static.
5352 * lisp.h (hash_remove): Don't prototype.
5353
5354 * m/ibmrs6000.h:
5355 * m/ibms390x.h:
5356 * m/macppc.h: Remove boilerplate comments.
5357
5358 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
5359 Solaris, which does not need them.
5360
5361 * m/vax.h: Remove comments about unsupported systems.
5362
5363 * s/darwin.h: Reorganize ifdefs.
5364
53652008-07-17 Andreas Schwab <schwab@suse.de>
5366
5367 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
5368
53692008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
5370
5371 Use SDATA. Follow coding convention of placing operators at
5372 beginning of next line rather than end of previous line, and placing
5373 spaces around infix operators.
5374
5375 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
5376 in case it was defined already.
5377 USE @GNUSTEP_MAKEFILES@ rather than envvars.
5378 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
5379 ns_default.
5380 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
5381 Lisp_Objects.
5382 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
5383 (ns_defined_color, ns_color_to_lisp): Declare.
5384 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
5385 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
5386 it's accepted even with USE_LISP_UNION_TYPE.
5387 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
5388 (update_frame_tool_bar): Remove apparently obsolete tests for
5389 non-integerness of f->tool_bar_lines.
5390 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
5391 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
5392 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
5393 (nsfont_open): Don't confuse NULL for Qnil.
5394 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
5395 * menu.h (find_and_call_menu_selection):
5396 * menu.c (find_and_call_menu_selection): Use just int for vector size.
5397 (find_and_return_menu_selection): Always return something.
5398 * frame.h: Include dispextern.h for Display_Info.
5399 (display_x_get_resource): Declare.
5400
54012008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
5402
5403 * syntax.c: Remove stdio.h include accidentally introduced in
5404 Emacs.app commit.
5405 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
5406 NS_IMPL_COCOA.
5407 * keyboard.c (handle_async_input, input_available_signal): Remove
5408 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
5409
54102008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
5411
5412 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
5413 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
5414 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
5415 Use SDATA.
5416
5417 * keymap.c: Remove all NS-specific code.
5418 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
5419 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
5420 where_is_preferred_modifier, return a different value depending on how
5421 preferred is the binding.
5422 (where_is_internal): Adjust accordingly.
5423 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
5424 Adjust to new preferred_sequence_p.
5425 (syms_of_keymap): Declare `where-is-preferred-modifier'.
5426 * keyboard.c (parse_solitary_modifier): Not static any more.
5427 * keyboard.h (parse_solitary_modifier): Declare.
5428
54292008-07-16 Andreas Schwab <schwab@suse.de>
5430
5431 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
5432 of easymenu.
5433
54342008-07-16 Chong Yidong <cyd@stupidchicken.com>
5435
5436 * xdisp.c (move_it_in_display_line): Account for word wrap, so
5437 that we don't move off the line.
5438
54392008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
5440
5441 * keyboard.c (Qsuper): Remove.
5442 (parse_menu_item): Don't call where_is_internal specially for NS.
5443
54442008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
5445
5446 * s/gnu-linux.h: Remove boilerplate comments.
5447
5448 * m/alpha.h (__ELF__): Consolidate conditions.
5449
5450 * m/m68k.h (linux): Use GNU_LINUX instead.
5451 Remove boilerplate comments.
5452
5453 * m/intel386.h: Undo refactoring from previous change.
5454 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
5455 too, remove dead code.
5456 (linux): Use GNU_LINUX instead.
5457
54582008-07-16 Jason Rumney <jasonr@gnu.org>
5459
5460 * w32gui.h: Repeat 26 June changes lost by last change.
5461
54622008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
5463
5464 * systty.h: Remove code for Aix on 386, unsupported platform.
5465
5466 * s/ms-w32.h: Remove boilerplate comments.
5467 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
5468
5469 * s/gnu-linux.h (TERM): Remove support.
5470 (HAVE_SYSVIPC): Remove, unused.
5471 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
5472 for this system.
5473
5474 * process.c: Remove support for IRIS, unused.
5475 Remove support for TERM, not relevant anymore.
5476
5477 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
5478 used with the definition.
5479
5480 * s/aix4-2.h (static): Do not undef.
5481
5482 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
5483 only used on Aix.
5484 (HAVE_SYSVIPC): Remove, unused.
5485
5486 * m/hp800.h (CANNOT_DUMP): Do not undef.
5487
5488 * m/alpha.h: Fix comment.
5489
5490 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
5491 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
5492 used by this configuration.
5493 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
5494 * unexec.c: Remove code depending on HPUX and
5495 USG_SHARED_LIBRARIES, not used with this file. Remove code
5496 depending on IRIS, unused. Remove if 0-ed code.
5497
5498 * s/template.h: Remove comments about static.
5499
5500 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
5501 Remove if 0-ed code.
5502 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
5503 were the same as the default.
5504 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
5505 Remove boilerplate comments.
5506 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
5507 (HAVE_SYSVIPC): Remove, unused.
5508 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
5509
5510 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
5511 Remove boilerplate comments.
5512 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
5513 Remove boilerplate comments.
5514 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
5515 Remove boilerplate comments.
5516 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
5517
5518 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
5519 USG systems which do not use DATA_SEG_BITS.
5520 Refactor code. Remove boilerplate comments.
5521
5522 * m/ibms390.h:
5523 * m/m68k.h:
5524 * s/bsd-common.h:
5525 * s/cygwin.h:
5526 * s/darwin.h:
5527 * s/freebsd.h:
5528 * s/gnu.h:
5529 * s/msdos.h: Remove boilerplate comments.
5530
5531 * m/iris4d.h: Remove boilerplate comments and code for systems that
5532 do not use this file.
5533 (IRIS_4D): Remove, unused.
5534
5535 * m/mips.h: Remove boilerplate comments and code for systems that
5536 do not use this file.
5537 (SIGN_EXTEND_CHAR):
5538 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
5539 * unexmips.c: Remove file, unused.
5540
5541 * editfns.c (Fuser_full_name): Replace the only use of
5542 USER_FULL_NAME with its value.
5543 * config.in: Regenerate.
5544
55452008-07-16 David Reitter <david.reitter@gmail.com>
5546
5547 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
5548 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
5549
55502008-07-16 Glenn Morris <rgm@gnu.org>
5551
5552 * emacs.c (system-type): Doc fix.
5553
55542008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
5555
5556 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
5557 If the cache doesn't work, let's fix it, rather than work around it.
5558
55592008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
5560
5561 * Makefile.in: Correct additions for nsfont.o in last commit.
5562 * nsfont.m: New file (forgot last commit).
5563
55642008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
5565
5566 * callproc.c (set_initial_environment): Initialize
5567 Vprocess_environment under CANNOT_DUMP (fixes crash when
5568 batch-compiling for bootstrap).
5569
55702008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
5571 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5572
5573 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
5574 fix crash due to different init order.
5575
55762008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
5577
5578 Changes and additions for NeXTstep windowing system (Cocoa and
5579 GNUstep) support.
5580
5581 * Makefile.in:
5582 * config.in: Support defines and build commands for NS port.
5583 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
5584 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
5585 * dispextern.h: Include nsgui.h and add needed typedefs under NS
5586 windowing.
5587 (struct face): Add synth_ital field.
5588 * dispnew.c: Include nsterm.h when compiling under NS windowing.
5589 (init_display): Initialize Vinitial_window_system to "ns" when so
5590 compiled.
5591 * emacs.c: Include GSConfig.h when compiling under GNUstep.
5592 (display_arg): Use under NS.
5593 (main): Under NS, allocate autorelease pool and handle command line
5594 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
5595 (standard_args): Add NS-specific args.
5596 (shut_down_emacs): Shut down NS terminal if compiled under NS.
5597 * font.c (DEFAULT_ENCODING): New variable.
5598 (font_find_for_lface): Use it.
5599 (syms_of_font): Load syms_of_nsfont under NS.
5600 * font.h: Declare nsfont_driver when compiled under NS.
5601 * fontset.c: When compiling under NS, include nsterm.h.
5602 (fontset_from_font): Autoconstruct fontset under NS.
5603 * frame.c (various): Under NS, include nsterm.h, add Qns window system
5604 symbol, document and use it.
5605 (do_switch_frame): When for_deletion under Cocoa, add
5606 Fraise_frame(Qnil).
5607 (x_set_frame_parameters): Ensure font attribute changes are picked up.
5608 (x_get_arg): Allow "yes" and "no" as boolean values.
5609 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
5610 Qright under Cocoa.
5611 (focus-follows-mouse): Default to 0 under NS.
5612 * frame.h (enum output_method): Add output_ns.
5613 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
5614 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
5615 (FRAME_WINDOW_P): NS-specific definition.
5616 * fringe.c (max_used_fringe_bitmap): Make public.
5617 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
5618 (getloadavg): Use NeXT code under descendant OS's.
5619 * image.c (includes and header section, x_create_bitmap_from_data)
5620 (x_create_bitmap_from_file, free_bitmap_record, image_background)
5621 (image_background_transparent, x_clear_image_1)
5622 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
5623 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
5624 (x_to_xcolors, x_from_xcolors, x_disable_image)
5625 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
5626 other GUIs, including XPM support using code originally written for
5627 Carbon GUI.
5628 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
5629 using NS API.
5630 (image_ascent): Use font metrics macros instead of direct struct field
5631 access.
5632 * keyboard.c (includes): Add nsterm.h when compiling under NS.
5633 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
5634 Also, handle NS as GTK for menu bar purposes.
5635 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
5636 toolkit where they differ.
5637 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
5638 use cachelist, still needed under NS.
5639 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
5640 (struct widget_value): Define it here for menu.c.
5641 * keymap.c (includes): Include modifier internals.
5642 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
5643 NS.
5644 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
5645 support for preferring sequences using certain modifiers, specified by
5646 the FIRSTONLY argument.
5647 * lisp.h (hash_remove): Rename to avoid name clash when compiling
5648 under NS GNUstep implementation.
5649 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
5650 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
5651 * menu.c: Include nsterm.h under NS.
5652 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
5653 (free_menubar_widget_tree_value, update_submenu_strings)
5654 (find_and_call_menu_selection): Treat NS as X and NT.
5655 (find_and_return_menu_selection): New function, used for popup menus.
5656 * nsgui.h:
5657 * nsterm.h:
5658 * nsfns.m:
5659 * nsimage.m:
5660 * nsmenu.m:
5661 * nsselect.m:
5662 * nsterm.m: New files.
5663 * process.c (wait_reading_process_output): Under NS, call ns_select()
5664 instead of plain select().
5665 * syntax.c (char_quoted): Under NS, avoid a crash when called near
5666 beginning of buffer.
5667 * sysselect.h (init_process): Rename when compiling under Cocoa to
5668 avoid name conflict.
5669 * termhooks.h (display_info): Add ns_display_info to union.
5670 * terminal.c (Fterminal_live_p): Add ns to terminal types.
5671 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
5672 COCOA environment.
5673 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
5674 unexec() signature. (Note, this will dump, but the resulting file
5675 crashes; unexosx is used instead; keeping around for reference and
5676 possible aid in getting dump working under GNUstep.)
5677 * w32gui.h (button_type, widget_value): Remove definitions (now in
5678 keyboard.h).
5679 * window.c: Include nsterm.h when compiling under NS.
5680 * xdisp.c (includes): Include nsterm.h when compiling under NS.
5681 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
5682 other GUI windowing systems.
5683 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
5684 GTK.
5685 (x_consider_frame_title): Under NS, set icon type and frame
5686 modified-state indicator; use ns_set_name_as_filename() when using
5687 formatted title.
5688 (update_window_cursor): Make public when compiling under NS.
5689 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
5690 (hourglass_atimer, Vhourglass_delay
5691 * xfaces.c (header section, init_frame_faces, clear_font_table)
5692 (defined_color, unload_color, x_face_list_fonts)
5693 (prepare_face_for_display): Add NS support parallel to other GUIs.
5694 Emulate GCs like other non-X GUIs.
5695 (split_font_name): Don't lowercase font name under NS.
5696 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
5697 under NS.
5698 * s/darwin.h: Add support for compilation under NS.
5699
57002008-07-15 Jason Rumney <jasonr@gnu.org>
5701
5702 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
5703 (w32_show_hourglass): Rename from show_hourglass.
5704 (w32_hide_hourglass): Rename from hide_hourglass.
5705 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
5706 (Vhourglass_delay): Declare extern.
5707 (hourglass_started): Remove.
5708
5709 * xdisp.c (Vhourglass_delay): Remove static.
5710 (hourglass_started, start_hourglass, cancel_hourglass):
5711 Don't include these versions on WINDOWSNT.
5712
57132008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
5714
5715 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
5716 variables (formerly in xfns.c).
5717 (show_hourglass, hide_hourglass): New prototypes (same).
5718 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
5719 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
5720 in xfns.c).
5721 (syms_of_xdisp): Declare/initialize display-hourglass,
5722 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
5723 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
5724 formerly in xfns.c.
5725 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
5726 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
5727 (start_hourglass, cancel_hourglass): Remove.
5728 (show_hourglass, hide_hourglass): Remove prototypes and static
5729 modifiers.
5730 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
5731 hourglass_atimer, hourglass_shown_p declaration/initialization.
5732 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
5733 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
5734 (start_hourglass, cancel_hourglass): Remove.
5735 (show_hourglass, hide_hourglass): Remove prototypes and static
5736 modifiers.
5737 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
5738 hourglass_atimer, hourglass_shown_p declaration/initialization.
5739 * w32fns.c (display_hourglass_p, Vhourglass_delay)
5740 (DEFAULT_HOURGLASS_DELAY): Remove.
5741 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
5742 hourglass_shown_p declaration/initialization.
5743
57442008-07-14 Jason Rumney <jasonr@gnu.org>
5745
5746 * w32fns.c (w32_get_arg): Remove wrapper function.
5747 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
5748 directly.
5749 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
5750
57512008-07-14 Kenichi Handa <handa@m17n.org>
5752
5753 * xfont.c (xfont_open): Add workaround for X's bug.
5754
57552008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
5756
5757 * fontset.c: Include <stdio.h> unconditionally.
5758
57592008-07-13 Michael Albinus <michael.albinus@gmx.de>
5760
5761 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
5762 for filtering.
5763
57642008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
5765
5766 * s/vms.h: Use __GNUC__ instead of _GNUC_.
5767
5768 * m/macppc.h:
5769 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
5770
5771 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
5772 (SPECIAL_EMACS_INT):
5773 * m/ia64.h (SPECIAL_EMACS_INT):
5774 * m/amdx86-64.h (SPECIAL_EMACS_INT):
5775 * s/gnu.h (NLIST_STRUCT):
5776 * s/aix4-2.h (X11R5_INHIBIT_I18N):
5777 * s/gnu-linux.h (LINUX):
5778 * s/msdos.h (HAVE_FACES):
5779 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
5780
5781 * systty.h:
5782 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
5783 anymore.
5784
57852008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
5786
5787 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
5788 always defined as int.
5789
5790 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
5791 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
5792 * s/gnu-linux.h (HAVE_WAIT_HEADER):
5793 * s/freebsd.h (HAVE_WAIT_HEADER):
5794 * s/bsd-common.h (HAVE_UNION_WAIT):
5795 * s/aix4-2.h (HAVE_WAIT_HEADER):
5796 * m/mips.h (HAVE_UNION_WAIT):
5797 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
5798 (COFF, static): Do not define, they are undefined later in the file.
5799
5800 * process.c (update_status): Don't use a union.
5801 (status_convert):
5802 (sigchld_handler): Use int instead of WAITTYPE.
5803
58042008-07-12 Chong Yidong <cyd@stupidchicken.com>
5805
5806 * indent.c (Fvertical_motion): Restore hscroll before moving to
5807 goal column.
5808
58092008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
5810
5811 * lisp.h: Remove left over code.
5812
58132008-07-11 Andreas Schwab <schwab@suse.de>
5814
5815 * lisp.h: Fix logic in last change.
5816
5817 * menu.h: New file.
5818 * menu.c: Include it.
5819 * xmenu.c: Likewise.
5820 * Makefile.in: Update dependencies.
5821
58222008-07-11 Kenichi Handa <handa@m17n.org>
5823
5824 * fontset.c (fontset_from_font): Cancel the previous change.
5825
58262008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
5827
5828 * lisp.h:
5829 * w32heap.c:
5830 * emacs.c:
5831 * alloc.c: Replace all references of NO_UNION_TYPE with
5832 USE_LISP_UNION_TYPE.
5833
5834 * m/xtensa.h (NO_UNION_TYPE):
5835 * m/vax.h (NO_UNION_TYPE):
5836 * m/template.h (NO_UNION_TYPE):
5837 * m/sparc.h (NO_UNION_TYPE):
5838 * m/mips.h (NO_UNION_TYPE):
5839 * m/macppc.h (NO_UNION_TYPE):
5840 * m/m68k.h (NO_UNION_TYPE):
5841 * m/iris4d.h (NO_UNION_TYPE):
5842 * m/intel386.h (NO_UNION_TYPE):
5843 * m/ibms390x.h (NO_UNION_TYPE):
5844 * m/ibms390.h (NO_UNION_TYPE):
5845 * m/ibmrs6000.h (NO_UNION_TYPE):
5846 * m/ia64.h (NO_UNION_TYPE):
5847 * m/hp800.h (NO_UNION_TYPE):
5848 * m/arm.h (NO_UNION_TYPE):
5849 * m/amdx86-64.h (NO_UNION_TYPE):
5850 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
5851 defining it the same.
5852
58532008-07-10 Chong Yidong <cyd@stupidchicken.com>
5854
5855 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
5856
58572008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
5858
5859 * fileio.c:
5860 * sysdep.c
5861 * systty.h:
5862 * m/ibmrs6000.h:
5863 * m/iris4d.h:
5864 * s/aix4-2.h:
5865 * s/freebsd.h:
5866 * s/gnu-linux.h:
5867 * s/hpux10-20.h:
5868 * s/hpux11.h:
5869 * s/netbsd.h:
5870 * s/sol2-3.h:
5871 * s/sol2-4.h:
5872 * s/sol2.h:
5873 * s/usg5-4.h:
5874 * s/vms.h: Remove references to unused variables.
5875
58762008-07-10 Andreas Schwab <schwab@suse.de>
5877
5878 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
5879 pattern before matching the generic family.
5880
58812008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
5882
5883 * unexec.c:
5884 * s/vms.h:
5885 * s/usg5-4-2.h:
5886 * s/sol2-5.h:
5887 * s/freebsd.h:
5888 * s/darwin.h: Remove dead code.
5889
5890 * m/template.h:
5891 * m/sparc.h:
5892 * m/mips.h:
5893 * m/m68k.h:
5894 * m/iris4d.h:
5895 * m/intel386.h:
5896 * m/ibms390x.h:
5897 * m/ibms390.h:
5898 * m/ia64.h:
5899 * m/hp800.h:
5900 * m/arm.h:
5901 * m/amdx86-64.h: Remove dead code and references to unused
5902 and compiler defined symbols.
5903
5904 * unexmips.c:
5905 * unexelf.c: Remove references to desupported systems.
5906
5907 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
5908
5909 * m/powermac.h: Remove boilerplate comments.
5910 (NO_REMAP): Remove unused definition.
5911
5912 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
5913 define them.
5914
59152008-07-10 Kenichi Handa <handa@m17n.org>
5916
5917 * xfont.c (xfont_open): Log the reason of failure.
5918
59192008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
5920
5921 * fontset.c (fontset_get_font_group):
5922 * font.c (font_check_otf): Specify argument types.
5923
59242008-07-09 Kenichi Handa <handa@m17n.org>
5925
5926 * coding.c (detect_coding_utf_8): Set detect_info->found only when
5927 non-ASCII char is found.
5928
5929 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
5930 (reorder_font_vector): Change the arg preferred_family to font.
5931 Prefer the spec matching with font.
5932 (fontset_get_font_group): New function.
5933 (fontset_find_font): Change the format of an element of a realized
5934 fontset. Use fontset_get_font_group.
5935 (fontset_font): Try the current fontset, the default fontset, the
5936 fallbacks of the current fontset, and the fallbacks of the default
5937 fontset in this order.
5938 (face_for_char): Delete the shortcut to use the current font.
5939 (fontset_from_font): Don't set fonts for Latin in the fontset.
5940
5941 * font.h (font_make_object, font_match_p): Adjust prototypes.
5942
5943 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
5944
5945 * font.c (font_make_object): New arg entity and pixelsize.
5946 (font_check_otf_features, font_check_otf): New functions.
5947 (font_match_p): Check :lang, :script, and :otf properties.
5948
5949 * xfont.c (xfont_open): Adjust it for the change of
5950 font_make_object.
5951 (xfont_text_extents): Fix initial setting of metrics.
5952
5953 * ftfont.c (struct ftfont_info): New member index, delete member
5954 fc_charset_idx. Make the member order compatible with struct
5955 xftfont_info.
5956 (fc_charset_table): Change charset names to registry names.
5957 (ftfont_pattern_entity): Delete the args registry and
5958 fc_charset_idx. Change the value of :font-entity property
5959 to (FONTNAME . INDEX). Always set :registry property to
5960 `iso10646-1'.
5961 (struct ftfont_cache_data): New struct.
5962 (ftfont_lookup_cache): New arg for_face.
5963 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
5964 (ftfont_driver): Set the member otf_capability.
5965 (ftfont_get_charset): Adjust it for the change of
5966 fc_charset_table.
5967 (OTF_TAG_SYM): New macro.
5968 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
5969 for the change of fc_charset_table.
5970 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
5971 ftfont_pattern_entity. Add FC_INDEX to objset.
5972 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
5973 and ftfont_pattern_entity.
5974 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
5975 font_make_object, struct ftfont_info.
5976 (ftfont_has_char): Use ftfont_get_fc_charset.
5977 (ftfont_otf_features, ftfont_otf_capability): New functions.
5978 (ftfont_shape): Use ftfont_get_otf.
5979 (ftfont_text_extents): Fix initial setting of metrics.
5980
5981 * xftfont.c (struct xftfont_info): New member ft_size. Make the
5982 member order compatible with struct ftfont_info.
5983 (xftfont_open): Add FC_CHARSET to the pattern. Set
5984 xftfont_info->ft_size. Don't unlock the face. Check BDF
5985 properties if appropriate.
5986 (xftfont_close): Unlock the face.
5987 (xftfont_anchor_point, xftfont_shape): Deleted.
5988 (syms_of_xftfont): Don't set members anchor_point and shape of
5989 xftfont_driver.
5990
5991 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
5992 font_make_object.
5993
5994 * w32font.c (w32font_open): Adjust it for the change of
5995 font_make_object.
5996 (w32font_open_internal): Don't set properties of font_object here.
5997
59982008-07-08 Chong Yidong <cyd@stupidchicken.com>
5999
6000 * macfns.c (x_create_tip_frame):
6001 * w32fns.c (x_create_tip_frame):
6002 * xfns.c (x_create_tip_frame): Pass parameter argument to
6003 face-set-after-frame-default.
6004
6005 * xfaces.c (Finternal_merge_in_global_face): Save merged
6006 attributes for the default face back into the face vector.
6007
60082008-07-08 Andreas Schwab <schwab@suse.de>
6009
6010 * fontset.h: Declare fontset_from_font. Don't declare
6011 new_fontset_from_font and fontset_from_font_name.
6012 * xterm.c: Include "fontset.h".
6013 * Makefile.in (xterm.o): Update dependencies.
6014
60152008-07-08 Glenn Morris <rgm@gnu.org>
6016
6017 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
6018 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
6019
60202008-07-07 Chong Yidong <cyd@stupidchicken.com>
6021
6022 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
6023 (x_set_frame_parameters): Don't bind it.
6024
60252008-07-07 Juanma Barranquero <lekktu@gmail.com>
6026
6027 * w32fns.c (map_w32_filename): Declare extern.
6028
60292008-07-07 Jason Rumney <jasonr@gnu.org>
6030
6031 * w32term.c (WS_EX_LAYERED): Define if not already.
6032
60332008-07-06 Chong Yidong <cyd@stupidchicken.com>
6034
6035 * xfaces.c (set_font_frame_param): Don't try to set the font
6036 parameter if it is still unspecified in the lface.
6037
60382008-07-05 Chong Yidong <cyd@stupidchicken.com>
6039
6040 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
6041 face if it didn't already exist.
6042
6043 * xdisp.c (try_window_id): Give up if word-wrapping is on.
6044
60452008-07-05 Andreas Schwab <schwab@suse.de>
6046
6047 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
6048
60492008-07-05 Chong Yidong <cyd@stupidchicken.com>
6050
6051 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
6052 word-wrapping.
6053 (IT_DISPLAYING_WHITESPACE): New macro.
6054 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
6055 when word-wrapping. Simplify word-wrapping logic. Use correct
6056 pixel positions when saving copies of the iterator.
6057 (display_line): Use proper wrap point if the last character on a
6058 line was preceded by whitespace.
6059
60602008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
6061
6062 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
6063
60642008-07-04 Kenichi Handa <handa@m17n.org>
6065
6066 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
6067
6068 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
6069
60702008-07-02 Jason Rumney <jasonr@gnu.org>
6071
6072 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 6073 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
6074
6075 * xdisp.c (next_element_from_display_vector): Move assignment out
6076 of if statement.
6077
60782008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
6079
6080 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
6081
6082 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
6083 (syms_of_fileio): Initialize and export them.
6084 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
6085
6086 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
6087 (Fsystem_move_file_to_trash): New function.
6088 (syms_of_w32fns): Export it to lisp.
6089
60902008-07-01 Jason Rumney <jasonr@gnu.org>
6091
6092 * w32font.c (w32font_text_extents): Don't count overhang as part
6093 of width.
6094
60952008-06-30 Miles Bader <miles@gnu.org>
6096
6097 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
6098 Add `avoid_cursor_p' field.
6099
6100 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
6101 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
6102 (append_glyph, append_composite_glyph, produce_image_glyph)
6103 (append_stretch_glyph): Initialize avoid_cursor_p.
6104 (get_it_property): Rename from `get_line_height_property'.
6105 (x_produce_glyphs): Use get_it_property.
6106 (handle_line_prefix, push_display_prop): New functions.
6107 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
6108 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
6109 New variables.
6110 (syms_of_xdisp): Initialize them.
6111
61122008-06-30 Kenichi Handa <handa@m17n.org>
6113
6114 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
6115 XftDefaultSubstitute (they are called in XftFontMatch).
6116 (xftfont_open): Fix args to ftfont_font_format.
6117
6118 * ftfont.c (fc_charset_table): New member lang.
6119 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 6120 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
6121 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
6122 (ftfont_open): Fix args to ftfont_font_format.
6123 (ftfont_font_format): New arg filename.
6124
61252008-06-30 Chong Yidong <cyd@stupidchicken.com>
6126
6127 * xfaces.c (Finternal_merge_in_global_face): If default face was
6128 modified, realize it again. Update the font face attribute.
6129
61302008-06-29 Jason Rumney <jasonr@gnu.org>
6131
6132 * w32term.c (x_set_frame_alpha): Fix logic.
6133
61342008-06-29 Kenichi Handa <handa@m17n.org>
6135
6136 * fontset.c (Finternal_char_font): Return font-object instead of
6137 font-name.
6138
6139 * composite.c (get_composition_id): Fix the width calculation for TAB.
6140
61412008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
6142
6143 * indent.c (Fvertical_motion): Properly handle float column arg.
6144
61452008-06-28 Jason Rumney <jasonr@gnu.org>
6146
6147 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
6148 (pfnSetLayeredWindowAttributes): New function pointer.
6149 (w32_initialize): Initialize it when supported.
6150 (x_set_frame_alpha): New function.
6151
6152 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
6153 (w32_frame_parm_handlers): Set alpha handler.
6154
6155 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
6156
61572008-06-27 Jason Rumney <jasonr@gnu.org>
6158
6159 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
6160 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
6161 (w32_to_x_charset, x_to_w32_charset)
6162 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
6163 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
6164 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
6165 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
6166 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
6167 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
6168 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
6169 (Qw32_charset_unicode): Remove.
6170 (syms_of_w32fns): Update for above changes.
6171
6172 * w32font.c (w32_to_x_charset, x_to_w32_charset)
6173 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
6174 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
6175 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
6176 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
6177 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
6178 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
6179 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
6180 (syms_of_w32font): Update for above changes.
6181
61822008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
6183
6184 * s/usg5-4.h: Fix previous change: keep the correct branch of a
6185 removed #if.
6186 (USG_SHARED_LIBRARIES): Remove duplicate definition.
6187
61882008-06-26 Juanma Barranquero <lekktu@gmail.com>
6189 Eli Zaretskii <eliz@gnu.org>
6190
6191 * makefile.w32-in (LOCAL_FLAGS):
6192 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
6193
6194 * sysdep.c (_spawnlp, _getpid):
6195 Declare with explicit _cdecl instead of _CRTAPI1.
6196
6197 * editfns.c (Fget_internal_run_time):
6198 Check for WINDOWSNT with #ifdef, not #if.
6199
62002008-06-26 Jason Rumney <jasonr@gnu.org>
6201
6202 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
6203
6204 * w32term.c (x_draw_glyph_string_foreground)
6205 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
6206 Use FONT_HANDLE macro.
6207 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
6208
6209 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
6210 (uniscribe_encode_char): Use FONT_HANDLE macro.
6211
6212 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
6213 (w32font_text_extents): Use precast w32_font.
6214 (w32font_close): Free cached metrics.
6215 (w32font_open_internal): Allocate space for name on stack.
6216
62172008-06-26 Chong Yidong <cyd@stupidchicken.com>
6218
6219 * xdisp.c (extend_face_to_end_of_line): Fix last change.
6220
62212008-06-26 Jason Rumney <jasonr@gnu.org>
6222
6223 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
6224 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
6225
62262008-06-26 Juanma Barranquero <lekktu@gmail.com>
6227
6228 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
6229
62302008-06-26 Jason Rumney <jasonr@gnu.org>
6231
6232 * w32bdf.c, w32bdf.h: Remove obsolete files.
6233
6234 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
6235
6236 * w32gui.h: Don't include w32bdf.h.
6237 (XCharStruct, enum w32_char_font_type, W32FontStruct):
6238 Remove obsolete font support.
6239
6240 * w32font.h (struct w32font_info): Remove compat_w32_font.
6241 Add hfont member.
6242 (FONT_COMPAT): Remove obsolete macro.
6243
6244 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
6245 (w32font_encode_char, w32font_text_extents): Use new hfont member.
6246 (w32font_open_internal): Remove compat code. Set new hfont member.
6247 (Fx_select_font): Use new hfont member.
6248
6249 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
6250 (uniscribe_encode_char): Use new hfont member.
6251
6252 * w32term.c (x_draw_glyph_string_foreground)
6253 (x_draw_composite_glyph_string_foreground): Use new hfont member.
6254 (x_draw_glyph_string): Use metrics in w32font_info.
6255
62562008-06-26 Kenichi Handa <handa@m17n.org>
6257
6258 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
6259
62602008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
6261
6262 * unexnext.c:
6263 * m/ews4800.h:
6264 * m/hp9000s300.h:
6265 * m/ibm370aix.h:
6266 * m/mips-siemens.h:
6267 * m/ncr386.h:
6268 * m/next.h:
6269 * m/pmax.h:
6270 * m/powerpcle.h:
6271 * m/tandem-s2.h:
6272 * s/386bsd.h:
6273 * s/bsd386.h:
6274 * s/bsd4-1.h:
6275 * s/bsd4-2.h:
6276 * s/bsdos2-1.h:
6277 * s/bsdos2.h:
6278 * s/bsdos3.h:
6279 * s/bsdos4.h:
6280 * s/nextstep.h:
6281 * s/ultrix4-3.h:
6282 * s/usg5-0.h:
6283 * s/usg5-2-2.h:
6284 * s/usg5-2.h:
6285 * s/usg5-4-3.h:
6286 * s/ux4800.h:
6287 * s/uxpds.h:
6288 * s/uxpv.h: Remove support for obsolete systems.
6289 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 6290 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
6291 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
6292 Remove, insert contents in s/aix4-2.h.
6293 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
6294 * s/bsd4-3.h: Rename to ...
6295 * s/bsd-common.h: ... this.
6296 * data.c:
6297 * doc.c:
6298 * ecrt0.c:
6299 * emacs.c:
6300 * fileio.c:
6301 * floatfns.c:
6302 * keyboard.c:
6303 * mem-limits.h:
6304 * print.c:
6305 * process.c:
6306 * sysdep.c:
6307 * syssignal.h:
6308 * systty.h:
6309 * syswait.h:
6310 * term.c:
6311 * unexec.c:
6312 * unexelf.c:
6313 * unexhp9k800.c:
6314 * m/hp800.h:
6315 * m/ibmrs6000.h:
6316 * m/mips.h:
6317 * m/vax.h:
6318 * s/darwin.h:
6319 * s/freebsd.h:
6320 * s/gnu.h:
6321 * s/ms-w32.h:
6322 * s/msdos.h:
6323 * s/netbsd.h:
6324 * s/template.h: Remove references to obsolete variables.
6325
6326 * Makefile.in: Add dependencies for all unexec files.
6327 (admindir): Remove unused variable.
6328 (UNEXEC_SRC): Remove references.
6329
63302008-06-25 Chong Yidong <cyd@stupidchicken.com>
6331
6332 * xfns.c (x_default_font_parameter): If Xft is available, first
6333 try Monospace-12 for the default font.
6334
63352008-06-25 Jason Rumney <jasonr@gnu.org>
6336
6337 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
6338
63392008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
6340
6341 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
6342
6343 * buffer.c (syms_of_buffer): Remove default-word-wrap.
6344
63452008-06-25 Juanma Barranquero <lekktu@gmail.com>
6346
6347 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
6348 <scroll-conservatively>: Fix typo in docstring.
6349
6350 * xselect.c (Fx_send_client_event): Doc fix.
6351
63522008-06-25 Kenichi Handa <handa@m17n.org>
6353
6354 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
6355
6356 * font.c (font_parse_fcname): Remove unused variables.
6357 (font_sort_entites): Delete the arg SPEC. Caller changed.
6358 Fix for the case of ! best_only.
6359 (font_delete_unmatched): Check DPI and AVGWIDTH too.
6360
6361 * lisp.h (Fstring_to_unibyte): EXFUN it.
6362
6363 * character.h (str_to_unibyte): Extern it.
6364
6365 * character.c (str_to_unibyte): New function.
6366
6367 * fns.c (Fstring_to_unibyte): New function.
6368 (syms_of_fns): Defsubr it.
6369
63702008-06-24 Kenichi Handa <handa@m17n.org>
6371
6372 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
6373 DPI too.
6374 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
6375
63762008-06-24 Andreas Schwab <schwab@suse.de>
6377
6378 * Makefile.in (${lispsource}loaddefs.el): Rename from
6379 ../lisp/loaddefs.el.
6380 (bootstrap-clean): Do what distclean does but don't remove
6381 Makefile.
6382 (distclean): Depend on bootstrap-clean and remove Makefile.
6383
63842008-06-24 Chong Yidong <cyd@stupidchicken.com>
6385
6386 * buffer.h (struct buffer): New member word_wrap.
6387
6388 * buffer.c (syms_of_buffer): New variables default-word-wrap and
6389 word-wrap.
6390 (init_buffer_once): Initialize them.
6391
6392 * dispextern.h (struct it): Replace bool truncate_lines_p with a
6393 line_wrap enum possessing three possible values.
6394
6395 * termopts.h: Replace truncate_partial_width_windows with
6396 Vtruncate_partial_width_windows.
6397
6398 * dispnew.c (direct_output_for_insert): Avoid direct output when
6399 inserting a space with word wrap on.
6400
6401 * indent.c (compute_motion): Obey integer values of
6402 truncate-partial-width-windows.
6403
6404 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
6405 replacing truncate_partial_width_windows.
6406 (init_iterator): If Vtruncate_partial_width_windows is an integer,
6407 truncate only if the window width is below that integer.
6408 (start_display, resize_mini_window, produce_stretch_glyph)
6409 (display_string, move_it_in_display_line_to): Use line_wrap.
6410 (back_to_previous_visible_line_start, reseat_1): Reset
6411 string_from_display_prop_p.
6412 (display_line): Extend default face to end of line when wrapping.
6413
64142008-06-24 Kim F. Storm <storm@cua.dk>
6415
6416 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
6417 to wrap continued lines at word boundaries.
6418
64192008-06-24 Jason Rumney <jasonr@gnu.org>
6420
6421 * font.c (Ffont_face_attributes): Multiply pixel size before point
6422 conversion to avoid multiplying rounding error.
6423
64242008-06-23 Jason Rumney <jasonr@gnu.org>
6425
6426 * w32term.c (x_draw_glyph_string_background)
6427 (x_draw_glyph_string): Remove old bdf font code.
6428
6429 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
6430
64312008-06-22 Kenichi Handa <handa@m17n.org>
6432
6433 * font.c (font_find_for_lface): Try the adstyle specified in
6434 the property of LFACE_FONT of LFACE (if any).
6435
64362008-06-21 Seiji Zenitani <zenitani@mac.com>
6437 Ryo Yoshitake <ryo@shiftmode.net>
6438
6439 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
6440
64412008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
6442
6443 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
6444 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
6445 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
6446 (witness-emacs): Remove.
6447 (lisp, shortlisp): Move loaddefs.el earlier.
6448 (mostlyclean): Forget about witness-emacs.
6449
64502008-06-22 Glenn Morris <rgm@gnu.org>
6451
6452 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
6453 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
6454
64552008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
6456
6457 * Makefile.in (PRECOMP): Remove.
6458 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
6459 (witness-emacs): Run `compile-first'.
6460 (.el.elc): Use the new compile-onefile target.
6461
64622008-06-21 Kenichi Handa <handa@m17n.org>
6463
6464 * xftfont.c (xftfont_open): Handle QCembolden only when
6465 FC_EMBOLDEN is defined.
6466
64672008-06-21 Andreas Schwab <schwab@suse.de>
6468
6469 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
6470 (.el.elc): Likewise.
6471
64722008-06-21 Miles Bader <miles@gnu.org>
6473
6474 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
6475 build dir, not the lisp source dir.
6476
64772008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
6478
6479 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
6480 (bootstrapclean): Remove.
6481 (.el.elc): New rule.
6482 (PRECOMP): New var.
6483 (../lisp/subdirs.el): Remove.
6484 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
6485 (witness-emacs): New target.
6486 (mostlyclean): Remove witness-emacs as well.
6487 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
6488 Add witness-emacs dependency.
6489
64902008-06-20 Chong Yidong <cyd@stupidchicken.com>
6491
6492 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
6493 defined by the font.
6494
64952008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
6496
6497 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
6498 (bootstrap-clean): New target that keeps TAGS around.
6499 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
6500 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
6501
65022008-06-20 Jason Rumney <jasonr@gnu.org>
6503
6504 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
6505 Remove obsolete font code.
6506
6507 * w32font.c (font_matches_spec): Use csb bitfield from font signature
6508 to determine language support.
6509
65102008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
6511
6512 * sysdep.c (cfsetspeed): New fun extracted from the code.
6513 (cfmakeraw): Move before first use.
6514
65152008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
6516
6517 * sysdep.c (cfmakeraw): Provide fallback implementation.
6518 (serial_configure): Provide fallback implementation of cfsetspeed.
6519
65202008-06-20 Kenichi Handa <handa@m17n.org>
6521
6522 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
6523 the pattern.
6524
6525 * fontset.c (fontset_from_font): Copy font_spec before changing
6526 the elements.
6527
6528 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
6529
65302008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
6531
6532 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
6533 for explicit `font' parameters.
6534
6535 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
6536
65372008-06-19 Kenichi Handa <handa@m17n.org>
6538
6539 * frame.c: Include <ctype.h>.
6540 (x_set_font_backend): Allow spacing characters in the X resource
6541 for FontBackend.
6542
65432008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
6544
6545 * w32fns.c, xfns.c (Qfont_param): New var.
6546 (syms_of_w32fns): Initialize it.
6547 (x_default_font_parameter): Record explicit `font' into
6548 `font-parameter'.
6549
65502008-06-18 Kenichi Handa <handa@m17n.org>
6551
6552 * font.c (font_parse_xlfd): Fix previous change.
6553 (font_parse_fcname): Don't use :fc-unknown-spec.
6554 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
6555 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
6556 (font_add_log): Prepend the driver name to the resulting fonts.
6557
6558 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
6559 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
6560 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
6561
6562 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
6563 (QCembolden): New variables.
6564 (syms_of_xftfont): DEFSYM them.
6565 (xftfont_open): Call XftFontMatch. Don't trust the result of
6566 XftTextExtents8 if the pixel_size is less than 5.
6567
65682008-06-18 Andreas Schwab <schwab@suse.de>
6569
6570 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
6571 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
6572
65732008-06-18 Jason Rumney <jasonr@gnu.org>
6574
6575 * w32font.c (w32font_list, w32font_match): Add logging.
6576
6577 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
6578
65792008-06-17 Chong Yidong <cyd@stupidchicken.com>
6580
6581 * font.c (font_parse_fcname): Store divider characters for
6582 unknown-spec list. For known key symbols, intern using correct
6583 symbol name.
6584
65852008-06-17 Kenichi Handa <handa@m17n.org>
6586
6587 * xfaces.c (realize_default_face): If the frame is not on window
6588 system, set the fontset of face to nil.
6589
65902008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
6591
6592 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
6593
65942008-06-16 Juanma Barranquero <lekktu@gmail.com>
6595
6596 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
6597 (build_font_name_from_vector): Delete externs.
6598
6599 * xfaces.c (struct font_name): Don't declare.
6600
66012008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
6602
6603 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
6604
66052008-06-16 Chong Yidong <cyd@stupidchicken.com>
6606
6607 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
6608
66092008-06-16 Juanma Barranquero <lekktu@gmail.com>
6610
6611 * font.c (Ffont_spec): Fix usage in docstring.
6612 (Ffont_face_attributes): Doc fix.
6613
66142008-06-16 Andreas Schwab <schwab@suse.de>
6615
6616 * font.c (Ffont_face_attributes): Fix definition.
6617
66182008-06-16 Jason Rumney <jasonr@gnu.org>
6619
6620 * font.h (font_style_symbolic_from_value): Remove.
6621
6622 * font.c (font_style_symbolic_from_value): Remove.
6623 (font_style_symbolic): Revert to pre 2008-06-13 version.
6624
6625 * w32font.c (w32_to_fc_weight): New function.
6626 (w32font_full_name, logfont_to_fcname): Use it.
6627
66282008-06-16 Kenichi Handa <handa@m17n.org>
6629
6630 * font.c (font_check_object): Delete it.
6631 (font_clear_cache): Check if a font-object is alive.
6632 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
6633 font-object to nil.
6634 (font_close_object): Don't check FONT_CLOSE_OBJECT.
6635 (font_at): Don't call font_check_object.
6636 (Ffont_get): Return a symbol for :weight, :slant, and :width.
6637
66382008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
6639
6640 * puresize.h (BASE_PURESIZE): Increase to 1230000.
6641
66422008-06-16 Chong Yidong <cyd@stupidchicken.com>
6643
6644 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
6645
66462008-06-15 Chong Yidong <cyd@stupidchicken.com>
6647
6648 * font.c (font_parse_fcname): Only one decimal point.
6649 (font_unparse_fcname): Handle data in family and foundry indices
6650 as symbols, not strings.
6651 (font_unparse_gtkname, Ffont_face_attributes): New functions.
6652
6653 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
6654
6655 * font.h (font_unparse_gtkname): Add prototype.
6656
66572008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
6658
6659 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
6660
66612008-06-15 Andreas Schwab <schwab@suse.de>
6662
6663 * font.c (font_update_drivers): Fix crash when no drivers match.
6664
66652008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
6666
6667 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
6668 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
6669
66702008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
6671
6672 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
6673
66742008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
6675
6676 * process.c (Fserial_process_configure, Fprocess_send_eof):
6677 Use EQ to compare Lisp_Objects.
6678
66792008-06-13 Jason Rumney <jasonr@gnu.org>
6680
6681 * w32fns.c (Fw32_select_font): Remove old font API function.
6682
6683 * w32font.c (logfont_to_fcname): New function.
6684 (Fx_select_font): New font dialog function compatible with
6685 GTK/fontconfig version.
6686
6687 * font.c (font_style_symbolic_from_value): New function.
6688 (font_style_symbolic): Use it.
6689
6690 * font.h (font_style_symbolic_from_value): Declare new function.
6691
66922008-06-13 Juanma Barranquero <lekktu@gmail.com>
6693
6694 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
6695 <font-width-table>: Fix typos in docstrings.
6696
66972008-06-13 Daniel Engeler <engeler@gmail.com>
6698
6699 These changes add serial port access.
6700 * process.c: Add HAVE_SERIAL.
6701 (Fdelete_process, Fprocess_status, Fset_process_buffer)
6702 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
6703 (list_processes_1, select_wrapper, Fstop_process)
6704 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
6705 (status_notify): Modify to handle serial processes.
6706 [HAVE_SERIAL] (Fserial_process_configure)
6707 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
6708 New functions.
6709 * process.h (struct Lisp_Process): Add `type'.
6710 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
6711 New functions.
6712 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
6713 serial ports.
b71ac3dd 6714 (serial_open, serial_configure): New functions.
aac0c6e3
MR
6715 * w32.h: Add FILE_SERIAL.
6716 (struct _child_process): Add ovl_read, ovl_write.
6717
67182008-06-13 Kenichi Handa <handa@m17n.org>
6719
6720 * dispextern.h (enum lface_attribute_index): New member
6721 LFACE_FOUNDRY_INDEX.
6722
6723 * font.c (font_score): Delete arg alternate_families. Check only
6724 weight, slant, width, and size. Ignore the difference of alias
6725 style symbols.
6726 (font_sort_entites): Adjust for the above change. Reflect the
6727 order of font-driver to scores.
6728 (font_list_entities): Don't check alternate_familes here.
6729 (font_clear_prop): Handle foundry.
6730 (font_update_lface): Don't parse "foundry-family" form here.
6731 Handle FONT_FOUNDRY_INDEX.
6732 (font_find_for_lface): Likewise. Handle alternate families here.
6733 If registry is nil, try iso8859-1 and ascii-0.
6734 (font_open_for_lface): Pay attention to size in ENTITY.
6735 (font_open_by_name): Simplify by calling font_load_for_lface.
6736 (free_font_driver_list): Delete it.
6737 (font_update_drivers): Preserve the order of backends.
6738 (syms_of_font): Setting of sort_shift_bits adjusted for the change
6739 of font_score and font_sort_entites.
6740 (font_update_sort_order): Likewise.
6741
6742 * xfaces.c (LFACE_FOUNDRY): New macro.
6743 (check_lface_attrs): Check foundry.
6744 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
6745 (merge_face_vectors): Check foundry.
6746 (merge_face_ref): Likewise.
6747 (Finternal_set_lisp_face_attribute): Likewise.
6748 (x_update_menu_appearance): Likewise.
6749 (Finternal_get_lisp_face_attribute): Likewise.
6750 (lface_hash): Likewise.
6751 (lface_same_font_attributes_p): Likewise.
6752 (x_supports_face_attributes_p): Likewise.
6753 (tty_supports_face_attributes_p): Likewise.
6754 (Finternal_set_alternative_font_family_alist): Intern strings.
6755 (Finternal_set_alternative_font_registry_alist): Downcase strings.
6756 (realize_default_face): Set LFACE_FOUNDRY (lface).
6757
6758 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
6759 font-driver at first.
6760
6761 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
6762
67632008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
6764
6765 * lread.c (Fload): Use xfree, not free on saved_doc_string.
6766
67672008-06-12 Jim Meyering <meyering@redhat.com>
6768
6769 Make unexec_free handle NULL the same way free does.
6770 * unexmacosx.c (unexec_free): Ignore a NULL argument.
6771
67722008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
6773
6774 * character.h (CHAR_TO_BYTE_SAFE): New macro.
6775 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
6776 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
6777 (WEAK_ALIAS): Simplify.
6778 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
6779 when searching a unibyte buffer.
6780
67812008-06-12 Chong Yidong <cyd@stupidchicken.com>
6782
6783 * xfns.c (Fx_select_font): Rename from x-font-dialog.
6784
67852008-06-12 Juanma Barranquero <lekktu@gmail.com>
6786
6787 * w32font.c: Include ctype.h.
6788
67892008-06-11 Jason Rumney <jasonr@gnu.org>
6790
6791 * w32font.c (w32font_encode_char): Detect missing glyphs that are
6792 misreported as space.
6793 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
6794 as aliases for registry iso10646-1.
6795
67962008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
6797
6798 * buffer.c (clone_per_buffer_values): Skip `name'.
6799
68002008-06-11 Chong Yidong <cyd@stupidchicken.com>
6801
6802 * font.c (font_parse_fcname): Fix last change; accept decimal
6803 points in font size.
6804
68052008-06-10 Jason Rumney <jasonr@gnu.org>
6806
6807 * w32uniscribe.c (add_opentype_font_name_to_list):
6808 Skip non unicode fonts.
6809
68102008-06-10 Chong Yidong <cyd@stupidchicken.com>
6811
6812 * xfns.c (Fx_font_dialog): New function.
6813
6814 * gtkutil.c (xg_dialog_response_cb): Rename from
6815 xg_file_response_callback.
6816 (pop_down_dialog): Rename from pop_down_file_dialog.
6817 (xg_get_file_name): Callers changed.
6818 (xg_get_font_name): New function.
6819
6820 * gtkutil.h (xg_get_font_name): Insert prototype.
6821
68222008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
6823
6824 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
6825 x_underline_minimum_display_offset.
6826 (syms_of_xdisp): Declare it here rather than in xterm.c.
6827 * dispextern.h (underline_minimum_offset): Declare it.
6828 * w32term.c (x_draw_glyph_string): Use it.
6829 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
6830 (syms_of_xterm): Don't declare it any more.
6831 (x_draw_glyph_string): Adjust to the new name.
6832
68332008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
6834
6835 * xterm.c (x_underline_minimum_display_offset): New var.
6836 (x_draw_glyph_string): Use it.
6837 (syms_of_xterm): Declare it.
6838
68392008-06-10 Chong Yidong <cyd@stupidchicken.com>
6840
6841 * font.c (font_parse_fcname): Accept GTK-style font names too.
6842
68432008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
6844
6845 * dired.c (file_name_completion): Don't return t if the match is exact
6846 but with different capitalization.
6847 * minibuf.c (Ftry_completion): Simplify.
6848
6849 * window.c (Vwindow_point_insertion_type): New var.
6850 (set_window_buffer): Use it.
6851 (syms_of_window): Init and export it to Lisp.
6852
68532008-06-10 Kenichi Handa <handa@m17n.org>
6854
6855 * font.h (font_intern_prop): Prototype adjusted.
6856
6857 * font.c (font_intern_prop): New arg force_symbol.
6858 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
6859 Adjust for the change of font_intern_prop.
6860
6861 * ftfont.c (ftfont_pattern_entity):
6862 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
6863 (w32_registry):
6864 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
6865 the change of font_intern_prop.
6866
68672008-06-09 Juanma Barranquero <lekktu@gmail.com>
6868
6869 * w32menu.c (digest_single_submenu): Declare extern.
6870
68712008-06-09 Jason Rumney <jasonr@gnu.org>
6872
6873 * w32term.c (x_make_frame_visible): Use alternate restore flags.
6874
6875 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
6876 (parse_single_submenu): Remove.
6877 (digest_single_submenu): Remove.
6878 (syms_of_w32menu): Don't initialise variables that have moved
6879 to menu.c.
6880 (set_frame_menubar): Sync with version in xmenu.c.
6881 (w32_menu_show): Sync with xmenu_show in xmenu.c.
6882
6883 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
6884 Make static again.
6885
68862008-06-09 Jason Rumney <jasonr@gnu.org>
6887
6888 Changes to w32 files related to the move of common menu code
6889 to menu.c on 2008-06-08 by Chong Yidong.
6890
6891 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
6892 defs to w32gui.h.
6893 (single_keymap_panes, push_menu_item, push_menu_pane):
6894 Make globally visible.
6895
6896 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
6897 (local_free, malloc_widget_value, free_widget_value)
6898 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
6899 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
6900 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
6901 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
6902 (menu_items, menu_items_allocated, menu_items_used)
6903 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
6904 (init_menu_items, finish_menu_items, discard_menu_items)
6905 (grow_menu_items, push_submenu_start, push_submenu_end)
6906 (push_left_right_boundary, push_menu_pane, push_menu_item)
6907 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
6908 (free_menubar_widget_tree_value, parse_single_submenu)
6909 (update_submenu_strings): Remove functions.
6910 (xmalloc_widget_value): Remove and declare extern.
6911
6912 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
6913 (OBJ1): Build it.
6914
6915 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
6916 (local_heap, local_alloc, local_free, malloc_widget_value)
6917 (free_widget_value): Define here.
6918
69192008-06-09 Kenichi Handa <handa@m17n.org>
6920
6921 * font.h (Qascii_0): Extern it.
6922
6923 * font.c (Qascii_0): New variable.
6924 (syms_of_font): DEFSYM it.
6925 (font_open_by_name): If the registry "iso8859-1" fails, try also
6926 "ascii-0".
6927
6928 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
6929
69302008-06-08 Kenichi Handa <handa@m17n.org>
6931
6932 * .gdbinit (xfont): New command.
6933
69342008-06-08 Andreas Schwab <schwab@suse.de>
6935
6936 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
6937 * Makefile.in (menu.o): Update dependencies.
6938
6939 * Makefile.in (obj): Always add menu.o.
6940 * emacs.c (main): Always call syms_of_menu.
6941 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
6942
69432008-06-08 Chong Yidong <cyd@stupidchicken.com>
6944
6945 * Makefile.in: Compile menu.c.
6946
6947 * lisp.h: Declare syms_of_menu.
6948
6949 * emacs.c (main): Call syms_of_menu.
6950
6951 * keyboard.h: Relocate platform-independent menu definitions from
6952 xmenu.c.
6953
6954 * menu.c: New file. Relocate platform-independent menu
6955 definitions from xmenu.c. Suggested by Adrian Robert.
6956
6957 * xmenu.c: Remove platform-independent menu definitions.
6958 (menu_items menu_items_inuse, menu_items_allocated)
6959 (menu_items_used, menu_items_n_panes)
6960 (menu_items_submenu_depth): Move to keyboard.h.
6961 (init_menu_items, finish_menu_items, unuse_menu_items)
6962 (discard_menu_items, restore_menu_items, save_menu_items)
6963 (grow_menu_items, push_submenu_start, push_submenu_end)
6964 (push_left_right_boundary, push_menu_pane, push_menu_item)
6965 (keymap_panes, single_keymap_panes, single_menu_item)
6966 (list_of_panes, list_of_items, find_and_call_menu_selection)
6967 (xmalloc_widget_value, free_menubar_widget_value_tree)
6968 (parse_single_submenu, digest_single_submenu)
6969 (update_submenu_strings): Move to menu.c.
6970
69712008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
6972
6973 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
6974
69752008-06-06 Miles Bader <miles@gnu.org>
6976
6977 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
6978 face, not frame default.
6979
69802008-06-05 Martin Rudalics <rudalics@gmx.at>
6981
6982 * window.c (pop_up_windows, pop_up_frames)
6983 (display_buffer_reuse_frames, Vpop_up_frame_function)
6984 (Vdisplay_buffer_function, Veven_window_heights)
6985 (Vspecial_display_buffer_names, Vspecial_display_regexps)
6986 (Vspecial_display_function, Vsame_window_buffer_names)
6987 (Vsame_window_regexps, split_height_threshold)
6988 (Vsplit_window_preferred_function): Move those vars to window.el.
6989 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
6990 (Fdisplay_buffer): Move those functions to window.el.
6991 (syms_of_window): Remove corresponding declarations.
6992 (display_buffer): New function.
6993 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
6994 * dispnew.c (Flast_nonminibuf_frame): New function.
6995 * buffer.c (Fpop_to_buffer): Move to window.el.
6996
69972008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
6998
6999 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
7000
70012008-06-05 Kenichi Handa <handa@m17n.org>
7002
7003 * coding.c (detect_coding): Fix previous change.
7004 (detect_coding_system): Likewise.
7005
70062008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
7007
7008 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
7009
7010 * keymap.c (Vminibuffer_local_filename_must_match_map):
7011 Rename from Vminibuffer_local_must_match_filename_map.
7012 (syms_of_keymap):
7013 * minibuf.c (Fcompleting_read): Adjust accordingly.
7014 * commands.h: Rename declaration as well.
7015
70162008-06-05 Kenichi Handa <handa@m17n.org>
7017
7018 * font.c (Ffont_spec): Don't use font_parse_family_registry for
7019 family name.
7020 (Ffont_put): Likewise.
7021
7022 * fontset.c (fontset_find_font): Call font_open_for_lface with the
7023 current font-spec.
7024
7025 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
7026 is unspecified.
7027
7028 * xfaces.c (realize_x_face): If the font-related face attributes
7029 are the same as those of default face, realize a new fontset from
7030 default->fontset.
7031 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
7032
70332008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
7034
7035 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
7036 (move_it_in_display_line): New wrapper.
7037
7038 * window.c (window_scroll_pixel_based_preserve_x)
7039 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
7040 (window_scroll_pixel_based, window_scroll_line_based):
7041 Use them to preserve column positions.
7042 (syms_of_window): Initialize them.
7043
7044 * indent.c (Fvertical_motion): Extend first arg to allow passing an
7045 (HPOS . VPOS) pair.
7046
7047 * dispextern.h (move_it_in_display_line): Declare.
7048
70492008-06-05 Juanma Barranquero <lekktu@gmail.com>
7050
7051 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
7052 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
7053 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
7054
70552008-06-04 Juanma Barranquero <lekktu@gmail.com>
7056
7057 * window.c (Fset_window_parameter): Doc fix.
7058 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
7059
70602008-06-04 Joakim Verona <joakim@verona.se>
7061
7062 * window.h (struct window): Add new member window_parameters.
7063
7064 * window.c (Fwindow_parameters, Fwindow_parameter)
7065 (Fset_window_parameter): New defuns.
7066 (syms_of_window): Defsubr the new defuns.
7067 (make_window): Initialize window_parameters to nil.
7068
70692008-06-04 John Paul Wallington <jpw@pobox.com>
7070
7071 * eval.c (Fdefmacro): Doc fix.
7072
70732008-06-04 Kenichi Handa <handa@m17n.org>
7074
7075 * coding.c (detect_coding): Fix handling of coding->head_ascii.
7076 Be sure to call setup_coding_system when we find a proper coding system.
7077 (detect_coding_system): Fix handling of coding->head_ascii.
7078
70792008-06-03 Andreas Schwab <schwab@suse.de>
7080
7081 * font.c (font_prop_validate_spacing): Fix last change.
7082
70832008-06-03 Kenichi Handa <handa@m17n.org>
7084
7085 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
7086 (font_parse_fcname): Fix handling of unknown key.
7087
7088 * xfont.c (xfont_list): Try an alias.
7089
7090 * charset.c (char_charset): Return NULL if the arg charset_list is
7091 specified and C doesn't belong to any of them.
7092
70932008-06-02 Chip Coldwell <coldwell@redhat.com>
7094
7095 * font.c (font_pixel_size): Don't take cdr of an integer.
7096
70972008-06-02 Jim Meyering <meyering@redhat.com>
7098
7099 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
7100 * alloc.c (xfree): Return right away for a NULL arg.
7101 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
7102 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
7103 * mac.c (create_apple_event_from_event_ref): Likewise.
7104 (create_apple_event_from_drag_ref, cfstring_create_normalized):
7105 Likewise.
7106 * doprnt.c (doprnt1): Likewise.
7107 * frame.c (frame): Likewise.
7108 * keyboard.c (wipe_kboard): Likewise.
7109 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
7110 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
7111 * term.c (tty_default_color_capabilities, maybe_fatal)
7112 (delete_tty): Likewise.
7113 * w16select.c (string): Likewise.
7114 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
7115 * w32bdf.c (w32_free_bdf_font): Likewise.
7116 * w32fns.c (w32_unload_font): Likewise.
7117 * w32font.c (w32font_close): Likewise.
7118 * window.c (size_window): Likewise.
7119 * xselect.c (receive_incremental_selection): Likewise.
7120 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
7121 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
7122 * w32.c (stat): Likewise.
7123
7124 Remove useless if-before-free tests.
7125 * editfns.c (Fset_time_zone_rule): Likewise.
7126 * lread.c (nosuffix): Likewise.
7127 * ralloc.c (get_bloc): Likewise.
7128 * regex.c (reg_free): Likewise.
7129 * xftfont.c (xftfont_open, xftfont_close): Likewise.
7130 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
7131 * xsmfns.c (smc_save_yourself_CB): Likewise.
7132
71332008-06-02 Kenichi Handa <handa@m17n.org>
7134
7135 * font.c (font_find_for_lface): Handle float font size.
7136 (font_open_for_lface): Likewise.
7137
7138 * xfaces.c (x_supports_face_attributes_p): Check face->font before
7139 comparing the properties.
7140
71412008-06-01 Jason Rumney <jasonr@gnu.org>
7142
7143 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
7144 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
7145 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
7146 Don't add empty script list.
7147 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
7148
71492008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
7150
7151 * Makefile.in (dot, dotdot): Remove, update users.
7152 ".." has been used elsewhere in the file for a long time.
7153 (LIBXT_STATIC): Remove conditional based on unused variable.
7154
71552008-06-01 Miles Bader <miles@gnu.org>
7156
7157 * xfaces.c (Vface_remapping_alist): New variable.
7158 (syms_of_xfaces): Initialize it.
7159 (enum named_merge_point_kind): New type.
7160 (struct named_merge_point): Add `named_merge_point_kind' field.
7161 (push_named_merge_point): Make cycle detection respect different
7162 named-merge-point kinds.
7163 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
7164 Remove face-name alias resolution.
7165 (lface_from_face_name): New definition using
7166 `lface_from_face_name_no_resolve'.
7167 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
7168 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
7169 (get_lface_attributes): New definition that layers face-remapping on
7170 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
7171 (lookup_basic_face): New function.
7172 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
7173 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
7174 `get_lface_attributes'.
7175 (face_at_buffer_position): Use `lookup_basic_face' to lookup
7176 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
7177 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
7178
7179 * xdisp.c (init_iterator): Pass base_face_id through
7180 `lookup_basic_face' when we actually use it as a face-id.
7181 (handle_single_display_prop): Use `lookup_basic_face' to lookup
7182 DEFAULT_FACE_ID.
7183
7184 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
7185 lookup the initial face-id.
7186
7187 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
7188
71892008-06-01 Juanma Barranquero <lekktu@gmail.com>
7190
7191 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
7192 (Fremove_text_properties): Fix typos in docstrings.
7193
71942008-05-31 Kenichi Handa <handa@m17n.org>
7195
7196 * font.c (font_list_entities): Fix the car part of data to be
7197 stored in the cache.
7198
7199 * ftfont.c (ftfont_font_format): Don't use strcasestr.
7200
72012008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
7202
7203 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
7204 Add a `test' argument so another predicate than `equal' can be used.
7205 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
7206 (map_char_table): Remove unused vars `c' and `i'.
7207 * lisp.h (Foptimize_char_table): Adjust declaration.
7208 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
7209
72102008-05-30 Kenichi Handa <handa@m17n.org>
7211
7212 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
7213 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
7214 defined.
7215
72162008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
7217
7218 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
7219 (Fmake_variable_frame_local): Disallow mixing buffer-local and
7220 frame-local settings for the same variable.
7221
72222008-05-30 Kenichi Handa <handa@m17n.org>
7223
7224 * fontset.c (Ffont_info): Move to font.c.
7225 (syms_of_fontset): Delete defsubr of Sfont_info.
7226
7227 * font.c (font_style_to_value, font_score): Delete casting of the
7228 args to xstcasecmp.
7229 (register_font_driver): Increment num_font_drivers only when
7230 registering the driver globally.
7231 (Ffont_info): Move from fontset.c. Handle a font object too.
7232 (syms_of_font): Defsubr Sfont_info.
7233
72342008-05-29 Kenichi Handa <handa@m17n.org>
7235
7236 * coding.h (enum define_coding_utf8_arg_index): New enum.
7237 (enum coding_attr_index): Change coding_attr_utf_16_bom to
7238 coding_attr_utf_bom.
7239 (enum utf_bom_type): Rename from utf_16_bom_type.
7240 (struct utf_16_spec): Adjust for the above change.
7241 (struct coding_system): Add utf_8_bom in `spec' union.
7242
7243 * coding.c (CODING_UTF_8_BOM): New macro.
7244 (enum coding_category): Delete coding_category_utf_8, add
7245 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
7246 coding_category_utf_8_sig.
7247 (CATEGORY_MASK_UTF_8): Delete it.
7248 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
7249 (CATEGORY_MASK_UTF_8_SIG): New macros.
7250 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
7251 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
7252 CATEGORY_MASK_UTF_8_SIG.
7253 (CATEGORY_MASK_UTF_8): New macro.
7254 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
7255 (detect_coding_utf_8): Check BOM.
7256 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
7257 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
7258 (encode_coding_utf_16): Likewise.
7259 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
7260 (detect_coding, detect_coding_system): Handle utf-8-auto.
7261 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
7262 (syms_of_coding): Fix setting up of Vcoding_category_table.
7263
72642008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
7265
7266 * process.c (Faccept_process_output): If `millisec' is non-nil,
7267 `seconds' default to 0.
7268 (wait_reading_process_output): Also return non-nil if we read output
7269 from a non-running process.
7270
72712008-05-29 Jason Rumney <jasonr@gnu.org>
7272
7273 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
7274 `raster' specified.
7275 (add_font_entity_to_list): Allow non-opentype truetype fonts back
7276 in the uniscribe backend, but disallow any font that has no
7277 unicode subrange support.
7278
72792008-05-29 Juanma Barranquero <lekktu@gmail.com>
7280
7281 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
7282 Fix typos in docstrings.
7283
72842008-05-29 Kenichi Handa <handa@m17n.org>
7285
7286 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
7287 (Fx_family_fonts): Set frame correctly.
7288
72892008-05-28 Jason Rumney <jasonr@gnu.org>
7290
7291 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
7292
72932008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
7294
7295 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
7296 calling build_annotations.
7297
72982008-05-28 Juanma Barranquero <lekktu@gmail.com>
7299
7300 * coding.c (Fdecode_coding_region, Fencode_coding_region)
7301 (Fencode_coding_string):
7302 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
7303 <latin-extra-code-table>: Fix typos in docstrings.
7304 (syms_of_coding) <coding-system-alist>: Doc fix.
7305 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
7306
73072008-05-28 Kenichi Handa <handa@m17n.org>
7308
7309 * fontset.c (Ffont_info): Don't call font_close_object.
7310
7311 * font.c (font_parse_family_registry): Use Ffont_put to validate
7312 foundry and family.
7313 (font_delete_unmatched): Don't check spacing.
7314 (font_list_entities): Add spacing to the spec to list fonts.
7315
7316 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
7317 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
7318
7319 * coding.c (encode_coding_raw_text): Fix previous change.
7320 (encode_coding_object): When the dst_object is a buffer and is
7321 different from src_object, move gap to PT.
7322
73232008-05-27 Chong Yidong <cyd@stupidchicken.com>
7324
7325 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
7326
73272008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
7328
7329 * coding.c (encode_coding_raw_text): Set coding->produced_char for
7330 all branches. Compute it differently.
7331
7332 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
7333
73342008-05-27 Juanma Barranquero <lekktu@gmail.com>
7335
7336 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
7337 into "else if () ... else ...".
7338
73392008-05-27 Jason Rumney <jasonr@gnu.org>
7340
7341 * w32font.c (w32font_open_internal): Determine if glyph indices
7342 are likely to work here.
7343
73442008-05-27 Chong Yidong <cyd@stupidchicken.com>
7345
7346 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
7347 draw overlap glyphs with appropriate highlighting.
7348
73492008-05-27 Kenichi Handa <handa@m17n.org>
7350
7351 * xfont.c (xfont_open): Fix calculation of font->average_width.
7352
73532008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
7354
7355 * casefiddle.c (casify_object): Try to guess better whether the
7356 argument is a byte or a char.
7357
73582008-05-26 Andreas Schwab <schwab@suse.de>
7359
7360 * xselect.c (x_reply_selection_request): Properly handle format == 32.
7361 Always send multiples of format size.
7362
7363 * xterm.c (x_set_frame_alpha): Fix type mismatch.
7364
73652008-05-26 Jason Rumney <jasonr@gnu.org>
7366
7367 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
7368 (compute_metrics): Don't set failure if we just cleared the cache.
7369 (w32_weight_table): Remove unused variable.
7370 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
7371 backwards compatibility.
7372
73732008-05-25 Kenichi Handa <handa@m17n.org>
7374
7375 * w32term.c (x_draw_glyph_string):
7376 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
7377
7378 * xfaces.c: Delete unused function prototypes.
7379 (xstrlwr, font_frame): Delete them.
7380 (clear_face_cache): Delete unused variable.
7381
7382 * xftfont.c (xftfont_open): Delete unused variable.
7383 If underline_thickness is not 1, adjust underline_position.
7384
7385 * ftxfont.c (ftxfont_open): Delete unused variable.
7386
7387 * fontset.c (face_for_char): Optimize for the case of no charset
7388 property.
7389
7390 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
7391 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
7392 (otf_open, font_otf_capability, generate_otf_features)
7393 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
7394 Comment out by surrounding "#if 0" and "#endif" for the moment.
7395 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
7396 (syms_of_font): Codes for accessing above commented out.
7397
73982008-05-24 Eli Zaretskii <eliz@gnu.org>
7399
7400 * w32proc.c: Include dispextern.h.
7401
7402 * w32.c: Include dispextern.h.
7403
74042008-05-23 Juanma Barranquero <lekktu@gmail.com>
7405
7406 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
7407 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
7408 Fix typos in docstrings.
7409
74102008-05-23 Jason Rumney <jasonr@gnu.org>
7411
7412 * xsmfns.c: Remove includes that are already included by config.h.
7413
74142008-05-23 Kenichi Handa <handa@m17n.org>
7415
7416 * charset.c (Qemacs, charset_emacs): New variables.
7417 (char_charset): Fix for non-Unicode characters.
7418 (syms_of_charset): Define charset_emacs.
7419
7420 * w32term.c (x_draw_glyph_string): Be sure to update
7421 s->underline_thickness and s->underline_position. Be sure to draw
7422 underline within the current line area.
7423
7424 * xterm.c (x_draw_glyph_string): Be sure to update
7425 s->underline_thickness and s->underline_position. Be sure to draw
7426 underline within the current line area.
7427
7428 * fontset.c: Delete unused variables and add casting for char *
7429 throughout the file.
7430 (fontset_font): Try the fallback fonts of the current fontset
7431 before consulting the default fontset.
7432
7433 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
7434
7435 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
7436
74372008-05-22 Jason Rumney <jasonr@gnu.org>
7438
7439 * font.c: Don't include strings.h.
7440
7441 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
7442
7443 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
7444 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
7445 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
7446 to call xstrcasecmp.
7447
7448 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
7449
7450 * fontset.c (fs_query_fontset): Use xstrcasecmp.
7451
7452 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
7453
7454 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
7455
74562008-05-22 Kenichi Handa <handa@m17n.org>
7457
7458 * puresize.h (BASE_PURESIZE): Increase to 1220000.
7459
7460 * font.c (font_prop_validate_style): Adjust for the format
7461 change of font_style_table.
7462
7463 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
7464 two args.
7465
7466 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
7467 two args.
7468
74692008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
7470
7471 * minibuf.c (keys_of_minibuf): Delete.
7472 * lisp.h (keys_of_minibuf): Delete.
7473 * emacs.c (main): Don't call keys_of_minibuf.
7474
74752008-05-22 Kenichi Handa <handa@m17n.org>
7476
7477 * ftfont.c (ftfont_resolve_generic_family): Rename from
7478 ftfont_list_generic_family. Return a single family for each
7479 generic family.
7480 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
7481 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
7482 Call font_add_log.
7483 (ftfont_match): Call font_add_log.
7484
7485 * font.h (Ffont_xlfd_name): EXFUN adjusted.
7486 (FONT_DEBUG): Define it.
7487 (font_add_log): Extern it.
7488 (font_assert): Rename from xassert.
7489
7490 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
7491 (xfont_list_family): Call font_add_log.
7492 (xfont_match): Likewise.
7493 (memq_no_quit): Delete.
7494
7495 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
7496 call of Ffont_xlfd_name.
7497
7498 * xfaces.c (struct table_entry, slant_table, weight_table)
7499 (swidth_table): Move to font.c.
7500
7501 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
7502 xassert are changed to font_assert. Delete many unused variables.
7503 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
7504 New variables.
7505 (struct table_entry): Move from xfaces.c and modified.
7506 (weight_table, slant_table, width_table): Move from xfaces.c and
7507 contents adjusted for the change of struct table_entry.
7508 (font_style_to_value, font_style_symbolic): Adjust for the
7509 format change of font_style_table.
7510 (font_parse_family_registry): Don't overwrite existing foundry and
7511 family of font_spec.
7512 (font_score): Fix calculation of diff for sizes.
7513 (font_sort_entites): Call font_add_log.
7514 (font_delete_unmatched): Return a newly created list.
7515 (font_list_entities): Fix previous change. Call font_add_log.
7516 (font_matching_entity, font_open_entity, font_close_entity):
7517 Call font_add_log.
7518 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
7519 (Finternal_set_font_style_table): Delete.
7520 (BUILD_STYLE_TABLE): New macro.
7521 (build_style_table): New function.
7522 (Vfont_log, font_log_env_checked): New variables.
7523 (font_add_log): New function.
7524 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
7525 Declare Lisp variables "font-weight-table", "font-slant-table",
7526 "font-width-table", and "font-log". Initialize font_style_table.
7527
75282008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
7529
7530 * xterm.c (x_set_frame_alpha): Move declarations before statements.
7531
75322008-05-21 Seiji Zenitani <zenitani@mac.com>
7533 Ryo Yoshitake <ryo@shiftmode.net>
7534
7535 * frame.c (Qalpha): Add a new frame parameter `alpha'.
7536 (Vframe_alpha_lower_limit): New variable.
7537 (x_set_alpha): New function.
7538
7539 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
7540
7541 * xfns.c (x-create-frame, Qalpha):
7542 Initialize the frame parameter `alpha'.
7543 * xterm.c (OPAQUE, OPACITY): New.
7544 (x_set_frame_alpha): New function.
7545 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
7546
7547 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
7548 * w32fns.c (w32_frame_parm_handlers): Likewise.
7549
75502008-05-20 Jason Rumney <jasonr@gnu.org>
7551
7552 * w32font.c (add_font_entity_to_list): Don't add non-opentype
7553 truetype fonts to opentype list.
7554
75552008-05-20 Juanma Barranquero <lekktu@gmail.com>
7556
7557 * fontset.c (Ffontset_info): Doc fix.
7558 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
7559 <ignore-relative-composition>: Fix typos in docstrings.
7560
7561 * font.c (syms-of-font) <font-encoding-alist>:
7562 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
7563 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
7564 (Ffont_otf_alternates): Doc fixes.
7565
75662008-05-20 Kenichi Handa <handa@m17n.org>
7567
7568 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
7569 font.h through out the file.
7570 (FONT_DRIVERS): Rename from FONTOBJ.
7571 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
7572 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
7573
7574 * emacs.c (main): Call syms_of_font unconditionally.
7575
7576 * font.h (find_font_encoding): Extern it.
7577
7578 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
7579 fontset.c.
7580 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
7581 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
7582 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
7583 only when HAVE_WINDOW_SYSTEM is defined.
7584 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
7585 when HAVE_WINDOW_SYSTEM is defined.
7586
7587 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
7588 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
7589
7590 * xfaces.c: Include font.h unconditionally.
7591 (merge_face_ref, merge_face_vectors)
7592 (Finternal_set_lisp_face_attribute): Cancel the previous change.
7593
75942008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
7595
7596 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
7597 indirect_variable.
7598 * eval.c (lisp_indirect_variable): New fun.
7599 (Fuser_variable_p): Use it.
7600
76012008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
7602
7603 * lisp.h (indirect_variable):
7604 * data.c (indirect_variable, let_shadows_buffer_binding_p):
7605 Use Lisp_Symbol pointers rather than Lisp_Object.
7606 Adjust callers.
7607 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
7608 To this end, change calling-convention.
7609
7610 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
7611 if some non-hidden buffers are selected by string&pred.
7612
76132008-05-19 Chong Yidong <cyd@stupidchicken.com>
7614
7615 * process.c (wait_reading_process_output): Always check status
7616 when in batch mode.
7617
76182008-05-19 Kenichi Handa <handa@m17n.org>
7619
7620 * font.c (font_list_entities): Fix handling of cache.
7621 (font_matching_entity): Likewise.
7622
7623 * ftfont.c (cs_iso8859_1): Delete.
7624 (ft_face_cache): New variable.
7625 (struct ftfont_info): New member fc_charset_idx.
7626 (ftfont_build_basic_charsets): Delete.
7627 (fc_charset_table): New variable.
7628 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
7629 . FC_CHARSET_IDX) as :font-entity property in the font entity.
7630 Callers changed.
7631 (ftfont_lookup_cache, ftfont_get_charset): New functions.
7632 (ftfont_spec_pattern): New argument fc_charset_idx.
7633 Check registry more rigidly. Change callers.
7634 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
7635 change of :font-entity property of the font.
7636
7637 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
7638 property of the font.
7639
76402008-05-18 Juanma Barranquero <lekktu@gmail.com>
7641
7642 * coding.c (Fcoding_system_p): Rename argument to match docstring.
7643 (Funencodable_char_position, Fcheck_coding_systems_region)
7644 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
7645 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
7646 (Ffind_operation_coding_system, Fset_coding_system_priority)
7647 (Fcoding_system_eol_type): Doc fixes.
7648
76492008-05-17 Glenn Morris <rgm@gnu.org>
7650
7651 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
7652
76532008-05-16 Eli Zaretskii <eliz@gnu.org>
7654
7655 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
7656 and st_gid.
7657
7658 * frame.c (Fdelete_frame): Don't call font_update_drivers if
7659 HAVE_WINDOW_SYSTEM is not defined.
7660
7661 * xfaces.c (merge_face_ref, merge_face_vectors)
7662 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
7663 HAVE_WINDOW_SYSTEM is defined.
7664 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
7665
76662008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
7667
7668 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
7669
76702008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7671
7672 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
7673
76742008-05-15 Kenichi Handa <handa@m17n.org>
7675
7676 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
7677 preference.
7678
76792008-05-15 Glenn Morris <rgm@gnu.org>
7680
7681 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
7682
76832008-05-15 Chong Yidong <cyd@stupidchicken.com>
7684
7685 * fns.c (init_fns): Don't initialize weak_hash_tables here.
7686 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
7687
7688 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
7689
76902008-05-15 Kenichi Handa <handa@m17n.org>
7691
7692 * ftfont.c (ftfont_list): Downcase family name to check generic
7693 families.
7694
7695 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
7696 font-spec for QCfont value.
7697
7698 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
7699 buffer. Check the return value of it.
7700
77012008-05-14 Jason Rumney <jasonr@gnu.org>
7702
7703 * w32term.c (w32_get_glyph_overhangs): Remove.
7704 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
7705
77062008-05-14 Kenichi Handa <handa@m17n.org>
7707
7708 * font.c (font_prop_validate): Make nil a valid value.
7709 (font_clear_cache): Check if the cached vector of entities is nil
7710 or not.
7711
77122008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7713
7714 * emacs.c (main_thread): Conditionalize on
7715 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
7716 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
7717
7718 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
7719 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
7720 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
7721
77222008-05-14 Kenichi Handa <handa@m17n.org>
7723
7724 * coding.c (detect_coding_iso_2022): Ignore a coding category that
7725 has no corresponding coding system.
7726
77272008-05-14 Jason Rumney <jasonr@gnu.org>
7728
7729 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
7730
7731 * w32font.h (w32font_open_internal): Update declaration.
7732
7733 * w32font.c (w32font_open_internal): Change last argument from
7734 w32font_info struct to font object. Fill in font object from
7735 font_entity. Get Outline metrics if possible. Use them to
7736 calculate underline position and thickness. Use xlfd name as name
7737 property. Don't set codepage.
7738 (w32font_open): Pass font_object to w32font_open_internal. Don't
7739 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
7740 (w32font_draw): Use s->font.
7741 (clear_cached_metrics): Don't clear non-existent blocks.
7742
7743 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
7744 font was not found.
7745 (x_draw_glyph_string): Use underline position and thickness from font.
7746
7747 * w32uniscribe.c (uniscribe_open): Pass font_object to
7748 w32font_open_internal.
7749
77502008-05-14 Kenichi Handa <handa@m17n.org>
7751
7752 These changes are to delete all legacy font-handling codes, and
7753 make Emacs use only font-backends.
7754
7755 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
7756 (frame.o, image.o, print.o): Depend on $(FONTSRC).
7757
7758 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
7759
7760 * charset.h (Vcharset_non_preferred_head)
7761 (Vcurrent_iso639_language): Extern them.
7762
7763 * charset.c (Vcharset_non_preferred_head): New variable.
7764 (Vcurrent_iso639_language): New variable.
7765 (syms_of_charset): Declare it as a Lisp variable.
7766 (char_charset): Don't check non preferred charsets. As a last
7767 resort, return charset_unicode.
7768 (Fset_charset_priority): Update Vcharset_non_preferred_head.
7769
7770 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
7771 conditionals. Don't check enable_font_backend. Delete all codes
7772 used only when USE_FONT_BACKEND is not defined.
7773
7774 * dispextern.h (struct glyph_string): Change type of `font' to
7775 `struct font *'.
7776 (struct glyph_string): New member underline_position and
7777 underline_thickness.
7778 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
7779 (struct face): Change type of `font' to `struct font *'. Remove
7780 members `font_name', `font_info_id'.
7781 (per_char_metric, encode_char): Delete externs.
7782 (calc_pixel_width_or_height): Adjust the prototype.
7783
7784 * emacs.c (enable_font_backend): Delete extern.
7785 (main): Don't set enable_font_backend. Don't check the command
7786 line argument "-disable-font-backend".
7787
7788 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
7789 (enum font_property_index): New members FONT_DPI_INDEX,
7790 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
7791 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
7792 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
7793 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
7794 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
7795 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
7796 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
7797 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
7798 (struct font_spec, struct font_entity): New structs.
7799 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
7800 (struct font): Many members from old "struct font_info" moved to
7801 here. Members font and entity deleted.
7802 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
7803 the new font-related objects.
7804 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
7805 (CHECK_FONT_GET_OBJECT): Likewise.
7806 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
7807 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
7808 (struct font_driver): New members case_sensitive anc check. Type
7809 of the member list and open changed.
7810 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
7811 (font_symbolic_width, font_find_object, font_get_spec)
7812 (font_set_lface_from_name): Delete extern.
7813 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
7814
7815 * font.c: Include <strings.h>.
7816 (enable_font_backend): Delete it.
7817 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
7818 (CHECK_VALIDATE_FONT_SPEC): Delete it.
7819 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
7820 (null_string): Delete it.
7821 (null_vector): Make it static.
7822 (font_family_alist): Delete it.
7823 (Qnormal): Extern it.
7824 (QCextra, QClanguage): Delete it.
7825 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
7826 (font_make_spec, font_make_entity, font_make_object)
7827 (font_intern_prop): Renamed from intern_downcase. Don't downcase
7828 the string. Callers changed.
7829 (font_pixel_size): Adjusted for the format change of font-related
7830 objects.
7831 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
7832 (font_style_to_value, font_style_symbolic): New function.
7833 (build_font_family_alist): Delete it.
7834 (font_registry_charsets): Use Fassoc_string instead of
7835 assq_no_quit.
7836 (font_prop_validate_symbol): Don't return null_string.
7837 (font_prop_validate_style): Adjusted for the change of
7838 style-related values in a font vector.
7839 (font_property_table): Delete entries for QClanguage and
7840 QCantialias, add entries for QCavgwidth.
7841 (get_font_prop_index): Delete the 2nd argument FROM.
7842 (font_prop_validate): Arguments changed.
7843 (font_put_extra): Adjusted for the change of font-related objects.
7844 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
7845 (font_parse_fcname, font_unparse_fcname)
7846 (font_prepare_composition): Likewise.
7847 (font_parse_family_registry): Renamed from font_merge_old_spec.
7848 (otf_open): Delete the 1st arg entity.
7849 (font_otf_capability): Adjusted for the above change.
7850 (font_score): New arg alternate_families. Adjusted for the change
7851 of font-related objects.
7852 (font_sort_entites): New arg best_only.
7853 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
7854 Delete them.
7855 (font_match_p): Check alternate families.
7856 (font_find_object): Delete it.
7857 (font_check_object): New function.
7858 (font_clear_cache): Adjusted for the change of font-related objects.
7859 (font_delete_unmatched): New arg.
7860 (font_list_entities): Call font_driver->list with a spec that
7861 doesn't specify style-related properties.
7862 (font_matching_entity): Arguments changed. Caller changed.
7863 (font_open_entity): Adjusted for the change of font-related objects.
7864 (font_close_object, font_has_char, font_encode_char)
7865 (font_get_name, font_get_spec): Likewise.
7866 (font_spec_from_name, font_clear_prop, font_update_lface):
7867 New functions.
7868 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
7869 (font_prepare_for_face, font_done_for_face, font_open_by_name)
7870 (font_at): Adjusted for the change of font-related objects.
7871 (font_range): New function.
7872 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
7873 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
7874 (Fcopy_font_spec, Fmerge_font_spec): New function.
7875 (Ffont_family_list): Renamed from list-families.
7876 (Finternal_set_font_style_table): Arguments changed.
7877 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
7878 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
7879 change of font-related objects.
7880 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
7881
7882 * fontset.h (struct font_info): Delete it. Most members go to
7883 struct font.
7884 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
7885 (enum FONT_SPEC_INDEX): Delete it.
7886 (font_info, list_fonts_func, load_font_func, query_font_func)
7887 (set_frame_fontset_func, find_ccl_program_func)
7888 (get_font_repertory_func, new_fontset_from_font_name): Delete
7889 externs.
7890 (fontset_from_font_name): Extern it.
7891 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
7892 (FONT_INFO_FROM_FACE): Deleted.
7893 (face_for_font): Adjust prototype.
7894
7895 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
7896 conditionals. Don't check enable_font_backend. Delete all codes
7897 used only when USE_FONT_BACKEND is not defined.
7898 (get_font_info_func, list_font_func, load_font_func)
7899 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
7900 (get_font_repertory_func): Delete them.
7901 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
7902 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
7903 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
7904 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
7905 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
7906 (fontset_compare_rfontdef): New function.
7907 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
7908 rfont-defs by qsort. Adjusted for the change of font-group vector.
7909 (load_font_get_repertory): Deleted.
7910 (fontset_find_font): Use new macros to ref/set elements of
7911 font-def and rfont-def.
7912 (fontset_font): Fix the timing of remembering that no font for C.
7913 (free_face_fontset): Do nothing if the face has no fontset.
7914 (face_suitable_for_char_p): Use new macros to ref/set elements of
7915 rfont-def.
7916 (face_for_char): Likewise. Call face_for_char with font_object.
7917 (fs_load_font): Delete. Delete #pragma surrounding it.
7918 (fs_query_fontset): Use strcasecmp instead of strcmp.
7919 (generate_ascii_font_name): Adjusted for the format change of
7920 font-spec.
7921 (Fset_fontset_font): Likewise. Use new macros to set elements of
7922 font-def.
7923 (Fnew_fontset): Use font_unparse_xlfd to generate
7924 FONTSET_ASCII (fontset).
7925 (new_fontset_from_font_name): Deleted.
7926 (fontset_from_font): Renamed from new_fontset_from_font. Check if
7927 a fontset is already created for the font. FIx updating of
7928 Vfontset_alias_alist.
7929 (fontset_ascii_font): Deleted.
7930 (Ffont_info): Adjusted for the format change of font-spec.
7931 (Finternal_char_font): Likewise.
7932 (Ffontset_info): Likewise.
7933 (syms_of_fontset): Don't check load_font_func.
7934
7935 * fns.c (internal_equal): Handle PREV_FONT.
7936
7937 * frame.h: Delete USE_FONT_BACKEND conditional.
7938
7939 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
7940 conditionals. Don't check enable_font_backend. Delete all codes
7941 used only when USE_FONT_BACKEND is not defined.
7942 (x_set_font): Call x_new_font, not x_new_fontset2.
7943 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
7944 already set for the frame.
7945
7946 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
7947 a font-entity by font_make_entity. Use font_intern_prop instead
7948 of intern_downcase. Use FONT_SET_STYLE to set a style-related
7949 font property. If a font is scalable, set avgwidth property to 0.
7950 Set font-entity property by font_put_extra.
7951 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
7952 (ffont_driver): Adjusted for the change of struct font_driver.
7953 (ftfont_spec_pattern): New function.
7954 (ftfont_list): Return a list, not vector.
7955 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
7956 (ftfont_list_family): Don't downcase names.
7957 (ftfont_free_entity): Deleted.
7958 (ftfont_open): Return a font-object. Adjusted for the change of
7959 struct font. Get underline_thickness and underline_position from
7960 font property. Don't update dpyinfo->smallest_font_height and
7961 dpyinfo->smallest_char_width.
7962 (ftfont_close): Don't free `struct font'.
7963 (ftfont_has_char): Adjusted for the format change of font-entity.
7964 (ftfont_encode_char, ftfont_text_extents): Likewise.
7965
7966 * ftxfont.c (ftxfont_list): Return a list, not vector.
7967 (ftxfont_open): Return a font-object. Adjusted for the change of
7968 struct font. Get underline_thickness and underline_position from
7969 font property. Don't update dpyinfo->smallest_font_height and
7970 dpyinfo->smallest_char_width.
7971 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
7972 (ftxfont_draw): Adjusted for the change of struct font.
7973
7974 * image.c (image_ascent): Don't include "charset.h". Include
7975 "character.h" and "font.h".
7976
7977 * lisp.h (enum pvec_type): New member PREV_FONT.
7978 (Fassoc_string): EXFUN it.
7979
7980 * print.c: Include font.h.
7981 (print_object): Handle font-related objects.
7982
7983 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
7984 conditionals. Don't check enable_font_backend. Delete all codes
7985 used only when USE_FONT_BACKEND is not defined.
7986 (handle_auto_composed_prop): Do nothing if it->f is not on a
7987 window system. Check how many following characters can be
7988 displayed by the same font.
7989 (calc_pixel_width_or_height): Type of the 4th arg is changed to
7990 'struct font *'.
7991 (get_char_face_and_encoding): Assign the whole encoding task to
7992 the `encode-char' method of a font driver.
7993 (fill_composite_glyph_string): Adjusted for the change of `struct
7994 face' and `struct glyph_string'.
7995 (fill_glyph_string): Likewise.
7996 (get_per_char_metric): Arguments changed.
7997 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
7998 and `struct glyph_string'.
7999 (produce_stretch_glyph, calc_line_height_property)
8000 (x_produce_glyphs): Likewise.
8001
8002 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
8003 conditionals. Don't check enable_font_backend. Delete all codes
8004 used only when USE_FONT_BACKEND is not defined. Use
8005 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
8006 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
8007 (Qp): Extern them.
8008 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
8009 Deleted.
8010 (struct font_name): Deleted.
8011 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
8012 (compare_fonts_by_sort_order): New function.
8013 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
8014 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
8015 Deleted.
8016 (Fx_family_fonts): Use font_list_entities, and sort fonts by
8017 compare_fonts_by_sort_order.
8018 (Fx_font_family_list): Call Ffont_family_list.
8019 (face_numeric_value, face_numeric_weight, face_numeric_slant)
8020 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
8021 (face_symbolic_slant, face_symbolic_swidth)
8022 (split_font_name_into_vector, build_font_name_from_vector)
8023 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
8024 (font_rescale_ratio, split_font_name, build_font_name)
8025 (free_font_names, sort_fonts, x_face_list_fonts)
8026 (face_font_available_p, sorted_font_list, cmp_font_names)
8027 (font_list_1, concat_font_list, font_list, remove_duplicates):
8028 Deleted.
8029 (Fx_list_fonts): Use Ffont_list.
8030 (LFACE_AVGWIDTH): Deleted.
8031 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
8032 by FONTP.
8033 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
8034 (set_lface_from_font_name): Delete it.
8035 (set_lface_from_font): Renamed from
8036 set_lface_from_font_and_fontset. Caller changed. Don't set
8037 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
8038 for face.
8039 (merge_face_vectors): Copy font-spec if necessary.
8040 Clear properties of the font-spec if necessary.
8041 (merge_face_ref): Clear properties of the font-spec if necessary.
8042 (Finternal_set_lisp_face_attribute): Likewise.
8043 (set_font_frame_param): Use font_load_for_lface to load a
8044 font-object, and call Fmodify_frame_parameters with it.
8045 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
8046 font name by Ffont_xlfd_name.
8047 (Finternal_lisp_face_attribute_values): Don't check QCweight,
8048 QCslant, and QCwidth.
8049 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
8050 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
8051 Compare fonts by EQ.
8052 (lookup_non_ascii_face): Deleted.
8053 (face_for_font): The 2nd argument changed.
8054 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
8055 Check atomic font properties by case insensitive.
8056 (realize_non_ascii_face): Set face->overstrike correctly.
8057 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
8058 (dump_realized_face): Get font name from
8059 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
8060
8061 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
8062 conditionals. Don't check enable_font_backend. Delete all codes
8063 used only when USE_FONT_BACKEND is not defined.
8064 (xic_create_xfontset): Original code deleted and renamed from
8065 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
8066 (x_make_gc): Don't set GCFont in GCs.
8067 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
8068 opened by "fixed".
8069 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
8070 find_ccl_program_func, query_font_func, set_frame_fontset_func,
8071 get_font_repertory_func.
8072
8073 * xfont.c: Include <stdlib.h> and "ccl.h".
8074 (struct xfont_info): New structure.
8075 (xfont_query_font): Deleted.
8076 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
8077 moved from xterm.c.
8078 (xfont_driver): Adjusted for the change of struct font_driver.
8079 (compare_font_names): New function.
8080 (xfont_list_pattern): Sort font names case insensitively. Make
8081 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
8082 (xfont_list): Return a list, not vector.
8083 (xfont_match): If the font doesn't have QCname property, generate
8084 a name from the other font properties.
8085 (xfont_open): Return a font-object. Adjusted for the change of
8086 struct font. Get underline_thickness and underline_position from
8087 font property. Don't update dpyinfo->smallest_font_height and
8088 dpyinfo->smallest_char_width.
8089 (xfont_close): Don't free struct font.
8090 (xfont_prepare_face): Adjusted for the change of struct font.
8091 (xfont_done_face): Deleted.
8092 (xfont_has_char): Adjusted for the change of struct font.
8093 (xfont_encode_char, xfont_draw): Likewise.
8094 (xfont_check): New function.
8095
8096 * xftfont.c (xftfont_list): Adjusted for the change of `list'
8097 callback function.
8098 (xftfont_match): Adjusted for the format change of font-entity.
8099 (xftfont_open): Adjusted for the format change of font-entity and
8100 font-object. Adjusted for the change of struct font. Return a
8101 font-object. Don't update dpyinfo->smallest_font_height and
8102 dpyinfo->smallest_char_width.
8103 (xftfont_close): Block input while calling XftFontClose.
8104 (xftfont_prepare_face): Don't block input while calling
8105 xftfont_get_colors. Adjusted for the change of struct font.
8106 (xftfont_shape): Return value of error case fixed.
8107
8108 * xrdb.c (x_load_resources): Don't setup a fontset resource.
8109
8110 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
8111 conditionals.
8112 (FONT_WIDTH): Return (f)->max_width.
8113 (struct x_display_info): Delete member `font'.
8114 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
8115 (x_find_ccl_program, x_get_font_repertory): Delete externs.
8116 (struct x_output): Change type of `font' to `struct font *'.
8117
8118 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
8119 conditionals. Don't check enable_font_backend. Delete all codes
8120 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
8121 (x_per_char_metric, x_encode_char): Deleted.
8122 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
8123 (x_compute_glyph_string_overhangs): Adjusted for the change of
8124 `struct face'.
8125 (x_draw_glyph_string_foreground)
8126 (x_draw_composite_glyph_string_foreground): Likewise.
8127 (x_draw_glyph_string): Likewise. Use font->underline_position and
8128 font->underline_thickness.
8129 (x_new_font): Renamed from x_new_fontset2.
8130 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
8131 (x_check_font): Call `check' method of a font driver.
8132 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
8133 (x_query_font, x_get_font_repertory): Deleted.
8134 (x_find_ccl_program): Renamed and moved to xfont.c.
8135 (x_redisplay_interface): Adjusted for the change of `struct
8136 redisplay_interface'.
8137
8138 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
8139 conditionals. Don't check enable_font_backend. Delete all codes
8140 used only when USE_FONT_BACKEND is not defined. Surround non-used
8141 code by "#ifdef OLD_FONT" and "endif".
8142 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
8143
8144 * w32font.h (struct w32font_info): New member.
8145 (FONT_COMPAT): New macro.
8146 (w32font_open_internal): Prototype adjusted.
8147
8148 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
8149 OLD_FONT" and "endif".
8150
8151 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
8152 conditionals. Don't check enable_font_backend. Delete all codes
8153 used only when USE_FONT_BACKEND is not defined.
8154 (w32font_open): Return a font-object. Make a font-object by
8155 font_make_object. Adjusted for the change of struct w32font_info.
8156 (w32font_close): Don't free struct font. Adjusted for the change
8157 of struct w32font_info.
8158 (w32font_encode_char, w32font_text_extents, w32font_draw):
8159 Adjusted for the change of struct w32font_info.
8160 (w32font_draw): Likewise.
8161 (w32font_list_internal): Return a list, not vector.
8162 (w32font_open_internal): Change the 4th arg to font-object.
8163 Adjusted for the change of struct w32font_info and font-object format.
8164 (add_font_name_to_list): Don't downcase names.
8165 (w32_enumfont_pattern_entity): Make a font-entity by
8166 font_make_entity. Adjusted for the format change of font-entity.
8167 Use FONT_SET_STYLE to set a style-related font property. If a
8168 font is scalable, set avgwidth property to 0. Set font-entity
8169 property by font_put_extra.
8170 (font_matches_spec): Adjusted for the format change of font-entity.
8171 (w32_weight_table, w32_decode_weight): New variables.
8172 (w32_encode_weight): New function.
8173 (fill_in_logfont): Adjusted for the format change of font-spec.
8174 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
8175 weight value.
8176 (w32font_driver): Adjusted for the change of struct font_driver.
8177
8178 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
8179 conditionals. Don't check enable_font_backend. Surround non-used
8180 code by "#ifdef OLD_FONT" and "endif".
8181 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
8182 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
8183
8184 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
8185 conditionals. Don't check enable_font_backend. Delete all codes
8186 used only when USE_FONT_BACKEND is not defined. Surround non-used
8187 code by "#ifdef OLD_FONT" and "endif".
8188
8189 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
8190 (uniscribe_open): Return value changed to font-object.
8191 Adjusted for the format change of font-object.
8192 (uniscribe_otf_capability): Adjusted for the change of struct font.
8193 (add_opentype_font_name_to_list): Don't downcase names.
8194 (uniscribe_font_driver): Adjusted for the change of struct
8195 font_driver.
8196
81972008-05-13 Chong Yidong <cyd@stupidchicken.com>
8198
8199 * dispnew.c (update_frame_1): Check if tty output is still valid
8200 before flushing it.
8201
82022008-05-13 Jan Djärv <jan.h.d@swipnet.se>
8203
8204 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
8205 to Gtk+ menus.
8206
82072008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
8208
8209 * dired.c (file_name_completion): Tweak the code so as to always do it
8210 in a single pass. Tighten the scope of some variables.
8211
8212 * dired.c (Qdefault_directory): New var.
8213 (file_name_completion): Use it instead of Fexpand_file_name.
8214 (syms_of_dired): Initialize it.
8215
82162008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
8217
8218 * fileio.c (double_dollars): Remove dead code.
8219
82202008-05-10 Eli Zaretskii <eliz@gnu.org>
8221
8222 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
8223 Mention w32-get-true-file-attributes in doc string.
8224
8225 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
8226
82272008-05-09 Glenn Morris <rgm@gnu.org>
8228
8229 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
8230 2008-04-23.
8231
82322008-05-09 Eli Zaretskii <eliz@gnu.org>
8233
8234 Support for reporting owner and group of each file on MS-Windows:
8235 * dired.c (stat_uname, stat_gname): New functions, with special
8236 implementation for w32.
8237 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
8238
8239 * w32.c: Rename the_passwd_* to dflt_passwd_*.
8240 (dflt_group_name): New static variable.
8241 (dflt_group): Rename from the_group.
8242 (init_user_info): Init dflt_group fields. Get user's group name
8243 from LookupAccountSid.
8244 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
8245 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
8246 New initialization states.
8247 (globals_of_w32): Initialize them to zero. Initialize the default
8248 group name to "None".
8249 (GetFileSecurity_Name): New global var, the name of the function
8250 to call for GetFileSecurity.
8251 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
8252 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
8253 (get_file_security, get_security_descriptor_owner)
8254 (get_security_descriptor_group, is_valid_sid)
8255 (get_file_security_desc, get_rid, get_name_and_id)
8256 (get_file_owner_and_group): New functions.
8257 (stat): Use get_file_security_desc and get_file_owner_and_group to
8258 report the owner and primary group of each file. Don't ignore the
8259 high 32 bits of file's size, now that st_size is 64-bit wide.
8260 Fix test when to get true file attributes.
8261 (init_user_info): Use get_rid instead of equivalent inline code.
8262 (fstat): Don't ignore the high 32 bits of file's size.
8263
82642008-05-09 Chong Yidong <cyd@stupidchicken.com>
8265
8266 * image.c (png_load): Use correct bit-depth for setting background
8267 color.
8268
82692008-05-08 Eli Zaretskii <eliz@gnu.org>
8270
8271 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
8272 epa-hook.elc.
8273
82742008-05-08 Juanma Barranquero <lekktu@gmail.com>
8275
8276 * font.c (Ffont_match_p): Don't use `iff' in docstring.
8277
82782008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
8279
8280 * macfns.c (Fx_create_frame): Make a copy of frame parameters
8281 because the original parameters are in pure storage now.
8282 (mac_window): Remove unused params. Update callers.
8283
82842008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
8285
8286 * lread.c (substitute_object_recurse): Use lower-level primitives.
8287 Don't signal errors when traversing sub-char-tables.
8288 Don't loop over all the possible characters when traversing char-tables.
8289
8290 * print.c (print_preprocess): Add sub-char-tables to the print-table,
8291 just like we do in print.c.
8292
82932008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
8294
8295 * minibuf.c (Ftry_completion): Remove code left over from when we used
8296 scmp instead of Fcompare_strings.
8297
82982008-05-04 Juanma Barranquero <lekktu@gmail.com>
8299
8300 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
8301
83022008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8303
8304 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
8305 Create bitmap context in native byte order.
8306
8307 * macterm.c (XDrawLine)
8308 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
8309 context in native byte order.
8310
83112008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8312
8313 * config.in: Regenerate.
8314
8315 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
8316 New definitions for Image I/O support.
8317 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
8318 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
8319 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
8320 (mac_data_provider_release_data, image_load_image_io)
8321 [USE_MAC_IMAGE_IO]: New functions.
8322 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
8323 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
8324 (init_image_func_pointer) [MAC_OSX]: Remove function.
8325 (image_load_quartz2d) [MAC_OSX]: Check availability of
8326 CGImageCreateWithPNGDataProvider at compile time.
8327 Use lowercase `false' for boolean constant.
8328 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
8329 Use image_load_image_io.
8330 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
8331 Don't check MyCGImageCreateWithPNGDataProvider.
8332 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
8333 Don't call init_image_func_pointer.
8334
8335 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
8336
8337 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
8338 Make variable non-static.
8339 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
8340 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
8341
8342 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
8343 (RED_FROM_ULONG): Mask off higher bits.
8344 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
8345
8346 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
8347 Include AvailabilityMacros.h.
8348 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
8349 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
8350
83512008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
8352
8353 * chartab.c (Fset_char_table_range): If range is t, really set all
8354 chars to that value.
8355
83562008-05-03 Eli Zaretskii <eliz@gnu.org>
8357
8358 * dired.c (Ffile_attributes): Don't allow the device number become
8359 negative.
8360
83612008-05-02 Daiki Ueno <ueno@unixuser.org>
8362
8363 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
8364
83652008-05-02 Juri Linkov <juri@jurta.org>
8366
8367 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
8368 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
8369 DEFAULT argument as a list of default values in docstrings.
8370
83712008-05-01 Chong Yidong <cyd@stupidchicken.com>
8372
8373 * puresize.h (BASE_PURESIZE): Increase to 1210000.
8374
83752008-05-01 Martin Rudalics <rudalics@gmx.at>
8376
8377 * dispnew.c (change_frame_size_1): Preserve small windows when
8378 shrinking frames by calling set_window_height|width with third
8379 arg 2.
8380
8381 * window.h (struct window): Replace field too_small_ok by field
8382 resize_proportionally.
8383
8384 * window.c (make_window): Initialize resize_proportionally.
8385 (enlarge_window): Temporarily set resize_proportionally to make
8386 sure that shrink_windows does scale the window proportionally.
8387 (shrink_windows): When window has resize_proportionally set try
8388 to shrink it proportionally by stealing from other windows.
8389 (struct saved_window, Fset_window_configuration)
8390 (compare_window_configurations): Handle resize_proportionally.
8391 (WINDOW_TOTAL_SIZE): New macro.
8392 (window_min_size, shrink_windows, size_window): Use it.
8393 (check_min_window_sizes): Remove. Invalid values of
8394 window-min-height|width are handled by window_min_size_2 now.
8395 (size_window, Fsplit_window, enlarge_window)
8396 (adjust_window_trailing_edge, grow_mini_window): Don't call
8397 check_min_window_sizes.
8398 (window_min_size_2, window_min_size_1, window_min_size):
8399 New argument safe_p for retrieving "safe" minimum sizes.
8400 (Fdisplay_buffer, Fsplit_window, enlarge_window)
8401 (adjust_window_trailing_edge, grow_mini_window):
8402 Adjust arguments of window_min_size... functions.
8403 (shrink_windows): Argument min_size removed. New argument
8404 safe_p allows shrinking windows to their safe minimum sizes.
8405 Calculate minimum size and decide whether a window shall be
8406 deleted for each window individually.
8407 (size_window): When nodelete_p equals 2, tell shrink_windows to
8408 delete windows only if their new minimum size is no more safe.
8409 (shrink_window_lowest_first): Call window_min_size_1 to make
8410 sure to preserve modeline of bottom-most window when resizing
8411 the minibuffer.
8412 (Fset_window_configuration, Fcurrent_window_configuration)
8413 (compare_window_configurations): Do not handle
8414 window-min-height|width any more.
8415 (syms_of_window): Clarify window-min-height|width doc-strings.
8416
84172008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
8418
8419 * dired.c (file_name_completion): Fix up the encoding/decoding issue
8420 some more. Copy some of the code from Ftry_completions.
8421 Remove special case code that dates back to initial revision when the
8422 slash was only added when necessary and that can't trigger nowadays.
8423
84242008-04-27 Kenichi Handa <handa@m17n.org>
8425
8426 * font.c (font_prop_validate): Signal `error' instead of `font'.
8427
84282008-04-29 Jason Rumney <jasonr@gnu.org>
8429
8430 * w32fns.c (Fw32_battery_status): New defun.
8431 (syms_of_w32fns): Defsubr it.
8432
84332008-04-28 Andreas Schwab <schwab@suse.de>
8434
8435 * dired.c (file_name_completion): Fix another mixing of encoded
8436 and decoded names.
8437
84382008-04-28 Juanma Barranquero <lekktu@gmail.com>
8439
8440 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
8441
84422008-04-27 Juanma Barranquero <lekktu@gmail.com>
8443
8444 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
8445
84462008-04-27 Andreas Schwab <schwab@suse.de>
8447
8448 * dired.c (file_name_completion): Fix inappropriate mixing of
8449 encoded and decoded names.
8450
8451 * xterm.c (XTread_socket): Fix use of uninitialized variable.
8452
8453 * puresize.h (BASE_PURESIZE): Increase to 1200000.
8454
84552008-04-26 Eli Zaretskii <eliz@gnu.org>
8456
8457 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
8458 2008-03-31, it's not needed anymore with `struct stat' definition
8459 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
8460 for the same reasons.
8461
84622008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
8463
8464 * m/sparc.h: Additional redefinitions for GNU/Linux.
8465
84662008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8467
8468 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
8469 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
8470 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
8471 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
8472 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
8473 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
8474 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
8475 Likewise.
8476
8477 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
8478 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
8479 (mac_ax_number_of_characters): Add externs.
8480 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
8481 [USE_MAC_TSM]: Likewise.
8482 (mac_handle_text_input_event) [MAC_OSX]:
8483 Handle kEventTextInputOffsetToPos for no active input area case.
8484 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
8485 (mac_handle_document_access_event)
8486 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
8487 (install_application_handler) [MAC_OSX]: Register handlers for
8488 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
8489 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
8490 Register mac_handle_document_access_event.
8491
8492 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
8493 Make functions non-static.
8494
84952008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
8496
8497 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
8498 (read_file_name_completion_ignore_case, insert_default_directory)
8499 (Qdefault_directory): Move to minibuffer.el.
8500 (Fread_file_name): Call the new `read-file-name' instead.
8501
85022008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8503
8504 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
8505 Make function non-static.
8506 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
8507 Remove function.
8508 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
8509 Move to mactoolbox.c.
8510 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
8511
8512 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
8513 (mac_rect_make): New macro.
8514
8515 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
8516 instead of float.
8517 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
8518 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
8519 (XSetBackground) [USE_CG_DRAWING]: Likewise.
8520 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
8521 CGRectMake.
8522 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
8523 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
8524 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
8525 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
8526 instead of WindowRef in argument type.
8527 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
8528 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
8529 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
8530 instead of DISPLAY. All uses changed.
8531 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
8532 (x_calc_absolute_position): Simplify so as not to use
8533 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
8534
8535 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
8536 instead of WindowRef in argument type.
8537 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
8538 [TARGET_API_MAC_CARBON]: Remove externs.
8539 (create_apple_event, mac_event_parameters_to_lisp)
8540 [TARGET_API_MAC_CARBON]: Add externs.
8541
8542 * mactoolbox.c (Vmac_ts_script_language_on_focus)
8543 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
8544 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
8545 is clicked.
8546 (x_activate_menubar): Remove extern for saved_menu_event_location.
8547 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
8548 Move from mac.c.
8549
85502008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8551
8552 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
8553 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
8554
85552008-04-23 Jason Rumney <jasonr@gnu.org>
8556
8557 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
8558 attributes only for local files.
8559
8560 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
8561 default to Qlocal.
8562
85632008-04-22 Juri Linkov <juri@jurta.org>
8564
8565 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
8566 read-buffer-to-switch instead of using the letter "B".
8567
85682008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
8569
8570 * fileio.c (Qdefault_directory): New variable.
8571 (Fread_file_name): Use it to pass `dir' to the completion functions.
8572
85732008-04-20 Chong Yidong <cyd@stupidchicken.com>
8574
8575 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
8576
85772008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
8578
8579 * keyboard.c (Vpre_help_message): Remove.
8580 (show_help_echo): Remove default C code.
8581
8582 * dired.c (directory_files_internal, file_name_completion):
8583 Only call ENCODE_FILE if the string is indeed decoded.
8584
85852008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
8586
8587 * Makefile.in (TOOLKIT_DEFINES): Remove.
8588 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
8589
85902008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8591
8592 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
8593 (mactoolbox.o): New target.
8594
8595 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
8596 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
8597
8598 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
8599 Use mac_set_frame_window_background instead of XSetWindowBackground.
8600 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
8601 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
8602 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
8603 instead of SetWindowTitleWithCFString.
8604 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
8605 Move function to mactoolbox.c.
8606 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
8607 Use mac_set_window_modified instead of SetWindowModified.
8608 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
8609 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
8610 (Fx_focus_frame): Use mac_front_non_floating_window instead of
8611 FrontNonFloatingWindow. Use mac_activate_window instead of
8612 ActivateWindow. Use mac_active_non_floating_window instead of
8613 ActiveNonFloatingWindow.
8614 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
8615 Use mac_show_hourglass and mac_hide_hourglass.
8616 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
8617 instead of GetGlobalMouse.
8618 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
8619 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
8620 Use mac_bring_window_to_front instead of BringToFront.
8621 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
8622 mactoolbox.c.
8623 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
8624 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
8625 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
8626 mactoolbox.c.
8627
8628 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
8629 (XtPointer): Move typedef from macmenu.c.
8630 (enum button_type): Move enum from macmenu.c.
8631 (widget_value): Move typedef from macmenu.c.
8632 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
8633 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
8634 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
8635 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
8636 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
8637 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
8638 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
8639 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
8640 (Selection): Move typedef from macselect.c.
8641 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
8642 macterm.c.
8643 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
8644 (mac_is_window_collapsed, mac_bring_window_to_front)
8645 (mac_send_window_behind, mac_hide_window, mac_show_window)
8646 (mac_collapse_window, mac_front_non_floating_window)
8647 (mac_active_non_floating_window, mac_activate_window)
8648 (mac_move_window_structure, mac_move_window, mac_size_window)
8649 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
8650
8651 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
8652 (enum mac_menu_kind): Move enum to mactoolbox.c.
8653 (min_menu_id): Move variable to mactoolbox.c.
8654 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
8655 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
8656 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
8657 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
8658 [TARGET_API_MAC_CARBON]: Likewise.
8659 (XtPointer): Move typedef to macgui.h.
8660 (enum button_type): Move enum to macgui.h.
8661 (widget_value): Move typedef to macgui.h.
8662 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
8663 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
8664 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
8665 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
8666 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
8667 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
8668 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
8669 (popup_activated_flag): Make variable non-static.
8670 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
8671 (add_menu_item, fill_menu, dispose_menus):
8672 Move functions to mactoolbox.c.
8673 (restore_show_help_function, menu_target_item_handler)
8674 (install_menu_target_item_handler, mac_handle_dialog_event)
8675 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
8676 [TARGET_API_MAC_CARBON]: Likewise.
8677 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
8678 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
8679 (find_and_call_menu_selection, name_is_separator): Make function
8680 non-static.
8681 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
8682 to mactoolbox.c.
8683 (set_frame_menubar): Don't call install_menu_quit_handler.
8684 (menu_item_selection): New variable.
8685 (mac_menu_show): Use create_and_show_popup_menu.
8686 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
8687 selection but set variable menu_item_selection. All uses changed.
8688 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
8689 Call install_menu_quit_handler. Move to mactoolbox.c.
8690
8691 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
8692 (Selection): Move typedef to macgui.h.
8693 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
8694 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
8695 Make variables non-static.
8696 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
8697 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
8698 Make functions non-static.
8699 (Vmac_service_selection) [MAC_OSX]: Likewise.
8700 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
8701 (mac_valid_selection_target_p, mac_clear_selection)
8702 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
8703 (mac_put_selection_value, mac_selection_has_target_p)
8704 (mac_get_selection_value, mac_get_selection_target_list)
8705 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
8706 Move functions to mactoolbox.c.
8707 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
8708 Likewise.
8709 (copy_scrap_flavor_data, mac_handle_service_event)
8710 (install_service_handler) [MAC_OSX]: Likewise.
8711 (syms_of_macselect) <Vmac_dnd_known_types>:
8712 Use mac_dnd_default_known_types.
8713
8714 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
8715 Move to mactoolbox.c.
8716 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
8717 (Fx_selection_owner_p): Add EXFUN.
8718 (install_window_handler, remove_window_handler, XSetWindowBackground):
8719 Remove externs.
8720 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
8721 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
8722 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
8723 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
8724 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
8725 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
8726 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
8727 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
8728 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
8729 (create_and_show_popup_menu, mac_get_selection_from_symbol)
8730 (mac_valid_selection_target_p, mac_clear_selection)
8731 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
8732 (mac_put_selection_value, mac_selection_has_target_p)
8733 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
8734 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
8735 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
8736 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
8737 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
8738 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
8739 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
8740 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
8741 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
8742
8743 * mactoolbox.c: New file.
8744
87452008-04-18 Jason Rumney <jasonr@gnu.org>
8746
8747 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
8748
87492008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
8750
8751 * character.c (Fmultibyte_char_to_unibyte):
8752 Return latin1 chars unchanged.
8753
8754 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
8755 relocated if it points to `name'.
8756
87572008-04-17 Kenichi Handa <handa@m17n.org>
8758
8759 * data.c (Faset): Allow setting a multibyte character in an
8760 ASCII-only unibyte string.
8761
8762 * lisp.h (STRING_SET_MULTIBYTE): New macro.
8763
87642008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
8765
8766 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
8767 done in config.h.
8768
87692008-04-16 Juanma Barranquero <lekktu@gmail.com>
8770
8771 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
8772 (Fchar_direction): Add usage in the docstring.
8773
87742008-04-15 Chong Yidong <cyd@stupidchicken.com>
8775
8776 * keyboard.c (read_key_sequence): Remove always-true checks.
8777
87782008-04-14 Jason Rumney <jasonr@gnu.org>
8779
8780 * w32font.c (w32font_open_internal): Set max_bounds.descent in
8781 compatibility struct, for better underline positioning.
8782
87832008-04-13 David Hansen <david.hansen@gmx.net>
8784
8785 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
8786 string.
8787
87882008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
8789
8790 * m/hp800.h (XUINT, XSET): Remove.
8791
87922008-04-12 Juanma Barranquero <lekktu@gmail.com>
8793
8794 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
8795 previous change.
8796
87972008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
8798
8799 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
8800 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
8801
88022008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
8803
8804 * keymap.h (map_keymap_canonical): Declare.
8805 * xmenu.c (single_keymap_panes): Use it.
8806
88072008-04-11 Glenn Morris <rgm@gnu.org>
8808
8809 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
8810 set the target's value to that of the alias.
8811
88122008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
8813
8814 * term.c (set_tty_color_mode): Left over typo.
8815
88162008-04-10 Michael Albinus <michael.albinus@gmx.de>
8817
8818 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
8819 only after check for file name handler functions. Signal, when
8820 native functionality is not supported.
8821 (syms_of_fileio): Declare it unconditionally.
8822
88232008-04-10 Jason Rumney <jasonr@gnu.org>
8824
8825 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
8826 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
8827
8828 * w32.c (logon_network_drive): Also logon to remote drives that
8829 are mapped to drive letters.
8830
88312008-04-10 Glenn Morris <rgm@gnu.org>
8832
8833 * xdisp.c (truncate-partial-width-windows): Doc fix.
8834
88352008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
8836
8837 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
8838 Move functions to minibuffer.el.
8839 (syms_of_fileio): Don't declare them.
8840
88412008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
8842
8843 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
8844 (syms_of_minibuf): Remove its initialization.
8845
8846 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
8847
88482008-04-09 Juanma Barranquero <lekktu@gmail.com>
8849
8850 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
8851
88522008-04-09 Jason Rumney <jasonr@gnu.org>
8853
8854 * makefile.w32-in (distclean): Delete makefile too.
8855 (maintainer-clean): New target.
8856
8857 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
8858
8859 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
8860 for new font backend and composite cases.
8861
88622008-04-09 Jan Djärv <jan.h.d@swipnet.se>
8863
8864 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
8865 Most of the code moved to run_timers.
8866 (do_pending_atimers): Call run_timers.
8867 (run_timers): New function.
8868
8869 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
8870 run atimers.
8871
8872 * process.c (wait_reading_process_output): The same as above.
8873
88742008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
8875
8876 * minibuf.c (last_exact_completion): Remove variable.
8877 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
8878 (complete_and_exit_1, complete_and_exit_2)
8879 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
8880 (Fdisplay_completion_list, display_completion_list_1)
8881 (Fminibuffer_completion_help, Fself_insert_and_exit)
8882 (Fexit_minibuffer, Fminibuffer_message): Move functions to
8883 minibuffer.el.
8884 (syms_of_minibuf): Remove corresponding initializations.
8885
8886 * keyboard.c (Qdeactivate_mark): New var.
8887 (command_loop_1): Use it to call `deactivate-mark'.
8888 (syms_of_keyboard): Initialize it.
8889
8890 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
8891 to another frame.
8892 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
8893 Don't call set_tty_color_mode.
8894 (store_frame_param): Reset previous_frame rather than call
8895 set_tty_color_mode.
8896 * term.c (set_tty_color_mode): Rewrite.
8897 * dispextern.h (set_tty_color_mode): New type.
8898 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
8899
89002008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
8901
8902 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
8903 for generic chars, which do not exist any more in emacs-unicode.
8904
89052008-04-08 Michael Albinus <michael.albinus@gmx.de>
8906
8907 * coding.c (detect_coding_emacs_mule)
8908 (Ffind_operation_coding_system): Fix typo.
8909
89102008-04-08 Jason Rumney <jasonr@gnu.org>
8911
8912 * w32uniscribe.c (SNAME): Extract only symbol name.
8913
8914 * w32font.h (struct w32_metric_cache): New struct.
8915 (w32font_info): Use it.
8916 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
8917 (CACHE_BLOCKSIZE): New constants.
8918
8919 * w32font.c (Qja, Qko, Qzh): New symbols.
8920 (syms_of_w32font): Initialise them.
8921 (font_matches_spec): Use them to filter by language.
8922 (recompute_cached_metrics): Remove function.
8923 (compute_metrics, clear_cached_metrics): New functions.
8924 (w32font_encode_char): Use them to manage metric cache.
8925 (w32font_text_extents): Cache metrics for all glyphs on demand.
8926 Delay converting glyph indices to WORD until needed.
8927 (w32font_open_internal): Initialize metric cache to empty.
8928 (registry_to_w32_charset): Charset should always be a symbol.
8929 (fill_in_logfont, list_all_matching_fonts): Family should
8930 always be a symbol.
8931
89322008-04-06 Jason Rumney <jasonr@gnu.org>
8933
8934 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
8935 Give up if glyph indices not supported. Use uniscribe obtained
8936 ABC widths for individual metrics. Map glyph clusters back to
8937 characters using fClusterStart flag. Return number of glyphs
8938 produced, not chars processed.
8939 (uniscribe_shape): Map char at FROM to current glyph.
8940
89412008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8942
8943 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
8944 Use SetMenuItemHierarchicalMenu.
8945
89462008-04-05 Jason Rumney <jasonr@gnu.org>
8947
8948 * image.c (pbm_load): Allow color values up to 65535.
8949 Throw an error if max_color_idx is outside the supported range.
8950 Report an error when image size is invalid.
8951 Read two bytes at a time when raw images have max_color_idx above 255.
8952
89532008-04-05 Eli Zaretskii <eliz@gnu.org>
8954
8955 * w32.c (readdir): If FindFirstFile/FindNextFile return in
8956 cFileName a file name that includes `?' characters, use the 8+3
8957 alias in cAlternateFileName instead.
8958
89592008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
8960
8961 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
8962 append "CCL: Quitted" when the CCL program is quitted.
8963 (setup_ccl_program): Initialize ccl->quit_silently to zero.
8964
8965 * ccl.h (struct ccl_program): New member quit_silently.
8966
89672008-04-05 Chong Yidong <cyd@stupidchicken.com>
8968
8969 * search.c (compile_pattern_1): Treat non-nil and non-string of
8970 search-spaces-regexp as nil.
8971
8972 * minibuf.c (Fassoc_string): Tweak docstring.
8973
89742008-04-05 Eli Zaretskii <eliz@gnu.org>
8975
8976 * dired.c (Ffile_attributes): Support inode numbers wider than 32
8977 bits. Remove ugly WINDOWSNT-specific kludge introduced on
8978 2008-03-14 to force inode be positive.
8979
8980 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
8981 _S_* ones, since we now use our own sys/stat.h.
8982 (stat, fstat): Don't mangle the inode number.
8983 (init_user_info): Don't restrict UID and GID to 0-60000 range.
8984
89852008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
8986
8987 * frame.h (struct frame): Give one more bit to `visible' since we use
8988 values larger than 1 to indicate obscured frames on ttys.
8989
8990 * keymap.c (Qkeymap_canonicalize): New var.
8991 (Fmap_keymap_internal): New fun.
8992 (describe_map): Use keymap-canonicalize.
8993
8994 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
8995 (Fundo_boundary): Set them.
8996 (syms_of_undo): Initialize them.
8997 (record_point): Use them instead of last_point_position*.
8998 (last_undo_buffer): Change type.
8999
90002008-04-04 Jason Rumney <jasonr@gnu.org>
9001
9002 * w32font.c (w32font_text_extents): Use font's ascent and descent.
9003 (recompute_cached_metrics): Don't set ascent and descent per char.
9004
9005 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
9006 (uniscribe_check_otf): Add GC protection before consing.
9007 Rearrange loop for counting features.
9008
90092008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
9010
9011 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
9012 buffer with byte-size of source buffer.
9013
90142008-04-03 Chong Yidong <cyd@stupidchicken.com>
9015
9016 * callint.c (Fcall_interactively): Handle temporary region even
9017 when shift-select-mode is off.
9018
90192008-04-03 Jason Rumney <jasonr@gnu.org>
9020
9021 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
9022
90232008-04-03 Kenichi Handa <handa@m17n.org>
9024
9025 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
9026 (CATEGORY_MASK_UTF_16): Likewise.
9027 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
9028 binary file.
9029 (detect_coding): Add null-byte detection for a binary file.
9030 (detect_coding_system): Likewise.
9031
90322008-04-03 Jason Rumney <jasonr@gnu.org>
9033
9034 * w32uniscribe.c: New file.
9035
9036 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
9037
9038 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
9039
9040 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
9041 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
9042 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
9043 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
9044 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
9045 (Qphonetic): New symbols.
9046 (syms_of_w32font): Initialize them.
9047 (font_supported_scripts): Use them.
9048 (w32font_list_family): List all charsets.
9049 (w32font_text_extents, recompute_cached_metrics): Fix metric
9050 calculations.
9051 (w32_enumfont_pattern_entity): Make full_type a DWORD.
9052 Give opentype fonts their own format.
9053 (font_matches_spec): New arguments backend and logfont.
9054 Handle :otf spec for uniscribe backend.
9055 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
9056 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
9057
9058 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
9059 font backend.
9060 (globals_of_w32fns): Initialize uniscribe font backend.
9061
9062 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
9063 dependencies.
9064 (w32uniscribe.$(O)): New file to build.
9065 (FONT_OBJ): Include w32uniscribe.$(O).
9066 (LIBS): Add uniscribe libraries.
9067
9068 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
9069
90702008-04-02 Chong Yidong <cyd@stupidchicken.com>
9071
9072 * callint.c (Vshift_select_mode): New var.
9073 (Finteractive): Document new ^ spec.
9074 (Fcall_interactively): Call handle-shift-selection if the ^ spec
9075 is present.
9076
9077 * keyboard.c (Vthis_command_keys_shift_translated): New var.
9078 (command_loop_1): Avoid running the direct display versions of
9079 forward-char and backward-char if shift-selection may occur.
9080 (read_key_sequence): Set Vthis_command_keys_shift_translated if
9081 shift-translation takes place.
9082
9083 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
9084 avoid clobbering by define-minor-mode.
9085
9086 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
9087 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
9088
9089 * syntax.c (Fforward_word): Add ^ interactive spec.
9090
9091 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
9092 (Fscroll_right): Add ^ interactive spec.
9093
90942008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
9095
9096 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
9097
9098 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
9099
9100 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
9101
91022008-03-31 Juri Linkov <juri@jurta.org>
9103
9104 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
9105
91062008-03-30 Jan Djärv <jan.h.d@swipnet.se>
9107
9108 * gtkutil.c (xg_set_geometry): Fix indentation.
9109 (xg_resize_outer_widget): Remove.
9110 (x_wm_size_hint_off): Fix indentation.
9111 (xg_frame_set_char_size): Call flush_and_sync after
9112 gtk_window_resize.
9113 (x_wm_set_size_hint): Pass NULL as geometry window to
9114 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
9115 Add menu bar and tool bar height to base height.
9116 (xg_update_frame_menubar, free_frame_menubar)
9117 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
9118 (update_frame_tool_bar, free_frame_tool_bar):
9119 Change xg_resize_outer_widget to xg_frame_set_char_size.
9120
91212008-03-30 Michael Albinus <michael.albinus@gmx.de>
9122
9123 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
9124 (Fdbus_call_method): New parameter TIMEOUT.
9125 (dbus-send-signal): Optimize UNGCPRO call.
9126
91272008-03-29 Juri Linkov <juri@jurta.org>
9128
9129 * window.c (Fdisplay_buffer): Move call to
9130 Vsplit_window_preferred_function out of conditions that check
9131 if window is eligible for vertical splitting.
9132 When Vsplit_window_preferred_function is non-nil, call it and use
9133 its non-nil return value as window. Otherwise, continue doing
9134 vertical splitting using Fsplit_window with arg horflag=nil.
9135 (syms_of_window) <Vsplit_window_preferred_function>: Change the
9136 default value from `split-window' to nil.
9137
91382008-03-29 Juri Linkov <juri@jurta.org>
9139
9140 * callint.c (Fcall_interactively): Revert 2008-03-16 change
9141 for interactive code letters 'b' and 'B'.
9142
91432008-03-29 Eli Zaretskii <eliz@gnu.org>
9144
9145 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
9146 multibyte string.
9147
91482008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
9149
9150 * keyboard.c (pending_funcalls): New var.
9151 (timer_check): Run it.
9152 (syms_of_keyboard): Initialize it.
9153 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
9154 (Vdelete_terminal_functions): New vars.
9155 (syms_of_terminal): Initialize them.
9156 (Fdelete_terminal): Run delete-terminal-functions.
9157 * xdisp.c (safe_eval): Rewrite.
9158 (safe_call2): New fun.
9159 * frame.c (Qdelete_frame_functions): New var.
9160 (syms_of_frame): Initialize it.
9161 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
9162 * lisp.h (safe_call2, pending_funcalls): Declare.
9163
91642008-03-28 Andreas Schwab <schwab@suse.de>
9165
9166 * indent.c (Fmove_to_column): Move declaration before statements.
9167
91682008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
9169
9170 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
9171 (struct frame): Use bit fields for boolean vars.
9172
9173 * process.c (server_accept_connection): Simplify naming.
9174 (emacs_get_tty_pgrp): Use SDATA.
9175
9176 * coding.c (decode_coding_object): Fix last change.
9177
91782008-03-27 Jason Rumney <jasonr@gnu.org>
9179
9180 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
9181
91822008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
9183
9184 * charset.c (Fdefine_charset_internal): Change the way of
9185 registering charsets in Vcharset_order_list.
9186 (syms_of_charset): Make the charset `eight-bit' supplementary.
9187
91882008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
9189
9190 * regex.c (EXTEND_BUFFER): Change order of pointer addition
9191 operations, to avoid having the difference between pointers
9192 overflow.
9193
91942008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
9195
9196 * indent.c (check_display_width): New fun.
9197 (scan_for_column): Use it.
9198
9199 * data.c (syms_of_data): Mark most-positive-fixnum and
9200 most-negative-fixnum as constants.
9201
9202 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
9203
9204 * indent.c (scan_for_column): Extract from current_column_1.
9205 Merge with the same code from Fmove_to_column.
9206 (current_column_1, Fmove_to_column): Use it.
9207
92082008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
9209
9210 * keymap.c (map_keymap_internal): New fun.
9211 (map_keymap): Use it.
9212 (Fmap_keymap_internal): New fun.
9213 (Fmap_keymap): Remove left-out test from before make_save_value.
9214
9215 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
9216
9217 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
9218 Use XCAR/XCDR.
9219
9220 * process.h (struct Lisp_Process): Remove filter_multibyte.
9221 * process.c (QCfilter_multibyte): Remove.
9222 (setup_process_coding_systems): Don't use filter_multibyte.
9223 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
9224 (read_process_output): Don't adjust multibyteness to filter_multibyte.
9225 (Fset_process_filter_multibyte): Change the coding-system to
9226 approximate the previous behavior.
9227 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
9228 coding-system.
9229
9230 * coding.c (decode_coding_object): When not decoding into a buffer,
9231 obey the coding system's preference of (uni|multi)byte.
9232
92332008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
9234
9235 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
9236 every char is changed and has a different byte-length.
9237 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
9238 Fix int -> EMACS_INT.
9239
92402008-03-23 David Hansen <david.hansen@gmx.net>
9241
9242 * dbusbind.c (xd_read_message): Remove extra copying of message
9243 strings. Check for NULL `interface' or `member'.
9244
92452008-03-22 Eli Zaretskii <eliz@gnu.org>
9246
9247 * w32.c (readdir): If FindFirstFile/FindNextFile return in
9248 cFileName a file name that includes `?' characters, use the 8+3
9249 alias in cAlternateFileName instead.
9250
92512008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
9252
9253 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
9254
92552008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
9256
9257 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
9258 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
9259 work on current_buffer only instead (that was already the case
9260 for some of the code anyway).
9261 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
9262 (temp_set_point, temp_set_point_both): Use EMACS_INT.
9263 (SET_PT, SET_PT_BOTH): Adjust.
9264 * intervals.h (set_point, temp_set_point, set_point_both)
9265 (temp_set_point_both): Remove redundant declarations.
9266
92672008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
9268
9269 * fileio.c (Finsert_file_contents):
9270 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
9271 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
9272 when buffer != current_buffer anyway.
9273
92742008-03-20 Andreas Schwab <schwab@suse.de>
9275
9276 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
9277 as default.
9278
92792008-03-19 Jason Rumney <jasonr@gnu.org>
9280
9281 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
9282 (syms_of_w32fns): Initialize them.
9283 (HOURGLASS_ID): New constant.
9284 (x_window_to_frame): Don't check hourglass_window.
9285 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
9286 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
9287 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
9288 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
9289 Only change the cursor if hourglass is not active.
9290 (Fx_create_frame): Initialize frame's current_cursor.
9291 (hourglass_atimer): Remove.
9292 (hourglass_started): New function.
9293 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
9294 (show_hourglass): Adapt to w32, changing argument to frame.
9295
9296 * w32term.h (struct w32_output): Remove hourglass_window.
9297 Add current_cursor.
9298
9299 * eval.c (call_debugger, Fsignal):
9300 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
9301 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
9302 (Fexecute_extended_command, cancel_hourglass_unwind):
9303 * minibuf.c (read_minibuf):
9304 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
9305
93062008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
9307
9308 * window.c (run_funs): New fun.
9309 (run_window_configuration_change_hook): Use it to run the buffer-local
9310 and the global part of the hook.
9311
9312 * xdisp.c (format_mode_line_unwind_data): Add window argument.
9313 (unwind_format_mode_line): Restore selected window.
9314 (x_consider_frame_title, Fformat_mode_line): Set selected window.
9315
93162008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
9317
9318 * editfns.c (Fchar_equal): Check they are valid characters.
9319
9320 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
9321
93222008-03-17 Andreas Schwab <schwab@suse.de>
9323
9324 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
9325 against a charset.
9326
9327 * lisp.h (Fbuffer_list): Declare.
9328
93292008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 9330
aac0c6e3
MR
9331 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
9332 handlebox_widget is != 0.
9333
93342008-03-16 Juri Linkov <juri@jurta.org>
9335
9336 * callint.c (Fcall_interactively): For interactive code letters
9337 'b' and 'B' put the buffer list into the list of default "future"
9338 values of the minibuffer.
9339
93402008-03-16 Andreas Schwab <schwab@suse.de>
9341
9342 * keyboard.c (read_key_sequence): Fix downcasing of letters with
9343 modifiers.
9344
9345 * regex.c (re_match_2_internal): Correct matching of a charset
9346 against latin-1 characters.
9347
93482008-03-16 Kenichi Handa <handa@m17n.org>
9349
9350 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
9351 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
9352 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
9353 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
9354 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
9355 CHAR_STRING_ADVANCE.
9356 (produce_chars): Fix for the case that the source and the
9357 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
9358 instead of CHAR_STRING_ADVANCE.
9359 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
9360 STRING_CHAR_ADVANCE.
9361
93622008-03-15 Andreas Schwab <schwab@suse.de>
9363
9364 * regex.c (re_match_2_internal): Correct matching of eight bit
9365 characters in unibyte strings.
9366
93672008-03-15 Martin Rudalics <rudalics@gmx.at>
9368
9369 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
9370 at end of range when it coincides with the end of the buffer.
9371
93722008-03-14 Eli Zaretskii <eliz@gnu.org>
9373
9374 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
9375
9376 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
9377
93782008-03-14 Jason Rumney <jasonr@gnu.org>
9379
9380 * editfns.c (initial_tz): New variable.
9381 (syms_of_editfns): Initialize it.
9382 (Fset_time_zone_rule): Set it when first called.
9383 Use it when TZSTRING is nil.
9384
9385 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
9386 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
9387 (monitor_from_point_fn, get_monitor_info_fn): New globals.
9388 (globals_of_w32fns): Initialize them.
9389 (compute_tip_xy): Use them to position tooltips.
9390
93912008-03-14 Glenn Morris <rgm@gnu.org>
9392
9393 * emacs.c (main): Revert previous change.
9394 (standard_args): Revert -internal-script back to -scriptload,
9395 and remove the long-option form.
9396
93972008-03-13 Glenn Morris <rgm@gnu.org>
9398
9399 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
9400 Remove option -enable-font-backend.
9401
94022008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
9403
9404 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
9405
94062008-03-11 Jan Djärv <jan.h.d@swipnet.se>
9407
9408 * xterm.c (x_connection_closed): For GTK: If this is the last
9409 terminal just exit without closing the display.
9410
94112008-03-11 Jason Rumney <jasonr@gnu.org>
9412
9413 * w32font.c (w32font_full_name): Use floor to round.
9414
f0131492 94152008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
9416
9417 * sound.c (alsa_configure): Declare vol at beginning of block.
9418
9419 * fontset.c (Ffontset_info): Remove extra semicolon.
9420
94212008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
9422
9423 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
9424 size of resulting string.
9425
94262008-03-10 Jason Rumney <jasonr@gnu.org>
9427
9428 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
9429
94302008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9431
9432 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
9433 Don't pretend as if characters with display property haven't been
9434 consumed for string-replacing-string case.
9435
94362008-03-08 Kim F. Storm <storm@cua.dk>
9437
9438 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
9439 (get_next_display_element, next_element_from_string)
9440 (next_element_from_ellipsis, next_element_from_buffer): Use it.
9441
94422008-03-08 Andreas Schwab <schwab@suse.de>
9443
9444 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
9445
94462008-03-06 Jason Rumney <jasonr@gnu.org>
9447
9448 * w32font.c (w32_registry): Take font_type argument. Use ANSI
9449 when charset not specified. Only translate ANSI to unicode when
9450 font_type is truetype.
9451 (w32font_coverage_ok): New function.
9452 (add_font_entity_to_list): Use it to filter unsuitable fonts.
9453
94542008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
9455
9456 * lread.c (Fread_char): Resolve modifiers.
9457 (Fread_char_exclusive): Likewise.
9458
9459 * character.c (char_resolve_modifier_mask): New function.
9460 (char_string): Use char_resolve_modifier_mask.
9461 (Fchar_resolve_modifiers): New function.
9462 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
9463 function.
9464
94652008-03-04 Jason Rumney <jasonr@gnu.org>
9466
9467 * makefile.w32-in: Always include w32font.c in the build.
9468 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
9469
94702008-03-04 Andreas Schwab <schwab@suse.de>
9471
9472 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
9473 (versionclean): Likewise.
9474
94752008-03-04 Juanma Barranquero <lekktu@gmail.com>
9476
9477 * .cvsignore: Add oo.
9478
94792008-03-03 Andreas Schwab <schwab@suse.de>
9480
9481 * coding.c (decode_coding_object): Inhibit gap shrinking while
9482 decoding in place.
9483
94842008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
9485
9486 * w32term.c: Remove unused include "gnu.h".
9487 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
9488
9489 * gnu.h: Rename to ...
9490 * emacs-icon.h: ... this.
9491 * xterm.c: Use emacs-icon.h instead of gnu.h.
9492 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
9493
94942008-03-03 Juanma Barranquero <lekktu@gmail.com>
9495
9496 * w32font.c: Include math.h.
9497
94982008-03-03 Jason Rumney <jasonr@gnu.org>
9499
9500 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
9501 Compute options separately.
9502 (w32font_open_internal): Set glyph_idx before caching metrics.
9503
9504 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
9505 Define if system headers don't.
9506 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
9507 (w32font_encode_char): Don't declare here.
9508
9509 * w32font.c (Quniscribe, QCformat): New symbols.
9510 (syms_of_w32font): Define them.
9511 (w32font_has_char): Indicate uncertainty.
9512 (w32font_encode_char): Encode as glyph point. Make static.
9513 (recompute_cached_metrics): New function.
9514 (w32font_open_internal): Use it. Set font to use glyph points
9515 initially. Set format based on type of font.
9516 (w32font_text_extents, w32font_draw): Optionally use glyph points.
9517 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
9518 on it. Set format based on information available here.
9519 (add_font_entity_to_list): Identify backend based on opentype_only.
9520
95212008-03-02 Andreas Schwab <schwab@suse.de>
9522
9523 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
9524
9525 * coding.c (decode_coding_big5, produce_chars):
9526 Fix typos in last change.
9527
95282008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
9529
9530 * gnu.h: New icon.
9531
95322008-03-02 Kenichi Handa <handa@m17n.org>
9533
9534 * coding.c (decode_coding_utf_8): When eol-type of CODING is
9535 `dos', don't decode '\r' if that is the last in the source.
9536 (decode_coding_utf_16, decode_coding_emacs_mule)
9537 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
9538 (decode_coding_raw_text, decode_coding_charset): Likewise.
9539 (produce_chars): Don't decode EOL here. Use EMACS_INT.
9540
95412008-03-01 Jason Rumney <jasonr@gnu.org>
9542
9543 * w32font.c (w32font_full_name): Report point size for scalable fonts.
9544
95452008-03-01 Kim F. Storm <storm@cua.dk>
9546
9547 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
9548
95492008-03-01 Jason Rumney <jasonr@gnu.org>
9550
9551 * w32font.c (w32font_full_name): New function.
9552 (w32font_open_internal): Use it.
9553
95542008-03-01 Kim F. Storm <storm@cua.dk>
9555
9556 * dispnew.c (line_draw_cost): Fix invalid glyph check.
9557
95582008-03-01 Jason Rumney <jasonr@gnu.org>
9559
9560 * font.c (font_unparse_fcname): Increase len when style is a symbol.
9561
95622008-03-01 Jan Djärv <jan.h.d@swipnet.se>
9563
9564 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
9565 xg_frame_resized when the event is for the edit widget.
9566
9567 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
9568
9569 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
9570 set_char_size.
9571 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
9572 operations on widgets here. Just set frame size if needed.
9573 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
9574 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
9575 (x_wm_set_size_hint): Set size hints on the edit widget only, not
9576 the whole frame.
9577 (xg_create_tool_bar): Move attachment of the tool bar to
9578 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
9579 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
9580
95812008-03-01 Jason Rumney <jasonr@gnu.org>
9582
9583 * w32fns.c (w32_msg_pump): Disable debug code.
9584
95852008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9586
9587 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
9588
95892008-02-29 Chong Yidong <cyd@stupidchicken.com>
9590
9591 * xdisp.c (next_overlay_string): Don't set
9592 overlay_strings_at_end_processed_p if we're currently reading from
9593 a display string.
9594
95952008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
9596
9597 * xdisp.c (get_overlay_strings_1): Fix typo.
9598
95992008-02-29 Chong Yidong <cyd@stupidchicken.com>
9600
9601 * xdisp.c (get_overlay_strings_1): Add missing argument type.
9602
96032008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
9604
9605 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
9606
9607 * xdisp.c (display_mode_element): Cancel the previous change.
9608 (decode_mode_spec): Likewise.
9609 (handle_auto_composed_prop): Don't make composition if it->string
9610 is a string.
9611
96122008-02-27 Kim F. Storm <storm@cua.dk>
9613
9614 * lisp.h (GLYPH): Change type from int to struct with separate char
9615 and face_id members.
9616 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
9617 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
9618 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
9619 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
9620 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
9621 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
9622 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
9623 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
9624 handle new Lisp glyph code encoding, either an integer or a cons.
9625
9626 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
9627 (GLYPH_ALIAS): Delete.
9628 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
9629 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
9630 (GLYPH_FROM_CHAR): Replace macro by ...
9631 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
9632
9633 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
9634 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
9635 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
9636 (GLYPH_INVALID_P): New macro.
9637 (spec_glyph_lookup_face): Update prototype.
9638
9639 * dispnew.c (line_draw_cost): Adapt to new glyph type.
9640 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
9641 new glyph code encoding.
9642 (spec_glyph_lookup_face): No return value; update passed glyph instead.
9643 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
9644
9645 * xdisp.c (get_next_display_element, next_element_from_display_vector):
9646 Adapt to new glyph type and new glyph code encoding.
9647
9648 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
9649
9650 * indent.c (current_column, current_column_1, Fmove_to_column)
9651 (compute_motion): Adapt to new glyph code encoding.
9652
9653 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
9654
96552008-02-27 Chong Yidong <cyd@stupidchicken.com>
9656
9657 * process.c (wait_reading_process_output): Check for window
9658 changes caused by timers.
9659 Suggested by Johan Bockgård.
9660
96612008-02-27 Glenn Morris <rgm@gnu.org>
9662
9663 * emacs.c (USAGE1): Add `--disable-font-backend'.
9664
96652008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
9666
9667 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
9668 is made to the buffer.
9669
96702008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
9671
9672 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
9673 (face_at_string_position):
9674 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
9675 (face_at_string_position):
9676 * xdisp.c (display_string, next_overlay_change):
9677 * buffer.h (overlays_at):
9678 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
9679 Update callers.
9680
96812008-02-26 Chong Yidong <cyd@stupidchicken.com>
9682
9683 * editfns.c (Fformat): Doc fix.
9684
96852008-02-26 Juanma Barranquero <lekktu@gmail.com>
9686
9687 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
9688 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
9689 (Ffont_otf_alternates, Fquery_font): Doc fixes.
9690
96912008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
9692
9693 * buffer.c (Fbuffer_swap_text): New function.
9694 (syms_of_buffer): Defsubr it.
9695
96962008-02-25 Chong Yidong <cyd@stupidchicken.com>
9697
9698 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
9699
97002008-02-25 Jason Rumney <jasonr@gnu.org>
9701
9702 * w32font.c (w32font_draw): Draw one character at a time when padding.
9703
97042008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
9705
9706 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
9707 Handle a nil arg. Use run_window_configuration_change_hook.
9708 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
9709 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
9710 Use run_window_configuration_change_hook.
9711
97122008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
9713
9714 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
9715 1-pixel width.
9716
97172008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
9718
9719 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
9720 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
9721 if the glyph in the font is zero pixel with.
9722
9723 * dispextern.h (struct glyph_string): New member padding_p.
9724
9725 * w32font.c (w32font_draw): Pay attention to s->padding_p.
9726
9727 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
9728
9729 * xfont.c (xfont_draw): Pay attention to s->padding_p.
9730
9731 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
9732
9733 * font.c: If the font driver doesn't have `shape' function, return Qnil.
9734
97352008-02-25 Jason Rumney <jasonr@gnu.org>
9736
9737 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
9738
97392008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
9740
9741 Allow fine-grained image-cache flushing.
9742 * dispextern.h (struct image): Add `dependencies' field.
9743 (clear_image_caches): Change arg to Lisp_Object.
9744 * image.c (make_image): Initialize `dependencies' field.
9745 (clear_image_cache): Change arg to allow fine-grained flushing.
9746 Perform the flush even if image-cache-eviction-delay is nil.
9747 (clear_image_caches): Change arg to Lisp_Object.
9748 (Fclear_image_cache): Expand meaning of the argument.
9749 (mark_image): Mark `dependencies' field.
9750 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
9751 (lface_hash): Use XHASH rather than XFASTINT.
9752 (face_at_buffer_position): Fix int -> EMACS_INT position.
9753 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
9754 (select_frame_for_redisplay): Remove code duplication.
9755 (redisplay_internal): Adapt arg to call to clear_image_caches.
9756
97572008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
9758
9759 * s/vms4-0.h:
9760 * s/vms4-2.h:
9761 * s/vms4-4.h:
9762 * s/vms5-5.h: Remove, unused.
9763
9764 * s/irix5-2.h:
9765 * s/irix6-0.h:
9766 * s/riscos5.h:
9767 * s/mach-bsd4-3.h:
9768 * m/mips4.h: Remove files for obsolete systems.
9769
9770 * Makefile.in:
9771 * filelock.c:
9772 * unexmips.c:
9773 * m/hp9000s300.h:
9774 * m/iris4d.h:
9775 * s/aix3-1.h:
9776 * s/hpux.h:
9777 * s/msdos.h:
9778 * s/usg5-0.h:
9779 * s/usg5-2-2.h:
9780 * s/usg5-2.h:
9781 * s/usg5-3.h: Remove references to obsolete variables.
9782
9783 * s/irix5-0.h: Remove, move all the contents ...
9784 * s/irix6-5.h: ... here. Simplify.
9785 * config.in: Regenerate.
9786
97872008-02-24 Jason Rumney <jasonr@gnu.org>
9788
9789 * w32term.c (x_draw_glyph_string_background): Clear the background
9790 manually when cleartype is in use.
9791 (x_draw_glyph_string_foreground): Draw text transparently when
9792 cleartype is in use.
9793
9794 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
9795 a font into it unless we have to.
9796
97972008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
9798
9799 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
9800 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 9801
aac0c6e3
MR
98022008-02-18 Jason Rumney <jasonr@gnu.org>
9803
9804 * w32fns.c (Fw32_shell_execute): Encode parameters.
9805
98062008-02-09 Eli Zaretskii <eliz@gnu.org>
9807
9808 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
9809
98102008-02-05 Juanma Barranquero <lekktu@gmail.com>
9811
9812 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
9813
98142008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
9815
9816 * xterm.c (x_set_offset): Don't change the gravity if
9817 CHANGE_GRAVITY is -1.
9818
98192008-02-23 Chong Yidong <cyd@stupidchicken.com>
9820
9821 * fileio.c (auto_save_error_occurred): New var.
9822 (auto_save_error): Set it.
9823 (Fdo_auto_save): Don't overwrite the error message if an auto-save
9824 error occurred.
9825
98262008-02-23 Eli Zaretskii <eliz@gnu.org>
9827
9828 * w32.c (globals_of_w32): Add initializations for
9829 g_b_init_get_sid_sub_authority and
9830 g_b_init_get_sid_sub_authority_count.
9831
98322008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
9833
9834 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
9835 (font_parse_xlfd): Use them for sanity check.
9836 (Finternal_set_font_style_table): Make sure the table is bijective.
9837
9838 Consolidate the image_cache to the terminal struct.
9839 * termhooks.h (P_): Remove redundant def.
9840 (struct terminal): New field `image_cache'.
9841 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
9842 of FRAME_X_IMAGE_CACHE.
9843 * xterm.h (struct x_display_info): Remove image_cache field.
9844 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
9845 * w32term.h (struct w32_display_info): Remove image_cache field.
9846 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
9847 * macterm.h (struct mac_display_info): Remove image_cache field.
9848 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
9849 * xterm.c (x_term_init):
9850 * w32term.c (w32_term_init):
9851 * macterm.c (mac_term_init): Set the image_cache in the terminal.
9852 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
9853 Remove declarations.
9854 (clear_image_caches, mark_image_cache): New declarations.
9855 * xfaces.c (clear_face_cache):
9856 * xdisp.c (redisplay_internal): Use clear_image_caches.
9857 * image.c (clear_image_cache): Don't check that a frame is on
9858 a window-system before checking if it shares the same cache.
9859 (clear_image_caches): New function.
9860 (Fclear_image_cache): Use it.
9861 (mark_image): Move from allo.c.
9862 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
9863 * alloc.c (mark_image, mark_image_cache): Move to image.c.
9864 (mark_object): Don't call mark_image_cache for frames.
9865 (mark_terminals): Call mark_image_cache.
9866
9867 * lisp.h (Fdelete_terminal): Declare.
9868
9869 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
9870 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
9871 wrong_type_argument.
9872
98732008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
9874
9875 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
9876 malayalam.el, and tamil.el. Add sinhala.el.
9877
98782008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
9879
9880 * xterm.c (x_connection_closed): Consolidate identical tests.
9881 (x_delete_terminal): Don't crash if called via x_connection_closed.
9882
98832008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
9884
9885 * xdisp.c (decode_mode_spec): New arg string.
9886 (display_mode_element): Adjust for the above change.
9887
98882008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
9889
9890 * callint.c (Fcall_interactively): Use AREF.
9891
98922008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
9893
9894 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
9895
98962008-02-18 Jan Djärv <jan.h.d@swipnet.se>
9897
9898 * xfns.c (Fx_show_tip): Set string to " " if empty.
9899
99002008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
9901
9902 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
9903 with Qt.
9904
99052008-02-17 Kenichi Handa <handa@m17n.org>
9906
9907 * ftfont.c (ftfont_shape): Return Lispy number.
9908
9909 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
9910 for GCs.
9911 (Finternal_set_font_selection_order): Call font_update_sort_order
9912 only when enable_font_backend is set.
9913 (realize_x_face): Set face->font_info to that of default face only
9914 when enable_font_backend is set.
9915
9916 * xdisp.c (handle_composition_prop): Set it->c to the fist
9917 character of the composed region.
9918 (fill_composite_glyph_string): Set base_face->font_info to
9919 s->font_info. Get a face for ascii from base_face->ascii_face.
9920 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
9921 with a face already decided.
9922 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
9923 non-negative.
9924 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
9925 call font_prepare_composition unconditionally.
9926
9927 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
9928
9929 * xterm.h (struct x_display_info): New member font.
9930
9931 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
9932 (x_set_mouse_face_gc, x_new_font): Likewise.
9933 (x_term_init): Setup display_info->font.
9934 (x_delete_terminal): Free display_info->font.
9935
9936 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
9937
9938 * ftxfont.c (ftxfont_default_fid): Delete it.
9939 (ftxfont_open): Set xfont->fid to 0.
9940 (ftxfont_end_for_frame): Clear data specific to the frame and the
9941 font-driver.
9942
9943 * xftfont.c (xftfont_default_fid): Delete it.
9944 (xftfont_open): Set xfont->fid to 0.
9945
9946 * fontset.c (FONTSET_OBJLIST): New macro.
9947 (fontset_find_font): Update font-object list of the fontset.
9948 (free_realized_fontset): New function.
9949 (free_face_fontset): Call free_realized_fontset.
9950 (Ffont_info): Call font_close_object only when enable_font_backend
9951 is set.
9952
9953 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
9954 [HAVE_NTGUI]: Include w32term.h.
9955 [MAC_OS]: Include macterm.ch.
9956 (font_otf_ValueRecord): Use make_number.
9957 (font_finish_cache): Fix handling of reference count.
9958 (font_clear_cache): Update num_fonts.
9959 (font_open_entity): Update smallest_char_width and
9960 smallest_font_height of the frame.
9961 (font_close_object): Update num_fonts.
9962 (Fclear_font_cache): Fix finding the target cache data.
9963
99642008-02-16 Glenn Morris <rgm@gnu.org>
9965
9966 * fontset.c (Finternal_char_font): Fix compilation warning.
9967
99682008-02-16 Eli Zaretskii <eliz@gnu.org>
9969
9970 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
9971 instead of char arrays. Enlarge the size of array passed to
9972 get_token_information.
9973
9974 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
9975 warnings.
9976
99772008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
9978
9979 * .gdbinit: Don't set `args', it breaks gdb --args.
9980
99812008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
9982
9983 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
9984 within a narrowed buffer.
9985
99862008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
9987
9988 * coding.c (decode_coding_object, encode_coding_object):
9989 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
9990
99912008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
9992
9993 * coding.c (coding_set_destination): Use BEG_BYTE rather than
9994 hardcoding 1.
9995 (detect_coding_system):
9996 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
9997 (string_char_to_byte, string_byte_to_char, insert_from_gap):
9998 * insdel.c (insert_from_gap):
9999 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
10000 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
10001 (string_to_multibyte):
10002 * character.c (chars_in_text, multibyte_chars_in_text):
10003 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
10004
10005 * character.h (FETCH_STRING_CHAR_ADVANCE)
10006 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
10007 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
10008 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
10009
10010 * casefiddle.c (casify_region): Only call after-change and composition
10011 functions on the part of the region that was changed.
10012
10013 * keyboard.c (read_avail_input):
10014 * frame.c (Fdelete_frame): Call Fdelete_terminal.
10015
100162008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
10017
10018 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
10019 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
10020
100212008-02-11 Juanma Barranquero <lekktu@gmail.com>
10022
10023 * w32menu.c (push_submenu_start, push_submenu_end)
10024 (push_left_right_boundary, push_menu_pane, push_menu_item):
10025 * keyboard.c (read_key_sequence): Don't pass args with side effects
10026 to AREF, it fails when compiling with -DENABLE_CHECKING.
10027
100282008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
10029
10030 * Makefile.in (${lispsource}international/charprop.el):
10031 Delete this target.
10032
10033 * search.c (boyer_moore): Fix incorrect synching of the trunk and
10034 emacs-unicode-2.
10035
100362008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
10037
10038 * terminal.c (Fdelete_terminal): Clean up the `force' path.
10039
100402008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
10041
10042 * frame.c (Qnoelisp): New symbol.
10043 (syms_of_frame): Initialize it.
10044 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
10045 harmless Elisp code, from a strong `force' from x_connection_closed.
10046 * frame.h (Qnoelisp): Declare.
10047 * xterm.c (x_connection_closed): Pass `noelisp'.
10048
10049 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
10050 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
10051 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
10052 rather than `int' for the type of `type'.
10053
100542008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
10055
10056 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
10057
10058 * Makefile.in (GNUC): Remove support for gcc-1.x.
10059
100602008-02-10 Richard Stallman <rms@gnu.org>
10061
10062 * lisp.h (ASET): Use AREF, not ASLOT.
10063
100642008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
10065
10066 * lisp.h (ASET): Check bounds.
10067
100682008-02-10 Glenn Morris <rgm@gnu.org>
10069
10070 * buffer.c (mode-name): Doc fix.
10071
100722008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
10073
10074 * Makefile.in:
10075 * emacs.c:
10076 * gmalloc.c:
10077 * keyboard.c:
10078 * lisp.h:
10079 * m/ibm370aix.h:
10080 * process.c:
10081 * regex.c:
10082 * s/hpux.h:
10083 * sysdep.c:
10084 * sysselect.h:
10085 * systty.h:
10086 * unexec.c:
10087 * w32term.c:
10088 * xsmfns.c:
10089 * xterm.c: Remove code that deals with obsolete variables.
10090
10091 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
10092
10093 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
10094 nothing else needs it anymore.
10095
100962008-02-09 Eli Zaretskii <eliz@gnu.org>
10097
10098 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
10099 instead of unibyte_char_to_multibyte.
10100
101012008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
10102
10103 * s/gnu-linux.h: Remove commented out code.
10104
10105 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
10106
10107 * Makefile.in: Update what RMS says about using autoconf.
10108 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
10109 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
10110 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
10111 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
10112
101132008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
10114
10115 * keymap.c (Fkey_description): Move side effect outside of macro call.
10116
10117 * xfaces.c (Finternal_make_lisp_face):
10118 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
10119
10120 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
10121 (syms_of_fontset): Use ASET.
10122
10123 * fns.c (concat): Move side effect outside of macro call.
10124 (hash_clear): Use ASET.
10125
101262008-02-08 Richard Stallman <rms@gnu.org>
10127
10128 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
10129 If FORCE, and frame has a surrogate minibuffer for another frame,
10130 delete the other frame first.
10131
101322008-02-07 Timo Savola <timo.savola@iki.fi>
10133
10134 * xterm.c (x_detect_focus_change): Handle embed client message.
10135 (handle_one_xevent): Ditto.
10136 (handle_one_xevent): If embedded and we get a button press/release,
10137 request focus.
10138 (xembed_set_info, xembed_send_message): New functions.
10139 (x_make_frame_visible): Call xembed_set_info if embedded.
10140 (x_make_frame_invisible): Call xembed_set_info if embedded.
10141 (x_term_init): Initialize Xatom_XEMBED.
10142 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
10143 (x_iconify_frame): Ditto.
10144
10145 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
10146 (enum xembed_info, enum xembed_message, enum xembed_focus)
10147 (enum xembed_modifier, enum xembed_accelerator): New.
10148 (xembed_set_info, xembed_send_message): Declare.
10149 (FRAME_X_EMBEDDED_P): New.
10150
10151 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
10152 gtk_plug_new.
10153
10154 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
10155 window ID of a frame.
10156 (x_window): Reparent frame if embedded.
10157 (Fx_create_frame): Don't set border width if embedded.
10158
10159 * emacs.c (USAGE3): Add --parent-id.
10160 (standard_args): Ditto.
10161
101622008-02-07 Jan Djärv <jan.h.d@swipnet.se>
10163
10164 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
10165
101662008-02-07 Jim Meyering <meyering@redhat.com>
10167
10168 Use "do...while (0)", not "if (1)...else" in macro definitions.
10169 The latter provokes a warning from gcc about the empty else, when
10170 followed by ";". Also, without that trailing semicolon, it would
10171 silently swallow up any following statement.
10172 * syntax.h (SETUP_SYNTAX_TABLE)
10173 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
10174 * buffer.h (DECODE_POSITION): Likewise.
10175 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
10176 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
10177 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
10178 (FETCH_CHAR_ADVANCE): Likewise.
10179 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
10180
101812008-02-07 Jim Meyering <meyering@redhat.com>
10182
10183 * lread.c [lint]: Don't include <sys/inode.h>.
10184
101852008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
10186
10187 * xselect.c (x_handle_dnd_message):
10188 * xmenu.c (digest_single_submenu, xmenu_show):
10189 * xdisp.c (with_echo_area_buffer_unwind_data)
10190 (format_mode_line_unwind_data, unwind_format_mode_line)
10191 (display_menu_bar):
10192 * eval.c (Ffetch_bytecode):
10193 * doc.c (store_function_docstring):
10194 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
10195 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
10196 * buffer.c (add_overlay_mod_hooklist): Use ASET.
10197
101982008-02-07 Kenichi Handa <handa@m17n.org>
10199
10200 * ftxfont.c (ftxfont_open): Don't set
10201 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
10202
10203 * ftfont.c (ftfont_open): Fix previous change.
10204
102052008-02-06 Jason Rumney <jasonr@gnu.org>
10206
10207 * w32font.c (w32font_text_extents): Fill in lbearing metric.
10208 Use cached metrics for ASCII characters.
10209 (w32font_open_internal): Don't set font's owning_frame.
10210 Cache metrics for ASCII characters.
10211
10212 * w32font.h (struct w32font_info): Add ascii_metrics.
10213 Remove owning_frame.
10214
102152008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
10216
10217 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
10218 to negative value.
10219
10220 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
10221
10222 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
10223
10224 * charset.c (syms_of_charset): Set QCtest and Qeq.
10225
102262008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
10227
10228 * process.c (Fstart_process):
10229 * callproc.c (Fcall_process): Handle the case where
10230 Funhandled_file_name_directory returns nil.
10231
10232 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
10233 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
10234 * font.c (check_gstring): Use them and AREF to access the vector before
10235 we know it's really a gstring.
10236 (Ffont_shape_text): Fix typo.
46e722a9 10237 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
10238
10239 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
10240 Declare.
10241
10242 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
10243
102442008-02-05 Jason Rumney <jasonr@gnu.org>
10245
10246 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
10247 Set smallest_font_height and smallest_char_width in display info.
10248
102492008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
10250
10251 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
10252
102532008-02-05 Miles Bader <miles@gnu.org>
10254
10255 * xfaces.c (get_lface_attributes, merge_named_face)
10256 (lookup_named_face, lookup_derived_face, realize_named_face):
10257 Revert 2008-02-01 change by cyd@stupidchicken.com.
10258
102592008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
10260
10261 * fontset.c (Ffontset_info): Handle the case of inhibitting the
10262 fallback fonts.
10263 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
10264
102652008-02-04 Jason Rumney <jasonr@gnu.org>
10266
10267 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
10268 set full_name.
10269 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
10270
102712008-02-03 Jason Rumney <jasonr@gnu.org>
10272
10273 * makefile.w32-in (OBJ1): Include font.o here.
10274 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
10275
102762008-02-02 Jason Rumney <jasonr@gnu.org>
10277
10278 * makefile.w32-in (temacs): Bump EMHEAP to 21.
10279
102802008-02-01 Jason Rumney <jasonr@gnu.org>
10281
10282 * s/cygwin.h: Define VIRT_ADDR_VARIES.
10283
10284 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
10285
102862008-02-01 Andreas Schwab <schwab@suse.de>
10287
10288 * Makefile.in (shortlisp, lisp): Update for rename of
10289 ../lisp/language/myanmar.el.
10290
102912008-02-01 Chong Yidong <cyd@stupidchicken.com>
10292
10293 * xfaces.c (get_lface_attributes): Delete function.
10294 (merge_named_face, lookup_named_face, lookup_derived_face)
10295 (realize_named_face): Call lface_from_face_name directly, and use
10296 the fact that merge_face_vectors does not alter its FROM argument.
10297
102982008-02-01 Jason Rumney <jasonr@gnu.org>
10299
10300 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
10301 input in the default locale. Handle non-Unicode multibyte input.
10302
103032008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10304
10305 * fontset.c (reorder_font_vector): Exclude nil elements from the
10306 font group. Don't try multiple fonts.
10307 (fontset_font): Adjust for the above change.
10308 (Finternal_char_font): Return nil if the found font doesn't
10309 contain the character ch.
10310
10311 * Makefile.in (lisp, shortlisp): Add cham.el.
10312
103132008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10314
10315 * font.h (FONTP): Make it return 1 also for a font-object.
10316
10317 * .gdbinit (xfontset): New function.
10318
10319 * font.c (font_find_for_lface): Check if the character C is
10320 supported or not only for the first font.
10321
10322 * fontset.c (reorder_font_vector): Fix typo.
10323 (fontset_find_font): Don't add a font-spec specifying a script.
10324 Use 0 (not Qt) for the indication of empty font-group. Change the
10325 format of RFONT-DEF. Return Qt if no font in the font-group
10326 support the character.
10327 (fontset_font): Adjust for the above change. If no font was
10328 found the character, remember that.
10329 (face_for_char): Adjust for the change of RFONT-DEF.
10330 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
10331 no font for the target.
10332 (Finternal_char_font): Adjust for the change of RFONT-DEF.
10333
103342008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10335
10336 * font.c (font_load_for_face): Handle the case that the font in
10337 face->lface is a string.
10338
103392008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10340
10341 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
10342
103432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10344
10345 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
10346 Fix previous change. If the frame is not on a window system,
10347 signal an error.
10348
103492008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10350
10351 * coding.c (decode_coding_object, encode_coding_object): Adjust
10352 marker positions after conversion.
10353
10354 * lisp.h (struct Lisp_Marker): New member need_adjustment.
10355
103562008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10357
10358 * font.c (font_find_for_lface): Fix the handling of the return
10359 value of font_has_char.
10360 (Ffont_shape_text): Fix previous change.
10361
10362 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
10363 (fontset_ref_and_range): Delete it.
10364 (fontset_find_font): Call char_table_ref_and_range instead of
10365 FONTSET_REF_AND_RANGE.
10366 (make_fontset): Don't setup font groups of Latin here.
10367 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
10368 (new_fontset_from_font): Make the specified font the default for
10369 all Latin characters.
10370
103712008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10372
10373 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
10374 is on a window system before accessing the fontset of the frame.
10375
103762008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10377
10378 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
10379
10380 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
10381 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
10382
10383 * font.c (Ffont_shape_text): If the font driver doesn't have a
10384 shaper function, make zero-width glyphs to have at least one-pixel
10385 width. Fix setting of `to' field of glyphs.
10386
103872008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10388
10389 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
10390 glyphs.
10391
10392 * font.h (struct font_driver): Improve docstring of member `shape'.
10393
103942008-02-01 Kenichi Handa <handa@m17n.org>
10395
10396 * composite.c (syms_of_composite): Fix docstring of
10397 auto-composition-function.
10398
10399 * font.h (LGLYPH_SIZE): New macro.
10400
10401 * font.c (Ffont_fill_gstring): Stop filling when a character not
10402 supported by the font is found.
10403 (Ffont_shape_text): When a shape callback function returns nil,
10404 try at most two more times with larger gstring.
10405 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
10406
10407 * xdisp.c (handle_auto_composed_prop): Change the argument to
10408 auto-composition-function.
10409
10410 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
10411 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
10412 Lispy glyph and store it in the lgstring.
10413
10414 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
10415
10416 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
10417
104182008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10419
10420 * font.c (Ffont_shape_text): Avoid unnecessary composition.
10421
10422 * fontset.c (Vfont_encoding_charset_alist): New variable.
10423 (syms_of_fontset): DEFVAR it.
10424 (reorder_font_vector, fontset_find_font): Optimize for the case of
10425 no need of reordering.
10426 (face_for_char): Map the charset property by
10427 Vfont_encoding_charset_alist.
10428
104292008-02-01 Jason Rumney <jasonr@gnu.org>
10430
10431 * w32font.c (logfonts_match): Don't check adstyle here.
10432 (font_matches_spec): Check here against physical font instead.
10433 (add_font_entity_to_list): Avoid some substitutions.
10434
10435 * font.c (font_parse_fcname): Default weight and slant to normal.
10436 (font_score): Prefer normal fonts if weight or slant unspecified.
10437 (font_score) [WINDOWSNT]: Scale weight difference down to closer
10438 match freetype scores.
10439
104402008-02-01 Jason Rumney <jasonr@gnu.org>
10441
10442 * w32font.c (w32font_text_extents): Don't use the frame stored in the
10443 font, as it may have been deleted.
10444 (w32_enumfont_pattern_entity): Map generic family to adstyle using
10445 most common hyphenless variation.
10446 (logfonts_match): Check generic family.
10447 (font_matches_spec): Don't check generic family here.
10448 (fill_in_logfont): Set generic family based on adstyle.
10449
10450 * w32font.h (w32font_get_cache): Update declaration.
10451
104522008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10453
10454 * ftfont.c (ftfont_get_cache): Adjust the argument type.
10455
10456 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
10457 If none of the new drivers are available, call font_update_drivers
10458 with the old drivers.
10459
10460 * w32font.c (w32font_get_cache): Adjust the argument type.
10461
10462 * xfont.c (xfont_get_cache): Adjust the argument type.
10463
10464 * font.h (struct font_driver): Change argument type of get_cache.
10465
10466 * xftfont.c (xftfont_start_for_frame): Delete prototype.
10467
10468 * font.c (Ffont_get): Fix arguments to Fassoc.
10469 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
10470 (font_clear_cache): New function.
10471 (font_list_entities, font_matching_entity): Use font_get_cache.
10472 (font_update_drivers): Call font_clear_cache when finishing a driver.
10473
10474 * fontset.c (fontset_find_font): Fix previous change.
10475
104762008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10477
10478 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
10479 dpyinfo->font_table.
10480 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
10481 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
10482
10483 * font.c (font_at): Handle the case that the arg C is negative.
10484 Handle the unibyte case.
10485 (Ffont_at): Call font_at with the arg C -1.
10486
10487 * xdisp.c (handle_auto_composed_prop): Don't get a character at
10488 the position here, and call font_at with the arg C -1.
10489 Don't check the range of the existing composition at the point.
10490
104912008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10492
10493 * fontset.c (fontset_add): New args charset_id and family.
10494 Change caller.
10495 (load_font_get_repertory, fontset_find_font): Assume that
10496 font_spec is always a font-spec object.
10497 (Fset_fontset_font): Always store a font-spec object in a fontset.
10498
10499 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
10500 instead of get_property_and_range.
10501
105022008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10503
10504 * xftfont.c (struct xftfont_info): Delete the member ft_face.
10505 (xftfont_open): Don't keep locking face.
10506 (xftfont_close): Don't unlock face.
10507 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
10508
10509 * fontset.c (fontset_find_font): Don't prefer a font of
10510 supplementary charset.
10511
105122008-02-01 Kenichi Handa <handa@m17n.org>
10513
10514 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
10515 script, langsys_tag to langsys, new member script.
10516 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 10517 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
10518 listing to the script specified in that property. Fix arg to
10519 OTF_check_features.
10520
105212008-02-01 Jason Rumney <jasonr@gnu.org>
10522
10523 * w32font.h: New file.
10524
10525 * w32font.c: Include it.
10526 (struct w32font_info): Add owning_frame field. Move to w32font.h.
10527 (w32font_open): Set owning_frame.
10528 (w32font_text_extents): Use owning_frame.
10529 (struct font_callback_data): Add opentype_only field.
10530 (add_font_entity_to_list): Use it to filter fonts.
10531 Don't check against full name.
10532 (w32font_list_internal): New function.
10533 (w32font_list): Use it.
10534 (w32font_match_internal): New function.
10535 (w32font_match): Use it.
10536 (w32font_open_internal): New function.
10537 (w32font_open): Use it.
10538 (w32font_get_cache, w32font_close, w32font_has_char)
10539 (w32font_encode_char, w32font_text_extents, w32font_draw):
10540 Make non-static.
10541
10542 * makefile.w32-in (w32font.o): Depend on w32font.h.
10543
105442008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10545
10546 * charset.c (Fdefine_charset_internal): Record a supplementary
10547 charset at the tail of Vcharset_order_list.
10548
10549 * font.c (Ffont_shape_text): Fix the return value.
10550
10551 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
10552
10553 * xdisp.c (handle_auto_composed_prop): Fix previous change.
10554
105552008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10556
10557 * ftfont.c (struct OpenTypeSpec): New struct.
10558 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
10559 (ftfont_get_open_type_spec): New function.
10560 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
10561
10562 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
10563
105642008-02-01 Jason Rumney <jasonr@gnu.org>
10565
10566 * w32font.c (add_font_entity_to_list): Compare only the beginning
10567 of full name.
10568
105692008-02-01 Kenichi Handa <handa@m17n.org>
10570
10571 * xdisp.c (handle_auto_composed_prop): Simplify the code.
10572 Never return HANDLED_RECOMPUTE_PROPS.
10573
105742008-02-01 Kenichi Handa <handa@m17n.org>
10575
10576 * font.c (font_gstring_produce): Delete it.
10577
10578 * composite.h (COMPOSITION_METHOD):
10579 Handle COMPOSITION_WITH_GLYPH_STRING.
10580
105812008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10582
10583 * xfont.c (Qx): Delete.
10584 (syms_of_xfont): Don't initialize Qx.
10585
10586 * composite.h (enum composition_method):
10587 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
10588
105892008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10590
10591 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
10592 (choose_face_font): Accept new form of font-spec.
10593
10594 * frame.h (font_driver_list): Declare it unconditionally.
10595 (struct frame): Define members font_driver_list and font_data_list
10596 unconditionally.
10597
10598 * fontset.c: Include "font.h" unconditionally.
10599 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
10600 (Fset_fontset_font): Accept a font-spec object.
10601
10602 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
10603 PIXEL_SIZE part a wild card.
10604
10605 * dispextern.h (struct glyph_string): Define members clip and
10606 num_clips unconditionally.
10607 (struct face): Define members font_info and extra unconditionally.
10608
10609 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
10610 ftfont_info only when HAVE_LIBOTF is defined.
10611
106122008-02-01 Andreas Schwab <schwab@suse.de>
10613
10614 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
10615 and end.
10616
106172008-02-01 Jason Rumney <jasonr@gnu.org>
10618
10619 * w32font.c (w32font_driver): Add new fields.
10620
106212008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10622
10623 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
10624 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
10625 (LIBES): Add @M17N_FLT_CFLAGS@.
10626
10627 * composite.c (compose_text): Don't treat the new style
10628 composition specially.
10629
10630 * emacs.c (main): Call syms_of_font unconditionally.
10631
10632 * font.h (FONT_ENTITY_NOT_LOADABLE)
10633 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
10634 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
10635 (struct font_driver): New member shape.
10636 (font_registry_charsets): Extern it.
10637 (font_find_for_lface, font_prepare_composition): Adjust prototype.
10638 (font_otf_capability, font_drive_otf): Delete their externs.
10639
10640 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
10641 (font_charset_alist, font_registry_charsets): Move from xfont.c
10642 and rename.
10643 (font_prop_validate_otf): New function.
10644 (font_property_table): Register it for QCotf.
10645 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
10646 (font_drive_otf): Delete.
10647 (font_prepare_composition): New arg F. Adjust for the change of
10648 lispy gstring.
10649 (font_find_for_lface): New arg C.
10650 (font_load_for_face): Adjust for the change of font_find_for_lface.
10651 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
10652 lispy gstring.
10653 (Ffont_shape_text): New function.
10654 (Fopen_font): If the font size is not given, use 12-pixel.
10655 (Ffont_at): New arg STRING.
10656 (syms_of_font): Initalize font_charset_alist.
10657 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
10658 conditionally.
10659
10660 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
10661 fonts of the same font-spec. Change the format of RFONT-DEF.
10662 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
10663 Adjust for the change of RFONT-DEF.
10664 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
10665
10666 * ftfont.h: New file.
10667
10668 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
10669 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
10670 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
10671 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
10672 font_otf_capability and font_drive_otf, set ftfont_shape.
10673 (ftfont_list): Adjust for the change of :otf property value.
10674 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
10675 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
10676 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
10677 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
10678 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
10679 (otf_gstring, gstring, m17n_flt_initialized): New variables.
10680
10681 * w32term.c (x_draw_composite_glyph_string_foreground):
10682 Adjust for the change of lispy gstring.
10683
10684 * xdisp.c (handle_composition_prop): Adjust for the change of
10685 lispy gstring. Call a function for auto-composition with the
10686 third arg it->window.
10687 (fill_composite_glyph_string): Adjust for the change of lispy string.
10688 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
10689
10690 * xfaces.c (set_font_frame_param): Adjust for the change of
10691 font_find_for_lface.
10692
10693 * xfont.c (x_font_charset_alist): Move to font.c and rename.
10694 (xfont_registry_charsets): Likewise. Change caller.
10695 (syms_of_xfont): Don't handle x_font_charset_alist.
10696
10697 * xftfont.c: Include "ftfont.h".
10698 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
10699 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
10700 (xftfont_close) [HAVE_LIBOTF]: Close otf.
10701 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
10702 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
10703 Set xftfont_driver.shape to xftfont_shape.
10704
10705 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
10706 the change of lispy gstring.
10707
107082008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10709
10710 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
10711
107122008-02-01 Jason Rumney <jasonr@gnu.org>
10713
10714 * w32font.c (w32font_draw): Fill background manually.
10715
107162008-02-01 Jason Rumney <jasonr@gnu.org>
10717
10718 * font.c (Qfontp): Remove unused symbol.
10719 (QCantialias): New symbol.
10720 (syms_of_font): Define it.
10721 (font_property_table): Set a validator for QCantialias.
10722
10723 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
10724 Define if not already.
10725 (QCfamily): Share with xfaces.c.
10726 (Qstandard, Qsubpixel, Qnatural): New symbols.
10727 (syms_of_w32font): Define them. Don't define QCfamily here.
10728 (w32_antialias_type, lispy_antialias_type): New functions.
10729 (w32_enumfont_pattern_entity): New arg requested_font.
10730 Set antialias parameter if non-default was requested.
10731 (fill_in_logfont): Fill in lfQuality if :antialias specified.
10732
107332008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10734
10735 * lread.c (read1): Undo the previous change.
10736
107372008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
10738
10739 * frame.c (Fdelete_frame): Call font_update_drivers only when
10740 USE_FONT_BACKEND is defined.
10741
107422008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10743
10744 * font.h (struct font_bitmap): New member bits_per_pixel.
10745 (struct font_driver): New members start_for_frame and end_for_frame.
10746 (struct font_data_list): New struct.
10747 (font_put_frame_data, font_get_frame_data): Extern them.
10748
10749 * frame.h (struct frame): New member font_data_list.
10750
10751 * font.c (font_update_drivers): Call driver->start_for_frame and
10752 driver->end_for_frame at proper timings.
10753 (font_put_frame_data, font_get_frame_data): New functions.
10754 (Ffont_spec): Add usage in the docstring.
10755
10756 * frame.c (make_frame): Initialize f->font_data_list to NULL.
10757 (Fdelete_frame): Call font_update_drivers.
10758
10759 * xftfont.c (struct xftface_info): Delete the member xft_draw.
10760 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
10761 (xftfont_get_xft_draw): New function.
10762 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
10763 (xftfont_end_for_frame): New function.
10764 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
10765
10766 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
10767 Change argument. Cache GCs in the per-frame data.
10768 (struct ftxfont_frame_data): New struct.
10769 (ftxfont_draw_bitmap): New arg gc_fore and flush.
10770 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
10771 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
10772 (ftxfont_end_for_frame): New function.
10773 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
10774
10775 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
10776
107772008-02-01 Kenichi Handa <handa@m17n.org>
10778
10779 * xselect.c (Vselection_coding_system)
10780 (Vnext_selection_coding_system): Delete them.
10781 (syms_of_xselect): Don't declare selection-coding-system and
10782 next-selection-coding-system. They are declared in select.el.
10783
107842008-02-01 Jason Rumney <jasonr@gnu.org>
10785
10786 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
10787
10788 * w32fns.c: Include imm.h.
10789 (get_composition_string_fn, get_ime_context_fn): New optional
10790 system functions.
10791 (globals_of_w32fns): Load them from imm32.dll.
10792 (ignore_ime_char): New flag.
10793 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
10794 WM_IME_ENDCOMPOSITION messages.
10795
10796 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
10797 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
10798
107992008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10800
10801 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
10802 (READCHAR_REPORT_MULTIBYTE): New macro.
10803 (readchar): New 2nd arg MULTIBYTE.
10804 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
10805 Make symbol's name multibyte according to the multibyteness of the
10806 source.
10807
108082008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10809
10810 * xfaces.c (face_for_overlay_string): Call lookup_face with
10811 correct arguments (fix of synching with the trunk).
10812
108132008-02-01 Kenichi Handa <handa@m17n.org>
10814
10815 * font.c (font_prop_validate_symbol, font_prop_validate_style)
10816 (font_prop_validate_non_neg, font_prop_validate_spacing):
10817 Delete argument prop_index.
10818 (font_property_table): Change arguments to validater. Change Callers.
10819 (font_lispy_object): Delete.
10820 (font_at): Use font_find_object instead fo font_lispy_object.
10821
108222008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10823
10824 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
10825 and file names.
10826
108272008-02-01 Jason Rumney <jasonr@gnu.org>
10828
10829 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
10830 (font_matches_spec): Remove debug output.
10831 (add_font_entity_to_list): Avoid using substituted fonts.
10832
108332008-02-01 Jason Rumney <jasonr@gnu.org>
10834
10835 * doc.c (Fsnarf_documentation):
10836 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
10837
108382008-02-01 Miles Bader <miles@gnu.org>
10839
10840 * dispextern.h (struct glyph_row): Only define "clip" field if
10841 HAVE_WINDOW_SYSTEM is defined.
10842
108432008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
10844
10845 Fix up multi-tty merge.
10846
10847 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
10848 and indentation.
10849
10850 * xfaces.c (free_realized_face, clear_face_gcs):
10851 Include font_done_for_face in the input_blocked section, just in case.
10852
10853 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
10854 (get_char_face_and_encoding): Undo last change and remove the *other*
10855 duplicate definition (i.e. keep the one that's better scoped and that
10856 includes code for the font-backend).
10857
10858 * terminal.c (create_terminal): Default keyboard_coding to
10859 `no-conversion' and terminal_coding to `undecided'.
10860
10861 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
10862
10863 * fontset.c (free_realized_fontsets): Check that the table entry does
10864 contain a fontset before trying to compare it to `base'.
10865
10866 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
10867 syms_of_charset, and syms_of_coding earlier because init_window_once
10868 now needs Vcoding_system_hash_table to be setup.
10869
10870 * coding.h (default_buffer_file_coding): Remove.
10871
10872 * coding.c (default_buffer_file_coding): Remove.
10873 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
10874 than ->symbol, and use the terminal-local coding system.
10875 (syms_of_coding): Don't setup the coding-systems that are not
10876 terminal-local.
10877 (Fdefine_coding_system_internal): Use XCAR/XCDR.
10878
10879 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
10880 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
10881
10882 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
10883 in chartab.c and were re-added here by mistake.
10884 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
10885
10886 * doc.c (Fsnarf_documentation):
10887 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
10888 src to etc.
10889
10890 * ChangeLog.10: Add mistakenly removed entry.
10891
108922008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
10893
10894 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
10895
108962008-02-01 Miles Bader <miles@gnu.org>
10897
10898 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
10899 Add extra args to FACE_FOR_CHAR.
10900
109012008-02-01 Kenichi Handa <handa@m17n.org>
10902
10903 * keymap.c (where_is_internal_1): If key is a cons, store the copy
10904 in sequence.
10905
10906 * chartab.c (map_sub_char_table, map_char_table): If the range
10907 contains just one character, call the function with that character
10908 even if the depth is not 3.
10909
109102008-02-01 Jason Rumney <jasonr@gnu.org>
10911
10912 * w32font.c (w32font_text_extents): Calculate metrics for the
10913 whole string.
10914
109152008-02-01 Jason Rumney <jasonr@gnu.org>
10916
10917 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
10918
109192008-02-01 Jason Rumney <jasonr@gnu.org>
10920
10921 * w32term.c (x_set_glyph_string_clipping): Use
10922 get_glyph_string_clip_rects.
10923 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
10924 Adjust for the change of struct glyph_string.
10925
10926 * w32font.c (w32font_draw): Do clipping here.
10927
109282008-02-01 Kenichi Handa <handa@m17n.org>
10929
10930 * xftfont.c (xftfont_draw): Adjust for the change of struct
10931 glyph_string.
10932
10933 * xterm.c (x_set_glyph_string_clipping): Use
10934 get_glyph_string_clip_rects.
10935 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
10936 Adjust for the change of struct glyph_string.
10937
10938 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
10939 the resulting clip(s}.
10940 (expose_overlaps): Add arg r. Change callers. Set it to
10941 row->clip temporarily.
10942 (expose_window): Redraw rows overlapping the exposed area.
10943
10944 * dispextern.h (struct glyph_row): New member clip.
10945 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
10946 clip_height, new member clip, and num_clips.
10947
109482008-02-01 Kenichi Handa <handa@m17n.org>
10949
10950 * data.c (Fchar_or_string_p): Fix docstring.
10951
109522008-02-01 Kenichi Handa <handa@m17n.org>
10953
10954 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
10955 create a temporary XftDraw object.
10956
109572008-02-01 Kenichi Handa <handa@m17n.org>
10958
10959 * font.c (Ffontp): Fix docstring.
10960
10961 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
10962 strong evidence of ISO-2022.
10963
109642008-02-01 Kenichi Handa <handa@m17n.org>
10965
10966 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
10967 SYNTAX_ENTRY_FOLLOW_PARENT.
10968
109692008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
10970
10971 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
10972 its type.
10973 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
10974 Update to the new type of weak_hash_tables and next_weak.
10975
10976 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
10977 a plain C pointer to Lisp_Hash_Table.
10978
10979 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
10980 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
10981 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
10982 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
10983 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
10984 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
10985 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
10986 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
10987 (GC_EQ): Remove since they've been identical to their non-GC_
10988 alter-egos ever since the markbit was eradicated.
10989
10990 * alloc.c:
10991 * buffer.c:
10992 * buffer.h:
10993 * data.c:
10994 * fileio.c:
10995 * filelock.c:
10996 * fns.c:
10997 * frame.h:
10998 * lisp.h:
10999 * macterm.c:
11000 * print.c:
11001 * process.c:
11002 * w32fns.c:
11003 * w32menu.c:
11004 * w32term.c:
11005 * xfns.c:
11006 * xmenu.c:
11007 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
11008
110092008-02-01 Kenichi Handa <handa@m17n.org>
11010
11011 * chartab.c (map_sub_char_table): Make it work for the top-level
11012 char-table. Fix handling of parent char-table.
11013 (map_char_table): Adjust for the above change.
11014
110152008-02-01 Jason Rumney <jasonr@gnu.org>
11016
11017 * w32font.c (Qgdi): Rename from Qw32.
11018
110192008-02-01 Jason Rumney <jasonr@gnu.org>
11020
11021 * w32bdf.c (get_quoted_string): Make function static.
11022
110232008-02-01 Kenichi Handa <handa@m17n.org>
11024
11025 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
11026 bigger ascent and descent than those of the font, use them as
11027 font's ascent and descent.
11028
110292008-02-01 Kenichi Handa <handa@m17n.org>
11030
11031 * Makefile.in (${lispsource}international/charprop.el): Move this
11032 target within "#ifdef HAVE_UNIDATA" and "#endif".
11033
110342008-02-01 Kenichi Handa <handa@m17n.org>
11035
11036 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
11037 (shortlisp): Add ../lisp/language/tai-viet.el.
11038
110392008-02-01 Ulrich Mueller <ulm@gentoo.org>
11040
11041 * Makefile.in (${lispsource}international/charprop.el): Depend on
11042 temacs${EXEEXT}.
11043
110442008-02-01 Jason Rumney <jasonr@gnu.org>
11045
11046 * w32font.c (w32font_close): Delete the GDI font object.
11047
11048 * w32menu.c: Include character.h.
11049
11050 * w32proc.c: Likewise.
11051
11052 * w32select.c: Likewise.
11053
11054 * makefile.w32-in (w32proc.o): Depend on character.h.
11055
110562008-02-01 Jason Rumney <jasonr@gnu.org>
11057
11058 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
11059
11060 * w32menu.c (syms_of_w32menu): Likewise.
11061
11062 * w32proc.c (syms_of_ntproc): Likewise.
11063
11064 * w32select.c (syms_of_w32select): Likewise.
11065
11066 * w32term.c (syms_of_w32term): Likewise.
11067
110682008-02-01 Jason Rumney <jasonr@gnu.org>
11069
11070 * w32font.c (w32font_draw): Delete brush after using it.
11071
110722008-02-01 Jason Rumney <jasonr@gnu.org>
11073
11074 * w32font.c (w32font_open): Don't set font_idx.
11075 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
11076 to font settings.
11077 (w32font_draw): Fill background explicitly.
11078
110792008-02-01 Jason Rumney <jasonr@gnu.org>
11080
11081 * w32term.c (w32_initialize): Don't call w32font_initialize.
11082
11083 * w32font.c (w32font_info): Remove subranges.
11084 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
11085 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
11086 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
11087 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
11088 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
11089 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
11090 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
11091 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
11092 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
11093 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
11094 New symbols.
11095 (font_callback_data): New struct.
11096 (w32font_list, w32font_match): Use it.
11097 (w32font_open): Don't populate subranges.
11098 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
11099 (w32font_encode_char): Always return unicode code-point as-is.
11100 (w32font_text_extents): Supply a transformation matrix to
11101 GetGlyphOutline. Never look up by glyph index. Avoid looping
11102 twice. Use unicode version of GetTexExtentPoint32 instead of
11103 glyph index version.
11104 (set_fonts_frame): Remove.
11105 (w32_enumfont_pattern_entity): Add frame parameter, use it to
11106 set frame parameter. Use backward compatible fake foundries.
11107 Save generic family in extra slot under QCfamily. Make width slot
11108 constant. Save QCspacing value. Save list of scripts instead of
11109 binary subranges.
11110 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
11111 (add_font_entity_to_list): Use font_callback_data struct. Filter
11112 unwanted fonts.
11113 (add_one_font_entity_to_list): Use font_callback_data struct.
11114 (w32_registry): Default to iso10646_1.
11115 (fill_in_logfont): Use dpi from extra slot. Don't bother with
11116 string font registries. Don't fill in font name if it is a generic
11117 family name, fill family instead. Use spacing, family and script
11118 extra info to fill pitch, family and charset fields.
11119 (list_all_matching_fonts): Use font_callback_data struct.
11120 (unicode_range_for_char): Remove.
11121 (font_supported_scripts): New function.
11122 (w32font_initialize): Remove.
11123 (syms_of_w32font): Update which symbols are defined.
11124
111252008-02-01 Jason Rumney <jasonr@gnu.org>
11126
11127 * font.c (font_pixel_size): Reverse assq_no_quit args.
11128
11129 * w32term.h (FONT_WIDTH): Report max width, not average.
11130 (FONT_MAX_WIDTH): Remove.
11131 (FONT_AVG_WIDTH): New macro.
11132
11133 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
11134 redefinition of FONT_WIDTH.
11135
11136 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
11137 (w32_cache_char_metrics): Use FONT_WIDTH.
11138
11139 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
11140
111412008-02-01 Jason Rumney <jasonr@gnu.org>
11142
11143 * w32font.c (w32font_open): Make lfHeight negative.
11144
11145 * w32fns.c (x_default_font_parameter): Use new style font name.
11146 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
11147
111482008-02-01 Jason Rumney <jasonr@gnu.org>
11149
11150 * w32font.c (QCsubranges): New symbol.
11151 (w32font_open, w32font_has_char): Get subranges from subproperty
11152 of extra.
11153 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
11154 (syms_of_w32font): Define :subranges symbol.
11155
11156 * font.c (font_put_extra): Expose externally.
11157
11158 * font.h (font_put_extra): Move declaration from font.c.
11159
11160 * font.c (Ffont_get): Use font driver to determine otf capability.
11161 (adjust_anchor): Check if driver defines anchor_point before using.
11162
11163 * w32font.c (w32font_open): Handle size, height and pixel_size better.
11164 (w32font_draw): Use options.
11165 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
11166 Fix detection of truetype fonts.
11167 (registry_to_w32_charset): Handle charsets other than iso8859-1
11168 expressed as lisp symbols.
11169 (w32_registry): Express charset as lisp symbol.
11170 (fill_in_logfont): Reverse pixel and point height logic.
11171 Don't set width here. Set quality to default.
11172
11173 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
11174 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
11175
11176 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
11177 Remove redundant loop and allocation.
11178
11179 * makefile.w32-in (font.o, w32font.o): New objects.
11180 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
11181 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
11182
11183 * xdisp.c (fill_composite_glyph_string): Make the first arg to
11184 STORE_XCHARB a valid l-value.
11185
11186 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
11187 calculations for non-Truetype fonts.
11188 (x_draw_glyph_string): Sync with xterm.c.
11189 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
11190 Remove redundant code.
11191 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
11192
11193 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
11194 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
11195
11196 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
11197 (x_to_w32_charset, w32_to_x_charset): Expose externally.
11198
11199 * w32font.c: New file for w32 font backend.
11200
112012008-02-01 Kenichi Handa <handa@m17n.org>
11202
11203 * term.c: Don't include "buffer.h" twice.
11204
112052008-02-01 Kenichi Handa <handa@m17n.org>
11206
11207 * character.c (Funibyte_string): New function.
11208 (syms_of_character): Defsubr it.
11209
112102008-02-01 Jason Rumney <jasonr@gnu.org>
11211
11212 * w32term.c [USE_FONT_BACKEND]:
11213 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
11214 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
11215 (x_draw_glyph_string, x_draw_glyph_string_foreground)
11216 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
11217 (x_free_frame_resources): Sync with xterm.c.
11218
112192008-02-01 Andreas Schwab <schwab@suse.de>
11220
11221 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
11222 char-table size.
11223
112242008-02-01 Kenichi Handa <handa@m17n.org>
11225
11226 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
11227
112282008-02-01 Kenichi Handa <handa@m17n.org>
11229
11230 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
11231 font_otf_gpos, add font_drive_otf.
11232
11233 * fontset.c (fontset_find_font): Pay attention to font size
11234 specified for a font.
11235 (reorder_font_vector): Check contents of font_def.
11236
11237 * font.c (struct otf_list): Delete it.
11238 (otf_list): Make it a lisp variable.
11239 (otf_open): Use lispy otf_list.
11240 (generate_otf_features): Rename from parse_gsub_gpos_spec.
11241 (check_otf_features): New function.
11242 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
11243 New functions.
11244 (font_drive_otf): New function merging font_otf_gsub and
11245 font_otf_gpos.
11246 (font_open_for_lface): New arg spec. Change argument order.
11247 (font_load_for_face): Adjust for the change of font_open_for_lface.
11248 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
11249 Ffont_otf_gpos.
11250 (syms_of_font): Staticpro otf_list. Delete defsubr of
11251 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
11252
11253 * xfaces.c (set_font_frame_param): Adjust for the change of
11254 font_open_for_lface.
11255
11256 * font.h (font_open_for_lface): Adjust prototype.
11257 (struct font_driver): Delete members otf_gsub and otf_gpos, add
11258 member otf_drive.
11259 (font_otf_gsub, font_otf_gpos): Delete externs.
11260 (font_drive_otf): Extern it.
11261
112622008-02-01 Kenichi Handa <handa@m17n.org>
11263
11264 * font.c (font_at): If the window W is not on a window system,
11265 return Qnil.
11266
11267 * coding.c (produce_chars, encode_coding): Don't call
11268 insert_from_gap if no characters to produce.
11269
112702008-02-01 Kenichi Handa <handa@m17n.org>
11271
11272 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
11273 Fclear_face_cache.
11274
11275 * xfaces.c (face_for_font): Check also face->font==font->font.font.
11276
112772008-02-01 Miles Bader <miles@gnu.org>
11278
11279 * emacs.c (main): Change default value of `enable_font_backend' to 1.
11280 Parse "--disable-font-backend" option.
11281 (standard_args): Add "--disable-font-backend" option.
11282
112832008-02-01 Kenichi Handa <handa@m17n.org>
11284
11285 * fontset.c (fontset_find_font): New function.
11286 (fontset_font): Use fontset_find_font.
11287 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
11288 Register the specified font for all Latin characters.
11289 (new_fontset_from_font): Register the specified font for all Latin
11290 characters.
11291 (dump_fontset): For a realized fontset, include the base fontset
11292 name in the returned vector.
11293
112942008-02-01 Kenichi Handa <handa@m17n.org>
11295
11296 * character.h (CHAR_STRING): Cast C to unsigned on calling
11297 char_string.
11298
11299 * character.c (char_string): Type of arg C changed to unsigned.
11300 Signal an error if C is an invalid character code.
11301
11302 * editfns.c (general_insert_function, Fchar_to_string):
11303 Use CHARACTERP, not INTEGERP.
11304
113052008-02-01 Kenichi Handa <handa@m17n.org>
11306
11307 * character.h (MIN_MULTIBYTE_LEADING_CODE)
11308 (MAX_MULTIBYTE_LEADING_CODE): New macros.
11309
11310 * regex.c (analyse_first): Fix for multibyte characters in "case
11311 charset:" and "case categoryspec:".
11312
113132008-02-01 Andreas Schwab <schwab@suse.de>
11314
11315 * Makefile.in (LIBES): Move standard libraries to the end.
11316
113172008-02-01 Kenichi Handa <handa@m17n.org>
11318
11319 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
11320 nonzero, don't shrink the buffer nextb.
11321
11322 * buffer.h (struct buffer_text): New member inhibit_shrinking.
11323
11324 * coding.c (coding_alloc_by_making_gap): New arg offset.
11325 (alloc_destination): Call coding_alloc_by_making_gap with the arg
11326 offset.
11327 (decode_coding_iso_2022): Update coding->safe_charsets.
11328 (decode_coding_gap): Temporarily set
11329 current_buffer->text->inhibit_shrinking to 1.
11330
113312008-02-01 Kenichi Handa <handa@m17n.org>
11332
11333 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
11334 indexing into elements of s->cmp and s->char2b.
11335
113362008-02-01 Juanma Barranquero <lekktu@gmail.com>
11337
11338 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
11339
113402008-02-01 Kenichi Handa <handa@m17n.org>
11341
11342 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
11343 target_multibyte instead of multibyte.
11344 (re_match_2_internal): Call bcmp_translate with target_multibyte.
11345 (bcmp_translate): Change the argument name from multibyte to
11346 target_multibyte.
11347
113482008-02-01 Kenichi Handa <handa@m17n.org>
11349
11350 These changes are to compile a regexp into a pattern that can be
11351 used both for multibyte and unibyte targets.
11352
11353 * Makefile.in (search.o): Depend on charset.h.
11354
11355 * character.c (multibyte_char_to_unibyte_safe): New function.
11356
11357 * search.c: Include "charset.h".
11358 (compile_pattern_1): Delete argument multibyte. Don't set
11359 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
11360 (compile_pattern): Don't compare cp->buf.target_multibyte.
11361 Compare cp->buf.charset_unibyte.
11362 (compile_pattern): Set cp->buf.target_multibyte.
11363
11364 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
11365
11366 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
11367
11368 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
11369 multibyte. Change callers.
11370 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
11371 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
11372 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
11373 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
11374 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
11375 (regex_compile): Make the compiled pattern usable both for
11376 multibyte and unibyte targets.
11377 (analyse_first): Make the fastmap usable both for multibyte and
11378 unibyte targets.
11379 (TRANSLATE_VIA_MULTIBYTE): Delete.
11380 (re_match_2_internal): Pay attention to the case that the
11381 multibyteness of bufp and target may be different.
11382
113832008-02-01 Kenichi Handa <handa@m17n.org>
11384
11385 * xdisp.c (x_produce_glyphs): When a font is not found, make the
11386 empty box occupy at least one column width.
11387
113882008-02-01 Miles Bader <miles@gnu.org>
11389
11390 * Makefile.in: Remove redundant HAVE_XFT clause.
11391
113922008-02-01 Kenichi Handa <handa@m17n.org>
11393
11394 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
11395
113962008-02-01 Kenichi Handa <handa@m17n.org>
11397
11398 * fontset.c (Finternal_char_font): Fix for the case of POSITION
11399 being nil.
11400
114012008-02-01 Kenichi Handa <handa@m17n.org>
11402
11403 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
11404
114052008-02-01 Kenichi Handa <handa@m17n.org>
11406
11407 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
11408
114092008-02-01 Kenichi Handa <handa@m17n.org>
11410
11411 * search.c (simple_search): Fix previous change.
11412
114132008-02-01 Kenichi Handa <handa@m17n.org>
11414
11415 * xftfont.c (ftfont_font_format): Extern declaration.
11416
11417 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
11418
11419 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
11420 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
11421
11422 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
11423 (ftfont_font_format): Fix previous change.
11424
11425 * font.h (Ffont_xlfd_name): EXFUN it.
11426
11427 * font.c (font_parse_xlfd): Fix the array size of `f'.
11428 (register_font_driver): Use EQ to compare driver->type.
11429
11430 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
11431 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
11432 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
11433
114342008-02-01 Kenichi Handa <handa@m17n.org>
11435
11436 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
11437 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
11438
114392008-02-01 Kenichi Handa <handa@m17n.org>
11440
11441 * xfont.c (xfont_open): Set font->format.
11442
11443 * xftfont.c (xftfont_open): Set font->format.
11444
11445 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
11446 (ftfont_list): Include FC_FONTFORMAT in FcObject.
11447 (ftfont_open): Set font->format.
11448 (ftfont_font_format): New function.
11449
11450 * font.h (struct font): New member format.
11451
11452 * font.c (Qopentype): New variable.
11453 (syms_of_font): Defsym it.
11454 (Fquery_font): Change the format of the last element of the return
11455 value.
11456
114572008-02-01 Kenichi Handa <handa@m17n.org>
11458
11459 * xfns.c (xic_create_xfontset): Try the default fontset name as a
11460 last resort.
11461
114622008-02-01 Kenichi Handa <handa@m17n.org>
11463
11464 * coding.c (detect_coding_charset): Fix detection of multi-byte
11465 charset.
11466
114672008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
11468
11469 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
11470
114712008-02-01 Kenichi Handa <handa@m17n.org>
11472
11473 * xdisp.c (get_next_display_element): Set it->face_id for the
11474 first component of a composition.
11475 (x_produce_glyphs): Check if the font is changed or not for composition.
11476
114772008-02-01 Kenichi Handa <handa@m17n.org>
11478
11479 * fontset.c (Qlatin): New variable.
11480 (syms_of_fontset): Define it as a lisp symbol.
11481 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
11482
114832008-02-01 Kenichi Handa <handa@m17n.org>
11484
11485 * font.c (font_unparse_fcname): Pay attention to the case that
11486 some of font property is a null string.
11487
114882008-02-01 Kenichi Handa <handa@m17n.org>
11489
11490 * term.c: Include "composite.h".
11491 (encode_terminal_code): Output all components of composition.
11492 Check the size of encode_terminal_src.
11493 (produce_glyphs): For composition, call produce_composite_glyph.
11494 (append_composite_glyph, produce_composite_glyph): New functions.
11495
11496 * xdisp.c (x_produce_glyphs): In handling composition, if a font
11497 is not found, get font_info from the current ascii face.
11498
114992008-02-01 Kenichi Handa <handa@m17n.org>
11500
11501 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
11502 buffer-file-name to Qnil before calling insert_from_buffer.
11503
11504 * font.c (font_unparse_fcname): Pay attention to the case that
11505 foundry is a null string.
11506
115072008-02-01 Kenichi Handa <handa@m17n.org>
11508
11509 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
11510
11511 * font.c (Qunicode_sip): New variable.
11512 (syms_of_font): Declare it as a Lisp symbol.
11513
11514 * font.h (Qunicode_sip): Extern it.
11515
115162008-02-01 Kenichi Handa <handa@m17n.org>
11517
11518 * composite.c (get_composition_id): Pay attention to TAB component.
11519
11520 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
11521 TAB. Adjust for the change of s->char2b which always points to
11522 the first element of allocated memory.
11523
11524 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
11525
11526 * xdisp.c (handle_composition_prop): Set it->c to the first
11527 non-TAB component.
11528 (fill_composite_glyph_string): Change argument.
11529 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
11530 (x_produce_glyphs): Fix handling of left/right padding.
11531
115322008-02-01 Kenichi Handa <handa@m17n.org>
11533
11534 * coding.c (detect_coding_system): Fix for handling off
11535 inhibit_iso_escape_detection. Fix for the case that no coding
11536 system is defined for a specific coding category.
11537
115382008-02-01 Kenichi Handa <handa@m17n.org>
11539
11540 * font.c (font_matching_entity): Delete unused local var.
11541
11542 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
11543 opening a font.
11544
11545 * fileio.c (Finsert_file_contents): On recovering a file, assume
11546 Unix-like eol.
11547 (choose_write_coding_system): On auto-saving a file, force
11548 Unix-like eol.
11549
11550 * coding.c (setup_coding_system): Fix setting of
11551 coding->common_flags based on eol_type.
11552 (coding_inherit_eol_type): If PARENT is not nil, be sure to
11553 inherit from it.
11554
115552008-02-01 Kenichi Handa <handa@m17n.org>
11556
11557 * alloc.c (NSTATICS): Increas to 0x600.
11558
115592008-02-01 Kenichi Handa <handa@m17n.org>
11560
11561 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
11562 (ftfont_list): Don't check :name property.
11563 (ftfont_match): New function.
11564 (ftfont_pattern_entity): If the pattern doesn't contain
11565 FC_SPACING, don't assume FC_MONO.
11566
11567 * font.h (struct font_driver): New member `match'.
11568 (font_update_drivers): Adjust prototype.
11569
11570 * font.c (font_parse_fcname, font_parse_name): Don't change :name
11571 property of FONT.
11572 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
11573 them unconditionally.
11574 (font_matching_entity): New function.
11575 (font_open_by_name): Try font_matching_entity if exact match is
11576 not found.
11577 (font_update_drivers): Delete the arg FONT. Return a list of
11578 actually used backends. Don't free faces, font caches here.
11579 Don't store data in frame parameters. Don't call x_set_font.
11580 (Ffont_spec): Store :name property as is.
11581 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
11582 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
11583 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
11584 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
11585 Call font->driver->otf_gsub instead of font_otf_gsub.
11586
11587 * frame.c (x_set_font_backend): Do more works that were done in
11588 font_update_drivers before.
11589
11590 * xfont.c (xfont_match): New function.
11591 (xfont_driver): Set xfont_driver.match to xfont_match.
11592 (xfont_draw): Set font in GC if necessary.
11593
11594 * ftxfont.c (ftxfont_match): New function.
11595 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
11596
11597 * xftfont.c (xftfont_match): New function.
11598 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
11599
116002008-02-01 Kenichi Handa <handa@m17n.org>
11601
11602 * font.h (struct font): New member scalable.
11603 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
11604 (font_otf_gsub): Adjust prototype.
11605
11606 * font.c (font_otf_capability): Fix handling of the default langsys.
11607 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
11608 Check the contents of SPEC.
11609 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
11610 (check_gstring): New function.
11611 (REPLACEMENT_CHARACTER): New macro.
11612 (font_otf_gsub): New arg alternate_subst. Be sure to set all
11613 glyph codes of GSTRING.
11614 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
11615 (font_prepare_composition): Set cmp->glyph_len.
11616 (font_open_entity): Set font->scalable.
11617 (Ffont_get): Handle :otf property.
11618 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
11619 functions.
11620 (Fquery_font): Use font->font.full_name.
11621 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
11622 Sfont_otf_alternates.
11623
11624 * ftfont.c (ftfont_open): Set font->font.full_name and
11625 font->font.name properly. Fix calculation of font->font.height
11626 and font->min_width.
11627
11628 * ftxfont.c (ftxfont_create_gcs): New function.
11629 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
11630 (ftxfont_draw_backgrond): Fix filling region.
11631 (ftxfont_default_fid): New function.
11632 (ftxfont_open): Set xfont->fid to the return value of
11633 ftxfont_default_fid.
11634 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
11635 (ftxfont_done_face): Free only GCs that are created by
11636 ftxfont_create_gcs.
11637 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
11638
11639 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
11640 Clip to src->width, etc (not src->clip_XXX).
11641
11642 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
11643 FontBackend frame parameter.
11644
116452008-02-01 Kenichi Handa <handa@m17n.org>
11646
11647 * font.h (struct font_driver_list): New member `on'.
11648 (Fclear_font_cache): EXFUN it.
11649 (font_update_drivers): Extern it.
11650
11651 * font.c (font_unparse_fcname): Fix typo (swidth->width).
11652 (font_list_entities): Check driver_list->on.
11653 (register_font_driver): Initalize `on' member to 0.
11654 (font_update_drivers): New function.
11655 (Fclear_font_cache): Check driver_list->on.
11656
11657 * frame.h (Qfont_backend): Extern it.
11658 (x_set_font_backend): Extern it.
11659
11660 * frame.c (Qfont_backend): New variable.
11661 (frame_parms): New element for font-backend.
11662 (x_set_font_backend): New function.
11663
11664 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
11665 FontBackend frame parameter.
11666 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
11667 x_set_font_backend.
11668
11669 * xfont.c (xfont_list): Don't try listing by :name property if the
11670 name is not for XLFD.
11671
116722008-02-01 Kenichi Handa <handa@m17n.org>
11673
11674 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
11675 (LGLYPH_SET_TO): New macros.
11676 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
11677 element of G is vector or not.
11678 (font_at): Extern it.
11679
11680 * font.c: Include window.h.
11681 (font_lispy_object): New function.
11682 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
11683 end of valid glyph.
11684 (font_close_object): Fix getting (struct font *).
11685 (font_at): New function.
11686 (Ffont_get): If FONT is a font-object, get entity from it.
11687 (Ffont_make_gstring): Initialize elements of glyphs with nil.
11688 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
11689 range check.
11690 (Ffont_at): New function.
11691 (syms_of_font): Defsubr Sfont_at.
11692
11693 * xdisp.c (it_props): Move the entry for Qauto_composed to just
11694 before the entry for Qcomposition.
11695 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
11696 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
11697 the font in gstring.
11698 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
11699 LGLYPH_FORM (g) to detect the end of valid glyph.
11700 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
11701 we are composing with gstring.
11702
11703 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
11704 Check if adjustment is vector or not.
11705
11706 * Makefile.in (font.o): Make it depends on window.h.
11707
117082008-02-01 Kenichi Handa <handa@m17n.org>
11709
11710 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
11711 adjustment is vector or not.
11712
117132008-02-01 Miles Bader <miles@gnu.org>
11714
11715 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
11716
117172008-02-01 Kenichi Handa <handa@m17n.org>
11718
11719 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
11720 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
11721 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
11722
11723 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
11724 (DEVICE_DELTA): Fix typo.
11725 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
11726 LGLYPH format.
11727
11728 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
11729 the change of LGLYPH format.
11730
117312008-02-01 Kenichi Handa <handa@m17n.org>
11732
11733 * ftfont.c (ftfont_list): Fix typo.
11734 (ftfont_build_basic_charsets): Don't include letters with diacritics.
11735
117362008-02-01 Jan Djärv <jan.h.d@swipnet.se>
11737
11738 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
11739
11740 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
11741 xftface_info is non-NULL.
11742
117432008-02-01 Jan Djärv <jan.h.d@swipnet.se>
11744
11745 * ftfont.c (ftfont_list): Move misplaced #endif.
11746
117472008-02-01 Kenichi Handa <handa@m17n.org>
11748
11749 * ftfont.c (ftfont_list): Pay attention to the case that
11750 FC_CAPABILITY is not defined.
11751
117522008-02-01 Kenichi Handa <handa@m17n.org>
11753
11754 * xftfont.c (xftfont_open): Set charset related members to -1.
11755
11756 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
11757 QCname.
11758 (ftfont_open): Set charset related members to -1.
11759
11760 * fontset.c (Votf_script_alist): New variable.
11761 (syms_of_fontset): Initialize it.
11762 (fontset_font): Delete unused variable.
11763
11764 * fontset.h (Votf_script_alist): Extern it.
11765
11766 * font.c (font_find_for_lface): Optimize code.
11767
11768 * font.h (font_close_object, font_merge_old_spec): Extern them.
11769
117702008-02-01 Kenichi Handa <handa@m17n.org>
11771
11772 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
11773 (syms_of_font): Initialize them.
11774 (font_pixel_size): Allow float value in dpi.
11775 (font_prop_validate_type): Delete.
11776 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
11777 Change caller.
11778 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
11779 (font_prop_validate_extra): Delete.
11780 (font_prop_validate_spacing): New function.
11781 (font_property_table): Add elements for all known properties.
11782 (get_font_prop_index): Rename from check_font_prop_name. New
11783 argument FROM. Change caller.
11784 (font_prop_validate): Validate all known properties.
11785 (font_put_extra): Delete argument force. Change caller.
11786 (font_expand_wildcards): Make it static. Fix the way of shrinking
11787 the possible range.
11788 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
11789 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
11790 Change caller.
11791 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
11792 (font_parse_fcname): Delete argument merge. Fix parsing of point
11793 size. Don't validate properties values here. Change caller.
11794 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
11795 (font_open_by_name): Delete unused variable.
11796 (Ffont_spec): Likewise. Validate property values.
11797 (Ffont_match_p): New function.
11798
11799 * font.h (QCscalable): Extern it.
11800 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
11801
11802 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
11803
11804 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
11805 (xfont_list_pattern): New function.
11806 (xfont_list): Use xfont_list_pattern.
11807
118082008-02-01 Kenichi Handa <handa@m17n.org>
11809
11810 * font.h (Flist_fonts): EXFUN it.
11811
118122008-02-01 Jason Rumney <jasonr@gnu.org>
11813
11814 * w32term.c (w32_initialize): Add back smoothing_type and
11815 smoothing_enabled definitions.
11816
118172008-02-01 Kenichi Handa <handa@m17n.org>
11818
11819 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
11820 s->face->font on determining underline position.
11821
118222008-02-01 Kenichi Handa <handa@m17n.org>
11823
11824 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
11825 (font_has_char): Accept font-object too.
11826 (font_find_for_lface): Try at first with a size specified in face.
11827
118282008-02-01 Kenichi Handa <handa@m17n.org>
11829
11830 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
11831 font_open_by_name.
11832
118332008-02-01 Kenichi Handa <handa@m17n.org>
11834
11835 * font.h (QCspacing, QCdpi): Extern them.
11836 (enum font_spacing): New enum.
11837 (FONT_PIXEL_SIZE_QUANTUM): New macro.
11838
11839 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
11840 (QCspacing, QCdpi): New variables.
11841 (syms_of_font): Initialize them.
11842 (font_pixel_size): New function.
11843 (font_put_extra): New function.
11844 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
11845 in FONT_EXTRA.
11846 (font_parse_fcname): Handle enumerated values (e.g. bold).
11847 Fix handling font size. Add QCname property that contains only
11848 unknown properties.
11849 (font_score): Change argument. Change caller. Pay attention to
11850 FONT_PIXEL_SIZE_QUANTUM.
11851 (font_sort_entites, font_list_entities, font_find_for_lface)
11852 (font_open_for_lface, font_open_by_name): Fix handling of font size.
11853 (Ffont_spec): Add QCname property that contains only unknown properties.
11854
11855 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
11856 include weight in listing pattern, instead check weight of each
11857 listed font. Don't include scalable in pattern. Pay attention to
11858 FONT_PIXEL_SIZE_QUANTUM.
11859
118602008-02-01 Kenichi Handa <handa@m17n.org>
11861
11862 * font.c (font_parse_fcname): Fix parsing of point-size.
11863 (font_unparse_fcname): Produce symbolic names for style properties.
11864 (font_list_entities): Handle float size correctly.
11865 (font_open_by_name): Prefer `normal' property values if the name
11866 doesn't specify them.
11867
11868 * fontset.c (Finternal_char_font): Use font_get_name, not
11869 Ffont_xlfd_name.
11870
11871 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
11872 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
11873 pattern. Don't force scalable.
11874
11875 * xftfont.c (xftfont_open): For generating a name, start from
11876 96-byte buffer.
11877
118782008-02-01 Jan Djärv <jan.h.d@swipnet.se>
11879
11880 * frame.h (x_new_fontset2): Fix prototype.
11881
118822008-02-01 Kenichi Handa <handa@m17n.org>
11883
11884 * font.h (struct font_driver): Delete member parse_name.
11885 (font_match_p, font_get_spec, font_parse_fcname)
11886 (font_unparse_fcname): Extern them.
11887 (font_get_name): Adjust prototype.
11888
11889 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
11890 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
11891 (font_expand_wildcards): Fix handling ENCODING field. Avoid
11892 unnecessary checks for weight, slant, and swidth.
11893 (font_parse_fcname): New function.
11894 (font_unparse_fcname): New function.
11895 (font_parse_name): New function.
11896 (font_match_p): New function.
11897 (font_get_name): Change return value to Lisp string.
11898 (font_get_spec): New function.
11899 (Qunspecified, Qignore_defface): Don't extern them.
11900 (font_find_for_lface): Assume that LFACE is fully specified.
11901 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
11902 object, use it for FACE.
11903 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
11904 driver->parse_name.
11905 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
11906
11907 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
11908 prototype.
11909
11910 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
11911 argument F. Don't call Fnew_fontset. Instead, directly call
11912 make_fontset.
11913
11914 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
11915
11916 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
11917 of x_new_fontset2.
11918
11919 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
11920 (Qsans__serif): New variables.
11921 (ftfont_generic_family_list): New variable.
11922 (syms_of_ftfont): Initialize the above variables.
11923 (ftfont_pattern_entity): Delete argument NAME.
11924 (ftfont_list_generic_family): New function.
11925 (ftfont_parse_name): Delete this function.
11926 (ftfont_list): Try generic family only when FcFontList found no font.
11927 (ftfont_list_family): Fix args to FcObjectSetBuild.
11928
11929 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
11930 object in attrs[LFACE_FONT_INDEX].
11931 (set_lface_from_font_name): Cancel all changes for font-backend.
11932 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
11933 function.
11934 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
11935 font object in QCfont attribute.
11936 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
11937 (realize_default_face) [USE_FONT_BACKEND]: Call
11938 set_lface_from_font_and_fontset.
11939
11940 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
11941 "fixed", and signal error here if no suitable font was found.
11942
11943 * xfont.c (xfont_parse_name): Delete this function.
11944
11945 * xftfont.c (xftfont_open): Change coding style of error
11946 handling. Generate fontconfig's fontname pattern.
11947
11948 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
11949 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
11950
11951 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
11952 Both args FONTSET and FONT_OBJECT must be existing ones.
11953
119542008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11955
11956 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
11957
119582008-02-01 Kenichi Handa <handa@m17n.org>
11959
11960 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
11961
11962 * font.h (struct font): Fix typo.
11963
11964 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
11965 XLFD_XXX_INDEX.
11966 (enum xlfd_field_mask): New enum.
11967 (intern_font_field): Changed argument. Change caller. If digits
11968 are followed by non-digits, return a symbol.
11969 (font_expand_wildcards): New function.
11970 (font_parse_xlfd): Fix wildcard handling.
11971 (Ffont_spec): If :name is specified, reflect the info in the other
11972 properties.
11973
11974 * ftfont.c (ftfont_pattern_entity): Fix typo.
11975 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
11976 locale.
11977
119782008-02-01 Kenichi Handa <handa@m17n.org>
11979
11980 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
11981
11982 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
11983 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
11984 registry doesn't specify encoding part.
11985 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
11986 (font_open_by_name): At first try parsing the name.
11987 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
11988 as Lisp symbols.
11989
11990 * fontset.c (reorder_font_vector): Pay attention to the case that
11991 the 3rd element of font_def is nil.
11992 (fontset_font): For the default fontset, append one more fontset
11993 elements for a script-based font specification. Don't add script
11994 attribute on finding a font.
11995 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
11996 font name.
11997 (fontset_ascii_font): If a font can't be opened, return nil.
11998
11999 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
12000 (ftfont_pattern_entity): New function.
12001 (ftfont_get_cache): Assume that freetype_font_cache is already
12002 initialized.
12003 (ftfont_list): Handle the case that a file is specified in font
12004 name. Use ftfont_pattern_entity to generate entities.
12005 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
12006 (syms_of_ftfont): Initialize freetype_font_cache.
12007
12008 * xftfont.c (xftfont_open): Make the font name fontconfig's
12009 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
12010 (xftfont_close): Free font->font.name if not NULL.
12011
12012 * xfont.c (xfont_list): If script is specified for a font, return
12013 null_vector.
12014 (xfont_list_family): Declare argument type.
12015
12016 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
12017 name, set LFACE_FONT (lface) to nil.
12018
12019 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
12020 return Qnil.
12021
120222008-02-01 Kenichi Handa <handa@m17n.org>
12023
12024 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
12025 (standard_args): Add "-enable-font-backend".
12026
120272008-02-01 Kenichi Handa <handa@m17n.org>
12028
12029 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
12030 (struct xftdraw_list, xftdraw_list): Delete them.
12031 (register_xftdraw, check_xftdraw): Delete them.
12032 (xftfont_prepare_face): Don't call register_xftdraw.
12033 (xftfont_done_face): Don't call check_xftdraw.
12034 (xftfont_draw): Get background color only when with_background is
12035 nonzero.
12036
12037 * xfont.c (xfont_encode_char): Fix calculation of char2b.
12038
120392008-02-01 Kenichi Handa <handa@m17n.org>
12040
12041 These changes are for the new font handling codes.
12042
12043 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
12044 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
12045 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
12046 (FONTSRC, FONTOBJ): New variables.
12047 (obj): Add $(FONTOBJ).
12048 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
12049 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
12050 @LIBOTF_LIBS@.
12051 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
12052 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
12053
12054 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
12055
12056 * character.h (Vscript_representative_chars): Extern it.
12057
12058 * character.c (Vscript_representative_chars): New variable.
12059 (syms_of_character): Declare it as a Lisp variable.
12060
12061 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
12062 enable_font_backend is nonzero, accept the composition method
12063 COMPOSITION_WITH_GLYPH_STRING.
12064
12065 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
12066 enumeration COMPOSITION_WITH_GLYPH_STRING.
12067
12068 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
12069 members clip_x, clip_y, clip_width, and clip_height.
12070 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
12071
12072 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
12073 --enable-font-backend. Call syms_of_font.
12074
12075 * fns.c (assoc_no_quit): New function.
12076
12077 * fontset.h (FONT_INFO_FROM_FACE): New macro.
12078 (face_for_font, new_fontset_from_font)
12079 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
12080
12081 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
12082 (fontset_font, fontset_ascii, face_for_char)
12083 (make_fontset_for_ascii_face, Ffont_info)
12084 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
12085 is nonzero, use font-backend mechanism.
12086 (find_font_encoding): Make it non-static.
12087 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
12088 New functions.
12089
12090 * frame.h (struct frame): New members resx and resy.
12091 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
12092 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
12093
12094 * frame.c [USE_FONT_BACKEND]: Include "font.h".
12095 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
12096
12097 * lisp.h (assoc_no_quit): Extern it.
12098
12099 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
12100 Through out the file, use FONT_INFO_FROM_FACE instead of
12101 FONT_INFO_FROM_ID, use get_per_char_metric instead of
12102 rif->per_char_metric.
12103 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
12104 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
12105 (get_glyph_face_and_encoding, fill_composite_glyph_string)
12106 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
12107 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
12108 nonzero, use font-backend mechanism.
12109 (get_per_char_metric): New function.
12110
12111 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
12112 (set_lface_from_font_name)
12113 (set_font_frame_param, free_realized_face)
12114 (prepare_face_for_display, clear_face_gcs)
12115 (Finternal_set_font_selection_order, realize_x_face)
12116 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
12117 font-backend mechanism.
12118 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
12119 (load_face_font) [USE_FONT_BACKEND]: Abort.
12120 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
12121 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
12122
12123 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
12124 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
12125 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
12126 nonzero, register all available font drivers. Call
12127 x_default_font_parameter for deciding a font.
12128 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
12129
12130 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
12131 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
12132 (x_set_glyph_string_clipping_exactly)
12133 (x_compute_glyph_string_overhangs)
12134 (x_draw_glyph_string_foreground)
12135 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
12136 (x_free_frame_resources) [USE_FONT_BACKEND]: If
12137 enable_font_backend is nonzero, use font-backend mechanism.
12138 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
12139
121402008-02-01 Kenichi Handa <handa@m17n.org>
12141
12142 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
12143 system_eol_type.
12144 (syms_of_coding): Initialize system_eol_type.
12145
12146 * process.c (Fset_process_coding_system): Inherit system's eol
12147 format if necessary.
12148
121492008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12150
12151 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
12152
121532008-02-01 Kenichi Handa <handa@m17n.org>
12154
12155 * coding.c (decode_eol): Pay attention to buffer relocation in
12156 del_range_2.
12157 (decode_coding): Call decode_eol before restoring undo_list.
12158
121592008-02-01 Kenichi Handa <handa@m17n.org>
12160
12161 * charset.c (Fdefine_charset_internal): Fix setting of
12162 emacs_mule_bytes.
12163
121642008-02-01 Kenichi Handa <handa@m17n.org>
12165
12166 * keyboard.c (read_char): Check if C is a character or not before
12167 looking up Vkeyboard_translate_table.
12168
121692008-02-01 Kenichi Handa <handa@m17n.org>
12170
12171 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
12172 condition to terminate the loop.
12173
121742008-02-01 Kenichi Handa <handa@m17n.org>
12175
12176 * coding.c (produce_composition): Compare charbuf[i] instead of
12177 args[i] against 0.
12178 (Fterminal_coding_system): Use EQ to compare Lisp objects.
12179
121802008-02-01 Kenichi Handa <handa@m17n.org>
12181
12182 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
12183 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
12184 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
12185 detect_coding.
12186 (emacs_mule_char): Handle old style (Emacs 20) component character
12187 of a composition.
12188 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
12189 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
12190 composition rule.
12191 (decode_coding_emacs_mule): Handle invalid bytes correctly.
12192
121932008-02-01 Kenichi Handa <handa@m17n.org>
12194
12195 * coding.c (encode_coding_ccl): Allocate destination dynamically
12196 when necessary.
12197
121982008-02-01 Kenichi Handa <handa@m17n.org>
12199
12200 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
12201 the loop. When quitted, show a proper error message.
12202
122032008-02-01 Kenichi Handa <handa@m17n.org>
12204
12205 * xterm.c (x_set_glyph_string_clipping_exactly): Set
12206 src->clip_head and src->clip_tail temporarily instead of src->hl.
12207
12208 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
12209 character sequence.
12210 (Fccl_execute_on_string): Use ASET, not XSET.
12211
122122008-02-01 Kenichi Handa <handa@m17n.org>
12213
12214 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
12215
122162008-02-01 Kenichi Handa <handa@m17n.org>
12217
12218 * coding.c (decode_coding): Fix the condition of terminating the
12219 decoding loop.
12220
122212008-02-01 Kenichi Handa <handa@m17n.org>
12222
12223 * data.c (Faset): On setting a character bigger than 255 in a
12224 unibyte string, signal an error instead of make the string multibyte.
12225
122262008-02-01 Kenichi Handa <handa@m17n.org>
12227
12228 * charset.c (map_charset_chars): Fix for ascii-compatible charset
12229 made by a mapping table.
12230
122312008-02-01 Kenichi Handa <handa@m17n.org>
12232
12233 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
12234 not.
12235 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
12236 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
12237
12238 * xterm.c (x_draw_composite_glyph_string_foreground): Check
12239 s->face is NULL or not.
12240
122412008-02-01 Kenichi Handa <handa@m17n.org>
12242
12243 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
12244 (x_draw_glyph_string): Fix drawing of right_overhang and
12245 left_overhang around/on cursor.
12246
12247 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
12248
122492008-02-01 Kenichi Handa <handa@m17n.org>
12250
12251 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
12252
122532008-02-01 Kenichi Handa <handa@m17n.org>
12254
12255 * coding.c (Fdefine_coding_system_internal)
12256 (Fdefine_coding_system_alias): Avoid a duplicated element in
12257 Vcoding_system_alist.
12258
122592008-02-01 Kenichi Handa <handa@m17n.org>
12260
12261 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
12262
12263 * coding.c (Qcoding_system_define_form): New variable.
12264 (syms_of_coding): Intern and staticpro it.
12265 (Fcoding_system_p): Check Qcoding_system_define_form.
12266 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
12267
12268 * coding.h (CODING_SYSTEM_P): If ID is not available, call
12269 Fcoding_system_p.
12270 (CHECK_CODING_SYSTEM): If ID is not available, call
12271 Fcheck_coding_system.
12272 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
12273 Try also Fcheck_coding_system.
12274
122752008-02-01 Kenichi Handa <handa@m17n.org>
12276
12277 * coding.c (code_conversion_restore): GCPRO arg.
12278
122792008-02-01 Kenichi Handa <handa@m17n.org>
12280
12281 * character.c (lisp_string_width): Check multibyteness of STRING.
12282
122832008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12284
12285 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
12286 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
12287 (decode_mac_font_name): Use decode_coding_c_string instead of
12288 decode_coding.
12289 (x_load_font): Initialize fontp->fontset to -1. Set
12290 fontp->encoding_type.
12291
122922008-02-01 Kenichi Handa <handa@m17n.org>
12293
12294 * search.c (search_buffer): Give up BM search on case-fold-search
12295 if one of a target character has a case-equivalence of different
12296 byte length even if that target charcter is an ASCII.
12297 (simple_search): Fix calculation of byte length of matched text.
12298 (boyer_moore): Fix handling of case-equivalent multibyte characters.
12299
123002008-02-01 Kenichi Handa <handa@m17n.org>
12301
12302 * coding.c (decode_coding): Fix handling of invalid bytes.
12303
123042008-02-01 Kenichi Handa <handa@m17n.org>
12305
12306 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
12307 Unicode characters.
12308
123092008-02-01 Kenichi Handa <handa@m17n.org>
12310
12311 * coding.c (encode_coding_object): If a pre-write-conversion
12312 function makes a new buffer, kill it.
12313
123142008-02-01 Kenichi Handa <handa@m17n.org>
12315
12316 * coding.c (QCascii_compatible_p): New variable.
12317 (syms_of_coding): Initialize it.
12318 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
12319 calling string_char.
12320 (record_conversion_result): Add `default:' case.
12321 (coding_charset_list): Delete unused variable `coding_type'.
12322 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
12323 property in the plist of the coding system.
12324 (Fcoding_system_put): Check QCascii_compatible_p.
12325
123262008-02-01 Miles Bader <miles@gnu.org>
12327
12328 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
12329 removed calculation of frame `f', as it's now used.
12330
123312008-02-01 Kenichi Handa <handa@m17n.org>
12332
12333 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
12334 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
12335 (UNIDATA): New variable.
12336 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
12337 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
12338 $(RUN_TEMACS) unconditionally.
12339
123402008-02-01 Kenichi Handa <handa@m17n.org>
12341
12342 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
12343 (admindir): New variable.
12344 ($(lispsource)international/charprop.el): New target.
12345
123462008-02-01 Miles Bader <miles@gnu.org>
12347
12348 * character.c (chars-in-region): Remove obsolete function.
12349 (syms_of_character): Remove its initialization.
12350
123512008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
12352
12353 * w32select.c (validate_coding_system)
12354 (setup_windows_coding_system): New functions.
12355 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
12356 setup_windows_coding_system.
12357 (setup_config, Fw32_get_clipboard_data): Use
12358 validate_coding_system.
12359 (Fx_selection_exists): Move call to setup_config to a place
12360 where signals are allowed.
12361
12362 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
12363 (Fcheck_coding_system): Add declarations.
12364
123652008-02-01 Kenichi Handa <handa@m17n.org>
12366
12367 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
12368
123692008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12370
12371 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
12372 string as the second argument for x_new_fontset.
12373
123742008-02-01 Kenichi Handa <handa@m17n.org>
12375
12376 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
12377 (encode_coding_object): Use safe_call instead of call2.
12378
123792008-02-01 Kenichi Handa <handa@m17n.org>
12380
12381 * fontset.c (Fset_fontset_font): Check family element of a given vector.
12382
12383 * Makefile.in (lisp): Include charprop.el.
12384
123852008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12386
12387 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
12388 Not sure if it's unnecessary.
12389
123902008-02-01 Steven Tamm <steventamm@mac.com>
12391
12392 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
12393 some possibly unnecessary fontset checking code that crashed
12394 when creating a new frame.
12395
123962008-02-01 Kenichi Handa <handa@m17n.org>
12397
12398 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
12399 lookup_face.
12400
12401 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
12402
12403 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
12404
124052008-02-01 Kenichi Handa <handa@m17n.org>
12406
12407 * coding.c: Cancel the change done in HEAD on 2008-02-01.
12408 (coding_charset_list): New function.
12409
12410 * coding.h (coding_charset_list): Extern it.
12411
124122008-02-01 Kenichi Handa <handa@m17n.org>
12413
12414 * fontset.c (Fset_fontset_font): Call find_font_encoding with
12415 concatenation of family and registry.
12416
124172008-02-01 Kenichi Handa <handa@m17n.org>
12418
12419 * character.h (BYTE8_STRING): Fix typo.
12420
12421 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
12422 string to multibyte (sync to HEAD).
12423
12424 * casefiddle.c (casify_region): Handle changes in byte-length
12425 using replace_range_2 (sync to HEAD).
12426
124272008-02-01 Andreas Schwab <schwab@suse.de>
12428
12429 * chartab.c (map_char_table): GCPRO table and arg.
12430
124312008-02-01 Kenichi Handa <handa@m17n.org>
12432
12433 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
12434 already at limit.
12435
124362008-02-01 Kenichi Handa <handa@m17n.org>
12437
12438 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
12439 instead of fast_c_string_match_ignore_case.
12440 (find_font_encoding): Change argument to Lisp_Object. Use
12441 fast_string_match_ignore_case instead of
12442 fast_c_string_match_ignore_case. Change caller.
12443
124442008-02-01 Kenichi Handa <handa@m17n.org>
12445
12446 * xdisp.c (get_next_display_element): In unibyte case, decide to
12447 display in octal form by checking a character by
12448 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
12449
12450 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
12451
12452 * character.c (unibyte_has_multibyte_table): New variable.
12453
12454 * character.h (unibyte_has_multibyte_table): Extern it.
12455 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
12456
124572008-02-01 Kenichi Handa <handa@m17n.org>
12458
12459 * coding.c (encode_coding_iso_2022): Fix handling of charset
12460 annotation.
12461
124622008-02-01 Kenichi Handa <handa@m17n.org>
12463
12464 * coding.c (setup_coding_system): If coding_system is nil, use
12465 Qundecided.
12466 (Fterminal_coding_system): Return nil if terminal coding system is
12467 `undecided'.
12468 (syms_of_coding): Define coding-system `undecided' here. Setup
12469 terminal_coding as `undecided'.
12470
124712008-02-01 Kenichi Handa <handa@m17n.org>
12472
12473 * xdisp.c (message_dolog, set_message_1): Call
12474 unibyte_char_to_multibyte with arg type int.
12475
12476 * lread.c (read1): Fix reading of a char-table.
12477
12478 * print.c (print_object): Include sub char-table in circularities
12479 detection.
12480
124812008-02-01 Kenichi Handa <handa@m17n.org>
12482
12483 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
12484 Append the found sequences in car of ARGS instead of prepending.
12485
124862008-02-01 Kenichi Handa <handa@m17n.org>
12487
12488 * fileio.c (report_file_error): Make a unibyte string from
12489 strerror (errorno).
12490 (Fsubstitute_in_file_name): Fix the arg to
12491 unibyte_char_to_multibyte. It is evaluated twice.
12492
124932008-02-01 Kenichi Handa <handa@m17n.org>
12494
12495 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
12496
124972008-02-01 Kenichi Handa <handa@m17n.org>
12498
12499 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
12500 BOM is not found.
12501 (detect_coding, detect_coding_system): Optimization for ISO-2022
12502 when no 8-bit data is found.
12503
125042008-02-01 Jason Rumney <jasonr@gnu.org>
12505
12506 * w32fns.c (x_to_w32_font): Update to use new coding struct.
12507
125082008-02-01 Kenichi Handa <handa@m17n.org>
12509
12510 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
12511 CHARS.
12512
125132008-02-01 Steven Tamm <steventamm@mac.com>
12514
12515 * macterm.c (mac_encode_char): Add charset argument and update
12516 to use encoding_type.
12517 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
12518 switch to pure fontset.
12519 (decode_mac_font_name): Temporarily remove decoding.
12520 (x_font_name_to_mac_font_name): Temporarily remove encoding.
12521 (x_load_font): Temporarily remove encoding.
12522
125232008-02-01 Kenichi Handa <handa@m17n.org>
12524
12525 * xfaces.c (Fface_font): If frame is not on a window system,
12526 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
12527 refer to face->font.
12528 (split_font_name_into_vector, build_font_name_from_vector)
12529 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
12530 when HAVE_WINDOW_SYSTEM is defined.
12531
125322008-02-01 Kenichi Handa <handa@m17n.org>
12533
12534 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
12535 (x_produce_glyphs): Fix setting of members of cmp in case
12536 cmp->glyph_len is zero.
12537
12538 * fontset.c (Fset_fontset_font): Fix docstring.
12539 (Ffontset_info): Make it backward compatible. New arg ALL.
12540
125412008-02-01 Kim F. Storm <storm@cua.dk>
12542
12543 * process.c (read_process_output): Grow decoding_buf when needed;
12544 this could cause a crash in allocate_string and compact_small_strings.
12545
125462008-02-01 Kenichi Handa <handa@m17n.org>
12547
12548 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
12549
125502008-02-01 Kenichi Handa <handa@m17n.org>
12551
12552 * coding.c (setup_coding_system): Set coding->common_flags
12553 correctly for raw-text.
12554 (consume_chars): On encoding unibyte text by raw-text, don't check
12555 multibyte form.
12556 (encode_coding): On encoding by raw-text, never use translation tables.
12557
12558 * fileio.c (e_write): Short cut for the case of no encoding.
12559
125602008-02-01 Kenichi Handa <handa@m17n.org>
12561
12562 * coding.c (detect_coding, detect_coding_system): Delete unused
12563 variables.
12564
125652008-02-01 Kenichi Handa <handa@m17n.org>
12566
12567 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
12568 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
12569
125702008-02-01 Kenichi Handa <handa@m17n.org>
12571
12572 * coding.c (Ffind_coding_systems_region_internal): Include
12573 raw-text and no-conversion in the result.
12574
125752008-02-01 Kenichi Handa <handa@m17n.org>
12576
12577 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
12578 (load_font_get_repertory): Delete unnecessary check of ENCODING of
12579 FONT_DEF.
12580 (font_def_arg, add_arg, from_arg, to_arg): New args.
12581 (set_fontset_font): Change argument.
12582 (Fset_fontset_font): Fix for the case that TARGET is a script
12583 name and charset name.
12584 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
12585
125862008-02-01 Kenichi Handa <handa@m17n.org>
12587
12588 * fontset.c (fontset_font): Rename from fontset_face. Change return
12589 value.
12590 (face_suitable_for_char_p, face_for_char): Adjust for the change
12591 of fontset_font.
12592 (make_fontset_for_ascii_face): Fix setting of the fontset element
12593 for ASCII.
12594 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
12595 to get a font name.
12596 (Ffontset_info): Adjust for the change of fontset_font.
12597
12598 * coding.c (emacs_mule_char): Check invalid code more rigidly.
12599
12600 * character.h (LEADING_CODE_LATIN_1_MIN)
12601 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
12602
126032008-02-01 Kenichi Handa <handa@m17n.org>
12604
12605 * editfns.c (check_translation): New function.
12606 (Ftranslate_region_internal): Handle M:N mapping.
12607
126082008-02-01 Kenichi Handa <handa@m17n.org>
12609
12610 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
12611
126122008-02-01 Kenichi Handa <handa@m17n.org>
12613
12614 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
12615 goto invalid_code.
12616 (decode_coding_iso_2022): Fix handling of invalid designation.
12617
12618 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
12619 after calling code_conversion_save.
12620
126212008-02-01 Kenichi Handa <handa@m17n.org>
12622
12623 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
12624
12625 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
12626
12627 * fontset.c: Include "intervals.h".
12628 (fontset_face): Fix comparing of Lisp_Objects.
12629 (free_face_fontset, new_fontset_from_font_name): Fix
12630 Lisp_Object/int mixup.
12631
12632 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
12633
12634 * coding.c: Add many prototypes for static functions.
12635 (get_translation_table): Allow max_lookup to be NULL.
12636 (decode_coding, Ffind_coding_systems_region_internal)
12637 (Funencodable_char_position, Fcheck_coding_systems_region): Call
12638 get_translation_table with max_lookup NULL.
12639
126402008-02-01 Kenichi Handa <handa@m17n.org>
12641
12642 * coding.c (get_translation_table): Declare it as Lisp_Object.
12643 (LOOKUP_TRANSLATION_TABLE): New macro.
12644 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
12645 instead of CHAR_TABLE_REF.
12646
126472008-02-01 Kenichi Handa <handa@m17n.org>
12648
12649 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
12650 annotation data format.
12651 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
12652 Change arguments FROM and TO to single argument NCHARS. Change caller.
12653 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
12654 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
12655 (decode_coding_ccl, decode_coding_charset): Pay attention to
12656 coding->charbuf_used.
12657 (get_translation): New function.
12658 (produce_chars): New arguments translation_table and last_block.
12659 Translate characters here. Return number of carryover chars.
12660 Change caller.
12661 (produce_composition): New argument pos. Change caller.
12662 Adjust for the change of annotation data format.
12663 (produce_charset, produce_annotation): Likewise.
12664 (decode_coding, encode_coding): Don't call translate_chars.
12665 (consume_chars): New arg translation_table. Change caller.
12666 (translate_chars): Delete.
12667 (syms_of_coding): Make translation-table's number of extra slots 2.
12668
126692008-02-01 Kenichi Handa <handa@m17n.org>
12670
12671 * search.c (simple_search): Fix setting this_pos_byte in backward
12672 search.
12673
12674 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
12675 byte sequence.
12676 (detect_coding_ccl): Fix setting of the variable valids.
12677
126782008-02-01 Kenichi Handa <handa@m17n.org>
12679
12680 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
12681
12682 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
12683
12684 * editfns.c (Ftranslate_region_internal): Rename from
12685 Ftranslate_region. Accept a char-table in TABLE.
12686 (syms_of_editfns): Defsubr Stranslate_region_internal.
12687
12688 * xfaces.c (set_lface_from_font_name): If a font is specified for
12689 a frame, generate a fontset from the font.
12690 (build_scalable_font_name): If the scalable font is requested for
12691 a specific size, don't change that size.
12692 (try_font_list): Try a scalable font also in the case that a
12693 pattern string is specified.
12694
126952008-02-01 Kenichi Handa <handa@m17n.org>
12696
12697 * xfaces.c (Fface_font): New optional arg CHARACTER.
12698
126992008-02-01 Kenichi Handa <handa@m17n.org>
12700
12701 * charset.h (CHARSET_OFFSET): New macro.
12702
127032008-02-01 Kenichi Handa <handa@m17n.org>
12704
12705 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
12706
12707 * fontset.c (fontset_face): Handle the case that repertory is a
12708 char-table.
12709 (find_font_encoding): Return nil for unknown encoding.
12710 (Fset_fontset_font): Ignore a font of unknown encoding.
12711
127122008-02-01 Kenichi Handa <handa@m17n.org>
12713
12714 * keymap.c (describe_vector): Handle default value of a char table.
12715
12716 * fontset.c (fontset_face): Handle fallback fonts correctly.
12717 (Ffontset_info): Return infomation about fallback fonts.
12718
127192008-02-01 Kenichi Handa <handa@m17n.org>
12720
12721 * fontset.c (FONTSET_DEFAULT): New macro.
12722 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
12723 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
12724 the case that it is nil.
12725 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
12726 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
12727
12728 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
12729 subset or superset.
12730
127312008-02-01 Kenichi Handa <handa@m17n.org>
12732
12733 * emacs.c (main): Call init_charset after syms_of_XXX.
12734
12735 * charset.c (Vcharset_map_directory): Delete.
12736 (Vcharset_map_path): New variable.
12737 (load_charset_map_from_file): Use Vcharset_map_path instead.
12738 (init_charset): Initialize Vcharset_map_path.
12739 (syms_of_charset): Delete declaration of "charset-map-directory",
12740 add declaration of "charset-map-path".
12741
127422008-02-01 Kenichi Handa <handa@m17n.org>
12743
12744 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
12745 ASCII only string.
12746
12747 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
12748
12749 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
12750 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
12751
127522008-02-01 Kenichi Handa <handa@m17n.org>
12753
12754 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
12755
12756 * coding.c (QCmnemonic, QCdefalut_char)
12757 (QCdecode_translation_table, QCencode_translation_table)
12758 (QCpost_read_conversion, QCpre_write_conversion): New variables.
12759 (get_translation_table): Return a list of translation tables if
12760 necessary.
12761 (decode_coding): Call get_translation_table with ENCODEP 0.
12762 (char_encodable_p): If translation_table is non-nil, always call
12763 translate_char.
12764 (Fdefine_coding_system_internal): Accept list of translation
12765 tables as :encode-translation-table and :decode-translation-table.
12766 (Fcoding_system_put): New function.
12767 (syms_of_coding): Declare new symbols. Defsubr
12768 Scoding_system_put.
12769 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
12770 typically JISX0212.
12771
12772 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
12773 when the charset is superset type.
12774
12775 * character.c (translate_char): Accept list of translation tables.
12776
127772008-02-01 Kenichi Handa <handa@m17n.org>
12778
12779 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
12780 (CODING_ATTR_TRANS_TBL): New macro.
12781
12782 * coding.c (get_translation_table): New function.
12783 (translate_chars): Fix the bug of skipping annotation data.
12784 (decode_coding, encode_coding): Utilize get_translation_table.
12785 (char_encodable_p, Funencodable_char_position): Translate char if
12786 necessary.
12787 (Ffind_coding_systems_region_internal)
12788 (Fcheck_coding_systems_region): Setup translation table for encode
12789 in a coding system attribute vector in advance.
12790 (Fdefine_coding_system_internal): Allow a symbol as translation
12791 table. For shift-jis type coding system, allow 4th charset.
12792
127932008-02-01 Kenichi Handa <handa@m17n.org>
12794
12795 * coding.c (decode_coding_sjis): Check the first byte rigidly.
12796
12797 * xdisp.c (get_next_display_element): Pass -1 as POS to
12798 FACE_FOR_CHAR if displaying a C-string.
12799
128002008-02-01 Kenichi Handa <handa@m17n.org>
12801
12802 * composite.c (get_composition_id): Handle xoff and yoff in a
12803 composition rule.
12804
12805 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
12806 (struct composition): New member lbearing and rbearing.
12807
12808 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
12809 (x_get_glyph_overhangs): Handle a composition glyph.
12810 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
12811
12812 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
12813 composition glyph.
12814
128152008-02-01 Kenichi Handa <handa@m17n.org>
12816
12817 * print.c: Include charset.h.
12818 (Vprint_charset_text_property): New variable.
12819 (Qdefault): Extern it.
12820 (PRINT_STRING_NON_CHARSET_FOUND)
12821 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
12822 (print_check_string_result): New variable.
12823 (print_check_string_charset_prop): New function.
12824 (print_prune_charset_plist): New variable.
12825 (print_prune_string_charset): New function.
12826 (print_object): Call print_prune_string_charset if
12827 Vprint_charset_text_property is not t.
12828 (print_interval): Print nothing if interval->plist is nil.
12829 (syms_of_print): Declare Vprint_charset_text_property as a lisp
12830 variable. Init and staticpro print_prune_charset_plist.
12831
128322008-02-01 Kenichi Handa <handa@m17n.org>
12833
12834 * fontset.c (new_fontset_from_font_name): Use the specified font
12835 for all characters in the new fontset.
12836
12837 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
12838 OBJECT args.
12839
12840 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
12841 OBJECT args for composition too.
12842
12843 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
12844 OBJECT args.
12845
128462008-02-01 Kenichi Handa <handa@m17n.org>
12847
12848 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
12849
12850 * fontset.c (reorder_font_vector): Adjust for the change of
12851 FONT_DEF format.
12852 (fontset_face): New arg id. Change caller.
12853 (face_for_char): New args pos and object.
12854 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
12855 (fs_query_fontset): Check NAME by Fassoc too.
12856 (Fset_fontset_font): Allow non-XLFD font name.
12857 (Ffontset_info): Adjust for the change of FONT_DEF format.
12858
12859 * fontset.h (face_for_char): Adjust prototype.
12860
12861 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
12862 (append_space, extend_face_to_end_of_line)
12863 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
12864 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
12865
12866 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
12867 POS and OBJECT args.
12868
12869 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
12870 POS and OBJECT args.
12871
128722008-02-01 Jason Rumney <jasonr@gnu.org>
12873
12874 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
12875 of GlobalAlloc'ed memory.
12876
128772008-02-01 Kenichi Handa <handa@m17n.org>
12878
12879 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
12880
12881 * charset.h (charset_table_used): Delete extern.
12882
12883 * charset.c (charset_table_used): Make it static.
12884 (map_charset_chars): Fix args to c_function with.
12885
12886 * chartab.c (map_sub_char_table_for_charset): Fix args to
12887 c_function with.
12888
12889 * coding.h (enum coding_result_code): Delete
12890 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
12891
12892 * coding.c (Qinsufficient_source, Qinconsistent_eol)
12893 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
12894 (Vlast_code_conversion_error): New variables.
12895 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
12896 (ONE_MORE_BYTE): Record error if any instead of signaling an
12897 error. If non-ASCII multibyte char is found, return the negative
12898 value of the code. All callers changed to check it.
12899 (ONE_MORE_BYTE_NO_CHECK): Likewise.
12900 (record_conversion_result): New function. Change all codes setting
12901 coding->result to call this function.
12902 (detect_coding_utf_8, decode_coding_utf_8)
12903 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
12904 Don't use the local variable incomplete.
12905 (emacs_mule_char): Change the second arg to `const'.
12906 (decode_coding): Fix of flushing out unprocessed data.
12907 (make_conversion_work_buffer): Fix making of a work buffer.
12908 (decode_coding_object): Return coding->dst_object.
12909
12910 * fontset.c (set_fontset_font): Fix args.
12911
12912 * lisp.h (CHARACTERBITS): Define as 22.
12913
12914 * process.c (send_process): Be sure to set coding->src_multibyte.
12915
12916 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
12917
129182008-02-01 Kenichi Handa <handa@m17n.org>
12919
12920 * xdisp.c (handle_auto_composed_prop): Give limit to
12921 Fnext_single_char_property_change.
12922
129232008-02-01 Kenichi Handa <handa@m17n.org>
12924
12925 * composite.c (syms_of_composite): Don't make the composition hash
12926 table weak.
12927
12928 * fontset.c (Fset_fontset_font): Fix docstring.
12929
12930 * lisp.h (detect_coding_system): Adjust prototype.
12931
12932 * fileio.c (kill_workbuf_unwind): Delete this function.
12933 (Finsert_file_contents): Adjust the call of detect_coding_system.
12934 Get conversion_buffer by code_conversion_save. Use the macro
12935 CODING_MAY_REQUIRE_DECODING. After decoding, update
12936 coding_system.
12937
12938 * coding.h (make_conversion_work_buffer): Delete extern.
12939 (code_conversion_save): Extern it.
12940
12941 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
12942 (CODING_GET_INFO): Delete argument eol_type. Change callers.
12943 (decode_coding_utf_8): Don't do eol converion.
12944 (detect_coding_utf_16): Check coding->src_chars, not
12945 coding->src_bytes. Add heuristics for those that have no signature.
12946 (decode_coding_emacs_mule, decode_coding_iso_2022)
12947 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
12948 Don't do eol converion.
12949 (adjust_coding_eol_type): Return a new coding system.
12950 (detect_coding): Don't detect eol. Fix for utf-16 detection.
12951 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
12952 each change.
12953 (decode_coding): Pay attention to undo_list. Do eol conversion for
12954 all types of coding-systems (if necessary).
12955 (Vcode_conversion_work_buf_list): Delete it.
12956 (Vcode_conversion_reused_workbuf): Rename from
12957 Vcode_conversion_reused_work_buf.
12958 (Vcode_conversion_workbuf_name): New variable.
12959 (reused_workbuf_in_use): New variable.
12960 (make_conversion_work_buffer): Delete the arg DEPTH.
12961 (code_conversion_restore): Change argument to cons.
12962 (code_conversion_save): Delete the argument BUFFER. Change callers.
12963 (detect_coding_system): New argument src_chars. Change callers.
12964 Fix for utf-16 detection.
12965 (init_coding_once): Don't use ISO_carriage_return.
12966 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
12967 reused_workbuf_in_use.
12968
129692008-02-01 Kenichi Handa <handa@m17n.org>
12970
12971 * keymap.c (store_in_keymap): Pay attention to the case that idx
12972 is a cons specifying a character range.
12973
129742008-02-01 Kenichi Handa <handa@m17n.org>
12975
12976 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
12977 HANDLED_RECOMPUTE_PROPS.
12978
12979 * coding.c (Fdefine_coding_system_internal): Fix checking of
12980 ascii compatibility.
12981
129822008-02-01 Kenichi Handa <handa@m17n.org>
12983
12984 * charset.c (find_charsets_in_text): Delete unused locale variable.
12985 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
12986
12987 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
12988 Resync charset_list to Vemacs_mule_charset_list.
12989
12990 * keymap.c (store_in_keymap): Pay attention to the case that idx
12991 is a cons specifying a character range.
12992
129932008-02-01 Kenichi Handa <handa@m17n.org>
12994
12995 * composite.c (update_compositions): Bind inhibit-read-only, etc
12996 to t before calling remove-list-of-text-properties.
12997
12998 * print.c (print_object): Always print ASCII chars as is.
12999
130002008-02-01 Kenichi Handa <handa@m17n.org>
13001
13002 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
13003
13004 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
13005 is a char table.
13006
130072008-02-01 Kenichi Handa <handa@m17n.org>
13008
13009 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
13010
130112008-02-01 Kenichi Handa <handa@m17n.org>
13012
13013 * xfaces.c (set_lface_from_font_name): Fix for the case that
13014 FONTNAME is not fontset name.
13015
130162008-02-01 Kenichi Handa <handa@m17n.org>
13017
13018 * fns.c (base64_encode_1): Fix previous change.
13019
130202008-02-01 Kenichi Handa <handa@m17n.org>
13021
13022 * fontset.c (set_fontset_font): New function.
13023 (Fset_fontset_font): If a font is specified for a charset, use
13024 map_charset_chars to store the font spec in a fontset.
13025
130262008-02-01 Kenichi Handa <handa@m17n.org>
13027
13028 * fontset.c (fontset_face): Create a fallback fontset on demand.
13029 (make_fontset): Don't create a fallback fontset here.
13030 (free_face_fontset): Free a fallback fontset (if any) too.
13031 (n_auto_fontsets): Delete this variable.
13032 (auto_fontset_alist): New variable.
13033 (new_fontset_from_font_name): Check auto_fontset_alist.
13034 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
13035 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
13036 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
13037 Defsubr Sfontset_list_all.
13038
130392008-02-01 Kenichi Handa <handa@m17n.org>
13040
13041 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
13042
130432008-02-01 Kenichi Handa <handa@m17n.org>
13044
13045 * fontset.c (Fnew_fontset): Check NAME more rigidly.
13046
130472008-02-01 Kenichi Handa <handa@m17n.org>
13048
13049 * editfns.c (Fgoto_char): Fix docstring.
13050
130512008-02-01 Kenichi Handa <handa@m17n.org>
13052
13053 * insdel.c (insert_from_gap): Adjust intervals correctly.
13054
130552008-02-01 Jason Rumney <jasonr@gnu.org>
13056
13057 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
13058 (pfnGetFontUnicodeRanges): New dynamically loaded function.
13059 (w32_initialize): Try to load it.
13060 (x_get_font_repertory): Use it if available.
13061 (w32_encode_char): Add shortcut for unicode output.
13062
13063 * w32fns.c (w32_load_system_font): Default charset to -1.
13064 (x_to_w32_charset): Match all fonts for unicode.
13065 (w32_to_x_charset): New parameter matching. Don't return partial
13066 or wildcard charsets.
13067 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
13068 (w32_codepage_for_font): Return CP_UNICODE for unicode.
13069 (w32_to_x_font): Match charset to real charset.
13070 (enum_font_cb2): Always list unicode versions.
13071
13072 * makefile.w32-in (temacs): Increase EMHEAP.
13073
130742008-02-01 Jason Rumney <jasonr@gnu.org>
13075
13076 * w32term.c (w32_encode_char): New charset parameter.
13077 font_info.encoding becomes encoding_type.
13078 (x_get_font_repertory): New function. Warning: stub only!
13079 (x_new_font): Return quickly if font already set.
13080 (x_new_fontset): fontsetname parameter is Lisp_Object.
13081 Use new fs_query_fontset. Try new_fontset_from_font_name.
13082 Use fontset_name for return value.
13083
13084 * w32term.h: Declare x_get_font_repertory.
13085
13086 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
13087 place of find_charset_in_text. Use encode_coding_object in place
13088 of encode_coding.
13089 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
13090 decode_coding.
13091
13092 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
13093 of x_new_fontset.
13094 (w32_load_system_font): Initialize charset as unicode.
13095 font_info.encoding becomes encoding_type.
13096 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
13097 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
13098 (syms_of_w32fns): Set get_font_repertory_func.
13099
13100 * w32console.c: Include character.h. Use terminal_encode_buffer
13101 from term.c.
13102 (write_glyphs): Use new version of encode_terminal_code. Use
13103 encode_coding_object in place of encode_coding.
13104
13105 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
13106 encoding becomes encoding_type.
13107
13108 * term.c (terminal_encode_buffer): Make externally visible.
13109
13110 * makefile.w32-in: Add character.h dependancies.
13111 (character.o, chartab.o): New targets.
13112
131132008-02-01 Kenichi Handa <handa@m17n.org>
13114
13115 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
13116 CODING_ID_EOL_TYPE.
13117
131182008-02-01 Andreas Schwab <schwab@suse.de>
13119
13120 * coding.c (produce_chars): Revert last change.
13121
131222008-02-01 Kenichi Handa <handa@m17n.org>
13123
13124 * charset.h (charset_unicode): Extern it.
13125
13126 * charset.c (string_xstring_p): Check by (C >= 0x100).
13127 (find_charsets_in_text): Change format of the arc CHARSETS. New
13128 arg MULTIBYTE.
13129 (Ffind_charset_region, Ffind_charset_string): Adjust for the
13130 change of find_charsets_in_text.
13131 (Fsplit_char): Fix doc. Never return unknown.
13132
13133 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
13134
13135 * coding.c (Fdefine_coding_system_alias): Update
13136 Vcoding_system_list.
13137
13138 * fontset.c (load_font_get_repertory): Pay attention to the case
13139 that ENCODING of a font is specified by a char-table.
13140
13141 * xterm.c (x_get_font_repertory): Handle the case that the
13142 encoding of font is other than Unicode.
13143
131442008-02-01 Kenichi Handa <handa@m17n.org>
13145
13146 * term.c (encode_terminal_code): Don't handle glyph-table. Check
13147 if a character is encodable by the terminal coding system. If
13148 not, produces proper number of `?'s. Update
13149 terminal_encode_buffer and terminal_encode_buf_size if necessary.
13150 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
13151
131522008-02-01 Kenichi Handa <handa@m17n.org>
13153
13154 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
13155 variables.
13156 (encode_terminal_code): Change argument. Encode multiple
13157 characters at once. Store the result of encoding in
13158 terminal_encode_buffer.
13159 (write_glyphs, insert_glyphs): Adjust for the change of
13160 encode_terminal_code.
13161 (term_init): Initialize terminal_encode_buffer and
13162 terminal_encode_buf_size.
13163
13164 * coding.c (consume_chars): If coding->src_object is nil, don't
13165 check annotation.
13166
131672008-02-01 Kenichi Handa <handa@m17n.org>
13168
13169 * character.c (char_string): Use ASCII_CHAR_P instead of
13170 SINGLE_BYTE_CHAR_P.
13171
131722008-02-01 Kenichi Handa <handa@m17n.org>
13173
13174 * xdisp.c (handle_auto_composed_prop): Check if the last
13175 characters of auto-composed region is newly composed with the
13176 following characters.
13177 (handle_composition_prop): Fix checking of point being inside
13178 composition.
13179
131802008-02-01 Kenichi Handa <handa@m17n.org>
13181
13182 * fns.c (concat): Don't change multibyteness of the result by
13183 concatenating an 8-bit character.
13184
13185 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
13186 multibyteness of the result when newelt is an 8-bit character.
13187
131882008-02-01 Dave Love <fx@gnu.org>
13189
13190 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
13191 EMACS_INT.
13192
13193 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
13194
13195 * xfaces.c (face_numeric_value): Declare dim size_t.
13196 (Finternal_lisp_face_equal_p): Remove unused f.
13197
13198 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
13199 (MATRIX_ROW): Remove unused vars.
13200 (draw_glyphs, x_insert_glyphs, fast_find_position)
13201 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
13202 byte/char counts.
13203
13204 * regex.c (regex_compile): Remove unused var.
13205
13206 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
13207
13208 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
13209 (Faccessible_keymaps, where_is_internal): Remove unused vars.
13210
13211 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
13212
13213 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
13214
13215 * fileio.c (Fwrite_region): Remove unused var.
13216
13217 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
13218 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
13219
13220 * composite.c (Fremove_list_of_text_properties): Declare.
13221
13222 * coding.c (inhibit_pre_post_conversion): Remove (unused).
13223 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
13224 (coding_inherit_eol_type): Remove unused attrs.
13225 (detect_coding): Cast arg of detect_eol.
13226
13227 * charset.c (syms_of_charset): Remove unused var p.
13228 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
13229 byte/char counts.
13230
13231 * casetab.c (set_case_table): Remove unused var.
13232
13233 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
13234 unused vars.
13235
132362008-02-01 Dave Love <fx@gnu.org>
13237
13238 * xterm.c (x_bitmap_mask): Declare.
13239
132402008-02-01 Dave Love <fx@gnu.org>
13241
13242 * xterm.c (x_term_init): Fix type error.
13243
13244 * lisp.h: Add Funibyte_char_to_multibyte.
13245
13246 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
13247 (Fset_coding_system_priority): Doc fix.
13248
13249 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
13250
13251 * indent.c (check_composition): Make start and end EMACS_INT.
13252
13253 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
13254
13255 * xdisp.c (handle_composition_prop, check_point_in_composition):
13256 Make buffer positions EMACS_INT.
13257
13258 * composite.c (find_composition, run_composition_function)
13259 (update_compositions, Ffind_composition_internal): Make buffer
13260 positions EMACS_INT.
13261
13262 * composite.h (find_composition, update_compositions): Make
13263 position args EMACS_INT.
13264
13265 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
13266
13267 * intervals.c (get_property_and_range):
13268 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
13269
13270 * unexalpha.c: Don't include varargs.h.
13271
132722008-02-01 Dave Love <fx@gnu.org>
13273
13274 * coding.h (ENCODE_UTF_8): New.
13275
13276 * Makefile.in (gtkutil.o): Depend on coding.h.
13277
13278 * coding.c (Fset_coding_system_priority): Doc fix.
13279
132802008-02-01 Kenichi Handa <handa@m17n.org>
13281
13282 * fileio.c (Finsert_file_contents): Call setup_coding_system in
13283 the case of auto saving.
13284
132852008-02-01 Andreas Schwab <schwab@suse.de>
13286
13287 * chartab.c (map_char_table, map_char_table_for_charset): Protect
13288 `range' from GC.
13289
132902008-02-01 Kenichi Handa <handa@m17n.org>
13291
13292 * coding.c (decode_coding_sjis): Check bytes more rigidly.
13293
132942008-02-01 Kenichi Handa <handa@m17n.org>
13295
13296 * fileio.c (choose_write_coding_system): Return a decided coding system.
13297 (Fwrite_region): Set Vlast_coding_system_used to the return value
13298 of choose_write_coding_system.
13299
133002008-02-01 Kenichi Handa <handa@m17n.org>
13301
13302 * charset.c (Fset_charset_priority): Pay attention to duplicated
13303 arguments.
13304
13305 * coding.c (QCcategory): New variable.
13306 (syms_of_coding): Defsym it. Set all elements of
13307 Vcoding_category_table and their symbol values.
13308 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
13309 coding-category-XXX, and coding-category-list.
13310 (Fdefine_coding_system_internal): Add category in the plist.
13311
133122008-02-01 Kenichi Handa <handa@m17n.org>
13313
13314 * callproc.c (Fcall_process): Handle carryover correctly.
13315
13316 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
13317 (raw_text_coding_system): Check NILP (coding_system).
13318 (coding_inherit_eol_type): Check NILP (coding_system) and
13319 NILP (parent).
13320 (consume_chars): Fix for the case of raw-text.
13321
13322 * process.c (read_process_output): Handle carryover correctly.
13323
133242008-02-01 Dave Love <fx@gnu.org>
13325
13326 * regex.c (re_search_2): Fix last change.
13327
133282008-02-01 Kenichi Handa <handa@m17n.org>
13329
13330 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
13331 target_multibyte. Even in a unibyte case, return a converted
13332 multibyte char.
13333 (GET_CHAR_AFTER): New macro.
13334 (PATFETCH): Translate via multibyte char.
13335 (HANDLE_UNIBYTE_RANGE): Delete this macro.
13336 (SETUP_MULTIBYTE_RANGE): New macro.
13337 (regex_compile): Setup compiled code so that its multibyteness
13338 matches that of a target. Fix the handling of "[X-YZ]" using
13339 SETUP_MULTIBYTE_RANGE.
13340 (analyse_first) <charset>: For filling fastmap for all multibyte
13341 characters, don't check by BASE_LEADING_CODE_P.
13342 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
13343 the same as RE_MULTIBYTE_P (bufp) now.
13344 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
13345 (TARGET_CHAR_AND_LENGTH): Delete this macro.
13346 (TRANSLATE_VIA_MULTIBYTE): New macro.
13347 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
13348 It is the same as RE_MULTIBYTE_P (bufp) now.
13349 <exactn>: Translate via multibyte.
13350 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
13351 translate it.
13352 <charset, charset_not>: Fetch a character by
13353 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
13354 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
13355 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
13356 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
13357 by GET_CHAR_AFTER.
13358 (bcmp_translate): Likewise.
13359
13360 * search.c (compile_pattern): Check the member target_multibyte,
13361 not the member multibyte of buf.
13362
13363 * lread.c (read1): While reading a string, set force_singlebyte
13364 and force_multibyte correctly.
13365
13366 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
13367 up of unibyte_to_multibyte_table.
13368
133692008-02-01 Kenichi Handa <handa@m17n.org>
13370
13371 * coding.c (setup_coding_system): If coding has
13372 post-read-conversion or pre-write-conversion, set
13373 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
13374 respectively.
13375 (decode_coding_gap): Run post-read-conversion if any.
13376
13377 * fileio.c (Finsert_file_contents): Even if we read into a
13378 unibyte buffer, check if we must decode the result or not.
13379
133802008-02-01 Kenichi Handa <handa@m17n.org>
13381
13382 * coding.c (make_conversion_work_buffer): Change the work buffer
13383 name to the same one as that of Emacs 21.
13384
133852008-02-01 Kenichi Handa <handa@m17n.org>
13386
13387 * coding.h (make_conversion_work_buffer): Adjust prototype.
13388 (code_conversion_restore): Don't extern it.
13389
13390 * coding.c (detected_mask): Delete unused variable.
13391 (decode_coding_iso_2022): Pay attention to the byte sequence of
13392 CTEXT extended segment, and retain those bytes as is.
13393 (decode_coding_ccl): Delete unused variable `valids'.
13394 (setup_coding_system): Delete unused variable `category'.
13395 (consume_chars): Delete unused variable `category'. Make it work
13396 for non-multibyte case.
13397 (make_conversion_work_buffer): Change argument.
13398 (saved_coding): Delete unused variable.
13399 (code_conversion_restore): Don't check saved_coding->destination.
13400 (code_conversion_save): New function.
13401 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
13402 instead of record_unwind_protect.
13403 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
13404 (detect_coding_system): Delete unused variable `mask'.
13405 (Fdefine_coding_system_internal): Delete unused variable id.
13406
13407 * fileio.c (kill_workbuf_unwind): New function.
13408 (Finsert_file_contents): On replacing, call
13409 make_conversion_work_buffer with correct args, and call
13410 record_unwind_protect with the first arg kill_workbuf_unwind.
13411
13412 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
13413
134142008-02-01 Kenichi Handa <handa@m17n.org>
13415
13416 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
13417 (fontset_add): Fix for the case that TO is less than TO1.
13418 (Ffontset_info): Don't use fallback fontset on checking the
13419 default fontset.
13420 (dump_fontset): New function for debugging.
13421
13422 * coding.c (Fdefine_coding_system_internal): Fix for the case that
13423 coding_type is Qcharset.
13424
134252008-02-01 Kenichi Handa <handa@m17n.org>
13426
13427 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
13428 (map_char_table): Don't inherit the value from the parent on
13429 initializing VAL. Adjust for the above change.
13430
134312008-02-01 Kenichi Handa <handa@m17n.org>
13432
13433 * coding.c (Qsignature, Qendian): Delete these variables.
13434 (syms_of_coding): Don't initialize them.
13435 (CATEGORY_MASK_UTF_16_AUTO): New macro.
13436 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
13437 detect_info->found.
13438 (decode_coding_utf_16): Don't detect BOM here.
13439 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
13440 is NOT utf_16_without_bom.
13441 (setup_coding_system): For a coding system of type utf-16, check
13442 if the attribute :endian is Qbig or not (not nil or not), and set
13443 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
13444 (detect_coding): If coding type is utf-16 and BOM detection is
13445 required, detect it.
13446 (Fdefine_coding_system_internal): For a coding system of type
13447 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
13448
134492008-02-01 Kenichi Handa <handa@m17n.org>
13450
13451 * coding.c (coding_set_source): Fix for the case that the current
13452 buffer is different from coding->src_object.
13453 (decode_coding_object): Don't use the conversion work buffer if
13454 DST_OBJECT is a buffer.
13455
134562008-02-01 Dave Love <fx@gnu.org>
13457
13458 * lread.c (read_emacs_mule_char) [len==2]: Index
13459 emacs_mule_charset correctly.
13460
134612008-02-01 Dave Love <fx@gnu.org>
13462
13463 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
13464 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
13465 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
13466 treated specially.)
13467 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
13468 (detected_mask): Remove Big5 bits.
13469
134702008-02-01 Kenichi Handa <handa@m17n.org>
13471
13472 The following changes are to make the font rescaling facility
13473 compatible with Emacs 21.
13474
13475 * xfaces.c (Vface_font_rescale_alist): Rename from
13476 Vface_resizing_fonts.
13477 (struct font_name): Rename member resizing_ratio to rescale_ratio.
13478 (font_rescale_ratio): Rename from font_resizing_ratio.
13479 (split_font_name): Set font->rescale_ratio.
13480 (better_font_p): Pay attention to font->rescale_ratio.
13481 (build_scalable_font_name): Likewise. Change RESX, and RESY
13482 fields.
13483 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
13484
134852008-02-01 Kenichi Handa <handa@m17n.org>
13486
13487 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
13488 (Qutf_16_le): Remove these variables.
13489 (syms_of_coding): Don't DEFSYM them.
13490 (decode_coding_utf_16): Fix handling of BOM.
13491 (encode_coding_utf_16): Fix handling of BOM.
13492
134932008-02-01 Kenichi Handa <handa@m17n.org>
13494
13495 * fileio.c (Finsert_file_contents): On replacing, before decoding
13496 the file into the work buffer, set point of the work buffer to the end.
13497
134982008-02-01 Dave Love <fx@gnu.org>
13499
13500 * coding.c (Fcheck_coding_systems_region): Fix type errors.
13501
135022008-02-01 Dave Love <fx@gnu.org>
13503
13504 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
13505 and fix C types.
13506
135072008-02-01 Kenichi Handa <handa@m17n.org>
13508
13509 * xdisp.c (SKIP_GLYPHS): New macro.
13510 (set_cursor_from_row): Pay attention to string display properties.
13511
13512 * category.c (copy_category_entry): Fix for the case that RANGE
13513 is an integer.
13514
13515 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
13516
13517 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
13518
135192008-02-01 Kenichi Handa <handa@m17n.org>
13520
13521 * charset.c (Fcharset_id_internal): New function.
13522 (syms_of_charset): Defsubr it.
13523
13524 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
13525 with the last arg charset_list acquired from coding.
13526 (Fdefine_coding_system_internal): For ccl-based coding system, fix
13527 the attribute coding_attr_ccl_valids.
13528
13529 * coding.h (enum define_coding_ccl_arg_index): Set the first
13530 member coding_arg_ccl_decoder to coding_arg_max.
13531
13532 * ccl.h (ccl_driver): Adjust prototype.
13533
13534 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
13535 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 13536 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
13537 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
13538 last arg Qnil.
13539
135402008-02-01 Kenichi Handa <handa@m17n.org>
13541
13542 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
13543 call encode_char.
13544
13545 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
13546
135472008-02-01 Dave Love <fx@gnu.org>
13548
13549 * composite.c (syms_of_composite): Make composition_hash_table weak.
13550
135512008-02-01 Kenichi Handa <handa@m17n.org>
13552
13553 * dispextern.h (check_face_attributes, generate_ascii_font_name)
13554 (font_name_registry): Don't extern them.
13555 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
13556
13557 * fontset.h (Qfontset): Don't extern it.
13558 (new_fontset_from_font_name): Extern it.
13559
13560 * fontset.c: Give 8 extra slots to fontset objects.
13561 (Qfontset_info): New variable.
13562 (syms_of_fontset): Defsym it.
13563 (FONTSET_FALLBACK): New macro.
13564 (fontset_face): Try also the default fontset.
13565 (make_fontset): Realize a fallback fontset from the default fontset.
13566 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
13567 using split_font_name_into_vector and build_font_name_from_vector.
13568 (Fset_fontset_font): Access the elements of font_spec by enum
13569 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
13570 name by using split_font_name_into_vector.
13571 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
13572 generate a proper font name from the fontset name. Update
13573 Vfontset_alias_alist.
13574 (n_auto_fontsets): New variable.
13575 (new_fontset_from_font_name): New function.
13576 (Ffont_info): Store the information about fonts generated from the
13577 default fontset in the first extra slot of the returned char-table.
13578
13579 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
13580 (font_name_registry): Delete function.
13581 (split_font_name_into_vector): New function.
13582 (build_font_name_from_vector): New function.
13583 (font_list): The argument REGISTRY is now a list of registry names.
13584 (choose_face_font): If we are choosing an ASCII font, and ATTRS
13585 specifies an explicit font name, return the name as is. Make a
13586 list of registy names.
13587
13588 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
13589 of x_new_fontset.
13590 (Fx_create_frame): Don't call x_new_fontset here. Just use
13591 x_list_fonts to check the existence of fonts.
13592
13593 * xterm.h (x_new_fontset): Adjust prototype.
13594
13595 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
13596 string. Use new_fontset_from_font_name to create a fontset from a
13597 font name.
13598
135992008-02-01 Kenichi Handa <handa@m17n.org>
13600
13601 * syntax.c (Vfind_word_boundary_function_table): New name for
13602 Vnext_word_boundary_function_table.
13603 (find-word-boundary-function-table): New name for
13604 next-word-boundary-function-table.
13605
136062008-02-01 Dave Love <fx@gnu.org>
13607
13608 * Makefile.in: Fix some dependencies.
13609
13610 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
13611 set it to nil before returning.
13612
13613 * composite.c (update_compositions): Fix type error.
13614
13615 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
13616
136172008-02-01 Kenichi Handa <handa@m17n.org>
13618
13619 * xterm.c (x_new_font): Optimize for the case that the font is
13620 already set for the frame.
13621
136222008-02-01 Kenichi Handa <handa@m17n.org>
13623
13624 * chartab.c (char_table_ascii): Check if the char table contents
13625 is sub-char-table or not.
13626 (char_table_set, char_table_set_range): Fix argument to
13627 char_table_ascii.
13628
13629 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
13630 (detect_coding_utf_8, detect_coding_utf_16)
13631 (detect_coding_emacs_mule, detect_coding_iso_2022)
13632 (detect_coding_sjis, detect_coding_big5)
13633 (detect_coding_ccl, detect_coding_charset): Change argument MASK
13634 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
13635 sequence is valid in this coding system. Change callers.
13636 (MAX_ANNOTATION_LENGTH): New macro.
13637 (ADD_ANNOTATION_DATA): New macro.
13638 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
13639 ADD_ANNOTATION_DATA. Change the format of annotation data.
13640 (ADD_CHARSET_DATA): New macro.
13641 (emacs_mule_char): New argument ID. Change callers.
13642 (decode_coding_emacs_mule, decode_coding_iso_2022)
13643 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
13644 Produce charset annotation data in coding->charbuf.
13645 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
13646 to charset annotation data in coding->charbuf.
13647 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
13648 coding->common_flags if the coding system is iso-2022 based and
13649 uses designation.
13650 (produce_composition): Adjust for the new annotation data format.
13651 (produce_charset): New function.
13652 (produce_annotation): Handle charset annotation.
13653 (handle_composition_annotation, handle_charset_annotation): New
13654 functions.
13655 (consume_chars): Handle charset annotation. Utilize the above two
13656 functions.
13657 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
13658 buffer, get the deleted text as a string and set
13659 coding->src_object to that string.
13660 (detect_coding, detect_coding_system): Use the new struct
13661 coding_detection_info.
13662
13663 * coding.h (struct coding_detection_info): New structure.
13664 (struct coding_system): Adjust prototype of the member `detector'.
13665 (CODING_ANNOTATE_CHARSET_MASK): New macro.
13666
136672008-02-01 Kenichi Handa <handa@m17n.org>
13668
13669 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
13670
136712008-02-01 Dave Love <fx@gnu.org>
13672
13673 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
13674 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
13675 to new local and nullify apropos_accumulate before returning.
13676 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
13677
136782008-02-01 Kenichi Handa <handa@m17n.org>
13679
13680 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
13681 correctly.
e3eea1fc 13682
aac0c6e3
MR
136832008-02-01 Dave Love <fx@gnu.org>
13684
13685 * fns.c (Flanginfo): Call synchronize_system_time_locale.
13686
136872008-02-01 Kenichi Handa <handa@m17n.org>
13688
13689 The following changes are to make character composition happen
13690 automatically on displaying.
13691
13692 * Makefile.in (lisp, shortlisp): Add composite.elc.
13693
13694 * composite.h (Qauto_composed, Vauto_composition_function)
13695 (Qauto_composition_function): Extern them.
13696
13697 * composite.c (Vcomposition_function_table)
13698 (Qcomposition_function_table): Delete variables.
13699 (Qauto_composed, Vauto_composition_function)
13700 (Qauto_composition_function): New variables.
13701 (run_composition_function): Don't call
13702 compose-chars-after-function.
13703 (update_compositions): Clear `auto-composed' text property.
13704 (compose_chars_in_text): Delete this function.
13705 (syms_of_composite): Staticpro Qauto_composed and
13706 Qauto_composition_function. Declare Vauto_composition_function as
13707 a Lisp variable.
13708
13709 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
13710
13711 * xdisp.c (it_props): Add an entry for Qauto_composed.
13712 (handle_auto_composed_prop): New function.
13713
13714 * xselect.c (selection_data_to_lisp_data): Don't call
13715 compose_chars_in_text.
13716
137172008-02-01 Dave Love <fx@gnu.org>
13718
13719 * keyboard.c (read_char): Modify checking around use of
13720 Vkeyboard_translate_table.
13721
13722 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
13723 and fix C types.
13724
137252008-02-01 Kenichi Handa <handa@m17n.org>
13726
13727 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
13728 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
13729 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
13730 the case that the last byte is '\r' correctly.
13731 (decode_coding): Flush out the unprocessed data correctly.
13732 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
13733
137342008-02-01 Dave Love <fx@gnu.org>
13735
13736 * xterm.c (XTread_socket): Fix changes for defined keysyms.
13737 Add XK_ISO... case.
13738 (xaw_scroll_callback): Revert last change.
13739
137402008-02-01 Kenichi Handa <handa@m17n.org>
13741
13742 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
13743
137442008-02-01 Kenichi Handa <handa@m17n.org>
13745
13746 * xfaces.c (Vface_resizing_fonts): New variable.
13747 (struct font_name): New member `resizing_ratio'.
13748 (font_resizing_ratio): New function.
13749 (split_font_name): Set font->resizing_ratio.
13750 (better_font_p): Pay attention to font->resizing_ratio.
13751 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
13752 RESX, and RESY fields.
13753 (try_alternative_families): Try scalable fonts if
13754 Vscalable_fonts_allowed is not Qt.
13755 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
13756
137572008-02-01 Dave Love <fx@gnu.org>
13758
13759 * xterm.c (xaw_scroll_callback): Cast correctly.
13760
137612008-02-01 Dave Love <fx@gnu.org>
13762
13763 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
13764 (lispy_kana_keys): Comment out.
13765 (make_lispy_event) [XK_kana_A]: Comment out.
13766
13767 * xterm.c (xaw_scroll_callback): Cast call_data.
13768 (XTread_socket): Deal with ASCII keysyms.
13769 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
13770
137712008-02-01 Dave Love <fx@gnu.org>
13772
13773 * xterm.c (Vx_keysym_table): New.
13774 (syms_of_xterm): Initialize it.
13775 (XTread_socket): Use it.
13776 From head: Eliminate incorrect optimization that tried to avoid
13777 decoding the output of X*LookupString.
13778 (x_get_font_repertory): Delete charset declaration.
13779
137802008-02-01 Kenichi Handa <handa@m17n.org>
13781
13782 * coding.c (detect_coding_charset): If only ASCII bytes are found,
13783 return 0.
13784 (Fdefine_coding_system_internal): Setup
13785 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
13786
137872008-02-01 Dave Love <fx@gnu.org>
13788
13789 * coding.c (Fcheck_coding_system): Doc fix.
13790
13791 * editfns.c (Finsert_byte): Return a proper value.
13792
137932008-02-01 Kenichi Handa <handa@m17n.org>
13794
13795 * coding.c (decode_coding): Fix args to translate_chars. Pay
13796 attention to Vstandard_translation_table_for_decode.
13797 (encode_coding): Fix args to translate_chars. Pay attention to
13798 Vstandard_translation_table_for_encode.
13799
13800 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
13801 SINGLE_BYTE_CHAR_P.
13802
13803 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
13804 not by SINGLE_BYTE_CHAR_P.
13805
13806 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
13807 SINGLE_BYTE_CHAR_P.
13808
13809 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
13810 SINGLE_BYTE_CHAR_P.
13811
13812 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
13813 by SINGLE_BYTE_CHAR_P.
13814
13815 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
13816 SINGLE_BYTE_CHAR_P.
13817
138182008-02-01 Dave Love <fx@gnu.org>
13819
13820 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
13821
138222008-02-01 Dave Love <fx@gnu.org>
13823
13824 * fns.c (Flanginfo): Fix typo.
13825
13826 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
13827
138282008-02-01 Kenichi Handa <handa@m17n.org>
13829
13830 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
13831 (detect_coding_emacs_mule, detect_coding_iso_2022)
13832 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
13833 incomplete byte sequence. Don't update *mask when correctly detected.
13834 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
13835 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
13836 (detect_coding, detect_coding_system): Adjust for the changes above.
13837
138382008-02-01 Kenichi Handa <handa@m17n.org>
13839
13840 * character.c (char_string): Rename from
13841 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
13842 (string_char): Rename from string_char.
13843
13844 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
13845 if C is greater than MAX_3_BYTE_CHAR.
13846 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
13847 string_char instead of string_char_with_unification.
13848
138492008-02-01 Dave Love <fx@gnu.org>
13850
13851 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
13852
138532008-02-01 Kenichi Handa <handa@m17n.org>
13854
13855 * keymap.c (push_key_description): Pay attention to force_multibyte.
13856
13857 * regex.c (re_search_2): Fix for the case of unibyte buffer.
13858
138592008-02-01 Dave Love <fx@gnu.org>
13860
13861 * charset.c (define_charset_internal): Rename `supprementary'.
13862
13863 * Makefile.in (lisp, shortlisp): Remove latin-N.
13864
138652008-02-01 Dave Love <fx@gnu.org>
13866
13867 * xfns.c (x_window, x_window): Use use_xim.
13868
13869 * xterm.c (use_xim): Initialize.
13870 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
13871 (x_term_init): Maybe set use_xim.
13872
13873 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
13874
138752008-02-01 Kenichi Handa <handa@m17n.org>
13876
13877 * search.c (search_buffer): Fix case-fold-search of multibyte
13878 characters.
13879 (boyer_moore): Rename the last argument to char_high_bits.
13880
138812008-02-01 Kenichi Handa <handa@m17n.org>
13882
13883 * xdisp.c (display_string): Fix for the case of zero width glyph.
13884
13885 * xfns.c (x_set_font): Change the error message of the case that
13886 x_new_fontset returns Qt.
13887
13888 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
13889 (Finternal_set_lisp_face_attribute): Use signal_error for the
13890 error of invalid fontset.
13891
13892 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
13893 fontset, return Qt.
13894
138952008-02-01 Dave Love <fx@gnu.org>
13896
13897 * unexelf.c (unexec): Make .got handling not SGI-specific.
13898
13899 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
13900
13901 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
13902
13903 * keyboard.c (read_key_sequence): Fix type error.
13904
13905 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
13906 type error.
13907
13908 * fontset.c (fontset_add): Return Lisp_Object.
13909
139102008-02-01 Dave Love <fx@gnu.org>
13911
13912 * charset.h (charset_ordered_list_tick): Declare extern.
13913
139142008-02-01 Kenichi Handa <handa@m17n.org>
13915
13916 The following changes (and some of 2008-02-01 changes of mine) are
13917 for handling syntax, category, and case conversion for unibyte
13918 characters by converting them to multibyte on the fly. With these
13919 changes, we don't have to setup syntax and case tables for unibyte
13920 characters in each language environment.
13921
13922 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
13923 multibyte if necessary.
13924
13925 * bytecode.c (Fbyte_code): Likewise.
13926
13927 * character.h (LEADING_CODE_LATIN_1_MIN)
13928 (LEADING_CODE_LATIN_1_MAX): New macros.
13929 (unibyte_to_multibyte_table): Extern it.
13930 (unibyte_char_to_multibyte): New macro.
13931 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
13932 (CHAR_LEADING_CODE): New macro.
13933 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
13934
13935 * character.c (unibyte_to_multibyte_table): New variable.
13936 (unibyte_char_to_multibyte): Move to character.h and define as macro.
13937 (multibyte_char_to_unibyte): If C is an eight-bit character,
13938 convert it to the corresponding byte value.
13939
13940 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
13941 not 1, signals an error. Update the elements of
13942 unibyte_to_multibyte_table.
13943 (init_charset_once): Initialize unibyte_to_multibyte_table.
13944 (syms_of_charset): Define the charset `iso-8859-1'.
13945
13946 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
13947 as is without converting it to unibyte. In a unibyte buffer,
13948 convert C to multibyte before checking the syntax.
13949
13950 * lisp.h (unibyte_char_to_multibyte): Delete extern.
13951
13952 * minibuf.c (Fminibuffer_complete_word): Use the macro
13953 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
13954
13955 * regex.h (struct re_pattern_buffer): New member target_multibyte.
13956
13957 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
13958 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
13959 that is zero, convert an eight-bit char to multibyte.
13960 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
13961 non-emacs case.
13962 (PATFETCH): Convert an eight-bit char to multibyte.
13963 (HANDLE_UNIBYTE_RANGE): New macro.
13964 (regex_compile): Setup the compiled pattern for multibyte chars
13965 even if the given regex string is unibyte. Use PATFETCH_RAW
13966 instead of PATFETCH in many places. To handle `charset'
13967 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
13968 only for ASCII chars.
13969 (analyse_first) <exactn>: Simplify because the compiled pattern
13970 is multibyte.
13971 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
13972 <charset>: Use CHAR_LEADING_CODE to get leading codes.
13973 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
13974 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
13975 multibyte always 1.
13976 (re_search_2): In emacs, set the locale variable multibyte to 1,
13977 otherwise to 0. New local variable target_multibyte. Check it
13978 to decide the multibyteness of STR1 and STR2. If
13979 target_multibyte is zero, convert unibyte chars to multibyte
13980 before translating and checking fastmap.
13981 (TARGET_CHAR_AND_LENGTH): New macro.
13982 (re_match_2_internal): In emacs, set the locale variable multibyte
13983 to 1, otherwise to 0. New local variable target_multibyte. Check
13984 it to decide the multibyteness of STR1 and STR2. Use
13985 TARGET_CHAR_AND_LENGTH to fetch a character from D.
13986 <charset, charset_not>: If multibyte is nonzero, check fastmap
13987 only for ASCII chars. Call bcmp_translate with
13988 target_multibyte, not with multibyte.
13989 <begline>: Declare the local variable C as `unsigned'.
13990 (bcmp_translate): Change the last arg name to target_multibyte.
13991
13992 * search.c (compile_pattern_1): Don't adjust the multibyteness of
13993 the regexp pattern and the matching target. Set cp->buf.multibyte
13994 to the multibyteness of the regexp pattern. Set
13995 cp->but.target_multibyte to the multibyteness of the matching target.
13996 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
13997 FETCH_STRING_CHAR_ADVANCE.
13998 (Freplace_match): Convert unibyte chars to multibyte.
13999
14000 * syntax.c (char_quoted, back_comment, scan_words)
14001 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
14002 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
14003 unibyte chars to multibyte.
14004 (skip_chars): Delete the arg syntaxp, and move the code for
14005 handling syntaxes to skip_syntaxes. Change callers.
14006 Fix the case that the multibyteness of STRING and the current
14007 buffer doesn't match.
14008 (skip_syntaxes): New function.
14009 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
14010 SINGLE_BYTE_CHAR_P.
14011
140122008-02-01 Kenichi Handa <handa@m17n.org>
14013
14014 * xfaces.c (QCfontset): New variable.
14015 (LFACE_FONTSET): New macro.
14016 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
14017 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
14018 (Finternal_set_lisp_face_attribute)
14019 (Finternal_get_lisp_face_attribute): Handle QCfontset.
14020 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
14021 check also LFACE_FONTSET_INDEX.
14022 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
14023 attrs[LFACE_FONT_INDEX].
14024 (syms_of_xfaces): Intern and staticpro QCfontset.
14025
14026 * dispextern.h (enum lface_attribute_index): New member
14027 LFACE_FONTSET_INDEX.
14028
14029 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
14030
140312008-02-01 Kenichi Handa <handa@m17n.org>
14032
14033 * coding.c (coding_set_destination): Fix coding->destination for
14034 the case converting a region.
14035 (encode_coding_utf_8): Encode eight-bit chars as single byte.
14036 (encode_coding_object): Fix coding->dst_pos and
14037 coding->dst_pos_byte for the case converting a region.
14038
14039 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
14040
14041 * character.h (BYTE8_STRING): New macro.
14042
14043 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
14044
140452008-02-01 Kenichi Handa <handa@m17n.org>
14046
14047 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
14048 characters by octal form.
14049
14050 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
14051
14052 * buffer.h (_fetch_multibyte_char_len): Delete extern.
14053 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
14054 _fetch_multibyte_char_len.
14055 (FETCH_CHAR_AS_MULTIBYTE): New macro.
14056
14057 * casetab.c (set_canon, set_identity, shuffle): Simplify.
14058
14059 * casefiddle.c (casify_object): Simplify. Handle the case that
14060 the case conversion change the byte length.
14061 (casify_region): Likewise.
14062
14063 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
14064
14065 * character.c (_fetch_multibyte_char_len): Delete this variable.
14066 (syms_of_character): Setup Vprintable_chars.
14067
14068 * editfns.c (Fchar_equal): Fix for the unibyte case.
14069 (Finsert_byte): New function.
14070 (syms_of_editfns): Defsubr it.
14071
14072 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
14073 of direct code 0x3ffff.
14074
14075 * search.c (Freplace_match): Fix for the unibyte case.
14076
140772008-02-01 Kenichi Handa <handa@m17n.org>
14078
14079 * lread.c (safe_to_load_p): Fix the logic.
14080
14081 * syntax.c (scan_words): Don't treat characters belonging to
14082 different scripts as constituting a word.
14083
14084 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
14085
14086 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
14087
14088 * emacs.c (main): In the case of --unibyte, instead of aborting on
14089 finding non-empty buffer, make it unibyte.
14090
140912008-02-01 Kenichi Handa <handa@m17n.org>
14092
14093 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
14094 to create a fontset.
14095
140962008-02-01 Dave Love <fx@gnu.org>
14097
14098 * character.c (Funibyte_char_to_multibyte): Doc fix.
14099
14100 * xfns.c [HAVE_STDLIB_H]: Fix last change.
14101
141022008-02-01 Kenichi Handa <handa@m17n.org>
14103
14104 * fontset.c (fontset_add): Make the type `int'.
14105 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
14106
14107 * character.c (unibyte_char_to_multibyte)
14108 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
14109 charset_unibyte, not charset_primary.
14110
14111 * charset.h (charset_unibyte): Extern it instead of charset_primary.
14112
14113 * charset.c (charset_unibyte): Rename from charset_primary.
14114 (Funibyte_charset): Rename from Fprimary_charset.
14115 (Fset_unibyte_charset): Rename from Fset_primary_charset.
14116 (syms_of_charset): Adjust for the above changes.
14117
14118 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
14119 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
14120 it->multibyte_p is zero.
14121
14122 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
14123 Delete extern.
14124
141252008-02-01 Kenichi Handa <handa@m17n.org>
14126
14127 * coding.c (Fdefine_coding_system_internal): Fix category setting
14128 for a coding system of type iso-2022.
14129
141302008-02-01 Kenichi Handa <handa@m17n.org>
14131
14132 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
14133
141342008-02-01 Kenichi Handa <handa@m17n.org>
14135
14136 * syntax.c (Vnext_word_boundary_function_table): New variable.
14137 (next-word-boundary-function-table): Declare it as a Lisp variable
14138 in syms_of_syntax.
14139 (scan_words): Call functions in Vnext_word_boundary_function_table
14140 if any.
14141
14142 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
14143
14144 * fontset.c (fs_load_font): If fontp->charset is not negative,
14145 return fontp without setting its members.
14146
141472008-02-01 Dave Love <fx@gnu.org>
14148
14149 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
14150
14151 * m/sparc.h (HAVE_ALLOCA): Delete.
14152
14153 * s/irix6-5.h: Don't include strings.h.
14154 (bcopy, bzero, bcmp): Don't undef.
14155
14156 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
14157
14158 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
14159 (TIOCSIGSEND): Don't test IRIX6.
14160 (bcopy, bzero, bcmp): Define conditionally.
14161
141622008-02-01 Kenichi Handa <handa@m17n.org>
14163
14164 * buffer.c (Qas, Qmake, Qto): New variables.
14165 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
14166 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
14167
14168 * callproc.c (Fcall_process): Don't call insert_1_both directly if
14169 we are inserting a process output into a multibyte buffer.
14170
14171 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
14172 multibyte_char_to_unibyte.
14173
14174 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
14175 by the primary charset, make it eight-bit char.
14176 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
14177
14178 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
14179 (charset_8_bit__control, charset_8_bit_graphic)
14180 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
14181 (define_charset_internal): New function.
14182 (syms_of_charset): Call define_charset_internal for pre-defined
14183 charsets.
14184
14185 * charset.h (charset_8_bit): Extern it.
14186
14187 * coding.c (make_conversion_work_buffer): Adjust for the change
14188 of Fset_buffer_multibyte.
14189 (encode_coding_raw_text): Increment p0 in the loop.
14190
14191 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
14192
14193 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
14194 for the change of Fset_buffer_multibyte.
14195
14196 * fns.c (Fstring_to_multibyte): New function.
14197 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
14198
141992008-02-01 Dave Love <fx@gnu.org>
14200
14201 * xfns.c (x_put_x_image): Declare args.
14202
14203 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
14204 (try_font_list): Declare an arg.
14205
14206 * xdisp.c (message2_nolog, set_message): Declare an arg.
14207
14208 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
14209
14210 * syntax.c (scan_sexps_forward): Declare an arg.
14211
14212 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
14213 Declare an arg.
14214
14215 * lisp.h (Fnew_fontset): Declare.
14216
14217 * keymap.c (push_key_description): Call CHARACTERP correctly.
14218
14219 * fontset.c (fontset_add): Declare args. Call make_number correctly.
14220 (face_for_char): Delete unused vars.
14221 (Fset_fontset_font): Doc fix. Delete unused vars.
14222
14223 * doc.c (Fsubstitute_command_keys): Delete unused vars.
14224
14225 * composite.c (update_compositions): Declare arg.
14226
14227 * cm.c (calccost, cmgoto): Declare args.
14228
14229 * charset.c: Remove `emacs' conditional. Doc fixes.
14230 (map_char_table_for_charset): Declare.
14231
14232 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
14233
14234 * ccl.c: Remove `emacs' conditional.
14235
142362008-02-01 Kenichi Handa <handa@m17n.org>
14237
14238 The following changes are to allow specifying multiple font
14239 patterns for a character range (specified by script or charset).
14240
14241 * Makefile.in (abbrev.o): Depend on syntax.h.
14242 (xfaces.o): Depend on charset.h.
14243
14244 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
14245 SINGLE_BYTE_CHAR_P.
14246
14247 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
14248
14249 * character.h (Vchar_script_table): Extern it.
14250
14251 * character.c (Vscript_alist): Delete.
14252 (Vchar_script_table, Qchar_script_table): New variable.
14253 (syms_of_character): Declare Vchar_script_table as a lisp variable
14254 and initialize it.
14255
14256 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
14257 have property char-table-extra-slots, make no extra slot.
14258
14259 * dispextern.h (struct face): Delete member `charset'.
14260 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
14261 SINGLE_BYTE_CHAR_P.
14262 (choose_face_font, lookup_non_ascii_face, font_name_registry):
14263 Add prototypes.
14264 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
14265 (generate_ascii_font_name): Rename from generate_ascii_font.
14266
14267 * fontset.h (get_font_repertory_func): New prototype.
14268 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
14269 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
14270
14271 * fontset.c (Qprepend, Qappend): New variables.
14272 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
14273 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
14274 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
14275 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
14276 (fontset_ref_and_range, fontset_add, reorder_font_vector)
14277 (load_font_get_repertory): New functions.
14278 (fontset_set): Delete.
14279 (fontset_face): New arg FACE. Return face ID, not face.
14280 Complete re-write to handle new fontset structure. Change caller.
14281 (free_face_fontset): Use ASET istead of AREF (X) = Y.
14282 (face_for_char): Don't call lookup_face.
14283 (make_fontset_for_ascii_face): New arg FACE.
14284 (fs_load_font): New arg CHARSET_ID. Don't check
14285 Vfont_encoding_alist here.
14286 (find_font_encoding): New function.
14287 (list_fontsets): Use STRINGP, not ! NILP.
14288 (accumulate_script_ranges): New function.
14289 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
14290 re-written to handle new fontset structure.
14291 (Ffontset_font): Return a copy of element.
14292 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
14293 docstring of font-encoding-alist.
14294
14295 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
14296 (Fset_fotset_font): Fix arguments to 5.
14297
14298 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
14299
14300 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
14301 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
14302 (highlight_trailing_whitespace): Adjust for the change of
14303 lookup_named_face.
14304
14305 * xfaces.c: Include charset.h.
14306 (load_face_font): Delete argument C. Change caller.
14307 (generate_ascii_font_name): Rename from generate_ascii_font.
14308 (font_name_registry): New function.
14309 (cache_face): Store ascii faces before non-ascii faces in buckets.
14310 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
14311 Lookup only ascii faces.
14312 (lookup_non_ascii_face): New function.
14313 (lookup_named_face): Delete argument C. Change caller.
14314 (lookup_derived_face): Delete argument C. Change caller.
14315 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
14316 a string, just call font_list with it.
14317 (choose_face_font): Delete arguments FACE and C. New arg
14318 FONT_SPEC. Change caller.
14319 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
14320 Change caller.
14321 (realize_non_ascii_face): New function.
14322 (realize_x_face): Call load_face_font here.
14323 (realize_tty_face): Delete argument C. Change caller.
14324 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
14325 get a face ID.
14326 (dump_realized_face): Don't print charset of FACE.
14327
14328 * xfns.c (x_set_font): Always call x_new_fontset and
14329 store_frame_parameter.
14330 (Fx_create_frame): Call x_new_fontset, not x_new_font.
14331 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
14332
14333 * xterm.h (x_get_font_repertory): Extern it.
14334
14335 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
14336 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
14337 it->multibyte_p is zero.
14338 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
14339 (x_new_fontset): If FONTSETNAME doesn't match any existing
14340 fontsets, create a new one.
14341 (x_get_font_repertory): New function.
14342
143432008-02-01 Kenichi Handa <handa@m17n.org>
14344
14345 * coding.c (Ffind_coding_systems_region_internal): Detect an
14346 ASCII only string correctly.
14347
14348 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
14349 version is 0.
14350
143512008-02-01 Kenichi Handa <handa@m17n.org>
14352
14353 * lread.c: Include "coding.h".
14354 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
14355 (load_each_byte, unread_char): New variables.
14356 (readchar_backlog): Delete.
14357 (readchar): Return a character unless load_each_byte is nonzero.
14358 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
14359 cons. If unread_char is not -1, simply return it.
14360 (unreadchar): Handle the case that readcharfun is
14361 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
14362 (read_multibyte): Delete.
14363 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
14364 (read_emacs_mule_char): New functions.
14365 (Fload): Even if the file doesn't have the extension ".elc", if
14366 safe_to_load_p returns a positive version number, assume that the
14367 file contains bytecompiled code. If the version is less than 22,
14368 load the file while decoding multibyte sequences by emacs-mule.
14369 (readevalloop): Don't use readchar_backlog.
14370 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
14371 (Fread_from_string): Pay attention to the case that STREAM is a cons.
14372 (read_escape): Delete the arg BYTEREP.
14373 (read1): Set load_each_byte to 1 temporarily while handling
14374 #@NUMBER. Don't call read_multibyte.
14375 (read_vector): Call Fread with a cons. If readcharfun is
14376 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
14377 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
14378 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
14379 and Qload_force_doc_strings.
14380
143812008-02-01 Kenichi Handa <handa@m17n.org>
14382
14383 * xdisp.c (face_before_or_after_it_pos): Call
14384 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
14385
143862008-02-01 Kenichi Handa <handa@m17n.org>
14387
14388 * character.h (TRAILING_CODE_P): New macro.
14389 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
14390 (string_char_with_unification): Fix prototype.
14391 (Vscript_alist): Extern it.
14392
14393 * character.c (Vscript_alist): New variable.
14394 (string_char_with_unification, str_as_unibyte)
14395 (string_escape_byte8): Add `const' to local variables.
14396 (syms_of_character): Declare script-alist as a Lisp variable.
14397
14398 * charset.h (Vcharset_ordered_list): Extern it.
14399 (charset_ordered_list_tick): Extern it.
14400 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
14401 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
14402 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
14403 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
14404 (Funify_charset): Adjust for the change of Funify_charset.
14405
14406 * charset.c (charset_ordered_list_tick): New variable.
14407 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
14408 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
14409 deunify intead of unify a charset.
14410 (string_xstring_p): Add `const' to local variables.
14411 (find_charsets_in_text): Add `const' to arguments and local variables.
14412 (encode_char): Adjust for the change of Funify_charset. Fix
14413 detecting of invalid code.
14414 (Fset_charset_priority): Increment charset_ordered_list_tick.
14415 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
14416 and TO_CODE.
14417
14418 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
14419 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
14420 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
14421 (decode_coding_ccl, consume_chars)
14422 (Ffind_coding_systems_region_internal)
14423 (Fcheck_coding_systems_region): Add `const' to local variables.
14424
14425 * print.c (print_object): Use octal form for printing the
14426 contents of a bool vector.
14427
144282008-02-01 Dave Love <fx@gnu.org>
14429
14430 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
14431 <version == 20>: Refuse to load.
14432
144332008-02-01 Dave Love <fx@gnu.org>
14434
14435 * fns.c: Move coding.h.
14436 (Qcodeset, Qdays, Qmonths): New.
14437 (concat): Use CHARACTERP instead of INTEGERP.
14438 (Flocale_codeset): Delete.
14439 (Flanginfo): New function.
14440 (syms_of_fns): Change accordingly.
14441
14442 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
14443
144442008-02-01 Dave Love <fx@gnu.org>
14445
14446 * casetab.c (init_casetab_once, init_casetab_once): Fix
14447 CHAR_TABLE_SET call.
14448
14449 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
14450
14451 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
14452
14453 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
14454 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
14455 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
14456
14457 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
14458
14459 * coding.c (ENCODE_DESIGNATION, decode_eol)
14460 (make_conversion_work_buffer, code_conversion_restore)
14461 (Fdefine_coding_system_internal): Convert Lisp types.
14462 (code_conversion_restore): Use EQ, not ==.
14463 (Fencode_coding_string): Fix code_convert_string call.
14464
14465 * coding.h (code_convert_region): Fix prototype.
14466
14467 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
14468
14469 * fontset.c (fontset_ref, fontset_set, fs_load_font)
14470 (Ffontset_info): Convert Lisp types.
14471
14472 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
14473
14474 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
14475
14476 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
14477
14478 * chartab.c: Include "...h", not <...h> in some cases.
14479
14480 * callproc.c (Fcall_process): Remove unused variables.
14481
144822008-02-01 Dave Love <fx@gnu.org>
14483
14484 * coding.c (Fset_coding_system_priority): Allow null arg list.
14485
144862008-02-01 Dave Love <fx@gnu.org>
14487
14488 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
14489 (Fself_insert_and_exit): Use CHARACTERP.
14490
14491 * callproc.c (Fcall_process): Remove unused vars.
14492
14493 * xterm.c (XTread_socket): Add extra dead keysyms.
14494
14495 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
14496
14497 * dispextern.h: Remove prototypes for redraw_frame,
14498 redraw_garbaged_frames.
14499
14500 * cmds.c (Fself_insert_command): Use CHARACTERP.
14501
14502 * chartab.c (make_sub_char_table): Remove unused var.
14503 (Fset_char_table_default, Fmap_char_table): Doc fix.
14504
14505 * keymap.c (access_keymap): Remove generic char code.
14506 (push_key_description): Use CHARACTERP.
14507
145082008-02-01 Dave Love <fx@gnu.org>
14509
14510 * charset.c: Doc fixes.
14511 (Funify_charset): Extra checking.
14512
145132008-02-01 Dave Love <fx@gnu.org>
14514
14515 * lread.c: Remove some unused variables.
14516 (safe_to_load_p): If safe, return the magic number version byte.
14517 (Fload): Maybe use load-with-code-conversion.
14518
145192008-02-01 Kenichi Handa <handa@m17n.org>
14520
14521 * category.c (Fmodify_category_entry): Don't modify the contents
14522 of category_set for characters out of the range. Avoid
14523 unnecessary modification.
14524
14525 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
14526 Vchar_unify_table. The default value of the table is now nil.
14527
14528 * character.c (syms_of_character): Setup Vchar_width_table for
14529 eight-bit-control and raw-byte chars.
14530
14531 * charset.h (enum define_charset_arg_index): Delete
14532 charset_arg_parents and add charset_arg_subset and
14533 charset_arg_superset.
14534 (enum charset_attr_index): Delete charset_parents and add
14535 charset_subset and charset_superset.
14536 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
14537 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
14538 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
14539 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
14540 (CHARSET_SUPERSET): New macros.
14541 (charset_work): Extern it.
14542 (ENCODE_CHAR): Use charset_work.
14543 (CHAR_CHARSET_P): Adjust for the change of encoder format.
14544 (map_charset_chars): Extern it.
14545
14546 * charset.c (load_charset_map): Set the default value of encoder
14547 and deunifier char-tables to nil.
14548 (map_charset_chars): Change argument. Change callers. Use
14549 map_char_table_for_charset instead of map_char_table.
14550 (Fmap_charset_chars): New optional args from_code and to_code.
14551 (Fdefine_charset_internal): Adjust for the change of
14552 `define-charset' (:parents -> :subset or :superset).
14553 (charset_work): New variable.
14554 (encode_char, syms_of_charset): Adjust for the change of
14555 Fdefine_charset_internal.
14556 (Ffind_charset_string): Setup the vector `charsets' correctly.
14557
14558 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
14559 the previous change.
14560 (char_table_ref_and_range): Adjust for the above change.
14561 (map_sub_char_table_for_charset): New function.
14562 (map_char_table_for_charset): New function.
14563
14564 * keymap.c (describe_vector): Handle a char-table directly here.
14565 (describe_char_table): Delete.
14566
14567 * lisp.h (map_charset_chars): Delete.
14568
145692008-02-01 Dave Love <fx@gnu.org>
14570
14571 * fns.c (count_combining): Comment out (unused).
14572 (Flocale_codeset): New.
14573 (syms_of_fns): Defsubr it.
14574
14575 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
14576 (size_t): Remove.
14577
145782008-02-01 Dave Love <fx@gnu.org>
14579
14580 * Makefile.in (chartab.o): Depend on charset.h.
14581
145822008-02-01 Kenichi Handa <handa@m17n.org>
14583
14584 * character.c (syms_of_character): Set the default value of
14585 Vprintable_chars to Qnil.
14586
145872008-02-01 Dave Love <fx@gnu.org>
14588
14589 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
14590
145912008-02-01 Kenichi Handa <handa@m17n.org>
14592
14593 * charset.c (load_charset_map): Handle the case that from < to
14594 correctly.
14595
14596 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
14597 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
14598 Pay attention to raw-8-bit chars.
14599
146002008-02-01 Kenichi Handa <handa@m17n.org>
14601
14602 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
14603 It is not bytecompiled now.
14604
14605 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
14606 (charset_jisx0208): New variables.
14607 (Fdefine_charset_internal): Setup them if appropriate.
14608 (init_charset_once): Initialize them to -1.
14609
14610 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
14611 (charset_jisx0208): Extern them.
14612
14613 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
14614 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
14615 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
14616 (setup_iso_safe_charsets): Fix arguments to Fassq.
14617 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
14618 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
14619 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
14620 (encode_coding_iso_2022): Change the 1st arg to
14621 ENCODE_ISO_CHARACTER to a variable.
14622
146232008-02-01 Kenichi Handa <handa@m17n.org>
14624
14625 * charset.h (enum define_charset_arg_index): New enums
14626 charset_arg_min_code and charset_arg_max_code.
14627 (struct charset): New member char_index_offset.
14628
14629 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
14630 Take charset->char_index_offset into account.
14631 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
14632 args[charset_arg_max_code]. Setup charset.char_index_offset.
14633 (syms_of_charset): Fix args to Fdefine_charset_internal.
14634
146352008-02-01 Dave Love <fx@gnu.org>
14636
14637 * coding.c (decode_coding_utf_8): Reject overlong sequences.
14638
146392008-02-01 Dave Love <fx@gnu.org>
14640
14641 * coding.c: Doc fixes.
14642 (Fcoding_system_aliases): Fix return value.
14643 (Qmac): Remove (duplicated) definition.
14644
146452008-02-01 Dave Love <fx@gnu.org>
14646
14647 * charset.c (Fcharset_priority_list, Fset_charset_priority): New
14648 functions.
14649
14650 * character.c (Fstring): Doc fix.
14651
14652 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
14653
14654 * fontset.c (Ffontset_info): Doc fix. Return charset names, not
14655 ids.
14656 (font-encoding-alist): Doc fix.
14657
146582008-02-01 Dave Love <fx@gnu.org>
14659
14660 * term.c (costs_set): Declare static, non-initialized for pcc.
14661 (encode_terminal_code): Remove unused var.
14662
14663 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
14664 for K&R.
14665
14666 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
14667
14668 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
14669 (suffixes): Move out of make_subsidiaries for K&R.
14670
14671 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
14672
14673 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
14674
146752008-02-01 Dave Love <fx@gnu.org>
14676
14677 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
14678
14679 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
14680
146812008-02-01 Yong Lu <lyongu@asia-infonet.com>
14682
14683 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
14684
14685 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
14686
146872008-02-01 Kenichi Handa <handa@m17n.org>
14688
14689 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
14690 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
14691
146922008-02-01 Kenichi Handa <handa@m17n.org>
14693
14694 * coding.c (decode_coding_charset): Adjust for the change of
14695 Fdefine_coding_system_internal.
14696 (Fdefine_coding_system_internal): For a coding system of
14697 `charset' type, store a list of charset IDs in
14698 `charset_attr_charset_valids' element of coding attributes.
14699
147002008-02-01 Kenichi Handa <handa@m17n.org>
14701
14702 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
14703 (emacs_mule_char): New arg src. Delete arg `composition'. Change
14704 caller. Handle 2-byte and 3-byte charsets correctly.
14705 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
14706 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
14707 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
14708 (DECODE_EMACS_MULE_21_COMPOSITION): Call
14709 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
14710 sequence.
14711 (decode_coding_emacs_mule): Handle composition correctly. Rewind
14712 `src' and `consumed_chars' correctly before calling emacs_mule_char.
14713 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
14714 and alt&rule composition.
14715 (decode_coding_iso_2022): Handle composition correctly.
14716 (init_coding_once): Setup emacs_mule_bytes for private charsets.
14717
14718 * charset.c (Fdefine_charset_internal): Fix bug for the case of
14719 re-defining a charset. If the charset has :emacs-mule-id, setup
14720 emacs_mule_bytes.
14721 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
14722
147232008-02-01 Kenichi Handa <handa@m17n.org>
14724
14725 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
14726 (encode_coding_big5, encode_coding_charset): If coding requires safe
14727 encoding, produce a character specified by
14728 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
14729
147302008-02-01 Dave Love <fx@gnu.org>
14731
14732 * xterm.c (XSetIMValues): Declare.
14733
14734 * process.c: Conditionally include sys/wait.h, pty.h.
14735
14736 * print.c (print_object): Fix print format for 64-bit systems.
14737
14738 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
14739
14740 * buffer.c (emacs_strerror): Declare.
14741
14742 * fontset.c (Fclear_face_cache): Declare.
14743 (accumulate_font_info): Comment-out (unused).
14744 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
14745 variables.
14746
14747 * character.h (string_escape_byte8): Declare.
14748
14749 * charset.c (load_charset_map, load_charset_map_from_file): Remove
14750 unused vars.
14751 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
14752 (Fmap_charset_chars): Doc fix.
14753
14754 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
14755 (Fset_coding_system_priority, Fset_coding_system_priority)
14756 (Fdefine_coding_system_internal): Doc fix.
14757
147582008-02-01 Dave Love <fx@gnu.org>
14759
14760 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
14761
147622008-02-01 Kenichi Handa <handa@m17n.org>
14763
14764 * character.c (string_escape_byte8): Make multibyte string with
14765 correct size.
14766
14767 * charset.c (Fmake_char): Delete unnecessary code.
14768
147692008-02-01 Kenichi Handa <handa@m17n.org>
14770
14771 * xfns.c (x_encode_text): Allocate coding.destination here, and
14772 call encode_coding_object with dst_object Qnil.
14773
14774 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
14775 multibyte form correctly.
14776
14777 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
14778 against Vfont_encoding_alist.
14779
14780 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
14781 handling of charset list.
14782 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
14783 (decode_coding_object): Move point to coding->dst_pos before
14784 calling post-read-conversion function.
14785 (encode_coding_object): Give correct arguments to
14786 pre-write-conversion. Ignore the return value of
14787 pre-write-conversion function. Pay attention to the case that
14788 pre-write-conversion changes the current buffer. If dst_object is
14789 Qt, even if coding->src_bytes is zero, allocate at least one byte
14790 to coding->destination.
14791
14792 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
14793
14794 * charset.c (Fmake_char): Make it more backward compatible.
14795 (Fmap_charset_chars): Fix docstring.
14796
147972008-02-01 Dave Love <fx@gnu.org>
14798
14799 * coding.c: Doc fixes.
14800 (Fdefine_coding_system_alias): Use names, not symbols, in
14801 coding-system-alist.
14802
148032008-02-01 Kenichi Handa <handa@m17n.org>
14804
14805 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
14806 of calling free_realized_face.
14807
148082008-02-01 Yong Lu <lyongu@asia-infonet.com>
14809
14810 * charset.c (read_hex): Don't treat SPC as a comment starter.
14811 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
14812 (Fdecode_char): Fix typo.
14813
148142008-02-01 Kenichi Handa <handa@m17n.org>
14815
14816 * charset.h (struct charset): New member `code_space_mask'.
14817
14818 * coding.c (coding_set_source): Delete the local variable beg_byte.
14819 (encode_coding_charset, Fdefine_coding_system_internal):
14820 Delete the local variable charset.
14821 (Fdefine_coding_system_internal): Setup
14822 attrs[coding_attr_charset_valids] correctly.
14823
14824 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
14825 member to check if CODE is valid or not.
14826 (Fdefine_charset_internal): Initialize `code_space_mask' member.
14827 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
14828 is within the range of charset->min_code and carset->max_code.
14829
148302008-02-01 Dave Love <fx@gnu.org>
14831
14832 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
14833
14834 * dispextern.h (generate_ascii_font): Fix return type.
14835
14836 * xfaces.c (generate_ascii_font): Fix arg declaration.
14837
14838 * coding.c (coding_inherit_eol_type)
14839 (Fset_terminal_coding_system_internal)
14840 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
14841
148422008-02-01 Kenichi Handa <handa@m17n.org>
14843
14844 * coding.c (decode_coding_charset, encode_coding_charset): Handle
14845 multiple charsets correctly.
14846
148472008-02-01 Kenichi Handa <handa@m17n.org>
14848
14849 * search.c (boyer_moore): Fix handling of multibyte character
14850 translation.
14851
14852 * xdisp.c (display_mode_element): When the variable `elt' is
14853 changed, update `this' and `lisp_string'.
14854
148552008-02-01 Kenichi Handa <handa@m17n.org>
14856
14857 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
14858
14859 * callproc.c (Fcall_process): Be sure to give the current buffer
14860 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
14861
14862 * charset.c (struct charset_map_entries): New struct.
14863 (load_charset_map): Rename from parse_charset_map. New args
14864 entries and n_entries. Change caller.
14865 (load_charset_map_from_file): Rename from load_charset_map.
14866 Change caller. New arg control_flag. Call load_charset_map at
14867 the tail.
14868 (load_charset_map_from_vector): New function.
14869 (Fdefine_charset_internal): Setup charset.compact_codes_p.
14870 (encode_char): If the charset is compact, change a character index
14871 to a code point.
14872
14873 * coding.c (coding_alloc_by_making_gap): Check the case that the
14874 source and destination are the same correctly.
14875 (decode_coding_raw_text): Set coding->consumed_char and
14876 coding->consumed to 0.
14877 (produce_chars): If coding->chars_at_source is nonzero, update
14878 coding->consumed_char and coding->consumed before calling
14879 alloc_destination.
14880 (Fdefine_coding_system_alias): Register ALIAS in
14881 Vcoding_system_alist.
14882 (syms_of_coding): Define `no-conversion' coding system at the tail.
14883
14884 * fileio.c (Finsert_file_contents): Set coding_system instead of
14885 val. If the current buffer is multibyte, always call
14886 decode_coding_gap.
14887
14888 * xfaces.c (try_font_list): Give higher priority to fontset's
14889 family than face's family.
14890
148912008-02-01 Kenichi Handa <handa@m17n.org>
14892
14893 * callproc.c (Fcall_process): Be sure to give the current buffer
14894 to decode_coding_c_string.
14895
14896 * xfaces.c (try_font_list): Give a family specified in a fontset
14897 higher priority than a family specified in a face.
14898
148992008-02-01 Kenichi Handa <handa@m17n.org>
14900
14901 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
14902 Fix arguments to insert_from_buffer.
14903
14904 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
14905
149062008-02-01 Kenichi Handa <handa@m17n.org>
14907
14908 * coding.c (produce_chars): Set the variable `multibytep' correctly.
14909 (decode_coding_gap): Set coding->dst_multibyte correctly.
14910
149112008-02-01 Kenichi Handa <handa@m17n.org>
14912
14913 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
14914 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
14915 (encode_coding_utf_16): Substitute coding->default_char for
14916 non-Unicode characters.
14917 (decode_coding): Don't call record_insert here.
14918 (setup_coding_system): Initialize `surrogate' of
14919 coding->spec.utf_16 to 0.
14920 (EMIT_ONE_BYTE): Fix for multibyte case.
14921
14922 * insdel.c (insert_from_gap): Call record_insert.
14923
149242008-02-01 Kenichi Handa <handa@m17n.org>
14925
14926 * casefiddle.c (casify_region): Fix multibyte case.
14927
14928 * character.c (c_string_width): Add return type `int'.
14929 (char_string_with_unification): Delete arg ADVANCED.
14930
14931 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
14932 (CHAR_STRING): Adjust for the change of char_string_with_unification.
14933 (CHAR_STRING_ADVANCE): Make it do-while statement.
14934
14935 * chartab.c (sub_char_table_set_range): Optimize for the case
14936 DEPTH == 3. Add workaround code for a GCC optimization bug.
14937
14938 * charset.c (parse_charset_map): Remove an unused variable.
14939
14940 * coding.c: Delete unused variables.
14941
14942 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
14943 earlier. If inserted is zero and the coding system doesn't
14944 require flushing, don't call decode_coding_gap.
14945
14946 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
14947
149482008-02-01 Kenichi Handa <handa@m17n.org>
14949
14950 The following changes are for using Unicode as an internal
14951 character model, and use UTF-8 format for buffer/string
14952 representation.
14953
14954 * .gdbinit (xchartable): Adjust for the change of char table structure.
14955 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
14956
14957 * Makefile.in (obj): Add character.o and chartab.o.
14958 (lisp, shortlisp): Remove utf-8.elc.
14959 (*.o): For many files, change dependency on charset.h to
14960 character.h, and add dependency on character.h.
14961 (character.o, chartab.o): New targets.
14962
14963 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
14964 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
14965 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
14966 of "charset.h".
14967
14968 * dired.c, filelock.c: Include "character.h".
14969
14970 * alloc.c: Include "character.h" instead of "charset.h".
14971 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
14972 (syms_of_alloc): Remove defsubr for Smake_char_table.
14973
14974 * buffer.c: Include "character.h" instead of "charset.h", don't
14975 include "coding.h".
14976 (Fset_buffer_multibyte): Adjust for UTF-8.
14977
14978 * buffer.h: EXFUN Fbuffer_live_p.
14979
14980 * callproc.c: Include "character.h" instead of "charset.h".
14981 (Fcall_process): Big change for the new code-conversion APIs.
14982
14983 * casetab.c: Include "character.h" instead of "charset.h".
14984 (set_canon, set_identity, shuffle): Adjust for the new
14985 map_char_table spec.
14986 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
14987 accessing the char table structure.
14988
14989 * chartab.c: New file that implements char table.
14990
14991 * category.c: Include "character.h".
14992 (copy_category_entry): New function.
14993 (copy_category_table): Call map_char_table and copy_category_entry.
14994 (Fmake_category_table): Initialize all top-level slots.
14995 (char_category_set): New function.
14996 (modify_lower_category_set): Delete.
14997 (Fmodify_category_entry): Call char_table_ref_and_range.
14998
14999 * category.h (CATEGORY_SET): Just call char_category_set.
15000
15001 * ccl.c: Include "character.h".
15002 (Qccl, Qcclp): New variables.
15003 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
15004 it's less than 256.
15005 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
15006 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
15007 and DST type.
15008 (ccl_driver): Change types of argument, adjust code accordingly.
15009 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
15010 ccl_driver.
15011 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
15012
15013 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
15014 New members src_multibyte, dst_multibyte, consumed, and produced.
15015 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
15016 (CODING_SPEC_CCL_PROGRAM): New macro.
15017 (ccl_driver): Update prototype.
15018 (Qccl, Qcclp, Fccl_program_p): Extern them.
15019 (CHECK_CCL_PROGRAM): New macro.
15020
15021 * character.c, character.h, chartab.c: New files.
15022
15023 * charset.c: Mostly re-written. Move character and multibyte sequence
15024 handling codes to character.c.
15025
15026 * charset.h: Mostly re-written. Move character and multibyte sequence
15027 handling codes to character.h.
15028
15029 * coding.c, coding.h: Mostly re-written.
15030
15031 * composite.c: Include "character.h" instead of "charset.h".
15032 (CHAR_WIDTH): Move to character.h.
15033 (HASH_KEY, HASH_VALUE): Delete.
15034
15035 * composite.h (enum composition_method): Change order of enumeration
15036 symbols.
15037
15038 * data.c: Include "character.h" instead of "charset.h".
15039 (Faref): Call CHAR_TABLE_REF for a char table.
15040 (Faset): Call CHAR_TABLE_SET for a char table.
15041
15042 * dispextern.h (free_realized_face, check_face_attribytes)
15043 (generate_ascii_font): Extern them.
15044 (free_realized_multibyte_face): Delete extern.
15045
15046 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
15047 table structure.
15048
15049 * editfns.c: Include "character.h" instead of "charset.h".
15050 (Fchar_to_string): Always call CHAR_STRING.
15051
15052 * emacs.c (main): Call init_charset_once, init_charset,
15053 syms_of_chartab, and syms_of_character.
15054
15055 * fileio.c: Include "character.h" instead of "charset.h".
15056 (Finsert_file_contents): Big change for the new code-conversion API.
15057 (choose_write_coding_system, Fwrite_region): Likewise.
15058 (build_annotations_2): Delete.
15059 (e_write): Big change for the new code-conversion API.
15060
15061 * fns.c: Include "character.h" instead of "charset.h".
15062 (copy_sub_char_table): Move to chartab.c.
15063 (Fcopy_sequence): Call copy_char_table for a char table.
15064 (concat): Delete codes calling count_multibyte.
15065 (string_char_to_byte, string_byte_to_char): Adjust for the new
15066 multibyte form.
15067 (internal_equal): Adjust for the change of char table structure.
15068 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
15069 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
15070 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
15071 (char_table_translate, optimize_sub_char_table)
15072 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
15073 chartab.c.
15074 (char_table_ref_and_index): Delete.
15075 (HASH_KEY, HASH_VALUE): Move to lisp.h.
15076 (Fmd5): Call preferred_coding_system instead of accessing
15077 Vcoding_category_list. Adjust for the new code-conversion API.
15078 (syms_of_fns): Move defsubr for char table related functions to
15079 chartab.c.
15080
15081 * fontset.c: Mostly re-written.
15082
15083 * fontset.h (struct font_info): Change type of the member encoding_type.
15084 (enum FONT_SPEC_INDEX): New enum.
15085 (fontset_font_pattern, fs_load_font): Update prototype.
15086 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
15087
15088 * indent.c: Include "character.h" instead of "charset.h".
15089 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
15090
15091 * insdel.c: Include "character.h" instead of "charset.h".
15092 (copy_text): Don't refer to Vnonascii_translation_table.
15093 (insert_from_gap): New function.
15094
15095 * keyboard.c: Include "character.h" instead of "charset.h".
15096 (command_loop_1): Never call direct_output_forward_char before
15097 a non-ASCII character.
15098 (read_char): If Vkeyboard_translate_table is a char table, always
15099 translate a character.
15100
15101 * keymap.c: Include "character.h".
15102 (store_in_keymap): Handle the case that IDX is a cons.
15103 (Fdefine_key): Handle the case that KEY is a cons and the car part
15104 is also a cons (range).
15105 (push_key_description): Adjust for the new character code.
15106 (describe_vector): Call describe_char_table for a char table.
15107 (describe_char_table): New function.
15108
15109 * keymap.h (describe_char_table): Extern it.
15110
15111 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
15112 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
15113 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
15114 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
15115 Delete.
15116 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
15117 structure.
15118 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
15119 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
15120 (CHARTAB_SIZE_BITS_3): New macros.
15121 (chartab_size): Extern it.
15122 (struct Lisp_Char_Table): Re-design.
15123 (struct Lisp_Sub_Char_Table): New structure.
15124 (HASH_KEY, HASH_VALUE): Move from fns.c.
15125 (CHARACTERBITS): Define as 22.
15126 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
15127 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
15128 (GC_SUB_CHAR_TABLE_P): New macro.
15129 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
15130 (code_convert_string_norecord): Deleted extern.
15131 (init_character_once, syms_of_character, init_charset)
15132 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
15133
15134 * lread.c: Include "character.h".
15135 (read_multibyte): New arg NBYTES.
15136 (read_escape): Change the meaning of returned *BYTEREP.
15137 (to_multibyte): Delete.
15138 (read1): Adjust the handling of char table and string.
15139
15140 * print.c: Include "character.h" instead of "charset.h".
15141 (print_string): Convert 8-bit raw bytes to octal form by
15142 string_escape_byte8.
15143 (print_object): Adjust for the new multibyte form. Print 8-bit
15144 raw bytes always in octal form. Handle sub char table correctly.
15145
15146 * process.c: Include "character.h" instead of "charset.h".
15147 (read_process_output, send_process): Adjust for the new
15148 code-conversion API.
15149
15150 * puresize.h (BASE_PURESIZE): Increase.
15151
15152 * regex.c: Include "character.h" instead of "charset.h".
15153 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
15154 (regex_compile): Accept a range whose starting and ending
15155 character have different leading bytes.
15156 (analyse_first): Adjust for the above change.
15157
15158 * search.c: Include "character.h" instead of "charset.h".
15159 (search_buffer, boyer_moore): Adjust for the new multibyte form.
15160 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
15161
15162 * syntax.c: Include "character.h" instead of "charset.h".
15163 (syntax_parent_lookup): Delete.
15164 (Fmodify_syntax_entry): Accept a cons as CHAR.
15165 (skip_chars): Adjust for the new multibyte form.
15166 (init_syntax_once): Call char_table_set_range instead of directly
15167 accessing the structure of a char table.
15168
15169 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
15170 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
15171 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
15172 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
15173
15174 * term.c: Include "buffer.h" and "character.h".
15175 (encode_terminal_code, write_glyphs): Adjust for the new
15176 code-conversion API.
15177 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
15178
15179 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
15180
15181 * xdisp.c: Include "character.h".
15182 (get_next_display_element): Adjust for the new multibyte form.
15183 (disp_char_vector): Adjust for the new char table structure.
15184 (decode_mode_spec_coding): Adjust for the new structure of
15185 coding system.
15186 (decode_mode_spec): Adjust for the new code-conversion API.
15187
15188 * xfaces.c: Include "character.h" instead of "charset.h".
15189 (load_face_font): Adjust for the change of choose_face_font and
15190 FS_LOAD_FONT.
15191 (generate_ascii_font): New function.
15192 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
15193 (set_font_frame_param): Adjust for the change of choose_face_font.
15194 (free_realized_face): Make it public.
15195 (free_realized_faces_for_fontset): Rename from
15196 free_realized_multibyte_face. Free also faces realized for ASCII.
15197 (choose_face_font): Change arguments. Adjust for the change of
15198 fontset_font_pattern and FS_LOAD_FONT.
15199
15200 * xfns.c: Include "character.h".
15201 (x_encode_text): Adjust for the new code-conversion API.
15202
15203 * xselect.c: Don't include "charset.h".
15204 (selection_data_to_lisp_data): Adjust for the new code conversion API.
15205
15206 * xterm.c: Include "character.h".
15207 (x_encode_char): New argument CHARSET. Change caller.
15208 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
15209 Call ENCODE_CHAR instead of SPLIT_CHAR.
15210 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
15211 CHAR_WIDTH instead of CHARSET_WIDTH.
15212 (XTread_socket): Adjust for the new code-conversion API.
15213 (x_new_font): Adjust for the change of FS_LOAD_FONT.
15214 (x_load_font): Adjust for the change of struct font.
15215
152162008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
15217
15218 * xfaces.c (face_at_buffer_position): Remove unused vars.
15219
152202008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15221
15222 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
15223 Fix overflow checking.
15224
152252008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15226
15227 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
15228 Cancel previous change.
15229
152302008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
15231
15232 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
15233 ccl->eight_bit_control. Fix check for buffer overflow.
15234 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
15235 (ccl_driver): Initialize extra_bytes to 0.
15236
152372008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
15238
15239 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
15240 return it ORed with ctrl_modifier.
15241
152422008-01-29 Miles Bader <miles@gnu.org>
15243
15244 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
15245
152462008-01-28 Jason Rumney <jasonr@gnu.org>
15247
15248 * w32.c (stat): Don't double check for networked drive.
15249
152502008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
15251
15252 * window.c (run_window_configuration_change_hook): New function.
15253 Code extracted from set_window_buffer. Set the selected frame.
15254 (set_window_buffer): Use it.
15255 * window.h (run_window_configuration_change_hook): Declare.
15256 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
15257
15258 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
15259
152602008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
15261
15262 * Makefile.in: Remove references to unused macros.
15263
152642008-01-26 Eli Zaretskii <eliz@gnu.org>
15265
15266 * w32.c (g_b_init_get_sid_sub_authority)
15267 (g_b_init_get_sid_sub_authority_count): New static variables.
15268 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
15269 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
15270 (init_user_info): Use them to retrieve uid and gid.
15271 Use 500/513, the Windows defaults, as Administrator's uid/gid.
15272 (fstat): Use pw_uid and pw_gid from the_passwd structure for
15273 st_uid and st_gid of the file.
15274
152752008-01-26 Jason Rumney <jasonr@gnu.org>
15276
15277 * w32.c (logon_network_drive): New function.
15278 (stat): Use it.
15279
152802008-01-26 Chong Yidong <cyd@stupidchicken.com>
15281
15282 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
15283 invisible text covered with an ellipsis.
15284
152852008-01-25 Richard Stallman <rms@gnu.org>
15286
15287 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
15288 jump back to beginning. Move some other initializations after that.
15289 (Qwindow_text_change_functions, Vwindow_text_change_functions):
15290 New variables.
15291 (syms_of_xdisp): Init them.
15292
15293 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
15294
15295 * buffer.c (reset_buffer_local_variables):
15296 Implement `permanent-local-hook'.
15297 (Qpermanent_local_hook): New variable.
15298 (syms_of_buffer): Init and staticpro it.
15299
153002008-01-25 Michael Albinus <michael.albinus@gmx.de>
15301
15302 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
15303
153042008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
15305
15306 * fns.c (Fclrhash): Return TABLE.
15307
153082008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15309
15310 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
15311 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
15312 is set even without positional changes.
15313 (x_scroll_bar_clear): Set bar->redraw_needed_p.
15314
15315 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
15316
153172008-01-23 Jason Rumney <jasonr@gnu.org>
15318
15319 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
15320
15321 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
15322 the unicode range available in MULE by locale-coding-system.
15323 Improve dbcs lead byte detection. Set event timestamp and modifiers
15324 earlier.
15325
153262008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15327
15328 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
15329 [MAC_OSX] (init_mac_osx_environment): Initialize it.
15330 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
15331 when used on child processes.
15332
153332008-01-21 Michael Albinus <michael.albinus@gmx.de>
15334
15335 * dbusbind.c (Fdbus_method_return_internal): Rename from
15336 Fdbus_method_return.
15337 (Fdbus_unregister_object): Move to dbus.el.
15338 (Fdbus_call_method, Fdbus_method_return_internal)
15339 (Fdbus_send_signal): Improve debug messages.
15340
153412008-01-20 Martin Rudalics <rudalics@gmx.at>
15342
15343 * undo.c (undo_inhibit_record_point): New variable.
15344 (syms_of_undo): Initialize it.
15345 (record_point): Don't record point when undo_inhibit_record_point
15346 is set.
15347
153482008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
15349
15350 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
15351
15352 * xdisp.c (Qauto_hscroll_mode): New var.
15353 (syms_of_xdisp): Initialize it.
15354 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
15355 window's buffer.
15356 (hscroll_windows): Don't check automatic_hscrolling_p here.
15357
15358 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
15359 vscroll if we're setting window-buffer to the value it already has.
15360
153612008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
15362
15363 * m/intel386.h: Remove references to XENIX.
15364
153652008-01-17 Andreas Schwab <schwab@suse.de>
15366
15367 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
15368 instead of HAVE_X86_64_LIB64_DIR.
15369 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
15370
153712008-01-17 Glenn Morris <rgm@gnu.org>
15372
15373 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
15374 to HAVE_X86_64_LIB64_DIR.
15375
153762008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
15377
15378 * s/irix3-3.h:
15379 * s/irix4-0.h:
15380 * s/386-ix.h:
15381 * s/domain.h:
15382 * s/hpux9-x11r4.h:
15383 * s/hpux9shxr4.h: Remove files for systems no longer supported.
15384
15385 * sysdep.c: Remove code containing references to symbols defined
15386 by unsupported systems.
15387
153882008-01-16 Glenn Morris <rgm@gnu.org>
15389
15390 * coding.c (select-safe-coding-system-function): Doc fix.
15391
153922008-01-15 Glenn Morris <rgm@gnu.org>
15393
15394 * config.in: Revert 2008-01-13 change: this is a generated file.
15395
153962008-01-13 Tom Tromey <tromey@redhat.com>
15397
15398 * lisp.h: Fix typo.
15399
154002008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
15401
15402 * m/sequent-ptx.h:
15403 * m/sequent.h:
15404 * s/ptx.h:
15405 * s/ptx4-2.h:
15406 * s/ptx4.h: Remove files for systems no longer supported.
15407
15408 * callproc.c (Fcall_process): Fix previous change.
15409
154102008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
15411
15412 * unexsunos4.c: Remove file, system not supported anymore.
15413
15414 * m/mips.h:
15415 * m/intel386.h:
15416 * callproc.c:
15417 * config.in:
15418 * ecrt0.c:
15419 * emacs.c:
15420 * fileio.c:
15421 * frame.c:
15422 * getpagesize.h:
15423 * keyboard.c:
15424 * lread.c:
15425 * process.c:
15426 * puresize.h:
15427 * sysdep.c:
15428 * systty.h:
15429 * syswait.h:
15430 * unexec.c:
15431 * xdisp.c:
15432 * alloc.c: Remove code containing references to symbols defined by
15433 unsupported systems.
15434
154352008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
15436
15437 * coding.c (detect_coding_mask): Fix previous change.
15438
154392008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
15440
15441 * coding.c (detect_coding_iso2022): New arg
15442 latin_extra_code_state. Allow Latin extra codes only
15443 when *latin_extra_code_state is nonzero.
15444 (detect_coding_mask): If there is a NULL byte, detect the encoding
15445 as UTF-16 or binary. If Latin extra codes exist, detect the
15446 encoding as ISO-2022 only when there's no other proper encoding is
15447 found.
15448
154492008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15450
15451 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
15452 #ifdef MAC_OS.
15453
154542008-01-08 Richard Stallman <rms@gnu.org>
15455
15456 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
15457
154582008-01-06 Nick Roberts <nickrob@snap.net.nz>
15459
15460 * keyboard.c (parse_menu_item): Don't enclose key bindings on
15461 menu bar in parentheses.
15462
154632008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
15464
15465 * m/7300.h:
15466 * m/acorn.h:
15467 * m/alliant-2800.h:
15468 * m/alliant.h:
15469 * m/alliant1.h:
15470 * m/alliant4.h:
15471 * m/altos.h:
15472 * m/amdahl.h:
15473 * m/apollo.h:
15474 * m/att3b.h:
15475 * m/aviion-intel.h:
15476 * m/aviion.h:
15477 * m/celerity.h:
15478 * m/clipper.h:
15479 * m/cnvrgnt.h:
15480 * m/convex.h:
15481 * m/cydra5.h:
15482 * m/delta88k.h:
15483 * m/dpx2.h:
15484 * m/dual.h:
15485 * m/elxsi.h:
15486 * m/f301.h:
15487 * m/gould-np1.h:
15488 * m/gould.h:
15489 * m/i860.h:
15490 * m/ibmps2-aix.h:
15491 * m/ibmrt-aix.h:
15492 * m/ibmrt.h:
15493 * m/irist.h:
15494 * m/is386.h:
15495 * m/isi-ov.h:
15496 * m/mega68.h:
15497 * m/mg1.h:
15498 * m/news-r6.h:
15499 * m/news-risc.h:
15500 * m/news.h:
15501 * m/nh3000.h:
15502 * m/nh4000.h:
15503 * m/ns16000.h:
15504 * m/ns32000.h:
15505 * m/nu.h:
15506 * m/orion.h:
15507 * m/orion105.h:
15508 * m/paragon.h:
15509 * m/pfa50.h:
15510 * m/plexus.h:
15511 * m/pyramid.h:
15512 * m/pyrmips.h:
15513 * m/sh3el.h:
15514 * m/sps7.h:
15515 * m/sr2k.h:
15516 * m/stride.h:
15517 * m/sun1.h:
15518 * m/sun2.h:
15519 * m/sun3-68881.h:
15520 * m/sun3-fpa.h:
15521 * m/sun3-soft.h:
15522 * m/sun3.h:
15523 * m/sun386.h:
15524 * m/symmetry.h:
15525 * m/tad68k.h:
15526 * m/tahoe.h:
15527 * m/targon31.h:
15528 * m/tek4300.h:
15529 * m/tekxd88.h:
15530 * m/tower32.h:
15531 * m/tower32v3.h:
15532 * m/ustation.h:
15533 * m/wicat.h:
15534 * m/xps100.h:
15535 * s/cxux.h:
15536 * s/cxux7.h:
15537 * s/dgux.h:
15538 * s/dgux4.h:
15539 * s/dgux5-4-3.h:
15540 * s/dgux5-4r2.h:
15541 * s/esix.h:
15542 * s/esix5r4.h:
15543 * s/hiuxmpp.h:
15544 * s/hiuxwe2.h:
15545 * s/iris3-5.h:
15546 * s/iris3-6.h:
15547 * s/isc2-2.h:
15548 * s/isc3-0.h:
15549 * s/isc4-0.h:
15550 * s/isc4-1.h:
15551 * s/newsos5.h:
15552 * s/newsos6.h:
15553 * s/osf1.h:
15554 * s/osf5-0.h:
15555 * s/riscix1-1.h:
15556 * s/riscix12.h:
15557 * s/sco4.h:
15558 * s/sco5.h:
15559 * s/sunos4-0.h:
15560 * s/sunos4-1.h:
15561 * s/sunos413.h:
15562 * s/sunos4shr.h:
15563 * s/umax.h:
15564 * s/unipl5-2.h:
15565 * s/xenix.h:
15566 * cxux-crt0.s:
15567 * unexapollo.c:
15568 * unexconvex.c:
15569 * unexenix.c:
15570 * unexsni.c: Remove files for systems no longer supported.
15571
15572 * m/intel386.h: Remove references to unsupported systems.
15573
15574 * w32.c (get_emacs_configuration): Remove reference to i860.
15575
15576 * sysdep.c: Remove dead code.
15577
155782008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
15579
15580 * s/rtu.h:
15581 * m/masscomp.h: Remove files. Platform is obsolete.
15582
155832008-01-04 Michael Albinus <michael.albinus@gmx.de>
15584
15585 * dbusbind.c (Fdbus_method_return): New function.
15586 (xd_read_message): Add the serial number to the event.
15587 (Fdbus_register_method): Activate the function.
15588
155892008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
15590
15591 * keyboard.c (read_key_sequence): Fix typo.
15592
155932008-01-03 Michael Albinus <michael.albinus@gmx.de>
15594
15595 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
15596 (xd_signature, xd_append_arg): Handle element type detection for
15597 empty arrays.
15598 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
15599 SDATA () calls; this must be solved more general.
15600 (Fdbus_register_signal): Use SBYTES instead of strlen.
15601
156022008-01-03 Magnus Henoch <magnus@zemdatav>
15603
15604 * dbusbind.c (xd_append_arg): Use unsigned char instead of
15605 unsigned int for byte values (necessary for big-endian platform).
15606 (Fdbus_call_method): Handle the case of no returned arguments.
15607
156082007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
15609
15610 * dbusbind.c (xd_read_message): Use non-static input_event struct.
15611
156122007-12-31 Magnus Henoch <mange@freemail.hu>
15613
15614 * dbusbind.c (xd_signature): Signature of variant is just "v".
15615
156162007-12-30 Michael Albinus <michael.albinus@gmx.de>
15617
15618 * dbusbind.c: Fix several errors and compiler warnings.
15619 Reported by Tom Tromey <tromey@redhat.com>.
15620 (XD_ERROR, XD_DEBUG_MESSAGE)
15621 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
15622 (xd_append_arg): Part for basic D-Bus types rewritten.
15623 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
15624 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
15625 appropriate.
15626 (xd_read_message): Return Qnil. Don't signal an error; it is not
15627 useful during event reading.
15628 (Fdbus_register_signal): Signal an error if the check for
15629 FUNCTIONP fails.
15630 (Fdbus_register_method): New function. The implementation is not
15631 complete, the call of the function signals an error therefore.
15632 (Fdbus_unregister_object): New function, renamed from
15633 Fdbus_unregister_signal. The initial check signals an error, if
15634 the object is not well formed.
15635
156362007-12-30 Richard Stallman <rms@gnu.org>
15637
15638 * textprop.c (get_char_property_and_overlay):
15639 Signal error if POSITION is out of range in a buffer.
15640
156412007-12-29 Martin Rudalics <rudalics@gmx.at>
15642
15643 * w32fns.c (Fx_create_frame): Make copy of frame parameters
15644 because the original parameters are in pure storage now.
15645
156462007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15647
15648 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
15649
156502007-12-22 Eli Zaretskii <eliz@gnu.org>
15651
15652 * callint.c (syms_of_callint) <command-history>: Add reference to
15653 history-length in the doc string.
15654
156552007-12-17 Jason Rumney <jasonr@gnu.org>
15656
15657 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
15658 before passing as wParam.
15659
156602007-12-22 Michael Albinus <michael.albinus@gmx.de>
15661
15662 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
15663 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
15664 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
15665 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
15666 as number.
15667 (Fdbus_call_method): Fix docstring.
15668
156692007-12-21 Michael Albinus <michael.albinus@gmx.de>
15670
15671 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
15672 New macros.
15673 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
15674 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
15675 Simplify.
15676 (xd_signature): New function.
15677 (xd_append_arg): Compute also signatures. Major rewrite.
15678 (xd_retrieve_arg): Make debug messages friendly.
15679 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
15680 Check for signatures of arguments.
15681
156822007-12-19 Michael Albinus <michael.albinus@gmx.de>
15683
15684 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
15685 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
15686 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
15687 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
15688 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
15689 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
15690 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
15691 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
15692 (xd_retrieve_value): Remove. Functionality included in ...
15693 (xd_append_arg): New function.
15694 (Fdbus_call_method, Fdbus_send_signal): Apply it.
15695
156962007-12-16 Michael Albinus <michael.albinus@gmx.de>
15697
15698 * dbusbind.c (top): Include <stdio.h>.
15699 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
15700 dbus_message_new_method_call and dbus_message_new_signal.
15701 (Fdbus_register_signal): Rename unique_name to uname.
15702 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
15703 non-existing unique name. Fix typos in matching rule. Return an
15704 object which is useful in Fdbus_unregister_signal.
15705 (Fdbus_unregister_signal): Reimplementation, in order to remove
15706 only the corresponding entry.
15707 (Vdbus_registered_functions_table): Change the order of entries.
15708 Apply these changes in xd_read_message and Fdbus_register_signal.
15709
157102007-12-16 Andreas Schwab <schwab@suse.de>
15711
15712 * fileio.c (Finsert_file_contents): Fix overflow check to not
15713 depend on undefined integer overflow.
15714
157152007-12-14 Jason Rumney <jasonr@gnu.org>
15716
15717 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
15718 for characters above 127.
15719
157202007-12-13 Jason Rumney <jasonr@gnu.org>
15721
15722 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
15723 before dereferencing array.
15724 (lookup_vk_code): Remove zero comparison.
15725
157262007-12-14 Michael Albinus <michael.albinus@gmx.de>
15727
15728 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
15729 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
15730 Use `unsigned int' instead of `uint'.
15731 (xd_read_message, Fdbus_register_signal): Split expressions into
15732 multiple lines before operators "&&" and "||", according to the
15733 GNU Coding Standards.
15734
157352007-12-14 Eli Zaretskii <eliz@gnu.org>
15736
15737 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
15738
157392007-12-12 Juri Linkov <juri@jurta.org>
15740
15741 * buffer.c (Frename_buffer): In interactive spec replace
15742 `read-buffer' with `read-string' that uses `buffer-name-history'
15743 as history, and the current buffer's name as default.
15744
157452007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
15746
15747 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
15748 manipulating the backtrace manually.
15749 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
15750 (struct backtrace, backtrace_list): Remove.
15751 (command_loop_1): Remove dead var `no_direct'.
15752
15753 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
15754 preserve non-built-in buffer-local variables.
15755 (Fkill_all_local_variables): Don't re-create&re-set permanent
15756 buffer-local variables.
15757
157582007-12-09 Juri Linkov <juri@jurta.org>
15759
15760 * buffer.c (Frename_buffer): Change interactive spec from "s" to
15761 Lisp code that uses `read-buffer' with current buffer as default.
15762
157632007-12-08 Michael Albinus <michael.albinus@gmx.de>
15764
15765 * dbusbind.c (xd_read_message): Generate an event for every
15766 registered handler. There might be several handlers registered
15767 for the same signal.
15768 (Fdbus_register_signal): Don't overwrite a registration for the
15769 same signal. Add a new registration if handlers are different.
15770 (Vdbus_registered_functions_table): Rework doc string.
15771
157722007-12-07 Michael Albinus <michael.albinus@gmx.de>
15773
15774 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
15775 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
15776 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
15777 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
15778 Unify argument lists.
15779 (xd_read_message, Fdbus_register_signal): Reorder and extend event
15780 arguments and hash table keys. Use unique name for service.
15781 (Fdbus_unregister_signal): Remove checks.
15782 (Vdbus_registered_functions_table): Fix doc string.
15783
157842007-12-05 Magnus Henoch <mange@freemail.hu>
15785
15786 * process.c (make_process): Initialize pty_flag to 0.
15787
157882007-12-05 Jason Rumney <jasonr@gnu.org>
15789
15790 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
15791 specified XBMs.
15792
157932007-12-05 Richard Stallman <rms@gnu.org>
15794
15795 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
15796
157972007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15798
15799 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
15800 New variable.
15801 (mac_try_close_socket) [MAC_OSX]: New function.
15802 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
15803 Update cfsockets_for_select. Replace invalid CFRunLoop source.
15804
15805 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
15806 Use mac_try_close_socket.
15807
158082007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15809
15810 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
15811 reloc_base.
15812 (copy_dysymtab): Compute relocation base here.
15813 (rebase_reloc_address) [__ppc64__]: New function.
15814 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
15815 changed.
15816
158172007-12-05 Jason Rumney <jasonr@gnu.org>
15818
15819 * w32proc.c (sys_spawnve): Quote args with wildcards.
15820
158212007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15822
15823 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
15824 __objc_* sections.
15825 (unrelocate) [_LP64]: Set relocation base to address of data segment.
15826
158272007-12-05 Michael Albinus <michael.albinus@gmx.de>
15828
15829 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
15830 Move check for Vdbus_registered_functions_table to
15831 xd_read_queued_messages.
15832 (xd_read_queued_messages): Protect xd_read_message calls by
15833 internal_condition_case_1.
15834
158352007-12-04 Michael Albinus <michael.albinus@gmx.de>
15836
15837 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
15838 Qdbus_system_bus and Qdbus_session_bus, respectively.
15839 (Vdbus_intern_symbols): Remove.
15840 (Vdbus_registered_functions_table): New hash table.
15841 (XD_SYMBOL_INTERN_SYMBOL): Remove.
15842 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
15843 Rewrite in order to manage registered functions by hash table
15844 Vdbus_registered_functions_table.
15845
158462007-12-03 Jan Djärv <jan.h.d@swipnet.se>
15847
15848 * xterm.c: Update URL to Window Manager Specification in comment.
15849
158502007-12-02 Michael Albinus <michael.albinus@gmx.de>
15851
15852 * config.in (HAVE_DBUS): Add.
15853
15854 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
15855 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
15856 (obj): Add $(DBUS_OBJ).
15857 (LIBES): Add $(DBUS_LIBS).
15858 (dbusbind.o): New target.
15859
15860 * dbusbind.c: New file.
15861
15862 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
15863
15864 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
15865 (Qdbus_event): New Lisp symbol.
15866 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
15867 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 15868 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
15869
15870 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
15871
158722007-12-01 Richard Stallman <rms@gnu.org>
15873
15874 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
15875
158762007-11-30 Jason Rumney <jasonr@gnu.org>
15877
15878 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
15879 (w32con_reset_terminal_modes): Clear screen buffer.
15880 (w32_face_attributes): Don't use color indexes that are out of range.
15881 Only reverse the default colors.
15882
15883 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
15884 WINDOWSNT.
15885
15886 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
15887
158882007-11-29 Jason Rumney <jasonr@gnu.org>
15889
15890 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
15891 (w32_face_attributes): Use Vtty_defined_color_alist to determine
15892 if the terminal colors are initialized.
15893 (unspecified_fg, unspecified_bg): Remove unused declarations.
15894
158952007-11-29 Andreas Schwab <schwab@suse.de>
15896
15897 * keyboard.c (apply_modifiers): Fix typo.
15898
158992007-11-29 Richard Stallman <rms@gnu.org>
15900
15901 * keymap.c (Fcurrent_local_map): Doc fix.
15902
159032007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
15904
15905 * s/gnu-kfreebsd.h: New file.
15906
159072007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
15908
15909 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
15910 Don't cast redundantly.
15911
15912 * keyboard.c (KEY_TO_CHAR): New macro.
15913 (parse_modifiers, apply_modifiers): Accept integer arguments.
15914 (read_key_sequence): Use them to unify the "shift->unshift" mapping
15915 for chars and symbol keys.
15916 After doing such remapping, apply function-key-map again.
15917
159182007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
15919
15920 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
15921 compiled anymore.
15922
159232007-11-26 Andreas Schwab <schwab@suse.de>
15924
15925 * process.c (list_processes_1): Fix indentation level of the
15926 command column.
15927
159282007-11-23 Andreas Schwab <schwab@suse.de>
15929
15930 * editfns.c (Fformat): Handle %c specially since it requires the
15931 argument to be of type int.
15932
159332007-11-23 Markus Triska <markus.triska@gmx.at>
15934
15935 * emacs.c (main): Call init_editfns before init_process, since
15936 init_process sets Vprocess_connection_type depending on OS release.
15937
159382007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
15939
15940 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
15941 (find_symbol_value): Use do_symval_forwarding.
15942
15943 * data.c (set_internal): Set the value in the `cons-cell' (for
15944 Buffer_Local_values) not only for frame-local variables.
15945
159462007-11-22 Andreas Schwab <schwab@suse.de>
15947
15948 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
15949 values to sprintf.
15950 * keymap.c (Fsingle_key_description): Likewise.
15951 * print.c (print_object): Likewise.
15952
159532007-11-22 Jan Djärv <jan.h.d@swipnet.se>
15954
15955 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
15956 file for image is nil.
15957
159582007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
15959
15960 * term.c: Include stdarg.h.
15961 (fatal): Implement using varargs.
15962 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
15963
159642007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
15965
15966 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
15967 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
15968 Update call to buffer_slot_type_mismatch.
15969 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
15970 (buffer_slot_type_mismatch): Update.
15971 * buffer.c (buffer_local_types): Remove.
15972 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
15973 (defvar_per_buffer): Set the type in the buffer_objfwd.
15974
159752007-11-21 Jason Rumney <jasonr@gnu.org>
15976
15977 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
15978 CreateFileMapping returns NULL on failure.
15979
159802007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
15981
15982 * search.c (Fset_match_data): Remove the `evaporate' feature.
15983 (unwind_set_match_data): Don't use the `evaporate' feature.
15984
159852007-11-21 Jason Rumney <jasonr@gnu.org>
15986
15987 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
15988
15989 * w32console.c (w32con_write_glyphs): Remove unused variables.
15990
159912007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
15992
15993 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
15994
15995 * s/darwin.h (MULTI_KBOARD): Remove.
15996
15997 * macfns.c (x_create_tip_frame, Fx_create_frame)
15998 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
15999
160002007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
16001
16002 * buffer.c (Fbuffer_local_value): Remove redundant test.
16003 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
16004 than in `current-buffer' to match the comment.
16005 Do the swap using swap_in_global_binding.
16006
16007 * data.c (store_symval_forwarding, set_internal):
16008 * eval.c (specbind): Remove dead code.
16009
16010 * coding.c (detect_coding, Fupdate_coding_systems_internal):
16011 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
16012 Since we do not want to see internal Lisp_*fwd objects here.
16013
160142007-11-18 Jan Djärv <jan.h.d@swipnet.se>
16015
16016 * sysdep.c (init_system_name): Use getaddrinfo if available.
16017
16018 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
16019 (x_scroll_bar_note_movement): start, end, with, height in struct
16020 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
16021
160222007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
16023
16024 * puresize.h (BASE_PURESIZE): Increase to 1190000.
16025
160262007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
16027
16028 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
16029 This undoes Richard's change of 14-Oct-2002.
16030
16031 * alloc.c (allocate_other_vector):
16032 * lisp.h (allocate_other_vector): Remove.
16033
16034 * window.c (struct save_window_data): Move non-lisp data to the end
16035 and make it `int' rather than Lisp_Object.
16036 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
16037 Done wrap/unwrap integer values.
16038 (Fset_window_configuration, compare_window_configurations):
16039 Update use of fields to their new types.
16040
16041 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
16042 Turn integer fields into `int'. Merge x_window_low and x_window_high.
16043 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
16044 (SET_SCROLL_BAR_X_WINDOW): Remove.
16045 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
16046 Access the new x_window field directly.
16047 * xterm.c (x_scroll_bar_create): Use a pseudovector.
16048 Don't wrap/unwrap integers into Lisp_Objects.
16049 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
16050 (x_scroll_bar_report_motion):
16051 Don't wrap/unwrap integers into Lisp_Objects.
16052 (x_term_init): Use SDATA.
16053 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
16054 (x_scroll_bar_set_handle, x_scroll_bar_remove)
16055 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
16056 (x_scroll_bar_report_motion, x_scroll_bar_clear):
16057 * xfns.c (x_set_background_color):
16058 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
16059 Access the new x_window field directly.
16060
16061 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
16062 (allocate_pseudovector): Make non-static.
16063
16064 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
16065 (allocate_pseudovector): Declare.
16066 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
16067
160682007-11-15 Andreas Schwab <schwab@suse.de>
16069
16070 * editfns.c (Fformat): Correctly format EMACS_INT values.
16071 Also take precision into account when formatting an integer.
16072
16073 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
16074
160752007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
16076
16077 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
16078 (syms_of_keyboard): Defsubr it.
16079
16080 * data.c (swap_in_global_binding): Fix longstanding bug where
16081 store_symval_forwarding was not called with the right second argument,
16082 thus causing objfwd-ing from being dropped.
16083
160842007-11-14 Juanma Barranquero <lekktu@gmail.com>
16085
16086 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
16087 (Fx_display_pixel_height, Fx_display_planes)
16088 (Fx_display_color_cells, Fx_server_max_request_size)
16089 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
16090 (Fx_display_visual_class, Fx_display_save_under):
16091 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
16092 (Fx_display_pixel_height, Fx_display_planes)
16093 (Fx_display_color_cells, Fx_server_max_request_size)
16094 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
16095 (Fx_display_mm_height, Fx_display_mm_width)
16096 (Fx_display_backing_store, Fx_display_visual_class)
16097 (Fw32_select_font, Fx_display_save_under):
16098 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
16099 (Fx_display_pixel_height, Fx_display_planes)
16100 (Fx_display_color_cells, Fx_server_max_request_size)
16101 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
16102 (Fx_display_save_under): Fix typos in docstrings.
16103
161042007-11-14 Juanma Barranquero <lekktu@gmail.com>
16105
16106 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
16107 corresponding to deleted entries; they are an implementation detail.
16108 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
16109 Remove variables.
16110 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
16111 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
16112 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
16113 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
16114 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
16115 (Fw32_define_rgb_color, Fw32_load_color_file)
16116 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
16117 Fix typos in docstrings.
16118 (Fx_server_version): Reflow docstring.
16119 (Fw32_shell_execute): Doc fixes.
16120
161212007-11-13 Juanma Barranquero <lekktu@gmail.com>
16122
16123 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
16124 if w32_parse_hot_key returned nil.
16125
161262007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
16127
16128 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
16129
161302007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 16131
aac0c6e3
MR
16132 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
16133
16134 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
16135
16136 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
16137 Remove W32_SCROLL_BAR_CLICK_EVENT.
16138
16139 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
16140 Add MULTIMEDIA_KEY_EVENT.
16141
16142 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
16143 (lispy_multimedia_keys) [WINDOWSNT]: New array.
16144 (make_lispy_event) [WINDOWSNT]: Use it to translate
16145 MULTIMEDIA_KEY_EVENT.
16146
16147 * w32term.h (WM_APPCOMMAND): Define if not already.
16148 (GET_APPCOMMAND_LPARAM): Likewise.
16149
16150 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
16151 WM_APPCOMMAND.
16152
16153 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
16154 (syms_of_w32fns): Export and initialize it.
16155 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
16156
161572007-11-09 Chong Yidong <cyd@stupidchicken.com>
16158
16159 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
16160 twice.
16161
16162 * xdisp.c (handle_face_prop): Fix last change.
16163
161642007-11-09 Richard Stallman <rms@gnu.org>
16165
16166 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
16167 not just for after-strings and before-strings.
16168 Call face_for_overlay_string and pass the overlay to it.
16169 (handle_display_prop): Determine whether property came from an overlay.
16170 Pass OVERLAY arg to handle_single_display_spec.
16171 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
16172 (load_overlay_strings): Fill in it->string_overlays.
16173 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
16174
16175 * xfaces.c (face_for_overlay_string): Function renamed from
16176 face_at_buffer_position_no_overlays, and add arg OVERLAY.
16177
16178 * dispextern.h (struct it): New elt string_overlays.
16179 New elt from_overlay, also in stack.
16180 Rearrange a few elements.
16181 (face_for_overlay_string): Decl renamed from
16182 face_at_buffer_position_no_overlays, and add argument.
16183
161842007-11-09 Richard Stallman <rms@gnu.org>
16185
16186 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
16187 to get the base face for an overlay string.
16188
16189 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
16190
16191 * xfaces.c (face_at_buffer_position_no_overlays): New function.
16192
16193 * xdisp.c (handle_stop): Move some code out of loop.
16194
161952007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16196
16197 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
16198 Fix conversion from Lisp object to ATSUFontID.
16199
162002007-11-09 Jason Rumney <jasonr@gnu.org>
16201
16202 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
16203
162042007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16205
16206 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
16207 Don't assume regions are aligned to page boundary.
16208 (print_load_command_name): Add LC_UUID if defined.
16209
162102007-11-09 Richard Stallman <rms@gnu.org>
16211
16212 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
16213
162142007-11-07 Jason Rumney <jasonr@gnu.org>
16215
16216 * s/windows95.h: Remove.
16217
162182007-11-06 Jan Djärv <jan.h.d@swipnet.se>
16219
16220 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
16221 abort with a message on unhandled store_type values.
16222
162232007-11-01 Jan Djärv <jan.h.d@swipnet.se>
16224
16225 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
16226 Remove HAVE_X11R5 and HAVE_X11R4.
16227
162282007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
16229
16230 * Makefile.in: Remove references to sunfns.c and sunfns.o.
16231
162322007-11-01 Johan Bockgård <bojohan@gnu.org>
16233
16234 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
16235 Don't set s->stippled_p here, since it has already been set by
16236 x_set_glyph_string_gc from x_draw_glyph_string.
16237
162382007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
16239
16240 * sunfns.c: Remove file.
16241
16242 * m/sun386.h:
16243 * m/sun2.h:
16244 * m/sparc.h: Remove Sun windows code.
16245
162462007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
16247
16248 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
16249 (init_keyboard): Set current_kboard's window-system to nil.
16250 (tty_read_avail_input): Typo.
16251 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
16252
162532007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
16254
16255 * s/usg5-4.h:
16256 * s/usg5-3.h:
16257 * s/ptx.h:
16258 * m/is386.h:
16259 * m/ibmps2-aix.h:
16260 * Makefile.in: Remove all mentions of X10.
16261
16262 * dispnew.c (syms_of_display): Don't mention version 10.
16263
162642007-10-28 Juanma Barranquero <lekktu@gmail.com>
16265
16266 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
16267 ($(BLD)/abbrev.$(O)): Remove.
16268
162692007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
16270
16271 Rewrite abbrev.c in Elisp.
16272 * image.c (Qcount): Don't declare as extern.
16273 (syms_of_image): Initialize and staticpro `Qcount'.
16274 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
16275 * emacs.c (main): Don't call syms_of_abbrev.
16276 * Makefile.in (obj): Remove abbrev.o.
16277 (abbrev.o): Remove.
16278 * abbrev.c: Remove.
16279
162802007-10-26 Martin Rudalics <rudalics@gmx.at>
16281
16282 * window.c (window_min_size_2): Don't count header-line.
16283
162842007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
16285
16286 * frame.h (struct frame): Move all bit fields after the first bit
16287 field to take advantage of the available space. Group all the
16288 chars together to reduce wasted space due to padding.
16289
162902007-10-26 Juanma Barranquero <lekktu@gmail.com>
16291
16292 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
16293
16294 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
16295 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
16296 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
16297 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
16298 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
16299 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
16300 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
16301 (last_marked, mark_object_loop_halt): Make static.
16302
16303 * frame.c (syms_of_frame) <delete-frame-functions>:
16304 Fix typo in docstring.
16305
163062007-10-25 Juanma Barranquero <lekktu@gmail.com>
16307
16308 * w32.c (init_environment): Fix tiny memory leak.
16309 (w32_get_resource): Remove unused variable `ok'.
16310
163112007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
16312
16313 Make `window-system' into a keyboard-local variable (rather than
16314 frame-local as done originally by multi-tty).
16315
16316 * keyboard.h (struct kboard): Add Vwindow_system.
16317 * keyboard.c (init_kboard): Set a default for Vwindow_system.
16318 (mark_kboards): Mark Vwindow_system.
16319
16320 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
16321 (init_display): Don't set the obsolete `window-system' frame-param.
16322
16323 * xterm.c (x_term_init):
16324 * w32term.c (w32_create_terminal):
16325 * term.c (init_tty): Set Vwindow_system.
16326 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
16327 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
16328
16329 * xfns.c (Fx_create_frame, x_create_tip_frame):
16330 * w32fns.c (Fx_create_frame, x_create_tip_frame):
16331 * macfns.c (Fx_create_frame):
16332 Don't set the obsolete `window-system' frame-param.
16333
16334 * frame.h (Qwindow_system): Remove.
16335 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
16336 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
16337
163382007-10-24 Richard Stallman <rms@gnu.org>
16339
16340 * frame.c (x_figure_window_size): For fullscreen case,
16341 set USPosition | PPosition without clobbering rest of window_prompting.
16342
16343 * keyboard.c (Fcurrent_idle_time): Doc fix.
16344
16345 * print.c (Fwith_output_to_temp_buffer): Doc fix.
16346
163472007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
16348
16349 * process.c (unwind_request_sigio): Only define if __ultrix__.
16350
16351 * callproc.c (child_setup): Remove spurious *.
16352
16353 * lisp.h (Fget_text_property): Declare.
16354 (have_menus_p): Declare it here rather than in sys-dep header files.
16355 * macterm.h (have_menus_p):
16356 * msdos.h (have_menus_p):
16357 * xterm.h (have_menus_p): Remove.
16358
16359 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
16360 (Fmake_variable_frame_local): Just check the variable's const-ness
16361 rather than checking nil or t.
16362
163632007-10-22 Jason Rumney <jasonr@gnu.org>
16364
16365 * w32fns.c: Include math.h.
16366 (w32_abort): Declaration moved to nt/config.nt.
16367
16368 * s/ms-w32.h (HAVE_STDLIB_H): Define.
16369 (abort): Redefinition moved to nt/config.nt.
16370
16371 * m/windowsnt.h: Remove.
16372
163732007-10-22 Juanma Barranquero <lekktu@gmail.com>
16374
16375 * emacs.c (Fdump_emacs): Fix typo in message.
16376 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
16377 <installation-directory>: Reflow docstring.
16378
163792007-10-22 Juri Linkov <juri@jurta.org>
16380
16381 * minibuf.c: Allow minibuffer default to be a list of default values.
16382 With empty input use the first element of this list as returned default.
16383 (string_to_object)
16384 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
16385 (read_minibuf): If defalt is cons, set histstring to its car.
16386 (Fread_string): If default_value is cons, set val to its car.
16387 (Fread_buffer): If def is cons, use its car.
16388 (Fcompleting_read): If defalt is cons, set val to its car.
16389
163902007-10-21 Michael Albinus <michael.albinus@gmx.de>
16391
16392 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
16393
163942007-10-20 Juanma Barranquero <lekktu@gmail.com>
16395
16396 * doc.c (Fdocumentation): Check for advice in all cases.
16397
163982007-10-19 Chong Yidong <cyd@stupidchicken.com>
16399
16400 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
16401
164022007-10-19 Richard Stallman <rms@gnu.org>
16403
16404 * doc.c (Fdocumentation): Check for and handle an advised function.
16405
164062007-10-19 Juanma Barranquero <lekktu@gmail.com>
16407
16408 * process.c (Fset_process_filter): Doc fix.
16409
164102007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
16411
16412 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
16413 which caused key-translation-map to applied repeatedly (thus breaking
16414 double-mode).
16415
164162007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
16417
16418 * xselect.c (x_own_selection, x_handle_selection_clear)
16419 (x_clear_frame_selections):
16420 * w32menu.c (list_of_panes, list_of_items):
16421 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
16422 * textprop.c (validate_plist, interval_has_all_properties)
16423 (interval_has_some_properties, interval_has_some_properties_list)
16424 (add_properties, text_property_list):
16425 * process.c (Fget_buffer_process, list_processes_1, status_notify):
16426 * minibuf.c (Fassoc_string):
16427 * macselect.c (x_own_selection, x_clear_frame_selections)
16428 (Fx_disown_selection_internal):
16429 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
16430 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
16431
164322007-10-17 Chong Yidong <cyd@stupidchicken.com>
16433
16434 * process.c: Link to libs for calling res_init() if available.
16435 (Fmake_network_process): Call res_init() before getaddrinfo or
16436 gethostbyname, if possible.
16437
164382007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
16439
16440 * lread.c (read1): Set pvectype for char_tables.
16441
16442 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
16443 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
16444 Add type checks.
16445 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
16446
16447 * alloc.c (free_misc): Use XMISCTYPE.
16448 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
16449
164502007-10-17 Glenn Morris <rgm@gnu.org>
16451
16452 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
16453 (syms_of_minibuf): Add Qcompletion_ignore_case.
16454 * dired.c (Qcompletion_ignore_case): Change to external.
16455 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
16456 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
16457 (Fread_file_name): Use it rather than intern'ing.
16458
16459 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
16460 (Fread_coding_system): Ignore case of user input.
16461
164622007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16463
16464 * xdisp.c (handle_display_prop): Ignore display specs after
16465 replacing one when string text is being replaced.
16466 (handle_single_display_spec): Pretend as if characters with display
16467 property haven't been consumed only when buffer text is being replaced.
16468
164692007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
16470
16471 * xfns.c (Fx_create_frame, Fx_display_list):
16472 * window.c (window_fixed_size_p, enlarge_window)
16473 (shrink_window_lowest_first):
16474 * macterm.c (init_font_name_table):
16475 * macfns.c (Fx_create_frame, Fx_display_list):
16476 * lread.c (close_load_descs):
16477 * keyboard.c (read_char_x_menu_prompt):
16478 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
16479 * coding.c (code_convert_region_unwind): Test the type of an object
16480 rather than just !NILP before extracting data from it.
16481
16482 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
16483
16484 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
16485 (XMISCANY): New macro.
16486 (XMISCTYPE): Use it.
16487 (struct Lisp_Misc_Any): New type.
16488 (union Lisp_Misc): Use it.
16489 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
16490 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
16491 (find_symbol_value, set_internal, default_value, Fset_default)
16492 (Fmake_variable_buffer_local, Fmake_local_variable)
16493 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
16494 (Flocal_variable_if_set_p, Fvariable_binding_locus):
16495 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
16496 * alloc.c (allocate_buffer): Set the size and tag.
16497 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
16498 Use XMISCANY.
16499 (die): Follow the GNU convention for error messages.
16500 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
16501 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
16502 tag any more.
16503 (set_buffer_internal_1):
16504 * frame.c (store_frame_param):
16505 * eval.c (specbind):
16506 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
16507
16508 * doc.c (Fsnarf_documentation): Simplify.
16509
165102007-10-14 Juanma Barranquero <lekktu@gmail.com>
16511
16512 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
16513 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
16514
165152007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
16516
16517 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
16518
165192007-10-14 Juanma Barranquero <lekktu@gmail.com>
16520
16521 * eval.c (do_autoload): Don't save autoloads.
16522
16523 * data.c (Ffset): Save autoload of the function being set.
16524
165252007-10-07 John Paul Wallington <jpw@pobox.com>
16526
16527 * xfns.c (x_create_tip_frame): Set the `display-type' frame
16528 parameter before setting up faces.
16529
165302007-10-13 Eli Zaretskii <eliz@gnu.org>
16531
16532 * ccl.c (Fregister_code_conversion_map):
16533 * keyboard.c (append_tool_bar_item): Reformat last change.
16534
16535 * lisp.h (eabs): Rename from `abs'. All callers changed.
16536
165372007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
16538
16539 * buffer.c (add_overlay_mod_hooklist):
16540 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
16541 * fontset.c (make_fontset):
16542 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
16543 (append_tool_bar_item):
16544 * macmenu.c (grow_menu_items):
16545 * w32menu.c (grow_menu_items):
16546 * xmenu.c (grow_menu_items): Use larger_vector.
16547
165482007-10-13 Eli Zaretskii <eliz@gnu.org>
16549
16550 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
16551 selected frame'' on MSDOS).
16552
165532007-10-12 Martin Rudalics <rudalics@gmx.at>
16554
16555 * frame.c (Qexplicit_name): New variable.
16556 (x_report_frame_params): Report it in parameter alist.
16557 (syms_of_frame): Intern and staticpro it.
16558
165592007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
16560
16561 * macfns.c (x_create_tip_frame): Set terminal for frame.
16562
165632007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
16564
16565 * frame.c (Qenvironment): Remove.
16566 (syms_of_frame) <Qenvironment>: Don't initialize.
16567 (Fdelete_frame): Don't treat the `environment' param specially.
16568 * frame.h (Qenvironment): Don't declare.
16569 * callproc.c (set_initial_environment): Don't set unused frame param.
16570
16571 * frame.c (Fframe_with_environment): Remove.
16572 (syms_of_frame) <Sframe_with_environment>: Don't declare.
16573
16574 * lisp.h (Fframe_with_environment): Don't declare.
16575
165762007-10-10 Juanma Barranquero <lekktu@gmail.com>
16577
16578 * indent.c (indent_tabs_mode, last_known_column)
16579 (last_known_column_modified): Make static.
16580 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
16581
165822007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
16583
16584 * puresize.h (BASE_PURESIZE): Increase to 1170000.
16585
165862007-10-09 Jason Rumney <jasonr@gnu.org>
16587
16588 * w32term.c (x_set_window_size): Disable code that attempts to tell
16589 Lisp code about a size change before it actually happens.
16590
165912007-10-09 Richard Stallman <rms@gnu.org>
16592
16593 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
16594 return HANDLED_RETURN.
16595
165962007-10-08 Martin Rudalics <rudalics@gmx.at>
16597
16598 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
16599 when there's an unread command event.
16600
16601 * frame.c (focus_follows_mouse): Move here from frame.el to allow
16602 window autoselection act appropriately when leaving selected frame.
16603 (syms_of_frame): Initialize focus_follows_mouse.
16604 * frame.h (focus_follows_mouse): Extern it.
16605 * macterm.c (XTread_socket): When focus_follows_mouse is nil
16606 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
16607 * msdos.c (dos_rawgetc): Likewise.
16608 * w32term.c (w32_read_socket): Likewise.
16609 * xterm.c (handle_one_xevent): Likewise.
16610 * xdisp.c (syms_of_xdisp): In doc-string of
16611 mouse-autoselect-window mention focus-follows-mouse.
16612
166132007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16614
16615 * macterm.c (mac_load_query_font): Fix missing return value.
16616 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
16617 Add BLOCK_INPUT.
16618
166192007-10-08 Richard Stallman <rms@gnu.org>
16620
16621 * xdisp.c (get_window_cursor_type): Implement documented behavior
16622 for cursor-in-non-selected-windows = t.
16623
166242007-10-08 Jason Rumney <jasonr@gnu.org>
16625
16626 * w32.c (w32_get_resource): Always close registry keys.
16627
166282007-10-08 Jason Rumney <jasonr@gnu.org>
16629
16630 * makefile.w32-in (LIBS): Add COMCTL32.
16631
16632 * w32fns.c (globals_of_w32fns): Init common controls.
16633
166342007-10-08 Richard Stallman <rms@gnu.org>
16635
16636 * image.c (our_memory_buffer): Rename from omfib_buffer.
16637
166382007-10-08 Richard Stallman <rms@gnu.org>
16639
16640 * buffer.c (Foverlays_at): Doc fix.
16641
166422007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
16643
16644 * fns.c (Fplist_put): Preserve uneven tail data.
16645
166462007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
16647
16648 * termhooks.h (enum event_kind): Remove trailing comma.
16649
16650 * frame.h (enum): Remove trailing comma.
16651
166522007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
16653
16654 * w32proc.c (delete_child): Don't terminate threads of zombies.
16655
166562007-10-08 Martin Rudalics <rudalics@gmx.at>
16657
16658 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
16659
16660 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
16661 last-repeatable-command.
16662 (init_kboard): Initialize Vlast_repeatable_command.
16663 (command_loop_1): Set it to real_this_command unless that was
16664 bound to an input event.
16665 (mark_kboards): Mark it.
16666
166672007-10-08 Richard Stallman <rms@gnu.org>
16668
16669 * eval.c (condition-case): Doc fix.
16670
166712007-10-08 Masatake YAMATO <jet@gyve.org>
16672
16673 * xfaces.c (tty_supports_face_attributes_p): Fix code
16674 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
16675 was copied and not edited.
16676
166772007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
16678
16679 Add new `input-decode-map' keymap and use it for terminal
16680 escape sequences.
16681 * keyboard.h (struct kboard): Add Vinput_decode_map.
16682 Remove Vlocal_key_translation_map.
16683 * keyboard.c (read_key_sequence): Add support for input-decode-map.
16684 (init_kboard): Init input-decode-map.
16685 Replace local-key-translation-map back with key-translation-map.
16686 (syms_of_keyboard): Declare input-decode-map.
16687 Remove local-key-translation-map. Update docstrings.
16688 (mark_kboards): Mark Vinput_decode_map.
16689 Don't mark Vlocal_key_translation_map.
16690 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
16691 Replace local-key-translation-map back with key-translation-map.
16692 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
16693 Bind in input-decode-map rather than function-key-map.
16694
16695 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
16696 This was made redundant by the previous introduction of XSETPVECTYPE.
16697
166982007-10-09 Richard Stallman <rms@gnu.org>
16699
16700 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
16701
167022007-09-29 Richard Stallman <rms@gnu.org>
16703
16704 * eval.c (internal_condition_case_2, internal_condition_case_1)
16705 (internal_condition_case): Reenable abort if x_catching_errors ()
16706 to see if that really happens and why.
16707
167082007-10-06 Andreas Schwab <schwab@suse.de>
16709
16710 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
16711
167122007-10-04 Juanma Barranquero <lekktu@gmail.com>
16713
16714 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
16715
167162007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
16717
16718 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
16719
167202007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
16721
16722 * window.h (struct window):
16723 * window.c (struct save_window_data, struct saved_window):
16724 * termhooks.h (struct terminal):
16725 * process.h (struct Lisp_Process):
16726 * frame.h (struct frame):
16727 * buffer.h (struct buffer):
16728 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
16729 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
16730 The size field of (pseudo)vectors is now unsigned.
16731 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
16732
16733 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
16734 Turn `count' into an integer.
16735
16736 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
16737 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
16738 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
16739 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
16740 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
16741
16742 * alloc.c (allocate_pseudovector): New fun.
16743 (ALLOCATE_PSEUDOVECTOR): New macro.
16744 (allocate_window, allocate_terminal, allocate_frame)
16745 (allocate_process): Use it.
16746 (mark_vectorlike): New function.
16747 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
16748 (mark_terminals): Use it.
16749 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
16750 (Fmake_byte_code): Use XSETPVECTYPE.
16751
16752 * frame.c (Fframe_parameters): Minor simplification.
16753
16754 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
16755
16756 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
16757
16758 * buffer.c (Fget_buffer_create, init_buffer_once):
16759 * lread.c (defsubr):
16760 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
16761
16762 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
16763 defined differently in the m/*.h files.
16764 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
16765 (XSETPVECTYPE): New macro.
16766 (XSETPSEUDOVECTOR): Use it.
16767
16768 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
16769 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
16770
16771 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
16772 * lread.c (defvar_per_buffer):
16773 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
16774
16775 * window.c (candidate_window_p): Only consider as visible frames that
16776 are on the same terminal.
16777
16778 * m/ibms390x.h (MARKBIT): Remove unused macro.
16779
167802007-10-01 Juanma Barranquero <lekktu@gmail.com>
16781
16782 * lread.c (Fload): Fix typo in docstring.
16783
167842007-10-01 Michaël Cadilhac <michael@cadilhac.name>
16785
16786 * floatfns.c (Fexpt): Manually check for overflows, so that a power
16787 of a non-zero value can't yield zero.
16788
167892007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
16790
16791 * term.c (term_clear_mouse_face, term_mouse_highlight)
16792 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
16793
16794 * print.c (safe_debug_print): Use XHASH.
16795
16796 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
16797 Lisp elements such as tags.
16798 (XHASH): New macro.
16799 (EQ): Use it.
16800 (SREF, SSET, STRING_COPYIN): Use SDATA.
16801 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
16802
16803 * alloc.c (mark_terminal): Remove left-over declaration.
16804 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
16805 (allocate_vectorlike): Remove type argument. Adjust callers.
16806 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
16807 Only handle the one remaining MEM_TYPE_VECTORLIKE.
16808
16809 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
16810 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
16811 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
16812 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
16813 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
16814 Use them.
16815
16816 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
16817 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
16818 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
16819
168202007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
16821
16822 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
16823 loaded by default.
16824
168252007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
16826
16827 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
16828 on this tty.
16829 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
16830
16831 * term.c (mouse_face_window): Rename from Qmouse_face_window.
16832 Update all users.
16833 (handle_one_term_event): Use Gpm_DrawPointer.
16834 (Fgpm_mouse_start): Rename from Fterm_open_connection.
16835 Signal errors instead of returning nil. Always return nil.
16836 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
16837 Make it a noop if gpm-mouse was not activated.
16838 (syms_of_term): Update names.
16839
168402007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
16841
16842 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
16843 (init_sys_modes): Check that gpm_tty is the current tty.
16844
16845 * alloc.c (allocate_terminal): Set the vector size to only count the
16846 lisp fields. Initialize those to nil.
16847 (mark_object): Don't treat terminals specially.
16848 (mark_terminal): Remove.
16849 (mark_terminals): Use mark_object instead.
16850
16851 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
16852 the GC to the beginning.
16853
16854 * indent.h:
16855 * indent.c: Use EMACS_INT for ints coming from Elisp data.
16856
16857 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
16858
168592007-09-25 Jason Rumney <jasonr@gnu.org>
16860
16861 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
16862
16863 * w32console.c (create_w32cons_output): Remove.
16864
16865 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
16866
16867 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
16868 (reset_sys_modes): Use reset_terminal_modes_hook.
16869
168702007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
16871
16872 * eval.c (do_autoload): Don't output any message.
16873
168742007-09-24 Juri Linkov <juri@jurta.org>
16875
16876 * emacs.c (standard_args): Change priority of "--no-splash"
16877 from 40 to 3. Add "--no-desktop" with the same priority.
16878
168792007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
16880
16881 * alloc.c (gc_sweep): Check cons cell mark bits word by word
16882 and optimize the case where they are all 1.
16883
168842007-09-23 Johannes Weiner <hannes@saeurebad.de>
16885
16886 * lisp.h (abs): Define if not defined.
16887 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
16888 Don't define `abs', since it's defined in lisp.h.
16889
168902007-09-22 Eli Zaretskii <eliz@gnu.org>
16891
16892 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
16893 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
16894 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
16895 (init_tty): Use DEV_TTY instead of "/dev/tty".
16896 [WINDOWSNT]: No need to protect from NAME arg being null.
16897
168982007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
16899
16900 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
16901 up the tty state.
16902
169032007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
16904
16905 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
16906 (gpm_tty): Change its type.
16907 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
16908 (gpm_tty): Change its type and initialize it.
16909 (Fterm_open_connection): Check the frame is indeed a tty.
16910 Use the new gpm_tty.
16911 (Fterm_close_connection): Use the new gpm_tty.
16912 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
16913 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
16914
169152007-09-21 Juanma Barranquero <lekktu@gmail.com>
16916
16917 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
16918 underline_color, to draw strike-through.
16919
169202007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
16921
16922 * lisp.h (allocate_terminal): Declare.
16923
16924 * window.c (candidate_window_p): Consider frames that are being placed
16925 by the user as somewhere between visible and iconified.
16926 (window_loop): Prefer windows on the current frame.
16927 (Fselect_window): Move the use of select-frame to the beginning so we
16928 can just delegate all the work (it'll call us back anyway).
16929
16930 * frame.c (Qdisplay_environment_variable):
16931 * frame.h (Qdisplay_environment_variable): Delete.
16932
16933 * .gdbinit (xbacktrace): Print the arg's address rather than the value
16934 of the first arg, since that value may be a union.
16935
16936 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
16937 parameter rather than Qdisplay_environment_variable. If all else
16938 fails, look for DISPLAY in initial-environment.
16939
169402007-09-21 Glenn Morris <rgm@gnu.org>
16941
16942 * Makefile.in (emacstool): Remove target.
16943 (lisp, shortlisp): Remove termdev.elc.
16944
169452007-09-21 Markus Triska <markus.triska@gmx.at>
16946
16947 * xterm.c (x_delete_display): Compile session management conditionally.
16948
169492007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
16950
16951 * callproc.c (getenv_internal_1): New function.
16952 (getenv_internal): Use it.
16953 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
16954
16955 * terminal.c (get_terminal): Don't accept ints to represent terminals.
16956 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
16957 (Fset_terminal_parameter): Work with dead terminals as well.
16958 (Fmodify_terminal_parameters): Remove.
16959
16960 * terminal.c (get_terminal): Handle terminals.
16961 Make sure the terminal returned is live.
16962 (create_terminal): Use allocate_terminal.
16963 (mark_terminals): Move to alloc.c.
16964 (delete_terminal): Use terminal->name as liveness status.
16965 NULL out fields after freeing their contents.
16966 Don't deallocate the object.
16967 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
16968 rather than an int.
16969 (Fterminal_live_p): Accept non-integer arguments.
16970 (Fterminal_list): Return terminal objects rather than an ints.
16971
16972 * alloc.c (enum mem_type): New member for `terminal' objects.
16973 (allocate_terminal): New function.
16974 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
16975 Handle terminals.
16976 (mark_terminal): New fun.
16977 (mark_terminals): Move from terminal.c.
16978
16979 * term.c (get_tty_terminal): Don't treat output_initial specially.
16980 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
16981 (delete_tty): Use terminal->name as liveness status.
16982
16983 * termhooks.h (struct terminal): Make it into a pseudovector.
16984 Remove `deleted' replaced by checking `name's nullness.
16985
16986 * print.c (print_object): Handle terminals.
16987
16988 * lisp.h (enum pvec_type): New `terminal' pseudovector.
16989 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
16990
16991 * frame.c (make_terminal_frame):
16992 * keyboard.c (tty_read_avail_input):
16993 * w32term.c (x_delete_terminal):
16994 * xfns.c (Fx_create_frame, x_create_tip_frame):
16995 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
16996
169972007-09-20 Glenn Morris <rgm@gnu.org>
16998
16999 * process.c (Fmake_network_process): Doc fix.
17000
170012007-09-19 Jason Rumney <jasonr@gnu.org>
17002
17003 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
17004
170052007-09-19 Michaël Cadilhac <michael@cadilhac.name>
17006
17007 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
17008 Fix a C warning regarding variable constness.
17009
17010 * xterm.c (handle_one_xevent): Fix a C warning.
17011
170122007-09-18 Jason Rumney <jasonr@gnu.org>
17013
17014 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
17015
170162007-09-17 Jan Djärv <jan.h.d@swipnet.se>
17017
17018 * gtkutil.c (gdpy_def): New variable.
17019 (xg_initialize): Initialize gdpy_def.
17020 (xg_display_close): If no other display exists, set gdpy_def to a
17021 new connection.
17022
170232007-09-16 Jan Djärv <jan.h.d@swipnet.se>
17024
17025 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
17026 when we have no file name for the icon.
17027 (xg_tool_bar_expose_callback): Remove.
17028 (xg_create_tool_bar): Don't connect expose signal to
17029 xg_tool_bar_expose_callback.
17030 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
17031
170322007-09-16 Andreas Schwab <schwab@suse.de>
17033
17034 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
17035 values instead of zapping them.
17036
170372007-09-14 Glenn Morris <rgm@gnu.org>
17038
17039 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
17040 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
17041 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
17042 scope and rename to omfib_buffer for clarity.
17043 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
17044
170452007-09-14 Kenichi Handa <handa@m17n.org>
17046
17047 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
17048
170492007-09-13 Jason Rumney <jasonr@gnu.org>
17050
17051 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
17052
17053 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
17054
17055 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
17056 (mac_term_init): Call here instead, passing rif.
17057
170582007-09-13 Glenn Morris <rgm@gnu.org>
17059
17060 * s/hpux.h: No longer define `static' as nothing.
17061
170622007-09-13 Johan Bockgård <bojohan@gnu.org>
17063
17064 * callint.c (Fcall_interactively): Remove unused var `fun'.
17065
170662007-09-12 Romain Francoise <romain@orebokech.com>
17067
17068 * window.c (prefer_window_split_horizontally, display_buffer):
17069 Revert 2007-09-08 change.
17070
170712007-09-12 Glenn Morris <rgm@gnu.org>
17072
17073 * alloca.c: Remove file.
17074 * Makefile.in (alloca): Do not undef.
17075 (allocaobj, alloca.o): Remove.
17076 (otherobj): Remove allocaobj.
17077 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
17078 * regex.c (C_ALLOCA): Remove all references and code that was only
17079 used when this was defined.
17080 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
17081 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
17082 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
17083
17084 * Makefile.in (SOURCES, unlock, relock): Delete.
17085
17086 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
17087 (menu_grab_callback): All uses changed.
17088
17089 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
17090 (x_reply_selection_request): All uses changed.
17091
170922007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
17093
17094 * lread.c (load_warn_old_style_backquotes): Change message to look
17095 better when it appears in the middle of byte-compiler messages.
17096
170972007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
17098
17099 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
17100
17101 * xterm.c (x_create_terminal): Add comment.
17102
17103 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
17104
171052007-09-10 Richard Stallman <rms@gnu.org>
17106
17107 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
17108
171092007-09-10 Michaël Cadilhac <michael@cadilhac.name>
17110
17111 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
17112 (DEFUN): Document `intspec', use it instead of `prompt'.
17113
17114 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
17115
17116 * data.c (Finteractive_form): If the interactive specification starts
17117 with a `(', use it as a Lisp form.
17118
17119 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
17120 name and file modes.
17121
17122 * callint.c (Fcall_interactively): Comment fixes.
17123
171242007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
17125
17126 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
17127 and compiled functions.
17128
171292007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
17130
17131 * window.c (prefer_window_split_horizontally): New variable.
17132 (display_buffer): Consider splitting window horizontally depending
17133 on prefer_window_split_horizontally.
17134
171352007-09-08 Eli Zaretskii <eliz@gnu.org>
17136
17137 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
17138
171392007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
17140
17141 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
17142
17143 * frame.c (x_set_frame_parameters): Check number is positive before
17144 using XFASTINT.
17145
17146 * window.c (freeze_window_start): Don't presume selected_window holds
17147 a window object.
17148 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
17149
171502007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
17151
17152 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
17153
171542007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
17155
17156 * window.c (Vsplit_window_preferred_function): New var.
17157 (Fdisplay_buffer): Use it.
17158 (syms_of_window): Export, and initialize it.
17159
171602007-09-06 Pixel <pixel@mandriva.com> (tiny change)
17161
17162 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
17163
171642007-09-06 Glenn Morris <rgm@gnu.org>
17165
17166 * gtkutil.c (menu_grab_callback) <cnt>:
17167 * xselect.c (x_reply_selection_request) <cnt>: Move static
17168 variable to file scope.
17169
171702007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
17171
17172 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
17173 consistent values of selected_frame and selected_window.
17174
171752007-09-04 Jason Rumney <jasonr@gnu.org>
17176
17177 * w32console.c (initialize_w32_display): Zero unused hooks.
17178
171792007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
17180
17181 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
17182 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
17183
171842007-09-04 Jason Rumney <jasonr@gnu.org>
17185
17186 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
17187 in w32console.c. Set up input. Remove XXX comments that have been
17188 confirmed as correct.
17189
17190 * s/ms-w32.h (MULTI_KBOARD): Define.
17191
17192 * w32console.c (one_and_only_w32cons): Remove.
17193 (initialize_w32_display): Take terminal argument.
17194
17195 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
17196 initialize_w32_display.
17197 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
17198
17199 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
17200
17201 * keyboard.c (discard_mouse_events): Discard it.
17202 (make_lispy_event): Translate it to a lisp event.
17203 (lispy_wheel_names): Add wheel-left and right events.
17204 (syms_of_keyboard): Enlarge wheel_syms.
17205
17206 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
17207 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
17208
17209 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
17210
17211 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
17212 from WM_MOUSEHWHEEL.
17213 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
17214
17215 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
17216 terminal.
17217
17218 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
17219 keyboard for the terminal.
17220
172212007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
17222
17223 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
17224 (Vresume_tty_hook): Rename from Vresume_tty_functions.
17225 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
17226 and resume-tty-function to resume-tty-hook.
17227 (Fsuspend_tty, Fresume_tty): Use new names.
17228
172292007-09-02 Jan Djärv <jan.h.d@swipnet.se>
17230
17231 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
17232 if it starts with "n:".
17233
172342007-08-31 Jan Djärv <jan.h.d@swipnet.se>
17235
17236 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
17237
172382007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
17239
17240 * frame.h:
17241 * frame.c (Qterm_environment_variable): Remove.
17242 (syms_of_frame): Don't init and staticpro it.
17243
17244 * callproc.c (getenv_internal): Remove special case for $TERM.
17245
17246 * callproc.c (Vinitial_environment): New variable.
17247 (set_initial_environment): Initialize it.
17248 (syms_of_callproc): Declare it.
17249 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
17250 TERM under which a process runs is never related to the TERM in which
17251 Emacs is running.
17252
172532007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
17254
17255 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
17256 * s/darwin.h: ... do it here.
17257
172582007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
17259
17260 * lisp.h (set_initial_environment): Rename from set_global_environment.
17261
17262 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
17263 removed by mistake on the multi-tty branch.
17264
17265 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
17266 (Fmodify_frame_parameters): Return a value.
17267
17268 * image.c (png_load): Comment-out var only used in commented-out code.
17269
17270 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
17271 before passing it to mark_object.
17272
17273 * xfaces.c (internal_resolve_face_name): Return a value.
17274 (internal_resolve_face_name, resolve_face_name_error): Comment out.
17275
17276 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
17277 (x_icon): Comment-out var only used in commented-out code.
17278
172792007-08-29 Romain Francoise <romain@orebokech.com>
17280
17281 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
17282 QUIT hasn't been provided.
17283
172842007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
17285
17286 * callproc.c (child_setup, getenv_internal): Use the
17287 display-environment-variable and term-environment-variable frame params.
17288 (set_initial_environment): Initialise Vprocess_environment.
17289
17290 * config.in: Disable multi-keyboard support on a mac.
17291
17292 * frame.c (Qterm_environment_variable)
17293 (Qdisplay_environment_variable): New variables.
17294 (syms_of_frame): Intern and staticpro them.
17295 (Fmake_terminal_frame): Disable output method test.
17296
17297 * frame.h: Declare them here.
17298
17299 * macfns.c (x_set_mouse_color): Get rif from the frame.
17300 (x_set_tool_bar_lines): Don't use updating_frame.
17301 (mac_window): Add 2 new parameters for consistency with other systems.
17302 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
17303 frame parameters following what is done in X11 and w32. Don't use
17304 FRAME_MAC_DISPLAY_INFO.
17305 (Fx_open_connection, start_hourglass): Remove window-system check.
17306 (x_create_tip_frame): Get the keyboard from the terminal.
17307
17308 * macmenu.c: Reorder includes.
17309 (Fx_popup_menu): Use terminal specific mouse_position_hook.
17310
17311 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
17312 terminal parameter.
17313 (x_clear_frame): Add a frame parameter.
17314 (note_mouse_movement): Get rif from the frame.
17315 (mac_term_init): Initialize the terminal.
17316 (mac_initialize): Make static and move terminal initialization ...
17317 (mac_create_terminal): ... to this new function.
17318
17319 * macterm.h (struct mac_display_info): Add terminal.
17320 (mac_initialize): Delete declaration.
17321
17322 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
17323
17324 * sysdep.c: Comment out text after #endif.
17325
17326 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
17327 is defined. Better initialize ttys in windows. Use terminal
17328 specific mouse_position_hook.
17329
17330 * termhooks.h (union display_info): Add mac_display_info.
17331
17332 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
17333 Set the default minibuffer frame, window_system and the rest of the
17334 frame parameters following what is done in X11.
17335
17336 * w32term.c (w32_initialize): Make static.
17337
17338 * xselect.c (x_handle_selection_clear): Only access
17339 terminal->kboard when MULTI_KBOARD is defined.
17340
17341 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
17342 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
17343
173442007-08-29 Jason Rumney <jasonr@gnu.org>
17345
17346 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
17347 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
17348
17349 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
17350 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
17351
17352 * keyboard.c (restore_kboard_configuration): Only define when
17353 MULTI_KBOARD defined.
17354
17355 * makefile.w32-in: Update dependancies from Makefile.in.
17356 (OBJ1): Add terminal.$(O)
17357
17358 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
17359 Don't define function body.
17360 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
17361
17362 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
17363
17364 * w32.c (request_sigio, unrequest_sigio): Remove.
17365
17366 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
17367 (w32con_clear_frame, w32con_clear_end_of_line)
17368 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
17369 (w32con_delete_glyphs, w32con_set_terminal_window)
17370 (scroll_line, w32_sys_ring_bell): Add frame arg.
17371 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
17372 Add terminal arg.
17373 (PICK_FRAME): Remove.
17374 (w32con_write_glyphs): Use frame specific terminal coding.
17375 (one_and_only_w32cons): New global variable.
17376 (initialize_w32_display): Use it for storing hooks.
17377 (create_w32cons_output): New function.
17378
17379 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
17380 arg a frame.
17381
17382 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
17383 Set window_system.
17384 (x_set_tool_bar_lines): Don't use updating_frame.
17385 (Fx_create_frame): Set terminal and ref count.
17386 (Fx_open_connection): Remove window-system check.
17387
17388 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
17389
17390 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
17391 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
17392 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
17393 Add frame arg.
17394 (x_delete_terminal, w32_create_terminal): New functions.
17395 (w32_term_init): Create a terminal.
17396 (w32_initialize): Move terminal specific initialization to
17397 w32_create_terminal.
17398
17399 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
17400 (w32_clear_rect, w32_clear_area): Use background from frame.
17401 (w32_display_info): Add terminal.
17402 (w32_sys_ring_bell, x_delete_display): Declare here.
17403
17404 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
17405
17406 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
17407
174082007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
17409
17410 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
17411 Fix get_named_tty calls for the controlling tty.
17412
174132007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
17414
17415 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
17416
174172007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
17418
17419 * term.c (tty_insert_glyphs): Add missing first parameter.
17420
174212007-08-29 Károly Lőrentey <karoly@lorentey.hu>
17422
17423 * buffer.c (Fbuffer_list, Fbury_buffer):
17424 Take frame->buried_buffer_list into account.
17425
17426 * cm.c (current_tty): New variable, for cmputc().
17427 (cmputc): Use it.
17428 (cmcheckmagic): Add tty parameter, look up terminal streams there.
17429 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
17430 (cmgoto): Add tty parameter. Pass it on to calccost().
17431 Use emacs_tputs() instead of tputs().
17432
17433 * cm.h (emacs_tputs): New macro to set current_tty, and then call
17434 tputs().
17435 (current_tty): New variable, for cmputc().
17436 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
17437
17438 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
17439 (internal_condition_case, internal_condition_case_1)
17440 (internal_condition_case_2): Don't abort when x_catching_errors.
17441
17442 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
17443 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
17444 prevent crashes caused by bogus longjmps in read_char.
17445
17446 * keymap.h (Fset_keymap_parent): Add EXFUN.
17447
17448 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
17449 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
17450 Remove redundant definition.
17451
17452 * macfns.c (x_set_mouse_color, x_make_gc):
17453 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
17454
17455 * w32term.c (x_free_frame_resources):
17456 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
17457 (w32_initialize): Use the accessor macros for terminal characteristics.
17458
17459 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
17460 Use the accessor macros for terminal characteristics.
17461 * msdos.c (internal_terminal_init): Use the accessor macros for
17462 terminal characteristics.
17463 (ScreenVisualBell, internal_terminal_init):
17464 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
17465
17466 * termopts.h (no_redraw_on_reenter): Declare.
17467
17468 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
17469 (mark_terminals, mark_ttys): Declare.
17470 (Fgarbage_collect): Call them.
17471 (mark_object): Mark buried_buffer_list.
17472
17473 * prefix-args.c: Include stdlib.h for exit.
17474
17475 * syssignal.h: Add comment.
17476
17477 * indent.c: Include stdio.h.
17478
17479 * window.h (Vinitial_window_system): Declare.
17480 (Vwindow_system): Delete declaration.
17481
17482 * fontset.c (Finternal_char_font): Use FRAME_RIF.
17483
17484 * image.c (lookup_image): Don't initialize `c' until the xasserts
17485 have been run.
17486
17487 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
17488 FRAME_FOREGROUND_PIXEL.
17489
17490 * print.c (print_preprocess): Don't lose print_depth levels while
17491 iterating.
17492
17493 * widget.c (update_from_various_frame_slots):
17494 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
17495
17496 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
17497 frames.
17498 (window_internal_height): Remove bogus make_number call.
17499 (init_window_once): Call make_terminal_frame with two zero parameters.
17500
17501 * fileio.c (Fread_file_name): Update comment.
17502
17503 * callint.c (Fcall_interactively):
17504 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
17505 Make sure it is correctly unwound.
17506
17507 * xsmfns.c (x_session_close): New function.
17508
17509 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
17510 Delete declarations.
17511
17512 * xterm.h: Remove declaration for x_fully_uncatch_errors.
17513 (x_output): Remove background_pixel and foreground_pixel fields.
17514 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
17515 (x_delete_device, x_session_close): Declare.
17516
17517 * lread.c: Include setjmp.h. Update declaration of `read_char'.
17518 (read_filtered_event): Call `read_char' with a local
17519 `wrong_kboard_jmpbuf'.
17520
17521 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
17522 Don't call single_kboard_state. Use FRAME_RIF.
17523
17524 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
17525 systems.
17526
17527 * lisp.h (set_process_environment): Rename to `set_global_environment'.
17528 (Fframe_with_environment, Fset_input_meta_mode)
17529 (Fset_quit_char): EXFUN.
17530 (x_create_device, tty_output, terminal, tty_display_info): Declare.
17531 (init_sys_modes, reset_sys_modes): Update prototypes.
17532 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
17533
17534 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
17535 Vlocal_key_translation_map, and Vkeyboard_translate_table.
17536 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
17537 Delete declarations.
17538 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
17539 (temporarily_switch_to_single_kboard, tty_read_avail_input):
17540 New declarations.
17541
17542 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
17543 already does that during init_display(). Call syms_of_keymap
17544 before syms_of_keyboard. Call `syms_of_terminal'.
17545 Call set_initial_environment, not set_process_environment.
17546 (shut_down_emacs): Call reset_all_sys_modes() instead of
17547 reset_sys_modes().
17548
17549 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
17550 (internal_resolve_face_name, resolve_face_name_error): New functions.
17551 (resolve_face_name): Protect against loops and errors thrown by Fget.
17552 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
17553 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
17554
17555 * scroll.c: Replace CURTTY() with local variables throughout the
17556 file (where applicable).
17557 (calculate_scrolling, calculate_direct_scrolling)
17558 (scrolling_1, scroll_cost): Use the accessor macros for terminal
17559 characteristics.
17560
17561 * keymap.c (Vfunction_key_map): Remove.
17562 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
17563 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
17564 (Vkey_translation_map): Remove.
17565 (syms_of_keymap): Remove DEFVAR for key-translation-map.
17566 (Fdescribe_buffer_bindings)
17567 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
17568 Update for terminal-local key-translation-map.
17569
17570 * Makefile.in (callproc.o): Update dependencies.
17571 (lisp, shortlisp): Add termdev.elc.
17572 (obj): Add terminal.o.
17573 (terminal.o): Add dependencies.
17574 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
17575 (data.o, fns.o): Add termhooks.h dependency.
17576 (SOME_MACHINE_LISP): Add dnd.elc.
17577 (minibuf.o): Fix typo.
17578 Update dependencies.
17579
17580 * data.c (do_symval_forwarding, store_symval_forwarding)
17581 (find_symbol_value): Use the selected frame's keyboard, not
17582 current_kboard.
17583
17584 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
17585 Vwindow_system.
17586
17587 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
17588 Fmenu_bar_open.
17589 (syms_of_xmenu): Update defsubr.
17590 (mouse_position_for_popup, Fx_popup_menu)
17591 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
17592 (set_frame_menubar, free_frame_menubar)
b97439ce 17593 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
17594 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
17595 an X frame.
17596
17597 * xselect.c (x_own_selection): Abort if not an X frame.
17598 (some_frame_on_display): Check if it is an X frame.
17599 (x_handle_selection_clear): Deal with MULTI_KBOARD.
17600
17601 * coding.c: Include frame.h and termhooks.h.
17602 (terminal_coding, keyboard_coding): Delete.
17603 (Fset_terminal_coding_system_internal)
17604 (Fset_keyboard_coding_system_internal)
17605 (Fkeyboard_coding_system)
17606 (Fterminal_coding_system): Add a terminal parameter.
17607 Get terminal_coding from the terminal.
17608 (init_coding_once): Don't call setup_coding_system here.
17609
17610 * dispextern.h (set_scroll_region, turn_off_insert)
17611 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
17612 (tty_clear_end_of_line, tty_setup_colors)
17613 (delete_tty, updating_frame)
17614 (produce_special_glyphs, produce_glyphs, write_glyphs)
17615 (insert_glyphs): Remove.
17616 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
17617 (tty_turn_off_highlight, get_tty_size): Add declaration.
17618 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
17619
17620 * frame.h (enum output_method): Add output_initial.
17621 (struct x_output): Delete.
17622 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
17623 Access foreground_pixel and background_pixel directly from the frame.
17624 (tty_display): Delete.
17625 (struct frame): Add buried_buffer_list, foreground_pixel,
17626 background_pixel and terminal. Delete kboard.
17627 (union output_data): Add tty.
17628 (FRAME_KBOARD): Get the kboard from the terminal.
17629 (FRAME_INITIAL_P): New macro.
17630 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
17631 (Qterm_environment_variable, Qdisplay_environment_variable)
17632 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
17633 New declarations.
17634
17635 * termchar.h (tty_output, tty_display_info): New structures.
17636 (tty_list): Declare.
17637 (FRAME_TTY, CURTTY): New macros.
17638 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
17639 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
17640 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
17641 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
17642
17643 * callproc.c: Include frame.h and termhooks.h, for terminal
17644 parameters.
17645 (add_env): New function.
17646 (child_setup): Use it.
17647 (child_setup, getenv_internal): Handle the new Vprocess_environment.
17648 (getenv_internal): Fix get_terminal_param call.
17649 (Fgetenv_internal, egetenv): Update doc.
17650 (syms_of_callproc): Initialize Vprocess_environment to nil.
17651 Register and initialize them. Remove obsolete defvars. Update doc
17652 strings.
17653 (child_setup): Handle Vlocal_environment_variables.
17654 (getenv_internal): Add terminal parameter.
17655 Handle Vlocal_environment_variables.
17656 (Fgetenv_internal): Add terminal parameter.
17657 (child_setup, getenv_internal, Fgetenv_internal): Store the local
17658 environment in a frame (not terminal) parameter. Update doc strings.
17659 (set_initial_environment): Rename from set_global_environment.
17660 Store Emacs environment in initial frame parameter.
17661
17662 * xdisp.c (redisplay_internal): Update references to
17663 `previous_terminal_frame'.
17664 (display_mode_line, Fformat_mode_line): Replace calls to
17665 `push_frame_kboard' with `push_kboard'.
17666 (get_glyph_string_clip_rects): Add extra parentheses and
17667 braces to prevent compiler warnings.
17668 (calc_pixel_width_or_height): Add xassert to check that the
17669 frame is alive. Don't call `lookup_image' on a termcap frame.
17670 (message2_nolog, message3_nolog, redisplay_internal)
17671 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
17672 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
17673 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
17674 (Fx_display_pixel_width, Fx_display_pixel_height)
17675 (Fx_display_planes, Fx_display_color_cells)
17676 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
17677 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
17678 (Fx_display_backing_store, Fx_display_visual_class)
17679 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
17680 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
17681
17682 * xfns.c (x_set_foreground_color x_set_background_color)
17683 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
17684 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
17685 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
17686 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
17687 terminal that is being deleted.
17688 (Fx_create_frame): Use `store_frame_param' to set `window-system'
17689 frame parameter, and make sure it overrides any user-supplied setting.
17690 (Fx_close_connection, Fx_synchronize): Unify argument names with
17691 the rest of the DEFUNs.
17692
17693 * dispnew.c (Fsend_string_to_terminal): Update call to
17694 `get_tty_terminal'.
17695 (Fredraw_frame, Fsend_string_to_terminal)
17696 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
17697 FRAME_TERMCAP_P and FRAME_TTY.
17698 (window_change_signal): Don't believe width/height values that are
17699 impossibly small.
17700 (Vinitial_window_system): Rename from Vwindow_system.
17701 (termscript, Wcm, rif): Delete.
17702
17703 * termhooks.h (struct terminal): New struct containing the
17704 previously global text display hooks and new members NAME,
17705 DELETED and PARAM_ALIST.
17706 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
17707 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
17708 (FRAME_RIF): New macros.
17709 (get_terminal_param, get_device): New declarations.
17710 (termscript): Delete declaration.
17711
17712 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
17713 (XTflash, x_free_frame_resources, x_scroll_bar_create)
17714 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
17715 FRAME_FOREGROUND_PIXEL.
17716 (x_fully_uncatch_errors): Disable definition.
17717 (x_scroll_bar_expose): Fix reference to foreground pixel.
17718 (XTread_socket): Disable loop on all X displays.
17719 (x_delete_terminal): Don't set terminal->deleted and let
17720 delete_terminal delete the frames on the terminal.
17721 (x_delete_display): Doc update to reflect changes in
17722 delete_terminal.
17723 (x_display_info) <terminal>: Move member earlier in the struct.
17724 (deleting_tty): Remove old variable.
17725 (Fsuspend_tty): Call clear_tty_hooks.
17726 (Fresume_tty, init_tty): Call set_tty_hooks.
17727 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
17728 errors on X frames.
17729 (x_catch_errors_unwind): Abort if x_error_message is NULL.
17730 (handle_one_xevent): Initialize `f' to NULL.
17731 (x_delete_terminal, x_create_terminal): New functions.
17732 (XTset_terminal_modes, XTreset_terminal_modes)
17733 (XTread_socket, x_connection_closed, x_term_init)
17734 (x_term_init, x_delete_display): Add terminal parameter.
17735 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
17736 X connections.
17737
17738 * frame.c: Include termchar.h.
17739 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
17740 (Qwindow_system, Qenvironment, Qterm_environment_variable)
17741 (Qdisplay_environment_variable): New vars.
17742 (Fframep): Deal with output_initial.
17743 (Fframe-live-p): Doc fix.
17744 (Fwindow-system): New function.
17745 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
17746 (make_terminal_frame): Don't create frames on a terminal that is
17747 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
17748 (store_frame_param): Check for found_for_frame before calling XFRAME.
17749 (Fmake_terminal_frame): Handle NULL tty names correctly.
17750 (syms_of_frame): Enhance doc string of `default-frame-alist'.
17751 (Fdelete_frame): Remove unused variable `count'. Don't allow other
17752 frames to refer to a deleted frame in their 'environment parameter.
17753 (Fframe_with_environment): New function.
17754 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
17755 (get_future_frame_param): New function.
17756 (Fmake_terminal_frame): Use it.
17757 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
17758
17759 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
17760 * sysdep.c (reset_sys_modes): Update for renames.
17761
17762 * keyboard.c (tty_read_avail_input): New function.
17763 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
17764 (syms_of_keyboard): Defsubr them.
17765 (Fset_input_meta_mode, Fset_quit_char): New functions.
17766 (Fset_input_mode): Split to above functions.
17767 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
17768 parameter. Use it in call to `read_char'.
17769 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
17770 Set wrong_kboard_jmpbuf correctly in recursive calls.
17771 Use current_kboard to access Vkeyboard_translate_table.
17772 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
17773 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
17774 Update longjmp invocations. Remember the original current_kboard,
17775 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
17776 changes it. Comment out unnecessary calls to
17777 `record_single_kboard_state' and `any_kboard_state'.
17778 Update recursive calls.
17779 (wrong_kboard_jmpbuf): Remove global variable.
17780 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
17781 Handle deleted interrupted_kboards correctly; that is a legal
17782 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
17783 and read_char calls. Abort if interrupted_kboard died in read_char.
17784 (any_kboard_state, single_kboard_state)
17785 (push_frame_kboard): Remove function.
17786 (pop_kboard): Switch out of single_kboard mode if the kboard has
17787 been deleted. Remove unused variable. Help debugging by not
17788 changing current_kboard unnecessarily. Set current_kboard to the
17789 kboard of the selected frame when the stored kboard object has
17790 been deleted before pop_kboard.
17791 (temporarily_switch_to_single_kboard): Change first parameter to a
17792 frame pointer. Throw an error when caller wants to change kboards
17793 while in single_kboard mode. Don't push_kboard if we weren't in
17794 single kboard state. Don't pop_kboard if we popped into any
17795 kboard state.
17796 (restore_kboard_configuration): Abort if pop_kboard changed the
17797 kboard in single_kboard mode. Call pop_kboard only after setting
17798 up single_kboard mode.
17799 (Frecursive_edit): Switch to single_kboard mode only in nested
17800 command loops.
17801 (cmd_error, command_loop, command_loop_1, timer_check):
17802 Comment out unnecessary call to `any_kboard_state' and
17803 `record_single_kboard_state'.
17804 (delete_kboard): Exit single_kboard mode if we have just deleted
17805 that kboard. Use FRAME_KBOARD.
17806 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
17807 `fatal_error_signal'.
17808 (record_single_kboard_state): Don't push_kboard if we weren't in
17809 single kboard state. Don't pop_kboard if we popped into any
17810 kboard state.
17811 (push_frame_kboard): Rename to push_kboard.
17812 (kbd_buffer_get_event): Use FRAME_TERMINAL.
17813 (read_avail_input): Read input from all terminals.
17814 (mark_kboards): Also mark Vkeyboard_translate_table.
17815 (kbd_buffer_store_event_hold): Simplify condition.
17816 (read_key_sequence): Reinitialize fkey and keytran at each replay.
17817 (Vkeyboard_translate_table): Move to struct kboard.
17818 (init_kboard): Initialize Vkeyboard_translate_table.
17819 (syms_of_keyboard): Use DEFVAR_KBOARD to define
17820 Vkeyboard_translate_table. Update doc strings. Update docs of
17821 local-function-key-map and function-key-map.
17822
17823 * terminal.c: New file.
17824
17825 * term.c: Include errno.h.
17826 (Vring_bell_function, device_list, initial_device)
17827 (next_device_id, ring_bell, update_begin, update_end)
17828 (set_terminal_window, cursor_to, raw_cursor_to)
17829 (clear_to_end, clear_frame, clear_end_of_line)
17830 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
17831 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
17832 (syms_of_term): Move their initialization to terminal.c.
17833 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
17834 (Ftty_display_color_cells)
17835 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
17836 (clear_tty_hooks, set_tty_hooks)
17837 (init_tty, maybe_fatal): New functions.
17838 (Ftty_type): Return nil if terminal is not on a tty instead of
17839 throwing an error. Doc update.
17840 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
17841 Doc update. Initialize new subrs and variables.
17842 (delete_tty): Use terminal->deleted.
17843 (tty_set_terminal_modes): Rename from set_terminal_modes.
17844 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
17845 (set_scroll_region): Rename to `tty_set_scroll_region'.
17846 (turn_on_insert): Rename to `tty_turn_on_insert'.
17847 (turn_off_insert): Rename to `tty_turn_off_insert'.
17848 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
17849 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
17850 (toggle_highligh): Rename to `tty_toggle_highlight'.
17851 (background_highlight): Rename to `tty_background_highlight'.
17852 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
17853 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
17854 (tty_set_scroll_region, tty_background_highlight)
17855 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
17856 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
17857 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
17858 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
17859 Add static modifier.
17860 (tty_reset_terminal_modes, tty_set_terminal_window)
17861 (tty_set_scroll_region, tty_background_highlight)
17862 (tty_highlight_if_desired, tty_cursor_to)
17863 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
17864 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
17865 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
17866 renames.
17867
178682007-08-28 Jan Djärv <jan.h.d@swipnet.se>
17869
17870 * keyboard.c: Qrtl is new.
17871 (parse_tool_bar_item): Handle :rtl keyword.
17872 (syms_of_keyboard): Intern :rtl keyword.
17873
17874 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
17875
17876 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
17877 so no Lisp code is executed.
17878 (file_for_image, find_rtl_image): New functions.
17879 (xg_get_image_for_pixmap): Use file_for_image.
17880 (update_frame_tool_bar): If direction is RTL, use RTL image if
17881 defined. Use Gtk stock images if defined.
17882
178832007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17884
17885 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
17886 for nonexistent or zero-width glyph in composition glyph.
17887
178882007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
17889
17890 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
17891
17892 * xdisp.c (Finvisible_p): New function.
17893 (syms_of_xdisp): defsubr it.
17894
178952007-08-24 Juanma Barranquero <lekktu@gmail.com>
17896
17897 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
17898 Doc fixes.
17899
179002007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17901
17902 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
17903
179042007-08-24 Martin Rudalics <rudalics@gmx.at>
17905
17906 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
17907 whether decoding has modified buffer contents.
17908
179092007-08-24 Jason Rumney <jasonr@gnu.org>
17910
17911 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
17912 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
17913 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
17914 (init_svg_functions) [HAVE_NTGUI]: New function.
17915 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
17916 (svg_load_image): Use them.
17917 (svg_load_image) [HAVE_NTGUI]: Implement background.
17918
179192007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17920
17921 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
17922 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
17923 (LIBX): Remove @RSVG_LIBS@.
17924 (LIBES): Add $(RSVG_LIBS).
17925
17926 * image.c (svg_load_image): Blend with specified background if exists.
17927 Use IMAGE_BACKGROUND. Add Mac OS Support.
17928
17929 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
17930 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
17931 Remove macros.
17932 [MAC_OSX] (socket_callback): Do nothing.
17933 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
17934 ReceiveNextEvent.
17935 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
17936 socket_callback.
17937 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
17938
179392007-08-22 Glenn Morris <rgm@gnu.org>
17940
17941 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
17942
179432007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
17944
17945 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
17946
17947 * image.c: Add support for SVG images. Some additional comments
17948 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
17949 (svg_image_p): New function to test for SVG image.
17950 (svg_load): New function to load SVG image.
17951 (svg_load_image): New function, helper for svg_load.
17952 (Qsvg): New Lisp_object.
17953 (svg_keyword_index): New enum.
17954 (svg_format): New static `image_keyword' struct.
17955 (svg_type): New static `image_type' struct.
17956 (librsvg/rsvg.h): Include it.
17957
179582007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
17959
17960 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
17961
179622007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
17963
17964 * lread.c (Qold_style_backquotes): New var.
17965 (syms_of_lread): Init and staticpro it.
17966 (load_warn_old_style_backquotes): New fun.
17967 (Fload): Use them to warn about old style backquotes.
17968 (end_of_file_error, Fload): Remove unused vars.
17969
17970 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
17971
17972 * lread.c (Vold_style_backquotes): New var.
17973 (syms_of_lread): Init and export it to Elisp.
17974 (read1): Set it when we find an old-style (back)quote.
17975
179762007-08-22 Jason Rumney <jasonr@gnu.org>
17977
17978 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
17979
179802007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
17981
17982 * puresize.h (BASE_PURESIZE): Increase to 1140000.
17983
179842007-08-19 Richard Stallman <rms@gnu.org>
17985
17986 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
17987
179882007-08-19 Andreas Schwab <schwab@suse.de>
17989
17990 * alloc.c (pure): Round PURESIZE up.
17991
179922007-08-17 Jan Djärv <jan.h.d@swipnet.se>
17993
17994 * xterm.c (handle_one_xevent): Remove check that mouse click is in
17995 active frame.
17996
179972007-08-16 Richard Stallman <rms@gnu.org>
17998
17999 * eval.c (Fcommandp): Add parens to clarify.
18000
18001 * minibuf.c (Fall_completions): Use enum for type of table.
18002
18003 * emacs.c (USAGE2): Improve text.
18004
180052007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
18006
18007 * term.c (tty_default_color_capabilities): Declare static
18008 variables in file scope, to avoid HPUX compiler problem.
18009
180102007-08-13 Jan Djärv <jan.h.d@swipnet.se>
18011
18012 * gtkutil.c (update_frame_tool_bar): Use -1 as index
18013 to gtk_toolbar_insert.
18014
180152007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
18016
18017 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
18018
18019 * insdel.c (reset_var_on_error): New fun.
18020 (signal_before_change, signal_after_change):
18021 Use it to reset (after|before)-change-functions to nil in case of error.
18022 Bind inhibit-modification-hooks to t.
18023 Don't bind (after|before)-change-functions to nil while they run.
18024
180252007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18026
18027 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
18028 filling pixmap with stippled background.
18029
180302007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18031
18032 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
18033 Don't use invisible frame as parent window for repositioning.
18034
180352007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
18036
18037 * print.c (new_backquote_output): Rename from old_backquote_output.
18038 (print): Inverse its logic (according to its name) so as to match the
18039 behavior of new_backquote_flag in lread.c.
18040
180412007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18042
18043 * gmalloc.c (posix_memalign): New function.
18044
18045 * macterm.c (frame_highlight, frame_unhighlight): Don't call
18046 ActivateControl/DeactivateControl here.
18047 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
18048 frame-notice-user-settings is non-nil.
18049 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
18050 for kEventParamFMFontStyle.
18051 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
18052 mac_pass_command_to_system and mac_pass_control_to_system here.
18053 (XTread_socket): Call ActivateControl/DeactivateControl here.
18054 (XTread_socket) [TARGET_API_MAC_CARBON]:
18055 Check mac_pass_command_to_system and mac_pass_control_to_system here.
18056 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
18057 for window repositioning.
18058
180592007-08-08 Glenn Morris <rgm@gnu.org>
18060
18061 * Replace `iff' in doc-strings and comments.
18062
180632007-08-07 Chong Yidong <cyd@stupidchicken.com>
18064
18065 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
18066
180672007-08-07 Martin Rudalics <rudalics@gmx.at>
18068
18069 * fileio.c (Finsert_file_contents): Run format-decode and
18070 after_insert_file_functions on entire buffer when REPLACE is
18071 non-nil and inhibit modification_hooks and point_motion_hooks.
18072 For consistency, run after_insert_file_functions iff something
18073 got inserted. Move signal_after_change and update_compositions
18074 after code running after_insert_file_functions. Make sure that
18075 undo_list doesn't record intermediate steps of the decoding process.
18076
180772007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18078
18079 * emacs.c (main)
18080 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
18081 Call malloc_enable_thread on interactive startup.
18082
18083 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
18084 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
18085 [USE_PTHREAD]: Conditionalize with it.
18086 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
18087 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
18088 New functions.
18089
180902007-08-06 Chong Yidong <cyd@stupidchicken.com>
18091
18092 * xdisp.c (redisplay_window): When restoring original buffer
18093 position, make sure it is still valid.
18094
18095 * image.c (png_load): Ignore png-supplied background color.
18096
180972007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18098
18099 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
18100 Use kCFAbsoluteTimeIntervalSince1970.
18101
18102 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
18103 New variable.
18104 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
18105 event loop should be quit.
18106 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
18107 Quit dialog event loop if quit_dialog_event_loop is set.
18108
18109 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
18110 (Selection): New typedef. Use instead of ScrapRef.
18111 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
18112 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
18113 (mac_clear_selection): Rename from clear_scrap.
18114 (get_flavor_type_from_symbol): New argument SEL and subsume function of
18115 scrap_has_target_type. All uses changed.
18116 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
18117 (mac_selection_has_target_p): New functions.
18118 (mac_put_selection_value): Rename from put_scrap_string.
18119 (mac_get_selection_value): Rename from get_scrap_string.
18120 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
18121 (put_scrap_private_timestamp, scrap_has_target_type)
18122 (get_scrap_private_timestamp): Remove functions.
18123 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
18124 (x_own_selection, x_get_local_selection):
18125 Use mac_valid_selection_value_p.
18126 (x_own_selection): Don't use put_scrap_private_timestamp.
18127 Record OWNERSHIP-INFO into Vselection_alist instead.
18128 (x_get_local_selection): Don't check type if request is local.
18129 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
18130 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
18131
181322007-08-04 Jan Djärv <jan.h.d@swipnet.se>
18133
18134 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
18135 add comment explaining why.
18136
181372007-08-03 Richard Stallman <rms@gnu.org>
18138
18139 * fileio.c (Fvisited_file_modtime): Use make_time.
18140
181412007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
18142
18143 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
18144 build.
18145
181462007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
18147
18148 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
18149
181502007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
18151
18152 * puresize.h (BASE_PURESIZE): Increase to 1130000.
18153
181542007-07-30 Richard Stallman <rms@gnu.org>
18155
18156 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
18157
181582007-07-29 Jan Djärv <jan.h.d@swipnet.se>
18159
18160 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
18161
181622007-07-28 Nick Roberts <nickrob@snap.net.nz>
18163
18164 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
18165 remote default-directory.
18166
18167 * buffer.c (mode-line-format): Update doc string.
18168
181692007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18170
18171 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
18172 scroll bar gap.
18173 (x_scroll_bar_create): Set bar->fringe_extended_p.
18174 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
18175 on frame edge. Check fringe background extension. Don't clear
18176 extended fringe background area.
18177
18178 * w32term.h (struct scroll_bar): New member fringe_extended_p.
18179 (w32_fill_area): Enclose multiple statements with do ... while (0).
18180
18181 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
18182 Extend fringe background to scroll bar gap.
18183 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
18184 Set bar->fringe_extended_p.
18185 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
18186 Put leftmost/rightmost scroll bars on frame edge. Check fringe
18187 background extension. Don't clear extended fringe background area.
18188
18189 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
18190 New member fringe_extended_p.
18191
181922007-07-25 Glenn Morris <rgm@gnu.org>
18193
18194 * Relicense all FSF files to GPLv3 or later.
18195
18196 * COPYING: Switch to GPLv3.
18197
181982007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
18199
18200 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
18201
18202 * data.c (Finteractive_form): Check for the presence of an
18203 `interactive-form' symbol property more thoroughly.
18204
18205 * data.c (Finteractive_form): Use an `interactive-form' property if
18206 present, analogous to the function-documentation property.
18207
182082007-07-24 Jason Rumney <jasonr@gnu.org>
18209
18210 * w32fns.c (x_real_positions): Get real position from OS instead of
18211 calculating it.
18212
182132007-07-23 Jason Rumney <jasonr@gnu.org>
18214
18215 * filelock.c (current_lock_owner): Allow for @ sign in username.
18216
182172007-07-22 Nick Roberts <nickrob@snap.net.nz>
18218
18219 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
18220 remote default-directory.
18221
18222 * buffer.c (mode-line-format): Describe above case in doc string.
18223
182242007-07-20 Eli Zaretskii <eliz@gnu.org>
18225
18226 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
18227 Define if not defined.
18228
182292007-07-18 Jason Rumney <jasonr@gnu.org>
18230
18231 * w32proc.c (w32_executable_type): Handle 64 bit executables.
18232
182332007-07-18 Richard Stallman <rms@gnu.org>
18234
18235 * data.c (Fsetq_default): Doc fix.
18236
18237 * eval.c (Fsetq): Doc fix.
18238
182392007-07-18 Juanma Barranquero <lekktu@gmail.com>
18240
18241 * coding.c (Ffind_operation_coding_system):
18242 * eval.c (For, Fand): Doc fixes.
18243 Reported by Johan Bockgård.
18244
182452007-07-18 Jan Djärv <jan.h.d@swipnet.se>
18246
18247 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
18248
18249 * xterm.h: Declare x_ewmh_activate_frame.
18250
18251 * xterm.c (x_ewmh_activate_frame): New function.
18252 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
18253
182542007-07-17 Martin Rudalics <rudalics@gmx.at>
18255
18256 * window.c (Fdisplay_buffer): If largest or LRU window is the
18257 only window, split it even if it is not eligible for splitting.
18258 This restores the original behavior broken by the 2007-07-15
18259 change.
18260
182612007-07-17 Glenn Morris <rgm@gnu.org>
18262
18263 * abbrev.c (abbrev_check_chars): New function.
18264 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
18265 Call abbrev_check_chars to check abbrev characters are word
18266 constituents. Doc fix.
18267
182682007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
18269
18270 * process.c (Fstart_process, Fmake_network_process)
18271 (read_process_output): Fix up last changes.
18272
182732007-07-16 Eli Zaretskii <eliz@gnu.org>
18274
18275 * makefile.w32-in (clean): Don't delete *~.
18276
182772007-07-16 Andreas Schwab <schwab@suse.de>
18278
18279 * window.c (Fdisplay_buffer): Use NILP.
18280 (Fset_window_scroll_bars): Likewise.
18281
182822007-07-15 Martin Rudalics <rudalics@gmx.at>
18283
18284 * window.c (window_min_size_2): New function.
18285 (window_min_size_1, size_window, Fdisplay_buffer)
18286 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
18287 windows without mode- or header-lines when window-min-height is
18288 too small.
18289 (size_window): Reset nodelete_p after testing it, following an
18290 earlier note by Kim F. Storm.
18291 (display_buffer): Do not set split_height_threshold to twice the
18292 value of window_min_height to avoid changing the value of a
18293 customizable variable. Rather explicitly check whether the
18294 height of the window that shall be splitted is at least as large
18295 as split_height_threshold.
18296 (Fwindow_full_width_p): New defun.
18297 (syms_of_window): Defsubr it.
18298
18299 * window.h: Add EXFUN for Fwindow_full_width_p.
18300
183012007-07-14 Jason Rumney <jasonr@gnu.org>
18302
18303 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
18304
183052007-07-14 Richard Stallman <rms@gnu.org>
18306
18307 * eval.c (maybe_call_debugger): New function.
18308 (find_handler_clause): Use maybe_call_debugger.
18309 Call it when the handler says `debug'.
18310 Eliminate DEBUGGER_VALUE_PTR.
18311 (Fsignal): Eliminate debugger_value.
18312 (Qdebug): New variable.
18313 (syms_of_eval): Initialize it.
18314
183152007-07-14 Juanma Barranquero <lekktu@gmail.com>
18316
18317 * eval.c (Fprogn):
18318 * keyboard.c (Ftrack_mouse):
18319 * print.c (Fwith_output_to_temp_buffer):
18320 * window.c (Fsave_window_excursion): Doc fix.
18321
183222007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
18323
18324 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
18325
183262007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
18327
18328 * process.h (struct Lisp_Process): Turn slots infd, outfd,
18329 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
18330 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
18331 read_output_delay, and read_output_skip from Lisp_Objects to ints.
18332 Remove unused encoding_carryover.
18333 * process.c: Adjust all functions accordingly.
18334
183352007-07-12 Richard Stallman <rms@gnu.org>
18336
18337 * term.c: Include unistd.h only if HAVE_UNISTD_H.
18338
183392007-07-11 Jason Rumney <jasonr@gnu.org>
18340
18341 * makefile.w32-in (LIBS): Include OLE32.
18342
18343 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
18344 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
18345
183462007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
18347
18348 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
18349 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
18350 from a Lisp_Object into a bare pointer.
18351 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
18352 Adjust the code correspondingly.
18353
18354 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
18355
18356 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
18357 (term_show_mouse_face): Remove unused var `j'.
18358 (handle_one_term_event): Remove unused vars `i' and `j'.
18359 Don't cast return value of ttyname since it's not necessary.
18360
183612007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
18362
18363 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
18364 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
18365
18366 * fns.c (map_char_table): Use an array of int for `indices' rather than
18367 an array of Lisp_Objects (which are only ever integers anyway).
18368 (Fmap_char_table): Update caller.
18369 * lisp.h: Update prototype.
18370 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
18371 * fontset.c (Ffontset_info):
18372 * casetab.c (set_case_table): Update callers.
18373
18374 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
18375
18376 * keymap.c (struct accessible_keymaps_data)
18377 (struct where_is_internal_data): New structures.
18378 (accessible_keymaps_1, where_is_internal_1): Use them to change
18379 interface to adhere to the one used by map_keymap.
18380 (Faccessible_keymaps, where_is_internal): Use map_keymap.
18381 (accessible_keymaps_char_table, where_is_internal_2): Remove.
18382
18383 * keymap.h (map_keymap_function_t): More informative prototype.
18384
183852007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
18386
18387 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
18388 (looking_at_1): Don't change search_regs and last_thing_searched
18389 if `inhibit-changing-match-data' is non-nil.
18390 (string_match_1, search_buffer, set_search_regs): Likewise.
18391 (syms_of_search): Add Lisp level definition for
18392 `inhibit-changing-match-data' and set it to nil.
18393 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
18394 start and end of the match, instead of using values in search_regs.
18395
183962007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
18397
18398 * minibuf.c (Fcompleting_read): New value `confirm-only'
18399 for `require-match'.
18400
184012007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
18402
18403 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
18404 part of the 2007-06-27 change to syms_of_fileio.
18405
184062007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18407
18408 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
18409 Check WINDOWP before using XWINDOW. Consolidate return statements.
18410
184112007-06-27 Richard Stallman <rms@gnu.org>
18412
18413 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
18414
184152007-06-27 Juanma Barranquero <lekktu@gmail.com>
18416
18417 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
18418
184192007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18420
18421 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
18422 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
18423 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
18424 (_free_internal, memalign): Use them.
18425 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
18426 Initialize to PTHREAD_MUTEX_INITIALIZER.
18427 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
18428 (morecore_nolock): Rename from morecore. All uses changed.
18429 Use only nolock versions of internal allocation functions.
18430 (_malloc_internal_nolock, _realloc_internal_nolock)
18431 (_free_internal_nolock): New functions created from
18432 _malloc_internal, _realloc_internal, and _free_internal.
18433 (_malloc_internal, _realloc_internal, _free_internal): Use them.
18434 Copy hook value to automatic variable before its use.
18435 (memalign): Copy hook value to automatic variable before its use.
18436
184372007-06-26 Kenichi Handa <handa@m17n.org>
18438
18439 * coding.c (Ffind_operation_coding_system): Docstring improved.
18440 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
18441
184422007-06-25 David Kastrup <dak@gnu.org>
18443
18444 * keymap.c (Fcurrent_active_maps): Add `position' argument.
18445 (Fwhere_is_internal): Adjust call to `current-active-maps' to
18446 cater for additional parameter.
18447
18448 * keymap.h: Adjust number of parameters to `current-active-maps'.
18449
18450 * doc.c (Fsubstitute_command_keys): Adjust call of
18451 `current-active-maps'.
18452
184532007-06-25 David Kastrup <dak@gnu.org>
18454
18455 * callint.c (Fcall_interactively): Make the parsing of interactive
18456 specs somewhat more readable.
18457
184582007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18459
18460 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
18461 to scroll bar gap also when bitmap fills fringe. Draw only foreground
18462 if extended background has already been filled.
18463
184642007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18465
18466 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
18467 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
18468
18469 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
18470 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
18471 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
18472 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
18473 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
18474 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
18475 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
18476 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
18477 Run timers during dialog popup.
18478 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
18479
184802007-06-21 Jason Rumney <jasonr@gnu.org>
18481
18482 * image.c (convert_mono_to_color_image): Swap fore and background.
18483
184842007-06-20 Jason Rumney <jasonr@gnu.org>
18485
18486 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
18487 (w32_free_bdf_font): Unmap memory not handle.
18488
184892007-06-20 Sam Steingold <sds@gnu.org>
18490
18491 * gmalloc.c (__morecore): Fix the declaration to comply with the
18492 definition.
18493
184942007-06-20 Juanma Barranquero <lekktu@gmail.com>
18495
18496 * w32term.c (w32_delete_display): Remove leftover declaration.
18497 (w32_define_cursor, w32_initialize): Make static.
18498
18499 * w32.c (_wsa_errlist): Fix typo in error message.
18500 (init_environment): Ignore any environment variable from the
18501 registry having a null value.
18502
185032007-06-20 Glenn Morris <rgm@gnu.org>
18504
18505 * Makefile.in (LIBGIF): Default to -lgif.
18506
185072007-06-17 Jason Rumney <jasonr@gnu.org>
18508
18509 * w32menu.c (add_menu_item): Don't use multibyte string functions on
18510 unicode strings.
18511
185122007-06-16 Juanma Barranquero <lekktu@gmail.com>
18513
18514 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
18515 Fix typo in docstring.
18516
185172007-06-16 Eli Zaretskii <eliz@gnu.org>
18518
18519 * w32menu.c (add_menu_item): Escape `&' characters in menu items
18520 and their keybindings.
18521
185222007-06-15 Chong Yidong <cyd@stupidchicken.com>
18523
18524 * composite.c (update_compositions): Fix last fix.
18525
185262007-06-14 Jason Rumney <jasonr@gnu.org>
18527
18528 * w32.c (get_process_times_fn): New function pointer.
18529 (globals_of_w32): Intialize it if present in kernel32.dll.
18530 (w32_get_internal_run_time): New function.
18531
18532 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
18533
185342007-06-14 Kenichi Handa <handa@etlken.m17n.org>
18535
18536 * composite.c (update_compositions): Check the validness of
18537 compositions.
18538
185392007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18540
18541 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
18542 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
18543
18544 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
18545 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
18546
18547 * macgui.h (USE_MAC_TOOLBAR): New define.
18548
18549 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
18550 Return immediately unless popup is activated.
18551
18552 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
18553 background to scroll bar gap.
18554 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
18555 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
18556 scroll bars on frame edge. Check fringe background extension.
18557 Don't clear extended fringe background area.
18558 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
18559 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
18560 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
18561 [USE_MAC_TOOLBAR]: New macros.
18562 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
18563 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
18564 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
18565 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
18566 [USE_MAC_TOOLBAR]: New functions.
18567 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
18568 manually if previous repositioning has failed.
18569 (mac_handle_keyboard_event): Use precomputed event kind.
18570 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
18571 as tool bar item click. Handle mouse movement over tool bar items.
18572
18573 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
18574 toolbar_win_gravity.
18575 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
18576 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
18577 Add externs.
18578
18579 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
18580 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
18581
185822007-06-14 Chong Yidong <cyd@stupidchicken.com>
18583
18584 * image.c (search_image_cache): Remove unused variable.
18585
185862007-06-13 Chong Yidong <cyd@stupidchicken.com>
18587
18588 * xfns.c, xmenu.c: Link to xaw3d if available.
18589
185902007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18591
18592 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
18593 frame_foreground and frame_background.
18594
18595 * image.c (lookup_image): Save frame foreground and background colors.
18596 (search_image_cache): Check if saved and current frame colors match.
18597
185982007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
18599
18600 * regex.c (regex_compile): Remove the `regnum' counter.
18601 Use bufp->re_nsub instead. Add support for \(?N:RE\).
18602
186032007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
18604
18605 * term.c: Include intervals.h to declare Fget_text_property.
18606
186072007-06-10 Jason Rumney <jasonr@gnu.org>
18608
18609 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
18610
186112007-06-08 Juanma Barranquero <lekktu@gmail.com>
18612
18613 * callint.c (Fcall_interactively):
18614 * editfns.c (Fdelete_and_extract_region):
18615 * fileio.c (Fread_file_name):
18616 * fns.c (Fmapconcat):
18617 * keyboard.c (cmd_error_internal):
18618 * keymap.c (Fkey_description):
18619 * lread.c (openp):
18620 * minibuf.c (read_minibuf):
18621 * search.c (wordify):
18622 * sunfns.c (sel_read):
18623 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
18624 * xfns.c (x_default_scroll_bar_color_parameter):
18625 * xmenu.c (menu_help_callback):
18626 * xselect.c (Fx_get_atom_name):
18627 * xterm.c (x_term_init): Use empty_unibyte_string.
18628
186292007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
18630
18631 * alloc.c (init_strings): Initialize canonical empty strings.
18632 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
18633 canonical empty string when the requested size is 0.
18634
18635 * emacs.c (empty_unibyte_string): Rename from empty_string.
18636 (empty_multibyte_string): New canonical empty string.
18637 (syms_of_emacs): Don't initialize empty_string.
18638
18639 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
18640 string, if appropriate.
18641 (empty_unibyte_string, empty_multibyte_string): New externs.
18642 (empty_string): Remove extern.
18643
18644 * lread.c (syms_of_lread): Use empty_unibyte_string.
18645
186462007-06-07 Jason Rumney <jasonr@gnu.org>
18647
18648 * s/ms-w32.h: Don't define HAVE_TZNAME.
18649
18650 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
18651
186522007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18653
18654 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
18655
18656 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
18657 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
18658
18659 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
18660 Don't call next handler.
18661 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
18662 Remove argument. Install handler to application.
18663 (set_frame_menubar): Don't change deep_p.
18664 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
18665 FRAME_OUTER_TO_INNER_DIFF_Y.
18666 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
18667 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
18668 [HAVE_DIALOGS]: New macros.
18669 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
18670 Use them.
18671 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
18672
18673 * macselect.c [MAC_OSX] (install_service_handler): Rename from
18674 init_service_handler. All callers changed. Return OSStatus value.
18675
18676 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
18677 All callers changed so as not to call SetPortWindowPort.
18678 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
18679 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
18680 mac_draw_string_common.
18681 (mac_draw_image_string_qd): Likewise.
18682 (mac_draw_string_common): Use them. Add INLINE.
18683 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
18684 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
18685 GetGlobalMouse.
18686 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
18687 and FRAME_OUTER_TO_INNER_DIFF_Y.
18688 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
18689 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
18690 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
18691 repositioning window to mac_handle_window_event.
18692 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
18693 saving window location to mac_handle_window_event
18694 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
18695 (install_menu_target_item_handler): Remove argument in extern.
18696 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
18697 Also accept command events.
18698 (do_keystroke): New function created from XTread_socket.
18699 (init_command_handler): Remove functions.
18700 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
18701 and save window location by kEventWindowShowing and kEventWindowHiding
18702 handlers here. Don't call next handler for window state change and
18703 focus events.
18704 (mac_handle_application_event, mac_handle_keyboard_event)
18705 [TARGET_API_MAC_CARBON]: New functions.
18706 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
18707 kEventWindowShowing and kEventWindowHiding events. Move installation
18708 of mouse, font, text input and menu target item handlers to
18709 install_application_handler.
18710 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
18711 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
18712 New function.
18713 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
18714 Register it.
18715 (XTread_socket) [TARGET_API_MAC_CARBON]:
18716 Consolidate SendEventToEventTarget calls.
18717 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
18718 Move application activation handler to mac_handle_application_event.
18719 Move keyboard handler to mac_handle_keyboard_event.
18720 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
18721 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
18722 init_command_handler. Call install_application_handler.
18723
18724 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
18725 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
18726
187272007-06-07 Glenn Morris <rgm@gnu.org>
18728
18729 * emacs.c (main): Use `emacs-copyright' in --version output.
18730
187312007-06-06 Chong Yidong <cyd@stupidchicken.com>
18732
18733 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
18734
187352007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18736
18737 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
18738
18739 * macgui.h: Replace WindowPtr with WindowRef.
18740
18741 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
18742 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
18743 Replace ControlHandle with ControlRef.
18744 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
18745
18746 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
18747 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
18748 Replace ControlHandle with ControlRef.
18749 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
18750 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
18751
18752 * macterm.h (struct scroll_bar): Rename member control_handle_low
18753 and control_handle_high to control_ref_low and control_ref_high.
18754 All uses changed.
18755 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
18756 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
18757 respectively. All uses changed.
18758 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
18759 (install_window_handler, remove_window_handler): Replace WindowPtr
18760 with WindowRef in externs.
18761
187622007-06-05 Juanma Barranquero <lekktu@gmail.com>
18763
18764 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
18765
187662007-06-03 Nick Roberts <nickrob@snap.net.nz>
18767
18768 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
18769
18770 * frame.c (Fmouse_position, Fmouse_pixel_position):
18771 Condition on HAVE_GPM too.
18772
18773 * term.c (term_mouse_highlight): Remove unused variables.
18774 (Fterm_open_connection): Set gpm_zerobased to 1.
18775 (term_mouse_movement, term_mouse_click, handle_one_term_event):
18776 Use zero based co-ordinates.
18777 (handle_one_term_event): Report a drag as mouse movement too.
18778
18779 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
18780
187812007-06-03 Chong Yidong <cyd@stupidchicken.com>
18782
18783 * image.c (search_image_cache): New function. Require background
18784 color match if background color is unspecified in the image spec.
18785 (uncache_image, lookup_image): Use it.
18786
187872007-06-01 Juanma Barranquero <lekktu@gmail.com>
18788
18789 * window.c (Fshrink_window): Reflow docstring.
18790
187912007-06-02 Chong Yidong <cyd@stupidchicken.com>
18792
18793 * Version 22.1 released.
18794
187952007-06-01 Richard Stallman <rms@gnu.org>
18796
18797 * xfns.c (x_encode_text): Add GCPRO.
18798
187992007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18800
18801 * xfns.c (x_set_name_internal): Save encoded name before
18802 x_encode_text in case string data is relocated.
18803
188042007-05-31 Richard Stallman <rms@gnu.org>
18805
18806 * buffer.c (syms_of_buffer): Doc fix.
18807
188082007-05-30 Nick Roberts <nickrob@snap.net.nz>
18809
18810 * sysdep.c (init_sys_modes): Add rather than replace with
18811 O_NONBLOCK.
18812
18813 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
18814 term_mouse_moveto.
18815
18816 * termhooks.h (term_mouse_moveto): New extern.
18817
18818 * term.c (mouse_face_window): Rename...
18819 (Qmouse_face_window): ...to this.
18820 (term_show_mouse_face, term_clear_mouse_face)
18821 (term_mouse_highlight): Use Qmouse_face_window.
18822 (term_mouse_moveto): New function.
18823 (term_mouse_position): Make it work.
18824 (syms_of_term): Uncomment assignment to mouse_position_hook.
18825 Staticpro Qmouse_face_window.
18826
188272007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18828
18829 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
18830 around current_column call.
18831
188322007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
18833
18834 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
18835 * xdisp.c (next_element_from_buffer):
18836 * window.c (delete_window):
18837 * term.c (term_mouse_highlight):
18838 * msdos.c (getdefdir):
18839 * macterm.c (mac_create_bitmap_from_bitmap_data)
18840 (init_font_name_table):
18841 * fns.c (Fsxhash):
18842 * data.c (Fmake_local_variable):
18843 * ccl.c (ccl_driver): Likewise.
18844
188452007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18846
18847 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
18848 Call mac_wakeup_from_rne on window size change.
18849
188502007-05-25 Chong Yidong <cyd@stupidchicken.com>
18851
18852 * image.c (uncache_image): Fix typo.
18853
188542007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
18855
18856 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
18857
188582007-05-22 Richard Stallman <rms@gnu.org>
18859
18860 * xterm.c (x_connection_closed): Remove NO_RETURN.
18861
188622007-05-22 Martin Rudalics <rudalics@gmx.at>
18863
18864 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
18865
188662007-05-21 Chong Yidong <cyd@stupidchicken.com>
18867
18868 * image.c (uncache_image): New function.
18869 (Fimage_refresh): New function.
18870
188712007-05-20 Jan Djärv <jan.h.d@swipnet.se>
18872
18873 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
18874
188752007-05-20 Nick Roberts <nickrob@snap.net.nz>
18876
18877 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
18878 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
18879
188802007-05-20 Nick Roberts <nickrob@snap.net.nz>
18881
18882 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
18883 conditional on [HAVE_GPM_H].
18884
188852007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
18886
18887 * syntax.c (skip_chars): Update syntax-table only after we checked that
18888 the new location is valid.
18889
188902007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18891
18892 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
18893 mac_get_window_bounds.
18894
188952007-05-20 Nick Roberts <nickrob@snap.net.nz>
18896
18897 * Makefile.in (LIBGPM): Allow it to be set from configure.
18898 If set then link Emacs with it.
18899
18900 * config.in: Regenerate.
18901
18902 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
18903 New externs.
18904
18905 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
18906 Include gpm.h.
18907 (handle_one_term_event, term_gpm): New externs.
18908
18909 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
18910 and allow it to be interrupted by SIGIO.
18911
18912 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
18913 (wait_reading_process_output): Wait on gpm_fd too.
18914 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
18915 (add_gpm_wait_descriptor_called_flag): New variable.
18916 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
18917
18918 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
18919 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
18920 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
18921 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
18922 (make_lispy_event): Add case GPM_CLICK_EVENT.
18923 (read_avail_input): Handle mouse input.
18924
18925 * term.c (write_glyphs_with_face): New function.
18926 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
18927 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
18928 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
18929 (mouse_face_face_id, term_gpm, pos_x, pos_y)
18930 (last_mouse_x, last_mouse_y): New variables.
18931 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
18932 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
18933 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
18934 (Fterm_close_connection): New functions.
18935 (term_init): Initialise mouse_face_window.
18936
189372007-05-19 Chong Yidong <cyd@stupidchicken.com>
18938
18939 * xdisp.c (redisplay_window): If first window line is a
18940 continuation line, recompute the new window start instead of
18941 recentering.
18942
189432007-05-18 Glenn Morris <rgm@gnu.org>
18944
18945 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
18946 Suggested by Alfred M. Szmidt <ams@gnu.org>.
18947
189482007-05-17 Glenn Morris <rgm@gnu.org>
18949
18950 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
18951
189522007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18953
18954 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
18955 dead key repeat and up events.
18956
189572007-05-14 Chong Yidong <cyd@stupidchicken.com>
18958
18959 * image.c (pbm_load): Check image size for monochrome pbm.
18960
189612007-05-13 Chong Yidong <cyd@stupidchicken.com>
18962
18963 * xterm.c (XTread_socket): Revert last change.
18964
189652007-05-12 Chong Yidong <cyd@stupidchicken.com>
18966
18967 * image.c (pbm_load): Correctly check image size for greyscale pbm.
18968
18969 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
18970
189712007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
18972
18973 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
18974 mixup (YAILOM).
18975
189762007-05-07 Andreas Schwab <schwab@suse.de>
18977
18978 * keymap.c (Flookup_key): Fix typo in last change.
18979
189802007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
18981
18982 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
18983 mapping for unibyte strings.
18984
189852007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18986
18987 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
18988 (Fx_popup_dialog) [MAC_OSX]: Likewise.
18989
189902007-04-29 Richard Stallman <rms@gnu.org>
18991
18992 * insdel.c (replace_range): For undo, record insertion first.
18993
189942007-04-29 Andreas Schwab <schwab@suse.de>
18995
18996 * lisp.h (VECSIZE): Use OFFSETOF.
18997
189982007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18999
19000 * xdisp.c (try_window_reusing_current_matrix): Fix number of
19001 disabled lines.
19002
190032007-04-28 Richard Stallman <rms@gnu.org>
19004
19005 * lread.c (read_escape): In a string, \s is always space.
19006
190072007-04-27 Jan Djärv <jan.h.d@swipnet.se>
19008
19009 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
19010
19011 * gtkutil.c (xg_update_menubar, create_menus): Create empty
19012 submenu for menu bar items.
19013
19014See ChangeLog.10 for earlier changes.
19015
19016;; Local Variables:
19017;; coding: utf-8
19018;; add-log-time-zone-rule: t
aac0c6e3
MR
19019;; End:
19020
76b6f707 19021 Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc.
aac0c6e3
MR
19022
19023 This file is part of GNU Emacs.
19024
19025 GNU Emacs is free software: you can redistribute it and/or modify
19026 it under the terms of the GNU General Public License as published by
19027 the Free Software Foundation, either version 3 of the License, or
19028 (at your option) any later version.
19029
19030 GNU Emacs is distributed in the hope that it will be useful,
19031 but WITHOUT ANY WARRANTY; without even the implied warranty of
19032 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19033 GNU General Public License for more details.
19034
19035 You should have received a copy of the GNU General Public License
19036 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
19037
19038;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40