* w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
[bpt/emacs.git] / src / ChangeLog
1 2009-07-01 Jan Djärv <jan.h.d@swipnet.se>
2
3 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
4
5 * nsfns.m (ns_frame_parm_handlers): Ditto.
6
7 * frame.c: Declare Qsticky.
8 (frame_parms): Add sticky.
9
10 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
11
12 * xterm.h: Declare x_set_sticky.
13
14 * xterm.c (x_set_sticky): New function.
15
16 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
17 (xg_tool_bar_menu_proxy): Attach enter/leave events to
18 xg_tool_bar_proxy_help_callback.
19
20 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
21
22 * frame.c: Qmaximized is new.
23 (x_set_frame_parameters): Do not handle fullscreen specially.
24 Only set width and height if explicitly set.
25 (x_set_fullscreen): Handle Qmaximized.
26 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
27 (syms_of_frame): Initialize Qmaximized.
28
29 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED. Declare
30 Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
31
32 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
33 for Expose event. Add call to x_check_fullscreen for MapNotify event.
34 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
35 set gravity to NorthWestGravity when USE_GTK.
36 (set_wm_state): New function.
37 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
38 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
39 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
40 or the case when no window manager is running. That means remove calls
41 to x_real_positions and x_fullscreen_adjust.
42
43 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
44 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
45 flush_and_sync.
46 (xg_height_changed): New function.
47 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
48 and gtk_window_set_policy. Set frame gravity after parsing the geometry
49 string.
50 (xg_update_frame_menubar, free_frame_menubar)
51 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
52 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
53 Remove calls to xg_frame_set_char_size.
54
55 2009-07-01 Kenichi Handa <handa@m17n.org>
56
57 * keyboard.c (decode_keyboard_code): New function.
58 (tty_read_avail_input): Decode the input bytes if necessary.
59
60 * coding.c (setup_coding_system): Initialize
61 coding->carryover_bytes to 0.
62 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
63 use Qno_conversion.
64
65 2009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
66
67 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
68
69 2009-06-30 Chong Yidong <cyd@stupidchicken.com>
70
71 * xftfont.c (xftfont_open): Avoid passing NULL argument to
72 XftLockFace.
73
74 2009-06-30 Jason Rumney <jasonr@gnu.org>
75
76 * w32term.c (w32_initialize): Use GetModuleHandle for library that
77 is already loaded.
78 Set user model ID if supported (bug#1849).
79
80 2009-06-29 Jim Meyering <meyering@redhat.com>
81
82 Remove useless if-before-xfree test.
83 * nsfont.m (nsfont_close): Remove useless test.
84 * term.c (delete_tty): Likewise.
85 * w32.c (system_process_attributes): Likewise.
86 * w32font.c (w32font_close): Likewise.
87 * xfaces.c (x_free_gc): Likewise.
88 * xselect.c (buffer): Likewise.
89
90 2009-06-28 Andreas Schwab <schwab@linux-m68k.org>
91
92 * process.c (send_process): Keep decoded string in a local
93 variable and protect it from GC. (Bug#3521)
94
95 2009-06-28 Eli Zaretskii <eliz@gnu.org>
96
97 * term.c (create_tty_output) [MSDOS]: #ifdef away.
98 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
99
100 2009-06-28 Chong Yidong <cyd@stupidchicken.com>
101
102 * xdisp.c (start_display, handle_face_prop)
103 (move_it_vertically_backward, cursor_row_fully_visible_p)
104 (redisplay_window, try_window_id, produce_image_glyph): Delete
105 some #ifdef-ed out code chunks that are now obsolete.
106
107 * xterm.c (x_update_window_begin, x_new_focus_frame)
108 (x_scroll_bar_handle_click, handle_one_xevent)
109 (handle_one_xevent, XTread_socket, x_focus_on_frame)
110 (x_make_frame_visible, x_make_frame_invisible)
111 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
112 code chunks that are now obsolete.
113
114 2009-06-28 Michael Albinus <michael.albinus@gmx.de>
115
116 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
117 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
118 for hours, when optimzation is enabled.
119 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
120 (xd_read_message): Make them static.
121
122 2009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
123
124 * term.c (turn_on_face): Allow simultaneously bold and dim
125 terminal faces (Bug#3530).
126
127 2009-06-27 Chong Yidong <cyd@stupidchicken.com>
128
129 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
130
131 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
132 truncation glyphs (Bug#3686).
133
134 2009-06-27 Glenn Morris <rgm@gnu.org>
135
136 * m/pmax.h: Restore file, with only netbsd portions.
137
138 2009-06-26 David Reitter <david.reitter@gmail.com>
139
140 * nsterm.m (keydown): Avoid infinite loop.
141
142 2009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
143
144 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
145 the arg FORCE_SYMBOL.
146
147 2009-06-25 Kenichi Handa <handa@m17n.org>
148
149 * fontset.c (fontset_find_font): When a usable rfont_def is found
150 in a fallback font-group, make it the first element of the group.
151
152 2009-06-24 Chong Yidong <cyd@stupidchicken.com>
153
154 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
155
156 2009-06-24 Kenichi Handa <handa@m17n.org>
157
158 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
159 set for C.
160 (fontset_font): Record the availability of a font for C both in
161 the realized fontsets of the current one and the default one.
162
163 2009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
164
165 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
166 conditional, it is always defined on AIX.
167
168 2009-06-23 Miles Bader <miles@gnu.org>
169
170 * window.c (Vrecenter_redisplay): New variable.
171 (syms_of_window): Initialize it.
172 (Qtty): New extern declaration.
173 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
174
175 2009-06-23 Jim Meyering <meyering@redhat.com>
176
177 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt): Use
178 xmalloc and xrealloc (not malloc and realloc), so subsequent heap
179 pointer dereferences are guaranteed to be valid.
180
181 2009-06-23 Kenichi Handa <handa@m17n.org>
182
183 * emacs.c (main): Call init_font ().
184
185 * font.h (Vfont_log): Extern it.
186 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
187
188 * font.c (font_sort_entities, font_list_entities)
189 (font_matching_entity, font_open_entity)
190 (font_close_object): Change font_add_log to FONT_ADD_LOG.
191 (Vfont_log): Delete static.
192 (font_log_env_checked): Delete this variable.
193 (font_add_log): Don't check font_log_env_checked.
194 (font_deferred_log): Check Vfont_log.
195 (init_font): New function.
196
197 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
198
199 * w32font.c: Change font_add_log to FONT_ADD_LOG.
200
201 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
202
203 * xfont.c: Change font_add_log to FONT_ADD_LOG.
204
205 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
206 (face_for_char): Don't call font_deferred_log here.
207 (font_for_char): Likewise.
208
209 2009-06-22 Chong Yidong <cyd@stupidchicken.com>
210
211 * w32term.c (x_draw_glyph_string): Use the glyph string's width
212 rather than its background_width for drawing the overline and
213 underline (Bug#489).
214
215 * xterm.c (x_draw_glyph_string): Use the glyph string's width
216 rather than its background_width for drawing the overline and
217 underline (Bug#489).
218 (xg_default_icon_file): New variable.
219 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
220 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
221
222 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
223 (load_overlay_strings): Remove externs.
224 (fast_find_position): Function deleted.
225 (mouse_face_from_buffer_pos): New function, based on
226 fast_find_position. Correctly handle before-strings,
227 display-strings, and after-strings (Bug#1220).
228 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
229
230 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
231
232 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for
233 !HAVE_WINDOW_SYSTEM.
234 (move_it_in_display_line_to, move_it_in_display_line_to)
235 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
236
237 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
238
239 * Branch for 23.1.
240
241 2009-06-21 Jason Rumney <jasonr@gnu.org>
242
243 * w32term.c (keyboard_codepage): New static variable.
244 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
245 (w32_read_socket) [WM_CHAR]: Use it to decode character
246 input (bug#3237).
247 (w32_initialize): Initialize it.
248 (codepage_for_locale): New function.
249
250 2009-06-20 Ken Raeburn <raeburn@raeburn.org>
251
252 * process.c (status_message): Pass Faset index argument as a lisp
253 object, so as to work with USE_LISP_UNION_TYPE.
254
255 2009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
256
257 * coding.c (Ffind_coding_systems_region_internal):
258 Cache checked characters.
259
260 2009-06-18 Kenichi Handa <handa@m17n.org>
261
262 * coding.c (decode_coding_iso_2022): Check MSB of bytes more
263 rigidly.
264
265 2009-06-18 Andreas Schwab <aschwab@redhat.com>
266
267 * xdisp.c (redisplay_internal): Check that the frame is still
268 live after redisplay of its windows.
269 (redisplay_windows): Check that the window is still live.
270
271 2009-06-17 Andreas Schwab <schwab@linux-m68k.org>
272
273 * coding.c (detect_coding_utf_16): Fix previous change.
274
275 2009-06-16 Kenichi Handa <handa@m17n.org>
276
277 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
278 UTF-16 by checking the dispersion of Eth and Oth bytes.
279
280 2009-06-15 Andreas Schwab <schwab@linux-m68k.org>
281
282 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
283
284 2009-06-15 Kenichi Handa <handa@m17n.org>
285
286 * process.c (status_message): Fix previous change. Be sure to
287 decode a localized string.
288
289 2009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
290
291 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
292 add comment explaining why.
293
294 2009-06-14 Sidney Markowitz <sidney@sidney.com>
295
296 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
297
298 2009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
299
300 * nsfont.m (ns_attribute_value): Remove.
301 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
302 (ns_has_attribute): Shrink the normal range.
303 (ns_findfonts): Don't worry about requested spec in determining
304 need for synthItal.
305 (ns_get_covering_families): Retain scriptToFamilies.
306
307 2009-06-14 Seiji Zenitani <zenitani@mac.com>
308
309 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
310
311 2009-06-11 Kenichi Handa <handa@m17n.org>
312
313 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
314 overhang for the static composition case.
315
316 2009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
317
318 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
319 overhang for the automatic composition case.
320
321 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
322 composition case.
323
324 2009-06-10 Chong Yidong <cyd@stupidchicken.com>
325
326 * xdisp.c (get_next_display_element): When handling wrap-prefix
327 and line-prefix, treat \n as a control character (bug#3502).
328
329 2009-06-10 Kenichi Handa <handa@m17n.org>
330
331 * font.c (font_parse_family_registry): Fix for one-char foundry.
332 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
333
334 2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
335
336 * process.c (status_message): Fix handling of multibyte signal
337 string (Bug#3499).
338
339 2009-06-09 Jim Meyering <meyering@redhat.com>
340
341 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
342 color name is missing.
343
344 2009-06-09 Kenichi Handa <handa@m17n.org>
345
346 * charset.c (Fmap_charset_chars): In docstring, state clearly that
347 FROM-CODE and TO-CODE are codepoints of CHARSET.
348
349 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
350
351 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
352
353 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
354
355 Changes to support :script/:lang/:otf in NS font driver.
356 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
357 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
358 indicate not part of font driver interface, and change callers.
359 (ns_get_family): Remove pointless null check.
360 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
361 ns_spec_to_descriptor, ns_descriptor_to_entity.
362 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
363 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
364 (ns_spec_to_descriptor, ns_descriptor_to_entity)
365 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
366 (ns_get_req_script, ns_accumulate_script_ranges)
367 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
368 New functions.
369 (nsfont_list, nsfont_match): Use ns_findfonts.
370 (nsfont_open): Use font descriptor instead of traits.
371 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
372 (dump_glyphstring): Rename to ns_dump_glyphstring.
373
374 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
375
376 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
377
378 * fontset.c (fontset_from_font): Remove NS-specific code.
379
380 2009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
381
382 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
383 nonactive windows.
384
385 2009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
386
387 * nsterm.m (ns_init_paths): Append path separator to INFOPATH
388 variable.
389
390 2009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
391
392 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
393
394 2009-06-07 Chong Yidong <cyd@stupidchicken.com>
395
396 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
397 account for the overflowing of newlines into the last glyph on the
398 display line (Bug#3482).
399
400 2009-06-05 David Reitter <david.reitter@gmail.com>
401
402 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
403 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
404 Fns_selection_exists_p, Fns_selection_owner_p.
405
406 2009-06-03 Jason Rumney <jasonr@gnu.org>
407
408 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
409 available. (Bug#3379)
410
411 2009-05-29 Kenichi Handa <handa@m17n.org>
412
413 * coding.c (get_translation_table): Check
414 Venable_character_translation.
415
416 2009-05-26 David Reitter <david.reitter@gmail.com>
417
418 * nsterm.m (ns_raise_frame): Only raise frame if visible.
419 (x_make_frame_visible): Move frame to front rather than calling
420 ns_raise_frame().
421 (keyDown:): Do not swallow events that aren't re-sent if frame
422 isn't key window.
423 (drawRect:): Do not set visibility/iconified flags because
424 drawRect may be called by NSView even if the frame is hidden.
425
426 * nsfns.m (Fx_create_frame): Follow other ports in
427 determining visibility; default to t. Ensure async_visible is set.
428
429 2009-05-23 Eli Zaretskii <eliz@gnu.org>
430
431 * dired.c (Ffile_attributes): Doc fix.
432
433 2009-05-22 Chong Yidong <cyd@stupidchicken.com>
434
435 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
436
437 2009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
438
439 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
440 and xfont_scratch_props.
441 (syms_of_xfont): Do it here instead.
442 (xfont_find_ccl_program): Delete, unused.
443 (xfont_open): Delete unused var `i'.
444
445 2009-05-21 Kenichi Handa <handa@m17n.org>
446
447 * fontset.c (Qlatin): Don't make it static.
448
449 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
450 New functions.
451 (xfont_scripts_cache, xfont_scratch_props): New variables.
452 (Qlatin, Vscalable_fonts_allowed): Extern it.
453 (xfont_list_pattern): Argument changed. Callers changed.
454 Check Vscalable_fonts_allowed. Check the support of a script.
455 (xfont_list): Don't reject a font spec with :script property.
456 (xfont_has_char): Fix setting of encoding.
457 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
458 xfont_scratch_props.
459
460 2009-05-19 Kenichi Handa <handa@m17n.org>
461
462 * font.c (font_sort_entities): Rename from font_sort_entites.
463 Callers changed.
464
465 2009-05-18 Kenichi Handa <handa@m17n.org>
466
467 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
468
469 2009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
470
471 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
472 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
473
474 2009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
475
476 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
477 (x_delete_terminal): Dissociate resource database from display and
478 then call XrmDestroyDatabase before closing display.
479
480 2009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
481
482 * nsterm.m (ns_read_socket): Remove unused variable.
483 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
484 whether selected frame is viable before raising it (based on patch
485 by David Reitter), and improve commentary.
486 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
487
488 2009-05-15 Kenichi Handa <handa@m17n.org>
489
490 * font.c (Ffont_spec): Check arguments.
491
492 2009-05-14 Chong Yidong <cyd@stupidchicken.com>
493
494 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
495 weight when testing attributes (Bug#3282).
496
497 2009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
498
499 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
500 what we expect to get in the next ConfigureNotify event.
501
502 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
503 before Xft one (Bug#1696).
504
505 2009-05-07 David Reitter <david.reitter@gmail.com>
506
507 * nsfns.m (Fx_display_planes): Compute bitplanes using
508 NSBitsPerPixelFromDepth (Bug#3207).
509
510 2009-05-10 Chong Yidong <cyd@stupidchicken.com>
511
512 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
513
514 2009-05-10 Ulrich Mueller <ulm@gentoo.org>
515
516 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
517
518 2009-05-07 David Reitter <david.reitter@gmail.com>
519
520 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
521 Respect mouse face background.
522
523 2009-05-07 David Reitter <david.reitter@gmail.com>
524
525 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
526 Mouse movement/highlight: bracket drawing operations
527 in ns_update_begin and ns_update_end.
528
529 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
530
531 * nsfns.m (ns_get_screen): Rewrite.
532 Don't presume selected-frame is of type `ns'.
533
534 * font.c (font_update_drivers): Sanity fallback to avoid disabling
535 all drivers.
536
537 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
538
539 2009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
540
541 * keyboard.h (add_user_signal): Fix typo in extern.
542
543 * lisp.h (add_user_signal): Remove extern.
544
545 * unexelf.c (unexec): Consider a section to precede the .bss section
546 if its addresses overlap that of .bss.
547 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
548 instead of dumping process.
549
550 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
551
552 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
553
554 2009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
555
556 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
557
558 2009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
559
560 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
561 any statements.
562
563 2009-05-02 Andreas Schwab <schwab@linux-m68k.org>
564
565 * process.c (read_process_output): Make sure the current buffer is
566 always restored.
567
568 * coding.c (record_conversion_result): Don't modify
569 Vlast_code_conversion_error for successful result.
570 (alloc_destination): Don't clobber conversion result. (Bug#1650)
571
572 2009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
573
574 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
575 (load_charset_map): Remove unnecessary code.
576
577 2009-04-30 David Reitter <david.reitter@gmail.com>
578
579 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
580 through f24.
581
582 2009-04-30 Chong Yidong <cyd@stupidchicken.com>
583
584 * xfaces.c (face_at_buffer_position): New arg base_face_id.
585
586 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
587 face_at_buffer_position.
588 (face_before_or_after_it_pos, get_next_display_element)
589 (note_mouse_highlight): Update face_at_buffer_position call.
590
591 * term.c (term_mouse_highlight):
592 * msdos.c (IT_note_mouse_highlight):
593 * fontset.c (Finternal_char_font):
594 * font.c (font_at, font_range): Update face_at_buffer_position call.
595
596 * dispextern.h (face_at_buffer_position): Update prototype.
597
598 2009-04-30 Kenichi Handa <handa@m17n.org>
599
600 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
601
602 2009-04-29 Andreas Schwab <schwab@linux-m68k.org>
603
604 * callproc.c (Fcall_process): Fix GC protection. Make sure
605 current buffer is always restored.
606
607 2009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
608
609 * atimer.c (init_atimer): Also clear stopped_atimers.
610
611 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
612
613 * process.c (create_process): Clean up merger residues of
614 2008-07-17 change.
615
616 2009-04-29 Ulrich Mueller <ulm@gentoo.org>
617
618 * lread.c (Vread_circle): New variable.
619 (read1): Disable recursive read if Vread_circle is nil.
620
621 2009-04-29 Kenichi Handa <handa@m17n.org>
622
623 * fontset.h (set_default_ascii_font): Delete extern.
624
625 * fontset.c (set_default_ascii_font): Delete this unused function.
626
627 * frame.c (x_set_font): When ARG is a font-object, check if the
628 font-object matches with the ASCII font-spec of the frame's
629 fontset. If not, create a new fontset for the frame. (Bug #3075)
630
631 2009-04-28 Andreas Schwab <schwab@linux-m68k.org>
632
633 * fns.c (Flocale_info): Protect vector from GC during decoding.
634
635 * process.c (Fstart_process): Protect argv strings from GC during
636 encoding.
637
638 2009-04-27 Andreas Schwab <schwab@linux-m68k.org>
639
640 * sysdep.c: Include <ctype.h>.
641
642 2009-04-27 David Reitter <david.reitter@gmail.com>
643
644 * nsfont.m (nsfont_open): Remove unused variable shrink.
645 Remove commented-out code.
646
647 2009-04-26 Johan Bockgård <bojohan@gnu.org>
648
649 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
650
651 2009-04-25 Jason Rumney <jasonr@gnu.org>
652
653 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
654
655 2009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
656
657 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
658 Swap bytes in short integer if fringe bitmap width > 8.
659
660 2009-04-23 Kenichi Handa <handa@m17n.org>
661
662 * xfaces.c (Fx_list_fonts): If a font size is specified in
663 PATTERN, set it in returned scalable fonts.
664
665 2009-04-22 Chong Yidong <cyd@stupidchicken.com>
666
667 * keyboard.c (Fset_input_meta_mode): Doc fix.
668
669 * dispnew.c (Fsend_string_to_terminal): Doc fix.
670
671 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc
672 fixes.
673
674 * coding.c (Fterminal_coding_system): Doc fix.
675
676 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
677 (Fx_display_pixel_height, Fx_display_planes)
678 (Fx_display_color_cells, Fx_server_max_request_size)
679 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
680 (Fx_display_mm_height, Fx_display_mm_width)
681 (Fx_display_backing_store, Fx_display_visual_class)
682 (Fx_display_save_under, Fx_close_connection, Fx_synchronize): Doc
683 fixes, replacing "terminal id" with "terminal object".
684 (check_x_display_info): Handle terminal objects instead of
685 terminal ids.
686
687 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
688 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
689 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions): Doc
690 fixes, replacing "terminal id" with "terminal object".
691
692 2009-04-21 Kenichi Handa <handa@m17n.org>
693
694 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
695 (font_score): Check AVGWIDTH too.
696
697 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
698 worst case.
699 (decode_coding_emacs_mule, decode_coding_iso_2022)
700 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
701 Likewise.
702
703 2009-04-19 Jason Rumney <jasonr@gnu.org>
704
705 The following changes fix Bug#3005 for wide glyphs on each platform,
706 without reintroducing Bug#1258 for stretch glyphs.
707
708 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
709 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
710 get_phys_cursor_geometry.
711
712 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
713 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
714 using get_phys_cursor_geometry.
715
716 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
717 correctly calculated.
718
719 2009-04-19 Jan Djärv <jan.h.d@swipnet.se>
720
721 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar): Use
722 G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
723 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
724 is deprecated.
725
726 2009-04-18 Andreas Schwab <schwab@linux-m68k.org>
727
728 * font.c (font_put_frame_data): Use xfree instead of free.
729
730 2009-04-17 Juanma Barranquero <lekktu@gmail.com>
731
732 * w32font.c (Qja, Qko): Remove declarations.
733 (syms_of_w32font): Don't DEFSYM them.
734
735 2009-04-17 Chong Yidong <cyd@stupidchicken.com>
736
737 * font.c (Qja, Qko): Move definitions here from ftfont.c.
738
739 * font.h (Qja, Qko): Extern them.
740
741 * ftfont.c (Qja, Qko): Remove declarations.
742
743 * xfont.c (Qja, Qko): Remove declarations.
744
745 2009-04-17 Kenichi Handa <handa@m17n.org>
746
747 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
748 string from a vector to handle Latin-1 characters correctly.
749
750 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
751 entity even if the cache hits.
752
753 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
754
755 * search.c (boyer_moore): Use zero as marker value for a possible
756 match instead of depending on overflow behavior. (Bug#2844)
757
758 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
759 * lisp.h: Adjust prototypes.
760
761 2009-04-16 Chong Yidong <cyd@stupidchicken.com>
762
763 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
764 change (Bug#3003).
765
766 2009-04-16 Kenichi Handa <handa@m17n.org>
767
768 * xfont.c (xfont_has_char): Special handling of `ja' and `ko'
769 adstyle.
770
771 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
772 adstyle.
773
774 * ftfont.c (Qja, Qko): Don't make them static.
775 (enum ftfont_cache_for): New enum.
776 (fc_charset_table): Undo the previous change.
777 (ftfont_get_latin1_charset): Delete it.
778 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache. Set
779 FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
780 non-scarable font, try to get AVERAGE_WIDTH.
781 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
782 Change ft_face_cache from a list of a hash-table. Don't check
783 `ja' and `ko' adstyle here.
784 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
785 FTFONT_CACHE_FOR_CHARET.
786 (ftfont_get_charset): Undo the previous change.
787 (ftfont_open): Call ftfont_lookup_cache with
788 FTFONT_CACHE_FOR_FACE.
789 (ftfont_close): Likewise.
790 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
791
792 * font.c (font_sort_entites): Change the meaning of the arg
793 BEST-ONLY. Don't optimize for VEC of lenght 1.
794 (font_select_entity): Just return the value of font_sort_entites.
795
796 * xfaces.c (merge_face_vectors): Reflect font properties in
797 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
798 font_clear_prop if a face attribute doesn't change.
799
800 * charset.h (charset_ksc5601): Extern it.
801
802 * charset.c (charset_ksc5601): New variable.
803 (Fdefine_charset_internal): Set charset_ksc5601.
804 (init_charset_once): Initialize charset_ksc5601 to -1.
805
806 2009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
807
808 * fileio.c (history_delete_duplicates): Remove unused declaration.
809
810 * callint.c (history_delete_duplicates): New declaration.
811 (Fcall_interactively): Remove command history duplicates when
812 history_delete_duplicates is true.
813
814 2009-04-14 Eli Zaretskii <eliz@gnu.org>
815
816 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
817
818 2009-04-14 Kenichi Handa <handa@m17n.org>
819
820 * font.c (Ffont_info): Fix docstring. Fix the second element of
821 the returned value (bug#2949).
822
823 2009-04-14 Chong Yidong <cyd@stupidchicken.com>
824
825 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
826
827 2009-04-14 Kenichi Handa <handa@m17n.org>
828
829 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
830 encoding charset is ascii_compatible.
831
832 * charset.c (Fdefine_charset_internal): Make charset
833 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
834 code_offset is 0, and covers all ASCII characters.
835
836 2009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
837
838 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
839 (ns_string_to_pasteboard_internal):
840 * nsmenu.m (process_dialog):
841 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
842 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
843 * lisp.h (Fx_load_color_file): Declare.
844
845 2009-04-13 Kenichi Handa <handa@m17n.org>
846
847 * font.c (font_delete_unmatched): Preserve the order of list
848 elements.
849 (font_select_entity): Suppress the code to optimize for the same
850 kind of fonts.
851 (font_load_for_lface): Get a font that supports at least ASCII
852 characters.
853
854 * ftfont.c (Qja, Qko): New variables.
855 (fc_charset_table): Delete uniquifier data for iso8859-1.
856 (ftfont_get_latin1_charset): New function.
857 (get_adstyle_property): New function.
858 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
859 bitmap fonts.
860 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
861 Delete iso-8859-1 range from the charset of fonts whose adstyle is
862 `ko' or `ja'.
863 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
864 (ftfont_get_charset): For iso8859-1, call
865 ftfont_get_latin1_charset.
866 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
867 property.
868 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
869 (syms_of_ftfont): DEFSYM Qja and Qko.
870
871 2009-04-09 Kenichi Handa <handa@m17n.org>
872
873 * charset.c (map_charset_chars): For a charset of `superset'
874 method, fix calculation of code range.
875
876 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
877 from the list of extra properties.
878 (font_clear_prop): Be sure to delete `:name' font property.
879
880 2009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
881
882 * dispnew.c (redraw_overlapping_rows): Fix detection of
883 overlapping for topmost and bottommost rows.
884
885 * ftfont.c (ftfont_text_extents): Fix calculation of
886 metrics->descent.
887
888 2009-04-06 Jason Rumney <jasonr@gnu.org>
889
890 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
891
892 2009-04-06 Kenichi Handa <handa@m17n.org>
893
894 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
895
896 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
897
898 2009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
899
900 * ftfont.c (ftfont_open): Fix checking of the return value of
901 FT_Load_Char. Fix setting font->underline_thickness.
902
903 2009-04-04 Chong Yidong <cyd@stupidchicken.com>
904
905 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
906 (Fterminal_parameters, Fterminal_parameter)
907 (Fset_terminal_parameter): In doc string, refer to terminal
908 objects rather than terminal ids.
909
910 2009-04-04 Eli Zaretskii <eliz@gnu.org>
911
912 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
913 ret_lim_data. (Bug#2867)
914
915 2009-04-03 Chong Yidong <cyd@stupidchicken.com>
916
917 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
918 so they don't get wider than the window, matching 2006-01-23
919 change to the partner function in xdisp.c (Bug#2800).
920
921 2009-04-03 Kenichi Handa <handa@m17n.org>
922
923 * print.c (print_object): Make each lowest sub_char_table start a
924 new line (Bug#2866).
925
926 2009-04-02 Kenichi Handa <handa@m17n.org>
927
928 * fontset.c (fontset_font): Record no-font when a fontset
929 explicitly tells not to try another font-specs.
930
931 2009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
932
933 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
934
935 2009-03-30 Kenichi Handa <handa@m17n.org>
936
937 * fontset.c (fontset_from_font): Specify only registry in a
938 font-spec for all characters supported by that registry.
939
940 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
941 even if HAVE_M17N_FLT is not defined.
942
943 2009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
944
945 * ftfont.c: Conditionalize prototyping and use of
946 ftfont_variation_glyphs.
947
948 2009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
949
950 * frame.c (delete_frame): Work around compiler bug.
951
952 * editfns.c (general_insert_function): Adjust to insdel.c changes.
953 * insdel.c (prepare_to_modify_buffer, signal_before_change):
954 Some more EMACS_INT.
955 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
956
957 * xdisp.c (dump_glyph): Fix typo.
958
959 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
960 (adjust_markers_gap_motion, adjust_markers_for_delete)
961 (adjust_markers_for_insert, adjust_point)
962 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
963 (make_gap, copy_text, count_size_as_multibyte, insert)
964 (insert_and_inherit, insert_before_markers)
965 (insert_before_markers_and_inherit, insert_1)
966 (count_combining_before, count_combining_after, insert_1_both)
967 (insert_from_string, insert_from_string_before_markers)
968 (insert_from_string_1, insert_from_gap, insert_from_buffer)
969 (insert_from_buffer_1, adjust_after_replace)
970 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
971 (replace_range_2, del_range, del_range_1, del_range_byte)
972 (del_range_both, del_range_2, modify_region)
973 (prepare_to_modify_buffer, signal_before_change)
974 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
975 for buffer positions and sizes.
976 * lisp.h: Adjust prototypes accordingly.
977
978 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
979 (non_regular_inserted, non_regular_nbytes, read_non_regular)
980 (Finsert_file_contents): Use EMACS_INT for buffer positions.
981
982 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
983
984 2009-03-27 Jan Djärv <jan.h.d@swipnet.se>
985
986 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
987 lines and columns so we keep the same pixel height and width.
988
989 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
990 the property _NET_WM_STATE has changed.
991 (x_handle_net_wm_state): New function to update frame parameter
992 fullscreen.
993 (x_term_init): Initialize atoms for _NET_WM_STATE.
994
995 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
996
997 2009-03-27 Kevin Ryde <user42@zip.com.au>
998
999 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
1000 Gpm_GetEvent as an error that justifies closing the filedescriptor.
1001 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
1002 (Fgpm_mouse_stop): Pass that new parameter.
1003 * termhooks.h (close_gpm): Adjust prototype.
1004
1005 2009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
1006
1007 * lisp.h (Fx_focus_frame): Declare.
1008
1009 * callint.c (Fcall_interactively): For '^' just delegate the work to
1010 handle-shift-selection.
1011 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
1012
1013 2009-03-24 Chong Yidong <cyd@stupidchicken.com>
1014
1015 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
1016
1017 * data.c (Qinteractive_form): New variable.
1018 (Finteractive_form): Use it.
1019
1020 * eval.c (Fcommandp): Use Qinteractive_form.
1021
1022 2009-03-24 Jason Rumney <jasonr@gnu.org>
1023
1024 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
1025 Calculate total size precisely. Decode environment variables
1026 before substituting. (Bug#38)
1027
1028 2009-03-24 Kenichi Handa <handa@m17n.org>
1029
1030 * font.c (find_font_encoding): Return Qnil for unsupported
1031 encoding (Bug#2722).
1032
1033 2009-03-23 Jan Djärv <jan.h.d@swipnet.se>
1034
1035 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
1036 that gdpy is set.
1037
1038 2009-03-22 Alan Mackenzie <acm@muc.de>
1039
1040 * callint.c (Finteractive): Clarify the doc string - even
1041 promptless elements need \n separators.
1042
1043 2009-03-22 Jason Rumney <jasonr@gnu.org>
1044
1045 * w32term.c (syms_of_w32term): Doc fix for
1046 x-use-underline-position-properties.
1047
1048 2009-03-21 Eli Zaretskii <eliz@gnu.org>
1049
1050 * w32.c (getpwuid): Change argument type to unsigned.
1051 (struct w32_id): Change type of `rid' member to unsigned.
1052 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
1053 argument ID to unsigned. All callers changed.
1054 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
1055
1056 2009-03-20 Eli Zaretskii <eliz@gnu.org>
1057
1058 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
1059 negative, produce a float value.
1060
1061 * dired.c (make_uid, make_gid): New functions.
1062 (Ffile_attributes): Use them to avoid negative UID and GID.
1063
1064 2009-03-20 Juanma Barranquero <lekktu@gmail.com>
1065
1066 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
1067 (syms_of_keyboard) <command-hook-internal, input-method-function>:
1068 Fix typos in docstrings.
1069
1070 2009-03-19 Kenichi Handa <handa@m17n.org>
1071
1072 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
1073 changed, use font_load_for_lface to get a new font object.
1074 Call free_realized_fontset after handling ASCII font change.
1075
1076 * frame.c (x_set_font): Handle the case that ARG is a cons.
1077
1078 2009-03-19 Glenn Morris <rgm@gnu.org>
1079
1080 * fileio.c (Fsubstitute_in_file_name): Doc fix.
1081
1082 2009-03-19 Chong Yidong <cyd@stupidchicken.com>
1083
1084 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
1085
1086 2009-03-19 Kenichi Handa <handa@m17n.org>
1087
1088 * charset.c (load_charset_map_from_file): When a mapfile can't be
1089 loaded, signal an error.
1090
1091 2009-03-18 Eli Zaretskii <eliz@gnu.org>
1092
1093 * dired.c (Ffile_attributes): Make sure UID and GID are always
1094 positive, even if the value is too large for a positive EMACS_INT.
1095 Doc fix.
1096
1097 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
1098
1099 2009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1100
1101 * xmenu.c (xdialog_show): Move Fredisplay call ...
1102 (Fx_popup_dialog): ... here.
1103
1104 2009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
1105
1106 * dired.c (file_name_completion): Disable the first optimization just
1107 installed, since it is not implemented correctly.
1108
1109 2009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
1110
1111 * dired.c (file_name_completion): Check completion-ignored-extensions
1112 only if the entry can affect bestmatch.
1113 Stop the search early, as Ftry_completion already does.
1114
1115 2009-03-17 Chong Yidong <cyd@stupidchicken.com>
1116
1117 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
1118
1119 2009-03-15 Chong Yidong <cyd@stupidchicken.com>
1120
1121 * keyboard.c (parse_menu_item): Don't display remappings as menu
1122 equivalent bindings (Bug#788).
1123
1124 2009-03-15 Jason Rumney <jasonr@gnu.org>
1125
1126 * w32term.h (WM_EMACS_PAINT): New message.
1127 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
1128 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
1129 before passing to lisp thread. (Bug#950)
1130
1131 2009-03-14 David Reitter <david.reitter@gmail.com>
1132
1133 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
1134 variable as it was never reset.
1135 (ns_term_init): Remove initialization of Lisp-settable defaults
1136 and ns_expand_space.
1137 (-setPanelFromDefaultValues): Remove ns_expand_space.
1138 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
1139 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
1140 i.e. no additional spacing, similar to Carbon port.
1141
1142 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
1143 * nsfns.m (ns-popup-prefs-panel): Remove.
1144
1145 2009-03-14 Jan Djärv <jan.h.d@swipnet.se>
1146
1147 * sound.c (alsa_configure): Remove call to deprecated
1148 snd_pcm_sw_params_set_xfer_align.
1149
1150 2009-03-14 Stephen Berman <stephen.berman@gmx.net>
1151
1152 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
1153 after clicking in a detached tool bar.
1154 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
1155
1156 2009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
1157
1158 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
1159 int/Lisp_Object mixup).
1160
1161 2009-03-13 Kenichi Handa <handa@m17n.org>
1162
1163 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
1164 Handle NAME nil and t correctly. Callers changed.
1165 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
1166 (set_fontset_font): Change ARG to a vector. Handle range_list in
1167 ARG correctly.
1168 (Fset_fontset_font): Fix the case that TARGET is both a script
1169 name and charset name. Adjust the arg to set_fontset_font for
1170 the above change.
1171 (fontset_from_font): Fix previous change.
1172 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
1173 entry. If FONTSET is the default fontset, don't set the extra
1174 slot of the returning char-table.
1175
1176 2009-03-12 Juanma Barranquero <lekktu@gmail.com>
1177
1178 * nsfns.m (Fx_close_connection): Doc fix.
1179 (Fns_do_applescript): Reflow docstring.
1180 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
1181 (Fx_display_pixel_width, Fx_display_pixel_height)
1182 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
1183 Fix typos in docstrings.
1184 (Fns_set_alpha): Fix typos in error messages.
1185
1186 2009-03-12 David Reitter <david.reitter@gmail.com>
1187
1188 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
1189 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
1190 were used for such events.
1191
1192 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
1193 (toggleToolbar, performDragOperation, runHelp): Use it.
1194
1195 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
1196 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
1197
1198 2009-03-11 Kenichi Handa <handa@m17n.org>
1199
1200 * font.h (font_open_by_spec): Extern it.
1201
1202 * font.c (font_open_by_spec): New function.
1203 (font_open_by_name): Use font_open_by_spec.
1204
1205 * frame.c (x_set_font): When ARG is a font-object, don't alter the
1206 fontset of the frame.
1207
1208 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
1209 modify the default font of frames that use this fontset.
1210 (num_auto_fontsets): New variable.
1211 (fontset_from_font): Use num_auto_fontsets to decide a fontset
1212 name. Be sure to set FONTSET_ASCII to the correct font name.
1213 (update_auto_fontset_alist): New function.
1214
1215 2009-03-11 Juanma Barranquero <lekktu@gmail.com>
1216
1217 * makefile.w32-in: Update dependencies.
1218
1219 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
1220
1221 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
1222
1223 2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
1224
1225 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
1226
1227 2009-03-10 Chong Yidong <cyd@stupidchicken.com>
1228
1229 * lread.c (Feval_buffer): Doc fix.
1230
1231 2009-03-09 Kenichi Handa <handa@m17n.org>
1232
1233 * charset.c (Qfile_name_handler_alist): Extern it.
1234 (load_charset_map_from_file): Temporarily bind
1235 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
1236
1237 2009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
1238
1239 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
1240 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
1241
1242 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
1243
1244 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
1245 (x_set_window_size): Change back to calculated method of setting
1246 toolbar height under Cocoa. (Bug#2546)
1247 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
1248 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
1249
1250 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
1251
1252 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
1253 accelerator in parens under GNUstep.
1254
1255 2009-03-06 Kenichi Handa <handa@m17n.org>
1256
1257 These changes are to detect incorrect composition sequence without
1258 looking ahead the source. (Bug#2370)
1259
1260 * coding.h: Include "composite.h".
1261 (enum compisition_state): New enum.
1262 (struct compisition_status): New struct.
1263 (struct iso_2022_spec): New member cmp_status.
1264 (struct emacs_mule_spec): New struct.
1265 (struct coding_system): New members ctext_extended_segment_len and
1266 embedded_utf_8. Change the union member
1267 spec.emacs_mule_full_support to spec.emacs_mule.
1268
1269 * coding.c (CODING_ISO_CMP_STATUS): New macro.
1270 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
1271 (MAX_ANNOTATION_LENGTH): Define to 5.
1272 (ADD_COMPOSITION_DATA): New arg nbytes.
1273 (emacs_mule_char): New arg cmp_status.
1274 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
1275 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
1276 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
1277 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
1278 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
1279 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
1280 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
1281 (EMACS_MULE_COMPOSITION_END): New macro.
1282 (emacs_mule_finish_composition): New function.
1283 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
1284 (decode_coding_emacs_mule): Avoid long looking ahead while
1285 handling composition.
1286 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
1287 (ENCODE_COMPOSITION_RULE): New macro.
1288 (finish_composition): New function.
1289 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
1290 (DECODE_COMPOSITION_START): New implementation.
1291 (DECODE_COMPOSITION_END): Likewise.
1292 (STORE_COMPOSITION_RULE): New macro.
1293 (decode_coding_iso_2022): Avoid long looking ahead while handling
1294 composition, CTEXT extended segment, and embedded UTF-8.
1295 (setup_coding_system): For a coding of type iso-2022, reset
1296 CODING_ISO_EXTSEGMENT_LEN (coding) and
1297 CODING_ISO_EMBEDDED_UTF_8 (coding).
1298 (get_translation): Delete arguments last_block, from_nchars,
1299 to_nchars. Callers changed.
1300 (produce_chars): Don't modify charbuf. Adjusted for the change of
1301 get_translation.
1302 (produce_composition): Adjust for the new annotation sequence.
1303 (handle_composition_annotation): Likewise.
1304 (consume_chars): Adjust for the change of get_translation.
1305
1306 2009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
1307
1308 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
1309
1310 2009-03-05 Kenichi Handa <handa@m17n.org>
1311
1312 * font.c (font_select_entity): New function.
1313 (font_find_for_lface): Use font_select_entity to select a font.
1314
1315 * fontset.c (fontset_find_font): If a font found without
1316 restricting to the characters C doesn't support C, try to find a
1317 font with C restriction.
1318
1319 2009-03-04 Nikolaj Schumacher <me@nschum.de>
1320
1321 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
1322
1323 2009-03-04 Jason Rumney <jasonr@gnu.org>
1324
1325 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
1326 characters that have already been read. (Bug#2569)
1327
1328 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
1329 Log an error message if check_image_size failed.
1330 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
1331 (gs_load): Mention max-image-size in size error message. (Bug#2560)
1332
1333 2009-03-02 Eli Zaretskii <eliz@gnu.org>
1334
1335 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
1336 when decoding process output.
1337
1338 2009-03-01 Richard M Stallman <rms@gnu.org>
1339
1340 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
1341
1342 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
1343
1344 2009-02-28 Eli Zaretskii <eliz@gnu.org>
1345
1346 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
1347 (decode_coding_emacs_mule, decode_coding_iso_2022)
1348 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
1349 (decode_coding_raw_text, decode_coding_charset)
1350 (setup_coding_system, decode_eol, decode_coding, consume_chars):
1351 Honor inhibit-eol-conversion. (Bug #2186)
1352
1353 2009-02-28 Jason Rumney <jasonr@gnu.org>
1354
1355 * coding.c (detect_coding_charset): If not checking latin extra,
1356 fail on characters between 0x80 and 0xA0. (Bug#2354)
1357
1358 2009-02-28 Eli Zaretskii <eliz@gnu.org>
1359
1360 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
1361 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
1362
1363 2009-02-27 Glenn Morris <rgm@gnu.org>
1364
1365 * callint.c (Finteractive): Doc fix.
1366
1367 2009-02-27 Kenichi Handa <handa@m17n.org>
1368
1369 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
1370
1371 2009-02-27 Chong Yidong <cyd@stupidchicken.com>
1372
1373 * font.c (font_style_to_value): Set value for unknown symbols to
1374 100 instead of 255.
1375 (weight_table, slant_table, width_table): Treat "unspecified" as
1376 the default value.
1377
1378 2009-02-26 Juanma Barranquero <lekktu@gmail.com>
1379
1380 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
1381
1382 2009-02-25 Juanma Barranquero <lekktu@gmail.com>
1383
1384 * lread.c (Fload): Stop checking Vloads_in_progress and signal
1385 error as soon as a recursive load is detected.
1386
1387 2009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
1388
1389 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
1390 before caching.
1391
1392 2009-02-24 Kenichi Handa <handa@m17n.org>
1393
1394 * fontset.c (fontset_find_font): Fix the condition for checking
1395 unavailable font.
1396
1397 2009-02-24 Glenn Morris <rgm@gnu.org>
1398
1399 * xfaces.c (Finternal_set_font_selection_order): Remove leading
1400 whitespace that confuses documentation.
1401
1402 2009-02-23 Miles Bader <miles@gnu.org>
1403
1404 * process.c (Flist_system_processes, Fprocess_attributes)
1405 (syms_of_process): Rename `system-process-attributes' to
1406 `process-attributes'.
1407
1408 2009-02-22 Andreas Schwab <schwab@linux-m68k.org>
1409
1410 * coding.h (struct coding_system): Make safe_charsets a pointer to
1411 unsigned char.
1412 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
1413 being 255.
1414 (SAFE_CHARSET_P): Likewise.
1415 (setup_iso_safe_charsets): Properly setup safe_charsets.
1416 (Fdefine_coding_system_internal): Likewise.
1417 (setup_coding_system): Likewise. Remove unneeded casts.
1418 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
1419 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
1420 unneeded casts.
1421
1422 * insdel.c (del_range_2): Don't modify gap contents when called
1423 from decode_coding_object. (Bug#1809)
1424
1425 2009-02-21 Chong Yidong <cyd@stupidchicken.com>
1426
1427 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
1428 Qfont_object.
1429 (Ftype_of): Recognize font objects.
1430
1431 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
1432
1433 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
1434 moved to data.c.
1435
1436 2009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
1437
1438 * nsterm.m (x_make_frame_invisible): Unset async_visible,
1439 async_iconified. Based on a patch by Christian Lynbech
1440 <christian.lynbech@tieto.com>.
1441 (EmacsView-windowDidMiniaturize:): Unset async_visible.
1442
1443 2009-02-20 Glenn Morris <rgm@gnu.org>
1444
1445 * syntax.c (Fskip_chars_forward): Fix doc typo.
1446
1447 2009-02-20 Chong Yidong <cyd@stupidchicken.com>
1448
1449 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
1450
1451 2009-02-19 Chong Yidong <cyd@stupidchicken.com>
1452
1453 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
1454
1455 2009-02-19 Kenichi Handa <handa@m17n.org>
1456
1457 * coding.c (detect_coding): Preserve coding->mode.
1458 Don't overflow coding->carryover. (Bug#2370)
1459
1460 2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
1461
1462 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
1463
1464 2009-02-18 Kenichi Handa <handa@m17n.org>
1465
1466 * font.c (font_check_otf_features): Fix handling of `nil' element.
1467 (Ffont_spec): Describe :lang and :otf in the docstring.
1468
1469 2009-02-16 Andreas Schwab <schwab@suse.de>
1470
1471 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
1472 string.
1473
1474 2009-02-16 Kenichi Handa <handa@m17n.org>
1475
1476 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
1477 (Bug#1723)
1478
1479 2009-02-14 Chong Yidong <cyd@stupidchicken.com>
1480
1481 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
1482
1483 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
1484 (handle_line_prefix): Suppress wrapping of wrap prefixes.
1485
1486 2009-02-14 Eli Zaretskii <eliz@gnu.org>
1487
1488 * msdos.c (MAX_SCREEN_BUF): New macro.
1489 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
1490 Encode the entire run of glyphs sharing the same face, instead of
1491 doing that one glyph at a time (fixes a bug with displaying
1492 double-size characters).
1493
1494 2009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
1495
1496 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
1497
1498 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
1499 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
1500 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
1501
1502 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
1503 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
1504
1505 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
1506
1507 * keyboard.c (adjust_point_for_property): Allow stopping betwen two
1508 invisible areas.
1509
1510 2009-02-12 Jason Rumney <jasonr@gnu.org>
1511
1512 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
1513 (add_font_entity_to_list): Call check_face_name even when family
1514 is unspecified.
1515
1516 * w32term.c (x_display_pixel_height, x_display_pixel_width):
1517 Release DC when finished. Use NULL window to refer to desktop.
1518 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
1519
1520 * w32font.c (add_font_entity_to_list): Fix check for substituted
1521 raster fonts. (Bug#2219)
1522
1523 2009-02-12 Kenichi Handa <handa@m17n.org>
1524
1525 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
1526 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
1527 (autocmp_chars): Use fast_looking_at. Don't compose more
1528 characters than MAX_COMPOSITION_COMPONENTS.
1529 (find_automatic_composition): While looking forward and backward,
1530 check static composition. Fix where to stop looking forward.
1531 (composition_adjust_point): Fix checking of static composition.
1532 (Fcomposition_get_gstring): Pay attention to
1533 MAX_COMPOSITION_COMPONENTS.
1534
1535 * lisp.h (fast_looking_at): Extern it.
1536
1537 * search.c (fast_looking_at): New function.
1538
1539 * term.c (encode_terminal_code): Adjust for the change of
1540 <struct glyph>.u.cmp.to.
1541 (append_composite_glyph): Likewise.
1542
1543 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
1544 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
1545 composition.
1546 (append_composite_glyph): Adjust for the change of
1547 <strcut glyph>.u.cmp.to.
1548
1549 2009-02-11 Juanma Barranquero <lekktu@gmail.com>
1550
1551 * casetab.c (init_casetab_once):
1552 * coding.c (ALLOC_CONVERSION_WORK_AREA):
1553 * font.c (font_update_lface):
1554 * fontset.c (Fnew_fontset):
1555 * ftfont.c (ftfont_drive_otf):
1556 * xfont.c (xfont_open):
1557 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
1558
1559 2009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
1560
1561 * fileio.c (Fwrite_region): !NILP -> CONSP.
1562
1563 2009-02-10 Andreas Schwab <schwab@suse.de>
1564
1565 * process.c (send_process): Properly relocate pointer into data
1566 when using encoded data. (Bug#2272)
1567
1568 2009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
1569
1570 * coding.c (detect_coding_charset): Fix previous change.
1571
1572 2009-02-08 Jason Rumney <jasonr@gnu.org>
1573
1574 * w32fns.c (w32_hide_hourglass): Handle case where frame
1575 disappeared while hourglass was displayed. (Bug #2193)
1576
1577 2009-02-07 Andreas Schwab <schwab@suse.de>
1578
1579 * unexelf.c (unexec): Fix error message.
1580
1581 2009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
1582
1583 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
1584 when modal window is active. (Bug #2152)
1585 (applicationShouldTerminate:): Remove now-unneeded while loop
1586 around NSRunAlertPanel.
1587
1588 * nsmenu.m (popupSession): New file-global variable.
1589 (pop_down_menu): End the popupSession before closing dialog.
1590 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
1591 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
1592 don't query NSApp for events (just sleep instead).
1593
1594 2009-02-07 Eli Zaretskii <eliz@gnu.org>
1595
1596 * coding.c (syms_of_coding) <translation-table-for-input>:
1597 Modify doc string to discourage use for character code unification.
1598
1599 2009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1600
1601 * atimer.c (run_timers): Update pending_atimers.
1602
1603 2009-02-06 Chong Yidong <cyd@stupidchicken.com>
1604
1605 * image.c (svg_load_image): Fix last change.
1606
1607 * xfns.c (Fx_create_frame): Signal an error if no font is
1608 found (Bug#2147).
1609
1610 2009-02-05 Juanma Barranquero <lekktu@gmail.com>
1611
1612 * character.c (syms_of_character) <script-representative-chars>:
1613 Fix typo in docstring.
1614
1615 2009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
1616
1617 * nsmenu.m (pop_down_menu): New function.
1618 (ns_popup_dialog): Call it on unwind.
1619 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
1620 call timer_check() (Bug#2154).
1621 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
1622 handling_signal is set.
1623 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
1624
1625 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G
1626
1627 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
1628
1629 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
1630
1631 * keyboard.c (poll_for_input_1, handle_async_input):
1632 Set handling_signal under HAVE_NS.
1633
1634 2009-02-04 Glenn Morris <rgm@gnu.org>
1635
1636 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
1637
1638 2009-02-04 Kenichi Handa <handa@m17n.org>
1639
1640 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
1641
1642 * charset.c (Fchar_charset): New optional arg restriction.
1643
1644 * coding.h (coding_system_charset_list): Extern it.
1645
1646 * coding.c (coding_system_charset_list): New function.
1647
1648 * composite.c: Include coding.h and termhooks.h.
1649 (composition_gstring_p): Fix for the terminal case.
1650 (composition_gstring_width): Likewise.
1651 (fill_gstring_body): Likewise.
1652 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
1653 the frame.
1654 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
1655 is within a composition.
1656 (Fcomposition_get_gstring): Fix the terminal case.
1657
1658 * term.c (encode_terminal_code): Fix handling of composition.
1659 (produce_composite_glyph): For static composition, get pixel_width
1660 from struct composition.
1661
1662 2009-02-02 Andreas Schwab <schwab@suse.de>
1663
1664 * unexelf.c (unexec): Handle unaligned bss offset.
1665
1666 2009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
1667
1668 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
1669 XT,w32read_socket changes to ns_read_socket.
1670
1671 * keyboard.c (handle_interrupt): Don't call
1672 quit_throw_to_read_char() under NS.
1673
1674 * blockinput.h: Remove NS-specific code.
1675
1676 2009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
1677
1678 * dispnew.c (window_change_signal): Don't try to get the size of a
1679 suspended tty frame.
1680 * term.c (Fresume_tty): Resize if the size has changed while the
1681 tty was suspended.
1682
1683 * alloc.c (mark_stack): Properly conditionalize previous change.
1684
1685 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
1686
1687 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
1688 * w32term.c (w32_read_socket) [SYNC_INPUT]:
1689 Remove; this code is not used on Windows.
1690
1691 2009-01-30 Eli Zaretskii <eliz@gnu.org>
1692
1693 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
1694 EOLs that also has stray ^M characters.
1695
1696 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
1697
1698 * atimer.c (run_timers, alarm_signal_handler):
1699 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
1700 * w32inevt.c (w32_console_read_socket):
1701 * w32term.c (w32_read_socket):
1702 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
1703
1704 2009-01-30 Chong Yidong <cyd@stupidchicken.com>
1705
1706 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
1707 Initialize it as a relative filename pattern.
1708 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
1709 (Fcall_process_region): Simplify temp file creation using
1710 temporary-file-directory.
1711
1712 2009-01-29 Eli Zaretskii <eliz@gnu.org>
1713
1714 * msdos.c: Rename pending_signals to msdos_pending_signals.
1715 (sig_suspender, sigprocmask): Adjust.
1716
1717 2009-01-29 Chong Yidong <cyd@stupidchicken.com>
1718
1719 * keyboard.c (pending_signals): New var.
1720 (poll_for_input, input_available_signal, init_keyboard): Set it.
1721 (process_pending_signals): New function.
1722
1723 * lisp.h (QUIT): Check pending_signals instead of
1724 interrupt_input_pending. Use process_pending_signals.
1725
1726 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
1727
1728 * process.c (wait_reading_process_output): Use process_pending_signals.
1729
1730 * sysdep.c (emacs_write): Use process_pending_signals.
1731
1732 * xterm.c (XTread_socket): Update pending_signals.
1733
1734 * w32term.c (w32_read_socket): Update pending_signals.
1735
1736 * w32inevt.c (w32_console_read_socket): Update pending_signals.
1737
1738 2009-01-29 Kenichi Handa <handa@m17n.org>
1739
1740 * xftfont.c (xftfont_has_char): New function.
1741 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
1742
1743 2009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
1744
1745 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
1746 under GNUstep.
1747 (ns_query_color): New declaration.
1748
1749 * nsterm.m (ns_confirm_quit): New variable.
1750 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
1751 (EmacsApp-applicationShouldTerminate:): Use it.
1752 (EmacsPrefsController): Let user set it.
1753 (ns_query_color): New function.
1754 (ns_defined_color): Use it.
1755 (ns_initialize): Drop.
1756 (ns_term_init): Add two lines from ns_initialize(), and set
1757 input_interrupt_mode to nil.
1758
1759 * image.c (svg_load_image): Don't right-shift background RGB when
1760 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
1761
1762 2009-01-28 Kenichi Handa <handa@m17n.org>
1763
1764 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
1765 (fontset_get_font_group): Remember that no font-group is specified
1766 for C.
1767
1768 2009-01-27 Chong Yidong <cyd@stupidchicken.com>
1769
1770 * fns.c (concat): Check for string overflow (bug#1787).
1771
1772 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
1773 Quadruple undo limits (bug#1501).
1774
1775 2009-01-27 Kenichi Handa <handa@m17n.org>
1776
1777 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
1778 directly use GT_Get_Char_index.
1779
1780 * xftfont.c (struct xftfont_info): New member `index'.
1781
1782 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
1783 (Ffontset_font): Adjust for the change of fontset entry.
1784
1785 2009-01-26 Kenichi Handa <handa@m17n.org>
1786
1787 * fontset.c (fontset_find_font): Fix handling of non-cons return
1788 value of fontset_get_font_group.
1789 (fontset_font): Revert last change.
1790
1791 2009-01-26 Jason Rumney <jasonr@gnu.org>
1792
1793 * w32font.c (w32font_list_internal): Return quickly if registry is
1794 unknown. Simplify final return.
1795 (add_font_entity_to_list): Break complex logic down into more
1796 manageable chunks. Move unknown registry check to
1797 w32font_list_internal.
1798
1799 2009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
1800
1801 Changes to remove Feval calls from GUI under NS.
1802
1803 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
1804 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
1805 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
1806
1807 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
1808 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
1809 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
1810 instead of NON_ASCII_KEYSTROKE_EVENT.
1811 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
1812 (EmacsApp-applicationShouldTerminate:): Query user.
1813 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
1814 instead of Feval.
1815
1816 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
1817
1818 * keyboard.c (kbd_buffer_get_event): Check for it.
1819 (keys_of_keyboard): Define lispy keys for
1820 ns-put/unput-working-text.
1821
1822 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
1823 versions.
1824 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
1825
1826 2009-01-25 Chong Yidong <cyd@stupidchicken.com>
1827
1828 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
1829 setting current_buffer directly. (Bug#2044)
1830
1831 2009-01-24 Chong Yidong <cyd@stupidchicken.com>
1832
1833 * fontset.c (fontset_font): If we know there is no font, don't do
1834 any work. (Bug#1952, bug#1990).
1835
1836 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
1837
1838 2009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
1839
1840 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
1841 (ns_no_defaults): New declaration.
1842 (main): Use it.
1843
1844 * nsterm.h (ns_no_defaults): New declaration.
1845
1846 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
1847
1848 * nsterm.m (ns_no_defaults): New variable.
1849 (ns_initialize): Don't read defaults when ns_no_defaults.
1850 (EmacsView-readSelectionFromPasteboard:)
1851 (writeSelectionToPasteboard:types:): New stubbed-out methods for
1852 NSServicesRequests protocol. (Bug#1435)
1853 (ns_dumpglyphs_stretch): New function.
1854 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
1855 of 2008-11-15 to other terms. (Bug#615)
1856
1857 * nsimage.m (setPixmapData:): Set to ignore image DPI.
1858
1859 2009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
1860
1861 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
1862 call for Sparc64.
1863
1864 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
1865
1866 * nsfns.m:
1867 * nsgui.h:
1868 * nsmenu.m:
1869 * nsselect.m:
1870 * nsterm.h:
1871 * nsterm.m: Remove '23' comments that indicated code added during
1872 update from emacs-20 -> emacs-23.
1873
1874 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
1875
1876 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
1877 ns_alternate_modifier. (Bug#1217)
1878
1879 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
1880 Display all shortcuts, including those w/o super modifier.
1881
1882 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
1883
1884 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
1885
1886 * fileio.c (Vwrite_region_post_annotation_function)
1887 (Vwrite_region_annotation_buffers): New vars.
1888 (build_annotations_unwind): Just reset
1889 Vwrite_region_annotation_buffers.
1890 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
1891 Call write-region-post-annotation-function.
1892 (build_annotations): Add to Vwrite_region_annotation_buffers if
1893 buffer changes.
1894
1895 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
1896
1897 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
1898 Tiger.
1899 * nsfns.m (ns_do_applescript):
1900 Conditionalize typeUTF16ExternalRepresentation on Tiger.
1901
1902 2009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
1903
1904 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
1905
1906 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
1907
1908 * nsmenu.m (NSMENUPROFILE): Change #if style.
1909
1910 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
1911
1912 * nsterm.m (x_set_frame_alpha): Add prototype.
1913 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
1914 handle Ctrl-tab. (Bug#1841)
1915 (ns_get_color): Use unsigned long long for scanned hex string value.
1916 (ns_term_shutdown): Abort on non SIGTERM signals.
1917 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
1918 (EmacsPrefsController-setPanelFromDefaultValues): New function.
1919 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
1920 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
1921 (ns_defined_color): Fix settings of the XColor variable fields:
1922 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
1923
1924 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
1925 DPI. (Bug#1316)
1926 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
1927 values in onTiger section.
1928
1929 2009-01-19 Chong Yidong <cyd@stupidchicken.com>
1930
1931 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
1932 Check return value of font_spec_from_name.
1933 (Fx_list_fonts): Doc fix. (Bug#1951)
1934
1935 * font.c (font_spec_from_name): Return Qnil if font name could not
1936 be parsed.
1937 (font_parse_name): Treat a `?' character as part of an XLFD.
1938
1939 * fns.c (Fsubstring): Doc fix.
1940
1941 2009-01-19 Kenichi Handa <handa@m17n.org>
1942
1943 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1944 (ftfont_list): Likewise.
1945
1946 2009-01-18 Juanma Barranquero <lekktu@gmail.com>
1947
1948 * dbusbind.c (Fdbus_register_signal):
1949 * process.c (conv_sockaddr_to_lisp):
1950 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
1951
1952 * callproc.c (Fgetenv_internal): Doc fix.
1953
1954 2009-01-16 Chong Yidong <cyd@stupidchicken.com>
1955
1956 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
1957 it is not even used.
1958
1959 2009-01-16 Glenn Morris <rgm@gnu.org>
1960
1961 * font.c (Ffont_variation_glyphs): Silence compiler.
1962
1963 2009-01-15 Juanma Barranquero <lekktu@gmail.com>
1964
1965 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
1966 Reported by David Robinow <drobinow@gmail.com>.
1967
1968 2009-01-15 Kenichi Handa <handa@m17n.org>
1969
1970 * coding.c (detect_coding_system): Fix handling of null_byte_found.
1971
1972 2009-01-14 Jason Rumney <jasonr@gnu.org>
1973
1974 * frame.c (x_set_font): Always store a font to the font parameter,
1975 never a fontset. (Bug#1562)
1976
1977 2009-01-14 Kenichi Handa <handa@m17n.org>
1978
1979 * coding.c (TWO_MORE_BYTES): New macro.
1980 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
1981
1982 2009-01-13 Chong Yidong <cyd@stupidchicken.com>
1983
1984 * font.c (font_clear_prop): If clearing the family, clear the font
1985 width index too.
1986
1987 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
1988
1989 2009-01-12 Juanma Barranquero <lekktu@gmail.com>
1990
1991 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
1992 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
1993 functions, use sizeof.
1994
1995 2009-01-12 Martin Rudalics <rudalics@gmx.at>
1996
1997 * keyboard.c (read_char): Fix case where last_nonmenu_event
1998 returned a bad value with submenus. (Bug#447)
1999
2000 2009-01-12 Chong Yidong <cyd@stupidchicken.com>
2001
2002 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
2003 family, clear the font width index too.
2004
2005 2009-01-11 Jason Rumney <jasonr@gnu.org>
2006
2007 * keyboard.c (cmd_error_internal): Exit when errors occur before
2008 frame creation and not in daemon mode. (Bug#1836)
2009
2010 2009-01-10 Chong Yidong <cyd@stupidchicken.com>
2011
2012 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
2013 of a display vector, backtrack.
2014 (try_window_reusing_current_matrix): Check glyph type before
2015 referencing charpos member.
2016
2017 2009-01-10 Eli Zaretskii <eliz@gnu.org>
2018
2019 Fix Bug #876:
2020
2021 * coding.c (inhibit_null_byte_detection): New variable.
2022 (detect_coding, detect_coding_system): Don't pay attention to null
2023 bytes if inhibit_null_byte_detection is non-zero.
2024 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
2025 <inhibit-iso-escape-detection>: Doc fix.
2026
2027 2009-01-09 Jason Rumney <jasonr@gnu.org>
2028
2029 * w32font.c (add_font_entity_to_list): Don't report unknown
2030 Windows charset as any unrecognized registry. (Bug#1548)
2031 Only report Unicode Plane 2 fonts as unicode-sip.
2032
2033 2009-01-09 Chong Yidong <cyd@stupidchicken.com>
2034
2035 * xfaces.c (Fx_font_family_list): Delete function.
2036 Move compatibility version to faces.el.
2037
2038 * font.c (Ffont_family_list): Return a list of strings, not symbols.
2039
2040 2009-01-09 Martin Rudalics <rudalics@gmx.at>
2041
2042 * frame.c (x_set_frame_parameters): Remember requested value for
2043 fullscreen before it's reset by the parameter handler.
2044
2045 2009-01-09 Glenn Morris <rgm@gnu.org>
2046
2047 * keyboard.c (last_command_char): For clarity, rename to...
2048 (last_command_event): ... and update all users.
2049 (last_input_char): For clarity, rename to...
2050 (last_input_event): ... and update all users.
2051 (last-command-char, last-input-char): Move to subr.el as aliases.
2052 * cmds.c, commands.h: Update for last_command_char rename.
2053
2054 2009-01-08 Chong Yidong <cyd@stupidchicken.com>
2055
2056 * font.c (font_open_for_lface): Handle unspecified height attribute.
2057
2058 2009-01-08 Jason Rumney <jasonr@gnu.org>
2059
2060 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
2061 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
2062 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
2063 Don't declare.
2064 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
2065 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
2066
2067 2009-01-07 Kenichi Handa <handa@m17n.org>
2068
2069 * fileio.c (Finsert_file_contents): In the case of replace,
2070 remember the coding system used for decoding in
2071 coding_system (Bug#1039).
2072
2073 * coding.c (decode_coding_utf_8): Check byte_after_cr before
2074 breaking the loop. (Bug#870)
2075 (decode_coding_utf_16, decode_coding_emacs_mule)
2076 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
2077 (decode_coding_charset): Likewise.
2078
2079 2009-01-05 Martin Rudalics <rudalics@gmx.at>
2080
2081 * frame.c (x_set_frame_parameters): Make sure height (width) get
2082 applied when fullwidth (fullheight) is set. (Bug#1522)
2083
2084 2009-01-04 Juanma Barranquero <lekktu@gmail.com>
2085
2086 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
2087 (utc_base): Declare as ULONGLONG, not long double.
2088 (convert_time_raw): Delete.
2089 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
2090 (initialize_utc_base): New function.
2091 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
2092 (convert_from_time_t): Use initialize_utc_base; compute result with
2093 64-bit arithmetic.
2094 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
2095
2096 2009-01-03 Eli Zaretskii <eliz@gnu.org>
2097
2098 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
2099 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
2100 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
2101 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
2102 [!subprocesses]: Define.
2103 (syms_of_process) [!subprocesses]: Intern and staticpro them.
2104 (Flist_system_processes, Fsystem_process_attributes)
2105 [!subprocesses]: Call list_system_processes and
2106 system_process_attributes instead of returning Qnil.
2107
2108 * dosfns.c (system_process_attributes, list_system_processes):
2109 New functions.
2110
2111 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
2112
2113 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
2114 Don't use the default (no-op) implementation.
2115
2116 2009-01-03 Jason Rumney <jasonr@gnu.org>
2117
2118 * keyboard.c (parse_modifiers_uncached): Wheel events are
2119 clicks (bug#687).
2120
2121 * w32term.c (x_query_colors, x_query_color): New functions.
2122
2123 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
2124 (svg_load_image): Cast returned pointers from dynamically loaded
2125 functions. Eliminate W32 specific code.
2126
2127 2009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
2128
2129 * nsfns.m (x_set_foreground_color, x_set_background_color)
2130 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
2131 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
2132 x_ prefix instead of ns_. Update references.
2133 (syms_of_nsfns): Add a FIXME comment.
2134
2135 * nsterm.m (x_set_cursor_type): New prototype.
2136 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
2137
2138 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
2139 for Solaris instead of incorrectly providing Qutime and Qcutime.
2140
2141 2009-01-02 Eli Zaretskii <eliz@gnu.org>
2142
2143 * w32.c (process_times): Compute sum of utime and stime.
2144 (system_process_attributes): Add Qtime to the alist.
2145
2146 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
2147 and add them to the alist.
2148
2149 * process.c (top level) <Qtime, Qctime>: New variables.
2150 (syms_of_process): staticpro them.
2151 (Fsystem_process_attributes): Add their documentation to the doc
2152 string.
2153
2154 * process.h: Declare Qtime and Qctime.
2155
2156 2009-01-02 Jason Rumney <jasonr@gnu.org>
2157
2158 * image.c (Qgobject): New symbol.
2159 (syms_of_image): Initialize it.
2160 (init_svg_functions): Load some functions from gobject library.
2161
2162 2009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
2163
2164 * frame.c (make_terminal_frame): Remove redundant code and useless
2165 block.
2166
2167 2009-01-01 Andreas Schwab <schwab@suse.de>
2168
2169 * process.c (conv_sockaddr_to_lisp): Add workaround for
2170 getsockname bug on BSD.
2171
2172 2009-01-01 Chong Yidong <cyd@stupidchicken.com>
2173
2174 * xfns.c (x_create_tip_frame): Set border width of the X window.
2175
2176 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
2177
2178 2009-01-01 Jason Rumney <jasonr@gnu.org>
2179
2180 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
2181 Don't block input, as per earlier xterm.c changes.
2182
2183 2008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
2184
2185 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
2186 (ns_appkit_version_int): New function.
2187 (x-server-version): Use ns_appkit_version_int and follow 21+
2188 convention of returning 3 integers.
2189
2190 2008-12-30 Kenichi Handa <handa@m17n.org>
2191
2192 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
2193 (CHAR_SURROGATE_PAIR_P): New macro.
2194
2195 * font.h (struct font_driver): New member get_variation_glyphs.
2196
2197 * font.c (font_range): Don't require a font for a variation selector.
2198 (Ffont_variation_glyphs): New function.
2199 (syms_of_font): Defsubr it.
2200
2201 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
2202 ftfont_variation_glyphs.
2203 (setup_otf_gstring): New function.
2204 (ftfont_drive_otf): Use it.
2205 (ftfont_shape_by_flt): Handle variation selector.
2206 (ftfont_variation_glyphs): New function.
2207
2208 2008-12-30 Martin Rudalics <rudalics@gmx.at>
2209
2210 * frame.c (Vemacs_iconified): Remove.
2211
2212 2008-12-30 Jason Rumney <jasonr@gnu.org>
2213
2214 * frame.c (store_frame_param, x_get_arg): Enable newer code on
2215 WINDOWSNT too, as related changes have already been synced. (Bug#117)
2216
2217 2008-12-30 Chong Yidong <cyd@stupidchicken.com>
2218
2219 * indent.c (Fvertical_motion): Don't advance iterator if we have
2220 reseated to the desired position.
2221
2222 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
2223 checking for pos match.
2224
2225 2008-12-30 Kenichi Handa <handa@m17n.org>
2226
2227 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
2228 just get the low 8-bit of the code.
2229
2230 * font.c (font_intern_prop): Validate str as multibyte.
2231
2232 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
2233
2234 * dispextern.h (struct face): Move lface and hash from the middle
2235 of bitfields.
2236
2237 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
2238
2239 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
2240
2241 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
2242 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
2243 instead of intervals.h.
2244
2245 2008-12-26 Andreas Schwab <schwab@suse.de>
2246
2247 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
2248 cons.
2249
2250 2008-12-26 Martin Rudalics <rudalics@gmx.at>
2251
2252 * textprop.c (Qminibuffer_prompt): New variable.
2253 (syms_of_textprop): Initialize it.
2254 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
2255 in minibuffer-prompt face. (Bug#1662)
2256
2257 2008-12-25 Jason Rumney <jasonr@gnu.org>
2258
2259 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
2260
2261 2008-12-24 Jason Rumney <jasonr@gnu.org>
2262
2263 * ralloc.c (r_alloc_reset_variable): New function.
2264
2265 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
2266 record of what points where. (Bug#716)
2267
2268 2008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
2269
2270 * minibuf.c (read_minibuf): Follow the non-interactive case when
2271 running as a daemon, before detaching.
2272
2273 2008-12-22 Andreas Schwab <schwab@suse.de>
2274
2275 * buffer.c (init_buffer): Use realloc instead of xrealloc.
2276 * gtkutil.c (free_widget_value): Use xfree instead of free.
2277
2278 2008-12-22 Martin Rudalics <rudalics@gmx.at>
2279
2280 * frame.c (delete_frame): New function derived from
2281 Fdelete_frame to handle Qnoelisp value for FORCE argument.
2282 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
2283 (Fdelete_frame): Call delete_frame. Remove line from doc-string
2284 saying that FORCE non-nil doesn't run `delete-frame-functions'.
2285 * frame.h: Extern delete_frame.
2286 * window.c (window_loop):
2287 * terminal.c (delete_terminal):
2288 * xterm.c (x_connection_closed):
2289 * xfns.c (Fx_hide_tip):
2290 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
2291
2292 2008-12-21 Jason Rumney <jasonr@gnu.org>
2293
2294 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
2295 when character maps to .notdef character.
2296
2297 2008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
2298
2299 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
2300
2301 2008-12-20 Jason Rumney <jasonr@gnu.org>
2302
2303 * frame.c (Fmake_terminal_frame): Raise an error when called from
2304 a graphical frame on Windows. (Bug#1325)
2305
2306 2008-12-20 Jan Djärv <jan.h.d@swipnet.se>
2307
2308 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
2309
2310 2008-12-20 Chong Yidong <cyd@stupidchicken.com>
2311
2312 * minibuf.c (Fread_buffer): Doc fix.
2313
2314 2008-12-20 Jason Rumney <jasonr@gnu.org>
2315
2316 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
2317 server name in UNC paths. (Bug#719)
2318
2319 * coding.c (decode_coding): Clear chars_at_source flag when using
2320 charbuf. (Bug#1035)
2321
2322 2008-12-19 Daniel Engeler <engeler@gmail.com>
2323
2324 * sysdep.c (serial_configure): Fix typo.
2325
2326 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
2327
2328 * sysdep.c: Include alloca.h.
2329 (system_process_attributes): Add implementation for Solaris.
2330
2331 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
2332
2333 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
2334
2335 Reorganize implementation of Flist_system_processes and
2336 Fsystem_process_attributes. No functional changes.
2337 * process.c: Don't #include pwd.h, grp.h and limits.h.
2338 (Flist_system_processes): Just call list_system_processes.
2339 (Fsystem_process_attributes): Just call system_process_attributes.
2340 (procfs_list_system_processes, time_from_jiffies)
2341 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
2342 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
2343
2344 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
2345 (list_system_processes): Rename from
2346 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
2347 Provide a do nothing implementation.
2348 (system_process_attributes): Rename from
2349 procfs_list_system_processes.
2350 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
2351 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
2352
2353 * w32.c (list_system_processes): Rename from
2354 w32_list_system_processes.
2355 (system_process_attributes): Rename from
2356 w32_system_process_attributes.
2357
2358 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
2359
2360 * process.h (w32_list_system_processes)
2361 (w32_system_process_attributes): Remove.
2362 (list_system_processes, system_process_attributes): New
2363 prototypes.
2364
2365 2008-12-19 Kenichi Handa <handa@m17n.org>
2366
2367 * xfont.c (xfont_decode_coding_xlfd): New function.
2368 (xfont_encode_coding_xlfd): New function.
2369 (xfont_list_pattern): Decode XLFD by iso-8859-1.
2370 (xfont_list): Decode and encode XLFD by iso-8859-1.
2371 (xfont_match): Likewise.
2372 (xfont_list_family): Likewise.
2373 (xfont_open): Likewise.
2374
2375 * ftfont.c (ftfont_open): Generate a multibyte string if given
2376 names are utf-8.
2377
2378 * xftfont.c (xftfont_open): Generate a multibyte string if given
2379 names are utf-8.
2380
2381 2008-12-18 Jan Djärv <jan.h.d@swipnet.se>
2382
2383 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
2384 changed.
2385 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
2386 clicked on a detached tool bar button.
2387
2388 2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
2389
2390 * emacs.c (main): Print and error and exit when no data is read
2391 from the pipe.
2392
2393 2008-12-17 Jason Rumney <jasonr@gnu.org>
2394
2395 * w32font.c (w32font_has_char): Always return -1.
2396
2397 2008-12-16 Kenichi Handa <handa@m17n.org>
2398
2399 * font.c (font_open_entity): Fix previous change.
2400
2401 2008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
2402
2403 * process.c: Include <limits.h>.
2404
2405 2008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
2406
2407 * font.c (font_update_drivers): Fix mistake in reconstructing the
2408 driver list.
2409
2410 2008-12-16 Chong Yidong <cyd@stupidchicken.com>
2411
2412 * font.c (font_clear_cache): Fix format of font cache data.
2413
2414 2008-12-15 Chong Yidong <cyd@stupidchicken.com>
2415
2416 * xftfont.c (xftfont_open): Free Xft font pattern if
2417 XftFontOpenPattern fails.
2418
2419 * xterm.c (x_free_frame_resources): Remove extraneous call to
2420 free_frame_faces.
2421
2422 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
2423
2424 * xterm.c (x_delete_display): Move xim_close_dpy call to
2425 x_delete_terminal.
2426 (x_delete_terminal): Call xim_close_dpy.
2427
2428 2008-12-13 Jason Rumney <jasonr@gnu.org>
2429
2430 * w32font.c (intern_font_name): New function.
2431 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
2432 (w32font_open_internal, Fx_select_font): Decode font name.
2433 (fill_in_logfont, list_all_matching_fonts): Encode font name.
2434
2435 * w32font.h (intern_font_name): Declare new function.
2436
2437 * w32uniscribe.c (add_opentype_font_name_to_list):
2438 Use intern_font_name.
2439
2440 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
2441
2442 * frame.c (Fdelete_frame): Call free_font_driver_list.
2443
2444 * font.c (free_font_driver_list): Implement missing function.
2445
2446 * w32term.c (w32_term_init): Don't initialize the image cache
2447 here; it will be done in init_frame_faces.
2448
2449 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
2450 (struct x_display_info): Remove unused member null_pixel. New
2451 member xim_callback_data.
2452
2453 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
2454 (xim_initialize): Save pointer to callback function data.
2455 (xim_close_dpy): Free callback function data. Call XCloseIM,
2456 reverting 2008-11-04 change by David Smith.
2457 (x_term_init): Don't initialize the image cache here; it will be
2458 done in init_frame_faces. Remove ancient "null_pixel" cruft.
2459 (x_delete_display): Free x_dnd_atoms member.
2460
2461 2008-12-13 Kenichi Handa <handa@m17n.org>
2462
2463 * font.c (font_rescale_ratio): Moved from xfaces.c.
2464 Argument type changed. Handle a font-spec too.
2465 (font_score): Check Vface_font_rescale_alist.
2466 (font_open_entity): Likewise. (Bug#1547)
2467
2468 * xfaces.c (font_rescale_ratio): Moved to font.c.
2469
2470 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
2471
2472 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
2473
2474 2008-12-12 Jason Rumney <jasonr@gnu.org>
2475
2476 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
2477 Vwindow_system_version to the real w32 major version.
2478
2479 2008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
2480
2481 * term.c (init_tty): Move setting the terminal name before the
2482 potential user: maybe_fatal.
2483
2484 2008-12-11 Chong Yidong <cyd@stupidchicken.com>
2485
2486 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
2487 all callers changed. Call free_frame_faces to free the face cache.
2488
2489 2008-12-11 Jason Rumney <jasonr@gnu.org>
2490
2491 * w32font.c (fill_in_logfont): Don't assume symbol script means
2492 SYMBOL_CHARSET. (Bug#547)
2493
2494 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
2495 size for surrogates. (Bug#1096, bug#872)
2496
2497 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
2498
2499 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
2500
2501 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
2502
2503 * process.c (Fsystem_process_attributes, syms_of_process):
2504 Fix typo in name of Ssystem_process_attributes.
2505 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
2506
2507 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
2508
2509 * syntax.c (Fmodify_syntax_entry): Doc fix.
2510
2511 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
2512
2513 * font.c (Ffont_spec): Move usage to end of docstring.
2514
2515 2008-12-10 Jason Rumney <jasonr@gnu.org>
2516
2517 * w32font.c (Qcham): New symbol.
2518 (font_supported_scripts): Add cham, and comments for other new
2519 scripts in bitfield from OpenType spec.
2520 (add_font_entity_to_list): Limit unicode-sip fonts to those that
2521 contain characters beyond the bmp.
2522
2523 2008-12-10 Kenichi Handa <handa@m17n.org>
2524
2525 * ftfont.c (fc_charset_table): Add "unicode-sip".
2526 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
2527 Qunicode_sip.
2528
2529 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
2530
2531 * coding.c (QCdefault_char): Rename from QCdefalut_char.
2532 (Fcoding_system_put): Use QCdefault_char.
2533 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
2534
2535 2008-12-09 Chong Yidong <cyd@stupidchicken.com>
2536
2537 * xftfont.c (syms_of_xftfont): Fix typo.
2538
2539 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
2540
2541 2008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
2542
2543 * emacs.c (main): Close daemon_pipe on exec.
2544
2545 2008-12-08 Chong Yidong <cyd@stupidchicken.com>
2546
2547 * termchar.h (struct tty): New members termcap_term_buffer and
2548 termcap_strings_buffer.
2549
2550 * term.c (encode_terminal_code): Free any previous memory blocks
2551 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
2552 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
2553 All callers changed.
2554 (init_tty): Store termcap data and string buffers in new struct
2555 tty members termcap_term_buffer and termcap_strings_buffer.
2556 (delete_tty): Free them.
2557 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
2558
2559 2008-12-07 Seiji Zenitani <zenitani@mac.com>
2560
2561 * nsfns.m (ns_set_background_color): Remove code duplication.
2562 It was a substitute for face-transparency on OS X 10.3.
2563
2564 2008-12-06 Chong Yidong <cyd@stupidchicken.com>
2565
2566 * coding.c (make_conversion_work_buffer): Disable buffer
2567 modification hooks in the work buffer.
2568
2569 2008-12-05 Eli Zaretskii <eliz@gnu.org>
2570
2571 * process.c (procfs_system_process_attributes): If `nread' has a
2572 negative value, assign zero to it.
2573
2574 2008-12-05 Chong Yidong <cyd@stupidchicken.com>
2575
2576 * eval.c (Vdebug_on_error): Doc fix.
2577
2578 2008-12-05 Kenichi Handa <handa@m17n.org>
2579
2580 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
2581 second character is a combining character.
2582
2583 2008-12-05 Eli Zaretskii <eliz@gnu.org>
2584
2585 * process.c (procfs_system_process_attributes): Don't use cmd,
2586 cmdsize, and q without initializing them first.
2587
2588 2008-12-04 Jason Rumney <jasonr@gnu.org>
2589
2590 * w32font.c (w32font_draw): Initialize orig_clip before getting
2591 it, and delete it when finished.
2592
2593 2008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
2594
2595 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
2596 case when running as a daemon before detaching.
2597
2598 2008-12-03 Juanma Barranquero <lekktu@gmail.com>
2599
2600 * w32.c (init_environment): Don't unload library shell32.dll.
2601
2602 2008-12-03 Kenichi Handa <handa@m17n.org>
2603
2604 * font.c (font_at): Set `multibyte' at first.
2605
2606 * coding.c (decode_coding_charset): Check type of an element of
2607 vector VALIDS.
2608 (encode_coding_emacs_mule): Be sure to set `code'.
2609
2610 * fontset.c (face_for_char): Handle invalid charset property correctly.
2611 (font_for_char): Likewise.
2612
2613 2008-12-03 Chong Yidong <cyd@stupidchicken.com>
2614
2615 * font.c (Fopen_font): Compute pixel size correctly.
2616 (font_update_lface): Handle fonts with corrupted size specs,
2617 i.e. non-int and non-float.
2618
2619 * ftfont.c (ftfont_match): Initialize entity variable.
2620 (ftfont_resolve_generic_family): Avoid using uninitialized var.
2621 (ftfont_list_family): Initialize list var earlier.
2622
2623 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
2624
2625 * xterm.c (x_draw_glyph_string): Fall back on
2626 underline_minimum_offset for underline position.
2627
2628 2008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
2629
2630 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
2631
2632 * character.c (c_string_width): Specify the type for LEN.
2633
2634 2008-12-03 Kenichi Handa <handa@m17n.org>
2635
2636 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
2637 (decode_coding_utf_8): Likewise.
2638 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
2639 (produce_chars): Initialize consumed_chars to 0.
2640
2641 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
2642
2643 * keyboard.c (make_lispy_position): Only use PT if the selected
2644 window is current.
2645
2646 2008-12-02 Andreas Schwab <schwab@suse.de>
2647
2648 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
2649
2650 * doprnt.c (doprnt1): Fix size of charbuf.
2651
2652 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
2653
2654 * keyboard.c (timer_check): Revert last change.
2655
2656 2008-12-02 Juanma Barranquero <lekktu@gmail.com>
2657
2658 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
2659
2660 2008-12-01 Juanma Barranquero <lekktu@gmail.com>
2661
2662 * makefile.w32-in: Update dependencies.
2663 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
2664
2665 2008-12-01 Andreas Schwab <schwab@suse.de>
2666
2667 * font.c (register_font_driver): Use xmalloc.
2668 (font_put_frame_data): Likewise.
2669
2670 2008-12-01 Chong Yidong <cyd@stupidchicken.com>
2671
2672 * xfaces.c (realize_x_face): Make abort condition clearer.
2673
2674 * gtkutil.c (update_frame_tool_bar): Initialize variable.
2675
2676 2008-11-30 Chong Yidong <cyd@stupidchicken.com>
2677
2678 * keyboard.c (timer_check): After a timer runs, ensure that the
2679 selected window's buffer is current.
2680
2681 2008-11-30 Juanma Barranquero <lekktu@gmail.com>
2682
2683 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
2684 It was accidentally restored by the Unicode merge.
2685
2686 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
2687
2688 2008-11-29 Juanma Barranquero <lekktu@gmail.com>
2689
2690 * w32proc.c: Include "coding.h".
2691 (Fw32_short_file_name): Encode filename passed to Windows API.
2692 (Fw32_long_file_name): Encode filename passed to Windows API and
2693 decode back the result. (Bug#1433)
2694
2695 2008-11-29 Kenichi Handa <handa@m17n.org>
2696
2697 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
2698 not before accessing it.
2699
2700 * charset.c (Fdefine_charset_internal): After calculating
2701 min_char, max_char, and fastmap, copy the charset structure again.
2702 (encode_char): Fix the previous change.
2703
2704 2008-11-28 Seiji Zenitani <zenitani@mac.com>
2705
2706 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
2707
2708 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
2709
2710 * nsterm.m (x_set_frame_alpha): New function.
2711
2712 2008-11-27 Eli Zaretskii <eliz@gnu.org>
2713
2714 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
2715
2716 2008-11-27 Juanma Barranquero <lekktu@gmail.com>
2717
2718 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
2719 pointer to check_face_name.
2720
2721 2008-11-27 Kenichi Handa <handa@m17n.org>
2722
2723 * category.h (SET_CATEGORY_SET): Call set_category_set.
2724 (set_category_set): Extern it.
2725
2726 * category.c (hash_get_category_set): New function.
2727 (Fmodify_category_entry): Adjusted for the change of
2728 char_table_ref_and_range. Call hash_get_category_set to get a
2729 category set to store in the table.
2730
2731 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
2732 Funify_charset.
2733
2734 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
2735 (DECODE_CHAR): Check if the decoder vector is ready.
2736 (ENCODE_CHAR): Check if the encoder char-table is ready.
2737 (maybe_unify_char): Extern it.
2738
2739 * charset.c (Vchar_unified_charset_table): Delete it.
2740 (inhibit_load_charset_map): New variable.
2741 (temp_charset_work): New variable.
2742 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
2743 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
2744 New macros.
2745 (load_charset_map): Meaning of control_flag changed. If
2746 inhibit_load_charset_map is nonzero, setup a table in
2747 temp_charset_work.
2748 (load_charset): New argument control_flag.
2749 (map_charset_for_dump): New function.
2750 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
2751 map_charset_for_dump.
2752 (Fdefine_charset_internal): If the charset method is MAP, load
2753 mapping tables by calling load_charset.
2754 (Funify_charset): Don't load a mapping table but directly set
2755 Vchar_unify_table.
2756 (maybe_unify_char): New function.
2757 (decode_char): Don't handle the deleted method MAP_DEFERRED.
2758 Handle the case of inhibit_load_charset_map being nonzero.
2759 (encode_char): Don't handle the deleted method MAP_DEFERRED.
2760 Handle the case of inhibit_load_charset_map being nonzero.
2761 (Fclear_charset_maps): Just free temp_charset_work.
2762 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
2763 variable.
2764
2765 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
2766 change of char_table_ref_and_range.
2767 (char_table_ref_and_range): Change the meaning of argument FROM
2768 and TO. Now the caller must provide initial values for *FROM
2769 and *TO.
2770
2771 * fontset.c (fontset_add): Adjusted for the change of
2772 char_table_ref_and_range.
2773 (fontset_get_font_group): Likewise.
2774 (Ffontset_info): Likewise.
2775
2776 * keymap.c (describe_vector): Adjusted for the change of
2777 char_table_ref_and_range. For char-table, put boundary between
2778 non-ASCII and 8-bit characters.
2779
2780 * print.c (print_object): For bool-vector, delete unnecessary
2781 check of ASCII_BYTE_P.
2782
2783 2008-11-26 Jason Rumney <jasonr@gnu.org>
2784
2785 * w32font.c (w32font_open_internal): Don't include external
2786 leading in font height. (Bug#879)
2787
2788 2008-11-26 Glenn Morris <rgm@gnu.org>
2789
2790 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
2791 redefinition with ifdef. (Bug#1383)
2792
2793 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
2794
2795 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
2796
2797 2008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
2798
2799 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
2800 New EmacsView methods.
2801 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
2802 Fixes bug #1048,1357,1414.
2803
2804 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
2805
2806 Fix bug #1362.
2807 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
2808 is not an indexed color.
2809 * nsterm.m (free_indexed_color): Add argument checking.
2810 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
2811
2812 2008-11-24 Chong Yidong <cyd@stupidchicken.com>
2813
2814 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
2815 Document confirm-after-completion value for
2816 minibuffer-completion-confirm.
2817
2818 2008-11-24 Jason Rumney <jasonr@gnu.org>
2819
2820 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
2821 warning.
2822
2823 2008-11-23 Jason Rumney <jasonr@gnu.org>
2824
2825 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
2826 restored before returning.
2827
2828 * w32font.c (check_face_name): New function.
2829 (add_font_entity_to_list): Use it to filter out common substituted
2830 fonts. (Bug#642)
2831
2832 2008-11-22 Martin Rudalics <rudalics@gmx.at>
2833
2834 * buffer.c (Fswitch_to_buffer): Reword and mention new option
2835 confirm-nonexistent-file-or-buffer in doc-string.
2836
2837 2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
2838
2839 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
2840 Fix copy/paste typo. Add checks.
2841
2842 2008-11-21 Kenichi Handa <handa@m17n.org>
2843
2844 * coding.c (detect_coding_iso_2022): Reject invalid composition
2845 sequence.
2846 (DECODE_COMPOSITION_START): If the current source is the last
2847 block, and the current composition doesn't end, regard this
2848 sequence as invalid.
2849 (decode_coding_iso_2022): Handle invalid composition sequence.
2850
2851 2008-11-20 Martin Rudalics <rudalics@gmx.at>
2852
2853 * window.c (coordinates_in_window): Don't return
2854 ON_VERTICAL_BORDER for the rightmost position of a mode/header
2855 line when the window is not the rightmost one. (Bug#1372)
2856
2857 2008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
2858
2859 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
2860
2861 2008-11-15 Eli Zaretskii <eliz@gnu.org>
2862
2863 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
2864 and bright_bg if noninteractive is non-zero.
2865
2866 2008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2867
2868 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
2869 x_draw_glyph_string_background.
2870
2871 * w32term.c (x_draw_glyph_string): Likewise.
2872
2873 2008-11-15 Chong Yidong <cyd@stupidchicken.com>
2874
2875 * xterm.c (x_draw_glyph_string): Stop drawing the background of
2876 the next glyph string once past the overhang width.
2877
2878 * nsterm.m (ns_draw_glyph_string): Likewise.
2879
2880 * w32term.c (x_draw_glyph_string): Likewise.
2881
2882 2008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
2883
2884 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
2885 double file close.
2886
2887 2008-11-14 Martin Rudalics <rudalics@gmx.at>
2888
2889 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
2890 dedicated status of window before attempting to display another
2891 buffer in it.
2892
2893 2008-11-14 Juanma Barranquero <lekktu@gmail.com>
2894
2895 * msdos.c (Fmsdos_long_file_names):
2896 (syms_of_msdos) <dos-unsupported-char-glyph>:
2897 * dosfns.c (Fint86): Fix typos in docstrings.
2898
2899 2008-11-14 Eli Zaretskii <eliz@gnu.org>
2900
2901 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
2902
2903 2008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
2904
2905 * puresize.h (BASE_PURESIZE): Increase to 1260000.
2906
2907 2008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
2908
2909 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
2910
2911 * frame.h: Negative alpha means "don't touch".
2912
2913 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
2914
2915 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
2916
2917 2008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
2918
2919 * hftctl.c:
2920 * chpdef.h:
2921 * acldef.h: Remove files used only for systems no longer supported.
2922
2923 * Makefile.in: Fix .o alphabetical ordering.
2924 (hftctl.o): Remove dependency, file removed.
2925 (keymap.o, print.o): Depend on charset.h.
2926
2927 2008-11-10 Kenichi Handa <handa@m17n.org>
2928
2929 * character.c (Fget_byte): Fix and make it faster for unibyte target.
2930
2931 2008-11-08 Chong Yidong <cyd@stupidchicken.com>
2932
2933 * dired.c (file_name_completion): If completion_ignore_case is
2934 enabled, ignore case when checking completion-regexp-list.
2935
2936 2008-11-08 Eli Zaretskii <eliz@gnu.org>
2937
2938 * vm-limit.c (get_lim_data): Fix last change.
2939
2940 2008-11-08 Kenichi Handa <handa@m17n.org>
2941
2942 * character.c (Fget_byte): New function.
2943 (syms_of_character): Defsubr Fget_byte.
2944
2945 2008-11-07 Chong Yidong <cyd@stupidchicken.com>
2946
2947 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
2948 cursor position is valid after scrolling.
2949
2950 2008-11-06 Juanma Barranquero <lekktu@gmail.com>
2951
2952 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
2953
2954 2008-11-06 Glenn Morris <rgm@gnu.org>
2955
2956 * xterm.c (handle_one_xevent): Don't let popup menus cause
2957 mouse-autoselect-window related window switching. (Bug#1261)
2958
2959 2008-11-04 David Smith <davidsmith@acm.org> (tiny change)
2960
2961 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
2962
2963 2008-11-04 Andreas Schwab <schwab@suse.de>
2964
2965 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
2966
2967 2008-11-03 Chong Yidong <cyd@stupidchicken.com>
2968
2969 * xfns.c (Fx_wm_set_size_hint): New function.
2970
2971 2008-11-03 Martin Rudalics <rudalics@gmx.at>
2972
2973 * textprop.c (Fprevious_single_char_property_change): Return 0
2974 when there's no change in a string. (Bug#1301)
2975
2976 2008-11-02 Martin Rudalics <rudalics@gmx.at>
2977
2978 * frame.c (do_switch_frame): New argument NORECORD passed to
2979 Fselect_window.
2980 (Fselect_frame): New argument NORECORD passed to
2981 do_switch_frame.
2982 (Fset_frame_selected_window): New argument NORECORD passed to
2983 Fselect_frame.
2984 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
2985 in call of do_switch_frame.
2986 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
2987 Handle NORECORD argument in call of Fselect_frame.
2988 * lisp.h (do_switch_frame, Fselect_frame)
2989 (Fset_frame_selected_window): Adjust declarations.
2990 * window.c (select_frame_norecord): New function.
2991 (run_window_configuration_change_hook): Use it and call
2992 Fselect_frame with NORECORD set.
2993 (Fselect_window): Pass NORECORD to Fselect_frame.
2994 (Fset_window_configuration): Handle NORECORD argument in call of
2995 do_switch_frame.
2996 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
2997 Fset_frame_selected_window.
2998 * keyboard.c (command_loop_1): Handle NORECORD in call of
2999 Fselect_frame (currently ifdefd).
3000
3001 2008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
3002
3003 * emacs.c (USAGE2): Untabify.
3004
3005 2008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
3006
3007 * composite.c (fill_gstring_header): Fix copy/paste typo.
3008
3009 2008-10-31 Martin Rudalics <rudalics@gmx.at>
3010
3011 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
3012 (Fother_window): Rename argument and rewrite doc-string.
3013 (select_window_norecord): Fix return value. (Bug#1276)
3014
3015 2008-10-30 Juanma Barranquero <lekktu@gmail.com>
3016
3017 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
3018 new frames overriding foreground for tooltips. Based on similar patch
3019 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
3020
3021 2008-10-29 Chong Yidong <cyd@stupidchicken.com>
3022
3023 * emacs.c (Fdaemon_initialized): Initialize nfd.
3024
3025 2008-10-29 Martin Rudalics <rudalics@gmx.at>
3026
3027 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
3028 (Fwindow_text_height): Clarify doc-strings.
3029 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
3030 doc-string of window-scroll-functions.
3031
3032 2008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
3033
3034 * category.c (syms_of_category): Fix typo in docstring.
3035
3036 2008-10-28 Juanma Barranquero <lekktu@gmail.com>
3037
3038 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
3039 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
3040 Fix typos in docstrings.
3041
3042 2008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
3043
3044 * emacs.c (daemon_pipe): Make non-static.
3045 (IS_DAEMON): Move definition ...
3046 * lisp.h (IS_DAEMON): ... here.
3047 (daemon_pipe): Declare.
3048 (is_daemon): Remove.
3049 * dispnew.c (init_display): Use IS_DAEMON.
3050
3051 2008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
3052
3053 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
3054 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
3055
3056 * emacs.c (is_daemon): Remove.
3057 (main): Don't set is_daemon.
3058 (IS_DAEMON): New macro.
3059 (Fdaemonp, Fdaemon_initialized): Use it.
3060 (Fdaemon_initialized): Write a char into the pipe to make sure the
3061 parent exits.
3062 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
3063
3064 2008-10-27 Chong Yidong <cyd@stupidchicken.com>
3065
3066 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
3067 over-sized glyph, draw it with the default glyph width.
3068
3069 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
3070 glyph, draw it with the default glyph width.
3071
3072 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
3073 glyph, draw it with the default glyph width.
3074
3075 * xdisp.c (try_scrolling): When computing the distance from the
3076 scroll margin to PT, try moving some distance past the window
3077 bottom before giving up.
3078
3079 2008-10-27 Martin Rudalics <rudalics@gmx.at>
3080
3081 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
3082 (Fset_window_buffer): Explain in doc-string that a window can be
3083 "strongly" dedicated to its buffer.
3084
3085 2008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
3086
3087 * emacs.c (daemon_name): New variable.
3088 (main): Deal with --daemon=SERVER_NAME.
3089 (Fdaemonp): Return a name if one was passed to --daemon.
3090
3091 2008-10-26 Romain Francoise <romain@orebokech.com>
3092
3093 * emacs.c (daemon_pipe): New variable.
3094 (main): Create a pipe before forking, make the parent exit only after
3095 the child has closed its end of the pipe. Move closing the
3096 descriptors ...
3097 (Fdaemon_initialized): ... here. New function.
3098
3099 2008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
3100
3101 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
3102 the previous unoptimized table.
3103
3104 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
3105 the distinction between non-nil and non-t value of `dedicated'.
3106
3107 2008-10-25 Chong Yidong <cyd@stupidchicken.com>
3108
3109 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
3110 read_char_minibuf_menu_text is large enough to hold the menu string.
3111
3112 2008-10-25 Martin Rudalics <rudalics@gmx.at>
3113
3114 * window.c (Fget_buffer_window, Fdelete_windows_on)
3115 (Freplace_buffer_in_windows): Make buffer argument optional and
3116 rename to buffer_or_name.
3117
3118 2008-10-24 Chong Yidong <cyd@stupidchicken.com>
3119
3120 * xdisp.c (handle_single_display_spec, handle_display_prop):
3121 Undo 2005-05-16 change.
3122 (handle_stop): Pop iterator if it's loaded with an empty string.
3123 (get_overlay_strings_1): Don't save iterator if it's loaded with
3124 an empty string (bug#1201).
3125
3126 2008-10-24 Kenichi Handa <handa@m17n.org>
3127
3128 * ftfont.c (ftfont_otf_features): Fix previous change.
3129 (ftfont_otf_capability): Check FeatureList.FeatureCount before
3130 calling ftfont_otf_features.
3131
3132 2008-10-24 Kenichi Handa <handa@m17n.org>
3133
3134 * font.c (font_match_p): Fix for the case that a vector of
3135 characters is in script-representative-chars.
3136
3137 2008-10-24 Michael Albinus <michael.albinus@gmx.de>
3138
3139 * dbusbind.c (xd_in_read_queued_messages): New variable.
3140 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
3141 (xd_read_queued_messages): Catch Qdbus_error from the macros.
3142 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
3143 macro. (Bug#1186).
3144
3145 2008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
3146
3147 * s/sol2-10.h: New file.
3148
3149 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
3150
3151 * xdisp.c (fill_glyph_string): Fix typo in source (though the
3152 poor beast has survived 9+ years and the jump from xterm.c!).
3153
3154 2008-10-23 Martin Rudalics <rudalics@gmx.at>
3155
3156 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
3157 Reword doc-string.
3158 (Fbury_buffer): In doc-string say what happens to the buffer's window.
3159
3160 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
3161
3162 * character.c (syms_of_character) <script-representative-chars>:
3163 <unicode-category-table>: Doc fixes.
3164
3165 2008-10-23 Noah Friedman <friedman@splode.com>
3166
3167 * coding.c (make_conversion_work_buffer): Check that
3168 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
3169 Fget_buffer_create.
3170
3171 2008-10-23 Kenichi Handa <handa@m17n.org>
3172
3173 * font.c (font_add_log): Check the values of extra properties.
3174
3175 2008-10-22 Martin Rudalics <rudalics@gmx.at>
3176
3177 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
3178 Reword doc-string.
3179 (Fset_window_parameter): Use NILP.
3180 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
3181 (Frecenter): Use "selected" instead of "current" window in doc-strings.
3182
3183 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
3184
3185 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
3186
3187 2008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
3188
3189 * nsfns.m (ns_appkit_version): New function.
3190 (x-server-version): Use it.
3191 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
3192 (x-server-vendor): Don't check_ns().
3193
3194 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
3195
3196 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
3197
3198 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
3199 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
3200
3201 2008-10-22 Kenichi Handa <handa@m17n.org>
3202
3203 * syntax.c (scan_words): Call word_boundary_p instead of comparing
3204 scripts.
3205
3206 * category.c (word_boundary_p): Check scripts instead of charset.
3207 Handle nil value in word-separating-categories and
3208 word-combining-categories.
3209 (syms_of_category): Fix docstrings of word-separating-categories
3210 and word-combining-categories.
3211
3212 2008-10-21 Eli Zaretskii <eliz@gnu.org>
3213
3214 * coding.c (Fencode_coding_region, Fdecode_coding_region)
3215 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
3216
3217 2008-10-21 Martin Rudalics <rudalics@gmx.at>
3218
3219 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
3220 Rename arg "buffer" to "buffer_or_name".
3221 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
3222 it optional.
3223 (no_switch_window): Remove since the return value is not used.
3224 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
3225 Consider window as dedicated when Fwindow_dedicated_p returns a
3226 non-nil value.
3227 * lisp.h: Remove prototype for no_switch_window.
3228
3229 2008-10-21 Jan Djärv <jan.h.d@swipnet.se>
3230
3231 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
3232 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
3233
3234 2008-10-21 Kenichi Handa <handa@m17n.org>
3235
3236 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
3237 check Vlatin_extra_code_table.
3238
3239 2008-10-20 Eli Zaretskii <eliz@gnu.org>
3240
3241 * fileio.c (Fset_file_modes): Doc fix.
3242
3243 2008-10-19 Michael Albinus <michael.albinus@gmx.de>
3244
3245 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
3246 in arrays.
3247
3248 2008-10-19 Martin Rudalics <rudalics@gmx.at>
3249
3250 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
3251 Mention kill-buffer in doc-string.
3252 (Fset_window_buffer): Reinsert tem check removed in last commit.
3253 (Fenlarge_window, Fshrink_window): Have argument names and
3254 doc-string follow Elisp manual more closely.
3255
3256 2008-10-18 Eli Zaretskii <eliz@gnu.org>
3257
3258 * fileio.c (Fset_file_modes): Doc fix.
3259
3260 2008-10-18 Martin Rudalics <rudalics@gmx.at>
3261
3262 * window.c (Fwindow_width, Fset_window_start)
3263 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
3264 (Fdelete_windows_on, Freplace_buffer_in_windows):
3265 Make doc-strings follow code and Elisp manual more closely.
3266 (Fwindow_dedicated_p): Make window argument optional.
3267 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
3268 (Fset_window_buffer): Respect any non-nil dedicated value for
3269 window. Rename "buffer" argument to "buffer_or_name".
3270
3271 2008-10-18 Ulrich Mueller <ulm@gentoo.org>
3272
3273 * m/sh3.h: New file, machine description for SuperH.
3274
3275 2008-10-17 Martin Rudalics <rudalics@gmx.at>
3276
3277 * window.c (Fsplit_window): Rename arg horflag to horizontal.
3278
3279 2008-10-17 Kenichi Handa <handa@m17n.org>
3280
3281 * ftfont.c (ftfont_otf_features): Fix indexing
3282 gsub_gpos->FeatureList.Feature. Check the validity of indices.
3283
3284 2008-10-16 Magnus Henoch <mange@freemail.hu>
3285
3286 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
3287 (Fdbus_call_method_asynchronously): Ditto.
3288 This change makes C-h f display the argument list.
3289
3290 2008-10-16 Chong Yidong <cyd@stupidchicken.com>
3291
3292 * fileio.c (Fexpand_file_name): Doc fix.
3293
3294 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
3295 of :foreground and :background equivalent to unspecified (20.x
3296 compatibility).
3297
3298 2008-10-15 Eli Zaretskii <eliz@gnu.org>
3299
3300 * buffer.c (syms_of_buffer): Doc fix.
3301
3302 2008-10-14 Kenichi Handa <handa@m17n.org>
3303
3304 * font.c (font_clear_prop): When clearing font width, clear the
3305 average width field too.
3306
3307 2008-10-12 Andreas Schwab <schwab@suse.de>
3308
3309 * ftfont.c (ftfont_shape_by_flt): Make static.
3310 * ftfont.h (ftfont_shape_by_flt): Don't declare.
3311
3312 * font.c: Don't include <m17n-flt.h>.
3313
3314 2008-10-10 Eli Zaretskii <eliz@gnu.org>
3315
3316 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
3317
3318 2008-10-09 Eli Zaretskii <eliz@gnu.org>
3319
3320 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
3321 away code.
3322
3323 2008-10-09 Chong Yidong <cyd@stupidchicken.com>
3324
3325 * dispnew.c (update_text_area): Avoid looping due to large glyph
3326 overhangs (bug#1070).
3327
3328 2008-10-09 Kenichi Handa <handa@m17n.org>
3329
3330 * fontset.c (face_for_char): If face->fontset is negative, just
3331 return ascii_face.
3332
3333 * font.c (font_delete_unmatched): Fix previous change.
3334 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
3335
3336 2008-10-09 Martin Rudalics <rudalics@gmx.at>
3337
3338 * frame.c (Fraise_frame): On text-only terminals select frame in
3339 order to make it visible. (Bug#1061)
3340
3341 2008-10-08 Chong Yidong <cyd@stupidchicken.com>
3342
3343 * fontset.c (fontset_find_font): Check frame validity.
3344
3345 2008-10-07 Chong Yidong <cyd@stupidchicken.com>
3346
3347 * gtkutil.c (xg_display_open): Reset default display if none exists.
3348 (xg_display_close): Allow Emacs to close all displays (bug#985).
3349
3350 2008-10-06 Andreas Schwab <schwab@suse.de>
3351
3352 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
3353
3354 2008-10-06 Chong Yidong <cyd@stupidchicken.com>
3355
3356 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
3357
3358 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
3359
3360 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
3361 during initialization.
3362
3363 2008-10-04 Eli Zaretskii <eliz@gnu.org>
3364
3365 * xdisp.c (redisplay_internal): If frame switched, redisplay the
3366 whole thing on MSDOS frames as well as on a TTY.
3367
3368 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
3369 well as for TTY.
3370 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
3371 well as on a TTY.
3372
3373 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
3374 as well as for TTY.
3375
3376 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
3377
3378 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
3379 MSDOS frames as well.
3380
3381 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
3382
3383 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
3384 correct arguments.
3385 * menu.c (find_and_return_menu_selection): Add cast.
3386
3387 2008-10-03 Glenn Morris <rgm@gnu.org>
3388
3389 * emacs.c (USAGE1): Add --daemon.
3390
3391 2008-10-02 Eli Zaretskii <eliz@gnu.org>
3392
3393 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
3394 100, so it's in percents as advertised.
3395
3396 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
3397
3398 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
3399 (ns_output.current_cursor, ns_output.desired_cursor)
3400 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
3401 (FRAME_NEW_CURSOR_COLOR): Remove.
3402
3403 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
3404 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
3405 enumeration (HOLLOW_BOX_CURSOR, etc.).
3406
3407 * nsterm.m (ns_frame_rehighlight): Remove commented code.
3408 (draw_window_cursor): Simplify code.
3409 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
3410 Don't change cursor type. In latter, call rehighlight instead of doing
3411 updates manually.
3412 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
3413 Use core Emacs cursor types.
3414
3415 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
3416
3417 2008-10-02 Martin Rudalics <rudalics@gmx.at>
3418
3419 * process.c (Faccept_process_output): Fix doc-string.
3420
3421 2008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
3422
3423 * gmalloc.c (__sbrk): Also define for uClibc.
3424
3425 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
3426 for uClibc.
3427
3428 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
3429
3430 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
3431 styles.
3432 (nsfont_open): Reenable the cache.
3433
3434 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
3435
3436 * font.c (font_matching_entity): Reflect ATTRS in font selection.
3437 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
3438
3439 2008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
3440
3441 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
3442 a suspended terminal.
3443
3444 2008-09-30 Michael Albinus <michael.albinus@gmx.de>
3445
3446 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
3447
3448 2008-09-30 Eli Zaretskii <eliz@gnu.org>
3449
3450 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
3451
3452 2008-09-30 Chong Yidong <cyd@stupidchicken.com>
3453
3454 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
3455 in a continued line coincides with a line beginning.
3456
3457 2008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
3458
3459 * nsfont.m (nsfont_trait_distance): Fix bug.
3460 (nsfont_list): Return a list rather than a vector (syncs with Handa
3461 changes of 2008-05-14).
3462 (nsfont_open): Improve logging.
3463
3464 2008-09-29 Andreas Schwab <schwab@suse.de>
3465
3466 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
3467
3468 2008-09-28 Martin Rudalics <rudalics@gmx.at>
3469
3470 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
3471 name as char-resolve-modifiers.
3472 Reported by: Markus Triska <markus.triska@gmx.at>
3473
3474 2008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
3475
3476 * dispnew.c (init_display): Return earlier when running as a daemon.
3477
3478 2008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
3479
3480 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
3481
3482 2008-09-27 Eli Zaretskii <eliz@gnu.org>
3483
3484 * composite.c (Fcomposition_get_gstring)
3485 (Fcompose_region_internal, Fcompose_string_internal)
3486 (Ffind_composition_internal): Doc fix.
3487 (syms_of_composite) <compose-chars-after-function>: Doc fix.
3488 (syms_of_composite) <auto-composition-function>: Doc fix.
3489 (syms_of_composite) <composition-function-table>: Doc fix.
3490
3491 2008-09-25 Chong Yidong <cyd@stupidchicken.com>
3492
3493 * search.c (wordify): New argument for lax word-ends.
3494 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
3495
3496 2008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
3497
3498 * lisp.h (is_daemon): Declare.
3499 * dispnew.c (init_display): Do not try to initialize the terminal
3500 when running as a daemon.
3501
3502 2008-09-22 Chong Yidong <cyd@stupidchicken.com>
3503
3504 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
3505 x_display_pixel_height.
3506
3507 2008-09-22 Martin Rudalics <rudalics@gmx.at>
3508
3509 * undo.c (record_point): Don't call Fundo_boundary for first
3510 change. (Bug#731)
3511
3512 2008-09-22 Juanma Barranquero <lekktu@gmail.com>
3513
3514 * emacs.c (Fdaemonp): Doc fix.
3515
3516 2008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
3517
3518 * emacs.c (main): Place #ifdef in the proper place.
3519
3520 2008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
3521
3522 * emacs.c (standard_args): Add --daemon.
3523 (main): Disconnect from the terminal when --daemon is passed.
3524 (is_daemon): New variable.
3525 (Fdaemonp): New function.
3526 (syms_of_emacs): Defsubr it.
3527
3528 2008-09-20 Chong Yidong <cyd@stupidchicken.com>
3529
3530 * xdisp.c (get_next_display_element): Handle string display
3531 correctly when checking for the end of a box run.
3532
3533 2008-09-20 Glenn Morris <rgm@gnu.org>
3534
3535 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
3536 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
3537 (Frename_file): Avoid copying to trash if a rename involves
3538 a delete. (Bug#964).
3539
3540 2008-09-20 Eli Zaretskii <eliz@gnu.org>
3541
3542 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
3543 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
3544 frames as well as termcap frames.
3545 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
3546 get_named_tty.
3547
3548 2008-09-19 Eli Zaretskii <eliz@gnu.org>
3549
3550 * process.c (procfs_system_process_attributes): Fix cmdline in
3551 case /proc/PID/cmdline is empty.
3552
3553 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
3554 x_display_pixel_height.
3555
3556 2008-09-19 Juanma Barranquero <lekktu@gmail.com>
3557
3558 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
3559
3560 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
3561 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
3562
3563 2008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
3564
3565 * dispextern.h (struct it): Move line_wrap away from the middle of
3566 bitfields. Move voffset in struct iterator_stack_entry after the
3567 bitfields. Move tab_width near after another short.
3568
3569 2008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
3570
3571 * frame.h (struct frame): Move alpha from the middle of bitfields.
3572
3573 * window.h (struct window): Move frozen_window_start_p after the
3574 rest of the bitfields to reduce padding.
3575
3576 2008-09-18 Chong Yidong <cyd@stupidchicken.com>
3577
3578 * xterm.h (x_display_info): Remove `height' and `width' members.
3579
3580 * nsterm.h (ns_display_info): Remove `height' and `width' members.
3581
3582 * w32term.h (w32_display_info): Remove `height', `width',
3583 `height_in', and `width_in' members.
3584
3585 * xterm.c (x_display_pixel_height, x_display_pixel_width):
3586 New functions.
3587 (x_calc_absolute_position): Use them.
3588 (x_term_init): Omit removed `height' and `width' members.
3589
3590 * w32term.c (x_display_pixel_height, x_display_pixel_width):
3591 New functions.
3592 (w32_read_socket, x_calc_absolute_position): Use them.
3593 (w32_initialize_display_info, w32_term_init): Omit removed members
3594 of w32_display_info.
3595
3596 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
3597 New functions.
3598 (ns_initialize_display_info): Omit removed members of ns_display_info.
3599
3600 * xterm.c (x_display_pixel_height, x_display_pixel_width):
3601 New functions.
3602 (x_calc_absolute_position): Use them.
3603 (x_term_init): Omit removed `height' and `width' members.
3604
3605 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
3606 (compute_tip_xy):
3607 * frame.c (x_fullscreen_adjust):
3608 * xmenu.c (menu_position_func): Use x_display_pixel_height and
3609 x_display_pixel_width.
3610
3611 2008-09-18 Kenichi Handa <handa@m17n.org>
3612
3613 * composite.c (fill_gstring_header): Don't check FROM and TO here.
3614 (composition_compute_stop_pos): Fix handling of static composition.
3615 (Fcomposition_get_gstring): Check FROM and TO at first.
3616
3617 2008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
3618
3619 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
3620 mixup (YAILOM).
3621
3622 2008-09-17 Chong Yidong <cyd@stupidchicken.com>
3623
3624 * indent.c (Fvertical_motion): Use position reported by iterator
3625 instead of PT for determining screen motion (bug#943).
3626
3627 2008-09-17 Romain Francoise <romain@orebokech.com>
3628
3629 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
3630
3631 2008-09-17 Kenichi Handa <handa@m17n.org>
3632
3633 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
3634
3635 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
3636 if necessary.
3637
3638 2008-09-16 Kenichi Handa <handa@m17n.org>
3639
3640 * coding.c (make_conversion_work_buffer): Avoid calling
3641 Fget_buffer_create if it is not necessary.
3642
3643 2008-09-15 Martin Rudalics <rudalics@gmx.at>
3644
3645 * window.c (Fselect_window): Don't update window_select_count and
3646 use_time when norecord is not nil.
3647
3648 2008-09-14 Kenichi Handa <handa@m17n.org>
3649
3650 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
3651 specpdl_ptr.
3652
3653 2008-09-12 Kenichi Handa <handa@m17n.org>
3654
3655 * indent.c (scan_for_column): Don't handle automatic composition
3656 if the current buffer is not associated with a window.
3657
3658 * composite.c (composition_reseat_it): If the current buffer is
3659 not associated with a window, ignore the automatic composition.
3660 (find_automatic_composition): Likewise.
3661
3662 2008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
3663
3664 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
3665 (Fgpm_mouse_stop): Use it.
3666 * termhooks.h (close_gpm): Declare.
3667 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
3668 connection if Gpm_GetEvent fails.
3669
3670 * window.c (set_window_buffer): Always preserve current-buffer.
3671
3672 2008-09-12 Glenn Morris <rgm@gnu.org>
3673
3674 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
3675
3676 2008-09-11 Glenn Morris <rgm@gnu.org>
3677
3678 * charset.c (charset-map-path): Doc fix.
3679
3680 2008-09-10 Kenichi Handa <handa@m17n.org>
3681
3682 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
3683
3684 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
3685 compose a grapheme cluster with the preceding base glyph.
3686
3687 * composite.c (composition_compute_stop_pos): Fix previous change.
3688 Reset cmp_it->id to -1 at first.
3689
3690 2008-09-10 Glenn Morris <rgm@gnu.org>
3691
3692 * Makefile.in (character.o, chartab.o): Fix config.h typo.
3693
3694 2008-09-09 Chong Yidong <cyd@stupidchicken.com>
3695
3696 * keyboard.c (read_key_sequence): Reapply translation maps when
3697 switching keyboards.
3698
3699 2008-09-09 Kenichi Handa <handa@m17n.org>
3700
3701 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
3702 characters.
3703
3704 * composite.c (FORWARD_CHAR): Fix calculation
3705 of (POSITION).pos_byte.
3706 (composition_compute_stop_pos): Limit the search of composition to
3707 at most 500 characters ahead. If we reach the limit or find a
3708 newline, set cmp_it->ch to -2 and return 0.
3709 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
3710
3711 2008-09-08 Kenichi Handa <handa@m17n.org>
3712
3713 * indent.c (Fvertical_motion): Be sure to set
3714 it_overshoot_expected if it.cmp_it.id is non-negative.
3715
3716 2008-09-07 Andreas Schwab <schwab@suse.de>
3717
3718 * callproc.c (Fcall_process): Don't hold references to string data
3719 across garbage collection. Move initialisation of new_argv down
3720 to avoid compiler bug.
3721
3722 2008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
3723
3724 * process.c (Fsystem_process_attributes): Doc fix.
3725
3726 2008-09-07 Chong Yidong <cyd@stupidchicken.com>
3727
3728 * callproc.c (Fcall_process): Canonicalize current directory name.
3729
3730 * xdisp.c (move_it_to): When moving by vpos, ensure that the
3731 iterator advances to the next line if the current line ends in a
3732 continued tab.
3733
3734 2008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
3735
3736 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
3737 member to point to cmp_from.
3738
3739 * xdisp.c: Doc fix for references to gidx data member.
3740
3741 2008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
3742
3743 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
3744
3745 2008-09-07 Kenichi Handa <handa@m17n.org>
3746
3747 * composite.c (FORWARD_CHAR): Check STOP after
3748 incrementing (POSITION).pos.
3749
3750 2008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
3751
3752 * process.c (Fsystem_process_attributes): Doc fix.
3753
3754 2008-09-06 Chong Yidong <cyd@stupidchicken.com>
3755
3756 * keyboard.c (Ftop_level): Doc fix.
3757
3758 2008-09-06 Eli Zaretskii <eliz@gnu.org>
3759
3760 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
3761 minibuffer, don't let lower part of menu invade the echo area.
3762
3763 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
3764 "char *q" to access menu text and advance through it. Revert the
3765 change that displayed ">" instead of ASCII character 0x10.
3766
3767 2008-09-05 Eli Zaretskii <eliz@gnu.org>
3768
3769 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
3770 toggle boxes and radio buttons on MS-DOS as well.
3771
3772 2008-09-05 Kenichi Handa <handa@m17n.org>
3773
3774 * composite.c (autocmp_chars): Check lookback count.
3775 (composition_compute_stop_pos): Set cmp_it->lookback.
3776 (composition_reseat_it): Check lookback count.
3777 (struct position_record): New struct.
3778 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
3779 (find_automatic_composition): New function.
3780 (composition_adjust_point): Use find_automatic_composition.
3781
3782 * dispextern.h (struct composition_it): New member lookback.
3783
3784 2008-09-02 Chong Yidong <cyd@stupidchicken.com>
3785
3786 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
3787 if moving by a single line.
3788
3789 2008-09-02 Andreas Schwab <schwab@suse.de>
3790
3791 * xterm.c (x_delete_display): Fix merge error.
3792
3793 * fileio.c (Fexpand_file_name): Remove unused variables.
3794
3795 2008-09-02 Eli Zaretskii <eliz@gnu.org>
3796
3797 * fileio.c (Fexpand_file_name): Copy argument `name' into local
3798 storage on all platforms, not just on DOS_NT.
3799
3800 2008-09-02 Jason Rumney <jasonr@gnu.org>
3801
3802 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
3803 Ensure mouse is not grabbed after menu is finished.
3804
3805 2008-09-01 Chong Yidong <cyd@stupidchicken.com>
3806
3807 * xfaces.c (Finternal_set_alternative_font_family_alist)
3808 (Finternal_set_alternative_font_registry_alist): Properly copy
3809 entire alist structure.
3810
3811 2008-09-01 Kenichi Handa <handa@m17n.org>
3812
3813 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
3814 representative chars of the script is a vector.
3815 (ftfont_list): Handle the case where the representative chars of
3816 the script is a vector.
3817
3818 * character.c (syms_of_character): Docstring of
3819 script-representative-chars fixed.
3820
3821 2008-08-31 Eli Zaretskii <eliz@gnu.org>
3822
3823 * msdos.c (BUILD_CHAR_GLYPH): New macro.
3824 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
3825 the menu. Allocate larger buffer for `text', to account for
3826 possible ^C characters.
3827
3828 2008-08-31 Martin Rudalics <rudalics@gmx.at>
3829
3830 * xdisp.c (prepare_menu_bars): Don't call
3831 Vwindow_size_change_functions with arg Qt.
3832
3833 2008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
3834
3835 * font.h (font_range):
3836 * fileio.c (report_file_error):
3837 * composite.c (composition_update_it): Yet another int/Lisp_Object
3838 mixup (YAILOM).
3839
3840 2008-08-30 Glenn Morris <rgm@gnu.org>
3841
3842 * data.c (Fmake_variable_frame_local): Doc fix.
3843
3844 * frame.c (Fmodify_frame_parameters): Doc fix.
3845
3846 2008-08-30 Eli Zaretskii <eliz@gnu.org>
3847
3848 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
3849 needed by GetTokenInformation.
3850 (w32_system_process_attributes): Check return values of all system
3851 APIs.
3852
3853 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
3854 only when the state changes.
3855 (IT_update_begin, IT_update_end): Add termscript trace.
3856
3857 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
3858 clipboard is unavailable. Set dst to NULL if it doesn't point to
3859 malloc'ed data.
3860 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
3861 passing random values to xfree.
3862
3863 * dispnew.c (init_display): Set `tty's association in frame's
3864 parameters alist to the name of the terminal device, if that is known.
3865
3866 2008-08-29 Jason Rumney <jasonr@gnu.org>
3867
3868 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
3869
3870 2008-08-29 Eli Zaretskii <eliz@gnu.org>
3871
3872 * composite.c (fill_gstring_body): Avoid compiler warnings.
3873
3874 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
3875 LGLYPH_SET_CODE to avoid compiler warnings.
3876
3877 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
3878
3879 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
3880
3881 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
3882 LGLYPH_SET_CODE.
3883
3884 2008-08-29 Kenichi Handa <handa@m17n.org>
3885
3886 * fileio.c (report_file_error): Don't downcase the first character
3887 of errstring if it is still unibyte.
3888
3889 2008-08-29 Kenichi Handa <handa@m17n.org>
3890
3891 These changes are to re-implement the automatic composition so
3892 that it doesn't use text properties.
3893
3894 * Makefile.in (ftfont.o): Depend on composite.h.
3895 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
3896
3897 * character.h (Vunicode_category_table): Extern it.
3898
3899 * character.c (Vunicode_category_table): New variable.
3900 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
3901
3902 * chartab.c (optimize_sub_char_table): Perform more greedy
3903 optimization.
3904
3905 * composite.h (enum composition_method):
3906 Delete COMPOSITION_WITH_GLYPH_STRING.
3907 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
3908 (Vcomposition_function_table): Extern it.
3909 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
3910 (composition_gstring_put_cache, composition_gstring_from_id)
3911 (composition_gstring_p, composition_gstring_width)
3912 (composition_compute_stop_pos, composition_reseat_it)
3913 (composition_update_it, composition_adjust_point): Extern them.
3914 (Fcomposition_get_gstring): EXFUN it.
3915
3916 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
3917 (Vcomposition_function_table)
3918 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
3919 (gstring_hash_table, gstring_work, gstring_work_headers):
3920 New variables.
3921 (gstring_lookup_cache, composition_gstring_put_cache)
3922 (composition_gstring_from_id, composition_gstring_p)
3923 (composition_gstring_width, fill_gstring_header)
3924 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
3925 (composition_reseat_it, composition_update_it)
3926 (composition_adjust_point, Fcomposition_get_gstring): New functions.
3927 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
3928 and gstring_work_headers. DEFVAR_LISP composition-function-table.
3929 Defsubr compostion_get_gstring.
3930
3931 * dispextern.h (struct glyph): New union u.cmp. Delete the member
3932 cmp_id.
3933 (struct glyph_string): Delete the member gidx. New members
3934 cmp_id, cmp_from, and cmp_to.
3935 (enum it_method): Delete GET_FROM_COMPOSITION.
3936 (struct composition_it): New struct.
3937 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
3938 Delete c, len, cmp_id, cmp_len in u.comp.
3939
3940 * font.h (enum lgstring_indices): Delete it.
3941 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
3942 (enum lglyph_indices): Likewise.
3943 (font_range): Adjust extern.
3944 (font_fill_lglyph_metrics): Extern it.
3945
3946 * font.c (QCf): New variable.
3947 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
3948 (font_prepare_composition): Delete this function.
3949 (font_range): Type and arguments changed.
3950 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
3951 (font_fill_lglyph_metrics): New function.
3952 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
3953 (syms_of_font): DEFSYM QCf. Delete defsubr for
3954 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
3955 Defsubr Sfont_shape_gstring.
3956
3957 * fontset.h (font_for_char): Extern it.
3958
3959 * fontset.c (font_for_char): New function.
3960
3961 * ftfont.c: Include composite.h.
3962 (ftfont_resolve_generic_family): Add langset "en" to pattern.
3963 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
3964
3965 * indent.c: Include composite.h and dispextern.h.
3966 (check_composition): Delete this function.
3967 (scan_for_column): Handle composition by
3968 composition_compute_stop_pos, composition_reseat_it, and
3969 composition_update_it.
3970 (compute_motion): Likewise.
3971 (Fvertical_motion): Fix checking of composition.
3972
3973 * keyboard.c (adjust_point_for_property): Check composition by
3974 composition_adjust_point.
3975
3976 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
3977 struct glyph_string.
3978
3979 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
3980 (append_composite_glyph): Adjust for the change of struct it and
3981 struct glyph.
3982 (produce_composite_glyph): Likewise.
3983
3984 * w32term.c (x_draw_composite_glyph_string_foreground):
3985 Adjust for the change of struct glyph_string.
3986 (x_draw_glyph_string): Likewise.
3987
3988 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
3989 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
3990
3991 * xdisp.c: Include font.h.
3992 (it_props): Delete the entry for Qauto_composed.
3993 (init_iterator): Initialize it->cmp_it.id to -1.
3994 (compute_stop_pos): Call composition_compute_stop_pos.
3995 (face_before_or_after_it_pos): Adjust for the change of struct it.
3996 (handle_auto_composed_prop): Delete it.
3997 (handle_composition_prop): Handle only static composition.
3998 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
3999 from xassert. Initialize it->cmp_it.stop_pos.
4000 (push_it): Adjust for the change of struct it.
4001 (pop_it): Likewise.
4002 (get_next_element): Delete next_element_from_composition.
4003 (CHAR_COMPOSED_P): New macro.
4004 (get_next_display_element): For automatic composition, get a face
4005 from the font in the glyph-string.
4006 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
4007 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
4008 (next_element_from_string): Check if the character at the current
4009 position is composed by CHAR_COMPOSED_P.
4010 (next_element_from_buffer): Likewise.
4011 (next_element_from_composition): Adjust for the change of struct it.
4012 Update it->cmp_it.
4013 (dump_glyph): Adjust for the change of struct glyph.
4014 (fill_composite_glyph_string): Adjust for the change of struct
4015 it and struct glyph. Don't handle automatic composition here.
4016 (fill_gstring_glyph_string): New function.
4017 (x_get_glyph_overhangs): Handle automatic composition.
4018 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
4019 (BUILD_GSTRING_GLYPH_STRING): New macro.
4020 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
4021 automatic composition.
4022 (append_composite_glyph): Adjust for the change of struct it and
4023 struct glyph.
4024 (x_produce_glyphs): Adjust for the change of struct it.
4025
4026 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
4027 the change of struct glyph_string.
4028 (x_draw_glyph_string): Likewise.
4029
4030 2008-08-29 Glenn Morris <rgm@gnu.org>
4031
4032 * buffer.c (word-wrap): Doc fix.
4033 * xdisp.c (truncate-partial-width-windows): Doc fix.
4034 Increase default to 50.
4035
4036 2008-08-29 Chong Yidong <cyd@stupidchicken.com>
4037
4038 * xdisp.c (update_tool_bar_unwind): New function.
4039 (update_tool_bar): Temporarily set selected frame before building
4040 tool-bar items.
4041
4042 2008-08-28 Michael Albinus <michael.albinus@gmx.de>
4043
4044 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
4045 snprintf, respectively.
4046 (xd_append_arg): Convert strings with Fstring_make_unibyte.
4047
4048 2008-08-28 Chong Yidong <cyd@stupidchicken.com>
4049
4050 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
4051 LDFLAGS to GNUstep CC invocation.
4052
4053 2008-08-27 Chong Yidong <cyd@stupidchicken.com>
4054
4055 * indent.c (Fvertical_motion): Revert last change. Handle the
4056 general case where we are moving forward, and PT spans multiple
4057 screen lines.
4058
4059 * eval.c (find_handler_clause): Temporarily increase
4060 max-lisp-eval-depth while printing the backtrace buffer, to
4061 guarantee that help-mode code can run.
4062
4063 2008-08-27 Eli Zaretskii <eliz@gnu.org>
4064
4065 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
4066 colors under -rv.
4067 (IT_set_frame_parameters): Don't swap foreground and background
4068 colors if `(reverse . t)' is present in the frame properties.
4069 (internal_terminal_init): Call init_frame_faces only for the
4070 initial frame.
4071
4072 2008-08-27 Andreas Schwab <schwab@suse.de>
4073
4074 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
4075
4076 2008-08-27 Andreas Schwab <schwab@suse.de>
4077
4078 * search.c (search_buffer): Set char_base to zero only at the end.
4079
4080 2008-08-27 Kenichi Handa <handa@m17n.org>
4081
4082 * fileio.c (report_file_error): Fix handling of multibyte error string.
4083
4084 2008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
4085
4086 * xterm.c (x_term_init): Temporarily hide the partially
4087 initialized terminal while calling vendor-specific-keysyms.
4088
4089 2008-08-26 Eli Zaretskii <eliz@gnu.org>
4090
4091 * msdos.c (internal_terminal_init): Most initializations done only
4092 once, especially initial_screen_colors[] and termscript open.
4093
4094 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
4095
4096 * eval.c (Fcondition_case): Doc fix.
4097
4098 * widgetprv.h (EmacsFramePart): Change font member to the new font
4099 struct.
4100
4101 * widget.c: Include character.h and font.h for XSETFONT.
4102 (setup_frame_gcs): Compute X font id from font struct, just once.
4103
4104 2008-08-26 Eli Zaretskii <eliz@gnu.org>
4105
4106 * term.c (get_named_tty): Fix last change.
4107
4108 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
4109
4110 * indent.c (Fvertical_motion): If moving forward starting from a
4111 multi-line string, move the iterator to the last line of that string.
4112
4113 2008-08-25 Eli Zaretskii <eliz@gnu.org>
4114
4115 * frame.c (do_switch_frame): Mark previously displayed frame as
4116 obscured for FRAME_MSDOS_P frames as well.
4117
4118 2008-08-24 Eli Zaretskii <eliz@gnu.org>
4119
4120 * frame.c (make_terminal_frame): Initialize f->terminal,
4121 f->terminal->reference_count, and scroll bars on MS-DOS as well.
4122 Set the top frame to newly created frame.
4123 (Fmake_terminal_frame): Reuse the_only_display_info.
4124
4125 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
4126 estimating available memory.
4127
4128 2008-08-23 David Reitter <david.reitter@gmail.com>
4129
4130 * nsterm.m (ns_draw_window_cursor): Don't call
4131 NSDisableScreenUpdates and NSEnableScreenUpdates on
4132 non-NS_IMPL_COCOA systems.
4133
4134 2008-08-23 Andreas Schwab <schwab@suse.de>
4135
4136 * process.c (procfs_system_process_attributes): Fix use of
4137 uninitialized variables.
4138
4139 2008-08-23 Eli Zaretskii <eliz@gnu.org>
4140
4141 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
4142
4143 * dispnew.c (init_display): Remove MS-DOS specific conditions for
4144 calling tty-set-up-initial-frame-faces.
4145
4146 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
4147 Allow MSDOS frames along with X frames.
4148
4149 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
4150 addition to output_termcap.
4151
4152 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
4153
4154 * termchar.h (FRAME_TTY): Support output_msdos_raw.
4155 (struct tty_display_info) [MSDOS]: Add fields related to mouse
4156 highlight.
4157
4158 * process.c [!subprocesses]: Define QCname.
4159 (syms_of_process): Intern and staticpro it.
4160
4161 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
4162 Adjust for changes in encoding/decoding routines.
4163 Use encode_coding_object and decode_coding_object instead of
4164 encode_coding and decode_coding.
4165
4166 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
4167
4168 * dosfns.c: Include frame.h before termhooks.h.
4169 (dos_cleanup): Use CURTTY ()->termscript instead of a global
4170 variable termscript.
4171
4172 * s/msdos.h (USER_FULL_NAME): Define.
4173 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
4174
4175 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
4176 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
4177 pw->pw_gecos.
4178
4179 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
4180 SELECTED_FRAME as additional (1st) argument.
4181 (tty_read_avail_input): Handle output_msdos_raw in
4182 addition to output_termcap.
4183
4184 * msdos.c: Include frame.h before termhooks.h.
4185 (mouse_on, mouse_off, mouse_moveto, mouse_init)
4186 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
4187 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
4188 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
4189 (IT_set_terminal_modes, IT_reset_terminal_modes)
4190 (IT_set_frame_parameters): Use tty->termscript instead of a global
4191 variable termscript.
4192 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
4193 global variable terminal_coding. Don't refer to
4194 Vnonascii_translation_table.
4195 (internal_terminal_init): Set Vwindow_system in current_kboard.
4196 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
4197 Announce date and time of session start, if termscript is open.
4198 Don't zero out the_only_display_info (it is done in
4199 term.c:init_tty). Open termscript only of not already open.
4200 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
4201 here instead of dos_ttraw. Don't initialize display if this is an
4202 initial tty. Don't set FRAME_FONT.
4203 (Vwindow_system_version): Bump to 23.
4204 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
4205 is available, set up mouse_position_hook.
4206 (dos_ttraw, IT_set_terminal_modes): If called with initial
4207 terminal, do nothing.
4208 (IT_set_frame_parameters): Handle the Qtty_type frame
4209 parameter by calling internal_terminal_init.
4210 (dos_set_window_size, show_mouse_face)
4211 (clear_mouse_face, IT_note_mode_line_highlight)
4212 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
4213 (dos_rawgetc): Use tty_display_info instead of x_display_info.
4214 (initialize_msdos_display): New function.
4215 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
4216 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
4217 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
4218 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
4219 Accept additional argument: a pointer to a frame. Update all callers.
4220 (request_sigio, unrequest_sigio): Don't define, now defined on
4221 sysdep.c.
4222 (IT_write_glyphs): Rewrite to use encode_terminal_code.
4223
4224 * term.c [MSDOS]: Include msdos.h.
4225 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
4226 conditional to DOS_NT. Allow only one call to this function in a
4227 session. Don't allocate a new struct tty_display_info; instead,
4228 reuse the_only_display_info. Call get_tty_size to get screen
4229 dimensions. Call init_baud_rate to set bad_rate.
4230 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
4231 (Fsuspend_tty) [MSDOS]: Don't close input and output.
4232 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
4233 (get_tty_terminal, get_named_tty, Ftty_type)
4234 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
4235 output_termcap.
4236 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
4237 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
4238 only when subprocesses are supported.
4239
4240 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
4241 f->output_data.x.
4242 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
4243 terminal devices.
4244
4245 * msdos.h: Remove definition of struct x_display_info and struct
4246 x_output.
4247 (FRAME_FONT): Use output_data.tty.
4248 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
4249 (struct x_display_info): Rename from display_info. Update all users in
4250 msdos.c.
4251 (struct x_output): Remove background_pixel and foreground_pixel.
4252 (the_only_display_info): Rename from the_only_x_display.
4253 (dos_ttraw): Update prototype.
4254
4255 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
4256 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
4257
4258 2008-08-23 Jason Rumney <jasonr@gnu.org>
4259
4260 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
4261 (fn_TIFFSetDirectory): New library function used.
4262 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
4263 (tiff_load): Use :index to select among multiple images. Set count
4264 property when multiple images exist.
4265 (gif_format): Use :index, not :image.
4266
4267 2008-08-23 Chong Yidong <cyd@stupidchicken.com>
4268
4269 * xdisp.c (try_scrolling): Check INT_MAX instead of
4270 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
4271 to obtain INT_MAX.
4272
4273 2008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
4274
4275 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
4276
4277 2008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
4278
4279 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
4280 GNUstep library location.
4281
4282 2008-08-21 Chong Yidong <cyd@stupidchicken.com>
4283
4284 * xfaces.c (x_update_menu_appearance): Check validity of menu font
4285 before using it.
4286
4287 * puresize.h (BASE_PURESIZE): Increase to 1250000.
4288
4289 2008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4290
4291 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
4292 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
4293 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
4294 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
4295 (EmacsApp-cursor_blink_handler): Remove declaration.
4296 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
4297 match 01 Feb 2008 changes in xterm.c.
4298 (ns_read_socket): Add cast to avoid warning.
4299 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
4300 GNUstep.
4301
4302 2008-08-20 Chong Yidong <cyd@stupidchicken.com>
4303
4304 * xselect.c (x_get_foreign_selection): Return nil if desired
4305 selection could not be obtained, instead of signalling an error.
4306
4307 2008-08-20 David Reitter <david.reitter@gmail.com>
4308
4309 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
4310 * nsterm.m: Remove ns-specific code for cursor blinking.
4311 (ns_draw_window_cursor): Clear cursor properly rather than
4312 redrawing the area. Respect width of bar cursors.
4313 These changes enable the use of generic blink-cursor-mode and
4314 generic cursor types in NS and support smooth cursor movements (do
4315 not blink off after command).
4316 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
4317 Nextstep, too.
4318
4319 2008-08-19 Kenichi Handa <handa@m17n.org>
4320
4321 * font.c (Vfont_log_deferred): New variable.
4322 (font_add_log): Check Vfont_log_deferred.
4323 (font_deferred_log): New function.
4324
4325 * font.h (font_deferred_log): Extern it.
4326
4327 * fontset.c (reorder_font_vector): Use encoding charset of fonts
4328 for sorting.
4329 (face_for_char): Use deferred log.
4330
4331 2008-08-18 Kenichi Handa <handa@m17n.org>
4332
4333 * fontset.c (face_for_char): Add font log.
4334
4335 * font.c (font_add_log): Add the font properties :script, :lang,
4336 and :otf in the log.
4337
4338 2008-08-17 Chong Yidong <cyd@stupidchicken.com>
4339
4340 * xdisp.c: Remove dead code.
4341 (handle_invisible_prop, next_overlay_string): Defer call to
4342 setup_for_ellipsis.
4343 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
4344
4345 2008-08-15 Chong Yidong <cyd@stupidchicken.com>
4346
4347 * xfaces.c (lookup_derived_face): Properly handle possible zero
4348 return value of get_lface_attributes.
4349 (merge_faces): Don't tell lookup_derived_face to signal an error
4350 if face is not found.
4351
4352 * dired.c (Fdirectory_files): Doc fix.
4353
4354 * process.c (make_process): Initialize kill_without_query struct
4355 member.
4356
4357 2008-08-15 Eli Zaretskii <eliz@gnu.org>
4358
4359 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
4360 Alternative calculation of totphys for Visual Studio 6.
4361
4362 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
4363
4364 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
4365 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
4366 All users changed.
4367 (stat): Only root directory passed to GetDriveType. Allow RAM
4368 disk as well as local fixed disk when w32-get-true-file-attributes
4369 is set to `local'.
4370 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
4371 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
4372 (w32_cached_id, w32_add_to_cache): New functions.
4373 (get_name_and_id): Look account names in the cache before calling
4374 lookup_account_sid.
4375 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
4376 New initialization flags.
4377 (globals_of_w32): Initialize them to zero.
4378 (w32_system_process_attributes): Use w32_cached_id and
4379 w32_add_to_cache.
4380
4381 2008-08-14 Lawrence Mitchell <wence@gmx.li>
4382
4383 * lread.c (Fread_char, Fread_char_exclusive): If no character
4384 event is read before timeout is reached, return nil, rather than
4385 converting to a number.
4386
4387 2008-08-14 Chong Yidong <cyd@stupidchicken.com>
4388
4389 * fns.c (use_dialog_box): Doc fix.
4390
4391 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
4392 on OS X.
4393
4394 2008-08-13 Chong Yidong <cyd@stupidchicken.com>
4395
4396 * frame.c (Qns_parse_geometry): New var.
4397 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
4398
4399 2008-08-11 Chong Yidong <cyd@stupidchicken.com>
4400
4401 * xdisp.c (x_produce_glyphs): Handle the case when font has no
4402 space character in calculating tabs.
4403
4404 2008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
4405
4406 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
4407
4408 2008-08-10 Glenn Morris <rgm@gnu.org>
4409
4410 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
4411 silence gcc "limited range of data type" warnings in some
4412 make_fixnum_or_float calls.
4413
4414 2008-08-09 Eli Zaretskii <eliz@gnu.org>
4415
4416 * w32.c (w32_system_process_attributes): If the process does not
4417 exist, return nil.
4418
4419 * w32.c: Include thelp32.h, psapi.h and coding.h.
4420 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
4421 declarations.
4422 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
4423 (Process32Next_Proc): New typedefs.
4424 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
4425 (g_b_init_process32_next, g_b_init_open_thread_token)
4426 (g_b_init_impersonate_self, g_b_init_revert_to_self)
4427 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
4428 (g_b_init_get_process_working_set_size)
4429 (g_b_init_global_memory_status_ex): New static variables.
4430 (globals_of_w32): Initialize them.
4431 (create_toolhelp32_snapshot, process32_first, process32_next)
4432 (open_thread_token, impersonate_self, revert_to_self)
4433 (get_process_memory_info, get_process_working_set_size)
4434 (global_memory_status, global_memory_status_ex): New wrapper
4435 functions.
4436 (w32_list_system_processes, w32_system_process_attributes)
4437 (enable_privilege, restore_privilege, ltime, process_times):
4438 New functions.
4439 (convert_time_raw): New function.
4440 (convert_time): Remove conversion of FILETIME into time in 100
4441 nsec units, call convert_time_raw instead.
4442
4443 * process.h (w32_list_system_processes, w32_system_process_attributes):
4444 Add prototypes.
4445 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
4446 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
4447 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
4448 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
4449
4450 * process.c (Fsystem_process_attributes): Doc fix.
4451
4452 2008-08-08 Chong Yidong <cyd@stupidchicken.com>
4453
4454 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
4455 a continued multi-char glyph; if so, advance to the actual glyph.
4456
4457 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
4458
4459 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
4460
4461 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
4462 (.m.o): Use it.
4463 * config.in: Regenerate.
4464
4465 2008-08-07 Chong Yidong <cyd@stupidchicken.com>
4466
4467 * xdisp.c (redisplay_window): Revert last change.
4468 (try_window): Check bottom scroll margin too.
4469
4470 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4471
4472 * config.in: Regenerate.
4473
4474 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
4475 -list-load-path-shadows'.
4476 (nsgui.h): Reduce number of things depending on it.
4477
4478 2008-08-06 Chong Yidong <cyd@stupidchicken.com>
4479
4480 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
4481 instead of window-end which does the wrong thing at eob.
4482 (try_cursor_movement): Minor optimization.
4483 (redisplay_window): If scroll margin is defined, don't assume
4484 window doesn't need scrolling.
4485
4486 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4487
4488 * config.in: Regenerate.
4489
4490 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
4491 (mostlyclean): Don't delete *.d under NS.
4492
4493 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
4494
4495 2008-08-06 Kenichi Handa <handa@m17n.org>
4496
4497 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
4498
4499 2008-08-06 Andreas Schwab <schwab@suse.de>
4500
4501 * config.in: Regenerate.
4502
4503 2008-08-05 Chong Yidong <cyd@stupidchicken.com>
4504
4505 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
4506 forcing a window start.
4507
4508 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
4509 (auto_save_1): Update modtime when auto-save-list-file-name is on.
4510
4511 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4512
4513 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
4514 argument.
4515
4516 2008-08-05 Juanma Barranquero <lekktu@gmail.com>
4517
4518 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
4519 <scroll-down-aggressively, before-change-functions>:
4520 <after-change-functions>: Reflow docstrings.
4521
4522 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4523 Ken Raeburn <raeburn@gnu.org>
4524
4525 Dock menu customization, based on a patch by Ken Raeburn, plus some
4526 other fixes.
4527 * nsmenu.m (dockMenu): New variable.
4528 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
4529
4530 * nsterm.h (dockMenu): Declare.
4531
4532 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
4533 (ns_term_init): Initialize dockMenu.
4534 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
4535 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
4536 left.
4537
4538 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
4539
4540 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
4541
4542 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
4543
4544 * config.in: Regenerate.
4545
4546 2008-08-04 Seiji Zenitani <zenitani@mac.com>
4547
4548 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
4549
4550 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
4551
4552 * nsterm.h (find_and_call_menu_selection): Fix prototype.
4553
4554 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4555
4556 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
4557
4558 * keyboard.h: Comment an #endif.
4559
4560 * lisp.h (have_menus_p): Adjust comment.
4561
4562 * menu.c (find_and_return_menu_selection): Fix comparison with
4563 client_data.
4564
4565 * nsmenu.m (popup_activated_flag): New variable.
4566 (popup_activated): New function.
4567 (menu-or-popup-active-p): New exported lisp definition.
4568 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
4569 when popup done.
4570 (ns_popup_dialog): Set popup_activated_flag.
4571
4572 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
4573 version for GNUstep (handled by conditional typedef in nsterm.m).
4574 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
4575 in rgb.txt).
4576
4577 * process.c (init_process): Use DARWIN_OS, not DARWIN.
4578
4579 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
4580
4581 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
4582
4583 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
4584 shortcircuit if popup_activated like GTK and X toolkit.
4585
4586 * m/inter386.h: Change DARWIN to DARWIN_OS.
4587
4588 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
4589 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
4590 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
4591 comment on NO_SOCK_SIGIO.
4592
4593 2008-08-03 Chong Yidong <cyd@stupidchicken.com>
4594
4595 * nsterm.m (windowDidResize): Remove stopModal call.
4596
4597 2008-08-03 Andreas Schwab <schwab@suse.de>
4598
4599 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
4600 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
4601
4602 2008-08-02 Chong Yidong <cyd@stupidchicken.com>
4603
4604 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
4605 Don't use uninitialized pointer variable when using getrlimit.
4606
4607 2008-08-02 Jason Rumney <jasonr@gnu.org>
4608
4609 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
4610
4611 2008-08-02 Eli Zaretskii <eliz@gnu.org>
4612
4613 * alloc.c (NSTATICS): Bump to 0x640.
4614
4615 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
4616
4617 * lisp.h: Add prototype for directory_files_internal.
4618
4619 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
4620 New functions.
4621 (syms_of_process): Defsubr them. Add initializations for various
4622 Q* symbols used in procfs_system_process_attributes.
4623 (procfs_list_system_processes, procfs_system_process_attributes)
4624 [HAVE_PROCFS]: New functions.
4625 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
4626 (procfs_get_total_memory): New functions.
4627
4628 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
4629
4630 * xfaces.c (Fx_load_color_file): Fix previous change;
4631 it is #ifdef WINDOWSNT, not WINDOWS_NT.
4632
4633 2008-08-01 Michael Albinus <michael.albinus@gmx.de>
4634
4635 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
4636
4637 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4638
4639 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
4640
4641 2008-08-01 Chong Yidong <cyd@stupidchicken.com>
4642
4643 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
4644
4645 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
4646 define NSApplicationDelegateReplySuccess.
4647 (EmacsView -converstationIdentifier): Use long instead of
4648 NSInteger for GNUstep, since it doesn't have NSInteger.
4649
4650 * xmenu.c: Revert last change.
4651
4652 * keyboard.h: Fix last change.
4653
4654 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
4655
4656 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
4657 on Windows.
4658
4659 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4660
4661 Warning clearing and clean-up in NS port.
4662 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
4663 Add prototypes.
4664 * nsgui.h (FACE_DEFAULT): Remove, unused.
4665 (XGCValues): Change colors to unsigned long.
4666 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
4667 nsterm.m.
4668 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
4669 (ns_list_fonts): Remove, unused.
4670 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
4671 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
4672 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
4673 (nsfont_draw): Compare face colors to 0, not nil.
4674 * nsmenu.m (struct widget_value): Drop unneeded declaration.
4675 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
4676 (-addSubmenuWithTitle:): Use NSMenuItem class.
4677 (ns_popup_menu): Use NO, not NULL, for enabled setting.
4678 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
4679 (ns_clip_to_row): Make gc arg a BOOL.
4680 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
4681 ns_clip_to_row() call.
4682 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
4683 used). Cast FRAME_FONT assignments.
4684 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
4685 (ns_string_to_lispmod): Change arg to const char.
4686 (ns_term_init): Use NSMenuItem class.
4687 (EmacsApp -openFile:): Move to different section of file.
4688 (EmacsApp -application:openFiles:): Don't return a value, call
4689 -replyToOpenOrPrint:.
4690 (EmacsView -keyDown:): Fix up cast.
4691 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
4692 (EmacsView -menuDown:): Cast tag in call to
4693 find_and_call_menu_selection().
4694 (ns_list_fonts): Remove, unused.
4695 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
4696 (ns_fontname_to_xlfd): Make static.
4697 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
4698 Remove prototypes (now in keyboard.h).
4699 (next_menubar_widget_id): Remove, unused.
4700 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
4701 Remove prototypes (now in keyboard.h).
4702 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
4703
4704 2008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
4705
4706 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
4707 (floatfns.o): Depend on syssignal.h.
4708 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
4709
4710 * systty.h: Fix previous change that removed BSD_TERMIOS.
4711 Add comments to #ifdefs.
4712
4713 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4714
4715 * w32fns.c (w32-load-color-file): Remove.
4716 (x-open-connection): Use renamed Fx_load_color_file.
4717 * xfaces.c (x-load-color-file): Add.
4718 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
4719 Emacs.clr.
4720 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
4721
4722 2008-07-31 Michael Albinus <michael.albinus@gmx.de>
4723
4724 * dbusbind.c (Fdbus_call_method_asynchronously)
4725 (Fdbus_method_error_internal): New defuns.
4726 (xd_read_message): Handle also reply messages.
4727 (Vdbus_registered_functions_table): Extend docstring.
4728
4729 2008-07-31 Juanma Barranquero <lekktu@gmail.com>
4730
4731 * keyboard.c (gobble_input): Fix previous change.
4732
4733 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
4734
4735 * bitmaps/README:
4736 * xfns.c:
4737 * termcap.c:
4738 * term.c:
4739 * syswait.h:
4740 * systty.h:
4741 * systime.h:
4742 * syssignal.h:
4743 * sysdep.c:
4744 * process.h:
4745 * process.c:
4746 * print.c:
4747 * ndir.h:
4748 * lread.c:
4749 * keyboard.c:
4750 * getpagesize.h:
4751 * floatfns.c:
4752 * fileio.c:
4753 * emacs.c:
4754 * doc.c:
4755 * dispnew.c:
4756 * dired.c:
4757 * data.c:
4758 * callproc.c:
4759 * buffer.c:
4760 * README:
4761 * Makefile.in:
4762 * s/template.h:
4763 * s/msdos.h:
4764 * m/vax.h: Remove VMS support.
4765 * s/vms.h:
4766 * vlimit.h:
4767 * uaf.h:
4768 * temacs.opt:
4769 * param.h:
4770 * ioctl.h: Remove file.
4771
4772 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
4773
4774 * s/ms-w32.h (MULTI_KBOARD): Remove.
4775 * xterm.c:
4776 * xselect.c:
4777 * xfns.c:
4778 * window.c:
4779 * w32term.c:
4780 * w32fns.c:
4781 * terminal.c:
4782 * termhooks.h:
4783 * term.c:
4784 * sysdep.c:
4785 * keyboard.h:
4786 * keyboard.c:
4787 * frame.h:
4788 * frame.c:
4789 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
4790 * config.in: Regenerate.
4791
4792 2008-07-30 Jason Rumney <jasonr@gnu.org>
4793
4794 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
4795
4796 * w32font.c (w32font_encode_char): Leave as unicode if in range.
4797 (w32font_open_internal): Get unicode version of textmetrics.
4798 Don't enable or disable glyph indices here.
4799 (w32font_open): Disable use of glyph indices.
4800
4801 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
4802
4803 2008-07-30 Chong Yidong <cyd@stupidchicken.com>
4804
4805 * minibuf.c (Vread_buffer_function): Doc fix.
4806
4807 2008-07-30 John Paul Wallington <jpw@pobox.com>
4808
4809 * minibuf.c (read_buffer_completion_ignore_case): New var.
4810 (Fread_buffer): Use it.
4811
4812 2008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
4813
4814 * systty.h (sensemode): Remove empty #if. Remove reference to
4815 BSD_TERMIOS, unused.
4816
4817 * sysdep.c: Remove reference to DGUX.
4818 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
4819
4820 * config.in: Regenerate.
4821
4822 2008-07-30 Jason Rumney <jasonr@gnu.org>
4823
4824 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
4825
4826 2008-07-29 Jason Rumney <jasonr@gnu.org>
4827
4828 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
4829 is populated.
4830 (uniscribe_encode_char): Always use uniscribe.
4831 Avoid using context if cache is populated.
4832
4833 2008-07-29 Jan Djärv <jan.h.d@swipnet.se>
4834
4835 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
4836 open menu.
4837
4838 * gtkutil.c (menu_nav_ended): Remove.
4839 (create_menus): Remove signal connect for menu_nav_ended.
4840
4841 2008-07-28 Chong Yidong <cyd@stupidchicken.com>
4842
4843 * xdisp.c (redisplay_window): Check return value of
4844 compute_window_start_on_continuation_line before forcing a window
4845 start.
4846
4847 2008-07-28 Jason Rumney <jasonr@gnu.org>
4848
4849 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
4850
4851 * w32term.c (w32_enable_unicode_output, cleartype_active):
4852 Remove obsolete display options.
4853 (x_draw_glyph_string_background): Don't use old cleartype_active
4854 workaround.
4855 (w32_initialize): Remove cleartype_active initialization.
4856 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
4857
4858 2008-07-28 Andreas Schwab <schwab@suse.de>
4859
4860 * lisp.h (init_weak_hash_tables, syms_of_font)
4861 (xd_read_queued_messages, syms_of_dbusbind): Declare.
4862 (remove_hash_entry): Don't declare.
4863 * eval.c (maybe_call_debugger): Make static and move before use.
4864 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
4865 * xdisp.c: Include "gtkutil.h" if USE_GTK.
4866 * xterm.h (x_set_frame_alpha): Declare.
4867
4868 2008-07-28 Jan Djärv <jan.h.d@swipnet.se>
4869
4870 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
4871 (create_menus): Connect selection-done to menu_nav_ended.
4872
4873 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
4874
4875 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
4876 Set Vx_resource_name to a fallback. Replace read of 'buffered'
4877 parameter with read of 'alpha' one.
4878 (Qns_frame_parameter): Remove.
4879 * nsselect.m (selection-coding-system)
4880 (next-selection-coding-system, Vselection_coding_system)
4881 (Vnext_selection_coding_system): Drop.
4882
4883 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
4884
4885 * nsfns.m (do-applescript, do_applescript): Rename to
4886 ns-do-applescript, ns_do_applescript, and move within file.
4887
4888 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
4889
4890 Remove support for Mac Carbon.
4891 * mactoolbox.c:
4892 * macterm.h:
4893 * macterm.c:
4894 * macselect.c:
4895 * macmenu.c:
4896 * macgui.h:
4897 * macfns.c:
4898 * mac.c: Remove file.
4899 * s/darwin.h:
4900 * m/intel386.h:
4901 * xfaces.c:
4902 * xdisp.c:
4903 * window.c:
4904 * tparam.c:
4905 * termhooks.h:
4906 * termcap.c:
4907 * term.c:
4908 * syssignal.h:
4909 * sysselect.h:
4910 * sysdep.c:
4911 * process.c:
4912 * lread.c:
4913 * lisp.h:
4914 * keyboard.c:
4915 * image.c:
4916 * fringe.c:
4917 * frame.h:
4918 * frame.c:
4919 * fontset.c:
4920 * font.h:
4921 * font.c:
4922 * fns.c:
4923 * fileio.c:
4924 * emacs.c:
4925 * dispnew.c:
4926 * dispextern.h:
4927 * config.in:
4928 * atimer.c:
4929 * Makefile.in: Remove code for Carbon.
4930
4931 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4932
4933 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
4934
4935 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4936
4937 * macterm.h (kCGBitmapByteOrder32Host): New define for
4938 non-universal SDKs.
4939
4940 * image.c (mac_create_cg_image_from_image, image_load_image_io)
4941 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
4942
4943 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
4944 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
4945
4946 2008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
4947
4948 * w32inevt.c: Include dispextern.h.
4949
4950 2008-07-26 Andreas Schwab <schwab@suse.de>
4951
4952 * print.c (print_object): Fix off-by-one in last change.
4953
4954 2008-07-25 Juanma Barranquero <lekktu@gmail.com>
4955
4956 * term.c (syms_of_term): Don't initialize default_orig_pair,
4957 default_set_foreground and default_set_background on Windows.
4958
4959 2008-07-25 Jason Rumney <jasonr@gnu.org>
4960
4961 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
4962 ScriptItemize. Clean up return value checking. Remove unused
4963 variables.
4964 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
4965 shaping engine.
4966
4967 * w32font.c (w32font_has_char): Handle the case where we can't
4968 determine the script for a character.
4969
4970 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
4971
4972 * term.c (syms_of_term): Initialize default_orig_pair,
4973 default_set_foreground, and default_set_background.
4974
4975 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
4976 clash (bug#86).
4977 (getloadavg): Callers changed.
4978
4979 * image.c (svg_load_image): Fix last change.
4980 (svg_load_image): Use rsvg_handle_get_dimensions to check that
4981 image size is valid. Use g_object_unref instead of deprecated
4982 rsvg_handle_free to free rsvg handle.
4983 (x_from_xcolors): Don't initialize pixmap (silence compiler).
4984
4985 2008-07-25 Jason Rumney <jasonr@gnu.org>
4986
4987 * w32font.c (w32font_encode_char): Encode characters outside BMP as
4988 surrogates before looking up glyph index.
4989 (w32font_text_extents): Encode as surrogates if falling back to
4990 functions that need UTF-16 wide chars.
4991
4992 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
4993 BMP as surrogates before looking up glyph index.
4994
4995 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
4996
4997 * image.c (svg_load_image): Check for failure in return value of
4998 rsvg_handle_get_pixbuf. Free rsvg handle when done.
4999
5000 2008-07-25 Jason Rumney <jasonr@gnu.org>
5001
5002 * w32font.c (Fx_select_font): Reverse sense of second arg.
5003
5004 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
5005
5006 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
5007 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
5008
5009 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
5010 (PURESIZE): Use it.
5011
5012 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
5013
5014 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
5015 * m/alpha.h (TEXT_END):
5016 * m/ibmrs6000.h (TEXT_END):
5017 * m/macppc.h (TEXT_END):
5018 * s/darwin.h (TEXT_END):
5019 * s/msdos.h (TEXT_END): Remove, unused.
5020 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
5021 * s/cygwin.h: Remove comment.
5022
5023 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
5024 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
5025 * m/intel386.h (DOT_GLOBAL_START):
5026 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
5027 (USG): Remove, file not used on USG platforms.
5028
5029 * Makefile.in (HAVE_X11): Remove empty #else.
5030
5031 2008-07-24 Andreas Schwab <schwab@suse.de>
5032
5033 * fileio.c (Finsert_file_contents): Properly adjust undo list
5034 after format conversion.
5035
5036 2008-07-24 Jan Djärv <jan.h.d@swipnet.se>
5037
5038 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
5039 (menu_nav_ended): Remove.
5040 (create_menus): Remove signal connect for menu_nav_ended.
5041 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
5042 create_menus.
5043 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
5044
5045 2008-07-23 Jason Rumney <jasonr@gnu.org>
5046
5047 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
5048 with opened font.
5049 (w32font_open): Set font type to gdi.
5050
5051 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
5052
5053 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
5054
5055 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
5056 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
5057 defines it.
5058 * unexec.c (ADDR_CORRECT): Define unconditionally.
5059
5060 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
5061
5062 * unexec.c: Remove code depending on !COFF and USG, the file is
5063 not used for such systems.
5064
5065 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
5066 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
5067 (LD_SWITCH_SYSTEM_1): Remove, update users.
5068
5069 * s/darwin.h (DATA_END):
5070 * m/intel386.h (DATA_END):
5071 * m/ibmrs6000.h (DATA_END):
5072 * m/alpha.h (DATA_END): Remove, unused.
5073
5074 * config.in: Regenerate.
5075 * s/ms-w32.h (subprocesses): Define unconditionally.
5076 * s/template.h (subprocesses): Update comment.
5077 * s/vms.h (subprocesses):
5078 * s/usg5-4.h (subprocesses):
5079 * s/hpux10-20.h (subprocesses):
5080 * s/gnu-linux.h (subprocesses):
5081 * s/cygwin.h (subprocesses):
5082 * s/bsd-common.h (subprocesses):
5083 * s/aix4-2.h (subprocesses):
5084 * s/darwin.h (subprocesses): Do not define, defined by default now.
5085
5086 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
5087 Remove all references.
5088 (temacs): Add GNUstep specific ld flags.
5089
5090 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
5091 similarly to what X does.
5092
5093 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5094
5095 * nsfns.m (x-list-fonts): Remove.
5096 (syms_of_nsfns): Drop the x-list-fonts declaration.
5097 * nsterm.m: Get rid of remaining "//" comments.
5098
5099 2008-07-22 Chong Yidong <cyd@stupidchicken.com>
5100
5101 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
5102
5103 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
5104 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
5105 (Fns_own_selection_internal, Fx_disown_selection_internal)
5106 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
5107
5108 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
5109 ... */' style of docstrings. Doc fixes.
5110
5111 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
5112
5113 * terminfo.c (UP, BC, PC): Undo previous change.
5114
5115 * nsfns.m: Rename ns prefixed functions/variables to the
5116 corresponding x versions. Update references.
5117
5118 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
5119
5120 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
5121
5122 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
5123
5124 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
5125 Remove forwarding functions.
5126 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
5127 non-static.
5128 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
5129 non-static.
5130 (ns_frame_parm_handlers): Use the new names.
5131 (syms_of_nsfns): Move to the end of file.
5132
5133 * nsterm.m (syms_of_nsterm): Move to the end of file.
5134
5135 * dispnew.c (init_display): Remove code for X10.
5136
5137 2008-07-22 Jason Rumney <jasonr@gnu.org>
5138
5139 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
5140 bare drive.
5141
5142 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5143
5144 * nsterm.m (syms_of_nsterm): Remove debugging println.
5145
5146 2008-07-22 David Reitter <david.reitter@gmail.com>
5147
5148 * nsfns.m (do_applescript, F_do_applescript): NS version of the
5149 Carbon implementation of the same functionality: execute arbitrary
5150 AppleScript code.
5151
5152 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5153
5154 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
5155 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
5156 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
5157 (Fx_display_mm_height, Fx_display_mm_width)
5158 (Fx_display_backing_store, Fx_display_visual_class)
5159 (Fx_display_save_under, Fx_open_connection)
5160 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
5161 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
5162 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
5163 (Fx_display_pixel_width, Fx_display_pixel_height)
5164 (Fx_display_usable_bounds, Fx_display_planes)
5165 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
5166 ... */' style of docstrings.
5167
5168 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
5169
5170 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
5171 on this platform.
5172 (mips):
5173 * m/iris4d.h (mips): Do not define.
5174 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
5175
5176 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
5177
5178 * image.c:
5179 * nsfns.m:
5180 * nsselect.m:
5181 * nsterm.h:
5182 * nsterm.m: Rename ns prefixed functions/variables to the
5183 corresponding x versions. Update references.
5184
5185 * m/ibms390x.h (NO_REMAP): Do not undefine.
5186
5187 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
5188
5189 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
5190
5191 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
5192 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
5193 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
5194 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
5195 (Fns_display_mm_height, Fns_display_mm_width)
5196 (Fns_display_backing_store, Fns_display_visual_class)
5197 (Fns_display_save_under, Fns_open_connection)
5198 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
5199 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
5200 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
5201 (Fns_display_pixel_width, Fns_display_pixel_height)
5202 (Fns_display_usable_bounds, Fx_display_planes)
5203 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
5204
5205 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
5206
5207 * print.c (print_object): Check print_depth before searching for
5208 circularities.
5209
5210 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
5211
5212 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
5213 only sprintf.
5214
5215 2008-07-21 Kenichi Handa <handa@m17n.org>
5216
5217 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
5218
5219 2008-07-20 Andreas Schwab <schwab@suse.de>
5220
5221 * syntax.c (find_start_pos, find_start_value)
5222 (find_start_value_byte, find_start_begv, find_defun_start)
5223 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
5224
5225 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
5226
5227 * s/sol2-3.h: Insert contents of s/sol2.h.
5228 (LD_SWITCH_SYSTEM): Remove redundant definition.
5229 * s/sol2.h: Remove, unused.
5230
5231 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5232
5233 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
5234
5235 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5236
5237 * Makefile.in (ns_appdir): Fix typo in find command.
5238
5239 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
5240
5241 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
5242
5243 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
5244 added not supported anymore.
5245
5246 * s/usg5-4-2.h (LIBS_SYSTEM):
5247 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
5248
5249 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
5250 * s/lynxos.h (GETPGRP_NO_ARG):
5251 * s/hpux10-20.h (NO_SIOCTL_H):
5252 * s/gnu.h (GETPGRP_NO_ARG):
5253 * s/gnu-linux.h (NO_SIOCTL_H):
5254 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
5255 * s/cygwin.h (GETPGRP_NO_ARG):
5256 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
5257 (C_DEBUG_SWITCH): Remove duplicate definition.
5258
5259 * m/ibms390.h: Remove boilerplate comments.
5260
5261 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
5262
5263 * process.c (HAVE_SERIAL): Consolidate ifdefs.
5264 (wait_reading_process_output): Remove code for SunOS, platform not
5265 supported anymore. Use SOLARIS2 instead of sun.
5266
5267 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
5268
5269 * font.c (font_open_by_name): Under NS, default lface height to zero.
5270 (font_open_for_lface): Under NS, set size based on frame fontsize.
5271 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
5272 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
5273
5274 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
5275
5276 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
5277 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
5278 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
5279 YES/NO.
5280 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
5281 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
5282 * Makefile.in (clean): Clear out build destination dir.
5283
5284 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
5285
5286 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
5287 xterm, xselect.
5288 * lisp.h: Remove declaration of hash_remove.
5289 * nsgui.h: Remove redefinitions of hash_remove.
5290 * fns.c (hash_remove): Rename to hash_remove_from_table.
5291
5292 2008-07-19 Seiji Zenitani <zenitani@mac.com>
5293
5294 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
5295 strdup() the family UTF8String before modifying it.
5296
5297 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
5298
5299 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
5300 NS_FACE_BACKGROUND with 0 instead of nil.
5301 * nsfont.m (nsfont_draw): Same.
5302
5303 2008-07-19 Chong Yidong <cyd@stupidchicken.com>
5304
5305 * nsfns.m (ns_set_background_color): Fix crash.
5306
5307 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
5308
5309 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
5310
5311 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
5312
5313 * puresize.h (BASE_PURESIZE): Increase to 1240000.
5314
5315 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5316
5317 * gtkutil.c: Include <config.h> instead of "config.h".
5318
5319 * lisp.h (Foverlay_buffer): Add EXFUN.
5320
5321 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
5322 child process to complete child_setup. Undo 2005-09-21 change.
5323
5324 * s/darwin.h: Mention setsid after vfork.
5325
5326 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5327
5328 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
5329 Depend on macgui.h.
5330
5331 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
5332 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
5333
5334 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
5335 and f19.
5336 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
5337
5338 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
5339 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
5340 Remove enumerators.
5341
5342 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
5343 Check if FACE_FROM_ID returns NULL.
5344
5345 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
5346
5347 * w32inevt.c (change_frame_size): Remove extern declaration.
5348 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
5349 change_frame_size.
5350
5351 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
5352
5353 * getloadavg.c: Revert last change (2008-07-15).
5354
5355 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
5356
5357 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
5358 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc) set
5359 from configure.
5360
5361 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
5362
5363 * s/sol2.h:
5364 * s/sol2-4.h: Reorganize conditionals.
5365
5366 * ecrt0.c: Remove code depending on m68000, not used anymore.
5367
5368 * fns.c (hash_remove): Make static.
5369 * lisp.h (hash_remove): Don't prototype.
5370
5371 * m/ibmrs6000.h:
5372 * m/ibms390x.h:
5373 * m/macppc.h: Remove boilerplate comments.
5374
5375 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
5376 Solaris, which does not need them.
5377
5378 * m/vax.h: Remove comments about unsupported systems.
5379
5380 * s/darwin.h: Reorganize ifdefs.
5381
5382 2008-07-17 Andreas Schwab <schwab@suse.de>
5383
5384 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
5385
5386 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
5387
5388 Use SDATA. Follow coding convention of placing operators at
5389 beginning of next line rather than end of previous line, and placing
5390 spaces around infix operators.
5391
5392 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
5393 in case it was defined already.
5394 USE @GNUSTEP_MAKEFILES@ rather than envvars.
5395 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
5396 ns_default.
5397 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
5398 Lisp_Objects.
5399 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
5400 (ns_defined_color, ns_color_to_lisp): Declare.
5401 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
5402 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
5403 it's accepted even with USE_LISP_UNION_TYPE.
5404 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
5405 (update_frame_tool_bar): Remove apparently obsolete tests for
5406 non-integerness of f->tool_bar_lines.
5407 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
5408 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
5409 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
5410 (nsfont_open): Don't confuse NULL for Qnil.
5411 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
5412 * menu.h (find_and_call_menu_selection):
5413 * menu.c (find_and_call_menu_selection): Use just int for vector size.
5414 (find_and_return_menu_selection): Always return something.
5415 * frame.h: Include dispextern.h for Display_Info.
5416 (display_x_get_resource): Declare.
5417
5418 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
5419
5420 * syntax.c: Remove stdio.h include accidentally introduced in
5421 Emacs.app commit.
5422 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
5423 NS_IMPL_COCOA.
5424 * keyboard.c (handle_async_input, input_available_signal): Remove
5425 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
5426
5427 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
5428
5429 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
5430 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
5431 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
5432 Use SDATA.
5433
5434 * keymap.c: Remove all NS-specific code.
5435 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
5436 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
5437 where_is_preferred_modifier, return a different value depending on how
5438 preferred is the binding.
5439 (where_is_internal): Adjust accordingly.
5440 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
5441 Adjust to new preferred_sequence_p.
5442 (syms_of_keymap): Declare `where-is-preferred-modifier'.
5443 * keyboard.c (parse_solitary_modifier): Not static any more.
5444 * keyboard.h (parse_solitary_modifier): Declare.
5445
5446 2008-07-16 Andreas Schwab <schwab@suse.de>
5447
5448 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
5449 of easymenu.
5450
5451 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
5452
5453 * xdisp.c (move_it_in_display_line): Account for word wrap, so
5454 that we don't move off the line.
5455
5456 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
5457
5458 * keyboard.c (Qsuper): Remove.
5459 (parse_menu_item): Don't call where_is_internal specially for NS.
5460
5461 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
5462
5463 * s/gnu-linux.h: Remove boilerplate comments.
5464
5465 * m/alpha.h (__ELF__): Consolidate conditions.
5466
5467 * m/m68k.h (linux): Use GNU_LINUX instead.
5468 Remove boilerplate comments.
5469
5470 * m/intel386.h: Undo refactoring from previous change.
5471 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
5472 too, remove dead code.
5473 (linux): Use GNU_LINUX instead.
5474
5475 2008-07-16 Jason Rumney <jasonr@gnu.org>
5476
5477 * w32gui.h: Repeat 26 June changes lost by last change.
5478
5479 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
5480
5481 * systty.h: Remove code for Aix on 386, unsupported platform.
5482
5483 * s/ms-w32.h: Remove boilerplate comments.
5484 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
5485
5486 * s/gnu-linux.h (TERM): Remove support.
5487 (HAVE_SYSVIPC): Remove, unused.
5488 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
5489 for this system.
5490
5491 * process.c: Remove support for IRIS, unused.
5492 Remove support for TERM, not relevant anymore.
5493
5494 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
5495 used with the definition.
5496
5497 * s/aix4-2.h (static): Do not undef.
5498
5499 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
5500 only used on Aix.
5501 (HAVE_SYSVIPC): Remove, unused.
5502
5503 * m/hp800.h (CANNOT_DUMP): Do not undef.
5504
5505 * m/alpha.h: Fix comment.
5506
5507 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
5508 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
5509 used by this configuration.
5510 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
5511 * unexec.c: Remove code depending on HPUX and
5512 USG_SHARED_LIBRARIES, not used with this file. Remove code
5513 depending on IRIS, unused. Remove if 0-ed code.
5514
5515 * s/template.h: Remove comments about static.
5516
5517 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
5518 Remove if 0-ed code.
5519 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
5520 were the same as the default.
5521 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
5522 Remove boilerplate comments.
5523 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
5524 (HAVE_SYSVIPC): Remove, unused.
5525 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
5526
5527 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
5528 Remove boilerplate comments.
5529 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
5530 Remove boilerplate comments.
5531 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
5532 Remove boilerplate comments.
5533 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
5534
5535 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
5536 USG systems which do not use DATA_SEG_BITS.
5537 Refactor code. Remove boilerplate comments.
5538
5539 * m/ibms390.h:
5540 * m/m68k.h:
5541 * s/bsd-common.h:
5542 * s/cygwin.h:
5543 * s/darwin.h:
5544 * s/freebsd.h:
5545 * s/gnu.h:
5546 * s/msdos.h: Remove boilerplate comments.
5547
5548 * m/iris4d.h: Remove boilerplate comments and code for systems that
5549 do not use this file.
5550 (IRIS_4D): Remove, unused.
5551
5552 * m/mips.h: Remove boilerplate comments and code for systems that
5553 do not use this file.
5554 (SIGN_EXTEND_CHAR):
5555 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
5556 * unexmips.c: Remove file, unused.
5557
5558 * editfns.c (Fuser_full_name): Replace the only use of
5559 USER_FULL_NAME with its value.
5560 * config.in: Regenerate.
5561
5562 2008-07-16 David Reitter <david.reitter@gmail.com>
5563
5564 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
5565 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
5566
5567 2008-07-16 Glenn Morris <rgm@gnu.org>
5568
5569 * emacs.c (system-type): Doc fix.
5570
5571 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
5572
5573 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
5574 If the cache doesn't work, let's fix it, rather than work around it.
5575
5576 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
5577
5578 * Makefile.in: Correct additions for nsfont.o in last commit.
5579 * nsfont.m: New file (forgot last commit).
5580
5581 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
5582
5583 * callproc.c (set_initial_environment): Initialize
5584 Vprocess_environment under CANNOT_DUMP (fixes crash when
5585 batch-compiling for bootstrap).
5586
5587 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
5588 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5589
5590 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
5591 fix crash due to different init order.
5592
5593 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
5594
5595 Changes and additions for NeXTstep windowing system (Cocoa and
5596 GNUstep) support.
5597
5598 * Makefile.in:
5599 * config.in: Support defines and build commands for NS port.
5600 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
5601 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
5602 * dispextern.h: Include nsgui.h and add needed typedefs under NS
5603 windowing.
5604 (struct face): Add synth_ital field.
5605 * dispnew.c: Include nsterm.h when compiling under NS windowing.
5606 (init_display): Initialize Vinitial_window_system to "ns" when so
5607 compiled.
5608 * emacs.c: Include GSConfig.h when compiling under GNUstep.
5609 (display_arg): Use under NS.
5610 (main): Under NS, allocate autorelease pool and handle command line
5611 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
5612 (standard_args): Add NS-specific args.
5613 (shut_down_emacs): Shut down NS terminal if compiled under NS.
5614 * font.c (DEFAULT_ENCODING): New variable.
5615 (font_find_for_lface): Use it.
5616 (syms_of_font): Load syms_of_nsfont under NS.
5617 * font.h: Declare nsfont_driver when compiled under NS.
5618 * fontset.c: When compiling under NS, include nsterm.h.
5619 (fontset_from_font): Autoconstruct fontset under NS.
5620 * frame.c (various): Under NS, include nsterm.h, add Qns window system
5621 symbol, document and use it.
5622 (do_switch_frame): When for_deletion under Cocoa, add
5623 Fraise_frame(Qnil).
5624 (x_set_frame_parameters): Ensure font attribute changes are picked up.
5625 (x_get_arg): Allow "yes" and "no" as boolean values.
5626 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
5627 Qright under Cocoa.
5628 (focus-follows-mouse): Default to 0 under NS.
5629 * frame.h (enum output_method): Add output_ns.
5630 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
5631 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
5632 (FRAME_WINDOW_P): NS-specific definition.
5633 * fringe.c (max_used_fringe_bitmap): Make public.
5634 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
5635 (getloadavg): Use NeXT code under descendant OS's.
5636 * image.c (includes and header section, x_create_bitmap_from_data)
5637 (x_create_bitmap_from_file, free_bitmap_record, image_background)
5638 (image_background_transparent, x_clear_image_1)
5639 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
5640 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
5641 (x_to_xcolors, x_from_xcolors, x_disable_image)
5642 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
5643 other GUIs, including XPM support using code originally written for
5644 Carbon GUI.
5645 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
5646 using NS API.
5647 (image_ascent): Use font metrics macros instead of direct struct field
5648 access.
5649 * keyboard.c (includes): Add nsterm.h when compiling under NS.
5650 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
5651 Also, handle NS as GTK for menu bar purposes.
5652 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
5653 toolkit where they differ.
5654 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
5655 use cachelist, still needed under NS.
5656 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
5657 (struct widget_value): Define it here for menu.c.
5658 * keymap.c (includes): Include modifier internals.
5659 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
5660 NS.
5661 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
5662 support for preferring sequences using certain modifiers, specified by
5663 the FIRSTONLY argument.
5664 * lisp.h (hash_remove): Rename to avoid name clash when compiling
5665 under NS GNUstep implementation.
5666 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
5667 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
5668 * menu.c: Include nsterm.h under NS.
5669 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
5670 (free_menubar_widget_tree_value, update_submenu_strings)
5671 (find_and_call_menu_selection): Treat NS as X and NT.
5672 (find_and_return_menu_selection): New function, used for popup menus.
5673 * nsgui.h:
5674 * nsterm.h:
5675 * nsfns.m:
5676 * nsimage.m:
5677 * nsmenu.m:
5678 * nsselect.m:
5679 * nsterm.m: New files.
5680 * process.c (wait_reading_process_output): Under NS, call ns_select()
5681 instead of plain select().
5682 * syntax.c (char_quoted): Under NS, avoid a crash when called near
5683 beginning of buffer.
5684 * sysselect.h (init_process): Rename when compiling under Cocoa to
5685 avoid name conflict.
5686 * termhooks.h (display_info): Add ns_display_info to union.
5687 * terminal.c (Fterminal_live_p): Add ns to terminal types.
5688 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
5689 COCOA environment.
5690 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
5691 unexec() signature. (Note, this will dump, but the resulting file
5692 crashes; unexosx is used instead; keeping around for reference and
5693 possible aid in getting dump working under GNUstep.)
5694 * w32gui.h (button_type, widget_value): Remove definitions (now in
5695 keyboard.h).
5696 * window.c: Include nsterm.h when compiling under NS.
5697 * xdisp.c (includes): Include nsterm.h when compiling under NS.
5698 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
5699 other GUI windowing systems.
5700 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
5701 GTK.
5702 (x_consider_frame_title): Under NS, set icon type and frame
5703 modified-state indicator; use ns_set_name_as_filename() when using
5704 formatted title.
5705 (update_window_cursor): Make public when compiling under NS.
5706 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
5707 (hourglass_atimer, Vhourglass_delay
5708 * xfaces.c (header section, init_frame_faces, clear_font_table)
5709 (defined_color, unload_color, x_face_list_fonts)
5710 (prepare_face_for_display): Add NS support parallel to other GUIs.
5711 Emulate GCs like other non-X GUIs.
5712 (split_font_name): Don't lowercase font name under NS.
5713 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
5714 under NS.
5715 * s/darwin.h: Add support for compilation under NS.
5716
5717 2008-07-15 Jason Rumney <jasonr@gnu.org>
5718
5719 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
5720 (w32_show_hourglass): Rename from show_hourglass.
5721 (w32_hide_hourglass): Rename from hide_hourglass.
5722 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
5723 (Vhourglass_delay): Declare extern.
5724 (hourglass_started): Remove.
5725
5726 * xdisp.c (Vhourglass_delay): Remove static.
5727 (hourglass_started, start_hourglass, cancel_hourglass):
5728 Don't include these versions on WINDOWSNT.
5729
5730 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
5731
5732 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
5733 variables (formerly in xfns.c).
5734 (show_hourglass, hide_hourglass): New prototypes (same).
5735 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
5736 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
5737 in xfns.c).
5738 (syms_of_xdisp): Declare/initialize display-hourglass,
5739 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
5740 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
5741 formerly in xfns.c.
5742 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
5743 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
5744 (start_hourglass, cancel_hourglass): Remove.
5745 (show_hourglass, hide_hourglass): Remove prototypes and static
5746 modifiers.
5747 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
5748 hourglass_atimer, hourglass_shown_p declaration/initialization.
5749 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
5750 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
5751 (start_hourglass, cancel_hourglass): Remove.
5752 (show_hourglass, hide_hourglass): Remove prototypes and static
5753 modifiers.
5754 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
5755 hourglass_atimer, hourglass_shown_p declaration/initialization.
5756 * w32fns.c (display_hourglass_p, Vhourglass_delay)
5757 (DEFAULT_HOURGLASS_DELAY): Remove.
5758 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
5759 hourglass_shown_p declaration/initialization.
5760
5761 2008-07-14 Jason Rumney <jasonr@gnu.org>
5762
5763 * w32fns.c (w32_get_arg): Remove wrapper function.
5764 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
5765 directly.
5766 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
5767
5768 2008-07-14 Kenichi Handa <handa@m17n.org>
5769
5770 * xfont.c (xfont_open): Add workaround for X's bug.
5771
5772 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
5773
5774 * fontset.c: Include <stdio.h> unconditionally.
5775
5776 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
5777
5778 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
5779 for filtering.
5780
5781 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
5782
5783 * s/vms.h: Use __GNUC__ instead of _GNUC_.
5784
5785 * m/macppc.h:
5786 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
5787
5788 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
5789 (SPECIAL_EMACS_INT):
5790 * m/ia64.h (SPECIAL_EMACS_INT):
5791 * m/amdx86-64.h (SPECIAL_EMACS_INT):
5792 * s/gnu.h (NLIST_STRUCT):
5793 * s/aix4-2.h (X11R5_INHIBIT_I18N):
5794 * s/gnu-linux.h (LINUX):
5795 * s/msdos.h (HAVE_FACES):
5796 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
5797
5798 * systty.h:
5799 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
5800 anymore.
5801
5802 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
5803
5804 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
5805 always defined as int.
5806
5807 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
5808 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
5809 * s/gnu-linux.h (HAVE_WAIT_HEADER):
5810 * s/freebsd.h (HAVE_WAIT_HEADER):
5811 * s/bsd-common.h (HAVE_UNION_WAIT):
5812 * s/aix4-2.h (HAVE_WAIT_HEADER):
5813 * m/mips.h (HAVE_UNION_WAIT):
5814 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
5815 (COFF, static): Do not define, they are undefined later in the file.
5816
5817 * process.c (update_status): Don't use a union.
5818 (status_convert):
5819 (sigchld_handler): Use int instead of WAITTYPE.
5820
5821 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
5822
5823 * indent.c (Fvertical_motion): Restore hscroll before moving to
5824 goal column.
5825
5826 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
5827
5828 * lisp.h: Remove left over code.
5829
5830 2008-07-11 Andreas Schwab <schwab@suse.de>
5831
5832 * lisp.h: Fix logic in last change.
5833
5834 * menu.h: New file.
5835 * menu.c: Include it.
5836 * xmenu.c: Likewise.
5837 * Makefile.in: Update dependencies.
5838
5839 2008-07-11 Kenichi Handa <handa@m17n.org>
5840
5841 * fontset.c (fontset_from_font): Cancel the previous change.
5842
5843 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
5844
5845 * lisp.h:
5846 * w32heap.c:
5847 * emacs.c:
5848 * alloc.c: Replace all references of NO_UNION_TYPE with
5849 USE_LISP_UNION_TYPE.
5850
5851 * m/xtensa.h (NO_UNION_TYPE):
5852 * m/vax.h (NO_UNION_TYPE):
5853 * m/template.h (NO_UNION_TYPE):
5854 * m/sparc.h (NO_UNION_TYPE):
5855 * m/mips.h (NO_UNION_TYPE):
5856 * m/macppc.h (NO_UNION_TYPE):
5857 * m/m68k.h (NO_UNION_TYPE):
5858 * m/iris4d.h (NO_UNION_TYPE):
5859 * m/intel386.h (NO_UNION_TYPE):
5860 * m/ibms390x.h (NO_UNION_TYPE):
5861 * m/ibms390.h (NO_UNION_TYPE):
5862 * m/ibmrs6000.h (NO_UNION_TYPE):
5863 * m/ia64.h (NO_UNION_TYPE):
5864 * m/hp800.h (NO_UNION_TYPE):
5865 * m/arm.h (NO_UNION_TYPE):
5866 * m/amdx86-64.h (NO_UNION_TYPE):
5867 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
5868 defining it the same.
5869
5870 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
5871
5872 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
5873
5874 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
5875
5876 * fileio.c:
5877 * sysdep.c
5878 * systty.h:
5879 * m/ibmrs6000.h:
5880 * m/iris4d.h:
5881 * s/aix4-2.h:
5882 * s/freebsd.h:
5883 * s/gnu-linux.h:
5884 * s/hpux10-20.h:
5885 * s/hpux11.h:
5886 * s/netbsd.h:
5887 * s/sol2-3.h:
5888 * s/sol2-4.h:
5889 * s/sol2.h:
5890 * s/usg5-4.h:
5891 * s/vms.h: Remove references to unused variables.
5892
5893 2008-07-10 Andreas Schwab <schwab@suse.de>
5894
5895 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
5896 pattern before matching the generic family.
5897
5898 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
5899
5900 * unexec.c:
5901 * s/vms.h:
5902 * s/usg5-4-2.h:
5903 * s/sol2-5.h:
5904 * s/freebsd.h:
5905 * s/darwin.h: Remove dead code.
5906
5907 * m/template.h:
5908 * m/sparc.h:
5909 * m/mips.h:
5910 * m/m68k.h:
5911 * m/iris4d.h:
5912 * m/intel386.h:
5913 * m/ibms390x.h:
5914 * m/ibms390.h:
5915 * m/ia64.h:
5916 * m/hp800.h:
5917 * m/arm.h:
5918 * m/amdx86-64.h: Remove dead code and references to unused
5919 and compiler defined symbols.
5920
5921 * unexmips.c:
5922 * unexelf.c: Remove references to desupported systems.
5923
5924 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
5925
5926 * m/powermac.h: Remove boilerplate comments.
5927 (NO_REMAP): Remove unused definition.
5928
5929 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
5930 define them.
5931
5932 2008-07-10 Kenichi Handa <handa@m17n.org>
5933
5934 * xfont.c (xfont_open): Log the reason of failure.
5935
5936 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
5937
5938 * fontset.c (fontset_get_font_group):
5939 * font.c (font_check_otf): Specify argument types.
5940
5941 2008-07-09 Kenichi Handa <handa@m17n.org>
5942
5943 * coding.c (detect_coding_utf_8): Set detect_info->found only when
5944 non-ASCII char is found.
5945
5946 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
5947 (reorder_font_vector): Change the arg preferred_family to font.
5948 Prefer the spec matching with font.
5949 (fontset_get_font_group): New function.
5950 (fontset_find_font): Change the format of an element of a realized
5951 fontset. Use fontset_get_font_group.
5952 (fontset_font): Try the current fontset, the default fontset, the
5953 fallbacks of the current fontset, and the fallbacks of the default
5954 fontset in this order.
5955 (face_for_char): Delete the shortcut to use the current font.
5956 (fontset_from_font): Don't set fonts for Latin in the fontset.
5957
5958 * font.h (font_make_object, font_match_p): Adjust prototypes.
5959
5960 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
5961
5962 * font.c (font_make_object): New arg entity and pixelsize.
5963 (font_check_otf_features, font_check_otf): New functions.
5964 (font_match_p): Check :lang, :script, and :otf properties.
5965
5966 * xfont.c (xfont_open): Adjust it for the change of
5967 font_make_object.
5968 (xfont_text_extents): Fix initial setting of metrics.
5969
5970 * ftfont.c (struct ftfont_info): New member index, delete member
5971 fc_charset_idx. Make the member order compatible with struct
5972 xftfont_info.
5973 (fc_charset_table): Change charset names to registry names.
5974 (ftfont_pattern_entity): Delete the args registry and
5975 fc_charset_idx. Change the value of :font-entity property
5976 to (FONTNAME . INDEX). Always set :registry property to
5977 `iso10646-1'.
5978 (struct ftfont_cache_data): New struct.
5979 (ftfont_lookup_cache): New arg for_face.
5980 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
5981 (ftfont_driver): Set the member otf_capability.
5982 (ftfont_get_charset): Adjust it for the change of
5983 fc_charset_table.
5984 (OTF_TAG_SYM): New macro.
5985 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
5986 for the change of fc_charset_table.
5987 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
5988 ftfont_pattern_entity. Add FC_INDEX to objset.
5989 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
5990 and ftfont_pattern_entity.
5991 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
5992 font_make_object, struct ftfont_info.
5993 (ftfont_has_char): Use ftfont_get_fc_charset.
5994 (ftfont_otf_features, ftfont_otf_capability): New functions.
5995 (ftfont_shape): Use ftfont_get_otf.
5996 (ftfont_text_extents): Fix initial setting of metrics.
5997
5998 * xftfont.c (struct xftfont_info): New member ft_size. Make the
5999 member order compatible with struct ftfont_info.
6000 (xftfont_open): Add FC_CHARSET to the pattern. Set
6001 xftfont_info->ft_size. Don't unlock the face. Check BDF
6002 properties if appropriate.
6003 (xftfont_close): Unlock the face.
6004 (xftfont_anchor_point, xftfont_shape): Deleted.
6005 (syms_of_xftfont): Don't set members anchor_point and shape of
6006 xftfont_driver.
6007
6008 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
6009 font_make_object.
6010
6011 * w32font.c (w32font_open): Adjust it for the change of
6012 font_make_object.
6013 (w32font_open_internal): Don't set properties of font_object here.
6014
6015 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
6016
6017 * macfns.c (x_create_tip_frame):
6018 * w32fns.c (x_create_tip_frame):
6019 * xfns.c (x_create_tip_frame): Pass parameter argument to
6020 face-set-after-frame-default.
6021
6022 * xfaces.c (Finternal_merge_in_global_face): Save merged
6023 attributes for the default face back into the face vector.
6024
6025 2008-07-08 Andreas Schwab <schwab@suse.de>
6026
6027 * fontset.h: Declare fontset_from_font. Don't declare
6028 new_fontset_from_font and fontset_from_font_name.
6029 * xterm.c: Include "fontset.h".
6030 * Makefile.in (xterm.o): Update dependencies.
6031
6032 2008-07-08 Glenn Morris <rgm@gnu.org>
6033
6034 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
6035 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
6036
6037 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
6038
6039 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
6040 (x_set_frame_parameters): Don't bind it.
6041
6042 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
6043
6044 * w32fns.c (map_w32_filename): Declare extern.
6045
6046 2008-07-07 Jason Rumney <jasonr@gnu.org>
6047
6048 * w32term.c (WS_EX_LAYERED): Define if not already.
6049
6050 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
6051
6052 * xfaces.c (set_font_frame_param): Don't try to set the font
6053 parameter if it is still unspecified in the lface.
6054
6055 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
6056
6057 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
6058 face if it didn't already exist.
6059
6060 * xdisp.c (try_window_id): Give up if word-wrapping is on.
6061
6062 2008-07-05 Andreas Schwab <schwab@suse.de>
6063
6064 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
6065
6066 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
6067
6068 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
6069 word-wrapping.
6070 (IT_DISPLAYING_WHITESPACE): New macro.
6071 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
6072 when word-wrapping. Simplify word-wrapping logic. Use correct
6073 pixel positions when saving copies of the iterator.
6074 (display_line): Use proper wrap point if the last character on a
6075 line was preceded by whitespace.
6076
6077 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
6078
6079 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
6080
6081 2008-07-04 Kenichi Handa <handa@m17n.org>
6082
6083 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
6084
6085 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
6086
6087 2008-07-02 Jason Rumney <jasonr@gnu.org>
6088
6089 * xfns.c (syms_of_xfns): Only define x-select-font when both
6090 HAVE_FREETYPE and USE_GTK.
6091
6092 * xdisp.c (next_element_from_display_vector): Move assignment out
6093 of if statement.
6094
6095 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
6096
6097 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
6098
6099 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
6100 (syms_of_fileio): Initialize and export them.
6101 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
6102
6103 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
6104 (Fsystem_move_file_to_trash): New function.
6105 (syms_of_w32fns): Export it to lisp.
6106
6107 2008-07-01 Jason Rumney <jasonr@gnu.org>
6108
6109 * w32font.c (w32font_text_extents): Don't count overhang as part
6110 of width.
6111
6112 2008-06-30 Miles Bader <miles@gnu.org>
6113
6114 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
6115 Add `avoid_cursor_p' field.
6116
6117 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
6118 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
6119 (append_glyph, append_composite_glyph, produce_image_glyph)
6120 (append_stretch_glyph): Initialize avoid_cursor_p.
6121 (get_it_property): Rename from `get_line_height_property'.
6122 (x_produce_glyphs): Use get_it_property.
6123 (handle_line_prefix, push_display_prop): New functions.
6124 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
6125 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
6126 New variables.
6127 (syms_of_xdisp): Initialize them.
6128
6129 2008-06-30 Kenichi Handa <handa@m17n.org>
6130
6131 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
6132 XftDefaultSubstitute (they are called in XftFontMatch).
6133 (xftfont_open): Fix args to ftfont_font_format.
6134
6135 * ftfont.c (fc_charset_table): New member lang.
6136 (ftfont_resolve_generic_family): New arg pattern.
6137 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
6138 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
6139 (ftfont_open): Fix args to ftfont_font_format.
6140 (ftfont_font_format): New arg filename.
6141
6142 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
6143
6144 * xfaces.c (Finternal_merge_in_global_face): If default face was
6145 modified, realize it again. Update the font face attribute.
6146
6147 2008-06-29 Jason Rumney <jasonr@gnu.org>
6148
6149 * w32term.c (x_set_frame_alpha): Fix logic.
6150
6151 2008-06-29 Kenichi Handa <handa@m17n.org>
6152
6153 * fontset.c (Finternal_char_font): Return font-object instead of
6154 font-name.
6155
6156 * composite.c (get_composition_id): Fix the width calculation for TAB.
6157
6158 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
6159
6160 * indent.c (Fvertical_motion): Properly handle float column arg.
6161
6162 2008-06-28 Jason Rumney <jasonr@gnu.org>
6163
6164 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
6165 (pfnSetLayeredWindowAttributes): New function pointer.
6166 (w32_initialize): Initialize it when supported.
6167 (x_set_frame_alpha): New function.
6168
6169 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
6170 (w32_frame_parm_handlers): Set alpha handler.
6171
6172 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
6173
6174 2008-06-27 Jason Rumney <jasonr@gnu.org>
6175
6176 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
6177 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
6178 (w32_to_x_charset, x_to_w32_charset)
6179 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
6180 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
6181 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
6182 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
6183 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
6184 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
6185 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
6186 (Qw32_charset_unicode): Remove.
6187 (syms_of_w32fns): Update for above changes.
6188
6189 * w32font.c (w32_to_x_charset, x_to_w32_charset)
6190 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
6191 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
6192 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
6193 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
6194 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
6195 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
6196 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
6197 (syms_of_w32font): Update for above changes.
6198
6199 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
6200
6201 * s/usg5-4.h: Fix previous change: keep the correct branch of a
6202 removed #if.
6203 (USG_SHARED_LIBRARIES): Remove duplicate definition.
6204
6205 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
6206 Eli Zaretskii <eliz@gnu.org>
6207
6208 * makefile.w32-in (LOCAL_FLAGS):
6209 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
6210
6211 * sysdep.c (_spawnlp, _getpid):
6212 Declare with explicit _cdecl instead of _CRTAPI1.
6213
6214 * editfns.c (Fget_internal_run_time):
6215 Check for WINDOWSNT with #ifdef, not #if.
6216
6217 2008-06-26 Jason Rumney <jasonr@gnu.org>
6218
6219 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
6220
6221 * w32term.c (x_draw_glyph_string_foreground)
6222 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
6223 Use FONT_HANDLE macro.
6224 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
6225
6226 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
6227 (uniscribe_encode_char): Use FONT_HANDLE macro.
6228
6229 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
6230 (w32font_text_extents): Use precast w32_font.
6231 (w32font_close): Free cached metrics.
6232 (w32font_open_internal): Allocate space for name on stack.
6233
6234 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
6235
6236 * xdisp.c (extend_face_to_end_of_line): Fix last change.
6237
6238 2008-06-26 Jason Rumney <jasonr@gnu.org>
6239
6240 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
6241 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
6242
6243 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
6244
6245 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
6246
6247 2008-06-26 Jason Rumney <jasonr@gnu.org>
6248
6249 * w32bdf.c, w32bdf.h: Remove obsolete files.
6250
6251 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
6252
6253 * w32gui.h: Don't include w32bdf.h.
6254 (XCharStruct, enum w32_char_font_type, W32FontStruct):
6255 Remove obsolete font support.
6256
6257 * w32font.h (struct w32font_info): Remove compat_w32_font.
6258 Add hfont member.
6259 (FONT_COMPAT): Remove obsolete macro.
6260
6261 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
6262 (w32font_encode_char, w32font_text_extents): Use new hfont member.
6263 (w32font_open_internal): Remove compat code. Set new hfont member.
6264 (Fx_select_font): Use new hfont member.
6265
6266 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
6267 (uniscribe_encode_char): Use new hfont member.
6268
6269 * w32term.c (x_draw_glyph_string_foreground)
6270 (x_draw_composite_glyph_string_foreground): Use new hfont member.
6271 (x_draw_glyph_string): Use metrics in w32font_info.
6272
6273 2008-06-26 Kenichi Handa <handa@m17n.org>
6274
6275 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
6276
6277 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
6278
6279 * unexnext.c:
6280 * m/ews4800.h:
6281 * m/hp9000s300.h:
6282 * m/ibm370aix.h:
6283 * m/mips-siemens.h:
6284 * m/ncr386.h:
6285 * m/next.h:
6286 * m/pmax.h:
6287 * m/powerpcle.h:
6288 * m/tandem-s2.h:
6289 * s/386bsd.h:
6290 * s/bsd386.h:
6291 * s/bsd4-1.h:
6292 * s/bsd4-2.h:
6293 * s/bsdos2-1.h:
6294 * s/bsdos2.h:
6295 * s/bsdos3.h:
6296 * s/bsdos4.h:
6297 * s/nextstep.h:
6298 * s/ultrix4-3.h:
6299 * s/usg5-0.h:
6300 * s/usg5-2-2.h:
6301 * s/usg5-2.h:
6302 * s/usg5-4-3.h:
6303 * s/ux4800.h:
6304 * s/uxpds.h:
6305 * s/uxpv.h: Remove support for obsolete systems.
6306 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
6307 Remove, insert contents in s/hpux10-20.h.
6308 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
6309 Remove, insert contents in s/aix4-2.h.
6310 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
6311 * s/bsd4-3.h: Rename to ...
6312 * s/bsd-common.h: ... this.
6313 * data.c:
6314 * doc.c:
6315 * ecrt0.c:
6316 * emacs.c:
6317 * fileio.c:
6318 * floatfns.c:
6319 * keyboard.c:
6320 * mem-limits.h:
6321 * print.c:
6322 * process.c:
6323 * sysdep.c:
6324 * syssignal.h:
6325 * systty.h:
6326 * syswait.h:
6327 * term.c:
6328 * unexec.c:
6329 * unexelf.c:
6330 * unexhp9k800.c:
6331 * m/hp800.h:
6332 * m/ibmrs6000.h:
6333 * m/mips.h:
6334 * m/vax.h:
6335 * s/darwin.h:
6336 * s/freebsd.h:
6337 * s/gnu.h:
6338 * s/ms-w32.h:
6339 * s/msdos.h:
6340 * s/netbsd.h:
6341 * s/template.h: Remove references to obsolete variables.
6342
6343 * Makefile.in: Add dependencies for all unexec files.
6344 (admindir): Remove unused variable.
6345 (UNEXEC_SRC): Remove references.
6346
6347 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
6348
6349 * xfns.c (x_default_font_parameter): If Xft is available, first
6350 try Monospace-12 for the default font.
6351
6352 2008-06-25 Jason Rumney <jasonr@gnu.org>
6353
6354 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
6355
6356 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
6357
6358 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
6359
6360 * buffer.c (syms_of_buffer): Remove default-word-wrap.
6361
6362 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
6363
6364 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
6365 <scroll-conservatively>: Fix typo in docstring.
6366
6367 * xselect.c (Fx_send_client_event): Doc fix.
6368
6369 2008-06-25 Kenichi Handa <handa@m17n.org>
6370
6371 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
6372
6373 * font.c (font_parse_fcname): Remove unused variables.
6374 (font_sort_entites): Delete the arg SPEC. Caller changed.
6375 Fix for the case of ! best_only.
6376 (font_delete_unmatched): Check DPI and AVGWIDTH too.
6377
6378 * lisp.h (Fstring_to_unibyte): EXFUN it.
6379
6380 * character.h (str_to_unibyte): Extern it.
6381
6382 * character.c (str_to_unibyte): New function.
6383
6384 * fns.c (Fstring_to_unibyte): New function.
6385 (syms_of_fns): Defsubr it.
6386
6387 2008-06-24 Kenichi Handa <handa@m17n.org>
6388
6389 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
6390 DPI too.
6391 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
6392
6393 2008-06-24 Andreas Schwab <schwab@suse.de>
6394
6395 * Makefile.in (${lispsource}loaddefs.el): Rename from
6396 ../lisp/loaddefs.el.
6397 (bootstrap-clean): Do what distclean does but don't remove
6398 Makefile.
6399 (distclean): Depend on bootstrap-clean and remove Makefile.
6400
6401 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
6402
6403 * buffer.h (struct buffer): New member word_wrap.
6404
6405 * buffer.c (syms_of_buffer): New variables default-word-wrap and
6406 word-wrap.
6407 (init_buffer_once): Initialize them.
6408
6409 * dispextern.h (struct it): Replace bool truncate_lines_p with a
6410 line_wrap enum possessing three possible values.
6411
6412 * termopts.h: Replace truncate_partial_width_windows with
6413 Vtruncate_partial_width_windows.
6414
6415 * dispnew.c (direct_output_for_insert): Avoid direct output when
6416 inserting a space with word wrap on.
6417
6418 * indent.c (compute_motion): Obey integer values of
6419 truncate-partial-width-windows.
6420
6421 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
6422 replacing truncate_partial_width_windows.
6423 (init_iterator): If Vtruncate_partial_width_windows is an integer,
6424 truncate only if the window width is below that integer.
6425 (start_display, resize_mini_window, produce_stretch_glyph)
6426 (display_string, move_it_in_display_line_to): Use line_wrap.
6427 (back_to_previous_visible_line_start, reseat_1): Reset
6428 string_from_display_prop_p.
6429 (display_line): Extend default face to end of line when wrapping.
6430
6431 2008-06-24 Kim F. Storm <storm@cua.dk>
6432
6433 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
6434 to wrap continued lines at word boundaries.
6435
6436 2008-06-24 Jason Rumney <jasonr@gnu.org>
6437
6438 * font.c (Ffont_face_attributes): Multiply pixel size before point
6439 conversion to avoid multiplying rounding error.
6440
6441 2008-06-23 Jason Rumney <jasonr@gnu.org>
6442
6443 * w32term.c (x_draw_glyph_string_background)
6444 (x_draw_glyph_string): Remove old bdf font code.
6445
6446 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
6447
6448 2008-06-22 Kenichi Handa <handa@m17n.org>
6449
6450 * font.c (font_find_for_lface): Try the adstyle specified in
6451 the property of LFACE_FONT of LFACE (if any).
6452
6453 2008-06-21 Seiji Zenitani <zenitani@mac.com>
6454 Ryo Yoshitake <ryo@shiftmode.net>
6455
6456 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
6457
6458 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
6459
6460 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
6461 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
6462 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
6463 (witness-emacs): Remove.
6464 (lisp, shortlisp): Move loaddefs.el earlier.
6465 (mostlyclean): Forget about witness-emacs.
6466
6467 2008-06-22 Glenn Morris <rgm@gnu.org>
6468
6469 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
6470 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
6471
6472 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
6473
6474 * Makefile.in (PRECOMP): Remove.
6475 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
6476 (witness-emacs): Run `compile-first'.
6477 (.el.elc): Use the new compile-onefile target.
6478
6479 2008-06-21 Kenichi Handa <handa@m17n.org>
6480
6481 * xftfont.c (xftfont_open): Handle QCembolden only when
6482 FC_EMBOLDEN is defined.
6483
6484 2008-06-21 Andreas Schwab <schwab@suse.de>
6485
6486 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
6487 (.el.elc): Likewise.
6488
6489 2008-06-21 Miles Bader <miles@gnu.org>
6490
6491 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
6492 build dir, not the lisp source dir.
6493
6494 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
6495
6496 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
6497 (bootstrapclean): Remove.
6498 (.el.elc): New rule.
6499 (PRECOMP): New var.
6500 (../lisp/subdirs.el): Remove.
6501 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
6502 (witness-emacs): New target.
6503 (mostlyclean): Remove witness-emacs as well.
6504 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
6505 Add witness-emacs dependency.
6506
6507 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
6508
6509 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
6510 defined by the font.
6511
6512 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
6513
6514 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
6515 (bootstrap-clean): New target that keeps TAGS around.
6516 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
6517 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
6518
6519 2008-06-20 Jason Rumney <jasonr@gnu.org>
6520
6521 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
6522 Remove obsolete font code.
6523
6524 * w32font.c (font_matches_spec): Use csb bitfield from font signature
6525 to determine language support.
6526
6527 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
6528
6529 * sysdep.c (cfsetspeed): New fun extracted from the code.
6530 (cfmakeraw): Move before first use.
6531
6532 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
6533
6534 * sysdep.c (cfmakeraw): Provide fallback implementation.
6535 (serial_configure): Provide fallback implementation of cfsetspeed.
6536
6537 2008-06-20 Kenichi Handa <handa@m17n.org>
6538
6539 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
6540 the pattern.
6541
6542 * fontset.c (fontset_from_font): Copy font_spec before changing
6543 the elements.
6544
6545 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
6546
6547 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
6548
6549 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
6550 for explicit `font' parameters.
6551
6552 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
6553
6554 2008-06-19 Kenichi Handa <handa@m17n.org>
6555
6556 * frame.c: Include <ctype.h>.
6557 (x_set_font_backend): Allow spacing characters in the X resource
6558 for FontBackend.
6559
6560 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
6561
6562 * w32fns.c, xfns.c (Qfont_param): New var.
6563 (syms_of_w32fns): Initialize it.
6564 (x_default_font_parameter): Record explicit `font' into
6565 `font-parameter'.
6566
6567 2008-06-18 Kenichi Handa <handa@m17n.org>
6568
6569 * font.c (font_parse_xlfd): Fix previous change.
6570 (font_parse_fcname): Don't use :fc-unknown-spec.
6571 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
6572 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
6573 (font_add_log): Prepend the driver name to the resulting fonts.
6574
6575 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
6576 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
6577 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
6578
6579 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
6580 (QCembolden): New variables.
6581 (syms_of_xftfont): DEFSYM them.
6582 (xftfont_open): Call XftFontMatch. Don't trust the result of
6583 XftTextExtents8 if the pixel_size is less than 5.
6584
6585 2008-06-18 Andreas Schwab <schwab@suse.de>
6586
6587 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
6588 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
6589
6590 2008-06-18 Jason Rumney <jasonr@gnu.org>
6591
6592 * w32font.c (w32font_list, w32font_match): Add logging.
6593
6594 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
6595
6596 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
6597
6598 * font.c (font_parse_fcname): Store divider characters for
6599 unknown-spec list. For known key symbols, intern using correct
6600 symbol name.
6601
6602 2008-06-17 Kenichi Handa <handa@m17n.org>
6603
6604 * xfaces.c (realize_default_face): If the frame is not on window
6605 system, set the fontset of face to nil.
6606
6607 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
6608
6609 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
6610
6611 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
6612
6613 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
6614 (build_font_name_from_vector): Delete externs.
6615
6616 * xfaces.c (struct font_name): Don't declare.
6617
6618 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
6619
6620 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
6621
6622 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
6623
6624 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
6625
6626 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
6627
6628 * font.c (Ffont_spec): Fix usage in docstring.
6629 (Ffont_face_attributes): Doc fix.
6630
6631 2008-06-16 Andreas Schwab <schwab@suse.de>
6632
6633 * font.c (Ffont_face_attributes): Fix definition.
6634
6635 2008-06-16 Jason Rumney <jasonr@gnu.org>
6636
6637 * font.h (font_style_symbolic_from_value): Remove.
6638
6639 * font.c (font_style_symbolic_from_value): Remove.
6640 (font_style_symbolic): Revert to pre 2008-06-13 version.
6641
6642 * w32font.c (w32_to_fc_weight): New function.
6643 (w32font_full_name, logfont_to_fcname): Use it.
6644
6645 2008-06-16 Kenichi Handa <handa@m17n.org>
6646
6647 * font.c (font_check_object): Delete it.
6648 (font_clear_cache): Check if a font-object is alive.
6649 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
6650 font-object to nil.
6651 (font_close_object): Don't check FONT_CLOSE_OBJECT.
6652 (font_at): Don't call font_check_object.
6653 (Ffont_get): Return a symbol for :weight, :slant, and :width.
6654
6655 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
6656
6657 * puresize.h (BASE_PURESIZE): Increase to 1230000.
6658
6659 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
6660
6661 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
6662
6663 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
6664
6665 * font.c (font_parse_fcname): Only one decimal point.
6666 (font_unparse_fcname): Handle data in family and foundry indices
6667 as symbols, not strings.
6668 (font_unparse_gtkname, Ffont_face_attributes): New functions.
6669
6670 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
6671
6672 * font.h (font_unparse_gtkname): Add prototype.
6673
6674 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
6675
6676 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
6677
6678 2008-06-15 Andreas Schwab <schwab@suse.de>
6679
6680 * font.c (font_update_drivers): Fix crash when no drivers match.
6681
6682 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
6683
6684 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
6685 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
6686
6687 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
6688
6689 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
6690
6691 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
6692
6693 * process.c (Fserial_process_configure, Fprocess_send_eof):
6694 Use EQ to compare Lisp_Objects.
6695
6696 2008-06-13 Jason Rumney <jasonr@gnu.org>
6697
6698 * w32fns.c (Fw32_select_font): Remove old font API function.
6699
6700 * w32font.c (logfont_to_fcname): New function.
6701 (Fx_select_font): New font dialog function compatible with
6702 GTK/fontconfig version.
6703
6704 * font.c (font_style_symbolic_from_value): New function.
6705 (font_style_symbolic): Use it.
6706
6707 * font.h (font_style_symbolic_from_value): Declare new function.
6708
6709 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
6710
6711 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
6712 <font-width-table>: Fix typos in docstrings.
6713
6714 2008-06-13 Daniel Engeler <engeler@gmail.com>
6715
6716 These changes add serial port access.
6717 * process.c: Add HAVE_SERIAL.
6718 (Fdelete_process, Fprocess_status, Fset_process_buffer)
6719 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
6720 (list_processes_1, select_wrapper, Fstop_process)
6721 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
6722 (status_notify): Modify to handle serial processes.
6723 [HAVE_SERIAL] (Fserial_process_configure)
6724 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
6725 New functions.
6726 * process.h (struct Lisp_Process): Add `type'.
6727 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
6728 New functions.
6729 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
6730 serial ports.
6731 (serial_open, serial_configure): New functions.
6732 * w32.h: Add FILE_SERIAL.
6733 (struct _child_process): Add ovl_read, ovl_write.
6734
6735 2008-06-13 Kenichi Handa <handa@m17n.org>
6736
6737 * dispextern.h (enum lface_attribute_index): New member
6738 LFACE_FOUNDRY_INDEX.
6739
6740 * font.c (font_score): Delete arg alternate_families. Check only
6741 weight, slant, width, and size. Ignore the difference of alias
6742 style symbols.
6743 (font_sort_entites): Adjust for the above change. Reflect the
6744 order of font-driver to scores.
6745 (font_list_entities): Don't check alternate_familes here.
6746 (font_clear_prop): Handle foundry.
6747 (font_update_lface): Don't parse "foundry-family" form here.
6748 Handle FONT_FOUNDRY_INDEX.
6749 (font_find_for_lface): Likewise. Handle alternate families here.
6750 If registry is nil, try iso8859-1 and ascii-0.
6751 (font_open_for_lface): Pay attention to size in ENTITY.
6752 (font_open_by_name): Simplify by calling font_load_for_lface.
6753 (free_font_driver_list): Delete it.
6754 (font_update_drivers): Preserve the order of backends.
6755 (syms_of_font): Setting of sort_shift_bits adjusted for the change
6756 of font_score and font_sort_entites.
6757 (font_update_sort_order): Likewise.
6758
6759 * xfaces.c (LFACE_FOUNDRY): New macro.
6760 (check_lface_attrs): Check foundry.
6761 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
6762 (merge_face_vectors): Check foundry.
6763 (merge_face_ref): Likewise.
6764 (Finternal_set_lisp_face_attribute): Likewise.
6765 (x_update_menu_appearance): Likewise.
6766 (Finternal_get_lisp_face_attribute): Likewise.
6767 (lface_hash): Likewise.
6768 (lface_same_font_attributes_p): Likewise.
6769 (x_supports_face_attributes_p): Likewise.
6770 (tty_supports_face_attributes_p): Likewise.
6771 (Finternal_set_alternative_font_family_alist): Intern strings.
6772 (Finternal_set_alternative_font_registry_alist): Downcase strings.
6773 (realize_default_face): Set LFACE_FOUNDRY (lface).
6774
6775 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
6776 font-driver at first.
6777
6778 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
6779
6780 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
6781
6782 * lread.c (Fload): Use xfree, not free on saved_doc_string.
6783
6784 2008-06-12 Jim Meyering <meyering@redhat.com>
6785
6786 Make unexec_free handle NULL the same way free does.
6787 * unexmacosx.c (unexec_free): Ignore a NULL argument.
6788
6789 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
6790
6791 * character.h (CHAR_TO_BYTE_SAFE): New macro.
6792 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
6793 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
6794 (WEAK_ALIAS): Simplify.
6795 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
6796 when searching a unibyte buffer.
6797
6798 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
6799
6800 * xfns.c (Fx_select_font): Rename from x-font-dialog.
6801
6802 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
6803
6804 * w32font.c: Include ctype.h.
6805
6806 2008-06-11 Jason Rumney <jasonr@gnu.org>
6807
6808 * w32font.c (w32font_encode_char): Detect missing glyphs that are
6809 misreported as space.
6810 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
6811 as aliases for registry iso10646-1.
6812
6813 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
6814
6815 * buffer.c (clone_per_buffer_values): Skip `name'.
6816
6817 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
6818
6819 * font.c (font_parse_fcname): Fix last change; accept decimal
6820 points in font size.
6821
6822 2008-06-10 Jason Rumney <jasonr@gnu.org>
6823
6824 * w32uniscribe.c (add_opentype_font_name_to_list):
6825 Skip non unicode fonts.
6826
6827 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
6828
6829 * xfns.c (Fx_font_dialog): New function.
6830
6831 * gtkutil.c (xg_dialog_response_cb): Rename from
6832 xg_file_response_callback.
6833 (pop_down_dialog): Rename from pop_down_file_dialog.
6834 (xg_get_file_name): Callers changed.
6835 (xg_get_font_name): New function.
6836
6837 * gtkutil.h (xg_get_font_name): Insert prototype.
6838
6839 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
6840
6841 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
6842 x_underline_minimum_display_offset.
6843 (syms_of_xdisp): Declare it here rather than in xterm.c.
6844 * dispextern.h (underline_minimum_offset): Declare it.
6845 * w32term.c (x_draw_glyph_string): Use it.
6846 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
6847 (syms_of_xterm): Don't declare it any more.
6848 (x_draw_glyph_string): Adjust to the new name.
6849
6850 2008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
6851
6852 * xterm.c (x_underline_minimum_display_offset): New var.
6853 (x_draw_glyph_string): Use it.
6854 (syms_of_xterm): Declare it.
6855
6856 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
6857
6858 * font.c (font_parse_fcname): Accept GTK-style font names too.
6859
6860 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
6861
6862 * dired.c (file_name_completion): Don't return t if the match is exact
6863 but with different capitalization.
6864 * minibuf.c (Ftry_completion): Simplify.
6865
6866 * window.c (Vwindow_point_insertion_type): New var.
6867 (set_window_buffer): Use it.
6868 (syms_of_window): Init and export it to Lisp.
6869
6870 2008-06-10 Kenichi Handa <handa@m17n.org>
6871
6872 * font.h (font_intern_prop): Prototype adjusted.
6873
6874 * font.c (font_intern_prop): New arg force_symbol.
6875 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
6876 Adjust for the change of font_intern_prop.
6877
6878 * ftfont.c (ftfont_pattern_entity):
6879 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
6880 (w32_registry):
6881 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
6882 the change of font_intern_prop.
6883
6884 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
6885
6886 * w32menu.c (digest_single_submenu): Declare extern.
6887
6888 2008-06-09 Jason Rumney <jasonr@gnu.org>
6889
6890 * w32term.c (x_make_frame_visible): Use alternate restore flags.
6891
6892 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
6893 (parse_single_submenu): Remove.
6894 (digest_single_submenu): Remove.
6895 (syms_of_w32menu): Don't initialise variables that have moved
6896 to menu.c.
6897 (set_frame_menubar): Sync with version in xmenu.c.
6898 (w32_menu_show): Sync with xmenu_show in xmenu.c.
6899
6900 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
6901 Make static again.
6902
6903 2008-06-09 Jason Rumney <jasonr@gnu.org>
6904
6905 Changes to w32 files related to the move of common menu code
6906 to menu.c on 2008-06-08 by Chong Yidong.
6907
6908 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
6909 defs to w32gui.h.
6910 (single_keymap_panes, push_menu_item, push_menu_pane):
6911 Make globally visible.
6912
6913 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
6914 (local_free, malloc_widget_value, free_widget_value)
6915 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
6916 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
6917 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
6918 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
6919 (menu_items, menu_items_allocated, menu_items_used)
6920 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
6921 (init_menu_items, finish_menu_items, discard_menu_items)
6922 (grow_menu_items, push_submenu_start, push_submenu_end)
6923 (push_left_right_boundary, push_menu_pane, push_menu_item)
6924 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
6925 (free_menubar_widget_tree_value, parse_single_submenu)
6926 (update_submenu_strings): Remove functions.
6927 (xmalloc_widget_value): Remove and declare extern.
6928
6929 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
6930 (OBJ1): Build it.
6931
6932 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
6933 (local_heap, local_alloc, local_free, malloc_widget_value)
6934 (free_widget_value): Define here.
6935
6936 2008-06-09 Kenichi Handa <handa@m17n.org>
6937
6938 * font.h (Qascii_0): Extern it.
6939
6940 * font.c (Qascii_0): New variable.
6941 (syms_of_font): DEFSYM it.
6942 (font_open_by_name): If the registry "iso8859-1" fails, try also
6943 "ascii-0".
6944
6945 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
6946
6947 2008-06-08 Kenichi Handa <handa@m17n.org>
6948
6949 * .gdbinit (xfont): New command.
6950
6951 2008-06-08 Andreas Schwab <schwab@suse.de>
6952
6953 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
6954 * Makefile.in (menu.o): Update dependencies.
6955
6956 * Makefile.in (obj): Always add menu.o.
6957 * emacs.c (main): Always call syms_of_menu.
6958 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
6959
6960 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
6961
6962 * Makefile.in: Compile menu.c.
6963
6964 * lisp.h: Declare syms_of_menu.
6965
6966 * emacs.c (main): Call syms_of_menu.
6967
6968 * keyboard.h: Relocate platform-independent menu definitions from
6969 xmenu.c.
6970
6971 * menu.c: New file. Relocate platform-independent menu
6972 definitions from xmenu.c. Suggested by Adrian Robert.
6973
6974 * xmenu.c: Remove platform-independent menu definitions.
6975 (menu_items menu_items_inuse, menu_items_allocated)
6976 (menu_items_used, menu_items_n_panes)
6977 (menu_items_submenu_depth): Move to keyboard.h.
6978 (init_menu_items, finish_menu_items, unuse_menu_items)
6979 (discard_menu_items, restore_menu_items, save_menu_items)
6980 (grow_menu_items, push_submenu_start, push_submenu_end)
6981 (push_left_right_boundary, push_menu_pane, push_menu_item)
6982 (keymap_panes, single_keymap_panes, single_menu_item)
6983 (list_of_panes, list_of_items, find_and_call_menu_selection)
6984 (xmalloc_widget_value, free_menubar_widget_value_tree)
6985 (parse_single_submenu, digest_single_submenu)
6986 (update_submenu_strings): Move to menu.c.
6987
6988 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
6989
6990 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
6991
6992 2008-06-06 Miles Bader <miles@gnu.org>
6993
6994 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
6995 face, not frame default.
6996
6997 2008-06-05 Martin Rudalics <rudalics@gmx.at>
6998
6999 * window.c (pop_up_windows, pop_up_frames)
7000 (display_buffer_reuse_frames, Vpop_up_frame_function)
7001 (Vdisplay_buffer_function, Veven_window_heights)
7002 (Vspecial_display_buffer_names, Vspecial_display_regexps)
7003 (Vspecial_display_function, Vsame_window_buffer_names)
7004 (Vsame_window_regexps, split_height_threshold)
7005 (Vsplit_window_preferred_function): Move those vars to window.el.
7006 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
7007 (Fdisplay_buffer): Move those functions to window.el.
7008 (syms_of_window): Remove corresponding declarations.
7009 (display_buffer): New function.
7010 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
7011 * dispnew.c (Flast_nonminibuf_frame): New function.
7012 * buffer.c (Fpop_to_buffer): Move to window.el.
7013
7014 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
7015
7016 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
7017
7018 2008-06-05 Kenichi Handa <handa@m17n.org>
7019
7020 * coding.c (detect_coding): Fix previous change.
7021 (detect_coding_system): Likewise.
7022
7023 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
7024
7025 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
7026
7027 * keymap.c (Vminibuffer_local_filename_must_match_map):
7028 Rename from Vminibuffer_local_must_match_filename_map.
7029 (syms_of_keymap):
7030 * minibuf.c (Fcompleting_read): Adjust accordingly.
7031 * commands.h: Rename declaration as well.
7032
7033 2008-06-05 Kenichi Handa <handa@m17n.org>
7034
7035 * font.c (Ffont_spec): Don't use font_parse_family_registry for
7036 family name.
7037 (Ffont_put): Likewise.
7038
7039 * fontset.c (fontset_find_font): Call font_open_for_lface with the
7040 current font-spec.
7041
7042 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
7043 is unspecified.
7044
7045 * xfaces.c (realize_x_face): If the font-related face attributes
7046 are the same as those of default face, realize a new fontset from
7047 default->fontset.
7048 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
7049
7050 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
7051
7052 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
7053 (move_it_in_display_line): New wrapper.
7054
7055 * window.c (window_scroll_pixel_based_preserve_x)
7056 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
7057 (window_scroll_pixel_based, window_scroll_line_based):
7058 Use them to preserve column positions.
7059 (syms_of_window): Initialize them.
7060
7061 * indent.c (Fvertical_motion): Extend first arg to allow passing an
7062 (HPOS . VPOS) pair.
7063
7064 * dispextern.h (move_it_in_display_line): Declare.
7065
7066 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
7067
7068 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
7069 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
7070 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
7071
7072 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
7073
7074 * window.c (Fset_window_parameter): Doc fix.
7075 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
7076
7077 2008-06-04 Joakim Verona <joakim@verona.se>
7078
7079 * window.h (struct window): Add new member window_parameters.
7080
7081 * window.c (Fwindow_parameters, Fwindow_parameter)
7082 (Fset_window_parameter): New defuns.
7083 (syms_of_window): Defsubr the new defuns.
7084 (make_window): Initialize window_parameters to nil.
7085
7086 2008-06-04 John Paul Wallington <jpw@pobox.com>
7087
7088 * eval.c (Fdefmacro): Doc fix.
7089
7090 2008-06-04 Kenichi Handa <handa@m17n.org>
7091
7092 * coding.c (detect_coding): Fix handling of coding->head_ascii.
7093 Be sure to call setup_coding_system when we find a proper coding system.
7094 (detect_coding_system): Fix handling of coding->head_ascii.
7095
7096 2008-06-03 Andreas Schwab <schwab@suse.de>
7097
7098 * font.c (font_prop_validate_spacing): Fix last change.
7099
7100 2008-06-03 Kenichi Handa <handa@m17n.org>
7101
7102 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
7103 (font_parse_fcname): Fix handling of unknown key.
7104
7105 * xfont.c (xfont_list): Try an alias.
7106
7107 * charset.c (char_charset): Return NULL if the arg charset_list is
7108 specified and C doesn't belong to any of them.
7109
7110 2008-06-02 Chip Coldwell <coldwell@redhat.com>
7111
7112 * font.c (font_pixel_size): Don't take cdr of an integer.
7113
7114 2008-06-02 Jim Meyering <meyering@redhat.com>
7115
7116 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
7117 * alloc.c (xfree): Return right away for a NULL arg.
7118 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
7119 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
7120 * mac.c (create_apple_event_from_event_ref): Likewise.
7121 (create_apple_event_from_drag_ref, cfstring_create_normalized):
7122 Likewise.
7123 * doprnt.c (doprnt1): Likewise.
7124 * frame.c (frame): Likewise.
7125 * keyboard.c (wipe_kboard): Likewise.
7126 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
7127 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
7128 * term.c (tty_default_color_capabilities, maybe_fatal)
7129 (delete_tty): Likewise.
7130 * w16select.c (string): Likewise.
7131 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
7132 * w32bdf.c (w32_free_bdf_font): Likewise.
7133 * w32fns.c (w32_unload_font): Likewise.
7134 * w32font.c (w32font_close): Likewise.
7135 * window.c (size_window): Likewise.
7136 * xselect.c (receive_incremental_selection): Likewise.
7137 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
7138 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
7139 * w32.c (stat): Likewise.
7140
7141 Remove useless if-before-free tests.
7142 * editfns.c (Fset_time_zone_rule): Likewise.
7143 * lread.c (nosuffix): Likewise.
7144 * ralloc.c (get_bloc): Likewise.
7145 * regex.c (reg_free): Likewise.
7146 * xftfont.c (xftfont_open, xftfont_close): Likewise.
7147 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
7148 * xsmfns.c (smc_save_yourself_CB): Likewise.
7149
7150 2008-06-02 Kenichi Handa <handa@m17n.org>
7151
7152 * font.c (font_find_for_lface): Handle float font size.
7153 (font_open_for_lface): Likewise.
7154
7155 * xfaces.c (x_supports_face_attributes_p): Check face->font before
7156 comparing the properties.
7157
7158 2008-06-01 Jason Rumney <jasonr@gnu.org>
7159
7160 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
7161 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
7162 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
7163 Don't add empty script list.
7164 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
7165
7166 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
7167
7168 * Makefile.in (dot, dotdot): Remove, update users.
7169 ".." has been used elsewhere in the file for a long time.
7170 (LIBXT_STATIC): Remove conditional based on unused variable.
7171
7172 2008-06-01 Miles Bader <miles@gnu.org>
7173
7174 * xfaces.c (Vface_remapping_alist): New variable.
7175 (syms_of_xfaces): Initialize it.
7176 (enum named_merge_point_kind): New type.
7177 (struct named_merge_point): Add `named_merge_point_kind' field.
7178 (push_named_merge_point): Make cycle detection respect different
7179 named-merge-point kinds.
7180 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
7181 Remove face-name alias resolution.
7182 (lface_from_face_name): New definition using
7183 `lface_from_face_name_no_resolve'.
7184 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
7185 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
7186 (get_lface_attributes): New definition that layers face-remapping on
7187 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
7188 (lookup_basic_face): New function.
7189 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
7190 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
7191 `get_lface_attributes'.
7192 (face_at_buffer_position): Use `lookup_basic_face' to lookup
7193 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
7194 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
7195
7196 * xdisp.c (init_iterator): Pass base_face_id through
7197 `lookup_basic_face' when we actually use it as a face-id.
7198 (handle_single_display_prop): Use `lookup_basic_face' to lookup
7199 DEFAULT_FACE_ID.
7200
7201 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
7202 lookup the initial face-id.
7203
7204 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
7205
7206 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
7207
7208 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
7209 (Fremove_text_properties): Fix typos in docstrings.
7210
7211 2008-05-31 Kenichi Handa <handa@m17n.org>
7212
7213 * font.c (font_list_entities): Fix the car part of data to be
7214 stored in the cache.
7215
7216 * ftfont.c (ftfont_font_format): Don't use strcasestr.
7217
7218 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
7219
7220 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
7221 Add a `test' argument so another predicate than `equal' can be used.
7222 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
7223 (map_char_table): Remove unused vars `c' and `i'.
7224 * lisp.h (Foptimize_char_table): Adjust declaration.
7225 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
7226
7227 2008-05-30 Kenichi Handa <handa@m17n.org>
7228
7229 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
7230 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
7231 defined.
7232
7233 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
7234
7235 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
7236 (Fmake_variable_frame_local): Disallow mixing buffer-local and
7237 frame-local settings for the same variable.
7238
7239 2008-05-30 Kenichi Handa <handa@m17n.org>
7240
7241 * fontset.c (Ffont_info): Move to font.c.
7242 (syms_of_fontset): Delete defsubr of Sfont_info.
7243
7244 * font.c (font_style_to_value, font_score): Delete casting of the
7245 args to xstcasecmp.
7246 (register_font_driver): Increment num_font_drivers only when
7247 registering the driver globally.
7248 (Ffont_info): Move from fontset.c. Handle a font object too.
7249 (syms_of_font): Defsubr Sfont_info.
7250
7251 2008-05-29 Kenichi Handa <handa@m17n.org>
7252
7253 * coding.h (enum define_coding_utf8_arg_index): New enum.
7254 (enum coding_attr_index): Change coding_attr_utf_16_bom to
7255 coding_attr_utf_bom.
7256 (enum utf_bom_type): Rename from utf_16_bom_type.
7257 (struct utf_16_spec): Adjust for the above change.
7258 (struct coding_system): Add utf_8_bom in `spec' union.
7259
7260 * coding.c (CODING_UTF_8_BOM): New macro.
7261 (enum coding_category): Delete coding_category_utf_8, add
7262 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
7263 coding_category_utf_8_sig.
7264 (CATEGORY_MASK_UTF_8): Delete it.
7265 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
7266 (CATEGORY_MASK_UTF_8_SIG): New macros.
7267 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
7268 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
7269 CATEGORY_MASK_UTF_8_SIG.
7270 (CATEGORY_MASK_UTF_8): New macro.
7271 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
7272 (detect_coding_utf_8): Check BOM.
7273 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
7274 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
7275 (encode_coding_utf_16): Likewise.
7276 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
7277 (detect_coding, detect_coding_system): Handle utf-8-auto.
7278 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
7279 (syms_of_coding): Fix setting up of Vcoding_category_table.
7280
7281 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
7282
7283 * process.c (Faccept_process_output): If `millisec' is non-nil,
7284 `seconds' default to 0.
7285 (wait_reading_process_output): Also return non-nil if we read output
7286 from a non-running process.
7287
7288 2008-05-29 Jason Rumney <jasonr@gnu.org>
7289
7290 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
7291 `raster' specified.
7292 (add_font_entity_to_list): Allow non-opentype truetype fonts back
7293 in the uniscribe backend, but disallow any font that has no
7294 unicode subrange support.
7295
7296 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
7297
7298 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
7299 Fix typos in docstrings.
7300
7301 2008-05-29 Kenichi Handa <handa@m17n.org>
7302
7303 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
7304 (Fx_family_fonts): Set frame correctly.
7305
7306 2008-05-28 Jason Rumney <jasonr@gnu.org>
7307
7308 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
7309
7310 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
7311
7312 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
7313 calling build_annotations.
7314
7315 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
7316
7317 * coding.c (Fdecode_coding_region, Fencode_coding_region)
7318 (Fencode_coding_string):
7319 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
7320 <latin-extra-code-table>: Fix typos in docstrings.
7321 (syms_of_coding) <coding-system-alist>: Doc fix.
7322 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
7323
7324 2008-05-28 Kenichi Handa <handa@m17n.org>
7325
7326 * fontset.c (Ffont_info): Don't call font_close_object.
7327
7328 * font.c (font_parse_family_registry): Use Ffont_put to validate
7329 foundry and family.
7330 (font_delete_unmatched): Don't check spacing.
7331 (font_list_entities): Add spacing to the spec to list fonts.
7332
7333 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
7334 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
7335
7336 * coding.c (encode_coding_raw_text): Fix previous change.
7337 (encode_coding_object): When the dst_object is a buffer and is
7338 different from src_object, move gap to PT.
7339
7340 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
7341
7342 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
7343
7344 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
7345
7346 * coding.c (encode_coding_raw_text): Set coding->produced_char for
7347 all branches. Compute it differently.
7348
7349 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
7350
7351 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
7352
7353 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
7354 into "else if () ... else ...".
7355
7356 2008-05-27 Jason Rumney <jasonr@gnu.org>
7357
7358 * w32font.c (w32font_open_internal): Determine if glyph indices
7359 are likely to work here.
7360
7361 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
7362
7363 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
7364 draw overlap glyphs with appropriate highlighting.
7365
7366 2008-05-27 Kenichi Handa <handa@m17n.org>
7367
7368 * xfont.c (xfont_open): Fix calculation of font->average_width.
7369
7370 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
7371
7372 * casefiddle.c (casify_object): Try to guess better whether the
7373 argument is a byte or a char.
7374
7375 2008-05-26 Andreas Schwab <schwab@suse.de>
7376
7377 * xselect.c (x_reply_selection_request): Properly handle format == 32.
7378 Always send multiples of format size.
7379
7380 * xterm.c (x_set_frame_alpha): Fix type mismatch.
7381
7382 2008-05-26 Jason Rumney <jasonr@gnu.org>
7383
7384 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
7385 (compute_metrics): Don't set failure if we just cleared the cache.
7386 (w32_weight_table): Remove unused variable.
7387 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
7388 backwards compatibility.
7389
7390 2008-05-25 Kenichi Handa <handa@m17n.org>
7391
7392 * w32term.c (x_draw_glyph_string):
7393 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
7394
7395 * xfaces.c: Delete unused function prototypes.
7396 (xstrlwr, font_frame): Delete them.
7397 (clear_face_cache): Delete unused variable.
7398
7399 * xftfont.c (xftfont_open): Delete unused variable.
7400 If underline_thickness is not 1, adjust underline_position.
7401
7402 * ftxfont.c (ftxfont_open): Delete unused variable.
7403
7404 * fontset.c (face_for_char): Optimize for the case of no charset
7405 property.
7406
7407 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
7408 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
7409 (otf_open, font_otf_capability, generate_otf_features)
7410 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
7411 Comment out by surrounding "#if 0" and "#endif" for the moment.
7412 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
7413 (syms_of_font): Codes for accessing above commented out.
7414
7415 2008-05-24 Eli Zaretskii <eliz@gnu.org>
7416
7417 * w32proc.c: Include dispextern.h.
7418
7419 * w32.c: Include dispextern.h.
7420
7421 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
7422
7423 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
7424 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
7425 Fix typos in docstrings.
7426
7427 2008-05-23 Jason Rumney <jasonr@gnu.org>
7428
7429 * xsmfns.c: Remove includes that are already included by config.h.
7430
7431 2008-05-23 Kenichi Handa <handa@m17n.org>
7432
7433 * charset.c (Qemacs, charset_emacs): New variables.
7434 (char_charset): Fix for non-Unicode characters.
7435 (syms_of_charset): Define charset_emacs.
7436
7437 * w32term.c (x_draw_glyph_string): Be sure to update
7438 s->underline_thickness and s->underline_position. Be sure to draw
7439 underline within the current line area.
7440
7441 * xterm.c (x_draw_glyph_string): Be sure to update
7442 s->underline_thickness and s->underline_position. Be sure to draw
7443 underline within the current line area.
7444
7445 * fontset.c: Delete unused variables and add casting for char *
7446 throughout the file.
7447 (fontset_font): Try the fallback fonts of the current fontset
7448 before consulting the default fontset.
7449
7450 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
7451
7452 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
7453
7454 2008-05-22 Jason Rumney <jasonr@gnu.org>
7455
7456 * font.c: Don't include strings.h.
7457
7458 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
7459
7460 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
7461 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
7462 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
7463 to call xstrcasecmp.
7464
7465 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
7466
7467 * fontset.c (fs_query_fontset): Use xstrcasecmp.
7468
7469 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
7470
7471 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
7472
7473 2008-05-22 Kenichi Handa <handa@m17n.org>
7474
7475 * puresize.h (BASE_PURESIZE): Increase to 1220000.
7476
7477 * font.c (font_prop_validate_style): Adjust for the format
7478 change of font_style_table.
7479
7480 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
7481 two args.
7482
7483 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
7484 two args.
7485
7486 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
7487
7488 * minibuf.c (keys_of_minibuf): Delete.
7489 * lisp.h (keys_of_minibuf): Delete.
7490 * emacs.c (main): Don't call keys_of_minibuf.
7491
7492 2008-05-22 Kenichi Handa <handa@m17n.org>
7493
7494 * ftfont.c (ftfont_resolve_generic_family): Rename from
7495 ftfont_list_generic_family. Return a single family for each
7496 generic family.
7497 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
7498 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
7499 Call font_add_log.
7500 (ftfont_match): Call font_add_log.
7501
7502 * font.h (Ffont_xlfd_name): EXFUN adjusted.
7503 (FONT_DEBUG): Define it.
7504 (font_add_log): Extern it.
7505 (font_assert): Rename from xassert.
7506
7507 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
7508 (xfont_list_family): Call font_add_log.
7509 (xfont_match): Likewise.
7510 (memq_no_quit): Delete.
7511
7512 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
7513 call of Ffont_xlfd_name.
7514
7515 * xfaces.c (struct table_entry, slant_table, weight_table)
7516 (swidth_table): Move to font.c.
7517
7518 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
7519 xassert are changed to font_assert. Delete many unused variables.
7520 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
7521 New variables.
7522 (struct table_entry): Move from xfaces.c and modified.
7523 (weight_table, slant_table, width_table): Move from xfaces.c and
7524 contents adjusted for the change of struct table_entry.
7525 (font_style_to_value, font_style_symbolic): Adjust for the
7526 format change of font_style_table.
7527 (font_parse_family_registry): Don't overwrite existing foundry and
7528 family of font_spec.
7529 (font_score): Fix calculation of diff for sizes.
7530 (font_sort_entites): Call font_add_log.
7531 (font_delete_unmatched): Return a newly created list.
7532 (font_list_entities): Fix previous change. Call font_add_log.
7533 (font_matching_entity, font_open_entity, font_close_entity):
7534 Call font_add_log.
7535 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
7536 (Finternal_set_font_style_table): Delete.
7537 (BUILD_STYLE_TABLE): New macro.
7538 (build_style_table): New function.
7539 (Vfont_log, font_log_env_checked): New variables.
7540 (font_add_log): New function.
7541 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
7542 Declare Lisp variables "font-weight-table", "font-slant-table",
7543 "font-width-table", and "font-log". Initialize font_style_table.
7544
7545 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
7546
7547 * xterm.c (x_set_frame_alpha): Move declarations before statements.
7548
7549 2008-05-21 Seiji Zenitani <zenitani@mac.com>
7550 Ryo Yoshitake <ryo@shiftmode.net>
7551
7552 * frame.c (Qalpha): Add a new frame parameter `alpha'.
7553 (Vframe_alpha_lower_limit): New variable.
7554 (x_set_alpha): New function.
7555
7556 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
7557
7558 * xfns.c (x-create-frame, Qalpha):
7559 Initialize the frame parameter `alpha'.
7560 * xterm.c (OPAQUE, OPACITY): New.
7561 (x_set_frame_alpha): New function.
7562 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
7563
7564 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
7565 * w32fns.c (w32_frame_parm_handlers): Likewise.
7566
7567 2008-05-20 Jason Rumney <jasonr@gnu.org>
7568
7569 * w32font.c (add_font_entity_to_list): Don't add non-opentype
7570 truetype fonts to opentype list.
7571
7572 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
7573
7574 * fontset.c (Ffontset_info): Doc fix.
7575 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
7576 <ignore-relative-composition>: Fix typos in docstrings.
7577
7578 * font.c (syms-of-font) <font-encoding-alist>:
7579 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
7580 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
7581 (Ffont_otf_alternates): Doc fixes.
7582
7583 2008-05-20 Kenichi Handa <handa@m17n.org>
7584
7585 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
7586 font.h through out the file.
7587 (FONT_DRIVERS): Rename from FONTOBJ.
7588 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
7589 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
7590
7591 * emacs.c (main): Call syms_of_font unconditionally.
7592
7593 * font.h (find_font_encoding): Extern it.
7594
7595 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
7596 fontset.c.
7597 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
7598 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
7599 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
7600 only when HAVE_WINDOW_SYSTEM is defined.
7601 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
7602 when HAVE_WINDOW_SYSTEM is defined.
7603
7604 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
7605 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
7606
7607 * xfaces.c: Include font.h unconditionally.
7608 (merge_face_ref, merge_face_vectors)
7609 (Finternal_set_lisp_face_attribute): Cancel the previous change.
7610
7611 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
7612
7613 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
7614 indirect_variable.
7615 * eval.c (lisp_indirect_variable): New fun.
7616 (Fuser_variable_p): Use it.
7617
7618 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
7619
7620 * lisp.h (indirect_variable):
7621 * data.c (indirect_variable, let_shadows_buffer_binding_p):
7622 Use Lisp_Symbol pointers rather than Lisp_Object.
7623 Adjust callers.
7624 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
7625 To this end, change calling-convention.
7626
7627 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
7628 if some non-hidden buffers are selected by string&pred.
7629
7630 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
7631
7632 * process.c (wait_reading_process_output): Always check status
7633 when in batch mode.
7634
7635 2008-05-19 Kenichi Handa <handa@m17n.org>
7636
7637 * font.c (font_list_entities): Fix handling of cache.
7638 (font_matching_entity): Likewise.
7639
7640 * ftfont.c (cs_iso8859_1): Delete.
7641 (ft_face_cache): New variable.
7642 (struct ftfont_info): New member fc_charset_idx.
7643 (ftfont_build_basic_charsets): Delete.
7644 (fc_charset_table): New variable.
7645 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
7646 . FC_CHARSET_IDX) as :font-entity property in the font entity.
7647 Callers changed.
7648 (ftfont_lookup_cache, ftfont_get_charset): New functions.
7649 (ftfont_spec_pattern): New argument fc_charset_idx.
7650 Check registry more rigidly. Change callers.
7651 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
7652 change of :font-entity property of the font.
7653
7654 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
7655 property of the font.
7656
7657 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
7658
7659 * coding.c (Fcoding_system_p): Rename argument to match docstring.
7660 (Funencodable_char_position, Fcheck_coding_systems_region)
7661 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
7662 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
7663 (Ffind_operation_coding_system, Fset_coding_system_priority)
7664 (Fcoding_system_eol_type): Doc fixes.
7665
7666 2008-05-17 Glenn Morris <rgm@gnu.org>
7667
7668 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
7669
7670 2008-05-16 Eli Zaretskii <eliz@gnu.org>
7671
7672 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
7673 and st_gid.
7674
7675 * frame.c (Fdelete_frame): Don't call font_update_drivers if
7676 HAVE_WINDOW_SYSTEM is not defined.
7677
7678 * xfaces.c (merge_face_ref, merge_face_vectors)
7679 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
7680 HAVE_WINDOW_SYSTEM is defined.
7681 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
7682
7683 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
7684
7685 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
7686
7687 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7688
7689 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
7690
7691 2008-05-15 Kenichi Handa <handa@m17n.org>
7692
7693 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
7694 preference.
7695
7696 2008-05-15 Glenn Morris <rgm@gnu.org>
7697
7698 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
7699
7700 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
7701
7702 * fns.c (init_fns): Don't initialize weak_hash_tables here.
7703 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
7704
7705 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
7706
7707 2008-05-15 Kenichi Handa <handa@m17n.org>
7708
7709 * ftfont.c (ftfont_list): Downcase family name to check generic
7710 families.
7711
7712 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
7713 font-spec for QCfont value.
7714
7715 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
7716 buffer. Check the return value of it.
7717
7718 2008-05-14 Jason Rumney <jasonr@gnu.org>
7719
7720 * w32term.c (w32_get_glyph_overhangs): Remove.
7721 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
7722
7723 2008-05-14 Kenichi Handa <handa@m17n.org>
7724
7725 * font.c (font_prop_validate): Make nil a valid value.
7726 (font_clear_cache): Check if the cached vector of entities is nil
7727 or not.
7728
7729 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7730
7731 * emacs.c (main_thread): Conditionalize on
7732 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
7733 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
7734
7735 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
7736 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
7737 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
7738
7739 2008-05-14 Kenichi Handa <handa@m17n.org>
7740
7741 * coding.c (detect_coding_iso_2022): Ignore a coding category that
7742 has no corresponding coding system.
7743
7744 2008-05-14 Jason Rumney <jasonr@gnu.org>
7745
7746 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
7747
7748 * w32font.h (w32font_open_internal): Update declaration.
7749
7750 * w32font.c (w32font_open_internal): Change last argument from
7751 w32font_info struct to font object. Fill in font object from
7752 font_entity. Get Outline metrics if possible. Use them to
7753 calculate underline position and thickness. Use xlfd name as name
7754 property. Don't set codepage.
7755 (w32font_open): Pass font_object to w32font_open_internal. Don't
7756 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
7757 (w32font_draw): Use s->font.
7758 (clear_cached_metrics): Don't clear non-existent blocks.
7759
7760 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
7761 font was not found.
7762 (x_draw_glyph_string): Use underline position and thickness from font.
7763
7764 * w32uniscribe.c (uniscribe_open): Pass font_object to
7765 w32font_open_internal.
7766
7767 2008-05-14 Kenichi Handa <handa@m17n.org>
7768
7769 These changes are to delete all legacy font-handling codes, and
7770 make Emacs use only font-backends.
7771
7772 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
7773 (frame.o, image.o, print.o): Depend on $(FONTSRC).
7774
7775 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
7776
7777 * charset.h (Vcharset_non_preferred_head)
7778 (Vcurrent_iso639_language): Extern them.
7779
7780 * charset.c (Vcharset_non_preferred_head): New variable.
7781 (Vcurrent_iso639_language): New variable.
7782 (syms_of_charset): Declare it as a Lisp variable.
7783 (char_charset): Don't check non preferred charsets. As a last
7784 resort, return charset_unicode.
7785 (Fset_charset_priority): Update Vcharset_non_preferred_head.
7786
7787 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
7788 conditionals. Don't check enable_font_backend. Delete all codes
7789 used only when USE_FONT_BACKEND is not defined.
7790
7791 * dispextern.h (struct glyph_string): Change type of `font' to
7792 `struct font *'.
7793 (struct glyph_string): New member underline_position and
7794 underline_thickness.
7795 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
7796 (struct face): Change type of `font' to `struct font *'. Remove
7797 members `font_name', `font_info_id'.
7798 (per_char_metric, encode_char): Delete externs.
7799 (calc_pixel_width_or_height): Adjust the prototype.
7800
7801 * emacs.c (enable_font_backend): Delete extern.
7802 (main): Don't set enable_font_backend. Don't check the command
7803 line argument "-disable-font-backend".
7804
7805 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
7806 (enum font_property_index): New members FONT_DPI_INDEX,
7807 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
7808 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
7809 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
7810 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
7811 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
7812 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
7813 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
7814 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
7815 (struct font_spec, struct font_entity): New structs.
7816 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
7817 (struct font): Many members from old "struct font_info" moved to
7818 here. Members font and entity deleted.
7819 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
7820 the new font-related objects.
7821 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
7822 (CHECK_FONT_GET_OBJECT): Likewise.
7823 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
7824 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
7825 (struct font_driver): New members case_sensitive anc check. Type
7826 of the member list and open changed.
7827 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
7828 (font_symbolic_width, font_find_object, font_get_spec)
7829 (font_set_lface_from_name): Delete extern.
7830 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
7831
7832 * font.c: Include <strings.h>.
7833 (enable_font_backend): Delete it.
7834 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
7835 (CHECK_VALIDATE_FONT_SPEC): Delete it.
7836 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
7837 (null_string): Delete it.
7838 (null_vector): Make it static.
7839 (font_family_alist): Delete it.
7840 (Qnormal): Extern it.
7841 (QCextra, QClanguage): Delete it.
7842 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
7843 (font_make_spec, font_make_entity, font_make_object)
7844 (font_intern_prop): Renamed from intern_downcase. Don't downcase
7845 the string. Callers changed.
7846 (font_pixel_size): Adjusted for the format change of font-related
7847 objects.
7848 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
7849 (font_style_to_value, font_style_symbolic): New function.
7850 (build_font_family_alist): Delete it.
7851 (font_registry_charsets): Use Fassoc_string instead of
7852 assq_no_quit.
7853 (font_prop_validate_symbol): Don't return null_string.
7854 (font_prop_validate_style): Adjusted for the change of
7855 style-related values in a font vector.
7856 (font_property_table): Delete entries for QClanguage and
7857 QCantialias, add entries for QCavgwidth.
7858 (get_font_prop_index): Delete the 2nd argument FROM.
7859 (font_prop_validate): Arguments changed.
7860 (font_put_extra): Adjusted for the change of font-related objects.
7861 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
7862 (font_parse_fcname, font_unparse_fcname)
7863 (font_prepare_composition): Likewise.
7864 (font_parse_family_registry): Renamed from font_merge_old_spec.
7865 (otf_open): Delete the 1st arg entity.
7866 (font_otf_capability): Adjusted for the above change.
7867 (font_score): New arg alternate_families. Adjusted for the change
7868 of font-related objects.
7869 (font_sort_entites): New arg best_only.
7870 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
7871 Delete them.
7872 (font_match_p): Check alternate families.
7873 (font_find_object): Delete it.
7874 (font_check_object): New function.
7875 (font_clear_cache): Adjusted for the change of font-related objects.
7876 (font_delete_unmatched): New arg.
7877 (font_list_entities): Call font_driver->list with a spec that
7878 doesn't specify style-related properties.
7879 (font_matching_entity): Arguments changed. Caller changed.
7880 (font_open_entity): Adjusted for the change of font-related objects.
7881 (font_close_object, font_has_char, font_encode_char)
7882 (font_get_name, font_get_spec): Likewise.
7883 (font_spec_from_name, font_clear_prop, font_update_lface):
7884 New functions.
7885 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
7886 (font_prepare_for_face, font_done_for_face, font_open_by_name)
7887 (font_at): Adjusted for the change of font-related objects.
7888 (font_range): New function.
7889 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
7890 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
7891 (Fcopy_font_spec, Fmerge_font_spec): New function.
7892 (Ffont_family_list): Renamed from list-families.
7893 (Finternal_set_font_style_table): Arguments changed.
7894 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
7895 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
7896 change of font-related objects.
7897 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
7898
7899 * fontset.h (struct font_info): Delete it. Most members go to
7900 struct font.
7901 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
7902 (enum FONT_SPEC_INDEX): Delete it.
7903 (font_info, list_fonts_func, load_font_func, query_font_func)
7904 (set_frame_fontset_func, find_ccl_program_func)
7905 (get_font_repertory_func, new_fontset_from_font_name): Delete
7906 externs.
7907 (fontset_from_font_name): Extern it.
7908 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
7909 (FONT_INFO_FROM_FACE): Deleted.
7910 (face_for_font): Adjust prototype.
7911
7912 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
7913 conditionals. Don't check enable_font_backend. Delete all codes
7914 used only when USE_FONT_BACKEND is not defined.
7915 (get_font_info_func, list_font_func, load_font_func)
7916 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
7917 (get_font_repertory_func): Delete them.
7918 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
7919 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
7920 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
7921 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
7922 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
7923 (fontset_compare_rfontdef): New function.
7924 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
7925 rfont-defs by qsort. Adjusted for the change of font-group vector.
7926 (load_font_get_repertory): Deleted.
7927 (fontset_find_font): Use new macros to ref/set elements of
7928 font-def and rfont-def.
7929 (fontset_font): Fix the timing of remembering that no font for C.
7930 (free_face_fontset): Do nothing if the face has no fontset.
7931 (face_suitable_for_char_p): Use new macros to ref/set elements of
7932 rfont-def.
7933 (face_for_char): Likewise. Call face_for_char with font_object.
7934 (fs_load_font): Delete. Delete #pragma surrounding it.
7935 (fs_query_fontset): Use strcasecmp instead of strcmp.
7936 (generate_ascii_font_name): Adjusted for the format change of
7937 font-spec.
7938 (Fset_fontset_font): Likewise. Use new macros to set elements of
7939 font-def.
7940 (Fnew_fontset): Use font_unparse_xlfd to generate
7941 FONTSET_ASCII (fontset).
7942 (new_fontset_from_font_name): Deleted.
7943 (fontset_from_font): Renamed from new_fontset_from_font. Check if
7944 a fontset is already created for the font. FIx updating of
7945 Vfontset_alias_alist.
7946 (fontset_ascii_font): Deleted.
7947 (Ffont_info): Adjusted for the format change of font-spec.
7948 (Finternal_char_font): Likewise.
7949 (Ffontset_info): Likewise.
7950 (syms_of_fontset): Don't check load_font_func.
7951
7952 * fns.c (internal_equal): Handle PREV_FONT.
7953
7954 * frame.h: Delete USE_FONT_BACKEND conditional.
7955
7956 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
7957 conditionals. Don't check enable_font_backend. Delete all codes
7958 used only when USE_FONT_BACKEND is not defined.
7959 (x_set_font): Call x_new_font, not x_new_fontset2.
7960 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
7961 already set for the frame.
7962
7963 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
7964 a font-entity by font_make_entity. Use font_intern_prop instead
7965 of intern_downcase. Use FONT_SET_STYLE to set a style-related
7966 font property. If a font is scalable, set avgwidth property to 0.
7967 Set font-entity property by font_put_extra.
7968 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
7969 (ffont_driver): Adjusted for the change of struct font_driver.
7970 (ftfont_spec_pattern): New function.
7971 (ftfont_list): Return a list, not vector.
7972 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
7973 (ftfont_list_family): Don't downcase names.
7974 (ftfont_free_entity): Deleted.
7975 (ftfont_open): Return a font-object. Adjusted for the change of
7976 struct font. Get underline_thickness and underline_position from
7977 font property. Don't update dpyinfo->smallest_font_height and
7978 dpyinfo->smallest_char_width.
7979 (ftfont_close): Don't free `struct font'.
7980 (ftfont_has_char): Adjusted for the format change of font-entity.
7981 (ftfont_encode_char, ftfont_text_extents): Likewise.
7982
7983 * ftxfont.c (ftxfont_list): Return a list, not vector.
7984 (ftxfont_open): Return a font-object. Adjusted for the change of
7985 struct font. Get underline_thickness and underline_position from
7986 font property. Don't update dpyinfo->smallest_font_height and
7987 dpyinfo->smallest_char_width.
7988 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
7989 (ftxfont_draw): Adjusted for the change of struct font.
7990
7991 * image.c (image_ascent): Don't include "charset.h". Include
7992 "character.h" and "font.h".
7993
7994 * lisp.h (enum pvec_type): New member PREV_FONT.
7995 (Fassoc_string): EXFUN it.
7996
7997 * print.c: Include font.h.
7998 (print_object): Handle font-related objects.
7999
8000 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
8001 conditionals. Don't check enable_font_backend. Delete all codes
8002 used only when USE_FONT_BACKEND is not defined.
8003 (handle_auto_composed_prop): Do nothing if it->f is not on a
8004 window system. Check how many following characters can be
8005 displayed by the same font.
8006 (calc_pixel_width_or_height): Type of the 4th arg is changed to
8007 'struct font *'.
8008 (get_char_face_and_encoding): Assign the whole encoding task to
8009 the `encode-char' method of a font driver.
8010 (fill_composite_glyph_string): Adjusted for the change of `struct
8011 face' and `struct glyph_string'.
8012 (fill_glyph_string): Likewise.
8013 (get_per_char_metric): Arguments changed.
8014 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
8015 and `struct glyph_string'.
8016 (produce_stretch_glyph, calc_line_height_property)
8017 (x_produce_glyphs): Likewise.
8018
8019 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
8020 conditionals. Don't check enable_font_backend. Delete all codes
8021 used only when USE_FONT_BACKEND is not defined. Use
8022 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
8023 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
8024 (Qp): Extern them.
8025 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
8026 Deleted.
8027 (struct font_name): Deleted.
8028 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
8029 (compare_fonts_by_sort_order): New function.
8030 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
8031 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
8032 Deleted.
8033 (Fx_family_fonts): Use font_list_entities, and sort fonts by
8034 compare_fonts_by_sort_order.
8035 (Fx_font_family_list): Call Ffont_family_list.
8036 (face_numeric_value, face_numeric_weight, face_numeric_slant)
8037 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
8038 (face_symbolic_slant, face_symbolic_swidth)
8039 (split_font_name_into_vector, build_font_name_from_vector)
8040 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
8041 (font_rescale_ratio, split_font_name, build_font_name)
8042 (free_font_names, sort_fonts, x_face_list_fonts)
8043 (face_font_available_p, sorted_font_list, cmp_font_names)
8044 (font_list_1, concat_font_list, font_list, remove_duplicates):
8045 Deleted.
8046 (Fx_list_fonts): Use Ffont_list.
8047 (LFACE_AVGWIDTH): Deleted.
8048 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
8049 by FONTP.
8050 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
8051 (set_lface_from_font_name): Delete it.
8052 (set_lface_from_font): Renamed from
8053 set_lface_from_font_and_fontset. Caller changed. Don't set
8054 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
8055 for face.
8056 (merge_face_vectors): Copy font-spec if necessary.
8057 Clear properties of the font-spec if necessary.
8058 (merge_face_ref): Clear properties of the font-spec if necessary.
8059 (Finternal_set_lisp_face_attribute): Likewise.
8060 (set_font_frame_param): Use font_load_for_lface to load a
8061 font-object, and call Fmodify_frame_parameters with it.
8062 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
8063 font name by Ffont_xlfd_name.
8064 (Finternal_lisp_face_attribute_values): Don't check QCweight,
8065 QCslant, and QCwidth.
8066 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
8067 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
8068 Compare fonts by EQ.
8069 (lookup_non_ascii_face): Deleted.
8070 (face_for_font): The 2nd argument changed.
8071 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
8072 Check atomic font properties by case insensitive.
8073 (realize_non_ascii_face): Set face->overstrike correctly.
8074 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
8075 (dump_realized_face): Get font name from
8076 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
8077
8078 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
8079 conditionals. Don't check enable_font_backend. Delete all codes
8080 used only when USE_FONT_BACKEND is not defined.
8081 (xic_create_xfontset): Original code deleted and renamed from
8082 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
8083 (x_make_gc): Don't set GCFont in GCs.
8084 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
8085 opened by "fixed".
8086 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
8087 find_ccl_program_func, query_font_func, set_frame_fontset_func,
8088 get_font_repertory_func.
8089
8090 * xfont.c: Include <stdlib.h> and "ccl.h".
8091 (struct xfont_info): New structure.
8092 (xfont_query_font): Deleted.
8093 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
8094 moved from xterm.c.
8095 (xfont_driver): Adjusted for the change of struct font_driver.
8096 (compare_font_names): New function.
8097 (xfont_list_pattern): Sort font names case insensitively. Make
8098 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
8099 (xfont_list): Return a list, not vector.
8100 (xfont_match): If the font doesn't have QCname property, generate
8101 a name from the other font properties.
8102 (xfont_open): Return a font-object. Adjusted for the change of
8103 struct font. Get underline_thickness and underline_position from
8104 font property. Don't update dpyinfo->smallest_font_height and
8105 dpyinfo->smallest_char_width.
8106 (xfont_close): Don't free struct font.
8107 (xfont_prepare_face): Adjusted for the change of struct font.
8108 (xfont_done_face): Deleted.
8109 (xfont_has_char): Adjusted for the change of struct font.
8110 (xfont_encode_char, xfont_draw): Likewise.
8111 (xfont_check): New function.
8112
8113 * xftfont.c (xftfont_list): Adjusted for the change of `list'
8114 callback function.
8115 (xftfont_match): Adjusted for the format change of font-entity.
8116 (xftfont_open): Adjusted for the format change of font-entity and
8117 font-object. Adjusted for the change of struct font. Return a
8118 font-object. Don't update dpyinfo->smallest_font_height and
8119 dpyinfo->smallest_char_width.
8120 (xftfont_close): Block input while calling XftFontClose.
8121 (xftfont_prepare_face): Don't block input while calling
8122 xftfont_get_colors. Adjusted for the change of struct font.
8123 (xftfont_shape): Return value of error case fixed.
8124
8125 * xrdb.c (x_load_resources): Don't setup a fontset resource.
8126
8127 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
8128 conditionals.
8129 (FONT_WIDTH): Return (f)->max_width.
8130 (struct x_display_info): Delete member `font'.
8131 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
8132 (x_find_ccl_program, x_get_font_repertory): Delete externs.
8133 (struct x_output): Change type of `font' to `struct font *'.
8134
8135 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
8136 conditionals. Don't check enable_font_backend. Delete all codes
8137 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
8138 (x_per_char_metric, x_encode_char): Deleted.
8139 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
8140 (x_compute_glyph_string_overhangs): Adjusted for the change of
8141 `struct face'.
8142 (x_draw_glyph_string_foreground)
8143 (x_draw_composite_glyph_string_foreground): Likewise.
8144 (x_draw_glyph_string): Likewise. Use font->underline_position and
8145 font->underline_thickness.
8146 (x_new_font): Renamed from x_new_fontset2.
8147 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
8148 (x_check_font): Call `check' method of a font driver.
8149 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
8150 (x_query_font, x_get_font_repertory): Deleted.
8151 (x_find_ccl_program): Renamed and moved to xfont.c.
8152 (x_redisplay_interface): Adjusted for the change of `struct
8153 redisplay_interface'.
8154
8155 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
8156 conditionals. Don't check enable_font_backend. Delete all codes
8157 used only when USE_FONT_BACKEND is not defined. Surround non-used
8158 code by "#ifdef OLD_FONT" and "endif".
8159 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
8160
8161 * w32font.h (struct w32font_info): New member.
8162 (FONT_COMPAT): New macro.
8163 (w32font_open_internal): Prototype adjusted.
8164
8165 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
8166 OLD_FONT" and "endif".
8167
8168 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
8169 conditionals. Don't check enable_font_backend. Delete all codes
8170 used only when USE_FONT_BACKEND is not defined.
8171 (w32font_open): Return a font-object. Make a font-object by
8172 font_make_object. Adjusted for the change of struct w32font_info.
8173 (w32font_close): Don't free struct font. Adjusted for the change
8174 of struct w32font_info.
8175 (w32font_encode_char, w32font_text_extents, w32font_draw):
8176 Adjusted for the change of struct w32font_info.
8177 (w32font_draw): Likewise.
8178 (w32font_list_internal): Return a list, not vector.
8179 (w32font_open_internal): Change the 4th arg to font-object.
8180 Adjusted for the change of struct w32font_info and font-object format.
8181 (add_font_name_to_list): Don't downcase names.
8182 (w32_enumfont_pattern_entity): Make a font-entity by
8183 font_make_entity. Adjusted for the format change of font-entity.
8184 Use FONT_SET_STYLE to set a style-related font property. If a
8185 font is scalable, set avgwidth property to 0. Set font-entity
8186 property by font_put_extra.
8187 (font_matches_spec): Adjusted for the format change of font-entity.
8188 (w32_weight_table, w32_decode_weight): New variables.
8189 (w32_encode_weight): New function.
8190 (fill_in_logfont): Adjusted for the format change of font-spec.
8191 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
8192 weight value.
8193 (w32font_driver): Adjusted for the change of struct font_driver.
8194
8195 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
8196 conditionals. Don't check enable_font_backend. Surround non-used
8197 code by "#ifdef OLD_FONT" and "endif".
8198 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
8199 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
8200
8201 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
8202 conditionals. Don't check enable_font_backend. Delete all codes
8203 used only when USE_FONT_BACKEND is not defined. Surround non-used
8204 code by "#ifdef OLD_FONT" and "endif".
8205
8206 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
8207 (uniscribe_open): Return value changed to font-object.
8208 Adjusted for the format change of font-object.
8209 (uniscribe_otf_capability): Adjusted for the change of struct font.
8210 (add_opentype_font_name_to_list): Don't downcase names.
8211 (uniscribe_font_driver): Adjusted for the change of struct
8212 font_driver.
8213
8214 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
8215
8216 * dispnew.c (update_frame_1): Check if tty output is still valid
8217 before flushing it.
8218
8219 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
8220
8221 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
8222 to Gtk+ menus.
8223
8224 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
8225
8226 * dired.c (file_name_completion): Tweak the code so as to always do it
8227 in a single pass. Tighten the scope of some variables.
8228
8229 * dired.c (Qdefault_directory): New var.
8230 (file_name_completion): Use it instead of Fexpand_file_name.
8231 (syms_of_dired): Initialize it.
8232
8233 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
8234
8235 * fileio.c (double_dollars): Remove dead code.
8236
8237 2008-05-10 Eli Zaretskii <eliz@gnu.org>
8238
8239 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
8240 Mention w32-get-true-file-attributes in doc string.
8241
8242 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
8243
8244 2008-05-09 Glenn Morris <rgm@gnu.org>
8245
8246 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
8247 2008-04-23.
8248
8249 2008-05-09 Eli Zaretskii <eliz@gnu.org>
8250
8251 Support for reporting owner and group of each file on MS-Windows:
8252 * dired.c (stat_uname, stat_gname): New functions, with special
8253 implementation for w32.
8254 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
8255
8256 * w32.c: Rename the_passwd_* to dflt_passwd_*.
8257 (dflt_group_name): New static variable.
8258 (dflt_group): Rename from the_group.
8259 (init_user_info): Init dflt_group fields. Get user's group name
8260 from LookupAccountSid.
8261 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
8262 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
8263 New initialization states.
8264 (globals_of_w32): Initialize them to zero. Initialize the default
8265 group name to "None".
8266 (GetFileSecurity_Name): New global var, the name of the function
8267 to call for GetFileSecurity.
8268 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
8269 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
8270 (get_file_security, get_security_descriptor_owner)
8271 (get_security_descriptor_group, is_valid_sid)
8272 (get_file_security_desc, get_rid, get_name_and_id)
8273 (get_file_owner_and_group): New functions.
8274 (stat): Use get_file_security_desc and get_file_owner_and_group to
8275 report the owner and primary group of each file. Don't ignore the
8276 high 32 bits of file's size, now that st_size is 64-bit wide.
8277 Fix test when to get true file attributes.
8278 (init_user_info): Use get_rid instead of equivalent inline code.
8279 (fstat): Don't ignore the high 32 bits of file's size.
8280
8281 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
8282
8283 * image.c (png_load): Use correct bit-depth for setting background
8284 color.
8285
8286 2008-05-08 Eli Zaretskii <eliz@gnu.org>
8287
8288 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
8289 epa-hook.elc.
8290
8291 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
8292
8293 * font.c (Ffont_match_p): Don't use `iff' in docstring.
8294
8295 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
8296
8297 * macfns.c (Fx_create_frame): Make a copy of frame parameters
8298 because the original parameters are in pure storage now.
8299 (mac_window): Remove unused params. Update callers.
8300
8301 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
8302
8303 * lread.c (substitute_object_recurse): Use lower-level primitives.
8304 Don't signal errors when traversing sub-char-tables.
8305 Don't loop over all the possible characters when traversing char-tables.
8306
8307 * print.c (print_preprocess): Add sub-char-tables to the print-table,
8308 just like we do in print.c.
8309
8310 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
8311
8312 * minibuf.c (Ftry_completion): Remove code left over from when we used
8313 scmp instead of Fcompare_strings.
8314
8315 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
8316
8317 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
8318
8319 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8320
8321 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
8322 Create bitmap context in native byte order.
8323
8324 * macterm.c (XDrawLine)
8325 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
8326 context in native byte order.
8327
8328 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8329
8330 * config.in: Regenerate.
8331
8332 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
8333 New definitions for Image I/O support.
8334 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
8335 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
8336 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
8337 (mac_data_provider_release_data, image_load_image_io)
8338 [USE_MAC_IMAGE_IO]: New functions.
8339 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
8340 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
8341 (init_image_func_pointer) [MAC_OSX]: Remove function.
8342 (image_load_quartz2d) [MAC_OSX]: Check availability of
8343 CGImageCreateWithPNGDataProvider at compile time.
8344 Use lowercase `false' for boolean constant.
8345 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
8346 Use image_load_image_io.
8347 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
8348 Don't check MyCGImageCreateWithPNGDataProvider.
8349 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
8350 Don't call init_image_func_pointer.
8351
8352 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
8353
8354 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
8355 Make variable non-static.
8356 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
8357 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
8358
8359 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
8360 (RED_FROM_ULONG): Mask off higher bits.
8361 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
8362
8363 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
8364 Include AvailabilityMacros.h.
8365 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
8366 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
8367
8368 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
8369
8370 * chartab.c (Fset_char_table_range): If range is t, really set all
8371 chars to that value.
8372
8373 2008-05-03 Eli Zaretskii <eliz@gnu.org>
8374
8375 * dired.c (Ffile_attributes): Don't allow the device number become
8376 negative.
8377
8378 2008-05-02 Daiki Ueno <ueno@unixuser.org>
8379
8380 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
8381
8382 2008-05-02 Juri Linkov <juri@jurta.org>
8383
8384 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
8385 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
8386 DEFAULT argument as a list of default values in docstrings.
8387
8388 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
8389
8390 * puresize.h (BASE_PURESIZE): Increase to 1210000.
8391
8392 2008-05-01 Martin Rudalics <rudalics@gmx.at>
8393
8394 * dispnew.c (change_frame_size_1): Preserve small windows when
8395 shrinking frames by calling set_window_height|width with third
8396 arg 2.
8397
8398 * window.h (struct window): Replace field too_small_ok by field
8399 resize_proportionally.
8400
8401 * window.c (make_window): Initialize resize_proportionally.
8402 (enlarge_window): Temporarily set resize_proportionally to make
8403 sure that shrink_windows does scale the window proportionally.
8404 (shrink_windows): When window has resize_proportionally set try
8405 to shrink it proportionally by stealing from other windows.
8406 (struct saved_window, Fset_window_configuration)
8407 (compare_window_configurations): Handle resize_proportionally.
8408 (WINDOW_TOTAL_SIZE): New macro.
8409 (window_min_size, shrink_windows, size_window): Use it.
8410 (check_min_window_sizes): Remove. Invalid values of
8411 window-min-height|width are handled by window_min_size_2 now.
8412 (size_window, Fsplit_window, enlarge_window)
8413 (adjust_window_trailing_edge, grow_mini_window): Don't call
8414 check_min_window_sizes.
8415 (window_min_size_2, window_min_size_1, window_min_size):
8416 New argument safe_p for retrieving "safe" minimum sizes.
8417 (Fdisplay_buffer, Fsplit_window, enlarge_window)
8418 (adjust_window_trailing_edge, grow_mini_window):
8419 Adjust arguments of window_min_size... functions.
8420 (shrink_windows): Argument min_size removed. New argument
8421 safe_p allows shrinking windows to their safe minimum sizes.
8422 Calculate minimum size and decide whether a window shall be
8423 deleted for each window individually.
8424 (size_window): When nodelete_p equals 2, tell shrink_windows to
8425 delete windows only if their new minimum size is no more safe.
8426 (shrink_window_lowest_first): Call window_min_size_1 to make
8427 sure to preserve modeline of bottom-most window when resizing
8428 the minibuffer.
8429 (Fset_window_configuration, Fcurrent_window_configuration)
8430 (compare_window_configurations): Do not handle
8431 window-min-height|width any more.
8432 (syms_of_window): Clarify window-min-height|width doc-strings.
8433
8434 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
8435
8436 * dired.c (file_name_completion): Fix up the encoding/decoding issue
8437 some more. Copy some of the code from Ftry_completions.
8438 Remove special case code that dates back to initial revision when the
8439 slash was only added when necessary and that can't trigger nowadays.
8440
8441 2008-04-27 Kenichi Handa <handa@m17n.org>
8442
8443 * font.c (font_prop_validate): Signal `error' instead of `font'.
8444
8445 2008-04-29 Jason Rumney <jasonr@gnu.org>
8446
8447 * w32fns.c (Fw32_battery_status): New defun.
8448 (syms_of_w32fns): Defsubr it.
8449
8450 2008-04-28 Andreas Schwab <schwab@suse.de>
8451
8452 * dired.c (file_name_completion): Fix another mixing of encoded
8453 and decoded names.
8454
8455 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
8456
8457 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
8458
8459 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
8460
8461 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
8462
8463 2008-04-27 Andreas Schwab <schwab@suse.de>
8464
8465 * dired.c (file_name_completion): Fix inappropriate mixing of
8466 encoded and decoded names.
8467
8468 * xterm.c (XTread_socket): Fix use of uninitialized variable.
8469
8470 * puresize.h (BASE_PURESIZE): Increase to 1200000.
8471
8472 2008-04-26 Eli Zaretskii <eliz@gnu.org>
8473
8474 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
8475 2008-03-31, it's not needed anymore with `struct stat' definition
8476 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
8477 for the same reasons.
8478
8479 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
8480
8481 * m/sparc.h: Additional redefinitions for GNU/Linux.
8482
8483 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8484
8485 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
8486 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
8487 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
8488 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
8489 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
8490 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
8491 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
8492 Likewise.
8493
8494 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
8495 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
8496 (mac_ax_number_of_characters): Add externs.
8497 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
8498 [USE_MAC_TSM]: Likewise.
8499 (mac_handle_text_input_event) [MAC_OSX]:
8500 Handle kEventTextInputOffsetToPos for no active input area case.
8501 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
8502 (mac_handle_document_access_event)
8503 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
8504 (install_application_handler) [MAC_OSX]: Register handlers for
8505 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
8506 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
8507 Register mac_handle_document_access_event.
8508
8509 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
8510 Make functions non-static.
8511
8512 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
8513
8514 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
8515 (read_file_name_completion_ignore_case, insert_default_directory)
8516 (Qdefault_directory): Move to minibuffer.el.
8517 (Fread_file_name): Call the new `read-file-name' instead.
8518
8519 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8520
8521 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
8522 Make function non-static.
8523 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
8524 Remove function.
8525 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
8526 Move to mactoolbox.c.
8527 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
8528
8529 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
8530 (mac_rect_make): New macro.
8531
8532 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
8533 instead of float.
8534 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
8535 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
8536 (XSetBackground) [USE_CG_DRAWING]: Likewise.
8537 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
8538 CGRectMake.
8539 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
8540 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
8541 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
8542 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
8543 instead of WindowRef in argument type.
8544 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
8545 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
8546 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
8547 instead of DISPLAY. All uses changed.
8548 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
8549 (x_calc_absolute_position): Simplify so as not to use
8550 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
8551
8552 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
8553 instead of WindowRef in argument type.
8554 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
8555 [TARGET_API_MAC_CARBON]: Remove externs.
8556 (create_apple_event, mac_event_parameters_to_lisp)
8557 [TARGET_API_MAC_CARBON]: Add externs.
8558
8559 * mactoolbox.c (Vmac_ts_script_language_on_focus)
8560 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
8561 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
8562 is clicked.
8563 (x_activate_menubar): Remove extern for saved_menu_event_location.
8564 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
8565 Move from mac.c.
8566
8567 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8568
8569 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
8570 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
8571
8572 2008-04-23 Jason Rumney <jasonr@gnu.org>
8573
8574 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
8575 attributes only for local files.
8576
8577 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
8578 default to Qlocal.
8579
8580 2008-04-22 Juri Linkov <juri@jurta.org>
8581
8582 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
8583 read-buffer-to-switch instead of using the letter "B".
8584
8585 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
8586
8587 * fileio.c (Qdefault_directory): New variable.
8588 (Fread_file_name): Use it to pass `dir' to the completion functions.
8589
8590 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
8591
8592 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
8593
8594 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
8595
8596 * keyboard.c (Vpre_help_message): Remove.
8597 (show_help_echo): Remove default C code.
8598
8599 * dired.c (directory_files_internal, file_name_completion):
8600 Only call ENCODE_FILE if the string is indeed decoded.
8601
8602 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
8603
8604 * Makefile.in (TOOLKIT_DEFINES): Remove.
8605 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
8606
8607 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8608
8609 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
8610 (mactoolbox.o): New target.
8611
8612 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
8613 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
8614
8615 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
8616 Use mac_set_frame_window_background instead of XSetWindowBackground.
8617 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
8618 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
8619 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
8620 instead of SetWindowTitleWithCFString.
8621 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
8622 Move function to mactoolbox.c.
8623 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
8624 Use mac_set_window_modified instead of SetWindowModified.
8625 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
8626 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
8627 (Fx_focus_frame): Use mac_front_non_floating_window instead of
8628 FrontNonFloatingWindow. Use mac_activate_window instead of
8629 ActivateWindow. Use mac_active_non_floating_window instead of
8630 ActiveNonFloatingWindow.
8631 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
8632 Use mac_show_hourglass and mac_hide_hourglass.
8633 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
8634 instead of GetGlobalMouse.
8635 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
8636 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
8637 Use mac_bring_window_to_front instead of BringToFront.
8638 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
8639 mactoolbox.c.
8640 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
8641 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
8642 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
8643 mactoolbox.c.
8644
8645 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
8646 (XtPointer): Move typedef from macmenu.c.
8647 (enum button_type): Move enum from macmenu.c.
8648 (widget_value): Move typedef from macmenu.c.
8649 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
8650 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
8651 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
8652 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
8653 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
8654 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
8655 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
8656 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
8657 (Selection): Move typedef from macselect.c.
8658 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
8659 macterm.c.
8660 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
8661 (mac_is_window_collapsed, mac_bring_window_to_front)
8662 (mac_send_window_behind, mac_hide_window, mac_show_window)
8663 (mac_collapse_window, mac_front_non_floating_window)
8664 (mac_active_non_floating_window, mac_activate_window)
8665 (mac_move_window_structure, mac_move_window, mac_size_window)
8666 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
8667
8668 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
8669 (enum mac_menu_kind): Move enum to mactoolbox.c.
8670 (min_menu_id): Move variable to mactoolbox.c.
8671 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
8672 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
8673 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
8674 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
8675 [TARGET_API_MAC_CARBON]: Likewise.
8676 (XtPointer): Move typedef to macgui.h.
8677 (enum button_type): Move enum to macgui.h.
8678 (widget_value): Move typedef to macgui.h.
8679 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
8680 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
8681 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
8682 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
8683 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
8684 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
8685 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
8686 (popup_activated_flag): Make variable non-static.
8687 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
8688 (add_menu_item, fill_menu, dispose_menus):
8689 Move functions to mactoolbox.c.
8690 (restore_show_help_function, menu_target_item_handler)
8691 (install_menu_target_item_handler, mac_handle_dialog_event)
8692 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
8693 [TARGET_API_MAC_CARBON]: Likewise.
8694 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
8695 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
8696 (find_and_call_menu_selection, name_is_separator): Make function
8697 non-static.
8698 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
8699 to mactoolbox.c.
8700 (set_frame_menubar): Don't call install_menu_quit_handler.
8701 (menu_item_selection): New variable.
8702 (mac_menu_show): Use create_and_show_popup_menu.
8703 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
8704 selection but set variable menu_item_selection. All uses changed.
8705 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
8706 Call install_menu_quit_handler. Move to mactoolbox.c.
8707
8708 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
8709 (Selection): Move typedef to macgui.h.
8710 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
8711 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
8712 Make variables non-static.
8713 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
8714 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
8715 Make functions non-static.
8716 (Vmac_service_selection) [MAC_OSX]: Likewise.
8717 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
8718 (mac_valid_selection_target_p, mac_clear_selection)
8719 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
8720 (mac_put_selection_value, mac_selection_has_target_p)
8721 (mac_get_selection_value, mac_get_selection_target_list)
8722 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
8723 Move functions to mactoolbox.c.
8724 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
8725 Likewise.
8726 (copy_scrap_flavor_data, mac_handle_service_event)
8727 (install_service_handler) [MAC_OSX]: Likewise.
8728 (syms_of_macselect) <Vmac_dnd_known_types>:
8729 Use mac_dnd_default_known_types.
8730
8731 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
8732 Move to mactoolbox.c.
8733 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
8734 (Fx_selection_owner_p): Add EXFUN.
8735 (install_window_handler, remove_window_handler, XSetWindowBackground):
8736 Remove externs.
8737 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
8738 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
8739 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
8740 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
8741 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
8742 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
8743 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
8744 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
8745 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
8746 (create_and_show_popup_menu, mac_get_selection_from_symbol)
8747 (mac_valid_selection_target_p, mac_clear_selection)
8748 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
8749 (mac_put_selection_value, mac_selection_has_target_p)
8750 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
8751 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
8752 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
8753 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
8754 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
8755 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
8756 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
8757 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
8758 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
8759
8760 * mactoolbox.c: New file.
8761
8762 2008-04-18 Jason Rumney <jasonr@gnu.org>
8763
8764 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
8765
8766 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
8767
8768 * character.c (Fmultibyte_char_to_unibyte):
8769 Return latin1 chars unchanged.
8770
8771 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
8772 relocated if it points to `name'.
8773
8774 2008-04-17 Kenichi Handa <handa@m17n.org>
8775
8776 * data.c (Faset): Allow setting a multibyte character in an
8777 ASCII-only unibyte string.
8778
8779 * lisp.h (STRING_SET_MULTIBYTE): New macro.
8780
8781 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
8782
8783 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
8784 done in config.h.
8785
8786 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
8787
8788 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
8789 (Fchar_direction): Add usage in the docstring.
8790
8791 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
8792
8793 * keyboard.c (read_key_sequence): Remove always-true checks.
8794
8795 2008-04-14 Jason Rumney <jasonr@gnu.org>
8796
8797 * w32font.c (w32font_open_internal): Set max_bounds.descent in
8798 compatibility struct, for better underline positioning.
8799
8800 2008-04-13 David Hansen <david.hansen@gmx.net>
8801
8802 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
8803 string.
8804
8805 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
8806
8807 * m/hp800.h (XUINT, XSET): Remove.
8808
8809 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
8810
8811 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
8812 previous change.
8813
8814 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
8815
8816 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
8817 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
8818
8819 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
8820
8821 * keymap.h (map_keymap_canonical): Declare.
8822 * xmenu.c (single_keymap_panes): Use it.
8823
8824 2008-04-11 Glenn Morris <rgm@gnu.org>
8825
8826 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
8827 set the target's value to that of the alias.
8828
8829 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
8830
8831 * term.c (set_tty_color_mode): Left over typo.
8832
8833 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
8834
8835 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
8836 only after check for file name handler functions. Signal, when
8837 native functionality is not supported.
8838 (syms_of_fileio): Declare it unconditionally.
8839
8840 2008-04-10 Jason Rumney <jasonr@gnu.org>
8841
8842 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
8843 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
8844
8845 * w32.c (logon_network_drive): Also logon to remote drives that
8846 are mapped to drive letters.
8847
8848 2008-04-10 Glenn Morris <rgm@gnu.org>
8849
8850 * xdisp.c (truncate-partial-width-windows): Doc fix.
8851
8852 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
8853
8854 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
8855 Move functions to minibuffer.el.
8856 (syms_of_fileio): Don't declare them.
8857
8858 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
8859
8860 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
8861 (syms_of_minibuf): Remove its initialization.
8862
8863 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
8864
8865 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
8866
8867 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
8868
8869 2008-04-09 Jason Rumney <jasonr@gnu.org>
8870
8871 * makefile.w32-in (distclean): Delete makefile too.
8872 (maintainer-clean): New target.
8873
8874 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
8875
8876 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
8877 for new font backend and composite cases.
8878
8879 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
8880
8881 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
8882 Most of the code moved to run_timers.
8883 (do_pending_atimers): Call run_timers.
8884 (run_timers): New function.
8885
8886 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
8887 run atimers.
8888
8889 * process.c (wait_reading_process_output): The same as above.
8890
8891 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
8892
8893 * minibuf.c (last_exact_completion): Remove variable.
8894 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
8895 (complete_and_exit_1, complete_and_exit_2)
8896 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
8897 (Fdisplay_completion_list, display_completion_list_1)
8898 (Fminibuffer_completion_help, Fself_insert_and_exit)
8899 (Fexit_minibuffer, Fminibuffer_message): Move functions to
8900 minibuffer.el.
8901 (syms_of_minibuf): Remove corresponding initializations.
8902
8903 * keyboard.c (Qdeactivate_mark): New var.
8904 (command_loop_1): Use it to call `deactivate-mark'.
8905 (syms_of_keyboard): Initialize it.
8906
8907 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
8908 to another frame.
8909 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
8910 Don't call set_tty_color_mode.
8911 (store_frame_param): Reset previous_frame rather than call
8912 set_tty_color_mode.
8913 * term.c (set_tty_color_mode): Rewrite.
8914 * dispextern.h (set_tty_color_mode): New type.
8915 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
8916
8917 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
8918
8919 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
8920 for generic chars, which do not exist any more in emacs-unicode.
8921
8922 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
8923
8924 * coding.c (detect_coding_emacs_mule)
8925 (Ffind_operation_coding_system): Fix typo.
8926
8927 2008-04-08 Jason Rumney <jasonr@gnu.org>
8928
8929 * w32uniscribe.c (SNAME): Extract only symbol name.
8930
8931 * w32font.h (struct w32_metric_cache): New struct.
8932 (w32font_info): Use it.
8933 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
8934 (CACHE_BLOCKSIZE): New constants.
8935
8936 * w32font.c (Qja, Qko, Qzh): New symbols.
8937 (syms_of_w32font): Initialise them.
8938 (font_matches_spec): Use them to filter by language.
8939 (recompute_cached_metrics): Remove function.
8940 (compute_metrics, clear_cached_metrics): New functions.
8941 (w32font_encode_char): Use them to manage metric cache.
8942 (w32font_text_extents): Cache metrics for all glyphs on demand.
8943 Delay converting glyph indices to WORD until needed.
8944 (w32font_open_internal): Initialize metric cache to empty.
8945 (registry_to_w32_charset): Charset should always be a symbol.
8946 (fill_in_logfont, list_all_matching_fonts): Family should
8947 always be a symbol.
8948
8949 2008-04-06 Jason Rumney <jasonr@gnu.org>
8950
8951 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
8952 Give up if glyph indices not supported. Use uniscribe obtained
8953 ABC widths for individual metrics. Map glyph clusters back to
8954 characters using fClusterStart flag. Return number of glyphs
8955 produced, not chars processed.
8956 (uniscribe_shape): Map char at FROM to current glyph.
8957
8958 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8959
8960 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
8961 Use SetMenuItemHierarchicalMenu.
8962
8963 2008-04-05 Jason Rumney <jasonr@gnu.org>
8964
8965 * image.c (pbm_load): Allow color values up to 65535.
8966 Throw an error if max_color_idx is outside the supported range.
8967 Report an error when image size is invalid.
8968 Read two bytes at a time when raw images have max_color_idx above 255.
8969
8970 2008-04-05 Eli Zaretskii <eliz@gnu.org>
8971
8972 * w32.c (readdir): If FindFirstFile/FindNextFile return in
8973 cFileName a file name that includes `?' characters, use the 8+3
8974 alias in cAlternateFileName instead.
8975
8976 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
8977
8978 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
8979 append "CCL: Quitted" when the CCL program is quitted.
8980 (setup_ccl_program): Initialize ccl->quit_silently to zero.
8981
8982 * ccl.h (struct ccl_program): New member quit_silently.
8983
8984 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
8985
8986 * search.c (compile_pattern_1): Treat non-nil and non-string of
8987 search-spaces-regexp as nil.
8988
8989 * minibuf.c (Fassoc_string): Tweak docstring.
8990
8991 2008-04-05 Eli Zaretskii <eliz@gnu.org>
8992
8993 * dired.c (Ffile_attributes): Support inode numbers wider than 32
8994 bits. Remove ugly WINDOWSNT-specific kludge introduced on
8995 2008-03-14 to force inode be positive.
8996
8997 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
8998 _S_* ones, since we now use our own sys/stat.h.
8999 (stat, fstat): Don't mangle the inode number.
9000 (init_user_info): Don't restrict UID and GID to 0-60000 range.
9001
9002 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
9003
9004 * frame.h (struct frame): Give one more bit to `visible' since we use
9005 values larger than 1 to indicate obscured frames on ttys.
9006
9007 * keymap.c (Qkeymap_canonicalize): New var.
9008 (Fmap_keymap_internal): New fun.
9009 (describe_map): Use keymap-canonicalize.
9010
9011 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
9012 (Fundo_boundary): Set them.
9013 (syms_of_undo): Initialize them.
9014 (record_point): Use them instead of last_point_position*.
9015 (last_undo_buffer): Change type.
9016
9017 2008-04-04 Jason Rumney <jasonr@gnu.org>
9018
9019 * w32font.c (w32font_text_extents): Use font's ascent and descent.
9020 (recompute_cached_metrics): Don't set ascent and descent per char.
9021
9022 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
9023 (uniscribe_check_otf): Add GC protection before consing.
9024 Rearrange loop for counting features.
9025
9026 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
9027
9028 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
9029 buffer with byte-size of source buffer.
9030
9031 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
9032
9033 * callint.c (Fcall_interactively): Handle temporary region even
9034 when shift-select-mode is off.
9035
9036 2008-04-03 Jason Rumney <jasonr@gnu.org>
9037
9038 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
9039
9040 2008-04-03 Kenichi Handa <handa@m17n.org>
9041
9042 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
9043 (CATEGORY_MASK_UTF_16): Likewise.
9044 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
9045 binary file.
9046 (detect_coding): Add null-byte detection for a binary file.
9047 (detect_coding_system): Likewise.
9048
9049 2008-04-03 Jason Rumney <jasonr@gnu.org>
9050
9051 * w32uniscribe.c: New file.
9052
9053 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
9054
9055 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
9056
9057 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
9058 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
9059 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
9060 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
9061 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
9062 (Qphonetic): New symbols.
9063 (syms_of_w32font): Initialize them.
9064 (font_supported_scripts): Use them.
9065 (w32font_list_family): List all charsets.
9066 (w32font_text_extents, recompute_cached_metrics): Fix metric
9067 calculations.
9068 (w32_enumfont_pattern_entity): Make full_type a DWORD.
9069 Give opentype fonts their own format.
9070 (font_matches_spec): New arguments backend and logfont.
9071 Handle :otf spec for uniscribe backend.
9072 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
9073 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
9074
9075 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
9076 font backend.
9077 (globals_of_w32fns): Initialize uniscribe font backend.
9078
9079 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
9080 dependencies.
9081 (w32uniscribe.$(O)): New file to build.
9082 (FONT_OBJ): Include w32uniscribe.$(O).
9083 (LIBS): Add uniscribe libraries.
9084
9085 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
9086
9087 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
9088
9089 * callint.c (Vshift_select_mode): New var.
9090 (Finteractive): Document new ^ spec.
9091 (Fcall_interactively): Call handle-shift-selection if the ^ spec
9092 is present.
9093
9094 * keyboard.c (Vthis_command_keys_shift_translated): New var.
9095 (command_loop_1): Avoid running the direct display versions of
9096 forward-char and backward-char if shift-selection may occur.
9097 (read_key_sequence): Set Vthis_command_keys_shift_translated if
9098 shift-translation takes place.
9099
9100 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
9101 avoid clobbering by define-minor-mode.
9102
9103 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
9104 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
9105
9106 * syntax.c (Fforward_word): Add ^ interactive spec.
9107
9108 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
9109 (Fscroll_right): Add ^ interactive spec.
9110
9111 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
9112
9113 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
9114
9115 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
9116
9117 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
9118
9119 2008-03-31 Juri Linkov <juri@jurta.org>
9120
9121 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
9122
9123 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
9124
9125 * gtkutil.c (xg_set_geometry): Fix indentation.
9126 (xg_resize_outer_widget): Remove.
9127 (x_wm_size_hint_off): Fix indentation.
9128 (xg_frame_set_char_size): Call flush_and_sync after
9129 gtk_window_resize.
9130 (x_wm_set_size_hint): Pass NULL as geometry window to
9131 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
9132 Add menu bar and tool bar height to base height.
9133 (xg_update_frame_menubar, free_frame_menubar)
9134 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
9135 (update_frame_tool_bar, free_frame_tool_bar):
9136 Change xg_resize_outer_widget to xg_frame_set_char_size.
9137
9138 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
9139
9140 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
9141 (Fdbus_call_method): New parameter TIMEOUT.
9142 (dbus-send-signal): Optimize UNGCPRO call.
9143
9144 2008-03-29 Juri Linkov <juri@jurta.org>
9145
9146 * window.c (Fdisplay_buffer): Move call to
9147 Vsplit_window_preferred_function out of conditions that check
9148 if window is eligible for vertical splitting.
9149 When Vsplit_window_preferred_function is non-nil, call it and use
9150 its non-nil return value as window. Otherwise, continue doing
9151 vertical splitting using Fsplit_window with arg horflag=nil.
9152 (syms_of_window) <Vsplit_window_preferred_function>: Change the
9153 default value from `split-window' to nil.
9154
9155 2008-03-29 Juri Linkov <juri@jurta.org>
9156
9157 * callint.c (Fcall_interactively): Revert 2008-03-16 change
9158 for interactive code letters 'b' and 'B'.
9159
9160 2008-03-29 Eli Zaretskii <eliz@gnu.org>
9161
9162 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
9163 multibyte string.
9164
9165 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
9166
9167 * keyboard.c (pending_funcalls): New var.
9168 (timer_check): Run it.
9169 (syms_of_keyboard): Initialize it.
9170 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
9171 (Vdelete_terminal_functions): New vars.
9172 (syms_of_terminal): Initialize them.
9173 (Fdelete_terminal): Run delete-terminal-functions.
9174 * xdisp.c (safe_eval): Rewrite.
9175 (safe_call2): New fun.
9176 * frame.c (Qdelete_frame_functions): New var.
9177 (syms_of_frame): Initialize it.
9178 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
9179 * lisp.h (safe_call2, pending_funcalls): Declare.
9180
9181 2008-03-28 Andreas Schwab <schwab@suse.de>
9182
9183 * indent.c (Fmove_to_column): Move declaration before statements.
9184
9185 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
9186
9187 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
9188 (struct frame): Use bit fields for boolean vars.
9189
9190 * process.c (server_accept_connection): Simplify naming.
9191 (emacs_get_tty_pgrp): Use SDATA.
9192
9193 * coding.c (decode_coding_object): Fix last change.
9194
9195 2008-03-27 Jason Rumney <jasonr@gnu.org>
9196
9197 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
9198
9199 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
9200
9201 * charset.c (Fdefine_charset_internal): Change the way of
9202 registering charsets in Vcharset_order_list.
9203 (syms_of_charset): Make the charset `eight-bit' supplementary.
9204
9205 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
9206
9207 * regex.c (EXTEND_BUFFER): Change order of pointer addition
9208 operations, to avoid having the difference between pointers
9209 overflow.
9210
9211 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
9212
9213 * indent.c (check_display_width): New fun.
9214 (scan_for_column): Use it.
9215
9216 * data.c (syms_of_data): Mark most-positive-fixnum and
9217 most-negative-fixnum as constants.
9218
9219 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
9220
9221 * indent.c (scan_for_column): Extract from current_column_1.
9222 Merge with the same code from Fmove_to_column.
9223 (current_column_1, Fmove_to_column): Use it.
9224
9225 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
9226
9227 * keymap.c (map_keymap_internal): New fun.
9228 (map_keymap): Use it.
9229 (Fmap_keymap_internal): New fun.
9230 (Fmap_keymap): Remove left-out test from before make_save_value.
9231
9232 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
9233
9234 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
9235 Use XCAR/XCDR.
9236
9237 * process.h (struct Lisp_Process): Remove filter_multibyte.
9238 * process.c (QCfilter_multibyte): Remove.
9239 (setup_process_coding_systems): Don't use filter_multibyte.
9240 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
9241 (read_process_output): Don't adjust multibyteness to filter_multibyte.
9242 (Fset_process_filter_multibyte): Change the coding-system to
9243 approximate the previous behavior.
9244 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
9245 coding-system.
9246
9247 * coding.c (decode_coding_object): When not decoding into a buffer,
9248 obey the coding system's preference of (uni|multi)byte.
9249
9250 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
9251
9252 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
9253 every char is changed and has a different byte-length.
9254 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
9255 Fix int -> EMACS_INT.
9256
9257 2008-03-23 David Hansen <david.hansen@gmx.net>
9258
9259 * dbusbind.c (xd_read_message): Remove extra copying of message
9260 strings. Check for NULL `interface' or `member'.
9261
9262 2008-03-22 Eli Zaretskii <eliz@gnu.org>
9263
9264 * w32.c (readdir): If FindFirstFile/FindNextFile return in
9265 cFileName a file name that includes `?' characters, use the 8+3
9266 alias in cAlternateFileName instead.
9267
9268 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
9269
9270 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
9271
9272 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
9273
9274 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
9275 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
9276 work on current_buffer only instead (that was already the case
9277 for some of the code anyway).
9278 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
9279 (temp_set_point, temp_set_point_both): Use EMACS_INT.
9280 (SET_PT, SET_PT_BOTH): Adjust.
9281 * intervals.h (set_point, temp_set_point, set_point_both)
9282 (temp_set_point_both): Remove redundant declarations.
9283
9284 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
9285
9286 * fileio.c (Finsert_file_contents):
9287 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
9288 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
9289 when buffer != current_buffer anyway.
9290
9291 2008-03-20 Andreas Schwab <schwab@suse.de>
9292
9293 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
9294 as default.
9295
9296 2008-03-19 Jason Rumney <jasonr@gnu.org>
9297
9298 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
9299 (syms_of_w32fns): Initialize them.
9300 (HOURGLASS_ID): New constant.
9301 (x_window_to_frame): Don't check hourglass_window.
9302 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
9303 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
9304 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
9305 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
9306 Only change the cursor if hourglass is not active.
9307 (Fx_create_frame): Initialize frame's current_cursor.
9308 (hourglass_atimer): Remove.
9309 (hourglass_started): New function.
9310 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
9311 (show_hourglass): Adapt to w32, changing argument to frame.
9312
9313 * w32term.h (struct w32_output): Remove hourglass_window.
9314 Add current_cursor.
9315
9316 * eval.c (call_debugger, Fsignal):
9317 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
9318 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
9319 (Fexecute_extended_command, cancel_hourglass_unwind):
9320 * minibuf.c (read_minibuf):
9321 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
9322
9323 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
9324
9325 * window.c (run_funs): New fun.
9326 (run_window_configuration_change_hook): Use it to run the buffer-local
9327 and the global part of the hook.
9328
9329 * xdisp.c (format_mode_line_unwind_data): Add window argument.
9330 (unwind_format_mode_line): Restore selected window.
9331 (x_consider_frame_title, Fformat_mode_line): Set selected window.
9332
9333 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
9334
9335 * editfns.c (Fchar_equal): Check they are valid characters.
9336
9337 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
9338
9339 2008-03-17 Andreas Schwab <schwab@suse.de>
9340
9341 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
9342 against a charset.
9343
9344 * lisp.h (Fbuffer_list): Declare.
9345
9346 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
9347
9348 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
9349 handlebox_widget is != 0.
9350
9351 2008-03-16 Juri Linkov <juri@jurta.org>
9352
9353 * callint.c (Fcall_interactively): For interactive code letters
9354 'b' and 'B' put the buffer list into the list of default "future"
9355 values of the minibuffer.
9356
9357 2008-03-16 Andreas Schwab <schwab@suse.de>
9358
9359 * keyboard.c (read_key_sequence): Fix downcasing of letters with
9360 modifiers.
9361
9362 * regex.c (re_match_2_internal): Correct matching of a charset
9363 against latin-1 characters.
9364
9365 2008-03-16 Kenichi Handa <handa@m17n.org>
9366
9367 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
9368 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
9369 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
9370 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
9371 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
9372 CHAR_STRING_ADVANCE.
9373 (produce_chars): Fix for the case that the source and the
9374 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
9375 instead of CHAR_STRING_ADVANCE.
9376 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
9377 STRING_CHAR_ADVANCE.
9378
9379 2008-03-15 Andreas Schwab <schwab@suse.de>
9380
9381 * regex.c (re_match_2_internal): Correct matching of eight bit
9382 characters in unibyte strings.
9383
9384 2008-03-15 Martin Rudalics <rudalics@gmx.at>
9385
9386 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
9387 at end of range when it coincides with the end of the buffer.
9388
9389 2008-03-14 Eli Zaretskii <eliz@gnu.org>
9390
9391 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
9392
9393 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
9394
9395 2008-03-14 Jason Rumney <jasonr@gnu.org>
9396
9397 * editfns.c (initial_tz): New variable.
9398 (syms_of_editfns): Initialize it.
9399 (Fset_time_zone_rule): Set it when first called.
9400 Use it when TZSTRING is nil.
9401
9402 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
9403 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
9404 (monitor_from_point_fn, get_monitor_info_fn): New globals.
9405 (globals_of_w32fns): Initialize them.
9406 (compute_tip_xy): Use them to position tooltips.
9407
9408 2008-03-14 Glenn Morris <rgm@gnu.org>
9409
9410 * emacs.c (main): Revert previous change.
9411 (standard_args): Revert -internal-script back to -scriptload,
9412 and remove the long-option form.
9413
9414 2008-03-13 Glenn Morris <rgm@gnu.org>
9415
9416 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
9417 Remove option -enable-font-backend.
9418
9419 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
9420
9421 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
9422
9423 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
9424
9425 * xterm.c (x_connection_closed): For GTK: If this is the last
9426 terminal just exit without closing the display.
9427
9428 2008-03-11 Jason Rumney <jasonr@gnu.org>
9429
9430 * w32font.c (w32font_full_name): Use floor to round.
9431
9432 2008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
9433
9434 * sound.c (alsa_configure): Declare vol at beginning of block.
9435
9436 * fontset.c (Ffontset_info): Remove extra semicolon.
9437
9438 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
9439
9440 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
9441 size of resulting string.
9442
9443 2008-03-10 Jason Rumney <jasonr@gnu.org>
9444
9445 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
9446
9447 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9448
9449 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
9450 Don't pretend as if characters with display property haven't been
9451 consumed for string-replacing-string case.
9452
9453 2008-03-08 Kim F. Storm <storm@cua.dk>
9454
9455 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
9456 (get_next_display_element, next_element_from_string)
9457 (next_element_from_ellipsis, next_element_from_buffer): Use it.
9458
9459 2008-03-08 Andreas Schwab <schwab@suse.de>
9460
9461 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
9462
9463 2008-03-06 Jason Rumney <jasonr@gnu.org>
9464
9465 * w32font.c (w32_registry): Take font_type argument. Use ANSI
9466 when charset not specified. Only translate ANSI to unicode when
9467 font_type is truetype.
9468 (w32font_coverage_ok): New function.
9469 (add_font_entity_to_list): Use it to filter unsuitable fonts.
9470
9471 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
9472
9473 * lread.c (Fread_char): Resolve modifiers.
9474 (Fread_char_exclusive): Likewise.
9475
9476 * character.c (char_resolve_modifier_mask): New function.
9477 (char_string): Use char_resolve_modifier_mask.
9478 (Fchar_resolve_modifiers): New function.
9479 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
9480 function.
9481
9482 2008-03-04 Jason Rumney <jasonr@gnu.org>
9483
9484 * makefile.w32-in: Always include w32font.c in the build.
9485 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
9486
9487 2008-03-04 Andreas Schwab <schwab@suse.de>
9488
9489 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
9490 (versionclean): Likewise.
9491
9492 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
9493
9494 * .cvsignore: Add oo.
9495
9496 2008-03-03 Andreas Schwab <schwab@suse.de>
9497
9498 * coding.c (decode_coding_object): Inhibit gap shrinking while
9499 decoding in place.
9500
9501 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
9502
9503 * w32term.c: Remove unused include "gnu.h".
9504 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
9505
9506 * gnu.h: Rename to ...
9507 * emacs-icon.h: ... this.
9508 * xterm.c: Use emacs-icon.h instead of gnu.h.
9509 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
9510
9511 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
9512
9513 * w32font.c: Include math.h.
9514
9515 2008-03-03 Jason Rumney <jasonr@gnu.org>
9516
9517 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
9518 Compute options separately.
9519 (w32font_open_internal): Set glyph_idx before caching metrics.
9520
9521 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
9522 Define if system headers don't.
9523 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
9524 (w32font_encode_char): Don't declare here.
9525
9526 * w32font.c (Quniscribe, QCformat): New symbols.
9527 (syms_of_w32font): Define them.
9528 (w32font_has_char): Indicate uncertainty.
9529 (w32font_encode_char): Encode as glyph point. Make static.
9530 (recompute_cached_metrics): New function.
9531 (w32font_open_internal): Use it. Set font to use glyph points
9532 initially. Set format based on type of font.
9533 (w32font_text_extents, w32font_draw): Optionally use glyph points.
9534 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
9535 on it. Set format based on information available here.
9536 (add_font_entity_to_list): Identify backend based on opentype_only.
9537
9538 2008-03-02 Andreas Schwab <schwab@suse.de>
9539
9540 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
9541
9542 * coding.c (decode_coding_big5, produce_chars):
9543 Fix typos in last change.
9544
9545 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
9546
9547 * gnu.h: New icon.
9548
9549 2008-03-02 Kenichi Handa <handa@m17n.org>
9550
9551 * coding.c (decode_coding_utf_8): When eol-type of CODING is
9552 `dos', don't decode '\r' if that is the last in the source.
9553 (decode_coding_utf_16, decode_coding_emacs_mule)
9554 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
9555 (decode_coding_raw_text, decode_coding_charset): Likewise.
9556 (produce_chars): Don't decode EOL here. Use EMACS_INT.
9557
9558 2008-03-01 Jason Rumney <jasonr@gnu.org>
9559
9560 * w32font.c (w32font_full_name): Report point size for scalable fonts.
9561
9562 2008-03-01 Kim F. Storm <storm@cua.dk>
9563
9564 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
9565
9566 2008-03-01 Jason Rumney <jasonr@gnu.org>
9567
9568 * w32font.c (w32font_full_name): New function.
9569 (w32font_open_internal): Use it.
9570
9571 2008-03-01 Kim F. Storm <storm@cua.dk>
9572
9573 * dispnew.c (line_draw_cost): Fix invalid glyph check.
9574
9575 2008-03-01 Jason Rumney <jasonr@gnu.org>
9576
9577 * font.c (font_unparse_fcname): Increase len when style is a symbol.
9578
9579 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
9580
9581 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
9582 xg_frame_resized when the event is for the edit widget.
9583
9584 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
9585
9586 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
9587 set_char_size.
9588 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
9589 operations on widgets here. Just set frame size if needed.
9590 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
9591 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
9592 (x_wm_set_size_hint): Set size hints on the edit widget only, not
9593 the whole frame.
9594 (xg_create_tool_bar): Move attachment of the tool bar to
9595 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
9596 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
9597
9598 2008-03-01 Jason Rumney <jasonr@gnu.org>
9599
9600 * w32fns.c (w32_msg_pump): Disable debug code.
9601
9602 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9603
9604 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
9605
9606 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
9607
9608 * xdisp.c (next_overlay_string): Don't set
9609 overlay_strings_at_end_processed_p if we're currently reading from
9610 a display string.
9611
9612 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
9613
9614 * xdisp.c (get_overlay_strings_1): Fix typo.
9615
9616 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
9617
9618 * xdisp.c (get_overlay_strings_1): Add missing argument type.
9619
9620 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
9621
9622 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
9623
9624 * xdisp.c (display_mode_element): Cancel the previous change.
9625 (decode_mode_spec): Likewise.
9626 (handle_auto_composed_prop): Don't make composition if it->string
9627 is a string.
9628
9629 2008-02-27 Kim F. Storm <storm@cua.dk>
9630
9631 * lisp.h (GLYPH): Change type from int to struct with separate char
9632 and face_id members.
9633 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
9634 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
9635 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
9636 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
9637 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
9638 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
9639 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
9640 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
9641 handle new Lisp glyph code encoding, either an integer or a cons.
9642
9643 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
9644 (GLYPH_ALIAS): Delete.
9645 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
9646 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
9647 (GLYPH_FROM_CHAR): Replace macro by ...
9648 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
9649
9650 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
9651 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
9652 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
9653 (GLYPH_INVALID_P): New macro.
9654 (spec_glyph_lookup_face): Update prototype.
9655
9656 * dispnew.c (line_draw_cost): Adapt to new glyph type.
9657 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
9658 new glyph code encoding.
9659 (spec_glyph_lookup_face): No return value; update passed glyph instead.
9660 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
9661
9662 * xdisp.c (get_next_display_element, next_element_from_display_vector):
9663 Adapt to new glyph type and new glyph code encoding.
9664
9665 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
9666
9667 * indent.c (current_column, current_column_1, Fmove_to_column)
9668 (compute_motion): Adapt to new glyph code encoding.
9669
9670 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
9671
9672 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
9673
9674 * process.c (wait_reading_process_output): Check for window
9675 changes caused by timers.
9676 Suggested by Johan Bockgård.
9677
9678 2008-02-27 Glenn Morris <rgm@gnu.org>
9679
9680 * emacs.c (USAGE1): Add `--disable-font-backend'.
9681
9682 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
9683
9684 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
9685 is made to the buffer.
9686
9687 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
9688
9689 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
9690 (face_at_string_position):
9691 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
9692 (face_at_string_position):
9693 * xdisp.c (display_string, next_overlay_change):
9694 * buffer.h (overlays_at):
9695 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
9696 Update callers.
9697
9698 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
9699
9700 * editfns.c (Fformat): Doc fix.
9701
9702 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
9703
9704 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
9705 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
9706 (Ffont_otf_alternates, Fquery_font): Doc fixes.
9707
9708 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
9709
9710 * buffer.c (Fbuffer_swap_text): New function.
9711 (syms_of_buffer): Defsubr it.
9712
9713 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
9714
9715 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
9716
9717 2008-02-25 Jason Rumney <jasonr@gnu.org>
9718
9719 * w32font.c (w32font_draw): Draw one character at a time when padding.
9720
9721 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
9722
9723 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
9724 Handle a nil arg. Use run_window_configuration_change_hook.
9725 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
9726 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
9727 Use run_window_configuration_change_hook.
9728
9729 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
9730
9731 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
9732 1-pixel width.
9733
9734 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
9735
9736 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
9737 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
9738 if the glyph in the font is zero pixel with.
9739
9740 * dispextern.h (struct glyph_string): New member padding_p.
9741
9742 * w32font.c (w32font_draw): Pay attention to s->padding_p.
9743
9744 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
9745
9746 * xfont.c (xfont_draw): Pay attention to s->padding_p.
9747
9748 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
9749
9750 * font.c: If the font driver doesn't have `shape' function, return Qnil.
9751
9752 2008-02-25 Jason Rumney <jasonr@gnu.org>
9753
9754 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
9755
9756 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
9757
9758 Allow fine-grained image-cache flushing.
9759 * dispextern.h (struct image): Add `dependencies' field.
9760 (clear_image_caches): Change arg to Lisp_Object.
9761 * image.c (make_image): Initialize `dependencies' field.
9762 (clear_image_cache): Change arg to allow fine-grained flushing.
9763 Perform the flush even if image-cache-eviction-delay is nil.
9764 (clear_image_caches): Change arg to Lisp_Object.
9765 (Fclear_image_cache): Expand meaning of the argument.
9766 (mark_image): Mark `dependencies' field.
9767 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
9768 (lface_hash): Use XHASH rather than XFASTINT.
9769 (face_at_buffer_position): Fix int -> EMACS_INT position.
9770 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
9771 (select_frame_for_redisplay): Remove code duplication.
9772 (redisplay_internal): Adapt arg to call to clear_image_caches.
9773
9774 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
9775
9776 * s/vms4-0.h:
9777 * s/vms4-2.h:
9778 * s/vms4-4.h:
9779 * s/vms5-5.h: Remove, unused.
9780
9781 * s/irix5-2.h:
9782 * s/irix6-0.h:
9783 * s/riscos5.h:
9784 * s/mach-bsd4-3.h:
9785 * m/mips4.h: Remove files for obsolete systems.
9786
9787 * Makefile.in:
9788 * filelock.c:
9789 * unexmips.c:
9790 * m/hp9000s300.h:
9791 * m/iris4d.h:
9792 * s/aix3-1.h:
9793 * s/hpux.h:
9794 * s/msdos.h:
9795 * s/usg5-0.h:
9796 * s/usg5-2-2.h:
9797 * s/usg5-2.h:
9798 * s/usg5-3.h: Remove references to obsolete variables.
9799
9800 * s/irix5-0.h: Remove, move all the contents ...
9801 * s/irix6-5.h: ... here. Simplify.
9802 * config.in: Regenerate.
9803
9804 2008-02-24 Jason Rumney <jasonr@gnu.org>
9805
9806 * w32term.c (x_draw_glyph_string_background): Clear the background
9807 manually when cleartype is in use.
9808 (x_draw_glyph_string_foreground): Draw text transparently when
9809 cleartype is in use.
9810
9811 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
9812 a font into it unless we have to.
9813
9814 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
9815
9816 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
9817 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
9818
9819 2008-02-18 Jason Rumney <jasonr@gnu.org>
9820
9821 * w32fns.c (Fw32_shell_execute): Encode parameters.
9822
9823 2008-02-09 Eli Zaretskii <eliz@gnu.org>
9824
9825 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
9826
9827 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
9828
9829 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
9830
9831 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
9832
9833 * xterm.c (x_set_offset): Don't change the gravity if
9834 CHANGE_GRAVITY is -1.
9835
9836 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
9837
9838 * fileio.c (auto_save_error_occurred): New var.
9839 (auto_save_error): Set it.
9840 (Fdo_auto_save): Don't overwrite the error message if an auto-save
9841 error occurred.
9842
9843 2008-02-23 Eli Zaretskii <eliz@gnu.org>
9844
9845 * w32.c (globals_of_w32): Add initializations for
9846 g_b_init_get_sid_sub_authority and
9847 g_b_init_get_sid_sub_authority_count.
9848
9849 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
9850
9851 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
9852 (font_parse_xlfd): Use them for sanity check.
9853 (Finternal_set_font_style_table): Make sure the table is bijective.
9854
9855 Consolidate the image_cache to the terminal struct.
9856 * termhooks.h (P_): Remove redundant def.
9857 (struct terminal): New field `image_cache'.
9858 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
9859 of FRAME_X_IMAGE_CACHE.
9860 * xterm.h (struct x_display_info): Remove image_cache field.
9861 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
9862 * w32term.h (struct w32_display_info): Remove image_cache field.
9863 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
9864 * macterm.h (struct mac_display_info): Remove image_cache field.
9865 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
9866 * xterm.c (x_term_init):
9867 * w32term.c (w32_term_init):
9868 * macterm.c (mac_term_init): Set the image_cache in the terminal.
9869 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
9870 Remove declarations.
9871 (clear_image_caches, mark_image_cache): New declarations.
9872 * xfaces.c (clear_face_cache):
9873 * xdisp.c (redisplay_internal): Use clear_image_caches.
9874 * image.c (clear_image_cache): Don't check that a frame is on
9875 a window-system before checking if it shares the same cache.
9876 (clear_image_caches): New function.
9877 (Fclear_image_cache): Use it.
9878 (mark_image): Move from allo.c.
9879 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
9880 * alloc.c (mark_image, mark_image_cache): Move to image.c.
9881 (mark_object): Don't call mark_image_cache for frames.
9882 (mark_terminals): Call mark_image_cache.
9883
9884 * lisp.h (Fdelete_terminal): Declare.
9885
9886 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
9887 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
9888 wrong_type_argument.
9889
9890 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
9891
9892 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
9893 malayalam.el, and tamil.el. Add sinhala.el.
9894
9895 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
9896
9897 * xterm.c (x_connection_closed): Consolidate identical tests.
9898 (x_delete_terminal): Don't crash if called via x_connection_closed.
9899
9900 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
9901
9902 * xdisp.c (decode_mode_spec): New arg string.
9903 (display_mode_element): Adjust for the above change.
9904
9905 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
9906
9907 * callint.c (Fcall_interactively): Use AREF.
9908
9909 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
9910
9911 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
9912
9913 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
9914
9915 * xfns.c (Fx_show_tip): Set string to " " if empty.
9916
9917 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
9918
9919 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
9920 with Qt.
9921
9922 2008-02-17 Kenichi Handa <handa@m17n.org>
9923
9924 * ftfont.c (ftfont_shape): Return Lispy number.
9925
9926 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
9927 for GCs.
9928 (Finternal_set_font_selection_order): Call font_update_sort_order
9929 only when enable_font_backend is set.
9930 (realize_x_face): Set face->font_info to that of default face only
9931 when enable_font_backend is set.
9932
9933 * xdisp.c (handle_composition_prop): Set it->c to the fist
9934 character of the composed region.
9935 (fill_composite_glyph_string): Set base_face->font_info to
9936 s->font_info. Get a face for ascii from base_face->ascii_face.
9937 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
9938 with a face already decided.
9939 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
9940 non-negative.
9941 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
9942 call font_prepare_composition unconditionally.
9943
9944 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
9945
9946 * xterm.h (struct x_display_info): New member font.
9947
9948 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
9949 (x_set_mouse_face_gc, x_new_font): Likewise.
9950 (x_term_init): Setup display_info->font.
9951 (x_delete_terminal): Free display_info->font.
9952
9953 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
9954
9955 * ftxfont.c (ftxfont_default_fid): Delete it.
9956 (ftxfont_open): Set xfont->fid to 0.
9957 (ftxfont_end_for_frame): Clear data specific to the frame and the
9958 font-driver.
9959
9960 * xftfont.c (xftfont_default_fid): Delete it.
9961 (xftfont_open): Set xfont->fid to 0.
9962
9963 * fontset.c (FONTSET_OBJLIST): New macro.
9964 (fontset_find_font): Update font-object list of the fontset.
9965 (free_realized_fontset): New function.
9966 (free_face_fontset): Call free_realized_fontset.
9967 (Ffont_info): Call font_close_object only when enable_font_backend
9968 is set.
9969
9970 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
9971 [HAVE_NTGUI]: Include w32term.h.
9972 [MAC_OS]: Include macterm.ch.
9973 (font_otf_ValueRecord): Use make_number.
9974 (font_finish_cache): Fix handling of reference count.
9975 (font_clear_cache): Update num_fonts.
9976 (font_open_entity): Update smallest_char_width and
9977 smallest_font_height of the frame.
9978 (font_close_object): Update num_fonts.
9979 (Fclear_font_cache): Fix finding the target cache data.
9980
9981 2008-02-16 Glenn Morris <rgm@gnu.org>
9982
9983 * fontset.c (Finternal_char_font): Fix compilation warning.
9984
9985 2008-02-16 Eli Zaretskii <eliz@gnu.org>
9986
9987 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
9988 instead of char arrays. Enlarge the size of array passed to
9989 get_token_information.
9990
9991 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
9992 warnings.
9993
9994 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
9995
9996 * .gdbinit: Don't set `args', it breaks gdb --args.
9997
9998 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
9999
10000 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
10001 within a narrowed buffer.
10002
10003 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
10004
10005 * coding.c (decode_coding_object, encode_coding_object):
10006 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
10007
10008 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
10009
10010 * coding.c (coding_set_destination): Use BEG_BYTE rather than
10011 hardcoding 1.
10012 (detect_coding_system):
10013 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
10014 (string_char_to_byte, string_byte_to_char, insert_from_gap):
10015 * insdel.c (insert_from_gap):
10016 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
10017 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
10018 (string_to_multibyte):
10019 * character.c (chars_in_text, multibyte_chars_in_text):
10020 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
10021
10022 * character.h (FETCH_STRING_CHAR_ADVANCE)
10023 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
10024 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
10025 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
10026
10027 * casefiddle.c (casify_region): Only call after-change and composition
10028 functions on the part of the region that was changed.
10029
10030 * keyboard.c (read_avail_input):
10031 * frame.c (Fdelete_frame): Call Fdelete_terminal.
10032
10033 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
10034
10035 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
10036 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
10037
10038 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
10039
10040 * w32menu.c (push_submenu_start, push_submenu_end)
10041 (push_left_right_boundary, push_menu_pane, push_menu_item):
10042 * keyboard.c (read_key_sequence): Don't pass args with side effects
10043 to AREF, it fails when compiling with -DENABLE_CHECKING.
10044
10045 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
10046
10047 * Makefile.in (${lispsource}international/charprop.el):
10048 Delete this target.
10049
10050 * search.c (boyer_moore): Fix incorrect synching of the trunk and
10051 emacs-unicode-2.
10052
10053 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
10054
10055 * terminal.c (Fdelete_terminal): Clean up the `force' path.
10056
10057 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
10058
10059 * frame.c (Qnoelisp): New symbol.
10060 (syms_of_frame): Initialize it.
10061 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
10062 harmless Elisp code, from a strong `force' from x_connection_closed.
10063 * frame.h (Qnoelisp): Declare.
10064 * xterm.c (x_connection_closed): Pass `noelisp'.
10065
10066 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
10067 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
10068 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
10069 rather than `int' for the type of `type'.
10070
10071 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
10072
10073 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
10074
10075 * Makefile.in (GNUC): Remove support for gcc-1.x.
10076
10077 2008-02-10 Richard Stallman <rms@gnu.org>
10078
10079 * lisp.h (ASET): Use AREF, not ASLOT.
10080
10081 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
10082
10083 * lisp.h (ASET): Check bounds.
10084
10085 2008-02-10 Glenn Morris <rgm@gnu.org>
10086
10087 * buffer.c (mode-name): Doc fix.
10088
10089 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
10090
10091 * Makefile.in:
10092 * emacs.c:
10093 * gmalloc.c:
10094 * keyboard.c:
10095 * lisp.h:
10096 * m/ibm370aix.h:
10097 * process.c:
10098 * regex.c:
10099 * s/hpux.h:
10100 * sysdep.c:
10101 * sysselect.h:
10102 * systty.h:
10103 * unexec.c:
10104 * w32term.c:
10105 * xsmfns.c:
10106 * xterm.c: Remove code that deals with obsolete variables.
10107
10108 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
10109
10110 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
10111 nothing else needs it anymore.
10112
10113 2008-02-09 Eli Zaretskii <eliz@gnu.org>
10114
10115 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
10116 instead of unibyte_char_to_multibyte.
10117
10118 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
10119
10120 * s/gnu-linux.h: Remove commented out code.
10121
10122 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
10123
10124 * Makefile.in: Update what RMS says about using autoconf.
10125 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
10126 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
10127 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
10128 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
10129
10130 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
10131
10132 * keymap.c (Fkey_description): Move side effect outside of macro call.
10133
10134 * xfaces.c (Finternal_make_lisp_face):
10135 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
10136
10137 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
10138 (syms_of_fontset): Use ASET.
10139
10140 * fns.c (concat): Move side effect outside of macro call.
10141 (hash_clear): Use ASET.
10142
10143 2008-02-08 Richard Stallman <rms@gnu.org>
10144
10145 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
10146 If FORCE, and frame has a surrogate minibuffer for another frame,
10147 delete the other frame first.
10148
10149 2008-02-07 Timo Savola <timo.savola@iki.fi>
10150
10151 * xterm.c (x_detect_focus_change): Handle embed client message.
10152 (handle_one_xevent): Ditto.
10153 (handle_one_xevent): If embedded and we get a button press/release,
10154 request focus.
10155 (xembed_set_info, xembed_send_message): New functions.
10156 (x_make_frame_visible): Call xembed_set_info if embedded.
10157 (x_make_frame_invisible): Call xembed_set_info if embedded.
10158 (x_term_init): Initialize Xatom_XEMBED.
10159 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
10160 (x_iconify_frame): Ditto.
10161
10162 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
10163 (enum xembed_info, enum xembed_message, enum xembed_focus)
10164 (enum xembed_modifier, enum xembed_accelerator): New.
10165 (xembed_set_info, xembed_send_message): Declare.
10166 (FRAME_X_EMBEDDED_P): New.
10167
10168 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
10169 gtk_plug_new.
10170
10171 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
10172 window ID of a frame.
10173 (x_window): Reparent frame if embedded.
10174 (Fx_create_frame): Don't set border width if embedded.
10175
10176 * emacs.c (USAGE3): Add --parent-id.
10177 (standard_args): Ditto.
10178
10179 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
10180
10181 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
10182
10183 2008-02-07 Jim Meyering <meyering@redhat.com>
10184
10185 Use "do...while (0)", not "if (1)...else" in macro definitions.
10186 The latter provokes a warning from gcc about the empty else, when
10187 followed by ";". Also, without that trailing semicolon, it would
10188 silently swallow up any following statement.
10189 * syntax.h (SETUP_SYNTAX_TABLE)
10190 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
10191 * buffer.h (DECODE_POSITION): Likewise.
10192 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
10193 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
10194 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
10195 (FETCH_CHAR_ADVANCE): Likewise.
10196 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
10197
10198 2008-02-07 Jim Meyering <meyering@redhat.com>
10199
10200 * lread.c [lint]: Don't include <sys/inode.h>.
10201
10202 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
10203
10204 * xselect.c (x_handle_dnd_message):
10205 * xmenu.c (digest_single_submenu, xmenu_show):
10206 * xdisp.c (with_echo_area_buffer_unwind_data)
10207 (format_mode_line_unwind_data, unwind_format_mode_line)
10208 (display_menu_bar):
10209 * eval.c (Ffetch_bytecode):
10210 * doc.c (store_function_docstring):
10211 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
10212 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
10213 * buffer.c (add_overlay_mod_hooklist): Use ASET.
10214
10215 2008-02-07 Kenichi Handa <handa@m17n.org>
10216
10217 * ftxfont.c (ftxfont_open): Don't set
10218 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
10219
10220 * ftfont.c (ftfont_open): Fix previous change.
10221
10222 2008-02-06 Jason Rumney <jasonr@gnu.org>
10223
10224 * w32font.c (w32font_text_extents): Fill in lbearing metric.
10225 Use cached metrics for ASCII characters.
10226 (w32font_open_internal): Don't set font's owning_frame.
10227 Cache metrics for ASCII characters.
10228
10229 * w32font.h (struct w32font_info): Add ascii_metrics.
10230 Remove owning_frame.
10231
10232 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
10233
10234 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
10235 to negative value.
10236
10237 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
10238
10239 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
10240
10241 * charset.c (syms_of_charset): Set QCtest and Qeq.
10242
10243 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
10244
10245 * process.c (Fstart_process):
10246 * callproc.c (Fcall_process): Handle the case where
10247 Funhandled_file_name_directory returns nil.
10248
10249 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
10250 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
10251 * font.c (check_gstring): Use them and AREF to access the vector before
10252 we know it's really a gstring.
10253 (Ffont_shape_text): Fix typo.
10254 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
10255
10256 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
10257 Declare.
10258
10259 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
10260
10261 2008-02-05 Jason Rumney <jasonr@gnu.org>
10262
10263 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
10264 Set smallest_font_height and smallest_char_width in display info.
10265
10266 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
10267
10268 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
10269
10270 2008-02-05 Miles Bader <miles@gnu.org>
10271
10272 * xfaces.c (get_lface_attributes, merge_named_face)
10273 (lookup_named_face, lookup_derived_face, realize_named_face):
10274 Revert 2008-02-01 change by cyd@stupidchicken.com.
10275
10276 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
10277
10278 * fontset.c (Ffontset_info): Handle the case of inhibitting the
10279 fallback fonts.
10280 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
10281
10282 2008-02-04 Jason Rumney <jasonr@gnu.org>
10283
10284 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
10285 set full_name.
10286 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
10287
10288 2008-02-03 Jason Rumney <jasonr@gnu.org>
10289
10290 * makefile.w32-in (OBJ1): Include font.o here.
10291 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
10292
10293 2008-02-02 Jason Rumney <jasonr@gnu.org>
10294
10295 * makefile.w32-in (temacs): Bump EMHEAP to 21.
10296
10297 2008-02-01 Jason Rumney <jasonr@gnu.org>
10298
10299 * s/cygwin.h: Define VIRT_ADDR_VARIES.
10300
10301 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
10302
10303 2008-02-01 Andreas Schwab <schwab@suse.de>
10304
10305 * Makefile.in (shortlisp, lisp): Update for rename of
10306 ../lisp/language/myanmar.el.
10307
10308 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
10309
10310 * xfaces.c (get_lface_attributes): Delete function.
10311 (merge_named_face, lookup_named_face, lookup_derived_face)
10312 (realize_named_face): Call lface_from_face_name directly, and use
10313 the fact that merge_face_vectors does not alter its FROM argument.
10314
10315 2008-02-01 Jason Rumney <jasonr@gnu.org>
10316
10317 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
10318 input in the default locale. Handle non-Unicode multibyte input.
10319
10320 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10321
10322 * fontset.c (reorder_font_vector): Exclude nil elements from the
10323 font group. Don't try multiple fonts.
10324 (fontset_font): Adjust for the above change.
10325 (Finternal_char_font): Return nil if the found font doesn't
10326 contain the character ch.
10327
10328 * Makefile.in (lisp, shortlisp): Add cham.el.
10329
10330 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10331
10332 * font.h (FONTP): Make it return 1 also for a font-object.
10333
10334 * .gdbinit (xfontset): New function.
10335
10336 * font.c (font_find_for_lface): Check if the character C is
10337 supported or not only for the first font.
10338
10339 * fontset.c (reorder_font_vector): Fix typo.
10340 (fontset_find_font): Don't add a font-spec specifying a script.
10341 Use 0 (not Qt) for the indication of empty font-group. Change the
10342 format of RFONT-DEF. Return Qt if no font in the font-group
10343 support the character.
10344 (fontset_font): Adjust for the above change. If no font was
10345 found the character, remember that.
10346 (face_for_char): Adjust for the change of RFONT-DEF.
10347 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
10348 no font for the target.
10349 (Finternal_char_font): Adjust for the change of RFONT-DEF.
10350
10351 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10352
10353 * font.c (font_load_for_face): Handle the case that the font in
10354 face->lface is a string.
10355
10356 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10357
10358 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
10359
10360 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10361
10362 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
10363 Fix previous change. If the frame is not on a window system,
10364 signal an error.
10365
10366 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10367
10368 * coding.c (decode_coding_object, encode_coding_object): Adjust
10369 marker positions after conversion.
10370
10371 * lisp.h (struct Lisp_Marker): New member need_adjustment.
10372
10373 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10374
10375 * font.c (font_find_for_lface): Fix the handling of the return
10376 value of font_has_char.
10377 (Ffont_shape_text): Fix previous change.
10378
10379 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
10380 (fontset_ref_and_range): Delete it.
10381 (fontset_find_font): Call char_table_ref_and_range instead of
10382 FONTSET_REF_AND_RANGE.
10383 (make_fontset): Don't setup font groups of Latin here.
10384 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
10385 (new_fontset_from_font): Make the specified font the default for
10386 all Latin characters.
10387
10388 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10389
10390 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
10391 is on a window system before accessing the fontset of the frame.
10392
10393 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10394
10395 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
10396
10397 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
10398 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
10399
10400 * font.c (Ffont_shape_text): If the font driver doesn't have a
10401 shaper function, make zero-width glyphs to have at least one-pixel
10402 width. Fix setting of `to' field of glyphs.
10403
10404 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10405
10406 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
10407 glyphs.
10408
10409 * font.h (struct font_driver): Improve docstring of member `shape'.
10410
10411 2008-02-01 Kenichi Handa <handa@m17n.org>
10412
10413 * composite.c (syms_of_composite): Fix docstring of
10414 auto-composition-function.
10415
10416 * font.h (LGLYPH_SIZE): New macro.
10417
10418 * font.c (Ffont_fill_gstring): Stop filling when a character not
10419 supported by the font is found.
10420 (Ffont_shape_text): When a shape callback function returns nil,
10421 try at most two more times with larger gstring.
10422 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
10423
10424 * xdisp.c (handle_auto_composed_prop): Change the argument to
10425 auto-composition-function.
10426
10427 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
10428 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
10429 Lispy glyph and store it in the lgstring.
10430
10431 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
10432
10433 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
10434
10435 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10436
10437 * font.c (Ffont_shape_text): Avoid unnecessary composition.
10438
10439 * fontset.c (Vfont_encoding_charset_alist): New variable.
10440 (syms_of_fontset): DEFVAR it.
10441 (reorder_font_vector, fontset_find_font): Optimize for the case of
10442 no need of reordering.
10443 (face_for_char): Map the charset property by
10444 Vfont_encoding_charset_alist.
10445
10446 2008-02-01 Jason Rumney <jasonr@gnu.org>
10447
10448 * w32font.c (logfonts_match): Don't check adstyle here.
10449 (font_matches_spec): Check here against physical font instead.
10450 (add_font_entity_to_list): Avoid some substitutions.
10451
10452 * font.c (font_parse_fcname): Default weight and slant to normal.
10453 (font_score): Prefer normal fonts if weight or slant unspecified.
10454 (font_score) [WINDOWSNT]: Scale weight difference down to closer
10455 match freetype scores.
10456
10457 2008-02-01 Jason Rumney <jasonr@gnu.org>
10458
10459 * w32font.c (w32font_text_extents): Don't use the frame stored in the
10460 font, as it may have been deleted.
10461 (w32_enumfont_pattern_entity): Map generic family to adstyle using
10462 most common hyphenless variation.
10463 (logfonts_match): Check generic family.
10464 (font_matches_spec): Don't check generic family here.
10465 (fill_in_logfont): Set generic family based on adstyle.
10466
10467 * w32font.h (w32font_get_cache): Update declaration.
10468
10469 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10470
10471 * ftfont.c (ftfont_get_cache): Adjust the argument type.
10472
10473 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
10474 If none of the new drivers are available, call font_update_drivers
10475 with the old drivers.
10476
10477 * w32font.c (w32font_get_cache): Adjust the argument type.
10478
10479 * xfont.c (xfont_get_cache): Adjust the argument type.
10480
10481 * font.h (struct font_driver): Change argument type of get_cache.
10482
10483 * xftfont.c (xftfont_start_for_frame): Delete prototype.
10484
10485 * font.c (Ffont_get): Fix arguments to Fassoc.
10486 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
10487 (font_clear_cache): New function.
10488 (font_list_entities, font_matching_entity): Use font_get_cache.
10489 (font_update_drivers): Call font_clear_cache when finishing a driver.
10490
10491 * fontset.c (fontset_find_font): Fix previous change.
10492
10493 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10494
10495 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
10496 dpyinfo->font_table.
10497 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
10498 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
10499
10500 * font.c (font_at): Handle the case that the arg C is negative.
10501 Handle the unibyte case.
10502 (Ffont_at): Call font_at with the arg C -1.
10503
10504 * xdisp.c (handle_auto_composed_prop): Don't get a character at
10505 the position here, and call font_at with the arg C -1.
10506 Don't check the range of the existing composition at the point.
10507
10508 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10509
10510 * fontset.c (fontset_add): New args charset_id and family.
10511 Change caller.
10512 (load_font_get_repertory, fontset_find_font): Assume that
10513 font_spec is always a font-spec object.
10514 (Fset_fontset_font): Always store a font-spec object in a fontset.
10515
10516 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
10517 instead of get_property_and_range.
10518
10519 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10520
10521 * xftfont.c (struct xftfont_info): Delete the member ft_face.
10522 (xftfont_open): Don't keep locking face.
10523 (xftfont_close): Don't unlock face.
10524 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
10525
10526 * fontset.c (fontset_find_font): Don't prefer a font of
10527 supplementary charset.
10528
10529 2008-02-01 Kenichi Handa <handa@m17n.org>
10530
10531 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
10532 script, langsys_tag to langsys, new member script.
10533 (OTF_TAG_STR): Terminate by '\0'.
10534 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
10535 listing to the script specified in that property. Fix arg to
10536 OTF_check_features.
10537
10538 2008-02-01 Jason Rumney <jasonr@gnu.org>
10539
10540 * w32font.h: New file.
10541
10542 * w32font.c: Include it.
10543 (struct w32font_info): Add owning_frame field. Move to w32font.h.
10544 (w32font_open): Set owning_frame.
10545 (w32font_text_extents): Use owning_frame.
10546 (struct font_callback_data): Add opentype_only field.
10547 (add_font_entity_to_list): Use it to filter fonts.
10548 Don't check against full name.
10549 (w32font_list_internal): New function.
10550 (w32font_list): Use it.
10551 (w32font_match_internal): New function.
10552 (w32font_match): Use it.
10553 (w32font_open_internal): New function.
10554 (w32font_open): Use it.
10555 (w32font_get_cache, w32font_close, w32font_has_char)
10556 (w32font_encode_char, w32font_text_extents, w32font_draw):
10557 Make non-static.
10558
10559 * makefile.w32-in (w32font.o): Depend on w32font.h.
10560
10561 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10562
10563 * charset.c (Fdefine_charset_internal): Record a supplementary
10564 charset at the tail of Vcharset_order_list.
10565
10566 * font.c (Ffont_shape_text): Fix the return value.
10567
10568 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
10569
10570 * xdisp.c (handle_auto_composed_prop): Fix previous change.
10571
10572 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10573
10574 * ftfont.c (struct OpenTypeSpec): New struct.
10575 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
10576 (ftfont_get_open_type_spec): New function.
10577 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
10578
10579 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
10580
10581 2008-02-01 Jason Rumney <jasonr@gnu.org>
10582
10583 * w32font.c (add_font_entity_to_list): Compare only the beginning
10584 of full name.
10585
10586 2008-02-01 Kenichi Handa <handa@m17n.org>
10587
10588 * xdisp.c (handle_auto_composed_prop): Simplify the code.
10589 Never return HANDLED_RECOMPUTE_PROPS.
10590
10591 2008-02-01 Kenichi Handa <handa@m17n.org>
10592
10593 * font.c (font_gstring_produce): Delete it.
10594
10595 * composite.h (COMPOSITION_METHOD):
10596 Handle COMPOSITION_WITH_GLYPH_STRING.
10597
10598 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10599
10600 * xfont.c (Qx): Delete.
10601 (syms_of_xfont): Don't initialize Qx.
10602
10603 * composite.h (enum composition_method):
10604 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
10605
10606 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10607
10608 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
10609 (choose_face_font): Accept new form of font-spec.
10610
10611 * frame.h (font_driver_list): Declare it unconditionally.
10612 (struct frame): Define members font_driver_list and font_data_list
10613 unconditionally.
10614
10615 * fontset.c: Include "font.h" unconditionally.
10616 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
10617 (Fset_fontset_font): Accept a font-spec object.
10618
10619 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
10620 PIXEL_SIZE part a wild card.
10621
10622 * dispextern.h (struct glyph_string): Define members clip and
10623 num_clips unconditionally.
10624 (struct face): Define members font_info and extra unconditionally.
10625
10626 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
10627 ftfont_info only when HAVE_LIBOTF is defined.
10628
10629 2008-02-01 Andreas Schwab <schwab@suse.de>
10630
10631 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
10632 and end.
10633
10634 2008-02-01 Jason Rumney <jasonr@gnu.org>
10635
10636 * w32font.c (w32font_driver): Add new fields.
10637
10638 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10639
10640 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
10641 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
10642 (LIBES): Add @M17N_FLT_CFLAGS@.
10643
10644 * composite.c (compose_text): Don't treat the new style
10645 composition specially.
10646
10647 * emacs.c (main): Call syms_of_font unconditionally.
10648
10649 * font.h (FONT_ENTITY_NOT_LOADABLE)
10650 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
10651 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
10652 (struct font_driver): New member shape.
10653 (font_registry_charsets): Extern it.
10654 (font_find_for_lface, font_prepare_composition): Adjust prototype.
10655 (font_otf_capability, font_drive_otf): Delete their externs.
10656
10657 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
10658 (font_charset_alist, font_registry_charsets): Move from xfont.c
10659 and rename.
10660 (font_prop_validate_otf): New function.
10661 (font_property_table): Register it for QCotf.
10662 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
10663 (font_drive_otf): Delete.
10664 (font_prepare_composition): New arg F. Adjust for the change of
10665 lispy gstring.
10666 (font_find_for_lface): New arg C.
10667 (font_load_for_face): Adjust for the change of font_find_for_lface.
10668 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
10669 lispy gstring.
10670 (Ffont_shape_text): New function.
10671 (Fopen_font): If the font size is not given, use 12-pixel.
10672 (Ffont_at): New arg STRING.
10673 (syms_of_font): Initalize font_charset_alist.
10674 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
10675 conditionally.
10676
10677 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
10678 fonts of the same font-spec. Change the format of RFONT-DEF.
10679 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
10680 Adjust for the change of RFONT-DEF.
10681 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
10682
10683 * ftfont.h: New file.
10684
10685 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
10686 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
10687 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
10688 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
10689 font_otf_capability and font_drive_otf, set ftfont_shape.
10690 (ftfont_list): Adjust for the change of :otf property value.
10691 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
10692 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
10693 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
10694 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
10695 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
10696 (otf_gstring, gstring, m17n_flt_initialized): New variables.
10697
10698 * w32term.c (x_draw_composite_glyph_string_foreground):
10699 Adjust for the change of lispy gstring.
10700
10701 * xdisp.c (handle_composition_prop): Adjust for the change of
10702 lispy gstring. Call a function for auto-composition with the
10703 third arg it->window.
10704 (fill_composite_glyph_string): Adjust for the change of lispy string.
10705 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
10706
10707 * xfaces.c (set_font_frame_param): Adjust for the change of
10708 font_find_for_lface.
10709
10710 * xfont.c (x_font_charset_alist): Move to font.c and rename.
10711 (xfont_registry_charsets): Likewise. Change caller.
10712 (syms_of_xfont): Don't handle x_font_charset_alist.
10713
10714 * xftfont.c: Include "ftfont.h".
10715 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
10716 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
10717 (xftfont_close) [HAVE_LIBOTF]: Close otf.
10718 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
10719 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
10720 Set xftfont_driver.shape to xftfont_shape.
10721
10722 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
10723 the change of lispy gstring.
10724
10725 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10726
10727 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
10728
10729 2008-02-01 Jason Rumney <jasonr@gnu.org>
10730
10731 * w32font.c (w32font_draw): Fill background manually.
10732
10733 2008-02-01 Jason Rumney <jasonr@gnu.org>
10734
10735 * font.c (Qfontp): Remove unused symbol.
10736 (QCantialias): New symbol.
10737 (syms_of_font): Define it.
10738 (font_property_table): Set a validator for QCantialias.
10739
10740 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
10741 Define if not already.
10742 (QCfamily): Share with xfaces.c.
10743 (Qstandard, Qsubpixel, Qnatural): New symbols.
10744 (syms_of_w32font): Define them. Don't define QCfamily here.
10745 (w32_antialias_type, lispy_antialias_type): New functions.
10746 (w32_enumfont_pattern_entity): New arg requested_font.
10747 Set antialias parameter if non-default was requested.
10748 (fill_in_logfont): Fill in lfQuality if :antialias specified.
10749
10750 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10751
10752 * lread.c (read1): Undo the previous change.
10753
10754 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
10755
10756 * frame.c (Fdelete_frame): Call font_update_drivers only when
10757 USE_FONT_BACKEND is defined.
10758
10759 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10760
10761 * font.h (struct font_bitmap): New member bits_per_pixel.
10762 (struct font_driver): New members start_for_frame and end_for_frame.
10763 (struct font_data_list): New struct.
10764 (font_put_frame_data, font_get_frame_data): Extern them.
10765
10766 * frame.h (struct frame): New member font_data_list.
10767
10768 * font.c (font_update_drivers): Call driver->start_for_frame and
10769 driver->end_for_frame at proper timings.
10770 (font_put_frame_data, font_get_frame_data): New functions.
10771 (Ffont_spec): Add usage in the docstring.
10772
10773 * frame.c (make_frame): Initialize f->font_data_list to NULL.
10774 (Fdelete_frame): Call font_update_drivers.
10775
10776 * xftfont.c (struct xftface_info): Delete the member xft_draw.
10777 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
10778 (xftfont_get_xft_draw): New function.
10779 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
10780 (xftfont_end_for_frame): New function.
10781 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
10782
10783 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
10784 Change argument. Cache GCs in the per-frame data.
10785 (struct ftxfont_frame_data): New struct.
10786 (ftxfont_draw_bitmap): New arg gc_fore and flush.
10787 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
10788 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
10789 (ftxfont_end_for_frame): New function.
10790 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
10791
10792 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
10793
10794 2008-02-01 Kenichi Handa <handa@m17n.org>
10795
10796 * xselect.c (Vselection_coding_system)
10797 (Vnext_selection_coding_system): Delete them.
10798 (syms_of_xselect): Don't declare selection-coding-system and
10799 next-selection-coding-system. They are declared in select.el.
10800
10801 2008-02-01 Jason Rumney <jasonr@gnu.org>
10802
10803 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
10804
10805 * w32fns.c: Include imm.h.
10806 (get_composition_string_fn, get_ime_context_fn): New optional
10807 system functions.
10808 (globals_of_w32fns): Load them from imm32.dll.
10809 (ignore_ime_char): New flag.
10810 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
10811 WM_IME_ENDCOMPOSITION messages.
10812
10813 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
10814 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
10815
10816 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10817
10818 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
10819 (READCHAR_REPORT_MULTIBYTE): New macro.
10820 (readchar): New 2nd arg MULTIBYTE.
10821 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
10822 Make symbol's name multibyte according to the multibyteness of the
10823 source.
10824
10825 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10826
10827 * xfaces.c (face_for_overlay_string): Call lookup_face with
10828 correct arguments (fix of synching with the trunk).
10829
10830 2008-02-01 Kenichi Handa <handa@m17n.org>
10831
10832 * font.c (font_prop_validate_symbol, font_prop_validate_style)
10833 (font_prop_validate_non_neg, font_prop_validate_spacing):
10834 Delete argument prop_index.
10835 (font_property_table): Change arguments to validater. Change Callers.
10836 (font_lispy_object): Delete.
10837 (font_at): Use font_find_object instead fo font_lispy_object.
10838
10839 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10840
10841 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
10842 and file names.
10843
10844 2008-02-01 Jason Rumney <jasonr@gnu.org>
10845
10846 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
10847 (font_matches_spec): Remove debug output.
10848 (add_font_entity_to_list): Avoid using substituted fonts.
10849
10850 2008-02-01 Jason Rumney <jasonr@gnu.org>
10851
10852 * doc.c (Fsnarf_documentation):
10853 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
10854
10855 2008-02-01 Miles Bader <miles@gnu.org>
10856
10857 * dispextern.h (struct glyph_row): Only define "clip" field if
10858 HAVE_WINDOW_SYSTEM is defined.
10859
10860 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
10861
10862 Fix up multi-tty merge.
10863
10864 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
10865 and indentation.
10866
10867 * xfaces.c (free_realized_face, clear_face_gcs):
10868 Include font_done_for_face in the input_blocked section, just in case.
10869
10870 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
10871 (get_char_face_and_encoding): Undo last change and remove the *other*
10872 duplicate definition (i.e. keep the one that's better scoped and that
10873 includes code for the font-backend).
10874
10875 * terminal.c (create_terminal): Default keyboard_coding to
10876 `no-conversion' and terminal_coding to `undecided'.
10877
10878 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
10879
10880 * fontset.c (free_realized_fontsets): Check that the table entry does
10881 contain a fontset before trying to compare it to `base'.
10882
10883 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
10884 syms_of_charset, and syms_of_coding earlier because init_window_once
10885 now needs Vcoding_system_hash_table to be setup.
10886
10887 * coding.h (default_buffer_file_coding): Remove.
10888
10889 * coding.c (default_buffer_file_coding): Remove.
10890 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
10891 than ->symbol, and use the terminal-local coding system.
10892 (syms_of_coding): Don't setup the coding-systems that are not
10893 terminal-local.
10894 (Fdefine_coding_system_internal): Use XCAR/XCDR.
10895
10896 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
10897 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
10898
10899 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
10900 in chartab.c and were re-added here by mistake.
10901 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
10902
10903 * doc.c (Fsnarf_documentation):
10904 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
10905 src to etc.
10906
10907 * ChangeLog.10: Add mistakenly removed entry.
10908
10909 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
10910
10911 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
10912
10913 2008-02-01 Miles Bader <miles@gnu.org>
10914
10915 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
10916 Add extra args to FACE_FOR_CHAR.
10917
10918 2008-02-01 Kenichi Handa <handa@m17n.org>
10919
10920 * keymap.c (where_is_internal_1): If key is a cons, store the copy
10921 in sequence.
10922
10923 * chartab.c (map_sub_char_table, map_char_table): If the range
10924 contains just one character, call the function with that character
10925 even if the depth is not 3.
10926
10927 2008-02-01 Jason Rumney <jasonr@gnu.org>
10928
10929 * w32font.c (w32font_text_extents): Calculate metrics for the
10930 whole string.
10931
10932 2008-02-01 Jason Rumney <jasonr@gnu.org>
10933
10934 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
10935
10936 2008-02-01 Jason Rumney <jasonr@gnu.org>
10937
10938 * w32term.c (x_set_glyph_string_clipping): Use
10939 get_glyph_string_clip_rects.
10940 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
10941 Adjust for the change of struct glyph_string.
10942
10943 * w32font.c (w32font_draw): Do clipping here.
10944
10945 2008-02-01 Kenichi Handa <handa@m17n.org>
10946
10947 * xftfont.c (xftfont_draw): Adjust for the change of struct
10948 glyph_string.
10949
10950 * xterm.c (x_set_glyph_string_clipping): Use
10951 get_glyph_string_clip_rects.
10952 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
10953 Adjust for the change of struct glyph_string.
10954
10955 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
10956 the resulting clip(s}.
10957 (expose_overlaps): Add arg r. Change callers. Set it to
10958 row->clip temporarily.
10959 (expose_window): Redraw rows overlapping the exposed area.
10960
10961 * dispextern.h (struct glyph_row): New member clip.
10962 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
10963 clip_height, new member clip, and num_clips.
10964
10965 2008-02-01 Kenichi Handa <handa@m17n.org>
10966
10967 * data.c (Fchar_or_string_p): Fix docstring.
10968
10969 2008-02-01 Kenichi Handa <handa@m17n.org>
10970
10971 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
10972 create a temporary XftDraw object.
10973
10974 2008-02-01 Kenichi Handa <handa@m17n.org>
10975
10976 * font.c (Ffontp): Fix docstring.
10977
10978 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
10979 strong evidence of ISO-2022.
10980
10981 2008-02-01 Kenichi Handa <handa@m17n.org>
10982
10983 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
10984 SYNTAX_ENTRY_FOLLOW_PARENT.
10985
10986 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
10987
10988 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
10989 its type.
10990 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
10991 Update to the new type of weak_hash_tables and next_weak.
10992
10993 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
10994 a plain C pointer to Lisp_Hash_Table.
10995
10996 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
10997 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
10998 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
10999 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
11000 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
11001 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
11002 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
11003 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
11004 (GC_EQ): Remove since they've been identical to their non-GC_
11005 alter-egos ever since the markbit was eradicated.
11006
11007 * alloc.c:
11008 * buffer.c:
11009 * buffer.h:
11010 * data.c:
11011 * fileio.c:
11012 * filelock.c:
11013 * fns.c:
11014 * frame.h:
11015 * lisp.h:
11016 * macterm.c:
11017 * print.c:
11018 * process.c:
11019 * w32fns.c:
11020 * w32menu.c:
11021 * w32term.c:
11022 * xfns.c:
11023 * xmenu.c:
11024 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
11025
11026 2008-02-01 Kenichi Handa <handa@m17n.org>
11027
11028 * chartab.c (map_sub_char_table): Make it work for the top-level
11029 char-table. Fix handling of parent char-table.
11030 (map_char_table): Adjust for the above change.
11031
11032 2008-02-01 Jason Rumney <jasonr@gnu.org>
11033
11034 * w32font.c (Qgdi): Rename from Qw32.
11035
11036 2008-02-01 Jason Rumney <jasonr@gnu.org>
11037
11038 * w32bdf.c (get_quoted_string): Make function static.
11039
11040 2008-02-01 Kenichi Handa <handa@m17n.org>
11041
11042 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
11043 bigger ascent and descent than those of the font, use them as
11044 font's ascent and descent.
11045
11046 2008-02-01 Kenichi Handa <handa@m17n.org>
11047
11048 * Makefile.in (${lispsource}international/charprop.el): Move this
11049 target within "#ifdef HAVE_UNIDATA" and "#endif".
11050
11051 2008-02-01 Kenichi Handa <handa@m17n.org>
11052
11053 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
11054 (shortlisp): Add ../lisp/language/tai-viet.el.
11055
11056 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
11057
11058 * Makefile.in (${lispsource}international/charprop.el): Depend on
11059 temacs${EXEEXT}.
11060
11061 2008-02-01 Jason Rumney <jasonr@gnu.org>
11062
11063 * w32font.c (w32font_close): Delete the GDI font object.
11064
11065 * w32menu.c: Include character.h.
11066
11067 * w32proc.c: Likewise.
11068
11069 * w32select.c: Likewise.
11070
11071 * makefile.w32-in (w32proc.o): Depend on character.h.
11072
11073 2008-02-01 Jason Rumney <jasonr@gnu.org>
11074
11075 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
11076
11077 * w32menu.c (syms_of_w32menu): Likewise.
11078
11079 * w32proc.c (syms_of_ntproc): Likewise.
11080
11081 * w32select.c (syms_of_w32select): Likewise.
11082
11083 * w32term.c (syms_of_w32term): Likewise.
11084
11085 2008-02-01 Jason Rumney <jasonr@gnu.org>
11086
11087 * w32font.c (w32font_draw): Delete brush after using it.
11088
11089 2008-02-01 Jason Rumney <jasonr@gnu.org>
11090
11091 * w32font.c (w32font_open): Don't set font_idx.
11092 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
11093 to font settings.
11094 (w32font_draw): Fill background explicitly.
11095
11096 2008-02-01 Jason Rumney <jasonr@gnu.org>
11097
11098 * w32term.c (w32_initialize): Don't call w32font_initialize.
11099
11100 * w32font.c (w32font_info): Remove subranges.
11101 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
11102 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
11103 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
11104 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
11105 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
11106 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
11107 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
11108 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
11109 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
11110 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
11111 New symbols.
11112 (font_callback_data): New struct.
11113 (w32font_list, w32font_match): Use it.
11114 (w32font_open): Don't populate subranges.
11115 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
11116 (w32font_encode_char): Always return unicode code-point as-is.
11117 (w32font_text_extents): Supply a transformation matrix to
11118 GetGlyphOutline. Never look up by glyph index. Avoid looping
11119 twice. Use unicode version of GetTexExtentPoint32 instead of
11120 glyph index version.
11121 (set_fonts_frame): Remove.
11122 (w32_enumfont_pattern_entity): Add frame parameter, use it to
11123 set frame parameter. Use backward compatible fake foundries.
11124 Save generic family in extra slot under QCfamily. Make width slot
11125 constant. Save QCspacing value. Save list of scripts instead of
11126 binary subranges.
11127 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
11128 (add_font_entity_to_list): Use font_callback_data struct. Filter
11129 unwanted fonts.
11130 (add_one_font_entity_to_list): Use font_callback_data struct.
11131 (w32_registry): Default to iso10646_1.
11132 (fill_in_logfont): Use dpi from extra slot. Don't bother with
11133 string font registries. Don't fill in font name if it is a generic
11134 family name, fill family instead. Use spacing, family and script
11135 extra info to fill pitch, family and charset fields.
11136 (list_all_matching_fonts): Use font_callback_data struct.
11137 (unicode_range_for_char): Remove.
11138 (font_supported_scripts): New function.
11139 (w32font_initialize): Remove.
11140 (syms_of_w32font): Update which symbols are defined.
11141
11142 2008-02-01 Jason Rumney <jasonr@gnu.org>
11143
11144 * font.c (font_pixel_size): Reverse assq_no_quit args.
11145
11146 * w32term.h (FONT_WIDTH): Report max width, not average.
11147 (FONT_MAX_WIDTH): Remove.
11148 (FONT_AVG_WIDTH): New macro.
11149
11150 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
11151 redefinition of FONT_WIDTH.
11152
11153 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
11154 (w32_cache_char_metrics): Use FONT_WIDTH.
11155
11156 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
11157
11158 2008-02-01 Jason Rumney <jasonr@gnu.org>
11159
11160 * w32font.c (w32font_open): Make lfHeight negative.
11161
11162 * w32fns.c (x_default_font_parameter): Use new style font name.
11163 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
11164
11165 2008-02-01 Jason Rumney <jasonr@gnu.org>
11166
11167 * w32font.c (QCsubranges): New symbol.
11168 (w32font_open, w32font_has_char): Get subranges from subproperty
11169 of extra.
11170 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
11171 (syms_of_w32font): Define :subranges symbol.
11172
11173 * font.c (font_put_extra): Expose externally.
11174
11175 * font.h (font_put_extra): Move declaration from font.c.
11176
11177 * font.c (Ffont_get): Use font driver to determine otf capability.
11178 (adjust_anchor): Check if driver defines anchor_point before using.
11179
11180 * w32font.c (w32font_open): Handle size, height and pixel_size better.
11181 (w32font_draw): Use options.
11182 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
11183 Fix detection of truetype fonts.
11184 (registry_to_w32_charset): Handle charsets other than iso8859-1
11185 expressed as lisp symbols.
11186 (w32_registry): Express charset as lisp symbol.
11187 (fill_in_logfont): Reverse pixel and point height logic.
11188 Don't set width here. Set quality to default.
11189
11190 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
11191 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
11192
11193 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
11194 Remove redundant loop and allocation.
11195
11196 * makefile.w32-in (font.o, w32font.o): New objects.
11197 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
11198 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
11199
11200 * xdisp.c (fill_composite_glyph_string): Make the first arg to
11201 STORE_XCHARB a valid l-value.
11202
11203 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
11204 calculations for non-Truetype fonts.
11205 (x_draw_glyph_string): Sync with xterm.c.
11206 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
11207 Remove redundant code.
11208 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
11209
11210 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
11211 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
11212
11213 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
11214 (x_to_w32_charset, w32_to_x_charset): Expose externally.
11215
11216 * w32font.c: New file for w32 font backend.
11217
11218 2008-02-01 Kenichi Handa <handa@m17n.org>
11219
11220 * term.c: Don't include "buffer.h" twice.
11221
11222 2008-02-01 Kenichi Handa <handa@m17n.org>
11223
11224 * character.c (Funibyte_string): New function.
11225 (syms_of_character): Defsubr it.
11226
11227 2008-02-01 Jason Rumney <jasonr@gnu.org>
11228
11229 * w32term.c [USE_FONT_BACKEND]:
11230 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
11231 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
11232 (x_draw_glyph_string, x_draw_glyph_string_foreground)
11233 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
11234 (x_free_frame_resources): Sync with xterm.c.
11235
11236 2008-02-01 Andreas Schwab <schwab@suse.de>
11237
11238 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
11239 char-table size.
11240
11241 2008-02-01 Kenichi Handa <handa@m17n.org>
11242
11243 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
11244
11245 2008-02-01 Kenichi Handa <handa@m17n.org>
11246
11247 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
11248 font_otf_gpos, add font_drive_otf.
11249
11250 * fontset.c (fontset_find_font): Pay attention to font size
11251 specified for a font.
11252 (reorder_font_vector): Check contents of font_def.
11253
11254 * font.c (struct otf_list): Delete it.
11255 (otf_list): Make it a lisp variable.
11256 (otf_open): Use lispy otf_list.
11257 (generate_otf_features): Rename from parse_gsub_gpos_spec.
11258 (check_otf_features): New function.
11259 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
11260 New functions.
11261 (font_drive_otf): New function merging font_otf_gsub and
11262 font_otf_gpos.
11263 (font_open_for_lface): New arg spec. Change argument order.
11264 (font_load_for_face): Adjust for the change of font_open_for_lface.
11265 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
11266 Ffont_otf_gpos.
11267 (syms_of_font): Staticpro otf_list. Delete defsubr of
11268 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
11269
11270 * xfaces.c (set_font_frame_param): Adjust for the change of
11271 font_open_for_lface.
11272
11273 * font.h (font_open_for_lface): Adjust prototype.
11274 (struct font_driver): Delete members otf_gsub and otf_gpos, add
11275 member otf_drive.
11276 (font_otf_gsub, font_otf_gpos): Delete externs.
11277 (font_drive_otf): Extern it.
11278
11279 2008-02-01 Kenichi Handa <handa@m17n.org>
11280
11281 * font.c (font_at): If the window W is not on a window system,
11282 return Qnil.
11283
11284 * coding.c (produce_chars, encode_coding): Don't call
11285 insert_from_gap if no characters to produce.
11286
11287 2008-02-01 Kenichi Handa <handa@m17n.org>
11288
11289 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
11290 Fclear_face_cache.
11291
11292 * xfaces.c (face_for_font): Check also face->font==font->font.font.
11293
11294 2008-02-01 Miles Bader <miles@gnu.org>
11295
11296 * emacs.c (main): Change default value of `enable_font_backend' to 1.
11297 Parse "--disable-font-backend" option.
11298 (standard_args): Add "--disable-font-backend" option.
11299
11300 2008-02-01 Kenichi Handa <handa@m17n.org>
11301
11302 * fontset.c (fontset_find_font): New function.
11303 (fontset_font): Use fontset_find_font.
11304 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
11305 Register the specified font for all Latin characters.
11306 (new_fontset_from_font): Register the specified font for all Latin
11307 characters.
11308 (dump_fontset): For a realized fontset, include the base fontset
11309 name in the returned vector.
11310
11311 2008-02-01 Kenichi Handa <handa@m17n.org>
11312
11313 * character.h (CHAR_STRING): Cast C to unsigned on calling
11314 char_string.
11315
11316 * character.c (char_string): Type of arg C changed to unsigned.
11317 Signal an error if C is an invalid character code.
11318
11319 * editfns.c (general_insert_function, Fchar_to_string):
11320 Use CHARACTERP, not INTEGERP.
11321
11322 2008-02-01 Kenichi Handa <handa@m17n.org>
11323
11324 * character.h (MIN_MULTIBYTE_LEADING_CODE)
11325 (MAX_MULTIBYTE_LEADING_CODE): New macros.
11326
11327 * regex.c (analyse_first): Fix for multibyte characters in "case
11328 charset:" and "case categoryspec:".
11329
11330 2008-02-01 Andreas Schwab <schwab@suse.de>
11331
11332 * Makefile.in (LIBES): Move standard libraries to the end.
11333
11334 2008-02-01 Kenichi Handa <handa@m17n.org>
11335
11336 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
11337 nonzero, don't shrink the buffer nextb.
11338
11339 * buffer.h (struct buffer_text): New member inhibit_shrinking.
11340
11341 * coding.c (coding_alloc_by_making_gap): New arg offset.
11342 (alloc_destination): Call coding_alloc_by_making_gap with the arg
11343 offset.
11344 (decode_coding_iso_2022): Update coding->safe_charsets.
11345 (decode_coding_gap): Temporarily set
11346 current_buffer->text->inhibit_shrinking to 1.
11347
11348 2008-02-01 Kenichi Handa <handa@m17n.org>
11349
11350 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
11351 indexing into elements of s->cmp and s->char2b.
11352
11353 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
11354
11355 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
11356
11357 2008-02-01 Kenichi Handa <handa@m17n.org>
11358
11359 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
11360 target_multibyte instead of multibyte.
11361 (re_match_2_internal): Call bcmp_translate with target_multibyte.
11362 (bcmp_translate): Change the argument name from multibyte to
11363 target_multibyte.
11364
11365 2008-02-01 Kenichi Handa <handa@m17n.org>
11366
11367 These changes are to compile a regexp into a pattern that can be
11368 used both for multibyte and unibyte targets.
11369
11370 * Makefile.in (search.o): Depend on charset.h.
11371
11372 * character.c (multibyte_char_to_unibyte_safe): New function.
11373
11374 * search.c: Include "charset.h".
11375 (compile_pattern_1): Delete argument multibyte. Don't set
11376 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
11377 (compile_pattern): Don't compare cp->buf.target_multibyte.
11378 Compare cp->buf.charset_unibyte.
11379 (compile_pattern): Set cp->buf.target_multibyte.
11380
11381 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
11382
11383 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
11384
11385 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
11386 multibyte. Change callers.
11387 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
11388 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
11389 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
11390 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
11391 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
11392 (regex_compile): Make the compiled pattern usable both for
11393 multibyte and unibyte targets.
11394 (analyse_first): Make the fastmap usable both for multibyte and
11395 unibyte targets.
11396 (TRANSLATE_VIA_MULTIBYTE): Delete.
11397 (re_match_2_internal): Pay attention to the case that the
11398 multibyteness of bufp and target may be different.
11399
11400 2008-02-01 Kenichi Handa <handa@m17n.org>
11401
11402 * xdisp.c (x_produce_glyphs): When a font is not found, make the
11403 empty box occupy at least one column width.
11404
11405 2008-02-01 Miles Bader <miles@gnu.org>
11406
11407 * Makefile.in: Remove redundant HAVE_XFT clause.
11408
11409 2008-02-01 Kenichi Handa <handa@m17n.org>
11410
11411 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
11412
11413 2008-02-01 Kenichi Handa <handa@m17n.org>
11414
11415 * fontset.c (Finternal_char_font): Fix for the case of POSITION
11416 being nil.
11417
11418 2008-02-01 Kenichi Handa <handa@m17n.org>
11419
11420 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
11421
11422 2008-02-01 Kenichi Handa <handa@m17n.org>
11423
11424 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
11425
11426 2008-02-01 Kenichi Handa <handa@m17n.org>
11427
11428 * search.c (simple_search): Fix previous change.
11429
11430 2008-02-01 Kenichi Handa <handa@m17n.org>
11431
11432 * xftfont.c (ftfont_font_format): Extern declaration.
11433
11434 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
11435
11436 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
11437 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
11438
11439 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
11440 (ftfont_font_format): Fix previous change.
11441
11442 * font.h (Ffont_xlfd_name): EXFUN it.
11443
11444 * font.c (font_parse_xlfd): Fix the array size of `f'.
11445 (register_font_driver): Use EQ to compare driver->type.
11446
11447 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
11448 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
11449 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
11450
11451 2008-02-01 Kenichi Handa <handa@m17n.org>
11452
11453 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
11454 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
11455
11456 2008-02-01 Kenichi Handa <handa@m17n.org>
11457
11458 * xfont.c (xfont_open): Set font->format.
11459
11460 * xftfont.c (xftfont_open): Set font->format.
11461
11462 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
11463 (ftfont_list): Include FC_FONTFORMAT in FcObject.
11464 (ftfont_open): Set font->format.
11465 (ftfont_font_format): New function.
11466
11467 * font.h (struct font): New member format.
11468
11469 * font.c (Qopentype): New variable.
11470 (syms_of_font): Defsym it.
11471 (Fquery_font): Change the format of the last element of the return
11472 value.
11473
11474 2008-02-01 Kenichi Handa <handa@m17n.org>
11475
11476 * xfns.c (xic_create_xfontset): Try the default fontset name as a
11477 last resort.
11478
11479 2008-02-01 Kenichi Handa <handa@m17n.org>
11480
11481 * coding.c (detect_coding_charset): Fix detection of multi-byte
11482 charset.
11483
11484 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
11485
11486 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
11487
11488 2008-02-01 Kenichi Handa <handa@m17n.org>
11489
11490 * xdisp.c (get_next_display_element): Set it->face_id for the
11491 first component of a composition.
11492 (x_produce_glyphs): Check if the font is changed or not for composition.
11493
11494 2008-02-01 Kenichi Handa <handa@m17n.org>
11495
11496 * fontset.c (Qlatin): New variable.
11497 (syms_of_fontset): Define it as a lisp symbol.
11498 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
11499
11500 2008-02-01 Kenichi Handa <handa@m17n.org>
11501
11502 * font.c (font_unparse_fcname): Pay attention to the case that
11503 some of font property is a null string.
11504
11505 2008-02-01 Kenichi Handa <handa@m17n.org>
11506
11507 * term.c: Include "composite.h".
11508 (encode_terminal_code): Output all components of composition.
11509 Check the size of encode_terminal_src.
11510 (produce_glyphs): For composition, call produce_composite_glyph.
11511 (append_composite_glyph, produce_composite_glyph): New functions.
11512
11513 * xdisp.c (x_produce_glyphs): In handling composition, if a font
11514 is not found, get font_info from the current ascii face.
11515
11516 2008-02-01 Kenichi Handa <handa@m17n.org>
11517
11518 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
11519 buffer-file-name to Qnil before calling insert_from_buffer.
11520
11521 * font.c (font_unparse_fcname): Pay attention to the case that
11522 foundry is a null string.
11523
11524 2008-02-01 Kenichi Handa <handa@m17n.org>
11525
11526 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
11527
11528 * font.c (Qunicode_sip): New variable.
11529 (syms_of_font): Declare it as a Lisp symbol.
11530
11531 * font.h (Qunicode_sip): Extern it.
11532
11533 2008-02-01 Kenichi Handa <handa@m17n.org>
11534
11535 * composite.c (get_composition_id): Pay attention to TAB component.
11536
11537 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
11538 TAB. Adjust for the change of s->char2b which always points to
11539 the first element of allocated memory.
11540
11541 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
11542
11543 * xdisp.c (handle_composition_prop): Set it->c to the first
11544 non-TAB component.
11545 (fill_composite_glyph_string): Change argument.
11546 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
11547 (x_produce_glyphs): Fix handling of left/right padding.
11548
11549 2008-02-01 Kenichi Handa <handa@m17n.org>
11550
11551 * coding.c (detect_coding_system): Fix for handling off
11552 inhibit_iso_escape_detection. Fix for the case that no coding
11553 system is defined for a specific coding category.
11554
11555 2008-02-01 Kenichi Handa <handa@m17n.org>
11556
11557 * font.c (font_matching_entity): Delete unused local var.
11558
11559 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
11560 opening a font.
11561
11562 * fileio.c (Finsert_file_contents): On recovering a file, assume
11563 Unix-like eol.
11564 (choose_write_coding_system): On auto-saving a file, force
11565 Unix-like eol.
11566
11567 * coding.c (setup_coding_system): Fix setting of
11568 coding->common_flags based on eol_type.
11569 (coding_inherit_eol_type): If PARENT is not nil, be sure to
11570 inherit from it.
11571
11572 2008-02-01 Kenichi Handa <handa@m17n.org>
11573
11574 * alloc.c (NSTATICS): Increas to 0x600.
11575
11576 2008-02-01 Kenichi Handa <handa@m17n.org>
11577
11578 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
11579 (ftfont_list): Don't check :name property.
11580 (ftfont_match): New function.
11581 (ftfont_pattern_entity): If the pattern doesn't contain
11582 FC_SPACING, don't assume FC_MONO.
11583
11584 * font.h (struct font_driver): New member `match'.
11585 (font_update_drivers): Adjust prototype.
11586
11587 * font.c (font_parse_fcname, font_parse_name): Don't change :name
11588 property of FONT.
11589 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
11590 them unconditionally.
11591 (font_matching_entity): New function.
11592 (font_open_by_name): Try font_matching_entity if exact match is
11593 not found.
11594 (font_update_drivers): Delete the arg FONT. Return a list of
11595 actually used backends. Don't free faces, font caches here.
11596 Don't store data in frame parameters. Don't call x_set_font.
11597 (Ffont_spec): Store :name property as is.
11598 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
11599 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
11600 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
11601 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
11602 Call font->driver->otf_gsub instead of font_otf_gsub.
11603
11604 * frame.c (x_set_font_backend): Do more works that were done in
11605 font_update_drivers before.
11606
11607 * xfont.c (xfont_match): New function.
11608 (xfont_driver): Set xfont_driver.match to xfont_match.
11609 (xfont_draw): Set font in GC if necessary.
11610
11611 * ftxfont.c (ftxfont_match): New function.
11612 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
11613
11614 * xftfont.c (xftfont_match): New function.
11615 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
11616
11617 2008-02-01 Kenichi Handa <handa@m17n.org>
11618
11619 * font.h (struct font): New member scalable.
11620 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
11621 (font_otf_gsub): Adjust prototype.
11622
11623 * font.c (font_otf_capability): Fix handling of the default langsys.
11624 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
11625 Check the contents of SPEC.
11626 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
11627 (check_gstring): New function.
11628 (REPLACEMENT_CHARACTER): New macro.
11629 (font_otf_gsub): New arg alternate_subst. Be sure to set all
11630 glyph codes of GSTRING.
11631 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
11632 (font_prepare_composition): Set cmp->glyph_len.
11633 (font_open_entity): Set font->scalable.
11634 (Ffont_get): Handle :otf property.
11635 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
11636 functions.
11637 (Fquery_font): Use font->font.full_name.
11638 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
11639 Sfont_otf_alternates.
11640
11641 * ftfont.c (ftfont_open): Set font->font.full_name and
11642 font->font.name properly. Fix calculation of font->font.height
11643 and font->min_width.
11644
11645 * ftxfont.c (ftxfont_create_gcs): New function.
11646 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
11647 (ftxfont_draw_backgrond): Fix filling region.
11648 (ftxfont_default_fid): New function.
11649 (ftxfont_open): Set xfont->fid to the return value of
11650 ftxfont_default_fid.
11651 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
11652 (ftxfont_done_face): Free only GCs that are created by
11653 ftxfont_create_gcs.
11654 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
11655
11656 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
11657 Clip to src->width, etc (not src->clip_XXX).
11658
11659 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
11660 FontBackend frame parameter.
11661
11662 2008-02-01 Kenichi Handa <handa@m17n.org>
11663
11664 * font.h (struct font_driver_list): New member `on'.
11665 (Fclear_font_cache): EXFUN it.
11666 (font_update_drivers): Extern it.
11667
11668 * font.c (font_unparse_fcname): Fix typo (swidth->width).
11669 (font_list_entities): Check driver_list->on.
11670 (register_font_driver): Initalize `on' member to 0.
11671 (font_update_drivers): New function.
11672 (Fclear_font_cache): Check driver_list->on.
11673
11674 * frame.h (Qfont_backend): Extern it.
11675 (x_set_font_backend): Extern it.
11676
11677 * frame.c (Qfont_backend): New variable.
11678 (frame_parms): New element for font-backend.
11679 (x_set_font_backend): New function.
11680
11681 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
11682 FontBackend frame parameter.
11683 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
11684 x_set_font_backend.
11685
11686 * xfont.c (xfont_list): Don't try listing by :name property if the
11687 name is not for XLFD.
11688
11689 2008-02-01 Kenichi Handa <handa@m17n.org>
11690
11691 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
11692 (LGLYPH_SET_TO): New macros.
11693 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
11694 element of G is vector or not.
11695 (font_at): Extern it.
11696
11697 * font.c: Include window.h.
11698 (font_lispy_object): New function.
11699 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
11700 end of valid glyph.
11701 (font_close_object): Fix getting (struct font *).
11702 (font_at): New function.
11703 (Ffont_get): If FONT is a font-object, get entity from it.
11704 (Ffont_make_gstring): Initialize elements of glyphs with nil.
11705 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
11706 range check.
11707 (Ffont_at): New function.
11708 (syms_of_font): Defsubr Sfont_at.
11709
11710 * xdisp.c (it_props): Move the entry for Qauto_composed to just
11711 before the entry for Qcomposition.
11712 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
11713 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
11714 the font in gstring.
11715 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
11716 LGLYPH_FORM (g) to detect the end of valid glyph.
11717 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
11718 we are composing with gstring.
11719
11720 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
11721 Check if adjustment is vector or not.
11722
11723 * Makefile.in (font.o): Make it depends on window.h.
11724
11725 2008-02-01 Kenichi Handa <handa@m17n.org>
11726
11727 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
11728 adjustment is vector or not.
11729
11730 2008-02-01 Miles Bader <miles@gnu.org>
11731
11732 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
11733
11734 2008-02-01 Kenichi Handa <handa@m17n.org>
11735
11736 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
11737 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
11738 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
11739
11740 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
11741 (DEVICE_DELTA): Fix typo.
11742 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
11743 LGLYPH format.
11744
11745 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
11746 the change of LGLYPH format.
11747
11748 2008-02-01 Kenichi Handa <handa@m17n.org>
11749
11750 * ftfont.c (ftfont_list): Fix typo.
11751 (ftfont_build_basic_charsets): Don't include letters with diacritics.
11752
11753 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
11754
11755 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
11756
11757 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
11758 xftface_info is non-NULL.
11759
11760 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
11761
11762 * ftfont.c (ftfont_list): Move misplaced #endif.
11763
11764 2008-02-01 Kenichi Handa <handa@m17n.org>
11765
11766 * ftfont.c (ftfont_list): Pay attention to the case that
11767 FC_CAPABILITY is not defined.
11768
11769 2008-02-01 Kenichi Handa <handa@m17n.org>
11770
11771 * xftfont.c (xftfont_open): Set charset related members to -1.
11772
11773 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
11774 QCname.
11775 (ftfont_open): Set charset related members to -1.
11776
11777 * fontset.c (Votf_script_alist): New variable.
11778 (syms_of_fontset): Initialize it.
11779 (fontset_font): Delete unused variable.
11780
11781 * fontset.h (Votf_script_alist): Extern it.
11782
11783 * font.c (font_find_for_lface): Optimize code.
11784
11785 * font.h (font_close_object, font_merge_old_spec): Extern them.
11786
11787 2008-02-01 Kenichi Handa <handa@m17n.org>
11788
11789 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
11790 (syms_of_font): Initialize them.
11791 (font_pixel_size): Allow float value in dpi.
11792 (font_prop_validate_type): Delete.
11793 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
11794 Change caller.
11795 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
11796 (font_prop_validate_extra): Delete.
11797 (font_prop_validate_spacing): New function.
11798 (font_property_table): Add elements for all known properties.
11799 (get_font_prop_index): Rename from check_font_prop_name. New
11800 argument FROM. Change caller.
11801 (font_prop_validate): Validate all known properties.
11802 (font_put_extra): Delete argument force. Change caller.
11803 (font_expand_wildcards): Make it static. Fix the way of shrinking
11804 the possible range.
11805 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
11806 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
11807 Change caller.
11808 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
11809 (font_parse_fcname): Delete argument merge. Fix parsing of point
11810 size. Don't validate properties values here. Change caller.
11811 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
11812 (font_open_by_name): Delete unused variable.
11813 (Ffont_spec): Likewise. Validate property values.
11814 (Ffont_match_p): New function.
11815
11816 * font.h (QCscalable): Extern it.
11817 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
11818
11819 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
11820
11821 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
11822 (xfont_list_pattern): New function.
11823 (xfont_list): Use xfont_list_pattern.
11824
11825 2008-02-01 Kenichi Handa <handa@m17n.org>
11826
11827 * font.h (Flist_fonts): EXFUN it.
11828
11829 2008-02-01 Jason Rumney <jasonr@gnu.org>
11830
11831 * w32term.c (w32_initialize): Add back smoothing_type and
11832 smoothing_enabled definitions.
11833
11834 2008-02-01 Kenichi Handa <handa@m17n.org>
11835
11836 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
11837 s->face->font on determining underline position.
11838
11839 2008-02-01 Kenichi Handa <handa@m17n.org>
11840
11841 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
11842 (font_has_char): Accept font-object too.
11843 (font_find_for_lface): Try at first with a size specified in face.
11844
11845 2008-02-01 Kenichi Handa <handa@m17n.org>
11846
11847 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
11848 font_open_by_name.
11849
11850 2008-02-01 Kenichi Handa <handa@m17n.org>
11851
11852 * font.h (QCspacing, QCdpi): Extern them.
11853 (enum font_spacing): New enum.
11854 (FONT_PIXEL_SIZE_QUANTUM): New macro.
11855
11856 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
11857 (QCspacing, QCdpi): New variables.
11858 (syms_of_font): Initialize them.
11859 (font_pixel_size): New function.
11860 (font_put_extra): New function.
11861 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
11862 in FONT_EXTRA.
11863 (font_parse_fcname): Handle enumerated values (e.g. bold).
11864 Fix handling font size. Add QCname property that contains only
11865 unknown properties.
11866 (font_score): Change argument. Change caller. Pay attention to
11867 FONT_PIXEL_SIZE_QUANTUM.
11868 (font_sort_entites, font_list_entities, font_find_for_lface)
11869 (font_open_for_lface, font_open_by_name): Fix handling of font size.
11870 (Ffont_spec): Add QCname property that contains only unknown properties.
11871
11872 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
11873 include weight in listing pattern, instead check weight of each
11874 listed font. Don't include scalable in pattern. Pay attention to
11875 FONT_PIXEL_SIZE_QUANTUM.
11876
11877 2008-02-01 Kenichi Handa <handa@m17n.org>
11878
11879 * font.c (font_parse_fcname): Fix parsing of point-size.
11880 (font_unparse_fcname): Produce symbolic names for style properties.
11881 (font_list_entities): Handle float size correctly.
11882 (font_open_by_name): Prefer `normal' property values if the name
11883 doesn't specify them.
11884
11885 * fontset.c (Finternal_char_font): Use font_get_name, not
11886 Ffont_xlfd_name.
11887
11888 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
11889 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
11890 pattern. Don't force scalable.
11891
11892 * xftfont.c (xftfont_open): For generating a name, start from
11893 96-byte buffer.
11894
11895 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
11896
11897 * frame.h (x_new_fontset2): Fix prototype.
11898
11899 2008-02-01 Kenichi Handa <handa@m17n.org>
11900
11901 * font.h (struct font_driver): Delete member parse_name.
11902 (font_match_p, font_get_spec, font_parse_fcname)
11903 (font_unparse_fcname): Extern them.
11904 (font_get_name): Adjust prototype.
11905
11906 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
11907 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
11908 (font_expand_wildcards): Fix handling ENCODING field. Avoid
11909 unnecessary checks for weight, slant, and swidth.
11910 (font_parse_fcname): New function.
11911 (font_unparse_fcname): New function.
11912 (font_parse_name): New function.
11913 (font_match_p): New function.
11914 (font_get_name): Change return value to Lisp string.
11915 (font_get_spec): New function.
11916 (Qunspecified, Qignore_defface): Don't extern them.
11917 (font_find_for_lface): Assume that LFACE is fully specified.
11918 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
11919 object, use it for FACE.
11920 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
11921 driver->parse_name.
11922 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
11923
11924 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
11925 prototype.
11926
11927 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
11928 argument F. Don't call Fnew_fontset. Instead, directly call
11929 make_fontset.
11930
11931 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
11932
11933 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
11934 of x_new_fontset2.
11935
11936 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
11937 (Qsans__serif): New variables.
11938 (ftfont_generic_family_list): New variable.
11939 (syms_of_ftfont): Initialize the above variables.
11940 (ftfont_pattern_entity): Delete argument NAME.
11941 (ftfont_list_generic_family): New function.
11942 (ftfont_parse_name): Delete this function.
11943 (ftfont_list): Try generic family only when FcFontList found no font.
11944 (ftfont_list_family): Fix args to FcObjectSetBuild.
11945
11946 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
11947 object in attrs[LFACE_FONT_INDEX].
11948 (set_lface_from_font_name): Cancel all changes for font-backend.
11949 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
11950 function.
11951 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
11952 font object in QCfont attribute.
11953 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
11954 (realize_default_face) [USE_FONT_BACKEND]: Call
11955 set_lface_from_font_and_fontset.
11956
11957 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
11958 "fixed", and signal error here if no suitable font was found.
11959
11960 * xfont.c (xfont_parse_name): Delete this function.
11961
11962 * xftfont.c (xftfont_open): Change coding style of error
11963 handling. Generate fontconfig's fontname pattern.
11964
11965 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
11966 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
11967
11968 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
11969 Both args FONTSET and FONT_OBJECT must be existing ones.
11970
11971 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11972
11973 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
11974
11975 2008-02-01 Kenichi Handa <handa@m17n.org>
11976
11977 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
11978
11979 * font.h (struct font): Fix typo.
11980
11981 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
11982 XLFD_XXX_INDEX.
11983 (enum xlfd_field_mask): New enum.
11984 (intern_font_field): Changed argument. Change caller. If digits
11985 are followed by non-digits, return a symbol.
11986 (font_expand_wildcards): New function.
11987 (font_parse_xlfd): Fix wildcard handling.
11988 (Ffont_spec): If :name is specified, reflect the info in the other
11989 properties.
11990
11991 * ftfont.c (ftfont_pattern_entity): Fix typo.
11992 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
11993 locale.
11994
11995 2008-02-01 Kenichi Handa <handa@m17n.org>
11996
11997 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
11998
11999 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
12000 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
12001 registry doesn't specify encoding part.
12002 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
12003 (font_open_by_name): At first try parsing the name.
12004 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
12005 as Lisp symbols.
12006
12007 * fontset.c (reorder_font_vector): Pay attention to the case that
12008 the 3rd element of font_def is nil.
12009 (fontset_font): For the default fontset, append one more fontset
12010 elements for a script-based font specification. Don't add script
12011 attribute on finding a font.
12012 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
12013 font name.
12014 (fontset_ascii_font): If a font can't be opened, return nil.
12015
12016 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
12017 (ftfont_pattern_entity): New function.
12018 (ftfont_get_cache): Assume that freetype_font_cache is already
12019 initialized.
12020 (ftfont_list): Handle the case that a file is specified in font
12021 name. Use ftfont_pattern_entity to generate entities.
12022 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
12023 (syms_of_ftfont): Initialize freetype_font_cache.
12024
12025 * xftfont.c (xftfont_open): Make the font name fontconfig's
12026 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
12027 (xftfont_close): Free font->font.name if not NULL.
12028
12029 * xfont.c (xfont_list): If script is specified for a font, return
12030 null_vector.
12031 (xfont_list_family): Declare argument type.
12032
12033 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
12034 name, set LFACE_FONT (lface) to nil.
12035
12036 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
12037 return Qnil.
12038
12039 2008-02-01 Kenichi Handa <handa@m17n.org>
12040
12041 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
12042 (standard_args): Add "-enable-font-backend".
12043
12044 2008-02-01 Kenichi Handa <handa@m17n.org>
12045
12046 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
12047 (struct xftdraw_list, xftdraw_list): Delete them.
12048 (register_xftdraw, check_xftdraw): Delete them.
12049 (xftfont_prepare_face): Don't call register_xftdraw.
12050 (xftfont_done_face): Don't call check_xftdraw.
12051 (xftfont_draw): Get background color only when with_background is
12052 nonzero.
12053
12054 * xfont.c (xfont_encode_char): Fix calculation of char2b.
12055
12056 2008-02-01 Kenichi Handa <handa@m17n.org>
12057
12058 These changes are for the new font handling codes.
12059
12060 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
12061 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
12062 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
12063 (FONTSRC, FONTOBJ): New variables.
12064 (obj): Add $(FONTOBJ).
12065 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
12066 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
12067 @LIBOTF_LIBS@.
12068 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
12069 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
12070
12071 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
12072
12073 * character.h (Vscript_representative_chars): Extern it.
12074
12075 * character.c (Vscript_representative_chars): New variable.
12076 (syms_of_character): Declare it as a Lisp variable.
12077
12078 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
12079 enable_font_backend is nonzero, accept the composition method
12080 COMPOSITION_WITH_GLYPH_STRING.
12081
12082 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
12083 enumeration COMPOSITION_WITH_GLYPH_STRING.
12084
12085 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
12086 members clip_x, clip_y, clip_width, and clip_height.
12087 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
12088
12089 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
12090 --enable-font-backend. Call syms_of_font.
12091
12092 * fns.c (assoc_no_quit): New function.
12093
12094 * fontset.h (FONT_INFO_FROM_FACE): New macro.
12095 (face_for_font, new_fontset_from_font)
12096 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
12097
12098 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
12099 (fontset_font, fontset_ascii, face_for_char)
12100 (make_fontset_for_ascii_face, Ffont_info)
12101 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
12102 is nonzero, use font-backend mechanism.
12103 (find_font_encoding): Make it non-static.
12104 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
12105 New functions.
12106
12107 * frame.h (struct frame): New members resx and resy.
12108 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
12109 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
12110
12111 * frame.c [USE_FONT_BACKEND]: Include "font.h".
12112 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
12113
12114 * lisp.h (assoc_no_quit): Extern it.
12115
12116 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
12117 Through out the file, use FONT_INFO_FROM_FACE instead of
12118 FONT_INFO_FROM_ID, use get_per_char_metric instead of
12119 rif->per_char_metric.
12120 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
12121 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
12122 (get_glyph_face_and_encoding, fill_composite_glyph_string)
12123 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
12124 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
12125 nonzero, use font-backend mechanism.
12126 (get_per_char_metric): New function.
12127
12128 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
12129 (set_lface_from_font_name)
12130 (set_font_frame_param, free_realized_face)
12131 (prepare_face_for_display, clear_face_gcs)
12132 (Finternal_set_font_selection_order, realize_x_face)
12133 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
12134 font-backend mechanism.
12135 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
12136 (load_face_font) [USE_FONT_BACKEND]: Abort.
12137 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
12138 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
12139
12140 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
12141 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
12142 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
12143 nonzero, register all available font drivers. Call
12144 x_default_font_parameter for deciding a font.
12145 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
12146
12147 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
12148 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
12149 (x_set_glyph_string_clipping_exactly)
12150 (x_compute_glyph_string_overhangs)
12151 (x_draw_glyph_string_foreground)
12152 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
12153 (x_free_frame_resources) [USE_FONT_BACKEND]: If
12154 enable_font_backend is nonzero, use font-backend mechanism.
12155 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
12156
12157 2008-02-01 Kenichi Handa <handa@m17n.org>
12158
12159 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
12160 system_eol_type.
12161 (syms_of_coding): Initialize system_eol_type.
12162
12163 * process.c (Fset_process_coding_system): Inherit system's eol
12164 format if necessary.
12165
12166 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12167
12168 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
12169
12170 2008-02-01 Kenichi Handa <handa@m17n.org>
12171
12172 * coding.c (decode_eol): Pay attention to buffer relocation in
12173 del_range_2.
12174 (decode_coding): Call decode_eol before restoring undo_list.
12175
12176 2008-02-01 Kenichi Handa <handa@m17n.org>
12177
12178 * charset.c (Fdefine_charset_internal): Fix setting of
12179 emacs_mule_bytes.
12180
12181 2008-02-01 Kenichi Handa <handa@m17n.org>
12182
12183 * keyboard.c (read_char): Check if C is a character or not before
12184 looking up Vkeyboard_translate_table.
12185
12186 2008-02-01 Kenichi Handa <handa@m17n.org>
12187
12188 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
12189 condition to terminate the loop.
12190
12191 2008-02-01 Kenichi Handa <handa@m17n.org>
12192
12193 * coding.c (produce_composition): Compare charbuf[i] instead of
12194 args[i] against 0.
12195 (Fterminal_coding_system): Use EQ to compare Lisp objects.
12196
12197 2008-02-01 Kenichi Handa <handa@m17n.org>
12198
12199 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
12200 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
12201 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
12202 detect_coding.
12203 (emacs_mule_char): Handle old style (Emacs 20) component character
12204 of a composition.
12205 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
12206 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
12207 composition rule.
12208 (decode_coding_emacs_mule): Handle invalid bytes correctly.
12209
12210 2008-02-01 Kenichi Handa <handa@m17n.org>
12211
12212 * coding.c (encode_coding_ccl): Allocate destination dynamically
12213 when necessary.
12214
12215 2008-02-01 Kenichi Handa <handa@m17n.org>
12216
12217 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
12218 the loop. When quitted, show a proper error message.
12219
12220 2008-02-01 Kenichi Handa <handa@m17n.org>
12221
12222 * xterm.c (x_set_glyph_string_clipping_exactly): Set
12223 src->clip_head and src->clip_tail temporarily instead of src->hl.
12224
12225 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
12226 character sequence.
12227 (Fccl_execute_on_string): Use ASET, not XSET.
12228
12229 2008-02-01 Kenichi Handa <handa@m17n.org>
12230
12231 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
12232
12233 2008-02-01 Kenichi Handa <handa@m17n.org>
12234
12235 * coding.c (decode_coding): Fix the condition of terminating the
12236 decoding loop.
12237
12238 2008-02-01 Kenichi Handa <handa@m17n.org>
12239
12240 * data.c (Faset): On setting a character bigger than 255 in a
12241 unibyte string, signal an error instead of make the string multibyte.
12242
12243 2008-02-01 Kenichi Handa <handa@m17n.org>
12244
12245 * charset.c (map_charset_chars): Fix for ascii-compatible charset
12246 made by a mapping table.
12247
12248 2008-02-01 Kenichi Handa <handa@m17n.org>
12249
12250 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
12251 not.
12252 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
12253 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
12254
12255 * xterm.c (x_draw_composite_glyph_string_foreground): Check
12256 s->face is NULL or not.
12257
12258 2008-02-01 Kenichi Handa <handa@m17n.org>
12259
12260 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
12261 (x_draw_glyph_string): Fix drawing of right_overhang and
12262 left_overhang around/on cursor.
12263
12264 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
12265
12266 2008-02-01 Kenichi Handa <handa@m17n.org>
12267
12268 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
12269
12270 2008-02-01 Kenichi Handa <handa@m17n.org>
12271
12272 * coding.c (Fdefine_coding_system_internal)
12273 (Fdefine_coding_system_alias): Avoid a duplicated element in
12274 Vcoding_system_alist.
12275
12276 2008-02-01 Kenichi Handa <handa@m17n.org>
12277
12278 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
12279
12280 * coding.c (Qcoding_system_define_form): New variable.
12281 (syms_of_coding): Intern and staticpro it.
12282 (Fcoding_system_p): Check Qcoding_system_define_form.
12283 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
12284
12285 * coding.h (CODING_SYSTEM_P): If ID is not available, call
12286 Fcoding_system_p.
12287 (CHECK_CODING_SYSTEM): If ID is not available, call
12288 Fcheck_coding_system.
12289 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
12290 Try also Fcheck_coding_system.
12291
12292 2008-02-01 Kenichi Handa <handa@m17n.org>
12293
12294 * coding.c (code_conversion_restore): GCPRO arg.
12295
12296 2008-02-01 Kenichi Handa <handa@m17n.org>
12297
12298 * character.c (lisp_string_width): Check multibyteness of STRING.
12299
12300 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12301
12302 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
12303 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
12304 (decode_mac_font_name): Use decode_coding_c_string instead of
12305 decode_coding.
12306 (x_load_font): Initialize fontp->fontset to -1. Set
12307 fontp->encoding_type.
12308
12309 2008-02-01 Kenichi Handa <handa@m17n.org>
12310
12311 * search.c (search_buffer): Give up BM search on case-fold-search
12312 if one of a target character has a case-equivalence of different
12313 byte length even if that target charcter is an ASCII.
12314 (simple_search): Fix calculation of byte length of matched text.
12315 (boyer_moore): Fix handling of case-equivalent multibyte characters.
12316
12317 2008-02-01 Kenichi Handa <handa@m17n.org>
12318
12319 * coding.c (decode_coding): Fix handling of invalid bytes.
12320
12321 2008-02-01 Kenichi Handa <handa@m17n.org>
12322
12323 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
12324 Unicode characters.
12325
12326 2008-02-01 Kenichi Handa <handa@m17n.org>
12327
12328 * coding.c (encode_coding_object): If a pre-write-conversion
12329 function makes a new buffer, kill it.
12330
12331 2008-02-01 Kenichi Handa <handa@m17n.org>
12332
12333 * coding.c (QCascii_compatible_p): New variable.
12334 (syms_of_coding): Initialize it.
12335 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
12336 calling string_char.
12337 (record_conversion_result): Add `default:' case.
12338 (coding_charset_list): Delete unused variable `coding_type'.
12339 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
12340 property in the plist of the coding system.
12341 (Fcoding_system_put): Check QCascii_compatible_p.
12342
12343 2008-02-01 Miles Bader <miles@gnu.org>
12344
12345 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
12346 removed calculation of frame `f', as it's now used.
12347
12348 2008-02-01 Kenichi Handa <handa@m17n.org>
12349
12350 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
12351 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
12352 (UNIDATA): New variable.
12353 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
12354 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
12355 $(RUN_TEMACS) unconditionally.
12356
12357 2008-02-01 Kenichi Handa <handa@m17n.org>
12358
12359 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
12360 (admindir): New variable.
12361 ($(lispsource)international/charprop.el): New target.
12362
12363 2008-02-01 Miles Bader <miles@gnu.org>
12364
12365 * character.c (chars-in-region): Remove obsolete function.
12366 (syms_of_character): Remove its initialization.
12367
12368 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
12369
12370 * w32select.c (validate_coding_system)
12371 (setup_windows_coding_system): New functions.
12372 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
12373 setup_windows_coding_system.
12374 (setup_config, Fw32_get_clipboard_data): Use
12375 validate_coding_system.
12376 (Fx_selection_exists): Move call to setup_config to a place
12377 where signals are allowed.
12378
12379 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
12380 (Fcheck_coding_system): Add declarations.
12381
12382 2008-02-01 Kenichi Handa <handa@m17n.org>
12383
12384 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
12385
12386 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12387
12388 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
12389 string as the second argument for x_new_fontset.
12390
12391 2008-02-01 Kenichi Handa <handa@m17n.org>
12392
12393 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
12394 (encode_coding_object): Use safe_call instead of call2.
12395
12396 2008-02-01 Kenichi Handa <handa@m17n.org>
12397
12398 * fontset.c (Fset_fontset_font): Check family element of a given vector.
12399
12400 * Makefile.in (lisp): Include charprop.el.
12401
12402 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12403
12404 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
12405 Not sure if it's unnecessary.
12406
12407 2008-02-01 Steven Tamm <steventamm@mac.com>
12408
12409 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
12410 some possibly unnecessary fontset checking code that crashed
12411 when creating a new frame.
12412
12413 2008-02-01 Kenichi Handa <handa@m17n.org>
12414
12415 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
12416 lookup_face.
12417
12418 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
12419
12420 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
12421
12422 2008-02-01 Kenichi Handa <handa@m17n.org>
12423
12424 * coding.c: Cancel the change done in HEAD on 2008-02-01.
12425 (coding_charset_list): New function.
12426
12427 * coding.h (coding_charset_list): Extern it.
12428
12429 2008-02-01 Kenichi Handa <handa@m17n.org>
12430
12431 * fontset.c (Fset_fontset_font): Call find_font_encoding with
12432 concatenation of family and registry.
12433
12434 2008-02-01 Kenichi Handa <handa@m17n.org>
12435
12436 * character.h (BYTE8_STRING): Fix typo.
12437
12438 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
12439 string to multibyte (sync to HEAD).
12440
12441 * casefiddle.c (casify_region): Handle changes in byte-length
12442 using replace_range_2 (sync to HEAD).
12443
12444 2008-02-01 Andreas Schwab <schwab@suse.de>
12445
12446 * chartab.c (map_char_table): GCPRO table and arg.
12447
12448 2008-02-01 Kenichi Handa <handa@m17n.org>
12449
12450 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
12451 already at limit.
12452
12453 2008-02-01 Kenichi Handa <handa@m17n.org>
12454
12455 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
12456 instead of fast_c_string_match_ignore_case.
12457 (find_font_encoding): Change argument to Lisp_Object. Use
12458 fast_string_match_ignore_case instead of
12459 fast_c_string_match_ignore_case. Change caller.
12460
12461 2008-02-01 Kenichi Handa <handa@m17n.org>
12462
12463 * xdisp.c (get_next_display_element): In unibyte case, decide to
12464 display in octal form by checking a character by
12465 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
12466
12467 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
12468
12469 * character.c (unibyte_has_multibyte_table): New variable.
12470
12471 * character.h (unibyte_has_multibyte_table): Extern it.
12472 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
12473
12474 2008-02-01 Kenichi Handa <handa@m17n.org>
12475
12476 * coding.c (encode_coding_iso_2022): Fix handling of charset
12477 annotation.
12478
12479 2008-02-01 Kenichi Handa <handa@m17n.org>
12480
12481 * coding.c (setup_coding_system): If coding_system is nil, use
12482 Qundecided.
12483 (Fterminal_coding_system): Return nil if terminal coding system is
12484 `undecided'.
12485 (syms_of_coding): Define coding-system `undecided' here. Setup
12486 terminal_coding as `undecided'.
12487
12488 2008-02-01 Kenichi Handa <handa@m17n.org>
12489
12490 * xdisp.c (message_dolog, set_message_1): Call
12491 unibyte_char_to_multibyte with arg type int.
12492
12493 * lread.c (read1): Fix reading of a char-table.
12494
12495 * print.c (print_object): Include sub char-table in circularities
12496 detection.
12497
12498 2008-02-01 Kenichi Handa <handa@m17n.org>
12499
12500 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
12501 Append the found sequences in car of ARGS instead of prepending.
12502
12503 2008-02-01 Kenichi Handa <handa@m17n.org>
12504
12505 * fileio.c (report_file_error): Make a unibyte string from
12506 strerror (errorno).
12507 (Fsubstitute_in_file_name): Fix the arg to
12508 unibyte_char_to_multibyte. It is evaluated twice.
12509
12510 2008-02-01 Kenichi Handa <handa@m17n.org>
12511
12512 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
12513
12514 2008-02-01 Kenichi Handa <handa@m17n.org>
12515
12516 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
12517 BOM is not found.
12518 (detect_coding, detect_coding_system): Optimization for ISO-2022
12519 when no 8-bit data is found.
12520
12521 2008-02-01 Jason Rumney <jasonr@gnu.org>
12522
12523 * w32fns.c (x_to_w32_font): Update to use new coding struct.
12524
12525 2008-02-01 Kenichi Handa <handa@m17n.org>
12526
12527 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
12528 CHARS.
12529
12530 2008-02-01 Steven Tamm <steventamm@mac.com>
12531
12532 * macterm.c (mac_encode_char): Add charset argument and update
12533 to use encoding_type.
12534 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
12535 switch to pure fontset.
12536 (decode_mac_font_name): Temporarily remove decoding.
12537 (x_font_name_to_mac_font_name): Temporarily remove encoding.
12538 (x_load_font): Temporarily remove encoding.
12539
12540 2008-02-01 Kenichi Handa <handa@m17n.org>
12541
12542 * xfaces.c (Fface_font): If frame is not on a window system,
12543 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
12544 refer to face->font.
12545 (split_font_name_into_vector, build_font_name_from_vector)
12546 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
12547 when HAVE_WINDOW_SYSTEM is defined.
12548
12549 2008-02-01 Kenichi Handa <handa@m17n.org>
12550
12551 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
12552 (x_produce_glyphs): Fix setting of members of cmp in case
12553 cmp->glyph_len is zero.
12554
12555 * fontset.c (Fset_fontset_font): Fix docstring.
12556 (Ffontset_info): Make it backward compatible. New arg ALL.
12557
12558 2008-02-01 Kim F. Storm <storm@cua.dk>
12559
12560 * process.c (read_process_output): Grow decoding_buf when needed;
12561 this could cause a crash in allocate_string and compact_small_strings.
12562
12563 2008-02-01 Kenichi Handa <handa@m17n.org>
12564
12565 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
12566
12567 2008-02-01 Kenichi Handa <handa@m17n.org>
12568
12569 * coding.c (setup_coding_system): Set coding->common_flags
12570 correctly for raw-text.
12571 (consume_chars): On encoding unibyte text by raw-text, don't check
12572 multibyte form.
12573 (encode_coding): On encoding by raw-text, never use translation tables.
12574
12575 * fileio.c (e_write): Short cut for the case of no encoding.
12576
12577 2008-02-01 Kenichi Handa <handa@m17n.org>
12578
12579 * coding.c (detect_coding, detect_coding_system): Delete unused
12580 variables.
12581
12582 2008-02-01 Kenichi Handa <handa@m17n.org>
12583
12584 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
12585 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
12586
12587 2008-02-01 Kenichi Handa <handa@m17n.org>
12588
12589 * coding.c (Ffind_coding_systems_region_internal): Include
12590 raw-text and no-conversion in the result.
12591
12592 2008-02-01 Kenichi Handa <handa@m17n.org>
12593
12594 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
12595 (load_font_get_repertory): Delete unnecessary check of ENCODING of
12596 FONT_DEF.
12597 (font_def_arg, add_arg, from_arg, to_arg): New args.
12598 (set_fontset_font): Change argument.
12599 (Fset_fontset_font): Fix for the case that TARGET is a script
12600 name and charset name.
12601 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
12602
12603 2008-02-01 Kenichi Handa <handa@m17n.org>
12604
12605 * fontset.c (fontset_font): Rename from fontset_face. Change return
12606 value.
12607 (face_suitable_for_char_p, face_for_char): Adjust for the change
12608 of fontset_font.
12609 (make_fontset_for_ascii_face): Fix setting of the fontset element
12610 for ASCII.
12611 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
12612 to get a font name.
12613 (Ffontset_info): Adjust for the change of fontset_font.
12614
12615 * coding.c (emacs_mule_char): Check invalid code more rigidly.
12616
12617 * character.h (LEADING_CODE_LATIN_1_MIN)
12618 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
12619
12620 2008-02-01 Kenichi Handa <handa@m17n.org>
12621
12622 * editfns.c (check_translation): New function.
12623 (Ftranslate_region_internal): Handle M:N mapping.
12624
12625 2008-02-01 Kenichi Handa <handa@m17n.org>
12626
12627 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
12628
12629 2008-02-01 Kenichi Handa <handa@m17n.org>
12630
12631 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
12632 goto invalid_code.
12633 (decode_coding_iso_2022): Fix handling of invalid designation.
12634
12635 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
12636 after calling code_conversion_save.
12637
12638 2008-02-01 Kenichi Handa <handa@m17n.org>
12639
12640 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
12641
12642 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
12643
12644 * fontset.c: Include "intervals.h".
12645 (fontset_face): Fix comparing of Lisp_Objects.
12646 (free_face_fontset, new_fontset_from_font_name): Fix
12647 Lisp_Object/int mixup.
12648
12649 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
12650
12651 * coding.c: Add many prototypes for static functions.
12652 (get_translation_table): Allow max_lookup to be NULL.
12653 (decode_coding, Ffind_coding_systems_region_internal)
12654 (Funencodable_char_position, Fcheck_coding_systems_region): Call
12655 get_translation_table with max_lookup NULL.
12656
12657 2008-02-01 Kenichi Handa <handa@m17n.org>
12658
12659 * coding.c (get_translation_table): Declare it as Lisp_Object.
12660 (LOOKUP_TRANSLATION_TABLE): New macro.
12661 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
12662 instead of CHAR_TABLE_REF.
12663
12664 2008-02-01 Kenichi Handa <handa@m17n.org>
12665
12666 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
12667 annotation data format.
12668 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
12669 Change arguments FROM and TO to single argument NCHARS. Change caller.
12670 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
12671 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
12672 (decode_coding_ccl, decode_coding_charset): Pay attention to
12673 coding->charbuf_used.
12674 (get_translation): New function.
12675 (produce_chars): New arguments translation_table and last_block.
12676 Translate characters here. Return number of carryover chars.
12677 Change caller.
12678 (produce_composition): New argument pos. Change caller.
12679 Adjust for the change of annotation data format.
12680 (produce_charset, produce_annotation): Likewise.
12681 (decode_coding, encode_coding): Don't call translate_chars.
12682 (consume_chars): New arg translation_table. Change caller.
12683 (translate_chars): Delete.
12684 (syms_of_coding): Make translation-table's number of extra slots 2.
12685
12686 2008-02-01 Kenichi Handa <handa@m17n.org>
12687
12688 * search.c (simple_search): Fix setting this_pos_byte in backward
12689 search.
12690
12691 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
12692 byte sequence.
12693 (detect_coding_ccl): Fix setting of the variable valids.
12694
12695 2008-02-01 Kenichi Handa <handa@m17n.org>
12696
12697 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
12698
12699 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
12700
12701 * editfns.c (Ftranslate_region_internal): Rename from
12702 Ftranslate_region. Accept a char-table in TABLE.
12703 (syms_of_editfns): Defsubr Stranslate_region_internal.
12704
12705 * xfaces.c (set_lface_from_font_name): If a font is specified for
12706 a frame, generate a fontset from the font.
12707 (build_scalable_font_name): If the scalable font is requested for
12708 a specific size, don't change that size.
12709 (try_font_list): Try a scalable font also in the case that a
12710 pattern string is specified.
12711
12712 2008-02-01 Kenichi Handa <handa@m17n.org>
12713
12714 * xfaces.c (Fface_font): New optional arg CHARACTER.
12715
12716 2008-02-01 Kenichi Handa <handa@m17n.org>
12717
12718 * charset.h (CHARSET_OFFSET): New macro.
12719
12720 2008-02-01 Kenichi Handa <handa@m17n.org>
12721
12722 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
12723
12724 * fontset.c (fontset_face): Handle the case that repertory is a
12725 char-table.
12726 (find_font_encoding): Return nil for unknown encoding.
12727 (Fset_fontset_font): Ignore a font of unknown encoding.
12728
12729 2008-02-01 Kenichi Handa <handa@m17n.org>
12730
12731 * keymap.c (describe_vector): Handle default value of a char table.
12732
12733 * fontset.c (fontset_face): Handle fallback fonts correctly.
12734 (Ffontset_info): Return infomation about fallback fonts.
12735
12736 2008-02-01 Kenichi Handa <handa@m17n.org>
12737
12738 * fontset.c (FONTSET_DEFAULT): New macro.
12739 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
12740 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
12741 the case that it is nil.
12742 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
12743 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
12744
12745 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
12746 subset or superset.
12747
12748 2008-02-01 Kenichi Handa <handa@m17n.org>
12749
12750 * emacs.c (main): Call init_charset after syms_of_XXX.
12751
12752 * charset.c (Vcharset_map_directory): Delete.
12753 (Vcharset_map_path): New variable.
12754 (load_charset_map_from_file): Use Vcharset_map_path instead.
12755 (init_charset): Initialize Vcharset_map_path.
12756 (syms_of_charset): Delete declaration of "charset-map-directory",
12757 add declaration of "charset-map-path".
12758
12759 2008-02-01 Kenichi Handa <handa@m17n.org>
12760
12761 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
12762 ASCII only string.
12763
12764 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
12765
12766 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
12767 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
12768
12769 2008-02-01 Kenichi Handa <handa@m17n.org>
12770
12771 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
12772
12773 * coding.c (QCmnemonic, QCdefalut_char)
12774 (QCdecode_translation_table, QCencode_translation_table)
12775 (QCpost_read_conversion, QCpre_write_conversion): New variables.
12776 (get_translation_table): Return a list of translation tables if
12777 necessary.
12778 (decode_coding): Call get_translation_table with ENCODEP 0.
12779 (char_encodable_p): If translation_table is non-nil, always call
12780 translate_char.
12781 (Fdefine_coding_system_internal): Accept list of translation
12782 tables as :encode-translation-table and :decode-translation-table.
12783 (Fcoding_system_put): New function.
12784 (syms_of_coding): Declare new symbols. Defsubr
12785 Scoding_system_put.
12786 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
12787 typically JISX0212.
12788
12789 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
12790 when the charset is superset type.
12791
12792 * character.c (translate_char): Accept list of translation tables.
12793
12794 2008-02-01 Kenichi Handa <handa@m17n.org>
12795
12796 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
12797 (CODING_ATTR_TRANS_TBL): New macro.
12798
12799 * coding.c (get_translation_table): New function.
12800 (translate_chars): Fix the bug of skipping annotation data.
12801 (decode_coding, encode_coding): Utilize get_translation_table.
12802 (char_encodable_p, Funencodable_char_position): Translate char if
12803 necessary.
12804 (Ffind_coding_systems_region_internal)
12805 (Fcheck_coding_systems_region): Setup translation table for encode
12806 in a coding system attribute vector in advance.
12807 (Fdefine_coding_system_internal): Allow a symbol as translation
12808 table. For shift-jis type coding system, allow 4th charset.
12809
12810 2008-02-01 Kenichi Handa <handa@m17n.org>
12811
12812 * coding.c (decode_coding_sjis): Check the first byte rigidly.
12813
12814 * xdisp.c (get_next_display_element): Pass -1 as POS to
12815 FACE_FOR_CHAR if displaying a C-string.
12816
12817 2008-02-01 Kenichi Handa <handa@m17n.org>
12818
12819 * composite.c (get_composition_id): Handle xoff and yoff in a
12820 composition rule.
12821
12822 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
12823 (struct composition): New member lbearing and rbearing.
12824
12825 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
12826 (x_get_glyph_overhangs): Handle a composition glyph.
12827 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
12828
12829 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
12830 composition glyph.
12831
12832 2008-02-01 Kenichi Handa <handa@m17n.org>
12833
12834 * print.c: Include charset.h.
12835 (Vprint_charset_text_property): New variable.
12836 (Qdefault): Extern it.
12837 (PRINT_STRING_NON_CHARSET_FOUND)
12838 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
12839 (print_check_string_result): New variable.
12840 (print_check_string_charset_prop): New function.
12841 (print_prune_charset_plist): New variable.
12842 (print_prune_string_charset): New function.
12843 (print_object): Call print_prune_string_charset if
12844 Vprint_charset_text_property is not t.
12845 (print_interval): Print nothing if interval->plist is nil.
12846 (syms_of_print): Declare Vprint_charset_text_property as a lisp
12847 variable. Init and staticpro print_prune_charset_plist.
12848
12849 2008-02-01 Kenichi Handa <handa@m17n.org>
12850
12851 * fontset.c (new_fontset_from_font_name): Use the specified font
12852 for all characters in the new fontset.
12853
12854 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
12855 OBJECT args.
12856
12857 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
12858 OBJECT args for composition too.
12859
12860 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
12861 OBJECT args.
12862
12863 2008-02-01 Kenichi Handa <handa@m17n.org>
12864
12865 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
12866
12867 * fontset.c (reorder_font_vector): Adjust for the change of
12868 FONT_DEF format.
12869 (fontset_face): New arg id. Change caller.
12870 (face_for_char): New args pos and object.
12871 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
12872 (fs_query_fontset): Check NAME by Fassoc too.
12873 (Fset_fontset_font): Allow non-XLFD font name.
12874 (Ffontset_info): Adjust for the change of FONT_DEF format.
12875
12876 * fontset.h (face_for_char): Adjust prototype.
12877
12878 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
12879 (append_space, extend_face_to_end_of_line)
12880 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
12881 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
12882
12883 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
12884 POS and OBJECT args.
12885
12886 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
12887 POS and OBJECT args.
12888
12889 2008-02-01 Jason Rumney <jasonr@gnu.org>
12890
12891 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
12892 of GlobalAlloc'ed memory.
12893
12894 2008-02-01 Kenichi Handa <handa@m17n.org>
12895
12896 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
12897
12898 * charset.h (charset_table_used): Delete extern.
12899
12900 * charset.c (charset_table_used): Make it static.
12901 (map_charset_chars): Fix args to c_function with.
12902
12903 * chartab.c (map_sub_char_table_for_charset): Fix args to
12904 c_function with.
12905
12906 * coding.h (enum coding_result_code): Delete
12907 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
12908
12909 * coding.c (Qinsufficient_source, Qinconsistent_eol)
12910 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
12911 (Vlast_code_conversion_error): New variables.
12912 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
12913 (ONE_MORE_BYTE): Record error if any instead of signaling an
12914 error. If non-ASCII multibyte char is found, return the negative
12915 value of the code. All callers changed to check it.
12916 (ONE_MORE_BYTE_NO_CHECK): Likewise.
12917 (record_conversion_result): New function. Change all codes setting
12918 coding->result to call this function.
12919 (detect_coding_utf_8, decode_coding_utf_8)
12920 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
12921 Don't use the local variable incomplete.
12922 (emacs_mule_char): Change the second arg to `const'.
12923 (decode_coding): Fix of flushing out unprocessed data.
12924 (make_conversion_work_buffer): Fix making of a work buffer.
12925 (decode_coding_object): Return coding->dst_object.
12926
12927 * fontset.c (set_fontset_font): Fix args.
12928
12929 * lisp.h (CHARACTERBITS): Define as 22.
12930
12931 * process.c (send_process): Be sure to set coding->src_multibyte.
12932
12933 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
12934
12935 2008-02-01 Kenichi Handa <handa@m17n.org>
12936
12937 * xdisp.c (handle_auto_composed_prop): Give limit to
12938 Fnext_single_char_property_change.
12939
12940 2008-02-01 Kenichi Handa <handa@m17n.org>
12941
12942 * composite.c (syms_of_composite): Don't make the composition hash
12943 table weak.
12944
12945 * fontset.c (Fset_fontset_font): Fix docstring.
12946
12947 * lisp.h (detect_coding_system): Adjust prototype.
12948
12949 * fileio.c (kill_workbuf_unwind): Delete this function.
12950 (Finsert_file_contents): Adjust the call of detect_coding_system.
12951 Get conversion_buffer by code_conversion_save. Use the macro
12952 CODING_MAY_REQUIRE_DECODING. After decoding, update
12953 coding_system.
12954
12955 * coding.h (make_conversion_work_buffer): Delete extern.
12956 (code_conversion_save): Extern it.
12957
12958 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
12959 (CODING_GET_INFO): Delete argument eol_type. Change callers.
12960 (decode_coding_utf_8): Don't do eol converion.
12961 (detect_coding_utf_16): Check coding->src_chars, not
12962 coding->src_bytes. Add heuristics for those that have no signature.
12963 (decode_coding_emacs_mule, decode_coding_iso_2022)
12964 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
12965 Don't do eol converion.
12966 (adjust_coding_eol_type): Return a new coding system.
12967 (detect_coding): Don't detect eol. Fix for utf-16 detection.
12968 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
12969 each change.
12970 (decode_coding): Pay attention to undo_list. Do eol conversion for
12971 all types of coding-systems (if necessary).
12972 (Vcode_conversion_work_buf_list): Delete it.
12973 (Vcode_conversion_reused_workbuf): Rename from
12974 Vcode_conversion_reused_work_buf.
12975 (Vcode_conversion_workbuf_name): New variable.
12976 (reused_workbuf_in_use): New variable.
12977 (make_conversion_work_buffer): Delete the arg DEPTH.
12978 (code_conversion_restore): Change argument to cons.
12979 (code_conversion_save): Delete the argument BUFFER. Change callers.
12980 (detect_coding_system): New argument src_chars. Change callers.
12981 Fix for utf-16 detection.
12982 (init_coding_once): Don't use ISO_carriage_return.
12983 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
12984 reused_workbuf_in_use.
12985
12986 2008-02-01 Kenichi Handa <handa@m17n.org>
12987
12988 * keymap.c (store_in_keymap): Pay attention to the case that idx
12989 is a cons specifying a character range.
12990
12991 2008-02-01 Kenichi Handa <handa@m17n.org>
12992
12993 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
12994 HANDLED_RECOMPUTE_PROPS.
12995
12996 * coding.c (Fdefine_coding_system_internal): Fix checking of
12997 ascii compatibility.
12998
12999 2008-02-01 Kenichi Handa <handa@m17n.org>
13000
13001 * charset.c (find_charsets_in_text): Delete unused locale variable.
13002 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
13003
13004 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
13005 Resync charset_list to Vemacs_mule_charset_list.
13006
13007 * keymap.c (store_in_keymap): Pay attention to the case that idx
13008 is a cons specifying a character range.
13009
13010 2008-02-01 Kenichi Handa <handa@m17n.org>
13011
13012 * composite.c (update_compositions): Bind inhibit-read-only, etc
13013 to t before calling remove-list-of-text-properties.
13014
13015 * print.c (print_object): Always print ASCII chars as is.
13016
13017 2008-02-01 Kenichi Handa <handa@m17n.org>
13018
13019 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
13020
13021 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
13022 is a char table.
13023
13024 2008-02-01 Kenichi Handa <handa@m17n.org>
13025
13026 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
13027
13028 2008-02-01 Kenichi Handa <handa@m17n.org>
13029
13030 * xfaces.c (set_lface_from_font_name): Fix for the case that
13031 FONTNAME is not fontset name.
13032
13033 2008-02-01 Kenichi Handa <handa@m17n.org>
13034
13035 * fns.c (base64_encode_1): Fix previous change.
13036
13037 2008-02-01 Kenichi Handa <handa@m17n.org>
13038
13039 * fontset.c (set_fontset_font): New function.
13040 (Fset_fontset_font): If a font is specified for a charset, use
13041 map_charset_chars to store the font spec in a fontset.
13042
13043 2008-02-01 Kenichi Handa <handa@m17n.org>
13044
13045 * fontset.c (fontset_face): Create a fallback fontset on demand.
13046 (make_fontset): Don't create a fallback fontset here.
13047 (free_face_fontset): Free a fallback fontset (if any) too.
13048 (n_auto_fontsets): Delete this variable.
13049 (auto_fontset_alist): New variable.
13050 (new_fontset_from_font_name): Check auto_fontset_alist.
13051 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
13052 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
13053 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
13054 Defsubr Sfontset_list_all.
13055
13056 2008-02-01 Kenichi Handa <handa@m17n.org>
13057
13058 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
13059
13060 2008-02-01 Kenichi Handa <handa@m17n.org>
13061
13062 * fontset.c (Fnew_fontset): Check NAME more rigidly.
13063
13064 2008-02-01 Kenichi Handa <handa@m17n.org>
13065
13066 * editfns.c (Fgoto_char): Fix docstring.
13067
13068 2008-02-01 Kenichi Handa <handa@m17n.org>
13069
13070 * insdel.c (insert_from_gap): Adjust intervals correctly.
13071
13072 2008-02-01 Jason Rumney <jasonr@gnu.org>
13073
13074 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
13075 (pfnGetFontUnicodeRanges): New dynamically loaded function.
13076 (w32_initialize): Try to load it.
13077 (x_get_font_repertory): Use it if available.
13078 (w32_encode_char): Add shortcut for unicode output.
13079
13080 * w32fns.c (w32_load_system_font): Default charset to -1.
13081 (x_to_w32_charset): Match all fonts for unicode.
13082 (w32_to_x_charset): New parameter matching. Don't return partial
13083 or wildcard charsets.
13084 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
13085 (w32_codepage_for_font): Return CP_UNICODE for unicode.
13086 (w32_to_x_font): Match charset to real charset.
13087 (enum_font_cb2): Always list unicode versions.
13088
13089 * makefile.w32-in (temacs): Increase EMHEAP.
13090
13091 2008-02-01 Jason Rumney <jasonr@gnu.org>
13092
13093 * w32term.c (w32_encode_char): New charset parameter.
13094 font_info.encoding becomes encoding_type.
13095 (x_get_font_repertory): New function. Warning: stub only!
13096 (x_new_font): Return quickly if font already set.
13097 (x_new_fontset): fontsetname parameter is Lisp_Object.
13098 Use new fs_query_fontset. Try new_fontset_from_font_name.
13099 Use fontset_name for return value.
13100
13101 * w32term.h: Declare x_get_font_repertory.
13102
13103 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
13104 place of find_charset_in_text. Use encode_coding_object in place
13105 of encode_coding.
13106 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
13107 decode_coding.
13108
13109 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
13110 of x_new_fontset.
13111 (w32_load_system_font): Initialize charset as unicode.
13112 font_info.encoding becomes encoding_type.
13113 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
13114 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
13115 (syms_of_w32fns): Set get_font_repertory_func.
13116
13117 * w32console.c: Include character.h. Use terminal_encode_buffer
13118 from term.c.
13119 (write_glyphs): Use new version of encode_terminal_code. Use
13120 encode_coding_object in place of encode_coding.
13121
13122 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
13123 encoding becomes encoding_type.
13124
13125 * term.c (terminal_encode_buffer): Make externally visible.
13126
13127 * makefile.w32-in: Add character.h dependancies.
13128 (character.o, chartab.o): New targets.
13129
13130 2008-02-01 Kenichi Handa <handa@m17n.org>
13131
13132 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
13133 CODING_ID_EOL_TYPE.
13134
13135 2008-02-01 Andreas Schwab <schwab@suse.de>
13136
13137 * coding.c (produce_chars): Revert last change.
13138
13139 2008-02-01 Kenichi Handa <handa@m17n.org>
13140
13141 * charset.h (charset_unicode): Extern it.
13142
13143 * charset.c (string_xstring_p): Check by (C >= 0x100).
13144 (find_charsets_in_text): Change format of the arc CHARSETS. New
13145 arg MULTIBYTE.
13146 (Ffind_charset_region, Ffind_charset_string): Adjust for the
13147 change of find_charsets_in_text.
13148 (Fsplit_char): Fix doc. Never return unknown.
13149
13150 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
13151
13152 * coding.c (Fdefine_coding_system_alias): Update
13153 Vcoding_system_list.
13154
13155 * fontset.c (load_font_get_repertory): Pay attention to the case
13156 that ENCODING of a font is specified by a char-table.
13157
13158 * xterm.c (x_get_font_repertory): Handle the case that the
13159 encoding of font is other than Unicode.
13160
13161 2008-02-01 Kenichi Handa <handa@m17n.org>
13162
13163 * term.c (encode_terminal_code): Don't handle glyph-table. Check
13164 if a character is encodable by the terminal coding system. If
13165 not, produces proper number of `?'s. Update
13166 terminal_encode_buffer and terminal_encode_buf_size if necessary.
13167 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
13168
13169 2008-02-01 Kenichi Handa <handa@m17n.org>
13170
13171 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
13172 variables.
13173 (encode_terminal_code): Change argument. Encode multiple
13174 characters at once. Store the result of encoding in
13175 terminal_encode_buffer.
13176 (write_glyphs, insert_glyphs): Adjust for the change of
13177 encode_terminal_code.
13178 (term_init): Initialize terminal_encode_buffer and
13179 terminal_encode_buf_size.
13180
13181 * coding.c (consume_chars): If coding->src_object is nil, don't
13182 check annotation.
13183
13184 2008-02-01 Kenichi Handa <handa@m17n.org>
13185
13186 * character.c (char_string): Use ASCII_CHAR_P instead of
13187 SINGLE_BYTE_CHAR_P.
13188
13189 2008-02-01 Kenichi Handa <handa@m17n.org>
13190
13191 * xdisp.c (handle_auto_composed_prop): Check if the last
13192 characters of auto-composed region is newly composed with the
13193 following characters.
13194 (handle_composition_prop): Fix checking of point being inside
13195 composition.
13196
13197 2008-02-01 Kenichi Handa <handa@m17n.org>
13198
13199 * fns.c (concat): Don't change multibyteness of the result by
13200 concatenating an 8-bit character.
13201
13202 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
13203 multibyteness of the result when newelt is an 8-bit character.
13204
13205 2008-02-01 Dave Love <fx@gnu.org>
13206
13207 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
13208 EMACS_INT.
13209
13210 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
13211
13212 * xfaces.c (face_numeric_value): Declare dim size_t.
13213 (Finternal_lisp_face_equal_p): Remove unused f.
13214
13215 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
13216 (MATRIX_ROW): Remove unused vars.
13217 (draw_glyphs, x_insert_glyphs, fast_find_position)
13218 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
13219 byte/char counts.
13220
13221 * regex.c (regex_compile): Remove unused var.
13222
13223 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
13224
13225 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
13226 (Faccessible_keymaps, where_is_internal): Remove unused vars.
13227
13228 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
13229
13230 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
13231
13232 * fileio.c (Fwrite_region): Remove unused var.
13233
13234 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
13235 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
13236
13237 * composite.c (Fremove_list_of_text_properties): Declare.
13238
13239 * coding.c (inhibit_pre_post_conversion): Remove (unused).
13240 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
13241 (coding_inherit_eol_type): Remove unused attrs.
13242 (detect_coding): Cast arg of detect_eol.
13243
13244 * charset.c (syms_of_charset): Remove unused var p.
13245 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
13246 byte/char counts.
13247
13248 * casetab.c (set_case_table): Remove unused var.
13249
13250 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
13251 unused vars.
13252
13253 2008-02-01 Dave Love <fx@gnu.org>
13254
13255 * xterm.c (x_bitmap_mask): Declare.
13256
13257 2008-02-01 Dave Love <fx@gnu.org>
13258
13259 * xterm.c (x_term_init): Fix type error.
13260
13261 * lisp.h: Add Funibyte_char_to_multibyte.
13262
13263 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
13264 (Fset_coding_system_priority): Doc fix.
13265
13266 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
13267
13268 * indent.c (check_composition): Make start and end EMACS_INT.
13269
13270 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
13271
13272 * xdisp.c (handle_composition_prop, check_point_in_composition):
13273 Make buffer positions EMACS_INT.
13274
13275 * composite.c (find_composition, run_composition_function)
13276 (update_compositions, Ffind_composition_internal): Make buffer
13277 positions EMACS_INT.
13278
13279 * composite.h (find_composition, update_compositions): Make
13280 position args EMACS_INT.
13281
13282 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
13283
13284 * intervals.c (get_property_and_range):
13285 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
13286
13287 * unexalpha.c: Don't include varargs.h.
13288
13289 2008-02-01 Dave Love <fx@gnu.org>
13290
13291 * coding.h (ENCODE_UTF_8): New.
13292
13293 * Makefile.in (gtkutil.o): Depend on coding.h.
13294
13295 * coding.c (Fset_coding_system_priority): Doc fix.
13296
13297 2008-02-01 Kenichi Handa <handa@m17n.org>
13298
13299 * fileio.c (Finsert_file_contents): Call setup_coding_system in
13300 the case of auto saving.
13301
13302 2008-02-01 Andreas Schwab <schwab@suse.de>
13303
13304 * chartab.c (map_char_table, map_char_table_for_charset): Protect
13305 `range' from GC.
13306
13307 2008-02-01 Kenichi Handa <handa@m17n.org>
13308
13309 * coding.c (decode_coding_sjis): Check bytes more rigidly.
13310
13311 2008-02-01 Kenichi Handa <handa@m17n.org>
13312
13313 * fileio.c (choose_write_coding_system): Return a decided coding system.
13314 (Fwrite_region): Set Vlast_coding_system_used to the return value
13315 of choose_write_coding_system.
13316
13317 2008-02-01 Kenichi Handa <handa@m17n.org>
13318
13319 * charset.c (Fset_charset_priority): Pay attention to duplicated
13320 arguments.
13321
13322 * coding.c (QCcategory): New variable.
13323 (syms_of_coding): Defsym it. Set all elements of
13324 Vcoding_category_table and their symbol values.
13325 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
13326 coding-category-XXX, and coding-category-list.
13327 (Fdefine_coding_system_internal): Add category in the plist.
13328
13329 2008-02-01 Kenichi Handa <handa@m17n.org>
13330
13331 * callproc.c (Fcall_process): Handle carryover correctly.
13332
13333 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
13334 (raw_text_coding_system): Check NILP (coding_system).
13335 (coding_inherit_eol_type): Check NILP (coding_system) and
13336 NILP (parent).
13337 (consume_chars): Fix for the case of raw-text.
13338
13339 * process.c (read_process_output): Handle carryover correctly.
13340
13341 2008-02-01 Dave Love <fx@gnu.org>
13342
13343 * regex.c (re_search_2): Fix last change.
13344
13345 2008-02-01 Kenichi Handa <handa@m17n.org>
13346
13347 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
13348 target_multibyte. Even in a unibyte case, return a converted
13349 multibyte char.
13350 (GET_CHAR_AFTER): New macro.
13351 (PATFETCH): Translate via multibyte char.
13352 (HANDLE_UNIBYTE_RANGE): Delete this macro.
13353 (SETUP_MULTIBYTE_RANGE): New macro.
13354 (regex_compile): Setup compiled code so that its multibyteness
13355 matches that of a target. Fix the handling of "[X-YZ]" using
13356 SETUP_MULTIBYTE_RANGE.
13357 (analyse_first) <charset>: For filling fastmap for all multibyte
13358 characters, don't check by BASE_LEADING_CODE_P.
13359 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
13360 the same as RE_MULTIBYTE_P (bufp) now.
13361 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
13362 (TARGET_CHAR_AND_LENGTH): Delete this macro.
13363 (TRANSLATE_VIA_MULTIBYTE): New macro.
13364 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
13365 It is the same as RE_MULTIBYTE_P (bufp) now.
13366 <exactn>: Translate via multibyte.
13367 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
13368 translate it.
13369 <charset, charset_not>: Fetch a character by
13370 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
13371 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
13372 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
13373 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
13374 by GET_CHAR_AFTER.
13375 (bcmp_translate): Likewise.
13376
13377 * search.c (compile_pattern): Check the member target_multibyte,
13378 not the member multibyte of buf.
13379
13380 * lread.c (read1): While reading a string, set force_singlebyte
13381 and force_multibyte correctly.
13382
13383 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
13384 up of unibyte_to_multibyte_table.
13385
13386 2008-02-01 Kenichi Handa <handa@m17n.org>
13387
13388 * coding.c (setup_coding_system): If coding has
13389 post-read-conversion or pre-write-conversion, set
13390 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
13391 respectively.
13392 (decode_coding_gap): Run post-read-conversion if any.
13393
13394 * fileio.c (Finsert_file_contents): Even if we read into a
13395 unibyte buffer, check if we must decode the result or not.
13396
13397 2008-02-01 Kenichi Handa <handa@m17n.org>
13398
13399 * coding.c (make_conversion_work_buffer): Change the work buffer
13400 name to the same one as that of Emacs 21.
13401
13402 2008-02-01 Kenichi Handa <handa@m17n.org>
13403
13404 * coding.h (make_conversion_work_buffer): Adjust prototype.
13405 (code_conversion_restore): Don't extern it.
13406
13407 * coding.c (detected_mask): Delete unused variable.
13408 (decode_coding_iso_2022): Pay attention to the byte sequence of
13409 CTEXT extended segment, and retain those bytes as is.
13410 (decode_coding_ccl): Delete unused variable `valids'.
13411 (setup_coding_system): Delete unused variable `category'.
13412 (consume_chars): Delete unused variable `category'. Make it work
13413 for non-multibyte case.
13414 (make_conversion_work_buffer): Change argument.
13415 (saved_coding): Delete unused variable.
13416 (code_conversion_restore): Don't check saved_coding->destination.
13417 (code_conversion_save): New function.
13418 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
13419 instead of record_unwind_protect.
13420 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
13421 (detect_coding_system): Delete unused variable `mask'.
13422 (Fdefine_coding_system_internal): Delete unused variable id.
13423
13424 * fileio.c (kill_workbuf_unwind): New function.
13425 (Finsert_file_contents): On replacing, call
13426 make_conversion_work_buffer with correct args, and call
13427 record_unwind_protect with the first arg kill_workbuf_unwind.
13428
13429 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
13430
13431 2008-02-01 Kenichi Handa <handa@m17n.org>
13432
13433 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
13434 (fontset_add): Fix for the case that TO is less than TO1.
13435 (Ffontset_info): Don't use fallback fontset on checking the
13436 default fontset.
13437 (dump_fontset): New function for debugging.
13438
13439 * coding.c (Fdefine_coding_system_internal): Fix for the case that
13440 coding_type is Qcharset.
13441
13442 2008-02-01 Kenichi Handa <handa@m17n.org>
13443
13444 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
13445 (map_char_table): Don't inherit the value from the parent on
13446 initializing VAL. Adjust for the above change.
13447
13448 2008-02-01 Kenichi Handa <handa@m17n.org>
13449
13450 * coding.c (Qsignature, Qendian): Delete these variables.
13451 (syms_of_coding): Don't initialize them.
13452 (CATEGORY_MASK_UTF_16_AUTO): New macro.
13453 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
13454 detect_info->found.
13455 (decode_coding_utf_16): Don't detect BOM here.
13456 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
13457 is NOT utf_16_without_bom.
13458 (setup_coding_system): For a coding system of type utf-16, check
13459 if the attribute :endian is Qbig or not (not nil or not), and set
13460 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
13461 (detect_coding): If coding type is utf-16 and BOM detection is
13462 required, detect it.
13463 (Fdefine_coding_system_internal): For a coding system of type
13464 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
13465
13466 2008-02-01 Kenichi Handa <handa@m17n.org>
13467
13468 * coding.c (coding_set_source): Fix for the case that the current
13469 buffer is different from coding->src_object.
13470 (decode_coding_object): Don't use the conversion work buffer if
13471 DST_OBJECT is a buffer.
13472
13473 2008-02-01 Dave Love <fx@gnu.org>
13474
13475 * lread.c (read_emacs_mule_char) [len==2]: Index
13476 emacs_mule_charset correctly.
13477
13478 2008-02-01 Dave Love <fx@gnu.org>
13479
13480 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
13481 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
13482 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
13483 treated specially.)
13484 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
13485 (detected_mask): Remove Big5 bits.
13486
13487 2008-02-01 Kenichi Handa <handa@m17n.org>
13488
13489 The following changes are to make the font rescaling facility
13490 compatible with Emacs 21.
13491
13492 * xfaces.c (Vface_font_rescale_alist): Rename from
13493 Vface_resizing_fonts.
13494 (struct font_name): Rename member resizing_ratio to rescale_ratio.
13495 (font_rescale_ratio): Rename from font_resizing_ratio.
13496 (split_font_name): Set font->rescale_ratio.
13497 (better_font_p): Pay attention to font->rescale_ratio.
13498 (build_scalable_font_name): Likewise. Change RESX, and RESY
13499 fields.
13500 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
13501
13502 2008-02-01 Kenichi Handa <handa@m17n.org>
13503
13504 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
13505 (Qutf_16_le): Remove these variables.
13506 (syms_of_coding): Don't DEFSYM them.
13507 (decode_coding_utf_16): Fix handling of BOM.
13508 (encode_coding_utf_16): Fix handling of BOM.
13509
13510 2008-02-01 Kenichi Handa <handa@m17n.org>
13511
13512 * fileio.c (Finsert_file_contents): On replacing, before decoding
13513 the file into the work buffer, set point of the work buffer to the end.
13514
13515 2008-02-01 Dave Love <fx@gnu.org>
13516
13517 * coding.c (Fcheck_coding_systems_region): Fix type errors.
13518
13519 2008-02-01 Dave Love <fx@gnu.org>
13520
13521 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
13522 and fix C types.
13523
13524 2008-02-01 Kenichi Handa <handa@m17n.org>
13525
13526 * xdisp.c (SKIP_GLYPHS): New macro.
13527 (set_cursor_from_row): Pay attention to string display properties.
13528
13529 * category.c (copy_category_entry): Fix for the case that RANGE
13530 is an integer.
13531
13532 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
13533
13534 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
13535
13536 2008-02-01 Kenichi Handa <handa@m17n.org>
13537
13538 * charset.c (Fcharset_id_internal): New function.
13539 (syms_of_charset): Defsubr it.
13540
13541 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
13542 with the last arg charset_list acquired from coding.
13543 (Fdefine_coding_system_internal): For ccl-based coding system, fix
13544 the attribute coding_attr_ccl_valids.
13545
13546 * coding.h (enum define_coding_ccl_arg_index): Set the first
13547 member coding_arg_ccl_decoder to coding_arg_max.
13548
13549 * ccl.h (ccl_driver): Adjust prototype.
13550
13551 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
13552 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
13553 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
13554 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
13555 last arg Qnil.
13556
13557 2008-02-01 Kenichi Handa <handa@m17n.org>
13558
13559 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
13560 call encode_char.
13561
13562 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
13563
13564 2008-02-01 Dave Love <fx@gnu.org>
13565
13566 * composite.c (syms_of_composite): Make composition_hash_table weak.
13567
13568 2008-02-01 Kenichi Handa <handa@m17n.org>
13569
13570 * dispextern.h (check_face_attributes, generate_ascii_font_name)
13571 (font_name_registry): Don't extern them.
13572 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
13573
13574 * fontset.h (Qfontset): Don't extern it.
13575 (new_fontset_from_font_name): Extern it.
13576
13577 * fontset.c: Give 8 extra slots to fontset objects.
13578 (Qfontset_info): New variable.
13579 (syms_of_fontset): Defsym it.
13580 (FONTSET_FALLBACK): New macro.
13581 (fontset_face): Try also the default fontset.
13582 (make_fontset): Realize a fallback fontset from the default fontset.
13583 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
13584 using split_font_name_into_vector and build_font_name_from_vector.
13585 (Fset_fontset_font): Access the elements of font_spec by enum
13586 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
13587 name by using split_font_name_into_vector.
13588 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
13589 generate a proper font name from the fontset name. Update
13590 Vfontset_alias_alist.
13591 (n_auto_fontsets): New variable.
13592 (new_fontset_from_font_name): New function.
13593 (Ffont_info): Store the information about fonts generated from the
13594 default fontset in the first extra slot of the returned char-table.
13595
13596 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
13597 (font_name_registry): Delete function.
13598 (split_font_name_into_vector): New function.
13599 (build_font_name_from_vector): New function.
13600 (font_list): The argument REGISTRY is now a list of registry names.
13601 (choose_face_font): If we are choosing an ASCII font, and ATTRS
13602 specifies an explicit font name, return the name as is. Make a
13603 list of registy names.
13604
13605 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
13606 of x_new_fontset.
13607 (Fx_create_frame): Don't call x_new_fontset here. Just use
13608 x_list_fonts to check the existence of fonts.
13609
13610 * xterm.h (x_new_fontset): Adjust prototype.
13611
13612 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
13613 string. Use new_fontset_from_font_name to create a fontset from a
13614 font name.
13615
13616 2008-02-01 Kenichi Handa <handa@m17n.org>
13617
13618 * syntax.c (Vfind_word_boundary_function_table): New name for
13619 Vnext_word_boundary_function_table.
13620 (find-word-boundary-function-table): New name for
13621 next-word-boundary-function-table.
13622
13623 2008-02-01 Dave Love <fx@gnu.org>
13624
13625 * Makefile.in: Fix some dependencies.
13626
13627 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
13628 set it to nil before returning.
13629
13630 * composite.c (update_compositions): Fix type error.
13631
13632 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
13633
13634 2008-02-01 Kenichi Handa <handa@m17n.org>
13635
13636 * xterm.c (x_new_font): Optimize for the case that the font is
13637 already set for the frame.
13638
13639 2008-02-01 Kenichi Handa <handa@m17n.org>
13640
13641 * chartab.c (char_table_ascii): Check if the char table contents
13642 is sub-char-table or not.
13643 (char_table_set, char_table_set_range): Fix argument to
13644 char_table_ascii.
13645
13646 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
13647 (detect_coding_utf_8, detect_coding_utf_16)
13648 (detect_coding_emacs_mule, detect_coding_iso_2022)
13649 (detect_coding_sjis, detect_coding_big5)
13650 (detect_coding_ccl, detect_coding_charset): Change argument MASK
13651 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
13652 sequence is valid in this coding system. Change callers.
13653 (MAX_ANNOTATION_LENGTH): New macro.
13654 (ADD_ANNOTATION_DATA): New macro.
13655 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
13656 ADD_ANNOTATION_DATA. Change the format of annotation data.
13657 (ADD_CHARSET_DATA): New macro.
13658 (emacs_mule_char): New argument ID. Change callers.
13659 (decode_coding_emacs_mule, decode_coding_iso_2022)
13660 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
13661 Produce charset annotation data in coding->charbuf.
13662 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
13663 to charset annotation data in coding->charbuf.
13664 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
13665 coding->common_flags if the coding system is iso-2022 based and
13666 uses designation.
13667 (produce_composition): Adjust for the new annotation data format.
13668 (produce_charset): New function.
13669 (produce_annotation): Handle charset annotation.
13670 (handle_composition_annotation, handle_charset_annotation): New
13671 functions.
13672 (consume_chars): Handle charset annotation. Utilize the above two
13673 functions.
13674 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
13675 buffer, get the deleted text as a string and set
13676 coding->src_object to that string.
13677 (detect_coding, detect_coding_system): Use the new struct
13678 coding_detection_info.
13679
13680 * coding.h (struct coding_detection_info): New structure.
13681 (struct coding_system): Adjust prototype of the member `detector'.
13682 (CODING_ANNOTATE_CHARSET_MASK): New macro.
13683
13684 2008-02-01 Kenichi Handa <handa@m17n.org>
13685
13686 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
13687
13688 2008-02-01 Dave Love <fx@gnu.org>
13689
13690 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
13691 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
13692 to new local and nullify apropos_accumulate before returning.
13693 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
13694
13695 2008-02-01 Kenichi Handa <handa@m17n.org>
13696
13697 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
13698 correctly.
13699
13700 2008-02-01 Dave Love <fx@gnu.org>
13701
13702 * fns.c (Flanginfo): Call synchronize_system_time_locale.
13703
13704 2008-02-01 Kenichi Handa <handa@m17n.org>
13705
13706 The following changes are to make character composition happen
13707 automatically on displaying.
13708
13709 * Makefile.in (lisp, shortlisp): Add composite.elc.
13710
13711 * composite.h (Qauto_composed, Vauto_composition_function)
13712 (Qauto_composition_function): Extern them.
13713
13714 * composite.c (Vcomposition_function_table)
13715 (Qcomposition_function_table): Delete variables.
13716 (Qauto_composed, Vauto_composition_function)
13717 (Qauto_composition_function): New variables.
13718 (run_composition_function): Don't call
13719 compose-chars-after-function.
13720 (update_compositions): Clear `auto-composed' text property.
13721 (compose_chars_in_text): Delete this function.
13722 (syms_of_composite): Staticpro Qauto_composed and
13723 Qauto_composition_function. Declare Vauto_composition_function as
13724 a Lisp variable.
13725
13726 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
13727
13728 * xdisp.c (it_props): Add an entry for Qauto_composed.
13729 (handle_auto_composed_prop): New function.
13730
13731 * xselect.c (selection_data_to_lisp_data): Don't call
13732 compose_chars_in_text.
13733
13734 2008-02-01 Dave Love <fx@gnu.org>
13735
13736 * keyboard.c (read_char): Modify checking around use of
13737 Vkeyboard_translate_table.
13738
13739 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
13740 and fix C types.
13741
13742 2008-02-01 Kenichi Handa <handa@m17n.org>
13743
13744 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
13745 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
13746 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
13747 the case that the last byte is '\r' correctly.
13748 (decode_coding): Flush out the unprocessed data correctly.
13749 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
13750
13751 2008-02-01 Dave Love <fx@gnu.org>
13752
13753 * xterm.c (XTread_socket): Fix changes for defined keysyms.
13754 Add XK_ISO... case.
13755 (xaw_scroll_callback): Revert last change.
13756
13757 2008-02-01 Kenichi Handa <handa@m17n.org>
13758
13759 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
13760
13761 2008-02-01 Kenichi Handa <handa@m17n.org>
13762
13763 * xfaces.c (Vface_resizing_fonts): New variable.
13764 (struct font_name): New member `resizing_ratio'.
13765 (font_resizing_ratio): New function.
13766 (split_font_name): Set font->resizing_ratio.
13767 (better_font_p): Pay attention to font->resizing_ratio.
13768 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
13769 RESX, and RESY fields.
13770 (try_alternative_families): Try scalable fonts if
13771 Vscalable_fonts_allowed is not Qt.
13772 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
13773
13774 2008-02-01 Dave Love <fx@gnu.org>
13775
13776 * xterm.c (xaw_scroll_callback): Cast correctly.
13777
13778 2008-02-01 Dave Love <fx@gnu.org>
13779
13780 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
13781 (lispy_kana_keys): Comment out.
13782 (make_lispy_event) [XK_kana_A]: Comment out.
13783
13784 * xterm.c (xaw_scroll_callback): Cast call_data.
13785 (XTread_socket): Deal with ASCII keysyms.
13786 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
13787
13788 2008-02-01 Dave Love <fx@gnu.org>
13789
13790 * xterm.c (Vx_keysym_table): New.
13791 (syms_of_xterm): Initialize it.
13792 (XTread_socket): Use it.
13793 From head: Eliminate incorrect optimization that tried to avoid
13794 decoding the output of X*LookupString.
13795 (x_get_font_repertory): Delete charset declaration.
13796
13797 2008-02-01 Kenichi Handa <handa@m17n.org>
13798
13799 * coding.c (detect_coding_charset): If only ASCII bytes are found,
13800 return 0.
13801 (Fdefine_coding_system_internal): Setup
13802 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
13803
13804 2008-02-01 Dave Love <fx@gnu.org>
13805
13806 * coding.c (Fcheck_coding_system): Doc fix.
13807
13808 * editfns.c (Finsert_byte): Return a proper value.
13809
13810 2008-02-01 Kenichi Handa <handa@m17n.org>
13811
13812 * coding.c (decode_coding): Fix args to translate_chars. Pay
13813 attention to Vstandard_translation_table_for_decode.
13814 (encode_coding): Fix args to translate_chars. Pay attention to
13815 Vstandard_translation_table_for_encode.
13816
13817 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
13818 SINGLE_BYTE_CHAR_P.
13819
13820 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
13821 not by SINGLE_BYTE_CHAR_P.
13822
13823 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
13824 SINGLE_BYTE_CHAR_P.
13825
13826 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
13827 SINGLE_BYTE_CHAR_P.
13828
13829 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
13830 by SINGLE_BYTE_CHAR_P.
13831
13832 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
13833 SINGLE_BYTE_CHAR_P.
13834
13835 2008-02-01 Dave Love <fx@gnu.org>
13836
13837 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
13838
13839 2008-02-01 Dave Love <fx@gnu.org>
13840
13841 * fns.c (Flanginfo): Fix typo.
13842
13843 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
13844
13845 2008-02-01 Kenichi Handa <handa@m17n.org>
13846
13847 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
13848 (detect_coding_emacs_mule, detect_coding_iso_2022)
13849 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
13850 incomplete byte sequence. Don't update *mask when correctly detected.
13851 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
13852 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
13853 (detect_coding, detect_coding_system): Adjust for the changes above.
13854
13855 2008-02-01 Kenichi Handa <handa@m17n.org>
13856
13857 * character.c (char_string): Rename from
13858 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
13859 (string_char): Rename from string_char.
13860
13861 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
13862 if C is greater than MAX_3_BYTE_CHAR.
13863 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
13864 string_char instead of string_char_with_unification.
13865
13866 2008-02-01 Dave Love <fx@gnu.org>
13867
13868 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
13869
13870 2008-02-01 Kenichi Handa <handa@m17n.org>
13871
13872 * keymap.c (push_key_description): Pay attention to force_multibyte.
13873
13874 * regex.c (re_search_2): Fix for the case of unibyte buffer.
13875
13876 2008-02-01 Dave Love <fx@gnu.org>
13877
13878 * charset.c (define_charset_internal): Rename `supprementary'.
13879
13880 * Makefile.in (lisp, shortlisp): Remove latin-N.
13881
13882 2008-02-01 Dave Love <fx@gnu.org>
13883
13884 * xfns.c (x_window, x_window): Use use_xim.
13885
13886 * xterm.c (use_xim): Initialize.
13887 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
13888 (x_term_init): Maybe set use_xim.
13889
13890 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
13891
13892 2008-02-01 Kenichi Handa <handa@m17n.org>
13893
13894 * search.c (search_buffer): Fix case-fold-search of multibyte
13895 characters.
13896 (boyer_moore): Rename the last argument to char_high_bits.
13897
13898 2008-02-01 Kenichi Handa <handa@m17n.org>
13899
13900 * xdisp.c (display_string): Fix for the case of zero width glyph.
13901
13902 * xfns.c (x_set_font): Change the error message of the case that
13903 x_new_fontset returns Qt.
13904
13905 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
13906 (Finternal_set_lisp_face_attribute): Use signal_error for the
13907 error of invalid fontset.
13908
13909 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
13910 fontset, return Qt.
13911
13912 2008-02-01 Dave Love <fx@gnu.org>
13913
13914 * unexelf.c (unexec): Make .got handling not SGI-specific.
13915
13916 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
13917
13918 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
13919
13920 * keyboard.c (read_key_sequence): Fix type error.
13921
13922 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
13923 type error.
13924
13925 * fontset.c (fontset_add): Return Lisp_Object.
13926
13927 2008-02-01 Dave Love <fx@gnu.org>
13928
13929 * charset.h (charset_ordered_list_tick): Declare extern.
13930
13931 2008-02-01 Kenichi Handa <handa@m17n.org>
13932
13933 The following changes (and some of 2008-02-01 changes of mine) are
13934 for handling syntax, category, and case conversion for unibyte
13935 characters by converting them to multibyte on the fly. With these
13936 changes, we don't have to setup syntax and case tables for unibyte
13937 characters in each language environment.
13938
13939 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
13940 multibyte if necessary.
13941
13942 * bytecode.c (Fbyte_code): Likewise.
13943
13944 * character.h (LEADING_CODE_LATIN_1_MIN)
13945 (LEADING_CODE_LATIN_1_MAX): New macros.
13946 (unibyte_to_multibyte_table): Extern it.
13947 (unibyte_char_to_multibyte): New macro.
13948 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
13949 (CHAR_LEADING_CODE): New macro.
13950 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
13951
13952 * character.c (unibyte_to_multibyte_table): New variable.
13953 (unibyte_char_to_multibyte): Move to character.h and define as macro.
13954 (multibyte_char_to_unibyte): If C is an eight-bit character,
13955 convert it to the corresponding byte value.
13956
13957 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
13958 not 1, signals an error. Update the elements of
13959 unibyte_to_multibyte_table.
13960 (init_charset_once): Initialize unibyte_to_multibyte_table.
13961 (syms_of_charset): Define the charset `iso-8859-1'.
13962
13963 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
13964 as is without converting it to unibyte. In a unibyte buffer,
13965 convert C to multibyte before checking the syntax.
13966
13967 * lisp.h (unibyte_char_to_multibyte): Delete extern.
13968
13969 * minibuf.c (Fminibuffer_complete_word): Use the macro
13970 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
13971
13972 * regex.h (struct re_pattern_buffer): New member target_multibyte.
13973
13974 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
13975 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
13976 that is zero, convert an eight-bit char to multibyte.
13977 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
13978 non-emacs case.
13979 (PATFETCH): Convert an eight-bit char to multibyte.
13980 (HANDLE_UNIBYTE_RANGE): New macro.
13981 (regex_compile): Setup the compiled pattern for multibyte chars
13982 even if the given regex string is unibyte. Use PATFETCH_RAW
13983 instead of PATFETCH in many places. To handle `charset'
13984 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
13985 only for ASCII chars.
13986 (analyse_first) <exactn>: Simplify because the compiled pattern
13987 is multibyte.
13988 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
13989 <charset>: Use CHAR_LEADING_CODE to get leading codes.
13990 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
13991 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
13992 multibyte always 1.
13993 (re_search_2): In emacs, set the locale variable multibyte to 1,
13994 otherwise to 0. New local variable target_multibyte. Check it
13995 to decide the multibyteness of STR1 and STR2. If
13996 target_multibyte is zero, convert unibyte chars to multibyte
13997 before translating and checking fastmap.
13998 (TARGET_CHAR_AND_LENGTH): New macro.
13999 (re_match_2_internal): In emacs, set the locale variable multibyte
14000 to 1, otherwise to 0. New local variable target_multibyte. Check
14001 it to decide the multibyteness of STR1 and STR2. Use
14002 TARGET_CHAR_AND_LENGTH to fetch a character from D.
14003 <charset, charset_not>: If multibyte is nonzero, check fastmap
14004 only for ASCII chars. Call bcmp_translate with
14005 target_multibyte, not with multibyte.
14006 <begline>: Declare the local variable C as `unsigned'.
14007 (bcmp_translate): Change the last arg name to target_multibyte.
14008
14009 * search.c (compile_pattern_1): Don't adjust the multibyteness of
14010 the regexp pattern and the matching target. Set cp->buf.multibyte
14011 to the multibyteness of the regexp pattern. Set
14012 cp->but.target_multibyte to the multibyteness of the matching target.
14013 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
14014 FETCH_STRING_CHAR_ADVANCE.
14015 (Freplace_match): Convert unibyte chars to multibyte.
14016
14017 * syntax.c (char_quoted, back_comment, scan_words)
14018 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
14019 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
14020 unibyte chars to multibyte.
14021 (skip_chars): Delete the arg syntaxp, and move the code for
14022 handling syntaxes to skip_syntaxes. Change callers.
14023 Fix the case that the multibyteness of STRING and the current
14024 buffer doesn't match.
14025 (skip_syntaxes): New function.
14026 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
14027 SINGLE_BYTE_CHAR_P.
14028
14029 2008-02-01 Kenichi Handa <handa@m17n.org>
14030
14031 * xfaces.c (QCfontset): New variable.
14032 (LFACE_FONTSET): New macro.
14033 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
14034 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
14035 (Finternal_set_lisp_face_attribute)
14036 (Finternal_get_lisp_face_attribute): Handle QCfontset.
14037 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
14038 check also LFACE_FONTSET_INDEX.
14039 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
14040 attrs[LFACE_FONT_INDEX].
14041 (syms_of_xfaces): Intern and staticpro QCfontset.
14042
14043 * dispextern.h (enum lface_attribute_index): New member
14044 LFACE_FONTSET_INDEX.
14045
14046 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
14047
14048 2008-02-01 Kenichi Handa <handa@m17n.org>
14049
14050 * coding.c (coding_set_destination): Fix coding->destination for
14051 the case converting a region.
14052 (encode_coding_utf_8): Encode eight-bit chars as single byte.
14053 (encode_coding_object): Fix coding->dst_pos and
14054 coding->dst_pos_byte for the case converting a region.
14055
14056 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
14057
14058 * character.h (BYTE8_STRING): New macro.
14059
14060 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
14061
14062 2008-02-01 Kenichi Handa <handa@m17n.org>
14063
14064 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
14065 characters by octal form.
14066
14067 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
14068
14069 * buffer.h (_fetch_multibyte_char_len): Delete extern.
14070 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
14071 _fetch_multibyte_char_len.
14072 (FETCH_CHAR_AS_MULTIBYTE): New macro.
14073
14074 * casetab.c (set_canon, set_identity, shuffle): Simplify.
14075
14076 * casefiddle.c (casify_object): Simplify. Handle the case that
14077 the case conversion change the byte length.
14078 (casify_region): Likewise.
14079
14080 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
14081
14082 * character.c (_fetch_multibyte_char_len): Delete this variable.
14083 (syms_of_character): Setup Vprintable_chars.
14084
14085 * editfns.c (Fchar_equal): Fix for the unibyte case.
14086 (Finsert_byte): New function.
14087 (syms_of_editfns): Defsubr it.
14088
14089 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
14090 of direct code 0x3ffff.
14091
14092 * search.c (Freplace_match): Fix for the unibyte case.
14093
14094 2008-02-01 Kenichi Handa <handa@m17n.org>
14095
14096 * lread.c (safe_to_load_p): Fix the logic.
14097
14098 * syntax.c (scan_words): Don't treat characters belonging to
14099 different scripts as constituting a word.
14100
14101 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
14102
14103 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
14104
14105 * emacs.c (main): In the case of --unibyte, instead of aborting on
14106 finding non-empty buffer, make it unibyte.
14107
14108 2008-02-01 Kenichi Handa <handa@m17n.org>
14109
14110 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
14111 to create a fontset.
14112
14113 2008-02-01 Dave Love <fx@gnu.org>
14114
14115 * character.c (Funibyte_char_to_multibyte): Doc fix.
14116
14117 * xfns.c [HAVE_STDLIB_H]: Fix last change.
14118
14119 2008-02-01 Kenichi Handa <handa@m17n.org>
14120
14121 * fontset.c (fontset_add): Make the type `int'.
14122 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
14123
14124 * character.c (unibyte_char_to_multibyte)
14125 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
14126 charset_unibyte, not charset_primary.
14127
14128 * charset.h (charset_unibyte): Extern it instead of charset_primary.
14129
14130 * charset.c (charset_unibyte): Rename from charset_primary.
14131 (Funibyte_charset): Rename from Fprimary_charset.
14132 (Fset_unibyte_charset): Rename from Fset_primary_charset.
14133 (syms_of_charset): Adjust for the above changes.
14134
14135 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
14136 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
14137 it->multibyte_p is zero.
14138
14139 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
14140 Delete extern.
14141
14142 2008-02-01 Kenichi Handa <handa@m17n.org>
14143
14144 * coding.c (Fdefine_coding_system_internal): Fix category setting
14145 for a coding system of type iso-2022.
14146
14147 2008-02-01 Kenichi Handa <handa@m17n.org>
14148
14149 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
14150
14151 2008-02-01 Kenichi Handa <handa@m17n.org>
14152
14153 * syntax.c (Vnext_word_boundary_function_table): New variable.
14154 (next-word-boundary-function-table): Declare it as a Lisp variable
14155 in syms_of_syntax.
14156 (scan_words): Call functions in Vnext_word_boundary_function_table
14157 if any.
14158
14159 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
14160
14161 * fontset.c (fs_load_font): If fontp->charset is not negative,
14162 return fontp without setting its members.
14163
14164 2008-02-01 Dave Love <fx@gnu.org>
14165
14166 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
14167
14168 * m/sparc.h (HAVE_ALLOCA): Delete.
14169
14170 * s/irix6-5.h: Don't include strings.h.
14171 (bcopy, bzero, bcmp): Don't undef.
14172
14173 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
14174
14175 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
14176 (TIOCSIGSEND): Don't test IRIX6.
14177 (bcopy, bzero, bcmp): Define conditionally.
14178
14179 2008-02-01 Kenichi Handa <handa@m17n.org>
14180
14181 * buffer.c (Qas, Qmake, Qto): New variables.
14182 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
14183 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
14184
14185 * callproc.c (Fcall_process): Don't call insert_1_both directly if
14186 we are inserting a process output into a multibyte buffer.
14187
14188 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
14189 multibyte_char_to_unibyte.
14190
14191 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
14192 by the primary charset, make it eight-bit char.
14193 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
14194
14195 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
14196 (charset_8_bit__control, charset_8_bit_graphic)
14197 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
14198 (define_charset_internal): New function.
14199 (syms_of_charset): Call define_charset_internal for pre-defined
14200 charsets.
14201
14202 * charset.h (charset_8_bit): Extern it.
14203
14204 * coding.c (make_conversion_work_buffer): Adjust for the change
14205 of Fset_buffer_multibyte.
14206 (encode_coding_raw_text): Increment p0 in the loop.
14207
14208 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
14209
14210 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
14211 for the change of Fset_buffer_multibyte.
14212
14213 * fns.c (Fstring_to_multibyte): New function.
14214 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
14215
14216 2008-02-01 Dave Love <fx@gnu.org>
14217
14218 * xfns.c (x_put_x_image): Declare args.
14219
14220 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
14221 (try_font_list): Declare an arg.
14222
14223 * xdisp.c (message2_nolog, set_message): Declare an arg.
14224
14225 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
14226
14227 * syntax.c (scan_sexps_forward): Declare an arg.
14228
14229 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
14230 Declare an arg.
14231
14232 * lisp.h (Fnew_fontset): Declare.
14233
14234 * keymap.c (push_key_description): Call CHARACTERP correctly.
14235
14236 * fontset.c (fontset_add): Declare args. Call make_number correctly.
14237 (face_for_char): Delete unused vars.
14238 (Fset_fontset_font): Doc fix. Delete unused vars.
14239
14240 * doc.c (Fsubstitute_command_keys): Delete unused vars.
14241
14242 * composite.c (update_compositions): Declare arg.
14243
14244 * cm.c (calccost, cmgoto): Declare args.
14245
14246 * charset.c: Remove `emacs' conditional. Doc fixes.
14247 (map_char_table_for_charset): Declare.
14248
14249 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
14250
14251 * ccl.c: Remove `emacs' conditional.
14252
14253 2008-02-01 Kenichi Handa <handa@m17n.org>
14254
14255 The following changes are to allow specifying multiple font
14256 patterns for a character range (specified by script or charset).
14257
14258 * Makefile.in (abbrev.o): Depend on syntax.h.
14259 (xfaces.o): Depend on charset.h.
14260
14261 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
14262 SINGLE_BYTE_CHAR_P.
14263
14264 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
14265
14266 * character.h (Vchar_script_table): Extern it.
14267
14268 * character.c (Vscript_alist): Delete.
14269 (Vchar_script_table, Qchar_script_table): New variable.
14270 (syms_of_character): Declare Vchar_script_table as a lisp variable
14271 and initialize it.
14272
14273 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
14274 have property char-table-extra-slots, make no extra slot.
14275
14276 * dispextern.h (struct face): Delete member `charset'.
14277 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
14278 SINGLE_BYTE_CHAR_P.
14279 (choose_face_font, lookup_non_ascii_face, font_name_registry):
14280 Add prototypes.
14281 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
14282 (generate_ascii_font_name): Rename from generate_ascii_font.
14283
14284 * fontset.h (get_font_repertory_func): New prototype.
14285 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
14286 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
14287
14288 * fontset.c (Qprepend, Qappend): New variables.
14289 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
14290 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
14291 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
14292 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
14293 (fontset_ref_and_range, fontset_add, reorder_font_vector)
14294 (load_font_get_repertory): New functions.
14295 (fontset_set): Delete.
14296 (fontset_face): New arg FACE. Return face ID, not face.
14297 Complete re-write to handle new fontset structure. Change caller.
14298 (free_face_fontset): Use ASET istead of AREF (X) = Y.
14299 (face_for_char): Don't call lookup_face.
14300 (make_fontset_for_ascii_face): New arg FACE.
14301 (fs_load_font): New arg CHARSET_ID. Don't check
14302 Vfont_encoding_alist here.
14303 (find_font_encoding): New function.
14304 (list_fontsets): Use STRINGP, not ! NILP.
14305 (accumulate_script_ranges): New function.
14306 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
14307 re-written to handle new fontset structure.
14308 (Ffontset_font): Return a copy of element.
14309 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
14310 docstring of font-encoding-alist.
14311
14312 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
14313 (Fset_fotset_font): Fix arguments to 5.
14314
14315 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
14316
14317 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
14318 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
14319 (highlight_trailing_whitespace): Adjust for the change of
14320 lookup_named_face.
14321
14322 * xfaces.c: Include charset.h.
14323 (load_face_font): Delete argument C. Change caller.
14324 (generate_ascii_font_name): Rename from generate_ascii_font.
14325 (font_name_registry): New function.
14326 (cache_face): Store ascii faces before non-ascii faces in buckets.
14327 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
14328 Lookup only ascii faces.
14329 (lookup_non_ascii_face): New function.
14330 (lookup_named_face): Delete argument C. Change caller.
14331 (lookup_derived_face): Delete argument C. Change caller.
14332 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
14333 a string, just call font_list with it.
14334 (choose_face_font): Delete arguments FACE and C. New arg
14335 FONT_SPEC. Change caller.
14336 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
14337 Change caller.
14338 (realize_non_ascii_face): New function.
14339 (realize_x_face): Call load_face_font here.
14340 (realize_tty_face): Delete argument C. Change caller.
14341 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
14342 get a face ID.
14343 (dump_realized_face): Don't print charset of FACE.
14344
14345 * xfns.c (x_set_font): Always call x_new_fontset and
14346 store_frame_parameter.
14347 (Fx_create_frame): Call x_new_fontset, not x_new_font.
14348 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
14349
14350 * xterm.h (x_get_font_repertory): Extern it.
14351
14352 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
14353 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
14354 it->multibyte_p is zero.
14355 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
14356 (x_new_fontset): If FONTSETNAME doesn't match any existing
14357 fontsets, create a new one.
14358 (x_get_font_repertory): New function.
14359
14360 2008-02-01 Kenichi Handa <handa@m17n.org>
14361
14362 * coding.c (Ffind_coding_systems_region_internal): Detect an
14363 ASCII only string correctly.
14364
14365 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
14366 version is 0.
14367
14368 2008-02-01 Kenichi Handa <handa@m17n.org>
14369
14370 * lread.c: Include "coding.h".
14371 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
14372 (load_each_byte, unread_char): New variables.
14373 (readchar_backlog): Delete.
14374 (readchar): Return a character unless load_each_byte is nonzero.
14375 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
14376 cons. If unread_char is not -1, simply return it.
14377 (unreadchar): Handle the case that readcharfun is
14378 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
14379 (read_multibyte): Delete.
14380 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
14381 (read_emacs_mule_char): New functions.
14382 (Fload): Even if the file doesn't have the extension ".elc", if
14383 safe_to_load_p returns a positive version number, assume that the
14384 file contains bytecompiled code. If the version is less than 22,
14385 load the file while decoding multibyte sequences by emacs-mule.
14386 (readevalloop): Don't use readchar_backlog.
14387 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
14388 (Fread_from_string): Pay attention to the case that STREAM is a cons.
14389 (read_escape): Delete the arg BYTEREP.
14390 (read1): Set load_each_byte to 1 temporarily while handling
14391 #@NUMBER. Don't call read_multibyte.
14392 (read_vector): Call Fread with a cons. If readcharfun is
14393 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
14394 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
14395 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
14396 and Qload_force_doc_strings.
14397
14398 2008-02-01 Kenichi Handa <handa@m17n.org>
14399
14400 * xdisp.c (face_before_or_after_it_pos): Call
14401 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
14402
14403 2008-02-01 Kenichi Handa <handa@m17n.org>
14404
14405 * character.h (TRAILING_CODE_P): New macro.
14406 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
14407 (string_char_with_unification): Fix prototype.
14408 (Vscript_alist): Extern it.
14409
14410 * character.c (Vscript_alist): New variable.
14411 (string_char_with_unification, str_as_unibyte)
14412 (string_escape_byte8): Add `const' to local variables.
14413 (syms_of_character): Declare script-alist as a Lisp variable.
14414
14415 * charset.h (Vcharset_ordered_list): Extern it.
14416 (charset_ordered_list_tick): Extern it.
14417 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
14418 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
14419 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
14420 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
14421 (Funify_charset): Adjust for the change of Funify_charset.
14422
14423 * charset.c (charset_ordered_list_tick): New variable.
14424 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
14425 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
14426 deunify intead of unify a charset.
14427 (string_xstring_p): Add `const' to local variables.
14428 (find_charsets_in_text): Add `const' to arguments and local variables.
14429 (encode_char): Adjust for the change of Funify_charset. Fix
14430 detecting of invalid code.
14431 (Fset_charset_priority): Increment charset_ordered_list_tick.
14432 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
14433 and TO_CODE.
14434
14435 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
14436 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
14437 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
14438 (decode_coding_ccl, consume_chars)
14439 (Ffind_coding_systems_region_internal)
14440 (Fcheck_coding_systems_region): Add `const' to local variables.
14441
14442 * print.c (print_object): Use octal form for printing the
14443 contents of a bool vector.
14444
14445 2008-02-01 Dave Love <fx@gnu.org>
14446
14447 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
14448 <version == 20>: Refuse to load.
14449
14450 2008-02-01 Dave Love <fx@gnu.org>
14451
14452 * fns.c: Move coding.h.
14453 (Qcodeset, Qdays, Qmonths): New.
14454 (concat): Use CHARACTERP instead of INTEGERP.
14455 (Flocale_codeset): Delete.
14456 (Flanginfo): New function.
14457 (syms_of_fns): Change accordingly.
14458
14459 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
14460
14461 2008-02-01 Dave Love <fx@gnu.org>
14462
14463 * casetab.c (init_casetab_once, init_casetab_once): Fix
14464 CHAR_TABLE_SET call.
14465
14466 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
14467
14468 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
14469
14470 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
14471 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
14472 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
14473
14474 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
14475
14476 * coding.c (ENCODE_DESIGNATION, decode_eol)
14477 (make_conversion_work_buffer, code_conversion_restore)
14478 (Fdefine_coding_system_internal): Convert Lisp types.
14479 (code_conversion_restore): Use EQ, not ==.
14480 (Fencode_coding_string): Fix code_convert_string call.
14481
14482 * coding.h (code_convert_region): Fix prototype.
14483
14484 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
14485
14486 * fontset.c (fontset_ref, fontset_set, fs_load_font)
14487 (Ffontset_info): Convert Lisp types.
14488
14489 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
14490
14491 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
14492
14493 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
14494
14495 * chartab.c: Include "...h", not <...h> in some cases.
14496
14497 * callproc.c (Fcall_process): Remove unused variables.
14498
14499 2008-02-01 Dave Love <fx@gnu.org>
14500
14501 * coding.c (Fset_coding_system_priority): Allow null arg list.
14502
14503 2008-02-01 Dave Love <fx@gnu.org>
14504
14505 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
14506 (Fself_insert_and_exit): Use CHARACTERP.
14507
14508 * callproc.c (Fcall_process): Remove unused vars.
14509
14510 * xterm.c (XTread_socket): Add extra dead keysyms.
14511
14512 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
14513
14514 * dispextern.h: Remove prototypes for redraw_frame,
14515 redraw_garbaged_frames.
14516
14517 * cmds.c (Fself_insert_command): Use CHARACTERP.
14518
14519 * chartab.c (make_sub_char_table): Remove unused var.
14520 (Fset_char_table_default, Fmap_char_table): Doc fix.
14521
14522 * keymap.c (access_keymap): Remove generic char code.
14523 (push_key_description): Use CHARACTERP.
14524
14525 2008-02-01 Dave Love <fx@gnu.org>
14526
14527 * charset.c: Doc fixes.
14528 (Funify_charset): Extra checking.
14529
14530 2008-02-01 Dave Love <fx@gnu.org>
14531
14532 * lread.c: Remove some unused variables.
14533 (safe_to_load_p): If safe, return the magic number version byte.
14534 (Fload): Maybe use load-with-code-conversion.
14535
14536 2008-02-01 Kenichi Handa <handa@m17n.org>
14537
14538 * category.c (Fmodify_category_entry): Don't modify the contents
14539 of category_set for characters out of the range. Avoid
14540 unnecessary modification.
14541
14542 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
14543 Vchar_unify_table. The default value of the table is now nil.
14544
14545 * character.c (syms_of_character): Setup Vchar_width_table for
14546 eight-bit-control and raw-byte chars.
14547
14548 * charset.h (enum define_charset_arg_index): Delete
14549 charset_arg_parents and add charset_arg_subset and
14550 charset_arg_superset.
14551 (enum charset_attr_index): Delete charset_parents and add
14552 charset_subset and charset_superset.
14553 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
14554 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
14555 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
14556 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
14557 (CHARSET_SUPERSET): New macros.
14558 (charset_work): Extern it.
14559 (ENCODE_CHAR): Use charset_work.
14560 (CHAR_CHARSET_P): Adjust for the change of encoder format.
14561 (map_charset_chars): Extern it.
14562
14563 * charset.c (load_charset_map): Set the default value of encoder
14564 and deunifier char-tables to nil.
14565 (map_charset_chars): Change argument. Change callers. Use
14566 map_char_table_for_charset instead of map_char_table.
14567 (Fmap_charset_chars): New optional args from_code and to_code.
14568 (Fdefine_charset_internal): Adjust for the change of
14569 `define-charset' (:parents -> :subset or :superset).
14570 (charset_work): New variable.
14571 (encode_char, syms_of_charset): Adjust for the change of
14572 Fdefine_charset_internal.
14573 (Ffind_charset_string): Setup the vector `charsets' correctly.
14574
14575 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
14576 the previous change.
14577 (char_table_ref_and_range): Adjust for the above change.
14578 (map_sub_char_table_for_charset): New function.
14579 (map_char_table_for_charset): New function.
14580
14581 * keymap.c (describe_vector): Handle a char-table directly here.
14582 (describe_char_table): Delete.
14583
14584 * lisp.h (map_charset_chars): Delete.
14585
14586 2008-02-01 Dave Love <fx@gnu.org>
14587
14588 * fns.c (count_combining): Comment out (unused).
14589 (Flocale_codeset): New.
14590 (syms_of_fns): Defsubr it.
14591
14592 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
14593 (size_t): Remove.
14594
14595 2008-02-01 Dave Love <fx@gnu.org>
14596
14597 * Makefile.in (chartab.o): Depend on charset.h.
14598
14599 2008-02-01 Kenichi Handa <handa@m17n.org>
14600
14601 * character.c (syms_of_character): Set the default value of
14602 Vprintable_chars to Qnil.
14603
14604 2008-02-01 Dave Love <fx@gnu.org>
14605
14606 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
14607
14608 2008-02-01 Kenichi Handa <handa@m17n.org>
14609
14610 * charset.c (load_charset_map): Handle the case that from < to
14611 correctly.
14612
14613 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
14614 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
14615 Pay attention to raw-8-bit chars.
14616
14617 2008-02-01 Kenichi Handa <handa@m17n.org>
14618
14619 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
14620 It is not bytecompiled now.
14621
14622 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
14623 (charset_jisx0208): New variables.
14624 (Fdefine_charset_internal): Setup them if appropriate.
14625 (init_charset_once): Initialize them to -1.
14626
14627 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
14628 (charset_jisx0208): Extern them.
14629
14630 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
14631 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
14632 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
14633 (setup_iso_safe_charsets): Fix arguments to Fassq.
14634 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
14635 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
14636 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
14637 (encode_coding_iso_2022): Change the 1st arg to
14638 ENCODE_ISO_CHARACTER to a variable.
14639
14640 2008-02-01 Kenichi Handa <handa@m17n.org>
14641
14642 * charset.h (enum define_charset_arg_index): New enums
14643 charset_arg_min_code and charset_arg_max_code.
14644 (struct charset): New member char_index_offset.
14645
14646 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
14647 Take charset->char_index_offset into account.
14648 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
14649 args[charset_arg_max_code]. Setup charset.char_index_offset.
14650 (syms_of_charset): Fix args to Fdefine_charset_internal.
14651
14652 2008-02-01 Dave Love <fx@gnu.org>
14653
14654 * coding.c (decode_coding_utf_8): Reject overlong sequences.
14655
14656 2008-02-01 Dave Love <fx@gnu.org>
14657
14658 * coding.c: Doc fixes.
14659 (Fcoding_system_aliases): Fix return value.
14660 (Qmac): Remove (duplicated) definition.
14661
14662 2008-02-01 Dave Love <fx@gnu.org>
14663
14664 * charset.c (Fcharset_priority_list, Fset_charset_priority): New
14665 functions.
14666
14667 * character.c (Fstring): Doc fix.
14668
14669 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
14670
14671 * fontset.c (Ffontset_info): Doc fix. Return charset names, not
14672 ids.
14673 (font-encoding-alist): Doc fix.
14674
14675 2008-02-01 Dave Love <fx@gnu.org>
14676
14677 * term.c (costs_set): Declare static, non-initialized for pcc.
14678 (encode_terminal_code): Remove unused var.
14679
14680 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
14681 for K&R.
14682
14683 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
14684
14685 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
14686 (suffixes): Move out of make_subsidiaries for K&R.
14687
14688 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
14689
14690 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
14691
14692 2008-02-01 Dave Love <fx@gnu.org>
14693
14694 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
14695
14696 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
14697
14698 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
14699
14700 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
14701
14702 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
14703
14704 2008-02-01 Kenichi Handa <handa@m17n.org>
14705
14706 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
14707 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
14708
14709 2008-02-01 Kenichi Handa <handa@m17n.org>
14710
14711 * coding.c (decode_coding_charset): Adjust for the change of
14712 Fdefine_coding_system_internal.
14713 (Fdefine_coding_system_internal): For a coding system of
14714 `charset' type, store a list of charset IDs in
14715 `charset_attr_charset_valids' element of coding attributes.
14716
14717 2008-02-01 Kenichi Handa <handa@m17n.org>
14718
14719 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
14720 (emacs_mule_char): New arg src. Delete arg `composition'. Change
14721 caller. Handle 2-byte and 3-byte charsets correctly.
14722 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
14723 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
14724 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
14725 (DECODE_EMACS_MULE_21_COMPOSITION): Call
14726 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
14727 sequence.
14728 (decode_coding_emacs_mule): Handle composition correctly. Rewind
14729 `src' and `consumed_chars' correctly before calling emacs_mule_char.
14730 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
14731 and alt&rule composition.
14732 (decode_coding_iso_2022): Handle composition correctly.
14733 (init_coding_once): Setup emacs_mule_bytes for private charsets.
14734
14735 * charset.c (Fdefine_charset_internal): Fix bug for the case of
14736 re-defining a charset. If the charset has :emacs-mule-id, setup
14737 emacs_mule_bytes.
14738 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
14739
14740 2008-02-01 Kenichi Handa <handa@m17n.org>
14741
14742 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
14743 (encode_coding_big5, encode_coding_charset): If coding requires safe
14744 encoding, produce a character specified by
14745 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
14746
14747 2008-02-01 Dave Love <fx@gnu.org>
14748
14749 * xterm.c (XSetIMValues): Declare.
14750
14751 * process.c: Conditionally include sys/wait.h, pty.h.
14752
14753 * print.c (print_object): Fix print format for 64-bit systems.
14754
14755 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
14756
14757 * buffer.c (emacs_strerror): Declare.
14758
14759 * fontset.c (Fclear_face_cache): Declare.
14760 (accumulate_font_info): Comment-out (unused).
14761 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
14762 variables.
14763
14764 * character.h (string_escape_byte8): Declare.
14765
14766 * charset.c (load_charset_map, load_charset_map_from_file): Remove
14767 unused vars.
14768 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
14769 (Fmap_charset_chars): Doc fix.
14770
14771 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
14772 (Fset_coding_system_priority, Fset_coding_system_priority)
14773 (Fdefine_coding_system_internal): Doc fix.
14774
14775 2008-02-01 Dave Love <fx@gnu.org>
14776
14777 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
14778
14779 2008-02-01 Kenichi Handa <handa@m17n.org>
14780
14781 * character.c (string_escape_byte8): Make multibyte string with
14782 correct size.
14783
14784 * charset.c (Fmake_char): Delete unnecessary code.
14785
14786 2008-02-01 Kenichi Handa <handa@m17n.org>
14787
14788 * xfns.c (x_encode_text): Allocate coding.destination here, and
14789 call encode_coding_object with dst_object Qnil.
14790
14791 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
14792 multibyte form correctly.
14793
14794 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
14795 against Vfont_encoding_alist.
14796
14797 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
14798 handling of charset list.
14799 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
14800 (decode_coding_object): Move point to coding->dst_pos before
14801 calling post-read-conversion function.
14802 (encode_coding_object): Give correct arguments to
14803 pre-write-conversion. Ignore the return value of
14804 pre-write-conversion function. Pay attention to the case that
14805 pre-write-conversion changes the current buffer. If dst_object is
14806 Qt, even if coding->src_bytes is zero, allocate at least one byte
14807 to coding->destination.
14808
14809 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
14810
14811 * charset.c (Fmake_char): Make it more backward compatible.
14812 (Fmap_charset_chars): Fix docstring.
14813
14814 2008-02-01 Dave Love <fx@gnu.org>
14815
14816 * coding.c: Doc fixes.
14817 (Fdefine_coding_system_alias): Use names, not symbols, in
14818 coding-system-alist.
14819
14820 2008-02-01 Kenichi Handa <handa@m17n.org>
14821
14822 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
14823 of calling free_realized_face.
14824
14825 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
14826
14827 * charset.c (read_hex): Don't treat SPC as a comment starter.
14828 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
14829 (Fdecode_char): Fix typo.
14830
14831 2008-02-01 Kenichi Handa <handa@m17n.org>
14832
14833 * charset.h (struct charset): New member `code_space_mask'.
14834
14835 * coding.c (coding_set_source): Delete the local variable beg_byte.
14836 (encode_coding_charset, Fdefine_coding_system_internal):
14837 Delete the local variable charset.
14838 (Fdefine_coding_system_internal): Setup
14839 attrs[coding_attr_charset_valids] correctly.
14840
14841 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
14842 member to check if CODE is valid or not.
14843 (Fdefine_charset_internal): Initialize `code_space_mask' member.
14844 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
14845 is within the range of charset->min_code and carset->max_code.
14846
14847 2008-02-01 Dave Love <fx@gnu.org>
14848
14849 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
14850
14851 * dispextern.h (generate_ascii_font): Fix return type.
14852
14853 * xfaces.c (generate_ascii_font): Fix arg declaration.
14854
14855 * coding.c (coding_inherit_eol_type)
14856 (Fset_terminal_coding_system_internal)
14857 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
14858
14859 2008-02-01 Kenichi Handa <handa@m17n.org>
14860
14861 * coding.c (decode_coding_charset, encode_coding_charset): Handle
14862 multiple charsets correctly.
14863
14864 2008-02-01 Kenichi Handa <handa@m17n.org>
14865
14866 * search.c (boyer_moore): Fix handling of multibyte character
14867 translation.
14868
14869 * xdisp.c (display_mode_element): When the variable `elt' is
14870 changed, update `this' and `lisp_string'.
14871
14872 2008-02-01 Kenichi Handa <handa@m17n.org>
14873
14874 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
14875
14876 * callproc.c (Fcall_process): Be sure to give the current buffer
14877 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
14878
14879 * charset.c (struct charset_map_entries): New struct.
14880 (load_charset_map): Rename from parse_charset_map. New args
14881 entries and n_entries. Change caller.
14882 (load_charset_map_from_file): Rename from load_charset_map.
14883 Change caller. New arg control_flag. Call load_charset_map at
14884 the tail.
14885 (load_charset_map_from_vector): New function.
14886 (Fdefine_charset_internal): Setup charset.compact_codes_p.
14887 (encode_char): If the charset is compact, change a character index
14888 to a code point.
14889
14890 * coding.c (coding_alloc_by_making_gap): Check the case that the
14891 source and destination are the same correctly.
14892 (decode_coding_raw_text): Set coding->consumed_char and
14893 coding->consumed to 0.
14894 (produce_chars): If coding->chars_at_source is nonzero, update
14895 coding->consumed_char and coding->consumed before calling
14896 alloc_destination.
14897 (Fdefine_coding_system_alias): Register ALIAS in
14898 Vcoding_system_alist.
14899 (syms_of_coding): Define `no-conversion' coding system at the tail.
14900
14901 * fileio.c (Finsert_file_contents): Set coding_system instead of
14902 val. If the current buffer is multibyte, always call
14903 decode_coding_gap.
14904
14905 * xfaces.c (try_font_list): Give higher priority to fontset's
14906 family than face's family.
14907
14908 2008-02-01 Kenichi Handa <handa@m17n.org>
14909
14910 * callproc.c (Fcall_process): Be sure to give the current buffer
14911 to decode_coding_c_string.
14912
14913 * xfaces.c (try_font_list): Give a family specified in a fontset
14914 higher priority than a family specified in a face.
14915
14916 2008-02-01 Kenichi Handa <handa@m17n.org>
14917
14918 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
14919 Fix arguments to insert_from_buffer.
14920
14921 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
14922
14923 2008-02-01 Kenichi Handa <handa@m17n.org>
14924
14925 * coding.c (produce_chars): Set the variable `multibytep' correctly.
14926 (decode_coding_gap): Set coding->dst_multibyte correctly.
14927
14928 2008-02-01 Kenichi Handa <handa@m17n.org>
14929
14930 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
14931 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
14932 (encode_coding_utf_16): Substitute coding->default_char for
14933 non-Unicode characters.
14934 (decode_coding): Don't call record_insert here.
14935 (setup_coding_system): Initialize `surrogate' of
14936 coding->spec.utf_16 to 0.
14937 (EMIT_ONE_BYTE): Fix for multibyte case.
14938
14939 * insdel.c (insert_from_gap): Call record_insert.
14940
14941 2008-02-01 Kenichi Handa <handa@m17n.org>
14942
14943 * casefiddle.c (casify_region): Fix multibyte case.
14944
14945 * character.c (c_string_width): Add return type `int'.
14946 (char_string_with_unification): Delete arg ADVANCED.
14947
14948 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
14949 (CHAR_STRING): Adjust for the change of char_string_with_unification.
14950 (CHAR_STRING_ADVANCE): Make it do-while statement.
14951
14952 * chartab.c (sub_char_table_set_range): Optimize for the case
14953 DEPTH == 3. Add workaround code for a GCC optimization bug.
14954
14955 * charset.c (parse_charset_map): Remove an unused variable.
14956
14957 * coding.c: Delete unused variables.
14958
14959 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
14960 earlier. If inserted is zero and the coding system doesn't
14961 require flushing, don't call decode_coding_gap.
14962
14963 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
14964
14965 2008-02-01 Kenichi Handa <handa@m17n.org>
14966
14967 The following changes are for using Unicode as an internal
14968 character model, and use UTF-8 format for buffer/string
14969 representation.
14970
14971 * .gdbinit (xchartable): Adjust for the change of char table structure.
14972 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
14973
14974 * Makefile.in (obj): Add character.o and chartab.o.
14975 (lisp, shortlisp): Remove utf-8.elc.
14976 (*.o): For many files, change dependency on charset.h to
14977 character.h, and add dependency on character.h.
14978 (character.o, chartab.o): New targets.
14979
14980 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
14981 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
14982 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
14983 of "charset.h".
14984
14985 * dired.c, filelock.c: Include "character.h".
14986
14987 * alloc.c: Include "character.h" instead of "charset.h".
14988 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
14989 (syms_of_alloc): Remove defsubr for Smake_char_table.
14990
14991 * buffer.c: Include "character.h" instead of "charset.h", don't
14992 include "coding.h".
14993 (Fset_buffer_multibyte): Adjust for UTF-8.
14994
14995 * buffer.h: EXFUN Fbuffer_live_p.
14996
14997 * callproc.c: Include "character.h" instead of "charset.h".
14998 (Fcall_process): Big change for the new code-conversion APIs.
14999
15000 * casetab.c: Include "character.h" instead of "charset.h".
15001 (set_canon, set_identity, shuffle): Adjust for the new
15002 map_char_table spec.
15003 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
15004 accessing the char table structure.
15005
15006 * chartab.c: New file that implements char table.
15007
15008 * category.c: Include "character.h".
15009 (copy_category_entry): New function.
15010 (copy_category_table): Call map_char_table and copy_category_entry.
15011 (Fmake_category_table): Initialize all top-level slots.
15012 (char_category_set): New function.
15013 (modify_lower_category_set): Delete.
15014 (Fmodify_category_entry): Call char_table_ref_and_range.
15015
15016 * category.h (CATEGORY_SET): Just call char_category_set.
15017
15018 * ccl.c: Include "character.h".
15019 (Qccl, Qcclp): New variables.
15020 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
15021 it's less than 256.
15022 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
15023 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
15024 and DST type.
15025 (ccl_driver): Change types of argument, adjust code accordingly.
15026 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
15027 ccl_driver.
15028 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
15029
15030 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
15031 New members src_multibyte, dst_multibyte, consumed, and produced.
15032 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
15033 (CODING_SPEC_CCL_PROGRAM): New macro.
15034 (ccl_driver): Update prototype.
15035 (Qccl, Qcclp, Fccl_program_p): Extern them.
15036 (CHECK_CCL_PROGRAM): New macro.
15037
15038 * character.c, character.h, chartab.c: New files.
15039
15040 * charset.c: Mostly re-written. Move character and multibyte sequence
15041 handling codes to character.c.
15042
15043 * charset.h: Mostly re-written. Move character and multibyte sequence
15044 handling codes to character.h.
15045
15046 * coding.c, coding.h: Mostly re-written.
15047
15048 * composite.c: Include "character.h" instead of "charset.h".
15049 (CHAR_WIDTH): Move to character.h.
15050 (HASH_KEY, HASH_VALUE): Delete.
15051
15052 * composite.h (enum composition_method): Change order of enumeration
15053 symbols.
15054
15055 * data.c: Include "character.h" instead of "charset.h".
15056 (Faref): Call CHAR_TABLE_REF for a char table.
15057 (Faset): Call CHAR_TABLE_SET for a char table.
15058
15059 * dispextern.h (free_realized_face, check_face_attribytes)
15060 (generate_ascii_font): Extern them.
15061 (free_realized_multibyte_face): Delete extern.
15062
15063 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
15064 table structure.
15065
15066 * editfns.c: Include "character.h" instead of "charset.h".
15067 (Fchar_to_string): Always call CHAR_STRING.
15068
15069 * emacs.c (main): Call init_charset_once, init_charset,
15070 syms_of_chartab, and syms_of_character.
15071
15072 * fileio.c: Include "character.h" instead of "charset.h".
15073 (Finsert_file_contents): Big change for the new code-conversion API.
15074 (choose_write_coding_system, Fwrite_region): Likewise.
15075 (build_annotations_2): Delete.
15076 (e_write): Big change for the new code-conversion API.
15077
15078 * fns.c: Include "character.h" instead of "charset.h".
15079 (copy_sub_char_table): Move to chartab.c.
15080 (Fcopy_sequence): Call copy_char_table for a char table.
15081 (concat): Delete codes calling count_multibyte.
15082 (string_char_to_byte, string_byte_to_char): Adjust for the new
15083 multibyte form.
15084 (internal_equal): Adjust for the change of char table structure.
15085 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
15086 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
15087 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
15088 (char_table_translate, optimize_sub_char_table)
15089 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
15090 chartab.c.
15091 (char_table_ref_and_index): Delete.
15092 (HASH_KEY, HASH_VALUE): Move to lisp.h.
15093 (Fmd5): Call preferred_coding_system instead of accessing
15094 Vcoding_category_list. Adjust for the new code-conversion API.
15095 (syms_of_fns): Move defsubr for char table related functions to
15096 chartab.c.
15097
15098 * fontset.c: Mostly re-written.
15099
15100 * fontset.h (struct font_info): Change type of the member encoding_type.
15101 (enum FONT_SPEC_INDEX): New enum.
15102 (fontset_font_pattern, fs_load_font): Update prototype.
15103 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
15104
15105 * indent.c: Include "character.h" instead of "charset.h".
15106 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
15107
15108 * insdel.c: Include "character.h" instead of "charset.h".
15109 (copy_text): Don't refer to Vnonascii_translation_table.
15110 (insert_from_gap): New function.
15111
15112 * keyboard.c: Include "character.h" instead of "charset.h".
15113 (command_loop_1): Never call direct_output_forward_char before
15114 a non-ASCII character.
15115 (read_char): If Vkeyboard_translate_table is a char table, always
15116 translate a character.
15117
15118 * keymap.c: Include "character.h".
15119 (store_in_keymap): Handle the case that IDX is a cons.
15120 (Fdefine_key): Handle the case that KEY is a cons and the car part
15121 is also a cons (range).
15122 (push_key_description): Adjust for the new character code.
15123 (describe_vector): Call describe_char_table for a char table.
15124 (describe_char_table): New function.
15125
15126 * keymap.h (describe_char_table): Extern it.
15127
15128 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
15129 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
15130 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
15131 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
15132 Delete.
15133 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
15134 structure.
15135 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
15136 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
15137 (CHARTAB_SIZE_BITS_3): New macros.
15138 (chartab_size): Extern it.
15139 (struct Lisp_Char_Table): Re-design.
15140 (struct Lisp_Sub_Char_Table): New structure.
15141 (HASH_KEY, HASH_VALUE): Move from fns.c.
15142 (CHARACTERBITS): Define as 22.
15143 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
15144 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
15145 (GC_SUB_CHAR_TABLE_P): New macro.
15146 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
15147 (code_convert_string_norecord): Deleted extern.
15148 (init_character_once, syms_of_character, init_charset)
15149 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
15150
15151 * lread.c: Include "character.h".
15152 (read_multibyte): New arg NBYTES.
15153 (read_escape): Change the meaning of returned *BYTEREP.
15154 (to_multibyte): Delete.
15155 (read1): Adjust the handling of char table and string.
15156
15157 * print.c: Include "character.h" instead of "charset.h".
15158 (print_string): Convert 8-bit raw bytes to octal form by
15159 string_escape_byte8.
15160 (print_object): Adjust for the new multibyte form. Print 8-bit
15161 raw bytes always in octal form. Handle sub char table correctly.
15162
15163 * process.c: Include "character.h" instead of "charset.h".
15164 (read_process_output, send_process): Adjust for the new
15165 code-conversion API.
15166
15167 * puresize.h (BASE_PURESIZE): Increase.
15168
15169 * regex.c: Include "character.h" instead of "charset.h".
15170 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
15171 (regex_compile): Accept a range whose starting and ending
15172 character have different leading bytes.
15173 (analyse_first): Adjust for the above change.
15174
15175 * search.c: Include "character.h" instead of "charset.h".
15176 (search_buffer, boyer_moore): Adjust for the new multibyte form.
15177 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
15178
15179 * syntax.c: Include "character.h" instead of "charset.h".
15180 (syntax_parent_lookup): Delete.
15181 (Fmodify_syntax_entry): Accept a cons as CHAR.
15182 (skip_chars): Adjust for the new multibyte form.
15183 (init_syntax_once): Call char_table_set_range instead of directly
15184 accessing the structure of a char table.
15185
15186 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
15187 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
15188 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
15189 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
15190
15191 * term.c: Include "buffer.h" and "character.h".
15192 (encode_terminal_code, write_glyphs): Adjust for the new
15193 code-conversion API.
15194 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
15195
15196 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
15197
15198 * xdisp.c: Include "character.h".
15199 (get_next_display_element): Adjust for the new multibyte form.
15200 (disp_char_vector): Adjust for the new char table structure.
15201 (decode_mode_spec_coding): Adjust for the new structure of
15202 coding system.
15203 (decode_mode_spec): Adjust for the new code-conversion API.
15204
15205 * xfaces.c: Include "character.h" instead of "charset.h".
15206 (load_face_font): Adjust for the change of choose_face_font and
15207 FS_LOAD_FONT.
15208 (generate_ascii_font): New function.
15209 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
15210 (set_font_frame_param): Adjust for the change of choose_face_font.
15211 (free_realized_face): Make it public.
15212 (free_realized_faces_for_fontset): Rename from
15213 free_realized_multibyte_face. Free also faces realized for ASCII.
15214 (choose_face_font): Change arguments. Adjust for the change of
15215 fontset_font_pattern and FS_LOAD_FONT.
15216
15217 * xfns.c: Include "character.h".
15218 (x_encode_text): Adjust for the new code-conversion API.
15219
15220 * xselect.c: Don't include "charset.h".
15221 (selection_data_to_lisp_data): Adjust for the new code conversion API.
15222
15223 * xterm.c: Include "character.h".
15224 (x_encode_char): New argument CHARSET. Change caller.
15225 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
15226 Call ENCODE_CHAR instead of SPLIT_CHAR.
15227 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
15228 CHAR_WIDTH instead of CHARSET_WIDTH.
15229 (XTread_socket): Adjust for the new code-conversion API.
15230 (x_new_font): Adjust for the change of FS_LOAD_FONT.
15231 (x_load_font): Adjust for the change of struct font.
15232
15233 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
15234
15235 * xfaces.c (face_at_buffer_position): Remove unused vars.
15236
15237 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15238
15239 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
15240 Fix overflow checking.
15241
15242 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15243
15244 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
15245 Cancel previous change.
15246
15247 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
15248
15249 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
15250 ccl->eight_bit_control. Fix check for buffer overflow.
15251 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
15252 (ccl_driver): Initialize extra_bytes to 0.
15253
15254 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
15255
15256 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
15257 return it ORed with ctrl_modifier.
15258
15259 2008-01-29 Miles Bader <miles@gnu.org>
15260
15261 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
15262
15263 2008-01-28 Jason Rumney <jasonr@gnu.org>
15264
15265 * w32.c (stat): Don't double check for networked drive.
15266
15267 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
15268
15269 * window.c (run_window_configuration_change_hook): New function.
15270 Code extracted from set_window_buffer. Set the selected frame.
15271 (set_window_buffer): Use it.
15272 * window.h (run_window_configuration_change_hook): Declare.
15273 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
15274
15275 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
15276
15277 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
15278
15279 * Makefile.in: Remove references to unused macros.
15280
15281 2008-01-26 Eli Zaretskii <eliz@gnu.org>
15282
15283 * w32.c (g_b_init_get_sid_sub_authority)
15284 (g_b_init_get_sid_sub_authority_count): New static variables.
15285 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
15286 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
15287 (init_user_info): Use them to retrieve uid and gid.
15288 Use 500/513, the Windows defaults, as Administrator's uid/gid.
15289 (fstat): Use pw_uid and pw_gid from the_passwd structure for
15290 st_uid and st_gid of the file.
15291
15292 2008-01-26 Jason Rumney <jasonr@gnu.org>
15293
15294 * w32.c (logon_network_drive): New function.
15295 (stat): Use it.
15296
15297 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
15298
15299 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
15300 invisible text covered with an ellipsis.
15301
15302 2008-01-25 Richard Stallman <rms@gnu.org>
15303
15304 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
15305 jump back to beginning. Move some other initializations after that.
15306 (Qwindow_text_change_functions, Vwindow_text_change_functions):
15307 New variables.
15308 (syms_of_xdisp): Init them.
15309
15310 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
15311
15312 * buffer.c (reset_buffer_local_variables):
15313 Implement `permanent-local-hook'.
15314 (Qpermanent_local_hook): New variable.
15315 (syms_of_buffer): Init and staticpro it.
15316
15317 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
15318
15319 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
15320
15321 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
15322
15323 * fns.c (Fclrhash): Return TABLE.
15324
15325 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15326
15327 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
15328 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
15329 is set even without positional changes.
15330 (x_scroll_bar_clear): Set bar->redraw_needed_p.
15331
15332 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
15333
15334 2008-01-23 Jason Rumney <jasonr@gnu.org>
15335
15336 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
15337
15338 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
15339 the unicode range available in MULE by locale-coding-system.
15340 Improve dbcs lead byte detection. Set event timestamp and modifiers
15341 earlier.
15342
15343 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15344
15345 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
15346 [MAC_OSX] (init_mac_osx_environment): Initialize it.
15347 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
15348 when used on child processes.
15349
15350 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
15351
15352 * dbusbind.c (Fdbus_method_return_internal): Rename from
15353 Fdbus_method_return.
15354 (Fdbus_unregister_object): Move to dbus.el.
15355 (Fdbus_call_method, Fdbus_method_return_internal)
15356 (Fdbus_send_signal): Improve debug messages.
15357
15358 2008-01-20 Martin Rudalics <rudalics@gmx.at>
15359
15360 * undo.c (undo_inhibit_record_point): New variable.
15361 (syms_of_undo): Initialize it.
15362 (record_point): Don't record point when undo_inhibit_record_point
15363 is set.
15364
15365 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
15366
15367 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
15368
15369 * xdisp.c (Qauto_hscroll_mode): New var.
15370 (syms_of_xdisp): Initialize it.
15371 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
15372 window's buffer.
15373 (hscroll_windows): Don't check automatic_hscrolling_p here.
15374
15375 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
15376 vscroll if we're setting window-buffer to the value it already has.
15377
15378 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
15379
15380 * m/intel386.h: Remove references to XENIX.
15381
15382 2008-01-17 Andreas Schwab <schwab@suse.de>
15383
15384 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
15385 instead of HAVE_X86_64_LIB64_DIR.
15386 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
15387
15388 2008-01-17 Glenn Morris <rgm@gnu.org>
15389
15390 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
15391 to HAVE_X86_64_LIB64_DIR.
15392
15393 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
15394
15395 * s/irix3-3.h:
15396 * s/irix4-0.h:
15397 * s/386-ix.h:
15398 * s/domain.h:
15399 * s/hpux9-x11r4.h:
15400 * s/hpux9shxr4.h: Remove files for systems no longer supported.
15401
15402 * sysdep.c: Remove code containing references to symbols defined
15403 by unsupported systems.
15404
15405 2008-01-16 Glenn Morris <rgm@gnu.org>
15406
15407 * coding.c (select-safe-coding-system-function): Doc fix.
15408
15409 2008-01-15 Glenn Morris <rgm@gnu.org>
15410
15411 * config.in: Revert 2008-01-13 change: this is a generated file.
15412
15413 2008-01-13 Tom Tromey <tromey@redhat.com>
15414
15415 * lisp.h: Fix typo.
15416
15417 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
15418
15419 * m/sequent-ptx.h:
15420 * m/sequent.h:
15421 * s/ptx.h:
15422 * s/ptx4-2.h:
15423 * s/ptx4.h: Remove files for systems no longer supported.
15424
15425 * callproc.c (Fcall_process): Fix previous change.
15426
15427 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
15428
15429 * unexsunos4.c: Remove file, system not supported anymore.
15430
15431 * m/mips.h:
15432 * m/intel386.h:
15433 * callproc.c:
15434 * config.in:
15435 * ecrt0.c:
15436 * emacs.c:
15437 * fileio.c:
15438 * frame.c:
15439 * getpagesize.h:
15440 * keyboard.c:
15441 * lread.c:
15442 * process.c:
15443 * puresize.h:
15444 * sysdep.c:
15445 * systty.h:
15446 * syswait.h:
15447 * unexec.c:
15448 * xdisp.c:
15449 * alloc.c: Remove code containing references to symbols defined by
15450 unsupported systems.
15451
15452 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
15453
15454 * coding.c (detect_coding_mask): Fix previous change.
15455
15456 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
15457
15458 * coding.c (detect_coding_iso2022): New arg
15459 latin_extra_code_state. Allow Latin extra codes only
15460 when *latin_extra_code_state is nonzero.
15461 (detect_coding_mask): If there is a NULL byte, detect the encoding
15462 as UTF-16 or binary. If Latin extra codes exist, detect the
15463 encoding as ISO-2022 only when there's no other proper encoding is
15464 found.
15465
15466 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15467
15468 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
15469 #ifdef MAC_OS.
15470
15471 2008-01-08 Richard Stallman <rms@gnu.org>
15472
15473 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
15474
15475 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
15476
15477 * keyboard.c (parse_menu_item): Don't enclose key bindings on
15478 menu bar in parentheses.
15479
15480 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
15481
15482 * m/7300.h:
15483 * m/acorn.h:
15484 * m/alliant-2800.h:
15485 * m/alliant.h:
15486 * m/alliant1.h:
15487 * m/alliant4.h:
15488 * m/altos.h:
15489 * m/amdahl.h:
15490 * m/apollo.h:
15491 * m/att3b.h:
15492 * m/aviion-intel.h:
15493 * m/aviion.h:
15494 * m/celerity.h:
15495 * m/clipper.h:
15496 * m/cnvrgnt.h:
15497 * m/convex.h:
15498 * m/cydra5.h:
15499 * m/delta88k.h:
15500 * m/dpx2.h:
15501 * m/dual.h:
15502 * m/elxsi.h:
15503 * m/f301.h:
15504 * m/gould-np1.h:
15505 * m/gould.h:
15506 * m/i860.h:
15507 * m/ibmps2-aix.h:
15508 * m/ibmrt-aix.h:
15509 * m/ibmrt.h:
15510 * m/irist.h:
15511 * m/is386.h:
15512 * m/isi-ov.h:
15513 * m/mega68.h:
15514 * m/mg1.h:
15515 * m/news-r6.h:
15516 * m/news-risc.h:
15517 * m/news.h:
15518 * m/nh3000.h:
15519 * m/nh4000.h:
15520 * m/ns16000.h:
15521 * m/ns32000.h:
15522 * m/nu.h:
15523 * m/orion.h:
15524 * m/orion105.h:
15525 * m/paragon.h:
15526 * m/pfa50.h:
15527 * m/plexus.h:
15528 * m/pyramid.h:
15529 * m/pyrmips.h:
15530 * m/sh3el.h:
15531 * m/sps7.h:
15532 * m/sr2k.h:
15533 * m/stride.h:
15534 * m/sun1.h:
15535 * m/sun2.h:
15536 * m/sun3-68881.h:
15537 * m/sun3-fpa.h:
15538 * m/sun3-soft.h:
15539 * m/sun3.h:
15540 * m/sun386.h:
15541 * m/symmetry.h:
15542 * m/tad68k.h:
15543 * m/tahoe.h:
15544 * m/targon31.h:
15545 * m/tek4300.h:
15546 * m/tekxd88.h:
15547 * m/tower32.h:
15548 * m/tower32v3.h:
15549 * m/ustation.h:
15550 * m/wicat.h:
15551 * m/xps100.h:
15552 * s/cxux.h:
15553 * s/cxux7.h:
15554 * s/dgux.h:
15555 * s/dgux4.h:
15556 * s/dgux5-4-3.h:
15557 * s/dgux5-4r2.h:
15558 * s/esix.h:
15559 * s/esix5r4.h:
15560 * s/hiuxmpp.h:
15561 * s/hiuxwe2.h:
15562 * s/iris3-5.h:
15563 * s/iris3-6.h:
15564 * s/isc2-2.h:
15565 * s/isc3-0.h:
15566 * s/isc4-0.h:
15567 * s/isc4-1.h:
15568 * s/newsos5.h:
15569 * s/newsos6.h:
15570 * s/osf1.h:
15571 * s/osf5-0.h:
15572 * s/riscix1-1.h:
15573 * s/riscix12.h:
15574 * s/sco4.h:
15575 * s/sco5.h:
15576 * s/sunos4-0.h:
15577 * s/sunos4-1.h:
15578 * s/sunos413.h:
15579 * s/sunos4shr.h:
15580 * s/umax.h:
15581 * s/unipl5-2.h:
15582 * s/xenix.h:
15583 * cxux-crt0.s:
15584 * unexapollo.c:
15585 * unexconvex.c:
15586 * unexenix.c:
15587 * unexsni.c: Remove files for systems no longer supported.
15588
15589 * m/intel386.h: Remove references to unsupported systems.
15590
15591 * w32.c (get_emacs_configuration): Remove reference to i860.
15592
15593 * sysdep.c: Remove dead code.
15594
15595 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
15596
15597 * s/rtu.h:
15598 * m/masscomp.h: Remove files. Platform is obsolete.
15599
15600 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
15601
15602 * dbusbind.c (Fdbus_method_return): New function.
15603 (xd_read_message): Add the serial number to the event.
15604 (Fdbus_register_method): Activate the function.
15605
15606 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
15607
15608 * keyboard.c (read_key_sequence): Fix typo.
15609
15610 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
15611
15612 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
15613 (xd_signature, xd_append_arg): Handle element type detection for
15614 empty arrays.
15615 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
15616 SDATA () calls; this must be solved more general.
15617 (Fdbus_register_signal): Use SBYTES instead of strlen.
15618
15619 2008-01-03 Magnus Henoch <magnus@zemdatav>
15620
15621 * dbusbind.c (xd_append_arg): Use unsigned char instead of
15622 unsigned int for byte values (necessary for big-endian platform).
15623 (Fdbus_call_method): Handle the case of no returned arguments.
15624
15625 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
15626
15627 * dbusbind.c (xd_read_message): Use non-static input_event struct.
15628
15629 2007-12-31 Magnus Henoch <mange@freemail.hu>
15630
15631 * dbusbind.c (xd_signature): Signature of variant is just "v".
15632
15633 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
15634
15635 * dbusbind.c: Fix several errors and compiler warnings.
15636 Reported by Tom Tromey <tromey@redhat.com>.
15637 (XD_ERROR, XD_DEBUG_MESSAGE)
15638 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
15639 (xd_append_arg): Part for basic D-Bus types rewritten.
15640 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
15641 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
15642 appropriate.
15643 (xd_read_message): Return Qnil. Don't signal an error; it is not
15644 useful during event reading.
15645 (Fdbus_register_signal): Signal an error if the check for
15646 FUNCTIONP fails.
15647 (Fdbus_register_method): New function. The implementation is not
15648 complete, the call of the function signals an error therefore.
15649 (Fdbus_unregister_object): New function, renamed from
15650 Fdbus_unregister_signal. The initial check signals an error, if
15651 the object is not well formed.
15652
15653 2007-12-30 Richard Stallman <rms@gnu.org>
15654
15655 * textprop.c (get_char_property_and_overlay):
15656 Signal error if POSITION is out of range in a buffer.
15657
15658 2007-12-29 Martin Rudalics <rudalics@gmx.at>
15659
15660 * w32fns.c (Fx_create_frame): Make copy of frame parameters
15661 because the original parameters are in pure storage now.
15662
15663 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15664
15665 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
15666
15667 2007-12-22 Eli Zaretskii <eliz@gnu.org>
15668
15669 * callint.c (syms_of_callint) <command-history>: Add reference to
15670 history-length in the doc string.
15671
15672 2007-12-17 Jason Rumney <jasonr@gnu.org>
15673
15674 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
15675 before passing as wParam.
15676
15677 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
15678
15679 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
15680 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
15681 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
15682 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
15683 as number.
15684 (Fdbus_call_method): Fix docstring.
15685
15686 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
15687
15688 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
15689 New macros.
15690 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
15691 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
15692 Simplify.
15693 (xd_signature): New function.
15694 (xd_append_arg): Compute also signatures. Major rewrite.
15695 (xd_retrieve_arg): Make debug messages friendly.
15696 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
15697 Check for signatures of arguments.
15698
15699 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
15700
15701 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
15702 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
15703 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
15704 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
15705 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
15706 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
15707 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
15708 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
15709 (xd_retrieve_value): Remove. Functionality included in ...
15710 (xd_append_arg): New function.
15711 (Fdbus_call_method, Fdbus_send_signal): Apply it.
15712
15713 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
15714
15715 * dbusbind.c (top): Include <stdio.h>.
15716 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
15717 dbus_message_new_method_call and dbus_message_new_signal.
15718 (Fdbus_register_signal): Rename unique_name to uname.
15719 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
15720 non-existing unique name. Fix typos in matching rule. Return an
15721 object which is useful in Fdbus_unregister_signal.
15722 (Fdbus_unregister_signal): Reimplementation, in order to remove
15723 only the corresponding entry.
15724 (Vdbus_registered_functions_table): Change the order of entries.
15725 Apply these changes in xd_read_message and Fdbus_register_signal.
15726
15727 2007-12-16 Andreas Schwab <schwab@suse.de>
15728
15729 * fileio.c (Finsert_file_contents): Fix overflow check to not
15730 depend on undefined integer overflow.
15731
15732 2007-12-14 Jason Rumney <jasonr@gnu.org>
15733
15734 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
15735 for characters above 127.
15736
15737 2007-12-13 Jason Rumney <jasonr@gnu.org>
15738
15739 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
15740 before dereferencing array.
15741 (lookup_vk_code): Remove zero comparison.
15742
15743 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
15744
15745 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
15746 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
15747 Use `unsigned int' instead of `uint'.
15748 (xd_read_message, Fdbus_register_signal): Split expressions into
15749 multiple lines before operators "&&" and "||", according to the
15750 GNU Coding Standards.
15751
15752 2007-12-14 Eli Zaretskii <eliz@gnu.org>
15753
15754 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
15755
15756 2007-12-12 Juri Linkov <juri@jurta.org>
15757
15758 * buffer.c (Frename_buffer): In interactive spec replace
15759 `read-buffer' with `read-string' that uses `buffer-name-history'
15760 as history, and the current buffer's name as default.
15761
15762 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
15763
15764 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
15765 manipulating the backtrace manually.
15766 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
15767 (struct backtrace, backtrace_list): Remove.
15768 (command_loop_1): Remove dead var `no_direct'.
15769
15770 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
15771 preserve non-built-in buffer-local variables.
15772 (Fkill_all_local_variables): Don't re-create&re-set permanent
15773 buffer-local variables.
15774
15775 2007-12-09 Juri Linkov <juri@jurta.org>
15776
15777 * buffer.c (Frename_buffer): Change interactive spec from "s" to
15778 Lisp code that uses `read-buffer' with current buffer as default.
15779
15780 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
15781
15782 * dbusbind.c (xd_read_message): Generate an event for every
15783 registered handler. There might be several handlers registered
15784 for the same signal.
15785 (Fdbus_register_signal): Don't overwrite a registration for the
15786 same signal. Add a new registration if handlers are different.
15787 (Vdbus_registered_functions_table): Rework doc string.
15788
15789 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
15790
15791 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
15792 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
15793 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
15794 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
15795 Unify argument lists.
15796 (xd_read_message, Fdbus_register_signal): Reorder and extend event
15797 arguments and hash table keys. Use unique name for service.
15798 (Fdbus_unregister_signal): Remove checks.
15799 (Vdbus_registered_functions_table): Fix doc string.
15800
15801 2007-12-05 Magnus Henoch <mange@freemail.hu>
15802
15803 * process.c (make_process): Initialize pty_flag to 0.
15804
15805 2007-12-05 Jason Rumney <jasonr@gnu.org>
15806
15807 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
15808 specified XBMs.
15809
15810 2007-12-05 Richard Stallman <rms@gnu.org>
15811
15812 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
15813
15814 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15815
15816 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
15817 New variable.
15818 (mac_try_close_socket) [MAC_OSX]: New function.
15819 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
15820 Update cfsockets_for_select. Replace invalid CFRunLoop source.
15821
15822 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
15823 Use mac_try_close_socket.
15824
15825 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15826
15827 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
15828 reloc_base.
15829 (copy_dysymtab): Compute relocation base here.
15830 (rebase_reloc_address) [__ppc64__]: New function.
15831 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
15832 changed.
15833
15834 2007-12-05 Jason Rumney <jasonr@gnu.org>
15835
15836 * w32proc.c (sys_spawnve): Quote args with wildcards.
15837
15838 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15839
15840 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
15841 __objc_* sections.
15842 (unrelocate) [_LP64]: Set relocation base to address of data segment.
15843
15844 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
15845
15846 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
15847 Move check for Vdbus_registered_functions_table to
15848 xd_read_queued_messages.
15849 (xd_read_queued_messages): Protect xd_read_message calls by
15850 internal_condition_case_1.
15851
15852 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
15853
15854 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
15855 Qdbus_system_bus and Qdbus_session_bus, respectively.
15856 (Vdbus_intern_symbols): Remove.
15857 (Vdbus_registered_functions_table): New hash table.
15858 (XD_SYMBOL_INTERN_SYMBOL): Remove.
15859 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
15860 Rewrite in order to manage registered functions by hash table
15861 Vdbus_registered_functions_table.
15862
15863 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
15864
15865 * xterm.c: Update URL to Window Manager Specification in comment.
15866
15867 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
15868
15869 * config.in (HAVE_DBUS): Add.
15870
15871 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
15872 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
15873 (obj): Add $(DBUS_OBJ).
15874 (LIBES): Add $(DBUS_LIBS).
15875 (dbusbind.o): New target.
15876
15877 * dbusbind.c: New file.
15878
15879 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
15880
15881 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
15882 (Qdbus_event): New Lisp symbol.
15883 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
15884 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
15885 (keys_of_keyboard): Define dbus-event.
15886
15887 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
15888
15889 2007-12-01 Richard Stallman <rms@gnu.org>
15890
15891 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
15892
15893 2007-11-30 Jason Rumney <jasonr@gnu.org>
15894
15895 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
15896 (w32con_reset_terminal_modes): Clear screen buffer.
15897 (w32_face_attributes): Don't use color indexes that are out of range.
15898 Only reverse the default colors.
15899
15900 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
15901 WINDOWSNT.
15902
15903 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
15904
15905 2007-11-29 Jason Rumney <jasonr@gnu.org>
15906
15907 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
15908 (w32_face_attributes): Use Vtty_defined_color_alist to determine
15909 if the terminal colors are initialized.
15910 (unspecified_fg, unspecified_bg): Remove unused declarations.
15911
15912 2007-11-29 Andreas Schwab <schwab@suse.de>
15913
15914 * keyboard.c (apply_modifiers): Fix typo.
15915
15916 2007-11-29 Richard Stallman <rms@gnu.org>
15917
15918 * keymap.c (Fcurrent_local_map): Doc fix.
15919
15920 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
15921
15922 * s/gnu-kfreebsd.h: New file.
15923
15924 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
15925
15926 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
15927 Don't cast redundantly.
15928
15929 * keyboard.c (KEY_TO_CHAR): New macro.
15930 (parse_modifiers, apply_modifiers): Accept integer arguments.
15931 (read_key_sequence): Use them to unify the "shift->unshift" mapping
15932 for chars and symbol keys.
15933 After doing such remapping, apply function-key-map again.
15934
15935 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
15936
15937 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
15938 compiled anymore.
15939
15940 2007-11-26 Andreas Schwab <schwab@suse.de>
15941
15942 * process.c (list_processes_1): Fix indentation level of the
15943 command column.
15944
15945 2007-11-23 Andreas Schwab <schwab@suse.de>
15946
15947 * editfns.c (Fformat): Handle %c specially since it requires the
15948 argument to be of type int.
15949
15950 2007-11-23 Markus Triska <markus.triska@gmx.at>
15951
15952 * emacs.c (main): Call init_editfns before init_process, since
15953 init_process sets Vprocess_connection_type depending on OS release.
15954
15955 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
15956
15957 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
15958 (find_symbol_value): Use do_symval_forwarding.
15959
15960 * data.c (set_internal): Set the value in the `cons-cell' (for
15961 Buffer_Local_values) not only for frame-local variables.
15962
15963 2007-11-22 Andreas Schwab <schwab@suse.de>
15964
15965 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
15966 values to sprintf.
15967 * keymap.c (Fsingle_key_description): Likewise.
15968 * print.c (print_object): Likewise.
15969
15970 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
15971
15972 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
15973 file for image is nil.
15974
15975 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
15976
15977 * term.c: Include stdarg.h.
15978 (fatal): Implement using varargs.
15979 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
15980
15981 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
15982
15983 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
15984 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
15985 Update call to buffer_slot_type_mismatch.
15986 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
15987 (buffer_slot_type_mismatch): Update.
15988 * buffer.c (buffer_local_types): Remove.
15989 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
15990 (defvar_per_buffer): Set the type in the buffer_objfwd.
15991
15992 2007-11-21 Jason Rumney <jasonr@gnu.org>
15993
15994 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
15995 CreateFileMapping returns NULL on failure.
15996
15997 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
15998
15999 * search.c (Fset_match_data): Remove the `evaporate' feature.
16000 (unwind_set_match_data): Don't use the `evaporate' feature.
16001
16002 2007-11-21 Jason Rumney <jasonr@gnu.org>
16003
16004 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
16005
16006 * w32console.c (w32con_write_glyphs): Remove unused variables.
16007
16008 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
16009
16010 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
16011
16012 * s/darwin.h (MULTI_KBOARD): Remove.
16013
16014 * macfns.c (x_create_tip_frame, Fx_create_frame)
16015 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
16016
16017 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
16018
16019 * buffer.c (Fbuffer_local_value): Remove redundant test.
16020 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
16021 than in `current-buffer' to match the comment.
16022 Do the swap using swap_in_global_binding.
16023
16024 * data.c (store_symval_forwarding, set_internal):
16025 * eval.c (specbind): Remove dead code.
16026
16027 * coding.c (detect_coding, Fupdate_coding_systems_internal):
16028 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
16029 Since we do not want to see internal Lisp_*fwd objects here.
16030
16031 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
16032
16033 * sysdep.c (init_system_name): Use getaddrinfo if available.
16034
16035 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
16036 (x_scroll_bar_note_movement): start, end, with, height in struct
16037 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
16038
16039 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
16040
16041 * puresize.h (BASE_PURESIZE): Increase to 1190000.
16042
16043 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
16044
16045 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
16046 This undoes Richard's change of 14-Oct-2002.
16047
16048 * alloc.c (allocate_other_vector):
16049 * lisp.h (allocate_other_vector): Remove.
16050
16051 * window.c (struct save_window_data): Move non-lisp data to the end
16052 and make it `int' rather than Lisp_Object.
16053 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
16054 Done wrap/unwrap integer values.
16055 (Fset_window_configuration, compare_window_configurations):
16056 Update use of fields to their new types.
16057
16058 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
16059 Turn integer fields into `int'. Merge x_window_low and x_window_high.
16060 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
16061 (SET_SCROLL_BAR_X_WINDOW): Remove.
16062 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
16063 Access the new x_window field directly.
16064 * xterm.c (x_scroll_bar_create): Use a pseudovector.
16065 Don't wrap/unwrap integers into Lisp_Objects.
16066 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
16067 (x_scroll_bar_report_motion):
16068 Don't wrap/unwrap integers into Lisp_Objects.
16069 (x_term_init): Use SDATA.
16070 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
16071 (x_scroll_bar_set_handle, x_scroll_bar_remove)
16072 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
16073 (x_scroll_bar_report_motion, x_scroll_bar_clear):
16074 * xfns.c (x_set_background_color):
16075 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
16076 Access the new x_window field directly.
16077
16078 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
16079 (allocate_pseudovector): Make non-static.
16080
16081 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
16082 (allocate_pseudovector): Declare.
16083 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
16084
16085 2007-11-15 Andreas Schwab <schwab@suse.de>
16086
16087 * editfns.c (Fformat): Correctly format EMACS_INT values.
16088 Also take precision into account when formatting an integer.
16089
16090 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
16091
16092 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
16093
16094 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
16095 (syms_of_keyboard): Defsubr it.
16096
16097 * data.c (swap_in_global_binding): Fix longstanding bug where
16098 store_symval_forwarding was not called with the right second argument,
16099 thus causing objfwd-ing from being dropped.
16100
16101 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
16102
16103 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
16104 (Fx_display_pixel_height, Fx_display_planes)
16105 (Fx_display_color_cells, Fx_server_max_request_size)
16106 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
16107 (Fx_display_visual_class, Fx_display_save_under):
16108 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
16109 (Fx_display_pixel_height, Fx_display_planes)
16110 (Fx_display_color_cells, Fx_server_max_request_size)
16111 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
16112 (Fx_display_mm_height, Fx_display_mm_width)
16113 (Fx_display_backing_store, Fx_display_visual_class)
16114 (Fw32_select_font, Fx_display_save_under):
16115 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
16116 (Fx_display_pixel_height, Fx_display_planes)
16117 (Fx_display_color_cells, Fx_server_max_request_size)
16118 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
16119 (Fx_display_save_under): Fix typos in docstrings.
16120
16121 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
16122
16123 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
16124 corresponding to deleted entries; they are an implementation detail.
16125 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
16126 Remove variables.
16127 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
16128 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
16129 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
16130 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
16131 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
16132 (Fw32_define_rgb_color, Fw32_load_color_file)
16133 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
16134 Fix typos in docstrings.
16135 (Fx_server_version): Reflow docstring.
16136 (Fw32_shell_execute): Doc fixes.
16137
16138 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
16139
16140 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
16141 if w32_parse_hot_key returned nil.
16142
16143 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
16144
16145 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
16146
16147 2007-11-09 Jason Rumney <jasonr@gnu.org>
16148
16149 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
16150
16151 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
16152
16153 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
16154 Remove W32_SCROLL_BAR_CLICK_EVENT.
16155
16156 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
16157 Add MULTIMEDIA_KEY_EVENT.
16158
16159 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
16160 (lispy_multimedia_keys) [WINDOWSNT]: New array.
16161 (make_lispy_event) [WINDOWSNT]: Use it to translate
16162 MULTIMEDIA_KEY_EVENT.
16163
16164 * w32term.h (WM_APPCOMMAND): Define if not already.
16165 (GET_APPCOMMAND_LPARAM): Likewise.
16166
16167 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
16168 WM_APPCOMMAND.
16169
16170 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
16171 (syms_of_w32fns): Export and initialize it.
16172 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
16173
16174 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
16175
16176 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
16177 twice.
16178
16179 * xdisp.c (handle_face_prop): Fix last change.
16180
16181 2007-11-09 Richard Stallman <rms@gnu.org>
16182
16183 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
16184 not just for after-strings and before-strings.
16185 Call face_for_overlay_string and pass the overlay to it.
16186 (handle_display_prop): Determine whether property came from an overlay.
16187 Pass OVERLAY arg to handle_single_display_spec.
16188 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
16189 (load_overlay_strings): Fill in it->string_overlays.
16190 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
16191
16192 * xfaces.c (face_for_overlay_string): Function renamed from
16193 face_at_buffer_position_no_overlays, and add arg OVERLAY.
16194
16195 * dispextern.h (struct it): New elt string_overlays.
16196 New elt from_overlay, also in stack.
16197 Rearrange a few elements.
16198 (face_for_overlay_string): Decl renamed from
16199 face_at_buffer_position_no_overlays, and add argument.
16200
16201 2007-11-09 Richard Stallman <rms@gnu.org>
16202
16203 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
16204 to get the base face for an overlay string.
16205
16206 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
16207
16208 * xfaces.c (face_at_buffer_position_no_overlays): New function.
16209
16210 * xdisp.c (handle_stop): Move some code out of loop.
16211
16212 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16213
16214 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
16215 Fix conversion from Lisp object to ATSUFontID.
16216
16217 2007-11-09 Jason Rumney <jasonr@gnu.org>
16218
16219 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
16220
16221 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16222
16223 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
16224 Don't assume regions are aligned to page boundary.
16225 (print_load_command_name): Add LC_UUID if defined.
16226
16227 2007-11-09 Richard Stallman <rms@gnu.org>
16228
16229 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
16230
16231 2007-11-07 Jason Rumney <jasonr@gnu.org>
16232
16233 * s/windows95.h: Remove.
16234
16235 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
16236
16237 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
16238 abort with a message on unhandled store_type values.
16239
16240 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
16241
16242 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
16243 Remove HAVE_X11R5 and HAVE_X11R4.
16244
16245 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
16246
16247 * Makefile.in: Remove references to sunfns.c and sunfns.o.
16248
16249 2007-11-01 Johan Bockgård <bojohan@gnu.org>
16250
16251 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
16252 Don't set s->stippled_p here, since it has already been set by
16253 x_set_glyph_string_gc from x_draw_glyph_string.
16254
16255 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
16256
16257 * sunfns.c: Remove file.
16258
16259 * m/sun386.h:
16260 * m/sun2.h:
16261 * m/sparc.h: Remove Sun windows code.
16262
16263 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
16264
16265 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
16266 (init_keyboard): Set current_kboard's window-system to nil.
16267 (tty_read_avail_input): Typo.
16268 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
16269
16270 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
16271
16272 * s/usg5-4.h:
16273 * s/usg5-3.h:
16274 * s/ptx.h:
16275 * m/is386.h:
16276 * m/ibmps2-aix.h:
16277 * Makefile.in: Remove all mentions of X10.
16278
16279 * dispnew.c (syms_of_display): Don't mention version 10.
16280
16281 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
16282
16283 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
16284 ($(BLD)/abbrev.$(O)): Remove.
16285
16286 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
16287
16288 Rewrite abbrev.c in Elisp.
16289 * image.c (Qcount): Don't declare as extern.
16290 (syms_of_image): Initialize and staticpro `Qcount'.
16291 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
16292 * emacs.c (main): Don't call syms_of_abbrev.
16293 * Makefile.in (obj): Remove abbrev.o.
16294 (abbrev.o): Remove.
16295 * abbrev.c: Remove.
16296
16297 2007-10-26 Martin Rudalics <rudalics@gmx.at>
16298
16299 * window.c (window_min_size_2): Don't count header-line.
16300
16301 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
16302
16303 * frame.h (struct frame): Move all bit fields after the first bit
16304 field to take advantage of the available space. Group all the
16305 chars together to reduce wasted space due to padding.
16306
16307 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
16308
16309 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
16310
16311 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
16312 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
16313 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
16314 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
16315 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
16316 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
16317 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
16318 (last_marked, mark_object_loop_halt): Make static.
16319
16320 * frame.c (syms_of_frame) <delete-frame-functions>:
16321 Fix typo in docstring.
16322
16323 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
16324
16325 * w32.c (init_environment): Fix tiny memory leak.
16326 (w32_get_resource): Remove unused variable `ok'.
16327
16328 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
16329
16330 Make `window-system' into a keyboard-local variable (rather than
16331 frame-local as done originally by multi-tty).
16332
16333 * keyboard.h (struct kboard): Add Vwindow_system.
16334 * keyboard.c (init_kboard): Set a default for Vwindow_system.
16335 (mark_kboards): Mark Vwindow_system.
16336
16337 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
16338 (init_display): Don't set the obsolete `window-system' frame-param.
16339
16340 * xterm.c (x_term_init):
16341 * w32term.c (w32_create_terminal):
16342 * term.c (init_tty): Set Vwindow_system.
16343 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
16344 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
16345
16346 * xfns.c (Fx_create_frame, x_create_tip_frame):
16347 * w32fns.c (Fx_create_frame, x_create_tip_frame):
16348 * macfns.c (Fx_create_frame):
16349 Don't set the obsolete `window-system' frame-param.
16350
16351 * frame.h (Qwindow_system): Remove.
16352 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
16353 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
16354
16355 2007-10-24 Richard Stallman <rms@gnu.org>
16356
16357 * frame.c (x_figure_window_size): For fullscreen case,
16358 set USPosition | PPosition without clobbering rest of window_prompting.
16359
16360 * keyboard.c (Fcurrent_idle_time): Doc fix.
16361
16362 * print.c (Fwith_output_to_temp_buffer): Doc fix.
16363
16364 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
16365
16366 * process.c (unwind_request_sigio): Only define if __ultrix__.
16367
16368 * callproc.c (child_setup): Remove spurious *.
16369
16370 * lisp.h (Fget_text_property): Declare.
16371 (have_menus_p): Declare it here rather than in sys-dep header files.
16372 * macterm.h (have_menus_p):
16373 * msdos.h (have_menus_p):
16374 * xterm.h (have_menus_p): Remove.
16375
16376 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
16377 (Fmake_variable_frame_local): Just check the variable's const-ness
16378 rather than checking nil or t.
16379
16380 2007-10-22 Jason Rumney <jasonr@gnu.org>
16381
16382 * w32fns.c: Include math.h.
16383 (w32_abort): Declaration moved to nt/config.nt.
16384
16385 * s/ms-w32.h (HAVE_STDLIB_H): Define.
16386 (abort): Redefinition moved to nt/config.nt.
16387
16388 * m/windowsnt.h: Remove.
16389
16390 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
16391
16392 * emacs.c (Fdump_emacs): Fix typo in message.
16393 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
16394 <installation-directory>: Reflow docstring.
16395
16396 2007-10-22 Juri Linkov <juri@jurta.org>
16397
16398 * minibuf.c: Allow minibuffer default to be a list of default values.
16399 With empty input use the first element of this list as returned default.
16400 (string_to_object)
16401 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
16402 (read_minibuf): If defalt is cons, set histstring to its car.
16403 (Fread_string): If default_value is cons, set val to its car.
16404 (Fread_buffer): If def is cons, use its car.
16405 (Fcompleting_read): If defalt is cons, set val to its car.
16406
16407 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
16408
16409 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
16410
16411 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
16412
16413 * doc.c (Fdocumentation): Check for advice in all cases.
16414
16415 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
16416
16417 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
16418
16419 2007-10-19 Richard Stallman <rms@gnu.org>
16420
16421 * doc.c (Fdocumentation): Check for and handle an advised function.
16422
16423 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
16424
16425 * process.c (Fset_process_filter): Doc fix.
16426
16427 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
16428
16429 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
16430 which caused key-translation-map to applied repeatedly (thus breaking
16431 double-mode).
16432
16433 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
16434
16435 * xselect.c (x_own_selection, x_handle_selection_clear)
16436 (x_clear_frame_selections):
16437 * w32menu.c (list_of_panes, list_of_items):
16438 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
16439 * textprop.c (validate_plist, interval_has_all_properties)
16440 (interval_has_some_properties, interval_has_some_properties_list)
16441 (add_properties, text_property_list):
16442 * process.c (Fget_buffer_process, list_processes_1, status_notify):
16443 * minibuf.c (Fassoc_string):
16444 * macselect.c (x_own_selection, x_clear_frame_selections)
16445 (Fx_disown_selection_internal):
16446 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
16447 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
16448
16449 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
16450
16451 * process.c: Link to libs for calling res_init() if available.
16452 (Fmake_network_process): Call res_init() before getaddrinfo or
16453 gethostbyname, if possible.
16454
16455 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
16456
16457 * lread.c (read1): Set pvectype for char_tables.
16458
16459 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
16460 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
16461 Add type checks.
16462 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
16463
16464 * alloc.c (free_misc): Use XMISCTYPE.
16465 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
16466
16467 2007-10-17 Glenn Morris <rgm@gnu.org>
16468
16469 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
16470 (syms_of_minibuf): Add Qcompletion_ignore_case.
16471 * dired.c (Qcompletion_ignore_case): Change to external.
16472 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
16473 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
16474 (Fread_file_name): Use it rather than intern'ing.
16475
16476 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
16477 (Fread_coding_system): Ignore case of user input.
16478
16479 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16480
16481 * xdisp.c (handle_display_prop): Ignore display specs after
16482 replacing one when string text is being replaced.
16483 (handle_single_display_spec): Pretend as if characters with display
16484 property haven't been consumed only when buffer text is being replaced.
16485
16486 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
16487
16488 * xfns.c (Fx_create_frame, Fx_display_list):
16489 * window.c (window_fixed_size_p, enlarge_window)
16490 (shrink_window_lowest_first):
16491 * macterm.c (init_font_name_table):
16492 * macfns.c (Fx_create_frame, Fx_display_list):
16493 * lread.c (close_load_descs):
16494 * keyboard.c (read_char_x_menu_prompt):
16495 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
16496 * coding.c (code_convert_region_unwind): Test the type of an object
16497 rather than just !NILP before extracting data from it.
16498
16499 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
16500
16501 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
16502 (XMISCANY): New macro.
16503 (XMISCTYPE): Use it.
16504 (struct Lisp_Misc_Any): New type.
16505 (union Lisp_Misc): Use it.
16506 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
16507 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
16508 (find_symbol_value, set_internal, default_value, Fset_default)
16509 (Fmake_variable_buffer_local, Fmake_local_variable)
16510 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
16511 (Flocal_variable_if_set_p, Fvariable_binding_locus):
16512 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
16513 * alloc.c (allocate_buffer): Set the size and tag.
16514 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
16515 Use XMISCANY.
16516 (die): Follow the GNU convention for error messages.
16517 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
16518 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
16519 tag any more.
16520 (set_buffer_internal_1):
16521 * frame.c (store_frame_param):
16522 * eval.c (specbind):
16523 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
16524
16525 * doc.c (Fsnarf_documentation): Simplify.
16526
16527 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
16528
16529 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
16530 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
16531
16532 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
16533
16534 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
16535
16536 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
16537
16538 * eval.c (do_autoload): Don't save autoloads.
16539
16540 * data.c (Ffset): Save autoload of the function being set.
16541
16542 2007-10-07 John Paul Wallington <jpw@pobox.com>
16543
16544 * xfns.c (x_create_tip_frame): Set the `display-type' frame
16545 parameter before setting up faces.
16546
16547 2007-10-13 Eli Zaretskii <eliz@gnu.org>
16548
16549 * ccl.c (Fregister_code_conversion_map):
16550 * keyboard.c (append_tool_bar_item): Reformat last change.
16551
16552 * lisp.h (eabs): Rename from `abs'. All callers changed.
16553
16554 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
16555
16556 * buffer.c (add_overlay_mod_hooklist):
16557 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
16558 * fontset.c (make_fontset):
16559 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
16560 (append_tool_bar_item):
16561 * macmenu.c (grow_menu_items):
16562 * w32menu.c (grow_menu_items):
16563 * xmenu.c (grow_menu_items): Use larger_vector.
16564
16565 2007-10-13 Eli Zaretskii <eliz@gnu.org>
16566
16567 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
16568 selected frame'' on MSDOS).
16569
16570 2007-10-12 Martin Rudalics <rudalics@gmx.at>
16571
16572 * frame.c (Qexplicit_name): New variable.
16573 (x_report_frame_params): Report it in parameter alist.
16574 (syms_of_frame): Intern and staticpro it.
16575
16576 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
16577
16578 * macfns.c (x_create_tip_frame): Set terminal for frame.
16579
16580 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
16581
16582 * frame.c (Qenvironment): Remove.
16583 (syms_of_frame) <Qenvironment>: Don't initialize.
16584 (Fdelete_frame): Don't treat the `environment' param specially.
16585 * frame.h (Qenvironment): Don't declare.
16586 * callproc.c (set_initial_environment): Don't set unused frame param.
16587
16588 * frame.c (Fframe_with_environment): Remove.
16589 (syms_of_frame) <Sframe_with_environment>: Don't declare.
16590
16591 * lisp.h (Fframe_with_environment): Don't declare.
16592
16593 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
16594
16595 * indent.c (indent_tabs_mode, last_known_column)
16596 (last_known_column_modified): Make static.
16597 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
16598
16599 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
16600
16601 * puresize.h (BASE_PURESIZE): Increase to 1170000.
16602
16603 2007-10-09 Jason Rumney <jasonr@gnu.org>
16604
16605 * w32term.c (x_set_window_size): Disable code that attempts to tell
16606 Lisp code about a size change before it actually happens.
16607
16608 2007-10-09 Richard Stallman <rms@gnu.org>
16609
16610 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
16611 return HANDLED_RETURN.
16612
16613 2007-10-08 Martin Rudalics <rudalics@gmx.at>
16614
16615 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
16616 when there's an unread command event.
16617
16618 * frame.c (focus_follows_mouse): Move here from frame.el to allow
16619 window autoselection act appropriately when leaving selected frame.
16620 (syms_of_frame): Initialize focus_follows_mouse.
16621 * frame.h (focus_follows_mouse): Extern it.
16622 * macterm.c (XTread_socket): When focus_follows_mouse is nil
16623 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
16624 * msdos.c (dos_rawgetc): Likewise.
16625 * w32term.c (w32_read_socket): Likewise.
16626 * xterm.c (handle_one_xevent): Likewise.
16627 * xdisp.c (syms_of_xdisp): In doc-string of
16628 mouse-autoselect-window mention focus-follows-mouse.
16629
16630 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16631
16632 * macterm.c (mac_load_query_font): Fix missing return value.
16633 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
16634 Add BLOCK_INPUT.
16635
16636 2007-10-08 Richard Stallman <rms@gnu.org>
16637
16638 * xdisp.c (get_window_cursor_type): Implement documented behavior
16639 for cursor-in-non-selected-windows = t.
16640
16641 2007-10-08 Jason Rumney <jasonr@gnu.org>
16642
16643 * w32.c (w32_get_resource): Always close registry keys.
16644
16645 2007-10-08 Jason Rumney <jasonr@gnu.org>
16646
16647 * makefile.w32-in (LIBS): Add COMCTL32.
16648
16649 * w32fns.c (globals_of_w32fns): Init common controls.
16650
16651 2007-10-08 Richard Stallman <rms@gnu.org>
16652
16653 * image.c (our_memory_buffer): Rename from omfib_buffer.
16654
16655 2007-10-08 Richard Stallman <rms@gnu.org>
16656
16657 * buffer.c (Foverlays_at): Doc fix.
16658
16659 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
16660
16661 * fns.c (Fplist_put): Preserve uneven tail data.
16662
16663 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
16664
16665 * termhooks.h (enum event_kind): Remove trailing comma.
16666
16667 * frame.h (enum): Remove trailing comma.
16668
16669 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
16670
16671 * w32proc.c (delete_child): Don't terminate threads of zombies.
16672
16673 2007-10-08 Martin Rudalics <rudalics@gmx.at>
16674
16675 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
16676
16677 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
16678 last-repeatable-command.
16679 (init_kboard): Initialize Vlast_repeatable_command.
16680 (command_loop_1): Set it to real_this_command unless that was
16681 bound to an input event.
16682 (mark_kboards): Mark it.
16683
16684 2007-10-08 Richard Stallman <rms@gnu.org>
16685
16686 * eval.c (condition-case): Doc fix.
16687
16688 2007-10-08 Masatake YAMATO <jet@gyve.org>
16689
16690 * xfaces.c (tty_supports_face_attributes_p): Fix code
16691 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
16692 was copied and not edited.
16693
16694 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
16695
16696 Add new `input-decode-map' keymap and use it for terminal
16697 escape sequences.
16698 * keyboard.h (struct kboard): Add Vinput_decode_map.
16699 Remove Vlocal_key_translation_map.
16700 * keyboard.c (read_key_sequence): Add support for input-decode-map.
16701 (init_kboard): Init input-decode-map.
16702 Replace local-key-translation-map back with key-translation-map.
16703 (syms_of_keyboard): Declare input-decode-map.
16704 Remove local-key-translation-map. Update docstrings.
16705 (mark_kboards): Mark Vinput_decode_map.
16706 Don't mark Vlocal_key_translation_map.
16707 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
16708 Replace local-key-translation-map back with key-translation-map.
16709 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
16710 Bind in input-decode-map rather than function-key-map.
16711
16712 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
16713 This was made redundant by the previous introduction of XSETPVECTYPE.
16714
16715 2007-10-09 Richard Stallman <rms@gnu.org>
16716
16717 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
16718
16719 2007-09-29 Richard Stallman <rms@gnu.org>
16720
16721 * eval.c (internal_condition_case_2, internal_condition_case_1)
16722 (internal_condition_case): Reenable abort if x_catching_errors ()
16723 to see if that really happens and why.
16724
16725 2007-10-06 Andreas Schwab <schwab@suse.de>
16726
16727 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
16728
16729 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
16730
16731 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
16732
16733 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
16734
16735 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
16736
16737 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
16738
16739 * window.h (struct window):
16740 * window.c (struct save_window_data, struct saved_window):
16741 * termhooks.h (struct terminal):
16742 * process.h (struct Lisp_Process):
16743 * frame.h (struct frame):
16744 * buffer.h (struct buffer):
16745 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
16746 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
16747 The size field of (pseudo)vectors is now unsigned.
16748 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
16749
16750 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
16751 Turn `count' into an integer.
16752
16753 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
16754 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
16755 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
16756 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
16757 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
16758
16759 * alloc.c (allocate_pseudovector): New fun.
16760 (ALLOCATE_PSEUDOVECTOR): New macro.
16761 (allocate_window, allocate_terminal, allocate_frame)
16762 (allocate_process): Use it.
16763 (mark_vectorlike): New function.
16764 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
16765 (mark_terminals): Use it.
16766 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
16767 (Fmake_byte_code): Use XSETPVECTYPE.
16768
16769 * frame.c (Fframe_parameters): Minor simplification.
16770
16771 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
16772
16773 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
16774
16775 * buffer.c (Fget_buffer_create, init_buffer_once):
16776 * lread.c (defsubr):
16777 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
16778
16779 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
16780 defined differently in the m/*.h files.
16781 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
16782 (XSETPVECTYPE): New macro.
16783 (XSETPSEUDOVECTOR): Use it.
16784
16785 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
16786 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
16787
16788 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
16789 * lread.c (defvar_per_buffer):
16790 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
16791
16792 * window.c (candidate_window_p): Only consider as visible frames that
16793 are on the same terminal.
16794
16795 * m/ibms390x.h (MARKBIT): Remove unused macro.
16796
16797 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
16798
16799 * lread.c (Fload): Fix typo in docstring.
16800
16801 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
16802
16803 * floatfns.c (Fexpt): Manually check for overflows, so that a power
16804 of a non-zero value can't yield zero.
16805
16806 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
16807
16808 * term.c (term_clear_mouse_face, term_mouse_highlight)
16809 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
16810
16811 * print.c (safe_debug_print): Use XHASH.
16812
16813 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
16814 Lisp elements such as tags.
16815 (XHASH): New macro.
16816 (EQ): Use it.
16817 (SREF, SSET, STRING_COPYIN): Use SDATA.
16818 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
16819
16820 * alloc.c (mark_terminal): Remove left-over declaration.
16821 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
16822 (allocate_vectorlike): Remove type argument. Adjust callers.
16823 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
16824 Only handle the one remaining MEM_TYPE_VECTORLIKE.
16825
16826 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
16827 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
16828 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
16829 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
16830 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
16831 Use them.
16832
16833 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
16834 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
16835 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
16836
16837 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
16838
16839 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
16840 loaded by default.
16841
16842 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
16843
16844 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
16845 on this tty.
16846 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
16847
16848 * term.c (mouse_face_window): Rename from Qmouse_face_window.
16849 Update all users.
16850 (handle_one_term_event): Use Gpm_DrawPointer.
16851 (Fgpm_mouse_start): Rename from Fterm_open_connection.
16852 Signal errors instead of returning nil. Always return nil.
16853 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
16854 Make it a noop if gpm-mouse was not activated.
16855 (syms_of_term): Update names.
16856
16857 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
16858
16859 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
16860 (init_sys_modes): Check that gpm_tty is the current tty.
16861
16862 * alloc.c (allocate_terminal): Set the vector size to only count the
16863 lisp fields. Initialize those to nil.
16864 (mark_object): Don't treat terminals specially.
16865 (mark_terminal): Remove.
16866 (mark_terminals): Use mark_object instead.
16867
16868 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
16869 the GC to the beginning.
16870
16871 * indent.h:
16872 * indent.c: Use EMACS_INT for ints coming from Elisp data.
16873
16874 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
16875
16876 2007-09-25 Jason Rumney <jasonr@gnu.org>
16877
16878 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
16879
16880 * w32console.c (create_w32cons_output): Remove.
16881
16882 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
16883
16884 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
16885 (reset_sys_modes): Use reset_terminal_modes_hook.
16886
16887 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
16888
16889 * eval.c (do_autoload): Don't output any message.
16890
16891 2007-09-24 Juri Linkov <juri@jurta.org>
16892
16893 * emacs.c (standard_args): Change priority of "--no-splash"
16894 from 40 to 3. Add "--no-desktop" with the same priority.
16895
16896 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
16897
16898 * alloc.c (gc_sweep): Check cons cell mark bits word by word
16899 and optimize the case where they are all 1.
16900
16901 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
16902
16903 * lisp.h (abs): Define if not defined.
16904 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
16905 Don't define `abs', since it's defined in lisp.h.
16906
16907 2007-09-22 Eli Zaretskii <eliz@gnu.org>
16908
16909 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
16910 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
16911 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
16912 (init_tty): Use DEV_TTY instead of "/dev/tty".
16913 [WINDOWSNT]: No need to protect from NAME arg being null.
16914
16915 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
16916
16917 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
16918 up the tty state.
16919
16920 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
16921
16922 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
16923 (gpm_tty): Change its type.
16924 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
16925 (gpm_tty): Change its type and initialize it.
16926 (Fterm_open_connection): Check the frame is indeed a tty.
16927 Use the new gpm_tty.
16928 (Fterm_close_connection): Use the new gpm_tty.
16929 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
16930 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
16931
16932 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
16933
16934 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
16935 underline_color, to draw strike-through.
16936
16937 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
16938
16939 * lisp.h (allocate_terminal): Declare.
16940
16941 * window.c (candidate_window_p): Consider frames that are being placed
16942 by the user as somewhere between visible and iconified.
16943 (window_loop): Prefer windows on the current frame.
16944 (Fselect_window): Move the use of select-frame to the beginning so we
16945 can just delegate all the work (it'll call us back anyway).
16946
16947 * frame.c (Qdisplay_environment_variable):
16948 * frame.h (Qdisplay_environment_variable): Delete.
16949
16950 * .gdbinit (xbacktrace): Print the arg's address rather than the value
16951 of the first arg, since that value may be a union.
16952
16953 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
16954 parameter rather than Qdisplay_environment_variable. If all else
16955 fails, look for DISPLAY in initial-environment.
16956
16957 2007-09-21 Glenn Morris <rgm@gnu.org>
16958
16959 * Makefile.in (emacstool): Remove target.
16960 (lisp, shortlisp): Remove termdev.elc.
16961
16962 2007-09-21 Markus Triska <markus.triska@gmx.at>
16963
16964 * xterm.c (x_delete_display): Compile session management conditionally.
16965
16966 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
16967
16968 * callproc.c (getenv_internal_1): New function.
16969 (getenv_internal): Use it.
16970 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
16971
16972 * terminal.c (get_terminal): Don't accept ints to represent terminals.
16973 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
16974 (Fset_terminal_parameter): Work with dead terminals as well.
16975 (Fmodify_terminal_parameters): Remove.
16976
16977 * terminal.c (get_terminal): Handle terminals.
16978 Make sure the terminal returned is live.
16979 (create_terminal): Use allocate_terminal.
16980 (mark_terminals): Move to alloc.c.
16981 (delete_terminal): Use terminal->name as liveness status.
16982 NULL out fields after freeing their contents.
16983 Don't deallocate the object.
16984 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
16985 rather than an int.
16986 (Fterminal_live_p): Accept non-integer arguments.
16987 (Fterminal_list): Return terminal objects rather than an ints.
16988
16989 * alloc.c (enum mem_type): New member for `terminal' objects.
16990 (allocate_terminal): New function.
16991 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
16992 Handle terminals.
16993 (mark_terminal): New fun.
16994 (mark_terminals): Move from terminal.c.
16995
16996 * term.c (get_tty_terminal): Don't treat output_initial specially.
16997 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
16998 (delete_tty): Use terminal->name as liveness status.
16999
17000 * termhooks.h (struct terminal): Make it into a pseudovector.
17001 Remove `deleted' replaced by checking `name's nullness.
17002
17003 * print.c (print_object): Handle terminals.
17004
17005 * lisp.h (enum pvec_type): New `terminal' pseudovector.
17006 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
17007
17008 * frame.c (make_terminal_frame):
17009 * keyboard.c (tty_read_avail_input):
17010 * w32term.c (x_delete_terminal):
17011 * xfns.c (Fx_create_frame, x_create_tip_frame):
17012 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
17013
17014 2007-09-20 Glenn Morris <rgm@gnu.org>
17015
17016 * process.c (Fmake_network_process): Doc fix.
17017
17018 2007-09-19 Jason Rumney <jasonr@gnu.org>
17019
17020 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
17021
17022 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
17023
17024 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
17025 Fix a C warning regarding variable constness.
17026
17027 * xterm.c (handle_one_xevent): Fix a C warning.
17028
17029 2007-09-18 Jason Rumney <jasonr@gnu.org>
17030
17031 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
17032
17033 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
17034
17035 * gtkutil.c (gdpy_def): New variable.
17036 (xg_initialize): Initialize gdpy_def.
17037 (xg_display_close): If no other display exists, set gdpy_def to a
17038 new connection.
17039
17040 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
17041
17042 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
17043 when we have no file name for the icon.
17044 (xg_tool_bar_expose_callback): Remove.
17045 (xg_create_tool_bar): Don't connect expose signal to
17046 xg_tool_bar_expose_callback.
17047 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
17048
17049 2007-09-16 Andreas Schwab <schwab@suse.de>
17050
17051 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
17052 values instead of zapping them.
17053
17054 2007-09-14 Glenn Morris <rgm@gnu.org>
17055
17056 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
17057 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
17058 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
17059 scope and rename to omfib_buffer for clarity.
17060 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
17061
17062 2007-09-14 Kenichi Handa <handa@m17n.org>
17063
17064 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
17065
17066 2007-09-13 Jason Rumney <jasonr@gnu.org>
17067
17068 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
17069
17070 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
17071
17072 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
17073 (mac_term_init): Call here instead, passing rif.
17074
17075 2007-09-13 Glenn Morris <rgm@gnu.org>
17076
17077 * s/hpux.h: No longer define `static' as nothing.
17078
17079 2007-09-13 Johan Bockgård <bojohan@gnu.org>
17080
17081 * callint.c (Fcall_interactively): Remove unused var `fun'.
17082
17083 2007-09-12 Romain Francoise <romain@orebokech.com>
17084
17085 * window.c (prefer_window_split_horizontally, display_buffer):
17086 Revert 2007-09-08 change.
17087
17088 2007-09-12 Glenn Morris <rgm@gnu.org>
17089
17090 * alloca.c: Remove file.
17091 * Makefile.in (alloca): Do not undef.
17092 (allocaobj, alloca.o): Remove.
17093 (otherobj): Remove allocaobj.
17094 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
17095 * regex.c (C_ALLOCA): Remove all references and code that was only
17096 used when this was defined.
17097 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
17098 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
17099 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
17100
17101 * Makefile.in (SOURCES, unlock, relock): Delete.
17102
17103 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
17104 (menu_grab_callback): All uses changed.
17105
17106 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
17107 (x_reply_selection_request): All uses changed.
17108
17109 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
17110
17111 * lread.c (load_warn_old_style_backquotes): Change message to look
17112 better when it appears in the middle of byte-compiler messages.
17113
17114 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
17115
17116 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
17117
17118 * xterm.c (x_create_terminal): Add comment.
17119
17120 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
17121
17122 2007-09-10 Richard Stallman <rms@gnu.org>
17123
17124 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
17125
17126 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
17127
17128 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
17129 (DEFUN): Document `intspec', use it instead of `prompt'.
17130
17131 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
17132
17133 * data.c (Finteractive_form): If the interactive specification starts
17134 with a `(', use it as a Lisp form.
17135
17136 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
17137 name and file modes.
17138
17139 * callint.c (Fcall_interactively): Comment fixes.
17140
17141 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
17142
17143 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
17144 and compiled functions.
17145
17146 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
17147
17148 * window.c (prefer_window_split_horizontally): New variable.
17149 (display_buffer): Consider splitting window horizontally depending
17150 on prefer_window_split_horizontally.
17151
17152 2007-09-08 Eli Zaretskii <eliz@gnu.org>
17153
17154 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
17155
17156 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
17157
17158 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
17159
17160 * frame.c (x_set_frame_parameters): Check number is positive before
17161 using XFASTINT.
17162
17163 * window.c (freeze_window_start): Don't presume selected_window holds
17164 a window object.
17165 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
17166
17167 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
17168
17169 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
17170
17171 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
17172
17173 * window.c (Vsplit_window_preferred_function): New var.
17174 (Fdisplay_buffer): Use it.
17175 (syms_of_window): Export, and initialize it.
17176
17177 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
17178
17179 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
17180
17181 2007-09-06 Glenn Morris <rgm@gnu.org>
17182
17183 * gtkutil.c (menu_grab_callback) <cnt>:
17184 * xselect.c (x_reply_selection_request) <cnt>: Move static
17185 variable to file scope.
17186
17187 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
17188
17189 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
17190 consistent values of selected_frame and selected_window.
17191
17192 2007-09-04 Jason Rumney <jasonr@gnu.org>
17193
17194 * w32console.c (initialize_w32_display): Zero unused hooks.
17195
17196 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
17197
17198 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
17199 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
17200
17201 2007-09-04 Jason Rumney <jasonr@gnu.org>
17202
17203 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
17204 in w32console.c. Set up input. Remove XXX comments that have been
17205 confirmed as correct.
17206
17207 * s/ms-w32.h (MULTI_KBOARD): Define.
17208
17209 * w32console.c (one_and_only_w32cons): Remove.
17210 (initialize_w32_display): Take terminal argument.
17211
17212 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
17213 initialize_w32_display.
17214 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
17215
17216 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
17217
17218 * keyboard.c (discard_mouse_events): Discard it.
17219 (make_lispy_event): Translate it to a lisp event.
17220 (lispy_wheel_names): Add wheel-left and right events.
17221 (syms_of_keyboard): Enlarge wheel_syms.
17222
17223 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
17224 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
17225
17226 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
17227
17228 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
17229 from WM_MOUSEHWHEEL.
17230 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
17231
17232 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
17233 terminal.
17234
17235 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
17236 keyboard for the terminal.
17237
17238 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
17239
17240 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
17241 (Vresume_tty_hook): Rename from Vresume_tty_functions.
17242 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
17243 and resume-tty-function to resume-tty-hook.
17244 (Fsuspend_tty, Fresume_tty): Use new names.
17245
17246 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
17247
17248 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
17249 if it starts with "n:".
17250
17251 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
17252
17253 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
17254
17255 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
17256
17257 * frame.h:
17258 * frame.c (Qterm_environment_variable): Remove.
17259 (syms_of_frame): Don't init and staticpro it.
17260
17261 * callproc.c (getenv_internal): Remove special case for $TERM.
17262
17263 * callproc.c (Vinitial_environment): New variable.
17264 (set_initial_environment): Initialize it.
17265 (syms_of_callproc): Declare it.
17266 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
17267 TERM under which a process runs is never related to the TERM in which
17268 Emacs is running.
17269
17270 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
17271
17272 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
17273 * s/darwin.h: ... do it here.
17274
17275 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
17276
17277 * lisp.h (set_initial_environment): Rename from set_global_environment.
17278
17279 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
17280 removed by mistake on the multi-tty branch.
17281
17282 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
17283 (Fmodify_frame_parameters): Return a value.
17284
17285 * image.c (png_load): Comment-out var only used in commented-out code.
17286
17287 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
17288 before passing it to mark_object.
17289
17290 * xfaces.c (internal_resolve_face_name): Return a value.
17291 (internal_resolve_face_name, resolve_face_name_error): Comment out.
17292
17293 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
17294 (x_icon): Comment-out var only used in commented-out code.
17295
17296 2007-08-29 Romain Francoise <romain@orebokech.com>
17297
17298 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
17299 QUIT hasn't been provided.
17300
17301 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
17302
17303 * callproc.c (child_setup, getenv_internal): Use the
17304 display-environment-variable and term-environment-variable frame params.
17305 (set_initial_environment): Initialise Vprocess_environment.
17306
17307 * config.in: Disable multi-keyboard support on a mac.
17308
17309 * frame.c (Qterm_environment_variable)
17310 (Qdisplay_environment_variable): New variables.
17311 (syms_of_frame): Intern and staticpro them.
17312 (Fmake_terminal_frame): Disable output method test.
17313
17314 * frame.h: Declare them here.
17315
17316 * macfns.c (x_set_mouse_color): Get rif from the frame.
17317 (x_set_tool_bar_lines): Don't use updating_frame.
17318 (mac_window): Add 2 new parameters for consistency with other systems.
17319 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
17320 frame parameters following what is done in X11 and w32. Don't use
17321 FRAME_MAC_DISPLAY_INFO.
17322 (Fx_open_connection, start_hourglass): Remove window-system check.
17323 (x_create_tip_frame): Get the keyboard from the terminal.
17324
17325 * macmenu.c: Reorder includes.
17326 (Fx_popup_menu): Use terminal specific mouse_position_hook.
17327
17328 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
17329 terminal parameter.
17330 (x_clear_frame): Add a frame parameter.
17331 (note_mouse_movement): Get rif from the frame.
17332 (mac_term_init): Initialize the terminal.
17333 (mac_initialize): Make static and move terminal initialization ...
17334 (mac_create_terminal): ... to this new function.
17335
17336 * macterm.h (struct mac_display_info): Add terminal.
17337 (mac_initialize): Delete declaration.
17338
17339 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
17340
17341 * sysdep.c: Comment out text after #endif.
17342
17343 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
17344 is defined. Better initialize ttys in windows. Use terminal
17345 specific mouse_position_hook.
17346
17347 * termhooks.h (union display_info): Add mac_display_info.
17348
17349 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
17350 Set the default minibuffer frame, window_system and the rest of the
17351 frame parameters following what is done in X11.
17352
17353 * w32term.c (w32_initialize): Make static.
17354
17355 * xselect.c (x_handle_selection_clear): Only access
17356 terminal->kboard when MULTI_KBOARD is defined.
17357
17358 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
17359 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
17360
17361 2007-08-29 Jason Rumney <jasonr@gnu.org>
17362
17363 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
17364 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
17365
17366 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
17367 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
17368
17369 * keyboard.c (restore_kboard_configuration): Only define when
17370 MULTI_KBOARD defined.
17371
17372 * makefile.w32-in: Update dependancies from Makefile.in.
17373 (OBJ1): Add terminal.$(O)
17374
17375 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
17376 Don't define function body.
17377 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
17378
17379 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
17380
17381 * w32.c (request_sigio, unrequest_sigio): Remove.
17382
17383 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
17384 (w32con_clear_frame, w32con_clear_end_of_line)
17385 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
17386 (w32con_delete_glyphs, w32con_set_terminal_window)
17387 (scroll_line, w32_sys_ring_bell): Add frame arg.
17388 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
17389 Add terminal arg.
17390 (PICK_FRAME): Remove.
17391 (w32con_write_glyphs): Use frame specific terminal coding.
17392 (one_and_only_w32cons): New global variable.
17393 (initialize_w32_display): Use it for storing hooks.
17394 (create_w32cons_output): New function.
17395
17396 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
17397 arg a frame.
17398
17399 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
17400 Set window_system.
17401 (x_set_tool_bar_lines): Don't use updating_frame.
17402 (Fx_create_frame): Set terminal and ref count.
17403 (Fx_open_connection): Remove window-system check.
17404
17405 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
17406
17407 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
17408 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
17409 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
17410 Add frame arg.
17411 (x_delete_terminal, w32_create_terminal): New functions.
17412 (w32_term_init): Create a terminal.
17413 (w32_initialize): Move terminal specific initialization to
17414 w32_create_terminal.
17415
17416 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
17417 (w32_clear_rect, w32_clear_area): Use background from frame.
17418 (w32_display_info): Add terminal.
17419 (w32_sys_ring_bell, x_delete_display): Declare here.
17420
17421 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
17422
17423 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
17424
17425 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
17426
17427 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
17428 Fix get_named_tty calls for the controlling tty.
17429
17430 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
17431
17432 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
17433
17434 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
17435
17436 * term.c (tty_insert_glyphs): Add missing first parameter.
17437
17438 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
17439
17440 * buffer.c (Fbuffer_list, Fbury_buffer):
17441 Take frame->buried_buffer_list into account.
17442
17443 * cm.c (current_tty): New variable, for cmputc().
17444 (cmputc): Use it.
17445 (cmcheckmagic): Add tty parameter, look up terminal streams there.
17446 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
17447 (cmgoto): Add tty parameter. Pass it on to calccost().
17448 Use emacs_tputs() instead of tputs().
17449
17450 * cm.h (emacs_tputs): New macro to set current_tty, and then call
17451 tputs().
17452 (current_tty): New variable, for cmputc().
17453 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
17454
17455 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
17456 (internal_condition_case, internal_condition_case_1)
17457 (internal_condition_case_2): Don't abort when x_catching_errors.
17458
17459 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
17460 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
17461 prevent crashes caused by bogus longjmps in read_char.
17462
17463 * keymap.h (Fset_keymap_parent): Add EXFUN.
17464
17465 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
17466 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
17467 Remove redundant definition.
17468
17469 * macfns.c (x_set_mouse_color, x_make_gc):
17470 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
17471
17472 * w32term.c (x_free_frame_resources):
17473 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
17474 (w32_initialize): Use the accessor macros for terminal characteristics.
17475
17476 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
17477 Use the accessor macros for terminal characteristics.
17478 * msdos.c (internal_terminal_init): Use the accessor macros for
17479 terminal characteristics.
17480 (ScreenVisualBell, internal_terminal_init):
17481 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
17482
17483 * termopts.h (no_redraw_on_reenter): Declare.
17484
17485 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
17486 (mark_terminals, mark_ttys): Declare.
17487 (Fgarbage_collect): Call them.
17488 (mark_object): Mark buried_buffer_list.
17489
17490 * prefix-args.c: Include stdlib.h for exit.
17491
17492 * syssignal.h: Add comment.
17493
17494 * indent.c: Include stdio.h.
17495
17496 * window.h (Vinitial_window_system): Declare.
17497 (Vwindow_system): Delete declaration.
17498
17499 * fontset.c (Finternal_char_font): Use FRAME_RIF.
17500
17501 * image.c (lookup_image): Don't initialize `c' until the xasserts
17502 have been run.
17503
17504 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
17505 FRAME_FOREGROUND_PIXEL.
17506
17507 * print.c (print_preprocess): Don't lose print_depth levels while
17508 iterating.
17509
17510 * widget.c (update_from_various_frame_slots):
17511 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
17512
17513 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
17514 frames.
17515 (window_internal_height): Remove bogus make_number call.
17516 (init_window_once): Call make_terminal_frame with two zero parameters.
17517
17518 * fileio.c (Fread_file_name): Update comment.
17519
17520 * callint.c (Fcall_interactively):
17521 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
17522 Make sure it is correctly unwound.
17523
17524 * xsmfns.c (x_session_close): New function.
17525
17526 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
17527 Delete declarations.
17528
17529 * xterm.h: Remove declaration for x_fully_uncatch_errors.
17530 (x_output): Remove background_pixel and foreground_pixel fields.
17531 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
17532 (x_delete_device, x_session_close): Declare.
17533
17534 * lread.c: Include setjmp.h. Update declaration of `read_char'.
17535 (read_filtered_event): Call `read_char' with a local
17536 `wrong_kboard_jmpbuf'.
17537
17538 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
17539 Don't call single_kboard_state. Use FRAME_RIF.
17540
17541 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
17542 systems.
17543
17544 * lisp.h (set_process_environment): Rename to `set_global_environment'.
17545 (Fframe_with_environment, Fset_input_meta_mode)
17546 (Fset_quit_char): EXFUN.
17547 (x_create_device, tty_output, terminal, tty_display_info): Declare.
17548 (init_sys_modes, reset_sys_modes): Update prototypes.
17549 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
17550
17551 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
17552 Vlocal_key_translation_map, and Vkeyboard_translate_table.
17553 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
17554 Delete declarations.
17555 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
17556 (temporarily_switch_to_single_kboard, tty_read_avail_input):
17557 New declarations.
17558
17559 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
17560 already does that during init_display(). Call syms_of_keymap
17561 before syms_of_keyboard. Call `syms_of_terminal'.
17562 Call set_initial_environment, not set_process_environment.
17563 (shut_down_emacs): Call reset_all_sys_modes() instead of
17564 reset_sys_modes().
17565
17566 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
17567 (internal_resolve_face_name, resolve_face_name_error): New functions.
17568 (resolve_face_name): Protect against loops and errors thrown by Fget.
17569 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
17570 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
17571
17572 * scroll.c: Replace CURTTY() with local variables throughout the
17573 file (where applicable).
17574 (calculate_scrolling, calculate_direct_scrolling)
17575 (scrolling_1, scroll_cost): Use the accessor macros for terminal
17576 characteristics.
17577
17578 * keymap.c (Vfunction_key_map): Remove.
17579 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
17580 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
17581 (Vkey_translation_map): Remove.
17582 (syms_of_keymap): Remove DEFVAR for key-translation-map.
17583 (Fdescribe_buffer_bindings)
17584 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
17585 Update for terminal-local key-translation-map.
17586
17587 * Makefile.in (callproc.o): Update dependencies.
17588 (lisp, shortlisp): Add termdev.elc.
17589 (obj): Add terminal.o.
17590 (terminal.o): Add dependencies.
17591 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
17592 (data.o, fns.o): Add termhooks.h dependency.
17593 (SOME_MACHINE_LISP): Add dnd.elc.
17594 (minibuf.o): Fix typo.
17595 Update dependencies.
17596
17597 * data.c (do_symval_forwarding, store_symval_forwarding)
17598 (find_symbol_value): Use the selected frame's keyboard, not
17599 current_kboard.
17600
17601 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
17602 Vwindow_system.
17603
17604 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
17605 Fmenu_bar_open.
17606 (syms_of_xmenu): Update defsubr.
17607 (mouse_position_for_popup, Fx_popup_menu)
17608 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
17609 (set_frame_menubar, free_frame_menubar)
17610 (create_and_show_popup_menu, xmenu_show)
17611 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
17612 an X frame.
17613
17614 * xselect.c (x_own_selection): Abort if not an X frame.
17615 (some_frame_on_display): Check if it is an X frame.
17616 (x_handle_selection_clear): Deal with MULTI_KBOARD.
17617
17618 * coding.c: Include frame.h and termhooks.h.
17619 (terminal_coding, keyboard_coding): Delete.
17620 (Fset_terminal_coding_system_internal)
17621 (Fset_keyboard_coding_system_internal)
17622 (Fkeyboard_coding_system)
17623 (Fterminal_coding_system): Add a terminal parameter.
17624 Get terminal_coding from the terminal.
17625 (init_coding_once): Don't call setup_coding_system here.
17626
17627 * dispextern.h (set_scroll_region, turn_off_insert)
17628 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
17629 (tty_clear_end_of_line, tty_setup_colors)
17630 (delete_tty, updating_frame)
17631 (produce_special_glyphs, produce_glyphs, write_glyphs)
17632 (insert_glyphs): Remove.
17633 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
17634 (tty_turn_off_highlight, get_tty_size): Add declaration.
17635 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
17636
17637 * frame.h (enum output_method): Add output_initial.
17638 (struct x_output): Delete.
17639 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
17640 Access foreground_pixel and background_pixel directly from the frame.
17641 (tty_display): Delete.
17642 (struct frame): Add buried_buffer_list, foreground_pixel,
17643 background_pixel and terminal. Delete kboard.
17644 (union output_data): Add tty.
17645 (FRAME_KBOARD): Get the kboard from the terminal.
17646 (FRAME_INITIAL_P): New macro.
17647 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
17648 (Qterm_environment_variable, Qdisplay_environment_variable)
17649 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
17650 New declarations.
17651
17652 * termchar.h (tty_output, tty_display_info): New structures.
17653 (tty_list): Declare.
17654 (FRAME_TTY, CURTTY): New macros.
17655 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
17656 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
17657 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
17658 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
17659
17660 * callproc.c: Include frame.h and termhooks.h, for terminal
17661 parameters.
17662 (add_env): New function.
17663 (child_setup): Use it.
17664 (child_setup, getenv_internal): Handle the new Vprocess_environment.
17665 (getenv_internal): Fix get_terminal_param call.
17666 (Fgetenv_internal, egetenv): Update doc.
17667 (syms_of_callproc): Initialize Vprocess_environment to nil.
17668 Register and initialize them. Remove obsolete defvars. Update doc
17669 strings.
17670 (child_setup): Handle Vlocal_environment_variables.
17671 (getenv_internal): Add terminal parameter.
17672 Handle Vlocal_environment_variables.
17673 (Fgetenv_internal): Add terminal parameter.
17674 (child_setup, getenv_internal, Fgetenv_internal): Store the local
17675 environment in a frame (not terminal) parameter. Update doc strings.
17676 (set_initial_environment): Rename from set_global_environment.
17677 Store Emacs environment in initial frame parameter.
17678
17679 * xdisp.c (redisplay_internal): Update references to
17680 `previous_terminal_frame'.
17681 (display_mode_line, Fformat_mode_line): Replace calls to
17682 `push_frame_kboard' with `push_kboard'.
17683 (get_glyph_string_clip_rects): Add extra parentheses and
17684 braces to prevent compiler warnings.
17685 (calc_pixel_width_or_height): Add xassert to check that the
17686 frame is alive. Don't call `lookup_image' on a termcap frame.
17687 (message2_nolog, message3_nolog, redisplay_internal)
17688 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
17689 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
17690 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
17691 (Fx_display_pixel_width, Fx_display_pixel_height)
17692 (Fx_display_planes, Fx_display_color_cells)
17693 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
17694 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
17695 (Fx_display_backing_store, Fx_display_visual_class)
17696 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
17697 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
17698
17699 * xfns.c (x_set_foreground_color x_set_background_color)
17700 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
17701 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
17702 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
17703 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
17704 terminal that is being deleted.
17705 (Fx_create_frame): Use `store_frame_param' to set `window-system'
17706 frame parameter, and make sure it overrides any user-supplied setting.
17707 (Fx_close_connection, Fx_synchronize): Unify argument names with
17708 the rest of the DEFUNs.
17709
17710 * dispnew.c (Fsend_string_to_terminal): Update call to
17711 `get_tty_terminal'.
17712 (Fredraw_frame, Fsend_string_to_terminal)
17713 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
17714 FRAME_TERMCAP_P and FRAME_TTY.
17715 (window_change_signal): Don't believe width/height values that are
17716 impossibly small.
17717 (Vinitial_window_system): Rename from Vwindow_system.
17718 (termscript, Wcm, rif): Delete.
17719
17720 * termhooks.h (struct terminal): New struct containing the
17721 previously global text display hooks and new members NAME,
17722 DELETED and PARAM_ALIST.
17723 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
17724 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
17725 (FRAME_RIF): New macros.
17726 (get_terminal_param, get_device): New declarations.
17727 (termscript): Delete declaration.
17728
17729 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
17730 (XTflash, x_free_frame_resources, x_scroll_bar_create)
17731 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
17732 FRAME_FOREGROUND_PIXEL.
17733 (x_fully_uncatch_errors): Disable definition.
17734 (x_scroll_bar_expose): Fix reference to foreground pixel.
17735 (XTread_socket): Disable loop on all X displays.
17736 (x_delete_terminal): Don't set terminal->deleted and let
17737 delete_terminal delete the frames on the terminal.
17738 (x_delete_display): Doc update to reflect changes in
17739 delete_terminal.
17740 (x_display_info) <terminal>: Move member earlier in the struct.
17741 (deleting_tty): Remove old variable.
17742 (Fsuspend_tty): Call clear_tty_hooks.
17743 (Fresume_tty, init_tty): Call set_tty_hooks.
17744 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
17745 errors on X frames.
17746 (x_catch_errors_unwind): Abort if x_error_message is NULL.
17747 (handle_one_xevent): Initialize `f' to NULL.
17748 (x_delete_terminal, x_create_terminal): New functions.
17749 (XTset_terminal_modes, XTreset_terminal_modes)
17750 (XTread_socket, x_connection_closed, x_term_init)
17751 (x_term_init, x_delete_display): Add terminal parameter.
17752 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
17753 X connections.
17754
17755 * frame.c: Include termchar.h.
17756 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
17757 (Qwindow_system, Qenvironment, Qterm_environment_variable)
17758 (Qdisplay_environment_variable): New vars.
17759 (Fframep): Deal with output_initial.
17760 (Fframe-live-p): Doc fix.
17761 (Fwindow-system): New function.
17762 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
17763 (make_terminal_frame): Don't create frames on a terminal that is
17764 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
17765 (store_frame_param): Check for found_for_frame before calling XFRAME.
17766 (Fmake_terminal_frame): Handle NULL tty names correctly.
17767 (syms_of_frame): Enhance doc string of `default-frame-alist'.
17768 (Fdelete_frame): Remove unused variable `count'. Don't allow other
17769 frames to refer to a deleted frame in their 'environment parameter.
17770 (Fframe_with_environment): New function.
17771 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
17772 (get_future_frame_param): New function.
17773 (Fmake_terminal_frame): Use it.
17774 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
17775
17776 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
17777 * sysdep.c (reset_sys_modes): Update for renames.
17778
17779 * keyboard.c (tty_read_avail_input): New function.
17780 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
17781 (syms_of_keyboard): Defsubr them.
17782 (Fset_input_meta_mode, Fset_quit_char): New functions.
17783 (Fset_input_mode): Split to above functions.
17784 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
17785 parameter. Use it in call to `read_char'.
17786 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
17787 Set wrong_kboard_jmpbuf correctly in recursive calls.
17788 Use current_kboard to access Vkeyboard_translate_table.
17789 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
17790 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
17791 Update longjmp invocations. Remember the original current_kboard,
17792 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
17793 changes it. Comment out unnecessary calls to
17794 `record_single_kboard_state' and `any_kboard_state'.
17795 Update recursive calls.
17796 (wrong_kboard_jmpbuf): Remove global variable.
17797 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
17798 Handle deleted interrupted_kboards correctly; that is a legal
17799 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
17800 and read_char calls. Abort if interrupted_kboard died in read_char.
17801 (any_kboard_state, single_kboard_state)
17802 (push_frame_kboard): Remove function.
17803 (pop_kboard): Switch out of single_kboard mode if the kboard has
17804 been deleted. Remove unused variable. Help debugging by not
17805 changing current_kboard unnecessarily. Set current_kboard to the
17806 kboard of the selected frame when the stored kboard object has
17807 been deleted before pop_kboard.
17808 (temporarily_switch_to_single_kboard): Change first parameter to a
17809 frame pointer. Throw an error when caller wants to change kboards
17810 while in single_kboard mode. Don't push_kboard if we weren't in
17811 single kboard state. Don't pop_kboard if we popped into any
17812 kboard state.
17813 (restore_kboard_configuration): Abort if pop_kboard changed the
17814 kboard in single_kboard mode. Call pop_kboard only after setting
17815 up single_kboard mode.
17816 (Frecursive_edit): Switch to single_kboard mode only in nested
17817 command loops.
17818 (cmd_error, command_loop, command_loop_1, timer_check):
17819 Comment out unnecessary call to `any_kboard_state' and
17820 `record_single_kboard_state'.
17821 (delete_kboard): Exit single_kboard mode if we have just deleted
17822 that kboard. Use FRAME_KBOARD.
17823 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
17824 `fatal_error_signal'.
17825 (record_single_kboard_state): Don't push_kboard if we weren't in
17826 single kboard state. Don't pop_kboard if we popped into any
17827 kboard state.
17828 (push_frame_kboard): Rename to push_kboard.
17829 (kbd_buffer_get_event): Use FRAME_TERMINAL.
17830 (read_avail_input): Read input from all terminals.
17831 (mark_kboards): Also mark Vkeyboard_translate_table.
17832 (kbd_buffer_store_event_hold): Simplify condition.
17833 (read_key_sequence): Reinitialize fkey and keytran at each replay.
17834 (Vkeyboard_translate_table): Move to struct kboard.
17835 (init_kboard): Initialize Vkeyboard_translate_table.
17836 (syms_of_keyboard): Use DEFVAR_KBOARD to define
17837 Vkeyboard_translate_table. Update doc strings. Update docs of
17838 local-function-key-map and function-key-map.
17839
17840 * terminal.c: New file.
17841
17842 * term.c: Include errno.h.
17843 (Vring_bell_function, device_list, initial_device)
17844 (next_device_id, ring_bell, update_begin, update_end)
17845 (set_terminal_window, cursor_to, raw_cursor_to)
17846 (clear_to_end, clear_frame, clear_end_of_line)
17847 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
17848 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
17849 (syms_of_term): Move their initialization to terminal.c.
17850 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
17851 (Ftty_display_color_cells)
17852 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
17853 (clear_tty_hooks, set_tty_hooks)
17854 (init_tty, maybe_fatal): New functions.
17855 (Ftty_type): Return nil if terminal is not on a tty instead of
17856 throwing an error. Doc update.
17857 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
17858 Doc update. Initialize new subrs and variables.
17859 (delete_tty): Use terminal->deleted.
17860 (tty_set_terminal_modes): Rename from set_terminal_modes.
17861 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
17862 (set_scroll_region): Rename to `tty_set_scroll_region'.
17863 (turn_on_insert): Rename to `tty_turn_on_insert'.
17864 (turn_off_insert): Rename to `tty_turn_off_insert'.
17865 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
17866 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
17867 (toggle_highligh): Rename to `tty_toggle_highlight'.
17868 (background_highlight): Rename to `tty_background_highlight'.
17869 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
17870 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
17871 (tty_set_scroll_region, tty_background_highlight)
17872 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
17873 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
17874 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
17875 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
17876 Add static modifier.
17877 (tty_reset_terminal_modes, tty_set_terminal_window)
17878 (tty_set_scroll_region, tty_background_highlight)
17879 (tty_highlight_if_desired, tty_cursor_to)
17880 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
17881 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
17882 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
17883 renames.
17884
17885 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
17886
17887 * keyboard.c: Qrtl is new.
17888 (parse_tool_bar_item): Handle :rtl keyword.
17889 (syms_of_keyboard): Intern :rtl keyword.
17890
17891 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
17892
17893 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
17894 so no Lisp code is executed.
17895 (file_for_image, find_rtl_image): New functions.
17896 (xg_get_image_for_pixmap): Use file_for_image.
17897 (update_frame_tool_bar): If direction is RTL, use RTL image if
17898 defined. Use Gtk stock images if defined.
17899
17900 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17901
17902 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
17903 for nonexistent or zero-width glyph in composition glyph.
17904
17905 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
17906
17907 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
17908
17909 * xdisp.c (Finvisible_p): New function.
17910 (syms_of_xdisp): defsubr it.
17911
17912 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
17913
17914 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
17915 Doc fixes.
17916
17917 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17918
17919 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
17920
17921 2007-08-24 Martin Rudalics <rudalics@gmx.at>
17922
17923 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
17924 whether decoding has modified buffer contents.
17925
17926 2007-08-24 Jason Rumney <jasonr@gnu.org>
17927
17928 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
17929 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
17930 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
17931 (init_svg_functions) [HAVE_NTGUI]: New function.
17932 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
17933 (svg_load_image): Use them.
17934 (svg_load_image) [HAVE_NTGUI]: Implement background.
17935
17936 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17937
17938 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
17939 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
17940 (LIBX): Remove @RSVG_LIBS@.
17941 (LIBES): Add $(RSVG_LIBS).
17942
17943 * image.c (svg_load_image): Blend with specified background if exists.
17944 Use IMAGE_BACKGROUND. Add Mac OS Support.
17945
17946 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
17947 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
17948 Remove macros.
17949 [MAC_OSX] (socket_callback): Do nothing.
17950 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
17951 ReceiveNextEvent.
17952 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
17953 socket_callback.
17954 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
17955
17956 2007-08-22 Glenn Morris <rgm@gnu.org>
17957
17958 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
17959
17960 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
17961
17962 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
17963
17964 * image.c: Add support for SVG images. Some additional comments
17965 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
17966 (svg_image_p): New function to test for SVG image.
17967 (svg_load): New function to load SVG image.
17968 (svg_load_image): New function, helper for svg_load.
17969 (Qsvg): New Lisp_object.
17970 (svg_keyword_index): New enum.
17971 (svg_format): New static `image_keyword' struct.
17972 (svg_type): New static `image_type' struct.
17973 (librsvg/rsvg.h): Include it.
17974
17975 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
17976
17977 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
17978
17979 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
17980
17981 * lread.c (Qold_style_backquotes): New var.
17982 (syms_of_lread): Init and staticpro it.
17983 (load_warn_old_style_backquotes): New fun.
17984 (Fload): Use them to warn about old style backquotes.
17985 (end_of_file_error, Fload): Remove unused vars.
17986
17987 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
17988
17989 * lread.c (Vold_style_backquotes): New var.
17990 (syms_of_lread): Init and export it to Elisp.
17991 (read1): Set it when we find an old-style (back)quote.
17992
17993 2007-08-22 Jason Rumney <jasonr@gnu.org>
17994
17995 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
17996
17997 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
17998
17999 * puresize.h (BASE_PURESIZE): Increase to 1140000.
18000
18001 2007-08-19 Richard Stallman <rms@gnu.org>
18002
18003 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
18004
18005 2007-08-19 Andreas Schwab <schwab@suse.de>
18006
18007 * alloc.c (pure): Round PURESIZE up.
18008
18009 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
18010
18011 * xterm.c (handle_one_xevent): Remove check that mouse click is in
18012 active frame.
18013
18014 2007-08-16 Richard Stallman <rms@gnu.org>
18015
18016 * eval.c (Fcommandp): Add parens to clarify.
18017
18018 * minibuf.c (Fall_completions): Use enum for type of table.
18019
18020 * emacs.c (USAGE2): Improve text.
18021
18022 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
18023
18024 * term.c (tty_default_color_capabilities): Declare static
18025 variables in file scope, to avoid HPUX compiler problem.
18026
18027 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
18028
18029 * gtkutil.c (update_frame_tool_bar): Use -1 as index
18030 to gtk_toolbar_insert.
18031
18032 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
18033
18034 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
18035
18036 * insdel.c (reset_var_on_error): New fun.
18037 (signal_before_change, signal_after_change):
18038 Use it to reset (after|before)-change-functions to nil in case of error.
18039 Bind inhibit-modification-hooks to t.
18040 Don't bind (after|before)-change-functions to nil while they run.
18041
18042 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18043
18044 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
18045 filling pixmap with stippled background.
18046
18047 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18048
18049 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
18050 Don't use invisible frame as parent window for repositioning.
18051
18052 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
18053
18054 * print.c (new_backquote_output): Rename from old_backquote_output.
18055 (print): Inverse its logic (according to its name) so as to match the
18056 behavior of new_backquote_flag in lread.c.
18057
18058 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18059
18060 * gmalloc.c (posix_memalign): New function.
18061
18062 * macterm.c (frame_highlight, frame_unhighlight): Don't call
18063 ActivateControl/DeactivateControl here.
18064 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
18065 frame-notice-user-settings is non-nil.
18066 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
18067 for kEventParamFMFontStyle.
18068 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
18069 mac_pass_command_to_system and mac_pass_control_to_system here.
18070 (XTread_socket): Call ActivateControl/DeactivateControl here.
18071 (XTread_socket) [TARGET_API_MAC_CARBON]:
18072 Check mac_pass_command_to_system and mac_pass_control_to_system here.
18073 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
18074 for window repositioning.
18075
18076 2007-08-08 Glenn Morris <rgm@gnu.org>
18077
18078 * Replace `iff' in doc-strings and comments.
18079
18080 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
18081
18082 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
18083
18084 2007-08-07 Martin Rudalics <rudalics@gmx.at>
18085
18086 * fileio.c (Finsert_file_contents): Run format-decode and
18087 after_insert_file_functions on entire buffer when REPLACE is
18088 non-nil and inhibit modification_hooks and point_motion_hooks.
18089 For consistency, run after_insert_file_functions iff something
18090 got inserted. Move signal_after_change and update_compositions
18091 after code running after_insert_file_functions. Make sure that
18092 undo_list doesn't record intermediate steps of the decoding process.
18093
18094 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18095
18096 * emacs.c (main)
18097 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
18098 Call malloc_enable_thread on interactive startup.
18099
18100 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
18101 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
18102 [USE_PTHREAD]: Conditionalize with it.
18103 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
18104 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
18105 New functions.
18106
18107 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
18108
18109 * xdisp.c (redisplay_window): When restoring original buffer
18110 position, make sure it is still valid.
18111
18112 * image.c (png_load): Ignore png-supplied background color.
18113
18114 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18115
18116 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
18117 Use kCFAbsoluteTimeIntervalSince1970.
18118
18119 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
18120 New variable.
18121 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
18122 event loop should be quit.
18123 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
18124 Quit dialog event loop if quit_dialog_event_loop is set.
18125
18126 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
18127 (Selection): New typedef. Use instead of ScrapRef.
18128 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
18129 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
18130 (mac_clear_selection): Rename from clear_scrap.
18131 (get_flavor_type_from_symbol): New argument SEL and subsume function of
18132 scrap_has_target_type. All uses changed.
18133 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
18134 (mac_selection_has_target_p): New functions.
18135 (mac_put_selection_value): Rename from put_scrap_string.
18136 (mac_get_selection_value): Rename from get_scrap_string.
18137 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
18138 (put_scrap_private_timestamp, scrap_has_target_type)
18139 (get_scrap_private_timestamp): Remove functions.
18140 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
18141 (x_own_selection, x_get_local_selection):
18142 Use mac_valid_selection_value_p.
18143 (x_own_selection): Don't use put_scrap_private_timestamp.
18144 Record OWNERSHIP-INFO into Vselection_alist instead.
18145 (x_get_local_selection): Don't check type if request is local.
18146 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
18147 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
18148
18149 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
18150
18151 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
18152 add comment explaining why.
18153
18154 2007-08-03 Richard Stallman <rms@gnu.org>
18155
18156 * fileio.c (Fvisited_file_modtime): Use make_time.
18157
18158 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
18159
18160 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
18161 build.
18162
18163 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
18164
18165 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
18166
18167 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
18168
18169 * puresize.h (BASE_PURESIZE): Increase to 1130000.
18170
18171 2007-07-30 Richard Stallman <rms@gnu.org>
18172
18173 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
18174
18175 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
18176
18177 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
18178
18179 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
18180
18181 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
18182 remote default-directory.
18183
18184 * buffer.c (mode-line-format): Update doc string.
18185
18186 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18187
18188 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
18189 scroll bar gap.
18190 (x_scroll_bar_create): Set bar->fringe_extended_p.
18191 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
18192 on frame edge. Check fringe background extension. Don't clear
18193 extended fringe background area.
18194
18195 * w32term.h (struct scroll_bar): New member fringe_extended_p.
18196 (w32_fill_area): Enclose multiple statements with do ... while (0).
18197
18198 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
18199 Extend fringe background to scroll bar gap.
18200 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
18201 Set bar->fringe_extended_p.
18202 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
18203 Put leftmost/rightmost scroll bars on frame edge. Check fringe
18204 background extension. Don't clear extended fringe background area.
18205
18206 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
18207 New member fringe_extended_p.
18208
18209 2007-07-25 Glenn Morris <rgm@gnu.org>
18210
18211 * Relicense all FSF files to GPLv3 or later.
18212
18213 * COPYING: Switch to GPLv3.
18214
18215 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
18216
18217 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
18218
18219 * data.c (Finteractive_form): Check for the presence of an
18220 `interactive-form' symbol property more thoroughly.
18221
18222 * data.c (Finteractive_form): Use an `interactive-form' property if
18223 present, analogous to the function-documentation property.
18224
18225 2007-07-24 Jason Rumney <jasonr@gnu.org>
18226
18227 * w32fns.c (x_real_positions): Get real position from OS instead of
18228 calculating it.
18229
18230 2007-07-23 Jason Rumney <jasonr@gnu.org>
18231
18232 * filelock.c (current_lock_owner): Allow for @ sign in username.
18233
18234 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
18235
18236 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
18237 remote default-directory.
18238
18239 * buffer.c (mode-line-format): Describe above case in doc string.
18240
18241 2007-07-20 Eli Zaretskii <eliz@gnu.org>
18242
18243 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
18244 Define if not defined.
18245
18246 2007-07-18 Jason Rumney <jasonr@gnu.org>
18247
18248 * w32proc.c (w32_executable_type): Handle 64 bit executables.
18249
18250 2007-07-18 Richard Stallman <rms@gnu.org>
18251
18252 * data.c (Fsetq_default): Doc fix.
18253
18254 * eval.c (Fsetq): Doc fix.
18255
18256 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
18257
18258 * coding.c (Ffind_operation_coding_system):
18259 * eval.c (For, Fand): Doc fixes.
18260 Reported by Johan Bockgård.
18261
18262 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
18263
18264 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
18265
18266 * xterm.h: Declare x_ewmh_activate_frame.
18267
18268 * xterm.c (x_ewmh_activate_frame): New function.
18269 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
18270
18271 2007-07-17 Martin Rudalics <rudalics@gmx.at>
18272
18273 * window.c (Fdisplay_buffer): If largest or LRU window is the
18274 only window, split it even if it is not eligible for splitting.
18275 This restores the original behavior broken by the 2007-07-15
18276 change.
18277
18278 2007-07-17 Glenn Morris <rgm@gnu.org>
18279
18280 * abbrev.c (abbrev_check_chars): New function.
18281 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
18282 Call abbrev_check_chars to check abbrev characters are word
18283 constituents. Doc fix.
18284
18285 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
18286
18287 * process.c (Fstart_process, Fmake_network_process)
18288 (read_process_output): Fix up last changes.
18289
18290 2007-07-16 Eli Zaretskii <eliz@gnu.org>
18291
18292 * makefile.w32-in (clean): Don't delete *~.
18293
18294 2007-07-16 Andreas Schwab <schwab@suse.de>
18295
18296 * window.c (Fdisplay_buffer): Use NILP.
18297 (Fset_window_scroll_bars): Likewise.
18298
18299 2007-07-15 Martin Rudalics <rudalics@gmx.at>
18300
18301 * window.c (window_min_size_2): New function.
18302 (window_min_size_1, size_window, Fdisplay_buffer)
18303 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
18304 windows without mode- or header-lines when window-min-height is
18305 too small.
18306 (size_window): Reset nodelete_p after testing it, following an
18307 earlier note by Kim F. Storm.
18308 (display_buffer): Do not set split_height_threshold to twice the
18309 value of window_min_height to avoid changing the value of a
18310 customizable variable. Rather explicitly check whether the
18311 height of the window that shall be splitted is at least as large
18312 as split_height_threshold.
18313 (Fwindow_full_width_p): New defun.
18314 (syms_of_window): Defsubr it.
18315
18316 * window.h: Add EXFUN for Fwindow_full_width_p.
18317
18318 2007-07-14 Jason Rumney <jasonr@gnu.org>
18319
18320 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
18321
18322 2007-07-14 Richard Stallman <rms@gnu.org>
18323
18324 * eval.c (maybe_call_debugger): New function.
18325 (find_handler_clause): Use maybe_call_debugger.
18326 Call it when the handler says `debug'.
18327 Eliminate DEBUGGER_VALUE_PTR.
18328 (Fsignal): Eliminate debugger_value.
18329 (Qdebug): New variable.
18330 (syms_of_eval): Initialize it.
18331
18332 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
18333
18334 * eval.c (Fprogn):
18335 * keyboard.c (Ftrack_mouse):
18336 * print.c (Fwith_output_to_temp_buffer):
18337 * window.c (Fsave_window_excursion): Doc fix.
18338
18339 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
18340
18341 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
18342
18343 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
18344
18345 * process.h (struct Lisp_Process): Turn slots infd, outfd,
18346 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
18347 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
18348 read_output_delay, and read_output_skip from Lisp_Objects to ints.
18349 Remove unused encoding_carryover.
18350 * process.c: Adjust all functions accordingly.
18351
18352 2007-07-12 Richard Stallman <rms@gnu.org>
18353
18354 * term.c: Include unistd.h only if HAVE_UNISTD_H.
18355
18356 2007-07-11 Jason Rumney <jasonr@gnu.org>
18357
18358 * makefile.w32-in (LIBS): Include OLE32.
18359
18360 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
18361 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
18362
18363 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
18364
18365 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
18366 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
18367 from a Lisp_Object into a bare pointer.
18368 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
18369 Adjust the code correspondingly.
18370
18371 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
18372
18373 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
18374 (term_show_mouse_face): Remove unused var `j'.
18375 (handle_one_term_event): Remove unused vars `i' and `j'.
18376 Don't cast return value of ttyname since it's not necessary.
18377
18378 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
18379
18380 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
18381 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
18382
18383 * fns.c (map_char_table): Use an array of int for `indices' rather than
18384 an array of Lisp_Objects (which are only ever integers anyway).
18385 (Fmap_char_table): Update caller.
18386 * lisp.h: Update prototype.
18387 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
18388 * fontset.c (Ffontset_info):
18389 * casetab.c (set_case_table): Update callers.
18390
18391 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
18392
18393 * keymap.c (struct accessible_keymaps_data)
18394 (struct where_is_internal_data): New structures.
18395 (accessible_keymaps_1, where_is_internal_1): Use them to change
18396 interface to adhere to the one used by map_keymap.
18397 (Faccessible_keymaps, where_is_internal): Use map_keymap.
18398 (accessible_keymaps_char_table, where_is_internal_2): Remove.
18399
18400 * keymap.h (map_keymap_function_t): More informative prototype.
18401
18402 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
18403
18404 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
18405 (looking_at_1): Don't change search_regs and last_thing_searched
18406 if `inhibit-changing-match-data' is non-nil.
18407 (string_match_1, search_buffer, set_search_regs): Likewise.
18408 (syms_of_search): Add Lisp level definition for
18409 `inhibit-changing-match-data' and set it to nil.
18410 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
18411 start and end of the match, instead of using values in search_regs.
18412
18413 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
18414
18415 * minibuf.c (Fcompleting_read): New value `confirm-only'
18416 for `require-match'.
18417
18418 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
18419
18420 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
18421 part of the 2007-06-27 change to syms_of_fileio.
18422
18423 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18424
18425 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
18426 Check WINDOWP before using XWINDOW. Consolidate return statements.
18427
18428 2007-06-27 Richard Stallman <rms@gnu.org>
18429
18430 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
18431
18432 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
18433
18434 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
18435
18436 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18437
18438 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
18439 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
18440 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
18441 (_free_internal, memalign): Use them.
18442 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
18443 Initialize to PTHREAD_MUTEX_INITIALIZER.
18444 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
18445 (morecore_nolock): Rename from morecore. All uses changed.
18446 Use only nolock versions of internal allocation functions.
18447 (_malloc_internal_nolock, _realloc_internal_nolock)
18448 (_free_internal_nolock): New functions created from
18449 _malloc_internal, _realloc_internal, and _free_internal.
18450 (_malloc_internal, _realloc_internal, _free_internal): Use them.
18451 Copy hook value to automatic variable before its use.
18452 (memalign): Copy hook value to automatic variable before its use.
18453
18454 2007-06-26 Kenichi Handa <handa@m17n.org>
18455
18456 * coding.c (Ffind_operation_coding_system): Docstring improved.
18457 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
18458
18459 2007-06-25 David Kastrup <dak@gnu.org>
18460
18461 * keymap.c (Fcurrent_active_maps): Add `position' argument.
18462 (Fwhere_is_internal): Adjust call to `current-active-maps' to
18463 cater for additional parameter.
18464
18465 * keymap.h: Adjust number of parameters to `current-active-maps'.
18466
18467 * doc.c (Fsubstitute_command_keys): Adjust call of
18468 `current-active-maps'.
18469
18470 2007-06-25 David Kastrup <dak@gnu.org>
18471
18472 * callint.c (Fcall_interactively): Make the parsing of interactive
18473 specs somewhat more readable.
18474
18475 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18476
18477 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
18478 to scroll bar gap also when bitmap fills fringe. Draw only foreground
18479 if extended background has already been filled.
18480
18481 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18482
18483 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
18484 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
18485
18486 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
18487 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
18488 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
18489 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
18490 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
18491 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
18492 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
18493 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
18494 Run timers during dialog popup.
18495 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
18496
18497 2007-06-21 Jason Rumney <jasonr@gnu.org>
18498
18499 * image.c (convert_mono_to_color_image): Swap fore and background.
18500
18501 2007-06-20 Jason Rumney <jasonr@gnu.org>
18502
18503 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
18504 (w32_free_bdf_font): Unmap memory not handle.
18505
18506 2007-06-20 Sam Steingold <sds@gnu.org>
18507
18508 * gmalloc.c (__morecore): Fix the declaration to comply with the
18509 definition.
18510
18511 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
18512
18513 * w32term.c (w32_delete_display): Remove leftover declaration.
18514 (w32_define_cursor, w32_initialize): Make static.
18515
18516 * w32.c (_wsa_errlist): Fix typo in error message.
18517 (init_environment): Ignore any environment variable from the
18518 registry having a null value.
18519
18520 2007-06-20 Glenn Morris <rgm@gnu.org>
18521
18522 * Makefile.in (LIBGIF): Default to -lgif.
18523
18524 2007-06-17 Jason Rumney <jasonr@gnu.org>
18525
18526 * w32menu.c (add_menu_item): Don't use multibyte string functions on
18527 unicode strings.
18528
18529 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
18530
18531 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
18532 Fix typo in docstring.
18533
18534 2007-06-16 Eli Zaretskii <eliz@gnu.org>
18535
18536 * w32menu.c (add_menu_item): Escape `&' characters in menu items
18537 and their keybindings.
18538
18539 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
18540
18541 * composite.c (update_compositions): Fix last fix.
18542
18543 2007-06-14 Jason Rumney <jasonr@gnu.org>
18544
18545 * w32.c (get_process_times_fn): New function pointer.
18546 (globals_of_w32): Intialize it if present in kernel32.dll.
18547 (w32_get_internal_run_time): New function.
18548
18549 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
18550
18551 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
18552
18553 * composite.c (update_compositions): Check the validness of
18554 compositions.
18555
18556 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18557
18558 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
18559 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
18560
18561 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
18562 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
18563
18564 * macgui.h (USE_MAC_TOOLBAR): New define.
18565
18566 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
18567 Return immediately unless popup is activated.
18568
18569 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
18570 background to scroll bar gap.
18571 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
18572 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
18573 scroll bars on frame edge. Check fringe background extension.
18574 Don't clear extended fringe background area.
18575 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
18576 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
18577 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
18578 [USE_MAC_TOOLBAR]: New macros.
18579 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
18580 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
18581 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
18582 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
18583 [USE_MAC_TOOLBAR]: New functions.
18584 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
18585 manually if previous repositioning has failed.
18586 (mac_handle_keyboard_event): Use precomputed event kind.
18587 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
18588 as tool bar item click. Handle mouse movement over tool bar items.
18589
18590 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
18591 toolbar_win_gravity.
18592 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
18593 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
18594 Add externs.
18595
18596 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
18597 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
18598
18599 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
18600
18601 * image.c (search_image_cache): Remove unused variable.
18602
18603 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
18604
18605 * xfns.c, xmenu.c: Link to xaw3d if available.
18606
18607 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18608
18609 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
18610 frame_foreground and frame_background.
18611
18612 * image.c (lookup_image): Save frame foreground and background colors.
18613 (search_image_cache): Check if saved and current frame colors match.
18614
18615 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
18616
18617 * regex.c (regex_compile): Remove the `regnum' counter.
18618 Use bufp->re_nsub instead. Add support for \(?N:RE\).
18619
18620 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
18621
18622 * term.c: Include intervals.h to declare Fget_text_property.
18623
18624 2007-06-10 Jason Rumney <jasonr@gnu.org>
18625
18626 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
18627
18628 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
18629
18630 * callint.c (Fcall_interactively):
18631 * editfns.c (Fdelete_and_extract_region):
18632 * fileio.c (Fread_file_name):
18633 * fns.c (Fmapconcat):
18634 * keyboard.c (cmd_error_internal):
18635 * keymap.c (Fkey_description):
18636 * lread.c (openp):
18637 * minibuf.c (read_minibuf):
18638 * search.c (wordify):
18639 * sunfns.c (sel_read):
18640 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
18641 * xfns.c (x_default_scroll_bar_color_parameter):
18642 * xmenu.c (menu_help_callback):
18643 * xselect.c (Fx_get_atom_name):
18644 * xterm.c (x_term_init): Use empty_unibyte_string.
18645
18646 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
18647
18648 * alloc.c (init_strings): Initialize canonical empty strings.
18649 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
18650 canonical empty string when the requested size is 0.
18651
18652 * emacs.c (empty_unibyte_string): Rename from empty_string.
18653 (empty_multibyte_string): New canonical empty string.
18654 (syms_of_emacs): Don't initialize empty_string.
18655
18656 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
18657 string, if appropriate.
18658 (empty_unibyte_string, empty_multibyte_string): New externs.
18659 (empty_string): Remove extern.
18660
18661 * lread.c (syms_of_lread): Use empty_unibyte_string.
18662
18663 2007-06-07 Jason Rumney <jasonr@gnu.org>
18664
18665 * s/ms-w32.h: Don't define HAVE_TZNAME.
18666
18667 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
18668
18669 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18670
18671 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
18672
18673 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
18674 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
18675
18676 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
18677 Don't call next handler.
18678 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
18679 Remove argument. Install handler to application.
18680 (set_frame_menubar): Don't change deep_p.
18681 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
18682 FRAME_OUTER_TO_INNER_DIFF_Y.
18683 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
18684 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
18685 [HAVE_DIALOGS]: New macros.
18686 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
18687 Use them.
18688 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
18689
18690 * macselect.c [MAC_OSX] (install_service_handler): Rename from
18691 init_service_handler. All callers changed. Return OSStatus value.
18692
18693 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
18694 All callers changed so as not to call SetPortWindowPort.
18695 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
18696 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
18697 mac_draw_string_common.
18698 (mac_draw_image_string_qd): Likewise.
18699 (mac_draw_string_common): Use them. Add INLINE.
18700 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
18701 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
18702 GetGlobalMouse.
18703 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
18704 and FRAME_OUTER_TO_INNER_DIFF_Y.
18705 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
18706 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
18707 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
18708 repositioning window to mac_handle_window_event.
18709 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
18710 saving window location to mac_handle_window_event
18711 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
18712 (install_menu_target_item_handler): Remove argument in extern.
18713 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
18714 Also accept command events.
18715 (do_keystroke): New function created from XTread_socket.
18716 (init_command_handler): Remove functions.
18717 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
18718 and save window location by kEventWindowShowing and kEventWindowHiding
18719 handlers here. Don't call next handler for window state change and
18720 focus events.
18721 (mac_handle_application_event, mac_handle_keyboard_event)
18722 [TARGET_API_MAC_CARBON]: New functions.
18723 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
18724 kEventWindowShowing and kEventWindowHiding events. Move installation
18725 of mouse, font, text input and menu target item handlers to
18726 install_application_handler.
18727 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
18728 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
18729 New function.
18730 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
18731 Register it.
18732 (XTread_socket) [TARGET_API_MAC_CARBON]:
18733 Consolidate SendEventToEventTarget calls.
18734 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
18735 Move application activation handler to mac_handle_application_event.
18736 Move keyboard handler to mac_handle_keyboard_event.
18737 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
18738 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
18739 init_command_handler. Call install_application_handler.
18740
18741 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
18742 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
18743
18744 2007-06-07 Glenn Morris <rgm@gnu.org>
18745
18746 * emacs.c (main): Use `emacs-copyright' in --version output.
18747
18748 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
18749
18750 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
18751
18752 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18753
18754 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
18755
18756 * macgui.h: Replace WindowPtr with WindowRef.
18757
18758 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
18759 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
18760 Replace ControlHandle with ControlRef.
18761 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
18762
18763 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
18764 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
18765 Replace ControlHandle with ControlRef.
18766 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
18767 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
18768
18769 * macterm.h (struct scroll_bar): Rename member control_handle_low
18770 and control_handle_high to control_ref_low and control_ref_high.
18771 All uses changed.
18772 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
18773 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
18774 respectively. All uses changed.
18775 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
18776 (install_window_handler, remove_window_handler): Replace WindowPtr
18777 with WindowRef in externs.
18778
18779 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
18780
18781 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
18782
18783 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
18784
18785 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
18786
18787 * frame.c (Fmouse_position, Fmouse_pixel_position):
18788 Condition on HAVE_GPM too.
18789
18790 * term.c (term_mouse_highlight): Remove unused variables.
18791 (Fterm_open_connection): Set gpm_zerobased to 1.
18792 (term_mouse_movement, term_mouse_click, handle_one_term_event):
18793 Use zero based co-ordinates.
18794 (handle_one_term_event): Report a drag as mouse movement too.
18795
18796 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
18797
18798 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
18799
18800 * image.c (search_image_cache): New function. Require background
18801 color match if background color is unspecified in the image spec.
18802 (uncache_image, lookup_image): Use it.
18803
18804 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
18805
18806 * window.c (Fshrink_window): Reflow docstring.
18807
18808 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
18809
18810 * Version 22.1 released.
18811
18812 2007-06-01 Richard Stallman <rms@gnu.org>
18813
18814 * xfns.c (x_encode_text): Add GCPRO.
18815
18816 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18817
18818 * xfns.c (x_set_name_internal): Save encoded name before
18819 x_encode_text in case string data is relocated.
18820
18821 2007-05-31 Richard Stallman <rms@gnu.org>
18822
18823 * buffer.c (syms_of_buffer): Doc fix.
18824
18825 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
18826
18827 * sysdep.c (init_sys_modes): Add rather than replace with
18828 O_NONBLOCK.
18829
18830 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
18831 term_mouse_moveto.
18832
18833 * termhooks.h (term_mouse_moveto): New extern.
18834
18835 * term.c (mouse_face_window): Rename...
18836 (Qmouse_face_window): ...to this.
18837 (term_show_mouse_face, term_clear_mouse_face)
18838 (term_mouse_highlight): Use Qmouse_face_window.
18839 (term_mouse_moveto): New function.
18840 (term_mouse_position): Make it work.
18841 (syms_of_term): Uncomment assignment to mouse_position_hook.
18842 Staticpro Qmouse_face_window.
18843
18844 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18845
18846 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
18847 around current_column call.
18848
18849 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
18850
18851 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
18852 * xdisp.c (next_element_from_buffer):
18853 * window.c (delete_window):
18854 * term.c (term_mouse_highlight):
18855 * msdos.c (getdefdir):
18856 * macterm.c (mac_create_bitmap_from_bitmap_data)
18857 (init_font_name_table):
18858 * fns.c (Fsxhash):
18859 * data.c (Fmake_local_variable):
18860 * ccl.c (ccl_driver): Likewise.
18861
18862 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18863
18864 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
18865 Call mac_wakeup_from_rne on window size change.
18866
18867 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
18868
18869 * image.c (uncache_image): Fix typo.
18870
18871 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
18872
18873 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
18874
18875 2007-05-22 Richard Stallman <rms@gnu.org>
18876
18877 * xterm.c (x_connection_closed): Remove NO_RETURN.
18878
18879 2007-05-22 Martin Rudalics <rudalics@gmx.at>
18880
18881 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
18882
18883 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
18884
18885 * image.c (uncache_image): New function.
18886 (Fimage_refresh): New function.
18887
18888 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
18889
18890 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
18891
18892 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
18893
18894 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
18895 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
18896
18897 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
18898
18899 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
18900 conditional on [HAVE_GPM_H].
18901
18902 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
18903
18904 * syntax.c (skip_chars): Update syntax-table only after we checked that
18905 the new location is valid.
18906
18907 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18908
18909 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
18910 mac_get_window_bounds.
18911
18912 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
18913
18914 * Makefile.in (LIBGPM): Allow it to be set from configure.
18915 If set then link Emacs with it.
18916
18917 * config.in: Regenerate.
18918
18919 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
18920 New externs.
18921
18922 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
18923 Include gpm.h.
18924 (handle_one_term_event, term_gpm): New externs.
18925
18926 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
18927 and allow it to be interrupted by SIGIO.
18928
18929 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
18930 (wait_reading_process_output): Wait on gpm_fd too.
18931 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
18932 (add_gpm_wait_descriptor_called_flag): New variable.
18933 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
18934
18935 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
18936 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
18937 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
18938 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
18939 (make_lispy_event): Add case GPM_CLICK_EVENT.
18940 (read_avail_input): Handle mouse input.
18941
18942 * term.c (write_glyphs_with_face): New function.
18943 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
18944 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
18945 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
18946 (mouse_face_face_id, term_gpm, pos_x, pos_y)
18947 (last_mouse_x, last_mouse_y): New variables.
18948 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
18949 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
18950 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
18951 (Fterm_close_connection): New functions.
18952 (term_init): Initialise mouse_face_window.
18953
18954 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
18955
18956 * xdisp.c (redisplay_window): If first window line is a
18957 continuation line, recompute the new window start instead of
18958 recentering.
18959
18960 2007-05-18 Glenn Morris <rgm@gnu.org>
18961
18962 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
18963 Suggested by Alfred M. Szmidt <ams@gnu.org>.
18964
18965 2007-05-17 Glenn Morris <rgm@gnu.org>
18966
18967 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
18968
18969 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18970
18971 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
18972 dead key repeat and up events.
18973
18974 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
18975
18976 * image.c (pbm_load): Check image size for monochrome pbm.
18977
18978 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
18979
18980 * xterm.c (XTread_socket): Revert last change.
18981
18982 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
18983
18984 * image.c (pbm_load): Correctly check image size for greyscale pbm.
18985
18986 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
18987
18988 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
18989
18990 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
18991 mixup (YAILOM).
18992
18993 2007-05-07 Andreas Schwab <schwab@suse.de>
18994
18995 * keymap.c (Flookup_key): Fix typo in last change.
18996
18997 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
18998
18999 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
19000 mapping for unibyte strings.
19001
19002 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19003
19004 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
19005 (Fx_popup_dialog) [MAC_OSX]: Likewise.
19006
19007 2007-04-29 Richard Stallman <rms@gnu.org>
19008
19009 * insdel.c (replace_range): For undo, record insertion first.
19010
19011 2007-04-29 Andreas Schwab <schwab@suse.de>
19012
19013 * lisp.h (VECSIZE): Use OFFSETOF.
19014
19015 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19016
19017 * xdisp.c (try_window_reusing_current_matrix): Fix number of
19018 disabled lines.
19019
19020 2007-04-28 Richard Stallman <rms@gnu.org>
19021
19022 * lread.c (read_escape): In a string, \s is always space.
19023
19024 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
19025
19026 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
19027
19028 * gtkutil.c (xg_update_menubar, create_menus): Create empty
19029 submenu for menu bar items.
19030
19031 See ChangeLog.10 for earlier changes.
19032
19033 ;; Local Variables:
19034 ;; coding: utf-8
19035 ;; add-log-time-zone-rule: t
19036 ;; End:
19037
19038 Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc.
19039
19040 This file is part of GNU Emacs.
19041
19042 GNU Emacs is free software: you can redistribute it and/or modify
19043 it under the terms of the GNU General Public License as published by
19044 the Free Software Foundation, either version 3 of the License, or
19045 (at your option) any later version.
19046
19047 GNU Emacs is distributed in the hope that it will be useful,
19048 but WITHOUT ANY WARRANTY; without even the implied warranty of
19049 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19050 GNU General Public License for more details.
19051
19052 You should have received a copy of the GNU General Public License
19053 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
19054
19055 ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40